@crediblemark/build 0.25.17 → 0.25.18
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/{chunk-W3JRA22A.mjs → chunk-3EWP7RGL.mjs} +15 -0
- package/dist/index.js +15 -0
- package/dist/index.mjs +1 -1
- package/dist/no-external.js +15 -0
- package/dist/no-external.mjs +1 -1
- package/package.json +1 -1
|
@@ -3943,6 +3943,21 @@ var Canvas = () => {
|
|
|
3943
3943
|
zoomConfig.rootHeight,
|
|
3944
3944
|
frameRef
|
|
3945
3945
|
]);
|
|
3946
|
+
useEffect11(() => {
|
|
3947
|
+
const handleMessage = (event) => {
|
|
3948
|
+
if (event.data && event.data.type === "resize-iframe") {
|
|
3949
|
+
const newRootHeight = event.data.height;
|
|
3950
|
+
if (zoomConfig.rootHeight !== newRootHeight) {
|
|
3951
|
+
setZoomConfig({
|
|
3952
|
+
...zoomConfig,
|
|
3953
|
+
rootHeight: newRootHeight
|
|
3954
|
+
});
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3957
|
+
};
|
|
3958
|
+
window.addEventListener("message", handleMessage);
|
|
3959
|
+
return () => window.removeEventListener("message", handleMessage);
|
|
3960
|
+
}, [zoomConfig, setZoomConfig]);
|
|
3946
3961
|
useEffect11(() => {
|
|
3947
3962
|
if (ZOOM_ON_CHANGE) {
|
|
3948
3963
|
resetAutoZoom();
|
package/dist/index.js
CHANGED
|
@@ -15175,6 +15175,21 @@ var Canvas = () => {
|
|
|
15175
15175
|
zoomConfig.rootHeight,
|
|
15176
15176
|
frameRef
|
|
15177
15177
|
]);
|
|
15178
|
+
(0, import_react97.useEffect)(() => {
|
|
15179
|
+
const handleMessage = (event) => {
|
|
15180
|
+
if (event.data && event.data.type === "resize-iframe") {
|
|
15181
|
+
const newRootHeight = event.data.height;
|
|
15182
|
+
if (zoomConfig.rootHeight !== newRootHeight) {
|
|
15183
|
+
setZoomConfig({
|
|
15184
|
+
...zoomConfig,
|
|
15185
|
+
rootHeight: newRootHeight
|
|
15186
|
+
});
|
|
15187
|
+
}
|
|
15188
|
+
}
|
|
15189
|
+
};
|
|
15190
|
+
window.addEventListener("message", handleMessage);
|
|
15191
|
+
return () => window.removeEventListener("message", handleMessage);
|
|
15192
|
+
}, [zoomConfig, setZoomConfig]);
|
|
15178
15193
|
(0, import_react97.useEffect)(() => {
|
|
15179
15194
|
if (ZOOM_ON_CHANGE) {
|
|
15180
15195
|
resetAutoZoom();
|
package/dist/index.mjs
CHANGED
package/dist/no-external.js
CHANGED
|
@@ -15175,6 +15175,21 @@ var Canvas = () => {
|
|
|
15175
15175
|
zoomConfig.rootHeight,
|
|
15176
15176
|
frameRef
|
|
15177
15177
|
]);
|
|
15178
|
+
(0, import_react97.useEffect)(() => {
|
|
15179
|
+
const handleMessage = (event) => {
|
|
15180
|
+
if (event.data && event.data.type === "resize-iframe") {
|
|
15181
|
+
const newRootHeight = event.data.height;
|
|
15182
|
+
if (zoomConfig.rootHeight !== newRootHeight) {
|
|
15183
|
+
setZoomConfig({
|
|
15184
|
+
...zoomConfig,
|
|
15185
|
+
rootHeight: newRootHeight
|
|
15186
|
+
});
|
|
15187
|
+
}
|
|
15188
|
+
}
|
|
15189
|
+
};
|
|
15190
|
+
window.addEventListener("message", handleMessage);
|
|
15191
|
+
return () => window.removeEventListener("message", handleMessage);
|
|
15192
|
+
}, [zoomConfig, setZoomConfig]);
|
|
15178
15193
|
(0, import_react97.useEffect)(() => {
|
|
15179
15194
|
if (ZOOM_ON_CHANGE) {
|
|
15180
15195
|
resetAutoZoom();
|
package/dist/no-external.mjs
CHANGED