@ai-matrx/meet 0.7.75 → 0.7.76
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 +19 -0
- package/dist/react.cjs +53 -44
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +67 -45
- package/dist/react.js.map +1 -1
- package/dist/styles.css +28 -3
- package/package.json +2 -2
package/dist/react.js
CHANGED
|
@@ -6692,7 +6692,20 @@ function useGuestRecordAccess(meeting) {
|
|
|
6692
6692
|
|
|
6693
6693
|
// src/react/components.tsx
|
|
6694
6694
|
import { useEffect as useEffect4, useLayoutEffect, useMemo as useMemo3, useRef as useRef4, useState as useState4 } from "react";
|
|
6695
|
-
import {
|
|
6695
|
+
import {
|
|
6696
|
+
Alert,
|
|
6697
|
+
AlertDescription,
|
|
6698
|
+
Button,
|
|
6699
|
+
Checkbox,
|
|
6700
|
+
ErrorBox,
|
|
6701
|
+
Label,
|
|
6702
|
+
SegmentedControl,
|
|
6703
|
+
Select,
|
|
6704
|
+
SelectContent,
|
|
6705
|
+
SelectItem,
|
|
6706
|
+
SelectTrigger,
|
|
6707
|
+
SelectValue
|
|
6708
|
+
} from "@ai-matrx/design-system";
|
|
6696
6709
|
import { avatarPaletteIndex, formatDurationMs as formatDurationMs4, getInitials } from "@ai-matrx/kit/format";
|
|
6697
6710
|
|
|
6698
6711
|
// src/core/after.ts
|
|
@@ -9545,38 +9558,40 @@ function EffectsSettings({ preview }) {
|
|
|
9545
9558
|
}
|
|
9546
9559
|
};
|
|
9547
9560
|
return /* @__PURE__ */ jsxs3("section", { className: "mx-meet__section", "aria-label": "Effects", children: [
|
|
9548
|
-
/* @__PURE__ */ jsxs3("
|
|
9561
|
+
/* @__PURE__ */ jsxs3("div", { className: "mx-meet__check", children: [
|
|
9549
9562
|
/* @__PURE__ */ jsx4(
|
|
9550
|
-
|
|
9563
|
+
Checkbox,
|
|
9551
9564
|
{
|
|
9552
|
-
|
|
9565
|
+
id: "mx-meet-noise",
|
|
9553
9566
|
checked: effects.effects.noiseSuppression,
|
|
9554
|
-
|
|
9567
|
+
onCheckedChange: (checked) => apply({ noiseSuppression: checked === true })
|
|
9555
9568
|
}
|
|
9556
9569
|
),
|
|
9557
|
-
"
|
|
9558
|
-
|
|
9570
|
+
/* @__PURE__ */ jsxs3("div", { className: "mx-meet__check-text", children: [
|
|
9571
|
+
/* @__PURE__ */ jsx4(Label, { htmlFor: "mx-meet-noise", children: "Noise suppression" }),
|
|
9572
|
+
/* @__PURE__ */ jsx4("span", { className: "mx-meet__hint", children: "Filters keyboards, fans and background chatter." })
|
|
9573
|
+
] })
|
|
9559
9574
|
] }),
|
|
9560
9575
|
supported ? /* @__PURE__ */ jsxs3("div", { className: "mx-meet__field", children: [
|
|
9561
|
-
/* @__PURE__ */ jsx4(
|
|
9562
|
-
/* @__PURE__ */ jsx4(
|
|
9563
|
-
|
|
9576
|
+
/* @__PURE__ */ jsx4(Label, { children: "Background" }),
|
|
9577
|
+
/* @__PURE__ */ jsx4(
|
|
9578
|
+
SegmentedControl,
|
|
9564
9579
|
{
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
"aria-checked": effects.effects.background === kind,
|
|
9568
|
-
className: effects.effects.background === kind ? "mx-meet__pill mx-meet__pill--on" : "mx-meet__pill",
|
|
9569
|
-
onClick: () => {
|
|
9580
|
+
value: effects.effects.background,
|
|
9581
|
+
onValueChange: (kind) => {
|
|
9570
9582
|
if (kind === "image") {
|
|
9571
9583
|
fileRef.current?.click();
|
|
9572
9584
|
return;
|
|
9573
9585
|
}
|
|
9574
9586
|
apply({ background: kind });
|
|
9575
9587
|
},
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9588
|
+
data: [
|
|
9589
|
+
{ value: "none", label: "None" },
|
|
9590
|
+
{ value: "blur", label: "Blur" },
|
|
9591
|
+
{ value: "image", label: "Picture\u2026" }
|
|
9592
|
+
]
|
|
9593
|
+
}
|
|
9594
|
+
),
|
|
9580
9595
|
/* @__PURE__ */ jsx4(
|
|
9581
9596
|
"input",
|
|
9582
9597
|
{
|
|
@@ -9960,10 +9975,10 @@ function PreJoinBody({
|
|
|
9960
9975
|
/* @__PURE__ */ jsxs3("div", { className: "mx-meet__field-row", children: [
|
|
9961
9976
|
/* @__PURE__ */ jsx4(DevicePicker, { kind: "audiooutput", label: "Speaker" }),
|
|
9962
9977
|
/* @__PURE__ */ jsxs3(
|
|
9963
|
-
|
|
9978
|
+
Button,
|
|
9964
9979
|
{
|
|
9965
9980
|
type: "button",
|
|
9966
|
-
|
|
9981
|
+
variant: "outline",
|
|
9967
9982
|
disabled: speakerTesting,
|
|
9968
9983
|
onClick: () => {
|
|
9969
9984
|
setSpeakerTesting(true);
|
|
@@ -9972,7 +9987,7 @@ function PreJoinBody({
|
|
|
9972
9987
|
);
|
|
9973
9988
|
},
|
|
9974
9989
|
children: [
|
|
9975
|
-
/* @__PURE__ */ jsx4(SpeakerIcon, {
|
|
9990
|
+
/* @__PURE__ */ jsx4(SpeakerIcon, {}),
|
|
9976
9991
|
" ",
|
|
9977
9992
|
speakerTesting ? "Playing\u2026" : "Test"
|
|
9978
9993
|
]
|
|
@@ -9981,35 +9996,36 @@ function PreJoinBody({
|
|
|
9981
9996
|
] }),
|
|
9982
9997
|
/* @__PURE__ */ jsx4(DevicePicker, { kind: "videoinput", label: "Camera" }),
|
|
9983
9998
|
/* @__PURE__ */ jsx4(EffectsSettings, { preview: preview.preview }),
|
|
9984
|
-
recording.consentNotice !== null ? /* @__PURE__ */ jsx4(
|
|
9999
|
+
recording.consentNotice !== null ? /* @__PURE__ */ jsx4(Alert, { variant: "info", children: /* @__PURE__ */ jsx4(AlertDescription, { children: recording.consentNotice }) }) : null,
|
|
9985
10000
|
/* @__PURE__ */ jsxs3("div", { className: "mx-meet__prejoin-actions", children: [
|
|
9986
|
-
/* @__PURE__ */ jsxs3("
|
|
10001
|
+
/* @__PURE__ */ jsxs3("div", { className: "mx-meet__check", children: [
|
|
9987
10002
|
/* @__PURE__ */ jsx4(
|
|
9988
|
-
|
|
10003
|
+
Checkbox,
|
|
9989
10004
|
{
|
|
9990
|
-
|
|
10005
|
+
id: "mx-meet-join-video",
|
|
9991
10006
|
checked: mode === "video",
|
|
9992
|
-
|
|
10007
|
+
onCheckedChange: (checked) => setMode(checked === true ? "video" : "audio")
|
|
9993
10008
|
}
|
|
9994
10009
|
),
|
|
9995
|
-
"Join with video"
|
|
10010
|
+
/* @__PURE__ */ jsx4(Label, { htmlFor: "mx-meet-join-video", children: "Join with video" })
|
|
9996
10011
|
] }),
|
|
9997
|
-
/* @__PURE__ */ jsxs3("
|
|
10012
|
+
/* @__PURE__ */ jsxs3("div", { className: "mx-meet__check", children: [
|
|
9998
10013
|
/* @__PURE__ */ jsx4(
|
|
9999
|
-
|
|
10014
|
+
Checkbox,
|
|
10000
10015
|
{
|
|
10001
|
-
|
|
10016
|
+
id: "mx-meet-join-mic",
|
|
10002
10017
|
checked: microphone,
|
|
10003
|
-
|
|
10018
|
+
onCheckedChange: (checked) => setMicrophone(checked === true)
|
|
10004
10019
|
}
|
|
10005
10020
|
),
|
|
10006
|
-
"Join with microphone"
|
|
10021
|
+
/* @__PURE__ */ jsx4(Label, { htmlFor: "mx-meet-join-mic", children: "Join with microphone" })
|
|
10007
10022
|
] }),
|
|
10008
10023
|
/* @__PURE__ */ jsx4(
|
|
10009
|
-
|
|
10024
|
+
Button,
|
|
10010
10025
|
{
|
|
10011
10026
|
type: "button",
|
|
10012
|
-
className: "mx-
|
|
10027
|
+
className: "mx-meet__join",
|
|
10028
|
+
disabled: joining,
|
|
10013
10029
|
onClick: () => {
|
|
10014
10030
|
setJoining(true);
|
|
10015
10031
|
preview.release();
|
|
@@ -10082,18 +10098,24 @@ function DevicePicker({
|
|
|
10082
10098
|
const devices = useDeviceSnapshot();
|
|
10083
10099
|
const list = devices?.devices[kind] ?? [];
|
|
10084
10100
|
if (list.length === 0) return null;
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10101
|
+
const triggerId = `mx-meet-device-${kind}`;
|
|
10102
|
+
const valueOf = (deviceId2) => deviceId2.length > 0 ? deviceId2 : "default";
|
|
10103
|
+
const current = devices?.selected[kind] ?? host.devices.resolve(kind) ?? "";
|
|
10104
|
+
return /* @__PURE__ */ jsxs3("div", { className: "mx-meet__field", children: [
|
|
10105
|
+
/* @__PURE__ */ jsx4(Label, { htmlFor: triggerId, children: label }),
|
|
10106
|
+
/* @__PURE__ */ jsxs3(
|
|
10107
|
+
Select,
|
|
10089
10108
|
{
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
if (onPick !== void 0) onPick(kind,
|
|
10094
|
-
else host.devices.select(kind,
|
|
10109
|
+
...current.length > 0 ? { value: valueOf(current) } : {},
|
|
10110
|
+
onValueChange: (value) => {
|
|
10111
|
+
const deviceId2 = list.find((device) => valueOf(device.deviceId) === value)?.deviceId ?? value;
|
|
10112
|
+
if (onPick !== void 0) onPick(kind, deviceId2);
|
|
10113
|
+
else host.devices.select(kind, deviceId2);
|
|
10095
10114
|
},
|
|
10096
|
-
children:
|
|
10115
|
+
children: [
|
|
10116
|
+
/* @__PURE__ */ jsx4(SelectTrigger, { id: triggerId, "aria-label": label, children: /* @__PURE__ */ jsx4(SelectValue, { placeholder: label }) }),
|
|
10117
|
+
/* @__PURE__ */ jsx4(SelectContent, { children: list.map((device) => /* @__PURE__ */ jsx4(SelectItem, { value: valueOf(device.deviceId), children: device.label.length > 0 ? device.label : `${label} (name hidden)` }, device.deviceId || "default")) })
|
|
10118
|
+
]
|
|
10097
10119
|
}
|
|
10098
10120
|
)
|
|
10099
10121
|
] });
|