@genesislcap/foundation-header 14.102.0 → 14.103.0-auth-mf.24

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.
@@ -167,6 +167,20 @@
167
167
  "description": "Navigation micro-frontend includes navigation bar and flyout menu",
168
168
  "name": "Navigation",
169
169
  "members": [
170
+ {
171
+ "kind": "field",
172
+ "name": "authRouting",
173
+ "type": {
174
+ "text": "AuthRouting"
175
+ }
176
+ },
177
+ {
178
+ "kind": "field",
179
+ "name": "user",
180
+ "type": {
181
+ "text": "User"
182
+ }
183
+ },
170
184
  {
171
185
  "kind": "field",
172
186
  "name": "auth",
@@ -189,15 +203,6 @@
189
203
  },
190
204
  "default": "false"
191
205
  },
192
- {
193
- "kind": "field",
194
- "name": "userName",
195
- "type": {
196
- "text": "string"
197
- },
198
- "privacy": "public",
199
- "description": "Username of the logged in user"
200
- },
201
206
  {
202
207
  "kind": "field",
203
208
  "name": "sideNavOpen",
@@ -206,6 +211,11 @@
206
211
  },
207
212
  "default": "false"
208
213
  },
214
+ {
215
+ "kind": "field",
216
+ "name": "userName",
217
+ "readonly": true
218
+ },
209
219
  {
210
220
  "kind": "field",
211
221
  "name": "logoSrc",
@@ -1,3 +1,5 @@
1
+ import { AuthRouting } from '@genesislcap/foundation-auth/routing';
2
+ import { User } from '@genesislcap/foundation-auth/user';
1
3
  import { Auth, CredentialManager } from '@genesislcap/foundation-comms';
2
4
  /**
3
5
  * Events dispatched by the navigation control buttons
@@ -94,27 +96,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
94
96
  scrollBy(options?: ScrollToOptions): void;
95
97
  scrollBy(x: number, y: number): void;
96
98
  scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
97
- /**
98
- * Emits the event corresponding to the luminance icon being clicked
99
- *
100
- * @remarks
101
- *
102
- * Activated when the user clicks on the moon icon on the navigation
103
- * bar right hand side
104
- *
105
- * @internal
106
- */
107
99
  scrollTo(options?: ScrollToOptions): void;
108
- /**
109
- * Emits the event corresponding to the luminance icon being clicked
110
- *
111
- * @remarks
112
- *
113
- * Activated when the user clicks on the moon icon on the navigation
114
- * bar right hand side
115
- *
116
- * @internal
117
- */
118
100
  scrollTo(x: number, y: number): void;
119
101
  setAttribute(qualifiedName: string, value: string): void;
120
102
  setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
@@ -368,15 +350,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
368
350
  *
369
351
  */
370
352
  export declare class Navigation extends Navigation_base {
353
+ authRouting: AuthRouting;
354
+ user: User;
371
355
  auth: Auth;
372
356
  credentialManager: CredentialManager;
373
357
  ready: boolean;
374
- /**
375
- * Username of the logged in user
376
- */
377
- userName: string;
378
358
  sideNavOpen: boolean;
379
359
  connectedCallback(): Promise<void>;
360
+ get userName(): string;
380
361
  /**
381
362
  * Optional attribute which controls the icon to show on the navigation bar and flyout
382
363
  * Control via `logo-src`
@@ -450,13 +431,11 @@ export declare class Navigation extends Navigation_base {
450
431
  * Logs the user out of their session
451
432
  *
452
433
  * @remarks
453
- *
454
- * Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires
455
- * the usage of the auth functionality from {@link @genesislcap/foundation-comms#Auth}.
434
+ * Activated when the user clicks on the logout button on the right hand side of the navigation bar.
456
435
  *
457
436
  * @public
458
437
  */
459
- logout(): Promise<void>;
438
+ logout(): void;
460
439
  /**
461
440
  * Changes the route of the current page
462
441
  *
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAgB,MAAM,+BAA+B,CAAC;AAUtF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,wBAAwB,EAAE,IAAI,CAAC;IAC/B,mBAAmB,EAAE,IAAI,CAAC;IAC1B,2BAA2B,EAAE,IAAI,CAAC;CACnC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;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AiB;IAM9B,IAAI,QAAQ,WAEX;IAED;;;;;;;OAOG;IAC8B,OAAO,EAAE,GAAG,CAAQ;IAErD;;;;;;;OAOG;IAEH,yBAAyB,EAAE,OAAO,CAAC;IAEnC;;;;;;;OAOG;IAC8D,oBAAoB,EAAE,OAAO,CAAC;IAE/F;;;;;;;OAOG;IAEH,uBAAuB,EAAE,OAAO,CAAC;IAEjC;;;;OAIG;IAEH,uBAAuB,EAAE,OAAO,CAAQ;IAExC;;;;OAIG;IAEH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACS,YAAY,EAAE,KAAK,CAAC;QAC9B,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IAEH;;;;;;;;OAQG;IACG,WAAW;IAKjB,cAAc;IAId;;;;;;;OAOG;IACI,MAAM;IAKb;;;;;;;;;;OAUG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM;IAS9B;;;;;;;;;OASG;IACH,mBAAmB;IAInB;;;;;;;;;OASG;IACH,kBAAkB;IAIlB;;;;;;;;;OASG;IACH,aAAa;IAIb;;;;;;;;;OASG;IACH,qBAAqB;CAGtB"}
@@ -1,4 +1,6 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
+ import { AuthRouting } from '@genesislcap/foundation-auth/routing';
3
+ import { User } from '@genesislcap/foundation-auth/user';
2
4
  import { Auth, CredentialManager } from '@genesislcap/foundation-comms';
3
5
  import { EventEmitter } from '@genesislcap/foundation-events';
4
6
  import { FASTElement, customElement, observable, attr } from '@microsoft/fast-element';
@@ -61,11 +63,12 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
61
63
  _super.connectedCallback.call(this);
62
64
  logger.debug(`foundation-header is now connected to the DOM`);
63
65
  yield this.loadRemotes();
64
- this.userName = this.auth.loggedUserResult
65
- ? this.auth.loggedUserResult.username
66
- : 'Genesis User';
67
66
  });
68
67
  }
68
+ get userName() {
69
+ var _a;
70
+ return (_a = this.user.userName) !== null && _a !== void 0 ? _a : 'Genesis User';
71
+ }
69
72
  /**
70
73
  * Load remote components
71
74
  *
@@ -88,29 +91,13 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
88
91
  * Logs the user out of their session
89
92
  *
90
93
  * @remarks
91
- *
92
- * Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires
93
- * the usage of the auth functionality from {@link @genesislcap/foundation-comms#Auth}.
94
+ * Activated when the user clicks on the logout button on the right hand side of the navigation bar.
94
95
  *
95
96
  * @public
96
97
  */
97
98
  logout() {
98
- return __awaiter(this, void 0, void 0, function* () {
99
- logger.debug('logout submission');
100
- try {
101
- const result = yield this.auth.logout();
102
- if (!result.success) {
103
- logger.error(`Couldn't log out`, result);
104
- return;
105
- }
106
- logger.debug('logged out', result);
107
- yield this.credentialManager.preventSilentAccess();
108
- this.navigateTo('/');
109
- }
110
- catch (err) {
111
- logger.error(`Error: ${err.message}`);
112
- }
113
- });
99
+ logger.debug('logout using authRouting.navigateTo');
100
+ this.authRouting.navigateTo('logout');
114
101
  }
115
102
  /**
116
103
  * Changes the route of the current page
@@ -185,6 +172,12 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
185
172
  this.$emit('notification-icon-clicked');
186
173
  }
187
174
  };
175
+ __decorate([
176
+ AuthRouting
177
+ ], Navigation.prototype, "authRouting", void 0);
178
+ __decorate([
179
+ User
180
+ ], Navigation.prototype, "user", void 0);
188
181
  __decorate([
189
182
  Auth
190
183
  ], Navigation.prototype, "auth", void 0);
@@ -194,9 +187,6 @@ __decorate([
194
187
  __decorate([
195
188
  observable
196
189
  ], Navigation.prototype, "ready", void 0);
197
- __decorate([
198
- observable
199
- ], Navigation.prototype, "userName", void 0);
200
190
  __decorate([
201
191
  observable
202
192
  ], Navigation.prototype, "sideNavOpen", void 0);
@@ -294,6 +294,37 @@
294
294
  "isProtected": false,
295
295
  "isAbstract": false
296
296
  },
297
+ {
298
+ "kind": "Property",
299
+ "canonicalReference": "@genesislcap/foundation-header!Navigation#authRouting:member",
300
+ "docComment": "",
301
+ "excerptTokens": [
302
+ {
303
+ "kind": "Content",
304
+ "text": "authRouting: "
305
+ },
306
+ {
307
+ "kind": "Reference",
308
+ "text": "AuthRouting",
309
+ "canonicalReference": "@genesislcap/foundation-auth!AuthRouting:interface"
310
+ },
311
+ {
312
+ "kind": "Content",
313
+ "text": ";"
314
+ }
315
+ ],
316
+ "isReadonly": false,
317
+ "isOptional": false,
318
+ "releaseTag": "Public",
319
+ "name": "authRouting",
320
+ "propertyTypeTokenRange": {
321
+ "startIndex": 1,
322
+ "endIndex": 2
323
+ },
324
+ "isStatic": false,
325
+ "isProtected": false,
326
+ "isAbstract": false
327
+ },
297
328
  {
298
329
  "kind": "Method",
299
330
  "canonicalReference": "@genesislcap/foundation-header!Navigation#connectedCallback:member(1)",
@@ -424,20 +455,15 @@
424
455
  {
425
456
  "kind": "Method",
426
457
  "canonicalReference": "@genesislcap/foundation-header!Navigation#logout:member(1)",
427
- "docComment": "/**\n * Logs the user out of their session\n *\n * @remarks\n *\n * Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires the usage of the auth functionality from {@link @genesislcap/foundation-comms#Auth}.\n *\n * @public\n */\n",
458
+ "docComment": "/**\n * Logs the user out of their session\n *\n * @remarks\n *\n * Activated when the user clicks on the logout button on the right hand side of the navigation bar.\n *\n * @public\n */\n",
428
459
  "excerptTokens": [
429
460
  {
430
461
  "kind": "Content",
431
462
  "text": "logout(): "
432
463
  },
433
- {
434
- "kind": "Reference",
435
- "text": "Promise",
436
- "canonicalReference": "!Promise:interface"
437
- },
438
464
  {
439
465
  "kind": "Content",
440
- "text": "<void>"
466
+ "text": "void"
441
467
  },
442
468
  {
443
469
  "kind": "Content",
@@ -447,7 +473,7 @@
447
473
  "isStatic": false,
448
474
  "returnTypeTokenRange": {
449
475
  "startIndex": 1,
450
- "endIndex": 3
476
+ "endIndex": 2
451
477
  },
452
478
  "releaseTag": "Public",
453
479
  "isProtected": false,
@@ -769,14 +795,45 @@
769
795
  "isProtected": false,
770
796
  "isAbstract": false
771
797
  },
798
+ {
799
+ "kind": "Property",
800
+ "canonicalReference": "@genesislcap/foundation-header!Navigation#user:member",
801
+ "docComment": "",
802
+ "excerptTokens": [
803
+ {
804
+ "kind": "Content",
805
+ "text": "user: "
806
+ },
807
+ {
808
+ "kind": "Reference",
809
+ "text": "User",
810
+ "canonicalReference": "@genesislcap/foundation-auth!User:interface"
811
+ },
812
+ {
813
+ "kind": "Content",
814
+ "text": ";"
815
+ }
816
+ ],
817
+ "isReadonly": false,
818
+ "isOptional": false,
819
+ "releaseTag": "Public",
820
+ "name": "user",
821
+ "propertyTypeTokenRange": {
822
+ "startIndex": 1,
823
+ "endIndex": 2
824
+ },
825
+ "isStatic": false,
826
+ "isProtected": false,
827
+ "isAbstract": false
828
+ },
772
829
  {
773
830
  "kind": "Property",
774
831
  "canonicalReference": "@genesislcap/foundation-header!Navigation#userName:member",
775
- "docComment": "/**\n * Username of the logged in user\n */\n",
832
+ "docComment": "",
776
833
  "excerptTokens": [
777
834
  {
778
835
  "kind": "Content",
779
- "text": "userName: "
836
+ "text": "get userName(): "
780
837
  },
781
838
  {
782
839
  "kind": "Content",
@@ -787,7 +844,7 @@
787
844
  "text": ";"
788
845
  }
789
846
  ],
790
- "isReadonly": false,
847
+ "isReadonly": true,
791
848
  "isOptional": false,
792
849
  "releaseTag": "Public",
793
850
  "name": "userName",
@@ -1,9 +1,11 @@
1
1
  import { Auth } from '@genesislcap/foundation-comms';
2
+ import { AuthRouting } from '@genesislcap/foundation-auth/routing';
2
3
  import { Controller } from '@microsoft/fast-element';
3
4
  import { CredentialManager } from '@genesislcap/foundation-comms';
4
5
  import { ElementStyles } from '@microsoft/fast-element';
5
6
  import { EmitOptions } from '@genesislcap/foundation-events';
6
7
  import { EmitReturn } from '@genesislcap/foundation-events';
8
+ import { User } from '@genesislcap/foundation-auth/user';
7
9
  import { ViewTemplate } from '@microsoft/fast-element';
8
10
 
9
11
  /**
@@ -50,15 +52,14 @@ export declare type NavEventDetailMap = {
50
52
  *
51
53
  */
52
54
  export declare class Navigation extends Navigation_base {
55
+ authRouting: AuthRouting;
56
+ user: User;
53
57
  auth: Auth;
54
58
  credentialManager: CredentialManager;
55
59
  ready: boolean;
56
- /**
57
- * Username of the logged in user
58
- */
59
- userName: string;
60
60
  sideNavOpen: boolean;
61
61
  connectedCallback(): Promise<void>;
62
+ get userName(): string;
62
63
  /**
63
64
  * Optional attribute which controls the icon to show on the navigation bar and flyout
64
65
  * Control via `logo-src`
@@ -132,13 +133,11 @@ export declare class Navigation extends Navigation_base {
132
133
  * Logs the user out of their session
133
134
  *
134
135
  * @remarks
135
- *
136
- * Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires
137
- * the usage of the auth functionality from {@link @genesislcap/foundation-comms#Auth}.
136
+ * Activated when the user clicks on the logout button on the right hand side of the navigation bar.
138
137
  *
139
138
  * @public
140
139
  */
141
- logout(): Promise<void>;
140
+ logout(): void;
142
141
  /**
143
142
  * Changes the route of the current page
144
143
  *
@@ -283,27 +282,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
283
282
  scrollBy(options?: ScrollToOptions): void;
284
283
  scrollBy(x: number, y: number): void;
285
284
  scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
286
- /**
287
- * Emits the event corresponding to the luminance icon being clicked
288
- *
289
- * @remarks
290
- *
291
- * Activated when the user clicks on the moon icon on the navigation
292
- * bar right hand side
293
- *
294
- * @internal
295
- */
296
285
  scrollTo(options?: ScrollToOptions): void;
297
- /**
298
- * Emits the event corresponding to the luminance icon being clicked
299
- *
300
- * @remarks
301
- *
302
- * Activated when the user clicks on the moon icon on the navigation
303
- * bar right hand side
304
- *
305
- * @internal
306
- */
307
286
  scrollTo(x: number, y: number): void;
308
287
  setAttribute(qualifiedName: string, value: string): void;
309
288
  setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [Navigation](./foundation-header.navigation.md) &gt; [authRouting](./foundation-header.navigation.authrouting.md)
4
+
5
+ ## Navigation.authRouting property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ authRouting: AuthRouting;
11
+ ```
@@ -9,13 +9,13 @@ Logs the user out of their session
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- logout(): Promise<void>;
12
+ logout(): void;
13
13
  ```
14
14
  **Returns:**
15
15
 
16
- Promise&lt;void&gt;
16
+ void
17
17
 
18
18
  ## Remarks
19
19
 
20
- Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires the usage of the auth functionality from .
20
+ Activated when the user clicks on the logout button on the right hand side of the navigation bar.
21
21
 
@@ -22,6 +22,7 @@ export declare class Navigation extends Navigation_base
22
22
  | Property | Modifiers | Type | Description |
23
23
  | --- | --- | --- | --- |
24
24
  | [auth](./foundation-header.navigation.auth.md) | | Auth | |
25
+ | [authRouting](./foundation-header.navigation.authrouting.md) | | AuthRouting | |
25
26
  | [credentialManager](./foundation-header.navigation.credentialmanager.md) | | CredentialManager | |
26
27
  | [hideSideBar](./foundation-header.navigation.hidesidebar.md) | | boolean | Boolean attribute which controls whether to include the sideNav component Control via<code>hide-side-bar</code> |
27
28
  | [logoSrc](./foundation-header.navigation.logosrc.md) | | any | Optional attribute which controls the icon to show on the navigation bar and flyout Control via <code>logo-src</code> |
@@ -32,7 +33,8 @@ export declare class Navigation extends Navigation_base
32
33
  | [showMiscToggleButton](./foundation-header.navigation.showmisctogglebutton.md) | | boolean | Boolean attribute which controls whether to show the miscellaneous (menu) icon on the navigation bar Control via <code>show-luminance-toggle-button</code> |
33
34
  | [showNotificationsButton](./foundation-header.navigation.shownotificationsbutton.md) | | boolean | Boolean attribute which controls whether to show the notification (bell) icon on the navigation bar Control via <code>show-notification-button</code> |
34
35
  | [sideNavOpen](./foundation-header.navigation.sidenavopen.md) | | boolean | |
35
- | [userName](./foundation-header.navigation.username.md) | | string | Username of the logged in user |
36
+ | [user](./foundation-header.navigation.user.md) | | User | |
37
+ | [userName](./foundation-header.navigation.username.md) | <code>readonly</code> | string | |
36
38
 
37
39
  ## Methods
38
40
 
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [Navigation](./foundation-header.navigation.md) &gt; [user](./foundation-header.navigation.user.md)
4
+
5
+ ## Navigation.user property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ user: User;
11
+ ```
@@ -4,10 +4,8 @@
4
4
 
5
5
  ## Navigation.userName property
6
6
 
7
- Username of the logged in user
8
-
9
7
  **Signature:**
10
8
 
11
9
  ```typescript
12
- userName: string;
10
+ get userName(): string;
13
11
  ```
@@ -5,11 +5,13 @@
5
5
  ```ts
6
6
 
7
7
  import { Auth } from '@genesislcap/foundation-comms';
8
+ import { AuthRouting } from '@genesislcap/foundation-auth/routing';
8
9
  import { Controller } from '@microsoft/fast-element';
9
10
  import { CredentialManager } from '@genesislcap/foundation-comms';
10
11
  import { ElementStyles } from '@microsoft/fast-element';
11
12
  import { EmitOptions } from '@genesislcap/foundation-events';
12
13
  import { EmitReturn } from '@genesislcap/foundation-events';
14
+ import { User } from '@genesislcap/foundation-auth/user';
13
15
  import { ViewTemplate } from '@microsoft/fast-element';
14
16
 
15
17
  // @public
@@ -29,6 +31,8 @@ export class Navigation extends Navigation_base {
29
31
  // (undocumented)
30
32
  auth: Auth;
31
33
  // (undocumented)
34
+ authRouting: AuthRouting;
35
+ // (undocumented)
32
36
  connectedCallback(): Promise<void>;
33
37
  // (undocumented)
34
38
  credentialManager: CredentialManager;
@@ -36,7 +40,7 @@ export class Navigation extends Navigation_base {
36
40
  // @internal
37
41
  loadRemotes(): Promise<void>;
38
42
  logoSrc: any;
39
- logout(): Promise<void>;
43
+ logout(): void;
40
44
  // @internal
41
45
  luminanceIconEvent(): void;
42
46
  // @internal
@@ -63,7 +67,10 @@ export class Navigation extends Navigation_base {
63
67
  sideNavOpen: boolean;
64
68
  // @internal
65
69
  toggleNavVisibility(): void;
66
- userName: string;
70
+ // (undocumented)
71
+ user: User;
72
+ // (undocumented)
73
+ get userName(): string;
67
74
  }
68
75
 
69
76
  // @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-header",
3
3
  "description": "Genesis Foundation Header",
4
- "version": "14.102.0",
4
+ "version": "14.103.0-auth-mf.24",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-header.d.ts",
@@ -47,6 +47,7 @@
47
47
  "dev:no-open": "genx dev --no-open -b webpack",
48
48
  "dev:webpack": "genx dev -b webpack",
49
49
  "dev:webpack:https": "genx dev --https -b webpack",
50
+ "dev:tsc": "genx dev -b ts",
50
51
  "serve": "genx serve",
51
52
  "test": "genx test",
52
53
  "test:coverage": "genx test --coverage",
@@ -60,15 +61,16 @@
60
61
  "test:debug": "genx test --debug"
61
62
  },
62
63
  "devDependencies": {
63
- "@genesislcap/foundation-testing": "14.102.0",
64
- "@genesislcap/genx": "14.102.0",
64
+ "@genesislcap/foundation-testing": "14.103.0-auth-mf.24",
65
+ "@genesislcap/genx": "14.103.0-auth-mf.24",
65
66
  "rimraf": "^3.0.2"
66
67
  },
67
68
  "dependencies": {
68
- "@genesislcap/foundation-comms": "14.102.0",
69
- "@genesislcap/foundation-events": "14.102.0",
70
- "@genesislcap/foundation-logger": "14.102.0",
71
- "@genesislcap/foundation-zero": "14.102.0",
69
+ "@genesislcap/foundation-auth": "14.103.0-auth-mf.24",
70
+ "@genesislcap/foundation-comms": "14.103.0-auth-mf.24",
71
+ "@genesislcap/foundation-events": "14.103.0-auth-mf.24",
72
+ "@genesislcap/foundation-logger": "14.103.0-auth-mf.24",
73
+ "@genesislcap/foundation-zero": "14.103.0-auth-mf.24",
72
74
  "@microsoft/fast-colors": "^5.1.4",
73
75
  "@microsoft/fast-components": "^2.21.3",
74
76
  "@microsoft/fast-element": "^1.7.0",
@@ -84,5 +86,5 @@
84
86
  "access": "public"
85
87
  },
86
88
  "customElements": "dist/custom-elements.json",
87
- "gitHead": "8e85c441c245f1c0dd6eae41f25d2c3059f53a17"
89
+ "gitHead": "0ecbee6397572e9daf901d0560d465b653440f52"
88
90
  }