@frontegg/types 6.51.0 → 6.52.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/CustomComponents.d.ts +2 -0
- package/Localizations/AdminPortalLocalizations/privacy.d.ts +0 -4
- package/ThemeOptions/AdminPortalThemeOptions.d.ts +7 -2
- package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.d.ts +6 -1
- package/ThemeOptions/LoginBoxThemeOptions.d.ts +1 -1
- package/ThemeOptions/fieldsAppearanceConsts.d.ts +6 -0
- package/ThemeOptions/fieldsAppearanceConsts.js +6 -0
- package/ThemeOptions/fieldsAppearanceTypes.d.ts +9 -2
- package/index.js +1 -1
- package/node/ThemeOptions/fieldsAppearanceConsts.js +8 -1
- package/node/index.js +1 -1
- package/package.json +2 -2
package/CustomComponents.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface AuthPageCustomComponents {
|
|
|
10
10
|
facebookIcon?: any;
|
|
11
11
|
microsoftIcon?: any;
|
|
12
12
|
slackIcon?: any;
|
|
13
|
+
appleIcon?: any;
|
|
13
14
|
};
|
|
14
15
|
content?: {
|
|
15
16
|
googleText?: string;
|
|
@@ -17,5 +18,6 @@ export interface AuthPageCustomComponents {
|
|
|
17
18
|
facebookText?: string;
|
|
18
19
|
microsoftText?: string;
|
|
19
20
|
slackText?: string;
|
|
21
|
+
appleText?: string;
|
|
20
22
|
};
|
|
21
23
|
}
|
|
@@ -290,10 +290,6 @@ export interface PrivacyLocalization {
|
|
|
290
290
|
otcResending: string;
|
|
291
291
|
};
|
|
292
292
|
privacy_EnableMfaAuthenticatorApp: {
|
|
293
|
-
/**
|
|
294
|
-
* Enroll MFA Authenticator app dialog body title
|
|
295
|
-
*/
|
|
296
|
-
enrollTitle: string;
|
|
297
293
|
/**
|
|
298
294
|
* Enroll MFA Authenticator app dialog body description
|
|
299
295
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseTheme, BaseThemeOptions, BasicThemeName, InviteUserModalFieldsProperties } from './index';
|
|
1
|
+
import { BaseTheme, BaseThemeOptions, BasicThemeName, InviteUserModalFieldsProperties, SubscriptionsFieldsProperties } from './index';
|
|
2
2
|
import { Color, CSSProperties, ExtendedCSSProperties } from '../Common';
|
|
3
3
|
import { AccountFieldsProperties, PrivacyFieldsProperties, ProfileFieldsProperties, SecurityTabsProperties } from './fieldsAppearanceTypes';
|
|
4
4
|
export interface NavigationThemeOptionsState {
|
|
@@ -7,6 +7,8 @@ export interface NavigationThemeOptionsState {
|
|
|
7
7
|
borderColor?: Color;
|
|
8
8
|
avatarColor?: Color;
|
|
9
9
|
avatarBgColor?: Color;
|
|
10
|
+
iconColor?: Color;
|
|
11
|
+
iconBackground?: Color;
|
|
10
12
|
borderBottomColor?: Color;
|
|
11
13
|
}
|
|
12
14
|
export interface NavigationThemeOptions extends BaseThemeOptions {
|
|
@@ -75,6 +77,9 @@ export interface UsersPageThemeOptions extends PageThemeOptions {
|
|
|
75
77
|
hideInviteWithEmail?: boolean;
|
|
76
78
|
inviteUserModal?: InviteUserModalOptions;
|
|
77
79
|
}
|
|
80
|
+
export interface SubscriptionsPageThemeOptions extends PageThemeOptions {
|
|
81
|
+
fieldsProperties?: SubscriptionsFieldsProperties;
|
|
82
|
+
}
|
|
78
83
|
export interface PagesThemeOptions extends PageThemeOptions {
|
|
79
84
|
profile?: ProfilePageThemeOptions;
|
|
80
85
|
privacy?: PrivacyPageThemeOptions;
|
|
@@ -87,7 +92,7 @@ export interface PagesThemeOptions extends PageThemeOptions {
|
|
|
87
92
|
webhooks?: PageThemeOptions;
|
|
88
93
|
apiTokens?: PageThemeOptions;
|
|
89
94
|
roles?: PageThemeOptions;
|
|
90
|
-
subscriptions?:
|
|
95
|
+
subscriptions?: SubscriptionsPageThemeOptions;
|
|
91
96
|
}
|
|
92
97
|
export interface TableScrollbar {
|
|
93
98
|
borderColor?: Color;
|
|
@@ -9,6 +9,7 @@ export interface SocialLoginComponentKeyRender {
|
|
|
9
9
|
facebookIcon: {};
|
|
10
10
|
githubIcon: {};
|
|
11
11
|
slackIcon: {};
|
|
12
|
+
appleIcon: {};
|
|
12
13
|
}
|
|
13
14
|
export declare type SocialLoginCustomComponent<T extends keyof SocialLoginComponentKeyRender> = string | ((props?: SocialLoginComponentKeyRender[T]) => string | any);
|
|
14
15
|
export interface SocialLoginsLayoutBase {
|
|
@@ -18,7 +19,7 @@ export interface SocialLoginsLayoutBase {
|
|
|
18
19
|
mainButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
19
20
|
showStackedButtonsWithText?: boolean;
|
|
20
21
|
}
|
|
21
|
-
declare type SocialLoginTypes = 'google' | 'facebook' | 'microsoft' | 'github' | 'slack';
|
|
22
|
+
declare type SocialLoginTypes = 'google' | 'facebook' | 'microsoft' | 'github' | 'slack' | 'apple';
|
|
22
23
|
export interface SocialLoginsLayoutStacked extends SocialLoginsLayoutBase {
|
|
23
24
|
mode: 'stack';
|
|
24
25
|
mainButton?: SocialLoginTypes;
|
|
@@ -47,6 +48,8 @@ export interface SocialLoginsThemeOptions extends BaseThemeOptions, SocialLogins
|
|
|
47
48
|
githubButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
48
49
|
slackIcon?: SocialLoginCustomComponent<'slackIcon'>;
|
|
49
50
|
slackButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
51
|
+
appleIcon?: SocialLoginCustomComponent<'appleIcon'>;
|
|
52
|
+
appleButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
50
53
|
}
|
|
51
54
|
export interface SocialLoginsTheme extends BaseTheme {
|
|
52
55
|
socialLoginsLayout?: SocialLoginsLayout;
|
|
@@ -66,5 +69,7 @@ export interface SocialLoginsTheme extends BaseTheme {
|
|
|
66
69
|
githubButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
67
70
|
slackIcon?: SocialLoginCustomComponent<'slackIcon'>;
|
|
68
71
|
slackButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
72
|
+
appleIcon?: SocialLoginCustomComponent<'appleIcon'>;
|
|
73
|
+
appleButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
69
74
|
}
|
|
70
75
|
export {};
|
|
@@ -16,7 +16,7 @@ export interface SocialLoginButton extends BaseThemeOptions {
|
|
|
16
16
|
background?: CSSProperties['background'];
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
export declare type SocialLoginTypes = 'google' | 'gitHub' | 'facebook' | 'microsoft' | 'slack';
|
|
19
|
+
export declare type SocialLoginTypes = 'google' | 'gitHub' | 'facebook' | 'microsoft' | 'slack' | 'apple';
|
|
20
20
|
export declare type SocialLogins = BaseThemeOptions & {
|
|
21
21
|
rowLayout?: boolean;
|
|
22
22
|
iconWidth?: string;
|
|
@@ -52,6 +52,12 @@ export interface MapAccountFieldToAppearance extends Record<keyof AccountPageFie
|
|
|
52
52
|
[AccountPageFields.Timezone]: HiddenOrEdit;
|
|
53
53
|
[AccountPageFields.Currency]: HiddenOrEdit;
|
|
54
54
|
}
|
|
55
|
+
export declare enum SubscriptionsPageFields {
|
|
56
|
+
Invoices = "invoices"
|
|
57
|
+
}
|
|
58
|
+
export interface MapSubscriptionsFieldToAppearance extends Record<keyof SubscriptionsPageFields, HiddenOrEdit> {
|
|
59
|
+
[SubscriptionsPageFields.Invoices]: HiddenOrEdit;
|
|
60
|
+
}
|
|
55
61
|
export declare enum SecurityPageTabs {
|
|
56
62
|
SessionManagement = "sessionManagement",
|
|
57
63
|
GeneralSettings = "generalSettings",
|
|
@@ -31,6 +31,12 @@ export let AccountPageFields;
|
|
|
31
31
|
AccountPageFields["Currency"] = "currency";
|
|
32
32
|
})(AccountPageFields || (AccountPageFields = {}));
|
|
33
33
|
|
|
34
|
+
export let SubscriptionsPageFields;
|
|
35
|
+
|
|
36
|
+
(function (SubscriptionsPageFields) {
|
|
37
|
+
SubscriptionsPageFields["Invoices"] = "invoices";
|
|
38
|
+
})(SubscriptionsPageFields || (SubscriptionsPageFields = {}));
|
|
39
|
+
|
|
34
40
|
export let SecurityPageTabs;
|
|
35
41
|
|
|
36
42
|
(function (SecurityPageTabs) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtendedCSSProperties } from '../Common';
|
|
2
2
|
import { PageThemeOptions } from './AdminPortalThemeOptions';
|
|
3
|
-
import { AccountPageFields, GeneralSettingsTabFields, InviteUserModalFields, IpRestrictionsTabFields, MapAccountFieldToAppearance, MapInviteUserFieldToAppearance, MapInviteUserFieldToSettings, MapPrivacyFieldToAppearance, MapProfileFieldToAppearance, MapSecurityFieldToAppearance, PrivacyPageFields, ProfilePageFields, SessionManagementTabFields, DomainRestrictionsTabFields, TabAppearance } from './fieldsAppearanceConsts';
|
|
3
|
+
import { AccountPageFields, GeneralSettingsTabFields, InviteUserModalFields, IpRestrictionsTabFields, MapAccountFieldToAppearance, MapInviteUserFieldToAppearance, MapInviteUserFieldToSettings, MapPrivacyFieldToAppearance, MapProfileFieldToAppearance, MapSecurityFieldToAppearance, PrivacyPageFields, ProfilePageFields, SessionManagementTabFields, DomainRestrictionsTabFields, TabAppearance, SubscriptionsPageFields, MapSubscriptionsFieldToAppearance } from './fieldsAppearanceConsts';
|
|
4
4
|
interface ProfileProperties<K extends ProfilePageFields> {
|
|
5
5
|
appearance?: MapProfileFieldToAppearance[K];
|
|
6
6
|
}
|
|
@@ -19,6 +19,12 @@ interface PrivacyProperties<K extends PrivacyPageFields> {
|
|
|
19
19
|
export declare type PrivacyFieldProperties = {
|
|
20
20
|
[K in PrivacyPageFields]: PrivacyProperties<K>;
|
|
21
21
|
};
|
|
22
|
+
interface SubscriptionsProperties<K extends SubscriptionsPageFields> {
|
|
23
|
+
appearance?: MapSubscriptionsFieldToAppearance[K];
|
|
24
|
+
}
|
|
25
|
+
export declare type SubscriptionsFieldProperties = {
|
|
26
|
+
[K in SubscriptionsPageFields]: SubscriptionsProperties<K>;
|
|
27
|
+
};
|
|
22
28
|
interface InviteUserModalProperties<K extends InviteUserModalFields> {
|
|
23
29
|
appearance?: MapInviteUserFieldToAppearance[K];
|
|
24
30
|
settings?: MapInviteUserFieldToSettings[K];
|
|
@@ -58,6 +64,7 @@ export declare type SessionManagementTabFieldsProperties = Partial<SessionManage
|
|
|
58
64
|
export declare type DomainRestrictionsTabFieldsProperties = Partial<DomainRestrictionsFieldProperties>;
|
|
59
65
|
export declare type IpRestrictionsTabFieldsProperties = Partial<IpRestrictionsFieldProperties>;
|
|
60
66
|
export declare type GeneralSettingsTabFieldsProperties = Partial<GeneralSettingsFieldProperties>;
|
|
67
|
+
export declare type SubscriptionsFieldsProperties = Partial<SubscriptionsFieldProperties>;
|
|
61
68
|
export interface TabProperties extends Omit<PageThemeOptions, 'header'> {
|
|
62
69
|
appearance?: TabAppearance;
|
|
63
70
|
}
|
|
@@ -85,5 +92,5 @@ export declare type SecurityTabsProperties = {
|
|
|
85
92
|
ipRestrictions?: IpRestrictionsTabProperties;
|
|
86
93
|
domainRestrictions?: DomainRestrictionsTabProperties;
|
|
87
94
|
};
|
|
88
|
-
export declare type TabsAndFieldsProperties = Partial<ProfileFieldProperties> | Partial<SessionManagementFieldProperties> | Partial<DomainRestrictionsFieldProperties> | Partial<IpRestrictionsFieldProperties> | GeneralSettingsFieldProperties | SecurityTabsProperties | Partial<PrivacyFieldProperties> | Partial<AccountFieldProperties> | Partial<InviteUserModalFieldProperties>;
|
|
95
|
+
export declare type TabsAndFieldsProperties = Partial<ProfileFieldProperties> | Partial<SessionManagementFieldProperties> | Partial<DomainRestrictionsFieldProperties> | Partial<IpRestrictionsFieldProperties> | GeneralSettingsFieldProperties | SecurityTabsProperties | Partial<PrivacyFieldProperties> | Partial<AccountFieldProperties> | Partial<InviteUserModalFieldProperties> | Partial<SubscriptionsFieldsProperties>;
|
|
89
96
|
export {};
|
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SsoPageTabs = exports.SessionManagementTabFields = exports.SecurityPageTabs = exports.ProfilePageFields = exports.PrivacyPageFields = exports.IpRestrictionsTabFields = exports.InviteUserModalFields = exports.GeneralSettingsTabFields = exports.DomainRestrictionsTabFields = exports.AccountPageFields = void 0;
|
|
6
|
+
exports.SubscriptionsPageFields = exports.SsoPageTabs = exports.SessionManagementTabFields = exports.SecurityPageTabs = exports.ProfilePageFields = exports.PrivacyPageFields = exports.IpRestrictionsTabFields = exports.InviteUserModalFields = exports.GeneralSettingsTabFields = exports.DomainRestrictionsTabFields = exports.AccountPageFields = void 0;
|
|
7
7
|
let ProfilePageFields;
|
|
8
8
|
exports.ProfilePageFields = ProfilePageFields;
|
|
9
9
|
|
|
@@ -41,6 +41,13 @@ exports.AccountPageFields = AccountPageFields;
|
|
|
41
41
|
AccountPageFields["Currency"] = "currency";
|
|
42
42
|
})(AccountPageFields || (exports.AccountPageFields = AccountPageFields = {}));
|
|
43
43
|
|
|
44
|
+
let SubscriptionsPageFields;
|
|
45
|
+
exports.SubscriptionsPageFields = SubscriptionsPageFields;
|
|
46
|
+
|
|
47
|
+
(function (SubscriptionsPageFields) {
|
|
48
|
+
SubscriptionsPageFields["Invoices"] = "invoices";
|
|
49
|
+
})(SubscriptionsPageFields || (exports.SubscriptionsPageFields = SubscriptionsPageFields = {}));
|
|
50
|
+
|
|
44
51
|
let SecurityPageTabs;
|
|
45
52
|
exports.SecurityPageTabs = SecurityPageTabs;
|
|
46
53
|
|
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.52.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.
|
|
9
|
+
"@frontegg/redux-store": "6.52.0-alpha.1",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|