@prosekit/extensions 0.11.1 → 0.11.2
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/{drop-indicator-QKkPzJIx.js → drop-indicator-B8P652g2.js} +13 -2
- package/dist/prosekit-extensions-autocomplete.d.ts +47 -47
- package/dist/prosekit-extensions-blockquote.d.ts +11 -11
- package/dist/prosekit-extensions-bold.d.ts +16 -16
- package/dist/prosekit-extensions-code-block.d.ts +82 -82
- package/dist/prosekit-extensions-code.d.ts +16 -16
- package/dist/prosekit-extensions-commit.d.ts +20 -20
- package/dist/prosekit-extensions-doc.d.ts +4 -4
- package/dist/prosekit-extensions-drop-cursor.d.ts +20 -20
- package/dist/prosekit-extensions-drop-indicator.d.ts +68 -68
- package/dist/prosekit-extensions-drop-indicator.js +1 -1
- package/dist/prosekit-extensions-enter-rule.d.ts +57 -57
- package/dist/prosekit-extensions-file.d.ts +54 -54
- package/dist/prosekit-extensions-gap-cursor.d.ts +15 -15
- package/dist/prosekit-extensions-hard-break.d.ts +16 -16
- package/dist/prosekit-extensions-heading.d.ts +19 -19
- package/dist/prosekit-extensions-horizontal-rule.d.ts +6 -6
- package/dist/prosekit-extensions-image.d.ts +14 -14
- package/dist/prosekit-extensions-input-rule.d.ts +70 -70
- package/dist/prosekit-extensions-italic.d.ts +16 -16
- package/dist/prosekit-extensions-link.d.ts +24 -24
- package/dist/prosekit-extensions-list.d.ts +38 -38
- package/dist/prosekit-extensions-list.js +1 -1
- package/dist/prosekit-extensions-loro.d.ts +19 -19
- package/dist/prosekit-extensions-mark-rule.d.ts +17 -17
- package/dist/prosekit-extensions-mention.d.ts +10 -10
- package/dist/prosekit-extensions-mod-click-prevention.d.ts +7 -7
- package/dist/prosekit-extensions-paragraph.d.ts +23 -23
- package/dist/prosekit-extensions-placeholder.d.ts +20 -20
- package/dist/prosekit-extensions-readonly.d.ts +2 -2
- package/dist/prosekit-extensions-search.d.ts +36 -36
- package/dist/prosekit-extensions-strike.d.ts +16 -16
- package/dist/prosekit-extensions-table.d.ts +134 -134
- package/dist/prosekit-extensions-text-align.d.ts +29 -29
- package/dist/prosekit-extensions-text.d.ts +4 -4
- package/dist/prosekit-extensions-underline.d.ts +14 -14
- package/dist/prosekit-extensions-virtual-selection.d.ts +11 -11
- package/dist/prosekit-extensions-yjs.d.ts +27 -27
- package/dist/{shiki-highlighter-chunk-NV2F_Qjl.d.ts → shiki-highlighter-chunk-D7gKY7Kr.d.ts} +1 -1
- package/dist/shiki-highlighter-chunk.d.ts +1 -1
- package/package.json +5 -5
|
@@ -4,50 +4,50 @@ import { Attrs } from "@prosekit/pm/model";
|
|
|
4
4
|
|
|
5
5
|
//#region src/hard-break/hard-break-commands.d.ts
|
|
6
6
|
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
9
|
type HardBreakCommandsExtension = Extension<{
|
|
10
10
|
Commands: {
|
|
11
11
|
insertHardBreak: [];
|
|
12
12
|
};
|
|
13
13
|
}>;
|
|
14
14
|
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
21
|
declare function defineHardBreakCommands(): HardBreakCommandsExtension;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/hard-break/hard-break-spec.d.ts
|
|
24
24
|
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
27
|
type HardBreakSpecExtension = Extension<{
|
|
28
28
|
Nodes: {
|
|
29
29
|
hardBreak: Attrs;
|
|
30
30
|
};
|
|
31
31
|
}>;
|
|
32
32
|
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
35
|
declare function defineHardBreakSpec(): HardBreakSpecExtension;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/hard-break/hard-break.d.ts
|
|
38
38
|
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
41
|
type HardBreakExtension = Union<[HardBreakSpecExtension, HardBreakCommandsExtension]>;
|
|
42
42
|
/**
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
45
|
declare function defineHardBreak(): HardBreakExtension;
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/hard-break/hard-break-keymap.d.ts
|
|
48
48
|
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
51
|
declare function defineHardBreakKeymap(): PlainExtension;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { type HardBreakCommandsExtension, type HardBreakExtension, type HardBreakSpecExtension, defineHardBreak, defineHardBreakCommands, defineHardBreakKeymap, defineHardBreakSpec };
|
|
@@ -7,8 +7,8 @@ interface HeadingAttrs {
|
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/heading/heading-commands.d.ts
|
|
9
9
|
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
12
|
type HeadingCommandsExtension = Extension<{
|
|
13
13
|
Commands: {
|
|
14
14
|
setHeading: [attrs?: HeadingAttrs | undefined];
|
|
@@ -17,47 +17,47 @@ type HeadingCommandsExtension = Extension<{
|
|
|
17
17
|
};
|
|
18
18
|
}>;
|
|
19
19
|
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
22
|
declare function defineHeadingCommands(): HeadingCommandsExtension;
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/heading/heading-spec.d.ts
|
|
25
25
|
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
28
|
type HeadingSpecExtension = Extension<{
|
|
29
29
|
Nodes: {
|
|
30
30
|
heading: HeadingAttrs;
|
|
31
31
|
};
|
|
32
32
|
}>;
|
|
33
33
|
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
36
|
declare function defineHeadingSpec(): HeadingSpecExtension;
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/heading/heading.d.ts
|
|
39
39
|
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
42
|
type HeadingExtension = Union<[HeadingSpecExtension, HeadingCommandsExtension]>;
|
|
43
43
|
/**
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
46
|
declare function defineHeading(): HeadingExtension;
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/heading/heading-input-rule.d.ts
|
|
49
49
|
/**
|
|
50
|
-
* Converts the text block to a heading when `#` is typed at the start of a new
|
|
51
|
-
* line followed by a space.
|
|
52
|
-
*
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
50
|
+
* Converts the text block to a heading when `#` is typed at the start of a new
|
|
51
|
+
* line followed by a space.
|
|
52
|
+
*
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
55
|
declare function defineHeadingInputRule(): PlainExtension;
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region src/heading/heading-keymap.d.ts
|
|
58
58
|
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
61
|
declare function defineHeadingKeymap(): PlainExtension;
|
|
62
62
|
//#endregion
|
|
63
63
|
export { type HeadingAttrs, type HeadingCommandsExtension, type HeadingExtension, type HeadingSpecExtension, defineHeading, defineHeadingCommands, defineHeadingInputRule, defineHeadingKeymap, defineHeadingSpec };
|
|
@@ -9,8 +9,8 @@ type HorizontalRuleCommandsExtension = Extension<{
|
|
|
9
9
|
};
|
|
10
10
|
}>;
|
|
11
11
|
/**
|
|
12
|
-
* Returns a command that inserts a horizontal rule at the current selection.
|
|
13
|
-
*/
|
|
12
|
+
* Returns a command that inserts a horizontal rule at the current selection.
|
|
13
|
+
*/
|
|
14
14
|
declare function insertHorizontalRule(): Command;
|
|
15
15
|
declare function defineHorizontalRuleCommands(): HorizontalRuleCommandsExtension;
|
|
16
16
|
//#endregion
|
|
@@ -25,14 +25,14 @@ declare function defineHorizontalRuleSpec(): HorizontalRuleSpecExtension;
|
|
|
25
25
|
//#region src/horizontal-rule/horizontal-rule.d.ts
|
|
26
26
|
type HorizontalRuleExtension = Union<[HorizontalRuleSpecExtension, HorizontalRuleCommandsExtension]>;
|
|
27
27
|
/**
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
30
|
declare function defineHorizontalRule(): HorizontalRuleExtension;
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/horizontal-rule/horizontal-rule-input-rule.d.ts
|
|
33
33
|
/**
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
36
|
declare function defineHorizontalRuleInputRule(): PlainExtension;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { type HorizontalRuleCommandsExtension, type HorizontalRuleExtension, type HorizontalRuleSpecExtension, defineHorizontalRule, defineHorizontalRuleCommands, defineHorizontalRuleInputRule, defineHorizontalRuleSpec, insertHorizontalRule };
|
|
@@ -3,48 +3,48 @@ import { Extension, Union } from "@prosekit/core";
|
|
|
3
3
|
//#region src/image/image-spec.d.ts
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
8
|
interface ImageAttrs {
|
|
9
9
|
src?: string | null;
|
|
10
10
|
width?: number | null;
|
|
11
11
|
height?: number | null;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
16
|
type ImageSpecExtension = Extension<{
|
|
17
17
|
Nodes: {
|
|
18
18
|
image: ImageAttrs;
|
|
19
19
|
};
|
|
20
20
|
}>;
|
|
21
21
|
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
24
|
declare function defineImageSpec(): ImageSpecExtension;
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/image/image-commands.d.ts
|
|
27
27
|
/**
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
30
|
type ImageCommandsExtension = Extension<{
|
|
31
31
|
Commands: {
|
|
32
32
|
insertImage: [attrs?: ImageAttrs];
|
|
33
33
|
};
|
|
34
34
|
}>;
|
|
35
35
|
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
38
|
declare function defineImageCommands(): ImageCommandsExtension;
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/image/image.d.ts
|
|
41
41
|
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
44
|
type ImageExtension = Union<[ImageSpecExtension, ImageCommandsExtension]>;
|
|
45
45
|
/**
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
48
|
declare function defineImage(): ImageExtension;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { type ImageAttrs, type ImageCommandsExtension, type ImageExtension, type ImageSpecExtension, defineImage, defineImageCommands, defineImageSpec };
|
|
@@ -5,43 +5,43 @@ import { Attrs, MarkType, NodeType, ProseMirrorNode } from "@prosekit/pm/model";
|
|
|
5
5
|
//#region src/input-rule/index.d.ts
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Defines an input rule extension.
|
|
9
|
-
*
|
|
10
|
-
* @param rule - The ProseMirror input rule to add.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
8
|
+
* Defines an input rule extension.
|
|
9
|
+
*
|
|
10
|
+
* @param rule - The ProseMirror input rule to add.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
14
|
declare function defineInputRule(rule: InputRule): PlainExtension;
|
|
15
15
|
/**
|
|
16
|
-
* Options for {@link defineMarkInputRule}.
|
|
17
|
-
*
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
16
|
+
* Options for {@link defineMarkInputRule}.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
20
|
interface MarkInputRuleOptions {
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
* The regular expression to match against, which should end with `$` and has
|
|
23
|
+
* exactly one capture group. All other matched text outside the capture group
|
|
24
|
+
* will be deleted.
|
|
25
|
+
*/
|
|
26
26
|
regex: RegExp;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* The type of mark to set.
|
|
29
|
+
*/
|
|
30
30
|
type: string | MarkType;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* Attributes to set on the mark.
|
|
33
|
+
*/
|
|
34
34
|
attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
* Whether this rule should fire inside marks marked as [code](https://prosemirror.net/docs/ref/#model.MarkSpec.code).
|
|
37
|
+
*
|
|
38
|
+
* @default `false`
|
|
39
|
+
*/
|
|
40
40
|
inCodeMark?: boolean;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
45
|
declare function createMarkInputRule({
|
|
46
46
|
regex,
|
|
47
47
|
type,
|
|
@@ -49,52 +49,52 @@ declare function createMarkInputRule({
|
|
|
49
49
|
inCodeMark
|
|
50
50
|
}: MarkInputRuleOptions): InputRule;
|
|
51
51
|
/**
|
|
52
|
-
* Defines an input rule for automatically adding inline marks when a given
|
|
53
|
-
* pattern is typed.
|
|
54
|
-
*
|
|
55
|
-
* @public
|
|
56
|
-
*/
|
|
52
|
+
* Defines an input rule for automatically adding inline marks when a given
|
|
53
|
+
* pattern is typed.
|
|
54
|
+
*
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
57
|
declare function defineMarkInputRule(options: MarkInputRuleOptions): PlainExtension;
|
|
58
58
|
/**
|
|
59
|
-
* Defines an input rule that changes the type of a textblock when the matched
|
|
60
|
-
* text is typed into it.
|
|
61
|
-
*
|
|
62
|
-
* See also [textblockTypeInputRule](https://prosemirror.net/docs/ref/#inputrules.textblockTypeInputRule)
|
|
63
|
-
*
|
|
64
|
-
* @param options
|
|
65
|
-
*
|
|
66
|
-
* @public
|
|
67
|
-
*/
|
|
59
|
+
* Defines an input rule that changes the type of a textblock when the matched
|
|
60
|
+
* text is typed into it.
|
|
61
|
+
*
|
|
62
|
+
* See also [textblockTypeInputRule](https://prosemirror.net/docs/ref/#inputrules.textblockTypeInputRule)
|
|
63
|
+
*
|
|
64
|
+
* @param options
|
|
65
|
+
*
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
68
|
declare function defineTextBlockInputRule({
|
|
69
69
|
regex,
|
|
70
70
|
type,
|
|
71
71
|
attrs
|
|
72
72
|
}: {
|
|
73
73
|
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
* The regular expression to match against, which should end with `$`. It
|
|
75
|
+
* usually also starts with `^` to that it is only matched at the start of a
|
|
76
|
+
* textblock.
|
|
77
|
+
*/
|
|
78
78
|
regex: RegExp;
|
|
79
79
|
/**
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
* The node type to replace the matched text with.
|
|
81
|
+
*/
|
|
82
82
|
type: string | NodeType;
|
|
83
83
|
/**
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
* Attributes to set on the node.
|
|
85
|
+
*/
|
|
86
86
|
attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
|
|
87
87
|
}): PlainExtension;
|
|
88
88
|
/**
|
|
89
|
-
* Defines an input rule for automatically wrapping a textblock when a given
|
|
90
|
-
* string is typed.
|
|
91
|
-
*
|
|
92
|
-
* See also [wrappingInputRule](https://prosemirror.net/docs/ref/#inputrules.wrappingInputRule)
|
|
93
|
-
*
|
|
94
|
-
* @param options
|
|
95
|
-
*
|
|
96
|
-
* @public
|
|
97
|
-
*/
|
|
89
|
+
* Defines an input rule for automatically wrapping a textblock when a given
|
|
90
|
+
* string is typed.
|
|
91
|
+
*
|
|
92
|
+
* See also [wrappingInputRule](https://prosemirror.net/docs/ref/#inputrules.wrappingInputRule)
|
|
93
|
+
*
|
|
94
|
+
* @param options
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
98
|
declare function defineWrappingInputRule({
|
|
99
99
|
regex,
|
|
100
100
|
type,
|
|
@@ -102,27 +102,27 @@ declare function defineWrappingInputRule({
|
|
|
102
102
|
join
|
|
103
103
|
}: {
|
|
104
104
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
* The regular expression to match against, which should end with `$`. It
|
|
106
|
+
* usually also starts with `^` to that it is only matched at the start of a
|
|
107
|
+
* textblock.
|
|
108
|
+
*/
|
|
109
109
|
regex: RegExp;
|
|
110
110
|
/**
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
* The type of node to wrap in.
|
|
112
|
+
*/
|
|
113
113
|
type: string | NodeType;
|
|
114
114
|
/**
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
* Attributes to set on the node.
|
|
116
|
+
*/
|
|
117
117
|
attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
|
|
118
118
|
/**
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
119
|
+
* By default, if there's a node with the same type above the newly wrapped
|
|
120
|
+
* node, the rule will try to
|
|
121
|
+
* [join](https://prosemirror.net/docs/ref/#transform.Transform.join) those
|
|
122
|
+
* two nodes. You can pass a join predicate, which takes a regular expression
|
|
123
|
+
* match and the node before the wrapped node, and can return a boolean to
|
|
124
|
+
* indicate whether a join should happen.
|
|
125
|
+
*/
|
|
126
126
|
join?: (match: RegExpMatchArray, node: ProseMirrorNode) => boolean;
|
|
127
127
|
}): PlainExtension;
|
|
128
128
|
//#endregion
|
|
@@ -3,52 +3,52 @@ import { Attrs } from "@prosekit/pm/model";
|
|
|
3
3
|
|
|
4
4
|
//#region src/italic/italic-commands.d.ts
|
|
5
5
|
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
8
|
type ItalicCommandsExtension = Extension<{
|
|
9
9
|
Commands: {
|
|
10
10
|
toggleItalic: [];
|
|
11
11
|
};
|
|
12
12
|
}>;
|
|
13
13
|
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
16
|
declare function defineItalicCommands(): ItalicCommandsExtension;
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/italic/italic-spec.d.ts
|
|
19
19
|
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
22
|
type ItalicSpecExtension = Extension<{
|
|
23
23
|
Marks: {
|
|
24
24
|
italic: Attrs;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
27
|
/**
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
30
|
declare function defineItalicSpec(): ItalicSpecExtension;
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/italic/italic.d.ts
|
|
33
33
|
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
36
|
type ItalicExtension = Union<[ItalicSpecExtension, ItalicCommandsExtension]>;
|
|
37
37
|
/**
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
40
|
declare function defineItalic(): ItalicExtension;
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/italic/italic-input-rule.d.ts
|
|
43
43
|
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
46
|
declare function defineItalicInputRule(): PlainExtension;
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/italic/italic-keymap.d.ts
|
|
49
49
|
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
52
|
declare function defineItalicKeymap(): PlainExtension;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { type ItalicCommandsExtension, type ItalicExtension, type ItalicSpecExtension, defineItalic, defineItalicCommands, defineItalicInputRule, defineItalicKeymap, defineItalicSpec };
|
|
@@ -3,28 +3,28 @@ import { Extension, PlainExtension, Union } from "@prosekit/core";
|
|
|
3
3
|
//#region src/link/index.d.ts
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
8
|
interface LinkAttrs {
|
|
9
9
|
href: string;
|
|
10
10
|
target?: string | null;
|
|
11
11
|
rel?: string | null;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
16
|
type LinkSpecExtension = Extension<{
|
|
17
17
|
Marks: {
|
|
18
18
|
link: LinkAttrs;
|
|
19
19
|
};
|
|
20
20
|
}>;
|
|
21
21
|
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
24
|
declare function defineLinkSpec(): LinkSpecExtension;
|
|
25
25
|
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
28
|
type LinkCommandsExtension = Extension<{
|
|
29
29
|
Commands: {
|
|
30
30
|
addLink: [attrs: LinkAttrs];
|
|
@@ -35,30 +35,30 @@ type LinkCommandsExtension = Extension<{
|
|
|
35
35
|
}>;
|
|
36
36
|
declare function defineLinkCommands(): LinkCommandsExtension;
|
|
37
37
|
/**
|
|
38
|
-
* Apply link marks after pressing Space.
|
|
39
|
-
*
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
38
|
+
* Apply link marks after pressing Space.
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
42
|
declare function defineLinkInputRule(): PlainExtension;
|
|
43
43
|
/**
|
|
44
|
-
* Apply link marks after typing Enter.
|
|
45
|
-
*
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
44
|
+
* Apply link marks after typing Enter.
|
|
45
|
+
*
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
48
|
declare function defineLinkEnterRule(): PlainExtension;
|
|
49
49
|
/**
|
|
50
|
-
* Apply and remove link marks to the text during typing.
|
|
51
|
-
*
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
50
|
+
* Apply and remove link marks to the text during typing.
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
54
|
declare function defineLinkMarkRule(): PlainExtension;
|
|
55
55
|
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
58
|
type LinkExtension = Union<[LinkSpecExtension, LinkCommandsExtension]>;
|
|
59
59
|
/**
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
62
|
declare function defineLink(): LinkExtension;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { LinkAttrs, LinkCommandsExtension, LinkExtension, LinkSpecExtension, defineLink, defineLinkCommands, defineLinkEnterRule, defineLinkInputRule, defineLinkMarkRule, defineLinkSpec };
|