@arbidocs/react 0.5.111 → 0.5.113
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/account/client.js +96 -0
- package/dist/account/client.js.map +7 -0
- package/dist/account/delete.js +70 -0
- package/dist/account/delete.js.map +7 -0
- package/dist/account/didit.js +34 -0
- package/dist/account/didit.js.map +7 -0
- package/dist/account/dismissed-tips.js +33 -0
- package/dist/account/dismissed-tips.js.map +7 -0
- package/dist/account/email.js +84 -0
- package/dist/account/email.js.map +7 -0
- package/dist/account/entitlements.js +47 -0
- package/dist/account/entitlements.js.map +7 -0
- package/dist/account/identity.js +270 -0
- package/dist/account/identity.js.map +7 -0
- package/dist/account/index.js +93 -0
- package/dist/account/index.js.map +7 -0
- package/dist/account/notifications.js +59 -0
- package/dist/account/notifications.js.map +7 -0
- package/dist/account/password.js +103 -0
- package/dist/account/password.js.map +7 -0
- package/dist/account/profile.js +116 -0
- package/dist/account/profile.js.map +7 -0
- package/dist/account/recovery.js +13 -0
- package/dist/account/recovery.js.map +7 -0
- package/dist/account/relevance.js +82 -0
- package/dist/account/relevance.js.map +7 -0
- package/dist/account/sessions.js +37 -0
- package/dist/account/sessions.js.map +7 -0
- package/dist/account/settings.js +39 -0
- package/dist/account/settings.js.map +7 -0
- package/dist/account/table-views.js +16 -0
- package/dist/account/table-views.js.map +7 -0
- package/dist/ai/AiAnswer.js +83 -0
- package/dist/ai/AiAnswer.js.map +7 -0
- package/dist/ai/AiMarkdown.js +40 -0
- package/dist/ai/AiMarkdown.js.map +7 -0
- package/dist/ai/ArtifactCanvas.js +193 -0
- package/dist/ai/ArtifactCanvas.js.map +7 -0
- package/dist/ai/CitationRenderer.js +413 -0
- package/dist/ai/CitationRenderer.js.map +7 -0
- package/dist/{chunk-WL2Y2T47.js → ai/MarkdownRenderer.js} +35 -101
- package/dist/ai/MarkdownRenderer.js.map +7 -0
- package/dist/ai/MessageArtifactCard.js +75 -0
- package/dist/ai/MessageArtifactCard.js.map +7 -0
- package/dist/ai/PassageCard.js +79 -0
- package/dist/ai/PassageCard.js.map +7 -0
- package/dist/ai/engine.js +110 -0
- package/dist/ai/engine.js.map +7 -0
- package/dist/ai/index.js +63 -0
- package/dist/ai/index.js.map +7 -0
- package/dist/ai/markdown-base-components.js +37 -0
- package/dist/ai/markdown-base-components.js.map +7 -0
- package/dist/ai/markdown-streaming-context.js +6 -0
- package/dist/ai/markdown-streaming-context.js.map +7 -0
- package/dist/{chunk-VSCU7K4V.js → ai/normalize-citations.js} +12 -19
- package/dist/ai/normalize-citations.js.map +7 -0
- package/dist/ai/redline.js +41 -0
- package/dist/ai/redline.js.map +7 -0
- package/dist/ai/split-markdown-blocks.js +40 -0
- package/dist/ai/split-markdown-blocks.js.map +7 -0
- package/dist/{chunk-UW2SGTI5.js → ai/stored-markdown.js} +41 -93
- package/dist/ai/stored-markdown.js.map +7 -0
- package/dist/annotations/AnnotationPageOverlay.js +807 -0
- package/dist/annotations/AnnotationPageOverlay.js.map +7 -0
- package/dist/annotations/AnnotationToolbar.js +398 -0
- package/dist/annotations/AnnotationToolbar.js.map +7 -0
- package/dist/annotations/FreezeDialog.js +170 -0
- package/dist/annotations/FreezeDialog.js.map +7 -0
- package/dist/annotations/ProductionDialog.js +354 -0
- package/dist/annotations/ProductionDialog.js.map +7 -0
- package/dist/annotations/controller.js +49 -0
- package/dist/annotations/controller.js.map +7 -0
- package/dist/annotations/freeze/browser.js +21 -0
- package/dist/annotations/freeze/browser.js.map +7 -0
- package/dist/annotations/freeze/bundle.js +201 -0
- package/dist/annotations/freeze/bundle.js.map +7 -0
- package/dist/annotations/freeze/coords.js +37 -0
- package/dist/annotations/freeze/coords.js.map +7 -0
- package/dist/annotations/freeze/freeze.js +261 -0
- package/dist/annotations/freeze/freeze.js.map +7 -0
- package/dist/annotations/freeze/hash.js +28 -0
- package/dist/annotations/freeze/hash.js.map +7 -0
- package/dist/annotations/freeze/index-page.js +78 -0
- package/dist/annotations/freeze/index-page.js.map +7 -0
- package/dist/annotations/freeze/index.js +28 -22
- package/dist/annotations/freeze/index.js.map +7 -1
- package/dist/annotations/freeze/raster.js +208 -0
- package/dist/annotations/freeze/raster.js.map +7 -0
- package/dist/annotations/freeze/stamp.js +117 -0
- package/dist/annotations/freeze/stamp.js.map +7 -0
- package/dist/annotations/freeze/types.js +14 -0
- package/dist/annotations/freeze/types.js.map +7 -0
- package/dist/annotations/freeze/vector.js +283 -0
- package/dist/annotations/freeze/vector.js.map +7 -0
- package/dist/annotations/geometry.js +81 -0
- package/dist/annotations/geometry.js.map +7 -0
- package/dist/annotations/index.js +125 -6
- package/dist/annotations/index.js.map +7 -1
- package/dist/annotations/merge.js +53 -0
- package/dist/annotations/merge.js.map +7 -0
- package/dist/{chunk-T3USOSVN.js → annotations/model.js} +23 -16
- package/dist/annotations/model.js.map +7 -0
- package/dist/annotations/overlay-geometry.js +41 -0
- package/dist/annotations/overlay-geometry.js.map +7 -0
- package/dist/annotations/redaction-log.js +33 -0
- package/dist/annotations/redaction-log.js.map +7 -0
- package/dist/annotations/selection-marks.js +122 -0
- package/dist/annotations/selection-marks.js.map +7 -0
- package/dist/annotations/state.js +140 -0
- package/dist/annotations/state.js.map +7 -0
- package/dist/annotations/store.js +49 -0
- package/dist/annotations/store.js.map +7 -0
- package/dist/annotations/useAnnotationLayer.js +306 -0
- package/dist/annotations/useAnnotationLayer.js.map +7 -0
- package/dist/annotations/useAnnotationShortcuts.js +31 -0
- package/dist/annotations/useAnnotationShortcuts.js.map +7 -0
- package/dist/annotations/useTextSelectionMarks.js +100 -0
- package/dist/annotations/useTextSelectionMarks.js.map +7 -0
- package/dist/artifacts/artifact-kind.js +19 -0
- package/dist/artifacts/artifact-kind.js.map +7 -0
- package/dist/artifacts/index.js +89 -571
- package/dist/artifacts/index.js.map +7 -1
- package/dist/{chunk-WUTL62MC.js → artifacts/normalize-markdown.js} +12 -14
- package/dist/artifacts/normalize-markdown.js.map +7 -0
- package/dist/artifacts/redline-core.js +12 -3
- package/dist/artifacts/redline-core.js.map +7 -1
- package/dist/{chunk-74N436VK.js → artifacts/redline-diff.js} +10 -9
- package/dist/artifacts/redline-diff.js.map +7 -0
- package/dist/artifacts/redline-engine.js +14 -0
- package/dist/artifacts/redline-engine.js.map +7 -0
- package/dist/artifacts/renderArtifactMarkdown.js +9 -0
- package/dist/artifacts/renderArtifactMarkdown.js.map +7 -0
- package/dist/artifacts/useArtifactEditSession.js +183 -0
- package/dist/artifacts/useArtifactEditSession.js.map +7 -0
- package/dist/artifacts/useArtifactSession.js +173 -0
- package/dist/artifacts/useArtifactSession.js.map +7 -0
- package/dist/artifacts/useArtifactSource.js +16 -0
- package/dist/artifacts/useArtifactSource.js.map +7 -0
- package/dist/artifacts/useArtifactText.js +78 -0
- package/dist/artifacts/useArtifactText.js.map +7 -0
- package/dist/artifacts/useRedline.js +65 -0
- package/dist/artifacts/useRedline.js.map +7 -0
- package/dist/artifacts/useStreamedArtifact.js +74 -0
- package/dist/artifacts/useStreamedArtifact.js.map +7 -0
- package/dist/artifacts/versions.js +68 -0
- package/dist/artifacts/versions.js.map +7 -0
- package/dist/billing.js +200 -0
- package/dist/billing.js.map +7 -0
- package/dist/boot-timeout.js +19 -0
- package/dist/boot-timeout.js.map +7 -0
- package/dist/calendar/accounts.js +213 -0
- package/dist/calendar/accounts.js.map +7 -0
- package/dist/calendar/hooks.js +409 -0
- package/dist/calendar/hooks.js.map +7 -0
- package/dist/calendar/index.js +31 -0
- package/dist/calendar/index.js.map +7 -0
- package/dist/calendar/keys.js +5 -0
- package/dist/calendar/keys.js.map +7 -0
- package/dist/calendar/offline/outbox.js +231 -0
- package/dist/calendar/offline/outbox.js.map +7 -0
- package/dist/calendar/offline/runtime.js +109 -0
- package/dist/calendar/offline/runtime.js.map +7 -0
- package/dist/calendar/offline/support.js +41 -0
- package/dist/calendar/offline/support.js.map +7 -0
- package/dist/calendar/support.js +34 -0
- package/dist/calendar/support.js.map +7 -0
- package/dist/calls/actions.js +226 -0
- package/dist/calls/actions.js.map +7 -0
- package/dist/calls/events.js +138 -0
- package/dist/calls/events.js.map +7 -0
- package/dist/calls/gate.js +19 -0
- package/dist/calls/gate.js.map +7 -0
- package/dist/calls/hooks.js +115 -0
- package/dist/calls/hooks.js.map +7 -0
- package/dist/calls/in-call-chat.js +132 -0
- package/dist/calls/in-call-chat.js.map +7 -0
- package/dist/calls/index.js +24 -0
- package/dist/calls/index.js.map +7 -0
- package/dist/calls/keys.js +17 -0
- package/dist/calls/keys.js.map +7 -0
- package/dist/calls/livekit/index.js +6 -958
- package/dist/calls/livekit/index.js.map +7 -1
- package/dist/calls/livekit/room.js +98 -0
- package/dist/calls/livekit/room.js.map +7 -0
- package/dist/calls/livekit/useCallRecorder.js +219 -0
- package/dist/calls/livekit/useCallRecorder.js.map +7 -0
- package/dist/calls/livekit/useCallTranscriber.js +309 -0
- package/dist/calls/livekit/useCallTranscriber.js.map +7 -0
- package/dist/calls/livekit/useHostMuteNotice.js +29 -0
- package/dist/calls/livekit/useHostMuteNotice.js.map +7 -0
- package/dist/calls/livekit/useInCallChat.js +161 -0
- package/dist/calls/livekit/useInCallChat.js.map +7 -0
- package/dist/calls/livekit/useWebinar.js +239 -0
- package/dist/calls/livekit/useWebinar.js.map +7 -0
- package/dist/calls/meeting-chat.js +149 -0
- package/dist/calls/meeting-chat.js.map +7 -0
- package/dist/calls/moderation.js +50 -0
- package/dist/calls/moderation.js.map +7 -0
- package/dist/calls/open-meeting-chat.js +29 -0
- package/dist/calls/open-meeting-chat.js.map +7 -0
- package/dist/calls/read-only.js +24 -0
- package/dist/calls/read-only.js.map +7 -0
- package/dist/calls/recording-media.js +218 -0
- package/dist/calls/recording-media.js.map +7 -0
- package/dist/calls/recording-playback.js +260 -0
- package/dist/calls/recording-playback.js.map +7 -0
- package/dist/calls/recording.js +268 -0
- package/dist/calls/recording.js.map +7 -0
- package/dist/calls/save-to-thread.js +80 -0
- package/dist/calls/save-to-thread.js.map +7 -0
- package/dist/calls/session.js +134 -0
- package/dist/calls/session.js.map +7 -0
- package/dist/calls/transcript-format.js +147 -0
- package/dist/calls/transcript-format.js.map +7 -0
- package/dist/calls/transcription.js +101 -0
- package/dist/calls/transcription.js.map +7 -0
- package/dist/calls/webinar.js +71 -0
- package/dist/calls/webinar.js.map +7 -0
- package/dist/charge-watch.js +71 -0
- package/dist/charge-watch.js.map +7 -0
- package/dist/chat/ChatBubble.js +146 -0
- package/dist/chat/ChatBubble.js.map +7 -0
- package/dist/chat/ConversationScope.js +30 -0
- package/dist/chat/ConversationScope.js.map +7 -0
- package/dist/chat/active-config.js +20 -0
- package/dist/chat/active-config.js.map +7 -0
- package/dist/chat/agent-chat-owner.js +25 -0
- package/dist/chat/agent-chat-owner.js.map +7 -0
- package/dist/chat/chat-artifacts.js +64 -0
- package/dist/chat/chat-artifacts.js.map +7 -0
- package/dist/chat/citations.js +32 -0
- package/dist/chat/citations.js.map +7 -0
- package/dist/chat/config-model.js +10 -0
- package/dist/chat/config-model.js.map +7 -0
- package/dist/chat/conversation-cache.js +676 -0
- package/dist/chat/conversation-cache.js.map +7 -0
- package/dist/chat/conversation-events.js +57 -0
- package/dist/chat/conversation-events.js.map +7 -0
- package/dist/chat/conversation-mentions.js +58 -0
- package/dist/chat/conversation-mentions.js.map +7 -0
- package/dist/chat/conversation-workspace.js +58 -0
- package/dist/chat/conversation-workspace.js.map +7 -0
- package/dist/chat/mentions.js +116 -0
- package/dist/chat/mentions.js.map +7 -0
- package/dist/chat/open-document.js +106 -0
- package/dist/chat/open-document.js.map +7 -0
- package/dist/chat/orphaned.js +44 -0
- package/dist/chat/orphaned.js.map +7 -0
- package/dist/chat/pendingFirstTurn.js +30 -0
- package/dist/chat/pendingFirstTurn.js.map +7 -0
- package/dist/chat/reply-target.js +12 -0
- package/dist/chat/reply-target.js.map +7 -0
- package/dist/chat/run-finished.js +28 -0
- package/dist/chat/run-finished.js.map +7 -0
- package/dist/chat/run-state.js +91 -0
- package/dist/chat/run-state.js.map +7 -0
- package/dist/chat/stream-handlers.js +419 -0
- package/dist/chat/stream-handlers.js.map +7 -0
- package/dist/chat/thread-binding.js +76 -0
- package/dist/chat/thread-binding.js.map +7 -0
- package/dist/chat/thread-document.js +53 -0
- package/dist/chat/thread-document.js.map +7 -0
- package/dist/chat/turn-control.js +79 -0
- package/dist/chat/turn-control.js.map +7 -0
- package/dist/chat/useAgentRunControl.js +36 -0
- package/dist/chat/useAgentRunControl.js.map +7 -0
- package/dist/chat/useAnswerAgentQuestion.js +19 -0
- package/dist/chat/useAnswerAgentQuestion.js.map +7 -0
- package/dist/chat/useAskAgain.js +32 -0
- package/dist/chat/useAskAgain.js.map +7 -0
- package/dist/chat/useAutoSendDraft.js +17 -0
- package/dist/chat/useAutoSendDraft.js.map +7 -0
- package/dist/chat/useBranchNavigation.js +97 -0
- package/dist/chat/useBranchNavigation.js.map +7 -0
- package/dist/chat/useConnectRunStream.js +169 -0
- package/dist/chat/useConnectRunStream.js.map +7 -0
- package/dist/chat/useConversation.js +431 -0
- package/dist/chat/useConversation.js.map +7 -0
- package/dist/chat/useConversationActions.js +662 -0
- package/dist/chat/useConversationActions.js.map +7 -0
- package/dist/chat/useConversationData.js +143 -0
- package/dist/chat/useConversationData.js.map +7 -0
- package/dist/chat/useConversationDocuments.js +41 -0
- package/dist/chat/useConversationDocuments.js.map +7 -0
- package/dist/chat/useConversationSettings.js +78 -0
- package/dist/chat/useConversationSettings.js.map +7 -0
- package/dist/chat/useConversationTurn.js +31 -0
- package/dist/chat/useConversationTurn.js.map +7 -0
- package/dist/chat/useConversationWorkspace.js +12 -0
- package/dist/chat/useConversationWorkspace.js.map +7 -0
- package/dist/chat/useDeleteMessage.js +15 -0
- package/dist/chat/useDeleteMessage.js.map +7 -0
- package/dist/chat/useDocumentAutoAdd.js +73 -0
- package/dist/chat/useDocumentAutoAdd.js.map +7 -0
- package/dist/chat/useMessageTimer.js +39 -0
- package/dist/chat/useMessageTimer.js.map +7 -0
- package/dist/chat/useThinkingContent.js +67 -0
- package/dist/chat/useThinkingContent.js.map +7 -0
- package/dist/chat/useThreadDocument.js +61 -0
- package/dist/chat/useThreadDocument.js.map +7 -0
- package/dist/chat/workflow-run-titles.js +50 -0
- package/dist/chat/workflow-run-titles.js.map +7 -0
- package/dist/config/config-hooks.js +209 -0
- package/dist/config/config-hooks.js.map +7 -0
- package/dist/connectivity.js +72 -0
- package/dist/connectivity.js.map +7 -0
- package/dist/connectors/hooks.js +263 -0
- package/dist/connectors/hooks.js.map +7 -0
- package/dist/connectors/index.js +28 -0
- package/dist/connectors/index.js.map +7 -0
- package/dist/contacts.js +100 -0
- package/dist/contacts.js.map +7 -0
- package/dist/conversation-list.js +65 -0
- package/dist/conversation-list.js.map +7 -0
- package/dist/databases.js +195 -0
- package/dist/databases.js.map +7 -0
- package/dist/datasets/aggregate.js +281 -0
- package/dist/datasets/aggregate.js.map +7 -0
- package/dist/datasets/index.js +122 -0
- package/dist/datasets/index.js.map +7 -0
- package/dist/datasets/members.js +27 -0
- package/dist/datasets/members.js.map +7 -0
- package/dist/datasets/panel.js +44 -0
- package/dist/datasets/panel.js.map +7 -0
- package/dist/datasets/registry.js +47 -0
- package/dist/datasets/registry.js.map +7 -0
- package/dist/datasets/rows-source.js +44 -0
- package/dist/datasets/rows-source.js.map +7 -0
- package/dist/datasets/sources/activity.js +83 -0
- package/dist/datasets/sources/activity.js.map +7 -0
- package/dist/datasets/sources/conversations.js +74 -0
- package/dist/datasets/sources/conversations.js.map +7 -0
- package/dist/datasets/sources/database.js +209 -0
- package/dist/datasets/sources/database.js.map +7 -0
- package/dist/datasets/sources/documents.js +93 -0
- package/dist/datasets/sources/documents.js.map +7 -0
- package/dist/datasets/sources/facts.js +56 -0
- package/dist/datasets/sources/facts.js.map +7 -0
- package/dist/datasets/sources/projects.js +117 -0
- package/dist/datasets/sources/projects.js.map +7 -0
- package/dist/datasets/sources/tags.js +67 -0
- package/dist/datasets/sources/tags.js.map +7 -0
- package/dist/datasets/sources/usage.js +268 -0
- package/dist/datasets/sources/usage.js.map +7 -0
- package/dist/datasets/sources/workflows.js +91 -0
- package/dist/datasets/sources/workflows.js.map +7 -0
- package/dist/datasets/sources/workspaces.js +67 -0
- package/dist/datasets/sources/workspaces.js.map +7 -0
- package/dist/datasets/store.js +194 -0
- package/dist/datasets/store.js.map +7 -0
- package/dist/datasets/types.js +14 -0
- package/dist/datasets/types.js.map +7 -0
- package/dist/directmessages/ConversationList.js +148 -0
- package/dist/directmessages/ConversationList.js.map +7 -0
- package/dist/directmessages/DateSeparator.js +8 -0
- package/dist/directmessages/DateSeparator.js.map +7 -0
- package/dist/directmessages/DmAvatar.js +29 -0
- package/dist/directmessages/DmAvatar.js.map +7 -0
- package/dist/directmessages/DmComposer.js +201 -0
- package/dist/directmessages/DmComposer.js.map +7 -0
- package/dist/directmessages/arrivals.js +29 -0
- package/dist/directmessages/arrivals.js.map +7 -0
- package/dist/directmessages/chat-cache.js +192 -0
- package/dist/directmessages/chat-cache.js.map +7 -0
- package/dist/directmessages/grouping.js +26 -0
- package/dist/directmessages/grouping.js.map +7 -0
- package/dist/directmessages/index.js +81 -0
- package/dist/directmessages/index.js.map +7 -0
- package/dist/directmessages/useChats.js +266 -0
- package/dist/directmessages/useChats.js.map +7 -0
- package/dist/directmessages/utils.js +23 -0
- package/dist/directmessages/utils.js.map +7 -0
- package/dist/document-tools/can-annotate.js +7 -0
- package/dist/document-tools/can-annotate.js.map +7 -0
- package/dist/document-tools/core.js +218 -12
- package/dist/document-tools/core.js.map +7 -1
- package/dist/document-tools/document-pdf.js +76 -0
- package/dist/document-tools/document-pdf.js.map +7 -0
- package/dist/document-tools/environment.js +136 -0
- package/dist/document-tools/environment.js.map +7 -0
- package/dist/document-tools/file-shares.js +112 -0
- package/dist/document-tools/file-shares.js.map +7 -0
- package/dist/document-tools/frozen-copy.js +27 -0
- package/dist/document-tools/frozen-copy.js.map +7 -0
- package/dist/document-tools/index.js +26 -148
- package/dist/document-tools/index.js.map +7 -1
- package/dist/document-tools/markup-download.js +51 -0
- package/dist/document-tools/markup-download.js.map +7 -0
- package/dist/document-tools/markup-store.js +138 -0
- package/dist/document-tools/markup-store.js.map +7 -0
- package/dist/document-tools/markup-transfer.js +88 -0
- package/dist/document-tools/markup-transfer.js.map +7 -0
- package/dist/document-tools/production.js +147 -0
- package/dist/document-tools/production.js.map +7 -0
- package/dist/document-tools/saved-signature.js +90 -0
- package/dist/document-tools/saved-signature.js.map +7 -0
- package/dist/document-tools/signature-requests.js +310 -0
- package/dist/document-tools/signature-requests.js.map +7 -0
- package/dist/document-tools/signing.js +127 -0
- package/dist/document-tools/signing.js.map +7 -0
- package/dist/document-tools/useDocumentBytes.js +38 -0
- package/dist/document-tools/useDocumentBytes.js.map +7 -0
- package/dist/document-tools/useDocumentMarkup.js +154 -0
- package/dist/document-tools/useDocumentMarkup.js.map +7 -0
- package/dist/document-tools/useIsOnline.js +13 -0
- package/dist/document-tools/useIsOnline.js.map +7 -0
- package/dist/document-tools/verification.js +60 -0
- package/dist/document-tools/verification.js.map +7 -0
- package/dist/documents/DocumentReview.js +220 -0
- package/dist/documents/DocumentReview.js.map +7 -0
- package/dist/documents/DraftTitleControls.js +41 -0
- package/dist/documents/DraftTitleControls.js.map +7 -0
- package/dist/documents/InlineMicButton.js +90 -0
- package/dist/documents/InlineMicButton.js.map +7 -0
- package/dist/documents/MicRecordingOverlay.js +29 -0
- package/dist/documents/MicRecordingOverlay.js.map +7 -0
- package/dist/documents/MicWaveformIndicator.js +68 -0
- package/dist/documents/MicWaveformIndicator.js.map +7 -0
- package/dist/documents/PhotoCapture.js +120 -0
- package/dist/documents/PhotoCapture.js.map +7 -0
- package/dist/documents/VideoCapture.js +129 -0
- package/dist/documents/VideoCapture.js.map +7 -0
- package/dist/documents/VoiceNoteRecorder.js +166 -0
- package/dist/documents/VoiceNoteRecorder.js.map +7 -0
- package/dist/documents/audio-segmenter.js +63 -0
- package/dist/documents/audio-segmenter.js.map +7 -0
- package/dist/documents/capture-frame.js +21 -0
- package/dist/documents/capture-frame.js.map +7 -0
- package/dist/documents/chunked-recorder.js +190 -0
- package/dist/documents/chunked-recorder.js.map +7 -0
- package/dist/documents/document-download.js +53 -0
- package/dist/documents/document-download.js.map +7 -0
- package/dist/documents/document-fields.js +109 -0
- package/dist/documents/document-fields.js.map +7 -0
- package/dist/documents/documents-cache.js +110 -0
- package/dist/documents/documents-cache.js.map +7 -0
- package/dist/documents/documents-data.js +128 -0
- package/dist/documents/documents-data.js.map +7 -0
- package/dist/documents/documents-loader.js +113 -0
- package/dist/documents/documents-loader.js.map +7 -0
- package/dist/documents/documents-writes.js +448 -0
- package/dist/documents/documents-writes.js.map +7 -0
- package/dist/documents/format-elapsed.js +10 -0
- package/dist/documents/format-elapsed.js.map +7 -0
- package/dist/documents/has-video-track.js +26 -0
- package/dist/documents/has-video-track.js.map +7 -0
- package/dist/documents/index.js +266 -0
- package/dist/documents/index.js.map +7 -0
- package/dist/documents/media-error.js +18 -0
- package/dist/documents/media-error.js.map +7 -0
- package/dist/documents/offline-documents.js +160 -0
- package/dist/documents/offline-documents.js.map +7 -0
- package/dist/documents/pending-sync.js +210 -0
- package/dist/documents/pending-sync.js.map +7 -0
- package/dist/documents/processing-live.js +122 -0
- package/dist/documents/processing-live.js.map +7 -0
- package/dist/documents/processing-order.js +59 -0
- package/dist/documents/processing-order.js.map +7 -0
- package/dist/documents/processing-settle.js +21 -0
- package/dist/documents/processing-settle.js.map +7 -0
- package/dist/documents/related-documents.js +133 -0
- package/dist/documents/related-documents.js.map +7 -0
- package/dist/documents/support.js +29 -0
- package/dist/documents/support.js.map +7 -0
- package/dist/documents/upload-files.js +169 -0
- package/dist/documents/upload-files.js.map +7 -0
- package/dist/documents/useAudioRecorder.js +315 -0
- package/dist/documents/useAudioRecorder.js.map +7 -0
- package/dist/documents/useCameraStream.js +35 -0
- package/dist/documents/useCameraStream.js.map +7 -0
- package/dist/documents/useDocumentThumbnails.js +71 -0
- package/dist/documents/useDocumentThumbnails.js.map +7 -0
- package/dist/documents/useDownloadDocuments.js +90 -0
- package/dist/documents/useDownloadDocuments.js.map +7 -0
- package/dist/documents/usePassageQuotes.js +37 -0
- package/dist/documents/usePassageQuotes.js.map +7 -0
- package/dist/documents/useUploadFiles.js +165 -0
- package/dist/documents/useUploadFiles.js.map +7 -0
- package/dist/documents/useUploadFromUrls.js +63 -0
- package/dist/documents/useUploadFromUrls.js.map +7 -0
- package/dist/documents/useVideoRecorder.js +62 -0
- package/dist/documents/useVideoRecorder.js.map +7 -0
- package/dist/entities/AgentMarkers.js +61 -0
- package/dist/entities/AgentMarkers.js.map +7 -0
- package/dist/entities/DocumentEntity.js +125 -0
- package/dist/entities/DocumentEntity.js.map +7 -0
- package/dist/entities/EntityPill.js +250 -0
- package/dist/entities/EntityPill.js.map +7 -0
- package/dist/entities/ProjectEntity.js +61 -0
- package/dist/entities/ProjectEntity.js.map +7 -0
- package/dist/entities/ShieldIcon.js +49 -0
- package/dist/entities/ShieldIcon.js.map +7 -0
- package/dist/entities/TagEntity.js +79 -0
- package/dist/entities/TagEntity.js.map +7 -0
- package/dist/entities/ThreadVisibilityIcon.js +15 -0
- package/dist/entities/ThreadVisibilityIcon.js.map +7 -0
- package/dist/entities/UserEntity.js +211 -0
- package/dist/entities/UserEntity.js.map +7 -0
- package/dist/entities/VerifiedBadge.js +19 -0
- package/dist/entities/VerifiedBadge.js.map +7 -0
- package/dist/entities/agent-avatar-colors.js +26 -0
- package/dist/entities/agent-avatar-colors.js.map +7 -0
- package/dist/entities/colors.js +64 -0
- package/dist/entities/colors.js.map +7 -0
- package/dist/entities/file-type.js +151 -0
- package/dist/entities/file-type.js.map +7 -0
- package/dist/entities/index.js +100 -0
- package/dist/entities/index.js.map +7 -0
- package/dist/entities/media-type.js +61 -0
- package/dist/entities/media-type.js.map +7 -0
- package/dist/entities/registry.js +385 -0
- package/dist/entities/registry.js.map +7 -0
- package/dist/entities/status.js +43 -0
- package/dist/entities/status.js.map +7 -0
- package/dist/entities/tag-kinds.js +23 -0
- package/dist/entities/tag-kinds.js.map +7 -0
- package/dist/entities/tag-types.js +44 -0
- package/dist/entities/tag-types.js.map +7 -0
- package/dist/entities/vocabulary.js +12 -0
- package/dist/entities/vocabulary.js.map +7 -0
- package/dist/entity-extraction.js +25 -0
- package/dist/entity-extraction.js.map +7 -0
- package/dist/facts-search.js +57 -0
- package/dist/facts-search.js.map +7 -0
- package/dist/facts.js +69 -0
- package/dist/facts.js.map +7 -0
- package/dist/hooks.js +320 -0
- package/dist/hooks.js.map +7 -0
- package/dist/host/ArbiHost.js +24 -0
- package/dist/host/ArbiHost.js.map +7 -0
- package/dist/host/assistant-copy.js +54 -0
- package/dist/host/assistant-copy.js.map +7 -0
- package/dist/host/config.js +9 -0
- package/dist/host/config.js.map +7 -0
- package/dist/host/context.js +10 -0
- package/dist/host/context.js.map +7 -0
- package/dist/host/features.js +144 -0
- package/dist/host/features.js.map +7 -0
- package/dist/host/index.js +12 -0
- package/dist/host/index.js.map +7 -0
- package/dist/{chunk-DPYBZDJB.js → host/merge.js} +7 -7
- package/dist/host/merge.js.map +7 -0
- package/dist/house-template.js +40 -0
- package/dist/house-template.js.map +7 -0
- package/dist/icons/AppleIcon.js +25 -0
- package/dist/icons/AppleIcon.js.map +7 -0
- package/dist/icons/ArbiBotHeadIcon.js +46 -0
- package/dist/icons/ArbiBotHeadIcon.js.map +7 -0
- package/dist/icons/ArbiIcon.js +24 -0
- package/dist/icons/ArbiIcon.js.map +7 -0
- package/dist/icons/AudIcon.js +56 -0
- package/dist/icons/AudIcon.js.map +7 -0
- package/dist/icons/ClaudeIcon.js +28 -0
- package/dist/icons/ClaudeIcon.js.map +7 -0
- package/dist/icons/DocIcon.js +56 -0
- package/dist/icons/DocIcon.js.map +7 -0
- package/dist/icons/EmlIcon.js +57 -0
- package/dist/icons/EmlIcon.js.map +7 -0
- package/dist/icons/FireworksIcon.js +47 -0
- package/dist/icons/FireworksIcon.js.map +7 -0
- package/dist/icons/GeminiIcon.js +37 -0
- package/dist/icons/GeminiIcon.js.map +7 -0
- package/dist/icons/GitHubIcon.js +32 -0
- package/dist/icons/GitHubIcon.js.map +7 -0
- package/dist/icons/GoogleIcon.js +53 -0
- package/dist/icons/GoogleIcon.js.map +7 -0
- package/dist/icons/HtmlIcon.js +56 -0
- package/dist/icons/HtmlIcon.js.map +7 -0
- package/dist/icons/ImgIcon.js +56 -0
- package/dist/icons/ImgIcon.js.map +7 -0
- package/dist/icons/LinkedInIcon.js +25 -0
- package/dist/icons/LinkedInIcon.js.map +7 -0
- package/dist/icons/OpenAIIcon.js +28 -0
- package/dist/icons/OpenAIIcon.js.map +7 -0
- package/dist/icons/PdfIcon.js +56 -0
- package/dist/icons/PdfIcon.js.map +7 -0
- package/dist/icons/ProviderIcon.js +42 -0
- package/dist/icons/ProviderIcon.js.map +7 -0
- package/dist/icons/TxtIcon.js +56 -0
- package/dist/icons/TxtIcon.js.map +7 -0
- package/dist/icons/VidIcon.js +56 -0
- package/dist/icons/VidIcon.js.map +7 -0
- package/dist/icons/XlsIcon.js +56 -0
- package/dist/icons/XlsIcon.js.map +7 -0
- package/dist/icons/arbi-mark.js +5 -0
- package/dist/icons/arbi-mark.js.map +7 -0
- package/dist/icons/colors.js +31 -0
- package/dist/icons/colors.js.map +7 -0
- package/dist/icons/file-type.js +105 -0
- package/dist/icons/file-type.js.map +7 -0
- package/dist/icons/index.js +55 -0
- package/dist/icons/index.js.map +7 -0
- package/dist/imagecrop/ImageCropModal.js +56 -0
- package/dist/imagecrop/ImageCropModal.js.map +7 -0
- package/dist/imagecrop/ImageCropper.js +100 -0
- package/dist/imagecrop/ImageCropper.js.map +7 -0
- package/dist/imagecrop/cropImage.js +43 -0
- package/dist/imagecrop/cropImage.js.map +7 -0
- package/dist/imagecrop/index.js +13 -0
- package/dist/imagecrop/index.js.map +7 -0
- package/dist/index.js +702 -17116
- package/dist/index.js.map +7 -1
- package/dist/{chunk-SSXFVWCT.js → lazy-chunk.js} +8 -8
- package/dist/lazy-chunk.js.map +7 -0
- package/dist/lib/collision-padding.js +13 -0
- package/dist/lib/collision-padding.js.map +7 -0
- package/dist/lib/format-friendly-date.js +55 -0
- package/dist/lib/format-friendly-date.js.map +7 -0
- package/dist/lib/format-relative-time.js +52 -0
- package/dist/lib/format-relative-time.js.map +7 -0
- package/dist/lib/markdown-to-text.js +35 -0
- package/dist/lib/markdown-to-text.js.map +7 -0
- package/dist/lib/toast-interaction.js +9 -0
- package/dist/lib/toast-interaction.js.map +7 -0
- package/dist/lib/utils.js +9 -0
- package/dist/lib/utils.js.map +7 -0
- package/dist/mail/client.js +103 -0
- package/dist/mail/client.js.map +7 -0
- package/dist/mail/document-attachment.js +38 -0
- package/dist/mail/document-attachment.js.map +7 -0
- package/dist/mail/filing.js +132 -0
- package/dist/mail/filing.js.map +7 -0
- package/dist/mail/hooks.js +393 -0
- package/dist/mail/hooks.js.map +7 -0
- package/dist/mail/index.js +120 -0
- package/dist/mail/index.js.map +7 -0
- package/dist/mail/offline/changes.js +258 -0
- package/dist/mail/offline/changes.js.map +7 -0
- package/dist/mail/offline/confirm-sign-out.js +37 -0
- package/dist/mail/offline/confirm-sign-out.js.map +7 -0
- package/dist/mail/offline/crypto.js +26 -0
- package/dist/mail/offline/crypto.js.map +7 -0
- package/dist/mail/offline/drafts.js +69 -0
- package/dist/mail/offline/drafts.js.map +7 -0
- package/dist/mail/offline/hooks.js +104 -0
- package/dist/mail/offline/hooks.js.map +7 -0
- package/dist/mail/offline/index.js +48 -0
- package/dist/mail/offline/index.js.map +7 -0
- package/dist/mail/offline/live.js +233 -0
- package/dist/mail/offline/live.js.map +7 -0
- package/dist/mail/offline/mailbox.js +191 -0
- package/dist/mail/offline/mailbox.js.map +7 -0
- package/dist/mail/offline/outbox.js +167 -0
- package/dist/mail/offline/outbox.js.map +7 -0
- package/dist/mail/offline/reads.js +159 -0
- package/dist/mail/offline/reads.js.map +7 -0
- package/dist/mail/offline/runtime.js +100 -0
- package/dist/mail/offline/runtime.js.map +7 -0
- package/dist/mail/offline/settings.js +84 -0
- package/dist/mail/offline/settings.js.map +7 -0
- package/dist/mail/offline/store.js +29 -0
- package/dist/mail/offline/store.js.map +7 -0
- package/dist/mail/offline/sync.js +251 -0
- package/dist/mail/offline/sync.js.map +7 -0
- package/dist/mail/offline/wipe.js +19 -0
- package/dist/mail/offline/wipe.js.map +7 -0
- package/dist/mail/thread-keys.js +53 -0
- package/dist/mail/thread-keys.js.map +7 -0
- package/dist/mail/threads.js +71 -0
- package/dist/mail/threads.js.map +7 -0
- package/dist/mail/useMailClient.js +42 -0
- package/dist/mail/useMailClient.js.map +7 -0
- package/dist/model-connections.js +58 -0
- package/dist/model-connections.js.map +7 -0
- package/dist/notifications/ActivityFeed.js +70 -0
- package/dist/notifications/ActivityFeed.js.map +7 -0
- package/dist/notifications/NotificationBell.js +200 -0
- package/dist/notifications/NotificationBell.js.map +7 -0
- package/dist/notifications/Toaster.js +24 -0
- package/dist/notifications/Toaster.js.map +7 -0
- package/dist/notifications/activity-types.js +65 -0
- package/dist/notifications/activity-types.js.map +7 -0
- package/dist/notifications/bell.js +24 -0
- package/dist/notifications/bell.js.map +7 -0
- package/dist/notifications/calendar-notifications.js +79 -0
- package/dist/notifications/calendar-notifications.js.map +7 -0
- package/dist/notifications/index.js +108 -0
- package/dist/notifications/index.js.map +7 -0
- package/dist/notifications/live.js +28 -0
- package/dist/notifications/live.js.map +7 -0
- package/dist/notifications/notification-types.js +127 -0
- package/dist/notifications/notification-types.js.map +7 -0
- package/dist/{chunk-BF5KW5ZI.js → notifications/notify-store.js} +24 -74
- package/dist/notifications/notify-store.js.map +7 -0
- package/dist/notifications/server-notifications.js +452 -0
- package/dist/notifications/server-notifications.js.map +7 -0
- package/dist/notifications/useNotifications.js +34 -0
- package/dist/notifications/useNotifications.js.map +7 -0
- package/dist/offline-store/network.js +11 -0
- package/dist/offline-store/network.js.map +7 -0
- package/dist/offline-store/store.js +136 -0
- package/dist/offline-store/store.js.map +7 -0
- package/dist/offline-store/wipe.js +8 -0
- package/dist/offline-store/wipe.js.map +7 -0
- package/dist/offline.js +58 -0
- package/dist/offline.js.map +7 -0
- package/dist/people.js +122 -0
- package/dist/people.js.map +7 -0
- package/dist/projects.js +30 -0
- package/dist/projects.js.map +7 -0
- package/dist/query-client.js +63 -0
- package/dist/query-client.js.map +7 -0
- package/dist/{chunk-ZM6N7YZH.js → query-keys.js} +18 -31
- package/dist/query-keys.js.map +7 -0
- package/dist/query-persist.js +66 -0
- package/dist/query-persist.js.map +7 -0
- package/dist/queued-writes.js +59 -0
- package/dist/queued-writes.js.map +7 -0
- package/dist/remote-control.js +67 -0
- package/dist/remote-control.js.map +7 -0
- package/dist/search/index.js +23 -0
- package/dist/search/index.js.map +7 -0
- package/dist/search/session.js +58 -0
- package/dist/search/session.js.map +7 -0
- package/dist/search/useSemanticSearch.js +82 -0
- package/dist/search/useSemanticSearch.js.map +7 -0
- package/dist/session/chat.js +512 -0
- package/dist/session/chat.js.map +7 -0
- package/dist/session/documents.js +196 -0
- package/dist/session/documents.js.map +7 -0
- package/dist/session/drafts.js +103 -0
- package/dist/session/drafts.js.map +7 -0
- package/dist/session/index.js +123 -0
- package/dist/session/index.js.map +7 -0
- package/dist/session/layout.js +339 -0
- package/dist/session/layout.js.map +7 -0
- package/dist/session/persist.js +106 -0
- package/dist/session/persist.js.map +7 -0
- package/dist/session/session-hooks.js +53 -0
- package/dist/session/session-hooks.js.map +7 -0
- package/dist/session/signed-in.js +36 -0
- package/dist/session/signed-in.js.map +7 -0
- package/dist/session/store.js +166 -0
- package/dist/session/store.js.map +7 -0
- package/dist/session/thread-tabs.js +121 -0
- package/dist/session/thread-tabs.js.map +7 -0
- package/dist/session/ui-state-storage.js +76 -0
- package/dist/session/ui-state-storage.js.map +7 -0
- package/dist/session/workspace.js +77 -0
- package/dist/session/workspace.js.map +7 -0
- package/dist/shell/index.js +43 -10
- package/dist/shell/index.js.map +7 -1
- package/dist/skill-pack.js +111 -0
- package/dist/skill-pack.js.map +7 -0
- package/dist/storage.js +186 -0
- package/dist/storage.js.map +7 -0
- package/dist/support/index.js +35 -0
- package/dist/support/index.js.map +7 -0
- package/dist/tags.js +204 -0
- package/dist/tags.js.map +7 -0
- package/dist/ui/DebouncedInput.js +109 -0
- package/dist/ui/DebouncedInput.js.map +7 -0
- package/dist/ui/DictateContext.js +8 -0
- package/dist/ui/DictateContext.js.map +7 -0
- package/dist/ui/IconToggle.js +79 -0
- package/dist/ui/IconToggle.js.map +7 -0
- package/dist/ui/VerifiedToggle.js +38 -0
- package/dist/ui/VerifiedToggle.js.map +7 -0
- package/dist/ui/VisibilityToggle.js +103 -0
- package/dist/ui/VisibilityToggle.js.map +7 -0
- package/dist/ui/avatar.js +40 -0
- package/dist/ui/avatar.js.map +7 -0
- package/dist/ui/badge.js +28 -0
- package/dist/ui/badge.js.map +7 -0
- package/dist/ui/button.js +48 -0
- package/dist/ui/button.js.map +7 -0
- package/dist/ui/card.js +90 -0
- package/dist/ui/card.js.map +7 -0
- package/dist/ui/checkbox.js +22 -0
- package/dist/ui/checkbox.js.map +7 -0
- package/dist/ui/collapsible.js +10 -0
- package/dist/ui/collapsible.js.map +7 -0
- package/dist/ui/command.js +103 -0
- package/dist/ui/command.js.map +7 -0
- package/dist/{chunk-YNNAJJ5Z.js → ui/dialog.js} +30 -68
- package/dist/ui/dialog.js.map +7 -0
- package/dist/{chunk-47CCGUWR.js → ui/dropdown-menu.js} +40 -45
- package/dist/ui/dropdown-menu.js.map +7 -0
- package/dist/ui/hover-card.js +36 -0
- package/dist/ui/hover-card.js.map +7 -0
- package/dist/ui/index.js +290 -10
- package/dist/ui/index.js.map +7 -1
- package/dist/ui/input.js +65 -0
- package/dist/ui/input.js.map +7 -0
- package/dist/ui/label.js +16 -0
- package/dist/ui/label.js.map +7 -0
- package/dist/ui/mark-menu.js +300 -0
- package/dist/ui/mark-menu.js.map +7 -0
- package/dist/ui/popover.js +40 -0
- package/dist/ui/popover.js.map +7 -0
- package/dist/ui/portal-container.js +17 -0
- package/dist/ui/portal-container.js.map +7 -0
- package/dist/ui/progress.js +24 -0
- package/dist/ui/progress.js.map +7 -0
- package/dist/ui/radio-group.js +29 -0
- package/dist/ui/radio-group.js.map +7 -0
- package/dist/ui/scroll-area.js +39 -0
- package/dist/ui/scroll-area.js.map +7 -0
- package/dist/ui/select.js +130 -0
- package/dist/ui/select.js.map +7 -0
- package/dist/ui/separator.js +23 -0
- package/dist/ui/separator.js.map +7 -0
- package/dist/ui/slider.js +23 -0
- package/dist/ui/slider.js.map +7 -0
- package/dist/ui/switch.js +28 -0
- package/dist/ui/switch.js.map +7 -0
- package/dist/ui/table.js +75 -0
- package/dist/ui/table.js.map +7 -0
- package/dist/ui/tabs.js +48 -0
- package/dist/ui/tabs.js.map +7 -0
- package/dist/ui/textarea.js +63 -0
- package/dist/ui/textarea.js.map +7 -0
- package/dist/ui/toggle-group.js +43 -0
- package/dist/ui/toggle-group.js.map +7 -0
- package/dist/ui/toggle.js +40 -0
- package/dist/ui/toggle.js.map +7 -0
- package/dist/ui/tooltip.js +215 -0
- package/dist/ui/tooltip.js.map +7 -0
- package/dist/usage-metered.js +8 -0
- package/dist/usage-metered.js.map +7 -0
- package/dist/useArbi.js +16 -0
- package/dist/useArbi.js.map +7 -0
- package/dist/useInstallSkillPack.js +81 -0
- package/dist/useInstallSkillPack.js.map +7 -0
- package/dist/usermenu/UserMenu.js +188 -0
- package/dist/usermenu/UserMenu.js.map +7 -0
- package/dist/usermenu/index.js +5 -0
- package/dist/usermenu/index.js.map +7 -0
- package/dist/users/index.js +15 -0
- package/dist/users/index.js.map +7 -0
- package/dist/users/user-display.js +60 -0
- package/dist/users/user-display.js.map +7 -0
- package/dist/viewers/AudioViewer.js +23 -0
- package/dist/viewers/AudioViewer.js.map +7 -0
- package/dist/viewers/DocxViewer.js +81 -0
- package/dist/viewers/DocxViewer.js.map +7 -0
- package/dist/viewers/ImageViewer.js +31 -0
- package/dist/viewers/ImageViewer.js.map +7 -0
- package/dist/viewers/PdfViewer.js +19 -3
- package/dist/viewers/PdfViewer.js.map +7 -1
- package/dist/{PdfViewerImpl-TEBYF2QI.js → viewers/PdfViewerImpl.js} +25 -19
- package/dist/viewers/PdfViewerImpl.js.map +7 -0
- package/dist/viewers/VideoViewer.js +31 -0
- package/dist/viewers/VideoViewer.js.map +7 -0
- package/dist/viewers/XlsxViewer.js +102 -0
- package/dist/viewers/XlsxViewer.js.map +7 -0
- package/dist/viewers/index.js +61 -271
- package/dist/viewers/index.js.map +7 -1
- package/dist/viewers/page-scroll.js +59 -0
- package/dist/viewers/page-scroll.js.map +7 -0
- package/dist/viewers/pdf-viewer-constants.js +9 -0
- package/dist/viewers/pdf-viewer-constants.js.map +7 -0
- package/dist/{chunk-PTOP7OHG.js → viewers/pdfjs-polyfills.js} +5 -6
- package/dist/viewers/pdfjs-polyfills.js.map +7 -0
- package/dist/viewers/selection-runs.js +38 -0
- package/dist/viewers/selection-runs.js.map +7 -0
- package/dist/viewers/usePageIntersectionObserver.js +68 -0
- package/dist/viewers/usePageIntersectionObserver.js.map +7 -0
- package/dist/viewers/useProcessedChunks.js +58 -0
- package/dist/viewers/useProcessedChunks.js.map +7 -0
- package/dist/viewers/viewer-zoom.js +163 -0
- package/dist/viewers/viewer-zoom.js.map +7 -0
- package/dist/websocket/ArbiWebSocketProvider.js +207 -0
- package/dist/websocket/ArbiWebSocketProvider.js.map +7 -0
- package/dist/websocket/context.js +14 -0
- package/dist/websocket/context.js.map +7 -0
- package/dist/websocket/hooks.js +30 -0
- package/dist/websocket/hooks.js.map +7 -0
- package/dist/websocket/index.js +22 -0
- package/dist/websocket/index.js.map +7 -0
- package/dist/websocket/live-updates.js +38 -0
- package/dist/websocket/live-updates.js.map +7 -0
- package/dist/websocket/reconnect.js +13 -0
- package/dist/websocket/reconnect.js.map +7 -0
- package/dist/websocket/store.js +58 -0
- package/dist/websocket/store.js.map +7 -0
- package/dist/workforce.js +607 -0
- package/dist/workforce.js.map +7 -0
- package/dist/workspaces/access-request.js +35 -0
- package/dist/workspaces/access-request.js.map +7 -0
- package/dist/workspaces/archive.js +59 -0
- package/dist/workspaces/archive.js.map +7 -0
- package/dist/workspaces/current.js +20 -0
- package/dist/workspaces/current.js.map +7 -0
- package/dist/workspaces/delete-workspaces.js +15 -0
- package/dist/workspaces/delete-workspaces.js.map +7 -0
- package/dist/workspaces/export-archive.js +40 -0
- package/dist/workspaces/export-archive.js.map +7 -0
- package/dist/workspaces/index.js +99 -0
- package/dist/workspaces/index.js.map +7 -0
- package/dist/workspaces/settings.js +45 -0
- package/dist/workspaces/settings.js.map +7 -0
- package/dist/workspaces/shell-workspaces.js +49 -0
- package/dist/workspaces/shell-workspaces.js.map +7 -0
- package/dist/workspaces/switch.js +234 -0
- package/dist/workspaces/switch.js.map +7 -0
- package/dist/workspaces/transfer.js +170 -0
- package/dist/workspaces/transfer.js.map +7 -0
- package/dist/workspaces/useShellWorkspaces.js +86 -0
- package/dist/workspaces/useShellWorkspaces.js.map +7 -0
- package/dist/workspaces/workspace-users.js +65 -0
- package/dist/workspaces/workspace-users.js.map +7 -0
- package/package.json +4 -4
- package/dist/PdfViewerImpl-TEBYF2QI.js.map +0 -1
- package/dist/PdfViewerImpl.d-B28hLEuj.d.cts +0 -62
- package/dist/ProductionDialog.d-CpzslFn0.d.cts +0 -51
- package/dist/annotations/freeze/index.d.cts +0 -205
- package/dist/annotations/index.d.cts +0 -360
- package/dist/artifacts/index.d.cts +0 -476
- package/dist/artifacts/redline-core.d.cts +0 -39
- package/dist/bundle-YNOX7VIL.js +0 -5
- package/dist/bundle-YNOX7VIL.js.map +0 -1
- package/dist/bundle.d-BnCSbHy2.d.cts +0 -85
- package/dist/calls/livekit/index.d.cts +0 -280
- package/dist/chunk-47CCGUWR.js.map +0 -1
- package/dist/chunk-4FL3X3LA.js +0 -2057
- package/dist/chunk-4FL3X3LA.js.map +0 -1
- package/dist/chunk-6QNBSXCE.js +0 -271
- package/dist/chunk-6QNBSXCE.js.map +0 -1
- package/dist/chunk-74N436VK.js.map +0 -1
- package/dist/chunk-APZZQZ6P.js +0 -147
- package/dist/chunk-APZZQZ6P.js.map +0 -1
- package/dist/chunk-BF5KW5ZI.js.map +0 -1
- package/dist/chunk-DPYBZDJB.js.map +0 -1
- package/dist/chunk-DZKRL5H3.js +0 -2766
- package/dist/chunk-DZKRL5H3.js.map +0 -1
- package/dist/chunk-HDCRPPBW.js +0 -75
- package/dist/chunk-HDCRPPBW.js.map +0 -1
- package/dist/chunk-L2IPPTVC.js +0 -20
- package/dist/chunk-L2IPPTVC.js.map +0 -1
- package/dist/chunk-LSU4UPS5.js +0 -1011
- package/dist/chunk-LSU4UPS5.js.map +0 -1
- package/dist/chunk-NIKPG4PW.js +0 -1128
- package/dist/chunk-NIKPG4PW.js.map +0 -1
- package/dist/chunk-NNAJLY6B.js +0 -4974
- package/dist/chunk-NNAJLY6B.js.map +0 -1
- package/dist/chunk-OYPKKHXY.js +0 -559
- package/dist/chunk-OYPKKHXY.js.map +0 -1
- package/dist/chunk-PTOP7OHG.js.map +0 -1
- package/dist/chunk-QMY2JKBI.js +0 -246
- package/dist/chunk-QMY2JKBI.js.map +0 -1
- package/dist/chunk-SN5YV6FF.js +0 -11
- package/dist/chunk-SN5YV6FF.js.map +0 -1
- package/dist/chunk-SSXFVWCT.js.map +0 -1
- package/dist/chunk-T3USOSVN.js.map +0 -1
- package/dist/chunk-T4CLW3DN.js +0 -2560
- package/dist/chunk-T4CLW3DN.js.map +0 -1
- package/dist/chunk-UW2SGTI5.js.map +0 -1
- package/dist/chunk-VSCU7K4V.js.map +0 -1
- package/dist/chunk-WL2Y2T47.js.map +0 -1
- package/dist/chunk-WUTL62MC.js.map +0 -1
- package/dist/chunk-XWPLOFDN.js +0 -644
- package/dist/chunk-XWPLOFDN.js.map +0 -1
- package/dist/chunk-Y3MTRA7D.js +0 -97
- package/dist/chunk-Y3MTRA7D.js.map +0 -1
- package/dist/chunk-YNNAJJ5Z.js.map +0 -1
- package/dist/chunk-ZM6N7YZH.js.map +0 -1
- package/dist/document-tools/core.d.cts +0 -883
- package/dist/document-tools/index.d.cts +0 -90
- package/dist/index.d-LArLnpI8.d.cts +0 -2036
- package/dist/index.d-oR5FKZpJ.d.cts +0 -579
- package/dist/index.d.cts +0 -15923
- package/dist/lazy-chunk.d-B6YDLMKI.d.cts +0 -31
- package/dist/model.d-CNtRWKVK.d.cts +0 -110
- package/dist/query-keys.d-B1Am9tIF.d.cts +0 -337
- package/dist/shell/index.d.cts +0 -6
- package/dist/store.d-GADDvC7w.d.cts +0 -35
- package/dist/stored-markdown.d-Bp18vrbr.d.cts +0 -125
- package/dist/ui/index.d.cts +0 -26
- package/dist/useAudioRecorder.d-B9rlMI_E.d.cts +0 -778
- package/dist/viewers/PdfViewer.d.cts +0 -9
- package/dist/viewers/index.d.cts +0 -262
|
@@ -1,579 +0,0 @@
|
|
|
1
|
-
import * as zustand from 'zustand';
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import { ReactNode, ComponentType, ReactElement } from 'react';
|
|
4
|
-
import { StoreApi } from 'zustand/vanilla';
|
|
5
|
-
import { ArtifactEvent, SearchChunk } from '@arbidocs/sdk/browser';
|
|
6
|
-
import { ToasterProps } from 'sonner';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* `<ArbiHost config>`: the one place a host app hands its configuration to every hook and kit.
|
|
10
|
-
*
|
|
11
|
-
* <ArbiHost config={{ arbi, session, documents, calendar, mail, account, … }}>
|
|
12
|
-
* <App />
|
|
13
|
-
* </ArbiHost>
|
|
14
|
-
*
|
|
15
|
-
* Every field is optional and has a default (see `ArbiHostConfig`); a kit reads its domain from
|
|
16
|
-
* the config (`useArbiHost().documents`, `useHost().billing` in blocks). A nested `<ArbiHost>`
|
|
17
|
-
* overrides only the fields it gives and inherits the rest (`environment` field by field), for a
|
|
18
|
-
* subtree that opens projects in its own tabs, say. There is no other host provider: a new domain
|
|
19
|
-
* is a new optional field, never a new provider.
|
|
20
|
-
*
|
|
21
|
-
* SDK-free (this module, ./context, ./merge and the entity vocabulary are all it reaches), so a
|
|
22
|
-
* marketing site that only sets the blocks environment does not bundle the SDK.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/** A sign-in layer mounted inside the host (`defaultHost` in `@arbidocs/blocks/connect`). */
|
|
26
|
-
interface ArbiHostConnection {
|
|
27
|
-
Provider: ComponentType<{
|
|
28
|
-
children: ReactNode;
|
|
29
|
-
}>;
|
|
30
|
-
}
|
|
31
|
-
interface ArbiHostProps<Config extends object> {
|
|
32
|
-
config: Config;
|
|
33
|
-
children?: ReactNode;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Provide the host configuration. Typed by the package it is imported from: `@arbidocs/react`'s
|
|
37
|
-
* takes the react domains, `@arbidocs/blocks`' the blocks domains as well.
|
|
38
|
-
*/
|
|
39
|
-
declare function ArbiHost<Config extends object>({ config, children, }: ArbiHostProps<Config>): React.ReactElement;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The host configuration's React context: one value for the whole tree, set by `<ArbiHost>`
|
|
43
|
-
* (./ArbiHost.tsx). It is untyped here so the SDK-free slices (`/ui`, `/shell`, the blocks root)
|
|
44
|
-
* can read their part (`dictate`, `environment`) without reaching the SDK's types; the typed read
|
|
45
|
-
* is `useArbiHost()` (react) and `useHost()` (blocks).
|
|
46
|
-
*/
|
|
47
|
-
/** The host configuration as stored: see `ArbiHostConfig`. */
|
|
48
|
-
type HostConfigRecord = Readonly<Record<string, unknown>>;
|
|
49
|
-
/** The host configuration in scope, untyped (`{}` outside an `<ArbiHost>`). */
|
|
50
|
-
declare function useHostConfigRecord(): HostConfigRecord;
|
|
51
|
-
|
|
52
|
-
/** The assistant's name when the host names it nothing else. */
|
|
53
|
-
declare const DEFAULT_ASSISTANT_NAME = "ARBI";
|
|
54
|
-
/** Every kit phrase that names the assistant. */
|
|
55
|
-
interface AssistantCopy {
|
|
56
|
-
/** The name itself. */
|
|
57
|
-
name: string;
|
|
58
|
-
/** "Ask ARBI": a button or tab that starts a question. */
|
|
59
|
-
ask: string;
|
|
60
|
-
/** "Ask ARBI anything": an empty list's call to ask. */
|
|
61
|
-
askAnything: string;
|
|
62
|
-
/** "Ask ARBI anything…": the chat composer's placeholder. */
|
|
63
|
-
askAnythingPlaceholder: string;
|
|
64
|
-
/** "Ask ARBI...": a compact composer's placeholder. */
|
|
65
|
-
askPlaceholder: string;
|
|
66
|
-
/** "Ask ARBI about your documents": the empty chat's heading. */
|
|
67
|
-
askAboutDocuments: string;
|
|
68
|
-
/** The files bulk bar's chat tooltip. */
|
|
69
|
-
askAboutSelection: string;
|
|
70
|
-
/** "ARBI is asking": the heading over a question the assistant asks. */
|
|
71
|
-
isAsking: string;
|
|
72
|
-
/** The composer's placeholder while the assistant waits for an answer. */
|
|
73
|
-
answerPlaceholder: string;
|
|
74
|
-
/** The empty threads list, with the composer below it. */
|
|
75
|
-
emptyThreadsComposer: string;
|
|
76
|
-
/** The empty threads list, with a New Task button. */
|
|
77
|
-
emptyThreadsNewTask: string;
|
|
78
|
-
/** The drafting chip's hint while the thread drafts in a document. */
|
|
79
|
-
draftingHint: string;
|
|
80
|
-
/** The drafting chip's hint before the document is attached. */
|
|
81
|
-
draftingAttachHint: string;
|
|
82
|
-
/** The chat's facts tab note. */
|
|
83
|
-
factsInContext: (facts: string) => string;
|
|
84
|
-
/** "Ask one question — ARBI answers it for each of …": the AI review's ask step. */
|
|
85
|
-
reviewEach: (count: number, scope: string) => string;
|
|
86
|
-
/** The facts bar's note on the chat's facts budget. */
|
|
87
|
-
factsBudgetHint: string;
|
|
88
|
-
/** An AI review cell left without an answer. */
|
|
89
|
-
noAnswerHint: string;
|
|
90
|
-
/** The new-thread dialog's button that hands the thread to the assistant. */
|
|
91
|
-
startWith: string;
|
|
92
|
-
/** The mail action bar's "Reply with ARBI". */
|
|
93
|
-
replyWith: string;
|
|
94
|
-
/** The Word editor's comment button that @mentions the assistant. */
|
|
95
|
-
include: string;
|
|
96
|
-
/** A reply to an email asked for outside a workspace. */
|
|
97
|
-
replyNeedsWorkspace: string;
|
|
98
|
-
/** After an upload. */
|
|
99
|
-
uploadedIndexing: string;
|
|
100
|
-
/** Before an upload completes. */
|
|
101
|
-
afterUpload: string;
|
|
102
|
-
/** The built-in Deep research workflow's description and details. */
|
|
103
|
-
deepResearch: {
|
|
104
|
-
description: string;
|
|
105
|
-
details: string;
|
|
106
|
-
};
|
|
107
|
-
/** The built-in AI annotation operation's details. */
|
|
108
|
-
annotate: {
|
|
109
|
-
details: string;
|
|
110
|
-
placeholder: string;
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
/** The phrases for one name. `assistantCopy()` is ARBI's own text. */
|
|
114
|
-
declare function assistantCopy(name?: string): AssistantCopy;
|
|
115
|
-
/** The host's name for its assistant (`ArbiHostConfig.assistantName`), else "ARBI". */
|
|
116
|
-
declare function useAssistantName(): string;
|
|
117
|
-
/** The kit phrases for the host's assistant name. */
|
|
118
|
-
declare function useAssistantCopy(): AssistantCopy;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @mentions in chat text: pure helpers shared by the composer (autocomplete, extraction) and
|
|
122
|
-
* the message renderer (chips). No React, no SDK.
|
|
123
|
-
*
|
|
124
|
-
* A mention lives in two places: the readable `@Label` text in the message content, and a
|
|
125
|
-
* structured entry on the message (`{ type, user_ext_id, label }`) that the server reads to share
|
|
126
|
-
* the conversation and notify. The composer only ever inserts `@<label>` for a known candidate,
|
|
127
|
-
* so the structured list can be recovered from the text at send time ({@link extractMentions});
|
|
128
|
-
* the renderer turns each stored mention back into a chip ({@link linkMentions}).
|
|
129
|
-
*/
|
|
130
|
-
/** Who can be mentioned: a workspace member, or the assistant. */
|
|
131
|
-
type MentionKind = 'user' | 'assistant';
|
|
132
|
-
/** One entry of the mention autocomplete. */
|
|
133
|
-
interface MentionCandidate {
|
|
134
|
-
/** User external id (`usr-…`) for a person; any stable key (e.g. `assistant`) for the assistant. */
|
|
135
|
-
id: string;
|
|
136
|
-
kind: MentionKind;
|
|
137
|
-
/** Inserted as `@<label>`. For people this must be the server's display name (given + family). */
|
|
138
|
-
label: string;
|
|
139
|
-
/** Secondary line in the menu (email, role, …). */
|
|
140
|
-
description?: string;
|
|
141
|
-
}
|
|
142
|
-
/** The structured mention a message carries (the API's `MessageMention`). */
|
|
143
|
-
interface MessageMentionRef {
|
|
144
|
-
type: MentionKind;
|
|
145
|
-
user_ext_id?: string | null;
|
|
146
|
-
label?: string | null;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* The `@query` the caret is in, if any: the `@` must start the text or follow whitespace, and the
|
|
150
|
-
* query may contain spaces (names do) but no newline. Returns the index of the `@` and the query.
|
|
151
|
-
*/
|
|
152
|
-
declare function findMentionQuery(text: string, caret: number): {
|
|
153
|
-
start: number;
|
|
154
|
-
query: string;
|
|
155
|
-
} | null;
|
|
156
|
-
/** Candidates matching a query: label prefix (or word-prefix) matches, prefix matches first. */
|
|
157
|
-
declare function filterMentionCandidates(candidates: ReadonlyArray<MentionCandidate>, query: string): MentionCandidate[];
|
|
158
|
-
/** Replace the `@query` at `start…caret` with `@<label> `; returns the new text and caret. */
|
|
159
|
-
declare function insertMention(text: string, start: number, caret: number, label: string): {
|
|
160
|
-
text: string;
|
|
161
|
-
caret: number;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* The candidates mentioned in `text`, in order of first appearance. Longer labels win overlaps,
|
|
165
|
-
* so `@Bob Smith` is Bob Smith, not a separate `@Bob`.
|
|
166
|
-
*/
|
|
167
|
-
declare function extractMentions(text: string, candidates: ReadonlyArray<MentionCandidate>): MentionCandidate[];
|
|
168
|
-
/** The API payload for mentioned candidates. */
|
|
169
|
-
declare function toMessageMentions(mentioned: ReadonlyArray<MentionCandidate>): MessageMentionRef[];
|
|
170
|
-
/** Fragment prefix of the links {@link linkMentions} writes. */
|
|
171
|
-
declare const MENTION_HREF_PREFIX = "#mention-";
|
|
172
|
-
/**
|
|
173
|
-
* Turn each stored mention's `@<label>` in `content` into a markdown link
|
|
174
|
-
* `[@<label>](#mention-<id>)`, so a markdown renderer can draw it as a chip (see
|
|
175
|
-
* {@link mentionFromHref}). Text that no longer matches (a renamed user) stays plain text.
|
|
176
|
-
* `assistantLabels` lists other names the assistant may have been mentioned by.
|
|
177
|
-
*/
|
|
178
|
-
declare function linkMentions(content: string, mentions: ReadonlyArray<MessageMentionRef> | null | undefined, assistantLabels?: ReadonlyArray<string>): string;
|
|
179
|
-
/** The mention a `#mention-…` href points at, or null for any other href. */
|
|
180
|
-
declare function mentionFromHref(href: string | null | undefined): {
|
|
181
|
-
kind: MentionKind;
|
|
182
|
-
id: string;
|
|
183
|
-
} | null;
|
|
184
|
-
/** A recipient alone (by any of its labels) is not a message. */
|
|
185
|
-
declare function hasMessageBody(value: string, recipientLabel?: string | ReadonlyArray<string>): boolean;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Drafting mode: the documents open beside the chat, and which one a chat turn drafts in.
|
|
189
|
-
*
|
|
190
|
-
* A viewer registers the document it shows (`useRegisterOpenDocument`). Being open binds nothing:
|
|
191
|
-
* a turn names a document (`active_artifact_ext_id`, read with `takeDocumentForTurn` as the
|
|
192
|
-
* question is sent) only when its thread is bound to it (`./thread-document`: started from the
|
|
193
|
-
* document, or attached in that thread), when the document was made in that thread, or when the
|
|
194
|
-
* open document is ambient (an email draft open in the composer). The server then binds the live
|
|
195
|
-
* document to the turn: a Word document is read on demand and edited as tracked changes in the
|
|
196
|
-
* open editor, and what the assistant saves becomes a child version of it. The request carries a
|
|
197
|
-
* reference, never the content.
|
|
198
|
-
*
|
|
199
|
-
* The named document is always the subject, also while one of its earlier versions is on screen
|
|
200
|
-
* read-only: a version still names its document. Sending a turn then returns the viewer to the live
|
|
201
|
-
* document (`showLive`), where the assistant's edits appear as they are made. (Pinning a specific
|
|
202
|
-
* version as a source is a separate feature: it does not go through here.)
|
|
203
|
-
*
|
|
204
|
-
* A module-level registry (not React context), like `useChatSurface`, so a viewer and a chat agree
|
|
205
|
-
* wherever they sit in the tree; the most recently opened document is on top and closing it hands
|
|
206
|
-
* back to the one before. It is not the session state's viewing document (`useArbiSessionState`):
|
|
207
|
-
* it holds what mounted viewers can draft in (saved documents only, with the callback that shows
|
|
208
|
-
* the live one again), and a turn reads it outside React. A viewer on the session's viewing
|
|
209
|
-
* document passes that as `shownId` (it may be a version reference, resolved here the same way as
|
|
210
|
-
* `selectViewingDocumentId` does).
|
|
211
|
-
*/
|
|
212
|
-
/** What a viewer knows about the document it shows. */
|
|
213
|
-
interface SavedDocumentInput {
|
|
214
|
-
/** The document (`doc-…`), never a version reference. */
|
|
215
|
-
documentId: string | null | undefined;
|
|
216
|
-
/** An unsaved draft (client-minted id, no backend record). */
|
|
217
|
-
isDraft: boolean;
|
|
218
|
-
/** Still streaming: nothing is persisted yet. */
|
|
219
|
-
isStreaming: boolean;
|
|
220
|
-
/** An image, audio or video artifact: there is no text to draft in. */
|
|
221
|
-
isBlobArtifact: boolean;
|
|
222
|
-
/** The loaded document record. */
|
|
223
|
-
documentData: {
|
|
224
|
-
external_id?: string | null;
|
|
225
|
-
wp_type?: string | null;
|
|
226
|
-
file_name?: string | null;
|
|
227
|
-
} | null | undefined;
|
|
228
|
-
}
|
|
229
|
-
/** The fields that decide where a document opens. */
|
|
230
|
-
interface WordDocumentKind {
|
|
231
|
-
file_name?: string | null;
|
|
232
|
-
wp_type?: string | null;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* A document edited in the Word editor: a `.docx`, or a document the assistant wrote (an
|
|
236
|
-
* artifact). The one rule for where a document opens (`openWordEditor` or `openDocument`) and
|
|
237
|
-
* which documents a chat drafts in.
|
|
238
|
-
*/
|
|
239
|
-
declare function opensInWord(doc: WordDocumentKind | null | undefined): boolean;
|
|
240
|
-
/**
|
|
241
|
-
* The saved, content-backed document a chat can draft in, or null. Only a saved artifact or Word
|
|
242
|
-
* document counts: drafts, an artifact still streaming and blob artifacts do not.
|
|
243
|
-
*/
|
|
244
|
-
declare function savedDocumentIdFor(input: SavedDocumentInput): string | null;
|
|
245
|
-
interface OpenDocumentRegistration {
|
|
246
|
-
/** The saved document the viewer shows (`doc-…`); null or empty registers nothing. */
|
|
247
|
-
documentId: string | null | undefined;
|
|
248
|
-
/** What is on screen: the document itself, or one of its earlier versions (`doc-…@v2`). */
|
|
249
|
-
shownId?: string | null;
|
|
250
|
-
/** Show the live document again. Called when a turn starts while an earlier version is shown. */
|
|
251
|
-
showLive?: () => void;
|
|
252
|
-
/** The workspace the document belongs to; a chat in another workspace does not draft in it. */
|
|
253
|
-
workspaceId?: string | null;
|
|
254
|
-
/** The thread the document was made in: that thread drafts in it without being bound to it. */
|
|
255
|
-
conversationId?: string | null;
|
|
256
|
-
/**
|
|
257
|
-
* Drafted in by whichever chat is beside it, bound or not (an email draft open in the composer:
|
|
258
|
-
* the composer is a drafting surface of its own).
|
|
259
|
-
*/
|
|
260
|
-
ambient?: boolean;
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Registers the document a viewer shows as the open document while the caller is mounted and
|
|
264
|
-
* `documentId` is set. Pass `savedDocumentIdFor(...)`, or the id of a document known to be saved.
|
|
265
|
-
*/
|
|
266
|
-
declare function useRegisterOpenDocument(registration: OpenDocumentRegistration): void;
|
|
267
|
-
/** The open document's id (the most recently opened), or null. Re-renders when it changes. */
|
|
268
|
-
declare function useOpenDocumentId(options?: {
|
|
269
|
-
workspaceId?: string | null;
|
|
270
|
-
}): string | null;
|
|
271
|
-
/** The open document's id (the most recently opened); with `workspaceId`, only one of it. */
|
|
272
|
-
declare function openDocumentId(options?: {
|
|
273
|
-
workspaceId?: string | null;
|
|
274
|
-
}): string | null;
|
|
275
|
-
/** What a turn is about to be sent in: its conversation and the document its thread is bound to. */
|
|
276
|
-
interface TurnDocumentInput {
|
|
277
|
-
/** The thread's bound document (`threadDocumentId` / the session's `newChatDocumentId`). */
|
|
278
|
-
boundDocumentId: string | null | undefined;
|
|
279
|
-
/** The conversation (null: a new chat). */
|
|
280
|
-
conversationId: string | null | undefined;
|
|
281
|
-
/** The chat's workspace: an open document of another workspace is never picked up. */
|
|
282
|
-
workspaceId?: string | null;
|
|
283
|
-
}
|
|
284
|
-
/** The document a turn sent now would draft in, or null. Re-renders as documents open and close. */
|
|
285
|
-
declare function useTurnDocumentId(input: TurnDocumentInput): string | null;
|
|
286
|
-
/**
|
|
287
|
-
* The document an assistant turn about to be sent drafts in, or null. Call it once per turn as the
|
|
288
|
-
* question is sent: when an earlier version of the document is on screen, the viewer returns to the
|
|
289
|
-
* live document, where the assistant's edits appear.
|
|
290
|
-
*/
|
|
291
|
-
declare function takeDocumentForTurn(input: TurnDocumentInput): string | null;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* The documents the assistant is writing (or wrote) in this tab's chats, as their artifact events
|
|
295
|
-
* stream in: the chat engine records every one (`recordChatArtifact`), before the host's
|
|
296
|
-
* `chat.onArtifact` shows it. One store for every surface that shows a draft as it is written: the
|
|
297
|
-
* answer's artifact card, the document viewer, and a drafting chat's document pane.
|
|
298
|
-
*
|
|
299
|
-
* A module-level store, like the open-document registry: a chat and a viewer agree wherever they
|
|
300
|
-
* sit in the tree. It holds what streamed in this tab only; a saved draft is read from the
|
|
301
|
-
* documents list. Cleared on sign-out (`clearChatArtifacts`).
|
|
302
|
-
*/
|
|
303
|
-
/** An artifact as it streams: what the events said so far. */
|
|
304
|
-
interface ChatArtifact {
|
|
305
|
-
/** The document it is written into (`doc-…`). */
|
|
306
|
-
docExtId: string;
|
|
307
|
-
title: string;
|
|
308
|
-
/** The content so far (Markdown, or the html/react source of a live artifact). */
|
|
309
|
-
content: string;
|
|
310
|
-
/**
|
|
311
|
-
* `markdown` / `text` are document drafts (stored by the server as Word documents); `html` /
|
|
312
|
-
* `react` are live artifacts; `image` is a generated image.
|
|
313
|
-
*/
|
|
314
|
-
mode: 'markdown' | 'html' | 'text' | 'react' | 'image';
|
|
315
|
-
isComplete: boolean;
|
|
316
|
-
version?: number | null;
|
|
317
|
-
/** The answer that writes it. */
|
|
318
|
-
messageExtId?: string;
|
|
319
|
-
/** The conversation it is written in (`new` until the server named it). */
|
|
320
|
-
conversationId: string;
|
|
321
|
-
createdAt: string;
|
|
322
|
-
}
|
|
323
|
-
/** Record an artifact event of a chat turn in `conversationId`. */
|
|
324
|
-
declare function recordChatArtifact(event: ArtifactEvent, conversationId: string): void;
|
|
325
|
-
/** Forget every streamed artifact (sign-out). */
|
|
326
|
-
declare function clearChatArtifacts(): void;
|
|
327
|
-
/** Every artifact streamed in this tab, by document id. */
|
|
328
|
-
declare function getChatArtifacts(): Readonly<Record<string, ChatArtifact>>;
|
|
329
|
-
/** The artifact streaming (or streamed) into this document, if one did in this tab. */
|
|
330
|
-
declare function getChatArtifact(documentId: string | null | undefined): ChatArtifact | undefined;
|
|
331
|
-
/** The artifact streaming into this document, if one is. Re-renders as it streams. */
|
|
332
|
-
declare function useChatArtifact(documentId: string | null | undefined): ChatArtifact | undefined;
|
|
333
|
-
/** The artifact this answer writes (or wrote), if it did in this tab. */
|
|
334
|
-
declare function useMessageChatArtifact(messageId: string | null | undefined): ChatArtifact | undefined;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* A thread's document: the one document a conversation drafts in, part of the conversation.
|
|
338
|
-
*
|
|
339
|
-
* A thread is bound to a document only when it was started from it ("Chat about this document" in
|
|
340
|
-
* the viewer) or the person attached it in that thread. Only that thread names it on its turns
|
|
341
|
-
* (`active_artifact_ext_id`), on every turn and after a reload. A document merely open or docked
|
|
342
|
-
* beside the chat binds nothing: a new chat (the ask bar, the new-chat button, the thread
|
|
343
|
-
* launcher, home) starts unbound, so a question there never becomes an edit of whatever is open.
|
|
344
|
-
*
|
|
345
|
-
* The binding is the server's: the conversation's `bound_document_ext_id`, set by the first turn
|
|
346
|
-
* (`bound_document_ext_id` on the turn that starts it) or by a PATCH, and read under each reader's
|
|
347
|
-
* access (`bound_document_unavailable`: bound to a document this reader cannot open). It follows
|
|
348
|
-
* the person to every device, and a shared thread's members all see it. The query cache holds it
|
|
349
|
-
* (`./thread-binding`); a new chat's binding is the session's `newChatDocumentId` until its first
|
|
350
|
-
* turn creates the conversation.
|
|
351
|
-
*
|
|
352
|
-
* This module is the light half (no query client, no SDK), so the shell entry can carry it.
|
|
353
|
-
*/
|
|
354
|
-
/** What a conversation row says about its binding. */
|
|
355
|
-
interface ThreadBindingRow {
|
|
356
|
-
external_id: string;
|
|
357
|
-
bound_document_ext_id?: string | null;
|
|
358
|
-
bound_document_unavailable?: boolean | null;
|
|
359
|
-
updated_at?: string | null;
|
|
360
|
-
}
|
|
361
|
-
/** A conversation's binding as this reader sees it. */
|
|
362
|
-
interface ThreadBinding {
|
|
363
|
-
/** The bound document, or null (unbound, or bound to one this reader cannot open). */
|
|
364
|
-
documentId: string | null;
|
|
365
|
-
/** Bound to a document this reader cannot open (another member's private document, or deleted). */
|
|
366
|
-
unavailable: boolean;
|
|
367
|
-
}
|
|
368
|
-
declare const UNBOUND: ThreadBinding;
|
|
369
|
-
/** A row's binding. */
|
|
370
|
-
declare function bindingOfRow(row: ThreadBindingRow | null | undefined): ThreadBinding;
|
|
371
|
-
/** The most recently active conversation bound to a document, among `conversations`, or null. */
|
|
372
|
-
declare function latestThreadOfDocument(conversations: readonly ThreadBindingRow[] | null | undefined, documentId: string): string | null;
|
|
373
|
-
declare const LEGACY_THREAD_DOCUMENTS_KEY = "arbi-thread-documents";
|
|
374
|
-
/** The bindings this browser kept locally (conversation id → document id); empty when none. */
|
|
375
|
-
declare function readLegacyThreadDocuments(): Record<string, string>;
|
|
376
|
-
/** Forget locally kept bindings (moved to the server); the key goes with the last of them. */
|
|
377
|
-
declare function forgetLegacyThreadDocuments(conversationIds: readonly string[]): void;
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* A search's state outside any component: the query last searched, its passages, and whether it
|
|
381
|
-
* is running. A page that shows the shared session (`sharedSearchSession`) keeps its results when
|
|
382
|
-
* it is left and opened again, another surface can hand it a query to run on arrival
|
|
383
|
-
* ({@link requestSearch}), and {@link persistSearchSession} keeps the last query across reloads.
|
|
384
|
-
*/
|
|
385
|
-
|
|
386
|
-
type SearchStatus = 'idle' | 'running' | 'done' | 'error';
|
|
387
|
-
interface SearchSessionState {
|
|
388
|
-
/** The workspace the query and results belong to. */
|
|
389
|
-
workspaceId: string | null;
|
|
390
|
-
/** The query last searched, or handed over to run. */
|
|
391
|
-
query: string;
|
|
392
|
-
/** The last search's passages, best first. */
|
|
393
|
-
results: SearchChunk[];
|
|
394
|
-
/** A search has finished with results to show (cleared by {@link clearSearchSession}). */
|
|
395
|
-
searched: boolean;
|
|
396
|
-
status: SearchStatus;
|
|
397
|
-
error: string | null;
|
|
398
|
-
/** A query handed over by {@link requestSearch}, run once by the page that shows the session. */
|
|
399
|
-
pending: string | null;
|
|
400
|
-
/** Counts searches, so the reply to an older one never overwrites a newer one. */
|
|
401
|
-
run: number;
|
|
402
|
-
}
|
|
403
|
-
type SearchSession = StoreApi<SearchSessionState>;
|
|
404
|
-
declare function createSearchSession(): SearchSession;
|
|
405
|
-
/** The session a host's search page shows. */
|
|
406
|
-
declare const sharedSearchSession: SearchSession;
|
|
407
|
-
/** Back to nothing searched (in `workspaceId` when given); a running search's reply is dropped. */
|
|
408
|
-
declare function clearSearchSession(workspaceId?: string | null, session?: SearchSession): void;
|
|
409
|
-
/**
|
|
410
|
-
* Hand a query to the search page, which runs it when it shows the session (the user already
|
|
411
|
-
* asked once; the page must not wait for a second Enter).
|
|
412
|
-
*/
|
|
413
|
-
declare function requestSearch(query: string, workspaceId: string | null, session?: SearchSession): void;
|
|
414
|
-
/** The handed-over query, once: the next call returns null. */
|
|
415
|
-
declare function takePendingSearch(session?: SearchSession): string | null;
|
|
416
|
-
/**
|
|
417
|
-
* Keep the last query (and its workspace) in `storage` under `key`, so the search box shows it
|
|
418
|
-
* after a reload. Results are not kept. Returns the unsubscribe.
|
|
419
|
-
*/
|
|
420
|
-
declare function persistSearchSession(key: string, storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, session?: SearchSession): () => void;
|
|
421
|
-
|
|
422
|
-
type NotifyVariant = 'success' | 'error' | 'info' | 'warning';
|
|
423
|
-
interface AppNotification {
|
|
424
|
-
id: string;
|
|
425
|
-
title: string;
|
|
426
|
-
description?: string;
|
|
427
|
-
variant: NotifyVariant;
|
|
428
|
-
/** Epoch ms the entry was recorded. */
|
|
429
|
-
ts: number;
|
|
430
|
-
read: boolean;
|
|
431
|
-
/** Optional in-app link the entry deep-links to (passed to the bell's onNavigate). */
|
|
432
|
-
href?: string;
|
|
433
|
-
/** Optional click action — wins over `href` when both are present. Session
|
|
434
|
-
* history only: never persisted, so a closure is safe here. */
|
|
435
|
-
onSelect?: () => void;
|
|
436
|
-
/** The label of the action `onSelect` runs ("Reply", "View"). */
|
|
437
|
-
actionLabel?: string;
|
|
438
|
-
/** Workspace the entry belongs to. */
|
|
439
|
-
workspaceId?: string;
|
|
440
|
-
/** Markup of a rich (non-string) toast message, for a log that shows it as it was toasted. */
|
|
441
|
-
html?: string;
|
|
442
|
-
/** Routine session activity ("Opening workspace…", "Saved") — kept for the
|
|
443
|
-
* log but not something that demands attention: excluded from the unread
|
|
444
|
-
* badge and from the bell's list. */
|
|
445
|
-
ambient?: boolean;
|
|
446
|
-
/** Where the entry comes from. Session entries (`notify.*`) have none; a
|
|
447
|
-
* backend bridge stamps its own (e.g. 'server') so {@link syncSource} can
|
|
448
|
-
* replace exactly its slice on every refetch without touching the rest. */
|
|
449
|
-
source?: string;
|
|
450
|
-
}
|
|
451
|
-
interface NotifyOptions {
|
|
452
|
-
/** Shown under the title in the toast; a string description is also recorded. */
|
|
453
|
-
description?: ReactNode;
|
|
454
|
-
/** Record an entry in the history (default true). False pops the toast only — for an event
|
|
455
|
-
* whose entry arrives another way (a server-persisted notification synced by a bridge). */
|
|
456
|
-
record?: boolean;
|
|
457
|
-
/** Pop the transient toast (default true unless muted). False records the entry only. */
|
|
458
|
-
toast?: boolean;
|
|
459
|
-
/** Recorded title for a rich (non-string) toast title. Default: the string title, else the
|
|
460
|
-
* rich title's text. */
|
|
461
|
-
recordTitle?: string;
|
|
462
|
-
/** Recorded markup for a rich toast title (default: the title rendered to static markup). */
|
|
463
|
-
html?: string;
|
|
464
|
-
href?: string;
|
|
465
|
-
/** Workspace the notification belongs to: its glyph shows in the toast and its link is the
|
|
466
|
-
* entry's default `href` (both as configured with {@link configureNotify}). */
|
|
467
|
-
workspaceId?: string;
|
|
468
|
-
duration?: number;
|
|
469
|
-
/** A toast action button (sonner). Clicking the entry runs it too. */
|
|
470
|
-
action?: {
|
|
471
|
-
label: ReactNode;
|
|
472
|
-
onClick: () => void;
|
|
473
|
-
};
|
|
474
|
-
/** Override the toast glyph (sonner). */
|
|
475
|
-
icon?: ReactNode;
|
|
476
|
-
/** Extra class on the toast (sonner). */
|
|
477
|
-
className?: string;
|
|
478
|
-
/** Record as routine session activity (see {@link AppNotification.ambient}): born read. */
|
|
479
|
-
ambient?: boolean;
|
|
480
|
-
}
|
|
481
|
-
/** Session entries kept (oldest dropped first) — a safety net against pathological growth; a
|
|
482
|
-
* large upload can log many entries, so it is generous. Source slices are bounded by their source. */
|
|
483
|
-
declare const MAX_SESSION_NOTIFICATIONS = 5000;
|
|
484
|
-
interface NotifyState {
|
|
485
|
-
notifications: AppNotification[];
|
|
486
|
-
/** Toasts are muted: entries are still recorded — the history is what the user comes back to. */
|
|
487
|
-
muted: boolean;
|
|
488
|
-
setMuted: (muted: boolean) => void;
|
|
489
|
-
markRead: (id: string) => void;
|
|
490
|
-
markAllRead: () => void;
|
|
491
|
-
removeNotification: (id: string) => void;
|
|
492
|
-
removeNotifications: (ids: readonly string[]) => void;
|
|
493
|
-
clearNotifications: () => void;
|
|
494
|
-
/** Replace the history (e.g. seed a demo/initial set). */
|
|
495
|
-
seed: (items: AppNotification[]) => void;
|
|
496
|
-
/** Record an entry (used by `notify.*`; sonner renders the toast). */
|
|
497
|
-
record: (note: AppNotification) => void;
|
|
498
|
-
/** Reconcile one source's slice with fresh truth (e.g. a backend list on
|
|
499
|
-
* every refetch): entries stamped with `source` are replaced wholesale —
|
|
500
|
-
* including their read state, which the source owns — while entries from
|
|
501
|
-
* other sources (session activity) stay untouched. Newest first. */
|
|
502
|
-
syncSource: (source: string, items: AppNotification[]) => void;
|
|
503
|
-
}
|
|
504
|
-
declare const useNotify: zustand.UseBoundStore<zustand.StoreApi<NotifyState>>;
|
|
505
|
-
/** What a host configures once for every `notify.*` call. */
|
|
506
|
-
interface NotifyConfig {
|
|
507
|
-
/** The toast glyph of a notification that names a workspace. */
|
|
508
|
-
workspaceIcon?: (workspaceId: string) => ReactNode;
|
|
509
|
-
/** The default link of an entry that names a workspace. */
|
|
510
|
-
workspaceHref?: (workspaceId: string) => string | undefined;
|
|
511
|
-
/** The default of {@link NotifyOptions.ambient} for calls that do not say: a host whose own
|
|
512
|
-
* toasts are mostly confirmations ("Saved") records them as log lines, and passes
|
|
513
|
-
* `ambient: false` for what should claim attention. Default false. */
|
|
514
|
-
ambient?: boolean;
|
|
515
|
-
}
|
|
516
|
-
/** Set the host's workspace glyph and link (merged into what is configured). */
|
|
517
|
-
declare function configureNotify(next: NotifyConfig): void;
|
|
518
|
-
declare const notify: {
|
|
519
|
-
success: (title: ReactNode, opts?: NotifyOptions) => string;
|
|
520
|
-
error: (title: ReactNode, opts?: NotifyOptions) => string;
|
|
521
|
-
info: (title: ReactNode, opts?: NotifyOptions) => string;
|
|
522
|
-
warning: (title: ReactNode, opts?: NotifyOptions) => string;
|
|
523
|
-
};
|
|
524
|
-
/** Replace the history — inject a seed/initial set. */
|
|
525
|
-
declare function seedNotifications(items: AppNotification[]): void;
|
|
526
|
-
/**
|
|
527
|
-
* Keep the session history and the mute switch across reloads in `storage` under `key`: restores
|
|
528
|
-
* them now and saves every change. Source slices are not saved (their source re-syncs them), and
|
|
529
|
-
* neither are actions — a closure does not survive a reload. Returns the unsubscribe.
|
|
530
|
-
*/
|
|
531
|
-
declare function persistNotifyHistory(key: string, storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined): () => void;
|
|
532
|
-
/** Unread count selector for the topbar bell — ambient session activity never
|
|
533
|
-
* demands attention, so it never counts. */
|
|
534
|
-
declare const selectUnread: (s: NotifyState) => number;
|
|
535
|
-
/** Default glyph colour per variant (raw palette, override via `toneClassNames`). */
|
|
536
|
-
declare const DEFAULT_NOTIFY_TONE: Record<NotifyVariant, string>;
|
|
537
|
-
|
|
538
|
-
/** What a custom bell trigger needs to render itself. */
|
|
539
|
-
interface NotificationBellTriggerState {
|
|
540
|
-
/** Unread count (0 when none). */
|
|
541
|
-
unread: number;
|
|
542
|
-
/** Accessible name, including the count: "Notifications, 2 unread". */
|
|
543
|
-
ariaLabel: string;
|
|
544
|
-
testId: string;
|
|
545
|
-
}
|
|
546
|
-
interface NotificationBellProps {
|
|
547
|
-
/**
|
|
548
|
-
* Replaces the default icon button with the host's own trigger (for example a labelled sidebar
|
|
549
|
-
* row). It must forward its ref and rest props: it is mounted as the dropdown trigger.
|
|
550
|
-
*/
|
|
551
|
-
renderTrigger?: (state: NotificationBellTriggerState) => ReactElement;
|
|
552
|
-
/** Called with an entry's `href` when it's clicked (e.g. router navigate). */
|
|
553
|
-
onNavigate?: (href: string) => void;
|
|
554
|
-
/** Open this entry in the host notification centre instead of following its link. */
|
|
555
|
-
onSelectNotification?: (notification: AppNotification) => void;
|
|
556
|
-
/** Called after an entry is locally marked read — the hook for a backend
|
|
557
|
-
* bridge to propagate read state upstream (filter by the ids it owns). */
|
|
558
|
-
onMarkRead?: (id: string) => void;
|
|
559
|
-
/** Called after "Mark all read" — same upstream-propagation hook. */
|
|
560
|
-
onMarkAllRead?: () => void;
|
|
561
|
-
/** Show the store's toast mute switch in the header — the bell is where notification
|
|
562
|
-
* behaviour is controlled. */
|
|
563
|
-
showMuteToggle?: boolean;
|
|
564
|
-
/** Override per-variant glyph colours (e.g. brand emerald for success). */
|
|
565
|
-
toneClassNames?: Partial<Record<NotifyVariant, string>>;
|
|
566
|
-
emptyText?: string;
|
|
567
|
-
/** Footer link to the app's full notification surface. Omit to hide. */
|
|
568
|
-
onViewAll?: () => void;
|
|
569
|
-
viewAllLabel?: string;
|
|
570
|
-
testId?: string;
|
|
571
|
-
/** Where the panel opens relative to the bell (a sidebar-footer bell opens upward). */
|
|
572
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
573
|
-
align?: 'start' | 'center' | 'end';
|
|
574
|
-
}
|
|
575
|
-
declare function NotificationBell({ renderTrigger, onNavigate, onSelectNotification, onMarkRead, onMarkAllRead, showMuteToggle, toneClassNames, emptyText, onViewAll, viewAllLabel, testId, side, align, }: NotificationBellProps): React$1.JSX.Element;
|
|
576
|
-
|
|
577
|
-
declare function Toaster({ toastOptions, ...props }: ToasterProps): React$1.JSX.Element;
|
|
578
|
-
|
|
579
|
-
export { persistSearchSession as $, type AppNotification as A, extractMentions as B, type ChatArtifact as C, DEFAULT_ASSISTANT_NAME as D, filterMentionCandidates as E, findMentionQuery as F, forgetLegacyThreadDocuments as G, type HostConfigRecord as H, getChatArtifact as I, getChatArtifacts as J, hasMessageBody as K, LEGACY_THREAD_DOCUMENTS_KEY as L, MAX_SESSION_NOTIFICATIONS as M, NotificationBell as N, type OpenDocumentRegistration as O, insertMention as P, latestThreadOfDocument as Q, linkMentions as R, type SavedDocumentInput as S, type ThreadBinding as T, UNBOUND as U, mentionFromHref as V, type WordDocumentKind as W, notify as X, openDocumentId as Y, opensInWord as Z, persistNotifyHistory as _, ArbiHost as a, readLegacyThreadDocuments as a0, recordChatArtifact as a1, requestSearch as a2, savedDocumentIdFor as a3, seedNotifications as a4, selectUnread as a5, sharedSearchSession as a6, takeDocumentForTurn as a7, takePendingSearch as a8, toMessageMentions as a9, useAssistantCopy as aa, useAssistantName as ab, useChatArtifact as ac, useHostConfigRecord as ad, useMessageChatArtifact as ae, useNotify as af, useOpenDocumentId as ag, useRegisterOpenDocument as ah, useTurnDocumentId as ai, type ArbiHostConnection as b, type ArbiHostProps as c, type AssistantCopy as d, DEFAULT_NOTIFY_TONE as e, MENTION_HREF_PREFIX as f, type MentionCandidate as g, type MentionKind as h, type MessageMentionRef as i, type NotificationBellProps as j, type NotificationBellTriggerState as k, type NotifyConfig as l, type NotifyOptions as m, type NotifyVariant as n, type SearchSession as o, type SearchSessionState as p, type SearchStatus as q, type ThreadBindingRow as r, Toaster as s, type TurnDocumentInput as t, assistantCopy as u, bindingOfRow as v, clearChatArtifacts as w, clearSearchSession as x, configureNotify as y, createSearchSession as z };
|