@seatlayer/js 0.49.0 → 0.50.1
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.cjs +222 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +222 -53
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1386,6 +1386,15 @@ interface SeatPickerOptions {
|
|
|
1386
1386
|
* own event chrome arrives asynchronously.
|
|
1387
1387
|
*/
|
|
1388
1388
|
hideEventDetails?: boolean;
|
|
1389
|
+
/**
|
|
1390
|
+
* Start the wide-layout ticket panel collapsed so the map owns the full
|
|
1391
|
+
* width (map-first hosts, small embeds). The buyer reopens it with the
|
|
1392
|
+
* "Tickets" pill beside Map|3D, and it opens itself the moment a seat lands
|
|
1393
|
+
* in the cart — a collapsed panel must never hide a checkout. Narrow
|
|
1394
|
+
* layouts ignore this (the bottom sheet is already the collapse). A mounted
|
|
1395
|
+
* host can drive it later through `setPanelCollapsed()`. Default false.
|
|
1396
|
+
*/
|
|
1397
|
+
panelCollapsed?: boolean;
|
|
1389
1398
|
/** Host theme overrides — see SeatPickerTheme. */
|
|
1390
1399
|
theme?: SeatPickerTheme;
|
|
1391
1400
|
/**
|
|
@@ -1607,6 +1616,8 @@ declare class SeatPicker {
|
|
|
1607
1616
|
private motionTimers;
|
|
1608
1617
|
private currency;
|
|
1609
1618
|
private eventTimezone;
|
|
1619
|
+
/** The event's formatted date-time (event-zone), reused by the closed-state note. */
|
|
1620
|
+
private eventWhenText;
|
|
1610
1621
|
private offerAvailability;
|
|
1611
1622
|
private hold;
|
|
1612
1623
|
/** Latest server expiry for the open hold (moves on extend). */
|
|
@@ -1714,6 +1725,9 @@ declare class SeatPicker {
|
|
|
1714
1725
|
private fsEscHandler;
|
|
1715
1726
|
/** Host-level event chrome owns the duplicate identity outside full screen. */
|
|
1716
1727
|
private eventDetailsHidden;
|
|
1728
|
+
/** Wide-layout ticket panel collapsed (map owns the full width). */
|
|
1729
|
+
private sideCollapsed;
|
|
1730
|
+
private sideToggleEl;
|
|
1717
1731
|
/** True once we've asked the host page to pin us fullscreen (framed, no native). */
|
|
1718
1732
|
private framedFs;
|
|
1719
1733
|
/** Last height (px) posted to a host frame; dedupes redundant reports. */
|
|
@@ -1827,6 +1841,24 @@ declare class SeatPicker {
|
|
|
1827
1841
|
* re-render the section card in the form the layout wants (docked card/pill
|
|
1828
1842
|
* on wide, sheet strip on narrow). Runs on every layout flip + once post-render.
|
|
1829
1843
|
*/
|
|
1844
|
+
/**
|
|
1845
|
+
* The wide-layout panel toggle: a labelled pill in the top-right region
|
|
1846
|
+
* beside Map|3D. Collapsing gives the map the panel's 300px; the pill's own
|
|
1847
|
+
* label is the way back ("Tickets"), and syncTray reopens the panel when the
|
|
1848
|
+
* first seat lands so the checkout can never be hidden behind a collapse.
|
|
1849
|
+
*/
|
|
1850
|
+
private buildPanelToggle;
|
|
1851
|
+
private syncPanelToggle;
|
|
1852
|
+
/**
|
|
1853
|
+
* Collapse or reopen the wide-layout ticket panel in place (host-drivable —
|
|
1854
|
+
* a map-first embed can mount collapsed via `panelCollapsed` and reopen on
|
|
1855
|
+
* its own cue). Inert while collapsed so a keyboard buyer cannot tab into a
|
|
1856
|
+
* zero-width panel; narrow layouts ignore the state entirely (the sheet is
|
|
1857
|
+
* already the collapse) but keep it for the next flip back to wide.
|
|
1858
|
+
*/
|
|
1859
|
+
setPanelCollapsed(collapsed: boolean): void;
|
|
1860
|
+
/** Idempotent DOM apply, also run on every layout flip (inert must lift on narrow). */
|
|
1861
|
+
private applyPanelCollapsed;
|
|
1830
1862
|
private dockLayoutChrome;
|
|
1831
1863
|
/** The "Need more time?" prompt shown in the hold's final EXTEND_PROMPT_MS. */
|
|
1832
1864
|
private buildExtendPrompt;
|
package/dist/index.d.ts
CHANGED
|
@@ -1386,6 +1386,15 @@ interface SeatPickerOptions {
|
|
|
1386
1386
|
* own event chrome arrives asynchronously.
|
|
1387
1387
|
*/
|
|
1388
1388
|
hideEventDetails?: boolean;
|
|
1389
|
+
/**
|
|
1390
|
+
* Start the wide-layout ticket panel collapsed so the map owns the full
|
|
1391
|
+
* width (map-first hosts, small embeds). The buyer reopens it with the
|
|
1392
|
+
* "Tickets" pill beside Map|3D, and it opens itself the moment a seat lands
|
|
1393
|
+
* in the cart — a collapsed panel must never hide a checkout. Narrow
|
|
1394
|
+
* layouts ignore this (the bottom sheet is already the collapse). A mounted
|
|
1395
|
+
* host can drive it later through `setPanelCollapsed()`. Default false.
|
|
1396
|
+
*/
|
|
1397
|
+
panelCollapsed?: boolean;
|
|
1389
1398
|
/** Host theme overrides — see SeatPickerTheme. */
|
|
1390
1399
|
theme?: SeatPickerTheme;
|
|
1391
1400
|
/**
|
|
@@ -1607,6 +1616,8 @@ declare class SeatPicker {
|
|
|
1607
1616
|
private motionTimers;
|
|
1608
1617
|
private currency;
|
|
1609
1618
|
private eventTimezone;
|
|
1619
|
+
/** The event's formatted date-time (event-zone), reused by the closed-state note. */
|
|
1620
|
+
private eventWhenText;
|
|
1610
1621
|
private offerAvailability;
|
|
1611
1622
|
private hold;
|
|
1612
1623
|
/** Latest server expiry for the open hold (moves on extend). */
|
|
@@ -1714,6 +1725,9 @@ declare class SeatPicker {
|
|
|
1714
1725
|
private fsEscHandler;
|
|
1715
1726
|
/** Host-level event chrome owns the duplicate identity outside full screen. */
|
|
1716
1727
|
private eventDetailsHidden;
|
|
1728
|
+
/** Wide-layout ticket panel collapsed (map owns the full width). */
|
|
1729
|
+
private sideCollapsed;
|
|
1730
|
+
private sideToggleEl;
|
|
1717
1731
|
/** True once we've asked the host page to pin us fullscreen (framed, no native). */
|
|
1718
1732
|
private framedFs;
|
|
1719
1733
|
/** Last height (px) posted to a host frame; dedupes redundant reports. */
|
|
@@ -1827,6 +1841,24 @@ declare class SeatPicker {
|
|
|
1827
1841
|
* re-render the section card in the form the layout wants (docked card/pill
|
|
1828
1842
|
* on wide, sheet strip on narrow). Runs on every layout flip + once post-render.
|
|
1829
1843
|
*/
|
|
1844
|
+
/**
|
|
1845
|
+
* The wide-layout panel toggle: a labelled pill in the top-right region
|
|
1846
|
+
* beside Map|3D. Collapsing gives the map the panel's 300px; the pill's own
|
|
1847
|
+
* label is the way back ("Tickets"), and syncTray reopens the panel when the
|
|
1848
|
+
* first seat lands so the checkout can never be hidden behind a collapse.
|
|
1849
|
+
*/
|
|
1850
|
+
private buildPanelToggle;
|
|
1851
|
+
private syncPanelToggle;
|
|
1852
|
+
/**
|
|
1853
|
+
* Collapse or reopen the wide-layout ticket panel in place (host-drivable —
|
|
1854
|
+
* a map-first embed can mount collapsed via `panelCollapsed` and reopen on
|
|
1855
|
+
* its own cue). Inert while collapsed so a keyboard buyer cannot tab into a
|
|
1856
|
+
* zero-width panel; narrow layouts ignore the state entirely (the sheet is
|
|
1857
|
+
* already the collapse) but keep it for the next flip back to wide.
|
|
1858
|
+
*/
|
|
1859
|
+
setPanelCollapsed(collapsed: boolean): void;
|
|
1860
|
+
/** Idempotent DOM apply, also run on every layout flip (inert must lift on narrow). */
|
|
1861
|
+
private applyPanelCollapsed;
|
|
1830
1862
|
private dockLayoutChrome;
|
|
1831
1863
|
/** The "Need more time?" prompt shown in the hold's final EXTEND_PROMPT_MS. */
|
|
1832
1864
|
private buildExtendPrompt;
|