@frontegg/types 6.0.1-alpha.6 → 6.0.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Localizations/AdminPortalLocalizations/allUsers.d.ts +4 -0
- package/Localizations/AdminPortalLocalizations/privacy.d.ts +46 -0
- package/Localizations/AdminPortalLocalizations/security.d.ts +94 -0
- package/Localizations/AdminPortalLocalizations/users.d.ts +4 -0
- package/Localizations/LoginBoxLocalization/login.d.ts +45 -4
- package/Localizations/LoginBoxLocalization/socialLogins.d.ts +33 -0
- package/ThemeOptions/AdminPortalThemeOptions.d.ts +0 -14
- package/ThemeOptions/AdminPortalThemeOptions.js +1 -16
- package/ThemeOptions/ComponentsOptions.d.ts +5 -8
- package/ThemeOptions/ComponentsOptions.js +0 -1
- package/ThemeOptions/LoginBoxTheme/LoginBoxCommon.d.ts +23 -3
- package/ThemeOptions/LoginBoxTheme/LoginPageTheme.d.ts +24 -0
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +5 -0
- package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.d.ts +1 -0
- package/ThemeOptions/LoginBoxTheme/index.d.ts +2 -1
- package/index.js +1 -1
- package/node/ThemeOptions/AdminPortalThemeOptions.js +1 -19
- package/node/ThemeOptions/ComponentsOptions.js +1 -2
- package/node/index.js +1 -1
- package/package.json +3 -2
|
@@ -63,6 +63,10 @@ export interface AllUsersLocalization {
|
|
|
63
63
|
* Table row action for resending activation email to specific user
|
|
64
64
|
*/
|
|
65
65
|
resendActivationAction: string;
|
|
66
|
+
/**
|
|
67
|
+
* Table row action for log out all specific user sessions
|
|
68
|
+
*/
|
|
69
|
+
logOutUserSessionsActions: string;
|
|
66
70
|
/**
|
|
67
71
|
* Table row action display on logged in user row to leave the active tenant
|
|
68
72
|
*/
|
|
@@ -179,4 +179,50 @@ export interface PrivacyLocalization {
|
|
|
179
179
|
*/
|
|
180
180
|
close: string;
|
|
181
181
|
};
|
|
182
|
+
privacy_UserSessions: {
|
|
183
|
+
/**
|
|
184
|
+
* Login sessions table header text
|
|
185
|
+
*/
|
|
186
|
+
loginSessionsTitle: string;
|
|
187
|
+
/**
|
|
188
|
+
* Table column text to be display as 'Device' header
|
|
189
|
+
*/
|
|
190
|
+
deviceHeader: string;
|
|
191
|
+
/**
|
|
192
|
+
* Table column text to be display as 'Location' header
|
|
193
|
+
*/
|
|
194
|
+
locationHeader: string;
|
|
195
|
+
/**
|
|
196
|
+
* Table column text to be display as 'IP Address' header
|
|
197
|
+
*/
|
|
198
|
+
ipAddressHeader: string;
|
|
199
|
+
/**
|
|
200
|
+
* Table column text to be display as 'Time' header
|
|
201
|
+
*/
|
|
202
|
+
timeHeader: string;
|
|
203
|
+
/**
|
|
204
|
+
* Table current session chip
|
|
205
|
+
*/
|
|
206
|
+
currentSessionChip: string;
|
|
207
|
+
/**
|
|
208
|
+
* Table logout column action text
|
|
209
|
+
*/
|
|
210
|
+
logout: string;
|
|
211
|
+
/**
|
|
212
|
+
* Table logout all button text
|
|
213
|
+
*/
|
|
214
|
+
logoutAllButtonText: string;
|
|
215
|
+
/**
|
|
216
|
+
* Logout all dialog title
|
|
217
|
+
*/
|
|
218
|
+
logoutAllDialogTitle: string;
|
|
219
|
+
/**
|
|
220
|
+
* Logout all dialog text
|
|
221
|
+
*/
|
|
222
|
+
logoutAllDialogText: string;
|
|
223
|
+
/**
|
|
224
|
+
* Logout all accept button text
|
|
225
|
+
*/
|
|
226
|
+
logoutAllDialogAcceptButton: string;
|
|
227
|
+
};
|
|
182
228
|
}
|
|
@@ -179,4 +179,98 @@ export interface SecurityLocalization {
|
|
|
179
179
|
*/
|
|
180
180
|
save: string;
|
|
181
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* Session management policy section
|
|
184
|
+
*/
|
|
185
|
+
security_SessionManagement: {
|
|
186
|
+
/**
|
|
187
|
+
* Session management section title
|
|
188
|
+
*/
|
|
189
|
+
sectionTitle: string;
|
|
190
|
+
/**
|
|
191
|
+
* Idle session timeout item title
|
|
192
|
+
*/
|
|
193
|
+
idleSessionTimeoutTitle: string;
|
|
194
|
+
/**
|
|
195
|
+
* Idle session timeout item description
|
|
196
|
+
*/
|
|
197
|
+
idleSessionTimeoutDescription: string;
|
|
198
|
+
/**
|
|
199
|
+
* Idle session timeout form error
|
|
200
|
+
*/
|
|
201
|
+
idleSessionTimeoutErrorMessage: string;
|
|
202
|
+
/**
|
|
203
|
+
* Session timeout item title
|
|
204
|
+
*/
|
|
205
|
+
sessionTimeoutTitle: string;
|
|
206
|
+
/**
|
|
207
|
+
* Session timeout item description
|
|
208
|
+
*/
|
|
209
|
+
sessionTimeoutDescription: string;
|
|
210
|
+
/**
|
|
211
|
+
* Session timeout form error
|
|
212
|
+
*/
|
|
213
|
+
sessionTimeoutErrorMessage: string;
|
|
214
|
+
/**
|
|
215
|
+
* Concurrent sessions item title
|
|
216
|
+
*/
|
|
217
|
+
concurrentSessionsTitle: string;
|
|
218
|
+
/**
|
|
219
|
+
* Concurrent sessions item description
|
|
220
|
+
*/
|
|
221
|
+
concurrentSessionsDescription: string;
|
|
222
|
+
/**
|
|
223
|
+
* Concurrent sessions timeout form error
|
|
224
|
+
*/
|
|
225
|
+
concurrentSessionsTimeoutErrorMessage: string;
|
|
226
|
+
/**
|
|
227
|
+
* Settings `day` option
|
|
228
|
+
*/
|
|
229
|
+
day: string;
|
|
230
|
+
/**
|
|
231
|
+
* Settings `days` option
|
|
232
|
+
*/
|
|
233
|
+
days: string;
|
|
234
|
+
/**
|
|
235
|
+
* Settings `hour` option
|
|
236
|
+
*/
|
|
237
|
+
hour: string;
|
|
238
|
+
/**
|
|
239
|
+
* Settings `hours` option
|
|
240
|
+
*/
|
|
241
|
+
hours: string;
|
|
242
|
+
/**
|
|
243
|
+
* Settings `minutes` option
|
|
244
|
+
*/
|
|
245
|
+
minute: string;
|
|
246
|
+
/**
|
|
247
|
+
* Settings `minutes` option
|
|
248
|
+
*/
|
|
249
|
+
minutes: string;
|
|
250
|
+
/**
|
|
251
|
+
* Save button text
|
|
252
|
+
*/
|
|
253
|
+
saveButton: string;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Apply session management policies dialog
|
|
257
|
+
*/
|
|
258
|
+
security_SessionManagementDialog: {
|
|
259
|
+
/**
|
|
260
|
+
* Dialog title
|
|
261
|
+
*/
|
|
262
|
+
title: string;
|
|
263
|
+
/**
|
|
264
|
+
* Dialog description
|
|
265
|
+
*/
|
|
266
|
+
description: string;
|
|
267
|
+
/**
|
|
268
|
+
* Confirm button
|
|
269
|
+
*/
|
|
270
|
+
confirm: string;
|
|
271
|
+
/**
|
|
272
|
+
* Cancel button
|
|
273
|
+
*/
|
|
274
|
+
cancel: string;
|
|
275
|
+
};
|
|
182
276
|
}
|
|
@@ -63,6 +63,10 @@ export interface UsersLocalization {
|
|
|
63
63
|
* Table row action for resending activation email to specific user
|
|
64
64
|
*/
|
|
65
65
|
resendActivationAction: string;
|
|
66
|
+
/**
|
|
67
|
+
* Table row action for log out all specific user sessions
|
|
68
|
+
*/
|
|
69
|
+
logOutUserSessionsActions: string;
|
|
66
70
|
/**
|
|
67
71
|
* Table row action display on logged in user row to leave the active tenant
|
|
68
72
|
*/
|
|
@@ -98,10 +98,16 @@ export interface LoginLocalization {
|
|
|
98
98
|
*/
|
|
99
99
|
twoFactorCodeLengthAtLeast8: string;
|
|
100
100
|
/**
|
|
101
|
-
* text
|
|
102
|
-
*
|
|
101
|
+
* text to display number of days to remember a device
|
|
102
|
+
* will be used ONLY if there are less than 365 days left
|
|
103
|
+
* EX: "for {{count}} day"
|
|
103
104
|
*/
|
|
104
105
|
mfaRememberThisDevice: string;
|
|
106
|
+
/**
|
|
107
|
+
* text of remember device CheckBox If MFA is enabled
|
|
108
|
+
* EX: "Don't ask again on this device"
|
|
109
|
+
*/
|
|
110
|
+
mfaRememberLongerThenYear: string;
|
|
105
111
|
/**
|
|
106
112
|
* Disable MFA title in MFA section if it's enabled
|
|
107
113
|
*/
|
|
@@ -261,10 +267,15 @@ export interface LoginLocalization {
|
|
|
261
267
|
*/
|
|
262
268
|
forceMfaVerifyButton: string;
|
|
263
269
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
270
|
+
* text to display number of days to remember a device
|
|
271
|
+
* will be used ONLY if there are less than 365 days left
|
|
272
|
+
* EX: "for {{count}} day"
|
|
266
273
|
*/
|
|
267
274
|
forceMfaRememberThisDevice: string;
|
|
275
|
+
/**
|
|
276
|
+
* Force MFA section Page remember device checkbox
|
|
277
|
+
*/
|
|
278
|
+
forceMfaRememberLongerThenYear: string;
|
|
268
279
|
/**
|
|
269
280
|
* Localizations for split login components
|
|
270
281
|
*/
|
|
@@ -303,5 +314,35 @@ export interface LoginLocalization {
|
|
|
303
314
|
* this text is optional
|
|
304
315
|
*/
|
|
305
316
|
termsAndPrivacyConjunctionText: string;
|
|
317
|
+
oneTouchLoginTitle: string;
|
|
318
|
+
oneTouchLoginMessage: string;
|
|
319
|
+
oneTouchLoginButton: string;
|
|
320
|
+
touchId: string;
|
|
321
|
+
androidLoginTitle: string;
|
|
322
|
+
androidLoginMessage: string;
|
|
323
|
+
androidLoginButton: string;
|
|
324
|
+
android: string;
|
|
325
|
+
usbLoginTitle: string;
|
|
326
|
+
usbLoginMessage: string;
|
|
327
|
+
usbLoginButton: string;
|
|
328
|
+
usb: string;
|
|
329
|
+
smsLoginTitle: string;
|
|
330
|
+
smsLoginMessage: string;
|
|
331
|
+
smsLoginButton: string;
|
|
332
|
+
sms: string;
|
|
333
|
+
smsLoginChangePhoneTitle: string;
|
|
334
|
+
smsLoginChangePhoneMessage: string;
|
|
335
|
+
smsLoginChangePhoneInputLabel: string;
|
|
336
|
+
smsLoginChangePhoneButton: string;
|
|
337
|
+
smsLoginPinTitle: string;
|
|
338
|
+
smsLoginPinMessage: string;
|
|
339
|
+
smsLoginPinButton: string;
|
|
340
|
+
loginWelcomeTitle: string;
|
|
341
|
+
loginWelcomeSubtitleSubtitle: string;
|
|
342
|
+
loginWelcomeKnownUserSubtitle: string;
|
|
343
|
+
registerNewQuickLoginTitle: string;
|
|
344
|
+
registerNewQuickLoginSubtitle: string;
|
|
345
|
+
phoneIsRequired: string;
|
|
346
|
+
phoneIsInvalid: string;
|
|
306
347
|
};
|
|
307
348
|
}
|
|
@@ -4,16 +4,49 @@ export interface SocialLoginsLocalization {
|
|
|
4
4
|
*/
|
|
5
5
|
socialLogins: {
|
|
6
6
|
/**
|
|
7
|
+
* Text to be display in socialLogin buttons prior to the provider name, if rendering inside login section and being set to the main social button
|
|
8
|
+
* Example: 'Continue with'
|
|
9
|
+
*/
|
|
10
|
+
socialloginMainButtonTextPrefix: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text to be display in socialLogin buttons prior to the provider name, if rendering inside login section when there is no main button set
|
|
13
|
+
* Example: 'Login with'
|
|
14
|
+
*/
|
|
15
|
+
socialloginButtonTextPrefix: string;
|
|
16
|
+
/**
|
|
17
|
+
* Text to be display in socialLogin buttons prior to the provider name, if rendering inside sign up section and being set to the main social button
|
|
18
|
+
* Example: 'Sign up with'
|
|
19
|
+
*/
|
|
20
|
+
socialsignUpMainButtonTextPrefix: string;
|
|
21
|
+
/**
|
|
22
|
+
* Text to be display in socialLogin buttons prior to the provider name, if rendering inside signup section when there is no main button set
|
|
23
|
+
* Example: 'Sign up with'
|
|
24
|
+
*/
|
|
25
|
+
socialsignUpButtonTextPrefix: string;
|
|
26
|
+
/**
|
|
27
|
+
* Text to be display in socialLogin buttons prior to the provider name, if rendering inside activate account section and being set to the main social button
|
|
28
|
+
* Example: 'Activate account with {{providerName}}'
|
|
29
|
+
*/
|
|
30
|
+
socialactivationMainButtonTextPrefix: string;
|
|
31
|
+
/**
|
|
32
|
+
* Text to be display in socialLogin buttons prior to the provider name, if rendering inside activate account section when there is no main button set
|
|
33
|
+
* Example: 'Activate with'
|
|
34
|
+
*/
|
|
35
|
+
socialactivationButtonTextPrefix: string;
|
|
36
|
+
/**
|
|
37
|
+
* Deprecated
|
|
7
38
|
* Text to be display in socialLogin buttons if rendering inside login section
|
|
8
39
|
* Ex: 'Continue with {{providerName}}'
|
|
9
40
|
*/
|
|
10
41
|
loginButtonText: string;
|
|
11
42
|
/**
|
|
43
|
+
* Deprecated
|
|
12
44
|
* Text to be display in socialLogin buttons if rendering inside signup section
|
|
13
45
|
* Ex: 'Login with {{providerName}}'
|
|
14
46
|
*/
|
|
15
47
|
signupButtonText: string;
|
|
16
48
|
/**
|
|
49
|
+
* Deprecated
|
|
17
50
|
* Text to be display in socialLogin buttons if rendering inside activation section
|
|
18
51
|
* Ex: 'Sign up with {{providerName}}'
|
|
19
52
|
*/
|
|
@@ -28,20 +28,6 @@ export interface RightPanelThemeOptions {
|
|
|
28
28
|
tableHeaderBackground: Color;
|
|
29
29
|
tableBodyBackground: Color;
|
|
30
30
|
}
|
|
31
|
-
export declare const enum AdminPortalPages {
|
|
32
|
-
Profile = "profile",
|
|
33
|
-
Privacy = "privacy",
|
|
34
|
-
PersonalTokens = "personalTokens",
|
|
35
|
-
AccountDetails = "accountDetails",
|
|
36
|
-
Users = "users",
|
|
37
|
-
Security = "security",
|
|
38
|
-
Sso = "sso",
|
|
39
|
-
AuditLogs = "auditLogs",
|
|
40
|
-
Webhooks = "webhooks",
|
|
41
|
-
ApiTokens = "apiTokens",
|
|
42
|
-
Roles = "roles",
|
|
43
|
-
Subscription = "subscription"
|
|
44
|
-
}
|
|
45
31
|
export interface PageThemeOptions extends BaseThemeOptions {
|
|
46
32
|
header?: ExtendedCSSProperties;
|
|
47
33
|
content?: ExtendedCSSProperties;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
(function (AdminPortalPages) {
|
|
4
|
-
AdminPortalPages["Profile"] = "profile";
|
|
5
|
-
AdminPortalPages["Privacy"] = "privacy";
|
|
6
|
-
AdminPortalPages["PersonalTokens"] = "personalTokens";
|
|
7
|
-
AdminPortalPages["AccountDetails"] = "accountDetails";
|
|
8
|
-
AdminPortalPages["Users"] = "users";
|
|
9
|
-
AdminPortalPages["Security"] = "security";
|
|
10
|
-
AdminPortalPages["Sso"] = "sso";
|
|
11
|
-
AdminPortalPages["AuditLogs"] = "auditLogs";
|
|
12
|
-
AdminPortalPages["Webhooks"] = "webhooks";
|
|
13
|
-
AdminPortalPages["ApiTokens"] = "apiTokens";
|
|
14
|
-
AdminPortalPages["Roles"] = "roles";
|
|
15
|
-
AdminPortalPages["Subscription"] = "subscription";
|
|
16
|
-
})(AdminPortalPages || (AdminPortalPages = {}));
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { CSSProperties, ExtendedCSSProperties } from '../Common';
|
|
2
2
|
export declare type CustomComponent<T = {}> = null | string | ((props: T) => string | any);
|
|
3
|
-
export interface ITestimonial {
|
|
4
|
-
image: string;
|
|
5
|
-
}
|
|
6
3
|
export interface ITestimonialComponent {
|
|
7
|
-
testimonial1:
|
|
8
|
-
testimonial2?:
|
|
9
|
-
testimonial3?:
|
|
10
|
-
testimonial4?:
|
|
11
|
-
testimonial5?:
|
|
4
|
+
testimonial1: string;
|
|
5
|
+
testimonial2?: string;
|
|
6
|
+
testimonial3?: string;
|
|
7
|
+
testimonial4?: string;
|
|
8
|
+
testimonial5?: string;
|
|
12
9
|
}
|
|
13
10
|
export interface ILogosComponent {
|
|
14
11
|
layout?: 'horizontal' | 'vertical';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtendedCSSProperties } from '../../Common';
|
|
1
|
+
import { Color, ExtendedCSSProperties } from '../../Common';
|
|
2
2
|
import { BaseTheme, BaseThemeOptions, SocialLoginsThemeOptions } from '../index';
|
|
3
3
|
import { SideElement, ButtonThemeOptions, CustomComponent, InputThemeOptions, ILogosComponent, ITestimonialComponent } from '../ComponentsOptions';
|
|
4
4
|
/**
|
|
@@ -33,6 +33,11 @@ interface LogoComponent {
|
|
|
33
33
|
*/
|
|
34
34
|
style?: ExtendedCSSProperties;
|
|
35
35
|
}
|
|
36
|
+
export interface PhoneNumberOptions {
|
|
37
|
+
dropdownStyle?: ExtendedCSSProperties;
|
|
38
|
+
dropdownItemStyle?: ExtendedCSSProperties;
|
|
39
|
+
selectArrowStyle?: ExtendedCSSProperties;
|
|
40
|
+
}
|
|
36
41
|
export interface LayoutOptions {
|
|
37
42
|
/**
|
|
38
43
|
* Layout type for login box page, Default is Center login box elements
|
|
@@ -40,12 +45,12 @@ export interface LayoutOptions {
|
|
|
40
45
|
* side, floating right will display login box at the right element
|
|
41
46
|
* with default width equal to 50% of the window width
|
|
42
47
|
*/
|
|
43
|
-
type
|
|
48
|
+
type?: 'float-right' | 'center' | 'float-left';
|
|
44
49
|
/**
|
|
45
50
|
* splitSize is for the side element to setup how much % of the window side elements wi'll take
|
|
46
51
|
* default is 50 = 50%;
|
|
47
52
|
*/
|
|
48
|
-
splitSize
|
|
53
|
+
splitSize?: number;
|
|
49
54
|
/**
|
|
50
55
|
* Will be displayed if type is 'float-right' or 'float-left',
|
|
51
56
|
* Accepts:
|
|
@@ -89,6 +94,7 @@ export interface LayoutOptions {
|
|
|
89
94
|
testimonialsTitleStyle?: ExtendedCSSProperties;
|
|
90
95
|
testtomonialsSubtitleStyle?: ExtendedCSSProperties;
|
|
91
96
|
testimonialsTextStyle?: ExtendedCSSProperties;
|
|
97
|
+
testimonialsQuotesStyle?: ExtendedCSSProperties;
|
|
92
98
|
testimonialsIndicatorStyle?: ExtendedCSSProperties;
|
|
93
99
|
testimonialsActiveIndicatorStyle?: ExtendedCSSProperties;
|
|
94
100
|
testimonialsIndicatorContainerStyle?: ExtendedCSSProperties;
|
|
@@ -135,6 +141,10 @@ interface LoginBoxOptionalCommon {
|
|
|
135
141
|
* page = displayed at the bottom of the page
|
|
136
142
|
*/
|
|
137
143
|
poweredByPlacement?: 'box' | 'page' | 'leftBottomCorner';
|
|
144
|
+
/**
|
|
145
|
+
* Powered by frontegg color
|
|
146
|
+
*/
|
|
147
|
+
poweredByColor?: Color;
|
|
138
148
|
/**
|
|
139
149
|
* BoxElement
|
|
140
150
|
* It is a Card component placed inside the [WrapperElement]{@link pageStyle}
|
|
@@ -167,6 +177,11 @@ interface LoginBoxOptionalCommon {
|
|
|
167
177
|
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
168
178
|
*/
|
|
169
179
|
boxFooter?: CustomComponent;
|
|
180
|
+
/**
|
|
181
|
+
* Option to customize phone number select by providing
|
|
182
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
183
|
+
*/
|
|
184
|
+
phoneNumberSelect?: PhoneNumberOptions;
|
|
170
185
|
/**
|
|
171
186
|
* Option to customize login box inputs by providing
|
|
172
187
|
* css style for every state (base, hover, focus, disabled, etc...)
|
|
@@ -192,6 +207,11 @@ interface LoginBoxOptionalCommon {
|
|
|
192
207
|
* layous options for every button and element
|
|
193
208
|
*/
|
|
194
209
|
socialLogins?: SocialLoginsThemeOptions;
|
|
210
|
+
/**
|
|
211
|
+
* Option to customize login box back to login button by providing
|
|
212
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
213
|
+
*/
|
|
214
|
+
backToLoginStyle?: ExtendedCSSProperties;
|
|
195
215
|
}
|
|
196
216
|
export interface LoginBoxCommonTheme extends BaseTheme, LoginBoxOptionalCommon {
|
|
197
217
|
/**
|
|
@@ -20,6 +20,7 @@ export interface ResendOTCProps {
|
|
|
20
20
|
export interface LoginDisclaimerOptions {
|
|
21
21
|
textStyle: ExtendedCSSProperties;
|
|
22
22
|
disclaimerContainerStyle?: ExtendedCSSProperties;
|
|
23
|
+
placement?: 'box' | 'page';
|
|
23
24
|
terms: {
|
|
24
25
|
enabled?: boolean;
|
|
25
26
|
linkStyle?: ExtendedCSSProperties;
|
|
@@ -34,6 +35,12 @@ export interface LoginPageComponentsTheme {
|
|
|
34
35
|
* Login page container style
|
|
35
36
|
*/
|
|
36
37
|
containerStyle?: ExtendedCSSProperties;
|
|
38
|
+
carouselArrowsContainerStyle?: ExtendedCSSProperties;
|
|
39
|
+
carouselArrowsStyle?: ExtendedCSSProperties;
|
|
40
|
+
pageTitleStyle?: ExtendedCSSProperties;
|
|
41
|
+
pageSubtitleStyle?: ExtendedCSSProperties;
|
|
42
|
+
carouselIndicatorStyle?: ExtendedCSSProperties;
|
|
43
|
+
carouselActiveIndicatorStyle?: ExtendedCSSProperties;
|
|
37
44
|
/**
|
|
38
45
|
* Login page form container style
|
|
39
46
|
*/
|
|
@@ -103,6 +110,18 @@ export interface LoginPageComponentsTheme {
|
|
|
103
110
|
* default is 'Haven’t received it?'
|
|
104
111
|
*/
|
|
105
112
|
resendOTCMessageStyle?: ExtendedCSSProperties;
|
|
113
|
+
touchIdTitle?: CustomComponent<TitleProps>;
|
|
114
|
+
touchIdMessage?: CustomComponent<MessageProps>;
|
|
115
|
+
androidTitle?: CustomComponent<TitleProps>;
|
|
116
|
+
androidMessage?: CustomComponent<MessageProps>;
|
|
117
|
+
usbKeyTitle?: CustomComponent<TitleProps>;
|
|
118
|
+
usbKeyMessage?: CustomComponent<MessageProps>;
|
|
119
|
+
smsPreviewTitle?: CustomComponent<TitleProps>;
|
|
120
|
+
smsPreviewMessage?: CustomComponent<MessageProps>;
|
|
121
|
+
smsChangePhoneTitle?: CustomComponent<TitleProps>;
|
|
122
|
+
smsChangePhoneMessage?: CustomComponent<MessageProps>;
|
|
123
|
+
smsVerifyCodeTitle?: CustomComponent<TitleProps>;
|
|
124
|
+
smsVerifyCodeMessage?: CustomComponent<MessageProps>;
|
|
106
125
|
/**
|
|
107
126
|
* MagicLink success login title default is 'Check your email'
|
|
108
127
|
* displayed after pre-login if MagicLink enabled
|
|
@@ -128,6 +147,11 @@ export interface LoginPageComponentsTheme {
|
|
|
128
147
|
* on login page can be displayed as text info only
|
|
129
148
|
*/
|
|
130
149
|
disclaimer?: LoginDisclaimerOptions;
|
|
150
|
+
touchIdCardIcon?: CustomComponent<{}>;
|
|
151
|
+
androidCardIcon?: CustomComponent<{}>;
|
|
152
|
+
smsCardIcon?: CustomComponent<{}>;
|
|
153
|
+
usbKeyCardIcon?: CustomComponent<{}>;
|
|
154
|
+
loginCardIcon?: CustomComponent<{}>;
|
|
131
155
|
}
|
|
132
156
|
export interface LoginPageThemeOptions extends LoginBoxCommonThemeOptions, LoginPageComponentsTheme {
|
|
133
157
|
}
|
|
@@ -12,6 +12,7 @@ export interface GoToLoginMessageProps {
|
|
|
12
12
|
export interface SignUpDisclaimerOptions {
|
|
13
13
|
hasCheckbox: boolean;
|
|
14
14
|
disclaimerContainerStyle?: ExtendedCSSProperties;
|
|
15
|
+
placement?: 'page' | 'box';
|
|
15
16
|
textStyle?: ExtendedCSSProperties;
|
|
16
17
|
checkBoxStyle?: {
|
|
17
18
|
unchecked?: {
|
|
@@ -87,6 +88,10 @@ export interface SignupPageComponentsTheme {
|
|
|
87
88
|
*/
|
|
88
89
|
disclaimer?: SignUpDisclaimerOptions;
|
|
89
90
|
loginMessagePlacement?: 'box' | 'page';
|
|
91
|
+
/**
|
|
92
|
+
* use this flag if you want to hide the sign up form and use only SSO or social sign ups
|
|
93
|
+
*/
|
|
94
|
+
hideSignUpForm?: boolean;
|
|
90
95
|
}
|
|
91
96
|
export interface SignupPageThemeOptions extends LoginBoxCommonThemeOptions, SignupPageComponentsTheme {
|
|
92
97
|
}
|
|
@@ -15,6 +15,7 @@ export interface SocialLoginsLayoutBase {
|
|
|
15
15
|
stackedContainerStyle?: ExtendedCSSProperties;
|
|
16
16
|
stackedButtonsStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
17
17
|
mainButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
18
|
+
showStackedButtonsWithText?: boolean;
|
|
18
19
|
}
|
|
19
20
|
declare type SocialLoginTypes = 'google' | 'facebook' | 'microsoft' | 'github';
|
|
20
21
|
export interface SocialLoginsLayoutStacked extends SocialLoginsLayoutBase {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AcceptInvitationPageTheme, AcceptInvitationPageThemeOptions } from './AcceptInvitationTheme';
|
|
2
2
|
import { ActivateAccountPageTheme, ActivateAccountPageThemeOptions } from './ActivateAccountPageTheme';
|
|
3
3
|
import { BaseThemeOptions, LoginBoxCommonTheme, LoginBoxCommonThemeOptions, SignupPageThemeOptions, SocialLoginsTheme } from '../index';
|
|
4
|
-
import { CSSProperties, ExtendedCSSProperties } from '../../Common';
|
|
4
|
+
import { Color, CSSProperties, ExtendedCSSProperties } from '../../Common';
|
|
5
5
|
import { AuthPageCustomComponents } from '../../CustomComponents';
|
|
6
6
|
import { ForgotPasswordPageTheme, ForgotPasswordPageThemeOptions } from './ForgotPasswordTheme';
|
|
7
7
|
import { ResetPasswordPageTheme, ResetPasswordPageThemeOptions } from './ResetPasswordTheme';
|
|
@@ -30,6 +30,7 @@ export interface AuthPageThemeOptions extends BaseThemeOptions, AuthPageCustomCo
|
|
|
30
30
|
export interface LoginBoxThemeOptions extends LoginBoxCommonThemeOptions {
|
|
31
31
|
themeName?: 'classic' | 'modern' | 'vivid' | 'dark' | 'modernV2' | 'darkV2' | 'classicV2' | 'vividV2';
|
|
32
32
|
poweredByPlacement?: 'box' | 'page' | 'leftBottomCorner';
|
|
33
|
+
poweredByColor?: Color;
|
|
33
34
|
acceptInvitation?: AcceptInvitationPageThemeOptions;
|
|
34
35
|
activateAccount?: ActivateAccountPageThemeOptions;
|
|
35
36
|
forgotPassword?: ForgotPasswordPageThemeOptions;
|
package/index.js
CHANGED
|
@@ -2,22 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AdminPortalPages = void 0;
|
|
7
|
-
let AdminPortalPages;
|
|
8
|
-
exports.AdminPortalPages = AdminPortalPages;
|
|
9
|
-
|
|
10
|
-
(function (AdminPortalPages) {
|
|
11
|
-
AdminPortalPages["Profile"] = "profile";
|
|
12
|
-
AdminPortalPages["Privacy"] = "privacy";
|
|
13
|
-
AdminPortalPages["PersonalTokens"] = "personalTokens";
|
|
14
|
-
AdminPortalPages["AccountDetails"] = "accountDetails";
|
|
15
|
-
AdminPortalPages["Users"] = "users";
|
|
16
|
-
AdminPortalPages["Security"] = "security";
|
|
17
|
-
AdminPortalPages["Sso"] = "sso";
|
|
18
|
-
AdminPortalPages["AuditLogs"] = "auditLogs";
|
|
19
|
-
AdminPortalPages["Webhooks"] = "webhooks";
|
|
20
|
-
AdminPortalPages["ApiTokens"] = "apiTokens";
|
|
21
|
-
AdminPortalPages["Roles"] = "roles";
|
|
22
|
-
AdminPortalPages["Subscription"] = "subscription";
|
|
23
|
-
})(AdminPortalPages || (exports.AdminPortalPages = AdminPortalPages = {}));
|
|
5
|
+
});
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.3-alpha.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
|
+
"author": "Frontegg LTD",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"dependencies": {
|
|
7
8
|
"@babel/runtime": "^7.17.2",
|
|
8
|
-
"@frontegg/redux-store": "6.0.
|
|
9
|
+
"@frontegg/redux-store": "6.0.3-alpha.0",
|
|
9
10
|
"csstype": "^3.0.9",
|
|
10
11
|
"deepmerge": "^4.2.2"
|
|
11
12
|
},
|