@headless-tree/core 0.0.0-20250611144718 → 0.0.0-20250611223358

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @headless-tree/core
2
2
 
3
- ## 0.0.0-20250611144718
3
+ ## 0.0.0-20250611223358
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -15,6 +15,7 @@
15
15
  ### Patch Changes
16
16
 
17
17
  - 727c982: export makeStateUpdater from core package
18
+ - c041a3f: expose `isOrderedDragTarget` as utility method to differentiate between ordered and unordered drag targets (#108)
18
19
  - 2887b0c: Added a `item.getKey()` utility method to use for generating React keys. For now, this just returns the item id, so no migration is needed from using `item.getId()` as React keys.
19
20
 
20
21
  ## 1.1.0
@@ -28,3 +28,4 @@ export * from "./utilities/remove-items-from-parents";
28
28
  export * from "./core/build-proxified-instance";
29
29
  export * from "./core/build-static-instance";
30
30
  export { makeStateUpdater } from "./utils";
31
+ export { isOrderedDragTarget } from "./features/drag-and-drop/utils";
package/lib/cjs/index.js CHANGED
@@ -14,7 +14,7 @@ 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.makeStateUpdater = void 0;
17
+ exports.isOrderedDragTarget = exports.makeStateUpdater = void 0;
18
18
  __exportStar(require("./types/core"), exports);
19
19
  __exportStar(require("./core/create-tree"), exports);
20
20
  __exportStar(require("./features/tree/types"), exports);
@@ -45,3 +45,5 @@ __exportStar(require("./core/build-proxified-instance"), exports);
45
45
  __exportStar(require("./core/build-static-instance"), exports);
46
46
  var utils_1 = require("./utils");
47
47
  Object.defineProperty(exports, "makeStateUpdater", { enumerable: true, get: function () { return utils_1.makeStateUpdater; } });
48
+ var utils_2 = require("./features/drag-and-drop/utils");
49
+ Object.defineProperty(exports, "isOrderedDragTarget", { enumerable: true, get: function () { return utils_2.isOrderedDragTarget; } });
@@ -28,3 +28,4 @@ export * from "./utilities/remove-items-from-parents";
28
28
  export * from "./core/build-proxified-instance";
29
29
  export * from "./core/build-static-instance";
30
30
  export { makeStateUpdater } from "./utils";
31
+ export { isOrderedDragTarget } from "./features/drag-and-drop/utils";
package/lib/esm/index.js CHANGED
@@ -27,3 +27,4 @@ export * from "./utilities/remove-items-from-parents";
27
27
  export * from "./core/build-proxified-instance";
28
28
  export * from "./core/build-static-instance";
29
29
  export { makeStateUpdater } from "./utils";
30
+ export { isOrderedDragTarget } from "./features/drag-and-drop/utils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headless-tree/core",
3
- "version": "0.0.0-20250611144718",
3
+ "version": "0.0.0-20250611223358",
4
4
  "main": "lib/cjs/index.js",
5
5
  "module": "lib/esm/index.js",
6
6
  "types": "lib/esm/index.d.ts",
package/src/index.ts CHANGED
@@ -33,3 +33,4 @@ export * from "./core/build-proxified-instance";
33
33
  export * from "./core/build-static-instance";
34
34
 
35
35
  export { makeStateUpdater } from "./utils";
36
+ export { isOrderedDragTarget } from "./features/drag-and-drop/utils";