@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
@@ -5,9 +5,6 @@ import { Attrs } from "@prosekit/pm/model";
5
5
  /**
6
6
  * @internal
7
7
  */
8
- /**
9
- * @internal
10
- */
11
8
  type ItalicCommandsExtension = Extension<{
12
9
  Commands: {
13
10
  toggleItalic: [];
@@ -31,7 +28,6 @@ type ItalicSpecExtension = Extension<{
31
28
  * @internal
32
29
  */
33
30
  declare function defineItalicSpec(): ItalicSpecExtension;
34
-
35
31
  //#endregion
36
32
  //#region src/italic/italic.d.ts
37
33
  /**
@@ -42,20 +38,17 @@ type ItalicExtension = Union<[ItalicSpecExtension, ItalicCommandsExtension]>;
42
38
  * @public
43
39
  */
44
40
  declare function defineItalic(): ItalicExtension;
45
-
46
41
  //#endregion
47
42
  //#region src/italic/italic-input-rule.d.ts
48
43
  /**
49
44
  * @internal
50
45
  */
51
46
  declare function defineItalicInputRule(): PlainExtension;
52
-
53
47
  //#endregion
54
48
  //#region src/italic/italic-keymap.d.ts
55
49
  /**
56
50
  * @internal
57
51
  */
58
52
  declare function defineItalicKeymap(): PlainExtension;
59
-
60
53
  //#endregion
61
54
  export { ItalicCommandsExtension, ItalicExtension, ItalicSpecExtension, defineItalic, defineItalicCommands, defineItalicInputRule, defineItalicKeymap, defineItalicSpec };
@@ -1,9 +1,7 @@
1
1
  import { Extension, PlainExtension, Union } from "@prosekit/core";
2
2
 
3
3
  //#region src/link/index.d.ts
4
- /**
5
- * @public
6
- */
4
+
7
5
  /**
8
6
  * @public
9
7
  */
@@ -60,6 +58,5 @@ type LinkExtension = Union<[LinkSpecExtension, LinkCommandsExtension]>;
60
58
  * @public
61
59
  */
62
60
  declare function defineLink(): LinkExtension;
63
-
64
61
  //#endregion
65
62
  export { LinkAttrs, LinkCommandsExtension, LinkExtension, LinkSpecExtension, defineLink, defineLinkCommands, defineLinkEnterRule, defineLinkInputRule, defineLinkMarkRule, defineLinkSpec };
@@ -2,9 +2,7 @@ import { Extension, PlainExtension, Union } from "@prosekit/core";
2
2
  import { DedentListOptions, DedentListOptions as DedentListOptions$1, IndentListOptions, IndentListOptions as IndentListOptions$1, ListAttributes, ListDOMSerializer, ToggleCollapsedOptions, ToggleCollapsedOptions as ToggleCollapsedOptions$1, UnwrapListOptions, UnwrapListOptions as UnwrapListOptions$1, WrapInListGetAttrs } from "prosemirror-flat-list";
3
3
 
4
4
  //#region src/list/list-commands.d.ts
5
- /**
6
- * @internal
7
- */
5
+
8
6
  /**
9
7
  * @internal
10
8
  */
@@ -27,14 +25,12 @@ type ListCommandsExtension = Extension<{
27
25
  * @internal
28
26
  */
29
27
  declare function defineListCommands(): ListCommandsExtension;
30
-
31
28
  //#endregion
32
29
  //#region src/list/list-input-rules.d.ts
33
30
  /**
34
31
  * @internal
35
32
  */
36
33
  declare function defineListInputRules(): Extension;
37
-
38
34
  //#endregion
39
35
  //#region src/list/list-keymap.d.ts
40
36
  /**
@@ -43,14 +39,12 @@ declare function defineListInputRules(): Extension;
43
39
  * @internal
44
40
  */
45
41
  declare function defineListKeymap(): PlainExtension;
46
-
47
42
  //#endregion
48
43
  //#region src/list/list-plugins.d.ts
49
44
  /**
50
45
  * @internal
51
46
  */
52
47
  declare function defineListPlugins(): PlainExtension;
53
-
54
48
  //#endregion
55
49
  //#region src/list/list-types.d.ts
56
50
  /**
@@ -76,7 +70,6 @@ interface ListAttrs {
76
70
  */
77
71
  collapsed?: boolean;
78
72
  }
79
-
80
73
  //#endregion
81
74
  //#region src/list/list-spec.d.ts
82
75
  /**
@@ -91,7 +84,6 @@ type ListSpecExtension = Extension<{
91
84
  * @internal
92
85
  */
93
86
  declare function defineListSpec(): ListSpecExtension;
94
-
95
87
  //#endregion
96
88
  //#region src/list/list.d.ts
97
89
  /**
@@ -102,13 +94,11 @@ type ListExtension = Union<[ListSpecExtension, ListCommandsExtension]>;
102
94
  * @public
103
95
  */
104
96
  declare function defineList(): ListExtension;
105
-
106
97
  //#endregion
107
98
  //#region src/list/list-serializer.d.ts
108
99
  /**
109
100
  * @internal
110
101
  */
111
102
  declare function defineListSerializer(): PlainExtension;
112
-
113
103
  //#endregion
114
104
  export { DedentListOptions, IndentListOptions, ListAttrs, ListCommandsExtension, ListDOMSerializer, ListExtension, ListSpecExtension, ToggleCollapsedOptions, UnwrapListOptions, WrapInListGetAttrs, defineList, defineListCommands, defineListInputRules, defineListKeymap, defineListPlugins, defineListSerializer, defineListSpec };
@@ -8,9 +8,6 @@ import { PeerID } from "loro-crdt";
8
8
  /**
9
9
  * @internal
10
10
  */
11
- /**
12
- * @internal
13
- */
14
11
  type LoroCommandsExtension = Extension<{
15
12
  Commands: {
16
13
  undo: [];
@@ -18,7 +15,6 @@ type LoroCommandsExtension = Extension<{
18
15
  };
19
16
  }>;
20
17
  declare function defineLoroCommands(): LoroCommandsExtension;
21
-
22
18
  //#endregion
23
19
  //#region src/loro/loro-cursor-plugin.d.ts
24
20
  interface LoroCursorOptions {
@@ -28,19 +24,15 @@ interface LoroCursorOptions {
28
24
  createSelection?: (user: PeerID) => DecorationAttrs;
29
25
  }
30
26
  declare function defineLoroCursorPlugin(options: LoroCursorOptions): PlainExtension;
31
-
32
27
  //#endregion
33
28
  //#region src/loro/loro-keymap.d.ts
34
29
  declare function defineLoroKeymap(): PlainExtension;
35
-
36
30
  //#endregion
37
31
  //#region src/loro/loro-sync-plugin.d.ts
38
32
  declare function defineLoroSyncPlugin(options: LoroSyncPluginProps$1): PlainExtension;
39
-
40
33
  //#endregion
41
34
  //#region src/loro/loro-undo-plugin.d.ts
42
35
  declare function defineLoroUndoPlugin(options: LoroUndoPluginProps$1): PlainExtension;
43
-
44
36
  //#endregion
45
37
  //#region src/loro/loro.d.ts
46
38
  interface LoroOptions {
@@ -73,6 +65,5 @@ type LoroExtension = Union<[LoroCommandsExtension, PlainExtension]>;
73
65
  * @public
74
66
  */
75
67
  declare function defineLoro(options: LoroOptions): LoroExtension;
76
-
77
68
  //#endregion
78
69
  export { LoroCursorOptions, LoroExtension, LoroOptions, LoroSyncPluginProps, LoroUndoPluginProps, defineLoro, defineLoroCommands, defineLoroCursorPlugin, defineLoroKeymap, defineLoroSyncPlugin, defineLoroUndoPlugin };
@@ -2,11 +2,7 @@ import { PlainExtension } from "@prosekit/core";
2
2
  import { Attrs, MarkType } from "@prosekit/pm/model";
3
3
 
4
4
  //#region src/mark-rule/types.d.ts
5
- /**
6
- * The options for {@link defineMarkRule}.
7
- *
8
- * @public
9
- */
5
+
10
6
  /**
11
7
  * The options for {@link defineMarkRule}.
12
8
  *
@@ -29,13 +25,13 @@ interface MarkRuleOptions {
29
25
  * @default null
30
26
  */
31
27
  attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
32
- } //#endregion
28
+ }
29
+ //#endregion
33
30
  //#region src/mark-rule/mark-rule.d.ts
34
31
  /**
35
32
  * A mark rule is something that can automatically apply marks to text if it
36
33
  * matches a certain pattern, and remove them if it doesn't match anymore.
37
34
  */
38
35
  declare function defineMarkRule(options: MarkRuleOptions): PlainExtension;
39
-
40
36
  //#endregion
41
37
  export { MarkRuleOptions, defineMarkRule };
@@ -35,6 +35,5 @@ type MentionExtension = Union<[MentionSpecExtension, MentionCommandsExtension]>;
35
35
  * @public
36
36
  */
37
37
  declare function defineMention(): MentionExtension;
38
-
39
38
  //#endregion
40
39
  export { MentionAttrs, MentionCommandsExtension, MentionExtension, MentionSpecExtension, defineMention, defineMentionCommands, defineMentionSpec };
@@ -1,9 +1,7 @@
1
1
  import { PlainExtension } from "@prosekit/core";
2
2
 
3
3
  //#region src/mod-click-prevention/index.d.ts
4
- /**
5
- * @internal
6
- */
4
+
7
5
  /**
8
6
  * @internal
9
7
  */
@@ -15,6 +13,5 @@ type ModClickPreventionExtension = PlainExtension;
15
13
  * @public
16
14
  */
17
15
  declare function defineModClickPrevention(): ModClickPreventionExtension;
18
-
19
16
  //#endregion
20
17
  export { ModClickPreventionExtension, defineModClickPrevention };
@@ -6,9 +6,6 @@ import { Attrs } from "@prosekit/pm/model";
6
6
  /**
7
7
  * @internal
8
8
  */
9
- /**
10
- * @internal
11
- */
12
9
  type ParagraphCommandsExtension = Extension<{
13
10
  Commands: {
14
11
  setParagraph: [];
@@ -21,7 +18,8 @@ type ParagraphCommandsExtension = Extension<{
21
18
  /**
22
19
  * @internal
23
20
  */
24
- declare function defineParagraphCommands(): ParagraphCommandsExtension; //#endregion
21
+ declare function defineParagraphCommands(): ParagraphCommandsExtension;
22
+ //#endregion
25
23
  //#region src/paragraph/paragraph-spec.d.ts
26
24
  /**
27
25
  * @internal
@@ -37,7 +35,6 @@ type ParagraphSpecExtension = Extension<{
37
35
  * Defines a paragraph node spec.
38
36
  */
39
37
  declare function defineParagraphSpec(): ParagraphSpecExtension;
40
-
41
38
  //#endregion
42
39
  //#region src/paragraph/paragraph.d.ts
43
40
  /**
@@ -53,13 +50,11 @@ type ParagraphExtension = Union<[ParagraphSpecExtension, ParagraphCommandsExtens
53
50
  * default block node for most cases.
54
51
  */
55
52
  declare function defineParagraph(): ParagraphExtension;
56
-
57
53
  //#endregion
58
54
  //#region src/paragraph/paragraph-keymap.d.ts
59
55
  /**
60
56
  * @internal
61
57
  */
62
58
  declare function defineParagraphKeymap(): PlainExtension;
63
-
64
59
  //#endregion
65
60
  export { ParagraphCommandsExtension, ParagraphExtension, ParagraphSpecExtension, defineParagraph, defineParagraphCommands, defineParagraphKeymap, defineParagraphSpec };
@@ -28,5 +28,6 @@ interface PlaceholderOptions {
28
28
  * Add a placeholder text to the editor when the current block or document is
29
29
  * empty.
30
30
  */
31
- declare function definePlaceholder(options: PlaceholderOptions): PlainExtension; //#endregion
31
+ declare function definePlaceholder(options: PlaceholderOptions): PlainExtension;
32
+ //#endregion
32
33
  export { PlaceholderOptions, definePlaceholder };
@@ -1,13 +1,10 @@
1
1
  import { PlainExtension } from "@prosekit/core";
2
2
 
3
3
  //#region src/readonly/index.d.ts
4
- /**
5
- * Make the editor read-only.
6
- */
4
+
7
5
  /**
8
6
  * Make the editor read-only.
9
7
  */
10
8
  declare function defineReadonly(): PlainExtension;
11
-
12
9
  //#endregion
13
10
  export { defineReadonly };
@@ -1,11 +1,7 @@
1
1
  import { Extension, PlainExtension } from "@prosekit/core";
2
2
 
3
3
  //#region src/search/index.d.ts
4
- /**
5
- * Options for {@link defineSearchQuery}
6
- *
7
- * @public
8
- */
4
+
9
5
  /**
10
6
  * Options for {@link defineSearchQuery}
11
7
  *
@@ -73,5 +69,6 @@ type SearchCommandsExtension = Extension<{
73
69
  *
74
70
  * @public
75
71
  */
76
- declare function defineSearchCommands(): SearchCommandsExtension; //#endregion
72
+ declare function defineSearchCommands(): SearchCommandsExtension;
73
+ //#endregion
77
74
  export { SearchCommandsExtension, SearchQueryOptions, defineSearchCommands, defineSearchQuery };
@@ -2,9 +2,7 @@ import { Extension, PlainExtension, Union } from "@prosekit/core";
2
2
  import { Attrs } from "@prosekit/pm/model";
3
3
 
4
4
  //#region src/strike/index.d.ts
5
- /**
6
- * @internal
7
- */
5
+
8
6
  /**
9
7
  * @internal
10
8
  */
@@ -45,6 +43,5 @@ type StrikeExtension = Union<[StrikeSpecExtension, StrikeCommandsExtension]>;
45
43
  * @public
46
44
  */
47
45
  declare function defineStrike(): StrikeExtension;
48
-
49
46
  //#endregion
50
47
  export { StrikeCommandsExtension, StrikeExtension, StrikeSpecExtension, defineStrike, defineStrikeCommands, defineStrikeInputRule, defineStrikeKeymap, defineStrikeSpec };
@@ -7,9 +7,6 @@ import { CellSelection } from "prosemirror-tables";
7
7
  /**
8
8
  * @public
9
9
  */
10
- /**
11
- * @public
12
- */
13
10
  interface InsertTableOptions {
14
11
  /**
15
12
  * The number of rows in the table.
@@ -136,7 +133,8 @@ type TableCommandsExtension = Extension<{
136
133
  *
137
134
  * @public
138
135
  */
139
- declare function defineTableCommands(): TableCommandsExtension; //#endregion
136
+ declare function defineTableCommands(): TableCommandsExtension;
137
+ //#endregion
140
138
  //#region src/table/table-spec.d.ts
141
139
  /**
142
140
  * @public
@@ -191,7 +189,6 @@ type TableHeaderCellSpecExtension = Extension<{
191
189
  };
192
190
  }>;
193
191
  declare function defineTableHeaderCellSpec(): TableHeaderCellSpecExtension;
194
-
195
192
  //#endregion
196
193
  //#region src/table/table.d.ts
197
194
  /**
@@ -202,14 +199,12 @@ type TableExtension = Union<[TableSpecExtension, TableRowSpecExtension, TableCel
202
199
  * @public
203
200
  */
204
201
  declare function defineTable(): TableExtension;
205
-
206
202
  //#endregion
207
203
  //#region src/table/table-plugins.d.ts
208
204
  /**
209
205
  * @public
210
206
  */
211
207
  declare function defineTablePlugins(): PlainExtension;
212
-
213
208
  //#endregion
214
209
  //#region src/table/table-utils.d.ts
215
210
  /**
@@ -224,8 +219,6 @@ declare function isCellSelection(value: unknown): value is CellSelection;
224
219
  * @internal
225
220
  */
226
221
  declare function findTable($pos: ResolvedPos): FindParentNodeResult | undefined;
227
-
228
- //#endregion
229
222
  /**
230
223
  * Try to find the anchor and head cell in the same table by using the given
231
224
  * anchor and head as hit points, or fallback to the selection's anchor and
@@ -234,4 +227,5 @@ declare function findTable($pos: ResolvedPos): FindParentNodeResult | undefined;
234
227
  * @internal
235
228
  */
236
229
 
230
+ //#endregion
237
231
  export { InsertTableOptions, SelectTableCellOptions, SelectTableColumnOptions, SelectTableOptions, SelectTableRowOptions, TableCellSpecExtension, TableCommandsExtension, TableExtension, TableHeaderCellSpecExtension, TableRowSpecExtension, TableSpecExtension, defineTable, defineTableCellSpec, defineTableCommands, defineTableHeaderCellSpec, defineTablePlugins, defineTableRowSpec, defineTableSpec, exitTable, findTable, insertTable, isCellSelection, selectTable, selectTableCell, selectTableColumn, selectTableRow };
@@ -2,9 +2,7 @@ import { Extension, PlainExtension, Union } from "@prosekit/core";
2
2
  import { Command } from "@prosekit/pm/state";
3
3
 
4
4
  //#region src/text-align/index.d.ts
5
- /**
6
- * @public
7
- */
5
+
8
6
  /**
9
7
  * @public
10
8
  */
@@ -68,5 +66,6 @@ type TextAlignExtension<NodeName extends string> = Union<[TextAlignAttrsExtensio
68
66
  *
69
67
  * @public
70
68
  */
71
- declare function defineTextAlign<NodeName extends string = string>(options: TextAlignOptions<NodeName>): TextAlignExtension<NodeName>; //#endregion
69
+ declare function defineTextAlign<NodeName extends string = string>(options: TextAlignOptions<NodeName>): TextAlignExtension<NodeName>;
70
+ //#endregion
72
71
  export { TextAlignAttrsExtension, TextAlignCommandsExtension, TextAlignExtension, TextAlignOptions, defineTextAlign, defineTextAlignCommands, defineTextAlignKeymap, setTextAlign };
@@ -2,9 +2,7 @@ import { Extension } from "@prosekit/core";
2
2
  import { Attrs } from "@prosekit/pm/model";
3
3
 
4
4
  //#region src/text/index.d.ts
5
- /**
6
- * @internal
7
- */
5
+
8
6
  /**
9
7
  * @internal
10
8
  */
@@ -17,6 +15,5 @@ type TextExtension = Extension<{
17
15
  * @public
18
16
  */
19
17
  declare function defineText(): TextExtension;
20
-
21
18
  //#endregion
22
19
  export { TextExtension, defineText };
@@ -2,9 +2,7 @@ import { Extension, PlainExtension, Union } from "@prosekit/core";
2
2
  import { Attrs } from "@prosekit/pm/model";
3
3
 
4
4
  //#region src/underline/index.d.ts
5
- /**
6
- * @internal
7
- */
5
+
8
6
  /**
9
7
  * @internal
10
8
  */
@@ -41,6 +39,5 @@ type UnderlineExtension = Union<[UnderlineSpecExtension, UnderlineCommandsExtens
41
39
  * @public
42
40
  */
43
41
  declare function defineUnderline(): UnderlineExtension;
44
-
45
42
  //#endregion
46
43
  export { UnderlineCommandsExtension, UnderlineExtension, UnderlineSpecExtension, defineUnderline, defineUnderlineCommands, defineUnderlineKeymap, defineUnderlineSpec };
@@ -1,9 +1,7 @@
1
1
  import { PlainExtension } from "@prosekit/core";
2
2
 
3
3
  //#region src/virtual-selection/index.d.ts
4
- /**
5
- * @internal
6
- */
4
+
7
5
  /**
8
6
  * @internal
9
7
  */
@@ -19,6 +17,5 @@ type VirtualSelectionExtension = PlainExtension;
19
17
  * @public
20
18
  */
21
19
  declare function defineVirtualSelection(): VirtualSelectionExtension;
22
-
23
20
  //#endregion
24
21
  export { VirtualSelectionExtension, defineVirtualSelection };
@@ -8,9 +8,6 @@ import * as Y from "yjs";
8
8
  /**
9
9
  * @internal
10
10
  */
11
- /**
12
- * @internal
13
- */
14
11
  type YjsCommandsExtension = Extension<{
15
12
  Commands: {
16
13
  undo: [];
@@ -18,7 +15,6 @@ type YjsCommandsExtension = Extension<{
18
15
  };
19
16
  }>;
20
17
  declare function defineYjsCommands(): YjsCommandsExtension;
21
-
22
18
  //#endregion
23
19
  //#region src/yjs/yjs-cursor-plugin.d.ts
24
20
  /**
@@ -29,7 +25,6 @@ interface YjsCursorOptions extends YjsCursorPluginOptions {
29
25
  awareness: Awareness;
30
26
  }
31
27
  declare function defineYjsCursorPlugin(options: YjsCursorOptions): PlainExtension;
32
-
33
28
  //#endregion
34
29
  //#region src/yjs/yjs-sync-plugin.d.ts
35
30
  /**
@@ -40,7 +35,6 @@ interface YjsSyncOptions extends YjsSyncPluginOptions {
40
35
  fragment: Y$1.XmlFragment;
41
36
  }
42
37
  declare function defineYjsSyncPlugin(options: YjsSyncOptions): PlainExtension;
43
-
44
38
  //#endregion
45
39
  //#region src/yjs/yjs-undo-plugin.d.ts
46
40
  /**
@@ -52,7 +46,6 @@ interface YjsUndoOptions extends YjsUndoPluginOptions {}
52
46
  * @internal
53
47
  */
54
48
  declare function defineYjsUndoPlugin(options: YjsUndoOptions): PlainExtension;
55
-
56
49
  //#endregion
57
50
  //#region src/yjs/yjs.d.ts
58
51
  interface YjsOptions {
@@ -90,10 +83,8 @@ type YjsExtension = Union<[YjsCommandsExtension, PlainExtension]>;
90
83
  * @public
91
84
  */
92
85
  declare function defineYjs(options: YjsOptions): YjsExtension;
93
-
94
86
  //#endregion
95
87
  //#region src/yjs/yjs-keymap.d.ts
96
88
  declare function defineYjsKeymap(): PlainExtension;
97
-
98
89
  //#endregion
99
90
  export { YjsCursorOptions, YjsCursorPluginOptions, YjsExtension, YjsOptions, YjsSyncOptions, YjsSyncPluginOptions, YjsUndoOptions, YjsUndoPluginOptions, defineYjs, defineYjsCommands, defineYjsCursorPlugin, defineYjsKeymap, defineYjsSyncPlugin, defineYjsUndoPlugin };
@@ -1,13 +1,14 @@
1
1
  .ProseMirror-search-match {
2
- background-color: #ffff0054;
3
2
  border-radius: 2px;
3
+ background-color: #ffff0054;
4
4
  box-shadow: 0 0 0 2px #ffff0054;
5
5
  }
6
6
 
7
- .ProseMirror.ProseMirror-focused .ProseMirror-active-search-match::selection, .ProseMirror:not(.ProseMirror-focused) .ProseMirror-active-search-match {
8
- background-color: #ff6a0054;
7
+ .ProseMirror.ProseMirror-focused .ProseMirror-active-search-match::selection,
8
+ .ProseMirror:not(.ProseMirror-focused) .ProseMirror-active-search-match {
9
9
  border-radius: 2px;
10
- scroll-margin: 8px;
10
+ background-color: #ff6a0054;
11
11
  box-shadow: 0 0 0 2px #ff6a0054;
12
+ scroll-margin: 8px;
12
13
  }
13
14
 
@@ -14,6 +14,5 @@ type HighlighterResult = {
14
14
  promise: Promise<void>;
15
15
  };
16
16
  declare function createOrGetHighlighter(options: HighlighterOptions): HighlighterResult;
17
-
18
17
  //#endregion
19
18
  export { HighlighterOptions, HighlighterResult, ShikiHighlighterOptions, createOrGetHighlighter };
@@ -1,2 +1,2 @@
1
- import { HighlighterOptions, HighlighterResult, ShikiHighlighterOptions, createOrGetHighlighter } from "./shiki-highlighter-chunk-Cd3WeOKL.js";
1
+ import { HighlighterOptions, HighlighterResult, ShikiHighlighterOptions, createOrGetHighlighter } from "./shiki-highlighter-chunk-CZGvZlhf.js";
2
2
  export { HighlighterOptions, HighlighterResult, ShikiHighlighterOptions, createOrGetHighlighter };
@@ -1,39 +1,35 @@
1
1
  .ProseMirror .tableWrapper {
2
2
  overflow-x: auto;
3
3
  }
4
-
5
4
  .ProseMirror table {
6
- border-collapse: collapse;
7
- table-layout: fixed;
8
5
  width: 100%;
9
6
  overflow: hidden;
7
+ border-collapse: collapse;
8
+ table-layout: fixed;
10
9
  }
11
-
12
- .ProseMirror td, .ProseMirror th {
10
+ .ProseMirror td,
11
+ .ProseMirror th {
13
12
  box-sizing: border-box;
14
- vertical-align: top;
15
- border-width: 1px;
16
- padding-left: .75rem;
17
- padding-right: .75rem;
18
13
  position: relative;
14
+ padding-right: 0.75rem;
15
+ padding-left: 0.75rem;
16
+ border-width: 1px;
17
+ vertical-align: top;
19
18
  }
20
-
21
19
  .ProseMirror .column-resize-handle {
22
20
  z-index: 20;
23
- pointer-events: none;
24
- background-color: highlighttext;
25
- width: 4px;
26
21
  position: absolute;
27
22
  top: 0;
28
- bottom: 0;
29
23
  right: -2px;
24
+ bottom: 0;
25
+ width: 4px;
26
+ background-color: HighlightText;
27
+ pointer-events: none;
30
28
  }
31
-
32
29
  .ProseMirror.resize-cursor {
33
30
  cursor: ew-resize;
34
31
  cursor: col-resize;
35
32
  }
36
-
37
33
  .ProseMirror .selectedCell {
38
34
  --color: 210, 100%, 56%;
39
35
  border: 1px double hsl(var(--color));
@@ -1,6 +1,6 @@
1
1
  .prosekit-virtual-selection {
2
- background-color: #8888884d;
3
2
  border-radius: 2px;
3
+ background-color: #8888884d;
4
4
  box-shadow: 0 0 0 2px #8888884d;
5
5
  }
6
6
 
@@ -1,28 +1,31 @@
1
1
  .ProseMirror .ProseMirror-yjs-cursor {
2
+ position: absolute;
3
+ height: 1em;
4
+ border-left: black;
5
+ border-left-width: 2px;
6
+ border-left-style: solid;
7
+ border-color: orange;
2
8
  word-break: normal;
3
9
  pointer-events: none;
4
- border-color: orange;
5
- border-left-style: solid;
6
- border-left-width: 2px;
7
- height: 1em;
8
- position: absolute;
9
10
  }
10
11
 
11
12
  .ProseMirror .ProseMirror-yjs-cursor > div {
12
- color: #fff;
13
- user-select: none;
14
- background-color: #fa8100;
15
- padding-left: 2px;
13
+ position: relative;
14
+ top: -1.05em;
16
15
  padding-right: 2px;
17
- font-family: serif;
18
- font-size: 13px;
16
+ padding-left: 2px;
17
+ background-color: rgb(250, 129, 0);
18
+ color: white;
19
19
  font-style: normal;
20
20
  font-weight: normal;
21
+ font-size: 13px;
21
22
  line-height: normal;
22
- position: relative;
23
- top: -1.05em;
23
+ font-family: serif;
24
+ -webkit-user-select: none;
25
+ -moz-user-select: none;
26
+ -ms-user-select: none;
27
+ user-select: none;
24
28
  }
25
-
26
29
  .ProseMirror > .ProseMirror-yjs-cursor:first-child {
27
30
  margin-top: 16px;
28
31
  }