@frontegg/types 7.75.0-alpha.1 → 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
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -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';
@@ -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;
@@ -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
  }
@@ -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.1
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.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.1
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.1",
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.1",
9
+ "@frontegg/redux-store": "7.75.0-alpha.2",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },