@frontegg/types 7.75.0-alpha.0 → 7.75.0-alpha.2
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/ChangePasswordForm.d.ts +1 -0
- package/Components/index.d.ts +1 -0
- package/Components/index.js +2 -1
- package/Localizations/AdminPortalLocalizations/index.d.ts +1 -3
- package/Localizations/AdminPortalLocalizations/index.js +0 -1
- package/Localizations/AdminPortalLocalizations/privacy.d.ts +2 -0
- package/Localizations/AdminPortalLocalizations/profile.d.ts +16 -0
- package/Localizations/LocalizationOverrides.d.ts +4 -1
- package/Localizations/LoginBoxLocalization/signup.d.ts +2 -6
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +18 -1
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +10 -1
- package/index.js +1 -1
- package/node/Components/index.js +11 -0
- package/node/Localizations/AdminPortalLocalizations/index.js +0 -11
- package/node/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +11 -2
- package/node/index.js +1 -1
- package/package.json +2 -2
- package/Localizations/AdminPortalLocalizations/shared.d.ts +0 -6
- /package/{Localizations/AdminPortalLocalizations/shared.js → Components/ApiTokensTable.js} +0 -0
- /package/node/{Localizations/AdminPortalLocalizations/shared.js → Components/ApiTokensTable.js} +0 -0
package/Components/index.d.ts
CHANGED
package/Components/index.js
CHANGED
|
@@ -16,7 +16,6 @@ import { ProvisioningLocalization } from './provisioning';
|
|
|
16
16
|
import { UsersGroupsLocalization } from './groups';
|
|
17
17
|
import { AllAccountsLocalization } from './allAccounts';
|
|
18
18
|
import { AppDialogLocalization } from './appDialog';
|
|
19
|
-
import { SharedLocalization } from './shared';
|
|
20
19
|
export * from './navigation';
|
|
21
20
|
export * from './profile';
|
|
22
21
|
export * from './personalTokens';
|
|
@@ -35,5 +34,4 @@ export * from './allUsers';
|
|
|
35
34
|
export * from './provisioning';
|
|
36
35
|
export * from './allAccounts';
|
|
37
36
|
export * from './appDialog';
|
|
38
|
-
export
|
|
39
|
-
export type AdminPortalLocalization = NavigationLocalization & ProfileLocalization & PersonalTokensLocalization & AuditLogsLocalization & ApiTokensLocalization & AccountSettingsLocalization & PrivacyLocalization & SecurityLocalization & RolesLocalization & SsoLocalization & UsersLocalization & UsersGroupsLocalization & WebhooksLocalization & SubscriptionsLocalization & AllUsersLocalization & ProvisioningLocalization & AllAccountsLocalization & AppDialogLocalization & SharedLocalization;
|
|
37
|
+
export type AdminPortalLocalization = NavigationLocalization & ProfileLocalization & PersonalTokensLocalization & AuditLogsLocalization & ApiTokensLocalization & AccountSettingsLocalization & PrivacyLocalization & SecurityLocalization & RolesLocalization & SsoLocalization & UsersLocalization & UsersGroupsLocalization & WebhooksLocalization & SubscriptionsLocalization & AllUsersLocalization & ProvisioningLocalization & AllAccountsLocalization & AppDialogLocalization;
|
|
@@ -334,5 +334,21 @@ export interface ProfileLocalization {
|
|
|
334
334
|
* Error displayed if OTC input is not 6 digits
|
|
335
335
|
*/
|
|
336
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;
|
|
337
353
|
};
|
|
338
354
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
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> ? {
|
|
5
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
6
|
+
} : T;
|
|
4
7
|
type Languages = 'en' | 'he';
|
|
5
|
-
export type LocalizationsOverrides =
|
|
8
|
+
export type LocalizationsOverrides = DeepPartial<{
|
|
6
9
|
[k in Languages]: LocalizationOverrides;
|
|
7
10
|
}> & {
|
|
8
11
|
defaultLanguage?: Languages;
|
|
@@ -221,11 +221,7 @@ export interface SignupLocalization {
|
|
|
221
221
|
* strings in signup page
|
|
222
222
|
*/
|
|
223
223
|
signup: {
|
|
224
|
-
account:
|
|
225
|
-
|
|
226
|
-
};
|
|
227
|
-
user: Omit<SignupLocalizationOptions, 'title'> & {
|
|
228
|
-
title?: string;
|
|
229
|
-
};
|
|
224
|
+
account: SignupLocalizationOptions;
|
|
225
|
+
user: SignupLocalizationOptions;
|
|
230
226
|
} & SignupLocalizationOptions;
|
|
231
227
|
}
|
|
@@ -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
|
});
|
|
@@ -200,15 +200,4 @@ Object.keys(_appDialog).forEach(function (key) {
|
|
|
200
200
|
return _appDialog[key];
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
|
-
});
|
|
204
|
-
var _shared = require("./shared");
|
|
205
|
-
Object.keys(_shared).forEach(function (key) {
|
|
206
|
-
if (key === "default" || key === "__esModule") return;
|
|
207
|
-
if (key in exports && exports[key] === _shared[key]) return;
|
|
208
|
-
Object.defineProperty(exports, key, {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function () {
|
|
211
|
-
return _shared[key];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
203
|
});
|
|
@@ -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-alpha.
|
|
3
|
+
"version": "7.75.0-alpha.2",
|
|
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-alpha.
|
|
9
|
+
"@frontegg/redux-store": "7.75.0-alpha.2",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|
|
File without changes
|
/package/node/{Localizations/AdminPortalLocalizations/shared.js → Components/ApiTokensTable.js}
RENAMED
|
File without changes
|