@microsoft/fast-router 1.0.0-alpha.26 → 1.0.0-alpha.27
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/.eslintrc.json +1 -1
- package/CHANGELOG.json +29 -0
- package/CHANGELOG.md +9 -1
- package/dist/dts/contributors.d.ts +2 -2
- package/dist/dts/phases.d.ts +4 -4
- package/dist/dts/recognizer.d.ts +1 -1
- package/dist/dts/routes.d.ts +25 -25
- package/dist/dts/view.d.ts +1 -1
- package/dist/esm/links.js +1 -1
- package/dist/esm/process.js +6 -6
- package/dist/esm/recognizer.js +12 -12
- package/dist/fast-router.api.json +33 -33
- package/package.json +2 -1
package/.eslintrc.json
CHANGED
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/fast-router",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Thu, 20 Jun 2024 17:00:56 GMT",
|
|
6
|
+
"version": "1.0.0-alpha.27",
|
|
7
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.27",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "1222863+xuwaters@users.noreply.github.com",
|
|
12
|
+
"package": "@microsoft/fast-router",
|
|
13
|
+
"commit": "a789e140aa58098c10a35c86056a7f79a660b456",
|
|
14
|
+
"comment": "fix: remove link handler in disconnect"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"none": [
|
|
18
|
+
{
|
|
19
|
+
"author": "7559015+janechu@users.noreply.github.com",
|
|
20
|
+
"package": "@microsoft/fast-router",
|
|
21
|
+
"commit": "00bccd7812ca072fc2efdf39af7762bbfdc90846",
|
|
22
|
+
"comment": "Remove eslint config package"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"author": "7559015+janechu@users.noreply.github.com",
|
|
26
|
+
"package": "@microsoft/fast-router",
|
|
27
|
+
"commit": "4b23b5caa76c172d3ea6c6559699d632a278442c",
|
|
28
|
+
"comment": "DevDependency update"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
4
33
|
{
|
|
5
34
|
"date": "Fri, 18 Aug 2023 00:04:39 GMT",
|
|
6
35
|
"tag": "@microsoft/fast-router_v1.0.0-alpha.26",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# Change Log - @microsoft/fast-router
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 20 Jun 2024 17:00:56 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.0.0-alpha.27
|
|
8
|
+
|
|
9
|
+
Thu, 20 Jun 2024 17:00:56 GMT
|
|
10
|
+
|
|
11
|
+
### Changes
|
|
12
|
+
|
|
13
|
+
- fix: remove link handler in disconnect (1222863+xuwaters@users.noreply.github.com)
|
|
14
|
+
|
|
7
15
|
## 1.0.0-alpha.26
|
|
8
16
|
|
|
9
17
|
Fri, 18 Aug 2023 00:04:39 GMT
|
|
@@ -3,7 +3,7 @@ import { NavigationCommitPhaseHook, NavigationPhaseHook, NavigationPhaseName } f
|
|
|
3
3
|
/**
|
|
4
4
|
* @beta
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type NavigationContributor<TSettings = any> = Partial<Record<Exclude<NavigationPhaseName, "commit">, NavigationPhaseHook<TSettings>>> & {
|
|
7
7
|
commit?: NavigationCommitPhaseHook<TSettings>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -13,7 +13,7 @@ export declare function isNavigationPhaseContributor<T extends NavigationPhaseNa
|
|
|
13
13
|
/**
|
|
14
14
|
* @beta
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export type ContributorOptions = {
|
|
17
17
|
lifecycle?: boolean;
|
|
18
18
|
parameters?: boolean;
|
|
19
19
|
};
|
package/dist/dts/phases.d.ts
CHANGED
|
@@ -3,19 +3,19 @@ import { Router } from "./router.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* @beta
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type NavigationPhaseName = "navigate" | "leave" | "construct" | "enter" | "commit";
|
|
7
7
|
/**
|
|
8
8
|
* @beta
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type NavigationPhaseHook<TSettings = any> = (phase: NavigationPhase<TSettings>) => Promise<any> | any;
|
|
11
11
|
/**
|
|
12
12
|
* @beta
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type NavigationCommitPhaseHook<TSettings = any> = (phase: NavigationCommitPhase<TSettings>) => Promise<any> | any;
|
|
15
15
|
/**
|
|
16
16
|
* @beta
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type NavigationPhaseFollowupAction = () => Promise<any> | any;
|
|
19
19
|
/**
|
|
20
20
|
* @beta
|
|
21
21
|
*/
|
package/dist/dts/recognizer.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface RouteParameterConverterContext<TSettings = any> {
|
|
|
11
11
|
/**
|
|
12
12
|
* @beta
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type RouteParameterConverter = (name: string, value: string | undefined, context: RouteParameterConverterContext) => any | Promise<any>;
|
|
15
15
|
/**
|
|
16
16
|
* @beta
|
|
17
17
|
*/
|
package/dist/dts/routes.d.ts
CHANGED
|
@@ -11,127 +11,127 @@ export declare const childRouteParameter = "fast-child-route";
|
|
|
11
11
|
/**
|
|
12
12
|
* @beta
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type SupportsSettings<TSettings = any> = {
|
|
15
15
|
settings?: TSettings;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* @beta
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type PathedRouteDefinition<TSettings = any> = SupportsSettings<TSettings> & Route;
|
|
21
21
|
/**
|
|
22
22
|
* @beta
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export type IgnorableRouteDefinition<TSettings = any> = PathedRouteDefinition<TSettings>;
|
|
25
25
|
/**
|
|
26
26
|
* @beta
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export type LayoutAndTransitionRouteDefinition = {
|
|
29
29
|
layout?: Layout | ViewTemplate;
|
|
30
30
|
transition?: Transition;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* @beta
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export type RedirectRouteDefinition<TSettings = any> = PathedRouteDefinition<TSettings> & {
|
|
36
36
|
redirect: string;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
39
|
* @beta
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export type HasTitle = {
|
|
42
42
|
title?: string;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* @beta
|
|
46
46
|
*/
|
|
47
|
-
export
|
|
47
|
+
export type NavigableRouteDefinition<TSettings = any> = PathedRouteDefinition<TSettings> & LayoutAndTransitionRouteDefinition & HasTitle & {
|
|
48
48
|
childRouters?: boolean;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* @beta
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export type FASTElementConstructor = new () => FASTElement;
|
|
54
54
|
/**
|
|
55
55
|
* @beta
|
|
56
56
|
*/
|
|
57
|
-
export
|
|
57
|
+
export type HasElement = {
|
|
58
58
|
element: string | FASTElementConstructor | HTMLElement | (() => Promise<string | FASTElementConstructor | HTMLElement>);
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* @beta
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type ElementFallbackRouteDefinition<TSettings = any> = LayoutAndTransitionRouteDefinition & HasElement & SupportsSettings<TSettings> & HasTitle;
|
|
64
64
|
/**
|
|
65
65
|
* @beta
|
|
66
66
|
*/
|
|
67
|
-
export
|
|
67
|
+
export type ElementRouteDefinition<TSettings = any> = NavigableRouteDefinition<TSettings> & HasElement;
|
|
68
68
|
/**
|
|
69
69
|
* @beta
|
|
70
70
|
*/
|
|
71
|
-
export
|
|
71
|
+
export type HasTemplate = {
|
|
72
72
|
template: ViewTemplate | (() => Promise<ViewTemplate>);
|
|
73
73
|
};
|
|
74
74
|
/**
|
|
75
75
|
* @beta
|
|
76
76
|
*/
|
|
77
|
-
export
|
|
77
|
+
export type TemplateFallbackRouteDefinition<TSettings = any> = LayoutAndTransitionRouteDefinition & HasTemplate & SupportsSettings<TSettings> & HasTitle;
|
|
78
78
|
/**
|
|
79
79
|
* @beta
|
|
80
80
|
*/
|
|
81
|
-
export
|
|
81
|
+
export type TemplateRouteDefinition<TSettings = any> = NavigableRouteDefinition<TSettings> & HasTemplate;
|
|
82
82
|
/**
|
|
83
83
|
* @beta
|
|
84
84
|
*/
|
|
85
|
-
export
|
|
85
|
+
export type HasCommand = {
|
|
86
86
|
command: NavigationCommand;
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* @beta
|
|
90
90
|
*/
|
|
91
|
-
export
|
|
91
|
+
export type CommandRouteDefinition<TSettings = any> = PathedRouteDefinition<TSettings> & HasCommand & HasTitle;
|
|
92
92
|
/**
|
|
93
93
|
* @beta
|
|
94
94
|
*/
|
|
95
|
-
export
|
|
95
|
+
export type CommandFallbackRouteDefinition<TSettings = any> = HasCommand & SupportsSettings<TSettings> & HasTitle;
|
|
96
96
|
/**
|
|
97
97
|
* @beta
|
|
98
98
|
*/
|
|
99
|
-
export
|
|
99
|
+
export type FallbackRouteDefinition<TSettings = any> = ElementFallbackRouteDefinition<TSettings> | TemplateFallbackRouteDefinition<TSettings> | Pick<RedirectRouteDefinition<TSettings>, "redirect"> | CommandFallbackRouteDefinition<TSettings>;
|
|
100
100
|
/**
|
|
101
101
|
* @beta
|
|
102
102
|
*/
|
|
103
|
-
export
|
|
103
|
+
export type DefinitionCallback = () => Promise<FallbackRouteDefinition> | FallbackRouteDefinition;
|
|
104
104
|
/**
|
|
105
105
|
* @beta
|
|
106
106
|
*/
|
|
107
|
-
export
|
|
107
|
+
export type RenderableRouteDefinition<TSettings = any> = ElementRouteDefinition<TSettings> | TemplateRouteDefinition<TSettings>;
|
|
108
108
|
/**
|
|
109
109
|
* @beta
|
|
110
110
|
*/
|
|
111
|
-
export
|
|
111
|
+
export type MappableRouteDefinition<TSettings = any> = RenderableRouteDefinition<TSettings> | RedirectRouteDefinition<TSettings> | CommandRouteDefinition<TSettings> | ParentRouteDefinition<TSettings>;
|
|
112
112
|
/**
|
|
113
113
|
* @beta
|
|
114
114
|
*/
|
|
115
|
-
export
|
|
115
|
+
export type ParentRouteDefinition<TSettings = any> = PathedRouteDefinition<TSettings> & LayoutAndTransitionRouteDefinition & {
|
|
116
116
|
children: MappableRouteDefinition<TSettings>[];
|
|
117
117
|
};
|
|
118
118
|
/**
|
|
119
119
|
* @beta
|
|
120
120
|
*/
|
|
121
|
-
export
|
|
121
|
+
export type RouteMatch<TSettings = any> = {
|
|
122
122
|
route: RecognizedRoute<TSettings>;
|
|
123
123
|
command: NavigationCommand;
|
|
124
124
|
};
|
|
125
125
|
/**
|
|
126
126
|
* @beta
|
|
127
127
|
*/
|
|
128
|
-
export
|
|
128
|
+
export type RouteParameterConverterObject = {
|
|
129
129
|
convert: RouteParameterConverter;
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
132
132
|
* @beta
|
|
133
133
|
*/
|
|
134
|
-
export
|
|
134
|
+
export type ParameterConverter = RouteParameterConverter | RouteParameterConverterObject | Constructable<RouteParameterConverterObject>;
|
|
135
135
|
/**
|
|
136
136
|
* @beta
|
|
137
137
|
*/
|
package/dist/dts/view.d.ts
CHANGED
package/dist/esm/links.js
CHANGED
|
@@ -16,7 +16,7 @@ export class DefaultLinkHandler {
|
|
|
16
16
|
window.addEventListener("click", this.handler, true);
|
|
17
17
|
}
|
|
18
18
|
disconnect() {
|
|
19
|
-
window.removeEventListener("click", this.handler);
|
|
19
|
+
window.removeEventListener("click", this.handler, true);
|
|
20
20
|
}
|
|
21
21
|
getEventInfo(event) {
|
|
22
22
|
const info = {
|
package/dist/esm/process.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import { isNavigationPhaseContributor } from "./contributors.js";
|
|
3
3
|
class NavigationPhaseImpl {
|
|
4
|
+
get route() {
|
|
5
|
+
return this.routes[this.routes.length - 1];
|
|
6
|
+
}
|
|
7
|
+
get router() {
|
|
8
|
+
return this.routers[this.routers.length - 1];
|
|
9
|
+
}
|
|
4
10
|
constructor(name, route, router, commitActions, cancelActions) {
|
|
5
11
|
this.name = name;
|
|
6
12
|
this.commitActions = commitActions;
|
|
@@ -12,12 +18,6 @@ class NavigationPhaseImpl {
|
|
|
12
18
|
this.routes.push(route);
|
|
13
19
|
this.routers.push(router);
|
|
14
20
|
}
|
|
15
|
-
get route() {
|
|
16
|
-
return this.routes[this.routes.length - 1];
|
|
17
|
-
}
|
|
18
|
-
get router() {
|
|
19
|
-
return this.routers[this.routers.length - 1];
|
|
20
|
-
}
|
|
21
21
|
cancel(callback) {
|
|
22
22
|
this.canceled = true;
|
|
23
23
|
if (callback) {
|
package/dist/esm/recognizer.js
CHANGED
|
@@ -249,13 +249,13 @@ function compareChains(a, b) {
|
|
|
249
249
|
return a.compareTo(b);
|
|
250
250
|
}
|
|
251
251
|
class RecognizeResult {
|
|
252
|
+
get isEmpty() {
|
|
253
|
+
return this.candidates.length === 0;
|
|
254
|
+
}
|
|
252
255
|
constructor(rootState) {
|
|
253
256
|
this.candidates = [];
|
|
254
257
|
this.candidates = [new Candidate([""], [rootState], [], this)];
|
|
255
258
|
}
|
|
256
|
-
get isEmpty() {
|
|
257
|
-
return this.candidates.length === 0;
|
|
258
|
-
}
|
|
259
259
|
getSolution() {
|
|
260
260
|
const candidates = this.candidates.filter(hasEndpoint);
|
|
261
261
|
if (candidates.length === 0) {
|
|
@@ -539,13 +539,13 @@ function isNotEmpty(segment) {
|
|
|
539
539
|
return segment.length > 0;
|
|
540
540
|
}
|
|
541
541
|
class StaticSegment {
|
|
542
|
+
get kind() {
|
|
543
|
+
return 3 /* SegmentKind.static */;
|
|
544
|
+
}
|
|
542
545
|
constructor(value, caseSensitive) {
|
|
543
546
|
this.value = value;
|
|
544
547
|
this.caseSensitive = caseSensitive;
|
|
545
548
|
}
|
|
546
|
-
get kind() {
|
|
547
|
-
return 3 /* SegmentKind.static */;
|
|
548
|
-
}
|
|
549
549
|
appendTo(state) {
|
|
550
550
|
const { value, value: { length }, } = this;
|
|
551
551
|
if (this.caseSensitive) {
|
|
@@ -573,13 +573,13 @@ class StaticSegment {
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
class DynamicSegment {
|
|
576
|
+
get kind() {
|
|
577
|
+
return 2 /* SegmentKind.dynamic */;
|
|
578
|
+
}
|
|
576
579
|
constructor(name, optional) {
|
|
577
580
|
this.name = name;
|
|
578
581
|
this.optional = optional;
|
|
579
582
|
}
|
|
580
|
-
get kind() {
|
|
581
|
-
return 2 /* SegmentKind.dynamic */;
|
|
582
|
-
}
|
|
583
583
|
appendTo(state) {
|
|
584
584
|
state = state.append(/* segment */ this, /* value */ "/");
|
|
585
585
|
return state;
|
|
@@ -595,12 +595,12 @@ class DynamicSegment {
|
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
class StarSegment {
|
|
598
|
-
constructor(name) {
|
|
599
|
-
this.name = name;
|
|
600
|
-
}
|
|
601
598
|
get kind() {
|
|
602
599
|
return 1 /* SegmentKind.star */;
|
|
603
600
|
}
|
|
601
|
+
constructor(name) {
|
|
602
|
+
this.name = name;
|
|
603
|
+
}
|
|
604
604
|
appendTo(state) {
|
|
605
605
|
state = state.append(/* segment */ this, /* value */ "");
|
|
606
606
|
return state;
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"excerptTokens": [
|
|
140
140
|
{
|
|
141
141
|
"kind": "Content",
|
|
142
|
-
"text": "export
|
|
142
|
+
"text": "export type CommandFallbackRouteDefinition<TSettings = "
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"kind": "Content",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"excerptTokens": [
|
|
205
205
|
{
|
|
206
206
|
"kind": "Content",
|
|
207
|
-
"text": "export
|
|
207
|
+
"text": "export type CommandRouteDefinition<TSettings = "
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"kind": "Content",
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
"excerptTokens": [
|
|
444
444
|
{
|
|
445
445
|
"kind": "Content",
|
|
446
|
-
"text": "export
|
|
446
|
+
"text": "export type ContributorOptions = "
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
449
|
"kind": "Content",
|
|
@@ -1775,7 +1775,7 @@
|
|
|
1775
1775
|
"excerptTokens": [
|
|
1776
1776
|
{
|
|
1777
1777
|
"kind": "Content",
|
|
1778
|
-
"text": "export
|
|
1778
|
+
"text": "export type DefinitionCallback = "
|
|
1779
1779
|
},
|
|
1780
1780
|
{
|
|
1781
1781
|
"kind": "Content",
|
|
@@ -1823,7 +1823,7 @@
|
|
|
1823
1823
|
"excerptTokens": [
|
|
1824
1824
|
{
|
|
1825
1825
|
"kind": "Content",
|
|
1826
|
-
"text": "export
|
|
1826
|
+
"text": "export type ElementFallbackRouteDefinition<TSettings = "
|
|
1827
1827
|
},
|
|
1828
1828
|
{
|
|
1829
1829
|
"kind": "Content",
|
|
@@ -1897,7 +1897,7 @@
|
|
|
1897
1897
|
"excerptTokens": [
|
|
1898
1898
|
{
|
|
1899
1899
|
"kind": "Content",
|
|
1900
|
-
"text": "export
|
|
1900
|
+
"text": "export type ElementRouteDefinition<TSettings = "
|
|
1901
1901
|
},
|
|
1902
1902
|
{
|
|
1903
1903
|
"kind": "Content",
|
|
@@ -2206,7 +2206,7 @@
|
|
|
2206
2206
|
"excerptTokens": [
|
|
2207
2207
|
{
|
|
2208
2208
|
"kind": "Content",
|
|
2209
|
-
"text": "export
|
|
2209
|
+
"text": "export type FallbackRouteDefinition<TSettings = "
|
|
2210
2210
|
},
|
|
2211
2211
|
{
|
|
2212
2212
|
"kind": "Content",
|
|
@@ -2293,7 +2293,7 @@
|
|
|
2293
2293
|
"excerptTokens": [
|
|
2294
2294
|
{
|
|
2295
2295
|
"kind": "Content",
|
|
2296
|
-
"text": "export
|
|
2296
|
+
"text": "export type FASTElementConstructor = "
|
|
2297
2297
|
},
|
|
2298
2298
|
{
|
|
2299
2299
|
"kind": "Content",
|
|
@@ -2567,7 +2567,7 @@
|
|
|
2567
2567
|
"excerptTokens": [
|
|
2568
2568
|
{
|
|
2569
2569
|
"kind": "Content",
|
|
2570
|
-
"text": "export
|
|
2570
|
+
"text": "export type HasCommand = "
|
|
2571
2571
|
},
|
|
2572
2572
|
{
|
|
2573
2573
|
"kind": "Content",
|
|
@@ -2601,7 +2601,7 @@
|
|
|
2601
2601
|
"excerptTokens": [
|
|
2602
2602
|
{
|
|
2603
2603
|
"kind": "Content",
|
|
2604
|
-
"text": "export
|
|
2604
|
+
"text": "export type HasElement = "
|
|
2605
2605
|
},
|
|
2606
2606
|
{
|
|
2607
2607
|
"kind": "Content",
|
|
@@ -2671,7 +2671,7 @@
|
|
|
2671
2671
|
"excerptTokens": [
|
|
2672
2672
|
{
|
|
2673
2673
|
"kind": "Content",
|
|
2674
|
-
"text": "export
|
|
2674
|
+
"text": "export type HasTemplate = "
|
|
2675
2675
|
},
|
|
2676
2676
|
{
|
|
2677
2677
|
"kind": "Content",
|
|
@@ -2723,7 +2723,7 @@
|
|
|
2723
2723
|
"excerptTokens": [
|
|
2724
2724
|
{
|
|
2725
2725
|
"kind": "Content",
|
|
2726
|
-
"text": "export
|
|
2726
|
+
"text": "export type HasTitle = "
|
|
2727
2727
|
},
|
|
2728
2728
|
{
|
|
2729
2729
|
"kind": "Content",
|
|
@@ -2748,7 +2748,7 @@
|
|
|
2748
2748
|
"excerptTokens": [
|
|
2749
2749
|
{
|
|
2750
2750
|
"kind": "Content",
|
|
2751
|
-
"text": "export
|
|
2751
|
+
"text": "export type IgnorableRouteDefinition<TSettings = "
|
|
2752
2752
|
},
|
|
2753
2753
|
{
|
|
2754
2754
|
"kind": "Content",
|
|
@@ -3212,7 +3212,7 @@
|
|
|
3212
3212
|
"excerptTokens": [
|
|
3213
3213
|
{
|
|
3214
3214
|
"kind": "Content",
|
|
3215
|
-
"text": "export
|
|
3215
|
+
"text": "export type LayoutAndTransitionRouteDefinition = "
|
|
3216
3216
|
},
|
|
3217
3217
|
{
|
|
3218
3218
|
"kind": "Content",
|
|
@@ -3336,7 +3336,7 @@
|
|
|
3336
3336
|
"excerptTokens": [
|
|
3337
3337
|
{
|
|
3338
3338
|
"kind": "Content",
|
|
3339
|
-
"text": "export
|
|
3339
|
+
"text": "export type MappableRouteDefinition<TSettings = "
|
|
3340
3340
|
},
|
|
3341
3341
|
{
|
|
3342
3342
|
"kind": "Content",
|
|
@@ -3414,7 +3414,7 @@
|
|
|
3414
3414
|
"excerptTokens": [
|
|
3415
3415
|
{
|
|
3416
3416
|
"kind": "Content",
|
|
3417
|
-
"text": "export
|
|
3417
|
+
"text": "export type NavigableRouteDefinition<TSettings = "
|
|
3418
3418
|
},
|
|
3419
3419
|
{
|
|
3420
3420
|
"kind": "Content",
|
|
@@ -3681,7 +3681,7 @@
|
|
|
3681
3681
|
"excerptTokens": [
|
|
3682
3682
|
{
|
|
3683
3683
|
"kind": "Content",
|
|
3684
|
-
"text": "export
|
|
3684
|
+
"text": "export type NavigationCommitPhaseHook<TSettings = "
|
|
3685
3685
|
},
|
|
3686
3686
|
{
|
|
3687
3687
|
"kind": "Content",
|
|
@@ -3791,7 +3791,7 @@
|
|
|
3791
3791
|
"excerptTokens": [
|
|
3792
3792
|
{
|
|
3793
3793
|
"kind": "Content",
|
|
3794
|
-
"text": "export
|
|
3794
|
+
"text": "export type NavigationContributor<TSettings = "
|
|
3795
3795
|
},
|
|
3796
3796
|
{
|
|
3797
3797
|
"kind": "Content",
|
|
@@ -4449,7 +4449,7 @@
|
|
|
4449
4449
|
"excerptTokens": [
|
|
4450
4450
|
{
|
|
4451
4451
|
"kind": "Content",
|
|
4452
|
-
"text": "export
|
|
4452
|
+
"text": "export type NavigationPhaseFollowupAction = "
|
|
4453
4453
|
},
|
|
4454
4454
|
{
|
|
4455
4455
|
"kind": "Content",
|
|
@@ -4483,7 +4483,7 @@
|
|
|
4483
4483
|
"excerptTokens": [
|
|
4484
4484
|
{
|
|
4485
4485
|
"kind": "Content",
|
|
4486
|
-
"text": "export
|
|
4486
|
+
"text": "export type NavigationPhaseHook<TSettings = "
|
|
4487
4487
|
},
|
|
4488
4488
|
{
|
|
4489
4489
|
"kind": "Content",
|
|
@@ -4547,7 +4547,7 @@
|
|
|
4547
4547
|
"excerptTokens": [
|
|
4548
4548
|
{
|
|
4549
4549
|
"kind": "Content",
|
|
4550
|
-
"text": "export
|
|
4550
|
+
"text": "export type NavigationPhaseName = "
|
|
4551
4551
|
},
|
|
4552
4552
|
{
|
|
4553
4553
|
"kind": "Content",
|
|
@@ -4770,7 +4770,7 @@
|
|
|
4770
4770
|
"excerptTokens": [
|
|
4771
4771
|
{
|
|
4772
4772
|
"kind": "Content",
|
|
4773
|
-
"text": "export
|
|
4773
|
+
"text": "export type ParameterConverter = "
|
|
4774
4774
|
},
|
|
4775
4775
|
{
|
|
4776
4776
|
"kind": "Reference",
|
|
@@ -4827,7 +4827,7 @@
|
|
|
4827
4827
|
"excerptTokens": [
|
|
4828
4828
|
{
|
|
4829
4829
|
"kind": "Content",
|
|
4830
|
-
"text": "export
|
|
4830
|
+
"text": "export type ParentRouteDefinition<TSettings = "
|
|
4831
4831
|
},
|
|
4832
4832
|
{
|
|
4833
4833
|
"kind": "Content",
|
|
@@ -4896,7 +4896,7 @@
|
|
|
4896
4896
|
"excerptTokens": [
|
|
4897
4897
|
{
|
|
4898
4898
|
"kind": "Content",
|
|
4899
|
-
"text": "export
|
|
4899
|
+
"text": "export type PathedRouteDefinition<TSettings = "
|
|
4900
4900
|
},
|
|
4901
4901
|
{
|
|
4902
4902
|
"kind": "Content",
|
|
@@ -5554,7 +5554,7 @@
|
|
|
5554
5554
|
"excerptTokens": [
|
|
5555
5555
|
{
|
|
5556
5556
|
"kind": "Content",
|
|
5557
|
-
"text": "export
|
|
5557
|
+
"text": "export type RedirectRouteDefinition<TSettings = "
|
|
5558
5558
|
},
|
|
5559
5559
|
{
|
|
5560
5560
|
"kind": "Content",
|
|
@@ -6025,7 +6025,7 @@
|
|
|
6025
6025
|
"excerptTokens": [
|
|
6026
6026
|
{
|
|
6027
6027
|
"kind": "Content",
|
|
6028
|
-
"text": "export
|
|
6028
|
+
"text": "export type RenderableRouteDefinition<TSettings = "
|
|
6029
6029
|
},
|
|
6030
6030
|
{
|
|
6031
6031
|
"kind": "Content",
|
|
@@ -7085,7 +7085,7 @@
|
|
|
7085
7085
|
"excerptTokens": [
|
|
7086
7086
|
{
|
|
7087
7087
|
"kind": "Content",
|
|
7088
|
-
"text": "export
|
|
7088
|
+
"text": "export type RouteMatch<TSettings = "
|
|
7089
7089
|
},
|
|
7090
7090
|
{
|
|
7091
7091
|
"kind": "Content",
|
|
@@ -7149,7 +7149,7 @@
|
|
|
7149
7149
|
"excerptTokens": [
|
|
7150
7150
|
{
|
|
7151
7151
|
"kind": "Content",
|
|
7152
|
-
"text": "export
|
|
7152
|
+
"text": "export type RouteParameterConverter = "
|
|
7153
7153
|
},
|
|
7154
7154
|
{
|
|
7155
7155
|
"kind": "Content",
|
|
@@ -7362,7 +7362,7 @@
|
|
|
7362
7362
|
"excerptTokens": [
|
|
7363
7363
|
{
|
|
7364
7364
|
"kind": "Content",
|
|
7365
|
-
"text": "export
|
|
7365
|
+
"text": "export type RouteParameterConverterObject = "
|
|
7366
7366
|
},
|
|
7367
7367
|
{
|
|
7368
7368
|
"kind": "Content",
|
|
@@ -9271,7 +9271,7 @@
|
|
|
9271
9271
|
"excerptTokens": [
|
|
9272
9272
|
{
|
|
9273
9273
|
"kind": "Content",
|
|
9274
|
-
"text": "export
|
|
9274
|
+
"text": "export type RouterExecutionContext = "
|
|
9275
9275
|
},
|
|
9276
9276
|
{
|
|
9277
9277
|
"kind": "Reference",
|
|
@@ -9486,7 +9486,7 @@
|
|
|
9486
9486
|
"excerptTokens": [
|
|
9487
9487
|
{
|
|
9488
9488
|
"kind": "Content",
|
|
9489
|
-
"text": "export
|
|
9489
|
+
"text": "export type SupportsSettings<TSettings = "
|
|
9490
9490
|
},
|
|
9491
9491
|
{
|
|
9492
9492
|
"kind": "Content",
|
|
@@ -9532,7 +9532,7 @@
|
|
|
9532
9532
|
"excerptTokens": [
|
|
9533
9533
|
{
|
|
9534
9534
|
"kind": "Content",
|
|
9535
|
-
"text": "export
|
|
9535
|
+
"text": "export type TemplateFallbackRouteDefinition<TSettings = "
|
|
9536
9536
|
},
|
|
9537
9537
|
{
|
|
9538
9538
|
"kind": "Content",
|
|
@@ -9606,7 +9606,7 @@
|
|
|
9606
9606
|
"excerptTokens": [
|
|
9607
9607
|
{
|
|
9608
9608
|
"kind": "Content",
|
|
9609
|
-
"text": "export
|
|
9609
|
+
"text": "export type TemplateRouteDefinition<TSettings = "
|
|
9610
9610
|
},
|
|
9611
9611
|
{
|
|
9612
9612
|
"kind": "Content",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@microsoft/fast-router",
|
|
3
3
|
"description": "A web-components-based router.",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "1.0.0-alpha.
|
|
5
|
+
"version": "1.0.0-alpha.27",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft",
|
|
8
8
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"ts-loader": "^7.0.2",
|
|
76
76
|
"ts-node": "^8.9.1",
|
|
77
77
|
"tsconfig-paths": "^3.9.0",
|
|
78
|
+
"tslib": "^2.4.0",
|
|
78
79
|
"typescript": "^4.7.0",
|
|
79
80
|
"webpack": "^5.72.0",
|
|
80
81
|
"webpack-cli": "^4.9.2"
|