@gallop.software/studio 0.1.101 → 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.
- package/dist/{StudioUI-CJJDDI7H.js → StudioUI-EQUC2SLZ.js} +28 -5
- package/dist/StudioUI-EQUC2SLZ.js.map +1 -0
- package/dist/{StudioUI-66GVMRQE.mjs → StudioUI-Q6GGHBEH.mjs} +28 -5
- package/dist/{StudioUI-66GVMRQE.mjs.map → StudioUI-Q6GGHBEH.mjs.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/StudioUI-CJJDDI7H.js.map +0 -1
|
@@ -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,10 +4214,10 @@ 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", "");
|
|
4205
4217
|
const relativePath = "/" + focusedItem.path.replace(/^public\//, "");
|
|
4206
|
-
const
|
|
4207
|
-
const
|
|
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}`;
|
|
4208
4221
|
const handleClose = () => {
|
|
4209
4222
|
setFocusedItem(null);
|
|
4210
4223
|
};
|
|
@@ -4471,7 +4484,17 @@ function StudioDetailView() {
|
|
|
4471
4484
|
] }),
|
|
4472
4485
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles8.infoRow, children: [
|
|
4473
4486
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles8.infoLabel, children: "URL" }),
|
|
4474
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
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
|
+
)
|
|
4475
4498
|
] })
|
|
4476
4499
|
] }),
|
|
4477
4500
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles8.actions, children: [
|
|
@@ -5460,4 +5483,4 @@ var StudioUI_default = StudioUI;
|
|
|
5460
5483
|
|
|
5461
5484
|
|
|
5462
5485
|
exports.StudioUI = StudioUI; exports.default = StudioUI_default;
|
|
5463
|
-
//# sourceMappingURL=StudioUI-
|
|
5486
|
+
//# sourceMappingURL=StudioUI-EQUC2SLZ.js.map
|