@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260519043006 → 0.8.1-dev.20260519063815
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
|
@@ -44,7 +44,7 @@ var NumberView_default = NumberView;
|
|
|
44
44
|
|
|
45
45
|
// src/components/controls/view/DateView.tsx
|
|
46
46
|
import dynamic from "next/dynamic";
|
|
47
|
-
var DateView = dynamic(() => import("./DateViewClient-
|
|
47
|
+
var DateView = dynamic(() => import("./DateViewClient-GA7F2M6K.mjs"), {
|
|
48
48
|
ssr: false
|
|
49
49
|
});
|
|
50
50
|
var DateView_default = DateView;
|
|
@@ -178,6 +178,13 @@ var AiGeneratedSummary = (props) => {
|
|
|
178
178
|
};
|
|
179
179
|
var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
180
180
|
|
|
181
|
+
// src/components/controls/view/DateTimeVew.tsx
|
|
182
|
+
import dynamic2 from "next/dynamic";
|
|
183
|
+
var DateTimeView = dynamic2(() => import("./DateTimeViewClient-WVP333B2.mjs"), {
|
|
184
|
+
ssr: false
|
|
185
|
+
});
|
|
186
|
+
var DateTimeVew_default = DateTimeView;
|
|
187
|
+
|
|
181
188
|
// src/components/controls/view/ViewControl.tsx
|
|
182
189
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
183
190
|
var ViewControl = (props) => {
|
|
@@ -189,7 +196,7 @@ var ViewControl = (props) => {
|
|
|
189
196
|
[ViewControlTypes_default.money]: MoneyView_default,
|
|
190
197
|
[ViewControlTypes_default.date]: DateView_default,
|
|
191
198
|
[ViewControlTypes_default.time]: DateView_default,
|
|
192
|
-
[ViewControlTypes_default.datetime]:
|
|
199
|
+
[ViewControlTypes_default.datetime]: DateTimeVew_default,
|
|
193
200
|
[ViewControlTypes_default.number]: NumberView_default,
|
|
194
201
|
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
195
202
|
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
@@ -1792,19 +1799,13 @@ var TextNode = (props) => {
|
|
|
1792
1799
|
}
|
|
1793
1800
|
function getFormatClass(format) {
|
|
1794
1801
|
const classes = [];
|
|
1795
|
-
if (format
|
|
1796
|
-
if (format
|
|
1797
|
-
if (format
|
|
1798
|
-
if (format
|
|
1799
|
-
if (format
|
|
1800
|
-
if (format
|
|
1801
|
-
if (format
|
|
1802
|
-
if (format === 11) classes.push("font-medium italic underline");
|
|
1803
|
-
if (format === 32) classes.push("subscript");
|
|
1804
|
-
if (format === 64) classes.push("superscript");
|
|
1805
|
-
if (format === 256) classes.push("lowercase");
|
|
1806
|
-
if (format === 512) classes.push("uppercase");
|
|
1807
|
-
if (format === 1024) classes.push("capitalize");
|
|
1802
|
+
if (format & 1) classes.push("font-medium");
|
|
1803
|
+
if (format & 2) classes.push("italic");
|
|
1804
|
+
if (format & 4) classes.push("line-through");
|
|
1805
|
+
if (format & 8) classes.push("underline");
|
|
1806
|
+
if (format & 256) classes.push("lowercase");
|
|
1807
|
+
if (format & 512) classes.push("uppercase");
|
|
1808
|
+
if (format & 1024) classes.push("capitalize");
|
|
1808
1809
|
return classes.join(" ");
|
|
1809
1810
|
}
|
|
1810
1811
|
const styles = convertKeysToCamelCase2(cssStringToJson(props.node.style));
|
|
@@ -1825,9 +1826,11 @@ var TextNode = (props) => {
|
|
|
1825
1826
|
}
|
|
1826
1827
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
1827
1828
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
1829
|
+
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
1830
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx34("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx34("sub", { children: content }) : content;
|
|
1828
1831
|
return (
|
|
1829
1832
|
// @ts-expect-error custom code
|
|
1830
|
-
/* @__PURE__ */ jsx34("span", { style: { ...styles }, className: getFormatClass(props.node.format), children:
|
|
1833
|
+
/* @__PURE__ */ jsx34("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
1831
1834
|
);
|
|
1832
1835
|
};
|
|
1833
1836
|
var TextNode_default = TextNode;
|
|
@@ -1844,7 +1847,7 @@ import React29 from "react";
|
|
|
1844
1847
|
|
|
1845
1848
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
1846
1849
|
import React28 from "react";
|
|
1847
|
-
import
|
|
1850
|
+
import dynamic3 from "next/dynamic";
|
|
1848
1851
|
|
|
1849
1852
|
// src/components/DeviceAssetSelector.tsx
|
|
1850
1853
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
@@ -1966,7 +1969,7 @@ var DeviceAssetSelector_default = DeviceAssetSelector;
|
|
|
1966
1969
|
|
|
1967
1970
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
1968
1971
|
import { Fragment as Fragment2, jsx as jsx37 } from "react/jsx-runtime";
|
|
1969
|
-
var HlsPlayer =
|
|
1972
|
+
var HlsPlayer = dynamic3(() => import("./HlsPlayer-4VB65GYW.mjs"), {
|
|
1970
1973
|
ssr: false
|
|
1971
1974
|
});
|
|
1972
1975
|
var getNestedValue = (obj, path) => {
|
|
@@ -2094,9 +2097,9 @@ var ImageNode = (props) => {
|
|
|
2094
2097
|
var ImageNode_default = ImageNode;
|
|
2095
2098
|
|
|
2096
2099
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
2097
|
-
import
|
|
2100
|
+
import dynamic4 from "next/dynamic";
|
|
2098
2101
|
import { Fragment as Fragment3, jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2099
|
-
var LinkNodeButton =
|
|
2102
|
+
var LinkNodeButton = dynamic4(() => import("./LinkNodeButton-WDDPNYWI.mjs"), {
|
|
2100
2103
|
ssr: false
|
|
2101
2104
|
});
|
|
2102
2105
|
var LinkNode = (props) => {
|
|
@@ -2523,9 +2526,9 @@ var QuoteNode_default = QuoteNode;
|
|
|
2523
2526
|
|
|
2524
2527
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
2525
2528
|
import React35 from "react";
|
|
2526
|
-
import
|
|
2529
|
+
import dynamic5 from "next/dynamic";
|
|
2527
2530
|
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2528
|
-
var CopyButton =
|
|
2531
|
+
var CopyButton = dynamic5(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
2529
2532
|
ssr: false,
|
|
2530
2533
|
// optional: fallback UI while loading
|
|
2531
2534
|
loading: () => /* @__PURE__ */ jsx47("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
@@ -2793,9 +2796,9 @@ var FormContainerNode_default = FormContainerNode;
|
|
|
2793
2796
|
import React40 from "react";
|
|
2794
2797
|
|
|
2795
2798
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
2796
|
-
import
|
|
2799
|
+
import dynamic6 from "next/dynamic";
|
|
2797
2800
|
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2798
|
-
var IframeClient =
|
|
2801
|
+
var IframeClient = dynamic6(() => import("./IframeClient-J22NMEVY.mjs"), {
|
|
2799
2802
|
ssr: false
|
|
2800
2803
|
});
|
|
2801
2804
|
var EmbedNode = (props) => {
|
|
@@ -3646,9 +3649,9 @@ var Pagination = (props) => {
|
|
|
3646
3649
|
var Pagination_default = Pagination;
|
|
3647
3650
|
|
|
3648
3651
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
3649
|
-
import
|
|
3652
|
+
import dynamic7 from "next/dynamic";
|
|
3650
3653
|
import { Fragment as Fragment8, jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3651
|
-
var HlsPlayer2 =
|
|
3654
|
+
var HlsPlayer2 = dynamic7(() => import("./HlsPlayer-4VB65GYW.mjs"), { ssr: false });
|
|
3652
3655
|
var deviceToMediaQuery = (device) => {
|
|
3653
3656
|
switch (device) {
|
|
3654
3657
|
case "sm":
|
package/package.json
CHANGED