@prosekit/vue 0.0.4 → 0.0.6
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/prosekit-vue-components-autocomplete-empty.d.ts +10 -0
- package/dist/prosekit-vue-components-autocomplete-empty.js +14 -0
- package/dist/prosekit-vue-components-autocomplete-item.d.ts +10 -0
- package/dist/prosekit-vue-components-autocomplete-item.js +14 -0
- package/dist/prosekit-vue-components-autocomplete-list.d.ts +10 -0
- package/dist/prosekit-vue-components-autocomplete-list.js +14 -0
- package/dist/prosekit-vue-components-autocomplete-popover.d.ts +11 -0
- package/dist/prosekit-vue-components-autocomplete-popover.js +14 -0
- package/dist/prosekit-vue.js +3 -0
- package/package.json +27 -27
- package/src/index.ts +0 -4
- package/dist/prosekit-vue-components-command-empty.d.ts +0 -10
- package/dist/prosekit-vue-components-command-empty.js +0 -14
- package/dist/prosekit-vue-components-command-item.d.ts +0 -10
- package/dist/prosekit-vue-components-command-item.js +0 -14
- package/dist/prosekit-vue-components-command-list.d.ts +0 -10
- package/dist/prosekit-vue-components-command-list.js +0 -14
- package/dist/prosekit-vue-components-command-popover.d.ts +0 -11
- package/dist/prosekit-vue-components-command-popover.js +0 -14
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AutocompleteEmptyProps as AutocompleteEmptyProps$1 } from '@prosekit/lit/components/autocomplete-empty';
|
|
2
|
+
|
|
3
|
+
type AutocompleteEmptyProps = {
|
|
4
|
+
class?: string;
|
|
5
|
+
} & AutocompleteEmptyProps$1;
|
|
6
|
+
declare const AutocompleteEmpty: (props: {
|
|
7
|
+
class?: string | undefined;
|
|
8
|
+
} & AutocompleteEmptyProps$1 & {}) => any;
|
|
9
|
+
|
|
10
|
+
export { AutocompleteEmpty, AutocompleteEmptyProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/components/autocomplete-empty.gen.ts
|
|
2
|
+
import "@prosekit/lit/components/autocomplete-empty";
|
|
3
|
+
import { defineComponent, h } from "vue";
|
|
4
|
+
var AutocompleteEmpty = defineComponent(
|
|
5
|
+
(props, { slots }) => {
|
|
6
|
+
return () => {
|
|
7
|
+
var _a;
|
|
8
|
+
return h("prosekit-autocomplete-empty", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
AutocompleteEmpty
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AutocompleteItemProps as AutocompleteItemProps$1 } from '@prosekit/lit/components/autocomplete-item';
|
|
2
|
+
|
|
3
|
+
type AutocompleteItemProps = {
|
|
4
|
+
class?: string;
|
|
5
|
+
} & AutocompleteItemProps$1;
|
|
6
|
+
declare const AutocompleteItem: (props: {
|
|
7
|
+
class?: string | undefined;
|
|
8
|
+
} & AutocompleteItemProps$1 & {}) => any;
|
|
9
|
+
|
|
10
|
+
export { AutocompleteItem, AutocompleteItemProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/components/autocomplete-item.gen.ts
|
|
2
|
+
import "@prosekit/lit/components/autocomplete-item";
|
|
3
|
+
import { defineComponent, h } from "vue";
|
|
4
|
+
var AutocompleteItem = defineComponent(
|
|
5
|
+
(props, { slots }) => {
|
|
6
|
+
return () => {
|
|
7
|
+
var _a;
|
|
8
|
+
return h("prosekit-autocomplete-item", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
AutocompleteItem
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AutocompleteListProps as AutocompleteListProps$1 } from '@prosekit/lit/components/autocomplete-list';
|
|
2
|
+
|
|
3
|
+
type AutocompleteListProps = {
|
|
4
|
+
class?: string;
|
|
5
|
+
} & AutocompleteListProps$1;
|
|
6
|
+
declare const AutocompleteList: (props: {
|
|
7
|
+
class?: string | undefined;
|
|
8
|
+
} & AutocompleteListProps$1 & {}) => any;
|
|
9
|
+
|
|
10
|
+
export { AutocompleteList, AutocompleteListProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/components/autocomplete-list.gen.ts
|
|
2
|
+
import "@prosekit/lit/components/autocomplete-list";
|
|
3
|
+
import { defineComponent, h } from "vue";
|
|
4
|
+
var AutocompleteList = defineComponent(
|
|
5
|
+
(props, { slots }) => {
|
|
6
|
+
return () => {
|
|
7
|
+
var _a;
|
|
8
|
+
return h("prosekit-autocomplete-list", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
AutocompleteList
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AutocompletePopoverProps as AutocompletePopoverProps$1 } from '@prosekit/lit/components/autocomplete-popover';
|
|
2
|
+
export { PopoverOptions } from '@prosekit/lit/components/autocomplete-popover';
|
|
3
|
+
|
|
4
|
+
type AutocompletePopoverProps = {
|
|
5
|
+
class?: string;
|
|
6
|
+
} & AutocompletePopoverProps$1;
|
|
7
|
+
declare const AutocompletePopover: (props: {
|
|
8
|
+
class?: string | undefined;
|
|
9
|
+
} & AutocompletePopoverProps$1 & {}) => any;
|
|
10
|
+
|
|
11
|
+
export { AutocompletePopover, AutocompletePopoverProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/components/autocomplete-popover.gen.ts
|
|
2
|
+
import "@prosekit/lit/components/autocomplete-popover";
|
|
3
|
+
import { defineComponent, h } from "vue";
|
|
4
|
+
var AutocompletePopover = defineComponent(
|
|
5
|
+
(props, { slots }) => {
|
|
6
|
+
return () => {
|
|
7
|
+
var _a;
|
|
8
|
+
return h("prosekit-autocomplete-popover", props, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
AutocompletePopover
|
|
14
|
+
};
|
package/dist/prosekit-vue.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/components/prosekit.ts
|
|
2
|
+
import "@prosekit/core";
|
|
2
3
|
import { defineComponent } from "vue";
|
|
3
4
|
|
|
4
5
|
// src/injection/editor-injection.ts
|
|
@@ -33,9 +34,11 @@ import { addKeymap } from "@prosekit/core";
|
|
|
33
34
|
import { computed } from "vue";
|
|
34
35
|
|
|
35
36
|
// src/hooks/use-extension.ts
|
|
37
|
+
import "@prosekit/core";
|
|
36
38
|
import { effect } from "vue";
|
|
37
39
|
|
|
38
40
|
// src/hooks/use-editor.ts
|
|
41
|
+
import "@prosekit/core";
|
|
39
42
|
function useEditor() {
|
|
40
43
|
return injectEditor();
|
|
41
44
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
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/
|
|
34
|
-
"types": "./dist/prosekit-vue-components-
|
|
35
|
-
"import": "./dist/prosekit-vue-components-
|
|
36
|
-
"default": "./dist/prosekit-vue-components-
|
|
33
|
+
"./components/autocomplete-empty": {
|
|
34
|
+
"types": "./dist/prosekit-vue-components-autocomplete-empty.d.ts",
|
|
35
|
+
"import": "./dist/prosekit-vue-components-autocomplete-empty.js",
|
|
36
|
+
"default": "./dist/prosekit-vue-components-autocomplete-empty.js"
|
|
37
37
|
},
|
|
38
|
-
"./components/
|
|
39
|
-
"types": "./dist/prosekit-vue-components-
|
|
40
|
-
"import": "./dist/prosekit-vue-components-
|
|
41
|
-
"default": "./dist/prosekit-vue-components-
|
|
38
|
+
"./components/autocomplete-item": {
|
|
39
|
+
"types": "./dist/prosekit-vue-components-autocomplete-item.d.ts",
|
|
40
|
+
"import": "./dist/prosekit-vue-components-autocomplete-item.js",
|
|
41
|
+
"default": "./dist/prosekit-vue-components-autocomplete-item.js"
|
|
42
42
|
},
|
|
43
|
-
"./components/
|
|
44
|
-
"types": "./dist/prosekit-vue-components-
|
|
45
|
-
"import": "./dist/prosekit-vue-components-
|
|
46
|
-
"default": "./dist/prosekit-vue-components-
|
|
43
|
+
"./components/autocomplete-list": {
|
|
44
|
+
"types": "./dist/prosekit-vue-components-autocomplete-list.d.ts",
|
|
45
|
+
"import": "./dist/prosekit-vue-components-autocomplete-list.js",
|
|
46
|
+
"default": "./dist/prosekit-vue-components-autocomplete-list.js"
|
|
47
47
|
},
|
|
48
|
-
"./components/
|
|
49
|
-
"types": "./dist/prosekit-vue-components-
|
|
50
|
-
"import": "./dist/prosekit-vue-components-
|
|
51
|
-
"default": "./dist/prosekit-vue-components-
|
|
48
|
+
"./components/autocomplete-popover": {
|
|
49
|
+
"types": "./dist/prosekit-vue-components-autocomplete-popover.d.ts",
|
|
50
|
+
"import": "./dist/prosekit-vue-components-autocomplete-popover.js",
|
|
51
|
+
"default": "./dist/prosekit-vue-components-autocomplete-popover.js"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"dist"
|
|
56
56
|
],
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@prosekit/core": "^0.0.
|
|
59
|
-
"@prosekit/lit": "^0.0.
|
|
58
|
+
"@prosekit/core": "^0.0.5",
|
|
59
|
+
"@prosekit/lit": "^0.0.6"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"vue": ">= 3.0.0"
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
".": [
|
|
84
84
|
"./dist/prosekit-vue.d.ts"
|
|
85
85
|
],
|
|
86
|
-
"components/
|
|
87
|
-
"./dist/prosekit-vue-components-
|
|
86
|
+
"components/autocomplete-empty": [
|
|
87
|
+
"./dist/prosekit-vue-components-autocomplete-empty.d.ts"
|
|
88
88
|
],
|
|
89
|
-
"components/
|
|
90
|
-
"./dist/prosekit-vue-components-
|
|
89
|
+
"components/autocomplete-item": [
|
|
90
|
+
"./dist/prosekit-vue-components-autocomplete-item.d.ts"
|
|
91
91
|
],
|
|
92
|
-
"components/
|
|
93
|
-
"./dist/prosekit-vue-components-
|
|
92
|
+
"components/autocomplete-list": [
|
|
93
|
+
"./dist/prosekit-vue-components-autocomplete-list.d.ts"
|
|
94
94
|
],
|
|
95
|
-
"components/
|
|
96
|
-
"./dist/prosekit-vue-components-
|
|
95
|
+
"components/autocomplete-popover": [
|
|
96
|
+
"./dist/prosekit-vue-components-autocomplete-popover.d.ts"
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
99
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 };
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
};
|