@asgardeo/react 0.5.28 → 0.5.30
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/dist/AsgardeoReactClient.d.ts +1 -0
- package/dist/__temp__/api.d.ts +8 -0
- package/dist/cjs/index.js +1881 -1136
- package/dist/cjs/index.js.map +4 -4
- package/dist/components/{presentation/SignUp/options → adapters}/CheckboxInput.d.ts +1 -1
- package/dist/components/{presentation/SignUp/options → adapters}/DateInput.d.ts +1 -1
- package/dist/components/{presentation/SignUp/options → adapters}/DividerComponent.d.ts +1 -1
- package/dist/components/{presentation/SignUp/options → adapters}/EmailInput.d.ts +1 -1
- package/dist/components/{presentation/options → adapters}/FacebookButton.d.ts +8 -2
- package/dist/components/{presentation/SignUp/options → adapters}/FormContainer.d.ts +1 -1
- package/dist/components/{presentation/options → adapters}/GitHubButton.d.ts +8 -2
- package/dist/components/{presentation/options → adapters}/GoogleButton.d.ts +8 -2
- package/dist/components/{presentation/SignUp/options → adapters}/ImageComponent.d.ts +1 -1
- package/dist/components/{presentation/options → adapters}/LinkedInButton.d.ts +8 -2
- package/dist/components/{presentation/options → adapters}/MicrosoftButton.d.ts +8 -2
- package/dist/components/{presentation/SignUp/options → adapters}/NumberInput.d.ts +1 -1
- package/dist/components/{presentation/SignUp/options → adapters}/PasswordInput.d.ts +1 -1
- package/dist/components/{presentation/options → adapters}/SignInWithEthereumButton.d.ts +8 -2
- package/dist/components/adapters/SmsOtpButton.d.ts +31 -0
- package/dist/components/{presentation/SignUp/options → adapters}/SocialButton.d.ts +1 -1
- package/dist/components/{presentation/SignUp/options → adapters}/SubmitButton.d.ts +1 -1
- package/dist/components/{presentation/SignUp/options → adapters}/TelephoneInput.d.ts +1 -1
- package/dist/components/{presentation/SignUp/options → adapters}/TextInput.d.ts +1 -1
- package/dist/components/{presentation/SignUp/options → adapters}/Typography.d.ts +1 -1
- package/dist/components/presentation/SignIn/SignIn.d.ts +9 -3
- package/dist/components/presentation/SignIn/component-driven/BaseSignIn.d.ts +195 -0
- package/dist/components/presentation/SignIn/component-driven/SignIn.d.ts +144 -0
- package/dist/components/presentation/SignIn/component-driven/SignInOptionFactory.d.ts +30 -0
- package/dist/components/presentation/SignIn/component-driven/transformer.d.ts +30 -0
- package/dist/components/presentation/SignIn/{BaseSignIn.d.ts → non-component-driven/BaseSignIn.d.ts} +1 -1
- package/dist/components/presentation/SignIn/non-component-driven/BaseSignIn.styles.d.ts +52 -0
- package/dist/components/presentation/{options → SignIn/non-component-driven/options}/SocialButton.d.ts +1 -1
- package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +1 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +1832 -1075
- package/dist/index.js.map +4 -4
- package/dist/utils/getDisplayName.d.ts +49 -0
- package/package.json +3 -3
- /package/dist/components/control/{Loading/Loading.d.ts → Loading.d.ts} +0 -0
- /package/dist/components/control/{SignedIn/SignedIn.d.ts → SignedIn.d.ts} +0 -0
- /package/dist/components/control/{SignedOut/SignedOut.d.ts → SignedOut.d.ts} +0 -0
- /package/dist/components/presentation/SignIn/{options → non-component-driven/options}/EmailOtp.d.ts +0 -0
- /package/dist/components/presentation/SignIn/{options → non-component-driven/options}/IdentifierFirst.d.ts +0 -0
- /package/dist/components/presentation/SignIn/{options → non-component-driven/options}/MultiOptionButton.d.ts +0 -0
- /package/dist/components/presentation/SignIn/{options → non-component-driven/options}/SignInOptionFactory.d.ts +0 -0
- /package/dist/components/presentation/SignIn/{options → non-component-driven/options}/SmsOtp.d.ts +0 -0
- /package/dist/components/presentation/SignIn/{options → non-component-driven/options}/Totp.d.ts +0 -0
- /package/dist/components/presentation/SignIn/{options → non-component-driven/options}/UsernamePassword.d.ts +0 -0
- /package/dist/components/presentation/SignIn/{types.d.ts → non-component-driven/types.d.ts} +0 -0
- /package/dist/components/presentation/SignUp/{options/SignUpOptionFactory.d.ts → SignUpOptionFactory.d.ts} +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { User } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Get the display name of a user by mapping their profile attributes.
|
|
21
|
+
*
|
|
22
|
+
* @param mergedMappings - The merged attribute mappings.
|
|
23
|
+
* @param user - The user object containing profile information.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const mergedMappings = {
|
|
28
|
+
* firstName: ['name.givenName', 'given_name'],
|
|
29
|
+
* lastName: ['name.familyName', 'family_name'],
|
|
30
|
+
* username: ['userName', 'username', 'user_name'],
|
|
31
|
+
* email: ['emails[0].value', 'email'],
|
|
32
|
+
* name: ['name', 'fullName'],
|
|
33
|
+
* };
|
|
34
|
+
*
|
|
35
|
+
* const user: User = {
|
|
36
|
+
* id: '1',
|
|
37
|
+
* name: 'John Doe',
|
|
38
|
+
* email: 'john.doe@example.com',
|
|
39
|
+
* };
|
|
40
|
+
*
|
|
41
|
+
* const displayName = getDisplayName(mergedMappings, user);
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @returns The display name of the user.
|
|
45
|
+
*/
|
|
46
|
+
declare const getDisplayName: (mergedMappings: {
|
|
47
|
+
[key: string]: string | string[] | undefined;
|
|
48
|
+
}, user: User) => string;
|
|
49
|
+
export default getDisplayName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asgardeo/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.30",
|
|
4
4
|
"description": "React implementation of Asgardeo JavaScript SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"asgardeo",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"esbuild": "^0.25.9",
|
|
60
60
|
"react-dom": "^19.1.0",
|
|
61
61
|
"tslib": "^2.8.1",
|
|
62
|
-
"@asgardeo/i18n": "^0.3.
|
|
63
|
-
"@asgardeo/browser": "^0.1.
|
|
62
|
+
"@asgardeo/i18n": "^0.3.1",
|
|
63
|
+
"@asgardeo/browser": "^0.1.23"
|
|
64
64
|
},
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/presentation/SignIn/{options → non-component-driven/options}/EmailOtp.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/presentation/SignIn/{options → non-component-driven/options}/SmsOtp.d.ts
RENAMED
|
File without changes
|
/package/dist/components/presentation/SignIn/{options → non-component-driven/options}/Totp.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|