@seatlayer/react 0.111.0 → 0.112.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.
package/README.md CHANGED
@@ -53,6 +53,30 @@ selects and **holds**, and your trusted server **books** the hold.
53
53
  npm install @seatlayer/react
54
54
  ```
55
55
 
56
+ ## Upgrading to 0.112.0
57
+
58
+ Nothing needs a code change. Three things to know:
59
+
60
+ - **`SeatingChart` now honours `enable3D`, `enable3DCrowd` and
61
+ `touchNavigation3D`.** Before 0.112.0 it ignored them. If your page already
62
+ passes one, it takes effect when you upgrade: `enable3D={false}` hides the 3D
63
+ view, `enable3DCrowd={false}` leaves standing areas an empty floor in 3D, and
64
+ `touchNavigation3D="classic"` keeps the earlier touch gestures. Unset, `true`
65
+ and `"map"` change nothing. `SeatPicker` and `SeasonPicker` already honoured
66
+ all three.
67
+ - **Changing one of the three after mount rebuilds the chart.** A page that
68
+ drives `enable3D` from state, for example from the screen width, now remounts
69
+ the chart each time the value changes, as a change of `event` or `locale`
70
+ does. Set it once where you can.
71
+ - **Types.** `SeatPickerHandle` gains a required `markBooked`, and
72
+ `SeatManagerHandle` gains required `setMarkedObjects`, `setClosedObjects` and
73
+ `setChannelSeats`. Code that builds its own object of these types, such as a
74
+ test double, must add them. Use through a ref is unaffected.
75
+ - **One version of the SDK.** `@seatlayer/js` and `@seatlayer/core` are
76
+ dependencies of this package, pinned to the same version. If your app also
77
+ installs `@seatlayer/js` itself, move it to 0.112.0 as well; an older direct
78
+ install leaves two copies of the SDK in your bundle.
79
+
56
80
  ## Quick start
57
81
 
58
82
  ```tsx
@@ -113,6 +137,9 @@ the buyer chooses a type per seat before the hold, and the handoff's `seats`
113
137
  lists each seat's `priceTypeKey`. `holdSameSeat(labels, operationId,
114
138
  { 'A-2': 'child' })` names them yourself; a label left out is adult.
115
139
 
140
+ The Season picker takes the same three 3D props as the seating chart:
141
+ `enable3D`, `enable3DCrowd` and `touchNavigation3D`. Changing one rebuilds it.
142
+
116
143
  The picker opens on step 1, the package with its dates and prices. Pass
117
144
  `package="spl_half"` (the package's key) to open on that package instead of the
118
145
  Season's first one; a host token is already bound to one package, so it ignores
@@ -169,6 +196,7 @@ The full-experience `SeatPicker` exposes the canonical safe widget controls thro
169
196
  | `setSelectableObjects()`, `setMaxSelection()`, `getSelectionValidity()` | Update selection policy and inspect exact-count validity. |
170
197
  | `bestAvailable(qty, categoryKey?, options?)` | Pick and hold server-authoritative seats; options support `preferPremium` and `zoneId`. |
171
198
  | `getCurrentHold()`, `resumeHold()`, `removeHeldTicket()`, `release()` | Inspect and manage the active hold. |
199
+ | `markBooked(holdId?)` | Your page booked the held seats itself: the picker shows its booked state, calls `onBooked` once and unticks that hold's seats. Resolves `false`, changing nothing, for another hold id, no active hold or an unmounted picker. It never books or releases on the server. Right after a rebuild the picker restores a live hold asynchronously: call `markBooked` after `onHoldRestored`, or call it again when it resolves `false` while you expect a hold (see the note under this table). `SeatPicker` only: the `SeatingChart` wrappers (React, Vue, Angular) do not have it. |
172
200
  | `setMapTheme()`, `setEventDetailsHidden()`, `setPricing()` | Update host-owned presentation without remounting or losing a hold. |
173
201
  | `isColorblindSafe()`, `setColorblindSafe()` | Read and update the shared buyer accessibility preference. |
174
202
  | `getViewMode()`, `setViewMode()` | Read and update the 2D map projection. |
@@ -176,6 +204,12 @@ The full-experience `SeatPicker` exposes the canonical safe widget controls thro
176
204
  | `refreshAccess()` | Re-acquire a private buyer-access session. |
177
205
  | `destroy()` | Intentionally omitted: React owns teardown through component unmount. |
178
206
 
207
+ **`markBooked` after a rebuild.** When the picker rebuilds (a prop change that
208
+ remounts it, or a page reload), it restores a live hold asynchronously.
209
+ `markBooked(holdId)` called before the hold is back resolves `false`, and the
210
+ restored hold then offers checkout again. Call it after `onHoldRestored` fires,
211
+ or call it again when it resolves `false` while you expect a hold.
212
+
179
213
  ### Buyer WebMCP tools
180
214
 
181
215
  Set `webMcp` on `SeatPicker` to let a compatible in-browser assistant describe
@@ -219,6 +253,9 @@ Extends the vanilla SDK options minus `container` (the component owns its own mo
219
253
  | `selectableObjects` | `string[] \| null` | Buyer-selectable allow-list. |
220
254
  | `numberOfPlacesToSelect` | `number?` | Exact count required for a valid selection. |
221
255
  | `selectionValidators` | `PickerSelectionValidator[]?` | Minimum, consecutive-seat, and no-orphan guards. |
256
+ | `enable3D` | `boolean?` | Offer the 3D venue view. On by default; `false` hides it. |
257
+ | `enable3DCrowd` | `boolean?` | The standing crowd in 3D. Drawn by default; `false` turns it off. |
258
+ | `touchNavigation3D` | `'map' \| 'classic'?` | How fingers move the 3D view. `'map'` by default; `'classic'` keeps the older gestures. |
222
259
  | `onSelectionChange` | `(seats) => void` | Fires when the selection changes. |
223
260
  | `onSelectionValidityChange` | `(state) => void` | Rule state and typed `violations` after selection changes. |
224
261
  | `onHold` | `(result) => void` | Fires when seats are held; hand `holdId` to your server. |
@@ -292,6 +329,10 @@ and reports the matched sections through the React callback and ref methods.
292
329
  />
293
330
  ```
294
331
 
332
+ `markedObjects={['B-12']}` rings seats in ink (paint only), for example a
333
+ guest's current seat while you move them; a new array moves the rings in place,
334
+ and the ref's `setMarkedObjects(labels)` does the same.
335
+
295
336
  Token rotation and tool changes preserve the live renderer, camera, selection,
296
337
  WebSocket, and DOM. The component responds to its own container, including
297
338
  compact embeds, and the buyer SDK remains unchanged when manager options are off.
@@ -28,6 +28,7 @@ var SeatManager = forwardRef(
28
28
  unavailableObjectsSelectable,
29
29
  unavailableObjects,
30
30
  unavailableObjectsReason,
31
+ markedObjects,
31
32
  categoryPrices,
32
33
  maxSelectedObjects,
33
34
  numberOfPlacesToSelect,
@@ -60,6 +61,7 @@ var SeatManager = forwardRef(
60
61
  unavailableObjectsSelectable,
61
62
  unavailableObjects,
62
63
  unavailableObjectsReason,
64
+ markedObjects,
63
65
  categoryPrices,
64
66
  maxSelectedObjects,
65
67
  numberOfPlacesToSelect,
@@ -115,6 +117,8 @@ var SeatManager = forwardRef(
115
117
  onOpenOrder: callbacks.current.onOpenOrder ? (order) => callbacks.current.onOpenOrder?.(order) : void 0,
116
118
  onActionComplete: (r) => callbacks.current.onActionComplete?.(r),
117
119
  onConnectionChange: (s) => callbacks.current.onConnectionChange?.(s),
120
+ // Read once at mount: whether the panel offers Open seats at all.
121
+ ...props.onOpenSeats ? { onOpenSeats: () => callbacks.current.onOpenSeats?.() } : {},
118
122
  onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),
119
123
  onError: (e) => callbacks.current.onError?.(e)
120
124
  });
@@ -171,6 +175,9 @@ var SeatManager = forwardRef(
171
175
  useEffect(() => {
172
176
  managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);
173
177
  }, [unavailableObjects, unavailableObjectsReason]);
178
+ useEffect(() => {
179
+ managerRef.current?.setMarkedObjects(markedObjects ?? []);
180
+ }, [markedObjects]);
174
181
  useEffect(() => {
175
182
  managerRef.current?.setCategoryPrices(categoryPrices);
176
183
  }, [categoryPrices]);
@@ -210,6 +217,7 @@ var SeatManager = forwardRef(
210
217
  setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),
211
218
  setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),
212
219
  setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),
220
+ setMarkedObjects: (labels) => managerRef.current?.setMarkedObjects(labels),
213
221
  setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),
214
222
  setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),
215
223
  setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),
@@ -227,7 +235,9 @@ var SeatManager = forwardRef(
227
235
  getConnection: () => managerRef.current?.getConnection() ?? null,
228
236
  setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),
229
237
  zoomToFit: () => managerRef.current?.zoomToFit(),
230
- showObjects: (labels, name) => managerRef.current?.showObjects(labels, name)
238
+ showObjects: (labels, name) => managerRef.current?.showObjects(labels, name),
239
+ setClosedObjects: (labels) => managerRef.current?.setClosedObjects(labels),
240
+ setChannelSeats: (seats) => managerRef.current?.setChannelSeats(seats)
231
241
  }),
232
242
  []
233
243
  );
@@ -238,4 +248,4 @@ var SeatManager = forwardRef(
238
248
  export {
239
249
  SeatManager
240
250
  };
241
- //# sourceMappingURL=chunk-G2IR4R37.js.map
251
+ //# sourceMappingURL=chunk-GEZQG3MZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/SeatManager.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatManager as CoreSeatManager,\n type SeatManagerOptions,\n type SeatManagerMode,\n type EventScopedManageToken,\n type SeatManagerTallies,\n type SeatManagerSale,\n type SeatManagerActivity,\n type SeatManagerActionResult,\n type SeatManagerConnection,\n type SeatManagerRoomState,\n type SeatManagerFilteredSection,\n type SeatManagerSelectionValidity,\n type SeatManagerCategoryPrice,\n type EventTableBookingMode,\n type ReportResult,\n type ControlRoomSnapshot,\n type LogEntry,\n type ExpandedSeat,\n// `@seatlayer/js/manager`, NOT the bare `@seatlayer/js` barrel. The barrel is a\n// buyer SDK that also exports the cockpit, so importing the cockpit through it\n// drags SeatPicker, SeatingChart, EmbeddedDesigner and the engine code only\n// those reach into every bundle that renders a control room. See the header of\n// `@seatlayer/js`'s `src/manager.ts` for the measurement.\n} from '@seatlayer/js/manager';\n\nexport type {\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerSale,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n SeatManagerRoomState,\n SeatManagerFilteredSection,\n SeatManagerSelectionValidity,\n SeatManagerCategoryPrice,\n EventTableBookingMode,\n} from '@seatlayer/js/manager';\n\n/** Imperative handle for the organizer manage board. */\nexport interface SeatManagerHandle {\n setMode(mode: SeatManagerMode): void;\n setToken(token: EventScopedManageToken, expiresAt?: number): void;\n setHeatOverlay(enabled: boolean): void;\n setFollowLive(enabled: boolean): void;\n setTrendWindow(windowMinutes: number): Promise<ControlRoomSnapshot>;\n enterFullscreen(): Promise<void>;\n exitFullscreen(): Promise<void>;\n isFullscreen(): boolean;\n block(labels?: string[], opts?: { releaseAt?: number; reason?: string }): Promise<void>;\n unblock(labels?: string[]): Promise<void>;\n unblockAll(): Promise<void>;\n cancelBooking(labels: string[], bookingRef: string): Promise<void>;\n setCategory(categoryKey: string, labels?: string[]): Promise<void>;\n setTableBooking(\n tableIds: string[],\n mode: EventTableBookingMode,\n bounds?: { minOccupancy?: number; maxOccupancy?: number },\n ): Promise<void>;\n selectAll(): ExpandedSeat[];\n selectSection(sectionId: string): ExpandedSeat[];\n selectByLabels(labels: string[]): ExpandedSeat[];\n selectObjects(labels: string[]): ExpandedSeat[];\n deselectObjects(labels: string[]): ExpandedSeat[];\n selectCategories(keys: string[]): ExpandedSeat[];\n deselectCategories(keys: string[]): ExpandedSeat[];\n setSelectableObjects(labels: string[]): void;\n setUnavailableObjectsSelectable(enabled: boolean): void;\n /** Replace the labels shown as unavailable (and their hover word) without remounting. */\n setUnavailableObjects(labels: readonly string[], reason?: string): void;\n /** Replace the labels ringed in ink (paint only) without remounting. */\n setMarkedObjects(labels: readonly string[]): void;\n /** Replace the prices the map's hover shows: a map overrides, null hides, undefined uses the chart's. */\n setCategoryPrices(prices: Record<string, SeatManagerCategoryPrice> | null | undefined): void;\n setObjectSelectable(predicate: SeatManagerOptions['isObjectSelectable']): void;\n setMaxSelectedObjects(max: number | undefined): void;\n setNumberOfPlacesToSelect(required: number | undefined): void;\n getSelectionValidity(): SeatManagerSelectionValidity | null;\n setFilteredSection(label: string): SeatManagerFilteredSection[];\n clearFilteredSection(): void;\n /** Frame matching sections in any mode, without filtering or touching the selection. */\n focusSection(label: string): SeatManagerFilteredSection[];\n getFilteredSections(): SeatManagerFilteredSection[];\n clearSelection(): void;\n getSelection(): ExpandedSeat[];\n getReport(): Promise<ReportResult>;\n getControlRoomSnapshot(windowMinutes?: number): Promise<ControlRoomSnapshot>;\n getLog(opts?: { limit?: number; before?: number }): Promise<{ entries: LogEntry[]; nextBefore: number | null }>;\n setHoldTtl(ms: number | null): Promise<void>;\n /**\n * Realtime link state plus the \"as of\" behind the numbers on screen.\n *\n * Null only before the manager has mounted. Pair with the `onConnectionChange`\n * prop: the callback gives the edges, this gives the answer on demand — which\n * is what a host needs on tab focus, when no transition is coming.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n /** Light these seats and frame them, named in the legend; null clears (CR18). */\n showObjects(labels: readonly string[] | null, name?: string): void;\n /** The Closed seats, drawn hollow with \"Not for sale\" on their card; [] clears (CR26). */\n setClosedObjects(labels: readonly string[]): void;\n /** The legend's channel line and each seat's channel name, from the event's own channels (CR26). */\n setChannelSeats(seats: SeatManagerOptions['channelSeats']): void;\n}\n\nexport interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic {@link CoreSeatManager}. Give the\n * wrapping div a size (it fills its box — a war-room board wants a big one) and\n * the manager lays out the live map + KPI bar + rails inside it. Rebuilt only\n * when the event identity / apiBase changes. Tokens, declared capabilities,\n * theme, fallback currency, background liveness, and callbacks are updated in\n * place without tearing the board down.\n */\nexport const SeatManager = forwardRef<SeatManagerHandle, SeatManagerProps>(\n function SeatManager(props, ref) {\n const {\n className, style, apiBase, eventKey, token, tokenExpiresAt,\n mode, currency, keepLiveWhileHidden, followLive, capabilities,\n selectedObjects, selectableObjects, unavailableObjectsSelectable,\n unavailableObjects, unavailableObjectsReason, markedObjects, categoryPrices,\n maxSelectedObjects, numberOfPlacesToSelect, isObjectSelectable, tools, chrome, kpis, timeZone,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const managerRef = useRef<CoreSeatManager | null>(null);\n\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const manager = new CoreSeatManager({\n container: el,\n apiBase,\n eventKey,\n token,\n tokenExpiresAt,\n mode,\n currency,\n keepLiveWhileHidden,\n followLive,\n capabilities,\n selectedObjects,\n selectableObjects,\n unavailableObjectsSelectable,\n unavailableObjects,\n unavailableObjectsReason,\n markedObjects,\n categoryPrices,\n maxSelectedObjects,\n numberOfPlacesToSelect,\n isObjectSelectable,\n // Which tools the cockpit offers (Watch / Manage / Host tools). Read\n // once at mount like `capabilities`: hosts decide this per surface,\n // not per render.\n tools,\n // `minimal` = just the map (a host with its own search, totals and\n // actions). Read once at mount, like `tools`.\n chrome,\n // false when the host shows the numbers in its own header (CR04). Read once at mount.\n kpis,\n // The event's clock for every time the room shows (audit M8). Read once at mount.\n timeZone,\n // \"Ask an admin of <organisation>\" (CR16). Read once at mount.\n organizationName: callbacks.current.organizationName,\n // The host's sale facts (CR18); updated in place below.\n sale: callbacks.current.sale,\n // The host's overlays over the map (CR18 resale strip); updated in place below.\n mapInsets: callbacks.current.mapInsets,\n theme: callbacks.current.theme,\n // Light / dark / follow the operator's own preference. Applied before\n // first paint so a cockpit asked for light never flashes the war-room\n // dark on the way in.\n themeMode: callbacks.current.themeMode,\n // Where a link opens the room (board CR24): read once at mount, like `mode`.\n colourBy: callbacks.current.colourBy,\n focusSection: callbacks.current.focusSection,\n focusSeat: callbacks.current.focusSeat,\n focusSeats: callbacks.current.focusSeats,\n focusCategory: callbacks.current.focusCategory,\n arrivedFrom: callbacks.current.arrivedFrom,\n onOpenTrend: callbacks.current.onOpenTrend ? (focus) => callbacks.current.onOpenTrend?.(focus) : undefined,\n onOpenDesigner: callbacks.current.onOpenDesigner ? () => callbacks.current.onOpenDesigner?.() : undefined,\n onReady: () => callbacks.current.onReady?.(),\n onTallies: (t: SeatManagerTallies) => callbacks.current.onTallies?.(t),\n onActivity: (activity: SeatManagerActivity) => callbacks.current.onActivity?.(activity),\n onControlRoom: (snapshot: ControlRoomSnapshot) => callbacks.current.onControlRoom?.(snapshot),\n onTokenRefresh: callbacks.current.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n onModeChange: (nextMode) => callbacks.current.onModeChange?.(nextMode),\n onFollowLiveChange: (enabled) => callbacks.current.onFollowLiveChange?.(enabled),\n onSelectionChange: (s: ExpandedSeat[]) => callbacks.current.onSelectionChange?.(s),\n onObjectSelected: (object) => callbacks.current.onObjectSelected?.(object),\n onObjectDeselected: (object) => callbacks.current.onObjectDeselected?.(object),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (state) => callbacks.current.onSelectionValid?.(state),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),\n onAreaClick: (area) => callbacks.current.onAreaClick?.(area),\n // Only a host that can show an order gets the search's \"Open order\".\n onOpenOrder: callbacks.current.onOpenOrder ? (order: { id: string; displayRef: string }) => callbacks.current.onOpenOrder?.(order) : undefined,\n onActionComplete: (r: SeatManagerActionResult) => callbacks.current.onActionComplete?.(r),\n onConnectionChange: (s: SeatManagerConnection) => callbacks.current.onConnectionChange?.(s),\n // Read once at mount: whether the panel offers Open seats at all.\n ...(props.onOpenSeats ? { onOpenSeats: () => callbacks.current.onOpenSeats?.() } : {}),\n onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),\n onError: (e: unknown) => callbacks.current.onError?.(e),\n });\n managerRef.current = manager;\n void manager.render();\n\n return () => {\n manager.destroy();\n managerRef.current = null;\n };\n // Rebuild only on identity change (not on every callback change).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [apiBase, eventKey]);\n\n // Rotate credentials without losing camera, selection, realtime state or DOM.\n useEffect(() => {\n managerRef.current?.setToken(token, tokenExpiresAt);\n }, [token, tokenExpiresAt]);\n\n useEffect(() => {\n managerRef.current?.setCapabilities(capabilities);\n }, [capabilities]);\n\n useEffect(() => {\n managerRef.current?.setCurrency(currency);\n }, [currency]);\n\n useEffect(() => {\n managerRef.current?.setTheme(props.theme);\n }, [props.theme]);\n\n // By value: a host that rebuilds the object each render costs no repaint.\n const sale = props.sale;\n useEffect(() => {\n managerRef.current?.setSale(sale);\n }, [sale?.status, sale?.tone, sale?.openedAt, sale?.pageUrl]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // By value: a host that rebuilds the object each render costs no refit.\n const insets = props.mapInsets;\n useEffect(() => {\n managerRef.current?.setMapInsets(insets ?? null);\n }, [insets?.top, insets?.right, insets?.bottom, insets?.left]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // Reflected in place: the cockpit keeps the operator's selection, the\n // camera and the realtime socket across a mode change.\n useEffect(() => {\n managerRef.current?.setThemeMode(props.themeMode);\n }, [props.themeMode]);\n\n useEffect(() => {\n managerRef.current?.setKeepLiveWhileHidden(keepLiveWhileHidden);\n }, [keepLiveWhileHidden]);\n\n useEffect(() => {\n managerRef.current?.setTokenRefresh(\n props.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n );\n }, [!!props.onTokenRefresh]);\n\n // Reflect a controlled `mode` prop onto the live instance without rebuilding.\n useEffect(() => {\n if (mode) managerRef.current?.setMode(mode);\n }, [mode]);\n\n useEffect(() => {\n if (followLive != null) managerRef.current?.setFollowLive(followLive);\n }, [followLive]);\n\n useEffect(() => {\n managerRef.current?.setSelectableObjects(selectableObjects ?? []);\n }, [selectableObjects]);\n\n useEffect(() => {\n managerRef.current?.setUnavailableObjectsSelectable(unavailableObjectsSelectable ?? true);\n }, [unavailableObjectsSelectable]);\n\n // Repainted in place: the listed seats change colour, nothing remounts.\n // The manager ignores a list with the same labels, so a host that rebuilds\n // the array each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);\n }, [unavailableObjects, unavailableObjectsReason]);\n\n // Rings move in place. With nothing marked the map is never touched.\n useEffect(() => {\n managerRef.current?.setMarkedObjects(markedObjects ?? []);\n }, [markedObjects]);\n\n // Hover prices change in place. The renderer ignores an equal price map,\n // so a host that rebuilds the object each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setCategoryPrices(categoryPrices);\n }, [categoryPrices]);\n\n useEffect(() => {\n managerRef.current?.setMaxSelectedObjects(maxSelectedObjects);\n }, [maxSelectedObjects]);\n\n useEffect(() => {\n managerRef.current?.setNumberOfPlacesToSelect(numberOfPlacesToSelect);\n }, [numberOfPlacesToSelect]);\n\n useEffect(() => {\n managerRef.current?.setObjectSelectable(isObjectSelectable);\n }, [isObjectSelectable]);\n\n useImperativeHandle(\n ref,\n (): SeatManagerHandle => ({\n setMode: (m) => managerRef.current?.setMode(m),\n setToken: (nextToken, expiresAt) => managerRef.current?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => managerRef.current?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => managerRef.current?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => managerRef.current?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => managerRef.current?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => managerRef.current?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => managerRef.current?.isFullscreen() ?? false,\n block: (labels, opts) => managerRef.current?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => managerRef.current?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => managerRef.current?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => managerRef.current?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => managerRef.current?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => managerRef.current?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => managerRef.current?.selectAll() ?? [],\n selectSection: (id) => managerRef.current?.selectSection(id) ?? [],\n selectByLabels: (labels) => managerRef.current?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => managerRef.current?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => managerRef.current?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => managerRef.current?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => managerRef.current?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),\n setMarkedObjects: (labels) => managerRef.current?.setMarkedObjects(labels),\n setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => managerRef.current?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => managerRef.current?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => managerRef.current?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => managerRef.current?.clearFilteredSection(),\n focusSection: (label) => managerRef.current?.focusSection(label) ?? [],\n getFilteredSections: () => managerRef.current?.getFilteredSections() ?? [],\n clearSelection: () => managerRef.current?.clearSelection(),\n getSelection: () => managerRef.current?.getSelection() ?? [],\n getReport: () => managerRef.current?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => managerRef.current?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => managerRef.current?.getConnection() ?? null,\n setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => managerRef.current?.zoomToFit(),\n showObjects: (labels, name) => managerRef.current?.showObjects(labels, name),\n setClosedObjects: (labels) => managerRef.current?.setClosedObjects(labels),\n setChannelSeats: (seats) => managerRef.current?.setChannelSeats(seats),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE,eAAe;AAAA,OAuBV;AAiWI;AA/PJ,IAAM,cAAc;AAAA,EACzB,SAASA,aAAY,OAAO,KAAK;AAC/B,UAAM;AAAA,MACJ;AAAA,MAAW;AAAA,MAAO;AAAA,MAAS;AAAA,MAAU;AAAA,MAAO;AAAA,MAC5C;AAAA,MAAM;AAAA,MAAU;AAAA,MAAqB;AAAA,MAAY;AAAA,MACjD;AAAA,MAAiB;AAAA,MAAmB;AAAA,MACpC;AAAA,MAAoB;AAAA,MAA0B;AAAA,MAAe;AAAA,MAC7D;AAAA,MAAoB;AAAA,MAAwB;AAAA,MAAoB;AAAA,MAAO;AAAA,MAAQ;AAAA,MAAM;AAAA,IACvF,IAAI;AAEJ,UAAM,eAAe,OAA8B,IAAI;AACvD,UAAM,aAAa,OAA+B,IAAI;AAEtD,UAAM,YAAY,OAAO,KAAK;AAC9B,cAAU,UAAU;AAEpB,cAAU,MAAM;AACd,YAAM,KAAK,aAAa;AACxB,UAAI,CAAC,GAAI;AAET,YAAM,UAAU,IAAI,gBAAgB;AAAA,QAClC,WAAW;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA;AAAA;AAAA,QAIA;AAAA;AAAA;AAAA,QAGA;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA,kBAAkB,UAAU,QAAQ;AAAA;AA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
52
  colorblindSafe,
53
53
  initialView,
54
- errorDisplay
54
+ errorDisplay,
55
+ enable3D,
56
+ enable3DCrowd,
57
+ touchNavigation3D
55
58
  } = props;
56
59
  const containerRef = (0, import_react.useRef)(null);
57
60
  const chartRef = (0, import_react.useRef)(null);
@@ -76,6 +79,9 @@ var SeatingChart = (0, import_react.forwardRef)(
76
79
  colorblindSafe,
77
80
  initialView,
78
81
  errorDisplay,
82
+ enable3D,
83
+ enable3DCrowd,
84
+ touchNavigation3D,
79
85
  messages: callbacks.current.messages,
80
86
  seatTooltip: props.seatTooltip,
81
87
  // Read through the ref so a host may pass the provider as an inline
@@ -108,7 +114,7 @@ var SeatingChart = (0, import_react.forwardRef)(
108
114
  chart.destroy();
109
115
  chartRef.current = null;
110
116
  };
111
- }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, initialView, errorDisplay]);
117
+ }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, initialView, errorDisplay, enable3D, enable3DCrowd, touchNavigation3D]);
112
118
  (0, import_react.useImperativeHandle)(ref, () => (0, import_js.bindSeatingChartHandle)(() => chartRef.current), []);
113
119
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref: containerRef, className, style });
114
120
  }
@@ -253,6 +259,7 @@ var SeatPicker = (0, import_react3.forwardRef)(
253
259
  getCurrentHold: () => pickerRef.current?.getCurrentHold() ?? null,
254
260
  resumeHold: (holdId) => pickerRef.current?.resumeHold(holdId) ?? Promise.resolve(null),
255
261
  removeHeldTicket: (label) => pickerRef.current?.removeHeldTicket(label) ?? Promise.resolve(false),
262
+ markBooked: (holdId) => pickerRef.current?.markBooked(holdId) ?? Promise.resolve(false),
256
263
  release: () => pickerRef.current?.release() ?? Promise.resolve(),
257
264
  holdSelection: () => pickerRef.current?.holdSelection() ?? Promise.resolve({ ok: false, reason: "nothing_selected", message: "" }),
258
265
  refreshAccess: () => pickerRef.current?.refreshAccess() ?? Promise.resolve(false),
@@ -401,6 +408,7 @@ var SeatManager = (0, import_react5.forwardRef)(
401
408
  unavailableObjectsSelectable,
402
409
  unavailableObjects,
403
410
  unavailableObjectsReason,
411
+ markedObjects,
404
412
  categoryPrices,
405
413
  maxSelectedObjects,
406
414
  numberOfPlacesToSelect,
@@ -433,6 +441,7 @@ var SeatManager = (0, import_react5.forwardRef)(
433
441
  unavailableObjectsSelectable,
434
442
  unavailableObjects,
435
443
  unavailableObjectsReason,
444
+ markedObjects,
436
445
  categoryPrices,
437
446
  maxSelectedObjects,
438
447
  numberOfPlacesToSelect,
@@ -488,6 +497,8 @@ var SeatManager = (0, import_react5.forwardRef)(
488
497
  onOpenOrder: callbacks.current.onOpenOrder ? (order) => callbacks.current.onOpenOrder?.(order) : void 0,
489
498
  onActionComplete: (r) => callbacks.current.onActionComplete?.(r),
490
499
  onConnectionChange: (s) => callbacks.current.onConnectionChange?.(s),
500
+ // Read once at mount: whether the panel offers Open seats at all.
501
+ ...props.onOpenSeats ? { onOpenSeats: () => callbacks.current.onOpenSeats?.() } : {},
491
502
  onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),
492
503
  onError: (e) => callbacks.current.onError?.(e)
493
504
  });
@@ -544,6 +555,9 @@ var SeatManager = (0, import_react5.forwardRef)(
544
555
  (0, import_react5.useEffect)(() => {
545
556
  managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);
546
557
  }, [unavailableObjects, unavailableObjectsReason]);
558
+ (0, import_react5.useEffect)(() => {
559
+ managerRef.current?.setMarkedObjects(markedObjects ?? []);
560
+ }, [markedObjects]);
547
561
  (0, import_react5.useEffect)(() => {
548
562
  managerRef.current?.setCategoryPrices(categoryPrices);
549
563
  }, [categoryPrices]);
@@ -583,6 +597,7 @@ var SeatManager = (0, import_react5.forwardRef)(
583
597
  setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),
584
598
  setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),
585
599
  setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),
600
+ setMarkedObjects: (labels) => managerRef.current?.setMarkedObjects(labels),
586
601
  setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),
587
602
  setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),
588
603
  setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),
@@ -600,7 +615,9 @@ var SeatManager = (0, import_react5.forwardRef)(
600
615
  getConnection: () => managerRef.current?.getConnection() ?? null,
601
616
  setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),
602
617
  zoomToFit: () => managerRef.current?.zoomToFit(),
603
- showObjects: (labels, name) => managerRef.current?.showObjects(labels, name)
618
+ showObjects: (labels, name) => managerRef.current?.showObjects(labels, name),
619
+ setClosedObjects: (labels) => managerRef.current?.setClosedObjects(labels),
620
+ setChannelSeats: (seats) => managerRef.current?.setChannelSeats(seats)
604
621
  }),
605
622
  []
606
623
  );