Skip to content

Commit 2d6670c

Browse files
authored
chore(ui,clerk-js,shared): Remove public export of ConfigureSSO (#8779)
1 parent 0fece6f commit 2d6670c

19 files changed

Lines changed: 33 additions & 121 deletions

File tree

.changeset/few-buckets-grab.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@clerk/tanstack-react-start': minor
3+
'@clerk/react-router': minor
4+
'@clerk/clerk-js': minor
5+
'@clerk/nextjs': minor
6+
'@clerk/shared': minor
7+
'@clerk/astro': minor
8+
'@clerk/react': minor
9+
'@clerk/nuxt': minor
10+
'@clerk/vue': minor
11+
---
12+
13+
Remove the `<ConfigureSSO />` component from the public API in favor of usage within `OrganizationProfile`
14+
15+
Removing these exports has no breaking changes impact on production applications, as <ConfigureSSO /> was never released as a GA component

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ export { default as Waitlist } from './interactive/Waitlist.astro';
3131
export { default as OAuthConsent } from './interactive/OAuthConsent.astro';
3232
export { default as PricingTable } from './interactive/PricingTable.astro';
3333
export { default as APIKeys } from './interactive/APIKeys.astro';
34-
export { default as ConfigureSSO } from './interactive/ConfigureSSO.astro';

packages/astro/src/astro-components/interactive/ConfigureSSO.astro

Lines changed: 0 additions & 11 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const mountAllClerkAstroJSComponents = () => {
2121
waitlist: 'mountWaitlist',
2222
'pricing-table': 'mountPricingTable',
2323
'api-keys': 'mountAPIKeys',
24-
'configure-sso': 'mountConfigureSSO',
2524
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;
2625

2726
Object.entries(mountFns).forEach(([category, mountFn]) => {

packages/astro/src/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,4 @@ export type InternalUIComponentId =
119119
| 'google-one-tap'
120120
| 'waitlist'
121121
| 'pricing-table'
122-
| 'api-keys'
123-
| 'configure-sso';
122+
| 'api-keys';

packages/clerk-js/sandbox/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ void (async () => {
399399
'/waitlist': { mount: 'mountWaitlist', component: 'waitlist' },
400400
'/pricing-table': { mount: 'mountPricingTable', component: 'pricingTable' },
401401
'/api-keys': { mount: 'mountAPIKeys', component: 'apiKeys' },
402-
'/configure-sso': { mount: 'mountConfigureSSO', component: 'configureSSO' },
402+
'/configure-sso': { mount: '__internal_mountConfigureSSO', component: 'configureSSO' },
403403
'/task-choose-organization': {
404404
mount: 'mountTaskChooseOrganization',
405405
component: 'taskChooseOrganization',

packages/clerk-js/src/core/clerk.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,8 +1460,9 @@ export class Clerk implements ClerkInterface {
14601460
*
14611461
* @param targetNode Target to mount the ConfigureSSO component.
14621462
* @param props Configuration parameters.
1463+
* @hidden
14631464
*/
1464-
public mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
1465+
public __internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
14651466
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
14661467
for: 'organizations',
14671468
caller: 'ConfigureSSO',
@@ -1525,25 +1526,12 @@ export class Clerk implements ClerkInterface {
15251526
* If there is no component mounted at the target node, results in a noop.
15261527
*
15271528
* @param targetNode Target node to unmount the ConfigureSSO component from.
1529+
* @hidden
15281530
*/
1529-
public unmountConfigureSSO = (node: HTMLDivElement) => {
1531+
public __internal_unmountConfigureSSO = (node: HTMLDivElement) => {
15301532
void this.#clerkUI?.then(ui => ui.ensureMounted()).then(controls => controls.unmountComponent({ node }));
15311533
};
15321534

1533-
/**
1534-
* @deprecated Use `mountConfigureSSO` instead.
1535-
*/
1536-
public __experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
1537-
return this.mountConfigureSSO(node, props);
1538-
};
1539-
1540-
/**
1541-
* @deprecated Use `unmountConfigureSSO` instead.
1542-
*/
1543-
public __experimental_unmountConfigureSSO = (node: HTMLDivElement) => {
1544-
return this.unmountConfigureSSO(node);
1545-
};
1546-
15471535
public mountTaskChooseOrganization = (node: HTMLDivElement, props?: TaskChooseOrganizationProps) => {
15481536
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
15491537
for: 'organizations',

packages/nextjs/src/client-boundary/uiComponents.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';
1313

1414
export {
1515
APIKeys,
16-
ConfigureSSO,
1716
CreateOrganization,
1817
GoogleOneTap,
1918
HandleSSOCallback,

packages/nextjs/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export {
2323
*/
2424
export {
2525
APIKeys,
26-
ConfigureSSO,
2726
CreateOrganization,
2827
GoogleOneTap,
2928
OAuthConsent,

packages/nuxt/src/module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,6 @@ export default defineNuxtModule<ModuleOptions>({
190190
'Waitlist',
191191
// API Keys
192192
'APIKeys',
193-
// SSO
194-
'ConfigureSSO',
195193
];
196194
otherComponents.forEach(component => {
197195
void addComponent({

0 commit comments

Comments
 (0)