@seatlayer/js 0.12.1 → 0.12.2
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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2519,11 +2519,12 @@ var SeatManager = class {
|
|
|
2519
2519
|
}
|
|
2520
2520
|
this.buildRenderer();
|
|
2521
2521
|
this.buildSectionOptions();
|
|
2522
|
-
await Promise.all([
|
|
2522
|
+
const [, controlRoom] = await Promise.all([
|
|
2523
2523
|
this.resnapshot(),
|
|
2524
2524
|
this.refreshControlRoom().catch((err) => this.opts.onError?.(err))
|
|
2525
2525
|
]);
|
|
2526
|
-
|
|
2526
|
+
if (controlRoom?.activity) this.seedFeed(controlRoom.activity);
|
|
2527
|
+
else this.api.log(this.key, { limit: 24 }).then((page) => this.seedFeed(page.entries)).catch(() => {
|
|
2527
2528
|
});
|
|
2528
2529
|
this.connect();
|
|
2529
2530
|
this.startFeedClock();
|
|
@@ -3029,7 +3030,8 @@ var SeatManager = class {
|
|
|
3029
3030
|
release: "released",
|
|
3030
3031
|
expire: "expired",
|
|
3031
3032
|
block: "blocked",
|
|
3032
|
-
unblock: "unblocked"
|
|
3033
|
+
unblock: "unblocked",
|
|
3034
|
+
unbook: "cancelled"
|
|
3033
3035
|
};
|
|
3034
3036
|
const stByAction = {
|
|
3035
3037
|
hold: "held",
|
|
@@ -3037,7 +3039,8 @@ var SeatManager = class {
|
|
|
3037
3039
|
release: "free",
|
|
3038
3040
|
expire: "free",
|
|
3039
3041
|
block: "blocked",
|
|
3040
|
-
unblock: "free"
|
|
3042
|
+
unblock: "free",
|
|
3043
|
+
unbook: "free"
|
|
3041
3044
|
};
|
|
3042
3045
|
for (const e of entries) {
|
|
3043
3046
|
const label = e.labels[0];
|