@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260323121228 → 0.8.1-dev.20260323130039

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.d.mts CHANGED
@@ -205,7 +205,7 @@ interface PageBodyRendererProps {
205
205
  donotApplyContainerLargeClass?: boolean;
206
206
  widgetRegistry?: Record<string, React.ComponentType<any>>;
207
207
  serviceClient?: ServiceClientInterface;
208
- resolveAssetUrl?: (assetUrl: string) => string | undefined;
208
+ assetBaseUrl?: string;
209
209
  dataMap?: Record<string, any>;
210
210
  }
211
211
  declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
package/dist/index.d.ts CHANGED
@@ -205,7 +205,7 @@ interface PageBodyRendererProps {
205
205
  donotApplyContainerLargeClass?: boolean;
206
206
  widgetRegistry?: Record<string, React.ComponentType<any>>;
207
207
  serviceClient?: ServiceClientInterface;
208
- resolveAssetUrl?: (assetUrl: string) => string | undefined;
208
+ assetBaseUrl?: string;
209
209
  dataMap?: Record<string, any>;
210
210
  }
211
211
  declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
package/dist/index.js CHANGED
@@ -2541,7 +2541,7 @@ var DataList = (props) => {
2541
2541
  var DataList_default = DataList;
2542
2542
 
2543
2543
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2544
- var import_react54 = __toESM(require("react"));
2544
+ var import_react53 = __toESM(require("react"));
2545
2545
 
2546
2546
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
2547
2547
  var import_react36 = __toESM(require("react"));
@@ -3032,15 +3032,20 @@ var HorizontalRuleNode = (props) => {
3032
3032
  var HorizontalRuleNode_default = HorizontalRuleNode;
3033
3033
 
3034
3034
  // src/components/pageRenderingEngine/nodes/LayoutItemNode.tsx
3035
- var import_react48 = __toESM(require("react"));
3035
+ var import_react47 = __toESM(require("react"));
3036
3036
 
3037
3037
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
3038
- var import_react43 = __toESM(require("react"));
3039
3038
  var import_jsx_runtime55 = require("react/jsx-runtime");
3040
3039
  var ImageNode = (props) => {
3041
- const { node, apiBaseUrl = "" } = props;
3042
- let imageUrl = node.imageUrl.startsWith("http") ? node.imageUrl : `${apiBaseUrl}/digitalassets/storefront/${node.imageUrl}`;
3043
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react43.default.Fragment, { children: node.width ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { width: node.width }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3040
+ const { node, assetBaseUrl = "" } = props;
3041
+ if (!node.imageUrl) return null;
3042
+ let imageUrl;
3043
+ if (node.imageUrl.startsWith("http")) {
3044
+ imageUrl = node.imageUrl;
3045
+ } else {
3046
+ imageUrl = assetBaseUrl ? `${assetBaseUrl}/${node.imageUrl}` : node.imageUrl;
3047
+ }
3048
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: node.width ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { width: node.width }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3044
3049
  "img",
3045
3050
  {
3046
3051
  loading: "lazy",
@@ -3065,7 +3070,7 @@ var ImageNode = (props) => {
3065
3070
  var ImageNode_default = ImageNode;
3066
3071
 
3067
3072
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
3068
- var import_react44 = require("react");
3073
+ var import_react43 = require("react");
3069
3074
  var import_jsx_runtime56 = require("react/jsx-runtime");
3070
3075
  var WidgetNode = (props) => {
3071
3076
  const getWidgetParameters = () => {
@@ -3126,7 +3131,7 @@ var WidgetNode = (props) => {
3126
3131
  props.node.widgetCode
3127
3132
  ] });
3128
3133
  }
3129
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react44.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "container mt-2", children: "..." }), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3134
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react43.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "container mt-2", children: "..." }), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3130
3135
  SelectedWidget,
3131
3136
  {
3132
3137
  params: getWidgetParameters(),
@@ -3141,13 +3146,13 @@ var WidgetNode = (props) => {
3141
3146
  var WidgetNode_default = WidgetNode;
3142
3147
 
3143
3148
  // src/components/pageRenderingEngine/nodes/IframeClient.tsx
3144
- var import_react46 = __toESM(require("react"));
3149
+ var import_react45 = __toESM(require("react"));
3145
3150
 
3146
3151
  // src/components/IFrameLoaderView.tsx
3147
- var import_react45 = __toESM(require("react"));
3152
+ var import_react44 = __toESM(require("react"));
3148
3153
  var import_jsx_runtime57 = require("react/jsx-runtime");
3149
3154
  var IFrameLoaderView = (props) => {
3150
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react45.default.Fragment, { children: [
3155
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react44.default.Fragment, { children: [
3151
3156
  props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
3152
3157
  /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center mb-4", children: [
3153
3158
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
@@ -3188,10 +3193,10 @@ var IFrameLoaderView_default = IFrameLoaderView;
3188
3193
  // src/components/pageRenderingEngine/nodes/IframeClient.tsx
3189
3194
  var import_jsx_runtime58 = require("react/jsx-runtime");
3190
3195
  var IframeClient = ({ src }) => {
3191
- const iframeRef = (0, import_react46.useRef)(null);
3192
- const [iframeHeight, setIframeHeight] = (0, import_react46.useState)("100%");
3193
- const [isDataFound, setIsDataFound] = (0, import_react46.useState)(null);
3194
- (0, import_react46.useEffect)(() => {
3196
+ const iframeRef = (0, import_react45.useRef)(null);
3197
+ const [iframeHeight, setIframeHeight] = (0, import_react45.useState)("100%");
3198
+ const [isDataFound, setIsDataFound] = (0, import_react45.useState)(null);
3199
+ (0, import_react45.useEffect)(() => {
3195
3200
  const handleReceiveMessage = (event) => {
3196
3201
  const eventName = event?.data?.eventName;
3197
3202
  const payload = event?.data?.payload;
@@ -3206,7 +3211,7 @@ var IframeClient = ({ src }) => {
3206
3211
  window.addEventListener("message", handleReceiveMessage);
3207
3212
  return () => window.removeEventListener("message", handleReceiveMessage);
3208
3213
  }, []);
3209
- (0, import_react46.useEffect)(() => {
3214
+ (0, import_react45.useEffect)(() => {
3210
3215
  const handleResize = () => {
3211
3216
  if (iframeRef.current) {
3212
3217
  iframeRef.current.contentWindow?.postMessage({ eventName: "RESIZE" }, "*");
@@ -3218,7 +3223,7 @@ var IframeClient = ({ src }) => {
3218
3223
  const handleIframeLoad = () => {
3219
3224
  setIsDataFound(true);
3220
3225
  };
3221
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3226
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react45.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3222
3227
  "iframe",
3223
3228
  {
3224
3229
  ref: iframeRef,
@@ -3247,7 +3252,7 @@ var EmbedNode = (props) => {
3247
3252
  var EmbedNode_default = EmbedNode;
3248
3253
 
3249
3254
  // src/components/pageRenderingEngine/nodes/VideoNode.tsx
3250
- var import_react47 = __toESM(require("react"));
3255
+ var import_react46 = __toESM(require("react"));
3251
3256
  var import_jsx_runtime60 = require("react/jsx-runtime");
3252
3257
  var VideoNode = (props) => {
3253
3258
  let src;
@@ -3256,7 +3261,7 @@ var VideoNode = (props) => {
3256
3261
  } else if (props.node.provider == "bunny") {
3257
3262
  src = `https://iframe.mediadelivery.net/embed/${props.node.videoId}?autoplay=false&loop=false&muted=false&preload=true&responsive=true`;
3258
3263
  }
3259
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react47.default.Fragment, { children: src && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("iframe", { className: "w-full aspect-video rounded", src, loading: "lazy", allow: "accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;", allowFullScreen: true }) });
3264
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react46.default.Fragment, { children: src && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("iframe", { className: "w-full aspect-video rounded", src, loading: "lazy", allow: "accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;", allowFullScreen: true }) });
3260
3265
  };
3261
3266
  var VideoNode_default = VideoNode;
3262
3267
 
@@ -3322,11 +3327,11 @@ var LayoutItemNode = (props) => {
3322
3327
  } else {
3323
3328
  updatedLayout = removeParagraphsAtStartAndEnd(props.node);
3324
3329
  }
3325
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react48.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "layout-item " + cssClasses, style: { ...styles }, children: updatedLayout.children.map((node, index) => {
3330
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "layout-item " + cssClasses, style: { ...styles }, children: updatedLayout.children.map((node, index) => {
3326
3331
  {
3327
3332
  }
3328
3333
  const SelectedNode = NodeTypes2[node.type];
3329
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react48.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3334
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react47.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3330
3335
  SelectedNode,
3331
3336
  {
3332
3337
  node,
@@ -3470,7 +3475,7 @@ var LayoutContainerNode = (props) => {
3470
3475
  var LayoutContainerNode_default = LayoutContainerNode;
3471
3476
 
3472
3477
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
3473
- var import_react49 = __toESM(require("react"));
3478
+ var import_react48 = __toESM(require("react"));
3474
3479
 
3475
3480
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
3476
3481
  var import_jsx_runtime63 = require("react/jsx-runtime");
@@ -3510,13 +3515,13 @@ var FormContainerNode = (props) => {
3510
3515
  ["input-control"]: InputControlNode_default
3511
3516
  };
3512
3517
  const { node } = props;
3513
- const formRef = (0, import_react49.useRef)(null);
3518
+ const formRef = (0, import_react48.useRef)(null);
3514
3519
  const initialState = {
3515
3520
  inputValues: {},
3516
3521
  lastPropertyChanged: ""
3517
3522
  };
3518
- const [formState, dispatch] = (0, import_react49.useReducer)(FormReducer_default, initialState);
3519
- const handleInputChange = (0, import_react49.useCallback)((updatedValues) => {
3523
+ const [formState, dispatch] = (0, import_react48.useReducer)(FormReducer_default, initialState);
3524
+ const handleInputChange = (0, import_react48.useCallback)((updatedValues) => {
3520
3525
  dispatch({ type: FORM_INPUT_UPDATE, name: updatedValues.name, value: updatedValues.value });
3521
3526
  }, [dispatch]);
3522
3527
  const onValidate = async () => {
@@ -3527,7 +3532,7 @@ var FormContainerNode = (props) => {
3527
3532
  return true;
3528
3533
  }
3529
3534
  };
3530
- (0, import_react49.useEffect)(() => {
3535
+ (0, import_react48.useEffect)(() => {
3531
3536
  const fetchInitialData = async () => {
3532
3537
  if (!props.fetchData || !node.dataFetchApi) return;
3533
3538
  const response = await props.fetchData(
@@ -3549,7 +3554,7 @@ var FormContainerNode = (props) => {
3549
3554
  {
3550
3555
  }
3551
3556
  const SelectedNode = NodeTypes2[node2.type];
3552
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react49.default.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3557
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react48.default.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3553
3558
  InputControlNode_default,
3554
3559
  {
3555
3560
  value: formState.inputValues[node2.name],
@@ -3564,7 +3569,7 @@ var FormContainerNode = (props) => {
3564
3569
  var FormContainerNode_default = FormContainerNode;
3565
3570
 
3566
3571
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
3567
- var import_react53 = __toESM(require("react"));
3572
+ var import_react52 = __toESM(require("react"));
3568
3573
 
3569
3574
  // src/components/utilities/AnimationUtility.tsx
3570
3575
  var AnimationUtility = class {
@@ -3675,11 +3680,11 @@ var AnimationUtility = class {
3675
3680
  var AnimationUtility_default = AnimationUtility;
3676
3681
 
3677
3682
  // src/components/Pagination.tsx
3678
- var import_react50 = require("react");
3683
+ var import_react49 = require("react");
3679
3684
  var import_jsx_runtime65 = require("react/jsx-runtime");
3680
3685
  var Pagination = (props) => {
3681
3686
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3682
- const builder = (0, import_react50.useMemo)(() => {
3687
+ const builder = (0, import_react49.useMemo)(() => {
3683
3688
  const b = new OdataBuilder(path);
3684
3689
  if (query) b.setQuery(query);
3685
3690
  return b;
@@ -3894,11 +3899,11 @@ var PathUtility = class {
3894
3899
  var PathUtility_default = new PathUtility();
3895
3900
 
3896
3901
  // src/components/pageRenderingEngine/nodes/EnterAnimationClient.tsx
3897
- var import_react51 = __toESM(require("react"));
3902
+ var import_react50 = __toESM(require("react"));
3898
3903
  var import_jsx_runtime66 = require("react/jsx-runtime");
3899
3904
  function EnterAnimationClient({ hasEnterAnimation, children }) {
3900
- const ref = (0, import_react51.useRef)(null);
3901
- (0, import_react51.useEffect)(() => {
3905
+ const ref = (0, import_react50.useRef)(null);
3906
+ (0, import_react50.useEffect)(() => {
3902
3907
  if (!hasEnterAnimation || !ref.current) return;
3903
3908
  const observer = new IntersectionObserver(
3904
3909
  (entries) => {
@@ -3916,11 +3921,11 @@ function EnterAnimationClient({ hasEnterAnimation, children }) {
3916
3921
  }, [hasEnterAnimation]);
3917
3922
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: children && // enforce passing the ref to Wrapper
3918
3923
  //@ts-ignore
3919
- import_react51.default.cloneElement(children, { ref }) });
3924
+ import_react50.default.cloneElement(children, { ref }) });
3920
3925
  }
3921
3926
 
3922
3927
  // src/components/Slider.tsx
3923
- var import_react52 = __toESM(require("react"));
3928
+ var import_react51 = __toESM(require("react"));
3924
3929
  var import_jsx_runtime67 = require("react/jsx-runtime");
3925
3930
  var Slider = ({
3926
3931
  children,
@@ -3939,13 +3944,13 @@ var Slider = ({
3939
3944
  pillStyle = "cumulative",
3940
3945
  progressPosition = "bottom"
3941
3946
  }) => {
3942
- const [currentSlide, setCurrentSlide] = (0, import_react52.useState)(0);
3943
- const [transition, setTransition] = (0, import_react52.useState)(true);
3944
- const [slidesToShowState, setSlidesToShowState] = (0, import_react52.useState)(
3947
+ const [currentSlide, setCurrentSlide] = (0, import_react51.useState)(0);
3948
+ const [transition, setTransition] = (0, import_react51.useState)(true);
3949
+ const [slidesToShowState, setSlidesToShowState] = (0, import_react51.useState)(
3945
3950
  typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
3946
3951
  );
3947
- const [isPlaying, setIsPlaying] = (0, import_react52.useState)(autoplay);
3948
- (0, import_react52.useEffect)(() => {
3952
+ const [isPlaying, setIsPlaying] = (0, import_react51.useState)(autoplay);
3953
+ (0, import_react51.useEffect)(() => {
3949
3954
  if (typeof slidesToShow === "number") return;
3950
3955
  const handleResize = () => {
3951
3956
  if (window.innerWidth >= 1024) {
@@ -3960,7 +3965,7 @@ var Slider = ({
3960
3965
  window.addEventListener("resize", handleResize);
3961
3966
  return () => window.removeEventListener("resize", handleResize);
3962
3967
  }, [slidesToShow]);
3963
- (0, import_react52.useEffect)(() => {
3968
+ (0, import_react51.useEffect)(() => {
3964
3969
  if (!autoplay) return;
3965
3970
  const timer = setInterval(() => {
3966
3971
  if (isPlaying) {
@@ -3969,7 +3974,7 @@ var Slider = ({
3969
3974
  }, autoplay_speed);
3970
3975
  return () => clearInterval(timer);
3971
3976
  }, [autoplay, autoplay_speed, currentSlide, isPlaying]);
3972
- const totalSlides = import_react52.Children.count(children);
3977
+ const totalSlides = import_react51.Children.count(children);
3973
3978
  const maxSlide = totalSlides - slidesToShowState;
3974
3979
  const nextSlide = () => {
3975
3980
  if (currentSlide >= maxSlide) {
@@ -4014,8 +4019,8 @@ var Slider = ({
4014
4019
  }
4015
4020
  };
4016
4021
  const translateX = -currentSlide * (100 / slidesToShowState);
4017
- const slides = import_react52.Children.map(children, (child, index) => {
4018
- if (!import_react52.default.isValidElement(child)) return null;
4022
+ const slides = import_react51.Children.map(children, (child, index) => {
4023
+ if (!import_react51.default.isValidElement(child)) return null;
4019
4024
  const childProps = child.props;
4020
4025
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
4021
4026
  return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
@@ -4023,7 +4028,7 @@ var Slider = ({
4023
4028
  {
4024
4029
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
4025
4030
  style: { width: `calc(${100 / slidesToShowState}%)`, paddingRight: gap },
4026
- children: (0, import_react52.cloneElement)(child, {
4031
+ children: (0, import_react51.cloneElement)(child, {
4027
4032
  className: mergedClassName
4028
4033
  })
4029
4034
  },
@@ -4136,13 +4141,13 @@ var ProgressPill = ({
4136
4141
  currentSlide,
4137
4142
  totalSlides
4138
4143
  }) => {
4139
- const [progress, setProgress] = (0, import_react52.useState)(0);
4140
- (0, import_react52.useEffect)(() => {
4144
+ const [progress, setProgress] = (0, import_react51.useState)(0);
4145
+ (0, import_react51.useEffect)(() => {
4141
4146
  if (active) {
4142
4147
  setProgress(0);
4143
4148
  }
4144
4149
  }, [active, index]);
4145
- (0, import_react52.useEffect)(() => {
4150
+ (0, import_react51.useEffect)(() => {
4146
4151
  if (!active || !isPlaying) {
4147
4152
  if (!active) {
4148
4153
  setProgress(0);
@@ -4285,13 +4290,13 @@ var getNestedValue = (obj, path) => {
4285
4290
  return current && current[key] !== void 0 ? current[key] : void 0;
4286
4291
  }, obj);
4287
4292
  };
4288
- function generateCompleteBackgroundString(layers, resolveAssetUrl, apiBaseUrl) {
4293
+ function generateCompleteBackgroundString(layers, apiBaseUrl) {
4289
4294
  if (!layers || !Array.isArray(layers)) return "";
4290
4295
  return layers.filter((layer) => layer && layer.type && layer.value).map((layer) => {
4291
4296
  if (layer.type === "image" && typeof layer.value === "object") {
4292
4297
  const imageValue = layer.value;
4293
4298
  if (!imageValue.assetUrl) return "";
4294
- const resolvedAssetUrl = resolveAssetUrl?.(imageValue.assetUrl) ?? AssetUtility_default.resolveUrl(apiBaseUrl, imageValue.assetUrl);
4299
+ const resolvedAssetUrl = AssetUtility_default.resolveUrl(apiBaseUrl, imageValue.assetUrl);
4295
4300
  if (!resolvedAssetUrl) return "";
4296
4301
  const url = `url('${resolvedAssetUrl}')`;
4297
4302
  const repeat = layer.repeat || "no-repeat";
@@ -4379,7 +4384,7 @@ var DivContainer = async (props) => {
4379
4384
  const updatedStyles = convertKeysToCamelCase(styles);
4380
4385
  var background = generateCompleteBackgroundString(
4381
4386
  props.node.backgroundLayers,
4382
- props.resolveAssetUrl,
4387
+ // props.resolveAssetUrl,
4383
4388
  props.apiBaseUrl
4384
4389
  );
4385
4390
  let containerPaddingClass = "";
@@ -4434,7 +4439,7 @@ var DivContainer = async (props) => {
4434
4439
  function renderNode(node, props2, dataitem, key, href) {
4435
4440
  const SelectedNode = NodeTypes2[node.type];
4436
4441
  if (!SelectedNode) return null;
4437
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4442
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4438
4443
  SelectedNode,
4439
4444
  {
4440
4445
  node,
@@ -4445,7 +4450,7 @@ var DivContainer = async (props) => {
4445
4450
  host: props2.host,
4446
4451
  path: props2.path,
4447
4452
  apiBaseUrl: props2.apiBaseUrl,
4448
- resolveAssetUrl: props2.resolveAssetUrl,
4453
+ assetBaseUrl: props2.assetBaseUrl,
4449
4454
  breadcrumb: props2.breadcrumb,
4450
4455
  dataitem,
4451
4456
  href,
@@ -4531,9 +4536,9 @@ var DivContainer = async (props) => {
4531
4536
  props.node.autoFormat && "auto-format",
4532
4537
  props.node.bgClass
4533
4538
  ].filter(Boolean).join(" ");
4534
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react53.default.Fragment, { children: [
4539
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react52.default.Fragment, { children: [
4535
4540
  /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4536
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(EnterAnimationClient, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4541
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(EnterAnimationClient, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4537
4542
  Wrapper,
4538
4543
  {
4539
4544
  id: guid,
@@ -4542,7 +4547,7 @@ var DivContainer = async (props) => {
4542
4547
  ...wrapperProps,
4543
4548
  children: dataToRender.map(
4544
4549
  (item, idx) => item?.links?.view && renderLink ? renderChildren(props.node.children, props, item, idx, props.href ? void 0 : item?.links?.view)?.map(
4545
- (child, i) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react53.default.Fragment, { children: child }, i)
4550
+ (child, i) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react52.default.Fragment, { children: child }, i)
4546
4551
  ) : renderChildren(props.node.children, props, item, idx)
4547
4552
  )
4548
4553
  }
@@ -4581,11 +4586,11 @@ var PageBodyRenderer = (props) => {
4581
4586
  if (pageBodyTree && pageBodyTree.root) {
4582
4587
  rootNode = pageBodyTree.root;
4583
4588
  }
4584
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react54.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4589
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react53.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4585
4590
  {
4586
4591
  }
4587
4592
  const SelectedNode = NodeTypes[node.type];
4588
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react54.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react54.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4593
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react53.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4589
4594
  SelectedNode,
4590
4595
  {
4591
4596
  node,
@@ -4598,10 +4603,10 @@ var PageBodyRenderer = (props) => {
4598
4603
  apiBaseUrl: props.apiBaseUrl,
4599
4604
  widgetRegistry: props.widgetRegistry,
4600
4605
  serviceClient: props.serviceClient,
4601
- resolveAssetUrl: props.resolveAssetUrl,
4606
+ assetBaseUrl: props.assetBaseUrl,
4602
4607
  dataMap: props.dataMap
4603
4608
  }
4604
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4609
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4605
4610
  SelectedNode,
4606
4611
  {
4607
4612
  node,
@@ -4613,7 +4618,7 @@ var PageBodyRenderer = (props) => {
4613
4618
  apiBaseUrl: props.apiBaseUrl,
4614
4619
  widgetRegistry: props.widgetRegistry,
4615
4620
  serviceClient: props.serviceClient,
4616
- resolveAssetUrl: props.resolveAssetUrl,
4621
+ assetBaseUrl: props.assetBaseUrl,
4617
4622
  dataMap: props.dataMap
4618
4623
  }
4619
4624
  ) }) }) }, index);
package/dist/index.mjs CHANGED
@@ -2509,7 +2509,7 @@ var DataList = (props) => {
2509
2509
  var DataList_default = DataList;
2510
2510
 
2511
2511
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2512
- import React53 from "react";
2512
+ import React52 from "react";
2513
2513
 
2514
2514
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
2515
2515
  import React36 from "react";
@@ -3000,15 +3000,20 @@ var HorizontalRuleNode = (props) => {
3000
3000
  var HorizontalRuleNode_default = HorizontalRuleNode;
3001
3001
 
3002
3002
  // src/components/pageRenderingEngine/nodes/LayoutItemNode.tsx
3003
- import React47 from "react";
3003
+ import React46 from "react";
3004
3004
 
3005
3005
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
3006
- import React42 from "react";
3007
- import { jsx as jsx55 } from "react/jsx-runtime";
3006
+ import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
3008
3007
  var ImageNode = (props) => {
3009
- const { node, apiBaseUrl = "" } = props;
3010
- let imageUrl = node.imageUrl.startsWith("http") ? node.imageUrl : `${apiBaseUrl}/digitalassets/storefront/${node.imageUrl}`;
3011
- return /* @__PURE__ */ jsx55(React42.Fragment, { children: node.width ? /* @__PURE__ */ jsx55("div", { style: { width: node.width }, children: /* @__PURE__ */ jsx55(
3008
+ const { node, assetBaseUrl = "" } = props;
3009
+ if (!node.imageUrl) return null;
3010
+ let imageUrl;
3011
+ if (node.imageUrl.startsWith("http")) {
3012
+ imageUrl = node.imageUrl;
3013
+ } else {
3014
+ imageUrl = assetBaseUrl ? `${assetBaseUrl}/${node.imageUrl}` : node.imageUrl;
3015
+ }
3016
+ return /* @__PURE__ */ jsx55(Fragment6, { children: node.width ? /* @__PURE__ */ jsx55("div", { style: { width: node.width }, children: /* @__PURE__ */ jsx55(
3012
3017
  "img",
3013
3018
  {
3014
3019
  loading: "lazy",
@@ -3034,7 +3039,7 @@ var ImageNode_default = ImageNode;
3034
3039
 
3035
3040
  // src/components/pageRenderingEngine/nodes/WidgetNode.tsx
3036
3041
  import { Suspense } from "react";
3037
- import { Fragment as Fragment6, jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
3042
+ import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
3038
3043
  var WidgetNode = (props) => {
3039
3044
  const getWidgetParameters = () => {
3040
3045
  const widgetInputParameters = { ...props.routeParameters ?? {} };
@@ -3089,7 +3094,7 @@ var WidgetNode = (props) => {
3089
3094
  const SelectedWidget = props.widgetRegistry?.[props.node.widgetCode];
3090
3095
  if (!SelectedWidget) {
3091
3096
  console.warn("Widget not found:", props.node.widgetCode);
3092
- return /* @__PURE__ */ jsxs27(Fragment6, { children: [
3097
+ return /* @__PURE__ */ jsxs27(Fragment7, { children: [
3093
3098
  "Widget not found: ",
3094
3099
  props.node.widgetCode
3095
3100
  ] });
@@ -3109,13 +3114,13 @@ var WidgetNode = (props) => {
3109
3114
  var WidgetNode_default = WidgetNode;
3110
3115
 
3111
3116
  // src/components/pageRenderingEngine/nodes/IframeClient.tsx
3112
- import React45, { useEffect as useEffect8, useRef as useRef4, useState as useState9 } from "react";
3117
+ import React44, { useEffect as useEffect8, useRef as useRef4, useState as useState9 } from "react";
3113
3118
 
3114
3119
  // src/components/IFrameLoaderView.tsx
3115
- import React44 from "react";
3120
+ import React43 from "react";
3116
3121
  import { jsx as jsx57, jsxs as jsxs28 } from "react/jsx-runtime";
3117
3122
  var IFrameLoaderView = (props) => {
3118
- return /* @__PURE__ */ jsxs28(React44.Fragment, { children: [
3123
+ return /* @__PURE__ */ jsxs28(React43.Fragment, { children: [
3119
3124
  props.isDataFound == null && /* @__PURE__ */ jsx57("div", { className: "", children: /* @__PURE__ */ jsxs28("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
3120
3125
  /* @__PURE__ */ jsxs28("div", { className: "flex items-center mb-4", children: [
3121
3126
  /* @__PURE__ */ jsx57("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
@@ -3186,7 +3191,7 @@ var IframeClient = ({ src }) => {
3186
3191
  const handleIframeLoad = () => {
3187
3192
  setIsDataFound(true);
3188
3193
  };
3189
- return /* @__PURE__ */ jsx58(React45.Fragment, { children: /* @__PURE__ */ jsx58(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ jsx58(
3194
+ return /* @__PURE__ */ jsx58(React44.Fragment, { children: /* @__PURE__ */ jsx58(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ jsx58(
3190
3195
  "iframe",
3191
3196
  {
3192
3197
  ref: iframeRef,
@@ -3215,7 +3220,7 @@ var EmbedNode = (props) => {
3215
3220
  var EmbedNode_default = EmbedNode;
3216
3221
 
3217
3222
  // src/components/pageRenderingEngine/nodes/VideoNode.tsx
3218
- import React46 from "react";
3223
+ import React45 from "react";
3219
3224
  import { jsx as jsx60 } from "react/jsx-runtime";
3220
3225
  var VideoNode = (props) => {
3221
3226
  let src;
@@ -3224,7 +3229,7 @@ var VideoNode = (props) => {
3224
3229
  } else if (props.node.provider == "bunny") {
3225
3230
  src = `https://iframe.mediadelivery.net/embed/${props.node.videoId}?autoplay=false&loop=false&muted=false&preload=true&responsive=true`;
3226
3231
  }
3227
- return /* @__PURE__ */ jsx60(React46.Fragment, { children: src && /* @__PURE__ */ jsx60("iframe", { className: "w-full aspect-video rounded", src, loading: "lazy", allow: "accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;", allowFullScreen: true }) });
3232
+ return /* @__PURE__ */ jsx60(React45.Fragment, { children: src && /* @__PURE__ */ jsx60("iframe", { className: "w-full aspect-video rounded", src, loading: "lazy", allow: "accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;", allowFullScreen: true }) });
3228
3233
  };
3229
3234
  var VideoNode_default = VideoNode;
3230
3235
 
@@ -3290,11 +3295,11 @@ var LayoutItemNode = (props) => {
3290
3295
  } else {
3291
3296
  updatedLayout = removeParagraphsAtStartAndEnd(props.node);
3292
3297
  }
3293
- return /* @__PURE__ */ jsx61(React47.Fragment, { children: /* @__PURE__ */ jsx61("div", { className: "layout-item " + cssClasses, style: { ...styles }, children: updatedLayout.children.map((node, index) => {
3298
+ return /* @__PURE__ */ jsx61(React46.Fragment, { children: /* @__PURE__ */ jsx61("div", { className: "layout-item " + cssClasses, style: { ...styles }, children: updatedLayout.children.map((node, index) => {
3294
3299
  {
3295
3300
  }
3296
3301
  const SelectedNode = NodeTypes2[node.type];
3297
- return /* @__PURE__ */ jsx61(React47.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx61(
3302
+ return /* @__PURE__ */ jsx61(React46.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx61(
3298
3303
  SelectedNode,
3299
3304
  {
3300
3305
  node,
@@ -3324,7 +3329,7 @@ var AssetUtility = class {
3324
3329
  var AssetUtility_default = AssetUtility;
3325
3330
 
3326
3331
  // src/components/pageRenderingEngine/nodes/LayoutContainerNode.tsx
3327
- import { Fragment as Fragment7, jsx as jsx62, jsxs as jsxs29 } from "react/jsx-runtime";
3332
+ import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs29 } from "react/jsx-runtime";
3328
3333
  var LayoutContainerNode = (props) => {
3329
3334
  const VERTICAL_ALIGNMENT_CLASSES = {
3330
3335
  start: "items-start",
@@ -3408,7 +3413,7 @@ var LayoutContainerNode = (props) => {
3408
3413
  },
3409
3414
  index
3410
3415
  ));
3411
- return /* @__PURE__ */ jsxs29(Fragment7, { children: [
3416
+ return /* @__PURE__ */ jsxs29(Fragment8, { children: [
3412
3417
  sectionWidth === "mixed" && /* @__PURE__ */ jsx62("div", { className: cssClasses, style: styles, children: /* @__PURE__ */ jsx62("div", { className: "container", children: /* @__PURE__ */ jsx62(
3413
3418
  "div",
3414
3419
  {
@@ -3438,7 +3443,7 @@ var LayoutContainerNode = (props) => {
3438
3443
  var LayoutContainerNode_default = LayoutContainerNode;
3439
3444
 
3440
3445
  // src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
3441
- import React48, { useRef as useRef5, useReducer as useReducer2, useCallback as useCallback3, useEffect as useEffect9 } from "react";
3446
+ import React47, { useRef as useRef5, useReducer as useReducer2, useCallback as useCallback3, useEffect as useEffect9 } from "react";
3442
3447
 
3443
3448
  // src/components/pageRenderingEngine/nodes/InputControlNode.tsx
3444
3449
  import { jsx as jsx63 } from "react/jsx-runtime";
@@ -3517,7 +3522,7 @@ var FormContainerNode = (props) => {
3517
3522
  {
3518
3523
  }
3519
3524
  const SelectedNode = NodeTypes2[node2.type];
3520
- return /* @__PURE__ */ jsx64(React48.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx64(
3525
+ return /* @__PURE__ */ jsx64(React47.Fragment, { children: SelectedNode && node2.type == "input-control" && /* @__PURE__ */ jsx64(
3521
3526
  InputControlNode_default,
3522
3527
  {
3523
3528
  value: formState.inputValues[node2.name],
@@ -3532,7 +3537,7 @@ var FormContainerNode = (props) => {
3532
3537
  var FormContainerNode_default = FormContainerNode;
3533
3538
 
3534
3539
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
3535
- import React52 from "react";
3540
+ import React51 from "react";
3536
3541
 
3537
3542
  // src/components/utilities/AnimationUtility.tsx
3538
3543
  var AnimationUtility = class {
@@ -3862,8 +3867,8 @@ var PathUtility = class {
3862
3867
  var PathUtility_default = new PathUtility();
3863
3868
 
3864
3869
  // src/components/pageRenderingEngine/nodes/EnterAnimationClient.tsx
3865
- import React50, { useEffect as useEffect10, useRef as useRef6 } from "react";
3866
- import { Fragment as Fragment8, jsx as jsx66 } from "react/jsx-runtime";
3870
+ import React49, { useEffect as useEffect10, useRef as useRef6 } from "react";
3871
+ import { Fragment as Fragment9, jsx as jsx66 } from "react/jsx-runtime";
3867
3872
  function EnterAnimationClient({ hasEnterAnimation, children }) {
3868
3873
  const ref = useRef6(null);
3869
3874
  useEffect10(() => {
@@ -3882,14 +3887,14 @@ function EnterAnimationClient({ hasEnterAnimation, children }) {
3882
3887
  observer.observe(ref.current);
3883
3888
  return () => observer.disconnect();
3884
3889
  }, [hasEnterAnimation]);
3885
- return /* @__PURE__ */ jsx66(Fragment8, { children: children && // enforce passing the ref to Wrapper
3890
+ return /* @__PURE__ */ jsx66(Fragment9, { children: children && // enforce passing the ref to Wrapper
3886
3891
  //@ts-ignore
3887
- React50.cloneElement(children, { ref }) });
3892
+ React49.cloneElement(children, { ref }) });
3888
3893
  }
3889
3894
 
3890
3895
  // src/components/Slider.tsx
3891
- import React51, { useState as useState11, useEffect as useEffect11, Children, cloneElement } from "react";
3892
- import { Fragment as Fragment9, jsx as jsx67, jsxs as jsxs32 } from "react/jsx-runtime";
3896
+ import React50, { useState as useState11, useEffect as useEffect11, Children, cloneElement } from "react";
3897
+ import { Fragment as Fragment10, jsx as jsx67, jsxs as jsxs32 } from "react/jsx-runtime";
3893
3898
  var Slider = ({
3894
3899
  children,
3895
3900
  slidesToShow = 4,
@@ -3983,7 +3988,7 @@ var Slider = ({
3983
3988
  };
3984
3989
  const translateX = -currentSlide * (100 / slidesToShowState);
3985
3990
  const slides = Children.map(children, (child, index) => {
3986
- if (!React51.isValidElement(child)) return null;
3991
+ if (!React50.isValidElement(child)) return null;
3987
3992
  const childProps = child.props;
3988
3993
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
3989
3994
  return /* @__PURE__ */ jsx67(
@@ -4027,7 +4032,7 @@ var Slider = ({
4027
4032
  children: slides
4028
4033
  }
4029
4034
  ),
4030
- show_arrows && /* @__PURE__ */ jsxs32(Fragment9, { children: [
4035
+ show_arrows && /* @__PURE__ */ jsxs32(Fragment10, { children: [
4031
4036
  /* @__PURE__ */ jsx67(
4032
4037
  ArrowButton,
4033
4038
  {
@@ -4253,13 +4258,13 @@ var getNestedValue = (obj, path) => {
4253
4258
  return current && current[key] !== void 0 ? current[key] : void 0;
4254
4259
  }, obj);
4255
4260
  };
4256
- function generateCompleteBackgroundString(layers, resolveAssetUrl, apiBaseUrl) {
4261
+ function generateCompleteBackgroundString(layers, apiBaseUrl) {
4257
4262
  if (!layers || !Array.isArray(layers)) return "";
4258
4263
  return layers.filter((layer) => layer && layer.type && layer.value).map((layer) => {
4259
4264
  if (layer.type === "image" && typeof layer.value === "object") {
4260
4265
  const imageValue = layer.value;
4261
4266
  if (!imageValue.assetUrl) return "";
4262
- const resolvedAssetUrl = resolveAssetUrl?.(imageValue.assetUrl) ?? AssetUtility_default.resolveUrl(apiBaseUrl, imageValue.assetUrl);
4267
+ const resolvedAssetUrl = AssetUtility_default.resolveUrl(apiBaseUrl, imageValue.assetUrl);
4263
4268
  if (!resolvedAssetUrl) return "";
4264
4269
  const url = `url('${resolvedAssetUrl}')`;
4265
4270
  const repeat = layer.repeat || "no-repeat";
@@ -4347,7 +4352,7 @@ var DivContainer = async (props) => {
4347
4352
  const updatedStyles = convertKeysToCamelCase(styles);
4348
4353
  var background = generateCompleteBackgroundString(
4349
4354
  props.node.backgroundLayers,
4350
- props.resolveAssetUrl,
4355
+ // props.resolveAssetUrl,
4351
4356
  props.apiBaseUrl
4352
4357
  );
4353
4358
  let containerPaddingClass = "";
@@ -4402,7 +4407,7 @@ var DivContainer = async (props) => {
4402
4407
  function renderNode(node, props2, dataitem, key, href) {
4403
4408
  const SelectedNode = NodeTypes2[node.type];
4404
4409
  if (!SelectedNode) return null;
4405
- return /* @__PURE__ */ jsx69(React52.Fragment, { children: /* @__PURE__ */ jsx69(
4410
+ return /* @__PURE__ */ jsx69(React51.Fragment, { children: /* @__PURE__ */ jsx69(
4406
4411
  SelectedNode,
4407
4412
  {
4408
4413
  node,
@@ -4413,7 +4418,7 @@ var DivContainer = async (props) => {
4413
4418
  host: props2.host,
4414
4419
  path: props2.path,
4415
4420
  apiBaseUrl: props2.apiBaseUrl,
4416
- resolveAssetUrl: props2.resolveAssetUrl,
4421
+ assetBaseUrl: props2.assetBaseUrl,
4417
4422
  breadcrumb: props2.breadcrumb,
4418
4423
  dataitem,
4419
4424
  href,
@@ -4499,9 +4504,9 @@ var DivContainer = async (props) => {
4499
4504
  props.node.autoFormat && "auto-format",
4500
4505
  props.node.bgClass
4501
4506
  ].filter(Boolean).join(" ");
4502
- return /* @__PURE__ */ jsxs34(React52.Fragment, { children: [
4507
+ return /* @__PURE__ */ jsxs34(React51.Fragment, { children: [
4503
4508
  /* @__PURE__ */ jsx69("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
4504
- /* @__PURE__ */ jsx69(EnterAnimationClient, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ jsx69(React52.Fragment, { children: /* @__PURE__ */ jsx69(
4509
+ /* @__PURE__ */ jsx69(EnterAnimationClient, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ jsx69(React51.Fragment, { children: /* @__PURE__ */ jsx69(
4505
4510
  Wrapper,
4506
4511
  {
4507
4512
  id: guid,
@@ -4510,7 +4515,7 @@ var DivContainer = async (props) => {
4510
4515
  ...wrapperProps,
4511
4516
  children: dataToRender.map(
4512
4517
  (item, idx) => item?.links?.view && renderLink ? renderChildren(props.node.children, props, item, idx, props.href ? void 0 : item?.links?.view)?.map(
4513
- (child, i) => /* @__PURE__ */ jsx69(React52.Fragment, { children: child }, i)
4518
+ (child, i) => /* @__PURE__ */ jsx69(React51.Fragment, { children: child }, i)
4514
4519
  ) : renderChildren(props.node.children, props, item, idx)
4515
4520
  )
4516
4521
  }
@@ -4549,11 +4554,11 @@ var PageBodyRenderer = (props) => {
4549
4554
  if (pageBodyTree && pageBodyTree.root) {
4550
4555
  rootNode = pageBodyTree.root;
4551
4556
  }
4552
- return /* @__PURE__ */ jsx70(React53.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4557
+ return /* @__PURE__ */ jsx70(React52.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
4553
4558
  {
4554
4559
  }
4555
4560
  const SelectedNode = NodeTypes[node.type];
4556
- return /* @__PURE__ */ jsx70(React53.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx70(React53.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx70(React53.Fragment, { children: /* @__PURE__ */ jsx70(
4561
+ return /* @__PURE__ */ jsx70(React52.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx70(React52.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx70(React52.Fragment, { children: /* @__PURE__ */ jsx70(
4557
4562
  SelectedNode,
4558
4563
  {
4559
4564
  node,
@@ -4566,10 +4571,10 @@ var PageBodyRenderer = (props) => {
4566
4571
  apiBaseUrl: props.apiBaseUrl,
4567
4572
  widgetRegistry: props.widgetRegistry,
4568
4573
  serviceClient: props.serviceClient,
4569
- resolveAssetUrl: props.resolveAssetUrl,
4574
+ assetBaseUrl: props.assetBaseUrl,
4570
4575
  dataMap: props.dataMap
4571
4576
  }
4572
- ) }) : /* @__PURE__ */ jsx70(React53.Fragment, { children: /* @__PURE__ */ jsx70(
4577
+ ) }) : /* @__PURE__ */ jsx70(React52.Fragment, { children: /* @__PURE__ */ jsx70(
4573
4578
  SelectedNode,
4574
4579
  {
4575
4580
  node,
@@ -4581,7 +4586,7 @@ var PageBodyRenderer = (props) => {
4581
4586
  apiBaseUrl: props.apiBaseUrl,
4582
4587
  widgetRegistry: props.widgetRegistry,
4583
4588
  serviceClient: props.serviceClient,
4584
- resolveAssetUrl: props.resolveAssetUrl,
4589
+ assetBaseUrl: props.assetBaseUrl,
4585
4590
  dataMap: props.dataMap
4586
4591
  }
4587
4592
  ) }) }) }, index);
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.20260323121228",
3
+ "version": "0.8.1-dev.20260323130039",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",