@tiptap/core 2.0.0-beta.211 → 2.0.0-beta.213
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.ts +2 -2
- package/package.json +2 -2
- package/src/NodeView.ts +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2189,9 +2189,9 @@ declare function wrappingInputRule(config: {
|
|
|
2189
2189
|
joinPredicate?: (match: ExtendedRegExpMatchArray, node: Node$1) => boolean;
|
|
2190
2190
|
}): InputRule;
|
|
2191
2191
|
|
|
2192
|
-
declare class NodeView<Component,
|
|
2192
|
+
declare class NodeView<Component, NodeEditor extends Editor = Editor, Options extends NodeViewRendererOptions = NodeViewRendererOptions> implements NodeView$1 {
|
|
2193
2193
|
component: Component;
|
|
2194
|
-
editor:
|
|
2194
|
+
editor: NodeEditor;
|
|
2195
2195
|
options: Options;
|
|
2196
2196
|
extension: Node;
|
|
2197
2197
|
node: Node$1;
|
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.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.213",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@tiptap/pm": "^2.0.0-beta.209"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@tiptap/pm": "^2.0.0-beta.
|
|
37
|
+
"@tiptap/pm": "^2.0.0-beta.213"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
package/src/NodeView.ts
CHANGED
|
@@ -9,12 +9,12 @@ import { isiOS } from './utilities/isiOS'
|
|
|
9
9
|
|
|
10
10
|
export class NodeView<
|
|
11
11
|
Component,
|
|
12
|
-
|
|
12
|
+
NodeEditor extends CoreEditor = CoreEditor,
|
|
13
13
|
Options extends NodeViewRendererOptions = NodeViewRendererOptions,
|
|
14
14
|
> implements ProseMirrorNodeView {
|
|
15
15
|
component: Component
|
|
16
16
|
|
|
17
|
-
editor:
|
|
17
|
+
editor: NodeEditor
|
|
18
18
|
|
|
19
19
|
options: Options
|
|
20
20
|
|
|
@@ -30,7 +30,7 @@ export class NodeView<
|
|
|
30
30
|
|
|
31
31
|
constructor(component: Component, props: NodeViewRendererProps, options?: Partial<Options>) {
|
|
32
32
|
this.component = component
|
|
33
|
-
this.editor = props.editor as
|
|
33
|
+
this.editor = props.editor as NodeEditor
|
|
34
34
|
this.options = {
|
|
35
35
|
stopEvent: null,
|
|
36
36
|
ignoreMutation: null,
|