@ai-matrx/meet 0.7.84 → 0.7.85
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 +26 -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 +6737 -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 +6704 -0
- package/dist/core.js.map +1 -0
- package/dist/index.cjs +79 -0
- 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 +79 -0
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +461 -590
- 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 +405 -547
- package/dist/react.js.map +1 -1
- package/dist/skins/meet.cjs +4647 -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 +4628 -0
- package/dist/skins/meet.js.map +1 -0
- package/package.json +26 -5
package/dist/index.js
CHANGED
|
@@ -6305,6 +6305,75 @@ function createMeetingRecordCache(options = {}) {
|
|
|
6305
6305
|
};
|
|
6306
6306
|
}
|
|
6307
6307
|
|
|
6308
|
+
// src/core/reactions.ts
|
|
6309
|
+
var MEET_REACTIONS = ["\u{1F496}", "\u{1F44D}", "\u{1F389}", "\u{1F44F}", "\u{1F602}", "\u{1F62E}", "\u{1F622}", "\u{1F914}", "\u{1F44E}"];
|
|
6310
|
+
|
|
6311
|
+
// src/core/collab-state.ts
|
|
6312
|
+
function availableActivities(collab, isHost) {
|
|
6313
|
+
const settings = collab?.settings ?? null;
|
|
6314
|
+
if (settings === null) return [];
|
|
6315
|
+
const out = [];
|
|
6316
|
+
if (settings.whiteboardEnabled) out.push("whiteboard");
|
|
6317
|
+
if (settings.pollsEnabled && (isHost || (collab?.polls.length ?? 0) > 0)) out.push("polls");
|
|
6318
|
+
if (settings.qaEnabled) out.push("qa");
|
|
6319
|
+
if (settings.breakoutsEnabled && (isHost || collab?.breakout?.state === "open")) out.push("breakouts");
|
|
6320
|
+
return out;
|
|
6321
|
+
}
|
|
6322
|
+
function activityAttention(collab, isHost) {
|
|
6323
|
+
if (collab === null) return false;
|
|
6324
|
+
if (collab.polls.some((poll) => poll.state === "live" && poll.myVote.length === 0 && !isHost)) return true;
|
|
6325
|
+
if (isHost && collab.questions.some((q) => q.state === "open")) return true;
|
|
6326
|
+
return false;
|
|
6327
|
+
}
|
|
6328
|
+
async function performCollab(runtime, request) {
|
|
6329
|
+
if (runtime === null) return { ok: false, message: "This meeting is not connected." };
|
|
6330
|
+
try {
|
|
6331
|
+
const result = await runtime.inRoom.collab(request);
|
|
6332
|
+
return { ok: true, message: result.message, itemId: result.itemId };
|
|
6333
|
+
} catch (error) {
|
|
6334
|
+
return { ok: false, message: error.message ?? "That did not work." };
|
|
6335
|
+
}
|
|
6336
|
+
}
|
|
6337
|
+
async function moveToRoom(runtime, roomId) {
|
|
6338
|
+
if (runtime === null) return { ok: false, message: "This meeting is not connected." };
|
|
6339
|
+
try {
|
|
6340
|
+
await runtime.engine.moveToBreakout(roomId);
|
|
6341
|
+
return { ok: true, message: roomId === null ? "Back in the main room." : "Joined the breakout room." };
|
|
6342
|
+
} catch (error) {
|
|
6343
|
+
return { ok: false, message: error.message ?? "That room could not be joined." };
|
|
6344
|
+
}
|
|
6345
|
+
}
|
|
6346
|
+
function untranslatedLines(lines, translations) {
|
|
6347
|
+
return lines.filter((line) => line.final && translations[line.id] === void 0).map(({ id, text: text3 }) => ({ id, text: text3 }));
|
|
6348
|
+
}
|
|
6349
|
+
function nextTranslationBatch(pending, language, asked) {
|
|
6350
|
+
const batch = pending.filter((line) => !asked.has(`${language}:${line.id}`)).slice(-20);
|
|
6351
|
+
for (const line of batch) asked.add(`${language}:${line.id}`);
|
|
6352
|
+
return batch;
|
|
6353
|
+
}
|
|
6354
|
+
function setCaptionLanguage(store, next) {
|
|
6355
|
+
store.patch({
|
|
6356
|
+
collab: {
|
|
6357
|
+
...store.snapshot().collab,
|
|
6358
|
+
captionLanguage: next,
|
|
6359
|
+
captionTranslations: {},
|
|
6360
|
+
captionTranslationError: null
|
|
6361
|
+
}
|
|
6362
|
+
});
|
|
6363
|
+
}
|
|
6364
|
+
function takePanelRequest(store) {
|
|
6365
|
+
const request = store.snapshot().collab.panelRequest;
|
|
6366
|
+
if (request === null) return null;
|
|
6367
|
+
store.patch({ collab: { ...store.snapshot().collab, panelRequest: null } });
|
|
6368
|
+
return request.panel;
|
|
6369
|
+
}
|
|
6370
|
+
function takeMoveRequest(store) {
|
|
6371
|
+
const request = store.snapshot().collab.moveRequest;
|
|
6372
|
+
if (request === null) return null;
|
|
6373
|
+
store.patch({ collab: { ...store.snapshot().collab, moveRequest: null } });
|
|
6374
|
+
return { roomId: request.roomId };
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6308
6377
|
// src/core/observation.ts
|
|
6309
6378
|
function observedDevice(track) {
|
|
6310
6379
|
if (track.enabled) return "on";
|
|
@@ -6461,6 +6530,7 @@ export {
|
|
|
6461
6530
|
MEET_ANSWER_CONTEXT_EVENT,
|
|
6462
6531
|
MEET_ANSWER_EVENTS,
|
|
6463
6532
|
MEET_EVENTS,
|
|
6533
|
+
MEET_REACTIONS,
|
|
6464
6534
|
MEET_ROUTES,
|
|
6465
6535
|
MEET_SCHEMA,
|
|
6466
6536
|
MODERATION_ACTIONS,
|
|
@@ -6483,6 +6553,7 @@ export {
|
|
|
6483
6553
|
TRANSCRIPTION_TOPIC,
|
|
6484
6554
|
absenceSentence,
|
|
6485
6555
|
activeWrapUpSummary,
|
|
6556
|
+
activityAttention,
|
|
6486
6557
|
announceMeeting,
|
|
6487
6558
|
applyCollabPacket,
|
|
6488
6559
|
applyRoomEvent,
|
|
@@ -6499,6 +6570,7 @@ export {
|
|
|
6499
6570
|
attendanceTotals,
|
|
6500
6571
|
attendeeKey,
|
|
6501
6572
|
autoAssign,
|
|
6573
|
+
availableActivities,
|
|
6502
6574
|
breakoutRemainingMs,
|
|
6503
6575
|
callInviteAction,
|
|
6504
6576
|
callInviteText,
|
|
@@ -6570,6 +6642,8 @@ export {
|
|
|
6570
6642
|
mergeCaption,
|
|
6571
6643
|
mergeRecord,
|
|
6572
6644
|
microphoneNoticeCode,
|
|
6645
|
+
moveToRoom,
|
|
6646
|
+
nextTranslationBatch,
|
|
6573
6647
|
normalizeDeviceError,
|
|
6574
6648
|
normalizeMeetError,
|
|
6575
6649
|
normalizeSpoken,
|
|
@@ -6586,6 +6660,7 @@ export {
|
|
|
6586
6660
|
parseRoomToken,
|
|
6587
6661
|
participantAttributes,
|
|
6588
6662
|
participantSummary,
|
|
6663
|
+
performCollab,
|
|
6589
6664
|
playableRecordingFileId,
|
|
6590
6665
|
projectInvitee,
|
|
6591
6666
|
projectLibraryRecording,
|
|
@@ -6608,15 +6683,19 @@ export {
|
|
|
6608
6683
|
rootAttributes,
|
|
6609
6684
|
searchTranscript,
|
|
6610
6685
|
sendFollowUp,
|
|
6686
|
+
setCaptionLanguage,
|
|
6611
6687
|
setGuestRecordAccess,
|
|
6612
6688
|
settingsPatch,
|
|
6613
6689
|
snapshotParticipant,
|
|
6614
6690
|
snippetRuns,
|
|
6615
6691
|
staticObservation,
|
|
6616
6692
|
summarizeMeetingRecordRestrictions,
|
|
6693
|
+
takeMoveRequest,
|
|
6694
|
+
takePanelRequest,
|
|
6617
6695
|
transcriptDocument,
|
|
6618
6696
|
unavailableFrom,
|
|
6619
6697
|
uniqueAttendees,
|
|
6698
|
+
untranslatedLines,
|
|
6620
6699
|
userTopic,
|
|
6621
6700
|
wasRefused,
|
|
6622
6701
|
withItem,
|