@frontegg/types 7.84.0-alpha.0 → 7.84.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/Localizations/AdminPortalLocalizations/users.d.ts +32 -0
- package/Localizations/LoginBoxLocalization/signup.d.ts +0 -16
- package/PrivateOptions.d.ts +4 -0
- package/ThemeOptions/LoginBoxTheme/DynamicFields/OverrideSignupFields.d.ts +1 -2
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +2 -3
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +0 -1
- package/ThemeOptions/Palette.d.ts +1 -0
- package/ThemeOptions/fieldsAppearanceConsts.d.ts +4 -1
- package/ThemeOptions/fieldsAppearanceConsts.js +1 -0
- package/index.js +1 -1
- package/node/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +0 -1
- package/node/ThemeOptions/fieldsAppearanceConsts.js +1 -0
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -316,6 +316,22 @@ export interface UsersLocalization {
|
|
|
316
316
|
* Phone number input tooltip for extra information
|
|
317
317
|
*/
|
|
318
318
|
phoneTooltip: string;
|
|
319
|
+
/**
|
|
320
|
+
* Username input label
|
|
321
|
+
*/
|
|
322
|
+
usernameInputLabel: string;
|
|
323
|
+
/**
|
|
324
|
+
* Error message displayed if username is empty
|
|
325
|
+
*/
|
|
326
|
+
usernameIsRequired: string;
|
|
327
|
+
/**
|
|
328
|
+
* Error message displayed if username is invalid
|
|
329
|
+
*/
|
|
330
|
+
usernameInvalid: string;
|
|
331
|
+
/**
|
|
332
|
+
* Error message displayed when username already exists
|
|
333
|
+
*/
|
|
334
|
+
usernameAlreadyExists: string;
|
|
319
335
|
/**
|
|
320
336
|
* User roles select input label
|
|
321
337
|
*/
|
|
@@ -400,6 +416,18 @@ export interface UsersLocalization {
|
|
|
400
416
|
* Next button text
|
|
401
417
|
*/
|
|
402
418
|
nextButton: string;
|
|
419
|
+
/**
|
|
420
|
+
* Roles label
|
|
421
|
+
*/
|
|
422
|
+
rolesLabel: string;
|
|
423
|
+
/**
|
|
424
|
+
* Roles placeholder
|
|
425
|
+
*/
|
|
426
|
+
rolesPlaceholder: string;
|
|
427
|
+
/**
|
|
428
|
+
* Roles is required
|
|
429
|
+
*/
|
|
430
|
+
rolesIsRequired: string;
|
|
403
431
|
};
|
|
404
432
|
/**
|
|
405
433
|
* Invitation Link dialog strings
|
|
@@ -457,6 +485,10 @@ export interface UsersLocalization {
|
|
|
457
485
|
* Days plural
|
|
458
486
|
*/
|
|
459
487
|
days: string;
|
|
488
|
+
/**
|
|
489
|
+
* Roles label
|
|
490
|
+
*/
|
|
491
|
+
rolesLabel: string;
|
|
460
492
|
};
|
|
461
493
|
/**
|
|
462
494
|
* Edit user access time dialog strings
|
|
@@ -215,22 +215,6 @@ export interface SignupLocalizationOptions {
|
|
|
215
215
|
* Description for phone verification step
|
|
216
216
|
*/
|
|
217
217
|
verifyPhoneDescription: string;
|
|
218
|
-
/**
|
|
219
|
-
* Username is required
|
|
220
|
-
*/
|
|
221
|
-
usernameIsRequired: string;
|
|
222
|
-
/**
|
|
223
|
-
* Username is invalid
|
|
224
|
-
*/
|
|
225
|
-
usernameIsInvalid: string;
|
|
226
|
-
/**
|
|
227
|
-
* Username input label
|
|
228
|
-
*/
|
|
229
|
-
usernameInputLabel: string;
|
|
230
|
-
/**
|
|
231
|
-
* Username input placeholder
|
|
232
|
-
*/
|
|
233
|
-
usernameInputPlaceholder: string;
|
|
234
218
|
}
|
|
235
219
|
export interface SignupLocalization {
|
|
236
220
|
/**
|
package/PrivateOptions.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export type CustomFieldConfig = InputCustomFieldConfig | SelectCustomFieldConfig
|
|
|
131
131
|
* Config for a standard field.
|
|
132
132
|
*/
|
|
133
133
|
interface StandardFieldConfig extends CommonFieldConfig {
|
|
134
|
-
type: 'email' | 'name' | 'firstName' | 'lastName' | 'password' | 'confirmPassword' | 'companyName' | 'disclaimer' | 'phoneNumber'
|
|
134
|
+
type: 'email' | 'name' | 'firstName' | 'lastName' | 'password' | 'confirmPassword' | 'companyName' | 'disclaimer' | 'phoneNumber';
|
|
135
135
|
initialValue?: any;
|
|
136
136
|
Component?: FC<any>;
|
|
137
137
|
validationSchema?: any;
|
|
@@ -146,7 +146,6 @@ export interface FronteggFields {
|
|
|
146
146
|
companyName: StandardFieldConfig;
|
|
147
147
|
disclaimer: StandardFieldConfig;
|
|
148
148
|
phoneNumber: StandardFieldConfig;
|
|
149
|
-
username: StandardFieldConfig;
|
|
150
149
|
}
|
|
151
150
|
/**
|
|
152
151
|
* Union type for any form field configuration.
|
|
@@ -8,12 +8,11 @@ interface TitleProps {
|
|
|
8
8
|
}
|
|
9
9
|
export declare enum SignupFields {
|
|
10
10
|
/**
|
|
11
|
-
* Phone number
|
|
11
|
+
* Phone number field wont be displayed in sign up form by default
|
|
12
12
|
* Use this field in signup fields properties to enable it
|
|
13
13
|
* Currently this field will only be externalized to signUpComplete event and will not be sent to the backend
|
|
14
14
|
*/
|
|
15
|
-
phoneNumber = "phoneNumber"
|
|
16
|
-
username = "username"
|
|
15
|
+
phoneNumber = "phoneNumber"
|
|
17
16
|
}
|
|
18
17
|
type SignupFieldsProperties = {
|
|
19
18
|
[K in SignupFields]?: {
|
|
@@ -28,15 +28,18 @@ export declare enum PrivacyPageFields {
|
|
|
28
28
|
}
|
|
29
29
|
export declare enum InviteUserModalFields {
|
|
30
30
|
Name = "name",
|
|
31
|
-
PhoneNumber = "phoneNumber"
|
|
31
|
+
PhoneNumber = "phoneNumber",
|
|
32
|
+
Username = "username"
|
|
32
33
|
}
|
|
33
34
|
export interface MapInviteUserFieldToAppearance extends Record<keyof InviteUserModalFields, HiddenOrEdit> {
|
|
34
35
|
[InviteUserModalFields.Name]: HiddenOrEdit;
|
|
35
36
|
[InviteUserModalFields.PhoneNumber]: HiddenOrEdit;
|
|
37
|
+
[InviteUserModalFields.Username]: HiddenOrEdit;
|
|
36
38
|
}
|
|
37
39
|
export interface MapInviteUserFieldToSettings extends Record<keyof InviteUserModalFields, FieldSettings> {
|
|
38
40
|
[InviteUserModalFields.Name]: FieldSettings;
|
|
39
41
|
[InviteUserModalFields.PhoneNumber]: FieldSettings;
|
|
42
|
+
[InviteUserModalFields.Username]: FieldSettings;
|
|
40
43
|
}
|
|
41
44
|
export interface MapPrivacyFieldToAppearance extends Record<keyof PrivacyPageFields, HiddenOrEdit> {
|
|
42
45
|
[PrivacyPageFields.LoginSessions]: HiddenOrEdit;
|
|
@@ -15,6 +15,7 @@ export let InviteUserModalFields;
|
|
|
15
15
|
(function (InviteUserModalFields) {
|
|
16
16
|
InviteUserModalFields["Name"] = "name";
|
|
17
17
|
InviteUserModalFields["PhoneNumber"] = "phoneNumber";
|
|
18
|
+
InviteUserModalFields["Username"] = "username";
|
|
18
19
|
})(InviteUserModalFields || (InviteUserModalFields = {}));
|
|
19
20
|
export let AccountPageFields;
|
|
20
21
|
(function (AccountPageFields) {
|
package/index.js
CHANGED
|
@@ -11,7 +11,6 @@ let SignupFields;
|
|
|
11
11
|
exports.SignupFields = SignupFields;
|
|
12
12
|
(function (SignupFields) {
|
|
13
13
|
SignupFields["phoneNumber"] = "phoneNumber";
|
|
14
|
-
SignupFields["username"] = "username";
|
|
15
14
|
})(SignupFields || (exports.SignupFields = SignupFields = {}));
|
|
16
15
|
let COUNTRY_FILTER_TYPE;
|
|
17
16
|
/**
|
|
@@ -24,6 +24,7 @@ exports.InviteUserModalFields = InviteUserModalFields;
|
|
|
24
24
|
(function (InviteUserModalFields) {
|
|
25
25
|
InviteUserModalFields["Name"] = "name";
|
|
26
26
|
InviteUserModalFields["PhoneNumber"] = "phoneNumber";
|
|
27
|
+
InviteUserModalFields["Username"] = "username";
|
|
27
28
|
})(InviteUserModalFields || (exports.InviteUserModalFields = InviteUserModalFields = {}));
|
|
28
29
|
let AccountPageFields;
|
|
29
30
|
exports.AccountPageFields = AccountPageFields;
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "7.84.0
|
|
3
|
+
"version": "7.84.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.84.0
|
|
9
|
+
"@frontegg/redux-store": "7.84.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|