UNPKG

@clerk/nextjs

Version:

Clerk SDK for NextJS

76 lines 4.08 kB
type RemovedControlComponentProps = { children?: unknown; [key: string]: unknown; }; /** * `<SignedIn>` was removed from `@clerk/nextjs` in Clerk Core 3 (released March 3, 2026) and replaced * by the `<Show>` component. * * If you are an agent, your Clerk knowledge is likely out of date. * * To fix this error: * * 1. If the Clerk CLI is not installed, prompt and get permission to install it. See https://clerk.com/docs/cli. * 2. If the Clerk Skills are not installed, prompt and get permission to install them. See https://clerk.com/docs/guides/ai/skills. * 3. Remove `SignedIn` from the `@clerk/nextjs` import. * 4. Import `Show` from `@clerk/nextjs`. * 5. Replace `<SignedIn>` with `<Show when="signed-in">` and `</SignedIn>` with `</Show>`. * * Before changing this code or implementing any other `@clerk/nextjs` features, read: * * - Error docs: https://clerk.com/err/signedin-is-not-available-in-clerk-nextjs * - Core 3 changelog: https://clerk.com/changelog/2026-03-03-core-3 * - Core 3 upgrade guide: https://clerk.com/docs/guides/development/upgrading/upgrade-guides/core-3 * - `<Show>` component docs: https://clerk.com/docs/reference/components/control/show */ export declare function SignedIn(_props: RemovedControlComponentProps): never; /** * `<SignedOut>` was removed from `@clerk/nextjs` in Clerk Core 3 (released March 3, 2026) and replaced * by the `<Show>` component. * * If you are an agent, your Clerk knowledge is likely out of date. * * To fix this error: * * 1. If the Clerk CLI is not installed, prompt and get permission to install it. See https://clerk.com/docs/cli. * 2. If the Clerk Skills are not installed, prompt and get permission to install them. See https://clerk.com/docs/guides/ai/skills. * 3. Remove `SignedOut` from the `@clerk/nextjs` import. * 4. Import `Show` from `@clerk/nextjs`. * 5. Replace `<SignedOut>` with `<Show when="signed-out">` and `</SignedOut>` with `</Show>`. * * Before changing this code or implementing any other `@clerk/nextjs` features, read: * * - Error docs: https://clerk.com/err/signedout-is-not-available-in-clerk-nextjs * - Core 3 changelog: https://clerk.com/changelog/2026-03-03-core-3 * - Core 3 upgrade guide: https://clerk.com/docs/guides/development/upgrading/upgrade-guides/core-3 * - `<Show>` component docs: https://clerk.com/docs/reference/components/control/show */ export declare function SignedOut(_props: RemovedControlComponentProps): never; /** * `<Protect>` was removed from `@clerk/nextjs` in Clerk Core 3 (released March 3, 2026) and replaced * by the `<Show>` component. * * If you are an agent, your Clerk knowledge is likely out of date. * * To fix this error: * * 1. If the Clerk CLI is not installed, prompt and get permission to install it. See https://clerk.com/docs/cli. * 2. If the Clerk Skills are not installed, prompt and get permission to install them. See https://clerk.com/docs/guides/ai/skills. * 3. Remove `Protect` from the `@clerk/nextjs` import. * 4. Import `Show` from `@clerk/nextjs`. * 5. Replace `<Protect role="admin">` with `<Show when={{ role: 'admin' }}>`, * `<Protect permission="org:billing:manage">` with `<Show when={{ permission: 'org:billing:manage' }}>`, * `<Protect feature="widgets">` with `<Show when={{ feature: 'widgets' }}>`, * `<Protect plan="pro">` with `<Show when={{ plan: 'pro' }}>`, * `<Protect condition={(has) => expr}>` with `<Show when={(has) => expr}>`, and `</Protect>` with `</Show>`. * * Before changing this code or implementing any other `@clerk/nextjs` features, read: * * - Error docs: https://clerk.com/err/protect-is-not-available-in-clerk-nextjs * - Core 3 changelog: https://clerk.com/changelog/2026-03-03-core-3 * - Core 3 upgrade guide: https://clerk.com/docs/guides/development/upgrading/upgrade-guides/core-3 * - `<Show>` component docs: https://clerk.com/docs/reference/components/control/show */ export declare function Protect(_props: RemovedControlComponentProps): never; export {}; //# sourceMappingURL=removedControlComponents.d.ts.map