@principal-ade/dynamic-file-tree 0.2.16 → 0.2.17

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
@@ -8,7 +8,12 @@ var useContainerHeight = (initialHeight = 600) => {
8
8
  if (containerRef.current) {
9
9
  const height = containerRef.current.clientHeight;
10
10
  if (height > 0) {
11
- setContainerHeight(height);
11
+ setContainerHeight((prevHeight) => {
12
+ if (prevHeight !== height) {
13
+ console.log("[useContainerHeight] Height changing:", prevHeight, "->", height);
14
+ }
15
+ return height;
16
+ });
12
17
  }
13
18
  }
14
19
  };
@@ -2506,6 +2511,7 @@ var StoryboardWorkflowsTreeCoreInner = ({
2506
2511
  onScenarioVisibilityToggle,
2507
2512
  showScenarios = false
2508
2513
  }) => {
2514
+ console.log("[StoryboardWorkflowsTreeCoreInner] RENDER - if this logs after initial mount, React.memo is not working");
2509
2515
  const dndProps = getDndProps(enableDragAndDrop);
2510
2516
  const parentDndManager = useParentDndManager();
2511
2517
  const gitStatusMap = useMemo9(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"StoryboardWorkflowsTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAShE,OAAO,KAAK,EAEV,4BAA4B,EAQ7B,MAAM,SAAS,CAAC;AA49BjB,eAAO,MAAM,2BAA2B,0DAGtC,CAAC"}
1
+ {"version":3,"file":"StoryboardWorkflowsTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAShE,OAAO,KAAK,EAEV,4BAA4B,EAQ7B,MAAM,SAAS,CAAC;AA+9BjB,eAAO,MAAM,2BAA2B,0DAGtC,CAAC"}
@@ -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,CAoBzG,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,CAyBzG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ade/dynamic-file-tree",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "React component for selective directory filtering and file tree visualization",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",