@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 CHANGED
@@ -1655,20 +1655,17 @@ var DeviceAssetSelector = ({
1655
1655
  apiBaseUrl: assetBaseUrl,
1656
1656
  session
1657
1657
  }
1658
- ) : (
1659
- // eslint-disable-next-line @next/next/no-img-element
1660
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1661
- "img",
1662
- {
1663
- style: styles,
1664
- loading: "lazy",
1665
- className: "object-cover w-full",
1666
- src: resolvedAssetUrl,
1667
- width: selectedAsset.intrinsicWidth,
1668
- height: selectedAsset.intrinsicHeight,
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
- try {
3486
- if (typeof image === "string") {
3487
- assets = JSON.parse(image);
3488
- } else if (Array.isArray(image)) {
3489
- assets = image;
3490
- } else if (image && typeof image === "object") {
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
- // eslint-disable-next-line @next/next/no-img-element
173
- /* @__PURE__ */ jsx3(
174
- "img",
175
- {
176
- style: styles,
177
- loading: "lazy",
178
- className: "object-cover w-full",
179
- src: resolvedAssetUrl,
180
- width: selectedAsset.intrinsicWidth,
181
- height: selectedAsset.intrinsicHeight,
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
- try {
2003
- if (typeof image === "string") {
2004
- assets = JSON.parse(image);
2005
- } else if (Array.isArray(image)) {
2006
- assets = image;
2007
- } else if (image && typeof image === "object") {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260523055026",
3
+ "version": "0.8.1-dev.20260523060518",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",