@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261016064336 → 0.8.1-dev.20261021091207

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.
@@ -73,7 +73,7 @@ var Slider = ({
73
73
  return 100 / (numColumns - 1 + pct / 100);
74
74
  })();
75
75
  const effectiveSlidesToShow = 100 / slideWidthPercentage;
76
- const maxSlide = Math.max(0, Math.ceil(totalSlides - effectiveSlidesToShow));
76
+ const maxSlide = Math.max(0, totalSlides - effectiveSlidesToShow);
77
77
  const step = scrollByColumns ? Math.max(1, Math.floor(effectiveSlidesToShow)) : 1;
78
78
  const rawPositions = Array.from(
79
79
  { length: Math.ceil(maxSlide / step) + 1 },
@@ -71,7 +71,7 @@ var Slider = ({
71
71
  return 100 / (numColumns - 1 + pct / 100);
72
72
  })();
73
73
  const effectiveSlidesToShow = 100 / slideWidthPercentage;
74
- const maxSlide = Math.max(0, Math.ceil(totalSlides - effectiveSlidesToShow));
74
+ const maxSlide = Math.max(0, totalSlides - effectiveSlidesToShow);
75
75
  const step = scrollByColumns ? Math.max(1, Math.floor(effectiveSlidesToShow)) : 1;
76
76
  const rawPositions = Array.from(
77
77
  { length: Math.ceil(maxSlide / step) + 1 },
package/dist/index.js CHANGED
@@ -7235,7 +7235,7 @@ var init_Slider = __esm({
7235
7235
  return 100 / (numColumns - 1 + pct / 100);
7236
7236
  })();
7237
7237
  const effectiveSlidesToShow = 100 / slideWidthPercentage;
7238
- const maxSlide = Math.max(0, Math.ceil(totalSlides - effectiveSlidesToShow));
7238
+ const maxSlide = Math.max(0, totalSlides - effectiveSlidesToShow);
7239
7239
  const step = scrollByColumns ? Math.max(1, Math.floor(effectiveSlidesToShow)) : 1;
7240
7240
  const rawPositions = Array.from(
7241
7241
  { length: Math.ceil(maxSlide / step) + 1 },
@@ -7899,7 +7899,25 @@ var DeviceAssetSelector = ({
7899
7899
  ...nodeProps?.width && { width: nodeProps.width },
7900
7900
  ...nodeProps?.height && { height: nodeProps.height }
7901
7901
  };
7902
- const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
7902
+ const isVideoFile = selectedAsset.type === "video-file";
7903
+ const playOptions = nodeProps?.playOptions ?? "autoplay";
7904
+ const renderMedia = () => isVideoFile ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
7905
+ "video",
7906
+ {
7907
+ style: styles,
7908
+ className: "object-cover w-full",
7909
+ src: resolvedAssetUrl,
7910
+ poster: resolvedThumbnailUrl,
7911
+ width: selectedAsset.intrinsicWidth,
7912
+ height: selectedAsset.intrinsicHeight,
7913
+ controls: showControls,
7914
+ loop,
7915
+ autoPlay: playOptions === "autoplay",
7916
+ muted: playOptions === "autoplay",
7917
+ playsInline: true,
7918
+ preload: playOptions === "autoplay" ? "auto" : "metadata"
7919
+ }
7920
+ ) : isHls ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
7903
7921
  HlsPlayer2,
7904
7922
  {
7905
7923
  assetUrl: resolvedAssetUrl,
package/dist/index.mjs CHANGED
@@ -182,7 +182,25 @@ var DeviceAssetSelector = ({
182
182
  ...nodeProps?.width && { width: nodeProps.width },
183
183
  ...nodeProps?.height && { height: nodeProps.height }
184
184
  };
185
- const renderMedia = () => isHls ? /* @__PURE__ */ jsx3(
185
+ const isVideoFile = selectedAsset.type === "video-file";
186
+ const playOptions = nodeProps?.playOptions ?? "autoplay";
187
+ const renderMedia = () => isVideoFile ? /* @__PURE__ */ jsx3(
188
+ "video",
189
+ {
190
+ style: styles,
191
+ className: "object-cover w-full",
192
+ src: resolvedAssetUrl,
193
+ poster: resolvedThumbnailUrl,
194
+ width: selectedAsset.intrinsicWidth,
195
+ height: selectedAsset.intrinsicHeight,
196
+ controls: showControls,
197
+ loop,
198
+ autoPlay: playOptions === "autoplay",
199
+ muted: playOptions === "autoplay",
200
+ playsInline: true,
201
+ preload: playOptions === "autoplay" ? "auto" : "metadata"
202
+ }
203
+ ) : isHls ? /* @__PURE__ */ jsx3(
186
204
  HlsPlayer,
187
205
  {
188
206
  assetUrl: resolvedAssetUrl,
@@ -2551,7 +2569,7 @@ var Pagination = dynamic16(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: tru
2551
2569
  var DataBindingControls = dynamic16(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
2552
2570
  ssr: true
2553
2571
  });
2554
- var Slider = dynamic16(() => import("./Slider-XF4ZPNIN.mjs"), {
2572
+ var Slider = dynamic16(() => import("./Slider-3EPDXTUZ.mjs"), {
2555
2573
  ssr: false
2556
2574
  });
2557
2575
  function toCamelCase(str) {
package/dist/server.js CHANGED
@@ -4869,7 +4869,7 @@ var init_Slider = __esm({
4869
4869
  return 100 / (numColumns - 1 + pct / 100);
4870
4870
  })();
4871
4871
  const effectiveSlidesToShow = 100 / slideWidthPercentage;
4872
- const maxSlide = Math.max(0, Math.ceil(totalSlides - effectiveSlidesToShow));
4872
+ const maxSlide = Math.max(0, totalSlides - effectiveSlidesToShow);
4873
4873
  const step = scrollByColumns ? Math.max(1, Math.floor(effectiveSlidesToShow)) : 1;
4874
4874
  const rawPositions = Array.from(
4875
4875
  { length: Math.ceil(maxSlide / step) + 1 },
@@ -5504,7 +5504,25 @@ var DeviceAssetSelector = ({
5504
5504
  ...nodeProps?.width && { width: nodeProps.width },
5505
5505
  ...nodeProps?.height && { height: nodeProps.height }
5506
5506
  };
5507
- const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
5507
+ const isVideoFile = selectedAsset.type === "video-file";
5508
+ const playOptions = nodeProps?.playOptions ?? "autoplay";
5509
+ const renderMedia = () => isVideoFile ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
5510
+ "video",
5511
+ {
5512
+ style: styles,
5513
+ className: "object-cover w-full",
5514
+ src: resolvedAssetUrl,
5515
+ poster: resolvedThumbnailUrl,
5516
+ width: selectedAsset.intrinsicWidth,
5517
+ height: selectedAsset.intrinsicHeight,
5518
+ controls: showControls,
5519
+ loop,
5520
+ autoPlay: playOptions === "autoplay",
5521
+ muted: playOptions === "autoplay",
5522
+ playsInline: true,
5523
+ preload: playOptions === "autoplay" ? "auto" : "metadata"
5524
+ }
5525
+ ) : isHls ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
5508
5526
  HlsPlayer2,
5509
5527
  {
5510
5528
  assetUrl: resolvedAssetUrl,
package/dist/server.mjs CHANGED
@@ -147,7 +147,25 @@ var DeviceAssetSelector = ({
147
147
  ...nodeProps?.width && { width: nodeProps.width },
148
148
  ...nodeProps?.height && { height: nodeProps.height }
149
149
  };
150
- const renderMedia = () => isHls ? /* @__PURE__ */ jsx3(
150
+ const isVideoFile = selectedAsset.type === "video-file";
151
+ const playOptions = nodeProps?.playOptions ?? "autoplay";
152
+ const renderMedia = () => isVideoFile ? /* @__PURE__ */ jsx3(
153
+ "video",
154
+ {
155
+ style: styles,
156
+ className: "object-cover w-full",
157
+ src: resolvedAssetUrl,
158
+ poster: resolvedThumbnailUrl,
159
+ width: selectedAsset.intrinsicWidth,
160
+ height: selectedAsset.intrinsicHeight,
161
+ controls: showControls,
162
+ loop,
163
+ autoPlay: playOptions === "autoplay",
164
+ muted: playOptions === "autoplay",
165
+ playsInline: true,
166
+ preload: playOptions === "autoplay" ? "auto" : "metadata"
167
+ }
168
+ ) : isHls ? /* @__PURE__ */ jsx3(
151
169
  HlsPlayer,
152
170
  {
153
171
  assetUrl: resolvedAssetUrl,
@@ -2507,7 +2525,7 @@ var Pagination = dynamic15(() => import("./Pagination-RMAXCIL7.mjs"), { ssr: tru
2507
2525
  var DataBindingControls = dynamic15(() => import("./DataBindingControls-Z2AHWFYX.mjs"), {
2508
2526
  ssr: true
2509
2527
  });
2510
- var Slider = dynamic15(() => import("./Slider-S5M6EEBG.mjs"), {
2528
+ var Slider = dynamic15(() => import("./Slider-7MKCFSIB.mjs"), {
2511
2529
  ssr: false
2512
2530
  });
2513
2531
  function toCamelCase(str) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clyrex-digital/clyrex-controls-dev",
3
- "version": "0.8.1-dev.20261016064336",
3
+ "version": "0.8.1-dev.20261021091207",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",