Skip to content

v1.1.1

Choose a tag to compare

@github-actions github-actions released this 05 Oct 09:20
· 11 commits to main since this release

v1.1.1 — Patch release: adds optional dismiss behaviors to Collapsible and bumps the monorepo version.

Note: All packages in this monorepo share the v1.1.1 tag, but only the @data-slot/collapsible package received code changes in this release.

@data-slot/collapsible

  • ✨ Added new options: closeOnEscape (default: false) — pressing Escape closes the collapsible; when the trigger is inside the collapsible, focus returns to the trigger after close.
  • ✨ Added new options: closeOnClickOutside (default: false) — a pointer press outside the collapsible will close it.
  • Internal improvements: added use of createDismissLayer, containsWithPortals, and focusElement to provide more robust, portal-aware dismiss and focus behavior.
  • Interaction robustness: guard for disabled triggers was consolidated (interactions are blocked while the trigger is disabled) to prevent accidental toggles.

Breaking changes

  • None. These are opt-in features (both options default to false).

Commits

  • feat(collapsible): add closeOnEscape and closeOnClickOutside (00f8955)
  • chore: bump version to 1.1.1 (b81f34b)