Skip to content

Commit f4f557d

Browse files
committed
migrate clerk-react to shared/types
1 parent 9545b8e commit f4f557d

31 files changed

+34
-31
lines changed

packages/react/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
},
9191
"dependencies": {
9292
"@clerk/shared": "workspace:^",
93-
"@clerk/types": "workspace:^",
9493
"tslib": "catalog:repo"
9594
},
9695
"devDependencies": {

packages/react/src/__tests__/isomorphicClerk.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Resources, UnsubscribeCallback } from '@clerk/types';
1+
import type { Resources, UnsubscribeCallback } from '@clerk/shared/types';
22
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
33

44
import { IsomorphicClerk } from '../isomorphicClerk';

packages/react/src/components/CheckoutButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { __experimental_CheckoutButtonProps } from '@clerk/types';
1+
import type { __experimental_CheckoutButtonProps } from '@clerk/shared/types';
22
import React from 'react';
33

44
import { useAuth } from '../hooks';

packages/react/src/components/PlanDetailsButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { __experimental_PlanDetailsButtonProps } from '@clerk/types';
1+
import type { __experimental_PlanDetailsButtonProps } from '@clerk/shared/types';
22
import React from 'react';
33

44
import type { WithClerkProp } from '../types';

packages/react/src/components/SignInButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SignInButtonProps, SignInProps } from '@clerk/types';
1+
import type { SignInButtonProps, SignInProps } from '@clerk/shared/types';
22
import React from 'react';
33

44
import type { WithClerkProp } from '../types';

packages/react/src/components/SignOutButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SignOutOptions } from '@clerk/types';
1+
import type { SignOutOptions } from '@clerk/shared/types';
22
import React from 'react';
33

44
import type { WithClerkProp } from '../types';

packages/react/src/components/SignUpButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SignUpButtonProps, SignUpProps } from '@clerk/types';
1+
import type { SignUpButtonProps, SignUpProps } from '@clerk/shared/types';
22
import React from 'react';
33

44
import type { WithClerkProp } from '../types';

packages/react/src/components/SubscriptionDetailsButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { __experimental_SubscriptionDetailsButtonProps } from '@clerk/types';
1+
import type { __experimental_SubscriptionDetailsButtonProps } from '@clerk/shared/types';
22
import React from 'react';
33

44
import { useAuth } from '../hooks';

packages/react/src/components/__tests__/CheckoutButton.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import '@testing-library/jest-dom/vitest';
22

3-
import type { Theme } from '@clerk/types';
3+
import type { Theme } from '@clerk/shared/types';
44
import { render, screen, waitFor } from '@testing-library/react';
55
import { userEvent } from '@testing-library/user-event';
66
import React from 'react';

packages/react/src/components/__tests__/PlanDetailsButton.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import '@testing-library/jest-dom/vitest';
22

3-
import type { BillingPayerResourceType, BillingPlanResource, Theme } from '@clerk/types';
3+
import type { BillingPayerResourceType, BillingPlanResource, Theme } from '@clerk/shared/types';
44
import { render, screen, waitFor } from '@testing-library/react';
55
import { userEvent } from '@testing-library/user-event';
66
import React from 'react';

0 commit comments

Comments
 (0)