@frontegg/types 6.33.0 → 6.34.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.
- package/Localizations/Common/index.d.ts +3 -0
- package/Localizations/Common/index.js +2 -0
- package/Localizations/Common/passwordStrength.d.ts +9 -0
- package/Localizations/Common/passwordStrength.js +1 -0
- package/Localizations/LocalizationType.d.ts +2 -0
- package/Localizations/index.d.ts +1 -0
- package/Localizations/index.js +2 -1
- package/ThemeOptions/AdminPortalThemeOptions.d.ts +8 -1
- package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.d.ts +6 -0
- package/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.d.ts +6 -0
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +6 -0
- package/ThemeOptions/Palette.d.ts +1 -0
- package/index.js +1 -1
- package/node/Localizations/Common/index.js +18 -0
- package/node/Localizations/Common/passwordStrength.js +5 -0
- package/node/Localizations/index.js +13 -0
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AdminPortalLocalization } from './AdminPortalLocalizations';
|
|
2
2
|
import { LoginBoxLocalization } from './LoginBoxLocalization';
|
|
3
|
+
import { CommonLocalization } from './Common';
|
|
3
4
|
declare type Languages = 'en' | string;
|
|
4
5
|
export declare type Localizations = {
|
|
5
6
|
[k in Languages]: Localization;
|
|
@@ -37,6 +38,7 @@ export interface ValidationLocalization {
|
|
|
37
38
|
passwordAtLeastOneSpecialChar: string;
|
|
38
39
|
}
|
|
39
40
|
export interface Localization {
|
|
41
|
+
common: CommonLocalization;
|
|
40
42
|
validations: ValidationLocalization;
|
|
41
43
|
loginBox: LoginBoxLocalization;
|
|
42
44
|
adminPortal: AdminPortalLocalization;
|
package/Localizations/index.d.ts
CHANGED
package/Localizations/index.js
CHANGED
|
@@ -36,12 +36,19 @@ export interface ProfilePageThemeOptions extends Omit<PageThemeOptions, 'content
|
|
|
36
36
|
profileInfo?: BaseThemeOptions;
|
|
37
37
|
basicInformation?: BaseThemeOptions;
|
|
38
38
|
}
|
|
39
|
+
export interface PrivacyPageThemeOptions extends PageThemeOptions {
|
|
40
|
+
changePasswordDialog?: {
|
|
41
|
+
passwordMeter?: {
|
|
42
|
+
enabled?: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
|
39
46
|
export interface UsersPageThemeOptions extends Omit<PageThemeOptions, 'content'> {
|
|
40
47
|
hideInviteWithEmail?: boolean;
|
|
41
48
|
}
|
|
42
49
|
export interface PagesThemeOptions extends PageThemeOptions {
|
|
43
50
|
profile?: ProfilePageThemeOptions;
|
|
44
|
-
privacy?:
|
|
51
|
+
privacy?: PrivacyPageThemeOptions;
|
|
45
52
|
personalApiTokens?: PageThemeOptions;
|
|
46
53
|
account?: PageThemeOptions;
|
|
47
54
|
users?: UsersPageThemeOptions;
|
|
@@ -49,6 +49,12 @@ interface ActivateAccountComponentsTheme {
|
|
|
49
49
|
* Activate terms of use in 'Activate Account'
|
|
50
50
|
*/
|
|
51
51
|
disclaimer?: ActivateAccountDisclaimerOptions;
|
|
52
|
+
/**
|
|
53
|
+
* use this flag if you want to show password meter on the 'Activate Account' form
|
|
54
|
+
*/
|
|
55
|
+
passwordMeter?: {
|
|
56
|
+
enabled?: boolean;
|
|
57
|
+
};
|
|
52
58
|
}
|
|
53
59
|
export interface ActivateAccountPageThemeOptions extends LoginBoxCommonThemeOptions, ActivateAccountComponentsTheme {
|
|
54
60
|
}
|
|
@@ -39,6 +39,12 @@ interface ResetPasswordComponentsTheme {
|
|
|
39
39
|
* Direct css style for Forgot password Page message
|
|
40
40
|
*/
|
|
41
41
|
messageStyle?: ExtendedCSSProperties;
|
|
42
|
+
/**
|
|
43
|
+
* use this flag if you want to show password meter on the reset password form
|
|
44
|
+
*/
|
|
45
|
+
passwordMeter?: {
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
};
|
|
42
48
|
}
|
|
43
49
|
export interface ResetPasswordPageThemeOptions extends LoginBoxCommonThemeOptions, ResetPasswordComponentsTheme {
|
|
44
50
|
}
|
|
@@ -76,6 +76,12 @@ export interface SignupPageComponentsTheme {
|
|
|
76
76
|
hideSignUpFields?: {
|
|
77
77
|
hideCompanyName?: boolean;
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* use this flag if you want to show password meter on the sign up form
|
|
81
|
+
*/
|
|
82
|
+
passwordMeter?: {
|
|
83
|
+
enabled?: boolean;
|
|
84
|
+
};
|
|
79
85
|
}
|
|
80
86
|
export interface SignupPageThemeOptions extends LoginBoxCommonThemeOptions, SignupPageComponentsTheme {
|
|
81
87
|
}
|
package/index.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _passwordStrength = require("./passwordStrength");
|
|
8
|
+
|
|
9
|
+
Object.keys(_passwordStrength).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _passwordStrength[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _passwordStrength[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -54,4 +54,17 @@ Object.keys(_LoginBoxLocalization).forEach(function (key) {
|
|
|
54
54
|
return _LoginBoxLocalization[key];
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var _Common = require("./Common");
|
|
60
|
+
|
|
61
|
+
Object.keys(_Common).forEach(function (key) {
|
|
62
|
+
if (key === "default" || key === "__esModule") return;
|
|
63
|
+
if (key in exports && exports[key] === _Common[key]) return;
|
|
64
|
+
Object.defineProperty(exports, key, {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return _Common[key];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
57
70
|
});
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.34.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": "6.
|
|
9
|
+
"@frontegg/redux-store": "6.34.0-alpha.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|