@arbidocs/react 0.4.127 → 0.4.129

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.
Files changed (55) hide show
  1. package/dist/artifacts/index.cjs +20 -2
  2. package/dist/artifacts/index.cjs.map +1 -1
  3. package/dist/artifacts/index.d.cts +17 -1
  4. package/dist/artifacts/index.d.ts +17 -1
  5. package/dist/artifacts/index.js +17 -2
  6. package/dist/artifacts/index.js.map +1 -1
  7. package/dist/{chunk-GX75JCPR.cjs → chunk-65WT5PHA.cjs} +361 -189
  8. package/dist/chunk-65WT5PHA.cjs.map +1 -0
  9. package/dist/{chunk-ECOSGMTW.js → chunk-6AWF4HFU.js} +14 -6
  10. package/dist/chunk-6AWF4HFU.js.map +1 -0
  11. package/dist/chunk-6JSXDLIQ.js +101 -0
  12. package/dist/chunk-6JSXDLIQ.js.map +1 -0
  13. package/dist/{chunk-F7KQVVD2.cjs → chunk-BOJHNPNJ.cjs} +14 -6
  14. package/dist/chunk-BOJHNPNJ.cjs.map +1 -0
  15. package/dist/{chunk-EKRRORFO.js → chunk-C44GO33B.js} +105 -46
  16. package/dist/chunk-C44GO33B.js.map +1 -0
  17. package/dist/{chunk-5PQO46PE.js → chunk-J3BYHBKW.js} +358 -189
  18. package/dist/chunk-J3BYHBKW.js.map +1 -0
  19. package/dist/{chunk-TBELZWGV.cjs → chunk-OC7F5SNA.cjs} +108 -44
  20. package/dist/chunk-OC7F5SNA.cjs.map +1 -0
  21. package/dist/chunk-S7J5SCTZ.cjs +110 -0
  22. package/dist/chunk-S7J5SCTZ.cjs.map +1 -0
  23. package/dist/document-tools/index.cjs +72 -124
  24. package/dist/document-tools/index.cjs.map +1 -1
  25. package/dist/document-tools/index.d.cts +16 -4
  26. package/dist/document-tools/index.d.ts +16 -4
  27. package/dist/document-tools/index.js +30 -106
  28. package/dist/document-tools/index.js.map +1 -1
  29. package/dist/{index-B1O2cqOo.d.cts → index-2Y2MVegs.d.cts} +85 -6
  30. package/dist/{index-B1O2cqOo.d.ts → index-2Y2MVegs.d.ts} +85 -6
  31. package/dist/index.cjs +250 -211
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +33 -8
  34. package/dist/index.d.ts +33 -8
  35. package/dist/index.js +24 -10
  36. package/dist/index.js.map +1 -1
  37. package/dist/shell/index.cjs +6 -6
  38. package/dist/shell/index.js +1 -1
  39. package/dist/ui/index.cjs +152 -128
  40. package/dist/ui/index.d.cts +2 -1
  41. package/dist/ui/index.d.ts +2 -1
  42. package/dist/ui/index.js +3 -3
  43. package/dist/viewers/index.cjs +91 -0
  44. package/dist/viewers/index.cjs.map +1 -1
  45. package/dist/viewers/index.d.cts +62 -1
  46. package/dist/viewers/index.d.ts +62 -1
  47. package/dist/viewers/index.js +90 -1
  48. package/dist/viewers/index.js.map +1 -1
  49. package/package.json +8 -3
  50. package/dist/chunk-5PQO46PE.js.map +0 -1
  51. package/dist/chunk-ECOSGMTW.js.map +0 -1
  52. package/dist/chunk-EKRRORFO.js.map +0 -1
  53. package/dist/chunk-F7KQVVD2.cjs.map +0 -1
  54. package/dist/chunk-GX75JCPR.cjs.map +0 -1
  55. package/dist/chunk-TBELZWGV.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { MarkdownRenderer } from './chunk-EKRRORFO.js';
1
+ import { MarkdownRenderer } from './chunk-C44GO33B.js';
2
2
  import { Dialog, DialogContent } from './chunk-YNNAJJ5Z.js';
3
3
  import { getCollisionPadding, usePortalContainer, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuItem, DropdownMenuSeparator } from './chunk-47CCGUWR.js';
4
4
  import { cn } from './chunk-SN5YV6FF.js';
@@ -497,167 +497,6 @@ function VisibilityToggle({
497
497
  }
498
498
  );
499
499
  }
500
- var DictateContext = createContext(null);
501
- function DictateProvider({
502
- transcribe,
503
- onError,
504
- children
505
- }) {
506
- return /* @__PURE__ */ jsx(DictateContext.Provider, { value: { transcribe, onError }, children });
507
- }
508
- function useDictateContext() {
509
- return useContext(DictateContext);
510
- }
511
- var Avatar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
512
- AvatarPrimitive.Root,
513
- {
514
- ref,
515
- className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
516
- ...props
517
- }
518
- ));
519
- Avatar.displayName = AvatarPrimitive.Root.displayName;
520
- var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
521
- AvatarPrimitive.Image,
522
- {
523
- ref,
524
- className: cn("aspect-square h-full w-full object-cover", className),
525
- ...props
526
- }
527
- ));
528
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
529
- var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
530
- AvatarPrimitive.Fallback,
531
- {
532
- ref,
533
- className: cn(
534
- "flex h-full w-full items-center justify-center rounded-full bg-muted",
535
- className
536
- ),
537
- ...props
538
- }
539
- ));
540
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
541
- var badgeVariants = cva(
542
- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-sm font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
543
- {
544
- variants: {
545
- variant: {
546
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
547
- accent: "border-transparent bg-ai-accent-soft text-ai-accent",
548
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
549
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
550
- outline: "text-foreground"
551
- }
552
- },
553
- defaultVariants: {
554
- variant: "default"
555
- }
556
- }
557
- );
558
- function Badge({ className, variant, ...props }) {
559
- return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
560
- }
561
- var HoverCard = HoverCardPrimitive.Root;
562
- var HoverCardTrigger = HoverCardPrimitive.Trigger;
563
- function HoverCardPortal({
564
- container,
565
- ...props
566
- }) {
567
- const fallback = usePortalContainer();
568
- return /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { container: container ?? fallback, ...props });
569
- }
570
- var HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(HoverCardPortal, { children: /* @__PURE__ */ jsx(
571
- HoverCardPrimitive.Content,
572
- {
573
- ref,
574
- align,
575
- sideOffset,
576
- collisionPadding: getCollisionPadding(),
577
- className: cn(
578
- "z-50 w-64 max-w-[calc(100vw-1rem)] rounded-md border bg-popover p-4 text-popover-foreground shadow-lg outline-none 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 origin-[--radix-hover-card-content-transform-origin]",
579
- className
580
- ),
581
- ...props
582
- }
583
- ) }));
584
- HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
585
- var cardVariants = cva("min-w-0 rounded-lg bg-card text-card-foreground", {
586
- variants: {
587
- variant: {
588
- flat: "",
589
- outline: "border",
590
- elevated: "border shadow-sm"
591
- }
592
- },
593
- defaultVariants: {
594
- variant: "flat"
595
- }
596
- });
597
- var Card = React.forwardRef(
598
- ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
599
- "div",
600
- {
601
- ref,
602
- "data-slot": "card",
603
- className: cn(cardVariants({ variant }), className),
604
- ...props
605
- }
606
- )
607
- );
608
- Card.displayName = "Card";
609
- var CardHeader = React.forwardRef(
610
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
611
- "div",
612
- {
613
- ref,
614
- "data-slot": "card-header",
615
- className: cn("flex flex-col space-y-1.5 p-6", className),
616
- ...props
617
- }
618
- )
619
- );
620
- CardHeader.displayName = "CardHeader";
621
- var CardTitle = React.forwardRef(
622
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
623
- "div",
624
- {
625
- ref,
626
- "data-slot": "card-title",
627
- className: cn("font-semibold leading-none tracking-tight", className),
628
- ...props
629
- }
630
- )
631
- );
632
- CardTitle.displayName = "CardTitle";
633
- var CardDescription = React.forwardRef(
634
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
635
- "div",
636
- {
637
- ref,
638
- "data-slot": "card-description",
639
- className: cn("text-sm text-muted-foreground", className),
640
- ...props
641
- }
642
- )
643
- );
644
- CardDescription.displayName = "CardDescription";
645
- var CardContent = React.forwardRef(
646
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className: cn("p-6 pt-0", className), ...props })
647
- );
648
- CardContent.displayName = "CardContent";
649
- var CardFooter = React.forwardRef(
650
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
651
- "div",
652
- {
653
- ref,
654
- "data-slot": "card-footer",
655
- className: cn("flex items-center p-6 pt-0", className),
656
- ...props
657
- }
658
- )
659
- );
660
- CardFooter.displayName = "CardFooter";
661
500
 
662
501
  // src/documents/media-error.ts
663
502
  function classifyMediaError(err, kind) {
@@ -1388,6 +1227,17 @@ function InlineMicButton({
1388
1227
  )
1389
1228
  ] });
1390
1229
  }
1230
+ var DictateContext = createContext(null);
1231
+ function DictateProvider({
1232
+ transcribe,
1233
+ onError,
1234
+ children
1235
+ }) {
1236
+ return /* @__PURE__ */ jsx(DictateContext.Provider, { value: { transcribe, onError }, children });
1237
+ }
1238
+ function useDictateContext() {
1239
+ return useContext(DictateContext);
1240
+ }
1391
1241
  var Input = React.forwardRef(
1392
1242
  ({ className, type, dictate, onFocus, onBlur, ...props }, forwardedRef) => {
1393
1243
  const dictateCtx = useDictateContext();
@@ -1444,30 +1294,6 @@ var Input = React.forwardRef(
1444
1294
  }
1445
1295
  );
1446
1296
  Input.displayName = "Input";
1447
- var Label2 = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1448
- "label",
1449
- {
1450
- ref,
1451
- className: `text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${className || ""}`,
1452
- ...props
1453
- }
1454
- ));
1455
- Label2.displayName = "Label";
1456
- var Separator2 = React.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
1457
- SeparatorPrimitive.Root,
1458
- {
1459
- ref,
1460
- decorative,
1461
- orientation,
1462
- className: cn(
1463
- "shrink-0 bg-border",
1464
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1465
- className
1466
- ),
1467
- ...props
1468
- }
1469
- ));
1470
- Separator2.displayName = SeparatorPrimitive.Root.displayName;
1471
1297
  var Textarea = React.forwardRef(
1472
1298
  ({ className, dictate, onFocus, onBlur, ...props }, forwardedRef) => {
1473
1299
  const dictateCtx = useDictateContext();
@@ -1522,6 +1348,281 @@ var Textarea = React.forwardRef(
1522
1348
  }
1523
1349
  );
1524
1350
  Textarea.displayName = "Textarea";
1351
+ function DebouncedInput({
1352
+ value,
1353
+ onChange,
1354
+ disabled,
1355
+ type = "text",
1356
+ multiline = false,
1357
+ className,
1358
+ debounceMs = 500,
1359
+ placeholder,
1360
+ autoResize = true,
1361
+ minHeight = 28,
1362
+ maxHeight = 72
1363
+ }) {
1364
+ const [localValue, setLocalValue] = useState(value);
1365
+ const timeoutRef = useRef(void 0);
1366
+ const pendingRef = useRef(null);
1367
+ const textareaRef = useRef(null);
1368
+ const adjustHeight = useCallback(() => {
1369
+ const textarea = textareaRef.current;
1370
+ if (!textarea || !autoResize) return;
1371
+ textarea.style.height = "auto";
1372
+ const newHeight = Math.min(Math.max(textarea.scrollHeight, minHeight), maxHeight);
1373
+ textarea.style.height = `${newHeight}px`;
1374
+ }, [autoResize, minHeight, maxHeight]);
1375
+ useEffect(() => {
1376
+ if (pendingRef.current !== null) return;
1377
+ setLocalValue(value);
1378
+ }, [value]);
1379
+ useEffect(() => {
1380
+ if (multiline) {
1381
+ adjustHeight();
1382
+ }
1383
+ }, [localValue, multiline, adjustHeight]);
1384
+ const onChangeRef = useRef(onChange);
1385
+ useEffect(() => {
1386
+ onChangeRef.current = onChange;
1387
+ }, [onChange]);
1388
+ const flushPendingChange = useCallback(() => {
1389
+ if (pendingRef.current === null) return false;
1390
+ const pending = pendingRef.current;
1391
+ pendingRef.current = null;
1392
+ clearTimeout(timeoutRef.current);
1393
+ onChangeRef.current(pending);
1394
+ return true;
1395
+ }, []);
1396
+ const handleChange = useCallback(
1397
+ (e) => {
1398
+ const newValue = e.target.value;
1399
+ setLocalValue(newValue);
1400
+ pendingRef.current = newValue;
1401
+ clearTimeout(timeoutRef.current);
1402
+ timeoutRef.current = setTimeout(() => {
1403
+ pendingRef.current = null;
1404
+ onChangeRef.current(newValue);
1405
+ }, debounceMs);
1406
+ },
1407
+ [debounceMs]
1408
+ );
1409
+ useEffect(
1410
+ () => () => {
1411
+ const pending = pendingRef.current;
1412
+ pendingRef.current = null;
1413
+ clearTimeout(timeoutRef.current);
1414
+ if (pending !== null) onChangeRef.current(pending);
1415
+ },
1416
+ []
1417
+ );
1418
+ const handleBlur = useCallback(() => {
1419
+ flushPendingChange();
1420
+ if (localValue !== value) {
1421
+ setLocalValue(value);
1422
+ }
1423
+ }, [flushPendingChange, localValue, value]);
1424
+ if (multiline) {
1425
+ return /* @__PURE__ */ jsx(
1426
+ Textarea,
1427
+ {
1428
+ ref: textareaRef,
1429
+ value: localValue,
1430
+ onChange: handleChange,
1431
+ onBlur: handleBlur,
1432
+ disabled,
1433
+ className: `resize-y ${className || ""}`,
1434
+ placeholder,
1435
+ style: { minHeight: `${minHeight}px` }
1436
+ }
1437
+ );
1438
+ }
1439
+ return /* @__PURE__ */ jsx(
1440
+ Input,
1441
+ {
1442
+ type,
1443
+ value: localValue,
1444
+ onChange: handleChange,
1445
+ onBlur: handleBlur,
1446
+ disabled,
1447
+ className,
1448
+ placeholder
1449
+ }
1450
+ );
1451
+ }
1452
+ var Avatar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1453
+ AvatarPrimitive.Root,
1454
+ {
1455
+ ref,
1456
+ className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
1457
+ ...props
1458
+ }
1459
+ ));
1460
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
1461
+ var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1462
+ AvatarPrimitive.Image,
1463
+ {
1464
+ ref,
1465
+ className: cn("aspect-square h-full w-full object-cover", className),
1466
+ ...props
1467
+ }
1468
+ ));
1469
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
1470
+ var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1471
+ AvatarPrimitive.Fallback,
1472
+ {
1473
+ ref,
1474
+ className: cn(
1475
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
1476
+ className
1477
+ ),
1478
+ ...props
1479
+ }
1480
+ ));
1481
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
1482
+ var badgeVariants = cva(
1483
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-sm font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
1484
+ {
1485
+ variants: {
1486
+ variant: {
1487
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
1488
+ accent: "border-transparent bg-ai-accent-soft text-ai-accent",
1489
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
1490
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
1491
+ outline: "text-foreground"
1492
+ }
1493
+ },
1494
+ defaultVariants: {
1495
+ variant: "default"
1496
+ }
1497
+ }
1498
+ );
1499
+ function Badge({ className, variant, ...props }) {
1500
+ return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
1501
+ }
1502
+ var HoverCard = HoverCardPrimitive.Root;
1503
+ var HoverCardTrigger = HoverCardPrimitive.Trigger;
1504
+ function HoverCardPortal({
1505
+ container,
1506
+ ...props
1507
+ }) {
1508
+ const fallback = usePortalContainer();
1509
+ return /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { container: container ?? fallback, ...props });
1510
+ }
1511
+ var HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(HoverCardPortal, { children: /* @__PURE__ */ jsx(
1512
+ HoverCardPrimitive.Content,
1513
+ {
1514
+ ref,
1515
+ align,
1516
+ sideOffset,
1517
+ collisionPadding: getCollisionPadding(),
1518
+ className: cn(
1519
+ "z-50 w-64 max-w-[calc(100vw-1rem)] rounded-md border bg-popover p-4 text-popover-foreground shadow-lg outline-none 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 origin-[--radix-hover-card-content-transform-origin]",
1520
+ className
1521
+ ),
1522
+ ...props
1523
+ }
1524
+ ) }));
1525
+ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
1526
+ var cardVariants = cva("min-w-0 rounded-lg bg-card text-card-foreground", {
1527
+ variants: {
1528
+ variant: {
1529
+ flat: "",
1530
+ outline: "border",
1531
+ elevated: "border shadow-sm"
1532
+ }
1533
+ },
1534
+ defaultVariants: {
1535
+ variant: "flat"
1536
+ }
1537
+ });
1538
+ var Card = React.forwardRef(
1539
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
1540
+ "div",
1541
+ {
1542
+ ref,
1543
+ "data-slot": "card",
1544
+ className: cn(cardVariants({ variant }), className),
1545
+ ...props
1546
+ }
1547
+ )
1548
+ );
1549
+ Card.displayName = "Card";
1550
+ var CardHeader = React.forwardRef(
1551
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1552
+ "div",
1553
+ {
1554
+ ref,
1555
+ "data-slot": "card-header",
1556
+ className: cn("flex flex-col space-y-1.5 p-6", className),
1557
+ ...props
1558
+ }
1559
+ )
1560
+ );
1561
+ CardHeader.displayName = "CardHeader";
1562
+ var CardTitle = React.forwardRef(
1563
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1564
+ "div",
1565
+ {
1566
+ ref,
1567
+ "data-slot": "card-title",
1568
+ className: cn("font-semibold leading-none tracking-tight", className),
1569
+ ...props
1570
+ }
1571
+ )
1572
+ );
1573
+ CardTitle.displayName = "CardTitle";
1574
+ var CardDescription = React.forwardRef(
1575
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1576
+ "div",
1577
+ {
1578
+ ref,
1579
+ "data-slot": "card-description",
1580
+ className: cn("text-sm text-muted-foreground", className),
1581
+ ...props
1582
+ }
1583
+ )
1584
+ );
1585
+ CardDescription.displayName = "CardDescription";
1586
+ var CardContent = React.forwardRef(
1587
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className: cn("p-6 pt-0", className), ...props })
1588
+ );
1589
+ CardContent.displayName = "CardContent";
1590
+ var CardFooter = React.forwardRef(
1591
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1592
+ "div",
1593
+ {
1594
+ ref,
1595
+ "data-slot": "card-footer",
1596
+ className: cn("flex items-center p-6 pt-0", className),
1597
+ ...props
1598
+ }
1599
+ )
1600
+ );
1601
+ CardFooter.displayName = "CardFooter";
1602
+ var Label2 = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1603
+ "label",
1604
+ {
1605
+ ref,
1606
+ className: `text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${className || ""}`,
1607
+ ...props
1608
+ }
1609
+ ));
1610
+ Label2.displayName = "Label";
1611
+ var Separator2 = React.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
1612
+ SeparatorPrimitive.Root,
1613
+ {
1614
+ ref,
1615
+ decorative,
1616
+ orientation,
1617
+ className: cn(
1618
+ "shrink-0 bg-border",
1619
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1620
+ className
1621
+ ),
1622
+ ...props
1623
+ }
1624
+ ));
1625
+ Separator2.displayName = SeparatorPrimitive.Root.displayName;
1525
1626
  var Collapsible = CollapsiblePrimitive.Root;
1526
1627
  var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
1527
1628
  var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
@@ -4020,6 +4121,74 @@ var getWorkspaceColor = (workspaceId, useWorkspaceColors) => {
4020
4121
  if (!isValidId) return "hsl(var(--primary))";
4021
4122
  return getEntityColor2(workspaceId, "medium");
4022
4123
  };
4124
+ var ShieldIcon = ({
4125
+ char,
4126
+ size = 24,
4127
+ className = "",
4128
+ workspaceColor,
4129
+ isSelected = false,
4130
+ ...props
4131
+ }) => {
4132
+ const fillColor = workspaceColor && workspaceColor !== "hsl(var(--primary))" ? workspaceColor : "transparent";
4133
+ const strokeColor = isSelected ? "white" : workspaceColor && workspaceColor !== "hsl(var(--primary))" ? workspaceColor : "currentColor";
4134
+ return /* @__PURE__ */ jsxs(
4135
+ "svg",
4136
+ {
4137
+ width: size,
4138
+ height: size,
4139
+ viewBox: "0 0 24 24",
4140
+ fill: fillColor,
4141
+ stroke: strokeColor,
4142
+ strokeWidth: "2",
4143
+ strokeLinecap: "round",
4144
+ strokeLinejoin: "round",
4145
+ className: `lucide lucide-square ${className}`,
4146
+ ...props,
4147
+ children: [
4148
+ /* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
4149
+ char && /* @__PURE__ */ jsx(
4150
+ "text",
4151
+ {
4152
+ x: "12",
4153
+ y: "12.5",
4154
+ textAnchor: "middle",
4155
+ fontSize: "9",
4156
+ fontFamily: "sans-serif",
4157
+ fontWeight: "300",
4158
+ dominantBaseline: "middle",
4159
+ stroke: workspaceColor ? "white" : "currentColor",
4160
+ strokeWidth: "0.8",
4161
+ children: char.toUpperCase()
4162
+ }
4163
+ )
4164
+ ]
4165
+ }
4166
+ );
4167
+ };
4168
+
4169
+ // src/entities/agent-avatar-colors.ts
4170
+ var BG_TO_COLOR = {
4171
+ "bg-emerald-700": "#047857",
4172
+ "bg-blue-700": "#1d4ed8",
4173
+ "bg-purple-700": "#7e22ce",
4174
+ "bg-amber-700": "#b45309",
4175
+ "bg-rose-700": "#be123c",
4176
+ "bg-red-700": "#b91c1c",
4177
+ "bg-indigo-700": "#4338ca",
4178
+ "bg-teal-700": "#0f766e",
4179
+ "bg-cyan-700": "#0e7490",
4180
+ "bg-sky-700": "#0369a1",
4181
+ "bg-lime-700": "#4d7c0f",
4182
+ "bg-orange-700": "#c2410c",
4183
+ "bg-pink-700": "#be185d",
4184
+ "bg-violet-700": "#6d28d9",
4185
+ "bg-fuchsia-700": "#a21caf",
4186
+ "bg-yellow-700": "#a16207"
4187
+ };
4188
+ function agentAvatarColors(bgColorClass) {
4189
+ const color = BG_TO_COLOR[bgColorClass] || "#047857";
4190
+ return { borderColor: color, color };
4191
+ }
4023
4192
  function nameInitials(name) {
4024
4193
  const parts = name.trim().split(/\s+/).filter(Boolean);
4025
4194
  if (!parts.length) return "?";
@@ -4404,6 +4573,6 @@ function DocumentCard({
4404
4573
  );
4405
4574
  }
4406
4575
 
4407
- export { AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS2 as BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_SEGMENTER_CONFIG, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, INITIAL_SEGMENTER_STATE, IconToggle, ImgIcon, InlineMicButton, Input, Label2 as Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY2 as NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverClose, 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, VIDEO_MIME_PREFERENCE, VISIBILITY_ICONS, VerifiedBadge, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, flushSegmenter, formatElapsed, getDocIcon, getEntityColor2 as getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, levelFromRms, pickRecorderMimeType, returnFocusToMark, stepSegmenter, toggleVariants, useAudioRecorder };
4408
- //# sourceMappingURL=chunk-5PQO46PE.js.map
4409
- //# sourceMappingURL=chunk-5PQO46PE.js.map
4576
+ export { AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS2 as BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_SEGMENTER_CONFIG, DebouncedInput, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, INITIAL_SEGMENTER_STATE, IconToggle, ImgIcon, InlineMicButton, Input, Label2 as Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY2 as NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, ShieldIcon, 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, VIDEO_MIME_PREFERENCE, VISIBILITY_ICONS, VerifiedBadge, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, agentAvatarColors, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, flushSegmenter, formatElapsed, getDocIcon, getEntityColor2 as getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, levelFromRms, pickRecorderMimeType, returnFocusToMark, stepSegmenter, toggleVariants, useAudioRecorder };
4577
+ //# sourceMappingURL=chunk-J3BYHBKW.js.map
4578
+ //# sourceMappingURL=chunk-J3BYHBKW.js.map