@ai-matrx/meet 0.11.45 → 0.11.46
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/CHANGELOG.md +6 -0
- package/dist/core.cjs +12 -3
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +8 -6
- package/dist/core.d.ts +8 -6
- package/dist/core.js +12 -3
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +28 -5
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +28 -5
- package/dist/react.js.map +1 -1
- package/dist/skins/meet.cjs +19 -4
- package/dist/skins/meet.cjs.map +1 -1
- package/dist/skins/meet.js +19 -4
- package/dist/skins/meet.js.map +1 -1
- package/package.json +4 -4
package/dist/skins/meet.js
CHANGED
|
@@ -185,10 +185,10 @@ var MEET_ROUTES = {
|
|
|
185
185
|
recordingStop: "/api/v1/meet/recording/stop",
|
|
186
186
|
noteTakerStart: "/api/v1/meet/agent/start",
|
|
187
187
|
noteTakerStop: "/api/v1/meet/agent/stop",
|
|
188
|
-
/** In-meeting Q&A. Streams NDJSON; body is `{meeting_id, question}` only. */
|
|
189
|
-
intelligenceAsk: "/api/v1/meet/intelligence/ask",
|
|
190
188
|
/** Anyone in the meeting (guests with the room pass included) asks for captions for themselves. */
|
|
191
189
|
noteTakerCaptions: "/api/v1/meet/agent/captions",
|
|
190
|
+
/** In-meeting Q&A. Streams NDJSON; body is `{meeting_id, question}` only. */
|
|
191
|
+
intelligenceAsk: "/api/v1/meet/intelligence/ask",
|
|
192
192
|
/** A host ends the meeting for everyone. Served by MRI-A6. */
|
|
193
193
|
meetingEnd: "/api/v1/meet/end",
|
|
194
194
|
/**
|
|
@@ -763,6 +763,7 @@ var STATES = [
|
|
|
763
763
|
"ended"
|
|
764
764
|
];
|
|
765
765
|
function readState(value) {
|
|
766
|
+
if (value === "dispatching") return "joining";
|
|
766
767
|
return typeof value === "string" && STATES.includes(value) ? value : null;
|
|
767
768
|
}
|
|
768
769
|
function isNoteTaker(participant) {
|
|
@@ -1607,7 +1608,10 @@ function useEndMeeting() {
|
|
|
1607
1608
|
function useConsentNotice() {
|
|
1608
1609
|
const snapshot = useMeetSnapshot();
|
|
1609
1610
|
const agent = noteTakerParticipant(snapshot?.participants ?? []);
|
|
1610
|
-
if (agent === null)
|
|
1611
|
+
if (agent === null) {
|
|
1612
|
+
const state = noteTakerStatus({ meeting: snapshot?.meeting ?? null, participants: [] }).state;
|
|
1613
|
+
return state === "joining" ? "AI notes started. The note-taker is joining this meeting." : null;
|
|
1614
|
+
}
|
|
1611
1615
|
return `AI notes are on. ${agent.displayName} is in this meeting, transcribing what is said and writing notes everyone here can read.`;
|
|
1612
1616
|
}
|
|
1613
1617
|
function useMediaSupervisor() {
|
|
@@ -4330,6 +4334,17 @@ function ChatPanel({
|
|
|
4330
4334
|
const snapshot = useMeetSnapshot();
|
|
4331
4335
|
const room = useRoom();
|
|
4332
4336
|
const live = useLivePolicy();
|
|
4337
|
+
const host = useMeetHost();
|
|
4338
|
+
const [rulesChecked, setRulesChecked] = useState5(false);
|
|
4339
|
+
useEffect6(() => {
|
|
4340
|
+
let alive = true;
|
|
4341
|
+
const done = () => alive && setRulesChecked(true);
|
|
4342
|
+
if (host === null) done();
|
|
4343
|
+
else void host.meetings.readLivePolicy().then(done, done);
|
|
4344
|
+
return () => {
|
|
4345
|
+
alive = false;
|
|
4346
|
+
};
|
|
4347
|
+
}, [host]);
|
|
4333
4348
|
const [draft, setDraft] = useState5("");
|
|
4334
4349
|
const [recipient, setRecipient] = useState5(to);
|
|
4335
4350
|
const listRef = useRef6(null);
|
|
@@ -4354,7 +4369,7 @@ function ChatPanel({
|
|
|
4354
4369
|
snapshot?.chatLoaded !== true && messages.length === 0 ? /* @__PURE__ */ jsx6("li", { className: "mx-meet__panel-note", children: "Reading earlier messages\u2026" }) : messages.length === 0 && snapshot?.chatHistoryError == null ? /* @__PURE__ */ jsx6("li", { className: "mx-meet__panel-note", children: "No messages yet. Messages to everyone stay with the meeting, so people who join later see them." }) : null,
|
|
4355
4370
|
messages.map((message) => /* @__PURE__ */ jsx6(ChatLine, { message, local, people }, message.id))
|
|
4356
4371
|
] }),
|
|
4357
|
-
!live.canChat ? /* @__PURE__ */ jsx6("p", { className: "mx-meet__panel-note", role: "status", "data-meet-notice": "chat-restricted", children: live.chatMode === "off" ? "Chat is turned off for this meeting." : "Chat is limited to the host and co-hosts in this meeting." }) : /* @__PURE__ */ jsxs4(
|
|
4372
|
+
!rulesChecked ? null : !live.canChat ? /* @__PURE__ */ jsx6("p", { className: "mx-meet__panel-note", role: "status", "data-meet-notice": "chat-restricted", children: live.chatMode === "off" ? "Chat is turned off for this meeting." : "Chat is limited to the host and co-hosts in this meeting." }) : /* @__PURE__ */ jsxs4(
|
|
4358
4373
|
"form",
|
|
4359
4374
|
{
|
|
4360
4375
|
className: "mx-meet__composer mx-meet__composer--chat",
|