@principal-ade/dynamic-file-tree 0.2.27 → 0.2.29

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/dist/index.mjs CHANGED
@@ -3,6 +3,7 @@ import { useRef, useEffect, useState } from "react";
3
3
  var useContainerHeight = (initialHeight = 600) => {
4
4
  const containerRef = useRef(null);
5
5
  const [containerHeight, setContainerHeight] = useState(initialHeight);
6
+ const [isReady, setIsReady] = useState(false);
6
7
  useEffect(() => {
7
8
  const updateHeight = () => {
8
9
  if (containerRef.current) {
@@ -12,11 +13,14 @@ var useContainerHeight = (initialHeight = 600) => {
12
13
  }
13
14
  }
14
15
  };
16
+ if (containerRef.current) {
17
+ setIsReady(true);
18
+ }
15
19
  updateHeight();
16
20
  window.addEventListener("resize", updateHeight);
17
21
  return () => window.removeEventListener("resize", updateHeight);
18
22
  }, []);
19
- return [containerRef, containerHeight];
23
+ return [containerRef, containerHeight, isReady];
20
24
  };
21
25
  // src/hooks/useDndManager.ts
22
26
  import { useContext } from "react";
@@ -536,7 +540,7 @@ var DynamicFileTree = ({
536
540
  }
537
541
  return initialHeight;
538
542
  }, [autoHeight, treeData, defaultOpen, initialOpenState, initialHeight]);
539
- const [containerRef, containerHeight] = useContainerHeight(calculatedHeight);
543
+ const [containerRef, containerHeight, isContainerReady] = useContainerHeight(calculatedHeight);
540
544
  return /* @__PURE__ */ React3.createElement("div", {
541
545
  ref: containerRef,
542
546
  style: {
@@ -546,7 +550,7 @@ var DynamicFileTree = ({
546
550
  ...autoHeight ? {} : { height: "100%" },
547
551
  ...verticalPadding ? { paddingTop: verticalPadding, paddingBottom: verticalPadding } : {}
548
552
  }
549
- }, /* @__PURE__ */ React3.createElement(Tree, {
553
+ }, isContainerReady && /* @__PURE__ */ React3.createElement(Tree, {
550
554
  initialData: treeData,
551
555
  onSelect: handleSelect,
552
556
  openByDefault: defaultOpen,
@@ -556,6 +560,7 @@ var DynamicFileTree = ({
556
560
  height: containerHeight,
557
561
  rowHeight: 28,
558
562
  dndManager: parentDndManager,
563
+ dndRootElement: containerRef.current,
559
564
  ...dndProps
560
565
  }, NodeRenderer));
561
566
  };
@@ -1346,7 +1351,7 @@ var GitStatusFileTree = ({
1346
1351
  }
1347
1352
  return initialHeight;
1348
1353
  }, [autoHeight, treeData, openByDefault, initialHeight, rowHeight]);
1349
- const [containerRef, containerHeight] = useContainerHeight(calculatedHeight);
1354
+ const [containerRef, containerHeight, isContainerReady] = useContainerHeight(calculatedHeight);
1350
1355
  return /* @__PURE__ */ React7.createElement("div", {
1351
1356
  ref: containerRef,
1352
1357
  style: {
@@ -1358,7 +1363,7 @@ var GitStatusFileTree = ({
1358
1363
  }
1359
1364
  }, /* @__PURE__ */ React7.createElement(GitStatusContext.Provider, {
1360
1365
  value: { gitStatusMap, hasChangedChildrenMap }
1361
- }, /* @__PURE__ */ React7.createElement(Tree2, {
1366
+ }, isContainerReady && /* @__PURE__ */ React7.createElement(Tree2, {
1362
1367
  data: treeData,
1363
1368
  onSelect: handleSelect,
1364
1369
  ...selectedFile !== undefined && { selection: selectedFile },
@@ -1367,6 +1372,7 @@ var GitStatusFileTree = ({
1367
1372
  height: containerHeight,
1368
1373
  rowHeight,
1369
1374
  dndManager: parentDndManager,
1375
+ dndRootElement: containerRef.current,
1370
1376
  ...dndProps
1371
1377
  }, NodeRenderer)));
1372
1378
  };
@@ -2790,7 +2796,7 @@ var StoryboardWorkflowsTreeCoreInner = ({
2790
2796
  }
2791
2797
  };
2792
2798
  const initialHeight = 600;
2793
- const [containerRef, containerHeight] = useContainerHeight(initialHeight);
2799
+ const [containerRef, containerHeight, isContainerReady] = useContainerHeight(initialHeight);
2794
2800
  const treeRef = useRef5(null);
2795
2801
  return /* @__PURE__ */ React13.createElement("div", {
2796
2802
  ref: containerRef,
@@ -2801,7 +2807,7 @@ var StoryboardWorkflowsTreeCoreInner = ({
2801
2807
  height: "100%",
2802
2808
  ...verticalPadding ? { paddingTop: verticalPadding, paddingBottom: verticalPadding } : {}
2803
2809
  }
2804
- }, /* @__PURE__ */ React13.createElement(Tree3, {
2810
+ }, isContainerReady && /* @__PURE__ */ React13.createElement(Tree3, {
2805
2811
  ref: treeRef,
2806
2812
  data: treeData,
2807
2813
  onSelect: handleSelect,
@@ -2810,6 +2816,7 @@ var StoryboardWorkflowsTreeCoreInner = ({
2810
2816
  height: containerHeight,
2811
2817
  rowHeight,
2812
2818
  dndManager: parentDndManager,
2819
+ dndRootElement: containerRef.current,
2813
2820
  ...dndProps
2814
2821
  }, NodeRenderer));
2815
2822
  };
@@ -3027,7 +3034,7 @@ var WorkflowScenarioTreeCore = ({
3027
3034
  }
3028
3035
  };
3029
3036
  const initialHeight = 600;
3030
- const [containerRef, containerHeight] = useContainerHeight(initialHeight);
3037
+ const [containerRef, containerHeight, isContainerReady] = useContainerHeight(initialHeight);
3031
3038
  return /* @__PURE__ */ React14.createElement("div", {
3032
3039
  ref: containerRef,
3033
3040
  style: {
@@ -3037,7 +3044,7 @@ var WorkflowScenarioTreeCore = ({
3037
3044
  height: "100%",
3038
3045
  ...verticalPadding ? { paddingTop: verticalPadding, paddingBottom: verticalPadding } : {}
3039
3046
  }
3040
- }, /* @__PURE__ */ React14.createElement(Tree4, {
3047
+ }, isContainerReady && /* @__PURE__ */ React14.createElement(Tree4, {
3041
3048
  data: treeData,
3042
3049
  onSelect: handleSelect,
3043
3050
  openByDefault: defaultOpen,
@@ -3046,7 +3053,8 @@ var WorkflowScenarioTreeCore = ({
3046
3053
  width: "100%",
3047
3054
  height: containerHeight,
3048
3055
  rowHeight,
3049
- dndManager: parentDndManager
3056
+ dndManager: parentDndManager,
3057
+ dndRootElement: containerRef.current
3050
3058
  }, NodeRenderer));
3051
3059
  };
3052
3060
  // src/components/CanvasListTree/CanvasListTreeCore.tsx
@@ -3369,7 +3377,7 @@ var CanvasListTreeCore = ({
3369
3377
  }
3370
3378
  };
3371
3379
  const initialHeight = 600;
3372
- const [containerRef, containerHeight] = useContainerHeight(initialHeight);
3380
+ const [containerRef, containerHeight, isContainerReady] = useContainerHeight(initialHeight);
3373
3381
  const treeRef = useRef6(null);
3374
3382
  const handleToggle = (id) => {
3375
3383
  if (onToggle && treeRef.current) {
@@ -3389,7 +3397,7 @@ var CanvasListTreeCore = ({
3389
3397
  height: "100%",
3390
3398
  ...verticalPadding ? { paddingTop: verticalPadding, paddingBottom: verticalPadding } : {}
3391
3399
  }
3392
- }, /* @__PURE__ */ React15.createElement(Tree5, {
3400
+ }, isContainerReady && /* @__PURE__ */ React15.createElement(Tree5, {
3393
3401
  ref: treeRef,
3394
3402
  initialData: treeData,
3395
3403
  onSelect: handleSelect,
@@ -3401,6 +3409,7 @@ var CanvasListTreeCore = ({
3401
3409
  height: containerHeight,
3402
3410
  rowHeight,
3403
3411
  dndManager: parentDndManager,
3412
+ dndRootElement: containerRef.current,
3404
3413
  ...dndProps
3405
3414
  }, NodeRenderer));
3406
3415
  };
@@ -3573,7 +3582,7 @@ var RepositoryTreeCore = ({
3573
3582
  }
3574
3583
  };
3575
3584
  const initialHeight = 600;
3576
- const [containerRef, containerHeight] = useContainerHeight(initialHeight);
3585
+ const [containerRef, containerHeight, isContainerReady] = useContainerHeight(initialHeight);
3577
3586
  const selection = selectedRepositoryPath ? `repo:${selectedRepositoryPath}` : undefined;
3578
3587
  return /* @__PURE__ */ React16.createElement("div", {
3579
3588
  ref: containerRef,
@@ -3584,7 +3593,7 @@ var RepositoryTreeCore = ({
3584
3593
  height: "100%",
3585
3594
  ...verticalPadding ? { paddingTop: verticalPadding, paddingBottom: verticalPadding } : {}
3586
3595
  }
3587
- }, /* @__PURE__ */ React16.createElement(Tree6, {
3596
+ }, isContainerReady && /* @__PURE__ */ React16.createElement(Tree6, {
3588
3597
  data: treeData,
3589
3598
  onSelect: handleSelect,
3590
3599
  openByDefault: defaultOpen,
@@ -3593,7 +3602,8 @@ var RepositoryTreeCore = ({
3593
3602
  width: "100%",
3594
3603
  height: containerHeight,
3595
3604
  rowHeight,
3596
- dndManager: parentDndManager
3605
+ dndManager: parentDndManager,
3606
+ dndRootElement: containerRef.current
3597
3607
  }, NodeRenderer));
3598
3608
  };
3599
3609
  // src/components/TelemetryCoverageFileTree.tsx
@@ -3867,7 +3877,7 @@ var TelemetryCoverageFileTree = ({
3867
3877
  }
3868
3878
  return initialHeight;
3869
3879
  }, [autoHeight, treeData, openByDefault, initialHeight]);
3870
- const [containerRef, containerHeight] = useContainerHeight(calculatedHeight);
3880
+ const [containerRef, containerHeight, isContainerReady] = useContainerHeight(calculatedHeight);
3871
3881
  return /* @__PURE__ */ React17.createElement("div", {
3872
3882
  ref: containerRef,
3873
3883
  style: {
@@ -3879,7 +3889,7 @@ var TelemetryCoverageFileTree = ({
3879
3889
  }
3880
3890
  }, /* @__PURE__ */ React17.createElement(TelemetryCoverageContext.Provider, {
3881
3891
  value: { coverageMap, hasTracedChildrenMap }
3882
- }, /* @__PURE__ */ React17.createElement(Tree7, {
3892
+ }, isContainerReady && /* @__PURE__ */ React17.createElement(Tree7, {
3883
3893
  data: treeData,
3884
3894
  onSelect: handleSelect,
3885
3895
  ...selectedFile !== undefined && { selection: selectedFile },
@@ -3888,6 +3898,7 @@ var TelemetryCoverageFileTree = ({
3888
3898
  height: containerHeight,
3889
3899
  rowHeight: 28,
3890
3900
  dndManager: parentDndManager,
3901
+ dndRootElement: containerRef.current,
3891
3902
  ...dndProps
3892
3903
  }, NodeRenderer)));
3893
3904
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasListTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasListTree/CanvasListTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAQ/C,OAAO,KAAK,EAEV,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AAuRjB,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqN5D,CAAC"}
1
+ {"version":3,"file":"CanvasListTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasListTree/CanvasListTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAQ/C,OAAO,KAAK,EAEV,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AAuRjB,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyN5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicFileTree.d.ts","sourceRoot":"","sources":["../../../src/components/DynamicFileTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAgB,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAA0B,MAAM,OAAO,CAAC;AAiB/C,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpD,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACvF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACr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AAI,CAAC;IAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACvF,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AA0JD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA6O9D,CAAC"}
@@ -22,4 +22,5 @@ export declare const SlateTheme: Story;
22
22
  export declare const RapidStatusChanges: Story;
23
23
  export declare const MultipleInstances: Story;
24
24
  export declare const DebugSelectCalls: Story;
25
+ export declare const NativeDragTest: Story;
25
26
  //# sourceMappingURL=GitStatusFileTree.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GitStatusFileTree.stories.d.ts","sourceRoot":"","sources":["../../../src/components/GitStatusFileTree.stories.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,iBAAiB,EAA4B,MAAM,qBAAqB,CAAC;AA+OlF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CASxC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAA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"file":"RepositoryTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/RepositoryTree/RepositoryTreeCore.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA+IvE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8I5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StoryboardWorkflowsTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAS/C,OAAO,KAAK,EAEV,4BAA4B,EAQ7B,MAAM,SAAS,CAAC;AA68BjB,eAAO,MAAM,2BAA2B,0DAA+C,CAAC"}
1
+ {"version":3,"file":"StoryboardWorkflowsTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAS/C,OAAO,KAAK,EAEV,4BAA4B,EAQ7B,MAAM,SAAS,CAAC;AAk9BjB,eAAO,MAAM,2BAA2B,0DAA+C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TelemetryCoverageFileTree.d.ts","sourceRoot":"","sources":["../../../src/components/TelemetryCoverageFileTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAgB,MAAM,sCAAsC,CAAC;AAO9E,OAAO,KAA0B,MAAM,OAAO,CAAC;AAQ/C;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,4BA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AAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACvF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,kGAAkG;IAClG,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AA6KD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA2O9E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B,GAAI,cAAc,qBAAqB,EAAE;;;;;;;;CAgBpF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WorkflowScenarioTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/WorkflowScenarioTree/WorkflowScenarioTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAEV,yBAAyB,EAI1B,MAAM,SAAS,CAAC;AAwMjB,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmKxE,CAAC"}
1
+ {"version":3,"file":"WorkflowScenarioTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/WorkflowScenarioTree/WorkflowScenarioTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAEV,yBAAyB,EAI1B,MAAM,SAAS,CAAC;AAwMjB,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAuKxE,CAAC"}
@@ -4,16 +4,16 @@ import { RefObject } from 'react';
4
4
  * Listens to window resize events and updates the height accordingly.
5
5
  *
6
6
  * @param initialHeight - Initial height in pixels (default: 600)
7
- * @returns Tuple of [containerRef, containerHeight]
7
+ * @returns Tuple of [containerRef, containerHeight, isReady]
8
8
  *
9
9
  * @example
10
- * const [containerRef, height] = useContainerHeight();
10
+ * const [containerRef, height, isReady] = useContainerHeight();
11
11
  *
12
12
  * return (
13
13
  * <div ref={containerRef}>
14
- * <Tree height={height} ... />
14
+ * {isReady && <Tree height={height} ... />}
15
15
  * </div>
16
16
  * );
17
17
  */
18
- export declare const useContainerHeight: (initialHeight?: number) => [RefObject<HTMLDivElement | null>, number];
18
+ export declare const useContainerHeight: (initialHeight?: number) => [RefObject<HTMLDivElement | null>, number, boolean];
19
19
  //# sourceMappingURL=useContainerHeight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useContainerHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useContainerHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,GAAI,gBAAe,MAAY,KAAG,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAAE,MAAM,CAqBzG,CAAC"}
1
+ {"version":3,"file":"useContainerHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useContainerHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,GAAI,gBAAe,MAAY,KAAG,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CA2BlH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ade/dynamic-file-tree",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
4
4
  "description": "React component for selective directory filtering and file tree visualization",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",