@frontegg/types 7.87.0 → 7.88.0-alpha.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.
@@ -215,6 +215,22 @@ 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;
218
234
  }
219
235
  export interface SignupLocalization {
220
236
  /**
@@ -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' | 'username';
135
135
  initialValue?: any;
136
136
  Component?: FC<any>;
137
137
  validationSchema?: any;
@@ -146,6 +146,7 @@ export interface FronteggFields {
146
146
  companyName: StandardFieldConfig;
147
147
  disclaimer: StandardFieldConfig;
148
148
  phoneNumber: StandardFieldConfig;
149
+ username: StandardFieldConfig;
149
150
  }
150
151
  /**
151
152
  * Union type for any form field configuration.
@@ -8,11 +8,12 @@ interface TitleProps {
8
8
  }
9
9
  export declare enum SignupFields {
10
10
  /**
11
- * Phone number field wont be displayed in sign up form by default
11
+ * Phone number and username fields 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"
15
+ phoneNumber = "phoneNumber",
16
+ username = "username"
16
17
  }
17
18
  type SignupFieldsProperties = {
18
19
  [K in SignupFields]?: {
@@ -5,6 +5,7 @@
5
5
  export let SignupFields;
6
6
  (function (SignupFields) {
7
7
  SignupFields["phoneNumber"] = "phoneNumber";
8
+ SignupFields["username"] = "username";
8
9
  })(SignupFields || (SignupFields = {}));
9
10
  export let COUNTRY_FILTER_TYPE;
10
11
 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.87.0
1
+ /** @license Frontegg v7.88.0-alpha.0
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.
@@ -11,6 +11,7 @@ let SignupFields;
11
11
  exports.SignupFields = SignupFields;
12
12
  (function (SignupFields) {
13
13
  SignupFields["phoneNumber"] = "phoneNumber";
14
+ SignupFields["username"] = "username";
14
15
  })(SignupFields || (exports.SignupFields = SignupFields = {}));
15
16
  let COUNTRY_FILTER_TYPE;
16
17
  /**
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.87.0
1
+ /** @license Frontegg v7.88.0-alpha.0
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.87.0",
3
+ "version": "7.88.0-alpha.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.87.0",
9
+ "@frontegg/redux-store": "7.88.0-alpha.0",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },