@ai-matrx/meet 0.11.28 → 0.11.29

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.
@@ -1,6 +1,6 @@
1
- export { A as AiPanel, a as AttendanceNotice, b as Avatar, C as Captions, c as ChatPanel, d as ConnectionDot, e as ConsentNotice, f as ControlBar, g as ControlButton, H as HostMenu, L as LobbyPanel, M as MeetSkinRoom, h as MeetingOverlays, i as MenuItem, P as PanelShell, j as ParticipantTile, k as PeoplePanel, l as PersonMenu, m as Popover, n as PreJoin, Q as QualityBars, R as ReactionOverlay, o as RecordingIndicator, S as SettingsPanel, p as ShortcutsSheet, q as Stage, T as Toast } from '../components-DPdU3POT.cjs';
1
+ export { A as AiPanel, a as AttendanceNotice, b as Avatar, C as Captions, c as ChatPanel, d as ConnectionDot, e as ConsentNotice, f as ControlBar, g as ControlButton, H as HostMenu, L as LobbyPanel, M as MeetSkinRoom, h as MeetingOverlays, i as MenuItem, P as PanelShell, j as ParticipantTile, k as PeoplePanel, l as PersonMenu, m as Popover, n as PreJoin, Q as QualityBars, R as ReactionOverlay, o as RecordingIndicator, S as SettingsPanel, p as ShortcutsSheet, q as Stage, T as Toast } from '../components-4f9Mf8fz.cjs';
2
2
  import { ReactNode, SVGProps } from 'react';
3
- import { C as CollabPanel } from '../collab-CUxjUtrb.cjs';
3
+ import { C as CollabPanel } from '../collab-XY6Xj1dG.cjs';
4
4
 
5
5
  /**
6
6
  * POLLS, Q&A, THE SHARED WHITEBOARD AND BREAKOUT ROOMS — the in-room surfaces (Meet wave 5).
@@ -1,6 +1,6 @@
1
- export { A as AiPanel, a as AttendanceNotice, b as Avatar, C as Captions, c as ChatPanel, d as ConnectionDot, e as ConsentNotice, f as ControlBar, g as ControlButton, H as HostMenu, L as LobbyPanel, M as MeetSkinRoom, h as MeetingOverlays, i as MenuItem, P as PanelShell, j as ParticipantTile, k as PeoplePanel, l as PersonMenu, m as Popover, n as PreJoin, Q as QualityBars, R as ReactionOverlay, o as RecordingIndicator, S as SettingsPanel, p as ShortcutsSheet, q as Stage, T as Toast } from '../components-CUPzD0y3.js';
1
+ export { A as AiPanel, a as AttendanceNotice, b as Avatar, C as Captions, c as ChatPanel, d as ConnectionDot, e as ConsentNotice, f as ControlBar, g as ControlButton, H as HostMenu, L as LobbyPanel, M as MeetSkinRoom, h as MeetingOverlays, i as MenuItem, P as PanelShell, j as ParticipantTile, k as PeoplePanel, l as PersonMenu, m as Popover, n as PreJoin, Q as QualityBars, R as ReactionOverlay, o as RecordingIndicator, S as SettingsPanel, p as ShortcutsSheet, q as Stage, T as Toast } from '../components-Cwep2NYU.js';
2
2
  import { ReactNode, SVGProps } from 'react';
3
- import { C as CollabPanel } from '../collab-CUxjUtrb.js';
3
+ import { C as CollabPanel } from '../collab-XY6Xj1dG.js';
4
4
 
5
5
  /**
6
6
  * POLLS, Q&A, THE SHARED WHITEBOARD AND BREAKOUT ROOMS — the in-room surfaces (Meet wave 5).
@@ -469,7 +469,7 @@ function participantAttributes(p) {
469
469
  "data-meet-participant-role": observedRole(p.role, p.standing),
470
470
  "data-meet-participant-self": String(p.isLocal)
471
471
  };
472
- const quality = observedQuality(p.quality);
472
+ const quality = p.reconnecting === true ? "reconnecting" : observedQuality(p.quality);
473
473
  if (quality !== null) attrs["data-meet-participant-connection"] = quality;
474
474
  return attrs;
475
475
  }
@@ -1602,6 +1602,7 @@ function useMeetCore() {
1602
1602
  reason: snapshot?.reason ?? null,
1603
1603
  phaseNotice: snapshot?.phaseNotice ?? null,
1604
1604
  connection: snapshot?.connection ?? "stable",
1605
+ connectionBanner: snapshot?.connectionBanner ?? false,
1605
1606
  share: snapshot?.share ?? NO_SHARE,
1606
1607
  call: snapshot?.call ?? null,
1607
1608
  actions
@@ -2884,7 +2885,8 @@ function ParticipantTile({
2884
2885
  participant.displayName,
2885
2886
  participant.isLocal ? " (you)" : "",
2886
2887
  participant.isAgent ? /* @__PURE__ */ jsx6("span", { className: "mx-meet__badge", children: "AI" }) : null,
2887
- /* @__PURE__ */ jsx6(RoleBadge, { role: participant.role, standing: participant.standing })
2888
+ /* @__PURE__ */ jsx6(RoleBadge, { role: participant.role, standing: participant.standing }),
2889
+ participant.reconnecting === true ? /* @__PURE__ */ jsx6("span", { className: "mx-meet__badge", children: "Reconnecting\u2026" }) : null
2888
2890
  ] }),
2889
2891
  !participant.micEnabled ? /* @__PURE__ */ jsx6(MicOffIcon, { width: 14, height: 14 }) : null,
2890
2892
  /* @__PURE__ */ jsx6(QualityBars, { quality: participant.quality })
@@ -2927,6 +2929,12 @@ function QualityBars({ quality }) {
2927
2929
  const label = quality === "lost" ? "Connection lost" : quality === "poor" ? "Poor connection" : `Connection ${quality}`;
2928
2930
  return /* @__PURE__ */ jsx6("span", { className: `mx-meet__signal mx-meet__signal--${quality}`, title: label, "aria-label": label, role: "img", children: /* @__PURE__ */ jsx6(SignalIcon, { bars, width: 14, height: 14 }) });
2929
2931
  }
2932
+ var CONNECTION_BANNER = {
2933
+ signal_reconnecting: "Reconnecting\u2026",
2934
+ reconnecting: "Reconnecting\u2026",
2935
+ offline: "You're offline. Reconnecting when your internet is back\u2026",
2936
+ server_unreachable: "Can't reach the meeting server. Retrying\u2026"
2937
+ };
2930
2938
  function Stage({ pageSize }) {
2931
2939
  const stage = useStage(pageSize);
2932
2940
  const columns = gridColumns(stage.tiles.length);
@@ -4634,7 +4642,7 @@ function MeetSkinRoom({
4634
4642
  headerControls !== void 0 && headerControls !== null ? /* @__PURE__ */ jsx6("span", { className: "mx-meet__header-controls", "data-meet-header-controls": "", children: headerControls }) : null,
4635
4643
  isHost ? /* @__PURE__ */ jsx6(HostMenu, {}) : null
4636
4644
  ] }),
4637
- core.connection !== "stable" ? /* @__PURE__ */ jsx6("p", { className: "mx-meet__banner", role: "status", children: "Reconnecting\u2026" }) : null,
4645
+ core.connectionBanner && core.connection !== "stable" ? /* @__PURE__ */ jsx6("p", { className: "mx-meet__banner", role: "status", "data-meet-notice": `connection-${core.connection}`, children: CONNECTION_BANNER[core.connection] }) : null,
4638
4646
  /* @__PURE__ */ jsx6(ShareNotice, {}),
4639
4647
  /* @__PURE__ */ jsx6(Stage, {}),
4640
4648
  /* @__PURE__ */ jsx6(Captions, {}),
@@ -4668,7 +4676,7 @@ var REFUSED_TITLES = {
4668
4676
  registration_required: "Register to join this meeting"
4669
4677
  };
4670
4678
  function ExitScreen({ onLeave }) {
4671
- const { phase, reason, host, snapshot, actions, call } = useMeetCore();
4679
+ const { phase, reason, host, snapshot, actions, call, connection } = useMeetCore();
4672
4680
  const [busy, setBusy] = useState4(false);
4673
4681
  const failure = snapshot?.failure ?? null;
4674
4682
  const rejoin = /* @__PURE__ */ jsx6(
@@ -4724,7 +4732,7 @@ function ExitScreen({ onLeave }) {
4724
4732
  break;
4725
4733
  case "disconnected":
4726
4734
  title = "You lost your connection to the meeting";
4727
- line = failure?.remedy ?? "Check your internet connection, then rejoin.";
4735
+ line = connection === "offline" ? "You're offline. You'll rejoin automatically when your internet is back." : connection === "server_unreachable" ? "Can't reach the meeting server. You'll rejoin automatically when it answers." : failure?.remedy ?? "Check your internet connection, then rejoin.";
4728
4736
  notice = "disconnected";
4729
4737
  actionsNode = /* @__PURE__ */ jsxs3(Fragment, { children: [
4730
4738
  rejoin,