@ticketboothapp/booking 1.2.62 → 1.2.63
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 +4915 -0
- package/src/components/booking/BookingFlow.tsx +8 -3
- package/src/components/booking/ChangeBookingFlow.tsx +112 -578
- package/src/components/booking/booking-flow-types.ts +3 -5
- package/src/index.ts +1 -0
- package/src/lib/booking/change-flow-pricing.ts +6 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import type { BookingFlowProps } from './booking-flow-types';
|
|
4
|
+
import { AdminChangeBookingFlow } from './AdminChangeBookingFlow';
|
|
4
5
|
import { ChangeBookingFlow } from './ChangeBookingFlow';
|
|
5
6
|
import { NewBookingFlow } from './NewBookingFlow';
|
|
6
7
|
|
|
@@ -13,12 +14,16 @@ export type {
|
|
|
13
14
|
} from './booking-flow-types';
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
|
-
* Routes to {@link NewBookingFlow}
|
|
17
|
-
*
|
|
17
|
+
* Routes to {@link NewBookingFlow}, {@link ChangeBookingFlow}, or {@link AdminChangeBookingFlow}.
|
|
18
|
+
* Change mode: {@link AdminChangeBookingFlow} when `useAdminChangeBookingFlow` is true (provider shell placeholder);
|
|
19
|
+
* otherwise {@link ChangeBookingFlow}. Both flows are customer self-serve only until dashboard logic is reintroduced.
|
|
18
20
|
*/
|
|
19
21
|
export function BookingFlow(props: BookingFlowProps) {
|
|
20
22
|
if (props.mode === 'change') {
|
|
21
|
-
const { mode: _mode, ...changeProps } = props;
|
|
23
|
+
const { mode: _mode, useAdminChangeBookingFlow, ...changeProps } = props;
|
|
24
|
+
if (useAdminChangeBookingFlow) {
|
|
25
|
+
return <AdminChangeBookingFlow {...changeProps} />;
|
|
26
|
+
}
|
|
22
27
|
return <ChangeBookingFlow {...changeProps} />;
|
|
23
28
|
}
|
|
24
29
|
const { mode: _mode, ...newProps } = props;
|