@arbidocs/react 0.5.122 → 0.5.124

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.
@@ -697,7 +697,7 @@ declare function MarkdownCode({ className, children, ...props }: React__default.
697
697
  /**
698
698
  * What survives sanitising inline HTML: GitHub's schema, plus the classes the downstream steps and
699
699
  * renderers read (KaTeX's `math-*` placeholders, `language-*` on code), `<mark>` for search
700
- * highlights, and `data-cid` on `<ins>`/`<del>` (the redline's per-change id, minted from diff
700
+ * highlights, the generated-caption `<aside>` (`remark-ai-caption`), and `data-cid` on `<ins>`/`<del>` (the redline's per-change id, minted from diff
701
701
  * positions, never from content). Scripts, event handlers, inline styles and `javascript:` URLs
702
702
  * stay out.
703
703
  */
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@ export { ACCOUNT_VENDOR, AccountSyncResult, ActivityKind, ActivityResponse, Agen
6
6
  import * as _arbidocs_client from '@arbidocs/client';
7
7
  import { components, WsTaskUpdateMessage, WsPresenceUpdateMessage, WsAuthResultMessage, WebSocketServerMessage, SessionUser, SessionManager, ArbiClient, RecoveryKeyParams, CallPeer } from '@arbidocs/client';
8
8
  export { CallPeer, WebSocketServerMessage, WsBatchCompleteMessage, WsConversationMessagePostedMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
9
- import { ay as IdentityStatus, aw as IdentityPurchase, az as IdentityStep, aA as IdentityVerificationFlow, V as DictateContextValue, al as EntityVocabulary, ae as EntityIconComponent, aj as EntitySize } from './index.d-D2puqWeN.js';
10
- 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, 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, af as EntityLabelForm, ag as EntityNoun, ah as EntityPill, ai as EntityRegistryOverride, ak as EntityType, am as FileTypeIcon, an as FolderTreeNode, ap as HoverCard, aq as HoverCardContent, ar as HoverCardTrigger, as as IconToggle, at as IconToggleProps, au as IdentityBusy, av as IdentityProblem, ax as IdentityState, 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, cZ as normalizeCitationMarkup, 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-D2puqWeN.js';
9
+ import { ay as IdentityStatus, aw as IdentityPurchase, az as IdentityStep, aA as IdentityVerificationFlow, V as DictateContextValue, al as EntityVocabulary, ae as EntityIconComponent, aj as EntitySize } from './index.d-CXjQ1akb.js';
10
+ 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, 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, af as EntityLabelForm, ag as EntityNoun, ah as EntityPill, ai as EntityRegistryOverride, ak as EntityType, am as FileTypeIcon, an as FolderTreeNode, ap as HoverCard, aq as HoverCardContent, ar as HoverCardTrigger, as as IconToggle, at as IconToggleProps, au as IdentityBusy, av as IdentityProblem, ax as IdentityState, 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, cZ as normalizeCitationMarkup, 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-CXjQ1akb.js';
11
11
  import * as _tanstack_react_query from '@tanstack/react-query';
12
12
  import { QueryClient, QueryKey, MutationKey, Mutation } from '@tanstack/react-query';
13
13
  import { M as MeetingChatRef, a as ActiveCall, W as SegmenterConfig, G as IncomingCall, J as JoinChoices, N as MeetingChatTarget, v as ChatResponse, t as ChatMemberKey, b as AgentDmStatus, x as ChatThreadMessage } from './useAudioRecorder.d-B9rlMI_E.js';
@@ -4283,29 +4283,16 @@ declare function applyLiveUpdate(queryClient: QueryClient, message: {
4283
4283
  * Types for a document's parsed content (`GET /v1/document/{id}/parsed-{stage}`).
4284
4284
  *
4285
4285
  * The SDK returns this endpoint untyped (`Record<string, unknown>`); these are
4286
- * the structural types the review viewer relies on. Kept dependency-free so both
4287
- * the `useParsedDocument` hook and `<DocumentReview>` can import them.
4288
- */
4289
- interface ParsedChunkMetadata {
4290
- page_number?: number;
4291
- /** Stable chunk id — the join key for citations (`CitationData.chunk_ids`). */
4292
- chunk_ext_id?: string;
4293
- chunk_pg_idx?: number;
4294
- chunk_doc_idx?: number;
4295
- doc_title?: string;
4296
- heading?: string | null;
4297
- heading_level?: number | null;
4298
- /** JSON mode only: "text" | "header" | "table" | "figure" | … */
4299
- element_type?: string;
4300
- /** JSON mode only: [x_min, y_min, x_max, y_max]. */
4301
- bbox?: [number, number, number, number];
4302
- /**
4303
- * Where the chunk sits on `page_number`: [x0, y0, x1, y1] as fractions of the page, origin
4304
- * top-left, as the page is displayed. [0, 0, 1, 1] when the parser recognized no block on the
4305
- * page to place it by; absent for a document parsed before boxes were recorded.
4306
- */
4307
- page_bbox?: number[] | null;
4308
- }
4286
+ * the structural types the review viewer relies on, its chunks' metadata the schema's.
4287
+ */
4288
+
4289
+ /**
4290
+ * A parsed chunk's metadata: the API's own `ChunkMetadata` (generated, `npm run schema`). The
4291
+ * endpoint returns it untyped, and stages before `final` omit some fields, so every field is
4292
+ * optional here. A figure (`chunk_kind: 'figure'`) holds a generated image caption, not the
4293
+ * document's words: a `> [!ai-caption]` callout, which the markdown renders labelled.
4294
+ */
4295
+ type ParsedChunkMetadata = Partial<components['schemas']['ChunkMetadata']>;
4309
4296
  interface ParsedChunk {
4310
4297
  /** Markdown content of the chunk. */
4311
4298
  content: string;
@@ -4607,6 +4594,7 @@ declare function useMessageDetails(messageId: string | null | undefined, options
4607
4594
  bbox?: number[] | null | undefined;
4608
4595
  element_type?: string | null | undefined;
4609
4596
  heading_level?: number | null | undefined;
4597
+ chunk_kind: "text" | "figure";
4610
4598
  };
4611
4599
  content: string;
4612
4600
  }[];
@@ -4640,6 +4628,7 @@ declare function useMessageDetails(messageId: string | null | undefined, options
4640
4628
  bbox?: number[] | null | undefined;
4641
4629
  element_type?: string | null | undefined;
4642
4630
  heading_level?: number | null | undefined;
4631
+ chunk_kind: "text" | "figure";
4643
4632
  };
4644
4633
  content: string;
4645
4634
  }[];
@@ -5187,6 +5176,8 @@ declare function useConfig(configId: string | null | undefined, options?: {
5187
5176
  Chunker: {
5188
5177
  MAX_CHUNK_TOKENS: number;
5189
5178
  TOKENIZER_NAME: string;
5179
+ FIGURE_MIN_AREA: number;
5180
+ FIGURE_MIN_SIDE: number;
5190
5181
  };
5191
5182
  Embedder: {
5192
5183
  MODEL_NAME: string;