@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/vue",
3
3
  "type": "module",
4
- "version": "0.7.1",
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/core": "^0.12.0",
78
- "@prosekit/pm": "^0.1.16",
79
- "@prosekit/web": "^0.8.1"
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.5",
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/config-vitest": "0.0.0",
100
- "@prosekit/testing": "0.0.0"
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",
@@ -11,8 +11,6 @@ export interface ProseKitProps {
11
11
 
12
12
  /**
13
13
  * The root component for a ProseKit editor.
14
- *
15
- * @public
16
14
  */
17
15
  export const ProseKit: DefineSetupFnComponent<ProseKitProps> = defineComponent<ProseKitProps>({
18
16
  name: 'ProseKit',
@@ -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>({
@@ -5,8 +5,6 @@ import { useExtension, type UseExtensionOptions } from './use-extension.ts'
5
5
 
6
6
  /**
7
7
  * Calls the given handler whenever the editor document changes.
8
- *
9
- * @public
10
8
  */
11
9
  export function useDocChange(
12
10
  handler: (doc: ProseMirrorNode) => void,
@@ -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
  /**
@@ -5,8 +5,6 @@ import { useEditorContext } from '../injection/editor-context.ts'
5
5
 
6
6
  /**
7
7
  * Retrieves the editor instance from the nearest ProseKit component.
8
- *
9
- * @public
10
8
  */
11
9
  export function useEditor<E extends Extension = any>(options?: {
12
10
  /**
@@ -19,8 +19,6 @@ export interface UseExtensionOptions {
19
19
 
20
20
  /**
21
21
  * Add an extension to the editor.
22
- *
23
- * @public
24
22
  */
25
23
  export function useExtension(
26
24
  /**
@@ -5,8 +5,6 @@ import { useExtension, type UseExtensionOptions } from './use-extension.ts'
5
5
 
6
6
  /**
7
7
  * Calls the given handler whenever the editor state changes.
8
- *
9
- * @public
10
8
  */
11
9
  export function useStateUpdate(
12
10
  handler: (state: EditorState) => void,