prosekit 0.1.0 → 0.1.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.
|
@@ -275,6 +275,7 @@ import { newlineInCode } from '@prosekit/pm/commands';
|
|
|
275
275
|
import { Node as Node_2 } from '@prosekit/pm/model';
|
|
276
276
|
import { nodeFromElement } from '@prosekit/core';
|
|
277
277
|
import { nodeFromHTML } from '@prosekit/core';
|
|
278
|
+
import { nodeFromJSON } from '@prosekit/core';
|
|
278
279
|
import { NodeJSON } from '@prosekit/core';
|
|
279
280
|
import { NodeRange } from '@prosekit/pm/model';
|
|
280
281
|
import { NodeSelection } from '@prosekit/pm/state';
|
|
@@ -377,6 +378,7 @@ import { splitBlock } from '@prosekit/pm/commands';
|
|
|
377
378
|
import { splitBlockAs } from '@prosekit/pm/commands';
|
|
378
379
|
import { splitBlockKeepMarks } from '@prosekit/pm/commands';
|
|
379
380
|
import { StateField } from '@prosekit/pm/state';
|
|
381
|
+
import { stateFromJSON } from '@prosekit/core';
|
|
380
382
|
import { StateJSON } from '@prosekit/core';
|
|
381
383
|
import { Step } from '@prosekit/pm/transform';
|
|
382
384
|
import { StepMap } from '@prosekit/pm/transform';
|
|
@@ -969,6 +971,8 @@ export { nodeFromElement }
|
|
|
969
971
|
|
|
970
972
|
export { nodeFromHTML }
|
|
971
973
|
|
|
974
|
+
export { nodeFromJSON }
|
|
975
|
+
|
|
972
976
|
export { NodeJSON }
|
|
973
977
|
|
|
974
978
|
export { NodeRange }
|
|
@@ -1171,6 +1175,8 @@ export { splitBlockKeepMarks }
|
|
|
1171
1175
|
|
|
1172
1176
|
export { StateField }
|
|
1173
1177
|
|
|
1178
|
+
export { stateFromJSON }
|
|
1179
|
+
|
|
1174
1180
|
export { StateJSON }
|
|
1175
1181
|
|
|
1176
1182
|
export { Step }
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
width: 100%;
|
|
12
12
|
box-sizing: border-box;
|
|
13
|
-
padding: 8px;
|
|
14
13
|
font-family:
|
|
15
14
|
ui-sans-serif,
|
|
16
15
|
sans-serif,
|
|
@@ -23,9 +22,21 @@
|
|
|
23
22
|
*:has(> div.ProseMirror) * {
|
|
24
23
|
box-sizing: border-box;
|
|
25
24
|
}
|
|
25
|
+
.ProseMirror h1:first-of-type,
|
|
26
|
+
.ProseMirror h2:first-of-type,
|
|
27
|
+
.ProseMirror h3:first-of-type,
|
|
28
|
+
.ProseMirror h4:first-of-type,
|
|
29
|
+
.ProseMirror h5:first-of-type,
|
|
30
|
+
.ProseMirror h6:first-of-type,
|
|
26
31
|
.ProseMirror p:first-of-type {
|
|
27
32
|
margin-top: 0;
|
|
28
33
|
}
|
|
34
|
+
.ProseMirror h1:last-of-type,
|
|
35
|
+
.ProseMirror h2:last-of-type,
|
|
36
|
+
.ProseMirror h3:last-of-type,
|
|
37
|
+
.ProseMirror h4:last-of-type,
|
|
38
|
+
.ProseMirror h5:last-of-type,
|
|
39
|
+
.ProseMirror h6:last-of-type,
|
|
29
40
|
.ProseMirror p:last-of-type {
|
|
30
41
|
margin-bottom: 0;
|
|
31
42
|
}
|
package/dist/prosekit-core.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export { jsonFromNode } from './_tsup-dts-rollup';
|
|
|
57
57
|
export { jsonFromState } from './_tsup-dts-rollup';
|
|
58
58
|
export { nodeFromElement } from './_tsup-dts-rollup';
|
|
59
59
|
export { nodeFromHTML } from './_tsup-dts-rollup';
|
|
60
|
+
export { nodeFromJSON } from './_tsup-dts-rollup';
|
|
61
|
+
export { stateFromJSON } from './_tsup-dts-rollup';
|
|
60
62
|
export { isAllSelection } from './_tsup-dts-rollup';
|
|
61
63
|
export { isMark } from './_tsup-dts-rollup';
|
|
62
64
|
export { isNodeSelection } 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.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -519,13 +519,13 @@
|
|
|
519
519
|
],
|
|
520
520
|
"dependencies": {
|
|
521
521
|
"@prosekit/basic": "0.1.0",
|
|
522
|
-
"@prosekit/core": "0.1.
|
|
522
|
+
"@prosekit/core": "0.1.1",
|
|
523
523
|
"@prosekit/extensions": "0.1.0",
|
|
524
524
|
"@prosekit/lit": "0.1.0",
|
|
525
525
|
"@prosekit/pm": "0.1.0",
|
|
526
526
|
"@prosekit/preact": "0.1.0",
|
|
527
527
|
"@prosekit/react": "0.1.0",
|
|
528
|
-
"@prosekit/solid": "0.1.
|
|
528
|
+
"@prosekit/solid": "0.1.1",
|
|
529
529
|
"@prosekit/svelte": "0.1.0",
|
|
530
530
|
"@prosekit/vue": "0.1.0"
|
|
531
531
|
},
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
"@prosekit/dev": "*",
|
|
562
562
|
"@types/react": "^18.2.37",
|
|
563
563
|
"@types/react-dom": "^18.2.15",
|
|
564
|
-
"preact": "^10.
|
|
564
|
+
"preact": "^10.19.2",
|
|
565
565
|
"react": "^18.2.0",
|
|
566
566
|
"react-dom": "^18.2.0",
|
|
567
567
|
"solid-js": "^1.8.5",
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|