@real-router/preact 0.18.51 → 0.18.53
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/cjs/index.d.ts +16 -16
- 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 +9 -9
- package/dist/cjs/ssr.d.ts.map +1 -1
- package/dist/cjs/ssr.js.map +1 -1
- package/dist/cjs/useRoute-B0pDCgZw.js.map +1 -1
- package/dist/esm/index.d.mts +16 -16
- 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 +9 -9
- package/dist/esm/ssr.d.mts.map +1 -1
- package/package.json +4 -4
package/dist/esm/ssr.d.mts
CHANGED
|
@@ -4,14 +4,14 @@ interface ClientOnlyProps {
|
|
|
4
4
|
readonly children: ComponentChildren;
|
|
5
5
|
readonly fallback?: ComponentChildren;
|
|
6
6
|
}
|
|
7
|
-
declare function ClientOnly({ children, fallback }: ClientOnlyProps): ComponentChildren;
|
|
7
|
+
export declare function ClientOnly({ children, fallback }: ClientOnlyProps): ComponentChildren;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/components/ServerOnly.d.ts
|
|
10
10
|
interface ServerOnlyProps {
|
|
11
11
|
readonly children: ComponentChildren;
|
|
12
12
|
readonly fallback?: ComponentChildren;
|
|
13
13
|
}
|
|
14
|
-
declare function ServerOnly({ children, fallback }: ServerOnlyProps): ComponentChildren;
|
|
14
|
+
export declare function ServerOnly({ children, fallback }: ServerOnlyProps): ComponentChildren;
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/components/Await.d.ts
|
|
17
17
|
interface AwaitProps<T> {
|
|
@@ -34,7 +34,7 @@ interface AwaitProps<T> {
|
|
|
34
34
|
* </Streamed>
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare function Await<T = unknown>({ name, children }: AwaitProps<T>): ComponentChildren;
|
|
37
|
+
export declare function Await<T = unknown>({ name, children }: AwaitProps<T>): ComponentChildren;
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/components/Streamed.d.ts
|
|
40
40
|
interface StreamedProps {
|
|
@@ -50,7 +50,7 @@ interface StreamedProps {
|
|
|
50
50
|
* Preact's `Suspense` is part of `preact/compat` (experimental). For
|
|
51
51
|
* production streaming the preact-render-to-string toolchain is required.
|
|
52
52
|
*/
|
|
53
|
-
declare function Streamed({ fallback, children }: StreamedProps): ComponentChildren;
|
|
53
|
+
export declare function Streamed({ fallback, children }: StreamedProps): ComponentChildren;
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/HttpStatusCode.d.ts
|
|
56
56
|
interface HttpStatusCodeProps {
|
|
@@ -102,7 +102,7 @@ interface HttpStatusCodeProps {
|
|
|
102
102
|
* dropped connection, not silent corruption. Pass a real HTTP status integer
|
|
103
103
|
* (commonly 4xx/5xx; 100-999 is what Node accepts).
|
|
104
104
|
*/
|
|
105
|
-
declare function HttpStatusCode({ code }: HttpStatusCodeProps): ComponentChildren;
|
|
105
|
+
export declare function HttpStatusCode({ code }: HttpStatusCodeProps): ComponentChildren;
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/utils/createHttpStatusSink.d.ts
|
|
108
108
|
/**
|
|
@@ -128,14 +128,14 @@ declare function HttpStatusCode({ code }: HttpStatusCodeProps): ComponentChildre
|
|
|
128
128
|
interface HttpStatusSink {
|
|
129
129
|
code: number | undefined;
|
|
130
130
|
}
|
|
131
|
-
declare function createHttpStatusSink(): HttpStatusSink;
|
|
131
|
+
export declare function createHttpStatusSink(): HttpStatusSink;
|
|
132
132
|
//#endregion
|
|
133
133
|
//#region src/components/HttpStatusProvider.d.ts
|
|
134
134
|
interface HttpStatusProviderProps {
|
|
135
135
|
readonly sink: HttpStatusSink;
|
|
136
136
|
readonly children: ComponentChildren;
|
|
137
137
|
}
|
|
138
|
-
declare function HttpStatusProvider({ sink, children }: HttpStatusProviderProps): ComponentChildren;
|
|
138
|
+
export declare function HttpStatusProvider({ sink, children }: HttpStatusProviderProps): ComponentChildren;
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region src/hooks/useDeferred.d.ts
|
|
141
141
|
/**
|
|
@@ -145,7 +145,7 @@ declare function HttpStatusProvider({ sink, children }: HttpStatusProviderProps)
|
|
|
145
145
|
* fallback. Pair with `<Await>` (this package) which adds Preact-side
|
|
146
146
|
* promise-status tracking since Preact 10 has no `use(promise)` analogue.
|
|
147
147
|
*/
|
|
148
|
-
declare function useDeferred<T = unknown>(key: string): Promise<T>;
|
|
148
|
+
export declare function useDeferred<T = unknown>(key: string): Promise<T>;
|
|
149
149
|
//#endregion
|
|
150
|
-
export {
|
|
150
|
+
export type { AwaitProps, ClientOnlyProps, HttpStatusCodeProps, HttpStatusProviderProps, HttpStatusSink, ServerOnlyProps, StreamedProps };
|
|
151
151
|
//# 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/components/ClientOnly.tsx","../../src/components/ServerOnly.tsx","../../src/components/Await.tsx","../../src/components/Streamed.tsx","../../src/components/HttpStatusCode.tsx","../../src/utils/createHttpStatusSink.ts","../../src/components/HttpStatusProvider.tsx","../../src/hooks/useDeferred.tsx"],"mappings":";;UAIiB;WACN,UAAU;WACV,WAAW;;
|
|
1
|
+
{"version":3,"file":"ssr.d.mts","names":[],"sources":["../../src/components/ClientOnly.tsx","../../src/components/ServerOnly.tsx","../../src/components/Await.tsx","../../src/components/Streamed.tsx","../../src/components/HttpStatusCode.tsx","../../src/utils/createHttpStatusSink.ts","../../src/components/HttpStatusProvider.tsx","../../src/hooks/useDeferred.tsx"],"mappings":";;UAIiB;WACN,UAAU;WACV,WAAW;;wBAGN,aACd,UACA,YACC,kBAAkB;;;UCRJ;WACN,UAAU;WACV,WAAW;;wBAGN,aACd,UACA,YACC,kBAAkB;;;UC6CJ,WAAW;;WAEjB;;;WAGA,WAAW,OAAO,MAAM;;;;;;;;;;;;;;;wBAgBnB,MAAM,eACpB,MACA,YACC,WAAW,KAAK;;;UC7EF;;WAEN,UAAU;WACV,UAAU;;;;;;;;;;wBAWL,WACd,UACA,YACC,gBAAgB;;;UCfF;;WAEN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDK,iBACd,QACC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;UCtCR;EACf;;wBAGc,wBAAwB;;;UCjBvB;WACN,MAAM;WACN,UAAU;;wBAGL,qBACd,MACA,YACC,0BAA0B;;;;;;;;;;wBCGb,YAAY,aAAa,cAAc,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@real-router/preact",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.53",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Preact integration for Real-Router",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
"license": "MIT",
|
|
64
64
|
"sideEffects": false,
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@real-router/core": "^0.126.
|
|
66
|
+
"@real-router/core": "^0.126.12",
|
|
67
67
|
"@real-router/route-utils": "^0.3.1",
|
|
68
68
|
"@real-router/sources": "^0.14.32"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
+
"@real-router/browser-plugin": "^0.22.13",
|
|
71
72
|
"@testing-library/dom": "~10.4.1",
|
|
72
73
|
"@testing-library/jest-dom": "~6.9.1",
|
|
73
74
|
"@testing-library/preact": "~3.2.4",
|
|
74
75
|
"@testing-library/user-event": "~14.6.1",
|
|
75
76
|
"preact": "~10.29.7",
|
|
76
|
-
"preact-render-to-string": "~6.7.0"
|
|
77
|
-
"@real-router/browser-plugin": "^0.22.12"
|
|
77
|
+
"preact-render-to-string": "~6.7.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"preact": ">=10.28.0 || ^11.0.0-0"
|