@seatlayer/vue 0.105.1 → 0.106.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/README.md +70 -1
- package/dist/manager.cjs +351 -0
- package/dist/manager.cjs.map +1 -0
- package/dist/manager.d.cts +822 -0
- package/dist/manager.d.ts +822 -0
- package/dist/manager.js +333 -0
- package/dist/manager.js.map +1 -0
- package/package.json +21 -3
package/dist/manager.js
ADDED
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
// src/SeatManager.ts
|
|
2
|
+
import {
|
|
3
|
+
defineComponent,
|
|
4
|
+
h,
|
|
5
|
+
onBeforeUnmount,
|
|
6
|
+
ref,
|
|
7
|
+
shallowRef,
|
|
8
|
+
watch
|
|
9
|
+
} from "vue";
|
|
10
|
+
import {
|
|
11
|
+
SeatManager as CoreSeatManager
|
|
12
|
+
} from "@seatlayer/js/manager";
|
|
13
|
+
var seatManagerProps = {
|
|
14
|
+
/** Event to manage. Changing it rebuilds the board. */
|
|
15
|
+
eventKey: { type: String, required: true },
|
|
16
|
+
/** API base URL. Changing it rebuilds the board. */
|
|
17
|
+
apiBase: { type: String, default: void 0 },
|
|
18
|
+
/** Short-lived, event-scoped `mse_` grant from your backend. Live. */
|
|
19
|
+
token: { type: String, required: true },
|
|
20
|
+
/** When `token` expires, epoch ms. Live. */
|
|
21
|
+
tokenExpiresAt: { type: Number, default: void 0 },
|
|
22
|
+
/** Mint a fresh grant before the current one expires. Live. */
|
|
23
|
+
onTokenRefresh: { type: Function, default: void 0 },
|
|
24
|
+
/** The tool the board shows. Live. */
|
|
25
|
+
mode: { type: String, default: void 0 },
|
|
26
|
+
/** Which tools the board offers. Read once. */
|
|
27
|
+
tools: { type: Array, default: void 0 },
|
|
28
|
+
/** `minimal` shows just the map. Read once. */
|
|
29
|
+
chrome: { type: String, default: void 0 },
|
|
30
|
+
/** What the token may do. Live. */
|
|
31
|
+
capabilities: { type: Array, default: void 0 },
|
|
32
|
+
/** Fallback currency for money. Live. */
|
|
33
|
+
currency: { type: String, default: void 0 },
|
|
34
|
+
/** Colour overrides. Live. */
|
|
35
|
+
theme: { type: Object, default: void 0 },
|
|
36
|
+
/** `light`, `dark` or `auto`. Applied before first paint, then live. */
|
|
37
|
+
themeMode: { type: String, default: void 0 },
|
|
38
|
+
/** Keep the realtime link open while the tab is hidden. Live. */
|
|
39
|
+
keepLiveWhileHidden: { type: Boolean, default: void 0 },
|
|
40
|
+
/** Follow new bookings on the map. Live. */
|
|
41
|
+
followLive: { type: Boolean, default: void 0 },
|
|
42
|
+
/** Seats selected once the board loads. Read once. */
|
|
43
|
+
selectedObjects: { type: Array, default: void 0 },
|
|
44
|
+
/** Seats the operator may select. Live. */
|
|
45
|
+
selectableObjects: { type: Array, default: void 0 },
|
|
46
|
+
/** Whether unavailable seats can be selected. Live. */
|
|
47
|
+
unavailableObjectsSelectable: { type: Boolean, default: void 0 },
|
|
48
|
+
/** Seats shown as unavailable. Live. */
|
|
49
|
+
unavailableObjects: { type: Array, default: void 0 },
|
|
50
|
+
/** The hover word for `unavailableObjects`. Live. */
|
|
51
|
+
unavailableObjectsReason: { type: String, default: void 0 },
|
|
52
|
+
/** Prices the map's hover shows: a map overrides, null hides. Live. */
|
|
53
|
+
categoryPrices: {
|
|
54
|
+
type: Object,
|
|
55
|
+
default: void 0
|
|
56
|
+
},
|
|
57
|
+
/** Cap on the selection. Live. */
|
|
58
|
+
maxSelectedObjects: { type: Number, default: void 0 },
|
|
59
|
+
/** Exact count a valid selection needs. Live. */
|
|
60
|
+
numberOfPlacesToSelect: { type: Number, default: void 0 },
|
|
61
|
+
/** Per-seat selectability rule. Live. */
|
|
62
|
+
isObjectSelectable: { type: Function, default: void 0 },
|
|
63
|
+
/** False when your own header shows the numbers. Read once. */
|
|
64
|
+
kpis: { type: Boolean, default: void 0 },
|
|
65
|
+
/** The event's clock for every time the room shows. Read once. */
|
|
66
|
+
timeZone: { type: String, default: void 0 },
|
|
67
|
+
/** Shown in "Ask an admin of …". Read once. */
|
|
68
|
+
organizationName: { type: String, default: void 0 },
|
|
69
|
+
/** What you know about the sale. Live, compared by value. */
|
|
70
|
+
sale: { type: Object, default: void 0 },
|
|
71
|
+
/** Room your own overlays take over the map, in px. Live, compared by value. */
|
|
72
|
+
mapInsets: { type: Object, default: void 0 },
|
|
73
|
+
/** What the map's colours mean when the room opens. Read once. */
|
|
74
|
+
colourBy: { type: String, default: void 0 },
|
|
75
|
+
/** Open on this section. Read once. */
|
|
76
|
+
focusSection: { type: String, default: void 0 },
|
|
77
|
+
/** Open on this seat. Read once. */
|
|
78
|
+
focusSeat: { type: String, default: void 0 },
|
|
79
|
+
/** Open on these seats (an order's seats). Read once. */
|
|
80
|
+
focusSeats: { type: Array, default: void 0 },
|
|
81
|
+
/** Open on this category. Read once. */
|
|
82
|
+
focusCategory: { type: String, default: void 0 },
|
|
83
|
+
/** Where the operator came from, for the way back. Read once. */
|
|
84
|
+
arrivedFrom: { type: Object, default: void 0 },
|
|
85
|
+
/** Open one of your orders. Only when given does the room offer "Open order". */
|
|
86
|
+
onOpenOrder: { type: Function, default: void 0 },
|
|
87
|
+
/** Open your trend view for a number. Only when given does the room link to it. */
|
|
88
|
+
onOpenTrend: { type: Function, default: void 0 },
|
|
89
|
+
onOpenDesigner: { type: Function, default: void 0 }
|
|
90
|
+
};
|
|
91
|
+
var SeatManager = defineComponent({
|
|
92
|
+
name: "SeatLayerSeatManager",
|
|
93
|
+
props: seatManagerProps,
|
|
94
|
+
emits: {
|
|
95
|
+
/** The board has loaded. */
|
|
96
|
+
ready: () => true,
|
|
97
|
+
/** Live numbers changed. */
|
|
98
|
+
tallies: (_tallies) => true,
|
|
99
|
+
/** Something happened on the event. */
|
|
100
|
+
activity: (_activity) => true,
|
|
101
|
+
/** A fresh control room snapshot. */
|
|
102
|
+
"control-room": (_snapshot) => true,
|
|
103
|
+
/** The operator switched tools. */
|
|
104
|
+
"mode-change": (_mode) => true,
|
|
105
|
+
/** Follow-live was switched on or off. */
|
|
106
|
+
"follow-live-change": (_enabled) => true,
|
|
107
|
+
/** The selection changed. */
|
|
108
|
+
"selection-change": (_seats) => true,
|
|
109
|
+
/** One seat was selected. */
|
|
110
|
+
"object-selected": (_object) => true,
|
|
111
|
+
/** One seat was deselected. */
|
|
112
|
+
"object-deselected": (_object) => true,
|
|
113
|
+
/** Exact-count state changed. */
|
|
114
|
+
"selection-validity-change": (_state) => true,
|
|
115
|
+
/** The selection became valid. */
|
|
116
|
+
"selection-valid": (_state) => true,
|
|
117
|
+
/** The selection became invalid. */
|
|
118
|
+
"selection-invalid": (_state) => true,
|
|
119
|
+
/** The selection cap was reached. */
|
|
120
|
+
"selection-limit": (_max) => true,
|
|
121
|
+
/** The filtered sections changed. */
|
|
122
|
+
"filtered-section-change": (_sections) => true,
|
|
123
|
+
/** A general-admission area was clicked. */
|
|
124
|
+
"area-click": (_area) => true,
|
|
125
|
+
/** A block, unblock or other action finished. */
|
|
126
|
+
"action-complete": (_result) => true,
|
|
127
|
+
/** The realtime link changed state. */
|
|
128
|
+
"connection-change": (_state) => true,
|
|
129
|
+
/** The room changed state: connecting, live, paused, offline or ended. */
|
|
130
|
+
"room-state-change": (_state) => true,
|
|
131
|
+
/** Something failed. */
|
|
132
|
+
error: (_error) => true
|
|
133
|
+
},
|
|
134
|
+
setup(props, { emit, expose }) {
|
|
135
|
+
const container = ref(null);
|
|
136
|
+
const manager = shallowRef(null);
|
|
137
|
+
const destroy = () => {
|
|
138
|
+
manager.value?.destroy();
|
|
139
|
+
manager.value = null;
|
|
140
|
+
};
|
|
141
|
+
const tokenRefresh = () => props.onTokenRefresh ? async () => props.onTokenRefresh() : void 0;
|
|
142
|
+
const build = () => {
|
|
143
|
+
const element = container.value;
|
|
144
|
+
if (!element) return;
|
|
145
|
+
destroy();
|
|
146
|
+
const onReady = () => emit("ready");
|
|
147
|
+
const onTallies = (tallies) => emit("tallies", tallies);
|
|
148
|
+
const onActivity = (activity) => emit("activity", activity);
|
|
149
|
+
const onControlRoom = (snapshot) => emit("control-room", snapshot);
|
|
150
|
+
const onModeChange = (nextMode) => emit("mode-change", nextMode);
|
|
151
|
+
const onFollowLiveChange = (enabled) => emit("follow-live-change", enabled);
|
|
152
|
+
const onSelectionChange = (seats) => emit("selection-change", seats);
|
|
153
|
+
const onObjectSelected = (object) => emit("object-selected", object);
|
|
154
|
+
const onObjectDeselected = (object) => emit("object-deselected", object);
|
|
155
|
+
const onSelectionValidityChange = (state) => emit("selection-validity-change", state);
|
|
156
|
+
const onSelectionValid = (state) => emit("selection-valid", state);
|
|
157
|
+
const onSelectionInvalid = (state) => emit("selection-invalid", state);
|
|
158
|
+
const onSelectionLimit = (max) => emit("selection-limit", max);
|
|
159
|
+
const onFilteredSectionChange = (sections) => emit("filtered-section-change", sections);
|
|
160
|
+
const onAreaClick = (area) => emit("area-click", area);
|
|
161
|
+
const onActionComplete = (result) => emit("action-complete", result);
|
|
162
|
+
const onConnectionChange = (state) => emit("connection-change", state);
|
|
163
|
+
const onRoomStateChange = (state) => emit("room-state-change", state);
|
|
164
|
+
const onError = (error) => emit("error", error);
|
|
165
|
+
const instance = new CoreSeatManager({
|
|
166
|
+
container: element,
|
|
167
|
+
apiBase: props.apiBase,
|
|
168
|
+
eventKey: props.eventKey,
|
|
169
|
+
token: props.token,
|
|
170
|
+
tokenExpiresAt: props.tokenExpiresAt,
|
|
171
|
+
mode: props.mode,
|
|
172
|
+
currency: props.currency,
|
|
173
|
+
keepLiveWhileHidden: props.keepLiveWhileHidden,
|
|
174
|
+
followLive: props.followLive,
|
|
175
|
+
capabilities: props.capabilities,
|
|
176
|
+
selectedObjects: props.selectedObjects,
|
|
177
|
+
selectableObjects: props.selectableObjects,
|
|
178
|
+
unavailableObjectsSelectable: props.unavailableObjectsSelectable,
|
|
179
|
+
unavailableObjects: props.unavailableObjects,
|
|
180
|
+
unavailableObjectsReason: props.unavailableObjectsReason,
|
|
181
|
+
categoryPrices: props.categoryPrices,
|
|
182
|
+
maxSelectedObjects: props.maxSelectedObjects,
|
|
183
|
+
numberOfPlacesToSelect: props.numberOfPlacesToSelect,
|
|
184
|
+
isObjectSelectable: props.isObjectSelectable,
|
|
185
|
+
tools: props.tools,
|
|
186
|
+
chrome: props.chrome,
|
|
187
|
+
kpis: props.kpis,
|
|
188
|
+
timeZone: props.timeZone,
|
|
189
|
+
organizationName: props.organizationName,
|
|
190
|
+
sale: props.sale,
|
|
191
|
+
mapInsets: props.mapInsets,
|
|
192
|
+
theme: props.theme,
|
|
193
|
+
// Applied before first paint, so a board asked for light never
|
|
194
|
+
// flashes dark on the way in.
|
|
195
|
+
themeMode: props.themeMode,
|
|
196
|
+
colourBy: props.colourBy,
|
|
197
|
+
focusSection: props.focusSection,
|
|
198
|
+
focusSeat: props.focusSeat,
|
|
199
|
+
focusSeats: props.focusSeats,
|
|
200
|
+
focusCategory: props.focusCategory,
|
|
201
|
+
arrivedFrom: props.arrivedFrom,
|
|
202
|
+
// Only a host that has a trend view / an orders page gets the link.
|
|
203
|
+
// Left unset otherwise, so the room never offers a dead one.
|
|
204
|
+
onOpenTrend: props.onOpenTrend ? (focus) => props.onOpenTrend?.(focus) : void 0,
|
|
205
|
+
onOpenDesigner: props.onOpenDesigner ? () => props.onOpenDesigner?.() : void 0,
|
|
206
|
+
onOpenOrder: props.onOpenOrder ? (order) => props.onOpenOrder?.(order) : void 0,
|
|
207
|
+
onTokenRefresh: tokenRefresh(),
|
|
208
|
+
onReady,
|
|
209
|
+
onTallies,
|
|
210
|
+
onActivity,
|
|
211
|
+
onControlRoom,
|
|
212
|
+
onModeChange,
|
|
213
|
+
onFollowLiveChange,
|
|
214
|
+
onSelectionChange,
|
|
215
|
+
onObjectSelected,
|
|
216
|
+
onObjectDeselected,
|
|
217
|
+
onSelectionValidityChange,
|
|
218
|
+
onSelectionValid,
|
|
219
|
+
onSelectionInvalid,
|
|
220
|
+
onSelectionLimit,
|
|
221
|
+
onFilteredSectionChange,
|
|
222
|
+
onAreaClick,
|
|
223
|
+
onActionComplete,
|
|
224
|
+
onConnectionChange,
|
|
225
|
+
onRoomStateChange,
|
|
226
|
+
onError
|
|
227
|
+
});
|
|
228
|
+
manager.value = instance;
|
|
229
|
+
void instance.render();
|
|
230
|
+
};
|
|
231
|
+
watch(() => [container.value, props.apiBase, props.eventKey], build, {
|
|
232
|
+
immediate: true,
|
|
233
|
+
flush: "post"
|
|
234
|
+
});
|
|
235
|
+
const live = { flush: "post" };
|
|
236
|
+
watch([() => props.token, () => props.tokenExpiresAt], ([token, expiresAt]) => {
|
|
237
|
+
manager.value?.setToken(token, expiresAt);
|
|
238
|
+
}, live);
|
|
239
|
+
watch(() => props.capabilities, (capabilities) => manager.value?.setCapabilities(capabilities), live);
|
|
240
|
+
watch(() => props.currency, (currency) => manager.value?.setCurrency(currency), live);
|
|
241
|
+
watch(() => props.theme, (theme) => manager.value?.setTheme(theme), live);
|
|
242
|
+
watch(
|
|
243
|
+
[() => props.sale?.status, () => props.sale?.tone, () => props.sale?.openedAt, () => props.sale?.pageUrl],
|
|
244
|
+
() => manager.value?.setSale(props.sale),
|
|
245
|
+
live
|
|
246
|
+
);
|
|
247
|
+
watch(
|
|
248
|
+
[() => props.mapInsets?.top, () => props.mapInsets?.right, () => props.mapInsets?.bottom, () => props.mapInsets?.left],
|
|
249
|
+
() => manager.value?.setMapInsets(props.mapInsets ?? null),
|
|
250
|
+
live
|
|
251
|
+
);
|
|
252
|
+
watch(() => props.themeMode, (themeMode) => manager.value?.setThemeMode(themeMode), live);
|
|
253
|
+
watch(() => props.keepLiveWhileHidden, (keep) => manager.value?.setKeepLiveWhileHidden(keep), live);
|
|
254
|
+
watch(() => !!props.onTokenRefresh, () => manager.value?.setTokenRefresh(tokenRefresh()), live);
|
|
255
|
+
watch(() => props.mode, (mode) => {
|
|
256
|
+
if (mode) manager.value?.setMode(mode);
|
|
257
|
+
}, live);
|
|
258
|
+
watch(() => props.followLive, (followLive) => {
|
|
259
|
+
if (followLive != null) manager.value?.setFollowLive(followLive);
|
|
260
|
+
}, live);
|
|
261
|
+
watch(() => props.selectableObjects, (labels) => manager.value?.setSelectableObjects(labels ?? []), live);
|
|
262
|
+
watch(
|
|
263
|
+
() => props.unavailableObjectsSelectable,
|
|
264
|
+
(enabled) => manager.value?.setUnavailableObjectsSelectable(enabled ?? true),
|
|
265
|
+
live
|
|
266
|
+
);
|
|
267
|
+
watch(
|
|
268
|
+
[() => props.unavailableObjects, () => props.unavailableObjectsReason],
|
|
269
|
+
([labels, reason]) => manager.value?.setUnavailableObjects(labels ?? [], reason),
|
|
270
|
+
live
|
|
271
|
+
);
|
|
272
|
+
watch(() => props.categoryPrices, (prices) => manager.value?.setCategoryPrices(prices), live);
|
|
273
|
+
watch(() => props.maxSelectedObjects, (max) => manager.value?.setMaxSelectedObjects(max), live);
|
|
274
|
+
watch(
|
|
275
|
+
() => props.numberOfPlacesToSelect,
|
|
276
|
+
(required) => manager.value?.setNumberOfPlacesToSelect(required),
|
|
277
|
+
live
|
|
278
|
+
);
|
|
279
|
+
watch(() => props.isObjectSelectable, (predicate) => manager.value?.setObjectSelectable(predicate), live);
|
|
280
|
+
onBeforeUnmount(destroy);
|
|
281
|
+
const m = () => manager.value;
|
|
282
|
+
const exposed = {
|
|
283
|
+
setMode: (nextMode) => m()?.setMode(nextMode),
|
|
284
|
+
setToken: (nextToken, expiresAt) => m()?.setToken(nextToken, expiresAt),
|
|
285
|
+
setHeatOverlay: (enabled) => m()?.setHeatOverlay(enabled),
|
|
286
|
+
setFollowLive: (enabled) => m()?.setFollowLive(enabled),
|
|
287
|
+
setTrendWindow: (windowMinutes) => m()?.setTrendWindow(windowMinutes) ?? Promise.reject(new Error("not ready")),
|
|
288
|
+
enterFullscreen: () => m()?.enterFullscreen() ?? Promise.resolve(),
|
|
289
|
+
exitFullscreen: () => m()?.exitFullscreen() ?? Promise.resolve(),
|
|
290
|
+
isFullscreen: () => m()?.isFullscreen() ?? false,
|
|
291
|
+
block: (labels, opts) => m()?.block(labels, opts) ?? Promise.resolve(),
|
|
292
|
+
unblock: (labels) => m()?.unblock(labels) ?? Promise.resolve(),
|
|
293
|
+
unblockAll: () => m()?.unblockAll() ?? Promise.resolve(),
|
|
294
|
+
cancelBooking: (labels, bookingRef) => m()?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),
|
|
295
|
+
setCategory: (categoryKey, labels) => m()?.setCategory(categoryKey, labels) ?? Promise.resolve(),
|
|
296
|
+
setTableBooking: (tableIds, nextMode, bounds) => m()?.setTableBooking(tableIds, nextMode, bounds) ?? Promise.resolve(),
|
|
297
|
+
selectAll: () => m()?.selectAll() ?? [],
|
|
298
|
+
selectSection: (id) => m()?.selectSection(id) ?? [],
|
|
299
|
+
selectByLabels: (labels) => m()?.selectByLabels(labels) ?? [],
|
|
300
|
+
selectObjects: (labels) => m()?.selectObjects(labels) ?? [],
|
|
301
|
+
deselectObjects: (labels) => m()?.deselectObjects(labels) ?? [],
|
|
302
|
+
selectCategories: (keys) => m()?.selectCategories(keys) ?? [],
|
|
303
|
+
deselectCategories: (keys) => m()?.deselectCategories(keys) ?? [],
|
|
304
|
+
setSelectableObjects: (labels) => m()?.setSelectableObjects(labels),
|
|
305
|
+
setUnavailableObjectsSelectable: (enabled) => m()?.setUnavailableObjectsSelectable(enabled),
|
|
306
|
+
setUnavailableObjects: (labels, reason) => m()?.setUnavailableObjects(labels, reason),
|
|
307
|
+
setCategoryPrices: (prices) => m()?.setCategoryPrices(prices),
|
|
308
|
+
setObjectSelectable: (predicate) => m()?.setObjectSelectable(predicate),
|
|
309
|
+
setMaxSelectedObjects: (max) => m()?.setMaxSelectedObjects(max),
|
|
310
|
+
setNumberOfPlacesToSelect: (required) => m()?.setNumberOfPlacesToSelect(required),
|
|
311
|
+
getSelectionValidity: () => m()?.getSelectionValidity() ?? null,
|
|
312
|
+
setFilteredSection: (label) => m()?.setFilteredSection(label) ?? [],
|
|
313
|
+
clearFilteredSection: () => m()?.clearFilteredSection(),
|
|
314
|
+
focusSection: (label) => m()?.focusSection(label) ?? [],
|
|
315
|
+
getFilteredSections: () => m()?.getFilteredSections() ?? [],
|
|
316
|
+
clearSelection: () => m()?.clearSelection(),
|
|
317
|
+
getSelection: () => m()?.getSelection() ?? [],
|
|
318
|
+
getReport: () => m()?.getReport() ?? Promise.reject(new Error("not ready")),
|
|
319
|
+
getControlRoomSnapshot: (windowMinutes) => m()?.getControlRoomSnapshot(windowMinutes) ?? Promise.reject(new Error("not ready")),
|
|
320
|
+
getLog: (opts) => m()?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),
|
|
321
|
+
getConnection: () => m()?.getConnection() ?? null,
|
|
322
|
+
setHoldTtl: (ms) => m()?.setHoldTtl(ms) ?? Promise.resolve(),
|
|
323
|
+
zoomToFit: () => m()?.zoomToFit(),
|
|
324
|
+
showObjects: (labels, name) => m()?.showObjects(labels, name)
|
|
325
|
+
};
|
|
326
|
+
expose(exposed);
|
|
327
|
+
return () => h("div", { ref: container });
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
export {
|
|
331
|
+
SeatManager
|
|
332
|
+
};
|
|
333
|
+
//# sourceMappingURL=manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/SeatManager.ts"],"sourcesContent":["import {\n defineComponent,\n h,\n onBeforeUnmount,\n ref,\n shallowRef,\n watch,\n type ExtractPublicPropTypes,\n type PropType,\n type Ref,\n} from 'vue';\nimport {\n SeatManager as CoreSeatManager,\n type SeatManagerOptions,\n type SeatManagerMode,\n type EventScopedManageToken,\n type SeatManagerTallies,\n type SeatManagerActivity,\n type SeatManagerActionResult,\n type SeatManagerArea,\n type SeatManagerConnection,\n type SeatManagerRoomState,\n type SeatManagerFilteredSection,\n type SeatManagerSelectionValidity,\n type SeatManagerCategoryPrice,\n type EventTableBookingMode,\n type ReportResult,\n type ControlRoomSnapshot,\n type LogEntry,\n type ExpandedSeat,\n// `@seatlayer/js/manager`, NOT the bare `@seatlayer/js` barrel. The barrel is the\n// buyer SDK and also exports the cockpit, so importing the cockpit through it\n// would pull SeatPicker, SeatingChart and the buyer engine into every bundle\n// that renders a control room. One bare import anywhere in this graph undoes the\n// split, and it looks like nothing at all in a diff.\n} from '@seatlayer/js/manager';\n\n/**\n * What `ref=\"manager\"` gives you — call these to drive the control room.\n *\n * The same methods as `SeatManagerHandle` in `@seatlayer/react`, so the two\n * wrappers read the same in docs and in code.\n */\nexport interface SeatManagerExposed {\n setMode(mode: SeatManagerMode): void;\n setToken(token: EventScopedManageToken, expiresAt?: number): void;\n setHeatOverlay(enabled: boolean): void;\n setFollowLive(enabled: boolean): void;\n setTrendWindow(windowMinutes: number): Promise<ControlRoomSnapshot>;\n enterFullscreen(): Promise<void>;\n exitFullscreen(): Promise<void>;\n isFullscreen(): boolean;\n block(labels?: string[], opts?: { releaseAt?: number; reason?: string }): Promise<void>;\n unblock(labels?: string[]): Promise<void>;\n unblockAll(): Promise<void>;\n cancelBooking(labels: string[], bookingRef: string): Promise<void>;\n setCategory(categoryKey: string, labels?: string[]): Promise<void>;\n setTableBooking(\n tableIds: string[],\n mode: EventTableBookingMode,\n bounds?: { minOccupancy?: number; maxOccupancy?: number },\n ): Promise<void>;\n selectAll(): ExpandedSeat[];\n selectSection(sectionId: string): ExpandedSeat[];\n selectByLabels(labels: string[]): ExpandedSeat[];\n selectObjects(labels: string[]): ExpandedSeat[];\n deselectObjects(labels: string[]): ExpandedSeat[];\n selectCategories(keys: string[]): ExpandedSeat[];\n deselectCategories(keys: string[]): ExpandedSeat[];\n setSelectableObjects(labels: string[]): void;\n setUnavailableObjectsSelectable(enabled: boolean): void;\n /** Replace the labels shown as unavailable (and their hover word) without remounting. */\n setUnavailableObjects(labels: readonly string[], reason?: string): void;\n /** Replace the prices the map's hover shows: a map overrides, null hides, undefined uses the chart's. */\n setCategoryPrices(prices: Record<string, SeatManagerCategoryPrice> | null | undefined): void;\n setObjectSelectable(predicate: SeatManagerOptions['isObjectSelectable']): void;\n setMaxSelectedObjects(max: number | undefined): void;\n setNumberOfPlacesToSelect(required: number | undefined): void;\n getSelectionValidity(): SeatManagerSelectionValidity | null;\n setFilteredSection(label: string): SeatManagerFilteredSection[];\n clearFilteredSection(): void;\n /** Frame matching sections in any mode, without filtering or touching the selection. */\n focusSection(label: string): SeatManagerFilteredSection[];\n getFilteredSections(): SeatManagerFilteredSection[];\n clearSelection(): void;\n getSelection(): ExpandedSeat[];\n getReport(): Promise<ReportResult>;\n getControlRoomSnapshot(windowMinutes?: number): Promise<ControlRoomSnapshot>;\n getLog(opts?: { limit?: number; before?: number }): Promise<{ entries: LogEntry[]; nextBefore: number | null }>;\n setHoldTtl(ms: number | null): Promise<void>;\n /**\n * Realtime link state plus the \"as of\" behind the numbers on screen. Null\n * only before the manager has mounted. Pair with `@connection-change`: the\n * event gives the edges, this gives the answer on demand.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n /** Light these seats and frame them, named in the legend; null clears. */\n showObjects(labels: readonly string[] | null, name?: string): void;\n}\n\n/** The same handle under React's name, for code shared between the two. */\nexport type SeatManagerHandle = SeatManagerExposed;\n\ntype Opt<K extends keyof SeatManagerOptions> = SeatManagerOptions[K];\n\nconst seatManagerProps = {\n /** Event to manage. Changing it rebuilds the board. */\n eventKey: { type: String, required: true },\n /** API base URL. Changing it rebuilds the board. */\n apiBase: { type: String, default: undefined },\n /** Short-lived, event-scoped `mse_` grant from your backend. Live. */\n token: { type: String as PropType<EventScopedManageToken>, required: true },\n /** When `token` expires, epoch ms. Live. */\n tokenExpiresAt: { type: Number, default: undefined },\n /** Mint a fresh grant before the current one expires. Live. */\n onTokenRefresh: { type: Function as PropType<Opt<'onTokenRefresh'>>, default: undefined },\n /** The tool the board shows. Live. */\n mode: { type: String as PropType<SeatManagerMode>, default: undefined },\n /** Which tools the board offers. Read once. */\n tools: { type: Array as PropType<SeatManagerMode[]>, default: undefined },\n /** `minimal` shows just the map. Read once. */\n chrome: { type: String as PropType<Opt<'chrome'>>, default: undefined },\n /** What the token may do. Live. */\n capabilities: { type: Array as PropType<Opt<'capabilities'>>, default: undefined },\n /** Fallback currency for money. Live. */\n currency: { type: String, default: undefined },\n /** Colour overrides. Live. */\n theme: { type: Object as PropType<Opt<'theme'>>, default: undefined },\n /** `light`, `dark` or `auto`. Applied before first paint, then live. */\n themeMode: { type: String as PropType<Opt<'themeMode'>>, default: undefined },\n /** Keep the realtime link open while the tab is hidden. Live. */\n keepLiveWhileHidden: { type: Boolean, default: undefined },\n /** Follow new bookings on the map. Live. */\n followLive: { type: Boolean, default: undefined },\n /** Seats selected once the board loads. Read once. */\n selectedObjects: { type: Array as PropType<string[]>, default: undefined },\n /** Seats the operator may select. Live. */\n selectableObjects: { type: Array as PropType<string[]>, default: undefined },\n /** Whether unavailable seats can be selected. Live. */\n unavailableObjectsSelectable: { type: Boolean, default: undefined },\n /** Seats shown as unavailable. Live. */\n unavailableObjects: { type: Array as PropType<readonly string[]>, default: undefined },\n /** The hover word for `unavailableObjects`. Live. */\n unavailableObjectsReason: { type: String, default: undefined },\n /** Prices the map's hover shows: a map overrides, null hides. Live. */\n categoryPrices: {\n type: Object as PropType<Record<string, SeatManagerCategoryPrice> | null>,\n default: undefined,\n },\n /** Cap on the selection. Live. */\n maxSelectedObjects: { type: Number, default: undefined },\n /** Exact count a valid selection needs. Live. */\n numberOfPlacesToSelect: { type: Number, default: undefined },\n /** Per-seat selectability rule. Live. */\n isObjectSelectable: { type: Function as PropType<Opt<'isObjectSelectable'>>, default: undefined },\n /** False when your own header shows the numbers. Read once. */\n kpis: { type: Boolean, default: undefined },\n /** The event's clock for every time the room shows. Read once. */\n timeZone: { type: String, default: undefined },\n /** Shown in \"Ask an admin of …\". Read once. */\n organizationName: { type: String, default: undefined },\n /** What you know about the sale. Live, compared by value. */\n sale: { type: Object as PropType<Opt<'sale'>>, default: undefined },\n /** Room your own overlays take over the map, in px. Live, compared by value. */\n mapInsets: { type: Object as PropType<Opt<'mapInsets'>>, default: undefined },\n /** What the map's colours mean when the room opens. Read once. */\n colourBy: { type: String as PropType<Opt<'colourBy'>>, default: undefined },\n /** Open on this section. Read once. */\n focusSection: { type: String, default: undefined },\n /** Open on this seat. Read once. */\n focusSeat: { type: String, default: undefined },\n /** Open on these seats (an order's seats). Read once. */\n focusSeats: { type: Array as PropType<string[]>, default: undefined },\n /** Open on this category. Read once. */\n focusCategory: { type: String, default: undefined },\n /** Where the operator came from, for the way back. Read once. */\n arrivedFrom: { type: Object as PropType<Opt<'arrivedFrom'>>, default: undefined },\n /** Open one of your orders. Only when given does the room offer \"Open order\". */\n onOpenOrder: { type: Function as PropType<Opt<'onOpenOrder'>>, default: undefined },\n /** Open your trend view for a number. Only when given does the room link to it. */\n onOpenTrend: { type: Function as PropType<Opt<'onOpenTrend'>>, default: undefined },\n onOpenDesigner: { type: Function as PropType<Opt<'onOpenDesigner'>>, default: undefined },\n} as const;\n\n/**\n * The props `SeatManager` takes: every `SeatManagerOptions` field except\n * `container` and the callbacks that are Vue events.\n */\nexport type SeatManagerProps = ExtractPublicPropTypes<typeof seatManagerProps>;\n\n/**\n * Vue 3 wrapper around the organizer control room from `@seatlayer/js/manager`.\n *\n * Give the component a size (it fills its box) and the manager lays out the\n * live map, the numbers and the rails inside it. It is rebuilt only when\n * `eventKey` or `apiBase` changes. Token, capabilities, theme, currency, sale\n * facts, map insets, selection rules and liveness are updated in place, so a\n * parent re-render never tears down a live board. The same props are live as\n * in `@seatlayer/react`; every other option is read once when the board is built.\n *\n * Callbacks that only report something are Vue events (`@room-state-change`).\n * Three are props, because the room needs to know whether you passed one or\n * needs a value back: `onTokenRefresh` returns the new token, and the room only\n * offers \"Open order\" and the trend link when `onOpenOrder` / `onOpenTrend` are\n * given. Vue routes `@open-order=\"fn\"` to the `onOpenOrder` prop, so both\n * spellings work.\n *\n * @example\n * ```vue\n * <script setup lang=\"ts\">\n * import { ref } from 'vue';\n * import { SeatManager, type SeatManagerExposed } from '@seatlayer/vue/manager';\n *\n * const manager = ref<SeatManagerExposed | null>(null);\n * </script>\n *\n * <template>\n * <SeatManager\n * ref=\"manager\"\n * event-key=\"ev_9f3a\"\n * :token=\"session.token\"\n * :token-expires-at=\"session.expiresAt\"\n * :on-token-refresh=\"mintManageSession\"\n * style=\"width: 100%; height: calc(100vh - 96px)\"\n * @room-state-change=\"onRoomState\"\n * />\n * </template>\n * ```\n */\nexport const SeatManager = defineComponent({\n name: 'SeatLayerSeatManager',\n\n props: seatManagerProps,\n\n emits: {\n /** The board has loaded. */\n ready: () => true,\n /** Live numbers changed. */\n tallies: (_tallies: SeatManagerTallies) => true,\n /** Something happened on the event. */\n activity: (_activity: SeatManagerActivity) => true,\n /** A fresh control room snapshot. */\n 'control-room': (_snapshot: ControlRoomSnapshot) => true,\n /** The operator switched tools. */\n 'mode-change': (_mode: SeatManagerMode) => true,\n /** Follow-live was switched on or off. */\n 'follow-live-change': (_enabled: boolean) => true,\n /** The selection changed. */\n 'selection-change': (_seats: ExpandedSeat[]) => true,\n /** One seat was selected. */\n 'object-selected': (_object: ExpandedSeat) => true,\n /** One seat was deselected. */\n 'object-deselected': (_object: ExpandedSeat) => true,\n /** Exact-count state changed. */\n 'selection-validity-change': (_state: SeatManagerSelectionValidity) => true,\n /** The selection became valid. */\n 'selection-valid': (_state: SeatManagerSelectionValidity) => true,\n /** The selection became invalid. */\n 'selection-invalid': (_state: SeatManagerSelectionValidity) => true,\n /** The selection cap was reached. */\n 'selection-limit': (_max: number) => true,\n /** The filtered sections changed. */\n 'filtered-section-change': (_sections: SeatManagerFilteredSection[]) => true,\n /** A general-admission area was clicked. */\n 'area-click': (_area: SeatManagerArea) => true,\n /** A block, unblock or other action finished. */\n 'action-complete': (_result: SeatManagerActionResult) => true,\n /** The realtime link changed state. */\n 'connection-change': (_state: SeatManagerConnection) => true,\n /** The room changed state: connecting, live, paused, offline or ended. */\n 'room-state-change': (_state: SeatManagerRoomState) => true,\n /** Something failed. */\n error: (_error: unknown) => true,\n },\n\n setup(props, { emit, expose }) {\n const container: Ref<HTMLDivElement | null> = ref(null);\n // shallowRef: the manager owns a canvas and a large scene graph; a deep\n // reactive proxy would have Vue walk all of it on every touch.\n const manager = shallowRef<CoreSeatManager | null>(null);\n\n const destroy = () => {\n manager.value?.destroy();\n manager.value = null;\n };\n\n // The three function props are read through `props` at call time, so a host\n // that swaps its handler never has to rebuild the board.\n const tokenRefresh = (): Opt<'onTokenRefresh'> =>\n props.onTokenRefresh ? async () => props.onTokenRefresh!() : undefined;\n\n const build = () => {\n const element = container.value;\n if (!element) return;\n\n destroy();\n\n // Named first rather than inline in the options literal: inline,\n // TypeScript resolves `emit`'s overloads while contextually typing the\n // literal and collapses to the last signature.\n const onReady = () => emit('ready');\n const onTallies = (tallies: SeatManagerTallies) => emit('tallies', tallies);\n const onActivity = (activity: SeatManagerActivity) => emit('activity', activity);\n const onControlRoom = (snapshot: ControlRoomSnapshot) => emit('control-room', snapshot);\n const onModeChange = (nextMode: SeatManagerMode) => emit('mode-change', nextMode);\n const onFollowLiveChange = (enabled: boolean) => emit('follow-live-change', enabled);\n const onSelectionChange = (seats: ExpandedSeat[]) => emit('selection-change', seats);\n const onObjectSelected = (object: ExpandedSeat) => emit('object-selected', object);\n const onObjectDeselected = (object: ExpandedSeat) => emit('object-deselected', object);\n const onSelectionValidityChange = (state: SeatManagerSelectionValidity) =>\n emit('selection-validity-change', state);\n const onSelectionValid = (state: SeatManagerSelectionValidity) => emit('selection-valid', state);\n const onSelectionInvalid = (state: SeatManagerSelectionValidity) => emit('selection-invalid', state);\n const onSelectionLimit = (max: number) => emit('selection-limit', max);\n const onFilteredSectionChange = (sections: SeatManagerFilteredSection[]) =>\n emit('filtered-section-change', sections);\n const onAreaClick = (area: SeatManagerArea) => emit('area-click', area);\n const onActionComplete = (result: SeatManagerActionResult) => emit('action-complete', result);\n const onConnectionChange = (state: SeatManagerConnection) => emit('connection-change', state);\n const onRoomStateChange = (state: SeatManagerRoomState) => emit('room-state-change', state);\n const onError = (error: unknown) => emit('error', error);\n\n const instance = new CoreSeatManager({\n container: element,\n apiBase: props.apiBase,\n eventKey: props.eventKey,\n token: props.token,\n tokenExpiresAt: props.tokenExpiresAt,\n mode: props.mode,\n currency: props.currency,\n keepLiveWhileHidden: props.keepLiveWhileHidden,\n followLive: props.followLive,\n capabilities: props.capabilities,\n selectedObjects: props.selectedObjects,\n selectableObjects: props.selectableObjects,\n unavailableObjectsSelectable: props.unavailableObjectsSelectable,\n unavailableObjects: props.unavailableObjects,\n unavailableObjectsReason: props.unavailableObjectsReason,\n categoryPrices: props.categoryPrices,\n maxSelectedObjects: props.maxSelectedObjects,\n numberOfPlacesToSelect: props.numberOfPlacesToSelect,\n isObjectSelectable: props.isObjectSelectable,\n tools: props.tools,\n chrome: props.chrome,\n kpis: props.kpis,\n timeZone: props.timeZone,\n organizationName: props.organizationName,\n sale: props.sale,\n mapInsets: props.mapInsets,\n theme: props.theme,\n // Applied before first paint, so a board asked for light never\n // flashes dark on the way in.\n themeMode: props.themeMode,\n colourBy: props.colourBy,\n focusSection: props.focusSection,\n focusSeat: props.focusSeat,\n focusSeats: props.focusSeats,\n focusCategory: props.focusCategory,\n arrivedFrom: props.arrivedFrom,\n // Only a host that has a trend view / an orders page gets the link.\n // Left unset otherwise, so the room never offers a dead one.\n onOpenTrend: props.onOpenTrend ? (focus) => props.onOpenTrend?.(focus) : undefined,\n onOpenDesigner: props.onOpenDesigner ? () => props.onOpenDesigner?.() : undefined,\n onOpenOrder: props.onOpenOrder ? (order) => props.onOpenOrder?.(order) : undefined,\n onTokenRefresh: tokenRefresh(),\n onReady,\n onTallies,\n onActivity,\n onControlRoom,\n onModeChange,\n onFollowLiveChange,\n onSelectionChange,\n onObjectSelected,\n onObjectDeselected,\n onSelectionValidityChange,\n onSelectionValid,\n onSelectionInvalid,\n onSelectionLimit,\n onFilteredSectionChange,\n onAreaClick,\n onActionComplete,\n onConnectionChange,\n onRoomStateChange,\n onError,\n });\n\n manager.value = instance;\n void instance.render();\n };\n\n // Rebuild only on identity. `flush: 'post'` so the container exists on the\n // first run.\n watch(() => [container.value, props.apiBase, props.eventKey], build, {\n immediate: true,\n flush: 'post',\n });\n\n // Live props: each reaches the running board through its setter, the way\n // the React wrapper's effects do, so camera, selection, socket and DOM\n // survive. Multi-source watches compare each source on its own, which is\n // what makes `sale` and `mapInsets` compare by value.\n const live = { flush: 'post' } as const;\n\n watch([() => props.token, () => props.tokenExpiresAt], ([token, expiresAt]) => {\n manager.value?.setToken(token, expiresAt);\n }, live);\n watch(() => props.capabilities, (capabilities) => manager.value?.setCapabilities(capabilities), live);\n watch(() => props.currency, (currency) => manager.value?.setCurrency(currency), live);\n watch(() => props.theme, (theme) => manager.value?.setTheme(theme), live);\n watch(\n [() => props.sale?.status, () => props.sale?.tone, () => props.sale?.openedAt, () => props.sale?.pageUrl],\n () => manager.value?.setSale(props.sale),\n live,\n );\n watch(\n [() => props.mapInsets?.top, () => props.mapInsets?.right, () => props.mapInsets?.bottom, () => props.mapInsets?.left],\n () => manager.value?.setMapInsets(props.mapInsets ?? null),\n live,\n );\n watch(() => props.themeMode, (themeMode) => manager.value?.setThemeMode(themeMode), live);\n watch(() => props.keepLiveWhileHidden, (keep) => manager.value?.setKeepLiveWhileHidden(keep), live);\n watch(() => !!props.onTokenRefresh, () => manager.value?.setTokenRefresh(tokenRefresh()), live);\n watch(() => props.mode, (mode) => {\n if (mode) manager.value?.setMode(mode);\n }, live);\n watch(() => props.followLive, (followLive) => {\n if (followLive != null) manager.value?.setFollowLive(followLive);\n }, live);\n watch(() => props.selectableObjects, (labels) => manager.value?.setSelectableObjects(labels ?? []), live);\n watch(\n () => props.unavailableObjectsSelectable,\n (enabled) => manager.value?.setUnavailableObjectsSelectable(enabled ?? true),\n live,\n );\n watch(\n [() => props.unavailableObjects, () => props.unavailableObjectsReason],\n ([labels, reason]) => manager.value?.setUnavailableObjects(labels ?? [], reason),\n live,\n );\n watch(() => props.categoryPrices, (prices) => manager.value?.setCategoryPrices(prices), live);\n watch(() => props.maxSelectedObjects, (max) => manager.value?.setMaxSelectedObjects(max), live);\n watch(\n () => props.numberOfPlacesToSelect,\n (required) => manager.value?.setNumberOfPlacesToSelect(required),\n live,\n );\n watch(() => props.isObjectSelectable, (predicate) => manager.value?.setObjectSelectable(predicate), live);\n\n onBeforeUnmount(destroy);\n\n // Built once and read live: it asks for the current instance on each call,\n // so it survives every rebuild.\n const m = () => manager.value;\n const exposed: SeatManagerExposed = {\n setMode: (nextMode) => m()?.setMode(nextMode),\n setToken: (nextToken, expiresAt) => m()?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => m()?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => m()?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => m()?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => m()?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => m()?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => m()?.isFullscreen() ?? false,\n block: (labels, opts) => m()?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => m()?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => m()?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => m()?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => m()?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => m()?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => m()?.selectAll() ?? [],\n selectSection: (id) => m()?.selectSection(id) ?? [],\n selectByLabels: (labels) => m()?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => m()?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => m()?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => m()?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => m()?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => m()?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => m()?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => m()?.setUnavailableObjects(labels, reason),\n setCategoryPrices: (prices) => m()?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => m()?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => m()?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => m()?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => m()?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => m()?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => m()?.clearFilteredSection(),\n focusSection: (label) => m()?.focusSection(label) ?? [],\n getFilteredSections: () => m()?.getFilteredSections() ?? [],\n clearSelection: () => m()?.clearSelection(),\n getSelection: () => m()?.getSelection() ?? [],\n getReport: () => m()?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => m()?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => m()?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => m()?.getConnection() ?? null,\n setHoldTtl: (ms) => m()?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => m()?.zoomToFit(),\n showObjects: (labels, name) => m()?.showObjects(labels, name),\n };\n expose(exposed);\n\n return () => h('div', { ref: container });\n },\n});\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AACP;AAAA,EACE,eAAe;AAAA,OAuBV;AAuEP,IAAM,mBAAmB;AAAA;AAAA,EAEvB,UAAU,EAAE,MAAM,QAAQ,UAAU,KAAK;AAAA;AAAA,EAEzC,SAAS,EAAE,MAAM,QAAQ,SAAS,OAAU;AAAA;AAAA,EAE5C,OAAO,EAAE,MAAM,QAA4C,UAAU,KAAK;AAAA;AAAA,EAE1E,gBAAgB,EAAE,MAAM,QAAQ,SAAS,OAAU;AAAA;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,cAAc,CAAC,UAAU,EAAE,GAAG,aAAa,KAAK,KAAK,CAAC;AAAA,MACtD,qBAAqB,MAAM,EAAE,GAAG,oBAAoB,KAAK,CAAC;AAAA,MAC1D,gBAAgB,MAAM,EAAE,GAAG,eAAe;AAAA,MAC1C,cAAc,MAAM,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC5C,WAAW,MAAM,EAAE,GAAG,UAAU,KAAK,QAAQ,OAAO,IAAI,MAAM,WAAW,CAAC;AAAA,MAC1E,wBAAwB,CAAC,kBAAkB,EAAE,GAAG,uBAAuB,aAAa,KAC/E,QAAQ,OAAO,IAAI,MAAM,WAAW,CAAC;AAAA,MAC1C,QAAQ,CAAC,SAAS,EAAE,GAAG,OAAO,IAAI,KAAK,QAAQ,QAAQ,EAAE,SAAS,CAAC,GAAG,YAAY,KAAK,CAAC;AAAA,MACxF,eAAe,MAAM,EAAE,GAAG,cAAc,KAAK;AAAA,MAC7C,YAAY,CAAC,OAAO,EAAE,GAAG,WAAW,EAAE,KAAK,QAAQ,QAAQ;AAAA,MAC3D,WAAW,MAAM,EAAE,GAAG,UAAU;AAAA,MAChC,aAAa,CAAC,QAAQ,SAAS,EAAE,GAAG,YAAY,QAAQ,IAAI;AAAA,IAC9D;AACA,WAAO,OAAO;AAEd,WAAO,MAAM,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC;AAAA,EAC1C;AACF,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatlayer/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.1",
|
|
4
4
|
"description": "SeatLayer's official Vue seating chart and seat map SDK: live availability, seat selection, temporary holds, and a typed TypeScript API for ticketing apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
"main": "./dist/index.cjs",
|
|
21
21
|
"module": "./dist/index.js",
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
|
+
"//typesVersions": "Legacy (pre-`exports`) TypeScript resolution for the ./manager subpath, mirroring @seatlayer/react. `exports` alone leaves node10 consumers unable to see the types, which attw fails the release on.",
|
|
24
|
+
"typesVersions": {
|
|
25
|
+
"*": {
|
|
26
|
+
"manager": [
|
|
27
|
+
"./dist/manager.d.ts"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
23
31
|
"exports": {
|
|
24
32
|
".": {
|
|
25
33
|
"import": {
|
|
@@ -30,6 +38,16 @@
|
|
|
30
38
|
"types": "./dist/index.d.cts",
|
|
31
39
|
"default": "./dist/index.cjs"
|
|
32
40
|
}
|
|
41
|
+
},
|
|
42
|
+
"./manager": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/manager.d.ts",
|
|
45
|
+
"default": "./dist/manager.js"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/manager.d.cts",
|
|
49
|
+
"default": "./dist/manager.cjs"
|
|
50
|
+
}
|
|
33
51
|
}
|
|
34
52
|
},
|
|
35
53
|
"files": [
|
|
@@ -56,8 +74,8 @@
|
|
|
56
74
|
"typescript"
|
|
57
75
|
],
|
|
58
76
|
"dependencies": {
|
|
59
|
-
"@seatlayer/core": "0.
|
|
60
|
-
"@seatlayer/js": "0.
|
|
77
|
+
"@seatlayer/core": "0.106.1",
|
|
78
|
+
"@seatlayer/js": "0.106.1"
|
|
61
79
|
},
|
|
62
80
|
"peerDependencies": {
|
|
63
81
|
"vue": ">=3.3.0"
|