@genesislcap/foundation-login 14.62.0 → 14.62.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/docs/.gitattributes +2 -0
  2. package/docs/api/foundation-login.configure.md +63 -0
  3. package/docs/api/foundation-login.defaultapihost.md +12 -0
  4. package/docs/api/foundation-login.defaultloginconfig.md +13 -0
  5. package/docs/api/foundation-login.defaultorganisation.md +12 -0
  6. package/docs/api/foundation-login.defaultpassword.md +12 -0
  7. package/docs/api/foundation-login.defaultsocketext.md +12 -0
  8. package/docs/api/foundation-login.defaulttemplateoptions.md +16 -0
  9. package/docs/api/foundation-login.defaultuser.md +12 -0
  10. package/docs/api/foundation-login.define.md +38 -0
  11. package/docs/api/foundation-login.definition.md +19 -0
  12. package/docs/api/foundation-login.fieldconfig.md +19 -0
  13. package/docs/api/foundation-login.fieldconfigmap.md +19 -0
  14. package/docs/api/foundation-login.hostenv.md +12 -0
  15. package/docs/api/foundation-login.hosturl.md +12 -0
  16. package/docs/api/foundation-login.idp.id.md +11 -0
  17. package/docs/api/foundation-login.idp.md +20 -0
  18. package/docs/api/foundation-login.idp.type.md +11 -0
  19. package/docs/api/foundation-login.idpresponse.id.md +11 -0
  20. package/docs/api/foundation-login.idpresponse.md +20 -0
  21. package/docs/api/foundation-login.idpresponse.type.md +11 -0
  22. package/docs/api/foundation-login.ismfroute.md +24 -0
  23. package/docs/api/foundation-login.login.md +108 -0
  24. package/docs/api/foundation-login.loginconfig.autoauth.md +18 -0
  25. package/docs/api/foundation-login.loginconfig.autoconnect.md +13 -0
  26. package/docs/api/foundation-login.loginconfig.background.md +30 -0
  27. package/docs/api/foundation-login.loginconfig.defaultredirecturl.md +18 -0
  28. package/docs/api/foundation-login.loginconfig.fields.md +18 -0
  29. package/docs/api/foundation-login.loginconfig.hostpath.md +18 -0
  30. package/docs/api/foundation-login.loginconfig.logo.md +28 -0
  31. package/docs/api/foundation-login.loginconfig.md +31 -0
  32. package/docs/api/foundation-login.loginconfig.omitredirecturls.md +21 -0
  33. package/docs/api/foundation-login.loginconfig.omitroutes.md +25 -0
  34. package/docs/api/foundation-login.loginconfig.showconnectionindicator.md +13 -0
  35. package/docs/api/foundation-login.loginconfig.sso.md +18 -0
  36. package/docs/api/foundation-login.loginconfig.versioninformation.md +25 -0
  37. package/docs/api/foundation-login.loginhosted.md +23 -0
  38. package/docs/api/foundation-login.loginhosted.registercommoncomponents.md +18 -0
  39. package/docs/api/foundation-login.md +59 -0
  40. package/docs/api/foundation-login.routes.md +20 -0
  41. package/docs/api/foundation-login.settings.md +20 -0
  42. package/docs/api/foundation-login.ssoconfig.md +15 -0
  43. package/docs/api/foundation-login.styles.md +24 -0
  44. package/docs/api/foundation-login.template.md +12 -0
  45. package/docs/api/foundation-login.templatecomponents.md +25 -0
  46. package/docs/api/foundation-login.templateoptions.md +19 -0
  47. package/docs/api/index.md +12 -0
  48. package/docs/api-report.md +386 -0
  49. package/docs/img/foundation-login_change-password.png +0 -0
  50. package/docs/img/foundation-login_forgotten-password.png +0 -0
  51. package/docs/img/foundation-login_login-sso.png +0 -0
  52. package/docs/img/foundation-login_login-standard.png +0 -0
  53. package/docs/img/foundation-login_request-account.png +0 -0
  54. package/package.json +8 -8
@@ -0,0 +1,386 @@
1
+ ## API Report File for "@genesislcap/foundation-login"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { Auth } from '@genesislcap/foundation-comms';
8
+ import { Binding } from '@microsoft/fast-element';
9
+ import { Connect } from '@genesislcap/foundation-comms';
10
+ import { Constructable } from '@microsoft/fast-element';
11
+ import { Container } from '@microsoft/fast-foundation';
12
+ import { CredentialManager } from '@genesislcap/foundation-comms';
13
+ import { DefineFunction } from '@genesislcap/foundation-ui';
14
+ import { ElementStyles } from '@microsoft/fast-element';
15
+ import { FASTElement } from '@microsoft/fast-element';
16
+ import { FoundationAnalytics } from '@genesislcap/foundation-comms';
17
+ import { InterfaceSymbol } from '@microsoft/fast-foundation';
18
+ import { Message } from '@genesislcap/foundation-comms';
19
+ import { MessageBuilder } from '@genesislcap/foundation-comms';
20
+ import { PartialFASTElementDefinition } from '@microsoft/fast-element';
21
+ import { RouterConfiguration } from '@microsoft/fast-router';
22
+ import { Session } from '@genesislcap/foundation-comms';
23
+ import { SyntheticViewTemplate } from '@microsoft/fast-element';
24
+ import { TemplateElementDependency } from '@genesislcap/foundation-ui';
25
+ import { ViewTemplate } from '@microsoft/fast-element';
26
+
27
+ // Warning: (ae-internal-missing-underscore) The name "backButton" should be prefixed with an underscore because the declaration is marked as @internal
28
+ //
29
+ // @internal (undocumented)
30
+ export const backButton: <T extends ConfigHost>(binding: Binding) => ViewTemplate<T, any>;
31
+
32
+ // Warning: (ae-internal-missing-underscore) The name "BackgroundElement" should be prefixed with an underscore because the declaration is marked as @internal
33
+ //
34
+ // @internal (undocumented)
35
+ export class BackgroundElement extends ConfigHostElement {
36
+ // (undocumented)
37
+ connectedCallback(): void;
38
+ }
39
+
40
+ // Warning: (ae-internal-missing-underscore) The name "BaseRoute" should be prefixed with an underscore because the declaration is marked as @internal
41
+ //
42
+ // @internal (undocumented)
43
+ export class BaseRoute extends ConfigHostElement {
44
+ // (undocumented)
45
+ auth: Auth;
46
+ // (undocumented)
47
+ autofill(): Promise<boolean>;
48
+ // (undocumented)
49
+ clearError(): void;
50
+ // (undocumented)
51
+ connect: Connect;
52
+ // (undocumented)
53
+ connectedCallback(): void;
54
+ // (undocumented)
55
+ credentialManager: CredentialManager;
56
+ // (undocumented)
57
+ email: string;
58
+ // (undocumented)
59
+ ensureConnection(): Promise<boolean>;
60
+ // (undocumented)
61
+ getSubRoutePath(routeName: Routes | string): string;
62
+ // (undocumented)
63
+ hasErrors: boolean;
64
+ // (undocumented)
65
+ host: string;
66
+ // (undocumented)
67
+ isSubmitting: boolean;
68
+ // (undocumented)
69
+ message: string;
70
+ // (undocumented)
71
+ messageBuilder: MessageBuilder;
72
+ // (undocumented)
73
+ onBack: () => void;
74
+ // (undocumented)
75
+ onNavigate: (path: string) => void;
76
+ // (undocumented)
77
+ onSubmit(): Promise<void>;
78
+ // (undocumented)
79
+ organisation: string;
80
+ // (undocumented)
81
+ get orgUsername(): string;
82
+ // (undocumented)
83
+ password: string;
84
+ // (undocumented)
85
+ password2: string;
86
+ // (undocumented)
87
+ queueOnBack(delay?: number): void;
88
+ // (undocumented)
89
+ sendMessage<T = any>(message: Message<T>, successFeedback?: string, successCallback?: (result: any) => void): Promise<void>;
90
+ // (undocumented)
91
+ session: Session;
92
+ // (undocumented)
93
+ setError(message: string): void;
94
+ // (undocumented)
95
+ showPasswords: boolean;
96
+ // (undocumented)
97
+ storeCredentials(password?: string): void;
98
+ // (undocumented)
99
+ username: string;
100
+ }
101
+
102
+ // Warning: (ae-internal-missing-underscore) The name "ConfigHost" should be prefixed with an underscore because the declaration is marked as @internal
103
+ //
104
+ // @internal (undocumented)
105
+ export type ConfigHost = {
106
+ config: LoginConfig;
107
+ };
108
+
109
+ // Warning: (ae-internal-missing-underscore) The name "ConfigHostElement" should be prefixed with an underscore because the declaration is marked as @internal
110
+ //
111
+ // @internal (undocumented)
112
+ export class ConfigHostElement extends FASTElement implements ConfigHost {
113
+ // (undocumented)
114
+ config: LoginConfig;
115
+ // (undocumented)
116
+ connectedCallback(): void;
117
+ // (undocumented)
118
+ container: Container;
119
+ }
120
+
121
+ // Warning: (ae-internal-missing-underscore) The name "configurableTextField" should be prefixed with an underscore because the declaration is marked as @internal
122
+ //
123
+ // @internal (undocumented)
124
+ 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>;
125
+
126
+ // @public
127
+ export function configure(container: Container, config: Partial<LoginConfig>): void;
128
+
129
+ // @public (undocumented)
130
+ export const defaultApiHost: string;
131
+
132
+ // @public
133
+ export const defaultLoginConfig: LoginConfig;
134
+
135
+ // Warning: (ae-internal-missing-underscore) The name "defaultOnBackMS" should be prefixed with an underscore because the declaration is marked as @internal
136
+ //
137
+ // @internal (undocumented)
138
+ export const defaultOnBackMS = 3000;
139
+
140
+ // @public (undocumented)
141
+ export const defaultOrganisation: string;
142
+
143
+ // @public (undocumented)
144
+ export const defaultPassword: string;
145
+
146
+ // @public (undocumented)
147
+ export const defaultSocketExt: string;
148
+
149
+ // @beta
150
+ export const defaultTemplateOptions: TemplateOptions;
151
+
152
+ // @public (undocumented)
153
+ export const defaultUser: string;
154
+
155
+ // @beta
156
+ export const define: DefineFunction<typeof Login>;
157
+
158
+ // @beta (undocumented)
159
+ export const definition: PartialFASTElementDefinition;
160
+
161
+ // Warning: (ae-internal-missing-underscore) The name "emailField" should be prefixed with an underscore because the declaration is marked as @internal
162
+ //
163
+ // @internal (undocumented)
164
+ export const emailField: <T extends BaseRoute>() => ViewTemplate<T, any>;
165
+
166
+ // @public
167
+ export type FieldConfig = {
168
+ label: string;
169
+ value?: any;
170
+ required?: boolean;
171
+ pattern?: string;
172
+ title?: string;
173
+ };
174
+
175
+ // @public (undocumented)
176
+ export type FieldConfigMap = {
177
+ organisation: FieldConfig | null;
178
+ username: FieldConfig;
179
+ email: FieldConfig;
180
+ password: FieldConfig;
181
+ };
182
+
183
+ // @public (undocumented)
184
+ export const hostEnv: string;
185
+
186
+ // @public (undocumented)
187
+ export const hostUrl: string;
188
+
189
+ // @public (undocumented)
190
+ export interface IDP {
191
+ // (undocumented)
192
+ id: string;
193
+ // (undocumented)
194
+ type: string;
195
+ }
196
+
197
+ // @public (undocumented)
198
+ export interface IDPResponse {
199
+ // (undocumented)
200
+ ID: string;
201
+ // (undocumented)
202
+ TYPE: string;
203
+ }
204
+
205
+ // @public
206
+ export function isMFRoute(pathname?: string): boolean;
207
+
208
+ // @public
209
+ export class Login extends FASTElement {
210
+ // @internal
211
+ checkForSSOToken(): void;
212
+ // @internal
213
+ config: MainRouterConfig;
214
+ // @internal (undocumented)
215
+ connectedCallback(): Promise<void>;
216
+ // @internal
217
+ container: Container;
218
+ // @internal
219
+ provider: FASTElement;
220
+ // @internal
221
+ ready: boolean;
222
+ // @internal
223
+ registerCommonComponents(): Promise<void>;
224
+ // @internal (undocumented)
225
+ protected registerDIDependencies(): void;
226
+ // @internal
227
+ session: Session;
228
+ }
229
+
230
+ // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "LoginConfig" because one of its declarations is marked as @internal
231
+ //
232
+ // @public
233
+ export interface LoginConfig {
234
+ autoAuth: boolean;
235
+ autoConnect: boolean;
236
+ background: ElementStyles;
237
+ defaultRedirectUrl: string;
238
+ fields: FieldConfigMap;
239
+ hostPath: string;
240
+ logo: ElementStyles | null;
241
+ omitRedirectUrls: string[];
242
+ omitRoutes: Exclude<Routes, 'login' | 'not-found'>[];
243
+ showConnectionIndicator: boolean;
244
+ sso: SSOConfig | null;
245
+ versionInformation?: string;
246
+ }
247
+
248
+ // @internal
249
+ export const LoginConfig: InterfaceSymbol<LoginConfig>;
250
+
251
+ // @beta (undocumented)
252
+ export class LoginHosted extends Login {
253
+ // (undocumented)
254
+ registerCommonComponents(): Promise<void>;
255
+ }
256
+
257
+ // Warning: (ae-internal-missing-underscore) The name "LogoElement" should be prefixed with an underscore because the declaration is marked as @internal
258
+ //
259
+ // @internal (undocumented)
260
+ export class LogoElement extends ConfigHostElement {
261
+ }
262
+
263
+ // Warning: (ae-internal-missing-underscore) The name "MainRouterConfig" should be prefixed with an underscore because the declaration is marked as @internal
264
+ //
265
+ // @internal
266
+ export class MainRouterConfig extends RouterConfiguration<Settings> {
267
+ constructor(auth: Auth, container: Container, analytics: FoundationAnalytics, session: Session, loginConfig?: LoginConfig);
268
+ // (undocumented)
269
+ configure(): void;
270
+ // (undocumented)
271
+ construct<T>(Type: Constructable<T>): T;
272
+ }
273
+
274
+ // Warning: (ae-internal-missing-underscore) The name "MessageElement" should be prefixed with an underscore because the declaration is marked as @internal
275
+ //
276
+ // @internal (undocumented)
277
+ export class MessageElement extends FASTElement {
278
+ // (undocumented)
279
+ classNames: string;
280
+ // (undocumented)
281
+ message: string;
282
+ // (undocumented)
283
+ nonError: boolean;
284
+ // (undocumented)
285
+ nonErrorChanged(): void;
286
+ }
287
+
288
+ // Warning: (ae-internal-missing-underscore) The name "organisationField" should be prefixed with an underscore because the declaration is marked as @internal
289
+ //
290
+ // @internal (undocumented)
291
+ export const organisationField: <T extends BaseRoute>() => ViewTemplate<T, any>;
292
+
293
+ // Warning: (ae-internal-missing-underscore) The name "password2Field" should be prefixed with an underscore because the declaration is marked as @internal
294
+ //
295
+ // @internal (undocumented)
296
+ export const password2Field: <T extends BaseRoute>(type: 'new' | 'confirmation') => ViewTemplate<T, any>;
297
+
298
+ // Warning: (ae-internal-missing-underscore) The name "passwordField" should be prefixed with an underscore because the declaration is marked as @internal
299
+ //
300
+ // @internal (undocumented)
301
+ export const passwordField: <T extends BaseRoute>(label?: string) => ViewTemplate<T, any>;
302
+
303
+ // @public (undocumented)
304
+ export const Routes: {
305
+ readonly login: "login";
306
+ readonly 'request-account': "request-account";
307
+ readonly 'reset-password': "reset-password";
308
+ readonly 'forgot-password': "forgot-password";
309
+ readonly verify: "verify";
310
+ readonly protected: "protected";
311
+ readonly 'not-found': "not-found";
312
+ };
313
+
314
+ // @public (undocumented)
315
+ export type Routes = (typeof Routes)[keyof typeof Routes];
316
+
317
+ // @public
318
+ export type Settings = {
319
+ public?: boolean;
320
+ };
321
+
322
+ // Warning: (ae-internal-missing-underscore) The name "showPasswordsCheckbox" should be prefixed with an underscore because the declaration is marked as @internal
323
+ //
324
+ // @internal (undocumented)
325
+ export const showPasswordsCheckbox: <T extends BaseRoute>() => ViewTemplate<T, any>;
326
+
327
+ // @public (undocumented)
328
+ export type SSOConfig = {
329
+ toggled?: boolean;
330
+ identityProvidersPath: string;
331
+ };
332
+
333
+ // Warning: (ae-internal-missing-underscore) The name "standaloneDefinition" should be prefixed with an underscore because the declaration is marked as @internal
334
+ //
335
+ // @internal (undocumented)
336
+ export const standaloneDefinition: PartialFASTElementDefinition;
337
+
338
+ // Warning: (ae-incompatible-release-tags) The symbol "styles" is marked as @public, but its signature references "TemplateOptions" which is marked as @beta
339
+ //
340
+ // @public (undocumented)
341
+ export const styles: (options: TemplateOptions) => ElementStyles;
342
+
343
+ // Warning: (ae-internal-missing-underscore) The name "submitButton" should be prefixed with an underscore because the declaration is marked as @internal
344
+ //
345
+ // @internal (undocumented)
346
+ export const submitButton: <T extends ConfigHost>(label: string, dataTestId?: string, disabled?: boolean) => ViewTemplate<T, any>;
347
+
348
+ // Warning: (ae-internal-missing-underscore) The name "SubmittingIndicator" should be prefixed with an underscore because the declaration is marked as @internal
349
+ //
350
+ // @internal (undocumented)
351
+ export class SubmittingIndicator extends FASTElement {
352
+ // (undocumented)
353
+ isSubmitting: boolean;
354
+ }
355
+
356
+ // Warning: (ae-incompatible-release-tags) The symbol "template" is marked as @public, but its signature references "TemplateOptions" which is marked as @beta
357
+ //
358
+ // @public (undocumented)
359
+ export const template: (options: TemplateOptions) => ViewTemplate<Login, any>;
360
+
361
+ // @beta (undocumented)
362
+ export type TemplateComponents = {
363
+ anchor: TemplateElementDependency;
364
+ button: TemplateElementDependency;
365
+ card: TemplateElementDependency;
366
+ checkbox: TemplateElementDependency;
367
+ listboxOption: TemplateElementDependency;
368
+ provider: TemplateElementDependency;
369
+ router: TemplateElementDependency;
370
+ select: TemplateElementDependency;
371
+ textField: TemplateElementDependency;
372
+ };
373
+
374
+ // @beta (undocumented)
375
+ export type TemplateOptions = TemplateComponents & {
376
+ somePartial?: string | SyntheticViewTemplate;
377
+ };
378
+
379
+ // Warning: (ae-internal-missing-underscore) The name "usernameField" should be prefixed with an underscore because the declaration is marked as @internal
380
+ //
381
+ // @internal (undocumented)
382
+ export const usernameField: <T extends BaseRoute>() => ViewTemplate<T, any>;
383
+
384
+ // (No @packageDocumentation comment for this package)
385
+
386
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-login",
3
3
  "description": "Genesis Foundation Login",
4
- "version": "14.62.0",
4
+ "version": "14.62.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-login.d.ts",
@@ -49,15 +49,15 @@
49
49
  "test:debug": "genx test --debug"
50
50
  },
51
51
  "devDependencies": {
52
- "@genesislcap/foundation-testing": "14.62.0",
53
- "@genesislcap/genx": "14.62.0",
52
+ "@genesislcap/foundation-testing": "14.62.1",
53
+ "@genesislcap/genx": "14.62.1",
54
54
  "rimraf": "^3.0.2"
55
55
  },
56
56
  "dependencies": {
57
- "@genesislcap/foundation-comms": "14.62.0",
58
- "@genesislcap/foundation-ui": "14.62.0",
59
- "@genesislcap/foundation-utils": "14.62.0",
60
- "@genesislcap/foundation-zero": "14.62.0",
57
+ "@genesislcap/foundation-comms": "14.62.1",
58
+ "@genesislcap/foundation-ui": "14.62.1",
59
+ "@genesislcap/foundation-utils": "14.62.1",
60
+ "@genesislcap/foundation-zero": "14.62.1",
61
61
  "@microsoft/fast-components": "^2.21.3",
62
62
  "@microsoft/fast-element": "^1.7.0",
63
63
  "@microsoft/fast-foundation": "^2.33.2",
@@ -74,5 +74,5 @@
74
74
  "access": "public"
75
75
  },
76
76
  "customElements": "dist/custom-elements.json",
77
- "gitHead": "b857abb0a2aa6e025a83eb174b6654e7c0acfe48"
77
+ "gitHead": "07db799664062919182c7c29fefab54b9c94fcfe"
78
78
  }