@tiptap/core 3.17.0 → 3.17.1

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
@@ -4104,7 +4104,7 @@ declare class ResizableNodeView {
4104
4104
  * @returns The container element to be inserted into the editor
4105
4105
  */
4106
4106
  get dom(): HTMLElement;
4107
- get contentDOM(): HTMLElement | undefined;
4107
+ get contentDOM(): HTMLElement | null;
4108
4108
  private handleEditorUpdate;
4109
4109
  /**
4110
4110
  * Called when the node's content or attributes change.
package/dist/index.d.ts CHANGED
@@ -4104,7 +4104,7 @@ declare class ResizableNodeView {
4104
4104
  * @returns The container element to be inserted into the editor
4105
4105
  */
4106
4106
  get dom(): HTMLElement;
4107
- get contentDOM(): HTMLElement | undefined;
4107
+ get contentDOM(): HTMLElement | null;
4108
4108
  private handleEditorUpdate;
4109
4109
  /**
4110
4110
  * Called when the node's content or attributes change.
package/dist/index.js CHANGED
@@ -4321,19 +4321,20 @@ var NodePos = class _NodePos {
4321
4321
  this.node.content.forEach((node, offset) => {
4322
4322
  const isBlock = node.isBlock && !node.isTextblock;
4323
4323
  const isNonTextAtom = node.isAtom && !node.isText;
4324
+ const isInline = node.isInline;
4324
4325
  const targetPos = this.pos + offset + (isNonTextAtom ? 0 : 1);
4325
4326
  if (targetPos < 0 || targetPos > this.resolvedPos.doc.nodeSize - 2) {
4326
4327
  return;
4327
4328
  }
4328
4329
  const $pos = this.resolvedPos.doc.resolve(targetPos);
4329
- if (!isBlock && $pos.depth <= this.depth) {
4330
+ if (!isBlock && !isInline && $pos.depth <= this.depth) {
4330
4331
  return;
4331
4332
  }
4332
- const childNodePos = new _NodePos($pos, this.editor, isBlock, isBlock ? node : null);
4333
+ const childNodePos = new _NodePos($pos, this.editor, isBlock, isBlock || isInline ? node : null);
4333
4334
  if (isBlock) {
4334
4335
  childNodePos.actualDepth = this.depth + 1;
4335
4336
  }
4336
- children.push(new _NodePos($pos, this.editor, isBlock, isBlock ? node : null));
4337
+ children.push(childNodePos);
4337
4338
  });
4338
4339
  return children;
4339
4340
  }
@@ -5409,7 +5410,8 @@ var ResizableNodeView = class {
5409
5410
  return this.container;
5410
5411
  }
5411
5412
  get contentDOM() {
5412
- return this.contentElement;
5413
+ var _a;
5414
+ return (_a = this.contentElement) != null ? _a : null;
5413
5415
  }
5414
5416
  handleEditorUpdate() {
5415
5417
  const isEditable = this.editor.isEditable;