@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.
@@ -0,0 +1,3 @@
1
+ import { PasswordStrengthLocalization } from './passwordStrength';
2
+ export * from './passwordStrength';
3
+ export declare type CommonLocalization = PasswordStrengthLocalization;
@@ -0,0 +1,2 @@
1
+ export * from './passwordStrength';
2
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface PasswordStrengthLocalization {
2
+ passwordStrength: {
3
+ veryWeak: string;
4
+ weak: string;
5
+ good: string;
6
+ strong: string;
7
+ veryStrong: string;
8
+ };
9
+ }
@@ -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;
@@ -2,3 +2,4 @@ export * from './LocalizationOverrides';
2
2
  export * from './LocalizationType';
3
3
  export * from './AdminPortalLocalizations';
4
4
  export * from './LoginBoxLocalization';
5
+ export * from './Common';
@@ -1,4 +1,5 @@
1
1
  export * from './LocalizationOverrides';
2
2
  export * from './LocalizationType';
3
3
  export * from './AdminPortalLocalizations';
4
- export * from './LoginBoxLocalization';
4
+ export * from './LoginBoxLocalization';
5
+ export * from './Common';
@@ -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?: PageThemeOptions;
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
  }
@@ -17,6 +17,7 @@ export declare type CommonColors = {
17
17
  cyanBlue: Color;
18
18
  green: Color;
19
19
  paleLightYellow: Color;
20
+ orange: Color;
20
21
  };
21
22
  export declare type CommonColorsOptions = Partial<CommonColors>;
22
23
  export declare type PaletteColor = {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.33.0
1
+ /** @license Frontegg v6.34.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.
@@ -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
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.33.0
1
+ /** @license Frontegg v6.34.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": "6.33.0",
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.33.0",
9
+ "@frontegg/redux-store": "6.34.0-alpha.0",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },