@zakodium/pdnd-esm 1.1.0 → 1.1.2
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/index.cjs +9 -6
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +7 -6
- package/lib/index.d.cts.map +1 -1
- package/package.json +10 -10
- package/src/index.cts +10 -6
package/lib/index.cjs
CHANGED
|
@@ -14,16 +14,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.extractClosestEdge = exports.attachClosestEdge = void 0;
|
|
17
18
|
// https://github.com/atlassian/pragmatic-drag-and-drop/issues/27
|
|
18
19
|
// Given how `@atlaskit/pragmatic-drag-and-drop` publishes ESM in a non-native way,
|
|
19
20
|
// we have to trick TS into using the CJS build so that our build is compatible
|
|
20
21
|
// with native ESM.
|
|
21
|
-
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/
|
|
22
|
-
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/
|
|
23
|
-
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/
|
|
24
|
-
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/
|
|
25
|
-
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/
|
|
22
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter"), exports);
|
|
23
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/utils/combine"), exports);
|
|
24
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/utils/pointer-outside-of-preview"), exports);
|
|
25
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/utils/reorder"), exports);
|
|
26
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview"), exports);
|
|
26
27
|
__exportStar(require("@atlaskit/pragmatic-drag-and-drop-auto-scroll/element"), exports);
|
|
27
|
-
|
|
28
|
+
var closest_edge_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge");
|
|
29
|
+
Object.defineProperty(exports, "attachClosestEdge", { enumerable: true, get: function () { return closest_edge_1.attachClosestEdge; } });
|
|
30
|
+
Object.defineProperty(exports, "extractClosestEdge", { enumerable: true, get: function () { return closest_edge_1.extractClosestEdge; } });
|
|
28
31
|
__exportStar(require("@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index"), exports);
|
|
29
32
|
//# sourceMappingURL=index.cjs.map
|
package/lib/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iEAAiE;AACjE,mFAAmF;AACnF,+EAA+E;AAC/E,mBAAmB;AACnB,4FAA0E;AAC1E,kFAAgE;AAChE,qGAAmF;AACnF,kFAAgE;AAChE,yGAAuF;AACvF,wFAAsE;AAEtE,sFAG+D;AAF7D,iHAAA,iBAAiB,OAAA;AACjB,kHAAA,kBAAkB,OAAA;AAEpB,8GAA4F"}
|
package/lib/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
2
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
3
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
4
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
5
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
1
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
2
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
3
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/utils/pointer-outside-of-preview';
|
|
4
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/utils/reorder';
|
|
5
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview';
|
|
6
6
|
export * from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
7
|
-
export
|
|
7
|
+
export type { Edge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/types';
|
|
8
|
+
export { attachClosestEdge, extractClosestEdge, } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
8
9
|
export * from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|
|
9
10
|
//# sourceMappingURL=index.d.cts.map
|
package/lib/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"AAIA,cAAc,2DAA2D,CAAC;AAC1E,cAAc,iDAAiD,CAAC;AAChE,cAAc,oEAAoE,CAAC;AACnF,cAAc,iDAAiD,CAAC;AAChE,cAAc,wEAAwE,CAAC;AACvF,cAAc,uDAAuD,CAAC;AACtE,YAAY,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,uDAAuD,CAAC;AAC/D,cAAc,6EAA6E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakodium/pdnd-esm",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Re-export specific methods from @atlaskit/pragmatic-drag-and-drop for ESM compatibility",
|
|
6
6
|
"keywords": [],
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"tsc-build": "tsc --project tsconfig.build.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/pragmatic-drag-and-drop": "^
|
|
31
|
-
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.
|
|
32
|
-
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.
|
|
30
|
+
"@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
|
|
31
|
+
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.2.0",
|
|
32
|
+
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.2.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@types/node": "^24.
|
|
36
|
-
"@vitest/coverage-v8": "^
|
|
35
|
+
"@types/node": "^24.13.3",
|
|
36
|
+
"@vitest/coverage-v8": "^5.0.1",
|
|
37
37
|
"@zakodium/tsconfig": "^1.0.5",
|
|
38
|
-
"eslint": "^
|
|
39
|
-
"eslint-config-cheminfo-typescript": "^
|
|
40
|
-
"prettier": "^3.
|
|
38
|
+
"eslint": "^10.10.0",
|
|
39
|
+
"eslint-config-cheminfo-typescript": "^23.0.0",
|
|
40
|
+
"prettier": "^3.9.7",
|
|
41
41
|
"rimraf": "^6.1.3",
|
|
42
42
|
"typescript": "^6.0.3",
|
|
43
|
-
"vitest": "^
|
|
43
|
+
"vitest": "^5.0.1"
|
|
44
44
|
},
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
package/src/index.cts
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
// Given how `@atlaskit/pragmatic-drag-and-drop` publishes ESM in a non-native way,
|
|
3
3
|
// we have to trick TS into using the CJS build so that our build is compatible
|
|
4
4
|
// with native ESM.
|
|
5
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
6
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
7
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
8
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
9
|
-
export * from '@atlaskit/pragmatic-drag-and-drop/
|
|
5
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
6
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
7
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/utils/pointer-outside-of-preview';
|
|
8
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/utils/reorder';
|
|
9
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview';
|
|
10
10
|
export * from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
11
|
-
export
|
|
11
|
+
export type { Edge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/types';
|
|
12
|
+
export {
|
|
13
|
+
attachClosestEdge,
|
|
14
|
+
extractClosestEdge,
|
|
15
|
+
} from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
12
16
|
export * from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|