Skip to content

v0.3.0

Choose a tag to compare

@githyperplexed githyperplexed released this 13 Jun 03:16
· 48 commits to main since this release

Added

  • manager.active() — the id of the bubble whose panel shows while open (and that leads the row when it next opens); undefined while no bubbles are mounted.
  • manager.activate(id) — make a bubble active and bring its panel forward (expands a docked group on it, switches an open row to it), moving keyboard focus with it.
  • manager.on(event, handler) — subscribe to statechange, activechange, add, dismiss, and remove events; returns an unsubscribe function. Deliveries are deferred to a microtask and coalesced.
  • dismiss event — fires the instant the user commits to dismissing a bubble (releases it on the target, or presses Delete), before the exit animation, so UI tracking the action stays snappy instead of lagging the fly-off; always followed by a matching remove with reason user.

Changed

  • Dragging a bubble onto the dismiss target now closes the gap in the remaining bubbles and hands off the active panel the instant you release, instead of after the dismissed bubble finishes animating off-screen.

Full changelog: https://github.com/githyperplexed/bubbles/blob/main/CHANGELOG.md