@seatlayer/js 0.57.0 → 0.58.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.
@@ -1182,6 +1182,15 @@ interface SeatManagerOptions {
1182
1182
  tokenExpiresAt?: number;
1183
1183
  /** Initial mode. Default 'view'. */
1184
1184
  mode?: SeatManagerMode;
1185
+ /**
1186
+ * Which tools the cockpit offers. Default: every tool the token's
1187
+ * capabilities permit. Listing a tool never grants it — capabilities still
1188
+ * gate Categories, Tables and Channels — this only HIDES tools a host has no
1189
+ * use for (a dashboard that does not consume `onSelectionChange` should not
1190
+ * show a Select tab that leads nowhere). Monitor ('view') is always kept:
1191
+ * it is the fail-closed fallback for every refused mode.
1192
+ */
1193
+ tools?: SeatManagerMode[];
1185
1194
  /** Public labels to preselect after live inventory has loaded in Select mode. */
1186
1195
  selectedObjects?: string[];
1187
1196
  /**
@@ -1695,7 +1704,31 @@ declare class SeatManager {
1695
1704
  private filterableSections;
1696
1705
  private applyFilteredSectionCanvas;
1697
1706
  private buildSectionOptions;
1707
+ /**
1708
+ * A tool is offered when the token's capability permits it AND the host has
1709
+ * not hidden it through `options.tools`. No channel-view capability ⇒ the
1710
+ * pill is not rendered at all: a hidden control is honest about authority;
1711
+ * a disabled one advertises it. Authority, not readiness — the Channels
1712
+ * pill must never wait on the lazy module. Monitor is always available; it
1713
+ * is where every refused mode lands.
1714
+ */
1715
+ private toolAvailable;
1716
+ /**
1717
+ * Re-run the availability gate against freshly-loaded facts. `options.mode`
1718
+ * and a deep link are both accepted before the chart exists, so this is where
1719
+ * a now-impossible tool is exchanged for Monitor.
1720
+ */
1721
+ private settleMode;
1722
+ /** Every table object on the chart, across floors. */
1723
+ private tables;
1698
1724
  private paintModeTabs;
1725
+ /**
1726
+ * Every rail opens the same way: what the tool is called, whether it changes
1727
+ * anything (and for whom), and one plain sentence on how to use it. An
1728
+ * operator switching tabs should never have to guess whether a click here
1729
+ * touches live inventory.
1730
+ */
1731
+ private railHeader;
1699
1732
  private paintFollowLiveButton;
1700
1733
  private paintHeatButton;
1701
1734
  private paintMomentumHelp;
@@ -1715,6 +1748,8 @@ declare class SeatManager {
1715
1748
  private renderSelectRail;
1716
1749
  private paintSelectSelection;
1717
1750
  private renderFilterSectionsRail;
1751
+ /** Seats in a chart category that the operator may act on in this mode. */
1752
+ private categorySeats;
1718
1753
  private renderCategoriesRail;
1719
1754
  private paintCategorySelection;
1720
1755
  private renderTablesRail;
@@ -1182,6 +1182,15 @@ interface SeatManagerOptions {
1182
1182
  tokenExpiresAt?: number;
1183
1183
  /** Initial mode. Default 'view'. */
1184
1184
  mode?: SeatManagerMode;
1185
+ /**
1186
+ * Which tools the cockpit offers. Default: every tool the token's
1187
+ * capabilities permit. Listing a tool never grants it — capabilities still
1188
+ * gate Categories, Tables and Channels — this only HIDES tools a host has no
1189
+ * use for (a dashboard that does not consume `onSelectionChange` should not
1190
+ * show a Select tab that leads nowhere). Monitor ('view') is always kept:
1191
+ * it is the fail-closed fallback for every refused mode.
1192
+ */
1193
+ tools?: SeatManagerMode[];
1185
1194
  /** Public labels to preselect after live inventory has loaded in Select mode. */
1186
1195
  selectedObjects?: string[];
1187
1196
  /**
@@ -1695,7 +1704,31 @@ declare class SeatManager {
1695
1704
  private filterableSections;
1696
1705
  private applyFilteredSectionCanvas;
1697
1706
  private buildSectionOptions;
1707
+ /**
1708
+ * A tool is offered when the token's capability permits it AND the host has
1709
+ * not hidden it through `options.tools`. No channel-view capability ⇒ the
1710
+ * pill is not rendered at all: a hidden control is honest about authority;
1711
+ * a disabled one advertises it. Authority, not readiness — the Channels
1712
+ * pill must never wait on the lazy module. Monitor is always available; it
1713
+ * is where every refused mode lands.
1714
+ */
1715
+ private toolAvailable;
1716
+ /**
1717
+ * Re-run the availability gate against freshly-loaded facts. `options.mode`
1718
+ * and a deep link are both accepted before the chart exists, so this is where
1719
+ * a now-impossible tool is exchanged for Monitor.
1720
+ */
1721
+ private settleMode;
1722
+ /** Every table object on the chart, across floors. */
1723
+ private tables;
1698
1724
  private paintModeTabs;
1725
+ /**
1726
+ * Every rail opens the same way: what the tool is called, whether it changes
1727
+ * anything (and for whom), and one plain sentence on how to use it. An
1728
+ * operator switching tabs should never have to guess whether a click here
1729
+ * touches live inventory.
1730
+ */
1731
+ private railHeader;
1699
1732
  private paintFollowLiveButton;
1700
1733
  private paintHeatButton;
1701
1734
  private paintMomentumHelp;
@@ -1715,6 +1748,8 @@ declare class SeatManager {
1715
1748
  private renderSelectRail;
1716
1749
  private paintSelectSelection;
1717
1750
  private renderFilterSectionsRail;
1751
+ /** Seats in a chart category that the operator may act on in this mode. */
1752
+ private categorySeats;
1718
1753
  private renderCategoriesRail;
1719
1754
  private paintCategorySelection;
1720
1755
  private renderTablesRail;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PickerSeat, PickerSelectionValidator, RendererViewMode, SeatHoverDetails, PickerSelectionValidity, PickerTransport, PickerMapTheme } from '@seatlayer/core';
2
2
  export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
3
- 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, T as InventoryBookingObject, U as InventoryBookingState, V as InventoryBookingsPage, W as InventoryBookingsQuery, X as LogEntry, Y as LogPage, Z as ManageApi, _ as ManageApiError, $ as ReportByStatus, a0 as ReportCategoryMeta, a1 as ReportCategoryRow, a2 as ReportResult, a3 as SeatManager, a4 as SeatManagerActionResult, a5 as SeatManagerActivity, a6 as SeatManagerCapability, a7 as SeatManagerConnection, a8 as SeatManagerFilteredSection, a9 as SeatManagerMode, aa as SeatManagerOptions, ab as SeatManagerSelectionValidity, ac as SeatManagerTallies, ad as SelectionSourceRow } from './channelsMode-CFxx1jp3.cjs';
3
+ 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, T as InventoryBookingObject, U as InventoryBookingState, V as InventoryBookingsPage, W as InventoryBookingsQuery, X as LogEntry, Y as LogPage, Z as ManageApi, _ as ManageApiError, $ as ReportByStatus, a0 as ReportCategoryMeta, a1 as ReportCategoryRow, a2 as ReportResult, a3 as SeatManager, a4 as SeatManagerActionResult, a5 as SeatManagerActivity, a6 as SeatManagerCapability, a7 as SeatManagerConnection, a8 as SeatManagerFilteredSection, a9 as SeatManagerMode, aa as SeatManagerOptions, ab as SeatManagerSelectionValidity, ac as SeatManagerTallies, ad as SelectionSourceRow } from './channelsMode-2z9HBOAX.cjs';
4
4
 
5
5
  /**
6
6
  * Buyer access context — the browser half of the Sales Channels contract
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PickerSeat, PickerSelectionValidator, RendererViewMode, SeatHoverDetails, PickerSelectionValidity, PickerTransport, PickerMapTheme } from '@seatlayer/core';
2
2
  export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
3
- 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, T as InventoryBookingObject, U as InventoryBookingState, V as InventoryBookingsPage, W as InventoryBookingsQuery, X as LogEntry, Y as LogPage, Z as ManageApi, _ as ManageApiError, $ as ReportByStatus, a0 as ReportCategoryMeta, a1 as ReportCategoryRow, a2 as ReportResult, a3 as SeatManager, a4 as SeatManagerActionResult, a5 as SeatManagerActivity, a6 as SeatManagerCapability, a7 as SeatManagerConnection, a8 as SeatManagerFilteredSection, a9 as SeatManagerMode, aa as SeatManagerOptions, ab as SeatManagerSelectionValidity, ac as SeatManagerTallies, ad as SelectionSourceRow } from './channelsMode-CFxx1jp3.js';
3
+ 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, T as InventoryBookingObject, U as InventoryBookingState, V as InventoryBookingsPage, W as InventoryBookingsQuery, X as LogEntry, Y as LogPage, Z as ManageApi, _ as ManageApiError, $ as ReportByStatus, a0 as ReportCategoryMeta, a1 as ReportCategoryRow, a2 as ReportResult, a3 as SeatManager, a4 as SeatManagerActionResult, a5 as SeatManagerActivity, a6 as SeatManagerCapability, a7 as SeatManagerConnection, a8 as SeatManagerFilteredSection, a9 as SeatManagerMode, aa as SeatManagerOptions, ab as SeatManagerSelectionValidity, ac as SeatManagerTallies, ad as SelectionSourceRow } from './channelsMode-2z9HBOAX.js';
4
4
 
5
5
  /**
6
6
  * Buyer access context — the browser half of the Sales Channels contract