@arbidocs/react 0.5.86 → 0.5.87
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/README.md +2 -3
- package/dist/artifacts/index.cjs +46 -48
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.js +7 -9
- package/dist/artifacts/index.js.map +1 -1
- package/dist/calls/livekit/index.cjs +60 -62
- package/dist/calls/livekit/index.cjs.map +1 -1
- package/dist/calls/livekit/index.js +6 -8
- package/dist/calls/livekit/index.js.map +1 -1
- package/dist/{chunk-Z3LLUO32.cjs → chunk-5NOZDH3F.cjs} +12 -2
- package/dist/chunk-5NOZDH3F.cjs.map +1 -0
- package/dist/{chunk-WQY3RQ6G.js → chunk-73ENECAT.js} +5 -6
- package/dist/{chunk-LUDIYWT7.cjs.map → chunk-73ENECAT.js.map} +1 -1
- package/dist/{chunk-2Y2WOIHH.cjs → chunk-AOPGD23L.cjs} +60 -148
- package/dist/chunk-AOPGD23L.cjs.map +1 -0
- package/dist/{chunk-G4Z3IP4J.js → chunk-BF5KW5ZI.js} +3 -17
- package/dist/chunk-BF5KW5ZI.js.map +1 -0
- package/dist/{chunk-TK7ERJPE.js → chunk-BFNY3RZG.js} +22 -12
- package/dist/chunk-BFNY3RZG.js.map +1 -0
- package/dist/{chunk-U4PWVSCT.cjs → chunk-C4WODQGO.cjs} +24 -11
- package/dist/chunk-C4WODQGO.cjs.map +1 -0
- package/dist/{chunk-E7VD5WNY.cjs → chunk-DS7NTSKH.cjs} +41 -74
- package/dist/chunk-DS7NTSKH.cjs.map +1 -0
- package/dist/{chunk-JT7PN7JH.js → chunk-DU2P354H.js} +6 -37
- package/dist/chunk-DU2P354H.js.map +1 -0
- package/dist/{chunk-TAVS54EN.cjs → chunk-GKWMT64A.cjs} +6 -6
- package/dist/{chunk-TAVS54EN.cjs.map → chunk-GKWMT64A.cjs.map} +1 -1
- package/dist/{chunk-AXKHDLBB.cjs → chunk-HEVPIVF2.cjs} +15 -15
- package/dist/{chunk-AXKHDLBB.cjs.map → chunk-HEVPIVF2.cjs.map} +1 -1
- package/dist/{chunk-XPLD4LFC.js → chunk-KTXZ222T.js} +6 -91
- package/dist/chunk-KTXZ222T.js.map +1 -0
- package/dist/{chunk-PXWKJI4K.cjs → chunk-LBAG7KL7.cjs} +35 -261
- package/dist/chunk-LBAG7KL7.cjs.map +1 -0
- package/dist/{chunk-CSPAEVZS.js → chunk-MS43RNXM.js} +5 -5
- package/dist/{chunk-CSPAEVZS.js.map → chunk-MS43RNXM.js.map} +1 -1
- package/dist/{chunk-OC7F5SNA.cjs → chunk-MXP4O4DI.cjs} +5 -5
- package/dist/{chunk-OC7F5SNA.cjs.map → chunk-MXP4O4DI.cjs.map} +1 -1
- package/dist/{chunk-ZWFMFOGP.cjs → chunk-NDIKMOBJ.cjs} +4 -4
- package/dist/{chunk-ZWFMFOGP.cjs.map → chunk-NDIKMOBJ.cjs.map} +1 -1
- package/dist/{chunk-XAEVT7ZM.js → chunk-NNAJLY6B.js} +34 -257
- package/dist/chunk-NNAJLY6B.js.map +1 -0
- package/dist/{chunk-LUDIYWT7.cjs → chunk-QLRDHLWR.cjs} +72 -73
- package/dist/chunk-QLRDHLWR.cjs.map +1 -0
- package/dist/{chunk-DZUBZ45Y.cjs → chunk-RLSBRZ6Z.cjs} +2 -17
- package/dist/chunk-RLSBRZ6Z.cjs.map +1 -0
- package/dist/{chunk-VGAA7AFS.js → chunk-S3OGDLDC.js} +4 -13
- package/dist/chunk-S3OGDLDC.js.map +1 -0
- package/dist/{chunk-NNWMHMEC.js → chunk-UW2SGTI5.js} +3 -3
- package/dist/{chunk-NNWMHMEC.js.map → chunk-UW2SGTI5.js.map} +1 -1
- package/dist/{chunk-QRCMKEE6.js → chunk-VSCU7K4V.js} +11 -3
- package/dist/chunk-VSCU7K4V.js.map +1 -0
- package/dist/{chunk-C44GO33B.js → chunk-WL2Y2T47.js} +3 -3
- package/dist/{chunk-C44GO33B.js.map → chunk-WL2Y2T47.js.map} +1 -1
- package/dist/{chunk-47YVW3J4.js → chunk-YQBDEOVE.js} +4 -4
- package/dist/{chunk-47YVW3J4.js.map → chunk-YQBDEOVE.js.map} +1 -1
- package/dist/{chunk-Q6U7ALNV.cjs → chunk-ZHXYFJIA.cjs} +44 -54
- package/dist/chunk-ZHXYFJIA.cjs.map +1 -0
- package/dist/document-tools/core.cjs +100 -110
- package/dist/document-tools/core.d.cts +3 -78
- package/dist/document-tools/core.d.ts +3 -78
- package/dist/document-tools/core.js +5 -7
- package/dist/document-tools/index.cjs +102 -112
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.cts +2 -2
- package/dist/document-tools/index.d.ts +2 -2
- package/dist/document-tools/index.js +6 -8
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +1740 -2305
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-BDcwpFVa.d.cts → index.d-1_bJB-Yl.d.cts} +1 -58
- package/dist/{index.d-BDcwpFVa.d.ts → index.d-1_bJB-Yl.d.ts} +1 -58
- package/dist/{index.d-Deqz5-pF.d.ts → index.d-ChaR6kMc.d.cts} +1 -6
- package/dist/{index.d-Deqz5-pF.d.cts → index.d-ChaR6kMc.d.ts} +1 -6
- package/dist/index.d.cts +184 -1423
- package/dist/index.d.ts +184 -1423
- package/dist/index.js +281 -799
- package/dist/index.js.map +1 -1
- package/dist/{query-keys.d-Dm0NL9nr.d.cts → query-keys.d-D6SAUl7S.d.cts} +0 -9
- package/dist/{query-keys.d-Dm0NL9nr.d.ts → query-keys.d-D6SAUl7S.d.ts} +0 -9
- package/dist/shell/index.cjs +48 -53
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +4 -5
- package/dist/ui/index.cjs +156 -169
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +3 -4
- package/dist/viewers/index.cjs +0 -120
- package/dist/viewers/index.cjs.map +1 -1
- package/dist/viewers/index.d.cts +3 -40
- package/dist/viewers/index.d.ts +3 -40
- package/dist/viewers/index.js +1 -120
- package/dist/viewers/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-2Y2WOIHH.cjs.map +0 -1
- package/dist/chunk-CPZ36AQS.js +0 -11
- package/dist/chunk-CPZ36AQS.js.map +0 -1
- package/dist/chunk-DZUBZ45Y.cjs.map +0 -1
- package/dist/chunk-E7VD5WNY.cjs.map +0 -1
- package/dist/chunk-G4Z3IP4J.js.map +0 -1
- package/dist/chunk-JT7PN7JH.js.map +0 -1
- package/dist/chunk-PXWKJI4K.cjs.map +0 -1
- package/dist/chunk-Q6U7ALNV.cjs.map +0 -1
- package/dist/chunk-QRCMKEE6.js.map +0 -1
- package/dist/chunk-RCKA7BEF.cjs +0 -14
- package/dist/chunk-RCKA7BEF.cjs.map +0 -1
- package/dist/chunk-TK7ERJPE.js.map +0 -1
- package/dist/chunk-U4PWVSCT.cjs.map +0 -1
- package/dist/chunk-VGAA7AFS.js.map +0 -1
- package/dist/chunk-VGMMK5OM.cjs +0 -26
- package/dist/chunk-VGMMK5OM.cjs.map +0 -1
- package/dist/chunk-VGO77X5U.js +0 -22
- package/dist/chunk-VGO77X5U.js.map +0 -1
- package/dist/chunk-WQY3RQ6G.js.map +0 -1
- package/dist/chunk-XAEVT7ZM.js.map +0 -1
- package/dist/chunk-XPLD4LFC.js.map +0 -1
- package/dist/chunk-Z3LLUO32.cjs.map +0 -1
package/dist/ui/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, V as DictateContextValue, W as
|
|
1
|
+
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, V as DictateContextValue, W as DocumentEntity, X as DocumentEntityProps, Y as DocumentLike, Z as DropdownMenu, _ as DropdownMenuCheckboxItem, $ as DropdownMenuContent, a0 as DropdownMenuGroup, a1 as DropdownMenuItem, a2 as DropdownMenuLabel, a3 as DropdownMenuPortal, a4 as DropdownMenuRadioGroup, a5 as DropdownMenuRadioItem, a6 as DropdownMenuSeparator, a7 as DropdownMenuShortcut, a8 as DropdownMenuSub, a9 as DropdownMenuSubContent, aa as DropdownMenuSubTrigger, ab as DropdownMenuTrigger, ac as ENTITY_MAPPINGS, ad as EntityIcon, ae as EntityIconComponent, af as EntityLabelForm, ag as EntityNoun, ah as EntityPill, ai as EntityRegistryOverride, aj as EntitySize, ak as EntityType, al as EntityVocabulary, am as FileTypeIcon, an as FolderTreeNode, ao as FormatRelativeTimeOptions, ap as HoverCard, aq as HoverCardContent, ar as HoverCardTrigger, as as IconToggle, at as IconToggleProps, au as IdentityBusy, av as IdentityProblem, aw as IdentityPurchase, ax as IdentityState, ay as IdentityStatus, az as IdentityStep, aA as IdentityVerificationFlow, aB as Input, aC as InputProps, aD as Label, aE as MarkMenu, aF as MarkMenuItem, aG as MarkMenuProps, aH as MarkdownCode, aI as MarkdownLink, aJ as MarkdownRenderer, aK as MarkdownRendererProps, aL as MarkdownStreamingContext, aM as NEUTRAL_GRAY, aN as PLACEHOLDER_COLOR, aO as PassageCard, aP as PassageCardProps, aQ as Popover, aR as PopoverAnchor, aS as PopoverClose, aT as PopoverContent, aU as PopoverTrigger, aV as PortalContainerProvider, aW as PresenceDisplayStatus, aX as PresenceLabel, aY as Progress, aZ as ProjectEntity, a_ as ProjectEntityProps, a$ as ProjectRelation, b0 as ProviderIcon, b1 as RadioGroup, b2 as RadioGroupItem, b3 as Rag, b4 as ScrollArea, b5 as ScrollBar, b6 as Select, b7 as SelectContent, b8 as SelectGroup, b9 as SelectItem, ba as SelectLabel, bb as SelectScrollDownButton, bc as SelectScrollUpButton, bd as SelectSeparator, be as SelectTrigger, bf as SelectValue, bg as Separator, bh as ShieldIcon, bi as ShieldIconProps, bj as Slider, bk as StatusBadgeComponent, bl as StatusBadgeProps, bm as StatusPill, bn as StatusPillProps, bo as StatusVariant, bp as Switch, bq as TAG_TYPE_ICONS, br as TAG_TYPE_LABELS, bs as Table, bt as TableBody, bu as TableCaption, bv as TableCell, bw as TableFooter, bx as TableHead, by as TableHeader, bz as TableRow, bA as Tabs, bB as TabsContent, bC as TabsList, bD as TabsTrigger, bE as TagEntity, bF as TagEntityProps, bG as TagLike, bH as Textarea, bI as TextareaProps, bJ as ThreadVisibilityIcon, bK as Toggle, bL as ToggleGroup, bM as ToggleGroupItem, bN as Tooltip, bO as TooltipContent, bP as TooltipProvider, bQ as TooltipTrigger, bR as UserEntity, bS as UserEntityProps, bT as UserMenu, bU as UserMenuItem, bV as UserMenuProps, bW as UserMenuStatus, bX as VISIBILITY_ICONS, bY as VerifiedBadge, bZ as VerifiedBadgeProps, b_ as VerifiedToggle, b$ as VisibilityIcon, c0 as VisibilityToggle, c1 as VisibilityToggleProps, c2 as agentAvatarColors, c3 as badgeVariants, c4 as buildFolderTree, c5 as buttonVariants, c6 as canonicalFolderPath, c7 as cardVariants, c8 as closeOpenEmphasis, c9 as cn, ca as configureEntityRegistry, cb as configureEntityVocabulary, cc as configureRagLabels, cd as configureStatusRegistry, ce as createUserAvatarIcon, cf as entityNoun, cg as extensionFromMime, ch as formatCompactLastSeen, ci as formatDocDate, cj as formatFolderLabel, ck as formatFriendlyDate, cl as formatRelativeTime, cm as friendlyFileType, cn as getDocIcon, co as getDocumentAuthor, cp as getDocumentDate, cq as getDocumentNature, cr as getDocumentSubject, cs as getDocumentTitle, ct as getEntityColor, cu as getEntityColorStyles, cv as getEntityIcon, cw as getEntityLabel, cx as getFileExtension, cy as getFileTypeIcon, cz as getStatusVariant, cA as getTagTypeIcon, cB as getTagTypeLabel, cC as getUserAvatarColor, cD as getUserDisplayName, cE as getUserInitials, cF as getWorkspaceColor, cG as isAgent, cH as isAudioFile, cI as isDocumentAddableToConversation, cJ as isDownloadOnlyFile, cK as isImageDocument, cL as isImageFile, cM as isMediaFile, cN as isVideoFile, cO as markdownBaseComponents, cP as markdownSanitizeSchema, cQ as markdownToPlainText, cR as markdownToPlainTextBlocks, cT as splitMarkdownBlocks, cU as tagKindNouns, cV as tagKindTitle, cW as toggleVariants, cX as trimOpenCitation, cY as useDictateContext, cZ as usePortalContainer, c_ as usesOriginalBytesForViewer } from '../index.d-1_bJB-Yl.cjs';
|
|
2
2
|
import 'clsx';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@radix-ui/react-avatar';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, V as DictateContextValue, W as
|
|
1
|
+
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, V as DictateContextValue, W as DocumentEntity, X as DocumentEntityProps, Y as DocumentLike, Z as DropdownMenu, _ as DropdownMenuCheckboxItem, $ as DropdownMenuContent, a0 as DropdownMenuGroup, a1 as DropdownMenuItem, a2 as DropdownMenuLabel, a3 as DropdownMenuPortal, a4 as DropdownMenuRadioGroup, a5 as DropdownMenuRadioItem, a6 as DropdownMenuSeparator, a7 as DropdownMenuShortcut, a8 as DropdownMenuSub, a9 as DropdownMenuSubContent, aa as DropdownMenuSubTrigger, ab as DropdownMenuTrigger, ac as ENTITY_MAPPINGS, ad as EntityIcon, ae as EntityIconComponent, af as EntityLabelForm, ag as EntityNoun, ah as EntityPill, ai as EntityRegistryOverride, aj as EntitySize, ak as EntityType, al as EntityVocabulary, am as FileTypeIcon, an as FolderTreeNode, ao as FormatRelativeTimeOptions, ap as HoverCard, aq as HoverCardContent, ar as HoverCardTrigger, as as IconToggle, at as IconToggleProps, au as IdentityBusy, av as IdentityProblem, aw as IdentityPurchase, ax as IdentityState, ay as IdentityStatus, az as IdentityStep, aA as IdentityVerificationFlow, aB as Input, aC as InputProps, aD as Label, aE as MarkMenu, aF as MarkMenuItem, aG as MarkMenuProps, aH as MarkdownCode, aI as MarkdownLink, aJ as MarkdownRenderer, aK as MarkdownRendererProps, aL as MarkdownStreamingContext, aM as NEUTRAL_GRAY, aN as PLACEHOLDER_COLOR, aO as PassageCard, aP as PassageCardProps, aQ as Popover, aR as PopoverAnchor, aS as PopoverClose, aT as PopoverContent, aU as PopoverTrigger, aV as PortalContainerProvider, aW as PresenceDisplayStatus, aX as PresenceLabel, aY as Progress, aZ as ProjectEntity, a_ as ProjectEntityProps, a$ as ProjectRelation, b0 as ProviderIcon, b1 as RadioGroup, b2 as RadioGroupItem, b3 as Rag, b4 as ScrollArea, b5 as ScrollBar, b6 as Select, b7 as SelectContent, b8 as SelectGroup, b9 as SelectItem, ba as SelectLabel, bb as SelectScrollDownButton, bc as SelectScrollUpButton, bd as SelectSeparator, be as SelectTrigger, bf as SelectValue, bg as Separator, bh as ShieldIcon, bi as ShieldIconProps, bj as Slider, bk as StatusBadgeComponent, bl as StatusBadgeProps, bm as StatusPill, bn as StatusPillProps, bo as StatusVariant, bp as Switch, bq as TAG_TYPE_ICONS, br as TAG_TYPE_LABELS, bs as Table, bt as TableBody, bu as TableCaption, bv as TableCell, bw as TableFooter, bx as TableHead, by as TableHeader, bz as TableRow, bA as Tabs, bB as TabsContent, bC as TabsList, bD as TabsTrigger, bE as TagEntity, bF as TagEntityProps, bG as TagLike, bH as Textarea, bI as TextareaProps, bJ as ThreadVisibilityIcon, bK as Toggle, bL as ToggleGroup, bM as ToggleGroupItem, bN as Tooltip, bO as TooltipContent, bP as TooltipProvider, bQ as TooltipTrigger, bR as UserEntity, bS as UserEntityProps, bT as UserMenu, bU as UserMenuItem, bV as UserMenuProps, bW as UserMenuStatus, bX as VISIBILITY_ICONS, bY as VerifiedBadge, bZ as VerifiedBadgeProps, b_ as VerifiedToggle, b$ as VisibilityIcon, c0 as VisibilityToggle, c1 as VisibilityToggleProps, c2 as agentAvatarColors, c3 as badgeVariants, c4 as buildFolderTree, c5 as buttonVariants, c6 as canonicalFolderPath, c7 as cardVariants, c8 as closeOpenEmphasis, c9 as cn, ca as configureEntityRegistry, cb as configureEntityVocabulary, cc as configureRagLabels, cd as configureStatusRegistry, ce as createUserAvatarIcon, cf as entityNoun, cg as extensionFromMime, ch as formatCompactLastSeen, ci as formatDocDate, cj as formatFolderLabel, ck as formatFriendlyDate, cl as formatRelativeTime, cm as friendlyFileType, cn as getDocIcon, co as getDocumentAuthor, cp as getDocumentDate, cq as getDocumentNature, cr as getDocumentSubject, cs as getDocumentTitle, ct as getEntityColor, cu as getEntityColorStyles, cv as getEntityIcon, cw as getEntityLabel, cx as getFileExtension, cy as getFileTypeIcon, cz as getStatusVariant, cA as getTagTypeIcon, cB as getTagTypeLabel, cC as getUserAvatarColor, cD as getUserDisplayName, cE as getUserInitials, cF as getWorkspaceColor, cG as isAgent, cH as isAudioFile, cI as isDocumentAddableToConversation, cJ as isDownloadOnlyFile, cK as isImageDocument, cL as isImageFile, cM as isMediaFile, cN as isVideoFile, cO as markdownBaseComponents, cP as markdownSanitizeSchema, cQ as markdownToPlainText, cR as markdownToPlainTextBlocks, cT as splitMarkdownBlocks, cU as tagKindNouns, cV as tagKindTitle, cW as toggleVariants, cX as trimOpenCitation, cY as useDictateContext, cZ as usePortalContainer, c_ as usesOriginalBytesForViewer } from '../index.d-1_bJB-Yl.js';
|
|
2
2
|
import 'clsx';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@radix-ui/react-avatar';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { ARBI_MARK_SRC, AgentBadge, AiMarkdown, ArbiIcon, BASE_COLORS, Badge, COLUMN_LABEL_FALLBACKS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_METADATA_TAGS, DebouncedInput,
|
|
1
|
+
export { ARBI_MARK_SRC, AgentBadge, AiMarkdown, ArbiIcon, BASE_COLORS, Badge, COLUMN_LABEL_FALLBACKS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_METADATA_TAGS, DebouncedInput, DocumentEntity, ENTITY_MAPPINGS, EntityIcon, EntityPill, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, Input, Label, MarkMenu, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, ProviderIcon, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, UserEntity, UserMenu, VISIBILITY_ICONS, VerifiedBadge, VerifiedToggle, VisibilityIcon, VisibilityToggle, agentAvatarColors, badgeVariants, buildFolderTree, canonicalFolderPath, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, entityNoun, extensionFromMime, formatCompactLastSeen, formatDocDate, 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, tagKindNouns, tagKindTitle, toggleVariants, useDictateContext, usesOriginalBytesForViewer } from '../chunk-NNAJLY6B.js';
|
|
2
2
|
export { Avatar, AvatarFallback, AvatarImage, createUserAvatarIcon, getUserAvatarColor, getUserDisplayName, getUserInitials, isAgent } from '../chunk-APZZQZ6P.js';
|
|
3
|
-
export { MarkdownCode, MarkdownLink, MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, markdownSanitizeSchema, splitMarkdownBlocks } from '../chunk-
|
|
3
|
+
export { MarkdownCode, MarkdownLink, MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, markdownSanitizeSchema, splitMarkdownBlocks } from '../chunk-WL2Y2T47.js';
|
|
4
4
|
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from '../chunk-YNNAJJ5Z.js';
|
|
5
5
|
export { ScrollArea, ScrollBar, configureEntityVocabulary, formatRelativeTime } from '../chunk-Y3MTRA7D.js';
|
|
6
6
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PortalContainerProvider, usePortalContainer } from '../chunk-47CCGUWR.js';
|
|
7
|
-
export { closeOpenEmphasis, trimOpenCitation } from '../chunk-
|
|
8
|
-
import '../chunk-CPZ36AQS.js';
|
|
7
|
+
export { closeOpenEmphasis, trimOpenCitation } from '../chunk-VSCU7K4V.js';
|
|
9
8
|
export { cn } from '../chunk-SN5YV6FF.js';
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
11
10
|
//# sourceMappingURL=index.js.map
|
package/dist/viewers/index.cjs
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkIU2CJNTB_cjs = require('../chunk-IU2CJNTB.cjs');
|
|
4
4
|
var chunkTMPDW7J5_cjs = require('../chunk-TMPDW7J5.cjs');
|
|
5
|
-
var chunkVGMMK5OM_cjs = require('../chunk-VGMMK5OM.cjs');
|
|
6
|
-
require('../chunk-RCKA7BEF.cjs');
|
|
7
5
|
var react = require('react');
|
|
8
6
|
var reactPdf = require('react-pdf');
|
|
9
7
|
require('react-pdf/dist/Page/AnnotationLayer.css');
|
|
@@ -813,122 +811,6 @@ function XlsxViewer({ blob }) {
|
|
|
813
811
|
}
|
|
814
812
|
);
|
|
815
813
|
}
|
|
816
|
-
var BY_EXTENSION = {
|
|
817
|
-
pdf: "pdf",
|
|
818
|
-
doc: "docx",
|
|
819
|
-
docx: "docx",
|
|
820
|
-
xls: "xlsx",
|
|
821
|
-
xlsx: "xlsx",
|
|
822
|
-
csv: "xlsx",
|
|
823
|
-
png: "image",
|
|
824
|
-
jpg: "image",
|
|
825
|
-
jpeg: "image",
|
|
826
|
-
gif: "image",
|
|
827
|
-
webp: "image",
|
|
828
|
-
bmp: "image",
|
|
829
|
-
tif: "image",
|
|
830
|
-
tiff: "image",
|
|
831
|
-
mp3: "audio",
|
|
832
|
-
wav: "audio",
|
|
833
|
-
m4a: "audio",
|
|
834
|
-
ogg: "audio",
|
|
835
|
-
mp4: "video",
|
|
836
|
-
mov: "video",
|
|
837
|
-
webm: "video",
|
|
838
|
-
avi: "video"
|
|
839
|
-
};
|
|
840
|
-
function nativeViewerKind(doc) {
|
|
841
|
-
const name = (doc?.file_name ?? "").toLowerCase();
|
|
842
|
-
const ext = name.includes(".") ? name.slice(name.lastIndexOf(".") + 1) : "";
|
|
843
|
-
if (BY_EXTENSION[ext]) return BY_EXTENSION[ext];
|
|
844
|
-
const type = (doc?.file_type ?? "").toLowerCase();
|
|
845
|
-
if (!type) return "none";
|
|
846
|
-
if (type.includes("pdf")) return "pdf";
|
|
847
|
-
if (type.includes("word") || type.includes("officedocument.wordprocessing")) return "docx";
|
|
848
|
-
if (type.includes("sheet") || type.includes("excel") || type.includes("csv")) return "xlsx";
|
|
849
|
-
if (type.startsWith("image/")) return "image";
|
|
850
|
-
if (type.startsWith("audio/")) return "audio";
|
|
851
|
-
if (type.startsWith("video/")) return "video";
|
|
852
|
-
return "none";
|
|
853
|
-
}
|
|
854
|
-
function DocumentViewer({
|
|
855
|
-
doc,
|
|
856
|
-
pdfAssets,
|
|
857
|
-
onPageChange,
|
|
858
|
-
currentPage,
|
|
859
|
-
scrollTrigger,
|
|
860
|
-
onLoadSuccess,
|
|
861
|
-
fallback,
|
|
862
|
-
loading,
|
|
863
|
-
errorRender,
|
|
864
|
-
className
|
|
865
|
-
}) {
|
|
866
|
-
const arbi = chunkVGMMK5OM_cjs.useArbi();
|
|
867
|
-
const [blob, setBlob] = react.useState(null);
|
|
868
|
-
const [error, setError] = react.useState(null);
|
|
869
|
-
const kind = react.useMemo(() => nativeViewerKind(doc), [doc]);
|
|
870
|
-
const docId = doc?.external_id;
|
|
871
|
-
react.useEffect(() => {
|
|
872
|
-
if (!docId || kind === "none") {
|
|
873
|
-
setBlob(null);
|
|
874
|
-
return;
|
|
875
|
-
}
|
|
876
|
-
let cancelled = false;
|
|
877
|
-
setBlob(null);
|
|
878
|
-
setError(null);
|
|
879
|
-
arbi.documents.download(docId).then((res) => res.blob()).then((b) => {
|
|
880
|
-
if (!cancelled) setBlob(b);
|
|
881
|
-
}).catch((err) => {
|
|
882
|
-
if (!cancelled) setError(err instanceof Error ? err.message : "Could not load the file");
|
|
883
|
-
});
|
|
884
|
-
return () => {
|
|
885
|
-
cancelled = true;
|
|
886
|
-
};
|
|
887
|
-
}, [arbi, docId, kind]);
|
|
888
|
-
if (!doc) return null;
|
|
889
|
-
if (kind === "none") {
|
|
890
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: fallback ?? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid h-full place-items-center p-6 text-center text-sm text-muted-foreground", children: "No native view for this file type. The original is preserved and can be downloaded." }) });
|
|
891
|
-
}
|
|
892
|
-
if (error) {
|
|
893
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: errorRender?.(error) ?? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid h-full place-items-center p-6 text-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
894
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-destructive", children: "Could not load the original" }),
|
|
895
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: error })
|
|
896
|
-
] }) }) });
|
|
897
|
-
}
|
|
898
|
-
if (!blob) {
|
|
899
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid h-full place-items-center text-sm text-muted-foreground", children: "Loading the original\u2026" }) });
|
|
900
|
-
}
|
|
901
|
-
const title = doc.file_name ?? doc.external_id;
|
|
902
|
-
const body = (() => {
|
|
903
|
-
switch (kind) {
|
|
904
|
-
case "pdf":
|
|
905
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
906
|
-
PdfViewer,
|
|
907
|
-
{
|
|
908
|
-
file: blob,
|
|
909
|
-
assets: pdfAssets,
|
|
910
|
-
onPageChange,
|
|
911
|
-
currentPage,
|
|
912
|
-
scrollTrigger,
|
|
913
|
-
onLoadSuccess
|
|
914
|
-
}
|
|
915
|
-
);
|
|
916
|
-
case "docx":
|
|
917
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DocxViewer, { blob });
|
|
918
|
-
case "xlsx":
|
|
919
|
-
return /* @__PURE__ */ jsxRuntime.jsx(XlsxViewer, { blob });
|
|
920
|
-
case "image":
|
|
921
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkTMPDW7J5_cjs.ImageViewer, { blob, alt: title });
|
|
922
|
-
case "audio":
|
|
923
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkTMPDW7J5_cjs.AudioViewer, { blob, title });
|
|
924
|
-
case "video":
|
|
925
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkTMPDW7J5_cjs.VideoViewer, { blob, title });
|
|
926
|
-
default:
|
|
927
|
-
return null;
|
|
928
|
-
}
|
|
929
|
-
})();
|
|
930
|
-
return className ? /* @__PURE__ */ jsxRuntime.jsx("div", { className, "data-testid": "document-viewer", children: body }) : body;
|
|
931
|
-
}
|
|
932
814
|
function inlineFootnotes(content, footnotes) {
|
|
933
815
|
if (!footnotes || Object.keys(footnotes).length === 0) return content;
|
|
934
816
|
let result = content;
|
|
@@ -1035,7 +917,6 @@ Object.defineProperty(exports, "VideoViewer", {
|
|
|
1035
917
|
enumerable: true,
|
|
1036
918
|
get: function () { return chunkTMPDW7J5_cjs.VideoViewer; }
|
|
1037
919
|
});
|
|
1038
|
-
exports.DocumentViewer = DocumentViewer;
|
|
1039
920
|
exports.DocxViewer = DocxViewer;
|
|
1040
921
|
exports.INITIAL_LAZY_LOAD_BUFFER = INITIAL_LAZY_LOAD_BUFFER;
|
|
1041
922
|
exports.LAZY_LOAD_BUFFER_AFTER = LAZY_LOAD_BUFFER_AFTER;
|
|
@@ -1051,7 +932,6 @@ exports.clampZoom = clampZoom;
|
|
|
1051
932
|
exports.computeSelectionRuns = computeSelectionRuns;
|
|
1052
933
|
exports.cycleZoom = cycleZoom;
|
|
1053
934
|
exports.doubleTapZoom = doubleTapZoom;
|
|
1054
|
-
exports.nativeViewerKind = nativeViewerKind;
|
|
1055
935
|
exports.pinchZoom = pinchZoom;
|
|
1056
936
|
exports.renderDpr = renderDpr;
|
|
1057
937
|
exports.usePageIntersectionObserver = usePageIntersectionObserver;
|