@gallop.software/studio 0.1.100 → 0.1.102

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.
@@ -4148,6 +4148,19 @@ var styles8 = {
4148
4148
  word-break: break-all;
4149
4149
  white-space: normal;
4150
4150
  `,
4151
+ infoLink: _react3.css`
4152
+ color: ${_chunkUFCWGUAGjs.colors.primary};
4153
+ font-weight: 500;
4154
+ text-align: right;
4155
+ max-width: 160px;
4156
+ word-break: break-all;
4157
+ white-space: normal;
4158
+ text-decoration: none;
4159
+
4160
+ &:hover {
4161
+ text-decoration: underline;
4162
+ }
4163
+ `,
4151
4164
  actions: _react3.css`
4152
4165
  display: flex;
4153
4166
  flex-direction: column;
@@ -4201,13 +4214,15 @@ function StudioDetailView() {
4201
4214
  if (!focusedItem) return null;
4202
4215
  const isImage = isImageFile(focusedItem.name);
4203
4216
  const isVideo = isVideoFile(focusedItem.name);
4204
- const imageSrc = focusedItem.path.replace("public", "");
4217
+ const relativePath = "/" + focusedItem.path.replace(/^public\//, "");
4218
+ const imageSrc = focusedItem.cdnPushed && focusedItem.cdnBaseUrl ? `${focusedItem.cdnBaseUrl}${relativePath}` : relativePath;
4219
+ const localOrigin = typeof window !== "undefined" ? window.location.origin : "";
4220
+ const fullUrl = focusedItem.cdnPushed && focusedItem.cdnBaseUrl ? `${focusedItem.cdnBaseUrl}${relativePath}` : `${localOrigin}${relativePath}`;
4205
4221
  const handleClose = () => {
4206
4222
  setFocusedItem(null);
4207
4223
  };
4208
4224
  const handleCopyPath = () => {
4209
- const pathToCopy = "/" + focusedItem.path.replace(/^public\//, "");
4210
- navigator.clipboard.writeText(pathToCopy);
4225
+ navigator.clipboard.writeText(fullUrl);
4211
4226
  setShowCopied(true);
4212
4227
  setTimeout(() => setShowCopied(false), 1500);
4213
4228
  };
@@ -4466,6 +4481,20 @@ function StudioDetailView() {
4466
4481
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles8.infoRow, children: [
4467
4482
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles8.infoLabel, children: "CDN Status" }),
4468
4483
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles8.infoValue, children: focusedItem.cdnPushed ? "Pushed" : "Not pushed" })
4484
+ ] }),
4485
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles8.infoRow, children: [
4486
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles8.infoLabel, children: "URL" }),
4487
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4488
+ "a",
4489
+ {
4490
+ href: fullUrl,
4491
+ target: "_blank",
4492
+ rel: "noopener noreferrer",
4493
+ css: styles8.infoLink,
4494
+ title: fullUrl,
4495
+ children: fullUrl
4496
+ }
4497
+ )
4469
4498
  ] })
4470
4499
  ] }),
4471
4500
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles8.actions, children: [
@@ -5454,4 +5483,4 @@ var StudioUI_default = StudioUI;
5454
5483
 
5455
5484
 
5456
5485
  exports.StudioUI = StudioUI; exports.default = StudioUI_default;
5457
- //# sourceMappingURL=StudioUI-CX3KPS57.js.map
5486
+ //# sourceMappingURL=StudioUI-EQUC2SLZ.js.map