@ticketboothapp/booking 1.2.64 → 1.2.66
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.
- package/package.json +1 -1
- package/src/components/booking/AdminChangeBookingFlow.tsx +46 -525
- package/src/components/booking/AdminPaymentChoiceModal.tsx +10 -6
- package/src/components/booking/BookingFlow.tsx +1 -1
- package/src/components/booking/ChangeBookingFlow.tsx +46 -524
- package/src/components/booking/booking-flow-types.ts +3 -9
|
@@ -3,7 +3,6 @@ import type { Product } from '../../lib/booking-api';
|
|
|
3
3
|
import type { BookingSourceMetadata } from '../../lib/booking/source-metadata';
|
|
4
4
|
import type { Currency } from './CurrencySwitcher';
|
|
5
5
|
import type { BookingFlowUiOptions } from './booking-flow-ui';
|
|
6
|
-
import type { ProviderDashboardChangeBookingPayload } from './provider-dashboard-change-booking';
|
|
7
6
|
|
|
8
7
|
/** Live selection snapshot for change-booking compare UI (parent dialog). */
|
|
9
8
|
export interface ChangeFlowSelectionPreview {
|
|
@@ -109,7 +108,7 @@ export interface BookingFlowBaseProps {
|
|
|
109
108
|
/** Standard (new) reservation flow — no change-booking receipt or callbacks. */
|
|
110
109
|
export interface NewBookingFlowProps extends BookingFlowBaseProps {}
|
|
111
110
|
|
|
112
|
-
/** Change booking — adds receipt snapshot
|
|
111
|
+
/** Change booking — adds receipt snapshot and compare preview. */
|
|
113
112
|
export interface ChangeBookingFlowProps extends BookingFlowBaseProps {
|
|
114
113
|
/** Called when date/tickets/itinerary selection updates (for side-by-side compare in dialog). */
|
|
115
114
|
onChangeFlowSelectionPreview?: (preview: ChangeFlowSelectionPreview | null) => void;
|
|
@@ -128,13 +127,8 @@ export interface ChangeBookingFlowProps extends BookingFlowBaseProps {
|
|
|
128
127
|
}>;
|
|
129
128
|
} | null;
|
|
130
129
|
/**
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*/
|
|
134
|
-
onChangeBooking?: (data: ProviderDashboardChangeBookingPayload) => Promise<void>;
|
|
135
|
-
/**
|
|
136
|
-
* Provider dashboard only: {@link BookingFlow} renders {@link AdminChangeBookingFlow} instead of
|
|
137
|
-
* {@link ChangeBookingFlow}. Same UI/behavior until admin-specific tweaks are added.
|
|
130
|
+
* Embed compatibility (e.g. ticketbooth provider dashboard): ignored — same flow as the public site.
|
|
131
|
+
* When true, {@link BookingFlow} still renders the fork {@link AdminChangeBookingFlow} for future divergence.
|
|
138
132
|
*/
|
|
139
133
|
useAdminChangeBookingFlow?: boolean;
|
|
140
134
|
}
|