Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

comment-wc

Experimental stub: collaborative comment action for selection-menu. Pins to a review-surface, which ships in the separate vb-project-planning package.

Overview

Experimental stub. <comment-wc> pins comments to a <review-surface>. That element was moved out of Vanilla Breeze and now ships in the separate @profpowell/vb-project-planning package. Unless your page loads that package, or defines its own <review-surface> with an addPin({ x, y, text }) method, the action is always unavailable. The API may change or the element may be removed. For a working discussion UI today, use <comment-thread>.

The <comment-wc> component is an “Add comment” action for <selection-menu>. It looks for a <review-surface> (an ancestor, or the one whose for matches the menu's for) each time it is clicked and adds a pin at the selection's position.

If no <review-surface> is found, the button is marked aria-disabled="true", styled as inert, and described by visually-hidden text explaining why. It stays focusable so that explanation can be reached.

For private reader notes (not shared), use <note-wc> instead.

Usage

Annotation Layers

ComponentActorPersistencePurpose
<note-wc>ReaderlocalStoragePrivate marginalia
<comment-wc>CollaboratorBackend (via review-surface, a separate package)Shared threaded comments
<foot-note>AuthorStatic HTMLStructural footnotes

Events

EventDetailDescription
comment-wc:created{ text, x, y }Pin created on the review-surface (x / y are percentages of its box)

Accessibility

  • Button is named “Add comment” in both states.
  • Unavailable state: aria-disabled="true" (not disabled, so it stays focusable) plus aria-describedby pointing at visually-hidden text (“Comments are unavailable: this content has no review surface.”). No title tooltip.

Related

↑