prosekit 0.1.11 → 0.1.13
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.
|
@@ -136,6 +136,7 @@ import { defineBoldSpec } from '@prosekit/extensions/bold';
|
|
|
136
136
|
import { defineCode } from '@prosekit/extensions/code';
|
|
137
137
|
import { defineCodeBlock } from '@prosekit/extensions/code-block';
|
|
138
138
|
import { defineCodeBlockCommands } from '@prosekit/extensions/code-block';
|
|
139
|
+
import { defineCodeBlockHighlight } from '@prosekit/extensions/code-block';
|
|
139
140
|
import { defineCodeBlockInputRule } from '@prosekit/extensions/code-block';
|
|
140
141
|
import { defineCodeBlockSpec } from '@prosekit/extensions/code-block';
|
|
141
142
|
import { defineCodeCommands } from '@prosekit/extensions/code';
|
|
@@ -174,7 +175,7 @@ import { defineMentionCommands } from '@prosekit/extensions/mention';
|
|
|
174
175
|
import { defineMentionSpec } from '@prosekit/extensions/mention';
|
|
175
176
|
import { defineNodeSpec } from '@prosekit/core';
|
|
176
177
|
import { defineNodeView } from '@prosekit/core';
|
|
177
|
-
import {
|
|
178
|
+
import { defineNodeViewFactory } from '@prosekit/core';
|
|
178
179
|
import { defineParagraph } from '@prosekit/core';
|
|
179
180
|
import { definePlaceholder } from '@prosekit/extensions/placeholder';
|
|
180
181
|
import { definePlugin } from '@prosekit/core';
|
|
@@ -191,6 +192,7 @@ import { defineUnderlineCommands } from '@prosekit/extensions/underline';
|
|
|
191
192
|
import { defineUnderlineKeymap } from '@prosekit/extensions/underline';
|
|
192
193
|
import { defineUnderlineSpec } from '@prosekit/extensions/underline';
|
|
193
194
|
import { defineUpdateHandler } from '@prosekit/core';
|
|
195
|
+
import { defineVueNodeView } from '@prosekit/vue';
|
|
194
196
|
import { deleteSelection } from '@prosekit/pm/commands';
|
|
195
197
|
import { DirectEditorProps } from '@prosekit/pm/view';
|
|
196
198
|
import { DocAttrStep } from '@prosekit/pm/transform';
|
|
@@ -218,6 +220,7 @@ import { Facet } from '@prosekit/core';
|
|
|
218
220
|
import { FacetOptions } from '@prosekit/core';
|
|
219
221
|
import { findWrapping } from '@prosekit/pm/transform';
|
|
220
222
|
import { Fragment } from '@prosekit/pm/model';
|
|
223
|
+
import { _getId } from '@prosekit/core';
|
|
221
224
|
import { getMarkType } from '@prosekit/core';
|
|
222
225
|
import { getNodeType } from '@prosekit/core';
|
|
223
226
|
import { HeadingAttrs } from '@prosekit/extensions/heading';
|
|
@@ -287,7 +290,7 @@ import { NodeSpecOptions } from '@prosekit/core';
|
|
|
287
290
|
import { NodeType } from '@prosekit/pm/model';
|
|
288
291
|
import { NodeView } from '@prosekit/pm/view';
|
|
289
292
|
import { NodeViewConstructor } from '@prosekit/pm/view';
|
|
290
|
-
import {
|
|
293
|
+
import { NodeViewFactoryOptions } from '@prosekit/core';
|
|
291
294
|
import { NodeViewOptions } from '@prosekit/core';
|
|
292
295
|
import { openDoubleQuote } from '@prosekit/pm/inputrules';
|
|
293
296
|
import { openSingleQuote } from '@prosekit/pm/inputrules';
|
|
@@ -339,7 +342,6 @@ import { PropsWithChildren as PropsWithChildren_alias_1 } from '@prosekit/solid'
|
|
|
339
342
|
import { PropsWithClass } from '@prosekit/preact';
|
|
340
343
|
import { PropsWithClass as PropsWithClass_alias_1 } from '@prosekit/solid';
|
|
341
344
|
import { PropsWithClass as PropsWithClass_alias_2 } from '@prosekit/svelte';
|
|
342
|
-
import { PropsWithClass as PropsWithClass_alias_3 } from '@prosekit/vue';
|
|
343
345
|
import { PropsWithClassName } from '@prosekit/react';
|
|
344
346
|
import { ProseKit } from '@prosekit/preact';
|
|
345
347
|
import { ProseKit as ProseKit_alias_1 } from '@prosekit/react';
|
|
@@ -354,8 +356,9 @@ import { ProseKitProps as ProseKitProps_alias_3 } from '@prosekit/vue';
|
|
|
354
356
|
import { ProseMirrorFragment } from '@prosekit/pm/model';
|
|
355
357
|
import { ProseMirrorNode } from '@prosekit/pm/model';
|
|
356
358
|
import { ProseMirrorPlugin } from '@prosekit/pm/state';
|
|
357
|
-
import {
|
|
359
|
+
import { ReactNodeViewComponent } from '@prosekit/react';
|
|
358
360
|
import { ReactNodeViewOptions } from '@prosekit/react';
|
|
361
|
+
import { ReactNodeViewProps } from '@prosekit/react';
|
|
359
362
|
import { redo } from '@prosekit/pm/history';
|
|
360
363
|
import { redoDepth } from '@prosekit/pm/history';
|
|
361
364
|
import { removeMark } from '@prosekit/core';
|
|
@@ -410,7 +413,6 @@ import { useEditor as useEditor_alias_1 } from '@prosekit/react';
|
|
|
410
413
|
import { useEditor as useEditor_alias_2 } from '@prosekit/solid';
|
|
411
414
|
import { useEditor as useEditor_alias_3 } from '@prosekit/svelte';
|
|
412
415
|
import { useEditor as useEditor_alias_4 } from '@prosekit/vue';
|
|
413
|
-
import { UseEditorOptions } from '@prosekit/react';
|
|
414
416
|
import { useExtension } from '@prosekit/preact';
|
|
415
417
|
import { useExtension as useExtension_alias_1 } from '@prosekit/react';
|
|
416
418
|
import { useExtension as useExtension_alias_2 } from '@prosekit/solid';
|
|
@@ -421,7 +423,9 @@ import { useKeymap as useKeymap_alias_1 } from '@prosekit/react';
|
|
|
421
423
|
import { useKeymap as useKeymap_alias_2 } from '@prosekit/solid';
|
|
422
424
|
import { useKeymap as useKeymap_alias_3 } from '@prosekit/svelte';
|
|
423
425
|
import { useKeymap as useKeymap_alias_4 } from '@prosekit/vue';
|
|
424
|
-
import {
|
|
426
|
+
import { VueNodeViewComponent } from '@prosekit/vue';
|
|
427
|
+
import { VueNodeViewOptions } from '@prosekit/vue';
|
|
428
|
+
import { VueNodeViewProps } from '@prosekit/vue';
|
|
425
429
|
import { withPriority } from '@prosekit/core';
|
|
426
430
|
import { wrapIn } from '@prosekit/pm/commands';
|
|
427
431
|
import { wrappingInputRule } from '@prosekit/pm/inputrules';
|
|
@@ -704,6 +708,8 @@ export { defineCodeBlock }
|
|
|
704
708
|
|
|
705
709
|
export { defineCodeBlockCommands }
|
|
706
710
|
|
|
711
|
+
export { defineCodeBlockHighlight }
|
|
712
|
+
|
|
707
713
|
export { defineCodeBlockInputRule }
|
|
708
714
|
|
|
709
715
|
export { defineCodeBlockSpec }
|
|
@@ -780,7 +786,7 @@ export { defineNodeSpec }
|
|
|
780
786
|
|
|
781
787
|
export { defineNodeView }
|
|
782
788
|
|
|
783
|
-
export {
|
|
789
|
+
export { defineNodeViewFactory }
|
|
784
790
|
|
|
785
791
|
export { defineParagraph }
|
|
786
792
|
|
|
@@ -814,6 +820,8 @@ export { defineUnderlineSpec }
|
|
|
814
820
|
|
|
815
821
|
export { defineUpdateHandler }
|
|
816
822
|
|
|
823
|
+
export { defineVueNodeView }
|
|
824
|
+
|
|
817
825
|
export { deleteSelection }
|
|
818
826
|
|
|
819
827
|
export { DirectEditorProps }
|
|
@@ -868,6 +876,8 @@ export { findWrapping }
|
|
|
868
876
|
|
|
869
877
|
export { Fragment }
|
|
870
878
|
|
|
879
|
+
export { _getId }
|
|
880
|
+
|
|
871
881
|
export { getMarkType }
|
|
872
882
|
|
|
873
883
|
export { getNodeType }
|
|
@@ -1006,7 +1016,7 @@ export { NodeView }
|
|
|
1006
1016
|
|
|
1007
1017
|
export { NodeViewConstructor }
|
|
1008
1018
|
|
|
1009
|
-
export {
|
|
1019
|
+
export { NodeViewFactoryOptions }
|
|
1010
1020
|
|
|
1011
1021
|
export { NodeViewOptions }
|
|
1012
1022
|
|
|
@@ -1108,8 +1118,6 @@ export { PropsWithClass_alias_1 }
|
|
|
1108
1118
|
|
|
1109
1119
|
export { PropsWithClass_alias_2 }
|
|
1110
1120
|
|
|
1111
|
-
export { PropsWithClass_alias_3 }
|
|
1112
|
-
|
|
1113
1121
|
export { PropsWithClassName }
|
|
1114
1122
|
|
|
1115
1123
|
export { ProseKit }
|
|
@@ -1138,10 +1146,12 @@ export { ProseMirrorNode }
|
|
|
1138
1146
|
|
|
1139
1147
|
export { ProseMirrorPlugin }
|
|
1140
1148
|
|
|
1141
|
-
export {
|
|
1149
|
+
export { ReactNodeViewComponent }
|
|
1142
1150
|
|
|
1143
1151
|
export { ReactNodeViewOptions }
|
|
1144
1152
|
|
|
1153
|
+
export { ReactNodeViewProps }
|
|
1154
|
+
|
|
1145
1155
|
export { redo }
|
|
1146
1156
|
|
|
1147
1157
|
export { redoDepth }
|
|
@@ -1250,8 +1260,6 @@ export { useEditor_alias_3 }
|
|
|
1250
1260
|
|
|
1251
1261
|
export { useEditor_alias_4 }
|
|
1252
1262
|
|
|
1253
|
-
export { UseEditorOptions }
|
|
1254
|
-
|
|
1255
1263
|
export { useExtension }
|
|
1256
1264
|
|
|
1257
1265
|
export { useExtension_alias_1 }
|
|
@@ -1272,7 +1280,11 @@ export { useKeymap_alias_3 }
|
|
|
1272
1280
|
|
|
1273
1281
|
export { useKeymap_alias_4 }
|
|
1274
1282
|
|
|
1275
|
-
export {
|
|
1283
|
+
export { VueNodeViewComponent }
|
|
1284
|
+
|
|
1285
|
+
export { VueNodeViewOptions }
|
|
1286
|
+
|
|
1287
|
+
export { VueNodeViewProps }
|
|
1276
1288
|
|
|
1277
1289
|
export { withPriority }
|
|
1278
1290
|
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
}
|
|
22
22
|
div.ProseMirror {
|
|
23
|
+
& {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
23
27
|
& p:first-child,
|
|
24
28
|
& h1:first-child,
|
|
25
29
|
& h2:first-child,
|
|
@@ -91,6 +95,7 @@ div.ProseMirror {
|
|
|
91
95
|
font-weight: 600;
|
|
92
96
|
}
|
|
93
97
|
& pre {
|
|
98
|
+
margin: 0.5rem 0;
|
|
94
99
|
padding: 2rem 2rem;
|
|
95
100
|
overflow-x: auto;
|
|
96
101
|
border-radius: 0.375rem;
|
package/dist/prosekit-core.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { _getId } from './_tsup-dts-rollup';
|
|
1
2
|
export { addMark } from './_tsup-dts-rollup';
|
|
2
3
|
export { insertNode } from './_tsup-dts-rollup';
|
|
3
4
|
export { removeMark } from './_tsup-dts-rollup';
|
|
@@ -26,8 +27,8 @@ export { defineNodeSpec } from './_tsup-dts-rollup';
|
|
|
26
27
|
export { NodeSpecOptions } from './_tsup-dts-rollup';
|
|
27
28
|
export { defineNodeView } from './_tsup-dts-rollup';
|
|
28
29
|
export { NodeViewOptions } from './_tsup-dts-rollup';
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
30
|
+
export { defineNodeViewFactory } from './_tsup-dts-rollup';
|
|
31
|
+
export { NodeViewFactoryOptions } from './_tsup-dts-rollup';
|
|
31
32
|
export { defineParagraph } from './_tsup-dts-rollup';
|
|
32
33
|
export { definePlugin } from './_tsup-dts-rollup';
|
|
33
34
|
export { pluginFacet } from './_tsup-dts-rollup';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { defineCodeBlockSpec } from './_tsup-dts-rollup';
|
|
2
|
-
export { defineCodeBlockInputRule } from './_tsup-dts-rollup';
|
|
3
|
-
export { defineCodeBlockCommands } from './_tsup-dts-rollup';
|
|
4
1
|
export { defineCodeBlock } from './_tsup-dts-rollup';
|
|
2
|
+
export { defineCodeBlockCommands } from './_tsup-dts-rollup';
|
|
3
|
+
export { defineCodeBlockHighlight } from './_tsup-dts-rollup';
|
|
4
|
+
export { defineCodeBlockInputRule } from './_tsup-dts-rollup';
|
|
5
|
+
export { defineCodeBlockSpec } from './_tsup-dts-rollup';
|
|
5
6
|
export { CodeBlockAttrs } from './_tsup-dts-rollup';
|
|
6
7
|
export { HighlightParser } from './_tsup-dts-rollup';
|
package/dist/prosekit-react.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ReactNodeViewComponent } from './_tsup-dts-rollup';
|
|
2
2
|
export { ProseKit_alias_1 as ProseKit } from './_tsup-dts-rollup';
|
|
3
3
|
export { ProseKitProps_alias_1 as ProseKitProps } from './_tsup-dts-rollup';
|
|
4
4
|
export { defineReactNodeView } from './_tsup-dts-rollup';
|
|
5
|
-
export { ReactNodeViewComponentProps } from './_tsup-dts-rollup';
|
|
6
5
|
export { ReactNodeViewOptions } from './_tsup-dts-rollup';
|
|
7
6
|
export { useEditor_alias_1 as useEditor } from './_tsup-dts-rollup';
|
|
8
|
-
export { UseEditorOptions } from './_tsup-dts-rollup';
|
|
9
7
|
export { useExtension_alias_1 as useExtension } from './_tsup-dts-rollup';
|
|
10
8
|
export { useKeymap_alias_1 as useKeymap } from './_tsup-dts-rollup';
|
|
11
9
|
export { PropsWithClassName } from './_tsup-dts-rollup';
|
|
10
|
+
export { ReactNodeViewProps } from './_tsup-dts-rollup';
|
package/dist/prosekit-vue.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { ProseKit_alias_4 as ProseKit } from './_tsup-dts-rollup';
|
|
2
2
|
export { ProseKitProps_alias_3 as ProseKitProps } from './_tsup-dts-rollup';
|
|
3
|
+
export { defineVueNodeView } from './_tsup-dts-rollup';
|
|
4
|
+
export { VueNodeViewOptions } from './_tsup-dts-rollup';
|
|
3
5
|
export { useEditor_alias_4 as useEditor } from './_tsup-dts-rollup';
|
|
4
6
|
export { useExtension_alias_4 as useExtension } from './_tsup-dts-rollup';
|
|
5
7
|
export { useKeymap_alias_4 as useKeymap } from './_tsup-dts-rollup';
|
|
6
|
-
export {
|
|
8
|
+
export { VueNodeViewComponent } from './_tsup-dts-rollup';
|
|
9
|
+
export { VueNodeViewProps } 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.13",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -524,15 +524,15 @@
|
|
|
524
524
|
],
|
|
525
525
|
"dependencies": {
|
|
526
526
|
"@prosekit/basic": "0.1.0",
|
|
527
|
-
"@prosekit/core": "0.1.
|
|
528
|
-
"@prosekit/extensions": "0.1.
|
|
527
|
+
"@prosekit/core": "0.1.8",
|
|
528
|
+
"@prosekit/extensions": "0.1.6",
|
|
529
529
|
"@prosekit/lit": "0.1.4",
|
|
530
530
|
"@prosekit/pm": "0.1.1",
|
|
531
531
|
"@prosekit/preact": "0.1.2",
|
|
532
|
-
"@prosekit/react": "0.1.
|
|
532
|
+
"@prosekit/react": "0.1.3",
|
|
533
533
|
"@prosekit/solid": "0.1.3",
|
|
534
534
|
"@prosekit/svelte": "0.1.2",
|
|
535
|
-
"@prosekit/vue": "0.1.
|
|
535
|
+
"@prosekit/vue": "0.1.3"
|
|
536
536
|
},
|
|
537
537
|
"peerDependencies": {
|
|
538
538
|
"preact": ">= 9.0.0",
|
|
@@ -564,8 +564,8 @@
|
|
|
564
564
|
},
|
|
565
565
|
"devDependencies": {
|
|
566
566
|
"@prosekit/dev": "*",
|
|
567
|
-
"@types/react": "^18.2.
|
|
568
|
-
"@types/react-dom": "^18.2.
|
|
567
|
+
"@types/react": "^18.2.45",
|
|
568
|
+
"@types/react-dom": "^18.2.18",
|
|
569
569
|
"preact": "^10.19.3",
|
|
570
570
|
"react": "^18.2.0",
|
|
571
571
|
"react-dom": "^18.2.0",
|