@arbidocs/react 0.5.82 → 0.5.84

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 (56) hide show
  1. package/README.md +25 -0
  2. package/dist/artifacts/index.cjs +9 -9
  3. package/dist/artifacts/index.js +3 -3
  4. package/dist/calls/livekit/index.cjs +48 -48
  5. package/dist/calls/livekit/index.js +3 -3
  6. package/dist/{chunk-5N3UFEXE.cjs → chunk-2Y2WOIHH.cjs} +31 -31
  7. package/dist/{chunk-5N3UFEXE.cjs.map → chunk-2Y2WOIHH.cjs.map} +1 -1
  8. package/dist/{chunk-OR6B7IL2.js → chunk-47YVW3J4.js} +3 -3
  9. package/dist/{chunk-OR6B7IL2.js.map → chunk-47YVW3J4.js.map} +1 -1
  10. package/dist/{chunk-RW3URTNE.cjs → chunk-E7VD5WNY.cjs} +25 -25
  11. package/dist/{chunk-RW3URTNE.cjs.map → chunk-E7VD5WNY.cjs.map} +1 -1
  12. package/dist/{chunk-5UJ4ZKJN.js → chunk-JT7PN7JH.js} +4 -4
  13. package/dist/{chunk-5UJ4ZKJN.js.map → chunk-JT7PN7JH.js.map} +1 -1
  14. package/dist/{chunk-A5BJZ4ZN.cjs → chunk-LUDIYWT7.cjs} +22 -22
  15. package/dist/{chunk-A5BJZ4ZN.cjs.map → chunk-LUDIYWT7.cjs.map} +1 -1
  16. package/dist/{chunk-XQUC25ME.cjs → chunk-PXWKJI4K.cjs} +17 -24
  17. package/dist/chunk-PXWKJI4K.cjs.map +1 -0
  18. package/dist/{chunk-5IN5OGBT.cjs → chunk-Q6U7ALNV.cjs} +16 -16
  19. package/dist/{chunk-5IN5OGBT.cjs.map → chunk-Q6U7ALNV.cjs.map} +1 -1
  20. package/dist/{chunk-QEVM3F5X.cjs → chunk-TAVS54EN.cjs} +4 -4
  21. package/dist/{chunk-QEVM3F5X.cjs.map → chunk-TAVS54EN.cjs.map} +1 -1
  22. package/dist/{chunk-YJEZEPUB.js → chunk-VGAA7AFS.js} +3 -3
  23. package/dist/{chunk-YJEZEPUB.js.map → chunk-VGAA7AFS.js.map} +1 -1
  24. package/dist/{chunk-5YGUBXXH.cjs → chunk-VGMMK5OM.cjs} +2 -2
  25. package/dist/chunk-VGMMK5OM.cjs.map +1 -0
  26. package/dist/{chunk-2Y6LJNWA.js → chunk-VGO77X5U.js} +2 -2
  27. package/dist/chunk-VGO77X5U.js.map +1 -0
  28. package/dist/{chunk-RXPBHHX2.js → chunk-WQY3RQ6G.js} +4 -4
  29. package/dist/{chunk-RXPBHHX2.js.map → chunk-WQY3RQ6G.js.map} +1 -1
  30. package/dist/{chunk-ZDTOJVPP.js → chunk-XAEVT7ZM.js} +17 -24
  31. package/dist/chunk-XAEVT7ZM.js.map +1 -0
  32. package/dist/{chunk-CQYJQWJY.js → chunk-XPLD4LFC.js} +3 -3
  33. package/dist/{chunk-CQYJQWJY.js.map → chunk-XPLD4LFC.js.map} +1 -1
  34. package/dist/document-tools/core.cjs +99 -99
  35. package/dist/document-tools/core.js +3 -3
  36. package/dist/document-tools/index.cjs +101 -101
  37. package/dist/document-tools/index.js +4 -4
  38. package/dist/index.cjs +1184 -1153
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/{index.d-BTbjugKS.d.ts → index.d-BDcwpFVa.d.cts} +73 -72
  41. package/dist/{index.d-BTbjugKS.d.cts → index.d-BDcwpFVa.d.ts} +73 -72
  42. package/dist/index.d.cts +75 -34
  43. package/dist/index.d.ts +75 -34
  44. package/dist/index.js +126 -100
  45. package/dist/index.js.map +1 -1
  46. package/dist/ui/index.cjs +148 -148
  47. package/dist/ui/index.d.cts +1 -1
  48. package/dist/ui/index.d.ts +1 -1
  49. package/dist/ui/index.js +1 -1
  50. package/dist/viewers/index.cjs +2 -2
  51. package/dist/viewers/index.js +1 -1
  52. package/package.json +3 -3
  53. package/dist/chunk-2Y6LJNWA.js.map +0 -1
  54. package/dist/chunk-5YGUBXXH.cjs.map +0 -1
  55. package/dist/chunk-XQUC25ME.cjs.map +0 -1
  56. package/dist/chunk-ZDTOJVPP.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:" }),
@@ -2711,7 +2710,6 @@ function ProjectEntity({
2711
2710
  icon,
2712
2711
  subscription = "none",
2713
2712
  hasCollaborators = false,
2714
- size = "sm",
2715
2713
  className,
2716
2714
  onClick,
2717
2715
  relation,
@@ -2721,14 +2719,12 @@ function ProjectEntity({
2721
2719
  const paid = isPaid ?? (subscription === "active" || subscription === "past_due" || subscription === "dev");
2722
2720
  const variant = resolveVariant(relation, paid, hasCollaborators);
2723
2721
  const { pill, icon: iconClass } = VARIANT_STYLES[variant];
2724
- const iconSizeClass = size === "base" ? "h-4 w-4" : "h-3.5 w-3.5";
2725
- 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) });
2726
2723
  return /* @__PURE__ */ jsxRuntime.jsx(
2727
2724
  EntityPill,
2728
2725
  {
2729
2726
  icon: iconNode,
2730
2727
  label: label ?? name,
2731
- size,
2732
2728
  shape: "rounded",
2733
2729
  className: chunkS6A6FSG7_cjs.cn(pill, className),
2734
2730
  onClick,
@@ -2832,7 +2828,6 @@ var UserEntity = React.memo(function UserEntity2({
2832
2828
  className,
2833
2829
  showTooltip = true,
2834
2830
  interactive = true,
2835
- hasUnreadMessages = false,
2836
2831
  initials = "",
2837
2832
  displayName = "",
2838
2833
  picture,
@@ -2860,7 +2855,6 @@ var UserEntity = React.memo(function UserEntity2({
2860
2855
  }
2861
2856
  const agentBadge = isAgent2 ? /* @__PURE__ */ jsxRuntime.jsx(ArbiBotHeadIcon, { className: "w-3.5 h-3.5 text-muted-foreground" }) : void 0;
2862
2857
  const canMessage = interactive && !isMe && !isAgent2;
2863
- const showUnread = hasUnreadMessages && !isMe && !isAgent2;
2864
2858
  const surfaceStyle = avatarStyle ?? agentStyle;
2865
2859
  const avatarCore = /* @__PURE__ */ jsxRuntime.jsxs(
2866
2860
  chunkEEIYXVM4_cjs.Avatar,
@@ -2888,20 +2882,19 @@ var UserEntity = React.memo(function UserEntity2({
2888
2882
  ]
2889
2883
  }
2890
2884
  );
2891
- const statusDot = showUnread || displayStatus ? /* @__PURE__ */ jsxRuntime.jsx(
2885
+ const statusDot = displayStatus ? /* @__PURE__ */ jsxRuntime.jsx(
2892
2886
  "span",
2893
2887
  {
2894
2888
  className: chunkS6A6FSG7_cjs.cn(
2895
2889
  "absolute rounded-full border-white",
2896
2890
  presenceDotClasses[size],
2897
2891
  presencePositionClasses[size],
2898
- !showUnread && displayStatus ? presenceColorClasses[displayStatus] : ""
2892
+ presenceColorClasses[displayStatus]
2899
2893
  ),
2900
- style: showUnread ? { backgroundColor: "#00adef" } : void 0,
2901
2894
  "data-testid": "user-entity-presence",
2902
2895
  role: "img",
2903
- "aria-label": showUnread ? "Unread messages" : PRESENCE_LABELS[displayStatus],
2904
- title: showUnread ? "Unread messages" : PRESENCE_LABELS[displayStatus]
2896
+ "aria-label": PRESENCE_LABELS[displayStatus],
2897
+ title: PRESENCE_LABELS[displayStatus]
2905
2898
  }
2906
2899
  ) : null;
2907
2900
  const avatarElement = statusDot ? /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5407,5 +5400,5 @@ exports.toggleVariants = toggleVariants;
5407
5400
  exports.useAudioRecorder = useAudioRecorder;
5408
5401
  exports.useDictateContext = useDictateContext;
5409
5402
  exports.usesOriginalBytesForViewer = usesOriginalBytesForViewer;
5410
- //# sourceMappingURL=chunk-XQUC25ME.cjs.map
5411
- //# sourceMappingURL=chunk-XQUC25ME.cjs.map
5403
+ //# sourceMappingURL=chunk-PXWKJI4K.cjs.map
5404
+ //# sourceMappingURL=chunk-PXWKJI4K.cjs.map