@zakodium/pdnd-esm 1.0.2 → 1.1.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/README.md +1 -1
- package/lib/index.cjs +22 -20
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +8 -8
- package/lib/index.d.cts.map +1 -1
- package/package.json +14 -14
- package/src/index.cts +8 -15
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@zakodium/pdnd-esm)
|
|
4
4
|
[](https://www.npmjs.com/package/@zakodium/pdnd-esm)
|
|
5
|
-
[](https://github.com/zakodium
|
|
5
|
+
[](https://github.com/zakodium/pdnd-esm/blob/main/LICENSE)
|
|
6
6
|
|
|
7
7
|
Re-export specific methods from @atlaskit/pragmatic-drag-and-drop for ESM compatibility.
|
|
8
8
|
|
package/lib/index.cjs
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReorderDestinationIndex = exports.extractClosestEdge = exports.attachClosestEdge = exports.autoScrollForElements = exports.reorder = exports.setCustomNativeDragPreview = exports.pointerOutsideOfPreview = exports.monitorForElements = exports.dropTargetForElements = exports.draggable = exports.combine = void 0;
|
|
4
17
|
// https://github.com/atlassian/pragmatic-drag-and-drop/issues/27
|
|
5
18
|
// Given how `@atlaskit/pragmatic-drag-and-drop` publishes ESM in a non-native way,
|
|
6
19
|
// we have to trick TS into using the CJS build so that our build is compatible
|
|
7
20
|
// with native ESM.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var set_custom_native_drag_preview_1 = require("@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview");
|
|
17
|
-
Object.defineProperty(exports, "setCustomNativeDragPreview", { enumerable: true, get: function () { return set_custom_native_drag_preview_1.setCustomNativeDragPreview; } });
|
|
18
|
-
var reorder_1 = require("@atlaskit/pragmatic-drag-and-drop/reorder");
|
|
19
|
-
Object.defineProperty(exports, "reorder", { enumerable: true, get: function () { return reorder_1.reorder; } });
|
|
20
|
-
var element_1 = require("@atlaskit/pragmatic-drag-and-drop-auto-scroll/element");
|
|
21
|
-
Object.defineProperty(exports, "autoScrollForElements", { enumerable: true, get: function () { return element_1.autoScrollForElements; } });
|
|
22
|
-
var closest_edge_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge");
|
|
23
|
-
Object.defineProperty(exports, "attachClosestEdge", { enumerable: true, get: function () { return closest_edge_1.attachClosestEdge; } });
|
|
24
|
-
Object.defineProperty(exports, "extractClosestEdge", { enumerable: true, get: function () { return closest_edge_1.extractClosestEdge; } });
|
|
25
|
-
var get_reorder_destination_index_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index");
|
|
26
|
-
Object.defineProperty(exports, "getReorderDestinationIndex", { enumerable: true, get: function () { return get_reorder_destination_index_1.getReorderDestinationIndex; } });
|
|
21
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/combine"), exports);
|
|
22
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/element/adapter"), exports);
|
|
23
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview"), exports);
|
|
24
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview"), exports);
|
|
25
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop/reorder"), exports);
|
|
26
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop-auto-scroll/element"), exports);
|
|
27
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge"), exports);
|
|
28
|
+
__exportStar(require("@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index"), exports);
|
|
27
29
|
//# 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,4EAA0D;AAC1D,oFAAkE;AAClE,uGAAqF;AACrF,2GAAyF;AACzF,4EAA0D;AAC1D,wFAAsE;AACtE,wFAAsE;AACtE,8GAA4F"}
|
package/lib/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
1
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
2
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
3
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
|
|
4
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
5
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/reorder';
|
|
6
|
+
export * from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
7
|
+
export * from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
8
|
+
export * from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|
|
9
9
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"AAIA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sEAAsE,CAAC;AACrF,cAAc,0EAA0E,CAAC;AACzF,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,6EAA6E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakodium/pdnd-esm",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Re-export specific methods from @atlaskit/pragmatic-drag-and-drop for ESM compatibility",
|
|
6
6
|
"keywords": [],
|
|
@@ -27,27 +27,27 @@
|
|
|
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": "^
|
|
32
|
-
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^
|
|
30
|
+
"@atlaskit/pragmatic-drag-and-drop": "^2.0.1",
|
|
31
|
+
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
|
|
32
|
+
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^24.7.2",
|
|
36
|
-
"@vitest/coverage-v8": "^
|
|
37
|
-
"@zakodium/tsconfig": "^1.0.
|
|
36
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
37
|
+
"@zakodium/tsconfig": "^1.0.5",
|
|
38
38
|
"eslint": "^9.37.0",
|
|
39
|
-
"eslint-config-cheminfo-typescript": "^
|
|
40
|
-
"prettier": "^3.
|
|
41
|
-
"rimraf": "^6.
|
|
42
|
-
"typescript": "^
|
|
43
|
-
"vitest": "^
|
|
39
|
+
"eslint-config-cheminfo-typescript": "^22.1.0",
|
|
40
|
+
"prettier": "^3.8.4",
|
|
41
|
+
"rimraf": "^6.1.3",
|
|
42
|
+
"typescript": "^6.0.3",
|
|
43
|
+
"vitest": "^4.1.9"
|
|
44
44
|
},
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
|
47
|
-
"url": "git+https://github.com/zakodium
|
|
47
|
+
"url": "git+https://github.com/zakodium/pdnd-esm.git"
|
|
48
48
|
},
|
|
49
49
|
"bugs": {
|
|
50
|
-
"url": "https://github.com/zakodium
|
|
50
|
+
"url": "https://github.com/zakodium/pdnd-esm/issues"
|
|
51
51
|
},
|
|
52
|
-
"homepage": "https://github.com/zakodium
|
|
52
|
+
"homepage": "https://github.com/zakodium/pdnd-esm#readme"
|
|
53
53
|
}
|
package/src/index.cts
CHANGED
|
@@ -2,18 +2,11 @@
|
|
|
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
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
|
|
14
|
-
export { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
15
|
-
export {
|
|
16
|
-
attachClosestEdge,
|
|
17
|
-
extractClosestEdge,
|
|
18
|
-
} from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
19
|
-
export { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|
|
5
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
6
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
7
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
|
|
8
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
9
|
+
export * from '@atlaskit/pragmatic-drag-and-drop/reorder';
|
|
10
|
+
export * from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
11
|
+
export * from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
12
|
+
export * from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|