@genesislcap/foundation-auth 14.71.1-auth-mf.21 → 14.103.0-auth-mf.23
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 +62 -12
- package/dist/dts/config/config.d.ts +0 -9
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/dto/IDP.d.ts +9 -0
- package/dist/dts/dto/IDP.d.ts.map +1 -0
- package/dist/dts/dto/index.d.ts +1 -0
- package/dist/dts/dto/index.d.ts.map +1 -1
- package/dist/dts/entity/idp.d.ts +9 -0
- package/dist/dts/entity/idp.d.ts.map +1 -0
- package/dist/dts/entity/index.d.ts +1 -0
- package/dist/dts/entity/index.d.ts.map +1 -1
- package/dist/dts/entity/loginNack.d.ts +2 -0
- package/dist/dts/entity/loginNack.d.ts.map +1 -1
- package/dist/dts/entity/nack.d.ts +4 -0
- package/dist/dts/entity/nack.d.ts.map +1 -1
- package/dist/dts/env.d.ts +10 -0
- package/dist/dts/env.d.ts.map +1 -1
- package/dist/dts/machine/actions.d.ts +15 -0
- package/dist/dts/machine/actions.d.ts.map +1 -0
- package/dist/dts/machine/errors.d.ts +26 -0
- package/dist/dts/machine/errors.d.ts.map +1 -0
- package/dist/dts/machine/guards.d.ts +9 -0
- package/dist/dts/machine/guards.d.ts.map +1 -0
- package/dist/dts/machine/index.d.ts +2 -0
- package/dist/dts/machine/index.d.ts.map +1 -1
- package/dist/dts/machine/machine.d.ts +1 -1
- package/dist/dts/machine/machine.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +35 -3
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/mapper/loginMapper.d.ts.map +1 -1
- package/dist/dts/mapper/passwordManagementMapper.d.ts +1 -1
- package/dist/dts/mapper/passwordManagementMapper.d.ts.map +1 -1
- package/dist/dts/mapper/types.d.ts +2 -2
- package/dist/dts/mapper/utils.d.ts +20 -10
- package/dist/dts/mapper/utils.d.ts.map +1 -1
- package/dist/dts/routes/base.d.ts +4 -11
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/dts/routes/forgot-password/forgot-password.d.ts +0 -1
- package/dist/dts/routes/forgot-password/forgot-password.d.ts.map +1 -1
- package/dist/dts/routes/index.d.ts +0 -1
- package/dist/dts/routes/index.d.ts.map +1 -1
- package/dist/dts/routes/login/login.d.ts +1 -1
- package/dist/dts/routes/login/login.d.ts.map +1 -1
- package/dist/dts/routes/login/login.template.d.ts.map +1 -1
- package/dist/dts/routes/logout/logout.template.d.ts.map +1 -1
- package/dist/dts/routes/request-account/request-account.template.d.ts.map +1 -1
- package/dist/dts/routes/reset-password/reset-password.d.ts +0 -1
- package/dist/dts/routes/reset-password/reset-password.d.ts.map +1 -1
- package/dist/dts/routes/verify/verify.template.d.ts.map +1 -1
- package/dist/dts/services/idp.d.ts +41 -0
- package/dist/dts/services/idp.d.ts.map +1 -0
- package/dist/dts/services/index.d.ts +2 -0
- package/dist/dts/services/index.d.ts.map +1 -0
- package/dist/dts/store/auth.d.ts +18 -5
- package/dist/dts/store/auth.d.ts.map +1 -1
- package/dist/dts/store/authFormEntry.d.ts +57 -21
- package/dist/dts/store/authFormEntry.d.ts.map +1 -1
- package/dist/dts/tags/tags.d.ts +0 -7
- package/dist/dts/tags/tags.d.ts.map +1 -1
- package/dist/dts/user/user.d.ts +2 -2
- package/dist/dts/user/user.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +0 -1
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/logger.d.ts +1 -1
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/esm/config/config.js +1 -1
- package/dist/esm/dto/IDP.js +1 -0
- package/dist/esm/entity/idp.js +1 -0
- package/dist/esm/entity/index.js +1 -0
- package/dist/esm/env.js +29 -1
- package/dist/esm/machine/actions.js +24 -0
- package/dist/esm/machine/errors.js +40 -0
- package/dist/esm/machine/guards.js +11 -0
- package/dist/esm/machine/index.js +2 -0
- package/dist/esm/machine/machine.js +57 -66
- package/dist/esm/main/main.js +46 -2
- package/dist/esm/main/main.styles.js +3 -1
- package/dist/esm/main/main.template.js +2 -1
- package/dist/esm/mapper/loginMapper.js +2 -2
- package/dist/esm/mapper/passwordManagementMapper.js +1 -1
- package/dist/esm/mapper/utils.js +69 -13
- package/dist/esm/routes/base.js +9 -13
- package/dist/esm/routes/config.js +1 -1
- package/dist/esm/routes/forgot-password/forgot-password.js +0 -4
- package/dist/esm/routes/forgot-password/forgot-password.template.js +2 -2
- package/dist/esm/routes/index.js +0 -1
- package/dist/esm/routes/login/login.js +13 -12
- package/dist/esm/routes/login/login.template.js +8 -7
- package/dist/esm/routes/logout/logout.template.js +1 -0
- package/dist/esm/routes/request-account/request-account.template.js +3 -2
- package/dist/esm/routes/reset-password/reset-password.js +0 -4
- package/dist/esm/routes/reset-password/reset-password.template.js +1 -1
- package/dist/esm/routes/verify/verify.template.js +3 -2
- package/dist/esm/services/idp.js +71 -0
- package/dist/esm/services/index.js +1 -0
- package/dist/esm/store/auth.js +25 -3
- package/dist/esm/store/authFormEntry.js +62 -49
- package/dist/esm/tags/tags.js +0 -22
- package/dist/esm/user/user.js +6 -2
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/logger.js +1 -1
- package/dist/foundation-auth.api.json +749 -784
- package/dist/foundation-auth.d.ts +202 -96
- package/docs/api/foundation-auth.authformentryeventmap.md +1 -1
- package/docs/api/foundation-auth.authformentrystore.idps.md +1 -1
- package/docs/api/foundation-auth.authformentrystore.md +4 -6
- package/docs/api/foundation-auth.authformentrystore.onselectedidpchanged.md +3 -3
- package/docs/api/foundation-auth.authformentrystore.password2.md +5 -0
- package/docs/api/foundation-auth.authformentrystore.selectedidp.md +3 -3
- package/docs/api/{foundation-auth.authformentrystore.host.md → foundation-auth.authformentrystore.ssologinurl.md} +3 -3
- package/docs/api/foundation-auth.authstore.errormessages.md +11 -0
- package/docs/api/foundation-auth.authstore.md +2 -0
- package/docs/api/foundation-auth.authstore.metamessages.md +11 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.autofilling.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.email.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.haspasswordexpired.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.idps.md +2 -1
- package/docs/api/{foundation-auth.defaultauthformentrystore.haserrors.md → foundation-auth.defaultauthformentrystore.idpservice.md} +3 -3
- package/docs/api/foundation-auth.defaultauthformentrystore.md +6 -16
- package/docs/api/foundation-auth.defaultauthformentrystore.mfacode.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onautofillform.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onemailchanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onorganisationchanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onpassword2changed.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onpasswordchanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onselectedidpchanged.md +4 -3
- package/docs/api/foundation-auth.defaultauthformentrystore.onshowpasswordschanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onssotogglechanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onusernamechanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.organisation.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.orgusername.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.password.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.password2.md +5 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.passwordresettoken.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.selectedidp.md +4 -3
- package/docs/api/foundation-auth.defaultauthformentrystore.showpasswords.md +1 -0
- package/docs/api/{foundation-auth.defaultauthformentrystore.message.md → foundation-auth.defaultauthformentrystore.ssologinurl.md} +4 -3
- package/docs/api/foundation-auth.defaultauthformentrystore.ssotoggled.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.termsagreed.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.username.md +1 -0
- package/docs/api/foundation-auth.defaultauthmachine._constructor_.md +1 -1
- package/docs/api/{foundation-auth.defaultauthmachine.ondonedto.md → foundation-auth.defaultauthmachine.dtotransition.md} +3 -3
- package/docs/api/foundation-auth.defaultauthmachine.md +1 -1
- package/docs/api/foundation-auth.defaultauthstore.errormessages.md +12 -0
- package/docs/api/foundation-auth.defaultauthstore.ispending.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.md +3 -1
- package/docs/api/foundation-auth.defaultauthstore.metamessages.md +12 -0
- package/docs/api/foundation-auth.defaultauthstore.onchangepassword.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onforgotpassword.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onlogin.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onlogout.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onresetpassword.md +1 -0
- package/docs/api/{foundation-auth.idpresponse.id.md → foundation-auth.fromidpdto.md} +5 -3
- package/docs/api/foundation-auth.idp.description.md +11 -0
- package/docs/api/foundation-auth.idp.id.md +3 -3
- package/docs/api/foundation-auth.idp.md +3 -2
- package/docs/api/foundation-auth.idp.type.md +3 -3
- package/docs/api/foundation-auth.is200nack.md +13 -0
- package/docs/api/foundation-auth.isnackdto.md +1 -1
- package/docs/api/foundation-auth.isnackentity.md +24 -0
- package/docs/api/foundation-auth.logger.md +1 -1
- package/docs/api/foundation-auth.loginnack.hasincorrectcredentials.md +11 -0
- package/docs/api/foundation-auth.loginnack.maxtriesreached.md +11 -0
- package/docs/api/foundation-auth.loginnack.md +2 -0
- package/docs/api/foundation-auth.md +10 -11
- package/docs/api/foundation-auth.seterror.md +25 -0
- package/docs/api/{foundation-auth.idpresponse.type.md → foundation-auth.sso_list_url.md} +4 -3
- package/docs/api/foundation-auth.sso_login_url.md +12 -0
- package/docs/api/foundation-auth.ssoconfig.md +0 -1
- package/docs/api/foundation-auth.user.addauthenticationchangelistener.md +3 -3
- package/docs/api-report.md +170 -80
- package/package.json +12 -13
- package/dist/dts/utils/sso.d.ts +0 -27
- package/dist/dts/utils/sso.d.ts.map +0 -1
- package/dist/esm/utils/sso.js +0 -50
- package/docs/api/foundation-auth.authformentrystore.haserrors.md +0 -11
- package/docs/api/foundation-auth.authformentrystore.message.md +0 -11
- package/docs/api/foundation-auth.authrouting.getroutepath.md +0 -13
- package/docs/api/foundation-auth.authrouting.md +0 -37
- package/docs/api/foundation-auth.authrouting.navigateto.md +0 -16
- package/docs/api/foundation-auth.defaultauthformentrystore.autofill.md +0 -15
- package/docs/api/foundation-auth.defaultauthformentrystore.fetchmachine.md +0 -11
- package/docs/api/foundation-auth.defaultauthformentrystore.host.md +0 -11
- package/docs/api/foundation-auth.defaultauthformentrystore.resetidpstate.md +0 -15
- package/docs/api/foundation-auth.defaultauthformentrystore.ssotoggledchanged.md +0 -23
- package/docs/api/foundation-auth.defaultauthrouting.getroutepath.md +0 -24
- package/docs/api/foundation-auth.defaultauthrouting.md +0 -22
- package/docs/api/foundation-auth.defaultauthrouting.navigateto.md +0 -26
- package/docs/api/foundation-auth.fetchidps.md +0 -13
- package/docs/api/foundation-auth.fromdtonackerrorwarningarray.md +0 -12
- package/docs/api/foundation-auth.getauthrouting.md +0 -32
- package/docs/api/foundation-auth.getssologinurl.md +0 -13
- package/docs/api/foundation-auth.idpresponse.md +0 -20
- package/docs/api/foundation-auth.includeserrorwarningcode.md +0 -13
|
@@ -3,6 +3,9 @@ import { Container } from '@microsoft/fast-foundation';
|
|
|
3
3
|
import { AuthConfig } from '../config/config';
|
|
4
4
|
import { AuthEventMap, AuthFormEntryEventMap, AuthStore } from '../store';
|
|
5
5
|
import { AuthRouting } from './routing';
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
6
9
|
type EventMap = AuthEventMap & AuthFormEntryEventMap & {};
|
|
7
10
|
/**
|
|
8
11
|
* @internal
|
|
@@ -19,7 +22,7 @@ export type ConfigHost = {
|
|
|
19
22
|
config: AuthConfig;
|
|
20
23
|
};
|
|
21
24
|
declare const ConfigHostElement_base: abstract new (...args: any[]) => {
|
|
22
|
-
$emit<K extends "auth-autofill-form" | "auth-organisation-changed" | "auth-username-changed" | "auth-email-changed" | "auth-password-changed" | "auth-password2-changed" | "auth-showPasswords-changed" | "auth-
|
|
25
|
+
$emit<K extends "auth-autofill-form" | "auth-organisation-changed" | "auth-username-changed" | "auth-email-changed" | "auth-password-changed" | "auth-password2-changed" | "auth-showPasswords-changed" | "auth-selectedIdp-changed" | "auth-ssoToggled-changed" | "store-connected" | "store-disconnected" | "store-ready" | "auth-machine-event" | "auth-login" | "auth-logout" | "auth-change-password" | "auth-forgot-password" | "auth-reset-password">(...args: EventMap[K] extends void ? [type: K, options?: import("@genesislcap/foundation-events").EmitOptions] : [type: K, detail: EventMap[K], options?: import("@genesislcap/foundation-events").EmitOptions]): import("@genesislcap/foundation-events").EmitReturn;
|
|
23
26
|
accessKey: string;
|
|
24
27
|
readonly accessKeyLabel: string;
|
|
25
28
|
autocapitalize: string;
|
|
@@ -42,13 +45,7 @@ declare const ConfigHostElement_base: abstract new (...args: any[]) => {
|
|
|
42
45
|
click(): void;
|
|
43
46
|
addEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
44
47
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
48
|
removeEventListener<K_2 extends keyof HTMLElementEventMap>(type: K_2, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_2]) => any, options?: boolean | EventListenerOptions): void;
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
49
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
53
50
|
readonly attributes: NamedNodeMap;
|
|
54
51
|
readonly classList: DOMTokenList;
|
|
@@ -146,9 +143,6 @@ declare const ConfigHostElement_base: abstract new (...args: any[]) => {
|
|
|
146
143
|
lookupPrefix(namespace: string): string;
|
|
147
144
|
normalize(): void;
|
|
148
145
|
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
149
|
-
/**
|
|
150
|
-
* @internal
|
|
151
|
-
*/
|
|
152
146
|
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
153
147
|
readonly ATTRIBUTE_NODE: number;
|
|
154
148
|
readonly CDATA_SECTION_NODE: number;
|
|
@@ -360,7 +354,6 @@ export declare class BaseRoute extends ConfigHostElement {
|
|
|
360
354
|
store: AuthStore;
|
|
361
355
|
routing: AuthRouting;
|
|
362
356
|
onBack: () => void;
|
|
363
|
-
attemptAutofill(): void;
|
|
364
357
|
}
|
|
365
358
|
/**
|
|
366
359
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/routes/base.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,OAAO,EAQR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAqB,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,KAAK,QAAQ,GAAG,YAAY,GAAG,qBAAqB,GAAG,EAAE,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,SAAS,wLAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,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E/B,iBAAiB;CAMlB;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,iBAAiB;IACnC,KAAK,EAAE,SAAS,CAAC;IACf,OAAO,EAAE,WAAW,CAAC;IAElC,MAAM,aAAsC;CAC7C;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,mFAsB7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,mFAiBzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,mFAkBtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,gCAAiC,MAAM,2DAahE,CAAC;AAOF;;GAEG;AACH,eAAO,MAAM,cAAc,8BAA+B,KAAK,GAAG,cAAc,2DAgB/E,CAAC;AA0GF;;GAEG;AACH,eAAO,MAAM,UAAU,kCAAmC,OAAO,2DAUhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,gCAChB,MAAM,eACD,MAAM,aACR,OAAO,2DAWlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,mFASjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/forgot-password/forgot-password.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,qBAKa,cAAe,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/forgot-password/forgot-password.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,qBAKa,cAAe,SAAQ,SAAS;IACrC,QAAQ;CAUf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CredentialManager } from '../../credential';
|
|
2
|
-
import { LoginParams } from '../../machine';
|
|
2
|
+
import { LoginParams } from '../../machine/types';
|
|
3
3
|
import { User } from '../../user';
|
|
4
4
|
import { BaseRoute } from '../base';
|
|
5
5
|
export declare class Login extends BaseRoute {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,iBAAiB,EAAkB,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,iBAAiB,EAAkB,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIpC,qBAKa,KAAM,SAAQ,SAAS;IAC5B,IAAI,EAAE,IAAI,CAAC;IACE,iBAAiB,EAAE,iBAAiB,CAAC;IAExD,iBAAiB;IAajB,OAAO,CAAC,iBAAiB;IAezB,IACI,cAAc,WAIjB;IAED,UAAU;IAmBJ,aAAa;IAInB,KAAK,CAAC,MAAM,EAAE,WAAW;IAIzB,MAAM;IAIN,IAAI,cAAc,YAEjB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA8GrC,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA8GrC,eAAO,MAAM,aAAa,4DAoCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/logout/logout.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"logout.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/logout/logout.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,cAAc,6DAY1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-account.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/request-account/request-account.template.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"request-account.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/request-account/request-account.template.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,sBAAsB,qEA8BlC,CAAC"}
|
|
@@ -4,7 +4,6 @@ import type { Settings } from '../types';
|
|
|
4
4
|
export declare class ResetPassword extends BaseRoute {
|
|
5
5
|
hasPasswordExpired: boolean;
|
|
6
6
|
passwordResetToken: string;
|
|
7
|
-
connectedCallback(): void;
|
|
8
7
|
enter(phase: NavigationPhase<Settings>): void;
|
|
9
8
|
onSubmit(): Promise<void>;
|
|
10
9
|
get headingText(): "Change Password" | "You are required to change your password";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,qBAKa,aAAc,SAAQ,SAAS;IAC9B,kBAAkB,EAAE,OAAO,CAAS;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAE5C,
|
|
1
|
+
{"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,qBAKa,aAAc,SAAQ,SAAS;IAC9B,kBAAkB,EAAE,OAAO,CAAS;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAE5C,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC;IAKhC,QAAQ;IAiBd,IACI,WAAW,mEAEd;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/verify/verify.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"verify.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/verify/verify.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,cAAc,6DA+B1B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FetchMachine } from '@genesislcap/foundation-state-machine';
|
|
2
|
+
import type { Idp } from '../entity';
|
|
3
|
+
/**
|
|
4
|
+
* IDPService interface.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface IDPService {
|
|
8
|
+
/**
|
|
9
|
+
* @param url - Defaults to `SSO_LIST_URL`.
|
|
10
|
+
*/
|
|
11
|
+
getList(url?: string): Promise<Idp[]>;
|
|
12
|
+
/**
|
|
13
|
+
* @param idp - An idp entity.
|
|
14
|
+
*/
|
|
15
|
+
getLoginUrl(idp: Idp): string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Default IDPService.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare class DefaultIDPService implements IDPService {
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
readonly fetchMachine: FetchMachine;
|
|
26
|
+
/**
|
|
27
|
+
* The pattern matches `{property}` values in the string.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
protected loginUrlReplacePattern: RegExp;
|
|
31
|
+
/** {@inheritDoc IDPService.getList} */
|
|
32
|
+
getList: (url?: string) => Promise<Idp[]>;
|
|
33
|
+
/** {@inheritDoc IDPService.getLoginUrl} */
|
|
34
|
+
getLoginUrl: (idp: Idp, urlTemplate?: string) => string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* IDPService DI key.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
export declare const IDPService: import("@microsoft/fast-foundation").InterfaceSymbol<IDPService>;
|
|
41
|
+
//# sourceMappingURL=idp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idp.d.ts","sourceRoot":"","sources":["../../../src/services/idp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAIrC;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,OAAO,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CAC/B;AAED;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,UAAU;IAClD;;OAEG;IACW,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAClD;;;OAGG;IACH,SAAS,CAAC,sBAAsB,SAAqB;IAErD,uCAAuC;IACvC,OAAO,SAAe,MAAM,KAAkB,QAAQ,GAAG,EAAE,CAAC,CAoC1D;IAEF,2CAA2C;IAC3C,WAAW,QAAS,GAAG,gBAAe,MAAM,YAK1C;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,kEAAwE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
package/dist/dts/store/auth.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CustomEventMap } from '@genesislcap/foundation-events';
|
|
2
2
|
import { AbstractStoreRoot, StoreRoot, StoreRootEventDetailMap } from '@genesislcap/foundation-store';
|
|
3
3
|
import { AuthConfig } from '../config/config';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import { AuthMachine } from '../machine/machine';
|
|
5
|
+
import type { AuthMachineEventMap, ChangePasswordParams, ForgotPasswordParams, LoginParams, ResetPasswordParams } from '../machine/types';
|
|
6
6
|
import { AuthFormEntryStore } from './authFormEntry';
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
@@ -28,6 +28,8 @@ type InternalAuthEventMap = {};
|
|
|
28
28
|
export interface AuthStore extends StoreRoot {
|
|
29
29
|
readonly isPending: boolean;
|
|
30
30
|
readonly formEntry: AuthFormEntryStore;
|
|
31
|
+
readonly metaMessages: string[];
|
|
32
|
+
readonly errorMessages: string[];
|
|
31
33
|
/**
|
|
32
34
|
* Auth workflows and transient state (context in xstate lingo).
|
|
33
35
|
*/
|
|
@@ -43,7 +45,7 @@ export interface AuthStore extends StoreRoot {
|
|
|
43
45
|
onResetPassword(event: CustomEvent<ResetPasswordParams>): void;
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
|
-
* Default
|
|
48
|
+
* Default AuthStore.
|
|
47
49
|
* @public
|
|
48
50
|
*/
|
|
49
51
|
export declare class DefaultAuthStore extends AbstractStoreRoot<AuthStore, AuthEventMap, InternalAuthEventMap> implements AuthStore {
|
|
@@ -51,18 +53,29 @@ export declare class DefaultAuthStore extends AbstractStoreRoot<AuthStore, AuthE
|
|
|
51
53
|
readonly authMachine: AuthMachine;
|
|
52
54
|
readonly formEntry: AuthFormEntryStore;
|
|
53
55
|
constructor(config: AuthConfig, authMachine: AuthMachine, formEntry: AuthFormEntryStore);
|
|
56
|
+
/** {@inheritDoc AuthStore.isPending} */
|
|
54
57
|
get isPending(): boolean;
|
|
58
|
+
/** {@inheritDoc AuthStore.onMachineEvent} */
|
|
55
59
|
onMachineEvent: EventListener;
|
|
60
|
+
/** {@inheritDoc AuthStore.onLogin} */
|
|
56
61
|
onLogin: EventListener;
|
|
62
|
+
/** {@inheritDoc AuthStore.onLogout} */
|
|
57
63
|
onLogout: EventListener;
|
|
64
|
+
/** {@inheritDoc AuthStore.onChangePassword} */
|
|
58
65
|
onChangePassword: EventListener;
|
|
66
|
+
/** {@inheritDoc AuthStore.onForgotPassword} */
|
|
59
67
|
onForgotPassword: EventListener;
|
|
68
|
+
/** {@inheritDoc AuthStore.onResetPassword} */
|
|
60
69
|
onResetPassword: EventListener;
|
|
70
|
+
/** {@inheritDoc AuthStore.metaMessages} */
|
|
71
|
+
get metaMessages(): string[];
|
|
72
|
+
/** {@inheritDoc AuthStore.errorMessages} */
|
|
73
|
+
get errorMessages(): string[];
|
|
61
74
|
}
|
|
62
75
|
/**
|
|
63
|
-
* DI key
|
|
76
|
+
* AuthStore DI key.
|
|
64
77
|
* @internal
|
|
65
78
|
*/
|
|
66
|
-
export declare const AuthStore: import("@microsoft/fast-foundation").InterfaceSymbol<
|
|
79
|
+
export declare const AuthStore: import("@microsoft/fast-foundation").InterfaceSymbol<AuthStore>;
|
|
67
80
|
export {};
|
|
68
81
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/store/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EACL,iBAAiB,EAEjB,SAAS,EACT,uBAAuB,EACxB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/store/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EACL,iBAAiB,EAEjB,SAAS,EACT,uBAAuB,EACxB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,MA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vE,YAAW,SAAS;IAGN,QAAQ,CAAC,MAAM,EAAE,UAAU;IAC1B,QAAQ,CAAC,WAAW,EAAE,WAAW;IAC1B,QAAQ,CAAC,SAAS,EAAE,kBAAkB;gBAFrC,MAAM,EAAE,UAAU,EACjB,WAAW,EAAE,WAAW,EACjB,SAAS,EAAE,kBAAkB;IAK5D,wCAAwC;IACxC,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,6CAA6C;IAC7C,cAAc,gBAGZ;IAEF,sCAAsC;IACtC,OAAO,gBAKL;IAEF,uCAAuC;IACvC,QAAQ,gBAAuF;IAE/F,+CAA+C;IAC/C,gBAAgB,gBAKd;IAEF,+CAA+C;IAC/C,gBAAgB,gBAKd;IAEF,8CAA8C;IAC9C,eAAe,gBAKb;IAEF,2CAA2C;IAC3C,IAAI,YAAY,aAEf;IAED,4CAA4C;IAC5C,IAAI,aAAa,aAShB;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,iEAA0D,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CustomEventMap } from '@genesislcap/foundation-events';
|
|
2
|
-
import { FetchMachine } from '@genesislcap/foundation-state-machine';
|
|
3
2
|
import { AbstractStore, Store } from '@genesislcap/foundation-store';
|
|
4
3
|
import { AuthConfig } from '../config/config';
|
|
5
4
|
import { CredentialManager } from '../credential';
|
|
6
|
-
import {
|
|
5
|
+
import type { Idp } from '../entity';
|
|
6
|
+
import { IDPService } from '../services';
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -15,7 +15,7 @@ export type AuthFormEntryEventMap = {
|
|
|
15
15
|
'auth-password-changed': string;
|
|
16
16
|
'auth-password2-changed': string;
|
|
17
17
|
'auth-showPasswords-changed': boolean;
|
|
18
|
-
'auth-
|
|
18
|
+
'auth-selectedIdp-changed': string;
|
|
19
19
|
'auth-ssoToggled-changed': boolean;
|
|
20
20
|
};
|
|
21
21
|
declare global {
|
|
@@ -24,7 +24,7 @@ declare global {
|
|
|
24
24
|
}
|
|
25
25
|
type InternalEventMap = {
|
|
26
26
|
'auth-fetch-idps': void;
|
|
27
|
-
'auth-fetch-idps-success':
|
|
27
|
+
'auth-fetch-idps-success': Idp[];
|
|
28
28
|
'auth-fetch-idps-error': Error;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
@@ -32,21 +32,23 @@ type InternalEventMap = {
|
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
34
|
export interface AuthFormEntryStore extends Store {
|
|
35
|
-
readonly host: string;
|
|
36
35
|
readonly organisation: string;
|
|
37
36
|
readonly username: string;
|
|
38
37
|
readonly orgUsername: string;
|
|
39
38
|
readonly email: string;
|
|
40
39
|
readonly password: string;
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* New, confirm etc.
|
|
43
|
+
*/
|
|
41
44
|
readonly password2: string;
|
|
42
45
|
readonly showPasswords: boolean;
|
|
43
46
|
readonly hasPasswordExpired: boolean;
|
|
44
47
|
readonly passwordResetToken: string;
|
|
45
|
-
readonly message: string;
|
|
46
|
-
readonly hasErrors: boolean;
|
|
47
48
|
readonly mfaCode: string;
|
|
48
|
-
readonly idps:
|
|
49
|
-
readonly
|
|
49
|
+
readonly idps: Idp[];
|
|
50
|
+
readonly selectedIdp: Idp;
|
|
51
|
+
readonly ssoLoginUrl: string;
|
|
50
52
|
readonly ssoToggled: boolean;
|
|
51
53
|
readonly termsAgreed: boolean;
|
|
52
54
|
readonly autofilling: boolean;
|
|
@@ -56,54 +58,88 @@ export interface AuthFormEntryStore extends Store {
|
|
|
56
58
|
onPasswordChanged(event: CustomEvent<string>): void;
|
|
57
59
|
onPassword2Changed(event: CustomEvent<string>): void;
|
|
58
60
|
onShowPasswordsChanged(event: CustomEvent<boolean>): void;
|
|
59
|
-
|
|
61
|
+
onSelectedIdpChanged(event: CustomEvent<string>): void;
|
|
60
62
|
onSSOToggleChanged(event: CustomEvent<boolean>): void;
|
|
61
63
|
onAutofillForm(event: CustomEvent<void>): void;
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
64
|
-
* Default
|
|
66
|
+
* Default AuthFormEntryStore.
|
|
65
67
|
* @public
|
|
66
68
|
*/
|
|
67
69
|
export declare class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore, AuthFormEntryEventMap, InternalEventMap> implements AuthFormEntryStore {
|
|
68
70
|
protected config: AuthConfig;
|
|
69
71
|
protected credentialManager: CredentialManager;
|
|
70
|
-
readonly
|
|
71
|
-
|
|
72
|
+
readonly idpService: IDPService;
|
|
73
|
+
/** {@inheritDoc AuthFormEntryStore.organisation} */
|
|
72
74
|
organisation: string;
|
|
75
|
+
/** {@inheritDoc AuthFormEntryStore.username} */
|
|
73
76
|
username: string;
|
|
77
|
+
/** {@inheritDoc AuthFormEntryStore.email} */
|
|
74
78
|
email: string;
|
|
79
|
+
/** {@inheritDoc AuthFormEntryStore.password} */
|
|
75
80
|
password: string;
|
|
81
|
+
/** {@inheritDoc AuthFormEntryStore.password2} */
|
|
76
82
|
password2: string;
|
|
83
|
+
/** {@inheritDoc AuthFormEntryStore.showPasswords} */
|
|
77
84
|
showPasswords: boolean;
|
|
85
|
+
/** {@inheritDoc AuthFormEntryStore.hasPasswordExpired} */
|
|
78
86
|
hasPasswordExpired: boolean;
|
|
87
|
+
/** {@inheritDoc AuthFormEntryStore.passwordResetToken} */
|
|
79
88
|
passwordResetToken: string;
|
|
80
|
-
|
|
81
|
-
hasErrors: boolean;
|
|
89
|
+
/** {@inheritDoc AuthFormEntryStore.mfaCode} */
|
|
82
90
|
mfaCode: string;
|
|
83
|
-
idps
|
|
84
|
-
|
|
91
|
+
/** {@inheritDoc AuthFormEntryStore.idps} */
|
|
92
|
+
idps: Idp[];
|
|
93
|
+
/** {@inheritDoc AuthFormEntryStore.selectedIdp} */
|
|
94
|
+
selectedIdp: Idp;
|
|
95
|
+
/** {@inheritDoc AuthFormEntryStore.ssoToggled} */
|
|
85
96
|
ssoToggled: boolean;
|
|
97
|
+
/** {@inheritDoc AuthFormEntryStore.termsAgreed} */
|
|
86
98
|
termsAgreed: boolean;
|
|
99
|
+
/** {@inheritDoc AuthFormEntryStore.autofilling} */
|
|
87
100
|
autofilling: boolean;
|
|
101
|
+
/** {@inheritDoc AuthFormEntryStore.orgUsername} */
|
|
88
102
|
get orgUsername(): string;
|
|
89
103
|
constructor();
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
90
107
|
protected resetIDPState(): void;
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
91
111
|
protected autofill(): Promise<boolean>;
|
|
112
|
+
/** {@inheritDoc AuthFormEntryStore.onAutofillForm} */
|
|
92
113
|
onAutofillForm: EventListener;
|
|
114
|
+
/** {@inheritDoc AuthFormEntryStore.onOrganisationChanged} */
|
|
93
115
|
onOrganisationChanged: EventListener;
|
|
116
|
+
/** {@inheritDoc AuthFormEntryStore.onUsernameChanged} */
|
|
94
117
|
onUsernameChanged: EventListener;
|
|
118
|
+
/** {@inheritDoc AuthFormEntryStore.onEmailChanged} */
|
|
95
119
|
onEmailChanged: EventListener;
|
|
120
|
+
/** {@inheritDoc AuthFormEntryStore.onPasswordChanged} */
|
|
96
121
|
onPasswordChanged: EventListener;
|
|
122
|
+
/** {@inheritDoc AuthFormEntryStore.onPassword2Changed} */
|
|
97
123
|
onPassword2Changed: EventListener;
|
|
124
|
+
/** {@inheritDoc AuthFormEntryStore.onShowPasswordsChanged} */
|
|
98
125
|
onShowPasswordsChanged: EventListener;
|
|
99
|
-
|
|
126
|
+
/** {@inheritDoc AuthFormEntryStore.onSelectedIdpChanged} */
|
|
127
|
+
onSelectedIdpChanged: EventListener;
|
|
128
|
+
/** {@inheritDoc AuthFormEntryStore.onSSOToggleChanged} */
|
|
100
129
|
onSSOToggleChanged: EventListener;
|
|
101
|
-
|
|
130
|
+
/**
|
|
131
|
+
* @privateRemarks
|
|
132
|
+
* Internally observed given constructor assignment.
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
protected ssoToggledChanged: (prev: boolean, next: boolean) => Promise<void>;
|
|
136
|
+
/** {@inheritDoc AuthFormEntryStore.ssoLoginUrl} */
|
|
137
|
+
get ssoLoginUrl(): string;
|
|
102
138
|
}
|
|
103
139
|
/**
|
|
104
|
-
* DI key
|
|
140
|
+
* AuthFormEntryStore DI key.
|
|
105
141
|
* @internal
|
|
106
142
|
*/
|
|
107
|
-
export declare const AuthFormEntryStore: import("@microsoft/fast-foundation").InterfaceSymbol<
|
|
143
|
+
export declare const AuthFormEntryStore: import("@microsoft/fast-foundation").InterfaceSymbol<AuthFormEntryStore>;
|
|
108
144
|
export {};
|
|
109
145
|
//# sourceMappingURL=authFormEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authFormEntry.d.ts","sourceRoot":"","sources":["../../../src/store/authFormEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"authFormEntry.d.ts","sourceRoot":"","sources":["../../../src/store/authFormEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAiB,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAuB,MAAM,eAAe,CAAC;AACvE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,IAAI,CAAC;IAC3B,2BAA2B,EAAE,MAAM,CAAC;IACpC,uBAAuB,EAAE,MAAM,CAAC;IAChC,oBAAoB,EAAE,MAAM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9C,kBAAkB,EAAE,MAAM,CAAM;IAE5C,+CAA+C;IACnC,OAAO,EAAE,MAAM,CAAM;IAEjC,4CAA4C;IAChC,IAAI,EAAE,GAAG,EAAE,CAAM;IAE7B,mDAAmD;IACvC,WAAW,EAAE,GAAG,CAAC;IAE7B,kDAAkD;IACtC,UAAU,EAAE,OAAO,CAAS;IAExC,mDAAmD;IACvC,WAAW,UAAS;IAEhC,mDAAmD;IACvC,WAAW,UAAS;IAEhC,mDAAmD;IACnD,IACI,WAAW,IAAI,MAAM,CAIxB;;IAeD;;OAEG;IACH,SAAS,CAAC,aAAa;IAKvB;;OAEG;cACa,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IA2C5C,sDAAsD;IACtD,cAAc,gBAAoE;IAElF,6DAA6D;IAC7D,qBAAqB,gBAGnB;IAEF,yDAAyD;IACzD,iBAAiB,gBAGf;IAEF,sDAAsD;IACtD,cAAc,gBAGZ;IAEF,yDAAyD;IACzD,iBAAiB,gBAGf;IAEF,0DAA0D;IAC1D,kBAAkB,gBAGhB;IAEF,8DAA8D;IAC9D,sBAAsB,gBAGpB;IAEF,4DAA4D;IAC5D,oBAAoB,gBAIjB;IAEH,0DAA0D;IAC1D,kBAAkB,gBAGhB;IAEF;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,SAAgB,OAAO,QAAQ,OAAO,mBAW/D;IAEF,mDAAmD;IACnD,IAAI,WAAW,IAAI,MAAM,CAExB;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,0EAG9B,CAAC"}
|
package/dist/dts/tags/tags.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TemplateComponents } from '../config/templates';
|
|
2
1
|
/**
|
|
3
2
|
* It's important this file isn't referenced ahead of a `configure` call, otherwise these values may remain fixed at
|
|
4
3
|
* their defaults. Consumers must use the `/config` subpath to help avoid this. Files with references to tags should be
|
|
@@ -50,10 +49,4 @@ export declare const textFieldTag: string;
|
|
|
50
49
|
* @internal
|
|
51
50
|
*/
|
|
52
51
|
export declare const progressRingTag: string;
|
|
53
|
-
/**
|
|
54
|
-
* @privateRemarks
|
|
55
|
-
* An alternative pattern under test.
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
export declare function getTags(): Record<keyof TemplateComponents, string>;
|
|
59
52
|
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/tags/tags.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/tags/tags.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAQ,eAAe,+CACgB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,OAAO,QAA+B,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,WAAW,QAAmC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAwC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,WAAW,QAAmC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,YAAY,QAAoC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,eAAe,QAAuC,CAAC"}
|
package/dist/dts/user/user.d.ts
CHANGED
|
@@ -127,14 +127,14 @@ export interface User extends UserPathHistory, UserActionHistory {
|
|
|
127
127
|
* ```ts
|
|
128
128
|
* import type { UserAuthenticationChangeEvent } from '@genesislcap/foundation-auth/user';
|
|
129
129
|
* ...
|
|
130
|
-
* this.user.addAuthenticationChangeListener((event: UserAuthenticationChangeEvent) => {
|
|
130
|
+
* const unsubscribe = this.user.addAuthenticationChangeListener((event: UserAuthenticationChangeEvent) => {
|
|
131
131
|
* console.log('User authenticated?', event.detail);
|
|
132
132
|
* });
|
|
133
133
|
* ```
|
|
134
134
|
*
|
|
135
135
|
* @param listener - A listener function.
|
|
136
136
|
*/
|
|
137
|
-
addAuthenticationChangeListener(listener: Listener<UserAuthenticationChangeEvent>): void;
|
|
137
|
+
addAuthenticationChangeListener(listener: Listener<UserAuthenticationChangeEvent>): () => void;
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* Default User implementation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/user/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAGzE,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,4BAA4B,+BAA+B,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,MAAM,6BAA6B,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC;IAE/B;;OAEG;IACH,SAAS,IAAI,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,IAAI,IAAI,CAAC;IAEnB;;;OAGG;IACH,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,EAAE,CAAC;IAElC;;OAEG;IACH,WAAW,CAAC,QAAQ,GAAG,OAAO,EAAE,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEzD;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pC,+BAA+B;IAC/B,KAAK,IAAI,IAAI;IAWb,gBAAgB;IAChB,SAAS,CAAC,eAAe;IAIzB,kCAAkC;IAClC,IAAI,QAAQ,WAGX;IAED,qCAAqC;IACrC,IAAI,WAAW,YAEd;IAED,iCAAiC;IACjC,OAAO;IAIP,kCAAkC;IAClC,QAAQ;IAIR,uCAAuC;IACvC,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE;IAI3C,oCAAoC;IACpC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAIrC,8CAA8C;IAC9C,SAAS;IAWT,+CAA+C;IAC/C,UAAU;IAIV,6CAA6C;IAC7C,QAAQ;IAKR,kDAAkD;IAClD,WAAW,CAAC,QAAQ,GAAG,OAAO,EAAE,OAAO,EAAE,QAAQ;IAOjD,mDAAmD;IACnD,YAAY;IAIZ,iDAAiD;IACjD,UAAU;IAKV,gBAAgB;IAChB,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE;IAUvD,gBAAgB;IAChB,SAAS,CAAC,6BAA6B,kFAAmD;IAE1F,yDAAyD;IACzD,+BAA+B,CAAC,QAAQ,EAAE,QAAQ,CAAC,6BAA6B,CAAC;IAIjF,gBAAgB;IAChB,SAAS,CAAC,sBAAsB;CAOjC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,4DAA4D,CAAC;AAE9E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAE9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,MAAM,iDAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/entity/index.js
CHANGED
package/dist/esm/env.js
CHANGED
|
@@ -98,6 +98,34 @@ try {
|
|
|
98
98
|
}
|
|
99
99
|
catch (_g) { }
|
|
100
100
|
export { RESET_PASSWORD_URL };
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
let SSO_LIST_URL = 'unset';
|
|
105
|
+
try {
|
|
106
|
+
if (typeof GENX_SSO_LIST_URL !== 'undefined') {
|
|
107
|
+
SSO_LIST_URL = GENX_SSO_LIST_URL;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
logger.warn('Missing GENX_SSO_LIST_URL env');
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
catch (_h) { }
|
|
114
|
+
export { SSO_LIST_URL };
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
let SSO_LOGIN_URL = 'unset';
|
|
119
|
+
try {
|
|
120
|
+
if (typeof GENX_SSO_LOGIN_URL !== 'undefined') {
|
|
121
|
+
SSO_LOGIN_URL = GENX_SSO_LOGIN_URL;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
logger.warn('Missing GENX_SSO_LOGIN_URL env');
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
catch (_j) { }
|
|
128
|
+
export { SSO_LOGIN_URL };
|
|
101
129
|
/**
|
|
102
130
|
* @public
|
|
103
131
|
*/
|
|
@@ -110,5 +138,5 @@ try {
|
|
|
110
138
|
logger.warn('Missing GENX_SOCKET_URL env');
|
|
111
139
|
}
|
|
112
140
|
}
|
|
113
|
-
catch (
|
|
141
|
+
catch (_k) { }
|
|
114
142
|
export { SOCKET_URL };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isErrorEvent } from '@genesislcap/foundation-state-machine';
|
|
2
|
+
import { assign } from 'xstate';
|
|
3
|
+
import { logger } from '../utils';
|
|
4
|
+
import { NackError } from './errors';
|
|
5
|
+
import { is200Nack } from './guards';
|
|
6
|
+
/**
|
|
7
|
+
* Set error action.
|
|
8
|
+
* @remarks
|
|
9
|
+
* Used to set a top level error on the machine. This may equal to {@link @genesislcap/foundation-utils#ErrorMap} `lastError` in the `errors` property.
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export const setError = assign(({ event }) => {
|
|
13
|
+
if (isErrorEvent(event)) {
|
|
14
|
+
return {
|
|
15
|
+
error: event.data,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
if (is200Nack(event)) {
|
|
19
|
+
logger.debug(`setError action called with non error event type.`, event);
|
|
20
|
+
return {
|
|
21
|
+
error: NackError.fromEntity(event.output),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|