@seatlayer/js 0.97.0 → 0.98.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.
@@ -1316,6 +1316,24 @@ interface SeatManagerOptions {
1316
1316
  selectableObjects?: string[];
1317
1317
  /** Allow held, booked, and blocked objects in Select mode. Default true. */
1318
1318
  unavailableObjectsSelectable?: boolean;
1319
+ /**
1320
+ * Public labels the host wants shown as unavailable although the event's
1321
+ * inventory has them free (a seat kept back for a reason this event does
1322
+ * not record). A listed seat the event has free is painted as held, and no
1323
+ * listed seat can be chosen by a tap, a row label, a box, a chooser or
1324
+ * `selectObjects` — `unavailableObjectsSelectable`, `selectableObjects` and
1325
+ * `isObjectSelectable` do not make it selectable. A listed seat the event
1326
+ * already holds, books or blocks keeps its own paint.
1327
+ *
1328
+ * Display only: nothing is sent to the server, and tallies still count the
1329
+ * event's own inventory. Replace the list with `setUnavailableObjects()`.
1330
+ */
1331
+ unavailableObjects?: readonly string[];
1332
+ /**
1333
+ * The status word the map's hover card shows for a seat in
1334
+ * `unavailableObjects`, e.g. `'Kept for renewal'`. Default `'Unavailable'`.
1335
+ */
1336
+ unavailableObjectsReason?: string;
1319
1337
  /** Maximum objects selectable in the custom Select tool. */
1320
1338
  maxSelectedObjects?: number;
1321
1339
  /** Require exactly this many objects and cap selection at that count. */
@@ -1493,6 +1511,8 @@ declare class SeatManager {
1493
1511
  private mode;
1494
1512
  private inventoryModelVersion;
1495
1513
  private selectableObjectLabels;
1514
+ /** Host-listed labels painted as held while the event has them free. */
1515
+ private unavailableLabels;
1496
1516
  private lastSelectionLabels;
1497
1517
  private selectionWasValid;
1498
1518
  private initialSelectionApplied;
@@ -1841,6 +1861,12 @@ declare class SeatManager {
1841
1861
  deselectCategories(keys: string[]): ExpandedSeat[];
1842
1862
  /** Replace the unavailable-object exception list without remounting. */
1843
1863
  setSelectableObjects(labels: string[]): void;
1864
+ /**
1865
+ * Replace the labels shown as unavailable, and optionally the hover word for
1866
+ * them, without remounting. Seats leaving the list repaint as the event has
1867
+ * them; seats joining it repaint as held and leave the selection.
1868
+ */
1869
+ setUnavailableObjects(labels: readonly string[], reason?: string): void;
1844
1870
  /** Change whether unavailable inventory participates in custom selection. */
1845
1871
  setUnavailableObjectsSelectable(enabled: boolean): void;
1846
1872
  /** Replace the final per-object selection predicate. */
@@ -2055,6 +2081,10 @@ declare class SeatManager {
2055
2081
  private seedFeed;
2056
2082
  private startFeedClock;
2057
2083
  private selectionCap;
2084
+ /** A seat the host listed in `unavailableObjects`: never chosen on this map. */
2085
+ private isHostUnavailable;
2086
+ /** What the canvas paints for a label: a listed seat the event has free reads as held. */
2087
+ private renderStatusOf;
2058
2088
  private canSelectObject;
2059
2089
  private applyInitialSelection;
2060
2090
  private trimSelectionToCap;
@@ -1316,6 +1316,24 @@ interface SeatManagerOptions {
1316
1316
  selectableObjects?: string[];
1317
1317
  /** Allow held, booked, and blocked objects in Select mode. Default true. */
1318
1318
  unavailableObjectsSelectable?: boolean;
1319
+ /**
1320
+ * Public labels the host wants shown as unavailable although the event's
1321
+ * inventory has them free (a seat kept back for a reason this event does
1322
+ * not record). A listed seat the event has free is painted as held, and no
1323
+ * listed seat can be chosen by a tap, a row label, a box, a chooser or
1324
+ * `selectObjects` — `unavailableObjectsSelectable`, `selectableObjects` and
1325
+ * `isObjectSelectable` do not make it selectable. A listed seat the event
1326
+ * already holds, books or blocks keeps its own paint.
1327
+ *
1328
+ * Display only: nothing is sent to the server, and tallies still count the
1329
+ * event's own inventory. Replace the list with `setUnavailableObjects()`.
1330
+ */
1331
+ unavailableObjects?: readonly string[];
1332
+ /**
1333
+ * The status word the map's hover card shows for a seat in
1334
+ * `unavailableObjects`, e.g. `'Kept for renewal'`. Default `'Unavailable'`.
1335
+ */
1336
+ unavailableObjectsReason?: string;
1319
1337
  /** Maximum objects selectable in the custom Select tool. */
1320
1338
  maxSelectedObjects?: number;
1321
1339
  /** Require exactly this many objects and cap selection at that count. */
@@ -1493,6 +1511,8 @@ declare class SeatManager {
1493
1511
  private mode;
1494
1512
  private inventoryModelVersion;
1495
1513
  private selectableObjectLabels;
1514
+ /** Host-listed labels painted as held while the event has them free. */
1515
+ private unavailableLabels;
1496
1516
  private lastSelectionLabels;
1497
1517
  private selectionWasValid;
1498
1518
  private initialSelectionApplied;
@@ -1841,6 +1861,12 @@ declare class SeatManager {
1841
1861
  deselectCategories(keys: string[]): ExpandedSeat[];
1842
1862
  /** Replace the unavailable-object exception list without remounting. */
1843
1863
  setSelectableObjects(labels: string[]): void;
1864
+ /**
1865
+ * Replace the labels shown as unavailable, and optionally the hover word for
1866
+ * them, without remounting. Seats leaving the list repaint as the event has
1867
+ * them; seats joining it repaint as held and leave the selection.
1868
+ */
1869
+ setUnavailableObjects(labels: readonly string[], reason?: string): void;
1844
1870
  /** Change whether unavailable inventory participates in custom selection. */
1845
1871
  setUnavailableObjectsSelectable(enabled: boolean): void;
1846
1872
  /** Replace the final per-object selection predicate. */
@@ -2055,6 +2081,10 @@ declare class SeatManager {
2055
2081
  private seedFeed;
2056
2082
  private startFeedClock;
2057
2083
  private selectionCap;
2084
+ /** A seat the host listed in `unavailableObjects`: never chosen on this map. */
2085
+ private isHostUnavailable;
2086
+ /** What the canvas paints for a label: a listed seat the event has free reads as held. */
2087
+ private renderStatusOf;
2058
2088
  private canSelectObject;
2059
2089
  private applyInitialSelection;
2060
2090
  private trimSelectionToCap;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
2
2
  export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
3
- import { T as ThemeMode } from './channelsMode-BOkMjgGL.cjs';
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 SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerConnection, aa as SeatManagerFilteredSection, ab as SeatManagerMode, ac as SeatManagerOptions, ad as SeatManagerSelectionValidity, ae as SeatManagerTallies, af as SelectionSourceRow } from './channelsMode-BOkMjgGL.cjs';
3
+ import { T as ThemeMode } from './channelsMode-BkAe2N3o.cjs';
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 SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerConnection, aa as SeatManagerFilteredSection, ab as SeatManagerMode, ac as SeatManagerOptions, ad as SeatManagerSelectionValidity, ae as SeatManagerTallies, af as SelectionSourceRow } from './channelsMode-BkAe2N3o.cjs';
5
5
  import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
6
6
  import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
7
7
  import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
2
2
  export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
3
- import { T as ThemeMode } from './channelsMode-BOkMjgGL.js';
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 SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerConnection, aa as SeatManagerFilteredSection, ab as SeatManagerMode, ac as SeatManagerOptions, ad as SeatManagerSelectionValidity, ae as SeatManagerTallies, af as SelectionSourceRow } from './channelsMode-BOkMjgGL.js';
3
+ import { T as ThemeMode } from './channelsMode-BkAe2N3o.js';
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 SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerConnection, aa as SeatManagerFilteredSection, ab as SeatManagerMode, ac as SeatManagerOptions, ad as SeatManagerSelectionValidity, ae as SeatManagerTallies, af as SelectionSourceRow } from './channelsMode-BkAe2N3o.js';
5
5
  import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
6
6
  import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
7
7
  import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';