@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260502064252 → 0.8.1-dev.20260502120507

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  HlsPlayer_default
4
- } from "./chunk-PJWICSOI.mjs";
4
+ } from "./chunk-FRNG2H5Y.mjs";
5
5
  export {
6
6
  HlsPlayer_default as default
7
7
  };
@@ -48,19 +48,13 @@ var HlsPlayer = React.memo(
48
48
  return () => window.removeEventListener("resize", checkMobile);
49
49
  }, []);
50
50
  useEffect(() => {
51
- const v = videoRef.current;
52
- if (!v) return;
53
- const onPlaying = () => setIsPosterVisible(false);
54
- const onPause = () => {
55
- if (v.currentTime === 0) setIsPosterVisible(true);
56
- };
57
- v.addEventListener("playing", onPlaying);
58
- v.addEventListener("pause", onPause);
59
- return () => {
60
- v.removeEventListener("playing", onPlaying);
61
- v.removeEventListener("pause", onPause);
62
- };
63
- }, []);
51
+ if (isPlaying) {
52
+ setIsPosterVisible(false);
53
+ } else {
54
+ const v = videoRef.current;
55
+ if (!v || v.currentTime === 0) setIsPosterVisible(true);
56
+ }
57
+ }, [isPlaying]);
64
58
  const resetInactivityTimer = useCallback(() => {
65
59
  setIsControlsVisible(true);
66
60
  if (inactivityTimerRef.current) clearTimeout(inactivityTimerRef.current);
@@ -231,7 +225,8 @@ var HlsPlayer = React.memo(
231
225
  width: intrinsicWidth,
232
226
  height: intrinsicHeight,
233
227
  alt: "poster",
234
- className: "w-full h-full object-cover"
228
+ className: "w-full h-full object-cover",
229
+ style: { pointerEvents: "none" }
235
230
  }
236
231
  )
237
232
  ]
package/dist/index.js CHANGED
@@ -574,19 +574,13 @@ var init_HlsPlayer = __esm({
574
574
  return () => window.removeEventListener("resize", checkMobile);
575
575
  }, []);
576
576
  (0, import_react32.useEffect)(() => {
577
- const v = videoRef.current;
578
- if (!v) return;
579
- const onPlaying = () => setIsPosterVisible(false);
580
- const onPause = () => {
581
- if (v.currentTime === 0) setIsPosterVisible(true);
582
- };
583
- v.addEventListener("playing", onPlaying);
584
- v.addEventListener("pause", onPause);
585
- return () => {
586
- v.removeEventListener("playing", onPlaying);
587
- v.removeEventListener("pause", onPause);
588
- };
589
- }, []);
577
+ if (isPlaying) {
578
+ setIsPosterVisible(false);
579
+ } else {
580
+ const v = videoRef.current;
581
+ if (!v || v.currentTime === 0) setIsPosterVisible(true);
582
+ }
583
+ }, [isPlaying]);
590
584
  const resetInactivityTimer = (0, import_react32.useCallback)(() => {
591
585
  setIsControlsVisible(true);
592
586
  if (inactivityTimerRef.current) clearTimeout(inactivityTimerRef.current);
@@ -757,7 +751,8 @@ var init_HlsPlayer = __esm({
757
751
  width: intrinsicWidth,
758
752
  height: intrinsicHeight,
759
753
  alt: "poster",
760
- className: "w-full h-full object-cover"
754
+ className: "w-full h-full object-cover",
755
+ style: { pointerEvents: "none" }
761
756
  }
762
757
  )
763
758
  ]
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HlsPlayer_default
3
- } from "./chunk-PJWICSOI.mjs";
3
+ } from "./chunk-FRNG2H5Y.mjs";
4
4
  import {
5
5
  Button_default,
6
6
  ClientButton_default,
@@ -1963,7 +1963,7 @@ var DeviceAssetSelector_default = DeviceAssetSelector;
1963
1963
 
1964
1964
  // src/components/pageRenderingEngine/nodes/ImageNode.tsx
1965
1965
  import { Fragment as Fragment2, jsx as jsx37 } from "react/jsx-runtime";
1966
- var HlsPlayer = dynamic2(() => import("./HlsPlayer-MSDXB5WD.mjs"), {
1966
+ var HlsPlayer = dynamic2(() => import("./HlsPlayer-ZPLOKA4L.mjs"), {
1967
1967
  ssr: false
1968
1968
  });
1969
1969
  var getNestedValue = (obj, path) => {
@@ -3645,7 +3645,7 @@ var Pagination_default = Pagination;
3645
3645
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
3646
3646
  import dynamic6 from "next/dynamic";
3647
3647
  import { Fragment as Fragment8, jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
3648
- var HlsPlayer2 = dynamic6(() => import("./HlsPlayer-MSDXB5WD.mjs"), { ssr: false });
3648
+ var HlsPlayer2 = dynamic6(() => import("./HlsPlayer-ZPLOKA4L.mjs"), { ssr: false });
3649
3649
  var deviceToMediaQuery = (device) => {
3650
3650
  switch (device) {
3651
3651
  case "sm":
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.20260502064252",
3
+ "version": "0.8.1-dev.20260502120507",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",