@gallop.software/studio 0.1.74 → 0.1.76

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.
@@ -1977,7 +1977,7 @@ function GridItem({ item, isSelected, onClick, onOpen, onGenerateThumbnail }) {
1977
1977
  const isImagesFolder = isFolder && (item.name === "images" || item.path.includes("/images/"));
1978
1978
  const handleCopyPath = (e) => {
1979
1979
  e.stopPropagation();
1980
- const pathToCopy = "/" + item.path;
1980
+ const pathToCopy = "/" + item.path.replace(/^public\//, "");
1981
1981
  navigator.clipboard.writeText(pathToCopy);
1982
1982
  setShowCopied(true);
1983
1983
  setTimeout(() => setShowCopied(false), 1500);
@@ -2527,7 +2527,7 @@ function ListRow({ item, isSelected, onClick, onOpen, onGenerateThumbnail }) {
2527
2527
  const isImagesFolder = isFolder && (item.name === "images" || item.path.includes("/images/"));
2528
2528
  const handleCopyPath = (e) => {
2529
2529
  e.stopPropagation();
2530
- const pathToCopy = "/" + item.path;
2530
+ const pathToCopy = "/" + item.path.replace(/^public\//, "");
2531
2531
  navigator.clipboard.writeText(pathToCopy);
2532
2532
  setShowCopied(true);
2533
2533
  setTimeout(() => setShowCopied(false), 1500);
@@ -2902,7 +2902,7 @@ function StudioDetailView() {
2902
2902
  setFocusedItem(null);
2903
2903
  };
2904
2904
  const handleCopyPath = () => {
2905
- const pathToCopy = "/" + focusedItem.path;
2905
+ const pathToCopy = "/" + focusedItem.path.replace(/^public\//, "");
2906
2906
  navigator.clipboard.writeText(pathToCopy);
2907
2907
  setShowCopied(true);
2908
2908
  setTimeout(() => setShowCopied(false), 1500);
@@ -3842,4 +3842,4 @@ var StudioUI_default = StudioUI;
3842
3842
 
3843
3843
 
3844
3844
  exports.StudioUI = StudioUI; exports.default = StudioUI_default;
3845
- //# sourceMappingURL=StudioUI-4ODY2HZQ.js.map
3845
+ //# sourceMappingURL=StudioUI-3BYIEK6S.js.map