@arbidocs/react 0.3.160 → 0.3.161
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.cjs +220 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -6
- package/dist/index.d.ts +49 -6
- package/dist/index.js +214 -86
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1658,7 +1658,7 @@ declare function getTagTypeLabel(type?: string | null): string;
|
|
|
1658
1658
|
* "Common" keeps the neutral, non-inverted muted pill.
|
|
1659
1659
|
*
|
|
1660
1660
|
* Promoted from the ARBI app and DECOUPLED: no store/stripe deps. The icon
|
|
1661
|
-
* defaults to
|
|
1661
|
+
* defaults to the `CreditCard` glyph and can be overridden via `icon`, and
|
|
1662
1662
|
* the display text via `label` (falls back to `name`) so consumers can relabel
|
|
1663
1663
|
* a "project" as a "matter", "case", etc.
|
|
1664
1664
|
*/
|
|
@@ -1668,7 +1668,7 @@ interface ProjectEntityProps {
|
|
|
1668
1668
|
name: string;
|
|
1669
1669
|
/** Display text override (defaults to `name`) — lets a consumer relabel. */
|
|
1670
1670
|
label?: string;
|
|
1671
|
-
/** Icon override (defaults to
|
|
1671
|
+
/** Icon override (defaults to the CreditCard glyph). */
|
|
1672
1672
|
icon?: React__default.ReactNode;
|
|
1673
1673
|
subscription?: string;
|
|
1674
1674
|
hasCollaborators?: boolean;
|
|
@@ -2260,6 +2260,17 @@ interface AppNotification {
|
|
|
2260
2260
|
read: boolean;
|
|
2261
2261
|
/** Optional in-app link the entry deep-links to (passed to the bell's onNavigate). */
|
|
2262
2262
|
href?: string;
|
|
2263
|
+
/** Optional click action — wins over `href` when both are present. Session
|
|
2264
|
+
* history only; entries are never serialized, so a closure is safe here. */
|
|
2265
|
+
onSelect?: () => void;
|
|
2266
|
+
/** Routine session activity ("Opening workspace…", "Saved") — kept for the
|
|
2267
|
+
* log but not something that demands attention: excluded from the unread
|
|
2268
|
+
* badge and from the bell's default list (shown under "All activity"). */
|
|
2269
|
+
ambient?: boolean;
|
|
2270
|
+
/** Where the entry comes from. Session entries (`record`) have none; a
|
|
2271
|
+
* backend bridge stamps its own (e.g. 'server') so {@link syncSource} can
|
|
2272
|
+
* replace exactly its slice on every refetch without touching the rest. */
|
|
2273
|
+
source?: string;
|
|
2263
2274
|
}
|
|
2264
2275
|
interface NotifyOptions {
|
|
2265
2276
|
description?: string;
|
|
@@ -2274,6 +2285,8 @@ interface NotifyOptions {
|
|
|
2274
2285
|
};
|
|
2275
2286
|
/** Override the toast glyph (sonner). */
|
|
2276
2287
|
icon?: ReactNode;
|
|
2288
|
+
/** Record as routine session activity (see {@link AppNotification.ambient}). */
|
|
2289
|
+
ambient?: boolean;
|
|
2277
2290
|
}
|
|
2278
2291
|
interface NotifyState {
|
|
2279
2292
|
notifications: AppNotification[];
|
|
@@ -2285,6 +2298,11 @@ interface NotifyState {
|
|
|
2285
2298
|
seed: (items: AppNotification[]) => void;
|
|
2286
2299
|
/** Record a centre entry (used by `notify.*`; sonner renders the toast). */
|
|
2287
2300
|
record: (note: AppNotification) => void;
|
|
2301
|
+
/** Reconcile one source's slice with fresh truth (e.g. a backend list on
|
|
2302
|
+
* every refetch): entries stamped with `source` are replaced wholesale —
|
|
2303
|
+
* including their read state, which the source owns — while entries from
|
|
2304
|
+
* other sources (session activity) stay untouched. Newest first. */
|
|
2305
|
+
syncSource: (source: string, items: AppNotification[]) => void;
|
|
2288
2306
|
}
|
|
2289
2307
|
declare const useNotify: zustand.UseBoundStore<zustand.StoreApi<NotifyState>>;
|
|
2290
2308
|
declare const notify: {
|
|
@@ -2295,7 +2313,8 @@ declare const notify: {
|
|
|
2295
2313
|
};
|
|
2296
2314
|
/** Replace the notification centre's history — inject a seed/initial set. */
|
|
2297
2315
|
declare function seedNotifications(items: AppNotification[]): void;
|
|
2298
|
-
/** Unread count selector for the topbar bell
|
|
2316
|
+
/** Unread count selector for the topbar bell — ambient session activity never
|
|
2317
|
+
* demands attention, so it never counts. */
|
|
2299
2318
|
declare const selectUnread: (s: NotifyState) => number;
|
|
2300
2319
|
/** Default glyph colour per variant (raw palette, override via `toneClassNames`). */
|
|
2301
2320
|
declare const DEFAULT_NOTIFY_TONE: Record<NotifyVariant, string>;
|
|
@@ -2303,12 +2322,24 @@ declare const DEFAULT_NOTIFY_TONE: Record<NotifyVariant, string>;
|
|
|
2303
2322
|
interface NotificationBellProps {
|
|
2304
2323
|
/** Called with an entry's `href` when it's clicked (e.g. router navigate). */
|
|
2305
2324
|
onNavigate?: (href: string) => void;
|
|
2325
|
+
/** Called after an entry is locally marked read — the hook for a backend
|
|
2326
|
+
* bridge to propagate read state upstream (filter by the ids it owns). */
|
|
2327
|
+
onMarkRead?: (id: string) => void;
|
|
2328
|
+
/** Called after "Mark all read" — same upstream-propagation hook. */
|
|
2329
|
+
onMarkAllRead?: () => void;
|
|
2330
|
+
/** Toast muting — the bell is where notification behaviour is controlled, so
|
|
2331
|
+
* the mute switch lives in its header. Omit `onToggleMute` to hide it. */
|
|
2332
|
+
muted?: boolean;
|
|
2333
|
+
onToggleMute?: () => void;
|
|
2306
2334
|
/** Override per-variant glyph colours (e.g. brand emerald for success). */
|
|
2307
2335
|
toneClassNames?: Partial<Record<NotifyVariant, string>>;
|
|
2308
2336
|
emptyText?: string;
|
|
2337
|
+
/** Footer link to the app's full notification surface. Omit to hide. */
|
|
2338
|
+
onViewAll?: () => void;
|
|
2339
|
+
viewAllLabel?: string;
|
|
2309
2340
|
testId?: string;
|
|
2310
2341
|
}
|
|
2311
|
-
declare function NotificationBell({ onNavigate, toneClassNames, emptyText, testId, }: NotificationBellProps): React$1.JSX.Element;
|
|
2342
|
+
declare function NotificationBell({ onNavigate, onMarkRead, onMarkAllRead, muted, onToggleMute, toneClassNames, emptyText, onViewAll, viewAllLabel, testId, }: NotificationBellProps): React$1.JSX.Element;
|
|
2312
2343
|
|
|
2313
2344
|
declare function Toaster({ toastOptions, ...props }: ToasterProps): React$1.JSX.Element;
|
|
2314
2345
|
|
|
@@ -2736,12 +2767,24 @@ interface UserMenuItem {
|
|
|
2736
2767
|
onSelect: () => void;
|
|
2737
2768
|
testId?: string;
|
|
2738
2769
|
}
|
|
2770
|
+
/** Connection/presence state shown as a dot on the avatar and a line under the
|
|
2771
|
+
* email — the account menu is where "am I connected" belongs. */
|
|
2772
|
+
interface UserMenuStatus {
|
|
2773
|
+
/** Short state word — "Connected", "Working offline". */
|
|
2774
|
+
label: string;
|
|
2775
|
+
tone: 'online' | 'busy' | 'offline';
|
|
2776
|
+
/** Fine print under the label (e.g. the server domain). */
|
|
2777
|
+
detail?: string;
|
|
2778
|
+
testId?: string;
|
|
2779
|
+
}
|
|
2739
2780
|
interface UserMenuProps {
|
|
2740
2781
|
user: {
|
|
2741
2782
|
name: string;
|
|
2742
2783
|
email?: string | null;
|
|
2743
2784
|
picture?: string | null;
|
|
2744
2785
|
};
|
|
2786
|
+
/** Optional connection status: avatar dot + a line in the dropdown header. */
|
|
2787
|
+
status?: UserMenuStatus;
|
|
2745
2788
|
/** Account actions above the sign-out divider (e.g. Settings). */
|
|
2746
2789
|
items?: UserMenuItem[];
|
|
2747
2790
|
onLogout: () => void;
|
|
@@ -2754,7 +2797,7 @@ interface UserMenuProps {
|
|
|
2754
2797
|
testId?: string;
|
|
2755
2798
|
logoutTestId?: string;
|
|
2756
2799
|
}
|
|
2757
|
-
declare function UserMenu({ user, items, onLogout, logoutLabel, align, classNames, testId, logoutTestId, }: UserMenuProps): React$1.JSX.Element;
|
|
2800
|
+
declare function UserMenu({ user, status, items, onLogout, logoutLabel, align, classNames, testId, logoutTestId, }: UserMenuProps): React$1.JSX.Element;
|
|
2758
2801
|
|
|
2759
2802
|
/**
|
|
2760
2803
|
* DocumentTable — a reusable AG Grid (community) block that renders a
|
|
@@ -2944,4 +2987,4 @@ interface ArbiUiState {
|
|
|
2944
2987
|
}
|
|
2945
2988
|
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
2946
2989
|
|
|
2947
|
-
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, AgentBadge, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, BASE_COLORS, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, 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, DocumentCard, DocumentCardMenu, type DocumentCardMenuProps, type DocumentCardProps, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PassageCard, type PassageCardProps, PdfIcon, type PresenceDisplayStatus, PresenceLabel, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type Rag, RagDot, RelevanceDot, type RenderMarkdown, type SearchChunk, SemanticSearch, type SemanticSearchProps, type StatusBadgeComponent, type StatusBadgeProps, StatusPill, type StatusPillProps, type StatusVariant, TAG_TYPE_ICONS, TAG_TYPE_LABELS, TagEntity, type TagEntityProps, type TagLike, type ThreadAccessors, type ThreadItem, Toaster, type ToolResponses, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, annotateThread, arbiQueryKeys, configureEntityRegistry, configureRagLabels, configureStatusRegistry, cropImage, dayKey, describeActivity, formatRelativeTime, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useFacts, useHealth, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
|
|
2990
|
+
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, AgentBadge, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, BASE_COLORS, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, 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, DocumentCard, DocumentCardMenu, type DocumentCardMenuProps, type DocumentCardProps, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PassageCard, type PassageCardProps, PdfIcon, type PresenceDisplayStatus, PresenceLabel, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type Rag, RagDot, RelevanceDot, type RenderMarkdown, type SearchChunk, SemanticSearch, type SemanticSearchProps, type StatusBadgeComponent, type StatusBadgeProps, StatusPill, type StatusPillProps, type StatusVariant, TAG_TYPE_ICONS, TAG_TYPE_LABELS, TagEntity, type TagEntityProps, type TagLike, type ThreadAccessors, type ThreadItem, Toaster, type ToolResponses, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuStatus, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, annotateThread, arbiQueryKeys, configureEntityRegistry, configureRagLabels, configureStatusRegistry, cropImage, dayKey, describeActivity, formatRelativeTime, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useFacts, useHealth, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
|
package/dist/index.d.ts
CHANGED
|
@@ -1658,7 +1658,7 @@ declare function getTagTypeLabel(type?: string | null): string;
|
|
|
1658
1658
|
* "Common" keeps the neutral, non-inverted muted pill.
|
|
1659
1659
|
*
|
|
1660
1660
|
* Promoted from the ARBI app and DECOUPLED: no store/stripe deps. The icon
|
|
1661
|
-
* defaults to
|
|
1661
|
+
* defaults to the `CreditCard` glyph and can be overridden via `icon`, and
|
|
1662
1662
|
* the display text via `label` (falls back to `name`) so consumers can relabel
|
|
1663
1663
|
* a "project" as a "matter", "case", etc.
|
|
1664
1664
|
*/
|
|
@@ -1668,7 +1668,7 @@ interface ProjectEntityProps {
|
|
|
1668
1668
|
name: string;
|
|
1669
1669
|
/** Display text override (defaults to `name`) — lets a consumer relabel. */
|
|
1670
1670
|
label?: string;
|
|
1671
|
-
/** Icon override (defaults to
|
|
1671
|
+
/** Icon override (defaults to the CreditCard glyph). */
|
|
1672
1672
|
icon?: React__default.ReactNode;
|
|
1673
1673
|
subscription?: string;
|
|
1674
1674
|
hasCollaborators?: boolean;
|
|
@@ -2260,6 +2260,17 @@ interface AppNotification {
|
|
|
2260
2260
|
read: boolean;
|
|
2261
2261
|
/** Optional in-app link the entry deep-links to (passed to the bell's onNavigate). */
|
|
2262
2262
|
href?: string;
|
|
2263
|
+
/** Optional click action — wins over `href` when both are present. Session
|
|
2264
|
+
* history only; entries are never serialized, so a closure is safe here. */
|
|
2265
|
+
onSelect?: () => void;
|
|
2266
|
+
/** Routine session activity ("Opening workspace…", "Saved") — kept for the
|
|
2267
|
+
* log but not something that demands attention: excluded from the unread
|
|
2268
|
+
* badge and from the bell's default list (shown under "All activity"). */
|
|
2269
|
+
ambient?: boolean;
|
|
2270
|
+
/** Where the entry comes from. Session entries (`record`) have none; a
|
|
2271
|
+
* backend bridge stamps its own (e.g. 'server') so {@link syncSource} can
|
|
2272
|
+
* replace exactly its slice on every refetch without touching the rest. */
|
|
2273
|
+
source?: string;
|
|
2263
2274
|
}
|
|
2264
2275
|
interface NotifyOptions {
|
|
2265
2276
|
description?: string;
|
|
@@ -2274,6 +2285,8 @@ interface NotifyOptions {
|
|
|
2274
2285
|
};
|
|
2275
2286
|
/** Override the toast glyph (sonner). */
|
|
2276
2287
|
icon?: ReactNode;
|
|
2288
|
+
/** Record as routine session activity (see {@link AppNotification.ambient}). */
|
|
2289
|
+
ambient?: boolean;
|
|
2277
2290
|
}
|
|
2278
2291
|
interface NotifyState {
|
|
2279
2292
|
notifications: AppNotification[];
|
|
@@ -2285,6 +2298,11 @@ interface NotifyState {
|
|
|
2285
2298
|
seed: (items: AppNotification[]) => void;
|
|
2286
2299
|
/** Record a centre entry (used by `notify.*`; sonner renders the toast). */
|
|
2287
2300
|
record: (note: AppNotification) => void;
|
|
2301
|
+
/** Reconcile one source's slice with fresh truth (e.g. a backend list on
|
|
2302
|
+
* every refetch): entries stamped with `source` are replaced wholesale —
|
|
2303
|
+
* including their read state, which the source owns — while entries from
|
|
2304
|
+
* other sources (session activity) stay untouched. Newest first. */
|
|
2305
|
+
syncSource: (source: string, items: AppNotification[]) => void;
|
|
2288
2306
|
}
|
|
2289
2307
|
declare const useNotify: zustand.UseBoundStore<zustand.StoreApi<NotifyState>>;
|
|
2290
2308
|
declare const notify: {
|
|
@@ -2295,7 +2313,8 @@ declare const notify: {
|
|
|
2295
2313
|
};
|
|
2296
2314
|
/** Replace the notification centre's history — inject a seed/initial set. */
|
|
2297
2315
|
declare function seedNotifications(items: AppNotification[]): void;
|
|
2298
|
-
/** Unread count selector for the topbar bell
|
|
2316
|
+
/** Unread count selector for the topbar bell — ambient session activity never
|
|
2317
|
+
* demands attention, so it never counts. */
|
|
2299
2318
|
declare const selectUnread: (s: NotifyState) => number;
|
|
2300
2319
|
/** Default glyph colour per variant (raw palette, override via `toneClassNames`). */
|
|
2301
2320
|
declare const DEFAULT_NOTIFY_TONE: Record<NotifyVariant, string>;
|
|
@@ -2303,12 +2322,24 @@ declare const DEFAULT_NOTIFY_TONE: Record<NotifyVariant, string>;
|
|
|
2303
2322
|
interface NotificationBellProps {
|
|
2304
2323
|
/** Called with an entry's `href` when it's clicked (e.g. router navigate). */
|
|
2305
2324
|
onNavigate?: (href: string) => void;
|
|
2325
|
+
/** Called after an entry is locally marked read — the hook for a backend
|
|
2326
|
+
* bridge to propagate read state upstream (filter by the ids it owns). */
|
|
2327
|
+
onMarkRead?: (id: string) => void;
|
|
2328
|
+
/** Called after "Mark all read" — same upstream-propagation hook. */
|
|
2329
|
+
onMarkAllRead?: () => void;
|
|
2330
|
+
/** Toast muting — the bell is where notification behaviour is controlled, so
|
|
2331
|
+
* the mute switch lives in its header. Omit `onToggleMute` to hide it. */
|
|
2332
|
+
muted?: boolean;
|
|
2333
|
+
onToggleMute?: () => void;
|
|
2306
2334
|
/** Override per-variant glyph colours (e.g. brand emerald for success). */
|
|
2307
2335
|
toneClassNames?: Partial<Record<NotifyVariant, string>>;
|
|
2308
2336
|
emptyText?: string;
|
|
2337
|
+
/** Footer link to the app's full notification surface. Omit to hide. */
|
|
2338
|
+
onViewAll?: () => void;
|
|
2339
|
+
viewAllLabel?: string;
|
|
2309
2340
|
testId?: string;
|
|
2310
2341
|
}
|
|
2311
|
-
declare function NotificationBell({ onNavigate, toneClassNames, emptyText, testId, }: NotificationBellProps): React$1.JSX.Element;
|
|
2342
|
+
declare function NotificationBell({ onNavigate, onMarkRead, onMarkAllRead, muted, onToggleMute, toneClassNames, emptyText, onViewAll, viewAllLabel, testId, }: NotificationBellProps): React$1.JSX.Element;
|
|
2312
2343
|
|
|
2313
2344
|
declare function Toaster({ toastOptions, ...props }: ToasterProps): React$1.JSX.Element;
|
|
2314
2345
|
|
|
@@ -2736,12 +2767,24 @@ interface UserMenuItem {
|
|
|
2736
2767
|
onSelect: () => void;
|
|
2737
2768
|
testId?: string;
|
|
2738
2769
|
}
|
|
2770
|
+
/** Connection/presence state shown as a dot on the avatar and a line under the
|
|
2771
|
+
* email — the account menu is where "am I connected" belongs. */
|
|
2772
|
+
interface UserMenuStatus {
|
|
2773
|
+
/** Short state word — "Connected", "Working offline". */
|
|
2774
|
+
label: string;
|
|
2775
|
+
tone: 'online' | 'busy' | 'offline';
|
|
2776
|
+
/** Fine print under the label (e.g. the server domain). */
|
|
2777
|
+
detail?: string;
|
|
2778
|
+
testId?: string;
|
|
2779
|
+
}
|
|
2739
2780
|
interface UserMenuProps {
|
|
2740
2781
|
user: {
|
|
2741
2782
|
name: string;
|
|
2742
2783
|
email?: string | null;
|
|
2743
2784
|
picture?: string | null;
|
|
2744
2785
|
};
|
|
2786
|
+
/** Optional connection status: avatar dot + a line in the dropdown header. */
|
|
2787
|
+
status?: UserMenuStatus;
|
|
2745
2788
|
/** Account actions above the sign-out divider (e.g. Settings). */
|
|
2746
2789
|
items?: UserMenuItem[];
|
|
2747
2790
|
onLogout: () => void;
|
|
@@ -2754,7 +2797,7 @@ interface UserMenuProps {
|
|
|
2754
2797
|
testId?: string;
|
|
2755
2798
|
logoutTestId?: string;
|
|
2756
2799
|
}
|
|
2757
|
-
declare function UserMenu({ user, items, onLogout, logoutLabel, align, classNames, testId, logoutTestId, }: UserMenuProps): React$1.JSX.Element;
|
|
2800
|
+
declare function UserMenu({ user, status, items, onLogout, logoutLabel, align, classNames, testId, logoutTestId, }: UserMenuProps): React$1.JSX.Element;
|
|
2758
2801
|
|
|
2759
2802
|
/**
|
|
2760
2803
|
* DocumentTable — a reusable AG Grid (community) block that renders a
|
|
@@ -2944,4 +2987,4 @@ interface ArbiUiState {
|
|
|
2944
2987
|
}
|
|
2945
2988
|
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
2946
2989
|
|
|
2947
|
-
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, AgentBadge, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, BASE_COLORS, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, 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, DocumentCard, DocumentCardMenu, type DocumentCardMenuProps, type DocumentCardProps, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PassageCard, type PassageCardProps, PdfIcon, type PresenceDisplayStatus, PresenceLabel, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type Rag, RagDot, RelevanceDot, type RenderMarkdown, type SearchChunk, SemanticSearch, type SemanticSearchProps, type StatusBadgeComponent, type StatusBadgeProps, StatusPill, type StatusPillProps, type StatusVariant, TAG_TYPE_ICONS, TAG_TYPE_LABELS, TagEntity, type TagEntityProps, type TagLike, type ThreadAccessors, type ThreadItem, Toaster, type ToolResponses, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, annotateThread, arbiQueryKeys, configureEntityRegistry, configureRagLabels, configureStatusRegistry, cropImage, dayKey, describeActivity, formatRelativeTime, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useFacts, useHealth, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
|
|
2990
|
+
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, AgentBadge, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, type AppNotification, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, ArbiChat, type ArbiChatLabels, ArbiChatPanel, type ArbiChatPanelProps, type ArbiChatProps, type ArbiChatTheme, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, BASE_COLORS, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_NOTIFY_TONE, 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, DocumentCard, DocumentCardMenu, type DocumentCardMenuProps, type DocumentCardProps, DocumentEntity, type DocumentEntityProps, DocumentGallery, type DocumentGalleryProps, type DocumentLike, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, ENTITY_MAPPINGS, EmlIcon, EntityIcon, type EntityIconComponent, EntityPill, type EntityRegistryOverride, type EntityType, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, LinkedInIcon, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, NEUTRAL_GRAY, NotificationBell, type NotificationBellProps, type NotificationTypeMeta, type NotifyOptions, type NotifyVariant, OpenAIIcon, PLACEHOLDER_COLOR, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, PassageCard, type PassageCardProps, PdfIcon, type PresenceDisplayStatus, PresenceLabel, ProjectEntity, type ProjectEntityProps, type ProjectRelation, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type Rag, RagDot, RelevanceDot, type RenderMarkdown, type SearchChunk, SemanticSearch, type SemanticSearchProps, type StatusBadgeComponent, type StatusBadgeProps, StatusPill, type StatusPillProps, type StatusVariant, TAG_TYPE_ICONS, TAG_TYPE_LABELS, TagEntity, type TagEntityProps, type TagLike, type ThreadAccessors, type ThreadItem, Toaster, type ToolResponses, TxtIcon, TypingIndicator, type UseDirectMessagesResult, UserEntity, type UserEntityProps, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuStatus, VISIBILITY_ICONS, VidIcon, VisibilityIcon, XlsIcon, annotateThread, arbiQueryKeys, configureEntityRegistry, configureRagLabels, configureStatusRegistry, cropImage, dayKey, describeActivity, formatRelativeTime, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getNotificationTypeMeta, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceActionText, getWorkspaceColor, getWorkspaceSentPhrase, isWorkspaceNotificationType, notify, parseActivityContent, redlineStats, seedNotifications, selectUnread, textToArtifact, toRedlineMarkdown, useActivity, useAgents, useAiTask, useArbi, useArbiConnected, useArbiDocumentSync, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useCommandPalette, useConfigs, useConversations, useDeleteAgents, useDirectMessages, useDocuments, useFacts, useHealth, useNotify, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSemanticSearch, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
|