@nivaro/react 0.3.0 → 0.3.2
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/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +341 -0
- package/dist/index.js +764 -723
- package/dist/shared/components/ClientChaosToolbar.js +410 -0
- package/dist/shared/components/LoadErrorNote.js +49 -0
- package/dist/shared/components/PretendDown.js +258 -0
- package/dist/shared/components/ProfileView.js +54 -49
- package/dist/shared/components/QueryErrorState.js +16 -0
- package/dist/shared/components/ReportView.js +1351 -1338
- package/dist/shared/components/WidgetSlot.js +438 -418
- package/dist/shared/components/chaos/DeclareIncidentButton.js +72 -0
- package/dist/shared/components/chaos/DrillBanner.js +119 -0
- package/dist/shared/components/chaos/DrillTag.js +62 -0
- package/dist/shared/components/chaos/GameDayStrip.js +61 -0
- package/dist/shared/components/chat/huddle/HuddleAudioUi.js +95 -92
- package/dist/shared/components/chat/huddle/HuddleCallBar.js +69 -64
- package/dist/shared/components/chat/huddle/HuddlePeoplePicker.js +40 -39
- package/dist/shared/components/chat/huddle/HuddleStageTools.js +30 -27
- package/dist/shared/components/chat/huddle/huddle-dismiss.js +12 -0
- package/dist/shared/components/chat/huddle/huddle-store.js +25 -20
- package/dist/shared/components/client-chaos-gate.js +51 -0
- package/dist/shared/components/integrations/console/SignalCard.js +172 -167
- package/dist/shared/components/layout-editor/EditorTopBar.js +108 -105
- package/dist/shared/components/layout-editor/LayoutEditor.js +514 -508
- package/dist/shared/components/notifications/NotificationAnalyticsView.js +18 -10
- package/dist/shared/components/pipeline/PipelineEditorView.js +495 -479
- package/dist/shared/components/pipeline/TeamsView.js +184 -169
- package/dist/shared/lib/client-chaos.js +359 -0
- package/dist/shared/lib/load-error.js +26 -0
- package/dist/shared/lib/socket-realtime.js +31 -30
- package/dist/shared/lib/worker-socket.js +108 -89
- package/package.json +1 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsxs as l, jsx as e, Fragment as
|
|
2
|
-
import { MicOff as
|
|
3
|
-
import { useState as m, useRef as b, useId as
|
|
4
|
-
import { toast as
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as U } from "react/jsx-runtime";
|
|
2
|
+
import { MicOff as X, WifiOff as _, ChevronDown as Q, Settings2 as q, Volume2 as z, Keyboard as Z } from "lucide-react";
|
|
3
|
+
import { useState as m, useRef as b, useId as ee, useCallback as P, useEffect as g, useMemo as te } from "react";
|
|
4
|
+
import { toast as ae } from "sonner";
|
|
5
5
|
import { cn as f } from "../../../lib/utils.js";
|
|
6
|
-
import { Popover as
|
|
6
|
+
import { Popover as y, PopoverTrigger as F, PopoverContent as N, PopoverAnchor as re } from "../../ui/popover.js";
|
|
7
7
|
import { SimpleSelect as D } from "../../ui/SimpleSelect.js";
|
|
8
|
-
import { Skeleton as
|
|
9
|
-
import { Switch as
|
|
10
|
-
import { createLevelMeter as
|
|
11
|
-
import { HUDDLE_SHORTCUTS as
|
|
12
|
-
import { loadDevicePrefs as
|
|
13
|
-
import { listAudioDevices as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
8
|
+
import { Skeleton as E } from "../../ui/skeleton.js";
|
|
9
|
+
import { Switch as ne } from "../../ui/switch.js";
|
|
10
|
+
import { createLevelMeter as se, speakerChoiceSupported as le, playTestTone as oe } from "./huddle-audio.js";
|
|
11
|
+
import { HUDDLE_SHORTCUTS as ie, qualityTip as ce, isPseudoDevice as de, meterFill as ue } from "./huddle-audio-logic.js";
|
|
12
|
+
import { loadDevicePrefs as pe } from "./huddle-device-prefs.js";
|
|
13
|
+
import { listAudioDevices as me, openMic as he, currentMicId as fe, applyDevicePrefs as A } from "./huddle-devices.js";
|
|
14
|
+
import { useCloseOnWindowBlur as H } from "./huddle-dismiss.js";
|
|
15
|
+
import { huddleShortcuts as v } from "./huddle-shortcuts.js";
|
|
16
|
+
import { huddleSpeaking as be } from "./huddle-speaking.js";
|
|
17
|
+
import { useHuddleShortcuts as xe } from "./useHuddleAudio.js";
|
|
18
|
+
function We({
|
|
18
19
|
speaking: r,
|
|
19
20
|
children: n
|
|
20
21
|
}) {
|
|
@@ -33,14 +34,14 @@ function Fe({
|
|
|
33
34
|
)
|
|
34
35
|
] });
|
|
35
36
|
}
|
|
36
|
-
const
|
|
37
|
+
const ke = {
|
|
37
38
|
4: "bg-emerald-500 dark:bg-emerald-400",
|
|
38
39
|
3: "bg-emerald-500 dark:bg-emerald-400",
|
|
39
40
|
2: "bg-amber-500 dark:bg-amber-400",
|
|
40
41
|
1: "bg-red-500 dark:bg-red-400"
|
|
41
42
|
};
|
|
42
|
-
function
|
|
43
|
-
const s = (n == null ? void 0 : n.bars) ?? 0, i =
|
|
43
|
+
function $e({ name: r, quality: n }) {
|
|
44
|
+
const s = (n == null ? void 0 : n.bars) ?? 0, i = ce(r, n);
|
|
44
45
|
return /* @__PURE__ */ e(
|
|
45
46
|
"span",
|
|
46
47
|
{
|
|
@@ -54,7 +55,7 @@ function He({ name: r, quality: n }) {
|
|
|
54
55
|
{
|
|
55
56
|
className: f(
|
|
56
57
|
"w-[2px] rounded-[1px]",
|
|
57
|
-
a <= s ?
|
|
58
|
+
a <= s ? ke[s] : "bg-slate-300 dark:bg-slate-600"
|
|
58
59
|
),
|
|
59
60
|
style: { height: `${3 + a * 2}px` }
|
|
60
61
|
},
|
|
@@ -63,7 +64,7 @@ function He({ name: r, quality: n }) {
|
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function Ge({ sharing: r }) {
|
|
67
68
|
return /* @__PURE__ */ l(
|
|
68
69
|
"div",
|
|
69
70
|
{
|
|
@@ -71,7 +72,7 @@ function We({ sharing: r }) {
|
|
|
71
72
|
className: "mt-1.5 flex items-start gap-1.5 rounded-md border border-amber-200 bg-amber-50 px-2 py-1 text-[11.5px] text-amber-800 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-200",
|
|
72
73
|
"data-huddle-poor": !0,
|
|
73
74
|
children: [
|
|
74
|
-
/* @__PURE__ */ e(
|
|
75
|
+
/* @__PURE__ */ e(_, { className: "mt-px h-3.5 w-3.5 shrink-0", strokeWidth: 2 }),
|
|
75
76
|
/* @__PURE__ */ l("span", { children: [
|
|
76
77
|
"Your connection is poor — others may hear you break up.",
|
|
77
78
|
r && " Your shared screen is sent at a lower quality until it recovers."
|
|
@@ -80,7 +81,7 @@ function We({ sharing: r }) {
|
|
|
80
81
|
}
|
|
81
82
|
);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function Be() {
|
|
84
85
|
return /* @__PURE__ */ l(
|
|
85
86
|
"span",
|
|
86
87
|
{
|
|
@@ -88,18 +89,18 @@ function $e() {
|
|
|
88
89
|
className: "inline-flex h-6 items-center gap-1 rounded-full bg-red-50 px-2 text-[11px] font-medium text-red-700 motion-safe:animate-in motion-safe:fade-in motion-safe:duration-150 dark:bg-red-500/15 dark:text-red-200",
|
|
89
90
|
"data-huddle-muted-talking": !0,
|
|
90
91
|
children: [
|
|
91
|
-
/* @__PURE__ */ e(
|
|
92
|
+
/* @__PURE__ */ e(X, { className: "h-3 w-3", strokeWidth: 2 }),
|
|
92
93
|
"You are muted — hold Space to talk"
|
|
93
94
|
]
|
|
94
95
|
}
|
|
95
96
|
);
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
+
function ge({ read: r }) {
|
|
98
99
|
const n = b(null), s = b(r);
|
|
99
100
|
return s.current = r, g(() => {
|
|
100
101
|
let i = 0, a = 0;
|
|
101
102
|
const u = () => {
|
|
102
|
-
const c =
|
|
103
|
+
const c = ue(s.current());
|
|
103
104
|
a = c > a ? c : a * 0.85 + c * 0.15, n.current && (n.current.style.transform = `scaleX(${a.toFixed(3)})`), i = requestAnimationFrame(u);
|
|
104
105
|
};
|
|
105
106
|
return i = requestAnimationFrame(u), () => cancelAnimationFrame(i);
|
|
@@ -120,8 +121,8 @@ function ke({ read: r }) {
|
|
|
120
121
|
}
|
|
121
122
|
);
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
-
const s = r.find((a) => a.deviceId === "default"), i = r.filter((a) => !
|
|
124
|
+
function L(r, n) {
|
|
125
|
+
const s = r.find((a) => a.deviceId === "default"), i = r.filter((a) => !de(a));
|
|
125
126
|
return [
|
|
126
127
|
{
|
|
127
128
|
value: "",
|
|
@@ -130,7 +131,7 @@ function A(r, n) {
|
|
|
130
131
|
...i.map((a, u) => ({ value: a.deviceId, label: a.label || `${n} ${u + 1}` }))
|
|
131
132
|
];
|
|
132
133
|
}
|
|
133
|
-
const
|
|
134
|
+
const ve = [
|
|
134
135
|
{ key: "noiseSuppression", label: "Noise suppression", hint: "Filters out typing and fans" },
|
|
135
136
|
{
|
|
136
137
|
key: "echoCancellation",
|
|
@@ -139,14 +140,14 @@ const ge = [
|
|
|
139
140
|
},
|
|
140
141
|
{ key: "autoGainControl", label: "Automatic volume", hint: "Evens out how loud you sound" }
|
|
141
142
|
];
|
|
142
|
-
function
|
|
143
|
+
function W({
|
|
143
144
|
mode: r,
|
|
144
145
|
muted: n,
|
|
145
146
|
onJoin: s,
|
|
146
147
|
onShortcuts: i
|
|
147
148
|
}) {
|
|
148
|
-
const [a, u] = m(
|
|
149
|
-
|
|
149
|
+
const [a, u] = m(pe), [c, G] = m(null), [w, C] = m(null), [S, I] = m(!1), h = b(null), x = le(), O = ee(), p = P(() => {
|
|
150
|
+
me().then(G);
|
|
150
151
|
}, []);
|
|
151
152
|
g(() => {
|
|
152
153
|
var o;
|
|
@@ -157,7 +158,7 @@ function H({
|
|
|
157
158
|
return (d = t == null ? void 0 : t.removeEventListener) == null ? void 0 : d.call(t, "devicechange", p);
|
|
158
159
|
};
|
|
159
160
|
}, [p]);
|
|
160
|
-
const T =
|
|
161
|
+
const T = te(
|
|
161
162
|
() => ({
|
|
162
163
|
micId: a.micId,
|
|
163
164
|
speakerId: null,
|
|
@@ -170,59 +171,59 @@ function H({
|
|
|
170
171
|
g(() => {
|
|
171
172
|
if (r !== "prejoin") return;
|
|
172
173
|
let t = !1;
|
|
173
|
-
return
|
|
174
|
+
return C(null), he(T).then((o) => {
|
|
174
175
|
if (t) {
|
|
175
176
|
for (const d of o.getTracks()) d.stop();
|
|
176
177
|
return;
|
|
177
178
|
}
|
|
178
|
-
h.current = { stream: o, meter:
|
|
179
|
+
h.current = { stream: o, meter: se(o) }, p();
|
|
179
180
|
}).catch((o) => {
|
|
180
|
-
t ||
|
|
181
|
+
t || C(
|
|
181
182
|
(o == null ? void 0 : o.name) === "NotAllowedError" ? "Microphone access is blocked for this site." : "This microphone could not be started."
|
|
182
183
|
);
|
|
183
184
|
}), () => {
|
|
184
185
|
var o, d, M;
|
|
185
186
|
t = !0, (d = (o = h.current) == null ? void 0 : o.meter) == null || d.stop();
|
|
186
|
-
for (const
|
|
187
|
+
for (const V of ((M = h.current) == null ? void 0 : M.stream.getTracks()) ?? []) V.stop();
|
|
187
188
|
h.current = null;
|
|
188
189
|
};
|
|
189
190
|
}, [r, T, p]);
|
|
190
|
-
const
|
|
191
|
+
const B = P(
|
|
191
192
|
() => {
|
|
192
193
|
var t, o;
|
|
193
|
-
return r === "live" ?
|
|
194
|
+
return r === "live" ? be.selfLevel() : ((o = (t = h.current) == null ? void 0 : t.meter) == null ? void 0 : o.level()) ?? 0;
|
|
194
195
|
},
|
|
195
196
|
[r]
|
|
196
197
|
), k = async (t) => {
|
|
197
198
|
if (u((d) => ({ ...d, ...t })), r === "prejoin") {
|
|
198
|
-
await
|
|
199
|
+
await A(t);
|
|
199
200
|
return;
|
|
200
201
|
}
|
|
201
|
-
await
|
|
202
|
+
await A(t) || ae.error("That microphone could not be started — still using the previous one.");
|
|
202
203
|
}, R = async () => {
|
|
203
|
-
|
|
204
|
+
I(!0);
|
|
204
205
|
try {
|
|
205
|
-
await
|
|
206
|
+
await oe(x ? a.speakerId ?? "" : "");
|
|
206
207
|
} finally {
|
|
207
|
-
|
|
208
|
+
I(!1);
|
|
208
209
|
}
|
|
209
|
-
},
|
|
210
|
+
}, K = r === "live" ? fe() : null, Y = a.micId && (c != null && c.mics.some((t) => t.deviceId === a.micId)) ? a.micId : "", J = a.speakerId && (c != null && c.speakers.some((t) => t.deviceId === a.speakerId)) ? a.speakerId : "", j = "h-7 w-full gap-1 rounded-md border-slate-200 bg-white px-2 text-left text-[12px] dark:border-border dark:bg-card [&>span]:min-w-0 [&>span]:flex-1 [&>span]:truncate";
|
|
210
211
|
return /* @__PURE__ */ l("div", { className: "flex flex-col gap-3 text-[12px]", "data-huddle-devices": r, children: [
|
|
211
212
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
|
|
212
213
|
/* @__PURE__ */ e("span", { className: "text-[11.5px] font-medium text-slate-700 dark:text-slate-200", children: "Microphone" }),
|
|
213
214
|
c ? /* @__PURE__ */ e(
|
|
214
215
|
D,
|
|
215
216
|
{
|
|
216
|
-
value:
|
|
217
|
+
value: Y,
|
|
217
218
|
onChange: (t) => void k({ micId: t || null }),
|
|
218
|
-
options:
|
|
219
|
+
options: L(c.mics, "Microphone"),
|
|
219
220
|
ariaLabel: "Microphone",
|
|
220
221
|
className: j,
|
|
221
|
-
triggerProps: { "data-huddle-mic":
|
|
222
|
+
triggerProps: { "data-huddle-mic": K ?? "" }
|
|
222
223
|
}
|
|
223
|
-
) : /* @__PURE__ */ e(
|
|
224
|
-
|
|
225
|
-
/* @__PURE__ */ e(
|
|
224
|
+
) : /* @__PURE__ */ e(E, { className: "h-7 w-full" }),
|
|
225
|
+
w ? /* @__PURE__ */ e("span", { className: "text-[11px] text-red-600 dark:text-red-300", role: "alert", children: w }) : /* @__PURE__ */ l(U, { children: [
|
|
226
|
+
/* @__PURE__ */ e(ge, { read: B }),
|
|
226
227
|
/* @__PURE__ */ e("span", { className: "text-[11px] text-slate-500 dark:text-slate-400", children: r === "live" && n ? "You are muted — the bar still shows your level, nobody hears it." : "Say something — the bar should move." })
|
|
227
228
|
] })
|
|
228
229
|
] }),
|
|
@@ -232,41 +233,41 @@ function H({
|
|
|
232
233
|
x && (c ? /* @__PURE__ */ e(
|
|
233
234
|
D,
|
|
234
235
|
{
|
|
235
|
-
value:
|
|
236
|
+
value: J,
|
|
236
237
|
onChange: (t) => void k({ speakerId: t || null }),
|
|
237
|
-
options:
|
|
238
|
+
options: L(c.speakers, "Speaker"),
|
|
238
239
|
ariaLabel: "Speaker",
|
|
239
240
|
className: f(j, "min-w-0 flex-1")
|
|
240
241
|
}
|
|
241
|
-
) : /* @__PURE__ */ e(
|
|
242
|
+
) : /* @__PURE__ */ e(E, { className: "h-7 min-w-0 flex-1" })),
|
|
242
243
|
/* @__PURE__ */ l(
|
|
243
244
|
"button",
|
|
244
245
|
{
|
|
245
246
|
type: "button",
|
|
246
247
|
onClick: () => void R(),
|
|
247
|
-
disabled:
|
|
248
|
+
disabled: S,
|
|
248
249
|
className: f(
|
|
249
250
|
"flex h-7 shrink-0 items-center gap-1 rounded-md border border-slate-200 bg-white px-2 text-[11.5px] font-medium text-slate-700 transition-colors hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan disabled:opacity-60 dark:border-border dark:bg-card dark:text-slate-200 dark:hover:bg-white/5",
|
|
250
251
|
!x && "self-start"
|
|
251
252
|
),
|
|
252
253
|
"data-huddle-test-speaker": !0,
|
|
253
254
|
children: [
|
|
254
|
-
/* @__PURE__ */ e(
|
|
255
|
-
|
|
255
|
+
/* @__PURE__ */ e(z, { className: "h-3.5 w-3.5", strokeWidth: 2 }),
|
|
256
|
+
S ? "Playing…" : "Test speaker"
|
|
256
257
|
]
|
|
257
258
|
}
|
|
258
259
|
)
|
|
259
260
|
] })
|
|
260
261
|
] }),
|
|
261
|
-
/* @__PURE__ */ e("div", { className: "flex flex-col gap-2 border-t border-slate-200 pt-2.5 dark:border-border", children:
|
|
262
|
-
/* @__PURE__ */ l("label", { htmlFor: `${
|
|
262
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-2 border-t border-slate-200 pt-2.5 dark:border-border", children: ve.map((t) => /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3", children: [
|
|
263
|
+
/* @__PURE__ */ l("label", { htmlFor: `${O}-${t.key}`, className: "flex min-w-0 cursor-pointer flex-col", children: [
|
|
263
264
|
/* @__PURE__ */ e("span", { className: "text-[12px] text-slate-700 dark:text-slate-200", children: t.label }),
|
|
264
265
|
/* @__PURE__ */ e("span", { className: "text-[11px] text-slate-500 dark:text-slate-400", children: t.hint })
|
|
265
266
|
] }),
|
|
266
267
|
/* @__PURE__ */ e(
|
|
267
|
-
|
|
268
|
+
ne,
|
|
268
269
|
{
|
|
269
|
-
id: `${
|
|
270
|
+
id: `${O}-${t.key}`,
|
|
270
271
|
checked: a[t.key],
|
|
271
272
|
onCheckedChange: (o) => void k({ [t.key]: o }),
|
|
272
273
|
className: "h-4 w-7 [&>span]:h-3 [&>span]:w-3 [&>span]:data-[state=checked]:translate-x-3",
|
|
@@ -291,22 +292,24 @@ function H({
|
|
|
291
292
|
className: "flex items-center justify-between rounded-md px-1 py-0.5 text-[11.5px] text-slate-600 transition-colors hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan dark:text-slate-300 dark:hover:bg-white/10",
|
|
292
293
|
children: [
|
|
293
294
|
/* @__PURE__ */ l("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
294
|
-
/* @__PURE__ */ e(
|
|
295
|
+
/* @__PURE__ */ e(Z, { className: "h-3.5 w-3.5", strokeWidth: 2 }),
|
|
295
296
|
"Keyboard shortcuts"
|
|
296
297
|
] }),
|
|
297
|
-
/* @__PURE__ */ e(
|
|
298
|
+
/* @__PURE__ */ e($, { children: "?" })
|
|
298
299
|
]
|
|
299
300
|
}
|
|
300
301
|
)
|
|
301
302
|
] });
|
|
302
303
|
}
|
|
303
|
-
function
|
|
304
|
+
function Re({
|
|
304
305
|
muted: r,
|
|
305
306
|
variant: n = "gear"
|
|
306
307
|
}) {
|
|
307
|
-
const [s, i] = m(!1)
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
const [s, i] = m(!1);
|
|
309
|
+
H(s, () => i(!1));
|
|
310
|
+
const a = b(!1);
|
|
311
|
+
return /* @__PURE__ */ l(y, { open: s, onOpenChange: i, children: [
|
|
312
|
+
/* @__PURE__ */ e(F, { asChild: !0, children: /* @__PURE__ */ e(
|
|
310
313
|
"button",
|
|
311
314
|
{
|
|
312
315
|
type: "button",
|
|
@@ -318,19 +321,19 @@ function Ge({
|
|
|
318
321
|
"aria-label": "Microphone and speaker settings",
|
|
319
322
|
"data-tip": "Microphone and speaker",
|
|
320
323
|
"data-huddle-device-button": !0,
|
|
321
|
-
children: n === "chevron" ? /* @__PURE__ */ e(
|
|
324
|
+
children: n === "chevron" ? /* @__PURE__ */ e(Q, { className: "h-3 w-3", strokeWidth: 2.25 }) : /* @__PURE__ */ e(q, { className: "h-3.5 w-3.5", strokeWidth: 2 })
|
|
322
325
|
}
|
|
323
326
|
) }),
|
|
324
327
|
/* @__PURE__ */ e(
|
|
325
|
-
|
|
328
|
+
N,
|
|
326
329
|
{
|
|
327
330
|
align: n === "chevron" ? "start" : "end",
|
|
328
331
|
className: "w-72 p-3",
|
|
329
332
|
onCloseAutoFocus: (u) => {
|
|
330
|
-
a.current && (a.current = !1, u.preventDefault(),
|
|
333
|
+
a.current && (a.current = !1, u.preventDefault(), v.setHelpOpen(!0));
|
|
331
334
|
},
|
|
332
335
|
children: s && /* @__PURE__ */ e(
|
|
333
|
-
|
|
336
|
+
W,
|
|
334
337
|
{
|
|
335
338
|
mode: "live",
|
|
336
339
|
muted: r,
|
|
@@ -343,20 +346,20 @@ function Ge({
|
|
|
343
346
|
)
|
|
344
347
|
] });
|
|
345
348
|
}
|
|
346
|
-
function
|
|
349
|
+
function Ke({
|
|
347
350
|
onJoin: r,
|
|
348
351
|
children: n
|
|
349
352
|
}) {
|
|
350
353
|
const [s, i] = m(!1);
|
|
351
|
-
return /* @__PURE__ */ l(
|
|
352
|
-
/* @__PURE__ */ e(
|
|
353
|
-
/* @__PURE__ */ e(
|
|
354
|
+
return /* @__PURE__ */ l(y, { open: s, onOpenChange: i, children: [
|
|
355
|
+
/* @__PURE__ */ e(F, { asChild: !0, children: n }),
|
|
356
|
+
/* @__PURE__ */ e(N, { align: "end", className: "w-72 p-3", children: s && /* @__PURE__ */ l("div", { className: "flex flex-col gap-2.5", children: [
|
|
354
357
|
/* @__PURE__ */ l("div", { className: "flex flex-col", children: [
|
|
355
358
|
/* @__PURE__ */ e("span", { className: "text-[12.5px] font-semibold text-slate-800 dark:text-slate-100", children: "Check before you join" }),
|
|
356
359
|
/* @__PURE__ */ e("span", { className: "text-[11px] text-slate-500 dark:text-slate-400", children: "Pick a microphone and make sure the bar moves when you talk." })
|
|
357
360
|
] }),
|
|
358
361
|
/* @__PURE__ */ e(
|
|
359
|
-
|
|
362
|
+
W,
|
|
360
363
|
{
|
|
361
364
|
mode: "prejoin",
|
|
362
365
|
onJoin: () => {
|
|
@@ -367,31 +370,31 @@ function Re({
|
|
|
367
370
|
] }) })
|
|
368
371
|
] });
|
|
369
372
|
}
|
|
370
|
-
function
|
|
373
|
+
function $({ children: r }) {
|
|
371
374
|
return /* @__PURE__ */ e("kbd", { className: "inline-flex h-5 min-w-5 items-center justify-center rounded border border-slate-200 bg-slate-50 px-1 font-sans text-[10.5px] font-medium text-slate-600 dark:border-border dark:bg-muted dark:text-slate-300", children: r });
|
|
372
375
|
}
|
|
373
|
-
function
|
|
374
|
-
const { helpOpen: r } =
|
|
375
|
-
return /* @__PURE__ */ l(
|
|
376
|
-
/* @__PURE__ */ e(
|
|
377
|
-
/* @__PURE__ */ l(
|
|
376
|
+
function Ye() {
|
|
377
|
+
const { helpOpen: r } = xe();
|
|
378
|
+
return H(r, () => v.setHelpOpen(!1)), /* @__PURE__ */ l(y, { open: r, onOpenChange: (n) => v.setHelpOpen(n), children: [
|
|
379
|
+
/* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "w-0 self-stretch" }) }),
|
|
380
|
+
/* @__PURE__ */ l(N, { align: "end", className: "w-64 p-3", "data-huddle-shortcuts": !0, children: [
|
|
378
381
|
/* @__PURE__ */ e("div", { className: "mb-2 text-[12.5px] font-semibold text-slate-800 dark:text-slate-100", children: "Huddle shortcuts" }),
|
|
379
|
-
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-1.5", children:
|
|
382
|
+
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-1.5", children: ie.map((n) => /* @__PURE__ */ l("li", { className: "flex items-center justify-between gap-3 text-[12px]", children: [
|
|
380
383
|
/* @__PURE__ */ e("span", { className: "text-slate-600 dark:text-slate-300", children: n.label }),
|
|
381
|
-
/* @__PURE__ */ e("span", { className: "flex shrink-0 items-center gap-0.5", children: n.keys.map((s) => /* @__PURE__ */ e(
|
|
384
|
+
/* @__PURE__ */ e("span", { className: "flex shrink-0 items-center gap-0.5", children: n.keys.map((s) => /* @__PURE__ */ e($, { children: s }, s)) })
|
|
382
385
|
] }, n.label)) }),
|
|
383
386
|
/* @__PURE__ */ e("p", { className: "mt-2.5 text-[11px] text-slate-500 dark:text-slate-400", children: "These work while you are in a huddle and not typing in a field. While you share, L asks once more before leaving." })
|
|
384
387
|
] })
|
|
385
388
|
] });
|
|
386
389
|
}
|
|
387
390
|
export {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
391
|
+
W as DevicePanel,
|
|
392
|
+
Re as DeviceSettingsButton,
|
|
393
|
+
ge as LevelMeter,
|
|
394
|
+
Be as MutedTalkingHint,
|
|
395
|
+
Ge as PoorConnectionBanner,
|
|
396
|
+
Ke as PreJoinCheck,
|
|
397
|
+
$e as QualityBars,
|
|
398
|
+
Ye as ShortcutSheetAnchor,
|
|
399
|
+
We as SpeakingRing
|
|
397
400
|
};
|