@genesislcap/foundation-auth 14.71.1-auth-mf.3 → 14.71.1-auth-mf.4

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.
Files changed (71) hide show
  1. package/dist/dts/dto/EVENT_LOGIN_DETAILS_ACK.d.ts +7 -0
  2. package/dist/dts/dto/EVENT_LOGIN_DETAILS_ACK.d.ts.map +1 -0
  3. package/dist/dts/dto/index.d.ts +1 -0
  4. package/dist/dts/dto/index.d.ts.map +1 -1
  5. package/dist/dts/entity/index.d.ts +1 -0
  6. package/dist/dts/entity/index.d.ts.map +1 -1
  7. package/dist/dts/entity/loginDetailsAck.d.ts +7 -0
  8. package/dist/dts/entity/loginDetailsAck.d.ts.map +1 -0
  9. package/dist/dts/machine/machine.d.ts +12 -1
  10. package/dist/dts/machine/machine.d.ts.map +1 -1
  11. package/dist/dts/machine/types.d.ts +3 -5
  12. package/dist/dts/machine/types.d.ts.map +1 -1
  13. package/dist/dts/main/main.d.ts +14 -4
  14. package/dist/dts/main/main.d.ts.map +1 -1
  15. package/dist/dts/mapper/loginMapper.d.ts +16 -4
  16. package/dist/dts/mapper/loginMapper.d.ts.map +1 -1
  17. package/dist/dts/routes/base.d.ts +6 -15
  18. package/dist/dts/routes/base.d.ts.map +1 -1
  19. package/dist/dts/routes/config.d.ts.map +1 -1
  20. package/dist/dts/routes/login/login.d.ts +5 -5
  21. package/dist/dts/routes/login/login.d.ts.map +1 -1
  22. package/dist/dts/routes/login/login.template.d.ts.map +1 -1
  23. package/dist/dts/store/auth.d.ts +2 -1
  24. package/dist/dts/store/auth.d.ts.map +1 -1
  25. package/dist/dts/store/authFormEntry.d.ts +3 -0
  26. package/dist/dts/store/authFormEntry.d.ts.map +1 -1
  27. package/dist/esm/dto/EVENT_LOGIN_DETAILS_ACK.js +1 -0
  28. package/dist/esm/entity/index.js +1 -0
  29. package/dist/esm/entity/loginDetailsAck.js +1 -0
  30. package/dist/esm/machine/machine.js +135 -169
  31. package/dist/esm/main/main.js +42 -6
  32. package/dist/esm/mapper/loginMapper.js +17 -1
  33. package/dist/esm/routes/base.js +3 -30
  34. package/dist/esm/routes/config.js +0 -2
  35. package/dist/esm/routes/login/login.js +44 -61
  36. package/dist/esm/routes/login/login.template.js +4 -5
  37. package/dist/esm/store/auth.js +1 -0
  38. package/dist/esm/store/authFormEntry.js +1 -3
  39. package/dist/foundation-auth.api.json +550 -19
  40. package/dist/foundation-auth.d.ts +64 -26
  41. package/docs/api/foundation-auth.auth.loginwithcookies.md +15 -0
  42. package/docs/api/foundation-auth.auth.loginwithcredentials.md +22 -0
  43. package/docs/api/{foundation-auth.auth.store.md → foundation-auth.auth.logout.md} +7 -3
  44. package/docs/api/foundation-auth.auth.md +6 -4
  45. package/docs/api/foundation-auth.autheventmap.md +0 -1
  46. package/docs/api/foundation-auth.authformentryeventmap.md +1 -0
  47. package/docs/api/foundation-auth.authformentrystore.md +1 -0
  48. package/docs/api/foundation-auth.authformentrystore.onautofillform.md +22 -0
  49. package/docs/api/foundation-auth.authmachinecontext.authdto.md +1 -1
  50. package/docs/api/foundation-auth.authmachinecontext.authentity.md +1 -1
  51. package/docs/api/foundation-auth.authmachinecontext.credentials.md +1 -1
  52. package/docs/api/foundation-auth.authmachinecontext.md +2 -2
  53. package/docs/api/foundation-auth.authmachineevent.md +0 -2
  54. package/docs/api/foundation-auth.authstore.md +1 -0
  55. package/docs/api/foundation-auth.authstore.onlogindetails.md +22 -0
  56. package/docs/api/foundation-auth.defaultauthformentrystore.md +1 -0
  57. package/docs/api/foundation-auth.defaultauthformentrystore.onautofillform.md +11 -0
  58. package/docs/api/foundation-auth.defaultauthmachine.addloginevents.md +23 -0
  59. package/docs/api/foundation-auth.defaultauthmachine.createfetchmachineevent.md +23 -0
  60. package/docs/api/foundation-auth.defaultauthmachine.md +2 -0
  61. package/docs/api/foundation-auth.defaultauthstore.md +1 -0
  62. package/docs/api/foundation-auth.defaultauthstore.onlogindetails.md +11 -0
  63. package/docs/api/foundation-auth.event_login_details_ack.md +14 -0
  64. package/docs/api/foundation-auth.islogindetailsackdto.md +24 -0
  65. package/docs/api/foundation-auth.islogindetailsackentity.md +24 -0
  66. package/docs/api/foundation-auth.logindetailsack.md +14 -0
  67. package/docs/api/foundation-auth.logindto.md +2 -2
  68. package/docs/api/foundation-auth.loginentity.md +2 -2
  69. package/docs/api/foundation-auth.md +4 -0
  70. package/docs/api-report.md +54 -13
  71. package/package.json +11 -11
@@ -9,7 +9,7 @@ LoginDTO type.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_AUTH_NACK;
12
+ export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_DETAILS_ACK | EVENT_LOGIN_AUTH_NACK;
13
13
  ```
14
- **References:** [EVENT\_LOGIN\_AUTH\_ACK](./foundation-auth.event_login_auth_ack.md)<!-- -->, [EVENT\_LOGIN\_AUTH\_NACK](./foundation-auth.event_login_auth_nack.md)
14
+ **References:** [EVENT\_LOGIN\_AUTH\_ACK](./foundation-auth.event_login_auth_ack.md)<!-- -->, [EVENT\_LOGIN\_DETAILS\_ACK](./foundation-auth.event_login_details_ack.md)<!-- -->, [EVENT\_LOGIN\_AUTH\_NACK](./foundation-auth.event_login_auth_nack.md)
15
15
 
@@ -9,7 +9,7 @@ LoginEntity type.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type LoginEntity = LoginAck | LoginNack;
12
+ export type LoginEntity = LoginAck | LoginDetailsAck | LoginNack;
13
13
  ```
14
- **References:** [LoginAck](./foundation-auth.loginack.md)<!-- -->, [LoginNack](./foundation-auth.loginnack.md)
14
+ **References:** [LoginAck](./foundation-auth.loginack.md)<!-- -->, [LoginDetailsAck](./foundation-auth.logindetailsack.md)<!-- -->, [LoginNack](./foundation-auth.loginnack.md)
15
15
 
@@ -25,6 +25,8 @@
25
25
  | [configure(container, config)](./foundation-auth.configure.md) | Configure the auth micro frontend settings. |
26
26
  | [isLoginAckDTO(dto)](./foundation-auth.isloginackdto.md) | isLoginAckDTO. |
27
27
  | [isLoginAckEntity(entity)](./foundation-auth.isloginackentity.md) | isLoginAckEntity. |
28
+ | [isLoginDetailsAckDTO(dto)](./foundation-auth.islogindetailsackdto.md) | isLoginDetailsAckDTO. |
29
+ | [isLoginDetailsAckEntity(entity)](./foundation-auth.islogindetailsackentity.md) | isLoginDetailsAckEntity. |
28
30
  | [isLoginNackDTO(dto)](./foundation-auth.isloginnackdto.md) | isLoginNackDTO. |
29
31
  | [isLoginNackEntity(entity)](./foundation-auth.isloginnackentity.md) | isLoginNackEntity. |
30
32
  | [isLogoutAckDTO(dto)](./foundation-auth.islogoutackdto.md) | isLogoutAckDTO. |
@@ -45,10 +47,12 @@
45
47
  | [Details](./foundation-auth.details.md) | |
46
48
  | [EVENT\_LOGIN\_AUTH\_ACK](./foundation-auth.event_login_auth_ack.md) | |
47
49
  | [EVENT\_LOGIN\_AUTH\_NACK](./foundation-auth.event_login_auth_nack.md) | |
50
+ | [EVENT\_LOGIN\_DETAILS\_ACK](./foundation-auth.event_login_details_ack.md) | |
48
51
  | [EVENT\_LOGOUT\_NACK](./foundation-auth.event_logout_nack.md) | |
49
52
  | [IDP](./foundation-auth.idp.md) | |
50
53
  | [IDPResponse](./foundation-auth.idpresponse.md) | |
51
54
  | [LoginAck](./foundation-auth.loginack.md) | |
55
+ | [LoginDetailsAck](./foundation-auth.logindetailsack.md) | |
52
56
  | [LoginMapper](./foundation-auth.loginmapper.md) | LoginMapper interface. |
53
57
  | [LoginNack](./foundation-auth.loginnack.md) | |
54
58
  | [LOGOUT\_ACK](./foundation-auth.logout_ack.md) | |
@@ -23,6 +23,7 @@ import { EmitReturn } from '@genesislcap/foundation-events';
23
23
  import type { ErrorEvent as ErrorEvent_2 } from 'xstate';
24
24
  import { FASTElement } from '@microsoft/fast-element';
25
25
  import { FetchMachine } from '@genesislcap/foundation-state-machine';
26
+ import { FetchMachineEvent } from '@genesislcap/foundation-state-machine';
26
27
  import { FoundationAnalytics } from '@genesislcap/foundation-comms';
27
28
  import { GenesisServerError } from '@genesislcap/foundation-state-machine';
28
29
  import { InterfaceSymbol } from '@microsoft/fast-foundation';
@@ -34,6 +35,7 @@ import { Machine } from '@genesislcap/foundation-state-machine';
34
35
  import type { MachineContext } from '@genesislcap/foundation-state-machine';
35
36
  import { Message as Message_2 } from '@genesislcap/foundation-comms';
36
37
  import { MessageBuilder } from '@genesislcap/foundation-comms';
38
+ import { NavigationPhase } from '@microsoft/fast-router';
37
39
  import { PartialFASTElementDefinition } from '@microsoft/fast-element';
38
40
  import { RouterConfiguration } from '@microsoft/fast-router';
39
41
  import { Session } from '@genesislcap/foundation-comms';
@@ -49,10 +51,12 @@ import { ViewTemplate } from '@microsoft/fast-element';
49
51
  //
50
52
  // @public (undocumented)
51
53
  export class Auth extends Auth_base {
54
+ // @internal
55
+ actionQueryParams(): void;
52
56
  // @internal (undocumented)
53
57
  protected addEventListeners(): void;
54
- // @internal
55
- checkForSSOToken(): void;
58
+ // @internal (undocumented)
59
+ cm: CredentialManager;
56
60
  // @internal
57
61
  config: MainRouterConfig;
58
62
  // @internal (undocumented)
@@ -61,6 +65,12 @@ export class Auth extends Auth_base {
61
65
  container: Container;
62
66
  // @internal (undocumented)
63
67
  disconnectedCallback(): void;
68
+ // (undocumented)
69
+ loginWithCookies(): void;
70
+ // (undocumented)
71
+ loginWithCredentials(credentials: AuthInfo): void;
72
+ // (undocumented)
73
+ logout(): void;
64
74
  // @internal
65
75
  provider: HTMLElement;
66
76
  // @internal
@@ -75,7 +85,7 @@ export class Auth extends Auth_base {
75
85
  protected removeEventListeners(): void;
76
86
  // @internal
77
87
  session: Session;
78
- // (undocumented)
88
+ // @internal (undocumented)
79
89
  store: AuthStore;
80
90
  }
81
91
 
@@ -121,13 +131,13 @@ export class AuthError extends GenesisServerError {
121
131
  // @public (undocumented)
122
132
  export type AuthEventMap = StoreRootEventDetailMap & AuthMachineEventMap & {
123
133
  'auth-login': AuthInfo;
124
- 'auth-login-refresh': void;
125
134
  'auth-login-details': void;
126
135
  'auth-logout': void;
127
136
  };
128
137
 
129
138
  // @public (undocumented)
130
139
  export type AuthFormEntryEventMap = {
140
+ 'auth-autofill-form': void;
131
141
  'auth-organisation-changed': string;
132
142
  'auth-username-changed': string;
133
143
  'auth-email-changed': string;
@@ -155,6 +165,8 @@ export interface AuthFormEntryStore extends Store {
155
165
  // (undocumented)
156
166
  readonly mfaCode: string;
157
167
  // (undocumented)
168
+ onAutofillForm(event: CustomEvent<void>): void;
169
+ // (undocumented)
158
170
  onEmailChanged(event: CustomEvent<string>): void;
159
171
  // (undocumented)
160
172
  onOrganisationChanged(event: CustomEvent<string>): void;
@@ -221,8 +233,6 @@ export type AuthMachineEvent = {
221
233
  params: {
222
234
  credentials?: AuthInfo;
223
235
  };
224
- } | {
225
- type: 'refresh';
226
236
  } | {
227
237
  type: 'logout';
228
238
  } | {
@@ -250,6 +260,8 @@ export interface AuthStore extends StoreRoot {
250
260
  // (undocumented)
251
261
  onLogin(event: CustomEvent<AuthInfo>): void;
252
262
  // (undocumented)
263
+ onLoginDetails(event: CustomEvent<void>): void;
264
+ // (undocumented)
253
265
  onLogout(event: CustomEvent<void>): void;
254
266
  // (undocumented)
255
267
  onMachineEvent(event: CustomEvent<AuthEventMap['auth-machine-event']>): void;
@@ -292,6 +304,8 @@ export class BaseRoute extends ConfigHostElement {
292
304
  // (undocumented)
293
305
  ensureConnection(): Promise<boolean>;
294
306
  // (undocumented)
307
+ enter(phase: NavigationPhase<Settings>): void;
308
+ // (undocumented)
295
309
  getSubRoutePath(routeName: Routes | string): string;
296
310
  // (undocumented)
297
311
  hasErrors: boolean;
@@ -304,6 +318,8 @@ export class BaseRoute extends ConfigHostElement {
304
318
  // (undocumented)
305
319
  messageBuilder: MessageBuilder;
306
320
  // (undocumented)
321
+ protected navigationPhase: NavigationPhase<Settings>;
322
+ // (undocumented)
307
323
  onBack: () => void;
308
324
  // (undocumented)
309
325
  onNavigate: (path: string) => void;
@@ -357,11 +373,6 @@ export class ConfigHostElement extends ConfigHostElement_base implements ConfigH
357
373
  container: Container;
358
374
  }
359
375
 
360
- // Warning: (ae-internal-missing-underscore) The name "configurableTextField" should be prefixed with an underscore because the declaration is marked as @internal
361
- //
362
- // @internal (undocumented)
363
- export const configurableTextField: <T extends ConfigHost>(name: keyof FieldConfigMap | [name: keyof FieldConfigMap, valueKey: string], type: string, autofocus?: boolean, autocomplete?: string, className?: string, labelOverride?: string, testIdOverride?: string, required?: boolean) => ViewTemplate<T, any>;
364
-
365
376
  // @public
366
377
  export function configure(container: Container, config: Partial<AuthConfig>): void;
367
378
 
@@ -395,6 +406,8 @@ export class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore,
395
406
  // (undocumented)
396
407
  mfaCode: string;
397
408
  // (undocumented)
409
+ onAutofillForm: EventListener;
410
+ // (undocumented)
398
411
  onEmailChanged: EventListener;
399
412
  // (undocumented)
400
413
  onOrganisationChanged: EventListener;
@@ -431,6 +444,18 @@ export class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore,
431
444
  // @public
432
445
  export class DefaultAuthMachine extends AbstractMachine<AuthMachineContext, AuthMachineEvent> implements AuthMachine {
433
446
  constructor(user: User, connect: Connect, fetchMachine: FetchMachine, messageBuilder: MessageBuilder, credentialManager: CredentialManager, uuid: UUID, loginMapper: LoginMapper, logoutMapper: LogoutMapper, config: AuthConfig);
447
+ // (undocumented)
448
+ addLoginEvents(): {
449
+ login: {
450
+ actions: string[];
451
+ target: string;
452
+ };
453
+ "login-details": {
454
+ target: string;
455
+ };
456
+ };
457
+ // (undocumented)
458
+ createFetchMachineEvent(url: string, msg?: Message_2): FetchMachineEvent;
434
459
  getFromContainer(): this;
435
460
  // (undocumented)
436
461
  start(options?: InterpreterOptions<typeof DefaultAuthMachine.machine>): void;
@@ -455,6 +480,8 @@ export class DefaultAuthStore extends AbstractStoreRoot<AuthStore, AuthEventMap,
455
480
  // (undocumented)
456
481
  onLogin: EventListener;
457
482
  // (undocumented)
483
+ onLoginDetails: EventListener;
484
+ // (undocumented)
458
485
  onLogout: EventListener;
459
486
  // (undocumented)
460
487
  onMachineEvent: EventListener;
@@ -629,6 +656,10 @@ export interface EVENT_LOGIN_AUTH_ACK extends ACK {
629
656
  export interface EVENT_LOGIN_AUTH_NACK extends NACK {
630
657
  }
631
658
 
659
+ // @public (undocumented)
660
+ export interface EVENT_LOGIN_DETAILS_ACK extends EVENT_LOGIN_AUTH_ACK {
661
+ }
662
+
632
663
  // @public (undocumented)
633
664
  export interface EVENT_LOGOUT_NACK extends NACK {
634
665
  }
@@ -718,6 +749,12 @@ export function isLoginAckDTO(dto: LoginDTO): dto is EVENT_LOGIN_AUTH_ACK;
718
749
  // @public
719
750
  export function isLoginAckEntity(entity: LoginEntity): entity is LoginAck;
720
751
 
752
+ // @public
753
+ export function isLoginDetailsAckDTO(dto: LoginDTO): dto is EVENT_LOGIN_DETAILS_ACK;
754
+
755
+ // @public
756
+ export function isLoginDetailsAckEntity(entity: LoginEntity): entity is LoginDetailsAck;
757
+
721
758
  // @public
722
759
  export function isLoginNackDTO(dto: LoginDTO): dto is EVENT_LOGIN_AUTH_NACK;
723
760
 
@@ -781,11 +818,15 @@ export interface LoginAck extends Ack {
781
818
  readonly zeroMqProxyOutboundPort: number;
782
819
  }
783
820
 
821
+ // @public (undocumented)
822
+ export interface LoginDetailsAck extends LoginAck {
823
+ }
824
+
784
825
  // @public
785
- export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_AUTH_NACK;
826
+ export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_DETAILS_ACK | EVENT_LOGIN_AUTH_NACK;
786
827
 
787
828
  // @public
788
- export type LoginEntity = LoginAck | LoginNack;
829
+ export type LoginEntity = LoginAck | LoginDetailsAck | LoginNack;
789
830
 
790
831
  // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "LoginMapper" because one of its declarations is marked as @internal
791
832
  //
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.3",
4
+ "version": "14.71.1-auth-mf.4",
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.3",
55
- "@genesislcap/genx": "14.71.1-auth-mf.3",
54
+ "@genesislcap/foundation-testing": "14.71.1-auth-mf.4",
55
+ "@genesislcap/genx": "14.71.1-auth-mf.4",
56
56
  "rimraf": "^3.0.2"
57
57
  },
58
58
  "dependencies": {
59
- "@genesislcap/foundation-comms": "14.71.1-auth-mf.3",
60
- "@genesislcap/foundation-events": "14.71.1-auth-mf.3",
61
- "@genesislcap/foundation-state-machine": "14.71.1-auth-mf.3",
62
- "@genesislcap/foundation-store": "14.71.1-auth-mf.3",
63
- "@genesislcap/foundation-ui": "14.71.1-auth-mf.3",
64
- "@genesislcap/foundation-utils": "14.71.1-auth-mf.3",
65
- "@genesislcap/foundation-zero": "14.71.1-auth-mf.3",
59
+ "@genesislcap/foundation-comms": "14.71.1-auth-mf.4",
60
+ "@genesislcap/foundation-events": "14.71.1-auth-mf.4",
61
+ "@genesislcap/foundation-state-machine": "14.71.1-auth-mf.4",
62
+ "@genesislcap/foundation-store": "14.71.1-auth-mf.4",
63
+ "@genesislcap/foundation-ui": "14.71.1-auth-mf.4",
64
+ "@genesislcap/foundation-utils": "14.71.1-auth-mf.4",
65
+ "@genesislcap/foundation-zero": "14.71.1-auth-mf.4",
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": "296c1f938cde171316a18ef026c24143ef1bf2d4"
85
+ "gitHead": "349e46c5dc26cf11b292dc5cc9c24e88908f3333"
86
86
  }