@frontegg/types 7.75.0 → 7.76.0-alpha.0
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/LoginBoxLocalization/login.d.ts +10 -0
- 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/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
|
*/
|
|
@@ -33,6 +33,14 @@ export interface LoginLocalization {
|
|
|
33
33
|
emailOrPhonePlaceHolder: string;
|
|
34
34
|
phonePlaceholder: string;
|
|
35
35
|
phoneInputLabel: string;
|
|
36
|
+
emailPhoneOrUsernameInputLabel: string;
|
|
37
|
+
emailPhoneOrUsernamePlaceHolder: string;
|
|
38
|
+
usernameOrEmailInputLabel: string;
|
|
39
|
+
usernameOrEmailPlaceHolder: string;
|
|
40
|
+
usernameOrPhoneInputLabel: string;
|
|
41
|
+
usernameOrPhonePlaceHolder: string;
|
|
42
|
+
usernameInputLabel: string;
|
|
43
|
+
usernamePlaceHolder: string;
|
|
36
44
|
/**
|
|
37
45
|
* error message displayed if email is invalid
|
|
38
46
|
*/
|
|
@@ -383,6 +391,8 @@ export interface LoginLocalization {
|
|
|
383
391
|
phoneIsRequired: string;
|
|
384
392
|
phoneIsInvalid: string;
|
|
385
393
|
phoneFormatIsInvalid: string;
|
|
394
|
+
usernameIsRequired: string;
|
|
395
|
+
usernameIsInvalid: string;
|
|
386
396
|
promptPasskeysTitle: string;
|
|
387
397
|
promptFirstItemTitle: string;
|
|
388
398
|
promptFirstItemSubtitle: string;
|
|
@@ -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
|
});
|
|
@@ -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.0",
|
|
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.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|