@prosekit/vue 0.2.3 → 0.2.5

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.
@@ -4,6 +4,7 @@ import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/lit/
4
4
  import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/autocomplete-list';
5
5
  import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/autocomplete-popover';
6
6
  import { BaseNodeViewOptions } from '@prosekit/core';
7
+ import { BlockPopoverProps as BlockPopoverProps_2 } from '@prosekit/lit/block-popover';
7
8
  import { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/combo-box-input';
8
9
  import { ComboBoxItemProps as ComboBoxItemProps_2 } from '@prosekit/lit/combo-box-item';
9
10
  import { ComboBoxListProps as ComboBoxListProps_2 } from '@prosekit/lit/combo-box-list';
@@ -17,6 +18,7 @@ import type { CoreNodeViewUserOptions } from '@prosemirror-adapter/core';
17
18
  import type { Decoration } from '@prosekit/pm/view';
18
19
  import type { DecorationSource } from '@prosekit/pm/view';
19
20
  import { DefineComponent } from 'vue';
21
+ import { DragHandleProps as DragHandleProps_2 } from '@prosekit/lit/drag-handle';
20
22
  import { Editor } from '@prosekit/core';
21
23
  import type { EditorState } from '@prosekit/pm/state';
22
24
  import type { EditorView } from '@prosekit/pm/view';
@@ -85,6 +87,12 @@ declare type AutocompletePopoverProps = PropsWithClass<AutocompletePopoverProps_
85
87
  export { AutocompletePopoverProps }
86
88
  export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
87
89
 
90
+ export declare const BlockPopover: (props: BlockPopoverProps_2 & {
91
+ class?: string | undefined;
92
+ } & {}) => any;
93
+
94
+ export declare type BlockPopoverProps = PropsWithClass<BlockPopoverProps_2>;
95
+
88
96
  export declare const ComboBox: (props: ComboBoxProps_2 & {
89
97
  class?: string | undefined;
90
98
  } & {}) => any;
@@ -133,8 +141,15 @@ export { defineVueNodeView as defineVueNodeView_alias_1 }
133
141
  */
134
142
  export declare function defineVueNodeViewFactory(nodeViewFactory: NodeViewFactory): Extension<ExtensionTyping<string, string, CommandArgs>>;
135
143
 
144
+ export declare const DragHandle: (props: DragHandleProps_2 & {
145
+ class?: string | undefined;
146
+ } & {}) => any;
147
+
148
+ export declare type DragHandleProps = PropsWithClass<DragHandleProps_2>;
149
+
136
150
  declare const InlinePopover: (props: {
137
151
  editor: Editor<any>;
152
+ available?: boolean | undefined;
138
153
  } & PopoverProps_2 & {
139
154
  class?: string | undefined;
140
155
  } & {}) => any;
@@ -0,0 +1,2 @@
1
+ export { BlockPopoverProps } from './_tsup-dts-rollup';
2
+ export { BlockPopover } from './_tsup-dts-rollup';
@@ -0,0 +1,19 @@
1
+ // src/components/block-popover.gen.ts
2
+ import "@prosekit/lit/block-popover";
3
+ import { propNames } from "@prosekit/lit/block-popover";
4
+ import { defineComponent, h } from "vue";
5
+ var BlockPopover = defineComponent(
6
+ (props, { slots }) => {
7
+ return () => {
8
+ var _a;
9
+ const webComponentProps = Object.fromEntries(
10
+ Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
+ );
12
+ return h("prosekit-block-popover", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
+ };
14
+ },
15
+ { props: ["class", ...propNames] }
16
+ );
17
+ export {
18
+ BlockPopover
19
+ };
@@ -0,0 +1,2 @@
1
+ export { DragHandleProps } from './_tsup-dts-rollup';
2
+ export { DragHandle } from './_tsup-dts-rollup';
@@ -0,0 +1,19 @@
1
+ // src/components/drag-handle.gen.ts
2
+ import "@prosekit/lit/drag-handle";
3
+ import { propNames } from "@prosekit/lit/drag-handle";
4
+ import { defineComponent, h } from "vue";
5
+ var DragHandle = defineComponent(
6
+ (props, { slots }) => {
7
+ return () => {
8
+ var _a;
9
+ const webComponentProps = Object.fromEntries(
10
+ Object.entries(props).filter((entry) => entry[1] !== void 0).map(([key, value]) => [(key === "class" ? "" : ".") + key, value])
11
+ );
12
+ return h("prosekit-drag-handle", webComponentProps, (_a = slots.default) == null ? void 0 : _a.call(slots));
13
+ };
14
+ },
15
+ { props: ["class", ...propNames] }
16
+ );
17
+ export {
18
+ DragHandle
19
+ };
@@ -4,10 +4,10 @@ import { defineComponent as defineComponent4, h as h3 } from "vue";
4
4
 
5
5
  // src/injection/editor-context.ts
6
6
  import "@prosekit/core";
7
- import { inject, provide, toRef } from "vue";
7
+ import { inject, provide } from "vue";
8
8
  var symbol = Symbol("prosekit-vue-editor-context");
9
9
  function provideEditor(editor) {
10
- provide(symbol, toRef(editor));
10
+ provide(symbol, editor);
11
11
  }
12
12
  function useEditorContext() {
13
13
  return inject(symbol);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/vue",
3
3
  "type": "module",
4
- "version": "0.2.3",
4
+ "version": "0.2.5",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -50,6 +50,11 @@
50
50
  "import": "./dist/prosekit-vue-autocomplete-popover.js",
51
51
  "default": "./dist/prosekit-vue-autocomplete-popover.js"
52
52
  },
53
+ "./block-popover": {
54
+ "types": "./dist/prosekit-vue-block-popover.d.ts",
55
+ "import": "./dist/prosekit-vue-block-popover.js",
56
+ "default": "./dist/prosekit-vue-block-popover.js"
57
+ },
53
58
  "./combo-box": {
54
59
  "types": "./dist/prosekit-vue-combo-box.d.ts",
55
60
  "import": "./dist/prosekit-vue-combo-box.js",
@@ -70,6 +75,11 @@
70
75
  "import": "./dist/prosekit-vue-combo-box-list.js",
71
76
  "default": "./dist/prosekit-vue-combo-box-list.js"
72
77
  },
78
+ "./drag-handle": {
79
+ "types": "./dist/prosekit-vue-drag-handle.d.ts",
80
+ "import": "./dist/prosekit-vue-drag-handle.js",
81
+ "default": "./dist/prosekit-vue-drag-handle.js"
82
+ },
73
83
  "./inline-popover": {
74
84
  "types": "./dist/prosekit-vue-inline-popover.d.ts",
75
85
  "import": "./dist/prosekit-vue-inline-popover.js",
@@ -95,8 +105,8 @@
95
105
  "dist"
96
106
  ],
97
107
  "dependencies": {
98
- "@prosekit/core": "^0.2.7",
99
- "@prosekit/lit": "^0.2.1",
108
+ "@prosekit/core": "^0.3.1",
109
+ "@prosekit/lit": "^0.2.5",
100
110
  "@prosekit/pm": "^0.1.1",
101
111
  "@prosemirror-adapter/core": "^0.2.6"
102
112
  },
@@ -110,10 +120,10 @@
110
120
  },
111
121
  "devDependencies": {
112
122
  "@prosekit/dev": "*",
113
- "tsup": "^8.0.1",
123
+ "tsup": "^8.0.2",
114
124
  "typescript": "^5.3.3",
115
- "vitest": "^1.2.1",
116
- "vue": "^3.4.15"
125
+ "vitest": "^1.2.2",
126
+ "vue": "^3.4.18"
117
127
  },
118
128
  "scripts": {
119
129
  "build:tsup": "tsup",
@@ -137,6 +147,9 @@
137
147
  "autocomplete-popover": [
138
148
  "./dist/prosekit-vue-autocomplete-popover.d.ts"
139
149
  ],
150
+ "block-popover": [
151
+ "./dist/prosekit-vue-block-popover.d.ts"
152
+ ],
140
153
  "combo-box": [
141
154
  "./dist/prosekit-vue-combo-box.d.ts"
142
155
  ],
@@ -149,6 +162,9 @@
149
162
  "combo-box-list": [
150
163
  "./dist/prosekit-vue-combo-box-list.d.ts"
151
164
  ],
165
+ "drag-handle": [
166
+ "./dist/prosekit-vue-drag-handle.d.ts"
167
+ ],
152
168
  "inline-popover": [
153
169
  "./dist/prosekit-vue-inline-popover.d.ts"
154
170
  ],