@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.
- package/dist/dts/main/config.d.ts +52 -0
- package/dist/dts/main/config.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +6 -0
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/routes/base.d.ts +9 -2
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/dts/routes/forgot-password/forgot-password.d.ts.map +1 -1
- package/dist/dts/routes/forgot-password/forgot-password.template.d.ts.map +1 -1
- package/dist/dts/routes/login-form/login-form.d.ts +1 -1
- package/dist/dts/routes/login-form/login-form.d.ts.map +1 -1
- package/dist/dts/routes/login-form/login-form.template.d.ts.map +1 -1
- package/dist/dts/routes/request-account/request-account.template.d.ts.map +1 -1
- package/dist/dts/routes/reset-password/reset-password.d.ts +1 -1
- package/dist/dts/routes/reset-password/reset-password.d.ts.map +1 -1
- package/dist/dts/routes/reset-password/reset-password.template.d.ts.map +1 -1
- package/dist/dts/routes/verify/verify.template.d.ts.map +1 -1
- package/dist/esm/main/config.js +2 -0
- package/dist/esm/main/main.js +4 -0
- package/dist/esm/routes/base.js +53 -21
- package/dist/esm/routes/forgot-password/forgot-password.js +2 -1
- package/dist/esm/routes/forgot-password/forgot-password.template.js +4 -3
- package/dist/esm/routes/login-form/login-form.js +8 -6
- package/dist/esm/routes/login-form/login-form.template.js +15 -11
- package/dist/esm/routes/not-found/not-found.js +1 -1
- package/dist/esm/routes/protected/protected.template.js +1 -1
- package/dist/esm/routes/request-account/request-account.template.js +6 -13
- package/dist/esm/routes/reset-password/reset-password.js +9 -5
- package/dist/esm/routes/reset-password/reset-password.template.js +4 -3
- package/dist/esm/routes/verify/verify.template.js +5 -7
- package/dist/esm/translation.json +57 -0
- package/dist/foundation-login.api.json +135 -0
- package/dist/foundation-login.d.ts +68 -2
- package/docs/api/foundation-login.loginconfig.localizationresources.md +36 -0
- package/docs/api/foundation-login.loginconfig.md +2 -0
- package/docs/api/foundation-login.loginconfig.messagedelays.md +29 -0
- package/docs/api/foundation-login.md +2 -0
- package/docs/api/foundation-login.messagedelaykey.md +12 -0
- package/docs/api/foundation-login.messagedelays.md +14 -0
- package/docs/api-report.md +17 -2
- package/package.json +16 -14
package/docs/api-report.md
CHANGED
|
@@ -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.
|
|
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.
|
|
63
|
-
"@genesislcap/genx": "14.177.
|
|
64
|
-
"@genesislcap/rollup-builder": "14.177.
|
|
65
|
-
"@genesislcap/ts-builder": "14.177.
|
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.177.
|
|
67
|
-
"@genesislcap/vite-builder": "14.177.
|
|
68
|
-
"@genesislcap/webpack-builder": "14.177.
|
|
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.
|
|
73
|
-
"@genesislcap/foundation-
|
|
74
|
-
"@genesislcap/foundation-
|
|
75
|
-
"@genesislcap/foundation-
|
|
76
|
-
"@genesislcap/foundation-
|
|
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": "
|
|
95
|
+
"gitHead": "c07c95144c7ef605e038161300877aea756dcc28"
|
|
94
96
|
}
|