@arbidocs/react 0.3.119 → 0.3.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -7,32 +7,32 @@ import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, c
7
7
  export { WebSocketServerMessage, WsBatchCompleteMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
8
8
  import * as zustand from 'zustand';
9
9
  import * as _tanstack_react_query from '@tanstack/react-query';
10
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
11
- import * as class_variance_authority_types from 'class-variance-authority/types';
12
- import { VariantProps } from 'class-variance-authority';
13
- import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
14
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
15
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
16
- import * as ProgressPrimitive from '@radix-ui/react-progress';
17
- import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
18
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
19
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
20
- import * as SwitchPrimitives from '@radix-ui/react-switch';
21
- import * as TabsPrimitive from '@radix-ui/react-tabs';
22
- import * as SliderPrimitive from '@radix-ui/react-slider';
23
- import * as TogglePrimitive from '@radix-ui/react-toggle';
24
- import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
25
- import * as DialogPrimitive from '@radix-ui/react-dialog';
26
- import { DialogProps } from '@radix-ui/react-dialog';
27
- import * as PopoverPrimitive from '@radix-ui/react-popover';
28
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
29
- import * as SelectPrimitive from '@radix-ui/react-select';
30
- import { Components } from 'react-markdown';
10
+ export { AiMarkdown, Avatar, AvatarFallback, AvatarImage, Badge, BadgeProps, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardProps, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, Input, Label, MarkdownRenderer, MarkdownRendererProps, MarkdownStreamingContext, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cardVariants, cn, markdownBaseComponents, splitMarkdownBlocks, toggleVariants } from './ui/index.js';
31
11
  import * as lucide_react from 'lucide-react';
32
12
  import { LucideIcon, StickyNote } from 'lucide-react';
13
+ import { Components } from 'react-markdown';
33
14
  import { ToasterProps } from 'sonner';
34
15
  export { ToasterProps, toast } from 'sonner';
35
- import { ClassValue } from 'clsx';
16
+ import 'clsx';
17
+ import '@radix-ui/react-avatar';
18
+ import 'class-variance-authority/types';
19
+ import 'class-variance-authority';
20
+ import '@radix-ui/react-checkbox';
21
+ import '@radix-ui/react-collapsible';
22
+ import '@radix-ui/react-dialog';
23
+ import '@radix-ui/react-dropdown-menu';
24
+ import '@radix-ui/react-hover-card';
25
+ import '@radix-ui/react-popover';
26
+ import '@radix-ui/react-progress';
27
+ import '@radix-ui/react-radio-group';
28
+ import '@radix-ui/react-scroll-area';
29
+ import '@radix-ui/react-select';
30
+ import '@radix-ui/react-separator';
31
+ import '@radix-ui/react-slider';
32
+ import '@radix-ui/react-switch';
33
+ import '@radix-ui/react-tabs';
34
+ import '@radix-ui/react-toggle';
35
+ import '@radix-ui/react-toggle-group';
36
36
 
37
37
  interface ArbiProviderProps extends ArbiOptions {
38
38
  children: ReactNode;
@@ -812,296 +812,6 @@ declare function useWorkspaceChronology(workspaceId: string | undefined, options
812
812
  doc_count?: number | null;
813
813
  }>, Error>;
814
814
 
815
- /**
816
- * Minimal, dependency-free tooltip — a drop-in API replacement for a Radix
817
- * wrapper (same exports/props: Tooltip, TooltipTrigger, TooltipContent,
818
- * TooltipProvider). Promoted verbatim from the ARBI app.
819
- *
820
- * It attaches the trigger via a STABLE `useCallback` ref (never setStates,
821
- * identity never changes), so React 19 never detach/attach-thrashes.
822
- */
823
- type Side = 'top' | 'bottom' | 'left' | 'right';
824
- interface TooltipProviderProps {
825
- children?: React$1.ReactNode;
826
- delayDuration?: number;
827
- skipDelayDuration?: number;
828
- disableHoverableContent?: boolean;
829
- }
830
- declare const TooltipProvider: ({ children }: TooltipProviderProps) => React$1.JSX.Element;
831
- interface TooltipProps {
832
- children: React$1.ReactNode;
833
- delayDuration?: number;
834
- }
835
- declare function Tooltip({ children, delayDuration }: TooltipProps): React$1.JSX.Element;
836
- interface TooltipTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
837
- asChild?: boolean;
838
- }
839
- declare function TooltipTrigger({ asChild, children, ...props }: TooltipTriggerProps): React$1.JSX.Element;
840
- interface TooltipContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
841
- side?: Side;
842
- sideOffset?: number;
843
- }
844
- declare const TooltipContent: React$1.ForwardRefExoticComponent<TooltipContentProps & React$1.RefAttributes<HTMLDivElement>>;
845
-
846
- declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
847
- declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
848
- declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
849
-
850
- declare const badgeVariants: (props?: ({
851
- variant?: "default" | "outline" | "accent" | "secondary" | "destructive" | null | undefined;
852
- } & class_variance_authority_types.ClassProp) | undefined) => string;
853
- interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
854
- }
855
- declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
856
-
857
- declare const buttonVariants: (props?: ({
858
- variant?: "link" | "default" | "outline" | "accent" | "secondary" | "destructive" | "ghost" | null | undefined;
859
- size?: "default" | "icon" | "sm" | "lg" | null | undefined;
860
- } & class_variance_authority_types.ClassProp) | undefined) => string;
861
- interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
862
- asChild?: boolean;
863
- }
864
- declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
865
-
866
- declare const HoverCard: React$1.FC<HoverCardPrimitive.HoverCardProps>;
867
- declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React$1.RefAttributes<HTMLAnchorElement>>;
868
- declare const HoverCardContent: React$1.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
869
-
870
- /**
871
- * Clean-ARBI design contract rule 3: borderless by default; shadows
872
- * only when an element needs to read as elevated/floating.
873
- *
874
- * - `flat` (default): just a rounded surface, no border, no shadow.
875
- * Separation comes from background + spacing.
876
- * - `outline`: adds a single border for surfaces that need a visible
877
- * edge (e.g. selectable list cards, embedded panels).
878
- * - `elevated`: border + a subtle shadow for cards that should lift.
879
- *
880
- * Self-styled consumers that pass their own border/shadow classes keep
881
- * working unchanged on the default `flat` base.
882
- */
883
- declare const cardVariants: (props?: ({
884
- variant?: "flat" | "outline" | "elevated" | null | undefined;
885
- } & class_variance_authority_types.ClassProp) | undefined) => string;
886
- interface CardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
887
- }
888
- declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
889
- declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
890
- declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
891
- declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
892
- declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
893
- declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
894
-
895
- declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
896
-
897
- interface LabelProps extends React$1.LabelHTMLAttributes<HTMLLabelElement> {
898
- className?: string;
899
- }
900
- declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
901
-
902
- declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
903
-
904
- declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
905
-
906
- declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
907
- declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
908
- declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>>;
909
-
910
- declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
911
-
912
- declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
913
- declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
914
-
915
- declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
916
- declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
917
-
918
- declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
919
-
920
- declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
921
-
922
- declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
923
- declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
924
- declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
925
- declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
926
-
927
- declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
928
- declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
929
- declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
930
- declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
931
- declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
932
- interface TableHeadProps extends React$1.ThHTMLAttributes<HTMLTableCellElement> {
933
- className?: string;
934
- }
935
- declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
936
- interface TableCellProps extends React$1.TdHTMLAttributes<HTMLTableCellElement> {
937
- className?: string;
938
- }
939
- declare const TableCell: React$1.ForwardRefExoticComponent<TableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
940
- declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
941
-
942
- interface SliderProps extends React$1.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
943
- rangeClassName?: string;
944
- }
945
- declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLSpanElement>>;
946
-
947
- declare const toggleVariants: (props?: ({
948
- variant?: "default" | "outline" | null | undefined;
949
- size?: "default" | "sm" | "lg" | null | undefined;
950
- } & class_variance_authority_types.ClassProp) | undefined) => string;
951
- declare const Toggle: React$1.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
952
- variant?: "default" | "outline" | null | undefined;
953
- size?: "default" | "sm" | "lg" | null | undefined;
954
- } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
955
-
956
- declare const ToggleGroup: React$1.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
957
- variant?: "default" | "outline" | null | undefined;
958
- size?: "default" | "sm" | "lg" | null | undefined;
959
- } & class_variance_authority_types.ClassProp) | undefined) => string>) & React$1.RefAttributes<HTMLDivElement>>;
960
- declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
961
- variant?: "default" | "outline" | null | undefined;
962
- size?: "default" | "sm" | "lg" | null | undefined;
963
- } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
964
-
965
- declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
966
- declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
967
- declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
968
- declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
969
- declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
970
- declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
971
- hideCloseButton?: boolean;
972
- } & React$1.RefAttributes<HTMLDivElement>>;
973
- declare const DialogHeader: {
974
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
975
- displayName: string;
976
- };
977
- declare const DialogFooter: {
978
- ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
979
- displayName: string;
980
- };
981
- declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
982
- declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
983
-
984
- declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
985
- declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
986
- declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$1.RefAttributes<HTMLDivElement>>;
987
- declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
988
- container?: HTMLElement | null;
989
- } & React$1.RefAttributes<HTMLDivElement>>;
990
-
991
- declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
992
- declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
993
- declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
994
- declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
995
- declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
996
- declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
997
- declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
998
- inset?: boolean;
999
- } & React$1.RefAttributes<HTMLDivElement>>;
1000
- declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1001
- declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1002
- declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
1003
- inset?: boolean;
1004
- } & React$1.RefAttributes<HTMLDivElement>>;
1005
- declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1006
- declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1007
- declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
1008
- inset?: boolean;
1009
- } & React$1.RefAttributes<HTMLDivElement>>;
1010
- declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1011
- declare const DropdownMenuShortcut: {
1012
- ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
1013
- displayName: string;
1014
- };
1015
-
1016
- declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
1017
- declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
1018
- declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
1019
- declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1020
- declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1021
- declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1022
- declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1023
- declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1024
- declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1025
- declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1026
-
1027
- declare const Command: React$1.ForwardRefExoticComponent<Omit<{
1028
- children?: React$1.ReactNode;
1029
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1030
- ref?: React$1.Ref<HTMLDivElement>;
1031
- } & {
1032
- asChild?: boolean;
1033
- }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1034
- label?: string;
1035
- shouldFilter?: boolean;
1036
- filter?: (value: string, search: string, keywords?: string[]) => number;
1037
- defaultValue?: string;
1038
- value?: string;
1039
- onValueChange?: (value: string) => void;
1040
- loop?: boolean;
1041
- disablePointerSelection?: boolean;
1042
- vimBindings?: boolean;
1043
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1044
- declare const CommandDialog: ({ children, ...props }: DialogProps) => React$1.JSX.Element;
1045
- declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
1046
- ref?: React$1.Ref<HTMLInputElement>;
1047
- } & {
1048
- asChild?: boolean;
1049
- }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
1050
- value?: string;
1051
- onValueChange?: (search: string) => void;
1052
- } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1053
- declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
1054
- children?: React$1.ReactNode;
1055
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1056
- ref?: React$1.Ref<HTMLDivElement>;
1057
- } & {
1058
- asChild?: boolean;
1059
- }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1060
- label?: string;
1061
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1062
- declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
1063
- children?: React$1.ReactNode;
1064
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1065
- ref?: React$1.Ref<HTMLDivElement>;
1066
- } & {
1067
- asChild?: boolean;
1068
- }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1069
- declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
1070
- children?: React$1.ReactNode;
1071
- } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1072
- ref?: React$1.Ref<HTMLDivElement>;
1073
- } & {
1074
- asChild?: boolean;
1075
- }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
1076
- heading?: React$1.ReactNode;
1077
- value?: string;
1078
- forceMount?: boolean;
1079
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1080
- declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1081
- ref?: React$1.Ref<HTMLDivElement>;
1082
- } & {
1083
- asChild?: boolean;
1084
- }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1085
- alwaysRender?: boolean;
1086
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1087
- declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
1088
- children?: React$1.ReactNode;
1089
- } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
1090
- ref?: React$1.Ref<HTMLDivElement>;
1091
- } & {
1092
- asChild?: boolean;
1093
- }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
1094
- disabled?: boolean;
1095
- onSelect?: (value: string) => void;
1096
- value?: string;
1097
- keywords?: string[];
1098
- forceMount?: boolean;
1099
- } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1100
- declare const CommandShortcut: {
1101
- ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
1102
- displayName: string;
1103
- };
1104
-
1105
815
  /**
1106
816
  * The AI engine — domain-agnostic hooks for building an AI-native app on ARBI.
1107
817
  *
@@ -1211,13 +921,28 @@ declare function useAiTask(): {
1211
921
  isDone: boolean;
1212
922
  };
1213
923
  interface SearchChunk {
924
+ /**
925
+ * Stable chunk id — the join key that ties a search hit to its rendered
926
+ * location in the document viewer (`<div data-chunk-id={chunkExtId}>`). This
927
+ * is what lets a result open the split-screen viewer scrolled to, and
928
+ * highlighting, the exact matched passage. May be absent for legacy chunks.
929
+ */
930
+ chunkExtId?: string | null;
1214
931
  docId?: string | null;
1215
932
  docTitle?: string | null;
1216
933
  page?: number | null;
1217
934
  score?: number | null;
1218
935
  content: string;
1219
936
  }
1220
- /** Search a set of documents and return the top matching passages. */
937
+ /**
938
+ * Search a set of documents and return the top matching passages.
939
+ *
940
+ * Retrieval is a triggered action, so it's modelled as a React Query
941
+ * `useMutation` (like {@link useAiTask}) rather than an auto-running query. The
942
+ * SDK's `assistant.retrieve` (POST `/v1/assistant/retrieve` with a
943
+ * `retrieval_chunk` tool) is the only network call — the hook maps its response
944
+ * into ranked {@link SearchChunk}s carrying the `chunkExtId` join key.
945
+ */
1221
946
  declare function useSemanticSearch(docIds: string[]): {
1222
947
  query: string;
1223
948
  results: SearchChunk[];
@@ -1242,35 +967,6 @@ declare function textToArtifact(title: string, content: string, opts?: {
1242
967
  id?: string;
1243
968
  }): ArtifactEvent;
1244
969
 
1245
- /**
1246
- * Renders agent output (markdown — headings, lists, GFM tables) in one house
1247
- * style so every AI result across the app looks the same. Shares the presentational
1248
- * component map with the monolith's MarkdownRenderer via `markdownBaseComponents`;
1249
- * overrides only the AI-branded / behaviourally-distinct elements: accent links,
1250
- * redline marks (`<del>`/`<ins>`/`<mark>` as tracked changes), inline code, and
1251
- * self-contained bordered tables (the shared base leaves tables to app CSS, which
1252
- * a standalone AI surface may not provide). Token-neutral: shadcn semantic tokens
1253
- * plus the kit's `ai-accent` colour.
1254
- */
1255
- declare function AiMarkdown({ children, className }: {
1256
- children: string;
1257
- className?: string;
1258
- }): React$1.JSX.Element;
1259
-
1260
- /**
1261
- * Brand-neutral presentational component overrides for react-markdown, shared by
1262
- * every markdown surface in the workspace (the monolith's `MarkdownRenderer` and
1263
- * the AI kit's `AiMarkdown`). One house style for headings, lists, tables and the
1264
- * inline text elements — token-based, so it themes per app.
1265
- *
1266
- * Deliberately excluded (kept per-consumer): `a` (external-link confirm vs
1267
- * plain), `code`/`pre` (rich CodeBlock + Mermaid vs inline), `span` (doc-entity
1268
- * pills), and `del`/`ins`/`mark` (general emphasis vs redline tracked-changes) —
1269
- * these differ by intent or carry heavy/coupled behaviour, so each renderer owns
1270
- * them and spreads this base underneath.
1271
- */
1272
- declare const markdownBaseComponents: Partial<Components>;
1273
-
1274
970
  /**
1275
971
  * Renders the live state of a single agentic task: streaming tokens, a "thinking"
1276
972
  * indicator with the running step count, errors, and a grounded/cited footer with
@@ -1375,6 +1071,49 @@ declare function DocSearch({ docIds, onOpenDoc, placeholder, className, }: {
1375
1071
  className?: string;
1376
1072
  }): React$1.JSX.Element;
1377
1073
 
1074
+ /**
1075
+ * SemanticSearch — a drop-in, Google-style semantic search over a document set
1076
+ * with a split-screen document viewer.
1077
+ *
1078
+ * Left: a query box + ranked result rows (document title, matched snippet with
1079
+ * the query context, a relevance affordance and page meta). Right: the selected
1080
+ * document rendered inline, scrolled to and highlighting the matched passage.
1081
+ *
1082
+ * Architecture mirrors the ARBI-frontend monolith's retrieve → navigate →
1083
+ * highlight flow:
1084
+ * - `useSemanticSearch` calls `POST /v1/assistant/retrieve` (via the SDK's
1085
+ * `assistant.retrieve`) and returns ranked chunks, each carrying a stable
1086
+ * `chunkExtId`.
1087
+ * - Selecting a result passes that `chunkExtId` to <DocumentReview>, whose
1088
+ * body renders every parsed chunk as an addressable `data-chunk-id` node;
1089
+ * it scrolls to and marks the matching node — the shared key that ties a
1090
+ * search hit to its location in the rendered document.
1091
+ *
1092
+ * Data + hooks stay in @arbidocs/react. Theming is semantic tokens only
1093
+ * (shadcn tokens + the AI-accent contract) — no firm look is hardcoded.
1094
+ */
1095
+ interface SemanticSearchProps {
1096
+ /**
1097
+ * The document corpus to search. The caller resolves this from the active
1098
+ * workspace (e.g. via `useWorkspaceDocs`), keeping the block agnostic about
1099
+ * how workspace selection is managed — retrieval runs against the SDK's open
1100
+ * workspace.
1101
+ */
1102
+ docIds: string[];
1103
+ /**
1104
+ * Active workspace id — forwarded to the viewer so AI-finding tag ids resolve
1105
+ * to human names, and used to enrich each hit's document title/findings.
1106
+ */
1107
+ workspaceId?: string;
1108
+ /** Which search mode to run. Default `hybrid` (keyword + semantic). */
1109
+ searchMode?: 'hybrid' | 'semantic' | 'keyword';
1110
+ /** Placeholder for the query box. */
1111
+ placeholder?: string;
1112
+ className?: string;
1113
+ 'data-testid'?: string;
1114
+ }
1115
+ declare function SemanticSearch({ docIds, workspaceId, searchMode, placeholder, className, 'data-testid': testId, }: SemanticSearchProps): React$1.JSX.Element;
1116
+
1378
1117
  /**
1379
1118
  * Ask questions grounded in a SINGLE document (docId scoped to one file), plus a
1380
1119
  * one-click "suggest tags" action. Drop it in a document viewer.
@@ -1681,6 +1420,8 @@ interface EntityPillProps {
1681
1420
  className?: string;
1682
1421
  /** Max width for label truncation */
1683
1422
  labelMaxWidth?: string;
1423
+ /** Extra classes on the label text (e.g. a heavier weight on a card face). */
1424
+ labelClassName?: string;
1684
1425
  /** When true, the pill fills its container width (`flex w-full`) and the main
1685
1426
  * area flexes + truncates so the trailing control (⋯ menu) pins to the right
1686
1427
  * edge — used by the documents table's Document column. Default: shrink-to-fit. */
@@ -1739,6 +1480,8 @@ interface DocumentEntityProps {
1739
1480
  size?: 'sm' | 'base';
1740
1481
  /** Override default label max width */
1741
1482
  labelMaxWidth?: string;
1483
+ /** Extra classes on the label text (e.g. a heavier weight on a card face). */
1484
+ labelClassName?: string;
1742
1485
  /** Click handler for the whole pill */
1743
1486
  onClick?: (e: React__default.MouseEvent) => void;
1744
1487
  /** Click handler for the icon only */
@@ -1760,7 +1503,7 @@ interface DocumentEntityProps {
1760
1503
  tooltipContent?: React__default.ReactNode;
1761
1504
  className?: string;
1762
1505
  }
1763
- declare function DocumentEntity({ doc, icon, size, labelMaxWidth, onClick, onIconClick, showHoverEye, viewing, iconBadge, actions, tooltipContent, className, fullWidth, }: DocumentEntityProps): React__default.JSX.Element;
1506
+ declare function DocumentEntity({ doc, icon, size, labelMaxWidth, labelClassName, onClick, onIconClick, showHoverEye, viewing, iconBadge, actions, tooltipContent, className, fullWidth, }: DocumentEntityProps): React__default.JSX.Element;
1764
1507
 
1765
1508
  /**
1766
1509
  * TagEntity Component
@@ -2483,12 +2226,17 @@ interface DmClassNames {
2483
2226
  interface DmConversation {
2484
2227
  /** The other party in the thread. */
2485
2228
  peer: DmUser;
2486
- /** Messages in ascending time order. */
2229
+ /** Messages in ascending time order. May be empty for a contact not yet messaged. */
2487
2230
  messages: DmMessage[];
2488
- /** The most recent message (convenience). */
2489
- lastMessage: DmMessage;
2231
+ /** The most recent message, or `undefined` when the thread has no messages yet. */
2232
+ lastMessage?: DmMessage;
2490
2233
  /** Count of messages addressed to me that are still unread. */
2491
2234
  unreadCount: number;
2235
+ /**
2236
+ * True when this row comes from the user's contact list rather than an
2237
+ * existing thread — i.e. a colleague ready to message but with no history yet.
2238
+ */
2239
+ isContactOnly?: boolean;
2492
2240
  }
2493
2241
 
2494
2242
  interface DirectMessagesProps {
@@ -2530,11 +2278,13 @@ interface DmComposerProps {
2530
2278
  /** Placeholder, e.g. "Message Eleanor…". */
2531
2279
  placeholder?: string;
2532
2280
  disabled?: boolean;
2533
- /** Called with the trimmed text when the user sends. */
2534
- onSend: (text: string) => void;
2281
+ /** Called with the trimmed text when the user sends. May reject if the send fails. */
2282
+ onSend: (text: string) => void | Promise<void>;
2283
+ /** Shown under the box when the last send failed. */
2284
+ error?: string | null;
2535
2285
  classNames?: Pick<DmClassNames, 'sendButton'>;
2536
2286
  }
2537
- declare function DmComposer({ placeholder, disabled, onSend, classNames }: DmComposerProps): React$1.JSX.Element;
2287
+ declare function DmComposer({ placeholder, disabled, onSend, error, classNames }: DmComposerProps): React$1.JSX.Element;
2538
2288
 
2539
2289
  interface DmAvatarProps {
2540
2290
  user: DmUser;
@@ -2568,6 +2318,8 @@ interface UseDirectMessagesResult {
2568
2318
  /** Send by email / external_id, resolving the recipient's key internally. */
2569
2319
  sendMessageTo: (recipient: string, text: string) => Promise<unknown>;
2570
2320
  isSending: boolean;
2321
+ /** The last send failure, or null. A failed send must never pass silently. */
2322
+ sendError: Error | null;
2571
2323
  /** Mark the given message ids as read. */
2572
2324
  markRead: (messageIds: string[]) => Promise<unknown>;
2573
2325
  }
@@ -2796,14 +2548,74 @@ interface DocumentTableProps {
2796
2548
  }
2797
2549
  declare function DocumentTable({ workspaceId, documents, onOpenDocument, selectedIds, onSelectionChange, height, className, }: DocumentTableProps): React__default.JSX.Element;
2798
2550
 
2551
+ /**
2552
+ * DocumentCard — the canonical document thumbnail tile.
2553
+ *
2554
+ * One tile, shared by every app: a full-bleed first-page thumbnail (falling back
2555
+ * to the file-type icon) with the selection checkbox, the actions menu, the
2556
+ * processing state and the document's name pill layered on top of it, rather
2557
+ * than a thumbnail box with a separate meta strip beneath.
2558
+ *
2559
+ * Presentational only — it takes a thumbnail, a status and callbacks, and knows
2560
+ * nothing about how documents are fetched. `DocumentGallery` binds it to data.
2561
+ */
2562
+
2563
+ interface DocumentCardProps {
2564
+ /** The document — anything with a file name and optional metadata title. */
2565
+ doc: DocumentLike;
2566
+ /** First-page thumbnail (data URI or URL). Falls back to the file-type icon. */
2567
+ thumbnailUrl?: string | null;
2568
+ /** Processing status, e.g. `parsing` (overlay) or `completed` (corner marker). */
2569
+ status?: string | null;
2570
+ /** Renders the selection checkbox. Omit `onToggleSelect` to hide it entirely. */
2571
+ selected?: boolean;
2572
+ onToggleSelect?: () => void;
2573
+ /** Pins the "eye" on the name pill — this is the document open in the viewer. */
2574
+ viewing?: boolean;
2575
+ onOpen?: () => void;
2576
+ /** Actions menu, pinned to the tile's top-right corner. */
2577
+ actions?: React__default.ReactNode;
2578
+ /** Swaps the name pill for an inline rename field. */
2579
+ renaming?: boolean;
2580
+ onCommitRename?: (name: string) => void;
2581
+ onCancelRename?: () => void;
2582
+ /** Replaces the pill's default hover tooltip (e.g. an AI summary + labels). */
2583
+ tooltipContent?: React__default.ReactNode;
2584
+ /** Bottom-left marker slot (e.g. an "available offline" glyph). */
2585
+ marker?: React__default.ReactNode;
2586
+ testId?: string;
2587
+ className?: string;
2588
+ }
2589
+ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSelect, viewing, onOpen, actions, renaming, onCommitRename, onCancelRename, tooltipContent, marker, testId, className, }: DocumentCardProps): React__default.JSX.Element;
2590
+
2591
+ /**
2592
+ * The ⋯ actions menu that sits in a document tile's top-right corner.
2593
+ *
2594
+ * Every item maps to a real SDK operation, so any app that renders a document
2595
+ * grid gets the same verbs without re-implementing them. `onOpen` and `onRename`
2596
+ * are delegated upward (opening and inline renaming are the grid's concern);
2597
+ * download and delete are performed here.
2598
+ */
2599
+
2600
+ interface DocumentCardMenuProps {
2601
+ docId: string;
2602
+ /** Used as the download filename. */
2603
+ fileName: string;
2604
+ onOpen?: () => void;
2605
+ onRename?: () => void;
2606
+ /** Omit to hide the delete item (e.g. the user lacks permission). */
2607
+ canDelete?: boolean;
2608
+ testId?: string;
2609
+ }
2610
+ declare function DocumentCardMenu({ docId, fileName, onOpen, onRename, canDelete, testId, }: DocumentCardMenuProps): React__default.JSX.Element;
2611
+
2799
2612
  /**
2800
2613
  * DocumentGallery — a reusable thumbnail-grid view of a workspace's documents.
2801
2614
  *
2802
2615
  * REUSE-FIRST: a sibling of `DocumentTable` sharing the exact same data sources
2803
- * (`useDocuments` + `useTags` + the SDK-owned `useArbiUiStore` selection state)
2804
- * and the promoted `DocumentEntity`/`TagEntity` pills. The only extra dependency
2805
- * is `useThumbnails`, which batch-loads real first-page previews; documents with
2806
- * no thumbnail fall back to a file-type icon.
2616
+ * (`useDocuments` + `useTags` + the SDK-owned `useArbiUiStore` selection state).
2617
+ * The only extra dependency is `useThumbnails`, which batch-loads real first-page
2618
+ * previews. Each tile is a `DocumentCard`; this component only binds it to data.
2807
2619
  */
2808
2620
 
2809
2621
  type DocResponse$1 = components['schemas']['DocResponse'];
@@ -2818,7 +2630,7 @@ interface DocumentGalleryProps {
2818
2630
  selectedIds?: string[];
2819
2631
  /** Called with the new selection (external ids). Falls back to the SDK ui store. */
2820
2632
  onSelectionChange?: (ids: string[]) => void;
2821
- /** Min tile width in px — the grid auto-fills as many columns as fit. Default 180. */
2633
+ /** Min tile width in px — the grid auto-fills as many columns as fit. Default 148. */
2822
2634
  minTileWidth?: number;
2823
2635
  className?: string;
2824
2636
  }
@@ -2833,7 +2645,7 @@ declare function DocumentGallery({ workspaceId, documents, onOpenDocument, selec
2833
2645
  *
2834
2646
  * REUSE-FIRST: reads purely from SDK data — `useParsedDocument` for the body,
2835
2647
  * the passed-in `doc.doctags[].citations` for findings, `useTags` for label
2836
- * names, and `AiMarkdown` for rendering. No app store / react-pdf / Zustand
2648
+ * names, and `MarkdownRenderer` for rendering. No app store / react-pdf / Zustand
2837
2649
  * coupling; citation-jump is plain `scrollIntoView` on `data-chunk-id`.
2838
2650
  */
2839
2651
 
@@ -2848,11 +2660,19 @@ interface DocumentReviewProps {
2848
2660
  workspaceId?: string;
2849
2661
  /** Parse stage to render. Default `final`. */
2850
2662
  stage?: string;
2663
+ /**
2664
+ * A chunk to scroll to and persistently highlight — the join key is the
2665
+ * parsed chunk's `chunk_ext_id`. This is how a semantic-search hit drives the
2666
+ * viewer: passing the matched passage's `chunkExtId` scrolls the body to it
2667
+ * and marks it, mirroring the monolith's `viewingPassageId` behaviour.
2668
+ * Independent of AI findings (which highlight via `doctags[].citations`).
2669
+ */
2670
+ activeChunkId?: string | null;
2851
2671
  /** When provided, a close button is shown in the header. */
2852
2672
  onClose?: () => void;
2853
2673
  className?: string;
2854
2674
  }
2855
- declare function DocumentReview({ docId, doc, workspaceId, stage, onClose, className, }: DocumentReviewProps): React__default.JSX.Element;
2675
+ declare function DocumentReview({ docId, doc, workspaceId, stage, activeChunkId, onClose, className, }: DocumentReviewProps): React__default.JSX.Element;
2856
2676
 
2857
2677
  /**
2858
2678
  * SDK-owned UI store for cross-block coordination.
@@ -2871,12 +2691,4 @@ interface ArbiUiState {
2871
2691
  }
2872
2692
  declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
2873
2693
 
2874
- /**
2875
- * Core utility: `cn()` — merge class names with Tailwind-aware conflict
2876
- * resolution (clsx + tailwind-merge). Copied faithfully from the ARBI app so the
2877
- * promoted "lego" components style identically in a consumer app.
2878
- */
2879
-
2880
- declare function cn(...inputs: ClassValue[]): string;
2881
-
2882
- export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, AiMarkdown, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, ChatBubble, type ChatBubbleProps, Checkbox, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, CommandSeparator, CommandShortcut, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, Input, Label, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PresenceDisplayStatus, Progress, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RadioGroup, RadioGroupItem, type Rag, RagDot, type RenderMarkdown, ScrollArea, ScrollBar, type SearchChunk, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, type StatusBadgeComponent, type StatusBadgeProps, StatusPill, type StatusPillProps, type StatusVariant, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, type TagEntityProps, type TagLike, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToolResponses, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, arbiQueryKeys, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, configureRagLabels, configureStatusRegistry, cropImage, describeActivity, formatRelativeTime, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, markdownBaseComponents, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, toggleVariants, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useHealth, useMemories, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceChronology, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
2694
+ export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, BASE_COLORS, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCard, DocumentCardMenu, type DocumentCardMenuProps, type DocumentCardProps, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, type PresenceDisplayStatus, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, type Rag, RagDot, type RenderMarkdown, type SearchChunk, SemanticSearch, type SemanticSearchProps, type StatusBadgeComponent, type StatusBadgeProps, StatusPill, type StatusPillProps, type StatusVariant, TAG_TYPE_ICONS, TAG_TYPE_LABELS, TagEntity, type TagEntityProps, type TagLike, Toaster, type ToolResponses, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, arbiQueryKeys, configureEntityRegistry, configureRagLabels, configureStatusRegistry, cropImage, describeActivity, formatRelativeTime, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useHealth, useMemories, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceChronology, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };