@frontegg/types 7.0.0-alpha.1 → 7.0.0-alpha.2

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.
Files changed (41) hide show
  1. package/FronteggStoreOptions.d.ts +10 -0
  2. package/Localizations/AdminPortalLocalizations/allUsers.d.ts +1 -1
  3. package/Localizations/AdminPortalLocalizations/apiTokens.d.ts +4 -0
  4. package/Localizations/AdminPortalLocalizations/appDialog.d.ts +11 -0
  5. package/Localizations/AdminPortalLocalizations/appDialog.js +1 -0
  6. package/Localizations/AdminPortalLocalizations/index.d.ts +3 -1
  7. package/Localizations/AdminPortalLocalizations/index.js +1 -0
  8. package/Localizations/AdminPortalLocalizations/privacy.d.ts +32 -0
  9. package/Localizations/AdminPortalLocalizations/profile.d.ts +5 -0
  10. package/Localizations/AdminPortalLocalizations/roles.d.ts +35 -0
  11. package/Localizations/AdminPortalLocalizations/users.d.ts +53 -1
  12. package/Localizations/LoginBoxLocalization/index.d.ts +5 -1
  13. package/Localizations/LoginBoxLocalization/index.js +2 -0
  14. package/Localizations/LoginBoxLocalization/login.d.ts +15 -0
  15. package/Localizations/LoginBoxLocalization/openApp.d.ts +23 -0
  16. package/Localizations/LoginBoxLocalization/openApp.js +1 -0
  17. package/Localizations/LoginBoxLocalization/stepUp.d.ts +51 -0
  18. package/Localizations/LoginBoxLocalization/stepUp.js +1 -0
  19. package/PrivateOptions.d.ts +5 -0
  20. package/ThemeOptions/AdminPortalThemeOptions.d.ts +77 -0
  21. package/ThemeOptions/LoginBoxTheme/OpenAppPageTheme.d.ts +39 -0
  22. package/ThemeOptions/LoginBoxTheme/OpenAppPageTheme.js +1 -0
  23. package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +30 -0
  24. package/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +8 -1
  25. package/ThemeOptions/LoginBoxTheme/StepUpTheme.d.ts +3 -0
  26. package/ThemeOptions/LoginBoxTheme/StepUpTheme.js +1 -0
  27. package/ThemeOptions/LoginBoxTheme/index.d.ts +7 -0
  28. package/ThemeOptions/LoginBoxTheme/index.js +1 -0
  29. package/index.d.ts +2 -1
  30. package/index.js +1 -1
  31. package/node/Localizations/AdminPortalLocalizations/appDialog.js +5 -0
  32. package/node/Localizations/AdminPortalLocalizations/index.js +11 -0
  33. package/node/Localizations/LoginBoxLocalization/index.js +22 -0
  34. package/node/Localizations/LoginBoxLocalization/openApp.js +5 -0
  35. package/node/Localizations/LoginBoxLocalization/stepUp.js +5 -0
  36. package/node/ThemeOptions/LoginBoxTheme/OpenAppPageTheme.js +5 -0
  37. package/node/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +10 -1
  38. package/node/ThemeOptions/LoginBoxTheme/StepUpTheme.js +5 -0
  39. package/node/ThemeOptions/LoginBoxTheme/index.js +11 -0
  40. package/node/index.js +1 -1
  41. package/package.json +2 -2
@@ -4,6 +4,10 @@ export interface AuthOptions extends Partial<Omit<AuthState, 'routes'>> {
4
4
  includeQueryParam?: boolean;
5
5
  routes?: Partial<AuthPageRoutes>;
6
6
  disableSilentRefresh?: boolean;
7
+ /**
8
+ * Determine if each tab operates with a separate tenant context
9
+ */
10
+ enableSessionPerTenant?: boolean;
7
11
  /**
8
12
  * Determine if the redirect url query param of after auth should be enforced to same site
9
13
  */
@@ -16,6 +20,12 @@ export interface AuthOptions extends Partial<Omit<AuthState, 'routes'>> {
16
20
  * Origins that are allowed to clear idle session timeout from
17
21
  */
18
22
  clearIdleTimeoutAllowedOrigins?: string[];
23
+ /**
24
+ * Advanced options for social logins flow
25
+ */
26
+ socialLoginOptions?: {
27
+ promptConsent?: boolean;
28
+ };
19
29
  /**
20
30
  * Advanced options for hosted login mode
21
31
  */
@@ -229,7 +229,7 @@ export interface AllUsersLocalization {
229
229
  expirationInputPlaceholder: string;
230
230
  /**
231
231
  * Link expiration description
232
- * EX: 'link will be expired in {{number}} day(s)',
232
+ * EX: 'link will expire in {{number}} day(s)',
233
233
  */
234
234
  linkExpiration: string;
235
235
  /**
@@ -116,6 +116,10 @@ export interface ApiTokensLocalization {
116
116
  * Expires option display as 'never' it's value: null
117
117
  */
118
118
  neverExpire: string;
119
+ /**
120
+ * Expires option display as 'After 1 day' it's value: 1
121
+ */
122
+ expireAfter1Day: string;
119
123
  /**
120
124
  * Expires option display as 'After 7 days' it's value: 7
121
125
  */
@@ -0,0 +1,11 @@
1
+ export interface AppDialogLocalization {
2
+ /**
3
+ * App dialog
4
+ */
5
+ appDialog: {
6
+ /**
7
+ * Dialog aria label
8
+ */
9
+ dialogAriaLabel: string;
10
+ };
11
+ }
@@ -15,6 +15,7 @@ import { AllUsersLocalization } from './allUsers';
15
15
  import { ProvisioningLocalization } from './provisioning';
16
16
  import { UsersGroupsLocalization } from './groups';
17
17
  import { AllAccountsLocalization } from './allAccounts';
18
+ import { AppDialogLocalization } from './appDialog';
18
19
  export * from './navigation';
19
20
  export * from './profile';
20
21
  export * from './personalTokens';
@@ -32,4 +33,5 @@ export * from './subscriptions';
32
33
  export * from './allUsers';
33
34
  export * from './provisioning';
34
35
  export * from './allAccounts';
35
- export declare type AdminPortalLocalization = NavigationLocalization & ProfileLocalization & PersonalTokensLocalization & AuditLogsLocalization & ApiTokensLocalization & AccountSettingsLocalization & PrivacyLocalization & SecurityLocalization & RolesLocalization & SsoLocalization & UsersLocalization & UsersGroupsLocalization & WebhooksLocalization & SubscriptionsLocalization & AllUsersLocalization & ProvisioningLocalization & AllAccountsLocalization;
36
+ export * from './appDialog';
37
+ export declare type AdminPortalLocalization = NavigationLocalization & ProfileLocalization & PersonalTokensLocalization & AuditLogsLocalization & ApiTokensLocalization & AccountSettingsLocalization & PrivacyLocalization & SecurityLocalization & RolesLocalization & SsoLocalization & UsersLocalization & UsersGroupsLocalization & WebhooksLocalization & SubscriptionsLocalization & AllUsersLocalization & ProvisioningLocalization & AllAccountsLocalization & AppDialogLocalization;
@@ -15,4 +15,5 @@ export * from './subscriptions';
15
15
  export * from './allUsers';
16
16
  export * from './provisioning';
17
17
  export * from './allAccounts';
18
+ export * from './appDialog';
18
19
  export {};
@@ -87,6 +87,13 @@ export interface PrivacyLocalization {
87
87
  setUpPasskeys: string;
88
88
  noPasskeysSetYet: string;
89
89
  disabledSetUpPasskeysTooltip: string;
90
+ mfaSmsDisabledTooltip: string;
91
+ smsTitle: string;
92
+ setUpSms: string;
93
+ noPhoneNumberSet: string;
94
+ disabledSetUpSmsTooltip: string;
95
+ editPhoneNumber: string;
96
+ deletePhoneNumber: string;
90
97
  };
91
98
  /**
92
99
  * Privacy page change password dialogs strings
@@ -177,6 +184,13 @@ export interface PrivacyLocalization {
177
184
  cancel: string;
178
185
  disable: string;
179
186
  };
187
+ privacy_deleteSmsDialog: {
188
+ dialogTitle: string;
189
+ deleteSmsFirstDescription: string;
190
+ deleteSmsSecondDescription: string;
191
+ cancel: string;
192
+ delete: string;
193
+ };
180
194
  privacy_DisableMfaAuthenticatorApp: {
181
195
  /**
182
196
  * Disable mfa dialog title
@@ -354,4 +368,22 @@ export interface PrivacyLocalization {
354
368
  cancel: string;
355
369
  delete: string;
356
370
  };
371
+ privacy_setUpSmsDialog: {
372
+ setUpSmsTitle: string;
373
+ preVerifySmsDescription: string;
374
+ phoneIsRequired: string;
375
+ phoneIsInvalid: string;
376
+ verifyDescription: string;
377
+ cancel: string;
378
+ confirm: string;
379
+ continue: string;
380
+ otcResend: string;
381
+ otcResending: string;
382
+ successfullySetUpTitle: string;
383
+ successfullySetUpDescription: string;
384
+ phoneNumber: string;
385
+ successfullyAddedTitle: string;
386
+ successfullyAddedDescription: string;
387
+ done: string;
388
+ };
357
389
  }
@@ -63,6 +63,11 @@ export interface ProfileLocalization {
63
63
  * Remove profile image action in profile page
64
64
  */
65
65
  removeImage: string;
66
+ disabledEditPhoneNumberTooltip: string;
67
+ /**
68
+ * Profile page edit avatar button aria label
69
+ */
70
+ editAvatarButtonAriaLabel: string;
66
71
  };
67
72
  /**
68
73
  * Edit user name and title Dialog strings
@@ -39,6 +39,29 @@ export interface RolesLocalization {
39
39
  * Table actions column header text
40
40
  */
41
41
  actionsHeader: string;
42
+ permissions: string;
43
+ noRolesMessage: string;
44
+ noRolesFoundMessage: string;
45
+ emptyChipsMessage: string;
46
+ editRole: string;
47
+ deleteRole: string;
48
+ };
49
+ roles_addOrEditRole: {
50
+ roleName: string;
51
+ roleDescription: string;
52
+ title: string;
53
+ defaultRole: string;
54
+ defaultRoleDescription: string;
55
+ cancel: string;
56
+ save: string;
57
+ nameRequiredValidation: string;
58
+ createNewRole: string;
59
+ setRoleDetails: string;
60
+ choosePermissions: string;
61
+ next: string;
62
+ createRole: string;
63
+ existingRoleNameValidation: string;
64
+ copyPermissionsFrom: string;
42
65
  };
43
66
  /**
44
67
  * Add new role dialog strings
@@ -85,4 +108,16 @@ export interface RolesLocalization {
85
108
  */
86
109
  create: string;
87
110
  };
111
+ roles_singleRole: {
112
+ pageTitle: string;
113
+ permissions: string;
114
+ defaultRole: string;
115
+ emptyChipsMessage: string;
116
+ };
117
+ roles_deleteRole: {
118
+ title: string;
119
+ description: string;
120
+ cancel: string;
121
+ deleteRole: string;
122
+ };
88
123
  }
@@ -23,6 +23,14 @@ export interface UsersLocalization {
23
23
  * Me tooltip indicator for users table row if it's the same logged in user
24
24
  */
25
25
  meTooltip: string;
26
+ /**
27
+ * Access time tooltip indicator text
28
+ */
29
+ accessTimeTooltip: string;
30
+ /**
31
+ * Access time expired tooltip indicator text
32
+ */
33
+ accessTimeExpiredTooltip: string;
26
34
  /**
27
35
  * Table user information column header
28
36
  */
@@ -63,6 +71,22 @@ export interface UsersLocalization {
63
71
  * Table row action for editing user roles
64
72
  */
65
73
  editRolesAction: string;
74
+ /**
75
+ * Table row action for setting user access time
76
+ */
77
+ setAccessTimeAction: string;
78
+ /**
79
+ * Table row action for edit access time
80
+ */
81
+ editAccessTimeAction: string;
82
+ /**
83
+ * Table row action for renew access time
84
+ */
85
+ renewAccessTimeAction: string;
86
+ /**
87
+ * Table row action for set as permanent user
88
+ */
89
+ setAsPermanentUserAction: string;
66
90
  /**
67
91
  * Table row action for resending invitation email to specific user
68
92
  */
@@ -181,6 +205,10 @@ export interface UsersLocalization {
181
205
  * Roles also assigned by groups tooltip in select options
182
206
  * */
183
207
  alsoAssignedByGroups: string;
208
+ /**
209
+ * Validation error message if no roles selected
210
+ * */
211
+ rolesIsRequired: string;
184
212
  };
185
213
  /**
186
214
  * Invite new user to tenant dialog strings
@@ -272,6 +300,22 @@ export interface UsersLocalization {
272
300
  bulkLabelWithoutRoles: string;
273
301
  emailInputLabelWithoutRoles: string;
274
302
  };
303
+ /**
304
+ * Edit user access time dialog strings
305
+ */
306
+ users_editAccessTime: {
307
+ cancelButton: string;
308
+ backButton: string;
309
+ saveButton: string;
310
+ saveAndContinueButton: string;
311
+ accessPeriodEditBtn: string;
312
+ accessPeriodSwitchLabel: string;
313
+ accessPeriodSwitchTooltip: string;
314
+ accessPeriodSwitchDescription: string;
315
+ accessTimeValidationError: string;
316
+ accessTimeSummary: string;
317
+ dialogTitle: string;
318
+ };
275
319
  /**
276
320
  * Edit Invitation Link dialog strings
277
321
  */
@@ -302,9 +346,13 @@ export interface UsersLocalization {
302
346
  expirationInputPlaceholder: string;
303
347
  /**
304
348
  * Link expiration description
305
- * EX: 'link will be expired in {{number}} day(s)',
349
+ * EX: 'link will expire in {{number}} day(s)',
306
350
  */
307
351
  linkExpiration: string;
352
+ /**
353
+ * Disabled link expiration if access period is on tooltip
354
+ */
355
+ linkExpiratonDisabledReasonAccessPeriod: string;
308
356
  /**
309
357
  * Deactivate link button text
310
358
  */
@@ -327,6 +375,10 @@ export interface UsersLocalization {
327
375
  edit: string;
328
376
  day: string;
329
377
  days: string;
378
+ /**
379
+ * Edit invite link button aria label
380
+ */
381
+ editInviteLinkAriaLabel: string;
330
382
  };
331
383
  /**
332
384
  * Deactivate invitation link dialog strings
@@ -8,7 +8,10 @@ import { ActivateAccountLocalization } from './activateAccount';
8
8
  import { RecoveryMfaLocalization } from './recoveryMfa';
9
9
  import { ResetPhoneNumberLocalization } from './resetPhoneNumber';
10
10
  import { ImpersonateLocalization } from './impersonate';
11
+ import { StepUpLocalization } from './stepUp';
12
+ import { OpenAppLocalization } from './openApp';
11
13
  export * from './login';
14
+ export * from './stepUp';
12
15
  export * from './signup';
13
16
  export * from './forgetPassword';
14
17
  export * from './resetPhoneNumber';
@@ -19,4 +22,5 @@ export * from './activateAccount';
19
22
  export * from './recoveryMfa';
20
23
  export * from './SplitPageTypes';
21
24
  export * from './impersonate';
22
- export declare type LoginBoxLocalization = LoginLocalization & SignupLocalization & ForgetPasswordLocalization & ResetPhoneNumberLocalization & ResetPasswordLocalization & SocialLoginsLocalization & AcceptInvitationLocalization & ActivateAccountLocalization & ImpersonateLocalization & RecoveryMfaLocalization;
25
+ export * from './openApp';
26
+ export declare type LoginBoxLocalization = LoginLocalization & StepUpLocalization & SignupLocalization & ForgetPasswordLocalization & ResetPhoneNumberLocalization & ResetPasswordLocalization & SocialLoginsLocalization & AcceptInvitationLocalization & ActivateAccountLocalization & ImpersonateLocalization & RecoveryMfaLocalization & OpenAppLocalization;
@@ -1,4 +1,5 @@
1
1
  export * from './login';
2
+ export * from './stepUp';
2
3
  export * from './signup';
3
4
  export * from './forgetPassword';
4
5
  export * from './resetPhoneNumber';
@@ -9,4 +10,5 @@ export * from './activateAccount';
9
10
  export * from './recoveryMfa';
10
11
  export * from './SplitPageTypes';
11
12
  export * from './impersonate';
13
+ export * from './openApp';
12
14
  export {};
@@ -28,6 +28,8 @@ export interface LoginLocalization {
28
28
  * String displayed as placeholder when email field is empty
29
29
  */
30
30
  emailInputPlaceholder: string;
31
+ emailOrPhoneInputLabel: string;
32
+ emailOrPhonePlaceHolder: string;
31
33
  /**
32
34
  * error message displayed if email is invalid
33
35
  */
@@ -369,6 +371,7 @@ export interface LoginLocalization {
369
371
  registerNewQuickLoginSubtitle: string;
370
372
  phoneIsRequired: string;
371
373
  phoneIsInvalid: string;
374
+ phoneFormatIsInvalid: string;
372
375
  promptPasskeysTitle: string;
373
376
  promptFirstItemTitle: string;
374
377
  promptFirstItemSubtitle: string;
@@ -464,6 +467,14 @@ export interface LoginLocalization {
464
467
  * MFA login list SMS option description
465
468
  */
466
469
  loginMfaSMSDescription: string;
470
+ /**
471
+ * MFA login list Email option message
472
+ */
473
+ loginMfaEmail: string;
474
+ /**
475
+ * MFA login list Email option description
476
+ */
477
+ loginMfaEmailDescription: string;
467
478
  /**
468
479
  * MFA login list platform option message
469
480
  */
@@ -493,6 +504,10 @@ export interface LoginLocalization {
493
504
  * MFA login with Authenticator App title
494
505
  */
495
506
  loginMfaAuthenticatorAppTitle: string;
507
+ /**
508
+ * MFA login list Authenticator App sub title
509
+ */
510
+ loginMfaListAuthenticatorAppSubtitle: string;
496
511
  /**
497
512
  * MFA login list with help message
498
513
  */
@@ -0,0 +1,23 @@
1
+ export interface OpenAppLocalization {
2
+ /**
3
+ * strings in step up page
4
+ */
5
+ openApp: {
6
+ /**
7
+ * open app page title
8
+ */
9
+ title: string;
10
+ /**
11
+ * open app page title
12
+ */
13
+ description: string;
14
+ /**
15
+ * open app page "open" button text
16
+ */
17
+ buttonText: string;
18
+ /**
19
+ * back to login button text
20
+ */
21
+ backToLogin: string;
22
+ };
23
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,51 @@
1
+ export interface StepUpLocalization {
2
+ /**
3
+ * strings in step up page
4
+ */
5
+ stepUp: {
6
+ /**
7
+ * no enrolled mfa title
8
+ */
9
+ noEnrolledMfaTitle: string;
10
+ /**
11
+ * no enrolled mfa description part 1
12
+ */
13
+ noEnrolledMfaDescriptionPart1: string;
14
+ /**
15
+ * no enrolled mfa description part 2
16
+ */
17
+ noEnrolledMfaDescriptionPart2: string;
18
+ /**
19
+ * mfa options component title
20
+ */
21
+ mfaTitle: string;
22
+ /**
23
+ * mfa options component sub title
24
+ */
25
+ mfaSubtitle: string;
26
+ /**
27
+ * mfa authenticator component title
28
+ */
29
+ stepUpMfaAuthenticatorAppTitle: string;
30
+ /**
31
+ * MFA authenticate another way button message
32
+ */
33
+ moreWaysToAuthenticate: string;
34
+ /**
35
+ * MFA email code screen title
36
+ */
37
+ mfaEmailCodeTitle: string;
38
+ /**
39
+ * MFA email code screen sub title
40
+ */
41
+ mfaEmailCodeSubtitle: string;
42
+ /**
43
+ * MFA method (like authenticator, sms, ..) submit button
44
+ */
45
+ mfaSubmitButton: string;
46
+ /**
47
+ * MFA email code screen sub title
48
+ */
49
+ mfaSMSSubtitle: string;
50
+ };
51
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -32,4 +32,9 @@ export interface PrivateOptions {
32
32
  * default: undefined
33
33
  */
34
34
  overrideFeatureFlags?: Record<string, 'on' | 'off'>;
35
+ /**
36
+ * Open App route will be used to redirect user to the app after login
37
+ * default: false
38
+ */
39
+ enableOpenAppRoute?: boolean;
35
40
  }
@@ -178,6 +178,78 @@ export interface TreeGraphTheme {
178
178
  */
179
179
  linesColor?: Color;
180
180
  }
181
+ export interface DatePickerTheme {
182
+ /**
183
+ * Styling applying for date picker background colors
184
+ */
185
+ background?: {
186
+ /**
187
+ * Styling applying for date picker background color
188
+ */
189
+ main?: Color;
190
+ /**
191
+ * Styling applying for date picker items hover background color
192
+ */
193
+ hover?: Color;
194
+ /**
195
+ * Styling applying for date picker selected items background color
196
+ */
197
+ accessibility?: Color;
198
+ /**
199
+ * Styling applying for date picker highlited items background color
200
+ */
201
+ highlighted?: Color;
202
+ /**
203
+ * Styling applying for date picker holidays background color
204
+ */
205
+ holidays?: Color;
206
+ /**
207
+ * Styling applying for date picker muted items background color
208
+ */
209
+ muted?: Color;
210
+ /**
211
+ * Styling applying for date picker selected items background color
212
+ */
213
+ selected?: Color;
214
+ /**
215
+ * Styling applying for date picker selected in range items background color
216
+ */
217
+ selectedInRange?: Color;
218
+ };
219
+ /**
220
+ * Styling applying for date picker text color
221
+ */
222
+ text?: {
223
+ /**
224
+ * Styling applying for date picker default text color
225
+ */
226
+ default?: Color;
227
+ /**
228
+ * Styling applying for date picker header text color
229
+ */
230
+ header?: Color;
231
+ /**
232
+ * Styling applying for date picker items muted text color
233
+ */
234
+ muted?: Color;
235
+ /**
236
+ * Styling applying for date picker selected items text color
237
+ */
238
+ selected?: Color;
239
+ /**
240
+ * Styling applying for date picker selected in range items text color
241
+ */
242
+ selectedInRange?: Color;
243
+ };
244
+ /**
245
+ * Styling applying for date picker border color
246
+ */
247
+ borderColor?: Color;
248
+ /**
249
+ * Styling applying for date picker navigation icon color
250
+ */
251
+ navigationIconColor?: Color;
252
+ }
181
253
  export interface AdminPortalCommonOptions extends BaseThemeOptions {
182
254
  /**
183
255
  * Option to customize admin portal table
@@ -199,6 +271,10 @@ export interface AdminPortalCommonOptions extends BaseThemeOptions {
199
271
  * Option to customize admin portal drop zone
200
272
  */
201
273
  dropZone?: ExtendedCSSProperties;
274
+ /**
275
+ * Option to customize admin portal date picker
276
+ */
277
+ datePickerTheme?: DatePickerTheme;
202
278
  }
203
279
  export interface AdminPortalThemeOptions extends AdminPortalCommonOptions {
204
280
  themeName?: BasicThemeName;
@@ -221,4 +297,5 @@ export interface AdminPortalTheme extends BaseTheme {
221
297
  severityChipTheme: SeverityChipTheme;
222
298
  treeGraphTheme: TreeGraphTheme;
223
299
  dropZone: ExtendedCSSProperties;
300
+ datePickerTheme: DatePickerTheme;
224
301
  }
@@ -0,0 +1,39 @@
1
+ import { CustomComponent, LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
2
+ import { ExtendedCSSProperties } from '../../Common';
3
+ interface TitleProps {
4
+ title: string;
5
+ }
6
+ interface MessageProps {
7
+ message: string;
8
+ }
9
+ interface OpenAppPageComponentsTheme {
10
+ /**
11
+ * Activate account page container style
12
+ */
13
+ containerStyle?: ExtendedCSSProperties;
14
+ /**
15
+ * Activate account page title default is 'Activate Account'
16
+ * displayed in forgot password form screen
17
+ * passing 'null' will hide the title
18
+ */
19
+ title?: CustomComponent<TitleProps>;
20
+ /**
21
+ * Direct css style for Forgot password Page title
22
+ */
23
+ titleStyle?: ExtendedCSSProperties;
24
+ /**
25
+ * Activate account page message default is hidden
26
+ * displayed in forgot password form screen
27
+ * passing 'null' will hide the message
28
+ */
29
+ message?: CustomComponent<MessageProps>;
30
+ /**
31
+ * Direct css style for Forgot password Page message
32
+ */
33
+ messageStyle?: ExtendedCSSProperties;
34
+ }
35
+ export interface OpenAppPageThemeOptions extends LoginBoxCommonThemeOptions, OpenAppPageComponentsTheme {
36
+ }
37
+ export interface OpenAppPageTheme extends LoginBoxCommonTheme, OpenAppPageComponentsTheme {
38
+ }
39
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -5,6 +5,32 @@ import { DisclaimerOptions } from '../DisclaimerOptions';
5
5
  interface TitleProps {
6
6
  title: string;
7
7
  }
8
+ export declare enum SignupFields {
9
+ /**
10
+ * Phone number field wont be displayed in sign up form by default
11
+ * Use this field in signup fields properties to enable it
12
+ * Currently this field will only be externalized to signUpComplete event and will not be sent to the backend
13
+ */
14
+ phoneNumber = "phoneNumber"
15
+ }
16
+ declare type SignupFieldsProperties = {
17
+ [K in SignupFields]?: {
18
+ /**
19
+ * If true the field in will be rendered in signup form
20
+ * Default false
21
+ */
22
+ enabled?: boolean;
23
+ settings?: {
24
+ validation?: {
25
+ /**
26
+ * If true the field will be required in signup form
27
+ * Default false
28
+ */
29
+ required?: boolean;
30
+ };
31
+ };
32
+ };
33
+ };
8
34
  export interface GoToLoginMessageProps {
9
35
  goToLogin: () => void;
10
36
  goToLoginMessage: string;
@@ -76,6 +102,10 @@ export interface SignupPageComponentsTheme {
76
102
  hideSignUpFields?: {
77
103
  hideCompanyName?: boolean;
78
104
  };
105
+ /**
106
+ * Control the state of the "Sign Up" fields
107
+ */
108
+ fieldsProperties?: SignupFieldsProperties;
79
109
  /**
80
110
  * use this flag if you want to show password meter on the sign up form
81
111
  */
@@ -1 +1,8 @@
1
- export {};
1
+ // interface MessageProps {
2
+ // message: ReactNode;
3
+ // }
4
+
5
+ export let SignupFields;
6
+ (function (SignupFields) {
7
+ SignupFields["phoneNumber"] = "phoneNumber";
8
+ })(SignupFields || (SignupFields = {}));
@@ -0,0 +1,3 @@
1
+ import { LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '..';
2
+ export declare type StepUpThemeOptions = LoginBoxCommonThemeOptions;
3
+ export declare type StepUpTheme = LoginBoxCommonTheme;
@@ -0,0 +1 @@
1
+ export {};
@@ -9,6 +9,8 @@ import { LoginPageTheme, LoginPageThemeOptions } from './LoginPageTheme';
9
9
  import { LoaderTheme, LoaderThemeOptions } from './LoaderTheme';
10
10
  import { SignupPageTheme } from './SignupPageTheme';
11
11
  import { ResetPhoneNumberPageTheme, ResetPhoneNumberPageThemeOptions } from './ResetPhoneNumberTheme';
12
+ import { StepUpTheme, StepUpThemeOptions } from './StepUpTheme';
13
+ import { OpenAppPageTheme, OpenAppPageThemeOptions } from './OpenAppPageTheme';
12
14
  export * from './LoginBoxCommon';
13
15
  export * from './LoginPageTheme';
14
16
  export * from './SignupPageTheme';
@@ -19,6 +21,7 @@ export * from './ResetPhoneNumberTheme';
19
21
  export * from './ResetPasswordTheme';
20
22
  export * from './ActivateAccountPageTheme';
21
23
  export * from './AcceptInvitationTheme';
24
+ export * from './OpenAppPageTheme';
22
25
  export interface AuthPageThemeOptions extends BaseThemeOptions, AuthPageCustomComponents {
23
26
  style?: ExtendedCSSProperties;
24
27
  layout?: {
@@ -37,7 +40,9 @@ export interface LoginBoxThemeOptions extends LoginBoxCommonThemeOptions {
37
40
  resetPhoneNumber?: ResetPhoneNumberPageThemeOptions;
38
41
  resetPassword?: ResetPasswordPageThemeOptions;
39
42
  login?: LoginPageThemeOptions;
43
+ stepUp?: StepUpThemeOptions;
40
44
  signup?: SignupPageThemeOptions;
45
+ openApp?: OpenAppPageThemeOptions;
41
46
  loader?: LoaderThemeOptions;
42
47
  }
43
48
  export interface LoginBoxTheme extends LoginBoxCommonTheme {
@@ -48,7 +53,9 @@ export interface LoginBoxTheme extends LoginBoxCommonTheme {
48
53
  resetPhoneNumber: ResetPhoneNumberPageTheme;
49
54
  resetPassword: ResetPasswordPageTheme;
50
55
  login: LoginPageTheme;
56
+ stepUp: StepUpTheme;
51
57
  signup: SignupPageTheme;
52
58
  socialLogins: SocialLoginsTheme;
59
+ openApp: OpenAppPageTheme;
53
60
  loader: LoaderTheme;
54
61
  }
@@ -8,4 +8,5 @@ export * from './ResetPhoneNumberTheme';
8
8
  export * from './ResetPasswordTheme';
9
9
  export * from './ActivateAccountPageTheme';
10
10
  export * from './AcceptInvitationTheme';
11
+ export * from './OpenAppPageTheme';
11
12
  export {};
package/index.d.ts CHANGED
@@ -6,4 +6,5 @@ export * from './Localizations';
6
6
  export * from './Metadata';
7
7
  export * from './CheckoutDialogOptions';
8
8
  export * from './CustomLoginTypes';
9
- export type { Entitlement, NotEntitledJustification, EntitledToOptions, LoadEntitlementsCallback, } from '@frontegg/redux-store';
9
+ export type { Entitlement, NotEntitledJustification, EntitledToOptions, LoadEntitlementsCallback, StepUpOptions, IsSteppedUpOptions, } from '@frontegg/redux-store';
10
+ export type { UserEntitlementsContext as UserEntitlementsResponseV2, CustomAttributes, Attributes, JwtAttributes, } from '@frontegg/entitlements-javascript-commons';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.0.0-alpha.1
1
+ /** @license Frontegg v7.0.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -189,4 +189,15 @@ Object.keys(_allAccounts).forEach(function (key) {
189
189
  return _allAccounts[key];
190
190
  }
191
191
  });
192
+ });
193
+ var _appDialog = require("./appDialog");
194
+ Object.keys(_appDialog).forEach(function (key) {
195
+ if (key === "default" || key === "__esModule") return;
196
+ if (key in exports && exports[key] === _appDialog[key]) return;
197
+ Object.defineProperty(exports, key, {
198
+ enumerable: true,
199
+ get: function () {
200
+ return _appDialog[key];
201
+ }
202
+ });
192
203
  });
@@ -14,6 +14,17 @@ Object.keys(_login).forEach(function (key) {
14
14
  }
15
15
  });
16
16
  });
17
+ var _stepUp = require("./stepUp");
18
+ Object.keys(_stepUp).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _stepUp[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _stepUp[key];
25
+ }
26
+ });
27
+ });
17
28
  var _signup = require("./signup");
18
29
  Object.keys(_signup).forEach(function (key) {
19
30
  if (key === "default" || key === "__esModule") return;
@@ -123,4 +134,15 @@ Object.keys(_impersonate).forEach(function (key) {
123
134
  return _impersonate[key];
124
135
  }
125
136
  });
137
+ });
138
+ var _openApp = require("./openApp");
139
+ Object.keys(_openApp).forEach(function (key) {
140
+ if (key === "default" || key === "__esModule") return;
141
+ if (key in exports && exports[key] === _openApp[key]) return;
142
+ Object.defineProperty(exports, key, {
143
+ enumerable: true,
144
+ get: function () {
145
+ return _openApp[key];
146
+ }
147
+ });
126
148
  });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -2,4 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
5
+ });
6
+ exports.SignupFields = void 0;
7
+ // interface MessageProps {
8
+ // message: ReactNode;
9
+ // }
10
+ let SignupFields;
11
+ exports.SignupFields = SignupFields;
12
+ (function (SignupFields) {
13
+ SignupFields["phoneNumber"] = "phoneNumber";
14
+ })(SignupFields || (exports.SignupFields = SignupFields = {}));
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -112,4 +112,15 @@ Object.keys(_AcceptInvitationTheme).forEach(function (key) {
112
112
  return _AcceptInvitationTheme[key];
113
113
  }
114
114
  });
115
+ });
116
+ var _OpenAppPageTheme = require("./OpenAppPageTheme");
117
+ Object.keys(_OpenAppPageTheme).forEach(function (key) {
118
+ if (key === "default" || key === "__esModule") return;
119
+ if (key in exports && exports[key] === _OpenAppPageTheme[key]) return;
120
+ Object.defineProperty(exports, key, {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _OpenAppPageTheme[key];
124
+ }
125
+ });
115
126
  });
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.0.0-alpha.1
1
+ /** @license Frontegg v7.0.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/types",
3
- "version": "7.0.0-alpha.1",
3
+ "version": "7.0.0-alpha.2",
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.0.0-alpha.1",
9
+ "@frontegg/redux-store": "7.0.0-alpha.2",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },