@frontegg/types 7.75.0 → 7.76.0-alpha.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/Components/EditEmailForm.d.ts +6 -0
- package/Components/EditEmailForm.js +1 -0
- package/Components/index.d.ts +1 -0
- package/Components/index.js +2 -1
- package/Localizations/AdminPortalLocalizations/profile.d.ts +33 -0
- package/Localizations/Common/index.d.ts +1 -0
- package/Localizations/Common/index.js +1 -0
- package/Localizations/Common/otc.d.ts +47 -0
- package/Localizations/Common/otc.js +1 -0
- package/Localizations/LoginBoxLocalization/forgetPassword.d.ts +56 -0
- package/Localizations/LoginBoxLocalization/login.d.ts +12 -42
- package/ThemeOptions/fieldsAppearanceConsts.d.ts +2 -0
- package/ThemeOptions/fieldsAppearanceConsts.js +1 -0
- package/index.js +1 -1
- package/node/Components/EditEmailForm.js +5 -0
- package/node/Components/index.js +11 -0
- package/node/Localizations/Common/index.js +11 -0
- package/node/Localizations/Common/otc.js +5 -0
- package/node/ThemeOptions/fieldsAppearanceConsts.js +1 -0
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/Components/index.d.ts
CHANGED
package/Components/index.js
CHANGED
|
@@ -35,6 +35,10 @@ export interface ProfileLocalization {
|
|
|
35
35
|
* Settings Phone row tooltip
|
|
36
36
|
*/
|
|
37
37
|
phoneTooltip: string;
|
|
38
|
+
/**
|
|
39
|
+
* Settings Username row title
|
|
40
|
+
*/
|
|
41
|
+
username: string;
|
|
38
42
|
/**
|
|
39
43
|
* Settings Address row title
|
|
40
44
|
*/
|
|
@@ -164,6 +168,35 @@ export interface ProfileLocalization {
|
|
|
164
168
|
*/
|
|
165
169
|
save: string;
|
|
166
170
|
};
|
|
171
|
+
/**
|
|
172
|
+
* Edit username dialog strings
|
|
173
|
+
*/
|
|
174
|
+
profile_EditUsername: {
|
|
175
|
+
/**
|
|
176
|
+
* Dialog title
|
|
177
|
+
*/
|
|
178
|
+
title: string;
|
|
179
|
+
/**
|
|
180
|
+
* Edit username input label
|
|
181
|
+
*/
|
|
182
|
+
usernameInputLabel: string;
|
|
183
|
+
/**
|
|
184
|
+
* Edit username dialog cancel button text
|
|
185
|
+
*/
|
|
186
|
+
cancel: string;
|
|
187
|
+
/**
|
|
188
|
+
* Edit username dialog submit button text
|
|
189
|
+
*/
|
|
190
|
+
save: string;
|
|
191
|
+
/**
|
|
192
|
+
* Error displayed if username input is too long
|
|
193
|
+
*/
|
|
194
|
+
usernameIsTooLong: string;
|
|
195
|
+
/**
|
|
196
|
+
* Error displayed if username input is invalid
|
|
197
|
+
*/
|
|
198
|
+
usernameInvalid: string;
|
|
199
|
+
};
|
|
167
200
|
/**
|
|
168
201
|
* Edit phone numbers dialog strings
|
|
169
202
|
*/
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface OtcLocalization {
|
|
2
|
+
/**
|
|
3
|
+
* Oct section title
|
|
4
|
+
*/
|
|
5
|
+
otcTitle: string;
|
|
6
|
+
/**
|
|
7
|
+
* Otc input label
|
|
8
|
+
*/
|
|
9
|
+
otcInputLabel: string;
|
|
10
|
+
/**
|
|
11
|
+
* Text Continue
|
|
12
|
+
*/
|
|
13
|
+
otcContinue: string;
|
|
14
|
+
/**
|
|
15
|
+
* Text Back
|
|
16
|
+
*/
|
|
17
|
+
otcBack?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Text Resend
|
|
20
|
+
*/
|
|
21
|
+
otcResend?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Text resending in progress
|
|
24
|
+
*/
|
|
25
|
+
otcResending?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Otc input error message if it's empty
|
|
28
|
+
*/
|
|
29
|
+
otcCodeIsRequired?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Text `the OTC has a wrong length`
|
|
32
|
+
*/
|
|
33
|
+
otcInvalidLengthCode?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Text HaventReceivedCode
|
|
36
|
+
*/
|
|
37
|
+
otcHaventReceivedCode?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Oct section message
|
|
40
|
+
* EX: "We sent you a six digit code at {{email}}"
|
|
41
|
+
*/
|
|
42
|
+
otcMessage?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Otc input placeholder
|
|
45
|
+
*/
|
|
46
|
+
otcInputPlaceholder?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,6 +19,22 @@ export interface ForgetPasswordLocalization {
|
|
|
19
19
|
* Forget password form email input placeholder
|
|
20
20
|
*/
|
|
21
21
|
emailInputPlaceholder: string;
|
|
22
|
+
/**
|
|
23
|
+
* Forget password form email or phone input label
|
|
24
|
+
*/
|
|
25
|
+
emailOrPhoneInputLabel: string;
|
|
26
|
+
/**
|
|
27
|
+
* Forget password form email or phone input placeholder
|
|
28
|
+
*/
|
|
29
|
+
emailOrPhonePlaceHolder: string;
|
|
30
|
+
/**
|
|
31
|
+
* Forget password form phone input label
|
|
32
|
+
*/
|
|
33
|
+
phoneInputLabel: string;
|
|
34
|
+
/**
|
|
35
|
+
* Forget password form phone input placeholder
|
|
36
|
+
*/
|
|
37
|
+
phonePlaceholder: string;
|
|
22
38
|
/**
|
|
23
39
|
* error message displayed if email is invalid
|
|
24
40
|
*/
|
|
@@ -27,9 +43,49 @@ export interface ForgetPasswordLocalization {
|
|
|
27
43
|
* error message displayed if email is empty
|
|
28
44
|
*/
|
|
29
45
|
emailIsRequired: string;
|
|
46
|
+
/**
|
|
47
|
+
* error message displayed if phone is invalid
|
|
48
|
+
*/
|
|
49
|
+
phoneIsInvalid: string;
|
|
50
|
+
/**
|
|
51
|
+
* error message displayed if phone is empty
|
|
52
|
+
*/
|
|
53
|
+
phoneIsRequired: string;
|
|
54
|
+
/**
|
|
55
|
+
* Text for submit button
|
|
56
|
+
*/
|
|
30
57
|
submitButtonText: string;
|
|
58
|
+
/**
|
|
59
|
+
* Text for back to login link
|
|
60
|
+
*/
|
|
31
61
|
backToLogin: string;
|
|
62
|
+
/**
|
|
63
|
+
* Title displayed on success screen
|
|
64
|
+
*/
|
|
32
65
|
resetEmailSentTitle: string;
|
|
66
|
+
/**
|
|
67
|
+
* Message displayed on success screen (use {{identifier}} for placeholder)
|
|
68
|
+
*/
|
|
33
69
|
resetEmailSentMessage: string;
|
|
70
|
+
/**
|
|
71
|
+
* Title for the password recovery method selection screen
|
|
72
|
+
* @default Password recovery
|
|
73
|
+
*/
|
|
74
|
+
passwordRecoveryTitle?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Subtitle for the password recovery method selection screen
|
|
77
|
+
* @default To continue, choose one of these methods
|
|
78
|
+
*/
|
|
79
|
+
passwordRecoverySubtitle?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Text for the email recovery option button
|
|
82
|
+
* @default Send an email with link
|
|
83
|
+
*/
|
|
84
|
+
emailOptionTitle?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Text for the SMS recovery option button
|
|
87
|
+
* @default Send a SMS code
|
|
88
|
+
*/
|
|
89
|
+
smsOptionTitle?: string;
|
|
34
90
|
};
|
|
35
91
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TestimonialComponentLocalization, TitleDescriptionComponentLocalization, ValuesComponentLocalization } from './SplitPageTypes';
|
|
2
2
|
import { PrestepLocalization } from './prestep';
|
|
3
|
+
import { OtcLocalization } from '../Common/otc';
|
|
3
4
|
export interface LoginLocalization {
|
|
4
5
|
/**
|
|
5
6
|
* strings in login page
|
|
@@ -33,6 +34,14 @@ export interface LoginLocalization {
|
|
|
33
34
|
emailOrPhonePlaceHolder: string;
|
|
34
35
|
phonePlaceholder: string;
|
|
35
36
|
phoneInputLabel: string;
|
|
37
|
+
emailPhoneOrUsernameInputLabel: string;
|
|
38
|
+
emailPhoneOrUsernamePlaceHolder: string;
|
|
39
|
+
usernameOrEmailInputLabel: string;
|
|
40
|
+
usernameOrEmailPlaceHolder: string;
|
|
41
|
+
usernameOrPhoneInputLabel: string;
|
|
42
|
+
usernameOrPhonePlaceHolder: string;
|
|
43
|
+
usernameInputLabel: string;
|
|
44
|
+
usernamePlaceHolder: string;
|
|
36
45
|
/**
|
|
37
46
|
* error message displayed if email is invalid
|
|
38
47
|
*/
|
|
@@ -202,47 +211,6 @@ export interface LoginLocalization {
|
|
|
202
211
|
* Oct section title
|
|
203
212
|
*/
|
|
204
213
|
smsOtcChangePhoneMessage: string;
|
|
205
|
-
/**
|
|
206
|
-
* Oct section title
|
|
207
|
-
*/
|
|
208
|
-
otcTitle: string;
|
|
209
|
-
/**
|
|
210
|
-
* Oct section message
|
|
211
|
-
* EX: "We sent you a six digit code at {{email}}"
|
|
212
|
-
*/
|
|
213
|
-
otcMessage: string;
|
|
214
|
-
/**
|
|
215
|
-
* Otc input label
|
|
216
|
-
*/
|
|
217
|
-
otcInputLabel: string;
|
|
218
|
-
/**
|
|
219
|
-
* Otc input placeholder
|
|
220
|
-
*/
|
|
221
|
-
otcInputPlaceholder: string;
|
|
222
|
-
/**
|
|
223
|
-
* Otc input error message if it's empty
|
|
224
|
-
*/
|
|
225
|
-
otcCodeIsRequired: string;
|
|
226
|
-
/**
|
|
227
|
-
* Text Continue
|
|
228
|
-
*/
|
|
229
|
-
otcContinue: string;
|
|
230
|
-
/**
|
|
231
|
-
* Text HaventReceivedCode
|
|
232
|
-
*/
|
|
233
|
-
otcHaventReceivedCode: string;
|
|
234
|
-
/**
|
|
235
|
-
* Text Resend
|
|
236
|
-
*/
|
|
237
|
-
otcResend: string;
|
|
238
|
-
/**
|
|
239
|
-
* Text resending in progress
|
|
240
|
-
*/
|
|
241
|
-
otcResending: string;
|
|
242
|
-
/**
|
|
243
|
-
* Text `the OTC has a wrong length`
|
|
244
|
-
*/
|
|
245
|
-
otcInvalidLengthCode: string;
|
|
246
214
|
/**
|
|
247
215
|
* Text to be displayed when redirecting to SSO provider url
|
|
248
216
|
*/
|
|
@@ -383,6 +351,8 @@ export interface LoginLocalization {
|
|
|
383
351
|
phoneIsRequired: string;
|
|
384
352
|
phoneIsInvalid: string;
|
|
385
353
|
phoneFormatIsInvalid: string;
|
|
354
|
+
usernameIsRequired: string;
|
|
355
|
+
usernameIsInvalid: string;
|
|
386
356
|
promptPasskeysTitle: string;
|
|
387
357
|
promptFirstItemTitle: string;
|
|
388
358
|
promptFirstItemSubtitle: string;
|
|
@@ -539,5 +509,5 @@ export interface LoginLocalization {
|
|
|
539
509
|
* Generic error page message title for login
|
|
540
510
|
*/
|
|
541
511
|
genericErrorPageTitle: string;
|
|
542
|
-
} & PrestepLocalization;
|
|
512
|
+
} & PrestepLocalization & OtcLocalization;
|
|
543
513
|
}
|
|
@@ -10,6 +10,7 @@ export interface FieldSettings {
|
|
|
10
10
|
}
|
|
11
11
|
export declare enum ProfilePageFields {
|
|
12
12
|
Name = "name",
|
|
13
|
+
Username = "username",
|
|
13
14
|
PhoneNumber = "phoneNumber",
|
|
14
15
|
Address = "address",
|
|
15
16
|
JobTitle = "jobTitle"
|
|
@@ -18,6 +19,7 @@ export interface MapProfileFieldToAppearance extends Record<keyof ProfilePageFie
|
|
|
18
19
|
[ProfilePageFields.Address]: HiddenOrEdit;
|
|
19
20
|
[ProfilePageFields.JobTitle]: HiddenOrEdit;
|
|
20
21
|
[ProfilePageFields.Name]: HiddenOrEdit;
|
|
22
|
+
[ProfilePageFields.Username]: HiddenOrEdit;
|
|
21
23
|
[ProfilePageFields.PhoneNumber]: HiddenOrEdit;
|
|
22
24
|
}
|
|
23
25
|
export declare enum PrivacyPageFields {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export let ProfilePageFields;
|
|
2
2
|
(function (ProfilePageFields) {
|
|
3
3
|
ProfilePageFields["Name"] = "name";
|
|
4
|
+
ProfilePageFields["Username"] = "username";
|
|
4
5
|
ProfilePageFields["PhoneNumber"] = "phoneNumber";
|
|
5
6
|
ProfilePageFields["Address"] = "address";
|
|
6
7
|
ProfilePageFields["JobTitle"] = "jobTitle";
|
package/index.js
CHANGED
package/node/Components/index.js
CHANGED
|
@@ -68,4 +68,15 @@ Object.keys(_ApiTokensTable).forEach(function (key) {
|
|
|
68
68
|
return _ApiTokensTable[key];
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
+
});
|
|
72
|
+
var _EditEmailForm = require("./EditEmailForm");
|
|
73
|
+
Object.keys(_EditEmailForm).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _EditEmailForm[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _EditEmailForm[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
71
82
|
});
|
|
@@ -13,4 +13,15 @@ Object.keys(_passwordStrength).forEach(function (key) {
|
|
|
13
13
|
return _passwordStrength[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
+
});
|
|
17
|
+
var _otc = require("./otc");
|
|
18
|
+
Object.keys(_otc).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _otc[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _otc[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
16
27
|
});
|
|
@@ -8,6 +8,7 @@ let ProfilePageFields;
|
|
|
8
8
|
exports.ProfilePageFields = ProfilePageFields;
|
|
9
9
|
(function (ProfilePageFields) {
|
|
10
10
|
ProfilePageFields["Name"] = "name";
|
|
11
|
+
ProfilePageFields["Username"] = "username";
|
|
11
12
|
ProfilePageFields["PhoneNumber"] = "phoneNumber";
|
|
12
13
|
ProfilePageFields["Address"] = "address";
|
|
13
14
|
ProfilePageFields["JobTitle"] = "jobTitle";
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.76.0-alpha.1",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"author": "Frontegg LTD",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/redux-store": "7.
|
|
9
|
+
"@frontegg/redux-store": "7.76.0-alpha.1",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|