prosekit 0.9.6 → 0.9.8
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 +3 -0
- package/dist/basic/style.css +13 -6
- package/dist/basic/typography.css +23 -23
- package/dist/extensions/list/style.css +8 -4
- package/dist/extensions/placeholder/style.css +1 -1
- package/dist/pm/view/style/prosemirror.css +4 -1
- package/dist/prosekit-core.d.ts +1 -0
- package/package.json +12 -12
|
@@ -278,6 +278,7 @@ import { getNodeType } from '@prosekit/core';
|
|
|
278
278
|
import { HeadingAttrs } from '@prosekit/extensions/heading';
|
|
279
279
|
import { HighlightParser } from '@prosekit/extensions/code-block';
|
|
280
280
|
import { history as history_2 } from '@prosekit/pm/history';
|
|
281
|
+
import { HistoryOptions } from '@prosekit/core';
|
|
281
282
|
import { htmlFromJSON } from '@prosekit/core';
|
|
282
283
|
import { htmlFromNode } from '@prosekit/core';
|
|
283
284
|
import { ImageAttrs } from '@prosekit/extensions/image';
|
|
@@ -1165,6 +1166,8 @@ export { HighlightParser }
|
|
|
1165
1166
|
|
|
1166
1167
|
export { history_2 as history }
|
|
1167
1168
|
|
|
1169
|
+
export { HistoryOptions }
|
|
1170
|
+
|
|
1168
1171
|
export { htmlFromJSON }
|
|
1169
1172
|
|
|
1170
1173
|
export { htmlFromNode }
|
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
|
}
|
|
@@ -53,6 +56,7 @@ img.ProseMirror-separator {
|
|
|
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);
|
|
@@ -2,6 +2,7 @@
|
|
|
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
|
@@ -73,6 +73,7 @@ export { MountHandler } from './_tsup-dts-rollup';
|
|
|
73
73
|
export { UnmountHandler } from './_tsup-dts-rollup';
|
|
74
74
|
export { UpdateHandler } from './_tsup-dts-rollup';
|
|
75
75
|
export { defineHistory } from './_tsup-dts-rollup';
|
|
76
|
+
export { HistoryOptions } from './_tsup-dts-rollup';
|
|
76
77
|
export { defineKeymap } from './_tsup-dts-rollup';
|
|
77
78
|
export { keymapFacet } from './_tsup-dts-rollup';
|
|
78
79
|
export { Keymap } 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.8",
|
|
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/extensions": "0.7.
|
|
503
|
-
"@prosekit/lit": "0.3.
|
|
504
|
-
"@prosekit/pm": "0.1.
|
|
505
|
-
"@prosekit/preact": "0.3.
|
|
506
|
-
"@prosekit/react": "0.3.
|
|
507
|
-
"@prosekit/solid": "0.3.
|
|
508
|
-
"@prosekit/svelte": "0.4.
|
|
509
|
-
"@prosekit/vue": "0.3.
|
|
510
|
-
"@prosekit/web": "0.3.
|
|
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"
|
|
511
511
|
},
|
|
512
512
|
"peerDependencies": {
|
|
513
513
|
"preact": ">= 10.11.0",
|