prosekit 0.14.2 → 0.15.0
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/basic/style.css +57 -51
- package/dist/basic/typography.css +4 -7
- package/dist/extensions/list/style.css +57 -51
- package/dist/prosekit-extensions-drop-indicator.d.ts +1 -0
- package/dist/prosekit-extensions-drop-indicator.js +1 -0
- package/dist/prosekit-lit-drop-indicator.d.ts +1 -0
- package/dist/prosekit-lit-drop-indicator.js +1 -0
- package/dist/prosekit-preact-drop-indicator.d.ts +1 -0
- package/dist/prosekit-preact-drop-indicator.js +1 -0
- package/dist/prosekit-react-drop-indicator.d.ts +1 -0
- package/dist/prosekit-react-drop-indicator.js +1 -0
- package/dist/prosekit-solid-drop-indicator.d.ts +1 -0
- package/dist/prosekit-solid-drop-indicator.js +1 -0
- package/dist/prosekit-svelte-drop-indicator.d.ts +1 -0
- package/dist/prosekit-svelte-drop-indicator.js +1 -0
- package/dist/prosekit-vue-drop-indicator.d.ts +1 -0
- package/dist/prosekit-vue-drop-indicator.js +1 -0
- package/dist/prosekit-web-drop-indicator.d.ts +1 -0
- package/dist/prosekit-web-drop-indicator.js +1 -0
- package/package.json +96 -32
package/dist/basic/style.css
CHANGED
|
@@ -52,83 +52,91 @@ img.ProseMirror-separator {
|
|
|
52
52
|
|
|
53
53
|
/* ../pm/src/view/style/prosemirror.css */
|
|
54
54
|
|
|
55
|
-
/*
|
|
55
|
+
/* ../extensions/src/list/style.css */
|
|
56
|
+
:root {
|
|
57
|
+
--prosekit-list-bullet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='2.5' fill='currentColor'/%3E%3C/svg%3E");
|
|
58
|
+
--prosekit-list-toggle-open-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon points='8,10 12,14 16,10' fill='currentColor'/%3E%3C/svg%3E");
|
|
59
|
+
--prosekit-list-toggle-closed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon points='10,8 14,12 10,16' fill='currentColor'/%3E%3C/svg%3E");
|
|
60
|
+
}
|
|
56
61
|
.prosemirror-flat-list {
|
|
57
|
-
padding: 0;
|
|
58
|
-
margin-top: 0;
|
|
59
|
-
margin-bottom: 0;
|
|
60
|
-
margin-left: 32px;
|
|
61
|
-
margin-bottom: 0;
|
|
62
62
|
position: relative;
|
|
63
|
-
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding: 0;
|
|
64
65
|
list-style: none;
|
|
65
66
|
}
|
|
66
|
-
.prosemirror-flat-list.
|
|
67
|
-
outline: none;
|
|
68
|
-
}
|
|
69
|
-
.prosemirror-flat-list.ProseMirror-selectednode:after {
|
|
70
|
-
content: "";
|
|
67
|
+
.prosemirror-flat-list > .list-marker {
|
|
71
68
|
position: absolute;
|
|
72
|
-
left:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
left: 0;
|
|
70
|
+
width: 1.5em;
|
|
71
|
+
width: 1lh;
|
|
72
|
+
height: 1.5em;
|
|
73
|
+
height: 1lh;
|
|
74
|
+
text-align: center;
|
|
75
|
+
}
|
|
76
|
+
.prosemirror-flat-list > .list-content {
|
|
77
|
+
margin-left: 1.5em;
|
|
78
|
+
margin-left: 1lh;
|
|
78
79
|
}
|
|
79
|
-
.prosemirror-flat-list[data-list-kind=bullet]
|
|
80
|
-
|
|
80
|
+
.prosemirror-flat-list[data-list-kind=bullet] > .list-marker,
|
|
81
|
+
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker {
|
|
82
|
+
background-color: currentColor;
|
|
83
|
+
-webkit-mask-position: center;
|
|
84
|
+
mask-position: center;
|
|
85
|
+
-webkit-mask-repeat: no-repeat;
|
|
86
|
+
mask-repeat: no-repeat;
|
|
87
|
+
-webkit-mask-size: contain;
|
|
88
|
+
mask-size: contain;
|
|
89
|
+
}
|
|
90
|
+
.prosemirror-flat-list[data-list-kind=bullet] > .list-marker {
|
|
91
|
+
-webkit-mask-image: var(--prosekit-list-bullet-icon);
|
|
92
|
+
mask-image: var(--prosekit-list-bullet-icon);
|
|
93
|
+
}
|
|
94
|
+
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker {
|
|
95
|
+
-webkit-mask-image: var(--prosekit-list-toggle-open-icon);
|
|
96
|
+
mask-image: var(--prosekit-list-toggle-open-icon);
|
|
97
|
+
}
|
|
98
|
+
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable][data-list-collapsed] > .list-marker {
|
|
99
|
+
-webkit-mask-image: var(--prosekit-list-toggle-closed-icon);
|
|
100
|
+
mask-image: var(--prosekit-list-toggle-closed-icon);
|
|
101
|
+
}
|
|
102
|
+
.prosemirror-flat-list[data-list-kind=ordered] {
|
|
103
|
+
counter-increment: prosemirror-flat-list-counter;
|
|
81
104
|
}
|
|
82
105
|
.prosemirror-flat-list[data-list-kind=ordered] > * {
|
|
83
106
|
contain: style;
|
|
84
107
|
}
|
|
85
108
|
.prosemirror-flat-list[data-list-kind=ordered]::before {
|
|
86
109
|
position: absolute;
|
|
87
|
-
right: 100
|
|
88
|
-
|
|
110
|
+
right: calc(100% - 1.5em);
|
|
111
|
+
right: calc(100% - 1lh);
|
|
89
112
|
content: counter(prosemirror-flat-list-counter, decimal) ". ";
|
|
90
|
-
|
|
91
|
-
.prosemirror-flat-list[data-list-kind=ordered] {
|
|
92
|
-
counter-increment: prosemirror-flat-list-counter;
|
|
113
|
+
font-variant-numeric: tabular-nums;
|
|
93
114
|
}
|
|
94
115
|
.prosemirror-flat-list[data-list-kind=ordered]:first-child,
|
|
95
116
|
:not(.prosemirror-flat-list[data-list-kind=ordered]) + .prosemirror-flat-list[data-list-kind=ordered] {
|
|
96
117
|
counter-reset: prosemirror-flat-list-counter;
|
|
97
118
|
}
|
|
98
119
|
@supports (counter-set: prosemirror-flat-list-counter 1) {
|
|
99
|
-
|
|
120
|
+
.prosemirror-flat-list[data-list-kind=ordered]:first-child[data-list-order],
|
|
121
|
+
:not(.prosemirror-flat-list[data-list-kind=ordered]) + .prosemirror-flat-list[data-list-kind=ordered][data-list-order] {
|
|
100
122
|
counter-set: prosemirror-flat-list-counter var(--prosemirror-flat-list-order);
|
|
101
123
|
}
|
|
102
124
|
}
|
|
103
125
|
@supports not (counter-set: prosemirror-flat-list-counter 1) {
|
|
104
|
-
|
|
126
|
+
.prosemirror-flat-list[data-list-kind=ordered]:first-child[data-list-order],
|
|
127
|
+
:not(.prosemirror-flat-list[data-list-kind=ordered]) + .prosemirror-flat-list[data-list-kind=ordered][data-list-order] {
|
|
105
128
|
counter-increment: prosemirror-flat-list-counter var(--prosemirror-flat-list-order);
|
|
106
129
|
}
|
|
107
130
|
}
|
|
108
|
-
.prosemirror-flat-list[data-list-kind=task] > .list-marker
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
:is(.prosemirror-flat-list[data-list-kind=task] > .list-marker),
|
|
116
|
-
:is(.prosemirror-flat-list[data-list-kind=task] > .list-marker) * {
|
|
131
|
+
.prosemirror-flat-list[data-list-kind=task] > .list-marker,
|
|
132
|
+
.prosemirror-flat-list[data-list-kind=task] > .list-marker * {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
margin: 0;
|
|
137
|
+
padding: 0;
|
|
117
138
|
cursor: pointer;
|
|
118
139
|
}
|
|
119
|
-
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker {
|
|
120
|
-
position: absolute;
|
|
121
|
-
right: 100%;
|
|
122
|
-
text-align: center;
|
|
123
|
-
width: 1.5em;
|
|
124
|
-
width: 1lh;
|
|
125
|
-
}
|
|
126
|
-
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker::before {
|
|
127
|
-
content: "\23f7";
|
|
128
|
-
}
|
|
129
|
-
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable][data-list-collapsed] > .list-marker::before {
|
|
130
|
-
content: "\23f5";
|
|
131
|
-
}
|
|
132
140
|
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable] > .list-marker {
|
|
133
141
|
cursor: pointer;
|
|
134
142
|
}
|
|
@@ -140,8 +148,6 @@ img.ProseMirror-separator {
|
|
|
140
148
|
display: none;
|
|
141
149
|
}
|
|
142
150
|
|
|
143
|
-
/* ../extensions/src/list/style.css */
|
|
144
|
-
|
|
145
151
|
/* ../extensions/src/table/style.css */
|
|
146
152
|
.ProseMirror .tableWrapper {
|
|
147
153
|
overflow-x: auto;
|
|
@@ -130,11 +130,11 @@
|
|
|
130
130
|
}
|
|
131
131
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1)::before,
|
|
132
132
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1) > .list-marker {
|
|
133
|
-
top:
|
|
133
|
+
top: 0.75em;
|
|
134
134
|
}
|
|
135
135
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2)::before,
|
|
136
136
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2) > .list-marker {
|
|
137
|
-
top: 0.
|
|
137
|
+
top: 0.5em;
|
|
138
138
|
}
|
|
139
139
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3)::before,
|
|
140
140
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3) > .list-marker {
|
|
@@ -146,14 +146,11 @@
|
|
|
146
146
|
}
|
|
147
147
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5)::before,
|
|
148
148
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5) > .list-marker {
|
|
149
|
-
top: -0.
|
|
149
|
+
top: -0.2em;
|
|
150
150
|
}
|
|
151
151
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6)::before,
|
|
152
152
|
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6) > .list-marker {
|
|
153
|
-
top: -0.
|
|
154
|
-
}
|
|
155
|
-
.ProseMirror .ProseMirror-selectednode {
|
|
156
|
-
z-index: calc(infinity);
|
|
153
|
+
top: -0.3em;
|
|
157
154
|
}
|
|
158
155
|
.ProseMirror div[data-node-view-root=true] {
|
|
159
156
|
display: contents;
|
|
@@ -1,80 +1,88 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* ../extensions/src/list/style.css */
|
|
2
|
+
:root {
|
|
3
|
+
--prosekit-list-bullet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='2.5' fill='currentColor'/%3E%3C/svg%3E");
|
|
4
|
+
--prosekit-list-toggle-open-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon points='8,10 12,14 16,10' fill='currentColor'/%3E%3C/svg%3E");
|
|
5
|
+
--prosekit-list-toggle-closed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon points='10,8 14,12 10,16' fill='currentColor'/%3E%3C/svg%3E");
|
|
6
|
+
}
|
|
2
7
|
.prosemirror-flat-list {
|
|
3
|
-
padding: 0;
|
|
4
|
-
margin-top: 0;
|
|
5
|
-
margin-bottom: 0;
|
|
6
|
-
margin-left: 32px;
|
|
7
|
-
margin-bottom: 0;
|
|
8
8
|
position: relative;
|
|
9
|
-
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
10
11
|
list-style: none;
|
|
11
12
|
}
|
|
12
|
-
.prosemirror-flat-list.
|
|
13
|
-
outline: none;
|
|
14
|
-
}
|
|
15
|
-
.prosemirror-flat-list.ProseMirror-selectednode:after {
|
|
16
|
-
content: "";
|
|
13
|
+
.prosemirror-flat-list > .list-marker {
|
|
17
14
|
position: absolute;
|
|
18
|
-
left:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
left: 0;
|
|
16
|
+
width: 1.5em;
|
|
17
|
+
width: 1lh;
|
|
18
|
+
height: 1.5em;
|
|
19
|
+
height: 1lh;
|
|
20
|
+
text-align: center;
|
|
24
21
|
}
|
|
25
|
-
.prosemirror-flat-list
|
|
26
|
-
|
|
22
|
+
.prosemirror-flat-list > .list-content {
|
|
23
|
+
margin-left: 1.5em;
|
|
24
|
+
margin-left: 1lh;
|
|
25
|
+
}
|
|
26
|
+
.prosemirror-flat-list[data-list-kind=bullet] > .list-marker,
|
|
27
|
+
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker {
|
|
28
|
+
background-color: currentColor;
|
|
29
|
+
-webkit-mask-position: center;
|
|
30
|
+
mask-position: center;
|
|
31
|
+
-webkit-mask-repeat: no-repeat;
|
|
32
|
+
mask-repeat: no-repeat;
|
|
33
|
+
-webkit-mask-size: contain;
|
|
34
|
+
mask-size: contain;
|
|
35
|
+
}
|
|
36
|
+
.prosemirror-flat-list[data-list-kind=bullet] > .list-marker {
|
|
37
|
+
-webkit-mask-image: var(--prosekit-list-bullet-icon);
|
|
38
|
+
mask-image: var(--prosekit-list-bullet-icon);
|
|
39
|
+
}
|
|
40
|
+
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker {
|
|
41
|
+
-webkit-mask-image: var(--prosekit-list-toggle-open-icon);
|
|
42
|
+
mask-image: var(--prosekit-list-toggle-open-icon);
|
|
43
|
+
}
|
|
44
|
+
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable][data-list-collapsed] > .list-marker {
|
|
45
|
+
-webkit-mask-image: var(--prosekit-list-toggle-closed-icon);
|
|
46
|
+
mask-image: var(--prosekit-list-toggle-closed-icon);
|
|
47
|
+
}
|
|
48
|
+
.prosemirror-flat-list[data-list-kind=ordered] {
|
|
49
|
+
counter-increment: prosemirror-flat-list-counter;
|
|
27
50
|
}
|
|
28
51
|
.prosemirror-flat-list[data-list-kind=ordered] > * {
|
|
29
52
|
contain: style;
|
|
30
53
|
}
|
|
31
54
|
.prosemirror-flat-list[data-list-kind=ordered]::before {
|
|
32
55
|
position: absolute;
|
|
33
|
-
right: 100
|
|
34
|
-
|
|
56
|
+
right: calc(100% - 1.5em);
|
|
57
|
+
right: calc(100% - 1lh);
|
|
35
58
|
content: counter(prosemirror-flat-list-counter, decimal) ". ";
|
|
36
|
-
|
|
37
|
-
.prosemirror-flat-list[data-list-kind=ordered] {
|
|
38
|
-
counter-increment: prosemirror-flat-list-counter;
|
|
59
|
+
font-variant-numeric: tabular-nums;
|
|
39
60
|
}
|
|
40
61
|
.prosemirror-flat-list[data-list-kind=ordered]:first-child,
|
|
41
62
|
:not(.prosemirror-flat-list[data-list-kind=ordered]) + .prosemirror-flat-list[data-list-kind=ordered] {
|
|
42
63
|
counter-reset: prosemirror-flat-list-counter;
|
|
43
64
|
}
|
|
44
65
|
@supports (counter-set: prosemirror-flat-list-counter 1) {
|
|
45
|
-
|
|
66
|
+
.prosemirror-flat-list[data-list-kind=ordered]:first-child[data-list-order],
|
|
67
|
+
:not(.prosemirror-flat-list[data-list-kind=ordered]) + .prosemirror-flat-list[data-list-kind=ordered][data-list-order] {
|
|
46
68
|
counter-set: prosemirror-flat-list-counter var(--prosemirror-flat-list-order);
|
|
47
69
|
}
|
|
48
70
|
}
|
|
49
71
|
@supports not (counter-set: prosemirror-flat-list-counter 1) {
|
|
50
|
-
|
|
72
|
+
.prosemirror-flat-list[data-list-kind=ordered]:first-child[data-list-order],
|
|
73
|
+
:not(.prosemirror-flat-list[data-list-kind=ordered]) + .prosemirror-flat-list[data-list-kind=ordered][data-list-order] {
|
|
51
74
|
counter-increment: prosemirror-flat-list-counter var(--prosemirror-flat-list-order);
|
|
52
75
|
}
|
|
53
76
|
}
|
|
54
|
-
.prosemirror-flat-list[data-list-kind=task] > .list-marker
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
:is(.prosemirror-flat-list[data-list-kind=task] > .list-marker),
|
|
62
|
-
:is(.prosemirror-flat-list[data-list-kind=task] > .list-marker) * {
|
|
77
|
+
.prosemirror-flat-list[data-list-kind=task] > .list-marker,
|
|
78
|
+
.prosemirror-flat-list[data-list-kind=task] > .list-marker * {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
margin: 0;
|
|
83
|
+
padding: 0;
|
|
63
84
|
cursor: pointer;
|
|
64
85
|
}
|
|
65
|
-
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker {
|
|
66
|
-
position: absolute;
|
|
67
|
-
right: 100%;
|
|
68
|
-
text-align: center;
|
|
69
|
-
width: 1.5em;
|
|
70
|
-
width: 1lh;
|
|
71
|
-
}
|
|
72
|
-
.prosemirror-flat-list[data-list-kind=toggle] > .list-marker::before {
|
|
73
|
-
content: "\23f7";
|
|
74
|
-
}
|
|
75
|
-
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable][data-list-collapsed] > .list-marker::before {
|
|
76
|
-
content: "\23f5";
|
|
77
|
-
}
|
|
78
86
|
.prosemirror-flat-list[data-list-kind=toggle][data-list-collapsable] > .list-marker {
|
|
79
87
|
cursor: pointer;
|
|
80
88
|
}
|
|
@@ -86,6 +94,4 @@
|
|
|
86
94
|
display: none;
|
|
87
95
|
}
|
|
88
96
|
|
|
89
|
-
/* ../extensions/src/list/style.css */
|
|
90
|
-
|
|
91
97
|
/* src/extensions/list/style.css */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/extensions/drop-indicator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/extensions/drop-indicator"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/lit/drop-indicator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/lit/drop-indicator"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/preact/drop-indicator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/preact/drop-indicator"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/react/drop-indicator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/react/drop-indicator"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/solid/drop-indicator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/solid/drop-indicator"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/svelte/drop-indicator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/svelte/drop-indicator"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/vue/drop-indicator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/vue/drop-indicator"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/web/drop-indicator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@prosekit/web/drop-indicator"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosekit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "ProseKit: A toolkit for building rich text editors.",
|
|
7
7
|
"author": {
|
|
@@ -87,6 +87,10 @@
|
|
|
87
87
|
"types": "./dist/prosekit-extensions-drop-cursor.d.ts",
|
|
88
88
|
"default": "./dist/prosekit-extensions-drop-cursor.js"
|
|
89
89
|
},
|
|
90
|
+
"./extensions/drop-indicator": {
|
|
91
|
+
"types": "./dist/prosekit-extensions-drop-indicator.d.ts",
|
|
92
|
+
"default": "./dist/prosekit-extensions-drop-indicator.js"
|
|
93
|
+
},
|
|
90
94
|
"./extensions/enter-rule": {
|
|
91
95
|
"types": "./dist/prosekit-extensions-enter-rule.d.ts",
|
|
92
96
|
"default": "./dist/prosekit-extensions-enter-rule.js"
|
|
@@ -227,6 +231,10 @@
|
|
|
227
231
|
"types": "./dist/prosekit-lit-block-handle.d.ts",
|
|
228
232
|
"default": "./dist/prosekit-lit-block-handle.js"
|
|
229
233
|
},
|
|
234
|
+
"./lit/drop-indicator": {
|
|
235
|
+
"types": "./dist/prosekit-lit-drop-indicator.d.ts",
|
|
236
|
+
"default": "./dist/prosekit-lit-drop-indicator.js"
|
|
237
|
+
},
|
|
230
238
|
"./lit/inline-popover": {
|
|
231
239
|
"types": "./dist/prosekit-lit-inline-popover.d.ts",
|
|
232
240
|
"default": "./dist/prosekit-lit-inline-popover.js"
|
|
@@ -298,6 +306,10 @@
|
|
|
298
306
|
"types": "./dist/prosekit-preact-block-handle.d.ts",
|
|
299
307
|
"default": "./dist/prosekit-preact-block-handle.js"
|
|
300
308
|
},
|
|
309
|
+
"./preact/drop-indicator": {
|
|
310
|
+
"types": "./dist/prosekit-preact-drop-indicator.d.ts",
|
|
311
|
+
"default": "./dist/prosekit-preact-drop-indicator.js"
|
|
312
|
+
},
|
|
301
313
|
"./preact/inline-popover": {
|
|
302
314
|
"types": "./dist/prosekit-preact-inline-popover.d.ts",
|
|
303
315
|
"default": "./dist/prosekit-preact-inline-popover.js"
|
|
@@ -330,6 +342,10 @@
|
|
|
330
342
|
"types": "./dist/prosekit-react-block-handle.d.ts",
|
|
331
343
|
"default": "./dist/prosekit-react-block-handle.js"
|
|
332
344
|
},
|
|
345
|
+
"./react/drop-indicator": {
|
|
346
|
+
"types": "./dist/prosekit-react-drop-indicator.d.ts",
|
|
347
|
+
"default": "./dist/prosekit-react-drop-indicator.js"
|
|
348
|
+
},
|
|
333
349
|
"./react/inline-popover": {
|
|
334
350
|
"types": "./dist/prosekit-react-inline-popover.d.ts",
|
|
335
351
|
"default": "./dist/prosekit-react-inline-popover.js"
|
|
@@ -362,6 +378,10 @@
|
|
|
362
378
|
"types": "./dist/prosekit-solid-block-handle.d.ts",
|
|
363
379
|
"default": "./dist/prosekit-solid-block-handle.js"
|
|
364
380
|
},
|
|
381
|
+
"./solid/drop-indicator": {
|
|
382
|
+
"types": "./dist/prosekit-solid-drop-indicator.d.ts",
|
|
383
|
+
"default": "./dist/prosekit-solid-drop-indicator.js"
|
|
384
|
+
},
|
|
365
385
|
"./solid/inline-popover": {
|
|
366
386
|
"types": "./dist/prosekit-solid-inline-popover.d.ts",
|
|
367
387
|
"default": "./dist/prosekit-solid-inline-popover.js"
|
|
@@ -394,6 +414,10 @@
|
|
|
394
414
|
"types": "./dist/prosekit-svelte-block-handle.d.ts",
|
|
395
415
|
"default": "./dist/prosekit-svelte-block-handle.js"
|
|
396
416
|
},
|
|
417
|
+
"./svelte/drop-indicator": {
|
|
418
|
+
"types": "./dist/prosekit-svelte-drop-indicator.d.ts",
|
|
419
|
+
"default": "./dist/prosekit-svelte-drop-indicator.js"
|
|
420
|
+
},
|
|
397
421
|
"./svelte/inline-popover": {
|
|
398
422
|
"types": "./dist/prosekit-svelte-inline-popover.d.ts",
|
|
399
423
|
"default": "./dist/prosekit-svelte-inline-popover.js"
|
|
@@ -426,6 +450,10 @@
|
|
|
426
450
|
"types": "./dist/prosekit-vue-block-handle.d.ts",
|
|
427
451
|
"default": "./dist/prosekit-vue-block-handle.js"
|
|
428
452
|
},
|
|
453
|
+
"./vue/drop-indicator": {
|
|
454
|
+
"types": "./dist/prosekit-vue-drop-indicator.d.ts",
|
|
455
|
+
"default": "./dist/prosekit-vue-drop-indicator.js"
|
|
456
|
+
},
|
|
429
457
|
"./vue/inline-popover": {
|
|
430
458
|
"types": "./dist/prosekit-vue-inline-popover.d.ts",
|
|
431
459
|
"default": "./dist/prosekit-vue-inline-popover.js"
|
|
@@ -458,6 +486,10 @@
|
|
|
458
486
|
"types": "./dist/prosekit-web-block-handle.d.ts",
|
|
459
487
|
"default": "./dist/prosekit-web-block-handle.js"
|
|
460
488
|
},
|
|
489
|
+
"./web/drop-indicator": {
|
|
490
|
+
"types": "./dist/prosekit-web-drop-indicator.d.ts",
|
|
491
|
+
"default": "./dist/prosekit-web-drop-indicator.js"
|
|
492
|
+
},
|
|
461
493
|
"./web/inline-popover": {
|
|
462
494
|
"types": "./dist/prosekit-web-inline-popover.d.ts",
|
|
463
495
|
"default": "./dist/prosekit-web-inline-popover.js"
|
|
@@ -483,17 +515,17 @@
|
|
|
483
515
|
"dist"
|
|
484
516
|
],
|
|
485
517
|
"dependencies": {
|
|
486
|
-
"@prosekit/
|
|
487
|
-
"@prosekit/extensions": "0.10.1",
|
|
488
|
-
"@prosekit/lit": "0.4.16",
|
|
518
|
+
"@prosekit/extensions": "0.11.0",
|
|
489
519
|
"@prosekit/core": "0.8.3",
|
|
520
|
+
"@prosekit/lit": "0.5.0",
|
|
521
|
+
"@prosekit/basic": "0.6.0",
|
|
522
|
+
"@prosekit/preact": "0.5.0",
|
|
490
523
|
"@prosekit/pm": "0.1.11",
|
|
491
|
-
"@prosekit/react": "0.
|
|
492
|
-
"@prosekit/
|
|
493
|
-
"@prosekit/
|
|
494
|
-
"@prosekit/vue": "0.
|
|
495
|
-
"@prosekit/
|
|
496
|
-
"@prosekit/web": "0.6.1"
|
|
524
|
+
"@prosekit/react": "0.6.0",
|
|
525
|
+
"@prosekit/solid": "0.5.0",
|
|
526
|
+
"@prosekit/svelte": "0.7.0",
|
|
527
|
+
"@prosekit/vue": "0.5.0",
|
|
528
|
+
"@prosekit/web": "0.7.0"
|
|
497
529
|
},
|
|
498
530
|
"peerDependencies": {
|
|
499
531
|
"loro-crdt": ">= 0.16.7",
|
|
@@ -540,31 +572,31 @@
|
|
|
540
572
|
}
|
|
541
573
|
},
|
|
542
574
|
"devDependencies": {
|
|
543
|
-
"@types/react": "^19.1.
|
|
544
|
-
"@types/react-dom": "^19.1.
|
|
575
|
+
"@types/react": "^19.1.9",
|
|
576
|
+
"@types/react-dom": "^19.1.7",
|
|
545
577
|
"loro-crdt": "^1.5.9",
|
|
546
578
|
"loro-prosemirror": "^0.2.3",
|
|
547
579
|
"postcss": "^8.5.6",
|
|
548
580
|
"postcss-import": "^16.1.1",
|
|
549
|
-
"preact": "^10.
|
|
550
|
-
"react": "^19.1.
|
|
551
|
-
"react-dom": "^19.1.
|
|
581
|
+
"preact": "^10.27.0",
|
|
582
|
+
"react": "^19.1.1",
|
|
583
|
+
"react-dom": "^19.1.1",
|
|
552
584
|
"solid-js": "^1.9.7",
|
|
553
|
-
"svelte": "^5.
|
|
554
|
-
"tsdown": "^0.13.
|
|
585
|
+
"svelte": "^5.37.2",
|
|
586
|
+
"tsdown": "^0.13.1",
|
|
555
587
|
"tsup": "^8.5.0",
|
|
556
588
|
"typedoc": "^0.28.7",
|
|
557
589
|
"typedoc-plugin-external-package-links": "^0.1.0",
|
|
558
590
|
"typedoc-plugin-frontmatter": "^1.3.0",
|
|
559
|
-
"typedoc-plugin-markdown": "^4.
|
|
560
|
-
"typedoc-plugin-mdn-links": "^5.0.
|
|
591
|
+
"typedoc-plugin-markdown": "^4.8.0",
|
|
592
|
+
"typedoc-plugin-mdn-links": "^5.0.6",
|
|
561
593
|
"typescript": "~5.8.3",
|
|
562
594
|
"vue": "^3.5.18",
|
|
563
595
|
"y-prosemirror": "^1.3.7",
|
|
564
596
|
"yjs": "^13.6.27",
|
|
565
597
|
"@prosekit/config-tsdown": "0.0.0",
|
|
566
|
-
"@prosekit/
|
|
567
|
-
"@prosekit/
|
|
598
|
+
"@prosekit/typedoc-plugin": "0.0.0",
|
|
599
|
+
"@prosekit/config-vitest": "0.0.0"
|
|
568
600
|
},
|
|
569
601
|
"publishConfig": {
|
|
570
602
|
"dev": {}
|
|
@@ -572,6 +604,16 @@
|
|
|
572
604
|
"dev": {
|
|
573
605
|
"entry": {
|
|
574
606
|
"prosekit": "./src/index.ts",
|
|
607
|
+
"prosekit-pm": "./src/pm.ts",
|
|
608
|
+
"prosekit-pm-commands": "./src/pm/commands.ts",
|
|
609
|
+
"prosekit-pm-history": "./src/pm/history.ts",
|
|
610
|
+
"prosekit-pm-inputrules": "./src/pm/inputrules.ts",
|
|
611
|
+
"prosekit-pm-keymap": "./src/pm/keymap.ts",
|
|
612
|
+
"prosekit-pm-model": "./src/pm/model.ts",
|
|
613
|
+
"prosekit-pm-state": "./src/pm/state.ts",
|
|
614
|
+
"prosekit-pm-transform": "./src/pm/transform.ts",
|
|
615
|
+
"prosekit-pm-view": "./src/pm/view.ts",
|
|
616
|
+
"pm/view/style/prosemirror": "./src/pm/view/style/prosemirror.css",
|
|
575
617
|
"prosekit-basic": "./src/basic.gen.ts",
|
|
576
618
|
"basic/style": "./src/basic/style.css",
|
|
577
619
|
"basic/typography": "./src/basic/typography.css",
|
|
@@ -587,6 +629,7 @@
|
|
|
587
629
|
"extensions/commit/style": "./src/extensions/commit/style.css",
|
|
588
630
|
"prosekit-extensions-doc": "./src/extensions/doc.gen.ts",
|
|
589
631
|
"prosekit-extensions-drop-cursor": "./src/extensions/drop-cursor.gen.ts",
|
|
632
|
+
"prosekit-extensions-drop-indicator": "./src/extensions/drop-indicator.gen.ts",
|
|
590
633
|
"prosekit-extensions-enter-rule": "./src/extensions/enter-rule.gen.ts",
|
|
591
634
|
"prosekit-extensions-file": "./src/extensions/file.gen.ts",
|
|
592
635
|
"prosekit-extensions-gap-cursor": "./src/extensions/gap-cursor.gen.ts",
|
|
@@ -629,16 +672,7 @@
|
|
|
629
672
|
"prosekit-lit-resizable": "./src/lit/resizable.gen.ts",
|
|
630
673
|
"prosekit-lit-table-handle": "./src/lit/table-handle.gen.ts",
|
|
631
674
|
"prosekit-lit-tooltip": "./src/lit/tooltip.gen.ts",
|
|
632
|
-
"prosekit-
|
|
633
|
-
"prosekit-pm-commands": "./src/pm/commands.ts",
|
|
634
|
-
"prosekit-pm-history": "./src/pm/history.ts",
|
|
635
|
-
"prosekit-pm-inputrules": "./src/pm/inputrules.ts",
|
|
636
|
-
"prosekit-pm-keymap": "./src/pm/keymap.ts",
|
|
637
|
-
"prosekit-pm-model": "./src/pm/model.ts",
|
|
638
|
-
"prosekit-pm-state": "./src/pm/state.ts",
|
|
639
|
-
"prosekit-pm-transform": "./src/pm/transform.ts",
|
|
640
|
-
"prosekit-pm-view": "./src/pm/view.ts",
|
|
641
|
-
"pm/view/style/prosemirror": "./src/pm/view/style/prosemirror.css",
|
|
675
|
+
"prosekit-lit-drop-indicator": "./src/lit/drop-indicator.gen.ts",
|
|
642
676
|
"prosekit-preact": "./src/preact.gen.ts",
|
|
643
677
|
"prosekit-preact-autocomplete": "./src/preact/autocomplete.gen.ts",
|
|
644
678
|
"prosekit-preact-block-handle": "./src/preact/block-handle.gen.ts",
|
|
@@ -647,6 +681,7 @@
|
|
|
647
681
|
"prosekit-preact-resizable": "./src/preact/resizable.gen.ts",
|
|
648
682
|
"prosekit-preact-table-handle": "./src/preact/table-handle.gen.ts",
|
|
649
683
|
"prosekit-preact-tooltip": "./src/preact/tooltip.gen.ts",
|
|
684
|
+
"prosekit-preact-drop-indicator": "./src/preact/drop-indicator.gen.ts",
|
|
650
685
|
"prosekit-react": "./src/react.gen.ts",
|
|
651
686
|
"prosekit-react-autocomplete": "./src/react/autocomplete.gen.ts",
|
|
652
687
|
"prosekit-react-block-handle": "./src/react/block-handle.gen.ts",
|
|
@@ -655,6 +690,7 @@
|
|
|
655
690
|
"prosekit-react-resizable": "./src/react/resizable.gen.ts",
|
|
656
691
|
"prosekit-react-table-handle": "./src/react/table-handle.gen.ts",
|
|
657
692
|
"prosekit-react-tooltip": "./src/react/tooltip.gen.ts",
|
|
693
|
+
"prosekit-react-drop-indicator": "./src/react/drop-indicator.gen.ts",
|
|
658
694
|
"prosekit-solid": "./src/solid.gen.ts",
|
|
659
695
|
"prosekit-solid-autocomplete": "./src/solid/autocomplete.gen.ts",
|
|
660
696
|
"prosekit-solid-block-handle": "./src/solid/block-handle.gen.ts",
|
|
@@ -663,6 +699,7 @@
|
|
|
663
699
|
"prosekit-solid-resizable": "./src/solid/resizable.gen.ts",
|
|
664
700
|
"prosekit-solid-table-handle": "./src/solid/table-handle.gen.ts",
|
|
665
701
|
"prosekit-solid-tooltip": "./src/solid/tooltip.gen.ts",
|
|
702
|
+
"prosekit-solid-drop-indicator": "./src/solid/drop-indicator.gen.ts",
|
|
666
703
|
"prosekit-svelte": "./src/svelte.gen.ts",
|
|
667
704
|
"prosekit-svelte-autocomplete": "./src/svelte/autocomplete.gen.ts",
|
|
668
705
|
"prosekit-svelte-block-handle": "./src/svelte/block-handle.gen.ts",
|
|
@@ -671,6 +708,7 @@
|
|
|
671
708
|
"prosekit-svelte-resizable": "./src/svelte/resizable.gen.ts",
|
|
672
709
|
"prosekit-svelte-table-handle": "./src/svelte/table-handle.gen.ts",
|
|
673
710
|
"prosekit-svelte-tooltip": "./src/svelte/tooltip.gen.ts",
|
|
711
|
+
"prosekit-svelte-drop-indicator": "./src/svelte/drop-indicator.gen.ts",
|
|
674
712
|
"prosekit-vue": "./src/vue.gen.ts",
|
|
675
713
|
"prosekit-vue-autocomplete": "./src/vue/autocomplete.gen.ts",
|
|
676
714
|
"prosekit-vue-block-handle": "./src/vue/block-handle.gen.ts",
|
|
@@ -679,6 +717,7 @@
|
|
|
679
717
|
"prosekit-vue-resizable": "./src/vue/resizable.gen.ts",
|
|
680
718
|
"prosekit-vue-table-handle": "./src/vue/table-handle.gen.ts",
|
|
681
719
|
"prosekit-vue-tooltip": "./src/vue/tooltip.gen.ts",
|
|
720
|
+
"prosekit-vue-drop-indicator": "./src/vue/drop-indicator.gen.ts",
|
|
682
721
|
"prosekit-web": "./src/web.ts",
|
|
683
722
|
"prosekit-web-autocomplete": "./src/web/autocomplete.gen.ts",
|
|
684
723
|
"prosekit-web-block-handle": "./src/web/block-handle.gen.ts",
|
|
@@ -686,7 +725,8 @@
|
|
|
686
725
|
"prosekit-web-popover": "./src/web/popover.gen.ts",
|
|
687
726
|
"prosekit-web-resizable": "./src/web/resizable.gen.ts",
|
|
688
727
|
"prosekit-web-table-handle": "./src/web/table-handle.gen.ts",
|
|
689
|
-
"prosekit-web-tooltip": "./src/web/tooltip.gen.ts"
|
|
728
|
+
"prosekit-web-tooltip": "./src/web/tooltip.gen.ts",
|
|
729
|
+
"prosekit-web-drop-indicator": "./src/web/drop-indicator.gen.ts"
|
|
690
730
|
}
|
|
691
731
|
},
|
|
692
732
|
"scripts": {
|
|
@@ -736,6 +776,9 @@
|
|
|
736
776
|
"extensions/drop-cursor": [
|
|
737
777
|
"./dist/prosekit-extensions-drop-cursor.d.ts"
|
|
738
778
|
],
|
|
779
|
+
"extensions/drop-indicator": [
|
|
780
|
+
"./dist/prosekit-extensions-drop-indicator.d.ts"
|
|
781
|
+
],
|
|
739
782
|
"extensions/enter-rule": [
|
|
740
783
|
"./dist/prosekit-extensions-enter-rule.d.ts"
|
|
741
784
|
],
|
|
@@ -823,6 +866,9 @@
|
|
|
823
866
|
"lit/block-handle": [
|
|
824
867
|
"./dist/prosekit-lit-block-handle.d.ts"
|
|
825
868
|
],
|
|
869
|
+
"lit/drop-indicator": [
|
|
870
|
+
"./dist/prosekit-lit-drop-indicator.d.ts"
|
|
871
|
+
],
|
|
826
872
|
"lit/inline-popover": [
|
|
827
873
|
"./dist/prosekit-lit-inline-popover.d.ts"
|
|
828
874
|
],
|
|
@@ -874,6 +920,9 @@
|
|
|
874
920
|
"preact/block-handle": [
|
|
875
921
|
"./dist/prosekit-preact-block-handle.d.ts"
|
|
876
922
|
],
|
|
923
|
+
"preact/drop-indicator": [
|
|
924
|
+
"./dist/prosekit-preact-drop-indicator.d.ts"
|
|
925
|
+
],
|
|
877
926
|
"preact/inline-popover": [
|
|
878
927
|
"./dist/prosekit-preact-inline-popover.d.ts"
|
|
879
928
|
],
|
|
@@ -898,6 +947,9 @@
|
|
|
898
947
|
"react/block-handle": [
|
|
899
948
|
"./dist/prosekit-react-block-handle.d.ts"
|
|
900
949
|
],
|
|
950
|
+
"react/drop-indicator": [
|
|
951
|
+
"./dist/prosekit-react-drop-indicator.d.ts"
|
|
952
|
+
],
|
|
901
953
|
"react/inline-popover": [
|
|
902
954
|
"./dist/prosekit-react-inline-popover.d.ts"
|
|
903
955
|
],
|
|
@@ -922,6 +974,9 @@
|
|
|
922
974
|
"solid/block-handle": [
|
|
923
975
|
"./dist/prosekit-solid-block-handle.d.ts"
|
|
924
976
|
],
|
|
977
|
+
"solid/drop-indicator": [
|
|
978
|
+
"./dist/prosekit-solid-drop-indicator.d.ts"
|
|
979
|
+
],
|
|
925
980
|
"solid/inline-popover": [
|
|
926
981
|
"./dist/prosekit-solid-inline-popover.d.ts"
|
|
927
982
|
],
|
|
@@ -946,6 +1001,9 @@
|
|
|
946
1001
|
"svelte/block-handle": [
|
|
947
1002
|
"./dist/prosekit-svelte-block-handle.d.ts"
|
|
948
1003
|
],
|
|
1004
|
+
"svelte/drop-indicator": [
|
|
1005
|
+
"./dist/prosekit-svelte-drop-indicator.d.ts"
|
|
1006
|
+
],
|
|
949
1007
|
"svelte/inline-popover": [
|
|
950
1008
|
"./dist/prosekit-svelte-inline-popover.d.ts"
|
|
951
1009
|
],
|
|
@@ -970,6 +1028,9 @@
|
|
|
970
1028
|
"vue/block-handle": [
|
|
971
1029
|
"./dist/prosekit-vue-block-handle.d.ts"
|
|
972
1030
|
],
|
|
1031
|
+
"vue/drop-indicator": [
|
|
1032
|
+
"./dist/prosekit-vue-drop-indicator.d.ts"
|
|
1033
|
+
],
|
|
973
1034
|
"vue/inline-popover": [
|
|
974
1035
|
"./dist/prosekit-vue-inline-popover.d.ts"
|
|
975
1036
|
],
|
|
@@ -994,6 +1055,9 @@
|
|
|
994
1055
|
"web/block-handle": [
|
|
995
1056
|
"./dist/prosekit-web-block-handle.d.ts"
|
|
996
1057
|
],
|
|
1058
|
+
"web/drop-indicator": [
|
|
1059
|
+
"./dist/prosekit-web-drop-indicator.d.ts"
|
|
1060
|
+
],
|
|
997
1061
|
"web/inline-popover": [
|
|
998
1062
|
"./dist/prosekit-web-inline-popover.d.ts"
|
|
999
1063
|
],
|