@measured/puck-plugin-heading-analyzer 0.17.2-canary.f323610 → 0.17.3-canary.f61dd4a

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/index.js CHANGED
@@ -1966,11 +1966,12 @@ var scrollIntoView = (el) => {
1966
1966
  // ../core/lib/get-frame.ts
1967
1967
  init_react_import();
1968
1968
  var getFrame = () => {
1969
- let frame = document.querySelector("#preview-frame");
1970
- if ((frame == null ? void 0 : frame.tagName) === "IFRAME") {
1971
- frame = frame.contentDocument;
1969
+ if (typeof window === "undefined") return;
1970
+ let frameEl = document.querySelector("#preview-frame");
1971
+ if ((frameEl == null ? void 0 : frameEl.tagName) === "IFRAME") {
1972
+ return frameEl.contentDocument || document;
1972
1973
  }
1973
- return frame;
1974
+ return (frameEl == null ? void 0 : frameEl.ownerDocument) || document;
1974
1975
  };
1975
1976
 
1976
1977
  // src/HeadingAnalyzer.tsx
package/dist/index.mjs CHANGED
@@ -1963,11 +1963,12 @@ var scrollIntoView = (el) => {
1963
1963
  // ../core/lib/get-frame.ts
1964
1964
  init_react_import();
1965
1965
  var getFrame = () => {
1966
- let frame = document.querySelector("#preview-frame");
1967
- if ((frame == null ? void 0 : frame.tagName) === "IFRAME") {
1968
- frame = frame.contentDocument;
1966
+ if (typeof window === "undefined") return;
1967
+ let frameEl = document.querySelector("#preview-frame");
1968
+ if ((frameEl == null ? void 0 : frameEl.tagName) === "IFRAME") {
1969
+ return frameEl.contentDocument || document;
1969
1970
  }
1970
- return frame;
1971
+ return (frameEl == null ? void 0 : frameEl.ownerDocument) || document;
1971
1972
  };
1972
1973
 
1973
1974
  // src/HeadingAnalyzer.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.17.2-canary.f323610",
3
+ "version": "0.17.3-canary.f61dd4a",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "devDependencies": {
28
- "@measured/puck": "^0.17.2-canary.f323610",
28
+ "@measured/puck": "^0.17.3-canary.f61dd4a",
29
29
  "@types/react": "^19.0.1",
30
30
  "@types/react-dom": "^19.0.2",
31
31
  "eslint": "^7.32.0",