@prosekit/extensions 0.9.0 → 0.9.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.
Files changed (48) hide show
  1. package/dist/commit/style.css +0 -1
  2. package/dist/gap-cursor/style.css +5 -5
  3. package/dist/loro/style.css +18 -18
  4. package/dist/placeholder/style.css +4 -4
  5. package/dist/prosekit-extensions-autocomplete.d.ts +2 -2
  6. package/dist/prosekit-extensions-autocomplete.js +4 -0
  7. package/dist/prosekit-extensions-blockquote.d.ts +2 -5
  8. package/dist/prosekit-extensions-bold.d.ts +0 -7
  9. package/dist/prosekit-extensions-code-block.d.ts +1 -14
  10. package/dist/prosekit-extensions-code.d.ts +0 -7
  11. package/dist/prosekit-extensions-commit.d.ts +3 -4
  12. package/dist/prosekit-extensions-commit.js +3 -5
  13. package/dist/prosekit-extensions-doc.d.ts +1 -4
  14. package/dist/prosekit-extensions-drop-cursor.d.ts +2 -1
  15. package/dist/prosekit-extensions-enter-rule.d.ts +3 -4
  16. package/dist/prosekit-extensions-file.d.ts +6 -3
  17. package/dist/prosekit-extensions-file.js +15 -2
  18. package/dist/prosekit-extensions-gap-cursor.d.ts +1 -4
  19. package/dist/prosekit-extensions-hard-break.d.ts +2 -7
  20. package/dist/prosekit-extensions-heading.d.ts +0 -6
  21. package/dist/prosekit-extensions-horizontal-rule.d.ts +0 -3
  22. package/dist/prosekit-extensions-image.d.ts +3 -6
  23. package/dist/prosekit-extensions-input-rule.d.ts +3 -8
  24. package/dist/prosekit-extensions-italic.d.ts +0 -7
  25. package/dist/prosekit-extensions-link.d.ts +1 -4
  26. package/dist/prosekit-extensions-list.d.ts +1 -11
  27. package/dist/prosekit-extensions-loro.d.ts +0 -9
  28. package/dist/prosekit-extensions-mark-rule.d.ts +3 -7
  29. package/dist/prosekit-extensions-mention.d.ts +0 -1
  30. package/dist/prosekit-extensions-mod-click-prevention.d.ts +1 -4
  31. package/dist/prosekit-extensions-paragraph.d.ts +2 -7
  32. package/dist/prosekit-extensions-placeholder.d.ts +2 -1
  33. package/dist/prosekit-extensions-readonly.d.ts +1 -4
  34. package/dist/prosekit-extensions-search.d.ts +3 -6
  35. package/dist/prosekit-extensions-strike.d.ts +1 -4
  36. package/dist/prosekit-extensions-table.d.ts +3 -9
  37. package/dist/prosekit-extensions-text-align.d.ts +3 -4
  38. package/dist/prosekit-extensions-text.d.ts +1 -4
  39. package/dist/prosekit-extensions-underline.d.ts +1 -4
  40. package/dist/prosekit-extensions-virtual-selection.d.ts +1 -4
  41. package/dist/prosekit-extensions-yjs.d.ts +0 -9
  42. package/dist/search/style.css +5 -4
  43. package/dist/{shiki-highlighter-chunk-Cd3WeOKL.d.ts → shiki-highlighter-chunk-CZGvZlhf.d.ts} +0 -1
  44. package/dist/shiki-highlighter-chunk.d.ts +1 -1
  45. package/dist/table/style.css +12 -16
  46. package/dist/virtual-selection/style.css +1 -1
  47. package/dist/yjs/style.css +17 -14
  48. package/package.json +10 -10
@@ -2,7 +2,6 @@
2
2
  background-color: #e5534b80;
3
3
  text-decoration: line-through;
4
4
  }
5
-
6
5
  .prosekit-commit-addition {
7
6
  background-color: #53e54b80;
8
7
  }
@@ -1,17 +1,17 @@
1
1
  .ProseMirror-gapcursor {
2
- pointer-events: none;
3
2
  display: none;
4
3
  position: relative;
4
+ pointer-events: none;
5
5
  }
6
6
 
7
7
  .ProseMirror-gapcursor:after {
8
- content: "";
9
- border-top: 1px solid;
10
- width: 20px;
11
- animation: 1.1s steps(2, start) infinite ProseMirror-cursor-blink;
12
8
  display: block;
13
9
  position: absolute;
14
10
  top: -2px;
11
+ width: 20px;
12
+ border-top: 1px solid currentColor;
13
+ content: "";
14
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
15
15
  }
16
16
 
17
17
  @keyframes ProseMirror-cursor-blink {
@@ -2,33 +2,33 @@
2
2
  margin-top: 16px;
3
3
  }
4
4
 
5
+ /* This gives the remote user caret. The colors are automatically overwritten */
5
6
  .ProseMirror-loro-cursor {
7
+ position: relative;
8
+ margin-right: -1px;
9
+ margin-left: -1px;
10
+ border-right: 1px solid black;
11
+ border-left: 1px solid black;
12
+ border-color: orange;
6
13
  word-break: normal;
7
14
  pointer-events: none;
8
- border-color: orange;
9
- border-left-style: solid;
10
- border-left-width: 1px;
11
- border-right-style: solid;
12
- border-right-width: 1px;
13
- margin-left: -1px;
14
- margin-right: -1px;
15
- position: relative;
16
15
  }
17
16
 
17
+ /* This renders the username above the caret */
18
18
  .ProseMirror-loro-cursor > div {
19
- color: #fff;
20
- white-space: nowrap;
21
- user-select: none;
22
- background-color: #fa8100;
23
- padding-left: 2px;
19
+ position: absolute;
20
+ top: -1.05em;
21
+ left: -1px;
24
22
  padding-right: 2px;
25
- font-family: serif;
26
- font-size: 13px;
23
+ padding-left: 2px;
24
+ background-color: rgb(250, 129, 0);
25
+ color: white;
27
26
  font-style: normal;
28
27
  font-weight: normal;
28
+ font-size: 13px;
29
29
  line-height: normal;
30
- position: absolute;
31
- top: -1.05em;
32
- left: -1px;
30
+ font-family: serif;
31
+ white-space: nowrap;
32
+ user-select: none;
33
33
  }
34
34
 
@@ -1,8 +1,8 @@
1
- .prosekit-placeholder:before {
1
+ .prosekit-placeholder::before {
2
+ position: absolute;
3
+ height: 0;
2
4
  content: attr(data-placeholder);
3
- opacity: .3;
5
+ opacity: 30%;
4
6
  pointer-events: none;
5
- height: 0;
6
- position: absolute;
7
7
  }
8
8
 
@@ -25,9 +25,9 @@ declare class AutocompleteRule {
25
25
  state: EditorState;
26
26
  }) => boolean;
27
27
  });
28
- } //#endregion
28
+ }
29
+ //#endregion
29
30
  //#region src/autocomplete/autocomplete.d.ts
30
31
  declare function defineAutocomplete(rule: AutocompleteRule): Extension;
31
-
32
32
  //#endregion
33
33
  export { AutocompleteRule, MatchHandler, defineAutocomplete };
@@ -131,6 +131,10 @@ const autocompleteFacet = defineFacet({
131
131
  //#endregion
132
132
  //#region src/autocomplete/autocomplete-rule.ts
133
133
  var AutocompleteRule = class {
134
+ regex;
135
+ onMatch;
136
+ onLeave;
137
+ canMatch;
134
138
  constructor(options) {
135
139
  this.regex = options.regex;
136
140
  this.onMatch = options.onEnter;
@@ -12,7 +12,8 @@ type BlockquoteCommandsExtension = Extension<{
12
12
  /**
13
13
  * @internal
14
14
  */
15
- declare function defineBlockquoteCommands(): BlockquoteCommandsExtension; //#endregion
15
+ declare function defineBlockquoteCommands(): BlockquoteCommandsExtension;
16
+ //#endregion
16
17
  //#region src/blockquote/blockquote-spec.d.ts
17
18
  type BlockquoteSpecExtension = Extension<{
18
19
  Nodes: {
@@ -20,7 +21,6 @@ type BlockquoteSpecExtension = Extension<{
20
21
  };
21
22
  }>;
22
23
  declare function defineBlockquoteSpec(): BlockquoteSpecExtension;
23
-
24
24
  //#endregion
25
25
  //#region src/blockquote/blockquote.d.ts
26
26
  /**
@@ -31,7 +31,6 @@ type BlockquoteExtension = Union<[BlockquoteSpecExtension, BlockquoteCommandsExt
31
31
  * @public
32
32
  */
33
33
  declare function defineBlockquote(): BlockquoteExtension;
34
-
35
34
  //#endregion
36
35
  //#region src/blockquote/blockquote-input-rule.d.ts
37
36
  /**
@@ -39,13 +38,11 @@ declare function defineBlockquote(): BlockquoteExtension;
39
38
  * line followed by a space.
40
39
  */
41
40
  declare function defineBlockquoteInputRule(): PlainExtension;
42
-
43
41
  //#endregion
44
42
  //#region src/blockquote/blockquote-keymap.d.ts
45
43
  /**
46
44
  * @internal
47
45
  */
48
46
  declare function defineBlockquoteKeymap(): PlainExtension;
49
-
50
47
  //#endregion
51
48
  export { BlockquoteCommandsExtension, BlockquoteExtension, BlockquoteSpecExtension, defineBlockquote, defineBlockquoteCommands, defineBlockquoteInputRule, defineBlockquoteKeymap, defineBlockquoteSpec };
@@ -5,9 +5,6 @@ import { Attrs } from "@prosekit/pm/model";
5
5
  /**
6
6
  * @internal
7
7
  */
8
- /**
9
- * @internal
10
- */
11
8
  type BoldCommandsExtension = Extension<{
12
9
  Commands: {
13
10
  toggleBold: [];
@@ -31,7 +28,6 @@ type BoldSpecExtension = Extension<{
31
28
  * @internal
32
29
  */
33
30
  declare function defineBoldSpec(): BoldSpecExtension;
34
-
35
31
  //#endregion
36
32
  //#region src/bold/bold.d.ts
37
33
  /**
@@ -42,20 +38,17 @@ type BoldExtension = Union<[BoldSpecExtension, BoldCommandsExtension]>;
42
38
  * @public
43
39
  */
44
40
  declare function defineBold(): BoldExtension;
45
-
46
41
  //#endregion
47
42
  //#region src/bold/bold-input-rule.d.ts
48
43
  /**
49
44
  * @internal
50
45
  */
51
46
  declare function defineBoldInputRule(): PlainExtension;
52
-
53
47
  //#endregion
54
48
  //#region src/bold/bold-keymap.d.ts
55
49
  /**
56
50
  * @internal
57
51
  */
58
52
  declare function defineBoldKeymap(): PlainExtension;
59
-
60
53
  //#endregion
61
54
  export { BoldCommandsExtension, BoldExtension, BoldSpecExtension, defineBold, defineBoldCommands, defineBoldInputRule, defineBoldKeymap, defineBoldSpec };
@@ -1,4 +1,4 @@
1
- import { ShikiHighlighterOptions } from "./shiki-highlighter-chunk-Cd3WeOKL.js";
1
+ import { ShikiHighlighterOptions } from "./shiki-highlighter-chunk-CZGvZlhf.js";
2
2
  import { Extension, PlainExtension, Union } from "@prosekit/core";
3
3
  import { Parser } from "prosemirror-highlight";
4
4
  import { BundledLanguage as ShikiBundledLanguage, BundledLanguageInfo as ShikiBundledLanguageInfo, BundledTheme as ShikiBundledTheme, BundledThemeInfo as ShikiBundledThemeInfo, SpecialLanguage, bundledLanguagesInfo as shikiBundledLanguagesInfo, bundledThemesInfo as shikiBundledThemesInfo } from "shiki";
@@ -9,15 +9,9 @@ import { BundledLanguage as ShikiBundledLanguage, BundledLanguageInfo as ShikiBu
9
9
  *
10
10
  * @public
11
11
  */
12
- /**
13
- * The attributes for the `codeBlock` node.
14
- *
15
- * @public
16
- */
17
12
  interface CodeBlockAttrs {
18
13
  language: string;
19
14
  }
20
-
21
15
  //#endregion
22
16
  //#region src/code-block/code-block-commands.d.ts
23
17
  /**
@@ -37,7 +31,6 @@ type CodeBlockCommandsExtension = Extension<{
37
31
  * @public
38
32
  */
39
33
  declare function defineCodeBlockCommands(): CodeBlockCommandsExtension;
40
-
41
34
  //#endregion
42
35
  //#region src/code-block/code-block-spec.d.ts
43
36
  /**
@@ -54,7 +47,6 @@ type CodeBlockSpecExtension = Extension<{
54
47
  * @public
55
48
  */
56
49
  declare function defineCodeBlockSpec(): CodeBlockSpecExtension;
57
-
58
50
  //#endregion
59
51
  //#region src/code-block/code-block.d.ts
60
52
  /**
@@ -73,7 +65,6 @@ type CodeBlockExtension = Union<[CodeBlockSpecExtension, CodeBlockCommandsExtens
73
65
  * @public
74
66
  */
75
67
  declare function defineCodeBlock(): CodeBlockExtension;
76
-
77
68
  //#endregion
78
69
  //#region src/code-block/code-block-highlight.d.ts
79
70
  /**
@@ -101,7 +92,6 @@ type CodeBlockHighlightOptions = {
101
92
  declare function defineCodeBlockHighlight({
102
93
  parser
103
94
  }: CodeBlockHighlightOptions): Extension;
104
-
105
95
  //#endregion
106
96
  //#region src/code-block/code-block-input-rule.d.ts
107
97
  /**
@@ -116,14 +106,12 @@ declare function defineCodeBlockInputRule(): PlainExtension;
116
106
  * @public
117
107
  */
118
108
  declare function defineCodeBlockEnterRule(): PlainExtension;
119
-
120
109
  //#endregion
121
110
  //#region src/code-block/code-block-keymap.d.ts
122
111
  /**
123
112
  * Defines the keymap for code blocks.
124
113
  */
125
114
  declare function defineCodeBlockKeymap(): PlainExtension;
126
-
127
115
  //#endregion
128
116
  //#region src/code-block/code-block-shiki.d.ts
129
117
  /**
@@ -167,6 +155,5 @@ declare function defineCodeBlockShiki({
167
155
  langs,
168
156
  ...rest
169
157
  }?: CodeBlockShikiOptions): Extension;
170
-
171
158
  //#endregion
172
159
  export { CodeBlockAttrs, CodeBlockCommandsExtension, CodeBlockExtension, CodeBlockHighlightOptions, CodeBlockSpecExtension, HighlightParser, ShikiBundledLanguage, ShikiBundledLanguageInfo, ShikiBundledTheme, ShikiBundledThemeInfo, defineCodeBlock, defineCodeBlockCommands, defineCodeBlockEnterRule, defineCodeBlockHighlight, defineCodeBlockInputRule, defineCodeBlockKeymap, defineCodeBlockShiki, defineCodeBlockSpec, shikiBundledLanguagesInfo, shikiBundledThemesInfo };
@@ -5,9 +5,6 @@ import { Attrs } from "@prosekit/pm/model";
5
5
  /**
6
6
  * @internal
7
7
  */
8
- /**
9
- * @internal
10
- */
11
8
  type CodeCommandsExtension = Extension<{
12
9
  Commands: {
13
10
  toggleCode: [];
@@ -31,7 +28,6 @@ type CodeSpecExtension = Extension<{
31
28
  * @internal
32
29
  */
33
30
  declare function defineCodeSpec(): CodeSpecExtension;
34
-
35
31
  //#endregion
36
32
  //#region src/code/code.d.ts
37
33
  /**
@@ -42,20 +38,17 @@ type CodeExtension = Union<[CodeSpecExtension, CodeCommandsExtension]>;
42
38
  * @public
43
39
  */
44
40
  declare function defineCode(): CodeExtension;
45
-
46
41
  //#endregion
47
42
  //#region src/code/code-input-rule.d.ts
48
43
  /**
49
44
  * @internal
50
45
  */
51
46
  declare function defineCodeInputRule(): PlainExtension;
52
-
53
47
  //#endregion
54
48
  //#region src/code/code-keymap.d.ts
55
49
  /**
56
50
  * @internal
57
51
  */
58
52
  declare function defineCodeKeymap(): PlainExtension;
59
-
60
53
  //#endregion
61
54
  export { CodeCommandsExtension, CodeExtension, CodeSpecExtension, defineCode, defineCodeCommands, defineCodeInputRule, defineCodeKeymap, defineCodeSpec };
@@ -3,9 +3,7 @@ import { Transaction } from "@prosekit/pm/state";
3
3
  import { ProseMirrorNode } from "@prosekit/pm/model";
4
4
 
5
5
  //#region src/commit/index.d.ts
6
- /**
7
- * A JSON representation of a commit.
8
- */
6
+
9
7
  /**
10
8
  * A JSON representation of a commit.
11
9
  */
@@ -49,5 +47,6 @@ declare class CommitRecorder {
49
47
  /**
50
48
  * Define an extension that can record the changes in the editor.
51
49
  */
52
- declare function defineCommitRecorder(commitRecorder: CommitRecorder): PlainExtension; //#endregion
50
+ declare function defineCommitRecorder(commitRecorder: CommitRecorder): PlainExtension;
51
+ //#endregion
53
52
  export { Commit, CommitRecorder, defineCommitRecorder, defineCommitViewer };
@@ -108,11 +108,9 @@ function defineCommitViewer(commit) {
108
108
  return union(defineDefaultState({ defaultDoc: commit.doc }), defineCommitDecoration(commit));
109
109
  }
110
110
  var CommitRecorder = class {
111
- constructor() {
112
- this.parent = null;
113
- this.doc = null;
114
- this.steps = [];
115
- }
111
+ parent = null;
112
+ doc = null;
113
+ steps = [];
116
114
  /**
117
115
  * Return a commit object including all changes since the last commit. `null`
118
116
  * will be returned if there is no change.
@@ -2,9 +2,7 @@ import { Extension } from "@prosekit/core";
2
2
  import { Attrs } from "@prosekit/pm/model";
3
3
 
4
4
  //#region src/doc/index.d.ts
5
- /**
6
- * @internal
7
- */
5
+
8
6
  /**
9
7
  * @internal
10
8
  */
@@ -17,6 +15,5 @@ type DocExtension = Extension<{
17
15
  * @public
18
16
  */
19
17
  declare function defineDoc(): DocExtension;
20
-
21
18
  //#endregion
22
19
  export { DocExtension, defineDoc };
@@ -30,5 +30,6 @@ type DropCursorExtension = PlainExtension;
30
30
  *
31
31
  * @public
32
32
  */
33
- declare function defineDropCursor(options?: DropCursorOptions): DropCursorExtension; //#endregion
33
+ declare function defineDropCursor(options?: DropCursorOptions): DropCursorExtension;
34
+ //#endregion
34
35
  export { DropCursorExtension, DropCursorOptions, defineDropCursor };
@@ -3,9 +3,7 @@ import { EditorState, Transaction } from "@prosekit/pm/state";
3
3
  import { Attrs, NodeType } from "@prosekit/pm/model";
4
4
 
5
5
  //#region src/enter-rule/index.d.ts
6
- /**
7
- * @public
8
- */
6
+
9
7
  /**
10
8
  * @public
11
9
  */
@@ -102,5 +100,6 @@ declare function defineTextBlockEnterRule({
102
100
  type,
103
101
  attrs,
104
102
  stop
105
- }: TextBlockEnterRuleOptions): PlainExtension; //#endregion
103
+ }: TextBlockEnterRuleOptions): PlainExtension;
104
+ //#endregion
106
105
  export { EnterRuleHandler, EnterRuleOptions, TextBlockEnterRuleOptions, defineEnterRule, defineTextBlockEnterRule };
@@ -27,7 +27,8 @@ interface FileDropHandlerOptions {
27
27
  * other handlers.
28
28
  */
29
29
  type FileDropHandler = (options: FileDropHandlerOptions) => boolean | void;
30
- declare function defineFileDropHandler(handler: FileDropHandler): PlainExtension; //#endregion
30
+ declare function defineFileDropHandler(handler: FileDropHandler): PlainExtension;
31
+ //#endregion
31
32
  //#region src/file/file-paste-handler.d.ts
32
33
  interface FilePasteHandlerOptions {
33
34
  /**
@@ -51,14 +52,17 @@ interface FilePasteHandlerOptions {
51
52
  */
52
53
  type FilePasteHandler = (options: FilePasteHandlerOptions) => boolean | void;
53
54
  declare function defineFilePasteHandler(handler: FilePasteHandler): PlainExtension;
54
-
55
55
  //#endregion
56
56
  //#region src/file/file-upload.d.ts
57
57
  /**
58
58
  * An interface representing the upload progress.
59
59
  */
60
60
  interface UploadProgress {
61
+ // A number representing the amount of work already performed by the
62
+ // underlying process.
61
63
  loaded: number;
64
+ // A number representing the total amount of work that the underlying
65
+ // process is in the progress of performing.
62
66
  total: number;
63
67
  }
64
68
  interface UploaderOptions {
@@ -121,6 +125,5 @@ declare class UploadTask<Result> {
121
125
  */
122
126
  static delete(objectURL: string): void;
123
127
  }
124
-
125
128
  //#endregion
126
129
  export { FileDropHandlerOptions, FilePasteHandlerOptions, UploadProgress, UploadTask, Uploader, UploaderOptions, defineFileDropHandler, defineFilePasteHandler };
@@ -72,6 +72,21 @@ const facet = defineFacet({
72
72
  * A class that represents a upload task.
73
73
  */
74
74
  var UploadTask = class {
75
+ /**
76
+ * An [object URL](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL)
77
+ * representing the file to be uploaded. This URL will be revoked once the
78
+ * upload is complete successfully.
79
+ */
80
+ objectURL;
81
+ /**
82
+ * A boolean indicating whether the upload is complete (either successfully or with an error).
83
+ */
84
+ done = false;
85
+ /**
86
+ * A promise that fulfills once the upload is complete, or rejects if an error occurs.
87
+ */
88
+ finished;
89
+ subscribers = [];
75
90
  /**
76
91
  * Creates a new upload task. You can find the upload task by its object URL
77
92
  * later using `UploadTask.get()`.
@@ -79,8 +94,6 @@ var UploadTask = class {
79
94
  * @param options - The options for the upload task.
80
95
  */
81
96
  constructor({ file, uploader }) {
82
- this.done = false;
83
- this.subscribers = [];
84
97
  this.objectURL = URL.createObjectURL(file);
85
98
  this.finished = new Promise((resolve, reject) => {
86
99
  const maybePromise = uploader({
@@ -2,9 +2,7 @@ import { PlainExtension } from "@prosekit/core";
2
2
  import "prosemirror-gapcursor";
3
3
 
4
4
  //#region src/gap-cursor/gap-cursor.d.ts
5
- /**
6
- * @internal
7
- */
5
+
8
6
  /**
9
7
  * @internal
10
8
  */
@@ -24,6 +22,5 @@ type GapCursorExtension = PlainExtension;
24
22
  * @public
25
23
  */
26
24
  declare function defineGapCursor(): GapCursorExtension;
27
-
28
25
  //#endregion
29
26
  export { GapCursorExtension, defineGapCursor };
@@ -6,9 +6,6 @@ import { Attrs } from "@prosekit/pm/model";
6
6
  /**
7
7
  * @internal
8
8
  */
9
- /**
10
- * @internal
11
- */
12
9
  type HardBreakCommandsExtension = Extension<{
13
10
  Commands: {
14
11
  insertHardBreak: [];
@@ -21,7 +18,8 @@ type HardBreakCommandsExtension = Extension<{
21
18
  /**
22
19
  * @internal
23
20
  */
24
- declare function defineHardBreakCommands(): HardBreakCommandsExtension; //#endregion
21
+ declare function defineHardBreakCommands(): HardBreakCommandsExtension;
22
+ //#endregion
25
23
  //#region src/hard-break/hard-break-spec.d.ts
26
24
  /**
27
25
  * @internal
@@ -35,7 +33,6 @@ type HardBreakSpecExtension = Extension<{
35
33
  * @internal
36
34
  */
37
35
  declare function defineHardBreakSpec(): HardBreakSpecExtension;
38
-
39
36
  //#endregion
40
37
  //#region src/hard-break/hard-break.d.ts
41
38
  /**
@@ -46,13 +43,11 @@ type HardBreakExtension = Union<[HardBreakSpecExtension, HardBreakCommandsExtens
46
43
  * @public
47
44
  */
48
45
  declare function defineHardBreak(): HardBreakExtension;
49
-
50
46
  //#endregion
51
47
  //#region src/hard-break/hard-break-keymap.d.ts
52
48
  /**
53
49
  * @internal
54
50
  */
55
51
  declare function defineHardBreakKeymap(): PlainExtension;
56
-
57
52
  //#endregion
58
53
  export { HardBreakCommandsExtension, HardBreakExtension, HardBreakSpecExtension, defineHardBreak, defineHardBreakCommands, defineHardBreakKeymap, defineHardBreakSpec };
@@ -4,7 +4,6 @@ import { Extension, PlainExtension, Union } from "@prosekit/core";
4
4
  interface HeadingAttrs {
5
5
  level: number;
6
6
  }
7
-
8
7
  //#endregion
9
8
  //#region src/heading/heading-commands.d.ts
10
9
  /**
@@ -21,7 +20,6 @@ type HeadingCommandsExtension = Extension<{
21
20
  * @internal
22
21
  */
23
22
  declare function defineHeadingCommands(): HeadingCommandsExtension;
24
-
25
23
  //#endregion
26
24
  //#region src/heading/heading-spec.d.ts
27
25
  /**
@@ -36,7 +34,6 @@ type HeadingSpecExtension = Extension<{
36
34
  * @internal
37
35
  */
38
36
  declare function defineHeadingSpec(): HeadingSpecExtension;
39
-
40
37
  //#endregion
41
38
  //#region src/heading/heading.d.ts
42
39
  /**
@@ -47,7 +44,6 @@ type HeadingExtension = Union<[HeadingSpecExtension, HeadingCommandsExtension]>;
47
44
  * @public
48
45
  */
49
46
  declare function defineHeading(): HeadingExtension;
50
-
51
47
  //#endregion
52
48
  //#region src/heading/heading-input-rule.d.ts
53
49
  /**
@@ -57,13 +53,11 @@ declare function defineHeading(): HeadingExtension;
57
53
  * @internal
58
54
  */
59
55
  declare function defineHeadingInputRule(): PlainExtension;
60
-
61
56
  //#endregion
62
57
  //#region src/heading/heading-keymap.d.ts
63
58
  /**
64
59
  * @internal
65
60
  */
66
61
  declare function defineHeadingKeymap(): PlainExtension;
67
-
68
62
  //#endregion
69
63
  export { HeadingAttrs, HeadingCommandsExtension, HeadingExtension, HeadingSpecExtension, defineHeading, defineHeadingCommands, defineHeadingInputRule, defineHeadingKeymap, defineHeadingSpec };
@@ -21,7 +21,6 @@ type HorizontalRuleSpecExtension = Extension<{
21
21
  };
22
22
  }>;
23
23
  declare function defineHorizontalRuleSpec(): HorizontalRuleSpecExtension;
24
-
25
24
  //#endregion
26
25
  //#region src/horizontal-rule/horizontal-rule.d.ts
27
26
  type HorizontalRuleExtension = Union<[HorizontalRuleSpecExtension, HorizontalRuleCommandsExtension]>;
@@ -29,13 +28,11 @@ type HorizontalRuleExtension = Union<[HorizontalRuleSpecExtension, HorizontalRul
29
28
  * @public
30
29
  */
31
30
  declare function defineHorizontalRule(): HorizontalRuleExtension;
32
-
33
31
  //#endregion
34
32
  //#region src/horizontal-rule/horizontal-rule-input-rule.d.ts
35
33
  /**
36
34
  * @public
37
35
  */
38
36
  declare function defineHorizontalRuleInputRule(): PlainExtension;
39
-
40
37
  //#endregion
41
38
  export { HorizontalRuleCommandsExtension, HorizontalRuleExtension, HorizontalRuleSpecExtension, defineHorizontalRule, defineHorizontalRuleCommands, defineHorizontalRuleInputRule, defineHorizontalRuleSpec, insertHorizontalRule };
@@ -1,9 +1,7 @@
1
1
  import { Extension, Union } from "@prosekit/core";
2
2
 
3
3
  //#region src/image/image-spec.d.ts
4
- /**
5
- * @public
6
- */
4
+
7
5
  /**
8
6
  * @public
9
7
  */
@@ -23,7 +21,8 @@ type ImageSpecExtension = Extension<{
23
21
  /**
24
22
  * @internal
25
23
  */
26
- declare function defineImageSpec(): ImageSpecExtension; //#endregion
24
+ declare function defineImageSpec(): ImageSpecExtension;
25
+ //#endregion
27
26
  //#region src/image/image-commands.d.ts
28
27
  /**
29
28
  * @internal
@@ -37,7 +36,6 @@ type ImageCommandsExtension = Extension<{
37
36
  * @internal
38
37
  */
39
38
  declare function defineImageCommands(): ImageCommandsExtension;
40
-
41
39
  //#endregion
42
40
  //#region src/image/image.d.ts
43
41
  /**
@@ -48,6 +46,5 @@ type ImageExtension = Union<[ImageSpecExtension, ImageCommandsExtension]>;
48
46
  * @public
49
47
  */
50
48
  declare function defineImage(): ImageExtension;
51
-
52
49
  //#endregion
53
50
  export { ImageAttrs, ImageCommandsExtension, ImageExtension, ImageSpecExtension, defineImage, defineImageCommands, defineImageSpec };
@@ -3,13 +3,7 @@ import { InputRule } from "@prosekit/pm/inputrules";
3
3
  import { Attrs, MarkType, NodeType, ProseMirrorNode } from "@prosekit/pm/model";
4
4
 
5
5
  //#region src/input-rule/index.d.ts
6
- /**
7
- * Defines an input rule extension.
8
- *
9
- * @param rule - The ProseMirror input rule to add.
10
- *
11
- * @public
12
- */
6
+
13
7
  /**
14
8
  * Defines an input rule extension.
15
9
  *
@@ -130,5 +124,6 @@ declare function defineWrappingInputRule({
130
124
  * indicate whether a join should happen.
131
125
  */
132
126
  join?: (match: RegExpMatchArray, node: ProseMirrorNode) => boolean;
133
- }): PlainExtension; //#endregion
127
+ }): PlainExtension;
128
+ //#endregion
134
129
  export { MarkInputRuleOptions, createMarkInputRule, defineInputRule, defineMarkInputRule, defineTextBlockInputRule, defineWrappingInputRule };