@real-router/vue 0.25.4 → 0.25.6
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/README.md +9 -9
- package/dist/cjs/index.d.ts +3 -43
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/ssr.d.ts +0 -16
- package/dist/cjs/ssr.d.ts.map +1 -1
- package/dist/esm/index.d.mts +3 -43
- package/dist/esm/index.d.mts.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/ssr.d.mts +0 -16
- package/dist/esm/ssr.d.mts.map +1 -1
- package/package.json +4 -4
package/dist/esm/ssr.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from "vue";
|
|
2
|
-
//#region src/utils/createHttpStatusSink.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Render-scoped HTTP status sink. Created per request on the server, passed to
|
|
5
4
|
* `<HttpStatusProvider :sink="...">`, and read after `renderToString` /
|
|
@@ -28,20 +27,14 @@ interface HttpStatusSink {
|
|
|
28
27
|
code: number | undefined;
|
|
29
28
|
}
|
|
30
29
|
export declare function createHttpStatusSink(): HttpStatusSink;
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/components/ClientOnly.d.ts
|
|
33
30
|
export declare const ClientOnly: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
31
|
[key: string]: any;
|
|
35
32
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
33
|
type ClientOnlyProps = InstanceType<typeof ClientOnly>["$props"];
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/components/ServerOnly.d.ts
|
|
39
34
|
export declare const ServerOnly: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
40
35
|
[key: string]: any;
|
|
41
36
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
37
|
type ServerOnlyProps = InstanceType<typeof ServerOnly>["$props"];
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/components/Await.d.ts
|
|
45
38
|
/**
|
|
46
39
|
* Reads `useDeferred(name)` and hands the resolved value to the `default`
|
|
47
40
|
* scoped slot via Vue's native `async setup()` Suspense pattern. Wrap in
|
|
@@ -87,8 +80,6 @@ export declare const Await: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
87
80
|
};
|
|
88
81
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
89
82
|
type AwaitProps = InstanceType<typeof Await>["$props"];
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/components/Streamed.d.ts
|
|
92
83
|
/**
|
|
93
84
|
* Cross-adapter alias for Vue's native `<Suspense>`. Symmetric naming with
|
|
94
85
|
* the React/Preact/Solid/Svelte/Angular `<Streamed>` components.
|
|
@@ -106,8 +97,6 @@ export declare const Streamed: import("vue").DefineComponent<{}, () => import("v
|
|
|
106
97
|
[key: string]: any;
|
|
107
98
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
108
99
|
type StreamedProps = InstanceType<typeof Streamed>["$props"];
|
|
109
|
-
//#endregion
|
|
110
|
-
//#region src/components/HttpStatusCode.d.ts
|
|
111
100
|
/**
|
|
112
101
|
* Render-time HTTP status declaration. Mount inside a route component (typical
|
|
113
102
|
* use case: a glob `*` route's NotFound page) when the status is decided by
|
|
@@ -169,8 +158,6 @@ export declare const HttpStatusCode: import("vue").DefineComponent<import("vue")
|
|
|
169
158
|
};
|
|
170
159
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
171
160
|
type HttpStatusCodeProps = InstanceType<typeof HttpStatusCode>["$props"];
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region src/components/HttpStatusProvider.d.ts
|
|
174
161
|
export declare const HttpStatusProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
175
162
|
sink: {
|
|
176
163
|
type: PropType<HttpStatusSink>;
|
|
@@ -185,8 +172,6 @@ export declare const HttpStatusProvider: import("vue").DefineComponent<import("v
|
|
|
185
172
|
};
|
|
186
173
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
187
174
|
type HttpStatusProviderProps = InstanceType<typeof HttpStatusProvider>["$props"];
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region src/composables/useDeferred.d.ts
|
|
190
175
|
/**
|
|
191
176
|
* Read a deferred promise published by `defer({ deferred: { <key>: Promise } })`
|
|
192
177
|
* inside an SSR data loader. Returns the Promise for use inside `async setup()`
|
|
@@ -207,6 +192,5 @@ type HttpStatusProviderProps = InstanceType<typeof HttpStatusProvider>["$props"]
|
|
|
207
192
|
* silent runtime error.
|
|
208
193
|
*/
|
|
209
194
|
export declare function useDeferred<T = unknown>(key: string): Promise<T>;
|
|
210
|
-
//#endregion
|
|
211
195
|
export type { AwaitProps, ClientOnlyProps, HttpStatusCodeProps, HttpStatusProviderProps, HttpStatusSink, ServerOnlyProps, StreamedProps };
|
|
212
196
|
//# sourceMappingURL=ssr.d.mts.map
|
package/dist/esm/ssr.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr.d.mts","names":[],"sources":["../../src/utils/createHttpStatusSink.ts","../../src/components/ClientOnly.ts","../../src/components/ServerOnly.ts","../../src/components/Await.ts","../../src/components/Streamed.ts","../../src/components/HttpStatusCode.ts","../../src/components/HttpStatusProvider.ts","../../src/composables/useDeferred.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ssr.d.mts","names":[],"sources":["../../src/utils/createHttpStatusSink.ts","../../src/components/ClientOnly.ts","../../src/components/ServerOnly.ts","../../src/components/Await.ts","../../src/components/Streamed.ts","../../src/components/HttpStatusCode.ts","../../src/components/HttpStatusProvider.ts","../../src/composables/useDeferred.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;UAwBiB;EACf;;wBAGc,wBAAwB;qBC1B3B,0BAAU,wCAAA,oBAAA,4BAAA;;4CAWrB,qCAAA,iDAAA,aAAA,eAAA,oDAAA;KAEU,kBAAkB,oBAAoB;qBCbrC,0BAAU,wCAAA,oBAAA,4BAAA;;4CAWrB,qCAAA,iDAAA,aAAA,eAAA,oDAAA;KAEU,kBAAkB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCkBrC,qBAAK,8BAAA;;;;;;;;;;;;;;MAWhB,oDAAA;KAEU,aAAa,oBAAoB;;;;;;;;;;;;;;qBC/BhC,wBAAQ,wCAAA,oBAAA,4BAAA;;8BAanB,qCAAA,iDAAA,aAAA,eAAA,oDAAA;KAEU,gBAAgB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBC0BnC,8BAAc,8BAAA;;;;;;0CAjDA,qCAAA,iDAAA,aAAA,uBAAA;;;;;;MA+EzB,oDAAA;KAEU,sBAAsB,oBAAoB;qBCjFzC,kCAAkB,8BAAA;;IAGH,MAAA,SAAS;;;;;;;IAAT,MAAA,SAAS;;;MAOnC,oDAAA;KAEU,0BAA0B,oBAC7B;;;;;;;;;;;;;;;;;;;;wBCUO,YAAY,aAAa,cAAc,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@real-router/vue",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.6",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Vue 3 integration for Real-Router",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"@real-router/sources": "^0.15.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@real-router/browser-plugin": "^0.
|
|
73
|
-
"@real-router/core": "^0.
|
|
72
|
+
"@real-router/browser-plugin": "^0.27.0",
|
|
73
|
+
"@real-router/core": "^0.157.0",
|
|
74
74
|
"@testing-library/jest-dom": "~7.0.1",
|
|
75
75
|
"@vue/test-utils": "2.5.1",
|
|
76
76
|
"vue": "~3.5.39"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@real-router/core": ">=0.
|
|
79
|
+
"@real-router/core": ">=0.157.0",
|
|
80
80
|
"vue": ">=3.3.0"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|