Bootstrap Svelte 1.1.0
A compatible maintenance release for 1.x consumers, backporting issues #29 and #31 without the 2.0 Navbar or breakpoint changes.
Changes
- Add optional
Offcanvas.RoottriggerElementsreferences for consumer-controlled buttons, links, and SVG elements. An owning enabled primary press no longer causes premature outside dismissal or a spurious static-backdroponHidePreventedevent. - Ownership follows the current references, supports null lists and entries, and ignores detached elements. Disabled, non-primary, unrelated, and stacked-overlay behavior is preserved. Includes API documentation and an interactive example.
- Fix
collapseAriacleanup and reactive reattachment overwriting consumer-owned ARIA attributes and roles. Cleanup restores prior values only while the current value still matches the attachment's write.
Compatibility and installation
No breaking changes for 1.x consumers. Existing 1.x Navbar and responsive-breakpoint behavior is retained. Svelte peer requirement: ^5.29.0.
pnpm add @winkintel/bootstrap-svelte@^1.1.0 bootstrapPublished to npm with the maintenance dist-tag. You can also install @winkintel/bootstrap-svelte@maintenance; the default npm latest tag remains on 2.x.
Implemented and reviewed in #36 and #38. Full comparison: v1.0.12...v1.1.0