@seatlayer/js 0.72.1 → 0.73.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
@@ -1375,11 +1375,20 @@ interface SeatingChartPickerState {
1375
1375
  /** How the stacked view marks each level. */
1376
1376
  floorLabelStyle: FloorLabelStyle;
1377
1377
  rung: LodRung;
1378
+ /** True only when one semantic zoom-out step can reveal more of the venue. */
1379
+ canZoomOut: boolean;
1378
1380
  focusedSectionId: string | null;
1379
1381
  focusedSection: SectionSummary | null;
1380
1382
  viewMode: RendererViewMode;
1381
1383
  buyerView: SeatingChartBuyerView;
1382
1384
  view3dTargetSeatId: string | null;
1385
+ /** Buyer-display identity for the current 3D camera target, selected or not. */
1386
+ view3dTargetSeat: SelectedSeat | null;
1387
+ /** Same-row neighbours in authored seat order, matching the web 3D stepper. */
1388
+ view3dPreviousSeatId: string | null;
1389
+ view3dNextSeatId: string | null;
1390
+ /** Section framed by the 3D scene; separate from the 2D map focus. */
1391
+ view3dFocusedSectionId: string | null;
1383
1392
  view3dNavigationMode: SeatingChartNavigationMode;
1384
1393
  colorblindSafe: boolean;
1385
1394
  /** Chrome the HOST draws over the map, in CSS px, echoed back so a native
@@ -1688,6 +1697,8 @@ declare class SeatingChart {
1688
1697
  private focusedSection_;
1689
1698
  /** Last rung already exposed to native chrome; raw camera frames stay in-canvas. */
1690
1699
  private lastReportedViewRung_;
1700
+ /** Last semantic step-out state exposed to native chrome. */
1701
+ private lastReportedCanZoomOut_;
1691
1702
  private accessState_;
1692
1703
  private tipEl;
1693
1704
  private tipPos;
@@ -1703,7 +1714,7 @@ declare class SeatingChart {
1703
1714
  /**
1704
1715
  * Camera x/y/scale is renderer-local and deliberately absent from the native
1705
1716
  * picker snapshot. Keep pan and pinch frames on the canvas; only a semantic
1706
- * rung transition needs to wake native chrome.
1717
+ * rung or step-out transition needs to wake native chrome.
1707
1718
  */
1708
1719
  private handleViewChange;
1709
1720
  /** Record the current rung before publishing an explicit state mutation. */
@@ -3478,6 +3489,8 @@ declare class SeatPicker implements GaPromptPicker {
3478
3489
  /** Remove one server-held ticket while keeping the rest of the hold active. */
3479
3490
  removeHeldTicket(label: string): Promise<boolean>;
3480
3491
  bestAvailable(qty: number, categoryKey?: string, opts?: SeatPickerBestAvailableOptions): Promise<HoldResult | null>;
3492
+ /** @internal Exact, throwing variant for composed SDK surfaces. */
3493
+ bestAvailableOrThrow(qty: number, categoryKey?: string, opts?: SeatPickerBestAvailableOptions): Promise<HoldResult | null>;
3481
3494
  release(): Promise<void>;
3482
3495
  /**
3483
3496
  * Realtime for an access-scoped picker.
@@ -3915,7 +3928,7 @@ declare class PerformanceGroupPicker {
3915
3928
  private checkout;
3916
3929
  }
3917
3930
 
3918
- type SeasonOperationState = 'preparing' | 'commit_pending' | 'committed' | 'abort_pending' | 'aborted' | 'partial_terminal' | 'expired' | 'booked';
3931
+ type SeasonOperationState = 'preparing' | 'commit_pending' | 'committed' | 'expire_pending' | 'booking_pending' | 'abort_pending' | 'aborted' | 'partial_terminal' | 'expired' | 'booked';
3919
3932
  interface SeasonDescriptor {
3920
3933
  key: string;
3921
3934
  name: string;
@@ -3992,7 +4005,7 @@ declare class SeasonRecoveryTimeoutError extends Error {
3992
4005
  }
3993
4006
 
3994
4007
  interface SeasonStatusEvent {
3995
- kind: 'loading' | 'ready' | 'pending' | 'held' | 'released' | 'renewal_intent' | 'partial_terminal' | 'failed';
4008
+ kind: 'loading' | 'ready' | 'pending' | 'held' | 'booked' | 'released' | 'renewal_intent' | 'partial_terminal' | 'failed';
3996
4009
  message: string;
3997
4010
  operationId?: string;
3998
4011
  }
@@ -4006,6 +4019,14 @@ interface SeasonOfferPresentation {
4006
4019
  benefits?: readonly string[];
4007
4020
  renewalLabel?: string;
4008
4021
  }
4022
+ interface SeasonBestAvailableOptions {
4023
+ categoryKey?: string;
4024
+ zoneId?: string;
4025
+ /** Any-of accommodation filter, evaluated across every Event in the Plan. */
4026
+ accessibility?: readonly AccessibilityType[];
4027
+ /** Refuse scattered fallback when no contiguous block of `qty` exists. */
4028
+ requireContiguous?: boolean;
4029
+ }
4009
4030
  interface SeasonPickerOptions {
4010
4031
  container: string | HTMLElement;
4011
4032
  season: string;
@@ -4055,6 +4076,7 @@ declare class SeasonPicker {
4055
4076
  constructor(options: SeasonPickerOptions);
4056
4077
  render(): Promise<this>;
4057
4078
  holdSameSeat(labels: readonly string[], operationId: string): Promise<SeasonCheckoutHandoff>;
4079
+ holdBestAvailable(qty: number, operationId: string, options?: SeasonBestAvailableOptions): Promise<SeasonCheckoutHandoff>;
4058
4080
  restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;
4059
4081
  release(releaseActionId: string): Promise<void>;
4060
4082
  createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;
@@ -4103,4 +4125,4 @@ interface AttachPickerFrameOptions {
4103
4125
  */
4104
4126
  declare function attachPickerFrame(iframe: HTMLIFrameElement, opts?: AttachPickerFrameOptions): () => void;
4105
4127
 
4106
- export { ApiError, type AttachPickerFrameOptions, type BestAvailableResult, BuyerAccessContext, type BuyerAccessExpiredEvent, type BuyerAccessRefreshReason, type BuyerAccessToken, type BuyerAccessTokenProvider, BuyerAccessUnavailableError, type BuyerAccessUnavailableEvent, type BuyerAccessUnavailableReason, BuyerRealtimeClient, type BuyerRealtimeOptions, type CheckoutHandoff, type CheckoutLineItem, type CheckoutSessionResult, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type GAPromptRequest, type GaPromptTier, type HoldConflict, type HoldLineItem, type HoldResult, type OrderStatusResult, type PaymentOptionsReason, type PaymentOptionsResult, type PaymentProviderName, type PerformanceGroupAvailability, type PerformanceGroupCheckoutHandoff, type PerformanceGroupDescriptor, PerformanceGroupDestroyedError, type PerformanceGroupHold, type PerformanceGroupHoldAllocation, type PerformanceGroupOperationEvent, type PerformanceGroupOperationState, PerformanceGroupPicker, type PerformanceGroupPickerOptions, type PerformanceGroupRecoveryState, type PerformanceGroupSeatAllocation, type PerformanceGroupSelectionMode, type PerformanceGroupStatusEvent, type Projection, type PubApiOptions, type RealtimeSink, type ResumedHoldResult, SEATING_CHART_CALLBACK_PROPS, SEATING_CHART_HANDLE_METHODS, SEATING_CHART_IDENTITY_PROPS, SEATING_CHART_VALUE_PROPS, type SaleState, SeasonApiError, type SeasonAvailability, type SeasonCheckoutHandoff, type SeasonDescriptor, type SeasonOfferPresentation, type SeasonOperation, type SeasonOperationState, SeasonPicker, type SeasonPickerOptions, SeasonRecoveryTimeoutError, type SeasonRenewalIntent, type SeasonStatusEvent, SeatPicker, type SeatPickerBestAvailableOptions, type SeatPickerBuyerView, type SeatPickerBuyerViewOptions, type SeatPickerOptions, type SeatPickerPricing, type SeatPickerTheme, type SeatPickerWebMcpOptions, SeatingChart, type SeatingChartCallbackProp, type SeatingChartCallbacks, type SeatingChartHandle, type SeatingChartHandleMethod, type SeatingChartIdentityProp, type SeatingChartOptions, type SeatingChartSeatViewInfo, type SeatingChartValueProp, type SeatingChartValues, type SelectedObjectUnavailableEvent, type SelectedSeat, type StatusChange, type SubscribeTicket, ThemeMode, type TicketOfferAvailability, type TicketOfferPrice, type TicketOfferSummary, attachPickerFrame, bindSeatingChartHandle, buildSeatingChartOptions, createBuyerAccessContext, createControllerSink, parseTicketOfferAvailability, shortOperationReference, ticketOfferPrices };
4128
+ export { ApiError, type AttachPickerFrameOptions, type BestAvailableResult, BuyerAccessContext, type BuyerAccessExpiredEvent, type BuyerAccessRefreshReason, type BuyerAccessToken, type BuyerAccessTokenProvider, BuyerAccessUnavailableError, type BuyerAccessUnavailableEvent, type BuyerAccessUnavailableReason, BuyerRealtimeClient, type BuyerRealtimeOptions, type CheckoutHandoff, type CheckoutLineItem, type CheckoutSessionResult, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type GAPromptRequest, type GaPromptTier, type HoldConflict, type HoldLineItem, type HoldResult, type OrderStatusResult, type PaymentOptionsReason, type PaymentOptionsResult, type PaymentProviderName, type PerformanceGroupAvailability, type PerformanceGroupCheckoutHandoff, type PerformanceGroupDescriptor, PerformanceGroupDestroyedError, type PerformanceGroupHold, type PerformanceGroupHoldAllocation, type PerformanceGroupOperationEvent, type PerformanceGroupOperationState, PerformanceGroupPicker, type PerformanceGroupPickerOptions, type PerformanceGroupRecoveryState, type PerformanceGroupSeatAllocation, type PerformanceGroupSelectionMode, type PerformanceGroupStatusEvent, type Projection, type PubApiOptions, type RealtimeSink, type ResumedHoldResult, SEATING_CHART_CALLBACK_PROPS, SEATING_CHART_HANDLE_METHODS, SEATING_CHART_IDENTITY_PROPS, SEATING_CHART_VALUE_PROPS, type SaleState, SeasonApiError, type SeasonAvailability, type SeasonBestAvailableOptions, type SeasonCheckoutHandoff, type SeasonDescriptor, type SeasonOfferPresentation, type SeasonOperation, type SeasonOperationState, SeasonPicker, type SeasonPickerOptions, SeasonRecoveryTimeoutError, type SeasonRenewalIntent, type SeasonStatusEvent, SeatPicker, type SeatPickerBestAvailableOptions, type SeatPickerBuyerView, type SeatPickerBuyerViewOptions, type SeatPickerOptions, type SeatPickerPricing, type SeatPickerTheme, type SeatPickerWebMcpOptions, SeatingChart, type SeatingChartCallbackProp, type SeatingChartCallbacks, type SeatingChartHandle, type SeatingChartHandleMethod, type SeatingChartIdentityProp, type SeatingChartOptions, type SeatingChartSeatViewInfo, type SeatingChartValueProp, type SeatingChartValues, type SelectedObjectUnavailableEvent, type SelectedSeat, type StatusChange, type SubscribeTicket, ThemeMode, type TicketOfferAvailability, type TicketOfferPrice, type TicketOfferSummary, attachPickerFrame, bindSeatingChartHandle, buildSeatingChartOptions, createBuyerAccessContext, createControllerSink, parseTicketOfferAvailability, shortOperationReference, ticketOfferPrices };
package/dist/index.d.ts CHANGED
@@ -1375,11 +1375,20 @@ interface SeatingChartPickerState {
1375
1375
  /** How the stacked view marks each level. */
1376
1376
  floorLabelStyle: FloorLabelStyle;
1377
1377
  rung: LodRung;
1378
+ /** True only when one semantic zoom-out step can reveal more of the venue. */
1379
+ canZoomOut: boolean;
1378
1380
  focusedSectionId: string | null;
1379
1381
  focusedSection: SectionSummary | null;
1380
1382
  viewMode: RendererViewMode;
1381
1383
  buyerView: SeatingChartBuyerView;
1382
1384
  view3dTargetSeatId: string | null;
1385
+ /** Buyer-display identity for the current 3D camera target, selected or not. */
1386
+ view3dTargetSeat: SelectedSeat | null;
1387
+ /** Same-row neighbours in authored seat order, matching the web 3D stepper. */
1388
+ view3dPreviousSeatId: string | null;
1389
+ view3dNextSeatId: string | null;
1390
+ /** Section framed by the 3D scene; separate from the 2D map focus. */
1391
+ view3dFocusedSectionId: string | null;
1383
1392
  view3dNavigationMode: SeatingChartNavigationMode;
1384
1393
  colorblindSafe: boolean;
1385
1394
  /** Chrome the HOST draws over the map, in CSS px, echoed back so a native
@@ -1688,6 +1697,8 @@ declare class SeatingChart {
1688
1697
  private focusedSection_;
1689
1698
  /** Last rung already exposed to native chrome; raw camera frames stay in-canvas. */
1690
1699
  private lastReportedViewRung_;
1700
+ /** Last semantic step-out state exposed to native chrome. */
1701
+ private lastReportedCanZoomOut_;
1691
1702
  private accessState_;
1692
1703
  private tipEl;
1693
1704
  private tipPos;
@@ -1703,7 +1714,7 @@ declare class SeatingChart {
1703
1714
  /**
1704
1715
  * Camera x/y/scale is renderer-local and deliberately absent from the native
1705
1716
  * picker snapshot. Keep pan and pinch frames on the canvas; only a semantic
1706
- * rung transition needs to wake native chrome.
1717
+ * rung or step-out transition needs to wake native chrome.
1707
1718
  */
1708
1719
  private handleViewChange;
1709
1720
  /** Record the current rung before publishing an explicit state mutation. */
@@ -3478,6 +3489,8 @@ declare class SeatPicker implements GaPromptPicker {
3478
3489
  /** Remove one server-held ticket while keeping the rest of the hold active. */
3479
3490
  removeHeldTicket(label: string): Promise<boolean>;
3480
3491
  bestAvailable(qty: number, categoryKey?: string, opts?: SeatPickerBestAvailableOptions): Promise<HoldResult | null>;
3492
+ /** @internal Exact, throwing variant for composed SDK surfaces. */
3493
+ bestAvailableOrThrow(qty: number, categoryKey?: string, opts?: SeatPickerBestAvailableOptions): Promise<HoldResult | null>;
3481
3494
  release(): Promise<void>;
3482
3495
  /**
3483
3496
  * Realtime for an access-scoped picker.
@@ -3915,7 +3928,7 @@ declare class PerformanceGroupPicker {
3915
3928
  private checkout;
3916
3929
  }
3917
3930
 
3918
- type SeasonOperationState = 'preparing' | 'commit_pending' | 'committed' | 'abort_pending' | 'aborted' | 'partial_terminal' | 'expired' | 'booked';
3931
+ type SeasonOperationState = 'preparing' | 'commit_pending' | 'committed' | 'expire_pending' | 'booking_pending' | 'abort_pending' | 'aborted' | 'partial_terminal' | 'expired' | 'booked';
3919
3932
  interface SeasonDescriptor {
3920
3933
  key: string;
3921
3934
  name: string;
@@ -3992,7 +4005,7 @@ declare class SeasonRecoveryTimeoutError extends Error {
3992
4005
  }
3993
4006
 
3994
4007
  interface SeasonStatusEvent {
3995
- kind: 'loading' | 'ready' | 'pending' | 'held' | 'released' | 'renewal_intent' | 'partial_terminal' | 'failed';
4008
+ kind: 'loading' | 'ready' | 'pending' | 'held' | 'booked' | 'released' | 'renewal_intent' | 'partial_terminal' | 'failed';
3996
4009
  message: string;
3997
4010
  operationId?: string;
3998
4011
  }
@@ -4006,6 +4019,14 @@ interface SeasonOfferPresentation {
4006
4019
  benefits?: readonly string[];
4007
4020
  renewalLabel?: string;
4008
4021
  }
4022
+ interface SeasonBestAvailableOptions {
4023
+ categoryKey?: string;
4024
+ zoneId?: string;
4025
+ /** Any-of accommodation filter, evaluated across every Event in the Plan. */
4026
+ accessibility?: readonly AccessibilityType[];
4027
+ /** Refuse scattered fallback when no contiguous block of `qty` exists. */
4028
+ requireContiguous?: boolean;
4029
+ }
4009
4030
  interface SeasonPickerOptions {
4010
4031
  container: string | HTMLElement;
4011
4032
  season: string;
@@ -4055,6 +4076,7 @@ declare class SeasonPicker {
4055
4076
  constructor(options: SeasonPickerOptions);
4056
4077
  render(): Promise<this>;
4057
4078
  holdSameSeat(labels: readonly string[], operationId: string): Promise<SeasonCheckoutHandoff>;
4079
+ holdBestAvailable(qty: number, operationId: string, options?: SeasonBestAvailableOptions): Promise<SeasonCheckoutHandoff>;
4058
4080
  restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;
4059
4081
  release(releaseActionId: string): Promise<void>;
4060
4082
  createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;
@@ -4103,4 +4125,4 @@ interface AttachPickerFrameOptions {
4103
4125
  */
4104
4126
  declare function attachPickerFrame(iframe: HTMLIFrameElement, opts?: AttachPickerFrameOptions): () => void;
4105
4127
 
4106
- export { ApiError, type AttachPickerFrameOptions, type BestAvailableResult, BuyerAccessContext, type BuyerAccessExpiredEvent, type BuyerAccessRefreshReason, type BuyerAccessToken, type BuyerAccessTokenProvider, BuyerAccessUnavailableError, type BuyerAccessUnavailableEvent, type BuyerAccessUnavailableReason, BuyerRealtimeClient, type BuyerRealtimeOptions, type CheckoutHandoff, type CheckoutLineItem, type CheckoutSessionResult, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type GAPromptRequest, type GaPromptTier, type HoldConflict, type HoldLineItem, type HoldResult, type OrderStatusResult, type PaymentOptionsReason, type PaymentOptionsResult, type PaymentProviderName, type PerformanceGroupAvailability, type PerformanceGroupCheckoutHandoff, type PerformanceGroupDescriptor, PerformanceGroupDestroyedError, type PerformanceGroupHold, type PerformanceGroupHoldAllocation, type PerformanceGroupOperationEvent, type PerformanceGroupOperationState, PerformanceGroupPicker, type PerformanceGroupPickerOptions, type PerformanceGroupRecoveryState, type PerformanceGroupSeatAllocation, type PerformanceGroupSelectionMode, type PerformanceGroupStatusEvent, type Projection, type PubApiOptions, type RealtimeSink, type ResumedHoldResult, SEATING_CHART_CALLBACK_PROPS, SEATING_CHART_HANDLE_METHODS, SEATING_CHART_IDENTITY_PROPS, SEATING_CHART_VALUE_PROPS, type SaleState, SeasonApiError, type SeasonAvailability, type SeasonCheckoutHandoff, type SeasonDescriptor, type SeasonOfferPresentation, type SeasonOperation, type SeasonOperationState, SeasonPicker, type SeasonPickerOptions, SeasonRecoveryTimeoutError, type SeasonRenewalIntent, type SeasonStatusEvent, SeatPicker, type SeatPickerBestAvailableOptions, type SeatPickerBuyerView, type SeatPickerBuyerViewOptions, type SeatPickerOptions, type SeatPickerPricing, type SeatPickerTheme, type SeatPickerWebMcpOptions, SeatingChart, type SeatingChartCallbackProp, type SeatingChartCallbacks, type SeatingChartHandle, type SeatingChartHandleMethod, type SeatingChartIdentityProp, type SeatingChartOptions, type SeatingChartSeatViewInfo, type SeatingChartValueProp, type SeatingChartValues, type SelectedObjectUnavailableEvent, type SelectedSeat, type StatusChange, type SubscribeTicket, ThemeMode, type TicketOfferAvailability, type TicketOfferPrice, type TicketOfferSummary, attachPickerFrame, bindSeatingChartHandle, buildSeatingChartOptions, createBuyerAccessContext, createControllerSink, parseTicketOfferAvailability, shortOperationReference, ticketOfferPrices };
4128
+ export { ApiError, type AttachPickerFrameOptions, type BestAvailableResult, BuyerAccessContext, type BuyerAccessExpiredEvent, type BuyerAccessRefreshReason, type BuyerAccessToken, type BuyerAccessTokenProvider, BuyerAccessUnavailableError, type BuyerAccessUnavailableEvent, type BuyerAccessUnavailableReason, BuyerRealtimeClient, type BuyerRealtimeOptions, type CheckoutHandoff, type CheckoutLineItem, type CheckoutSessionResult, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type GAPromptRequest, type GaPromptTier, type HoldConflict, type HoldLineItem, type HoldResult, type OrderStatusResult, type PaymentOptionsReason, type PaymentOptionsResult, type PaymentProviderName, type PerformanceGroupAvailability, type PerformanceGroupCheckoutHandoff, type PerformanceGroupDescriptor, PerformanceGroupDestroyedError, type PerformanceGroupHold, type PerformanceGroupHoldAllocation, type PerformanceGroupOperationEvent, type PerformanceGroupOperationState, PerformanceGroupPicker, type PerformanceGroupPickerOptions, type PerformanceGroupRecoveryState, type PerformanceGroupSeatAllocation, type PerformanceGroupSelectionMode, type PerformanceGroupStatusEvent, type Projection, type PubApiOptions, type RealtimeSink, type ResumedHoldResult, SEATING_CHART_CALLBACK_PROPS, SEATING_CHART_HANDLE_METHODS, SEATING_CHART_IDENTITY_PROPS, SEATING_CHART_VALUE_PROPS, type SaleState, SeasonApiError, type SeasonAvailability, type SeasonBestAvailableOptions, type SeasonCheckoutHandoff, type SeasonDescriptor, type SeasonOfferPresentation, type SeasonOperation, type SeasonOperationState, SeasonPicker, type SeasonPickerOptions, SeasonRecoveryTimeoutError, type SeasonRenewalIntent, type SeasonStatusEvent, SeatPicker, type SeatPickerBestAvailableOptions, type SeatPickerBuyerView, type SeatPickerBuyerViewOptions, type SeatPickerOptions, type SeatPickerPricing, type SeatPickerTheme, type SeatPickerWebMcpOptions, SeatingChart, type SeatingChartCallbackProp, type SeatingChartCallbacks, type SeatingChartHandle, type SeatingChartHandleMethod, type SeatingChartIdentityProp, type SeatingChartOptions, type SeatingChartSeatViewInfo, type SeatingChartValueProp, type SeatingChartValues, type SelectedObjectUnavailableEvent, type SelectedSeat, type StatusChange, type SubscribeTicket, ThemeMode, type TicketOfferAvailability, type TicketOfferPrice, type TicketOfferSummary, attachPickerFrame, bindSeatingChartHandle, buildSeatingChartOptions, createBuyerAccessContext, createControllerSink, parseTicketOfferAvailability, shortOperationReference, ticketOfferPrices };