@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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkTBELZWGV_cjs = require('./chunk-TBELZWGV.cjs');
3
+ var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
4
4
  var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
5
5
  var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
6
6
  var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
@@ -532,167 +532,6 @@ function VisibilityToggle({
532
532
  }
533
533
  );
534
534
  }
535
- var DictateContext = React.createContext(null);
536
- function DictateProvider({
537
- transcribe,
538
- onError,
539
- children
540
- }) {
541
- return /* @__PURE__ */ jsxRuntime.jsx(DictateContext.Provider, { value: { transcribe, onError }, children });
542
- }
543
- function useDictateContext() {
544
- return React.useContext(DictateContext);
545
- }
546
- var Avatar = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
547
- AvatarPrimitive__namespace.Root,
548
- {
549
- ref,
550
- className: chunkS6A6FSG7_cjs.cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
551
- ...props
552
- }
553
- ));
554
- Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
555
- var AvatarImage = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
556
- AvatarPrimitive__namespace.Image,
557
- {
558
- ref,
559
- className: chunkS6A6FSG7_cjs.cn("aspect-square h-full w-full object-cover", className),
560
- ...props
561
- }
562
- ));
563
- AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
564
- var AvatarFallback = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
565
- AvatarPrimitive__namespace.Fallback,
566
- {
567
- ref,
568
- className: chunkS6A6FSG7_cjs.cn(
569
- "flex h-full w-full items-center justify-center rounded-full bg-muted",
570
- className
571
- ),
572
- ...props
573
- }
574
- ));
575
- AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
576
- var badgeVariants = classVarianceAuthority.cva(
577
- "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",
578
- {
579
- variants: {
580
- variant: {
581
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
582
- accent: "border-transparent bg-ai-accent-soft text-ai-accent",
583
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
584
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
585
- outline: "text-foreground"
586
- }
587
- },
588
- defaultVariants: {
589
- variant: "default"
590
- }
591
- }
592
- );
593
- function Badge({ className, variant, ...props }) {
594
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkS6A6FSG7_cjs.cn(badgeVariants({ variant }), className), ...props });
595
- }
596
- var HoverCard = HoverCardPrimitive__namespace.Root;
597
- var HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
598
- function HoverCardPortal({
599
- container,
600
- ...props
601
- }) {
602
- const fallback = chunkHJDR5HEO_cjs.usePortalContainer();
603
- return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { container: container ?? fallback, ...props });
604
- }
605
- var HoverCardContent = React__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(HoverCardPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
606
- HoverCardPrimitive__namespace.Content,
607
- {
608
- ref,
609
- align,
610
- sideOffset,
611
- collisionPadding: chunkHJDR5HEO_cjs.getCollisionPadding(),
612
- className: chunkS6A6FSG7_cjs.cn(
613
- "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]",
614
- className
615
- ),
616
- ...props
617
- }
618
- ) }));
619
- HoverCardContent.displayName = HoverCardPrimitive__namespace.Content.displayName;
620
- var cardVariants = classVarianceAuthority.cva("min-w-0 rounded-lg bg-card text-card-foreground", {
621
- variants: {
622
- variant: {
623
- flat: "",
624
- outline: "border",
625
- elevated: "border shadow-sm"
626
- }
627
- },
628
- defaultVariants: {
629
- variant: "flat"
630
- }
631
- });
632
- var Card = React__namespace.forwardRef(
633
- ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
634
- "div",
635
- {
636
- ref,
637
- "data-slot": "card",
638
- className: chunkS6A6FSG7_cjs.cn(cardVariants({ variant }), className),
639
- ...props
640
- }
641
- )
642
- );
643
- Card.displayName = "Card";
644
- var CardHeader = React__namespace.forwardRef(
645
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
646
- "div",
647
- {
648
- ref,
649
- "data-slot": "card-header",
650
- className: chunkS6A6FSG7_cjs.cn("flex flex-col space-y-1.5 p-6", className),
651
- ...props
652
- }
653
- )
654
- );
655
- CardHeader.displayName = "CardHeader";
656
- var CardTitle = React__namespace.forwardRef(
657
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
658
- "div",
659
- {
660
- ref,
661
- "data-slot": "card-title",
662
- className: chunkS6A6FSG7_cjs.cn("font-semibold leading-none tracking-tight", className),
663
- ...props
664
- }
665
- )
666
- );
667
- CardTitle.displayName = "CardTitle";
668
- var CardDescription = React__namespace.forwardRef(
669
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
670
- "div",
671
- {
672
- ref,
673
- "data-slot": "card-description",
674
- className: chunkS6A6FSG7_cjs.cn("text-sm text-muted-foreground", className),
675
- ...props
676
- }
677
- )
678
- );
679
- CardDescription.displayName = "CardDescription";
680
- var CardContent = React__namespace.forwardRef(
681
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className: chunkS6A6FSG7_cjs.cn("p-6 pt-0", className), ...props })
682
- );
683
- CardContent.displayName = "CardContent";
684
- var CardFooter = React__namespace.forwardRef(
685
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
686
- "div",
687
- {
688
- ref,
689
- "data-slot": "card-footer",
690
- className: chunkS6A6FSG7_cjs.cn("flex items-center p-6 pt-0", className),
691
- ...props
692
- }
693
- )
694
- );
695
- CardFooter.displayName = "CardFooter";
696
535
 
697
536
  // src/documents/media-error.ts
698
537
  function classifyMediaError(err, kind) {
@@ -1423,6 +1262,17 @@ function InlineMicButton({
1423
1262
  )
1424
1263
  ] });
1425
1264
  }
1265
+ var DictateContext = React.createContext(null);
1266
+ function DictateProvider({
1267
+ transcribe,
1268
+ onError,
1269
+ children
1270
+ }) {
1271
+ return /* @__PURE__ */ jsxRuntime.jsx(DictateContext.Provider, { value: { transcribe, onError }, children });
1272
+ }
1273
+ function useDictateContext() {
1274
+ return React.useContext(DictateContext);
1275
+ }
1426
1276
  var Input = React__namespace.forwardRef(
1427
1277
  ({ className, type, dictate, onFocus, onBlur, ...props }, forwardedRef) => {
1428
1278
  const dictateCtx = useDictateContext();
@@ -1479,30 +1329,6 @@ var Input = React__namespace.forwardRef(
1479
1329
  }
1480
1330
  );
1481
1331
  Input.displayName = "Input";
1482
- var Label2 = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1483
- "label",
1484
- {
1485
- ref,
1486
- className: `text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${className || ""}`,
1487
- ...props
1488
- }
1489
- ));
1490
- Label2.displayName = "Label";
1491
- var Separator2 = React__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1492
- SeparatorPrimitive__namespace.Root,
1493
- {
1494
- ref,
1495
- decorative,
1496
- orientation,
1497
- className: chunkS6A6FSG7_cjs.cn(
1498
- "shrink-0 bg-border",
1499
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1500
- className
1501
- ),
1502
- ...props
1503
- }
1504
- ));
1505
- Separator2.displayName = SeparatorPrimitive__namespace.Root.displayName;
1506
1332
  var Textarea = React__namespace.forwardRef(
1507
1333
  ({ className, dictate, onFocus, onBlur, ...props }, forwardedRef) => {
1508
1334
  const dictateCtx = useDictateContext();
@@ -1557,6 +1383,281 @@ var Textarea = React__namespace.forwardRef(
1557
1383
  }
1558
1384
  );
1559
1385
  Textarea.displayName = "Textarea";
1386
+ function DebouncedInput({
1387
+ value,
1388
+ onChange,
1389
+ disabled,
1390
+ type = "text",
1391
+ multiline = false,
1392
+ className,
1393
+ debounceMs = 500,
1394
+ placeholder,
1395
+ autoResize = true,
1396
+ minHeight = 28,
1397
+ maxHeight = 72
1398
+ }) {
1399
+ const [localValue, setLocalValue] = React.useState(value);
1400
+ const timeoutRef = React.useRef(void 0);
1401
+ const pendingRef = React.useRef(null);
1402
+ const textareaRef = React.useRef(null);
1403
+ const adjustHeight = React.useCallback(() => {
1404
+ const textarea = textareaRef.current;
1405
+ if (!textarea || !autoResize) return;
1406
+ textarea.style.height = "auto";
1407
+ const newHeight = Math.min(Math.max(textarea.scrollHeight, minHeight), maxHeight);
1408
+ textarea.style.height = `${newHeight}px`;
1409
+ }, [autoResize, minHeight, maxHeight]);
1410
+ React.useEffect(() => {
1411
+ if (pendingRef.current !== null) return;
1412
+ setLocalValue(value);
1413
+ }, [value]);
1414
+ React.useEffect(() => {
1415
+ if (multiline) {
1416
+ adjustHeight();
1417
+ }
1418
+ }, [localValue, multiline, adjustHeight]);
1419
+ const onChangeRef = React.useRef(onChange);
1420
+ React.useEffect(() => {
1421
+ onChangeRef.current = onChange;
1422
+ }, [onChange]);
1423
+ const flushPendingChange = React.useCallback(() => {
1424
+ if (pendingRef.current === null) return false;
1425
+ const pending = pendingRef.current;
1426
+ pendingRef.current = null;
1427
+ clearTimeout(timeoutRef.current);
1428
+ onChangeRef.current(pending);
1429
+ return true;
1430
+ }, []);
1431
+ const handleChange = React.useCallback(
1432
+ (e) => {
1433
+ const newValue = e.target.value;
1434
+ setLocalValue(newValue);
1435
+ pendingRef.current = newValue;
1436
+ clearTimeout(timeoutRef.current);
1437
+ timeoutRef.current = setTimeout(() => {
1438
+ pendingRef.current = null;
1439
+ onChangeRef.current(newValue);
1440
+ }, debounceMs);
1441
+ },
1442
+ [debounceMs]
1443
+ );
1444
+ React.useEffect(
1445
+ () => () => {
1446
+ const pending = pendingRef.current;
1447
+ pendingRef.current = null;
1448
+ clearTimeout(timeoutRef.current);
1449
+ if (pending !== null) onChangeRef.current(pending);
1450
+ },
1451
+ []
1452
+ );
1453
+ const handleBlur = React.useCallback(() => {
1454
+ flushPendingChange();
1455
+ if (localValue !== value) {
1456
+ setLocalValue(value);
1457
+ }
1458
+ }, [flushPendingChange, localValue, value]);
1459
+ if (multiline) {
1460
+ return /* @__PURE__ */ jsxRuntime.jsx(
1461
+ Textarea,
1462
+ {
1463
+ ref: textareaRef,
1464
+ value: localValue,
1465
+ onChange: handleChange,
1466
+ onBlur: handleBlur,
1467
+ disabled,
1468
+ className: `resize-y ${className || ""}`,
1469
+ placeholder,
1470
+ style: { minHeight: `${minHeight}px` }
1471
+ }
1472
+ );
1473
+ }
1474
+ return /* @__PURE__ */ jsxRuntime.jsx(
1475
+ Input,
1476
+ {
1477
+ type,
1478
+ value: localValue,
1479
+ onChange: handleChange,
1480
+ onBlur: handleBlur,
1481
+ disabled,
1482
+ className,
1483
+ placeholder
1484
+ }
1485
+ );
1486
+ }
1487
+ var Avatar = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1488
+ AvatarPrimitive__namespace.Root,
1489
+ {
1490
+ ref,
1491
+ className: chunkS6A6FSG7_cjs.cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
1492
+ ...props
1493
+ }
1494
+ ));
1495
+ Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
1496
+ var AvatarImage = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1497
+ AvatarPrimitive__namespace.Image,
1498
+ {
1499
+ ref,
1500
+ className: chunkS6A6FSG7_cjs.cn("aspect-square h-full w-full object-cover", className),
1501
+ ...props
1502
+ }
1503
+ ));
1504
+ AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
1505
+ var AvatarFallback = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1506
+ AvatarPrimitive__namespace.Fallback,
1507
+ {
1508
+ ref,
1509
+ className: chunkS6A6FSG7_cjs.cn(
1510
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
1511
+ className
1512
+ ),
1513
+ ...props
1514
+ }
1515
+ ));
1516
+ AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
1517
+ var badgeVariants = classVarianceAuthority.cva(
1518
+ "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",
1519
+ {
1520
+ variants: {
1521
+ variant: {
1522
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
1523
+ accent: "border-transparent bg-ai-accent-soft text-ai-accent",
1524
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
1525
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
1526
+ outline: "text-foreground"
1527
+ }
1528
+ },
1529
+ defaultVariants: {
1530
+ variant: "default"
1531
+ }
1532
+ }
1533
+ );
1534
+ function Badge({ className, variant, ...props }) {
1535
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkS6A6FSG7_cjs.cn(badgeVariants({ variant }), className), ...props });
1536
+ }
1537
+ var HoverCard = HoverCardPrimitive__namespace.Root;
1538
+ var HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
1539
+ function HoverCardPortal({
1540
+ container,
1541
+ ...props
1542
+ }) {
1543
+ const fallback = chunkHJDR5HEO_cjs.usePortalContainer();
1544
+ return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { container: container ?? fallback, ...props });
1545
+ }
1546
+ var HoverCardContent = React__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(HoverCardPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
1547
+ HoverCardPrimitive__namespace.Content,
1548
+ {
1549
+ ref,
1550
+ align,
1551
+ sideOffset,
1552
+ collisionPadding: chunkHJDR5HEO_cjs.getCollisionPadding(),
1553
+ className: chunkS6A6FSG7_cjs.cn(
1554
+ "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]",
1555
+ className
1556
+ ),
1557
+ ...props
1558
+ }
1559
+ ) }));
1560
+ HoverCardContent.displayName = HoverCardPrimitive__namespace.Content.displayName;
1561
+ var cardVariants = classVarianceAuthority.cva("min-w-0 rounded-lg bg-card text-card-foreground", {
1562
+ variants: {
1563
+ variant: {
1564
+ flat: "",
1565
+ outline: "border",
1566
+ elevated: "border shadow-sm"
1567
+ }
1568
+ },
1569
+ defaultVariants: {
1570
+ variant: "flat"
1571
+ }
1572
+ });
1573
+ var Card = React__namespace.forwardRef(
1574
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1575
+ "div",
1576
+ {
1577
+ ref,
1578
+ "data-slot": "card",
1579
+ className: chunkS6A6FSG7_cjs.cn(cardVariants({ variant }), className),
1580
+ ...props
1581
+ }
1582
+ )
1583
+ );
1584
+ Card.displayName = "Card";
1585
+ var CardHeader = React__namespace.forwardRef(
1586
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1587
+ "div",
1588
+ {
1589
+ ref,
1590
+ "data-slot": "card-header",
1591
+ className: chunkS6A6FSG7_cjs.cn("flex flex-col space-y-1.5 p-6", className),
1592
+ ...props
1593
+ }
1594
+ )
1595
+ );
1596
+ CardHeader.displayName = "CardHeader";
1597
+ var CardTitle = React__namespace.forwardRef(
1598
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1599
+ "div",
1600
+ {
1601
+ ref,
1602
+ "data-slot": "card-title",
1603
+ className: chunkS6A6FSG7_cjs.cn("font-semibold leading-none tracking-tight", className),
1604
+ ...props
1605
+ }
1606
+ )
1607
+ );
1608
+ CardTitle.displayName = "CardTitle";
1609
+ var CardDescription = React__namespace.forwardRef(
1610
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1611
+ "div",
1612
+ {
1613
+ ref,
1614
+ "data-slot": "card-description",
1615
+ className: chunkS6A6FSG7_cjs.cn("text-sm text-muted-foreground", className),
1616
+ ...props
1617
+ }
1618
+ )
1619
+ );
1620
+ CardDescription.displayName = "CardDescription";
1621
+ var CardContent = React__namespace.forwardRef(
1622
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "card-content", className: chunkS6A6FSG7_cjs.cn("p-6 pt-0", className), ...props })
1623
+ );
1624
+ CardContent.displayName = "CardContent";
1625
+ var CardFooter = React__namespace.forwardRef(
1626
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1627
+ "div",
1628
+ {
1629
+ ref,
1630
+ "data-slot": "card-footer",
1631
+ className: chunkS6A6FSG7_cjs.cn("flex items-center p-6 pt-0", className),
1632
+ ...props
1633
+ }
1634
+ )
1635
+ );
1636
+ CardFooter.displayName = "CardFooter";
1637
+ var Label2 = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1638
+ "label",
1639
+ {
1640
+ ref,
1641
+ className: `text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${className || ""}`,
1642
+ ...props
1643
+ }
1644
+ ));
1645
+ Label2.displayName = "Label";
1646
+ var Separator2 = React__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1647
+ SeparatorPrimitive__namespace.Root,
1648
+ {
1649
+ ref,
1650
+ decorative,
1651
+ orientation,
1652
+ className: chunkS6A6FSG7_cjs.cn(
1653
+ "shrink-0 bg-border",
1654
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1655
+ className
1656
+ ),
1657
+ ...props
1658
+ }
1659
+ ));
1660
+ Separator2.displayName = SeparatorPrimitive__namespace.Root.displayName;
1560
1661
  var Collapsible = CollapsiblePrimitive__namespace.Root;
1561
1662
  var CollapsibleTrigger2 = CollapsiblePrimitive__namespace.CollapsibleTrigger;
1562
1663
  var CollapsibleContent2 = CollapsiblePrimitive__namespace.CollapsibleContent;
@@ -2221,7 +2322,7 @@ function AiMarkdown({
2221
2322
  allowHtml
2222
2323
  }) {
2223
2324
  return /* @__PURE__ */ jsxRuntime.jsx(
2224
- chunkTBELZWGV_cjs.MarkdownRenderer,
2325
+ chunkOC7F5SNA_cjs.MarkdownRenderer,
2225
2326
  {
2226
2327
  className: className ?? "text-sm",
2227
2328
  components: AI_COMPONENTS,
@@ -4055,6 +4156,74 @@ var getWorkspaceColor = (workspaceId, useWorkspaceColors) => {
4055
4156
  if (!isValidId) return "hsl(var(--primary))";
4056
4157
  return getEntityColor2(workspaceId, "medium");
4057
4158
  };
4159
+ var ShieldIcon = ({
4160
+ char,
4161
+ size = 24,
4162
+ className = "",
4163
+ workspaceColor,
4164
+ isSelected = false,
4165
+ ...props
4166
+ }) => {
4167
+ const fillColor = workspaceColor && workspaceColor !== "hsl(var(--primary))" ? workspaceColor : "transparent";
4168
+ const strokeColor = isSelected ? "white" : workspaceColor && workspaceColor !== "hsl(var(--primary))" ? workspaceColor : "currentColor";
4169
+ return /* @__PURE__ */ jsxRuntime.jsxs(
4170
+ "svg",
4171
+ {
4172
+ width: size,
4173
+ height: size,
4174
+ viewBox: "0 0 24 24",
4175
+ fill: fillColor,
4176
+ stroke: strokeColor,
4177
+ strokeWidth: "2",
4178
+ strokeLinecap: "round",
4179
+ strokeLinejoin: "round",
4180
+ className: `lucide lucide-square ${className}`,
4181
+ ...props,
4182
+ children: [
4183
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
4184
+ char && /* @__PURE__ */ jsxRuntime.jsx(
4185
+ "text",
4186
+ {
4187
+ x: "12",
4188
+ y: "12.5",
4189
+ textAnchor: "middle",
4190
+ fontSize: "9",
4191
+ fontFamily: "sans-serif",
4192
+ fontWeight: "300",
4193
+ dominantBaseline: "middle",
4194
+ stroke: workspaceColor ? "white" : "currentColor",
4195
+ strokeWidth: "0.8",
4196
+ children: char.toUpperCase()
4197
+ }
4198
+ )
4199
+ ]
4200
+ }
4201
+ );
4202
+ };
4203
+
4204
+ // src/entities/agent-avatar-colors.ts
4205
+ var BG_TO_COLOR = {
4206
+ "bg-emerald-700": "#047857",
4207
+ "bg-blue-700": "#1d4ed8",
4208
+ "bg-purple-700": "#7e22ce",
4209
+ "bg-amber-700": "#b45309",
4210
+ "bg-rose-700": "#be123c",
4211
+ "bg-red-700": "#b91c1c",
4212
+ "bg-indigo-700": "#4338ca",
4213
+ "bg-teal-700": "#0f766e",
4214
+ "bg-cyan-700": "#0e7490",
4215
+ "bg-sky-700": "#0369a1",
4216
+ "bg-lime-700": "#4d7c0f",
4217
+ "bg-orange-700": "#c2410c",
4218
+ "bg-pink-700": "#be185d",
4219
+ "bg-violet-700": "#6d28d9",
4220
+ "bg-fuchsia-700": "#a21caf",
4221
+ "bg-yellow-700": "#a16207"
4222
+ };
4223
+ function agentAvatarColors(bgColorClass) {
4224
+ const color = BG_TO_COLOR[bgColorClass] || "#047857";
4225
+ return { borderColor: color, color };
4226
+ }
4058
4227
  function nameInitials(name) {
4059
4228
  const parts = name.trim().split(/\s+/).filter(Boolean);
4060
4229
  if (!parts.length) return "?";
@@ -4470,6 +4639,7 @@ exports.CommandList = CommandList;
4470
4639
  exports.CommandSeparator = CommandSeparator;
4471
4640
  exports.CommandShortcut = CommandShortcut;
4472
4641
  exports.DEFAULT_SEGMENTER_CONFIG = DEFAULT_SEGMENTER_CONFIG;
4642
+ exports.DebouncedInput = DebouncedInput;
4473
4643
  exports.DictateProvider = DictateProvider;
4474
4644
  exports.DocIcon = DocIcon;
4475
4645
  exports.DocumentCard = DocumentCard;
@@ -4519,6 +4689,7 @@ exports.SelectSeparator = SelectSeparator;
4519
4689
  exports.SelectTrigger = SelectTrigger;
4520
4690
  exports.SelectValue = SelectValue;
4521
4691
  exports.Separator = Separator2;
4692
+ exports.ShieldIcon = ShieldIcon;
4522
4693
  exports.Slider = Slider;
4523
4694
  exports.StatusPill = StatusPill;
4524
4695
  exports.Switch = Switch;
@@ -4556,6 +4727,7 @@ exports.VidIcon = VidIcon;
4556
4727
  exports.VisibilityIcon = VisibilityIcon;
4557
4728
  exports.VisibilityToggle = VisibilityToggle;
4558
4729
  exports.XlsIcon = XlsIcon;
4730
+ exports.agentAvatarColors = agentAvatarColors;
4559
4731
  exports.badgeVariants = badgeVariants;
4560
4732
  exports.cardVariants = cardVariants;
4561
4733
  exports.classifyMediaError = classifyMediaError;
@@ -4580,5 +4752,5 @@ exports.returnFocusToMark = returnFocusToMark;
4580
4752
  exports.stepSegmenter = stepSegmenter;
4581
4753
  exports.toggleVariants = toggleVariants;
4582
4754
  exports.useAudioRecorder = useAudioRecorder;
4583
- //# sourceMappingURL=chunk-GX75JCPR.cjs.map
4584
- //# sourceMappingURL=chunk-GX75JCPR.cjs.map
4755
+ //# sourceMappingURL=chunk-65WT5PHA.cjs.map
4756
+ //# sourceMappingURL=chunk-65WT5PHA.cjs.map