@crediblemark/build 0.25.9 → 0.25.10

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.
@@ -149,11 +149,8 @@ var HtmlModeRender = ({
149
149
  <script>
150
150
  function sendHeight() {
151
151
  const body = document.body;
152
- const html = document.documentElement;
153
- const height = Math.max(
154
- body.scrollHeight, body.offsetHeight,
155
- html.clientHeight, html.scrollHeight, html.offsetHeight
156
- );
152
+ // calculate content height safely, avoiding clientHeight/viewport height which prevents shrinking
153
+ const height = Math.max(body.scrollHeight, body.offsetHeight);
157
154
  window.parent.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
158
155
  }
159
156
  window.addEventListener('load', sendHeight);
package/dist/index.js CHANGED
@@ -12260,11 +12260,8 @@ var HtmlModeRender = ({
12260
12260
  <script>
12261
12261
  function sendHeight() {
12262
12262
  const body = document.body;
12263
- const html = document.documentElement;
12264
- const height = Math.max(
12265
- body.scrollHeight, body.offsetHeight,
12266
- html.clientHeight, html.scrollHeight, html.offsetHeight
12267
- );
12263
+ // calculate content height safely, avoiding clientHeight/viewport height which prevents shrinking
12264
+ const height = Math.max(body.scrollHeight, body.offsetHeight);
12268
12265
  window.parent.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
12269
12266
  }
12270
12267
  window.addEventListener('load', sendHeight);
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  overrideKeys,
11
11
  useCredBuild,
12
12
  useGetCredBuild
13
- } from "./chunk-HQYAIZI5.mjs";
13
+ } from "./chunk-32BKYUSW.mjs";
14
14
  import {
15
15
  ColorPickerField,
16
16
  Drawer,
@@ -12260,11 +12260,8 @@ var HtmlModeRender = ({
12260
12260
  <script>
12261
12261
  function sendHeight() {
12262
12262
  const body = document.body;
12263
- const html = document.documentElement;
12264
- const height = Math.max(
12265
- body.scrollHeight, body.offsetHeight,
12266
- html.clientHeight, html.scrollHeight, html.offsetHeight
12267
- );
12263
+ // calculate content height safely, avoiding clientHeight/viewport height which prevents shrinking
12264
+ const height = Math.max(body.scrollHeight, body.offsetHeight);
12268
12265
  window.parent.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
12269
12266
  }
12270
12267
  window.addEventListener('load', sendHeight);
@@ -10,7 +10,7 @@ import {
10
10
  overrideKeys,
11
11
  useCredBuild,
12
12
  useGetCredBuild
13
- } from "./chunk-HQYAIZI5.mjs";
13
+ } from "./chunk-32BKYUSW.mjs";
14
14
  import {
15
15
  ColorPickerField,
16
16
  Drawer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crediblemark/build",
3
- "version": "0.25.9",
3
+ "version": "0.25.10",
4
4
  "description": "The open-source visual editor for React",
5
5
  "author": "Rasyiqi Crediblemark",
6
6
  "repository": {