@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260807124440 → 0.8.1-dev.20260808070128
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/{IframeClient-7MLB3UB2.mjs → IframeClient-J22NMEVY.mjs} +7 -8
- package/dist/{IframeClient-ZFI2S3GR.mjs → IframeClient-RGJFZ5P2.mjs} +7 -8
- package/dist/index.js +892 -821
- package/dist/index.mjs +381 -309
- package/dist/server.js +340 -269
- package/dist/server.mjs +197 -125
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ var IFrameLoaderView_default = IFrameLoaderView;
|
|
|
47
47
|
|
|
48
48
|
// src/components/pageRenderingEngine/nodes/IframeClient.tsx
|
|
49
49
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
50
|
-
var IframeClient = ({ src
|
|
50
|
+
var IframeClient = ({ src }) => {
|
|
51
51
|
const iframeRef = useRef(null);
|
|
52
52
|
const [iframeHeight, setIframeHeight] = useState("100%");
|
|
53
53
|
const [isDataFound, setIsDataFound] = useState(null);
|
|
@@ -56,11 +56,11 @@ var IframeClient = ({ src, height, width }) => {
|
|
|
56
56
|
const eventName = event?.data?.eventName;
|
|
57
57
|
const payload = event?.data?.payload;
|
|
58
58
|
if (eventName === "SET_HEIGHT" && payload?.height) {
|
|
59
|
-
let
|
|
59
|
+
let height = 500;
|
|
60
60
|
if (payload.height > 500) {
|
|
61
|
-
|
|
61
|
+
height = payload.height + 50;
|
|
62
62
|
}
|
|
63
|
-
setIframeHeight(`${
|
|
63
|
+
setIframeHeight(`${height}px`);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
window.addEventListener("message", handleReceiveMessage);
|
|
@@ -83,11 +83,10 @@ var IframeClient = ({ src, height, width }) => {
|
|
|
83
83
|
{
|
|
84
84
|
ref: iframeRef,
|
|
85
85
|
src,
|
|
86
|
-
className: " border-none",
|
|
86
|
+
className: "w-full h-full border-none",
|
|
87
87
|
scrolling: "no",
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
width
|
|
88
|
+
style: { height: iframeHeight },
|
|
89
|
+
onLoad: handleIframeLoad
|
|
91
90
|
}
|
|
92
91
|
) }) });
|
|
93
92
|
};
|
|
@@ -49,7 +49,7 @@ var IFrameLoaderView_default = IFrameLoaderView;
|
|
|
49
49
|
|
|
50
50
|
// src/components/pageRenderingEngine/nodes/IframeClient.tsx
|
|
51
51
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
52
|
-
var IframeClient = ({ src
|
|
52
|
+
var IframeClient = ({ src }) => {
|
|
53
53
|
const iframeRef = useRef(null);
|
|
54
54
|
const [iframeHeight, setIframeHeight] = useState("100%");
|
|
55
55
|
const [isDataFound, setIsDataFound] = useState(null);
|
|
@@ -58,11 +58,11 @@ var IframeClient = ({ src, height, width }) => {
|
|
|
58
58
|
const eventName = event?.data?.eventName;
|
|
59
59
|
const payload = event?.data?.payload;
|
|
60
60
|
if (eventName === "SET_HEIGHT" && payload?.height) {
|
|
61
|
-
let
|
|
61
|
+
let height = 500;
|
|
62
62
|
if (payload.height > 500) {
|
|
63
|
-
|
|
63
|
+
height = payload.height + 50;
|
|
64
64
|
}
|
|
65
|
-
setIframeHeight(`${
|
|
65
|
+
setIframeHeight(`${height}px`);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
window.addEventListener("message", handleReceiveMessage);
|
|
@@ -85,11 +85,10 @@ var IframeClient = ({ src, height, width }) => {
|
|
|
85
85
|
{
|
|
86
86
|
ref: iframeRef,
|
|
87
87
|
src,
|
|
88
|
-
className: " border-none",
|
|
88
|
+
className: "w-full h-full border-none",
|
|
89
89
|
scrolling: "no",
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
width
|
|
90
|
+
style: { height: iframeHeight },
|
|
91
|
+
onLoad: handleIframeLoad
|
|
93
92
|
}
|
|
94
93
|
) }) });
|
|
95
94
|
};
|