ignotum 0.0.13 → 0.0.15
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 +6 -6
- package/dist/cli/bin.mjs +6111 -4448
- package/dist/cli/bin.mjs.map +1 -1
- package/dist/cli/emscripten-module-D5GzfUNv.mjs +533 -0
- package/dist/cli/emscripten-module-D5GzfUNv.mjs.map +1 -0
- package/dist/cli/ffi-7IElU4Co.mjs +148 -0
- package/dist/cli/ffi-7IElU4Co.mjs.map +1 -0
- package/dist/cli/managed-release-WHYLZwaS.mjs +10902 -0
- package/dist/cli/managed-release-WHYLZwaS.mjs.map +1 -0
- package/dist/cli/managed-release.d.mts +1 -0
- package/dist/cli/managed-release.mjs +14 -0
- package/dist/cli/managed-release.mjs.map +1 -0
- package/dist/cli/module-ES6BEMUI-D36I4NVn.mjs +1289 -0
- package/dist/cli/module-ES6BEMUI-D36I4NVn.mjs.map +1 -0
- package/dist/runtime/{api-Cv3hMbzo.d.ts → api-B4fwp5a2.d.ts} +4 -4
- package/dist/runtime/bootstrap-BISQSn_O.js +916 -0
- package/dist/runtime/bootstrap-BISQSn_O.js.map +1 -0
- package/dist/runtime/bootstrap-BTFScKAc.d.ts +545 -0
- package/dist/runtime/client.d.ts +50 -15
- package/dist/runtime/client.js +7 -1138
- package/dist/runtime/client.js.map +1 -1
- package/dist/runtime/descriptor-CTY4mtwS-cS43EbwS.js +269 -0
- package/dist/runtime/descriptor-CTY4mtwS-cS43EbwS.js.map +1 -0
- package/dist/runtime/{id-Bt9XWRGL.js → id--1m0NuUL.js} +4 -4
- package/dist/runtime/id--1m0NuUL.js.map +1 -0
- package/dist/runtime/{id-BzFHf3Wo-DGPCjgrf.d.ts → id-7an3nxTu-DZJSM5xh.d.ts} +2 -2
- package/dist/runtime/id-CBOt2kDo.d.ts +1 -0
- package/dist/runtime/identity-QjtJRxBD.d.ts +2 -0
- package/dist/runtime/image-Djtjy4Z8.js +19 -0
- package/dist/runtime/image-Djtjy4Z8.js.map +1 -0
- package/dist/runtime/index-D4seNHlX.d.ts +184 -0
- package/dist/runtime/internal/api.d.ts +1 -1
- package/dist/runtime/internal/api.js +30 -1
- package/dist/runtime/internal/api.js.map +1 -0
- package/dist/runtime/internal/bootstrap.d.ts +2 -0
- package/dist/runtime/internal/bootstrap.js +2 -0
- package/dist/runtime/internal/client.d.ts +2 -0
- package/dist/runtime/internal/client.js +75 -0
- package/dist/runtime/internal/client.js.map +1 -0
- package/dist/runtime/internal/host.d.ts +25 -8
- package/dist/runtime/internal/host.js +27 -6
- package/dist/runtime/internal/host.js.map +1 -1
- package/dist/runtime/internal/routes.d.ts +2 -0
- package/dist/runtime/internal/routes.js +2 -0
- package/dist/runtime/internal/server.d.ts +1 -1
- package/dist/runtime/internal/server.js +1 -1
- package/dist/runtime/internal/types.d.ts +2 -1
- package/dist/runtime/internal/types.js +1 -1
- package/dist/runtime/pagination-CBOt2kDo.d.ts +1 -0
- package/dist/runtime/pagination-D3qd6s9N.js +33 -0
- package/dist/runtime/pagination-D3qd6s9N.js.map +1 -0
- package/dist/runtime/result-BkziOG1L.d.ts +1 -0
- package/dist/runtime/router-BSBI1oN1.js +2377 -0
- package/dist/runtime/router-BSBI1oN1.js.map +1 -0
- package/dist/runtime/routes-Ce8TVP-T.js +690 -0
- package/dist/runtime/routes-Ce8TVP-T.js.map +1 -0
- package/dist/runtime/{schema-1Zs03-iS.js → schema-D1wOqiNH.js} +40 -12
- package/dist/runtime/schema-D1wOqiNH.js.map +1 -0
- package/dist/runtime/server.d.ts +5 -5
- package/dist/runtime/server.js +2 -2
- package/dist/runtime/{sync-Bs8J3fIr.d.ts → sync-D-GK2sv9.d.ts} +3 -2
- package/dist/runtime/{api-CAgKDij7.js → sync-DzUwA8W9.js} +22 -41
- package/dist/runtime/sync-DzUwA8W9.js.map +1 -0
- package/dist/runtime/types-DeCCyqLU-BIm7rU-0.d.ts +341 -0
- package/package.json +29 -4
- package/src/cli/agent-files.ts +14 -8
- package/src/cli/build/managed-client.ts +411 -0
- package/src/cli/build/managed-server.ts +294 -0
- package/src/cli/build/managed.ts +67 -0
- package/src/cli/build/output.ts +47 -0
- package/src/cli/build/server.ts +51 -220
- package/src/cli/client-config.ts +1 -140
- package/src/cli/client-styles.ts +1 -0
- package/src/cli/codegen.ts +9 -4
- package/src/cli/command.ts +28 -5
- package/src/cli/control-client.ts +84 -101
- package/src/cli/deploy.ts +133 -177
- package/src/cli/dev.ts +506 -107
- package/src/cli/image-assets.ts +499 -0
- package/src/cli/managed-client-boundaries.ts +103 -0
- package/src/cli/managed-dev-platform.ts +118 -0
- package/src/cli/managed-exports.ts +219 -0
- package/src/cli/managed-release-bin.ts +13 -0
- package/src/cli/managed-release.ts +260 -0
- package/src/cli/module-boundaries.ts +11 -1
- package/src/cli/new-app.ts +111 -87
- package/src/cli/route-codegen.ts +311 -0
- package/src/cli/route-static.ts +710 -0
- package/src/client/bootstrap.ts +110 -0
- package/src/client/errors.ts +13 -7
- package/src/client/files.ts +64 -0
- package/src/client/id.ts +9 -5
- package/src/client/image.ts +28 -0
- package/src/client/index.ts +25 -2
- package/src/client/managed-client.ts +729 -0
- package/src/client/managed-upgrade.ts +283 -0
- package/src/client/recovery-journal.ts +195 -0
- package/src/client/route-boundaries.ts +184 -0
- package/src/client/router-history.ts +152 -0
- package/src/client/router-store.ts +644 -0
- package/src/client/router.ts +324 -0
- package/src/client/routes.ts +28 -0
- package/src/client/sync.ts +66 -592
- package/src/dev-runtime/database.ts +77 -2
- package/src/dev-runtime/functions.ts +3 -3
- package/src/dev-runtime/id.ts +19 -4
- package/src/dev-runtime/managed-functions.ts +255 -0
- package/src/dev-runtime/managed-sync.ts +263 -0
- package/src/dev-runtime/managed-websocket.ts +71 -0
- package/src/dev-runtime/migrations.ts +20 -0
- package/src/dev-runtime/sync.ts +236 -236
- package/src/image-assets.d.ts +36 -0
- package/src/internal/client.ts +186 -0
- package/src/internal/host.ts +1 -1
- package/src/internal/http-paths.ts +0 -3
- package/src/internal/routes.ts +45 -0
- package/dist/runtime/api-CAgKDij7.js.map +0 -1
- package/dist/runtime/descriptor-Cyo9FP9n-C0SRVXNW.js +0 -154
- package/dist/runtime/descriptor-Cyo9FP9n-C0SRVXNW.js.map +0 -1
- package/dist/runtime/id-Bt9XWRGL.js.map +0 -1
- package/dist/runtime/id-Dz0apuB3.d.ts +0 -1
- package/dist/runtime/index-D54flWtH.d.ts +0 -402
- package/dist/runtime/pagination-DnKg3dkI-r5ZUxBBx.d.ts +0 -112
- package/dist/runtime/pagination-Dz0apuB3.d.ts +0 -1
- package/dist/runtime/result-DKAA4gpS.d.ts +0 -1
- package/dist/runtime/schema-1Zs03-iS.js.map +0 -1
- package/src/cli/build/client.ts +0 -119
- package/src/cli/build/public.ts +0 -186
- package/src/cli/client-entry.ts +0 -152
- package/src/cli/client-plugin.ts +0 -136
- package/src/client/app.ts +0 -15
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
import { a as Id } from "./types-DeCCyqLU-BIm7rU-0.js";
|
|
2
|
+
import "./index-D4seNHlX.js";
|
|
3
|
+
import "./identity-QjtJRxBD.js";
|
|
4
|
+
import { Effect, Schema } from "effect";
|
|
5
|
+
import { ComponentChildren, ComponentType, JSX } from "preact";
|
|
6
|
+
//#region ../contracts/dist/app-definition.d.ts
|
|
7
|
+
declare const AppModuleId: Schema.brand<Schema.String, "ignotum/app-definition/AppModuleId">;
|
|
8
|
+
type AppModuleId = typeof AppModuleId.Type;
|
|
9
|
+
declare const UrlValueDescriptor: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
10
|
+
type: Schema.Literal<"string">;
|
|
11
|
+
}>, Schema.Struct<{
|
|
12
|
+
type: Schema.Literal<"id">;
|
|
13
|
+
table: Schema.String;
|
|
14
|
+
}>, Schema.Struct<{
|
|
15
|
+
type: Schema.Literal<"number">;
|
|
16
|
+
}>, Schema.Struct<{
|
|
17
|
+
type: Schema.Literal<"integer">;
|
|
18
|
+
}>, Schema.Struct<{
|
|
19
|
+
type: Schema.Literal<"boolean">;
|
|
20
|
+
}>, Schema.Struct<{
|
|
21
|
+
type: Schema.Literal<"literal">;
|
|
22
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
23
|
+
}>, Schema.Struct<{
|
|
24
|
+
type: Schema.Literal<"literals">;
|
|
25
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
26
|
+
}>]>, Schema.Struct<{
|
|
27
|
+
type: Schema.Literal<"array">;
|
|
28
|
+
value: Schema.Union<readonly [Schema.Struct<{
|
|
29
|
+
type: Schema.Literal<"string">;
|
|
30
|
+
}>, Schema.Struct<{
|
|
31
|
+
type: Schema.Literal<"id">;
|
|
32
|
+
table: Schema.String;
|
|
33
|
+
}>, Schema.Struct<{
|
|
34
|
+
type: Schema.Literal<"number">;
|
|
35
|
+
}>, Schema.Struct<{
|
|
36
|
+
type: Schema.Literal<"integer">;
|
|
37
|
+
}>, Schema.Struct<{
|
|
38
|
+
type: Schema.Literal<"boolean">;
|
|
39
|
+
}>, Schema.Struct<{
|
|
40
|
+
type: Schema.Literal<"literal">;
|
|
41
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
42
|
+
}>, Schema.Struct<{
|
|
43
|
+
type: Schema.Literal<"literals">;
|
|
44
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
45
|
+
}>]>;
|
|
46
|
+
}>]>, Schema.Struct<{
|
|
47
|
+
type: Schema.Literal<"optional">;
|
|
48
|
+
value: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
49
|
+
type: Schema.Literal<"string">;
|
|
50
|
+
}>, Schema.Struct<{
|
|
51
|
+
type: Schema.Literal<"id">;
|
|
52
|
+
table: Schema.String;
|
|
53
|
+
}>, Schema.Struct<{
|
|
54
|
+
type: Schema.Literal<"number">;
|
|
55
|
+
}>, Schema.Struct<{
|
|
56
|
+
type: Schema.Literal<"integer">;
|
|
57
|
+
}>, Schema.Struct<{
|
|
58
|
+
type: Schema.Literal<"boolean">;
|
|
59
|
+
}>, Schema.Struct<{
|
|
60
|
+
type: Schema.Literal<"literal">;
|
|
61
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
62
|
+
}>, Schema.Struct<{
|
|
63
|
+
type: Schema.Literal<"literals">;
|
|
64
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
65
|
+
}>]>, Schema.Struct<{
|
|
66
|
+
type: Schema.Literal<"array">;
|
|
67
|
+
value: Schema.Union<readonly [Schema.Struct<{
|
|
68
|
+
type: Schema.Literal<"string">;
|
|
69
|
+
}>, Schema.Struct<{
|
|
70
|
+
type: Schema.Literal<"id">;
|
|
71
|
+
table: Schema.String;
|
|
72
|
+
}>, Schema.Struct<{
|
|
73
|
+
type: Schema.Literal<"number">;
|
|
74
|
+
}>, Schema.Struct<{
|
|
75
|
+
type: Schema.Literal<"integer">;
|
|
76
|
+
}>, Schema.Struct<{
|
|
77
|
+
type: Schema.Literal<"boolean">;
|
|
78
|
+
}>, Schema.Struct<{
|
|
79
|
+
type: Schema.Literal<"literal">;
|
|
80
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
type: Schema.Literal<"literals">;
|
|
83
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
84
|
+
}>]>;
|
|
85
|
+
}>]>;
|
|
86
|
+
}>, Schema.Struct<{
|
|
87
|
+
type: Schema.Literal<"default">;
|
|
88
|
+
value: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
89
|
+
type: Schema.Literal<"string">;
|
|
90
|
+
}>, Schema.Struct<{
|
|
91
|
+
type: Schema.Literal<"id">;
|
|
92
|
+
table: Schema.String;
|
|
93
|
+
}>, Schema.Struct<{
|
|
94
|
+
type: Schema.Literal<"number">;
|
|
95
|
+
}>, Schema.Struct<{
|
|
96
|
+
type: Schema.Literal<"integer">;
|
|
97
|
+
}>, Schema.Struct<{
|
|
98
|
+
type: Schema.Literal<"boolean">;
|
|
99
|
+
}>, Schema.Struct<{
|
|
100
|
+
type: Schema.Literal<"literal">;
|
|
101
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
102
|
+
}>, Schema.Struct<{
|
|
103
|
+
type: Schema.Literal<"literals">;
|
|
104
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
105
|
+
}>]>, Schema.Struct<{
|
|
106
|
+
type: Schema.Literal<"array">;
|
|
107
|
+
value: Schema.Union<readonly [Schema.Struct<{
|
|
108
|
+
type: Schema.Literal<"string">;
|
|
109
|
+
}>, Schema.Struct<{
|
|
110
|
+
type: Schema.Literal<"id">;
|
|
111
|
+
table: Schema.String;
|
|
112
|
+
}>, Schema.Struct<{
|
|
113
|
+
type: Schema.Literal<"number">;
|
|
114
|
+
}>, Schema.Struct<{
|
|
115
|
+
type: Schema.Literal<"integer">;
|
|
116
|
+
}>, Schema.Struct<{
|
|
117
|
+
type: Schema.Literal<"boolean">;
|
|
118
|
+
}>, Schema.Struct<{
|
|
119
|
+
type: Schema.Literal<"literal">;
|
|
120
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
121
|
+
}>, Schema.Struct<{
|
|
122
|
+
type: Schema.Literal<"literals">;
|
|
123
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
124
|
+
}>]>;
|
|
125
|
+
}>]>;
|
|
126
|
+
default: Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>]>;
|
|
127
|
+
}>]>;
|
|
128
|
+
type UrlValueDescriptor = typeof UrlValueDescriptor.Type;
|
|
129
|
+
declare const StaticMetadata: Schema.Struct<{
|
|
130
|
+
title: Schema.optional<Schema.String>;
|
|
131
|
+
meta: Schema.optional<Schema.Struct<{
|
|
132
|
+
description: Schema.optional<Schema.String>;
|
|
133
|
+
robots: Schema.optional<Schema.String>;
|
|
134
|
+
}>>;
|
|
135
|
+
}>;
|
|
136
|
+
type StaticMetadata = typeof StaticMetadata.Type;
|
|
137
|
+
declare const LayoutMetadata: Schema.Struct<{
|
|
138
|
+
title: Schema.optional<Schema.String>;
|
|
139
|
+
titleTemplate: Schema.optional<Schema.String>;
|
|
140
|
+
meta: Schema.optional<Schema.Struct<{
|
|
141
|
+
description: Schema.optional<Schema.String>;
|
|
142
|
+
robots: Schema.optional<Schema.String>;
|
|
143
|
+
}>>;
|
|
144
|
+
}>;
|
|
145
|
+
type LayoutMetadata = typeof LayoutMetadata.Type;
|
|
146
|
+
declare const RouteDefinition: Schema.Struct<{
|
|
147
|
+
id: Schema.brand<Schema.String, "ignotum/app-definition/RouteId">;
|
|
148
|
+
pattern: Schema.String;
|
|
149
|
+
directoryScope: Schema.optional<Schema.String>;
|
|
150
|
+
precedence: Schema.$Array<Schema.Natural>;
|
|
151
|
+
params: Schema.$Array<Schema.Struct<{
|
|
152
|
+
name: Schema.String;
|
|
153
|
+
value: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
154
|
+
type: Schema.Literal<"string">;
|
|
155
|
+
}>, Schema.Struct<{
|
|
156
|
+
type: Schema.Literal<"id">;
|
|
157
|
+
table: Schema.String;
|
|
158
|
+
}>, Schema.Struct<{
|
|
159
|
+
type: Schema.Literal<"number">;
|
|
160
|
+
}>, Schema.Struct<{
|
|
161
|
+
type: Schema.Literal<"integer">;
|
|
162
|
+
}>, Schema.Struct<{
|
|
163
|
+
type: Schema.Literal<"boolean">;
|
|
164
|
+
}>, Schema.Struct<{
|
|
165
|
+
type: Schema.Literal<"literal">;
|
|
166
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
167
|
+
}>, Schema.Struct<{
|
|
168
|
+
type: Schema.Literal<"literals">;
|
|
169
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
170
|
+
}>]>, Schema.Struct<{
|
|
171
|
+
type: Schema.Literal<"array">;
|
|
172
|
+
value: Schema.Struct<{
|
|
173
|
+
type: Schema.Literal<"string">;
|
|
174
|
+
}>;
|
|
175
|
+
}>]>;
|
|
176
|
+
}>>;
|
|
177
|
+
searchParams: Schema.$Array<Schema.Struct<{
|
|
178
|
+
name: Schema.String;
|
|
179
|
+
value: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
180
|
+
type: Schema.Literal<"string">;
|
|
181
|
+
}>, Schema.Struct<{
|
|
182
|
+
type: Schema.Literal<"id">;
|
|
183
|
+
table: Schema.String;
|
|
184
|
+
}>, Schema.Struct<{
|
|
185
|
+
type: Schema.Literal<"number">;
|
|
186
|
+
}>, Schema.Struct<{
|
|
187
|
+
type: Schema.Literal<"integer">;
|
|
188
|
+
}>, Schema.Struct<{
|
|
189
|
+
type: Schema.Literal<"boolean">;
|
|
190
|
+
}>, Schema.Struct<{
|
|
191
|
+
type: Schema.Literal<"literal">;
|
|
192
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
193
|
+
}>, Schema.Struct<{
|
|
194
|
+
type: Schema.Literal<"literals">;
|
|
195
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
196
|
+
}>]>, Schema.Struct<{
|
|
197
|
+
type: Schema.Literal<"array">;
|
|
198
|
+
value: Schema.Union<readonly [Schema.Struct<{
|
|
199
|
+
type: Schema.Literal<"string">;
|
|
200
|
+
}>, Schema.Struct<{
|
|
201
|
+
type: Schema.Literal<"id">;
|
|
202
|
+
table: Schema.String;
|
|
203
|
+
}>, Schema.Struct<{
|
|
204
|
+
type: Schema.Literal<"number">;
|
|
205
|
+
}>, Schema.Struct<{
|
|
206
|
+
type: Schema.Literal<"integer">;
|
|
207
|
+
}>, Schema.Struct<{
|
|
208
|
+
type: Schema.Literal<"boolean">;
|
|
209
|
+
}>, Schema.Struct<{
|
|
210
|
+
type: Schema.Literal<"literal">;
|
|
211
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
212
|
+
}>, Schema.Struct<{
|
|
213
|
+
type: Schema.Literal<"literals">;
|
|
214
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
215
|
+
}>]>;
|
|
216
|
+
}>]>, Schema.Struct<{
|
|
217
|
+
type: Schema.Literal<"optional">;
|
|
218
|
+
value: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
219
|
+
type: Schema.Literal<"string">;
|
|
220
|
+
}>, Schema.Struct<{
|
|
221
|
+
type: Schema.Literal<"id">;
|
|
222
|
+
table: Schema.String;
|
|
223
|
+
}>, Schema.Struct<{
|
|
224
|
+
type: Schema.Literal<"number">;
|
|
225
|
+
}>, Schema.Struct<{
|
|
226
|
+
type: Schema.Literal<"integer">;
|
|
227
|
+
}>, Schema.Struct<{
|
|
228
|
+
type: Schema.Literal<"boolean">;
|
|
229
|
+
}>, Schema.Struct<{
|
|
230
|
+
type: Schema.Literal<"literal">;
|
|
231
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
232
|
+
}>, Schema.Struct<{
|
|
233
|
+
type: Schema.Literal<"literals">;
|
|
234
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
235
|
+
}>]>, Schema.Struct<{
|
|
236
|
+
type: Schema.Literal<"array">;
|
|
237
|
+
value: Schema.Union<readonly [Schema.Struct<{
|
|
238
|
+
type: Schema.Literal<"string">;
|
|
239
|
+
}>, Schema.Struct<{
|
|
240
|
+
type: Schema.Literal<"id">;
|
|
241
|
+
table: Schema.String;
|
|
242
|
+
}>, Schema.Struct<{
|
|
243
|
+
type: Schema.Literal<"number">;
|
|
244
|
+
}>, Schema.Struct<{
|
|
245
|
+
type: Schema.Literal<"integer">;
|
|
246
|
+
}>, Schema.Struct<{
|
|
247
|
+
type: Schema.Literal<"boolean">;
|
|
248
|
+
}>, Schema.Struct<{
|
|
249
|
+
type: Schema.Literal<"literal">;
|
|
250
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
251
|
+
}>, Schema.Struct<{
|
|
252
|
+
type: Schema.Literal<"literals">;
|
|
253
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
254
|
+
}>]>;
|
|
255
|
+
}>]>;
|
|
256
|
+
}>, Schema.Struct<{
|
|
257
|
+
type: Schema.Literal<"default">;
|
|
258
|
+
value: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
259
|
+
type: Schema.Literal<"string">;
|
|
260
|
+
}>, Schema.Struct<{
|
|
261
|
+
type: Schema.Literal<"id">;
|
|
262
|
+
table: Schema.String;
|
|
263
|
+
}>, Schema.Struct<{
|
|
264
|
+
type: Schema.Literal<"number">;
|
|
265
|
+
}>, Schema.Struct<{
|
|
266
|
+
type: Schema.Literal<"integer">;
|
|
267
|
+
}>, Schema.Struct<{
|
|
268
|
+
type: Schema.Literal<"boolean">;
|
|
269
|
+
}>, Schema.Struct<{
|
|
270
|
+
type: Schema.Literal<"literal">;
|
|
271
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
272
|
+
}>, Schema.Struct<{
|
|
273
|
+
type: Schema.Literal<"literals">;
|
|
274
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
275
|
+
}>]>, Schema.Struct<{
|
|
276
|
+
type: Schema.Literal<"array">;
|
|
277
|
+
value: Schema.Union<readonly [Schema.Struct<{
|
|
278
|
+
type: Schema.Literal<"string">;
|
|
279
|
+
}>, Schema.Struct<{
|
|
280
|
+
type: Schema.Literal<"id">;
|
|
281
|
+
table: Schema.String;
|
|
282
|
+
}>, Schema.Struct<{
|
|
283
|
+
type: Schema.Literal<"number">;
|
|
284
|
+
}>, Schema.Struct<{
|
|
285
|
+
type: Schema.Literal<"integer">;
|
|
286
|
+
}>, Schema.Struct<{
|
|
287
|
+
type: Schema.Literal<"boolean">;
|
|
288
|
+
}>, Schema.Struct<{
|
|
289
|
+
type: Schema.Literal<"literal">;
|
|
290
|
+
value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
291
|
+
}>, Schema.Struct<{
|
|
292
|
+
type: Schema.Literal<"literals">;
|
|
293
|
+
values: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
294
|
+
}>]>;
|
|
295
|
+
}>]>;
|
|
296
|
+
default: Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>]>;
|
|
297
|
+
}>]>;
|
|
298
|
+
}>>;
|
|
299
|
+
page: Schema.Struct<{
|
|
300
|
+
module: Schema.brand<Schema.String, "ignotum/app-definition/AppModuleId">;
|
|
301
|
+
exportName: Schema.String;
|
|
302
|
+
}>;
|
|
303
|
+
layouts: Schema.$Array<Schema.brand<Schema.String, "ignotum/app-definition/LayoutId">>;
|
|
304
|
+
metadata: Schema.Struct<{
|
|
305
|
+
title: Schema.optional<Schema.String>;
|
|
306
|
+
meta: Schema.optional<Schema.Struct<{
|
|
307
|
+
description: Schema.optional<Schema.String>;
|
|
308
|
+
robots: Schema.optional<Schema.String>;
|
|
309
|
+
}>>;
|
|
310
|
+
}>;
|
|
311
|
+
boundaries: Schema.Struct<{
|
|
312
|
+
error: Schema.Boolean;
|
|
313
|
+
invalid: Schema.Boolean;
|
|
314
|
+
}>;
|
|
315
|
+
}>;
|
|
316
|
+
type RouteDefinition = typeof RouteDefinition.Type;
|
|
317
|
+
declare const LayoutDefinition$1: Schema.Struct<{
|
|
318
|
+
id: Schema.brand<Schema.String, "ignotum/app-definition/LayoutId">;
|
|
319
|
+
scope: Schema.String;
|
|
320
|
+
parent: Schema.optional<Schema.brand<Schema.String, "ignotum/app-definition/LayoutId">>;
|
|
321
|
+
module: Schema.Struct<{
|
|
322
|
+
module: Schema.brand<Schema.String, "ignotum/app-definition/AppModuleId">;
|
|
323
|
+
exportName: Schema.String;
|
|
324
|
+
}>;
|
|
325
|
+
metadata: Schema.Struct<{
|
|
326
|
+
title: Schema.optional<Schema.String>;
|
|
327
|
+
titleTemplate: Schema.optional<Schema.String>;
|
|
328
|
+
meta: Schema.optional<Schema.Struct<{
|
|
329
|
+
description: Schema.optional<Schema.String>;
|
|
330
|
+
robots: Schema.optional<Schema.String>;
|
|
331
|
+
}>>;
|
|
332
|
+
}>;
|
|
333
|
+
boundaries: Schema.Struct<{
|
|
334
|
+
error: Schema.Boolean;
|
|
335
|
+
invalid: Schema.Boolean;
|
|
336
|
+
notFound: Schema.Boolean;
|
|
337
|
+
}>;
|
|
338
|
+
}>;
|
|
339
|
+
type LayoutDefinition$1 = typeof LayoutDefinition$1.Type;
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region src/client/image.d.ts
|
|
342
|
+
declare const ImageSourceTypeId: unique symbol;
|
|
343
|
+
/** A compiler-provided reference to an imported image. */
|
|
344
|
+
interface ImageSource {
|
|
345
|
+
readonly type: "ImageSource";
|
|
346
|
+
readonly url: string;
|
|
347
|
+
readonly [ImageSourceTypeId]: true;
|
|
348
|
+
}
|
|
349
|
+
type ImageProps = Omit<JSX.ImgHTMLAttributes<HTMLImageElement>, "alt" | "src" | "srcSet" | "srcset"> & {
|
|
350
|
+
readonly src: ImageSource;
|
|
351
|
+
readonly alt: string;
|
|
352
|
+
};
|
|
353
|
+
/** Renders an imported image. */
|
|
354
|
+
declare const Image: ({ src, alt, ...attributes }: ImageProps) => JSX.Element;
|
|
355
|
+
/** @internal Creates an image reference from a compiler-resolved URL. */
|
|
356
|
+
declare const createImageSource: (url: string) => ImageSource;
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region ../contracts/dist/platform.d.ts
|
|
359
|
+
declare const ExecutionSelection: Schema.Struct<{
|
|
360
|
+
formatVersion: Schema.Literal<1>;
|
|
361
|
+
appId: Schema.brand<Schema.String, "ignotum/hosted/AppId"> & {
|
|
362
|
+
readonly idPrefix: string;
|
|
363
|
+
};
|
|
364
|
+
versionId: Schema.brand<Schema.String, "ignotum/hosted/VersionId"> & {
|
|
365
|
+
readonly idPrefix: string;
|
|
366
|
+
};
|
|
367
|
+
activationGeneration: Schema.brand<Schema.Natural, "ignotum/hosted/ActivationGeneration">;
|
|
368
|
+
platformReleaseId: Schema.brand<Schema.String, "ignotum/platform/PlatformReleaseId"> & {
|
|
369
|
+
readonly idPrefix: string;
|
|
370
|
+
};
|
|
371
|
+
platformGeneration: Schema.brand<Schema.Natural, "ignotum/platform/PlatformGeneration">;
|
|
372
|
+
dataHistoryId: Schema.brand<Schema.String, "ignotum/hosted/DataHistoryId"> & {
|
|
373
|
+
readonly idPrefix: string;
|
|
374
|
+
};
|
|
375
|
+
}>;
|
|
376
|
+
type ExecutionSelection = typeof ExecutionSelection.Type;
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region src/client/router-store.d.ts
|
|
379
|
+
interface RegisteredClientModule {
|
|
380
|
+
readonly load: () => Promise<object>;
|
|
381
|
+
readonly styles?: readonly string[];
|
|
382
|
+
}
|
|
383
|
+
/** Executable registration produced by the compiler, separate from the immutable declaration. */
|
|
384
|
+
interface ClientRegistration {
|
|
385
|
+
readonly applicationName: string;
|
|
386
|
+
readonly routes: readonly RouteDefinition[];
|
|
387
|
+
readonly layouts: readonly LayoutDefinition$1[];
|
|
388
|
+
readonly modules: ReadonlyMap<AppModuleId, RegisteredClientModule>;
|
|
389
|
+
readonly styles?: readonly string[];
|
|
390
|
+
}
|
|
391
|
+
type BlockerState = {
|
|
392
|
+
readonly status: "idle";
|
|
393
|
+
} | {
|
|
394
|
+
readonly status: "blocked";
|
|
395
|
+
readonly from: RouteLocation;
|
|
396
|
+
readonly to: RouteLocation;
|
|
397
|
+
readonly proceed: () => void;
|
|
398
|
+
readonly reset: () => void;
|
|
399
|
+
};
|
|
400
|
+
type NavigationState = {
|
|
401
|
+
readonly status: "idle";
|
|
402
|
+
} | {
|
|
403
|
+
readonly status: "loading";
|
|
404
|
+
readonly to: RouteLocation;
|
|
405
|
+
};
|
|
406
|
+
interface NavigationOptions {
|
|
407
|
+
readonly replace?: boolean;
|
|
408
|
+
readonly scroll?: "auto" | "preserve";
|
|
409
|
+
}
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/internal/client.d.ts
|
|
412
|
+
declare const UrlValueTypeId: unique symbol;
|
|
413
|
+
type Scalar = string | number | boolean;
|
|
414
|
+
type Mode = "required" | "optional" | "default";
|
|
415
|
+
interface UrlValue<Value, Kind extends "scalar" | "array" = "scalar" | "array", Presence extends Mode = Mode> {
|
|
416
|
+
readonly descriptor: UrlValueDescriptor;
|
|
417
|
+
readonly [UrlValueTypeId]?: {
|
|
418
|
+
readonly value: Value;
|
|
419
|
+
readonly kind: Kind;
|
|
420
|
+
readonly presence: Presence;
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
interface RequiredUrlValue<Value, Kind extends "scalar" | "array"> extends UrlValue<Value, Kind, "required"> {
|
|
424
|
+
default(value: Value): UrlValue<Value, Kind, "default">;
|
|
425
|
+
}
|
|
426
|
+
type UrlFields = Readonly<Record<string, UrlValue<unknown>>>;
|
|
427
|
+
type PathFields = Readonly<Record<string, UrlValue<unknown, "scalar", "required"> | UrlValue<readonly string[], "array", "required">>>;
|
|
428
|
+
type ValueOf<Value> = Value extends UrlValue<infer Decoded> ? Decoded : never;
|
|
429
|
+
type OptionalKeys<Fields extends UrlFields> = { [Key in keyof Fields]: Fields[Key] extends UrlValue<unknown, "scalar" | "array", "optional" | "default"> ? Key : never; }[keyof Fields];
|
|
430
|
+
type DecodedFields<Fields extends UrlFields> = { readonly [Key in keyof Fields]: Fields[Key] extends UrlValue<unknown, "scalar" | "array", "optional"> ? ValueOf<Fields[Key]> | undefined : ValueOf<Fields[Key]>; };
|
|
431
|
+
type InputFields<Fields extends UrlFields> = { readonly [Key in Exclude<keyof Fields, OptionalKeys<Fields>>]: ValueOf<Fields[Key]>; } & { readonly [Key in OptionalKeys<Fields>]?: ValueOf<Fields[Key]> | undefined; };
|
|
432
|
+
interface UrlValues<DataModel> {
|
|
433
|
+
string(): RequiredUrlValue<string, "scalar">;
|
|
434
|
+
id<Table extends Extract<keyof DataModel, string>>(table: Table): RequiredUrlValue<Id<Table>, "scalar">;
|
|
435
|
+
number(): RequiredUrlValue<number, "scalar">;
|
|
436
|
+
integer(): RequiredUrlValue<number, "scalar">;
|
|
437
|
+
boolean(): RequiredUrlValue<boolean, "scalar">;
|
|
438
|
+
literal<const Value extends Scalar>(value: Value): RequiredUrlValue<Value, "scalar">;
|
|
439
|
+
literals<const Values extends readonly [Scalar, ...Scalar[]]>(...values: Values): RequiredUrlValue<Values[number], "scalar">;
|
|
440
|
+
optional<Value, Kind extends "scalar" | "array">(value: RequiredUrlValue<Value, Kind>): UrlValue<Value, Kind, "optional">;
|
|
441
|
+
array<Value>(value: RequiredUrlValue<Value, "scalar">): RequiredUrlValue<readonly Value[], "array">;
|
|
442
|
+
}
|
|
443
|
+
interface RouteErrorProps {
|
|
444
|
+
readonly error: unknown;
|
|
445
|
+
readonly retry: () => void;
|
|
446
|
+
}
|
|
447
|
+
interface InvalidRouteProps {
|
|
448
|
+
readonly location: RouteLocation;
|
|
449
|
+
readonly issues: ReadonlyArray<{
|
|
450
|
+
readonly source: "params" | "searchParams";
|
|
451
|
+
readonly field?: string | undefined;
|
|
452
|
+
readonly message: string;
|
|
453
|
+
}>;
|
|
454
|
+
}
|
|
455
|
+
interface PageDefinition<Params extends PathFields | undefined = PathFields | undefined, Search extends UrlFields = UrlFields> extends StaticMetadata {
|
|
456
|
+
readonly params?: Params;
|
|
457
|
+
readonly searchParams?: Search;
|
|
458
|
+
readonly component: ComponentType<{
|
|
459
|
+
readonly params: Params extends PathFields ? DecodedFields<Params> : Readonly<Record<string, string | readonly string[]>>;
|
|
460
|
+
readonly searchParams: DecodedFields<Search>;
|
|
461
|
+
}>;
|
|
462
|
+
readonly error?: ComponentType<RouteErrorProps>;
|
|
463
|
+
readonly invalid?: ComponentType<InvalidRouteProps>;
|
|
464
|
+
}
|
|
465
|
+
interface LayoutDefinition extends LayoutMetadata {
|
|
466
|
+
readonly component: ComponentType<{
|
|
467
|
+
readonly children: ComponentChildren;
|
|
468
|
+
}>;
|
|
469
|
+
readonly error?: ComponentType<RouteErrorProps>;
|
|
470
|
+
readonly invalid?: ComponentType<InvalidRouteProps>;
|
|
471
|
+
readonly notFound?: ComponentType<{
|
|
472
|
+
readonly location: RouteLocation;
|
|
473
|
+
}>;
|
|
474
|
+
}
|
|
475
|
+
declare const bindSchema: <DataModel>() => {
|
|
476
|
+
route: <const Params extends PathFields | undefined = undefined, const Search extends UrlFields = {}>(definition: PageDefinition<Params, Search>) => PageDefinition<Params, Search>;
|
|
477
|
+
layout: (definition: LayoutDefinition) => LayoutDefinition;
|
|
478
|
+
values: UrlValues<DataModel>;
|
|
479
|
+
};
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/internal/routes.d.ts
|
|
482
|
+
declare const RouteReferenceTypeId: unique symbol;
|
|
483
|
+
declare const RouteReferenceTypesTypeId: unique symbol;
|
|
484
|
+
interface RouteReference<Params = unknown, Search = unknown, SearchInputs = unknown> {
|
|
485
|
+
readonly [RouteReferenceTypeId]: RouteDefinition;
|
|
486
|
+
readonly [RouteReferenceTypesTypeId]?: {
|
|
487
|
+
readonly params: Params;
|
|
488
|
+
readonly searchParams: Search;
|
|
489
|
+
readonly searchInputs: SearchInputs;
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
type ReferenceTypes<Reference> = Reference extends RouteReference<infer Params, infer Search, infer SearchInputs> ? {
|
|
493
|
+
readonly params: Params;
|
|
494
|
+
readonly searchParams: Search;
|
|
495
|
+
readonly searchInputs: SearchInputs;
|
|
496
|
+
} : never;
|
|
497
|
+
type ParamsOf<Page, Inferred> = Page extends {
|
|
498
|
+
readonly params?: infer Params;
|
|
499
|
+
} ? Params extends PathFields ? DecodedFields<Params> : Inferred : Inferred;
|
|
500
|
+
type SearchOf<Page> = Page extends {
|
|
501
|
+
readonly searchParams?: infer Search extends UrlFields;
|
|
502
|
+
} ? Search : {};
|
|
503
|
+
declare const createRouteReference: <Page, InferredParams>(definition: typeof RouteDefinition.Encoded) => RouteReference<ParamsOf<Page, InferredParams>, DecodedFields<SearchOf<Page>>, InputFields<SearchOf<Page>>>;
|
|
504
|
+
declare const getRouteDefinition: (reference: RouteReference) => RouteDefinition;
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region src/client/routes.d.ts
|
|
507
|
+
type Empty = Readonly<Record<string, never>>;
|
|
508
|
+
type Group<Name extends string, Fields> = keyof Fields extends never ? { readonly [Key in Name]?: Empty; } : {} extends Fields ? { readonly [Key in Name]?: Fields; } : { readonly [Key in Name]: Fields; };
|
|
509
|
+
/** Decoded values delivered to a page component. */
|
|
510
|
+
type RouteProps<Reference> = {
|
|
511
|
+
readonly params: ReferenceTypes<Reference>["params"];
|
|
512
|
+
readonly searchParams: ReferenceTypes<Reference>["searchParams"];
|
|
513
|
+
};
|
|
514
|
+
/** URL inputs. Search defaults can be omitted when navigating. */
|
|
515
|
+
type RouteInputs<Reference> = Group<"params", ReferenceTypes<Reference>["params"]> & Group<"searchParams", ReferenceTypes<Reference>["searchInputs"]> & {
|
|
516
|
+
readonly hash?: string;
|
|
517
|
+
};
|
|
518
|
+
type RouteMatch<Reference> = RouteProps<Reference> & {
|
|
519
|
+
readonly hash: string;
|
|
520
|
+
};
|
|
521
|
+
interface RouteLocation {
|
|
522
|
+
readonly pathname: string;
|
|
523
|
+
readonly search: string;
|
|
524
|
+
readonly hash: string;
|
|
525
|
+
readonly key: string;
|
|
526
|
+
}
|
|
527
|
+
type NavigationResult = {
|
|
528
|
+
readonly status: "committed";
|
|
529
|
+
} | {
|
|
530
|
+
readonly status: "cancelled";
|
|
531
|
+
} | {
|
|
532
|
+
readonly status: "failed";
|
|
533
|
+
readonly error: unknown;
|
|
534
|
+
};
|
|
535
|
+
//#endregion
|
|
536
|
+
//#region src/client/bootstrap.d.ts
|
|
537
|
+
/** The platform owns mounting. Generated registrations contain no Preact render/bootstrap code. */
|
|
538
|
+
declare const mountClient: (registration: ClientRegistration, selection: ExecutionSelection) => {
|
|
539
|
+
ready: Promise<NavigationResult>;
|
|
540
|
+
upgrade: () => Promise<void>;
|
|
541
|
+
dispose: () => void;
|
|
542
|
+
};
|
|
543
|
+
//#endregion
|
|
544
|
+
export { ImageSource as A, BlockerState as C, RegisteredClientModule as D, NavigationState as E, Image as O, bindSchema as S, NavigationOptions as T, RequiredUrlValue as _, RouteMatch as a, UrlValue as b, RouteReference as c, DecodedFields as d, InputFields as f, PathFields as g, PageDefinition as h, RouteLocation as i, createImageSource as j, ImageProps as k, createRouteReference as l, LayoutDefinition as m, NavigationResult as n, RouteProps as o, InvalidRouteProps as p, RouteInputs as r, ReferenceTypes as s, mountClient as t, getRouteDefinition as u, RouteErrorProps as v, ClientRegistration as w, UrlValues as x, UrlFields as y };
|
|
545
|
+
//# sourceMappingURL=bootstrap-BTFScKAc.d.ts.map
|
package/dist/runtime/client.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
1
|
+
import { C as SessionOutcome, S as ProfileField, T as UserId, b as PaginationPage, w as User, y as PaginationOptions } from "./types-DeCCyqLU-BIm7rU-0.js";
|
|
2
|
+
import { A as ImageSource, C as BlockerState, E as NavigationState, O as Image, T as NavigationOptions, a as RouteMatch, c as RouteReference, i as RouteLocation, k as ImageProps, n as NavigationResult, o as RouteProps, r as RouteInputs, s as ReferenceTypes } from "./bootstrap-BTFScKAc.js";
|
|
3
|
+
import { a as InternalServerError, g as FileValue, h as FileMimeType, i as ErrorValue, l as SettledResult, m as FileMetadata, o as Match, p as FileFormat, s as QueryResult$1 } from "./id-7an3nxTu-DZJSM5xh.js";
|
|
4
|
+
import "./result-BkziOG1L.js";
|
|
5
|
+
import "./sync-D-GK2sv9.js";
|
|
6
|
+
import "./id-CBOt2kDo.js";
|
|
7
|
+
import { n as FunctionReference } from "./api-B4fwp5a2.js";
|
|
8
|
+
import "./pagination-CBOt2kDo.js";
|
|
9
|
+
import { Cause, Context as Context$1, Effect, Layer, Schema } from "effect";
|
|
9
10
|
import { Dispatch, Reducer, StateUpdater, useCallback, useContext, useDebugValue, useEffect, useErrorBoundary, useId as useElementId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "preact/hooks";
|
|
10
|
-
import { AnyComponent, Attributes, ClassAttributes, Component, ComponentChild, ComponentChildren, ComponentClass, ComponentConstructor, ComponentFactory, ComponentProps, ComponentType,
|
|
11
|
+
import { AnyComponent, Attributes, ClassAttributes, Component, ComponentChild, ComponentChildren, ComponentClass, ComponentConstructor, ComponentFactory, ComponentProps, ComponentType, Consumer, Context, ContextType, ErrorInfo, Fragment, FunctionComponent, FunctionalComponent, JSX, JSX as JSX$1, Key, PreactConsumer, PreactContext, PreactDOMAttributes, PreactProvider, Provider, Ref, RefCallback, RefObject, RenderableProps, TargetedAnimationEvent, TargetedClipboardEvent, TargetedCommandEvent, TargetedCompositionEvent, TargetedDragEvent, TargetedEvent, TargetedFocusEvent, TargetedInputEvent, TargetedKeyboardEvent, TargetedMouseEvent, TargetedPictureInPictureEvent, TargetedPointerEvent, TargetedSnapEvent, TargetedSubmitEvent, TargetedToggleEvent, TargetedTouchEvent, TargetedTransitionEvent, TargetedUIEvent, TargetedWheelEvent, VNode, cloneElement, createContext, createElement, createRef, h, isValidElement, toChildArray } from "preact";
|
|
11
12
|
//#region src/client/files.d.ts
|
|
12
13
|
declare const Files: {
|
|
13
14
|
readonly url: (file: FileValue) => string;
|
|
@@ -73,12 +74,46 @@ type IdResult = IdState & {
|
|
|
73
74
|
};
|
|
74
75
|
declare function useId(): IdResult;
|
|
75
76
|
//#endregion
|
|
76
|
-
//#region src/client/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
//#region src/client/router.d.ts
|
|
78
|
+
type OptionsArgs<Options> = {} extends Options ? [options?: Options] : [options: Options];
|
|
79
|
+
type NavigateOptions<Reference extends RouteReference> = RouteInputs<Reference> & NavigationOptions;
|
|
80
|
+
interface Navigate {
|
|
81
|
+
<Reference extends RouteReference>(reference: Reference, ...args: OptionsArgs<NavigateOptions<NoInfer<Reference>>>): Promise<NavigationResult>;
|
|
82
|
+
back(): void;
|
|
83
|
+
forward(): void;
|
|
80
84
|
}
|
|
81
|
-
declare
|
|
85
|
+
declare function url<Reference extends RouteReference>(reference: Reference, ...args: OptionsArgs<RouteInputs<NoInfer<Reference>>>): string;
|
|
86
|
+
declare const useNavigate: () => Navigate;
|
|
87
|
+
declare const useLocation: () => RouteLocation;
|
|
88
|
+
declare const useNavigation: () => NavigationState;
|
|
89
|
+
declare const useBlocker: ({ when }: {
|
|
90
|
+
readonly when: boolean;
|
|
91
|
+
}) => BlockerState;
|
|
92
|
+
declare function useMatch<Reference extends RouteReference>(reference: Reference, options?: {
|
|
93
|
+
readonly end?: boolean;
|
|
94
|
+
}): RouteMatch<Reference> | undefined;
|
|
95
|
+
type RouteState<Reference extends RouteReference> = RouteMatch<Reference> & {
|
|
96
|
+
readonly setSearchParams: (next: ReferenceTypes<Reference>["searchInputs"] | ((current: ReferenceTypes<Reference>["searchParams"]) => ReferenceTypes<Reference>["searchInputs"]), options?: NavigationOptions) => Promise<NavigationResult>;
|
|
97
|
+
};
|
|
98
|
+
declare function useRoute<Reference extends RouteReference>(reference: Reference): RouteState<Reference>;
|
|
99
|
+
type AnchorProps = Omit<JSX$1.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "class" | "ref">;
|
|
100
|
+
type LinkProps<Reference extends RouteReference> = AnchorProps & NavigateOptions<Reference> & {
|
|
101
|
+
readonly to: Reference;
|
|
102
|
+
readonly class?: string;
|
|
103
|
+
readonly preload?: "intent" | "none";
|
|
104
|
+
};
|
|
105
|
+
type NavLinkProps<Reference extends RouteReference> = Omit<LinkProps<Reference>, "class"> & {
|
|
106
|
+
readonly end?: boolean;
|
|
107
|
+
readonly class?: string | ((state: {
|
|
108
|
+
readonly isActive: boolean;
|
|
109
|
+
}) => string);
|
|
110
|
+
};
|
|
111
|
+
declare function Link<Reference extends RouteReference>(props: LinkProps<Reference>): JSX$1.Element;
|
|
112
|
+
declare function NavLink<Reference extends RouteReference>(props: NavLinkProps<Reference>): JSX$1.Element;
|
|
113
|
+
type RedirectProps<Reference extends RouteReference> = NavigateOptions<Reference> & {
|
|
114
|
+
readonly to: Reference;
|
|
115
|
+
};
|
|
116
|
+
declare function Redirect<Reference extends RouteReference>(props: RedirectProps<Reference>): null;
|
|
82
117
|
//#endregion
|
|
83
118
|
//#region src/client/index.d.ts
|
|
84
119
|
declare const Result: {
|
|
@@ -87,5 +122,5 @@ declare const Result: {
|
|
|
87
122
|
type Result<Value, Error extends ErrorValue> = SettledResult<Value, Error>;
|
|
88
123
|
type QueryResult<Value, Error extends ErrorValue> = QueryResult$1<Value, Error>;
|
|
89
124
|
//#endregion
|
|
90
|
-
export { type AnyComponent, type
|
|
125
|
+
export { type AnyComponent, type Attributes, type BlockerState, type ClassAttributes, Component, type ComponentChild, type ComponentChildren, type ComponentClass, type ComponentConstructor, type ComponentFactory, type ComponentProps, type ComponentType, type Consumer, type Context, type ContextType, type Dispatch, type ErrorInfo, type FileFormat, type FileMetadata, type FileMimeType, type FileValue, Files, Fragment, type FunctionComponent, type FunctionalComponent, type IdOptions, type IdResult, Image, type ImageProps, type ImageSource, type InternalServerError, type JSX, type Key, Link, NavLink, type NavigationResult, type PaginatedQueryOptions, type PaginatedQueryValue, type PaginationStatus, type PreactConsumer, type PreactContext, type PreactDOMAttributes, type PreactProvider, type ProfileField, type Provider, Query, QueryResult, type QuerySkip, Redirect, type Reducer, type Ref, type RefCallback, type RefObject, type RenderableProps, Result, type RouteInputs, type RouteLocation, type RouteMatch, type RouteProps, type StateUpdater, type TargetedAnimationEvent, type TargetedClipboardEvent, type TargetedCommandEvent, type TargetedCompositionEvent, type TargetedDragEvent, type TargetedEvent, type TargetedFocusEvent, type TargetedInputEvent, type TargetedKeyboardEvent, type TargetedMouseEvent, type TargetedPictureInPictureEvent, type TargetedPointerEvent, type TargetedSnapEvent, type TargetedSubmitEvent, type TargetedToggleEvent, type TargetedTouchEvent, type TargetedTransitionEvent, type TargetedUIEvent, type TargetedWheelEvent, type User, type UserId, type VNode, cloneElement, createContext, createElement, createRef, h, isValidElement, toChildArray, url, useBlocker, useCallback, useContext, useDebugValue, useEffect, useElementId, useErrorBoundary, useId, useImperativeHandle, useLayoutEffect, useLocation, useMatch, useMemo, useMutation, useNavigate, useNavigation, usePaginatedQuery, useQuery, useReducer, useRef, useRoute, useState };
|
|
91
126
|
//# sourceMappingURL=client.d.ts.map
|