@sveltejs/kit 1.17.1 → 1.19.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/package.json +6 -1
- package/src/core/adapt/builder.js +3 -3
- package/src/core/config/index.js +2 -2
- package/src/core/config/options.js +8 -3
- package/src/core/env.js +1 -1
- package/src/core/generate_manifest/index.js +2 -2
- package/src/core/postbuild/analyse.js +3 -3
- package/src/core/postbuild/fallback.js +1 -1
- package/src/core/postbuild/prerender.js +1 -1
- package/src/core/sync/create_manifest_data/index.js +2 -2
- package/src/core/sync/write_ambient.js +1 -1
- package/src/core/sync/write_client_manifest.js +1 -1
- package/src/core/sync/write_server.js +2 -1
- package/src/core/sync/write_types/index.js +24 -24
- package/src/exports/hooks/sequence.js +71 -7
- package/src/exports/index.js +88 -12
- package/src/exports/node/index.js +14 -3
- package/src/exports/node/polyfills.js +8 -0
- package/src/exports/public.d.ts +1264 -0
- package/src/exports/vite/build/build_server.js +2 -2
- package/src/exports/vite/build/build_service_worker.js +1 -1
- package/src/exports/vite/dev/index.js +3 -3
- package/src/exports/vite/index.js +11 -6
- package/src/runtime/app/environment.js +3 -4
- package/src/runtime/app/forms.js +63 -7
- package/src/runtime/app/navigation.js +95 -0
- package/src/runtime/app/stores.js +28 -7
- package/src/runtime/client/client.js +26 -14
- package/src/runtime/client/singletons.js +6 -4
- package/src/runtime/client/start.js +1 -1
- package/src/runtime/client/types.d.ts +4 -12
- package/src/runtime/client/utils.js +29 -10
- package/src/runtime/control.js +12 -9
- package/src/runtime/server/ambient.d.ts +3 -3
- package/src/runtime/server/cookie.js +3 -3
- package/src/runtime/server/data/index.js +5 -4
- package/src/runtime/server/endpoint.js +11 -4
- package/src/runtime/server/fetch.js +4 -6
- package/src/runtime/server/index.js +2 -2
- package/src/runtime/server/page/actions.js +13 -13
- package/src/runtime/server/page/csp.js +7 -2
- package/src/runtime/server/page/index.js +6 -5
- package/src/runtime/server/page/load_data.js +20 -9
- package/src/runtime/server/page/render.js +11 -11
- package/src/runtime/server/page/respond_with_error.js +4 -3
- package/src/runtime/server/respond.js +6 -6
- package/src/runtime/server/utils.js +7 -7
- package/src/types/ambient-private.d.ts +11 -0
- package/src/types/ambient.d.ts +108 -0
- package/{types → src/types}/internal.d.ts +4 -13
- package/{types → src/types}/private.d.ts +1 -10
- package/src/utils/error.js +3 -3
- package/src/utils/exports.js +2 -2
- package/src/utils/routing.js +1 -39
- package/src/utils/streaming.js +2 -2
- package/types/index.d.ts +2081 -1100
- package/types/index.d.ts.map +165 -0
- package/src/internal.d.ts +0 -16
- package/types/ambient.d.ts +0 -486
- /package/{types → src/types}/synthetic/$env+dynamic+private.md +0 -0
- /package/{types → src/types}/synthetic/$env+dynamic+public.md +0 -0
- /package/{types → src/types}/synthetic/$env+static+private.md +0 -0
- /package/{types → src/types}/synthetic/$env+static+public.md +0 -0
- /package/{types → src/types}/synthetic/$lib.md +0 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "index.d.ts",
|
|
4
|
+
"names": [
|
|
5
|
+
"Adapter",
|
|
6
|
+
"AwaitedProperties",
|
|
7
|
+
"AwaitedActions",
|
|
8
|
+
"Builder",
|
|
9
|
+
"Config",
|
|
10
|
+
"Cookies",
|
|
11
|
+
"KitConfig",
|
|
12
|
+
"Handle",
|
|
13
|
+
"HandleServerError",
|
|
14
|
+
"HandleClientError",
|
|
15
|
+
"HandleFetch",
|
|
16
|
+
"Load",
|
|
17
|
+
"LoadEvent",
|
|
18
|
+
"NavigationEvent",
|
|
19
|
+
"NavigationTarget",
|
|
20
|
+
"NavigationType",
|
|
21
|
+
"Navigation",
|
|
22
|
+
"BeforeNavigate",
|
|
23
|
+
"AfterNavigate",
|
|
24
|
+
"Page",
|
|
25
|
+
"ParamMatcher",
|
|
26
|
+
"RequestEvent",
|
|
27
|
+
"RequestHandler",
|
|
28
|
+
"ResolveOptions",
|
|
29
|
+
"RouteDefinition",
|
|
30
|
+
"Server",
|
|
31
|
+
"ServerInitOptions",
|
|
32
|
+
"SSRManifest",
|
|
33
|
+
"ServerLoad",
|
|
34
|
+
"ServerLoadEvent",
|
|
35
|
+
"Action",
|
|
36
|
+
"Actions",
|
|
37
|
+
"ActionResult",
|
|
38
|
+
"HttpError",
|
|
39
|
+
"Redirect",
|
|
40
|
+
"SubmitFunction",
|
|
41
|
+
"Snapshot",
|
|
42
|
+
"AdapterEntry",
|
|
43
|
+
"CspDirectives",
|
|
44
|
+
"HttpMethod",
|
|
45
|
+
"Logger",
|
|
46
|
+
"MaybePromise",
|
|
47
|
+
"Prerendered",
|
|
48
|
+
"PrerenderHttpErrorHandler",
|
|
49
|
+
"PrerenderMissingIdHandler",
|
|
50
|
+
"PrerenderEntryGeneratorMismatchHandler",
|
|
51
|
+
"PrerenderHttpErrorHandlerValue",
|
|
52
|
+
"PrerenderMissingIdHandlerValue",
|
|
53
|
+
"PrerenderEntryGeneratorMismatchHandlerValue",
|
|
54
|
+
"PrerenderOption",
|
|
55
|
+
"PrerenderMap",
|
|
56
|
+
"RequestOptions",
|
|
57
|
+
"RouteSegment",
|
|
58
|
+
"TrailingSlash",
|
|
59
|
+
"replace_implementations",
|
|
60
|
+
"ActionFailure",
|
|
61
|
+
"ServerModule",
|
|
62
|
+
"ServerInternalModule",
|
|
63
|
+
"Asset",
|
|
64
|
+
"AssetDependencies",
|
|
65
|
+
"BuildData",
|
|
66
|
+
"CSRPageNode",
|
|
67
|
+
"CSRPageNodeLoader",
|
|
68
|
+
"CSRRoute",
|
|
69
|
+
"Deferred",
|
|
70
|
+
"GetParams",
|
|
71
|
+
"ServerHooks",
|
|
72
|
+
"ClientHooks",
|
|
73
|
+
"Env",
|
|
74
|
+
"InternalServer",
|
|
75
|
+
"ManifestData",
|
|
76
|
+
"PageNode",
|
|
77
|
+
"PrerenderDependency",
|
|
78
|
+
"PrerenderOptions",
|
|
79
|
+
"RecursiveRequired",
|
|
80
|
+
"RequiredResolveOptions",
|
|
81
|
+
"RouteParam",
|
|
82
|
+
"RouteData",
|
|
83
|
+
"ServerRedirectNode",
|
|
84
|
+
"ServerNodesResponse",
|
|
85
|
+
"ServerDataResponse",
|
|
86
|
+
"ServerDataNode",
|
|
87
|
+
"ServerDataChunkNode",
|
|
88
|
+
"ServerDataSkippedNode",
|
|
89
|
+
"ServerErrorNode",
|
|
90
|
+
"ServerMetadataRoute",
|
|
91
|
+
"ServerMetadata",
|
|
92
|
+
"SSRComponent",
|
|
93
|
+
"SSRComponentLoader",
|
|
94
|
+
"SSRNode",
|
|
95
|
+
"SSRNodeLoader",
|
|
96
|
+
"SSROptions",
|
|
97
|
+
"PageNodeIndexes",
|
|
98
|
+
"PrerenderEntryGenerator",
|
|
99
|
+
"SSREndpoint",
|
|
100
|
+
"SSRRoute",
|
|
101
|
+
"SSRState",
|
|
102
|
+
"StrictBody",
|
|
103
|
+
"Uses",
|
|
104
|
+
"ValidatedConfig",
|
|
105
|
+
"ValidatedKitConfig",
|
|
106
|
+
"redirect",
|
|
107
|
+
"json",
|
|
108
|
+
"text",
|
|
109
|
+
"fail",
|
|
110
|
+
"resolvePath",
|
|
111
|
+
"sequence",
|
|
112
|
+
"getRequest",
|
|
113
|
+
"setResponse",
|
|
114
|
+
"installPolyfills",
|
|
115
|
+
"sveltekit",
|
|
116
|
+
"browser",
|
|
117
|
+
"dev",
|
|
118
|
+
"applyAction",
|
|
119
|
+
"deserialize",
|
|
120
|
+
"enhance",
|
|
121
|
+
"disableScrollHandling",
|
|
122
|
+
"goto",
|
|
123
|
+
"invalidate",
|
|
124
|
+
"invalidateAll",
|
|
125
|
+
"preloadData",
|
|
126
|
+
"preloadCode",
|
|
127
|
+
"beforeNavigate",
|
|
128
|
+
"afterNavigate",
|
|
129
|
+
"getStores",
|
|
130
|
+
"page",
|
|
131
|
+
"navigating",
|
|
132
|
+
"updated"
|
|
133
|
+
],
|
|
134
|
+
"sources": [
|
|
135
|
+
"../src/exports/public.d.ts",
|
|
136
|
+
"../src/runtime/control.js",
|
|
137
|
+
"../src/types/private.d.ts",
|
|
138
|
+
"../src/types/internal.d.ts",
|
|
139
|
+
"../src/exports/index.js",
|
|
140
|
+
"../src/exports/hooks/sequence.js",
|
|
141
|
+
"../src/exports/node/index.js",
|
|
142
|
+
"../src/exports/node/polyfills.js",
|
|
143
|
+
"../src/exports/vite/index.js",
|
|
144
|
+
"../src/runtime/app/environment.js",
|
|
145
|
+
"../src/runtime/app/forms.js",
|
|
146
|
+
"../src/runtime/app/navigation.js",
|
|
147
|
+
"../src/runtime/app/stores.js"
|
|
148
|
+
],
|
|
149
|
+
"sourcesContent": [
|
|
150
|
+
null,
|
|
151
|
+
null,
|
|
152
|
+
null,
|
|
153
|
+
null,
|
|
154
|
+
null,
|
|
155
|
+
null,
|
|
156
|
+
null,
|
|
157
|
+
null,
|
|
158
|
+
null,
|
|
159
|
+
null,
|
|
160
|
+
null,
|
|
161
|
+
null,
|
|
162
|
+
null
|
|
163
|
+
],
|
|
164
|
+
"mappings": ";;;;;;;;;;;kBA6BiBA,OAAOA;;;;;;;;;;;;;;;;;;;;;aAsBZC,iBAAiBA;;;;;aAKjBC,cAAcA;;;;;;;;;;;;;;;;;;;;;;;kBAuBTC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuFPC,MAAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6BNC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiDPC,SAASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;cAqBJC,UAAUA;;;;cAOVC,aAAaA;;;;;;;;;;;cAebC,WAAWA;;;;;;;;;;;cAeXC,WAAWA;;;;;;;;;;cAcXC,cAAcA;;;;;;cAUdC,aAAaA;;;;;;;;iBCvGbC,SAASA;;;;;;;;;;;;;;cAwBTC,IAAIA;;;;;;;;cAeJC,UAAUA;;;;;;cAaVC,OAAOA"
|
|
165
|
+
}
|
package/src/internal.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Internal version of $app/environment */
|
|
2
|
-
declare module '__sveltekit/environment' {
|
|
3
|
-
export const building: boolean;
|
|
4
|
-
export const version: string;
|
|
5
|
-
export function set_building(): void;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/** Internal version of $app/paths */
|
|
9
|
-
declare module '__sveltekit/paths' {
|
|
10
|
-
export let base: '' | `/${string}`;
|
|
11
|
-
export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
|
|
12
|
-
export let relative: boolean | undefined; // TODO in 2.0, make this a `boolean` that defaults to `true`
|
|
13
|
-
export function reset(): void;
|
|
14
|
-
export function override(paths: { base: string; assets: string }): void;
|
|
15
|
-
export function set_assets(path: string): void;
|
|
16
|
-
}
|
package/types/ambient.d.ts
DELETED
|
@@ -1,486 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* It's possible to tell SvelteKit how to type objects inside your app by declaring the `App` namespace. By default, a new project will have a file called `src/app.d.ts` containing the following:
|
|
3
|
-
*
|
|
4
|
-
* ```ts
|
|
5
|
-
* declare global {
|
|
6
|
-
* namespace App {
|
|
7
|
-
* // interface Error {}
|
|
8
|
-
* // interface Locals {}
|
|
9
|
-
* // interface PageData {}
|
|
10
|
-
* // interface Platform {}
|
|
11
|
-
* }
|
|
12
|
-
* }
|
|
13
|
-
*
|
|
14
|
-
* export {};
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* The `export {}` line exists because without it, the file would be treated as an _ambient module_ which prevents you from adding `import` declarations.
|
|
18
|
-
* If you need to add ambient `declare module` declarations, do so in a separate file like `src/ambient.d.ts`.
|
|
19
|
-
*
|
|
20
|
-
* By populating these interfaces, you will gain type safety when using `event.locals`, `event.platform`, and `data` from `load` functions.
|
|
21
|
-
*/
|
|
22
|
-
declare namespace App {
|
|
23
|
-
/**
|
|
24
|
-
* Defines the common shape of expected and unexpected errors. Expected errors are thrown using the `error` function. Unexpected errors are handled by the `handleError` hooks which should return this shape.
|
|
25
|
-
*/
|
|
26
|
-
export interface Error {
|
|
27
|
-
message: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* The interface that defines `event.locals`, which can be accessed in [hooks](https://kit.svelte.dev/docs/hooks) (`handle`, and `handleError`), server-only `load` functions, and `+server.js` files.
|
|
32
|
-
*/
|
|
33
|
-
export interface Locals {}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Defines the common shape of the [$page.data store](https://kit.svelte.dev/docs/modules#$app-stores-page) - that is, the data that is shared between all pages.
|
|
37
|
-
* The `Load` and `ServerLoad` functions in `./$types` will be narrowed accordingly.
|
|
38
|
-
* Use optional properties for data that is only present on specific pages. Do not add an index signature (`[key: string]: any`).
|
|
39
|
-
*/
|
|
40
|
-
export interface PageData {}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* If your adapter provides [platform-specific context](https://kit.svelte.dev/docs/adapters#platform-specific-context) via `event.platform`, you can specify it here.
|
|
44
|
-
*/
|
|
45
|
-
export interface Platform {}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare module '$app/environment' {
|
|
49
|
-
/**
|
|
50
|
-
* `true` if the app is running in the browser.
|
|
51
|
-
*/
|
|
52
|
-
export const browser: boolean;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
|
|
56
|
-
*/
|
|
57
|
-
export const building: boolean;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Whether the dev server is running. This is not guaranteed to correspond to `NODE_ENV` or `MODE`.
|
|
61
|
-
*/
|
|
62
|
-
export const dev: boolean;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* The value of `config.kit.version.name`.
|
|
66
|
-
*/
|
|
67
|
-
export const version: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
declare module '$app/forms' {
|
|
71
|
-
import type { ActionResult } from '@sveltejs/kit';
|
|
72
|
-
|
|
73
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
74
|
-
|
|
75
|
-
// this is duplicated in @sveltejs/kit because create-svelte tests fail
|
|
76
|
-
// if we use the imported version. See https://github.com/sveltejs/kit/pull/7003#issuecomment-1330921789
|
|
77
|
-
// for why this happens (it's likely a bug in TypeScript, but one that is so rare that it's unlikely to be fixed)
|
|
78
|
-
type SubmitFunction<
|
|
79
|
-
Success extends Record<string, unknown> | undefined = Record<string, any>,
|
|
80
|
-
Invalid extends Record<string, unknown> | undefined = Record<string, any>
|
|
81
|
-
> = (input: {
|
|
82
|
-
action: URL;
|
|
83
|
-
/**
|
|
84
|
-
* use `formData` instead of `data`
|
|
85
|
-
* @deprecated
|
|
86
|
-
*/
|
|
87
|
-
data: FormData;
|
|
88
|
-
formData: FormData;
|
|
89
|
-
/**
|
|
90
|
-
* use `formElement` instead of `form`
|
|
91
|
-
* @deprecated
|
|
92
|
-
*/
|
|
93
|
-
form: HTMLFormElement;
|
|
94
|
-
formElement: HTMLFormElement;
|
|
95
|
-
controller: AbortController;
|
|
96
|
-
cancel(): void;
|
|
97
|
-
submitter: HTMLElement | null;
|
|
98
|
-
}) => MaybePromise<
|
|
99
|
-
| void
|
|
100
|
-
| ((opts: {
|
|
101
|
-
/**
|
|
102
|
-
* use `formData` instead of `data`
|
|
103
|
-
* @deprecated
|
|
104
|
-
*/
|
|
105
|
-
data: FormData;
|
|
106
|
-
formData: FormData;
|
|
107
|
-
/**
|
|
108
|
-
* use `formElement` instead of `form`
|
|
109
|
-
* @deprecated
|
|
110
|
-
*/
|
|
111
|
-
form: HTMLFormElement;
|
|
112
|
-
formElement: HTMLFormElement;
|
|
113
|
-
action: URL;
|
|
114
|
-
result: ActionResult<Success, Invalid>;
|
|
115
|
-
/**
|
|
116
|
-
* Call this to get the default behavior of a form submission response.
|
|
117
|
-
* @param options Set `reset: false` if you don't want the `<form>` values to be reset after a successful submission.
|
|
118
|
-
*/
|
|
119
|
-
update(options?: { reset: boolean }): Promise<void>;
|
|
120
|
-
}) => void)
|
|
121
|
-
>;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* This action enhances a `<form>` element that otherwise would work without JavaScript.
|
|
125
|
-
* @param form The form element
|
|
126
|
-
* @param options Callbacks for different states of the form lifecycle
|
|
127
|
-
*/
|
|
128
|
-
export function enhance<
|
|
129
|
-
Success extends Record<string, unknown> | undefined = Record<string, any>,
|
|
130
|
-
Invalid extends Record<string, unknown> | undefined = Record<string, any>
|
|
131
|
-
>(
|
|
132
|
-
formElement: HTMLFormElement,
|
|
133
|
-
/**
|
|
134
|
-
* Called upon submission with the given FormData and the `action` that should be triggered.
|
|
135
|
-
* If `cancel` is called, the form will not be submitted.
|
|
136
|
-
* You can use the abort `controller` to cancel the submission in case another one starts.
|
|
137
|
-
* If a function is returned, that function is called with the response from the server.
|
|
138
|
-
* If nothing is returned, the fallback will be used.
|
|
139
|
-
*
|
|
140
|
-
* If this function or its return value isn't set, it
|
|
141
|
-
* - falls back to updating the `form` prop with the returned data if the action is one same page as the form
|
|
142
|
-
* - updates `$page.status`
|
|
143
|
-
* - resets the `<form>` element and invalidates all data in case of successful submission with no redirect response
|
|
144
|
-
* - redirects in case of a redirect response
|
|
145
|
-
* - redirects to the nearest error page in case of an unexpected error
|
|
146
|
-
*
|
|
147
|
-
* If you provide a custom function with a callback and want to use the default behavior, invoke `update` in your callback.
|
|
148
|
-
*/
|
|
149
|
-
submit?: SubmitFunction<Success, Invalid>
|
|
150
|
-
): { destroy(): void };
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* This action updates the `form` property of the current page with the given data and updates `$page.status`.
|
|
154
|
-
* In case of an error, it redirects to the nearest error page.
|
|
155
|
-
*/
|
|
156
|
-
export function applyAction<
|
|
157
|
-
Success extends Record<string, unknown> | undefined = Record<string, any>,
|
|
158
|
-
Invalid extends Record<string, unknown> | undefined = Record<string, any>
|
|
159
|
-
>(result: ActionResult<Success, Invalid>): Promise<void>;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Use this function to deserialize the response from a form submission.
|
|
163
|
-
* Usage:
|
|
164
|
-
*
|
|
165
|
-
* ```js
|
|
166
|
-
* import { deserialize } from '$app/forms';
|
|
167
|
-
*
|
|
168
|
-
* async function handleSubmit(event) {
|
|
169
|
-
* const response = await fetch('/form?/action', {
|
|
170
|
-
* method: 'POST',
|
|
171
|
-
* body: new FormData(event.target)
|
|
172
|
-
* });
|
|
173
|
-
*
|
|
174
|
-
* const result = deserialize(await response.text());
|
|
175
|
-
* // ...
|
|
176
|
-
* }
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
export function deserialize<
|
|
180
|
-
Success extends Record<string, unknown> | undefined = Record<string, any>,
|
|
181
|
-
Invalid extends Record<string, unknown> | undefined = Record<string, any>
|
|
182
|
-
>(serialized: string): ActionResult<Success, Invalid>;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
declare module '$app/navigation' {
|
|
186
|
-
import { BeforeNavigate, AfterNavigate } from '@sveltejs/kit';
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* If called when the page is being updated following a navigation (in `onMount` or `afterNavigate` or an action, for example), this disables SvelteKit's built-in scroll handling.
|
|
190
|
-
* This is generally discouraged, since it breaks user expectations.
|
|
191
|
-
*/
|
|
192
|
-
export function disableScrollHandling(): void;
|
|
193
|
-
/**
|
|
194
|
-
* Returns a Promise that resolves when SvelteKit navigates (or fails to navigate, in which case the promise rejects) to the specified `url`.
|
|
195
|
-
* For external URLs, use `window.location = url` instead of calling `goto(url)`.
|
|
196
|
-
*
|
|
197
|
-
* @param url Where to navigate to. Note that if you've set [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths) and the URL is root-relative, you need to prepend the base path if you want to navigate within the app.
|
|
198
|
-
* @param opts Options related to the navigation
|
|
199
|
-
*/
|
|
200
|
-
export function goto(
|
|
201
|
-
url: string | URL,
|
|
202
|
-
opts?: {
|
|
203
|
-
/**
|
|
204
|
-
* If `true`, will replace the current `history` entry rather than creating a new one with `pushState`
|
|
205
|
-
*/
|
|
206
|
-
replaceState?: boolean;
|
|
207
|
-
/**
|
|
208
|
-
* If `true`, the browser will maintain its scroll position rather than scrolling to the top of the page after navigation
|
|
209
|
-
*/
|
|
210
|
-
noScroll?: boolean;
|
|
211
|
-
/**
|
|
212
|
-
* If `true`, the currently focused element will retain focus after navigation. Otherwise, focus will be reset to the body
|
|
213
|
-
*/
|
|
214
|
-
keepFocus?: boolean;
|
|
215
|
-
/**
|
|
216
|
-
* The state of the new/updated history entry
|
|
217
|
-
*/
|
|
218
|
-
state?: any;
|
|
219
|
-
/**
|
|
220
|
-
* If `true`, all `load` functions of the page will be rerun. See https://kit.svelte.dev/docs/load#rerunning-load-functions for more info on invalidation.
|
|
221
|
-
*/
|
|
222
|
-
invalidateAll?: boolean;
|
|
223
|
-
}
|
|
224
|
-
): Promise<void>;
|
|
225
|
-
/**
|
|
226
|
-
* Causes any `load` functions belonging to the currently active page to re-run if they depend on the `url` in question, via `fetch` or `depends`. Returns a `Promise` that resolves when the page is subsequently updated.
|
|
227
|
-
*
|
|
228
|
-
* If the argument is given as a `string` or `URL`, it must resolve to the same URL that was passed to `fetch` or `depends` (including query parameters).
|
|
229
|
-
* To create a custom identifier, use a string beginning with `[a-z]+:` (e.g. `custom:state`) — this is a valid URL.
|
|
230
|
-
*
|
|
231
|
-
* The `function` argument can be used define a custom predicate. It receives the full `URL` and causes `load` to rerun if `true` is returned.
|
|
232
|
-
* This can be useful if you want to invalidate based on a pattern instead of a exact match.
|
|
233
|
-
*
|
|
234
|
-
* ```ts
|
|
235
|
-
* // Example: Match '/path' regardless of the query parameters
|
|
236
|
-
* import { invalidate } from '$app/navigation';
|
|
237
|
-
*
|
|
238
|
-
* invalidate((url) => url.pathname === '/path');
|
|
239
|
-
* ```
|
|
240
|
-
* @param url The invalidated URL
|
|
241
|
-
*/
|
|
242
|
-
export function invalidate(url: string | URL | ((url: URL) => boolean)): Promise<void>;
|
|
243
|
-
/**
|
|
244
|
-
* Causes all `load` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.
|
|
245
|
-
*/
|
|
246
|
-
export function invalidateAll(): Promise<void>;
|
|
247
|
-
/**
|
|
248
|
-
* Programmatically preloads the given page, which means
|
|
249
|
-
* 1. ensuring that the code for the page is loaded, and
|
|
250
|
-
* 2. calling the page's load function with the appropriate options.
|
|
251
|
-
*
|
|
252
|
-
* This is the same behaviour that SvelteKit triggers when the user taps or mouses over an `<a>` element with `data-sveltekit-preload-data`.
|
|
253
|
-
* If the next navigation is to `href`, the values returned from load will be used, making navigation instantaneous.
|
|
254
|
-
* Returns a Promise that resolves when the preload is complete.
|
|
255
|
-
*
|
|
256
|
-
* @param href Page to preload
|
|
257
|
-
*/
|
|
258
|
-
export function preloadData(href: string): Promise<void>;
|
|
259
|
-
/**
|
|
260
|
-
* Programmatically imports the code for routes that haven't yet been fetched.
|
|
261
|
-
* Typically, you might call this to speed up subsequent navigation.
|
|
262
|
-
*
|
|
263
|
-
* You can specify routes by any matching pathname such as `/about` (to match `src/routes/about/+page.svelte`) or `/blog/*` (to match `src/routes/blog/[slug]/+page.svelte`).
|
|
264
|
-
*
|
|
265
|
-
* Unlike `preloadData`, this won't call `load` functions.
|
|
266
|
-
* Returns a Promise that resolves when the modules have been imported.
|
|
267
|
-
*/
|
|
268
|
-
export function preloadCode(...urls: string[]): Promise<void>;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* A navigation interceptor that triggers before we navigate to a new URL, whether by clicking a link, calling `goto(...)`, or using the browser back/forward controls.
|
|
272
|
-
* Calling `cancel()` will prevent the navigation from completing. If the navigation would have directly unloaded the current page, calling `cancel` will trigger the native
|
|
273
|
-
* browser unload confirmation dialog. In these cases, `navigation.willUnload` is `true`.
|
|
274
|
-
*
|
|
275
|
-
* When a navigation isn't client side, `navigation.to.route.id` will be `null`.
|
|
276
|
-
*
|
|
277
|
-
* `beforeNavigate` must be called during a component initialization. It remains active as long as the component is mounted.
|
|
278
|
-
*/
|
|
279
|
-
export function beforeNavigate(callback: (navigation: BeforeNavigate) => void): void;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* A lifecycle function that runs the supplied `callback` when the current component mounts, and also whenever we navigate to a new URL.
|
|
283
|
-
*
|
|
284
|
-
* `afterNavigate` must be called during a component initialization. It remains active as long as the component is mounted.
|
|
285
|
-
*/
|
|
286
|
-
export function afterNavigate(callback: (navigation: AfterNavigate) => void): void;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
declare module '$app/paths' {
|
|
290
|
-
/**
|
|
291
|
-
* A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
|
|
292
|
-
*
|
|
293
|
-
* Example usage: `<a href="{base}/your-page">Link</a>`
|
|
294
|
-
*/
|
|
295
|
-
export const base: `/${string}`;
|
|
296
|
-
/**
|
|
297
|
-
* An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
|
|
298
|
-
*
|
|
299
|
-
* > If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
|
|
300
|
-
*/
|
|
301
|
-
export const assets: `https://${string}` | `http://${string}`;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* These stores are _contextual_ on the server — they are added to the [context](https://svelte.dev/tutorial/context-api) of your root component. This means that `page` is unique to each request, rather than shared between multiple requests handled by the same server simultaneously.
|
|
306
|
-
*
|
|
307
|
-
* Because of that, you must subscribe to the stores during component initialization (which happens automatically if you reference the store value, e.g. as `$page`, in a component) before you can use them.
|
|
308
|
-
*
|
|
309
|
-
* In the browser, we don't need to worry about this, and stores can be accessed from anywhere. Code that will only ever run on the browser can refer to (or subscribe to) any of these stores at any time.
|
|
310
|
-
*
|
|
311
|
-
* You can read more about client/server differences in the [state management](https://kit.svelte.dev/docs/state-management#using-stores-with-context) documentation.
|
|
312
|
-
*/
|
|
313
|
-
declare module '$app/stores' {
|
|
314
|
-
import { Readable } from 'svelte/store';
|
|
315
|
-
import { Navigation, Page } from '@sveltejs/kit';
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* A readable store whose value contains page data.
|
|
319
|
-
*
|
|
320
|
-
* On the server, this store can only be subscribed to during component initialization. In the browser, it can be subscribed to at any time.
|
|
321
|
-
*/
|
|
322
|
-
export const page: Readable<Page>;
|
|
323
|
-
/**
|
|
324
|
-
* A readable store.
|
|
325
|
-
* When navigating starts, its value is a `Navigation` object with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.
|
|
326
|
-
* When navigating finishes, its value reverts to `null`.
|
|
327
|
-
*
|
|
328
|
-
* On the server, this store can only be subscribed to during component initialization. In the browser, it can be subscribed to at any time.
|
|
329
|
-
*/
|
|
330
|
-
export const navigating: Readable<Navigation | null>;
|
|
331
|
-
/**
|
|
332
|
-
* A readable store whose initial value is `false`. If [`version.pollInterval`](https://kit.svelte.dev/docs/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update the store value to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling.
|
|
333
|
-
*
|
|
334
|
-
* On the server, this store can only be subscribed to during component initialization. In the browser, it can be subscribed to at any time.
|
|
335
|
-
*/
|
|
336
|
-
export const updated: Readable<boolean> & { check(): Promise<boolean> };
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* A function that returns all of the contextual stores. On the server, this must be called during component initialization.
|
|
340
|
-
* Only use this if you need to defer store subscription until after the component has mounted, for some reason.
|
|
341
|
-
*/
|
|
342
|
-
export function getStores(): {
|
|
343
|
-
navigating: typeof navigating;
|
|
344
|
-
page: typeof page;
|
|
345
|
-
updated: typeof updated;
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* This module is only available to [service workers](https://kit.svelte.dev/docs/service-workers).
|
|
351
|
-
*/
|
|
352
|
-
declare module '$service-worker' {
|
|
353
|
-
/**
|
|
354
|
-
* The `base` path of the deployment. Typically this is equivalent to `config.kit.paths.base`, but it is calculated from `location.pathname` meaning that it will continue to work correctly if the site is deployed to a subdirectory.
|
|
355
|
-
* Note that there is a `base` but no `assets`, since service workers cannot be used if `config.kit.paths.assets` is specified.
|
|
356
|
-
*/
|
|
357
|
-
export const base: string;
|
|
358
|
-
/**
|
|
359
|
-
* An array of URL strings representing the files generated by Vite, suitable for caching with `cache.addAll(build)`.
|
|
360
|
-
* During development, this is an empty array.
|
|
361
|
-
*/
|
|
362
|
-
export const build: string[];
|
|
363
|
-
/**
|
|
364
|
-
* An array of URL strings representing the files in your static directory, or whatever directory is specified by `config.kit.files.assets`. You can customize which files are included from `static` directory using [`config.kit.serviceWorker.files`](https://kit.svelte.dev/docs/configuration)
|
|
365
|
-
*/
|
|
366
|
-
export const files: string[];
|
|
367
|
-
/**
|
|
368
|
-
* An array of pathnames corresponding to prerendered pages and endpoints.
|
|
369
|
-
* During development, this is an empty array.
|
|
370
|
-
*/
|
|
371
|
-
export const prerendered: string[];
|
|
372
|
-
/**
|
|
373
|
-
* See [`config.kit.version`](https://kit.svelte.dev/docs/configuration#version). It's useful for generating unique cache names inside your service worker, so that a later deployment of your app can invalidate old caches.
|
|
374
|
-
*/
|
|
375
|
-
export const version: string;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
declare module '@sveltejs/kit/hooks' {
|
|
379
|
-
import { Handle } from '@sveltejs/kit';
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* A helper function for sequencing multiple `handle` calls in a middleware-like manner.
|
|
383
|
-
* The behavior for the `handle` options is as follows:
|
|
384
|
-
* - `transformPageChunk` is applied in reverse order and merged
|
|
385
|
-
* - `preload` is applied in forward order, the first option "wins" and no `preload` options after it are called
|
|
386
|
-
* - `filterSerializedResponseHeaders` behaves the same as `preload`
|
|
387
|
-
*
|
|
388
|
-
* ```js
|
|
389
|
-
* /// file: src/hooks.server.js
|
|
390
|
-
* import { sequence } from '@sveltejs/kit/hooks';
|
|
391
|
-
*
|
|
392
|
-
* /// type: import('@sveltejs/kit').Handle
|
|
393
|
-
* async function first({ event, resolve }) {
|
|
394
|
-
* console.log('first pre-processing');
|
|
395
|
-
* const result = await resolve(event, {
|
|
396
|
-
* transformPageChunk: ({ html }) => {
|
|
397
|
-
* // transforms are applied in reverse order
|
|
398
|
-
* console.log('first transform');
|
|
399
|
-
* return html;
|
|
400
|
-
* },
|
|
401
|
-
* preload: () => {
|
|
402
|
-
* // this one wins as it's the first defined in the chain
|
|
403
|
-
* console.log('first preload');
|
|
404
|
-
* }
|
|
405
|
-
* });
|
|
406
|
-
* console.log('first post-processing');
|
|
407
|
-
* return result;
|
|
408
|
-
* }
|
|
409
|
-
*
|
|
410
|
-
* /// type: import('@sveltejs/kit').Handle
|
|
411
|
-
* async function second({ event, resolve }) {
|
|
412
|
-
* console.log('second pre-processing');
|
|
413
|
-
* const result = await resolve(event, {
|
|
414
|
-
* transformPageChunk: ({ html }) => {
|
|
415
|
-
* console.log('second transform');
|
|
416
|
-
* return html;
|
|
417
|
-
* },
|
|
418
|
-
* preload: () => {
|
|
419
|
-
* console.log('second preload');
|
|
420
|
-
* },
|
|
421
|
-
* filterSerializedResponseHeaders: () => {
|
|
422
|
-
* // this one wins as it's the first defined in the chain
|
|
423
|
-
* console.log('second filterSerializedResponseHeaders');
|
|
424
|
-
* }
|
|
425
|
-
* });
|
|
426
|
-
* console.log('second post-processing');
|
|
427
|
-
* return result;
|
|
428
|
-
* }
|
|
429
|
-
*
|
|
430
|
-
* export const handle = sequence(first, second);
|
|
431
|
-
* ```
|
|
432
|
-
*
|
|
433
|
-
* The example above would print:
|
|
434
|
-
*
|
|
435
|
-
* ```
|
|
436
|
-
* first pre-processing
|
|
437
|
-
* first preload
|
|
438
|
-
* second pre-processing
|
|
439
|
-
* second filterSerializedResponseHeaders
|
|
440
|
-
* second transform
|
|
441
|
-
* first transform
|
|
442
|
-
* second post-processing
|
|
443
|
-
* first post-processing
|
|
444
|
-
* ```
|
|
445
|
-
*
|
|
446
|
-
* @param handlers The chain of `handle` functions
|
|
447
|
-
*/
|
|
448
|
-
export function sequence(...handlers: Handle[]): Handle;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* A polyfill for `fetch` and its related interfaces, used by adapters for environments that don't provide a native implementation.
|
|
453
|
-
*/
|
|
454
|
-
declare module '@sveltejs/kit/node/polyfills' {
|
|
455
|
-
/**
|
|
456
|
-
* Make various web APIs available as globals:
|
|
457
|
-
* - `crypto`
|
|
458
|
-
* - `fetch`
|
|
459
|
-
* - `Headers`
|
|
460
|
-
* - `Request`
|
|
461
|
-
* - `Response`
|
|
462
|
-
*/
|
|
463
|
-
export function installPolyfills(): void;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Utilities used by adapters for Node-like environments.
|
|
468
|
-
*/
|
|
469
|
-
declare module '@sveltejs/kit/node' {
|
|
470
|
-
export function getRequest(opts: {
|
|
471
|
-
base: string;
|
|
472
|
-
request: import('http').IncomingMessage;
|
|
473
|
-
bodySizeLimit?: number;
|
|
474
|
-
}): Promise<Request>;
|
|
475
|
-
export function setResponse(res: import('http').ServerResponse, response: Response): void;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
declare module '@sveltejs/kit/vite' {
|
|
479
|
-
import { Plugin } from 'vite';
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Returns the SvelteKit Vite plugins.
|
|
483
|
-
*/
|
|
484
|
-
export function sveltekit(): Promise<Plugin[]>;
|
|
485
|
-
export { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
486
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|