doct-ui-auth-kit 1.0.28 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,3 +5,4 @@ export { buildPhoneRecipient } from './build-phone-recipient';
5
5
  export { clearFlowState, readFlowState, writeFlowState, } from './flow-state-storage';
6
6
  export { clearAllFormState, clearFormState, readFormState, writeFormState, } from './form-state-storage';
7
7
  export { setFormErrorsFromZod } from './set-form-errors-from-zod';
8
+ export { buildSsoWelcomeSignupFlowState, type SsoWelcomeSignupSeed, seedSsoWelcomeSignupFlow, } from './sso-welcome-signup';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Builds persisted flow state for new SSO users who still need the optional
3
+ * WelcomeSignup phone step. Consumers call {@link seedSsoWelcomeSignupFlow}
4
+ * before navigating to `/auth/signup` so the kit restores SIGNUP_DETAILS on
5
+ * mount instead of bouncing to METHOD_SELECT.
6
+ */
7
+ import type { AuthFlowState } from '../types';
8
+ export interface SsoWelcomeSignupSeed {
9
+ fullName?: string;
10
+ email?: string;
11
+ }
12
+ /** Flow snapshot for SIGNUP_DETAILS + WelcomeSignupPage (SSO origin). */
13
+ export declare function buildSsoWelcomeSignupFlowState(params?: SsoWelcomeSignupSeed): AuthFlowState;
14
+ /** Persist SSO welcome-signup state for the next `/auth/signup` load. */
15
+ export declare function seedSsoWelcomeSignupFlow(params?: SsoWelcomeSignupSeed): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doct-ui-auth-kit",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "Composable React auth SDK – layouts, login/signup/OTP pages, SSO provider, and auth flow hooks for Docthub",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",