@measured/puck-plugin-heading-analyzer 0.14.2-canary.03ab0bd → 0.14.2-canary.2b2ef32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +9 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -35470,7 +35470,10 @@ function querySelectorAllIframe(selector) {
35470
35470
  iframes = iframes.filter((iframe) => iframe.hasAttribute("data-rfd-iframe"));
35471
35471
  iframeCache.set("iframes", iframes);
35472
35472
  }
35473
- const iframePossible = iframes.reduce((acc, iframe) => [...acc, ...querySelectorAll(iframe.contentWindow.document, selector)], []);
35473
+ const iframePossible = iframes.reduce((acc, iframe) => {
35474
+ var _a3;
35475
+ return [...acc, ...((_a3 = iframe.contentWindow) == null ? void 0 : _a3.document) ? querySelectorAll(iframe.contentWindow.document, selector) : []];
35476
+ }, []);
35474
35477
  return [...querySelectorAll(document, selector), ...iframePossible];
35475
35478
  }
35476
35479
  function useStyleMarshal(contextId, nonce) {
@@ -35492,7 +35495,10 @@ function useStyleMarshal(contextId, nonce) {
35492
35495
  useLayoutEffect2(() => {
35493
35496
  const alwaysSelector = `[${alwaysDataAttr}="${contextId}"]`;
35494
35497
  const dynamicSelector = `[${dynamicDataAttr}="${contextId}"]`;
35495
- const heads = [getHead(document), ...querySelectorAll(document, `[${prefix2}-iframe]`).map((iframe) => getHead(iframe.contentWindow.document))];
35498
+ const heads = [getHead(document), ...querySelectorAll(document, `[${prefix2}-iframe]`).filter((iframe) => {
35499
+ var _a3;
35500
+ return (_a3 = iframe.contentWindow) == null ? void 0 : _a3.document;
35501
+ }).map((iframe) => getHead(iframe.contentWindow.document))];
35496
35502
  heads.forEach((head) => {
35497
35503
  if (!head)
35498
35504
  return;
@@ -78150,7 +78156,7 @@ var require_dist2 = __commonJS({
78150
78156
  {
78151
78157
  className: getClassName24("root"),
78152
78158
  style: {
78153
- width: iframe.enabled ? ui.viewports.current.width : void 0,
78159
+ width: iframe.enabled ? ui.viewports.current.width : "100%",
78154
78160
  height: zoomConfig.rootHeight,
78155
78161
  transform: iframe.enabled ? `scale(${zoomConfig.zoom})` : void 0,
78156
78162
  transition: showTransition ? "width 150ms ease-out, height 150ms ease-out, transform 150ms ease-out" : "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.14.2-canary.03ab0bd",
3
+ "version": "0.14.2-canary.2b2ef32",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "devDependencies": {
21
- "@measured/puck": "^0.14.2-canary.03ab0bd",
21
+ "@measured/puck": "^0.14.2-canary.2b2ef32",
22
22
  "@types/react": "^18.2.0",
23
23
  "@types/react-dom": "^18.2.0",
24
24
  "eslint": "^7.32.0",