@fanfare-io/fanfare-sdk-solid 0.14.0 → 0.15.0

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.
@@ -4,7 +4,7 @@ import { AuthInputMode } from './auth-input';
4
4
  export interface AuthFormProps {
5
5
  onSubmit?: (credential: string, type: AuthInputMode) => Promise<void>;
6
6
  onVerify?: (otp: string) => Promise<void>;
7
- onSkip?: () => void;
7
+ onSkip?: () => void | Promise<void>;
8
8
  onSuccess?: () => void;
9
9
  /** Badge color/intent in the panel heading. */
10
10
  variant?: PanelHeadingVariant;
@@ -17,6 +17,7 @@ export interface AuthFormProps {
17
17
  submitLabel?: string;
18
18
  verifyLabel?: string;
19
19
  allowSkip?: boolean;
20
+ skipLabel?: string;
20
21
  showBranding?: boolean;
21
22
  /** Initial step when mounting. Useful for SSR-resume or storybook lanes that need the verify step. */
22
23
  defaultStep?: "credential" | "verify";
@@ -5,11 +5,12 @@ export interface JourneyGateProps {
5
5
  stage: JourneyGateStage;
6
6
  onAuthSubmit?: (credential: string, type: AuthInputMode) => Promise<void>;
7
7
  onAuthVerify?: (otp: string) => Promise<void>;
8
- onAuthSkip?: () => void;
8
+ onAuthSkip?: () => void | Promise<void>;
9
9
  onAuthSuccess?: () => void;
10
10
  onAccessCodeSubmit?: (code: string) => Promise<void>;
11
11
  onAccessCodeSkip?: () => void;
12
12
  allowAuthSkip?: boolean;
13
+ authSkipLabel?: string;
13
14
  allowAccessCodeSkip?: boolean;
14
15
  authTitle?: string;
15
16
  authDescription?: string;
@@ -10,7 +10,7 @@ export interface AppointmentModuleProps {
10
10
  timezone?: string;
11
11
  defaultLocationId?: string;
12
12
  onBook: (slotId: string, locationId?: string) => Promise<void>;
13
- onCancel: (reason?: string) => Promise<void>;
13
+ onCancel: () => Promise<void>;
14
14
  onReschedule: (newSlotId: string, newLocationId?: string) => Promise<void>;
15
15
  isBooking: boolean;
16
16
  isCancelling: boolean;
@@ -21,7 +21,6 @@
21
21
  * completed / already_completed -> completed (a success terminal, not a loss)
22
22
  * won -> won
23
23
  * cancelled -> cancelled
24
- * no_show -> no_show
25
24
  * left -> left (voluntary exit: leave/withdraw)
26
25
  * closed / unknown / other -> ended
27
26
  *
@@ -32,7 +31,7 @@
32
31
  * Static story lanes pass UI values directly (e.g. `"outbid"`); those
33
32
  * pass through unchanged.
34
33
  */
35
- export type OutcomeReason = "expired" | "not_selected" | "sold_out" | "outbid" | "floor_unsold" | "reserve_not_met" | "completed" | "won" | "cancelled" | "no_show" | "left" | "ended";
34
+ export type OutcomeReason = "expired" | "not_selected" | "sold_out" | "outbid" | "floor_unsold" | "reserve_not_met" | "completed" | "won" | "cancelled" | "left" | "ended";
36
35
  export declare function normalizeOutcomeReason(reason: string | undefined): OutcomeReason;
37
36
  export declare function normalizeSequenceOutcomeReason(outcome: {
38
37
  type: string;