@prosekit/vue 0.0.16 → 0.0.18
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 -10
- package/dist/{prosekit-vue-components-autocomplete-empty.js → prosekit-vue-autocomplete-empty.js} +2 -2
- package/dist/{prosekit-vue-components-autocomplete-item.js → prosekit-vue-autocomplete-item.js} +2 -2
- package/dist/{prosekit-vue-components-autocomplete-list.js → prosekit-vue-autocomplete-list.js} +2 -2
- package/dist/{prosekit-vue-components-autocomplete-popover.js → prosekit-vue-autocomplete-popover.js} +2 -2
- package/dist/{prosekit-vue-components-code-block-popover.js → prosekit-vue-code-block-popover.js} +2 -2
- package/dist/{prosekit-vue-components-combo-box-input.js → prosekit-vue-combo-box-input.js} +2 -2
- package/dist/{prosekit-vue-components-combo-box-item.js → prosekit-vue-combo-box-item.js} +2 -2
- package/dist/{prosekit-vue-components-combo-box-list.js → prosekit-vue-combo-box-list.js} +2 -2
- package/dist/{prosekit-vue-components-combo-box.js → prosekit-vue-combo-box.js} +2 -2
- package/dist/prosekit-vue.js +4 -4
- package/package.json +58 -58
- /package/dist/{prosekit-vue-components-autocomplete-empty.d.ts → prosekit-vue-autocomplete-empty.d.ts} +0 -0
- /package/dist/{prosekit-vue-components-autocomplete-item.d.ts → prosekit-vue-autocomplete-item.d.ts} +0 -0
- /package/dist/{prosekit-vue-components-autocomplete-list.d.ts → prosekit-vue-autocomplete-list.d.ts} +0 -0
- /package/dist/{prosekit-vue-components-autocomplete-popover.d.ts → prosekit-vue-autocomplete-popover.d.ts} +0 -0
- /package/dist/{prosekit-vue-components-code-block-popover.d.ts → prosekit-vue-code-block-popover.d.ts} +0 -0
- /package/dist/{prosekit-vue-components-combo-box-input.d.ts → prosekit-vue-combo-box-input.d.ts} +0 -0
- /package/dist/{prosekit-vue-components-combo-box-item.d.ts → prosekit-vue-combo-box-item.d.ts} +0 -0
- /package/dist/{prosekit-vue-components-combo-box-list.d.ts → prosekit-vue-combo-box-list.d.ts} +0 -0
- /package/dist/{prosekit-vue-components-combo-box.d.ts → prosekit-vue-combo-box.d.ts} +0 -0
@@ -1,17 +1,17 @@
|
|
1
|
-
import { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/lit/
|
2
|
-
import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/lit/
|
3
|
-
import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/
|
4
|
-
import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/
|
5
|
-
import { CodeBlockPopoverProps as CodeBlockPopoverProps_2 } from '@prosekit/lit/
|
6
|
-
import { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/
|
7
|
-
import { ComboBoxItemProps as ComboBoxItemProps_2 } from '@prosekit/lit/
|
8
|
-
import { ComboBoxListProps as ComboBoxListProps_2 } from '@prosekit/lit/
|
9
|
-
import { ComboBoxProps as ComboBoxProps_2 } from '@prosekit/lit/
|
1
|
+
import { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/lit/autocomplete-empty';
|
2
|
+
import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/lit/autocomplete-item';
|
3
|
+
import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/autocomplete-list';
|
4
|
+
import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/autocomplete-popover';
|
5
|
+
import { CodeBlockPopoverProps as CodeBlockPopoverProps_2 } from '@prosekit/lit/code-block-popover';
|
6
|
+
import { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/combo-box-input';
|
7
|
+
import { ComboBoxItemProps as ComboBoxItemProps_2 } from '@prosekit/lit/combo-box-item';
|
8
|
+
import { ComboBoxListProps as ComboBoxListProps_2 } from '@prosekit/lit/combo-box-list';
|
9
|
+
import { ComboBoxProps as ComboBoxProps_2 } from '@prosekit/lit/combo-box';
|
10
10
|
import { Editor } from '@prosekit/core';
|
11
11
|
import { Extension } from '@prosekit/core';
|
12
12
|
import { Keymap } from '@prosekit/core';
|
13
13
|
import { Options } from 'tsup';
|
14
|
-
import { PopoverOptions } from '@prosekit/lit/
|
14
|
+
import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
|
15
15
|
import { ShallowRef } from 'vue';
|
16
16
|
import { UserProjectConfigExport } from 'vitest/dist/config.js';
|
17
17
|
|
package/dist/{prosekit-vue-components-autocomplete-empty.js → prosekit-vue-autocomplete-empty.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/autocomplete-empty.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/autocomplete-empty";
|
3
|
+
import { propNames } from "@prosekit/lit/autocomplete-empty";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var AutocompleteEmpty = defineComponent(
|
6
6
|
(props, { slots }) => {
|
package/dist/{prosekit-vue-components-autocomplete-item.js → prosekit-vue-autocomplete-item.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/autocomplete-item.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/autocomplete-item";
|
3
|
+
import { propNames } from "@prosekit/lit/autocomplete-item";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var AutocompleteItem = defineComponent(
|
6
6
|
(props, { slots }) => {
|
package/dist/{prosekit-vue-components-autocomplete-list.js → prosekit-vue-autocomplete-list.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/autocomplete-list.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/autocomplete-list";
|
3
|
+
import { propNames } from "@prosekit/lit/autocomplete-list";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var AutocompleteList = defineComponent(
|
6
6
|
(props, { slots }) => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/autocomplete-popover.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/autocomplete-popover";
|
3
|
+
import { propNames } from "@prosekit/lit/autocomplete-popover";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var AutocompletePopover = defineComponent(
|
6
6
|
(props, { slots }) => {
|
package/dist/{prosekit-vue-components-code-block-popover.js → prosekit-vue-code-block-popover.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/code-block-popover.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/code-block-popover";
|
3
|
+
import { propNames } from "@prosekit/lit/code-block-popover";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var CodeBlockPopover = defineComponent(
|
6
6
|
(props, { slots }) => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/combo-box-input.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/combo-box-input";
|
3
|
+
import { propNames } from "@prosekit/lit/combo-box-input";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var ComboBoxInput = defineComponent(
|
6
6
|
(props, { slots }) => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/combo-box-item.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/combo-box-item";
|
3
|
+
import { propNames } from "@prosekit/lit/combo-box-item";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var ComboBoxItem = defineComponent(
|
6
6
|
(props, { slots }) => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/combo-box-list.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/combo-box-list";
|
3
|
+
import { propNames } from "@prosekit/lit/combo-box-list";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var ComboBoxList = defineComponent(
|
6
6
|
(props, { slots }) => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/components/combo-box.gen.ts
|
2
|
-
import "@prosekit/lit/
|
3
|
-
import { propNames } from "@prosekit/lit/
|
2
|
+
import "@prosekit/lit/combo-box";
|
3
|
+
import { propNames } from "@prosekit/lit/combo-box";
|
4
4
|
import { defineComponent, h } from "vue";
|
5
5
|
var ComboBox = defineComponent(
|
6
6
|
(props, { slots }) => {
|
package/dist/prosekit-vue.js
CHANGED
@@ -30,7 +30,7 @@ var ProseKit = defineComponent(
|
|
30
30
|
);
|
31
31
|
|
32
32
|
// src/hooks/use-keymap.ts
|
33
|
-
import {
|
33
|
+
import { defineKeymap } from "@prosekit/core";
|
34
34
|
import { computed } from "vue";
|
35
35
|
|
36
36
|
// src/hooks/use-extension.ts
|
@@ -54,12 +54,12 @@ function useExtension({ extension }) {
|
|
54
54
|
|
55
55
|
// src/hooks/use-keymap.ts
|
56
56
|
function useKeymap({ keymap }) {
|
57
|
-
const extension = computed(() =>
|
57
|
+
const extension = computed(() => defineKeymap(keymap));
|
58
58
|
useExtension({ extension: extension.value });
|
59
59
|
}
|
60
60
|
|
61
61
|
// src/hooks/use-editor-ref.ts
|
62
|
-
import {
|
62
|
+
import { defineEventHandler } from "@prosekit/core";
|
63
63
|
import {
|
64
64
|
onMounted as onMounted2,
|
65
65
|
onUnmounted as onUnmounted2,
|
@@ -71,7 +71,7 @@ function useEditorRef() {
|
|
71
71
|
const editorRef = shallowRef(editor);
|
72
72
|
onMounted2(() => {
|
73
73
|
const forceUpdate = () => triggerRef(editorRef);
|
74
|
-
const dispose = editor.use(
|
74
|
+
const dispose = editor.use(defineEventHandler({ update: forceUpdate }));
|
75
75
|
onUnmounted2(dispose);
|
76
76
|
});
|
77
77
|
return editorRef;
|
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.18",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -30,58 +30,58 @@
|
|
30
30
|
"import": "./dist/prosekit-vue.js",
|
31
31
|
"default": "./dist/prosekit-vue.js"
|
32
32
|
},
|
33
|
-
"./
|
34
|
-
"types": "./dist/prosekit-vue-
|
35
|
-
"import": "./dist/prosekit-vue-
|
36
|
-
"default": "./dist/prosekit-vue-
|
33
|
+
"./autocomplete-empty": {
|
34
|
+
"types": "./dist/prosekit-vue-autocomplete-empty.d.ts",
|
35
|
+
"import": "./dist/prosekit-vue-autocomplete-empty.js",
|
36
|
+
"default": "./dist/prosekit-vue-autocomplete-empty.js"
|
37
37
|
},
|
38
|
-
"./
|
39
|
-
"types": "./dist/prosekit-vue-
|
40
|
-
"import": "./dist/prosekit-vue-
|
41
|
-
"default": "./dist/prosekit-vue-
|
38
|
+
"./autocomplete-item": {
|
39
|
+
"types": "./dist/prosekit-vue-autocomplete-item.d.ts",
|
40
|
+
"import": "./dist/prosekit-vue-autocomplete-item.js",
|
41
|
+
"default": "./dist/prosekit-vue-autocomplete-item.js"
|
42
42
|
},
|
43
|
-
"./
|
44
|
-
"types": "./dist/prosekit-vue-
|
45
|
-
"import": "./dist/prosekit-vue-
|
46
|
-
"default": "./dist/prosekit-vue-
|
43
|
+
"./autocomplete-list": {
|
44
|
+
"types": "./dist/prosekit-vue-autocomplete-list.d.ts",
|
45
|
+
"import": "./dist/prosekit-vue-autocomplete-list.js",
|
46
|
+
"default": "./dist/prosekit-vue-autocomplete-list.js"
|
47
47
|
},
|
48
|
-
"./
|
49
|
-
"types": "./dist/prosekit-vue-
|
50
|
-
"import": "./dist/prosekit-vue-
|
51
|
-
"default": "./dist/prosekit-vue-
|
48
|
+
"./autocomplete-popover": {
|
49
|
+
"types": "./dist/prosekit-vue-autocomplete-popover.d.ts",
|
50
|
+
"import": "./dist/prosekit-vue-autocomplete-popover.js",
|
51
|
+
"default": "./dist/prosekit-vue-autocomplete-popover.js"
|
52
52
|
},
|
53
|
-
"./
|
54
|
-
"types": "./dist/prosekit-vue-
|
55
|
-
"import": "./dist/prosekit-vue-
|
56
|
-
"default": "./dist/prosekit-vue-
|
53
|
+
"./code-block-popover": {
|
54
|
+
"types": "./dist/prosekit-vue-code-block-popover.d.ts",
|
55
|
+
"import": "./dist/prosekit-vue-code-block-popover.js",
|
56
|
+
"default": "./dist/prosekit-vue-code-block-popover.js"
|
57
57
|
},
|
58
|
-
"./
|
59
|
-
"types": "./dist/prosekit-vue-
|
60
|
-
"import": "./dist/prosekit-vue-
|
61
|
-
"default": "./dist/prosekit-vue-
|
58
|
+
"./combo-box": {
|
59
|
+
"types": "./dist/prosekit-vue-combo-box.d.ts",
|
60
|
+
"import": "./dist/prosekit-vue-combo-box.js",
|
61
|
+
"default": "./dist/prosekit-vue-combo-box.js"
|
62
62
|
},
|
63
|
-
"./
|
64
|
-
"types": "./dist/prosekit-vue-
|
65
|
-
"import": "./dist/prosekit-vue-
|
66
|
-
"default": "./dist/prosekit-vue-
|
63
|
+
"./combo-box-input": {
|
64
|
+
"types": "./dist/prosekit-vue-combo-box-input.d.ts",
|
65
|
+
"import": "./dist/prosekit-vue-combo-box-input.js",
|
66
|
+
"default": "./dist/prosekit-vue-combo-box-input.js"
|
67
67
|
},
|
68
|
-
"./
|
69
|
-
"types": "./dist/prosekit-vue-
|
70
|
-
"import": "./dist/prosekit-vue-
|
71
|
-
"default": "./dist/prosekit-vue-
|
68
|
+
"./combo-box-item": {
|
69
|
+
"types": "./dist/prosekit-vue-combo-box-item.d.ts",
|
70
|
+
"import": "./dist/prosekit-vue-combo-box-item.js",
|
71
|
+
"default": "./dist/prosekit-vue-combo-box-item.js"
|
72
72
|
},
|
73
|
-
"./
|
74
|
-
"types": "./dist/prosekit-vue-
|
75
|
-
"import": "./dist/prosekit-vue-
|
76
|
-
"default": "./dist/prosekit-vue-
|
73
|
+
"./combo-box-list": {
|
74
|
+
"types": "./dist/prosekit-vue-combo-box-list.d.ts",
|
75
|
+
"import": "./dist/prosekit-vue-combo-box-list.js",
|
76
|
+
"default": "./dist/prosekit-vue-combo-box-list.js"
|
77
77
|
}
|
78
78
|
},
|
79
79
|
"files": [
|
80
80
|
"dist"
|
81
81
|
],
|
82
82
|
"dependencies": {
|
83
|
-
"@prosekit/core": "^0.0.
|
84
|
-
"@prosekit/lit": "^0.0.
|
83
|
+
"@prosekit/core": "^0.0.13",
|
84
|
+
"@prosekit/lit": "^0.0.17"
|
85
85
|
},
|
86
86
|
"peerDependencies": {
|
87
87
|
"vue": ">= 3.0.0"
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"tsup": "^7.2.0",
|
97
97
|
"typescript": "^5.2.2",
|
98
98
|
"vitest": "^0.34.6",
|
99
|
-
"vue": "^3.3.
|
99
|
+
"vue": "^3.3.6"
|
100
100
|
},
|
101
101
|
"scripts": {
|
102
102
|
"build:tsup": "tsup",
|
@@ -108,32 +108,32 @@
|
|
108
108
|
".": [
|
109
109
|
"./dist/prosekit-vue.d.ts"
|
110
110
|
],
|
111
|
-
"
|
112
|
-
"./dist/prosekit-vue-
|
111
|
+
"autocomplete-empty": [
|
112
|
+
"./dist/prosekit-vue-autocomplete-empty.d.ts"
|
113
113
|
],
|
114
|
-
"
|
115
|
-
"./dist/prosekit-vue-
|
114
|
+
"autocomplete-item": [
|
115
|
+
"./dist/prosekit-vue-autocomplete-item.d.ts"
|
116
116
|
],
|
117
|
-
"
|
118
|
-
"./dist/prosekit-vue-
|
117
|
+
"autocomplete-list": [
|
118
|
+
"./dist/prosekit-vue-autocomplete-list.d.ts"
|
119
119
|
],
|
120
|
-
"
|
121
|
-
"./dist/prosekit-vue-
|
120
|
+
"autocomplete-popover": [
|
121
|
+
"./dist/prosekit-vue-autocomplete-popover.d.ts"
|
122
122
|
],
|
123
|
-
"
|
124
|
-
"./dist/prosekit-vue-
|
123
|
+
"code-block-popover": [
|
124
|
+
"./dist/prosekit-vue-code-block-popover.d.ts"
|
125
125
|
],
|
126
|
-
"
|
127
|
-
"./dist/prosekit-vue-
|
126
|
+
"combo-box": [
|
127
|
+
"./dist/prosekit-vue-combo-box.d.ts"
|
128
128
|
],
|
129
|
-
"
|
130
|
-
"./dist/prosekit-vue-
|
129
|
+
"combo-box-input": [
|
130
|
+
"./dist/prosekit-vue-combo-box-input.d.ts"
|
131
131
|
],
|
132
|
-
"
|
133
|
-
"./dist/prosekit-vue-
|
132
|
+
"combo-box-item": [
|
133
|
+
"./dist/prosekit-vue-combo-box-item.d.ts"
|
134
134
|
],
|
135
|
-
"
|
136
|
-
"./dist/prosekit-vue-
|
135
|
+
"combo-box-list": [
|
136
|
+
"./dist/prosekit-vue-combo-box-list.d.ts"
|
137
137
|
]
|
138
138
|
}
|
139
139
|
}
|
File without changes
|
/package/dist/{prosekit-vue-components-autocomplete-item.d.ts → prosekit-vue-autocomplete-item.d.ts}
RENAMED
File without changes
|
/package/dist/{prosekit-vue-components-autocomplete-list.d.ts → prosekit-vue-autocomplete-list.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
/package/dist/{prosekit-vue-components-combo-box-input.d.ts → prosekit-vue-combo-box-input.d.ts}
RENAMED
File without changes
|
/package/dist/{prosekit-vue-components-combo-box-item.d.ts → prosekit-vue-combo-box-item.d.ts}
RENAMED
File without changes
|
/package/dist/{prosekit-vue-components-combo-box-list.d.ts → prosekit-vue-combo-box-list.d.ts}
RENAMED
File without changes
|
File without changes
|