@web-widget/vue 0.8.1 → 0.9.0
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/vue.client.d.ts +1 -1
- package/dist/vue.client.js +1 -1
- package/dist/vue.server.d.ts +1 -1
- package/dist/vue.server.js +2 -2
- package/package.json +3 -3
package/dist/vue.client.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ type JSONProps = {
|
|
|
156
156
|
[x: string]: JSONValue;
|
|
157
157
|
};
|
|
158
158
|
interface CreateVueRenderOptions {
|
|
159
|
-
onCreatedApp?: (app: App<Element>, context: RenderContext, component: Component, props: ComponentProps) => void
|
|
159
|
+
onCreatedApp?: (app: App<Element>, context: RenderContext, component: Component, props: ComponentProps) => Promise<void>;
|
|
160
160
|
onPrefetchData?: (context: RenderContext, component: Component, props: ComponentProps) => Promise<JSONProps>;
|
|
161
161
|
}
|
|
162
162
|
|
package/dist/vue.client.js
CHANGED
package/dist/vue.server.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ type JSONProps = {
|
|
|
157
157
|
[x: string]: JSONValue;
|
|
158
158
|
};
|
|
159
159
|
interface CreateVueRenderOptions {
|
|
160
|
-
onCreatedApp?: (app: App<Element>, context: RenderContext, component: Component, props: ComponentProps) => void
|
|
160
|
+
onCreatedApp?: (app: App<Element>, context: RenderContext, component: Component, props: ComponentProps) => Promise<void>;
|
|
161
161
|
onPrefetchData?: (context: RenderContext, component: Component, props: ComponentProps) => Promise<JSONProps>;
|
|
162
162
|
}
|
|
163
163
|
|
package/dist/vue.server.js
CHANGED
|
@@ -172,7 +172,7 @@ function htmlEscapeJsonString(str) {
|
|
|
172
172
|
return str.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);
|
|
173
173
|
}
|
|
174
174
|
var createVueRender = ({
|
|
175
|
-
onCreatedApp = () => {
|
|
175
|
+
onCreatedApp = async () => {
|
|
176
176
|
},
|
|
177
177
|
onPrefetchData
|
|
178
178
|
} = {}) => {
|
|
@@ -193,7 +193,7 @@ var createVueRender = ({
|
|
|
193
193
|
})
|
|
194
194
|
]);
|
|
195
195
|
const app = createSSRApp(vNode);
|
|
196
|
-
onCreatedApp(app, context, component, mergedProps);
|
|
196
|
+
await onCreatedApp(app, context, component, mergedProps);
|
|
197
197
|
return renderToWebStream(app, ssrContext);
|
|
198
198
|
} else {
|
|
199
199
|
const app = createSSRApp(component, mergedProps);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-widget/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@web-widget/vite": "2.
|
|
30
|
+
"@web-widget/vite": "2.6.0",
|
|
31
31
|
"@web-widget/html": "0.1.4",
|
|
32
32
|
"@web-widget/schema": "0.3.0",
|
|
33
|
-
"@web-widget/web-widget": "1.
|
|
33
|
+
"@web-widget/web-widget": "1.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^7.0.0",
|