@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.
- package/dist/artifacts/index.cjs +11 -18
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.cts +1 -3
- package/dist/artifacts/index.d.ts +1 -3
- package/dist/artifacts/index.js +5 -12
- package/dist/artifacts/index.js.map +1 -1
- 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-DLBGBIAM.js → chunk-7R4SVVQE.js} +7 -5
- package/dist/chunk-7R4SVVQE.js.map +1 -0
- 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-4QON6LSH.js → chunk-BB32GHDD.js} +4 -4
- package/dist/{chunk-4QON6LSH.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-L2P2X6LH.cjs → chunk-FEPBB7VJ.cjs} +35 -32
- package/dist/chunk-FEPBB7VJ.cjs.map +1 -0
- 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-IZ3B62EN.cjs → chunk-JLJLPC5X.cjs} +22 -22
- package/dist/{chunk-IZ3B62EN.cjs.map → chunk-JLJLPC5X.cjs.map} +1 -1
- package/dist/{chunk-IHKQPOPK.cjs → chunk-PXWKJI4K.cjs} +18 -26
- 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-LBAGMNGG.js → chunk-XAEVT7ZM.js} +18 -26
- 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 +1106 -1086
- 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 +52 -29
- package/dist/index.d.ts +52 -29
- package/dist/index.js +53 -38
- 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-DLBGBIAM.js.map +0 -1
- package/dist/chunk-IHKQPOPK.cjs.map +0 -1
- package/dist/chunk-L2P2X6LH.cjs.map +0 -1
- package/dist/chunk-LBAGMNGG.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:" }),
|
|
@@ -2118,7 +2117,6 @@ function MicWaveformIndicator({
|
|
|
2118
2117
|
function MicRecordingOverlay({
|
|
2119
2118
|
level,
|
|
2120
2119
|
elapsedMs,
|
|
2121
|
-
paused,
|
|
2122
2120
|
caption = "Keep button pressed while speaking"
|
|
2123
2121
|
}) {
|
|
2124
2122
|
if (typeof document === "undefined") return null;
|
|
@@ -2130,7 +2128,7 @@ function MicRecordingOverlay({
|
|
|
2130
2128
|
className: "pointer-events-none fixed inset-0 z-[2147483647] flex items-center justify-center",
|
|
2131
2129
|
"data-testid": "mic-recording-overlay",
|
|
2132
2130
|
children: /* @__PURE__ */ 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: [
|
|
2133
|
-
/* @__PURE__ */ jsx(MicWaveformIndicator, { level, elapsedMs
|
|
2131
|
+
/* @__PURE__ */ jsx(MicWaveformIndicator, { level, elapsedMs }),
|
|
2134
2132
|
/* @__PURE__ */ jsx("p", { className: "text-center text-sm font-medium text-muted-foreground", children: caption })
|
|
2135
2133
|
] })
|
|
2136
2134
|
}
|
|
@@ -2678,7 +2676,6 @@ function ProjectEntity({
|
|
|
2678
2676
|
icon,
|
|
2679
2677
|
subscription = "none",
|
|
2680
2678
|
hasCollaborators = false,
|
|
2681
|
-
size = "sm",
|
|
2682
2679
|
className,
|
|
2683
2680
|
onClick,
|
|
2684
2681
|
relation,
|
|
@@ -2688,14 +2685,12 @@ function ProjectEntity({
|
|
|
2688
2685
|
const paid = isPaid ?? (subscription === "active" || subscription === "past_due" || subscription === "dev");
|
|
2689
2686
|
const variant = resolveVariant(relation, paid, hasCollaborators);
|
|
2690
2687
|
const { pill, icon: iconClass } = VARIANT_STYLES[variant];
|
|
2691
|
-
const
|
|
2692
|
-
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) });
|
|
2693
2689
|
return /* @__PURE__ */ jsx(
|
|
2694
2690
|
EntityPill,
|
|
2695
2691
|
{
|
|
2696
2692
|
icon: iconNode,
|
|
2697
2693
|
label: label ?? name,
|
|
2698
|
-
size,
|
|
2699
2694
|
shape: "rounded",
|
|
2700
2695
|
className: cn(pill, className),
|
|
2701
2696
|
onClick,
|
|
@@ -2799,7 +2794,6 @@ var UserEntity = memo(function UserEntity2({
|
|
|
2799
2794
|
className,
|
|
2800
2795
|
showTooltip = true,
|
|
2801
2796
|
interactive = true,
|
|
2802
|
-
hasUnreadMessages = false,
|
|
2803
2797
|
initials = "",
|
|
2804
2798
|
displayName = "",
|
|
2805
2799
|
picture,
|
|
@@ -2827,7 +2821,6 @@ var UserEntity = memo(function UserEntity2({
|
|
|
2827
2821
|
}
|
|
2828
2822
|
const agentBadge = isAgent2 ? /* @__PURE__ */ jsx(ArbiBotHeadIcon, { className: "w-3.5 h-3.5 text-muted-foreground" }) : void 0;
|
|
2829
2823
|
const canMessage = interactive && !isMe && !isAgent2;
|
|
2830
|
-
const showUnread = hasUnreadMessages && !isMe && !isAgent2;
|
|
2831
2824
|
const surfaceStyle = avatarStyle ?? agentStyle;
|
|
2832
2825
|
const avatarCore = /* @__PURE__ */ jsxs(
|
|
2833
2826
|
Avatar,
|
|
@@ -2855,20 +2848,19 @@ var UserEntity = memo(function UserEntity2({
|
|
|
2855
2848
|
]
|
|
2856
2849
|
}
|
|
2857
2850
|
);
|
|
2858
|
-
const statusDot =
|
|
2851
|
+
const statusDot = displayStatus ? /* @__PURE__ */ jsx(
|
|
2859
2852
|
"span",
|
|
2860
2853
|
{
|
|
2861
2854
|
className: cn(
|
|
2862
2855
|
"absolute rounded-full border-white",
|
|
2863
2856
|
presenceDotClasses[size],
|
|
2864
2857
|
presencePositionClasses[size],
|
|
2865
|
-
|
|
2858
|
+
presenceColorClasses[displayStatus]
|
|
2866
2859
|
),
|
|
2867
|
-
style: showUnread ? { backgroundColor: "#00adef" } : void 0,
|
|
2868
2860
|
"data-testid": "user-entity-presence",
|
|
2869
2861
|
role: "img",
|
|
2870
|
-
"aria-label":
|
|
2871
|
-
title:
|
|
2862
|
+
"aria-label": PRESENCE_LABELS[displayStatus],
|
|
2863
|
+
title: PRESENCE_LABELS[displayStatus]
|
|
2872
2864
|
}
|
|
2873
2865
|
) : null;
|
|
2874
2866
|
const avatarElement = statusDot ? /* @__PURE__ */ jsxs(
|
|
@@ -5201,5 +5193,5 @@ function UserMenu({
|
|
|
5201
5193
|
}
|
|
5202
5194
|
|
|
5203
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 };
|
|
5204
|
-
//# sourceMappingURL=chunk-
|
|
5205
|
-
//# sourceMappingURL=chunk-
|
|
5196
|
+
//# sourceMappingURL=chunk-XAEVT7ZM.js.map
|
|
5197
|
+
//# sourceMappingURL=chunk-XAEVT7ZM.js.map
|