@gallop.software/studio 0.1.100 → 0.1.101

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.
@@ -4202,12 +4202,14 @@ function StudioDetailView() {
4202
4202
  const isImage = isImageFile(focusedItem.name);
4203
4203
  const isVideo = isVideoFile(focusedItem.name);
4204
4204
  const imageSrc = focusedItem.path.replace("public", "");
4205
+ const relativePath = "/" + focusedItem.path.replace(/^public\//, "");
4206
+ const productionUrl = process.env.NEXT_PUBLIC_PRODUCTION_URL || "";
4207
+ const fullUrl = focusedItem.cdnPushed && focusedItem.cdnBaseUrl ? `${focusedItem.cdnBaseUrl}${relativePath}` : productionUrl ? `${productionUrl}${relativePath}` : relativePath;
4205
4208
  const handleClose = () => {
4206
4209
  setFocusedItem(null);
4207
4210
  };
4208
4211
  const handleCopyPath = () => {
4209
- const pathToCopy = "/" + focusedItem.path.replace(/^public\//, "");
4210
- navigator.clipboard.writeText(pathToCopy);
4212
+ navigator.clipboard.writeText(fullUrl);
4211
4213
  setShowCopied(true);
4212
4214
  setTimeout(() => setShowCopied(false), 1500);
4213
4215
  };
@@ -4466,6 +4468,10 @@ function StudioDetailView() {
4466
4468
  /* @__PURE__ */ jsxs8("div", { css: styles8.infoRow, children: [
4467
4469
  /* @__PURE__ */ jsx8("span", { css: styles8.infoLabel, children: "CDN Status" }),
4468
4470
  /* @__PURE__ */ jsx8("span", { css: styles8.infoValue, children: focusedItem.cdnPushed ? "Pushed" : "Not pushed" })
4471
+ ] }),
4472
+ /* @__PURE__ */ jsxs8("div", { css: styles8.infoRow, children: [
4473
+ /* @__PURE__ */ jsx8("span", { css: styles8.infoLabel, children: "URL" }),
4474
+ /* @__PURE__ */ jsx8("span", { css: styles8.infoValueWrap, title: fullUrl, children: fullUrl })
4469
4475
  ] })
4470
4476
  ] }),
4471
4477
  /* @__PURE__ */ jsxs8("div", { css: styles8.actions, children: [
@@ -5454,4 +5460,4 @@ export {
5454
5460
  StudioUI,
5455
5461
  StudioUI_default as default
5456
5462
  };
5457
- //# sourceMappingURL=StudioUI-OIGJK35G.mjs.map
5463
+ //# sourceMappingURL=StudioUI-66GVMRQE.mjs.map