prosekit 0.9.8 → 0.9.10

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.
@@ -3,9 +3,11 @@ import { AddMarkOptions } from '@prosekit/core';
3
3
  import { AddMarkStep } from '@prosekit/pm/transform';
4
4
  import { AddNodeMarkStep } from '@prosekit/pm/transform';
5
5
  import { AllSelection } from '@prosekit/pm/state';
6
+ import { AnyAttrs } from '@prosekit/core';
6
7
  import { assert } from '@prosekit/core';
7
8
  import { AttributeSpec } from '@prosekit/pm/model';
8
9
  import { Attrs } from '@prosekit/pm/model';
10
+ import { AttrSpec } from '@prosekit/core';
9
11
  import { AttrStep } from '@prosekit/pm/transform';
10
12
  import { AutocompleteEmpty } from '@prosekit/lit/autocomplete';
11
13
  import { AutocompleteEmpty as AutocompleteEmpty_alias_1 } from '@prosekit/preact/autocomplete';
@@ -73,9 +75,11 @@ import { clsx } from '@prosekit/core';
73
75
  import { CodeBlockAttrs } from '@prosekit/extensions/code-block';
74
76
  import { collectNodes } from '@prosekit/core';
75
77
  import { Command } from '@prosekit/pm/state';
78
+ import { CommandAction } from '@prosekit/core';
76
79
  import { CommandTyping } from '@prosekit/core';
77
80
  import { Commit } from '@prosekit/extensions/commit';
78
81
  import { CommitRecorder } from '@prosekit/extensions/commit';
82
+ import { containsInlineNode } from '@prosekit/core';
79
83
  import { ContentMatch } from '@prosekit/pm/model';
80
84
  import { createEditor } from '@prosekit/core';
81
85
  import { createMarkInputRule } from '@prosekit/extensions/input-rule';
@@ -263,9 +267,12 @@ import { expandMark } from '@prosekit/core';
263
267
  import { ExpandMarkOptions } from '@prosekit/core';
264
268
  import { Extension } from '@prosekit/core';
265
269
  import { ExtensionTyping } from '@prosekit/core';
270
+ import { ExtractCommandActions } from '@prosekit/core';
266
271
  import { ExtractCommandAppliers } from '@prosekit/core';
267
272
  import { ExtractCommandCreators } from '@prosekit/core';
273
+ import { ExtractMarkActions } from '@prosekit/core';
268
274
  import { ExtractMarks } from '@prosekit/core';
275
+ import { ExtractNodeActions } from '@prosekit/core';
269
276
  import { ExtractNodes } from '@prosekit/core';
270
277
  import { Facet } from '@prosekit/core';
271
278
  import { findWrapping } from '@prosekit/pm/transform';
@@ -328,13 +335,14 @@ import { lift } from '@prosekit/pm/commands';
328
335
  import { liftEmptyBlock } from '@prosekit/pm/commands';
329
336
  import { liftTarget } from '@prosekit/pm/transform';
330
337
  import { LinkAttrs } from '@prosekit/extensions/link';
331
- import { ListAttributes } from '@prosekit/extensions/list';
338
+ import { ListAttrs } from '@prosekit/extensions/list';
332
339
  import { ListDOMSerializer } from '@prosekit/extensions/list';
333
340
  import { macBaseKeymap } from '@prosekit/pm/commands';
334
341
  import { Mappable } from '@prosekit/pm/transform';
335
342
  import { Mapping } from '@prosekit/pm/transform';
336
343
  import { MapResult } from '@prosekit/pm/transform';
337
344
  import { Mark } from '@prosekit/pm/model';
345
+ import { MarkAction } from '@prosekit/core';
338
346
  import { MarkAttrOptions } from '@prosekit/core';
339
347
  import { MarkBuilder } from '@prosekit/core';
340
348
  import { MarkInputRuleOptions } from '@prosekit/extensions/input-rule';
@@ -342,6 +350,7 @@ import { MarkRuleOptions } from '@prosekit/extensions/mark-rule';
342
350
  import { MarkSpec } from '@prosekit/pm/model';
343
351
  import { MarkSpecOptions } from '@prosekit/core';
344
352
  import { MarkType } from '@prosekit/pm/model';
353
+ import { MarkTyping } from '@prosekit/core';
345
354
  import { MarkViewConstructor } from '@prosekit/pm/view';
346
355
  import { MatchHandler } from '@prosekit/extensions/autocomplete';
347
356
  import { MaybeAccessor } from '@prosekit/solid';
@@ -350,8 +359,10 @@ import { MentionAttrs } from '@prosekit/extensions/mention';
350
359
  import { MountHandler } from '@prosekit/core';
351
360
  import { newlineInCode } from '@prosekit/pm/commands';
352
361
  import { Node as Node_2 } from '@prosekit/pm/model';
362
+ import { NodeAction } from '@prosekit/core';
353
363
  import { NodeAttrOptions } from '@prosekit/core';
354
364
  import { NodeBuilder } from '@prosekit/core';
365
+ import { NodeChild } from '@prosekit/core';
355
366
  import { NodeContent } from '@prosekit/core';
356
367
  import { nodeFromElement } from '@prosekit/core';
357
368
  import { nodeFromHTML } from '@prosekit/core';
@@ -362,6 +373,7 @@ import { NodeSelection } from '@prosekit/pm/state';
362
373
  import { NodeSpec } from '@prosekit/pm/model';
363
374
  import { NodeSpecOptions } from '@prosekit/core';
364
375
  import { NodeType } from '@prosekit/pm/model';
376
+ import { NodeTyping } from '@prosekit/core';
365
377
  import { NodeView } from '@prosekit/pm/view';
366
378
  import { NodeViewComponentOptions } from '@prosekit/core';
367
379
  import { NodeViewConstructor } from '@prosekit/pm/view';
@@ -375,6 +387,7 @@ import { ParseOptions } from '@prosekit/pm/model';
375
387
  import { ParseRule } from '@prosekit/pm/model';
376
388
  import { PasteHandler } from '@prosekit/core';
377
389
  import { pcBaseKeymap } from '@prosekit/pm/commands';
390
+ import { PickSubType } from '@prosekit/core';
378
391
  import { PlaceholderOptions } from '@prosekit/extensions/placeholder';
379
392
  import { Plugin as Plugin_2 } from '@prosekit/pm/state';
380
393
  import { pluginFacet } from '@prosekit/core';
@@ -486,6 +499,7 @@ import { shikiBundledLanguagesInfo } from '@prosekit/extensions/code-block';
486
499
  import { ShikiBundledTheme } from '@prosekit/extensions/code-block';
487
500
  import { ShikiBundledThemeInfo } from '@prosekit/extensions/code-block';
488
501
  import { shikiBundledThemesInfo } from '@prosekit/extensions/code-block';
502
+ import { SimplifyDeeper } from '@prosekit/core';
489
503
  import { SimplifyUnion } from '@prosekit/core';
490
504
  import { Slice } from '@prosekit/pm/model';
491
505
  import { smartQuotes } from '@prosekit/pm/inputrules';
@@ -505,6 +519,7 @@ import { SvelteNodeViewOptions } from '@prosekit/svelte';
505
519
  import { SvelteNodeViewProps } from '@prosekit/svelte';
506
520
  import { TagParseRule } from '@prosekit/pm/model';
507
521
  import { TestEditor } from '@prosekit/core/test';
522
+ import { TextAlignCommandTyping } from '@prosekit/extensions/text-align';
508
523
  import { TextAlignOptions } from '@prosekit/extensions/text-align';
509
524
  import { TextBlockEnterRuleOptions } from '@prosekit/extensions/enter-rule';
510
525
  import { textblockTypeInputRule } from '@prosekit/pm/inputrules';
@@ -516,6 +531,8 @@ import { toggleMark as toggleMark_alias_1 } from '@prosekit/pm/commands';
516
531
  import { ToggleMarkOptions } from '@prosekit/core';
517
532
  import { toggleNode } from '@prosekit/core';
518
533
  import { ToggleNodeOptions } from '@prosekit/core';
534
+ import { ToMarkAction } from '@prosekit/core';
535
+ import { ToNodeAction } from '@prosekit/core';
519
536
  import { TooltipContent } from '@prosekit/lit/tooltip';
520
537
  import { TooltipContent as TooltipContent_alias_1 } from '@prosekit/preact/tooltip';
521
538
  import { TooltipContent as TooltipContent_alias_2 } from '@prosekit/react/tooltip';
@@ -608,12 +625,16 @@ export { AddNodeMarkStep }
608
625
 
609
626
  export { AllSelection }
610
627
 
628
+ export { AnyAttrs }
629
+
611
630
  export { assert }
612
631
 
613
632
  export { AttributeSpec }
614
633
 
615
634
  export { Attrs }
616
635
 
636
+ export { AttrSpec }
637
+
617
638
  export { AttrStep }
618
639
 
619
640
  export { AutocompleteEmpty }
@@ -748,12 +769,16 @@ export { collectNodes }
748
769
 
749
770
  export { Command }
750
771
 
772
+ export { CommandAction }
773
+
751
774
  export { CommandTyping }
752
775
 
753
776
  export { Commit }
754
777
 
755
778
  export { CommitRecorder }
756
779
 
780
+ export { containsInlineNode }
781
+
757
782
  export { ContentMatch }
758
783
 
759
784
  export { createEditor }
@@ -1136,12 +1161,18 @@ export { Extension }
1136
1161
 
1137
1162
  export { ExtensionTyping }
1138
1163
 
1164
+ export { ExtractCommandActions }
1165
+
1139
1166
  export { ExtractCommandAppliers }
1140
1167
 
1141
1168
  export { ExtractCommandCreators }
1142
1169
 
1170
+ export { ExtractMarkActions }
1171
+
1143
1172
  export { ExtractMarks }
1144
1173
 
1174
+ export { ExtractNodeActions }
1175
+
1145
1176
  export { ExtractNodes }
1146
1177
 
1147
1178
  export { Facet }
@@ -1266,7 +1297,7 @@ export { liftTarget }
1266
1297
 
1267
1298
  export { LinkAttrs }
1268
1299
 
1269
- export { ListAttributes }
1300
+ export { ListAttrs }
1270
1301
 
1271
1302
  export { ListDOMSerializer }
1272
1303
 
@@ -1280,6 +1311,8 @@ export { MapResult }
1280
1311
 
1281
1312
  export { Mark }
1282
1313
 
1314
+ export { MarkAction }
1315
+
1283
1316
  export { MarkAttrOptions }
1284
1317
 
1285
1318
  export { MarkBuilder }
@@ -1294,6 +1327,8 @@ export { MarkSpecOptions }
1294
1327
 
1295
1328
  export { MarkType }
1296
1329
 
1330
+ export { MarkTyping }
1331
+
1297
1332
  export { MarkViewConstructor }
1298
1333
 
1299
1334
  export { MatchHandler }
@@ -1310,10 +1345,14 @@ export { newlineInCode }
1310
1345
 
1311
1346
  export { Node_2 as Node }
1312
1347
 
1348
+ export { NodeAction }
1349
+
1313
1350
  export { NodeAttrOptions }
1314
1351
 
1315
1352
  export { NodeBuilder }
1316
1353
 
1354
+ export { NodeChild }
1355
+
1317
1356
  export { NodeContent }
1318
1357
 
1319
1358
  export { nodeFromElement }
@@ -1334,6 +1373,8 @@ export { NodeSpecOptions }
1334
1373
 
1335
1374
  export { NodeType }
1336
1375
 
1376
+ export { NodeTyping }
1377
+
1337
1378
  export { NodeView }
1338
1379
 
1339
1380
  export { NodeViewComponentOptions }
@@ -1358,6 +1399,8 @@ export { PasteHandler }
1358
1399
 
1359
1400
  export { pcBaseKeymap }
1360
1401
 
1402
+ export { PickSubType }
1403
+
1361
1404
  export { PlaceholderOptions }
1362
1405
 
1363
1406
  export { Plugin_2 as Plugin }
@@ -1580,6 +1623,8 @@ export { ShikiBundledThemeInfo }
1580
1623
 
1581
1624
  export { shikiBundledThemesInfo }
1582
1625
 
1626
+ export { SimplifyDeeper }
1627
+
1583
1628
  export { SimplifyUnion }
1584
1629
 
1585
1630
  export { Slice }
@@ -1618,6 +1663,8 @@ export { TagParseRule }
1618
1663
 
1619
1664
  export { TestEditor }
1620
1665
 
1666
+ export { TextAlignCommandTyping }
1667
+
1621
1668
  export { TextAlignOptions }
1622
1669
 
1623
1670
  export { TextBlockEnterRuleOptions }
@@ -1640,6 +1687,10 @@ export { toggleNode }
1640
1687
 
1641
1688
  export { ToggleNodeOptions }
1642
1689
 
1690
+ export { ToMarkAction }
1691
+
1692
+ export { ToNodeAction }
1693
+
1643
1694
  export { TooltipContent }
1644
1695
 
1645
1696
  export { TooltipContent_alias_1 }
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.33.8/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.33.9/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -52,7 +52,7 @@ img.ProseMirror-separator {
52
52
 
53
53
  /* ../pm/src/view/style/prosemirror.css */
54
54
 
55
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.2/node_modules/prosemirror-flat-list/dist/style.css */
55
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.4/node_modules/prosemirror-flat-list/dist/style.css */
56
56
  .prosemirror-flat-list {
57
57
  padding: 0;
58
58
  margin-top: 0;
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.2/node_modules/prosemirror-flat-list/dist/style.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.4/node_modules/prosemirror-flat-list/dist/style.css */
2
2
  .prosemirror-flat-list {
3
3
  padding: 0;
4
4
  margin-top: 0;
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.33.8/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.33.9/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -22,8 +22,11 @@ export { unsetMark } from './_tsup-dts-rollup';
22
22
  export { UnsetMarkOptions } from './_tsup-dts-rollup';
23
23
  export { wrap } from './_tsup-dts-rollup';
24
24
  export { WrapOptions } from './_tsup-dts-rollup';
25
+ export { MarkAction } from './_tsup-dts-rollup';
25
26
  export { MarkBuilder } from './_tsup-dts-rollup';
27
+ export { NodeAction } from './_tsup-dts-rollup';
26
28
  export { NodeBuilder } from './_tsup-dts-rollup';
29
+ export { NodeChild } from './_tsup-dts-rollup';
27
30
  export { Editor } from './_tsup-dts-rollup';
28
31
  export { createEditor } from './_tsup-dts-rollup';
29
32
  export { EditorOptions } from './_tsup-dts-rollup';
@@ -101,26 +104,39 @@ export { defineText } from './_tsup-dts-rollup';
101
104
  export { defineFacet } from './_tsup-dts-rollup';
102
105
  export { Facet } from './_tsup-dts-rollup';
103
106
  export { defineFacetPayload } from './_tsup-dts-rollup';
107
+ export { AnyAttrs } from './_tsup-dts-rollup';
108
+ export { AttrSpec } from './_tsup-dts-rollup';
104
109
  export { BaseNodeViewOptions } from './_tsup-dts-rollup';
105
- export { CommandTyping } from './_tsup-dts-rollup';
106
110
  export { Extension } from './_tsup-dts-rollup';
107
111
  export { ExtensionTyping } from './_tsup-dts-rollup';
112
+ export { ExtractCommandActions } from './_tsup-dts-rollup';
108
113
  export { ExtractCommandAppliers } from './_tsup-dts-rollup';
109
114
  export { ExtractCommandCreators } from './_tsup-dts-rollup';
115
+ export { ExtractMarkActions } from './_tsup-dts-rollup';
110
116
  export { ExtractMarks } from './_tsup-dts-rollup';
117
+ export { ExtractNodeActions } from './_tsup-dts-rollup';
111
118
  export { ExtractNodes } from './_tsup-dts-rollup';
112
119
  export { UnionExtension } from './_tsup-dts-rollup';
120
+ export { CommandAction } from './_tsup-dts-rollup';
121
+ export { CommandTyping } from './_tsup-dts-rollup';
122
+ export { MarkTyping } from './_tsup-dts-rollup';
123
+ export { ToMarkAction } from './_tsup-dts-rollup';
124
+ export { NodeTyping } from './_tsup-dts-rollup';
125
+ export { ToNodeAction } from './_tsup-dts-rollup';
113
126
  export { NodeJSON } from './_tsup-dts-rollup';
114
127
  export { SelectionJSON } from './_tsup-dts-rollup';
115
128
  export { StateJSON } from './_tsup-dts-rollup';
116
129
  export { StepJSON } from './_tsup-dts-rollup';
130
+ export { PickSubType } from './_tsup-dts-rollup';
117
131
  export { Priority } from './_tsup-dts-rollup';
132
+ export { SimplifyDeeper } from './_tsup-dts-rollup';
118
133
  export { SimplifyUnion } from './_tsup-dts-rollup';
119
134
  export { assert } from './_tsup-dts-rollup';
120
135
  export { canUseRegexLookbehind } from './_tsup-dts-rollup';
121
136
  export { clsx } from './_tsup-dts-rollup';
122
137
  export { collectNodes } from './_tsup-dts-rollup';
123
138
  export { NodeContent } from './_tsup-dts-rollup';
139
+ export { containsInlineNode } from './_tsup-dts-rollup';
124
140
  export { defaultBlockAt } from './_tsup-dts-rollup';
125
141
  export { isApple } from './_tsup-dts-rollup';
126
142
  export { _getId } from './_tsup-dts-rollup';
@@ -1,13 +1,13 @@
1
- export { defineListSpec } from './_tsup-dts-rollup';
2
- export { defineListPlugins } from './_tsup-dts-rollup';
3
- export { defineListInputRules } from './_tsup-dts-rollup';
4
1
  export { defineList } from './_tsup-dts-rollup';
5
2
  export { ListDOMSerializer } from './_tsup-dts-rollup';
6
3
  export { DedentListOptions } from './_tsup-dts-rollup';
7
4
  export { IndentListOptions } from './_tsup-dts-rollup';
8
- export { ListAttributes } from './_tsup-dts-rollup';
9
5
  export { ToggleCollapsedOptions } from './_tsup-dts-rollup';
10
6
  export { UnwrapListOptions } from './_tsup-dts-rollup';
11
7
  export { WrapInListGetAttrs } from './_tsup-dts-rollup';
12
8
  export { defineListCommands } from './_tsup-dts-rollup';
9
+ export { defineListInputRules } from './_tsup-dts-rollup';
13
10
  export { defineListKeymap } from './_tsup-dts-rollup';
11
+ export { defineListPlugins } from './_tsup-dts-rollup';
12
+ export { defineListSpec } from './_tsup-dts-rollup';
13
+ export { ListAttrs } from './_tsup-dts-rollup';
@@ -3,3 +3,4 @@ export { defineTextAlignCommands } from './_tsup-dts-rollup';
3
3
  export { defineTextAlignKeymap } from './_tsup-dts-rollup';
4
4
  export { defineTextAlign } from './_tsup-dts-rollup';
5
5
  export { TextAlignOptions } from './_tsup-dts-rollup';
6
+ export { TextAlignCommandTyping } from './_tsup-dts-rollup';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prosekit",
3
3
  "type": "module",
4
- "version": "0.9.8",
4
+ "version": "0.9.10",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -497,17 +497,17 @@
497
497
  "dist"
498
498
  ],
499
499
  "dependencies": {
500
- "@prosekit/basic": "0.3.15",
501
- "@prosekit/core": "0.7.3",
502
- "@prosekit/extensions": "0.7.3",
503
- "@prosekit/lit": "0.3.11",
504
- "@prosekit/pm": "0.1.6",
505
- "@prosekit/preact": "0.3.14",
506
- "@prosekit/react": "0.3.15",
507
- "@prosekit/solid": "0.3.13",
508
- "@prosekit/svelte": "0.4.5",
509
- "@prosekit/vue": "0.3.14",
510
- "@prosekit/web": "0.3.3"
500
+ "@prosekit/basic": "0.3.17",
501
+ "@prosekit/extensions": "0.7.5",
502
+ "@prosekit/core": "0.7.5",
503
+ "@prosekit/lit": "0.3.13",
504
+ "@prosekit/pm": "0.1.7",
505
+ "@prosekit/preact": "0.3.16",
506
+ "@prosekit/react": "0.3.17",
507
+ "@prosekit/solid": "0.3.15",
508
+ "@prosekit/svelte": "0.4.7",
509
+ "@prosekit/web": "0.3.5",
510
+ "@prosekit/vue": "0.3.16"
511
511
  },
512
512
  "peerDependencies": {
513
513
  "preact": ">= 10.11.0",
@@ -547,9 +547,9 @@
547
547
  "react-dom": "^18.3.1",
548
548
  "solid-js": "^1.8.18",
549
549
  "svelte": "^4.2.18",
550
- "tsup": "^8.1.0",
550
+ "tsup": "^8.1.2",
551
551
  "typescript": "^5.5.3",
552
- "vue": "^3.4.31",
552
+ "vue": "^3.4.32",
553
553
  "@prosekit/dev": "0.0.0"
554
554
  },
555
555
  "scripts": {