@asgardeo/react 0.2.4 → 0.4.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/README.md +112 -6
- package/dist/AsgardeoReactClient.d.ts +38 -0
- package/dist/__temp__/api.d.ts +228 -0
- package/dist/__temp__/models.d.ts +97 -0
- package/dist/api/scim2/getMeProfile.d.ts +39 -0
- package/dist/api/scim2/getSchemas.d.ts +39 -0
- package/dist/api/scim2/updateMeProfile.d.ts +38 -0
- package/dist/cjs/index.js +17998 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/components/actions/SignInButton/BaseSignInButton.d.ts +66 -0
- package/dist/components/actions/SignInButton/SignInButton.d.ts +65 -0
- package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts +66 -0
- package/dist/components/actions/SignOutButton/SignOutButton.d.ts +65 -0
- package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts +66 -0
- package/dist/components/actions/SignUpButton/SignUpButton.d.ts +66 -0
- package/dist/components/control/SignedIn.d.ts +45 -0
- package/dist/components/control/SignedOut.d.ts +45 -0
- package/dist/components/factories/FieldFactory.d.ts +107 -0
- package/dist/components/presentation/SignIn/BaseSignIn.d.ts +125 -0
- package/dist/components/presentation/SignIn/SignIn.d.ts +62 -0
- package/dist/{esm/types/hooks/use-config.d.ts → components/presentation/SignIn/options/EmailOtp.d.ts} +7 -5
- package/dist/components/presentation/SignIn/options/FacebookButton.d.ts +25 -0
- package/dist/components/presentation/SignIn/options/GitHubButton.d.ts +25 -0
- package/dist/components/presentation/SignIn/options/GoogleButton.d.ts +25 -0
- package/dist/components/presentation/SignIn/options/IdentifierFirst.d.ts +25 -0
- package/dist/components/presentation/SignIn/options/LinkedInButton.d.ts +25 -0
- package/dist/{esm/types/components/SignIn/fragments/SmsOtp.d.ts → components/presentation/SignIn/options/MicrosoftButton.d.ts} +9 -5
- package/dist/components/presentation/SignIn/options/MultiOptionButton.d.ts +26 -0
- package/dist/components/presentation/SignIn/options/SignInOptionFactory.d.ts +76 -0
- package/dist/{esm/types/components/SignOutButton/SignOutButton.d.ts → components/presentation/SignIn/options/SignInWithEthereumButton.d.ts} +7 -9
- package/dist/{esm/types/contexts/branding-preference-context.d.ts → components/presentation/SignIn/options/SmsOtp.d.ts} +9 -5
- package/dist/components/presentation/SignIn/options/SocialButton.d.ts +25 -0
- package/dist/{esm/types/contexts/asgardeo-context.d.ts → components/presentation/SignIn/options/Totp.d.ts} +9 -5
- package/dist/components/presentation/SignIn/options/UsernamePassword.d.ts +25 -0
- package/dist/components/presentation/SignIn/types.d.ts +124 -0
- package/dist/components/presentation/User/BaseUser.d.ts +66 -0
- package/dist/components/presentation/User/User.d.ts +62 -0
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.d.ts +76 -0
- package/dist/components/presentation/UserDropdown/UserDropdown.d.ts +49 -0
- package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +63 -0
- package/dist/components/presentation/UserProfile/UserProfile.d.ts +49 -0
- package/dist/components/primitives/Alert/Alert.d.ts +74 -0
- package/dist/{esm/types/components/SignIn/SignIn.d.ts → components/primitives/Avatar/Avatar.d.ts} +25 -14
- package/dist/components/primitives/Button/Button.d.ts +83 -0
- package/dist/components/primitives/Card/Card.d.ts +133 -0
- package/dist/{esm/types/oxygen-ui-react-auth-components/models/component.d.ts → components/primitives/Checkbox/Checkbox.d.ts} +22 -7
- package/dist/components/primitives/DatePicker/DatePicker.d.ts +50 -0
- package/dist/components/primitives/Divider/Divider.d.ts +58 -0
- package/dist/components/primitives/FormControl/FormControl.d.ts +50 -0
- package/dist/components/primitives/Icons/CircleAlert.d.ts +23 -0
- package/dist/components/primitives/Icons/CircleCheck.d.ts +23 -0
- package/dist/{esm/types/models/use-config.d.ts → components/primitives/Icons/Eye.d.ts} +7 -6
- package/dist/{esm/types/contexts/i18n-context.d.ts → components/primitives/Icons/EyeOff.d.ts} +7 -5
- package/dist/{esm/types/hooks/use-on.d.ts → components/primitives/Icons/Info.d.ts} +7 -4
- package/dist/components/primitives/Icons/TriangleAlert.d.ts +23 -0
- package/dist/components/primitives/InputLabel/InputLabel.d.ts +46 -0
- package/dist/components/primitives/OtpField/OtpField.d.ts +86 -0
- package/dist/{esm/types/components/SignInButton/SignInButton.d.ts → components/primitives/PasswordField/PasswordField.d.ts} +13 -11
- package/dist/components/primitives/Popover/Popover.d.ts +96 -0
- package/dist/components/primitives/Select/Select.d.ts +60 -0
- package/dist/components/primitives/Spinner/Spinner.d.ts +54 -0
- package/dist/components/primitives/TextField/TextField.d.ts +62 -0
- package/dist/components/primitives/Typography/Typography.d.ts +81 -0
- package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +57 -0
- package/dist/{esm/types/components/public-components.d.ts → contexts/Asgardeo/AsgardeoProvider.d.ts} +9 -6
- package/dist/contexts/Asgardeo/useAsgardeo.d.ts +20 -0
- package/dist/contexts/Flow/FlowContext.d.ts +73 -0
- package/dist/contexts/Flow/FlowProvider.d.ts +46 -0
- package/dist/contexts/Flow/useFlow.d.ts +48 -0
- package/dist/contexts/I18n/I18nContext.d.ts +42 -0
- package/dist/{esm/types/components/SignedIn/SignedIn.d.ts → contexts/I18n/I18nProvider.d.ts} +12 -10
- package/dist/contexts/I18n/useI18n.d.ts +27 -0
- package/dist/{esm/types/models/asgardeo-provider-props.d.ts → contexts/Theme/ThemeContext.d.ts} +8 -7
- package/dist/{esm/types/models/branding-preference-provider-props.d.ts → contexts/Theme/ThemeProvider.d.ts} +8 -5
- package/dist/{esm/types/models/use-on.d.ts → contexts/Theme/types.d.ts} +22 -12
- package/dist/{esm/types/models/signed-props.d.ts → contexts/Theme/useTheme.d.ts} +4 -6
- package/dist/contexts/User/UserContext.d.ts +32 -0
- package/dist/contexts/User/UserProvider.d.ts +55 -0
- package/dist/contexts/User/useUser.d.ts +94 -0
- package/dist/hooks/useBrowserUrl.d.ts +47 -0
- package/dist/hooks/useForm.d.ts +192 -0
- package/dist/hooks/useTranslation.d.ts +52 -0
- package/dist/index.d.ts +121 -348
- package/dist/index.js +18064 -0
- package/dist/index.js.map +7 -0
- package/dist/{esm/types/models/public-models.d.ts → models/config.d.ts} +3 -3
- package/dist/utils/getMappedUserProfileValue.d.ts +51 -0
- package/package.json +55 -59
- package/dist/esm/index.js +0 -45278
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/components/SignIn/fragments/BasicAuth.d.ts +0 -35
- package/dist/esm/types/components/SignIn/fragments/EmailOtp.d.ts +0 -32
- package/dist/esm/types/components/SignIn/fragments/IdentifierFirst.d.ts +0 -35
- package/dist/esm/types/components/SignIn/fragments/LoginOptionsBox.d.ts +0 -30
- package/dist/esm/types/components/SignIn/fragments/Totp.d.ts +0 -33
- package/dist/esm/types/components/SignedOut/SignedOut.d.ts +0 -29
- package/dist/esm/types/hooks/use-authentication.d.ts +0 -27
- package/dist/esm/types/hooks/use-translations.d.ts +0 -33
- package/dist/esm/types/index.d.ts +0 -22
- package/dist/esm/types/models/auth-context.d.ts +0 -43
- package/dist/esm/types/models/basic-auth-props.d.ts +0 -29
- package/dist/esm/types/models/email-otp-props.d.ts +0 -26
- package/dist/esm/types/models/i18n.d.ts +0 -34
- package/dist/esm/types/models/jwt-verify-options.d.ts +0 -25
- package/dist/esm/types/models/login-options-box-props.d.ts +0 -24
- package/dist/esm/types/models/sign-in.d.ts +0 -49
- package/dist/esm/types/models/totp-props.d.ts +0 -26
- package/dist/esm/types/models/use-authentication.d.ts +0 -29
- package/dist/esm/types/models/use-translations.d.ts +0 -22
- package/dist/esm/types/oxygen-ui-react-auth-components/SignIn/SignIn.d.ts +0 -79
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInAlert/SignInAlert.d.ts +0 -37
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInButton/SignInButton.d.ts +0 -27
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInDivider/SignInDivider.d.ts +0 -26
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInFooter/SignInFooter.d.ts +0 -29
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInImage/SignInImage.d.ts +0 -23
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInLink/SignInLink.d.ts +0 -25
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInPaper/SignInPaper.d.ts +0 -26
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInPinInput/SignInPinInput.d.ts +0 -30
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInTextField/SignInTextField.d.ts +0 -26
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInTypography/SignInTypography.d.ts +0 -32
- package/dist/esm/types/oxygen-ui-react-auth-components/index.d.ts +0 -19
- package/dist/esm/types/providers/AsgardeoProvider.d.ts +0 -34
- package/dist/esm/types/providers/BrandingPreferenceProvider.d.ts +0 -32
- package/dist/esm/types/providers/I18nProvider.d.ts +0 -33
- package/dist/esm/types/theme/generate-theme-sign-in.d.ts +0 -28
- package/dist/esm/types/theme/generate-theme.d.ts +0 -30
- package/dist/esm/types/utils/crypto-utils.d.ts +0 -52
- package/dist/esm/types/utils/session-store.d.ts +0 -25
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { ReactElement, FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { BrandingProps, UIAuthConfig, Store, AuthApiResponse, MeAPIResponse } from '@asgardeo/js';
|
|
3
|
-
export { UIAuthConfig } from '@asgardeo/js';
|
|
4
|
-
|
|
5
1
|
/**
|
|
6
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
7
3
|
*
|
|
8
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
9
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -19,346 +15,123 @@ export { UIAuthConfig } from '@asgardeo/js';
|
|
|
19
15
|
* specific language governing permissions and limitations
|
|
20
16
|
* under the License.
|
|
21
17
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
|
|
41
|
-
*
|
|
42
|
-
|
|
43
|
-
*
|
|
44
|
-
|
|
45
|
-
*
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
*
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
*
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
*
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
*
|
|
70
|
-
|
|
71
|
-
*
|
|
72
|
-
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
*
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
*
|
|
92
|
-
|
|
93
|
-
*
|
|
94
|
-
|
|
95
|
-
*
|
|
96
|
-
|
|
97
|
-
*
|
|
98
|
-
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
*
|
|
110
|
-
|
|
111
|
-
*
|
|
112
|
-
|
|
113
|
-
*
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
*
|
|
120
|
-
|
|
121
|
-
*
|
|
122
|
-
|
|
123
|
-
*
|
|
124
|
-
|
|
125
|
-
*
|
|
126
|
-
|
|
127
|
-
*
|
|
128
|
-
|
|
129
|
-
*
|
|
130
|
-
|
|
131
|
-
*
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
*
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
*/
|
|
143
|
-
declare const SignedOut: FC<PropsWithChildren<SignedProps>>;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
|
|
147
|
-
*
|
|
148
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
149
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
150
|
-
* in compliance with the License.
|
|
151
|
-
* You may obtain a copy of the License at
|
|
152
|
-
*
|
|
153
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
154
|
-
*
|
|
155
|
-
* Unless required by applicable law or agreed to in writing,
|
|
156
|
-
* software distributed under the License is distributed on an
|
|
157
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
158
|
-
* KIND, either express or implied. See the License for the
|
|
159
|
-
* specific language governing permissions and limitations
|
|
160
|
-
* under the License.
|
|
161
|
-
*/
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* SignInButton component. This button will render a modal with the SignIn component when clicked.
|
|
165
|
-
*
|
|
166
|
-
* @param {Object} props - Component props.
|
|
167
|
-
* @param {ReactElement} props.customComponent - Optional custom component to be rendered.
|
|
168
|
-
* @returns {ReactElement} Rendered SignInButton component.
|
|
169
|
-
*/
|
|
170
|
-
declare const SignInButton: (props: SignInButtonProps) => ReactElement;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
|
|
174
|
-
*
|
|
175
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
176
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
177
|
-
* in compliance with the License.
|
|
178
|
-
* You may obtain a copy of the License at
|
|
179
|
-
*
|
|
180
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
181
|
-
*
|
|
182
|
-
* Unless required by applicable law or agreed to in writing,
|
|
183
|
-
* software distributed under the License is distributed on an
|
|
184
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
185
|
-
* KIND, either express or implied. See the License for the
|
|
186
|
-
* specific language governing permissions and limitations
|
|
187
|
-
* under the License.
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* SignOutButton component.
|
|
192
|
-
*
|
|
193
|
-
* This component renders a sign out button. When clicked, it triggers the sign out process.
|
|
194
|
-
*
|
|
195
|
-
* @returns {ReactElement} Rendered SignOutButton component.
|
|
196
|
-
*/
|
|
197
|
-
declare const SignOutButton: () => ReactElement;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
201
|
-
*
|
|
202
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
203
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
204
|
-
* in compliance with the License.
|
|
205
|
-
* You may obtain a copy of the License at
|
|
206
|
-
*
|
|
207
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
208
|
-
*
|
|
209
|
-
* Unless required by applicable law or agreed to in writing,
|
|
210
|
-
* software distributed under the License is distributed on an
|
|
211
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
212
|
-
* KIND, either express or implied. See the License for the
|
|
213
|
-
* specific language governing permissions and limitations
|
|
214
|
-
* under the License.
|
|
215
|
-
*/
|
|
216
|
-
declare enum Hooks {
|
|
217
|
-
SignIn = 0,
|
|
218
|
-
SignOut = 1
|
|
219
|
-
}
|
|
220
|
-
interface UseOnProps {
|
|
221
|
-
/**
|
|
222
|
-
* The callback to be executed when the event is triggered.
|
|
223
|
-
*/
|
|
224
|
-
callback: (response?: any) => void | Promise<void>;
|
|
225
|
-
/**
|
|
226
|
-
* The event to listen to.
|
|
227
|
-
*/
|
|
228
|
-
event: Hooks;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
233
|
-
*
|
|
234
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
235
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
236
|
-
* in compliance with the License.
|
|
237
|
-
* You may obtain a copy of the License at
|
|
238
|
-
*
|
|
239
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
240
|
-
*
|
|
241
|
-
* Unless required by applicable law or agreed to in writing,
|
|
242
|
-
* software distributed under the License is distributed on an
|
|
243
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
244
|
-
* KIND, either express or implied. See the License for the
|
|
245
|
-
* specific language governing permissions and limitations
|
|
246
|
-
* under the License.
|
|
247
|
-
*/
|
|
248
|
-
|
|
249
|
-
interface AsgardeoProviderProps {
|
|
250
|
-
branding?: BrandingProps;
|
|
251
|
-
config: UIAuthConfig;
|
|
252
|
-
store?: Store;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
257
|
-
*
|
|
258
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
259
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
260
|
-
* in compliance with the License.
|
|
261
|
-
* You may obtain a copy of the License at
|
|
262
|
-
*
|
|
263
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
264
|
-
*
|
|
265
|
-
* Unless required by applicable law or agreed to in writing,
|
|
266
|
-
* software distributed under the License is distributed on an
|
|
267
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
268
|
-
* KIND, either express or implied. See the License for the
|
|
269
|
-
* specific language governing permissions and limitations
|
|
270
|
-
* under the License.
|
|
271
|
-
*/
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* `AsgardeoProvider` is a component that provides an Asgardeo context to all its children.
|
|
275
|
-
* It takes an object of type `AsgardeProviderProps` as props, which includes the children to render,
|
|
276
|
-
* a configuration object, a store instance, and a branding object.
|
|
277
|
-
*
|
|
278
|
-
* @param {PropsWithChildren<AsgardeoProviderProps>} props - The properties passed to the component.
|
|
279
|
-
* @param {ReactNode} props.children - The children to render inside the provider.
|
|
280
|
-
* @param {Config} props.config - The configuration object for the Asgardeo context.
|
|
281
|
-
* @param {Store} [props.store] - An optional store instance. If not provided, a new SessionStore will be created.
|
|
282
|
-
* @param {Branding} props.branding - The branding object for the Asgardeo context.
|
|
283
|
-
*
|
|
284
|
-
* @returns {ReactElement} A React element that provides the Asgardeo context to all its children.
|
|
285
|
-
*/
|
|
286
|
-
declare const AsgardeoProvider: FC<PropsWithChildren<AsgardeoProviderProps>>;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
290
|
-
*
|
|
291
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
292
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
293
|
-
* in compliance with the License.
|
|
294
|
-
* You may obtain a copy of the License at
|
|
295
|
-
*
|
|
296
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
297
|
-
*
|
|
298
|
-
* Unless required by applicable law or agreed to in writing,
|
|
299
|
-
* software distributed under the License is distributed on an
|
|
300
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
301
|
-
* KIND, either express or implied. See the License for the
|
|
302
|
-
* specific language governing permissions and limitations
|
|
303
|
-
* under the License.
|
|
304
|
-
*/
|
|
305
|
-
|
|
306
|
-
interface UseAuthentication {
|
|
307
|
-
accessToken: string;
|
|
308
|
-
authResponse: AuthApiResponse;
|
|
309
|
-
isAuthenticated: Promise<boolean> | boolean;
|
|
310
|
-
isGlobalLoading: boolean;
|
|
311
|
-
setUsername: (username: string) => void;
|
|
312
|
-
signOut: () => void;
|
|
313
|
-
user: MeAPIResponse;
|
|
314
|
-
username: string;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
319
|
-
*
|
|
320
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
321
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
322
|
-
* in compliance with the License.
|
|
323
|
-
* You may obtain a copy of the License at
|
|
324
|
-
*
|
|
325
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
326
|
-
*
|
|
327
|
-
* Unless required by applicable law or agreed to in writing,
|
|
328
|
-
* software distributed under the License is distributed on an
|
|
329
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
330
|
-
* KIND, either express or implied. See the License for the
|
|
331
|
-
* specific language governing permissions and limitations
|
|
332
|
-
* under the License.
|
|
333
|
-
*/
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* `useAuthentication` is a custom hook that provides access to the authentication context.
|
|
337
|
-
* It returns an object containing the current user, the authentication status, the access token, and a sign out function.
|
|
338
|
-
*
|
|
339
|
-
* @returns {UseAuthentication} An object containing the current user (`user`), the authentication status (`isAuthenticated`),
|
|
340
|
-
* the access token (`accessToken`), and a sign out function (`signOut`).
|
|
341
|
-
*/
|
|
342
|
-
declare const useAuthentication: () => UseAuthentication;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
346
|
-
*
|
|
347
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
348
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
349
|
-
* in compliance with the License.
|
|
350
|
-
* You may obtain a copy of the License at
|
|
351
|
-
*
|
|
352
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
353
|
-
*
|
|
354
|
-
* Unless required by applicable law or agreed to in writing,
|
|
355
|
-
* software distributed under the License is distributed on an
|
|
356
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
357
|
-
* KIND, either express or implied. See the License for the
|
|
358
|
-
* specific language governing permissions and limitations
|
|
359
|
-
* under the License.
|
|
360
|
-
*/
|
|
361
|
-
|
|
362
|
-
declare const useOn: (props: UseOnProps) => void;
|
|
363
|
-
|
|
364
|
-
export { AsgardeoProvider, Hooks, SignIn, SignInButton, SignOutButton, SignedIn, SignedOut, useAuthentication, useOn };
|
|
18
|
+
export { default as AsgardeoProvider } from './contexts/Asgardeo/AsgardeoProvider';
|
|
19
|
+
export * from './contexts/Asgardeo/AsgardeoProvider';
|
|
20
|
+
export { default as AsgardeoContext } from './contexts/Asgardeo/AsgardeoContext';
|
|
21
|
+
export * from './contexts/Asgardeo/AsgardeoContext';
|
|
22
|
+
export { default as useAsgardeo } from './contexts/Asgardeo/useAsgardeo';
|
|
23
|
+
export * from './contexts/Asgardeo/useAsgardeo';
|
|
24
|
+
export { default as UserContext } from './contexts/User/UserContext';
|
|
25
|
+
export * from './contexts/User/UserContext';
|
|
26
|
+
export { default as UserProvider } from './contexts/User/UserProvider';
|
|
27
|
+
export * from './contexts/User/UserProvider';
|
|
28
|
+
export { default as useUser } from './contexts/User/useUser';
|
|
29
|
+
export * from './contexts/User/useUser';
|
|
30
|
+
export { default as FlowContext } from './contexts/Flow/FlowContext';
|
|
31
|
+
export * from './contexts/Flow/FlowContext';
|
|
32
|
+
export { default as FlowProvider } from './contexts/Flow/FlowProvider';
|
|
33
|
+
export * from './contexts/Flow/FlowProvider';
|
|
34
|
+
export { default as useFlow } from './contexts/Flow/useFlow';
|
|
35
|
+
export * from './contexts/Flow/useFlow';
|
|
36
|
+
export { default as I18nContext } from './contexts/I18n/I18nContext';
|
|
37
|
+
export * from './contexts/I18n/I18nContext';
|
|
38
|
+
export { default as I18nProvider } from './contexts/I18n/I18nProvider';
|
|
39
|
+
export * from './contexts/I18n/I18nProvider';
|
|
40
|
+
export { default as useI18n } from './contexts/I18n/useI18n';
|
|
41
|
+
export * from './contexts/I18n/useI18n';
|
|
42
|
+
export { default as ThemeContext } from './contexts/Theme/ThemeContext';
|
|
43
|
+
export * from './contexts/Theme/ThemeContext';
|
|
44
|
+
export { default as ThemeProvider } from './contexts/Theme/ThemeProvider';
|
|
45
|
+
export * from './contexts/Theme/ThemeProvider';
|
|
46
|
+
export { default as useTheme } from './contexts/Theme/useTheme';
|
|
47
|
+
export * from './contexts/Theme/useTheme';
|
|
48
|
+
export { default as useBrowserUrl } from './hooks/useBrowserUrl';
|
|
49
|
+
export * from './hooks/useBrowserUrl';
|
|
50
|
+
export { default as useTranslation } from './hooks/useTranslation';
|
|
51
|
+
export * from './hooks/useTranslation';
|
|
52
|
+
export { default as useForm } from './hooks/useForm';
|
|
53
|
+
export * from './hooks/useForm';
|
|
54
|
+
export { default as BaseSignInButton } from './components/actions/SignInButton/BaseSignInButton';
|
|
55
|
+
export * from './components/actions/SignInButton/BaseSignInButton';
|
|
56
|
+
export { default as SignInButton } from './components/actions/SignInButton/SignInButton';
|
|
57
|
+
export * from './components/actions/SignInButton/SignInButton';
|
|
58
|
+
export { default as BaseSignOutButton } from './components/actions/SignOutButton/BaseSignOutButton';
|
|
59
|
+
export * from './components/actions/SignOutButton/BaseSignOutButton';
|
|
60
|
+
export { default as SignOutButton } from './components/actions/SignOutButton/SignOutButton';
|
|
61
|
+
export * from './components/actions/SignOutButton/SignOutButton';
|
|
62
|
+
export { default as BaseSignUpButton } from './components/actions/SignUpButton/BaseSignUpButton';
|
|
63
|
+
export * from './components/actions/SignUpButton/BaseSignUpButton';
|
|
64
|
+
export { default as SignUpButton } from './components/actions/SignUpButton/SignUpButton';
|
|
65
|
+
export * from './components/actions/SignUpButton/SignUpButton';
|
|
66
|
+
export { default as SignedIn } from './components/control/SignedIn';
|
|
67
|
+
export * from './components/control/SignedIn';
|
|
68
|
+
export { default as SignedOut } from './components/control/SignedOut';
|
|
69
|
+
export * from './components/control/SignedOut';
|
|
70
|
+
export { default as BaseSignIn } from './components/presentation/SignIn/BaseSignIn';
|
|
71
|
+
export * from './components/presentation/SignIn/BaseSignIn';
|
|
72
|
+
export { default as SignIn } from './components/presentation/SignIn/SignIn';
|
|
73
|
+
export * from './components/presentation/SignIn/SignIn';
|
|
74
|
+
export { default as IdentifierFirst } from './components/presentation/SignIn/options/IdentifierFirst';
|
|
75
|
+
export { default as UsernamePassword } from './components/presentation/SignIn/options/UsernamePassword';
|
|
76
|
+
export { default as GoogleButton } from './components/presentation/SignIn/options/GoogleButton';
|
|
77
|
+
export { default as GitHubButton } from './components/presentation/SignIn/options/GitHubButton';
|
|
78
|
+
export { default as MicrosoftButton } from './components/presentation/SignIn/options/MicrosoftButton';
|
|
79
|
+
export { default as FacebookButton } from './components/presentation/SignIn/options/FacebookButton';
|
|
80
|
+
export { default as LinkedInButton } from './components/presentation/SignIn/options/LinkedInButton';
|
|
81
|
+
export { default as SignInWithEthereumButton } from './components/presentation/SignIn/options/SignInWithEthereumButton';
|
|
82
|
+
export { default as EmailOtp } from './components/presentation/SignIn/options/EmailOtp';
|
|
83
|
+
export { default as Totp } from './components/presentation/SignIn/options/Totp';
|
|
84
|
+
export { default as SmsOtp } from './components/presentation/SignIn/options/SmsOtp';
|
|
85
|
+
export { default as SocialButton } from './components/presentation/SignIn/options/SocialButton';
|
|
86
|
+
export { default as MultiOptionButton } from './components/presentation/SignIn/options/MultiOptionButton';
|
|
87
|
+
export * from './components/presentation/SignIn/options/SignInOptionFactory';
|
|
88
|
+
export { default as BaseUser } from './components/presentation/User/BaseUser';
|
|
89
|
+
export * from './components/presentation/User/BaseUser';
|
|
90
|
+
export { default as User } from './components/presentation/User/User';
|
|
91
|
+
export * from './components/presentation/User/User';
|
|
92
|
+
export { default as BaseUserProfile } from './components/presentation/UserProfile/BaseUserProfile';
|
|
93
|
+
export * from './components/presentation/UserProfile/BaseUserProfile';
|
|
94
|
+
export { default as UserProfile } from './components/presentation/UserProfile/UserProfile';
|
|
95
|
+
export * from './components/presentation/UserProfile/UserProfile';
|
|
96
|
+
export { default as BaseUserDropdown } from './components/presentation/UserDropdown/BaseUserDropdown';
|
|
97
|
+
export * from './components/presentation/UserDropdown/BaseUserDropdown';
|
|
98
|
+
export { default as UserDropdown } from './components/presentation/UserDropdown/UserDropdown';
|
|
99
|
+
export * from './components/presentation/UserDropdown/UserDropdown';
|
|
100
|
+
export { default as Button } from './components/primitives/Button/Button';
|
|
101
|
+
export * from './components/primitives/Button/Button';
|
|
102
|
+
export { default as Card } from './components/primitives/Card/Card';
|
|
103
|
+
export * from './components/primitives/Card/Card';
|
|
104
|
+
export { default as Alert } from './components/primitives/Alert/Alert';
|
|
105
|
+
export * from './components/primitives/Alert/Alert';
|
|
106
|
+
export { default as OtpField } from './components/primitives/OtpField/OtpField';
|
|
107
|
+
export * from './components/primitives/OtpField/OtpField';
|
|
108
|
+
export { default as TextField } from './components/primitives/TextField/TextField';
|
|
109
|
+
export * from './components/primitives/TextField/TextField';
|
|
110
|
+
export { default as PasswordField } from './components/primitives/PasswordField/PasswordField';
|
|
111
|
+
export * from './components/primitives/PasswordField/PasswordField';
|
|
112
|
+
export { default as Select } from './components/primitives/Select/Select';
|
|
113
|
+
export * from './components/primitives/Select/Select';
|
|
114
|
+
export { default as DatePicker } from './components/primitives/DatePicker/DatePicker';
|
|
115
|
+
export * from './components/primitives/DatePicker/DatePicker';
|
|
116
|
+
export { default as Checkbox } from './components/primitives/Checkbox/Checkbox';
|
|
117
|
+
export * from './components/primitives/Checkbox/Checkbox';
|
|
118
|
+
export { default as FormControl } from './components/primitives/FormControl/FormControl';
|
|
119
|
+
export * from './components/primitives/FormControl/FormControl';
|
|
120
|
+
export { default as InputLabel } from './components/primitives/InputLabel/InputLabel';
|
|
121
|
+
export * from './components/primitives/InputLabel/InputLabel';
|
|
122
|
+
export { default as Typography } from './components/primitives/Typography/Typography';
|
|
123
|
+
export * from './components/primitives/Typography/Typography';
|
|
124
|
+
export { default as Divider } from './components/primitives/Divider/Divider';
|
|
125
|
+
export * from './components/primitives/Divider/Divider';
|
|
126
|
+
export { default as Spinner } from './components/primitives/Spinner/Spinner';
|
|
127
|
+
export * from './components/primitives/Spinner/Spinner';
|
|
128
|
+
export { default as Eye } from './components/primitives/Icons/Eye';
|
|
129
|
+
export { default as EyeOff } from './components/primitives/Icons/EyeOff';
|
|
130
|
+
export { default as CircleCheck } from './components/primitives/Icons/CircleCheck';
|
|
131
|
+
export { default as CircleAlert } from './components/primitives/Icons/CircleAlert';
|
|
132
|
+
export { default as TriangleAlert } from './components/primitives/Icons/TriangleAlert';
|
|
133
|
+
export { default as Info } from './components/primitives/Icons/Info';
|
|
134
|
+
export { createField, FieldFactory, parseMultiValuedString, formatMultiValuedString, validateFieldValue, } from './components/factories/FieldFactory';
|
|
135
|
+
export * from './components/factories/FieldFactory';
|
|
136
|
+
export type { FlowStep, FlowMessage, FlowContextValue } from './contexts/Flow/FlowContext';
|
|
137
|
+
export type { FlowProviderProps } from './contexts/Flow/FlowProvider';
|