@frontegg/types 7.74.0-alpha.1 → 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.
- package/Localizations/LocalizationOverrides.d.ts +3 -1
- package/Localizations/LocalizationType.d.ts +2 -0
- package/Localizations/LoginBoxLocalization/login.d.ts +0 -10
- package/ThemeOptions/LoginBoxTheme/DynamicFields/helpers.d.ts +4 -0
- package/index.js +1 -1
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -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]>;
|
|
@@ -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
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "7.74.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
|
|
9
|
+
"@frontegg/redux-store": "7.74.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|