@seatlayer/js 0.71.4 → 0.71.5
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 +40 -14
- package/dist/index.d.cts +58 -32
- package/dist/index.d.ts +58 -32
- package/dist/index.js +39 -13
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity,
|
|
1
|
+
import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, ChartTheme, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AvailabilityRefreshOutcome, PickerController, AccessibilityType, ExpandedSeat } from '@seatlayer/core';
|
|
2
2
|
export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
|
|
3
3
|
import { T as ThemeMode } from './channelsMode-goczEzyt.cjs';
|
|
4
4
|
export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerCapability, a8 as SeatManagerConnection, a9 as SeatManagerFilteredSection, aa as SeatManagerMode, ab as SeatManagerOptions, ac as SeatManagerSelectionValidity, ad as SeatManagerTallies, ae as SelectionSourceRow } from './channelsMode-goczEzyt.cjs';
|
|
@@ -1291,35 +1291,6 @@ interface SeatPickerOptions {
|
|
|
1291
1291
|
onError?: (err: unknown) => void;
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
/**
|
|
1295
|
-
* SeatingChart — the embeddable buyer picker.
|
|
1296
|
-
*
|
|
1297
|
-
* A thin wrapper over the shared PickerController (src/picker/PickerController):
|
|
1298
|
-
* it owns the mount <div> + the public embed contract (hold-only — the SDK hands
|
|
1299
|
-
* the holdId to the host page for a server-side book) and delegates all transport
|
|
1300
|
-
* + booking to the controller, so the SDK inherits every fix made for the live
|
|
1301
|
-
* buyer page and the demo picker.
|
|
1302
|
-
*/
|
|
1303
|
-
|
|
1304
|
-
/** A seat as surfaced to the host page (prices resolved from the chart's categories). */
|
|
1305
|
-
type SelectedSeat = PickerSeat;
|
|
1306
|
-
interface GAAreaAvailability {
|
|
1307
|
-
id: string;
|
|
1308
|
-
label: string;
|
|
1309
|
-
capacity: number;
|
|
1310
|
-
available: number;
|
|
1311
|
-
categoryKey: string;
|
|
1312
|
-
price: number;
|
|
1313
|
-
currency: string;
|
|
1314
|
-
/** Buyer-facing copy authored separately from stable inventory identity. */
|
|
1315
|
-
displayLabel?: string;
|
|
1316
|
-
displayType?: string;
|
|
1317
|
-
tiers?: Array<{
|
|
1318
|
-
id: string;
|
|
1319
|
-
name: string;
|
|
1320
|
-
price: number;
|
|
1321
|
-
}>;
|
|
1322
|
-
}
|
|
1323
1294
|
/**
|
|
1324
1295
|
* Serializable state exposed to hosted native picker chrome. It deliberately
|
|
1325
1296
|
* contains buyer-display data only: never API keys, buyer-access bearers,
|
|
@@ -1422,6 +1393,18 @@ interface SeatingChartPickerState {
|
|
|
1422
1393
|
categoryFilter: string[] | null;
|
|
1423
1394
|
accessibilityFilter: string[] | null;
|
|
1424
1395
|
hideLimitedView: boolean;
|
|
1396
|
+
/**
|
|
1397
|
+
* The access needs THIS event actually offers, with live free counts, in
|
|
1398
|
+
* the engine's canonical order.
|
|
1399
|
+
*
|
|
1400
|
+
* A native or web sheet that renders the whole twelve-key taxonomy offers
|
|
1401
|
+
* provisions the chart does not have — chips that filter to an empty map,
|
|
1402
|
+
* which reads as a venue that has the provision and has sold out of it.
|
|
1403
|
+
* A provision that exists but is currently all taken appears here with
|
|
1404
|
+
* `count: 0`, so "this venue has none" and "this venue's are taken" stay
|
|
1405
|
+
* different answers. Empty on a chart with no accessible inventory.
|
|
1406
|
+
*/
|
|
1407
|
+
accessNeeds: PickerAccessNeed[];
|
|
1425
1408
|
};
|
|
1426
1409
|
selection: {
|
|
1427
1410
|
seats: SelectedSeat[];
|
|
@@ -1434,6 +1417,36 @@ interface SeatingChartPickerState {
|
|
|
1434
1417
|
reason?: string;
|
|
1435
1418
|
};
|
|
1436
1419
|
}
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* SeatingChart — the embeddable buyer picker.
|
|
1423
|
+
*
|
|
1424
|
+
* A thin wrapper over the shared PickerController (src/picker/PickerController):
|
|
1425
|
+
* it owns the mount <div> + the public embed contract (hold-only — the SDK hands
|
|
1426
|
+
* the holdId to the host page for a server-side book) and delegates all transport
|
|
1427
|
+
* + booking to the controller, so the SDK inherits every fix made for the live
|
|
1428
|
+
* buyer page and the demo picker.
|
|
1429
|
+
*/
|
|
1430
|
+
|
|
1431
|
+
/** A seat as surfaced to the host page (prices resolved from the chart's categories). */
|
|
1432
|
+
type SelectedSeat = PickerSeat;
|
|
1433
|
+
interface GAAreaAvailability {
|
|
1434
|
+
id: string;
|
|
1435
|
+
label: string;
|
|
1436
|
+
capacity: number;
|
|
1437
|
+
available: number;
|
|
1438
|
+
categoryKey: string;
|
|
1439
|
+
price: number;
|
|
1440
|
+
currency: string;
|
|
1441
|
+
/** Buyer-facing copy authored separately from stable inventory identity. */
|
|
1442
|
+
displayLabel?: string;
|
|
1443
|
+
displayType?: string;
|
|
1444
|
+
tiers?: Array<{
|
|
1445
|
+
id: string;
|
|
1446
|
+
name: string;
|
|
1447
|
+
price: number;
|
|
1448
|
+
}>;
|
|
1449
|
+
}
|
|
1437
1450
|
interface SeatingChartOptions {
|
|
1438
1451
|
/** CSS selector or an HTMLElement to render into. */
|
|
1439
1452
|
container: string | HTMLElement;
|
|
@@ -1949,8 +1962,17 @@ declare class SeatingChart {
|
|
|
1949
1962
|
* and its own legacy frames. Nothing about the public path changes.
|
|
1950
1963
|
*/
|
|
1951
1964
|
private startRealtime;
|
|
1952
|
-
/**
|
|
1953
|
-
|
|
1965
|
+
/**
|
|
1966
|
+
* Re-read OTHER buyers' inventory without remounting or disturbing this
|
|
1967
|
+
* buyer's own — see `@seatlayer/core`'s `availabilityRefresh`.
|
|
1968
|
+
*
|
|
1969
|
+
* Returns what actually changed for him: seats he had selected but never
|
|
1970
|
+
* held which somebody else has taken (already deselected), and whether his
|
|
1971
|
+
* own hold lapsed while he was away, with the labels that are still free so
|
|
1972
|
+
* a surface can offer them back. Nothing here moves the camera, the rung or
|
|
1973
|
+
* the cart total, and a seat he holds is never reported against him.
|
|
1974
|
+
*/
|
|
1975
|
+
refreshAvailability(): Promise<AvailabilityRefreshOutcome>;
|
|
1954
1976
|
/**
|
|
1955
1977
|
* Re-acquire the buyer access session — call after your app has re-authorized
|
|
1956
1978
|
* the buyer (a revoked session cannot be recovered any other way). Resolves
|
|
@@ -2736,6 +2758,10 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
2736
2758
|
private ctaPhase;
|
|
2737
2759
|
/** The ♿ control and its menu — one node, in the map's bottom-left corner. */
|
|
2738
2760
|
private a11yMenu;
|
|
2761
|
+
private detachAttention;
|
|
2762
|
+
/** The telling of a hold that ended while the buyer was away — the state
|
|
2763
|
+
* part is the engine's; see pickerHoldLapse.ts. */
|
|
2764
|
+
private readonly lapse;
|
|
2739
2765
|
/** Rail scroll listener attached once; the rail repaints many times. */
|
|
2740
2766
|
private railEdgesBound;
|
|
2741
2767
|
private fsFallback;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity,
|
|
1
|
+
import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, ChartTheme, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AvailabilityRefreshOutcome, PickerController, AccessibilityType, ExpandedSeat } from '@seatlayer/core';
|
|
2
2
|
export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
|
|
3
3
|
import { T as ThemeMode } from './channelsMode-goczEzyt.js';
|
|
4
4
|
export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerCapability, a8 as SeatManagerConnection, a9 as SeatManagerFilteredSection, aa as SeatManagerMode, ab as SeatManagerOptions, ac as SeatManagerSelectionValidity, ad as SeatManagerTallies, ae as SelectionSourceRow } from './channelsMode-goczEzyt.js';
|
|
@@ -1291,35 +1291,6 @@ interface SeatPickerOptions {
|
|
|
1291
1291
|
onError?: (err: unknown) => void;
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
/**
|
|
1295
|
-
* SeatingChart — the embeddable buyer picker.
|
|
1296
|
-
*
|
|
1297
|
-
* A thin wrapper over the shared PickerController (src/picker/PickerController):
|
|
1298
|
-
* it owns the mount <div> + the public embed contract (hold-only — the SDK hands
|
|
1299
|
-
* the holdId to the host page for a server-side book) and delegates all transport
|
|
1300
|
-
* + booking to the controller, so the SDK inherits every fix made for the live
|
|
1301
|
-
* buyer page and the demo picker.
|
|
1302
|
-
*/
|
|
1303
|
-
|
|
1304
|
-
/** A seat as surfaced to the host page (prices resolved from the chart's categories). */
|
|
1305
|
-
type SelectedSeat = PickerSeat;
|
|
1306
|
-
interface GAAreaAvailability {
|
|
1307
|
-
id: string;
|
|
1308
|
-
label: string;
|
|
1309
|
-
capacity: number;
|
|
1310
|
-
available: number;
|
|
1311
|
-
categoryKey: string;
|
|
1312
|
-
price: number;
|
|
1313
|
-
currency: string;
|
|
1314
|
-
/** Buyer-facing copy authored separately from stable inventory identity. */
|
|
1315
|
-
displayLabel?: string;
|
|
1316
|
-
displayType?: string;
|
|
1317
|
-
tiers?: Array<{
|
|
1318
|
-
id: string;
|
|
1319
|
-
name: string;
|
|
1320
|
-
price: number;
|
|
1321
|
-
}>;
|
|
1322
|
-
}
|
|
1323
1294
|
/**
|
|
1324
1295
|
* Serializable state exposed to hosted native picker chrome. It deliberately
|
|
1325
1296
|
* contains buyer-display data only: never API keys, buyer-access bearers,
|
|
@@ -1422,6 +1393,18 @@ interface SeatingChartPickerState {
|
|
|
1422
1393
|
categoryFilter: string[] | null;
|
|
1423
1394
|
accessibilityFilter: string[] | null;
|
|
1424
1395
|
hideLimitedView: boolean;
|
|
1396
|
+
/**
|
|
1397
|
+
* The access needs THIS event actually offers, with live free counts, in
|
|
1398
|
+
* the engine's canonical order.
|
|
1399
|
+
*
|
|
1400
|
+
* A native or web sheet that renders the whole twelve-key taxonomy offers
|
|
1401
|
+
* provisions the chart does not have — chips that filter to an empty map,
|
|
1402
|
+
* which reads as a venue that has the provision and has sold out of it.
|
|
1403
|
+
* A provision that exists but is currently all taken appears here with
|
|
1404
|
+
* `count: 0`, so "this venue has none" and "this venue's are taken" stay
|
|
1405
|
+
* different answers. Empty on a chart with no accessible inventory.
|
|
1406
|
+
*/
|
|
1407
|
+
accessNeeds: PickerAccessNeed[];
|
|
1425
1408
|
};
|
|
1426
1409
|
selection: {
|
|
1427
1410
|
seats: SelectedSeat[];
|
|
@@ -1434,6 +1417,36 @@ interface SeatingChartPickerState {
|
|
|
1434
1417
|
reason?: string;
|
|
1435
1418
|
};
|
|
1436
1419
|
}
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* SeatingChart — the embeddable buyer picker.
|
|
1423
|
+
*
|
|
1424
|
+
* A thin wrapper over the shared PickerController (src/picker/PickerController):
|
|
1425
|
+
* it owns the mount <div> + the public embed contract (hold-only — the SDK hands
|
|
1426
|
+
* the holdId to the host page for a server-side book) and delegates all transport
|
|
1427
|
+
* + booking to the controller, so the SDK inherits every fix made for the live
|
|
1428
|
+
* buyer page and the demo picker.
|
|
1429
|
+
*/
|
|
1430
|
+
|
|
1431
|
+
/** A seat as surfaced to the host page (prices resolved from the chart's categories). */
|
|
1432
|
+
type SelectedSeat = PickerSeat;
|
|
1433
|
+
interface GAAreaAvailability {
|
|
1434
|
+
id: string;
|
|
1435
|
+
label: string;
|
|
1436
|
+
capacity: number;
|
|
1437
|
+
available: number;
|
|
1438
|
+
categoryKey: string;
|
|
1439
|
+
price: number;
|
|
1440
|
+
currency: string;
|
|
1441
|
+
/** Buyer-facing copy authored separately from stable inventory identity. */
|
|
1442
|
+
displayLabel?: string;
|
|
1443
|
+
displayType?: string;
|
|
1444
|
+
tiers?: Array<{
|
|
1445
|
+
id: string;
|
|
1446
|
+
name: string;
|
|
1447
|
+
price: number;
|
|
1448
|
+
}>;
|
|
1449
|
+
}
|
|
1437
1450
|
interface SeatingChartOptions {
|
|
1438
1451
|
/** CSS selector or an HTMLElement to render into. */
|
|
1439
1452
|
container: string | HTMLElement;
|
|
@@ -1949,8 +1962,17 @@ declare class SeatingChart {
|
|
|
1949
1962
|
* and its own legacy frames. Nothing about the public path changes.
|
|
1950
1963
|
*/
|
|
1951
1964
|
private startRealtime;
|
|
1952
|
-
/**
|
|
1953
|
-
|
|
1965
|
+
/**
|
|
1966
|
+
* Re-read OTHER buyers' inventory without remounting or disturbing this
|
|
1967
|
+
* buyer's own — see `@seatlayer/core`'s `availabilityRefresh`.
|
|
1968
|
+
*
|
|
1969
|
+
* Returns what actually changed for him: seats he had selected but never
|
|
1970
|
+
* held which somebody else has taken (already deselected), and whether his
|
|
1971
|
+
* own hold lapsed while he was away, with the labels that are still free so
|
|
1972
|
+
* a surface can offer them back. Nothing here moves the camera, the rung or
|
|
1973
|
+
* the cart total, and a seat he holds is never reported against him.
|
|
1974
|
+
*/
|
|
1975
|
+
refreshAvailability(): Promise<AvailabilityRefreshOutcome>;
|
|
1954
1976
|
/**
|
|
1955
1977
|
* Re-acquire the buyer access session — call after your app has re-authorized
|
|
1956
1978
|
* the buyer (a revoked session cannot be recovered any other way). Resolves
|
|
@@ -2736,6 +2758,10 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
2736
2758
|
private ctaPhase;
|
|
2737
2759
|
/** The ♿ control and its menu — one node, in the map's bottom-left corner. */
|
|
2738
2760
|
private a11yMenu;
|
|
2761
|
+
private detachAttention;
|
|
2762
|
+
/** The telling of a hold that ended while the buyer was away — the state
|
|
2763
|
+
* part is the engine's; see pickerHoldLapse.ts. */
|
|
2764
|
+
private readonly lapse;
|
|
2739
2765
|
/** Rail scroll listener attached once; the rail repaints many times. */
|
|
2740
2766
|
private railEdgesBound;
|
|
2741
2767
|
private fsFallback;
|