Skip to content

Commit cb300f4

Browse files
committed
Add changeset
1 parent 70761a8 commit cb300f4

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

.changeset/lucky-tables-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/ui': patch
3+
---
4+
5+
Add wizard steps for the `<__experimental_ConfigureSSO />` component

packages/ui/src/components/ConfigureSSO/ConfigureSSOContext.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ import type { EnterpriseConnectionResource } from '@clerk/shared/types';
33
import React, { type PropsWithChildren } from 'react';
44

55
/**
6-
* Shared form state for the ConfigureSSO wizard. Lives outside the
7-
* Wizard's own context so that:
8-
* - it persists across step navigations (each step is its own
9-
* `<Route>`, mounted/unmounted on navigation)
10-
* - `shouldSkip` predicates on `WizardStep` can read it as plain data
11-
* via `<Wizard.Root data={ssoCtx} />`
6+
* Shared form state for the ConfigureSSO wizard, persisted across step
7+
* route mounts and exposed to `WizardStep.shouldSkip` via `Wizard.Root`'s
8+
* `data` prop
129
*/
1310
export interface ConfigureSSOData {
1411
/**

packages/ui/src/components/ConfigureSSO/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export const CONFIGURE_SSO_STEPS: ReadonlyArray<WizardStep<ConfigureSSOData>> =
1515
id: 'verify-email-domain',
1616
path: 'verify-email-domain',
1717
label: 'Verify domain',
18-
// Skip this step when there's a primary email address domain already verified
19-
shouldSkip: data => data.domainAlreadyVerified,
2018
innerSteps: [
2119
{
2220
id: 'provide-email',
@@ -29,6 +27,8 @@ export const CONFIGURE_SSO_STEPS: ReadonlyArray<WizardStep<ConfigureSSOData>> =
2927
Component: VerifyDomain,
3028
},
3129
],
30+
// Skip this step when there's a primary email address domain already verified
31+
shouldSkip: data => data.domainAlreadyVerified,
3232
},
3333
{
3434
id: 'configure',

packages/ui/src/components/ConfigureSSO/steps/StepLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface StepLayoutProps {
1111

1212
/**
1313
* Renders the title row (with the Wizard's Step X/Y badge) on top, a divider, and the step body
14-
* underneath. Each individual step file owns the body content.
14+
* underneath. Each individual step file owns the body content
1515
*
1616
* The Step X/Y badge is rendered via `Wizard.StepIndicator`, which
1717
* self-hides on steps that have no inner sub-steps

0 commit comments

Comments
 (0)