@frontegg/types 7.2.0-alpha.2 → 7.2.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/Common.d.ts +3 -3
- package/FronteggMetadata.d.ts +10 -10
- package/Localizations/AdminPortalLocalizations/index.d.ts +1 -1
- package/Localizations/Common/index.d.ts +1 -1
- package/Localizations/LocalizationOverrides.d.ts +5 -5
- package/Localizations/LocalizationType.d.ts +2 -2
- package/Localizations/LoginBoxLocalization/index.d.ts +1 -3
- package/Localizations/LoginBoxLocalization/index.js +0 -1
- package/Metadata/getPalette.d.ts +1 -1
- package/ThemeOptions/BreakpointsOptions.d.ts +4 -4
- package/ThemeOptions/ComponentsOptions.d.ts +2 -2
- package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.d.ts +1 -1
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +2 -2
- package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.d.ts +3 -3
- package/ThemeOptions/LoginBoxTheme/StepUpTheme.d.ts +2 -2
- package/ThemeOptions/LoginBoxTheme/index.d.ts +0 -4
- package/ThemeOptions/LoginBoxTheme/index.js +0 -1
- package/ThemeOptions/LoginBoxThemeOptions.d.ts +2 -2
- package/ThemeOptions/Palette.d.ts +12 -10
- package/ThemeOptions/Shadows.d.ts +27 -1
- package/ThemeOptions/SpacingOptions.d.ts +1 -1
- package/ThemeOptions/TypographyOptions.d.ts +4 -4
- package/ThemeOptions/externalAssetsOptions.d.ts +1 -1
- package/ThemeOptions/fieldsAppearanceConsts.d.ts +6 -6
- package/ThemeOptions/fieldsAppearanceTypes.d.ts +27 -27
- package/ThemeOptions/index.d.ts +5 -5
- package/index.js +1 -1
- package/node/Localizations/LoginBoxLocalization/index.js +0 -11
- package/node/ThemeOptions/LoginBoxTheme/index.js +0 -11
- package/node/index.js +1 -1
- package/package.json +2 -2
- package/Localizations/LoginBoxLocalization/unlockAccount.d.ts +0 -27
- package/Localizations/LoginBoxLocalization/unlockAccount.js +0 -1
- package/ThemeOptions/LoginBoxTheme/UnlockAccountPageTheme.d.ts +0 -13
- package/ThemeOptions/LoginBoxTheme/UnlockAccountPageTheme.js +0 -1
- package/node/Localizations/LoginBoxLocalization/unlockAccount.js +0 -5
- package/node/ThemeOptions/LoginBoxTheme/UnlockAccountPageTheme.js +0 -5
package/Common.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as CSS from 'csstype';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type CSSProperties = CSS.Properties;
|
|
3
|
+
export type Color = CSSProperties['color'];
|
|
4
|
+
export type ExtendedCSSProperties = CSSProperties | {
|
|
5
5
|
[k in string]?: CSSProperties;
|
|
6
6
|
};
|
package/FronteggMetadata.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaletteColorOptions, PaletteGreyOptions } from './ThemeOptions/Palette';
|
|
2
2
|
import { FronteggThemeOptions } from './ThemeOptions';
|
|
3
3
|
import { LocalizationsOverrides } from './Localizations';
|
|
4
|
-
|
|
4
|
+
type PageMetadata = {
|
|
5
5
|
visibility: 'hidden' | 'always' | 'byPermissions';
|
|
6
6
|
featureFlag?: string;
|
|
7
7
|
permissions?: RolePermission[];
|
|
@@ -15,7 +15,7 @@ export interface UsersMetadata extends PageMetadata {
|
|
|
15
15
|
interface AuditsMetadata extends PageMetadata {
|
|
16
16
|
paginationMode?: 'virtual' | 'pages';
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type NavigationMetadata = {
|
|
19
19
|
profile?: PageMetadata /** extend with 'interface ProfileMetadata extends PageMetadata {}' */;
|
|
20
20
|
privacy?: PageMetadata /** extend with 'interface PrivacyMetadata extends PageMetadata {}' */;
|
|
21
21
|
usage?: PageMetadata /** extend with 'interface UsageMetadata extends PageMetadata {}' */;
|
|
@@ -34,7 +34,7 @@ export declare type NavigationMetadata = {
|
|
|
34
34
|
subscriptions?: PageMetadata /** extend with 'interface SubscriptionsMetadata extends PageMetadata {}' */;
|
|
35
35
|
allAccounts?: PageMetadata /** extend with 'interface AllAccountsMetadata extends PageMetadata {}' */;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
type PaletteOptions = {
|
|
38
38
|
primary?: PaletteColorOptions;
|
|
39
39
|
secondary?: PaletteColorOptions;
|
|
40
40
|
danger?: PaletteColorOptions;
|
|
@@ -45,14 +45,14 @@ declare type PaletteOptions = {
|
|
|
45
45
|
grey?: PaletteGreyOptions;
|
|
46
46
|
loader?: string;
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
type BreakpointsOptions = {
|
|
49
49
|
xs: number;
|
|
50
50
|
sm: number;
|
|
51
51
|
md: number;
|
|
52
52
|
lg: number;
|
|
53
53
|
xl: number;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
type ThemeMetadata = {
|
|
56
56
|
palette?: PaletteOptions;
|
|
57
57
|
breakpoints?: BreakpointsOptions;
|
|
58
58
|
};
|
|
@@ -67,7 +67,7 @@ export interface IntegrationsMetadata {
|
|
|
67
67
|
export interface MetadataOverrides {
|
|
68
68
|
url?: string;
|
|
69
69
|
}
|
|
70
|
-
export
|
|
70
|
+
export type FronteggMetadata = {
|
|
71
71
|
theme?: ThemeMetadata;
|
|
72
72
|
themeV2?: FronteggThemeOptions;
|
|
73
73
|
navigation?: NavigationMetadata;
|
|
@@ -75,8 +75,8 @@ export declare type FronteggMetadata = {
|
|
|
75
75
|
integrations?: IntegrationsMetadata;
|
|
76
76
|
metadataOverrides?: MetadataOverrides;
|
|
77
77
|
};
|
|
78
|
-
export
|
|
79
|
-
export
|
|
80
|
-
export
|
|
81
|
-
export
|
|
78
|
+
export type SubscriptionRolePermissions = 'fe.subscriptions.*' | 'fe.subscriptions.read.*' | 'fe.subscriptions.write.*';
|
|
79
|
+
export type GroupsRolePermissions = 'fe.secure.delete.groups' | 'fe.secure.delete.groupsUsers' | 'fe.secure.read.groups' | 'fe.secure.write.groups' | 'fe.secure.write.groupsRoles' | 'fe.secure.write.groupsUsers';
|
|
80
|
+
export type AllAccountsPermissions = 'fe.account-hierarchy.write.subAccount' | 'fe.account-hierarchy.write.subAccountAccess' | 'fe.account-hierarchy.read.subAccount' | 'fe.account-hierarchy.delete.subAccount' | 'fe.account-hierarchy.write.subAccountManagement';
|
|
81
|
+
export type RolePermission = 'fe.connectivity.*' | 'fe.connectivity.delete.*' | 'fe.connectivity.delete.bellNotifications' | 'fe.connectivity.delete.emailConfig' | 'fe.connectivity.delete.slackAppRegistration' | 'fe.connectivity.delete.slackSubscriptionEvent' | 'fe.connectivity.delete.slackSubscriptions' | 'fe.connectivity.delete.smsConfig' | 'fe.connectivity.delete.webhook' | 'fe.connectivity.read.*' | 'fe.connectivity.read.emailConfig' | 'fe.connectivity.read.eventCategories' | 'fe.connectivity.read.events' | 'fe.connectivity.read.slackApp' | 'fe.connectivity.read.slackChannels' | 'fe.connectivity.read.slackSubscriptions' | 'fe.connectivity.read.slackUsers' | 'fe.connectivity.read.smsConfig' | 'fe.connectivity.read.userBellNotifications' | 'fe.connectivity.read.webhookLogs' | 'fe.connectivity.read.webhooks' | 'fe.connectivity.write.*' | 'fe.connectivity.write.emailConfig' | 'fe.connectivity.write.sendWebpushNotification' | 'fe.connectivity.write.slackAppRegistration' | 'fe.connectivity.write.slackSubscriptions' | 'fe.connectivity.write.smsConfig' | 'fe.connectivity.write.subscribeWebpush' | 'fe.connectivity.write.triggerEvent' | 'fe.connectivity.write.updateSlackSubscription' | 'fe.connectivity.write.updateUserBellNotification' | 'fe.connectivity.write.webhook' | 'fe.secure.*' | 'fe.secure.delete.*' | 'fe.secure.delete.sessions' | 'fe.secure.delete.role' | 'fe.secure.delete.samlConfiguration' | 'fe.secure.delete.securityPolicy' | 'fe.secure.delete.tenantApiTokens' | 'fe.secure.delete.userApiTokens' | 'fe.secure.delete.users' | 'fe.secure.delete.usersRoles' | 'fe.secure.read.*' | 'fe.secure.read.accountSettings' | 'fe.secure.read.permissions' | 'fe.secure.read.roles' | 'fe.secure.read.samlConfiguration' | 'fe.secure.read.securityPolicy' | 'fe.secure.read.tenantApiTokens' | 'fe.secure.read.userApiTokens' | 'fe.secure.read.users' | 'fe.secure.read.userSubTenants' | 'fe.secure.write.userSubTenants' | 'fe.secure.write.*' | 'fe.secure.write.accountSettings' | 'fe.secure.write.resendActivationEmail' | 'fe.secure.write.roles' | 'fe.secure.write.samlConfiguration' | 'fe.secure.write.securityPolicy' | 'fe.secure.write.tenantApiTokens' | 'fe.secure.write.updateRole' | 'fe.secure.write.updateUser' | 'fe.secure.write.userApiTokens' | 'fe.secure.write.users' | 'fe.secure.write.usersRoles' | 'fe.secure.write.tenantInvites' | 'fe.secure.delete.tenantInvites' | 'fe.subscriptions.*' | 'fe.subscriptions.read.*' | 'fe.subscriptions.write.*' | 'fe.account-settings.delete.account' | 'fe.secure.read.audits' | 'fe.usage.read' | 'fe.secure.delete.ipRestrictions' | 'fe.secure.write.ipRestrictions' | 'fe.secure.read.ipRestrictions' | 'fe.secure.delete.emailDomainRestrictions' | 'fe.secure.write.emailDomainRestrictions' | 'fe.secure.read.emailDomainRestrictions' | 'fe.secure.read.provisioningConfiguration' | 'fe.secure.write.provisioningConfiguration' | 'fe.secure.delete.provisioningConfiguration' | 'fe.account-settings.write.custom-login-box' | 'fe.account-settings.read.app' | 'fe.secure.write.appsUsers' | 'fe.secure.delete.appsUsers' | 'fe.secure.write.enableDisable' | AllAccountsPermissions | SubscriptionRolePermissions | GroupsRolePermissions;
|
|
82
82
|
export {};
|
|
@@ -34,4 +34,4 @@ export * from './allUsers';
|
|
|
34
34
|
export * from './provisioning';
|
|
35
35
|
export * from './allAccounts';
|
|
36
36
|
export * from './appDialog';
|
|
37
|
-
export
|
|
37
|
+
export type AdminPortalLocalization = NavigationLocalization & ProfileLocalization & PersonalTokensLocalization & AuditLogsLocalization & ApiTokensLocalization & AccountSettingsLocalization & PrivacyLocalization & SecurityLocalization & RolesLocalization & SsoLocalization & UsersLocalization & UsersGroupsLocalization & WebhooksLocalization & SubscriptionsLocalization & AllUsersLocalization & ProvisioningLocalization & AllAccountsLocalization & AppDialogLocalization;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ValidationLocalization } from './LocalizationType';
|
|
2
2
|
import { LoginBoxLocalization } from './LoginBoxLocalization';
|
|
3
3
|
import { AdminPortalLocalization } from './AdminPortalLocalizations';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type Languages = 'en' | 'he';
|
|
5
|
+
export type LocalizationsOverrides = Partial<{
|
|
6
6
|
[k in Languages]: LocalizationOverrides;
|
|
7
7
|
}>;
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type ValidationLocalizationOverrides = Partial<ValidationLocalization>;
|
|
9
|
+
export type LoginBoxLocalizationOverrides = Partial<{
|
|
10
10
|
[key in keyof LoginBoxLocalization]: Partial<LoginBoxLocalization[key]>;
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
12
|
+
export type AdminPortalLocalizationOverrides = Partial<{
|
|
13
13
|
[key in keyof AdminPortalLocalization]: Partial<AdminPortalLocalization[key]>;
|
|
14
14
|
}>;
|
|
15
15
|
export interface LocalizationOverrides {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AdminPortalLocalization } from './AdminPortalLocalizations';
|
|
2
2
|
import { LoginBoxLocalization } from './LoginBoxLocalization';
|
|
3
3
|
import { CommonLocalization } from './Common';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type Languages = 'en' | string;
|
|
5
|
+
export type Localizations = {
|
|
6
6
|
[k in Languages]: Localization;
|
|
7
7
|
};
|
|
8
8
|
export interface ValidationLocalization {
|
|
@@ -10,7 +10,6 @@ import { ResetPhoneNumberLocalization } from './resetPhoneNumber';
|
|
|
10
10
|
import { ImpersonateLocalization } from './impersonate';
|
|
11
11
|
import { StepUpLocalization } from './stepUp';
|
|
12
12
|
import { OpenAppLocalization } from './openApp';
|
|
13
|
-
import { UnlockAccountLocalization } from './unlockAccount';
|
|
14
13
|
export * from './login';
|
|
15
14
|
export * from './stepUp';
|
|
16
15
|
export * from './signup';
|
|
@@ -24,5 +23,4 @@ export * from './recoveryMfa';
|
|
|
24
23
|
export * from './SplitPageTypes';
|
|
25
24
|
export * from './impersonate';
|
|
26
25
|
export * from './openApp';
|
|
27
|
-
export
|
|
28
|
-
export declare type LoginBoxLocalization = LoginLocalization & StepUpLocalization & SignupLocalization & ForgetPasswordLocalization & ResetPhoneNumberLocalization & ResetPasswordLocalization & SocialLoginsLocalization & AcceptInvitationLocalization & ActivateAccountLocalization & ImpersonateLocalization & RecoveryMfaLocalization & UnlockAccountLocalization & OpenAppLocalization;
|
|
26
|
+
export type LoginBoxLocalization = LoginLocalization & StepUpLocalization & SignupLocalization & ForgetPasswordLocalization & ResetPhoneNumberLocalization & ResetPasswordLocalization & SocialLoginsLocalization & AcceptInvitationLocalization & ActivateAccountLocalization & ImpersonateLocalization & RecoveryMfaLocalization & OpenAppLocalization;
|
package/Metadata/getPalette.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type BreakpointDefaults = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2
|
+
export type Breakpoint = BreakpointDefaults;
|
|
3
|
+
export type BreakpointValues = {
|
|
4
4
|
[key in Breakpoint]: number;
|
|
5
5
|
};
|
|
6
6
|
export interface Breakpoints {
|
|
@@ -14,4 +14,4 @@ export interface Breakpoints {
|
|
|
14
14
|
only: (key: Breakpoint) => string;
|
|
15
15
|
width: (key: Breakpoint) => number;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type BreakpointsOptions = Partial<Breakpoints>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ExtendedCSSProperties } from '../Common';
|
|
2
|
-
export
|
|
2
|
+
export type CustomComponent<T = {}> = null | string | ((props: T) => string | any);
|
|
3
3
|
export interface ITestimonialComponent {
|
|
4
4
|
testimonial1: string;
|
|
5
5
|
testimonial2?: string;
|
|
@@ -18,7 +18,7 @@ export interface ILogosComponent {
|
|
|
18
18
|
logo6?: string;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type SideElement = 'testimonials' | 'values' | 'logos';
|
|
22
22
|
export interface InputThemeOptions {
|
|
23
23
|
/**
|
|
24
24
|
* Input label style
|
|
@@ -7,7 +7,7 @@ interface TitleProps {
|
|
|
7
7
|
interface MessageProps {
|
|
8
8
|
message: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type ActivateAccountDisclaimerOptions = DisclaimerOptions;
|
|
11
11
|
interface ActivateAccountComponentsTheme {
|
|
12
12
|
/**
|
|
13
13
|
* Activate account page container style
|
|
@@ -13,7 +13,7 @@ export declare enum SignupFields {
|
|
|
13
13
|
*/
|
|
14
14
|
phoneNumber = "phoneNumber"
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
type SignupFieldsProperties = {
|
|
17
17
|
[K in SignupFields]?: {
|
|
18
18
|
/**
|
|
19
19
|
* If true the field in will be rendered in signup form
|
|
@@ -36,7 +36,7 @@ export interface GoToLoginMessageProps {
|
|
|
36
36
|
goToLoginMessage: string;
|
|
37
37
|
goToLoginButtonText: string;
|
|
38
38
|
}
|
|
39
|
-
export
|
|
39
|
+
export type SignUpDisclaimerOptions = DisclaimerOptions;
|
|
40
40
|
export interface SignupPageComponentsTheme {
|
|
41
41
|
/**
|
|
42
42
|
* Signup page title default is 'Account Sign Up'
|
|
@@ -12,7 +12,7 @@ export interface SocialLoginComponentKeyRender {
|
|
|
12
12
|
appleIcon: {};
|
|
13
13
|
linkedinIcon: {};
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type SocialLoginCustomComponent<T extends keyof SocialLoginComponentKeyRender> = string | ((props?: SocialLoginComponentKeyRender[T]) => string | any);
|
|
16
16
|
export interface SocialLoginsLayoutBase {
|
|
17
17
|
placement?: 'bottom' | 'top';
|
|
18
18
|
stackedContainerStyle?: ExtendedCSSProperties;
|
|
@@ -24,10 +24,10 @@ export interface SocialLoginsLayoutStacked extends SocialLoginsLayoutBase {
|
|
|
24
24
|
mode: 'stack';
|
|
25
25
|
mainButton?: string;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type SocialLoginsLayoutEventually = SocialLoginsLayoutBase & {
|
|
28
28
|
mode: 'eventually';
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type SocialLoginsLayout = SocialLoginsLayoutStacked | SocialLoginsLayoutEventually;
|
|
31
31
|
export interface SocialLoginsCustomComponents {
|
|
32
32
|
divider?: SocialLoginCustomComponent<'divider'>;
|
|
33
33
|
dividerStyle?: ExtendedCSSProperties;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '..';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type StepUpThemeOptions = LoginBoxCommonThemeOptions;
|
|
3
|
+
export type StepUpTheme = LoginBoxCommonTheme;
|
|
@@ -11,11 +11,9 @@ import { SignupPageTheme } from './SignupPageTheme';
|
|
|
11
11
|
import { ResetPhoneNumberPageTheme, ResetPhoneNumberPageThemeOptions } from './ResetPhoneNumberTheme';
|
|
12
12
|
import { StepUpTheme, StepUpThemeOptions } from './StepUpTheme';
|
|
13
13
|
import { OpenAppPageTheme, OpenAppPageThemeOptions } from './OpenAppPageTheme';
|
|
14
|
-
import { UnlockAccountPageTheme, UnlockAccountPageThemeOptions } from './UnlockAccountPageTheme';
|
|
15
14
|
export * from './LoginBoxCommon';
|
|
16
15
|
export * from './LoginPageTheme';
|
|
17
16
|
export * from './SignupPageTheme';
|
|
18
|
-
export * from './UnlockAccountPageTheme';
|
|
19
17
|
export * from './CustomLoginComponents';
|
|
20
18
|
export * from './SocialLoginsTheme';
|
|
21
19
|
export * from './ForgotPasswordTheme';
|
|
@@ -38,7 +36,6 @@ export interface LoginBoxThemeOptions extends LoginBoxCommonThemeOptions {
|
|
|
38
36
|
poweredByColor?: Color;
|
|
39
37
|
acceptInvitation?: AcceptInvitationPageThemeOptions;
|
|
40
38
|
activateAccount?: ActivateAccountPageThemeOptions;
|
|
41
|
-
unlockAccount?: UnlockAccountPageThemeOptions;
|
|
42
39
|
forgotPassword?: ForgotPasswordPageThemeOptions;
|
|
43
40
|
resetPhoneNumber?: ResetPhoneNumberPageThemeOptions;
|
|
44
41
|
resetPassword?: ResetPasswordPageThemeOptions;
|
|
@@ -52,7 +49,6 @@ export interface LoginBoxTheme extends LoginBoxCommonTheme {
|
|
|
52
49
|
themeName: BasicThemeName | ThemeNameV2;
|
|
53
50
|
acceptInvitation: AcceptInvitationPageTheme;
|
|
54
51
|
activateAccount: ActivateAccountPageTheme;
|
|
55
|
-
unlockAccount: UnlockAccountPageTheme;
|
|
56
52
|
forgotPassword: ForgotPasswordPageTheme;
|
|
57
53
|
resetPhoneNumber: ResetPhoneNumberPageTheme;
|
|
58
54
|
resetPassword: ResetPasswordPageTheme;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './LoginBoxCommon';
|
|
2
2
|
export * from './LoginPageTheme';
|
|
3
3
|
export * from './SignupPageTheme';
|
|
4
|
-
export * from './UnlockAccountPageTheme';
|
|
5
4
|
export * from './CustomLoginComponents';
|
|
6
5
|
export * from './SocialLoginsTheme';
|
|
7
6
|
export * from './ForgotPasswordTheme';
|
|
@@ -16,8 +16,8 @@ export interface SocialLoginButton extends BaseThemeOptions {
|
|
|
16
16
|
background?: CSSProperties['background'];
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type SocialLoginTypes = 'google' | 'gitHub' | 'facebook' | 'microsoft' | 'slack' | 'apple' | 'linkedin';
|
|
20
|
+
export type SocialLogins = BaseThemeOptions & {
|
|
21
21
|
rowLayout?: boolean;
|
|
22
22
|
iconWidth?: string;
|
|
23
23
|
} & Record<SocialLoginTypes, SocialLoginButton>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, Color } from '../Common';
|
|
2
|
-
export
|
|
2
|
+
export type PaletteGrey = {
|
|
3
|
+
'50': Color;
|
|
3
4
|
'100': Color;
|
|
4
5
|
'150': Color;
|
|
5
6
|
'200': Color;
|
|
@@ -10,8 +11,8 @@ export declare type PaletteGrey = {
|
|
|
10
11
|
'700': Color;
|
|
11
12
|
'800': Color;
|
|
12
13
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
14
|
+
export type PaletteGreyOptions = Partial<PaletteGrey>;
|
|
15
|
+
export type CommonColors = {
|
|
15
16
|
black: Color;
|
|
16
17
|
white: Color;
|
|
17
18
|
cyanBlue: Color;
|
|
@@ -19,8 +20,8 @@ export declare type CommonColors = {
|
|
|
19
20
|
paleLightYellow: Color;
|
|
20
21
|
orange: Color;
|
|
21
22
|
};
|
|
22
|
-
export
|
|
23
|
-
export
|
|
23
|
+
export type CommonColorsOptions = Partial<CommonColors>;
|
|
24
|
+
export type PaletteColor = {
|
|
24
25
|
light: Color;
|
|
25
26
|
main: Color;
|
|
26
27
|
dark: Color;
|
|
@@ -28,26 +29,27 @@ export declare type PaletteColor = {
|
|
|
28
29
|
active: Color;
|
|
29
30
|
contrastText: Color;
|
|
30
31
|
};
|
|
31
|
-
export
|
|
32
|
+
export type PaletteColorOptions = Partial<PaletteColor>;
|
|
32
33
|
export interface PaletteSeverityColor extends Omit<PaletteColor, 'hover' | 'active'> {
|
|
33
34
|
border: CSSProperties['border'];
|
|
34
35
|
}
|
|
35
|
-
export
|
|
36
|
+
export type PaletteSeverityColorOptions = Partial<PaletteSeverityColor>;
|
|
36
37
|
export interface IconColor {
|
|
37
38
|
action: Color;
|
|
38
39
|
input: Color;
|
|
39
40
|
}
|
|
40
|
-
export
|
|
41
|
+
export type IconColorOptions = Partial<IconColor>;
|
|
41
42
|
export interface TypeText {
|
|
42
43
|
primary: Color;
|
|
43
44
|
secondary: Color;
|
|
44
45
|
disabled: Color;
|
|
45
46
|
}
|
|
46
|
-
export
|
|
47
|
+
export type TypeTextOptions = Partial<TypeText>;
|
|
47
48
|
export interface BackgroundStyle {
|
|
48
49
|
default: Color;
|
|
50
|
+
paper: Color;
|
|
49
51
|
}
|
|
50
|
-
export
|
|
52
|
+
export type BackgroundStyleOptions = Partial<BackgroundStyle>;
|
|
51
53
|
export interface ThemePaletteOptions {
|
|
52
54
|
default?: PaletteColorOptions;
|
|
53
55
|
primary?: PaletteColorOptions;
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Shadows = [
|
|
2
|
+
'none',
|
|
3
|
+
string,
|
|
4
|
+
string,
|
|
5
|
+
string,
|
|
6
|
+
string,
|
|
7
|
+
string,
|
|
8
|
+
string,
|
|
9
|
+
string,
|
|
10
|
+
string,
|
|
11
|
+
string,
|
|
12
|
+
string,
|
|
13
|
+
string,
|
|
14
|
+
string,
|
|
15
|
+
string,
|
|
16
|
+
string,
|
|
17
|
+
string,
|
|
18
|
+
string,
|
|
19
|
+
string,
|
|
20
|
+
string,
|
|
21
|
+
string,
|
|
22
|
+
string,
|
|
23
|
+
string,
|
|
24
|
+
string,
|
|
25
|
+
string,
|
|
26
|
+
string
|
|
27
|
+
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SpacingOptions = number | ((factor: number) => string | number) | ((factor: number | string) => string | number) | Array<string | number>;
|
|
2
2
|
export declare type SpacingArgument = number | string;
|
|
3
3
|
export interface Spacing {
|
|
4
4
|
(): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from '../Common';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type Variant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'button' | 'overline' | 'link' | 'label' | 'body1Bold' | 'body2Bold' | 'subtitle2Light' | 'pageTitle' | 'pageTitleSmall' | 'dialogTitle' | 'selectOption' | 'tableTitleCell' | 'tableSmallHeader' | 'tableStandardCell' | 'tableCountCell' | 'tableCategory' | 'uploadDropZoneDescription' | 'uploadDropZoneProgressText' | 'tablePlaceholderTitle' | 'switchLabel' | 'tableFilterTitle' | 'tablePlaceholderDescription' | 'tableIpCellText' | 'tableIpPopupTitle' | 'tableIpPopupDesc' | 'tableFilterChipInfo' | 'tablePopupTitle' | 'tableHeaderTitle';
|
|
3
|
+
export type FontStyle = {
|
|
4
4
|
fontFamily: CSSProperties['fontFamily'];
|
|
5
5
|
fontSize: number;
|
|
6
6
|
fontWeightLight: CSSProperties['fontWeight'];
|
|
@@ -9,5 +9,5 @@ export declare type FontStyle = {
|
|
|
9
9
|
fontWeightBold: CSSProperties['fontWeight'];
|
|
10
10
|
htmlFontSize: number;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type TypographyOptions = Partial<Record<Variant, CSSProperties>> & Partial<FontStyle>;
|
|
13
|
+
export type Typography = Record<Variant, CSSProperties> & FontStyle;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export type Hidden = 'hidden';
|
|
2
|
+
export type Edit = 'edit';
|
|
3
|
+
export type HiddenOrEdit = Hidden | Edit;
|
|
4
|
+
export type FieldAppearance = 'viewOnly' | HiddenOrEdit;
|
|
5
|
+
export type TabAppearance = HiddenOrEdit;
|
|
6
6
|
export interface FieldSettings {
|
|
7
7
|
validation?: {
|
|
8
8
|
required?: boolean;
|
|
@@ -101,7 +101,7 @@ export interface MapSecurityFieldToAppearance extends Record<keyof SecurityPageF
|
|
|
101
101
|
[IpRestrictionsTabFields.IpAddressRestrictions]: HiddenOrEdit;
|
|
102
102
|
[DomainRestrictionsTabFields.RestrictSignupByEmailDomain]: HiddenOrEdit;
|
|
103
103
|
}
|
|
104
|
-
export
|
|
104
|
+
export type SecurityPageFields = SessionManagementTabFields | GeneralSettingsTabFields | IpRestrictionsTabFields | DomainRestrictionsTabFields;
|
|
105
105
|
export declare enum AccountDetailsPageTabs {
|
|
106
106
|
Settings = "settings",
|
|
107
107
|
CustomLogin = "customLogin"
|
|
@@ -4,33 +4,33 @@ import { AccountPageFields, GeneralSettingsTabFields, InviteUserModalFields, IpR
|
|
|
4
4
|
interface ProfileProperties<K extends ProfilePageFields> {
|
|
5
5
|
appearance?: MapProfileFieldToAppearance[K];
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type ProfileFieldProperties = {
|
|
8
8
|
[K in ProfilePageFields]: ProfileProperties<K>;
|
|
9
9
|
};
|
|
10
10
|
interface AccountProperties<K extends AccountPageFields> {
|
|
11
11
|
appearance?: MapAccountFieldToAppearance[K];
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type AccountFieldProperties = {
|
|
14
14
|
[K in AccountPageFields]: AccountProperties<K>;
|
|
15
15
|
};
|
|
16
16
|
interface PrivacyProperties<K extends PrivacyPageFields> {
|
|
17
17
|
appearance?: MapPrivacyFieldToAppearance[K];
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type PrivacyFieldProperties = {
|
|
20
20
|
[K in PrivacyPageFields]: PrivacyProperties<K>;
|
|
21
21
|
};
|
|
22
22
|
interface SubscriptionsProperties<K extends SubscriptionsPageFields> {
|
|
23
23
|
appearance?: MapSubscriptionsFieldToAppearance[K];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type SubscriptionsFieldProperties = {
|
|
26
26
|
[K in SubscriptionsPageFields]: SubscriptionsProperties<K>;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type UsersTableColumnsAppearance = {
|
|
29
29
|
[K in UsersTableColumns]?: {
|
|
30
30
|
appearance: Hidden;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type UsersFieldProperties = {
|
|
34
34
|
tableColumns: {
|
|
35
35
|
[K in UsersTableColumns]: UsersTableColumnsAppearance[K];
|
|
36
36
|
};
|
|
@@ -39,69 +39,69 @@ interface InviteUserModalProperties<K extends InviteUserModalFields> {
|
|
|
39
39
|
appearance?: MapInviteUserFieldToAppearance[K];
|
|
40
40
|
settings?: MapInviteUserFieldToSettings[K];
|
|
41
41
|
}
|
|
42
|
-
export
|
|
42
|
+
export type InviteUserModalFieldProperties = {
|
|
43
43
|
[K in InviteUserModalFields]: InviteUserModalProperties<K>;
|
|
44
44
|
};
|
|
45
45
|
interface SessionManagementProperties<K extends SessionManagementTabFields> {
|
|
46
46
|
appearance?: MapSecurityFieldToAppearance[K];
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type SessionManagementFieldProperties = {
|
|
49
49
|
[K in SessionManagementTabFields]?: SessionManagementProperties<K>;
|
|
50
50
|
};
|
|
51
51
|
interface GeneralSettingsProperties<K extends GeneralSettingsTabFields> {
|
|
52
52
|
appearance?: MapSecurityFieldToAppearance[K];
|
|
53
53
|
}
|
|
54
|
-
export
|
|
54
|
+
export type GeneralSettingsFieldProperties = {
|
|
55
55
|
[K in GeneralSettingsTabFields]?: GeneralSettingsProperties<K>;
|
|
56
56
|
};
|
|
57
57
|
interface IpRestrictionsProperties<K extends IpRestrictionsTabFields> {
|
|
58
58
|
appearance?: MapSecurityFieldToAppearance[K];
|
|
59
59
|
}
|
|
60
|
-
export
|
|
60
|
+
export type IpRestrictionsFieldProperties = {
|
|
61
61
|
[K in IpRestrictionsTabFields]?: IpRestrictionsProperties<K>;
|
|
62
62
|
};
|
|
63
63
|
interface DomainRestrictionsProperties<K extends DomainRestrictionsTabFields> {
|
|
64
64
|
appearance?: MapSecurityFieldToAppearance[K];
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type DomainRestrictionsFieldProperties = {
|
|
67
67
|
[K in DomainRestrictionsTabFields]?: DomainRestrictionsProperties<K>;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
70
|
-
export
|
|
71
|
-
export
|
|
72
|
-
export
|
|
73
|
-
export
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
export
|
|
77
|
-
export
|
|
78
|
-
export
|
|
69
|
+
export type InviteUserModalFieldsProperties = Partial<InviteUserModalFieldProperties>;
|
|
70
|
+
export type ProfileFieldsProperties = Partial<ProfileFieldProperties>;
|
|
71
|
+
export type PrivacyFieldsProperties = Partial<PrivacyFieldProperties>;
|
|
72
|
+
export type AccountFieldsProperties = Partial<AccountFieldProperties>;
|
|
73
|
+
export type SessionManagementTabFieldsProperties = Partial<SessionManagementFieldProperties>;
|
|
74
|
+
export type DomainRestrictionsTabFieldsProperties = Partial<DomainRestrictionsFieldProperties>;
|
|
75
|
+
export type IpRestrictionsTabFieldsProperties = Partial<IpRestrictionsFieldProperties>;
|
|
76
|
+
export type GeneralSettingsTabFieldsProperties = Partial<GeneralSettingsFieldProperties>;
|
|
77
|
+
export type SubscriptionsFieldsProperties = Partial<SubscriptionsFieldProperties>;
|
|
78
|
+
export type UsersFieldsProperties = Partial<UsersFieldProperties>;
|
|
79
79
|
export interface TabProperties extends Omit<PageThemeOptions, 'header'> {
|
|
80
80
|
appearance?: TabAppearance;
|
|
81
81
|
}
|
|
82
|
-
export
|
|
82
|
+
export type SessionManagementTabProperties = TabProperties & {
|
|
83
83
|
fieldsProperties?: SessionManagementTabFieldsProperties;
|
|
84
84
|
};
|
|
85
|
-
export
|
|
85
|
+
export type DomainRestrictionsTabProperties = TabProperties & {
|
|
86
86
|
fieldsProperties?: DomainRestrictionsTabFieldsProperties;
|
|
87
87
|
titleContainer?: ExtendedCSSProperties;
|
|
88
88
|
allowToggleButton?: ExtendedCSSProperties;
|
|
89
89
|
denyToggleButton?: ExtendedCSSProperties;
|
|
90
90
|
};
|
|
91
|
-
export
|
|
91
|
+
export type IpRestrictionsTabProperties = TabProperties & {
|
|
92
92
|
fieldsProperties?: IpRestrictionsTabFieldsProperties;
|
|
93
93
|
titleContainer?: ExtendedCSSProperties;
|
|
94
94
|
allowToggleButton?: ExtendedCSSProperties;
|
|
95
95
|
denyToggleButton?: ExtendedCSSProperties;
|
|
96
96
|
};
|
|
97
|
-
export
|
|
97
|
+
export type GeneralSettingsTabProperties = TabProperties & {
|
|
98
98
|
fieldsProperties?: GeneralSettingsFieldProperties;
|
|
99
99
|
};
|
|
100
|
-
export
|
|
100
|
+
export type SecurityTabsProperties = {
|
|
101
101
|
generalSettings?: GeneralSettingsTabProperties;
|
|
102
102
|
sessionManagement?: SessionManagementTabProperties;
|
|
103
103
|
ipRestrictions?: IpRestrictionsTabProperties;
|
|
104
104
|
domainRestrictions?: DomainRestrictionsTabProperties;
|
|
105
105
|
};
|
|
106
|
-
export
|
|
106
|
+
export type TabsAndFieldsProperties = Partial<ProfileFieldProperties> | Partial<SessionManagementFieldProperties> | Partial<DomainRestrictionsFieldProperties> | Partial<IpRestrictionsFieldProperties> | GeneralSettingsFieldProperties | SecurityTabsProperties | Partial<PrivacyFieldProperties> | Partial<AccountFieldProperties> | Partial<InviteUserModalFieldProperties> | Partial<SubscriptionsFieldsProperties> | Partial<UsersFieldsProperties['tableColumns']>;
|
|
107
107
|
export {};
|
package/ThemeOptions/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export * from './fieldsAppearanceConsts';
|
|
|
16
16
|
export * from './fieldsAppearanceTypes';
|
|
17
17
|
export * from './AdminPortalThemeOptions';
|
|
18
18
|
export type { Breakpoints };
|
|
19
|
-
export
|
|
19
|
+
export type Direction = 'ltr' | 'rtl';
|
|
20
20
|
export interface FronteggThemeOptions {
|
|
21
21
|
palette?: ThemePaletteOptions;
|
|
22
22
|
typographyStyleOptions?: CSSProperties;
|
|
@@ -45,9 +45,9 @@ export interface FronteggTheme {
|
|
|
45
45
|
adminPortal: AdminPortalTheme;
|
|
46
46
|
loginBox: LoginBoxTheme;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
49
|
-
export
|
|
48
|
+
export type BaseThemeOptions = Omit<FronteggThemeOptions, 'adminPortal' | 'loginBox'>;
|
|
49
|
+
export type BaseTheme = Omit<FronteggTheme, 'adminPortal' | 'loginBox'>;
|
|
50
50
|
export declare const fieldAppearance: Record<string, FieldAppearance>;
|
|
51
51
|
export declare const tabAppearance: Record<string, TabAppearance>;
|
|
52
|
-
export
|
|
53
|
-
export
|
|
52
|
+
export type BasicThemeName = 'classic' | 'modern' | 'vivid' | 'dark';
|
|
53
|
+
export type ThemeNameV2 = 'modernV2' | 'darkV2' | 'classicV2' | 'vividV2';
|
package/index.js
CHANGED
|
@@ -145,15 +145,4 @@ Object.keys(_openApp).forEach(function (key) {
|
|
|
145
145
|
return _openApp[key];
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
});
|
|
149
|
-
var _unlockAccount = require("./unlockAccount");
|
|
150
|
-
Object.keys(_unlockAccount).forEach(function (key) {
|
|
151
|
-
if (key === "default" || key === "__esModule") return;
|
|
152
|
-
if (key in exports && exports[key] === _unlockAccount[key]) return;
|
|
153
|
-
Object.defineProperty(exports, key, {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () {
|
|
156
|
-
return _unlockAccount[key];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
148
|
});
|
|
@@ -36,17 +36,6 @@ Object.keys(_SignupPageTheme).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
var _UnlockAccountPageTheme = require("./UnlockAccountPageTheme");
|
|
40
|
-
Object.keys(_UnlockAccountPageTheme).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _UnlockAccountPageTheme[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _UnlockAccountPageTheme[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
39
|
var _CustomLoginComponents = require("./CustomLoginComponents");
|
|
51
40
|
Object.keys(_CustomLoginComponents).forEach(function (key) {
|
|
52
41
|
if (key === "default" || key === "__esModule") return;
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "7.2.0
|
|
3
|
+
"version": "7.2.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": "7.2.0
|
|
9
|
+
"@frontegg/redux-store": "7.2.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface UnlockAccountLocalization {
|
|
2
|
-
/**
|
|
3
|
-
* strings in unlock account page
|
|
4
|
-
*/
|
|
5
|
-
unlockAccount: {
|
|
6
|
-
/**
|
|
7
|
-
* Title to be displayed if unlock account failed
|
|
8
|
-
*/
|
|
9
|
-
failedTitle: string;
|
|
10
|
-
/**
|
|
11
|
-
* Description message to be displayed if unlock account failed
|
|
12
|
-
*/
|
|
13
|
-
failedMessage: string;
|
|
14
|
-
/**
|
|
15
|
-
* Button text to navigate back to login page
|
|
16
|
-
*/
|
|
17
|
-
failedBackToLoginButton: string;
|
|
18
|
-
/**
|
|
19
|
-
* Title to be displayed if unlock account succeeded
|
|
20
|
-
*/
|
|
21
|
-
successTitle: string;
|
|
22
|
-
/**
|
|
23
|
-
* Description message to be displayed if unlock account succeeded
|
|
24
|
-
*/
|
|
25
|
-
successMessage: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
|
|
2
|
-
import { ExtendedCSSProperties } from '../../Common';
|
|
3
|
-
interface UnlockAccountComponentsTheme {
|
|
4
|
-
/**
|
|
5
|
-
* Unlock account page container style
|
|
6
|
-
*/
|
|
7
|
-
containerStyle?: ExtendedCSSProperties;
|
|
8
|
-
}
|
|
9
|
-
export interface UnlockAccountPageThemeOptions extends LoginBoxCommonThemeOptions, UnlockAccountComponentsTheme {
|
|
10
|
-
}
|
|
11
|
-
export interface UnlockAccountPageTheme extends LoginBoxCommonTheme, UnlockAccountComponentsTheme {
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|