@seatlayer/js 0.111.0 → 0.113.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/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, SeatPriceMap, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
2
2
  export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
3
- import { T as ThemeMode } from './channelsMode-CVhVwfEC.cjs';
4
- export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-CVhVwfEC.cjs';
3
+ import { T as ThemeMode } from './channelsMode-rHChoJwY.cjs';
4
+ export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-rHChoJwY.cjs';
5
5
  import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
6
6
  import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
7
7
  import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';
@@ -1169,7 +1169,9 @@ interface CheckoutHandoff {
1169
1169
  * count, a stranded single seat);
1170
1170
  * - `too_many_tickets`: more than the picker's maximum;
1171
1171
  * - `seats_taken`: a seat was taken first, or the hold failed for another
1172
- * reason (which also reaches `onError`);
1172
+ * reason (which also reaches `onError`). When the server gave no answer
1173
+ * even after the picker's own tries, the picker says to try again and keeps
1174
+ * the selection;
1173
1175
  * - `paused`: SeatLayer is briefly paused for maintenance; the seats stay picked;
1174
1176
  * - `companion_pair_required`, `ticket_option_not_applicable`: the server's own
1175
1177
  * seat rules.
@@ -2900,11 +2902,15 @@ declare function bindSeatingChartHandle(getInstance: () => SeatingChart | null):
2900
2902
  * "live", it makes them silently ignored after mount, which is the worse of the
2901
2903
  * two behaviours. React already treated them this way; Vue and Angular did not
2902
2904
  * expose them at all.
2905
+ *
2906
+ * `enable3D`, `enable3DCrowd` and `touchNavigation3D` are here for the same
2907
+ * reason: `SeatingChart` hands them to its 3D view once, in the constructor, and
2908
+ * has no setter for any of them.
2903
2909
  */
2904
- declare const SEATING_CHART_IDENTITY_PROPS: readonly ["event", "apiBase", "maxSelection", "numberOfPlacesToSelect", "selectionValidators", "publicKey", "locale", "currency", "colorblindSafe", "initialView", "errorDisplay"];
2910
+ declare const SEATING_CHART_IDENTITY_PROPS: readonly ["event", "apiBase", "maxSelection", "numberOfPlacesToSelect", "selectionValidators", "publicKey", "locale", "currency", "colorblindSafe", "initialView", "errorDisplay", "enable3D", "enable3DCrowd", "touchNavigation3D"];
2905
2911
  type SeatingChartIdentityProp = (typeof SEATING_CHART_IDENTITY_PROPS)[number];
2906
2912
  /** Non-callback options a wrapper accepts as props/inputs and passes straight through. */
2907
- declare const SEATING_CHART_VALUE_PROPS: readonly ["event", "apiBase", "maxSelection", "numberOfPlacesToSelect", "selectionValidators", "publicKey", "locale", "currency", "colorblindSafe", "initialView", "errorDisplay", "selectedObjects", "selectableObjects", "messages", "seatTooltip", "buyerAccessTokenProvider", "buyerAccessToken"];
2913
+ declare const SEATING_CHART_VALUE_PROPS: readonly ["event", "apiBase", "maxSelection", "numberOfPlacesToSelect", "selectionValidators", "publicKey", "locale", "currency", "colorblindSafe", "initialView", "errorDisplay", "enable3D", "enable3DCrowd", "touchNavigation3D", "selectedObjects", "selectableObjects", "messages", "seatTooltip", "buyerAccessTokenProvider", "buyerAccessToken"];
2908
2914
  type SeatingChartValueProp = (typeof SEATING_CHART_VALUE_PROPS)[number];
2909
2915
  /** Every callback option a wrapper wires to its own event mechanism. */
2910
2916
  declare const SEATING_CHART_CALLBACK_PROPS: readonly ["onSelectionChange", "onSelectionValidityChange", "onSelectionValid", "onSelectionInvalid", "onSelectionLimit", "onHold", "onHoldRestored", "onHoldExpired", "onGAClick", "onGAPrompt", "onError", "onDeckTap", "onHint", "onSeatHover", "onAccessExpired", "onAccessUnavailable", "onSelectedObjectUnavailable"];
@@ -5525,6 +5531,12 @@ declare class SeatPicker implements GaPromptPicker {
5525
5531
  /** @internal */ closeView3dComparison(restoreFocus?: boolean): void;
5526
5532
  /** Current active/restored hold reflected in the tray. */
5527
5533
  getCurrentHold(): HoldResult | null;
5534
+ /**
5535
+ * Your page booked the held seats itself (its own checkout, or your server's book call). Settles the hold `holdId`
5536
+ * names, or the one held: booked state, no clock, nothing to restore, no checkout; resolves `true`. `false`, changing
5537
+ * nothing, for another hold, no hold or a destroyed picker. A live picker then reads the map again (pickerMarkBooked.ts).
5538
+ */
5539
+ markBooked(holdId?: string): Promise<boolean>;
5528
5540
  /** Explicit host-driven hold restore (automatic session restore is on by default). */
5529
5541
  resumeHold(holdId: string): Promise<HoldResult | null>;
5530
5542
  /** Re-hold one held seat on another ticket type; the server re-prices it. */
@@ -6591,6 +6603,11 @@ declare class SeasonPicker {
6591
6603
  * offering checkout, and this resolves `true`. It resolves `false`, leaving
6592
6604
  * the picker as it was, when nothing is held here or the operation is not
6593
6605
  * booked yet.
6606
+ *
6607
+ * It also resolves `false` on a picker that is gone (destroyed, or the popup
6608
+ * that closed itself when the buyer pressed Continue): there is nothing left
6609
+ * to show, and your server's booking stands. A popup's next open() reads the
6610
+ * operation back and finds it booked.
6594
6611
  */
6595
6612
  markBooked(): Promise<boolean>;
6596
6613
  release(releaseActionId: string): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, SeatPriceMap, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
2
2
  export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
3
- import { T as ThemeMode } from './channelsMode-CVhVwfEC.js';
4
- export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-CVhVwfEC.js';
3
+ import { T as ThemeMode } from './channelsMode-rHChoJwY.js';
4
+ export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-rHChoJwY.js';
5
5
  import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
6
6
  import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
7
7
  import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';
@@ -1169,7 +1169,9 @@ interface CheckoutHandoff {
1169
1169
  * count, a stranded single seat);
1170
1170
  * - `too_many_tickets`: more than the picker's maximum;
1171
1171
  * - `seats_taken`: a seat was taken first, or the hold failed for another
1172
- * reason (which also reaches `onError`);
1172
+ * reason (which also reaches `onError`). When the server gave no answer
1173
+ * even after the picker's own tries, the picker says to try again and keeps
1174
+ * the selection;
1173
1175
  * - `paused`: SeatLayer is briefly paused for maintenance; the seats stay picked;
1174
1176
  * - `companion_pair_required`, `ticket_option_not_applicable`: the server's own
1175
1177
  * seat rules.
@@ -2900,11 +2902,15 @@ declare function bindSeatingChartHandle(getInstance: () => SeatingChart | null):
2900
2902
  * "live", it makes them silently ignored after mount, which is the worse of the
2901
2903
  * two behaviours. React already treated them this way; Vue and Angular did not
2902
2904
  * expose them at all.
2905
+ *
2906
+ * `enable3D`, `enable3DCrowd` and `touchNavigation3D` are here for the same
2907
+ * reason: `SeatingChart` hands them to its 3D view once, in the constructor, and
2908
+ * has no setter for any of them.
2903
2909
  */
2904
- declare const SEATING_CHART_IDENTITY_PROPS: readonly ["event", "apiBase", "maxSelection", "numberOfPlacesToSelect", "selectionValidators", "publicKey", "locale", "currency", "colorblindSafe", "initialView", "errorDisplay"];
2910
+ declare const SEATING_CHART_IDENTITY_PROPS: readonly ["event", "apiBase", "maxSelection", "numberOfPlacesToSelect", "selectionValidators", "publicKey", "locale", "currency", "colorblindSafe", "initialView", "errorDisplay", "enable3D", "enable3DCrowd", "touchNavigation3D"];
2905
2911
  type SeatingChartIdentityProp = (typeof SEATING_CHART_IDENTITY_PROPS)[number];
2906
2912
  /** Non-callback options a wrapper accepts as props/inputs and passes straight through. */
2907
- declare const SEATING_CHART_VALUE_PROPS: readonly ["event", "apiBase", "maxSelection", "numberOfPlacesToSelect", "selectionValidators", "publicKey", "locale", "currency", "colorblindSafe", "initialView", "errorDisplay", "selectedObjects", "selectableObjects", "messages", "seatTooltip", "buyerAccessTokenProvider", "buyerAccessToken"];
2913
+ declare const SEATING_CHART_VALUE_PROPS: readonly ["event", "apiBase", "maxSelection", "numberOfPlacesToSelect", "selectionValidators", "publicKey", "locale", "currency", "colorblindSafe", "initialView", "errorDisplay", "enable3D", "enable3DCrowd", "touchNavigation3D", "selectedObjects", "selectableObjects", "messages", "seatTooltip", "buyerAccessTokenProvider", "buyerAccessToken"];
2908
2914
  type SeatingChartValueProp = (typeof SEATING_CHART_VALUE_PROPS)[number];
2909
2915
  /** Every callback option a wrapper wires to its own event mechanism. */
2910
2916
  declare const SEATING_CHART_CALLBACK_PROPS: readonly ["onSelectionChange", "onSelectionValidityChange", "onSelectionValid", "onSelectionInvalid", "onSelectionLimit", "onHold", "onHoldRestored", "onHoldExpired", "onGAClick", "onGAPrompt", "onError", "onDeckTap", "onHint", "onSeatHover", "onAccessExpired", "onAccessUnavailable", "onSelectedObjectUnavailable"];
@@ -5525,6 +5531,12 @@ declare class SeatPicker implements GaPromptPicker {
5525
5531
  /** @internal */ closeView3dComparison(restoreFocus?: boolean): void;
5526
5532
  /** Current active/restored hold reflected in the tray. */
5527
5533
  getCurrentHold(): HoldResult | null;
5534
+ /**
5535
+ * Your page booked the held seats itself (its own checkout, or your server's book call). Settles the hold `holdId`
5536
+ * names, or the one held: booked state, no clock, nothing to restore, no checkout; resolves `true`. `false`, changing
5537
+ * nothing, for another hold, no hold or a destroyed picker. A live picker then reads the map again (pickerMarkBooked.ts).
5538
+ */
5539
+ markBooked(holdId?: string): Promise<boolean>;
5528
5540
  /** Explicit host-driven hold restore (automatic session restore is on by default). */
5529
5541
  resumeHold(holdId: string): Promise<HoldResult | null>;
5530
5542
  /** Re-hold one held seat on another ticket type; the server re-prices it. */
@@ -6591,6 +6603,11 @@ declare class SeasonPicker {
6591
6603
  * offering checkout, and this resolves `true`. It resolves `false`, leaving
6592
6604
  * the picker as it was, when nothing is held here or the operation is not
6593
6605
  * booked yet.
6606
+ *
6607
+ * It also resolves `false` on a picker that is gone (destroyed, or the popup
6608
+ * that closed itself when the buyer pressed Continue): there is nothing left
6609
+ * to show, and your server's booking stands. A popup's next open() reads the
6610
+ * operation back and finds it booked.
6594
6611
  */
6595
6612
  markBooked(): Promise<boolean>;
6596
6613
  release(releaseActionId: string): Promise<void>;