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

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.
@@ -21,6 +21,7 @@ function EnterAnimationClient({ hasEnterAnimation, children }) {
21
21
  observer.observe(ref.current);
22
22
  return () => observer.disconnect();
23
23
  }, [hasEnterAnimation]);
24
+ if (!children) return null;
24
25
  return /* @__PURE__ */ jsx(Fragment, { children: children && // enforce passing the ref to Wrapper
25
26
  //@ts-ignore
26
27
  React.cloneElement(children, { ref }) });
@@ -23,6 +23,7 @@ function EnterAnimationClient({ hasEnterAnimation, children }) {
23
23
  observer.observe(ref.current);
24
24
  return () => observer.disconnect();
25
25
  }, [hasEnterAnimation]);
26
+ if (!children) return null;
26
27
  return /* @__PURE__ */ jsx(Fragment, { children: children && // enforce passing the ref to Wrapper
27
28
  //@ts-ignore
28
29
  React.cloneElement(children, { ref }) });
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  "use strict";
2
4
  var __create = Object.create;
3
5
  var __defProp = Object.defineProperty;
@@ -4147,6 +4149,7 @@ function EnterAnimationClient({ hasEnterAnimation, children }) {
4147
4149
  observer.observe(ref.current);
4148
4150
  return () => observer.disconnect();
4149
4151
  }, [hasEnterAnimation]);
4152
+ if (!children) return null;
4150
4153
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: children && // enforce passing the ref to Wrapper
4151
4154
  //@ts-ignore
4152
4155
  import_react52.default.cloneElement(children, { ref }) });
@@ -5347,6 +5350,7 @@ var WidgetNode = (props) => {
5347
5350
  var WidgetNode_default = WidgetNode;
5348
5351
 
5349
5352
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
5353
+ var import_dynamic10 = __toESM(require("next/dynamic"));
5350
5354
  var import_react53 = __toESM(require("react"));
5351
5355
 
5352
5356
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
@@ -5571,9 +5575,6 @@ var NoDataFound = () => {
5571
5575
  };
5572
5576
  var NoDataFound_default = NoDataFound;
5573
5577
 
5574
- // src/components/pageRenderingEngine/nodes/DivContainer.tsx
5575
- var import_dynamic10 = __toESM(require("next/dynamic"));
5576
-
5577
5578
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
5578
5579
  init_AssetUtility();
5579
5580
  var import_dynamic9 = __toESM(require("next/dynamic"));
@@ -6809,7 +6810,7 @@ var DivContainer = async (props) => {
6809
6810
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
6810
6811
  }
6811
6812
  ),
6812
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EnterAnimationClient2, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6813
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EnterAnimationClient2, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6813
6814
  Wrapper,
6814
6815
  {
6815
6816
  id: guid,
@@ -6826,7 +6827,7 @@ var DivContainer = async (props) => {
6826
6827
  )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
6827
6828
  )
6828
6829
  }
6829
- ) }) }),
6830
+ ) }),
6830
6831
  dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6831
6832
  Pagination2,
6832
6833
  {
package/dist/index.mjs CHANGED
@@ -1,6 +1,8 @@
1
+ "use client";
2
+
1
3
  import {
2
4
  OdataBuilder
3
- } from "./chunk-FYGNBMII.mjs";
5
+ } from "./chunk-OGGIS4AN.mjs";
4
6
  import {
5
7
  AssetUtility_default,
6
8
  BooleanSelect_default,
@@ -17,22 +19,22 @@ import {
17
19
  PhoneInput_default,
18
20
  SelectWithSearchInput_default,
19
21
  TimeInput_default
20
- } from "./chunk-YG6FKKQJ.mjs";
22
+ } from "./chunk-7ZFZLN56.mjs";
21
23
  import {
22
24
  Constants,
23
25
  Hyperlink,
24
26
  Icon_default,
25
27
  InputControlType_default
26
- } from "./chunk-UWFXFVUU.mjs";
28
+ } from "./chunk-FI2KJBK2.mjs";
27
29
  import {
28
30
  ServiceClient_default
29
- } from "./chunk-3GWLDT7C.mjs";
31
+ } from "./chunk-WEV5U33G.mjs";
30
32
  import {
31
33
  Button_default,
32
34
  ClientButton_default,
33
35
  ToastService_default
34
- } from "./chunk-YL6E76X2.mjs";
35
- import "./chunk-56HSDML5.mjs";
36
+ } from "./chunk-JKP4XOZB.mjs";
37
+ import "./chunk-IMNQO57B.mjs";
36
38
 
37
39
  // src/components/controls/view/ViewControl.tsx
38
40
  import React13 from "react";
@@ -75,7 +77,7 @@ var NumberView_default = NumberView;
75
77
 
76
78
  // src/components/controls/view/DateView.tsx
77
79
  import dynamic from "next/dynamic";
78
- var DateView = dynamic(() => import("./DateViewClient-ELEHLGWS.mjs"), {
80
+ var DateView = dynamic(() => import("./DateViewClient-VLTRN47D.mjs"), {
79
81
  ssr: false
80
82
  });
81
83
  var DateView_default = DateView;
@@ -130,7 +132,7 @@ import React3 from "react";
130
132
  // src/components/DeviceAssetSelector.tsx
131
133
  import dynamic2 from "next/dynamic";
132
134
  import { jsx as jsx3 } from "react/jsx-runtime";
133
- var HlsPlayer = dynamic2(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
135
+ var HlsPlayer = dynamic2(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
134
136
  var FORMAT_CLASSES = {
135
137
  center: "justify-center",
136
138
  left: "justify-start",
@@ -365,7 +367,7 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
365
367
 
366
368
  // src/components/controls/view/DateTimeVew.tsx
367
369
  import dynamic3 from "next/dynamic";
368
- var DateTimeView = dynamic3(() => import("./DateTimeViewClient-22GW4AD7.mjs"), {
370
+ var DateTimeView = dynamic3(() => import("./DateTimeViewClient-R3M6ISVK.mjs"), {
369
371
  ssr: false
370
372
  });
371
373
  var DateTimeVew_default = DateTimeView;
@@ -406,7 +408,7 @@ var ViewControl_default = ViewControl;
406
408
 
407
409
  // src/components/controls/edit/InputControl.tsx
408
410
  import dynamic4 from "next/dynamic";
409
- var InputControl = dynamic4(() => import("./InputControlClient-CS4JM7UY.mjs"), {
411
+ var InputControl = dynamic4(() => import("./InputControlClient-XS52LLEE.mjs"), {
410
412
  ssr: false
411
413
  });
412
414
  var InputControl_default = InputControl;
@@ -502,7 +504,7 @@ import React14 from "react";
502
504
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
503
505
  import dynamic5 from "next/dynamic";
504
506
  import { jsx as jsx17 } from "react/jsx-runtime";
505
- var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
507
+ var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
506
508
  var getNestedValue = (obj, path) => {
507
509
  if (!obj || !path) return void 0;
508
510
  return path.split(".").reduce((current, key) => {
@@ -610,7 +612,7 @@ var ImageNode_default = ImageNode;
610
612
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
611
613
  import dynamic6 from "next/dynamic";
612
614
  import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
613
- var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-XA7Z5IDR.mjs"), {
615
+ var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-LX3KKGZY.mjs"), {
614
616
  ssr: false
615
617
  });
616
618
  function getNestedValue2(obj, path) {
@@ -1045,7 +1047,7 @@ var QuoteNode_default = QuoteNode;
1045
1047
  import React20 from "react";
1046
1048
  import dynamic7 from "next/dynamic";
1047
1049
  import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
1048
- var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
1050
+ var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
1049
1051
  ssr: false,
1050
1052
  // optional: fallback UI while loading
1051
1053
  loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
@@ -1182,12 +1184,13 @@ var WidgetNode = (props) => {
1182
1184
  var WidgetNode_default = WidgetNode;
1183
1185
 
1184
1186
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
1187
+ import dynamic10 from "next/dynamic";
1185
1188
  import React22 from "react";
1186
1189
 
1187
1190
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1188
1191
  import dynamic8 from "next/dynamic";
1189
1192
  import { jsx as jsx30 } from "react/jsx-runtime";
1190
- var IframeClient = dynamic8(() => import("./IframeClient-J22NMEVY.mjs"), {
1193
+ var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
1191
1194
  ssr: false
1192
1195
  });
1193
1196
  var EmbedNode = (props) => {
@@ -1399,13 +1402,10 @@ var NoDataFound = () => {
1399
1402
  };
1400
1403
  var NoDataFound_default = NoDataFound;
1401
1404
 
1402
- // src/components/pageRenderingEngine/nodes/DivContainer.tsx
1403
- import dynamic10 from "next/dynamic";
1404
-
1405
1405
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1406
1406
  import dynamic9 from "next/dynamic";
1407
1407
  import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1408
- var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
1408
+ var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
1409
1409
  var deviceToMediaQuery = (device) => {
1410
1410
  switch (device) {
1411
1411
  case "lg":
@@ -2220,11 +2220,11 @@ var DocumentNode_default = DocumentNode;
2220
2220
 
2221
2221
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2222
2222
  import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
2223
- var Pagination = dynamic10(() => import("./Pagination-4K7GMWUE.mjs"), { ssr: true });
2224
- var Slider = dynamic10(() => import("./Slider-PEIVH6A5.mjs"), {
2223
+ var Pagination = dynamic10(() => import("./Pagination-OQT7Q2XO.mjs"), { ssr: true });
2224
+ var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
2225
2225
  ssr: false
2226
2226
  });
2227
- var EnterAnimationClient = dynamic10(() => import("./EnterAnimationClient-RS3NQNR4.mjs"), {
2227
+ var EnterAnimationClient = dynamic10(() => import("./EnterAnimationClient-R3GFCNRS.mjs"), {
2228
2228
  ssr: false
2229
2229
  });
2230
2230
  function toCamelCase(str) {
@@ -2635,7 +2635,7 @@ var DivContainer = async (props) => {
2635
2635
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
2636
2636
  }
2637
2637
  ),
2638
- /* @__PURE__ */ jsx34(EnterAnimationClient, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ jsx34(React22.Fragment, { children: /* @__PURE__ */ jsx34(
2638
+ /* @__PURE__ */ jsx34(EnterAnimationClient, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ jsx34(
2639
2639
  Wrapper,
2640
2640
  {
2641
2641
  id: guid,
@@ -2652,7 +2652,7 @@ var DivContainer = async (props) => {
2652
2652
  )?.map((child, i) => /* @__PURE__ */ jsx34(React22.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
2653
2653
  )
2654
2654
  }
2655
- ) }) }),
2655
+ ) }),
2656
2656
  dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx34("div", { children: /* @__PURE__ */ jsx34(
2657
2657
  Pagination,
2658
2658
  {
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.20260709113231",
3
+ "version": "0.8.1-dev.20260709115728",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",