@arbidocs/react 0.4.168 → 0.4.169

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.js CHANGED
@@ -1,17 +1,17 @@
1
- import { invalidateConversationLists, patchConversation, invalidateConversationDetails, addConversationToList, findConversation, isConversationShared, isKnownSoloConversation, patchConversationList, removeConversationFromLists, ArbiWsContext, useArbiWsContext, useAccountClient, applyChatEvent, myChatId, upsertChat, appendToThread, dropFromThread, deleteChatMessage, removeChat, cachedChats } from './chunk-H3LMKO3T.js';
2
- 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, 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, isKnownSoloConversation, 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, recordingFiles, recordingWindowsOf, rejoinAsAudience, removeChat, removeConversationFromLists, resetCallSession, resolveMeetingChat, saveRecordingFilesToThread, schedulePart, sealQuestionText, 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, useArbiWsContext, useAvatarCrop, useCall, useCallInviteLinks, useCallLiveUpdates, useCallRecording, useCallRecordings, useCallSession, useCallTranscriptionAvailable, useCallsConfig, useCallsEnabled, useCanHostCalls, useEntitlements, useIsEntitled, useMeetingReadOnly, useNameEditor, useOpenCallMeetingChat, useProfile, useRecordingActions, useRecordingWindows, useRevokeCallInviteLink, useSaveToThread, useServerCallsEnabled, useUpdateProfile, wrapTrackKey, writeSamples } from './chunk-H3LMKO3T.js';
1
+ import { invalidateConversationLists, patchConversation, invalidateConversationDetails, addConversationToList, findConversation, isConversationShared, isKnownSoloConversation, patchConversationList, removeConversationFromLists, ArbiWsContext, useArbiWsContext, useAccountClient, applyChatEvent, myChatId, upsertChat, appendToThread, dropFromThread, deleteChatMessage, removeChat, cachedChats } from './chunk-W6DYNLA2.js';
2
+ 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, 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, isKnownSoloConversation, 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, recordingFiles, recordingWindowsOf, rejoinAsAudience, removeChat, removeConversationFromLists, resetCallSession, resolveMeetingChat, saveRecordingFilesToThread, schedulePart, sealQuestionText, 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, useArbiWsContext, useAvatarCrop, useCall, useCallInviteLinks, useCallLiveUpdates, useCallRecording, useCallRecordings, useCallSession, useCallTranscriptionAvailable, useCallsConfig, useCallsEnabled, useCanHostCalls, useEntitlements, useIsEntitled, useMeetingReadOnly, useNameEditor, useOpenCallMeetingChat, useProfile, useRecordingActions, useRecordingWindows, useRevokeCallInviteLink, useSaveToThread, useServerCallsEnabled, useUpdateProfile, wrapTrackKey, writeSamples } from './chunk-W6DYNLA2.js';
3
3
  import { settledByRows, isStaleTaskUpdate, replayableTagMutations, patchDocuments, setCachedDocument, adjustTagCounts, patchCachedDocument, forgetDocuments, getCachedDocuments, refreshDocuments, FINISHED_DOCUMENT_STATUSES, useSimilarDocuments, SIMILARITY_THRESHOLD, useDocuments, finishEntityExtraction } from './chunk-3NVSUYUV.js';
4
4
  export { 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, useCreateTag, useDeleteTag, useDocument, useDocuments, useDocumentsById, useDocumentsLoading, useEntityExtractionDocIds, useExtractEntities, useInvalidateTagData, useIsCreatingTag, useSetTagValues, useSimilarDocuments, useTagKindSchema, useUpdateTag, useUpdateTagKindSchema } from './chunk-3NVSUYUV.js';
5
- import { useArbiSessionState, useConversations, useArbiSession, useWorkspaces, useConfig, useArbiSessionStore, useAvailableModels, useParsedDocument, useTags, selectDraft, useConversationThreads, createArbiSessionStore, useAgents, useAssistantQuery, useActivity, queuedMessages, MIN_QUEUED_MESSAGE_VISIBILITY_MS } from './chunk-MJNZLWJD.js';
6
- export { DEFAULT_DOCUMENT_VIEWER_STATE, EMPTY_SESSION_STATE, MAX_THREAD_TABS, MIN_QUEUED_MESSAGE_VISIBILITY_MS, PROJECT_CREATION_DENIED_REASON, agentControl, clearSealedDrafts, conversationKey, createArbiSessionStore, createSealedDraftStorage, isUsageMetered, nextViewingDocument, queuedMessages, selectDraft, selectIsGenerating, selectViewingDocumentId, threadTabId, useActivity, useAgents, useArbiSession, useArbiSessionState, useArbiSessionStore, useAssistantQuery, useAvailableModels, useBuiltinCommands, useCanCreateProjects, useConfig, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocumentVersionList, useFirmPool, useHealth, useMessageDetails, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSignedInSession, useTags, useThumbnails, useTopUpFirmPool, useUserUsageToday, useWorkspaceActivity, useWorkspaces } from './chunk-MJNZLWJD.js';
5
+ import { useArbiSessionState, useConversations, useArbiSession, useWorkspaces, useConfig, useArbiSessionStore, useAvailableModels, useParsedDocument, useTags, selectDraft, useConversationThreads, createArbiSessionStore, useAgents, useAssistantQuery, useActivity, queuedMessages, MIN_QUEUED_MESSAGE_VISIBILITY_MS } from './chunk-7NY2J3TR.js';
6
+ export { DEFAULT_DOCUMENT_VIEWER_STATE, EMPTY_SESSION_STATE, MAX_THREAD_TABS, MIN_QUEUED_MESSAGE_VISIBILITY_MS, PROJECT_CREATION_DENIED_REASON, agentControl, clearSealedDrafts, conversationKey, createArbiSessionStore, createSealedDraftStorage, isUsageMetered, nextViewingDocument, queuedMessages, selectDraft, selectIsGenerating, selectViewingDocumentId, threadTabId, useActivity, useAgents, useArbiSession, useArbiSessionState, useArbiSessionStore, useAssistantQuery, useAvailableModels, useBuiltinCommands, useCanCreateProjects, useConfig, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocumentVersionList, useFirmPool, useHealth, useMessageDetails, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSignedInSession, useTags, useThumbnails, useTopUpFirmPool, useUserUsageToday, useWorkspaceActivity, useWorkspaces } from './chunk-7NY2J3TR.js';
7
+ import { fetchDocumentFile, downloadBlob, fetchMarkupPdf } from './chunk-YWYCEEBF.js';
8
+ import { arbiMutationKeys, arbiQueryKeys, mailQueryKeys, connectorQueryKeys, calendarQueryKeys } from './chunk-NVAIVJID.js';
9
+ export { arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callQueryKeys, connectorQueryKeys, isUnderQueryKey, mailQueryKeys } from './chunk-NVAIVJID.js';
7
10
  import { ArbiHost, extractMentions, toMessageMentions, takeOpenDocumentForTurn, hasMessageBody, createSearchSession, clearSearchSession, formatRelativeTime } from './chunk-DGMK3EUN.js';
8
11
  export { MENTION_HREF_PREFIX, NotificationBell, Toaster, clearSearchSession, createSearchSession, extractMentions, filterMentionCandidates, findMentionQuery, formatRelativeTime, hasMessageBody, insertMention, linkMentions, mentionFromHref, persistSearchSession, requestSearch, savedDocumentIdFor, sharedSearchSession, takeOpenDocumentForTurn, takePendingSearch, toMessageMentions, useOpenDocumentId, useRegisterOpenDocument } from './chunk-DGMK3EUN.js';
9
12
  import { notify } from './chunk-5HDC43MF.js';
10
13
  export { DEFAULT_NOTIFY_TONE, MAX_SESSION_NOTIFICATIONS, configureNotify, notify, persistNotifyHistory, seedNotifications, selectUnread, toast, useNotify } from './chunk-5HDC43MF.js';
11
14
  export { mergeHostConfig } from './chunk-DPYBZDJB.js';
12
- import { fetchDocumentFile, downloadBlob, fetchMarkupPdf } from './chunk-YWYCEEBF.js';
13
- import { arbiMutationKeys, arbiQueryKeys, mailQueryKeys, connectorQueryKeys, calendarQueryKeys } from './chunk-NVAIVJID.js';
14
- export { arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callQueryKeys, connectorQueryKeys, isUnderQueryKey, mailQueryKeys } from './chunk-NVAIVJID.js';
15
15
  export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-NNWMHMEC.js';
16
16
  import './chunk-WUTL62MC.js';
17
17
  import { returnFocusToMark, MarkMenu, getDocumentTitle, Badge, TagEntity, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, AiMarkdown, Card, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, getEntityLabel, getDocumentDate } from './chunk-3WIBD44F.js';
@@ -20,10 +20,10 @@ import { getUserDisplayName, isAgent } from './chunk-APZZQZ6P.js';
20
20
  export { Avatar, AvatarFallback, AvatarImage, DEFAULT_SEGMENTER_CONFIG, INITIAL_SEGMENTER_STATE, createUserAvatarIcon, flushSegmenter, getUserAvatarColor, getUserDisplayName, getUserInitials, isAgent, levelFromRms, stepSegmenter } from './chunk-APZZQZ6P.js';
21
21
  import { MarkdownRenderer } from './chunk-C44GO33B.js';
22
22
  export { MarkdownCode, MarkdownLink, MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, markdownSanitizeSchema, splitMarkdownBlocks } from './chunk-C44GO33B.js';
23
- import { ScrollArea } from './chunk-W4H6XAIU.js';
24
- export { ScrollArea, ScrollBar } from './chunk-W4H6XAIU.js';
25
23
  import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-YNNAJJ5Z.js';
26
24
  export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from './chunk-YNNAJJ5Z.js';
25
+ import { ScrollArea } from './chunk-W4H6XAIU.js';
26
+ export { ScrollArea, ScrollBar } from './chunk-W4H6XAIU.js';
27
27
  import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-47CCGUWR.js';
28
28
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PortalContainerProvider, usePortalContainer } from './chunk-47CCGUWR.js';
29
29
  import { normalizeCitationMarkup } from './chunk-QRCMKEE6.js';
package/dist/ui/index.cjs CHANGED
@@ -3,8 +3,8 @@
3
3
  var chunk7NHOKV7N_cjs = require('../chunk-7NHOKV7N.cjs');
4
4
  var chunkEEIYXVM4_cjs = require('../chunk-EEIYXVM4.cjs');
5
5
  var chunkOC7F5SNA_cjs = require('../chunk-OC7F5SNA.cjs');
6
- var chunkHUZB36QU_cjs = require('../chunk-HUZB36QU.cjs');
7
6
  var chunkWYZJLZ67_cjs = require('../chunk-WYZJLZ67.cjs');
7
+ var chunkHUZB36QU_cjs = require('../chunk-HUZB36QU.cjs');
8
8
  var chunkHJDR5HEO_cjs = require('../chunk-HJDR5HEO.cjs');
9
9
  var chunkZ3LLUO32_cjs = require('../chunk-Z3LLUO32.cjs');
10
10
  var chunkS6A6FSG7_cjs = require('../chunk-S6A6FSG7.cjs');
@@ -652,14 +652,6 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
652
652
  enumerable: true,
653
653
  get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
654
654
  });
655
- Object.defineProperty(exports, "ScrollArea", {
656
- enumerable: true,
657
- get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
658
- });
659
- Object.defineProperty(exports, "ScrollBar", {
660
- enumerable: true,
661
- get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
662
- });
663
655
  Object.defineProperty(exports, "Button", {
664
656
  enumerable: true,
665
657
  get: function () { return chunkWYZJLZ67_cjs.Button; }
@@ -708,6 +700,14 @@ Object.defineProperty(exports, "buttonVariants", {
708
700
  enumerable: true,
709
701
  get: function () { return chunkWYZJLZ67_cjs.buttonVariants; }
710
702
  });
703
+ Object.defineProperty(exports, "ScrollArea", {
704
+ enumerable: true,
705
+ get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
706
+ });
707
+ Object.defineProperty(exports, "ScrollBar", {
708
+ enumerable: true,
709
+ get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
710
+ });
711
711
  Object.defineProperty(exports, "DropdownMenu", {
712
712
  enumerable: true,
713
713
  get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
package/dist/ui/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export { ARBI_MARK_SRC, AgentBadge, AiMarkdown, ArbiIcon, BASE_COLORS, Badge, COLUMN_LABEL_FALLBACKS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_METADATA_TAGS, DebouncedInput, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EntityIcon, EntityPill, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, Input, Label, MarkMenu, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, 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, UserEntity, UserMenu, VISIBILITY_ICONS, VerifiedBadge, VerifiedToggle, VisibilityIcon, VisibilityToggle, agentAvatarColors, badgeVariants, buildFolderTree, canonicalFolderPath, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, extensionFromMime, formatDocDate, 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, tagKindNouns, tagKindTitle, toggleVariants, useDictateContext, usesOriginalBytesForViewer } from '../chunk-3WIBD44F.js';
2
2
  export { Avatar, AvatarFallback, AvatarImage, createUserAvatarIcon, getUserAvatarColor, getUserDisplayName, getUserInitials, isAgent } from '../chunk-APZZQZ6P.js';
3
3
  export { MarkdownCode, MarkdownLink, MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, markdownSanitizeSchema, splitMarkdownBlocks } from '../chunk-C44GO33B.js';
4
- export { ScrollArea, ScrollBar } from '../chunk-W4H6XAIU.js';
5
4
  export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from '../chunk-YNNAJJ5Z.js';
5
+ export { ScrollArea, ScrollBar } from '../chunk-W4H6XAIU.js';
6
6
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PortalContainerProvider, usePortalContainer } from '../chunk-47CCGUWR.js';
7
7
  export { closeOpenEmphasis, trimOpenCitation } from '../chunk-QRCMKEE6.js';
8
8
  export { cn } from '../chunk-SN5YV6FF.js';
@@ -159,6 +159,15 @@ function renderDpr(cssWidth, cssHeight, devicePixelRatio, maxPixels = MAX_CANVAS
159
159
  const fits = Math.sqrt(maxPixels / area);
160
160
  return Math.max(1, Math.min(wanted, fits));
161
161
  }
162
+ function fitPageWidth(contentWidth, pageBorder) {
163
+ if (!Number.isFinite(contentWidth)) return 0;
164
+ return Math.max(0, Math.floor(contentWidth) - pageBorder);
165
+ }
166
+ function contentBoxWidth(el) {
167
+ const style = getComputedStyle(el);
168
+ const padding = (parseFloat(style.paddingLeft) || 0) + (parseFloat(style.paddingRight) || 0);
169
+ return Math.max(0, el.clientWidth - padding);
170
+ }
162
171
  var distance = (a, b) => Math.hypot(a.clientX - b.clientX, a.clientY - b.clientY);
163
172
  var INTERACTIVE = 'button, a, input, textarea, select, [role="button"]';
164
173
  var DOUBLE_TAP_MS = 300;
@@ -279,7 +288,6 @@ function ensurePdfWorker(workerSrc) {
279
288
  reactPdf.pdfjs.GlobalWorkerOptions.workerSrc = workerSrc;
280
289
  }
281
290
  }
282
- var CONTAINER_PADDING_PX = 34;
283
291
  var DEFAULT_PAGE_ASPECT_RATIO = 1.414;
284
292
  var PAGE_BORDER_PX = 2;
285
293
  var RERENDER_DEBOUNCE_MS = 250;
@@ -381,15 +389,16 @@ function PdfViewer({
381
389
  updatePassword(password);
382
390
  }, []);
383
391
  react.useEffect(() => {
384
- if (!containerRef.current) return;
385
- const updateWidth = () => {
386
- if (containerRef.current) {
387
- setContainerWidth(containerRef.current.offsetWidth - CONTAINER_PADDING_PX);
388
- }
389
- };
390
- updateWidth();
391
- const resizeObserver = new ResizeObserver(updateWidth);
392
- resizeObserver.observe(containerRef.current);
392
+ const container = containerRef.current;
393
+ if (!container) return;
394
+ const setFromContentWidth = (contentWidth) => setContainerWidth(fitPageWidth(contentWidth, PAGE_BORDER_PX));
395
+ setFromContentWidth(contentBoxWidth(container));
396
+ const resizeObserver = new ResizeObserver((entries) => {
397
+ const entry = entries[entries.length - 1];
398
+ const box = entry?.contentBoxSize?.[0];
399
+ setFromContentWidth(box ? box.inlineSize : entry?.contentRect.width ?? 0);
400
+ });
401
+ resizeObserver.observe(container);
393
402
  return () => {
394
403
  resizeObserver.disconnect();
395
404
  };
@@ -500,7 +509,7 @@ function PdfViewer({
500
509
  {
501
510
  ref: containerRef,
502
511
  className: "w-full h-full overflow-auto bg-muted flex flex-col items-start p-4 pb-20",
503
- style: { touchAction: "pan-x pan-y" },
512
+ style: { touchAction: "pan-x pan-y", scrollbarGutter: "stable" },
504
513
  role: "region",
505
514
  "aria-label": "PDF document viewer",
506
515
  "data-testid": "pdf-viewer",