prosemirror-view 1.32.5 → 1.32.7

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.d.cts CHANGED
@@ -903,4 +903,4 @@ interface DirectEditorProps extends EditorProps {
903
903
  dispatchTransaction?: (tr: Transaction) => void;
904
904
  }
905
905
 
906
- export { DOMEventMap, Decoration, DecorationAttrs, DecorationSet, DecorationSource, DirectEditorProps, EditorProps, EditorView, MarkViewConstructor, NodeView, NodeViewConstructor };
906
+ export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
package/dist/index.d.ts CHANGED
@@ -903,4 +903,4 @@ interface DirectEditorProps extends EditorProps {
903
903
  dispatchTransaction?: (tr: Transaction) => void;
904
904
  }
905
905
 
906
- export { DOMEventMap, Decoration, DecorationAttrs, DecorationSet, DecorationSource, DirectEditorProps, EditorProps, EditorView, MarkViewConstructor, NodeView, NodeViewConstructor };
906
+ export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
package/dist/index.js CHANGED
@@ -2023,6 +2023,10 @@ function iterDeco(parent, deco, onWidget, onNode) {
2023
2023
  index = -1;
2024
2024
  }
2025
2025
  }
2026
+ else {
2027
+ while (decoIndex < locals.length && locals[decoIndex].to < end)
2028
+ decoIndex++;
2029
+ }
2026
2030
  let outerDeco = child.isInline && !child.isLeaf ? active.filter(d => !d.inline) : active.slice();
2027
2031
  onNode(child, outerDeco, deco.forChild(offset, child), index);
2028
2032
  offset = end;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-view",
3
- "version": "1.32.5",
3
+ "version": "1.32.7",
4
4
  "description": "ProseMirror's view component",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/viewdesc.ts CHANGED
@@ -1449,6 +1449,8 @@ function iterDeco(
1449
1449
  end = cutAt
1450
1450
  index = -1
1451
1451
  }
1452
+ } else {
1453
+ while (decoIndex < locals.length && locals[decoIndex].to < end) decoIndex++
1452
1454
  }
1453
1455
 
1454
1456
  let outerDeco = child.isInline && !child.isLeaf ? active.filter(d => !d.inline) : active.slice()