@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261021091207 → 0.8.1-dev.20261024093423
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 +19 -1
- package/dist/index.mjs +19 -1
- package/dist/server.js +19 -1
- package/dist/server.mjs +19 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9481,6 +9481,24 @@ var ImageGalleryNode = (props) => {
|
|
|
9481
9481
|
hlsStyles.aspectRatio = videoWidth && videoHeight ? `${videoWidth} / ${videoHeight}` : "16 / 9";
|
|
9482
9482
|
if (primaryHls?.borderRadius)
|
|
9483
9483
|
hlsStyles.borderRadius = primaryHls.borderRadius;
|
|
9484
|
+
const hlsFallback = hlsImages.find((img) => !img.device) ?? null;
|
|
9485
|
+
if (!hlsFallback) {
|
|
9486
|
+
let display = "none";
|
|
9487
|
+
switch (props.device) {
|
|
9488
|
+
case "sm":
|
|
9489
|
+
display = hlsImages.some((img) => img.device === "sm") ? "block" : "none";
|
|
9490
|
+
break;
|
|
9491
|
+
case "md":
|
|
9492
|
+
display = hlsImages.some((img) => img.device === "md") ? "block" : "none";
|
|
9493
|
+
break;
|
|
9494
|
+
case "lg":
|
|
9495
|
+
display = hlsImages.some((img) => img.device === "lg") ? "block" : "none";
|
|
9496
|
+
break;
|
|
9497
|
+
default:
|
|
9498
|
+
display = "block";
|
|
9499
|
+
}
|
|
9500
|
+
hlsStyles.display = display;
|
|
9501
|
+
}
|
|
9484
9502
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
9485
9503
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
9486
9504
|
const FormatClass = {
|
|
@@ -9490,7 +9508,7 @@ var ImageGalleryNode = (props) => {
|
|
|
9490
9508
|
};
|
|
9491
9509
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
9492
9510
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
|
|
9493
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { style: hlsStyles, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9511
|
+
hlsSources.length > 0 && hlsStyles.display !== "none" && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { style: hlsStyles, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9494
9512
|
HlsPlayer4,
|
|
9495
9513
|
{
|
|
9496
9514
|
sources: hlsSources,
|
package/dist/index.mjs
CHANGED
|
@@ -1749,6 +1749,24 @@ var ImageGalleryNode = (props) => {
|
|
|
1749
1749
|
hlsStyles.aspectRatio = videoWidth && videoHeight ? `${videoWidth} / ${videoHeight}` : "16 / 9";
|
|
1750
1750
|
if (primaryHls?.borderRadius)
|
|
1751
1751
|
hlsStyles.borderRadius = primaryHls.borderRadius;
|
|
1752
|
+
const hlsFallback = hlsImages.find((img) => !img.device) ?? null;
|
|
1753
|
+
if (!hlsFallback) {
|
|
1754
|
+
let display = "none";
|
|
1755
|
+
switch (props.device) {
|
|
1756
|
+
case "sm":
|
|
1757
|
+
display = hlsImages.some((img) => img.device === "sm") ? "block" : "none";
|
|
1758
|
+
break;
|
|
1759
|
+
case "md":
|
|
1760
|
+
display = hlsImages.some((img) => img.device === "md") ? "block" : "none";
|
|
1761
|
+
break;
|
|
1762
|
+
case "lg":
|
|
1763
|
+
display = hlsImages.some((img) => img.device === "lg") ? "block" : "none";
|
|
1764
|
+
break;
|
|
1765
|
+
default:
|
|
1766
|
+
display = "block";
|
|
1767
|
+
}
|
|
1768
|
+
hlsStyles.display = display;
|
|
1769
|
+
}
|
|
1752
1770
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
1753
1771
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
1754
1772
|
const FormatClass = {
|
|
@@ -1758,7 +1776,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1758
1776
|
};
|
|
1759
1777
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1760
1778
|
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1761
|
-
hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35("div", { style: hlsStyles, children: /* @__PURE__ */ jsx35(
|
|
1779
|
+
hlsSources.length > 0 && hlsStyles.display !== "none" && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35("div", { style: hlsStyles, children: /* @__PURE__ */ jsx35(
|
|
1762
1780
|
HlsPlayer3,
|
|
1763
1781
|
{
|
|
1764
1782
|
sources: hlsSources,
|
package/dist/server.js
CHANGED
|
@@ -7073,6 +7073,24 @@ var ImageGalleryNode = (props) => {
|
|
|
7073
7073
|
hlsStyles.aspectRatio = videoWidth && videoHeight ? `${videoWidth} / ${videoHeight}` : "16 / 9";
|
|
7074
7074
|
if (primaryHls?.borderRadius)
|
|
7075
7075
|
hlsStyles.borderRadius = primaryHls.borderRadius;
|
|
7076
|
+
const hlsFallback = hlsImages.find((img) => !img.device) ?? null;
|
|
7077
|
+
if (!hlsFallback) {
|
|
7078
|
+
let display = "none";
|
|
7079
|
+
switch (props.device) {
|
|
7080
|
+
case "sm":
|
|
7081
|
+
display = hlsImages.some((img) => img.device === "sm") ? "block" : "none";
|
|
7082
|
+
break;
|
|
7083
|
+
case "md":
|
|
7084
|
+
display = hlsImages.some((img) => img.device === "md") ? "block" : "none";
|
|
7085
|
+
break;
|
|
7086
|
+
case "lg":
|
|
7087
|
+
display = hlsImages.some((img) => img.device === "lg") ? "block" : "none";
|
|
7088
|
+
break;
|
|
7089
|
+
default:
|
|
7090
|
+
display = "block";
|
|
7091
|
+
}
|
|
7092
|
+
hlsStyles.display = display;
|
|
7093
|
+
}
|
|
7076
7094
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
7077
7095
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
7078
7096
|
const FormatClass = {
|
|
@@ -7082,7 +7100,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7082
7100
|
};
|
|
7083
7101
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
7084
7102
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
7085
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: hlsStyles, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7103
|
+
hlsSources.length > 0 && hlsStyles.display !== "none" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: hlsStyles, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7086
7104
|
HlsPlayer4,
|
|
7087
7105
|
{
|
|
7088
7106
|
sources: hlsSources,
|
package/dist/server.mjs
CHANGED
|
@@ -1705,6 +1705,24 @@ var ImageGalleryNode = (props) => {
|
|
|
1705
1705
|
hlsStyles.aspectRatio = videoWidth && videoHeight ? `${videoWidth} / ${videoHeight}` : "16 / 9";
|
|
1706
1706
|
if (primaryHls?.borderRadius)
|
|
1707
1707
|
hlsStyles.borderRadius = primaryHls.borderRadius;
|
|
1708
|
+
const hlsFallback = hlsImages.find((img) => !img.device) ?? null;
|
|
1709
|
+
if (!hlsFallback) {
|
|
1710
|
+
let display = "none";
|
|
1711
|
+
switch (props.device) {
|
|
1712
|
+
case "sm":
|
|
1713
|
+
display = hlsImages.some((img) => img.device === "sm") ? "block" : "none";
|
|
1714
|
+
break;
|
|
1715
|
+
case "md":
|
|
1716
|
+
display = hlsImages.some((img) => img.device === "md") ? "block" : "none";
|
|
1717
|
+
break;
|
|
1718
|
+
case "lg":
|
|
1719
|
+
display = hlsImages.some((img) => img.device === "lg") ? "block" : "none";
|
|
1720
|
+
break;
|
|
1721
|
+
default:
|
|
1722
|
+
display = "block";
|
|
1723
|
+
}
|
|
1724
|
+
hlsStyles.display = display;
|
|
1725
|
+
}
|
|
1708
1726
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
1709
1727
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
1710
1728
|
const FormatClass = {
|
|
@@ -1714,7 +1732,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1714
1732
|
};
|
|
1715
1733
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1716
1734
|
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1717
|
-
hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35("div", { style: hlsStyles, children: /* @__PURE__ */ jsx35(
|
|
1735
|
+
hlsSources.length > 0 && hlsStyles.display !== "none" && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35("div", { style: hlsStyles, children: /* @__PURE__ */ jsx35(
|
|
1718
1736
|
HlsPlayer3,
|
|
1719
1737
|
{
|
|
1720
1738
|
sources: hlsSources,
|