@headless-tree/core 0.0.0-20250511194715 → 0.0.0-20250514161139

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-20250511194715
3
+ ## 0.0.0-20250514161139
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -13,6 +13,7 @@
13
13
  - da1e757: fixed a bug where alt-tabbing out of browser will break hotkeys feature
14
14
  - c283f52: add feature to allow async data invalidation without triggering rerenders with `invalidateItemData(optimistic: true)` (#95)
15
15
  - 29b2c64: added option to completely ignore hotkey events while input elements are focused (`ignoreHotkeysOnInput`) (#98)
16
+ - cd5b27c: add position:absolute to default styles of getDragLineStyle()
16
17
 
17
18
  ## 1.0.1
18
19
 
@@ -60,6 +60,7 @@ exports.dragAndDropFeature = {
60
60
  const dragLine = tree.getDragLineData();
61
61
  return dragLine
62
62
  ? {
63
+ position: "absolute",
63
64
  top: `${dragLine.top + topOffset}px`,
64
65
  left: `${dragLine.left + leftOffset}px`,
65
66
  width: `${dragLine.width - leftOffset}px`,
@@ -55,6 +55,7 @@ class TestTreeExpect {
55
55
  top: 0,
56
56
  });
57
57
  (0, vitest_1.expect)(this.tree.instance.getDragLineStyle(0, 0)).toEqual({
58
+ position: "absolute",
58
59
  left: `${indent * 20}px`,
59
60
  pointerEvents: "none",
60
61
  top: "0px",
@@ -57,6 +57,7 @@ export const dragAndDropFeature = {
57
57
  const dragLine = tree.getDragLineData();
58
58
  return dragLine
59
59
  ? {
60
+ position: "absolute",
60
61
  top: `${dragLine.top + topOffset}px`,
61
62
  left: `${dragLine.left + leftOffset}px`,
62
63
  width: `${dragLine.width - leftOffset}px`,
@@ -52,6 +52,7 @@ export class TestTreeExpect {
52
52
  top: 0,
53
53
  });
54
54
  expect(this.tree.instance.getDragLineStyle(0, 0)).toEqual({
55
+ position: "absolute",
55
56
  left: `${indent * 20}px`,
56
57
  pointerEvents: "none",
57
58
  top: "0px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headless-tree/core",
3
- "version": "0.0.0-20250511194715",
3
+ "version": "0.0.0-20250514161139",
4
4
  "type": "module",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",
@@ -74,6 +74,7 @@ export const dragAndDropFeature: FeatureImplementation = {
74
74
  const dragLine = tree.getDragLineData();
75
75
  return dragLine
76
76
  ? {
77
+ position: "absolute",
77
78
  top: `${dragLine.top + topOffset}px`,
78
79
  left: `${dragLine.left + leftOffset}px`,
79
80
  width: `${dragLine.width - leftOffset}px`,
@@ -82,6 +82,7 @@ export class TestTreeExpect<T> {
82
82
  top: 0,
83
83
  });
84
84
  expect(this.tree.instance.getDragLineStyle(0, 0)).toEqual({
85
+ position: "absolute",
85
86
  left: `${indent * 20}px`,
86
87
  pointerEvents: "none",
87
88
  top: "0px",