@sveltejs/kit 3.0.0-next.2 → 3.0.0-next.21
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/package.json +62 -36
- package/src/cli.js +15 -12
- package/src/constants.js +6 -1
- package/src/core/adapt/builder.js +66 -72
- package/src/core/adapt/index.js +17 -6
- package/src/core/config/index.js +134 -80
- package/src/core/config/options.js +295 -273
- package/src/core/config/types.d.ts +1 -1
- package/src/core/env.js +146 -16
- package/src/core/generate_manifest/index.js +18 -15
- package/src/core/postbuild/analyse.js +8 -20
- package/src/core/postbuild/crawl.js +22 -6
- package/src/core/postbuild/entities.js +8 -2
- package/src/core/postbuild/fallback.js +4 -2
- package/src/core/postbuild/prerender.js +222 -70
- package/src/core/postbuild/queue.js +2 -1
- package/src/core/sync/create_manifest_data/conflict.js +1 -1
- package/src/core/sync/create_manifest_data/index.js +82 -62
- package/src/core/sync/sync.js +40 -31
- package/src/core/sync/ts.js +1 -1
- package/src/core/sync/utils.js +22 -2
- package/src/core/sync/{write_non_ambient.js → write_app_types.js} +107 -58
- package/src/core/sync/write_client_manifest.js +14 -29
- package/src/core/sync/write_env.js +7 -5
- package/src/core/sync/write_server.js +37 -45
- package/src/core/sync/write_tsconfig/index.js +274 -0
- package/src/core/sync/write_tsconfig/test-app/package.json +7 -0
- package/src/core/sync/write_tsconfig/utils.js +77 -0
- package/src/core/sync/write_tsconfig/validate.js +128 -0
- package/src/core/sync/write_types/index.js +127 -123
- package/src/core/utils.js +30 -5
- package/src/exports/env/index.js +77 -0
- package/src/exports/env/public.d.ts +55 -0
- package/src/exports/hooks/index.js +3 -9
- package/src/exports/hooks/public.d.ts +195 -0
- package/src/exports/hooks/sequence.js +9 -6
- package/src/exports/index.js +52 -29
- package/src/exports/internal/client.js +5 -0
- package/src/exports/internal/env.js +8 -5
- package/src/exports/internal/index.js +1 -90
- package/src/exports/internal/{event.js → server/event.js} +2 -3
- package/src/exports/internal/server/index.js +37 -0
- package/src/exports/internal/server/telemetry.js +95 -0
- package/src/exports/internal/shared.js +90 -0
- package/src/exports/node/index.js +64 -22
- package/src/exports/params/index.js +70 -0
- package/src/exports/params/public.d.ts +63 -0
- package/src/exports/public.d.ts +50 -1733
- package/src/exports/remote/index.js +11 -0
- package/src/exports/remote/public.d.ts +519 -0
- package/src/exports/url.js +86 -0
- package/src/exports/vite/build/build_server.js +54 -65
- package/src/exports/vite/build/remote.js +24 -19
- package/src/exports/vite/build/utils.js +0 -8
- package/src/exports/vite/dev/index.js +218 -146
- package/src/exports/vite/index.js +1590 -858
- package/src/exports/vite/module_ids.js +2 -2
- package/src/exports/vite/preview/index.js +40 -32
- package/src/exports/vite/public.d.ts +588 -0
- package/src/exports/vite/utils.js +84 -46
- package/src/pathname.js +55 -0
- package/src/runner.js +15 -0
- package/src/runtime/app/env/internal.js +4 -4
- package/src/runtime/app/env/types.d.ts +1 -1
- package/src/runtime/app/environment/index.js +3 -3
- package/src/runtime/app/{forms.js → forms/index.js} +73 -42
- package/src/runtime/app/forms/public.d.ts +2 -0
- package/src/runtime/app/forms/types.d.ts +56 -0
- package/src/runtime/app/internal/transport.js +53 -0
- package/src/runtime/app/manifest/index.js +1 -0
- package/src/runtime/app/{navigation.js → navigation/index.js} +2 -1
- package/src/runtime/app/navigation/public.d.ts +237 -0
- package/src/runtime/app/paths/client.js +37 -37
- package/src/runtime/app/paths/index.js +1 -1
- package/src/runtime/app/paths/internal/client.js +34 -2
- package/src/runtime/app/paths/internal/server.js +6 -23
- package/src/runtime/app/paths/internal.d.ts +3 -0
- package/src/runtime/app/paths/public.d.ts +1 -29
- package/src/runtime/app/paths/server.js +36 -17
- package/src/runtime/app/paths/types.d.ts +11 -19
- package/src/runtime/app/server/index.js +2 -2
- package/src/runtime/app/server/public.d.ts +201 -0
- package/src/runtime/app/server/remote/command.js +13 -11
- package/src/runtime/app/server/remote/form.js +61 -39
- package/src/runtime/app/server/remote/prerender.js +45 -45
- package/src/runtime/app/server/remote/query.js +106 -108
- package/src/runtime/app/server/remote/requested.js +27 -19
- package/src/runtime/app/server/remote/shared.js +76 -76
- package/src/runtime/app/service-worker/index.js +24 -0
- package/src/runtime/app/state/client.js +4 -2
- package/src/runtime/app/state/index.js +7 -5
- package/src/runtime/app/state/public.d.ts +72 -0
- package/src/runtime/app/state/server.js +3 -0
- package/src/runtime/app/stores.js +15 -78
- package/src/runtime/client/bundle.js +1 -1
- package/src/runtime/client/client-entry.js +3 -0
- package/src/runtime/client/client.js +1336 -648
- package/src/runtime/client/constants.js +3 -6
- package/src/runtime/client/entry.js +24 -3
- package/src/runtime/client/fetcher.js +25 -25
- package/src/runtime/client/ndjson.js +1 -1
- package/src/runtime/client/parse.js +1 -1
- package/src/runtime/client/payload.js +17 -0
- package/src/runtime/client/remote-functions/cache.svelte.js +3 -1
- package/src/runtime/client/remote-functions/command.svelte.js +37 -61
- package/src/runtime/client/remote-functions/form.svelte.js +267 -178
- package/src/runtime/client/remote-functions/prerender.svelte.js +32 -11
- package/src/runtime/client/remote-functions/query/index.js +10 -17
- package/src/runtime/client/remote-functions/query/instance.svelte.js +64 -18
- package/src/runtime/client/remote-functions/query/proxy.js +5 -5
- package/src/runtime/client/remote-functions/query-batch.svelte.js +61 -70
- package/src/runtime/client/remote-functions/query-live/index.js +1 -1
- package/src/runtime/client/remote-functions/query-live/instance.svelte.js +63 -21
- package/src/runtime/client/remote-functions/query-live/iterator.js +15 -12
- package/src/runtime/client/remote-functions/query-live/proxy.js +2 -12
- package/src/runtime/client/remote-functions/shared.svelte.js +90 -65
- package/src/runtime/client/snapshots.js +147 -0
- package/src/runtime/client/state.svelte.js +94 -55
- package/src/runtime/client/stream.js +3 -2
- package/src/runtime/client/types.d.ts +13 -9
- package/src/runtime/client/utils.js +22 -110
- package/src/runtime/components/root.svelte +56 -0
- package/src/runtime/env/dynamic/private.js +7 -0
- package/src/runtime/env/dynamic/public.js +7 -0
- package/src/runtime/env/static/private.js +6 -0
- package/src/runtime/env/static/public.js +6 -0
- package/src/runtime/form-utils.js +172 -61
- package/src/runtime/pathname.js +20 -32
- package/src/runtime/props.svelte.js +72 -0
- package/src/runtime/server/constants.js +0 -3
- package/src/runtime/server/cookie.js +72 -55
- package/src/runtime/server/csrf.js +65 -0
- package/src/runtime/server/data/index.js +49 -53
- package/src/runtime/server/dev.js +22 -0
- package/src/runtime/server/endpoint.js +6 -7
- package/src/runtime/server/env_module.js +0 -5
- package/src/runtime/server/errors.js +160 -0
- package/src/runtime/server/fetch.js +32 -39
- package/src/runtime/server/index.js +90 -64
- package/src/runtime/server/internal.js +71 -0
- package/src/runtime/server/page/actions.js +85 -64
- package/src/runtime/server/page/crypto.js +2 -2
- package/src/runtime/server/page/csp.js +88 -104
- package/src/runtime/server/page/data_serializer.js +24 -25
- package/src/runtime/server/page/index.js +36 -53
- package/src/runtime/server/page/load_data.js +50 -57
- package/src/runtime/server/page/render.js +173 -239
- package/src/runtime/server/page/respond_with_error.js +17 -31
- package/src/runtime/server/page/serialize_data.js +2 -13
- package/src/runtime/server/page/server_routing.js +85 -26
- package/src/runtime/server/remote-functions.js +640 -0
- package/src/runtime/server/respond.js +190 -131
- package/src/runtime/server/sourcemaps.js +183 -0
- package/src/runtime/server/state.js +53 -0
- package/src/runtime/server/utils.js +13 -155
- package/src/runtime/shared.js +20 -40
- package/src/runtime/utils.js +3 -0
- package/src/types/ambient-private.d.ts +11 -1
- package/src/types/ambient.d.ts +87 -36
- package/src/types/global-private.d.ts +25 -25
- package/src/types/internal.d.ts +163 -157
- package/src/types/private.d.ts +41 -1
- package/src/utils/error.js +28 -4
- package/src/utils/escape.js +9 -25
- package/src/utils/features.js +1 -1
- package/src/utils/filesystem.js +1 -23
- package/src/utils/fork.js +7 -2
- package/src/utils/hash.js +21 -0
- package/src/utils/http.js +8 -7
- package/src/utils/import.js +9 -2
- package/src/utils/imports.js +83 -0
- package/src/utils/mime.js +9 -0
- package/src/utils/page_nodes.js +6 -7
- package/src/utils/params.js +67 -0
- package/src/utils/regex.js +9 -0
- package/src/utils/routing.js +145 -73
- package/src/utils/shared-iterator.js +5 -0
- package/src/utils/streaming.js +14 -4
- package/src/utils/url.js +33 -2
- package/src/version.js +1 -1
- package/types/index.d.ts +2616 -2433
- package/types/index.d.ts.map +120 -106
- package/src/core/sync/write_ambient.js +0 -18
- package/src/core/sync/write_root.js +0 -148
- package/src/core/sync/write_tsconfig.js +0 -250
- package/src/exports/internal/server.js +0 -22
- package/src/exports/node/polyfills.js +0 -30
- package/src/runtime/server/app.js +0 -9
- package/src/runtime/server/remote.js +0 -457
- package/src/runtime/shared-server.js +0 -7
- package/src/runtime/telemetry/otel.js +0 -21
- package/src/runtime/telemetry/record_span.js +0 -65
- package/src/types/synthetic/$lib.md +0 -5
- /package/src/exports/internal/{remote-functions.js → server/remote-functions.js} +0 -0
- /package/src/{runtime/telemetry/noop.js → telemetry.js} +0 -0
package/types/index.d.ts.map
CHANGED
|
@@ -11,47 +11,11 @@
|
|
|
11
11
|
"ActionFailure",
|
|
12
12
|
"UnpackValidationError",
|
|
13
13
|
"Builder",
|
|
14
|
-
"Config",
|
|
15
|
-
"Cookies",
|
|
16
14
|
"Emulator",
|
|
17
|
-
"KitConfig",
|
|
18
|
-
"Handle",
|
|
19
|
-
"HandleServerError",
|
|
20
|
-
"HandleValidationError",
|
|
21
|
-
"HandleClientError",
|
|
22
|
-
"HandleFetch",
|
|
23
|
-
"ServerInit",
|
|
24
|
-
"ClientInit",
|
|
25
|
-
"Reroute",
|
|
26
|
-
"Transport",
|
|
27
|
-
"Transporter",
|
|
28
15
|
"Load",
|
|
29
16
|
"LoadEvent",
|
|
30
17
|
"NavigationEvent",
|
|
31
|
-
"NavigationTarget",
|
|
32
|
-
"NavigationType",
|
|
33
|
-
"NavigationBase",
|
|
34
|
-
"NavigationEnter",
|
|
35
|
-
"NavigationExternal",
|
|
36
|
-
"NavigationGoto",
|
|
37
|
-
"NavigationLeave",
|
|
38
|
-
"NavigationFormSubmit",
|
|
39
|
-
"NavigationPopState",
|
|
40
|
-
"NavigationLink",
|
|
41
|
-
"Navigation",
|
|
42
|
-
"BeforeNavigate",
|
|
43
|
-
"OnNavigate",
|
|
44
|
-
"AfterNavigate",
|
|
45
|
-
"Page",
|
|
46
|
-
"ParamMatcher",
|
|
47
|
-
"RequestedEntry",
|
|
48
|
-
"LiveRequestedEntry",
|
|
49
|
-
"QueryRequestedResult",
|
|
50
|
-
"LiveQueryRequestedResult",
|
|
51
|
-
"RequestedResult",
|
|
52
|
-
"RequestEvent",
|
|
53
18
|
"RequestHandler",
|
|
54
|
-
"ResolveOptions",
|
|
55
19
|
"RouteDefinition",
|
|
56
20
|
"Server",
|
|
57
21
|
"ServerInitOptions",
|
|
@@ -60,11 +24,59 @@
|
|
|
60
24
|
"ServerLoadEvent",
|
|
61
25
|
"Action",
|
|
62
26
|
"Actions",
|
|
63
|
-
"ActionResult",
|
|
64
27
|
"HttpError",
|
|
65
28
|
"Redirect",
|
|
66
|
-
"SubmitFunction",
|
|
67
29
|
"Snapshot",
|
|
30
|
+
"AdapterEntry",
|
|
31
|
+
"HttpMethod",
|
|
32
|
+
"Logger",
|
|
33
|
+
"MaybePromise",
|
|
34
|
+
"Prerendered",
|
|
35
|
+
"PrerenderOption",
|
|
36
|
+
"RequestOptions",
|
|
37
|
+
"RouteSegment",
|
|
38
|
+
"RecursiveRequired",
|
|
39
|
+
"ValidatedConfig",
|
|
40
|
+
"isHttpError",
|
|
41
|
+
"redirect",
|
|
42
|
+
"isRedirect",
|
|
43
|
+
"json",
|
|
44
|
+
"text",
|
|
45
|
+
"isActionFailure",
|
|
46
|
+
"invalid",
|
|
47
|
+
"normalizeUrl",
|
|
48
|
+
"VERSION",
|
|
49
|
+
"EnvVarConfig",
|
|
50
|
+
"DefinedEnvVars",
|
|
51
|
+
"EnvVarEntry",
|
|
52
|
+
"defineEnvVars",
|
|
53
|
+
"Handle",
|
|
54
|
+
"CaughtErrorMap",
|
|
55
|
+
"ValidationCaughtError",
|
|
56
|
+
"CaughtError",
|
|
57
|
+
"ClientCaughtError",
|
|
58
|
+
"HandleServerError",
|
|
59
|
+
"HandleClientError",
|
|
60
|
+
"HandleFetch",
|
|
61
|
+
"ServerInit",
|
|
62
|
+
"ClientInit",
|
|
63
|
+
"Reroute",
|
|
64
|
+
"Transport",
|
|
65
|
+
"Transporter",
|
|
66
|
+
"ResolveOptions",
|
|
67
|
+
"AppErrorWithOptionalDefaults",
|
|
68
|
+
"VoidIfNoRequiredAppErrorProperties",
|
|
69
|
+
"sequence",
|
|
70
|
+
"getRequest",
|
|
71
|
+
"setResponse",
|
|
72
|
+
"createReadableStream",
|
|
73
|
+
"ParamMatcher",
|
|
74
|
+
"ParamValue",
|
|
75
|
+
"ParamDefinition",
|
|
76
|
+
"DefinedParams",
|
|
77
|
+
"ParamEntry",
|
|
78
|
+
"MatcherParam",
|
|
79
|
+
"defineParams",
|
|
68
80
|
"WillRecurseIndefinitely",
|
|
69
81
|
"InputTypeMap",
|
|
70
82
|
"RemoteFormFieldType",
|
|
@@ -86,6 +98,8 @@
|
|
|
86
98
|
"ExtractId",
|
|
87
99
|
"InvalidField",
|
|
88
100
|
"ValidationError",
|
|
101
|
+
"RemoteFormEnhanceInstance",
|
|
102
|
+
"RemoteFormEnhanceCallback",
|
|
89
103
|
"RemoteForm",
|
|
90
104
|
"RemoteCommand",
|
|
91
105
|
"RemoteQueryUpdate",
|
|
@@ -96,74 +110,55 @@
|
|
|
96
110
|
"RemotePrerenderFunction",
|
|
97
111
|
"RemoteQueryFunction",
|
|
98
112
|
"RemoteLiveQueryFunction",
|
|
99
|
-
"
|
|
100
|
-
"
|
|
113
|
+
"RequestedEntry",
|
|
114
|
+
"LiveRequestedEntry",
|
|
115
|
+
"QueryRequestedResult",
|
|
116
|
+
"LiveQueryRequestedResult",
|
|
117
|
+
"RequestedResult",
|
|
118
|
+
"isValidationError",
|
|
119
|
+
"DeepPartial",
|
|
120
|
+
"IsAny",
|
|
121
|
+
"VitePluginSvelteOptions",
|
|
122
|
+
"VitePluginSvelteOptionsExperimental",
|
|
123
|
+
"Config",
|
|
124
|
+
"sveltekit",
|
|
101
125
|
"Csp",
|
|
102
126
|
"CspDirectives",
|
|
103
|
-
"HttpMethod",
|
|
104
|
-
"Logger",
|
|
105
|
-
"MaybePromise",
|
|
106
|
-
"Prerendered",
|
|
107
127
|
"PrerenderHttpErrorHandler",
|
|
108
128
|
"PrerenderMissingIdHandler",
|
|
109
129
|
"PrerenderEntryGeneratorMismatchHandler",
|
|
110
130
|
"PrerenderUnseenRoutesHandler",
|
|
131
|
+
"PrerenderInvalidUrlHandler",
|
|
111
132
|
"PrerenderHttpErrorHandlerValue",
|
|
112
133
|
"PrerenderMissingIdHandlerValue",
|
|
113
134
|
"PrerenderUnseenRoutesHandlerValue",
|
|
114
135
|
"PrerenderEntryGeneratorMismatchHandlerValue",
|
|
115
|
-
"
|
|
116
|
-
"RequestOptions",
|
|
117
|
-
"RouteSegment",
|
|
118
|
-
"TrailingSlash",
|
|
119
|
-
"DeepPartial",
|
|
120
|
-
"IsAny",
|
|
121
|
-
"Asset",
|
|
122
|
-
"BuildData",
|
|
123
|
-
"ManifestData",
|
|
124
|
-
"PageNode",
|
|
125
|
-
"RecursiveRequired",
|
|
126
|
-
"RouteParam",
|
|
127
|
-
"RouteData",
|
|
128
|
-
"SSRComponent",
|
|
129
|
-
"SSRComponentLoader",
|
|
130
|
-
"UniversalNode",
|
|
131
|
-
"ServerNode",
|
|
132
|
-
"SSRNode",
|
|
133
|
-
"SSRNodeLoader",
|
|
134
|
-
"PageNodeIndexes",
|
|
135
|
-
"PrerenderEntryGenerator",
|
|
136
|
-
"SSREndpoint",
|
|
137
|
-
"SSRRoute",
|
|
138
|
-
"SSRClientRoute",
|
|
139
|
-
"ValidatedConfig",
|
|
140
|
-
"ValidatedKitConfig",
|
|
141
|
-
"isHttpError",
|
|
142
|
-
"redirect",
|
|
143
|
-
"isRedirect",
|
|
144
|
-
"json",
|
|
145
|
-
"text",
|
|
146
|
-
"isActionFailure",
|
|
147
|
-
"invalid",
|
|
148
|
-
"isValidationError",
|
|
149
|
-
"normalizeUrl",
|
|
150
|
-
"ValidPageOption",
|
|
151
|
-
"PageOptions",
|
|
152
|
-
"VERSION",
|
|
153
|
-
"valid_page_options_array",
|
|
154
|
-
"defineEnvVars",
|
|
155
|
-
"sequence",
|
|
156
|
-
"getRequest",
|
|
157
|
-
"setResponse",
|
|
158
|
-
"createReadableStream",
|
|
159
|
-
"sveltekit",
|
|
136
|
+
"PrerenderInvalidUrlHandlerValue",
|
|
160
137
|
"browser",
|
|
161
138
|
"dev",
|
|
162
139
|
"building",
|
|
163
140
|
"version",
|
|
164
141
|
"deserialize",
|
|
165
142
|
"enhance",
|
|
143
|
+
"ActionResult",
|
|
144
|
+
"SubmitFunction",
|
|
166
145
|
"applyAction",
|
|
146
|
+
"NavigationTarget",
|
|
147
|
+
"GotoOptions",
|
|
148
|
+
"NavigationType",
|
|
149
|
+
"NavigationBase",
|
|
150
|
+
"NavigationEnter",
|
|
151
|
+
"NavigationExternal",
|
|
152
|
+
"NavigationGoto",
|
|
153
|
+
"NavigationLeave",
|
|
154
|
+
"NavigationFormSubmit",
|
|
155
|
+
"NavigationPopState",
|
|
156
|
+
"NavigationLink",
|
|
157
|
+
"Navigation",
|
|
158
|
+
"BeforeNavigate",
|
|
159
|
+
"OnNavigate",
|
|
160
|
+
"AfterNavigate",
|
|
161
|
+
"snapshot",
|
|
167
162
|
"afterNavigate",
|
|
168
163
|
"beforeNavigate",
|
|
169
164
|
"onNavigate",
|
|
@@ -176,45 +171,56 @@
|
|
|
176
171
|
"preloadCode",
|
|
177
172
|
"pushState",
|
|
178
173
|
"replaceState",
|
|
179
|
-
"base",
|
|
180
|
-
"assets",
|
|
181
|
-
"resolveRoute",
|
|
182
|
-
"StripSearchOrHash",
|
|
183
|
-
"ResolveArgs",
|
|
184
174
|
"asset",
|
|
185
175
|
"resolve",
|
|
186
176
|
"match",
|
|
177
|
+
"StripSearchOrHash",
|
|
178
|
+
"ResolveArgs",
|
|
179
|
+
"Cookies",
|
|
180
|
+
"RequestEvent",
|
|
187
181
|
"read",
|
|
188
182
|
"getRequestEvent",
|
|
189
183
|
"RemoteLiveQueryUserFunctionReturnType",
|
|
190
184
|
"RemotePrerenderInputsGenerator",
|
|
185
|
+
"HasNonOptionalBoolean",
|
|
186
|
+
"self",
|
|
187
|
+
"ReadonlyURLSearchParams",
|
|
188
|
+
"ReadonlyURL",
|
|
189
|
+
"Page",
|
|
191
190
|
"page",
|
|
192
191
|
"navigating",
|
|
193
|
-
"updated"
|
|
194
|
-
"getStores"
|
|
192
|
+
"updated"
|
|
195
193
|
],
|
|
196
194
|
"sources": [
|
|
197
195
|
"../src/exports/public.d.ts",
|
|
198
196
|
"../src/types/private.d.ts",
|
|
199
197
|
"../src/types/internal.d.ts",
|
|
200
198
|
"../src/exports/index.js",
|
|
201
|
-
"../src/exports/vite/static_analysis/types.d.ts",
|
|
202
199
|
"../src/version.js",
|
|
203
|
-
"../src/exports/
|
|
204
|
-
"../src/exports/
|
|
200
|
+
"../src/exports/env/public.d.ts",
|
|
201
|
+
"../src/exports/env/index.js",
|
|
202
|
+
"../src/exports/hooks/public.d.ts",
|
|
205
203
|
"../src/exports/hooks/sequence.js",
|
|
206
204
|
"../src/exports/node/index.js",
|
|
205
|
+
"../src/exports/params/public.d.ts",
|
|
206
|
+
"../src/exports/remote/public.d.ts",
|
|
207
|
+
"../src/exports/remote/index.js",
|
|
208
|
+
"../src/exports/vite/public.d.ts",
|
|
207
209
|
"../src/exports/vite/index.js",
|
|
208
210
|
"../src/runtime/app/env/types.d.ts",
|
|
209
|
-
"../src/runtime/app/forms.js",
|
|
211
|
+
"../src/runtime/app/forms/index.js",
|
|
212
|
+
"../src/runtime/app/forms/types.d.ts",
|
|
210
213
|
"../src/runtime/client/client.js",
|
|
211
|
-
"../src/runtime/app/
|
|
212
|
-
"../src/runtime/
|
|
214
|
+
"../src/runtime/app/navigation/public.d.ts",
|
|
215
|
+
"../src/runtime/client/snapshots.js",
|
|
213
216
|
"../src/runtime/app/paths/client.js",
|
|
217
|
+
"../src/runtime/app/paths/types.d.ts",
|
|
218
|
+
"../src/runtime/app/server/public.d.ts",
|
|
214
219
|
"../src/runtime/app/server/index.js",
|
|
215
|
-
"../src/exports/internal/event.js",
|
|
216
|
-
"../src/runtime/app/
|
|
217
|
-
"../src/runtime/app/
|
|
220
|
+
"../src/exports/internal/server/event.js",
|
|
221
|
+
"../src/runtime/app/service-worker/index.js",
|
|
222
|
+
"../src/runtime/app/state/public.d.ts",
|
|
223
|
+
"../src/runtime/app/state/index.js"
|
|
218
224
|
],
|
|
219
225
|
"sourcesContent": [
|
|
220
226
|
null,
|
|
@@ -237,8 +243,16 @@
|
|
|
237
243
|
null,
|
|
238
244
|
null,
|
|
239
245
|
null,
|
|
246
|
+
null,
|
|
247
|
+
null,
|
|
248
|
+
null,
|
|
249
|
+
null,
|
|
250
|
+
null,
|
|
251
|
+
null,
|
|
252
|
+
null,
|
|
253
|
+
null,
|
|
240
254
|
null
|
|
241
255
|
],
|
|
242
|
-
"mappings": "
|
|
256
|
+
"mappings": ";;;;;;;;;;MAuBKA,IAAIA;;;;;kBAKQC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA+CZC,cAAcA;;;;;;aAMdC,cAAcA;;;;;;;;MAQrBC,aAAaA;;;;;OAKJC,YAAYA;;kBAETC,aAAaA;;;;;;MAMzBC,qBAAqBA;;;;;;;;;;;kBAWTC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqJPC,QAAQA;;;;;;;;;;;;aAYbC,IAAIA;;;;;;;;;;;;kBAYCC,SAASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;kBA0EPC,YAAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBC/DbC,IAAIA;;;;;;;;iBCSJC,eAAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MvB6TnBC,qCAAqCA;;;;;;;;MAqKrCC,8BAA8BA;MD9U9BvJ,YAAYA;;MA2GZuF,KAAKA;;MAELiE,qBAAqBA;;;;;;;;;;;;;;;;;;;;;cyBhRpBC,IAAIA;;;;;;;;aCJLC,uBAAuBA;;aAEvBC,WAAWA;;;;;;;;;kBASNC,IAAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCgCRC,IAAIA;;;;;cAQJC,UAAUA;;;;;;;;;;;cAMVC,OAAOA",
|
|
243
257
|
"ignoreList": []
|
|
244
258
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import { GENERATED_COMMENT } from '../../constants.js';
|
|
3
|
-
import { write_if_changed } from './utils.js';
|
|
4
|
-
|
|
5
|
-
// TODO get rid of this, it's useless
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Writes ambient declarations including types reference to @sveltejs/kit,
|
|
9
|
-
* and the existing environment variables in process.env to
|
|
10
|
-
* $env/static/private and $env/static/public
|
|
11
|
-
* @param {import('types').ValidatedKitConfig} config
|
|
12
|
-
*/
|
|
13
|
-
export function write_ambient(config) {
|
|
14
|
-
/** @type {string} */
|
|
15
|
-
const content = `${GENERATED_COMMENT}\n/// <reference types="@sveltejs/kit" />`;
|
|
16
|
-
|
|
17
|
-
write_if_changed(path.join(config.outDir, 'ambient.d.ts'), content);
|
|
18
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { dedent, write_if_changed } from './utils.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @param {import('types').ManifestData} manifest_data
|
|
5
|
-
* @param {import('types').ValidatedConfig} config
|
|
6
|
-
* @param {string} output
|
|
7
|
-
*/
|
|
8
|
-
export function write_root(manifest_data, config, output) {
|
|
9
|
-
// TODO remove default layout altogether
|
|
10
|
-
|
|
11
|
-
const use_boundaries = config.kit.experimental.handleRenderingErrors;
|
|
12
|
-
|
|
13
|
-
const max_depth = Math.max(
|
|
14
|
-
...manifest_data.routes.map((route) =>
|
|
15
|
-
route.page ? route.page.layouts.filter(Boolean).length + 1 : 0
|
|
16
|
-
),
|
|
17
|
-
1
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
const levels = [];
|
|
21
|
-
for (let i = 0; i <= max_depth; i += 1) {
|
|
22
|
-
levels.push(i);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
let l = max_depth;
|
|
26
|
-
/** @type {string} */
|
|
27
|
-
let pyramid;
|
|
28
|
-
|
|
29
|
-
if (use_boundaries) {
|
|
30
|
-
// with the @const we force the data[depth] access to be derived, which is important to not fire updates needlessly
|
|
31
|
-
// TODO in Svelte 5 we should rethink the client.js side, we can likely make data a $state and only update indexes that changed there, simplifying this a lot
|
|
32
|
-
pyramid = dedent`
|
|
33
|
-
{#snippet pyramid(depth)}
|
|
34
|
-
{@const Pyramid = constructors[depth]}
|
|
35
|
-
{#snippet failed(error)}
|
|
36
|
-
{@const ErrorPage = errors[depth]}
|
|
37
|
-
<ErrorPage {error} />
|
|
38
|
-
{/snippet}
|
|
39
|
-
<svelte:boundary failed={errors[depth] ? failed : undefined}>
|
|
40
|
-
{#if constructors[depth + 1]}
|
|
41
|
-
{@const d = data[depth]}
|
|
42
|
-
<!-- svelte-ignore binding_property_non_reactive -->
|
|
43
|
-
<Pyramid bind:this={components[depth]} data={d} {form} params={page.params}>
|
|
44
|
-
{@render pyramid(depth + 1)}
|
|
45
|
-
</Pyramid>
|
|
46
|
-
{:else}
|
|
47
|
-
{@const d = data[depth]}
|
|
48
|
-
<!-- svelte-ignore binding_property_non_reactive -->
|
|
49
|
-
<Pyramid bind:this={components[depth]} data={d} {form} params={page.params} {error} />
|
|
50
|
-
{/if}
|
|
51
|
-
</svelte:boundary>
|
|
52
|
-
{/snippet}
|
|
53
|
-
|
|
54
|
-
{@render pyramid(0)}
|
|
55
|
-
`;
|
|
56
|
-
} else {
|
|
57
|
-
pyramid = dedent`
|
|
58
|
-
<!-- svelte-ignore binding_property_non_reactive -->
|
|
59
|
-
<Pyramid_${l} bind:this={components[${l}]} data={data_${l}} {form} params={page.params} />`;
|
|
60
|
-
|
|
61
|
-
while (l--) {
|
|
62
|
-
pyramid = dedent`
|
|
63
|
-
{#if constructors[${l + 1}]}
|
|
64
|
-
{@const Pyramid_${l} = constructors[${l}]}
|
|
65
|
-
<!-- svelte-ignore binding_property_non_reactive -->
|
|
66
|
-
<Pyramid_${l} bind:this={components[${l}]} data={data_${l}} {form} params={page.params}>
|
|
67
|
-
${pyramid}
|
|
68
|
-
</Pyramid_${l}>
|
|
69
|
-
{:else}
|
|
70
|
-
{@const Pyramid_${l} = constructors[${l}]}
|
|
71
|
-
<!-- svelte-ignore binding_property_non_reactive -->
|
|
72
|
-
<Pyramid_${l} bind:this={components[${l}]} data={data_${l}} {form} params={page.params} />
|
|
73
|
-
{/if}
|
|
74
|
-
`;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
write_if_changed(
|
|
79
|
-
`${output}/root.svelte`,
|
|
80
|
-
dedent`
|
|
81
|
-
<!-- This file is generated by @sveltejs/kit — do not edit it! -->
|
|
82
|
-
<svelte:options runes={true} />
|
|
83
|
-
<script>
|
|
84
|
-
import { setContext, onMount, tick } from 'svelte';
|
|
85
|
-
import { browser } from '$app/env';
|
|
86
|
-
|
|
87
|
-
// stores
|
|
88
|
-
let { stores, page, constructors, components = [], form, ${use_boundaries ? 'errors = [], error, ' : ''}${levels
|
|
89
|
-
.map((l) => `data_${l} = null`)
|
|
90
|
-
.join(', ')} } = $props();
|
|
91
|
-
${use_boundaries ? `let data = $derived({${levels.map((l) => `'${l}': data_${l}`).join(', ')}})` : ''}
|
|
92
|
-
|
|
93
|
-
if (browser) {
|
|
94
|
-
$effect.pre(() => stores.page.set(page));
|
|
95
|
-
} else {
|
|
96
|
-
// svelte-ignore state_referenced_locally
|
|
97
|
-
setContext('__svelte__', stores);
|
|
98
|
-
// svelte-ignore state_referenced_locally
|
|
99
|
-
stores.page.set(page);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
$effect(() => {
|
|
103
|
-
stores;page;constructors;components;form;${use_boundaries ? 'errors;error;' : ''}${levels.map((l) => `data_${l}`).join(';')};
|
|
104
|
-
stores.page.notify();
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
let mounted = $state(false);
|
|
108
|
-
let navigated = $state(false);
|
|
109
|
-
let title = $state(null);
|
|
110
|
-
|
|
111
|
-
onMount(() => {
|
|
112
|
-
const unsubscribe = stores.page.subscribe(() => {
|
|
113
|
-
if (mounted) {
|
|
114
|
-
navigated = true;
|
|
115
|
-
tick().then(() => {
|
|
116
|
-
title = document.title || 'untitled page';
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
mounted = true;
|
|
122
|
-
return unsubscribe;
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
const Pyramid_${max_depth} = $derived(constructors[${max_depth}]);
|
|
126
|
-
</script>
|
|
127
|
-
|
|
128
|
-
${pyramid}
|
|
129
|
-
|
|
130
|
-
{#if mounted}
|
|
131
|
-
<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px">
|
|
132
|
-
{#if navigated}
|
|
133
|
-
{title}
|
|
134
|
-
{/if}
|
|
135
|
-
</div>
|
|
136
|
-
{/if}
|
|
137
|
-
`
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
write_if_changed(
|
|
141
|
-
`${output}/root.js`,
|
|
142
|
-
dedent`
|
|
143
|
-
import { asClassComponent } from 'svelte/legacy';
|
|
144
|
-
import Root from './root.svelte';
|
|
145
|
-
export default asClassComponent(Root);
|
|
146
|
-
`
|
|
147
|
-
);
|
|
148
|
-
}
|