@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260623061321 → 0.8.1-dev.20260623114244
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/index.js +7 -6
- package/dist/index.mjs +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6117,6 +6117,7 @@ var DocumentNode = (props) => {
|
|
|
6117
6117
|
if (trimmed.startsWith("[") || trimmed.startsWith("{")) {
|
|
6118
6118
|
try {
|
|
6119
6119
|
const parsed = JSON.parse(trimmed);
|
|
6120
|
+
console.log("parsed doc:", parsed);
|
|
6120
6121
|
const asset = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
6121
6122
|
if (asset && asset.assetUrl) {
|
|
6122
6123
|
documentUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, asset.assetUrl);
|
|
@@ -6141,7 +6142,7 @@ var DocumentNode = (props) => {
|
|
|
6141
6142
|
}
|
|
6142
6143
|
}
|
|
6143
6144
|
}
|
|
6144
|
-
documentUrl
|
|
6145
|
+
if (!documentUrl) return null;
|
|
6145
6146
|
const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
|
|
6146
6147
|
if (!documentTitle) {
|
|
6147
6148
|
try {
|
|
@@ -6152,12 +6153,12 @@ var DocumentNode = (props) => {
|
|
|
6152
6153
|
}
|
|
6153
6154
|
documentTitle = documentTitle.replace(/\.[^/.]+$/, "");
|
|
6154
6155
|
}
|
|
6155
|
-
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-center justify-between py-4 border-b
|
|
6156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-center justify-between py-4 border-b bg-default", children: [
|
|
6156
6157
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
6157
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-
|
|
6158
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-secondary-soft border", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon2, {}) }),
|
|
6158
6159
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-baseline space-x-2", children: [
|
|
6159
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("h4", { className: "text-base font-semibold
|
|
6160
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("span", { className: "text-sm font-medium
|
|
6160
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }),
|
|
6161
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("span", { className: "text-sm font-medium", children: [
|
|
6161
6162
|
"(",
|
|
6162
6163
|
extLabel,
|
|
6163
6164
|
")"
|
|
@@ -6171,7 +6172,7 @@ var DocumentNode = (props) => {
|
|
|
6171
6172
|
download: true,
|
|
6172
6173
|
target: "_blank",
|
|
6173
6174
|
rel: "noreferrer",
|
|
6174
|
-
className: "inline-flex items-center px-4 py-2 text-sm font-medium
|
|
6175
|
+
className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
|
|
6175
6176
|
children: [
|
|
6176
6177
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("svg", { className: "w-4 h-4 mr-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6177
6178
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" }),
|
package/dist/index.mjs
CHANGED
|
@@ -4511,6 +4511,7 @@ var DocumentNode = (props) => {
|
|
|
4511
4511
|
if (trimmed.startsWith("[") || trimmed.startsWith("{")) {
|
|
4512
4512
|
try {
|
|
4513
4513
|
const parsed = JSON.parse(trimmed);
|
|
4514
|
+
console.log("parsed doc:", parsed);
|
|
4514
4515
|
const asset = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
4515
4516
|
if (asset && asset.assetUrl) {
|
|
4516
4517
|
documentUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, asset.assetUrl);
|
|
@@ -4535,7 +4536,7 @@ var DocumentNode = (props) => {
|
|
|
4535
4536
|
}
|
|
4536
4537
|
}
|
|
4537
4538
|
}
|
|
4538
|
-
documentUrl
|
|
4539
|
+
if (!documentUrl) return null;
|
|
4539
4540
|
const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
|
|
4540
4541
|
if (!documentTitle) {
|
|
4541
4542
|
try {
|
|
@@ -4546,12 +4547,12 @@ var DocumentNode = (props) => {
|
|
|
4546
4547
|
}
|
|
4547
4548
|
documentTitle = documentTitle.replace(/\.[^/.]+$/, "");
|
|
4548
4549
|
}
|
|
4549
|
-
return /* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-between py-4 border-b
|
|
4550
|
+
return /* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-between py-4 border-b bg-default", children: [
|
|
4550
4551
|
/* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-4", children: [
|
|
4551
|
-
/* @__PURE__ */ jsx60("div", { className: "flex items-center justify-center p-2 rounded bg-
|
|
4552
|
+
/* @__PURE__ */ jsx60("div", { className: "flex items-center justify-center p-2 rounded bg-secondary-soft border", children: /* @__PURE__ */ jsx60(Icon2, {}) }),
|
|
4552
4553
|
/* @__PURE__ */ jsxs33("div", { className: "flex items-baseline space-x-2", children: [
|
|
4553
|
-
/* @__PURE__ */ jsx60("h4", { className: "text-base font-semibold
|
|
4554
|
-
/* @__PURE__ */ jsxs33("span", { className: "text-sm font-medium
|
|
4554
|
+
/* @__PURE__ */ jsx60("h4", { className: "text-base font-semibold", children: documentTitle }),
|
|
4555
|
+
/* @__PURE__ */ jsxs33("span", { className: "text-sm font-medium", children: [
|
|
4555
4556
|
"(",
|
|
4556
4557
|
extLabel,
|
|
4557
4558
|
")"
|
|
@@ -4565,7 +4566,7 @@ var DocumentNode = (props) => {
|
|
|
4565
4566
|
download: true,
|
|
4566
4567
|
target: "_blank",
|
|
4567
4568
|
rel: "noreferrer",
|
|
4568
|
-
className: "inline-flex items-center px-4 py-2 text-sm font-medium
|
|
4569
|
+
className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
|
|
4569
4570
|
children: [
|
|
4570
4571
|
/* @__PURE__ */ jsxs33("svg", { className: "w-4 h-4 mr-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4571
4572
|
/* @__PURE__ */ jsx60("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" }),
|
package/package.json
CHANGED