@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260714121845 → 0.8.1-dev.20260715061446

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
@@ -5342,6 +5342,17 @@ init_AssetUtility();
5342
5342
  init_ServiceClient();
5343
5343
 
5344
5344
  // src/components/utilities/AnimationUtility.tsx
5345
+ var normalizeSelector = (guid) => {
5346
+ const trimmedGuid = guid?.trim();
5347
+ if (!trimmedGuid) {
5348
+ return ".animation-fallback";
5349
+ }
5350
+ const baseValue = trimmedGuid.replace(/^#/, "").replace(/^\./, "");
5351
+ if (typeof CSS !== "undefined" && typeof CSS.escape === "function") {
5352
+ return `#${CSS.escape(baseValue)}`;
5353
+ }
5354
+ return `#${baseValue}`;
5355
+ };
5345
5356
  var AnimationUtility = class {
5346
5357
  static generateAnimationCSS(config, guid) {
5347
5358
  const {
@@ -5361,6 +5372,7 @@ var AnimationUtility = class {
5361
5372
  borderColor
5362
5373
  } = config;
5363
5374
  let base = "", visible = "", keyframes = "";
5375
+ const selector = normalizeSelector(guid);
5364
5376
  switch (config.animation) {
5365
5377
  case "Fade":
5366
5378
  base = `opacity:0; transition:opacity ${duration}ms ${easing} ${delay}ms;`;
@@ -5438,14 +5450,14 @@ background-color: ${backgroundColor};
5438
5450
  if (mode === "hover") {
5439
5451
  return `
5440
5452
  ${keyframes}
5441
- ${guid} { ${base} }
5442
- ${guid}:hover { ${visible} }
5453
+ ${selector} { ${base} }
5454
+ ${selector}:hover { ${visible} }
5443
5455
  `;
5444
5456
  } else {
5445
5457
  return `
5446
5458
  ${keyframes}
5447
- ${guid} { ${base} }
5448
- ${guid}.visible { ${visible} }
5459
+ ${selector} { ${base} }
5460
+ ${selector}.visible { ${visible} }
5449
5461
  `;
5450
5462
  }
5451
5463
  }
@@ -6577,6 +6589,7 @@ var DivContainer = async (props) => {
6577
6589
  }
6578
6590
  const updatedStyle = { ...updatedStyles };
6579
6591
  const guid = "css" + crypto.randomUUID().toLocaleLowerCase();
6592
+ const animationSelector = `#${guid}`;
6580
6593
  const { enterAnimation, exitAnimation, hoverAnimation } = props.node;
6581
6594
  let animationCSS = "";
6582
6595
  if (enterAnimation?.name) {
@@ -6586,7 +6599,7 @@ var DivContainer = async (props) => {
6586
6599
  mode: "enter",
6587
6600
  ...enterAnimation.properties
6588
6601
  },
6589
- `#${guid}`
6602
+ animationSelector
6590
6603
  );
6591
6604
  }
6592
6605
  if (hoverAnimation?.name) {
@@ -6596,7 +6609,7 @@ var DivContainer = async (props) => {
6596
6609
  mode: "hover",
6597
6610
  ...hoverAnimation.properties
6598
6611
  },
6599
- `#${guid}`
6612
+ animationSelector
6600
6613
  );
6601
6614
  }
6602
6615
  const isHidden = !shouldRenderContainer(
@@ -7807,13 +7820,11 @@ var DataListRenderer = ({
7807
7820
  };
7808
7821
  });
7809
7822
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react59.default.Fragment, { children: [
7810
- resolvedTabs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7811
- NavigationTabsV2_default,
7812
- {
7813
- tabs: resolvedTabs,
7814
- params: widgetProps?.params ?? params
7815
- }
7816
- ),
7823
+ resolvedTabs.length > 0 && // <NavigationTabsV2
7824
+ // tabs={resolvedTabs}
7825
+ // params={(widgetProps?.params ?? params) as Record<string, any>}
7826
+ // />
7827
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
7817
7828
  /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7818
7829
  DataList_default,
7819
7830
  {
package/dist/index.mjs CHANGED
@@ -1,8 +1,6 @@
1
- "use client";
2
-
3
1
  import {
4
2
  OdataBuilder
5
- } from "./chunk-X3YSXTD2.mjs";
3
+ } from "./chunk-UFKPTMM7.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-5GHPW7SJ.mjs";
26
+ } from "./chunk-DBHUCH4B.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-JKP4XOZB.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";
@@ -78,7 +76,7 @@ var NumberView_default = NumberView;
78
76
 
79
77
  // src/components/controls/view/DateView.tsx
80
78
  import dynamic from "next/dynamic";
81
- var DateView = dynamic(() => import("./DateViewClient-VLTRN47D.mjs"), {
79
+ var DateView = dynamic(() => import("./DateViewClient-ELEHLGWS.mjs"), {
82
80
  ssr: false
83
81
  });
84
82
  var DateView_default = DateView;
@@ -133,7 +131,7 @@ import React3 from "react";
133
131
  // src/components/DeviceAssetSelector.tsx
134
132
  import dynamic2 from "next/dynamic";
135
133
  import { jsx as jsx3 } from "react/jsx-runtime";
136
- var HlsPlayer = dynamic2(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
134
+ var HlsPlayer = dynamic2(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
137
135
  var FORMAT_CLASSES = {
138
136
  center: "justify-center",
139
137
  left: "justify-start",
@@ -368,7 +366,7 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
368
366
 
369
367
  // src/components/controls/view/DateTimeVew.tsx
370
368
  import dynamic3 from "next/dynamic";
371
- var DateTimeView = dynamic3(() => import("./DateTimeViewClient-R3M6ISVK.mjs"), {
369
+ var DateTimeView = dynamic3(() => import("./DateTimeViewClient-22GW4AD7.mjs"), {
372
370
  ssr: false
373
371
  });
374
372
  var DateTimeVew_default = DateTimeView;
@@ -409,7 +407,7 @@ var ViewControl_default = ViewControl;
409
407
 
410
408
  // src/components/controls/edit/InputControl.tsx
411
409
  import dynamic4 from "next/dynamic";
412
- var InputControl = dynamic4(() => import("./InputControlClient-QAZKQLFO.mjs"), {
410
+ var InputControl = dynamic4(() => import("./InputControlClient-QQCQD4EG.mjs"), {
413
411
  ssr: false
414
412
  });
415
413
  var InputControl_default = InputControl;
@@ -505,7 +503,7 @@ import React14 from "react";
505
503
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
506
504
  import dynamic5 from "next/dynamic";
507
505
  import { jsx as jsx17 } from "react/jsx-runtime";
508
- var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
506
+ var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
509
507
  var getNestedValue = (obj, path) => {
510
508
  if (!obj || !path) return void 0;
511
509
  return path.split(".").reduce((current, key) => {
@@ -613,7 +611,7 @@ var ImageNode_default = ImageNode;
613
611
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
614
612
  import dynamic6 from "next/dynamic";
615
613
  import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
616
- var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-LX3KKGZY.mjs"), {
614
+ var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-XA7Z5IDR.mjs"), {
617
615
  ssr: false
618
616
  });
619
617
  function getNestedValue2(obj, path) {
@@ -1048,7 +1046,7 @@ var QuoteNode_default = QuoteNode;
1048
1046
  import React20 from "react";
1049
1047
  import dynamic7 from "next/dynamic";
1050
1048
  import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
1051
- var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
1049
+ var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
1052
1050
  ssr: false,
1053
1051
  // optional: fallback UI while loading
1054
1052
  loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
@@ -1191,7 +1189,7 @@ import React22 from "react";
1191
1189
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
1192
1190
  import dynamic8 from "next/dynamic";
1193
1191
  import { jsx as jsx30 } from "react/jsx-runtime";
1194
- var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
1192
+ var IframeClient = dynamic8(() => import("./IframeClient-J22NMEVY.mjs"), {
1195
1193
  ssr: false
1196
1194
  });
1197
1195
  var EmbedNode = (props) => {
@@ -1208,6 +1206,17 @@ var EmbedNode = (props) => {
1208
1206
  var EmbedNode_default = EmbedNode;
1209
1207
 
1210
1208
  // src/components/utilities/AnimationUtility.tsx
1209
+ var normalizeSelector = (guid) => {
1210
+ const trimmedGuid = guid?.trim();
1211
+ if (!trimmedGuid) {
1212
+ return ".animation-fallback";
1213
+ }
1214
+ const baseValue = trimmedGuid.replace(/^#/, "").replace(/^\./, "");
1215
+ if (typeof CSS !== "undefined" && typeof CSS.escape === "function") {
1216
+ return `#${CSS.escape(baseValue)}`;
1217
+ }
1218
+ return `#${baseValue}`;
1219
+ };
1211
1220
  var AnimationUtility = class {
1212
1221
  static generateAnimationCSS(config, guid) {
1213
1222
  const {
@@ -1227,6 +1236,7 @@ var AnimationUtility = class {
1227
1236
  borderColor
1228
1237
  } = config;
1229
1238
  let base = "", visible = "", keyframes = "";
1239
+ const selector = normalizeSelector(guid);
1230
1240
  switch (config.animation) {
1231
1241
  case "Fade":
1232
1242
  base = `opacity:0; transition:opacity ${duration}ms ${easing} ${delay}ms;`;
@@ -1304,14 +1314,14 @@ background-color: ${backgroundColor};
1304
1314
  if (mode === "hover") {
1305
1315
  return `
1306
1316
  ${keyframes}
1307
- ${guid} { ${base} }
1308
- ${guid}:hover { ${visible} }
1317
+ ${selector} { ${base} }
1318
+ ${selector}:hover { ${visible} }
1309
1319
  `;
1310
1320
  } else {
1311
1321
  return `
1312
1322
  ${keyframes}
1313
- ${guid} { ${base} }
1314
- ${guid}.visible { ${visible} }
1323
+ ${selector} { ${base} }
1324
+ ${selector}.visible { ${visible} }
1315
1325
  `;
1316
1326
  }
1317
1327
  }
@@ -1424,7 +1434,7 @@ var NoDataFound_default = NoDataFound;
1424
1434
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1425
1435
  import dynamic9 from "next/dynamic";
1426
1436
  import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1427
- var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
1437
+ var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
1428
1438
  var deviceToMediaQuery = (device) => {
1429
1439
  switch (device) {
1430
1440
  case "lg":
@@ -2239,8 +2249,8 @@ var DocumentNode_default = DocumentNode;
2239
2249
 
2240
2250
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2241
2251
  import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
2242
- var Pagination = dynamic10(() => import("./Pagination-T7YN2OMV.mjs"), { ssr: true });
2243
- var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
2252
+ var Pagination = dynamic10(() => import("./Pagination-NCJCOYHF.mjs"), { ssr: true });
2253
+ var Slider = dynamic10(() => import("./Slider-PEIVH6A5.mjs"), {
2244
2254
  ssr: false
2245
2255
  });
2246
2256
  function toCamelCase(str) {
@@ -2438,6 +2448,7 @@ var DivContainer = async (props) => {
2438
2448
  }
2439
2449
  const updatedStyle = { ...updatedStyles };
2440
2450
  const guid = "css" + crypto.randomUUID().toLocaleLowerCase();
2451
+ const animationSelector = `#${guid}`;
2441
2452
  const { enterAnimation, exitAnimation, hoverAnimation } = props.node;
2442
2453
  let animationCSS = "";
2443
2454
  if (enterAnimation?.name) {
@@ -2447,7 +2458,7 @@ var DivContainer = async (props) => {
2447
2458
  mode: "enter",
2448
2459
  ...enterAnimation.properties
2449
2460
  },
2450
- `#${guid}`
2461
+ animationSelector
2451
2462
  );
2452
2463
  }
2453
2464
  if (hoverAnimation?.name) {
@@ -2457,7 +2468,7 @@ var DivContainer = async (props) => {
2457
2468
  mode: "hover",
2458
2469
  ...hoverAnimation.properties
2459
2470
  },
2460
- `#${guid}`
2471
+ animationSelector
2461
2472
  );
2462
2473
  }
2463
2474
  const isHidden = !shouldRenderContainer(
@@ -3638,13 +3649,11 @@ var DataListRenderer = ({
3638
3649
  };
3639
3650
  });
3640
3651
  return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
3641
- resolvedTabs.length > 0 && /* @__PURE__ */ jsx41(
3642
- NavigationTabsV2_default,
3643
- {
3644
- tabs: resolvedTabs,
3645
- params: widgetProps?.params ?? params
3646
- }
3647
- ),
3652
+ resolvedTabs.length > 0 && // <NavigationTabsV2
3653
+ // tabs={resolvedTabs}
3654
+ // params={(widgetProps?.params ?? params) as Record<string, any>}
3655
+ // />
3656
+ /* @__PURE__ */ jsx41(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
3648
3657
  /* @__PURE__ */ jsx41(
3649
3658
  DataList_default,
3650
3659
  {
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.20260714121845",
3
+ "version": "0.8.1-dev.20260715061446",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",