prosekit 0.13.6 → 0.14.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 +3 -0
- package/dist/basic/typography.css +62 -62
- package/dist/extensions/table/style.css +3 -0
- package/package.json +21 -21
package/dist/basic/style.css
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
/* ../basic/src/typography.css */
|
|
2
|
-
|
|
2
|
+
.ProseMirror {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
.ProseMirror {
|
|
7
7
|
line-height: 1.5;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
.ProseMirror p:first-child,
|
|
10
|
+
.ProseMirror h1:first-child,
|
|
11
|
+
.ProseMirror h2:first-child,
|
|
12
|
+
.ProseMirror h3:first-child,
|
|
13
|
+
.ProseMirror h4:first-child,
|
|
14
|
+
.ProseMirror h5:first-child,
|
|
15
|
+
.ProseMirror h6:first-child {
|
|
16
16
|
margin-top: 0;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
.ProseMirror p:last-child,
|
|
19
|
+
.ProseMirror h1:last-child,
|
|
20
|
+
.ProseMirror h2:last-child,
|
|
21
|
+
.ProseMirror h3:last-child,
|
|
22
|
+
.ProseMirror h4:last-child,
|
|
23
|
+
.ProseMirror h5:last-child,
|
|
24
|
+
.ProseMirror h6:last-child {
|
|
25
25
|
margin-bottom: 0;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
.ProseMirror h1,
|
|
28
|
+
.ProseMirror h2,
|
|
29
|
+
.ProseMirror h3,
|
|
30
|
+
.ProseMirror h4,
|
|
31
|
+
.ProseMirror h5,
|
|
32
|
+
.ProseMirror h6 {
|
|
33
33
|
padding-top: 0;
|
|
34
34
|
padding-bottom: 0;
|
|
35
35
|
border-style: none;
|
|
36
36
|
font-weight: 600;
|
|
37
37
|
line-height: 1.25;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
.ProseMirror a {
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
text-decoration: underline;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
.ProseMirror p,
|
|
44
|
+
.ProseMirror ul,
|
|
45
|
+
.ProseMirror ol,
|
|
46
|
+
.ProseMirror pre {
|
|
47
47
|
margin: 0;
|
|
48
48
|
padding: 0.5rem 0;
|
|
49
49
|
line-height: 1.5;
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
.ProseMirror blockquote {
|
|
52
52
|
padding-left: 1em;
|
|
53
53
|
border-left: 0.25em solid hsl(0 0% 60% / 0.4);
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
.ProseMirror h1 {
|
|
56
56
|
margin: 1rem 0;
|
|
57
57
|
font-size: 2.25em;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
.ProseMirror h2 {
|
|
60
60
|
margin: 1.75em 0 0.5em;
|
|
61
61
|
font-size: 1.75em;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
.ProseMirror h3 {
|
|
64
64
|
margin: 1.5em 0 0.5em;
|
|
65
65
|
font-size: 1.375em;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
.ProseMirror h4 {
|
|
68
68
|
margin: 1em 0;
|
|
69
69
|
font-size: 1.125em;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
.ProseMirror h5 {
|
|
72
72
|
margin: 0.5em 0;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
.ProseMirror h6 {
|
|
75
75
|
opacity: 0.8;
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
.ProseMirror img,
|
|
78
|
+
.ProseMirror video {
|
|
79
79
|
width: min-content;
|
|
80
80
|
max-width: 100%;
|
|
81
81
|
margin: 0;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
.ProseMirror code {
|
|
84
84
|
font-weight: 600;
|
|
85
85
|
font-size: 0.875em;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
.ProseMirror pre {
|
|
88
88
|
margin: 0.5rem 0;
|
|
89
89
|
padding: 2rem 2rem;
|
|
90
90
|
overflow-x: auto;
|
|
@@ -93,8 +93,8 @@ div.ProseMirror pre {
|
|
|
93
93
|
background-color: var(--prosemirror-highlight-bg, inherit);
|
|
94
94
|
color: var(--prosemirror-highlight, inherit);
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
.ProseMirror pre,
|
|
97
|
+
.ProseMirror code {
|
|
98
98
|
white-space: pre;
|
|
99
99
|
word-break: normal;
|
|
100
100
|
word-spacing: normal;
|
|
@@ -102,60 +102,60 @@ div.ProseMirror code {
|
|
|
102
102
|
hyphens: none;
|
|
103
103
|
tab-size: 4;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
.ProseMirror pre code {
|
|
106
106
|
font-weight: inherit;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
.ProseMirror hr {
|
|
109
109
|
margin: 2em 0;
|
|
110
110
|
border-width: 1px;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
.ProseMirror .prosekit-horizontal-rule {
|
|
113
113
|
margin: 1em 0;
|
|
114
114
|
padding: 1em 0;
|
|
115
115
|
line-height: 1px;
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
.ProseMirror .prosekit-horizontal-rule hr {
|
|
118
118
|
margin: 0;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
.ProseMirror .tableWrapper {
|
|
121
121
|
margin-top: 0.5em;
|
|
122
122
|
margin-bottom: 1em;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
.ProseMirror .prosemirror-flat-list {
|
|
125
125
|
line-height: 1.5;
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
.ProseMirror .prosemirror-flat-list::before,
|
|
128
|
+
.ProseMirror .prosemirror-flat-list > .list-marker {
|
|
129
129
|
top: 0.5rem;
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1)::before,
|
|
132
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1) > .list-marker {
|
|
133
133
|
top: 1em;
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2)::before,
|
|
136
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2) > .list-marker {
|
|
137
137
|
top: 0.6em;
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3)::before,
|
|
140
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3) > .list-marker {
|
|
141
141
|
top: 0.25em;
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h4)::before,
|
|
144
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h4) > .list-marker {
|
|
145
145
|
top: 0;
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5)::before,
|
|
148
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5) > .list-marker {
|
|
149
149
|
top: -0.1em;
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6)::before,
|
|
152
|
+
.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6) > .list-marker {
|
|
153
153
|
top: -0.1em;
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
.ProseMirror .ProseMirror-selectednode {
|
|
156
156
|
z-index: calc(infinity);
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
.ProseMirror div[data-node-view-root=true] {
|
|
159
159
|
display: contents;
|
|
160
160
|
}
|
|
161
161
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosekit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "ProseKit: A toolkit for building rich text editors.",
|
|
7
7
|
"author": {
|
|
@@ -483,17 +483,17 @@
|
|
|
483
483
|
"dist"
|
|
484
484
|
],
|
|
485
485
|
"dependencies": {
|
|
486
|
-
"@prosekit/basic": "0.5.
|
|
487
|
-
"@prosekit/
|
|
488
|
-
"@prosekit/extensions": "0.9.3",
|
|
489
|
-
"@prosekit/core": "0.8.2",
|
|
486
|
+
"@prosekit/basic": "0.5.4",
|
|
487
|
+
"@prosekit/extensions": "0.10.0",
|
|
490
488
|
"@prosekit/pm": "0.1.11",
|
|
491
|
-
"@prosekit/
|
|
492
|
-
"@prosekit/preact": "0.4.
|
|
493
|
-
"@prosekit/
|
|
494
|
-
"@prosekit/
|
|
495
|
-
"@prosekit/
|
|
496
|
-
"@prosekit/
|
|
489
|
+
"@prosekit/lit": "0.4.16",
|
|
490
|
+
"@prosekit/preact": "0.4.17",
|
|
491
|
+
"@prosekit/react": "0.5.3",
|
|
492
|
+
"@prosekit/solid": "0.4.17",
|
|
493
|
+
"@prosekit/core": "0.8.3",
|
|
494
|
+
"@prosekit/svelte": "0.6.12",
|
|
495
|
+
"@prosekit/vue": "0.4.17",
|
|
496
|
+
"@prosekit/web": "0.6.0"
|
|
497
497
|
},
|
|
498
498
|
"peerDependencies": {
|
|
499
499
|
"loro-crdt": ">= 0.16.7",
|
|
@@ -542,28 +542,28 @@
|
|
|
542
542
|
"devDependencies": {
|
|
543
543
|
"@types/react": "^19.1.8",
|
|
544
544
|
"@types/react-dom": "^19.1.6",
|
|
545
|
-
"loro-crdt": "^1.5.
|
|
545
|
+
"loro-crdt": "^1.5.9",
|
|
546
546
|
"loro-prosemirror": "^0.2.3",
|
|
547
|
-
"postcss": "^8.5.
|
|
548
|
-
"postcss-import": "^16.1.
|
|
547
|
+
"postcss": "^8.5.6",
|
|
548
|
+
"postcss-import": "^16.1.1",
|
|
549
549
|
"preact": "^10.26.9",
|
|
550
550
|
"react": "^19.1.0",
|
|
551
551
|
"react-dom": "^19.1.0",
|
|
552
552
|
"solid-js": "^1.9.7",
|
|
553
|
-
"svelte": "^5.34.
|
|
554
|
-
"tsdown": "^0.12.
|
|
553
|
+
"svelte": "^5.34.7",
|
|
554
|
+
"tsdown": "^0.12.9",
|
|
555
555
|
"tsup": "^8.5.0",
|
|
556
|
-
"typedoc": "^0.28.
|
|
556
|
+
"typedoc": "^0.28.6",
|
|
557
557
|
"typedoc-plugin-external-package-links": "^0.1.0",
|
|
558
558
|
"typedoc-plugin-frontmatter": "^1.3.0",
|
|
559
|
-
"typedoc-plugin-markdown": "^4.
|
|
559
|
+
"typedoc-plugin-markdown": "^4.7.0",
|
|
560
560
|
"typedoc-plugin-mdn-links": "^5.0.2",
|
|
561
561
|
"typescript": "~5.8.3",
|
|
562
|
-
"vue": "^3.5.
|
|
563
|
-
"y-prosemirror": "^1.3.
|
|
562
|
+
"vue": "^3.5.17",
|
|
563
|
+
"y-prosemirror": "^1.3.6",
|
|
564
564
|
"yjs": "^13.6.27",
|
|
565
|
-
"@prosekit/config-tsdown": "0.0.0",
|
|
566
565
|
"@prosekit/config-vitest": "0.0.0",
|
|
566
|
+
"@prosekit/config-tsdown": "0.0.0",
|
|
567
567
|
"@prosekit/typedoc-plugin": "0.0.0"
|
|
568
568
|
},
|
|
569
569
|
"publishConfig": {
|