@prosekit/vue 0.2.5 → 0.2.7

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.
@@ -18,6 +18,7 @@ import type { CoreNodeViewUserOptions } from '@prosemirror-adapter/core';
18
18
  import type { Decoration } from '@prosekit/pm/view';
19
19
  import type { DecorationSource } from '@prosekit/pm/view';
20
20
  import { DefineComponent } from 'vue';
21
+ import { DefineSetupFnComponent } from 'vue';
21
22
  import { DragHandleProps as DragHandleProps_2 } from '@prosekit/lit/drag-handle';
22
23
  import { Editor } from '@prosekit/core';
23
24
  import type { EditorState } from '@prosekit/pm/state';
@@ -32,7 +33,10 @@ import { MaybeRefOrGetter } from 'vue';
32
33
  import type { Node as Node_2 } from '@prosekit/pm/model';
33
34
  import type { NodeViewConstructor } from '@prosekit/pm/view';
34
35
  import { Options } from 'tsup';
36
+ import { PopoverContentProps as PopoverContentProps_2 } from '@prosekit/lit/popover-content';
35
37
  import { PopoverProps as PopoverProps_2 } from '@prosekit/lit/popover';
38
+ import { PopoverRootProps as PopoverRootProps_2 } from '@prosekit/lit/popover-root';
39
+ import { PopoverTriggerProps as PopoverTriggerProps_2 } from '@prosekit/lit/popover-trigger';
36
40
  import { PositioningOptions } from '@prosekit/lit/autocomplete-popover';
37
41
  import { PositioningOptions as PositioningOptions_alias_1 } from '@prosekit/lit/inline-popover';
38
42
  import { Priority } from '@prosekit/core';
@@ -47,9 +51,7 @@ import { ShallowRef } from 'vue';
47
51
  import { VNode } from 'vue';
48
52
  import type { VNodeRef } from 'vue';
49
53
 
50
- declare const AutocompleteEmpty: (props: AutocompleteEmptyProps_2 & {
51
- class?: string | undefined;
52
- } & {}) => any;
54
+ declare const AutocompleteEmpty: DefineSetupFnComponent<AutocompleteEmptyProps>;
53
55
  export { AutocompleteEmpty }
54
56
  export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
55
57
 
@@ -57,9 +59,7 @@ declare type AutocompleteEmptyProps = PropsWithClass<AutocompleteEmptyProps_2>;
57
59
  export { AutocompleteEmptyProps }
58
60
  export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
59
61
 
60
- declare const AutocompleteItem: (props: AutocompleteItemProps_2 & {
61
- class?: string | undefined;
62
- } & {}) => any;
62
+ declare const AutocompleteItem: DefineSetupFnComponent<AutocompleteItemProps>;
63
63
  export { AutocompleteItem }
64
64
  export { AutocompleteItem as AutocompleteItem_alias_1 }
65
65
 
@@ -67,9 +67,7 @@ declare type AutocompleteItemProps = PropsWithClass<AutocompleteItemProps_2>;
67
67
  export { AutocompleteItemProps }
68
68
  export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
69
69
 
70
- declare const AutocompleteList: (props: AutocompleteListProps_2 & {
71
- class?: string | undefined;
72
- } & {}) => any;
70
+ declare const AutocompleteList: DefineSetupFnComponent<AutocompleteListProps>;
73
71
  export { AutocompleteList }
74
72
  export { AutocompleteList as AutocompleteList_alias_1 }
75
73
 
@@ -77,9 +75,7 @@ declare type AutocompleteListProps = PropsWithClass<AutocompleteListProps_2>;
77
75
  export { AutocompleteListProps }
78
76
  export { AutocompleteListProps as AutocompleteListProps_alias_1 }
79
77
 
80
- declare const AutocompletePopover: (props: AutocompletePopoverProps_2 & {
81
- class?: string | undefined;
82
- } & {}) => any;
78
+ declare const AutocompletePopover: DefineSetupFnComponent<AutocompletePopoverProps>;
83
79
  export { AutocompletePopover }
84
80
  export { AutocompletePopover as AutocompletePopover_alias_1 }
85
81
 
@@ -87,31 +83,21 @@ declare type AutocompletePopoverProps = PropsWithClass<AutocompletePopoverProps_
87
83
  export { AutocompletePopoverProps }
88
84
  export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
89
85
 
90
- export declare const BlockPopover: (props: BlockPopoverProps_2 & {
91
- class?: string | undefined;
92
- } & {}) => any;
86
+ export declare const BlockPopover: DefineSetupFnComponent<BlockPopoverProps>;
93
87
 
94
88
  export declare type BlockPopoverProps = PropsWithClass<BlockPopoverProps_2>;
95
89
 
96
- export declare const ComboBox: (props: ComboBoxProps_2 & {
97
- class?: string | undefined;
98
- } & {}) => any;
90
+ export declare const ComboBox: DefineSetupFnComponent<ComboBoxProps>;
99
91
 
100
- export declare const ComboBoxInput: (props: ComboBoxInputProps_2 & {
101
- class?: string | undefined;
102
- } & {}) => any;
92
+ export declare const ComboBoxInput: DefineSetupFnComponent<ComboBoxInputProps>;
103
93
 
104
94
  export declare type ComboBoxInputProps = PropsWithClass<ComboBoxInputProps_2>;
105
95
 
106
- export declare const ComboBoxItem: (props: ComboBoxItemProps_2 & {
107
- class?: string | undefined;
108
- } & {}) => any;
96
+ export declare const ComboBoxItem: DefineSetupFnComponent<ComboBoxItemProps>;
109
97
 
110
98
  export declare type ComboBoxItemProps = PropsWithClass<ComboBoxItemProps_2>;
111
99
 
112
- export declare const ComboBoxList: (props: ComboBoxListProps_2 & {
113
- class?: string | undefined;
114
- } & {}) => any;
100
+ export declare const ComboBoxList: DefineSetupFnComponent<ComboBoxListProps>;
115
101
 
116
102
  export declare type ComboBoxListProps = PropsWithClass<ComboBoxListProps_2>;
117
103
 
@@ -141,18 +127,11 @@ export { defineVueNodeView as defineVueNodeView_alias_1 }
141
127
  */
142
128
  export declare function defineVueNodeViewFactory(nodeViewFactory: NodeViewFactory): Extension<ExtensionTyping<string, string, CommandArgs>>;
143
129
 
144
- export declare const DragHandle: (props: DragHandleProps_2 & {
145
- class?: string | undefined;
146
- } & {}) => any;
130
+ export declare const DragHandle: DefineSetupFnComponent<DragHandleProps>;
147
131
 
148
132
  export declare type DragHandleProps = PropsWithClass<DragHandleProps_2>;
149
133
 
150
- declare const InlinePopover: (props: {
151
- editor: Editor<any>;
152
- available?: boolean | undefined;
153
- } & PopoverProps_2 & {
154
- class?: string | undefined;
155
- } & {}) => any;
134
+ declare const InlinePopover: DefineSetupFnComponent<InlinePopoverProps>;
156
135
  export { InlinePopover }
157
136
  export { InlinePopover as InlinePopover_alias_1 }
158
137
 
@@ -164,12 +143,22 @@ export declare type NodeViewFactory = (options: VueNodeViewUserOptions) => NodeV
164
143
 
165
144
  export declare const nodeViewFactoryKey: InjectionKey<NodeViewFactory>;
166
145
 
167
- export declare const Popover: (props: PopoverProps_2 & {
168
- class?: string | undefined;
169
- } & {}) => any;
146
+ export declare const Popover: DefineSetupFnComponent<PopoverProps>;
147
+
148
+ export declare const PopoverContent: DefineSetupFnComponent<PopoverContentProps>;
149
+
150
+ export declare type PopoverContentProps = PropsWithClass<PopoverContentProps_2>;
170
151
 
171
152
  export declare type PopoverProps = PropsWithClass<PopoverProps_2>;
172
153
 
154
+ export declare const PopoverRoot: DefineSetupFnComponent<PopoverRootProps>;
155
+
156
+ export declare type PopoverRootProps = PropsWithClass<PopoverRootProps_2>;
157
+
158
+ export declare const PopoverTrigger: DefineSetupFnComponent<PopoverTriggerProps>;
159
+
160
+ export declare type PopoverTriggerProps = PropsWithClass<PopoverTriggerProps_2>;
161
+
173
162
  export { PositioningOptions }
174
163
 
175
164
  export { PositioningOptions_alias_1 }
@@ -186,7 +175,7 @@ export declare type PropsWithClass<P = unknown> = P & {
186
175
  *
187
176
  * @public
188
177
  */
189
- declare const ProseKit: (props: ProseKitProps & {}) => any;
178
+ declare const ProseKit: DefineSetupFnComponent<ProseKitProps, {}, {}, ProseKitProps & {}, PublicProps>;
190
179
  export { ProseKit }
191
180
  export { ProseKit as ProseKit_alias_1 }
192
181
 
@@ -201,13 +190,9 @@ export { ProseKitProps as ProseKitProps_alias_1 }
201
190
  */
202
191
  export declare function provideEditor(editor: Editor): void;
203
192
 
204
- export declare const Resizable: (props: ResizableProps_2 & {
205
- class?: string | undefined;
206
- } & {}) => any;
193
+ export declare const Resizable: DefineSetupFnComponent<ResizableProps>;
207
194
 
208
- export declare const ResizableHandle: (props: ResizableHandleProps_2 & {
209
- class?: string | undefined;
210
- } & {}) => any;
195
+ export declare const ResizableHandle: DefineSetupFnComponent<ResizableHandleProps>;
211
196
 
212
197
  export declare type ResizableHandleProps = PropsWithClass<ResizableHandleProps_2>;
213
198
 
@@ -0,0 +1,2 @@
1
+ export { PopoverContentProps } from './_tsup-dts-rollup';
2
+ export { PopoverContent } from './_tsup-dts-rollup';
@@ -0,0 +1,19 @@
1
+ // src/components/popover-content.gen.ts
2
+ import "@prosekit/lit/popover-content";
3
+ import { propNames } from "@prosekit/lit/popover-content";
4
+ import { defineComponent, h } from "vue";
5
+ var PopoverContent = defineComponent(
6
+ (props, { slots }) => {
7
+ return () => {
8
+ var _a;
9
+ const webComponentProps = Object.fromEntries(
10
+ Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
+ );
12
+ return h("prosekit-popover-content", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
+ };
14
+ },
15
+ { props: ["class", ...propNames] }
16
+ );
17
+ export {
18
+ PopoverContent
19
+ };
@@ -0,0 +1,2 @@
1
+ export { PopoverRootProps } from './_tsup-dts-rollup';
2
+ export { PopoverRoot } from './_tsup-dts-rollup';
@@ -0,0 +1,19 @@
1
+ // src/components/popover-root.gen.ts
2
+ import "@prosekit/lit/popover-root";
3
+ import { propNames } from "@prosekit/lit/popover-root";
4
+ import { defineComponent, h } from "vue";
5
+ var PopoverRoot = defineComponent(
6
+ (props, { slots }) => {
7
+ return () => {
8
+ var _a;
9
+ const webComponentProps = Object.fromEntries(
10
+ Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
+ );
12
+ return h("prosekit-popover-root", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
+ };
14
+ },
15
+ { props: ["class", ...propNames] }
16
+ );
17
+ export {
18
+ PopoverRoot
19
+ };
@@ -0,0 +1,2 @@
1
+ export { PopoverTriggerProps } from './_tsup-dts-rollup';
2
+ export { PopoverTrigger } from './_tsup-dts-rollup';
@@ -0,0 +1,19 @@
1
+ // src/components/popover-trigger.gen.ts
2
+ import "@prosekit/lit/popover-trigger";
3
+ import { propNames } from "@prosekit/lit/popover-trigger";
4
+ import { defineComponent, h } from "vue";
5
+ var PopoverTrigger = defineComponent(
6
+ (props, { slots }) => {
7
+ return () => {
8
+ var _a;
9
+ const webComponentProps = Object.fromEntries(
10
+ Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
+ );
12
+ return h("prosekit-popover-trigger", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
+ };
14
+ },
15
+ { props: ["class", ...propNames] }
16
+ );
17
+ export {
18
+ PopoverTrigger
19
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/vue",
3
3
  "type": "module",
4
- "version": "0.2.5",
4
+ "version": "0.2.7",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -90,6 +90,21 @@
90
90
  "import": "./dist/prosekit-vue-popover.js",
91
91
  "default": "./dist/prosekit-vue-popover.js"
92
92
  },
93
+ "./popover-content": {
94
+ "types": "./dist/prosekit-vue-popover-content.d.ts",
95
+ "import": "./dist/prosekit-vue-popover-content.js",
96
+ "default": "./dist/prosekit-vue-popover-content.js"
97
+ },
98
+ "./popover-root": {
99
+ "types": "./dist/prosekit-vue-popover-root.d.ts",
100
+ "import": "./dist/prosekit-vue-popover-root.js",
101
+ "default": "./dist/prosekit-vue-popover-root.js"
102
+ },
103
+ "./popover-trigger": {
104
+ "types": "./dist/prosekit-vue-popover-trigger.d.ts",
105
+ "import": "./dist/prosekit-vue-popover-trigger.js",
106
+ "default": "./dist/prosekit-vue-popover-trigger.js"
107
+ },
93
108
  "./resizable": {
94
109
  "types": "./dist/prosekit-vue-resizable.d.ts",
95
110
  "import": "./dist/prosekit-vue-resizable.js",
@@ -105,9 +120,9 @@
105
120
  "dist"
106
121
  ],
107
122
  "dependencies": {
108
- "@prosekit/core": "^0.3.1",
109
- "@prosekit/lit": "^0.2.5",
110
- "@prosekit/pm": "^0.1.1",
123
+ "@prosekit/core": "^0.4.0",
124
+ "@prosekit/lit": "^0.2.8",
125
+ "@prosekit/pm": "^0.1.2",
111
126
  "@prosemirror-adapter/core": "^0.2.6"
112
127
  },
113
128
  "peerDependencies": {
@@ -121,9 +136,9 @@
121
136
  "devDependencies": {
122
137
  "@prosekit/dev": "*",
123
138
  "tsup": "^8.0.2",
124
- "typescript": "^5.3.3",
125
- "vitest": "^1.2.2",
126
- "vue": "^3.4.18"
139
+ "typescript": "^5.4.3",
140
+ "vitest": "^1.4.0",
141
+ "vue": "^3.4.21"
127
142
  },
128
143
  "scripts": {
129
144
  "build:tsup": "tsup",
@@ -171,6 +186,15 @@
171
186
  "popover": [
172
187
  "./dist/prosekit-vue-popover.d.ts"
173
188
  ],
189
+ "popover-content": [
190
+ "./dist/prosekit-vue-popover-content.d.ts"
191
+ ],
192
+ "popover-root": [
193
+ "./dist/prosekit-vue-popover-root.d.ts"
194
+ ],
195
+ "popover-trigger": [
196
+ "./dist/prosekit-vue-popover-trigger.d.ts"
197
+ ],
174
198
  "resizable": [
175
199
  "./dist/prosekit-vue-resizable.d.ts"
176
200
  ],