@measured/puck-plugin-heading-analyzer 0.20.0-canary.5cc56415 → 0.20.0-canary.62126f93
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 +3 -4
- package/dist/index.mjs +0 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -313,7 +313,7 @@ init_react_import();
|
|
313
313
|
|
314
314
|
// src/HeadingAnalyzer.tsx
|
315
315
|
init_react_import();
|
316
|
-
var
|
316
|
+
var import_react10 = require("react");
|
317
317
|
|
318
318
|
// css-module:/home/runner/work/puck/puck/packages/plugin-heading-analyzer/src/HeadingAnalyzer.module.css#css-module
|
319
319
|
init_react_import();
|
@@ -510,7 +510,6 @@ init_react_import();
|
|
510
510
|
|
511
511
|
// ../core/lib/use-reset-auto-zoom.ts
|
512
512
|
init_react_import();
|
513
|
-
var import_react10 = require("react");
|
514
513
|
|
515
514
|
// ../core/store/index.ts
|
516
515
|
init_react_import();
|
@@ -2213,8 +2212,8 @@ function buildHierarchy(frame) {
|
|
2213
2212
|
var usePuck = (0, import_puck.createUsePuck)();
|
2214
2213
|
var HeadingAnalyzer = () => {
|
2215
2214
|
const data = usePuck((s) => s.appState.data);
|
2216
|
-
const [hierarchy, setHierarchy] = (0,
|
2217
|
-
(0,
|
2215
|
+
const [hierarchy, setHierarchy] = (0, import_react10.useState)([]);
|
2216
|
+
(0, import_react10.useEffect)(() => {
|
2218
2217
|
const frame = getFrame();
|
2219
2218
|
let entry = frame == null ? void 0 : frame.querySelector(`[data-puck-entry]`);
|
2220
2219
|
const createHierarchy = () => {
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
3
|
-
"version": "0.20.0-canary.
|
3
|
+
"version": "0.20.0-canary.62126f93",
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
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.20.0-canary.
|
28
|
+
"@measured/puck": "^0.20.0-canary.62126f93",
|
29
29
|
"@types/react": "^19.0.1",
|
30
30
|
"@types/react-dom": "^19.0.2",
|
31
31
|
"eslint": "^7.32.0",
|