@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.
Files changed (117) hide show
  1. package/README.md +2 -3
  2. package/dist/artifacts/index.cjs +46 -48
  3. package/dist/artifacts/index.cjs.map +1 -1
  4. package/dist/artifacts/index.js +7 -9
  5. package/dist/artifacts/index.js.map +1 -1
  6. package/dist/calls/livekit/index.cjs +60 -62
  7. package/dist/calls/livekit/index.cjs.map +1 -1
  8. package/dist/calls/livekit/index.js +6 -8
  9. package/dist/calls/livekit/index.js.map +1 -1
  10. package/dist/{chunk-Z3LLUO32.cjs → chunk-5NOZDH3F.cjs} +12 -2
  11. package/dist/chunk-5NOZDH3F.cjs.map +1 -0
  12. package/dist/{chunk-WQY3RQ6G.js → chunk-73ENECAT.js} +5 -6
  13. package/dist/{chunk-LUDIYWT7.cjs.map → chunk-73ENECAT.js.map} +1 -1
  14. package/dist/{chunk-2Y2WOIHH.cjs → chunk-AOPGD23L.cjs} +60 -148
  15. package/dist/chunk-AOPGD23L.cjs.map +1 -0
  16. package/dist/{chunk-G4Z3IP4J.js → chunk-BF5KW5ZI.js} +3 -17
  17. package/dist/chunk-BF5KW5ZI.js.map +1 -0
  18. package/dist/{chunk-TK7ERJPE.js → chunk-BFNY3RZG.js} +22 -12
  19. package/dist/chunk-BFNY3RZG.js.map +1 -0
  20. package/dist/{chunk-U4PWVSCT.cjs → chunk-C4WODQGO.cjs} +24 -11
  21. package/dist/chunk-C4WODQGO.cjs.map +1 -0
  22. package/dist/{chunk-E7VD5WNY.cjs → chunk-DS7NTSKH.cjs} +41 -74
  23. package/dist/chunk-DS7NTSKH.cjs.map +1 -0
  24. package/dist/{chunk-JT7PN7JH.js → chunk-DU2P354H.js} +6 -37
  25. package/dist/chunk-DU2P354H.js.map +1 -0
  26. package/dist/{chunk-TAVS54EN.cjs → chunk-GKWMT64A.cjs} +6 -6
  27. package/dist/{chunk-TAVS54EN.cjs.map → chunk-GKWMT64A.cjs.map} +1 -1
  28. package/dist/{chunk-AXKHDLBB.cjs → chunk-HEVPIVF2.cjs} +15 -15
  29. package/dist/{chunk-AXKHDLBB.cjs.map → chunk-HEVPIVF2.cjs.map} +1 -1
  30. package/dist/{chunk-XPLD4LFC.js → chunk-KTXZ222T.js} +6 -91
  31. package/dist/chunk-KTXZ222T.js.map +1 -0
  32. package/dist/{chunk-PXWKJI4K.cjs → chunk-LBAG7KL7.cjs} +35 -261
  33. package/dist/chunk-LBAG7KL7.cjs.map +1 -0
  34. package/dist/{chunk-CSPAEVZS.js → chunk-MS43RNXM.js} +5 -5
  35. package/dist/{chunk-CSPAEVZS.js.map → chunk-MS43RNXM.js.map} +1 -1
  36. package/dist/{chunk-OC7F5SNA.cjs → chunk-MXP4O4DI.cjs} +5 -5
  37. package/dist/{chunk-OC7F5SNA.cjs.map → chunk-MXP4O4DI.cjs.map} +1 -1
  38. package/dist/{chunk-ZWFMFOGP.cjs → chunk-NDIKMOBJ.cjs} +4 -4
  39. package/dist/{chunk-ZWFMFOGP.cjs.map → chunk-NDIKMOBJ.cjs.map} +1 -1
  40. package/dist/{chunk-XAEVT7ZM.js → chunk-NNAJLY6B.js} +34 -257
  41. package/dist/chunk-NNAJLY6B.js.map +1 -0
  42. package/dist/{chunk-LUDIYWT7.cjs → chunk-QLRDHLWR.cjs} +72 -73
  43. package/dist/chunk-QLRDHLWR.cjs.map +1 -0
  44. package/dist/{chunk-DZUBZ45Y.cjs → chunk-RLSBRZ6Z.cjs} +2 -17
  45. package/dist/chunk-RLSBRZ6Z.cjs.map +1 -0
  46. package/dist/{chunk-VGAA7AFS.js → chunk-S3OGDLDC.js} +4 -13
  47. package/dist/chunk-S3OGDLDC.js.map +1 -0
  48. package/dist/{chunk-NNWMHMEC.js → chunk-UW2SGTI5.js} +3 -3
  49. package/dist/{chunk-NNWMHMEC.js.map → chunk-UW2SGTI5.js.map} +1 -1
  50. package/dist/{chunk-QRCMKEE6.js → chunk-VSCU7K4V.js} +11 -3
  51. package/dist/chunk-VSCU7K4V.js.map +1 -0
  52. package/dist/{chunk-C44GO33B.js → chunk-WL2Y2T47.js} +3 -3
  53. package/dist/{chunk-C44GO33B.js.map → chunk-WL2Y2T47.js.map} +1 -1
  54. package/dist/{chunk-47YVW3J4.js → chunk-YQBDEOVE.js} +4 -4
  55. package/dist/{chunk-47YVW3J4.js.map → chunk-YQBDEOVE.js.map} +1 -1
  56. package/dist/{chunk-Q6U7ALNV.cjs → chunk-ZHXYFJIA.cjs} +44 -54
  57. package/dist/chunk-ZHXYFJIA.cjs.map +1 -0
  58. package/dist/document-tools/core.cjs +100 -110
  59. package/dist/document-tools/core.d.cts +3 -78
  60. package/dist/document-tools/core.d.ts +3 -78
  61. package/dist/document-tools/core.js +5 -7
  62. package/dist/document-tools/index.cjs +102 -112
  63. package/dist/document-tools/index.cjs.map +1 -1
  64. package/dist/document-tools/index.d.cts +2 -2
  65. package/dist/document-tools/index.d.ts +2 -2
  66. package/dist/document-tools/index.js +6 -8
  67. package/dist/document-tools/index.js.map +1 -1
  68. package/dist/index.cjs +1740 -2305
  69. package/dist/index.cjs.map +1 -1
  70. package/dist/{index.d-BDcwpFVa.d.cts → index.d-1_bJB-Yl.d.cts} +1 -58
  71. package/dist/{index.d-BDcwpFVa.d.ts → index.d-1_bJB-Yl.d.ts} +1 -58
  72. package/dist/{index.d-Deqz5-pF.d.ts → index.d-ChaR6kMc.d.cts} +1 -6
  73. package/dist/{index.d-Deqz5-pF.d.cts → index.d-ChaR6kMc.d.ts} +1 -6
  74. package/dist/index.d.cts +184 -1423
  75. package/dist/index.d.ts +184 -1423
  76. package/dist/index.js +281 -799
  77. package/dist/index.js.map +1 -1
  78. package/dist/{query-keys.d-Dm0NL9nr.d.cts → query-keys.d-D6SAUl7S.d.cts} +0 -9
  79. package/dist/{query-keys.d-Dm0NL9nr.d.ts → query-keys.d-D6SAUl7S.d.ts} +0 -9
  80. package/dist/shell/index.cjs +48 -53
  81. package/dist/shell/index.d.cts +1 -1
  82. package/dist/shell/index.d.ts +1 -1
  83. package/dist/shell/index.js +4 -5
  84. package/dist/ui/index.cjs +156 -169
  85. package/dist/ui/index.d.cts +1 -1
  86. package/dist/ui/index.d.ts +1 -1
  87. package/dist/ui/index.js +3 -4
  88. package/dist/viewers/index.cjs +0 -120
  89. package/dist/viewers/index.cjs.map +1 -1
  90. package/dist/viewers/index.d.cts +3 -40
  91. package/dist/viewers/index.d.ts +3 -40
  92. package/dist/viewers/index.js +1 -120
  93. package/dist/viewers/index.js.map +1 -1
  94. package/package.json +3 -3
  95. package/dist/chunk-2Y2WOIHH.cjs.map +0 -1
  96. package/dist/chunk-CPZ36AQS.js +0 -11
  97. package/dist/chunk-CPZ36AQS.js.map +0 -1
  98. package/dist/chunk-DZUBZ45Y.cjs.map +0 -1
  99. package/dist/chunk-E7VD5WNY.cjs.map +0 -1
  100. package/dist/chunk-G4Z3IP4J.js.map +0 -1
  101. package/dist/chunk-JT7PN7JH.js.map +0 -1
  102. package/dist/chunk-PXWKJI4K.cjs.map +0 -1
  103. package/dist/chunk-Q6U7ALNV.cjs.map +0 -1
  104. package/dist/chunk-QRCMKEE6.js.map +0 -1
  105. package/dist/chunk-RCKA7BEF.cjs +0 -14
  106. package/dist/chunk-RCKA7BEF.cjs.map +0 -1
  107. package/dist/chunk-TK7ERJPE.js.map +0 -1
  108. package/dist/chunk-U4PWVSCT.cjs.map +0 -1
  109. package/dist/chunk-VGAA7AFS.js.map +0 -1
  110. package/dist/chunk-VGMMK5OM.cjs +0 -26
  111. package/dist/chunk-VGMMK5OM.cjs.map +0 -1
  112. package/dist/chunk-VGO77X5U.js +0 -22
  113. package/dist/chunk-VGO77X5U.js.map +0 -1
  114. package/dist/chunk-WQY3RQ6G.js.map +0 -1
  115. package/dist/chunk-XAEVT7ZM.js.map +0 -1
  116. package/dist/chunk-XPLD4LFC.js.map +0 -1
  117. package/dist/chunk-Z3LLUO32.cjs.map +0 -1
@@ -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 DocumentCard, X as DocumentCardProps, Y as DocumentEntity, Z as DocumentEntityProps, _ as DocumentLike, $ as DropdownMenu, a0 as DropdownMenuCheckboxItem, a1 as DropdownMenuContent, a2 as DropdownMenuGroup, a3 as DropdownMenuItem, a4 as DropdownMenuLabel, a5 as DropdownMenuPortal, a6 as DropdownMenuRadioGroup, a7 as DropdownMenuRadioItem, a8 as DropdownMenuSeparator, a9 as DropdownMenuShortcut, aa as DropdownMenuSub, ab as DropdownMenuSubContent, ac as DropdownMenuSubTrigger, ad as DropdownMenuTrigger, ae as ENTITY_MAPPINGS, af as EntityIcon, ag as EntityIconComponent, ah as EntityLabelForm, ai as EntityNoun, aj as EntityPill, ak as EntityRegistryOverride, al as EntitySize, am as EntityType, an as EntityVocabulary, ao as FileTypeIcon, ap as FolderTreeNode, aq as FormatRelativeTimeOptions, ar as HoverCard, as as HoverCardContent, at as HoverCardTrigger, au as IconToggle, av as IconToggleProps, aw as IdentityBusy, ax as IdentityProblem, ay as IdentityPurchase, az as IdentityState, aA as IdentityStatus, aB as IdentityStep, aC as IdentityVerificationFlow, aD as Input, aE as InputProps, aF as Label, aG as MarkMenu, aH as MarkMenuItem, aI as MarkMenuProps, aJ as MarkdownCode, aK as MarkdownLink, aL as MarkdownRenderer, aM as MarkdownRendererProps, aN as MarkdownStreamingContext, aO as NEUTRAL_GRAY, aP as PLACEHOLDER_COLOR, aQ as PassageCard, aR as PassageCardProps, aS as Popover, aT as PopoverAnchor, aU as PopoverClose, aV as PopoverContent, aW as PopoverTrigger, aX as PortalContainerProvider, aY as PresenceDisplayStatus, aZ as PresenceLabel, a_ as Progress, a$ as ProjectEntity, b0 as ProjectEntityProps, b1 as ProjectRelation, b2 as ProviderIcon, b3 as RadioGroup, b4 as RadioGroupItem, b5 as Rag, b6 as RagDot, b7 as RelevanceDot, b8 as ScrollArea, b9 as ScrollBar, ba as Select, bb as SelectContent, bc as SelectGroup, bd as SelectItem, be as SelectLabel, bf as SelectScrollDownButton, bg as SelectScrollUpButton, bh as SelectSeparator, bi as SelectTrigger, bj as SelectValue, bk as Separator, bl as ShieldIcon, bm as ShieldIconProps, bn as Slider, bo as StatusBadgeComponent, bp as StatusBadgeProps, bq as StatusPill, br as StatusPillProps, bs as StatusVariant, bt as Switch, bu as TAG_TYPE_ICONS, bv as TAG_TYPE_LABELS, bw as Table, bx as TableBody, by as TableCaption, bz as TableCell, bA as TableFooter, bB as TableHead, bC as TableHeader, bD as TableRow, bE as Tabs, bF as TabsContent, bG as TabsList, bH as TabsTrigger, bI as TagEntity, bJ as TagEntityProps, bK as TagLike, bL as Textarea, bM as TextareaProps, bN as ThreadVisibilityIcon, bO as Toggle, bP as ToggleGroup, bQ as ToggleGroupItem, bR as Tooltip, bS as TooltipContent, bT as TooltipProvider, bU as TooltipTrigger, bV as UserEntity, bW as UserEntityProps, bX as UserMenu, bY as UserMenuItem, bZ as UserMenuProps, b_ as UserMenuStatus, b$ as VISIBILITY_ICONS, c0 as VerifiedBadge, c1 as VerifiedBadgeProps, c2 as VerifiedToggle, c3 as VisibilityIcon, c4 as VisibilityToggle, c5 as VisibilityToggleProps, c6 as agentAvatarColors, c7 as badgeVariants, c8 as buildFolderTree, c9 as buttonVariants, ca as canonicalFolderPath, cb as cardVariants, cc as closeOpenEmphasis, cd as cn, ce as configureEntityRegistry, cf as configureEntityVocabulary, cg as configureRagLabels, ch as configureStatusRegistry, ci as createUserAvatarIcon, cj as entityNoun, ck as extensionFromMime, cl as formatCompactLastSeen, cm as formatDocDate, cn as formatFolderLabel, co as formatFriendlyDate, cp as formatRelativeTime, cq as friendlyFileType, cr as getDocIcon, cs as getDocumentAuthor, ct as getDocumentDate, cu as getDocumentNature, cv as getDocumentSubject, cw as getDocumentTitle, cx as getEntityColor, cy as getEntityColorStyles, cz as getEntityIcon, cA as getEntityLabel, cB as getFileExtension, cC as getFileTypeIcon, cD as getStatusVariant, cE as getTagTypeIcon, cF as getTagTypeLabel, cG as getUserAvatarColor, cH as getUserDisplayName, cI as getUserInitials, cJ as getWorkspaceColor, cK as isAgent, cL as isAudioFile, cM as isDocumentAddableToConversation, cN as isDownloadOnlyFile, cO as isImageDocument, cP as isImageFile, cQ as isMediaFile, cR as isVideoFile, cS as markdownBaseComponents, cT as markdownSanitizeSchema, cU as markdownToPlainText, cV as markdownToPlainTextBlocks, cX as splitMarkdownBlocks, cY as tagKindNouns, cZ as tagKindTitle, c_ as toggleVariants, c$ as trimOpenCitation, d0 as useDictateContext, d1 as usePortalContainer, d2 as usesOriginalBytesForViewer } from '../index.d-BDcwpFVa.cjs';
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';
@@ -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 DocumentCard, X as DocumentCardProps, Y as DocumentEntity, Z as DocumentEntityProps, _ as DocumentLike, $ as DropdownMenu, a0 as DropdownMenuCheckboxItem, a1 as DropdownMenuContent, a2 as DropdownMenuGroup, a3 as DropdownMenuItem, a4 as DropdownMenuLabel, a5 as DropdownMenuPortal, a6 as DropdownMenuRadioGroup, a7 as DropdownMenuRadioItem, a8 as DropdownMenuSeparator, a9 as DropdownMenuShortcut, aa as DropdownMenuSub, ab as DropdownMenuSubContent, ac as DropdownMenuSubTrigger, ad as DropdownMenuTrigger, ae as ENTITY_MAPPINGS, af as EntityIcon, ag as EntityIconComponent, ah as EntityLabelForm, ai as EntityNoun, aj as EntityPill, ak as EntityRegistryOverride, al as EntitySize, am as EntityType, an as EntityVocabulary, ao as FileTypeIcon, ap as FolderTreeNode, aq as FormatRelativeTimeOptions, ar as HoverCard, as as HoverCardContent, at as HoverCardTrigger, au as IconToggle, av as IconToggleProps, aw as IdentityBusy, ax as IdentityProblem, ay as IdentityPurchase, az as IdentityState, aA as IdentityStatus, aB as IdentityStep, aC as IdentityVerificationFlow, aD as Input, aE as InputProps, aF as Label, aG as MarkMenu, aH as MarkMenuItem, aI as MarkMenuProps, aJ as MarkdownCode, aK as MarkdownLink, aL as MarkdownRenderer, aM as MarkdownRendererProps, aN as MarkdownStreamingContext, aO as NEUTRAL_GRAY, aP as PLACEHOLDER_COLOR, aQ as PassageCard, aR as PassageCardProps, aS as Popover, aT as PopoverAnchor, aU as PopoverClose, aV as PopoverContent, aW as PopoverTrigger, aX as PortalContainerProvider, aY as PresenceDisplayStatus, aZ as PresenceLabel, a_ as Progress, a$ as ProjectEntity, b0 as ProjectEntityProps, b1 as ProjectRelation, b2 as ProviderIcon, b3 as RadioGroup, b4 as RadioGroupItem, b5 as Rag, b6 as RagDot, b7 as RelevanceDot, b8 as ScrollArea, b9 as ScrollBar, ba as Select, bb as SelectContent, bc as SelectGroup, bd as SelectItem, be as SelectLabel, bf as SelectScrollDownButton, bg as SelectScrollUpButton, bh as SelectSeparator, bi as SelectTrigger, bj as SelectValue, bk as Separator, bl as ShieldIcon, bm as ShieldIconProps, bn as Slider, bo as StatusBadgeComponent, bp as StatusBadgeProps, bq as StatusPill, br as StatusPillProps, bs as StatusVariant, bt as Switch, bu as TAG_TYPE_ICONS, bv as TAG_TYPE_LABELS, bw as Table, bx as TableBody, by as TableCaption, bz as TableCell, bA as TableFooter, bB as TableHead, bC as TableHeader, bD as TableRow, bE as Tabs, bF as TabsContent, bG as TabsList, bH as TabsTrigger, bI as TagEntity, bJ as TagEntityProps, bK as TagLike, bL as Textarea, bM as TextareaProps, bN as ThreadVisibilityIcon, bO as Toggle, bP as ToggleGroup, bQ as ToggleGroupItem, bR as Tooltip, bS as TooltipContent, bT as TooltipProvider, bU as TooltipTrigger, bV as UserEntity, bW as UserEntityProps, bX as UserMenu, bY as UserMenuItem, bZ as UserMenuProps, b_ as UserMenuStatus, b$ as VISIBILITY_ICONS, c0 as VerifiedBadge, c1 as VerifiedBadgeProps, c2 as VerifiedToggle, c3 as VisibilityIcon, c4 as VisibilityToggle, c5 as VisibilityToggleProps, c6 as agentAvatarColors, c7 as badgeVariants, c8 as buildFolderTree, c9 as buttonVariants, ca as canonicalFolderPath, cb as cardVariants, cc as closeOpenEmphasis, cd as cn, ce as configureEntityRegistry, cf as configureEntityVocabulary, cg as configureRagLabels, ch as configureStatusRegistry, ci as createUserAvatarIcon, cj as entityNoun, ck as extensionFromMime, cl as formatCompactLastSeen, cm as formatDocDate, cn as formatFolderLabel, co as formatFriendlyDate, cp as formatRelativeTime, cq as friendlyFileType, cr as getDocIcon, cs as getDocumentAuthor, ct as getDocumentDate, cu as getDocumentNature, cv as getDocumentSubject, cw as getDocumentTitle, cx as getEntityColor, cy as getEntityColorStyles, cz as getEntityIcon, cA as getEntityLabel, cB as getFileExtension, cC as getFileTypeIcon, cD as getStatusVariant, cE as getTagTypeIcon, cF as getTagTypeLabel, cG as getUserAvatarColor, cH as getUserDisplayName, cI as getUserInitials, cJ as getWorkspaceColor, cK as isAgent, cL as isAudioFile, cM as isDocumentAddableToConversation, cN as isDownloadOnlyFile, cO as isImageDocument, cP as isImageFile, cQ as isMediaFile, cR as isVideoFile, cS as markdownBaseComponents, cT as markdownSanitizeSchema, cU as markdownToPlainText, cV as markdownToPlainTextBlocks, cX as splitMarkdownBlocks, cY as tagKindNouns, cZ as tagKindTitle, c_ as toggleVariants, c$ as trimOpenCitation, d0 as useDictateContext, d1 as usePortalContainer, d2 as usesOriginalBytesForViewer } from '../index.d-BDcwpFVa.js';
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, DocumentCard, 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, RagDot, RelevanceDot, 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-XAEVT7ZM.js';
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-C44GO33B.js';
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-QRCMKEE6.js';
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
@@ -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;