@arbidocs/react 0.4.31 → 0.4.33
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/README.md +1 -1
- package/dist/artifacts/index.cjs +16 -16
- package/dist/artifacts/index.js +3 -3
- package/dist/{chunk-G3SWUES3.js → chunk-5JGBZQD4.js} +405 -123
- package/dist/chunk-5JGBZQD4.js.map +1 -0
- package/dist/{chunk-EOOHRPFM.cjs → chunk-775VGSKN.cjs} +59 -10
- package/dist/chunk-775VGSKN.cjs.map +1 -0
- package/dist/{chunk-6YSHODMG.js → chunk-FOEYFNQ4.js} +59 -10
- package/dist/chunk-FOEYFNQ4.js.map +1 -0
- package/dist/{chunk-6BLXIF4R.cjs → chunk-PW7GGG7E.cjs} +9 -7
- package/dist/chunk-PW7GGG7E.cjs.map +1 -0
- package/dist/{chunk-OBTCAI4E.js → chunk-UDOPD3GK.js} +12 -4
- package/dist/chunk-UDOPD3GK.js.map +1 -0
- package/dist/{chunk-ULED4SBT.cjs → chunk-UFSATX3N.cjs} +412 -125
- package/dist/chunk-UFSATX3N.cjs.map +1 -0
- package/dist/{chunk-NDG44JWI.js → chunk-V3A7JDJV.js} +8 -6
- package/dist/chunk-V3A7JDJV.js.map +1 -0
- package/dist/{chunk-YSZJCWDD.cjs → chunk-Z4M7JB4L.cjs} +12 -4
- package/dist/chunk-Z4M7JB4L.cjs.map +1 -0
- package/dist/{index-CcbVSNSP.d.cts → index-C7OqcKY3.d.cts} +3 -1
- package/dist/{index-CcbVSNSP.d.ts → index-C7OqcKY3.d.ts} +3 -1
- package/dist/{index-C99tcxue.d.cts → index-CUxIcC5j.d.cts} +19 -7
- package/dist/{index-C99tcxue.d.ts → index-CUxIcC5j.d.ts} +19 -7
- package/dist/index.cjs +360 -531
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -10
- package/dist/index.d.ts +60 -10
- package/dist/index.js +25 -212
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +6 -6
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/ui/index.cjs +134 -130
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-6BLXIF4R.cjs.map +0 -1
- package/dist/chunk-6YSHODMG.js.map +0 -1
- package/dist/chunk-EOOHRPFM.cjs.map +0 -1
- package/dist/chunk-G3SWUES3.js.map +0 -1
- package/dist/chunk-NDG44JWI.js.map +0 -1
- package/dist/chunk-OBTCAI4E.js.map +0 -1
- package/dist/chunk-ULED4SBT.cjs.map +0 -1
- package/dist/chunk-YSZJCWDD.cjs.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { MarkdownRenderer } from './chunk-
|
|
1
|
+
import { MarkdownRenderer } from './chunk-FOEYFNQ4.js';
|
|
2
2
|
import { getCollisionPadding, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuItem, DropdownMenuSeparator } from './chunk-N5SVBDLC.js';
|
|
3
3
|
import { cn } from './chunk-SN5YV6FF.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { createContext, forwardRef, memo, useContext, useState, useRef, useEffect, useCallback, useId, useMemo, Fragment as Fragment$1 } from 'react';
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
-
import {
|
|
8
|
+
import { ChevronDown, ChevronUp, Check, Circle, X, Search, MessageCircleMore, Loader2, Square, Mic, MoreVertical, MessageSquareLock, Info, FileQuestion, BookOpen, Upload, LogOut, LayoutGrid, Bell, MessageSquare, CircleUserRound, Wrench, CreditCard, ClipboardList, UserPlus, UserStar, Settings2, Users, User, NotebookPen, NotebookText, StickyNote, FolderPlus, Hash, EyeOff, Eye, CaptionsOff, FolderOpen, MessageSquareMore, MessageSquarePlus, MessageSquareText, MessageSquareOff, MessagesSquare, Columns3Cog, SquarePlus, SquareM, ChevronsDown, Bot, Calendar, Folder, List, SquareCheckBig, Minus, Plus, Share2, MessageSquareShare, ChevronsUpDown, AlertTriangle, FileX, SkipForward, XCircle, CheckCircle } from 'lucide-react';
|
|
9
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
9
10
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
10
11
|
import { cva } from 'class-variance-authority';
|
|
11
12
|
import { Slot } from '@radix-ui/react-slot';
|
|
@@ -22,7 +23,6 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
|
22
23
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
23
24
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
24
25
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
25
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
26
26
|
import { Command as Command$1 } from 'cmdk';
|
|
27
27
|
|
|
28
28
|
var TooltipContext = React.createContext(null);
|
|
@@ -296,6 +296,108 @@ function IconToggle({
|
|
|
296
296
|
] }) : button
|
|
297
297
|
] });
|
|
298
298
|
}
|
|
299
|
+
var Select = SelectPrimitive.Root;
|
|
300
|
+
var SelectGroup = SelectPrimitive.Group;
|
|
301
|
+
var SelectValue = SelectPrimitive.Value;
|
|
302
|
+
var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
303
|
+
SelectPrimitive.Trigger,
|
|
304
|
+
{
|
|
305
|
+
ref,
|
|
306
|
+
className: cn(
|
|
307
|
+
"flex h-9 pointer-coarse:min-h-11 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground/60 focus:outline-none focus-visible:border-ring/50 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
308
|
+
className
|
|
309
|
+
),
|
|
310
|
+
...props,
|
|
311
|
+
children: [
|
|
312
|
+
children,
|
|
313
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
));
|
|
317
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
318
|
+
var SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
319
|
+
SelectPrimitive.ScrollUpButton,
|
|
320
|
+
{
|
|
321
|
+
ref,
|
|
322
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
323
|
+
...props,
|
|
324
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
|
|
325
|
+
}
|
|
326
|
+
));
|
|
327
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
328
|
+
var SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
329
|
+
SelectPrimitive.ScrollDownButton,
|
|
330
|
+
{
|
|
331
|
+
ref,
|
|
332
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
333
|
+
...props,
|
|
334
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
|
|
335
|
+
}
|
|
336
|
+
));
|
|
337
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
338
|
+
var SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
339
|
+
SelectPrimitive.Content,
|
|
340
|
+
{
|
|
341
|
+
ref,
|
|
342
|
+
className: cn(
|
|
343
|
+
"relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-[8rem] max-w-[calc(100vw-1rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
344
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
345
|
+
className
|
|
346
|
+
),
|
|
347
|
+
position,
|
|
348
|
+
collisionPadding: getCollisionPadding(),
|
|
349
|
+
...props,
|
|
350
|
+
children: [
|
|
351
|
+
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
352
|
+
/* @__PURE__ */ jsx(
|
|
353
|
+
SelectPrimitive.Viewport,
|
|
354
|
+
{
|
|
355
|
+
className: cn(
|
|
356
|
+
"p-1",
|
|
357
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
358
|
+
),
|
|
359
|
+
children
|
|
360
|
+
}
|
|
361
|
+
),
|
|
362
|
+
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
) }));
|
|
366
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
367
|
+
var SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
368
|
+
SelectPrimitive.Label,
|
|
369
|
+
{
|
|
370
|
+
ref,
|
|
371
|
+
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
372
|
+
...props
|
|
373
|
+
}
|
|
374
|
+
));
|
|
375
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
376
|
+
var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
377
|
+
SelectPrimitive.Item,
|
|
378
|
+
{
|
|
379
|
+
ref,
|
|
380
|
+
className: cn(
|
|
381
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 pointer-coarse:min-h-11 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
382
|
+
className
|
|
383
|
+
),
|
|
384
|
+
...props,
|
|
385
|
+
children: [
|
|
386
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
387
|
+
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
));
|
|
391
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
392
|
+
var SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
393
|
+
SelectPrimitive.Separator,
|
|
394
|
+
{
|
|
395
|
+
ref,
|
|
396
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
397
|
+
...props
|
|
398
|
+
}
|
|
399
|
+
));
|
|
400
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
299
401
|
var COLORS = {
|
|
300
402
|
text: "text-secondary",
|
|
301
403
|
bg: "bg-secondary"
|
|
@@ -305,6 +407,7 @@ function isItemShared(item) {
|
|
|
305
407
|
}
|
|
306
408
|
function VisibilityToggle({
|
|
307
409
|
items,
|
|
410
|
+
presentation = "toggle",
|
|
308
411
|
onToggle,
|
|
309
412
|
disabled = false,
|
|
310
413
|
disabledTooltip,
|
|
@@ -336,6 +439,37 @@ function VisibilityToggle({
|
|
|
336
439
|
if (disablePrivate && !shouldShare) return;
|
|
337
440
|
onToggle(shouldShare);
|
|
338
441
|
};
|
|
442
|
+
if (presentation === "select")
|
|
443
|
+
return /* @__PURE__ */ jsxs(
|
|
444
|
+
Select,
|
|
445
|
+
{
|
|
446
|
+
value: isMixed ? "mixed" : isAllShared ? "workspace" : "me",
|
|
447
|
+
onValueChange: (value) => onToggle(value === "workspace"),
|
|
448
|
+
disabled: disabled || !itemsArray.length,
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ jsxs(
|
|
451
|
+
SelectTrigger,
|
|
452
|
+
{
|
|
453
|
+
"aria-label": label,
|
|
454
|
+
"data-testid": dataTestId,
|
|
455
|
+
className: "h-7 w-auto gap-1 border-0 bg-transparent px-1 text-xs font-normal text-muted-foreground shadow-none hover:bg-muted pointer-coarse:h-11",
|
|
456
|
+
children: [
|
|
457
|
+
showLabel && /* @__PURE__ */ jsxs("span", { children: [
|
|
458
|
+
label,
|
|
459
|
+
":"
|
|
460
|
+
] }),
|
|
461
|
+
/* @__PURE__ */ jsx(SelectValue, {})
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
),
|
|
465
|
+
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
466
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "me", disabled: disablePrivate, children: "Me" }),
|
|
467
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "workspace", children: "Workspace" }),
|
|
468
|
+
isMixed && /* @__PURE__ */ jsx(SelectItem, { value: "mixed", disabled: true, children: "Mixed" })
|
|
469
|
+
] })
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
);
|
|
339
473
|
return /* @__PURE__ */ jsx(
|
|
340
474
|
IconToggle,
|
|
341
475
|
{
|
|
@@ -419,7 +553,7 @@ function Badge({ className, variant, ...props }) {
|
|
|
419
553
|
return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
420
554
|
}
|
|
421
555
|
var buttonVariants = cva(
|
|
422
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-
|
|
556
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
423
557
|
{
|
|
424
558
|
variants: {
|
|
425
559
|
// One filled primary per view; everything else is tonal, hairline or ghost. No
|
|
@@ -930,7 +1064,7 @@ var Input = React.forwardRef(
|
|
|
930
1064
|
}
|
|
931
1065
|
);
|
|
932
1066
|
Input.displayName = "Input";
|
|
933
|
-
var
|
|
1067
|
+
var Label2 = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
934
1068
|
"label",
|
|
935
1069
|
{
|
|
936
1070
|
ref,
|
|
@@ -938,8 +1072,8 @@ var Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
|
|
|
938
1072
|
...props
|
|
939
1073
|
}
|
|
940
1074
|
));
|
|
941
|
-
|
|
942
|
-
var
|
|
1075
|
+
Label2.displayName = "Label";
|
|
1076
|
+
var Separator2 = React.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
943
1077
|
SeparatorPrimitive.Root,
|
|
944
1078
|
{
|
|
945
1079
|
ref,
|
|
@@ -953,7 +1087,7 @@ var Separator = React.forwardRef(({ className, orientation = "horizontal", decor
|
|
|
953
1087
|
...props
|
|
954
1088
|
}
|
|
955
1089
|
));
|
|
956
|
-
|
|
1090
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
957
1091
|
var Textarea = React.forwardRef(
|
|
958
1092
|
({ className, dictate, onFocus, onBlur, ...props }, forwardedRef) => {
|
|
959
1093
|
const dictateCtx = useDictateContext();
|
|
@@ -1278,6 +1412,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1278
1412
|
));
|
|
1279
1413
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1280
1414
|
var PHONE_PRESENTATION = {
|
|
1415
|
+
right: "inset-y-0 left-auto right-0 h-dvh max-h-dvh w-full max-w-[28rem] translate-x-0 translate-y-0 rounded-none border-y-0 border-r-0 data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right data-[state=open]:zoom-in-100 data-[state=closed]:zoom-out-100",
|
|
1281
1416
|
center: "",
|
|
1282
1417
|
sheet: "max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:w-full max-sm:max-w-full max-sm:border-x-0 max-sm:border-b-0 max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-xl max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] max-sm:max-h-[calc(100dvh-env(safe-area-inset-top,0px)-2.5rem)] max-sm:data-[state=open]:slide-in-from-bottom-10 max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:zoom-out-100",
|
|
1283
1418
|
full: "max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:border-x-0 max-sm:border-b-0 max-sm:h-[calc(100dvh-env(safe-area-inset-top,0px)-1rem)] max-sm:w-full max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-xl max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] max-sm:max-h-none max-sm:data-[state=open]:slide-in-from-bottom-10 max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:zoom-out-100"
|
|
@@ -1402,6 +1537,7 @@ function MarkMenu({
|
|
|
1402
1537
|
children,
|
|
1403
1538
|
onPointerDown,
|
|
1404
1539
|
onPointerEnter,
|
|
1540
|
+
onPointerMove,
|
|
1405
1541
|
onPointerLeave,
|
|
1406
1542
|
onFocus,
|
|
1407
1543
|
onBlur,
|
|
@@ -1417,6 +1553,7 @@ function MarkMenu({
|
|
|
1417
1553
|
const mode = useRef("hover");
|
|
1418
1554
|
const lastPointer = useRef("mouse");
|
|
1419
1555
|
const focusFirstOnOpen = useRef(false);
|
|
1556
|
+
const hoverArmed = useRef(false);
|
|
1420
1557
|
const isEmpty = items.length === 0 && !preview;
|
|
1421
1558
|
const ordered = [...items].sort((a, b) => Number(!!b.primary) - Number(!!a.primary));
|
|
1422
1559
|
const primary = ordered[0];
|
|
@@ -1425,6 +1562,17 @@ function MarkMenu({
|
|
|
1425
1562
|
timer.current = null;
|
|
1426
1563
|
};
|
|
1427
1564
|
useEffect(() => clearTimer, []);
|
|
1565
|
+
useEffect(() => {
|
|
1566
|
+
if (!open) return;
|
|
1567
|
+
const onDocumentPointerDown = (e) => {
|
|
1568
|
+
const target = e.target;
|
|
1569
|
+
if (triggerRef.current?.contains(target) || contentRef.current?.contains(target)) return;
|
|
1570
|
+
if (timer.current) clearTimeout(timer.current);
|
|
1571
|
+
setOpen(false);
|
|
1572
|
+
};
|
|
1573
|
+
document.addEventListener("pointerdown", onDocumentPointerDown, true);
|
|
1574
|
+
return () => document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
1575
|
+
}, [open]);
|
|
1428
1576
|
const rows = () => Array.from(contentRef.current?.querySelectorAll('[role="menuitem"]') ?? []);
|
|
1429
1577
|
const firstItem = () => rows()[0];
|
|
1430
1578
|
const openWith = (next, focusFirst = false) => {
|
|
@@ -1454,10 +1602,18 @@ function MarkMenu({
|
|
|
1454
1602
|
onPointerEnter?.(e);
|
|
1455
1603
|
if (isCoarse(e.pointerType) || isEmpty) return;
|
|
1456
1604
|
lastPointer.current = e.pointerType;
|
|
1605
|
+
hoverArmed.current = true;
|
|
1606
|
+
};
|
|
1607
|
+
const handlePointerMove = (e) => {
|
|
1608
|
+
onPointerMove?.(e);
|
|
1609
|
+
if (!hoverArmed.current) return;
|
|
1610
|
+
hoverArmed.current = false;
|
|
1611
|
+
if (isCoarse(e.pointerType)) return;
|
|
1457
1612
|
schedule(() => openWith("hover"), openDelay);
|
|
1458
1613
|
};
|
|
1459
1614
|
const handlePointerLeave = (e) => {
|
|
1460
1615
|
onPointerLeave?.(e);
|
|
1616
|
+
hoverArmed.current = false;
|
|
1461
1617
|
if (isCoarse(e.pointerType)) return;
|
|
1462
1618
|
if (!open) return clearTimer();
|
|
1463
1619
|
if (mode.current === "hover") schedule(() => close(), closeDelay);
|
|
@@ -1551,6 +1707,7 @@ function MarkMenu({
|
|
|
1551
1707
|
"aria-controls": open ? menuId : void 0,
|
|
1552
1708
|
onPointerDown: handlePointerDown,
|
|
1553
1709
|
onPointerEnter: handlePointerEnter,
|
|
1710
|
+
onPointerMove: handlePointerMove,
|
|
1554
1711
|
onPointerLeave: handlePointerLeave,
|
|
1555
1712
|
onFocus: handleFocus,
|
|
1556
1713
|
onBlur: handleBlur,
|
|
@@ -1585,7 +1742,6 @@ function MarkMenu({
|
|
|
1585
1742
|
onInteractOutside: (e) => {
|
|
1586
1743
|
if (triggerRef.current?.contains(e.target)) e.preventDefault();
|
|
1587
1744
|
},
|
|
1588
|
-
onPointerDownOutside: () => close(),
|
|
1589
1745
|
onPointerEnter: clearTimer,
|
|
1590
1746
|
onPointerLeave: (e) => {
|
|
1591
1747
|
if (!isCoarse(e.pointerType) && mode.current === "hover")
|
|
@@ -1630,108 +1786,6 @@ function MarkMenu({
|
|
|
1630
1786
|
)
|
|
1631
1787
|
] });
|
|
1632
1788
|
}
|
|
1633
|
-
var Select = SelectPrimitive.Root;
|
|
1634
|
-
var SelectGroup = SelectPrimitive.Group;
|
|
1635
|
-
var SelectValue = SelectPrimitive.Value;
|
|
1636
|
-
var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1637
|
-
SelectPrimitive.Trigger,
|
|
1638
|
-
{
|
|
1639
|
-
ref,
|
|
1640
|
-
className: cn(
|
|
1641
|
-
"flex h-9 pointer-coarse:min-h-11 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground/60 focus:outline-none focus-visible:border-ring/50 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
1642
|
-
className
|
|
1643
|
-
),
|
|
1644
|
-
...props,
|
|
1645
|
-
children: [
|
|
1646
|
-
children,
|
|
1647
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
1648
|
-
]
|
|
1649
|
-
}
|
|
1650
|
-
));
|
|
1651
|
-
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1652
|
-
var SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1653
|
-
SelectPrimitive.ScrollUpButton,
|
|
1654
|
-
{
|
|
1655
|
-
ref,
|
|
1656
|
-
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1657
|
-
...props,
|
|
1658
|
-
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
|
|
1659
|
-
}
|
|
1660
|
-
));
|
|
1661
|
-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1662
|
-
var SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1663
|
-
SelectPrimitive.ScrollDownButton,
|
|
1664
|
-
{
|
|
1665
|
-
ref,
|
|
1666
|
-
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1667
|
-
...props,
|
|
1668
|
-
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
|
|
1669
|
-
}
|
|
1670
|
-
));
|
|
1671
|
-
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1672
|
-
var SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
1673
|
-
SelectPrimitive.Content,
|
|
1674
|
-
{
|
|
1675
|
-
ref,
|
|
1676
|
-
className: cn(
|
|
1677
|
-
"relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-[8rem] max-w-[calc(100vw-1rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1678
|
-
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1679
|
-
className
|
|
1680
|
-
),
|
|
1681
|
-
position,
|
|
1682
|
-
collisionPadding: getCollisionPadding(),
|
|
1683
|
-
...props,
|
|
1684
|
-
children: [
|
|
1685
|
-
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
1686
|
-
/* @__PURE__ */ jsx(
|
|
1687
|
-
SelectPrimitive.Viewport,
|
|
1688
|
-
{
|
|
1689
|
-
className: cn(
|
|
1690
|
-
"p-1",
|
|
1691
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
1692
|
-
),
|
|
1693
|
-
children
|
|
1694
|
-
}
|
|
1695
|
-
),
|
|
1696
|
-
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
1697
|
-
]
|
|
1698
|
-
}
|
|
1699
|
-
) }));
|
|
1700
|
-
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1701
|
-
var SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1702
|
-
SelectPrimitive.Label,
|
|
1703
|
-
{
|
|
1704
|
-
ref,
|
|
1705
|
-
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
1706
|
-
...props
|
|
1707
|
-
}
|
|
1708
|
-
));
|
|
1709
|
-
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1710
|
-
var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1711
|
-
SelectPrimitive.Item,
|
|
1712
|
-
{
|
|
1713
|
-
ref,
|
|
1714
|
-
className: cn(
|
|
1715
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 pointer-coarse:min-h-11 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1716
|
-
className
|
|
1717
|
-
),
|
|
1718
|
-
...props,
|
|
1719
|
-
children: [
|
|
1720
|
-
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
1721
|
-
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
1722
|
-
]
|
|
1723
|
-
}
|
|
1724
|
-
));
|
|
1725
|
-
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1726
|
-
var SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1727
|
-
SelectPrimitive.Separator,
|
|
1728
|
-
{
|
|
1729
|
-
ref,
|
|
1730
|
-
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
1731
|
-
...props
|
|
1732
|
-
}
|
|
1733
|
-
));
|
|
1734
|
-
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1735
1789
|
var Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1736
1790
|
Command$1,
|
|
1737
1791
|
{
|
|
@@ -1877,12 +1931,11 @@ var EntityPill = forwardRef(function EntityPill2({
|
|
|
1877
1931
|
fullWidth ? "flex w-full" : "inline-flex",
|
|
1878
1932
|
sizeClasses2,
|
|
1879
1933
|
shapeClass,
|
|
1880
|
-
"
|
|
1881
|
-
"
|
|
1882
|
-
"transition-all",
|
|
1934
|
+
"border border-transparent",
|
|
1935
|
+
"transition-colors",
|
|
1883
1936
|
className
|
|
1884
1937
|
);
|
|
1885
|
-
const interactiveClasses = "relative cursor-pointer hover:bg-muted
|
|
1938
|
+
const interactiveClasses = "relative cursor-pointer hover:bg-muted pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-3 pointer-coarse:after:content-['']";
|
|
1886
1939
|
const disabledClasses = "cursor-default opacity-60";
|
|
1887
1940
|
const highlightClasses = "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground";
|
|
1888
1941
|
const mainContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1992,7 +2045,7 @@ var EntityPill = forwardRef(function EntityPill2({
|
|
|
1992
2045
|
ref,
|
|
1993
2046
|
className: cn(
|
|
1994
2047
|
baseClasses,
|
|
1995
|
-
(onClick || href) && !disabled && "cursor-pointer hover:bg-muted
|
|
2048
|
+
(onClick || href) && !disabled && "cursor-pointer hover:bg-muted",
|
|
1996
2049
|
highlight && highlightClasses
|
|
1997
2050
|
),
|
|
1998
2051
|
"data-testid": testId,
|
|
@@ -2351,6 +2404,206 @@ var PdfIcon = ({ size = 16, className = "" }) => {
|
|
|
2351
2404
|
}
|
|
2352
2405
|
);
|
|
2353
2406
|
};
|
|
2407
|
+
var DocIcon = ({ size = 16, className = "" }) => {
|
|
2408
|
+
return /* @__PURE__ */ jsxs(
|
|
2409
|
+
"svg",
|
|
2410
|
+
{
|
|
2411
|
+
width: size,
|
|
2412
|
+
height: size,
|
|
2413
|
+
viewBox: "0 0 24 24",
|
|
2414
|
+
fill: "none",
|
|
2415
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2416
|
+
className,
|
|
2417
|
+
children: [
|
|
2418
|
+
/* @__PURE__ */ jsx(
|
|
2419
|
+
"path",
|
|
2420
|
+
{
|
|
2421
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
2422
|
+
fill: FILE_TYPE_COLORS.doc,
|
|
2423
|
+
stroke: FILE_TYPE_COLORS.doc,
|
|
2424
|
+
strokeWidth: "1",
|
|
2425
|
+
strokeLinecap: "round",
|
|
2426
|
+
strokeLinejoin: "round"
|
|
2427
|
+
}
|
|
2428
|
+
),
|
|
2429
|
+
/* @__PURE__ */ jsx(
|
|
2430
|
+
"path",
|
|
2431
|
+
{
|
|
2432
|
+
d: "M14 2v6h6",
|
|
2433
|
+
fill: "none",
|
|
2434
|
+
stroke: FILE_TYPE_COLORS.white,
|
|
2435
|
+
strokeWidth: "1",
|
|
2436
|
+
strokeLinecap: "round",
|
|
2437
|
+
strokeLinejoin: "round"
|
|
2438
|
+
}
|
|
2439
|
+
),
|
|
2440
|
+
/* @__PURE__ */ jsx(
|
|
2441
|
+
"text",
|
|
2442
|
+
{
|
|
2443
|
+
x: "12",
|
|
2444
|
+
y: "16",
|
|
2445
|
+
fontSize: "6",
|
|
2446
|
+
fill: "white",
|
|
2447
|
+
textAnchor: "middle",
|
|
2448
|
+
fontWeight: "bold",
|
|
2449
|
+
fontFamily: "Arial, sans-serif",
|
|
2450
|
+
children: "DOC"
|
|
2451
|
+
}
|
|
2452
|
+
)
|
|
2453
|
+
]
|
|
2454
|
+
}
|
|
2455
|
+
);
|
|
2456
|
+
};
|
|
2457
|
+
var HtmlIcon = ({ size = 16, className = "" }) => {
|
|
2458
|
+
return /* @__PURE__ */ jsxs(
|
|
2459
|
+
"svg",
|
|
2460
|
+
{
|
|
2461
|
+
width: size,
|
|
2462
|
+
height: size,
|
|
2463
|
+
viewBox: "0 0 24 24",
|
|
2464
|
+
fill: "none",
|
|
2465
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2466
|
+
className,
|
|
2467
|
+
children: [
|
|
2468
|
+
/* @__PURE__ */ jsx(
|
|
2469
|
+
"path",
|
|
2470
|
+
{
|
|
2471
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
2472
|
+
fill: FILE_TYPE_COLORS.html,
|
|
2473
|
+
stroke: FILE_TYPE_COLORS.html,
|
|
2474
|
+
strokeWidth: "1",
|
|
2475
|
+
strokeLinecap: "round",
|
|
2476
|
+
strokeLinejoin: "round"
|
|
2477
|
+
}
|
|
2478
|
+
),
|
|
2479
|
+
/* @__PURE__ */ jsx(
|
|
2480
|
+
"path",
|
|
2481
|
+
{
|
|
2482
|
+
d: "M14 2v6h6",
|
|
2483
|
+
fill: "none",
|
|
2484
|
+
stroke: FILE_TYPE_COLORS.white,
|
|
2485
|
+
strokeWidth: "1",
|
|
2486
|
+
strokeLinecap: "round",
|
|
2487
|
+
strokeLinejoin: "round"
|
|
2488
|
+
}
|
|
2489
|
+
),
|
|
2490
|
+
/* @__PURE__ */ jsx(
|
|
2491
|
+
"text",
|
|
2492
|
+
{
|
|
2493
|
+
x: "12",
|
|
2494
|
+
y: "16",
|
|
2495
|
+
fontSize: "5",
|
|
2496
|
+
fill: "white",
|
|
2497
|
+
textAnchor: "middle",
|
|
2498
|
+
fontWeight: "bold",
|
|
2499
|
+
fontFamily: "Arial, sans-serif",
|
|
2500
|
+
children: "HTML"
|
|
2501
|
+
}
|
|
2502
|
+
)
|
|
2503
|
+
]
|
|
2504
|
+
}
|
|
2505
|
+
);
|
|
2506
|
+
};
|
|
2507
|
+
var TxtIcon = ({ size = 16, className = "" }) => {
|
|
2508
|
+
return /* @__PURE__ */ jsxs(
|
|
2509
|
+
"svg",
|
|
2510
|
+
{
|
|
2511
|
+
width: size,
|
|
2512
|
+
height: size,
|
|
2513
|
+
viewBox: "0 0 24 24",
|
|
2514
|
+
fill: "none",
|
|
2515
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2516
|
+
className,
|
|
2517
|
+
children: [
|
|
2518
|
+
/* @__PURE__ */ jsx(
|
|
2519
|
+
"path",
|
|
2520
|
+
{
|
|
2521
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
2522
|
+
fill: FILE_TYPE_COLORS.txt,
|
|
2523
|
+
stroke: FILE_TYPE_COLORS.txt,
|
|
2524
|
+
strokeWidth: "1",
|
|
2525
|
+
strokeLinecap: "round",
|
|
2526
|
+
strokeLinejoin: "round"
|
|
2527
|
+
}
|
|
2528
|
+
),
|
|
2529
|
+
/* @__PURE__ */ jsx(
|
|
2530
|
+
"path",
|
|
2531
|
+
{
|
|
2532
|
+
d: "M14 2v6h6",
|
|
2533
|
+
fill: "none",
|
|
2534
|
+
stroke: FILE_TYPE_COLORS.white,
|
|
2535
|
+
strokeWidth: "1",
|
|
2536
|
+
strokeLinecap: "round",
|
|
2537
|
+
strokeLinejoin: "round"
|
|
2538
|
+
}
|
|
2539
|
+
),
|
|
2540
|
+
/* @__PURE__ */ jsx(
|
|
2541
|
+
"text",
|
|
2542
|
+
{
|
|
2543
|
+
x: "12",
|
|
2544
|
+
y: "16",
|
|
2545
|
+
fontSize: "6",
|
|
2546
|
+
fill: "white",
|
|
2547
|
+
textAnchor: "middle",
|
|
2548
|
+
fontWeight: "bold",
|
|
2549
|
+
fontFamily: "Arial, sans-serif",
|
|
2550
|
+
children: "TXT"
|
|
2551
|
+
}
|
|
2552
|
+
)
|
|
2553
|
+
]
|
|
2554
|
+
}
|
|
2555
|
+
);
|
|
2556
|
+
};
|
|
2557
|
+
var XlsIcon = ({ size = 16, className = "" }) => {
|
|
2558
|
+
return /* @__PURE__ */ jsxs(
|
|
2559
|
+
"svg",
|
|
2560
|
+
{
|
|
2561
|
+
width: size,
|
|
2562
|
+
height: size,
|
|
2563
|
+
viewBox: "0 0 24 24",
|
|
2564
|
+
fill: "none",
|
|
2565
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2566
|
+
className,
|
|
2567
|
+
children: [
|
|
2568
|
+
/* @__PURE__ */ jsx(
|
|
2569
|
+
"path",
|
|
2570
|
+
{
|
|
2571
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
2572
|
+
fill: FILE_TYPE_COLORS.xls,
|
|
2573
|
+
stroke: FILE_TYPE_COLORS.xls,
|
|
2574
|
+
strokeWidth: "1",
|
|
2575
|
+
strokeLinecap: "round",
|
|
2576
|
+
strokeLinejoin: "round"
|
|
2577
|
+
}
|
|
2578
|
+
),
|
|
2579
|
+
/* @__PURE__ */ jsx(
|
|
2580
|
+
"path",
|
|
2581
|
+
{
|
|
2582
|
+
d: "M14 2v6h6",
|
|
2583
|
+
fill: "none",
|
|
2584
|
+
stroke: FILE_TYPE_COLORS.white,
|
|
2585
|
+
strokeWidth: "1",
|
|
2586
|
+
strokeLinecap: "round",
|
|
2587
|
+
strokeLinejoin: "round"
|
|
2588
|
+
}
|
|
2589
|
+
),
|
|
2590
|
+
/* @__PURE__ */ jsx(
|
|
2591
|
+
"text",
|
|
2592
|
+
{
|
|
2593
|
+
x: "12",
|
|
2594
|
+
y: "16",
|
|
2595
|
+
fontSize: "6",
|
|
2596
|
+
fill: "white",
|
|
2597
|
+
textAnchor: "middle",
|
|
2598
|
+
fontWeight: "bold",
|
|
2599
|
+
fontFamily: "Arial, sans-serif",
|
|
2600
|
+
children: "XLS"
|
|
2601
|
+
}
|
|
2602
|
+
)
|
|
2603
|
+
]
|
|
2604
|
+
}
|
|
2605
|
+
);
|
|
2606
|
+
};
|
|
2354
2607
|
var AudIcon = ({ size = 16, className = "" }) => {
|
|
2355
2608
|
return /* @__PURE__ */ jsxs(
|
|
2356
2609
|
"svg",
|
|
@@ -2592,6 +2845,14 @@ var ArbiBotHeadIcon = ({ size = 24, className = "" }) => {
|
|
|
2592
2845
|
}
|
|
2593
2846
|
);
|
|
2594
2847
|
};
|
|
2848
|
+
function ThreadVisibilityIcon({
|
|
2849
|
+
shared,
|
|
2850
|
+
className,
|
|
2851
|
+
...props
|
|
2852
|
+
}) {
|
|
2853
|
+
const Icon2 = shared ? MessageSquareShare : MessageSquareLock;
|
|
2854
|
+
return /* @__PURE__ */ jsx(Icon2, { ...props, className: cn(shared ? "text-secondary" : "text-primary", className) });
|
|
2855
|
+
}
|
|
2595
2856
|
function getDocumentTitle(document2, defaultValue = "") {
|
|
2596
2857
|
if (!document2) return defaultValue;
|
|
2597
2858
|
return document2.doc_metadata?.title || document2.file_name || defaultValue;
|
|
@@ -2604,12 +2865,30 @@ var IMAGE_EXTENSIONS = /* @__PURE__ */ new Set(["jpg", "jpeg", "png", "gif", "bm
|
|
|
2604
2865
|
var VIDEO_EXTENSIONS = /* @__PURE__ */ new Set(["mp4", "mpeg", "mpg", "webm", "mov", "avi", "mkv"]);
|
|
2605
2866
|
var AUDIO_EXTENSIONS = /* @__PURE__ */ new Set(["mp3", "wav", "m4a", "aac", "ogg", "flac"]);
|
|
2606
2867
|
var EMAIL_EXTENSIONS = /* @__PURE__ */ new Set(["eml", "msg"]);
|
|
2868
|
+
var DOCX_EXTENSIONS = /* @__PURE__ */ new Set(["doc", "docx", "odt", "rtf"]);
|
|
2869
|
+
var XLSX_EXTENSIONS = /* @__PURE__ */ new Set(["xls", "xlsx", "csv", "ods"]);
|
|
2870
|
+
var HTML_EXTENSIONS = /* @__PURE__ */ new Set(["html", "htm", "mhtml"]);
|
|
2871
|
+
var TEXT_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
2872
|
+
"txt",
|
|
2873
|
+
"text",
|
|
2874
|
+
"md",
|
|
2875
|
+
"markdown",
|
|
2876
|
+
"log",
|
|
2877
|
+
"json",
|
|
2878
|
+
"xml",
|
|
2879
|
+
"yaml",
|
|
2880
|
+
"yml"
|
|
2881
|
+
]);
|
|
2607
2882
|
function getDocIcon(fileName, iconSize = 14) {
|
|
2608
2883
|
const ext = fileName?.split(".").pop()?.toLowerCase();
|
|
2609
2884
|
if (ext && VIDEO_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsx(VidIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2610
2885
|
if (ext && AUDIO_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsx(AudIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2611
2886
|
if (ext && IMAGE_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsx(ImgIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2612
2887
|
if (ext && EMAIL_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsx(EmlIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2888
|
+
if (ext && DOCX_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsx(DocIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2889
|
+
if (ext && XLSX_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsx(XlsIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2890
|
+
if (ext && HTML_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsx(HtmlIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2891
|
+
if (ext && TEXT_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsx(TxtIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2613
2892
|
return /* @__PURE__ */ jsx(PdfIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2614
2893
|
}
|
|
2615
2894
|
function DocumentEntity({
|
|
@@ -2622,6 +2901,7 @@ function DocumentEntity({
|
|
|
2622
2901
|
onIconClick,
|
|
2623
2902
|
viewing,
|
|
2624
2903
|
iconBadge,
|
|
2904
|
+
status,
|
|
2625
2905
|
actions,
|
|
2626
2906
|
tooltipContent,
|
|
2627
2907
|
className,
|
|
@@ -2662,6 +2942,7 @@ function DocumentEntity({
|
|
|
2662
2942
|
label: fullWidth || noClamp ? title : clampLabel(title),
|
|
2663
2943
|
labelMaxWidth: labelMaxWidth ?? "max-w-[140px]",
|
|
2664
2944
|
labelClassName,
|
|
2945
|
+
secondaryText: status,
|
|
2665
2946
|
fullWidth,
|
|
2666
2947
|
onClick,
|
|
2667
2948
|
onIconClick,
|
|
@@ -2675,15 +2956,15 @@ function DocumentEntity({
|
|
|
2675
2956
|
}
|
|
2676
2957
|
var VARIANT_STYLES = {
|
|
2677
2958
|
"mine-paid": {
|
|
2678
|
-
pill: "
|
|
2959
|
+
pill: "text-primary",
|
|
2679
2960
|
icon: "text-primary"
|
|
2680
2961
|
},
|
|
2681
2962
|
other: {
|
|
2682
|
-
pill: "
|
|
2963
|
+
pill: "text-secondary",
|
|
2683
2964
|
icon: "text-secondary"
|
|
2684
2965
|
},
|
|
2685
2966
|
"mine-free": {
|
|
2686
|
-
pill: "
|
|
2967
|
+
pill: "text-muted-foreground",
|
|
2687
2968
|
icon: "text-muted-foreground"
|
|
2688
2969
|
},
|
|
2689
2970
|
common: {
|
|
@@ -2777,6 +3058,7 @@ var UserEntity = memo(function UserEntity2({
|
|
|
2777
3058
|
initials = "",
|
|
2778
3059
|
displayName = "",
|
|
2779
3060
|
picture,
|
|
3061
|
+
avatarImageClassName,
|
|
2780
3062
|
colorClass = "",
|
|
2781
3063
|
isAgent = false,
|
|
2782
3064
|
agentStyle,
|
|
@@ -2811,7 +3093,7 @@ var UserEntity = memo(function UserEntity2({
|
|
|
2811
3093
|
style: surfaceStyle,
|
|
2812
3094
|
"data-testid": "user-entity",
|
|
2813
3095
|
children: [
|
|
2814
|
-
picture && /* @__PURE__ */ jsx(AvatarImage, { src: picture, alt: initials }),
|
|
3096
|
+
picture && /* @__PURE__ */ jsx(AvatarImage, { src: picture, alt: initials, className: avatarImageClassName }),
|
|
2815
3097
|
/* @__PURE__ */ jsx(
|
|
2816
3098
|
AvatarFallback,
|
|
2817
3099
|
{
|
|
@@ -3737,6 +4019,6 @@ function DocumentCard({
|
|
|
3737
4019
|
);
|
|
3738
4020
|
}
|
|
3739
4021
|
|
|
3740
|
-
export { AgentBadge, AiMarkdown, ArbiBotHeadIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS2 as BASE_COLORS, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DictateProvider, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, ImgIcon, InlineMicButton, Input, Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY2 as NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserMenu, VISIBILITY_ICONS, VidIcon, VisibilityIcon, VisibilityToggle, badgeVariants, buttonVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor2 as getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants, useAudioRecorder };
|
|
3741
|
-
//# sourceMappingURL=chunk-
|
|
3742
|
-
//# sourceMappingURL=chunk-
|
|
4022
|
+
export { AgentBadge, AiMarkdown, ArbiBotHeadIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS2 as BASE_COLORS, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, IconToggle, ImgIcon, InlineMicButton, Input, Label2 as Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY2 as NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, UserEntity, UserMenu, VISIBILITY_ICONS, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, buttonVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor2 as getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants, useAudioRecorder };
|
|
4023
|
+
//# sourceMappingURL=chunk-5JGBZQD4.js.map
|
|
4024
|
+
//# sourceMappingURL=chunk-5JGBZQD4.js.map
|