prosekit 0.1.11 → 0.1.12
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.
|
@@ -174,7 +174,7 @@ import { defineMentionCommands } from '@prosekit/extensions/mention';
|
|
|
174
174
|
import { defineMentionSpec } from '@prosekit/extensions/mention';
|
|
175
175
|
import { defineNodeSpec } from '@prosekit/core';
|
|
176
176
|
import { defineNodeView } from '@prosekit/core';
|
|
177
|
-
import {
|
|
177
|
+
import { defineNodeViewFactory } from '@prosekit/core';
|
|
178
178
|
import { defineParagraph } from '@prosekit/core';
|
|
179
179
|
import { definePlaceholder } from '@prosekit/extensions/placeholder';
|
|
180
180
|
import { definePlugin } from '@prosekit/core';
|
|
@@ -191,6 +191,7 @@ import { defineUnderlineCommands } from '@prosekit/extensions/underline';
|
|
|
191
191
|
import { defineUnderlineKeymap } from '@prosekit/extensions/underline';
|
|
192
192
|
import { defineUnderlineSpec } from '@prosekit/extensions/underline';
|
|
193
193
|
import { defineUpdateHandler } from '@prosekit/core';
|
|
194
|
+
import { defineVueNodeView } from '@prosekit/vue';
|
|
194
195
|
import { deleteSelection } from '@prosekit/pm/commands';
|
|
195
196
|
import { DirectEditorProps } from '@prosekit/pm/view';
|
|
196
197
|
import { DocAttrStep } from '@prosekit/pm/transform';
|
|
@@ -218,6 +219,7 @@ import { Facet } from '@prosekit/core';
|
|
|
218
219
|
import { FacetOptions } from '@prosekit/core';
|
|
219
220
|
import { findWrapping } from '@prosekit/pm/transform';
|
|
220
221
|
import { Fragment } from '@prosekit/pm/model';
|
|
222
|
+
import { _getId } from '@prosekit/core';
|
|
221
223
|
import { getMarkType } from '@prosekit/core';
|
|
222
224
|
import { getNodeType } from '@prosekit/core';
|
|
223
225
|
import { HeadingAttrs } from '@prosekit/extensions/heading';
|
|
@@ -287,7 +289,7 @@ import { NodeSpecOptions } from '@prosekit/core';
|
|
|
287
289
|
import { NodeType } from '@prosekit/pm/model';
|
|
288
290
|
import { NodeView } from '@prosekit/pm/view';
|
|
289
291
|
import { NodeViewConstructor } from '@prosekit/pm/view';
|
|
290
|
-
import {
|
|
292
|
+
import { NodeViewFactoryOptions } from '@prosekit/core';
|
|
291
293
|
import { NodeViewOptions } from '@prosekit/core';
|
|
292
294
|
import { openDoubleQuote } from '@prosekit/pm/inputrules';
|
|
293
295
|
import { openSingleQuote } from '@prosekit/pm/inputrules';
|
|
@@ -339,7 +341,6 @@ import { PropsWithChildren as PropsWithChildren_alias_1 } from '@prosekit/solid'
|
|
|
339
341
|
import { PropsWithClass } from '@prosekit/preact';
|
|
340
342
|
import { PropsWithClass as PropsWithClass_alias_1 } from '@prosekit/solid';
|
|
341
343
|
import { PropsWithClass as PropsWithClass_alias_2 } from '@prosekit/svelte';
|
|
342
|
-
import { PropsWithClass as PropsWithClass_alias_3 } from '@prosekit/vue';
|
|
343
344
|
import { PropsWithClassName } from '@prosekit/react';
|
|
344
345
|
import { ProseKit } from '@prosekit/preact';
|
|
345
346
|
import { ProseKit as ProseKit_alias_1 } from '@prosekit/react';
|
|
@@ -354,8 +355,9 @@ import { ProseKitProps as ProseKitProps_alias_3 } from '@prosekit/vue';
|
|
|
354
355
|
import { ProseMirrorFragment } from '@prosekit/pm/model';
|
|
355
356
|
import { ProseMirrorNode } from '@prosekit/pm/model';
|
|
356
357
|
import { ProseMirrorPlugin } from '@prosekit/pm/state';
|
|
357
|
-
import {
|
|
358
|
+
import { ReactNodeViewComponent } from '@prosekit/react';
|
|
358
359
|
import { ReactNodeViewOptions } from '@prosekit/react';
|
|
360
|
+
import { ReactNodeViewProps } from '@prosekit/react';
|
|
359
361
|
import { redo } from '@prosekit/pm/history';
|
|
360
362
|
import { redoDepth } from '@prosekit/pm/history';
|
|
361
363
|
import { removeMark } from '@prosekit/core';
|
|
@@ -410,7 +412,6 @@ import { useEditor as useEditor_alias_1 } from '@prosekit/react';
|
|
|
410
412
|
import { useEditor as useEditor_alias_2 } from '@prosekit/solid';
|
|
411
413
|
import { useEditor as useEditor_alias_3 } from '@prosekit/svelte';
|
|
412
414
|
import { useEditor as useEditor_alias_4 } from '@prosekit/vue';
|
|
413
|
-
import { UseEditorOptions } from '@prosekit/react';
|
|
414
415
|
import { useExtension } from '@prosekit/preact';
|
|
415
416
|
import { useExtension as useExtension_alias_1 } from '@prosekit/react';
|
|
416
417
|
import { useExtension as useExtension_alias_2 } from '@prosekit/solid';
|
|
@@ -421,7 +422,9 @@ import { useKeymap as useKeymap_alias_1 } from '@prosekit/react';
|
|
|
421
422
|
import { useKeymap as useKeymap_alias_2 } from '@prosekit/solid';
|
|
422
423
|
import { useKeymap as useKeymap_alias_3 } from '@prosekit/svelte';
|
|
423
424
|
import { useKeymap as useKeymap_alias_4 } from '@prosekit/vue';
|
|
424
|
-
import {
|
|
425
|
+
import { VueNodeViewComponent } from '@prosekit/vue';
|
|
426
|
+
import { VueNodeViewOptions } from '@prosekit/vue';
|
|
427
|
+
import { VueNodeViewProps } from '@prosekit/vue';
|
|
425
428
|
import { withPriority } from '@prosekit/core';
|
|
426
429
|
import { wrapIn } from '@prosekit/pm/commands';
|
|
427
430
|
import { wrappingInputRule } from '@prosekit/pm/inputrules';
|
|
@@ -780,7 +783,7 @@ export { defineNodeSpec }
|
|
|
780
783
|
|
|
781
784
|
export { defineNodeView }
|
|
782
785
|
|
|
783
|
-
export {
|
|
786
|
+
export { defineNodeViewFactory }
|
|
784
787
|
|
|
785
788
|
export { defineParagraph }
|
|
786
789
|
|
|
@@ -814,6 +817,8 @@ export { defineUnderlineSpec }
|
|
|
814
817
|
|
|
815
818
|
export { defineUpdateHandler }
|
|
816
819
|
|
|
820
|
+
export { defineVueNodeView }
|
|
821
|
+
|
|
817
822
|
export { deleteSelection }
|
|
818
823
|
|
|
819
824
|
export { DirectEditorProps }
|
|
@@ -868,6 +873,8 @@ export { findWrapping }
|
|
|
868
873
|
|
|
869
874
|
export { Fragment }
|
|
870
875
|
|
|
876
|
+
export { _getId }
|
|
877
|
+
|
|
871
878
|
export { getMarkType }
|
|
872
879
|
|
|
873
880
|
export { getNodeType }
|
|
@@ -1006,7 +1013,7 @@ export { NodeView }
|
|
|
1006
1013
|
|
|
1007
1014
|
export { NodeViewConstructor }
|
|
1008
1015
|
|
|
1009
|
-
export {
|
|
1016
|
+
export { NodeViewFactoryOptions }
|
|
1010
1017
|
|
|
1011
1018
|
export { NodeViewOptions }
|
|
1012
1019
|
|
|
@@ -1108,8 +1115,6 @@ export { PropsWithClass_alias_1 }
|
|
|
1108
1115
|
|
|
1109
1116
|
export { PropsWithClass_alias_2 }
|
|
1110
1117
|
|
|
1111
|
-
export { PropsWithClass_alias_3 }
|
|
1112
|
-
|
|
1113
1118
|
export { PropsWithClassName }
|
|
1114
1119
|
|
|
1115
1120
|
export { ProseKit }
|
|
@@ -1138,10 +1143,12 @@ export { ProseMirrorNode }
|
|
|
1138
1143
|
|
|
1139
1144
|
export { ProseMirrorPlugin }
|
|
1140
1145
|
|
|
1141
|
-
export {
|
|
1146
|
+
export { ReactNodeViewComponent }
|
|
1142
1147
|
|
|
1143
1148
|
export { ReactNodeViewOptions }
|
|
1144
1149
|
|
|
1150
|
+
export { ReactNodeViewProps }
|
|
1151
|
+
|
|
1145
1152
|
export { redo }
|
|
1146
1153
|
|
|
1147
1154
|
export { redoDepth }
|
|
@@ -1250,8 +1257,6 @@ export { useEditor_alias_3 }
|
|
|
1250
1257
|
|
|
1251
1258
|
export { useEditor_alias_4 }
|
|
1252
1259
|
|
|
1253
|
-
export { UseEditorOptions }
|
|
1254
|
-
|
|
1255
1260
|
export { useExtension }
|
|
1256
1261
|
|
|
1257
1262
|
export { useExtension_alias_1 }
|
|
@@ -1272,7 +1277,11 @@ export { useKeymap_alias_3 }
|
|
|
1272
1277
|
|
|
1273
1278
|
export { useKeymap_alias_4 }
|
|
1274
1279
|
|
|
1275
|
-
export {
|
|
1280
|
+
export { VueNodeViewComponent }
|
|
1281
|
+
|
|
1282
|
+
export { VueNodeViewOptions }
|
|
1283
|
+
|
|
1284
|
+
export { VueNodeViewProps }
|
|
1276
1285
|
|
|
1277
1286
|
export { withPriority }
|
|
1278
1287
|
|
|
@@ -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';
|
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.12",
|
|
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.
|
|
527
|
+
"@prosekit/core": "0.1.8",
|
|
528
528
|
"@prosekit/extensions": "0.1.5",
|
|
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,7 +564,7 @@
|
|
|
564
564
|
},
|
|
565
565
|
"devDependencies": {
|
|
566
566
|
"@prosekit/dev": "*",
|
|
567
|
-
"@types/react": "^18.2.
|
|
567
|
+
"@types/react": "^18.2.45",
|
|
568
568
|
"@types/react-dom": "^18.2.17",
|
|
569
569
|
"preact": "^10.19.3",
|
|
570
570
|
"react": "^18.2.0",
|