@seatlayer/js 0.11.0 → 0.12.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/README.md CHANGED
@@ -40,6 +40,32 @@ onUnmounted(() => chart?.destroy());
40
40
 
41
41
  Svelte → `onMount` / `onDestroy`. Angular → `ngAfterViewInit` / `ngOnDestroy`.
42
42
 
43
+ ## Embed the live control room
44
+
45
+ `SeatManager` gives first-party dashboards and external platforms the same
46
+ realtime organizer cockpit. Mint a short-lived, event-scoped `mse_` token from
47
+ your backend, bound to the browser's exact origin and only the capabilities it
48
+ needs. The shared surface owns Monitor, Inspect, Block/unblock, fullscreen,
49
+ presence, exact section revenue, sales velocity, and its heat overlay.
50
+
51
+ ```js
52
+ import { SeatManager } from '@seatlayer/js';
53
+
54
+ const manager = new SeatManager({
55
+ container: '#control-room',
56
+ apiBase: 'https://api.seatlayer.io',
57
+ eventKey: 'ev_9f3a',
58
+ token: session.token,
59
+ tokenExpiresAt: session.expiresAt,
60
+ onTokenRefresh: () => mintManageSession(),
61
+ });
62
+ await manager.render();
63
+ ```
64
+
65
+ Switching tools and rotating tokens happen in place: the renderer, camera,
66
+ selection, WebSocket, and DOM are not remounted. Give the container a height;
67
+ the cockpit responds to its container rather than the browser viewport.
68
+
43
69
  ## Embed the chart Designer
44
70
 
45
71
  For organizer-facing venue design, use `EmbeddedDesigner`. Your backend mints the