@industry-theme/principal-view-panels 0.12.71 → 0.12.72

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.
@@ -1 +1 @@
1
- {"version":3,"file":"StoryboardListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/StoryboardListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AA2K9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAk1CvE,CAAC"}
1
+ {"version":3,"file":"StoryboardListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/StoryboardListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AA2K9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAu1CvE,CAAC"}
@@ -191832,11 +191832,14 @@ const StoryboardListPanel = ({
191832
191832
  }
191833
191833
  }, [getNodeFilePath]);
191834
191834
  const handleCopyPath = useCallback(async () => {
191835
+ var _a2;
191835
191836
  if (!contextMenu) return;
191836
- const path2 = getNodeFilePath(contextMenu.node);
191837
- if (path2) {
191837
+ const relativePath = getNodeFilePath(contextMenu.node);
191838
+ if (relativePath) {
191838
191839
  try {
191839
- await navigator.clipboard.writeText(path2);
191840
+ const rootPath = ((_a2 = fileTreeData == null ? void 0 : fileTreeData.root) == null ? void 0 : _a2.path) ?? "";
191841
+ const absolutePath = rootPath && !relativePath.startsWith("/") ? `${rootPath}/${relativePath}` : relativePath;
191842
+ await navigator.clipboard.writeText(absolutePath);
191840
191843
  setContextMenuCopied(true);
191841
191844
  setTimeout(() => {
191842
191845
  setContextMenu(null);
@@ -191847,7 +191850,7 @@ const StoryboardListPanel = ({
191847
191850
  setContextMenu(null);
191848
191851
  }
191849
191852
  }
191850
- }, [contextMenu, getNodeFilePath]);
191853
+ }, [contextMenu, getNodeFilePath, fileTreeData]);
191851
191854
  useEffect(() => {
191852
191855
  if (!contextMenu) return;
191853
191856
  const handleClickOutside = (e) => {