@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260421115845 → 0.8.1-dev.20260422062852

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-6C4HXWFR.mjs";
4
+ } from "./chunk-Q46ODS3X.mjs";
5
5
  export {
6
6
  HlsPlayer_default as default
7
7
  };
@@ -11,7 +11,8 @@ var HlsPlayer = React.memo(
11
11
  intrinsicHeight,
12
12
  showControls = true,
13
13
  loop = false,
14
- playOptions = "autoplay"
14
+ playOptions = "autoplay",
15
+ placementCode = ""
15
16
  }) => {
16
17
  const videoRef = useRef(null);
17
18
  const hlsRef = useRef(null);
package/dist/index.js CHANGED
@@ -288,7 +288,8 @@ var init_HlsPlayer = __esm({
288
288
  intrinsicHeight,
289
289
  showControls = true,
290
290
  loop = false,
291
- playOptions = "autoplay"
291
+ playOptions = "autoplay",
292
+ placementCode = ""
292
293
  }) => {
293
294
  const videoRef = (0, import_react33.useRef)(null);
294
295
  const hlsRef = (0, import_react33.useRef)(null);
@@ -5130,13 +5131,13 @@ var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() =>
5130
5131
  var deviceToMediaQuery = (device) => {
5131
5132
  switch (device) {
5132
5133
  case "sm":
5133
- return "(max-width: 767px)";
5134
+ return "(max-width: 480px)";
5134
5135
  case "md":
5135
- return "(min-width: 768px) and (max-width: 1199px)";
5136
+ return "(max-width: 768px)";
5136
5137
  case "lg":
5137
- return "(min-width: 1200px) and (max-width: 1919px)";
5138
- case "tv":
5139
- return "(min-width: 1920px)";
5138
+ return "(min-width: 769px)";
5139
+ // case "tv":
5140
+ // return "(min-width: 1920px)";
5140
5141
  default:
5141
5142
  return null;
5142
5143
  }
@@ -5192,22 +5193,23 @@ var ImageGalleryNode = (props) => {
5192
5193
  right: "justify-end"
5193
5194
  };
5194
5195
  const formatClasses = FormatClass[props.node.format || ""] || "";
5195
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children: [
5196
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "max-w-full w-full", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5196
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
5197
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5197
5198
  HlsPlayer3,
5198
5199
  {
5199
5200
  sources: hlsSources,
5200
5201
  posterUrl: hlsPosterUrl,
5201
5202
  intrinsicWidth: hlsIntrinsicWidth,
5202
5203
  intrinsicHeight: hlsIntrinsicHeight,
5203
- showControls: true,
5204
- loop: false,
5205
- playOptions: void 0,
5204
+ showControls: primaryHls?.showControls ?? false,
5205
+ loop: primaryHls?.loop ?? false,
5206
+ playOptions: primaryHls?.playOptions ?? "",
5207
+ placementCode: primaryHls?.placementCode ?? "",
5206
5208
  apiBaseUrl: props.apiBaseUrl,
5207
5209
  session: props.session
5208
5210
  }
5209
5211
  ) }),
5210
- staticFallback && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("picture", { children: [
5212
+ staticFallback && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("picture", { children: [
5211
5213
  DEVICE_ORDER.map((deviceKey) => {
5212
5214
  const match = staticSources.find((img) => img.device === deviceKey);
5213
5215
  if (!match) return null;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HlsPlayer_default
3
- } from "./chunk-6C4HXWFR.mjs";
3
+ } from "./chunk-Q46ODS3X.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-LIFSWOII.mjs"), {
2641
+ var HlsPlayer = dynamic(() => import("./HlsPlayer-UECDBJDB.mjs"), {
2642
2642
  ssr: false
2643
2643
  });
2644
2644
  var getNestedValue = (obj, path) => {
@@ -4106,18 +4106,18 @@ var Pagination_default = Pagination;
4106
4106
 
4107
4107
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
4108
4108
  import dynamic5 from "next/dynamic";
4109
- import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
4110
- var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-LIFSWOII.mjs"), { ssr: false });
4109
+ import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
4110
+ var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-UECDBJDB.mjs"), { ssr: false });
4111
4111
  var deviceToMediaQuery = (device) => {
4112
4112
  switch (device) {
4113
4113
  case "sm":
4114
- return "(max-width: 767px)";
4114
+ return "(max-width: 480px)";
4115
4115
  case "md":
4116
- return "(min-width: 768px) and (max-width: 1199px)";
4116
+ return "(max-width: 768px)";
4117
4117
  case "lg":
4118
- return "(min-width: 1200px) and (max-width: 1919px)";
4119
- case "tv":
4120
- return "(min-width: 1920px)";
4118
+ return "(min-width: 769px)";
4119
+ // case "tv":
4120
+ // return "(min-width: 1920px)";
4121
4121
  default:
4122
4122
  return null;
4123
4123
  }
@@ -4173,22 +4173,23 @@ var ImageGalleryNode = (props) => {
4173
4173
  right: "justify-end"
4174
4174
  };
4175
4175
  const formatClasses = FormatClass[props.node.format || ""] || "";
4176
- return /* @__PURE__ */ jsxs33("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children: [
4177
- hlsSources.length > 0 && /* @__PURE__ */ jsx58("div", { className: "max-w-full w-full", children: /* @__PURE__ */ jsx58(
4176
+ return /* @__PURE__ */ jsxs33(Fragment9, { children: [
4177
+ hlsSources.length > 0 && /* @__PURE__ */ jsx58(Fragment9, { children: /* @__PURE__ */ jsx58(
4178
4178
  HlsPlayer2,
4179
4179
  {
4180
4180
  sources: hlsSources,
4181
4181
  posterUrl: hlsPosterUrl,
4182
4182
  intrinsicWidth: hlsIntrinsicWidth,
4183
4183
  intrinsicHeight: hlsIntrinsicHeight,
4184
- showControls: true,
4185
- loop: false,
4186
- playOptions: void 0,
4184
+ showControls: primaryHls?.showControls ?? false,
4185
+ loop: primaryHls?.loop ?? false,
4186
+ playOptions: primaryHls?.playOptions ?? "",
4187
+ placementCode: primaryHls?.placementCode ?? "",
4187
4188
  apiBaseUrl: props.apiBaseUrl,
4188
4189
  session: props.session
4189
4190
  }
4190
4191
  ) }),
4191
- staticFallback && /* @__PURE__ */ jsx58("div", { className: "max-w-full", children: /* @__PURE__ */ jsxs33("picture", { children: [
4192
+ staticFallback && /* @__PURE__ */ jsx58(Fragment9, { children: /* @__PURE__ */ jsxs33("picture", { children: [
4192
4193
  DEVICE_ORDER.map((deviceKey) => {
4193
4194
  const match = staticSources.find((img) => img.device === deviceKey);
4194
4195
  if (!match) return null;
@@ -4656,7 +4657,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
4656
4657
 
4657
4658
  // src/components/Toast.tsx
4658
4659
  import { useState as useState8 } from "react";
4659
- import { Fragment as Fragment9, jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
4660
+ import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
4660
4661
  var Toast = () => {
4661
4662
  const [showToast, setShowToast] = useState8(false);
4662
4663
  const [message, setMessage] = useState8("");
@@ -4699,7 +4700,7 @@ var Toast = () => {
4699
4700
  const closeToast = () => {
4700
4701
  setShowToast(false);
4701
4702
  };
4702
- return /* @__PURE__ */ jsx61(Fragment9, { children: showToast && /* @__PURE__ */ jsx61("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs35("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
4703
+ return /* @__PURE__ */ jsx61(Fragment10, { children: showToast && /* @__PURE__ */ jsx61("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs35("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
4703
4704
  /* @__PURE__ */ jsx61(
4704
4705
  "span",
4705
4706
  {
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.20260421115845",
3
+ "version": "0.8.1-dev.20260422062852",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",