Version Packages (next) - #1014
Merged
Merged
Conversation
✅ Deploy Preview for solid-primitives-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonnext.Releases
@solid-primitives/drag-drop@0.1.0-next.0
Minor Changes
75d2a1f: New package:
@solid-primitives/drag-drop— composable drag-and-drop primitives for Solid 2.0.Exports
Pointer-event DnD (UI element dragging):
makeDraggable— non-reactive base, no Solid owner requiredmakeDroppable— non-reactive drop target basecreateDraggable— reactive draggable withisDragging,transform, auto style/class; keyboard-accessible (Space/Enterto pick up/drop, arrow keys to nudge,Escapeto cancel)createDroppable— reactive drop target withisOver,active, auto style/classcreateSortable— combines draggable + droppable on the same elementcreateDragContext— coordinates a tree of draggables and droppables, with optionalautoScrollnear viewport edgesarrayMove— pure reorder helper foronDragEnd+createSortableNative HTML5 DnD (file drops,
draggable="true"elements):makeNativeDroppable— non-reactive base with depth-counter fix for child elementscreateNativeDroppable— reactive native drop zone for OS file dropsCollision detection strategies (pure functions, pass to
createDragContext):closestCenter,closestCorners,rectIntersection,pointerWithin(default)Notes
transformis corrected for page scroll during a drag, so the dragged element doesn't visually drift from the pointer if the page scrolls mid-drag (needed forautoScrollto look right, and for any scrollable page in general).createDroppable/createSortablelog a dev-mode warning when used without acreateDragContextancestor, sinceisOver/activesilently stayfalse/nullin that case.isDragging/isOverare backed bycreateProjectioninstead of a per-instanceactive()?.id === idmemo, so a drag start/end or hover change in a large list only notifies the specific items involved.@solid-primitives/upload@1.0.0-next.4
Patch Changes