3.0.0 Alpha Release / Announcement #52
AuxiDev
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Svelte Bottom Sheet 3.0.0-alpha.1
Hey!
A few months have passed. A lot of thought has gone into this new version. I am happy to announce Svelte Bottom Sheet 3.0.0-announcement/preview with fewer flaws, more configuration options, and more!
It fundamentally changes how the sheet works and behaves.
Before You EVEN CONSIDER Upgrading
Svelte Bottom Sheet 3.0.0 takes a different approach than previous versions. A lot of built-in styles and assumptions have been removed in favor of flexibility and user control. The goal is to make the library less opinionated and allow developers to customize nearly every aspect of the sheet.
However, this freedom comes with tradeoffs. Existing implementations that relied on internal styles or behavior may require additional work to migrate. In some cases, functionality that worked out of the box in previous versions now needs to be implemented by the user.
I am still evaluating whether this is the right long-term direction for the library. While the increased flexibility solves many limitations of previous versions, it also introduces compatibility concerns and a steeper migration path.
When 3.0.0 reaches production readiness, you should carefully consider whether the additional customization and flexibility are worth the migration effort for your project, or whether staying on the previous version better fits your needs.
This version includes bugs, untested features, and features that are not yet implemented.
Not for production use - everything is subject to change.
Usage
This verison isn't being released on NPM.
Download it and check out the migration guide.
Introduced Features
disableBackgroundInteractionFlag: Default:false- Allows you to scroll the background, which wasn't possible in previous versions.disableClickOutsideFlag: Default:false- Allows you to disable closing the sheet when clicking outside of it.disableFocusTrapFlag: Default:false- Allows you to disable the focus trap.disableEscapeFlag: Default:false- Allows you to disable closing the sheet when pressing Escape.onlyTopSheetInteractiveFlag: Default:true- Decide whether a nested sheet which isn't at the top (behind) should be draggable.child-snippets: Child snippets allow you to render the components in your own code while providing a property object that you can use and modify.enableScrollDragTakeoverFlag: Default:true- Controls whether a scrollable sheet can switch from scrolling to dragging.BottomSheet.Sheetnow uses a portal and is mounted always on topImports: Added new import options that don't include unnecessary type exports.Custom Animations: For the sheet you can now add custom properties to the translate animation and also custom properties for the overlay oapcity animation.Child Snippet Example
Fixes
disableClosingFlag flaws: Based on current testing,disableClosingnow prevents closing in every way without known edge cases (except in dev mode).Breaking Changes
left,right, ortop, supporting the vision of greater flexibility.1.Known Issues
Things Still to Consider / Coming Soon
Migration guide (Not production ready)
NOTE: This post might not include all changes, issues and things to consider, but certainly most.
This discussion was created from the release 3.0.0 Alpha Release / Announcement.
All reactions