@prosekit/vue 0.0.0-next-20240715024943 → 0.0.0-next-20240715033214
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/{chunk-DJHAZPRE.js → chunk-2WYX7Y3T.js} +8 -4
- package/dist/prosekit-vue-autocomplete.js +1 -1
- package/dist/prosekit-vue-block-handle.js +1 -1
- package/dist/prosekit-vue-inline-popover.js +1 -1
- package/dist/prosekit-vue-popover.js +1 -1
- package/dist/prosekit-vue-resizable.js +1 -1
- package/dist/prosekit-vue-tooltip.js +1 -1
- package/package.json +4 -4
@@ -5,19 +5,23 @@ import {
|
|
5
5
|
// src/components/create-component.ts
|
6
6
|
import {
|
7
7
|
defineComponent,
|
8
|
-
h
|
8
|
+
h,
|
9
|
+
onMounted,
|
10
|
+
ref
|
9
11
|
} from "vue";
|
10
12
|
function createComponent(tagName, displayName, defaultProps) {
|
11
13
|
let propertyNames = Object.keys(defaultProps), hasEditor = Object.hasOwn(defaultProps, "editor");
|
12
14
|
return defineComponent(
|
13
15
|
(props, { slots }) => {
|
14
|
-
let editor = useEditorContext();
|
15
|
-
return () => {
|
16
|
+
let editor = useEditorContext(), mounted = ref(!1);
|
17
|
+
return onMounted(() => {
|
18
|
+
console.log("[prosekit] onMounted"), mounted.value = !0;
|
19
|
+
}), () => {
|
16
20
|
var _a;
|
17
21
|
let p = {};
|
18
22
|
for (let [key, value] of Object.entries(props))
|
19
23
|
value !== void 0 && (p[propertyNames.includes(key) ? "." + key : key] = value);
|
20
|
-
return hasEditor && editor && !p.editor && (p.editor = editor), h(tagName, p, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
24
|
+
return hasEditor && editor && !p.editor && (console.log("[prosekit] mounted", mounted.value), p.editor = editor), h(tagName, p, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
21
25
|
};
|
22
26
|
},
|
23
27
|
{
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/vue",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.0-next-
|
4
|
+
"version": "0.0.0-next-20240715033214",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -66,9 +66,9 @@
|
|
66
66
|
],
|
67
67
|
"dependencies": {
|
68
68
|
"@prosemirror-adapter/vue": "^0.2.6",
|
69
|
-
"@prosekit/
|
70
|
-
"@prosekit/
|
71
|
-
"@prosekit/web": "^0.0.0-next-
|
69
|
+
"@prosekit/core": "^0.0.0-next-20240715033214",
|
70
|
+
"@prosekit/pm": "^0.0.0-next-20240715033214",
|
71
|
+
"@prosekit/web": "^0.0.0-next-20240715033214"
|
72
72
|
},
|
73
73
|
"peerDependencies": {
|
74
74
|
"vue": ">= 3.0.0"
|