@genesislcap/foundation-auth 14.71.1-auth-mf.4 → 14.71.1-auth-mf.6
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/dist/dts/routes/base.d.ts +5 -3
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/dts/routes/login/login.template.d.ts.map +1 -1
- package/dist/esm/routes/base.js +0 -4
- package/dist/esm/routes/login/login.template.js +16 -4
- package/dist/foundation-auth.d.ts +5 -2
- package/docs/api-report.md +0 -2
- package/package.json +11 -11
|
@@ -3,7 +3,6 @@ import { Binding, FASTElement } from '@microsoft/fast-element';
|
|
|
3
3
|
import { Container } from '@microsoft/fast-foundation';
|
|
4
4
|
import { NavigationPhase } from '@microsoft/fast-router';
|
|
5
5
|
import { User } from '../entity';
|
|
6
|
-
import { AuthMachine } from '../machine';
|
|
7
6
|
import { AuthConfig, Routes } from '../main/config';
|
|
8
7
|
import { AuthEventMap, AuthFormEntryEventMap, AuthStore } from '../store';
|
|
9
8
|
import { Settings } from './types';
|
|
@@ -27,7 +26,11 @@ export type ConfigHost = {
|
|
|
27
26
|
config: AuthConfig;
|
|
28
27
|
};
|
|
29
28
|
declare const ConfigHostElement_base: abstract new (...args: any[]) => {
|
|
30
|
-
$emit<K extends "auth-autofill-form" | "auth-organisation-changed" | "auth-username-changed" | "auth-email-changed" | "auth-password-changed" | "auth-password2-changed" | "auth-showPasswords-changed" | "store-connected" | "store-disconnected" | "store-ready" | "auth-machine-event" | "auth-login" | "auth-login-details" | "auth-logout">(...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;
|
|
29
|
+
$emit<K extends "auth-autofill-form" | "auth-organisation-changed" | "auth-username-changed" | "auth-email-changed" | "auth-password-changed" | "auth-password2-changed" | "auth-showPasswords-changed" | "store-connected" | "store-disconnected" | "store-ready" | "auth-machine-event" | "auth-login" | "auth-login-details" | "auth-logout">(...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; /**
|
|
30
|
+
* Fill with default values from config / env vars if needed.
|
|
31
|
+
* For now using CredentialManager based auto-filling.
|
|
32
|
+
* TODO: Review use cases.
|
|
33
|
+
*/
|
|
31
34
|
accessKey: string;
|
|
32
35
|
readonly accessKeyLabel: string;
|
|
33
36
|
autocapitalize: string;
|
|
@@ -358,7 +361,6 @@ export declare class ConfigHostElement extends ConfigHostElement_base implements
|
|
|
358
361
|
export declare class BaseRoute extends ConfigHostElement {
|
|
359
362
|
store: AuthStore;
|
|
360
363
|
user: User;
|
|
361
|
-
authMachine: AuthMachine;
|
|
362
364
|
auth: Auth;
|
|
363
365
|
connect: Connect;
|
|
364
366
|
session: Session;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/routes/base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EACP,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,OAAO,EACR,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAEL,OAAO,EAGP,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAS,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/routes/base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EACP,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,OAAO,EACR,MAAM,+BAA+B,CAAC;AAQvC,O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7B,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;AAEF;;;;GAIG;AACH,qBA2Ba,iBAAkB,SAAQ,iBAAiB;IACtD,iBAAiB;CAIlB;AAED;;GAEG;AACH,qBAoBa,WAAY,SAAQ,iBAAiB;CAAG;AAErD;;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;AAEF;;;;GAIG;AACH,qBA0Ba,cAAe,SAAQ,WAAW;IACjC,UAAU,EAAE,MAAM,CAAM;IAC9B,OAAO,EAAE,MAAM,CAAM;IACwB,QAAQ,EAAE,OAAO,CAAS;IAC7E,eAAe;CAGhB;AAED;;GAEG;AACH,qBAuBa,mBAAoB,SAAQ,WAAW;IACK,YAAY,EAAE,OAAO,CAAS;CACtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA4JrC,eAAO,MAAM,aAAa,4DA4CzB,CAAC"}
|
package/dist/esm/routes/base.js
CHANGED
|
@@ -7,7 +7,6 @@ import { Container } from '@microsoft/fast-foundation';
|
|
|
7
7
|
import { Route } from '@microsoft/fast-router';
|
|
8
8
|
import { classNames } from '@microsoft/fast-web-utilities';
|
|
9
9
|
import { User } from '../entity';
|
|
10
|
-
import { AuthMachine } from '../machine';
|
|
11
10
|
import { AuthConfig, defaultAuthConfig, hostUrl } from '../main/config';
|
|
12
11
|
import { AuthStore } from '../store';
|
|
13
12
|
/**
|
|
@@ -142,9 +141,6 @@ __decorate([
|
|
|
142
141
|
__decorate([
|
|
143
142
|
User
|
|
144
143
|
], BaseRoute.prototype, "user", void 0);
|
|
145
|
-
__decorate([
|
|
146
|
-
AuthMachine
|
|
147
|
-
], BaseRoute.prototype, "authMachine", void 0);
|
|
148
144
|
__decorate([
|
|
149
145
|
Auth
|
|
150
146
|
], BaseRoute.prototype, "auth", void 0);
|
|
@@ -43,13 +43,25 @@ const regularLogin = html `
|
|
|
43
43
|
<a class="link-url" @click=${(x) => x.onOpenSocketTest()}>Socket Open Test</a>
|
|
44
44
|
<a class="link-url" @click=${(x) => x.onCloseSocketTest()}>Socket Close Test</a>
|
|
45
45
|
<a class="link-url" @click=${(x) => x.onLoginDetailsTest()}>Login Details Test</a>
|
|
46
|
-
<pre>
|
|
47
|
-
${
|
|
48
|
-
|
|
46
|
+
<pre>snapshot: ${(x) => JSON.stringify(x.store.authMachine.snapshot)}</pre>
|
|
47
|
+
<pre>state: ${(x) => JSON.stringify(x.store.authMachine.state)}</pre>
|
|
48
|
+
<pre>context: ${(x) => JSON.stringify(x.store.authMachine.errors.messages)}</pre>
|
|
49
|
+
<pre>meta: ${(x) => JSON.stringify(x.store.authMachine.getMetaValuesByKey())}</pre>
|
|
50
|
+
${when((x) => !!x.store.authMachine.errors.size, html `
|
|
51
|
+
<span>${(x) => x.store.authMachine.errors.messages}</span>
|
|
49
52
|
`)}
|
|
50
|
-
${when((x) => x.authMachine.hasTag('pending'), html `
|
|
53
|
+
${when((x) => x.store.authMachine.hasTag('pending'), html `
|
|
51
54
|
<h4>PENDING...</h4>
|
|
52
55
|
`)}
|
|
56
|
+
${when((x) => x.store.authMachine.matches('loggedOut'), html `
|
|
57
|
+
<h4>loggedOut...</h4>
|
|
58
|
+
`)}
|
|
59
|
+
${when((x) => x.store.authMachine.matches('idle'), html `
|
|
60
|
+
<h4>idle...</h4>
|
|
61
|
+
`)}
|
|
62
|
+
${when((x) => x.store.authMachine.matches('authCheck'), html `
|
|
63
|
+
<h4>authCheck...</h4>
|
|
64
|
+
`)}
|
|
53
65
|
</div>
|
|
54
66
|
</div>
|
|
55
67
|
</div>
|
|
@@ -812,7 +812,6 @@ export declare class BackgroundElement extends ConfigHostElement {
|
|
|
812
812
|
export declare class BaseRoute extends ConfigHostElement {
|
|
813
813
|
store: AuthStore;
|
|
814
814
|
user: User;
|
|
815
|
-
authMachine: AuthMachine;
|
|
816
815
|
auth: Auth_2;
|
|
817
816
|
connect: Connect;
|
|
818
817
|
session: Session;
|
|
@@ -864,7 +863,11 @@ export declare class ConfigHostElement extends ConfigHostElement_base implements
|
|
|
864
863
|
}
|
|
865
864
|
|
|
866
865
|
declare const ConfigHostElement_base: abstract new (...args: any[]) => {
|
|
867
|
-
$emit<K extends "auth-autofill-form" | "auth-organisation-changed" | "auth-username-changed" | "auth-email-changed" | "auth-password-changed" | "auth-password2-changed" | "auth-showPasswords-changed" | "store-connected" | "store-disconnected" | "store-ready" | "auth-machine-event" | "auth-login" | "auth-login-details" | "auth-logout">(...args: EventMap[K] extends void ? [type: K, options?: EmitOptions] : [type: K, detail: EventMap[K], options?: EmitOptions]): EmitReturn;
|
|
866
|
+
$emit<K extends "auth-autofill-form" | "auth-organisation-changed" | "auth-username-changed" | "auth-email-changed" | "auth-password-changed" | "auth-password2-changed" | "auth-showPasswords-changed" | "store-connected" | "store-disconnected" | "store-ready" | "auth-machine-event" | "auth-login" | "auth-login-details" | "auth-logout">(...args: EventMap[K] extends void ? [type: K, options?: EmitOptions] : [type: K, detail: EventMap[K], options?: EmitOptions]): EmitReturn; /**
|
|
867
|
+
* Fill with default values from config / env vars if needed.
|
|
868
|
+
* For now using CredentialManager based auto-filling.
|
|
869
|
+
* TODO: Review use cases.
|
|
870
|
+
*/
|
|
868
871
|
accessKey: string;
|
|
869
872
|
readonly accessKeyLabel: string;
|
|
870
873
|
autocapitalize: string;
|
package/docs/api-report.md
CHANGED
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.71.1-auth-mf.
|
|
4
|
+
"version": "14.71.1-auth-mf.6",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-auth.d.ts",
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
"test:debug": "genx test --debug"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@genesislcap/foundation-testing": "14.71.1-auth-mf.
|
|
55
|
-
"@genesislcap/genx": "14.71.1-auth-mf.
|
|
54
|
+
"@genesislcap/foundation-testing": "14.71.1-auth-mf.6",
|
|
55
|
+
"@genesislcap/genx": "14.71.1-auth-mf.6",
|
|
56
56
|
"rimraf": "^3.0.2"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@genesislcap/foundation-comms": "14.71.1-auth-mf.
|
|
60
|
-
"@genesislcap/foundation-events": "14.71.1-auth-mf.
|
|
61
|
-
"@genesislcap/foundation-state-machine": "14.71.1-auth-mf.
|
|
62
|
-
"@genesislcap/foundation-store": "14.71.1-auth-mf.
|
|
63
|
-
"@genesislcap/foundation-ui": "14.71.1-auth-mf.
|
|
64
|
-
"@genesislcap/foundation-utils": "14.71.1-auth-mf.
|
|
65
|
-
"@genesislcap/foundation-zero": "14.71.1-auth-mf.
|
|
59
|
+
"@genesislcap/foundation-comms": "14.71.1-auth-mf.6",
|
|
60
|
+
"@genesislcap/foundation-events": "14.71.1-auth-mf.6",
|
|
61
|
+
"@genesislcap/foundation-state-machine": "14.71.1-auth-mf.6",
|
|
62
|
+
"@genesislcap/foundation-store": "14.71.1-auth-mf.6",
|
|
63
|
+
"@genesislcap/foundation-ui": "14.71.1-auth-mf.6",
|
|
64
|
+
"@genesislcap/foundation-utils": "14.71.1-auth-mf.6",
|
|
65
|
+
"@genesislcap/foundation-zero": "14.71.1-auth-mf.6",
|
|
66
66
|
"@microsoft/fast-components": "^2.21.3",
|
|
67
67
|
"@microsoft/fast-element": "^1.7.0",
|
|
68
68
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
84
|
"customElements": "dist/custom-elements.json",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "cc206db0175582626b829d06ca03b5aaedc3c55d"
|
|
86
86
|
}
|