prosekit 0.1.10 → 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.
- package/dist/_tsup-dts-rollup.d.ts +26 -14
- package/dist/basic/internal/preflight.css +5 -0
- package/dist/basic/style.css +1 -1
- package/dist/core/style.css +1 -1
- package/dist/pm/view/style/prosemirror.css +1 -1
- package/dist/prosekit-core.d.ts +3 -2
- package/dist/prosekit-extensions-code-block.d.ts +1 -0
- package/dist/prosekit-react.d.ts +2 -3
- package/dist/prosekit-vue.d.ts +4 -1
- package/package.json +10 -10
|
@@ -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,9 +219,11 @@ 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';
|
|
226
|
+
import { HighlightParser } from '@prosekit/extensions/code-block';
|
|
224
227
|
import { history as history_2 } from '@prosekit/pm/history';
|
|
225
228
|
import { ImageAttrs } from '@prosekit/extensions/image';
|
|
226
229
|
import { InlinePopover } from '@prosekit/lit/inline-popover';
|
|
@@ -286,7 +289,7 @@ import { NodeSpecOptions } from '@prosekit/core';
|
|
|
286
289
|
import { NodeType } from '@prosekit/pm/model';
|
|
287
290
|
import { NodeView } from '@prosekit/pm/view';
|
|
288
291
|
import { NodeViewConstructor } from '@prosekit/pm/view';
|
|
289
|
-
import {
|
|
292
|
+
import { NodeViewFactoryOptions } from '@prosekit/core';
|
|
290
293
|
import { NodeViewOptions } from '@prosekit/core';
|
|
291
294
|
import { openDoubleQuote } from '@prosekit/pm/inputrules';
|
|
292
295
|
import { openSingleQuote } from '@prosekit/pm/inputrules';
|
|
@@ -338,7 +341,6 @@ import { PropsWithChildren as PropsWithChildren_alias_1 } from '@prosekit/solid'
|
|
|
338
341
|
import { PropsWithClass } from '@prosekit/preact';
|
|
339
342
|
import { PropsWithClass as PropsWithClass_alias_1 } from '@prosekit/solid';
|
|
340
343
|
import { PropsWithClass as PropsWithClass_alias_2 } from '@prosekit/svelte';
|
|
341
|
-
import { PropsWithClass as PropsWithClass_alias_3 } from '@prosekit/vue';
|
|
342
344
|
import { PropsWithClassName } from '@prosekit/react';
|
|
343
345
|
import { ProseKit } from '@prosekit/preact';
|
|
344
346
|
import { ProseKit as ProseKit_alias_1 } from '@prosekit/react';
|
|
@@ -353,8 +355,9 @@ import { ProseKitProps as ProseKitProps_alias_3 } from '@prosekit/vue';
|
|
|
353
355
|
import { ProseMirrorFragment } from '@prosekit/pm/model';
|
|
354
356
|
import { ProseMirrorNode } from '@prosekit/pm/model';
|
|
355
357
|
import { ProseMirrorPlugin } from '@prosekit/pm/state';
|
|
356
|
-
import {
|
|
358
|
+
import { ReactNodeViewComponent } from '@prosekit/react';
|
|
357
359
|
import { ReactNodeViewOptions } from '@prosekit/react';
|
|
360
|
+
import { ReactNodeViewProps } from '@prosekit/react';
|
|
358
361
|
import { redo } from '@prosekit/pm/history';
|
|
359
362
|
import { redoDepth } from '@prosekit/pm/history';
|
|
360
363
|
import { removeMark } from '@prosekit/core';
|
|
@@ -409,7 +412,6 @@ import { useEditor as useEditor_alias_1 } from '@prosekit/react';
|
|
|
409
412
|
import { useEditor as useEditor_alias_2 } from '@prosekit/solid';
|
|
410
413
|
import { useEditor as useEditor_alias_3 } from '@prosekit/svelte';
|
|
411
414
|
import { useEditor as useEditor_alias_4 } from '@prosekit/vue';
|
|
412
|
-
import { UseEditorOptions } from '@prosekit/react';
|
|
413
415
|
import { useExtension } from '@prosekit/preact';
|
|
414
416
|
import { useExtension as useExtension_alias_1 } from '@prosekit/react';
|
|
415
417
|
import { useExtension as useExtension_alias_2 } from '@prosekit/solid';
|
|
@@ -420,7 +422,9 @@ import { useKeymap as useKeymap_alias_1 } from '@prosekit/react';
|
|
|
420
422
|
import { useKeymap as useKeymap_alias_2 } from '@prosekit/solid';
|
|
421
423
|
import { useKeymap as useKeymap_alias_3 } from '@prosekit/svelte';
|
|
422
424
|
import { useKeymap as useKeymap_alias_4 } from '@prosekit/vue';
|
|
423
|
-
import {
|
|
425
|
+
import { VueNodeViewComponent } from '@prosekit/vue';
|
|
426
|
+
import { VueNodeViewOptions } from '@prosekit/vue';
|
|
427
|
+
import { VueNodeViewProps } from '@prosekit/vue';
|
|
424
428
|
import { withPriority } from '@prosekit/core';
|
|
425
429
|
import { wrapIn } from '@prosekit/pm/commands';
|
|
426
430
|
import { wrappingInputRule } from '@prosekit/pm/inputrules';
|
|
@@ -779,7 +783,7 @@ export { defineNodeSpec }
|
|
|
779
783
|
|
|
780
784
|
export { defineNodeView }
|
|
781
785
|
|
|
782
|
-
export {
|
|
786
|
+
export { defineNodeViewFactory }
|
|
783
787
|
|
|
784
788
|
export { defineParagraph }
|
|
785
789
|
|
|
@@ -813,6 +817,8 @@ export { defineUnderlineSpec }
|
|
|
813
817
|
|
|
814
818
|
export { defineUpdateHandler }
|
|
815
819
|
|
|
820
|
+
export { defineVueNodeView }
|
|
821
|
+
|
|
816
822
|
export { deleteSelection }
|
|
817
823
|
|
|
818
824
|
export { DirectEditorProps }
|
|
@@ -867,12 +873,16 @@ export { findWrapping }
|
|
|
867
873
|
|
|
868
874
|
export { Fragment }
|
|
869
875
|
|
|
876
|
+
export { _getId }
|
|
877
|
+
|
|
870
878
|
export { getMarkType }
|
|
871
879
|
|
|
872
880
|
export { getNodeType }
|
|
873
881
|
|
|
874
882
|
export { HeadingAttrs }
|
|
875
883
|
|
|
884
|
+
export { HighlightParser }
|
|
885
|
+
|
|
876
886
|
export { history_2 as history }
|
|
877
887
|
|
|
878
888
|
export { ImageAttrs }
|
|
@@ -1003,7 +1013,7 @@ export { NodeView }
|
|
|
1003
1013
|
|
|
1004
1014
|
export { NodeViewConstructor }
|
|
1005
1015
|
|
|
1006
|
-
export {
|
|
1016
|
+
export { NodeViewFactoryOptions }
|
|
1007
1017
|
|
|
1008
1018
|
export { NodeViewOptions }
|
|
1009
1019
|
|
|
@@ -1105,8 +1115,6 @@ export { PropsWithClass_alias_1 }
|
|
|
1105
1115
|
|
|
1106
1116
|
export { PropsWithClass_alias_2 }
|
|
1107
1117
|
|
|
1108
|
-
export { PropsWithClass_alias_3 }
|
|
1109
|
-
|
|
1110
1118
|
export { PropsWithClassName }
|
|
1111
1119
|
|
|
1112
1120
|
export { ProseKit }
|
|
@@ -1135,10 +1143,12 @@ export { ProseMirrorNode }
|
|
|
1135
1143
|
|
|
1136
1144
|
export { ProseMirrorPlugin }
|
|
1137
1145
|
|
|
1138
|
-
export {
|
|
1146
|
+
export { ReactNodeViewComponent }
|
|
1139
1147
|
|
|
1140
1148
|
export { ReactNodeViewOptions }
|
|
1141
1149
|
|
|
1150
|
+
export { ReactNodeViewProps }
|
|
1151
|
+
|
|
1142
1152
|
export { redo }
|
|
1143
1153
|
|
|
1144
1154
|
export { redoDepth }
|
|
@@ -1247,8 +1257,6 @@ export { useEditor_alias_3 }
|
|
|
1247
1257
|
|
|
1248
1258
|
export { useEditor_alias_4 }
|
|
1249
1259
|
|
|
1250
|
-
export { UseEditorOptions }
|
|
1251
|
-
|
|
1252
1260
|
export { useExtension }
|
|
1253
1261
|
|
|
1254
1262
|
export { useExtension_alias_1 }
|
|
@@ -1269,7 +1277,11 @@ export { useKeymap_alias_3 }
|
|
|
1269
1277
|
|
|
1270
1278
|
export { useKeymap_alias_4 }
|
|
1271
1279
|
|
|
1272
|
-
export {
|
|
1280
|
+
export { VueNodeViewComponent }
|
|
1281
|
+
|
|
1282
|
+
export { VueNodeViewOptions }
|
|
1283
|
+
|
|
1284
|
+
export { VueNodeViewProps }
|
|
1273
1285
|
|
|
1274
1286
|
export { withPriority }
|
|
1275
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/basic/style.css
CHANGED
package/dist/core/style.css
CHANGED
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';
|
|
@@ -3,3 +3,4 @@ export { defineCodeBlockInputRule } from './_tsup-dts-rollup';
|
|
|
3
3
|
export { defineCodeBlockCommands } from './_tsup-dts-rollup';
|
|
4
4
|
export { defineCodeBlock } from './_tsup-dts-rollup';
|
|
5
5
|
export { CodeBlockAttrs } from './_tsup-dts-rollup';
|
|
6
|
+
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.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.
|
|
528
|
-
"@prosekit/extensions": "0.1.
|
|
529
|
-
"@prosekit/lit": "0.1.
|
|
527
|
+
"@prosekit/core": "0.1.8",
|
|
528
|
+
"@prosekit/extensions": "0.1.5",
|
|
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,16 +564,16 @@
|
|
|
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
|
-
"preact": "^10.19.
|
|
569
|
+
"preact": "^10.19.3",
|
|
570
570
|
"react": "^18.2.0",
|
|
571
571
|
"react-dom": "^18.2.0",
|
|
572
572
|
"solid-js": "^1.8.7",
|
|
573
573
|
"svelte": "^4.2.8",
|
|
574
574
|
"tsup": "^8.0.1",
|
|
575
|
-
"typescript": "^5.3.
|
|
576
|
-
"vue": "^3.3.
|
|
575
|
+
"typescript": "^5.3.3",
|
|
576
|
+
"vue": "^3.3.11"
|
|
577
577
|
},
|
|
578
578
|
"scripts": {
|
|
579
579
|
"build:tsup": "tsup",
|