@frontegg/types 7.74.0-alpha.0 → 7.74.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.
@@ -4,7 +4,9 @@ import { AdminPortalLocalization } from './AdminPortalLocalizations';
4
4
  type Languages = 'en' | 'he';
5
5
  export type LocalizationsOverrides = Partial<{
6
6
  [k in Languages]: LocalizationOverrides;
7
- }>;
7
+ }> & {
8
+ defaultLanguage?: Languages;
9
+ };
8
10
  export type ValidationLocalizationOverrides = Partial<ValidationLocalization>;
9
11
  export type LoginBoxLocalizationOverrides = Partial<{
10
12
  [key in keyof LoginBoxLocalization]: Partial<LoginBoxLocalization[key]>;
@@ -5,6 +5,8 @@ import { FronteggErrorCode } from '@frontegg/rest-api/error';
5
5
  type Languages = 'en' | string;
6
6
  export type Localizations = {
7
7
  [k in Languages]: Localization;
8
+ } & {
9
+ defaultLanguage?: Languages;
8
10
  };
9
11
  export interface ValidationLocalization {
10
12
  /**
@@ -33,14 +33,6 @@ export interface LoginLocalization {
33
33
  emailOrPhonePlaceHolder: string;
34
34
  phonePlaceholder: string;
35
35
  phoneInputLabel: string;
36
- emailPhoneOrUsernameInputLabel: string;
37
- emailPhoneOrUsernamePlaceHolder: string;
38
- usernameOrEmailInputLabel: string;
39
- usernameOrEmailPlaceHolder: string;
40
- usernameOrPhoneInputLabel: string;
41
- usernameOrPhonePlaceHolder: string;
42
- usernameInputLabel: string;
43
- usernamePlaceHolder: string;
44
36
  /**
45
37
  * error message displayed if email is invalid
46
38
  */
@@ -391,8 +383,6 @@ export interface LoginLocalization {
391
383
  phoneIsRequired: string;
392
384
  phoneIsInvalid: string;
393
385
  phoneFormatIsInvalid: string;
394
- usernameIsRequired: string;
395
- usernameIsInvalid: string;
396
386
  promptPasskeysTitle: string;
397
387
  promptFirstItemTitle: string;
398
388
  promptFirstItemSubtitle: string;
@@ -19,6 +19,10 @@ export interface YupString {
19
19
  required: (message?: string) => YupString;
20
20
  email: (message?: string) => YupString;
21
21
  typeError: (message?: string) => YupString;
22
+ matches: (regex: RegExp, message?: string | {
23
+ message?: string;
24
+ excludeEmptyString?: boolean;
25
+ }) => YupString;
22
26
  }
23
27
  /**
24
28
  * Minimal Yup number schema.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.74.0-alpha.0
1
+ /** @license Frontegg v7.74.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/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.74.0-alpha.0
1
+ /** @license Frontegg v7.74.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.74.0-alpha.0",
3
+ "version": "7.74.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.74.0-alpha.0",
9
+ "@frontegg/redux-store": "7.74.0",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },