@nivaro/react 0.2.55 → 0.3.0
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/components/slots/TasksSlot.js +31 -29
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +101 -1
- package/dist/index.js +538 -525
- package/dist/shared/components/ItemEditForm.js +666 -658
- package/dist/shared/components/MyWorkView.js +47 -37
- package/dist/shared/components/ProfileView.js +163 -144
- package/dist/shared/components/ai/AiPlanCard.js +427 -0
- package/dist/shared/components/ai/AiPlanChanges.js +117 -0
- package/dist/shared/components/ai/TaskDo.js +1022 -0
- package/dist/shared/components/chat/ChatAnalyticsView.js +19 -17
- package/dist/shared/components/chat/ChatPanel.js +1356 -1317
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +198 -0
- package/dist/shared/components/chat/RoomHeaderMenu.js +78 -65
- package/dist/shared/components/chat/chat-core.js +273 -264
- package/dist/shared/components/chat/huddle/HuddleAudioUi.js +397 -0
- package/dist/shared/components/chat/huddle/HuddleCallBar.js +296 -0
- package/dist/shared/components/chat/huddle/HuddleCallLayer.js +180 -0
- package/dist/shared/components/chat/huddle/HuddleCamera.js +124 -0
- package/dist/shared/components/chat/huddle/HuddleCollab.js +320 -0
- package/dist/shared/components/chat/huddle/HuddleControls.js +82 -121
- package/dist/shared/components/chat/huddle/HuddleDraw.js +231 -0
- package/dist/shared/components/chat/huddle/HuddleLiveBadge.js +52 -0
- package/dist/shared/components/chat/huddle/HuddlePeoplePicker.js +143 -0
- package/dist/shared/components/chat/huddle/HuddleScheduleCard.js +190 -0
- package/dist/shared/components/chat/huddle/HuddleScheduleForm.js +188 -0
- package/dist/shared/components/chat/huddle/HuddleStage.js +184 -89
- package/dist/shared/components/chat/huddle/HuddleStageTools.js +197 -0
- package/dist/shared/components/chat/huddle/huddle-audio-logic.js +156 -0
- package/dist/shared/components/chat/huddle/huddle-audio.js +69 -0
- package/dist/shared/components/chat/huddle/huddle-calls.js +129 -0
- package/dist/shared/components/chat/huddle/huddle-camera.js +143 -0
- package/dist/shared/components/chat/huddle/huddle-collab-store.js +391 -0
- package/dist/shared/components/chat/huddle/huddle-device-prefs.js +55 -0
- package/dist/shared/components/chat/huddle/huddle-devices.js +99 -0
- package/dist/shared/components/chat/huddle/huddle-draw.js +226 -0
- package/dist/shared/components/chat/huddle/huddle-follow-bus.js +96 -0
- package/dist/shared/components/chat/huddle/huddle-hold.js +62 -0
- package/dist/shared/components/chat/huddle/huddle-link-quality.js +159 -0
- package/dist/shared/components/chat/huddle/huddle-live.js +82 -0
- package/dist/shared/components/chat/huddle/huddle-pip.js +343 -0
- package/dist/shared/components/chat/huddle/huddle-quality.js +22 -0
- package/dist/shared/components/chat/huddle/huddle-reactions.js +71 -0
- package/dist/shared/components/chat/huddle/huddle-ring-refused.js +34 -0
- package/dist/shared/components/chat/huddle/huddle-schedule.js +102 -0
- package/dist/shared/components/chat/huddle/huddle-sfu.js +176 -0
- package/dist/shared/components/chat/huddle/huddle-shortcuts.js +91 -0
- package/dist/shared/components/chat/huddle/huddle-speaking.js +100 -0
- package/dist/shared/components/chat/huddle/huddle-store.js +431 -157
- package/dist/shared/components/chat/huddle/useHuddle.js +46 -38
- package/dist/shared/components/chat/huddle/useHuddleAudio.js +35 -0
- package/dist/shared/components/item-edit/GroupSection.js +1 -0
- package/dist/shared/components/item-edit/RecordChatActions.js +68 -59
- package/dist/shared/components/item-edit/UserChip.js +145 -142
- package/dist/shared/components/panels/TaskPanel.js +51 -49
- package/dist/shared/components/support/TicketDetailSheet.js +57 -42
- package/dist/shared/lib/notification-sound.js +25 -16
- package/dist/shared/lib/stale-chunk.js +60 -0
- package/package.json +2 -1
|
@@ -8,13 +8,14 @@ import { cn as v, formatDateTime as f, formatRelative as V } from "../../lib/uti
|
|
|
8
8
|
import { TipLayer as ue } from "../TipLayer.js";
|
|
9
9
|
import { ChannelsAdminTab as ge } from "./ChannelArchive.js";
|
|
10
10
|
import { useUserSearch as ke } from "./chat-core.js";
|
|
11
|
+
import { HuddleAnalyticsTab as Ne } from "./HuddleAnalyticsTab.js";
|
|
11
12
|
const U = {
|
|
12
13
|
dm: "Direct message",
|
|
13
14
|
group: "Group conversation",
|
|
14
15
|
channel: "Channel",
|
|
15
16
|
general: "General",
|
|
16
17
|
record: "Record room"
|
|
17
|
-
},
|
|
18
|
+
}, fe = {
|
|
18
19
|
dm: "DM",
|
|
19
20
|
group: "Group",
|
|
20
21
|
channel: "Channel",
|
|
@@ -135,7 +136,7 @@ function Y({
|
|
|
135
136
|
] }, r.room)) })
|
|
136
137
|
] });
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
+
function ve({ onOpenRoom: s }) {
|
|
139
140
|
const i = z(), [o, h] = b(30), { data: r, isLoading: a, isError: p, refetch: u, isFetching: c } = K({
|
|
140
141
|
queryKey: ["nvr-chat-analytics", o],
|
|
141
142
|
queryFn: () => i.request(A("/chat/admin/analytics", { days: o })).then((d) => d.data),
|
|
@@ -379,13 +380,13 @@ function ee(s) {
|
|
|
379
380
|
return s.kind === "group" && s.participant_count ? `${s.room_label} · ${s.participant_count} people` : s.room_label;
|
|
380
381
|
}
|
|
381
382
|
function te({ kind: s }) {
|
|
382
|
-
return /* @__PURE__ */ e("span", { className: "inline-flex shrink-0 rounded border border-slate-200 px-1.5 text-[10.5px] font-medium text-slate-600 dark:border-border dark:text-slate-300", children:
|
|
383
|
+
return /* @__PURE__ */ e("span", { className: "inline-flex shrink-0 rounded border border-slate-200 px-1.5 text-[10.5px] font-medium text-slate-600 dark:border-border dark:text-slate-300", children: fe[s] });
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
+
function ye({
|
|
385
386
|
room: s,
|
|
386
387
|
onRoomChange: i
|
|
387
388
|
}) {
|
|
388
|
-
const o = z(), [h, r] = b(null), [a, p] = b(null), [u, c] = b([]), [m, n] = b(""), [x, y] = b(""), [d, k] = b(""), [w, _] = b(""), [E, ae] = b(!1), [W, se] = b(!1), [M, F] = b(1), [D, R] = b(null), I = 50,
|
|
389
|
+
const o = z(), [h, r] = b(null), [a, p] = b(null), [u, c] = b([]), [m, n] = b(""), [x, y] = b(""), [d, k] = b(""), [w, _] = b(""), [E, ae] = b(!1), [W, se] = b(!1), [M, F] = b(1), [D, R] = b(null), I = 50, H = {
|
|
389
390
|
...h ? { sender: h.id } : {},
|
|
390
391
|
...a ? { participant: a.id } : {},
|
|
391
392
|
...s ? { room: s.room } : {},
|
|
@@ -398,10 +399,10 @@ function ve({
|
|
|
398
399
|
page: M,
|
|
399
400
|
limit: I
|
|
400
401
|
}, { data: $, isLoading: j, isError: re, isFetching: le } = K({
|
|
401
|
-
queryKey: ["nvr-chat-admin-messages",
|
|
402
|
-
queryFn: () => o.request(A("/chat/admin/messages",
|
|
402
|
+
queryKey: ["nvr-chat-admin-messages", H],
|
|
403
|
+
queryFn: () => o.request(A("/chat/admin/messages", H)),
|
|
403
404
|
placeholderData: (l) => l
|
|
404
|
-
}),
|
|
405
|
+
}), G = ($ == null ? void 0 : $.data) ?? [], T = ($ == null ? void 0 : $.total) ?? 0, L = Math.max(1, Math.ceil(T / I)), N = () => F(1);
|
|
405
406
|
return /* @__PURE__ */ t("div", { className: "space-y-3", children: [
|
|
406
407
|
/* @__PURE__ */ t(
|
|
407
408
|
"p",
|
|
@@ -598,14 +599,14 @@ function ve({
|
|
|
598
599
|
)
|
|
599
600
|
] })
|
|
600
601
|
] }),
|
|
601
|
-
re ? /* @__PURE__ */ e("p", { className: "px-3 py-6 text-center text-[12.5px] text-red-600 dark:text-red-400", children: "Couldn't load messages." }) : !j &&
|
|
602
|
+
re ? /* @__PURE__ */ e("p", { className: "px-3 py-6 text-center text-[12.5px] text-red-600 dark:text-red-400", children: "Couldn't load messages." }) : !j && G.length === 0 ? /* @__PURE__ */ e("p", { className: "px-3 py-8 text-center text-[12.5px] text-slate-500 dark:text-slate-400", children: "No messages match these filters." }) : /* @__PURE__ */ t("table", { className: "w-full table-fixed text-[12.5px]", children: [
|
|
602
603
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { className: "border-b border-slate-100 text-left text-[10.5px] uppercase tracking-[0.06em] text-slate-500 dark:border-border/60 dark:text-slate-400", children: [
|
|
603
604
|
/* @__PURE__ */ e("th", { className: "w-[132px] px-3 py-1.5 font-medium", children: "When" }),
|
|
604
605
|
/* @__PURE__ */ e("th", { className: "w-[150px] px-2 py-1.5 font-medium", children: "From" }),
|
|
605
606
|
/* @__PURE__ */ e("th", { className: "w-[220px] px-2 py-1.5 font-medium", children: "Where" }),
|
|
606
607
|
/* @__PURE__ */ e("th", { className: "px-2 py-1.5 font-medium", children: "Message" })
|
|
607
608
|
] }) }),
|
|
608
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
609
|
+
/* @__PURE__ */ e("tbody", { children: G.map((l) => /* @__PURE__ */ t(
|
|
609
610
|
"tr",
|
|
610
611
|
{
|
|
611
612
|
onClick: () => R(l.id),
|
|
@@ -659,7 +660,7 @@ function ve({
|
|
|
659
660
|
] })
|
|
660
661
|
] }),
|
|
661
662
|
D != null && /* @__PURE__ */ e(
|
|
662
|
-
|
|
663
|
+
we,
|
|
663
664
|
{
|
|
664
665
|
id: D,
|
|
665
666
|
onClose: () => R(null),
|
|
@@ -699,7 +700,7 @@ function B({ m: s, target: i }) {
|
|
|
699
700
|
}
|
|
700
701
|
);
|
|
701
702
|
}
|
|
702
|
-
function
|
|
703
|
+
function we({
|
|
703
704
|
id: s,
|
|
704
705
|
onClose: i,
|
|
705
706
|
onRoom: o
|
|
@@ -915,14 +916,15 @@ function ye({
|
|
|
915
916
|
}
|
|
916
917
|
);
|
|
917
918
|
}
|
|
918
|
-
function
|
|
919
|
+
function qe() {
|
|
919
920
|
const [s, i] = b("overview"), [o, h] = b(null);
|
|
920
921
|
return /* @__PURE__ */ t("div", { className: "space-y-4", "data-chat-analytics": !0, children: [
|
|
921
922
|
/* @__PURE__ */ e(ue, {}),
|
|
922
923
|
/* @__PURE__ */ e("div", { className: "flex gap-1 border-b border-slate-200 dark:border-border", role: "tablist", children: [
|
|
923
924
|
["overview", "Overview"],
|
|
924
925
|
["messages", "Messages"],
|
|
925
|
-
["channels", "Channels"]
|
|
926
|
+
["channels", "Channels"],
|
|
927
|
+
["huddles", "Huddles"]
|
|
926
928
|
].map(([r, a]) => /* @__PURE__ */ e(
|
|
927
929
|
"button",
|
|
928
930
|
{
|
|
@@ -940,15 +942,15 @@ function je() {
|
|
|
940
942
|
r
|
|
941
943
|
)) }),
|
|
942
944
|
s === "overview" ? /* @__PURE__ */ e(
|
|
943
|
-
|
|
945
|
+
ve,
|
|
944
946
|
{
|
|
945
947
|
onOpenRoom: (r, a) => {
|
|
946
948
|
h({ room: r, label: a }), i("messages");
|
|
947
949
|
}
|
|
948
950
|
}
|
|
949
|
-
) : s === "channels" ? /* @__PURE__ */ e(ge, {}) : /* @__PURE__ */ e(
|
|
951
|
+
) : s === "channels" ? /* @__PURE__ */ e(ge, {}) : s === "huddles" ? /* @__PURE__ */ e(Ne, {}) : /* @__PURE__ */ e(ye, { room: o, onRoomChange: h })
|
|
950
952
|
] });
|
|
951
953
|
}
|
|
952
954
|
export {
|
|
953
|
-
|
|
955
|
+
qe as ChatAnalyticsView
|
|
954
956
|
};
|