@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260708070033 → 0.8.1-dev.20260709113231

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.mjs CHANGED
@@ -1,8 +1,6 @@
1
- "use client";
2
-
3
1
  import {
4
2
  OdataBuilder
5
- } from "./chunk-OGGIS4AN.mjs";
3
+ } from "./chunk-FYGNBMII.mjs";
6
4
  import {
7
5
  AssetUtility_default,
8
6
  BooleanSelect_default,
@@ -19,22 +17,22 @@ import {
19
17
  PhoneInput_default,
20
18
  SelectWithSearchInput_default,
21
19
  TimeInput_default
22
- } from "./chunk-7ZFZLN56.mjs";
20
+ } from "./chunk-YG6FKKQJ.mjs";
23
21
  import {
24
22
  Constants,
25
23
  Hyperlink,
26
24
  Icon_default,
27
25
  InputControlType_default
28
- } from "./chunk-FI2KJBK2.mjs";
26
+ } from "./chunk-UWFXFVUU.mjs";
29
27
  import {
30
28
  ServiceClient_default
31
- } from "./chunk-WEV5U33G.mjs";
29
+ } from "./chunk-3GWLDT7C.mjs";
32
30
  import {
33
31
  Button_default,
34
32
  ClientButton_default,
35
33
  ToastService_default
36
- } from "./chunk-67IG5NBU.mjs";
37
- import "./chunk-IMNQO57B.mjs";
34
+ } from "./chunk-YL6E76X2.mjs";
35
+ import "./chunk-56HSDML5.mjs";
38
36
 
39
37
  // src/components/controls/view/ViewControl.tsx
40
38
  import React13 from "react";
@@ -77,7 +75,7 @@ var NumberView_default = NumberView;
77
75
 
78
76
  // src/components/controls/view/DateView.tsx
79
77
  import dynamic from "next/dynamic";
80
- var DateView = dynamic(() => import("./DateViewClient-VLTRN47D.mjs"), {
78
+ var DateView = dynamic(() => import("./DateViewClient-ELEHLGWS.mjs"), {
81
79
  ssr: false
82
80
  });
83
81
  var DateView_default = DateView;
@@ -132,7 +130,7 @@ import React3 from "react";
132
130
  // src/components/DeviceAssetSelector.tsx
133
131
  import dynamic2 from "next/dynamic";
134
132
  import { jsx as jsx3 } from "react/jsx-runtime";
135
- var HlsPlayer = dynamic2(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
133
+ var HlsPlayer = dynamic2(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
136
134
  var FORMAT_CLASSES = {
137
135
  center: "justify-center",
138
136
  left: "justify-start",
@@ -367,7 +365,7 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
367
365
 
368
366
  // src/components/controls/view/DateTimeVew.tsx
369
367
  import dynamic3 from "next/dynamic";
370
- var DateTimeView = dynamic3(() => import("./DateTimeViewClient-R3M6ISVK.mjs"), {
368
+ var DateTimeView = dynamic3(() => import("./DateTimeViewClient-22GW4AD7.mjs"), {
371
369
  ssr: false
372
370
  });
373
371
  var DateTimeVew_default = DateTimeView;
@@ -408,7 +406,7 @@ var ViewControl_default = ViewControl;
408
406
 
409
407
  // src/components/controls/edit/InputControl.tsx
410
408
  import dynamic4 from "next/dynamic";
411
- var InputControl = dynamic4(() => import("./InputControlClient-646PQPKQ.mjs"), {
409
+ var InputControl = dynamic4(() => import("./InputControlClient-CS4JM7UY.mjs"), {
412
410
  ssr: false
413
411
  });
414
412
  var InputControl_default = InputControl;
@@ -504,7 +502,7 @@ import React14 from "react";
504
502
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
505
503
  import dynamic5 from "next/dynamic";
506
504
  import { jsx as jsx17 } from "react/jsx-runtime";
507
- var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
505
+ var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
508
506
  var getNestedValue = (obj, path) => {
509
507
  if (!obj || !path) return void 0;
510
508
  return path.split(".").reduce((current, key) => {
@@ -612,7 +610,7 @@ var ImageNode_default = ImageNode;
612
610
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
613
611
  import dynamic6 from "next/dynamic";
614
612
  import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
615
- var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-WA5N3CBJ.mjs"), {
613
+ var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-XA7Z5IDR.mjs"), {
616
614
  ssr: false
617
615
  });
618
616
  function getNestedValue2(obj, path) {
@@ -1047,7 +1045,7 @@ var QuoteNode_default = QuoteNode;
1047
1045
  import React20 from "react";
1048
1046
  import dynamic7 from "next/dynamic";
1049
1047
  import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
1050
- var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
1048
+ var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
1051
1049
  ssr: false,
1052
1050
  // optional: fallback UI while loading
1053
1051
  loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
@@ -1189,7 +1187,7 @@ import React22 from "react";
1189
1187
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1190
1188
  import dynamic8 from "next/dynamic";
1191
1189
  import { jsx as jsx30 } from "react/jsx-runtime";
1192
- var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
1190
+ var IframeClient = dynamic8(() => import("./IframeClient-J22NMEVY.mjs"), {
1193
1191
  ssr: false
1194
1192
  });
1195
1193
  var EmbedNode = (props) => {
@@ -1407,7 +1405,7 @@ import dynamic10 from "next/dynamic";
1407
1405
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1408
1406
  import dynamic9 from "next/dynamic";
1409
1407
  import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1410
- var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
1408
+ var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
1411
1409
  var deviceToMediaQuery = (device) => {
1412
1410
  switch (device) {
1413
1411
  case "lg":
@@ -2222,8 +2220,11 @@ var DocumentNode_default = DocumentNode;
2222
2220
 
2223
2221
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2224
2222
  import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
2225
- var Pagination = dynamic10(() => import("./Pagination-OQT7Q2XO.mjs"), { ssr: true });
2226
- var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
2223
+ var Pagination = dynamic10(() => import("./Pagination-4K7GMWUE.mjs"), { ssr: true });
2224
+ var Slider = dynamic10(() => import("./Slider-PEIVH6A5.mjs"), {
2225
+ ssr: false
2226
+ });
2227
+ var EnterAnimationClient = dynamic10(() => import("./EnterAnimationClient-RS3NQNR4.mjs"), {
2227
2228
  ssr: false
2228
2229
  });
2229
2230
  function toCamelCase(str) {
@@ -2634,7 +2635,7 @@ var DivContainer = async (props) => {
2634
2635
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2635
2636
  }
2636
2637
  ),
2637
- /* @__PURE__ */ jsx34(React22.Fragment, { children: /* @__PURE__ */ jsx34(
2638
+ /* @__PURE__ */ jsx34(EnterAnimationClient, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ jsx34(React22.Fragment, { children: /* @__PURE__ */ jsx34(
2638
2639
  Wrapper,
2639
2640
  {
2640
2641
  id: guid,
@@ -2651,7 +2652,7 @@ var DivContainer = async (props) => {
2651
2652
  )?.map((child, i) => /* @__PURE__ */ jsx34(React22.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2652
2653
  )
2653
2654
  }
2654
- ) }),
2655
+ ) }) }),
2655
2656
  dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx34("div", { children: /* @__PURE__ */ jsx34(
2656
2657
  Pagination,
2657
2658
  {
@@ -2746,50 +2747,41 @@ var PageBodyRenderer = (props) => {
2746
2747
  var PageBodyRenderer_default = PageBodyRenderer;
2747
2748
 
2748
2749
  // src/components/Toast.tsx
2749
- import { useState } from "react";
2750
+ import { useCallback, useEffect, useRef, useState } from "react";
2750
2751
  import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2751
2752
  var Toast = () => {
2752
2753
  const [showToast, setShowToast] = useState(false);
2753
2754
  const [message, setMessage] = useState("");
2754
2755
  const [messageType, setMessageType] = useState("error");
2755
- ToastService_default.showError = function(message2) {
2756
- setShowToast(true);
2757
- setMessage(message2);
2758
- setMessageType("error");
2759
- setTimeout(() => {
2760
- setShowToast(false);
2761
- }, 4e3);
2762
- };
2763
- ToastService_default.showSuccess = function(message2) {
2764
- setShowToast(true);
2765
- setMessage(message2);
2766
- setMessageType("success");
2767
- setTimeout(() => {
2768
- setShowToast(false);
2769
- }, 4e3);
2770
- };
2771
- ToastService_default.showWarning = function(message2) {
2772
- setShowToast(true);
2773
- setMessage(message2);
2774
- setMessageType("warning");
2775
- setTimeout(() => {
2776
- setShowToast(false);
2777
- }, 4e3);
2778
- };
2779
- ToastService_default.showInfo = function(message2) {
2756
+ const timeoutRef = useRef(null);
2757
+ const closeToast = useCallback(() => {
2758
+ if (timeoutRef.current) {
2759
+ clearTimeout(timeoutRef.current);
2760
+ timeoutRef.current = null;
2761
+ }
2762
+ setShowToast(false);
2763
+ }, []);
2764
+ const showMessage = useCallback((message2, messageType2) => {
2765
+ if (timeoutRef.current) {
2766
+ clearTimeout(timeoutRef.current);
2767
+ }
2780
2768
  setShowToast(true);
2781
2769
  setMessage(message2);
2782
- setMessageType("info");
2783
- setTimeout(() => {
2770
+ setMessageType(messageType2);
2771
+ timeoutRef.current = setTimeout(() => {
2784
2772
  setShowToast(false);
2773
+ timeoutRef.current = null;
2785
2774
  }, 4e3);
2786
- };
2787
- ToastService_default.close = function() {
2788
- setShowToast(false);
2789
- };
2790
- const closeToast = () => {
2791
- setShowToast(false);
2792
- };
2775
+ }, []);
2776
+ useEffect(() => {
2777
+ ToastService_default.initialize(showMessage, closeToast);
2778
+ return () => {
2779
+ closeToast();
2780
+ ToastService_default.initialize(() => {
2781
+ }, () => {
2782
+ });
2783
+ };
2784
+ }, [closeToast, showMessage]);
2793
2785
  return /* @__PURE__ */ jsx36(Fragment7, { children: showToast && /* @__PURE__ */ jsx36("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs14("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
2794
2786
  /* @__PURE__ */ jsx36(
2795
2787
  "span",
@@ -2856,7 +2848,7 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
2856
2848
  var NavigationTabsV2_default = NavigationTabsV2;
2857
2849
 
2858
2850
  // src/components/dataForm/DataList.tsx
2859
- import React27, { useEffect, useState as useState2, useCallback, useReducer } from "react";
2851
+ import React27, { useEffect as useEffect2, useState as useState2, useCallback as useCallback2, useReducer } from "react";
2860
2852
  import { useRouter } from "next/navigation";
2861
2853
 
2862
2854
  // src/components/dataForm/NoContentView.tsx
@@ -2964,7 +2956,7 @@ var DataList = (props) => {
2964
2956
  console.log(props.addLinkText);
2965
2957
  const [isDataFound, setIsDataFound] = useState2(null);
2966
2958
  const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
2967
- useEffect(() => {
2959
+ useEffect2(() => {
2968
2960
  if (props?.dataset) {
2969
2961
  if (props?.dataset.result && props.dataset.result.length > 0) {
2970
2962
  setIsDataFound(true);
@@ -2973,7 +2965,7 @@ var DataList = (props) => {
2973
2965
  }
2974
2966
  }
2975
2967
  }, [props.dataset]);
2976
- useEffect(() => {
2968
+ useEffect2(() => {
2977
2969
  if (!props.query?.["$filter"] || !props.filters) return;
2978
2970
  const filterQuery = props.query["$filter"];
2979
2971
  props.filters.forEach((filter) => {
@@ -3005,7 +2997,7 @@ var DataList = (props) => {
3005
2997
  const getSearchableColumns = () => {
3006
2998
  return props.columns?.filter((c) => c.isSearchable)?.map((c) => c.name)?.join(",");
3007
2999
  };
3008
- const handleFilterChange = useCallback(
3000
+ const handleFilterChange = useCallback2(
3009
3001
  (updatedValues) => {
3010
3002
  dispatch({
3011
3003
  type: FORM_INPUT_UPDATE,
@@ -3036,7 +3028,7 @@ var DataList = (props) => {
3036
3028
  },
3037
3029
  [dispatch, props, router]
3038
3030
  );
3039
- useEffect(() => {
3031
+ useEffect2(() => {
3040
3032
  if (!props.columns.some((col) => col.isSearchable)) {
3041
3033
  return;
3042
3034
  }
@@ -3483,7 +3475,7 @@ var DataList = (props) => {
3483
3475
  var DataList_default = DataList;
3484
3476
 
3485
3477
  // src/components/dataForm/DataListRenderer.tsx
3486
- import React28, { useState as useState3, useEffect as useEffect2 } from "react";
3478
+ import React28, { useState as useState3, useEffect as useEffect3 } from "react";
3487
3479
  import { usePathname as usePathname2 } from "next/navigation";
3488
3480
  import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
3489
3481
  var viewControlMap = {
@@ -3547,7 +3539,7 @@ var DataListRenderer = ({
3547
3539
  const [addLinkText, setAddLinkText] = useState3("");
3548
3540
  const [serviceRoute, setServiceRoute] = useState3("");
3549
3541
  const pathname = usePathname2();
3550
- useEffect2(() => {
3542
+ useEffect3(() => {
3551
3543
  if (!formDefinition) return;
3552
3544
  setColumns(mapApiToColumns(formDefinition));
3553
3545
  setFilters(mapApiToFilters(formDefinition));
@@ -3560,7 +3552,7 @@ var DataListRenderer = ({
3560
3552
  setAddLinkHref(resolvedAddLinkHref);
3561
3553
  setAddLinkText(formDefinition?.siteFormDataList?.addLinkText ?? "");
3562
3554
  }, [formDefinition, params]);
3563
- useEffect2(() => {
3555
+ useEffect3(() => {
3564
3556
  const fetchData = async () => {
3565
3557
  if (!serviceRoute) return;
3566
3558
  const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
@@ -3607,10 +3599,10 @@ var DataListRenderer = ({
3607
3599
  var DataListRenderer_default = DataListRenderer;
3608
3600
 
3609
3601
  // src/components/dataForm/DataForm.tsx
3610
- import React30, { useCallback as useCallback3, useEffect as useEffect3, useReducer as useReducer2, useRef } from "react";
3602
+ import React30, { useCallback as useCallback4, useEffect as useEffect4, useReducer as useReducer2, useRef as useRef2 } from "react";
3611
3603
 
3612
3604
  // src/components/dataForm/DataFormChildSection.tsx
3613
- import React29, { useCallback as useCallback2 } from "react";
3605
+ import React29, { useCallback as useCallback3 } from "react";
3614
3606
 
3615
3607
  // src/components/dataForm/StyleTypes.tsx
3616
3608
  var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
@@ -3645,7 +3637,7 @@ var DataFormChildSection = (props) => {
3645
3637
  return childItems.map((item, originalIndex) => ({ item, originalIndex })).filter((x) => !x.item.isDeleted) || [];
3646
3638
  };
3647
3639
  const childItemsToRender = getChildItemsForRendering();
3648
- const handleChildInputChange = useCallback2(
3640
+ const handleChildInputChange = useCallback3(
3649
3641
  (updatedValues) => {
3650
3642
  if (isOneToOne) {
3651
3643
  props.callback({
@@ -3672,7 +3664,7 @@ var DataFormChildSection = (props) => {
3672
3664
  },
3673
3665
  [props, isOneToOne, childItemsToRender]
3674
3666
  );
3675
- const onAddRow = useCallback2(() => {
3667
+ const onAddRow = useCallback3(() => {
3676
3668
  props.callback({
3677
3669
  sectionName: props.section.name,
3678
3670
  actionType: FORM_CHILD_ROW_ADD,
@@ -3681,7 +3673,7 @@ var DataFormChildSection = (props) => {
3681
3673
  rowIndex: -1
3682
3674
  });
3683
3675
  }, [props]);
3684
- const onDeleteRow = useCallback2(
3676
+ const onDeleteRow = useCallback3(
3685
3677
  (filteredIndex) => {
3686
3678
  const visibleItem = childItemsToRender[filteredIndex];
3687
3679
  if (visibleItem) {
@@ -3794,7 +3786,7 @@ var DataFormChildSection_default = DataFormChildSection;
3794
3786
  // src/components/dataForm/DataForm.tsx
3795
3787
  import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
3796
3788
  var DataForm = (props) => {
3797
- const formRef = useRef(null);
3789
+ const formRef = useRef2(null);
3798
3790
  console.log(props.dataItem, "dssads");
3799
3791
  const initialState = {
3800
3792
  inputValues: {},
@@ -3805,7 +3797,7 @@ var DataForm = (props) => {
3805
3797
  };
3806
3798
  const [formState, dispatch] = useReducer2(FormReducer_default, initialState);
3807
3799
  console.log(props.sections, "sections");
3808
- const clearHiddenChildSections = useCallback3(
3800
+ const clearHiddenChildSections = useCallback4(
3809
3801
  (changedProperty, newValues) => {
3810
3802
  if (!props.sections) return;
3811
3803
  const allChildSections = [];
@@ -3843,7 +3835,7 @@ var DataForm = (props) => {
3843
3835
  },
3844
3836
  [props.sections, formState.inputValues]
3845
3837
  );
3846
- const handleInputChange = useCallback3(
3838
+ const handleInputChange = useCallback4(
3847
3839
  async (updatedValues) => {
3848
3840
  dispatch({
3849
3841
  type: FORM_INPUT_UPDATE,
@@ -3858,7 +3850,7 @@ var DataForm = (props) => {
3858
3850
  },
3859
3851
  [dispatch, formState.inputValues, clearHiddenChildSections]
3860
3852
  );
3861
- const fetchData = useCallback3(async () => {
3853
+ const fetchData = useCallback4(async () => {
3862
3854
  if (!props.rules) return;
3863
3855
  if (Object.keys(formState.inputValues).length === 0) {
3864
3856
  return;
@@ -3889,7 +3881,7 @@ var DataForm = (props) => {
3889
3881
  console.error("Error fetching data:", error);
3890
3882
  }
3891
3883
  }, [formState.lastPropertyChanged, formState.inputValues]);
3892
- useEffect3(() => {
3884
+ useEffect4(() => {
3893
3885
  fetchData();
3894
3886
  }, [formState.inputValues, formState.lastPropertyChanged]);
3895
3887
  function replacePlaceholders(template, context, params) {
@@ -3909,7 +3901,7 @@ var DataForm = (props) => {
3909
3901
  }
3910
3902
  );
3911
3903
  }
3912
- const handleChildSectionChangeCallback = useCallback3(
3904
+ const handleChildSectionChangeCallback = useCallback4(
3913
3905
  (params) => {
3914
3906
  dispatch({
3915
3907
  type: params.actionType,
@@ -3954,7 +3946,7 @@ var DataForm = (props) => {
3954
3946
  });
3955
3947
  return cloned;
3956
3948
  }
3957
- const onClick = useCallback3(async () => {
3949
+ const onClick = useCallback4(async () => {
3958
3950
  if (props.onClick) {
3959
3951
  const isEdit = props.dataItem && Object.keys(props.dataItem).length > 0;
3960
3952
  const normalizedValues = normalizeChildSections(
@@ -3970,21 +3962,21 @@ var DataForm = (props) => {
3970
3962
  return { isSuccessful: true };
3971
3963
  }
3972
3964
  }, [formState, props]);
3973
- const handleAdditionalOnClick = useCallback3(async () => {
3965
+ const handleAdditionalOnClick = useCallback4(async () => {
3974
3966
  if (props.additionalActions?.onClick) {
3975
3967
  return await props.additionalActions.onClick(formState);
3976
3968
  } else {
3977
3969
  return { isSuccessful: true, message: "Action completed successfully" };
3978
3970
  }
3979
3971
  }, [formState, props]);
3980
- const onDelete = useCallback3(async () => {
3972
+ const onDelete = useCallback4(async () => {
3981
3973
  if (props.onDelete) {
3982
3974
  return await props.onDelete(formState);
3983
3975
  } else {
3984
3976
  return { isSuccessful: true };
3985
3977
  }
3986
3978
  }, [formState, props]);
3987
- useEffect3(() => {
3979
+ useEffect4(() => {
3988
3980
  if (props.dataItem) {
3989
3981
  dispatch({
3990
3982
  type: FORM_INITIAL_UPDATE,
package/dist/server.js CHANGED
@@ -691,38 +691,52 @@ var init_Hyperlink = __esm({
691
691
  });
692
692
 
693
693
  // src/components/ToastService.tsx
694
- var ToastService, ToastService_default;
694
+ var toastHandlersKey, getToastHandlers, ToastService, ToastService_default;
695
695
  var init_ToastService = __esm({
696
696
  "src/components/ToastService.tsx"() {
697
697
  "use strict";
698
- ToastService = class _ToastService {
698
+ toastHandlersKey = "__digitalStoreToastHandlers";
699
+ getToastHandlers = () => {
700
+ const globalScope = globalThis;
701
+ if (!globalScope[toastHandlersKey]) {
702
+ globalScope[toastHandlersKey] = {};
703
+ }
704
+ return globalScope[toastHandlersKey];
705
+ };
706
+ ToastService = class {
699
707
  static initialize(showToast, closeToast) {
700
- _ToastService.showToast = showToast;
701
- _ToastService.closeToast = closeToast;
708
+ const handlers = getToastHandlers();
709
+ handlers.showToast = showToast;
710
+ handlers.closeToast = closeToast;
702
711
  }
703
712
  static showError(message) {
704
- if (_ToastService.showToast) {
705
- _ToastService.showToast(message, "error");
713
+ const handlers = getToastHandlers();
714
+ if (handlers.showToast) {
715
+ handlers.showToast(message, "error");
706
716
  }
707
717
  }
708
718
  static showInfo(message) {
709
- if (_ToastService.showToast) {
710
- _ToastService.showToast(message, "info");
719
+ const handlers = getToastHandlers();
720
+ if (handlers.showToast) {
721
+ handlers.showToast(message, "info");
711
722
  }
712
723
  }
713
724
  static showWarning(message) {
714
- if (_ToastService.showToast) {
715
- _ToastService.showToast(message, "warning");
725
+ const handlers = getToastHandlers();
726
+ if (handlers.showToast) {
727
+ handlers.showToast(message, "warning");
716
728
  }
717
729
  }
718
730
  static showSuccess(message) {
719
- if (_ToastService.showToast) {
720
- _ToastService.showToast(message, "success");
731
+ const handlers = getToastHandlers();
732
+ if (handlers.showToast) {
733
+ handlers.showToast(message, "success");
721
734
  }
722
735
  }
723
736
  static close() {
724
- if (_ToastService.closeToast) {
725
- _ToastService.closeToast();
737
+ const handlers = getToastHandlers();
738
+ if (handlers.closeToast) {
739
+ handlers.closeToast();
726
740
  }
727
741
  }
728
742
  };
@@ -1191,10 +1205,9 @@ var init_LinkNodeButton = __esm({
1191
1205
  }
1192
1206
  return current;
1193
1207
  }, []);
1194
- const onClick = (0, import_react5.useCallback)(async (e) => {
1208
+ const onClick = (0, import_react5.useCallback)(async () => {
1195
1209
  if (!node.postUrl) {
1196
- ToastService_default.showError("No POST URL configured for this button");
1197
- return;
1210
+ return { isSuccessful: false, message: "No POST URL configured for this button" };
1198
1211
  }
1199
1212
  setIsLoading(true);
1200
1213
  try {
package/dist/server.mjs CHANGED
@@ -305,7 +305,7 @@ var ImageNode_default = ImageNode;
305
305
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
306
306
  import dynamic3 from "next/dynamic";
307
307
  import { Fragment, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
308
- var LinkNodeButton = dynamic3(() => import("./LinkNodeButton-GVOICN34.mjs"), {
308
+ var LinkNodeButton = dynamic3(() => import("./LinkNodeButton-U7T2NP22.mjs"), {
309
309
  ssr: false
310
310
  });
311
311
  function getNestedValue2(obj, path) {
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.20260708070033",
3
+ "version": "0.8.1-dev.20260709113231",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",