@genesislcap/foundation-auth 14.71.1-auth-mf.3 → 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.
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 +10 -17
  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 -34
  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 +20 -9
  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 +68 -27
  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 -15
  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;
@@ -278,8 +290,6 @@ export class BaseRoute extends ConfigHostElement {
278
290
  // (undocumented)
279
291
  auth: Auth_2;
280
292
  // (undocumented)
281
- authMachine: AuthMachine;
282
- // (undocumented)
283
293
  clearError(): void;
284
294
  // (undocumented)
285
295
  connect: Connect;
@@ -292,6 +302,8 @@ export class BaseRoute extends ConfigHostElement {
292
302
  // (undocumented)
293
303
  ensureConnection(): Promise<boolean>;
294
304
  // (undocumented)
305
+ enter(phase: NavigationPhase<Settings>): void;
306
+ // (undocumented)
295
307
  getSubRoutePath(routeName: Routes | string): string;
296
308
  // (undocumented)
297
309
  hasErrors: boolean;
@@ -304,6 +316,8 @@ export class BaseRoute extends ConfigHostElement {
304
316
  // (undocumented)
305
317
  messageBuilder: MessageBuilder;
306
318
  // (undocumented)
319
+ protected navigationPhase: NavigationPhase<Settings>;
320
+ // (undocumented)
307
321
  onBack: () => void;
308
322
  // (undocumented)
309
323
  onNavigate: (path: string) => void;
@@ -357,11 +371,6 @@ export class ConfigHostElement extends ConfigHostElement_base implements ConfigH
357
371
  container: Container;
358
372
  }
359
373
 
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
374
  // @public
366
375
  export function configure(container: Container, config: Partial<AuthConfig>): void;
367
376
 
@@ -395,6 +404,8 @@ export class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore,
395
404
  // (undocumented)
396
405
  mfaCode: string;
397
406
  // (undocumented)
407
+ onAutofillForm: EventListener;
408
+ // (undocumented)
398
409
  onEmailChanged: EventListener;
399
410
  // (undocumented)
400
411
  onOrganisationChanged: EventListener;
@@ -431,6 +442,18 @@ export class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore,
431
442
  // @public
432
443
  export class DefaultAuthMachine extends AbstractMachine<AuthMachineContext, AuthMachineEvent> implements AuthMachine {
433
444
  constructor(user: User, connect: Connect, fetchMachine: FetchMachine, messageBuilder: MessageBuilder, credentialManager: CredentialManager, uuid: UUID, loginMapper: LoginMapper, logoutMapper: LogoutMapper, config: AuthConfig);
445
+ // (undocumented)
446
+ addLoginEvents(): {
447
+ login: {
448
+ actions: string[];
449
+ target: string;
450
+ };
451
+ "login-details": {
452
+ target: string;
453
+ };
454
+ };
455
+ // (undocumented)
456
+ createFetchMachineEvent(url: string, msg?: Message_2): FetchMachineEvent;
434
457
  getFromContainer(): this;
435
458
  // (undocumented)
436
459
  start(options?: InterpreterOptions<typeof DefaultAuthMachine.machine>): void;
@@ -455,6 +478,8 @@ export class DefaultAuthStore extends AbstractStoreRoot<AuthStore, AuthEventMap,
455
478
  // (undocumented)
456
479
  onLogin: EventListener;
457
480
  // (undocumented)
481
+ onLoginDetails: EventListener;
482
+ // (undocumented)
458
483
  onLogout: EventListener;
459
484
  // (undocumented)
460
485
  onMachineEvent: EventListener;
@@ -629,6 +654,10 @@ export interface EVENT_LOGIN_AUTH_ACK extends ACK {
629
654
  export interface EVENT_LOGIN_AUTH_NACK extends NACK {
630
655
  }
631
656
 
657
+ // @public (undocumented)
658
+ export interface EVENT_LOGIN_DETAILS_ACK extends EVENT_LOGIN_AUTH_ACK {
659
+ }
660
+
632
661
  // @public (undocumented)
633
662
  export interface EVENT_LOGOUT_NACK extends NACK {
634
663
  }
@@ -718,6 +747,12 @@ export function isLoginAckDTO(dto: LoginDTO): dto is EVENT_LOGIN_AUTH_ACK;
718
747
  // @public
719
748
  export function isLoginAckEntity(entity: LoginEntity): entity is LoginAck;
720
749
 
750
+ // @public
751
+ export function isLoginDetailsAckDTO(dto: LoginDTO): dto is EVENT_LOGIN_DETAILS_ACK;
752
+
753
+ // @public
754
+ export function isLoginDetailsAckEntity(entity: LoginEntity): entity is LoginDetailsAck;
755
+
721
756
  // @public
722
757
  export function isLoginNackDTO(dto: LoginDTO): dto is EVENT_LOGIN_AUTH_NACK;
723
758
 
@@ -781,11 +816,15 @@ export interface LoginAck extends Ack {
781
816
  readonly zeroMqProxyOutboundPort: number;
782
817
  }
783
818
 
819
+ // @public (undocumented)
820
+ export interface LoginDetailsAck extends LoginAck {
821
+ }
822
+
784
823
  // @public
785
- export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_AUTH_NACK;
824
+ export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_DETAILS_ACK | EVENT_LOGIN_AUTH_NACK;
786
825
 
787
826
  // @public
788
- export type LoginEntity = LoginAck | LoginNack;
827
+ export type LoginEntity = LoginAck | LoginDetailsAck | LoginNack;
789
828
 
790
829
  // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "LoginMapper" because one of its declarations is marked as @internal
791
830
  //
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.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.3",
55
- "@genesislcap/genx": "14.71.1-auth-mf.3",
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.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.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": "296c1f938cde171316a18ef026c24143ef1bf2d4"
85
+ "gitHead": "cc206db0175582626b829d06ca03b5aaedc3c55d"
86
86
  }