@frontegg/react-hooks 6.175.0 → 6.176.0-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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.175.0
1
+ /** @license Frontegg v6.176.0-alpha.0
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/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.175.0
1
+ /** @license Frontegg v6.176.0-alpha.0
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,318 @@
1
+ "use strict";
2
+
3
+ var _index = require("../index");
4
+ // noinspection JSUnusedLocalSymbols
5
+
6
+ /**
7
+ * useAuth hook typescript tests
8
+ */
9
+ {
10
+ const {
11
+ isAuthenticated,
12
+ isLoading
13
+ } = (0, _index.useAuth)();
14
+ const isLoadingDirect = (0, _index.useAuth)(state => state.isLoading);
15
+ isLoadingDirect.valueOf();
16
+ const {
17
+ user
18
+ } = (0, _index.useAuth)(state => ({
19
+ user: state.user
20
+ }));
21
+ const {
22
+ loginUrl
23
+ } = (0, _index.useAuth)(state => state.routes);
24
+ const {
25
+ loadProfile,
26
+ setLoginState
27
+ } = (0, _index.useAuthActions)();
28
+ }
29
+
30
+ /**
31
+ * useAcceptInvitationState hook typescript tests
32
+ */
33
+ {
34
+ const {
35
+ step
36
+ } = (0, _index.useAcceptInvitationState)();
37
+ const errorDirect = (0, _index.useAcceptInvitationState)(state => state.error);
38
+ errorDirect == null ? void 0 : errorDirect.substring(0);
39
+ const {
40
+ acceptInvitation
41
+ } = (0, _index.useAcceptInvitationActions)();
42
+ }
43
+
44
+ /**
45
+ * useActivateAccountState hook typescript tests
46
+ */
47
+ {
48
+ const {
49
+ step
50
+ } = (0, _index.useActivateAccountState)();
51
+ const loadingDirect = (0, _index.useActivateAccountState)(state => state.loading);
52
+ loadingDirect.valueOf();
53
+ const {
54
+ activateAccount
55
+ } = (0, _index.useActivateAccountActions)();
56
+ }
57
+
58
+ /**
59
+ * useApiTokensState hook typescript tests
60
+ */
61
+ {
62
+ const {
63
+ roles
64
+ } = (0, _index.useApiTokensState)();
65
+ const loadingDirect = (0, _index.useApiTokensState)(state => state.loaders);
66
+ let m = loadingDirect.LOAD_API_TOKENS;
67
+ const {
68
+ loadUserApiTokens
69
+ } = (0, _index.useApiTokensActions)();
70
+ }
71
+
72
+ /**
73
+ * useForgotPasswordState hook typescript tests
74
+ */
75
+ {
76
+ const {
77
+ step
78
+ } = (0, _index.useForgotPasswordState)();
79
+ const emailDirect = (0, _index.useForgotPasswordState)(state => state.email);
80
+ emailDirect.substring(0);
81
+ const {
82
+ forgotPassword
83
+ } = (0, _index.useForgotPasswordActions)();
84
+ }
85
+
86
+ /**
87
+ * useMfaState hook typescript tests
88
+ */
89
+ {
90
+ const {
91
+ step
92
+ } = (0, _index.useMfaState)();
93
+ const loadingDirect = (0, _index.useMfaState)(state => state.loading);
94
+ loadingDirect.valueOf();
95
+ const {
96
+ enrollMfa
97
+ } = (0, _index.useMfaActions)();
98
+ }
99
+
100
+ /**
101
+ * useLoginState hook typescript tests
102
+ */
103
+ {
104
+ const {
105
+ step
106
+ } = (0, _index.useLoginState)();
107
+ const loadingDirect = (0, _index.useLoginState)(state => state.loading);
108
+ loadingDirect.valueOf();
109
+ const {
110
+ logout
111
+ } = (0, _index.useLoginActions)();
112
+ }
113
+
114
+ /**
115
+ * useLoginState hook typescript tests
116
+ */
117
+ {
118
+ const {
119
+ profile
120
+ } = (0, _index.useProfileState)();
121
+ const loadingDirect = (0, _index.useProfileState)(state => state.loading);
122
+ loadingDirect.valueOf();
123
+ const {
124
+ loadProfile
125
+ } = (0, _index.useProfileActions)();
126
+ }
127
+
128
+ /**
129
+ * useResetPhoneNumberState hook typescript tests
130
+ */
131
+ {
132
+ const {
133
+ step
134
+ } = (0, _index.useResetPhoneNumberState)();
135
+ const loadingDirect = (0, _index.useResetPhoneNumberState)(state => state.loading);
136
+ loadingDirect.valueOf();
137
+ const {
138
+ resetPhoneNumber
139
+ } = (0, _index.useResetPhoneNumberActions)();
140
+ }
141
+
142
+ /**
143
+ * useRolesState hook typescript tests
144
+ */
145
+ {
146
+ const {
147
+ saving
148
+ } = (0, _index.useRolesState)();
149
+ const loadingDirect = (0, _index.useRolesState)(state => state.loading);
150
+ loadingDirect.valueOf();
151
+ const {
152
+ loadRolesAndPermissions
153
+ } = (0, _index.useRolesActions)();
154
+ }
155
+
156
+ /**
157
+ * useSecurityPolicyState hook typescript tests
158
+ */
159
+ {
160
+ const {
161
+ lockoutPolicy
162
+ } = (0, _index.useSecurityPolicyState)();
163
+ const captchaPolicy = (0, _index.useSecurityPolicyState)(state => state.captchaPolicy);
164
+ captchaPolicy.loading.valueOf();
165
+ const {
166
+ loadPublicSecurityPolicy
167
+ } = (0, _index.useSecurityPolicyActions)();
168
+ }
169
+
170
+ /**
171
+ * useSessionsState hook typescript tests
172
+ */
173
+ {
174
+ const {
175
+ sessions
176
+ } = (0, _index.useSessionsState)();
177
+ const loadingDirect = (0, _index.useSessionsState)(state => state.loading);
178
+ loadingDirect.valueOf();
179
+ const {
180
+ deleteUserSession
181
+ } = (0, _index.useSessionsActions)();
182
+ }
183
+
184
+ /**
185
+ * useSessionsPolicyState hook typescript tests
186
+ */
187
+ {
188
+ const {
189
+ configurations
190
+ } = (0, _index.useSessionsPolicyState)();
191
+ const loadingDirect = (0, _index.useSessionsPolicyState)(state => state.loading);
192
+ loadingDirect.valueOf();
193
+ const {
194
+ resetSessionsPolicyState
195
+ } = (0, _index.useSessionsPolicyActions)();
196
+ }
197
+
198
+ /**
199
+ * useSSOState hook typescript tests
200
+ */
201
+ {
202
+ const {
203
+ authorizationRoles
204
+ } = (0, _index.useSSOState)();
205
+ const loadingDirect = (0, _index.useSSOState)(state => state.loading);
206
+ loadingDirect.valueOf();
207
+ const {
208
+ loadSSOConfigurationsV2
209
+ } = (0, _index.useSSOActions)();
210
+ }
211
+
212
+ /**
213
+ * useSignUpState hook typescript tests
214
+ */
215
+ {
216
+ const {
217
+ stage
218
+ } = (0, _index.useSignUpState)();
219
+ const loadingDirect = (0, _index.useSignUpState)(state => state.loading);
220
+ loadingDirect.valueOf();
221
+ const {
222
+ setSignUpState
223
+ } = (0, _index.useSignUpActions)();
224
+ }
225
+
226
+ /**
227
+ * useSocialLoginState hook typescript tests
228
+ */
229
+ {
230
+ const {
231
+ socialLoginsConfig
232
+ } = (0, _index.useSocialLoginState)();
233
+ const loadingDirect = (0, _index.useSocialLoginState)(state => state.loading);
234
+ loadingDirect.valueOf();
235
+ const {
236
+ loadSocialLoginsConfiguration
237
+ } = (0, _index.useSocialLoginActions)();
238
+ }
239
+
240
+ /**
241
+ * useSocialLoginState hook typescript tests
242
+ */
243
+ {
244
+ const {
245
+ tenants
246
+ } = (0, _index.useTenantsState)();
247
+ const loadingDirect = (0, _index.useTenantsState)(state => state.loading);
248
+ loadingDirect.valueOf();
249
+ const {
250
+ loadTenants
251
+ } = (0, _index.useTenantsActions)();
252
+ }
253
+
254
+ /**
255
+ * useVendorState hook typescript tests
256
+ */
257
+ {
258
+ const {
259
+ loading
260
+ } = (0, _index.useVendorState)();
261
+ const isLoadingDirect = (0, _index.useVendorState)(state => state.loading);
262
+ isLoadingDirect.valueOf();
263
+ const {
264
+ whiteLabelMode
265
+ } = (0, _index.useVendorState)(state => ({
266
+ whiteLabelMode: state.whiteLabelMode
267
+ }));
268
+ const {
269
+ loadVendorPublicInfo
270
+ } = (0, _index.useVendorActions)();
271
+ }
272
+
273
+ /**
274
+ * useConnectivityState hook typescript tests
275
+ */
276
+ {
277
+ const {
278
+ isLoading,
279
+ error
280
+ } = (0, _index.useConnectivityState)();
281
+ const processIds = (0, _index.useConnectivityState)(state => state.processIds);
282
+ processIds.map(id => id);
283
+ const {
284
+ email
285
+ } = (0, _index.useConnectivityState)(state => {
286
+ var _state$email;
287
+ return {
288
+ email: (_state$email = state.email) != null ? _state$email : []
289
+ };
290
+ });
291
+ email.length;
292
+ const {
293
+ loadScope,
294
+ loadDataAction
295
+ } = (0, _index.useConnectivityActions)();
296
+ }
297
+
298
+ /**
299
+ * useAuditsState hook typescript tests
300
+ */
301
+ {
302
+ const {
303
+ auditLogsState
304
+ } = (0, _index.useAuditsState)();
305
+ const {
306
+ columns
307
+ } = (0, _index.useAuditsState)(state => state.auditsMetadataState);
308
+ const {
309
+ loading
310
+ } = (0, _index.useAuditsState)(state => ({
311
+ loading: state.auditLogsState.loading
312
+ }));
313
+ loading.valueOf();
314
+ let x = columns == null ? void 0 : columns.length;
315
+ const {
316
+ loadAuditLogs
317
+ } = (0, _index.useAuditsActions)();
318
+ }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/react-hooks",
3
- "version": "6.175.0",
3
+ "version": "6.176.0-alpha.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/redux-store": "6.175.0",
10
- "@frontegg/types": "6.175.0",
9
+ "@frontegg/redux-store": "6.176.0-alpha.0",
10
+ "@frontegg/types": "6.176.0-alpha.0",
11
11
  "@types/react": "*",
12
12
  "get-value": "^3.0.1",
13
13
  "react-redux": "^7.x"
@@ -0,0 +1,317 @@
1
+ // noinspection JSUnusedLocalSymbols
2
+
3
+ import { useAcceptInvitationActions, useAcceptInvitationState, useActivateAccountActions, useActivateAccountState, useApiTokensActions, useApiTokensState, useAuditsActions, useAuditsState, useAuth, useAuthActions, useConnectivityActions, useConnectivityState, useForgotPasswordActions, useForgotPasswordState, useLoginActions, useLoginState, useMfaActions, useMfaState, useProfileActions, useProfileState, useResetPhoneNumberActions, useResetPhoneNumberState, useRolesActions, useRolesState, useSecurityPolicyActions, useSecurityPolicyState, useSessionsActions, useSessionsPolicyActions, useSessionsPolicyState, useSessionsState, useSignUpActions, useSignUpState, useSocialLoginActions, useSocialLoginState, useSSOActions, useSSOState, useTenantsActions, useTenantsState, useVendorActions, useVendorState } from '../index';
4
+
5
+ /**
6
+ * useAuth hook typescript tests
7
+ */
8
+ {
9
+ const {
10
+ isAuthenticated,
11
+ isLoading
12
+ } = useAuth();
13
+ const isLoadingDirect = useAuth(state => state.isLoading);
14
+ isLoadingDirect.valueOf();
15
+ const {
16
+ user
17
+ } = useAuth(state => ({
18
+ user: state.user
19
+ }));
20
+ const {
21
+ loginUrl
22
+ } = useAuth(state => state.routes);
23
+ const {
24
+ loadProfile,
25
+ setLoginState
26
+ } = useAuthActions();
27
+ }
28
+
29
+ /**
30
+ * useAcceptInvitationState hook typescript tests
31
+ */
32
+ {
33
+ const {
34
+ step
35
+ } = useAcceptInvitationState();
36
+ const errorDirect = useAcceptInvitationState(state => state.error);
37
+ errorDirect == null ? void 0 : errorDirect.substring(0);
38
+ const {
39
+ acceptInvitation
40
+ } = useAcceptInvitationActions();
41
+ }
42
+
43
+ /**
44
+ * useActivateAccountState hook typescript tests
45
+ */
46
+ {
47
+ const {
48
+ step
49
+ } = useActivateAccountState();
50
+ const loadingDirect = useActivateAccountState(state => state.loading);
51
+ loadingDirect.valueOf();
52
+ const {
53
+ activateAccount
54
+ } = useActivateAccountActions();
55
+ }
56
+
57
+ /**
58
+ * useApiTokensState hook typescript tests
59
+ */
60
+ {
61
+ const {
62
+ roles
63
+ } = useApiTokensState();
64
+ const loadingDirect = useApiTokensState(state => state.loaders);
65
+ let m = loadingDirect.LOAD_API_TOKENS;
66
+ const {
67
+ loadUserApiTokens
68
+ } = useApiTokensActions();
69
+ }
70
+
71
+ /**
72
+ * useForgotPasswordState hook typescript tests
73
+ */
74
+ {
75
+ const {
76
+ step
77
+ } = useForgotPasswordState();
78
+ const emailDirect = useForgotPasswordState(state => state.email);
79
+ emailDirect.substring(0);
80
+ const {
81
+ forgotPassword
82
+ } = useForgotPasswordActions();
83
+ }
84
+
85
+ /**
86
+ * useMfaState hook typescript tests
87
+ */
88
+ {
89
+ const {
90
+ step
91
+ } = useMfaState();
92
+ const loadingDirect = useMfaState(state => state.loading);
93
+ loadingDirect.valueOf();
94
+ const {
95
+ enrollMfa
96
+ } = useMfaActions();
97
+ }
98
+
99
+ /**
100
+ * useLoginState hook typescript tests
101
+ */
102
+ {
103
+ const {
104
+ step
105
+ } = useLoginState();
106
+ const loadingDirect = useLoginState(state => state.loading);
107
+ loadingDirect.valueOf();
108
+ const {
109
+ logout
110
+ } = useLoginActions();
111
+ }
112
+
113
+ /**
114
+ * useLoginState hook typescript tests
115
+ */
116
+ {
117
+ const {
118
+ profile
119
+ } = useProfileState();
120
+ const loadingDirect = useProfileState(state => state.loading);
121
+ loadingDirect.valueOf();
122
+ const {
123
+ loadProfile
124
+ } = useProfileActions();
125
+ }
126
+
127
+ /**
128
+ * useResetPhoneNumberState hook typescript tests
129
+ */
130
+ {
131
+ const {
132
+ step
133
+ } = useResetPhoneNumberState();
134
+ const loadingDirect = useResetPhoneNumberState(state => state.loading);
135
+ loadingDirect.valueOf();
136
+ const {
137
+ resetPhoneNumber
138
+ } = useResetPhoneNumberActions();
139
+ }
140
+
141
+ /**
142
+ * useRolesState hook typescript tests
143
+ */
144
+ {
145
+ const {
146
+ saving
147
+ } = useRolesState();
148
+ const loadingDirect = useRolesState(state => state.loading);
149
+ loadingDirect.valueOf();
150
+ const {
151
+ loadRolesAndPermissions
152
+ } = useRolesActions();
153
+ }
154
+
155
+ /**
156
+ * useSecurityPolicyState hook typescript tests
157
+ */
158
+ {
159
+ const {
160
+ lockoutPolicy
161
+ } = useSecurityPolicyState();
162
+ const captchaPolicy = useSecurityPolicyState(state => state.captchaPolicy);
163
+ captchaPolicy.loading.valueOf();
164
+ const {
165
+ loadPublicSecurityPolicy
166
+ } = useSecurityPolicyActions();
167
+ }
168
+
169
+ /**
170
+ * useSessionsState hook typescript tests
171
+ */
172
+ {
173
+ const {
174
+ sessions
175
+ } = useSessionsState();
176
+ const loadingDirect = useSessionsState(state => state.loading);
177
+ loadingDirect.valueOf();
178
+ const {
179
+ deleteUserSession
180
+ } = useSessionsActions();
181
+ }
182
+
183
+ /**
184
+ * useSessionsPolicyState hook typescript tests
185
+ */
186
+ {
187
+ const {
188
+ configurations
189
+ } = useSessionsPolicyState();
190
+ const loadingDirect = useSessionsPolicyState(state => state.loading);
191
+ loadingDirect.valueOf();
192
+ const {
193
+ resetSessionsPolicyState
194
+ } = useSessionsPolicyActions();
195
+ }
196
+
197
+ /**
198
+ * useSSOState hook typescript tests
199
+ */
200
+ {
201
+ const {
202
+ authorizationRoles
203
+ } = useSSOState();
204
+ const loadingDirect = useSSOState(state => state.loading);
205
+ loadingDirect.valueOf();
206
+ const {
207
+ loadSSOConfigurationsV2
208
+ } = useSSOActions();
209
+ }
210
+
211
+ /**
212
+ * useSignUpState hook typescript tests
213
+ */
214
+ {
215
+ const {
216
+ stage
217
+ } = useSignUpState();
218
+ const loadingDirect = useSignUpState(state => state.loading);
219
+ loadingDirect.valueOf();
220
+ const {
221
+ setSignUpState
222
+ } = useSignUpActions();
223
+ }
224
+
225
+ /**
226
+ * useSocialLoginState hook typescript tests
227
+ */
228
+ {
229
+ const {
230
+ socialLoginsConfig
231
+ } = useSocialLoginState();
232
+ const loadingDirect = useSocialLoginState(state => state.loading);
233
+ loadingDirect.valueOf();
234
+ const {
235
+ loadSocialLoginsConfiguration
236
+ } = useSocialLoginActions();
237
+ }
238
+
239
+ /**
240
+ * useSocialLoginState hook typescript tests
241
+ */
242
+ {
243
+ const {
244
+ tenants
245
+ } = useTenantsState();
246
+ const loadingDirect = useTenantsState(state => state.loading);
247
+ loadingDirect.valueOf();
248
+ const {
249
+ loadTenants
250
+ } = useTenantsActions();
251
+ }
252
+
253
+ /**
254
+ * useVendorState hook typescript tests
255
+ */
256
+ {
257
+ const {
258
+ loading
259
+ } = useVendorState();
260
+ const isLoadingDirect = useVendorState(state => state.loading);
261
+ isLoadingDirect.valueOf();
262
+ const {
263
+ whiteLabelMode
264
+ } = useVendorState(state => ({
265
+ whiteLabelMode: state.whiteLabelMode
266
+ }));
267
+ const {
268
+ loadVendorPublicInfo
269
+ } = useVendorActions();
270
+ }
271
+
272
+ /**
273
+ * useConnectivityState hook typescript tests
274
+ */
275
+ {
276
+ const {
277
+ isLoading,
278
+ error
279
+ } = useConnectivityState();
280
+ const processIds = useConnectivityState(state => state.processIds);
281
+ processIds.map(id => id);
282
+ const {
283
+ email
284
+ } = useConnectivityState(state => {
285
+ var _state$email;
286
+ return {
287
+ email: (_state$email = state.email) != null ? _state$email : []
288
+ };
289
+ });
290
+ email.length;
291
+ const {
292
+ loadScope,
293
+ loadDataAction
294
+ } = useConnectivityActions();
295
+ }
296
+
297
+ /**
298
+ * useAuditsState hook typescript tests
299
+ */
300
+ {
301
+ const {
302
+ auditLogsState
303
+ } = useAuditsState();
304
+ const {
305
+ columns
306
+ } = useAuditsState(state => state.auditsMetadataState);
307
+ const {
308
+ loading
309
+ } = useAuditsState(state => ({
310
+ loading: state.auditLogsState.loading
311
+ }));
312
+ loading.valueOf();
313
+ let x = columns == null ? void 0 : columns.length;
314
+ const {
315
+ loadAuditLogs
316
+ } = useAuditsActions();
317
+ }