@tiptap/core 3.0.0-beta.13 → 3.0.0-beta.14

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
@@ -4086,6 +4086,9 @@ var NodePos = class _NodePos {
4086
4086
  const isBlock = node.isBlock && !node.isTextblock;
4087
4087
  const isNonTextAtom = node.isAtom && !node.isText;
4088
4088
  const targetPos = this.pos + offset + (isNonTextAtom ? 0 : 1);
4089
+ if (targetPos < 0 || targetPos > this.resolvedPos.doc.nodeSize - 2) {
4090
+ return;
4091
+ }
4089
4092
  const $pos = this.resolvedPos.doc.resolve(targetPos);
4090
4093
  if (!isBlock && $pos.depth <= this.depth) {
4091
4094
  return;