@asgardeo/vue 0.3.9 → 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 +2 -32
- package/dist/api/updateMeProfile.d.ts +25 -0
- package/dist/api/updateMeProfile.d.ts.map +1 -0
- package/dist/cjs/index.js +1437 -774
- package/dist/cjs/index.js.map +4 -4
- package/dist/components/auth/sign-in/AuthOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts.map +1 -0
- package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-up/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/SignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/SignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v2/SignUp.d.ts.map +1 -0
- package/dist/components/{control → presentation}/organization/Organization.d.ts +1 -1
- package/dist/components/presentation/organization/Organization.d.ts.map +1 -0
- package/dist/components/{control → presentation}/user/User.d.ts +2 -2
- package/dist/components/presentation/user/User.d.ts.map +1 -0
- package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts +28 -3
- package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts.map +1 -1
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +18 -8
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts.map +1 -1
- package/dist/components/presentation/user-dropdown/UserDropdown.d.ts +20 -2
- package/dist/components/presentation/user-dropdown/UserDropdown.d.ts.map +1 -1
- package/dist/components/presentation/user-profile/BaseUserProfile.d.ts +9 -17
- package/dist/components/presentation/user-profile/BaseUserProfile.d.ts.map +1 -1
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts +9 -0
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts.map +1 -1
- package/dist/components/presentation/user-profile/UserProfile.d.ts.map +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1391 -721
- package/dist/index.js.map +4 -4
- package/dist/models/contexts.d.ts +2 -0
- package/dist/models/contexts.d.ts.map +1 -1
- package/dist/providers/AsgardeoProvider.d.ts.map +1 -1
- package/dist/providers/UserProvider.d.ts.map +1 -1
- package/dist/utils/getDisplayName.d.ts +23 -0
- package/dist/utils/getDisplayName.d.ts.map +1 -0
- package/dist/utils/getMappedUserProfileValue.d.ts +21 -0
- package/dist/utils/getMappedUserProfileValue.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/components/control/organization/Organization.d.ts.map +0 -1
- package/dist/components/control/user/User.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/AuthOptionFactory.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/AuthOptionFactoryCore.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/BaseSignIn.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/SignIn.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/v1/BaseSignIn.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/v1/SignIn.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/v1/options/SignInOptionFactory.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/v2/AuthOptionFactory.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/v2/BaseSignIn.d.ts.map +0 -1
- package/dist/components/presentation/sign-in/v2/SignIn.d.ts.map +0 -1
- package/dist/components/presentation/sign-up/BaseSignUp.d.ts.map +0 -1
- package/dist/components/presentation/sign-up/SignUp.d.ts.map +0 -1
- package/dist/components/presentation/sign-up/v1/BaseSignUp.d.ts.map +0 -1
- package/dist/components/presentation/sign-up/v1/SignUp.d.ts.map +0 -1
- package/dist/components/presentation/sign-up/v1/options/SignUpOptionFactory.d.ts.map +0 -1
- package/dist/components/presentation/sign-up/v2/BaseSignUp.d.ts.map +0 -1
- package/dist/components/presentation/sign-up/v2/SignUp.d.ts.map +0 -1
- /package/dist/components/{presentation → auth}/sign-in/AuthOptionFactory.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/AuthOptionFactoryCore.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/BaseSignIn.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/SignIn.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/v1/BaseSignIn.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/v1/SignIn.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/v1/options/SignInOptionFactory.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/v2/AuthOptionFactory.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/v2/BaseSignIn.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-in/v2/SignIn.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-up/BaseSignUp.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-up/SignUp.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-up/v1/BaseSignUp.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-up/v1/SignUp.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-up/v1/options/SignUpOptionFactory.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-up/v2/BaseSignUp.d.ts +0 -0
- /package/dist/components/{presentation → auth}/sign-up/v2/SignUp.d.ts +0 -0
package/README.md
CHANGED
|
@@ -39,28 +39,6 @@ pnpm add @asgardeo/vue
|
|
|
39
39
|
yarn add @asgardeo/vue
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
## Basic Usage
|
|
43
|
-
|
|
44
|
-
```vue
|
|
45
|
-
<script setup lang="ts">
|
|
46
|
-
import { useUser } from '@asgardeo/vue'
|
|
47
|
-
|
|
48
|
-
const { user, isLoading } = useUser()
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<template>
|
|
52
|
-
<div>
|
|
53
|
-
<p v-if="isLoading">Loading...</p>
|
|
54
|
-
<p v-else-if="user">Welcome, {{ user.username }}</p>
|
|
55
|
-
<p v-else>Not signed in</p>
|
|
56
|
-
</div>
|
|
57
|
-
</template>
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## API Documentation
|
|
61
|
-
|
|
62
|
-
For complete API documentation including all components, composables, and customization options, see the [Vue SDK Documentation](https://wso2.com/asgardeo/docs/sdks/vue/overview).
|
|
63
|
-
|
|
64
42
|
## Supported Features
|
|
65
43
|
|
|
66
44
|
### Composables
|
|
@@ -120,23 +98,15 @@ For complete API documentation including all components, composables, and custom
|
|
|
120
98
|
- `navigate` - Programmatic navigation helper
|
|
121
99
|
- `http` - HTTP client with token management
|
|
122
100
|
|
|
123
|
-
## Examples
|
|
124
|
-
|
|
125
|
-
Check out our [example applications](../../samples/) to see the Vue SDK in action:
|
|
126
|
-
- [Vue SDK Playground](../../playgrounds/vue/) - Example application
|
|
127
|
-
|
|
128
101
|
## Documentation
|
|
129
102
|
|
|
130
|
-
- [
|
|
131
|
-
- [Vue SDK Guide](https://wso2.com/asgardeo/docs/sdks/vue/)
|
|
132
|
-
- [Configuration Options](https://wso2.com/asgardeo/docs/sdks/vue/configuration/)
|
|
133
|
-
- [Composables & Components](https://wso2.com/asgardeo/docs/sdks/vue/api/)
|
|
103
|
+
- [Vue Quick Start](https://wso2.com/asgardeo/docs/quick-starts/vue/)
|
|
134
104
|
|
|
135
105
|
## Support
|
|
136
106
|
|
|
137
107
|
For support and questions:
|
|
138
108
|
- [Asgardeo Documentation](https://wso2.com/asgardeo/docs/)
|
|
139
|
-
- [GitHub Issues](https://github.com/asgardeo/
|
|
109
|
+
- [GitHub Issues](https://github.com/asgardeo/javascript/issues)
|
|
140
110
|
- [WSO2 Community Forum](https://wso2.com/community/)
|
|
141
111
|
|
|
142
112
|
## Contributing
|
|
@@ -0,0 +1,25 @@
|
|
|
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, UpdateMeProfileConfig as BaseUpdateMeProfileConfig } from '@asgardeo/browser';
|
|
19
|
+
export interface UpdateMeProfileConfig extends Omit<BaseUpdateMeProfileConfig, 'fetcher'> {
|
|
20
|
+
fetcher?: (url: string, config: RequestInit) => Promise<Response>;
|
|
21
|
+
instanceId?: number;
|
|
22
|
+
}
|
|
23
|
+
declare const updateMeProfile: ({ fetcher, instanceId, ...requestConfig }: UpdateMeProfileConfig) => Promise<User>;
|
|
24
|
+
export default updateMeProfile;
|
|
25
|
+
//# sourceMappingURL=updateMeProfile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateMeProfile.d.ts","sourceRoot":"","sources":["../../src/api/updateMeProfile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAIL,IAAI,EACJ,qBAAqB,IAAI,yBAAyB,EAEnD,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC;IACvF,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,8CAAuD,qBAAqB,KAAG,OAAO,CAAC,IAAI,CAwB/G,CAAC;AAEF,eAAe,eAAe,CAAC"}
|