@arbidocs/react 0.3.117 → 0.3.118

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.cts CHANGED
@@ -30,6 +30,8 @@ import * as SelectPrimitive from '@radix-ui/react-select';
30
30
  import { Components } from 'react-markdown';
31
31
  import * as lucide_react from 'lucide-react';
32
32
  import { LucideIcon, StickyNote } from 'lucide-react';
33
+ import { ToasterProps } from 'sonner';
34
+ export { ToasterProps, toast } from 'sonner';
33
35
  import { ClassValue } from 'clsx';
34
36
 
35
37
  interface ArbiProviderProps extends ArbiOptions {
@@ -2338,14 +2340,6 @@ interface ActivityFeedProps {
2338
2340
  declare function ActivityFeed({ limit, className, emptyLabel, enabled, 'data-testid': testId, }: ActivityFeedProps): React$1.JSX.Element;
2339
2341
 
2340
2342
  type NotifyVariant = 'success' | 'error' | 'info' | 'warning';
2341
- interface Toast {
2342
- id: string;
2343
- title: string;
2344
- description?: string;
2345
- variant: NotifyVariant;
2346
- /** ms before auto-dismiss; 0 keeps it until closed. */
2347
- duration: number;
2348
- }
2349
2343
  interface AppNotification {
2350
2344
  id: string;
2351
2345
  title: string;
@@ -2363,18 +2357,24 @@ interface NotifyOptions {
2363
2357
  record?: boolean;
2364
2358
  href?: string;
2365
2359
  duration?: number;
2360
+ /** A toast action button (sonner). */
2361
+ action?: {
2362
+ label: ReactNode;
2363
+ onClick: () => void;
2364
+ };
2365
+ /** Override the toast glyph (sonner). */
2366
+ icon?: ReactNode;
2366
2367
  }
2367
2368
  interface NotifyState {
2368
- toasts: Toast[];
2369
2369
  notifications: AppNotification[];
2370
- push: (variant: NotifyVariant, title: string, opts?: NotifyOptions) => string;
2371
- dismiss: (id: string) => void;
2372
2370
  markRead: (id: string) => void;
2373
2371
  markAllRead: () => void;
2374
2372
  removeNotification: (id: string) => void;
2375
2373
  clearNotifications: () => void;
2376
2374
  /** Replace the centre's history (e.g. seed a demo/initial set). */
2377
2375
  seed: (items: AppNotification[]) => void;
2376
+ /** Record a centre entry (used by `notify.*`; sonner renders the toast). */
2377
+ record: (note: AppNotification) => void;
2378
2378
  }
2379
2379
  declare const useNotify: zustand.UseBoundStore<zustand.StoreApi<NotifyState>>;
2380
2380
  declare const notify: {
@@ -2400,14 +2400,7 @@ interface NotificationBellProps {
2400
2400
  }
2401
2401
  declare function NotificationBell({ onNavigate, toneClassNames, emptyText, testId, }: NotificationBellProps): React$1.JSX.Element;
2402
2402
 
2403
- interface ToasterProps {
2404
- /** Container classes (position/offset). Default fixes it bottom-right. */
2405
- className?: string;
2406
- /** Override per-variant glyph colours (e.g. brand emerald for success). */
2407
- toneClassNames?: Partial<Record<NotifyVariant, string>>;
2408
- testId?: string;
2409
- }
2410
- declare function Toaster({ className, toneClassNames, testId }: ToasterProps): React$1.JSX.Element;
2403
+ declare function Toaster({ toastOptions, ...props }: ToasterProps): React$1.JSX.Element;
2411
2404
 
2412
2405
  /**
2413
2406
  * Direct-message view types.
@@ -2847,4 +2840,4 @@ declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState
2847
2840
 
2848
2841
  declare function cn(...inputs: ClassValue[]): string;
2849
2842
 
2850
- export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, AiMarkdown, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, ChatBubble, type ChatBubbleProps, Checkbox, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, CommandSeparator, CommandShortcut, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, Input, Label, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PresenceDisplayStatus, Progress, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RadioGroup, RadioGroupItem, type 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, type Toast, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToolResponses, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, arbiQueryKeys, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, cropImage, describeActivity, formatRelativeTime, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, markdownBaseComponents, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, toggleVariants, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useHealth, useMemories, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceChronology, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
2843
+ export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, AiMarkdown, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, ChatBubble, type ChatBubbleProps, Checkbox, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, CommandSeparator, CommandShortcut, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, Input, Label, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PresenceDisplayStatus, Progress, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RadioGroup, RadioGroupItem, type 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, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToolResponses, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, arbiQueryKeys, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, cropImage, describeActivity, formatRelativeTime, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, markdownBaseComponents, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, toggleVariants, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useHealth, useMemories, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceChronology, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
package/dist/index.d.ts CHANGED
@@ -30,6 +30,8 @@ import * as SelectPrimitive from '@radix-ui/react-select';
30
30
  import { Components } from 'react-markdown';
31
31
  import * as lucide_react from 'lucide-react';
32
32
  import { LucideIcon, StickyNote } from 'lucide-react';
33
+ import { ToasterProps } from 'sonner';
34
+ export { ToasterProps, toast } from 'sonner';
33
35
  import { ClassValue } from 'clsx';
34
36
 
35
37
  interface ArbiProviderProps extends ArbiOptions {
@@ -2338,14 +2340,6 @@ interface ActivityFeedProps {
2338
2340
  declare function ActivityFeed({ limit, className, emptyLabel, enabled, 'data-testid': testId, }: ActivityFeedProps): React$1.JSX.Element;
2339
2341
 
2340
2342
  type NotifyVariant = 'success' | 'error' | 'info' | 'warning';
2341
- interface Toast {
2342
- id: string;
2343
- title: string;
2344
- description?: string;
2345
- variant: NotifyVariant;
2346
- /** ms before auto-dismiss; 0 keeps it until closed. */
2347
- duration: number;
2348
- }
2349
2343
  interface AppNotification {
2350
2344
  id: string;
2351
2345
  title: string;
@@ -2363,18 +2357,24 @@ interface NotifyOptions {
2363
2357
  record?: boolean;
2364
2358
  href?: string;
2365
2359
  duration?: number;
2360
+ /** A toast action button (sonner). */
2361
+ action?: {
2362
+ label: ReactNode;
2363
+ onClick: () => void;
2364
+ };
2365
+ /** Override the toast glyph (sonner). */
2366
+ icon?: ReactNode;
2366
2367
  }
2367
2368
  interface NotifyState {
2368
- toasts: Toast[];
2369
2369
  notifications: AppNotification[];
2370
- push: (variant: NotifyVariant, title: string, opts?: NotifyOptions) => string;
2371
- dismiss: (id: string) => void;
2372
2370
  markRead: (id: string) => void;
2373
2371
  markAllRead: () => void;
2374
2372
  removeNotification: (id: string) => void;
2375
2373
  clearNotifications: () => void;
2376
2374
  /** Replace the centre's history (e.g. seed a demo/initial set). */
2377
2375
  seed: (items: AppNotification[]) => void;
2376
+ /** Record a centre entry (used by `notify.*`; sonner renders the toast). */
2377
+ record: (note: AppNotification) => void;
2378
2378
  }
2379
2379
  declare const useNotify: zustand.UseBoundStore<zustand.StoreApi<NotifyState>>;
2380
2380
  declare const notify: {
@@ -2400,14 +2400,7 @@ interface NotificationBellProps {
2400
2400
  }
2401
2401
  declare function NotificationBell({ onNavigate, toneClassNames, emptyText, testId, }: NotificationBellProps): React$1.JSX.Element;
2402
2402
 
2403
- interface ToasterProps {
2404
- /** Container classes (position/offset). Default fixes it bottom-right. */
2405
- className?: string;
2406
- /** Override per-variant glyph colours (e.g. brand emerald for success). */
2407
- toneClassNames?: Partial<Record<NotifyVariant, string>>;
2408
- testId?: string;
2409
- }
2410
- declare function Toaster({ className, toneClassNames, testId }: ToasterProps): React$1.JSX.Element;
2403
+ declare function Toaster({ toastOptions, ...props }: ToasterProps): React$1.JSX.Element;
2411
2404
 
2412
2405
  /**
2413
2406
  * Direct-message view types.
@@ -2847,4 +2840,4 @@ declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState
2847
2840
 
2848
2841
  declare function cn(...inputs: ClassValue[]): string;
2849
2842
 
2850
- export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, AiMarkdown, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, ChatBubble, type ChatBubbleProps, Checkbox, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, CommandSeparator, CommandShortcut, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, Input, Label, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PresenceDisplayStatus, Progress, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RadioGroup, RadioGroupItem, type 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, type Toast, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToolResponses, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, arbiQueryKeys, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, cropImage, describeActivity, formatRelativeTime, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, markdownBaseComponents, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, toggleVariants, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useHealth, useMemories, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceChronology, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
2843
+ export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, AiMarkdown, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, ChatBubble, type ChatBubbleProps, Checkbox, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, CommandSeparator, CommandShortcut, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, Input, Label, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PresenceDisplayStatus, Progress, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RadioGroup, RadioGroupItem, type 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, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToolResponses, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, arbiQueryKeys, badgeVariants, buttonVariants, cardVariants, cn, configureEntityRegistry, cropImage, describeActivity, formatRelativeTime, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, markdownBaseComponents, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, toggleVariants, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useHealth, useMemories, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceChronology, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
package/dist/index.js CHANGED
@@ -36,6 +36,8 @@ import ReactMarkdown from 'react-markdown';
36
36
  import remarkGfm from 'remark-gfm';
37
37
  import rehypeRaw from 'rehype-raw';
38
38
  import { AnimatePresence, motion } from 'framer-motion';
39
+ import { Toaster as Toaster$1, toast } from 'sonner';
40
+ export { toast } from 'sonner';
39
41
  import Cropper from 'react-easy-crop';
40
42
  import { AgGridReact } from 'ag-grid-react';
41
43
  import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
@@ -5742,41 +5744,38 @@ function ActivityFeed({
5742
5744
  var seq = 0;
5743
5745
  var uid = () => `n${Date.now().toString(36)}${(seq++).toString(36)}`;
5744
5746
  var useNotify = create((set) => ({
5745
- toasts: [],
5746
5747
  notifications: [],
5747
- push: (variant, title, opts = {}) => {
5748
- const id = uid();
5749
- const duration = opts.duration ?? (variant === "error" ? 7e3 : 4500);
5750
- set((s) => {
5751
- const toast = { id, title, description: opts.description, variant, duration };
5752
- const next = { toasts: [...s.toasts, toast] };
5753
- if (opts.record !== false) {
5754
- const note = {
5755
- id,
5756
- title,
5757
- description: opts.description,
5758
- variant,
5759
- ts: Date.now(),
5760
- read: false,
5761
- href: opts.href
5762
- };
5763
- next.notifications = [note, ...s.notifications].slice(0, 50);
5764
- }
5765
- return next;
5766
- });
5767
- return id;
5768
- },
5769
- dismiss: (id) => set((s) => ({ toasts: s.toasts.filter((t) => t.id !== id) })),
5770
5748
  markRead: (id) => set((s) => ({
5771
5749
  notifications: s.notifications.map((n) => n.id === id ? { ...n, read: true } : n)
5772
5750
  })),
5773
5751
  markAllRead: () => set((s) => ({ notifications: s.notifications.map((n) => ({ ...n, read: true })) })),
5774
5752
  removeNotification: (id) => set((s) => ({ notifications: s.notifications.filter((n) => n.id !== id) })),
5775
5753
  clearNotifications: () => set({ notifications: [] }),
5776
- seed: (items) => set({ notifications: items })
5754
+ seed: (items) => set({ notifications: items }),
5755
+ record: (note) => set((s) => ({ notifications: [note, ...s.notifications].slice(0, 50) }))
5777
5756
  }));
5778
5757
  function make(variant) {
5779
- return (title, opts) => useNotify.getState().push(variant, title, opts);
5758
+ return (title, opts = {}) => {
5759
+ toast[variant](title, {
5760
+ description: opts.description,
5761
+ duration: opts.duration,
5762
+ action: opts.action,
5763
+ icon: opts.icon
5764
+ });
5765
+ const id = uid();
5766
+ if (opts.record !== false) {
5767
+ useNotify.getState().record({
5768
+ id,
5769
+ title,
5770
+ description: opts.description,
5771
+ variant,
5772
+ ts: Date.now(),
5773
+ read: false,
5774
+ href: opts.href
5775
+ });
5776
+ }
5777
+ return id;
5778
+ };
5780
5779
  }
5781
5780
  var notify = {
5782
5781
  success: make("success"),
@@ -5913,69 +5912,21 @@ function NotificationBell({
5913
5912
  ] })
5914
5913
  ] });
5915
5914
  }
5916
- var GLYPH2 = {
5917
- success: CheckCircle2,
5918
- error: XCircle,
5919
- warning: AlertTriangle,
5920
- info: Info
5915
+ var DEFAULT_TOAST_OPTIONS = {
5916
+ classNames: {
5917
+ toast: "group toast group-[.toaster]:bg-card group-[.toaster]:text-foreground group-[.toaster]:border group-[.toaster]:border-border group-[.toaster]:shadow-lg group-[.toaster]:rounded-lg",
5918
+ description: "group-[.toast]:text-muted-foreground",
5919
+ actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
5920
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
5921
+ }
5921
5922
  };
5922
- function Toaster({ className, toneClassNames, testId = "toaster" }) {
5923
- const toasts = useNotify((s) => s.toasts);
5923
+ function Toaster({ toastOptions, ...props }) {
5924
5924
  return /* @__PURE__ */ jsx(
5925
- "div",
5925
+ Toaster$1,
5926
5926
  {
5927
- className: cn(
5928
- "pointer-events-none fixed bottom-4 right-4 z-[100] flex w-[min(92vw,380px)] flex-col gap-2.5",
5929
- className
5930
- ),
5931
- "data-testid": testId,
5932
- "aria-live": "polite",
5933
- "aria-atomic": "false",
5934
- children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: toasts.map((t) => /* @__PURE__ */ jsx(ToastCard, { toast: t, toneClassNames }, t.id)) })
5935
- }
5936
- );
5937
- }
5938
- function ToastCard({
5939
- toast,
5940
- toneClassNames
5941
- }) {
5942
- const dismiss = useNotify((s) => s.dismiss);
5943
- const Glyph = GLYPH2[toast.variant];
5944
- const tone = toneClassNames?.[toast.variant] ?? DEFAULT_NOTIFY_TONE[toast.variant];
5945
- useEffect(() => {
5946
- if (!toast.duration) return;
5947
- const timer = setTimeout(() => dismiss(toast.id), toast.duration);
5948
- return () => clearTimeout(timer);
5949
- }, [toast.id, toast.duration, dismiss]);
5950
- return /* @__PURE__ */ jsxs(
5951
- motion.div,
5952
- {
5953
- layout: true,
5954
- initial: { opacity: 0, y: 16, scale: 0.97 },
5955
- animate: { opacity: 1, y: 0, scale: 1 },
5956
- exit: { opacity: 0, x: 24, scale: 0.97, transition: { duration: 0.18 } },
5957
- transition: { type: "spring", stiffness: 380, damping: 30 },
5958
- className: "pointer-events-auto flex items-start gap-3 rounded-lg border border-border bg-card p-3.5 shadow-lg",
5959
- "data-testid": `toast-${toast.variant}`,
5960
- "data-toast": "",
5961
- role: toast.variant === "error" ? "alert" : "status",
5962
- children: [
5963
- /* @__PURE__ */ jsx(Glyph, { className: cn("mt-0.5 size-[18px] shrink-0", tone) }),
5964
- /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
5965
- /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold leading-snug text-foreground", children: toast.title }),
5966
- toast.description && /* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs leading-relaxed text-muted-foreground", children: toast.description })
5967
- ] }),
5968
- /* @__PURE__ */ jsx(
5969
- "button",
5970
- {
5971
- onClick: () => dismiss(toast.id),
5972
- className: "shrink-0 rounded p-0.5 text-muted-foreground/70 transition-colors hover:bg-accent hover:text-foreground",
5973
- "aria-label": "Dismiss",
5974
- "data-testid": "toast-dismiss",
5975
- children: /* @__PURE__ */ jsx(X, { className: "size-4" })
5976
- }
5977
- )
5978
- ]
5927
+ className: "toaster group",
5928
+ toastOptions: toastOptions ?? DEFAULT_TOAST_OPTIONS,
5929
+ ...props
5979
5930
  }
5980
5931
  );
5981
5932
  }