@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.
@@ -0,0 +1,8 @@
1
+ export interface ApiTokensTableContextData {
2
+ searchQuery: string;
3
+ onSearch: (query: string) => void;
4
+ }
5
+ export interface UseApiTokensTableStoreOptions {
6
+ id?: string;
7
+ initialState?: ApiTokensTableContextData;
8
+ }
@@ -1,3 +1,4 @@
1
1
  import { CMCComponentProps } from './base-component';
2
2
  export interface ChangePasswordFormProps extends CMCComponentProps {
3
+ onCompleteCallback?: (success: boolean) => void;
3
4
  }
@@ -3,3 +3,4 @@ export * from './InviteUserDialog';
3
3
  export * from './ProfilePage';
4
4
  export * from './base-component';
5
5
  export * from './ChangePasswordForm';
6
+ export * from './ApiTokensTable';
@@ -2,4 +2,5 @@ export * from './UsersTable';
2
2
  export * from './InviteUserDialog';
3
3
  export * from './ProfilePage';
4
4
  export * from './base-component';
5
- export * from './ChangePasswordForm';
5
+ export * from './ChangePasswordForm';
6
+ export * from './ApiTokensTable';
@@ -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 * from './shared';
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;
@@ -16,5 +16,4 @@ export * from './allUsers';
16
16
  export * from './provisioning';
17
17
  export * from './allAccounts';
18
18
  export * from './appDialog';
19
- export * from './shared';
20
19
  export {};
@@ -187,6 +187,8 @@ export interface PrivacyLocalization {
187
187
  disableDescription: string;
188
188
  cancel: string;
189
189
  disable: string;
190
+ otcResend: string;
191
+ otcResending: string;
190
192
  };
191
193
  privacy_deleteSmsDialog: {
192
194
  dialogTitle: string;
@@ -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 = Partial<{
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: Omit<SignupLocalizationOptions, 'title'> & {
225
- title?: string;
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 password field will be displayed a confirmation password field
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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.0
1
+ /** @license Frontegg v7.75.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.0
1
+ /** @license Frontegg v7.75.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/types",
3
- "version": "7.75.0-alpha.0",
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.0",
9
+ "@frontegg/redux-store": "7.75.0-alpha.2",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },
@@ -1,6 +0,0 @@
1
- export interface SharedLocalization {
2
- shared_ResendCode: {
3
- otcResend: string;
4
- otcResending: string;
5
- };
6
- }