diff --git a/.changeset/many-ads-move.md b/.changeset/many-ads-move.md new file mode 100644 index 0000000000..fb439a8758 --- /dev/null +++ b/.changeset/many-ads-move.md @@ -0,0 +1,7 @@ +--- +'@clerk/tanstack-start': minor +'@clerk/nextjs': minor +'@clerk/remix': minor +--- + +Drop path routing requirement for ``. diff --git a/packages/nextjs/src/client-boundary/uiComponents.tsx b/packages/nextjs/src/client-boundary/uiComponents.tsx index b641f62066..a4dde9da72 100644 --- a/packages/nextjs/src/client-boundary/uiComponents.tsx +++ b/packages/nextjs/src/client-boundary/uiComponents.tsx @@ -1,24 +1,18 @@ 'use client'; import { - CreateOrganization as BaseCreateOrganization, OrganizationProfile as BaseOrganizationProfile, SignIn as BaseSignIn, SignUp as BaseSignUp, UserProfile as BaseUserProfile, } from '@clerk/clerk-react'; -import type { - CreateOrganizationProps, - OrganizationProfileProps, - SignInProps, - SignUpProps, - UserProfileProps, -} from '@clerk/types'; +import type { OrganizationProfileProps, SignInProps, SignUpProps, UserProfileProps } from '@clerk/types'; import React from 'react'; import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps'; export { + CreateOrganization, OrganizationList, OrganizationSwitcher, SignInButton, @@ -41,10 +35,6 @@ export const UserProfile: typeof BaseUserProfile = Object.assign( { ...BaseUserProfile }, ); -export const CreateOrganization = (props: CreateOrganizationProps) => { - return ; -}; - // The assignment of OrganizationProfile with BaseOrganizationProfile props is used // to support the CustomPage functionality (eg OrganizationProfile.Page) // Also the `typeof BaseOrganizationProfile` is used to resolved the following error: diff --git a/packages/remix/src/client/uiComponents.tsx b/packages/remix/src/client/uiComponents.tsx index 6534dc0c5d..0c5f3148e4 100644 --- a/packages/remix/src/client/uiComponents.tsx +++ b/packages/remix/src/client/uiComponents.tsx @@ -1,18 +1,11 @@ import { - CreateOrganization as BaseCreateOrganization, OrganizationProfile as BaseOrganizationProfile, SignIn as BaseSignIn, SignUp as BaseSignUp, UserProfile as BaseUserProfile, } from '@clerk/clerk-react'; import { useRoutingProps } from '@clerk/clerk-react/internal'; -import type { - CreateOrganizationProps, - OrganizationProfileProps, - SignInProps, - SignUpProps, - UserProfileProps, -} from '@clerk/types'; +import type { OrganizationProfileProps, SignInProps, SignUpProps, UserProfileProps } from '@clerk/types'; import React from 'react'; import { usePathnameWithoutSplatRouteParams } from './usePathnameWithoutSplatRouteParams'; @@ -29,11 +22,6 @@ export const UserProfile: typeof BaseUserProfile = Object.assign( { ...BaseUserProfile }, ); -export const CreateOrganization = (props: CreateOrganizationProps) => { - const path = usePathnameWithoutSplatRouteParams(); - return ; -}; - // The assignment of OrganizationProfile with BaseOrganizationProfile props is used // to support the CustomPage functionality (eg OrganizationProfile.Page) // Also the `typeof BaseOrganizationProfile` is used to resolved the following error: diff --git a/packages/tanstack-start/src/client/index.ts b/packages/tanstack-start/src/client/index.ts index fb51f1bbea..09ce51e6a7 100644 --- a/packages/tanstack-start/src/client/index.ts +++ b/packages/tanstack-start/src/client/index.ts @@ -1,2 +1,2 @@ export * from './ClerkProvider'; -export { SignIn, SignUp, OrganizationProfile, OrganizationList, CreateOrganization, UserProfile } from './uiComponents'; +export { SignIn, SignUp, OrganizationProfile, OrganizationList, UserProfile } from './uiComponents'; diff --git a/packages/tanstack-start/src/client/uiComponents.tsx b/packages/tanstack-start/src/client/uiComponents.tsx index c88fc7e5e3..4becdd85c4 100644 --- a/packages/tanstack-start/src/client/uiComponents.tsx +++ b/packages/tanstack-start/src/client/uiComponents.tsx @@ -1,5 +1,4 @@ import { - CreateOrganization as BaseCreateOrganization, OrganizationList as BaseOrganizationList, OrganizationProfile as BaseOrganizationProfile, SignIn as BaseSignIn, @@ -7,13 +6,7 @@ import { UserProfile as BaseUserProfile, } from '@clerk/clerk-react'; import { useRoutingProps } from '@clerk/clerk-react/internal'; -import type { - CreateOrganizationProps, - OrganizationProfileProps, - SignInProps, - SignUpProps, - UserProfileProps, -} from '@clerk/types'; +import type { OrganizationProfileProps, SignInProps, SignUpProps, UserProfileProps } from '@clerk/types'; import { useLocation, useParams } from '@tanstack/react-router'; const usePathnameWithoutSplatRouteParams = () => { @@ -46,11 +39,6 @@ export const UserProfile: typeof BaseUserProfile = Object.assign( { ...BaseUserProfile }, ); -export const CreateOrganization = (props: CreateOrganizationProps) => { - const path = usePathnameWithoutSplatRouteParams(); - return ; -}; - // The assignment of OrganizationProfile with BaseOrganizationProfile props is used // to support the CustomPage functionality (eg OrganizationProfile.Page) // Also the `typeof BaseOrganizationProfile` is used to resolved the following error: