@microsoft/fast-router 1.0.0-alpha.2 → 1.0.0-alpha.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/CHANGELOG.json +323 -0
- package/CHANGELOG.md +158 -1
- package/dist/dts/contributors.d.ts +10 -12
- package/dist/dts/phases.d.ts +1 -1
- package/dist/dts/query-string.d.ts +1 -1
- package/dist/dts/recognizer.d.ts +10 -1
- package/dist/dts/router.d.ts +2 -2
- package/dist/dts/routes.d.ts +2 -2
- package/dist/dts/view.d.ts +4 -9
- package/dist/esm/commands.js +5 -4
- package/dist/esm/contributors.js +18 -14
- package/dist/esm/recognizer.js +13 -6
- package/dist/esm/router.js +17 -10
- package/dist/esm/routes.js +8 -8
- package/dist/esm/view.js +6 -24
- package/dist/fast-router.api.json +255 -101
- package/dist/fast-router.d.ts +39 -36
- package/dist/fast-router.untrimmed.d.ts +39 -36
- package/docs/api-report.md +31 -22
- package/package.json +4 -4
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,329 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/fast-router",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Tue, 14 Feb 2023 04:02:36 GMT",
|
|
6
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.21",
|
|
7
|
+
"version": "1.0.0-alpha.21",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@microsoft/fast-router",
|
|
13
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.21",
|
|
14
|
+
"commit": "e504d092f81623e6332fa8cdf72ce9114e6c842e"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 11 Jan 2023 22:07:44 GMT",
|
|
21
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.20",
|
|
22
|
+
"version": "1.0.0-alpha.20",
|
|
23
|
+
"comments": {
|
|
24
|
+
"prerelease": [
|
|
25
|
+
{
|
|
26
|
+
"author": "roeisenb@microsoft.com",
|
|
27
|
+
"package": "@microsoft/fast-router",
|
|
28
|
+
"commit": "26fdb6b0dd0eafab1c4cb2769b7e7aaa24c673c9",
|
|
29
|
+
"comment": "fix: router cannot render component and has missing types"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "roeisenb@microsoft.com",
|
|
33
|
+
"package": "@microsoft/fast-router",
|
|
34
|
+
"commit": "5c3b2f0431ae8f840d3dc778ff93be73b585c6e2",
|
|
35
|
+
"comment": "fix(fast-router): update to use html.partial"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@microsoft/fast-router",
|
|
40
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.20",
|
|
41
|
+
"commit": "2bb85c931a84d4de3a8b61d6f26f89f2d9a525f6"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"date": "Fri, 02 Dec 2022 01:18:22 GMT",
|
|
48
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.19",
|
|
49
|
+
"version": "1.0.0-alpha.19",
|
|
50
|
+
"comments": {
|
|
51
|
+
"prerelease": [
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@microsoft/fast-router",
|
|
55
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.19",
|
|
56
|
+
"commit": "040867e9a2a9e0ae25b78dfb3265fbe8f60fe023"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"date": "Tue, 15 Nov 2022 02:40:35 GMT",
|
|
63
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.18",
|
|
64
|
+
"version": "1.0.0-alpha.18",
|
|
65
|
+
"comments": {
|
|
66
|
+
"prerelease": [
|
|
67
|
+
{
|
|
68
|
+
"author": "roeisenb@microsoft.com",
|
|
69
|
+
"package": "@microsoft/fast-router",
|
|
70
|
+
"commit": "3c14603089495a7af8ed5b55122c418b47c45fd5",
|
|
71
|
+
"comment": "feat: add new DOM Policy protection throughout"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@microsoft/fast-router",
|
|
76
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.18",
|
|
77
|
+
"commit": "416dc9167e9d41e6ffe11d87ed79b2f455357923"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"date": "Tue, 01 Nov 2022 23:26:26 GMT",
|
|
84
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.17",
|
|
85
|
+
"version": "1.0.0-alpha.17",
|
|
86
|
+
"comments": {
|
|
87
|
+
"prerelease": [
|
|
88
|
+
{
|
|
89
|
+
"author": "beachball",
|
|
90
|
+
"package": "@microsoft/fast-router",
|
|
91
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.17",
|
|
92
|
+
"commit": "32d18d0900047899d1dadfe94f7923b6164b0cf3"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"date": "Fri, 28 Oct 2022 20:44:44 GMT",
|
|
99
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.16",
|
|
100
|
+
"version": "1.0.0-alpha.16",
|
|
101
|
+
"comments": {
|
|
102
|
+
"prerelease": [
|
|
103
|
+
{
|
|
104
|
+
"author": "beachball",
|
|
105
|
+
"package": "@microsoft/fast-router",
|
|
106
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.16",
|
|
107
|
+
"commit": "5b745b1fb3bf249a7a2d172b7fb69cb08694aadd"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"date": "Tue, 25 Oct 2022 20:24:32 GMT",
|
|
114
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.15",
|
|
115
|
+
"version": "1.0.0-alpha.15",
|
|
116
|
+
"comments": {
|
|
117
|
+
"prerelease": [
|
|
118
|
+
{
|
|
119
|
+
"author": "beachball",
|
|
120
|
+
"package": "@microsoft/fast-router",
|
|
121
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.15",
|
|
122
|
+
"commit": "220cc7e0e0de490e51cc8b6f42ff46b03228beaa"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"date": "Fri, 14 Oct 2022 18:26:11 GMT",
|
|
129
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.14",
|
|
130
|
+
"version": "1.0.0-alpha.14",
|
|
131
|
+
"comments": {
|
|
132
|
+
"prerelease": [
|
|
133
|
+
{
|
|
134
|
+
"author": "beachball",
|
|
135
|
+
"package": "@microsoft/fast-router",
|
|
136
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.14",
|
|
137
|
+
"commit": "bcfbcb5be4433fb1fb0fab1697f13d345980db87"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"date": "Mon, 10 Oct 2022 20:28:02 GMT",
|
|
144
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.13",
|
|
145
|
+
"version": "1.0.0-alpha.13",
|
|
146
|
+
"comments": {
|
|
147
|
+
"prerelease": [
|
|
148
|
+
{
|
|
149
|
+
"author": "beachball",
|
|
150
|
+
"package": "@microsoft/fast-router",
|
|
151
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.13",
|
|
152
|
+
"commit": "ed2977ef6556964e68ea3ab0e4951320a1527baf"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"date": "Thu, 06 Oct 2022 23:21:20 GMT",
|
|
159
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.12",
|
|
160
|
+
"version": "1.0.0-alpha.12",
|
|
161
|
+
"comments": {
|
|
162
|
+
"none": [
|
|
163
|
+
{
|
|
164
|
+
"author": "863023+radium-v@users.noreply.github.com",
|
|
165
|
+
"package": "@microsoft/fast-router",
|
|
166
|
+
"commit": "c06e32d72d518bf5c3152efe4e666f233190b445",
|
|
167
|
+
"comment": "upgrade karma to ^6.4.1"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"prerelease": [
|
|
171
|
+
{
|
|
172
|
+
"author": "beachball",
|
|
173
|
+
"package": "@microsoft/fast-router",
|
|
174
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.12",
|
|
175
|
+
"commit": "a69c2e3c0700918fef5ba934909781cc8ab71384"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"date": "Wed, 05 Oct 2022 23:26:01 GMT",
|
|
182
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.11",
|
|
183
|
+
"version": "1.0.0-alpha.11",
|
|
184
|
+
"comments": {
|
|
185
|
+
"prerelease": [
|
|
186
|
+
{
|
|
187
|
+
"author": "beachball",
|
|
188
|
+
"package": "@microsoft/fast-router",
|
|
189
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.11",
|
|
190
|
+
"commit": "21d1de94be2b9399ddc43a2b93c6483fa7304591"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"date": "Mon, 03 Oct 2022 23:44:38 GMT",
|
|
197
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.10",
|
|
198
|
+
"version": "1.0.0-alpha.10",
|
|
199
|
+
"comments": {
|
|
200
|
+
"prerelease": [
|
|
201
|
+
{
|
|
202
|
+
"author": "beachball",
|
|
203
|
+
"package": "@microsoft/fast-router",
|
|
204
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.10",
|
|
205
|
+
"commit": "e23f4375f183f0672f9aeafd0e58411adb66ae90"
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"date": "Wed, 28 Sep 2022 20:45:51 GMT",
|
|
212
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.9",
|
|
213
|
+
"version": "1.0.0-alpha.9",
|
|
214
|
+
"comments": {
|
|
215
|
+
"prerelease": [
|
|
216
|
+
{
|
|
217
|
+
"author": "beachball",
|
|
218
|
+
"package": "@microsoft/fast-router",
|
|
219
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.9",
|
|
220
|
+
"commit": "08fab33015853b7f820fdfdac2aecddfeb31843f"
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"date": "Tue, 27 Sep 2022 22:31:52 GMT",
|
|
227
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.8",
|
|
228
|
+
"version": "1.0.0-alpha.8",
|
|
229
|
+
"comments": {
|
|
230
|
+
"prerelease": [
|
|
231
|
+
{
|
|
232
|
+
"author": "beachball",
|
|
233
|
+
"package": "@microsoft/fast-router",
|
|
234
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.8",
|
|
235
|
+
"commit": "8834c6732c727d39f92f72b197388453a9c17f9b"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"date": "Fri, 23 Sep 2022 22:53:27 GMT",
|
|
242
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.7",
|
|
243
|
+
"version": "1.0.0-alpha.7",
|
|
244
|
+
"comments": {
|
|
245
|
+
"prerelease": [
|
|
246
|
+
{
|
|
247
|
+
"author": "roeisenb@microsoft.com",
|
|
248
|
+
"package": "@microsoft/fast-router",
|
|
249
|
+
"commit": "2edd63a8abe24c68cfc7c76d773c912c6f2d6543",
|
|
250
|
+
"comment": "fix: update router to use the new behavior API"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"author": "beachball",
|
|
254
|
+
"package": "@microsoft/fast-router",
|
|
255
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.7",
|
|
256
|
+
"commit": "1646b26450a08a77c8bd6302560fe12cc6989ae1"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"date": "Thu, 01 Sep 2022 21:53:34 GMT",
|
|
263
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.6",
|
|
264
|
+
"version": "1.0.0-alpha.6",
|
|
265
|
+
"comments": {
|
|
266
|
+
"prerelease": [
|
|
267
|
+
{
|
|
268
|
+
"author": "beachball",
|
|
269
|
+
"package": "@microsoft/fast-router",
|
|
270
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.6",
|
|
271
|
+
"commit": "6b0f08574475d8b28cc2df67bf72b9041c2ad285"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"date": "Thu, 18 Aug 2022 20:46:10 GMT",
|
|
278
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.5",
|
|
279
|
+
"version": "1.0.0-alpha.5",
|
|
280
|
+
"comments": {
|
|
281
|
+
"prerelease": [
|
|
282
|
+
{
|
|
283
|
+
"author": "beachball",
|
|
284
|
+
"package": "@microsoft/fast-router",
|
|
285
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.5",
|
|
286
|
+
"commit": "0b57f1bc812e8e6371b7d27bb625f99a25bfaa66"
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"date": "Mon, 18 Jul 2022 21:10:01 GMT",
|
|
293
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.4",
|
|
294
|
+
"version": "1.0.0-alpha.4",
|
|
295
|
+
"comments": {
|
|
296
|
+
"prerelease": [
|
|
297
|
+
{
|
|
298
|
+
"author": "roeisenb@microsoft.com",
|
|
299
|
+
"package": "@microsoft/fast-router",
|
|
300
|
+
"commit": "f164aa75e62ed71c9386902051c021f1fdfba364",
|
|
301
|
+
"comment": "refactor: reduce duplication in style normalization code scenarios"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"author": "beachball",
|
|
305
|
+
"package": "@microsoft/fast-router",
|
|
306
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.4",
|
|
307
|
+
"commit": "2ff46a32cdd9af12b236d0e2f3436a4de782e8ee"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"date": "Wed, 22 Jun 2022 20:17:50 GMT",
|
|
314
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.3",
|
|
315
|
+
"version": "1.0.0-alpha.3",
|
|
316
|
+
"comments": {
|
|
317
|
+
"prerelease": [
|
|
318
|
+
{
|
|
319
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.3",
|
|
320
|
+
"author": "nicholasrice@users.noreply.github.com",
|
|
321
|
+
"commit": "f28cdb9fdba9cb27904acfad7444de82d447f39e",
|
|
322
|
+
"package": "@microsoft/fast-router"
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
4
327
|
{
|
|
5
328
|
"date": "Wed, 15 Jun 2022 17:41:10 GMT",
|
|
6
329
|
"tag": "@microsoft/fast-router_v1.0.0-alpha.2",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,166 @@
|
|
|
1
1
|
# Change Log - @microsoft/fast-router
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 14 Feb 2023 04:02:36 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.0.0-alpha.21
|
|
8
|
+
|
|
9
|
+
Tue, 14 Feb 2023 04:02:36 GMT
|
|
10
|
+
|
|
11
|
+
### Changes
|
|
12
|
+
|
|
13
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.21
|
|
14
|
+
|
|
15
|
+
## 1.0.0-alpha.20
|
|
16
|
+
|
|
17
|
+
Wed, 11 Jan 2023 22:07:44 GMT
|
|
18
|
+
|
|
19
|
+
### Changes
|
|
20
|
+
|
|
21
|
+
- fix: router cannot render component and has missing types (roeisenb@microsoft.com)
|
|
22
|
+
- fix(fast-router): update to use html.partial (roeisenb@microsoft.com)
|
|
23
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.20
|
|
24
|
+
|
|
25
|
+
## 1.0.0-alpha.19
|
|
26
|
+
|
|
27
|
+
Fri, 02 Dec 2022 01:18:22 GMT
|
|
28
|
+
|
|
29
|
+
### Changes
|
|
30
|
+
|
|
31
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.19
|
|
32
|
+
|
|
33
|
+
## 1.0.0-alpha.18
|
|
34
|
+
|
|
35
|
+
Tue, 15 Nov 2022 02:40:35 GMT
|
|
36
|
+
|
|
37
|
+
### Changes
|
|
38
|
+
|
|
39
|
+
- feat: add new DOM Policy protection throughout (roeisenb@microsoft.com)
|
|
40
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.18
|
|
41
|
+
|
|
42
|
+
## 1.0.0-alpha.17
|
|
43
|
+
|
|
44
|
+
Tue, 01 Nov 2022 23:26:26 GMT
|
|
45
|
+
|
|
46
|
+
### Changes
|
|
47
|
+
|
|
48
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.17
|
|
49
|
+
|
|
50
|
+
## 1.0.0-alpha.16
|
|
51
|
+
|
|
52
|
+
Fri, 28 Oct 2022 20:44:44 GMT
|
|
53
|
+
|
|
54
|
+
### Changes
|
|
55
|
+
|
|
56
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.16
|
|
57
|
+
|
|
58
|
+
## 1.0.0-alpha.15
|
|
59
|
+
|
|
60
|
+
Tue, 25 Oct 2022 20:24:32 GMT
|
|
61
|
+
|
|
62
|
+
### Changes
|
|
63
|
+
|
|
64
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.15
|
|
65
|
+
|
|
66
|
+
## 1.0.0-alpha.14
|
|
67
|
+
|
|
68
|
+
Fri, 14 Oct 2022 18:26:11 GMT
|
|
69
|
+
|
|
70
|
+
### Changes
|
|
71
|
+
|
|
72
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.14
|
|
73
|
+
|
|
74
|
+
## 1.0.0-alpha.13
|
|
75
|
+
|
|
76
|
+
Mon, 10 Oct 2022 20:28:02 GMT
|
|
77
|
+
|
|
78
|
+
### Changes
|
|
79
|
+
|
|
80
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.13
|
|
81
|
+
|
|
82
|
+
## 1.0.0-alpha.12
|
|
83
|
+
|
|
84
|
+
Thu, 06 Oct 2022 23:21:20 GMT
|
|
85
|
+
|
|
86
|
+
### Changes
|
|
87
|
+
|
|
88
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.12
|
|
89
|
+
|
|
90
|
+
## 1.0.0-alpha.11
|
|
91
|
+
|
|
92
|
+
Wed, 05 Oct 2022 23:26:01 GMT
|
|
93
|
+
|
|
94
|
+
### Changes
|
|
95
|
+
|
|
96
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.11
|
|
97
|
+
|
|
98
|
+
## 1.0.0-alpha.10
|
|
99
|
+
|
|
100
|
+
Mon, 03 Oct 2022 23:44:38 GMT
|
|
101
|
+
|
|
102
|
+
### Changes
|
|
103
|
+
|
|
104
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.10
|
|
105
|
+
|
|
106
|
+
## 1.0.0-alpha.9
|
|
107
|
+
|
|
108
|
+
Wed, 28 Sep 2022 20:45:51 GMT
|
|
109
|
+
|
|
110
|
+
### Changes
|
|
111
|
+
|
|
112
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.9
|
|
113
|
+
|
|
114
|
+
## 1.0.0-alpha.8
|
|
115
|
+
|
|
116
|
+
Tue, 27 Sep 2022 22:31:52 GMT
|
|
117
|
+
|
|
118
|
+
### Changes
|
|
119
|
+
|
|
120
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.8
|
|
121
|
+
|
|
122
|
+
## 1.0.0-alpha.7
|
|
123
|
+
|
|
124
|
+
Fri, 23 Sep 2022 22:53:27 GMT
|
|
125
|
+
|
|
126
|
+
### Changes
|
|
127
|
+
|
|
128
|
+
- fix: update router to use the new behavior API (roeisenb@microsoft.com)
|
|
129
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.7
|
|
130
|
+
|
|
131
|
+
## 1.0.0-alpha.6
|
|
132
|
+
|
|
133
|
+
Thu, 01 Sep 2022 21:53:34 GMT
|
|
134
|
+
|
|
135
|
+
### Changes
|
|
136
|
+
|
|
137
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.6
|
|
138
|
+
|
|
139
|
+
## 1.0.0-alpha.5
|
|
140
|
+
|
|
141
|
+
Thu, 18 Aug 2022 20:46:10 GMT
|
|
142
|
+
|
|
143
|
+
### Changes
|
|
144
|
+
|
|
145
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.5
|
|
146
|
+
|
|
147
|
+
## 1.0.0-alpha.4
|
|
148
|
+
|
|
149
|
+
Mon, 18 Jul 2022 21:10:01 GMT
|
|
150
|
+
|
|
151
|
+
### Changes
|
|
152
|
+
|
|
153
|
+
- refactor: reduce duplication in style normalization code scenarios (roeisenb@microsoft.com)
|
|
154
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.4
|
|
155
|
+
|
|
156
|
+
## 1.0.0-alpha.3
|
|
157
|
+
|
|
158
|
+
Wed, 22 Jun 2022 20:17:50 GMT
|
|
159
|
+
|
|
160
|
+
### Changes
|
|
161
|
+
|
|
162
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.3 (nicholasrice@users.noreply.github.com)
|
|
163
|
+
|
|
7
164
|
## 1.0.0-alpha.2
|
|
8
165
|
|
|
9
166
|
Wed, 15 Jun 2022 17:41:10 GMT
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { AddViewBehaviorFactory,
|
|
1
|
+
import { AddViewBehaviorFactory, ViewBehavior, ViewBehaviorFactory, ViewController } from "@microsoft/fast-element";
|
|
2
2
|
import { NavigationCommitPhaseHook, NavigationPhaseHook, NavigationPhaseName } from "./phases.js";
|
|
3
|
-
import { RouterExecutionContext } from "./view.js";
|
|
4
3
|
/**
|
|
5
4
|
* @beta
|
|
6
5
|
*/
|
|
@@ -18,20 +17,19 @@ export declare type ContributorOptions = {
|
|
|
18
17
|
lifecycle?: boolean;
|
|
19
18
|
parameters?: boolean;
|
|
20
19
|
};
|
|
21
|
-
declare class NavigationContributorDirective implements
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
nodeId: string;
|
|
20
|
+
declare class NavigationContributorDirective implements ViewBehaviorFactory {
|
|
21
|
+
readonly options: Required<ContributorOptions>;
|
|
22
|
+
targetNodeId: string;
|
|
25
23
|
constructor(options: Required<ContributorOptions>);
|
|
26
24
|
createHTML(add: AddViewBehaviorFactory): string;
|
|
27
|
-
createBehavior(
|
|
25
|
+
createBehavior(): NavigationContributorBehavior;
|
|
28
26
|
}
|
|
29
|
-
declare class NavigationContributorBehavior implements
|
|
30
|
-
private
|
|
31
|
-
private options;
|
|
27
|
+
declare class NavigationContributorBehavior implements ViewBehavior {
|
|
28
|
+
private directive;
|
|
32
29
|
private router;
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
private contributor;
|
|
31
|
+
constructor(directive: NavigationContributorDirective);
|
|
32
|
+
bind(controller: ViewController): void;
|
|
35
33
|
unbind(source: unknown): void;
|
|
36
34
|
}
|
|
37
35
|
/**
|
package/dist/dts/phases.d.ts
CHANGED
|
@@ -33,5 +33,5 @@ export interface NavigationPhase<TSettings = any> {
|
|
|
33
33
|
* @beta
|
|
34
34
|
*/
|
|
35
35
|
export interface NavigationCommitPhase<TSettings = any> extends Omit<NavigationPhase<TSettings>, "cancel" | "canceled" | "onCancel"> {
|
|
36
|
-
setTitle(title: string):
|
|
36
|
+
setTitle(title: string): void;
|
|
37
37
|
}
|
|
@@ -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:
|
|
13
|
+
build(params: Record<string, string>, 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.
|
package/dist/dts/recognizer.d.ts
CHANGED
|
@@ -2,7 +2,16 @@ import { Route } from "./navigation.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* @beta
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export interface RouteParameterConverterContext<TSettings = any> {
|
|
6
|
+
readonly endpoint: Endpoint<TSettings>;
|
|
7
|
+
readonly params: Readonly<Record<string, string | undefined>>;
|
|
8
|
+
readonly typedParams: Record<string, any>;
|
|
9
|
+
readonly queryParams: Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @beta
|
|
13
|
+
*/
|
|
14
|
+
export declare type RouteParameterConverter = (name: string, value: string | undefined, context: RouteParameterConverterContext) => any | Promise<any>;
|
|
6
15
|
/**
|
|
7
16
|
* @beta
|
|
8
17
|
*/
|
package/dist/dts/router.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ declare const routerProperty = "$router";
|
|
|
32
32
|
export interface RouterElement extends HTMLElement {
|
|
33
33
|
readonly [routerProperty]: Router;
|
|
34
34
|
config: RouterConfiguration | null;
|
|
35
|
-
connectedCallback():
|
|
36
|
-
disconnectedCallback():
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* @beta
|
package/dist/dts/routes.d.ts
CHANGED
|
@@ -125,13 +125,13 @@ export declare type RouteMatch<TSettings = any> = {
|
|
|
125
125
|
/**
|
|
126
126
|
* @beta
|
|
127
127
|
*/
|
|
128
|
-
export declare type
|
|
128
|
+
export declare type RouteParameterConverterObject = {
|
|
129
129
|
convert: RouteParameterConverter;
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
132
132
|
* @beta
|
|
133
133
|
*/
|
|
134
|
-
export declare type ParameterConverter = RouteParameterConverter |
|
|
134
|
+
export declare type ParameterConverter = RouteParameterConverter | RouteParameterConverterObject | Constructable<RouteParameterConverterObject>;
|
|
135
135
|
/**
|
|
136
136
|
* @beta
|
|
137
137
|
*/
|
package/dist/dts/view.d.ts
CHANGED
|
@@ -4,19 +4,14 @@ import { Router } from "./router.js";
|
|
|
4
4
|
* @beta
|
|
5
5
|
*/
|
|
6
6
|
export declare type RouterExecutionContext = ExecutionContext & {
|
|
7
|
-
router
|
|
7
|
+
router?: Router;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
10
|
-
* @beta
|
|
11
|
-
*/
|
|
12
|
-
export declare const RouterExecutionContext: Readonly<{
|
|
13
|
-
create(router: Router): any;
|
|
14
|
-
}>;
|
|
15
9
|
/**
|
|
16
10
|
* @beta
|
|
17
11
|
*/
|
|
18
12
|
export interface RouteView {
|
|
19
|
-
|
|
13
|
+
context: RouterExecutionContext;
|
|
14
|
+
bind(allTypedParams: Readonly<Record<string, any>>): void;
|
|
20
15
|
appendTo(host: HTMLElement): void;
|
|
21
16
|
dispose(): void;
|
|
22
17
|
}
|
|
@@ -48,7 +43,7 @@ export declare class FASTElementLayout implements Layout {
|
|
|
48
43
|
private readonly template;
|
|
49
44
|
private runBeforeCommit;
|
|
50
45
|
private styles;
|
|
51
|
-
constructor(template?: ViewTemplate | null, styles?: ComposableStyles | ComposableStyles[] |
|
|
46
|
+
constructor(template?: ViewTemplate | null, styles?: ComposableStyles | ComposableStyles[] | undefined, runBeforeCommit?: boolean);
|
|
52
47
|
beforeCommit(routerElement: HTMLElement): Promise<void>;
|
|
53
48
|
afterCommit(routerElement: HTMLElement): Promise<void>;
|
|
54
49
|
private apply;
|
package/dist/esm/commands.js
CHANGED
|
@@ -45,16 +45,17 @@ export class Redirect {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function factoryFromElementName(
|
|
49
|
-
|
|
48
|
+
function factoryFromElementName(tagName) {
|
|
49
|
+
const tag = html.partial(tagName);
|
|
50
|
+
return html `<${tag} ${navigationContributor()}></${tag}>`;
|
|
50
51
|
}
|
|
51
52
|
function factoryFromElementInstance(element) {
|
|
52
53
|
const fragment = document.createDocumentFragment();
|
|
53
54
|
fragment.appendChild(element);
|
|
54
55
|
const factory = navigationContributor();
|
|
55
|
-
factory.
|
|
56
|
+
factory.targetNodeId = "h";
|
|
56
57
|
const view = new HTMLView(fragment, [factory], {
|
|
57
|
-
[factory.
|
|
58
|
+
[factory.targetNodeId]: element,
|
|
58
59
|
});
|
|
59
60
|
return {
|
|
60
61
|
create() {
|