@nivaro/react 0.3.66 → 0.3.68
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 +15 -1
- package/dist/index.js +836 -835
- package/dist/shared/components/ActivityEntry.js +28 -28
- package/dist/shared/components/CollectionBrowserView.js +584 -585
- package/dist/shared/components/ConformanceView.js +34 -34
- package/dist/shared/components/ItemEditForm.js +1758 -1758
- package/dist/shared/components/RecordCompare.js +149 -129
- package/dist/shared/components/ReportView.js +196 -196
- package/dist/shared/components/SlaRulesView.js +36 -36
- package/dist/shared/components/bulk/BulkCompareButton.js +16 -16
- package/dist/shared/components/chat/ChatPanel.js +484 -487
- package/dist/shared/components/chat/ChatViews.js +66 -66
- package/dist/shared/components/chat/RoomParts.js +159 -157
- package/dist/shared/components/help-videos/editor/StatsTab.js +48 -47
- package/dist/shared/components/help-videos/editor/VersionsTab.js +17 -16
- package/dist/shared/components/imports/CollectionImportPanel.js +72 -72
- package/dist/shared/components/integrations/IntegrationObligationsView.js +199 -187
- package/dist/shared/components/integrations/console/EventsView.js +22 -24
- package/dist/shared/components/integrations/console/SubmissionRow.js +6 -13
- package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +29 -28
- package/dist/shared/components/integrations/console/tone.js +22 -21
- package/dist/shared/components/item-edit/FieldRow.js +188 -188
- package/dist/shared/components/item-edit/FilePickerField.js +281 -297
- package/dist/shared/components/item-edit/GroupSection.js +209 -209
- package/dist/shared/components/item-edit/RecordInsights.js +101 -101
- package/dist/shared/components/item-edit/SummaryPanel.js +31 -31
- package/dist/shared/components/layout-editor/assist/ExplainDiff.js +12 -12
- package/dist/shared/components/panels/AddendumPanel.js +409 -411
- package/dist/shared/components/panels/BranchLanes.js +7 -7
- package/dist/shared/components/panels/CommentPanel.js +204 -197
- package/dist/shared/components/panels/PipelinePanel.js +264 -264
- package/dist/shared/components/panels/RecordIntegrityBanner.js +78 -78
- package/dist/shared/components/panels/RevisionsPanel.js +229 -229
- package/dist/shared/components/panels/TaskPanel.js +75 -75
- package/dist/shared/components/queue/QueueWorklist.js +591 -589
- package/dist/shared/lib/compare-value.js +73 -0
- package/dist/shared/lib/format-value.js +18 -17
- package/dist/shared/lib/utils.js +87 -80
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { AlarmClock as
|
|
3
|
-
import { useState as x, useEffect as
|
|
4
|
-
import { toast as
|
|
5
|
-
import { formatRelative as
|
|
6
|
-
import { Command as
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { AlarmClock as O, Paperclip as L, Pencil as R, Trash2 as V, Check as B, Sparkles as H, Filter as Q, Settings2 as U, X as _, AtSign as z, ChevronLeft as A } from "lucide-react";
|
|
3
|
+
import { useState as x, useEffect as Y, useMemo as q } from "react";
|
|
4
|
+
import { toast as G } from "sonner";
|
|
5
|
+
import { formatRelative as X, cn as h, toLocalDateString as M } from "../../lib/utils.js";
|
|
6
|
+
import { Command as $, CommandInput as F, CommandList as P, CommandEmpty as T, CommandGroup as D, CommandItem as I } from "../ui/command.js";
|
|
7
7
|
import { Popover as k, PopoverTrigger as v, PopoverContent as y } from "../ui/popover.js";
|
|
8
|
-
import { useMarkRoomRead as
|
|
9
|
-
import { useMentions as
|
|
8
|
+
import { useMarkRoomRead as J, useMyPreferences as K, useSetMyPreferences as Z, useUserSearch as ee } from "./chat-core.js";
|
|
9
|
+
import { useMentions as te, useScheduledMessages as ae, useRoomSummary as ne } from "./chat-hooks.js";
|
|
10
10
|
function w({
|
|
11
11
|
title: t,
|
|
12
12
|
onBack: n,
|
|
@@ -21,22 +21,22 @@ function w({
|
|
|
21
21
|
onClick: n,
|
|
22
22
|
className: "rounded-md p-1 text-slate-400 hover:bg-slate-100 hover:text-slate-600 dark:hover:bg-white/10 dark:hover:text-slate-100",
|
|
23
23
|
"aria-label": "Back to conversations",
|
|
24
|
-
children: /* @__PURE__ */ e(
|
|
24
|
+
children: /* @__PURE__ */ e(A, { className: "h-4 w-4", strokeWidth: 2 })
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
27
|
/* @__PURE__ */ e("p", { className: "min-w-0 flex-1 truncate text-[13px] font-semibold text-slate-800 dark:text-slate-100", children: t }),
|
|
28
28
|
c
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function W(t) {
|
|
32
32
|
return t.replace(/@\[([^\]]+)\]/g, "@$1").replace(/[*_~`>#]/g, "").replace(/\s+/g, " ").trim();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function xe({
|
|
35
35
|
th: t,
|
|
36
36
|
onBack: n,
|
|
37
37
|
onOpen: d
|
|
38
38
|
}) {
|
|
39
|
-
const { mentions: c, loading: i } =
|
|
39
|
+
const { mentions: c, loading: i } = te(!0);
|
|
40
40
|
return /* @__PURE__ */ a("div", { className: "flex min-h-0 flex-1 flex-col", "data-chat-mentions-view": !0, children: [
|
|
41
41
|
/* @__PURE__ */ e(w, { title: "Mentions", onBack: n, th: t }),
|
|
42
42
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-y-auto p-2", children: i ? /* @__PURE__ */ e("p", { className: "px-3 py-6 text-center text-[12px] text-slate-500", children: "Loading…" }) : c.length === 0 ? /* @__PURE__ */ e("p", { className: "px-3 py-8 text-center text-[12px] leading-relaxed text-slate-500", children: "No one has mentioned you yet. When someone writes @your name, @here or @channel in a room you are in, it lands here." }) : c.map((s) => /* @__PURE__ */ a(
|
|
@@ -56,7 +56,7 @@ function pe({
|
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
58
|
/* @__PURE__ */ e("span", { className: "truncate font-medium", children: s.room_label ?? s.room }),
|
|
59
|
-
/* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children:
|
|
59
|
+
/* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: X(s.date_created) })
|
|
60
60
|
] }),
|
|
61
61
|
/* @__PURE__ */ a(
|
|
62
62
|
"span",
|
|
@@ -70,7 +70,7 @@ function pe({
|
|
|
70
70
|
s.sender_name ?? "Someone",
|
|
71
71
|
": "
|
|
72
72
|
] }),
|
|
73
|
-
|
|
73
|
+
W(s.message)
|
|
74
74
|
]
|
|
75
75
|
}
|
|
76
76
|
)
|
|
@@ -80,16 +80,16 @@ function pe({
|
|
|
80
80
|
)) })
|
|
81
81
|
] });
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function re(t) {
|
|
84
84
|
const n = new Date(t), d = (c) => String(c).padStart(2, "0");
|
|
85
85
|
return `${n.getFullYear()}-${d(n.getMonth() + 1)}-${d(n.getDate())}T${d(n.getHours())}:${d(n.getMinutes())}`;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function be({
|
|
88
88
|
th: t,
|
|
89
89
|
onBack: n,
|
|
90
90
|
roomLabel: d
|
|
91
91
|
}) {
|
|
92
|
-
const { scheduled: c, loading: i, update: s, cancel: m } =
|
|
92
|
+
const { scheduled: c, loading: i, update: s, cancel: m } = ae(), [f, g] = x(null), [b, u] = x(""), [l, r] = x("");
|
|
93
93
|
return /* @__PURE__ */ a("div", { className: "flex min-h-0 flex-1 flex-col", "data-chat-scheduled-view": !0, children: [
|
|
94
94
|
/* @__PURE__ */ e(w, { title: "Scheduled messages", onBack: n, th: t }),
|
|
95
95
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-y-auto p-2", children: i ? /* @__PURE__ */ e("p", { className: "px-3 py-6 text-center text-[12px] text-slate-500", children: "Loading…" }) : c.length === 0 ? /* @__PURE__ */ e("p", { className: "px-3 py-8 text-center text-[12px] leading-relaxed text-slate-500", children: "Nothing scheduled. Write a message and use the alarm-clock button beside Send to send it later." }) : c.map((o) => /* @__PURE__ */ a(
|
|
@@ -99,7 +99,7 @@ function xe({
|
|
|
99
99
|
"data-chat-scheduled": o.id,
|
|
100
100
|
children: [
|
|
101
101
|
/* @__PURE__ */ a("p", { className: "flex items-center gap-1.5 text-[10.5px] text-slate-500 dark:text-slate-400", children: [
|
|
102
|
-
/* @__PURE__ */ e(
|
|
102
|
+
/* @__PURE__ */ e(O, { className: "h-3 w-3" }),
|
|
103
103
|
/* @__PURE__ */ e("span", { className: "truncate font-medium", children: d(o.room) }),
|
|
104
104
|
/* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: new Date(o.send_at).toLocaleString(void 0, {
|
|
105
105
|
weekday: "short",
|
|
@@ -152,7 +152,7 @@ function xe({
|
|
|
152
152
|
onSuccess: () => g(null),
|
|
153
153
|
onError: (p) => {
|
|
154
154
|
var N;
|
|
155
|
-
return
|
|
155
|
+
return G.error(
|
|
156
156
|
((N = p == null ? void 0 : p.response) == null ? void 0 : N.error) ?? "Could not save it"
|
|
157
157
|
);
|
|
158
158
|
}
|
|
@@ -172,11 +172,11 @@ function xe({
|
|
|
172
172
|
}
|
|
173
173
|
)
|
|
174
174
|
] })
|
|
175
|
-
] }) : /* @__PURE__ */ a(
|
|
175
|
+
] }) : /* @__PURE__ */ a(E, { children: [
|
|
176
176
|
/* @__PURE__ */ a("p", { className: "mt-1 whitespace-pre-wrap text-[12px] text-slate-700 dark:text-slate-200", children: [
|
|
177
177
|
o.message,
|
|
178
178
|
o.attachments.length > 0 && /* @__PURE__ */ a("span", { className: "ml-1 inline-flex items-center gap-0.5 text-[11px] text-slate-500", children: [
|
|
179
|
-
/* @__PURE__ */ e(
|
|
179
|
+
/* @__PURE__ */ e(L, { className: "h-3 w-3" }),
|
|
180
180
|
" ",
|
|
181
181
|
o.attachments.length
|
|
182
182
|
] })
|
|
@@ -187,11 +187,11 @@ function xe({
|
|
|
187
187
|
{
|
|
188
188
|
type: "button",
|
|
189
189
|
onClick: () => {
|
|
190
|
-
g(o.id), u(o.message), r(
|
|
190
|
+
g(o.id), u(o.message), r(re(o.send_at));
|
|
191
191
|
},
|
|
192
192
|
className: h("inline-flex items-center gap-0.5 font-medium", t.accentText),
|
|
193
193
|
children: [
|
|
194
|
-
/* @__PURE__ */ e(
|
|
194
|
+
/* @__PURE__ */ e(R, { className: "h-3 w-3" }),
|
|
195
195
|
" Edit"
|
|
196
196
|
]
|
|
197
197
|
}
|
|
@@ -203,7 +203,7 @@ function xe({
|
|
|
203
203
|
onClick: () => m.mutate(o.id),
|
|
204
204
|
className: "inline-flex items-center gap-0.5 text-slate-500 hover:text-red-600",
|
|
205
205
|
children: [
|
|
206
|
-
/* @__PURE__ */ e(
|
|
206
|
+
/* @__PURE__ */ e(V, { className: "h-3 w-3" }),
|
|
207
207
|
" Don’t send"
|
|
208
208
|
]
|
|
209
209
|
}
|
|
@@ -216,14 +216,14 @@ function xe({
|
|
|
216
216
|
)) })
|
|
217
217
|
] });
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function ge({
|
|
220
220
|
rooms: t,
|
|
221
221
|
th: n,
|
|
222
222
|
onBack: d,
|
|
223
223
|
onOpen: c
|
|
224
224
|
}) {
|
|
225
|
-
const [i] = x(() => t.filter((o) => o.unread > 0 && !o.muted)), [s, m] = x(0), f =
|
|
226
|
-
|
|
225
|
+
const [i] = x(() => t.filter((o) => o.unread > 0 && !o.muted)), [s, m] = x(0), f = ne(), g = J(), [b, u] = x({}), l = i[s];
|
|
226
|
+
Y(() => {
|
|
227
227
|
if (!(!l || b[l.room] !== void 0)) {
|
|
228
228
|
if (l.unread < 5) {
|
|
229
229
|
u((o) => ({ ...o, [l.room]: "" }));
|
|
@@ -268,15 +268,15 @@ function be({
|
|
|
268
268
|
l.mentions ? ` · ${l.mentions} for you` : ""
|
|
269
269
|
] }),
|
|
270
270
|
/* @__PURE__ */ e("div", { className: "mt-2 min-h-[48px] text-[12px] leading-relaxed text-slate-700 dark:text-slate-200", children: b[l.room] === void 0 ? /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1 text-slate-500", children: [
|
|
271
|
-
/* @__PURE__ */ e(
|
|
271
|
+
/* @__PURE__ */ e(H, { className: "h-3.5 w-3.5" }),
|
|
272
272
|
" Summarizing…"
|
|
273
|
-
] }) : b[l.room] ? b[l.room] : l.lastMessage ? /* @__PURE__ */ a(
|
|
273
|
+
] }) : b[l.room] ? b[l.room] : l.lastMessage ? /* @__PURE__ */ a(E, { children: [
|
|
274
274
|
/* @__PURE__ */ a("span", { className: "font-semibold", children: [
|
|
275
275
|
l.lastMessage.sender_name ?? "Someone",
|
|
276
276
|
":",
|
|
277
277
|
" "
|
|
278
278
|
] }),
|
|
279
|
-
|
|
279
|
+
W(l.lastMessage.message)
|
|
280
280
|
] }) : null }),
|
|
281
281
|
/* @__PURE__ */ a("div", { className: "mt-3 flex gap-2", children: [
|
|
282
282
|
/* @__PURE__ */ e(
|
|
@@ -302,7 +302,7 @@ function be({
|
|
|
302
302
|
]
|
|
303
303
|
}
|
|
304
304
|
) : /* @__PURE__ */ a("div", { className: "py-10 text-center", children: [
|
|
305
|
-
/* @__PURE__ */ e(
|
|
305
|
+
/* @__PURE__ */ e(B, { className: "mx-auto h-6 w-6 text-emerald-600" }),
|
|
306
306
|
/* @__PURE__ */ e("p", { className: "mt-2 text-[13px] font-semibold text-slate-800 dark:text-slate-100", children: i.length ? "You are caught up." : "Nothing unread." }),
|
|
307
307
|
/* @__PURE__ */ e(
|
|
308
308
|
"button",
|
|
@@ -316,14 +316,14 @@ function be({
|
|
|
316
316
|
] }) })
|
|
317
317
|
] });
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function fe({
|
|
320
320
|
filters: t,
|
|
321
321
|
onChange: n,
|
|
322
322
|
rooms: d,
|
|
323
323
|
th: c
|
|
324
324
|
}) {
|
|
325
325
|
var l;
|
|
326
|
-
const [i, s] = x(""), [m, f] = x(null), { users: g } =
|
|
326
|
+
const [i, s] = x(""), [m, f] = x(null), { users: g } = ee(i, i.trim().length >= 2), b = (l = d.find((r) => r.room === t.room)) == null ? void 0 : l.label, u = (r) => h(
|
|
327
327
|
"inline-flex h-6 items-center gap-1 rounded-full border px-2 text-[11px]",
|
|
328
328
|
r ? h(c.accentSoft, "border-transparent font-medium") : "border-slate-200 text-slate-600 hover:bg-muted dark:border-border dark:text-slate-300"
|
|
329
329
|
);
|
|
@@ -341,14 +341,14 @@ function ge({
|
|
|
341
341
|
}
|
|
342
342
|
)
|
|
343
343
|
] }) }),
|
|
344
|
-
/* @__PURE__ */ e(y, { align: "start", className: "w-[240px] p-0", children: /* @__PURE__ */ a(
|
|
345
|
-
/* @__PURE__ */ e(
|
|
346
|
-
/* @__PURE__ */ a(
|
|
347
|
-
/* @__PURE__ */ e(
|
|
348
|
-
/* @__PURE__ */ e(
|
|
344
|
+
/* @__PURE__ */ e(y, { align: "start", className: "w-[240px] p-0", children: /* @__PURE__ */ a($, { shouldFilter: !1, children: [
|
|
345
|
+
/* @__PURE__ */ e(F, { placeholder: "Search people…", value: i, onValueChange: s }),
|
|
346
|
+
/* @__PURE__ */ a(P, { children: [
|
|
347
|
+
/* @__PURE__ */ e(T, { children: i.trim().length < 2 ? "Type a name" : "No one found" }),
|
|
348
|
+
/* @__PURE__ */ e(D, { children: g.map((r) => {
|
|
349
349
|
const o = [r.first_name, r.last_name].filter(Boolean).join(" ") || r.email || r.id;
|
|
350
350
|
return /* @__PURE__ */ e(
|
|
351
|
-
|
|
351
|
+
I,
|
|
352
352
|
{
|
|
353
353
|
value: r.id,
|
|
354
354
|
onSelect: () => {
|
|
@@ -375,12 +375,12 @@ function ge({
|
|
|
375
375
|
}
|
|
376
376
|
)
|
|
377
377
|
] }) }),
|
|
378
|
-
/* @__PURE__ */ e(y, { align: "start", className: "w-[240px] p-0", children: /* @__PURE__ */ a(
|
|
379
|
-
/* @__PURE__ */ e(
|
|
380
|
-
/* @__PURE__ */ a(
|
|
381
|
-
/* @__PURE__ */ e(
|
|
382
|
-
/* @__PURE__ */ e(
|
|
383
|
-
|
|
378
|
+
/* @__PURE__ */ e(y, { align: "start", className: "w-[240px] p-0", children: /* @__PURE__ */ a($, { children: [
|
|
379
|
+
/* @__PURE__ */ e(F, { placeholder: "Search rooms…" }),
|
|
380
|
+
/* @__PURE__ */ a(P, { children: [
|
|
381
|
+
/* @__PURE__ */ e(T, { children: "No room found" }),
|
|
382
|
+
/* @__PURE__ */ e(D, { children: d.map((r) => /* @__PURE__ */ e(
|
|
383
|
+
I,
|
|
384
384
|
{
|
|
385
385
|
value: `${r.label} ${r.room}`,
|
|
386
386
|
onSelect: () => n({ ...t, room: r.room }),
|
|
@@ -398,7 +398,7 @@ function ge({
|
|
|
398
398
|
type: "button",
|
|
399
399
|
className: u(!!(t.from || t.to)),
|
|
400
400
|
"data-chat-filter": "date",
|
|
401
|
-
children: t.from || t.to ? `${t.from ?
|
|
401
|
+
children: t.from || t.to ? `${t.from ? M(t.from) : "…"} – ${t.to ? M(t.to) : "…"}` : "Date…"
|
|
402
402
|
}
|
|
403
403
|
) }),
|
|
404
404
|
/* @__PURE__ */ a(y, { align: "start", className: "w-[220px] space-y-1.5 p-2.5", children: [
|
|
@@ -416,8 +416,8 @@ function ge({
|
|
|
416
416
|
onChange: (o) => {
|
|
417
417
|
const p = o.target.value;
|
|
418
418
|
if (!p) return n({ ...t, [r]: null });
|
|
419
|
-
const [N, C, S] = p.split("-").map(Number),
|
|
420
|
-
n({ ...t, [r]:
|
|
419
|
+
const [N, C, S] = p.split("-").map(Number), j = r === "from" ? new Date(N, C - 1, S, 0, 0, 0) : new Date(N, C - 1, S, 23, 59, 59);
|
|
420
|
+
n({ ...t, [r]: j.toISOString() });
|
|
421
421
|
},
|
|
422
422
|
className: h(
|
|
423
423
|
"h-7 min-w-0 flex-1 rounded-md border px-1.5 text-[11.5px] outline-none",
|
|
@@ -449,7 +449,7 @@ function ge({
|
|
|
449
449
|
onClick: () => n({ ...t, has_attachment: !t.has_attachment }),
|
|
450
450
|
"data-chat-filter": "files",
|
|
451
451
|
children: [
|
|
452
|
-
/* @__PURE__ */ e(
|
|
452
|
+
/* @__PURE__ */ e(L, { className: "h-3 w-3" }),
|
|
453
453
|
" Has files"
|
|
454
454
|
]
|
|
455
455
|
}
|
|
@@ -463,17 +463,17 @@ function ge({
|
|
|
463
463
|
onClick: () => n({ ...t, mentions_me: !t.mentions_me }),
|
|
464
464
|
"data-chat-filter": "mentions",
|
|
465
465
|
children: [
|
|
466
|
-
/* @__PURE__ */ e(
|
|
466
|
+
/* @__PURE__ */ e(z, { className: "h-3 w-3" }),
|
|
467
467
|
" Mentions me"
|
|
468
468
|
]
|
|
469
469
|
}
|
|
470
470
|
)
|
|
471
471
|
] });
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function le(t) {
|
|
474
474
|
return !!(t.sender || t.room || t.from || t.to || t.has_attachment || t.mentions_me);
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Ne({
|
|
477
477
|
open: t,
|
|
478
478
|
active: n,
|
|
479
479
|
onClick: d
|
|
@@ -492,14 +492,14 @@ function fe({
|
|
|
492
492
|
),
|
|
493
493
|
"data-chat-filter-toggle": !0,
|
|
494
494
|
children: [
|
|
495
|
-
/* @__PURE__ */ e(
|
|
495
|
+
/* @__PURE__ */ e(Q, { className: "h-3.5 w-3.5", strokeWidth: 2 }),
|
|
496
496
|
n && /* @__PURE__ */ e("span", { className: "absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-nvr-cyan" })
|
|
497
497
|
]
|
|
498
498
|
}
|
|
499
499
|
);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
const t =
|
|
501
|
+
function ke() {
|
|
502
|
+
const t = K(), n = Z(), d = t.chat_density === "compact" ? "compact" : "comfortable", c = t.chat_badge_mode === "conversations" ? "conversations" : "all", i = t.chat_email_fallback === !0, s = (m) => h(
|
|
503
503
|
"flex-1 rounded-md px-2 py-1 text-[11.5px] font-medium transition-colors",
|
|
504
504
|
m ? "bg-white text-slate-900 shadow-sm dark:bg-card dark:text-slate-100" : "text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-100"
|
|
505
505
|
);
|
|
@@ -512,7 +512,7 @@ function Ne() {
|
|
|
512
512
|
"aria-label": "Chat settings",
|
|
513
513
|
className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-slate-200 text-slate-500 hover:bg-slate-50 dark:border-border dark:text-slate-400 dark:hover:bg-muted",
|
|
514
514
|
"data-chat-settings": !0,
|
|
515
|
-
children: /* @__PURE__ */ e(
|
|
515
|
+
children: /* @__PURE__ */ e(U, { className: "h-3.5 w-3.5", strokeWidth: 2 })
|
|
516
516
|
}
|
|
517
517
|
) }),
|
|
518
518
|
/* @__PURE__ */ a(y, { align: "end", className: "w-[280px] space-y-3 p-3", children: [
|
|
@@ -575,17 +575,17 @@ function Ne() {
|
|
|
575
575
|
] })
|
|
576
576
|
] });
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
const [t, n] = x(!1), [d, c] = x({}), i =
|
|
578
|
+
function ve() {
|
|
579
|
+
const [t, n] = x(!1), [d, c] = x({}), i = q(() => le(d), [d]);
|
|
580
580
|
return { open: t, setOpen: n, filters: d, setFilters: c, active: i };
|
|
581
581
|
}
|
|
582
582
|
export {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
583
|
+
ge as CatchUpView,
|
|
584
|
+
ke as ChatSettingsButton,
|
|
585
|
+
Ne as FilterToggle,
|
|
586
|
+
xe as MentionsView,
|
|
587
|
+
be as ScheduledView,
|
|
588
|
+
fe as SearchFilterBar,
|
|
589
|
+
le as hasFilters,
|
|
590
|
+
ve as useSearchFilterState
|
|
591
591
|
};
|