prosekit 0.9.5 → 0.9.7
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.
- package/dist/_tsup-dts-rollup.d.ts +69 -0
- package/dist/basic/style.css +14 -7
- package/dist/basic/typography.css +23 -23
- package/dist/extensions/list/style.css +9 -5
- package/dist/extensions/placeholder/style.css +1 -1
- package/dist/pm/view/style/prosemirror.css +4 -1
- package/dist/prosekit-core.d.ts +18 -1
- package/dist/prosekit-extensions-heading.d.ts +4 -4
- package/dist/prosekit-extensions-list.d.ts +8 -2
- package/package.json +12 -12
|
@@ -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';
|
|
@@ -275,9 +278,11 @@ import { getNodeType } from '@prosekit/core';
|
|
|
275
278
|
import { HeadingAttrs } from '@prosekit/extensions/heading';
|
|
276
279
|
import { HighlightParser } from '@prosekit/extensions/code-block';
|
|
277
280
|
import { history as history_2 } from '@prosekit/pm/history';
|
|
281
|
+
import { HistoryOptions } from '@prosekit/core';
|
|
278
282
|
import { htmlFromJSON } from '@prosekit/core';
|
|
279
283
|
import { htmlFromNode } from '@prosekit/core';
|
|
280
284
|
import { ImageAttrs } from '@prosekit/extensions/image';
|
|
285
|
+
import { IndentListOptions } from '@prosekit/extensions/list';
|
|
281
286
|
import { InlinePopover } from '@prosekit/lit/inline-popover';
|
|
282
287
|
import { InlinePopover as InlinePopover_alias_1 } from '@prosekit/preact/inline-popover';
|
|
283
288
|
import { InlinePopover as InlinePopover_alias_2 } from '@prosekit/react/inline-popover';
|
|
@@ -289,9 +294,11 @@ import { InlinePopoverProps } from '@prosekit/web/inline-popover';
|
|
|
289
294
|
import { InputRule } from '@prosekit/pm/inputrules';
|
|
290
295
|
import { inputRules } from '@prosekit/pm/inputrules';
|
|
291
296
|
import { insertNode } from '@prosekit/core';
|
|
297
|
+
import { InsertNodeOptions } from '@prosekit/core';
|
|
292
298
|
import { insertPoint } from '@prosekit/pm/transform';
|
|
293
299
|
import { isAllSelection } from '@prosekit/core';
|
|
294
300
|
import { isApple } from '@prosekit/core';
|
|
301
|
+
import { isAtBlockStart } from '@prosekit/core';
|
|
295
302
|
import { isInCodeBlock } from '@prosekit/core';
|
|
296
303
|
import { isMark } from '@prosekit/core';
|
|
297
304
|
import { isMarkAbsent } from '@prosekit/core';
|
|
@@ -321,6 +328,7 @@ import { lift } from '@prosekit/pm/commands';
|
|
|
321
328
|
import { liftEmptyBlock } from '@prosekit/pm/commands';
|
|
322
329
|
import { liftTarget } from '@prosekit/pm/transform';
|
|
323
330
|
import { LinkAttrs } from '@prosekit/extensions/link';
|
|
331
|
+
import { ListAttributes } from '@prosekit/extensions/list';
|
|
324
332
|
import { ListDOMSerializer } from '@prosekit/extensions/list';
|
|
325
333
|
import { macBaseKeymap } from '@prosekit/pm/commands';
|
|
326
334
|
import { Mappable } from '@prosekit/pm/transform';
|
|
@@ -426,9 +434,11 @@ import { redo } from '@prosekit/pm/history';
|
|
|
426
434
|
import { redoDepth } from '@prosekit/pm/history';
|
|
427
435
|
import { redoNoScroll } from '@prosekit/pm/history';
|
|
428
436
|
import { removeMark } from '@prosekit/core';
|
|
437
|
+
import { RemoveMarkOptions } from '@prosekit/core';
|
|
429
438
|
import { RemoveMarkStep } from '@prosekit/pm/transform';
|
|
430
439
|
import { removeNode } from '@prosekit/core';
|
|
431
440
|
import { RemoveNodeMarkStep } from '@prosekit/pm/transform';
|
|
441
|
+
import { RemoveNodeOptions } from '@prosekit/core';
|
|
432
442
|
import { ReplaceAroundStep } from '@prosekit/pm/transform';
|
|
433
443
|
import { ReplaceError } from '@prosekit/pm/model';
|
|
434
444
|
import { ReplaceStep } from '@prosekit/pm/transform';
|
|
@@ -466,7 +476,9 @@ import { selectTextblockEnd } from '@prosekit/pm/commands';
|
|
|
466
476
|
import { selectTextblockStart } from '@prosekit/pm/commands';
|
|
467
477
|
import { setBlockType } from '@prosekit/core';
|
|
468
478
|
import { setBlockType as setBlockType_alias_1 } from '@prosekit/pm/commands';
|
|
479
|
+
import { SetBlockTypeOptions } from '@prosekit/core';
|
|
469
480
|
import { setNodeAttrs } from '@prosekit/core';
|
|
481
|
+
import { SetNodeAttrsOptions } from '@prosekit/core';
|
|
470
482
|
import { setTextAlign } from '@prosekit/extensions/text-align';
|
|
471
483
|
import { ShikiBundledLanguage } from '@prosekit/extensions/code-block';
|
|
472
484
|
import { ShikiBundledLanguageInfo } from '@prosekit/extensions/code-block';
|
|
@@ -498,9 +510,12 @@ import { TextBlockEnterRuleOptions } from '@prosekit/extensions/enter-rule';
|
|
|
498
510
|
import { textblockTypeInputRule } from '@prosekit/pm/inputrules';
|
|
499
511
|
import { TextInputHandler } from '@prosekit/core';
|
|
500
512
|
import { TextSelection } from '@prosekit/pm/state';
|
|
513
|
+
import { ToggleCollapsedOptions } from '@prosekit/extensions/list';
|
|
501
514
|
import { toggleMark } from '@prosekit/core';
|
|
502
515
|
import { toggleMark as toggleMark_alias_1 } from '@prosekit/pm/commands';
|
|
516
|
+
import { ToggleMarkOptions } from '@prosekit/core';
|
|
503
517
|
import { toggleNode } from '@prosekit/core';
|
|
518
|
+
import { ToggleNodeOptions } from '@prosekit/core';
|
|
504
519
|
import { TooltipContent } from '@prosekit/lit/tooltip';
|
|
505
520
|
import { TooltipContent as TooltipContent_alias_1 } from '@prosekit/preact/tooltip';
|
|
506
521
|
import { TooltipContent as TooltipContent_alias_2 } from '@prosekit/react/tooltip';
|
|
@@ -536,6 +551,11 @@ import { undoNoScroll } from '@prosekit/pm/history';
|
|
|
536
551
|
import { union } from '@prosekit/core';
|
|
537
552
|
import { UnionExtension } from '@prosekit/core';
|
|
538
553
|
import { UnmountHandler } from '@prosekit/core';
|
|
554
|
+
import { unsetBlockType } from '@prosekit/core';
|
|
555
|
+
import { UnsetBlockTypeOptions } from '@prosekit/core';
|
|
556
|
+
import { unsetMark } from '@prosekit/core';
|
|
557
|
+
import { UnsetMarkOptions } from '@prosekit/core';
|
|
558
|
+
import { UnwrapListOptions } from '@prosekit/extensions/list';
|
|
539
559
|
import { UpdateHandler } from '@prosekit/core';
|
|
540
560
|
import { useDocChange } from '@prosekit/preact';
|
|
541
561
|
import { useDocChange as useDocChange_alias_1 } from '@prosekit/react';
|
|
@@ -572,11 +592,16 @@ import { VueNodeViewOptions } from '@prosekit/vue';
|
|
|
572
592
|
import { VueNodeViewProps } from '@prosekit/vue';
|
|
573
593
|
import { withPriority } from '@prosekit/core';
|
|
574
594
|
import { withSkipCodeBlock } from '@prosekit/core';
|
|
595
|
+
import { wrap } from '@prosekit/core';
|
|
575
596
|
import { wrapIn } from '@prosekit/pm/commands';
|
|
597
|
+
import { WrapInListGetAttrs } from '@prosekit/extensions/list';
|
|
598
|
+
import { WrapOptions } from '@prosekit/core';
|
|
576
599
|
import { wrappingInputRule } from '@prosekit/pm/inputrules';
|
|
577
600
|
|
|
578
601
|
export { addMark }
|
|
579
602
|
|
|
603
|
+
export { AddMarkOptions }
|
|
604
|
+
|
|
580
605
|
export { AddMarkStep }
|
|
581
606
|
|
|
582
607
|
export { AddNodeMarkStep }
|
|
@@ -747,6 +772,8 @@ export { DecorationSet }
|
|
|
747
772
|
|
|
748
773
|
export { DecorationSource }
|
|
749
774
|
|
|
775
|
+
export { DedentListOptions }
|
|
776
|
+
|
|
750
777
|
export declare namespace default_alias {
|
|
751
778
|
let plugins: {
|
|
752
779
|
'postcss-nesting': {};
|
|
@@ -1103,6 +1130,8 @@ export { exitCode }
|
|
|
1103
1130
|
|
|
1104
1131
|
export { expandMark }
|
|
1105
1132
|
|
|
1133
|
+
export { ExpandMarkOptions }
|
|
1134
|
+
|
|
1106
1135
|
export { Extension }
|
|
1107
1136
|
|
|
1108
1137
|
export { ExtensionTyping }
|
|
@@ -1137,12 +1166,16 @@ export { HighlightParser }
|
|
|
1137
1166
|
|
|
1138
1167
|
export { history_2 as history }
|
|
1139
1168
|
|
|
1169
|
+
export { HistoryOptions }
|
|
1170
|
+
|
|
1140
1171
|
export { htmlFromJSON }
|
|
1141
1172
|
|
|
1142
1173
|
export { htmlFromNode }
|
|
1143
1174
|
|
|
1144
1175
|
export { ImageAttrs }
|
|
1145
1176
|
|
|
1177
|
+
export { IndentListOptions }
|
|
1178
|
+
|
|
1146
1179
|
export { InlinePopover }
|
|
1147
1180
|
|
|
1148
1181
|
export { InlinePopover_alias_1 }
|
|
@@ -1165,12 +1198,16 @@ export { inputRules }
|
|
|
1165
1198
|
|
|
1166
1199
|
export { insertNode }
|
|
1167
1200
|
|
|
1201
|
+
export { InsertNodeOptions }
|
|
1202
|
+
|
|
1168
1203
|
export { insertPoint }
|
|
1169
1204
|
|
|
1170
1205
|
export { isAllSelection }
|
|
1171
1206
|
|
|
1172
1207
|
export { isApple }
|
|
1173
1208
|
|
|
1209
|
+
export { isAtBlockStart }
|
|
1210
|
+
|
|
1174
1211
|
export { isInCodeBlock }
|
|
1175
1212
|
|
|
1176
1213
|
export { isMark }
|
|
@@ -1229,6 +1266,8 @@ export { liftTarget }
|
|
|
1229
1266
|
|
|
1230
1267
|
export { LinkAttrs }
|
|
1231
1268
|
|
|
1269
|
+
export { ListAttributes }
|
|
1270
|
+
|
|
1232
1271
|
export { ListDOMSerializer }
|
|
1233
1272
|
|
|
1234
1273
|
export { macBaseKeymap }
|
|
@@ -1437,12 +1476,16 @@ export { redoNoScroll }
|
|
|
1437
1476
|
|
|
1438
1477
|
export { removeMark }
|
|
1439
1478
|
|
|
1479
|
+
export { RemoveMarkOptions }
|
|
1480
|
+
|
|
1440
1481
|
export { RemoveMarkStep }
|
|
1441
1482
|
|
|
1442
1483
|
export { removeNode }
|
|
1443
1484
|
|
|
1444
1485
|
export { RemoveNodeMarkStep }
|
|
1445
1486
|
|
|
1487
|
+
export { RemoveNodeOptions }
|
|
1488
|
+
|
|
1446
1489
|
export { ReplaceAroundStep }
|
|
1447
1490
|
|
|
1448
1491
|
export { ReplaceError }
|
|
@@ -1517,8 +1560,12 @@ export { setBlockType }
|
|
|
1517
1560
|
|
|
1518
1561
|
export { setBlockType_alias_1 }
|
|
1519
1562
|
|
|
1563
|
+
export { SetBlockTypeOptions }
|
|
1564
|
+
|
|
1520
1565
|
export { setNodeAttrs }
|
|
1521
1566
|
|
|
1567
|
+
export { SetNodeAttrsOptions }
|
|
1568
|
+
|
|
1522
1569
|
export { setTextAlign }
|
|
1523
1570
|
|
|
1524
1571
|
export { ShikiBundledLanguage }
|
|
@@ -1581,12 +1628,18 @@ export { TextInputHandler }
|
|
|
1581
1628
|
|
|
1582
1629
|
export { TextSelection }
|
|
1583
1630
|
|
|
1631
|
+
export { ToggleCollapsedOptions }
|
|
1632
|
+
|
|
1584
1633
|
export { toggleMark }
|
|
1585
1634
|
|
|
1586
1635
|
export { toggleMark_alias_1 }
|
|
1587
1636
|
|
|
1637
|
+
export { ToggleMarkOptions }
|
|
1638
|
+
|
|
1588
1639
|
export { toggleNode }
|
|
1589
1640
|
|
|
1641
|
+
export { ToggleNodeOptions }
|
|
1642
|
+
|
|
1590
1643
|
export { TooltipContent }
|
|
1591
1644
|
|
|
1592
1645
|
export { TooltipContent_alias_1 }
|
|
@@ -1657,6 +1710,16 @@ export { UnionExtension }
|
|
|
1657
1710
|
|
|
1658
1711
|
export { UnmountHandler }
|
|
1659
1712
|
|
|
1713
|
+
export { unsetBlockType }
|
|
1714
|
+
|
|
1715
|
+
export { UnsetBlockTypeOptions }
|
|
1716
|
+
|
|
1717
|
+
export { unsetMark }
|
|
1718
|
+
|
|
1719
|
+
export { UnsetMarkOptions }
|
|
1720
|
+
|
|
1721
|
+
export { UnwrapListOptions }
|
|
1722
|
+
|
|
1660
1723
|
export { UpdateHandler }
|
|
1661
1724
|
|
|
1662
1725
|
export { useDocChange }
|
|
@@ -1729,8 +1792,14 @@ export { withPriority }
|
|
|
1729
1792
|
|
|
1730
1793
|
export { withSkipCodeBlock }
|
|
1731
1794
|
|
|
1795
|
+
export { wrap }
|
|
1796
|
+
|
|
1732
1797
|
export { wrapIn }
|
|
1733
1798
|
|
|
1799
|
+
export { WrapInListGetAttrs }
|
|
1800
|
+
|
|
1801
|
+
export { WrapOptions }
|
|
1802
|
+
|
|
1734
1803
|
export { wrappingInputRule }
|
|
1735
1804
|
|
|
1736
1805
|
export { }
|
package/dist/basic/style.css
CHANGED
|
@@ -37,7 +37,10 @@ li.ProseMirror-selectednode {
|
|
|
37
37
|
li.ProseMirror-selectednode:after {
|
|
38
38
|
content: "";
|
|
39
39
|
position: absolute;
|
|
40
|
-
|
|
40
|
+
left: -32px;
|
|
41
|
+
right: -2px;
|
|
42
|
+
top: -2px;
|
|
43
|
+
bottom: -2px;
|
|
41
44
|
border: 2px solid #8cf;
|
|
42
45
|
pointer-events: none;
|
|
43
46
|
}
|
|
@@ -49,10 +52,11 @@ img.ProseMirror-separator {
|
|
|
49
52
|
|
|
50
53
|
/* ../pm/src/view/style/prosemirror.css */
|
|
51
54
|
|
|
52
|
-
/* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.
|
|
55
|
+
/* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.2/node_modules/prosemirror-flat-list/dist/style.css */
|
|
53
56
|
.prosemirror-flat-list {
|
|
54
57
|
padding: 0;
|
|
55
58
|
margin-top: 0;
|
|
59
|
+
margin-bottom: 0;
|
|
56
60
|
margin-left: 32px;
|
|
57
61
|
margin-bottom: 0;
|
|
58
62
|
position: relative;
|
|
@@ -65,7 +69,10 @@ img.ProseMirror-separator {
|
|
|
65
69
|
.prosemirror-flat-list.ProseMirror-selectednode:after {
|
|
66
70
|
content: "";
|
|
67
71
|
position: absolute;
|
|
68
|
-
|
|
72
|
+
left: -32px;
|
|
73
|
+
right: -2px;
|
|
74
|
+
top: -2px;
|
|
75
|
+
bottom: -2px;
|
|
69
76
|
border: 2px solid #8cf;
|
|
70
77
|
pointer-events: none;
|
|
71
78
|
}
|
|
@@ -78,7 +85,7 @@ img.ProseMirror-separator {
|
|
|
78
85
|
.prosemirror-flat-list[data-list-kind=ordered] > * {
|
|
79
86
|
contain: style;
|
|
80
87
|
}
|
|
81
|
-
.prosemirror-flat-list[data-list-kind=ordered]
|
|
88
|
+
.prosemirror-flat-list[data-list-kind=ordered]::before {
|
|
82
89
|
position: absolute;
|
|
83
90
|
right: 100%;
|
|
84
91
|
font-variant-numeric: tabular-nums;
|
|
@@ -116,10 +123,10 @@ img.ProseMirror-separator {
|
|
|
116
123
|
width: 1.5em;
|
|
117
124
|
width: 1lh;
|
|
118
125
|
}
|
|
119
|
-
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker
|
|
126
|
+
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker::before {
|
|
120
127
|
content: "\23f7";
|
|
121
128
|
}
|
|
122
|
-
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable][data-list-collapsed] > .list-marker
|
|
129
|
+
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable][data-list-collapsed] > .list-marker::before {
|
|
123
130
|
content: "\23f5";
|
|
124
131
|
}
|
|
125
132
|
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable] > .list-marker {
|
|
@@ -171,7 +178,7 @@ img.ProseMirror-separator {
|
|
|
171
178
|
}
|
|
172
179
|
|
|
173
180
|
/* ../extensions/src/placeholder/style.css */
|
|
174
|
-
.prosekit-placeholder
|
|
181
|
+
.prosekit-placeholder::before {
|
|
175
182
|
position: absolute;
|
|
176
183
|
opacity: 30%;
|
|
177
184
|
pointer-events: none;
|
|
@@ -42,23 +42,23 @@ div.ProseMirror ul,
|
|
|
42
42
|
div.ProseMirror ol,
|
|
43
43
|
div.ProseMirror pre {
|
|
44
44
|
margin: 0;
|
|
45
|
-
padding: .5rem 0;
|
|
45
|
+
padding: 0.5rem 0;
|
|
46
46
|
line-height: 1.5;
|
|
47
47
|
}
|
|
48
48
|
div.ProseMirror blockquote {
|
|
49
49
|
padding-left: 1em;
|
|
50
|
-
border-left: .25em solid hsla(0, 0%, 60%, .4);
|
|
50
|
+
border-left: 0.25em solid hsla(0, 0%, 60%, 0.4);
|
|
51
51
|
}
|
|
52
52
|
div.ProseMirror h1 {
|
|
53
53
|
margin: 1rem 0;
|
|
54
54
|
font-size: 2.25em;
|
|
55
55
|
}
|
|
56
56
|
div.ProseMirror h2 {
|
|
57
|
-
margin: 1.75em 0 .5em;
|
|
57
|
+
margin: 1.75em 0 0.5em;
|
|
58
58
|
font-size: 1.75em;
|
|
59
59
|
}
|
|
60
60
|
div.ProseMirror h3 {
|
|
61
|
-
margin: 1.5em 0 .5em;
|
|
61
|
+
margin: 1.5em 0 0.5em;
|
|
62
62
|
font-size: 1.375em;
|
|
63
63
|
}
|
|
64
64
|
div.ProseMirror h4 {
|
|
@@ -66,26 +66,26 @@ div.ProseMirror h4 {
|
|
|
66
66
|
font-size: 1.125em;
|
|
67
67
|
}
|
|
68
68
|
div.ProseMirror h5 {
|
|
69
|
-
margin: .5em 0;
|
|
69
|
+
margin: 0.5em 0;
|
|
70
70
|
}
|
|
71
71
|
div.ProseMirror h6 {
|
|
72
|
-
opacity: .8;
|
|
72
|
+
opacity: 0.8;
|
|
73
73
|
}
|
|
74
74
|
div.ProseMirror img,
|
|
75
75
|
div.ProseMirror video {
|
|
76
|
-
margin: .4em 0;
|
|
76
|
+
margin: 0.4em 0;
|
|
77
77
|
width: min-content;
|
|
78
78
|
max-width: 100%;
|
|
79
79
|
}
|
|
80
80
|
div.ProseMirror code {
|
|
81
|
-
font-size: .875em;
|
|
81
|
+
font-size: 0.875em;
|
|
82
82
|
font-weight: 600;
|
|
83
83
|
}
|
|
84
84
|
div.ProseMirror pre {
|
|
85
|
-
margin: .5rem 0;
|
|
86
|
-
padding: 2rem;
|
|
85
|
+
margin: 0.5rem 0;
|
|
86
|
+
padding: 2rem 2rem;
|
|
87
87
|
overflow-x: auto;
|
|
88
|
-
border-radius: .375rem;
|
|
88
|
+
border-radius: 0.375rem;
|
|
89
89
|
}
|
|
90
90
|
div.ProseMirror pre,
|
|
91
91
|
div.ProseMirror code {
|
|
@@ -105,33 +105,33 @@ div.ProseMirror hr {
|
|
|
105
105
|
div.ProseMirror .prosemirror-flat-list {
|
|
106
106
|
line-height: 1.5;
|
|
107
107
|
}
|
|
108
|
-
div.ProseMirror .prosemirror-flat-list
|
|
108
|
+
div.ProseMirror .prosemirror-flat-list::before,
|
|
109
109
|
div.ProseMirror .prosemirror-flat-list > .list-marker {
|
|
110
|
-
top: .5rem;
|
|
110
|
+
top: 0.5rem;
|
|
111
111
|
}
|
|
112
|
-
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1)
|
|
112
|
+
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1)::before,
|
|
113
113
|
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1) > .list-marker {
|
|
114
114
|
top: 1em;
|
|
115
115
|
}
|
|
116
|
-
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2)
|
|
116
|
+
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2)::before,
|
|
117
117
|
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2) > .list-marker {
|
|
118
|
-
top: .6em;
|
|
118
|
+
top: 0.6em;
|
|
119
119
|
}
|
|
120
|
-
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3)
|
|
120
|
+
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3)::before,
|
|
121
121
|
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3) > .list-marker {
|
|
122
|
-
top: .25em;
|
|
122
|
+
top: 0.25em;
|
|
123
123
|
}
|
|
124
|
-
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h4)
|
|
124
|
+
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h4)::before,
|
|
125
125
|
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h4) > .list-marker {
|
|
126
126
|
top: 0;
|
|
127
127
|
}
|
|
128
|
-
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5)
|
|
128
|
+
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5)::before,
|
|
129
129
|
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5) > .list-marker {
|
|
130
|
-
top:
|
|
130
|
+
top: -0.1em;
|
|
131
131
|
}
|
|
132
|
-
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6)
|
|
132
|
+
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6)::before,
|
|
133
133
|
div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6) > .list-marker {
|
|
134
|
-
top:
|
|
134
|
+
top: -0.1em;
|
|
135
135
|
}
|
|
136
136
|
div.ProseMirror .ProseMirror-selectednode {
|
|
137
137
|
z-index: calc(infinity);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.
|
|
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;
|
|
5
|
+
margin-bottom: 0;
|
|
5
6
|
margin-left: 32px;
|
|
6
7
|
margin-bottom: 0;
|
|
7
8
|
position: relative;
|
|
@@ -14,7 +15,10 @@
|
|
|
14
15
|
.prosemirror-flat-list.ProseMirror-selectednode:after {
|
|
15
16
|
content: "";
|
|
16
17
|
position: absolute;
|
|
17
|
-
|
|
18
|
+
left: -32px;
|
|
19
|
+
right: -2px;
|
|
20
|
+
top: -2px;
|
|
21
|
+
bottom: -2px;
|
|
18
22
|
border: 2px solid #8cf;
|
|
19
23
|
pointer-events: none;
|
|
20
24
|
}
|
|
@@ -27,7 +31,7 @@
|
|
|
27
31
|
.prosemirror-flat-list[data-list-kind=ordered] > * {
|
|
28
32
|
contain: style;
|
|
29
33
|
}
|
|
30
|
-
.prosemirror-flat-list[data-list-kind=ordered]
|
|
34
|
+
.prosemirror-flat-list[data-list-kind=ordered]::before {
|
|
31
35
|
position: absolute;
|
|
32
36
|
right: 100%;
|
|
33
37
|
font-variant-numeric: tabular-nums;
|
|
@@ -65,10 +69,10 @@
|
|
|
65
69
|
width: 1.5em;
|
|
66
70
|
width: 1lh;
|
|
67
71
|
}
|
|
68
|
-
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker
|
|
72
|
+
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker::before {
|
|
69
73
|
content: "\23f7";
|
|
70
74
|
}
|
|
71
|
-
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable][data-list-collapsed] > .list-marker
|
|
75
|
+
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable][data-list-collapsed] > .list-marker::before {
|
|
72
76
|
content: "\23f5";
|
|
73
77
|
}
|
|
74
78
|
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable] > .list-marker {
|
|
@@ -37,7 +37,10 @@ li.ProseMirror-selectednode {
|
|
|
37
37
|
li.ProseMirror-selectednode:after {
|
|
38
38
|
content: "";
|
|
39
39
|
position: absolute;
|
|
40
|
-
|
|
40
|
+
left: -32px;
|
|
41
|
+
right: -2px;
|
|
42
|
+
top: -2px;
|
|
43
|
+
bottom: -2px;
|
|
41
44
|
border: 2px solid #8cf;
|
|
42
45
|
pointer-events: none;
|
|
43
46
|
}
|
package/dist/prosekit-core.d.ts
CHANGED
|
@@ -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,12 @@ 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 {
|
|
76
|
+
export { HistoryOptions } from './_tsup-dts-rollup';
|
|
62
77
|
export { defineKeymap } from './_tsup-dts-rollup';
|
|
63
78
|
export { keymapFacet } from './_tsup-dts-rollup';
|
|
64
79
|
export { Keymap } from './_tsup-dts-rollup';
|
|
65
80
|
export { KeymapPayload } from './_tsup-dts-rollup';
|
|
81
|
+
export { defineBaseKeymap } from './_tsup-dts-rollup';
|
|
66
82
|
export { defineMarkAttr } from './_tsup-dts-rollup';
|
|
67
83
|
export { defineMarkSpec } from './_tsup-dts-rollup';
|
|
68
84
|
export { MarkAttrOptions } from './_tsup-dts-rollup';
|
|
@@ -110,6 +126,7 @@ export { isApple } from './_tsup-dts-rollup';
|
|
|
110
126
|
export { _getId } from './_tsup-dts-rollup';
|
|
111
127
|
export { getMarkType } from './_tsup-dts-rollup';
|
|
112
128
|
export { getNodeType } from './_tsup-dts-rollup';
|
|
129
|
+
export { isAtBlockStart } from './_tsup-dts-rollup';
|
|
113
130
|
export { isInCodeBlock } from './_tsup-dts-rollup';
|
|
114
131
|
export { isMarkAbsent } from './_tsup-dts-rollup';
|
|
115
132
|
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
|
+
"version": "0.9.7",
|
|
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.
|
|
501
|
-
"@prosekit/core": "0.7.
|
|
502
|
-
"@prosekit/
|
|
503
|
-
"@prosekit/
|
|
504
|
-
"@prosekit/pm": "0.1.
|
|
505
|
-
"@prosekit/
|
|
506
|
-
"@prosekit/
|
|
507
|
-
"@prosekit/
|
|
508
|
-
"@prosekit/
|
|
509
|
-
"@prosekit/
|
|
510
|
-
"@prosekit/
|
|
500
|
+
"@prosekit/basic": "0.3.15",
|
|
501
|
+
"@prosekit/core": "0.7.3",
|
|
502
|
+
"@prosekit/extensions": "0.7.3",
|
|
503
|
+
"@prosekit/lit": "0.3.10",
|
|
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"
|
|
511
511
|
},
|
|
512
512
|
"peerDependencies": {
|
|
513
513
|
"preact": ">= 10.11.0",
|