-
-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[experimental] Native file dragging plugin #1584
base: experimental
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 313af6a The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
"build:core": "tsup src/core/index.ts", | ||
"build:modifiers": "tsup --entry.modifiers src/modifiers/index.ts", | ||
"build:plugins": "tsup --entry.debug src/plugins/debug/index.ts --outDir ./plugins", | ||
"build:draggableFile": "tsup --entry.draggableFile src/plugins/draggableFile/index.ts --outDir ./plugins", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't take times figuring out how to configure the command. Put it here for now
This comment was marked as resolved.
This comment was marked as resolved.
|
||
if (!status.initialized || !shape) { | ||
if (!status.initialized) { | ||
return DEFAULT_VALUE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be collision detection algorithm's responsibility to check shape's availability. File draggable does not have a shape and would be filtered by the original code implementation
// Make sure effects will re-run when those properties change | ||
void position.current; | ||
void shape; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it has a performance penalty (too many collisions recompute?)
This PR aims at providing a plugin to drag and drop file from native fs to browser.
It is marked as draft because:
I don't know how to fix it. Would you consider passing the DOM event to core dnd-kit events (dragstart, dragend, dragmove...)?
fixes #1581