@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260523055026 → 0.8.1-dev.20260523060518
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 +17 -23
- package/dist/index.mjs +17 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1655,20 +1655,17 @@ var DeviceAssetSelector = ({
|
|
|
1655
1655
|
apiBaseUrl: assetBaseUrl,
|
|
1656
1656
|
session
|
|
1657
1657
|
}
|
|
1658
|
-
) : (
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
alt: title || "Asset image"
|
|
1670
|
-
}
|
|
1671
|
-
)
|
|
1658
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1659
|
+
"img",
|
|
1660
|
+
{
|
|
1661
|
+
style: styles,
|
|
1662
|
+
loading: "lazy",
|
|
1663
|
+
className: "object-cover w-full",
|
|
1664
|
+
src: resolvedAssetUrl,
|
|
1665
|
+
width: selectedAsset.intrinsicWidth,
|
|
1666
|
+
height: selectedAsset.intrinsicHeight,
|
|
1667
|
+
alt: title || "Asset image"
|
|
1668
|
+
}
|
|
1672
1669
|
);
|
|
1673
1670
|
if (width) return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { width }, children: renderMedia() });
|
|
1674
1671
|
if (nodeProps?.format) {
|
|
@@ -3482,15 +3479,12 @@ var ImageNode = (props) => {
|
|
|
3482
3479
|
posterUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.posterUrl);
|
|
3483
3480
|
} else if (props.dataitem && props.node.datafield) {
|
|
3484
3481
|
const image = getNestedValue(props.dataitem, props.node.datafield);
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
assets = [image];
|
|
3492
|
-
}
|
|
3493
|
-
} catch {
|
|
3482
|
+
if (typeof image === "string") {
|
|
3483
|
+
assets = JSON.parse(image);
|
|
3484
|
+
} else if (Array.isArray(image)) {
|
|
3485
|
+
assets = image;
|
|
3486
|
+
} else if (image && typeof image === "object") {
|
|
3487
|
+
assets = [image];
|
|
3494
3488
|
}
|
|
3495
3489
|
if (assets && assets.length > 0) {
|
|
3496
3490
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -168,20 +168,17 @@ var DeviceAssetSelector = ({
|
|
|
168
168
|
apiBaseUrl: assetBaseUrl,
|
|
169
169
|
session
|
|
170
170
|
}
|
|
171
|
-
) : (
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
alt: title || "Asset image"
|
|
183
|
-
}
|
|
184
|
-
)
|
|
171
|
+
) : /* @__PURE__ */ jsx3(
|
|
172
|
+
"img",
|
|
173
|
+
{
|
|
174
|
+
style: styles,
|
|
175
|
+
loading: "lazy",
|
|
176
|
+
className: "object-cover w-full",
|
|
177
|
+
src: resolvedAssetUrl,
|
|
178
|
+
width: selectedAsset.intrinsicWidth,
|
|
179
|
+
height: selectedAsset.intrinsicHeight,
|
|
180
|
+
alt: title || "Asset image"
|
|
181
|
+
}
|
|
185
182
|
);
|
|
186
183
|
if (width) return /* @__PURE__ */ jsx3("div", { style: { width }, children: renderMedia() });
|
|
187
184
|
if (nodeProps?.format) {
|
|
@@ -1999,15 +1996,12 @@ var ImageNode = (props) => {
|
|
|
1999
1996
|
posterUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl, props.node.posterUrl);
|
|
2000
1997
|
} else if (props.dataitem && props.node.datafield) {
|
|
2001
1998
|
const image = getNestedValue(props.dataitem, props.node.datafield);
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
assets = [image];
|
|
2009
|
-
}
|
|
2010
|
-
} catch {
|
|
1999
|
+
if (typeof image === "string") {
|
|
2000
|
+
assets = JSON.parse(image);
|
|
2001
|
+
} else if (Array.isArray(image)) {
|
|
2002
|
+
assets = image;
|
|
2003
|
+
} else if (image && typeof image === "object") {
|
|
2004
|
+
assets = [image];
|
|
2011
2005
|
}
|
|
2012
2006
|
if (assets && assets.length > 0) {
|
|
2013
2007
|
return /* @__PURE__ */ jsx38(
|
package/package.json
CHANGED