@tiptap/core 2.1.4 → 2.2.0-rc.3

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.
@@ -1,4 +1,3 @@
1
- export * from '../../../extension-list-keymap/src/listHelpers/index.js';
2
1
  export * from './combineTransactionSteps.js';
3
2
  export * from './createChainableState.js';
4
3
  export * from './createDocument.js';
@@ -158,6 +158,7 @@ export interface NodeViewRendererOptions {
158
158
  target: Element;
159
159
  };
160
160
  }) => boolean) | null;
161
+ contentDOMElementTag: string;
161
162
  }
162
163
  export declare type NodeViewRendererProps = {
163
164
  editor: Editor;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/core",
3
3
  "description": "headless rich text editor",
4
- "version": "2.1.4",
4
+ "version": "2.2.0-rc.3",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -32,7 +32,7 @@
32
32
  "dist"
33
33
  ],
34
34
  "devDependencies": {
35
- "@tiptap/pm": "^2.1.4"
35
+ "@tiptap/pm": "^2.2.0-rc.3"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@tiptap/pm": "^2.0.0"
@@ -1,4 +1,3 @@
1
- export * from '../../../extension-list-keymap/src/listHelpers/index.js'
2
1
  export * from './combineTransactionSteps.js'
3
2
  export * from './createChainableState.js'
4
3
  export * from './createDocument.js'
package/src/types.ts CHANGED
@@ -170,6 +170,7 @@ export interface NodeViewRendererOptions {
170
170
  ignoreMutation:
171
171
  | ((props: { mutation: MutationRecord | { type: 'selection'; target: Element } }) => boolean)
172
172
  | null
173
+ contentDOMElementTag: string
173
174
  }
174
175
 
175
176
  export type NodeViewRendererProps = {
@@ -1,6 +0,0 @@
1
- import { NodeType } from '@tiptap/pm/model';
2
- import { EditorState } from '@tiptap/pm/state';
3
- export declare const findListItemPos: (typeOrName: string | NodeType, state: EditorState) => {
4
- $pos: import("prosemirror-model").ResolvedPos;
5
- depth: number;
6
- } | null;
@@ -1,2 +0,0 @@
1
- import { EditorState } from '@tiptap/pm/state';
2
- export declare const getNextListDepth: (typeOrName: string, state: EditorState) => number | false;
@@ -1,2 +0,0 @@
1
- import { Editor } from '../../../core/src/Editor.js';
2
- export declare const handleBackspace: (editor: Editor, name: string, parentListTypes: string[]) => boolean;
@@ -1,2 +0,0 @@
1
- import { Editor } from '../../../core/src/Editor.js';
2
- export declare const handleDelete: (editor: Editor, name: string) => boolean;
@@ -1,2 +0,0 @@
1
- import { EditorState } from '@tiptap/pm/state';
2
- export declare const hasListBefore: (editorState: EditorState, name: string, parentListTypes: string[]) => boolean;
@@ -1,2 +0,0 @@
1
- import { EditorState } from '@tiptap/pm/state';
2
- export declare const hasListItemAfter: (typeOrName: string, state: EditorState) => boolean;
@@ -1,2 +0,0 @@
1
- import { EditorState } from '@tiptap/pm/state';
2
- export declare const hasListItemBefore: (typeOrName: string, state: EditorState) => boolean;
@@ -1,10 +0,0 @@
1
- export * from './findListItemPos.js';
2
- export * from './getNextListDepth.js';
3
- export * from './handleBackspace.js';
4
- export * from './handleDelete.js';
5
- export * from './hasListBefore.js';
6
- export * from './hasListItemAfter.js';
7
- export * from './hasListItemBefore.js';
8
- export * from './listItemHasSubList.js';
9
- export * from './nextListIsDeeper.js';
10
- export * from './nextListIsHigher.js';
@@ -1,3 +0,0 @@
1
- import { Node } from '@tiptap/pm/model';
2
- import { EditorState } from '@tiptap/pm/state';
3
- export declare const listItemHasSubList: (typeOrName: string, state: EditorState, node?: Node) => boolean;
@@ -1,2 +0,0 @@
1
- import { EditorState } from '@tiptap/pm/state';
2
- export declare const nextListIsDeeper: (typeOrName: string, state: EditorState) => boolean;
@@ -1,2 +0,0 @@
1
- import { EditorState } from '@tiptap/pm/state';
2
- export declare const nextListIsHigher: (typeOrName: string, state: EditorState) => boolean;