@prosekit/vue 0.0.2 → 0.0.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.
@@ -0,0 +1,10 @@
1
+ import { CommandEmptyProps as CommandEmptyProps$1 } from '@prosekit/lit/components/command-empty';
2
+
3
+ type CommandEmptyProps = {
4
+ class?: string;
5
+ } & CommandEmptyProps$1;
6
+ declare const CommandEmpty: (props: {
7
+ class?: string | undefined;
8
+ } & CommandEmptyProps$1 & {}) => any;
9
+
10
+ export { CommandEmpty, CommandEmptyProps };
@@ -0,0 +1,14 @@
1
+ // src/components/command-empty.gen.ts
2
+ import "@prosekit/lit/components/command-empty";
3
+ import { defineComponent, h } from "vue";
4
+ var CommandEmpty = defineComponent(
5
+ (props, { slots }) => {
6
+ return () => {
7
+ var _a;
8
+ return h("prosekit-command-empty", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
9
+ };
10
+ }
11
+ );
12
+ export {
13
+ CommandEmpty
14
+ };
@@ -0,0 +1,10 @@
1
+ import { CommandItemProps as CommandItemProps$1 } from '@prosekit/lit/components/command-item';
2
+
3
+ type CommandItemProps = {
4
+ class?: string;
5
+ } & CommandItemProps$1;
6
+ declare const CommandItem: (props: {
7
+ class?: string | undefined;
8
+ } & CommandItemProps$1 & {}) => any;
9
+
10
+ export { CommandItem, CommandItemProps };
@@ -0,0 +1,14 @@
1
+ // src/components/command-item.gen.ts
2
+ import "@prosekit/lit/components/command-item";
3
+ import { defineComponent, h } from "vue";
4
+ var CommandItem = defineComponent(
5
+ (props, { slots }) => {
6
+ return () => {
7
+ var _a;
8
+ return h("prosekit-command-item", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
9
+ };
10
+ }
11
+ );
12
+ export {
13
+ CommandItem
14
+ };
@@ -0,0 +1,10 @@
1
+ import { CommandListProps as CommandListProps$1 } from '@prosekit/lit/components/command-list';
2
+
3
+ type CommandListProps = {
4
+ class?: string;
5
+ } & CommandListProps$1;
6
+ declare const CommandList: (props: {
7
+ class?: string | undefined;
8
+ } & CommandListProps$1 & {}) => any;
9
+
10
+ export { CommandList, CommandListProps };
@@ -0,0 +1,14 @@
1
+ // src/components/command-list.gen.ts
2
+ import "@prosekit/lit/components/command-list";
3
+ import { defineComponent, h } from "vue";
4
+ var CommandList = defineComponent(
5
+ (props, { slots }) => {
6
+ return () => {
7
+ var _a;
8
+ return h("prosekit-command-list", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
9
+ };
10
+ }
11
+ );
12
+ export {
13
+ CommandList
14
+ };
@@ -0,0 +1,11 @@
1
+ import { CommandPopoverProps as CommandPopoverProps$1 } from '@prosekit/lit/components/command-popover';
2
+ export { PopoverOptions, QueryBuilder } from '@prosekit/lit/components/command-popover';
3
+
4
+ type CommandPopoverProps = {
5
+ class?: string;
6
+ } & CommandPopoverProps$1;
7
+ declare const CommandPopover: (props: {
8
+ class?: string | undefined;
9
+ } & CommandPopoverProps$1 & {}) => any;
10
+
11
+ export { CommandPopover, CommandPopoverProps };
@@ -0,0 +1,14 @@
1
+ // src/components/command-popover.gen.ts
2
+ import "@prosekit/lit/components/command-popover";
3
+ import { defineComponent, h } from "vue";
4
+ var CommandPopover = defineComponent(
5
+ (props, { slots }) => {
6
+ return () => {
7
+ var _a;
8
+ return h("prosekit-command-popover", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
9
+ };
10
+ }
11
+ );
12
+ export {
13
+ CommandPopover
14
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/vue",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -30,33 +30,33 @@
30
30
  "import": "./dist/prosekit-vue.js",
31
31
  "default": "./dist/prosekit-vue.js"
32
32
  },
33
- "./components/menu": {
34
- "types": "./dist/prosekit-vue-components-menu.d.ts",
35
- "import": "./dist/prosekit-vue-components-menu.js",
36
- "default": "./dist/prosekit-vue-components-menu.js"
33
+ "./components/command-empty": {
34
+ "types": "./dist/prosekit-vue-components-command-empty.d.ts",
35
+ "import": "./dist/prosekit-vue-components-command-empty.js",
36
+ "default": "./dist/prosekit-vue-components-command-empty.js"
37
37
  },
38
- "./components/menu-item": {
39
- "types": "./dist/prosekit-vue-components-menu-item.d.ts",
40
- "import": "./dist/prosekit-vue-components-menu-item.js",
41
- "default": "./dist/prosekit-vue-components-menu-item.js"
38
+ "./components/command-item": {
39
+ "types": "./dist/prosekit-vue-components-command-item.d.ts",
40
+ "import": "./dist/prosekit-vue-components-command-item.js",
41
+ "default": "./dist/prosekit-vue-components-command-item.js"
42
42
  },
43
- "./components/popover": {
44
- "types": "./dist/prosekit-vue-components-popover.d.ts",
45
- "import": "./dist/prosekit-vue-components-popover.js",
46
- "default": "./dist/prosekit-vue-components-popover.js"
43
+ "./components/command-list": {
44
+ "types": "./dist/prosekit-vue-components-command-list.d.ts",
45
+ "import": "./dist/prosekit-vue-components-command-list.js",
46
+ "default": "./dist/prosekit-vue-components-command-list.js"
47
47
  },
48
- "./components/popover-suggestion": {
49
- "types": "./dist/prosekit-vue-components-popover-suggestion.d.ts",
50
- "import": "./dist/prosekit-vue-components-popover-suggestion.js",
51
- "default": "./dist/prosekit-vue-components-popover-suggestion.js"
48
+ "./components/command-popover": {
49
+ "types": "./dist/prosekit-vue-components-command-popover.d.ts",
50
+ "import": "./dist/prosekit-vue-components-command-popover.js",
51
+ "default": "./dist/prosekit-vue-components-command-popover.js"
52
52
  }
53
53
  },
54
54
  "files": [
55
55
  "dist"
56
56
  ],
57
57
  "dependencies": {
58
- "@prosekit/core": "^0.0.2",
59
- "@prosekit/lit": "^0.0.2"
58
+ "@prosekit/core": "^0.0.3",
59
+ "@prosekit/lit": "^0.0.4"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "vue": ">= 3.0.0"
@@ -77,5 +77,24 @@
77
77
  "build:tsup": "tsup",
78
78
  "build:tsc": "tsc -b tsconfig.json"
79
79
  },
80
- "types": "./dist/prosekit-vue.d.ts"
80
+ "types": "./dist/prosekit-vue.d.ts",
81
+ "typesVersions": {
82
+ "*": {
83
+ ".": [
84
+ "./dist/prosekit-vue.d.ts"
85
+ ],
86
+ "components/command-empty": [
87
+ "./dist/prosekit-vue-components-command-empty.d.ts"
88
+ ],
89
+ "components/command-item": [
90
+ "./dist/prosekit-vue-components-command-item.d.ts"
91
+ ],
92
+ "components/command-list": [
93
+ "./dist/prosekit-vue-components-command-list.d.ts"
94
+ ],
95
+ "components/command-popover": [
96
+ "./dist/prosekit-vue-components-command-popover.d.ts"
97
+ ]
98
+ }
99
+ }
81
100
  }
@@ -1,9 +0,0 @@
1
- import { MenuItem as MenuItem$1 } from '@prosekit/lit/elements/menu-item';
2
-
3
- /**
4
- * @module @prosekit/vue/components/menu-item
5
- */
6
-
7
- declare const MenuItem: (props: Partial<MenuItem$1> & {}) => any;
8
-
9
- export { MenuItem };
@@ -1,14 +0,0 @@
1
- // src/components/menu-item.gen.ts
2
- import "@prosekit/lit/elements/menu-item";
3
- import { defineComponent, h } from "vue";
4
- var MenuItem = defineComponent(
5
- (props, { slots }) => {
6
- return () => {
7
- var _a;
8
- return h("prosekit-menu-item", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
9
- };
10
- }
11
- );
12
- export {
13
- MenuItem
14
- };
@@ -1,9 +0,0 @@
1
- import { Menu as Menu$1 } from '@prosekit/lit/elements/menu';
2
-
3
- /**
4
- * @module @prosekit/vue/components/menu
5
- */
6
-
7
- declare const Menu: (props: Partial<Menu$1> & {}) => any;
8
-
9
- export { Menu };
@@ -1,14 +0,0 @@
1
- // src/components/menu.gen.ts
2
- import "@prosekit/lit/elements/menu";
3
- import { defineComponent, h } from "vue";
4
- var Menu = defineComponent(
5
- (props, { slots }) => {
6
- return () => {
7
- var _a;
8
- return h("prosekit-menu", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
9
- };
10
- }
11
- );
12
- export {
13
- Menu
14
- };
@@ -1,18 +0,0 @@
1
- import { Editor } from '@prosekit/core';
2
- import { PredictionRule, PopoverSuggestionContext } from '@prosekit/lit/elements/popover-suggestion';
3
- export { PopoverSuggestionContext, PredictionRule } from '@prosekit/lit/elements/popover-suggestion';
4
-
5
- /**
6
- * @module @prosekit/vue/components/popover-suggestion
7
- */
8
-
9
- interface PopoverSuggestionProps {
10
- editor: Editor;
11
- rules: PredictionRule[];
12
- }
13
- interface PopoverSuggestionSlots {
14
- default: PopoverSuggestionContext;
15
- }
16
- declare const PopoverSuggestion: (props: PopoverSuggestionProps & {}) => any;
17
-
18
- export { PopoverSuggestion, PopoverSuggestionProps, PopoverSuggestionSlots };
@@ -1,42 +0,0 @@
1
- // src/components/popover-suggestion.ts
2
- import { defineComponent as defineComponent2, h as h2, ref } from "vue";
3
-
4
- // src/components/popover-suggestion.gen.ts
5
- import "@prosekit/lit/elements/popover-suggestion";
6
- import { defineComponent, h } from "vue";
7
- var PopoverSuggestion = defineComponent(
8
- (props, { slots }) => {
9
- return () => {
10
- var _a;
11
- return h("prosekit-popover-suggestion", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
12
- };
13
- }
14
- );
15
-
16
- // src/components/popover-suggestion.ts
17
- var PopoverSuggestion2 = defineComponent2(
18
- ({ editor, rules }, { slots }) => {
19
- const contextRef = ref(null);
20
- const onContext = (context) => {
21
- contextRef.value = context;
22
- };
23
- return () => {
24
- const context = contextRef.value;
25
- return h2(
26
- PopoverSuggestion,
27
- {
28
- ".editor": editor,
29
- ".rules": rules,
30
- ".onContext": onContext
31
- },
32
- () => {
33
- var _a;
34
- return (_a = slots.default) == null ? void 0 : _a.call(slots, context);
35
- }
36
- );
37
- };
38
- }
39
- );
40
- export {
41
- PopoverSuggestion2 as PopoverSuggestion
42
- };
@@ -1,9 +0,0 @@
1
- import { Popover as Popover$1 } from '@prosekit/lit/elements/popover';
2
-
3
- /**
4
- * @module @prosekit/vue/components/popover
5
- */
6
-
7
- declare const Popover: (props: Partial<Popover$1> & {}) => any;
8
-
9
- export { Popover };
@@ -1,14 +0,0 @@
1
- // src/components/popover.gen.ts
2
- import "@prosekit/lit/elements/popover";
3
- import { defineComponent, h } from "vue";
4
- var Popover = defineComponent(
5
- (props, { slots }) => {
6
- return () => {
7
- var _a;
8
- return h("prosekit-popover", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
9
- };
10
- }
11
- );
12
- export {
13
- Popover
14
- };