@seatlayer/js 0.71.5 → 0.72.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
@@ -3091,7 +3091,6 @@ declare class SeatPicker implements GaPromptPicker {
3091
3091
  private refreshOfferAvailability;
3092
3092
  private offerPrice;
3093
3093
  private applyChannelPricing;
3094
- /** The compact current/upcoming offer card above Ticket prices. */
3095
3094
  private syncOffer;
3096
3095
  /**
3097
3096
  * The price the buyer will actually pay for an object/category/tier: its
@@ -3950,6 +3949,8 @@ interface SeasonOperation {
3950
3949
  holdId: string;
3951
3950
  expiresAt: number;
3952
3951
  policy: 'fixed_inclusion_same_seat';
3952
+ pricingAuthority: 'host';
3953
+ authoritativeAmountIncluded: false;
3953
3954
  state: SeasonOperationState;
3954
3955
  bookingRef: string | null;
3955
3956
  location: string;
@@ -3966,6 +3967,8 @@ interface SeasonCheckoutHandoff {
3966
3967
  holdId: string;
3967
3968
  expiresAt: number;
3968
3969
  policy: 'fixed_inclusion_same_seat';
3970
+ pricingAuthority: 'host';
3971
+ authoritativeAmountIncluded: false;
3969
3972
  state: SeasonOperationState;
3970
3973
  allocations: Array<{
3971
3974
  eventKey: string;
@@ -3993,6 +3996,16 @@ interface SeasonStatusEvent {
3993
3996
  message: string;
3994
3997
  operationId?: string;
3995
3998
  }
3999
+ /** Host-authored commercial context. Display only; checkout must re-price server-side. */
4000
+ interface SeasonOfferPresentation {
4001
+ eyebrow?: string;
4002
+ priceLabel?: string;
4003
+ compareAtPriceLabel?: string;
4004
+ savingsLabel?: string;
4005
+ priceNote?: string;
4006
+ benefits?: readonly string[];
4007
+ renewalLabel?: string;
4008
+ }
3996
4009
  interface SeasonPickerOptions {
3997
4010
  container: string | HTMLElement;
3998
4011
  season: string;
@@ -4001,10 +4014,36 @@ interface SeasonPickerOptions {
4001
4014
  buyerAccessToken?: string | BuyerAccessToken;
4002
4015
  initialOperationId?: string;
4003
4016
  recoveryTimeoutMs?: number;
4017
+ realtimePollMs?: number;
4004
4018
  fetch?: typeof fetch;
4019
+ offer?: SeasonOfferPresentation;
4020
+ maxSelection?: number;
4021
+ selectedObjects?: string[];
4022
+ selectableObjects?: string[] | null;
4023
+ numberOfPlacesToSelect?: number;
4024
+ selectionValidators?: PickerSelectionValidator[];
4025
+ locale?: string;
4026
+ messages?: Record<string, string>;
4027
+ languages?: string[];
4028
+ colorblindSafe?: boolean;
4029
+ initialView?: RendererViewMode;
4030
+ enable3D?: boolean;
4031
+ max3DSeats?: number;
4032
+ hideBadge?: boolean;
4033
+ theme?: SeatPickerTheme;
4034
+ confirmSelection?: boolean;
4035
+ seatView?: boolean;
4036
+ onSelectionChange?: (seats: PickerSeat[]) => void;
4037
+ onSelectionValidityChange?: (state: PickerSelectionValidity) => void;
4038
+ onBuyerViewChange?: (state: {
4039
+ view: SeatPickerBuyerView;
4040
+ seatId?: string;
4041
+ }) => void;
4042
+ onAnalytics?: (event: string, props: Record<string, unknown>) => void;
4005
4043
  onHold?: (handoff: SeasonCheckoutHandoff) => void;
4006
4044
  onHoldChange?: (handoff: SeasonCheckoutHandoff | null) => void;
4007
4045
  onContinue?: (handoff: SeasonCheckoutHandoff) => void;
4046
+ onHoldExpired?: () => void;
4008
4047
  onRenewalIntent?: (intent: SeasonRenewalIntent) => void;
4009
4048
  onAccessExpired?: (event: BuyerAccessExpiredEvent) => void;
4010
4049
  onAccessUnavailable?: (event: BuyerAccessUnavailableEvent) => void;
@@ -4064,4 +4103,4 @@ interface AttachPickerFrameOptions {
4064
4103
  */
4065
4104
  declare function attachPickerFrame(iframe: HTMLIFrameElement, opts?: AttachPickerFrameOptions): () => void;
4066
4105
 
4067
- 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 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -3091,7 +3091,6 @@ declare class SeatPicker implements GaPromptPicker {
3091
3091
  private refreshOfferAvailability;
3092
3092
  private offerPrice;
3093
3093
  private applyChannelPricing;
3094
- /** The compact current/upcoming offer card above Ticket prices. */
3095
3094
  private syncOffer;
3096
3095
  /**
3097
3096
  * The price the buyer will actually pay for an object/category/tier: its
@@ -3950,6 +3949,8 @@ interface SeasonOperation {
3950
3949
  holdId: string;
3951
3950
  expiresAt: number;
3952
3951
  policy: 'fixed_inclusion_same_seat';
3952
+ pricingAuthority: 'host';
3953
+ authoritativeAmountIncluded: false;
3953
3954
  state: SeasonOperationState;
3954
3955
  bookingRef: string | null;
3955
3956
  location: string;
@@ -3966,6 +3967,8 @@ interface SeasonCheckoutHandoff {
3966
3967
  holdId: string;
3967
3968
  expiresAt: number;
3968
3969
  policy: 'fixed_inclusion_same_seat';
3970
+ pricingAuthority: 'host';
3971
+ authoritativeAmountIncluded: false;
3969
3972
  state: SeasonOperationState;
3970
3973
  allocations: Array<{
3971
3974
  eventKey: string;
@@ -3993,6 +3996,16 @@ interface SeasonStatusEvent {
3993
3996
  message: string;
3994
3997
  operationId?: string;
3995
3998
  }
3999
+ /** Host-authored commercial context. Display only; checkout must re-price server-side. */
4000
+ interface SeasonOfferPresentation {
4001
+ eyebrow?: string;
4002
+ priceLabel?: string;
4003
+ compareAtPriceLabel?: string;
4004
+ savingsLabel?: string;
4005
+ priceNote?: string;
4006
+ benefits?: readonly string[];
4007
+ renewalLabel?: string;
4008
+ }
3996
4009
  interface SeasonPickerOptions {
3997
4010
  container: string | HTMLElement;
3998
4011
  season: string;
@@ -4001,10 +4014,36 @@ interface SeasonPickerOptions {
4001
4014
  buyerAccessToken?: string | BuyerAccessToken;
4002
4015
  initialOperationId?: string;
4003
4016
  recoveryTimeoutMs?: number;
4017
+ realtimePollMs?: number;
4004
4018
  fetch?: typeof fetch;
4019
+ offer?: SeasonOfferPresentation;
4020
+ maxSelection?: number;
4021
+ selectedObjects?: string[];
4022
+ selectableObjects?: string[] | null;
4023
+ numberOfPlacesToSelect?: number;
4024
+ selectionValidators?: PickerSelectionValidator[];
4025
+ locale?: string;
4026
+ messages?: Record<string, string>;
4027
+ languages?: string[];
4028
+ colorblindSafe?: boolean;
4029
+ initialView?: RendererViewMode;
4030
+ enable3D?: boolean;
4031
+ max3DSeats?: number;
4032
+ hideBadge?: boolean;
4033
+ theme?: SeatPickerTheme;
4034
+ confirmSelection?: boolean;
4035
+ seatView?: boolean;
4036
+ onSelectionChange?: (seats: PickerSeat[]) => void;
4037
+ onSelectionValidityChange?: (state: PickerSelectionValidity) => void;
4038
+ onBuyerViewChange?: (state: {
4039
+ view: SeatPickerBuyerView;
4040
+ seatId?: string;
4041
+ }) => void;
4042
+ onAnalytics?: (event: string, props: Record<string, unknown>) => void;
4005
4043
  onHold?: (handoff: SeasonCheckoutHandoff) => void;
4006
4044
  onHoldChange?: (handoff: SeasonCheckoutHandoff | null) => void;
4007
4045
  onContinue?: (handoff: SeasonCheckoutHandoff) => void;
4046
+ onHoldExpired?: () => void;
4008
4047
  onRenewalIntent?: (intent: SeasonRenewalIntent) => void;
4009
4048
  onAccessExpired?: (event: BuyerAccessExpiredEvent) => void;
4010
4049
  onAccessUnavailable?: (event: BuyerAccessUnavailableEvent) => void;
@@ -4064,4 +4103,4 @@ interface AttachPickerFrameOptions {
4064
4103
  */
4065
4104
  declare function attachPickerFrame(iframe: HTMLIFrameElement, opts?: AttachPickerFrameOptions): () => void;
4066
4105
 
4067
- 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 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 };
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 };