@arbidocs/react 0.3.109 → 0.3.110

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
@@ -2,15 +2,33 @@ import * as React from 'react';
2
2
  import React__default, { ReactNode } from 'react';
3
3
  import { ArbiOptions, Arbi, SSEStreamResult, SSEStreamStartData, AgentStepEvent, ArtifactEvent } from '@arbidocs/sdk/browser';
4
4
  export { AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, CreateMemoryRequest, CreateTaskRequest, MemoryResponse, MemorySearchRequest, MemorySearchResponse, MessageMetadataPayload, OutputTokensDetails, QueryOptions, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, TaskResponse, UpdateTaskRequest, UserInputRequestEvent, UserMessageEvent } from '@arbidocs/sdk/browser';
5
- import * as _tanstack_react_query from '@tanstack/react-query';
6
5
  import * as _arbidocs_client from '@arbidocs/client';
7
- import { components } from '@arbidocs/client';
6
+ import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components } from '@arbidocs/client';
7
+ export { WebSocketServerMessage, WsBatchCompleteMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
8
+ import * as zustand from 'zustand';
9
+ import * as _tanstack_react_query from '@tanstack/react-query';
8
10
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
9
11
  import * as class_variance_authority_types from 'class-variance-authority/types';
10
12
  import { VariantProps } from 'class-variance-authority';
11
13
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
12
- import { LucideIcon } from 'lucide-react';
13
- import * as zustand from 'zustand';
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';
31
+ import { LucideIcon, StickyNote } from 'lucide-react';
14
32
  import { ClassValue } from 'clsx';
15
33
 
16
34
  interface ArbiProviderProps extends ArbiOptions {
@@ -162,12 +180,130 @@ declare function ArbiChatPanel({ workspaceId, theme: themeOverrides, labels: lab
162
180
  */
163
181
  declare function ArbiChat({ url, workspaceId, theme: themeOverrides, labels: labelOverrides, width, height, }: ArbiChatProps): React.JSX.Element;
164
182
 
183
+ /** Animated typing indicator (three bouncing dots) */
184
+ declare const TypingIndicator: React.NamedExoticComponent<object>;
185
+ interface ChatBubbleProps {
186
+ message: string;
187
+ timestamp: string;
188
+ isSent: boolean;
189
+ deleted?: boolean;
190
+ read?: boolean;
191
+ onDelete?: () => void;
192
+ /** Last bubble in a same-sender run; shows the timestamp and read receipt. */
193
+ isLastOfRun?: boolean;
194
+ /**
195
+ * Render the message body. Injected by the host so the light package doesn't
196
+ * depend on the app's markdown renderer. Defaults to plain text.
197
+ */
198
+ renderMessage?: (message: string) => ReactNode;
199
+ /**
200
+ * Format the timestamp shown on the last bubble of a run. Defaults to the
201
+ * raw string.
202
+ */
203
+ formatTimestamp?: (timestamp: string) => string;
204
+ }
205
+ declare const ChatBubble: React.NamedExoticComponent<ChatBubbleProps>;
206
+
165
207
  /**
166
208
  * Hook to access the Arbi instance from the nearest ArbiProvider.
167
209
  */
168
210
 
169
211
  declare function useArbi(): Arbi;
170
212
 
213
+ interface ArbiWebSocketProviderProps {
214
+ /**
215
+ * Open the socket only when the app is authenticated against a live backend.
216
+ * Defaults to `true`; pass the connection status so demo/logged-out sessions
217
+ * don't try to connect.
218
+ */
219
+ enabled?: boolean;
220
+ children: ReactNode;
221
+ }
222
+ declare function ArbiWebSocketProvider({ enabled, children }: ArbiWebSocketProviderProps): React.JSX.Element;
223
+
224
+ type ArbiWsSubscriber = (msg: WebSocketServerMessage) => void;
225
+ interface ArbiWsContextValue {
226
+ subscribe: (fn: ArbiWsSubscriber) => () => void;
227
+ }
228
+ declare function useArbiWsContext(): ArbiWsContextValue;
229
+
230
+ type ArbiWsStatus = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';
231
+ interface ArbiWsState {
232
+ /** Live connection status of the shared socket. */
233
+ status: ArbiWsStatus;
234
+ /** Latest processing status per document id (the `task_update` stream). */
235
+ tasks: Record<string, WsTaskUpdateMessage>;
236
+ /** The most recent `task_update` — a convenient single-value change trigger. */
237
+ lastTaskUpdate: WsTaskUpdateMessage | null;
238
+ /** Online status keyed by user id (the `presence_update` stream). */
239
+ presence: Record<string, string>;
240
+ setStatus: (status: ArbiWsStatus) => void;
241
+ applyTaskUpdate: (msg: WsTaskUpdateMessage) => void;
242
+ applyPresence: (msg: WsPresenceUpdateMessage) => void;
243
+ reset: () => void;
244
+ }
245
+ declare const useArbiWsStore: zustand.UseBoundStore<zustand.StoreApi<ArbiWsState>>;
246
+
247
+ /**
248
+ * Typed subscription + selector hooks for the shared WebSocket.
249
+ *
250
+ * All message typing flows from the OpenAPI-derived `WebSocketServerMessage`
251
+ * union — handlers are narrowed by the discriminant `type`, exactly like the
252
+ * rest of the SDK.
253
+ */
254
+
255
+ /**
256
+ * Subscribe to every server message. The handler is kept in a ref, so passing a
257
+ * new inline function each render does not resubscribe.
258
+ */
259
+ declare function useArbiWebSocket(onMessage: (msg: WebSocketServerMessage) => void): void;
260
+ /**
261
+ * Subscribe to a single message type, fully narrowed to that variant.
262
+ *
263
+ * @example
264
+ * useArbiWsMessage<WsBatchCompleteMessage>('batch_complete', (msg) => {
265
+ * // msg.batch_type, msg.doc_ext_ids are typed
266
+ * })
267
+ */
268
+ declare function useArbiWsMessage<T extends WebSocketServerMessage>(type: T['type'], handler: (msg: T) => void): void;
269
+ /** Live connection status of the shared socket. */
270
+ declare function useArbiWsStatus(): ArbiWsStatus;
271
+ /** `true` once the shared socket is authenticated and connected. */
272
+ declare function useArbiConnected(): boolean;
273
+ /** The latest processing status per document id (the `task_update` stream). */
274
+ declare function useArbiWsTasks(): Record<string, {
275
+ type: "task_update";
276
+ doc_ext_id: string;
277
+ workspace_ext_id: string;
278
+ file_name: string;
279
+ status: "uploading" | "queued" | "parsing" | "encrypting" | "indexing" | "analysing" | "completed" | "failed" | "skipped" | "empty" | "low-content";
280
+ progress: number;
281
+ failed_stage?: string | null;
282
+ }>;
283
+ /** The latest processing status for a single document, if any. */
284
+ declare function useArbiWsTask(docId: string): {
285
+ type: "task_update";
286
+ doc_ext_id: string;
287
+ workspace_ext_id: string;
288
+ file_name: string;
289
+ status: "uploading" | "queued" | "parsing" | "encrypting" | "indexing" | "analysing" | "completed" | "failed" | "skipped" | "empty" | "low-content";
290
+ progress: number;
291
+ failed_stage?: string | null;
292
+ };
293
+
294
+ /**
295
+ * Keep a workspace's documents (and tags) query live from WebSocket events —
296
+ * the shared, no-polling replacement for refetch loops.
297
+ *
298
+ * Mount `useArbiDocumentSync(workspaceId)` once wherever the document list
299
+ * matters. It refetches the documents query on:
300
+ * - `batch_complete` (upload OR doctag_generate) for this workspace, and
301
+ * - a terminal `task_update` for a document (processing finished),
302
+ * so freshly-uploaded, freshly-coded, or freshly-processed docs appear without
303
+ * anyone polling.
304
+ */
305
+ declare function useArbiDocumentSync(workspaceId: string | undefined): void;
306
+
171
307
  /**
172
308
  * Types for a document's parsed content (`GET /v1/document/{id}/parsed-{stage}`).
173
309
  *
@@ -530,14 +666,14 @@ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.
530
666
  declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
531
667
 
532
668
  declare const badgeVariants: (props?: ({
533
- variant?: "outline" | "default" | "accent" | "secondary" | "destructive" | null | undefined;
669
+ variant?: "default" | "outline" | "accent" | "secondary" | "destructive" | null | undefined;
534
670
  } & class_variance_authority_types.ClassProp) | undefined) => string;
535
671
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
536
672
  }
537
673
  declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
538
674
 
539
675
  declare const buttonVariants: (props?: ({
540
- variant?: "link" | "outline" | "default" | "accent" | "secondary" | "destructive" | "ghost" | null | undefined;
676
+ variant?: "link" | "default" | "outline" | "accent" | "secondary" | "destructive" | "ghost" | null | undefined;
541
677
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
542
678
  } & class_variance_authority_types.ClassProp) | undefined) => string;
543
679
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -549,14 +685,240 @@ declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
549
685
  declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
550
686
  declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
551
687
 
552
- declare function Card({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
553
- declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
554
- declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
555
- declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
556
- declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
557
- declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
688
+ /**
689
+ * Clean-ARBI design contract rule 3: borderless by default; shadows
690
+ * only when an element needs to read as elevated/floating.
691
+ *
692
+ * - `flat` (default): just a rounded surface, no border, no shadow.
693
+ * Separation comes from background + spacing.
694
+ * - `outline`: adds a single border for surfaces that need a visible
695
+ * edge (e.g. selectable list cards, embedded panels).
696
+ * - `elevated`: border + a subtle shadow for cards that should lift.
697
+ *
698
+ * Self-styled consumers that pass their own border/shadow classes keep
699
+ * working unchanged on the default `flat` base.
700
+ */
701
+ declare const cardVariants: (props?: ({
702
+ variant?: "flat" | "outline" | "elevated" | null | undefined;
703
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
704
+ interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
705
+ }
706
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
707
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
708
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
709
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
710
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
711
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
712
+
713
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
714
+
715
+ interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
716
+ className?: string;
717
+ }
718
+ declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
719
+
720
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
721
+
722
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
723
+
724
+ declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
725
+ declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
726
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
727
+
728
+ declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
729
+
730
+ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
731
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
732
+
733
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
734
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
735
+
736
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
737
+
738
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
739
+
740
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
741
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
742
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
743
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
744
+
745
+ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
746
+ declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
747
+ declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
748
+ declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
749
+ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
750
+ interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
751
+ className?: string;
752
+ }
753
+ declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
754
+ interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
755
+ className?: string;
756
+ }
757
+ declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
758
+ declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
759
+
760
+ interface SliderProps extends React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
761
+ rangeClassName?: string;
762
+ }
763
+ declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
764
+
765
+ declare const toggleVariants: (props?: ({
766
+ variant?: "default" | "outline" | null | undefined;
767
+ size?: "default" | "sm" | "lg" | null | undefined;
768
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
769
+ declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
770
+ variant?: "default" | "outline" | null | undefined;
771
+ size?: "default" | "sm" | "lg" | null | undefined;
772
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
773
+
774
+ declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
775
+ variant?: "default" | "outline" | null | undefined;
776
+ size?: "default" | "sm" | "lg" | null | undefined;
777
+ } & class_variance_authority_types.ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
778
+ declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
779
+ variant?: "default" | "outline" | null | undefined;
780
+ size?: "default" | "sm" | "lg" | null | undefined;
781
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
782
+
783
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
784
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
785
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
786
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
787
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
788
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
789
+ hideCloseButton?: boolean;
790
+ } & React.RefAttributes<HTMLDivElement>>;
791
+ declare const DialogHeader: {
792
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
793
+ displayName: string;
794
+ };
795
+ declare const DialogFooter: {
796
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
797
+ displayName: string;
798
+ };
799
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
800
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
801
+
802
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
803
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
804
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
805
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
806
+ container?: HTMLElement | null;
807
+ } & React.RefAttributes<HTMLDivElement>>;
808
+
809
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
810
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
811
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
812
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
813
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
814
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
815
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
816
+ inset?: boolean;
817
+ } & React.RefAttributes<HTMLDivElement>>;
818
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
819
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
820
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
821
+ inset?: boolean;
822
+ } & React.RefAttributes<HTMLDivElement>>;
823
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
824
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
825
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
826
+ inset?: boolean;
827
+ } & React.RefAttributes<HTMLDivElement>>;
828
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
829
+ declare const DropdownMenuShortcut: {
830
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
831
+ displayName: string;
832
+ };
558
833
 
559
- declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
834
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
835
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
836
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
837
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
838
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
839
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
840
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
841
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
842
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
843
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
844
+
845
+ declare const Command: React.ForwardRefExoticComponent<Omit<{
846
+ children?: React.ReactNode;
847
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
848
+ ref?: React.Ref<HTMLDivElement>;
849
+ } & {
850
+ asChild?: boolean;
851
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
852
+ label?: string;
853
+ shouldFilter?: boolean;
854
+ filter?: (value: string, search: string, keywords?: string[]) => number;
855
+ defaultValue?: string;
856
+ value?: string;
857
+ onValueChange?: (value: string) => void;
858
+ loop?: boolean;
859
+ disablePointerSelection?: boolean;
860
+ vimBindings?: boolean;
861
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
862
+ declare const CommandDialog: ({ children, ...props }: DialogProps) => React.JSX.Element;
863
+ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
864
+ ref?: React.Ref<HTMLInputElement>;
865
+ } & {
866
+ asChild?: boolean;
867
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
868
+ value?: string;
869
+ onValueChange?: (search: string) => void;
870
+ } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
871
+ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
872
+ children?: React.ReactNode;
873
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
874
+ ref?: React.Ref<HTMLDivElement>;
875
+ } & {
876
+ asChild?: boolean;
877
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
878
+ label?: string;
879
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
880
+ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
881
+ children?: React.ReactNode;
882
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
883
+ ref?: React.Ref<HTMLDivElement>;
884
+ } & {
885
+ asChild?: boolean;
886
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
887
+ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
888
+ children?: React.ReactNode;
889
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
890
+ ref?: React.Ref<HTMLDivElement>;
891
+ } & {
892
+ asChild?: boolean;
893
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
894
+ heading?: React.ReactNode;
895
+ value?: string;
896
+ forceMount?: boolean;
897
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
898
+ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
899
+ ref?: React.Ref<HTMLDivElement>;
900
+ } & {
901
+ asChild?: boolean;
902
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
903
+ alwaysRender?: boolean;
904
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
905
+ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
906
+ children?: React.ReactNode;
907
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
908
+ ref?: React.Ref<HTMLDivElement>;
909
+ } & {
910
+ asChild?: boolean;
911
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
912
+ disabled?: boolean;
913
+ onSelect?: (value: string) => void;
914
+ value?: string;
915
+ keywords?: string[];
916
+ forceMount?: boolean;
917
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
918
+ declare const CommandShortcut: {
919
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
920
+ displayName: string;
921
+ };
560
922
 
561
923
  /**
562
924
  * The AI engine — domain-agnostic hooks for building an AI-native app on ARBI.
@@ -700,15 +1062,33 @@ declare function textToArtifact(title: string, content: string, opts?: {
700
1062
 
701
1063
  /**
702
1064
  * Renders agent output (markdown — headings, lists, GFM tables) in one house
703
- * style so every AI result across the app looks the same. Redline marks
704
- * (`<del>` / `<ins>` / `<mark>`) render as tracked changes. Token-neutral: uses
705
- * shadcn semantic tokens plus the kit's `ai-accent` colour.
1065
+ * style so every AI result across the app looks the same. Shares the presentational
1066
+ * component map with the monolith's MarkdownRenderer via `markdownBaseComponents`;
1067
+ * overrides only the AI-branded / behaviourally-distinct elements: accent links,
1068
+ * redline marks (`<del>`/`<ins>`/`<mark>` as tracked changes), inline code, and
1069
+ * self-contained bordered tables (the shared base leaves tables to app CSS, which
1070
+ * a standalone AI surface may not provide). Token-neutral: shadcn semantic tokens
1071
+ * plus the kit's `ai-accent` colour.
706
1072
  */
707
1073
  declare function AiMarkdown({ children, className }: {
708
1074
  children: string;
709
1075
  className?: string;
710
1076
  }): React.JSX.Element;
711
1077
 
1078
+ /**
1079
+ * Brand-neutral presentational component overrides for react-markdown, shared by
1080
+ * every markdown surface in the workspace (the monolith's `MarkdownRenderer` and
1081
+ * the AI kit's `AiMarkdown`). One house style for headings, lists, tables and the
1082
+ * inline text elements — token-based, so it themes per app.
1083
+ *
1084
+ * Deliberately excluded (kept per-consumer): `a` (external-link confirm vs
1085
+ * plain), `code`/`pre` (rich CodeBlock + Mermaid vs inline), `span` (doc-entity
1086
+ * pills), and `del`/`ins`/`mark` (general emphasis vs redline tracked-changes) —
1087
+ * these differ by intent or carry heavy/coupled behaviour, so each renderer owns
1088
+ * them and spreads this base underneath.
1089
+ */
1090
+ declare const markdownBaseComponents: Partial<Components>;
1091
+
712
1092
  /**
713
1093
  * Renders the live state of a single agentic task: streaming tokens, a "thinking"
714
1094
  * indicator with the running step count, errors, and a grounded/cited footer with
@@ -770,6 +1150,37 @@ declare function ArtifactCanvas({ artifacts, className, emptyHint, busy, busyHin
770
1150
  stepCount?: number;
771
1151
  }): React.JSX.Element;
772
1152
 
1153
+ /**
1154
+ * The minimal artifact shape this card renders. A structural subset of the
1155
+ * ARBI app's `StreamingDocument`, defined here so the light package doesn't
1156
+ * depend on the app store — any object carrying these fields is accepted.
1157
+ */
1158
+ interface MessageArtifact {
1159
+ /** External id of the drafted document; opened in the docked viewer. */
1160
+ docExtId: string;
1161
+ /** Display title; falls back when empty. */
1162
+ title: string;
1163
+ /** Whether generation has finished. */
1164
+ isComplete: boolean;
1165
+ /** Content mode; `image` swaps in image-specific labels and icon. */
1166
+ mode: 'markdown' | 'html' | 'text' | 'image';
1167
+ }
1168
+ interface MessageArtifactCardProps {
1169
+ /** The streaming/drafted document linked to this assistant message. */
1170
+ artifact: MessageArtifact;
1171
+ /** Opens the drafted document (docExtId) in the docked viewer. */
1172
+ onOpen: (docExtId: string) => void;
1173
+ }
1174
+ /**
1175
+ * Inline "View draft" affordance shown inside the assistant message that
1176
+ * produced a drafted document — so the artifact lives in the conversation
1177
+ * narrative (dyad-style) instead of only a hidden docked panel.
1178
+ *
1179
+ * Clean-ARBI contract: flat outline card, one chat type size, brand
1180
+ * accent on the action, tap-friendly (a real button — no hover-only).
1181
+ */
1182
+ declare function MessageArtifactCard({ artifact, onOpen, }: MessageArtifactCardProps): React__default.JSX.Element;
1183
+
773
1184
  /**
774
1185
  * Semantic search across a document set — retrieval-only (no LLM), returning the
775
1186
  * top matching passages with their source document and page. Uses the SDK's
@@ -791,53 +1202,138 @@ declare function DocQaPanel({ docId, docName }: {
791
1202
  docName?: string;
792
1203
  }): React.JSX.Element;
793
1204
 
1205
+ type Chunk = components['schemas']['Chunk'];
1206
+ interface ToolResponses {
1207
+ [docId: string]: Chunk[];
1208
+ }
1209
+ /** Reactive citation state the popover reads (injected as a hook by the app). */
1210
+ interface CitationState {
1211
+ activeCitationKey: string | null;
1212
+ viewingPassageId: string | null;
1213
+ isOnConversationPage: boolean;
1214
+ }
1215
+ /** Payload handed to the app when a chunk card is clicked / a citation opens. */
1216
+ interface ChunkActivation {
1217
+ messageId: string;
1218
+ citationNum: string;
1219
+ chunkIds: string[];
1220
+ chunk: Chunk;
1221
+ citationData?: ToolResponses;
1222
+ }
1223
+ /** Renders the citation content as markdown — the app supplies its MarkdownRenderer. */
1224
+ type RenderMarkdown = (args: {
1225
+ components: Partial<Components>;
1226
+ isStreaming: boolean;
1227
+ children: string;
1228
+ }) => React__default.ReactNode;
1229
+ interface CitationRendererProps {
1230
+ content: string;
1231
+ citations?: Record<string, string[]>;
1232
+ citationData?: ToolResponses;
1233
+ className?: string;
1234
+ messageId: string;
1235
+ isStreaming?: boolean;
1236
+ renderMarkdown: RenderMarkdown;
1237
+ ExternalLink: React__default.ComponentType<React__default.ComponentPropsWithoutRef<'a'>>;
1238
+ onOpenCitation: (citationKey: string) => void;
1239
+ onActivateChunk: (activation: ChunkActivation) => void;
1240
+ useCitationState: () => CitationState;
1241
+ onCloseCitation: () => void;
1242
+ onDismissCitation: () => void;
1243
+ }
1244
+ declare const CitationRenderer: React__default.NamedExoticComponent<CitationRendererProps>;
1245
+
794
1246
  /** PDF file icon (red). Promoted from the ARBI app for SDK reuse. */
795
1247
 
796
- interface IconProps$5 {
1248
+ interface IconProps$9 {
1249
+ size?: number;
1250
+ className?: string;
1251
+ }
1252
+ declare const PdfIcon: React__default.FC<IconProps$9>;
1253
+
1254
+ /**
1255
+ * DOC Icon Component. Promoted from the ARBI app for SDK reuse.
1256
+ * For Word documents (.doc, .docx files) with blue styling.
1257
+ */
1258
+
1259
+ interface DocIconProps {
797
1260
  size?: number;
798
1261
  className?: string;
799
1262
  }
800
- declare const PdfIcon: React__default.FC<IconProps$5>;
1263
+ declare const DocIcon: React__default.FC<DocIconProps>;
1264
+
1265
+ /**
1266
+ * HTML Icon Component. Promoted from the ARBI app for SDK reuse.
1267
+ * A proper HTML file icon with sky blue styling for web files.
1268
+ */
1269
+
1270
+ interface HtmlIconProps {
1271
+ size?: number;
1272
+ className?: string;
1273
+ }
1274
+ declare const HtmlIcon: React__default.FC<HtmlIconProps>;
1275
+
1276
+ /**
1277
+ * TXT Icon Component. Promoted from the ARBI app for SDK reuse.
1278
+ * For text files (.txt) with gray styling.
1279
+ */
1280
+
1281
+ interface TxtIconProps {
1282
+ size?: number;
1283
+ className?: string;
1284
+ }
1285
+ declare const TxtIcon: React__default.FC<TxtIconProps>;
1286
+
1287
+ /**
1288
+ * XLS Icon Component. Promoted from the ARBI app for SDK reuse.
1289
+ * For Excel spreadsheets (.xls, .xlsx files) with green styling.
1290
+ */
1291
+
1292
+ interface XlsIconProps {
1293
+ size?: number;
1294
+ className?: string;
1295
+ }
1296
+ declare const XlsIcon: React__default.FC<XlsIconProps>;
801
1297
 
802
1298
  /** Audio file icon (amber). Promoted from the ARBI app for SDK reuse. */
803
1299
 
804
- interface IconProps$4 {
1300
+ interface IconProps$8 {
805
1301
  size?: number;
806
1302
  className?: string;
807
1303
  }
808
- declare const AudIcon: React__default.FC<IconProps$4>;
1304
+ declare const AudIcon: React__default.FC<IconProps$8>;
809
1305
 
810
1306
  /** Image file icon (violet). Promoted from the ARBI app for SDK reuse. */
811
1307
 
812
- interface IconProps$3 {
1308
+ interface IconProps$7 {
813
1309
  size?: number;
814
1310
  className?: string;
815
1311
  }
816
- declare const ImgIcon: React__default.FC<IconProps$3>;
1312
+ declare const ImgIcon: React__default.FC<IconProps$7>;
817
1313
 
818
1314
  /** Video file icon (emerald). Promoted from the ARBI app for SDK reuse. */
819
1315
 
820
- interface IconProps$2 {
1316
+ interface IconProps$6 {
821
1317
  size?: number;
822
1318
  className?: string;
823
1319
  }
824
- declare const VidIcon: React__default.FC<IconProps$2>;
1320
+ declare const VidIcon: React__default.FC<IconProps$6>;
825
1321
 
826
1322
  /** Email file icon (teal). Promoted from the ARBI app for SDK reuse. */
827
1323
 
828
- interface IconProps$1 {
1324
+ interface IconProps$5 {
829
1325
  size?: number;
830
1326
  className?: string;
831
1327
  }
832
- declare const EmlIcon: React__default.FC<IconProps$1>;
1328
+ declare const EmlIcon: React__default.FC<IconProps$5>;
833
1329
 
834
1330
  /** Generic file icon (gray, question mark). Promoted from the ARBI app. */
835
1331
 
836
- interface IconProps {
1332
+ interface IconProps$4 {
837
1333
  size?: number;
838
1334
  className?: string;
839
1335
  }
840
- declare const FileIcon: React__default.FC<IconProps>;
1336
+ declare const FileIcon: React__default.FC<IconProps$4>;
841
1337
 
842
1338
  /**
843
1339
  * File-type icon colors — the subset of the app's FILE_TYPE_COLORS used by the
@@ -846,14 +1342,138 @@ declare const FileIcon: React__default.FC<IconProps>;
846
1342
  */
847
1343
  declare const FILE_TYPE_COLORS: {
848
1344
  pdf: string;
1345
+ doc: string;
1346
+ docx: string;
1347
+ html: string;
849
1348
  img: string;
850
1349
  vid: string;
851
1350
  aud: string;
1351
+ xls: string;
852
1352
  eml: string;
1353
+ txt: string;
853
1354
  generic: string;
854
1355
  white: string;
855
1356
  };
856
1357
 
1358
+ /**
1359
+ * Apple Icon Component. Promoted from the ARBI app for SDK reuse.
1360
+ */
1361
+
1362
+ interface AppleIconProps {
1363
+ size?: number;
1364
+ className?: string;
1365
+ 'aria-label'?: string;
1366
+ 'aria-hidden'?: boolean;
1367
+ }
1368
+ declare const AppleIcon: React__default.FC<AppleIconProps>;
1369
+
1370
+ /**
1371
+ * Google Icon Component. Promoted from the ARBI app for SDK reuse.
1372
+ */
1373
+
1374
+ interface GoogleIconProps {
1375
+ size?: number;
1376
+ className?: string;
1377
+ 'aria-label'?: string;
1378
+ 'aria-hidden'?: boolean;
1379
+ }
1380
+ declare const GoogleIcon: React__default.FC<GoogleIconProps>;
1381
+
1382
+ /**
1383
+ * GitHub Icon Component. Promoted from the ARBI app for SDK reuse.
1384
+ */
1385
+
1386
+ interface GitHubIconProps {
1387
+ size?: number;
1388
+ className?: string;
1389
+ 'aria-label'?: string;
1390
+ 'aria-hidden'?: boolean;
1391
+ }
1392
+ declare const GitHubIcon: React__default.FC<GitHubIconProps>;
1393
+
1394
+ /**
1395
+ * LinkedIn Icon Component. Promoted from the ARBI app for SDK reuse.
1396
+ */
1397
+
1398
+ interface LinkedInIconProps {
1399
+ size?: number;
1400
+ className?: string;
1401
+ 'aria-label'?: string;
1402
+ 'aria-hidden'?: boolean;
1403
+ }
1404
+ declare const LinkedInIcon: React__default.FC<LinkedInIconProps>;
1405
+
1406
+ interface IconProps$3 {
1407
+ size?: number;
1408
+ className?: string;
1409
+ 'aria-label'?: string;
1410
+ 'aria-hidden'?: boolean;
1411
+ }
1412
+ declare const OpenAIIcon: React__default.FC<IconProps$3>;
1413
+
1414
+ interface IconProps$2 {
1415
+ size?: number;
1416
+ className?: string;
1417
+ 'aria-label'?: string;
1418
+ 'aria-hidden'?: boolean;
1419
+ }
1420
+ declare const ClaudeIcon: React__default.FC<IconProps$2>;
1421
+
1422
+ interface IconProps$1 {
1423
+ size?: number;
1424
+ className?: string;
1425
+ 'aria-label'?: string;
1426
+ 'aria-hidden'?: boolean;
1427
+ }
1428
+ declare const GeminiIcon: React__default.FC<IconProps$1>;
1429
+
1430
+ interface IconProps {
1431
+ size?: number;
1432
+ className?: string;
1433
+ 'aria-label'?: string;
1434
+ 'aria-hidden'?: boolean;
1435
+ }
1436
+ /** Fireworks AI brand mark — three-stroke burst in their signature purple
1437
+ * (#6720FF). Pulled from fireworks.ai/icon0.svg. */
1438
+ declare const FireworksIcon: React__default.FC<IconProps>;
1439
+
1440
+ /** Pick the best brand mark for a model. We prefer the *product* logo
1441
+ * (ChatGPT swirl, Gemini sparkle, Claude burst) when the model_name
1442
+ * signals a known product line, falling back to the LiteLLM provider
1443
+ * string for everything else. Returns Crown as the universal fallback so
1444
+ * Premium-tier rows always render an icon. */
1445
+ declare function ProviderIcon({ modelName, provider, size, className, }: {
1446
+ modelName?: string;
1447
+ provider?: string | null;
1448
+ size?: number;
1449
+ className?: string;
1450
+ }): React.JSX.Element;
1451
+
1452
+ /**
1453
+ * ARBI Icon Component. Promoted from the ARBI app for SDK reuse.
1454
+ * Renders the host app's `/favicon.svg` (the consumer serves the asset).
1455
+ */
1456
+
1457
+ interface ArbiIconProps {
1458
+ size?: number;
1459
+ className?: string;
1460
+ 'aria-label'?: string;
1461
+ 'aria-hidden'?: boolean;
1462
+ }
1463
+ declare const ArbiIcon: React__default.FC<ArbiIconProps>;
1464
+
1465
+ interface ArbiBotHeadIconProps {
1466
+ size?: number;
1467
+ className?: string;
1468
+ }
1469
+ declare const ArbiBotHeadIcon: React__default.FC<ArbiBotHeadIconProps>;
1470
+
1471
+ interface ArbiBotIconProps {
1472
+ size?: number;
1473
+ className?: string;
1474
+ }
1475
+ declare const ArbiBotIcon: React__default.FC<ArbiBotIconProps>;
1476
+
857
1477
  /**
858
1478
  * EntityPill Component
859
1479
  *
@@ -967,7 +1587,7 @@ declare function DocumentEntity({ doc, icon, size, labelMaxWidth, onClick, onIco
967
1587
  * and DECOUPLED from the app store/API. It renders purely from the `tag` prop —
968
1588
  * the app-only bits (creator/updater lookup, visibility toggle, live doctag
969
1589
  * count from the query cache) are dropped; pass `doctagCount`/`shared` if you
970
- * want them shown in the tooltip.
1590
+ * want them shown in the built-in tooltip, or inject a fully custom `tooltipContent`.
971
1591
  */
972
1592
 
973
1593
  /** Minimal, decoupled tag shape the pill needs. */
@@ -990,10 +1610,31 @@ interface TagEntityProps {
990
1610
  size?: 'sm' | 'md' | 'lg';
991
1611
  className?: string;
992
1612
  onClick?: (e: React__default.MouseEvent) => void;
993
- /** Whether to show the detailed tooltip (default: true) */
1613
+ /** Whether to show a tooltip (default: true) */
994
1614
  showTooltip?: boolean;
1615
+ /** Injected tooltip override. When provided (and `showTooltip` is not false) it
1616
+ * replaces the built-in tooltip — used by the monolith to render its rich,
1617
+ * store-coupled tooltip (fresh count, creator/updater, visibility toggle). */
1618
+ tooltipContent?: React__default.ReactNode;
995
1619
  }
996
- declare function TagEntity({ tag, size, className, onClick, showTooltip, }: TagEntityProps): React__default.JSX.Element;
1620
+ declare function TagEntity({ tag, size, className, onClick, showTooltip, tooltipContent, }: TagEntityProps): React__default.JSX.Element;
1621
+
1622
+ /**
1623
+ * Tag-type presentation primitives — the brand-neutral icon and label maps that
1624
+ * back the shared `TagEntity` pill. Kept in their own module (not the component
1625
+ * file) so app-side wrappers can import them to build their own store-coupled
1626
+ * tooltip content without pulling in a component, and so the component file stays
1627
+ * fast-refresh friendly.
1628
+ */
1629
+
1630
+ /** Human-readable tag type names. */
1631
+ declare const TAG_TYPE_LABELS: Record<string, string>;
1632
+ /** Icon mapping for tag types. */
1633
+ declare const TAG_TYPE_ICONS: Record<string, typeof StickyNote>;
1634
+ /** Resolve the icon component for a tag type, with the `text` (StickyNote) fallback. */
1635
+ declare function getTagTypeIcon(type?: string | null): typeof StickyNote;
1636
+ /** Resolve the human-readable label for a tag type, falling back to the raw type. */
1637
+ declare function getTagTypeLabel(type?: string | null): string;
997
1638
 
998
1639
  /**
999
1640
  * ProjectEntity Component
@@ -1034,6 +1675,62 @@ interface ProjectEntityProps {
1034
1675
  }
1035
1676
  declare function ProjectEntity({ name, label, icon, subscription, hasCollaborators, size, className, onClick, relation, isPaid, tooltipContent, }: ProjectEntityProps): React__default.JSX.Element;
1036
1677
 
1678
+ /**
1679
+ * UserEntity Component
1680
+ *
1681
+ * Single source of truth for the user pill/avatar visual, promoted from the ARBI
1682
+ * app and DECOUPLED from the app store/API. It renders purely from injected,
1683
+ * already-resolved props — the app-coupled bits (current user, WebSocket presence
1684
+ * status, shared-workspace / agent-owner lookups) are resolved by the app adapter
1685
+ * and passed in as `isMe` / `displayStatus` / `tooltipContent` / `onClick`.
1686
+ *
1687
+ * Variants:
1688
+ * - pill: Avatar + name in a rounded container (default)
1689
+ * - icon: Avatar circle with hover tooltip
1690
+ *
1691
+ * Status-dot colours use the semantic `--color-status-*` token contract (see the
1692
+ * consuming app's @theme); they are seeded to the app's prior palette so the dots
1693
+ * stay pixel-identical.
1694
+ */
1695
+
1696
+ /** Presence display status - WebSocket states plus 'hidden' for when status is intentionally not shown */
1697
+ type PresenceDisplayStatus = 'connected' | 'connecting' | 'disconnected' | 'error' | 'hidden';
1698
+ interface UserEntityProps {
1699
+ size?: 'xs' | 'sm' | 'md' | 'lg';
1700
+ variant?: 'icon' | 'pill';
1701
+ className?: string;
1702
+ /** When true (default), shows tooltip on hover */
1703
+ showTooltip?: boolean;
1704
+ /** When true (default), clicking triggers the injected action. Set false to disable interaction. */
1705
+ interactive?: boolean;
1706
+ /** When true, shows a blue unread indicator on the chat icon */
1707
+ hasUnreadMessages?: boolean;
1708
+ /** Two-letter initials shown in the avatar fallback (resolved by the app). */
1709
+ initials?: string;
1710
+ /** Display label — "You" for the current user, else the real name. */
1711
+ displayName?: string;
1712
+ /** Avatar image URL, if any. */
1713
+ picture?: string | null;
1714
+ /** Avatar background colour class for non-agents (e.g. 'bg-blue-500'). */
1715
+ colorClass?: string;
1716
+ /** Whether this user is an agent — drives the dashed ring + bot badge. */
1717
+ isAgent?: boolean;
1718
+ /** Inline border/text colour for agent avatars (from the app's agentAvatarColors). */
1719
+ agentStyle?: React__default.CSSProperties;
1720
+ /** Whether this pill represents the current user — hides the chat icon and drives
1721
+ * which action `onClick` performs. */
1722
+ isMe?: boolean;
1723
+ /** Resolved presence dot state; undefined hides the dot. */
1724
+ displayStatus?: PresenceDisplayStatus;
1725
+ /** Resolved click handler (open settings for me, DM for others). */
1726
+ onClick?: (e: React__default.MouseEvent) => void;
1727
+ /** Injected rich tooltip content (built by the app adapter). */
1728
+ tooltipContent?: React__default.ReactNode;
1729
+ /** Render the empty "no user" avatar. */
1730
+ empty?: boolean;
1731
+ }
1732
+ declare const UserEntity: React__default.NamedExoticComponent<UserEntityProps>;
1733
+
1037
1734
  /**
1038
1735
  * DocumentTable — a reusable AG Grid (community) block that renders a
1039
1736
  * workspace's documents using the promoted entity pills.
@@ -1146,4 +1843,4 @@ declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState
1146
1843
 
1147
1844
  declare function cn(...inputs: ClassValue[]): string;
1148
1845
 
1149
- export { AiActionCard, AiAnswer, AiMarkdown, type AiRunOptions, type AiTaskStatus, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArtifactCanvas, AudIcon, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DocQaPanel, DocSearch, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, EmlIcon, EntityPill, FILE_TYPE_COLORS, FileIcon, HoverCard, HoverCardContent, HoverCardTrigger, ImgIcon, Input, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type SearchChunk, TagEntity, type TagEntityProps, type TagLike, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VidIcon, arbiQueryKeys, badgeVariants, buttonVariants, cn, redlineStats, textToArtifact, toRedlineMarkdown, useAgents, useAiTask, useArbi, useArbiUiStore, useAssistantQuery, useConfigs, useConversations, useDeleteAgents, useDocuments, useHealth, useMemories, useParsedDocument, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useWorkspaceDocs, useWorkspaces };
1846
+ export { AiActionCard, AiAnswer, AiMarkdown, type AiRunOptions, type AiTaskStatus, 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, AudIcon, Avatar, AvatarFallback, AvatarImage, 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, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, 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, EmlIcon, EntityPill, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, ImgIcon, Input, Label, LinkedInIcon, type MessageArtifact, MessageArtifactCard, OpenAIIcon, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PresenceDisplayStatus, Progress, ProjectEntity, type ProjectEntityProps, type ProjectRelation, ProviderIcon, RadioGroup, RadioGroupItem, type RenderMarkdown, ScrollArea, ScrollBar, type SearchChunk, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, 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, Toggle, ToggleGroup, ToggleGroupItem, type ToolResponses, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, TypingIndicator, UserEntity, type UserEntityProps, VidIcon, XlsIcon, arbiQueryKeys, badgeVariants, buttonVariants, cardVariants, cn, getTagTypeIcon, getTagTypeLabel, markdownBaseComponents, redlineStats, textToArtifact, toRedlineMarkdown, toggleVariants, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useConfigs, useConversations, useDeleteAgents, useDocuments, useHealth, useMemories, useParsedDocument, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useWorkspaceDocs, useWorkspaces };