@measured/puck-plugin-heading-analyzer 0.17.2-canary.0655fc5 → 0.17.2-canary.98a70fd
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -1966,11 +1966,11 @@ var scrollIntoView = (el) => {
|
|
1966
1966
|
// ../core/lib/get-frame.ts
|
1967
1967
|
init_react_import();
|
1968
1968
|
var getFrame = () => {
|
1969
|
-
let
|
1970
|
-
if ((
|
1971
|
-
|
1969
|
+
let frameEl = document.querySelector("#preview-frame");
|
1970
|
+
if ((frameEl == null ? void 0 : frameEl.tagName) === "IFRAME") {
|
1971
|
+
return frameEl.contentDocument || document;
|
1972
1972
|
}
|
1973
|
-
return
|
1973
|
+
return (frameEl == null ? void 0 : frameEl.ownerDocument) || document;
|
1974
1974
|
};
|
1975
1975
|
|
1976
1976
|
// src/HeadingAnalyzer.tsx
|
package/dist/index.mjs
CHANGED
@@ -1963,11 +1963,11 @@ var scrollIntoView = (el) => {
|
|
1963
1963
|
// ../core/lib/get-frame.ts
|
1964
1964
|
init_react_import();
|
1965
1965
|
var getFrame = () => {
|
1966
|
-
let
|
1967
|
-
if ((
|
1968
|
-
|
1966
|
+
let frameEl = document.querySelector("#preview-frame");
|
1967
|
+
if ((frameEl == null ? void 0 : frameEl.tagName) === "IFRAME") {
|
1968
|
+
return frameEl.contentDocument || document;
|
1969
1969
|
}
|
1970
|
-
return
|
1970
|
+
return (frameEl == null ? void 0 : frameEl.ownerDocument) || document;
|
1971
1971
|
};
|
1972
1972
|
|
1973
1973
|
// 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.
|
3
|
+
"version": "0.17.2-canary.98a70fd",
|
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.
|
28
|
+
"@measured/puck": "^0.17.2-canary.98a70fd",
|
29
29
|
"@types/react": "^19.0.1",
|
30
30
|
"@types/react-dom": "^19.0.2",
|
31
31
|
"eslint": "^7.32.0",
|