@frontegg/types 7.75.0-alpha.1 → 7.75.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/ApiTokensTable.d.ts +8 -0
- package/Components/ApiTokensTable.js +1 -0
- package/Components/ChangePasswordForm.d.ts +3 -1
- package/Components/index.d.ts +1 -0
- package/Components/index.js +2 -1
- package/Localizations/AdminPortalLocalizations/privacy.d.ts +2 -0
- package/Localizations/AdminPortalLocalizations/profile.d.ts +85 -0
- package/Localizations/LocalizationOverrides.d.ts +4 -1
- package/Localizations/LocalizationType.d.ts +3 -0
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +18 -1
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +10 -1
- package/index.js +1 -1
- package/node/Components/ApiTokensTable.js +5 -0
- package/node/Components/index.js +11 -0
- package/node/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +11 -2
- 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
|
@@ -266,4 +266,89 @@ export interface ProfileLocalization {
|
|
|
266
266
|
*/
|
|
267
267
|
save: string;
|
|
268
268
|
};
|
|
269
|
+
/**
|
|
270
|
+
* Edit email dialog strings
|
|
271
|
+
*/
|
|
272
|
+
profile_EditEmail: {
|
|
273
|
+
/**
|
|
274
|
+
* Dialog title
|
|
275
|
+
*/
|
|
276
|
+
title: string;
|
|
277
|
+
/**
|
|
278
|
+
* Enter your email title
|
|
279
|
+
*/
|
|
280
|
+
enterYourEmailTitle: string;
|
|
281
|
+
/**
|
|
282
|
+
* Email input label
|
|
283
|
+
*/
|
|
284
|
+
emailInputLabel: string;
|
|
285
|
+
/**
|
|
286
|
+
* Email input placeholder
|
|
287
|
+
*/
|
|
288
|
+
emailInputPlaceholder: string;
|
|
289
|
+
/**
|
|
290
|
+
* Enter a new email address to receive a 6-digit verification code
|
|
291
|
+
*/
|
|
292
|
+
enterNewEmailDescription: string;
|
|
293
|
+
/**
|
|
294
|
+
* Error displayed if email input is empty
|
|
295
|
+
*/
|
|
296
|
+
emailIsRequired: string;
|
|
297
|
+
/**
|
|
298
|
+
* Error displayed if email input is invalid
|
|
299
|
+
*/
|
|
300
|
+
invalidEmailFormat: string;
|
|
301
|
+
/**
|
|
302
|
+
* Error displayed if email is the same as the old one
|
|
303
|
+
*/
|
|
304
|
+
sameAsOldEmailError: string;
|
|
305
|
+
/**
|
|
306
|
+
* Edit email dialog cancel button text
|
|
307
|
+
*/
|
|
308
|
+
cancel: string;
|
|
309
|
+
/**
|
|
310
|
+
* Edit email dialog next button text
|
|
311
|
+
*/
|
|
312
|
+
next: string;
|
|
313
|
+
/**
|
|
314
|
+
* OTC view title
|
|
315
|
+
*/
|
|
316
|
+
otcTitle: string;
|
|
317
|
+
/**
|
|
318
|
+
* OTC view description (e.g., "Please enter the 6-digit code...")
|
|
319
|
+
*/
|
|
320
|
+
otcDescription: string;
|
|
321
|
+
/**
|
|
322
|
+
* OTC view back button text
|
|
323
|
+
*/
|
|
324
|
+
otcBackButton: string;
|
|
325
|
+
/**
|
|
326
|
+
* OTC view verify button text
|
|
327
|
+
*/
|
|
328
|
+
otcVerifyButton: string;
|
|
329
|
+
/**
|
|
330
|
+
* Error displayed if OTC input is empty
|
|
331
|
+
*/
|
|
332
|
+
otcIsRequired: string;
|
|
333
|
+
/**
|
|
334
|
+
* Error displayed if OTC input is not 6 digits
|
|
335
|
+
*/
|
|
336
|
+
otcMustBe6Digits: string;
|
|
337
|
+
/**
|
|
338
|
+
* OTC view resend button text
|
|
339
|
+
*/
|
|
340
|
+
otcResend: string;
|
|
341
|
+
/**
|
|
342
|
+
* OTC view resending button text
|
|
343
|
+
*/
|
|
344
|
+
otcResending: string;
|
|
345
|
+
/**
|
|
346
|
+
* Success view message
|
|
347
|
+
*/
|
|
348
|
+
successMessage: string;
|
|
349
|
+
/**
|
|
350
|
+
* Success view done button text
|
|
351
|
+
*/
|
|
352
|
+
done: string;
|
|
353
|
+
};
|
|
269
354
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Localization, ValidationLocalization } from './LocalizationType';
|
|
2
2
|
import { LoginBoxLocalization } from './LoginBoxLocalization';
|
|
3
3
|
import { AdminPortalLocalization } from './AdminPortalLocalizations';
|
|
4
|
-
type DeepPartial<T> = T extends string ? T : T extends Record<string, any> ? {
|
|
4
|
+
export type DeepPartial<T> = T extends string ? T : T extends Record<string, any> ? {
|
|
5
5
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
6
6
|
} : T;
|
|
7
7
|
type Languages = 'en' | 'he';
|
|
@@ -9,6 +9,9 @@ export type LocalizationsOverrides = DeepPartial<{
|
|
|
9
9
|
[k in Languages]: LocalizationOverrides;
|
|
10
10
|
}> & {
|
|
11
11
|
defaultLanguage?: Languages;
|
|
12
|
+
autoTranslate?: {
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
};
|
|
12
15
|
};
|
|
13
16
|
export type ValidationLocalizationOverrides = Partial<ValidationLocalization>;
|
|
14
17
|
export type LoginBoxLocalizationOverrides = Partial<{
|
|
@@ -38,6 +38,18 @@ export interface GoToLoginMessageProps {
|
|
|
38
38
|
goToLoginButtonText: string;
|
|
39
39
|
}
|
|
40
40
|
export type SignUpDisclaimerOptions = DisclaimerOptions;
|
|
41
|
+
export declare enum COUNTRY_FILTER_TYPE {
|
|
42
|
+
ALLOWED = "allowedCountries",
|
|
43
|
+
BLOCKED = "blockedCountries"
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Determine which countries will be displayed or blocked in the phone number field
|
|
47
|
+
*/
|
|
48
|
+
export type PhoneNumberCountryCodes = {
|
|
49
|
+
[COUNTRY_FILTER_TYPE.ALLOWED]: string[];
|
|
50
|
+
} | {
|
|
51
|
+
[COUNTRY_FILTER_TYPE.BLOCKED]: string[];
|
|
52
|
+
};
|
|
41
53
|
export interface SignupPageComponentsTheme {
|
|
42
54
|
/**
|
|
43
55
|
* Signup page title default is 'Account Sign Up'
|
|
@@ -127,10 +139,15 @@ export interface SignupPageComponentsTheme {
|
|
|
127
139
|
*/
|
|
128
140
|
overrideSignupFields?: OverrideSignupFields | string;
|
|
129
141
|
/**
|
|
130
|
-
* If true, beside the
|
|
142
|
+
* If true, beside the password field will be displayed a confirmation password field
|
|
131
143
|
* Default is false
|
|
132
144
|
*/
|
|
133
145
|
requirePasswordConfirmation?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Use this option to determine which countries will be displayed or blocked in the phone number field in the signup form
|
|
148
|
+
* Default is all countries allowed
|
|
149
|
+
*/
|
|
150
|
+
phoneNumberCountryCodes?: PhoneNumberCountryCodes;
|
|
134
151
|
}
|
|
135
152
|
export interface SignupPageThemeOptions extends LoginBoxCommonThemeOptions, SignupPageComponentsTheme {
|
|
136
153
|
}
|
|
@@ -5,4 +5,13 @@
|
|
|
5
5
|
export let SignupFields;
|
|
6
6
|
(function (SignupFields) {
|
|
7
7
|
SignupFields["phoneNumber"] = "phoneNumber";
|
|
8
|
-
})(SignupFields || (SignupFields = {}));
|
|
8
|
+
})(SignupFields || (SignupFields = {}));
|
|
9
|
+
export let COUNTRY_FILTER_TYPE;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Determine which countries will be displayed or blocked in the phone number field
|
|
13
|
+
*/
|
|
14
|
+
(function (COUNTRY_FILTER_TYPE) {
|
|
15
|
+
COUNTRY_FILTER_TYPE["ALLOWED"] = "allowedCountries";
|
|
16
|
+
COUNTRY_FILTER_TYPE["BLOCKED"] = "blockedCountries";
|
|
17
|
+
})(COUNTRY_FILTER_TYPE || (COUNTRY_FILTER_TYPE = {}));
|
package/index.js
CHANGED
package/node/Components/index.js
CHANGED
|
@@ -57,4 +57,15 @@ Object.keys(_ChangePasswordForm).forEach(function (key) {
|
|
|
57
57
|
return _ChangePasswordForm[key];
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
});
|
|
61
|
+
var _ApiTokensTable = require("./ApiTokensTable");
|
|
62
|
+
Object.keys(_ApiTokensTable).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _ApiTokensTable[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return _ApiTokensTable[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
60
71
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SignupFields = void 0;
|
|
6
|
+
exports.SignupFields = exports.COUNTRY_FILTER_TYPE = void 0;
|
|
7
7
|
// interface MessageProps {
|
|
8
8
|
// message: ReactNode;
|
|
9
9
|
// }
|
|
@@ -11,4 +11,13 @@ let SignupFields;
|
|
|
11
11
|
exports.SignupFields = SignupFields;
|
|
12
12
|
(function (SignupFields) {
|
|
13
13
|
SignupFields["phoneNumber"] = "phoneNumber";
|
|
14
|
-
})(SignupFields || (exports.SignupFields = SignupFields = {}));
|
|
14
|
+
})(SignupFields || (exports.SignupFields = SignupFields = {}));
|
|
15
|
+
let COUNTRY_FILTER_TYPE;
|
|
16
|
+
/**
|
|
17
|
+
* Determine which countries will be displayed or blocked in the phone number field
|
|
18
|
+
*/
|
|
19
|
+
exports.COUNTRY_FILTER_TYPE = COUNTRY_FILTER_TYPE;
|
|
20
|
+
(function (COUNTRY_FILTER_TYPE) {
|
|
21
|
+
COUNTRY_FILTER_TYPE["ALLOWED"] = "allowedCountries";
|
|
22
|
+
COUNTRY_FILTER_TYPE["BLOCKED"] = "blockedCountries";
|
|
23
|
+
})(COUNTRY_FILTER_TYPE || (exports.COUNTRY_FILTER_TYPE = COUNTRY_FILTER_TYPE = {}));
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "7.75.0
|
|
3
|
+
"version": "7.75.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.75.0
|
|
9
|
+
"@frontegg/redux-store": "7.75.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|