@arbidocs/react 0.5.82 → 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.
- package/dist/artifacts/index.cjs +9 -9
- package/dist/artifacts/index.js +3 -3
- package/dist/calls/livekit/index.cjs +48 -48
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-YJEZEPUB.js → chunk-26WAJNXN.js} +3 -3
- package/dist/{chunk-YJEZEPUB.js.map → chunk-26WAJNXN.js.map} +1 -1
- package/dist/{chunk-CQYJQWJY.js → chunk-7R4SVVQE.js} +3 -3
- package/dist/{chunk-CQYJQWJY.js.map → chunk-7R4SVVQE.js.map} +1 -1
- package/dist/{chunk-5YGUBXXH.cjs → chunk-AEG5ZMKH.cjs} +2 -2
- package/dist/chunk-AEG5ZMKH.cjs.map +1 -0
- package/dist/{chunk-5UJ4ZKJN.js → chunk-B3C25GWG.js} +4 -4
- package/dist/{chunk-5UJ4ZKJN.js.map → chunk-B3C25GWG.js.map} +1 -1
- package/dist/{chunk-RXPBHHX2.js → chunk-BB32GHDD.js} +4 -4
- package/dist/{chunk-RXPBHHX2.js.map → chunk-BB32GHDD.js.map} +1 -1
- package/dist/{chunk-2Y6LJNWA.js → chunk-EJIO2KAF.js} +2 -2
- package/dist/chunk-EJIO2KAF.js.map +1 -0
- package/dist/{chunk-5N3UFEXE.cjs → chunk-FEPBB7VJ.cjs} +31 -31
- package/dist/{chunk-5N3UFEXE.cjs.map → chunk-FEPBB7VJ.cjs.map} +1 -1
- package/dist/{chunk-5IN5OGBT.cjs → chunk-FOB5QVGI.cjs} +16 -16
- package/dist/{chunk-5IN5OGBT.cjs.map → chunk-FOB5QVGI.cjs.map} +1 -1
- package/dist/{chunk-A5BJZ4ZN.cjs → chunk-JLJLPC5X.cjs} +22 -22
- package/dist/{chunk-A5BJZ4ZN.cjs.map → chunk-JLJLPC5X.cjs.map} +1 -1
- package/dist/{chunk-XQUC25ME.cjs → chunk-PXWKJI4K.cjs} +17 -24
- package/dist/chunk-PXWKJI4K.cjs.map +1 -0
- package/dist/{chunk-OR6B7IL2.js → chunk-RZWWSAQG.js} +3 -3
- package/dist/{chunk-OR6B7IL2.js.map → chunk-RZWWSAQG.js.map} +1 -1
- package/dist/{chunk-QEVM3F5X.cjs → chunk-UKLLE4FC.cjs} +4 -4
- package/dist/{chunk-QEVM3F5X.cjs.map → chunk-UKLLE4FC.cjs.map} +1 -1
- package/dist/{chunk-RW3URTNE.cjs → chunk-VH234EOF.cjs} +25 -25
- package/dist/{chunk-RW3URTNE.cjs.map → chunk-VH234EOF.cjs.map} +1 -1
- package/dist/{chunk-ZDTOJVPP.js → chunk-XAEVT7ZM.js} +17 -24
- package/dist/chunk-XAEVT7ZM.js.map +1 -0
- package/dist/document-tools/core.cjs +99 -99
- package/dist/document-tools/core.js +3 -3
- package/dist/document-tools/index.cjs +101 -101
- package/dist/document-tools/index.js +4 -4
- package/dist/index.cjs +1065 -1065
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-BTbjugKS.d.ts → index.d-BDcwpFVa.d.cts} +73 -72
- package/dist/{index.d-BTbjugKS.d.cts → index.d-BDcwpFVa.d.ts} +73 -72
- package/dist/index.d.cts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +148 -148
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/viewers/index.cjs +2 -2
- package/dist/viewers/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-2Y6LJNWA.js.map +0 -1
- package/dist/chunk-5YGUBXXH.cjs.map +0 -1
- package/dist/chunk-XQUC25ME.cjs.map +0 -1
- package/dist/chunk-ZDTOJVPP.js.map +0 -1
|
@@ -340,12 +340,11 @@ var EntityPill = forwardRef(function EntityPill2({
|
|
|
340
340
|
href,
|
|
341
341
|
disabled = false,
|
|
342
342
|
tooltipContent,
|
|
343
|
-
tooltipSide = "bottom",
|
|
344
343
|
"data-testid": testId
|
|
345
344
|
}, ref) {
|
|
346
345
|
const shapeClass = shape === "pill" ? "rounded-full" : "rounded-md";
|
|
347
|
-
const sizeClasses2 = size === "
|
|
348
|
-
const textSizeClass = size === "
|
|
346
|
+
const sizeClasses2 = size === "md" ? "gap-1.5 px-1.5 py-0.5" : "gap-1 px-1";
|
|
347
|
+
const textSizeClass = size === "md" ? "text-base" : "text-sm";
|
|
349
348
|
const baseClasses = cn(
|
|
350
349
|
"group/pill items-center",
|
|
351
350
|
fullWidth ? "flex w-full" : "inline-flex",
|
|
@@ -386,7 +385,7 @@ var EntityPill = forwardRef(function EntityPill2({
|
|
|
386
385
|
),
|
|
387
386
|
secondaryText && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground flex-shrink-0 leading-none", children: secondaryText })
|
|
388
387
|
] });
|
|
389
|
-
const tooltipWrap = (content, tip, side =
|
|
388
|
+
const tooltipWrap = (content, tip, side = "bottom", triggerClassName, triggerProps) => /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
390
389
|
/* @__PURE__ */ jsx(
|
|
391
390
|
TooltipTrigger,
|
|
392
391
|
{
|
|
@@ -409,7 +408,7 @@ var EntityPill = forwardRef(function EntityPill2({
|
|
|
409
408
|
mainArea = tooltipWrap(
|
|
410
409
|
mainContent,
|
|
411
410
|
tooltipContent,
|
|
412
|
-
|
|
411
|
+
"bottom",
|
|
413
412
|
cn(mainAreaTouchClass, disabled && "opacity-60"),
|
|
414
413
|
{
|
|
415
414
|
type: "button",
|
|
@@ -449,7 +448,7 @@ var EntityPill = forwardRef(function EntityPill2({
|
|
|
449
448
|
const moreArea = moreContent ? /* @__PURE__ */ jsx("span", { className: "flex-shrink-0 leading-none", children: moreContent }) : tooltipWrap(
|
|
450
449
|
/* @__PURE__ */ jsx(MoreVertical, { className: "w-3.5 h-3.5" }),
|
|
451
450
|
"Click for more",
|
|
452
|
-
|
|
451
|
+
"bottom",
|
|
453
452
|
"flex-shrink-0 leading-none text-muted-foreground hover:text-foreground",
|
|
454
453
|
{
|
|
455
454
|
type: "button",
|
|
@@ -492,7 +491,7 @@ var EntityPill = forwardRef(function EntityPill2({
|
|
|
492
491
|
}
|
|
493
492
|
),
|
|
494
493
|
tooltipContent,
|
|
495
|
-
|
|
494
|
+
"bottom",
|
|
496
495
|
cn(baseClasses, interactiveClasses),
|
|
497
496
|
{ "data-testid": testId, style }
|
|
498
497
|
);
|
|
@@ -500,7 +499,7 @@ var EntityPill = forwardRef(function EntityPill2({
|
|
|
500
499
|
return tooltipWrap(
|
|
501
500
|
mainContent,
|
|
502
501
|
tooltipContent,
|
|
503
|
-
|
|
502
|
+
"bottom",
|
|
504
503
|
cn(
|
|
505
504
|
baseClasses,
|
|
506
505
|
onClick && !disabled ? interactiveClasses : "",
|
|
@@ -1105,8 +1104,8 @@ function DocumentEntity({
|
|
|
1105
1104
|
}) {
|
|
1106
1105
|
const title = getDocumentTitle(doc);
|
|
1107
1106
|
const ext = doc.file_name?.split(".").pop()?.toLowerCase();
|
|
1108
|
-
const iconSize = size === "
|
|
1109
|
-
const eyeSizeClass = size === "
|
|
1107
|
+
const iconSize = size === "md" ? 16 : 14;
|
|
1108
|
+
const eyeSizeClass = size === "md" ? "h-4 w-4" : "h-3.5 w-3.5";
|
|
1110
1109
|
const baseIcon = icon ?? getDocIcon(doc.file_name, iconSize);
|
|
1111
1110
|
const displayIcon = viewing || iconBadge ? /* @__PURE__ */ jsxs("span", { className: "relative inline-flex flex-shrink-0 items-center justify-center", children: [
|
|
1112
1111
|
viewing ? /* @__PURE__ */ jsx(Eye, { className: cn("text-primary-foreground", eyeSizeClass) }) : baseIcon,
|
|
@@ -1516,7 +1515,7 @@ function TagEntity({
|
|
|
1516
1515
|
children: checked && /* @__PURE__ */ jsx(Check, { size: iconSize - 2, color: "#ffffff", strokeWidth: 3 })
|
|
1517
1516
|
}
|
|
1518
1517
|
);
|
|
1519
|
-
const pillSize = size === "lg" ? "
|
|
1518
|
+
const pillSize = size === "lg" ? "md" : "sm";
|
|
1520
1519
|
const defaultTooltip = /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5 text-sm", children: [
|
|
1521
1520
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1522
1521
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Type:" }),
|
|
@@ -2677,7 +2676,6 @@ function ProjectEntity({
|
|
|
2677
2676
|
icon,
|
|
2678
2677
|
subscription = "none",
|
|
2679
2678
|
hasCollaborators = false,
|
|
2680
|
-
size = "sm",
|
|
2681
2679
|
className,
|
|
2682
2680
|
onClick,
|
|
2683
2681
|
relation,
|
|
@@ -2687,14 +2685,12 @@ function ProjectEntity({
|
|
|
2687
2685
|
const paid = isPaid ?? (subscription === "active" || subscription === "past_due" || subscription === "dev");
|
|
2688
2686
|
const variant = resolveVariant(relation, paid, hasCollaborators);
|
|
2689
2687
|
const { pill, icon: iconClass } = VARIANT_STYLES[variant];
|
|
2690
|
-
const
|
|
2691
|
-
const iconNode = icon ?? /* @__PURE__ */ jsx(CreditCard, { className: cn(iconSizeClass, iconClass) });
|
|
2688
|
+
const iconNode = icon ?? /* @__PURE__ */ jsx(CreditCard, { className: cn("h-3.5 w-3.5", iconClass) });
|
|
2692
2689
|
return /* @__PURE__ */ jsx(
|
|
2693
2690
|
EntityPill,
|
|
2694
2691
|
{
|
|
2695
2692
|
icon: iconNode,
|
|
2696
2693
|
label: label ?? name,
|
|
2697
|
-
size,
|
|
2698
2694
|
shape: "rounded",
|
|
2699
2695
|
className: cn(pill, className),
|
|
2700
2696
|
onClick,
|
|
@@ -2798,7 +2794,6 @@ var UserEntity = memo(function UserEntity2({
|
|
|
2798
2794
|
className,
|
|
2799
2795
|
showTooltip = true,
|
|
2800
2796
|
interactive = true,
|
|
2801
|
-
hasUnreadMessages = false,
|
|
2802
2797
|
initials = "",
|
|
2803
2798
|
displayName = "",
|
|
2804
2799
|
picture,
|
|
@@ -2826,7 +2821,6 @@ var UserEntity = memo(function UserEntity2({
|
|
|
2826
2821
|
}
|
|
2827
2822
|
const agentBadge = isAgent2 ? /* @__PURE__ */ jsx(ArbiBotHeadIcon, { className: "w-3.5 h-3.5 text-muted-foreground" }) : void 0;
|
|
2828
2823
|
const canMessage = interactive && !isMe && !isAgent2;
|
|
2829
|
-
const showUnread = hasUnreadMessages && !isMe && !isAgent2;
|
|
2830
2824
|
const surfaceStyle = avatarStyle ?? agentStyle;
|
|
2831
2825
|
const avatarCore = /* @__PURE__ */ jsxs(
|
|
2832
2826
|
Avatar,
|
|
@@ -2854,20 +2848,19 @@ var UserEntity = memo(function UserEntity2({
|
|
|
2854
2848
|
]
|
|
2855
2849
|
}
|
|
2856
2850
|
);
|
|
2857
|
-
const statusDot =
|
|
2851
|
+
const statusDot = displayStatus ? /* @__PURE__ */ jsx(
|
|
2858
2852
|
"span",
|
|
2859
2853
|
{
|
|
2860
2854
|
className: cn(
|
|
2861
2855
|
"absolute rounded-full border-white",
|
|
2862
2856
|
presenceDotClasses[size],
|
|
2863
2857
|
presencePositionClasses[size],
|
|
2864
|
-
|
|
2858
|
+
presenceColorClasses[displayStatus]
|
|
2865
2859
|
),
|
|
2866
|
-
style: showUnread ? { backgroundColor: "#00adef" } : void 0,
|
|
2867
2860
|
"data-testid": "user-entity-presence",
|
|
2868
2861
|
role: "img",
|
|
2869
|
-
"aria-label":
|
|
2870
|
-
title:
|
|
2862
|
+
"aria-label": PRESENCE_LABELS[displayStatus],
|
|
2863
|
+
title: PRESENCE_LABELS[displayStatus]
|
|
2871
2864
|
}
|
|
2872
2865
|
) : null;
|
|
2873
2866
|
const avatarElement = statusDot ? /* @__PURE__ */ jsxs(
|
|
@@ -5200,5 +5193,5 @@ function UserMenu({
|
|
|
5200
5193
|
}
|
|
5201
5194
|
|
|
5202
5195
|
export { ARBI_MARK_SRC, AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, AudIcon, BASE_COLORS, Badge, COLUMN_LABEL_FALLBACKS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClaudeIcon, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_METADATA_TAGS, DebouncedInput, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, FireworksIcon, GeminiIcon, GoogleIcon, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, IconToggle, ImgIcon, InlineMicButton, Input, Label2 as Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY2 as NEUTRAL_GRAY, OpenAIIcon, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, ProviderIcon, 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, VerifiedToggle, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, agentAvatarColors, badgeVariants, buildFolderTree, canonicalFolderPath, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, entityNoun, extensionFromMime, formatCompactLastSeen, formatDocDate, formatElapsed, formatFolderLabel, formatFriendlyDate, friendlyFileType, getDocIcon, getDocumentAuthor, getDocumentDate, getDocumentNature, getDocumentSubject, getDocumentTitle, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getFileExtension, getFileTypeIcon, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, isAudioFile, isDocumentAddableToConversation, isDownloadOnlyFile, isImageDocument, isImageFile, isMediaFile, isVideoFile, markdownToPlainText, markdownToPlainTextBlocks, pickRecorderMimeType, returnFocusToMark, tagKindNouns, tagKindTitle, toggleVariants, useAudioRecorder, useDictateContext, usesOriginalBytesForViewer };
|
|
5203
|
-
//# sourceMappingURL=chunk-
|
|
5204
|
-
//# sourceMappingURL=chunk-
|
|
5196
|
+
//# sourceMappingURL=chunk-XAEVT7ZM.js.map
|
|
5197
|
+
//# sourceMappingURL=chunk-XAEVT7ZM.js.map
|