@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260704091052 → 0.8.1-dev.20260706114046
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/CopyButton-UPJPMJUB.mjs +57 -0
- package/dist/DateTimeViewClient-R3M6ISVK.mjs +16 -0
- package/dist/DateViewClient-VLTRN47D.mjs +9 -0
- package/dist/{chunk-SDNYBQSI.mjs → HlsPlayer-57543DTW.mjs} +3 -2
- package/dist/HlsPlayer-5AWFZ2P6.mjs +601 -0
- package/dist/IframeClient-RGJFZ5P2.mjs +98 -0
- package/dist/InputControlClient-NJV6B65M.mjs +604 -0
- package/dist/InputControlClient-OQDLYA4S.mjs +604 -0
- package/dist/InputControlClient-TW664WIJ.mjs +602 -0
- package/dist/{LinkNodeButton-WDDPNYWI.mjs → LinkNodeButton-FUL3J5HR.mjs} +6 -5
- package/dist/LinkNodeButton-IGJOGOKI.mjs +362 -0
- package/dist/LinkNodeButton-ZONM74OO.mjs +174 -0
- package/dist/Pagination-6OFACRMQ.mjs +229 -0
- package/dist/Pagination-FSYLYKUA.mjs +181 -0
- package/dist/Pagination-YCD5CU2L.mjs +183 -0
- package/dist/Slider-554BKC7N.mjs +322 -0
- package/dist/Slider-PEIVH6A5.mjs +320 -0
- package/dist/chunk-2GSYECIS.mjs +109 -0
- package/dist/chunk-3GWLDT7C.mjs +204 -0
- package/dist/chunk-3R4VVVNK.mjs +903 -0
- package/dist/chunk-47HD7QP7.mjs +199 -0
- package/dist/chunk-56HSDML5.mjs +22 -0
- package/dist/chunk-67IG5NBU.mjs +200 -0
- package/dist/chunk-7ZFZLN56.mjs +903 -0
- package/dist/chunk-CM7LUGCH.mjs +107 -0
- package/dist/chunk-IKIXEQPV.mjs +198 -0
- package/dist/chunk-IMNQO57B.mjs +25 -0
- package/dist/chunk-R2HV35IB.mjs +201 -0
- package/dist/chunk-SPRVN5IM.mjs +118 -0
- package/dist/chunk-TVL6KVD5.mjs +229 -0
- package/dist/chunk-WEV5U33G.mjs +207 -0
- package/dist/chunk-YG6FKKQJ.mjs +900 -0
- package/dist/index.d.mts +56 -169
- package/dist/index.d.ts +56 -169
- package/dist/index.js +3940 -3807
- package/dist/index.mjs +591 -2923
- package/dist/server.d.mts +72 -0
- package/dist/server.d.ts +72 -0
- package/dist/server.js +5126 -0
- package/dist/server.mjs +2698 -0
- package/package.json +18 -4
- package/dist/HlsPlayer-DZNDKG2P.mjs +0 -7
- package/dist/chunk-DOKQUUH3.mjs +0 -414
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
"use client";
|
|
4
|
+
|
|
5
|
+
// src/components/pageRenderingEngine/nodes/IframeClient.tsx
|
|
6
|
+
import React2, { useEffect, useRef, useState } from "react";
|
|
7
|
+
|
|
8
|
+
// src/components/IFrameLoaderView.tsx
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
var IFrameLoaderView = (props) => {
|
|
12
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
13
|
+
props.isDataFound == null && /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsxs("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
14
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center mb-4", children: [
|
|
15
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
16
|
+
/* @__PURE__ */ jsxs("div", { className: "ml-2", children: [
|
|
17
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
19
|
+
] })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
22
|
+
/* @__PURE__ */ jsxs("div", { className: "animate-pulse", children: [
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
24
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
25
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
27
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ jsxs("div", { className: "animate-pulse", children: [
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
31
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
32
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
33
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
34
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ jsxs("div", { className: "animate-pulse", children: [
|
|
37
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
39
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
40
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
42
|
+
] })
|
|
43
|
+
] })
|
|
44
|
+
] }) }),
|
|
45
|
+
props.children
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
48
|
+
var IFrameLoaderView_default = IFrameLoaderView;
|
|
49
|
+
|
|
50
|
+
// src/components/pageRenderingEngine/nodes/IframeClient.tsx
|
|
51
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
52
|
+
var IframeClient = ({ src }) => {
|
|
53
|
+
const iframeRef = useRef(null);
|
|
54
|
+
const [iframeHeight, setIframeHeight] = useState("100%");
|
|
55
|
+
const [isDataFound, setIsDataFound] = useState(null);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const handleReceiveMessage = (event) => {
|
|
58
|
+
const eventName = event?.data?.eventName;
|
|
59
|
+
const payload = event?.data?.payload;
|
|
60
|
+
if (eventName === "SET_HEIGHT" && payload?.height) {
|
|
61
|
+
let height = 500;
|
|
62
|
+
if (payload.height > 500) {
|
|
63
|
+
height = payload.height + 50;
|
|
64
|
+
}
|
|
65
|
+
setIframeHeight(`${height}px`);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
window.addEventListener("message", handleReceiveMessage);
|
|
69
|
+
return () => window.removeEventListener("message", handleReceiveMessage);
|
|
70
|
+
}, []);
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
const handleResize = () => {
|
|
73
|
+
if (iframeRef.current) {
|
|
74
|
+
iframeRef.current.contentWindow?.postMessage({ eventName: "RESIZE" }, "*");
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
window.addEventListener("resize", handleResize);
|
|
78
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
79
|
+
}, []);
|
|
80
|
+
const handleIframeLoad = () => {
|
|
81
|
+
setIsDataFound(true);
|
|
82
|
+
};
|
|
83
|
+
return /* @__PURE__ */ jsx2(React2.Fragment, { children: /* @__PURE__ */ jsx2(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ jsx2(
|
|
84
|
+
"iframe",
|
|
85
|
+
{
|
|
86
|
+
ref: iframeRef,
|
|
87
|
+
src,
|
|
88
|
+
className: "w-full h-full border-none",
|
|
89
|
+
scrolling: "no",
|
|
90
|
+
style: { height: iframeHeight },
|
|
91
|
+
onLoad: handleIframeLoad
|
|
92
|
+
}
|
|
93
|
+
) }) });
|
|
94
|
+
};
|
|
95
|
+
var IframeClient_default = IframeClient;
|
|
96
|
+
export {
|
|
97
|
+
IframeClient_default as default
|
|
98
|
+
};
|