@ai-matrx/meet 0.7.15 → 0.7.18
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 +17 -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 +4 -4
package/dist/react.js
CHANGED
|
@@ -6669,7 +6669,7 @@ function useGuestRecordAccess(meeting) {
|
|
|
6669
6669
|
// src/react/components.tsx
|
|
6670
6670
|
import { useEffect as useEffect4, useLayoutEffect, useMemo as useMemo3, useRef as useRef4, useState as useState4 } from "react";
|
|
6671
6671
|
import { ErrorBox } from "@ai-matrx/design-system";
|
|
6672
|
-
import { avatarPaletteIndex, formatDurationMs as
|
|
6672
|
+
import { avatarPaletteIndex, formatDurationMs as formatDurationMs4, getInitials } from "@ai-matrx/kit/format";
|
|
6673
6673
|
|
|
6674
6674
|
// src/core/after.ts
|
|
6675
6675
|
import { formatDurationMs as formatDurationMs2 } from "@ai-matrx/kit/format";
|
|
@@ -6856,12 +6856,7 @@ function recordingOffsetMs(at, recording) {
|
|
|
6856
6856
|
return moment - start;
|
|
6857
6857
|
}
|
|
6858
6858
|
function clockPosition(offsetMs) {
|
|
6859
|
-
|
|
6860
|
-
const h = Math.floor(total / 3600);
|
|
6861
|
-
const m = Math.floor(total % 3600 / 60);
|
|
6862
|
-
const s = total % 60;
|
|
6863
|
-
const ss = String(s).padStart(2, "0");
|
|
6864
|
-
return h > 0 ? `${h}:${String(m).padStart(2, "0")}:${ss}` : `${m}:${ss}`;
|
|
6859
|
+
return formatDurationMs2(Math.max(0, offsetMs), { style: "clock" });
|
|
6865
6860
|
}
|
|
6866
6861
|
function searchTranscript(segments, query, names = {}) {
|
|
6867
6862
|
const needle = fold(query.trim());
|
|
@@ -7118,6 +7113,7 @@ function countLabel(count2, singular, plural = `${singular}s`) {
|
|
|
7118
7113
|
|
|
7119
7114
|
// src/react/collab.tsx
|
|
7120
7115
|
import { useEffect as useEffect3, useRef as useRef3, useState as useState3 } from "react";
|
|
7116
|
+
import { formatDurationMs as formatDurationMs3 } from "@ai-matrx/kit/format";
|
|
7121
7117
|
|
|
7122
7118
|
// src/react/icons.tsx
|
|
7123
7119
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -7950,10 +7946,7 @@ function WhiteboardPanel({ onClose }) {
|
|
|
7950
7946
|
] });
|
|
7951
7947
|
}
|
|
7952
7948
|
function clock(ms2) {
|
|
7953
|
-
|
|
7954
|
-
const minutes = Math.floor(total / 60);
|
|
7955
|
-
const seconds = total % 60;
|
|
7956
|
-
return `${minutes}:${seconds.toString().padStart(2, "0")}`;
|
|
7949
|
+
return formatDurationMs3(Math.ceil(ms2 / 1e3) * 1e3, { style: "clock" });
|
|
7957
7950
|
}
|
|
7958
7951
|
function useNow(active) {
|
|
7959
7952
|
const [now, setNow] = useState3(() => Date.now());
|
|
@@ -10136,7 +10129,7 @@ function MeetingRoomBody({
|
|
|
10136
10129
|
/* @__PURE__ */ jsx4("h1", { className: "mx-meet__title", children: snapshot?.meeting?.title ?? "Meeting" }),
|
|
10137
10130
|
/* @__PURE__ */ jsxs3("span", { className: "mx-meet__meta", children: [
|
|
10138
10131
|
participantSummary(snapshot?.participants ?? []),
|
|
10139
|
-
elapsed > 0 ? ` \xB7 ${
|
|
10132
|
+
elapsed > 0 ? ` \xB7 ${formatDurationMs4(elapsed)}` : ""
|
|
10140
10133
|
] }),
|
|
10141
10134
|
/* @__PURE__ */ jsx4(RecordingIndicator, {}),
|
|
10142
10135
|
snapshot?.locked === true ? /* @__PURE__ */ jsxs3("span", { className: "mx-meet__badge", children: [
|
|
@@ -10834,7 +10827,7 @@ function createCallInviteHandler(options) {
|
|
|
10834
10827
|
choices: (payload) => {
|
|
10835
10828
|
if (Date.parse(payload.expires_at) < now()) return [];
|
|
10836
10829
|
return [
|
|
10837
|
-
{ id: "join", label: payload.mode === "video" ? "Join video" : "Join call", tone: "primary" },
|
|
10830
|
+
{ id: "join", label: payload.mode === "video" ? "Join video" : "Join call", icon: payload.mode === "video" ? "video" : "phone", tone: "primary" },
|
|
10838
10831
|
{ id: "decline", label: "Decline", tone: "neutral" }
|
|
10839
10832
|
];
|
|
10840
10833
|
},
|