@microsoft/fast-router 1.0.0-alpha.16 → 1.0.0-alpha.18
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 +36 -0
- package/CHANGELOG.md +18 -1
- package/dist/dts/contributors.d.ts +1 -2
- package/dist/esm/commands.js +2 -2
- package/dist/esm/contributors.js +1 -1
- package/dist/fast-router.d.ts +1 -2
- package/dist/fast-router.untrimmed.d.ts +1 -2
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/fast-router",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Tue, 15 Nov 2022 02:40:35 GMT",
|
|
6
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.18",
|
|
7
|
+
"version": "1.0.0-alpha.18",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "roeisenb@microsoft.com",
|
|
12
|
+
"package": "@microsoft/fast-router",
|
|
13
|
+
"commit": "3c14603089495a7af8ed5b55122c418b47c45fd5",
|
|
14
|
+
"comment": "feat: add new DOM Policy protection throughout"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@microsoft/fast-router",
|
|
19
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.18",
|
|
20
|
+
"commit": "416dc9167e9d41e6ffe11d87ed79b2f455357923"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Tue, 01 Nov 2022 23:26:26 GMT",
|
|
27
|
+
"tag": "@microsoft/fast-router_v1.0.0-alpha.17",
|
|
28
|
+
"version": "1.0.0-alpha.17",
|
|
29
|
+
"comments": {
|
|
30
|
+
"prerelease": [
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@microsoft/fast-router",
|
|
34
|
+
"comment": "Bump @microsoft/fast-element to v2.0.0-beta.17",
|
|
35
|
+
"commit": "32d18d0900047899d1dadfe94f7923b6164b0cf3"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
4
40
|
{
|
|
5
41
|
"date": "Fri, 28 Oct 2022 20:44:44 GMT",
|
|
6
42
|
"tag": "@microsoft/fast-router_v1.0.0-alpha.16",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
# Change Log - @microsoft/fast-router
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 15 Nov 2022 02:40:35 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.0.0-alpha.18
|
|
8
|
+
|
|
9
|
+
Tue, 15 Nov 2022 02:40:35 GMT
|
|
10
|
+
|
|
11
|
+
### Changes
|
|
12
|
+
|
|
13
|
+
- feat: add new DOM Policy protection throughout (roeisenb@microsoft.com)
|
|
14
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.18
|
|
15
|
+
|
|
16
|
+
## 1.0.0-alpha.17
|
|
17
|
+
|
|
18
|
+
Tue, 01 Nov 2022 23:26:26 GMT
|
|
19
|
+
|
|
20
|
+
### Changes
|
|
21
|
+
|
|
22
|
+
- Bump @microsoft/fast-element to v2.0.0-beta.17
|
|
23
|
+
|
|
7
24
|
## 1.0.0-alpha.16
|
|
8
25
|
|
|
9
26
|
Fri, 28 Oct 2022 20:44:44 GMT
|
|
@@ -19,8 +19,7 @@ export declare type ContributorOptions = {
|
|
|
19
19
|
};
|
|
20
20
|
declare class NavigationContributorDirective implements ViewBehaviorFactory {
|
|
21
21
|
readonly options: Required<ContributorOptions>;
|
|
22
|
-
|
|
23
|
-
nodeId: string;
|
|
22
|
+
targetNodeId: string;
|
|
24
23
|
constructor(options: Required<ContributorOptions>);
|
|
25
24
|
createHTML(add: AddViewBehaviorFactory): string;
|
|
26
25
|
createBehavior(): NavigationContributorBehavior;
|
package/dist/esm/commands.js
CHANGED
|
@@ -52,9 +52,9 @@ function factoryFromElementInstance(element) {
|
|
|
52
52
|
const fragment = document.createDocumentFragment();
|
|
53
53
|
fragment.appendChild(element);
|
|
54
54
|
const factory = navigationContributor();
|
|
55
|
-
factory.
|
|
55
|
+
factory.targetNodeId = "h";
|
|
56
56
|
const view = new HTMLView(fragment, [factory], {
|
|
57
|
-
[factory.
|
|
57
|
+
[factory.targetNodeId]: element,
|
|
58
58
|
});
|
|
59
59
|
return {
|
|
60
60
|
create() {
|
package/dist/esm/contributors.js
CHANGED
|
@@ -31,7 +31,7 @@ class NavigationContributorBehavior {
|
|
|
31
31
|
var _a;
|
|
32
32
|
const context = controller.context;
|
|
33
33
|
const options = this.directive.options;
|
|
34
|
-
this.contributor = controller.targets[this.directive.
|
|
34
|
+
this.contributor = controller.targets[this.directive.targetNodeId];
|
|
35
35
|
if (options.lifecycle) {
|
|
36
36
|
this.router = (_a = context.router) !== null && _a !== void 0 ? _a : Router.find(this.contributor);
|
|
37
37
|
if (this.router) {
|
package/dist/fast-router.d.ts
CHANGED
|
@@ -350,8 +350,7 @@ declare class NavigationContributorBehavior implements ViewBehavior {
|
|
|
350
350
|
|
|
351
351
|
declare class NavigationContributorDirective implements ViewBehaviorFactory {
|
|
352
352
|
readonly options: Required<ContributorOptions>;
|
|
353
|
-
|
|
354
|
-
nodeId: string;
|
|
353
|
+
targetNodeId: string;
|
|
355
354
|
constructor(options: Required<ContributorOptions>);
|
|
356
355
|
createHTML(add: AddViewBehaviorFactory): string;
|
|
357
356
|
createBehavior(): NavigationContributorBehavior;
|
|
@@ -353,8 +353,7 @@ declare class NavigationContributorBehavior implements ViewBehavior {
|
|
|
353
353
|
|
|
354
354
|
declare class NavigationContributorDirective implements ViewBehaviorFactory {
|
|
355
355
|
readonly options: Required<ContributorOptions>;
|
|
356
|
-
|
|
357
|
-
nodeId: string;
|
|
356
|
+
targetNodeId: string;
|
|
358
357
|
constructor(options: Required<ContributorOptions>);
|
|
359
358
|
createHTML(add: AddViewBehaviorFactory): string;
|
|
360
359
|
createBehavior(): NavigationContributorBehavior;
|
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.18",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft",
|
|
8
8
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"webpack-cli": "^4.9.2"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@microsoft/fast-element": "^2.0.0-beta.
|
|
83
|
+
"@microsoft/fast-element": "^2.0.0-beta.18"
|
|
84
84
|
}
|
|
85
85
|
}
|