@arbidocs/react 0.5.81 → 0.5.83

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 (61) hide show
  1. package/dist/artifacts/index.cjs +11 -18
  2. package/dist/artifacts/index.cjs.map +1 -1
  3. package/dist/artifacts/index.d.cts +1 -3
  4. package/dist/artifacts/index.d.ts +1 -3
  5. package/dist/artifacts/index.js +5 -12
  6. package/dist/artifacts/index.js.map +1 -1
  7. package/dist/calls/livekit/index.cjs +48 -48
  8. package/dist/calls/livekit/index.js +3 -3
  9. package/dist/{chunk-YJEZEPUB.js → chunk-26WAJNXN.js} +3 -3
  10. package/dist/{chunk-YJEZEPUB.js.map → chunk-26WAJNXN.js.map} +1 -1
  11. package/dist/{chunk-DLBGBIAM.js → chunk-7R4SVVQE.js} +7 -5
  12. package/dist/chunk-7R4SVVQE.js.map +1 -0
  13. package/dist/{chunk-5YGUBXXH.cjs → chunk-AEG5ZMKH.cjs} +2 -2
  14. package/dist/chunk-AEG5ZMKH.cjs.map +1 -0
  15. package/dist/{chunk-5UJ4ZKJN.js → chunk-B3C25GWG.js} +4 -4
  16. package/dist/{chunk-5UJ4ZKJN.js.map → chunk-B3C25GWG.js.map} +1 -1
  17. package/dist/{chunk-4QON6LSH.js → chunk-BB32GHDD.js} +4 -4
  18. package/dist/{chunk-4QON6LSH.js.map → chunk-BB32GHDD.js.map} +1 -1
  19. package/dist/{chunk-2Y6LJNWA.js → chunk-EJIO2KAF.js} +2 -2
  20. package/dist/chunk-EJIO2KAF.js.map +1 -0
  21. package/dist/{chunk-L2P2X6LH.cjs → chunk-FEPBB7VJ.cjs} +35 -32
  22. package/dist/chunk-FEPBB7VJ.cjs.map +1 -0
  23. package/dist/{chunk-5IN5OGBT.cjs → chunk-FOB5QVGI.cjs} +16 -16
  24. package/dist/{chunk-5IN5OGBT.cjs.map → chunk-FOB5QVGI.cjs.map} +1 -1
  25. package/dist/{chunk-IZ3B62EN.cjs → chunk-JLJLPC5X.cjs} +22 -22
  26. package/dist/{chunk-IZ3B62EN.cjs.map → chunk-JLJLPC5X.cjs.map} +1 -1
  27. package/dist/{chunk-IHKQPOPK.cjs → chunk-PXWKJI4K.cjs} +18 -26
  28. package/dist/chunk-PXWKJI4K.cjs.map +1 -0
  29. package/dist/{chunk-OR6B7IL2.js → chunk-RZWWSAQG.js} +3 -3
  30. package/dist/{chunk-OR6B7IL2.js.map → chunk-RZWWSAQG.js.map} +1 -1
  31. package/dist/{chunk-QEVM3F5X.cjs → chunk-UKLLE4FC.cjs} +4 -4
  32. package/dist/{chunk-QEVM3F5X.cjs.map → chunk-UKLLE4FC.cjs.map} +1 -1
  33. package/dist/{chunk-RW3URTNE.cjs → chunk-VH234EOF.cjs} +25 -25
  34. package/dist/{chunk-RW3URTNE.cjs.map → chunk-VH234EOF.cjs.map} +1 -1
  35. package/dist/{chunk-LBAGMNGG.js → chunk-XAEVT7ZM.js} +18 -26
  36. package/dist/chunk-XAEVT7ZM.js.map +1 -0
  37. package/dist/document-tools/core.cjs +99 -99
  38. package/dist/document-tools/core.js +3 -3
  39. package/dist/document-tools/index.cjs +101 -101
  40. package/dist/document-tools/index.js +4 -4
  41. package/dist/index.cjs +1106 -1086
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/{index.d-BTbjugKS.d.ts → index.d-BDcwpFVa.d.cts} +73 -72
  44. package/dist/{index.d-BTbjugKS.d.cts → index.d-BDcwpFVa.d.ts} +73 -72
  45. package/dist/index.d.cts +52 -29
  46. package/dist/index.d.ts +52 -29
  47. package/dist/index.js +53 -38
  48. package/dist/index.js.map +1 -1
  49. package/dist/ui/index.cjs +148 -148
  50. package/dist/ui/index.d.cts +1 -1
  51. package/dist/ui/index.d.ts +1 -1
  52. package/dist/ui/index.js +1 -1
  53. package/dist/viewers/index.cjs +2 -2
  54. package/dist/viewers/index.js +1 -1
  55. package/package.json +3 -3
  56. package/dist/chunk-2Y6LJNWA.js.map +0 -1
  57. package/dist/chunk-5YGUBXXH.cjs.map +0 -1
  58. package/dist/chunk-DLBGBIAM.js.map +0 -1
  59. package/dist/chunk-IHKQPOPK.cjs.map +0 -1
  60. package/dist/chunk-L2P2X6LH.cjs.map +0 -1
  61. package/dist/chunk-LBAGMNGG.js.map +0 -1
@@ -374,12 +374,11 @@ var EntityPill = React.forwardRef(function EntityPill2({
374
374
  href,
375
375
  disabled = false,
376
376
  tooltipContent,
377
- tooltipSide = "bottom",
378
377
  "data-testid": testId
379
378
  }, ref) {
380
379
  const shapeClass = shape === "pill" ? "rounded-full" : "rounded-md";
381
- const sizeClasses2 = size === "base" ? "gap-1.5 px-1.5 py-0.5" : "gap-1 px-1";
382
- const textSizeClass = size === "base" ? "text-base" : "text-sm";
380
+ const sizeClasses2 = size === "md" ? "gap-1.5 px-1.5 py-0.5" : "gap-1 px-1";
381
+ const textSizeClass = size === "md" ? "text-base" : "text-sm";
383
382
  const baseClasses = chunkS6A6FSG7_cjs.cn(
384
383
  "group/pill items-center",
385
384
  fullWidth ? "flex w-full" : "inline-flex",
@@ -420,7 +419,7 @@ var EntityPill = React.forwardRef(function EntityPill2({
420
419
  ),
421
420
  secondaryText && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground flex-shrink-0 leading-none", children: secondaryText })
422
421
  ] });
423
- const tooltipWrap = (content, tip, side = tooltipSide, triggerClassName, triggerProps) => /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
422
+ const tooltipWrap = (content, tip, side = "bottom", triggerClassName, triggerProps) => /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
424
423
  /* @__PURE__ */ jsxRuntime.jsx(
425
424
  TooltipTrigger,
426
425
  {
@@ -443,7 +442,7 @@ var EntityPill = React.forwardRef(function EntityPill2({
443
442
  mainArea = tooltipWrap(
444
443
  mainContent,
445
444
  tooltipContent,
446
- tooltipSide,
445
+ "bottom",
447
446
  chunkS6A6FSG7_cjs.cn(mainAreaTouchClass, disabled && "opacity-60"),
448
447
  {
449
448
  type: "button",
@@ -483,7 +482,7 @@ var EntityPill = React.forwardRef(function EntityPill2({
483
482
  const moreArea = moreContent ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 leading-none", children: moreContent }) : tooltipWrap(
484
483
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreVertical, { className: "w-3.5 h-3.5" }),
485
484
  "Click for more",
486
- tooltipSide,
485
+ "bottom",
487
486
  "flex-shrink-0 leading-none text-muted-foreground hover:text-foreground",
488
487
  {
489
488
  type: "button",
@@ -526,7 +525,7 @@ var EntityPill = React.forwardRef(function EntityPill2({
526
525
  }
527
526
  ),
528
527
  tooltipContent,
529
- tooltipSide,
528
+ "bottom",
530
529
  chunkS6A6FSG7_cjs.cn(baseClasses, interactiveClasses),
531
530
  { "data-testid": testId, style }
532
531
  );
@@ -534,7 +533,7 @@ var EntityPill = React.forwardRef(function EntityPill2({
534
533
  return tooltipWrap(
535
534
  mainContent,
536
535
  tooltipContent,
537
- tooltipSide,
536
+ "bottom",
538
537
  chunkS6A6FSG7_cjs.cn(
539
538
  baseClasses,
540
539
  onClick && !disabled ? interactiveClasses : "",
@@ -1139,8 +1138,8 @@ function DocumentEntity({
1139
1138
  }) {
1140
1139
  const title = getDocumentTitle(doc);
1141
1140
  const ext = doc.file_name?.split(".").pop()?.toLowerCase();
1142
- const iconSize = size === "base" ? 16 : 14;
1143
- const eyeSizeClass = size === "base" ? "h-4 w-4" : "h-3.5 w-3.5";
1141
+ const iconSize = size === "md" ? 16 : 14;
1142
+ const eyeSizeClass = size === "md" ? "h-4 w-4" : "h-3.5 w-3.5";
1144
1143
  const baseIcon = icon ?? getDocIcon(doc.file_name, iconSize);
1145
1144
  const displayIcon = viewing || iconBadge ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-flex flex-shrink-0 items-center justify-center", children: [
1146
1145
  viewing ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Eye, { className: chunkS6A6FSG7_cjs.cn("text-primary-foreground", eyeSizeClass) }) : baseIcon,
@@ -1550,7 +1549,7 @@ function TagEntity({
1550
1549
  children: checked && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { size: iconSize - 2, color: "#ffffff", strokeWidth: 3 })
1551
1550
  }
1552
1551
  );
1553
- const pillSize = size === "lg" ? "base" : "sm";
1552
+ const pillSize = size === "lg" ? "md" : "sm";
1554
1553
  const defaultTooltip = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5 text-sm", children: [
1555
1554
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
1556
1555
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: "Type:" }),
@@ -2152,7 +2151,6 @@ function MicWaveformIndicator({
2152
2151
  function MicRecordingOverlay({
2153
2152
  level,
2154
2153
  elapsedMs,
2155
- paused,
2156
2154
  caption = "Keep button pressed while speaking"
2157
2155
  }) {
2158
2156
  if (typeof document === "undefined") return null;
@@ -2164,7 +2162,7 @@ function MicRecordingOverlay({
2164
2162
  className: "pointer-events-none fixed inset-0 z-[2147483647] flex items-center justify-center",
2165
2163
  "data-testid": "mic-recording-overlay",
2166
2164
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-72 flex-col items-center gap-3 rounded-2xl bg-background/95 px-6 py-5 shadow-2xl ring-1 ring-border backdrop-blur-sm", children: [
2167
- /* @__PURE__ */ jsxRuntime.jsx(MicWaveformIndicator, { level, elapsedMs, paused }),
2165
+ /* @__PURE__ */ jsxRuntime.jsx(MicWaveformIndicator, { level, elapsedMs }),
2168
2166
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-sm font-medium text-muted-foreground", children: caption })
2169
2167
  ] })
2170
2168
  }
@@ -2712,7 +2710,6 @@ function ProjectEntity({
2712
2710
  icon,
2713
2711
  subscription = "none",
2714
2712
  hasCollaborators = false,
2715
- size = "sm",
2716
2713
  className,
2717
2714
  onClick,
2718
2715
  relation,
@@ -2722,14 +2719,12 @@ function ProjectEntity({
2722
2719
  const paid = isPaid ?? (subscription === "active" || subscription === "past_due" || subscription === "dev");
2723
2720
  const variant = resolveVariant(relation, paid, hasCollaborators);
2724
2721
  const { pill, icon: iconClass } = VARIANT_STYLES[variant];
2725
- const iconSizeClass = size === "base" ? "h-4 w-4" : "h-3.5 w-3.5";
2726
- const iconNode = icon ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: chunkS6A6FSG7_cjs.cn(iconSizeClass, iconClass) });
2722
+ const iconNode = icon ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: chunkS6A6FSG7_cjs.cn("h-3.5 w-3.5", iconClass) });
2727
2723
  return /* @__PURE__ */ jsxRuntime.jsx(
2728
2724
  EntityPill,
2729
2725
  {
2730
2726
  icon: iconNode,
2731
2727
  label: label ?? name,
2732
- size,
2733
2728
  shape: "rounded",
2734
2729
  className: chunkS6A6FSG7_cjs.cn(pill, className),
2735
2730
  onClick,
@@ -2833,7 +2828,6 @@ var UserEntity = React.memo(function UserEntity2({
2833
2828
  className,
2834
2829
  showTooltip = true,
2835
2830
  interactive = true,
2836
- hasUnreadMessages = false,
2837
2831
  initials = "",
2838
2832
  displayName = "",
2839
2833
  picture,
@@ -2861,7 +2855,6 @@ var UserEntity = React.memo(function UserEntity2({
2861
2855
  }
2862
2856
  const agentBadge = isAgent2 ? /* @__PURE__ */ jsxRuntime.jsx(ArbiBotHeadIcon, { className: "w-3.5 h-3.5 text-muted-foreground" }) : void 0;
2863
2857
  const canMessage = interactive && !isMe && !isAgent2;
2864
- const showUnread = hasUnreadMessages && !isMe && !isAgent2;
2865
2858
  const surfaceStyle = avatarStyle ?? agentStyle;
2866
2859
  const avatarCore = /* @__PURE__ */ jsxRuntime.jsxs(
2867
2860
  chunkEEIYXVM4_cjs.Avatar,
@@ -2889,20 +2882,19 @@ var UserEntity = React.memo(function UserEntity2({
2889
2882
  ]
2890
2883
  }
2891
2884
  );
2892
- const statusDot = showUnread || displayStatus ? /* @__PURE__ */ jsxRuntime.jsx(
2885
+ const statusDot = displayStatus ? /* @__PURE__ */ jsxRuntime.jsx(
2893
2886
  "span",
2894
2887
  {
2895
2888
  className: chunkS6A6FSG7_cjs.cn(
2896
2889
  "absolute rounded-full border-white",
2897
2890
  presenceDotClasses[size],
2898
2891
  presencePositionClasses[size],
2899
- !showUnread && displayStatus ? presenceColorClasses[displayStatus] : ""
2892
+ presenceColorClasses[displayStatus]
2900
2893
  ),
2901
- style: showUnread ? { backgroundColor: "#00adef" } : void 0,
2902
2894
  "data-testid": "user-entity-presence",
2903
2895
  role: "img",
2904
- "aria-label": showUnread ? "Unread messages" : PRESENCE_LABELS[displayStatus],
2905
- title: showUnread ? "Unread messages" : PRESENCE_LABELS[displayStatus]
2896
+ "aria-label": PRESENCE_LABELS[displayStatus],
2897
+ title: PRESENCE_LABELS[displayStatus]
2906
2898
  }
2907
2899
  ) : null;
2908
2900
  const avatarElement = statusDot ? /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5408,5 +5400,5 @@ exports.toggleVariants = toggleVariants;
5408
5400
  exports.useAudioRecorder = useAudioRecorder;
5409
5401
  exports.useDictateContext = useDictateContext;
5410
5402
  exports.usesOriginalBytesForViewer = usesOriginalBytesForViewer;
5411
- //# sourceMappingURL=chunk-IHKQPOPK.cjs.map
5412
- //# sourceMappingURL=chunk-IHKQPOPK.cjs.map
5403
+ //# sourceMappingURL=chunk-PXWKJI4K.cjs.map
5404
+ //# sourceMappingURL=chunk-PXWKJI4K.cjs.map