@frontegg/types 7.0.0-alpha.2 → 7.0.0-alpha.3
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/ContextOptions.d.ts +4 -0
- package/FronteggAppInstance.d.ts +3 -2
- package/FronteggMetadata.d.ts +6 -2
- package/Localizations/AdminPortalLocalizations/accountSettings.d.ts +16 -0
- package/Localizations/AdminPortalLocalizations/allAccounts.d.ts +60 -0
- package/Localizations/AdminPortalLocalizations/navigation.d.ts +4 -0
- package/Localizations/AdminPortalLocalizations/profile.d.ts +8 -0
- package/Localizations/AdminPortalLocalizations/provisioning.d.ts +16 -0
- package/Localizations/AdminPortalLocalizations/roles.d.ts +11 -0
- package/Localizations/AdminPortalLocalizations/users.d.ts +71 -0
- package/Metadata/index.js +0 -1
- package/PrivateOptions.d.ts +9 -0
- package/ShowAdminPortalOptions.d.ts +3 -0
- package/ShowAdminPortalOptions.js +1 -0
- package/ThemeOptions/AdminPortalThemeOptions.d.ts +8 -1
- package/ThemeOptions/fieldsAppearanceConsts.d.ts +13 -2
- package/ThemeOptions/fieldsAppearanceConsts.js +10 -0
- package/ThemeOptions/fieldsAppearanceTypes.d.ts +13 -2
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/node/Metadata/index.js +0 -1
- package/node/ShowAdminPortalOptions.js +5 -0
- package/node/ThemeOptions/fieldsAppearanceConsts.js +12 -1
- package/node/index.js +12 -1
- package/package.json +2 -2
package/ContextOptions.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export interface ContextOptions {
|
|
|
8
8
|
* Frontegg clientId. Identifier from your Frontegg workspace account.
|
|
9
9
|
*/
|
|
10
10
|
clientId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Will be used to identify the application, use only for multi applications
|
|
13
|
+
*/
|
|
14
|
+
appId?: string;
|
|
11
15
|
/**
|
|
12
16
|
* Whether or not to send Fetch request with Credentials to the Backend
|
|
13
17
|
* default: 'include'
|
package/FronteggAppInstance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnhancedStore } from '@frontegg/redux-store';
|
|
2
|
-
import { FronteggAppOptions, FronteggCheckoutDialogOptions, LocalizationsOverrides } from './index';
|
|
2
|
+
import { FronteggAppOptions, FronteggCheckoutDialogOptions, LocalizationsOverrides, ShowAdminPortalOptions } from './index';
|
|
3
3
|
export interface FronteggAppInstance {
|
|
4
4
|
name: string;
|
|
5
5
|
iframeRendering: boolean;
|
|
@@ -15,7 +15,8 @@ export interface FronteggAppInstance {
|
|
|
15
15
|
options: FronteggAppOptions;
|
|
16
16
|
updateMetadata: (metadata: FronteggAppOptions['metadata']) => void;
|
|
17
17
|
updateLocalizationsSetter: (localizationUpdateFn: (localizations: LocalizationsOverrides) => void) => void;
|
|
18
|
-
showAdminPortal: () => void;
|
|
18
|
+
showAdminPortal: (options?: ShowAdminPortalOptions) => void;
|
|
19
|
+
openHostedAdminPortal: (newTab?: boolean) => void;
|
|
19
20
|
hideAdminPortal: () => void;
|
|
20
21
|
showCheckoutDialog: (opts: FronteggCheckoutDialogOptions) => void;
|
|
21
22
|
hideCheckoutDialog: () => void;
|
package/FronteggMetadata.d.ts
CHANGED
|
@@ -64,15 +64,19 @@ export interface GTMConfiguration {
|
|
|
64
64
|
export interface IntegrationsMetadata {
|
|
65
65
|
gtm?: GTMConfiguration[];
|
|
66
66
|
}
|
|
67
|
+
export interface MetadataOverrides {
|
|
68
|
+
url?: string;
|
|
69
|
+
}
|
|
67
70
|
export declare type FronteggMetadata = {
|
|
68
71
|
theme?: ThemeMetadata;
|
|
69
72
|
themeV2?: FronteggThemeOptions;
|
|
70
73
|
navigation?: NavigationMetadata;
|
|
71
74
|
localizations?: LocalizationsOverrides;
|
|
72
75
|
integrations?: IntegrationsMetadata;
|
|
76
|
+
metadataOverrides?: MetadataOverrides;
|
|
73
77
|
};
|
|
74
78
|
export declare type SubscriptionRolePermissions = 'fe.subscriptions.*' | 'fe.subscriptions.read.*' | 'fe.subscriptions.write.*';
|
|
75
79
|
export declare 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';
|
|
76
|
-
export declare type AllAccountsPermissions = 'fe.account-hierarchy.write.subAccount' | 'fe.account-hierarchy.write.subAccountAccess' | 'fe.account-hierarchy.read.subAccount' | 'fe.account-hierarchy.delete.subAccount';
|
|
77
|
-
export declare 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' | AllAccountsPermissions | SubscriptionRolePermissions | GroupsRolePermissions;
|
|
80
|
+
export declare 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 declare 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' | AllAccountsPermissions | SubscriptionRolePermissions | GroupsRolePermissions;
|
|
78
82
|
export {};
|
|
@@ -59,6 +59,22 @@ export interface AccountSettingsLocalization {
|
|
|
59
59
|
* Text to display if all fields are hidden
|
|
60
60
|
*/
|
|
61
61
|
emptyStateText: string;
|
|
62
|
+
/**
|
|
63
|
+
* Applications section title
|
|
64
|
+
*/
|
|
65
|
+
accountApplications: string;
|
|
66
|
+
/**
|
|
67
|
+
* Redirect to app button cta
|
|
68
|
+
*/
|
|
69
|
+
open: string;
|
|
70
|
+
/**
|
|
71
|
+
* prefix for user count in the account application card
|
|
72
|
+
*/
|
|
73
|
+
usersCount: string;
|
|
74
|
+
/**
|
|
75
|
+
* suffix for user count in the account application card for default and auto-assigned apps
|
|
76
|
+
*/
|
|
77
|
+
all: string;
|
|
62
78
|
};
|
|
63
79
|
/**
|
|
64
80
|
* Account settings edit Address Dialog strings
|
|
@@ -74,6 +74,65 @@ export interface AllAccountsLocalization {
|
|
|
74
74
|
* @default 'Delete'
|
|
75
75
|
* */
|
|
76
76
|
deleteBtnText: string;
|
|
77
|
+
/**
|
|
78
|
+
* Disable sub-account management button text
|
|
79
|
+
* @default 'Disable sub-account management'
|
|
80
|
+
* */
|
|
81
|
+
disableSubAccountManagement: string;
|
|
82
|
+
/**
|
|
83
|
+
* Enable sub-account management button text
|
|
84
|
+
* @default 'Enable sub-account management'
|
|
85
|
+
* */
|
|
86
|
+
enableSubAccountManagement: string;
|
|
87
|
+
/**
|
|
88
|
+
* Account manager chip text
|
|
89
|
+
* @default 'Account Manager'
|
|
90
|
+
* */
|
|
91
|
+
accountManager: string;
|
|
92
|
+
};
|
|
93
|
+
allAccounts_DisableSubAccountManagementDialog: {
|
|
94
|
+
/**
|
|
95
|
+
* Disable sub-account management dialog title
|
|
96
|
+
* @default 'Disable sub-account management'
|
|
97
|
+
* */
|
|
98
|
+
title: string;
|
|
99
|
+
/**
|
|
100
|
+
* Disable sub-account management dialog description
|
|
101
|
+
* @default 'By disabling sub-account management, {{accountName}} will be no longer able to create and manage accounts on their own'
|
|
102
|
+
* */
|
|
103
|
+
description: string;
|
|
104
|
+
/**
|
|
105
|
+
* Disable sub-account management cancel button text
|
|
106
|
+
* @default 'Cancel'
|
|
107
|
+
* */
|
|
108
|
+
cancel: string;
|
|
109
|
+
/**
|
|
110
|
+
* Disable sub-account management disable button text
|
|
111
|
+
* @default 'Disable'
|
|
112
|
+
* */
|
|
113
|
+
disable: string;
|
|
114
|
+
};
|
|
115
|
+
allAccounts_EnableSubAccountManagementDialog: {
|
|
116
|
+
/**
|
|
117
|
+
* Enable sub-account management dialog title
|
|
118
|
+
* @default 'Enable sub-account management'
|
|
119
|
+
* */
|
|
120
|
+
title: string;
|
|
121
|
+
/**
|
|
122
|
+
* Enable sub-account management dialog description
|
|
123
|
+
* @default 'By enabling sub-account management, {{accountName}} will be able to create and manage accounts on their own'
|
|
124
|
+
* */
|
|
125
|
+
description: string;
|
|
126
|
+
/**
|
|
127
|
+
* Enable sub-account management cancel button text
|
|
128
|
+
* @default 'Cancel'
|
|
129
|
+
* */
|
|
130
|
+
cancel: string;
|
|
131
|
+
/**
|
|
132
|
+
* Enable sub-account management enable button text
|
|
133
|
+
* @default 'Enable'
|
|
134
|
+
* */
|
|
135
|
+
enable: string;
|
|
77
136
|
};
|
|
78
137
|
/**
|
|
79
138
|
* All accounts graph strings
|
|
@@ -269,6 +328,7 @@ export interface AllAccountsLocalization {
|
|
|
269
328
|
* @default 'Search by email'
|
|
270
329
|
*/
|
|
271
330
|
searchUserPlaceholder: string;
|
|
331
|
+
accountManager: string;
|
|
272
332
|
};
|
|
273
333
|
/**
|
|
274
334
|
* Single account view no permissions page strings
|
|
@@ -12,6 +12,10 @@ export interface NavigationLocalization {
|
|
|
12
12
|
* in navigation
|
|
13
13
|
*/
|
|
14
14
|
workspace: string;
|
|
15
|
+
/**
|
|
16
|
+
* Text displayed as separator navigation header and personal settings
|
|
17
|
+
*/
|
|
18
|
+
myAccount: string;
|
|
15
19
|
/**
|
|
16
20
|
* Text displayed as separator between tenant settings and all accounts settings
|
|
17
21
|
* in navigation
|
|
@@ -68,6 +68,14 @@ export interface ProfileLocalization {
|
|
|
68
68
|
* Profile page edit avatar button aria label
|
|
69
69
|
*/
|
|
70
70
|
editAvatarButtonAriaLabel: string;
|
|
71
|
+
/**
|
|
72
|
+
* Applications section title
|
|
73
|
+
*/
|
|
74
|
+
myApplications: string;
|
|
75
|
+
/**
|
|
76
|
+
* Redirect to app button cta
|
|
77
|
+
*/
|
|
78
|
+
open: string;
|
|
71
79
|
};
|
|
72
80
|
/**
|
|
73
81
|
* Edit user name and title Dialog strings
|
|
@@ -80,6 +80,10 @@ export interface ProvisioningLocalization {
|
|
|
80
80
|
* Add connection dialog title
|
|
81
81
|
*/
|
|
82
82
|
dialogTitle: string;
|
|
83
|
+
/**
|
|
84
|
+
* Add connection dialog body
|
|
85
|
+
*/
|
|
86
|
+
dialogBody: string;
|
|
83
87
|
/**
|
|
84
88
|
* Done button text
|
|
85
89
|
*/
|
|
@@ -132,6 +136,18 @@ export interface ProvisioningLocalization {
|
|
|
132
136
|
* Required field text
|
|
133
137
|
*/
|
|
134
138
|
validation_requiredField: string;
|
|
139
|
+
/**
|
|
140
|
+
* Connection name required field
|
|
141
|
+
*/
|
|
142
|
+
connectionNameIsRequired: string;
|
|
143
|
+
/**
|
|
144
|
+
* Connection name invalid length message
|
|
145
|
+
*/
|
|
146
|
+
invalidConnectionNameLength: string;
|
|
147
|
+
/**
|
|
148
|
+
* Warning to show when SCIM guide configuration is not completed
|
|
149
|
+
*/
|
|
150
|
+
scimGuideNotCompleted: string;
|
|
135
151
|
};
|
|
136
152
|
provisioning_deleteConnectionDialog: {
|
|
137
153
|
/**
|
|
@@ -62,6 +62,9 @@ export interface RolesLocalization {
|
|
|
62
62
|
createRole: string;
|
|
63
63
|
existingRoleNameValidation: string;
|
|
64
64
|
copyPermissionsFrom: string;
|
|
65
|
+
search: string;
|
|
66
|
+
noPermissionsFound: string;
|
|
67
|
+
permissionsRequiredError: string;
|
|
65
68
|
};
|
|
66
69
|
/**
|
|
67
70
|
* Add new role dialog strings
|
|
@@ -113,6 +116,8 @@ export interface RolesLocalization {
|
|
|
113
116
|
permissions: string;
|
|
114
117
|
defaultRole: string;
|
|
115
118
|
emptyChipsMessage: string;
|
|
119
|
+
search: string;
|
|
120
|
+
managePermissions: string;
|
|
116
121
|
};
|
|
117
122
|
roles_deleteRole: {
|
|
118
123
|
title: string;
|
|
@@ -120,4 +125,10 @@ export interface RolesLocalization {
|
|
|
120
125
|
cancel: string;
|
|
121
126
|
deleteRole: string;
|
|
122
127
|
};
|
|
128
|
+
roles_managePermissions: {
|
|
129
|
+
title: string;
|
|
130
|
+
cancel: string;
|
|
131
|
+
save: string;
|
|
132
|
+
permissionsRequiredError: string;
|
|
133
|
+
};
|
|
123
134
|
}
|
|
@@ -135,6 +135,14 @@ export interface UsersLocalization {
|
|
|
135
135
|
* Assigned by groups and default tooltip
|
|
136
136
|
*/
|
|
137
137
|
assignedByGroupsAndDefault: string;
|
|
138
|
+
/**
|
|
139
|
+
* Users table applications column header
|
|
140
|
+
*/
|
|
141
|
+
applicationsHeader: string;
|
|
142
|
+
/**
|
|
143
|
+
* Application user assignment open dialog button text
|
|
144
|
+
*/
|
|
145
|
+
applicationAssignment: string;
|
|
138
146
|
};
|
|
139
147
|
/**
|
|
140
148
|
* Delete user dialog strings
|
|
@@ -144,6 +152,10 @@ export interface UsersLocalization {
|
|
|
144
152
|
* Dialog title
|
|
145
153
|
*/
|
|
146
154
|
title: string;
|
|
155
|
+
/**
|
|
156
|
+
* Delete user description to "Before" username
|
|
157
|
+
*/
|
|
158
|
+
deleteUserMultiApp: string;
|
|
147
159
|
/**
|
|
148
160
|
* Delete user description to "Before" username
|
|
149
161
|
*/
|
|
@@ -161,6 +173,31 @@ export interface UsersLocalization {
|
|
|
161
173
|
*/
|
|
162
174
|
delete: string;
|
|
163
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* Revoke user sessions dialog strings
|
|
178
|
+
*/
|
|
179
|
+
users_RevokeSessions: {
|
|
180
|
+
/**
|
|
181
|
+
* Revoke user dialog title
|
|
182
|
+
*/
|
|
183
|
+
title: string;
|
|
184
|
+
/**
|
|
185
|
+
* Revoke user dialog body text
|
|
186
|
+
*/
|
|
187
|
+
body: string;
|
|
188
|
+
/**
|
|
189
|
+
* Revoke user dialog body text for multi app mode
|
|
190
|
+
*/
|
|
191
|
+
multiAppBody: string;
|
|
192
|
+
/**
|
|
193
|
+
* Revoke user dialog cancel button text
|
|
194
|
+
*/
|
|
195
|
+
cancel: string;
|
|
196
|
+
/**
|
|
197
|
+
* Revoke user dialog submit button text
|
|
198
|
+
*/
|
|
199
|
+
logout: string;
|
|
200
|
+
};
|
|
164
201
|
/**
|
|
165
202
|
* Invite User roles dialog strings
|
|
166
203
|
*/
|
|
@@ -299,6 +336,7 @@ export interface UsersLocalization {
|
|
|
299
336
|
userAlreadyExistsPart2: string;
|
|
300
337
|
bulkLabelWithoutRoles: string;
|
|
301
338
|
emailInputLabelWithoutRoles: string;
|
|
339
|
+
applicationInputLabel: string;
|
|
302
340
|
};
|
|
303
341
|
/**
|
|
304
342
|
* Edit user access time dialog strings
|
|
@@ -401,4 +439,37 @@ export interface UsersLocalization {
|
|
|
401
439
|
*/
|
|
402
440
|
deactivate: string;
|
|
403
441
|
};
|
|
442
|
+
/**
|
|
443
|
+
* User applications assignment dialog strings
|
|
444
|
+
*/
|
|
445
|
+
users_ApplicationAssignment: {
|
|
446
|
+
/**
|
|
447
|
+
* User applications assignment dialog title
|
|
448
|
+
*/
|
|
449
|
+
title: string;
|
|
450
|
+
/**
|
|
451
|
+
* User applications assignment description subtitle
|
|
452
|
+
*/
|
|
453
|
+
subtitle: string;
|
|
454
|
+
/**
|
|
455
|
+
* User applications input label text
|
|
456
|
+
*/
|
|
457
|
+
label: string;
|
|
458
|
+
/**
|
|
459
|
+
* User applications input place holder text
|
|
460
|
+
*/
|
|
461
|
+
placeHolder: string;
|
|
462
|
+
/**
|
|
463
|
+
* Disabled default apps options tooltip text
|
|
464
|
+
*/
|
|
465
|
+
defaultAppTooltip: string;
|
|
466
|
+
/**
|
|
467
|
+
* User applications dialog cancel button text
|
|
468
|
+
*/
|
|
469
|
+
cancel: string;
|
|
470
|
+
/**
|
|
471
|
+
* User applications dialog submit button text
|
|
472
|
+
*/
|
|
473
|
+
saveChanges: string;
|
|
474
|
+
};
|
|
404
475
|
}
|
package/Metadata/index.js
CHANGED
package/PrivateOptions.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ export interface PrivateOptions {
|
|
|
9
9
|
* Option to display login box as Preview mode without HTTP requests for builder customization mode purpose
|
|
10
10
|
*/
|
|
11
11
|
builderMode?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Option to detect hosted login runtime to control some features (i.e. when running admin-box from oauth)
|
|
14
|
+
*/
|
|
15
|
+
hostedRuntime?: boolean;
|
|
12
16
|
/**
|
|
13
17
|
* Connect AdminPortal redirects with the wrapper application router
|
|
14
18
|
*/
|
|
@@ -37,4 +41,9 @@ export interface PrivateOptions {
|
|
|
37
41
|
* default: false
|
|
38
42
|
*/
|
|
39
43
|
enableOpenAppRoute?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Open AdminPortal in multi app mode
|
|
46
|
+
* default: false
|
|
47
|
+
*/
|
|
48
|
+
isMultiApp?: boolean;
|
|
40
49
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseTheme, BaseThemeOptions, BasicThemeName, InviteUserModalFieldsProperties, SubscriptionsFieldsProperties } from './index';
|
|
2
2
|
import { Color, CSSProperties, ExtendedCSSProperties } from '../Common';
|
|
3
|
-
import { AccountFieldsProperties, PrivacyFieldsProperties, ProfileFieldsProperties, SecurityTabsProperties } from './fieldsAppearanceTypes';
|
|
3
|
+
import { AccountFieldsProperties, PrivacyFieldsProperties, ProfileFieldsProperties, SecurityTabsProperties, UsersFieldsProperties } from './fieldsAppearanceTypes';
|
|
4
4
|
export interface NavigationThemeOptionsState {
|
|
5
5
|
color?: Color;
|
|
6
6
|
background?: Color;
|
|
@@ -82,10 +82,16 @@ export interface UsersPageThemeOptions extends PageThemeOptions {
|
|
|
82
82
|
/** @Deprecated please use inviteUserModal.inviteByEmail.enabled = false to hide invite with email **/
|
|
83
83
|
hideInviteWithEmail?: boolean;
|
|
84
84
|
inviteUserModal?: InviteUserModalOptions;
|
|
85
|
+
fieldsProperties?: UsersFieldsProperties;
|
|
85
86
|
}
|
|
86
87
|
export interface SubscriptionsPageThemeOptions extends PageThemeOptions {
|
|
87
88
|
fieldsProperties?: SubscriptionsFieldsProperties;
|
|
88
89
|
}
|
|
90
|
+
export interface ApplicationThemeOptions extends PageThemeOptions {
|
|
91
|
+
cardLogoContainer?: ExtendedCSSProperties;
|
|
92
|
+
cardSkeleton?: ExtendedCSSProperties;
|
|
93
|
+
usersSection?: ExtendedCSSProperties;
|
|
94
|
+
}
|
|
89
95
|
export interface PagesThemeOptions extends PageThemeOptions {
|
|
90
96
|
profile?: ProfilePageThemeOptions;
|
|
91
97
|
privacy?: PrivacyPageThemeOptions;
|
|
@@ -99,6 +105,7 @@ export interface PagesThemeOptions extends PageThemeOptions {
|
|
|
99
105
|
apiTokens?: PageThemeOptions;
|
|
100
106
|
roles?: PageThemeOptions;
|
|
101
107
|
subscriptions?: SubscriptionsPageThemeOptions;
|
|
108
|
+
application?: ApplicationThemeOptions;
|
|
102
109
|
}
|
|
103
110
|
export interface TableScrollbar {
|
|
104
111
|
borderColor?: Color;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export declare type
|
|
1
|
+
export declare type Hidden = 'hidden';
|
|
2
|
+
export declare type Edit = 'edit';
|
|
3
|
+
export declare type HiddenOrEdit = Hidden | Edit;
|
|
2
4
|
export declare type FieldAppearance = 'viewOnly' | HiddenOrEdit;
|
|
3
|
-
export declare type TabAppearance =
|
|
5
|
+
export declare type TabAppearance = HiddenOrEdit;
|
|
4
6
|
export interface FieldSettings {
|
|
5
7
|
validation?: {
|
|
6
8
|
required?: boolean;
|
|
@@ -45,6 +47,15 @@ export declare enum AccountPageFields {
|
|
|
45
47
|
Timezone = "timezone",
|
|
46
48
|
Currency = "currency"
|
|
47
49
|
}
|
|
50
|
+
export declare enum UsersTableColumns {
|
|
51
|
+
User = "user",
|
|
52
|
+
Applications = "applications",
|
|
53
|
+
Groups = "groups",
|
|
54
|
+
Roles = "roles",
|
|
55
|
+
JoinedAt = "joinedAt",
|
|
56
|
+
LastSeen = "lastSeen",
|
|
57
|
+
ManagedBy = "managedBy"
|
|
58
|
+
}
|
|
48
59
|
export interface MapAccountFieldToAppearance extends Record<keyof AccountPageFields, FieldAppearance> {
|
|
49
60
|
[AccountPageFields.CompanyName]: FieldAppearance;
|
|
50
61
|
[AccountPageFields.Address]: HiddenOrEdit;
|
|
@@ -23,6 +23,16 @@ export let AccountPageFields;
|
|
|
23
23
|
AccountPageFields["Timezone"] = "timezone";
|
|
24
24
|
AccountPageFields["Currency"] = "currency";
|
|
25
25
|
})(AccountPageFields || (AccountPageFields = {}));
|
|
26
|
+
export let UsersTableColumns;
|
|
27
|
+
(function (UsersTableColumns) {
|
|
28
|
+
UsersTableColumns["User"] = "user";
|
|
29
|
+
UsersTableColumns["Applications"] = "applications";
|
|
30
|
+
UsersTableColumns["Groups"] = "groups";
|
|
31
|
+
UsersTableColumns["Roles"] = "roles";
|
|
32
|
+
UsersTableColumns["JoinedAt"] = "joinedAt";
|
|
33
|
+
UsersTableColumns["LastSeen"] = "lastSeen";
|
|
34
|
+
UsersTableColumns["ManagedBy"] = "managedBy";
|
|
35
|
+
})(UsersTableColumns || (UsersTableColumns = {}));
|
|
26
36
|
export let SubscriptionsPageFields;
|
|
27
37
|
(function (SubscriptionsPageFields) {
|
|
28
38
|
SubscriptionsPageFields["Invoices"] = "invoices";
|
|
@@ -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, SubscriptionsPageFields, MapSubscriptionsFieldToAppearance } from './fieldsAppearanceConsts';
|
|
3
|
+
import { AccountPageFields, GeneralSettingsTabFields, InviteUserModalFields, IpRestrictionsTabFields, MapAccountFieldToAppearance, MapInviteUserFieldToAppearance, MapInviteUserFieldToSettings, MapPrivacyFieldToAppearance, MapProfileFieldToAppearance, MapSecurityFieldToAppearance, PrivacyPageFields, ProfilePageFields, SessionManagementTabFields, DomainRestrictionsTabFields, TabAppearance, SubscriptionsPageFields, MapSubscriptionsFieldToAppearance, UsersTableColumns, Hidden } from './fieldsAppearanceConsts';
|
|
4
4
|
interface ProfileProperties<K extends ProfilePageFields> {
|
|
5
5
|
appearance?: MapProfileFieldToAppearance[K];
|
|
6
6
|
}
|
|
@@ -25,6 +25,16 @@ interface SubscriptionsProperties<K extends SubscriptionsPageFields> {
|
|
|
25
25
|
export declare type SubscriptionsFieldProperties = {
|
|
26
26
|
[K in SubscriptionsPageFields]: SubscriptionsProperties<K>;
|
|
27
27
|
};
|
|
28
|
+
export declare type UsersTableColumnsAppearance = {
|
|
29
|
+
[K in UsersTableColumns]?: {
|
|
30
|
+
appearance: Hidden;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare type UsersFieldProperties = {
|
|
34
|
+
tableColumns: {
|
|
35
|
+
[K in UsersTableColumns]: UsersTableColumnsAppearance[K];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
28
38
|
interface InviteUserModalProperties<K extends InviteUserModalFields> {
|
|
29
39
|
appearance?: MapInviteUserFieldToAppearance[K];
|
|
30
40
|
settings?: MapInviteUserFieldToSettings[K];
|
|
@@ -65,6 +75,7 @@ export declare type DomainRestrictionsTabFieldsProperties = Partial<DomainRestri
|
|
|
65
75
|
export declare type IpRestrictionsTabFieldsProperties = Partial<IpRestrictionsFieldProperties>;
|
|
66
76
|
export declare type GeneralSettingsTabFieldsProperties = Partial<GeneralSettingsFieldProperties>;
|
|
67
77
|
export declare type SubscriptionsFieldsProperties = Partial<SubscriptionsFieldProperties>;
|
|
78
|
+
export declare type UsersFieldsProperties = Partial<UsersFieldProperties>;
|
|
68
79
|
export interface TabProperties extends Omit<PageThemeOptions, 'header'> {
|
|
69
80
|
appearance?: TabAppearance;
|
|
70
81
|
}
|
|
@@ -92,5 +103,5 @@ export declare type SecurityTabsProperties = {
|
|
|
92
103
|
ipRestrictions?: IpRestrictionsTabProperties;
|
|
93
104
|
domainRestrictions?: DomainRestrictionsTabProperties;
|
|
94
105
|
};
|
|
95
|
-
export declare type TabsAndFieldsProperties = Partial<ProfileFieldProperties> | Partial<SessionManagementFieldProperties> | Partial<DomainRestrictionsFieldProperties> | Partial<IpRestrictionsFieldProperties> | GeneralSettingsFieldProperties | SecurityTabsProperties | Partial<PrivacyFieldProperties> | Partial<AccountFieldProperties> | Partial<InviteUserModalFieldProperties> | Partial<SubscriptionsFieldsProperties>;
|
|
106
|
+
export declare type TabsAndFieldsProperties = Partial<ProfileFieldProperties> | Partial<SessionManagementFieldProperties> | Partial<DomainRestrictionsFieldProperties> | Partial<IpRestrictionsFieldProperties> | GeneralSettingsFieldProperties | SecurityTabsProperties | Partial<PrivacyFieldProperties> | Partial<AccountFieldProperties> | Partial<InviteUserModalFieldProperties> | Partial<SubscriptionsFieldsProperties> | Partial<UsersFieldsProperties['tableColumns']>;
|
|
96
107
|
export {};
|
package/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export * from './Localizations';
|
|
|
6
6
|
export * from './Metadata';
|
|
7
7
|
export * from './CheckoutDialogOptions';
|
|
8
8
|
export * from './CustomLoginTypes';
|
|
9
|
-
export
|
|
9
|
+
export * from './ShowAdminPortalOptions';
|
|
10
|
+
export type { Entitlement, NotEntitledJustification, EntitledToOptions, LoadEntitlementsCallback, StepUpOptions, IsSteppedUpOptions, SwitchTenantOptions, } from '@frontegg/redux-store';
|
|
10
11
|
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
|
+
/** @license Frontegg v7.0.0-alpha.3
|
|
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.
|
|
@@ -11,4 +11,5 @@ export * from './Localizations';
|
|
|
11
11
|
export * from './Metadata';
|
|
12
12
|
export * from './CheckoutDialogOptions';
|
|
13
13
|
export * from './CustomLoginTypes';
|
|
14
|
+
export * from './ShowAdminPortalOptions';
|
|
14
15
|
export {};
|
package/node/Metadata/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SubscriptionsPageFields = exports.SessionManagementTabFields = exports.SecurityPageTabs = exports.ProfilePageFields = exports.PrivacyPageFields = exports.IpRestrictionsTabFields = exports.InviteUserModalFields = exports.GeneralSettingsTabFields = exports.DomainRestrictionsTabFields = exports.AccountPageFields = exports.AccountDetailsPageTabs = void 0;
|
|
6
|
+
exports.UsersTableColumns = exports.SubscriptionsPageFields = exports.SessionManagementTabFields = exports.SecurityPageTabs = exports.ProfilePageFields = exports.PrivacyPageFields = exports.IpRestrictionsTabFields = exports.InviteUserModalFields = exports.GeneralSettingsTabFields = exports.DomainRestrictionsTabFields = exports.AccountPageFields = exports.AccountDetailsPageTabs = void 0;
|
|
7
7
|
let ProfilePageFields;
|
|
8
8
|
exports.ProfilePageFields = ProfilePageFields;
|
|
9
9
|
(function (ProfilePageFields) {
|
|
@@ -33,6 +33,17 @@ exports.AccountPageFields = AccountPageFields;
|
|
|
33
33
|
AccountPageFields["Timezone"] = "timezone";
|
|
34
34
|
AccountPageFields["Currency"] = "currency";
|
|
35
35
|
})(AccountPageFields || (exports.AccountPageFields = AccountPageFields = {}));
|
|
36
|
+
let UsersTableColumns;
|
|
37
|
+
exports.UsersTableColumns = UsersTableColumns;
|
|
38
|
+
(function (UsersTableColumns) {
|
|
39
|
+
UsersTableColumns["User"] = "user";
|
|
40
|
+
UsersTableColumns["Applications"] = "applications";
|
|
41
|
+
UsersTableColumns["Groups"] = "groups";
|
|
42
|
+
UsersTableColumns["Roles"] = "roles";
|
|
43
|
+
UsersTableColumns["JoinedAt"] = "joinedAt";
|
|
44
|
+
UsersTableColumns["LastSeen"] = "lastSeen";
|
|
45
|
+
UsersTableColumns["ManagedBy"] = "managedBy";
|
|
46
|
+
})(UsersTableColumns || (exports.UsersTableColumns = UsersTableColumns = {}));
|
|
36
47
|
let SubscriptionsPageFields;
|
|
37
48
|
exports.SubscriptionsPageFields = SubscriptionsPageFields;
|
|
38
49
|
(function (SubscriptionsPageFields) {
|
package/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v7.0.0-alpha.
|
|
1
|
+
/** @license Frontegg v7.0.0-alpha.3
|
|
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.
|
|
@@ -95,4 +95,15 @@ Object.keys(_CustomLoginTypes).forEach(function (key) {
|
|
|
95
95
|
return _CustomLoginTypes[key];
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
+
});
|
|
99
|
+
var _ShowAdminPortalOptions = require("./ShowAdminPortalOptions");
|
|
100
|
+
Object.keys(_ShowAdminPortalOptions).forEach(function (key) {
|
|
101
|
+
if (key === "default" || key === "__esModule") return;
|
|
102
|
+
if (key in exports && exports[key] === _ShowAdminPortalOptions[key]) return;
|
|
103
|
+
Object.defineProperty(exports, key, {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () {
|
|
106
|
+
return _ShowAdminPortalOptions[key];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
98
109
|
});
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.3",
|
|
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.
|
|
9
|
+
"@frontegg/redux-store": "7.0.0-alpha.3",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|