@seatlayer/js 0.76.0 → 0.77.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
@@ -2783,7 +2783,11 @@ declare class SeatPicker implements GaPromptPicker {
2783
2783
  private tipPinned;
2784
2784
  private tipMarkedHoverLabel;
2785
2785
  private lastPointerType;
2786
- /** @internal */ confirmEl: HTMLDivElement | null;
2786
+ /** @internal The mounted confirm card. A facade over ConfirmCard in both
2787
+ * directions — the widget's own callers, its tests and the toast placer all
2788
+ * read and assign it as the plain field it used to be. */
2789
+ /** @internal */ get confirmEl(): HTMLDivElement | null;
2790
+ /** @internal */ set confirmEl(el: HTMLDivElement | null);
2787
2791
  /** Light / dark / auto, or null when the widget is not managing a mode at
2788
2792
  * all — which is the default, and is byte-for-byte the old behaviour. */
2789
2793
  private themeMode;
@@ -2793,7 +2797,11 @@ declare class SeatPicker implements GaPromptPicker {
2793
2797
  * the closure that says so once the render facts exist to say it with. */
2794
2798
  private seatsRevealed;
2795
2799
  private seatsRevealedReport;
2796
- private confirmSeat;
2800
+ /** The seat the confirm card is about — the same facade as `confirmEl`. */
2801
+ private get confirmSeat();
2802
+ private set confirmSeat(value);
2803
+ /** The confirm card owns its element and its candidate seat. */
2804
+ private confirmCardCache;
2797
2805
  private suppressConfirmationSeatId;
2798
2806
  private tableDialogEl;
2799
2807
  private tableDialog;
@@ -2916,19 +2924,6 @@ declare class SeatPicker implements GaPromptPicker {
2916
2924
  private framedFs;
2917
2925
  /** Last height (px) posted to a host frame; dedupes redundant reports. */
2918
2926
  private lastPostedHeight;
2919
- /** True when the chart carries a real performance anchor — a stage-kind shape.
2920
- * Every chart has a `focalPoint` (a bare look-at coordinate), so its presence
2921
- * alone never justifies a "to stage" claim; only an actual stage does. */
2922
- private chartHasStage;
2923
- /**
2924
- * Eager sightline preview for the confirm card: the organizer's real view
2925
- * photo, or — only when the chart has an actual stage to look at — a generated
2926
- * forward view plus an approximate distance-to-stage line. On a stageless
2927
- * chart both the distance claim and the generic stage silhouette are
2928
- * invented promises, so we suppress them; a real attached photo always shows.
2929
- * (OV-52)
2930
- */
2931
- private confirmThumbHtml;
2932
2927
  /** See `./seatViewThumb`, which the native bridge answers from as well. */
2933
2928
  private deliverableViewReference;
2934
2929
  /** True when the picker is rendered inside an iframe (snippet embed at /e/:key). */
@@ -3037,6 +3032,17 @@ declare class SeatPicker implements GaPromptPicker {
3037
3032
  * seats the buyer cannot see.
3038
3033
  */
3039
3034
  private focusSeatsForFilter;
3035
+ /**
3036
+ * Say what just happened when the camera could not say it.
3037
+ *
3038
+ * Fifteen wheelchair spaces in fifteen sections around a bowl have no "there"
3039
+ * to fly to: the framing call frames the whole venue, which is the view the
3040
+ * buyer was already looking at, so from their side the map dimmed and nothing
3041
+ * else changed. The overview now marks the sections that carry them; this is
3042
+ * the sentence that tells the buyer to look for those marks. Said only for
3043
+ * that shape — a tight cluster is dived into and explains itself.
3044
+ */
3045
+ private explainAccessibilitySpread;
3040
3046
  /** Turn the buyer's accessibility filter on or off from host code. Mirrors
3041
3047
  * the bridge command and the menu, so the three never diverge. */
3042
3048
  setAccessibilityFilter(types: AccessibilityType[] | null): void;
@@ -3221,59 +3227,27 @@ declare class SeatPicker implements GaPromptPicker {
3221
3227
  private confirmTableDialog;
3222
3228
  private cancelTableDialog;
3223
3229
  private dismissTableDialog;
3224
- /** @internal */ showConfirm(seat: ExpandedSeat): void;
3225
3230
  /**
3226
- * Ask for the press, once, until someone answers.
3227
- *
3228
- * The confirm card arrives with two buttons and nothing saying which one
3229
- * carries the decision. So the commit button shimmers shortly after the card
3230
- * lands and then breathes — and stops at the first sign of a person touching
3231
- * the card at all, not after a fixed count. An invitation that keeps being
3232
- * made after it has been received is nagging, which is why the stop is bound
3233
- * to three different first-contacts rather than to a timer.
3231
+ * The confirm card, built on first use.
3234
3232
  *
3235
- * Nothing here runs under reduced motion: the class is never added, so the
3236
- * button is simply a button. (pickerMotion also stands the class down, for a
3237
- * caller that is not this one.)
3233
+ * Every host member is a function that calls back through `this`, never a
3234
+ * captured value: the widget's tests replace `dismissConfirm`,
3235
+ * `reducedMotion`, `scheduleMotion`, `syncTray`, `canOffer3d`, `enter3d` and
3236
+ * `buyerAssetUrls` on the INSTANCE, and the card has to see those.
3238
3237
  */
3239
- private inviteCommit;
3240
- /**
3241
- * What the confirm card's commit button says.
3242
- *
3243
- * "Select" named the mechanism, not the act — on a card already showing Row,
3244
- * Seat and a price, the one control that decides the purchase was the least
3245
- * specific thing on it. It names the act instead.
3246
- *
3247
- * NO PRICE ON THE BUTTON (owner call 2026-09-02). "Add seat · $180" was tried
3248
- * and wrapped the button to two lines beside a one-line Cancel on a 310px
3249
- * phone card. The amount is already the largest thing in the band directly
3250
- * above, so putting it on the button bought a second copy of a fact the
3251
- * buyer is looking at and cost the row its shape.
3252
- *
3253
- * A seat only. A booth, a table or a general-admission line keeps the
3254
- * existing wording rather than being told it is adding a "seat" — those
3255
- * surfaces have their own nouns (the table dialog says "Select whole table"),
3256
- * and a wrong noun is worse than a general verb.
3257
- */
3258
- private addSeatLabel;
3238
+ private get confirmCard();
3239
+ /** @internal */ showConfirm(seat: ExpandedSeat): void;
3259
3240
  private reanchorConfirm;
3260
3241
  private dismissConfirm;
3261
- /**
3262
- * Commit the candidate — and let the press be seen.
3263
- *
3264
- * STATE FIRST, ALWAYS. The cart, the totals and the 3D snapshot update on the
3265
- * same tick as the click; nothing below defers a fact. What IS sequenced is
3266
- * the card's departure: the button sweeps its accent left to right while the
3267
- * tick draws and the label turns to "Added", and only then does the card
3268
- * leave and the seat fly to the tray. Dismissing on the click cut that sweep
3269
- * off after about one frame — the widget was animating a moment nobody could
3270
- * see, which is worse than not animating it.
3271
- *
3272
- * Reduced motion takes the old path exactly: no sweep, no wait.
3273
- */
3274
- private commitConfirm;
3242
+ /** @internal The card's own button calls the card; this is the seam the
3243
+ * widget's tests press. */
3244
+ /** @internal */ commitConfirm(): Promise<void>;
3275
3245
  private cancelConfirm;
3276
3246
  private closeConfirm;
3247
+ /** See `./pickerConfirmCard`; kept as members because the widget's tests
3248
+ * call and replace both on the instance. */
3249
+ private inviteCommit;
3250
+ private addSeatLabel;
3277
3251
  private seatViewEnabled;
3278
3252
  /** Every bookable seat (cached) — neighbor heads for the generated panorama. */
3279
3253
  /** @internal */ allSeats(): ExpandedSeat[];
package/dist/index.d.ts CHANGED
@@ -2783,7 +2783,11 @@ declare class SeatPicker implements GaPromptPicker {
2783
2783
  private tipPinned;
2784
2784
  private tipMarkedHoverLabel;
2785
2785
  private lastPointerType;
2786
- /** @internal */ confirmEl: HTMLDivElement | null;
2786
+ /** @internal The mounted confirm card. A facade over ConfirmCard in both
2787
+ * directions — the widget's own callers, its tests and the toast placer all
2788
+ * read and assign it as the plain field it used to be. */
2789
+ /** @internal */ get confirmEl(): HTMLDivElement | null;
2790
+ /** @internal */ set confirmEl(el: HTMLDivElement | null);
2787
2791
  /** Light / dark / auto, or null when the widget is not managing a mode at
2788
2792
  * all — which is the default, and is byte-for-byte the old behaviour. */
2789
2793
  private themeMode;
@@ -2793,7 +2797,11 @@ declare class SeatPicker implements GaPromptPicker {
2793
2797
  * the closure that says so once the render facts exist to say it with. */
2794
2798
  private seatsRevealed;
2795
2799
  private seatsRevealedReport;
2796
- private confirmSeat;
2800
+ /** The seat the confirm card is about — the same facade as `confirmEl`. */
2801
+ private get confirmSeat();
2802
+ private set confirmSeat(value);
2803
+ /** The confirm card owns its element and its candidate seat. */
2804
+ private confirmCardCache;
2797
2805
  private suppressConfirmationSeatId;
2798
2806
  private tableDialogEl;
2799
2807
  private tableDialog;
@@ -2916,19 +2924,6 @@ declare class SeatPicker implements GaPromptPicker {
2916
2924
  private framedFs;
2917
2925
  /** Last height (px) posted to a host frame; dedupes redundant reports. */
2918
2926
  private lastPostedHeight;
2919
- /** True when the chart carries a real performance anchor — a stage-kind shape.
2920
- * Every chart has a `focalPoint` (a bare look-at coordinate), so its presence
2921
- * alone never justifies a "to stage" claim; only an actual stage does. */
2922
- private chartHasStage;
2923
- /**
2924
- * Eager sightline preview for the confirm card: the organizer's real view
2925
- * photo, or — only when the chart has an actual stage to look at — a generated
2926
- * forward view plus an approximate distance-to-stage line. On a stageless
2927
- * chart both the distance claim and the generic stage silhouette are
2928
- * invented promises, so we suppress them; a real attached photo always shows.
2929
- * (OV-52)
2930
- */
2931
- private confirmThumbHtml;
2932
2927
  /** See `./seatViewThumb`, which the native bridge answers from as well. */
2933
2928
  private deliverableViewReference;
2934
2929
  /** True when the picker is rendered inside an iframe (snippet embed at /e/:key). */
@@ -3037,6 +3032,17 @@ declare class SeatPicker implements GaPromptPicker {
3037
3032
  * seats the buyer cannot see.
3038
3033
  */
3039
3034
  private focusSeatsForFilter;
3035
+ /**
3036
+ * Say what just happened when the camera could not say it.
3037
+ *
3038
+ * Fifteen wheelchair spaces in fifteen sections around a bowl have no "there"
3039
+ * to fly to: the framing call frames the whole venue, which is the view the
3040
+ * buyer was already looking at, so from their side the map dimmed and nothing
3041
+ * else changed. The overview now marks the sections that carry them; this is
3042
+ * the sentence that tells the buyer to look for those marks. Said only for
3043
+ * that shape — a tight cluster is dived into and explains itself.
3044
+ */
3045
+ private explainAccessibilitySpread;
3040
3046
  /** Turn the buyer's accessibility filter on or off from host code. Mirrors
3041
3047
  * the bridge command and the menu, so the three never diverge. */
3042
3048
  setAccessibilityFilter(types: AccessibilityType[] | null): void;
@@ -3221,59 +3227,27 @@ declare class SeatPicker implements GaPromptPicker {
3221
3227
  private confirmTableDialog;
3222
3228
  private cancelTableDialog;
3223
3229
  private dismissTableDialog;
3224
- /** @internal */ showConfirm(seat: ExpandedSeat): void;
3225
3230
  /**
3226
- * Ask for the press, once, until someone answers.
3227
- *
3228
- * The confirm card arrives with two buttons and nothing saying which one
3229
- * carries the decision. So the commit button shimmers shortly after the card
3230
- * lands and then breathes — and stops at the first sign of a person touching
3231
- * the card at all, not after a fixed count. An invitation that keeps being
3232
- * made after it has been received is nagging, which is why the stop is bound
3233
- * to three different first-contacts rather than to a timer.
3231
+ * The confirm card, built on first use.
3234
3232
  *
3235
- * Nothing here runs under reduced motion: the class is never added, so the
3236
- * button is simply a button. (pickerMotion also stands the class down, for a
3237
- * caller that is not this one.)
3233
+ * Every host member is a function that calls back through `this`, never a
3234
+ * captured value: the widget's tests replace `dismissConfirm`,
3235
+ * `reducedMotion`, `scheduleMotion`, `syncTray`, `canOffer3d`, `enter3d` and
3236
+ * `buyerAssetUrls` on the INSTANCE, and the card has to see those.
3238
3237
  */
3239
- private inviteCommit;
3240
- /**
3241
- * What the confirm card's commit button says.
3242
- *
3243
- * "Select" named the mechanism, not the act — on a card already showing Row,
3244
- * Seat and a price, the one control that decides the purchase was the least
3245
- * specific thing on it. It names the act instead.
3246
- *
3247
- * NO PRICE ON THE BUTTON (owner call 2026-09-02). "Add seat · $180" was tried
3248
- * and wrapped the button to two lines beside a one-line Cancel on a 310px
3249
- * phone card. The amount is already the largest thing in the band directly
3250
- * above, so putting it on the button bought a second copy of a fact the
3251
- * buyer is looking at and cost the row its shape.
3252
- *
3253
- * A seat only. A booth, a table or a general-admission line keeps the
3254
- * existing wording rather than being told it is adding a "seat" — those
3255
- * surfaces have their own nouns (the table dialog says "Select whole table"),
3256
- * and a wrong noun is worse than a general verb.
3257
- */
3258
- private addSeatLabel;
3238
+ private get confirmCard();
3239
+ /** @internal */ showConfirm(seat: ExpandedSeat): void;
3259
3240
  private reanchorConfirm;
3260
3241
  private dismissConfirm;
3261
- /**
3262
- * Commit the candidate — and let the press be seen.
3263
- *
3264
- * STATE FIRST, ALWAYS. The cart, the totals and the 3D snapshot update on the
3265
- * same tick as the click; nothing below defers a fact. What IS sequenced is
3266
- * the card's departure: the button sweeps its accent left to right while the
3267
- * tick draws and the label turns to "Added", and only then does the card
3268
- * leave and the seat fly to the tray. Dismissing on the click cut that sweep
3269
- * off after about one frame — the widget was animating a moment nobody could
3270
- * see, which is worse than not animating it.
3271
- *
3272
- * Reduced motion takes the old path exactly: no sweep, no wait.
3273
- */
3274
- private commitConfirm;
3242
+ /** @internal The card's own button calls the card; this is the seam the
3243
+ * widget's tests press. */
3244
+ /** @internal */ commitConfirm(): Promise<void>;
3275
3245
  private cancelConfirm;
3276
3246
  private closeConfirm;
3247
+ /** See `./pickerConfirmCard`; kept as members because the widget's tests
3248
+ * call and replace both on the instance. */
3249
+ private inviteCommit;
3250
+ private addSeatLabel;
3277
3251
  private seatViewEnabled;
3278
3252
  /** Every bookable seat (cached) — neighbor heads for the generated panorama. */
3279
3253
  /** @internal */ allSeats(): ExpandedSeat[];