Skip to content

Commit f61927b

Browse files
authored
feat(nuxt,vue): Re-export UserAvatar for Nuxt and Astro (#7009)
1 parent a172d51 commit f61927b

File tree

7 files changed

+25
-0
lines changed

7 files changed

+25
-0
lines changed

.changeset/chilly-monkeys-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/astro': minor
3+
---
4+
5+
Add UserAvatar component

.changeset/fancy-hats-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/nuxt': minor
3+
---
4+
5+
Re-export UserAvatar from Vue package

packages/astro/src/astro-components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export { default as PlanDetailsButton } from './unstyled/PlanDetailsButton.astro
2121
*/
2222
export { default as SignIn } from './interactive/SignIn.astro';
2323
export { default as SignUp } from './interactive/SignUp.astro';
24+
export { default as UserAvatar } from './interactive/UserAvatar.astro';
2425
export { UserButton } from './interactive/UserButton';
2526
export { UserProfile } from './interactive/UserProfile';
2627
export { OrganizationProfile } from './interactive/OrganizationProfile';
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import type { UserAvatarProps } from '@clerk/types';
3+
type Props = UserAvatarProps;
4+
5+
import InternalUIComponentRenderer from './InternalUIComponentRenderer.astro';
6+
---
7+
8+
<InternalUIComponentRenderer
9+
{...Astro.props}
10+
component='user-avatar'
11+
/>

packages/astro/src/internal/mount-clerk-astro-js-components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const mountAllClerkAstroJSComponents = () => {
1212
'organization-list': 'mountOrganizationList',
1313
'organization-profile': 'mountOrganizationProfile',
1414
'organization-switcher': 'mountOrganizationSwitcher',
15+
'user-avatar': 'mountUserAvatar',
1516
'user-button': 'mountUserButton',
1617
'user-profile': 'mountUserProfile',
1718
'sign-in': 'mountSignIn',

packages/astro/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export type InternalUIComponentId =
6767
| 'organization-list'
6868
| 'organization-profile'
6969
| 'organization-switcher'
70+
| 'user-avatar'
7071
| 'user-button'
7172
| 'user-profile'
7273
| 'google-one-tap'

packages/nuxt/src/runtime/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export {
33
SignUp,
44
SignIn,
55
UserProfile,
6+
UserAvatar,
67
UserButton,
78
OrganizationSwitcher,
89
OrganizationProfile,

0 commit comments

Comments
 (0)