@microsoft/fast-router 0.4.1 → 1.0.0-alpha.2

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.
Files changed (44) hide show
  1. package/.eslintrc.json +0 -4
  2. package/CHANGELOG.json +195 -1
  3. package/CHANGELOG.md +35 -2
  4. package/README.md +3 -32
  5. package/dist/dts/commands.d.ts +5 -5
  6. package/dist/dts/configuration.d.ts +1 -1
  7. package/dist/dts/contributors.d.ts +24 -6
  8. package/dist/dts/events.d.ts +2 -2
  9. package/dist/dts/fast-router.d.ts +1 -1
  10. package/dist/dts/links.d.ts +2 -2
  11. package/dist/dts/navigation.d.ts +7 -7
  12. package/dist/dts/phases.d.ts +6 -6
  13. package/dist/dts/process.d.ts +2 -2
  14. package/dist/dts/query-string.d.ts +2 -2
  15. package/dist/dts/recognizer.d.ts +6 -6
  16. package/dist/dts/router.d.ts +6 -6
  17. package/dist/dts/routes.d.ts +26 -26
  18. package/dist/dts/titles.d.ts +2 -2
  19. package/dist/{tsdoc-metadata.json → dts/tsdoc-metadata.json} +1 -1
  20. package/dist/dts/view.d.ts +8 -8
  21. package/dist/esm/commands.js +10 -8
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/contributors.js +9 -9
  24. package/dist/esm/events.js +1 -1
  25. package/dist/esm/fast-router.js +1 -1
  26. package/dist/esm/links.js +1 -1
  27. package/dist/esm/navigation.js +4 -4
  28. package/dist/esm/process.js +1 -1
  29. package/dist/esm/query-string.js +1 -1
  30. package/dist/esm/recognizer.js +16 -16
  31. package/dist/esm/router.js +4 -19
  32. package/dist/esm/routes.js +1 -1
  33. package/dist/esm/titles.js +1 -1
  34. package/dist/esm/view.js +8 -8
  35. package/dist/fast-router.api.json +9699 -2
  36. package/dist/fast-router.d.ts +101 -83
  37. package/dist/fast-router.untrimmed.d.ts +825 -0
  38. package/docs/api-report.md +90 -86
  39. package/karma.conf.cjs +6 -17
  40. package/package.json +12 -16
  41. package/dist/dts/index-rollup.d.ts +0 -2
  42. package/dist/esm/index-rollup.js +0 -2
  43. package/dist/fast-router.js +0 -6779
  44. package/dist/fast-router.min.js +0 -15
package/.eslintrc.json CHANGED
@@ -12,10 +12,6 @@
12
12
  },
13
13
  "extendDefaults": true
14
14
  }
15
- ],
16
- "import/extensions": [
17
- "error",
18
- "always"
19
15
  ]
20
16
  }
21
17
  }
package/CHANGELOG.json CHANGED
@@ -2,7 +2,201 @@
2
2
  "name": "@microsoft/fast-router",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 03 May 2022 07:12:26 GMT",
5
+ "date": "Wed, 15 Jun 2022 17:41:10 GMT",
6
+ "tag": "@microsoft/fast-router_v1.0.0-alpha.2",
7
+ "version": "1.0.0-alpha.2",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "comment": "chore: fix package.json type fields",
12
+ "author": "roeisenb@microsoft.com",
13
+ "commit": "e86a638b9e84cbf36d950025889742944e68e512",
14
+ "package": "@microsoft/fast-router"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 01 Jun 2022 17:53:14 GMT",
21
+ "tag": "@microsoft/fast-router_v1.0.0-alpha.1",
22
+ "version": "1.0.0-alpha.1",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "comment": "fix: update router to work with new template primitives",
27
+ "author": "roeisenb@microsoft.com",
28
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
29
+ "package": "@microsoft/fast-router"
30
+ },
31
+ {
32
+ "comment": "fix: update router to new directive APIs.",
33
+ "author": "roeisenb@microsoft.com",
34
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
35
+ "package": "@microsoft/fast-router"
36
+ },
37
+ {
38
+ "comment": "chore: remove rollup of router",
39
+ "author": "roeisenb@microsoft.com",
40
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
41
+ "package": "@microsoft/fast-router"
42
+ },
43
+ {
44
+ "comment": "Upgrade TypeScript",
45
+ "author": "nicholasrice@users.noreply.github.com",
46
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
47
+ "package": "@microsoft/fast-router"
48
+ },
49
+ {
50
+ "comment": "Set prerelease version",
51
+ "author": "nicholasrice@users.noreply.github.com",
52
+ "commit": "5b313a3262b977acbee3c2efac87d0d14a82f792",
53
+ "package": "@microsoft/fast-router"
54
+ },
55
+ {
56
+ "comment": "chore: configure fast-router for internals stripping",
57
+ "author": "roeisenb@microsoft.com",
58
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
59
+ "package": "@microsoft/fast-router"
60
+ },
61
+ {
62
+ "comment": "refactor: new design for execution context",
63
+ "author": "roeisenb@microsoft.com",
64
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
65
+ "package": "@microsoft/fast-router"
66
+ },
67
+ {
68
+ "comment": "Update the fast-router with the updates to fast-element 2.0 APIs",
69
+ "author": "7559015+janechu@users.noreply.github.com",
70
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
71
+ "package": "@microsoft/fast-router"
72
+ },
73
+ {
74
+ "comment": "fix: update to latest fast-element utilities",
75
+ "author": "roeisenb@microsoft.com",
76
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
77
+ "package": "@microsoft/fast-router"
78
+ },
79
+ {
80
+ "comment": "Fixed an updated export from FAST element 2.0",
81
+ "author": "7559015+janechu@users.noreply.github.com",
82
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
83
+ "package": "@microsoft/fast-router"
84
+ }
85
+ ],
86
+ "none": [
87
+ {
88
+ "comment": "update api extractor and typescript to use the latest versions",
89
+ "author": "chhol@microsoft.com",
90
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
91
+ "package": "@microsoft/fast-router"
92
+ },
93
+ {
94
+ "comment": "docs: update a few readme files",
95
+ "author": "roeisenb@microsoft.com",
96
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
97
+ "package": "@microsoft/fast-router"
98
+ },
99
+ {
100
+ "comment": "Bump @microsoft/fast-element to v2.0.0-beta.1",
101
+ "author": "roeisenb@microsoft.com",
102
+ "commit": "4699e77715068f8610aae908ede6356a249574b6",
103
+ "package": "@microsoft/fast-router"
104
+ }
105
+ ]
106
+ }
107
+ },
108
+ {
109
+ "date": "Sun, 29 May 2022 07:08:52 GMT",
110
+ "tag": "@microsoft/fast-router_v0.4.2",
111
+ "version": "0.4.2",
112
+ "comments": {
113
+ "none": [
114
+ {
115
+ "comment": "Bump @microsoft/fast-element to v1.10.2",
116
+ "author": "steph@huynhicode.dev",
117
+ "commit": "283b4838d46ed83c70ff4ad91f7f72a4936d59bf",
118
+ "package": "@microsoft/fast-router"
119
+ }
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "date": "Tue, 24 May 2022 07:10:02 GMT",
125
+ "tag": "@microsoft/fast-router_v0.4.2",
126
+ "version": "0.4.2",
127
+ "comments": {
128
+ "patch": [
129
+ {
130
+ "comment": "Bump @microsoft/fast-element to v1.10.2",
131
+ "author": "roeisenb@microsoft.com",
132
+ "commit": "476be7672653b2e63b9ab771949718aa8f43df0d",
133
+ "package": "@microsoft/fast-router"
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ {
139
+ "date": "Sun, 15 May 2022 07:08:25 GMT",
140
+ "tag": "@microsoft/fast-router_v0.4.1",
141
+ "version": "0.4.1",
142
+ "comments": {
143
+ "none": [
144
+ {
145
+ "comment": "fix url path for npm version badge on README.md",
146
+ "author": "nicholasrice@users.noreply.github.com",
147
+ "commit": "f43629c7b3065a95ec05bf6186c851496d5320ec",
148
+ "package": "@microsoft/fast-router"
149
+ }
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ "date": "Sun, 08 May 2022 07:08:18 GMT",
155
+ "tag": "@microsoft/fast-router_v0.4.1",
156
+ "version": "0.4.1",
157
+ "comments": {
158
+ "none": [
159
+ {
160
+ "comment": "Bump @microsoft/fast-element to v1.10.1",
161
+ "author": "chhol@microsoft.com",
162
+ "commit": "890ff058b8771c84a9e669b4e9202c43f4d3e7fc",
163
+ "package": "@microsoft/fast-router"
164
+ }
165
+ ]
166
+ }
167
+ },
168
+ {
169
+ "date": "Fri, 06 May 2022 20:58:02 GMT",
170
+ "tag": "@microsoft/fast-router_v0.4.1",
171
+ "version": "0.4.1",
172
+ "comments": {
173
+ "none": [
174
+ {
175
+ "comment": "update api extractor to 7.23.1 to ensure we can support TS 4.7 internal API changes",
176
+ "author": "chhol@microsoft.com",
177
+ "commit": "fbc6a7fb670453322c93f8f12a223febad86f735",
178
+ "package": "@microsoft/fast-router"
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ {
184
+ "date": "Wed, 04 May 2022 07:14:00 GMT",
185
+ "tag": "@microsoft/fast-router_v0.4.1",
186
+ "version": "0.4.1",
187
+ "comments": {
188
+ "none": [
189
+ {
190
+ "comment": "Bump @microsoft/fast-element to v1.10.1",
191
+ "author": "steph@huynhicode.dev",
192
+ "commit": "c49a98f7f1bd8e167b0b7a96a181990f9a675f34",
193
+ "package": "@microsoft/fast-router"
194
+ }
195
+ ]
196
+ }
197
+ },
198
+ {
199
+ "date": "Tue, 03 May 2022 07:15:44 GMT",
6
200
  "tag": "@microsoft/fast-router_v0.4.1",
7
201
  "version": "0.4.1",
8
202
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,45 @@
1
1
  # Change Log - @microsoft/fast-router
2
2
 
3
- This log was last generated on Tue, 03 May 2022 07:12:26 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 15 Jun 2022 17:41:10 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.0.0-alpha.2
8
+
9
+ Wed, 15 Jun 2022 17:41:10 GMT
10
+
11
+ ### Changes
12
+
13
+ - chore: fix package.json type fields (roeisenb@microsoft.com)
14
+
15
+ ## 1.0.0-alpha.1
16
+
17
+ Wed, 01 Jun 2022 17:53:14 GMT
18
+
19
+ ### Changes
20
+
21
+ - fix: update router to work with new template primitives (roeisenb@microsoft.com)
22
+ - fix: update router to new directive APIs. (roeisenb@microsoft.com)
23
+ - chore: remove rollup of router (roeisenb@microsoft.com)
24
+ - Upgrade TypeScript (nicholasrice@users.noreply.github.com)
25
+ - Set prerelease version (nicholasrice@users.noreply.github.com)
26
+ - chore: configure fast-router for internals stripping (roeisenb@microsoft.com)
27
+ - refactor: new design for execution context (roeisenb@microsoft.com)
28
+ - Update the fast-router with the updates to fast-element 2.0 APIs (7559015+janechu@users.noreply.github.com)
29
+ - fix: update to latest fast-element utilities (roeisenb@microsoft.com)
30
+ - Fixed an updated export from FAST element 2.0 (7559015+janechu@users.noreply.github.com)
31
+
32
+ ## 0.4.2
33
+
34
+ Tue, 24 May 2022 07:10:02 GMT
35
+
36
+ ### Patches
37
+
38
+ - Bump @microsoft/fast-element to v1.10.2 (roeisenb@microsoft.com)
39
+
7
40
  ## 0.4.1
8
41
 
9
- Tue, 03 May 2022 07:12:26 GMT
42
+ Tue, 03 May 2022 07:15:44 GMT
10
43
 
11
44
  ### Patches
12
45
 
package/README.md CHANGED
@@ -1,9 +1,6 @@
1
1
  # FAST Router
2
2
 
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![npm version](https://badge.fury.io/js/%40microsoft%2Ffast-foundation.svg)](https://badge.fury.io/js/%40microsoft%2Ffast-router)
5
-
6
- The `fast-router` package contains a history-based navigation and routing solution designed around web components. By using `fast-router`, you can create multi-page and full application experiences.
3
+ The `@microsoft/fast-router` package contains a history-based navigation and routing solution designed around Web Components. By using `fast-router`, you can create multi-page and full application experiences. The router works with any Web Components, but has special support for Web Components built on FAST.
7
4
 
8
5
  ## Installation
9
6
 
@@ -27,36 +24,10 @@ import { FASTRouter } from '@microsoft/fast-router';
27
24
 
28
25
  Looking for a setup that integrates with a particular front-end framework or bundler? Check out [our integration docs](https://fast.design/docs/integrations/introduction).
29
26
 
30
- ### From CDN
31
-
32
- A pre-bundled script that contains all APIs needed to use FAST Router and FAST Element is available on CDN. You can use this script by adding [`type="module"`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) to the script element and then importing from the CDN.
33
-
34
- ```html
35
- <!DOCTYPE html>
36
- <html lang="en">
37
- <head>
38
- <script type="module">
39
- import { FASTRouter } from "https://cdn.jsdelivr.net/npm/@microsoft/fast-router/dist/fast-router.min.js";
40
-
41
- // your code here
42
- </script>
43
- </head>
44
- <!-- ... -->
45
- </html>
46
- ```
47
-
48
- The markup above always references the latest release. When deploying to production, you will want to ship with a specific version. Here's an example of the markup for that:
49
-
50
- ```html
51
- <script type="module" src="https://cdn.jsdelivr.net/npm/@microsoft/fast-router@0.2.11/dist/fast-router.min.js"></script>
52
- ```
53
-
54
- :::note
55
- For simplicity, examples throughout the documentation will assume the library has been installed from NPM, but you can always replace the import location with the CDN URL.
56
- :::
57
-
58
27
  ## Configuration at a Glance
59
28
 
29
+ The router is currently in `alpha` while we address a few bugs, finish up some final polish, and write the full documentation. Below is a quick sample of how to configure the router, to help get you going while we complete the full documentation.
30
+
60
31
  #### A Sample Route Configuration
61
32
 
62
33
  ```ts
@@ -6,13 +6,13 @@ import { RecognizedRoute } from "./recognizer.js";
6
6
  import { NavigationContributor } from "./contributors.js";
7
7
  import { NavigationCommitPhase, NavigationPhase } from "./phases.js";
8
8
  /**
9
- * @alpha
9
+ * @beta
10
10
  */
11
11
  export interface NavigationCommand {
12
12
  createContributor(router: Router, route: RecognizedRoute): Promise<NavigationContributor>;
13
13
  }
14
14
  /**
15
- * @alpha
15
+ * @beta
16
16
  */
17
17
  export interface RenderCommand extends NavigationCommand {
18
18
  layout: Layout;
@@ -20,7 +20,7 @@ export interface RenderCommand extends NavigationCommand {
20
20
  createView(): Promise<RouteView>;
21
21
  }
22
22
  /**
23
- * @alpha
23
+ * @beta
24
24
  */
25
25
  export declare class Ignore implements NavigationCommand {
26
26
  createContributor(): Promise<{
@@ -28,7 +28,7 @@ export declare class Ignore implements NavigationCommand {
28
28
  }>;
29
29
  }
30
30
  /**
31
- * @alpha
31
+ * @beta
32
32
  */
33
33
  export declare class Redirect implements NavigationCommand {
34
34
  private redirect;
@@ -47,7 +47,7 @@ declare class RenderContributor {
47
47
  commit(phase: NavigationCommitPhase): Promise<void>;
48
48
  }
49
49
  /**
50
- * @alpha
50
+ * @beta
51
51
  */
52
52
  export declare class Render implements RenderCommand {
53
53
  private owner;
@@ -10,7 +10,7 @@ import { NavigationContributor } from "./contributors.js";
10
10
  import { NavigationPhaseHook, NavigationPhaseName } from "./phases.js";
11
11
  import { RouteRecognizer } from "./recognizer.js";
12
12
  /**
13
- * @alpha
13
+ * @beta
14
14
  */
15
15
  export declare abstract class RouterConfiguration<TSettings = any> {
16
16
  private isConfigured;
@@ -1,23 +1,41 @@
1
- import { HTMLDirective } from "@microsoft/fast-element";
1
+ import { AddViewBehaviorFactory, Behavior, HTMLDirective, ViewBehaviorTargets } from "@microsoft/fast-element";
2
2
  import { NavigationCommitPhaseHook, NavigationPhaseHook, NavigationPhaseName } from "./phases.js";
3
+ import { RouterExecutionContext } from "./view.js";
3
4
  /**
4
- * @alpha
5
+ * @beta
5
6
  */
6
7
  export declare type NavigationContributor<TSettings = any> = Partial<Record<Exclude<NavigationPhaseName, "commit">, NavigationPhaseHook<TSettings>>> & {
7
8
  commit?: NavigationCommitPhaseHook<TSettings>;
8
9
  };
9
10
  /**
10
- * @alpha
11
+ * @beta
11
12
  */
12
13
  export declare function isNavigationPhaseContributor<T extends NavigationPhaseName>(object: any, phase: T): object is Record<T, NavigationPhaseHook>;
13
14
  /**
14
- * @alpha
15
+ * @beta
15
16
  */
16
17
  export declare type ContributorOptions = {
17
18
  lifecycle?: boolean;
18
19
  parameters?: boolean;
19
20
  };
21
+ declare class NavigationContributorDirective implements HTMLDirective {
22
+ private options;
23
+ id: string;
24
+ nodeId: string;
25
+ constructor(options: Required<ContributorOptions>);
26
+ createHTML(add: AddViewBehaviorFactory): string;
27
+ createBehavior(targets: ViewBehaviorTargets): NavigationContributorBehavior;
28
+ }
29
+ declare class NavigationContributorBehavior implements Behavior {
30
+ private contributor;
31
+ private options;
32
+ private router;
33
+ constructor(contributor: HTMLElement & NavigationContributor, options: Required<ContributorOptions>);
34
+ bind(source: unknown, context: RouterExecutionContext): void;
35
+ unbind(source: unknown): void;
36
+ }
20
37
  /**
21
- * @alpha
38
+ * @beta
22
39
  */
23
- export declare function navigationContributor(options?: ContributorOptions): HTMLDirective;
40
+ export declare function navigationContributor(options?: ContributorOptions): NavigationContributorDirective;
41
+ export {};
@@ -4,7 +4,7 @@ import { NavigationPhase } from "./phases.js";
4
4
  import { RecognizedRoute } from "./recognizer.js";
5
5
  import { Router } from "./router.js";
6
6
  /**
7
- * @alpha
7
+ * @beta
8
8
  */
9
9
  export interface RoutingEventSink {
10
10
  onUnhandledNavigationMessage(router: Router, message: NavigationMessage): void;
@@ -14,7 +14,7 @@ export interface RoutingEventSink {
14
14
  onNavigationEnd(router: Router, route: RecognizedRoute, command: NavigationCommand): void;
15
15
  }
16
16
  /**
17
- * @alpha
17
+ * @beta
18
18
  */
19
19
  export declare class DefaultRoutingEventSink implements RoutingEventSink {
20
20
  onUnhandledNavigationMessage(router: Router, message: NavigationMessage): void;
@@ -2,7 +2,7 @@ import { FASTElement } from "@microsoft/fast-element";
2
2
  import { RouterElement } from "./router.js";
3
3
  declare const FASTRouter_base: new () => FASTElement & RouterElement;
4
4
  /**
5
- * @alpha
5
+ * @beta
6
6
  */
7
7
  export declare class FASTRouter extends FASTRouter_base {
8
8
  }
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @alpha
2
+ * @beta
3
3
  */
4
4
  export interface LinkHandler {
5
5
  connect(): void;
6
6
  disconnect(): void;
7
7
  }
8
8
  /**
9
- * @alpha
9
+ * @beta
10
10
  */
11
11
  export declare class DefaultLinkHandler implements LinkHandler {
12
12
  private handler;
@@ -1,6 +1,6 @@
1
1
  import { Router } from "./router.js";
2
2
  /**
3
- * @alpha
3
+ * @beta
4
4
  */
5
5
  export interface Route {
6
6
  readonly path: string;
@@ -8,27 +8,27 @@ export interface Route {
8
8
  readonly caseSensitive?: boolean;
9
9
  }
10
10
  /**
11
- * @alpha
11
+ * @beta
12
12
  */
13
13
  export declare class NavigationMessage {
14
14
  path: string;
15
15
  constructor(path: string);
16
16
  }
17
17
  /**
18
- * @alpha
18
+ * @beta
19
19
  */
20
20
  export interface NavigationHandler {
21
21
  enqueue(msg: NavigationMessage): void;
22
22
  }
23
23
  /**
24
- * @alpha
24
+ * @beta
25
25
  */
26
26
  export declare const NavigationHandler: Readonly<{
27
27
  register(handler: NavigationHandler): void;
28
28
  unregister(handler: NavigationHandler): void;
29
29
  }>;
30
30
  /**
31
- * @alpha
31
+ * @beta
32
32
  */
33
33
  export interface NavigationQueue {
34
34
  connect(): void;
@@ -36,7 +36,7 @@ export interface NavigationQueue {
36
36
  receive(): Promise<NavigationMessage>;
37
37
  }
38
38
  /**
39
- * @alpha
39
+ * @beta
40
40
  */
41
41
  export declare const Route: Readonly<{
42
42
  path: Readonly<{
@@ -54,7 +54,7 @@ export declare const Route: Readonly<{
54
54
  }>;
55
55
  }>;
56
56
  /**
57
- * @alpha
57
+ * @beta
58
58
  */
59
59
  export declare class DefaultNavigationQueue implements NavigationQueue, NavigationHandler {
60
60
  private queue;
@@ -1,23 +1,23 @@
1
1
  import { RecognizedRoute } from "./recognizer.js";
2
2
  import { Router } from "./router.js";
3
3
  /**
4
- * @alpha
4
+ * @beta
5
5
  */
6
6
  export declare type NavigationPhaseName = "navigate" | "leave" | "construct" | "enter" | "commit";
7
7
  /**
8
- * @alpha
8
+ * @beta
9
9
  */
10
10
  export declare type NavigationPhaseHook<TSettings = any> = (phase: NavigationPhase<TSettings>) => Promise<any> | any;
11
11
  /**
12
- * @alpha
12
+ * @beta
13
13
  */
14
14
  export declare type NavigationCommitPhaseHook<TSettings = any> = (phase: NavigationCommitPhase<TSettings>) => Promise<any> | any;
15
15
  /**
16
- * @alpha
16
+ * @beta
17
17
  */
18
18
  export declare type NavigationPhaseFollowupAction = () => Promise<any> | any;
19
19
  /**
20
- * @alpha
20
+ * @beta
21
21
  */
22
22
  export interface NavigationPhase<TSettings = any> {
23
23
  readonly name: NavigationPhaseName;
@@ -30,7 +30,7 @@ export interface NavigationPhase<TSettings = any> {
30
30
  evaluateContributor(contributor: any, route?: RecognizedRoute<TSettings>, router?: Router<TSettings>): Promise<void>;
31
31
  }
32
32
  /**
33
- * @alpha
33
+ * @beta
34
34
  */
35
35
  export interface NavigationCommitPhase<TSettings = any> extends Omit<NavigationPhase<TSettings>, "cancel" | "canceled" | "onCancel"> {
36
36
  setTitle(title: string): any;
@@ -20,13 +20,13 @@ declare class NavigationPhaseImpl<TSettings = any> implements NavigationCommitPh
20
20
  evaluateContributor(contributor: any, route?: RecognizedRoute<TSettings>, router?: Router): Promise<void>;
21
21
  }
22
22
  /**
23
- * @alpha
23
+ * @beta
24
24
  */
25
25
  export interface NavigationProcess {
26
26
  run(router: Router, message: NavigationMessage): Promise<void>;
27
27
  }
28
28
  /**
29
- * @alpha
29
+ * @beta
30
30
  */
31
31
  export declare class DefaultNavigationProcess<TSettings> {
32
32
  private phases;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @alpha
2
+ * @beta
3
3
  */
4
4
  export declare const QueryString: Readonly<{
5
5
  readonly current: string;
@@ -10,7 +10,7 @@ export declare const QueryString: Readonly<{
10
10
  * @param traditional - Boolean Use the old URI template standard (RFC6570)
11
11
  * @returns The generated query string, excluding leading '?'.
12
12
  */
13
- build(params: Object, traditional?: boolean | undefined): string;
13
+ build(params: Object, traditional?: boolean): string;
14
14
  /**
15
15
  * Separate the query string from the path and returns the two parts.
16
16
  * @param path - The path to separate.
@@ -1,10 +1,10 @@
1
1
  import { Route } from "./navigation.js";
2
2
  /**
3
- * @alpha
3
+ * @beta
4
4
  */
5
5
  export declare type RouteParameterConverter = (value: string | undefined) => any | Promise<any>;
6
6
  /**
7
- * @alpha
7
+ * @beta
8
8
  */
9
9
  export declare class ConfigurableRoute implements Route {
10
10
  readonly path: string;
@@ -13,7 +13,7 @@ export declare class ConfigurableRoute implements Route {
13
13
  constructor(path: string, name: string, caseSensitive: boolean);
14
14
  }
15
15
  /**
16
- * @alpha
16
+ * @beta
17
17
  */
18
18
  export declare class Endpoint<TSettings = any> {
19
19
  readonly route: ConfigurableRoute;
@@ -24,7 +24,7 @@ export declare class Endpoint<TSettings = any> {
24
24
  get path(): string;
25
25
  }
26
26
  /**
27
- * @alpha
27
+ * @beta
28
28
  */
29
29
  export declare class RecognizedRoute<TSettings = any> {
30
30
  readonly endpoint: Endpoint<TSettings>;
@@ -37,7 +37,7 @@ export declare class RecognizedRoute<TSettings = any> {
37
37
  get settings(): TSettings | null;
38
38
  }
39
39
  /**
40
- * @alpha
40
+ * @beta
41
41
  */
42
42
  export interface RouteRecognizer<TSettings> {
43
43
  add(routeOrRoutes: Route | readonly Route[], settings?: TSettings): void;
@@ -46,7 +46,7 @@ export interface RouteRecognizer<TSettings> {
46
46
  generateFromPath(path: string, params: object): string | null;
47
47
  }
48
48
  /**
49
- * @alpha
49
+ * @beta
50
50
  */
51
51
  export declare class DefaultRouteRecognizer<TSettings> implements RouteRecognizer<TSettings> {
52
52
  private names;