@arbidocs/react 0.4.130 → 0.4.131
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/artifacts/index.cjs +47 -46
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.js +4 -2
- package/dist/artifacts/index.js.map +1 -1
- package/dist/{chunk-ZWFMFOGP.cjs → chunk-5DCRIWCA.cjs} +2 -68
- package/dist/chunk-5DCRIWCA.cjs.map +1 -0
- package/dist/{chunk-PPRKQK4P.js → chunk-6AWF4HFU.js} +11 -16
- package/dist/chunk-6AWF4HFU.js.map +1 -0
- package/dist/chunk-74UTKIWQ.js +62 -0
- package/dist/chunk-74UTKIWQ.js.map +1 -0
- package/dist/{chunk-6PPWZILQ.cjs → chunk-BOJHNPNJ.cjs} +11 -16
- package/dist/chunk-BOJHNPNJ.cjs.map +1 -0
- package/dist/{chunk-NNWMHMEC.js → chunk-G6FHNURH.js} +3 -60
- package/dist/chunk-G6FHNURH.js.map +1 -0
- package/dist/chunk-NUFEZBA5.cjs +72 -0
- package/dist/chunk-NUFEZBA5.cjs.map +1 -0
- package/dist/document-tools/index.cjs +5 -4
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.js +2 -1
- package/dist/document-tools/index.js.map +1 -1
- package/dist/{index-D8NvRj3J.d.cts → index-C7OqcKY3.d.cts} +7 -16
- package/dist/{index-D8NvRj3J.d.ts → index-C7OqcKY3.d.ts} +7 -16
- package/dist/index.cjs +40 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -102
- package/dist/index.d.ts +18 -102
- package/dist/index.js +22 -101
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +6 -10
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-6PPWZILQ.cjs.map +0 -1
- package/dist/chunk-NNWMHMEC.js.map +0 -1
- package/dist/chunk-PPRKQK4P.js.map +0 -1
- package/dist/chunk-ZWFMFOGP.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -16,7 +16,7 @@ import { VerificationResult } from '@didit-protocol/sdk-web';
|
|
|
16
16
|
import { LucideIcon } from 'lucide-react';
|
|
17
17
|
import { Components } from 'react-markdown';
|
|
18
18
|
export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.cjs';
|
|
19
|
-
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-
|
|
19
|
+
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-C7OqcKY3.cjs';
|
|
20
20
|
import { ColDef } from 'ag-grid-community';
|
|
21
21
|
export { ToasterProps, toast } from 'sonner';
|
|
22
22
|
import 'clsx';
|
|
@@ -6275,8 +6275,8 @@ declare function useCommandPalette(): CommandPaletteValue;
|
|
|
6275
6275
|
* REUSE-FIRST: this composes AG Grid + `DocumentEntity`/`TagEntity` + the shadcn
|
|
6276
6276
|
* `Badge`; it is not a bespoke table. Data comes from the SDK `useDocuments`
|
|
6277
6277
|
* hook (or an explicit `documents` prop). Selection is controlled via
|
|
6278
|
-
* `selectedIds`/`onSelectionChange`, falling back to
|
|
6279
|
-
*
|
|
6278
|
+
* `selectedIds`/`onSelectionChange`, falling back to the SDK-owned
|
|
6279
|
+
* `useArbiUiStore` when those props are omitted.
|
|
6280
6280
|
*/
|
|
6281
6281
|
|
|
6282
6282
|
type DocResponse$2 = components['schemas']['DocResponse'];
|
|
@@ -6338,7 +6338,7 @@ declare function DocumentCardMenu({ docId, fileName, onOpen, onRename, canDelete
|
|
|
6338
6338
|
* DocumentGallery — a reusable thumbnail-grid view of a workspace's documents.
|
|
6339
6339
|
*
|
|
6340
6340
|
* REUSE-FIRST: a sibling of `DocumentTable` sharing the exact same data sources
|
|
6341
|
-
* (`useDocuments` + `useTags` + the
|
|
6341
|
+
* (`useDocuments` + `useTags` + the SDK-owned `useArbiUiStore` selection state).
|
|
6342
6342
|
* The only extra dependency is `useThumbnails`, which batch-loads real first-page
|
|
6343
6343
|
* previews. Each tile is a `DocumentCard`; this component only binds it to data.
|
|
6344
6344
|
*/
|
|
@@ -6930,104 +6930,20 @@ declare function VideoCapture({ onSave, onDiscard, onError, isSaving }: VideoCap
|
|
|
6930
6930
|
declare function hasVideoTrack(blob: Blob): Promise<boolean>;
|
|
6931
6931
|
|
|
6932
6932
|
/**
|
|
6933
|
-
*
|
|
6934
|
-
* the document being viewed, the document selection, generation per conversation, Personal
|
|
6935
|
-
* Assistant mode and the documents in each conversation.
|
|
6933
|
+
* SDK-owned UI store for cross-block coordination.
|
|
6936
6934
|
*
|
|
6937
|
-
*
|
|
6938
|
-
*
|
|
6939
|
-
*
|
|
6940
|
-
* Other hosts use {@link createArbiSessionStore}, an in-memory store.
|
|
6941
|
-
*/
|
|
6942
|
-
/** The document being viewed. */
|
|
6943
|
-
interface ArbiViewingDocument {
|
|
6944
|
-
/** The document (`doc-…`), or a version reference (`doc-…@v2`) while an earlier version shows. */
|
|
6945
|
-
id: string;
|
|
6946
|
-
/** The page being read, when known. */
|
|
6947
|
-
page: number | null;
|
|
6948
|
-
/** The passage being read, when one is. */
|
|
6949
|
-
passageId: string | null;
|
|
6950
|
-
}
|
|
6951
|
-
/** Generation in one conversation. */
|
|
6952
|
-
interface ArbiConversationGeneration {
|
|
6953
|
-
isGenerating: boolean;
|
|
6954
|
-
error: string | null;
|
|
6955
|
-
/** When the running turn started (epoch ms). */
|
|
6956
|
-
startTime: number | null;
|
|
6957
|
-
}
|
|
6958
|
-
/** A document in a conversation's context; a pinned one stays there across turns. */
|
|
6959
|
-
interface ArbiConversationDocument {
|
|
6960
|
-
docId: string;
|
|
6961
|
-
isPinned: boolean;
|
|
6962
|
-
}
|
|
6963
|
-
interface ArbiSessionState {
|
|
6964
|
-
/** The selected workspace (`wrk-…`). */
|
|
6965
|
-
workspaceId: string | null;
|
|
6966
|
-
/** The open conversation, or null for a new one / none. */
|
|
6967
|
-
conversationId: string | null;
|
|
6968
|
-
viewingDocument: ArbiViewingDocument | null;
|
|
6969
|
-
/** The documents selected in document lists. */
|
|
6970
|
-
selectedDocumentIds: readonly string[];
|
|
6971
|
-
/** Generation state per conversation id. */
|
|
6972
|
-
generating: Readonly<Record<string, ArbiConversationGeneration>>;
|
|
6973
|
-
/** Personal Assistant mode for new conversations. */
|
|
6974
|
-
paMode: boolean;
|
|
6975
|
-
/** The documents in each conversation's context, per conversation id. */
|
|
6976
|
-
conversationDocuments: Readonly<Record<string, readonly ArbiConversationDocument[]>>;
|
|
6977
|
-
}
|
|
6978
|
-
/** What to view: page and passage are left unchanged when omitted. */
|
|
6979
|
-
interface ArbiViewingDocumentInput {
|
|
6980
|
-
id: string;
|
|
6981
|
-
page?: number | null;
|
|
6982
|
-
passageId?: string | null;
|
|
6983
|
-
}
|
|
6984
|
-
interface ArbiSessionStore {
|
|
6985
|
-
/** The current state. The same object until something in it changes. */
|
|
6986
|
-
getState(): ArbiSessionState;
|
|
6987
|
-
/** Be told when the state may have changed. Returns the unsubscribe. */
|
|
6988
|
-
subscribe(listener: () => void): () => void;
|
|
6989
|
-
setWorkspaceId(id: string | null): void;
|
|
6990
|
-
setConversationId(id: string | null): void;
|
|
6991
|
-
/**
|
|
6992
|
-
* View a document, or none. Viewing another document resets the page; `page` and `passageId`
|
|
6993
|
-
* set them when given.
|
|
6994
|
-
*/
|
|
6995
|
-
setViewingDocument(document: ArbiViewingDocumentInput | null): void;
|
|
6996
|
-
setSelectedDocumentIds(ids: string[]): void;
|
|
6997
|
-
setConversationGenerating(conversationId: string, isGenerating: boolean): void;
|
|
6998
|
-
setPaMode(enabled: boolean): void;
|
|
6999
|
-
setConversationDocuments(conversationId: string, documents: ArbiConversationDocument[]): void;
|
|
7000
|
-
}
|
|
7001
|
-
declare const EMPTY_SESSION_STATE: ArbiSessionState;
|
|
7002
|
-
/** The viewed document itself (`doc-…`), also while one of its earlier versions is on screen. */
|
|
7003
|
-
declare const selectViewingDocumentId: (state: ArbiSessionState) => string | null;
|
|
7004
|
-
/** Whether `conversationId` is generating. */
|
|
7005
|
-
declare const selectIsGenerating: (conversationId: string | null | undefined) => (state: ArbiSessionState) => boolean;
|
|
7006
|
-
/** The next viewing document, given the current one (shared by every store implementation). */
|
|
7007
|
-
declare function nextViewingDocument(current: ArbiViewingDocument | null, input: ArbiViewingDocumentInput | null): ArbiViewingDocument | null;
|
|
7008
|
-
/** An in-memory session store: the default for hosts without state of their own. */
|
|
7009
|
-
declare function createArbiSessionStore(initial?: Partial<ArbiSessionState>): ArbiSessionStore;
|
|
7010
|
-
|
|
7011
|
-
/**
|
|
7012
|
-
* The session state the blocks below share (see `./store`). A host passes its own
|
|
7013
|
-
* {@link ArbiSessionStore} (ARBI-frontend backs it with its zustand store). Without `store` the
|
|
7014
|
-
* provider uses the one above it, else keeps an in-memory one, so a kit (`ConnectionProvider`) can
|
|
7015
|
-
* always mount one and still share the host's. Blocks rendered with no provider above share a
|
|
7016
|
-
* module default, so a standalone block still coordinates with its siblings.
|
|
7017
|
-
*/
|
|
7018
|
-
|
|
7019
|
-
interface ArbiSessionStateProviderProps {
|
|
7020
|
-
/** The host's session state. Omitted: the enclosing provider's, else an in-memory one. */
|
|
7021
|
-
store?: ArbiSessionStore;
|
|
7022
|
-
children: ReactNode;
|
|
7023
|
-
}
|
|
7024
|
-
declare function ArbiSessionStateProvider({ store, children, }: ArbiSessionStateProviderProps): React.ReactElement;
|
|
7025
|
-
/** The session store: its setters, and `getState()` for the state as of now (in callbacks). */
|
|
7026
|
-
declare function useArbiSessionStore(): ArbiSessionStore;
|
|
7027
|
-
/**
|
|
7028
|
-
* A slice of the session state; re-renders when it changes. The selector returns a value from the
|
|
7029
|
-
* state or a primitive (a new object each call would never settle).
|
|
6935
|
+
* This is a SMALL, decoupled zustand store (NOT the ARBI app's multi-slice
|
|
6936
|
+
* store). Blocks such as `DocumentTable` use it as a fallback for selection /
|
|
6937
|
+
* "viewing" state when the consumer does not drive that state via props.
|
|
7030
6938
|
*/
|
|
7031
|
-
|
|
6939
|
+
interface ArbiUiState {
|
|
6940
|
+
/** External ids of the currently selected documents. */
|
|
6941
|
+
selectedDocIds: string[];
|
|
6942
|
+
setSelectedDocIds: (ids: string[]) => void;
|
|
6943
|
+
/** External id of the document currently being viewed/opened, if any. */
|
|
6944
|
+
viewingDocId: string | null;
|
|
6945
|
+
setViewingDocId: (id: string | null) => void;
|
|
6946
|
+
}
|
|
6947
|
+
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
7032
6948
|
|
|
7033
|
-
export { AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread,
|
|
6949
|
+
export { AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, type ChunkedRecorder, type ChunkedRecorderOptions, 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_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, INITIAL_SEGMENTER_STATE, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailDraftEditorRequest, type MailDraftEditorSession, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MailProject, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RecordedChunk, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, type SegmenterConfig, type SegmenterEvent, type SegmenterState, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiAccountClient, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, downloadRecoveryFile, fileAttachment, flushSegmenter, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, resolveActiveWorkspace, stepSegmenter, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useActivity, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateContact, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteContact, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFirmPool, useFollowThread, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useInviteContacts, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSignOut, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useUpdateContact, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { VerificationResult } from '@didit-protocol/sdk-web';
|
|
|
16
16
|
import { LucideIcon } from 'lucide-react';
|
|
17
17
|
import { Components } from 'react-markdown';
|
|
18
18
|
export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.js';
|
|
19
|
-
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-
|
|
19
|
+
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-C7OqcKY3.js';
|
|
20
20
|
import { ColDef } from 'ag-grid-community';
|
|
21
21
|
export { ToasterProps, toast } from 'sonner';
|
|
22
22
|
import 'clsx';
|
|
@@ -6275,8 +6275,8 @@ declare function useCommandPalette(): CommandPaletteValue;
|
|
|
6275
6275
|
* REUSE-FIRST: this composes AG Grid + `DocumentEntity`/`TagEntity` + the shadcn
|
|
6276
6276
|
* `Badge`; it is not a bespoke table. Data comes from the SDK `useDocuments`
|
|
6277
6277
|
* hook (or an explicit `documents` prop). Selection is controlled via
|
|
6278
|
-
* `selectedIds`/`onSelectionChange`, falling back to
|
|
6279
|
-
*
|
|
6278
|
+
* `selectedIds`/`onSelectionChange`, falling back to the SDK-owned
|
|
6279
|
+
* `useArbiUiStore` when those props are omitted.
|
|
6280
6280
|
*/
|
|
6281
6281
|
|
|
6282
6282
|
type DocResponse$2 = components['schemas']['DocResponse'];
|
|
@@ -6338,7 +6338,7 @@ declare function DocumentCardMenu({ docId, fileName, onOpen, onRename, canDelete
|
|
|
6338
6338
|
* DocumentGallery — a reusable thumbnail-grid view of a workspace's documents.
|
|
6339
6339
|
*
|
|
6340
6340
|
* REUSE-FIRST: a sibling of `DocumentTable` sharing the exact same data sources
|
|
6341
|
-
* (`useDocuments` + `useTags` + the
|
|
6341
|
+
* (`useDocuments` + `useTags` + the SDK-owned `useArbiUiStore` selection state).
|
|
6342
6342
|
* The only extra dependency is `useThumbnails`, which batch-loads real first-page
|
|
6343
6343
|
* previews. Each tile is a `DocumentCard`; this component only binds it to data.
|
|
6344
6344
|
*/
|
|
@@ -6930,104 +6930,20 @@ declare function VideoCapture({ onSave, onDiscard, onError, isSaving }: VideoCap
|
|
|
6930
6930
|
declare function hasVideoTrack(blob: Blob): Promise<boolean>;
|
|
6931
6931
|
|
|
6932
6932
|
/**
|
|
6933
|
-
*
|
|
6934
|
-
* the document being viewed, the document selection, generation per conversation, Personal
|
|
6935
|
-
* Assistant mode and the documents in each conversation.
|
|
6933
|
+
* SDK-owned UI store for cross-block coordination.
|
|
6936
6934
|
*
|
|
6937
|
-
*
|
|
6938
|
-
*
|
|
6939
|
-
*
|
|
6940
|
-
* Other hosts use {@link createArbiSessionStore}, an in-memory store.
|
|
6941
|
-
*/
|
|
6942
|
-
/** The document being viewed. */
|
|
6943
|
-
interface ArbiViewingDocument {
|
|
6944
|
-
/** The document (`doc-…`), or a version reference (`doc-…@v2`) while an earlier version shows. */
|
|
6945
|
-
id: string;
|
|
6946
|
-
/** The page being read, when known. */
|
|
6947
|
-
page: number | null;
|
|
6948
|
-
/** The passage being read, when one is. */
|
|
6949
|
-
passageId: string | null;
|
|
6950
|
-
}
|
|
6951
|
-
/** Generation in one conversation. */
|
|
6952
|
-
interface ArbiConversationGeneration {
|
|
6953
|
-
isGenerating: boolean;
|
|
6954
|
-
error: string | null;
|
|
6955
|
-
/** When the running turn started (epoch ms). */
|
|
6956
|
-
startTime: number | null;
|
|
6957
|
-
}
|
|
6958
|
-
/** A document in a conversation's context; a pinned one stays there across turns. */
|
|
6959
|
-
interface ArbiConversationDocument {
|
|
6960
|
-
docId: string;
|
|
6961
|
-
isPinned: boolean;
|
|
6962
|
-
}
|
|
6963
|
-
interface ArbiSessionState {
|
|
6964
|
-
/** The selected workspace (`wrk-…`). */
|
|
6965
|
-
workspaceId: string | null;
|
|
6966
|
-
/** The open conversation, or null for a new one / none. */
|
|
6967
|
-
conversationId: string | null;
|
|
6968
|
-
viewingDocument: ArbiViewingDocument | null;
|
|
6969
|
-
/** The documents selected in document lists. */
|
|
6970
|
-
selectedDocumentIds: readonly string[];
|
|
6971
|
-
/** Generation state per conversation id. */
|
|
6972
|
-
generating: Readonly<Record<string, ArbiConversationGeneration>>;
|
|
6973
|
-
/** Personal Assistant mode for new conversations. */
|
|
6974
|
-
paMode: boolean;
|
|
6975
|
-
/** The documents in each conversation's context, per conversation id. */
|
|
6976
|
-
conversationDocuments: Readonly<Record<string, readonly ArbiConversationDocument[]>>;
|
|
6977
|
-
}
|
|
6978
|
-
/** What to view: page and passage are left unchanged when omitted. */
|
|
6979
|
-
interface ArbiViewingDocumentInput {
|
|
6980
|
-
id: string;
|
|
6981
|
-
page?: number | null;
|
|
6982
|
-
passageId?: string | null;
|
|
6983
|
-
}
|
|
6984
|
-
interface ArbiSessionStore {
|
|
6985
|
-
/** The current state. The same object until something in it changes. */
|
|
6986
|
-
getState(): ArbiSessionState;
|
|
6987
|
-
/** Be told when the state may have changed. Returns the unsubscribe. */
|
|
6988
|
-
subscribe(listener: () => void): () => void;
|
|
6989
|
-
setWorkspaceId(id: string | null): void;
|
|
6990
|
-
setConversationId(id: string | null): void;
|
|
6991
|
-
/**
|
|
6992
|
-
* View a document, or none. Viewing another document resets the page; `page` and `passageId`
|
|
6993
|
-
* set them when given.
|
|
6994
|
-
*/
|
|
6995
|
-
setViewingDocument(document: ArbiViewingDocumentInput | null): void;
|
|
6996
|
-
setSelectedDocumentIds(ids: string[]): void;
|
|
6997
|
-
setConversationGenerating(conversationId: string, isGenerating: boolean): void;
|
|
6998
|
-
setPaMode(enabled: boolean): void;
|
|
6999
|
-
setConversationDocuments(conversationId: string, documents: ArbiConversationDocument[]): void;
|
|
7000
|
-
}
|
|
7001
|
-
declare const EMPTY_SESSION_STATE: ArbiSessionState;
|
|
7002
|
-
/** The viewed document itself (`doc-…`), also while one of its earlier versions is on screen. */
|
|
7003
|
-
declare const selectViewingDocumentId: (state: ArbiSessionState) => string | null;
|
|
7004
|
-
/** Whether `conversationId` is generating. */
|
|
7005
|
-
declare const selectIsGenerating: (conversationId: string | null | undefined) => (state: ArbiSessionState) => boolean;
|
|
7006
|
-
/** The next viewing document, given the current one (shared by every store implementation). */
|
|
7007
|
-
declare function nextViewingDocument(current: ArbiViewingDocument | null, input: ArbiViewingDocumentInput | null): ArbiViewingDocument | null;
|
|
7008
|
-
/** An in-memory session store: the default for hosts without state of their own. */
|
|
7009
|
-
declare function createArbiSessionStore(initial?: Partial<ArbiSessionState>): ArbiSessionStore;
|
|
7010
|
-
|
|
7011
|
-
/**
|
|
7012
|
-
* The session state the blocks below share (see `./store`). A host passes its own
|
|
7013
|
-
* {@link ArbiSessionStore} (ARBI-frontend backs it with its zustand store). Without `store` the
|
|
7014
|
-
* provider uses the one above it, else keeps an in-memory one, so a kit (`ConnectionProvider`) can
|
|
7015
|
-
* always mount one and still share the host's. Blocks rendered with no provider above share a
|
|
7016
|
-
* module default, so a standalone block still coordinates with its siblings.
|
|
7017
|
-
*/
|
|
7018
|
-
|
|
7019
|
-
interface ArbiSessionStateProviderProps {
|
|
7020
|
-
/** The host's session state. Omitted: the enclosing provider's, else an in-memory one. */
|
|
7021
|
-
store?: ArbiSessionStore;
|
|
7022
|
-
children: ReactNode;
|
|
7023
|
-
}
|
|
7024
|
-
declare function ArbiSessionStateProvider({ store, children, }: ArbiSessionStateProviderProps): React.ReactElement;
|
|
7025
|
-
/** The session store: its setters, and `getState()` for the state as of now (in callbacks). */
|
|
7026
|
-
declare function useArbiSessionStore(): ArbiSessionStore;
|
|
7027
|
-
/**
|
|
7028
|
-
* A slice of the session state; re-renders when it changes. The selector returns a value from the
|
|
7029
|
-
* state or a primitive (a new object each call would never settle).
|
|
6935
|
+
* This is a SMALL, decoupled zustand store (NOT the ARBI app's multi-slice
|
|
6936
|
+
* store). Blocks such as `DocumentTable` use it as a fallback for selection /
|
|
6937
|
+
* "viewing" state when the consumer does not drive that state via props.
|
|
7030
6938
|
*/
|
|
7031
|
-
|
|
6939
|
+
interface ArbiUiState {
|
|
6940
|
+
/** External ids of the currently selected documents. */
|
|
6941
|
+
selectedDocIds: string[];
|
|
6942
|
+
setSelectedDocIds: (ids: string[]) => void;
|
|
6943
|
+
/** External id of the document currently being viewed/opened, if any. */
|
|
6944
|
+
viewingDocId: string | null;
|
|
6945
|
+
setViewingDocId: (id: string | null) => void;
|
|
6946
|
+
}
|
|
6947
|
+
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
7032
6948
|
|
|
7033
|
-
export { AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread,
|
|
6949
|
+
export { AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, type ChunkedRecorder, type ChunkedRecorderOptions, 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_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, INITIAL_SEGMENTER_STATE, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailDraftEditorRequest, type MailDraftEditorSession, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MailProject, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RecordedChunk, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, type SegmenterConfig, type SegmenterEvent, type SegmenterState, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiAccountClient, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, downloadRecoveryFile, fileAttachment, flushSegmenter, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, resolveActiveWorkspace, stepSegmenter, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useActivity, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateContact, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteContact, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFirmPool, useFollowThread, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useInviteContacts, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSignOut, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useUpdateContact, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { arbiQueryKeys, useDocuments, useConversations, useAssistantQuery, useConversationThreads, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-XV7EOUQM.js';
|
|
2
2
|
export { PROJECT_CREATION_DENIED_REASON, arbiQueryKeys, isUsageMetered, useActivity, useAgents, useAssistantQuery, useCanCreateProjects, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocuments, useFacts, useFirmPool, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useTags, useThumbnails, useTopUpFirmPool, useUserUsageToday, useWorkspaceActivity, useWorkspaceUsers, useWorkspaces } from './chunk-XV7EOUQM.js';
|
|
3
3
|
import { downloadBlob } from './chunk-6JSXDLIQ.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { formatRelativeTime } from './chunk-PPRKQK4P.js';
|
|
8
|
-
export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-PPRKQK4P.js';
|
|
4
|
+
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-G6FHNURH.js';
|
|
5
|
+
import { formatRelativeTime } from './chunk-6AWF4HFU.js';
|
|
6
|
+
export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-6AWF4HFU.js';
|
|
9
7
|
import { returnFocusToMark, MarkMenu, AiMarkdown, Card, Badge, TagEntity, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, DocumentEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, PassageCard } from './chunk-J3BYHBKW.js';
|
|
10
8
|
export { AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_SEGMENTER_CONFIG, DebouncedInput, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, INITIAL_SEGMENTER_STATE, IconToggle, ImgIcon, InlineMicButton, Input, Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShieldIcon, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, UserEntity, UserMenu, VIDEO_MIME_PREFERENCE, VISIBILITY_ICONS, VerifiedBadge, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, agentAvatarColors, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, flushSegmenter, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, levelFromRms, pickRecorderMimeType, stepSegmenter, toggleVariants, useAudioRecorder } from './chunk-J3BYHBKW.js';
|
|
11
9
|
import { MarkdownRenderer } from './chunk-C44GO33B.js';
|
|
@@ -6180,89 +6178,12 @@ function CommandPaletteProvider({
|
|
|
6180
6178
|
/* @__PURE__ */ jsx(CommandPalette, { open: isOpen, onOpenChange: setIsOpen, ...paletteProps })
|
|
6181
6179
|
] });
|
|
6182
6180
|
}
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
selectedDocumentIds: [],
|
|
6190
|
-
generating: {},
|
|
6191
|
-
paMode: false,
|
|
6192
|
-
conversationDocuments: {}
|
|
6193
|
-
};
|
|
6194
|
-
var selectViewingDocumentId = (state) => state.viewingDocument ? parseVersionRef(state.viewingDocument.id).docId : null;
|
|
6195
|
-
var selectIsGenerating = (conversationId) => (state) => !!conversationId && !!state.generating[conversationId]?.isGenerating;
|
|
6196
|
-
function nextViewingDocument(current, input) {
|
|
6197
|
-
if (!input) return null;
|
|
6198
|
-
const same = current?.id === input.id;
|
|
6199
|
-
return {
|
|
6200
|
-
id: input.id,
|
|
6201
|
-
page: input.page !== void 0 ? input.page : same ? current?.page ?? null : null,
|
|
6202
|
-
passageId: input.passageId !== void 0 ? input.passageId : current?.passageId ?? null
|
|
6203
|
-
};
|
|
6204
|
-
}
|
|
6205
|
-
function createArbiSessionStore(initial = {}) {
|
|
6206
|
-
let state = { ...EMPTY_SESSION_STATE, ...initial };
|
|
6207
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
6208
|
-
const update = (patch) => {
|
|
6209
|
-
state = { ...state, ...patch };
|
|
6210
|
-
listeners.forEach((listener) => listener());
|
|
6211
|
-
};
|
|
6212
|
-
return {
|
|
6213
|
-
getState: () => state,
|
|
6214
|
-
subscribe: (listener) => {
|
|
6215
|
-
listeners.add(listener);
|
|
6216
|
-
return () => listeners.delete(listener);
|
|
6217
|
-
},
|
|
6218
|
-
setWorkspaceId: (workspaceId) => {
|
|
6219
|
-
if (state.workspaceId !== workspaceId) update({ workspaceId });
|
|
6220
|
-
},
|
|
6221
|
-
setConversationId: (conversationId) => {
|
|
6222
|
-
if (state.conversationId !== conversationId) update({ conversationId });
|
|
6223
|
-
},
|
|
6224
|
-
setViewingDocument: (input) => update({ viewingDocument: nextViewingDocument(state.viewingDocument, input) }),
|
|
6225
|
-
setSelectedDocumentIds: (ids) => update({ selectedDocumentIds: ids }),
|
|
6226
|
-
setConversationGenerating: (conversationId, isGenerating) => {
|
|
6227
|
-
const current = state.generating[conversationId];
|
|
6228
|
-
update({
|
|
6229
|
-
generating: {
|
|
6230
|
-
...state.generating,
|
|
6231
|
-
[conversationId]: {
|
|
6232
|
-
isGenerating,
|
|
6233
|
-
error: isGenerating ? null : current?.error ?? null,
|
|
6234
|
-
startTime: isGenerating ? Date.now() : null
|
|
6235
|
-
}
|
|
6236
|
-
}
|
|
6237
|
-
});
|
|
6238
|
-
},
|
|
6239
|
-
setPaMode: (paMode) => {
|
|
6240
|
-
if (state.paMode !== paMode) update({ paMode });
|
|
6241
|
-
},
|
|
6242
|
-
setConversationDocuments: (conversationId, documents) => update({
|
|
6243
|
-
conversationDocuments: { ...state.conversationDocuments, [conversationId]: documents }
|
|
6244
|
-
})
|
|
6245
|
-
};
|
|
6246
|
-
}
|
|
6247
|
-
var ArbiSessionStoreContext = createContext(null);
|
|
6248
|
-
var moduleDefault = null;
|
|
6249
|
-
var defaultStore = () => moduleDefault ??= createArbiSessionStore();
|
|
6250
|
-
function ArbiSessionStateProvider({
|
|
6251
|
-
store,
|
|
6252
|
-
children
|
|
6253
|
-
}) {
|
|
6254
|
-
const enclosing = useContext(ArbiSessionStoreContext);
|
|
6255
|
-
const [own] = useState(createArbiSessionStore);
|
|
6256
|
-
return /* @__PURE__ */ jsx(ArbiSessionStoreContext.Provider, { value: store ?? enclosing ?? own, children });
|
|
6257
|
-
}
|
|
6258
|
-
function useArbiSessionStore() {
|
|
6259
|
-
return useContext(ArbiSessionStoreContext) ?? defaultStore();
|
|
6260
|
-
}
|
|
6261
|
-
function useArbiSessionState(selector) {
|
|
6262
|
-
const store = useArbiSessionStore();
|
|
6263
|
-
const select = () => selector(store.getState());
|
|
6264
|
-
return useSyncExternalStore(store.subscribe, select, select);
|
|
6265
|
-
}
|
|
6181
|
+
var useArbiUiStore = create((set) => ({
|
|
6182
|
+
selectedDocIds: [],
|
|
6183
|
+
setSelectedDocIds: (ids) => set({ selectedDocIds: ids }),
|
|
6184
|
+
viewingDocId: null,
|
|
6185
|
+
setViewingDocId: (id) => set({ viewingDocId: id })
|
|
6186
|
+
}));
|
|
6266
6187
|
ModuleRegistry.registerModules([AllCommunityModule]);
|
|
6267
6188
|
function formatBytes(bytes) {
|
|
6268
6189
|
if (bytes == null || Number.isNaN(bytes)) return "\u2014";
|
|
@@ -6307,19 +6228,19 @@ function DocumentTable({
|
|
|
6307
6228
|
}
|
|
6308
6229
|
return map;
|
|
6309
6230
|
}, [tagsQuery.data]);
|
|
6310
|
-
const
|
|
6311
|
-
const
|
|
6312
|
-
const
|
|
6313
|
-
const
|
|
6231
|
+
const storeSelected = useArbiUiStore((s) => s.selectedDocIds);
|
|
6232
|
+
const storeSetSelected = useArbiUiStore((s) => s.setSelectedDocIds);
|
|
6233
|
+
const viewingDocId = useArbiUiStore((s) => s.viewingDocId);
|
|
6234
|
+
const setViewingDocId = useArbiUiStore((s) => s.setViewingDocId);
|
|
6314
6235
|
const effectiveSelected = selectedIds ?? storeSelected;
|
|
6315
6236
|
const emitSelection = onSelectionChange ?? storeSetSelected;
|
|
6316
6237
|
const gridApiRef = React.useRef(null);
|
|
6317
6238
|
const openDocument = React.useCallback(
|
|
6318
6239
|
(id) => {
|
|
6319
|
-
|
|
6240
|
+
setViewingDocId(id);
|
|
6320
6241
|
onOpenDocument?.(id);
|
|
6321
6242
|
},
|
|
6322
|
-
[onOpenDocument,
|
|
6243
|
+
[onOpenDocument, setViewingDocId]
|
|
6323
6244
|
);
|
|
6324
6245
|
const applySelection = React.useCallback(() => {
|
|
6325
6246
|
const api = gridApiRef.current;
|
|
@@ -6596,10 +6517,10 @@ function DocumentGallery({
|
|
|
6596
6517
|
);
|
|
6597
6518
|
const thumbsQuery = useThumbnails(docIds);
|
|
6598
6519
|
const thumbs = thumbsQuery.data ?? {};
|
|
6599
|
-
const
|
|
6600
|
-
const
|
|
6601
|
-
const
|
|
6602
|
-
const
|
|
6520
|
+
const storeSelected = useArbiUiStore((s) => s.selectedDocIds);
|
|
6521
|
+
const storeSetSelected = useArbiUiStore((s) => s.setSelectedDocIds);
|
|
6522
|
+
const viewingDocId = useArbiUiStore((s) => s.viewingDocId);
|
|
6523
|
+
const setViewingDocId = useArbiUiStore((s) => s.setViewingDocId);
|
|
6603
6524
|
const effectiveSelected = selectedIds ?? storeSelected;
|
|
6604
6525
|
const emitSelection = onSelectionChange ?? storeSetSelected;
|
|
6605
6526
|
const selectedSet = React.useMemo(() => new Set(effectiveSelected), [effectiveSelected]);
|
|
@@ -6614,10 +6535,10 @@ function DocumentGallery({
|
|
|
6614
6535
|
);
|
|
6615
6536
|
const openDocument = React.useCallback(
|
|
6616
6537
|
(id) => {
|
|
6617
|
-
|
|
6538
|
+
setViewingDocId(id);
|
|
6618
6539
|
onOpenDocument?.(id);
|
|
6619
6540
|
},
|
|
6620
|
-
[onOpenDocument,
|
|
6541
|
+
[onOpenDocument, setViewingDocId]
|
|
6621
6542
|
);
|
|
6622
6543
|
const arbi = useArbi();
|
|
6623
6544
|
const queryClient = useQueryClient();
|
|
@@ -7246,6 +7167,6 @@ function hasVideoTrack(blob) {
|
|
|
7246
7167
|
});
|
|
7247
7168
|
}
|
|
7248
7169
|
|
|
7249
|
-
export { AccountClientProvider, ActivityFeed, AiActionCard, AiAnswer, AppleIcon, ArbiBotIcon,
|
|
7170
|
+
export { AccountClientProvider, ActivityFeed, AiActionCard, AiAnswer, AppleIcon, ArbiBotIcon, ArbiWebSocketProvider, ArtifactCanvas, ChatBubble, CitationRenderer, ClaudeIcon, CommandPalette, CommandPaletteProvider, ConversationList, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, DirectMessages, DmAvatar, DmComposer, DocQaPanel, DocSearch, DocumentCardMenu, DocumentGallery, DocumentReview, DocumentTable, DraftTitleControls, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, ImageCropModal, ImageCropper, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, MailClientProvider, MailOfflineUnavailableError, MessageArtifactCard, MessageBubble, MessageThread, OpenAIIcon, PhotoCapture, ProviderIcon, RUN_WINDOW_MS, SemanticSearch, StartByEmail, TypingIndicator, VideoCapture, VoiceNoteRecorder, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiAccountClient, arbiMailClient, captureFrameAsBlob, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, downloadRecoveryFile, fileAttachment, formatIdentityPrice, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isWorkspaceNotificationType, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, resolveActiveWorkspace, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAiTask, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAvatarCrop, useCameraStream, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationUsage, useCreateAgent, useCreateContact, useCreateWork, useCreateWorkflow, useCurrentSessionId, useDeleteAccount, useDeleteAccountFlow, useDeleteContact, useDeleteWorkflow, useDirectMessages, useDisconnectMailAccount, useEmailChange, useFilteredProjects, useFollowThread, useGrantAgentAccess, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useInviteContacts, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useNameEditor, useNotificationPreferences, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSignOut, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTerminateSession, useUpdateContact, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceDocs, useWorkspaceNotificationLevel, userDisplayName, userInitials, workflowStepOf };
|
|
7250
7171
|
//# sourceMappingURL=index.js.map
|
|
7251
7172
|
//# sourceMappingURL=index.js.map
|