@genesislcap/foundation-auth 14.103.0-auth-mf.23 → 14.103.0-auth-mf.25

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.
@@ -1 +1 @@
1
- {"version":3,"file":"zero-components.d.ts","sourceRoot":"","sources":["../../../src/components/zero-components.ts"],"names":[],"mappings":"AA8BA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qBAkCxC,CAAC"}
1
+ {"version":3,"file":"zero-components.d.ts","sourceRoot":"","sources":["../../../src/components/zero-components.ts"],"names":[],"mappings":"AAqCA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qBAkCxC,CAAC"}
@@ -18,10 +18,9 @@ declare const FoundationAuth_base: abstract new (...args: any[]) => {
18
18
  inert: boolean;
19
19
  innerText: string;
20
20
  lang: string;
21
- /**
21
+ readonly offsetHeight: number; /**
22
22
  * @internal
23
23
  */
24
- readonly offsetHeight: number;
25
24
  readonly offsetLeft: number;
26
25
  readonly offsetParent: Element;
27
26
  readonly offsetTop: number;
@@ -52,11 +51,11 @@ declare const FoundationAuth_base: abstract new (...args: any[]) => {
52
51
  readonly ownerDocument: Document;
53
52
  readonly part: DOMTokenList;
54
53
  readonly prefix: string;
55
- readonly scrollHeight: number; /**
54
+ readonly scrollHeight: number;
55
+ scrollLeft: number;
56
+ scrollTop: number; /**
56
57
  * @internal
57
58
  */
58
- scrollLeft: number;
59
- scrollTop: number;
60
59
  readonly scrollWidth: number;
61
60
  readonly shadowRoot: ShadowRoot;
62
61
  slot: string;
@@ -437,7 +436,7 @@ export declare class ZeroAuth extends FoundationAuth {
437
436
  /**
438
437
  * @internal
439
438
  */
440
- protected zeroReady: boolean;
439
+ zeroReady: boolean;
441
440
  /**
442
441
  * @internal
443
442
  */
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAA8B,MAAM,yBAAyB,CA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;;;;;;;;;;GAWG;AACH,qBAAa,cAAe,SAAQ,mBAAmC;IACrE;;OAEG;IACQ,KAAK,EAAE,SAAS,CAAC;IAE5B;;OAEG;IACuB,MAAM,EAAE,gBAAgB,CAAC;IAEnD;;OAEG;IACQ,SAAS,EAAE,SAAS,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,cAAc,EAAE,eAAe,CAAC;IAE1C;;OAEG;IACH,iBAAiB;IAQjB;;OAEG;IACH,oBAAoB;IAMpB;;OAEG;IACH,SAAS,CAAC,sBAAsB;IAIhC;;OAEG;IACH,SAAS,CAAC,WAAW;IAWrB;;OAEG;IACH,SAAS,CAAC,cAAc;IAIxB;;OAEG;IACH,SAAS,CAAC,iBAAiB;IAI3B;;OAEG;IACH,SAAS,CAAC,oBAAoB;IAI9B;;OAEG;IACH,SAAS,CAAC,UAAU;IAKpB;;OAEG;IACH,IAAI,OAAO,YAKV;IAED;;OAEG;IACH,IACI,UAAU,WAEb;IAED;;OAEG;IACH,eAAe,IAAI,IAAI;CAMxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAKa,QAAS,SAAQ,cAAc;IAC1C;;OAEG;IACS,SAAS,EAAE,OAAO,CAAS;IAEvC;;OAEG;IACG,iBAAiB;IAKvB;;OAEG;cACa,WAAW;IAM3B;;;;OAIG;IACH,IAAI,OAAO,YAEV;CACF"}
@@ -1,5 +1,5 @@
1
1
  import type { AuthRoutes } from './types';
2
- import { getRoutePath, navigateTo } from './utils';
2
+ import { getRoutePath, isMFRoute, navigateTo } from './utils';
3
3
  /**
4
4
  * AuthRouting interface.
5
5
  *
@@ -18,10 +18,12 @@ import { getRoutePath, navigateTo } from './utils';
18
18
  * @public
19
19
  */
20
20
  export interface AuthRouting {
21
- /** {@inheritDoc navigateTo} */
22
- navigateTo: typeof navigateTo;
23
21
  /** {@inheritDoc getRoutePath} */
24
22
  getRoutePath: typeof getRoutePath;
23
+ /** {@inheritDoc isMFRoute} */
24
+ isMFRoute: typeof isMFRoute;
25
+ /** {@inheritDoc navigateTo} */
26
+ navigateTo: typeof navigateTo;
25
27
  }
26
28
  /**
27
29
  * Default AuthRouting.
@@ -31,10 +33,12 @@ export interface AuthRouting {
31
33
  export declare class DefaultAuthRouting implements AuthRouting {
32
34
  /** @internal */
33
35
  private config;
34
- /** {@inheritDoc AuthRouting.navigateTo} */
35
- navigateTo(route: AuthRoutes | string): void;
36
36
  /** {@inheritDoc AuthRouting.getRoutePath} */
37
37
  getRoutePath(route: AuthRoutes | string): string;
38
+ /** {@inheritDoc AuthRouting.isMFRoute} */
39
+ isMFRoute(pathname?: string): boolean;
40
+ /** {@inheritDoc AuthRouting.navigateTo} */
41
+ navigateTo(route: AuthRoutes | string): void;
38
42
  }
39
43
  /**
40
44
  * AuthRouting DI key.
@@ -1 +1 @@
1
- {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../src/routes/routing.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,WAAW;IAC1B,+BAA+B;IAC/B,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,iCAAiC;IACjC,YAAY,EAAE,OAAO,YAAY,CAAC;CACnC;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,WAAW;IACpD,gBAAgB;IACJ,OAAO,CAAC,MAAM,CAAa;IAEvC,2CAA2C;IAC3C,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM;IAIrC,6CAA6C;IAC7C,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM;CAGxC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,mEAA0E,CAAC;AAEnG;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAE5C"}
1
+ {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../src/routes/routing.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE9D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,8BAA8B;IAC9B,SAAS,EAAE,OAAO,SAAS,CAAC;IAC5B,+BAA+B;IAC/B,UAAU,EAAE,OAAO,UAAU,CAAC;CAC/B;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,WAAW;IACpD,gBAAgB;IACJ,OAAO,CAAC,MAAM,CAAa;IAEvC,6CAA6C;IAC7C,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM;IAIvC,0CAA0C;IAC1C,SAAS,CAAC,QAAQ,GAAE,MAA0B;IAI9C,2CAA2C;IAC3C,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM;CAGtC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,mEAA0E,CAAC;AAEnG;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAE5C"}
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import { ResourceType } from '@genesislcap/foundation-utils';
2
+ import { assureDesignSystem, ResourceType, } from '@genesislcap/foundation-utils';
3
3
  import { logger } from '../utils';
4
4
  /**
5
5
  * zeroDesignSystemImport.
@@ -9,18 +9,21 @@ import { logger } from '../utils';
9
9
  */
10
10
  function zeroDesignSystemImport() {
11
11
  return __awaiter(this, void 0, void 0, function* () {
12
+ let module;
12
13
  let type = ResourceType.remote;
13
14
  try {
14
- return yield import(
15
+ module = yield import(
15
16
  /* webpackChunkName: "foundation-zero" */
16
17
  'foundationZero/ZeroDesignSystem');
18
+ return assureDesignSystem(module);
17
19
  }
18
20
  catch (e) {
19
21
  logger.info(`Please note remoteEntry.js load errors are expected if module federated dependencies are offline. Falling back to locally bundled versions.`);
20
22
  type = ResourceType.local;
21
- return yield import(
23
+ module = yield import(
22
24
  /* webpackChunkName: "foundation-zero" */
23
25
  '@genesislcap/foundation-zero');
26
+ return assureDesignSystem(module);
24
27
  }
25
28
  finally {
26
29
  logger.debug(`Using '${type}' version of foundation-zero`);
@@ -1,6 +1,6 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
2
  import { EventEmitter } from '@genesislcap/foundation-events';
3
- import { customElement, FASTElement } from '@microsoft/fast-element';
3
+ import { customElement, FASTElement, observable, volatile, } from '@microsoft/fast-element';
4
4
  import { Container, inject, Registration } from '@microsoft/fast-foundation';
5
5
  import { DefaultRouteRecognizer } from '@microsoft/fast-router';
6
6
  import { classNames } from '@microsoft/fast-web-utilities';
@@ -113,6 +113,9 @@ __decorate([
113
113
  __decorate([
114
114
  Container
115
115
  ], FoundationAuth.prototype, "container", void 0);
116
+ __decorate([
117
+ volatile
118
+ ], FoundationAuth.prototype, "classNames", null);
116
119
  /**
117
120
  * ZeroAuth.
118
121
  *
@@ -184,6 +187,9 @@ let ZeroAuth = class ZeroAuth extends FoundationAuth {
184
187
  return super.isReady && this.zeroReady;
185
188
  }
186
189
  };
190
+ __decorate([
191
+ observable
192
+ ], ZeroAuth.prototype, "zeroReady", void 0);
187
193
  ZeroAuth = __decorate([
188
194
  customElement({
189
195
  name: 'zero-auth',
@@ -1,21 +1,25 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { DI } from '@microsoft/fast-foundation';
3
3
  import { AuthConfig } from '../config/config';
4
- import { getRoutePath, navigateTo } from './utils';
4
+ import { getRoutePath, isMFRoute, navigateTo } from './utils';
5
5
  /**
6
6
  * Default AuthRouting.
7
7
  *
8
8
  * @public
9
9
  */
10
10
  export class DefaultAuthRouting {
11
- /** {@inheritDoc AuthRouting.navigateTo} */
12
- navigateTo(route) {
13
- navigateTo(this.getRoutePath(route));
14
- }
15
11
  /** {@inheritDoc AuthRouting.getRoutePath} */
16
12
  getRoutePath(route) {
17
13
  return getRoutePath(route, this.config.hostPath);
18
14
  }
15
+ /** {@inheritDoc AuthRouting.isMFRoute} */
16
+ isMFRoute(pathname = location.pathname) {
17
+ return isMFRoute(pathname);
18
+ }
19
+ /** {@inheritDoc AuthRouting.navigateTo} */
20
+ navigateTo(route) {
21
+ navigateTo(this.getRoutePath(route));
22
+ }
19
23
  }
20
24
  __decorate([
21
25
  AuthConfig
@@ -454,10 +454,12 @@ export declare type AuthRoutes = (typeof AuthRoutes)[keyof typeof AuthRoutes];
454
454
  * @public
455
455
  */
456
456
  declare interface AuthRouting {
457
- /** {@inheritDoc navigateTo} */
458
- navigateTo: typeof navigateTo;
459
457
  /** {@inheritDoc getRoutePath} */
460
458
  getRoutePath: typeof getRoutePath;
459
+ /** {@inheritDoc isMFRoute} */
460
+ isMFRoute: typeof isMFRoute;
461
+ /** {@inheritDoc navigateTo} */
462
+ navigateTo: typeof navigateTo;
461
463
  }
462
464
 
463
465
  /**
@@ -1443,10 +1445,9 @@ declare const FoundationAuth_base: abstract new (...args: any[]) => {
1443
1445
  inert: boolean;
1444
1446
  innerText: string;
1445
1447
  lang: string;
1446
- /**
1447
- * @internal
1448
- */
1449
- readonly offsetHeight: number;
1448
+ readonly offsetHeight: number; /**
1449
+ * @internal
1450
+ */
1450
1451
  readonly offsetLeft: number;
1451
1452
  readonly offsetParent: Element;
1452
1453
  readonly offsetTop: number;
@@ -1477,11 +1478,11 @@ declare const FoundationAuth_base: abstract new (...args: any[]) => {
1477
1478
  readonly ownerDocument: Document;
1478
1479
  readonly part: DOMTokenList;
1479
1480
  readonly prefix: string;
1480
- readonly scrollHeight: number; /**
1481
+ readonly scrollHeight: number;
1482
+ scrollLeft: number;
1483
+ scrollTop: number; /**
1481
1484
  * @internal
1482
1485
  */
1483
- scrollLeft: number;
1484
- scrollTop: number;
1485
1486
  readonly scrollWidth: number;
1486
1487
  readonly shadowRoot: ShadowRoot;
1487
1488
  slot: string;
@@ -2767,7 +2768,7 @@ export declare class ZeroAuth extends FoundationAuth {
2767
2768
  /**
2768
2769
  * @internal
2769
2770
  */
2770
- protected zeroReady: boolean;
2771
+ zeroReady: boolean;
2771
2772
  /**
2772
2773
  * @internal
2773
2774
  */
@@ -1542,7 +1542,7 @@ export class ZeroAuth extends FoundationAuth {
1542
1542
  // @internal (undocumented)
1543
1543
  protected loadRemotes(): Promise<void>;
1544
1544
  // @internal (undocumented)
1545
- protected zeroReady: boolean;
1545
+ zeroReady: boolean;
1546
1546
  }
1547
1547
 
1548
1548
  // Warnings were encountered during analysis:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-auth",
3
3
  "description": "Genesis Foundation Auth",
4
- "version": "14.103.0-auth-mf.23",
4
+ "version": "14.103.0-auth-mf.25",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-auth.d.ts",
@@ -98,19 +98,19 @@
98
98
  }
99
99
  },
100
100
  "devDependencies": {
101
- "@genesislcap/foundation-testing": "14.103.0-auth-mf.23",
102
- "@genesislcap/genx": "14.103.0-auth-mf.23",
101
+ "@genesislcap/foundation-testing": "14.103.0-auth-mf.25",
102
+ "@genesislcap/genx": "14.103.0-auth-mf.25",
103
103
  "rimraf": "^3.0.2"
104
104
  },
105
105
  "dependencies": {
106
- "@genesislcap/foundation-comms": "14.103.0-auth-mf.23",
107
- "@genesislcap/foundation-events": "14.103.0-auth-mf.23",
108
- "@genesislcap/foundation-logger": "14.103.0-auth-mf.23",
109
- "@genesislcap/foundation-state-machine": "14.103.0-auth-mf.23",
110
- "@genesislcap/foundation-store": "14.103.0-auth-mf.23",
111
- "@genesislcap/foundation-ui": "14.103.0-auth-mf.23",
112
- "@genesislcap/foundation-utils": "14.103.0-auth-mf.23",
113
- "@genesislcap/foundation-zero": "14.103.0-auth-mf.23",
106
+ "@genesislcap/foundation-comms": "14.103.0-auth-mf.25",
107
+ "@genesislcap/foundation-events": "14.103.0-auth-mf.25",
108
+ "@genesislcap/foundation-logger": "14.103.0-auth-mf.25",
109
+ "@genesislcap/foundation-state-machine": "14.103.0-auth-mf.25",
110
+ "@genesislcap/foundation-store": "14.103.0-auth-mf.25",
111
+ "@genesislcap/foundation-ui": "14.103.0-auth-mf.25",
112
+ "@genesislcap/foundation-utils": "14.103.0-auth-mf.25",
113
+ "@genesislcap/foundation-zero": "14.103.0-auth-mf.25",
114
114
  "@microsoft/fast-components": "^2.21.3",
115
115
  "@microsoft/fast-element": "^1.7.0",
116
116
  "@microsoft/fast-foundation": "^2.33.2",
@@ -130,5 +130,5 @@
130
130
  "publishConfig": {
131
131
  "access": "public"
132
132
  },
133
- "gitHead": "66e311fb26ce45f26e0083e7075e73948e1765e9"
133
+ "gitHead": "607a0700963e9592ec66a2c7eb8544c940660d3d"
134
134
  }