Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/few-buckets-grab.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/tanstack-react-start': minor
'@clerk/react-router': minor
'@clerk/clerk-js': minor
'@clerk/nextjs': minor
'@clerk/shared': minor
'@clerk/astro': minor
'@clerk/react': minor
'@clerk/nuxt': minor
'@clerk/vue': minor
---

Remove the `<ConfigureSSO />` component from the public API in favor of usage within `OrganizationProfile`

Removing these exports has no breaking changes impact on production applications, as <ConfigureSSO /> was never released as a GA component
1 change: 0 additions & 1 deletion packages/astro/src/astro-components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,4 +31,3 @@ export { default as Waitlist } from './interactive/Waitlist.astro';
export { default as OAuthConsent } from './interactive/OAuthConsent.astro';
export { default as PricingTable } from './interactive/PricingTable.astro';
export { default as APIKeys } from './interactive/APIKeys.astro';
export { default as ConfigureSSO } from './interactive/ConfigureSSO.astro';

This file was deleted.

Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,6 @@ const mountAllClerkAstroJSComponents = () => {
waitlist: 'mountWaitlist',
'pricing-table': 'mountPricingTable',
'api-keys': 'mountAPIKeys',
'configure-sso': 'mountConfigureSSO',
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;

Object.entries(mountFns).forEach(([category, mountFn]) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -119,5 +119,4 @@ export type InternalUIComponentId =
| 'google-one-tap'
| 'waitlist'
| 'pricing-table'
| 'api-keys'
| 'configure-sso';
| 'api-keys';
2 changes: 1 addition & 1 deletion packages/clerk-js/sandbox/app.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -399,7 +399,7 @@ void (async () => {
'/waitlist': { mount: 'mountWaitlist', component: 'waitlist' },
'/pricing-table': { mount: 'mountPricingTable', component: 'pricingTable' },
'/api-keys': { mount: 'mountAPIKeys', component: 'apiKeys' },
'/configure-sso': { mount: 'mountConfigureSSO', component: 'configureSSO' },
'/configure-sso': { mount: '__internal_mountConfigureSSO', component: 'configureSSO' },
'/task-choose-organization': {
mount: 'mountTaskChooseOrganization',
component: 'taskChooseOrganization',
Expand Down
20 changes: 4 additions & 16 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1460,8 +1460,9 @@ export class Clerk implements ClerkInterface {
*
* @param targetNode Target to mount the ConfigureSSO component.
* @param props Configuration parameters.
* @hidden
*/
public mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
public __internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
caller: 'ConfigureSSO',
Expand DownExpand Up@@ -1525,25 +1526,12 @@ export class Clerk implements ClerkInterface {
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the ConfigureSSO component from.
* @hidden
*/
public unmountConfigureSSO = (node: HTMLDivElement) => {
public __internal_unmountConfigureSSO = (node: HTMLDivElement) => {
void this.#clerkUI?.then(ui => ui.ensureMounted()).then(controls => controls.unmountComponent({ node }));
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
public __experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
return this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
public __experimental_unmountConfigureSSO = (node: HTMLDivElement) => {
return this.unmountConfigureSSO(node);
};

public mountTaskChooseOrganization = (node: HTMLDivElement, props?: TaskChooseOrganizationProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/client-boundary/uiComponents.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,6 @@ import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';

export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
HandleSSOCallback,
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ export {
*/
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
2 changes: 0 additions & 2 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -190,8 +190,6 @@ export default defineNuxtModule<ModuleOptions>({
'Waitlist',
// API Keys
'APIKeys',
// SSO
'ConfigureSSO',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/runtime/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,6 @@ export {
UserAvatar,
UserButton,
OrganizationSwitcher,
ConfigureSSO,
GoogleOneTap,
OAuthConsent,
Waitlist,
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
29 changes: 0 additions & 29 deletions packages/react/src/components/uiComponents.tsx
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
import type {
__internal_OAuthConsentProps,
APIKeysProps,
ConfigureSSOProps,
CreateOrganizationProps,
GoogleOneTapProps,
OrganizationListProps,
Expand DownExpand Up@@ -645,34 +644,6 @@ export const APIKeys = withClerk(
{ component: 'ApiKeys', renderWhileLoading: true },
);

export const ConfigureSSO = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<ConfigureSSOProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
const shouldShowFallback = mountingStatus === 'rendering' || !clerk.loaded;

const rendererRootProps = {
...(shouldShowFallback && fallback && { style: { display: 'none' } }),
};

return (
<>
{shouldShowFallback && fallback}
{clerk.loaded && (
<ClerkHostRenderer
component={component}
mount={clerk.mountConfigureSSO}
unmount={clerk.unmountConfigureSSO}
updateProps={(clerk as any).__internal_updateProps}
props={props}
rootProps={rendererRootProps}
/>
)}
</>
);
},
{ component: 'ConfigureSSO', renderWhileLoading: true },
);

export const OAuthConsent = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<__internal_OAuthConsentProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
Expand Down
24 changes: 5 additions & 19 deletions packages/react/src/isomorphicClerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -738,7 +738,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
});

this.premountConfigureSSONodes.forEach((props, node) => {
clerkjs.mountConfigureSSO(node, props);
clerkjs.__internal_mountConfigureSSO(node, props);
});

this.premountOAuthConsentNodes.forEach((props, node) => {
Expand DownExpand Up@@ -1277,36 +1277,22 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
}
};

mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
__internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.mountConfigureSSO(node, props);
this.clerkjs.__internal_mountConfigureSSO(node, props);
} else {
this.premountConfigureSSONodes.set(node, props);
}
};

unmountConfigureSSO = (node: HTMLDivElement): void => {
__internal_unmountConfigureSSO = (node: HTMLDivElement): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.unmountConfigureSSO(node);
this.clerkjs.__internal_unmountConfigureSSO(node);
} else {
this.premountConfigureSSONodes.delete(node);
}
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO = (node: HTMLDivElement): void => {
this.unmountConfigureSSO(node);
};

__internal_mountOAuthConsent = (node: HTMLDivElement, props?: OAuthConsentProps) => {
if (this.clerkjs && this.loaded) {
this.clerkjs.__internal_mountOAuthConsent(node, props);
Expand Down
22 changes: 7 additions & 15 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -721,26 +721,18 @@ export interface Clerk {
*
* @param targetNode - Target to mount the ConfigureSSO component.
* @param props - Configuration parameters.
* @hidden
*/
mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;
__internal_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* Unmount a configure SSO component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode - Target node to unmount the ConfigureSSO component from.
* @hidden
*/
unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;
__internal_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* Mounts a OAuth consent component at the target element.
Expand DownExpand Up@@ -2314,16 +2306,16 @@ export type APIKeysProps = {
showDescription?: boolean;
};

/**
* @internal
*/
export type ConfigureSSOProps = {
/**
* Customization options to fully match the Clerk components to your own brand. These options serve as overrides and will be merged with the global `appearance` configuration (if one is provided). See the [`Appearance`](https://clerk.com/docs/guides/customizing-clerk/appearance-prop/overview) docs for more information.
*/
appearance?: ClerkAppearanceTheme;
};

/** @deprecated Use `ConfigureSSOProps` instead. */
export type __experimental_ConfigureSSOProps = ConfigureSSOProps;

/** @generateWithEmptyComment */
export type GetAPIKeysParams = ClerkPaginationParams<{
/**
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,7 +29,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,6 @@ export { default as CreateOrganization } from './ui-components/CreateOrganizatio
export { default as OrganizationList } from './ui-components/OrganizationList.vue';
export { default as PricingTable } from './ui-components/PricingTable.vue';
export { default as APIKeys } from './ui-components/APIKeys.vue';
export { default as ConfigureSSO } from './ui-components/ConfigureSSO.vue';
export { default as OAuthConsent } from './ui-components/OAuthConsent.vue';
export { UserProfile } from './ui-components/UserProfile';
export { OrganizationProfile } from './ui-components/OrganizationProfile';
Expand Down
17 changes: 0 additions & 17 deletions packages/vue/src/components/ui-components/ConfigureSSO.vue

This file was deleted.

Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
chore(ui,clerk-js,shared): Remove public export of `ConfigureSSO` by LauraBeatris · Pull Request #8779 · clerk/javascript · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/few-buckets-grab.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/tanstack-react-start': minor
'@clerk/react-router': minor
'@clerk/clerk-js': minor
'@clerk/nextjs': minor
'@clerk/shared': minor
'@clerk/astro': minor
'@clerk/react': minor
'@clerk/nuxt': minor
'@clerk/vue': minor
---

Remove the `<ConfigureSSO />` component from the public API in favor of usage within `OrganizationProfile`

Removing these exports has no breaking changes impact on production applications, as <ConfigureSSO /> was never released as a GA component
1 change: 0 additions & 1 deletion packages/astro/src/astro-components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,4 +31,3 @@ export { default as Waitlist } from './interactive/Waitlist.astro';
export { default as OAuthConsent } from './interactive/OAuthConsent.astro';
export { default as PricingTable } from './interactive/PricingTable.astro';
export { default as APIKeys } from './interactive/APIKeys.astro';
export { default as ConfigureSSO } from './interactive/ConfigureSSO.astro';

This file was deleted.

Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,6 @@ const mountAllClerkAstroJSComponents = () => {
waitlist: 'mountWaitlist',
'pricing-table': 'mountPricingTable',
'api-keys': 'mountAPIKeys',
'configure-sso': 'mountConfigureSSO',
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;

Object.entries(mountFns).forEach(([category, mountFn]) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -119,5 +119,4 @@ export type InternalUIComponentId =
| 'google-one-tap'
| 'waitlist'
| 'pricing-table'
| 'api-keys'
| 'configure-sso';
| 'api-keys';
2 changes: 1 addition & 1 deletion packages/clerk-js/sandbox/app.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -399,7 +399,7 @@ void (async () => {
'/waitlist': { mount: 'mountWaitlist', component: 'waitlist' },
'/pricing-table': { mount: 'mountPricingTable', component: 'pricingTable' },
'/api-keys': { mount: 'mountAPIKeys', component: 'apiKeys' },
'/configure-sso': { mount: 'mountConfigureSSO', component: 'configureSSO' },
'/configure-sso': { mount: '__internal_mountConfigureSSO', component: 'configureSSO' },
'/task-choose-organization': {
mount: 'mountTaskChooseOrganization',
component: 'taskChooseOrganization',
Expand Down
20 changes: 4 additions & 16 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1460,8 +1460,9 @@ export class Clerk implements ClerkInterface {
*
* @param targetNode Target to mount the ConfigureSSO component.
* @param props Configuration parameters.
* @hidden
*/
public mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
public __internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
caller: 'ConfigureSSO',
Expand DownExpand Up@@ -1525,25 +1526,12 @@ export class Clerk implements ClerkInterface {
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the ConfigureSSO component from.
* @hidden
*/
public unmountConfigureSSO = (node: HTMLDivElement) => {
public __internal_unmountConfigureSSO = (node: HTMLDivElement) => {
void this.#clerkUI?.then(ui => ui.ensureMounted()).then(controls => controls.unmountComponent({ node }));
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
public __experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
return this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
public __experimental_unmountConfigureSSO = (node: HTMLDivElement) => {
return this.unmountConfigureSSO(node);
};

public mountTaskChooseOrganization = (node: HTMLDivElement, props?: TaskChooseOrganizationProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/client-boundary/uiComponents.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,6 @@ import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';

export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
HandleSSOCallback,
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ export {
*/
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
2 changes: 0 additions & 2 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -190,8 +190,6 @@ export default defineNuxtModule<ModuleOptions>({
'Waitlist',
// API Keys
'APIKeys',
// SSO
'ConfigureSSO',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/runtime/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,6 @@ export {
UserAvatar,
UserButton,
OrganizationSwitcher,
ConfigureSSO,
GoogleOneTap,
OAuthConsent,
Waitlist,
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
29 changes: 0 additions & 29 deletions packages/react/src/components/uiComponents.tsx
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
import type {
__internal_OAuthConsentProps,
APIKeysProps,
ConfigureSSOProps,
CreateOrganizationProps,
GoogleOneTapProps,
OrganizationListProps,
Expand DownExpand Up@@ -645,34 +644,6 @@ export const APIKeys = withClerk(
{ component: 'ApiKeys', renderWhileLoading: true },
);

export const ConfigureSSO = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<ConfigureSSOProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
const shouldShowFallback = mountingStatus === 'rendering' || !clerk.loaded;

const rendererRootProps = {
...(shouldShowFallback && fallback && { style: { display: 'none' } }),
};

return (
<>
{shouldShowFallback && fallback}
{clerk.loaded && (
<ClerkHostRenderer
component={component}
mount={clerk.mountConfigureSSO}
unmount={clerk.unmountConfigureSSO}
updateProps={(clerk as any).__internal_updateProps}
props={props}
rootProps={rendererRootProps}
/>
)}
</>
);
},
{ component: 'ConfigureSSO', renderWhileLoading: true },
);

export const OAuthConsent = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<__internal_OAuthConsentProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
Expand Down
24 changes: 5 additions & 19 deletions packages/react/src/isomorphicClerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -738,7 +738,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
});

this.premountConfigureSSONodes.forEach((props, node) => {
clerkjs.mountConfigureSSO(node, props);
clerkjs.__internal_mountConfigureSSO(node, props);
});

this.premountOAuthConsentNodes.forEach((props, node) => {
Expand DownExpand Up@@ -1277,36 +1277,22 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
}
};

mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
__internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.mountConfigureSSO(node, props);
this.clerkjs.__internal_mountConfigureSSO(node, props);
} else {
this.premountConfigureSSONodes.set(node, props);
}
};

unmountConfigureSSO = (node: HTMLDivElement): void => {
__internal_unmountConfigureSSO = (node: HTMLDivElement): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.unmountConfigureSSO(node);
this.clerkjs.__internal_unmountConfigureSSO(node);
} else {
this.premountConfigureSSONodes.delete(node);
}
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO = (node: HTMLDivElement): void => {
this.unmountConfigureSSO(node);
};

__internal_mountOAuthConsent = (node: HTMLDivElement, props?: OAuthConsentProps) => {
if (this.clerkjs && this.loaded) {
this.clerkjs.__internal_mountOAuthConsent(node, props);
Expand Down
22 changes: 7 additions & 15 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -721,26 +721,18 @@ export interface Clerk {
*
* @param targetNode - Target to mount the ConfigureSSO component.
* @param props - Configuration parameters.
* @hidden
*/
mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;
__internal_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* Unmount a configure SSO component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode - Target node to unmount the ConfigureSSO component from.
* @hidden
*/
unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;
__internal_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* Mounts a OAuth consent component at the target element.
Expand DownExpand Up@@ -2314,16 +2306,16 @@ export type APIKeysProps = {
showDescription?: boolean;
};

/**
* @internal
*/
export type ConfigureSSOProps = {
/**
* Customization options to fully match the Clerk components to your own brand. These options serve as overrides and will be merged with the global `appearance` configuration (if one is provided). See the [`Appearance`](https://clerk.com/docs/guides/customizing-clerk/appearance-prop/overview) docs for more information.
*/
appearance?: ClerkAppearanceTheme;
};

/** @deprecated Use `ConfigureSSOProps` instead. */
export type __experimental_ConfigureSSOProps = ConfigureSSOProps;

/** @generateWithEmptyComment */
export type GetAPIKeysParams = ClerkPaginationParams<{
/**
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,7 +29,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,6 @@ export { default as CreateOrganization } from './ui-components/CreateOrganizatio
export { default as OrganizationList } from './ui-components/OrganizationList.vue';
export { default as PricingTable } from './ui-components/PricingTable.vue';
export { default as APIKeys } from './ui-components/APIKeys.vue';
export { default as ConfigureSSO } from './ui-components/ConfigureSSO.vue';
export { default as OAuthConsent } from './ui-components/OAuthConsent.vue';
export { UserProfile } from './ui-components/UserProfile';
export { OrganizationProfile } from './ui-components/OrganizationProfile';
Expand Down
17 changes: 0 additions & 17 deletions packages/vue/src/components/ui-components/ConfigureSSO.vue

This file was deleted.

Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' chore(ui,clerk-js,shared): Remove public export of `ConfigureSSO` by LauraBeatris · Pull Request #8779 · clerk/javascript · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/few-buckets-grab.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/tanstack-react-start': minor
'@clerk/react-router': minor
'@clerk/clerk-js': minor
'@clerk/nextjs': minor
'@clerk/shared': minor
'@clerk/astro': minor
'@clerk/react': minor
'@clerk/nuxt': minor
'@clerk/vue': minor
---

Remove the `<ConfigureSSO />` component from the public API in favor of usage within `OrganizationProfile`

Removing these exports has no breaking changes impact on production applications, as <ConfigureSSO /> was never released as a GA component
1 change: 0 additions & 1 deletion packages/astro/src/astro-components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,4 +31,3 @@ export { default as Waitlist } from './interactive/Waitlist.astro';
export { default as OAuthConsent } from './interactive/OAuthConsent.astro';
export { default as PricingTable } from './interactive/PricingTable.astro';
export { default as APIKeys } from './interactive/APIKeys.astro';
export { default as ConfigureSSO } from './interactive/ConfigureSSO.astro';

This file was deleted.

Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,6 @@ const mountAllClerkAstroJSComponents = () => {
waitlist: 'mountWaitlist',
'pricing-table': 'mountPricingTable',
'api-keys': 'mountAPIKeys',
'configure-sso': 'mountConfigureSSO',
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;

Object.entries(mountFns).forEach(([category, mountFn]) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -119,5 +119,4 @@ export type InternalUIComponentId =
| 'google-one-tap'
| 'waitlist'
| 'pricing-table'
| 'api-keys'
| 'configure-sso';
| 'api-keys';
2 changes: 1 addition & 1 deletion packages/clerk-js/sandbox/app.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -399,7 +399,7 @@ void (async () => {
'/waitlist': { mount: 'mountWaitlist', component: 'waitlist' },
'/pricing-table': { mount: 'mountPricingTable', component: 'pricingTable' },
'/api-keys': { mount: 'mountAPIKeys', component: 'apiKeys' },
'/configure-sso': { mount: 'mountConfigureSSO', component: 'configureSSO' },
'/configure-sso': { mount: '__internal_mountConfigureSSO', component: 'configureSSO' },
'/task-choose-organization': {
mount: 'mountTaskChooseOrganization',
component: 'taskChooseOrganization',
Expand Down
20 changes: 4 additions & 16 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1460,8 +1460,9 @@ export class Clerk implements ClerkInterface {
*
* @param targetNode Target to mount the ConfigureSSO component.
* @param props Configuration parameters.
* @hidden
*/
public mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
public __internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
caller: 'ConfigureSSO',
Expand DownExpand Up@@ -1525,25 +1526,12 @@ export class Clerk implements ClerkInterface {
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the ConfigureSSO component from.
* @hidden
*/
public unmountConfigureSSO = (node: HTMLDivElement) => {
public __internal_unmountConfigureSSO = (node: HTMLDivElement) => {
void this.#clerkUI?.then(ui => ui.ensureMounted()).then(controls => controls.unmountComponent({ node }));
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
public __experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
return this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
public __experimental_unmountConfigureSSO = (node: HTMLDivElement) => {
return this.unmountConfigureSSO(node);
};

public mountTaskChooseOrganization = (node: HTMLDivElement, props?: TaskChooseOrganizationProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/client-boundary/uiComponents.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,6 @@ import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';

export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
HandleSSOCallback,
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ export {
*/
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
2 changes: 0 additions & 2 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -190,8 +190,6 @@ export default defineNuxtModule<ModuleOptions>({
'Waitlist',
// API Keys
'APIKeys',
// SSO
'ConfigureSSO',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/runtime/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,6 @@ export {
UserAvatar,
UserButton,
OrganizationSwitcher,
ConfigureSSO,
GoogleOneTap,
OAuthConsent,
Waitlist,
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
29 changes: 0 additions & 29 deletions packages/react/src/components/uiComponents.tsx
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
import type {
__internal_OAuthConsentProps,
APIKeysProps,
ConfigureSSOProps,
CreateOrganizationProps,
GoogleOneTapProps,
OrganizationListProps,
Expand DownExpand Up@@ -645,34 +644,6 @@ export const APIKeys = withClerk(
{ component: 'ApiKeys', renderWhileLoading: true },
);

export const ConfigureSSO = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<ConfigureSSOProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
const shouldShowFallback = mountingStatus === 'rendering' || !clerk.loaded;

const rendererRootProps = {
...(shouldShowFallback && fallback && { style: { display: 'none' } }),
};

return (
<>
{shouldShowFallback && fallback}
{clerk.loaded && (
<ClerkHostRenderer
component={component}
mount={clerk.mountConfigureSSO}
unmount={clerk.unmountConfigureSSO}
updateProps={(clerk as any).__internal_updateProps}
props={props}
rootProps={rendererRootProps}
/>
)}
</>
);
},
{ component: 'ConfigureSSO', renderWhileLoading: true },
);

export const OAuthConsent = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<__internal_OAuthConsentProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
Expand Down
24 changes: 5 additions & 19 deletions packages/react/src/isomorphicClerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -738,7 +738,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
});

this.premountConfigureSSONodes.forEach((props, node) => {
clerkjs.mountConfigureSSO(node, props);
clerkjs.__internal_mountConfigureSSO(node, props);
});

this.premountOAuthConsentNodes.forEach((props, node) => {
Expand DownExpand Up@@ -1277,36 +1277,22 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
}
};

mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
__internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.mountConfigureSSO(node, props);
this.clerkjs.__internal_mountConfigureSSO(node, props);
} else {
this.premountConfigureSSONodes.set(node, props);
}
};

unmountConfigureSSO = (node: HTMLDivElement): void => {
__internal_unmountConfigureSSO = (node: HTMLDivElement): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.unmountConfigureSSO(node);
this.clerkjs.__internal_unmountConfigureSSO(node);
} else {
this.premountConfigureSSONodes.delete(node);
}
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO = (node: HTMLDivElement): void => {
this.unmountConfigureSSO(node);
};

__internal_mountOAuthConsent = (node: HTMLDivElement, props?: OAuthConsentProps) => {
if (this.clerkjs && this.loaded) {
this.clerkjs.__internal_mountOAuthConsent(node, props);
Expand Down
22 changes: 7 additions & 15 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -721,26 +721,18 @@ export interface Clerk {
*
* @param targetNode - Target to mount the ConfigureSSO component.
* @param props - Configuration parameters.
* @hidden
*/
mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;
__internal_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* Unmount a configure SSO component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode - Target node to unmount the ConfigureSSO component from.
* @hidden
*/
unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;
__internal_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* Mounts a OAuth consent component at the target element.
Expand DownExpand Up@@ -2314,16 +2306,16 @@ export type APIKeysProps = {
showDescription?: boolean;
};

/**
* @internal
*/
export type ConfigureSSOProps = {
/**
* Customization options to fully match the Clerk components to your own brand. These options serve as overrides and will be merged with the global `appearance` configuration (if one is provided). See the [`Appearance`](https://clerk.com/docs/guides/customizing-clerk/appearance-prop/overview) docs for more information.
*/
appearance?: ClerkAppearanceTheme;
};

/** @deprecated Use `ConfigureSSOProps` instead. */
export type __experimental_ConfigureSSOProps = ConfigureSSOProps;

/** @generateWithEmptyComment */
export type GetAPIKeysParams = ClerkPaginationParams<{
/**
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,7 +29,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,6 @@ export { default as CreateOrganization } from './ui-components/CreateOrganizatio
export { default as OrganizationList } from './ui-components/OrganizationList.vue';
export { default as PricingTable } from './ui-components/PricingTable.vue';
export { default as APIKeys } from './ui-components/APIKeys.vue';
export { default as ConfigureSSO } from './ui-components/ConfigureSSO.vue';
export { default as OAuthConsent } from './ui-components/OAuthConsent.vue';
export { UserProfile } from './ui-components/UserProfile';
export { OrganizationProfile } from './ui-components/OrganizationProfile';
Expand Down
17 changes: 0 additions & 17 deletions packages/vue/src/components/ui-components/ConfigureSSO.vue

This file was deleted.

Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' chore(ui,clerk-js,shared): Remove public export of `ConfigureSSO` by LauraBeatris · Pull Request #8779 · clerk/javascript · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/few-buckets-grab.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/tanstack-react-start': minor
'@clerk/react-router': minor
'@clerk/clerk-js': minor
'@clerk/nextjs': minor
'@clerk/shared': minor
'@clerk/astro': minor
'@clerk/react': minor
'@clerk/nuxt': minor
'@clerk/vue': minor
---

Remove the `<ConfigureSSO />` component from the public API in favor of usage within `OrganizationProfile`

Removing these exports has no breaking changes impact on production applications, as <ConfigureSSO /> was never released as a GA component
1 change: 0 additions & 1 deletion packages/astro/src/astro-components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,4 +31,3 @@ export { default as Waitlist } from './interactive/Waitlist.astro';
export { default as OAuthConsent } from './interactive/OAuthConsent.astro';
export { default as PricingTable } from './interactive/PricingTable.astro';
export { default as APIKeys } from './interactive/APIKeys.astro';
export { default as ConfigureSSO } from './interactive/ConfigureSSO.astro';

This file was deleted.

Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,6 @@ const mountAllClerkAstroJSComponents = () => {
waitlist: 'mountWaitlist',
'pricing-table': 'mountPricingTable',
'api-keys': 'mountAPIKeys',
'configure-sso': 'mountConfigureSSO',
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;

Object.entries(mountFns).forEach(([category, mountFn]) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -119,5 +119,4 @@ export type InternalUIComponentId =
| 'google-one-tap'
| 'waitlist'
| 'pricing-table'
| 'api-keys'
| 'configure-sso';
| 'api-keys';
2 changes: 1 addition & 1 deletion packages/clerk-js/sandbox/app.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -399,7 +399,7 @@ void (async () => {
'/waitlist': { mount: 'mountWaitlist', component: 'waitlist' },
'/pricing-table': { mount: 'mountPricingTable', component: 'pricingTable' },
'/api-keys': { mount: 'mountAPIKeys', component: 'apiKeys' },
'/configure-sso': { mount: 'mountConfigureSSO', component: 'configureSSO' },
'/configure-sso': { mount: '__internal_mountConfigureSSO', component: 'configureSSO' },
'/task-choose-organization': {
mount: 'mountTaskChooseOrganization',
component: 'taskChooseOrganization',
Expand Down
20 changes: 4 additions & 16 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1460,8 +1460,9 @@ export class Clerk implements ClerkInterface {
*
* @param targetNode Target to mount the ConfigureSSO component.
* @param props Configuration parameters.
* @hidden
*/
public mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
public __internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
caller: 'ConfigureSSO',
Expand DownExpand Up@@ -1525,25 +1526,12 @@ export class Clerk implements ClerkInterface {
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the ConfigureSSO component from.
* @hidden
*/
public unmountConfigureSSO = (node: HTMLDivElement) => {
public __internal_unmountConfigureSSO = (node: HTMLDivElement) => {
void this.#clerkUI?.then(ui => ui.ensureMounted()).then(controls => controls.unmountComponent({ node }));
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
public __experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
return this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
public __experimental_unmountConfigureSSO = (node: HTMLDivElement) => {
return this.unmountConfigureSSO(node);
};

public mountTaskChooseOrganization = (node: HTMLDivElement, props?: TaskChooseOrganizationProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/client-boundary/uiComponents.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,6 @@ import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';

export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
HandleSSOCallback,
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ export {
*/
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
2 changes: 0 additions & 2 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -190,8 +190,6 @@ export default defineNuxtModule<ModuleOptions>({
'Waitlist',
// API Keys
'APIKeys',
// SSO
'ConfigureSSO',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/runtime/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,6 @@ export {
UserAvatar,
UserButton,
OrganizationSwitcher,
ConfigureSSO,
GoogleOneTap,
OAuthConsent,
Waitlist,
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
29 changes: 0 additions & 29 deletions packages/react/src/components/uiComponents.tsx
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
import type {
__internal_OAuthConsentProps,
APIKeysProps,
ConfigureSSOProps,
CreateOrganizationProps,
GoogleOneTapProps,
OrganizationListProps,
Expand DownExpand Up@@ -645,34 +644,6 @@ export const APIKeys = withClerk(
{ component: 'ApiKeys', renderWhileLoading: true },
);

export const ConfigureSSO = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<ConfigureSSOProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
const shouldShowFallback = mountingStatus === 'rendering' || !clerk.loaded;

const rendererRootProps = {
...(shouldShowFallback && fallback && { style: { display: 'none' } }),
};

return (
<>
{shouldShowFallback && fallback}
{clerk.loaded && (
<ClerkHostRenderer
component={component}
mount={clerk.mountConfigureSSO}
unmount={clerk.unmountConfigureSSO}
updateProps={(clerk as any).__internal_updateProps}
props={props}
rootProps={rendererRootProps}
/>
)}
</>
);
},
{ component: 'ConfigureSSO', renderWhileLoading: true },
);

export const OAuthConsent = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<__internal_OAuthConsentProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
Expand Down
24 changes: 5 additions & 19 deletions packages/react/src/isomorphicClerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -738,7 +738,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
});

this.premountConfigureSSONodes.forEach((props, node) => {
clerkjs.mountConfigureSSO(node, props);
clerkjs.__internal_mountConfigureSSO(node, props);
});

this.premountOAuthConsentNodes.forEach((props, node) => {
Expand DownExpand Up@@ -1277,36 +1277,22 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
}
};

mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
__internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.mountConfigureSSO(node, props);
this.clerkjs.__internal_mountConfigureSSO(node, props);
} else {
this.premountConfigureSSONodes.set(node, props);
}
};

unmountConfigureSSO = (node: HTMLDivElement): void => {
__internal_unmountConfigureSSO = (node: HTMLDivElement): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.unmountConfigureSSO(node);
this.clerkjs.__internal_unmountConfigureSSO(node);
} else {
this.premountConfigureSSONodes.delete(node);
}
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO = (node: HTMLDivElement): void => {
this.unmountConfigureSSO(node);
};

__internal_mountOAuthConsent = (node: HTMLDivElement, props?: OAuthConsentProps) => {
if (this.clerkjs && this.loaded) {
this.clerkjs.__internal_mountOAuthConsent(node, props);
Expand Down
22 changes: 7 additions & 15 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -721,26 +721,18 @@ export interface Clerk {
*
* @param targetNode - Target to mount the ConfigureSSO component.
* @param props - Configuration parameters.
* @hidden
*/
mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;
__internal_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* Unmount a configure SSO component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode - Target node to unmount the ConfigureSSO component from.
* @hidden
*/
unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;
__internal_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* Mounts a OAuth consent component at the target element.
Expand DownExpand Up@@ -2314,16 +2306,16 @@ export type APIKeysProps = {
showDescription?: boolean;
};

/**
* @internal
*/
export type ConfigureSSOProps = {
/**
* Customization options to fully match the Clerk components to your own brand. These options serve as overrides and will be merged with the global `appearance` configuration (if one is provided). See the [`Appearance`](https://clerk.com/docs/guides/customizing-clerk/appearance-prop/overview) docs for more information.
*/
appearance?: ClerkAppearanceTheme;
};

/** @deprecated Use `ConfigureSSOProps` instead. */
export type __experimental_ConfigureSSOProps = ConfigureSSOProps;

/** @generateWithEmptyComment */
export type GetAPIKeysParams = ClerkPaginationParams<{
/**
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,7 +29,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,6 @@ export { default as CreateOrganization } from './ui-components/CreateOrganizatio
export { default as OrganizationList } from './ui-components/OrganizationList.vue';
export { default as PricingTable } from './ui-components/PricingTable.vue';
export { default as APIKeys } from './ui-components/APIKeys.vue';
export { default as ConfigureSSO } from './ui-components/ConfigureSSO.vue';
export { default as OAuthConsent } from './ui-components/OAuthConsent.vue';
export { UserProfile } from './ui-components/UserProfile';
export { OrganizationProfile } from './ui-components/OrganizationProfile';
Expand Down
17 changes: 0 additions & 17 deletions packages/vue/src/components/ui-components/ConfigureSSO.vue

This file was deleted.

Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' chore(ui,clerk-js,shared): Remove public export of `ConfigureSSO` by LauraBeatris · Pull Request #8779 · clerk/javascript · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/few-buckets-grab.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/tanstack-react-start': minor
'@clerk/react-router': minor
'@clerk/clerk-js': minor
'@clerk/nextjs': minor
'@clerk/shared': minor
'@clerk/astro': minor
'@clerk/react': minor
'@clerk/nuxt': minor
'@clerk/vue': minor
---

Remove the `<ConfigureSSO />` component from the public API in favor of usage within `OrganizationProfile`

Removing these exports has no breaking changes impact on production applications, as <ConfigureSSO /> was never released as a GA component
1 change: 0 additions & 1 deletion packages/astro/src/astro-components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,4 +31,3 @@ export { default as Waitlist } from './interactive/Waitlist.astro';
export { default as OAuthConsent } from './interactive/OAuthConsent.astro';
export { default as PricingTable } from './interactive/PricingTable.astro';
export { default as APIKeys } from './interactive/APIKeys.astro';
export { default as ConfigureSSO } from './interactive/ConfigureSSO.astro';

This file was deleted.

Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,6 @@ const mountAllClerkAstroJSComponents = () => {
waitlist: 'mountWaitlist',
'pricing-table': 'mountPricingTable',
'api-keys': 'mountAPIKeys',
'configure-sso': 'mountConfigureSSO',
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;

Object.entries(mountFns).forEach(([category, mountFn]) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -119,5 +119,4 @@ export type InternalUIComponentId =
| 'google-one-tap'
| 'waitlist'
| 'pricing-table'
| 'api-keys'
| 'configure-sso';
| 'api-keys';
2 changes: 1 addition & 1 deletion packages/clerk-js/sandbox/app.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -399,7 +399,7 @@ void (async () => {
'/waitlist': { mount: 'mountWaitlist', component: 'waitlist' },
'/pricing-table': { mount: 'mountPricingTable', component: 'pricingTable' },
'/api-keys': { mount: 'mountAPIKeys', component: 'apiKeys' },
'/configure-sso': { mount: 'mountConfigureSSO', component: 'configureSSO' },
'/configure-sso': { mount: '__internal_mountConfigureSSO', component: 'configureSSO' },
'/task-choose-organization': {
mount: 'mountTaskChooseOrganization',
component: 'taskChooseOrganization',
Expand Down
20 changes: 4 additions & 16 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1460,8 +1460,9 @@ export class Clerk implements ClerkInterface {
*
* @param targetNode Target to mount the ConfigureSSO component.
* @param props Configuration parameters.
* @hidden
*/
public mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
public __internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
caller: 'ConfigureSSO',
Expand DownExpand Up@@ -1525,25 +1526,12 @@ export class Clerk implements ClerkInterface {
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the ConfigureSSO component from.
* @hidden
*/
public unmountConfigureSSO = (node: HTMLDivElement) => {
public __internal_unmountConfigureSSO = (node: HTMLDivElement) => {
void this.#clerkUI?.then(ui => ui.ensureMounted()).then(controls => controls.unmountComponent({ node }));
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
public __experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
return this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
public __experimental_unmountConfigureSSO = (node: HTMLDivElement) => {
return this.unmountConfigureSSO(node);
};

public mountTaskChooseOrganization = (node: HTMLDivElement, props?: TaskChooseOrganizationProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/client-boundary/uiComponents.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,6 @@ import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';

export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
HandleSSOCallback,
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ export {
*/
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
2 changes: 0 additions & 2 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -190,8 +190,6 @@ export default defineNuxtModule<ModuleOptions>({
'Waitlist',
// API Keys
'APIKeys',
// SSO
'ConfigureSSO',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/runtime/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,6 @@ export {
UserAvatar,
UserButton,
OrganizationSwitcher,
ConfigureSSO,
GoogleOneTap,
OAuthConsent,
Waitlist,
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
29 changes: 0 additions & 29 deletions packages/react/src/components/uiComponents.tsx
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
import type {
__internal_OAuthConsentProps,
APIKeysProps,
ConfigureSSOProps,
CreateOrganizationProps,
GoogleOneTapProps,
OrganizationListProps,
Expand DownExpand Up@@ -645,34 +644,6 @@ export const APIKeys = withClerk(
{ component: 'ApiKeys', renderWhileLoading: true },
);

export const ConfigureSSO = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<ConfigureSSOProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
const shouldShowFallback = mountingStatus === 'rendering' || !clerk.loaded;

const rendererRootProps = {
...(shouldShowFallback && fallback && { style: { display: 'none' } }),
};

return (
<>
{shouldShowFallback && fallback}
{clerk.loaded && (
<ClerkHostRenderer
component={component}
mount={clerk.mountConfigureSSO}
unmount={clerk.unmountConfigureSSO}
updateProps={(clerk as any).__internal_updateProps}
props={props}
rootProps={rendererRootProps}
/>
)}
</>
);
},
{ component: 'ConfigureSSO', renderWhileLoading: true },
);

export const OAuthConsent = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<__internal_OAuthConsentProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
Expand Down
24 changes: 5 additions & 19 deletions packages/react/src/isomorphicClerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -738,7 +738,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
});

this.premountConfigureSSONodes.forEach((props, node) => {
clerkjs.mountConfigureSSO(node, props);
clerkjs.__internal_mountConfigureSSO(node, props);
});

this.premountOAuthConsentNodes.forEach((props, node) => {
Expand DownExpand Up@@ -1277,36 +1277,22 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
}
};

mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
__internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.mountConfigureSSO(node, props);
this.clerkjs.__internal_mountConfigureSSO(node, props);
} else {
this.premountConfigureSSONodes.set(node, props);
}
};

unmountConfigureSSO = (node: HTMLDivElement): void => {
__internal_unmountConfigureSSO = (node: HTMLDivElement): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.unmountConfigureSSO(node);
this.clerkjs.__internal_unmountConfigureSSO(node);
} else {
this.premountConfigureSSONodes.delete(node);
}
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO = (node: HTMLDivElement): void => {
this.unmountConfigureSSO(node);
};

__internal_mountOAuthConsent = (node: HTMLDivElement, props?: OAuthConsentProps) => {
if (this.clerkjs && this.loaded) {
this.clerkjs.__internal_mountOAuthConsent(node, props);
Expand Down
22 changes: 7 additions & 15 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -721,26 +721,18 @@ export interface Clerk {
*
* @param targetNode - Target to mount the ConfigureSSO component.
* @param props - Configuration parameters.
* @hidden
*/
mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;
__internal_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* Unmount a configure SSO component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode - Target node to unmount the ConfigureSSO component from.
* @hidden
*/
unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;
__internal_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* Mounts a OAuth consent component at the target element.
Expand DownExpand Up@@ -2314,16 +2306,16 @@ export type APIKeysProps = {
showDescription?: boolean;
};

/**
* @internal
*/
export type ConfigureSSOProps = {
/**
* Customization options to fully match the Clerk components to your own brand. These options serve as overrides and will be merged with the global `appearance` configuration (if one is provided). See the [`Appearance`](https://clerk.com/docs/guides/customizing-clerk/appearance-prop/overview) docs for more information.
*/
appearance?: ClerkAppearanceTheme;
};

/** @deprecated Use `ConfigureSSOProps` instead. */
export type __experimental_ConfigureSSOProps = ConfigureSSOProps;

/** @generateWithEmptyComment */
export type GetAPIKeysParams = ClerkPaginationParams<{
/**
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,7 +29,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,6 @@ export { default as CreateOrganization } from './ui-components/CreateOrganizatio
export { default as OrganizationList } from './ui-components/OrganizationList.vue';
export { default as PricingTable } from './ui-components/PricingTable.vue';
export { default as APIKeys } from './ui-components/APIKeys.vue';
export { default as ConfigureSSO } from './ui-components/ConfigureSSO.vue';
export { default as OAuthConsent } from './ui-components/OAuthConsent.vue';
export { UserProfile } from './ui-components/UserProfile';
export { OrganizationProfile } from './ui-components/OrganizationProfile';
Expand Down
17 changes: 0 additions & 17 deletions packages/vue/src/components/ui-components/ConfigureSSO.vue

This file was deleted.

Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' chore(ui,clerk-js,shared): Remove public export of `ConfigureSSO` by LauraBeatris · Pull Request #8779 · clerk/javascript · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/few-buckets-grab.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/tanstack-react-start': minor
'@clerk/react-router': minor
'@clerk/clerk-js': minor
'@clerk/nextjs': minor
'@clerk/shared': minor
'@clerk/astro': minor
'@clerk/react': minor
'@clerk/nuxt': minor
'@clerk/vue': minor
---

Remove the `<ConfigureSSO />` component from the public API in favor of usage within `OrganizationProfile`

Removing these exports has no breaking changes impact on production applications, as <ConfigureSSO /> was never released as a GA component
1 change: 0 additions & 1 deletion packages/astro/src/astro-components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,4 +31,3 @@ export { default as Waitlist } from './interactive/Waitlist.astro';
export { default as OAuthConsent } from './interactive/OAuthConsent.astro';
export { default as PricingTable } from './interactive/PricingTable.astro';
export { default as APIKeys } from './interactive/APIKeys.astro';
export { default as ConfigureSSO } from './interactive/ConfigureSSO.astro';

This file was deleted.

Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,6 @@ const mountAllClerkAstroJSComponents = () => {
waitlist: 'mountWaitlist',
'pricing-table': 'mountPricingTable',
'api-keys': 'mountAPIKeys',
'configure-sso': 'mountConfigureSSO',
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;

Object.entries(mountFns).forEach(([category, mountFn]) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -119,5 +119,4 @@ export type InternalUIComponentId =
| 'google-one-tap'
| 'waitlist'
| 'pricing-table'
| 'api-keys'
| 'configure-sso';
| 'api-keys';
2 changes: 1 addition & 1 deletion packages/clerk-js/sandbox/app.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -399,7 +399,7 @@ void (async () => {
'/waitlist': { mount: 'mountWaitlist', component: 'waitlist' },
'/pricing-table': { mount: 'mountPricingTable', component: 'pricingTable' },
'/api-keys': { mount: 'mountAPIKeys', component: 'apiKeys' },
'/configure-sso': { mount: 'mountConfigureSSO', component: 'configureSSO' },
'/configure-sso': { mount: '__internal_mountConfigureSSO', component: 'configureSSO' },
'/task-choose-organization': {
mount: 'mountTaskChooseOrganization',
component: 'taskChooseOrganization',
Expand Down
20 changes: 4 additions & 16 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1460,8 +1460,9 @@ export class Clerk implements ClerkInterface {
*
* @param targetNode Target to mount the ConfigureSSO component.
* @param props Configuration parameters.
* @hidden
*/
public mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
public __internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
caller: 'ConfigureSSO',
Expand DownExpand Up@@ -1525,25 +1526,12 @@ export class Clerk implements ClerkInterface {
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the ConfigureSSO component from.
* @hidden
*/
public unmountConfigureSSO = (node: HTMLDivElement) => {
public __internal_unmountConfigureSSO = (node: HTMLDivElement) => {
void this.#clerkUI?.then(ui => ui.ensureMounted()).then(controls => controls.unmountComponent({ node }));
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
public __experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
return this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
public __experimental_unmountConfigureSSO = (node: HTMLDivElement) => {
return this.unmountConfigureSSO(node);
};

public mountTaskChooseOrganization = (node: HTMLDivElement, props?: TaskChooseOrganizationProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/client-boundary/uiComponents.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,6 @@ import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';

export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
HandleSSOCallback,
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ export {
*/
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
2 changes: 0 additions & 2 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -190,8 +190,6 @@ export default defineNuxtModule<ModuleOptions>({
'Waitlist',
// API Keys
'APIKeys',
// SSO
'ConfigureSSO',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/runtime/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,6 @@ export {
UserAvatar,
UserButton,
OrganizationSwitcher,
ConfigureSSO,
GoogleOneTap,
OAuthConsent,
Waitlist,
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
29 changes: 0 additions & 29 deletions packages/react/src/components/uiComponents.tsx
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
import type {
__internal_OAuthConsentProps,
APIKeysProps,
ConfigureSSOProps,
CreateOrganizationProps,
GoogleOneTapProps,
OrganizationListProps,
Expand DownExpand Up@@ -645,34 +644,6 @@ export const APIKeys = withClerk(
{ component: 'ApiKeys', renderWhileLoading: true },
);

export const ConfigureSSO = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<ConfigureSSOProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
const shouldShowFallback = mountingStatus === 'rendering' || !clerk.loaded;

const rendererRootProps = {
...(shouldShowFallback && fallback && { style: { display: 'none' } }),
};

return (
<>
{shouldShowFallback && fallback}
{clerk.loaded && (
<ClerkHostRenderer
component={component}
mount={clerk.mountConfigureSSO}
unmount={clerk.unmountConfigureSSO}
updateProps={(clerk as any).__internal_updateProps}
props={props}
rootProps={rendererRootProps}
/>
)}
</>
);
},
{ component: 'ConfigureSSO', renderWhileLoading: true },
);

export const OAuthConsent = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<__internal_OAuthConsentProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
Expand Down
24 changes: 5 additions & 19 deletions packages/react/src/isomorphicClerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -738,7 +738,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
});

this.premountConfigureSSONodes.forEach((props, node) => {
clerkjs.mountConfigureSSO(node, props);
clerkjs.__internal_mountConfigureSSO(node, props);
});

this.premountOAuthConsentNodes.forEach((props, node) => {
Expand DownExpand Up@@ -1277,36 +1277,22 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
}
};

mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
__internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.mountConfigureSSO(node, props);
this.clerkjs.__internal_mountConfigureSSO(node, props);
} else {
this.premountConfigureSSONodes.set(node, props);
}
};

unmountConfigureSSO = (node: HTMLDivElement): void => {
__internal_unmountConfigureSSO = (node: HTMLDivElement): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.unmountConfigureSSO(node);
this.clerkjs.__internal_unmountConfigureSSO(node);
} else {
this.premountConfigureSSONodes.delete(node);
}
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO = (node: HTMLDivElement): void => {
this.unmountConfigureSSO(node);
};

__internal_mountOAuthConsent = (node: HTMLDivElement, props?: OAuthConsentProps) => {
if (this.clerkjs && this.loaded) {
this.clerkjs.__internal_mountOAuthConsent(node, props);
Expand Down
22 changes: 7 additions & 15 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -721,26 +721,18 @@ export interface Clerk {
*
* @param targetNode - Target to mount the ConfigureSSO component.
* @param props - Configuration parameters.
* @hidden
*/
mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;
__internal_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* Unmount a configure SSO component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode - Target node to unmount the ConfigureSSO component from.
* @hidden
*/
unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;
__internal_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* Mounts a OAuth consent component at the target element.
Expand DownExpand Up@@ -2314,16 +2306,16 @@ export type APIKeysProps = {
showDescription?: boolean;
};

/**
* @internal
*/
export type ConfigureSSOProps = {
/**
* Customization options to fully match the Clerk components to your own brand. These options serve as overrides and will be merged with the global `appearance` configuration (if one is provided). See the [`Appearance`](https://clerk.com/docs/guides/customizing-clerk/appearance-prop/overview) docs for more information.
*/
appearance?: ClerkAppearanceTheme;
};

/** @deprecated Use `ConfigureSSOProps` instead. */
export type __experimental_ConfigureSSOProps = ConfigureSSOProps;

/** @generateWithEmptyComment */
export type GetAPIKeysParams = ClerkPaginationParams<{
/**
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,7 +29,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,6 @@ export { default as CreateOrganization } from './ui-components/CreateOrganizatio
export { default as OrganizationList } from './ui-components/OrganizationList.vue';
export { default as PricingTable } from './ui-components/PricingTable.vue';
export { default as APIKeys } from './ui-components/APIKeys.vue';
export { default as ConfigureSSO } from './ui-components/ConfigureSSO.vue';
export { default as OAuthConsent } from './ui-components/OAuthConsent.vue';
export { UserProfile } from './ui-components/UserProfile';
export { OrganizationProfile } from './ui-components/OrganizationProfile';
Expand Down
17 changes: 0 additions & 17 deletions packages/vue/src/components/ui-components/ConfigureSSO.vue

This file was deleted.

Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); chore(ui,clerk-js,shared): Remove public export of `ConfigureSSO` by LauraBeatris · Pull Request #8779 · clerk/javascript · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/few-buckets-grab.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/tanstack-react-start': minor
'@clerk/react-router': minor
'@clerk/clerk-js': minor
'@clerk/nextjs': minor
'@clerk/shared': minor
'@clerk/astro': minor
'@clerk/react': minor
'@clerk/nuxt': minor
'@clerk/vue': minor
---

Remove the `<ConfigureSSO />` component from the public API in favor of usage within `OrganizationProfile`

Removing these exports has no breaking changes impact on production applications, as <ConfigureSSO /> was never released as a GA component
1 change: 0 additions & 1 deletion packages/astro/src/astro-components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,4 +31,3 @@ export { default as Waitlist } from './interactive/Waitlist.astro';
export { default as OAuthConsent } from './interactive/OAuthConsent.astro';
export { default as PricingTable } from './interactive/PricingTable.astro';
export { default as APIKeys } from './interactive/APIKeys.astro';
export { default as ConfigureSSO } from './interactive/ConfigureSSO.astro';

This file was deleted.

Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,6 @@ const mountAllClerkAstroJSComponents = () => {
waitlist: 'mountWaitlist',
'pricing-table': 'mountPricingTable',
'api-keys': 'mountAPIKeys',
'configure-sso': 'mountConfigureSSO',
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;

Object.entries(mountFns).forEach(([category, mountFn]) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -119,5 +119,4 @@ export type InternalUIComponentId =
| 'google-one-tap'
| 'waitlist'
| 'pricing-table'
| 'api-keys'
| 'configure-sso';
| 'api-keys';
2 changes: 1 addition & 1 deletion packages/clerk-js/sandbox/app.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -399,7 +399,7 @@ void (async () => {
'/waitlist': { mount: 'mountWaitlist', component: 'waitlist' },
'/pricing-table': { mount: 'mountPricingTable', component: 'pricingTable' },
'/api-keys': { mount: 'mountAPIKeys', component: 'apiKeys' },
'/configure-sso': { mount: 'mountConfigureSSO', component: 'configureSSO' },
'/configure-sso': { mount: '__internal_mountConfigureSSO', component: 'configureSSO' },
'/task-choose-organization': {
mount: 'mountTaskChooseOrganization',
component: 'taskChooseOrganization',
Expand Down
20 changes: 4 additions & 16 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1460,8 +1460,9 @@ export class Clerk implements ClerkInterface {
*
* @param targetNode Target to mount the ConfigureSSO component.
* @param props Configuration parameters.
* @hidden
*/
public mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
public __internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
caller: 'ConfigureSSO',
Expand DownExpand Up@@ -1525,25 +1526,12 @@ export class Clerk implements ClerkInterface {
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the ConfigureSSO component from.
* @hidden
*/
public unmountConfigureSSO = (node: HTMLDivElement) => {
public __internal_unmountConfigureSSO = (node: HTMLDivElement) => {
void this.#clerkUI?.then(ui => ui.ensureMounted()).then(controls => controls.unmountComponent({ node }));
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
public __experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps) => {
return this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
public __experimental_unmountConfigureSSO = (node: HTMLDivElement) => {
return this.unmountConfigureSSO(node);
};

public mountTaskChooseOrganization = (node: HTMLDivElement, props?: TaskChooseOrganizationProps) => {
const { isEnabled: isOrganizationsEnabled } = this.__internal_attemptToEnableEnvironmentSetting({
for: 'organizations',
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/client-boundary/uiComponents.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,6 @@ import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';

export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
HandleSSOCallback,
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ export {
*/
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
2 changes: 0 additions & 2 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -190,8 +190,6 @@ export default defineNuxtModule<ModuleOptions>({
'Waitlist',
// API Keys
'APIKeys',
// SSO
'ConfigureSSO',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/runtime/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,6 @@ export {
UserAvatar,
UserButton,
OrganizationSwitcher,
ConfigureSSO,
GoogleOneTap,
OAuthConsent,
Waitlist,
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
export {
APIKeys,
ConfigureSSO,
CreateOrganization,
GoogleOneTap,
OAuthConsent,
Expand Down
29 changes: 0 additions & 29 deletions packages/react/src/components/uiComponents.tsx
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
import type {
__internal_OAuthConsentProps,
APIKeysProps,
ConfigureSSOProps,
CreateOrganizationProps,
GoogleOneTapProps,
OrganizationListProps,
Expand DownExpand Up@@ -645,34 +644,6 @@ export const APIKeys = withClerk(
{ component: 'ApiKeys', renderWhileLoading: true },
);

export const ConfigureSSO = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<ConfigureSSOProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
const shouldShowFallback = mountingStatus === 'rendering' || !clerk.loaded;

const rendererRootProps = {
...(shouldShowFallback && fallback && { style: { display: 'none' } }),
};

return (
<>
{shouldShowFallback && fallback}
{clerk.loaded && (
<ClerkHostRenderer
component={component}
mount={clerk.mountConfigureSSO}
unmount={clerk.unmountConfigureSSO}
updateProps={(clerk as any).__internal_updateProps}
props={props}
rootProps={rendererRootProps}
/>
)}
</>
);
},
{ component: 'ConfigureSSO', renderWhileLoading: true },
);

export const OAuthConsent = withClerk(
({ clerk, component, fallback, ...props }: WithClerkProp<__internal_OAuthConsentProps & FallbackProp>) => {
const mountingStatus = useWaitForComponentMount(component);
Expand Down
24 changes: 5 additions & 19 deletions packages/react/src/isomorphicClerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -738,7 +738,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
});

this.premountConfigureSSONodes.forEach((props, node) => {
clerkjs.mountConfigureSSO(node, props);
clerkjs.__internal_mountConfigureSSO(node, props);
});

this.premountOAuthConsentNodes.forEach((props, node) => {
Expand DownExpand Up@@ -1277,36 +1277,22 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
}
};

mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
__internal_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.mountConfigureSSO(node, props);
this.clerkjs.__internal_mountConfigureSSO(node, props);
} else {
this.premountConfigureSSONodes.set(node, props);
}
};

unmountConfigureSSO = (node: HTMLDivElement): void => {
__internal_unmountConfigureSSO = (node: HTMLDivElement): void => {
if (this.clerkjs && this.loaded) {
this.clerkjs.unmountConfigureSSO(node);
this.clerkjs.__internal_unmountConfigureSSO(node);
} else {
this.premountConfigureSSONodes.delete(node);
}
};

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO = (node: HTMLDivElement, props?: ConfigureSSOProps): void => {
this.mountConfigureSSO(node, props);
};

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO = (node: HTMLDivElement): void => {
this.unmountConfigureSSO(node);
};

__internal_mountOAuthConsent = (node: HTMLDivElement, props?: OAuthConsentProps) => {
if (this.clerkjs && this.loaded) {
this.clerkjs.__internal_mountOAuthConsent(node, props);
Expand Down
22 changes: 7 additions & 15 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -721,26 +721,18 @@ export interface Clerk {
*
* @param targetNode - Target to mount the ConfigureSSO component.
* @param props - Configuration parameters.
* @hidden
*/
mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;
__internal_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* Unmount a configure SSO component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode - Target node to unmount the ConfigureSSO component from.
* @hidden
*/
unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* @deprecated Use `mountConfigureSSO` instead.
*/
__experimental_mountConfigureSSO: (targetNode: HTMLDivElement, props?: ConfigureSSOProps) => void;

/**
* @deprecated Use `unmountConfigureSSO` instead.
*/
__experimental_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;
__internal_unmountConfigureSSO: (targetNode: HTMLDivElement) => void;

/**
* Mounts a OAuth consent component at the target element.
Expand DownExpand Up@@ -2314,16 +2306,16 @@ export type APIKeysProps = {
showDescription?: boolean;
};

/**
* @internal
*/
export type ConfigureSSOProps = {
/**
* Customization options to fully match the Clerk components to your own brand. These options serve as overrides and will be merged with the global `appearance` configuration (if one is provided). See the [`Appearance`](https://clerk.com/docs/guides/customizing-clerk/appearance-prop/overview) docs for more information.
*/
appearance?: ClerkAppearanceTheme;
};

/** @deprecated Use `ConfigureSSOProps` instead. */
export type __experimental_ConfigureSSOProps = ConfigureSSOProps;

/** @generateWithEmptyComment */
export type GetAPIKeysParams = ClerkPaginationParams<{
/**
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,7 +29,6 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"ClerkLoaded",
"ClerkLoading",
"ClerkProvider",
"ConfigureSSO",
"CreateOrganization",
"GoogleOneTap",
"HandleSSOCallback",
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/components/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,6 @@ export { default as CreateOrganization } from './ui-components/CreateOrganizatio
export { default as OrganizationList } from './ui-components/OrganizationList.vue';
export { default as PricingTable } from './ui-components/PricingTable.vue';
export { default as APIKeys } from './ui-components/APIKeys.vue';
export { default as ConfigureSSO } from './ui-components/ConfigureSSO.vue';
export { default as OAuthConsent } from './ui-components/OAuthConsent.vue';
export { UserProfile } from './ui-components/UserProfile';
export { OrganizationProfile } from './ui-components/OrganizationProfile';
Expand Down
17 changes: 0 additions & 17 deletions packages/vue/src/components/ui-components/ConfigureSSO.vue

This file was deleted.

Loading