@arbidocs/react 0.5.165 → 0.5.167

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 (110) hide show
  1. package/dist/ai/MessageArtifactCard.js +16 -0
  2. package/dist/ai/MessageArtifactCard.js.map +2 -2
  3. package/dist/artifacts/artifact-kind.js +12 -1
  4. package/dist/artifacts/artifact-kind.js.map +2 -2
  5. package/dist/artifacts/index.cjs +58 -47
  6. package/dist/artifacts/index.cjs.map +1 -1
  7. package/dist/artifacts/index.d.ts +3 -20
  8. package/dist/artifacts/index.js +3 -1
  9. package/dist/artifacts/index.js.map +2 -2
  10. package/dist/calls/livekit/index.cjs +51 -51
  11. package/dist/chat/ChatBubble.js +56 -65
  12. package/dist/chat/ChatBubble.js.map +2 -2
  13. package/dist/chat/open-document.js +4 -1
  14. package/dist/chat/open-document.js.map +2 -2
  15. package/dist/chat/request-agent-status.js +34 -0
  16. package/dist/chat/request-agent-status.js.map +7 -0
  17. package/dist/chat/run-finished.js +1 -0
  18. package/dist/chat/run-finished.js.map +2 -2
  19. package/dist/chat/useAgentRunControl.js +3 -3
  20. package/dist/chat/useAgentRunControl.js.map +2 -2
  21. package/dist/chat/useConnectRunStream.js +4 -0
  22. package/dist/chat/useConnectRunStream.js.map +2 -2
  23. package/dist/chat/useConversation.js +13 -10
  24. package/dist/chat/useConversation.js.map +2 -2
  25. package/dist/chat/useConversationActions.js +4 -3
  26. package/dist/chat/useConversationActions.js.map +2 -2
  27. package/dist/{chunk-XSJNRWLD.cjs → chunk-3DPOR5IR.cjs} +9 -6
  28. package/dist/chunk-3DPOR5IR.cjs.map +1 -0
  29. package/dist/{chunk-ZBRJEM25.cjs → chunk-4TWXQFHU.cjs} +70 -70
  30. package/dist/{chunk-ZBRJEM25.cjs.map → chunk-4TWXQFHU.cjs.map} +1 -1
  31. package/dist/{chunk-ZZBCZRA5.cjs → chunk-5QOZLKAY.cjs} +5 -2
  32. package/dist/chunk-5QOZLKAY.cjs.map +1 -0
  33. package/dist/{chunk-B3W7WDVY.cjs → chunk-BI4SYRLX.cjs} +73 -66
  34. package/dist/chunk-BI4SYRLX.cjs.map +1 -0
  35. package/dist/{chunk-ONAYOSSV.cjs → chunk-HRQS27DO.cjs} +39 -39
  36. package/dist/{chunk-ONAYOSSV.cjs.map → chunk-HRQS27DO.cjs.map} +1 -1
  37. package/dist/{chunk-DQODLWFX.cjs → chunk-KULS4YWP.cjs} +3 -3
  38. package/dist/{chunk-DQODLWFX.cjs.map → chunk-KULS4YWP.cjs.map} +1 -1
  39. package/dist/{chunk-V5WCKJEH.cjs → chunk-Q7BGWKHP.cjs} +44 -44
  40. package/dist/{chunk-V5WCKJEH.cjs.map → chunk-Q7BGWKHP.cjs.map} +1 -1
  41. package/dist/{chunk-352P2C4E.cjs → chunk-TX7UCN73.cjs} +14 -14
  42. package/dist/{chunk-352P2C4E.cjs.map → chunk-TX7UCN73.cjs.map} +1 -1
  43. package/dist/{chunk-WJIRX5MS.cjs → chunk-W4W75MSO.cjs} +134 -25
  44. package/dist/chunk-W4W75MSO.cjs.map +1 -0
  45. package/dist/chunk-WABJGKVA.cjs +246 -0
  46. package/dist/chunk-WABJGKVA.cjs.map +1 -0
  47. package/dist/databases.js.map +2 -2
  48. package/dist/directmessages/DmComposer.js +26 -10
  49. package/dist/directmessages/DmComposer.js.map +2 -2
  50. package/dist/directmessages/index.js +2 -0
  51. package/dist/directmessages/index.js.map +2 -2
  52. package/dist/directmessages/useChats.js +11 -0
  53. package/dist/directmessages/useChats.js.map +2 -2
  54. package/dist/document-tools/core.cjs +102 -102
  55. package/dist/document-tools/core.d.ts +2 -2
  56. package/dist/document-tools/index.cjs +104 -104
  57. package/dist/document-tools/index.d.ts +2 -2
  58. package/dist/entities/DocumentEntity.js +8 -3
  59. package/dist/entities/DocumentEntity.js.map +2 -2
  60. package/dist/entities/EntityActionsMenu.js +53 -0
  61. package/dist/entities/EntityActionsMenu.js.map +7 -0
  62. package/dist/entities/EntityPill.js +50 -16
  63. package/dist/entities/EntityPill.js.map +2 -2
  64. package/dist/entities/ProjectEntity.js +4 -0
  65. package/dist/entities/ProjectEntity.js.map +2 -2
  66. package/dist/entities/TagEntity.js +1 -0
  67. package/dist/entities/TagEntity.js.map +2 -2
  68. package/dist/entities/UserEntity.js +25 -3
  69. package/dist/entities/UserEntity.js.map +2 -2
  70. package/dist/entities/links.js +9 -0
  71. package/dist/entities/links.js.map +7 -0
  72. package/dist/entities/reference-data.js +56 -0
  73. package/dist/entities/reference-data.js.map +7 -0
  74. package/dist/{file-shares.d-Bwy9k3Db.d.ts → file-shares.d-Dlt7pKRi.d.ts} +3 -0
  75. package/dist/host/config.js.map +2 -2
  76. package/dist/index.cjs +2654 -2529
  77. package/dist/index.cjs.map +1 -1
  78. package/dist/{index.d-Dy_Pz6Vl.d.ts → index.d-BaZUctD1.d.ts} +34 -10
  79. package/dist/index.d.ts +164 -20
  80. package/dist/index.js +5 -0
  81. package/dist/index.js.map +2 -2
  82. package/dist/query-keys.js +3 -0
  83. package/dist/query-keys.js.map +2 -2
  84. package/dist/session/conversation-panels.js +5 -3
  85. package/dist/session/conversation-panels.js.map +2 -2
  86. package/dist/session/layout.js +5 -0
  87. package/dist/session/layout.js.map +2 -2
  88. package/dist/shell/index.cjs +40 -40
  89. package/dist/{stored-markdown.d-Bp18vrbr.d.ts → stored-markdown.d-BLQPny3e.d.ts} +21 -1
  90. package/dist/ui/index.cjs +168 -164
  91. package/dist/ui/index.d.ts +1 -1
  92. package/dist/ui/index.js +2 -0
  93. package/dist/ui/index.js.map +2 -2
  94. package/dist/viewers/AudioViewer.js +13 -3
  95. package/dist/viewers/AudioViewer.js.map +2 -2
  96. package/dist/viewers/MediaTranscriptPlayer.js +171 -0
  97. package/dist/viewers/MediaTranscriptPlayer.js.map +7 -0
  98. package/dist/viewers/VideoViewer.js +4 -11
  99. package/dist/viewers/VideoViewer.js.map +2 -2
  100. package/dist/viewers/index.cjs +16 -12
  101. package/dist/viewers/index.d.ts +17 -3
  102. package/dist/viewers/index.js +2 -0
  103. package/dist/viewers/index.js.map +2 -2
  104. package/package.json +3 -3
  105. package/dist/chunk-B3W7WDVY.cjs.map +0 -1
  106. package/dist/chunk-TMPDW7J5.cjs +0 -79
  107. package/dist/chunk-TMPDW7J5.cjs.map +0 -1
  108. package/dist/chunk-WJIRX5MS.cjs.map +0 -1
  109. package/dist/chunk-XSJNRWLD.cjs.map +0 -1
  110. package/dist/chunk-ZZBCZRA5.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 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 PRESENTATIONS_FOLDER, aP as PRESENTATION_TEMPLATES_FOLDER, 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 SHARING_LABELS, b7 as ScrollArea, b8 as ScrollBar, b9 as Select, ba as SelectContent, bb as SelectGroup, bc as SelectItem, bd as SelectLabel, be as SelectScrollDownButton, bf as SelectScrollUpButton, bg as SelectSeparator, bh as SelectTrigger, bi as SelectValue, bj as Separator, bk as SharingEntity, bl as SharingEntityProps, bm as ShieldIcon, bn as ShieldIconProps, bo as Slider, bp as StatusBadgeComponent, bq as StatusBadgeProps, br as StatusPill, bs as StatusPillProps, bt as StatusVariant, bu as Switch, bv as TAG_TYPE_ICONS, bw as TAG_TYPE_LABELS, bx as Table, by as TableBody, bz as TableCaption, bA as TableCell, bB as TableFooter, bC as TableHead, bD as TableHeader, bE as TableRow, bF as Tabs, bG as TabsContent, bH as TabsList, bI as TabsTrigger, bJ as TagEntity, bK as TagEntityProps, bL as TagLike, bM as Textarea, bN as TextareaProps, bO as ThreadVisibilityIcon, bP as Toggle, bQ as ToggleGroup, bR as ToggleGroupItem, bS as Tooltip, bT as TooltipContent, bU as TooltipProvider, bV as TooltipTrigger, bW as UserEntity, bX as UserEntityProps, bY as UserMenu, bZ as UserMenuItem, b_ as UserMenuProps, b$ as UserMenuStatus, c0 as VISIBILITY_ICONS, c1 as VerifiedBadge, c2 as VerifiedBadgeProps, c3 as VerifiedToggle, c4 as VisibilityIcon, c5 as VisibilityToggle, c6 as VisibilityToggleProps, c7 as agentAvatarColors, c8 as badgeVariants, c9 as buildFolderTree, ca as buttonVariants, cb as canonicalFolderPath, cc as cardVariants, cd as closeOpenEmphasis, ce as cn, cf as configureEntityRegistry, cg as configureEntityVocabulary, ch as configureRagLabels, ci as configureSharingMembers, cj as configureStatusRegistry, ck as createUserAvatarIcon, cl as entityNoun, cm as extensionFromMime, cn as formatCompactLastSeen, co as formatDocDate, cp as formatFolderLabel, cq as formatFriendlyDate, cr as formatRelativeTime, cs as friendlyFileType, ct as getDocIcon, cu as getDocumentAuthor, cv as getDocumentDate, cw as getDocumentNature, cx as getDocumentSubject, cy as getDocumentTitle, cz as getEntityColor, cA as getEntityColorStyles, cB as getEntityIcon, cC as getEntityLabel, cD as getFileExtension, cE as getFileTypeIcon, cF as getStatusVariant, cG as getTagTypeIcon, cH as getTagTypeLabel, cI as getUserAvatarColor, cJ as getUserDisplayName, cK as getUserInitials, cL as getWorkspaceColor, cM as isAgent, cN as isAudioFile, cO as isDocumentAddableToConversation, cP as isDownloadOnlyFile, cQ as isImageDocument, cR as isImageFile, cS as isMediaFile, cT as isPresentationFileName, cU as isVideoFile, cV as markdownBaseComponents, cW as markdownSanitizeSchema, cX as markdownToPlainText, cY as markdownToPlainTextBlocks, c_ as splitMarkdownBlocks, c$ as tagKindNouns, d0 as tagKindTitle, d1 as toggleVariants, d2 as trimOpenCitation, d3 as useDictateContext, d4 as usePortalContainer, d5 as usesOriginalBytesForViewer } from '../index.d-Dy_Pz6Vl.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 EntityAction, ae as EntityActionsMenu, 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 PRESENTATIONS_FOLDER, aR as PRESENTATION_TEMPLATES_FOLDER, aS as PassageCard, aT as PassageCardProps, aU as Popover, aV as PopoverAnchor, aW as PopoverClose, aX as PopoverContent, aY as PopoverTrigger, aZ as PortalContainerProvider, a_ as PresenceDisplayStatus, a$ as PresenceLabel, b0 as Progress, b1 as ProjectEntity, b2 as ProjectEntityProps, b3 as ProjectRelation, b4 as ProviderIcon, b5 as RadioGroup, b6 as RadioGroupItem, b7 as Rag, b8 as SHARING_LABELS, b9 as ScrollArea, ba as ScrollBar, bb as Select, bc as SelectContent, bd as SelectGroup, be as SelectItem, bf as SelectLabel, bg as SelectScrollDownButton, bh as SelectScrollUpButton, bi as SelectSeparator, bj as SelectTrigger, bk as SelectValue, bl as Separator, bm as SharingEntity, bn as SharingEntityProps, bo as ShieldIcon, bp as ShieldIconProps, bq as Slider, br as StatusBadgeComponent, bs as StatusBadgeProps, bt as StatusPill, bu as StatusPillProps, bv as StatusVariant, bw as Switch, bx as TAG_TYPE_ICONS, by as TAG_TYPE_LABELS, bz as Table, bA as TableBody, bB as TableCaption, bC as TableCell, bD as TableFooter, bE as TableHead, bF as TableHeader, bG as TableRow, bH as Tabs, bI as TabsContent, bJ as TabsList, bK as TabsTrigger, bL as TagEntity, bM as TagEntityProps, bN as TagLike, bO as Textarea, bP as TextareaProps, bQ as ThreadVisibilityIcon, bR as Toggle, bS as ToggleGroup, bT as ToggleGroupItem, bU as Tooltip, bV as TooltipContent, bW as TooltipProvider, bX as TooltipTrigger, bY as UserEntity, bZ as UserEntityProps, b_ as UserMenu, b$ as UserMenuItem, c0 as UserMenuProps, c1 as UserMenuStatus, c2 as VISIBILITY_ICONS, c3 as VerifiedBadge, c4 as VerifiedBadgeProps, c5 as VerifiedToggle, c6 as VisibilityIcon, c7 as VisibilityToggle, c8 as VisibilityToggleProps, c9 as agentAvatarColors, ca as badgeVariants, cb as buildFolderTree, cc as buttonVariants, cd as canonicalFolderPath, ce as cardVariants, cf as closeOpenEmphasis, cg as cn, ch as configureEntityRegistry, ci as configureEntityVocabulary, cj as configureRagLabels, ck as configureSharingMembers, cl as configureStatusRegistry, cm as createUserAvatarIcon, cn as entityNoun, co as extensionFromMime, cp as formatCompactLastSeen, cq as formatDocDate, cr as formatFolderLabel, cs as formatFriendlyDate, ct as formatRelativeTime, cu as friendlyFileType, cv as getDocIcon, cw as getDocumentAuthor, cx as getDocumentDate, cy as getDocumentNature, cz as getDocumentSubject, cA as getDocumentTitle, cB as getEntityColor, cC as getEntityColorStyles, cD as getEntityIcon, cE as getEntityLabel, cF as getFileExtension, cG as getFileTypeIcon, cH as getStatusVariant, cI as getTagTypeIcon, cJ as getTagTypeLabel, cK as getUserAvatarColor, cL as getUserDisplayName, cM as getUserInitials, cN as getWorkspaceColor, cO as isAgent, cP as isAudioFile, cQ as isDocumentAddableToConversation, cR as isDownloadOnlyFile, cS as isImageDocument, cT as isImageFile, cU as isMediaFile, cV as isPresentationFileName, cW as isVideoFile, cX as markdownBaseComponents, cY as markdownSanitizeSchema, cZ as markdownToPlainText, c_ as markdownToPlainTextBlocks, d0 as splitMarkdownBlocks, d1 as tagKindNouns, d2 as tagKindTitle, d3 as toggleVariants, d4 as trimOpenCitation, d5 as useDictateContext, d6 as usePortalContainer, d7 as usesOriginalBytesForViewer } from '../index.d-BaZUctD1.js';
2
2
  export { L as LazyChunk, l as lazyChunk, a as lazyComponent, p as preloadChunks } from '../lazy-chunk.d-B6YDLMKI.js';
3
3
  import 'clsx';
4
4
  import 'react';
package/dist/ui/index.js CHANGED
@@ -139,6 +139,7 @@ import {
139
139
  COLUMN_LABEL_FALLBACKS
140
140
  } from "../documents/document-fields.js";
141
141
  import { lazyChunk, lazyComponent, preloadChunks } from "../lazy-chunk.js";
142
+ import { EntityActionsMenu } from "../entities/EntityActionsMenu.js";
142
143
  export {
143
144
  ARBI_MARK_SRC,
144
145
  AiMarkdown,
@@ -195,6 +196,7 @@ export {
195
196
  DropdownMenuSubContent,
196
197
  DropdownMenuSubTrigger,
197
198
  DropdownMenuTrigger,
199
+ EntityActionsMenu,
198
200
  HoverCard,
199
201
  HoverCardContent,
200
202
  HoverCardTrigger,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ui/index.ts"],
4
- "sourcesContent": ["/**\n * `@arbidocs/react/ui` \u2014 the presentational, SDK-free slice of the kit.\n *\n * The root `@arbidocs/react` entry pulls in `@arbidocs/sdk`, `@arbidocs/client`,\n * and React Query because it exports data-bound surfaces\n * (the chat hooks, `useAiTask`\u2026). A marketing site or any\n * unauthenticated page wants none of that, and cannot tree-shake it away: neither\n * package declares `sideEffects`, so a bundler must assume every module matters.\n *\n * This entry exports only components that render from their props: the shadcn\n * primitives (React + Radix + lucide + cva + cmdk) and the markdown renderer.\n * Nothing here imports the SDK, a client, a store or a query.\n *\n * Every symbol below is ALSO exported from the root entry, from the same module.\n * That is deliberate and safe: `tsup` emits both entries with code splitting on,\n * so `Button`, `tooltip` &c. live in one shared chunk. Were they duplicated, a\n * `TooltipProvider` imported from the root would not share context with a\n * `Tooltip` imported from here, and tooltips would silently stop opening.\n * `ui/index.test.ts` guards that the two entries stay in agreement.\n */\n\nexport { cn } from '../lib/utils'\n\n// \u2500\u2500 shadcn primitives \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { Avatar, AvatarImage, AvatarFallback } from './avatar'\nexport { Badge, badgeVariants, type BadgeProps } from './badge'\nexport { Button, buttonVariants, type ButtonProps } from './button'\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardDescription,\n CardContent,\n cardVariants,\n type CardProps,\n} from './card'\nexport { Checkbox } from './checkbox'\nexport { IconToggle, type IconToggleProps } from './IconToggle'\nexport { VisibilityToggle, type VisibilityToggleProps } from './VisibilityToggle'\nexport { DebouncedInput, type DebouncedInputProps } from './DebouncedInput'\nexport { useDictateContext, type DictateContextValue } from './DictateContext'\nexport { PortalContainerProvider, usePortalContainer } from './portal-container'\n// Entity pills + icon registry + colour system. The app shell's toast renderer\n// needs them at first paint; they depend only on lucide and the ui primitives, and\n// importing them via the root entry would cost that first load AG Grid and react-pdf.\nexport * from '../entities'\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from './collapsible'\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n} from './command'\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogPresentation,\n} from './dialog'\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n} from './dropdown-menu'\nexport { HoverCard, HoverCardTrigger, HoverCardContent } from './hover-card'\nexport { Input, type InputProps } from './input'\nexport { Label } from './label'\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from './popover'\nexport { MarkMenu, type MarkMenuItem, type MarkMenuProps } from './mark-menu'\nexport { Progress } from './progress'\nexport { RadioGroup, RadioGroupItem } from './radio-group'\nexport { ScrollArea, ScrollBar } from './scroll-area'\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n} from './select'\nexport { Separator } from './separator'\nexport { Slider } from './slider'\nexport { Switch } from './switch'\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n} from './table'\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs'\nexport { Textarea, type TextareaProps } from './textarea'\nexport { Toggle, toggleVariants } from './toggle'\nexport { ToggleGroup, ToggleGroupItem } from './toggle-group'\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './tooltip'\n\n// \u2500\u2500 Presentational cards \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Render from props only (lucide + the ui primitives); the data-bound galleries and search\n// panels that use them stay in the root entry.\nexport { PassageCard, type PassageCardProps } from '../ai/PassageCard'\n\n// The topbar account dropdown renders from props (user, items, status, logout): no SDK, no store.\nexport {\n UserMenu,\n type UserMenuProps,\n type UserMenuItem,\n type UserMenuStatus,\n} from '../usermenu/UserMenu'\n\n// \u2500\u2500 Markdown \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Presentational and SDK-free, but reached from the root entry only via the `ai`\n// barrel \u2014 which also drags in `useAiTask` and the other AI task hooks. Point at\n// the modules directly so `/ui` stays clean.\nexport {\n MarkdownCode,\n MarkdownLink,\n MarkdownRenderer,\n markdownSanitizeSchema,\n type MarkdownRendererProps,\n} from '../ai/MarkdownRenderer'\nexport { trimOpenCitation, closeOpenEmphasis } from '../ai/normalize-citations'\nexport { AiMarkdown } from '../ai/AiMarkdown'\nexport { ArbiIcon } from '../icons/ArbiIcon'\nexport { ARBI_MARK_SRC } from '../icons/arbi-mark'\nexport { ProviderIcon } from '../icons/ProviderIcon'\nexport { MarkdownStreamingContext } from '../ai/markdown-streaming-context'\nexport { markdownBaseComponents } from '../ai/markdown-base-components'\nexport { splitMarkdownBlocks } from '../ai/split-markdown-blocks'\n// Identity verification: the flow's shape, so presentational blocks take it without the SDK.\nexport type {\n IdentityVerificationFlow,\n IdentityStatus,\n IdentityState,\n IdentityPurchase,\n IdentityStep,\n IdentityBusy,\n IdentityProblem,\n} from '../account/identity-types'\n\nexport { formatFriendlyDate, formatCompactLastSeen } from '../lib/format-friendly-date'\nexport { formatRelativeTime, type FormatRelativeTimeOptions } from '../lib/format-relative-time'\nexport { markdownToPlainText, markdownToPlainTextBlocks } from '../lib/markdown-to-text'\nexport { VerifiedToggle } from './VerifiedToggle'\n// A person's display name, initials and avatar colour\nexport * from '../users'\n// A document's file-type icon and extension\nexport {\n getFileTypeIcon,\n getFileExtension,\n extensionFromMime,\n type FileTypeIcon,\n} from '../icons/file-type'\n// A document's fields as the lists show them (dates, type, author, abstract, folder labels)\nexport {\n isDocumentAddableToConversation,\n getDocumentDate,\n formatDocDate,\n getDocumentNature,\n getDocumentAuthor,\n getDocumentSubject,\n DEFAULT_METADATA_TAGS,\n canonicalFolderPath,\n buildFolderTree,\n formatFolderLabel,\n COLUMN_LABEL_FALLBACKS,\n type FolderTreeNode,\n} from '../documents/document-fields'\n\n// Heavy components in their own chunk, loaded the first time one renders (no dependencies).\nexport { lazyChunk, lazyComponent, preloadChunks, type LazyChunk } from '../lazy-chunk'\n"],
5
- "mappings": "AAqBA,SAAS,UAAU;AAGnB,SAAS,QAAQ,aAAa,sBAAsB;AACpD,SAAS,OAAO,qBAAsC;AACtD,SAAS,QAAQ,sBAAwC;AACzD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,gBAAgB;AACzB,SAAS,kBAAwC;AACjD,SAAS,wBAAoD;AAC7D,SAAS,sBAAgD;AACzD,SAAS,yBAAmD;AAC5D,SAAS,yBAAyB,0BAA0B;AAI5D,cAAc;AACd,SAAS,aAAa,oBAAoB,0BAA0B;AACpE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,kBAAkB,wBAAwB;AAC9D,SAAS,aAA8B;AACvC,SAAS,aAAa;AACtB,SAAS,SAAS,gBAAgB,gBAAgB,eAAe,oBAAoB;AACrF,SAAS,gBAAuD;AAChE,SAAS,gBAAgB;AACzB,SAAS,YAAY,sBAAsB;AAC3C,SAAS,YAAY,iBAAiB;AACtC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAC1B,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,MAAM,UAAU,aAAa,mBAAmB;AACzD,SAAS,gBAAoC;AAC7C,SAAS,QAAQ,sBAAsB;AACvC,SAAS,aAAa,uBAAuB;AAC7C,SAAS,SAAS,gBAAgB,gBAAgB,uBAAuB;AAKzE,SAAS,mBAA0C;AAGnD;AAAA,EACE;AAAA,OAIK;AAMP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,gCAAgC;AACzC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AAYpC,SAAS,oBAAoB,6BAA6B;AAC1D,SAAS,0BAA0D;AACnE,SAAS,qBAAqB,iCAAiC;AAC/D,SAAS,sBAAsB;AAE/B,cAAc;AAEd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAGP,SAAS,WAAW,eAAe,qBAAqC;",
4
+ "sourcesContent": ["/**\n * `@arbidocs/react/ui` \u2014 the presentational, SDK-free slice of the kit.\n *\n * The root `@arbidocs/react` entry pulls in `@arbidocs/sdk`, `@arbidocs/client`,\n * and React Query because it exports data-bound surfaces\n * (the chat hooks, `useAiTask`\u2026). A marketing site or any\n * unauthenticated page wants none of that, and cannot tree-shake it away: neither\n * package declares `sideEffects`, so a bundler must assume every module matters.\n *\n * This entry exports only components that render from their props: the shadcn\n * primitives (React + Radix + lucide + cva + cmdk) and the markdown renderer.\n * Nothing here imports the SDK, a client, a store or a query.\n *\n * Every symbol below is ALSO exported from the root entry, from the same module.\n * That is deliberate and safe: `tsup` emits both entries with code splitting on,\n * so `Button`, `tooltip` &c. live in one shared chunk. Were they duplicated, a\n * `TooltipProvider` imported from the root would not share context with a\n * `Tooltip` imported from here, and tooltips would silently stop opening.\n * `ui/index.test.ts` guards that the two entries stay in agreement.\n */\n\nexport { cn } from '../lib/utils'\n\n// \u2500\u2500 shadcn primitives \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { Avatar, AvatarImage, AvatarFallback } from './avatar'\nexport { Badge, badgeVariants, type BadgeProps } from './badge'\nexport { Button, buttonVariants, type ButtonProps } from './button'\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardDescription,\n CardContent,\n cardVariants,\n type CardProps,\n} from './card'\nexport { Checkbox } from './checkbox'\nexport { IconToggle, type IconToggleProps } from './IconToggle'\nexport { VisibilityToggle, type VisibilityToggleProps } from './VisibilityToggle'\nexport { DebouncedInput, type DebouncedInputProps } from './DebouncedInput'\nexport { useDictateContext, type DictateContextValue } from './DictateContext'\nexport { PortalContainerProvider, usePortalContainer } from './portal-container'\n// Entity pills + icon registry + colour system. The app shell's toast renderer\n// needs them at first paint; they depend only on lucide and the ui primitives, and\n// importing them via the root entry would cost that first load AG Grid and react-pdf.\nexport * from '../entities'\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from './collapsible'\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n} from './command'\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogPresentation,\n} from './dialog'\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n} from './dropdown-menu'\nexport { HoverCard, HoverCardTrigger, HoverCardContent } from './hover-card'\nexport { Input, type InputProps } from './input'\nexport { Label } from './label'\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from './popover'\nexport { MarkMenu, type MarkMenuItem, type MarkMenuProps } from './mark-menu'\nexport { Progress } from './progress'\nexport { RadioGroup, RadioGroupItem } from './radio-group'\nexport { ScrollArea, ScrollBar } from './scroll-area'\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n} from './select'\nexport { Separator } from './separator'\nexport { Slider } from './slider'\nexport { Switch } from './switch'\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n} from './table'\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs'\nexport { Textarea, type TextareaProps } from './textarea'\nexport { Toggle, toggleVariants } from './toggle'\nexport { ToggleGroup, ToggleGroupItem } from './toggle-group'\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './tooltip'\n\n// \u2500\u2500 Presentational cards \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Render from props only (lucide + the ui primitives); the data-bound galleries and search\n// panels that use them stay in the root entry.\nexport { PassageCard, type PassageCardProps } from '../ai/PassageCard'\n\n// The topbar account dropdown renders from props (user, items, status, logout): no SDK, no store.\nexport {\n UserMenu,\n type UserMenuProps,\n type UserMenuItem,\n type UserMenuStatus,\n} from '../usermenu/UserMenu'\n\n// \u2500\u2500 Markdown \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Presentational and SDK-free, but reached from the root entry only via the `ai`\n// barrel \u2014 which also drags in `useAiTask` and the other AI task hooks. Point at\n// the modules directly so `/ui` stays clean.\nexport {\n MarkdownCode,\n MarkdownLink,\n MarkdownRenderer,\n markdownSanitizeSchema,\n type MarkdownRendererProps,\n} from '../ai/MarkdownRenderer'\nexport { trimOpenCitation, closeOpenEmphasis } from '../ai/normalize-citations'\nexport { AiMarkdown } from '../ai/AiMarkdown'\nexport { ArbiIcon } from '../icons/ArbiIcon'\nexport { ARBI_MARK_SRC } from '../icons/arbi-mark'\nexport { ProviderIcon } from '../icons/ProviderIcon'\nexport { MarkdownStreamingContext } from '../ai/markdown-streaming-context'\nexport { markdownBaseComponents } from '../ai/markdown-base-components'\nexport { splitMarkdownBlocks } from '../ai/split-markdown-blocks'\n// Identity verification: the flow's shape, so presentational blocks take it without the SDK.\nexport type {\n IdentityVerificationFlow,\n IdentityStatus,\n IdentityState,\n IdentityPurchase,\n IdentityStep,\n IdentityBusy,\n IdentityProblem,\n} from '../account/identity-types'\n\nexport { formatFriendlyDate, formatCompactLastSeen } from '../lib/format-friendly-date'\nexport { formatRelativeTime, type FormatRelativeTimeOptions } from '../lib/format-relative-time'\nexport { markdownToPlainText, markdownToPlainTextBlocks } from '../lib/markdown-to-text'\nexport { VerifiedToggle } from './VerifiedToggle'\n// A person's display name, initials and avatar colour\nexport * from '../users'\n// A document's file-type icon and extension\nexport {\n getFileTypeIcon,\n getFileExtension,\n extensionFromMime,\n type FileTypeIcon,\n} from '../icons/file-type'\n// A document's fields as the lists show them (dates, type, author, abstract, folder labels)\nexport {\n isDocumentAddableToConversation,\n getDocumentDate,\n formatDocDate,\n getDocumentNature,\n getDocumentAuthor,\n getDocumentSubject,\n DEFAULT_METADATA_TAGS,\n canonicalFolderPath,\n buildFolderTree,\n formatFolderLabel,\n COLUMN_LABEL_FALLBACKS,\n type FolderTreeNode,\n} from '../documents/document-fields'\n\n// Heavy components in their own chunk, loaded the first time one renders (no dependencies).\nexport { lazyChunk, lazyComponent, preloadChunks, type LazyChunk } from '../lazy-chunk'\n\nexport { EntityActionsMenu, type EntityAction } from '../entities/EntityActionsMenu'\n"],
5
+ "mappings": "AAqBA,SAAS,UAAU;AAGnB,SAAS,QAAQ,aAAa,sBAAsB;AACpD,SAAS,OAAO,qBAAsC;AACtD,SAAS,QAAQ,sBAAwC;AACzD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,gBAAgB;AACzB,SAAS,kBAAwC;AACjD,SAAS,wBAAoD;AAC7D,SAAS,sBAAgD;AACzD,SAAS,yBAAmD;AAC5D,SAAS,yBAAyB,0BAA0B;AAI5D,cAAc;AACd,SAAS,aAAa,oBAAoB,0BAA0B;AACpE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,kBAAkB,wBAAwB;AAC9D,SAAS,aAA8B;AACvC,SAAS,aAAa;AACtB,SAAS,SAAS,gBAAgB,gBAAgB,eAAe,oBAAoB;AACrF,SAAS,gBAAuD;AAChE,SAAS,gBAAgB;AACzB,SAAS,YAAY,sBAAsB;AAC3C,SAAS,YAAY,iBAAiB;AACtC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAC1B,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,MAAM,UAAU,aAAa,mBAAmB;AACzD,SAAS,gBAAoC;AAC7C,SAAS,QAAQ,sBAAsB;AACvC,SAAS,aAAa,uBAAuB;AAC7C,SAAS,SAAS,gBAAgB,gBAAgB,uBAAuB;AAKzE,SAAS,mBAA0C;AAGnD;AAAA,EACE;AAAA,OAIK;AAMP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,gCAAgC;AACzC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AAYpC,SAAS,oBAAoB,6BAA6B;AAC1D,SAAS,0BAA0D;AACnE,SAAS,qBAAqB,iCAAiC;AAC/D,SAAS,sBAAsB;AAE/B,cAAc;AAEd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAGP,SAAS,WAAW,eAAe,qBAAqC;AAExE,SAAS,yBAA4C;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
- function AudioViewer({ blob, title }) {
3
+ import { MediaTranscriptPlayer } from "./MediaTranscriptPlayer.js";
4
+ function AudioViewer({ blob, title, segments }) {
4
5
  const [objectUrl, setObjectUrl] = useState("");
5
6
  useEffect(() => {
6
7
  const url = URL.createObjectURL(blob);
@@ -11,9 +12,18 @@ function AudioViewer({ blob, title }) {
11
12
  return /* @__PURE__ */ jsx(
12
13
  "div",
13
14
  {
14
- className: "h-full w-full flex items-center justify-center p-4 bg-muted/30",
15
+ className: `h-full w-full flex justify-center p-4 bg-muted/30 ${segments?.length ? "items-start" : "items-center"}`,
15
16
  "data-testid": "audio-viewer",
16
- children: /* @__PURE__ */ jsx("audio", { src: objectUrl, controls: true, title, className: "w-full max-w-lg" })
17
+ children: /* @__PURE__ */ jsx(
18
+ MediaTranscriptPlayer,
19
+ {
20
+ src: objectUrl,
21
+ title,
22
+ kind: "audio",
23
+ segments,
24
+ className: "max-w-lg"
25
+ }
26
+ )
17
27
  }
18
28
  );
19
29
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/viewers/AudioViewer.tsx"],
4
- "sourcesContent": ["import { useEffect, useState } from 'react'\n\nexport interface AudioViewerProps {\n blob: Blob\n title: string\n}\n\n/** Renders an audio blob with the browser's native transport controls. */\nexport function AudioViewer({ blob, title }: AudioViewerProps) {\n const [objectUrl, setObjectUrl] = useState<string>('')\n\n useEffect(() => {\n const url = URL.createObjectURL(blob)\n setObjectUrl(url)\n return () => URL.revokeObjectURL(url)\n }, [blob])\n\n if (!objectUrl) return null\n\n return (\n <div\n className=\"h-full w-full flex items-center justify-center p-4 bg-muted/30\"\n data-testid=\"audio-viewer\"\n >\n <audio src={objectUrl} controls title={title} className=\"w-full max-w-lg\" />\n </div>\n )\n}\n"],
5
- "mappings": "AAwBM;AAxBN,SAAS,WAAW,gBAAgB;AAQ7B,SAAS,YAAY,EAAE,MAAM,MAAM,GAAqB;AAC7D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAiB,EAAE;AAErD,YAAU,MAAM;AACd,UAAM,MAAM,IAAI,gBAAgB,IAAI;AACpC,iBAAa,GAAG;AAChB,WAAO,MAAM,IAAI,gBAAgB,GAAG;AAAA,EACtC,GAAG,CAAC,IAAI,CAAC;AAET,MAAI,CAAC,UAAW,QAAO;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MAEZ,8BAAC,WAAM,KAAK,WAAW,UAAQ,MAAC,OAAc,WAAU,mBAAkB;AAAA;AAAA,EAC5E;AAEJ;",
4
+ "sourcesContent": ["import { useEffect, useState } from 'react'\nimport type { TranscriptSegment } from '@arbidocs/sdk/browser'\nimport { MediaTranscriptPlayer } from './MediaTranscriptPlayer'\n\nexport interface AudioViewerProps {\n blob: Blob\n title: string\n segments?: readonly TranscriptSegment[]\n}\n\n/** Renders an audio blob with the browser's native transport controls. */\nexport function AudioViewer({ blob, title, segments }: AudioViewerProps) {\n const [objectUrl, setObjectUrl] = useState<string>('')\n\n useEffect(() => {\n const url = URL.createObjectURL(blob)\n setObjectUrl(url)\n return () => URL.revokeObjectURL(url)\n }, [blob])\n\n if (!objectUrl) return null\n\n return (\n <div\n className={`h-full w-full flex justify-center p-4 bg-muted/30 ${segments?.length ? 'items-start' : 'items-center'}`}\n data-testid=\"audio-viewer\"\n >\n <MediaTranscriptPlayer\n src={objectUrl}\n title={title}\n kind=\"audio\"\n segments={segments}\n className=\"max-w-lg\"\n />\n </div>\n )\n}\n"],
5
+ "mappings": "AA2BM;AA3BN,SAAS,WAAW,gBAAgB;AAEpC,SAAS,6BAA6B;AAS/B,SAAS,YAAY,EAAE,MAAM,OAAO,SAAS,GAAqB;AACvE,QAAM,CAAC,WAAW,YAAY,IAAI,SAAiB,EAAE;AAErD,YAAU,MAAM;AACd,UAAM,MAAM,IAAI,gBAAgB,IAAI;AACpC,iBAAa,GAAG;AAChB,WAAO,MAAM,IAAI,gBAAgB,GAAG;AAAA,EACtC,GAAG,CAAC,IAAI,CAAC;AAET,MAAI,CAAC,UAAW,QAAO;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,qDAAqD,UAAU,SAAS,gBAAgB,cAAc;AAAA,MACjH,eAAY;AAAA,MAEZ;AAAA,QAAC;AAAA;AAAA,UACC,KAAK;AAAA,UACL;AAAA,UACA,MAAK;AAAA,UACL;AAAA,UACA,WAAU;AAAA;AAAA,MACZ;AAAA;AAAA,EACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,171 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useRef, useState } from "react";
3
+ import { transcriptEnd, transcriptToWebVtt } from "@arbidocs/sdk/browser";
4
+ const timeLabel = (time) => {
5
+ const seconds = Math.floor(time);
6
+ return `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, "0")}`;
7
+ };
8
+ function MediaTranscriptPlayer({
9
+ src,
10
+ title,
11
+ kind = "video",
12
+ segments = [],
13
+ className = "",
14
+ mediaClassName = ""
15
+ }) {
16
+ const media = useRef(null);
17
+ const currentRow = useRef(null);
18
+ const list = useRef(null);
19
+ const [time, setTime] = useState(0);
20
+ const [duration, setDuration] = useState();
21
+ const [showTranscript, setShowTranscript] = useState(true);
22
+ const [follow, setFollow] = useState(true);
23
+ const [captions, setCaptions] = useState(null);
24
+ useEffect(() => {
25
+ setTime(0);
26
+ setDuration(void 0);
27
+ }, [src]);
28
+ useEffect(() => {
29
+ if (!segments.length) {
30
+ setCaptions(null);
31
+ return;
32
+ }
33
+ const url = URL.createObjectURL(
34
+ new Blob([transcriptToWebVtt(segments, duration)], { type: "text/vtt" })
35
+ );
36
+ setCaptions(url);
37
+ return () => URL.revokeObjectURL(url);
38
+ }, [segments, duration]);
39
+ const active = segments.map((segment, index) => {
40
+ const end = transcriptEnd(segments, index, duration);
41
+ return time >= segment.start && (end == null || time < end);
42
+ });
43
+ const activeIndex = active.findIndex(Boolean);
44
+ useEffect(() => {
45
+ const row = currentRow.current;
46
+ const container = list.current;
47
+ if (!follow || !row || !container || !showTranscript) return;
48
+ container.scrollTop = Math.max(
49
+ 0,
50
+ container.scrollTop + row.getBoundingClientRect().top - container.getBoundingClientRect().top - container.clientHeight / 2 + row.clientHeight / 2
51
+ );
52
+ }, [activeIndex, follow, showTranscript]);
53
+ const events = {
54
+ onTimeUpdate: (event) => setTime(event.currentTarget.currentTime),
55
+ onSeeked: (event) => setTime(event.currentTarget.currentTime),
56
+ onLoadedMetadata: (event) => {
57
+ const value = event.currentTarget.duration;
58
+ setDuration(Number.isFinite(value) ? value : void 0);
59
+ },
60
+ onDurationChange: (event) => {
61
+ const value = event.currentTarget.duration;
62
+ setDuration(Number.isFinite(value) ? value : void 0);
63
+ }
64
+ };
65
+ return /* @__PURE__ */ jsxs(
66
+ "div",
67
+ {
68
+ className: `flex min-h-0 w-full flex-col gap-2 ${className}`,
69
+ "data-testid": "media-transcript-player",
70
+ children: [
71
+ kind === "video" ? /* @__PURE__ */ jsx(
72
+ "video",
73
+ {
74
+ ref: (element) => {
75
+ media.current = element;
76
+ },
77
+ src,
78
+ title,
79
+ "aria-label": title,
80
+ controls: true,
81
+ preload: "metadata",
82
+ className: `mx-auto max-w-full rounded ${mediaClassName || (showTranscript && segments.length ? "max-h-[50vh]" : "max-h-full")}`,
83
+ ...events,
84
+ children: captions && /* @__PURE__ */ jsx("track", { kind: "captions", label: "Transcript", srcLang: "und", src: captions })
85
+ }
86
+ ) : /* @__PURE__ */ jsx(
87
+ "audio",
88
+ {
89
+ ref: (element) => {
90
+ media.current = element;
91
+ },
92
+ src,
93
+ title,
94
+ "aria-label": title,
95
+ controls: true,
96
+ className: `w-full ${mediaClassName}`,
97
+ ...events
98
+ }
99
+ ),
100
+ !!segments.length && /* @__PURE__ */ jsxs(Fragment, { children: [
101
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 text-sm", children: [
102
+ /* @__PURE__ */ jsx(
103
+ "button",
104
+ {
105
+ type: "button",
106
+ className: "underline underline-offset-4",
107
+ "aria-expanded": showTranscript,
108
+ onClick: () => setShowTranscript((shown) => !shown),
109
+ children: showTranscript ? "Hide transcript" : "Show transcript"
110
+ }
111
+ ),
112
+ showTranscript && /* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2", children: [
113
+ /* @__PURE__ */ jsx(
114
+ "input",
115
+ {
116
+ type: "checkbox",
117
+ checked: follow,
118
+ onChange: (event) => setFollow(event.target.checked)
119
+ }
120
+ ),
121
+ " ",
122
+ "Follow playback"
123
+ ] })
124
+ ] }),
125
+ showTranscript && /* @__PURE__ */ jsxs("section", { "aria-label": "Synchronized transcript", className: "min-h-0", children: [
126
+ segments.some((segment) => segment.end == null) && /* @__PURE__ */ jsx("p", { className: "mb-1 text-xs text-muted-foreground", children: "This transcript has start times only; highlighting is approximate." }),
127
+ /* @__PURE__ */ jsx(
128
+ "div",
129
+ {
130
+ ref: list,
131
+ className: "relative max-h-64 overflow-y-auto overscroll-contain",
132
+ onWheel: () => setFollow(false),
133
+ onTouchStart: () => setFollow(false),
134
+ children: segments.map((segment, index) => /* @__PURE__ */ jsxs(
135
+ "button",
136
+ {
137
+ type: "button",
138
+ ref: index === activeIndex ? currentRow : void 0,
139
+ "aria-current": active[index] ? "true" : void 0,
140
+ className: `grid w-full grid-cols-[auto_1fr] gap-3 rounded px-2 py-2 text-left text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${active[index] ? "bg-primary/10 text-foreground" : "text-muted-foreground hover:bg-muted"}`,
141
+ onClick: () => {
142
+ if (media.current) {
143
+ media.current.currentTime = segment.start;
144
+ setTime(segment.start);
145
+ }
146
+ },
147
+ children: [
148
+ /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: timeLabel(segment.start) }),
149
+ /* @__PURE__ */ jsxs("span", { className: "whitespace-pre-wrap break-words", children: [
150
+ segment.speaker && /* @__PURE__ */ jsxs("span", { className: "mr-1 font-medium", children: [
151
+ segment.speaker,
152
+ ":"
153
+ ] }),
154
+ segment.text
155
+ ] })
156
+ ]
157
+ },
158
+ `${index}-${segment.start}`
159
+ ))
160
+ }
161
+ )
162
+ ] })
163
+ ] })
164
+ ]
165
+ }
166
+ );
167
+ }
168
+ export {
169
+ MediaTranscriptPlayer
170
+ };
171
+ //# sourceMappingURL=MediaTranscriptPlayer.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/viewers/MediaTranscriptPlayer.tsx"],
4
+ "sourcesContent": ["import { useEffect, useRef, useState } from 'react'\nimport { transcriptEnd, transcriptToWebVtt, type TranscriptSegment } from '@arbidocs/sdk/browser'\n\nexport interface MediaTranscriptPlayerProps {\n src: string\n title: string\n kind?: 'video' | 'audio'\n segments?: readonly TranscriptSegment[]\n className?: string\n mediaClassName?: string\n}\n\nconst timeLabel = (time: number) => {\n const seconds = Math.floor(time)\n return `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`\n}\n\n/** One native player and a two-way linked transcript. Seeking preserves the user's paused/playing state. */\nexport function MediaTranscriptPlayer({\n src,\n title,\n kind = 'video',\n segments = [],\n className = '',\n mediaClassName = '',\n}: MediaTranscriptPlayerProps) {\n const media = useRef<HTMLMediaElement | null>(null)\n const currentRow = useRef<HTMLButtonElement | null>(null)\n const list = useRef<HTMLDivElement>(null)\n const [time, setTime] = useState(0)\n const [duration, setDuration] = useState<number | undefined>()\n const [showTranscript, setShowTranscript] = useState(true)\n const [follow, setFollow] = useState(true)\n const [captions, setCaptions] = useState<string | null>(null)\n useEffect(() => {\n setTime(0)\n setDuration(undefined)\n }, [src])\n useEffect(() => {\n if (!segments.length) {\n setCaptions(null)\n return\n }\n const url = URL.createObjectURL(\n new Blob([transcriptToWebVtt(segments, duration)], { type: 'text/vtt' })\n )\n setCaptions(url)\n return () => URL.revokeObjectURL(url)\n }, [segments, duration])\n const active = segments.map((segment, index) => {\n const end = transcriptEnd(segments, index, duration)\n return time >= segment.start && (end == null || time < end)\n })\n const activeIndex = active.findIndex(Boolean)\n useEffect(() => {\n const row = currentRow.current\n const container = list.current\n if (!follow || !row || !container || !showTranscript) return\n // Scroll only the transcript, never the page or video. Do not move keyboard focus.\n container.scrollTop = Math.max(\n 0,\n container.scrollTop +\n row.getBoundingClientRect().top -\n container.getBoundingClientRect().top -\n container.clientHeight / 2 +\n row.clientHeight / 2\n )\n }, [activeIndex, follow, showTranscript])\n const events = {\n onTimeUpdate: (event: React.SyntheticEvent<HTMLMediaElement>) =>\n setTime(event.currentTarget.currentTime),\n onSeeked: (event: React.SyntheticEvent<HTMLMediaElement>) =>\n setTime(event.currentTarget.currentTime),\n onLoadedMetadata: (event: React.SyntheticEvent<HTMLMediaElement>) => {\n const value = event.currentTarget.duration\n setDuration(Number.isFinite(value) ? value : undefined)\n },\n onDurationChange: (event: React.SyntheticEvent<HTMLMediaElement>) => {\n const value = event.currentTarget.duration\n setDuration(Number.isFinite(value) ? value : undefined)\n },\n }\n return (\n <div\n className={`flex min-h-0 w-full flex-col gap-2 ${className}`}\n data-testid=\"media-transcript-player\"\n >\n {kind === 'video' ? (\n <video\n ref={(element) => {\n media.current = element\n }}\n src={src}\n title={title}\n aria-label={title}\n controls\n preload=\"metadata\"\n className={`mx-auto max-w-full rounded ${mediaClassName || (showTranscript && segments.length ? 'max-h-[50vh]' : 'max-h-full')}`}\n {...events}\n >\n {captions && <track kind=\"captions\" label=\"Transcript\" srcLang=\"und\" src={captions} />}\n </video>\n ) : (\n <audio\n ref={(element) => {\n media.current = element\n }}\n src={src}\n title={title}\n aria-label={title}\n controls\n className={`w-full ${mediaClassName}`}\n {...events}\n />\n )}\n {!!segments.length && (\n <>\n <div className=\"flex flex-wrap items-center justify-between gap-2 text-sm\">\n <button\n type=\"button\"\n className=\"underline underline-offset-4\"\n aria-expanded={showTranscript}\n onClick={() => setShowTranscript((shown) => !shown)}\n >\n {showTranscript ? 'Hide transcript' : 'Show transcript'}\n </button>\n {showTranscript && (\n <label className=\"flex items-center gap-2\">\n <input\n type=\"checkbox\"\n checked={follow}\n onChange={(event) => setFollow(event.target.checked)}\n />{' '}\n Follow playback\n </label>\n )}\n </div>\n {showTranscript && (\n <section aria-label=\"Synchronized transcript\" className=\"min-h-0\">\n {segments.some((segment) => segment.end == null) && (\n <p className=\"mb-1 text-xs text-muted-foreground\">\n This transcript has start times only; highlighting is approximate.\n </p>\n )}\n <div\n ref={list}\n className=\"relative max-h-64 overflow-y-auto overscroll-contain\"\n onWheel={() => setFollow(false)}\n onTouchStart={() => setFollow(false)}\n >\n {segments.map((segment, index) => (\n <button\n key={`${index}-${segment.start}`}\n type=\"button\"\n ref={index === activeIndex ? currentRow : undefined}\n aria-current={active[index] ? 'true' : undefined}\n className={`grid w-full grid-cols-[auto_1fr] gap-3 rounded px-2 py-2 text-left text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${active[index] ? 'bg-primary/10 text-foreground' : 'text-muted-foreground hover:bg-muted'}`}\n onClick={() => {\n if (media.current) {\n media.current.currentTime = segment.start\n setTime(segment.start)\n }\n }}\n >\n <span className=\"tabular-nums\">{timeLabel(segment.start)}</span>\n <span className=\"whitespace-pre-wrap break-words\">\n {segment.speaker && (\n <span className=\"mr-1 font-medium\">{segment.speaker}:</span>\n )}\n {segment.text}\n </span>\n </button>\n ))}\n </div>\n </section>\n )}\n </>\n )}\n </div>\n )\n}\n"],
5
+ "mappings": "AAoGuB,SAgBf,UAhBe,KA2BT,YA3BS;AApGvB,SAAS,WAAW,QAAQ,gBAAgB;AAC5C,SAAS,eAAe,0BAAkD;AAW1E,MAAM,YAAY,CAAC,SAAiB;AAClC,QAAM,UAAU,KAAK,MAAM,IAAI;AAC/B,SAAO,GAAG,KAAK,MAAM,UAAU,EAAE,CAAC,IAAI,OAAO,UAAU,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC;AAC7E;AAGO,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,WAAW,CAAC;AAAA,EACZ,YAAY;AAAA,EACZ,iBAAiB;AACnB,GAA+B;AAC7B,QAAM,QAAQ,OAAgC,IAAI;AAClD,QAAM,aAAa,OAAiC,IAAI;AACxD,QAAM,OAAO,OAAuB,IAAI;AACxC,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,CAAC;AAClC,QAAM,CAAC,UAAU,WAAW,IAAI,SAA6B;AAC7D,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS,IAAI;AACzD,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,IAAI;AACzC,QAAM,CAAC,UAAU,WAAW,IAAI,SAAwB,IAAI;AAC5D,YAAU,MAAM;AACd,YAAQ,CAAC;AACT,gBAAY,MAAS;AAAA,EACvB,GAAG,CAAC,GAAG,CAAC;AACR,YAAU,MAAM;AACd,QAAI,CAAC,SAAS,QAAQ;AACpB,kBAAY,IAAI;AAChB;AAAA,IACF;AACA,UAAM,MAAM,IAAI;AAAA,MACd,IAAI,KAAK,CAAC,mBAAmB,UAAU,QAAQ,CAAC,GAAG,EAAE,MAAM,WAAW,CAAC;AAAA,IACzE;AACA,gBAAY,GAAG;AACf,WAAO,MAAM,IAAI,gBAAgB,GAAG;AAAA,EACtC,GAAG,CAAC,UAAU,QAAQ,CAAC;AACvB,QAAM,SAAS,SAAS,IAAI,CAAC,SAAS,UAAU;AAC9C,UAAM,MAAM,cAAc,UAAU,OAAO,QAAQ;AACnD,WAAO,QAAQ,QAAQ,UAAU,OAAO,QAAQ,OAAO;AAAA,EACzD,CAAC;AACD,QAAM,cAAc,OAAO,UAAU,OAAO;AAC5C,YAAU,MAAM;AACd,UAAM,MAAM,WAAW;AACvB,UAAM,YAAY,KAAK;AACvB,QAAI,CAAC,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC,eAAgB;AAEtD,cAAU,YAAY,KAAK;AAAA,MACzB;AAAA,MACA,UAAU,YACR,IAAI,sBAAsB,EAAE,MAC5B,UAAU,sBAAsB,EAAE,MAClC,UAAU,eAAe,IACzB,IAAI,eAAe;AAAA,IACvB;AAAA,EACF,GAAG,CAAC,aAAa,QAAQ,cAAc,CAAC;AACxC,QAAM,SAAS;AAAA,IACb,cAAc,CAAC,UACb,QAAQ,MAAM,cAAc,WAAW;AAAA,IACzC,UAAU,CAAC,UACT,QAAQ,MAAM,cAAc,WAAW;AAAA,IACzC,kBAAkB,CAAC,UAAkD;AACnE,YAAM,QAAQ,MAAM,cAAc;AAClC,kBAAY,OAAO,SAAS,KAAK,IAAI,QAAQ,MAAS;AAAA,IACxD;AAAA,IACA,kBAAkB,CAAC,UAAkD;AACnE,YAAM,QAAQ,MAAM,cAAc;AAClC,kBAAY,OAAO,SAAS,KAAK,IAAI,QAAQ,MAAS;AAAA,IACxD;AAAA,EACF;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,sCAAsC,SAAS;AAAA,MAC1D,eAAY;AAAA,MAEX;AAAA,iBAAS,UACR;AAAA,UAAC;AAAA;AAAA,YACC,KAAK,CAAC,YAAY;AAChB,oBAAM,UAAU;AAAA,YAClB;AAAA,YACA;AAAA,YACA;AAAA,YACA,cAAY;AAAA,YACZ,UAAQ;AAAA,YACR,SAAQ;AAAA,YACR,WAAW,8BAA8B,mBAAmB,kBAAkB,SAAS,SAAS,iBAAiB,aAAa;AAAA,YAC7H,GAAG;AAAA,YAEH,sBAAY,oBAAC,WAAM,MAAK,YAAW,OAAM,cAAa,SAAQ,OAAM,KAAK,UAAU;AAAA;AAAA,QACtF,IAEA;AAAA,UAAC;AAAA;AAAA,YACC,KAAK,CAAC,YAAY;AAChB,oBAAM,UAAU;AAAA,YAClB;AAAA,YACA;AAAA,YACA;AAAA,YACA,cAAY;AAAA,YACZ,UAAQ;AAAA,YACR,WAAW,UAAU,cAAc;AAAA,YAClC,GAAG;AAAA;AAAA,QACN;AAAA,QAED,CAAC,CAAC,SAAS,UACV,iCACE;AAAA,+BAAC,SAAI,WAAU,6DACb;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,MAAK;AAAA,gBACL,WAAU;AAAA,gBACV,iBAAe;AAAA,gBACf,SAAS,MAAM,kBAAkB,CAAC,UAAU,CAAC,KAAK;AAAA,gBAEjD,2BAAiB,oBAAoB;AAAA;AAAA,YACxC;AAAA,YACC,kBACC,qBAAC,WAAM,WAAU,2BACf;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,MAAK;AAAA,kBACL,SAAS;AAAA,kBACT,UAAU,CAAC,UAAU,UAAU,MAAM,OAAO,OAAO;AAAA;AAAA,cACrD;AAAA,cAAG;AAAA,cAAI;AAAA,eAET;AAAA,aAEJ;AAAA,UACC,kBACC,qBAAC,aAAQ,cAAW,2BAA0B,WAAU,WACrD;AAAA,qBAAS,KAAK,CAAC,YAAY,QAAQ,OAAO,IAAI,KAC7C,oBAAC,OAAE,WAAU,sCAAqC,gFAElD;AAAA,YAEF;AAAA,cAAC;AAAA;AAAA,gBACC,KAAK;AAAA,gBACL,WAAU;AAAA,gBACV,SAAS,MAAM,UAAU,KAAK;AAAA,gBAC9B,cAAc,MAAM,UAAU,KAAK;AAAA,gBAElC,mBAAS,IAAI,CAAC,SAAS,UACtB;AAAA,kBAAC;AAAA;AAAA,oBAEC,MAAK;AAAA,oBACL,KAAK,UAAU,cAAc,aAAa;AAAA,oBAC1C,gBAAc,OAAO,KAAK,IAAI,SAAS;AAAA,oBACvC,WAAW,sJAAsJ,OAAO,KAAK,IAAI,kCAAkC,sCAAsC;AAAA,oBACzP,SAAS,MAAM;AACb,0BAAI,MAAM,SAAS;AACjB,8BAAM,QAAQ,cAAc,QAAQ;AACpC,gCAAQ,QAAQ,KAAK;AAAA,sBACvB;AAAA,oBACF;AAAA,oBAEA;AAAA,0CAAC,UAAK,WAAU,gBAAgB,oBAAU,QAAQ,KAAK,GAAE;AAAA,sBACzD,qBAAC,UAAK,WAAU,mCACb;AAAA,gCAAQ,WACP,qBAAC,UAAK,WAAU,oBAAoB;AAAA,kCAAQ;AAAA,0BAAQ;AAAA,2BAAC;AAAA,wBAEtD,QAAQ;AAAA,yBACX;AAAA;AAAA;AAAA,kBAlBK,GAAG,KAAK,IAAI,QAAQ,KAAK;AAAA,gBAmBhC,CACD;AAAA;AAAA,YACH;AAAA,aACF;AAAA,WAEJ;AAAA;AAAA;AAAA,EAEJ;AAEJ;",
6
+ "names": []
7
+ }
@@ -1,6 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
- function VideoViewer({ blob, title }) {
3
+ import { MediaTranscriptPlayer } from "./MediaTranscriptPlayer.js";
4
+ function VideoViewer({ blob, title, segments }) {
4
5
  const [objectUrl, setObjectUrl] = useState("");
5
6
  useEffect(() => {
6
7
  const url = URL.createObjectURL(blob);
@@ -11,17 +12,9 @@ function VideoViewer({ blob, title }) {
11
12
  return /* @__PURE__ */ jsx(
12
13
  "div",
13
14
  {
14
- className: "h-full w-full overflow-auto flex items-center justify-center p-4 bg-muted/30",
15
+ className: `h-full w-full overflow-auto flex justify-center p-4 bg-muted/30 ${segments?.length ? "items-start" : "items-center"}`,
15
16
  "data-testid": "video-viewer",
16
- children: /* @__PURE__ */ jsx(
17
- "video",
18
- {
19
- src: objectUrl,
20
- controls: true,
21
- title,
22
- className: "max-w-full max-h-full rounded shadow-sm"
23
- }
24
- )
17
+ children: /* @__PURE__ */ jsx(MediaTranscriptPlayer, { src: objectUrl, title, segments })
25
18
  }
26
19
  );
27
20
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/viewers/VideoViewer.tsx"],
4
- "sourcesContent": ["import { useEffect, useState } from 'react'\n\nexport interface VideoViewerProps {\n blob: Blob\n title: string\n}\n\n/** Renders a video blob with the browser's native transport controls. */\nexport function VideoViewer({ blob, title }: VideoViewerProps) {\n const [objectUrl, setObjectUrl] = useState<string>('')\n\n useEffect(() => {\n const url = URL.createObjectURL(blob)\n setObjectUrl(url)\n return () => URL.revokeObjectURL(url)\n }, [blob])\n\n if (!objectUrl) return null\n\n return (\n <div\n className=\"h-full w-full overflow-auto flex items-center justify-center p-4 bg-muted/30\"\n data-testid=\"video-viewer\"\n >\n <video\n src={objectUrl}\n controls\n title={title}\n className=\"max-w-full max-h-full rounded shadow-sm\"\n />\n </div>\n )\n}\n"],
5
- "mappings": "AAwBM;AAxBN,SAAS,WAAW,gBAAgB;AAQ7B,SAAS,YAAY,EAAE,MAAM,MAAM,GAAqB;AAC7D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAiB,EAAE;AAErD,YAAU,MAAM;AACd,UAAM,MAAM,IAAI,gBAAgB,IAAI;AACpC,iBAAa,GAAG;AAChB,WAAO,MAAM,IAAI,gBAAgB,GAAG;AAAA,EACtC,GAAG,CAAC,IAAI,CAAC;AAET,MAAI,CAAC,UAAW,QAAO;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MAEZ;AAAA,QAAC;AAAA;AAAA,UACC,KAAK;AAAA,UACL,UAAQ;AAAA,UACR;AAAA,UACA,WAAU;AAAA;AAAA,MACZ;AAAA;AAAA,EACF;AAEJ;",
4
+ "sourcesContent": ["import { useEffect, useState } from 'react'\nimport type { TranscriptSegment } from '@arbidocs/sdk/browser'\nimport { MediaTranscriptPlayer } from './MediaTranscriptPlayer'\n\nexport interface VideoViewerProps {\n blob: Blob\n title: string\n segments?: readonly TranscriptSegment[]\n}\n\n/** Renders a video blob with the browser's native transport controls. */\nexport function VideoViewer({ blob, title, segments }: VideoViewerProps) {\n const [objectUrl, setObjectUrl] = useState<string>('')\n\n useEffect(() => {\n const url = URL.createObjectURL(blob)\n setObjectUrl(url)\n return () => URL.revokeObjectURL(url)\n }, [blob])\n\n if (!objectUrl) return null\n\n return (\n <div\n className={`h-full w-full overflow-auto flex justify-center p-4 bg-muted/30 ${segments?.length ? 'items-start' : 'items-center'}`}\n data-testid=\"video-viewer\"\n >\n <MediaTranscriptPlayer src={objectUrl} title={title} segments={segments} />\n </div>\n )\n}\n"],
5
+ "mappings": "AA2BM;AA3BN,SAAS,WAAW,gBAAgB;AAEpC,SAAS,6BAA6B;AAS/B,SAAS,YAAY,EAAE,MAAM,OAAO,SAAS,GAAqB;AACvE,QAAM,CAAC,WAAW,YAAY,IAAI,SAAiB,EAAE;AAErD,YAAU,MAAM;AACd,UAAM,MAAM,IAAI,gBAAgB,IAAI;AACpC,iBAAa,GAAG;AAChB,WAAO,MAAM,IAAI,gBAAgB,GAAG;AAAA,EACtC,GAAG,CAAC,IAAI,CAAC;AAET,MAAI,CAAC,UAAW,QAAO;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,mEAAmE,UAAU,SAAS,gBAAgB,cAAc;AAAA,MAC/H,eAAY;AAAA,MAEZ,8BAAC,yBAAsB,KAAK,WAAW,OAAc,UAAoB;AAAA;AAAA,EAC3E;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
+ var chunkFK33RWIO_cjs = require('../chunk-FK33RWIO.cjs');
3
4
  var chunkPGD4ZWI3_cjs = require('../chunk-PGD4ZWI3.cjs');
4
5
  var chunkPWGSIM3F_cjs = require('../chunk-PWGSIM3F.cjs');
5
6
  var chunkIU2CJNTB_cjs = require('../chunk-IU2CJNTB.cjs');
6
- var chunkTMPDW7J5_cjs = require('../chunk-TMPDW7J5.cjs');
7
- var chunkFK33RWIO_cjs = require('../chunk-FK33RWIO.cjs');
7
+ var chunkWABJGKVA_cjs = require('../chunk-WABJGKVA.cjs');
8
8
  require('../chunk-T5FZICXN.cjs');
9
9
  var react = require('react');
10
10
  var jsxRuntime = require('react/jsx-runtime');
@@ -271,6 +271,14 @@ function computeSelectionRuns(pages, selectedChunks) {
271
271
  return runs;
272
272
  }
273
273
 
274
+ Object.defineProperty(exports, "PdfViewer", {
275
+ enumerable: true,
276
+ get: function () { return chunkFK33RWIO_cjs.PdfViewer; }
277
+ });
278
+ Object.defineProperty(exports, "pdfViewerChunk", {
279
+ enumerable: true,
280
+ get: function () { return chunkFK33RWIO_cjs.pdfViewerChunk; }
281
+ });
274
282
  Object.defineProperty(exports, "PDF_REGION_MAX_PIXELS", {
275
283
  enumerable: true,
276
284
  get: function () { return chunkPGD4ZWI3_cjs.PDF_REGION_MAX_PIXELS; }
@@ -369,23 +377,19 @@ Object.defineProperty(exports, "installPdfjsPolyfills", {
369
377
  });
370
378
  Object.defineProperty(exports, "AudioViewer", {
371
379
  enumerable: true,
372
- get: function () { return chunkTMPDW7J5_cjs.AudioViewer; }
380
+ get: function () { return chunkWABJGKVA_cjs.AudioViewer; }
373
381
  });
374
382
  Object.defineProperty(exports, "ImageViewer", {
375
383
  enumerable: true,
376
- get: function () { return chunkTMPDW7J5_cjs.ImageViewer; }
384
+ get: function () { return chunkWABJGKVA_cjs.ImageViewer; }
377
385
  });
378
- Object.defineProperty(exports, "VideoViewer", {
386
+ Object.defineProperty(exports, "MediaTranscriptPlayer", {
379
387
  enumerable: true,
380
- get: function () { return chunkTMPDW7J5_cjs.VideoViewer; }
388
+ get: function () { return chunkWABJGKVA_cjs.MediaTranscriptPlayer; }
381
389
  });
382
- Object.defineProperty(exports, "PdfViewer", {
383
- enumerable: true,
384
- get: function () { return chunkFK33RWIO_cjs.PdfViewer; }
385
- });
386
- Object.defineProperty(exports, "pdfViewerChunk", {
390
+ Object.defineProperty(exports, "VideoViewer", {
387
391
  enumerable: true,
388
- get: function () { return chunkFK33RWIO_cjs.pdfViewerChunk; }
392
+ get: function () { return chunkWABJGKVA_cjs.VideoViewer; }
389
393
  });
390
394
  exports.DocxViewer = DocxViewer;
391
395
  exports.XlsxViewer = XlsxViewer;
@@ -1,6 +1,7 @@
1
1
  export { PdfViewer, pdfViewerChunk } from './PdfViewer.js';
2
2
  import * as React from 'react';
3
3
  import { RefObject } from 'react';
4
+ import { TranscriptSegment } from '@arbidocs/sdk/browser';
4
5
  import { P as PdfViewerAssets } from '../PdfViewerImpl.d-DcM6iPY_.js';
5
6
  export { a as PdfViewerProps } from '../PdfViewerImpl.d-DcM6iPY_.js';
6
7
  import '../lazy-chunk.d-B6YDLMKI.js';
@@ -70,16 +71,29 @@ declare function ImageViewer({ blob, alt }: ImageViewerProps): React.JSX.Element
70
71
  interface AudioViewerProps {
71
72
  blob: Blob;
72
73
  title: string;
74
+ segments?: readonly TranscriptSegment[];
73
75
  }
74
76
  /** Renders an audio blob with the browser's native transport controls. */
75
- declare function AudioViewer({ blob, title }: AudioViewerProps): React.JSX.Element | null;
77
+ declare function AudioViewer({ blob, title, segments }: AudioViewerProps): React.JSX.Element | null;
76
78
 
77
79
  interface VideoViewerProps {
78
80
  blob: Blob;
79
81
  title: string;
82
+ segments?: readonly TranscriptSegment[];
80
83
  }
81
84
  /** Renders a video blob with the browser's native transport controls. */
82
- declare function VideoViewer({ blob, title }: VideoViewerProps): React.JSX.Element | null;
85
+ declare function VideoViewer({ blob, title, segments }: VideoViewerProps): React.JSX.Element | null;
86
+
87
+ interface MediaTranscriptPlayerProps {
88
+ src: string;
89
+ title: string;
90
+ kind?: 'video' | 'audio';
91
+ segments?: readonly TranscriptSegment[];
92
+ className?: string;
93
+ mediaClassName?: string;
94
+ }
95
+ /** One native player and a two-way linked transcript. Seeking preserves the user's paused/playing state. */
96
+ declare function MediaTranscriptPlayer({ src, title, kind, segments, className, mediaClassName, }: MediaTranscriptPlayerProps): React.JSX.Element;
83
97
 
84
98
  /**
85
99
  * Zoom for page-stacked viewers (PDF + parsed/HTML).
@@ -329,4 +343,4 @@ declare function renderPdfRegion(request: PdfRegionRequest): Promise<PdfRegionIm
329
343
  /** Free the PDF engine's copy of a file no clip shows any more. */
330
344
  declare function releasePdfRegionSource(file: Blob): void;
331
345
 
332
- export { AudioViewer, type AudioViewerProps, type ChunkRunInfo, DocxViewer, type DocxViewerProps, INITIAL_LAZY_LOAD_BUFFER, ImageViewer, type ImageViewerProps, LAZY_LOAD_BUFFER_AFTER, LAZY_LOAD_BUFFER_BEFORE, MAX_ZOOM, MIN_ZOOM, PAGE_SELECTOR, PDF_REGION_MAX_PIXELS, type PdfRegionImage, type PdfRegionRect, type PdfRegionRequest, PdfViewerAssets, type ProcessedChunk, type ProcessedPage, type RawChunk, type RunChunk, type RunPage, type UseProcessedChunksResult, VideoViewer, type VideoViewerProps, XlsxViewer, type XlsxViewerProps, anchorDelta, anchoredScroll, clampZoom, closePdfRegionImage, computeSelectionRuns, cycleZoom, doubleTapZoom, installPdfjsPolyfills, pinchZoom, regionGeometry, regionMasks, releasePdfRegionSource, renderDpr, renderPdfRegion, usePageIntersectionObserver, usePinchZoom, useProcessedChunks, useScrollAnchor, zoomLabel };
346
+ export { AudioViewer, type AudioViewerProps, type ChunkRunInfo, DocxViewer, type DocxViewerProps, INITIAL_LAZY_LOAD_BUFFER, ImageViewer, type ImageViewerProps, LAZY_LOAD_BUFFER_AFTER, LAZY_LOAD_BUFFER_BEFORE, MAX_ZOOM, MIN_ZOOM, MediaTranscriptPlayer, type MediaTranscriptPlayerProps, PAGE_SELECTOR, PDF_REGION_MAX_PIXELS, type PdfRegionImage, type PdfRegionRect, type PdfRegionRequest, PdfViewerAssets, type ProcessedChunk, type ProcessedPage, type RawChunk, type RunChunk, type RunPage, type UseProcessedChunksResult, VideoViewer, type VideoViewerProps, XlsxViewer, type XlsxViewerProps, anchorDelta, anchoredScroll, clampZoom, closePdfRegionImage, computeSelectionRuns, cycleZoom, doubleTapZoom, installPdfjsPolyfills, pinchZoom, regionGeometry, regionMasks, releasePdfRegionSource, renderDpr, renderPdfRegion, usePageIntersectionObserver, usePinchZoom, useProcessedChunks, useScrollAnchor, zoomLabel };
@@ -5,6 +5,7 @@ import { XlsxViewer } from "./XlsxViewer.js";
5
5
  import { ImageViewer } from "./ImageViewer.js";
6
6
  import { AudioViewer } from "./AudioViewer.js";
7
7
  import { VideoViewer } from "./VideoViewer.js";
8
+ import { MediaTranscriptPlayer } from "./MediaTranscriptPlayer.js";
8
9
  import {
9
10
  MIN_ZOOM,
10
11
  MAX_ZOOM,
@@ -47,6 +48,7 @@ export {
47
48
  LAZY_LOAD_BUFFER_BEFORE,
48
49
  MAX_ZOOM,
49
50
  MIN_ZOOM,
51
+ MediaTranscriptPlayer,
50
52
  PAGE_SELECTOR,
51
53
  PDF_REGION_MAX_PIXELS,
52
54
  PdfViewer,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/viewers/index.ts"],
4
- "sourcesContent": ["/**\n * `@arbidocs/react/viewers` \u2014 native document rendering.\n *\n * A SEPARATE ENTRY POINT on purpose. These viewers depend on heavyweight\n * rendering libraries (`react-pdf` + `pdfjs-dist`, `xlsx`, `docx-preview`) that\n * are declared as OPTIONAL peer dependencies, so an app that never renders a\n * PDF or a spreadsheet neither installs nor bundles them. Importing from the\n * root `@arbidocs/react` entry gets you none of this weight.\n *\n * Pair these with `DocumentReview` (root entry) \u2014 that renders parsed chunks\n * with AI citation highlighting; these render the original file as it looks.\n */\n\nexport { PdfViewer, pdfViewerChunk, type PdfViewerProps, type PdfViewerAssets } from './PdfViewer'\nexport { installPdfjsPolyfills } from './pdfjs-polyfills'\nexport { DocxViewer, type DocxViewerProps } from './DocxViewer'\nexport { XlsxViewer, type XlsxViewerProps } from './XlsxViewer'\nexport { ImageViewer, type ImageViewerProps } from './ImageViewer'\nexport { AudioViewer, type AudioViewerProps } from './AudioViewer'\nexport { VideoViewer, type VideoViewerProps } from './VideoViewer'\n\nexport {\n MIN_ZOOM,\n MAX_ZOOM,\n clampZoom,\n cycleZoom,\n doubleTapZoom,\n zoomLabel,\n pinchZoom,\n anchoredScroll,\n renderDpr,\n usePinchZoom,\n} from './viewer-zoom'\nexport { PAGE_SELECTOR, anchorDelta, useScrollAnchor } from './page-scroll'\nexport { usePageIntersectionObserver } from './usePageIntersectionObserver'\nexport {\n LAZY_LOAD_BUFFER_BEFORE,\n LAZY_LOAD_BUFFER_AFTER,\n INITIAL_LAZY_LOAD_BUFFER,\n} from './pdf-viewer-constants'\n\n// Parsed-text viewer helpers: chunks grouped by page (footnotes inlined) and selected passages\n// collapsed into contiguous runs.\nexport {\n useProcessedChunks,\n type RawChunk,\n type ProcessedChunk,\n type ProcessedPage,\n type UseProcessedChunksResult,\n} from './useProcessedChunks'\nexport {\n computeSelectionRuns,\n type RunChunk,\n type RunPage,\n type ChunkRunInfo,\n} from './selection-runs'\nexport {\n renderPdfRegion,\n releasePdfRegionSource,\n closePdfRegionImage,\n regionGeometry,\n regionMasks,\n PDF_REGION_MAX_PIXELS,\n type PdfRegionImage,\n type PdfRegionRect,\n type PdfRegionRequest,\n} from './pdf-region'\n"],
5
- "mappings": "AAaA,SAAS,WAAW,sBAAiE;AACrF,SAAS,6BAA6B;AACtC,SAAS,kBAAwC;AACjD,SAAS,kBAAwC;AACjD,SAAS,mBAA0C;AACnD,SAAS,mBAA0C;AACnD,SAAS,mBAA0C;AAEnD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe,aAAa,uBAAuB;AAC5D,SAAS,mCAAmC;AAC5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIP;AAAA,EACE;AAAA,OAKK;AACP;AAAA,EACE;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;",
4
+ "sourcesContent": ["/**\n * `@arbidocs/react/viewers` \u2014 native document rendering.\n *\n * A SEPARATE ENTRY POINT on purpose. These viewers depend on heavyweight\n * rendering libraries (`react-pdf` + `pdfjs-dist`, `xlsx`, `docx-preview`) that\n * are declared as OPTIONAL peer dependencies, so an app that never renders a\n * PDF or a spreadsheet neither installs nor bundles them. Importing from the\n * root `@arbidocs/react` entry gets you none of this weight.\n *\n * Pair these with `DocumentReview` (root entry) \u2014 that renders parsed chunks\n * with AI citation highlighting; these render the original file as it looks.\n */\n\nexport { PdfViewer, pdfViewerChunk, type PdfViewerProps, type PdfViewerAssets } from './PdfViewer'\nexport { installPdfjsPolyfills } from './pdfjs-polyfills'\nexport { DocxViewer, type DocxViewerProps } from './DocxViewer'\nexport { XlsxViewer, type XlsxViewerProps } from './XlsxViewer'\nexport { ImageViewer, type ImageViewerProps } from './ImageViewer'\nexport { AudioViewer, type AudioViewerProps } from './AudioViewer'\nexport { VideoViewer, type VideoViewerProps } from './VideoViewer'\nexport { MediaTranscriptPlayer, type MediaTranscriptPlayerProps } from './MediaTranscriptPlayer'\n\nexport {\n MIN_ZOOM,\n MAX_ZOOM,\n clampZoom,\n cycleZoom,\n doubleTapZoom,\n zoomLabel,\n pinchZoom,\n anchoredScroll,\n renderDpr,\n usePinchZoom,\n} from './viewer-zoom'\nexport { PAGE_SELECTOR, anchorDelta, useScrollAnchor } from './page-scroll'\nexport { usePageIntersectionObserver } from './usePageIntersectionObserver'\nexport {\n LAZY_LOAD_BUFFER_BEFORE,\n LAZY_LOAD_BUFFER_AFTER,\n INITIAL_LAZY_LOAD_BUFFER,\n} from './pdf-viewer-constants'\n\n// Parsed-text viewer helpers: chunks grouped by page (footnotes inlined) and selected passages\n// collapsed into contiguous runs.\nexport {\n useProcessedChunks,\n type RawChunk,\n type ProcessedChunk,\n type ProcessedPage,\n type UseProcessedChunksResult,\n} from './useProcessedChunks'\nexport {\n computeSelectionRuns,\n type RunChunk,\n type RunPage,\n type ChunkRunInfo,\n} from './selection-runs'\nexport {\n renderPdfRegion,\n releasePdfRegionSource,\n closePdfRegionImage,\n regionGeometry,\n regionMasks,\n PDF_REGION_MAX_PIXELS,\n type PdfRegionImage,\n type PdfRegionRect,\n type PdfRegionRequest,\n} from './pdf-region'\n"],
5
+ "mappings": "AAaA,SAAS,WAAW,sBAAiE;AACrF,SAAS,6BAA6B;AACtC,SAAS,kBAAwC;AACjD,SAAS,kBAAwC;AACjD,SAAS,mBAA0C;AACnD,SAAS,mBAA0C;AACnD,SAAS,mBAA0C;AACnD,SAAS,6BAA8D;AAEvE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe,aAAa,uBAAuB;AAC5D,SAAS,mCAAmC;AAC5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIP;AAAA,EACE;AAAA,OAKK;AACP;AAAA,EACE;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/react",
3
- "version": "0.5.165",
3
+ "version": "0.5.167",
4
4
  "description": "React hooks and provider for the ARBI SDK",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -117,8 +117,8 @@
117
117
  "build-storybook": "storybook build"
118
118
  },
119
119
  "dependencies": {
120
- "@arbidocs/client": "0.5.165",
121
- "@arbidocs/sdk": "0.5.165",
120
+ "@arbidocs/client": "0.5.167",
121
+ "@arbidocs/sdk": "0.5.167",
122
122
  "@didit-protocol/sdk-web": "0.4.0",
123
123
  "@livekit/components-react": "2.9.24",
124
124
  "@radix-ui/react-avatar": "^1.2.0",