@prosekit/vue 0.1.3 → 0.1.4
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 +10 -7
- package/dist/prosekit-vue.js +3 -1
- package/package.json +6 -6
@@ -1,15 +1,14 @@
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
2
1
|
import type { Attrs } from '@prosekit/pm/model';
|
3
2
|
import { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/lit/autocomplete-empty';
|
4
3
|
import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/lit/autocomplete-item';
|
5
4
|
import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/autocomplete-list';
|
6
5
|
import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/autocomplete-popover';
|
6
|
+
import { BaseNodeViewOptions } from '@prosekit/core';
|
7
7
|
import { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/combo-box-input';
|
8
8
|
import { ComboBoxItemProps as ComboBoxItemProps_2 } from '@prosekit/lit/combo-box-item';
|
9
9
|
import { ComboBoxListProps as ComboBoxListProps_2 } from '@prosekit/lit/combo-box-list';
|
10
10
|
import { ComboBoxProps as ComboBoxProps_2 } from '@prosekit/lit/combo-box';
|
11
11
|
import { CommandArgs } from '@prosekit/core';
|
12
|
-
import { ComponentCustomProps } from 'vue';
|
13
12
|
import { ComponentOptionsMixin } from 'vue';
|
14
13
|
import { CoreNodeView } from '@prosemirror-adapter/core';
|
15
14
|
import type { CoreNodeViewSpec } from '@prosemirror-adapter/core';
|
@@ -32,12 +31,12 @@ import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
|
|
32
31
|
import { PopoverOptions as PopoverOptions_alias_1 } from '@prosekit/lit/inline-popover';
|
33
32
|
import { PopoverProps as PopoverProps_2 } from '@prosekit/lit/popover';
|
34
33
|
import { Priority } from '@prosekit/core';
|
34
|
+
import { PublicProps } from 'vue';
|
35
35
|
import { Ref } from 'vue';
|
36
36
|
import { RendererElement } from 'vue';
|
37
37
|
import { RendererNode } from 'vue';
|
38
38
|
import { ShallowRef } from 'vue';
|
39
39
|
import { VNode } from 'vue';
|
40
|
-
import { VNodeProps } from 'vue';
|
41
40
|
import type { VNodeRef } from 'vue';
|
42
41
|
|
43
42
|
declare const AutocompleteEmpty: (props: AutocompleteEmptyProps_2 & {
|
@@ -224,11 +223,15 @@ export { VueNodeViewComponent as VueNodeViewComponent_alias_1 }
|
|
224
223
|
*
|
225
224
|
* @public
|
226
225
|
*/
|
227
|
-
declare interface VueNodeViewOptions extends
|
226
|
+
declare interface VueNodeViewOptions extends BaseNodeViewOptions {
|
228
227
|
/**
|
229
|
-
* The name of the node.
|
228
|
+
* The name of the node type.
|
230
229
|
*/
|
231
230
|
name: string;
|
231
|
+
/**
|
232
|
+
* The Vue component to render the node.
|
233
|
+
*/
|
234
|
+
component: VueNodeViewComponent;
|
232
235
|
}
|
233
236
|
export { VueNodeViewOptions }
|
234
237
|
export { VueNodeViewOptions as VueNodeViewOptions_alias_1 }
|
@@ -265,11 +268,11 @@ export declare interface VueRendererResult {
|
|
265
268
|
readonly removeVueRenderer: (renderer: VueRenderer<unknown>) => void;
|
266
269
|
}
|
267
270
|
|
268
|
-
export declare const VueViewsConsumer: DefineComponent< {}, () => null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
271
|
+
export declare const VueViewsConsumer: DefineComponent< {}, () => null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
269
272
|
|
270
273
|
declare const VueViewsProvider: DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
271
274
|
[key: string]: any;
|
272
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
275
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
273
276
|
export { VueViewsProvider }
|
274
277
|
export { VueViewsProvider as VueViewsProvider_alias_1 }
|
275
278
|
|
package/dist/prosekit-vue.js
CHANGED
@@ -186,7 +186,9 @@ var VueViewsProvider = defineComponent2({
|
|
186
186
|
import { computed, defineComponent as defineComponent3 } from "vue";
|
187
187
|
|
188
188
|
// src/extensions/vue-node-view.ts
|
189
|
-
import {
|
189
|
+
import {
|
190
|
+
defineNodeViewFactory
|
191
|
+
} from "@prosekit/core";
|
190
192
|
function defineVueNodeView(options) {
|
191
193
|
const { name, ...userOptions } = options;
|
192
194
|
return defineNodeViewFactory({
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/vue",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.1.
|
4
|
+
"version": "0.1.4",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -85,9 +85,9 @@
|
|
85
85
|
"dist"
|
86
86
|
],
|
87
87
|
"dependencies": {
|
88
|
-
"@prosekit/core": "^0.
|
89
|
-
"@prosekit/lit": "^0.1.
|
90
|
-
"@prosekit/pm": "^0.1.
|
88
|
+
"@prosekit/core": "^0.2.0",
|
89
|
+
"@prosekit/lit": "^0.1.5",
|
90
|
+
"@prosekit/pm": "^0.1.1",
|
91
91
|
"@prosemirror-adapter/core": "^0.2.6"
|
92
92
|
},
|
93
93
|
"peerDependencies": {
|
@@ -102,8 +102,8 @@
|
|
102
102
|
"@prosekit/dev": "*",
|
103
103
|
"tsup": "^8.0.1",
|
104
104
|
"typescript": "^5.3.3",
|
105
|
-
"vitest": "^1.0
|
106
|
-
"vue": "^3.
|
105
|
+
"vitest": "^1.1.0",
|
106
|
+
"vue": "^3.4.0-rc.2"
|
107
107
|
},
|
108
108
|
"scripts": {
|
109
109
|
"build:tsup": "tsup",
|