@zakodium/pdnd-esm 1.0.1 → 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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/@zakodium/pdnd-esm.svg)](https://www.npmjs.com/package/@zakodium/pdnd-esm)
4
4
  [![npm download](https://img.shields.io/npm/dm/@zakodium/pdnd-esm.svg)](https://www.npmjs.com/package/@zakodium/pdnd-esm)
5
- [![license](https://img.shields.io/npm/l/@zakodium/pdnd-esm.svg)](https://github.com/zakodium/@zakodium/pdnd-esm/blob/main/LICENSE)
5
+ [![license](https://img.shields.io/npm/l/@zakodium/pdnd-esm.svg)](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,25 +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.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
- var combine_1 = require("@atlaskit/pragmatic-drag-and-drop/combine");
9
- Object.defineProperty(exports, "combine", { enumerable: true, get: function () { return combine_1.combine; } });
10
- var adapter_1 = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
11
- Object.defineProperty(exports, "draggable", { enumerable: true, get: function () { return adapter_1.draggable; } });
12
- Object.defineProperty(exports, "dropTargetForElements", { enumerable: true, get: function () { return adapter_1.dropTargetForElements; } });
13
- Object.defineProperty(exports, "monitorForElements", { enumerable: true, get: function () { return adapter_1.monitorForElements; } });
14
- var pointer_outside_of_preview_1 = require("@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview");
15
- Object.defineProperty(exports, "pointerOutsideOfPreview", { enumerable: true, get: function () { return pointer_outside_of_preview_1.pointerOutsideOfPreview; } });
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 element_1 = require("@atlaskit/pragmatic-drag-and-drop-auto-scroll/element");
19
- Object.defineProperty(exports, "autoScrollForElements", { enumerable: true, get: function () { return element_1.autoScrollForElements; } });
20
- var closest_edge_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge");
21
- Object.defineProperty(exports, "attachClosestEdge", { enumerable: true, get: function () { return closest_edge_1.attachClosestEdge; } });
22
- Object.defineProperty(exports, "extractClosestEdge", { enumerable: true, get: function () { return closest_edge_1.extractClosestEdge; } });
23
- var get_reorder_destination_index_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index");
24
- 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);
25
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":";;;AAAA,iEAAiE;AACjE,mFAAmF;AACnF,+EAA+E;AAC/E,mBAAmB;AACnB,qEAAoE;AAA3D,kGAAA,OAAO,OAAA;AAChB,6EAI2D;AAHzD,oGAAA,SAAS,OAAA;AACT,gHAAA,qBAAqB,OAAA;AACrB,6GAAA,kBAAkB,OAAA;AAEpB,mHAA+G;AAAtG,qIAAA,uBAAuB,OAAA;AAChC,2HAAsH;AAA7G,4IAAA,0BAA0B,OAAA;AACnC,iFAA8F;AAArF,gHAAA,qBAAqB,OAAA;AAC9B,sFAG+D;AAF7D,iHAAA,iBAAiB,OAAA;AACjB,kHAAA,kBAAkB,OAAA;AAEpB,6HAAyH;AAAhH,2IAAA,0BAA0B,OAAA"}
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,8 +1,9 @@
1
- export { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
2
- export { draggable, dropTargetForElements, monitorForElements, } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
3
- export { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
4
- export { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
5
- export { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
6
- export { attachClosestEdge, extractClosestEdge, } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
7
- export { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
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';
8
9
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EACL,SAAS,EACT,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sEAAsE,CAAC;AAC/G,OAAO,EAAE,0BAA0B,EAAE,MAAM,0EAA0E,CAAC;AACtH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6EAA6E,CAAC"}
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.1",
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": "^1.7.7",
31
- "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.2",
32
- "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0"
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": "^3.2.4",
37
- "@zakodium/tsconfig": "^1.0.2",
36
+ "@vitest/coverage-v8": "^4.1.9",
37
+ "@zakodium/tsconfig": "^1.0.5",
38
38
  "eslint": "^9.37.0",
39
- "eslint-config-cheminfo-typescript": "^20.0.0",
40
- "prettier": "^3.6.2",
41
- "rimraf": "^6.0.1",
42
- "typescript": "^5.9.3",
43
- "vitest": "^3.2.4"
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/@zakodium/pdnd-esm.git"
47
+ "url": "git+https://github.com/zakodium/pdnd-esm.git"
48
48
  },
49
49
  "bugs": {
50
- "url": "https://github.com/zakodium/@zakodium/pdnd-esm/issues"
50
+ "url": "https://github.com/zakodium/pdnd-esm/issues"
51
51
  },
52
- "homepage": "https://github.com/zakodium/@zakodium/pdnd-esm#readme"
52
+ "homepage": "https://github.com/zakodium/pdnd-esm#readme"
53
53
  }
package/src/index.cts CHANGED
@@ -2,17 +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 { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
6
- export {
7
- draggable,
8
- dropTargetForElements,
9
- monitorForElements,
10
- } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
11
- export { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
12
- export { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
13
- export { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
14
- export {
15
- attachClosestEdge,
16
- extractClosestEdge,
17
- } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
18
- 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';