@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261028113430 → 0.8.1-dev.20261114091258
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 +21 -1
- package/dist/index.mjs +21 -1
- package/dist/server.js +21 -1
- package/dist/server.mjs +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9505,6 +9505,23 @@ var ImageGalleryNode = (props) => {
|
|
|
9505
9505
|
}
|
|
9506
9506
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
9507
9507
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
9508
|
+
const primaryStatic = staticFallback ?? staticImages[0];
|
|
9509
|
+
const primaryStaticResolved = primaryStatic ? resolveImage(primaryStatic) : void 0;
|
|
9510
|
+
const staticIntrinsicWidth = parseMaybeNumber(
|
|
9511
|
+
primaryStaticResolved?.intrinsicWidth ?? primaryStatic?.intrinsicWidth
|
|
9512
|
+
);
|
|
9513
|
+
const staticIntrinsicHeight = parseMaybeNumber(
|
|
9514
|
+
primaryStaticResolved?.intrinsicHeight ?? primaryStatic?.intrinsicHeight
|
|
9515
|
+
);
|
|
9516
|
+
const staticStyles = {};
|
|
9517
|
+
if (primaryStatic?.height) staticStyles.height = primaryStatic.height;
|
|
9518
|
+
if (primaryStatic?.width) staticStyles.width = primaryStatic.width;
|
|
9519
|
+
if (staticIntrinsicWidth && staticIntrinsicHeight) {
|
|
9520
|
+
staticStyles.aspectRatio = `${staticIntrinsicWidth} / ${staticIntrinsicHeight}`;
|
|
9521
|
+
}
|
|
9522
|
+
if (primaryStatic?.borderRadius) {
|
|
9523
|
+
staticStyles.borderRadius = primaryStatic.borderRadius;
|
|
9524
|
+
}
|
|
9508
9525
|
const FormatClass = {
|
|
9509
9526
|
center: "justify-center",
|
|
9510
9527
|
left: "justify-start",
|
|
@@ -9527,7 +9544,7 @@ var ImageGalleryNode = (props) => {
|
|
|
9527
9544
|
styles: hlsStyles
|
|
9528
9545
|
}
|
|
9529
9546
|
) }) }),
|
|
9530
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9547
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { style: staticStyles, children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("picture", { children: [
|
|
9531
9548
|
DEVICE_ORDER.map((deviceKey) => {
|
|
9532
9549
|
const match = staticSources.find(
|
|
9533
9550
|
(img) => img.device === deviceKey
|
|
@@ -10101,6 +10118,9 @@ var DocumentNode = (props) => {
|
|
|
10101
10118
|
documents = parseDocuments(props.node.documentAsset);
|
|
10102
10119
|
}
|
|
10103
10120
|
if (documents.length === 0) {
|
|
10121
|
+
if (!props.node.showNoResultMessage) {
|
|
10122
|
+
return null;
|
|
10123
|
+
}
|
|
10104
10124
|
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_jsx_runtime85.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
10105
10125
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
10106
10126
|
"svg",
|
package/dist/index.mjs
CHANGED
|
@@ -1773,6 +1773,23 @@ var ImageGalleryNode = (props) => {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
1775
1775
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
1776
|
+
const primaryStatic = staticFallback ?? staticImages[0];
|
|
1777
|
+
const primaryStaticResolved = primaryStatic ? resolveImage(primaryStatic) : void 0;
|
|
1778
|
+
const staticIntrinsicWidth = parseMaybeNumber(
|
|
1779
|
+
primaryStaticResolved?.intrinsicWidth ?? primaryStatic?.intrinsicWidth
|
|
1780
|
+
);
|
|
1781
|
+
const staticIntrinsicHeight = parseMaybeNumber(
|
|
1782
|
+
primaryStaticResolved?.intrinsicHeight ?? primaryStatic?.intrinsicHeight
|
|
1783
|
+
);
|
|
1784
|
+
const staticStyles = {};
|
|
1785
|
+
if (primaryStatic?.height) staticStyles.height = primaryStatic.height;
|
|
1786
|
+
if (primaryStatic?.width) staticStyles.width = primaryStatic.width;
|
|
1787
|
+
if (staticIntrinsicWidth && staticIntrinsicHeight) {
|
|
1788
|
+
staticStyles.aspectRatio = `${staticIntrinsicWidth} / ${staticIntrinsicHeight}`;
|
|
1789
|
+
}
|
|
1790
|
+
if (primaryStatic?.borderRadius) {
|
|
1791
|
+
staticStyles.borderRadius = primaryStatic.borderRadius;
|
|
1792
|
+
}
|
|
1776
1793
|
const FormatClass = {
|
|
1777
1794
|
center: "justify-center",
|
|
1778
1795
|
left: "justify-start",
|
|
@@ -1795,7 +1812,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1795
1812
|
styles: hlsStyles
|
|
1796
1813
|
}
|
|
1797
1814
|
) }) }),
|
|
1798
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35(
|
|
1815
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35("div", { style: staticStyles, children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
|
|
1799
1816
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1800
1817
|
const match = staticSources.find(
|
|
1801
1818
|
(img) => img.device === deviceKey
|
|
@@ -2368,6 +2385,9 @@ var DocumentNode = (props) => {
|
|
|
2368
2385
|
documents = parseDocuments(props.node.documentAsset);
|
|
2369
2386
|
}
|
|
2370
2387
|
if (documents.length === 0) {
|
|
2388
|
+
if (!props.node.showNoResultMessage) {
|
|
2389
|
+
return null;
|
|
2390
|
+
}
|
|
2371
2391
|
return /* @__PURE__ */ jsx36(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2372
2392
|
/* @__PURE__ */ jsx36("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx36(
|
|
2373
2393
|
"svg",
|
package/dist/server.js
CHANGED
|
@@ -7097,6 +7097,23 @@ var ImageGalleryNode = (props) => {
|
|
|
7097
7097
|
}
|
|
7098
7098
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
7099
7099
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
7100
|
+
const primaryStatic = staticFallback ?? staticImages[0];
|
|
7101
|
+
const primaryStaticResolved = primaryStatic ? resolveImage(primaryStatic) : void 0;
|
|
7102
|
+
const staticIntrinsicWidth = parseMaybeNumber(
|
|
7103
|
+
primaryStaticResolved?.intrinsicWidth ?? primaryStatic?.intrinsicWidth
|
|
7104
|
+
);
|
|
7105
|
+
const staticIntrinsicHeight = parseMaybeNumber(
|
|
7106
|
+
primaryStaticResolved?.intrinsicHeight ?? primaryStatic?.intrinsicHeight
|
|
7107
|
+
);
|
|
7108
|
+
const staticStyles = {};
|
|
7109
|
+
if (primaryStatic?.height) staticStyles.height = primaryStatic.height;
|
|
7110
|
+
if (primaryStatic?.width) staticStyles.width = primaryStatic.width;
|
|
7111
|
+
if (staticIntrinsicWidth && staticIntrinsicHeight) {
|
|
7112
|
+
staticStyles.aspectRatio = `${staticIntrinsicWidth} / ${staticIntrinsicHeight}`;
|
|
7113
|
+
}
|
|
7114
|
+
if (primaryStatic?.borderRadius) {
|
|
7115
|
+
staticStyles.borderRadius = primaryStatic.borderRadius;
|
|
7116
|
+
}
|
|
7100
7117
|
const FormatClass = {
|
|
7101
7118
|
center: "justify-center",
|
|
7102
7119
|
left: "justify-start",
|
|
@@ -7119,7 +7136,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7119
7136
|
styles: hlsStyles
|
|
7120
7137
|
}
|
|
7121
7138
|
) }) }),
|
|
7122
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7139
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: staticStyles, children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("picture", { children: [
|
|
7123
7140
|
DEVICE_ORDER.map((deviceKey) => {
|
|
7124
7141
|
const match = staticSources.find(
|
|
7125
7142
|
(img) => img.device === deviceKey
|
|
@@ -7693,6 +7710,9 @@ var DocumentNode = (props) => {
|
|
|
7693
7710
|
documents = parseDocuments(props.node.documentAsset);
|
|
7694
7711
|
}
|
|
7695
7712
|
if (documents.length === 0) {
|
|
7713
|
+
if (!props.node.showNoResultMessage) {
|
|
7714
|
+
return null;
|
|
7715
|
+
}
|
|
7696
7716
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
7697
7717
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7698
7718
|
"svg",
|
package/dist/server.mjs
CHANGED
|
@@ -1729,6 +1729,23 @@ var ImageGalleryNode = (props) => {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
1731
1731
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
1732
|
+
const primaryStatic = staticFallback ?? staticImages[0];
|
|
1733
|
+
const primaryStaticResolved = primaryStatic ? resolveImage(primaryStatic) : void 0;
|
|
1734
|
+
const staticIntrinsicWidth = parseMaybeNumber(
|
|
1735
|
+
primaryStaticResolved?.intrinsicWidth ?? primaryStatic?.intrinsicWidth
|
|
1736
|
+
);
|
|
1737
|
+
const staticIntrinsicHeight = parseMaybeNumber(
|
|
1738
|
+
primaryStaticResolved?.intrinsicHeight ?? primaryStatic?.intrinsicHeight
|
|
1739
|
+
);
|
|
1740
|
+
const staticStyles = {};
|
|
1741
|
+
if (primaryStatic?.height) staticStyles.height = primaryStatic.height;
|
|
1742
|
+
if (primaryStatic?.width) staticStyles.width = primaryStatic.width;
|
|
1743
|
+
if (staticIntrinsicWidth && staticIntrinsicHeight) {
|
|
1744
|
+
staticStyles.aspectRatio = `${staticIntrinsicWidth} / ${staticIntrinsicHeight}`;
|
|
1745
|
+
}
|
|
1746
|
+
if (primaryStatic?.borderRadius) {
|
|
1747
|
+
staticStyles.borderRadius = primaryStatic.borderRadius;
|
|
1748
|
+
}
|
|
1732
1749
|
const FormatClass = {
|
|
1733
1750
|
center: "justify-center",
|
|
1734
1751
|
left: "justify-start",
|
|
@@ -1751,7 +1768,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1751
1768
|
styles: hlsStyles
|
|
1752
1769
|
}
|
|
1753
1770
|
) }) }),
|
|
1754
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35(
|
|
1771
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35("div", { style: staticStyles, children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
|
|
1755
1772
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1756
1773
|
const match = staticSources.find(
|
|
1757
1774
|
(img) => img.device === deviceKey
|
|
@@ -2324,6 +2341,9 @@ var DocumentNode = (props) => {
|
|
|
2324
2341
|
documents = parseDocuments(props.node.documentAsset);
|
|
2325
2342
|
}
|
|
2326
2343
|
if (documents.length === 0) {
|
|
2344
|
+
if (!props.node.showNoResultMessage) {
|
|
2345
|
+
return null;
|
|
2346
|
+
}
|
|
2327
2347
|
return /* @__PURE__ */ jsx36(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2328
2348
|
/* @__PURE__ */ jsx36("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx36(
|
|
2329
2349
|
"svg",
|