prosekit 0.5.1 → 0.5.2
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.
|
@@ -224,6 +224,13 @@ import { defineStrike } from '@prosekit/extensions/strike';
|
|
|
224
224
|
import { defineStrikeCommands } from '@prosekit/extensions/strike';
|
|
225
225
|
import { defineStrikeKeymap } from '@prosekit/extensions/strike';
|
|
226
226
|
import { defineStrikeSpec } from '@prosekit/extensions/strike';
|
|
227
|
+
import { defineTable } from '@prosekit/extensions/table';
|
|
228
|
+
import { defineTableCellSpec } from '@prosekit/extensions/table';
|
|
229
|
+
import { defineTableCommands } from '@prosekit/extensions/table';
|
|
230
|
+
import { defineTableHeaderCellSpec } from '@prosekit/extensions/table';
|
|
231
|
+
import { defineTablePlugins } from '@prosekit/extensions/table';
|
|
232
|
+
import { defineTableRowSpec } from '@prosekit/extensions/table';
|
|
233
|
+
import { defineTableSpec } from '@prosekit/extensions/table';
|
|
227
234
|
import { defineText } from '@prosekit/core';
|
|
228
235
|
import { defineTextBlockEnterRule } from '@prosekit/extensions/enter-rule';
|
|
229
236
|
import { defineTextBlockInputRule } from '@prosekit/extensions/input-rule';
|
|
@@ -1035,6 +1042,20 @@ export { defineStrikeKeymap }
|
|
|
1035
1042
|
|
|
1036
1043
|
export { defineStrikeSpec }
|
|
1037
1044
|
|
|
1045
|
+
export { defineTable }
|
|
1046
|
+
|
|
1047
|
+
export { defineTableCellSpec }
|
|
1048
|
+
|
|
1049
|
+
export { defineTableCommands }
|
|
1050
|
+
|
|
1051
|
+
export { defineTableHeaderCellSpec }
|
|
1052
|
+
|
|
1053
|
+
export { defineTablePlugins }
|
|
1054
|
+
|
|
1055
|
+
export { defineTableRowSpec }
|
|
1056
|
+
|
|
1057
|
+
export { defineTableSpec }
|
|
1058
|
+
|
|
1038
1059
|
export { defineText }
|
|
1039
1060
|
|
|
1040
1061
|
export { defineTextBlockEnterRule }
|
package/dist/basic/style.css
CHANGED
|
@@ -142,6 +142,41 @@ img.ProseMirror-separator {
|
|
|
142
142
|
|
|
143
143
|
/* ../extensions/src/list/style.css */
|
|
144
144
|
|
|
145
|
+
/* ../extensions/src/table/style.css */
|
|
146
|
+
.ProseMirror .tableWrapper {
|
|
147
|
+
overflow-x: auto;
|
|
148
|
+
}
|
|
149
|
+
.ProseMirror table {
|
|
150
|
+
border-collapse: collapse;
|
|
151
|
+
table-layout: fixed;
|
|
152
|
+
width: 100%;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
}
|
|
155
|
+
.ProseMirror td,
|
|
156
|
+
.ProseMirror th {
|
|
157
|
+
vertical-align: top;
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
position: relative;
|
|
160
|
+
border-width: 1px;
|
|
161
|
+
}
|
|
162
|
+
.ProseMirror .column-resize-handle {
|
|
163
|
+
position: absolute;
|
|
164
|
+
right: -2px;
|
|
165
|
+
top: 0;
|
|
166
|
+
bottom: 0;
|
|
167
|
+
width: 4px;
|
|
168
|
+
z-index: 20;
|
|
169
|
+
background-color: HighlightText;
|
|
170
|
+
pointer-events: none;
|
|
171
|
+
}
|
|
172
|
+
.ProseMirror.resize-cursor {
|
|
173
|
+
cursor: ew-resize;
|
|
174
|
+
cursor: col-resize;
|
|
175
|
+
}
|
|
176
|
+
.ProseMirror .selectedCell {
|
|
177
|
+
background-color: Highlight;
|
|
178
|
+
}
|
|
179
|
+
|
|
145
180
|
/* ../extensions/src/placeholder/style.css */
|
|
146
181
|
.prosekit-placeholder::before {
|
|
147
182
|
position: absolute;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* ../extensions/src/table/style.css */
|
|
2
|
+
.ProseMirror .tableWrapper {
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
}
|
|
5
|
+
.ProseMirror table {
|
|
6
|
+
border-collapse: collapse;
|
|
7
|
+
table-layout: fixed;
|
|
8
|
+
width: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
.ProseMirror td,
|
|
12
|
+
.ProseMirror th {
|
|
13
|
+
vertical-align: top;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
position: relative;
|
|
16
|
+
border-width: 1px;
|
|
17
|
+
}
|
|
18
|
+
.ProseMirror .column-resize-handle {
|
|
19
|
+
position: absolute;
|
|
20
|
+
right: -2px;
|
|
21
|
+
top: 0;
|
|
22
|
+
bottom: 0;
|
|
23
|
+
width: 4px;
|
|
24
|
+
z-index: 20;
|
|
25
|
+
background-color: HighlightText;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
.ProseMirror.resize-cursor {
|
|
29
|
+
cursor: ew-resize;
|
|
30
|
+
cursor: col-resize;
|
|
31
|
+
}
|
|
32
|
+
.ProseMirror .selectedCell {
|
|
33
|
+
background-color: Highlight;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* src/extensions/table/style.css */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defineTable } from './_tsup-dts-rollup';
|
|
2
|
+
export { defineTableCellSpec } from './_tsup-dts-rollup';
|
|
3
|
+
export { defineTableCommands } from './_tsup-dts-rollup';
|
|
4
|
+
export { defineTableHeaderCellSpec } from './_tsup-dts-rollup';
|
|
5
|
+
export { defineTablePlugins } from './_tsup-dts-rollup';
|
|
6
|
+
export { defineTableRowSpec } from './_tsup-dts-rollup';
|
|
7
|
+
export { defineTableSpec } 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.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -142,6 +142,14 @@
|
|
|
142
142
|
"import": "./dist/prosekit-extensions-strike.js",
|
|
143
143
|
"default": "./dist/prosekit-extensions-strike.js"
|
|
144
144
|
},
|
|
145
|
+
"./extensions/table": {
|
|
146
|
+
"types": "./dist/prosekit-extensions-table.d.ts",
|
|
147
|
+
"import": "./dist/prosekit-extensions-table.js",
|
|
148
|
+
"default": "./dist/prosekit-extensions-table.js"
|
|
149
|
+
},
|
|
150
|
+
"./extensions/table/style.css": {
|
|
151
|
+
"default": "./dist/extensions/table/style.css"
|
|
152
|
+
},
|
|
145
153
|
"./extensions/underline": {
|
|
146
154
|
"types": "./dist/prosekit-extensions-underline.d.ts",
|
|
147
155
|
"import": "./dist/prosekit-extensions-underline.js",
|
|
@@ -658,9 +666,9 @@
|
|
|
658
666
|
"dist"
|
|
659
667
|
],
|
|
660
668
|
"dependencies": {
|
|
661
|
-
"@prosekit/basic": "0.3.
|
|
669
|
+
"@prosekit/basic": "0.3.4",
|
|
662
670
|
"@prosekit/core": "0.4.0",
|
|
663
|
-
"@prosekit/extensions": "0.4.
|
|
671
|
+
"@prosekit/extensions": "0.4.2",
|
|
664
672
|
"@prosekit/lit": "0.2.7",
|
|
665
673
|
"@prosekit/pm": "0.1.2",
|
|
666
674
|
"@prosekit/preact": "0.2.6",
|
|
@@ -699,18 +707,18 @@
|
|
|
699
707
|
},
|
|
700
708
|
"devDependencies": {
|
|
701
709
|
"@prosekit/dev": "*",
|
|
702
|
-
"@types/react": "^18.2.
|
|
703
|
-
"@types/react-dom": "^18.2.
|
|
710
|
+
"@types/react": "^18.2.64",
|
|
711
|
+
"@types/react-dom": "^18.2.20",
|
|
704
712
|
"postcss": "^8.4.35",
|
|
705
|
-
"postcss-nesting": "^12.0
|
|
706
|
-
"preact": "^10.19.
|
|
713
|
+
"postcss-nesting": "^12.1.0",
|
|
714
|
+
"preact": "^10.19.6",
|
|
707
715
|
"react": "^18.2.0",
|
|
708
716
|
"react-dom": "^18.2.0",
|
|
709
717
|
"solid-js": "^1.8.15",
|
|
710
|
-
"svelte": "^4.2.
|
|
718
|
+
"svelte": "^4.2.12",
|
|
711
719
|
"tsup": "^8.0.2",
|
|
712
720
|
"typescript": "^5.3.3",
|
|
713
|
-
"vue": "^3.4.
|
|
721
|
+
"vue": "^3.4.21"
|
|
714
722
|
},
|
|
715
723
|
"scripts": {
|
|
716
724
|
"build:tsup": "tsup",
|
|
@@ -782,6 +790,9 @@
|
|
|
782
790
|
"extensions/strike": [
|
|
783
791
|
"./dist/prosekit-extensions-strike.d.ts"
|
|
784
792
|
],
|
|
793
|
+
"extensions/table": [
|
|
794
|
+
"./dist/prosekit-extensions-table.d.ts"
|
|
795
|
+
],
|
|
785
796
|
"extensions/underline": [
|
|
786
797
|
"./dist/prosekit-extensions-underline.d.ts"
|
|
787
798
|
],
|