@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260422073350 → 0.8.1-dev.20260422090829
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.
|
@@ -109,6 +109,7 @@ var HlsPlayer = React.memo(
|
|
|
109
109
|
{
|
|
110
110
|
ref: videoRef,
|
|
111
111
|
className: "w-full h-full object-contain",
|
|
112
|
+
poster: fallbackPoster,
|
|
112
113
|
controls: showControls && (isMobile || isPlaying),
|
|
113
114
|
muted: playOptions === "autoplay" || playOptions === "playOnHover",
|
|
114
115
|
autoPlay: playOptions === "autoplay",
|
|
@@ -126,10 +127,10 @@ var HlsPlayer = React.memo(
|
|
|
126
127
|
))
|
|
127
128
|
}
|
|
128
129
|
),
|
|
129
|
-
|
|
130
|
+
!isMobile && playOptions === "playOnHover" && fallbackPoster && /* @__PURE__ */ jsxs(
|
|
130
131
|
"picture",
|
|
131
132
|
{
|
|
132
|
-
className: `absolute inset-0 transition-opacity ${
|
|
133
|
+
className: `absolute inset-0 transition-opacity ${isHovered ? "opacity-0" : "opacity-100"}`,
|
|
133
134
|
children: [
|
|
134
135
|
posterSources.map(({ media, posterUrl: src }, i) => /* @__PURE__ */ jsx("source", { media, srcSet: src }, i)),
|
|
135
136
|
/* @__PURE__ */ jsx(
|
package/dist/index.js
CHANGED
|
@@ -386,6 +386,7 @@ var init_HlsPlayer = __esm({
|
|
|
386
386
|
{
|
|
387
387
|
ref: videoRef,
|
|
388
388
|
className: "w-full h-full object-contain",
|
|
389
|
+
poster: fallbackPoster,
|
|
389
390
|
controls: showControls && (isMobile || isPlaying),
|
|
390
391
|
muted: playOptions === "autoplay" || playOptions === "playOnHover",
|
|
391
392
|
autoPlay: playOptions === "autoplay",
|
|
@@ -403,10 +404,10 @@ var init_HlsPlayer = __esm({
|
|
|
403
404
|
))
|
|
404
405
|
}
|
|
405
406
|
),
|
|
406
|
-
|
|
407
|
+
!isMobile && playOptions === "playOnHover" && fallbackPoster && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
407
408
|
"picture",
|
|
408
409
|
{
|
|
409
|
-
className: `absolute inset-0 transition-opacity ${
|
|
410
|
+
className: `absolute inset-0 transition-opacity ${isHovered ? "opacity-0" : "opacity-100"}`,
|
|
410
411
|
children: [
|
|
411
412
|
posterSources.map(({ media, posterUrl: src }, i) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("source", { media, srcSet: src }, i)),
|
|
412
413
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -5176,7 +5177,6 @@ var ImageGalleryNode = (props) => {
|
|
|
5176
5177
|
(img) => !resolveImageUrl(img.imageUrl).endsWith(".m3u8")
|
|
5177
5178
|
);
|
|
5178
5179
|
const hlsSources = [
|
|
5179
|
-
// Constrained sources in breakpoint order (narrowest first).
|
|
5180
5180
|
...DEVICE_ORDER.flatMap((deviceKey) => {
|
|
5181
5181
|
const img = hlsImages.find((i) => i.device === deviceKey);
|
|
5182
5182
|
if (!img) return [];
|
|
@@ -5186,7 +5186,6 @@ var ImageGalleryNode = (props) => {
|
|
|
5186
5186
|
const posterUrl = resolvePosterUrl(img.posterUrl);
|
|
5187
5187
|
return [{ src, ...media ? { media } : {}, ...posterUrl ? { posterUrl } : {} }];
|
|
5188
5188
|
}),
|
|
5189
|
-
// Unconstrained fallback(s) — no media attr, always matches.
|
|
5190
5189
|
...hlsImages.filter((img) => !img.device).map((img) => {
|
|
5191
5190
|
const src = resolveImageUrl(img.imageUrl);
|
|
5192
5191
|
const posterUrl = resolvePosterUrl(img.posterUrl);
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HlsPlayer_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTZ3IUOL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Button_default,
|
|
6
6
|
ServiceClient_default,
|
|
@@ -2638,7 +2638,7 @@ var DeviceAssetSelector_default = DeviceAssetSelector;
|
|
|
2638
2638
|
|
|
2639
2639
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
2640
2640
|
import { Fragment as Fragment3, jsx as jsx39 } from "react/jsx-runtime";
|
|
2641
|
-
var HlsPlayer = dynamic(() => import("./HlsPlayer-
|
|
2641
|
+
var HlsPlayer = dynamic(() => import("./HlsPlayer-KOTCX7MY.mjs"), {
|
|
2642
2642
|
ssr: false
|
|
2643
2643
|
});
|
|
2644
2644
|
var getNestedValue = (obj, path) => {
|
|
@@ -4107,7 +4107,7 @@ var Pagination_default = Pagination;
|
|
|
4107
4107
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
4108
4108
|
import dynamic5 from "next/dynamic";
|
|
4109
4109
|
import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4110
|
-
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-
|
|
4110
|
+
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-KOTCX7MY.mjs"), { ssr: false });
|
|
4111
4111
|
var deviceToMediaQuery = (device) => {
|
|
4112
4112
|
switch (device) {
|
|
4113
4113
|
case "sm":
|
|
@@ -4149,7 +4149,6 @@ var ImageGalleryNode = (props) => {
|
|
|
4149
4149
|
(img) => !resolveImageUrl(img.imageUrl).endsWith(".m3u8")
|
|
4150
4150
|
);
|
|
4151
4151
|
const hlsSources = [
|
|
4152
|
-
// Constrained sources in breakpoint order (narrowest first).
|
|
4153
4152
|
...DEVICE_ORDER.flatMap((deviceKey) => {
|
|
4154
4153
|
const img = hlsImages.find((i) => i.device === deviceKey);
|
|
4155
4154
|
if (!img) return [];
|
|
@@ -4159,7 +4158,6 @@ var ImageGalleryNode = (props) => {
|
|
|
4159
4158
|
const posterUrl = resolvePosterUrl(img.posterUrl);
|
|
4160
4159
|
return [{ src, ...media ? { media } : {}, ...posterUrl ? { posterUrl } : {} }];
|
|
4161
4160
|
}),
|
|
4162
|
-
// Unconstrained fallback(s) — no media attr, always matches.
|
|
4163
4161
|
...hlsImages.filter((img) => !img.device).map((img) => {
|
|
4164
4162
|
const src = resolveImageUrl(img.imageUrl);
|
|
4165
4163
|
const posterUrl = resolvePosterUrl(img.posterUrl);
|
package/package.json
CHANGED