@prosekit/vue 0.7.1 → 0.7.2
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/autocomplete.d.ts.map +1 -1
- package/dist/autocomplete.js.map +1 -1
- package/dist/block-handle.d.ts.map +1 -1
- package/dist/block-handle.js.map +1 -1
- package/dist/drop-indicator.d.ts.map +1 -1
- package/dist/drop-indicator.js.map +1 -1
- package/dist/editor-context.js.map +1 -1
- package/dist/index.d.ts +0 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -16
- package/dist/index.js.map +1 -1
- package/dist/inline-popover.d.ts.map +1 -1
- package/dist/inline-popover.js.map +1 -1
- package/dist/menu.d.ts.map +1 -1
- package/dist/menu.js.map +1 -1
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js.map +1 -1
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.js.map +1 -1
- package/dist/table-handle.d.ts.map +1 -1
- package/dist/table-handle.js.map +1 -1
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js.map +1 -1
- package/package.json +7 -7
- package/src/components/prosekit.ts +0 -2
- package/src/extensions/vue-mark-view.ts +0 -10
- package/src/extensions/vue-node-view.ts +0 -10
- package/src/hooks/use-doc-change.ts +0 -2
- package/src/hooks/use-editor-derived-value.ts +0 -2
- package/src/hooks/use-editor.ts +0 -2
- package/src/hooks/use-extension.ts +0 -2
- package/src/hooks/use-state-update.ts +0 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Vue components and utilities for ProseKit",
|
|
7
7
|
"author": {
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@prosemirror-adapter/core": "^0.5.3",
|
|
76
76
|
"@prosemirror-adapter/vue": "^0.5.3",
|
|
77
|
-
"@prosekit/
|
|
78
|
-
"@prosekit/
|
|
79
|
-
"@prosekit/web": "^0.8.
|
|
77
|
+
"@prosekit/pm": "^0.1.17",
|
|
78
|
+
"@prosekit/core": "^0.12.1",
|
|
79
|
+
"@prosekit/web": "^0.8.2"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"vue": ">= 3.0.0"
|
|
@@ -91,13 +91,13 @@
|
|
|
91
91
|
"@vue/test-utils": "^2.4.10",
|
|
92
92
|
"tsdown": "^0.22.0",
|
|
93
93
|
"typescript": "~6.0.3",
|
|
94
|
-
"vitest": "^4.1.
|
|
94
|
+
"vitest": "^4.1.6",
|
|
95
95
|
"vitest-browser-vue": "^2.1.0",
|
|
96
96
|
"vue": "^3.5.34",
|
|
97
97
|
"@prosekit/config-ts": "0.0.0",
|
|
98
98
|
"@prosekit/config-tsdown": "0.0.0",
|
|
99
|
-
"@prosekit/
|
|
100
|
-
"@prosekit/
|
|
99
|
+
"@prosekit/testing": "0.0.0",
|
|
100
|
+
"@prosekit/config-vitest": "0.0.0"
|
|
101
101
|
},
|
|
102
102
|
"scripts": {
|
|
103
103
|
"build:tsc": "tsc -b tsconfig.json",
|
|
@@ -9,20 +9,12 @@ import {
|
|
|
9
9
|
} from '@prosemirror-adapter/vue'
|
|
10
10
|
import { defineComponent, h, markRaw, Teleport, type DefineComponent } from 'vue'
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
12
|
export interface VueMarkViewProps extends MarkViewContext {}
|
|
16
13
|
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
14
|
export type VueMarkViewComponent = DefineComponent<VueMarkViewProps, any, any>
|
|
21
15
|
|
|
22
16
|
/**
|
|
23
17
|
* Options for {@link defineVueMarkView}.
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
18
|
*/
|
|
27
19
|
export interface VueMarkViewOptions extends CoreMarkViewUserOptions<VueMarkViewComponent> {
|
|
28
20
|
/**
|
|
@@ -64,8 +56,6 @@ export function defineVueMarkViewFactory(
|
|
|
64
56
|
|
|
65
57
|
/**
|
|
66
58
|
* Defines a mark view using a Vue component.
|
|
67
|
-
*
|
|
68
|
-
* @public
|
|
69
59
|
*/
|
|
70
60
|
export function defineVueMarkView(options: VueMarkViewOptions): Extension {
|
|
71
61
|
return defineMarkViewComponent<VueMarkViewOptions>({
|
|
@@ -9,20 +9,12 @@ import {
|
|
|
9
9
|
} from '@prosemirror-adapter/vue'
|
|
10
10
|
import { defineComponent, h, markRaw, Teleport, type DefineComponent } from 'vue'
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
12
|
export interface VueNodeViewProps extends NodeViewContext {}
|
|
16
13
|
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
14
|
export type VueNodeViewComponent = DefineComponent<VueNodeViewProps, any, any>
|
|
21
15
|
|
|
22
16
|
/**
|
|
23
17
|
* Options for {@link defineVueNodeView}.
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
18
|
*/
|
|
27
19
|
export interface VueNodeViewOptions extends CoreNodeViewUserOptions<VueNodeViewComponent> {
|
|
28
20
|
/**
|
|
@@ -64,8 +56,6 @@ export function defineVueNodeViewFactory(
|
|
|
64
56
|
|
|
65
57
|
/**
|
|
66
58
|
* Defines a node view using a Vue component.
|
|
67
|
-
*
|
|
68
|
-
* @public
|
|
69
59
|
*/
|
|
70
60
|
export function defineVueNodeView(options: VueNodeViewOptions): Extension {
|
|
71
61
|
return defineNodeViewComponent<VueNodeViewOptions>({
|
|
@@ -20,8 +20,6 @@ export interface UseEditorDerivedOptions<E extends Extension = any> {
|
|
|
20
20
|
*
|
|
21
21
|
* It returns a shallow ref of the derived value that updates whenever the editor
|
|
22
22
|
* state changes.
|
|
23
|
-
*
|
|
24
|
-
* @public
|
|
25
23
|
*/
|
|
26
24
|
export function useEditorDerivedValue<E extends Extension, Derived>(
|
|
27
25
|
/**
|
package/src/hooks/use-editor.ts
CHANGED