@genesislcap/foundation-login 14.161.0 → 14.162.1
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/README.md +2 -0
- package/dist/dts/main/main.d.ts +2 -1
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/esm/main/main.js +2 -1
- package/dist/foundation-login.api.json +1 -1
- package/dist/foundation-login.d.ts +2 -1
- package/docs/api/foundation-login.login.md +1 -1
- package/package.json +14 -14
package/README.md
CHANGED
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -100,7 +100,8 @@ import { MainRouterConfig } from '../routes';
|
|
|
100
100
|
* }
|
|
101
101
|
* ```
|
|
102
102
|
*
|
|
103
|
-
* @deprecated -
|
|
103
|
+
* @deprecated - Use '\@genesislcap/pbc-auth' instead.
|
|
104
|
+
* 'https://www.npmjs.com/package/\@genesislcap/pbc-auth'
|
|
104
105
|
*
|
|
105
106
|
* @public
|
|
106
107
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAwB,MAAM,4BAA4B,CAAC;AAG7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAwB,MAAM,4BAA4B,CAAC;AAG7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsGG;AACH,qBACa,KAAM,SAAQ,WAAW;IACpC;;;;;OAKG;IACuB,MAAM,EAAG,gBAAgB,CAAC;IAEpD;;;OAGG;IACQ,SAAS,EAAG,SAAS,CAAC;IAEjC;;;OAGG;IACM,OAAO,EAAG,OAAO,CAAC;IAE3B;;;OAGG;IACS,KAAK,EAAE,OAAO,CAAS;IAEnC;;;OAGG;IACS,QAAQ,EAAG,WAAW,CAAC;IAEnC;;OAEG;IACG,iBAAiB;IAQvB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,gBAAgB;IAchB;;;OAGG;IACG,wBAAwB;IAa9B;;OAEG;IACH,SAAS,CAAC,sBAAsB;CAgBjC;AAED;;;;;;;GAOG;AACH,qBAIa,WAAY,SAAQ,KAAK;IAC9B,wBAAwB;CAG/B"}
|
package/dist/esm/main/main.js
CHANGED
|
@@ -105,7 +105,8 @@ import { definition, standaloneDefinition } from './main.definition';
|
|
|
105
105
|
* }
|
|
106
106
|
* ```
|
|
107
107
|
*
|
|
108
|
-
* @deprecated -
|
|
108
|
+
* @deprecated - Use '\@genesislcap/pbc-auth' instead.
|
|
109
|
+
* 'https://www.npmjs.com/package/\@genesislcap/pbc-auth'
|
|
109
110
|
*
|
|
110
111
|
* @public
|
|
111
112
|
*/
|
|
@@ -866,7 +866,7 @@
|
|
|
866
866
|
{
|
|
867
867
|
"kind": "Class",
|
|
868
868
|
"canonicalReference": "@genesislcap/foundation-login!Login:class",
|
|
869
|
-
"docComment": "/**\n * Defines the login class which handles account authentication from the front-end\n *\n * @remarks\n *\n * Add the Login class as a router element, and it will handle the account authentication for you. Requires use of `@genesislcap/foundation-comms` for the {@link @genesislcap/foundation-comms#Auth | Auth} and {@link @genesislcap/foundation#Session | Session} classes.\n *\n * There are a lot of configuration options available, and different authentication types (such as login via SSO). Use the modules exported `configure` and `define` functions for more power.\n *\n * @deprecated\n *\n * -
|
|
869
|
+
"docComment": "/**\n * Defines the login class which handles account authentication from the front-end\n *\n * @remarks\n *\n * Add the Login class as a router element, and it will handle the account authentication for you. Requires use of `@genesislcap/foundation-comms` for the {@link @genesislcap/foundation-comms#Auth | Auth} and {@link @genesislcap/foundation#Session | Session} classes.\n *\n * There are a lot of configuration options available, and different authentication types (such as login via SSO). Use the modules exported `configure` and `define` functions for more power.\n *\n * @deprecated\n *\n * - Use '\\@genesislcap/pbc-auth' instead. 'https://www.npmjs.com/package/\\@genesislcap/pbc-auth'\n *\n * @example\n *\n * The following is an example of using it in your app, setting it up in the router configuration. This isn't a complete routes confutation, but it contains all required configuration in regard to adding Login functionality.\n * ```ts\n * // Import required dependencies from the foundation-login package\n * import { Login } from '@genesislcap/foundation-login';\n * // Import required dependencies from the foundation-comms package\n * // You could also import analytics events and set them up in the NavigationContributor\n * import { Auth, Session } from '@genesislcap/foundation-comms';\n *\n * type RouterSettings = {\n * public?: boolean;\n * autoAuth?: boolean;\n * }\n *\n * // Define your router config\n * export class MainRouterConfig extends RouterConfiguration<RouterSettings> {\n * // Ensure you inject in required dependencies\n * constructor(\n * @Auth private auth: Auth,\n * @Session private session: Session\n * ) {\n * super();\n * }\n *\n * // Add Login as a route\n * public configure() {\n * ...\n * this.routes.map(\n * { path: '', redirect: 'login' },\n * {\n * path: 'login',\n * element: Login,\n * title: 'Login',\n * name: 'login',\n * layout: loginLayout,\n * settings: { public: true },\n * childRouters: true,\n * },\n * ... // Other routes config here\n * );\n *\n * const session = this.session;\n * const auth = this.auth;\n *\n * // Example of a FallbackRouteDefinition\n * this.routes.fallback(() =>\n * auth.isLoggedIn ? { redirect: 'not-found' } : { redirect: 'login' }\n * );\n *\n * // Example of a NavigationContributor\n * this.contributors.push({\n * navigate: async (phase) => {\n * const settings = phase.route.settings;\n *\n * // Could add in processes such as analytics here\n *\n * // If public route don't block\n * if (settings && settings.public) {\n * return;\n * }\n *\n * // If logged in don't block\n * if (auth.isLoggedIn) {\n * return;\n * }\n *\n * // If autoAuth and session is valid try to connect+auto-login\n * if (settings && settings.autoAuth && (await auth.reAuthFromSession())) {\n * return;\n * }\n *\n * // Otherwise route them to login\n * phase.cancel(() => {\n * session.captureReturnUrl();\n * Route.name.replace(phase.router, 'login');\n * });\n * },\n * });\n * }\n *\n * ... // Other configuration/methods\n *\n * }\n * ```\n *\n * @public\n */\n",
|
|
870
870
|
"excerptTokens": [
|
|
871
871
|
{
|
|
872
872
|
"kind": "Content",
|
|
@@ -418,7 +418,8 @@ export declare function isMFRoute(pathname?: string): boolean;
|
|
|
418
418
|
* }
|
|
419
419
|
* ```
|
|
420
420
|
*
|
|
421
|
-
* @deprecated -
|
|
421
|
+
* @deprecated - Use '\@genesislcap/pbc-auth' instead.
|
|
422
|
+
* 'https://www.npmjs.com/package/\@genesislcap/pbc-auth'
|
|
422
423
|
*
|
|
423
424
|
* @public
|
|
424
425
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
> Warning: This API is now obsolete.
|
|
8
8
|
>
|
|
9
|
-
> -
|
|
9
|
+
> - Use '<!-- -->@<!-- -->genesislcap/pbc-auth' instead. 'https://www.npmjs.com/package/<!-- -->@<!-- -->genesislcap/pbc-auth'
|
|
10
10
|
>
|
|
11
11
|
|
|
12
12
|
Defines the login class which handles account authentication from the front-end
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-login",
|
|
3
3
|
"description": "Genesis Foundation Login",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.162.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-login.d.ts",
|
|
@@ -59,21 +59,21 @@
|
|
|
59
59
|
"test:debug": "genx test --debug"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@genesislcap/foundation-testing": "14.
|
|
63
|
-
"@genesislcap/genx": "14.
|
|
64
|
-
"@genesislcap/rollup-builder": "14.
|
|
65
|
-
"@genesislcap/ts-builder": "14.
|
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
67
|
-
"@genesislcap/vite-builder": "14.
|
|
68
|
-
"@genesislcap/webpack-builder": "14.
|
|
62
|
+
"@genesislcap/foundation-testing": "14.162.1",
|
|
63
|
+
"@genesislcap/genx": "14.162.1",
|
|
64
|
+
"@genesislcap/rollup-builder": "14.162.1",
|
|
65
|
+
"@genesislcap/ts-builder": "14.162.1",
|
|
66
|
+
"@genesislcap/uvu-playwright-builder": "14.162.1",
|
|
67
|
+
"@genesislcap/vite-builder": "14.162.1",
|
|
68
|
+
"@genesislcap/webpack-builder": "14.162.1",
|
|
69
69
|
"rimraf": "^3.0.2"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@genesislcap/foundation-comms": "14.
|
|
73
|
-
"@genesislcap/foundation-logger": "14.
|
|
74
|
-
"@genesislcap/foundation-ui": "14.
|
|
75
|
-
"@genesislcap/foundation-utils": "14.
|
|
76
|
-
"@genesislcap/foundation-zero": "14.
|
|
72
|
+
"@genesislcap/foundation-comms": "14.162.1",
|
|
73
|
+
"@genesislcap/foundation-logger": "14.162.1",
|
|
74
|
+
"@genesislcap/foundation-ui": "14.162.1",
|
|
75
|
+
"@genesislcap/foundation-utils": "14.162.1",
|
|
76
|
+
"@genesislcap/foundation-zero": "14.162.1",
|
|
77
77
|
"@microsoft/fast-components": "^2.30.6",
|
|
78
78
|
"@microsoft/fast-element": "^1.12.0",
|
|
79
79
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"access": "public"
|
|
91
91
|
},
|
|
92
92
|
"customElements": "dist/custom-elements.json",
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "3bdf3555a95a41116950dde7656081b9b693ffbc"
|
|
94
94
|
}
|