@frontegg/types 7.92.0 → 7.93.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.
|
@@ -7,7 +7,9 @@ export interface UsersTableContextData {
|
|
|
7
7
|
searchQuery: string;
|
|
8
8
|
searching: boolean;
|
|
9
9
|
identifierType?: string;
|
|
10
|
+
filterType?: string;
|
|
10
11
|
onSearch: (query: string) => void;
|
|
12
|
+
setFilterType?: (filterType: string) => void;
|
|
11
13
|
}
|
|
12
14
|
export interface UseTableStoreOptions {
|
|
13
15
|
id?: string;
|
|
@@ -19,6 +19,35 @@ export interface UsersLocalization {
|
|
|
19
19
|
* Text to be displayed as table placeholder while loading content based on search query
|
|
20
20
|
*/
|
|
21
21
|
searchingPlaceholder: string;
|
|
22
|
+
/**
|
|
23
|
+
* Filter option for email
|
|
24
|
+
*/
|
|
25
|
+
filterOptionEmail: string;
|
|
26
|
+
/**
|
|
27
|
+
* Filter option for full name
|
|
28
|
+
*/
|
|
29
|
+
filterOptionFullName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Filter option for username
|
|
32
|
+
*/
|
|
33
|
+
filterOptionUsername: string;
|
|
34
|
+
/**
|
|
35
|
+
* Filter option for phone number
|
|
36
|
+
*/
|
|
37
|
+
filterOptionPhoneNumber: string;
|
|
38
|
+
/**
|
|
39
|
+
* Search by email placeholder (default when no filters available)
|
|
40
|
+
*/
|
|
41
|
+
searchByEmailPlaceholder: string;
|
|
42
|
+
/**
|
|
43
|
+
* Search by filter placeholder with filter name interpolation
|
|
44
|
+
* EX: 'Search by {{filter}}'
|
|
45
|
+
*/
|
|
46
|
+
searchByFilterPlaceholder: string;
|
|
47
|
+
/**
|
|
48
|
+
* Filter menu header text
|
|
49
|
+
*/
|
|
50
|
+
filterSearchBy: string;
|
|
22
51
|
/**
|
|
23
52
|
* Me tooltip indicator for users table row if it's the same logged in user
|
|
24
53
|
*/
|
|
@@ -78,11 +78,21 @@ export interface InviteUserByEmailOptions {
|
|
|
78
78
|
export interface InviteUserModalOptions {
|
|
79
79
|
inviteByEmail?: InviteUserByEmailOptions;
|
|
80
80
|
}
|
|
81
|
+
export interface SearchFilterOption {
|
|
82
|
+
visibility: 'always' | 'hidden';
|
|
83
|
+
}
|
|
84
|
+
export interface SearchFilterOptions {
|
|
85
|
+
email?: SearchFilterOption;
|
|
86
|
+
fullName?: SearchFilterOption;
|
|
87
|
+
username?: SearchFilterOption;
|
|
88
|
+
phoneNumber?: SearchFilterOption;
|
|
89
|
+
}
|
|
81
90
|
export interface UsersPageThemeOptions extends PageThemeOptions {
|
|
82
91
|
/** @Deprecated please use inviteUserModal.inviteByEmail.enabled = false to hide invite with email **/
|
|
83
92
|
hideInviteWithEmail?: boolean;
|
|
84
93
|
inviteUserModal?: InviteUserModalOptions;
|
|
85
94
|
fieldsProperties?: UsersFieldsProperties;
|
|
95
|
+
searchFilterOptions?: SearchFilterOptions;
|
|
86
96
|
}
|
|
87
97
|
export interface SubscriptionsPageThemeOptions extends PageThemeOptions {
|
|
88
98
|
fieldsProperties?: SubscriptionsFieldsProperties;
|
package/index.js
CHANGED
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.93.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.
|
|
9
|
+
"@frontegg/redux-store": "7.93.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|