prosekit 0.9.4 → 0.9.6

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.
@@ -1,4 +1,5 @@
1
1
  import { addMark } from '@prosekit/core';
2
+ import { AddMarkOptions } from '@prosekit/core';
2
3
  import { AddMarkStep } from '@prosekit/pm/transform';
3
4
  import { AddNodeMarkStep } from '@prosekit/pm/transform';
4
5
  import { AllSelection } from '@prosekit/pm/state';
@@ -84,6 +85,7 @@ import { Decoration } from '@prosekit/pm/view';
84
85
  import { DecorationAttrs } from '@prosekit/pm/view';
85
86
  import { DecorationSet } from '@prosekit/pm/view';
86
87
  import { DecorationSource } from '@prosekit/pm/view';
88
+ import { DedentListOptions } from '@prosekit/extensions/list';
87
89
  import { defaultAutocompleteEmptyProps } from '@prosekit/web/autocomplete';
88
90
  import { defaultAutocompleteItemProps } from '@prosekit/web/autocomplete';
89
91
  import { defaultAutocompleteListProps } from '@prosekit/web/autocomplete';
@@ -258,6 +260,7 @@ import { EnterRuleHandler } from '@prosekit/extensions/enter-rule';
258
260
  import { EnterRuleOptions } from '@prosekit/extensions/enter-rule';
259
261
  import { exitCode } from '@prosekit/pm/commands';
260
262
  import { expandMark } from '@prosekit/core';
263
+ import { ExpandMarkOptions } from '@prosekit/core';
261
264
  import { Extension } from '@prosekit/core';
262
265
  import { ExtensionTyping } from '@prosekit/core';
263
266
  import { ExtractCommandAppliers } from '@prosekit/core';
@@ -278,6 +281,7 @@ import { history as history_2 } from '@prosekit/pm/history';
278
281
  import { htmlFromJSON } from '@prosekit/core';
279
282
  import { htmlFromNode } from '@prosekit/core';
280
283
  import { ImageAttrs } from '@prosekit/extensions/image';
284
+ import { IndentListOptions } from '@prosekit/extensions/list';
281
285
  import { InlinePopover } from '@prosekit/lit/inline-popover';
282
286
  import { InlinePopover as InlinePopover_alias_1 } from '@prosekit/preact/inline-popover';
283
287
  import { InlinePopover as InlinePopover_alias_2 } from '@prosekit/react/inline-popover';
@@ -289,9 +293,11 @@ import { InlinePopoverProps } from '@prosekit/web/inline-popover';
289
293
  import { InputRule } from '@prosekit/pm/inputrules';
290
294
  import { inputRules } from '@prosekit/pm/inputrules';
291
295
  import { insertNode } from '@prosekit/core';
296
+ import { InsertNodeOptions } from '@prosekit/core';
292
297
  import { insertPoint } from '@prosekit/pm/transform';
293
298
  import { isAllSelection } from '@prosekit/core';
294
299
  import { isApple } from '@prosekit/core';
300
+ import { isAtBlockStart } from '@prosekit/core';
295
301
  import { isInCodeBlock } from '@prosekit/core';
296
302
  import { isMark } from '@prosekit/core';
297
303
  import { isMarkAbsent } from '@prosekit/core';
@@ -321,6 +327,7 @@ import { lift } from '@prosekit/pm/commands';
321
327
  import { liftEmptyBlock } from '@prosekit/pm/commands';
322
328
  import { liftTarget } from '@prosekit/pm/transform';
323
329
  import { LinkAttrs } from '@prosekit/extensions/link';
330
+ import { ListAttributes } from '@prosekit/extensions/list';
324
331
  import { ListDOMSerializer } from '@prosekit/extensions/list';
325
332
  import { macBaseKeymap } from '@prosekit/pm/commands';
326
333
  import { Mappable } from '@prosekit/pm/transform';
@@ -426,9 +433,11 @@ import { redo } from '@prosekit/pm/history';
426
433
  import { redoDepth } from '@prosekit/pm/history';
427
434
  import { redoNoScroll } from '@prosekit/pm/history';
428
435
  import { removeMark } from '@prosekit/core';
436
+ import { RemoveMarkOptions } from '@prosekit/core';
429
437
  import { RemoveMarkStep } from '@prosekit/pm/transform';
430
438
  import { removeNode } from '@prosekit/core';
431
439
  import { RemoveNodeMarkStep } from '@prosekit/pm/transform';
440
+ import { RemoveNodeOptions } from '@prosekit/core';
432
441
  import { ReplaceAroundStep } from '@prosekit/pm/transform';
433
442
  import { ReplaceError } from '@prosekit/pm/model';
434
443
  import { ReplaceStep } from '@prosekit/pm/transform';
@@ -466,7 +475,9 @@ import { selectTextblockEnd } from '@prosekit/pm/commands';
466
475
  import { selectTextblockStart } from '@prosekit/pm/commands';
467
476
  import { setBlockType } from '@prosekit/core';
468
477
  import { setBlockType as setBlockType_alias_1 } from '@prosekit/pm/commands';
478
+ import { SetBlockTypeOptions } from '@prosekit/core';
469
479
  import { setNodeAttrs } from '@prosekit/core';
480
+ import { SetNodeAttrsOptions } from '@prosekit/core';
470
481
  import { setTextAlign } from '@prosekit/extensions/text-align';
471
482
  import { ShikiBundledLanguage } from '@prosekit/extensions/code-block';
472
483
  import { ShikiBundledLanguageInfo } from '@prosekit/extensions/code-block';
@@ -498,9 +509,12 @@ import { TextBlockEnterRuleOptions } from '@prosekit/extensions/enter-rule';
498
509
  import { textblockTypeInputRule } from '@prosekit/pm/inputrules';
499
510
  import { TextInputHandler } from '@prosekit/core';
500
511
  import { TextSelection } from '@prosekit/pm/state';
512
+ import { ToggleCollapsedOptions } from '@prosekit/extensions/list';
501
513
  import { toggleMark } from '@prosekit/core';
502
514
  import { toggleMark as toggleMark_alias_1 } from '@prosekit/pm/commands';
515
+ import { ToggleMarkOptions } from '@prosekit/core';
503
516
  import { toggleNode } from '@prosekit/core';
517
+ import { ToggleNodeOptions } from '@prosekit/core';
504
518
  import { TooltipContent } from '@prosekit/lit/tooltip';
505
519
  import { TooltipContent as TooltipContent_alias_1 } from '@prosekit/preact/tooltip';
506
520
  import { TooltipContent as TooltipContent_alias_2 } from '@prosekit/react/tooltip';
@@ -536,6 +550,11 @@ import { undoNoScroll } from '@prosekit/pm/history';
536
550
  import { union } from '@prosekit/core';
537
551
  import { UnionExtension } from '@prosekit/core';
538
552
  import { UnmountHandler } from '@prosekit/core';
553
+ import { unsetBlockType } from '@prosekit/core';
554
+ import { UnsetBlockTypeOptions } from '@prosekit/core';
555
+ import { unsetMark } from '@prosekit/core';
556
+ import { UnsetMarkOptions } from '@prosekit/core';
557
+ import { UnwrapListOptions } from '@prosekit/extensions/list';
539
558
  import { UpdateHandler } from '@prosekit/core';
540
559
  import { useDocChange } from '@prosekit/preact';
541
560
  import { useDocChange as useDocChange_alias_1 } from '@prosekit/react';
@@ -572,11 +591,16 @@ import { VueNodeViewOptions } from '@prosekit/vue';
572
591
  import { VueNodeViewProps } from '@prosekit/vue';
573
592
  import { withPriority } from '@prosekit/core';
574
593
  import { withSkipCodeBlock } from '@prosekit/core';
594
+ import { wrap } from '@prosekit/core';
575
595
  import { wrapIn } from '@prosekit/pm/commands';
596
+ import { WrapInListGetAttrs } from '@prosekit/extensions/list';
597
+ import { WrapOptions } from '@prosekit/core';
576
598
  import { wrappingInputRule } from '@prosekit/pm/inputrules';
577
599
 
578
600
  export { addMark }
579
601
 
602
+ export { AddMarkOptions }
603
+
580
604
  export { AddMarkStep }
581
605
 
582
606
  export { AddNodeMarkStep }
@@ -747,6 +771,8 @@ export { DecorationSet }
747
771
 
748
772
  export { DecorationSource }
749
773
 
774
+ export { DedentListOptions }
775
+
750
776
  export declare namespace default_alias {
751
777
  let plugins: {
752
778
  'postcss-nesting': {};
@@ -1103,6 +1129,8 @@ export { exitCode }
1103
1129
 
1104
1130
  export { expandMark }
1105
1131
 
1132
+ export { ExpandMarkOptions }
1133
+
1106
1134
  export { Extension }
1107
1135
 
1108
1136
  export { ExtensionTyping }
@@ -1143,6 +1171,8 @@ export { htmlFromNode }
1143
1171
 
1144
1172
  export { ImageAttrs }
1145
1173
 
1174
+ export { IndentListOptions }
1175
+
1146
1176
  export { InlinePopover }
1147
1177
 
1148
1178
  export { InlinePopover_alias_1 }
@@ -1165,12 +1195,16 @@ export { inputRules }
1165
1195
 
1166
1196
  export { insertNode }
1167
1197
 
1198
+ export { InsertNodeOptions }
1199
+
1168
1200
  export { insertPoint }
1169
1201
 
1170
1202
  export { isAllSelection }
1171
1203
 
1172
1204
  export { isApple }
1173
1205
 
1206
+ export { isAtBlockStart }
1207
+
1174
1208
  export { isInCodeBlock }
1175
1209
 
1176
1210
  export { isMark }
@@ -1229,6 +1263,8 @@ export { liftTarget }
1229
1263
 
1230
1264
  export { LinkAttrs }
1231
1265
 
1266
+ export { ListAttributes }
1267
+
1232
1268
  export { ListDOMSerializer }
1233
1269
 
1234
1270
  export { macBaseKeymap }
@@ -1437,12 +1473,16 @@ export { redoNoScroll }
1437
1473
 
1438
1474
  export { removeMark }
1439
1475
 
1476
+ export { RemoveMarkOptions }
1477
+
1440
1478
  export { RemoveMarkStep }
1441
1479
 
1442
1480
  export { removeNode }
1443
1481
 
1444
1482
  export { RemoveNodeMarkStep }
1445
1483
 
1484
+ export { RemoveNodeOptions }
1485
+
1446
1486
  export { ReplaceAroundStep }
1447
1487
 
1448
1488
  export { ReplaceError }
@@ -1517,8 +1557,12 @@ export { setBlockType }
1517
1557
 
1518
1558
  export { setBlockType_alias_1 }
1519
1559
 
1560
+ export { SetBlockTypeOptions }
1561
+
1520
1562
  export { setNodeAttrs }
1521
1563
 
1564
+ export { SetNodeAttrsOptions }
1565
+
1522
1566
  export { setTextAlign }
1523
1567
 
1524
1568
  export { ShikiBundledLanguage }
@@ -1581,12 +1625,18 @@ export { TextInputHandler }
1581
1625
 
1582
1626
  export { TextSelection }
1583
1627
 
1628
+ export { ToggleCollapsedOptions }
1629
+
1584
1630
  export { toggleMark }
1585
1631
 
1586
1632
  export { toggleMark_alias_1 }
1587
1633
 
1634
+ export { ToggleMarkOptions }
1635
+
1588
1636
  export { toggleNode }
1589
1637
 
1638
+ export { ToggleNodeOptions }
1639
+
1590
1640
  export { TooltipContent }
1591
1641
 
1592
1642
  export { TooltipContent_alias_1 }
@@ -1657,6 +1707,16 @@ export { UnionExtension }
1657
1707
 
1658
1708
  export { UnmountHandler }
1659
1709
 
1710
+ export { unsetBlockType }
1711
+
1712
+ export { UnsetBlockTypeOptions }
1713
+
1714
+ export { unsetMark }
1715
+
1716
+ export { UnsetMarkOptions }
1717
+
1718
+ export { UnwrapListOptions }
1719
+
1660
1720
  export { UpdateHandler }
1661
1721
 
1662
1722
  export { useDocChange }
@@ -1729,8 +1789,14 @@ export { withPriority }
1729
1789
 
1730
1790
  export { withSkipCodeBlock }
1731
1791
 
1792
+ export { wrap }
1793
+
1732
1794
  export { wrapIn }
1733
1795
 
1796
+ export { WrapInListGetAttrs }
1797
+
1798
+ export { WrapOptions }
1799
+
1734
1800
  export { wrappingInputRule }
1735
1801
 
1736
1802
  export { }
@@ -49,7 +49,7 @@ img.ProseMirror-separator {
49
49
 
50
50
  /* ../pm/src/view/style/prosemirror.css */
51
51
 
52
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.1/node_modules/prosemirror-flat-list/dist/style.css */
52
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.2/node_modules/prosemirror-flat-list/dist/style.css */
53
53
  .prosemirror-flat-list {
54
54
  padding: 0;
55
55
  margin-top: 0;
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.1/node_modules/prosemirror-flat-list/dist/style.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.2/node_modules/prosemirror-flat-list/dist/style.css */
2
2
  .prosemirror-flat-list {
3
3
  padding: 0;
4
4
  margin-top: 0;
@@ -1,12 +1,27 @@
1
1
  export { addMark } from './_tsup-dts-rollup';
2
+ export { AddMarkOptions } from './_tsup-dts-rollup';
2
3
  export { expandMark } from './_tsup-dts-rollup';
4
+ export { ExpandMarkOptions } from './_tsup-dts-rollup';
3
5
  export { insertNode } from './_tsup-dts-rollup';
6
+ export { InsertNodeOptions } from './_tsup-dts-rollup';
4
7
  export { removeMark } from './_tsup-dts-rollup';
8
+ export { RemoveMarkOptions } from './_tsup-dts-rollup';
5
9
  export { removeNode } from './_tsup-dts-rollup';
10
+ export { RemoveNodeOptions } from './_tsup-dts-rollup';
6
11
  export { setBlockType } from './_tsup-dts-rollup';
12
+ export { SetBlockTypeOptions } from './_tsup-dts-rollup';
7
13
  export { setNodeAttrs } from './_tsup-dts-rollup';
14
+ export { SetNodeAttrsOptions } from './_tsup-dts-rollup';
8
15
  export { toggleMark } from './_tsup-dts-rollup';
16
+ export { ToggleMarkOptions } from './_tsup-dts-rollup';
9
17
  export { toggleNode } from './_tsup-dts-rollup';
18
+ export { ToggleNodeOptions } from './_tsup-dts-rollup';
19
+ export { unsetBlockType } from './_tsup-dts-rollup';
20
+ export { UnsetBlockTypeOptions } from './_tsup-dts-rollup';
21
+ export { unsetMark } from './_tsup-dts-rollup';
22
+ export { UnsetMarkOptions } from './_tsup-dts-rollup';
23
+ export { wrap } from './_tsup-dts-rollup';
24
+ export { WrapOptions } from './_tsup-dts-rollup';
10
25
  export { MarkBuilder } from './_tsup-dts-rollup';
11
26
  export { NodeBuilder } from './_tsup-dts-rollup';
12
27
  export { Editor } from './_tsup-dts-rollup';
@@ -58,11 +73,11 @@ export { MountHandler } from './_tsup-dts-rollup';
58
73
  export { UnmountHandler } from './_tsup-dts-rollup';
59
74
  export { UpdateHandler } from './_tsup-dts-rollup';
60
75
  export { defineHistory } from './_tsup-dts-rollup';
61
- export { defineBaseKeymap } from './_tsup-dts-rollup';
62
76
  export { defineKeymap } from './_tsup-dts-rollup';
63
77
  export { keymapFacet } from './_tsup-dts-rollup';
64
78
  export { Keymap } from './_tsup-dts-rollup';
65
79
  export { KeymapPayload } from './_tsup-dts-rollup';
80
+ export { defineBaseKeymap } from './_tsup-dts-rollup';
66
81
  export { defineMarkAttr } from './_tsup-dts-rollup';
67
82
  export { defineMarkSpec } from './_tsup-dts-rollup';
68
83
  export { MarkAttrOptions } from './_tsup-dts-rollup';
@@ -110,6 +125,7 @@ export { isApple } from './_tsup-dts-rollup';
110
125
  export { _getId } from './_tsup-dts-rollup';
111
126
  export { getMarkType } from './_tsup-dts-rollup';
112
127
  export { getNodeType } from './_tsup-dts-rollup';
128
+ export { isAtBlockStart } from './_tsup-dts-rollup';
113
129
  export { isInCodeBlock } from './_tsup-dts-rollup';
114
130
  export { isMarkAbsent } from './_tsup-dts-rollup';
115
131
  export { isMarkActive } from './_tsup-dts-rollup';
@@ -1,6 +1,6 @@
1
- export { defineHeadingSpec } from './_tsup-dts-rollup';
2
- export { defineHeadingKeymap } from './_tsup-dts-rollup';
3
- export { defineHeadingInputRule } from './_tsup-dts-rollup';
4
- export { defineHeadingCommands } from './_tsup-dts-rollup';
5
1
  export { defineHeading } from './_tsup-dts-rollup';
2
+ export { defineHeadingCommands } from './_tsup-dts-rollup';
3
+ export { defineHeadingInputRule } from './_tsup-dts-rollup';
4
+ export { defineHeadingKeymap } from './_tsup-dts-rollup';
5
+ export { defineHeadingSpec } from './_tsup-dts-rollup';
6
6
  export { HeadingAttrs } from './_tsup-dts-rollup';
@@ -1,7 +1,13 @@
1
1
  export { defineListSpec } from './_tsup-dts-rollup';
2
2
  export { defineListPlugins } from './_tsup-dts-rollup';
3
- export { defineListKeymap } from './_tsup-dts-rollup';
4
3
  export { defineListInputRules } from './_tsup-dts-rollup';
5
- export { defineListCommands } from './_tsup-dts-rollup';
6
4
  export { defineList } from './_tsup-dts-rollup';
7
5
  export { ListDOMSerializer } from './_tsup-dts-rollup';
6
+ export { DedentListOptions } from './_tsup-dts-rollup';
7
+ export { IndentListOptions } from './_tsup-dts-rollup';
8
+ export { ListAttributes } from './_tsup-dts-rollup';
9
+ export { ToggleCollapsedOptions } from './_tsup-dts-rollup';
10
+ export { UnwrapListOptions } from './_tsup-dts-rollup';
11
+ export { WrapInListGetAttrs } from './_tsup-dts-rollup';
12
+ export { defineListCommands } from './_tsup-dts-rollup';
13
+ export { defineListKeymap } 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.4",
4
+ "version": "0.9.6",
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.13",
501
- "@prosekit/extensions": "0.7.1",
502
- "@prosekit/core": "0.7.1",
503
- "@prosekit/lit": "0.3.7",
500
+ "@prosekit/basic": "0.3.14",
501
+ "@prosekit/core": "0.7.2",
502
+ "@prosekit/extensions": "0.7.2",
503
+ "@prosekit/lit": "0.3.9",
504
504
  "@prosekit/pm": "0.1.5",
505
- "@prosekit/react": "0.3.11",
506
- "@prosekit/preact": "0.3.10",
507
- "@prosekit/solid": "0.3.9",
508
- "@prosekit/vue": "0.3.10",
509
- "@prosekit/svelte": "0.4.1",
510
- "@prosekit/web": "0.2.3"
505
+ "@prosekit/preact": "0.3.12",
506
+ "@prosekit/react": "0.3.13",
507
+ "@prosekit/solid": "0.3.11",
508
+ "@prosekit/svelte": "0.4.3",
509
+ "@prosekit/vue": "0.3.12",
510
+ "@prosekit/web": "0.3.1"
511
511
  },
512
512
  "peerDependencies": {
513
513
  "preact": ">= 10.11.0",