@frontegg/types 6.36.0-alpha.1 → 6.36.0-alpha.3

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.
@@ -35,6 +35,10 @@ export interface PrivacyLocalization {
35
35
  * Text to be displayed if MFA is disabled
36
36
  */
37
37
  mfaDisabled: string;
38
+ /**
39
+ * Text to be displayed if empty state is on the screen
40
+ */
41
+ emptyStateText: string;
38
42
  };
39
43
  /**
40
44
  * Privacy page change password dialogs strings
@@ -1,5 +1,6 @@
1
1
  import { BaseTheme, BaseThemeOptions, BasicThemeName } from './index';
2
2
  import { Color, CSSProperties, ExtendedCSSProperties } from '../Common';
3
+ import { AccountFieldsProperties, PrivacyFieldsProperties, ProfileFieldsProperties, SecurityFieldsProperties, SecurityTabsProperties } from './consts';
3
4
  export interface NavigationThemeOptionsState {
4
5
  color?: Color;
5
6
  background?: Color;
@@ -32,9 +33,17 @@ export interface PageThemeOptions extends BaseThemeOptions {
32
33
  header?: ExtendedCSSProperties;
33
34
  content?: ExtendedCSSProperties;
34
35
  }
36
+ export interface AccountPageThemeOptions extends PageThemeOptions {
37
+ fieldsProperties?: AccountFieldsProperties;
38
+ }
39
+ export interface SecurityPageThemeOptions extends PageThemeOptions {
40
+ fieldsProperties?: SecurityFieldsProperties;
41
+ tabsProperties?: SecurityTabsProperties;
42
+ }
35
43
  export interface ProfilePageThemeOptions extends Omit<PageThemeOptions, 'content'> {
36
44
  profileInfo?: BaseThemeOptions;
37
45
  basicInformation?: BaseThemeOptions;
46
+ fieldsProperties?: ProfileFieldsProperties;
38
47
  }
39
48
  export interface PrivacyPageThemeOptions extends PageThemeOptions {
40
49
  changePasswordDialog?: {
@@ -42,6 +51,7 @@ export interface PrivacyPageThemeOptions extends PageThemeOptions {
42
51
  enabled?: boolean;
43
52
  };
44
53
  };
54
+ fieldsProperties?: PrivacyFieldsProperties;
45
55
  }
46
56
  export interface UsersPageThemeOptions extends Omit<PageThemeOptions, 'content'> {
47
57
  hideInviteWithEmail?: boolean;
@@ -50,9 +60,9 @@ export interface PagesThemeOptions extends PageThemeOptions {
50
60
  profile?: ProfilePageThemeOptions;
51
61
  privacy?: PrivacyPageThemeOptions;
52
62
  personalApiTokens?: PageThemeOptions;
53
- account?: PageThemeOptions;
63
+ account?: AccountPageThemeOptions;
54
64
  users?: UsersPageThemeOptions;
55
- security?: PageThemeOptions;
65
+ security?: SecurityPageThemeOptions;
56
66
  singleSignOn?: PageThemeOptions;
57
67
  audits?: PageThemeOptions;
58
68
  webhooks?: PageThemeOptions;
@@ -60,7 +70,41 @@ export interface PagesThemeOptions extends PageThemeOptions {
60
70
  roles?: PageThemeOptions;
61
71
  subscriptions?: PageThemeOptions;
62
72
  }
63
- export interface AdminPortalThemeOptions extends BaseThemeOptions {
73
+ export interface TableScrollbar {
74
+ borderColor?: Color;
75
+ trackColor?: Color;
76
+ thumbColor?: Color;
77
+ thumbHoverColor?: Color;
78
+ }
79
+ export interface TableTheme {
80
+ /**
81
+ * Direct css styling, applying css for table container, MuiPaper
82
+ */
83
+ container?: ExtendedCSSProperties;
84
+ /**
85
+ * Direct css styling, applying css for table content, MuiBox
86
+ */
87
+ content?: ExtendedCSSProperties;
88
+ /**
89
+ * Direct css styling, applying css for table header container, MuiBox
90
+ */
91
+ headerContainer?: ExtendedCSSProperties;
92
+ /**
93
+ * Styling applying for table scrollbar
94
+ */
95
+ scrollbar?: TableScrollbar;
96
+ /**
97
+ * Background color for filterButton on the header of the table, we have it on audits
98
+ */
99
+ filterButtonBackground?: Color;
100
+ }
101
+ export interface AdminPortalCommonOptions extends BaseThemeOptions {
102
+ /**
103
+ * Option to customize admin portal table
104
+ */
105
+ tableTheme?: TableTheme;
106
+ }
107
+ export interface AdminPortalThemeOptions extends AdminPortalCommonOptions {
64
108
  themeName?: BasicThemeName;
65
109
  layout?: {
66
110
  fullScreenMode?: boolean;
@@ -69,10 +113,12 @@ export interface AdminPortalThemeOptions extends BaseThemeOptions {
69
113
  pages?: PagesThemeOptions;
70
114
  }
71
115
  export interface AdminPortalTheme extends BaseTheme {
116
+ themeName: BasicThemeName;
72
117
  layout: {
73
118
  fullScreenMode: boolean;
74
119
  };
75
120
  navigation: NavigationThemeOptions;
76
121
  rightPanel: RightPanelThemeOptions;
77
122
  pages: PagesThemeOptions;
123
+ tableTheme: TableTheme;
78
124
  }
@@ -0,0 +1,48 @@
1
+ export declare enum ProfilePageFields {
2
+ Name = "name",
3
+ PhoneNumber = "phoneNumber",
4
+ Address = "address",
5
+ JobTitle = "jobTitle"
6
+ }
7
+ export declare enum PrivacyPageFields {
8
+ LoginSessions = "loginSessions",
9
+ Mfa = "mfa"
10
+ }
11
+ export declare enum AccountPageFields {
12
+ CompanyName = "companyName",
13
+ Address = "address",
14
+ Website = "website",
15
+ Timezone = "timezone",
16
+ Currency = "currency"
17
+ }
18
+ export declare enum SecurityPageFields {
19
+ IdleSessionTimeout = "idleSessionTimeout",
20
+ ForceReLogin = "forceReLogin",
21
+ MaximumConcurrentSessions = "maximumConcurrentSessions",
22
+ Mfa = "mfa",
23
+ UserLockout = "userLockout",
24
+ PasswordHistory = "passwordHistory",
25
+ IpAddressRestrictions = "ipAddressRestrictions",
26
+ LoginRestrictionsByCountry = "loginRestrictionsByCountry",
27
+ RestrictSignupByEmailDomain = "restrictSignupByEmailDomain"
28
+ }
29
+ export declare enum SecurityPageTabs {
30
+ SessionManagement = "sessionManagement",
31
+ GeneralSettings = "generalSettings",
32
+ LoginRestrictions = "loginRestrictions",
33
+ SignupRestrictions = "signupRestrictions"
34
+ }
35
+ export declare type FieldAppearance = 'hidden' | 'viewOnly' | 'edit';
36
+ export declare type TabAppearance = 'hidden' | 'edit';
37
+ declare type FieldsProperties = {
38
+ appearance: FieldAppearance;
39
+ };
40
+ declare type TabsProperties = {
41
+ appearance: FieldAppearance;
42
+ };
43
+ export declare type ProfileFieldsProperties = Partial<Record<ProfilePageFields, FieldsProperties>>;
44
+ export declare type PrivacyFieldsProperties = Partial<Record<PrivacyPageFields, FieldsProperties>>;
45
+ export declare type AccountFieldsProperties = Partial<Record<AccountPageFields, FieldsProperties>>;
46
+ export declare type SecurityFieldsProperties = Partial<Record<SecurityPageFields, FieldsProperties>>;
47
+ export declare type SecurityTabsProperties = Partial<Record<SecurityPageTabs, TabsProperties>>;
48
+ export {};
@@ -0,0 +1,48 @@
1
+ export let ProfilePageFields;
2
+
3
+ (function (ProfilePageFields) {
4
+ ProfilePageFields["Name"] = "name";
5
+ ProfilePageFields["PhoneNumber"] = "phoneNumber";
6
+ ProfilePageFields["Address"] = "address";
7
+ ProfilePageFields["JobTitle"] = "jobTitle";
8
+ })(ProfilePageFields || (ProfilePageFields = {}));
9
+
10
+ export let PrivacyPageFields;
11
+
12
+ (function (PrivacyPageFields) {
13
+ PrivacyPageFields["LoginSessions"] = "loginSessions";
14
+ PrivacyPageFields["Mfa"] = "mfa";
15
+ })(PrivacyPageFields || (PrivacyPageFields = {}));
16
+
17
+ export let AccountPageFields;
18
+
19
+ (function (AccountPageFields) {
20
+ AccountPageFields["CompanyName"] = "companyName";
21
+ AccountPageFields["Address"] = "address";
22
+ AccountPageFields["Website"] = "website";
23
+ AccountPageFields["Timezone"] = "timezone";
24
+ AccountPageFields["Currency"] = "currency";
25
+ })(AccountPageFields || (AccountPageFields = {}));
26
+
27
+ export let SecurityPageFields;
28
+
29
+ (function (SecurityPageFields) {
30
+ SecurityPageFields["IdleSessionTimeout"] = "idleSessionTimeout";
31
+ SecurityPageFields["ForceReLogin"] = "forceReLogin";
32
+ SecurityPageFields["MaximumConcurrentSessions"] = "maximumConcurrentSessions";
33
+ SecurityPageFields["Mfa"] = "mfa";
34
+ SecurityPageFields["UserLockout"] = "userLockout";
35
+ SecurityPageFields["PasswordHistory"] = "passwordHistory";
36
+ SecurityPageFields["IpAddressRestrictions"] = "ipAddressRestrictions";
37
+ SecurityPageFields["LoginRestrictionsByCountry"] = "loginRestrictionsByCountry";
38
+ SecurityPageFields["RestrictSignupByEmailDomain"] = "restrictSignupByEmailDomain";
39
+ })(SecurityPageFields || (SecurityPageFields = {}));
40
+
41
+ export let SecurityPageTabs;
42
+
43
+ (function (SecurityPageTabs) {
44
+ SecurityPageTabs["SessionManagement"] = "sessionManagement";
45
+ SecurityPageTabs["GeneralSettings"] = "generalSettings";
46
+ SecurityPageTabs["LoginRestrictions"] = "loginRestrictions";
47
+ SecurityPageTabs["SignupRestrictions"] = "signupRestrictions";
48
+ })(SecurityPageTabs || (SecurityPageTabs = {}));
@@ -8,8 +8,11 @@ import { ComponentsOptions } from './ComponentsOptions';
8
8
  import { TypographyOptions, Typography } from './TypographyOptions';
9
9
  import { AdminPortalTheme, AdminPortalThemeOptions } from './AdminPortalThemeOptions';
10
10
  import { LoginBoxTheme, LoginBoxThemeOptions } from './LoginBoxTheme';
11
+ import { FieldAppearance, TabAppearance } from './consts';
11
12
  export * from './LoginBoxTheme';
12
13
  export * from './ComponentsOptions';
14
+ export * from './consts';
15
+ export * from './AdminPortalThemeOptions';
13
16
  export declare type Direction = 'ltr' | 'rtl';
14
17
  export interface FronteggThemeOptions {
15
18
  palette?: ThemePaletteOptions;
@@ -39,5 +42,7 @@ export interface FronteggTheme {
39
42
  }
40
43
  export declare type BaseThemeOptions = Omit<FronteggThemeOptions, 'adminPortal' | 'loginBox'>;
41
44
  export declare type BaseTheme = Omit<FronteggTheme, 'adminPortal' | 'loginBox'>;
45
+ export declare const fieldAppearance: Record<string, FieldAppearance>;
46
+ export declare const tabAppearance: Record<string, TabAppearance>;
42
47
  export declare type BasicThemeName = 'classic' | 'modern' | 'vivid' | 'dark';
43
48
  export declare type ThemeNameV2 = 'modernV2' | 'darkV2' | 'classicV2' | 'vividV2';
@@ -1,3 +1,13 @@
1
1
  export * from './LoginBoxTheme';
2
2
  export * from './ComponentsOptions';
3
- export {};
3
+ export * from './consts';
4
+ export * from './AdminPortalThemeOptions';
5
+ export const fieldAppearance = {
6
+ hidden: 'hidden',
7
+ viewOnly: 'viewOnly',
8
+ edit: 'edit'
9
+ };
10
+ export const tabAppearance = {
11
+ hidden: 'hidden',
12
+ edit: 'edit'
13
+ };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.36.0-alpha.1
1
+ /** @license Frontegg v6.36.0-alpha.3
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,59 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SecurityPageTabs = exports.SecurityPageFields = exports.ProfilePageFields = exports.PrivacyPageFields = exports.AccountPageFields = void 0;
7
+ let ProfilePageFields;
8
+ exports.ProfilePageFields = ProfilePageFields;
9
+
10
+ (function (ProfilePageFields) {
11
+ ProfilePageFields["Name"] = "name";
12
+ ProfilePageFields["PhoneNumber"] = "phoneNumber";
13
+ ProfilePageFields["Address"] = "address";
14
+ ProfilePageFields["JobTitle"] = "jobTitle";
15
+ })(ProfilePageFields || (exports.ProfilePageFields = ProfilePageFields = {}));
16
+
17
+ let PrivacyPageFields;
18
+ exports.PrivacyPageFields = PrivacyPageFields;
19
+
20
+ (function (PrivacyPageFields) {
21
+ PrivacyPageFields["LoginSessions"] = "loginSessions";
22
+ PrivacyPageFields["Mfa"] = "mfa";
23
+ })(PrivacyPageFields || (exports.PrivacyPageFields = PrivacyPageFields = {}));
24
+
25
+ let AccountPageFields;
26
+ exports.AccountPageFields = AccountPageFields;
27
+
28
+ (function (AccountPageFields) {
29
+ AccountPageFields["CompanyName"] = "companyName";
30
+ AccountPageFields["Address"] = "address";
31
+ AccountPageFields["Website"] = "website";
32
+ AccountPageFields["Timezone"] = "timezone";
33
+ AccountPageFields["Currency"] = "currency";
34
+ })(AccountPageFields || (exports.AccountPageFields = AccountPageFields = {}));
35
+
36
+ let SecurityPageFields;
37
+ exports.SecurityPageFields = SecurityPageFields;
38
+
39
+ (function (SecurityPageFields) {
40
+ SecurityPageFields["IdleSessionTimeout"] = "idleSessionTimeout";
41
+ SecurityPageFields["ForceReLogin"] = "forceReLogin";
42
+ SecurityPageFields["MaximumConcurrentSessions"] = "maximumConcurrentSessions";
43
+ SecurityPageFields["Mfa"] = "mfa";
44
+ SecurityPageFields["UserLockout"] = "userLockout";
45
+ SecurityPageFields["PasswordHistory"] = "passwordHistory";
46
+ SecurityPageFields["IpAddressRestrictions"] = "ipAddressRestrictions";
47
+ SecurityPageFields["LoginRestrictionsByCountry"] = "loginRestrictionsByCountry";
48
+ SecurityPageFields["RestrictSignupByEmailDomain"] = "restrictSignupByEmailDomain";
49
+ })(SecurityPageFields || (exports.SecurityPageFields = SecurityPageFields = {}));
50
+
51
+ let SecurityPageTabs;
52
+ exports.SecurityPageTabs = SecurityPageTabs;
53
+
54
+ (function (SecurityPageTabs) {
55
+ SecurityPageTabs["SessionManagement"] = "sessionManagement";
56
+ SecurityPageTabs["GeneralSettings"] = "generalSettings";
57
+ SecurityPageTabs["LoginRestrictions"] = "loginRestrictions";
58
+ SecurityPageTabs["SignupRestrictions"] = "signupRestrictions";
59
+ })(SecurityPageTabs || (exports.SecurityPageTabs = SecurityPageTabs = {}));
@@ -3,11 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ var _exportNames = {
7
+ fieldAppearance: true,
8
+ tabAppearance: true
9
+ };
10
+ exports.tabAppearance = exports.fieldAppearance = void 0;
6
11
 
7
12
  var _LoginBoxTheme = require("./LoginBoxTheme");
8
13
 
9
14
  Object.keys(_LoginBoxTheme).forEach(function (key) {
10
15
  if (key === "default" || key === "__esModule") return;
16
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
11
17
  if (key in exports && exports[key] === _LoginBoxTheme[key]) return;
12
18
  Object.defineProperty(exports, key, {
13
19
  enumerable: true,
@@ -21,6 +27,7 @@ var _ComponentsOptions = require("./ComponentsOptions");
21
27
 
22
28
  Object.keys(_ComponentsOptions).forEach(function (key) {
23
29
  if (key === "default" || key === "__esModule") return;
30
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
24
31
  if (key in exports && exports[key] === _ComponentsOptions[key]) return;
25
32
  Object.defineProperty(exports, key, {
26
33
  enumerable: true,
@@ -28,4 +35,43 @@ Object.keys(_ComponentsOptions).forEach(function (key) {
28
35
  return _ComponentsOptions[key];
29
36
  }
30
37
  });
31
- });
38
+ });
39
+
40
+ var _consts = require("./consts");
41
+
42
+ Object.keys(_consts).forEach(function (key) {
43
+ if (key === "default" || key === "__esModule") return;
44
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
45
+ if (key in exports && exports[key] === _consts[key]) return;
46
+ Object.defineProperty(exports, key, {
47
+ enumerable: true,
48
+ get: function () {
49
+ return _consts[key];
50
+ }
51
+ });
52
+ });
53
+
54
+ var _AdminPortalThemeOptions = require("./AdminPortalThemeOptions");
55
+
56
+ Object.keys(_AdminPortalThemeOptions).forEach(function (key) {
57
+ if (key === "default" || key === "__esModule") return;
58
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
59
+ if (key in exports && exports[key] === _AdminPortalThemeOptions[key]) return;
60
+ Object.defineProperty(exports, key, {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _AdminPortalThemeOptions[key];
64
+ }
65
+ });
66
+ });
67
+ const fieldAppearance = {
68
+ hidden: 'hidden',
69
+ viewOnly: 'viewOnly',
70
+ edit: 'edit'
71
+ };
72
+ exports.fieldAppearance = fieldAppearance;
73
+ const tabAppearance = {
74
+ hidden: 'hidden',
75
+ edit: 'edit'
76
+ };
77
+ exports.tabAppearance = tabAppearance;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.36.0-alpha.1
1
+ /** @license Frontegg v6.36.0-alpha.3
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.36.0-alpha.1",
3
+ "version": "6.36.0-alpha.3",
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.36.0-alpha.1",
9
+ "@frontegg/redux-store": "6.36.0-alpha.3",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },