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.
@@ -161,6 +161,9 @@ img.ProseMirror-separator {
161
161
  border-width: 1px;
162
162
  vertical-align: top;
163
163
  }
164
+ prosekit-table-handle-drop-indicator {
165
+ background-color: HighlightText;
166
+ }
164
167
  .ProseMirror .column-resize-handle {
165
168
  z-index: 20;
166
169
  position: absolute;
@@ -1,90 +1,90 @@
1
1
  /* ../basic/src/typography.css */
2
- div.ProseMirror {
2
+ .ProseMirror {
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  }
6
- div.ProseMirror {
6
+ .ProseMirror {
7
7
  line-height: 1.5;
8
8
  }
9
- div.ProseMirror p:first-child,
10
- div.ProseMirror h1:first-child,
11
- div.ProseMirror h2:first-child,
12
- div.ProseMirror h3:first-child,
13
- div.ProseMirror h4:first-child,
14
- div.ProseMirror h5:first-child,
15
- div.ProseMirror h6:first-child {
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
- div.ProseMirror p:last-child,
19
- div.ProseMirror h1:last-child,
20
- div.ProseMirror h2:last-child,
21
- div.ProseMirror h3:last-child,
22
- div.ProseMirror h4:last-child,
23
- div.ProseMirror h5:last-child,
24
- div.ProseMirror h6:last-child {
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
- div.ProseMirror h1,
28
- div.ProseMirror h2,
29
- div.ProseMirror h3,
30
- div.ProseMirror h4,
31
- div.ProseMirror h5,
32
- div.ProseMirror h6 {
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
- div.ProseMirror a {
39
+ .ProseMirror a {
40
40
  font-weight: 500;
41
41
  text-decoration: underline;
42
42
  }
43
- div.ProseMirror p,
44
- div.ProseMirror ul,
45
- div.ProseMirror ol,
46
- div.ProseMirror pre {
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
- div.ProseMirror blockquote {
51
+ .ProseMirror blockquote {
52
52
  padding-left: 1em;
53
53
  border-left: 0.25em solid hsl(0 0% 60% / 0.4);
54
54
  }
55
- div.ProseMirror h1 {
55
+ .ProseMirror h1 {
56
56
  margin: 1rem 0;
57
57
  font-size: 2.25em;
58
58
  }
59
- div.ProseMirror h2 {
59
+ .ProseMirror h2 {
60
60
  margin: 1.75em 0 0.5em;
61
61
  font-size: 1.75em;
62
62
  }
63
- div.ProseMirror h3 {
63
+ .ProseMirror h3 {
64
64
  margin: 1.5em 0 0.5em;
65
65
  font-size: 1.375em;
66
66
  }
67
- div.ProseMirror h4 {
67
+ .ProseMirror h4 {
68
68
  margin: 1em 0;
69
69
  font-size: 1.125em;
70
70
  }
71
- div.ProseMirror h5 {
71
+ .ProseMirror h5 {
72
72
  margin: 0.5em 0;
73
73
  }
74
- div.ProseMirror h6 {
74
+ .ProseMirror h6 {
75
75
  opacity: 0.8;
76
76
  }
77
- div.ProseMirror img,
78
- div.ProseMirror video {
77
+ .ProseMirror img,
78
+ .ProseMirror video {
79
79
  width: min-content;
80
80
  max-width: 100%;
81
81
  margin: 0;
82
82
  }
83
- div.ProseMirror code {
83
+ .ProseMirror code {
84
84
  font-weight: 600;
85
85
  font-size: 0.875em;
86
86
  }
87
- div.ProseMirror pre {
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
- div.ProseMirror pre,
97
- div.ProseMirror code {
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
- div.ProseMirror pre code {
105
+ .ProseMirror pre code {
106
106
  font-weight: inherit;
107
107
  }
108
- div.ProseMirror hr {
108
+ .ProseMirror hr {
109
109
  margin: 2em 0;
110
110
  border-width: 1px;
111
111
  }
112
- div.ProseMirror .prosekit-horizontal-rule {
112
+ .ProseMirror .prosekit-horizontal-rule {
113
113
  margin: 1em 0;
114
114
  padding: 1em 0;
115
115
  line-height: 1px;
116
116
  }
117
- div.ProseMirror .prosekit-horizontal-rule hr {
117
+ .ProseMirror .prosekit-horizontal-rule hr {
118
118
  margin: 0;
119
119
  }
120
- div.ProseMirror .tableWrapper {
120
+ .ProseMirror .tableWrapper {
121
121
  margin-top: 0.5em;
122
122
  margin-bottom: 1em;
123
123
  }
124
- div.ProseMirror .prosemirror-flat-list {
124
+ .ProseMirror .prosemirror-flat-list {
125
125
  line-height: 1.5;
126
126
  }
127
- div.ProseMirror .prosemirror-flat-list::before,
128
- div.ProseMirror .prosemirror-flat-list > .list-marker {
127
+ .ProseMirror .prosemirror-flat-list::before,
128
+ .ProseMirror .prosemirror-flat-list > .list-marker {
129
129
  top: 0.5rem;
130
130
  }
131
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1)::before,
132
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h1) > .list-marker {
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
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2)::before,
136
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h2) > .list-marker {
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
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3)::before,
140
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h3) > .list-marker {
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
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h4)::before,
144
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h4) > .list-marker {
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
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5)::before,
148
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h5) > .list-marker {
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
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6)::before,
152
- div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6) > .list-marker {
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
- div.ProseMirror .ProseMirror-selectednode {
155
+ .ProseMirror .ProseMirror-selectednode {
156
156
  z-index: calc(infinity);
157
157
  }
158
- div.ProseMirror div[data-node-view-root=true] {
158
+ .ProseMirror div[data-node-view-root=true] {
159
159
  display: contents;
160
160
  }
161
161
 
@@ -17,6 +17,9 @@
17
17
  border-width: 1px;
18
18
  vertical-align: top;
19
19
  }
20
+ prosekit-table-handle-drop-indicator {
21
+ background-color: HighlightText;
22
+ }
20
23
  .ProseMirror .column-resize-handle {
21
24
  z-index: 20;
22
25
  position: absolute;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prosekit",
3
3
  "type": "module",
4
- "version": "0.13.6",
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.3",
487
- "@prosekit/lit": "0.4.15",
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/react": "0.5.2",
492
- "@prosekit/preact": "0.4.16",
493
- "@prosekit/solid": "0.4.16",
494
- "@prosekit/vue": "0.4.16",
495
- "@prosekit/svelte": "0.6.11",
496
- "@prosekit/web": "0.5.11"
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.8",
545
+ "loro-crdt": "^1.5.9",
546
546
  "loro-prosemirror": "^0.2.3",
547
- "postcss": "^8.5.5",
548
- "postcss-import": "^16.1.0",
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.1",
554
- "tsdown": "^0.12.7",
553
+ "svelte": "^5.34.7",
554
+ "tsdown": "^0.12.9",
555
555
  "tsup": "^8.5.0",
556
- "typedoc": "^0.28.5",
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.6.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.16",
563
- "y-prosemirror": "^1.3.5",
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": {