@seatlayer/js 0.86.13 → 0.88.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 +26 -0
- package/dist/index.cjs +65 -21
- package/dist/index.d.cts +89 -2
- package/dist/index.d.ts +89 -2
- package/dist/index.js +62 -18
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1192,6 +1192,16 @@ interface SeatPickerOptions {
|
|
|
1192
1192
|
* owns hold persistence and supplies initialHoldId itself.
|
|
1193
1193
|
*/
|
|
1194
1194
|
restoreHold?: boolean;
|
|
1195
|
+
/**
|
|
1196
|
+
* What happens to an active hold when the picker is closed or destroyed
|
|
1197
|
+
* before checkout. `'release'` (default) frees the seats on the server at
|
|
1198
|
+
* once. `'keep'` leaves the hold running for its remaining time and, with
|
|
1199
|
+
* `restoreHold`, resumes it the next time this event's picker mounts, so a
|
|
1200
|
+
* buyer who closes the map by accident finds their seats still held. The
|
|
1201
|
+
* buyer can still give seats back with the remove control on each ticket,
|
|
1202
|
+
* and the hold expires on its own timer.
|
|
1203
|
+
*/
|
|
1204
|
+
holdOnClose?: 'release' | 'keep';
|
|
1195
1205
|
/**
|
|
1196
1206
|
* Render the real chart and live seat statuses without allowing selection,
|
|
1197
1207
|
* holds or checkout. This is for venue previews and pre-sale Website pages;
|
|
@@ -3297,6 +3307,15 @@ interface CheckoutOrderStatus {
|
|
|
3297
3307
|
declare const SHEET_STATES: readonly ["mini", "peek", "open"];
|
|
3298
3308
|
/** @internal */
|
|
3299
3309
|
type SheetState = (typeof SHEET_STATES)[number];
|
|
3310
|
+
/**
|
|
3311
|
+
* What a prewarm needs to know: which backend, which event, which public key.
|
|
3312
|
+
*
|
|
3313
|
+
* A subset of {@link SeatPickerOptions} on purpose, so a host can hand its own
|
|
3314
|
+
* picker options object straight to {@link SeatPicker.prewarm} rather than
|
|
3315
|
+
* restating the three fields — and so the two can never disagree about which
|
|
3316
|
+
* bootstrap the prewarm was for.
|
|
3317
|
+
*/
|
|
3318
|
+
type SeatPickerPrewarmOptions = Pick<SeatPickerOptions, 'event' | 'publicKey' | 'apiBase'>;
|
|
3300
3319
|
declare class SeatPicker implements GaPromptPicker {
|
|
3301
3320
|
/** @internal Read by pickerGaPrompt for the `onGAPrompt` host hook. */
|
|
3302
3321
|
readonly opts: SeatPickerOptions;
|
|
@@ -3437,8 +3456,28 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3437
3456
|
/** The progressive reveal has finished for the chart currently mounted, and
|
|
3438
3457
|
* the closure that says so once the render facts exist to say it with. */
|
|
3439
3458
|
private seatsRevealed;
|
|
3440
|
-
|
|
3459
|
+
/**
|
|
3460
|
+
* Steps that were deferred because they need seat NODES, not seat statuses.
|
|
3461
|
+
*
|
|
3462
|
+
* The load no longer waits for the progressive reveal (a 12k arena spent
|
|
3463
|
+
* ~1.3s behind the skeleton for seats the buyer could not yet interact with
|
|
3464
|
+
* anyway), so anything that has to MEASURE or FRAME real seats queues here
|
|
3465
|
+
* instead of re-gating the whole load. Drained once, in order, when the
|
|
3466
|
+
* engine says every seat has landed.
|
|
3467
|
+
*/
|
|
3468
|
+
private seatsRevealedWaiters;
|
|
3441
3469
|
private seatsRevealedReport;
|
|
3470
|
+
/**
|
|
3471
|
+
* The handover clock: `render()` resolving is its zero.
|
|
3472
|
+
*
|
|
3473
|
+
* Everything the buyer used to wait through between that moment and seeing
|
|
3474
|
+
* the map is now measured rather than assumed — how long the reveal ran on
|
|
3475
|
+
* behind a live map, and how long the skeleton stayed up after the chart was
|
|
3476
|
+
* ready. Both ride the chart-load beacon; neither is allowed to hold it up.
|
|
3477
|
+
*/
|
|
3478
|
+
private renderResolvedAt;
|
|
3479
|
+
private revealWaitMs;
|
|
3480
|
+
private handoverMs;
|
|
3442
3481
|
/** The seat the confirm card is about — the same facade as `confirmEl`. */
|
|
3443
3482
|
/** @internal */ get confirmSeat(): ExpandedSeat | null;
|
|
3444
3483
|
/** @internal */ set confirmSeat(seat: ExpandedSeat | null);
|
|
@@ -3635,6 +3674,32 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3635
3674
|
close(): void;
|
|
3636
3675
|
/** Mount the full picker as a document-level modal. Resolves after render. */
|
|
3637
3676
|
static open(options: Omit<SeatPickerOptions, 'container'>): Promise<SeatPicker>;
|
|
3677
|
+
/**
|
|
3678
|
+
* Start the buyer's bootstrap on INTENT, before the picker is constructed.
|
|
3679
|
+
*
|
|
3680
|
+
* The first thing a public-key mount does is POST `/pub/events/:key/bootstrap`
|
|
3681
|
+
* for its grant, chart and inventory — one round trip that everything else
|
|
3682
|
+
* waits behind. A buyer signals what they are about to open long before they
|
|
3683
|
+
* open it: a hover over "Choose your seats", a pointerdown on it, the click
|
|
3684
|
+
* itself. Calling this on those cues moves the request off the critical path;
|
|
3685
|
+
* the picker's own first read then joins the in-flight one or takes its
|
|
3686
|
+
* completed answer, so the page still makes exactly ONE bootstrap request.
|
|
3687
|
+
*
|
|
3688
|
+
* ```js
|
|
3689
|
+
* const seating = { event: 'ev_123', publicKey: 'pk_live_…' };
|
|
3690
|
+
* button.addEventListener('pointerenter', () => SeatPicker.prewarm(seating));
|
|
3691
|
+
* button.addEventListener('pointerdown', () => SeatPicker.prewarm(seating));
|
|
3692
|
+
* button.addEventListener('click', () => SeatPicker.open({ ...seating }));
|
|
3693
|
+
* ```
|
|
3694
|
+
*
|
|
3695
|
+
* Idempotent and free to call repeatedly: a bootstrap already in flight, or
|
|
3696
|
+
* one fetched and not yet near expiry, is left alone. It never throws and
|
|
3697
|
+
* never reports a failure — a prewarm that does not arrive simply is not
|
|
3698
|
+
* there when the picker mounts, and the mount behaves exactly as it does
|
|
3699
|
+
* today. Options that cannot use it (a host `transport`, a buyer access
|
|
3700
|
+
* token or provider, no `publicKey`) are a silent no-op.
|
|
3701
|
+
*/
|
|
3702
|
+
static prewarm(options: SeatPickerPrewarmOptions): void;
|
|
3638
3703
|
constructor(options: SeatPickerOptions);
|
|
3639
3704
|
/** Controller callbacks are wired once, before the first async chart load. */
|
|
3640
3705
|
private wireController;
|
|
@@ -3736,6 +3801,23 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3736
3801
|
private observeLayout;
|
|
3737
3802
|
/** Render the shared controller into the already-mounted canvas host. */
|
|
3738
3803
|
private loadChart;
|
|
3804
|
+
/**
|
|
3805
|
+
* Run something that needs SEAT NODES, once there are any.
|
|
3806
|
+
*
|
|
3807
|
+
* During a progressive reveal the engine already answers every question
|
|
3808
|
+
* about seat STATE — `statusById` is complete from the first frame, which is
|
|
3809
|
+
* why availability, prices, counts, the tray and the minimap can all be
|
|
3810
|
+
* built immediately. What does not exist yet is the drawn seat: its node,
|
|
3811
|
+
* its selection marker and therefore its screen position. Anything that
|
|
3812
|
+
* measures or FRAMES a seat has to wait for that, and waiting for it is not
|
|
3813
|
+
* a reason to hold the whole picker behind the skeleton.
|
|
3814
|
+
*
|
|
3815
|
+
* Synchronous once the reveal is over (the common case for a small chart,
|
|
3816
|
+
* which builds in one step), so callers need no second code path.
|
|
3817
|
+
*/
|
|
3818
|
+
/** Elapsed since `render()` resolved, or undefined when it never did. */
|
|
3819
|
+
private sinceRenderResolved;
|
|
3820
|
+
/** @internal */ whenSeatsRevealed(run: () => void): void;
|
|
3739
3821
|
/** Keep returning buyers behind the veil until their hold is authoritative. */
|
|
3740
3822
|
private restoreHoldForFirstPaint;
|
|
3741
3823
|
/** Resume a redirect checkout from this tab's storage, never from the URL. */
|
|
@@ -4621,6 +4703,11 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4621
4703
|
private restartAfterHoldExpiry;
|
|
4622
4704
|
destroy(): void;
|
|
4623
4705
|
}
|
|
4706
|
+
/**
|
|
4707
|
+
* Function form of {@link SeatPicker.prewarm}, for hosts wiring intent
|
|
4708
|
+
* handlers without a class reference to hand around.
|
|
4709
|
+
*/
|
|
4710
|
+
declare function prewarmSeatPicker(options: SeatPickerPrewarmOptions): void;
|
|
4624
4711
|
|
|
4625
4712
|
/** Buyer transport for one fixed-inclusion Performance Group. */
|
|
4626
4713
|
|
|
@@ -5393,4 +5480,4 @@ interface AttachPickerFrameOptions {
|
|
|
5393
5480
|
*/
|
|
5394
5481
|
declare function attachPickerFrame(iframe: HTMLIFrameElement, opts?: AttachPickerFrameOptions): () => void;
|
|
5395
5482
|
|
|
5396
|
-
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 SeasonAudience, type SeasonAvailability, type SeasonBestAvailableOptions, type SeasonCategoryPrice, type SeasonCheckoutHandoff, type SeasonCheckoutMode, type SeasonCheckoutRequest, type SeasonCheckoutSession, type SeasonDescriptor, type SeasonOfferPresentation, type SeasonOperation, type SeasonOperationState, type SeasonPackagePrices, SeasonPicker, type SeasonPickerOptions, type SeasonPrices, type SeasonPublicRefusalReason, type SeasonPublicSession, SeasonPublicSessionRefused, 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 };
|
|
5483
|
+
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 SeasonAudience, type SeasonAvailability, type SeasonBestAvailableOptions, type SeasonCategoryPrice, type SeasonCheckoutHandoff, type SeasonCheckoutMode, type SeasonCheckoutRequest, type SeasonCheckoutSession, type SeasonDescriptor, type SeasonOfferPresentation, type SeasonOperation, type SeasonOperationState, type SeasonPackagePrices, SeasonPicker, type SeasonPickerOptions, type SeasonPrices, type SeasonPublicRefusalReason, type SeasonPublicSession, SeasonPublicSessionRefused, SeasonRecoveryTimeoutError, type SeasonRenewalIntent, type SeasonStatusEvent, SeatPicker, type SeatPickerBestAvailableOptions, type SeatPickerBuyerView, type SeatPickerBuyerViewOptions, type SeatPickerOptions, type SeatPickerPrewarmOptions, 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, prewarmSeatPicker, shortOperationReference, ticketOfferPrices };
|
package/dist/index.d.ts
CHANGED
|
@@ -1192,6 +1192,16 @@ interface SeatPickerOptions {
|
|
|
1192
1192
|
* owns hold persistence and supplies initialHoldId itself.
|
|
1193
1193
|
*/
|
|
1194
1194
|
restoreHold?: boolean;
|
|
1195
|
+
/**
|
|
1196
|
+
* What happens to an active hold when the picker is closed or destroyed
|
|
1197
|
+
* before checkout. `'release'` (default) frees the seats on the server at
|
|
1198
|
+
* once. `'keep'` leaves the hold running for its remaining time and, with
|
|
1199
|
+
* `restoreHold`, resumes it the next time this event's picker mounts, so a
|
|
1200
|
+
* buyer who closes the map by accident finds their seats still held. The
|
|
1201
|
+
* buyer can still give seats back with the remove control on each ticket,
|
|
1202
|
+
* and the hold expires on its own timer.
|
|
1203
|
+
*/
|
|
1204
|
+
holdOnClose?: 'release' | 'keep';
|
|
1195
1205
|
/**
|
|
1196
1206
|
* Render the real chart and live seat statuses without allowing selection,
|
|
1197
1207
|
* holds or checkout. This is for venue previews and pre-sale Website pages;
|
|
@@ -3297,6 +3307,15 @@ interface CheckoutOrderStatus {
|
|
|
3297
3307
|
declare const SHEET_STATES: readonly ["mini", "peek", "open"];
|
|
3298
3308
|
/** @internal */
|
|
3299
3309
|
type SheetState = (typeof SHEET_STATES)[number];
|
|
3310
|
+
/**
|
|
3311
|
+
* What a prewarm needs to know: which backend, which event, which public key.
|
|
3312
|
+
*
|
|
3313
|
+
* A subset of {@link SeatPickerOptions} on purpose, so a host can hand its own
|
|
3314
|
+
* picker options object straight to {@link SeatPicker.prewarm} rather than
|
|
3315
|
+
* restating the three fields — and so the two can never disagree about which
|
|
3316
|
+
* bootstrap the prewarm was for.
|
|
3317
|
+
*/
|
|
3318
|
+
type SeatPickerPrewarmOptions = Pick<SeatPickerOptions, 'event' | 'publicKey' | 'apiBase'>;
|
|
3300
3319
|
declare class SeatPicker implements GaPromptPicker {
|
|
3301
3320
|
/** @internal Read by pickerGaPrompt for the `onGAPrompt` host hook. */
|
|
3302
3321
|
readonly opts: SeatPickerOptions;
|
|
@@ -3437,8 +3456,28 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3437
3456
|
/** The progressive reveal has finished for the chart currently mounted, and
|
|
3438
3457
|
* the closure that says so once the render facts exist to say it with. */
|
|
3439
3458
|
private seatsRevealed;
|
|
3440
|
-
|
|
3459
|
+
/**
|
|
3460
|
+
* Steps that were deferred because they need seat NODES, not seat statuses.
|
|
3461
|
+
*
|
|
3462
|
+
* The load no longer waits for the progressive reveal (a 12k arena spent
|
|
3463
|
+
* ~1.3s behind the skeleton for seats the buyer could not yet interact with
|
|
3464
|
+
* anyway), so anything that has to MEASURE or FRAME real seats queues here
|
|
3465
|
+
* instead of re-gating the whole load. Drained once, in order, when the
|
|
3466
|
+
* engine says every seat has landed.
|
|
3467
|
+
*/
|
|
3468
|
+
private seatsRevealedWaiters;
|
|
3441
3469
|
private seatsRevealedReport;
|
|
3470
|
+
/**
|
|
3471
|
+
* The handover clock: `render()` resolving is its zero.
|
|
3472
|
+
*
|
|
3473
|
+
* Everything the buyer used to wait through between that moment and seeing
|
|
3474
|
+
* the map is now measured rather than assumed — how long the reveal ran on
|
|
3475
|
+
* behind a live map, and how long the skeleton stayed up after the chart was
|
|
3476
|
+
* ready. Both ride the chart-load beacon; neither is allowed to hold it up.
|
|
3477
|
+
*/
|
|
3478
|
+
private renderResolvedAt;
|
|
3479
|
+
private revealWaitMs;
|
|
3480
|
+
private handoverMs;
|
|
3442
3481
|
/** The seat the confirm card is about — the same facade as `confirmEl`. */
|
|
3443
3482
|
/** @internal */ get confirmSeat(): ExpandedSeat | null;
|
|
3444
3483
|
/** @internal */ set confirmSeat(seat: ExpandedSeat | null);
|
|
@@ -3635,6 +3674,32 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3635
3674
|
close(): void;
|
|
3636
3675
|
/** Mount the full picker as a document-level modal. Resolves after render. */
|
|
3637
3676
|
static open(options: Omit<SeatPickerOptions, 'container'>): Promise<SeatPicker>;
|
|
3677
|
+
/**
|
|
3678
|
+
* Start the buyer's bootstrap on INTENT, before the picker is constructed.
|
|
3679
|
+
*
|
|
3680
|
+
* The first thing a public-key mount does is POST `/pub/events/:key/bootstrap`
|
|
3681
|
+
* for its grant, chart and inventory — one round trip that everything else
|
|
3682
|
+
* waits behind. A buyer signals what they are about to open long before they
|
|
3683
|
+
* open it: a hover over "Choose your seats", a pointerdown on it, the click
|
|
3684
|
+
* itself. Calling this on those cues moves the request off the critical path;
|
|
3685
|
+
* the picker's own first read then joins the in-flight one or takes its
|
|
3686
|
+
* completed answer, so the page still makes exactly ONE bootstrap request.
|
|
3687
|
+
*
|
|
3688
|
+
* ```js
|
|
3689
|
+
* const seating = { event: 'ev_123', publicKey: 'pk_live_…' };
|
|
3690
|
+
* button.addEventListener('pointerenter', () => SeatPicker.prewarm(seating));
|
|
3691
|
+
* button.addEventListener('pointerdown', () => SeatPicker.prewarm(seating));
|
|
3692
|
+
* button.addEventListener('click', () => SeatPicker.open({ ...seating }));
|
|
3693
|
+
* ```
|
|
3694
|
+
*
|
|
3695
|
+
* Idempotent and free to call repeatedly: a bootstrap already in flight, or
|
|
3696
|
+
* one fetched and not yet near expiry, is left alone. It never throws and
|
|
3697
|
+
* never reports a failure — a prewarm that does not arrive simply is not
|
|
3698
|
+
* there when the picker mounts, and the mount behaves exactly as it does
|
|
3699
|
+
* today. Options that cannot use it (a host `transport`, a buyer access
|
|
3700
|
+
* token or provider, no `publicKey`) are a silent no-op.
|
|
3701
|
+
*/
|
|
3702
|
+
static prewarm(options: SeatPickerPrewarmOptions): void;
|
|
3638
3703
|
constructor(options: SeatPickerOptions);
|
|
3639
3704
|
/** Controller callbacks are wired once, before the first async chart load. */
|
|
3640
3705
|
private wireController;
|
|
@@ -3736,6 +3801,23 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3736
3801
|
private observeLayout;
|
|
3737
3802
|
/** Render the shared controller into the already-mounted canvas host. */
|
|
3738
3803
|
private loadChart;
|
|
3804
|
+
/**
|
|
3805
|
+
* Run something that needs SEAT NODES, once there are any.
|
|
3806
|
+
*
|
|
3807
|
+
* During a progressive reveal the engine already answers every question
|
|
3808
|
+
* about seat STATE — `statusById` is complete from the first frame, which is
|
|
3809
|
+
* why availability, prices, counts, the tray and the minimap can all be
|
|
3810
|
+
* built immediately. What does not exist yet is the drawn seat: its node,
|
|
3811
|
+
* its selection marker and therefore its screen position. Anything that
|
|
3812
|
+
* measures or FRAMES a seat has to wait for that, and waiting for it is not
|
|
3813
|
+
* a reason to hold the whole picker behind the skeleton.
|
|
3814
|
+
*
|
|
3815
|
+
* Synchronous once the reveal is over (the common case for a small chart,
|
|
3816
|
+
* which builds in one step), so callers need no second code path.
|
|
3817
|
+
*/
|
|
3818
|
+
/** Elapsed since `render()` resolved, or undefined when it never did. */
|
|
3819
|
+
private sinceRenderResolved;
|
|
3820
|
+
/** @internal */ whenSeatsRevealed(run: () => void): void;
|
|
3739
3821
|
/** Keep returning buyers behind the veil until their hold is authoritative. */
|
|
3740
3822
|
private restoreHoldForFirstPaint;
|
|
3741
3823
|
/** Resume a redirect checkout from this tab's storage, never from the URL. */
|
|
@@ -4621,6 +4703,11 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4621
4703
|
private restartAfterHoldExpiry;
|
|
4622
4704
|
destroy(): void;
|
|
4623
4705
|
}
|
|
4706
|
+
/**
|
|
4707
|
+
* Function form of {@link SeatPicker.prewarm}, for hosts wiring intent
|
|
4708
|
+
* handlers without a class reference to hand around.
|
|
4709
|
+
*/
|
|
4710
|
+
declare function prewarmSeatPicker(options: SeatPickerPrewarmOptions): void;
|
|
4624
4711
|
|
|
4625
4712
|
/** Buyer transport for one fixed-inclusion Performance Group. */
|
|
4626
4713
|
|
|
@@ -5393,4 +5480,4 @@ interface AttachPickerFrameOptions {
|
|
|
5393
5480
|
*/
|
|
5394
5481
|
declare function attachPickerFrame(iframe: HTMLIFrameElement, opts?: AttachPickerFrameOptions): () => void;
|
|
5395
5482
|
|
|
5396
|
-
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 SeasonAudience, type SeasonAvailability, type SeasonBestAvailableOptions, type SeasonCategoryPrice, type SeasonCheckoutHandoff, type SeasonCheckoutMode, type SeasonCheckoutRequest, type SeasonCheckoutSession, type SeasonDescriptor, type SeasonOfferPresentation, type SeasonOperation, type SeasonOperationState, type SeasonPackagePrices, SeasonPicker, type SeasonPickerOptions, type SeasonPrices, type SeasonPublicRefusalReason, type SeasonPublicSession, SeasonPublicSessionRefused, 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 };
|
|
5483
|
+
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 SeasonAudience, type SeasonAvailability, type SeasonBestAvailableOptions, type SeasonCategoryPrice, type SeasonCheckoutHandoff, type SeasonCheckoutMode, type SeasonCheckoutRequest, type SeasonCheckoutSession, type SeasonDescriptor, type SeasonOfferPresentation, type SeasonOperation, type SeasonOperationState, type SeasonPackagePrices, SeasonPicker, type SeasonPickerOptions, type SeasonPrices, type SeasonPublicRefusalReason, type SeasonPublicSession, SeasonPublicSessionRefused, SeasonRecoveryTimeoutError, type SeasonRenewalIntent, type SeasonStatusEvent, SeatPicker, type SeatPickerBestAvailableOptions, type SeatPickerBuyerView, type SeatPickerBuyerViewOptions, type SeatPickerOptions, type SeatPickerPrewarmOptions, 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, prewarmSeatPicker, shortOperationReference, ticketOfferPrices };
|