@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.
@@ -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} or {@link ChangeBookingFlow} two duplicated implementations
17
- * so each flow can be refactored without coupling (no shared runtime core).
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;