Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
Merge pull request #32 from wobsoriano/clerk-js-v5
Browse files Browse the repository at this point in the history
Clerk-JS v5 Support
  • Loading branch information
wobsoriano authored May 8, 2024
2 parents 4a8e5fb + 704619a commit 3de4e34
Show file tree
Hide file tree
Showing 23 changed files with 99 additions and 333 deletions.
2 changes: 1 addition & 1 deletion docs/authentication/sign-in.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ outline: deep
# `<SignIn />`

<br />
<img src="https://clerk.com/_next/image?url=%2Fdocs%2Fimages%2Fui-components%2Fcomponent-sign_in.svg&w=1080&q=75" />
<img src="https://clerk.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2F_docs%2Fmain%2Fui-components%2Fsign-in.svg&w=1080&q=75" />

The `<SignIn />` component renders a UI for signing in users. The functionality of the `<SignIn />` component is controlled by the instance settings you specify in your [Clerk Dashboard](https://dashboard.clerk.com). You can further customize your `<SignIn />` component by passing additional properties at the time of rendering.

Expand Down
2 changes: 1 addition & 1 deletion docs/authentication/sign-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ outline: deep
# `<SignUp />`

<br />
<img src="https://clerk.com/_next/image?url=%2Fdocs%2Fimages%2Fui-components%2Fcomponent-sign_up.svg&w=1080&q=75" />
<img src="https://clerk.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2F_docs%2Fmain%2Fui-components%2Fsign-up.svg&w=1080&q=75" />

The `<SignUp />` component renders a UI for signing up users. The functionality of the `<SignUp />` component is controlled by the instance settings you specify in your [Clerk Dashboard](https://dashboard.clerk.com). You can further customize your `<SignUp />` component by passing additional properties at the time of rendering.

Expand Down
2 changes: 1 addition & 1 deletion docs/organization/create-organization.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ outline: deep
# `<CreateOrganization />`

<br />
<img src="https://clerk.com/_next/image?url=%2Fdocs%2Fimages%2Fui-components%2Fcomponent-org_create.svg&w=2048&q=75" />
<img src="https://clerk.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2F_docs%2Fmain%2Fui-components%2Fcreate-organization.svg&w=1080&q=75" />

The `<CreateOrganization />` component is used to render an organization creation UI that allows users to create brand new organizations within your application.

Expand Down
2 changes: 1 addition & 1 deletion docs/organization/organization-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ outline: deep
# `<OrganizationList />`

<br />
<img src="https://clerk.com/_next/image?url=%2Fdocs%2Fimages%2Fui-components%2Fcomponent-org_list.svg&w=1080&q=75" />
<img src="https://clerk.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2F_docs%2Fmain%2Fui-components%2Forganization-list.svg&w=1080&q=75" />

The `<OrganizationList />` component is used to display organization related memberships, invitations, and suggestions for the user.

Expand Down
2 changes: 1 addition & 1 deletion docs/organization/organization-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ outline: deep
# `<OrganizationProfile />`

<br />
<img src="https://clerk.com/_next/image?url=%2Fdocs%2Fimages%2Fui-components%2Fcomponent-org_profile.svg&w=2048&q=75" />
<img src="https://clerk.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2F_docs%2Fmain%2Fui-components%2Forganization-profile.svg&w=1920&q=75" />

The `<OrganizationProfile />` component is used to render a beautiful, full-featured organization management UI that allows users to manage their organization profile and security settings.

Expand Down
2 changes: 1 addition & 1 deletion docs/organization/organization-switcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ outline: deep
# `<OrganizationSwitcher />`

<br />
<img src="https://clerk.com/_next/image?url=%2Fdocs%2Fimages%2Fui-components%2Fcomponent-org_switcher.svg&w=2048&q=75" />
<img src="https://clerk.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2F_docs%2Fmain%2Fui-components%2Forganization-switcher.svg&w=1080&q=75" />

The `<OrganizationSwitcher />` component is used to enable the ability to switch between available organizations the user may be part of in your application.

Expand Down
2 changes: 1 addition & 1 deletion docs/user/user-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ outline: deep
# `<UserButton />`

<br />
<img src="https://clerk.com/_next/image?url=%2Fdocs%2Fimages%2Fui-components%2Fcomponent-user_button.svg&w=1080&q=75" />
<img src="https://clerk.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2F_docs%2Fmain%2Fui-components%2Fuser-button.svg&w=1080&q=75" />

The `<UserButton />` component is used to render the familiar user button UI popularized by Google.

Expand Down
2 changes: 1 addition & 1 deletion docs/user/user-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ outline: deep
# `<UserProfile />`

<br />
<img src="https://clerk.com/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2Fe1ql88v4%2Fproduction%2F86ce587f95cbaa773bdd9ddf8d5dfbb57387de16-528x645.svg%3Ffit%3Dmax%26auto%3Dformat&w=1080&q=75" alt="UserProfile component sample" />
<img src="https://clerk.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2F_docs%2Fmain%2Fui-components%2Fuser-profile.svg&w=1920&q=75" alt="UserProfile component sample" />

The `<UserProfile />` component is used to render a beautiful, full-featured account management UI that allows users to manage their profile and security settings.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
"vue": "^3.2.0"
},
"dependencies": {
"@clerk/clerk-js": "^4.72.1",
"@clerk/types": "^3.64.1",
"@clerk/clerk-js": "^5.2.1",
"@clerk/types": "^4.2.0",
"@vueuse/core": "^10.9.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"h3-clerk": "^0.3.10",
"h3-clerk": "^0.4.1",
"vue-clerk": "workspace:*"
},
"devDependencies": {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<script setup lang="ts">
import { OrganizationSwitcher, SignInButton, SignOutButton, WithUser, useAuth } from 'vue-clerk'
import { OrganizationSwitcher, SignInButton, SignOutButton, WithUser, useAuth, useClerkProvide } from 'vue-clerk'
const { isClerkLoaded } = useClerkProvide()
const { isSignedIn } = useAuth()
</script>

<template>
<h1>Hello Clerk!</h1>
<OrganizationSwitcher :appearance="{ elements: { organizationPreviewTextContainer: 'hidden md:block', organizationSwitcherTriggerIcon: 'hidden md:block' } }" />
<div v-if="isSignedIn">
<div v-if="!isClerkLoaded">
Loading auth..
</div>
<div v-else-if="isSignedIn">
<!-- <UserButton /> -->
<WithUser>
<template #default="{ isLoaded, user }">
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 3de4e34

Please sign in to comment.