@ai-matrx/meet 0.7.84 → 0.8.0
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 +35 -0
- package/README.md +13 -7
- package/dist/collab-Bss-_Jfp.d.cts +805 -0
- package/dist/collab-Bss-_Jfp.d.ts +805 -0
- package/dist/components-BOUmOiPj.d.cts +240 -0
- package/dist/components-BmgstFx_.d.ts +240 -0
- package/dist/core.cjs +6724 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +3048 -0
- package/dist/core.d.ts +3048 -0
- package/dist/core.js +6691 -0
- package/dist/core.js.map +1 -0
- package/dist/index.cjs +81 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3780
- package/dist/index.d.ts +5 -3780
- package/dist/index.js +81 -15
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +468 -674
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +77 -365
- package/dist/react.d.ts +77 -365
- package/dist/react.js +412 -629
- package/dist/react.js.map +1 -1
- package/dist/skins/meet.cjs +4636 -0
- package/dist/skins/meet.cjs.map +1 -0
- package/dist/skins/meet.d.cts +113 -0
- package/dist/skins/meet.d.ts +113 -0
- package/dist/skins/meet.js +4617 -0
- package/dist/skins/meet.js.map +1 -0
- package/package.json +28 -6
package/dist/index.js
CHANGED
|
@@ -906,22 +906,9 @@ function captionSegment(args) {
|
|
|
906
906
|
|
|
907
907
|
// src/core/channels.ts
|
|
908
908
|
import { defineChannelNamespace } from "@ai-matrx/realtime";
|
|
909
|
-
|
|
910
|
-
// src/core/slot.ts
|
|
911
|
-
var NAMESPACE = "ai-matrx.meet";
|
|
912
|
-
function globalSlot(name, create) {
|
|
913
|
-
const key = /* @__PURE__ */ Symbol.for(`${NAMESPACE}.${name}`);
|
|
914
|
-
const host = globalThis;
|
|
915
|
-
const existing = host[key];
|
|
916
|
-
if (existing !== void 0) return existing;
|
|
917
|
-
const created = create();
|
|
918
|
-
host[key] = created;
|
|
919
|
-
return created;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
// src/core/channels.ts
|
|
909
|
+
import { globalSlot } from "@ai-matrx/kit/global-slot";
|
|
923
910
|
function namespaces() {
|
|
924
|
-
return globalSlot("channel-namespaces", () => ({
|
|
911
|
+
return globalSlot("ai-matrx.meet.channel-namespaces", () => ({
|
|
925
912
|
user: defineChannelNamespace({
|
|
926
913
|
namespace: "meet-user",
|
|
927
914
|
parts: ["userId"],
|
|
@@ -6305,6 +6292,75 @@ function createMeetingRecordCache(options = {}) {
|
|
|
6305
6292
|
};
|
|
6306
6293
|
}
|
|
6307
6294
|
|
|
6295
|
+
// src/core/reactions.ts
|
|
6296
|
+
var MEET_REACTIONS = ["\u{1F496}", "\u{1F44D}", "\u{1F389}", "\u{1F44F}", "\u{1F602}", "\u{1F62E}", "\u{1F622}", "\u{1F914}", "\u{1F44E}"];
|
|
6297
|
+
|
|
6298
|
+
// src/core/collab-state.ts
|
|
6299
|
+
function availableActivities(collab, isHost) {
|
|
6300
|
+
const settings = collab?.settings ?? null;
|
|
6301
|
+
if (settings === null) return [];
|
|
6302
|
+
const out = [];
|
|
6303
|
+
if (settings.whiteboardEnabled) out.push("whiteboard");
|
|
6304
|
+
if (settings.pollsEnabled && (isHost || (collab?.polls.length ?? 0) > 0)) out.push("polls");
|
|
6305
|
+
if (settings.qaEnabled) out.push("qa");
|
|
6306
|
+
if (settings.breakoutsEnabled && (isHost || collab?.breakout?.state === "open")) out.push("breakouts");
|
|
6307
|
+
return out;
|
|
6308
|
+
}
|
|
6309
|
+
function activityAttention(collab, isHost) {
|
|
6310
|
+
if (collab === null) return false;
|
|
6311
|
+
if (collab.polls.some((poll) => poll.state === "live" && poll.myVote.length === 0 && !isHost)) return true;
|
|
6312
|
+
if (isHost && collab.questions.some((q) => q.state === "open")) return true;
|
|
6313
|
+
return false;
|
|
6314
|
+
}
|
|
6315
|
+
async function performCollab(runtime, request) {
|
|
6316
|
+
if (runtime === null) return { ok: false, message: "This meeting is not connected." };
|
|
6317
|
+
try {
|
|
6318
|
+
const result = await runtime.inRoom.collab(request);
|
|
6319
|
+
return { ok: true, message: result.message, itemId: result.itemId };
|
|
6320
|
+
} catch (error) {
|
|
6321
|
+
return { ok: false, message: error.message ?? "That did not work." };
|
|
6322
|
+
}
|
|
6323
|
+
}
|
|
6324
|
+
async function moveToRoom(runtime, roomId) {
|
|
6325
|
+
if (runtime === null) return { ok: false, message: "This meeting is not connected." };
|
|
6326
|
+
try {
|
|
6327
|
+
await runtime.engine.moveToBreakout(roomId);
|
|
6328
|
+
return { ok: true, message: roomId === null ? "Back in the main room." : "Joined the breakout room." };
|
|
6329
|
+
} catch (error) {
|
|
6330
|
+
return { ok: false, message: error.message ?? "That room could not be joined." };
|
|
6331
|
+
}
|
|
6332
|
+
}
|
|
6333
|
+
function untranslatedLines(lines, translations) {
|
|
6334
|
+
return lines.filter((line) => line.final && translations[line.id] === void 0).map(({ id, text: text3 }) => ({ id, text: text3 }));
|
|
6335
|
+
}
|
|
6336
|
+
function nextTranslationBatch(pending, language, asked) {
|
|
6337
|
+
const batch = pending.filter((line) => !asked.has(`${language}:${line.id}`)).slice(-20);
|
|
6338
|
+
for (const line of batch) asked.add(`${language}:${line.id}`);
|
|
6339
|
+
return batch;
|
|
6340
|
+
}
|
|
6341
|
+
function setCaptionLanguage(store, next) {
|
|
6342
|
+
store.patch({
|
|
6343
|
+
collab: {
|
|
6344
|
+
...store.snapshot().collab,
|
|
6345
|
+
captionLanguage: next,
|
|
6346
|
+
captionTranslations: {},
|
|
6347
|
+
captionTranslationError: null
|
|
6348
|
+
}
|
|
6349
|
+
});
|
|
6350
|
+
}
|
|
6351
|
+
function takePanelRequest(store) {
|
|
6352
|
+
const request = store.snapshot().collab.panelRequest;
|
|
6353
|
+
if (request === null) return null;
|
|
6354
|
+
store.patch({ collab: { ...store.snapshot().collab, panelRequest: null } });
|
|
6355
|
+
return request.panel;
|
|
6356
|
+
}
|
|
6357
|
+
function takeMoveRequest(store) {
|
|
6358
|
+
const request = store.snapshot().collab.moveRequest;
|
|
6359
|
+
if (request === null) return null;
|
|
6360
|
+
store.patch({ collab: { ...store.snapshot().collab, moveRequest: null } });
|
|
6361
|
+
return { roomId: request.roomId };
|
|
6362
|
+
}
|
|
6363
|
+
|
|
6308
6364
|
// src/core/observation.ts
|
|
6309
6365
|
function observedDevice(track) {
|
|
6310
6366
|
if (track.enabled) return "on";
|
|
@@ -6461,6 +6517,7 @@ export {
|
|
|
6461
6517
|
MEET_ANSWER_CONTEXT_EVENT,
|
|
6462
6518
|
MEET_ANSWER_EVENTS,
|
|
6463
6519
|
MEET_EVENTS,
|
|
6520
|
+
MEET_REACTIONS,
|
|
6464
6521
|
MEET_ROUTES,
|
|
6465
6522
|
MEET_SCHEMA,
|
|
6466
6523
|
MODERATION_ACTIONS,
|
|
@@ -6483,6 +6540,7 @@ export {
|
|
|
6483
6540
|
TRANSCRIPTION_TOPIC,
|
|
6484
6541
|
absenceSentence,
|
|
6485
6542
|
activeWrapUpSummary,
|
|
6543
|
+
activityAttention,
|
|
6486
6544
|
announceMeeting,
|
|
6487
6545
|
applyCollabPacket,
|
|
6488
6546
|
applyRoomEvent,
|
|
@@ -6499,6 +6557,7 @@ export {
|
|
|
6499
6557
|
attendanceTotals,
|
|
6500
6558
|
attendeeKey,
|
|
6501
6559
|
autoAssign,
|
|
6560
|
+
availableActivities,
|
|
6502
6561
|
breakoutRemainingMs,
|
|
6503
6562
|
callInviteAction,
|
|
6504
6563
|
callInviteText,
|
|
@@ -6570,6 +6629,8 @@ export {
|
|
|
6570
6629
|
mergeCaption,
|
|
6571
6630
|
mergeRecord,
|
|
6572
6631
|
microphoneNoticeCode,
|
|
6632
|
+
moveToRoom,
|
|
6633
|
+
nextTranslationBatch,
|
|
6573
6634
|
normalizeDeviceError,
|
|
6574
6635
|
normalizeMeetError,
|
|
6575
6636
|
normalizeSpoken,
|
|
@@ -6586,6 +6647,7 @@ export {
|
|
|
6586
6647
|
parseRoomToken,
|
|
6587
6648
|
participantAttributes,
|
|
6588
6649
|
participantSummary,
|
|
6650
|
+
performCollab,
|
|
6589
6651
|
playableRecordingFileId,
|
|
6590
6652
|
projectInvitee,
|
|
6591
6653
|
projectLibraryRecording,
|
|
@@ -6608,15 +6670,19 @@ export {
|
|
|
6608
6670
|
rootAttributes,
|
|
6609
6671
|
searchTranscript,
|
|
6610
6672
|
sendFollowUp,
|
|
6673
|
+
setCaptionLanguage,
|
|
6611
6674
|
setGuestRecordAccess,
|
|
6612
6675
|
settingsPatch,
|
|
6613
6676
|
snapshotParticipant,
|
|
6614
6677
|
snippetRuns,
|
|
6615
6678
|
staticObservation,
|
|
6616
6679
|
summarizeMeetingRecordRestrictions,
|
|
6680
|
+
takeMoveRequest,
|
|
6681
|
+
takePanelRequest,
|
|
6617
6682
|
transcriptDocument,
|
|
6618
6683
|
unavailableFrom,
|
|
6619
6684
|
uniqueAttendees,
|
|
6685
|
+
untranslatedLines,
|
|
6620
6686
|
userTopic,
|
|
6621
6687
|
wasRefused,
|
|
6622
6688
|
withItem,
|