@seatlayer/js 0.51.0 → 0.52.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
@@ -1362,8 +1362,10 @@ interface SeatPickerOptions {
1362
1362
  seatId?: string;
1363
1363
  }) => void;
1364
1364
  /**
1365
- * Optional analytics sink for the widget's own journey events. Currently emits
1366
- * the 3D venue-view journey (`3d_opened`, `3d_orbit_engaged`, `3d_seat_picked`,
1365
+ * Optional analytics sink for the widget's journey and performance events.
1366
+ * Emits `chart_rendered` once per successful load with total time, step
1367
+ * timings and anonymous chart-size counts, plus the 3D venue-view journey
1368
+ * (`3d_opened`, `3d_orbit_engaged`, `3d_seat_picked`,
1367
1369
  * `3d_cinematic_played`/`_skipped`/`_cancelled`, panorama outcomes, and WebGL
1368
1370
  * context loss/recovery)
1369
1371
  * with `{ surface: 'buyer' }` merged into the props. A throwing sink never
@@ -1705,7 +1707,13 @@ declare class SeatPicker {
1705
1707
  private allSeatsCache;
1706
1708
  private miniCanvas;
1707
1709
  private miniBase;
1710
+ private miniWrap;
1711
+ private miniToggle;
1712
+ private miniLabel;
1708
1713
  private miniTf;
1714
+ private miniDrag;
1715
+ private miniSuppressClick;
1716
+ private pickerLayoutSize;
1709
1717
  private priceBandKeys;
1710
1718
  private focusedCatKey;
1711
1719
  /** "Hide limited-view seats" — mirrored into 3D by `seatState3dFor`. */
@@ -1958,17 +1966,30 @@ declare class SeatPicker {
1958
1966
  * drawn on top. The rect tracks pan/zoom via the constructor's onViewChange.
1959
1967
  */
1960
1968
  private buildMinimap;
1969
+ private setMinimapOpen;
1970
+ /** Re-fit the thumbnail whenever the active floor or complete overview
1971
+ * changes bounds. This is presentation-only; the source chart is untouched. */
1972
+ private layoutMinimap;
1973
+ private syncMinimapLabel;
1961
1974
  /** Repaint the static overview + rect (floor switch, live open/close). */
1962
1975
  private refreshMinimap;
1963
1976
  /** Paint the venue overview into the offscreen base canvas. */
1964
1977
  private drawMinimapStatic;
1965
1978
  /** Blit the base overview, then stroke the current viewport rectangle on top. */
1966
1979
  private drawMinimapRect;
1967
- /** Minimap click → focus the section under the point (or overview on a miss). */
1980
+ private minimapWorldPoint;
1981
+ private minimapPointerDown;
1982
+ private minimapPointerMove;
1983
+ private minimapPointerUp;
1984
+ private minimapKeydown;
1985
+ /** Minimap click → focus an available section, otherwise pan there. */
1968
1986
  private minimapJump;
1969
1987
  /** Effective display price of a category: host pricing override → first tier → base. */
1970
1988
  private catPrice;
1971
- /** Derive price bands: one chip per distinct price (≤5), else quantile ranges. */
1989
+ /** Complete buyer-visible price range, including every ticket tier and
1990
+ * tier-specific host override. */
1991
+ private catPriceRange;
1992
+ /** Derive category price bands without hiding the upper end of tier ranges. */
1972
1993
  private priceBands;
1973
1994
  /** Build the compact price selector in the panel header. Choosing a band both
1974
1995
  * filters availability and smoothly frames the matching seats on the map. */
@@ -1991,6 +2012,18 @@ declare class SeatPicker {
1991
2012
  private syncFloors;
1992
2013
  /** Show (or clear, on null) the tapped-section summary card. */
1993
2014
  private showSectionCard;
2015
+ /**
2016
+ * Open sections next to the focused one, in authored order.
2017
+ *
2018
+ * This is intentionally a circular ring: arena sections are usually authored
2019
+ * clockwise, so moving past the last section should reach the first without
2020
+ * forcing a buyer back through the overview level. Closed or empty sections
2021
+ * are skipped because focusing one cannot produce a useful buyer card.
2022
+ */
2023
+ private sectionNeighbours;
2024
+ /** Previous/next controls shared by expanded, mini, and phone section cards. */
2025
+ private sectionNavigationHtml;
2026
+ private wireSectionNavigation;
1994
2027
  /**
1995
2028
  * Render the section card in the form the layout + state want: expanded card
1996
2029
  * or slim pill in the top-center anchor region (wide), or a compact strip in
@@ -2260,14 +2293,16 @@ declare class SeatPicker {
2260
2293
  /** Build the view-from-seat panorama the cinematic dissolves into — reuses the
2261
2294
  * exact input path as the 2D `openSeatView` (organizer photo, else generated). */
2262
2295
  private seatViewFor3d;
2263
- /** Route the module's decoupled analytics into the host callback, tagged buyer. */
2296
+ /** Route decoupled analytics into the host callback, tagged buyer. */
2297
+ private emitAnalytics;
2264
2298
  private emit3dAnalytics;
2265
2299
  /** A 3D seat tap runs the SAME selection path as a 2D tap: toggle through the
2266
2300
  * controller, then raise the shared confirm card (bottom-sheeted in 3D). */
2267
2301
  private onView3dSeatPick;
2268
- /** Explain a visible-but-unselectable 3D seat without entering the booking
2269
- * flow. Category colour remains visible in the venue; this card names the
2270
- * availability state explicitly so yellow never has to carry both meanings. */
2302
+ /** Explain a 3D seat that INVENTORY refuses — never one the buyer's own
2303
+ * filters merely dimmed, which stays buyable exactly as it is in 2D. Category
2304
+ * colour remains visible in the venue; this card names the availability state
2305
+ * explicitly so yellow never has to carry both meanings. */
2271
2306
  private showUnavailable3dSeat;
2272
2307
  private dismissUnavailable3dSeat;
2273
2308
  /** Comparison belongs to inspection, never selection. The confirm candidate
package/dist/index.d.ts CHANGED
@@ -1362,8 +1362,10 @@ interface SeatPickerOptions {
1362
1362
  seatId?: string;
1363
1363
  }) => void;
1364
1364
  /**
1365
- * Optional analytics sink for the widget's own journey events. Currently emits
1366
- * the 3D venue-view journey (`3d_opened`, `3d_orbit_engaged`, `3d_seat_picked`,
1365
+ * Optional analytics sink for the widget's journey and performance events.
1366
+ * Emits `chart_rendered` once per successful load with total time, step
1367
+ * timings and anonymous chart-size counts, plus the 3D venue-view journey
1368
+ * (`3d_opened`, `3d_orbit_engaged`, `3d_seat_picked`,
1367
1369
  * `3d_cinematic_played`/`_skipped`/`_cancelled`, panorama outcomes, and WebGL
1368
1370
  * context loss/recovery)
1369
1371
  * with `{ surface: 'buyer' }` merged into the props. A throwing sink never
@@ -1705,7 +1707,13 @@ declare class SeatPicker {
1705
1707
  private allSeatsCache;
1706
1708
  private miniCanvas;
1707
1709
  private miniBase;
1710
+ private miniWrap;
1711
+ private miniToggle;
1712
+ private miniLabel;
1708
1713
  private miniTf;
1714
+ private miniDrag;
1715
+ private miniSuppressClick;
1716
+ private pickerLayoutSize;
1709
1717
  private priceBandKeys;
1710
1718
  private focusedCatKey;
1711
1719
  /** "Hide limited-view seats" — mirrored into 3D by `seatState3dFor`. */
@@ -1958,17 +1966,30 @@ declare class SeatPicker {
1958
1966
  * drawn on top. The rect tracks pan/zoom via the constructor's onViewChange.
1959
1967
  */
1960
1968
  private buildMinimap;
1969
+ private setMinimapOpen;
1970
+ /** Re-fit the thumbnail whenever the active floor or complete overview
1971
+ * changes bounds. This is presentation-only; the source chart is untouched. */
1972
+ private layoutMinimap;
1973
+ private syncMinimapLabel;
1961
1974
  /** Repaint the static overview + rect (floor switch, live open/close). */
1962
1975
  private refreshMinimap;
1963
1976
  /** Paint the venue overview into the offscreen base canvas. */
1964
1977
  private drawMinimapStatic;
1965
1978
  /** Blit the base overview, then stroke the current viewport rectangle on top. */
1966
1979
  private drawMinimapRect;
1967
- /** Minimap click → focus the section under the point (or overview on a miss). */
1980
+ private minimapWorldPoint;
1981
+ private minimapPointerDown;
1982
+ private minimapPointerMove;
1983
+ private minimapPointerUp;
1984
+ private minimapKeydown;
1985
+ /** Minimap click → focus an available section, otherwise pan there. */
1968
1986
  private minimapJump;
1969
1987
  /** Effective display price of a category: host pricing override → first tier → base. */
1970
1988
  private catPrice;
1971
- /** Derive price bands: one chip per distinct price (≤5), else quantile ranges. */
1989
+ /** Complete buyer-visible price range, including every ticket tier and
1990
+ * tier-specific host override. */
1991
+ private catPriceRange;
1992
+ /** Derive category price bands without hiding the upper end of tier ranges. */
1972
1993
  private priceBands;
1973
1994
  /** Build the compact price selector in the panel header. Choosing a band both
1974
1995
  * filters availability and smoothly frames the matching seats on the map. */
@@ -1991,6 +2012,18 @@ declare class SeatPicker {
1991
2012
  private syncFloors;
1992
2013
  /** Show (or clear, on null) the tapped-section summary card. */
1993
2014
  private showSectionCard;
2015
+ /**
2016
+ * Open sections next to the focused one, in authored order.
2017
+ *
2018
+ * This is intentionally a circular ring: arena sections are usually authored
2019
+ * clockwise, so moving past the last section should reach the first without
2020
+ * forcing a buyer back through the overview level. Closed or empty sections
2021
+ * are skipped because focusing one cannot produce a useful buyer card.
2022
+ */
2023
+ private sectionNeighbours;
2024
+ /** Previous/next controls shared by expanded, mini, and phone section cards. */
2025
+ private sectionNavigationHtml;
2026
+ private wireSectionNavigation;
1994
2027
  /**
1995
2028
  * Render the section card in the form the layout + state want: expanded card
1996
2029
  * or slim pill in the top-center anchor region (wide), or a compact strip in
@@ -2260,14 +2293,16 @@ declare class SeatPicker {
2260
2293
  /** Build the view-from-seat panorama the cinematic dissolves into — reuses the
2261
2294
  * exact input path as the 2D `openSeatView` (organizer photo, else generated). */
2262
2295
  private seatViewFor3d;
2263
- /** Route the module's decoupled analytics into the host callback, tagged buyer. */
2296
+ /** Route decoupled analytics into the host callback, tagged buyer. */
2297
+ private emitAnalytics;
2264
2298
  private emit3dAnalytics;
2265
2299
  /** A 3D seat tap runs the SAME selection path as a 2D tap: toggle through the
2266
2300
  * controller, then raise the shared confirm card (bottom-sheeted in 3D). */
2267
2301
  private onView3dSeatPick;
2268
- /** Explain a visible-but-unselectable 3D seat without entering the booking
2269
- * flow. Category colour remains visible in the venue; this card names the
2270
- * availability state explicitly so yellow never has to carry both meanings. */
2302
+ /** Explain a 3D seat that INVENTORY refuses — never one the buyer's own
2303
+ * filters merely dimmed, which stays buyable exactly as it is in 2D. Category
2304
+ * colour remains visible in the venue; this card names the availability state
2305
+ * explicitly so yellow never has to carry both meanings. */
2271
2306
  private showUnavailable3dSeat;
2272
2307
  private dismissUnavailable3dSeat;
2273
2308
  /** Comparison belongs to inspection, never selection. The confirm candidate