@arbidocs/react 0.3.185 → 0.4.1
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/{chunk-YJAYST7S.js → chunk-3CLGHHME.js} +880 -240
- package/dist/chunk-3CLGHHME.js.map +1 -0
- package/dist/chunk-6ALMBER7.js +176 -0
- package/dist/chunk-6ALMBER7.js.map +1 -0
- package/dist/chunk-BXP6S34V.cjs +284 -0
- package/dist/chunk-BXP6S34V.cjs.map +1 -0
- package/dist/chunk-EJ2BMHYK.js +272 -0
- package/dist/chunk-EJ2BMHYK.js.map +1 -0
- package/dist/{chunk-IZPXHVPJ.cjs → chunk-OU2QLIKS.cjs} +969 -344
- package/dist/chunk-OU2QLIKS.cjs.map +1 -0
- package/dist/chunk-RZQACYNQ.cjs +218 -0
- package/dist/chunk-RZQACYNQ.cjs.map +1 -0
- package/dist/{index-4WwLZsQO.d.cts → index-CcbVSNSP.d.cts} +40 -2
- package/dist/{index-4WwLZsQO.d.ts → index-CcbVSNSP.d.ts} +40 -2
- package/dist/index.cjs +589 -1070
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -155
- package/dist/index.d.ts +11 -155
- package/dist/index.js +223 -725
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +13 -4
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +2 -1
- package/dist/ui/index.cjs +211 -190
- package/dist/ui/index.d.cts +204 -3
- package/dist/ui/index.d.ts +204 -3
- package/dist/ui/index.js +2 -1
- package/dist/viewers/index.cjs +327 -76
- package/dist/viewers/index.cjs.map +1 -1
- package/dist/viewers/index.d.cts +90 -4
- package/dist/viewers/index.d.ts +90 -4
- package/dist/viewers/index.js +316 -78
- package/dist/viewers/index.js.map +1 -1
- package/package.json +4 -3
- package/dist/chunk-3MLQUKT4.cjs +0 -97
- package/dist/chunk-3MLQUKT4.cjs.map +0 -1
- package/dist/chunk-IZPXHVPJ.cjs.map +0 -1
- package/dist/chunk-J3XEKOV5.js +0 -87
- package/dist/chunk-J3XEKOV5.js.map +0 -1
- package/dist/chunk-YJAYST7S.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -7,12 +7,11 @@ 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 { EntityIconComponent
|
|
11
|
-
export { AgentBadge, AiMarkdown, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, 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, DictateContextValue, DictateProvider, DocumentEntity, DocumentEntityProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EntityIcon, EntityPill, EntityRegistryOverride, EntityType, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, IconToggleProps, Input, InputProps, Label, MarkdownRenderer, MarkdownRendererProps, MarkdownStreamingContext, NEUTRAL_GRAY, PLACEHOLDER_COLOR, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceDisplayStatus, PresenceLabel, Progress, ProjectEntity, ProjectEntityProps, ProjectRelation, RadioGroup, RadioGroupItem, Rag, RagDot, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, StatusBadgeComponent, StatusBadgeProps, StatusPill, StatusPillProps, StatusVariant, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, TagEntityProps, TagLike, Textarea, TextareaProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserEntityProps, VISIBILITY_ICONS, VisibilityIcon, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, configureRagLabels, configureStatusRegistry, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, markdownBaseComponents, splitMarkdownBlocks, toggleVariants } from './ui/index.cjs';
|
|
10
|
+
import { EntityIconComponent } from './ui/index.cjs';
|
|
11
|
+
export { AgentBadge, AiMarkdown, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, 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, DialogPresentation, DialogTitle, DialogTrigger, DictateContextValue, DictateProvider, DocumentCard, DocumentCardProps, DocumentEntity, DocumentEntityProps, DocumentLike, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EntityIcon, EntityPill, EntityRegistryOverride, EntityType, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, IconToggleProps, Input, InputProps, Label, MarkMenu, MarkMenuItem, MarkMenuProps, MarkdownRenderer, MarkdownRendererProps, MarkdownStreamingContext, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PassageCardProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceDisplayStatus, PresenceLabel, Progress, ProjectEntity, ProjectEntityProps, ProjectRelation, RadioGroup, RadioGroupItem, Rag, RagDot, RelevanceDot, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, StatusBadgeComponent, StatusBadgeProps, StatusPill, StatusPillProps, StatusVariant, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, TagEntityProps, TagLike, Textarea, TextareaProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserEntityProps, UserMenu, UserMenuItem, UserMenuProps, UserMenuStatus, VISIBILITY_ICONS, VisibilityIcon, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, configureRagLabels, configureStatusRegistry, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, markdownBaseComponents, splitMarkdownBlocks, toggleVariants } from './ui/index.cjs';
|
|
12
12
|
import { LucideIcon } from 'lucide-react';
|
|
13
13
|
import { Components } from 'react-markdown';
|
|
14
|
-
|
|
15
|
-
export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotifyOptions, T as Toaster, n as notify, s as seedNotifications, b as selectUnread, u as useNotify } from './index-4WwLZsQO.cjs';
|
|
14
|
+
export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-CcbVSNSP.cjs';
|
|
16
15
|
import { ColDef } from 'ag-grid-community';
|
|
17
16
|
export { ToasterProps, toast } from 'sonner';
|
|
18
17
|
import 'clsx';
|
|
@@ -1146,52 +1145,6 @@ interface SemanticSearchProps {
|
|
|
1146
1145
|
}
|
|
1147
1146
|
declare function SemanticSearch({ docIds, workspaceId, searchMode, placeholder, className, 'data-testid': testId, }: SemanticSearchProps): React$1.JSX.Element;
|
|
1148
1147
|
|
|
1149
|
-
/**
|
|
1150
|
-
* PassageCard — the card ("bubble") a single retrieved passage is rendered as.
|
|
1151
|
-
*
|
|
1152
|
-
* One presentation shared by every surface that lists retrieval hits: the
|
|
1153
|
-
* <SemanticSearch> block here and the ARBI-frontend monolith's SmartSearch
|
|
1154
|
-
* results. Those had drifted into two different looks for the same object; this
|
|
1155
|
-
* is the single one.
|
|
1156
|
-
*
|
|
1157
|
-
* The card owns the chrome only — the rounded border, the AI-accent hover /
|
|
1158
|
-
* focus / selected states, the header row and the relevance dot. What goes in
|
|
1159
|
-
* the header and how the snippet itself is rendered stays with the caller,
|
|
1160
|
-
* because those genuinely differ: the block shows a plain-text excerpt in a
|
|
1161
|
-
* narrow sidebar, the monolith renders markdown with a show-more toggle.
|
|
1162
|
-
*
|
|
1163
|
-
* Theming is semantic tokens only (shadcn + the AI-accent contract).
|
|
1164
|
-
*/
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* A dot conveying relevance — green (high) / amber (mid) / muted (low).
|
|
1168
|
-
*
|
|
1169
|
-
* The band is shown, the raw number is not: scores are not on a normalized 0-1
|
|
1170
|
-
* scale across search modes (BM25 keyword scores can exceed 1), so a printed
|
|
1171
|
-
* figure invites a comparison it cannot support. The value is kept in the
|
|
1172
|
-
* tooltip for anyone debugging a ranking.
|
|
1173
|
-
*/
|
|
1174
|
-
declare function RelevanceDot({ score }: {
|
|
1175
|
-
score?: number | null;
|
|
1176
|
-
}): React__default.JSX.Element | null;
|
|
1177
|
-
interface PassageCardProps {
|
|
1178
|
-
/** Left of the header row — the source affordance (document pill, page label). */
|
|
1179
|
-
header: React__default.ReactNode;
|
|
1180
|
-
/** Relevance score for the dot. Omit to hide it. */
|
|
1181
|
-
score?: number | null;
|
|
1182
|
-
/** Extra affordance pinned right of the dot (e.g. a hover-revealed open icon). */
|
|
1183
|
-
headerRight?: React__default.ReactNode;
|
|
1184
|
-
/** Marks the card as the currently open passage. */
|
|
1185
|
-
active?: boolean;
|
|
1186
|
-
onClick?: (e: React__default.MouseEvent) => void;
|
|
1187
|
-
/** Rendered under the snippet, outside the click target's typography. */
|
|
1188
|
-
footer?: React__default.ReactNode;
|
|
1189
|
-
className?: string;
|
|
1190
|
-
children: React__default.ReactNode;
|
|
1191
|
-
'data-testid'?: string;
|
|
1192
|
-
}
|
|
1193
|
-
declare function PassageCard({ header, score, headerRight, active, onClick, footer, className, children, 'data-testid': testId, }: PassageCardProps): React__default.JSX.Element;
|
|
1194
|
-
|
|
1195
1148
|
/**
|
|
1196
1149
|
* Ask questions grounded in a SINGLE document (docId scoped to one file), plus a
|
|
1197
1150
|
* one-click "suggest tags" action. Drop it in a document viewer.
|
|
@@ -1239,6 +1192,8 @@ interface CitationRendererProps {
|
|
|
1239
1192
|
useCitationState: () => CitationState;
|
|
1240
1193
|
onCloseCitation: () => void;
|
|
1241
1194
|
onDismissCitation: () => void;
|
|
1195
|
+
/** Tells the user a citation was copied (or could not be). Optional: copying is silent without it. */
|
|
1196
|
+
notify?: (message: string, kind?: 'success' | 'error' | 'info') => void;
|
|
1242
1197
|
}
|
|
1243
1198
|
declare const CitationRenderer: React__default.NamedExoticComponent<CitationRendererProps>;
|
|
1244
1199
|
|
|
@@ -1582,28 +1537,6 @@ interface ActivityFeedProps {
|
|
|
1582
1537
|
*/
|
|
1583
1538
|
declare function ActivityFeed({ limit, className, emptyLabel, enabled, 'data-testid': testId, }: ActivityFeedProps): React$1.JSX.Element;
|
|
1584
1539
|
|
|
1585
|
-
interface NotificationBellProps {
|
|
1586
|
-
/** Called with an entry's `href` when it's clicked (e.g. router navigate). */
|
|
1587
|
-
onNavigate?: (href: string) => void;
|
|
1588
|
-
/** Called after an entry is locally marked read — the hook for a backend
|
|
1589
|
-
* bridge to propagate read state upstream (filter by the ids it owns). */
|
|
1590
|
-
onMarkRead?: (id: string) => void;
|
|
1591
|
-
/** Called after "Mark all read" — same upstream-propagation hook. */
|
|
1592
|
-
onMarkAllRead?: () => void;
|
|
1593
|
-
/** Toast muting — the bell is where notification behaviour is controlled, so
|
|
1594
|
-
* the mute switch lives in its header. Omit `onToggleMute` to hide it. */
|
|
1595
|
-
muted?: boolean;
|
|
1596
|
-
onToggleMute?: () => void;
|
|
1597
|
-
/** Override per-variant glyph colours (e.g. brand emerald for success). */
|
|
1598
|
-
toneClassNames?: Partial<Record<NotifyVariant, string>>;
|
|
1599
|
-
emptyText?: string;
|
|
1600
|
-
/** Footer link to the app's full notification surface. Omit to hide. */
|
|
1601
|
-
onViewAll?: () => void;
|
|
1602
|
-
viewAllLabel?: string;
|
|
1603
|
-
testId?: string;
|
|
1604
|
-
}
|
|
1605
|
-
declare function NotificationBell({ onNavigate, onMarkRead, onMarkAllRead, muted, onToggleMute, toneClassNames, emptyText, onViewAll, viewAllLabel, testId, }: NotificationBellProps): React$1.JSX.Element;
|
|
1606
|
-
|
|
1607
1540
|
/**
|
|
1608
1541
|
* Direct-message view types.
|
|
1609
1542
|
*
|
|
@@ -1814,14 +1747,17 @@ declare function useDirectMessages(options?: {
|
|
|
1814
1747
|
enabled?: boolean;
|
|
1815
1748
|
}): UseDirectMessagesResult;
|
|
1816
1749
|
|
|
1750
|
+
/** Relative-time formatting shared by the notification bell and the DM kit (no type imports, so the
|
|
1751
|
+
* SDK-free `/shell` entry can use it). */
|
|
1752
|
+
/** Compact relative time, e.g. "2 hours ago", "just now". */
|
|
1753
|
+
declare function formatRelativeTime(iso: string): string;
|
|
1754
|
+
|
|
1817
1755
|
/** Small presentation helpers for the DM kit. */
|
|
1818
1756
|
|
|
1819
1757
|
/** Initials from a user's name (falls back to the email local-part). */
|
|
1820
1758
|
declare function userInitials(user: Pick<DmUser, 'given_name' | 'family_name' | 'email'>): string;
|
|
1821
1759
|
/** Full display name (falls back to the email local-part). */
|
|
1822
1760
|
declare function userDisplayName(user: Pick<DmUser, 'given_name' | 'family_name' | 'email'>): string;
|
|
1823
|
-
/** Compact relative time, e.g. "2 hours ago", "just now". */
|
|
1824
|
-
declare function formatRelativeTime(iso: string): string;
|
|
1825
1761
|
|
|
1826
1762
|
interface DateSeparatorProps {
|
|
1827
1763
|
children: ReactNode;
|
|
@@ -2020,46 +1956,6 @@ interface CommandPaletteValue {
|
|
|
2020
1956
|
*/
|
|
2021
1957
|
declare function useCommandPalette(): CommandPaletteValue;
|
|
2022
1958
|
|
|
2023
|
-
interface UserMenuItem {
|
|
2024
|
-
label: string;
|
|
2025
|
-
icon?: ComponentType<{
|
|
2026
|
-
className?: string;
|
|
2027
|
-
}>;
|
|
2028
|
-
onSelect: () => void;
|
|
2029
|
-
testId?: string;
|
|
2030
|
-
}
|
|
2031
|
-
/** Connection/presence state shown as a dot on the avatar and a line under the
|
|
2032
|
-
* email — the account menu is where "am I connected" belongs. */
|
|
2033
|
-
interface UserMenuStatus {
|
|
2034
|
-
/** Short state word — "Connected", "Working offline". */
|
|
2035
|
-
label: string;
|
|
2036
|
-
tone: 'online' | 'busy' | 'offline';
|
|
2037
|
-
/** Fine print under the label (e.g. the server domain). */
|
|
2038
|
-
detail?: string;
|
|
2039
|
-
testId?: string;
|
|
2040
|
-
}
|
|
2041
|
-
interface UserMenuProps {
|
|
2042
|
-
user: {
|
|
2043
|
-
name: string;
|
|
2044
|
-
email?: string | null;
|
|
2045
|
-
picture?: string | null;
|
|
2046
|
-
};
|
|
2047
|
-
/** Optional connection status: avatar dot + a line in the dropdown header. */
|
|
2048
|
-
status?: UserMenuStatus;
|
|
2049
|
-
/** Account actions above the sign-out divider (e.g. Settings). */
|
|
2050
|
-
items?: UserMenuItem[];
|
|
2051
|
-
onLogout: () => void;
|
|
2052
|
-
logoutLabel?: string;
|
|
2053
|
-
align?: 'start' | 'center' | 'end';
|
|
2054
|
-
classNames?: {
|
|
2055
|
-
trigger?: string;
|
|
2056
|
-
fallback?: string;
|
|
2057
|
-
};
|
|
2058
|
-
testId?: string;
|
|
2059
|
-
logoutTestId?: string;
|
|
2060
|
-
}
|
|
2061
|
-
declare function UserMenu({ user, status, items, onLogout, logoutLabel, align, classNames, testId, logoutTestId, }: UserMenuProps): React$1.JSX.Element;
|
|
2062
|
-
|
|
2063
1959
|
/**
|
|
2064
1960
|
* DocumentTable — a reusable AG Grid (community) block that renders a
|
|
2065
1961
|
* workspace's documents using the promoted entity pills.
|
|
@@ -2105,46 +2001,6 @@ interface DocumentTableProps {
|
|
|
2105
2001
|
}
|
|
2106
2002
|
declare function DocumentTable({ workspaceId, documents, onOpenDocument, openOnRowClick, selectedIds, onSelectionChange, height, extraColumns, className, }: DocumentTableProps): React__default.JSX.Element;
|
|
2107
2003
|
|
|
2108
|
-
/**
|
|
2109
|
-
* DocumentCard — the canonical document thumbnail tile.
|
|
2110
|
-
*
|
|
2111
|
-
* One tile, shared by every app: a full-bleed first-page thumbnail (falling back
|
|
2112
|
-
* to the file-type icon) with the selection checkbox, the actions menu, the
|
|
2113
|
-
* processing state and the document's name pill layered on top of it, rather
|
|
2114
|
-
* than a thumbnail box with a separate meta strip beneath.
|
|
2115
|
-
*
|
|
2116
|
-
* Presentational only — it takes a thumbnail, a status and callbacks, and knows
|
|
2117
|
-
* nothing about how documents are fetched. `DocumentGallery` binds it to data.
|
|
2118
|
-
*/
|
|
2119
|
-
|
|
2120
|
-
interface DocumentCardProps {
|
|
2121
|
-
/** The document — anything with a file name and optional metadata title. */
|
|
2122
|
-
doc: DocumentLike;
|
|
2123
|
-
/** First-page thumbnail (data URI or URL). Falls back to the file-type icon. */
|
|
2124
|
-
thumbnailUrl?: string | null;
|
|
2125
|
-
/** Processing status, e.g. `parsing` (overlay) or `completed` (corner marker). */
|
|
2126
|
-
status?: string | null;
|
|
2127
|
-
/** Renders the selection checkbox. Omit `onToggleSelect` to hide it entirely. */
|
|
2128
|
-
selected?: boolean;
|
|
2129
|
-
onToggleSelect?: () => void;
|
|
2130
|
-
/** Pins the "eye" on the name pill — this is the document open in the viewer. */
|
|
2131
|
-
viewing?: boolean;
|
|
2132
|
-
onOpen?: () => void;
|
|
2133
|
-
/** Actions menu, pinned to the tile's top-right corner. */
|
|
2134
|
-
actions?: React__default.ReactNode;
|
|
2135
|
-
/** Swaps the name pill for an inline rename field. */
|
|
2136
|
-
renaming?: boolean;
|
|
2137
|
-
onCommitRename?: (name: string) => void;
|
|
2138
|
-
onCancelRename?: () => void;
|
|
2139
|
-
/** Replaces the pill's default hover tooltip (e.g. an AI summary + labels). */
|
|
2140
|
-
tooltipContent?: React__default.ReactNode;
|
|
2141
|
-
/** Bottom-left marker slot (e.g. an "available offline" glyph). */
|
|
2142
|
-
marker?: React__default.ReactNode;
|
|
2143
|
-
testId?: string;
|
|
2144
|
-
className?: string;
|
|
2145
|
-
}
|
|
2146
|
-
declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSelect, viewing, onOpen, actions, renaming, onCommitRename, onCancelRename, tooltipContent, marker, testId, className, }: DocumentCardProps): React__default.JSX.Element;
|
|
2147
|
-
|
|
2148
2004
|
/**
|
|
2149
2005
|
* The ⋯ actions menu that sits in a document tile's top-right corner.
|
|
2150
2006
|
*
|
|
@@ -2591,4 +2447,4 @@ interface ArbiUiState {
|
|
|
2591
2447
|
}
|
|
2592
2448
|
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
2593
2449
|
|
|
2594
|
-
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, 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, type AspectOption, AudIcon, type AudioRecorderState, 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, DateSeparator, type DateSeparatorProps, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch,
|
|
2450
|
+
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, 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, type AspectOption, AudIcon, type AudioRecorderState, 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, DateSeparator, type DateSeparatorProps, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type NotificationTypeMeta, OpenAIIcon, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RenderMarkdown, type SearchChunk, SemanticSearch, type SemanticSearchProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UseAudioRecorderResult, type UseCameraStreamResult, type UseDirectMessagesResult, type UseVideoRecorderResult, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, XlsIcon, annotateThread, arbiQueryKeys, captureFrameAsBlob, cropImage, dayKey, describeActivity, formatElapsed, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceSentPhrase, hasVideoTrack, isWorkspaceNotificationType, parseActivityContent, redlineStats, textToArtifact, toRedlineMarkdown, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useCameraStream, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useFacts, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useVideoRecorder, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,12 +7,11 @@ 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 { EntityIconComponent
|
|
11
|
-
export { AgentBadge, AiMarkdown, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, 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, DictateContextValue, DictateProvider, DocumentEntity, DocumentEntityProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EntityIcon, EntityPill, EntityRegistryOverride, EntityType, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, IconToggleProps, Input, InputProps, Label, MarkdownRenderer, MarkdownRendererProps, MarkdownStreamingContext, NEUTRAL_GRAY, PLACEHOLDER_COLOR, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceDisplayStatus, PresenceLabel, Progress, ProjectEntity, ProjectEntityProps, ProjectRelation, RadioGroup, RadioGroupItem, Rag, RagDot, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, StatusBadgeComponent, StatusBadgeProps, StatusPill, StatusPillProps, StatusVariant, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, TagEntityProps, TagLike, Textarea, TextareaProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserEntityProps, VISIBILITY_ICONS, VisibilityIcon, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, configureRagLabels, configureStatusRegistry, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, markdownBaseComponents, splitMarkdownBlocks, toggleVariants } from './ui/index.js';
|
|
10
|
+
import { EntityIconComponent } from './ui/index.js';
|
|
11
|
+
export { AgentBadge, AiMarkdown, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, 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, DialogPresentation, DialogTitle, DialogTrigger, DictateContextValue, DictateProvider, DocumentCard, DocumentCardProps, DocumentEntity, DocumentEntityProps, DocumentLike, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EntityIcon, EntityPill, EntityRegistryOverride, EntityType, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, IconToggleProps, Input, InputProps, Label, MarkMenu, MarkMenuItem, MarkMenuProps, MarkdownRenderer, MarkdownRendererProps, MarkdownStreamingContext, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PassageCardProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceDisplayStatus, PresenceLabel, Progress, ProjectEntity, ProjectEntityProps, ProjectRelation, RadioGroup, RadioGroupItem, Rag, RagDot, RelevanceDot, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, StatusBadgeComponent, StatusBadgeProps, StatusPill, StatusPillProps, StatusVariant, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, TagEntityProps, TagLike, Textarea, TextareaProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserEntityProps, UserMenu, UserMenuItem, UserMenuProps, UserMenuStatus, VISIBILITY_ICONS, VisibilityIcon, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, configureRagLabels, configureStatusRegistry, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, markdownBaseComponents, splitMarkdownBlocks, toggleVariants } from './ui/index.js';
|
|
12
12
|
import { LucideIcon } from 'lucide-react';
|
|
13
13
|
import { Components } from 'react-markdown';
|
|
14
|
-
|
|
15
|
-
export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotifyOptions, T as Toaster, n as notify, s as seedNotifications, b as selectUnread, u as useNotify } from './index-4WwLZsQO.js';
|
|
14
|
+
export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-CcbVSNSP.js';
|
|
16
15
|
import { ColDef } from 'ag-grid-community';
|
|
17
16
|
export { ToasterProps, toast } from 'sonner';
|
|
18
17
|
import 'clsx';
|
|
@@ -1146,52 +1145,6 @@ interface SemanticSearchProps {
|
|
|
1146
1145
|
}
|
|
1147
1146
|
declare function SemanticSearch({ docIds, workspaceId, searchMode, placeholder, className, 'data-testid': testId, }: SemanticSearchProps): React$1.JSX.Element;
|
|
1148
1147
|
|
|
1149
|
-
/**
|
|
1150
|
-
* PassageCard — the card ("bubble") a single retrieved passage is rendered as.
|
|
1151
|
-
*
|
|
1152
|
-
* One presentation shared by every surface that lists retrieval hits: the
|
|
1153
|
-
* <SemanticSearch> block here and the ARBI-frontend monolith's SmartSearch
|
|
1154
|
-
* results. Those had drifted into two different looks for the same object; this
|
|
1155
|
-
* is the single one.
|
|
1156
|
-
*
|
|
1157
|
-
* The card owns the chrome only — the rounded border, the AI-accent hover /
|
|
1158
|
-
* focus / selected states, the header row and the relevance dot. What goes in
|
|
1159
|
-
* the header and how the snippet itself is rendered stays with the caller,
|
|
1160
|
-
* because those genuinely differ: the block shows a plain-text excerpt in a
|
|
1161
|
-
* narrow sidebar, the monolith renders markdown with a show-more toggle.
|
|
1162
|
-
*
|
|
1163
|
-
* Theming is semantic tokens only (shadcn + the AI-accent contract).
|
|
1164
|
-
*/
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* A dot conveying relevance — green (high) / amber (mid) / muted (low).
|
|
1168
|
-
*
|
|
1169
|
-
* The band is shown, the raw number is not: scores are not on a normalized 0-1
|
|
1170
|
-
* scale across search modes (BM25 keyword scores can exceed 1), so a printed
|
|
1171
|
-
* figure invites a comparison it cannot support. The value is kept in the
|
|
1172
|
-
* tooltip for anyone debugging a ranking.
|
|
1173
|
-
*/
|
|
1174
|
-
declare function RelevanceDot({ score }: {
|
|
1175
|
-
score?: number | null;
|
|
1176
|
-
}): React__default.JSX.Element | null;
|
|
1177
|
-
interface PassageCardProps {
|
|
1178
|
-
/** Left of the header row — the source affordance (document pill, page label). */
|
|
1179
|
-
header: React__default.ReactNode;
|
|
1180
|
-
/** Relevance score for the dot. Omit to hide it. */
|
|
1181
|
-
score?: number | null;
|
|
1182
|
-
/** Extra affordance pinned right of the dot (e.g. a hover-revealed open icon). */
|
|
1183
|
-
headerRight?: React__default.ReactNode;
|
|
1184
|
-
/** Marks the card as the currently open passage. */
|
|
1185
|
-
active?: boolean;
|
|
1186
|
-
onClick?: (e: React__default.MouseEvent) => void;
|
|
1187
|
-
/** Rendered under the snippet, outside the click target's typography. */
|
|
1188
|
-
footer?: React__default.ReactNode;
|
|
1189
|
-
className?: string;
|
|
1190
|
-
children: React__default.ReactNode;
|
|
1191
|
-
'data-testid'?: string;
|
|
1192
|
-
}
|
|
1193
|
-
declare function PassageCard({ header, score, headerRight, active, onClick, footer, className, children, 'data-testid': testId, }: PassageCardProps): React__default.JSX.Element;
|
|
1194
|
-
|
|
1195
1148
|
/**
|
|
1196
1149
|
* Ask questions grounded in a SINGLE document (docId scoped to one file), plus a
|
|
1197
1150
|
* one-click "suggest tags" action. Drop it in a document viewer.
|
|
@@ -1239,6 +1192,8 @@ interface CitationRendererProps {
|
|
|
1239
1192
|
useCitationState: () => CitationState;
|
|
1240
1193
|
onCloseCitation: () => void;
|
|
1241
1194
|
onDismissCitation: () => void;
|
|
1195
|
+
/** Tells the user a citation was copied (or could not be). Optional: copying is silent without it. */
|
|
1196
|
+
notify?: (message: string, kind?: 'success' | 'error' | 'info') => void;
|
|
1242
1197
|
}
|
|
1243
1198
|
declare const CitationRenderer: React__default.NamedExoticComponent<CitationRendererProps>;
|
|
1244
1199
|
|
|
@@ -1582,28 +1537,6 @@ interface ActivityFeedProps {
|
|
|
1582
1537
|
*/
|
|
1583
1538
|
declare function ActivityFeed({ limit, className, emptyLabel, enabled, 'data-testid': testId, }: ActivityFeedProps): React$1.JSX.Element;
|
|
1584
1539
|
|
|
1585
|
-
interface NotificationBellProps {
|
|
1586
|
-
/** Called with an entry's `href` when it's clicked (e.g. router navigate). */
|
|
1587
|
-
onNavigate?: (href: string) => void;
|
|
1588
|
-
/** Called after an entry is locally marked read — the hook for a backend
|
|
1589
|
-
* bridge to propagate read state upstream (filter by the ids it owns). */
|
|
1590
|
-
onMarkRead?: (id: string) => void;
|
|
1591
|
-
/** Called after "Mark all read" — same upstream-propagation hook. */
|
|
1592
|
-
onMarkAllRead?: () => void;
|
|
1593
|
-
/** Toast muting — the bell is where notification behaviour is controlled, so
|
|
1594
|
-
* the mute switch lives in its header. Omit `onToggleMute` to hide it. */
|
|
1595
|
-
muted?: boolean;
|
|
1596
|
-
onToggleMute?: () => void;
|
|
1597
|
-
/** Override per-variant glyph colours (e.g. brand emerald for success). */
|
|
1598
|
-
toneClassNames?: Partial<Record<NotifyVariant, string>>;
|
|
1599
|
-
emptyText?: string;
|
|
1600
|
-
/** Footer link to the app's full notification surface. Omit to hide. */
|
|
1601
|
-
onViewAll?: () => void;
|
|
1602
|
-
viewAllLabel?: string;
|
|
1603
|
-
testId?: string;
|
|
1604
|
-
}
|
|
1605
|
-
declare function NotificationBell({ onNavigate, onMarkRead, onMarkAllRead, muted, onToggleMute, toneClassNames, emptyText, onViewAll, viewAllLabel, testId, }: NotificationBellProps): React$1.JSX.Element;
|
|
1606
|
-
|
|
1607
1540
|
/**
|
|
1608
1541
|
* Direct-message view types.
|
|
1609
1542
|
*
|
|
@@ -1814,14 +1747,17 @@ declare function useDirectMessages(options?: {
|
|
|
1814
1747
|
enabled?: boolean;
|
|
1815
1748
|
}): UseDirectMessagesResult;
|
|
1816
1749
|
|
|
1750
|
+
/** Relative-time formatting shared by the notification bell and the DM kit (no type imports, so the
|
|
1751
|
+
* SDK-free `/shell` entry can use it). */
|
|
1752
|
+
/** Compact relative time, e.g. "2 hours ago", "just now". */
|
|
1753
|
+
declare function formatRelativeTime(iso: string): string;
|
|
1754
|
+
|
|
1817
1755
|
/** Small presentation helpers for the DM kit. */
|
|
1818
1756
|
|
|
1819
1757
|
/** Initials from a user's name (falls back to the email local-part). */
|
|
1820
1758
|
declare function userInitials(user: Pick<DmUser, 'given_name' | 'family_name' | 'email'>): string;
|
|
1821
1759
|
/** Full display name (falls back to the email local-part). */
|
|
1822
1760
|
declare function userDisplayName(user: Pick<DmUser, 'given_name' | 'family_name' | 'email'>): string;
|
|
1823
|
-
/** Compact relative time, e.g. "2 hours ago", "just now". */
|
|
1824
|
-
declare function formatRelativeTime(iso: string): string;
|
|
1825
1761
|
|
|
1826
1762
|
interface DateSeparatorProps {
|
|
1827
1763
|
children: ReactNode;
|
|
@@ -2020,46 +1956,6 @@ interface CommandPaletteValue {
|
|
|
2020
1956
|
*/
|
|
2021
1957
|
declare function useCommandPalette(): CommandPaletteValue;
|
|
2022
1958
|
|
|
2023
|
-
interface UserMenuItem {
|
|
2024
|
-
label: string;
|
|
2025
|
-
icon?: ComponentType<{
|
|
2026
|
-
className?: string;
|
|
2027
|
-
}>;
|
|
2028
|
-
onSelect: () => void;
|
|
2029
|
-
testId?: string;
|
|
2030
|
-
}
|
|
2031
|
-
/** Connection/presence state shown as a dot on the avatar and a line under the
|
|
2032
|
-
* email — the account menu is where "am I connected" belongs. */
|
|
2033
|
-
interface UserMenuStatus {
|
|
2034
|
-
/** Short state word — "Connected", "Working offline". */
|
|
2035
|
-
label: string;
|
|
2036
|
-
tone: 'online' | 'busy' | 'offline';
|
|
2037
|
-
/** Fine print under the label (e.g. the server domain). */
|
|
2038
|
-
detail?: string;
|
|
2039
|
-
testId?: string;
|
|
2040
|
-
}
|
|
2041
|
-
interface UserMenuProps {
|
|
2042
|
-
user: {
|
|
2043
|
-
name: string;
|
|
2044
|
-
email?: string | null;
|
|
2045
|
-
picture?: string | null;
|
|
2046
|
-
};
|
|
2047
|
-
/** Optional connection status: avatar dot + a line in the dropdown header. */
|
|
2048
|
-
status?: UserMenuStatus;
|
|
2049
|
-
/** Account actions above the sign-out divider (e.g. Settings). */
|
|
2050
|
-
items?: UserMenuItem[];
|
|
2051
|
-
onLogout: () => void;
|
|
2052
|
-
logoutLabel?: string;
|
|
2053
|
-
align?: 'start' | 'center' | 'end';
|
|
2054
|
-
classNames?: {
|
|
2055
|
-
trigger?: string;
|
|
2056
|
-
fallback?: string;
|
|
2057
|
-
};
|
|
2058
|
-
testId?: string;
|
|
2059
|
-
logoutTestId?: string;
|
|
2060
|
-
}
|
|
2061
|
-
declare function UserMenu({ user, status, items, onLogout, logoutLabel, align, classNames, testId, logoutTestId, }: UserMenuProps): React$1.JSX.Element;
|
|
2062
|
-
|
|
2063
1959
|
/**
|
|
2064
1960
|
* DocumentTable — a reusable AG Grid (community) block that renders a
|
|
2065
1961
|
* workspace's documents using the promoted entity pills.
|
|
@@ -2105,46 +2001,6 @@ interface DocumentTableProps {
|
|
|
2105
2001
|
}
|
|
2106
2002
|
declare function DocumentTable({ workspaceId, documents, onOpenDocument, openOnRowClick, selectedIds, onSelectionChange, height, extraColumns, className, }: DocumentTableProps): React__default.JSX.Element;
|
|
2107
2003
|
|
|
2108
|
-
/**
|
|
2109
|
-
* DocumentCard — the canonical document thumbnail tile.
|
|
2110
|
-
*
|
|
2111
|
-
* One tile, shared by every app: a full-bleed first-page thumbnail (falling back
|
|
2112
|
-
* to the file-type icon) with the selection checkbox, the actions menu, the
|
|
2113
|
-
* processing state and the document's name pill layered on top of it, rather
|
|
2114
|
-
* than a thumbnail box with a separate meta strip beneath.
|
|
2115
|
-
*
|
|
2116
|
-
* Presentational only — it takes a thumbnail, a status and callbacks, and knows
|
|
2117
|
-
* nothing about how documents are fetched. `DocumentGallery` binds it to data.
|
|
2118
|
-
*/
|
|
2119
|
-
|
|
2120
|
-
interface DocumentCardProps {
|
|
2121
|
-
/** The document — anything with a file name and optional metadata title. */
|
|
2122
|
-
doc: DocumentLike;
|
|
2123
|
-
/** First-page thumbnail (data URI or URL). Falls back to the file-type icon. */
|
|
2124
|
-
thumbnailUrl?: string | null;
|
|
2125
|
-
/** Processing status, e.g. `parsing` (overlay) or `completed` (corner marker). */
|
|
2126
|
-
status?: string | null;
|
|
2127
|
-
/** Renders the selection checkbox. Omit `onToggleSelect` to hide it entirely. */
|
|
2128
|
-
selected?: boolean;
|
|
2129
|
-
onToggleSelect?: () => void;
|
|
2130
|
-
/** Pins the "eye" on the name pill — this is the document open in the viewer. */
|
|
2131
|
-
viewing?: boolean;
|
|
2132
|
-
onOpen?: () => void;
|
|
2133
|
-
/** Actions menu, pinned to the tile's top-right corner. */
|
|
2134
|
-
actions?: React__default.ReactNode;
|
|
2135
|
-
/** Swaps the name pill for an inline rename field. */
|
|
2136
|
-
renaming?: boolean;
|
|
2137
|
-
onCommitRename?: (name: string) => void;
|
|
2138
|
-
onCancelRename?: () => void;
|
|
2139
|
-
/** Replaces the pill's default hover tooltip (e.g. an AI summary + labels). */
|
|
2140
|
-
tooltipContent?: React__default.ReactNode;
|
|
2141
|
-
/** Bottom-left marker slot (e.g. an "available offline" glyph). */
|
|
2142
|
-
marker?: React__default.ReactNode;
|
|
2143
|
-
testId?: string;
|
|
2144
|
-
className?: string;
|
|
2145
|
-
}
|
|
2146
|
-
declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSelect, viewing, onOpen, actions, renaming, onCommitRename, onCancelRename, tooltipContent, marker, testId, className, }: DocumentCardProps): React__default.JSX.Element;
|
|
2147
|
-
|
|
2148
2004
|
/**
|
|
2149
2005
|
* The ⋯ actions menu that sits in a document tile's top-right corner.
|
|
2150
2006
|
*
|
|
@@ -2591,4 +2447,4 @@ interface ArbiUiState {
|
|
|
2591
2447
|
}
|
|
2592
2448
|
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
2593
2449
|
|
|
2594
|
-
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, 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, type AspectOption, AudIcon, type AudioRecorderState, 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, DateSeparator, type DateSeparatorProps, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch,
|
|
2450
|
+
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, 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, type AspectOption, AudIcon, type AudioRecorderState, 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, DateSeparator, type DateSeparatorProps, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type NotificationTypeMeta, OpenAIIcon, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RenderMarkdown, type SearchChunk, SemanticSearch, type SemanticSearchProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UseAudioRecorderResult, type UseCameraStreamResult, type UseDirectMessagesResult, type UseVideoRecorderResult, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, XlsIcon, annotateThread, arbiQueryKeys, captureFrameAsBlob, cropImage, dayKey, describeActivity, formatElapsed, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceSentPhrase, hasVideoTrack, isWorkspaceNotificationType, parseActivityContent, redlineStats, textToArtifact, toRedlineMarkdown, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useCameraStream, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useFacts, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useVideoRecorder, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
|