@measured/puck-plugin-heading-analyzer 0.18.3-canary.154e7f7 → 0.18.3-canary.368f37f

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
@@ -681,6 +681,9 @@ var getOutline = ({ frame } = {}) => {
681
681
  const headings = (frame == null ? void 0 : frame.querySelectorAll("h1,h2,h3,h4,h5,h6")) || [];
682
682
  const _outline = [];
683
683
  headings.forEach((item, i) => {
684
+ if (item.closest("[data-dnd-dragging]")) {
685
+ return;
686
+ }
684
687
  _outline.push({
685
688
  rank: parseInt(item.tagName.split("H")[1]),
686
689
  text: item.textContent,
package/dist/index.mjs CHANGED
@@ -679,6 +679,9 @@ var getOutline = ({ frame } = {}) => {
679
679
  const headings = (frame == null ? void 0 : frame.querySelectorAll("h1,h2,h3,h4,h5,h6")) || [];
680
680
  const _outline = [];
681
681
  headings.forEach((item, i) => {
682
+ if (item.closest("[data-dnd-dragging]")) {
683
+ return;
684
+ }
682
685
  _outline.push({
683
686
  rank: parseInt(item.tagName.split("H")[1]),
684
687
  text: item.textContent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.18.3-canary.154e7f7",
3
+ "version": "0.18.3-canary.368f37f",
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.18.3-canary.154e7f7",
28
+ "@measured/puck": "^0.18.3-canary.368f37f",
29
29
  "@types/react": "^19.0.1",
30
30
  "@types/react-dom": "^19.0.2",
31
31
  "eslint": "^7.32.0",