@pyreon/dnd 0.24.5 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/analysis/index.js.html +1 -1
- package/lib/index.js +5 -1
- package/package.json +5 -7
- package/src/index.ts +0 -20
- package/src/tests/dnd.test.ts +0 -760
- package/src/tests/integration.test.ts +0 -1662
- package/src/tests/use-sortable-leak.test.ts +0 -110
- package/src/types.ts +0 -92
- package/src/use-drag-monitor.ts +0 -69
- package/src/use-draggable.ts +0 -68
- package/src/use-droppable.ts +0 -69
- package/src/use-file-drop.browser.test.tsx +0 -148
- package/src/use-file-drop.ts +0 -133
- package/src/use-sortable.ts +0 -265
|
@@ -5386,7 +5386,7 @@ var drawChart = (function (exports) {
|
|
|
5386
5386
|
</script>
|
|
5387
5387
|
<script>
|
|
5388
5388
|
/*<!--*/
|
|
5389
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"
|
|
5389
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"f701960a-1","name":"use-drag-monitor.ts"},{"uid":"f701960a-3","name":"use-draggable.ts"},{"uid":"f701960a-5","name":"use-droppable.ts"},{"uid":"f701960a-7","name":"use-file-drop.ts"},{"uid":"f701960a-9","name":"use-sortable.ts"},{"uid":"f701960a-11","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"f701960a-1":{"renderedLength":1307,"gzipLength":625,"brotliLength":0,"metaUid":"f701960a-0"},"f701960a-3":{"renderedLength":1312,"gzipLength":600,"brotliLength":0,"metaUid":"f701960a-2"},"f701960a-5":{"renderedLength":1361,"gzipLength":597,"brotliLength":0,"metaUid":"f701960a-4"},"f701960a-7":{"renderedLength":2300,"gzipLength":939,"brotliLength":0,"metaUid":"f701960a-6"},"f701960a-9":{"renderedLength":6160,"gzipLength":2095,"brotliLength":0,"metaUid":"f701960a-8"},"f701960a-11":{"renderedLength":97,"gzipLength":109,"brotliLength":0,"metaUid":"f701960a-10"}},"nodeMetas":{"f701960a-0":{"id":"/src/use-drag-monitor.ts","moduleParts":{"index.js":"f701960a-1"},"imported":[{"uid":"f701960a-13"},{"uid":"f701960a-12"}],"importedBy":[{"uid":"f701960a-10"}]},"f701960a-2":{"id":"/src/use-draggable.ts","moduleParts":{"index.js":"f701960a-3"},"imported":[{"uid":"f701960a-13"},{"uid":"f701960a-12"}],"importedBy":[{"uid":"f701960a-10"}]},"f701960a-4":{"id":"/src/use-droppable.ts","moduleParts":{"index.js":"f701960a-5"},"imported":[{"uid":"f701960a-13"},{"uid":"f701960a-12"}],"importedBy":[{"uid":"f701960a-10"}]},"f701960a-6":{"id":"/src/use-file-drop.ts","moduleParts":{"index.js":"f701960a-7"},"imported":[{"uid":"f701960a-14"},{"uid":"f701960a-15"},{"uid":"f701960a-12"}],"importedBy":[{"uid":"f701960a-10"}]},"f701960a-8":{"id":"/src/use-sortable.ts","moduleParts":{"index.js":"f701960a-9"},"imported":[{"uid":"f701960a-16"},{"uid":"f701960a-13"},{"uid":"f701960a-17"},{"uid":"f701960a-18"},{"uid":"f701960a-12"}],"importedBy":[{"uid":"f701960a-10"}]},"f701960a-10":{"id":"/src/index.ts","moduleParts":{"index.js":"f701960a-11"},"imported":[{"uid":"f701960a-12"},{"uid":"f701960a-0"},{"uid":"f701960a-2"},{"uid":"f701960a-4"},{"uid":"f701960a-6"},{"uid":"f701960a-8"}],"importedBy":[],"isEntry":true},"f701960a-12":{"id":"@pyreon/reactivity","moduleParts":{},"imported":[],"importedBy":[{"uid":"f701960a-10"},{"uid":"f701960a-0"},{"uid":"f701960a-2"},{"uid":"f701960a-4"},{"uid":"f701960a-6"},{"uid":"f701960a-8"}]},"f701960a-13":{"id":"@atlaskit/pragmatic-drag-and-drop/element/adapter","moduleParts":{},"imported":[],"importedBy":[{"uid":"f701960a-0"},{"uid":"f701960a-2"},{"uid":"f701960a-4"},{"uid":"f701960a-8"}]},"f701960a-14":{"id":"@atlaskit/pragmatic-drag-and-drop/external/adapter","moduleParts":{},"imported":[],"importedBy":[{"uid":"f701960a-6"}]},"f701960a-15":{"id":"@atlaskit/pragmatic-drag-and-drop/external/file","moduleParts":{},"imported":[],"importedBy":[{"uid":"f701960a-6"}]},"f701960a-16":{"id":"@atlaskit/pragmatic-drag-and-drop/combine","moduleParts":{},"imported":[],"importedBy":[{"uid":"f701960a-8"}]},"f701960a-17":{"id":"@atlaskit/pragmatic-drag-and-drop-auto-scroll/element","moduleParts":{},"imported":[],"importedBy":[{"uid":"f701960a-8"}]},"f701960a-18":{"id":"@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge","moduleParts":{},"imported":[],"importedBy":[{"uid":"f701960a-8"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
5390
5390
|
|
|
5391
5391
|
const run = () => {
|
|
5392
5392
|
const width = window.innerWidth;
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { onCleanup, registerSingleton, signal } from "@pyreon/reactivity";
|
|
1
2
|
import { draggable, dropTargetForElements, monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
2
|
-
import { onCleanup, signal } from "@pyreon/reactivity";
|
|
3
3
|
import { dropTargetForExternal, monitorForExternal } from "@atlaskit/pragmatic-drag-and-drop/external/adapter";
|
|
4
4
|
import { containsFiles, getFiles } from "@atlaskit/pragmatic-drag-and-drop/external/file";
|
|
5
5
|
import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
@@ -451,6 +451,10 @@ function useSortable(options) {
|
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region src/index.ts
|
|
456
|
+
registerSingleton("@pyreon/dnd", "0.24.6", import.meta.url);
|
|
457
|
+
|
|
454
458
|
//#endregion
|
|
455
459
|
export { useDragMonitor, useDraggable, useDroppable, useFileDrop, useSortable };
|
|
456
460
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/dnd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Signal-driven drag and drop for Pyreon — wraps @atlaskit/pragmatic-drag-and-drop",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/pyreon/pyreon/issues"
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"lib",
|
|
16
16
|
"!lib/**/*.map",
|
|
17
|
-
"src",
|
|
18
17
|
"README.md",
|
|
19
18
|
"LICENSE"
|
|
20
19
|
],
|
|
@@ -22,7 +21,6 @@
|
|
|
22
21
|
"sideEffects": false,
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
25
|
-
"bun": "./src/index.ts",
|
|
26
24
|
"import": "./lib/index.js",
|
|
27
25
|
"types": "./lib/types/index.d.ts"
|
|
28
26
|
}
|
|
@@ -42,12 +40,12 @@
|
|
|
42
40
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.10",
|
|
43
41
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.0.0",
|
|
44
42
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
45
|
-
"@pyreon/core": "^0.
|
|
46
|
-
"@pyreon/reactivity": "^0.
|
|
43
|
+
"@pyreon/core": "^0.25.0",
|
|
44
|
+
"@pyreon/reactivity": "^0.25.0"
|
|
47
45
|
},
|
|
48
46
|
"devDependencies": {
|
|
49
|
-
"@pyreon/test-utils": "^0.13.
|
|
50
|
-
"@pyreon/typescript": "^0.
|
|
47
|
+
"@pyreon/test-utils": "^0.13.12",
|
|
48
|
+
"@pyreon/typescript": "^0.25.0",
|
|
51
49
|
"@vitest/browser-playwright": "^4.1.4"
|
|
52
50
|
}
|
|
53
51
|
}
|
package/src/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
DragData,
|
|
3
|
-
DropEdge,
|
|
4
|
-
DropLocation,
|
|
5
|
-
UseDraggableOptions,
|
|
6
|
-
UseDraggableResult,
|
|
7
|
-
UseDroppableOptions,
|
|
8
|
-
UseDroppableResult,
|
|
9
|
-
UseSortableOptions,
|
|
10
|
-
UseSortableResult,
|
|
11
|
-
} from './types'
|
|
12
|
-
|
|
13
|
-
export type { UseDragMonitorOptions, UseDragMonitorResult } from './use-drag-monitor'
|
|
14
|
-
export { useDragMonitor } from './use-drag-monitor'
|
|
15
|
-
|
|
16
|
-
export { useDraggable } from './use-draggable'
|
|
17
|
-
export { useDroppable } from './use-droppable'
|
|
18
|
-
export type { UseFileDropOptions, UseFileDropResult } from './use-file-drop'
|
|
19
|
-
export { useFileDrop } from './use-file-drop'
|
|
20
|
-
export { useSortable } from './use-sortable'
|