@arbidocs/blocks 0.4.168 → 0.5.0
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/{ConnectedCallDock-ESH665DH.cjs → ConnectedCallDock-BNKBAKIT.cjs} +4 -3
- package/dist/{ConnectedCallDock-J5JU3KKO.js.map → ConnectedCallDock-BNKBAKIT.cjs.map} +1 -1
- package/dist/{ConnectedCallDock-J5JU3KKO.js → ConnectedCallDock-MBAAUETC.js} +4 -3
- package/dist/ConnectedCallDock-MBAAUETC.js.map +1 -0
- package/dist/{ConnectedCallRoom-AFMVICHG.cjs → ConnectedCallRoom-QRWD2SDG.cjs} +4 -3
- package/dist/{ConnectedCallRoom-AFMVICHG.cjs.map → ConnectedCallRoom-QRWD2SDG.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-XBEO7VXT.js → ConnectedCallRoom-XJUXVNMB.js} +4 -3
- package/dist/{ConnectedCallRoom-XBEO7VXT.js.map → ConnectedCallRoom-XJUXVNMB.js.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-TFAA5Z6J.cjs → ConnectedNativeDocxComparison-A7PMTYD7.cjs} +7 -7
- package/dist/{ConnectedNativeDocxComparison-TFAA5Z6J.cjs.map → ConnectedNativeDocxComparison-A7PMTYD7.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-DJBFRFCK.js → ConnectedNativeDocxComparison-CWEW7GV3.js} +6 -6
- package/dist/{ConnectedNativeDocxComparison-DJBFRFCK.js.map → ConnectedNativeDocxComparison-CWEW7GV3.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-2MSUQTE2.js → ConnectedNativeDocxEditor-6EBF7U4E.js} +5 -5
- package/dist/{ConnectedNativeDocxEditor-2MSUQTE2.js.map → ConnectedNativeDocxEditor-6EBF7U4E.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-AFECVTCH.cjs → ConnectedNativeDocxEditor-IWXEOAIF.cjs} +7 -7
- package/dist/{ConnectedNativeDocxEditor-AFECVTCH.cjs.map → ConnectedNativeDocxEditor-IWXEOAIF.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-3OUYXRP2.js → ConnectedStreamedWordArtifact-27ISQYHI.js} +6 -6
- package/dist/ConnectedStreamedWordArtifact-27ISQYHI.js.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-IEGLOEEZ.cjs → ConnectedStreamedWordArtifact-WRGCCU5H.cjs} +7 -7
- package/dist/ConnectedStreamedWordArtifact-WRGCCU5H.cjs.map +1 -0
- package/dist/{WorkspaceTableView-GYIHAEIB.js → WorkspaceTableView-3TIMUU2J.js} +5 -5
- package/dist/{WorkspaceTableView-GYIHAEIB.js.map → WorkspaceTableView-3TIMUU2J.js.map} +1 -1
- package/dist/{WorkspaceTableView-733WL4DA.cjs → WorkspaceTableView-FROHEPCT.cjs} +7 -7
- package/dist/{WorkspaceTableView-733WL4DA.cjs.map → WorkspaceTableView-FROHEPCT.cjs.map} +1 -1
- package/dist/calls/index.cjs +35 -35
- package/dist/calls/index.js +6 -6
- package/dist/chat/index.cjs +76 -75
- package/dist/chat/index.js +2 -1
- package/dist/chat/thread-diagram.d.ts +3 -1
- package/dist/chunk-26EQQQBX.js +356 -0
- package/dist/chunk-26EQQQBX.js.map +1 -0
- package/dist/{chunk-CVJ2ZMA4.cjs → chunk-2BNWISLH.cjs} +4 -4
- package/dist/{chunk-CVJ2ZMA4.cjs.map → chunk-2BNWISLH.cjs.map} +1 -1
- package/dist/{chunk-U6B6LPIG.cjs → chunk-32W6STZ2.cjs} +5 -5
- package/dist/{chunk-U6B6LPIG.cjs.map → chunk-32W6STZ2.cjs.map} +1 -1
- package/dist/{chunk-SJVIBMVQ.js → chunk-34LBKTII.js} +4 -4
- package/dist/{chunk-SJVIBMVQ.js.map → chunk-34LBKTII.js.map} +1 -1
- package/dist/{chunk-E4AOCI46.cjs → chunk-3BJIS4GV.cjs} +7 -7
- package/dist/{chunk-E4AOCI46.cjs.map → chunk-3BJIS4GV.cjs.map} +1 -1
- package/dist/{chunk-ZWNUK3A2.cjs → chunk-3XA7EDPS.cjs} +7 -7
- package/dist/{chunk-ZWNUK3A2.cjs.map → chunk-3XA7EDPS.cjs.map} +1 -1
- package/dist/{chunk-O7FVBTBT.js → chunk-4MQKXHMC.js} +3 -3
- package/dist/{chunk-O7FVBTBT.js.map → chunk-4MQKXHMC.js.map} +1 -1
- package/dist/{chunk-HAYIPKKI.cjs → chunk-5DXTO7CE.cjs} +6 -6
- package/dist/{chunk-HAYIPKKI.cjs.map → chunk-5DXTO7CE.cjs.map} +1 -1
- package/dist/{chunk-7JIMJEB5.cjs → chunk-DAEDRTIN.cjs} +3 -3
- package/dist/{chunk-7JIMJEB5.cjs.map → chunk-DAEDRTIN.cjs.map} +1 -1
- package/dist/{chunk-FTLNYE2X.cjs → chunk-F66OH26L.cjs} +4 -96
- package/dist/chunk-F66OH26L.cjs.map +1 -0
- package/dist/chunk-KJXJRX33.js +94 -0
- package/dist/chunk-KJXJRX33.js.map +1 -0
- package/dist/chunk-LDRHUYRE.cjs +376 -0
- package/dist/chunk-LDRHUYRE.cjs.map +1 -0
- package/dist/{chunk-2TEST7FZ.cjs → chunk-LMXMUWPA.cjs} +8 -11
- package/dist/chunk-LMXMUWPA.cjs.map +1 -0
- package/dist/{chunk-DRIMPELS.cjs → chunk-MDFXGRLY.cjs} +15 -15
- package/dist/{chunk-DRIMPELS.cjs.map → chunk-MDFXGRLY.cjs.map} +1 -1
- package/dist/{chunk-UF2GRQQF.js → chunk-NHY4AKA4.js} +3 -3
- package/dist/{chunk-UF2GRQQF.js.map → chunk-NHY4AKA4.js.map} +1 -1
- package/dist/{chunk-U6QJB3G4.js → chunk-OD3UJ7XR.js} +3 -3
- package/dist/{chunk-U6QJB3G4.js.map → chunk-OD3UJ7XR.js.map} +1 -1
- package/dist/chunk-OK3UJMO4.cjs +98 -0
- package/dist/chunk-OK3UJMO4.cjs.map +1 -0
- package/dist/{chunk-ZBTJWS3M.cjs → chunk-RMLU363Q.cjs} +4 -4
- package/dist/{chunk-ZBTJWS3M.cjs.map → chunk-RMLU363Q.cjs.map} +1 -1
- package/dist/{chunk-GA77ONJJ.js → chunk-TXPOODAY.js} +8 -11
- package/dist/chunk-TXPOODAY.js.map +1 -0
- package/dist/{chunk-XUUKUIKH.js → chunk-ULQV2NJT.js} +5 -94
- package/dist/chunk-ULQV2NJT.js.map +1 -0
- package/dist/{chunk-ADL5A6FR.js → chunk-VMXLNBHF.js} +3 -3
- package/dist/{chunk-ADL5A6FR.js.map → chunk-VMXLNBHF.js.map} +1 -1
- package/dist/{chunk-D7MDBDN7.js → chunk-XKTYKZWV.js} +3 -3
- package/dist/{chunk-D7MDBDN7.js.map → chunk-XKTYKZWV.js.map} +1 -1
- package/dist/{chunk-ZHQBNOZQ.js → chunk-YSNQWUQQ.js} +4 -4
- package/dist/{chunk-ZHQBNOZQ.js.map → chunk-YSNQWUQQ.js.map} +1 -1
- package/dist/{chunk-CDP7S6RA.js → chunk-ZC5MJIRC.js} +3 -3
- package/dist/{chunk-CDP7S6RA.js.map → chunk-ZC5MJIRC.js.map} +1 -1
- package/dist/connect/docx.cjs +9 -9
- package/dist/connect/docx.js +5 -5
- package/dist/connect/index.cjs +1918 -2135
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +46 -289
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +30 -28
- package/dist/connect/viewer.cjs.map +1 -1
- package/dist/connect/viewer.js +14 -12
- package/dist/connect/viewer.js.map +1 -1
- package/dist/connection/ConnectionProvider.d.ts +4 -1
- package/dist/connection/viewer/parsed/ParsedPassage.d.ts +2 -1
- package/dist/index.cjs +219 -218
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +155 -155
- package/dist/settings/index.js +2 -2
- package/dist/studio/index.cjs +4 -4
- package/dist/studio/index.js +2 -2
- package/dist/workflow-canvas/index.cjs +6 -6
- package/dist/workflow-canvas/index.js +2 -2
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedCallDock-ESH665DH.cjs.map +0 -1
- package/dist/ConnectedStreamedWordArtifact-3OUYXRP2.js.map +0 -1
- package/dist/ConnectedStreamedWordArtifact-IEGLOEEZ.cjs.map +0 -1
- package/dist/chunk-2TEST7FZ.cjs.map +0 -1
- package/dist/chunk-3PEUP4CH.cjs +0 -109
- package/dist/chunk-3PEUP4CH.cjs.map +0 -1
- package/dist/chunk-FTLNYE2X.cjs.map +0 -1
- package/dist/chunk-GA77ONJJ.js.map +0 -1
- package/dist/chunk-LLEI5I5C.js +0 -102
- package/dist/chunk-LLEI5I5C.js.map +0 -1
- package/dist/chunk-XUUKUIKH.js.map +0 -1
package/dist/connect/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useBillingSupport, formatMoney, isProProject, useSelfExtId, addonCharge, formatPeriodEnd, quoteParts, taxDetail, money2, ANNUAL_PREMIUM_AI_NOTE, totalWithTaxWord, planBadgeView, DEFAULT_SPEND_CAP_PENCE, findProPrices, packPrice, calcSavingsPercent, parseBudgetPounds, getQuotaItems, PRO_PACKS, planNameForPacks, proTierName, STORAGE_BLOCK_GB, ADDON_BLOCK_AI_GBP, formatResetDate, quoteError, POSTCODE_COUNTRIES, addonPrice, checkoutBlockPriceText, quoteTotalLine, apiErrorDetail, checkoutItemsLabel, projectGroupBilling, SUGGESTED_DAILY_CAP_PER_USER, FREE_STORAGE_MB, FREE_AI_GBP, PRO_AI_GBP, PRO_STORAGE_GB, plusVat, planPreviewLines, PAY_TODAY_UNPRICED, aiUsageResetTimestamp, TAX_LOCATION_INVALID, FREE_COLLABORATORS, MAX_CHECKOUT_BLOCKS, reduceBounds, splitBlocks, autoRoom, isAddonBudgetZero, nextRemovedBlockSize, stepLabel, addStepCaption, blocksLabel, MIN_AUTO_TOPUP_THRESHOLD_GBP, USAGE_CAP_LABEL, CAP_REACHED_MESSAGE, USAGE_CAP_HELP, PLAN_CHOICE_PACKS, nextPeriodBody, addonSettingsBody, budgetSavedMessage } from '../chunk-
|
|
3
|
-
export { CAP_REACHED_MESSAGE, ZERO_BUDGET_MESSAGE, aiUsageResetTimestamp, formatMoney, formatResetDate, getQuotaItems, isAddonBudgetZero, isProProject, planBadgeView, planName, projectGroupBilling, useBillingSupport, useRewardBalance } from '../chunk-
|
|
2
|
+
import { useBillingSupport, formatMoney, isProProject, useSelfExtId, addonCharge, formatPeriodEnd, quoteParts, taxDetail, money2, ANNUAL_PREMIUM_AI_NOTE, totalWithTaxWord, planBadgeView, DEFAULT_SPEND_CAP_PENCE, findProPrices, packPrice, calcSavingsPercent, parseBudgetPounds, getQuotaItems, PRO_PACKS, planNameForPacks, proTierName, STORAGE_BLOCK_GB, ADDON_BLOCK_AI_GBP, formatResetDate, quoteError, POSTCODE_COUNTRIES, addonPrice, checkoutBlockPriceText, quoteTotalLine, apiErrorDetail, checkoutItemsLabel, projectGroupBilling, SUGGESTED_DAILY_CAP_PER_USER, FREE_STORAGE_MB, FREE_AI_GBP, PRO_AI_GBP, PRO_STORAGE_GB, plusVat, planPreviewLines, PAY_TODAY_UNPRICED, aiUsageResetTimestamp, TAX_LOCATION_INVALID, FREE_COLLABORATORS, MAX_CHECKOUT_BLOCKS, reduceBounds, splitBlocks, autoRoom, isAddonBudgetZero, nextRemovedBlockSize, stepLabel, addStepCaption, blocksLabel, MIN_AUTO_TOPUP_THRESHOLD_GBP, USAGE_CAP_LABEL, CAP_REACHED_MESSAGE, USAGE_CAP_HELP, PLAN_CHOICE_PACKS, nextPeriodBody, addonSettingsBody, budgetSavedMessage } from '../chunk-4MQKXHMC.js';
|
|
3
|
+
export { CAP_REACHED_MESSAGE, ZERO_BUDGET_MESSAGE, aiUsageResetTimestamp, formatMoney, formatResetDate, getQuotaItems, isAddonBudgetZero, isProProject, planBadgeView, planName, projectGroupBilling, useBillingSupport, useRewardBalance } from '../chunk-4MQKXHMC.js';
|
|
4
4
|
import { getRoleBadgeClass, formatRole, getRoleDescription, PageLoading, WorkspacePageFrame, WorkspaceIdentityPanel, WorkspaceProjectSlot, WorkspaceAudienceLine, CommonWorkspaceToggle, ExpandableSection, LeaveFooter, WorkspaceList, WorkspaceGroup, WorkspaceCard } from '../chunk-6YI6BC6L.js';
|
|
5
5
|
import { isAgentAccount, workspaceConversationCount, workspaceDocumentCount, isListedWorkspace, WORKSPACE_CATEGORY_FILTERS, projectFilterId, workspaceFilterAttributes, groupWorkspacesByProject, byRecentUpdate } from '../chunk-BTF4AZMG.js';
|
|
6
6
|
import { buildFactCitations, citedVersionRef, chronologyFactBodies, docIdsOf, toFactCitations, FactsToolbar, FactsFieldsButton, FactComposer, FactDateInput, FactSourcesRow, FactsLoading, FactsLoadError, FactsEmptyState, FactsCalendar, FactsGanttPane, FactsBulkBar, FactSourceGroup, EMPTY_FACT_DATE_FIELDS, withoutChunk, factDateSpanToFields, FactFieldRow, FactLabelsCell, enableFactTableColumnResize, withChunk, factDateFieldsToSpan, createFactColumns, FactRowActions, withoutDoc, withDoc, sourceDocCount, DEFAULT_FACT_COLUMN_LABELS } from '../chunk-2WKAUDZZ.js';
|
|
7
7
|
import { HomeLoadError, HomeFrame, HomeMain, HomeCenteredScroll, HomeCenteredColumn, DashboardRoot, DashboardBand, DashboardColumns, RecentList, DashboardAction, FactsStrip, FactMark, CreateTile } from '../chunk-CSUKLEQH.js';
|
|
8
8
|
import { ProjectBandTitle, PlainBandTitle } from '../chunk-RQKWYKZY.js';
|
|
9
9
|
import '../chunk-5TDGVOR5.js';
|
|
10
|
-
import { MessageJsonTree, DraggableHeader, ProfileCard, AvatarPicker, IdentityVerificationCard, IdentityVerificationDialog, RequireVerified, PasswordChangeDialog, EMAIL_NOTIFICATION_KEYS, EMAIL_NOTIFICATION_CATEGORIES, NotificationCategoryList, toNotificationCategories, toActiveSessionViews, ActiveSessionsDialog, LogoutDialog, toLogoutSessionViews, DeleteAccountDialog, toDeleteBlockerViews, PremiumModelsFrame, ConnectionsLoading, ConnectionsError, ConnectionsEmpty, SettingsPage, SyncDialogBody, SyncField, SyncSelect, SyncSmallNote, SyncLoading, SyncReconnectNotice, SyncNote, SyncTreeFrame, SyncLinkRow, SyncLinkButton, SyncOptions, SyncOptionToggle, SyncDialogFooter, InvoicesDialog, PlanDialogFrame, ProjectList, RenameDialog, SharedProjectsSection, SharedProjectRow, MoreInfo, MoreInfoList, ProjectDetailHeader, PlanBadge, ProjectDetailSection, PlanStack, PlanNotice, PlanPickerCard, PlanPickerHeader, PricingToggle, PromoCodeInput, PlanActionButton, applyTriStateFilters, PanelFrame, PanelAddButton, PanelFrameBody, PanelScroll, PanelActionsRow, applyInvertedIndexFilter, ConfigSwitcherBar, PanelNote, ProjectRow, QuotaMeter, FilterChip, buildInvertedIndex, serverConnectionView, ServerConnectionButton, ModelProviderLabel, SyncFolderRow, SyncFolderStatus, PlanTierOption, PlanActionRow, SubscriptionStatusView, DailyCapField, UsagePanel, UsageSummary, UsageQuotaHint, UsageToggle, UsageSection, UsageLineChart, UsageLegend, UsageProportionBar, UsageActionButton, PlanInfoPopover, PlanCardGrid, ReferralRewardSummary, CheckoutDialogFrame, ConnectionCard, ReferralRewardNote } from '../chunk-
|
|
11
|
-
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-
|
|
12
|
-
import { useConnectedWorkspaceRole, useConnectedWorkflowScopeSource, ConnectedWorkflowDocumentsField, ConnectedWorkflowLauncher, ConnectedNativeDocxEditor } from '../chunk-
|
|
13
|
-
export { ConnectedWorkflowDocumentsField, ConnectedWorkflowLauncher, ConnectedWorkflowsTable, DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS, toWorkflowFieldDocument, useConnectedAgentOptions, useConnectedWorkflowScopeSource, useConnectedWorkspaceRole, useDocxCommentTarget, useNativeDocxSupport } from '../chunk-
|
|
14
|
-
|
|
10
|
+
import { MessageJsonTree, DraggableHeader, ProfileCard, AvatarPicker, IdentityVerificationCard, IdentityVerificationDialog, RequireVerified, PasswordChangeDialog, EMAIL_NOTIFICATION_KEYS, EMAIL_NOTIFICATION_CATEGORIES, NotificationCategoryList, toNotificationCategories, toActiveSessionViews, ActiveSessionsDialog, LogoutDialog, toLogoutSessionViews, DeleteAccountDialog, toDeleteBlockerViews, PremiumModelsFrame, ConnectionsLoading, ConnectionsError, ConnectionsEmpty, SettingsPage, SyncDialogBody, SyncField, SyncSelect, SyncSmallNote, SyncLoading, SyncReconnectNotice, SyncNote, SyncTreeFrame, SyncLinkRow, SyncLinkButton, SyncOptions, SyncOptionToggle, SyncDialogFooter, InvoicesDialog, PlanDialogFrame, ProjectList, RenameDialog, SharedProjectsSection, SharedProjectRow, MoreInfo, MoreInfoList, ProjectDetailHeader, PlanBadge, ProjectDetailSection, PlanStack, PlanNotice, PlanPickerCard, PlanPickerHeader, PricingToggle, PromoCodeInput, PlanActionButton, applyTriStateFilters, PanelFrame, PanelAddButton, PanelFrameBody, PanelScroll, PanelActionsRow, applyInvertedIndexFilter, ConfigSwitcherBar, PanelNote, ProjectRow, QuotaMeter, FilterChip, buildInvertedIndex, serverConnectionView, ServerConnectionButton, ModelProviderLabel, SyncFolderRow, SyncFolderStatus, PlanTierOption, PlanActionRow, SubscriptionStatusView, DailyCapField, UsagePanel, UsageSummary, UsageQuotaHint, UsageToggle, UsageSection, UsageLineChart, UsageLegend, UsageProportionBar, UsageActionButton, PlanInfoPopover, PlanCardGrid, ReferralRewardSummary, CheckoutDialogFrame, ConnectionCard, ReferralRewardNote } from '../chunk-NHY4AKA4.js';
|
|
11
|
+
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-XKTYKZWV.js';
|
|
12
|
+
import { useConnectedWorkspaceRole, useConnectedWorkflowScopeSource, ConnectedWorkflowDocumentsField, ConnectedWorkflowLauncher, ConnectedNativeDocxEditor } from '../chunk-34LBKTII.js';
|
|
13
|
+
export { ConnectedWorkflowDocumentsField, ConnectedWorkflowLauncher, ConnectedWorkflowsTable, DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS, toWorkflowFieldDocument, useConnectedAgentOptions, useConnectedWorkflowScopeSource, useConnectedWorkspaceRole, useDocxCommentTarget, useNativeDocxSupport } from '../chunk-34LBKTII.js';
|
|
14
|
+
import { ConnectedMarkdown, InternalDocLink, ExternalLink, DocumentWorkspaceContext } from '../chunk-26EQQQBX.js';
|
|
15
|
+
export { ConnectedDocumentToolsProvider, ConnectedMarkdown, DocumentChip, DocumentWorkspaceContext, ExternalLink, InternalDocLink, MailChip, MermaidDiagram, WorkspaceDocumentReference, useDocumentViewerSupport, useDocumentWorkspace, useViewerDraftDocument, useViewerIsDetached, useViewerPassageCitation, useViewerStreamingDocument } from '../chunk-26EQQQBX.js';
|
|
15
16
|
import { ExplorerFileTile, formatFolderSegment, hasFolderProviderIcon, FolderProviderIcon, ExplorerFolderTile, StatusPill, FailedStageIcon, DocumentNameCellFrame, DocumentRowMenu, visibilityToggleTooltip, FolderCell, FolderCommandList, RelatedDocsCell, FilterButton, DOCUMENTS_ROW_HEIGHT_INITIAL, searchExplorerDocuments, buildExplorerEntries, collectFolderDocs, joinFolderPath, getExplorerDisplayName, RECENTLY_DELETED_HINT, RECENTLY_DELETED_HINT_PLURAL, canDeleteDocument, ExplorerFrame, ExplorerStage, ExplorerScroller, ExplorerLoadingTiles, ExplorerEmpty, ExplorerMarquee, ExplorerDropOverlay, ExplorerDragPreview, CheckboxCell, TagColumnHeader, ExplorerFileTooltip, visibilityAudience, TagFormRoot, TagFormNameField, TagFormSelectField, TagFormNote, TagFormOptionsEditor, TagFormInstructionField, TagFormMeta, TagFormFooter, TagFormSharedToggle, FilesViewCenter, FilesFilterBar, TransferProgressView, TransferResumeBanner, ExportResultsReport, TransferScopeChooser, TransferKindsPicker, TransferReferencesChooser, ExportMethodChooser, ExportWorkspacePicker, TransferConflictChooser, TransferPlanSummary, ExportFooter, ExportModalTitle, ROW_MIN, rowHeightForLines, linesForRowHeight, RowDensityControl, FolderFilterButton, FolderPickerRow, UploadFrame, UploadContainer, SelectedFilesList, RejectedFilesList, UploadErrorMessage, UploadProgress, VendorLogo, PrivacyExplainerModal, MultiSelectCellEditor, DOCUMENT_TYPE_OPTIONS, DEFAULT_DOCUMENT_COLUMNS, shareStateOf, BulkActionsBar, shareTooltipFor, parseFolderSegments, AiReviewDialogView, MoveToFolderDialog, sortFields, filterFieldsByName, fieldsApplyBarCopy, FieldsEditorRoot, FieldsEditorToolbar, FieldsEditorList, FieldRow, FieldsEmptyState, fieldsEmptyText, FieldsApplyBar, FieldsManagerDefinition, FieldsManagerBody, FieldsManagerTitle, BulkTagEditorDialog, BulkReplaceDialog, FieldValue, FieldFolderSelect, FieldFolderValue, FieldNativeSelect, FieldWithAttribution, EMAIL_VIEW_COLUMNS, useGridViews, ViewSelectorMenu, FilesAddMenu, applyColumnLayout, applyViewColumns, sortExplorerFiles, FilesPage, UrlInputDialog, FilesPageHeader, FilesToolbar, ExplorerFileNavigator, NavigatorPickerBar, FilesPageMain, DocumentGrid, resolveDocumentGridLayout, FilesModalFooter, BulkLabelSelectView, confirmHideFromMembers, DocumentsFolderButton, FilesTagsButton, UploadSourceSection, UploadSourcePicker, UploadBrowseButtons, canEditDocumentFields, FieldLabelsSelect, ShareToggle, FieldAttribution, UploadDropArea, canChangeVisibility, UploadUrlButton } from '../chunk-QE7MS7NA.js';
|
|
16
17
|
import { ViewToggle, DocumentViewToggle } from '../chunk-JJA6GQKH.js';
|
|
17
18
|
import { ModalBreadcrumbHeader, ModalCrumbs } from '../chunk-RC6VTY2H.js';
|
|
@@ -35,14 +36,11 @@ import '../chunk-NBV56SGU.js';
|
|
|
35
36
|
import { ErrorBoundary } from '../chunk-EQ3WRY2N.js';
|
|
36
37
|
import { LabelMultiSelectView } from '../chunk-JMQLTMJ7.js';
|
|
37
38
|
import { workspaceKindColor, WorkspaceIdentity } from '../chunk-A3XPS2EU.js';
|
|
38
|
-
import { PassagePill,
|
|
39
|
+
import { PassagePill, useCopyText } from '../chunk-LDD7NXIQ.js';
|
|
39
40
|
import '../chunk-K4BGOPGG.js';
|
|
40
41
|
import '../chunk-ZCOVDK2E.js';
|
|
41
42
|
import { isDefinitionsLabel, DOCX_MIME_TYPE, toDefinitionSource, definitionLabels } from '../chunk-DIB4JYUY.js';
|
|
42
43
|
import { decodeWhitespaceEntities } from '../chunk-AF6RDAJF.js';
|
|
43
|
-
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
44
|
-
import { DEFAULT_PASSWORD_RULES, AccountRecoveryDialog, promptSaveCredential, AuthLayout, AuthHeading, AuthField, AuthInput, AuthFieldBadge, AuthLink, AuthNote, RevealablePasswordInput, AuthConsent, AuthSubmitButton, AuthDivider, SsoLoginButton, AuthAlert, RecoveryKeyDialog, parseAuthError, AuthOfflineBadge, AuthTabs, splitAuthHash, withTrailingFragment } from '../chunk-MVP7METT.js';
|
|
45
|
-
import { PasswordStrengthInput } from '../chunk-VILAPTCB.js';
|
|
46
44
|
import { EntityChip, StepTraceSummary, StepTrace, getCurrentAgentStepPresentation, AssistantEntity, ThreadActivity, SubAgentLane, getAgentStepPresentation, stepAccent, MODEL_TIER_ICON_MAP, StepRow, StepNarration, StepSummary, StepDetail, StepOutcome, StepParams, GoalCriteria, SubStepGroup, MODEL_TIER_LABELS, fromPlanSteps, latestMessageTime, isSupersededStop, compactThreadActivity, unnotifiedMentions, notifiedLabel, linkedRunsFromActivity, getModelIcon, SubagentRoster, buildLibrarySkills, filterLibrarySkills, SKILL_SOURCE_LABELS, SKILL_TYPE_LABELS, SkillViewToggle, SkillFilterChips, SkillTile, SkillGenerateForm, SkillLibraryDetail, parseSkillFrontmatter, SKILL_MAIN_FILENAME, SkillEditForm, DEFAULT_AGENT_CAPABILITIES, stripPersonaPreamble, AgentCreator, DEFAULT_AGENT_TYPES, DEFAULT_AGENT_TEMPLATES, AgentAvatarField, isValidAgentName, AgentConnectInstructions, TaskRunsDialog, TaskActivityDialog, WorkflowStepBar, ConfigForm, AgentEditView, AgentMainView, AgentCreatedView, AgentCreateView, WorkflowRunStatus, ThreadStatusLine, WorkflowThreadStrip, WorkflowStepAction, WorkflowThreadStartedBy, TaskFlow, useWorkflowUsage, WEB_WORKFLOWS, DASHBOARD_PINNED, CUSTOM_TASK, REMIND_TASK, DASHBOARD_OPERATIONS, sortByRecentUse, taskComposerToCreateRequest, taskComposerToUpdateRequest, composerToWorkflowUpdate, moveTargets, workflowToComposerValues, REMIND_TASK_ID, CUSTOM_TASK_ID, taskToComposerValues, TaskComposer, renderWorkflowIcon, AUTOMATION_EVENTS, TaskPlan, TaskStartDialog, ThreadLauncher, NewThreadDialog, GENERATE_IMAGE_ID, IMAGE_ASPECT_AUTO, deriveAnnotationName, ANNOTATE_ID, recordWorkflowUse, openWorkflowLaunch, useWorkflowLaunchRequest, AgentBar, AgentBarNotes, AgentBarQueuedNote, AgentBarProbeAnswer, BUILTIN_SKILLS, TaskEmptyState, AgentBarStatus, AgentBarIconButton, AgentBarMenu, composePersona, newThreadToRequest, importSkillFile, importSkillFromUrl, WorkflowRunner, skillSlug, serializeSkill, toPlanSteps, useWorkflowView, STATUS_LABELS, asTaskStatus, workflowToSkillMarkdown, closeWorkflowLaunch } from '../chunk-DRLRR44Q.js';
|
|
47
45
|
import { MultiSelect } from '../chunk-CQCC7LE7.js';
|
|
48
46
|
import { PersonPill, documentScopeLabels, matchWorkflowScope } from '../chunk-QK2HR3LC.js';
|
|
@@ -55,15 +53,18 @@ import '../chunk-RLWIUUQ5.js';
|
|
|
55
53
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
56
54
|
import '../chunk-P2ZB2WTE.js';
|
|
57
55
|
import { GridView } from '../chunk-N5YEF3LC.js';
|
|
56
|
+
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
57
|
+
import { DEFAULT_PASSWORD_RULES, AccountRecoveryDialog, promptSaveCredential, AuthLayout, AuthHeading, AuthField, AuthInput, AuthFieldBadge, AuthLink, AuthNote, RevealablePasswordInput, AuthConsent, AuthSubmitButton, AuthDivider, SsoLoginButton, AuthAlert, RecoveryKeyDialog, parseAuthError, AuthOfflineBadge, AuthTabs, splitAuthHash, withTrailingFragment } from '../chunk-MVP7METT.js';
|
|
58
|
+
import { PasswordStrengthInput } from '../chunk-VILAPTCB.js';
|
|
58
59
|
import { attendeeKey, upcomingOf, conferenceUrl, isWebinarConference, canJoinEvent, calendarToListItem, buildGridEvents, pendingCreateToGrid, newEventDraft, MiniMonth, CalendarList, CalendarGrid, printCalendar, EventDetails, ScopeDialog, CalendarFormDialog, ProposeTimeDialog, isCalendarAttachment, parseIcsInvite, formatEventWhen, groupSlotsByDay, publicBookingMessage, formatSlotRange, zoneOptions, buildTimeChangeRequest, eventToDraft, needsScope, validateDraft, CALENDAR_DEFAULT_LABELS, buildCreateBody, buildDeleteTarget, EventEditor, toSettingsValue, CalendarSettingsForm, describeCalendarError, normalizeFeedUrl, parseOverlayLink, isAllDayDraft, draftRangeUtc, freeBusyToRows, SchedulingAssistant, applySuggestion, toSuggestionViews, RoomFinder, bookingLink, defaultRoomWindow, bookingToForm, emptyBookingForm, slugify, WeeklyHoursEditor, validateBookingForm, formToBookingBody, WEEKDAY_NAMES, formatBusy, buildEditRequest } from '../chunk-BJ24VPOA.js';
|
|
59
60
|
import { detectTimeZone, utcToDate, formatPlainDate, formatInZone, safeZone, todayInZone, addDays, listTimeZones, wallToUtc } from '../chunk-GTCC2VAR.js';
|
|
60
|
-
import { useTranscriptRuns, TranscriptEntry, ThreadCallLogCard, RecordingCard, useCalendarViewStore, useMeetingThreadMessages, threadTranscriptRuns, useProvisionalSpeakers, TranscriptRunsContext, ProvisionalSpeakers, CallConversationEmpty } from '../chunk-
|
|
61
|
-
export { requestCalendarComposer, requestCalendarEvent, useCalendarViewStore, useMeetingThreadMessages } from '../chunk-
|
|
61
|
+
import { useTranscriptRuns, TranscriptEntry, ThreadCallLogCard, RecordingCard, useCalendarViewStore, useMeetingThreadMessages, threadTranscriptRuns, useProvisionalSpeakers, TranscriptRunsContext, ProvisionalSpeakers, CallConversationEmpty } from '../chunk-YSNQWUQQ.js';
|
|
62
|
+
export { requestCalendarComposer, requestCalendarEvent, useCalendarViewStore, useMeetingThreadMessages } from '../chunk-YSNQWUQQ.js';
|
|
62
63
|
import { parseCallLogDetail } from '../chunk-NNPFFPBF.js';
|
|
63
|
-
import { useDocumentFilter, useConnectedTags, useConnectedDocuments, useConnectedConversations, useListedDocuments, listedDocuments } from '../chunk-
|
|
64
|
-
export { isListedDocument, useConnectedConversations, useConnectedDocuments, useConnectedTags, useDocumentFilter, useListedDocuments } from '../chunk-
|
|
65
|
-
import { useConnectedWorkspace, useConnection, ConnectionProvider } from '../chunk-
|
|
66
|
-
export { SESSION_EXPIRED_MESSAGE, isAuthenticated, useConnectedWorkspace, useConnection } from '../chunk-
|
|
64
|
+
import { useDocumentFilter, useConnectedTags, useConnectedDocuments, useConnectedConversations, useListedDocuments, listedDocuments } from '../chunk-ZC5MJIRC.js';
|
|
65
|
+
export { isListedDocument, useConnectedConversations, useConnectedDocuments, useConnectedTags, useDocumentFilter, useListedDocuments } from '../chunk-ZC5MJIRC.js';
|
|
66
|
+
import { useConnectedWorkspace, useConnection, ConnectionProvider } from '../chunk-TXPOODAY.js';
|
|
67
|
+
export { SESSION_EXPIRED_MESSAGE, isAuthenticated, useConnectedWorkspace, useConnection } from '../chunk-TXPOODAY.js';
|
|
67
68
|
import { ConfirmDialog } from '../chunk-ECERC6TI.js';
|
|
68
69
|
import { DmInviteChip, DmThreadHeader } from '../chunk-2S3LT5KE.js';
|
|
69
70
|
import { useHost, ArbiHost } from '../chunk-T4P237N6.js';
|
|
@@ -71,14 +72,15 @@ import { TabHeader } from '../chunk-ABEKUV6L.js';
|
|
|
71
72
|
import '../chunk-P6GHJSLR.js';
|
|
72
73
|
import { useBlocksEnvironment, useRequestedSettingsSection } from '../chunk-GKM4EOH7.js';
|
|
73
74
|
import { ModalHeader, ModalScaffold, ModalSection, ModalSectionTitle } from '../chunk-TX2ZICS7.js';
|
|
74
|
-
import {
|
|
75
|
+
import { useLongPaste, useRecipientDraft, SlashMenu, ContextUsageBar, findMessageDocument, getParticipantTints, flashMessage, parseSlashTokenInProgress, buildSlashItems, filterSlashItems, copyMessageToClipboard, BranchControls, ThreadVisualizer, downloadTableAsCsv, ModelAutoIcon, ModelTierIcon, ModelDot, ModelPricingTip, ModelPickerPopover, ModelOption, ModelMenuDivider, ModelTierOption, ModelConfigureButton, ModelMenuMessage, ModelPickerTrigger, ModelTriggerContent, ModelOptionLabel, ConversationBody, ConversationMain, ConversationLoading, PendingAnswerBar, ComposerTools, PaModeBadge, ComposerAccessories, DraftingDocChip } from '../chunk-ULQV2NJT.js';
|
|
75
76
|
import { ComposerSend, ComposerVoiceButton, Composer, MessageActionMenu, MessageActionButton, MessageFooter, MessageRoot, MessageContent, MessageAuthor, MessageBubble, MessageByline, MessageSubagentBadge, MessageBody, MessageNarration, useStreamAnnouncement, MessageList, WorkflowStepChip, MessageSources, ChatPage, ConversationEmpty, MessageAlert, ComposerDock, ComposerContainer, ScrollToBottom } from '../chunk-YMBDPI7X.js';
|
|
77
|
+
import { workspaceDocIdFromHref } from '../chunk-KJXJRX33.js';
|
|
76
78
|
import '../chunk-7XF5SFJ2.js';
|
|
77
79
|
import { useMentionAutocomplete, stepStatesFromActivity, stepDocuments, splitDocRef, stepPhase, stepKindOf, STEP_KIND_ICONS, stepLevels, canAssign, assigneeName, runFieldsOf, initialRunInputs, workflowSteps, runThreadTitle, stepFields } from '../chunk-3KZWRDPY.js';
|
|
78
80
|
import { mergeSkillWorkflows, composeWorkflowPrompt, isEmptyWorkflowScope, inputsFromContext, workflowsAccepting, promptFieldName, validateInputs, defaultInputs, buildLaunch } from '../chunk-TZGBRLPK.js';
|
|
79
81
|
import '../chunk-AUS3KBHJ.js';
|
|
80
82
|
import { useIsPhone, useMediaQuery } from '../chunk-SLSBJRWW.js';
|
|
81
|
-
import { useListKeyNav, MentionMenu
|
|
83
|
+
import { useListKeyNav, MentionMenu } from '../chunk-7CPOQPWR.js';
|
|
82
84
|
import { ConversationFilter } from '../chunk-FXTNUJHP.js';
|
|
83
85
|
import { buildDeepLinkPath } from '../chunk-T4N3EQGH.js';
|
|
84
86
|
import '../chunk-NPLYHR2E.js';
|
|
@@ -86,14 +88,14 @@ import { fmtDate, initials } from '../chunk-OXF2IFXG.js';
|
|
|
86
88
|
import '../chunk-7F6CBP3Z.js';
|
|
87
89
|
import '../chunk-VUNV25KB.js';
|
|
88
90
|
import { QueryClient, useQueryClient, useQuery, QueryClientProvider } from '@tanstack/react-query';
|
|
89
|
-
import { IN_FLIGHT_DOCUMENT_STATUSES, useOfflineDocumentIds, useOpenViewerDocumentId, FINISHED_DOCUMENT_STATUSES, useMailPolicy, useProcessingTasks, resolveDocumentStatus, useArbi, useIsCreatingTag, HtmlIcon, useUpdateDocuments, useDeleteDocuments, useRenameFolder, useDownloadDocuments, useTags, useDocumentHostActions, useDocumentThumbnails, useArbiSessionState, selectDraft, useArbiSessionStore, useAudioRecorder, MicRecordingOverlay, useProcessingTask, useDocumentPendingSync, useWorkspaces, useWorkspaceUsers, useMessageTimer, useUserSettings, useDocuments, useAvailableModels, formatGbp, CitationRenderer, useArbiSession, buildMentionCandidates, useConversations, ASSISTANT_MENTION_LABEL, useConversationItems, useDeleteMessage, useArbiHost, transcriptSegmentOf, useConfig, useThinkingContent, useCreateFact, useCreateFacts, workflowStepOf, stripSpeakerPrefix, MessageArtifactCard, useConversationData, useBranchNavigation, useSkills, useBuiltinCommands, useDocumentsSupport, useConversationActivity, useMessageDetails, useWorkflows, formatRelativeTime, getWorkspaceKind, resolveConfigModel,
|
|
91
|
+
import { IN_FLIGHT_DOCUMENT_STATUSES, useOfflineDocumentIds, useOpenViewerDocumentId, FINISHED_DOCUMENT_STATUSES, useMailPolicy, useProcessingTasks, resolveDocumentStatus, useArbi, useIsCreatingTag, HtmlIcon, useUpdateDocuments, useDeleteDocuments, useRenameFolder, useDownloadDocuments, useTags, useDocumentHostActions, useDocumentThumbnails, useArbiSessionState, selectDraft, useArbiSessionStore, useAudioRecorder, MicRecordingOverlay, useProcessingTask, useDocumentPendingSync, useWorkspaces, useWorkspaceUsers, useMessageTimer, useUserSettings, useDocuments, useAvailableModels, formatGbp, CitationRenderer, useArbiSession, buildMentionCandidates, useConversations, ASSISTANT_MENTION_LABEL, useConversationItems, useDeleteMessage, useArbiHost, transcriptSegmentOf, useConfig, useThinkingContent, useCreateFact, useCreateFacts, workflowStepOf, stripSpeakerPrefix, MessageArtifactCard, useConversationData, useBranchNavigation, useSkills, useBuiltinCommands, useDocumentsSupport, useConversationActivity, useMessageDetails, useWorkflows, formatRelativeTime, getWorkspaceKind, resolveConfigModel, useRunConversation, useWorkspaceActivity, isWorkspaceNotificationType, useNotifications, useDeleteNotifications, useMarkNotificationsRead, useWorkspaceNotificationLevel, useFollowThread, useUploadSkillFiles, useSaveSkill, useSetSkillVisibility, useDeleteSkill, useSkillSource, useAgentModels, useMcpTools, useAgentConfig, useAgentWorkspaces, useCreateAgent, useSaveAgentConfig, useGrantAgentAccess, useRevokeAgentAccess, useGenerateAgentAvatar, useWorkflowRuns, useAgents, ArtifactCanvas, ConversationScope, useConversation, useTagKindSchema, useCreateTag, useSetTagValues, useUpdateTagKindSchema, useUpdateTag, useFacts, useDeleteTag, useExtractEntities, useEntityExtractionDocIds, useStartWorkspaceTransfer, useResumeWorkspaceTransfer, useCancelWorkspaceTransfer, useWorkspaceTransfer, useWorkspaceTransfers, useWorkspaceExportDownload, usePlanWorkspaceTransfer, isTransferResumable, isTransferFinished, useShellWorkspaces, ArbiBotHeadIcon, useProfile, useUpdateProfile, useRequestEmailChange, useConfirmEmailChange, useNameEditor, useAvatarCrop, useEmailChange, ImageCropModal, useIdentityVerification, usePasswordChange, usePasswordChangeForm, useNotificationPreferences, useSessions, useCurrentSessionId, useTerminateSession, useSignOut, useDeleteAccount, useDeleteAccountFlow, useMailClient, defaultMailAlias, useClaimNativeAlias, useMailOnline, useConnectMailAccount, useDisconnectMailAccount, useMailAccounts, useUpdateUserSettings, useConnectorVendorVisibility, useConnectorCatalog, useMyConnectors, useDisconnectConnector, useSlackConnection, useDisconnectSlack, isMailboxSyncVendor, isSharePointVendor, useUpdateWorkspace, useAddWorkspaceMembers, useRemoveWorkspaceMembers, useSetWorkspaceMemberRoles, toShellWorkspace, useEnableMailboxSync, useMailboxFolders, useEnableDriveSync, useDriveFolderChildren, connectorErrorStatus, useProjectInvoices, useProjects, useUpdateProjectFields, useUserUsageToday, useChargeWatch, useAddonQuote, STILL_WORKING, useProjectBillingPortal, useIsSlow, useProducts, useCreateProject, useDeleteProject, useRefreshProject, useCanCreateProjects, useDeleteWorkspaces, PROJECT_CREATION_DENIED_REASON, useCreateContact, useUpdateContact, useLinkContact, useEntitlements, useImportContacts, entitlementRefusal, useContacts, useDeleteContact, useInviteContacts, MAX_RETRIEVE_DOC_IDS, useSemanticSearch, useAssignDocTags, arbiQueryKeys, useArbiWebSocket, useWorkNotifications, describeServerNotification, useMailUnlock, useMailFolders, useMailMessages, useMailDraftCompose, useMailMessage, useMailCache, MailOfflineUnavailableError, accountPath, callLink, openCall, useCalendarEvents, useCalendars, useCanHostCalls, useOpenCallMeetingChat, usePeople, useFetchCalendarEvent, useCalendarSettings, useCalendarOverlays, useCalendarOutbox, useCalendarAccounts, useSyncAccountsOnOpen, useResumeCalendarAccountConnect, useCreateEvent, useUpdateEvent, useDeleteEvent, useMoveEvent, useRespondToEvent, useCreateCalendar, useUpdateCalendar, useDeleteCalendar, useImportCalendar, useSaveCalendarSettings, useRefreshCalendar, useCalendarEvent, useMailAttachmentText, useCalendarEventByUid, getPublicBookingPage, bookPublicSlot, PublicBookingError, isZipFile, prepareUploadFiles, UPLOAD_MAX_FILE_SIZE, filesFromDrop, UPLOAD_ACCEPT, useUploadFromUrls, useUploadFiles, useUpdateDocTag, useRemoveDocTags, subscribeDocumentRows, useGenerateDocTags, useDocumentsLoading, selectViewingDocumentId, useRelatedDocuments, myChatId, useChatThread, useChatPost, useDeleteChatMessage, useMarkChatRead, setOpenChat, useAgentDmStatus, annotateThread, userDisplayName, DmComposer, TypingIndicator, useRenameChat, useAddChatMembers, useRemoveChatMember, useChats, useChatSummaries, useCreateGroupChat, ConversationList, useApplyChatModel, AUTO_CHAT_MODEL, formatGbpPerMillionTokens, useConfigSchema, useSaveConfig, useConversationPendingAuth, openAccessRequest, useRequestWorkspaceAccess, threadTabId, useUpdateConversation, useCanEditShared, useActOnStep, useCreateWork, useRunWorkflow, useStartTaskQuery, useCreateWorkflow, useUpdateWorkflow, usePlanWork, useWorkItems, TaskThreadPendingError, useMentionCandidates, useAgentRunControl, useConnectRunStream, useAnswerAgentQuestion, useConversationIsShared, useWorkspaceRole, buildPendingFirstTurn, useConversationTurn, useAskAgain, getOrphanedLastMessage, refuseChatWhenOffline, useDocumentAutoAdd, useAutoSendDraft, READ_ONLY_MEETING_TEXT, useAgentSession, useStartAgentSession, useCloseAgentSession, downloadRecoveryFile, isQueuedCalendarWrite, DateSeparator, ChatBubble, isAliasTakenError, nextAliasSuggestion, aliasTakenMessage, mailJson, connectorReturnTo, DmAvatar, GitHubIcon, AppleIcon, GoogleIcon, LinkedInIcon, getRelatedTotal, isDeploymentUserNotification, getWorkspaceActionText, getWorkspaceSentPhrase, BOX_SEAT_REFUSED, BOX_SEAT_REFUSED_TITLE, documentActivityPhrase, isSignatureNotificationType, inputRequestTitle, WORK_NOTIFICATION_LABELS, documentDisplayName, useConversationThreads, usePassageQuotes, useUpdateFact, useDeleteFact, useDriveFolderDocCount, useChangeProjectPlan, useCancelProjectSubscription, usePreviewProjectPlanChange, useAddProjectAddonBlock, useProjectUsage, usePlanQuote, useCreateProjectCheckout, useInvalidateProjects, fileAttachment, useMailProjects, useSaveMailDraft, useSendMail, useMailDraftReplaced, useCalendarInvitations, useDecideCounter, useSearchContacts, usePublishCalendar, useCalendarShares, useShareCalendar, useUnshareCalendar, useSubscribeCalendar, useHolidayCountries, useAddHolidayCalendar, cancelPublicBooking, useInvalidateAfterTransfer, useConfigs, useSaveConfigField, useDeleteConfig, isFullConfig, AiAnswer, ArbiWebSocketProvider, signatureNotificationPhrase, signatureRequestMeta, getNotificationTypeMeta, useMailDraftEditor, useFreeBusy, useRooms, useFindTime, useCalendarSupport, useStartCalendarAccountOAuth, useConnectOAuthAccount, useBookingPages, useDeleteBookingPage, SHAREPOINT_VENDORS, useUpdateProjectNextPeriodAddons, useUpdateProjectAddonSettings, useSyncCalendarAccount, useUpdateCalendarAccount, useDisconnectCalendarAccount, ACCOUNT_VENDOR, useCalDavProfiles, useConnectCalDavAccount, useSaveBookingPage, useCreateRoom } from '@arbidocs/react';
|
|
90
92
|
import { mergeAgentSteps, extractSubagentLanes, getCurrentStep, computeRunStats, formatTokens, isNearAiUsageBudget, getSubagentBranchRecord, buildCitationChunkData, topLevelAgentSteps, findMainSiblingLeaf, sliceToSubagentThread, getAgentStepLabel, subagentJobLabel, getStepDisplay, getStepTool, findLeafForTaskMessage, Arbi, FLAT_TAG_KINDS, getEligibleParentTags, canTagHaveParent, isFlatKind, TAG_NESTING_MAX_DEPTH, TAG_KINDS, formatFileSize, filterDocumentTags, isLabelTag, refusalReason, isPresenceTag, isAnnotationTag, flattenTagTree, tagsForScope, tagsOfGroup, chats, buildRetrievalFullContextTool, buildRetrievalChunkTool, getChildTags, tagUseCount, ArbiApiError, PRESENCE_KINDS, isEntityTag, DuplicateContactError, wouldCreateTagCycle, getTagDescendantIds } from '@arbidocs/sdk/browser';
|
|
91
93
|
import { browserSessionStateStorage, parseCallFragment, validateRecoveryKeyFile, RECOVERY_KEY_ERRORS, parseRecoveryUrl, prewarmKeyPairs, decryptRecoveryKey, unlockIdentityWithPassword, createRecoveryUrl, bytesToBase64, initSodium } from '@arbidocs/client';
|
|
92
94
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
93
|
-
import { getFileTypeIcon, DocumentEntity, cn, getDocumentTitle, UserEntity, getUserAvatarColor, isAgent, agentAvatarColors, getUserDisplayName, getUserInitials, formatFolderLabel, getEntityLabel, getEntityColor, VisibilityIcon, formatFriendlyDate, getDocumentSubject, Badge, getTagTypeIcon, getTagTypeLabel, VisibilityToggle, TagEntity, ThreadVisibilityIcon,
|
|
94
|
-
import
|
|
95
|
-
import { hasMessageBody, notify, linkMentions,
|
|
96
|
-
import { SquarePen, BookOpen, MessagesSquare, Pencil, Download, Mail, FolderInput, Trash2, Eye, Sparkles, Play, ArrowDownToLine, RefreshCw, Zap, AlertTriangle, FileX, SkipForward, Loader2, Clock, CheckCircle, ArrowUpRight, Send, Settings, Edit3, Copy, Link, Share2, Check, Milestone, RotateCcw, FileText, Network, ChevronRight, Bell, Activity, Info, UserCheck, Upload, Link2, Search, Plus, ArrowLeft, ExternalLink, Tags, CheckCircle2, Monitor, UserCircle, KeyRound, Radio, LogOut, Wifi, User, HatGlasses, MessageSquare, PlugZap, SquareStack, Table, Lock, Cake, X, UserRound, Star, Tag, Video, Printer, CalendarDays, MapPin, Globe, Calendar, Hash, File as File$1, HardDrive, FileType, FolderOpen, Fingerprint, Users, Paperclip, CircleCheck, TriangleAlert, LoaderCircle, NotebookPen, Columns3, EyeOff, ArrowUp, ArrowDown, ZoomOut, Camera, FilePlus2, UserMinus, UserPlus, UsersRound, Code2, Infinity, ChevronDown, MoreHorizontal, Wrench, RotateCw, Square, BadgeCheck, Shield, ArrowUpCircle, Building2, Contact, Scale, BookA, Quote, Inbox, CalendarX, CalendarCheck, Phone, Pause, Minimize2, Maximize2, Minus, CalendarSearch, DoorOpen, AlertCircle } from 'lucide-react';
|
|
95
|
+
import { getFileTypeIcon, DocumentEntity, cn, getDocumentTitle, UserEntity, getUserAvatarColor, isAgent, agentAvatarColors, getUserDisplayName, getUserInitials, formatFolderLabel, getEntityLabel, getEntityColor, VisibilityIcon, formatFriendlyDate, getDocumentSubject, Badge, getTagTypeIcon, getTagTypeLabel, VisibilityToggle, TagEntity, ThreadVisibilityIcon, Button, isImageDocument, Avatar, AvatarImage, AvatarFallback, Tooltip, TooltipTrigger, TooltipContent, Dialog, DialogContent, ProviderIcon, ShieldIcon, EntityIcon, Label, Input, Textarea, DialogHeader, DialogTitle, DialogDescription, tagKindNouns, tagKindTitle, IconToggle, Switch, ProjectEntity, DialogFooter, Checkbox, getDocIcon, getDocumentNature, getDocumentAuthor, markdownToPlainText, formatDocDate, getDocumentDate, friendlyFileType, canonicalFolderPath, DebouncedInput, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Slider, AgentBadge, PresenceLabel, TooltipProvider, DialogTrigger, Popover, PopoverAnchor, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, ScrollArea, ArbiIcon, EntityPill, Tabs, TabsList, TabsTrigger, TabsContent, ARBI_MARK_SRC, VerifiedToggle, Progress } from '@arbidocs/react/ui';
|
|
96
|
+
import React7, { lazy, memo, useMemo, useRef, useEffect, useCallback, useState, forwardRef, useLayoutEffect, useImperativeHandle, createContext, useContext, Suspense, useSyncExternalStore, Fragment as Fragment$1, useId } from 'react';
|
|
97
|
+
import { hasMessageBody, notify, linkMentions, useNotify, sharedSearchSession, takePendingSearch, useOpenDocumentId, useRegisterOpenDocument } from '@arbidocs/react/shell';
|
|
98
|
+
import { SquarePen, BookOpen, MessagesSquare, Pencil, Download, Mail, FolderInput, Trash2, Eye, Sparkles, Play, ArrowDownToLine, RefreshCw, Zap, AlertTriangle, FileX, SkipForward, Loader2, Clock, CheckCircle, ArrowUpRight, Send, Settings, Edit3, Copy, Link, Share2, Check, Milestone, RotateCcw, FileText, Network, ChevronRight, Bell, Activity, Info, UserCheck, Upload, Link2, Search, Plus, ArrowLeft, ExternalLink as ExternalLink$1, Tags, CheckCircle2, Monitor, UserCircle, KeyRound, Radio, LogOut, Wifi, User, HatGlasses, MessageSquare, PlugZap, SquareStack, Table, Lock, Cake, X, UserRound, Star, Tag, Video, Printer, CalendarDays, MapPin, Globe, Calendar, Hash, File as File$1, HardDrive, FileType, FolderOpen, Fingerprint, Users, Paperclip, CircleCheck, TriangleAlert, LoaderCircle, NotebookPen, Columns3, EyeOff, ArrowUp, ArrowDown, ZoomOut, Camera, FilePlus2, UserMinus, UserPlus, UsersRound, Code2, Infinity, ChevronDown, MoreHorizontal, Wrench, RotateCw, Square, BadgeCheck, Shield, ArrowUpCircle, Building2, Contact, Scale, BookA, Quote, Inbox, CalendarX, CalendarCheck, Phone, Pause, Minimize2, Maximize2, Minus, CalendarSearch, DoorOpen, AlertCircle } from 'lucide-react';
|
|
97
99
|
import { SIGNED_LOCKED_REASON, isSignedVersion, currentHasMarkup, fetchMarkupPdf, downloadBlob, useIsOnline, useOptionalDocumentTools, fetchDocumentPdf, DocumentToolsProvider } from '@arbidocs/react/document-tools';
|
|
98
100
|
import { artifactKindFromFileName, viewerTabForArtifactMode, useStreamedArtifact } from '@arbidocs/react/artifacts';
|
|
99
101
|
import { useDraggable, useDroppable, useSensors, useSensor, MouseSensor, TouchSensor, pointerWithin, rectIntersection, DndContext, DragOverlay } from '@dnd-kit/core';
|
|
@@ -2483,7 +2485,7 @@ function ConnectedWorkflowRunner({
|
|
|
2483
2485
|
onClick: () => onOpenConversation(conversationId),
|
|
2484
2486
|
"data-testid": `${testIdPrefix}-open-thread`,
|
|
2485
2487
|
children: [
|
|
2486
|
-
/* @__PURE__ */ jsx(ExternalLink, { className: "size-4" }),
|
|
2488
|
+
/* @__PURE__ */ jsx(ExternalLink$1, { className: "size-4" }),
|
|
2487
2489
|
" ",
|
|
2488
2490
|
l.openThread
|
|
2489
2491
|
]
|
|
@@ -8234,7 +8236,7 @@ function ConnectedAppsSettings({
|
|
|
8234
8236
|
onClick: () => void handleSlackConnect(),
|
|
8235
8237
|
disabled: !slackConnection?.configured || !slackAgentId || slackLoading || slackAuthorizing,
|
|
8236
8238
|
children: [
|
|
8237
|
-
slackAuthorizing ? /* @__PURE__ */ jsx(Loader2, { className: "mr-1.5 h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ jsx(ExternalLink, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
8239
|
+
slackAuthorizing ? /* @__PURE__ */ jsx(Loader2, { className: "mr-1.5 h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ jsx(ExternalLink$1, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
8238
8240
|
slackAuthorizing ? "Starting Slack authorization\u2026" : "Connect to Slack"
|
|
8239
8241
|
]
|
|
8240
8242
|
}
|
|
@@ -11663,7 +11665,7 @@ function ProjectPlanCard({
|
|
|
11663
11665
|
className: "inline-flex items-center gap-1 font-medium text-foreground underline underline-offset-2",
|
|
11664
11666
|
children: [
|
|
11665
11667
|
"Confirm ",
|
|
11666
|
-
/* @__PURE__ */ jsx(ExternalLink, { className: "size-3" })
|
|
11668
|
+
/* @__PURE__ */ jsx(ExternalLink$1, { className: "size-3" })
|
|
11667
11669
|
]
|
|
11668
11670
|
}
|
|
11669
11671
|
)
|
|
@@ -11679,7 +11681,7 @@ function ProjectPlanCard({
|
|
|
11679
11681
|
children: [
|
|
11680
11682
|
billingPortal.isPending ? "Opening\u2026" : "Update card",
|
|
11681
11683
|
" ",
|
|
11682
|
-
/* @__PURE__ */ jsx(ExternalLink, { className: "size-3" })
|
|
11684
|
+
/* @__PURE__ */ jsx(ExternalLink$1, { className: "size-3" })
|
|
11683
11685
|
]
|
|
11684
11686
|
}
|
|
11685
11687
|
)
|
|
@@ -12598,7 +12600,7 @@ function useConnectedWorkspaceList({
|
|
|
12598
12600
|
};
|
|
12599
12601
|
}
|
|
12600
12602
|
var WorkspaceTableView = lazy(
|
|
12601
|
-
() => import('../WorkspaceTableView-
|
|
12603
|
+
() => import('../WorkspaceTableView-3TIMUU2J.js').then((m) => ({ default: m.WorkspaceTableView }))
|
|
12602
12604
|
);
|
|
12603
12605
|
var WORKSPACES_TAB_ID = "workspaces";
|
|
12604
12606
|
var defaultRenderMember2 = (user, size) => {
|
|
@@ -12837,7 +12839,7 @@ function ConnectedProjectsPanel({
|
|
|
12837
12839
|
className: "flex items-center gap-1",
|
|
12838
12840
|
children: [
|
|
12839
12841
|
billingPortal.isPending ? "Opening\u2026" : "Billing portal",
|
|
12840
|
-
!billingPortal.isPending && /* @__PURE__ */ jsx(ExternalLink, { className: "h-3.5 w-3.5" })
|
|
12842
|
+
!billingPortal.isPending && /* @__PURE__ */ jsx(ExternalLink$1, { className: "h-3.5 w-3.5" })
|
|
12841
12843
|
]
|
|
12842
12844
|
}
|
|
12843
12845
|
) }),
|
|
@@ -16875,7 +16877,7 @@ function BookingPagesPanel({ defaultTimeZone, className }) {
|
|
|
16875
16877
|
children: "Copy link"
|
|
16876
16878
|
}
|
|
16877
16879
|
),
|
|
16878
|
-
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "ghost", asChild: true, "aria-label": `Open ${p.title}`, children: /* @__PURE__ */ jsx("a", { href: bookingLink(p), target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ jsx(ExternalLink, { className: "size-4" }) }) }),
|
|
16880
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "ghost", asChild: true, "aria-label": `Open ${p.title}`, children: /* @__PURE__ */ jsx("a", { href: bookingLink(p), target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ jsx(ExternalLink$1, { className: "size-4" }) }) }),
|
|
16879
16881
|
/* @__PURE__ */ jsx(
|
|
16880
16882
|
Button,
|
|
16881
16883
|
{
|
|
@@ -28034,7 +28036,11 @@ function ConnectedThreadTabs({
|
|
|
28034
28036
|
const { activeTab, isInChat, setActiveTab } = useThreadTabs();
|
|
28035
28037
|
const { conversations } = useConversationItems();
|
|
28036
28038
|
const openThread = useCallback(
|
|
28037
|
-
(conversationId) =>
|
|
28039
|
+
(conversationId) => {
|
|
28040
|
+
const open = session.getState().threadTabs.some((t) => t.conversationId === conversationId);
|
|
28041
|
+
if (open) session.selectThreadTab(conversationId);
|
|
28042
|
+
else session.openThreadTab(conversationId);
|
|
28043
|
+
},
|
|
28038
28044
|
[session]
|
|
28039
28045
|
);
|
|
28040
28046
|
const filteredCount = historyCount ?? conversations.length;
|
|
@@ -29869,256 +29875,7 @@ function MessageLiveSecondsComponent({
|
|
|
29869
29875
|
suffix
|
|
29870
29876
|
] });
|
|
29871
29877
|
}
|
|
29872
|
-
var MessageLiveSeconds =
|
|
29873
|
-
|
|
29874
|
-
// src/chat/mermaid-normalize.ts
|
|
29875
|
-
function normalizeMermaidGraph(source) {
|
|
29876
|
-
if (/\n/.test(source)) return source;
|
|
29877
|
-
const headerMatch = source.match(/^\s*(graph|flowchart)\s+\w+\s+/);
|
|
29878
|
-
if (!headerMatch) return source;
|
|
29879
|
-
const header = headerMatch[0].trimEnd();
|
|
29880
|
-
let body = source.slice(headerMatch[0].length);
|
|
29881
|
-
body = body.replace(/\s+(style|classDef|class|linkStyle|click|subgraph)\s/g, "\n$1 ");
|
|
29882
|
-
body = body.replace(/\s+end\b\s*/g, "\nend\n");
|
|
29883
|
-
body = body.replace(/\]\s+(?=[A-Za-z_][\w-]*\s*(?:\[|-->))/g, "]\n");
|
|
29884
|
-
body = body.replace(/\n{2,}/g, "\n");
|
|
29885
|
-
return `${header}
|
|
29886
|
-
${body.trimStart()}`;
|
|
29887
|
-
}
|
|
29888
|
-
var mermaidInstance = null;
|
|
29889
|
-
var mermaidLoadPromise = null;
|
|
29890
|
-
async function getMermaid() {
|
|
29891
|
-
if (mermaidInstance) return mermaidInstance;
|
|
29892
|
-
if (!mermaidLoadPromise) {
|
|
29893
|
-
mermaidLoadPromise = import('mermaid').then((mod) => {
|
|
29894
|
-
const m = mod.default;
|
|
29895
|
-
m.initialize({
|
|
29896
|
-
startOnLoad: false,
|
|
29897
|
-
theme: "default",
|
|
29898
|
-
securityLevel: "strict",
|
|
29899
|
-
flowchart: { useMaxWidth: true, curve: "basis" }
|
|
29900
|
-
});
|
|
29901
|
-
mermaidInstance = m;
|
|
29902
|
-
return m;
|
|
29903
|
-
});
|
|
29904
|
-
}
|
|
29905
|
-
return mermaidLoadPromise;
|
|
29906
|
-
}
|
|
29907
|
-
function MermaidDiagram({ chart }) {
|
|
29908
|
-
const [svg, setSvg] = useState(null);
|
|
29909
|
-
const [error, setError] = useState(null);
|
|
29910
|
-
const uniqueId = useId().replace(/:/g, "-");
|
|
29911
|
-
useEffect(() => {
|
|
29912
|
-
let cancelled = false;
|
|
29913
|
-
async function render() {
|
|
29914
|
-
const mermaid = await getMermaid();
|
|
29915
|
-
const diagramId = `mermaid${uniqueId}`;
|
|
29916
|
-
let validSource = null;
|
|
29917
|
-
let firstErr;
|
|
29918
|
-
try {
|
|
29919
|
-
await mermaid.parse(chart);
|
|
29920
|
-
validSource = chart;
|
|
29921
|
-
} catch (err) {
|
|
29922
|
-
firstErr = err;
|
|
29923
|
-
const normalized = normalizeMermaidGraph(chart);
|
|
29924
|
-
if (normalized !== chart) {
|
|
29925
|
-
try {
|
|
29926
|
-
await mermaid.parse(normalized);
|
|
29927
|
-
validSource = normalized;
|
|
29928
|
-
} catch (retryErr) {
|
|
29929
|
-
console.warn("Mermaid normalized parse also failed", retryErr);
|
|
29930
|
-
}
|
|
29931
|
-
}
|
|
29932
|
-
}
|
|
29933
|
-
if (cancelled) return;
|
|
29934
|
-
if (!validSource) {
|
|
29935
|
-
console.warn("Mermaid parse failed, showing source", firstErr);
|
|
29936
|
-
setError("Failed to render diagram");
|
|
29937
|
-
setSvg(null);
|
|
29938
|
-
return;
|
|
29939
|
-
}
|
|
29940
|
-
try {
|
|
29941
|
-
const { svg: renderedSvg } = await mermaid.render(diagramId, validSource);
|
|
29942
|
-
if (!cancelled) {
|
|
29943
|
-
setSvg(renderedSvg);
|
|
29944
|
-
setError(null);
|
|
29945
|
-
}
|
|
29946
|
-
} catch (renderErr) {
|
|
29947
|
-
if (!cancelled) {
|
|
29948
|
-
console.warn("Mermaid render failed despite parse success", renderErr);
|
|
29949
|
-
setError("Failed to render diagram");
|
|
29950
|
-
setSvg(null);
|
|
29951
|
-
}
|
|
29952
|
-
}
|
|
29953
|
-
}
|
|
29954
|
-
render();
|
|
29955
|
-
return () => {
|
|
29956
|
-
cancelled = true;
|
|
29957
|
-
};
|
|
29958
|
-
}, [chart, uniqueId]);
|
|
29959
|
-
if (error) {
|
|
29960
|
-
return /* @__PURE__ */ jsxs("div", { className: "code-block", "data-testid": "mermaid-error", children: [
|
|
29961
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground mb-1", children: error }),
|
|
29962
|
-
/* @__PURE__ */ jsx("code", { className: "language-mermaid", children: chart })
|
|
29963
|
-
] });
|
|
29964
|
-
}
|
|
29965
|
-
if (!svg) {
|
|
29966
|
-
return /* @__PURE__ */ jsx(
|
|
29967
|
-
"div",
|
|
29968
|
-
{
|
|
29969
|
-
className: "flex items-center justify-center py-8 text-muted-foreground text-sm",
|
|
29970
|
-
"data-testid": "mermaid-loading",
|
|
29971
|
-
children: "Rendering diagram..."
|
|
29972
|
-
}
|
|
29973
|
-
);
|
|
29974
|
-
}
|
|
29975
|
-
return /* @__PURE__ */ jsx(
|
|
29976
|
-
"div",
|
|
29977
|
-
{
|
|
29978
|
-
className: "mermaid-diagram my-4 overflow-x-auto rounded-md border border-border bg-background p-4",
|
|
29979
|
-
"data-testid": "mermaid-diagram",
|
|
29980
|
-
dangerouslySetInnerHTML: { __html: svg }
|
|
29981
|
-
}
|
|
29982
|
-
);
|
|
29983
|
-
}
|
|
29984
|
-
var DocumentWorkspaceContext = createContext(null);
|
|
29985
|
-
var useDocumentWorkspace = () => useContext(DocumentWorkspaceContext);
|
|
29986
|
-
function WorkspaceDocumentReference({
|
|
29987
|
-
workspaceId,
|
|
29988
|
-
docId,
|
|
29989
|
-
children,
|
|
29990
|
-
className = "inline-flex rounded-full border px-2 py-0.5 text-xs hover:bg-muted"
|
|
29991
|
-
}) {
|
|
29992
|
-
const { openDocument } = useBlocksEnvironment();
|
|
29993
|
-
return /* @__PURE__ */ jsx(
|
|
29994
|
-
"button",
|
|
29995
|
-
{
|
|
29996
|
-
type: "button",
|
|
29997
|
-
className,
|
|
29998
|
-
onClick: () => openDocument(docId, { workspaceId }),
|
|
29999
|
-
children: children ?? docId
|
|
30000
|
-
}
|
|
30001
|
-
);
|
|
30002
|
-
}
|
|
30003
|
-
function childrenText(children) {
|
|
30004
|
-
return React8.Children.toArray(children).map((child) => typeof child === "string" || typeof child === "number" ? String(child) : "").join("");
|
|
30005
|
-
}
|
|
30006
|
-
function MentionLink({ kind, id, text: text2 }) {
|
|
30007
|
-
const currentUserId = useArbiSession().user?.external_id;
|
|
30008
|
-
return /* @__PURE__ */ jsx(
|
|
30009
|
-
MentionChip,
|
|
30010
|
-
{
|
|
30011
|
-
kind,
|
|
30012
|
-
id,
|
|
30013
|
-
label: text2.replace(/^@/, ""),
|
|
30014
|
-
isSelf: kind === "user" && id === currentUserId
|
|
30015
|
-
}
|
|
30016
|
-
);
|
|
30017
|
-
}
|
|
30018
|
-
function ExternalLink6({ href, children }) {
|
|
30019
|
-
return /* @__PURE__ */ jsx(QuietLink, { href, kind: "external", children });
|
|
30020
|
-
}
|
|
30021
|
-
function InternalDocLink({
|
|
30022
|
-
docId,
|
|
30023
|
-
href,
|
|
30024
|
-
children
|
|
30025
|
-
}) {
|
|
30026
|
-
const { openDocument } = useBlocksEnvironment();
|
|
30027
|
-
const workspaceId = useDocumentWorkspace();
|
|
30028
|
-
if (workspaceId) {
|
|
30029
|
-
return /* @__PURE__ */ jsx(WorkspaceDocumentReference, { workspaceId, docId, children });
|
|
30030
|
-
}
|
|
30031
|
-
return /* @__PURE__ */ jsx(QuietLink, { href, kind: "document", onOpen: () => openDocument(docId), children });
|
|
30032
|
-
}
|
|
30033
|
-
function DocumentChip({ docId }) {
|
|
30034
|
-
const render = useArbiHost().chat?.renderDocumentChip;
|
|
30035
|
-
const workspaceId = useDocumentWorkspace();
|
|
30036
|
-
if (workspaceId) return /* @__PURE__ */ jsx(WorkspaceDocumentReference, { workspaceId, docId });
|
|
30037
|
-
return render ? /* @__PURE__ */ jsx(Fragment, { children: render(docId) }) : /* @__PURE__ */ jsx(DefaultDocumentChip3, { docId });
|
|
30038
|
-
}
|
|
30039
|
-
function DefaultDocumentChip3({ docId }) {
|
|
30040
|
-
const { data: doc } = useDocument(docId);
|
|
30041
|
-
const { openDocument } = useBlocksEnvironment();
|
|
30042
|
-
if (!doc)
|
|
30043
|
-
return /* @__PURE__ */ jsx(
|
|
30044
|
-
EntityPill,
|
|
30045
|
-
{
|
|
30046
|
-
icon: /* @__PURE__ */ jsx(FileText, { className: "w-3.5 h-3.5 flex-shrink-0" }),
|
|
30047
|
-
label: docId,
|
|
30048
|
-
size: "sm",
|
|
30049
|
-
onClick: () => openDocument(docId),
|
|
30050
|
-
"data-testid": "doc-entity-pill"
|
|
30051
|
-
}
|
|
30052
|
-
);
|
|
30053
|
-
return /* @__PURE__ */ jsx(DocumentEntity, { doc, onClick: () => openDocument(docId), "data-testid": "doc-entity-pill" });
|
|
30054
|
-
}
|
|
30055
|
-
function MailChip({ mailId }) {
|
|
30056
|
-
const render = useArbiHost().chat?.renderMailChip;
|
|
30057
|
-
if (render) return /* @__PURE__ */ jsx(Fragment, { children: render(mailId) });
|
|
30058
|
-
return /* @__PURE__ */ jsx(
|
|
30059
|
-
EntityPill,
|
|
30060
|
-
{
|
|
30061
|
-
icon: /* @__PURE__ */ jsx(Mail, { className: "w-3.5 h-3.5 flex-shrink-0" }),
|
|
30062
|
-
label: "Email",
|
|
30063
|
-
size: "sm",
|
|
30064
|
-
"data-testid": "mail-entity-pill"
|
|
30065
|
-
}
|
|
30066
|
-
);
|
|
30067
|
-
}
|
|
30068
|
-
var conversationMarkdownComponents = {
|
|
30069
|
-
a: function ConversationMarkdownLink({
|
|
30070
|
-
href,
|
|
30071
|
-
children,
|
|
30072
|
-
...props
|
|
30073
|
-
}) {
|
|
30074
|
-
const deploymentDomain = useBlocksEnvironment().runtimeConfig.deploymentDomain;
|
|
30075
|
-
const mention = mentionFromHref(href);
|
|
30076
|
-
if (mention) {
|
|
30077
|
-
return /* @__PURE__ */ jsx(MentionLink, { kind: mention.kind, id: mention.id, text: childrenText(children) });
|
|
30078
|
-
}
|
|
30079
|
-
if (href?.startsWith("#") && !href.startsWith("#cite-")) {
|
|
30080
|
-
return /* @__PURE__ */ jsx(QuietLink, { href, kind: "anchor", children });
|
|
30081
|
-
}
|
|
30082
|
-
if (!href || href.startsWith("#") || href.startsWith("cite:")) {
|
|
30083
|
-
return /* @__PURE__ */ jsx(MarkdownLink, { href, ...props, children });
|
|
30084
|
-
}
|
|
30085
|
-
const docId = workspaceDocIdFromHref(href, deploymentDomain);
|
|
30086
|
-
if (docId) {
|
|
30087
|
-
return /* @__PURE__ */ jsx(InternalDocLink, { docId, href, ...props, children });
|
|
30088
|
-
}
|
|
30089
|
-
return /* @__PURE__ */ jsx(ExternalLink6, { href, ...props, children });
|
|
30090
|
-
},
|
|
30091
|
-
code: function ConversationMarkdownCode(props) {
|
|
30092
|
-
const isStreaming = useContext(MarkdownStreamingContext);
|
|
30093
|
-
const { className, children } = props;
|
|
30094
|
-
const language = /language-(\w+)/.exec(className || "")?.[1];
|
|
30095
|
-
if (!language) {
|
|
30096
|
-
const codeText = typeof children === "string" ? children.trim() : "";
|
|
30097
|
-
if (/^doc-[a-zA-Z0-9]+$/.test(codeText)) return /* @__PURE__ */ jsx(DocumentChip, { docId: codeText });
|
|
30098
|
-
if (/^eml-[a-zA-Z0-9]+$/.test(codeText)) return /* @__PURE__ */ jsx(MailChip, { mailId: codeText });
|
|
30099
|
-
}
|
|
30100
|
-
if (language === "mermaid" && !isStreaming) {
|
|
30101
|
-
return /* @__PURE__ */ jsx(MermaidDiagram, { chart: String(children).replace(/\n$/, "") });
|
|
30102
|
-
}
|
|
30103
|
-
return /* @__PURE__ */ jsx(MarkdownCode, { ...props });
|
|
30104
|
-
},
|
|
30105
|
-
span: ({ children, className, ...props }) => {
|
|
30106
|
-
const docId = props["data-doc-id"];
|
|
30107
|
-
if (docId) return /* @__PURE__ */ jsx(DocumentChip, { docId });
|
|
30108
|
-
const mailId = props["data-mail-id"];
|
|
30109
|
-
if (mailId) return /* @__PURE__ */ jsx(MailChip, { mailId });
|
|
30110
|
-
return /* @__PURE__ */ jsx("span", { className, ...props, children });
|
|
30111
|
-
}
|
|
30112
|
-
};
|
|
30113
|
-
var conversationRehypePlugins = [rehypeDocEntityPills];
|
|
30114
|
-
function ConnectedMarkdownComponent({ components, ...props }) {
|
|
30115
|
-
const merged = useMemo(
|
|
30116
|
-
() => components ? { ...conversationMarkdownComponents, ...components } : conversationMarkdownComponents,
|
|
30117
|
-
[components]
|
|
30118
|
-
);
|
|
30119
|
-
return /* @__PURE__ */ jsx(MarkdownRenderer, { ...props, components: merged, rehypePlugins: conversationRehypePlugins });
|
|
30120
|
-
}
|
|
30121
|
-
var ConnectedMarkdown = React8.memo(ConnectedMarkdownComponent);
|
|
29878
|
+
var MessageLiveSeconds = React7.memo(MessageLiveSecondsComponent);
|
|
30122
29879
|
var DISPLAY_FIELDS = /* @__PURE__ */ new Set(["tool", "label", "icon", "summary"]);
|
|
30123
29880
|
function getToolParams(detail) {
|
|
30124
29881
|
const params = [];
|
|
@@ -30436,7 +30193,7 @@ function subStepNoun(tool) {
|
|
|
30436
30193
|
function pluralise(noun) {
|
|
30437
30194
|
return noun.endsWith("h") ? `${noun}es` : `${noun}s`;
|
|
30438
30195
|
}
|
|
30439
|
-
var AgentSteps =
|
|
30196
|
+
var AgentSteps = React7.memo(AgentStepsComponent, (prev, next) => {
|
|
30440
30197
|
return prev.isStreaming === next.isStreaming && prev.className === next.className && prev.totalElapsedTime === next.totalElapsedTime && prev.steps === next.steps && prev.liveTimer === next.liveTimer && prev.hideLive === next.hideLive;
|
|
30441
30198
|
});
|
|
30442
30199
|
function RunStatsBadges({ steps, className }) {
|
|
@@ -30872,7 +30629,7 @@ function LinkInAnswer({ href, children, ...props }) {
|
|
|
30872
30629
|
if (docId) {
|
|
30873
30630
|
return /* @__PURE__ */ jsx(InternalDocLink, { docId, href, ...props, children });
|
|
30874
30631
|
}
|
|
30875
|
-
return /* @__PURE__ */ jsx(
|
|
30632
|
+
return /* @__PURE__ */ jsx(ExternalLink, { href, ...props, children });
|
|
30876
30633
|
}
|
|
30877
30634
|
var ConnectedCitationRendererComponent = ({
|
|
30878
30635
|
alwaysInteractive,
|
|
@@ -30914,7 +30671,7 @@ var ConnectedCitationRendererComponent = ({
|
|
|
30914
30671
|
}
|
|
30915
30672
|
);
|
|
30916
30673
|
};
|
|
30917
|
-
var ConnectedCitationRenderer =
|
|
30674
|
+
var ConnectedCitationRenderer = React7.memo(ConnectedCitationRendererComponent);
|
|
30918
30675
|
function sourceTitle(chunk, docTitles) {
|
|
30919
30676
|
const displayTitle = chunk.metadata.doc_ext_id ? docTitles.get(chunk.metadata.doc_ext_id) : void 0;
|
|
30920
30677
|
return displayTitle ?? chunk.metadata.doc_title ?? chunk.metadata.doc_ext_id ?? "Source";
|
|
@@ -31673,10 +31430,10 @@ var MessageComponent = ({
|
|
|
31673
31430
|
const fullUrl = domain ? `https://${domain}${path}` : `${window.location.origin}${path}`;
|
|
31674
31431
|
navigator.clipboard.writeText(fullUrl).then(
|
|
31675
31432
|
() => notify17(
|
|
31676
|
-
|
|
31433
|
+
React7.createElement(
|
|
31677
31434
|
"span",
|
|
31678
31435
|
{},
|
|
31679
|
-
|
|
31436
|
+
React7.createElement(
|
|
31680
31437
|
"a",
|
|
31681
31438
|
{
|
|
31682
31439
|
href: fullUrl,
|
|
@@ -32205,7 +31962,7 @@ function areMessagesEqual(prevProps, nextProps) {
|
|
|
32205
31962
|
if (prevProps.subagentLinks !== nextProps.subagentLinks) return false;
|
|
32206
31963
|
return true;
|
|
32207
31964
|
}
|
|
32208
|
-
var ConnectedMessage =
|
|
31965
|
+
var ConnectedMessage = React7.memo(MessageComponent, areMessagesEqual);
|
|
32209
31966
|
var VERSION_LABELS = {
|
|
32210
31967
|
branchOf: (current, total) => `Version ${current} of ${total}`,
|
|
32211
31968
|
previousBranch: "Previous version",
|
|
@@ -35638,6 +35395,6 @@ function ConnectedRecoveryKeyDialog({
|
|
|
35638
35395
|
);
|
|
35639
35396
|
}
|
|
35640
35397
|
|
|
35641
|
-
export { AddAddonDialog, AddFromAccountsButton, AgentBarShell, AgentControlBar, AgentSteps, AnswerTable, AskAgainContext, BACKFILL_OPTIONS, BULK_REPROCESS_LIMIT, BillingProjectEntity, ChangePlanDialog, ChatAttachmentList, ConnectedAccountSettings, ConnectedAddContacts, ConnectedAgentChat, ConnectedAgentChatPanel, ConnectedAgentConfigForm, ConnectedAgentCreator, ConnectedAiReview, ConnectedAppsSettings, ConnectedAuthorizeAgent, ConnectedBranchControls, ConnectedBulkTagEditor, ConnectedCalendar, ConnectedChatThread, ConnectedCitationRenderer, ConnectedCompactConversation, ConnectedConfigForm, ConnectedContactCardForm, ConnectedContactToggle, ConnectedContactsDirectory, ConnectedConversation, ConnectedConversationDocumentPicker, ConnectedConversationEmpty, ConnectedConversationStart, ConnectedDangerZone, ConnectedDeveloperConfig, ConnectedDriveSyncDialog, ConnectedExportDialog, ConnectedExportPanel, ConnectedFactsPage, ConnectedFieldsEditor, ConnectedFieldsManager, ConnectedFilesBulkActions, ConnectedFilesExplorer, ConnectedFilesPage, ConnectedForgotPassword, ConnectedGrantWorkspaceAccessDialog, ConnectedGroupMembers, ConnectedIdentityVerification, ConnectedLoginPage, ConnectedLogoutDialog, ConnectedMailAccounts, ConnectedMailComposer, ConnectedMailInviteCard, ConnectedMailMessage, ConnectedMailSettings, ConnectedMailSetup, ConnectedMailbox, ConnectedMailboxSyncDialog,
|
|
35398
|
+
export { AddAddonDialog, AddFromAccountsButton, AgentBarShell, AgentControlBar, AgentSteps, AnswerTable, AskAgainContext, BACKFILL_OPTIONS, BULK_REPROCESS_LIMIT, BillingProjectEntity, ChangePlanDialog, ChatAttachmentList, ConnectedAccountSettings, ConnectedAddContacts, ConnectedAgentChat, ConnectedAgentChatPanel, ConnectedAgentConfigForm, ConnectedAgentCreator, ConnectedAiReview, ConnectedAppsSettings, ConnectedAuthorizeAgent, ConnectedBranchControls, ConnectedBulkTagEditor, ConnectedCalendar, ConnectedChatThread, ConnectedCitationRenderer, ConnectedCompactConversation, ConnectedConfigForm, ConnectedContactCardForm, ConnectedContactToggle, ConnectedContactsDirectory, ConnectedConversation, ConnectedConversationDocumentPicker, ConnectedConversationEmpty, ConnectedConversationStart, ConnectedDangerZone, ConnectedDeveloperConfig, ConnectedDriveSyncDialog, ConnectedExportDialog, ConnectedExportPanel, ConnectedFactsPage, ConnectedFieldsEditor, ConnectedFieldsManager, ConnectedFilesBulkActions, ConnectedFilesExplorer, ConnectedFilesPage, ConnectedForgotPassword, ConnectedGrantWorkspaceAccessDialog, ConnectedGroupMembers, ConnectedIdentityVerification, ConnectedLoginPage, ConnectedLogoutDialog, ConnectedMailAccounts, ConnectedMailComposer, ConnectedMailInviteCard, ConnectedMailMessage, ConnectedMailSettings, ConnectedMailSetup, ConnectedMailbox, ConnectedMailboxSyncDialog, ConnectedMessage, ConnectedMessageArea, ConnectedMessageList, ConnectedMessenger, ConnectedModelSelector, ConnectedMoveToFolder, ConnectedNewThreadDialog, ConnectedNotificationCenter, ConnectedNotificationPreferences, ConnectedPasswordChangeDialog, ConnectedPremiumModels, ConnectedPrivacySettings, ConnectedProfileCard, ConnectedProjectsPanel, ConnectedPublicBooking, ConnectedRecoveryKeyDialog, ConnectedRequestWorkspaceAccess, ConnectedRequireVerified, ConnectedSearchPage, ConnectedSecuritySection, ConnectedSessionsRow, ConnectedSettingsPage, ConnectedSkillUpload, ConnectedSkillsLibrary, ConnectedSsoCallback, ConnectedTagEditorDialog, ConnectedTagEntity, ConnectedTagForm, ConnectedTagTable, ConnectedTagsPage, ConnectedTaskAccessRequest, ConnectedTaskActivityDialog, ConnectedTaskComposer, ConnectedTaskStartDialog, ConnectedThreadFollow, ConnectedThreadLauncher, ConnectedThreadTabs, ConnectedThreadTaskBar, ConnectedThreadsPreview, ConnectedTransferWatcher, ConnectedUpcomingEvents, ConnectedUpload, ConnectedUploadDropzone, ConnectedWorkflowHistory, ConnectedWorkflowRunner, ConnectedWorkflowStart, ConnectedWorkspaceActivity, ConnectedWorkspaceDashboard, ConnectedWorkspaceList, ConnectedWorkspaceMembers, ConnectedWorkspaceNotificationMenu, ConnectedWorkspaceSettings, ConversationAlert, ConversationComposer2 as ConversationComposer, ConversationEntity, ConversationSendButton, ConversationStatusCell, DEFAULT_CONNECTED_SEARCH_PAGE_LABELS, DEFAULT_CONNECTED_SKILL_UPLOAD_LABELS, DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS, DEFAULT_SEARCH_FIELDS, DEFAULT_SEARCH_ROW_LABELS, DEFAULT_SETTINGS_SECTIONS, DEFAULT_TIMELINE_LABEL_WIDTH, DEFAULT_WORKSPACE_LIST_LABELS, DeveloperFooter, DocumentFolderCell, DocumentLabelsCell, DocumentNameCell, DocumentSharedCell, DocumentStatusGlyph, DocumentSyncGlyph, DocumentUser, DocumentsFilterBarActions, DocumentsUploadButton, EmptyWorkspaceUpload, FACTS_GRID_ID, FILES_PREFS_KEY, FileTooltipContent, ImportVcfButton, ImportVcfSummary, InvoicesModal, LOOK_AGAIN_LABEL, MessageDetailsModal, MessageLiveSeconds, MicButton, NewProjectFlow, NotificationCenter, NotificationEvent, PENDING_LOOKUP_MS, PENDING_RECOVERY_KEY, PENDING_TASK_MESSAGE, PREMIUM_TIER_TAG, PROJECTS_BASE_TAB_ID, PROMPT_BINDINGS, PersistedGridView, ProgressiveLoadingChip, ProjectDetail, ProjectsTable, REFERRAL_OFFER, RecoveryKeyDownload, RelatedDocumentsCell, RunStatsBadges, RunningSubagents, SEARCH_FIELD_OPTIONS, SETTINGS_SECTION_IDS, STANDARD_TIER_TAG, SessionStatusIcon, SharedProjects, SourceChips, SsoResendVerificationButton, StatusCell, StreamedArtifact, TILE_DEFAULT, TILE_MAX, TILE_MIN, ThreadSwitcher, UserAvatar, ViewSelector, WORKSPACES_TAB_ID, WorkflowLaunchHost, WorkflowRunStatusCell, WorkflowRunThread, WorkflowStepMessage, accountSettingsSection, backUpOnSignup, bookingCancelLink, buildNotificationCenterItems, chatSettingsSection, connectedAppsSettingsSection, countNotificationTypes, createDocumentColumns, createEventCall, createTagColumn, deduplicateByContentHash, defaultHost, describePlan, distinctPeers, documentFamilyMeta, documentFieldContent, filesViewMode, filterNotificationCenterItems, formatLastSync, groupFallbackName, isActiveDocumentStatus, joinEventMeeting, loadEventWebinar, mailSettingsSection, openMeetingLink, parseArbiCallUrl, parseQuotaError, parseTypedSkill, privacySettingsSection, renderSessionStatusIcon, requestProjectBillingFocus, resolveAttendeeUsers, resolveAttendeeUsersRemote, resolveCallPeers, resolveCallPeersRemote, resolveLaunchInputs, resolveMailbox, resolveSsoName, reviewProgress, shareEventCall, startMenuItem, suppliedKinds, threadStateOf, toWorkspaceSummary, transferOutcome, updateEventWebinarRoles, useAddFromUrls, useAiReviewStore, useAuthPages, useAutoRefreshPendingProjects, useConnectedCalendarCalls, useConnectedDocxNotifications, useConnectedShellWorkspaces, useConnectedThreadActivity, useConnectedWorkNotifications, useConnectedWorkspaceList, useConnectedWorkspaceSettings, useDocumentBulkActions, useDocumentFilters, useDocumentFolders, useDocumentGridSync, useDocumentNavigation, useDocumentTable, useExportStore, useFilesDialogs, useFilesGridStates, useFilesPrefs, useFilesStore, useLaunchWorkflow, useMemberLookup, useMessengerRows, useModelPicker, useOpenBillingPortal, useOpenChunk, useOpenWorkspaceIcon, usePendingFolders, usePendingTaskThread, useProjectBillingFocus, useReferralReward, useRenderTaskPerson, useResolvedDocStatus, useSkillsEnabled, useSlashItems, useSlashSkillWorkflows, useSsoSignIn, useTableViews, useTaskPeople, useTaskStart, useThreadLabels, useThreadTabs, useWorkflowDefinitions, useWorkflowLaunch, useWorkflowTasks, useWorkspaceDocTitles, viewsOfTable, webinarRolesByUser, windowLabel, withMissingTableViews, withTableView, withoutTableView, workflowRunView };
|
|
35642
35399
|
//# sourceMappingURL=index.js.map
|
|
35643
35400
|
//# sourceMappingURL=index.js.map
|