@genesislcap/foundation-auth 14.103.0-auth-mf.24 → 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,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;
|
|
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,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
|
/**
|
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.
|
|
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.
|
|
102
|
-
"@genesislcap/genx": "14.103.0-auth-mf.
|
|
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.
|
|
107
|
-
"@genesislcap/foundation-events": "14.103.0-auth-mf.
|
|
108
|
-
"@genesislcap/foundation-logger": "14.103.0-auth-mf.
|
|
109
|
-
"@genesislcap/foundation-state-machine": "14.103.0-auth-mf.
|
|
110
|
-
"@genesislcap/foundation-store": "14.103.0-auth-mf.
|
|
111
|
-
"@genesislcap/foundation-ui": "14.103.0-auth-mf.
|
|
112
|
-
"@genesislcap/foundation-utils": "14.103.0-auth-mf.
|
|
113
|
-
"@genesislcap/foundation-zero": "14.103.0-auth-mf.
|
|
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": "
|
|
133
|
+
"gitHead": "607a0700963e9592ec66a2c7eb8544c940660d3d"
|
|
134
134
|
}
|