@arbidocs/react 0.5.71 → 0.5.73
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/annotations/freeze/index.cjs +14 -14
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/artifacts/index.cjs +36 -36
- package/dist/artifacts/index.js +7 -7
- package/dist/bundle-IC65W2AO.cjs +14 -0
- package/dist/{bundle-DCWPYNGD.cjs.map → bundle-IC65W2AO.cjs.map} +1 -1
- package/dist/bundle-YNOX7VIL.js +5 -0
- package/dist/{bundle-JCKKGEJE.js.map → bundle-YNOX7VIL.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +46 -46
- package/dist/calls/livekit/index.js +7 -7
- package/dist/{chunk-H3HYKAS5.cjs → chunk-3BFSALPC.cjs} +3 -3
- package/dist/{chunk-H3HYKAS5.cjs.map → chunk-3BFSALPC.cjs.map} +1 -1
- package/dist/{chunk-2NFUEC5O.js → chunk-3NBPMR3X.js} +3 -3
- package/dist/{chunk-2NFUEC5O.js.map → chunk-3NBPMR3X.js.map} +1 -1
- package/dist/{chunk-QL6CHRQ5.js → chunk-4DTTEUVY.js} +4 -4
- package/dist/{chunk-QL6CHRQ5.js.map → chunk-4DTTEUVY.js.map} +1 -1
- package/dist/{chunk-XFF66SHT.cjs → chunk-GOJHU7RZ.cjs} +26 -26
- package/dist/{chunk-XFF66SHT.cjs.map → chunk-GOJHU7RZ.cjs.map} +1 -1
- package/dist/{chunk-C55HTTQH.cjs → chunk-HXITD6DN.cjs} +7 -7
- package/dist/{chunk-C55HTTQH.cjs.map → chunk-HXITD6DN.cjs.map} +1 -1
- package/dist/{chunk-73BX6XSX.cjs → chunk-LMW46NBD.cjs} +6 -6
- package/dist/{chunk-73BX6XSX.cjs.map → chunk-LMW46NBD.cjs.map} +1 -1
- package/dist/{chunk-D6CQI24G.js → chunk-M3SB5TZB.js} +5 -5
- package/dist/{chunk-D6CQI24G.js.map → chunk-M3SB5TZB.js.map} +1 -1
- package/dist/{chunk-A2XSLTIP.js → chunk-NIKPG4PW.js} +3 -3
- package/dist/{chunk-A2XSLTIP.js.map → chunk-NIKPG4PW.js.map} +1 -1
- package/dist/{chunk-MZ7EYCGH.js → chunk-NNWMHMEC.js} +3 -3
- package/dist/{chunk-MZ7EYCGH.js.map → chunk-NNWMHMEC.js.map} +1 -1
- package/dist/{chunk-B6I2HRRF.cjs → chunk-PC4O3JDV.cjs} +3 -3
- package/dist/{chunk-B6I2HRRF.cjs.map → chunk-PC4O3JDV.cjs.map} +1 -1
- package/dist/{chunk-IXKD5JLF.js → chunk-QGOYIYLI.js} +4 -4
- package/dist/{chunk-IXKD5JLF.js.map → chunk-QGOYIYLI.js.map} +1 -1
- package/dist/{chunk-ZP5DBHUY.cjs → chunk-RS6UUPD2.cjs} +6 -6
- package/dist/{chunk-ZP5DBHUY.cjs.map → chunk-RS6UUPD2.cjs.map} +1 -1
- package/dist/{chunk-CHLDCP3J.js → chunk-SI7DJWBT.js} +3 -3
- package/dist/{chunk-CHLDCP3J.js.map → chunk-SI7DJWBT.js.map} +1 -1
- package/dist/{chunk-2PMH4DTL.cjs → chunk-TGSEQGM3.cjs} +4 -4
- package/dist/{chunk-2PMH4DTL.cjs.map → chunk-TGSEQGM3.cjs.map} +1 -1
- package/dist/{chunk-SOIOQBZZ.js → chunk-ZTPJNKF2.js} +5 -5
- package/dist/{chunk-SOIOQBZZ.js.map → chunk-ZTPJNKF2.js.map} +1 -1
- package/dist/{chunk-WEJHHBA2.cjs → chunk-ZWFMFOGP.cjs} +3 -3
- package/dist/{chunk-WEJHHBA2.cjs.map → chunk-ZWFMFOGP.cjs.map} +1 -1
- package/dist/document-tools/core.cjs +103 -103
- package/dist/document-tools/core.js +7 -7
- package/dist/document-tools/index.cjs +106 -106
- package/dist/document-tools/index.js +9 -9
- package/dist/index.cjs +1450 -1424
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +52 -26
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +36 -36
- package/dist/shell/index.js +5 -5
- package/dist/ui/index.cjs +149 -149
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/bundle-DCWPYNGD.cjs +0 -14
- package/dist/bundle-JCKKGEJE.js +0 -5
package/dist/index.d.cts
CHANGED
|
@@ -3901,7 +3901,7 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
3901
3901
|
} | {
|
|
3902
3902
|
type: "tabular_review";
|
|
3903
3903
|
tags: string[];
|
|
3904
|
-
documents: "
|
|
3904
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
3905
3905
|
step?: string | null | undefined;
|
|
3906
3906
|
input?: string | null | undefined;
|
|
3907
3907
|
})[];
|
|
@@ -6699,7 +6699,7 @@ declare function useConversationItems(): {
|
|
|
6699
6699
|
} | {
|
|
6700
6700
|
type: "tabular_review";
|
|
6701
6701
|
tags: string[];
|
|
6702
|
-
documents: "
|
|
6702
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
6703
6703
|
step?: string | null | undefined;
|
|
6704
6704
|
input?: string | null | undefined;
|
|
6705
6705
|
})[];
|
|
@@ -6842,7 +6842,7 @@ declare function useConversationItems(): {
|
|
|
6842
6842
|
} | {
|
|
6843
6843
|
type: "tabular_review";
|
|
6844
6844
|
tags: string[];
|
|
6845
|
-
documents: "
|
|
6845
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
6846
6846
|
step?: string | null | undefined;
|
|
6847
6847
|
input?: string | null | undefined;
|
|
6848
6848
|
})[];
|
|
@@ -6986,7 +6986,7 @@ declare function useConversationItems(): {
|
|
|
6986
6986
|
} | {
|
|
6987
6987
|
type: "tabular_review";
|
|
6988
6988
|
tags: string[];
|
|
6989
|
-
documents: "
|
|
6989
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
6990
6990
|
step?: string | null | undefined;
|
|
6991
6991
|
input?: string | null | undefined;
|
|
6992
6992
|
})[];
|
|
@@ -7134,7 +7134,7 @@ declare function useWorkItems(): {
|
|
|
7134
7134
|
} | {
|
|
7135
7135
|
type: "tabular_review";
|
|
7136
7136
|
tags: string[];
|
|
7137
|
-
documents: "
|
|
7137
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
7138
7138
|
step?: string | null | undefined;
|
|
7139
7139
|
input?: string | null | undefined;
|
|
7140
7140
|
})[];
|
|
@@ -7278,7 +7278,7 @@ declare function useWorkItems(): {
|
|
|
7278
7278
|
} | {
|
|
7279
7279
|
type: "tabular_review";
|
|
7280
7280
|
tags: string[];
|
|
7281
|
-
documents: "
|
|
7281
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
7282
7282
|
step?: string | null | undefined;
|
|
7283
7283
|
input?: string | null | undefined;
|
|
7284
7284
|
})[];
|
package/dist/index.d.ts
CHANGED
|
@@ -3901,7 +3901,7 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
3901
3901
|
} | {
|
|
3902
3902
|
type: "tabular_review";
|
|
3903
3903
|
tags: string[];
|
|
3904
|
-
documents: "
|
|
3904
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
3905
3905
|
step?: string | null | undefined;
|
|
3906
3906
|
input?: string | null | undefined;
|
|
3907
3907
|
})[];
|
|
@@ -6699,7 +6699,7 @@ declare function useConversationItems(): {
|
|
|
6699
6699
|
} | {
|
|
6700
6700
|
type: "tabular_review";
|
|
6701
6701
|
tags: string[];
|
|
6702
|
-
documents: "
|
|
6702
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
6703
6703
|
step?: string | null | undefined;
|
|
6704
6704
|
input?: string | null | undefined;
|
|
6705
6705
|
})[];
|
|
@@ -6842,7 +6842,7 @@ declare function useConversationItems(): {
|
|
|
6842
6842
|
} | {
|
|
6843
6843
|
type: "tabular_review";
|
|
6844
6844
|
tags: string[];
|
|
6845
|
-
documents: "
|
|
6845
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
6846
6846
|
step?: string | null | undefined;
|
|
6847
6847
|
input?: string | null | undefined;
|
|
6848
6848
|
})[];
|
|
@@ -6986,7 +6986,7 @@ declare function useConversationItems(): {
|
|
|
6986
6986
|
} | {
|
|
6987
6987
|
type: "tabular_review";
|
|
6988
6988
|
tags: string[];
|
|
6989
|
-
documents: "
|
|
6989
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
6990
6990
|
step?: string | null | undefined;
|
|
6991
6991
|
input?: string | null | undefined;
|
|
6992
6992
|
})[];
|
|
@@ -7134,7 +7134,7 @@ declare function useWorkItems(): {
|
|
|
7134
7134
|
} | {
|
|
7135
7135
|
type: "tabular_review";
|
|
7136
7136
|
tags: string[];
|
|
7137
|
-
documents: "
|
|
7137
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
7138
7138
|
step?: string | null | undefined;
|
|
7139
7139
|
input?: string | null | undefined;
|
|
7140
7140
|
})[];
|
|
@@ -7278,7 +7278,7 @@ declare function useWorkItems(): {
|
|
|
7278
7278
|
} | {
|
|
7279
7279
|
type: "tabular_review";
|
|
7280
7280
|
tags: string[];
|
|
7281
|
-
documents: "
|
|
7281
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
7282
7282
|
step?: string | null | undefined;
|
|
7283
7283
|
input?: string | null | undefined;
|
|
7284
7284
|
})[];
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
|
|
2
|
+
import { useUserSettings, invalidateConversationLists, patchConversation, invalidateConversationDetails, removeConversationFromLists, addConversationToList, findConversation, isConversationShared, patchConversationList, useFeature, useAccountClient, useUpdateUserSettings, myChatId, upsertChat, appendToThread, dropFromThread, deleteChatMessage, removeChat, getOpenChat, cachedChat, applyChatEvent, applyCallEvent } from './chunk-M3SB5TZB.js';
|
|
3
|
+
export { AUDIENCE_CHOICES, CALL_CAPTION_TOPIC, CALL_CHAT_MAX_CHARS, CALL_CHAT_TOPIC, CALL_MODERATION_TOPIC, CALL_RECORDING_TOPIC, CALL_TRANSCRIPTION_TOPIC, CALL_WEBINAR_TOPIC, CAPTION_MAX_CHARS, COMPOSITE_AUDIO_BITS_PER_SECOND, COMPOSITE_VIDEO_BITS_PER_SECOND, DEFAULT_JOIN_CHOICES, EMPTY_CALL_SESSION, EXPORT_SAMPLE_RATE, HISTORY_LIMIT, LIVE_SEGMENTER, MAX_AVATAR_FILE_BYTES, MUTED_DEDUPE_MS, PLAYBACK_LOOKAHEAD_MS, READ_ONLY_MEETING_TEXT, RECORDING_CHUNK_MS, RECORDING_SEGMENTER, SEGMENT_FRAME_MS, SEGMENT_ID_PATTERN, SEGMENT_PRE_ROLL_MS, SHORT_PIECE_MERGE_GAP_MS, SPEAKER_AUDIO_BITS_PER_SECOND, TrackUploader, UPLOAD_ATTEMPTS, UPLOAD_BACKOFF_MS, acceptRing, addConversationToList, appendToThread, applyAgentDmStatus, applyCallEvent, applyChatEvent, applyChatMessage, applyChatRead, applyChatUpdated, arbiAccountClient, buildMeetingChatBody, cachedChat, cachedChats, callLink, callMemberKeys, callSession, chatByExtId, chatHasLiveCall, chatLiveCallId, chatTranscriptRef, clearMeetingChatCache, clearTrackUploaders, clockTime, compositeFiles, compositeTrack, conversationKeyForCall, createLocalFeatureStore, createMutedNotifier, createTrackCutter, cutAtPauses, declineRing, decodeCallChatPacket, decodeCaptionPacket, decodeMono16k, decryptPart, encodeCallChatPacket, encodeCaptionPacket, encodeWav, encryptPart, ensureMeetingChat, entitlementRefusal, extensionFor, fetchPart, fileSafe, findConversation, floatToWav, formatTranscriptMarkdown, getOpenChat, hasRecordingTranscript, invalidateCall, invalidateConversationDetails, invalidateConversationLists, isConversationListKey, isConversationShared, isRecordingOver, isRecordingSegmentId, isRetryable, isWorkspaceGuestOf, joinFromPreJoin, knownMeetingChat, loadMeetingHistory, markRejoining, meetingChatRefFrom, meetingRefForCall, mergeChatLines, mutedNoticeFromEvent, mutedNoticeFromPacket, mutedNoticeText, myChatId, newPacketId, newSegmentId, newTrackKey, nextSeqAfter, onCallEvent, openCall, openQuestion, openRecording, parseWebinarPacket, partKey, partOffsetMs, partsDue, patchConversation, patchConversationList, persistMeetingMessage, persistTranscriptSegment, playheadAt, postRecordingDocsToThread, postTranscriptToThread, readLocalFeature, recordingFiles, recordingWindowsOf, rejoinAsAudience, removeChat, removeConversationFromLists, resetCallSession, resolveMeetingChat, saveRecordingFilesToThread, schedulePart, sealQuestionText, serverCallsExperimental, setOpenChat, sortTranscriptMessages, sortedParts, speakerTracks, speakerWav, splitIntoFiles, standalone, startChatCall, startContactsCall, startDmCall, startThreadCall, startsMediaFile, storeTranscriptSegment, stripSpeakerPrefix, supersedeLiveTranscript, supersededTranscriptLines, threadHasLiveCall, threadLiveCallId, threadTranscriptLines, threadTranscriptRef, threadTranscriptText, timelineDurationMs, timelineOf, toProfileView, trackUploaderFor, transcribeRecording, transcriptPersistRole, transcriptSegmentOf, unwrapTrackKey, upsertChat, useAccountClient, useAvatarCrop, useCall, useCallInviteLinks, useCallRecording, useCallRecordings, useCallSession, useCallTranscriptionAvailable, useCallsConfig, useCallsEnabled, useCanHostCalls, useEntitlements, useFeature, useFeatureSwitch, useIsEntitled, useMeetingReadOnly, useNameEditor, useOpenCallMeetingChat, useProfile, useRecordingActions, useRecordingWindows, useRevokeCallInviteLink, useSaveToThread, useServerCallsEnabled, useServerCallsExperimental, useUpdateProfile, useUpdateUserSettings, useUserSettings, wrapTrackKey, writeSamples } from './chunk-M3SB5TZB.js';
|
|
4
|
+
import { replayableTagMutations, inWorkspace, primeOnClient, patchDocuments, setCachedDocument, adjustTagCounts, patchCachedDocument, FINISHED_DOCUMENT_STATUSES, refreshDocuments, getCachedDocuments, useArbiWsStore, IN_FLIGHT_DOCUMENT_STATUSES, useCapturingWorkspace, QUEUED_WRITE_RETRY, isWorkspaceUnavailable, primeOnArbi, forgetDocuments, useDocument, useSimilarDocuments, SIMILARITY_THRESHOLD, QUEUED_WRITE_BLOCKED_MESSAGE, isBlockedOnWorkspace, useDocuments, finishEntityExtraction } from './chunk-2LV53J46.js';
|
|
5
|
+
export { DISMISSED_TASK_TTL_MS, DOCUMENTS_FIRST_PAGE_MEASURE, DOCUMENTS_FIRST_PAGE_SIZE, DOCUMENTS_PAGE_SIZE, FINISHED_DOCUMENT_STATUSES, IN_FLIGHT_DOCUMENT_STATUSES, SIMILARITY_THRESHOLD, adjustTagCounts, dropTagFromCachedDocuments, finishEntityExtraction, forgetDocuments, getCachedDocuments, invalidateTagData, invalidateTagTables, isDocumentsLoading, isRowNewer, isStaleTaskUpdate, patchCachedDocument, patchDocuments, patchWorkspaceTags, refreshDocuments, resolveDocumentStatus, setCachedDocument, settledByRows, startEntityExtraction, stopDocumentsLoading, subscribeDocumentRows, upsertDocuments, useArbiWsStore, useCreateTag, useDeleteTag, useDocument, useDocuments, useDocumentsById, useDocumentsLoading, useEntityExtractionDocIds, useExtractEntities, useInvalidateTagData, useIsCreatingTag, useRefreshDocuments, useSetTagValues, useSimilarDocuments, useTagKindSchema, useUpdateTag, useUpdateTagKindSchema } from './chunk-2LV53J46.js';
|
|
6
|
+
import { useArbiSessionState, useArbiSession, useWorkspaces, useConversations, useConfig, useArbiSessionStore, useAvailableModels, useParsedDocument, useTags, selectDraft, useConversationThreads, createArbiSessionStore, useTransientView, useProjects, useAgents, useAssistantQuery, useActivity, queuedMessages, MIN_QUEUED_MESSAGE_VISIBILITY_MS } from './chunk-QGOYIYLI.js';
|
|
7
|
+
export { DEFAULT_DOCUMENT_VIEWER_STATE, EMPTY_SESSION_STATE, MAX_THREAD_TABS, MIN_QUEUED_MESSAGE_VISIBILITY_MS, PROJECT_CREATION_DENIED_REASON, WORKSPACE_LAST_OPENED_KEY, WORKSPACE_STORAGE_KEY, agentControl, browserWorkspaceStorage, clearSealedDrafts, closePanelIn, conversationKey, createArbiLayoutStore, createArbiSessionStore, createArbiWorkspaceStore, createDebouncedWriter, createSealedDraftStorage, createStoragePersist, defaultLayoutState, dmTabId, flushOnPageExit, isPanelOpen, isUsageMetered, layoutActionsOf, nextViewingDocument, openPanelIn, panelPlace, parseSavedLayout, queuedMessages, readWorkspaceLastOpened, restoreLayout, savedLayoutOf, selectDraft, selectIsGenerating, selectViewingDocumentId, threadTabId, useActivity, useAgents, useArbiSession, useArbiSessionState, useArbiSessionStore, useAssistantQuery, useAvailableModels, useBoxRole, useBuiltinCommands, useCanCreateProjects, useConfig, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocumentVersionList, useFirmPool, useHealth, useMessageDetails, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessionPageTab, useSessionView, useSignedInSession, useTags, useThumbnails, useTopUpFirmPool, useTransientView, useUserUsageToday, useWorkspaceActivity, useWorkspaces } from './chunk-QGOYIYLI.js';
|
|
8
|
+
import { fetchDocumentFile, downloadBlob, fetchMarkupPdf, fetchDocumentPdf } from './chunk-SI7DJWBT.js';
|
|
9
|
+
import { arbiMutationKeys, arbiQueryKeys, mailQueryKeys, connectorQueryKeys, calendarQueryKeys } from './chunk-AOEJ744V.js';
|
|
10
|
+
export { arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callQueryKeys, connectorQueryKeys, isUnderQueryKey, mailQueryKeys } from './chunk-AOEJ744V.js';
|
|
11
|
+
import { useArbi, useArbiHost } from './chunk-R7YNABZY.js';
|
|
12
|
+
export { useArbi, useArbiHost, useDeploymentDomain } from './chunk-R7YNABZY.js';
|
|
13
|
+
import { ArbiHost, extractMentions, UNBOUND, bindingOfRow, readLegacyThreadDocuments, forgetLegacyThreadDocuments, toMessageMentions, takeDocumentForTurn, hasMessageBody, createSearchSession, clearSearchSession } from './chunk-ZTPJNKF2.js';
|
|
14
|
+
export { LEGACY_THREAD_DOCUMENTS_KEY, MENTION_HREF_PREFIX, NotificationBell, Toaster, UNBOUND, bindingOfRow, clearSearchSession, createSearchSession, extractMentions, filterMentionCandidates, findMentionQuery, forgetLegacyThreadDocuments, hasMessageBody, insertMention, latestThreadOfDocument, linkMentions, mentionFromHref, openDocumentId, opensInWord, persistSearchSession, readLegacyThreadDocuments, requestSearch, savedDocumentIdFor, sharedSearchSession, takeDocumentForTurn, takePendingSearch, toMessageMentions, useOpenDocumentId, useRegisterOpenDocument, useTurnDocumentId } from './chunk-ZTPJNKF2.js';
|
|
15
|
+
import { notify, recordChatArtifact } from './chunk-G4Z3IP4J.js';
|
|
16
|
+
export { DEFAULT_NOTIFY_TONE, MAX_SESSION_NOTIFICATIONS, clearChatArtifacts, configureNotify, getChatArtifact, getChatArtifacts, notify, persistNotifyHistory, recordChatArtifact, seedNotifications, selectUnread, toast, useChatArtifact, useConversationChatArtifact, useMessageChatArtifact, useNotify } from './chunk-G4Z3IP4J.js';
|
|
17
|
+
export { mergeHostConfig } from './chunk-DPYBZDJB.js';
|
|
18
|
+
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-NNWMHMEC.js';
|
|
19
|
+
import './chunk-WUTL62MC.js';
|
|
20
|
+
import { returnFocusToMark, MarkMenu, getDocumentTitle, Badge, TagEntity, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, friendlyFileType, AiMarkdown, Card, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Slider, getEntityLabel, getDocumentDate, usesOriginalBytesForViewer } from './chunk-3NBPMR3X.js';
|
|
21
|
+
export { ARBI_MARK_SRC, AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, AudIcon, BASE_COLORS, Badge, COLUMN_LABEL_FALLBACKS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClaudeIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_METADATA_TAGS, DebouncedInput, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, FireworksIcon, GeminiIcon, GoogleIcon, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, IconToggle, ImgIcon, InlineMicButton, Input, Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY, OpenAIIcon, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, ProviderIcon, 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, VerifiedToggle, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, agentAvatarColors, badgeVariants, buildFolderTree, canonicalFolderPath, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, entityNoun, extensionFromMime, formatCompactLastSeen, formatDocDate, formatElapsed, formatFolderLabel, formatFriendlyDate, friendlyFileType, getDocIcon, getDocumentAuthor, getDocumentDate, getDocumentNature, getDocumentSubject, getDocumentTitle, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getFileExtension, getFileTypeIcon, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, isAudioFile, isDocumentAddableToConversation, isDownloadOnlyFile, isImageDocument, isImageFile, isMediaFile, isVideoFile, markdownToPlainText, markdownToPlainTextBlocks, pickRecorderMimeType, tagKindNouns, tagKindTitle, toggleVariants, useAudioRecorder, useDictateContext, usesOriginalBytesForViewer } from './chunk-3NBPMR3X.js';
|
|
5
22
|
import { getUserDisplayName, isAgent } from './chunk-APZZQZ6P.js';
|
|
6
23
|
export { Avatar, AvatarFallback, AvatarImage, DEFAULT_SEGMENTER_CONFIG, INITIAL_SEGMENTER_STATE, createUserAvatarIcon, flushSegmenter, getUserAvatarColor, getUserDisplayName, getUserInitials, isAgent, levelFromRms, stepSegmenter } from './chunk-APZZQZ6P.js';
|
|
7
|
-
import { replayableTagMutations, inWorkspace, primeOnClient, patchDocuments, setCachedDocument, adjustTagCounts, patchCachedDocument, FINISHED_DOCUMENT_STATUSES, refreshDocuments, getCachedDocuments, useArbiWsStore, IN_FLIGHT_DOCUMENT_STATUSES, useCapturingWorkspace, QUEUED_WRITE_RETRY, isWorkspaceUnavailable, primeOnArbi, forgetDocuments, useSimilarDocuments, SIMILARITY_THRESHOLD, QUEUED_WRITE_BLOCKED_MESSAGE, isBlockedOnWorkspace, useDocuments, finishEntityExtraction } from './chunk-2LV53J46.js';
|
|
8
|
-
export { DISMISSED_TASK_TTL_MS, DOCUMENTS_FIRST_PAGE_MEASURE, DOCUMENTS_FIRST_PAGE_SIZE, DOCUMENTS_PAGE_SIZE, FINISHED_DOCUMENT_STATUSES, IN_FLIGHT_DOCUMENT_STATUSES, SIMILARITY_THRESHOLD, adjustTagCounts, dropTagFromCachedDocuments, finishEntityExtraction, forgetDocuments, getCachedDocuments, invalidateTagData, invalidateTagTables, isDocumentsLoading, isRowNewer, isStaleTaskUpdate, patchCachedDocument, patchDocuments, patchWorkspaceTags, refreshDocuments, resolveDocumentStatus, setCachedDocument, settledByRows, startEntityExtraction, stopDocumentsLoading, subscribeDocumentRows, upsertDocuments, useArbiWsStore, useCreateTag, useDeleteTag, useDocument, useDocuments, useDocumentsById, useDocumentsLoading, useEntityExtractionDocIds, useExtractEntities, useInvalidateTagData, useIsCreatingTag, useRefreshDocuments, useSetTagValues, useSimilarDocuments, useTagKindSchema, useUpdateTag, useUpdateTagKindSchema } from './chunk-2LV53J46.js';
|
|
9
24
|
import { MarkdownRenderer } from './chunk-C44GO33B.js';
|
|
10
25
|
export { MarkdownCode, MarkdownLink, MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, markdownSanitizeSchema, splitMarkdownBlocks } from './chunk-C44GO33B.js';
|
|
11
|
-
import { useArbiSessionState, useArbiSession, useWorkspaces, useConversations, useConfig, useArbiSessionStore, useAvailableModels, useParsedDocument, useTags, selectDraft, useConversationThreads, createArbiSessionStore, useTransientView, useProjects, useAgents, useAssistantQuery, useActivity, queuedMessages, MIN_QUEUED_MESSAGE_VISIBILITY_MS } from './chunk-IXKD5JLF.js';
|
|
12
|
-
export { DEFAULT_DOCUMENT_VIEWER_STATE, EMPTY_SESSION_STATE, MAX_THREAD_TABS, MIN_QUEUED_MESSAGE_VISIBILITY_MS, PROJECT_CREATION_DENIED_REASON, WORKSPACE_LAST_OPENED_KEY, WORKSPACE_STORAGE_KEY, agentControl, browserWorkspaceStorage, clearSealedDrafts, closePanelIn, conversationKey, createArbiLayoutStore, createArbiSessionStore, createArbiWorkspaceStore, createDebouncedWriter, createSealedDraftStorage, createStoragePersist, defaultLayoutState, dmTabId, flushOnPageExit, isPanelOpen, isUsageMetered, layoutActionsOf, nextViewingDocument, openPanelIn, panelPlace, parseSavedLayout, queuedMessages, readWorkspaceLastOpened, restoreLayout, savedLayoutOf, selectDraft, selectIsGenerating, selectViewingDocumentId, threadTabId, useActivity, useAgents, useArbiSession, useArbiSessionState, useArbiSessionStore, useAssistantQuery, useAvailableModels, useBoxRole, useBuiltinCommands, useCanCreateProjects, useConfig, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocumentVersionList, useFirmPool, useHealth, useMessageDetails, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessionPageTab, useSessionView, useSignedInSession, useTags, useThumbnails, useTopUpFirmPool, useTransientView, useUserUsageToday, useWorkspaceActivity, useWorkspaces } from './chunk-IXKD5JLF.js';
|
|
13
|
-
import { fetchDocumentFile, downloadBlob, fetchMarkupPdf, fetchDocumentPdf } from './chunk-CHLDCP3J.js';
|
|
14
26
|
import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-YNNAJJ5Z.js';
|
|
15
27
|
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from './chunk-YNNAJJ5Z.js';
|
|
16
|
-
import { arbiMutationKeys, arbiQueryKeys, mailQueryKeys, connectorQueryKeys, calendarQueryKeys } from './chunk-AOEJ744V.js';
|
|
17
|
-
export { arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callQueryKeys, connectorQueryKeys, isUnderQueryKey, mailQueryKeys } from './chunk-AOEJ744V.js';
|
|
18
|
-
import { ArbiHost, extractMentions, UNBOUND, bindingOfRow, readLegacyThreadDocuments, forgetLegacyThreadDocuments, toMessageMentions, takeDocumentForTurn, hasMessageBody, createSearchSession, clearSearchSession } from './chunk-SOIOQBZZ.js';
|
|
19
|
-
export { LEGACY_THREAD_DOCUMENTS_KEY, MENTION_HREF_PREFIX, NotificationBell, Toaster, UNBOUND, bindingOfRow, clearSearchSession, createSearchSession, extractMentions, filterMentionCandidates, findMentionQuery, forgetLegacyThreadDocuments, hasMessageBody, insertMention, latestThreadOfDocument, linkMentions, mentionFromHref, openDocumentId, opensInWord, persistSearchSession, readLegacyThreadDocuments, requestSearch, savedDocumentIdFor, sharedSearchSession, takeDocumentForTurn, takePendingSearch, toMessageMentions, useOpenDocumentId, useRegisterOpenDocument, useTurnDocumentId } from './chunk-SOIOQBZZ.js';
|
|
20
28
|
import { formatRelativeTime } from './chunk-Y3MTRA7D.js';
|
|
21
29
|
export { ScrollArea, ScrollBar, configureEntityVocabulary, formatRelativeTime } from './chunk-Y3MTRA7D.js';
|
|
22
|
-
import { notify, recordChatArtifact } from './chunk-G4Z3IP4J.js';
|
|
23
|
-
export { DEFAULT_NOTIFY_TONE, MAX_SESSION_NOTIFICATIONS, clearChatArtifacts, configureNotify, getChatArtifact, getChatArtifacts, notify, persistNotifyHistory, recordChatArtifact, seedNotifications, selectUnread, toast, useChatArtifact, useConversationChatArtifact, useMessageChatArtifact, useNotify } from './chunk-G4Z3IP4J.js';
|
|
24
|
-
export { mergeHostConfig } from './chunk-DPYBZDJB.js';
|
|
25
30
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-47CCGUWR.js';
|
|
26
31
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PortalContainerProvider, usePortalContainer } from './chunk-47CCGUWR.js';
|
|
27
|
-
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-MZ7EYCGH.js';
|
|
28
32
|
import { normalizeCitationMarkup } from './chunk-QRCMKEE6.js';
|
|
29
33
|
export { closeOpenEmphasis, normalizeCitationMarkup, trimOpenCitation } from './chunk-QRCMKEE6.js';
|
|
34
|
+
export { useHostConfigRecord } from './chunk-CPZ36AQS.js';
|
|
30
35
|
import { cn } from './chunk-SN5YV6FF.js';
|
|
31
36
|
export { cn } from './chunk-SN5YV6FF.js';
|
|
32
|
-
import './chunk-WUTL62MC.js';
|
|
33
|
-
import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
|
|
34
|
-
import { useArbi, useArbiHost } from './chunk-R7YNABZY.js';
|
|
35
|
-
export { useArbi, useArbiHost, useDeploymentDomain } from './chunk-R7YNABZY.js';
|
|
36
|
-
export { useHostConfigRecord } from './chunk-CPZ36AQS.js';
|
|
37
37
|
import React, { memo, useState, createContext, useMemo, useCallback, useEffect, useRef, useLayoutEffect, useSyncExternalStore, useContext, useId } from 'react';
|
|
38
38
|
import { useQuery, useQueryClient, useMutation, onlineManager, partialMatchKey, useMutationState, useQueries } from '@tanstack/react-query';
|
|
39
39
|
import { documents, houseTemplates, doctags, STOP_ID_WAIT_MS, resolveCitations, summarizeCitations, createIndexAssigner, reduceOutputItem, findReplyTarget, ArbiApiError, quotaFromStreamError, STOP_REPEAT_WINDOW_MS, getRunToCancel, pickMainThread, extractDocumentIdsFromMessages, extractFactIdsFromMessages, hydrateAgentSteps, getSubagentBranchRecord, getRunToAttach, ArbiWorkspaceChangedError, settings, isConnectorVendorVisible, ACCOUNT_VENDOR, searchChunks, formatFileSize, chats, connectWithReconnect, ArbiWorkspaceSupersededError, identityErrorCode } from '@arbidocs/sdk/browser';
|
|
@@ -2504,6 +2504,13 @@ function DocumentCardMenu({
|
|
|
2504
2504
|
] })
|
|
2505
2505
|
] });
|
|
2506
2506
|
}
|
|
2507
|
+
var PARSED_STATUSES = /* @__PURE__ */ new Set(["completed", "low-content"]);
|
|
2508
|
+
function noTextMessage(status) {
|
|
2509
|
+
if (status === "failed")
|
|
2510
|
+
return "This document could not be processed, so it has no text to review.";
|
|
2511
|
+
if (status === "empty" || status === "skipped") return "No readable content.";
|
|
2512
|
+
return "Still processing. The text appears here when it is ready.";
|
|
2513
|
+
}
|
|
2507
2514
|
function DocumentReview({
|
|
2508
2515
|
docId,
|
|
2509
2516
|
doc,
|
|
@@ -2513,7 +2520,19 @@ function DocumentReview({
|
|
|
2513
2520
|
onClose,
|
|
2514
2521
|
className
|
|
2515
2522
|
}) {
|
|
2516
|
-
const
|
|
2523
|
+
const processingInProp = !!doc?.status && !FINISHED_DOCUMENT_STATUSES.has(doc.status);
|
|
2524
|
+
const { data: polled } = useDocument(docId, {
|
|
2525
|
+
enabled: processingInProp,
|
|
2526
|
+
pollWhileProcessing: true
|
|
2527
|
+
});
|
|
2528
|
+
const status = processingInProp ? polled?.status ?? doc?.status : doc?.status;
|
|
2529
|
+
const noTextYet = stage === "final" && !!status && !PARSED_STATUSES.has(status);
|
|
2530
|
+
const parsedQuery = useParsedDocument(docId, stage, { enabled: !noTextYet });
|
|
2531
|
+
const { isError: parsedFailed, refetch: refetchParsed } = parsedQuery;
|
|
2532
|
+
const readable = !!status && !noTextYet;
|
|
2533
|
+
React.useEffect(() => {
|
|
2534
|
+
if (readable && parsedFailed) void refetchParsed();
|
|
2535
|
+
}, [readable]);
|
|
2517
2536
|
const tagsQuery = useTags(workspaceId);
|
|
2518
2537
|
const tagNameById = React.useMemo(() => {
|
|
2519
2538
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -2577,11 +2596,11 @@ function DocumentReview({
|
|
|
2577
2596
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
2578
2597
|
/* @__PURE__ */ jsx("div", { className: "truncate text-sm font-semibold", title, children: title }),
|
|
2579
2598
|
/* @__PURE__ */ jsxs("div", { className: "text-xs text-muted-foreground", children: [
|
|
2580
|
-
parsedQuery.data?.metadata?.total_number_of_pages ? `${parsedQuery.data.metadata.total_number_of_pages} pages` : `${pages.length} pages`,
|
|
2599
|
+
noTextYet ? "" : parsedQuery.data?.metadata?.total_number_of_pages ? `${parsedQuery.data.metadata.total_number_of_pages} pages` : `${pages.length} pages`,
|
|
2581
2600
|
findings.length ? ` \xB7 ${findings.length} findings` : ""
|
|
2582
2601
|
] })
|
|
2583
2602
|
] }),
|
|
2584
|
-
|
|
2603
|
+
status ? /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: status }) : null,
|
|
2585
2604
|
onClose ? /* @__PURE__ */ jsx(
|
|
2586
2605
|
"button",
|
|
2587
2606
|
{
|
|
@@ -2634,7 +2653,14 @@ function DocumentReview({
|
|
|
2634
2653
|
]
|
|
2635
2654
|
}
|
|
2636
2655
|
) : null,
|
|
2637
|
-
/* @__PURE__ */ jsx("div", { ref: scrollRef, className: "min-w-0 flex-1 overflow-y-auto px-6 py-4", children:
|
|
2656
|
+
/* @__PURE__ */ jsx("div", { ref: scrollRef, className: "min-w-0 flex-1 overflow-y-auto px-6 py-4", children: noTextYet ? /* @__PURE__ */ jsx(
|
|
2657
|
+
"div",
|
|
2658
|
+
{
|
|
2659
|
+
className: "flex h-full items-center justify-center text-sm text-muted-foreground",
|
|
2660
|
+
"data-testid": "document-review-no-text",
|
|
2661
|
+
children: noTextMessage(status)
|
|
2662
|
+
}
|
|
2663
|
+
) : parsedQuery.isLoading ? /* @__PURE__ */ jsx("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: "Loading document\u2026" }) : parsedQuery.isError ? /* @__PURE__ */ jsx("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: "Could not load this document\u2019s content." }) : pages.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: "No readable content." }) : /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-3xl space-y-8", children: pages.map(([pageNum, chunks]) => /* @__PURE__ */ jsxs("section", { children: [
|
|
2638
2664
|
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-center gap-3", children: [
|
|
2639
2665
|
/* @__PURE__ */ jsxs("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: [
|
|
2640
2666
|
"Page ",
|