prosekit 0.9.7 → 0.9.9

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,6 +75,7 @@ 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';
@@ -263,9 +266,12 @@ import { expandMark } from '@prosekit/core';
263
266
  import { ExpandMarkOptions } from '@prosekit/core';
264
267
  import { Extension } from '@prosekit/core';
265
268
  import { ExtensionTyping } from '@prosekit/core';
269
+ import { ExtractCommandActions } from '@prosekit/core';
266
270
  import { ExtractCommandAppliers } from '@prosekit/core';
267
271
  import { ExtractCommandCreators } from '@prosekit/core';
272
+ import { ExtractMarkActions } from '@prosekit/core';
268
273
  import { ExtractMarks } from '@prosekit/core';
274
+ import { ExtractNodeActions } from '@prosekit/core';
269
275
  import { ExtractNodes } from '@prosekit/core';
270
276
  import { Facet } from '@prosekit/core';
271
277
  import { findWrapping } from '@prosekit/pm/transform';
@@ -328,13 +334,14 @@ import { lift } from '@prosekit/pm/commands';
328
334
  import { liftEmptyBlock } from '@prosekit/pm/commands';
329
335
  import { liftTarget } from '@prosekit/pm/transform';
330
336
  import { LinkAttrs } from '@prosekit/extensions/link';
331
- import { ListAttributes } from '@prosekit/extensions/list';
337
+ import { ListAttrs } from '@prosekit/extensions/list';
332
338
  import { ListDOMSerializer } from '@prosekit/extensions/list';
333
339
  import { macBaseKeymap } from '@prosekit/pm/commands';
334
340
  import { Mappable } from '@prosekit/pm/transform';
335
341
  import { Mapping } from '@prosekit/pm/transform';
336
342
  import { MapResult } from '@prosekit/pm/transform';
337
343
  import { Mark } from '@prosekit/pm/model';
344
+ import { MarkAction } from '@prosekit/core';
338
345
  import { MarkAttrOptions } from '@prosekit/core';
339
346
  import { MarkBuilder } from '@prosekit/core';
340
347
  import { MarkInputRuleOptions } from '@prosekit/extensions/input-rule';
@@ -342,6 +349,7 @@ import { MarkRuleOptions } from '@prosekit/extensions/mark-rule';
342
349
  import { MarkSpec } from '@prosekit/pm/model';
343
350
  import { MarkSpecOptions } from '@prosekit/core';
344
351
  import { MarkType } from '@prosekit/pm/model';
352
+ import { MarkTyping } from '@prosekit/core';
345
353
  import { MarkViewConstructor } from '@prosekit/pm/view';
346
354
  import { MatchHandler } from '@prosekit/extensions/autocomplete';
347
355
  import { MaybeAccessor } from '@prosekit/solid';
@@ -350,8 +358,10 @@ import { MentionAttrs } from '@prosekit/extensions/mention';
350
358
  import { MountHandler } from '@prosekit/core';
351
359
  import { newlineInCode } from '@prosekit/pm/commands';
352
360
  import { Node as Node_2 } from '@prosekit/pm/model';
361
+ import { NodeAction } from '@prosekit/core';
353
362
  import { NodeAttrOptions } from '@prosekit/core';
354
363
  import { NodeBuilder } from '@prosekit/core';
364
+ import { NodeChild } from '@prosekit/core';
355
365
  import { NodeContent } from '@prosekit/core';
356
366
  import { nodeFromElement } from '@prosekit/core';
357
367
  import { nodeFromHTML } from '@prosekit/core';
@@ -362,6 +372,7 @@ import { NodeSelection } from '@prosekit/pm/state';
362
372
  import { NodeSpec } from '@prosekit/pm/model';
363
373
  import { NodeSpecOptions } from '@prosekit/core';
364
374
  import { NodeType } from '@prosekit/pm/model';
375
+ import { NodeTyping } from '@prosekit/core';
365
376
  import { NodeView } from '@prosekit/pm/view';
366
377
  import { NodeViewComponentOptions } from '@prosekit/core';
367
378
  import { NodeViewConstructor } from '@prosekit/pm/view';
@@ -375,6 +386,7 @@ import { ParseOptions } from '@prosekit/pm/model';
375
386
  import { ParseRule } from '@prosekit/pm/model';
376
387
  import { PasteHandler } from '@prosekit/core';
377
388
  import { pcBaseKeymap } from '@prosekit/pm/commands';
389
+ import { PickSubType } from '@prosekit/core';
378
390
  import { PlaceholderOptions } from '@prosekit/extensions/placeholder';
379
391
  import { Plugin as Plugin_2 } from '@prosekit/pm/state';
380
392
  import { pluginFacet } from '@prosekit/core';
@@ -486,6 +498,7 @@ import { shikiBundledLanguagesInfo } from '@prosekit/extensions/code-block';
486
498
  import { ShikiBundledTheme } from '@prosekit/extensions/code-block';
487
499
  import { ShikiBundledThemeInfo } from '@prosekit/extensions/code-block';
488
500
  import { shikiBundledThemesInfo } from '@prosekit/extensions/code-block';
501
+ import { SimplifyDeeper } from '@prosekit/core';
489
502
  import { SimplifyUnion } from '@prosekit/core';
490
503
  import { Slice } from '@prosekit/pm/model';
491
504
  import { smartQuotes } from '@prosekit/pm/inputrules';
@@ -505,6 +518,7 @@ import { SvelteNodeViewOptions } from '@prosekit/svelte';
505
518
  import { SvelteNodeViewProps } from '@prosekit/svelte';
506
519
  import { TagParseRule } from '@prosekit/pm/model';
507
520
  import { TestEditor } from '@prosekit/core/test';
521
+ import { TextAlignCommandTyping } from '@prosekit/extensions/text-align';
508
522
  import { TextAlignOptions } from '@prosekit/extensions/text-align';
509
523
  import { TextBlockEnterRuleOptions } from '@prosekit/extensions/enter-rule';
510
524
  import { textblockTypeInputRule } from '@prosekit/pm/inputrules';
@@ -516,6 +530,8 @@ import { toggleMark as toggleMark_alias_1 } from '@prosekit/pm/commands';
516
530
  import { ToggleMarkOptions } from '@prosekit/core';
517
531
  import { toggleNode } from '@prosekit/core';
518
532
  import { ToggleNodeOptions } from '@prosekit/core';
533
+ import { ToMarkAction } from '@prosekit/core';
534
+ import { ToNodeAction } from '@prosekit/core';
519
535
  import { TooltipContent } from '@prosekit/lit/tooltip';
520
536
  import { TooltipContent as TooltipContent_alias_1 } from '@prosekit/preact/tooltip';
521
537
  import { TooltipContent as TooltipContent_alias_2 } from '@prosekit/react/tooltip';
@@ -608,12 +624,16 @@ export { AddNodeMarkStep }
608
624
 
609
625
  export { AllSelection }
610
626
 
627
+ export { AnyAttrs }
628
+
611
629
  export { assert }
612
630
 
613
631
  export { AttributeSpec }
614
632
 
615
633
  export { Attrs }
616
634
 
635
+ export { AttrSpec }
636
+
617
637
  export { AttrStep }
618
638
 
619
639
  export { AutocompleteEmpty }
@@ -748,6 +768,8 @@ export { collectNodes }
748
768
 
749
769
  export { Command }
750
770
 
771
+ export { CommandAction }
772
+
751
773
  export { CommandTyping }
752
774
 
753
775
  export { Commit }
@@ -1136,12 +1158,18 @@ export { Extension }
1136
1158
 
1137
1159
  export { ExtensionTyping }
1138
1160
 
1161
+ export { ExtractCommandActions }
1162
+
1139
1163
  export { ExtractCommandAppliers }
1140
1164
 
1141
1165
  export { ExtractCommandCreators }
1142
1166
 
1167
+ export { ExtractMarkActions }
1168
+
1143
1169
  export { ExtractMarks }
1144
1170
 
1171
+ export { ExtractNodeActions }
1172
+
1145
1173
  export { ExtractNodes }
1146
1174
 
1147
1175
  export { Facet }
@@ -1266,7 +1294,7 @@ export { liftTarget }
1266
1294
 
1267
1295
  export { LinkAttrs }
1268
1296
 
1269
- export { ListAttributes }
1297
+ export { ListAttrs }
1270
1298
 
1271
1299
  export { ListDOMSerializer }
1272
1300
 
@@ -1280,6 +1308,8 @@ export { MapResult }
1280
1308
 
1281
1309
  export { Mark }
1282
1310
 
1311
+ export { MarkAction }
1312
+
1283
1313
  export { MarkAttrOptions }
1284
1314
 
1285
1315
  export { MarkBuilder }
@@ -1294,6 +1324,8 @@ export { MarkSpecOptions }
1294
1324
 
1295
1325
  export { MarkType }
1296
1326
 
1327
+ export { MarkTyping }
1328
+
1297
1329
  export { MarkViewConstructor }
1298
1330
 
1299
1331
  export { MatchHandler }
@@ -1310,10 +1342,14 @@ export { newlineInCode }
1310
1342
 
1311
1343
  export { Node_2 as Node }
1312
1344
 
1345
+ export { NodeAction }
1346
+
1313
1347
  export { NodeAttrOptions }
1314
1348
 
1315
1349
  export { NodeBuilder }
1316
1350
 
1351
+ export { NodeChild }
1352
+
1317
1353
  export { NodeContent }
1318
1354
 
1319
1355
  export { nodeFromElement }
@@ -1334,6 +1370,8 @@ export { NodeSpecOptions }
1334
1370
 
1335
1371
  export { NodeType }
1336
1372
 
1373
+ export { NodeTyping }
1374
+
1337
1375
  export { NodeView }
1338
1376
 
1339
1377
  export { NodeViewComponentOptions }
@@ -1358,6 +1396,8 @@ export { PasteHandler }
1358
1396
 
1359
1397
  export { pcBaseKeymap }
1360
1398
 
1399
+ export { PickSubType }
1400
+
1361
1401
  export { PlaceholderOptions }
1362
1402
 
1363
1403
  export { Plugin_2 as Plugin }
@@ -1580,6 +1620,8 @@ export { ShikiBundledThemeInfo }
1580
1620
 
1581
1621
  export { shikiBundledThemesInfo }
1582
1622
 
1623
+ export { SimplifyDeeper }
1624
+
1583
1625
  export { SimplifyUnion }
1584
1626
 
1585
1627
  export { Slice }
@@ -1618,6 +1660,8 @@ export { TagParseRule }
1618
1660
 
1619
1661
  export { TestEditor }
1620
1662
 
1663
+ export { TextAlignCommandTyping }
1664
+
1621
1665
  export { TextAlignOptions }
1622
1666
 
1623
1667
  export { TextBlockEnterRuleOptions }
@@ -1640,6 +1684,10 @@ export { toggleNode }
1640
1684
 
1641
1685
  export { ToggleNodeOptions }
1642
1686
 
1687
+ export { ToMarkAction }
1688
+
1689
+ export { ToNodeAction }
1690
+
1643
1691
  export { TooltipContent }
1644
1692
 
1645
1693
  export { TooltipContent_alias_1 }
@@ -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.3/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.3/node_modules/prosemirror-flat-list/dist/style.css */
2
2
  .prosemirror-flat-list {
3
3
  padding: 0;
4
4
  margin-top: 0;
@@ -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,20 +104,32 @@ 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';
@@ -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.7",
4
+ "version": "0.9.9",
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.10",
500
+ "@prosekit/basic": "0.3.16",
501
+ "@prosekit/extensions": "0.7.4",
502
+ "@prosekit/core": "0.7.4",
503
+ "@prosekit/lit": "0.3.12",
504
504
  "@prosekit/pm": "0.1.6",
505
- "@prosekit/react": "0.3.14",
506
- "@prosekit/preact": "0.3.13",
507
- "@prosekit/svelte": "0.4.4",
508
- "@prosekit/solid": "0.3.12",
509
- "@prosekit/vue": "0.3.13",
510
- "@prosekit/web": "0.3.2"
505
+ "@prosekit/preact": "0.3.15",
506
+ "@prosekit/solid": "0.3.14",
507
+ "@prosekit/react": "0.3.16",
508
+ "@prosekit/svelte": "0.4.6",
509
+ "@prosekit/vue": "0.3.15",
510
+ "@prosekit/web": "0.3.4"
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": {