@ai-matrx/meet 0.11.37 → 0.11.39

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.
@@ -215,6 +215,12 @@ var MEET_ROUTES = {
215
215
  state: "/api/v1/meet/state",
216
216
  /** S4: `withdraw` (stop waiting) or `leave` (close this tab); the pass may ride in the body. */
217
217
  leave: "/api/v1/meet/leave",
218
+ /**
219
+ * S8: a host's browser just called an admission DOOR (`meet_admit` · `meet_deny` ·
220
+ * `meet_undeny` · `meet_admit_all`). Payload-free: the server republishes the room's
221
+ * replicated state (the People badge's waiting count) from the database truth.
222
+ */
223
+ admissionChanged: "/api/v1/meet/admission/changed",
218
224
  /** S4: a pass holder (guests included) saw the recording notice, for this run. */
219
225
  consent: "/api/v1/meet/consent"
220
226
  };
@@ -1143,11 +1149,7 @@ function useRoom() {
1143
1149
  toggleScreenShare: useCallback2(async () => {
1144
1150
  const on = !(local?.screenSharing ?? false);
1145
1151
  await requireEngine(engine, "toggleScreenShare").setScreenShareEnabled(on);
1146
- const sharing = host?.store.snapshot().participants.find((p) => p.isLocal)?.screenSharing ?? false;
1147
- if (host !== null && sharing === on) {
1148
- await host.inRoom.moderate({ action: "present", on }).catch(() => void 0);
1149
- }
1150
- }, [engine, host, local]),
1152
+ }, [engine, local]),
1151
1153
  // S8: a hand is SERVER state (`/moderate raise_hand · lower_hand`, server time), replicated
1152
1154
  // back as the `matrx.hand` attribute — no client sets its own hand on the wire.
1153
1155
  toggleHand: useCallback2(async () => {
@@ -3538,7 +3540,16 @@ function LeaveControl({ onLeave }) {
3538
3540
  /* @__PURE__ */ jsx6("button", { type: "button", className: "mx-meet__menu-item mx-meet__menu-item--danger", onClick: endNow, children: words.end_for_all }),
3539
3541
  /* @__PURE__ */ jsx6("button", { type: "button", className: "mx-meet__menu-item", onClick: () => setOpen("menu"), children: "Cancel" })
3540
3542
  ] }) : null,
3541
- failure !== null ? /* @__PURE__ */ jsx6("p", { className: "mx-meet__menu-note", role: "alert", children: failure }) : null
3543
+ failure !== null ? /* @__PURE__ */ jsx6(
3544
+ ErrorBox,
3545
+ {
3546
+ className: "mx-meet__menu-note",
3547
+ message: failure,
3548
+ operation: "Complete this meeting action",
3549
+ origin: "meet/components",
3550
+ children: failure
3551
+ }
3552
+ ) : null
3542
3553
  ] }) }) : null
3543
3554
  ] });
3544
3555
  }