@frontegg/types 6.43.0-alpha.0 → 6.43.0-alpha.1
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/AdminPortalLocalizations/accountSettings.d.ts +4 -0
- package/Localizations/AdminPortalLocalizations/security.d.ts +16 -0
- package/ThemeOptions/AdminPortalThemeOptions.d.ts +1 -2
- package/ThemeOptions/fieldsAppearanceConsts.d.ts +70 -0
- package/ThemeOptions/fieldsAppearanceConsts.js +62 -0
- package/ThemeOptions/fieldsAppearanceTypes.d.ts +74 -0
- package/ThemeOptions/fieldsAppearanceTypes.js +1 -0
- package/ThemeOptions/index.d.ts +3 -2
- package/ThemeOptions/index.js +2 -1
- package/index.js +1 -1
- package/node/ThemeOptions/fieldsAppearanceConsts.js +76 -0
- package/node/ThemeOptions/fieldsAppearanceTypes.js +5 -0
- package/node/ThemeOptions/index.js +18 -4
- package/node/index.js +1 -1
- package/package.json +2 -2
- package/ThemeOptions/consts.d.ts +0 -48
- package/ThemeOptions/consts.js +0 -48
- package/node/ThemeOptions/consts.js +0 -59
|
@@ -51,6 +51,10 @@ export interface AccountSettingsLocalization {
|
|
|
51
51
|
* Text to display as button if Currency is empty
|
|
52
52
|
*/
|
|
53
53
|
setCurrencyButton: string;
|
|
54
|
+
/**
|
|
55
|
+
* Text to display if all fields are hidden
|
|
56
|
+
*/
|
|
57
|
+
emptyStateText: string;
|
|
54
58
|
};
|
|
55
59
|
/**
|
|
56
60
|
* Account settings edit Address Dialog strings
|
|
@@ -83,6 +83,10 @@ export interface SecurityLocalization {
|
|
|
83
83
|
* Password History status if policy is disabled
|
|
84
84
|
*/
|
|
85
85
|
passwordHistoryDisabled: string;
|
|
86
|
+
/**
|
|
87
|
+
* Text for empty state - when all fields are hidden
|
|
88
|
+
*/
|
|
89
|
+
emptyStateText: string;
|
|
86
90
|
};
|
|
87
91
|
/**
|
|
88
92
|
* Edit MFA security policy dialog strings
|
|
@@ -267,6 +271,10 @@ export interface SecurityLocalization {
|
|
|
267
271
|
* Save button text
|
|
268
272
|
*/
|
|
269
273
|
saveButton: string;
|
|
274
|
+
/**
|
|
275
|
+
* Text for empty state screen - if all fields are hidden
|
|
276
|
+
*/
|
|
277
|
+
emptyStateText: string;
|
|
270
278
|
};
|
|
271
279
|
security_DomainRestrictions: {
|
|
272
280
|
/**
|
|
@@ -337,6 +345,10 @@ export interface SecurityLocalization {
|
|
|
337
345
|
* No domains being blocked alert message
|
|
338
346
|
*/
|
|
339
347
|
noDomainsBeingBlockedAlert: string;
|
|
348
|
+
/**
|
|
349
|
+
* Text for empty state - when all fields are hidden
|
|
350
|
+
*/
|
|
351
|
+
emptyStateText: string;
|
|
340
352
|
};
|
|
341
353
|
/**
|
|
342
354
|
* Apply session management policies dialog
|
|
@@ -508,5 +520,9 @@ export interface SecurityLocalization {
|
|
|
508
520
|
* Add my ip to allow dialog message
|
|
509
521
|
*/
|
|
510
522
|
AddMyIpDialogMessage: string;
|
|
523
|
+
/**
|
|
524
|
+
* Text for empty state screen - when all fields are hidden
|
|
525
|
+
*/
|
|
526
|
+
emptyStateText: string;
|
|
511
527
|
};
|
|
512
528
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseTheme, BaseThemeOptions, BasicThemeName } from './index';
|
|
2
2
|
import { Color, CSSProperties, ExtendedCSSProperties } from '../Common';
|
|
3
|
-
import { AccountFieldsProperties, PrivacyFieldsProperties, ProfileFieldsProperties,
|
|
3
|
+
import { AccountFieldsProperties, PrivacyFieldsProperties, ProfileFieldsProperties, SecurityTabsProperties } from './fieldsAppearanceTypes';
|
|
4
4
|
export interface NavigationThemeOptionsState {
|
|
5
5
|
color?: Color;
|
|
6
6
|
background?: Color;
|
|
@@ -38,7 +38,6 @@ export interface AccountPageThemeOptions extends PageThemeOptions {
|
|
|
38
38
|
fieldsProperties?: AccountFieldsProperties;
|
|
39
39
|
}
|
|
40
40
|
export interface SecurityPageThemeOptions extends PageThemeOptions {
|
|
41
|
-
fieldsProperties?: SecurityFieldsProperties;
|
|
42
41
|
tabsProperties?: SecurityTabsProperties;
|
|
43
42
|
}
|
|
44
43
|
export interface ProfilePageThemeOptions extends PageThemeOptions {
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare type HiddenOrEdit = 'hidden' | 'edit';
|
|
2
|
+
export declare type FieldAppearance = 'viewOnly' | HiddenOrEdit;
|
|
3
|
+
export declare type TabAppearance = 'hidden' | 'edit';
|
|
4
|
+
export declare enum ProfilePageFields {
|
|
5
|
+
Name = "name",
|
|
6
|
+
PhoneNumber = "phoneNumber",
|
|
7
|
+
Address = "address",
|
|
8
|
+
JobTitle = "jobTitle"
|
|
9
|
+
}
|
|
10
|
+
export interface MapProfileFieldToAppearance extends Record<keyof ProfilePageFields, HiddenOrEdit> {
|
|
11
|
+
[ProfilePageFields.Address]: HiddenOrEdit;
|
|
12
|
+
[ProfilePageFields.JobTitle]: HiddenOrEdit;
|
|
13
|
+
[ProfilePageFields.Name]: HiddenOrEdit;
|
|
14
|
+
[ProfilePageFields.PhoneNumber]: HiddenOrEdit;
|
|
15
|
+
}
|
|
16
|
+
export declare enum PrivacyPageFields {
|
|
17
|
+
LoginSessions = "loginSessions",
|
|
18
|
+
Mfa = "mfa"
|
|
19
|
+
}
|
|
20
|
+
export interface MapPrivacyFieldToAppearance extends Record<keyof PrivacyPageFields, HiddenOrEdit> {
|
|
21
|
+
[PrivacyPageFields.LoginSessions]: HiddenOrEdit;
|
|
22
|
+
[PrivacyPageFields.Mfa]: HiddenOrEdit;
|
|
23
|
+
}
|
|
24
|
+
export declare enum AccountPageFields {
|
|
25
|
+
CompanyName = "companyName",
|
|
26
|
+
Address = "address",
|
|
27
|
+
Website = "website",
|
|
28
|
+
Timezone = "timezone",
|
|
29
|
+
Currency = "currency"
|
|
30
|
+
}
|
|
31
|
+
export interface MapAccountFieldToAppearance extends Record<keyof AccountPageFields, FieldAppearance> {
|
|
32
|
+
[AccountPageFields.CompanyName]: FieldAppearance;
|
|
33
|
+
[AccountPageFields.Address]: HiddenOrEdit;
|
|
34
|
+
[AccountPageFields.Website]: HiddenOrEdit;
|
|
35
|
+
[AccountPageFields.Timezone]: HiddenOrEdit;
|
|
36
|
+
[AccountPageFields.Currency]: HiddenOrEdit;
|
|
37
|
+
}
|
|
38
|
+
export declare enum SecurityPageTabs {
|
|
39
|
+
SessionManagement = "sessionManagement",
|
|
40
|
+
GeneralSettings = "generalSettings",
|
|
41
|
+
LoginRestrictions = "loginRestrictions",
|
|
42
|
+
SignupRestrictions = "signupRestrictions"
|
|
43
|
+
}
|
|
44
|
+
export declare enum SessionManagementTabFields {
|
|
45
|
+
IdleSessionTimeout = "idleSessionTimeout",
|
|
46
|
+
ForceReLogin = "forceReLogin",
|
|
47
|
+
MaximumConcurrentSessions = "maximumConcurrentSessions"
|
|
48
|
+
}
|
|
49
|
+
export declare enum GeneralSettingsTabFields {
|
|
50
|
+
Mfa = "mfa",
|
|
51
|
+
UserLockout = "userLockout",
|
|
52
|
+
PasswordHistory = "passwordHistory"
|
|
53
|
+
}
|
|
54
|
+
export declare enum LoginRestrictionsTabFields {
|
|
55
|
+
IpAddressRestrictions = "ipAddressRestrictions"
|
|
56
|
+
}
|
|
57
|
+
export declare enum SignupRestrictionsTabFields {
|
|
58
|
+
RestrictSignupByEmailDomain = "restrictSignupByEmailDomain"
|
|
59
|
+
}
|
|
60
|
+
export interface MapSecurityFieldToAppearance extends Record<keyof SecurityPageFields, FieldAppearance> {
|
|
61
|
+
[SessionManagementTabFields.IdleSessionTimeout]: FieldAppearance;
|
|
62
|
+
[SessionManagementTabFields.ForceReLogin]: FieldAppearance;
|
|
63
|
+
[SessionManagementTabFields.MaximumConcurrentSessions]: FieldAppearance;
|
|
64
|
+
[GeneralSettingsTabFields.Mfa]: FieldAppearance;
|
|
65
|
+
[GeneralSettingsTabFields.UserLockout]: FieldAppearance;
|
|
66
|
+
[GeneralSettingsTabFields.PasswordHistory]: FieldAppearance;
|
|
67
|
+
[LoginRestrictionsTabFields.IpAddressRestrictions]: HiddenOrEdit;
|
|
68
|
+
[SignupRestrictionsTabFields.RestrictSignupByEmailDomain]: HiddenOrEdit;
|
|
69
|
+
}
|
|
70
|
+
export declare type SecurityPageFields = SessionManagementTabFields | GeneralSettingsTabFields | LoginRestrictionsTabFields | SignupRestrictionsTabFields;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 SecurityPageTabs;
|
|
28
|
+
|
|
29
|
+
(function (SecurityPageTabs) {
|
|
30
|
+
SecurityPageTabs["SessionManagement"] = "sessionManagement";
|
|
31
|
+
SecurityPageTabs["GeneralSettings"] = "generalSettings";
|
|
32
|
+
SecurityPageTabs["LoginRestrictions"] = "loginRestrictions";
|
|
33
|
+
SecurityPageTabs["SignupRestrictions"] = "signupRestrictions";
|
|
34
|
+
})(SecurityPageTabs || (SecurityPageTabs = {}));
|
|
35
|
+
|
|
36
|
+
export let SessionManagementTabFields;
|
|
37
|
+
|
|
38
|
+
(function (SessionManagementTabFields) {
|
|
39
|
+
SessionManagementTabFields["IdleSessionTimeout"] = "idleSessionTimeout";
|
|
40
|
+
SessionManagementTabFields["ForceReLogin"] = "forceReLogin";
|
|
41
|
+
SessionManagementTabFields["MaximumConcurrentSessions"] = "maximumConcurrentSessions";
|
|
42
|
+
})(SessionManagementTabFields || (SessionManagementTabFields = {}));
|
|
43
|
+
|
|
44
|
+
export let GeneralSettingsTabFields;
|
|
45
|
+
|
|
46
|
+
(function (GeneralSettingsTabFields) {
|
|
47
|
+
GeneralSettingsTabFields["Mfa"] = "mfa";
|
|
48
|
+
GeneralSettingsTabFields["UserLockout"] = "userLockout";
|
|
49
|
+
GeneralSettingsTabFields["PasswordHistory"] = "passwordHistory";
|
|
50
|
+
})(GeneralSettingsTabFields || (GeneralSettingsTabFields = {}));
|
|
51
|
+
|
|
52
|
+
export let LoginRestrictionsTabFields;
|
|
53
|
+
|
|
54
|
+
(function (LoginRestrictionsTabFields) {
|
|
55
|
+
LoginRestrictionsTabFields["IpAddressRestrictions"] = "ipAddressRestrictions";
|
|
56
|
+
})(LoginRestrictionsTabFields || (LoginRestrictionsTabFields = {}));
|
|
57
|
+
|
|
58
|
+
export let SignupRestrictionsTabFields;
|
|
59
|
+
|
|
60
|
+
(function (SignupRestrictionsTabFields) {
|
|
61
|
+
SignupRestrictionsTabFields["RestrictSignupByEmailDomain"] = "restrictSignupByEmailDomain";
|
|
62
|
+
})(SignupRestrictionsTabFields || (SignupRestrictionsTabFields = {}));
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { AccountPageFields, GeneralSettingsTabFields, LoginRestrictionsTabFields, MapAccountFieldToAppearance, MapPrivacyFieldToAppearance, MapProfileFieldToAppearance, MapSecurityFieldToAppearance, PrivacyPageFields, ProfilePageFields, SessionManagementTabFields, SignupRestrictionsTabFields, TabAppearance } from './fieldsAppearanceConsts';
|
|
2
|
+
interface ProfileProperties<K extends ProfilePageFields> {
|
|
3
|
+
appearance: MapProfileFieldToAppearance[K];
|
|
4
|
+
}
|
|
5
|
+
export declare type ProfileFieldProperties = {
|
|
6
|
+
[K in ProfilePageFields]: ProfileProperties<K>;
|
|
7
|
+
};
|
|
8
|
+
interface AccountProperties<K extends AccountPageFields> {
|
|
9
|
+
appearance: MapAccountFieldToAppearance[K];
|
|
10
|
+
}
|
|
11
|
+
export declare type AccountFieldProperties = {
|
|
12
|
+
[K in AccountPageFields]: AccountProperties<K>;
|
|
13
|
+
};
|
|
14
|
+
interface PrivacyProperties<K extends PrivacyPageFields> {
|
|
15
|
+
appearance: MapPrivacyFieldToAppearance[K];
|
|
16
|
+
}
|
|
17
|
+
export declare type PrivacyFieldProperties = {
|
|
18
|
+
[K in PrivacyPageFields]: PrivacyProperties<K>;
|
|
19
|
+
};
|
|
20
|
+
interface SessionManagementProperties<K extends SessionManagementTabFields> {
|
|
21
|
+
appearance: MapSecurityFieldToAppearance[K];
|
|
22
|
+
}
|
|
23
|
+
export declare type SessionManagementFieldProperties = {
|
|
24
|
+
[K in SessionManagementTabFields]?: SessionManagementProperties<K>;
|
|
25
|
+
};
|
|
26
|
+
interface GeneralSettingsProperties<K extends GeneralSettingsTabFields> {
|
|
27
|
+
appearance: MapSecurityFieldToAppearance[K];
|
|
28
|
+
}
|
|
29
|
+
export declare type GeneralSettingsFieldProperties = {
|
|
30
|
+
[K in GeneralSettingsTabFields]?: GeneralSettingsProperties<K>;
|
|
31
|
+
};
|
|
32
|
+
interface LoginRestrictionsProperties<K extends LoginRestrictionsTabFields> {
|
|
33
|
+
appearance: MapSecurityFieldToAppearance[K];
|
|
34
|
+
}
|
|
35
|
+
export declare type LoginRestrictionsFieldProperties = {
|
|
36
|
+
[K in LoginRestrictionsTabFields]?: LoginRestrictionsProperties<K>;
|
|
37
|
+
};
|
|
38
|
+
interface SignupProperties<K extends SignupRestrictionsTabFields> {
|
|
39
|
+
appearance: MapSecurityFieldToAppearance[K];
|
|
40
|
+
}
|
|
41
|
+
export declare type SignupFieldProperties = {
|
|
42
|
+
[K in SignupRestrictionsTabFields]?: SignupProperties<K>;
|
|
43
|
+
};
|
|
44
|
+
export declare type ProfileFieldsProperties = Partial<ProfileFieldProperties>;
|
|
45
|
+
export declare type PrivacyFieldsProperties = Partial<PrivacyFieldProperties>;
|
|
46
|
+
export declare type AccountFieldsProperties = Partial<AccountFieldProperties>;
|
|
47
|
+
export declare type SessionManagementTabFieldsProperties = Partial<SessionManagementFieldProperties>;
|
|
48
|
+
export declare type SignupTabFieldsProperties = Partial<SignupFieldProperties>;
|
|
49
|
+
export declare type LoginRestrictionsTabFieldsProperties = Partial<LoginRestrictionsFieldProperties>;
|
|
50
|
+
export declare type GeneralSettingsTabFieldsProperties = Partial<GeneralSettingsFieldProperties>;
|
|
51
|
+
export declare type SessionManagementTabProperties = {
|
|
52
|
+
appearance?: TabAppearance;
|
|
53
|
+
fieldsProperties?: SessionManagementTabFieldsProperties;
|
|
54
|
+
};
|
|
55
|
+
export declare type SignupTabProperties = {
|
|
56
|
+
appearance?: TabAppearance;
|
|
57
|
+
fieldsProperties?: SignupTabFieldsProperties;
|
|
58
|
+
};
|
|
59
|
+
export declare type LoginRestrictionsTabProperties = {
|
|
60
|
+
appearance?: TabAppearance;
|
|
61
|
+
fieldsProperties?: LoginRestrictionsTabFieldsProperties;
|
|
62
|
+
};
|
|
63
|
+
export declare type GeneralSettingsTabProperties = {
|
|
64
|
+
appearance?: TabAppearance;
|
|
65
|
+
fieldsProperties?: GeneralSettingsFieldProperties;
|
|
66
|
+
};
|
|
67
|
+
export declare type SecurityTabsProperties = {
|
|
68
|
+
generalSettings?: GeneralSettingsTabProperties;
|
|
69
|
+
signupRestrictions?: SignupTabProperties;
|
|
70
|
+
loginRestrictions?: LoginRestrictionsTabProperties;
|
|
71
|
+
sessionManagement?: SessionManagementTabProperties;
|
|
72
|
+
};
|
|
73
|
+
export declare type TabsAndFieldsProperties = Partial<ProfileFieldProperties> | Partial<SessionManagementFieldProperties> | Partial<SignupFieldProperties> | Partial<LoginRestrictionsFieldProperties> | GeneralSettingsFieldProperties | SecurityTabsProperties | Partial<PrivacyFieldProperties> | Partial<AccountFieldProperties>;
|
|
74
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/ThemeOptions/index.d.ts
CHANGED
|
@@ -8,10 +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 './
|
|
11
|
+
import { FieldAppearance, TabAppearance } from './fieldsAppearanceConsts';
|
|
12
12
|
export * from './LoginBoxTheme';
|
|
13
13
|
export * from './ComponentsOptions';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './fieldsAppearanceConsts';
|
|
15
|
+
export * from './fieldsAppearanceTypes';
|
|
15
16
|
export * from './AdminPortalThemeOptions';
|
|
16
17
|
export declare type Direction = 'ltr' | 'rtl';
|
|
17
18
|
export interface FronteggThemeOptions {
|
package/ThemeOptions/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './LoginBoxTheme';
|
|
2
2
|
export * from './ComponentsOptions';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './fieldsAppearanceConsts';
|
|
4
|
+
export * from './fieldsAppearanceTypes';
|
|
4
5
|
export * from './AdminPortalThemeOptions';
|
|
5
6
|
export const fieldAppearance = {
|
|
6
7
|
hidden: 'hidden',
|
package/index.js
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SignupRestrictionsTabFields = exports.SessionManagementTabFields = exports.SecurityPageTabs = exports.ProfilePageFields = exports.PrivacyPageFields = exports.LoginRestrictionsTabFields = exports.GeneralSettingsTabFields = 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 SecurityPageTabs;
|
|
37
|
+
exports.SecurityPageTabs = SecurityPageTabs;
|
|
38
|
+
|
|
39
|
+
(function (SecurityPageTabs) {
|
|
40
|
+
SecurityPageTabs["SessionManagement"] = "sessionManagement";
|
|
41
|
+
SecurityPageTabs["GeneralSettings"] = "generalSettings";
|
|
42
|
+
SecurityPageTabs["LoginRestrictions"] = "loginRestrictions";
|
|
43
|
+
SecurityPageTabs["SignupRestrictions"] = "signupRestrictions";
|
|
44
|
+
})(SecurityPageTabs || (exports.SecurityPageTabs = SecurityPageTabs = {}));
|
|
45
|
+
|
|
46
|
+
let SessionManagementTabFields;
|
|
47
|
+
exports.SessionManagementTabFields = SessionManagementTabFields;
|
|
48
|
+
|
|
49
|
+
(function (SessionManagementTabFields) {
|
|
50
|
+
SessionManagementTabFields["IdleSessionTimeout"] = "idleSessionTimeout";
|
|
51
|
+
SessionManagementTabFields["ForceReLogin"] = "forceReLogin";
|
|
52
|
+
SessionManagementTabFields["MaximumConcurrentSessions"] = "maximumConcurrentSessions";
|
|
53
|
+
})(SessionManagementTabFields || (exports.SessionManagementTabFields = SessionManagementTabFields = {}));
|
|
54
|
+
|
|
55
|
+
let GeneralSettingsTabFields;
|
|
56
|
+
exports.GeneralSettingsTabFields = GeneralSettingsTabFields;
|
|
57
|
+
|
|
58
|
+
(function (GeneralSettingsTabFields) {
|
|
59
|
+
GeneralSettingsTabFields["Mfa"] = "mfa";
|
|
60
|
+
GeneralSettingsTabFields["UserLockout"] = "userLockout";
|
|
61
|
+
GeneralSettingsTabFields["PasswordHistory"] = "passwordHistory";
|
|
62
|
+
})(GeneralSettingsTabFields || (exports.GeneralSettingsTabFields = GeneralSettingsTabFields = {}));
|
|
63
|
+
|
|
64
|
+
let LoginRestrictionsTabFields;
|
|
65
|
+
exports.LoginRestrictionsTabFields = LoginRestrictionsTabFields;
|
|
66
|
+
|
|
67
|
+
(function (LoginRestrictionsTabFields) {
|
|
68
|
+
LoginRestrictionsTabFields["IpAddressRestrictions"] = "ipAddressRestrictions";
|
|
69
|
+
})(LoginRestrictionsTabFields || (exports.LoginRestrictionsTabFields = LoginRestrictionsTabFields = {}));
|
|
70
|
+
|
|
71
|
+
let SignupRestrictionsTabFields;
|
|
72
|
+
exports.SignupRestrictionsTabFields = SignupRestrictionsTabFields;
|
|
73
|
+
|
|
74
|
+
(function (SignupRestrictionsTabFields) {
|
|
75
|
+
SignupRestrictionsTabFields["RestrictSignupByEmailDomain"] = "restrictSignupByEmailDomain";
|
|
76
|
+
})(SignupRestrictionsTabFields || (exports.SignupRestrictionsTabFields = SignupRestrictionsTabFields = {}));
|
|
@@ -37,16 +37,30 @@ Object.keys(_ComponentsOptions).forEach(function (key) {
|
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _fieldsAppearanceConsts = require("./fieldsAppearanceConsts");
|
|
41
41
|
|
|
42
|
-
Object.keys(
|
|
42
|
+
Object.keys(_fieldsAppearanceConsts).forEach(function (key) {
|
|
43
43
|
if (key === "default" || key === "__esModule") return;
|
|
44
44
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
45
|
-
if (key in exports && exports[key] ===
|
|
45
|
+
if (key in exports && exports[key] === _fieldsAppearanceConsts[key]) return;
|
|
46
46
|
Object.defineProperty(exports, key, {
|
|
47
47
|
enumerable: true,
|
|
48
48
|
get: function () {
|
|
49
|
-
return
|
|
49
|
+
return _fieldsAppearanceConsts[key];
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
var _fieldsAppearanceTypes = require("./fieldsAppearanceTypes");
|
|
55
|
+
|
|
56
|
+
Object.keys(_fieldsAppearanceTypes).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] === _fieldsAppearanceTypes[key]) return;
|
|
60
|
+
Object.defineProperty(exports, key, {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _fieldsAppearanceTypes[key];
|
|
50
64
|
}
|
|
51
65
|
});
|
|
52
66
|
});
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "6.43.0-alpha.
|
|
3
|
+
"version": "6.43.0-alpha.1",
|
|
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.43.0-alpha.
|
|
9
|
+
"@frontegg/redux-store": "6.43.0-alpha.1",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|
package/ThemeOptions/consts.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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 {};
|
package/ThemeOptions/consts.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,59 +0,0 @@
|
|
|
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 = {}));
|