@ai-matrx/meet 0.7.15 → 0.7.17
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 +11 -0
- package/dist/index.cjs +2 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -7
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +8 -15
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +6 -13
- package/dist/react.js.map +1 -1
- package/package.json +3 -3
package/dist/react.cjs
CHANGED
|
@@ -6973,7 +6973,7 @@ function useGuestRecordAccess(meeting) {
|
|
|
6973
6973
|
// src/react/components.tsx
|
|
6974
6974
|
var import_react5 = require("react");
|
|
6975
6975
|
var import_design_system = require("@ai-matrx/design-system");
|
|
6976
|
-
var
|
|
6976
|
+
var import_format4 = require("@ai-matrx/kit/format");
|
|
6977
6977
|
|
|
6978
6978
|
// src/core/after.ts
|
|
6979
6979
|
var import_format2 = require("@ai-matrx/kit/format");
|
|
@@ -7160,12 +7160,7 @@ function recordingOffsetMs(at, recording) {
|
|
|
7160
7160
|
return moment - start;
|
|
7161
7161
|
}
|
|
7162
7162
|
function clockPosition(offsetMs) {
|
|
7163
|
-
|
|
7164
|
-
const h = Math.floor(total / 3600);
|
|
7165
|
-
const m = Math.floor(total % 3600 / 60);
|
|
7166
|
-
const s = total % 60;
|
|
7167
|
-
const ss = String(s).padStart(2, "0");
|
|
7168
|
-
return h > 0 ? `${h}:${String(m).padStart(2, "0")}:${ss}` : `${m}:${ss}`;
|
|
7163
|
+
return (0, import_format2.formatDurationMs)(Math.max(0, offsetMs), { style: "clock" });
|
|
7169
7164
|
}
|
|
7170
7165
|
function searchTranscript(segments, query, names = {}) {
|
|
7171
7166
|
const needle = fold(query.trim());
|
|
@@ -7422,6 +7417,7 @@ function countLabel(count2, singular, plural = `${singular}s`) {
|
|
|
7422
7417
|
|
|
7423
7418
|
// src/react/collab.tsx
|
|
7424
7419
|
var import_react4 = require("react");
|
|
7420
|
+
var import_format3 = require("@ai-matrx/kit/format");
|
|
7425
7421
|
|
|
7426
7422
|
// src/react/icons.tsx
|
|
7427
7423
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -8254,10 +8250,7 @@ function WhiteboardPanel({ onClose }) {
|
|
|
8254
8250
|
] });
|
|
8255
8251
|
}
|
|
8256
8252
|
function clock(ms2) {
|
|
8257
|
-
|
|
8258
|
-
const minutes = Math.floor(total / 60);
|
|
8259
|
-
const seconds = total % 60;
|
|
8260
|
-
return `${minutes}:${seconds.toString().padStart(2, "0")}`;
|
|
8253
|
+
return (0, import_format3.formatDurationMs)(Math.ceil(ms2 / 1e3) * 1e3, { style: "clock" });
|
|
8261
8254
|
}
|
|
8262
8255
|
function useNow(active) {
|
|
8263
8256
|
const [now, setNow] = (0, import_react4.useState)(() => Date.now());
|
|
@@ -8653,7 +8646,7 @@ function Avatar({
|
|
|
8653
8646
|
url,
|
|
8654
8647
|
size = 40
|
|
8655
8648
|
}) {
|
|
8656
|
-
const tint = (0,
|
|
8649
|
+
const tint = (0, import_format4.avatarPaletteIndex)(name);
|
|
8657
8650
|
if (url != null && url.length > 0) {
|
|
8658
8651
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
8659
8652
|
"img",
|
|
@@ -8678,7 +8671,7 @@ function Avatar({
|
|
|
8678
8671
|
background: `var(--mx-meet-avatar-${tint})`
|
|
8679
8672
|
},
|
|
8680
8673
|
"aria-hidden": "true",
|
|
8681
|
-
children: (0,
|
|
8674
|
+
children: (0, import_format4.getInitials)(name)
|
|
8682
8675
|
}
|
|
8683
8676
|
);
|
|
8684
8677
|
}
|
|
@@ -10440,7 +10433,7 @@ function MeetingRoomBody({
|
|
|
10440
10433
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h1", { className: "mx-meet__title", children: snapshot?.meeting?.title ?? "Meeting" }),
|
|
10441
10434
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "mx-meet__meta", children: [
|
|
10442
10435
|
participantSummary(snapshot?.participants ?? []),
|
|
10443
|
-
elapsed > 0 ? ` \xB7 ${(0,
|
|
10436
|
+
elapsed > 0 ? ` \xB7 ${(0, import_format4.formatDurationMs)(elapsed)}` : ""
|
|
10444
10437
|
] }),
|
|
10445
10438
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RecordingIndicator, {}),
|
|
10446
10439
|
snapshot?.locked === true ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "mx-meet__badge", children: [
|
|
@@ -11138,7 +11131,7 @@ function createCallInviteHandler(options) {
|
|
|
11138
11131
|
choices: (payload) => {
|
|
11139
11132
|
if (Date.parse(payload.expires_at) < now()) return [];
|
|
11140
11133
|
return [
|
|
11141
|
-
{ id: "join", label: payload.mode === "video" ? "Join video" : "Join call", tone: "primary" },
|
|
11134
|
+
{ id: "join", label: payload.mode === "video" ? "Join video" : "Join call", icon: payload.mode === "video" ? "video" : "phone", tone: "primary" },
|
|
11142
11135
|
{ id: "decline", label: "Decline", tone: "neutral" }
|
|
11143
11136
|
];
|
|
11144
11137
|
},
|