@genesislcap/foundation-login 14.177.0 → 14.177.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 (40) hide show
  1. package/dist/dts/main/config.d.ts +52 -0
  2. package/dist/dts/main/config.d.ts.map +1 -1
  3. package/dist/dts/main/main.d.ts +6 -0
  4. package/dist/dts/main/main.d.ts.map +1 -1
  5. package/dist/dts/routes/base.d.ts +9 -2
  6. package/dist/dts/routes/base.d.ts.map +1 -1
  7. package/dist/dts/routes/forgot-password/forgot-password.d.ts.map +1 -1
  8. package/dist/dts/routes/forgot-password/forgot-password.template.d.ts.map +1 -1
  9. package/dist/dts/routes/login-form/login-form.d.ts +1 -1
  10. package/dist/dts/routes/login-form/login-form.d.ts.map +1 -1
  11. package/dist/dts/routes/login-form/login-form.template.d.ts.map +1 -1
  12. package/dist/dts/routes/request-account/request-account.template.d.ts.map +1 -1
  13. package/dist/dts/routes/reset-password/reset-password.d.ts +1 -1
  14. package/dist/dts/routes/reset-password/reset-password.d.ts.map +1 -1
  15. package/dist/dts/routes/reset-password/reset-password.template.d.ts.map +1 -1
  16. package/dist/dts/routes/verify/verify.template.d.ts.map +1 -1
  17. package/dist/esm/main/config.js +2 -0
  18. package/dist/esm/main/main.js +4 -0
  19. package/dist/esm/routes/base.js +53 -21
  20. package/dist/esm/routes/forgot-password/forgot-password.js +2 -1
  21. package/dist/esm/routes/forgot-password/forgot-password.template.js +4 -3
  22. package/dist/esm/routes/login-form/login-form.js +8 -6
  23. package/dist/esm/routes/login-form/login-form.template.js +15 -11
  24. package/dist/esm/routes/not-found/not-found.js +1 -1
  25. package/dist/esm/routes/protected/protected.template.js +1 -1
  26. package/dist/esm/routes/request-account/request-account.template.js +6 -13
  27. package/dist/esm/routes/reset-password/reset-password.js +9 -5
  28. package/dist/esm/routes/reset-password/reset-password.template.js +4 -3
  29. package/dist/esm/routes/verify/verify.template.js +5 -7
  30. package/dist/esm/translation.json +57 -0
  31. package/dist/foundation-login.api.json +135 -0
  32. package/dist/foundation-login.d.ts +68 -2
  33. package/docs/api/foundation-login.loginconfig.localizationresources.md +36 -0
  34. package/docs/api/foundation-login.loginconfig.md +2 -0
  35. package/docs/api/foundation-login.loginconfig.messagedelays.md +29 -0
  36. package/docs/api/foundation-login.md +2 -0
  37. package/docs/api/foundation-login.messagedelaykey.md +12 -0
  38. package/docs/api/foundation-login.messagedelays.md +14 -0
  39. package/docs/api-report.md +17 -2
  40. package/package.json +16 -14
@@ -14,6 +14,8 @@ import { DefineFunction } from '@genesislcap/foundation-ui';
14
14
  import { ElementStyles } from '@microsoft/fast-element';
15
15
  import { FASTElement } from '@microsoft/fast-element';
16
16
  import { FoundationAnalytics } from '@genesislcap/foundation-comms';
17
+ import { I18next } from '@genesislcap/foundation-i18n';
18
+ import { I18nextConfig } from '@genesislcap/foundation-i18n';
17
19
  import { InterfaceSymbol } from '@microsoft/fast-foundation';
18
20
  import { Message } from '@genesislcap/foundation-comms';
19
21
  import { MessageBuilder } from '@genesislcap/foundation-comms';
@@ -27,7 +29,7 @@ import { ViewTemplate } from '@microsoft/fast-element';
27
29
  // Warning: (ae-internal-missing-underscore) The name "backButton" should be prefixed with an underscore because the declaration is marked as @internal
28
30
  //
29
31
  // @internal (undocumented)
30
- export const backButton: <T extends ConfigHost>(binding: Binding) => ViewTemplate<T, any>;
32
+ export const backButton: <T extends ConfigHost>(binding: Binding, label: string) => ViewTemplate<T, any>;
31
33
 
32
34
  // Warning: (ae-internal-missing-underscore) The name "BackgroundElement" should be prefixed with an underscore because the declaration is marked as @internal
33
35
  //
@@ -86,7 +88,7 @@ export class BaseRoute extends ConfigHostElement {
86
88
  // (undocumented)
87
89
  queueOnBack(delay?: number): void;
88
90
  // (undocumented)
89
- sendMessage<T = any>(message: Message<T>, successFeedback?: string, successCallback?: (result: any) => void): Promise<void>;
91
+ sendMessage<T = any>(message: Message<T>, successFeedback?: string, successCallback?: (result: any) => void, delayBack?: number): Promise<void>;
90
92
  // (undocumented)
91
93
  session: Session;
92
94
  // (undocumented)
@@ -96,6 +98,8 @@ export class BaseRoute extends ConfigHostElement {
96
98
  // (undocumented)
97
99
  storeCredentials(password?: string): void;
98
100
  // (undocumented)
101
+ toLocalisedText(text: string): string;
102
+ // (undocumented)
99
103
  username: string;
100
104
  }
101
105
 
@@ -116,6 +120,7 @@ export class ConfigHostElement extends FASTElement implements ConfigHost {
116
120
  connectedCallback(): void;
117
121
  // (undocumented)
118
122
  container: Container;
123
+ i18next: I18next;
119
124
  }
120
125
 
121
126
  // Warning: (ae-internal-missing-underscore) The name "configurableTextField" should be prefixed with an underscore because the declaration is marked as @internal
@@ -222,6 +227,8 @@ export class Login extends FASTElement {
222
227
  // @internal
223
228
  container: Container;
224
229
  // @internal
230
+ i18next: I18next;
231
+ // @internal
225
232
  provider: FASTElement;
226
233
  // @internal
227
234
  ready: boolean;
@@ -243,7 +250,9 @@ export interface LoginConfig {
243
250
  defaultRedirectUrl: string;
244
251
  fields: FieldConfigMap;
245
252
  hostPath: string;
253
+ localizationResources?: I18nextConfig['resources'];
246
254
  logo: ElementStyles | null;
255
+ messageDelays?: MessageDelays;
247
256
  omitRedirectUrls: string[];
248
257
  omitRoutes: Exclude<Routes, 'login' | 'not-found'>[];
249
258
  redirectHandler?: (url: string) => void;
@@ -278,6 +287,12 @@ export class MainRouterConfig extends RouterConfiguration<Settings> {
278
287
  construct<T>(Type: Constructable<T>): T;
279
288
  }
280
289
 
290
+ // @public (undocumented)
291
+ export type MessageDelayKey = 'forgotPassword' | 'resetPassword' | 'base';
292
+
293
+ // @public (undocumented)
294
+ export type MessageDelays = Partial<Record<MessageDelayKey, number>>;
295
+
281
296
  // Warning: (ae-internal-missing-underscore) The name "MessageElement" should be prefixed with an underscore because the declaration is marked as @internal
282
297
  //
283
298
  // @internal (undocumented)
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.177.0",
4
+ "version": "14.177.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-login.d.ts",
@@ -59,26 +59,28 @@
59
59
  "test:debug": "genx test --debug"
60
60
  },
61
61
  "devDependencies": {
62
- "@genesislcap/foundation-testing": "14.177.0",
63
- "@genesislcap/genx": "14.177.0",
64
- "@genesislcap/rollup-builder": "14.177.0",
65
- "@genesislcap/ts-builder": "14.177.0",
66
- "@genesislcap/uvu-playwright-builder": "14.177.0",
67
- "@genesislcap/vite-builder": "14.177.0",
68
- "@genesislcap/webpack-builder": "14.177.0",
62
+ "@genesislcap/foundation-testing": "14.177.1",
63
+ "@genesislcap/genx": "14.177.1",
64
+ "@genesislcap/rollup-builder": "14.177.1",
65
+ "@genesislcap/ts-builder": "14.177.1",
66
+ "@genesislcap/uvu-playwright-builder": "14.177.1",
67
+ "@genesislcap/vite-builder": "14.177.1",
68
+ "@genesislcap/webpack-builder": "14.177.1",
69
69
  "rimraf": "^3.0.2"
70
70
  },
71
71
  "dependencies": {
72
- "@genesislcap/foundation-comms": "14.177.0",
73
- "@genesislcap/foundation-logger": "14.177.0",
74
- "@genesislcap/foundation-ui": "14.177.0",
75
- "@genesislcap/foundation-utils": "14.177.0",
76
- "@genesislcap/foundation-zero": "14.177.0",
72
+ "@genesislcap/foundation-comms": "14.177.1",
73
+ "@genesislcap/foundation-i18n": "14.177.1",
74
+ "@genesislcap/foundation-logger": "14.177.1",
75
+ "@genesislcap/foundation-ui": "14.177.1",
76
+ "@genesislcap/foundation-utils": "14.177.1",
77
+ "@genesislcap/foundation-zero": "14.177.1",
77
78
  "@microsoft/fast-components": "^2.30.6",
78
79
  "@microsoft/fast-element": "^1.12.0",
79
80
  "@microsoft/fast-foundation": "^2.49.4",
80
81
  "@microsoft/fast-router": "^0.4.8",
81
82
  "@microsoft/fast-web-utilities": "^5.4.1",
83
+ "lodash": "^4.17.21",
82
84
  "tslib": "^2.3.1"
83
85
  },
84
86
  "repository": {
@@ -90,5 +92,5 @@
90
92
  "access": "public"
91
93
  },
92
94
  "customElements": "dist/custom-elements.json",
93
- "gitHead": "b3c0ce3e0fa58bae562c2c9bec96beee6a4a2ed4"
95
+ "gitHead": "c07c95144c7ef605e038161300877aea756dcc28"
94
96
  }