@tiptap/extension-mention 3.15.3 → 3.17.0
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 +6 -6
- package/dist/index.d.ts +6 -6
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node
|
|
2
|
-
import { Node, DOMOutputSpec } from '@tiptap/pm/model';
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { Node as Node$1, DOMOutputSpec } from '@tiptap/pm/model';
|
|
3
3
|
import { SuggestionOptions } from '@tiptap/suggestion';
|
|
4
4
|
|
|
5
5
|
interface MentionNodeAttrs {
|
|
@@ -35,7 +35,7 @@ interface MentionOptions<SuggestionItem = any, Attrs extends Record<string, any>
|
|
|
35
35
|
*/
|
|
36
36
|
renderLabel?: (props: {
|
|
37
37
|
options: MentionOptions<SuggestionItem, Attrs>;
|
|
38
|
-
node: Node;
|
|
38
|
+
node: Node$1;
|
|
39
39
|
suggestion: SuggestionOptions | null;
|
|
40
40
|
}) => string;
|
|
41
41
|
/**
|
|
@@ -46,7 +46,7 @@ interface MentionOptions<SuggestionItem = any, Attrs extends Record<string, any>
|
|
|
46
46
|
*/
|
|
47
47
|
renderText: (props: {
|
|
48
48
|
options: MentionOptions<SuggestionItem, Attrs>;
|
|
49
|
-
node: Node;
|
|
49
|
+
node: Node$1;
|
|
50
50
|
suggestion: SuggestionOptions | null;
|
|
51
51
|
}) => string;
|
|
52
52
|
/**
|
|
@@ -57,7 +57,7 @@ interface MentionOptions<SuggestionItem = any, Attrs extends Record<string, any>
|
|
|
57
57
|
*/
|
|
58
58
|
renderHTML: (props: {
|
|
59
59
|
options: MentionOptions<SuggestionItem, Attrs>;
|
|
60
|
-
node: Node;
|
|
60
|
+
node: Node$1;
|
|
61
61
|
suggestion: SuggestionOptions | null;
|
|
62
62
|
}) => DOMOutputSpec;
|
|
63
63
|
/**
|
|
@@ -88,6 +88,6 @@ interface MentionOptions<SuggestionItem = any, Attrs extends Record<string, any>
|
|
|
88
88
|
* This extension allows you to insert mentions into the editor.
|
|
89
89
|
* @see https://www.tiptap.dev/api/extensions/mention
|
|
90
90
|
*/
|
|
91
|
-
declare const Mention: Node
|
|
91
|
+
declare const Mention: Node<MentionOptions<any, MentionNodeAttrs>, any>;
|
|
92
92
|
|
|
93
93
|
export { Mention, type MentionNodeAttrs, type MentionOptions, Mention as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node
|
|
2
|
-
import { Node, DOMOutputSpec } from '@tiptap/pm/model';
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { Node as Node$1, DOMOutputSpec } from '@tiptap/pm/model';
|
|
3
3
|
import { SuggestionOptions } from '@tiptap/suggestion';
|
|
4
4
|
|
|
5
5
|
interface MentionNodeAttrs {
|
|
@@ -35,7 +35,7 @@ interface MentionOptions<SuggestionItem = any, Attrs extends Record<string, any>
|
|
|
35
35
|
*/
|
|
36
36
|
renderLabel?: (props: {
|
|
37
37
|
options: MentionOptions<SuggestionItem, Attrs>;
|
|
38
|
-
node: Node;
|
|
38
|
+
node: Node$1;
|
|
39
39
|
suggestion: SuggestionOptions | null;
|
|
40
40
|
}) => string;
|
|
41
41
|
/**
|
|
@@ -46,7 +46,7 @@ interface MentionOptions<SuggestionItem = any, Attrs extends Record<string, any>
|
|
|
46
46
|
*/
|
|
47
47
|
renderText: (props: {
|
|
48
48
|
options: MentionOptions<SuggestionItem, Attrs>;
|
|
49
|
-
node: Node;
|
|
49
|
+
node: Node$1;
|
|
50
50
|
suggestion: SuggestionOptions | null;
|
|
51
51
|
}) => string;
|
|
52
52
|
/**
|
|
@@ -57,7 +57,7 @@ interface MentionOptions<SuggestionItem = any, Attrs extends Record<string, any>
|
|
|
57
57
|
*/
|
|
58
58
|
renderHTML: (props: {
|
|
59
59
|
options: MentionOptions<SuggestionItem, Attrs>;
|
|
60
|
-
node: Node;
|
|
60
|
+
node: Node$1;
|
|
61
61
|
suggestion: SuggestionOptions | null;
|
|
62
62
|
}) => DOMOutputSpec;
|
|
63
63
|
/**
|
|
@@ -88,6 +88,6 @@ interface MentionOptions<SuggestionItem = any, Attrs extends Record<string, any>
|
|
|
88
88
|
* This extension allows you to insert mentions into the editor.
|
|
89
89
|
* @see https://www.tiptap.dev/api/extensions/mention
|
|
90
90
|
*/
|
|
91
|
-
declare const Mention: Node
|
|
91
|
+
declare const Mention: Node<MentionOptions<any, MentionNodeAttrs>, any>;
|
|
92
92
|
|
|
93
93
|
export { Mention, type MentionNodeAttrs, type MentionOptions, Mention as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/extension-mention",
|
|
3
3
|
"description": "mention extension for tiptap",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.17.0",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tiptap/core": "^3.
|
|
35
|
-
"@tiptap/pm": "^3.
|
|
36
|
-
"@tiptap/suggestion": "^3.
|
|
34
|
+
"@tiptap/core": "^3.17.0",
|
|
35
|
+
"@tiptap/pm": "^3.17.0",
|
|
36
|
+
"@tiptap/suggestion": "^3.17.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@tiptap/core": "^3.
|
|
40
|
-
"@tiptap/pm": "^3.
|
|
41
|
-
"@tiptap/suggestion": "^3.
|
|
39
|
+
"@tiptap/core": "^3.17.0",
|
|
40
|
+
"@tiptap/pm": "^3.17.0",
|
|
41
|
+
"@tiptap/suggestion": "^3.17.0"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|