@arbidocs/blocks 0.5.146 → 0.5.148
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-JVLJEWLJ.cjs → ConnectedCallDock-6VGATAAQ.cjs} +5 -5
- package/dist/{ConnectedCallDock-JVLJEWLJ.cjs.map → ConnectedCallDock-6VGATAAQ.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-7YQRDIS3.cjs → ConnectedCallRoom-YBNERVTW.cjs} +5 -5
- package/dist/{ConnectedCallRoom-7YQRDIS3.cjs.map → ConnectedCallRoom-YBNERVTW.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-JJXQBIV2.cjs → ConnectedPresentation-JZQFTC5H.cjs} +4 -4
- package/dist/{ConnectedPresentation-JJXQBIV2.cjs.map → ConnectedPresentation-JZQFTC5H.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-ENCPTGJE.cjs → DocumentReviewCard-UDC4PNIS.cjs} +15 -14
- package/dist/DocumentReviewCard-UDC4PNIS.cjs.map +1 -0
- package/dist/{FilesViewerDialog-FFPW7TIK.cjs → FilesViewerDialog-D5GHWK4Y.cjs} +12 -11
- package/dist/FilesViewerDialog-D5GHWK4Y.cjs.map +1 -0
- package/dist/{WorkspaceTableView-2RH33X3U.cjs → WorkspaceTableView-2NRV4CWP.cjs} +7 -6
- package/dist/WorkspaceTableView-2NRV4CWP.cjs.map +1 -0
- package/dist/agents/index.cjs +176 -175
- package/dist/agents/tasks/TaskRowMenu.d.ts +1 -2
- package/dist/agents/tasks/TaskRowMenu.js +0 -2
- package/dist/agents/tasks/TaskRowMenu.js.map +2 -2
- package/dist/agents/tasks/TaskTable.d.ts +5 -2
- package/dist/agents/tasks/TaskTable.js +11 -8
- package/dist/agents/tasks/TaskTable.js.map +2 -2
- package/dist/agents/tasks/taskTableLabels.js +1 -1
- package/dist/agents/tasks/taskTableLabels.js.map +1 -1
- package/dist/{ai-YX3OAC4F.cjs → ai-VLIPYNWP.cjs} +13 -13
- package/dist/ai-VLIPYNWP.cjs.map +1 -0
- package/dist/calls/index.cjs +2 -2
- package/dist/chat/ChatThreads.js +1 -1
- package/dist/chat/ChatThreads.js.map +2 -2
- package/dist/chat/chat-page-types.d.ts +2 -0
- package/dist/chat/chat-page-types.js.map +2 -2
- package/dist/chat/index.cjs +25 -25
- package/dist/{chunk-32HVYK4Q.cjs → chunk-3VPNL4EH.cjs} +14 -13
- package/dist/chunk-3VPNL4EH.cjs.map +1 -0
- package/dist/{chunk-6TU4YLFW.cjs → chunk-5TT6J67U.cjs} +3 -3
- package/dist/chunk-5TT6J67U.cjs.map +1 -0
- package/dist/{chunk-N7AUJTU4.cjs → chunk-7AULM6LS.cjs} +5 -5
- package/dist/{chunk-N7AUJTU4.cjs.map → chunk-7AULM6LS.cjs.map} +1 -1
- package/dist/{chunk-MBXXWTKT.cjs → chunk-AYWY4MX2.cjs} +28 -28
- package/dist/{chunk-MBXXWTKT.cjs.map → chunk-AYWY4MX2.cjs.map} +1 -1
- package/dist/{chunk-P2AZ2HX7.cjs → chunk-AZQ4XIVY.cjs} +26 -26
- package/dist/{chunk-P2AZ2HX7.cjs.map → chunk-AZQ4XIVY.cjs.map} +1 -1
- package/dist/{chunk-VZKTOGZR.cjs → chunk-BLRPBEUG.cjs} +2 -2
- package/dist/{chunk-VZKTOGZR.cjs.map → chunk-BLRPBEUG.cjs.map} +1 -1
- package/dist/chunk-DKY67DA6.cjs +43 -0
- package/dist/chunk-DKY67DA6.cjs.map +1 -0
- package/dist/{chunk-N3H3YAKY.cjs → chunk-DUNXLT63.cjs} +17 -12
- package/dist/chunk-DUNXLT63.cjs.map +1 -0
- package/dist/{chunk-UOI6JJPG.cjs → chunk-EF2QQBDV.cjs} +29 -134
- package/dist/chunk-EF2QQBDV.cjs.map +1 -0
- package/dist/{chunk-3Y75LUCT.cjs → chunk-FHKBR55Q.cjs} +3 -3
- package/dist/{chunk-3Y75LUCT.cjs.map → chunk-FHKBR55Q.cjs.map} +1 -1
- package/dist/{chunk-QW6NCUR7.cjs → chunk-GAA222SK.cjs} +5 -5
- package/dist/{chunk-QW6NCUR7.cjs.map → chunk-GAA222SK.cjs.map} +1 -1
- package/dist/{chunk-LVIQWRC5.cjs → chunk-KRQCUVH7.cjs} +2 -2
- package/dist/chunk-KRQCUVH7.cjs.map +1 -0
- package/dist/{chunk-6RJXO2NF.cjs → chunk-KWV4VC74.cjs} +6 -6
- package/dist/{chunk-6RJXO2NF.cjs.map → chunk-KWV4VC74.cjs.map} +1 -1
- package/dist/{chunk-UD56Y6UA.cjs → chunk-L5Q5PDTA.cjs} +4 -4
- package/dist/{chunk-UD56Y6UA.cjs.map → chunk-L5Q5PDTA.cjs.map} +1 -1
- package/dist/{chunk-XAW22O2S.cjs → chunk-LCIMYEGX.cjs} +4 -4
- package/dist/{chunk-XAW22O2S.cjs.map → chunk-LCIMYEGX.cjs.map} +1 -1
- package/dist/{chunk-BCRB42SP.cjs → chunk-LYYJDQW6.cjs} +110 -970
- package/dist/chunk-LYYJDQW6.cjs.map +1 -0
- package/dist/{chunk-OE36OY64.cjs → chunk-LZQ2XZOC.cjs} +4 -4
- package/dist/{chunk-OE36OY64.cjs.map → chunk-LZQ2XZOC.cjs.map} +1 -1
- package/dist/{chunk-BTAT3MJP.cjs → chunk-MEWRE43W.cjs} +28 -28
- package/dist/{chunk-BTAT3MJP.cjs.map → chunk-MEWRE43W.cjs.map} +1 -1
- package/dist/chunk-MWHVETKN.cjs +151 -0
- package/dist/chunk-MWHVETKN.cjs.map +1 -0
- package/dist/{chunk-33GOYI3O.cjs → chunk-ONRUHYW3.cjs} +4 -4
- package/dist/{chunk-33GOYI3O.cjs.map → chunk-ONRUHYW3.cjs.map} +1 -1
- package/dist/{chunk-KP7BQIZL.cjs → chunk-ORGGDQKZ.cjs} +43 -40
- package/dist/chunk-ORGGDQKZ.cjs.map +1 -0
- package/dist/{chunk-N2OVF6SJ.cjs → chunk-OXPIJYRU.cjs} +65 -60
- package/dist/chunk-OXPIJYRU.cjs.map +1 -0
- package/dist/{chunk-2V5HW6T5.cjs → chunk-P5TQOSKA.cjs} +6 -6
- package/dist/{chunk-2V5HW6T5.cjs.map → chunk-P5TQOSKA.cjs.map} +1 -1
- package/dist/chunk-Q25CZLK6.cjs +958 -0
- package/dist/chunk-Q25CZLK6.cjs.map +1 -0
- package/dist/{chunk-ZPIZINH2.cjs → chunk-VLHBKF4P.cjs} +164 -98
- package/dist/chunk-VLHBKF4P.cjs.map +1 -0
- package/dist/{chunk-TG2GM7WJ.cjs → chunk-WCT6FT2K.cjs} +11 -7
- package/dist/chunk-WCT6FT2K.cjs.map +1 -0
- package/dist/{chunk-NPRNR54M.cjs → chunk-ZCVW63DF.cjs} +4 -4
- package/dist/{chunk-NPRNR54M.cjs.map → chunk-ZCVW63DF.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +34 -9
- package/dist/collaboration/sharing/ShareControl.d.ts +15 -6
- package/dist/collaboration/sharing/ShareControl.js +9 -4
- package/dist/collaboration/sharing/ShareControl.js.map +2 -2
- package/dist/collaboration/sharing/index.d.ts +1 -0
- package/dist/collaboration/sharing/index.js +15 -1
- package/dist/collaboration/sharing/index.js.map +2 -2
- package/dist/collaboration/sharing/one-way.d.ts +41 -0
- package/dist/collaboration/sharing/one-way.js +39 -0
- package/dist/collaboration/sharing/one-way.js.map +7 -0
- package/dist/connect/index.cjs +4037 -3984
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +9 -8
- package/dist/connection/account-cluster/ConnectedAccountCluster.js +1 -1
- package/dist/connection/account-cluster/ConnectedAccountCluster.js.map +1 -1
- package/dist/connection/agents/agentsPageParts.js +6 -2
- package/dist/connection/agents/agentsPageParts.js.map +2 -2
- package/dist/connection/command/actions.js +3 -3
- package/dist/connection/command/actions.js.map +2 -2
- package/dist/connection/conversation/ConnectedConversationSettings.js +3 -6
- package/dist/connection/conversation/ConnectedConversationSettings.js.map +2 -2
- package/dist/connection/dashboards/PanelEditor.d.ts +3 -9
- package/dist/connection/dashboards/PanelEditor.js +17 -124
- package/dist/connection/dashboards/PanelEditor.js.map +2 -2
- package/dist/connection/dashboards/index.d.ts +0 -1
- package/dist/connection/dashboards/index.js +0 -6
- package/dist/connection/dashboards/index.js.map +2 -2
- package/dist/connection/dashboards/templates.d.ts +1 -1
- package/dist/connection/dashboards/templates.js.map +1 -1
- package/dist/connection/databases/ConnectedDatabasesPage.js +46 -20
- package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
- package/dist/connection/databases/DatabaseViewsMenu.d.ts +5 -1
- package/dist/connection/databases/DatabaseViewsMenu.js +16 -21
- package/dist/connection/databases/DatabaseViewsMenu.js.map +2 -2
- package/dist/connection/files/bulk/ConnectedFilesBulkActions.d.ts +4 -3
- package/dist/connection/files/bulk/ConnectedFilesBulkActions.js +12 -18
- package/dist/connection/files/bulk/ConnectedFilesBulkActions.js.map +2 -2
- package/dist/connection/files/bulk/useDocumentBulkActions.d.ts +2 -3
- package/dist/connection/files/bulk/useDocumentBulkActions.js +6 -15
- package/dist/connection/files/bulk/useDocumentBulkActions.js.map +2 -2
- package/dist/connection/files/grid/cells.d.ts +7 -3
- package/dist/connection/files/grid/cells.js +8 -5
- package/dist/connection/files/grid/cells.js.map +2 -2
- package/dist/connection/files/grid/documentCellRenderers.d.ts +4 -1
- package/dist/connection/files/grid/documentCellRenderers.js +3 -2
- package/dist/connection/files/grid/documentCellRenderers.js.map +2 -2
- package/dist/connection/files/grid/documentColumns.d.ts +3 -3
- package/dist/connection/files/grid/documentColumns.js +4 -2
- package/dist/connection/files/grid/documentColumns.js.map +2 -2
- package/dist/connection/files/grid/useDocumentTable.js +10 -5
- package/dist/connection/files/grid/useDocumentTable.js.map +2 -2
- package/dist/connection/files/index.d.ts +1 -2
- package/dist/connection/files/index.js +4 -12
- package/dist/connection/files/index.js.map +2 -2
- package/dist/connection/files/review/useAiReviewLiveUpdates.js +13 -2
- package/dist/connection/files/review/useAiReviewLiveUpdates.js.map +2 -2
- package/dist/connection/files/views/ViewSelector.js +9 -21
- package/dist/connection/files/views/ViewSelector.js.map +2 -2
- package/dist/connection/files/views/useTableViews.d.ts +23 -15
- package/dist/connection/files/views/useTableViews.js +61 -35
- package/dist/connection/files/views/useTableViews.js.map +2 -2
- package/dist/connection/files/views/useViewWrites.d.ts +6 -0
- package/dist/connection/files/views/useViewWrites.js +64 -0
- package/dist/connection/files/views/useViewWrites.js.map +7 -0
- package/dist/connection/pages/BlockEditor.d.ts +32 -0
- package/dist/connection/pages/BlockEditor.js +175 -0
- package/dist/connection/pages/BlockEditor.js.map +7 -0
- package/dist/connection/pages/ConnectedPagesPage.d.ts +31 -0
- package/dist/connection/pages/ConnectedPagesPage.js +426 -0
- package/dist/connection/pages/ConnectedPagesPage.js.map +7 -0
- package/dist/connection/pages/DocumentBlocks.d.ts +46 -0
- package/dist/connection/pages/DocumentBlocks.js +200 -0
- package/dist/connection/pages/DocumentBlocks.js.map +7 -0
- package/dist/connection/pages/DocumentsPicker.d.ts +26 -0
- package/dist/connection/pages/DocumentsPicker.js +133 -0
- package/dist/connection/pages/DocumentsPicker.js.map +7 -0
- package/dist/connection/pages/PageBlockView.d.ts +22 -0
- package/dist/connection/pages/PageBlockView.js +82 -0
- package/dist/connection/pages/PageBlockView.js.map +7 -0
- package/dist/connection/pages/PageGrid.d.ts +26 -0
- package/dist/connection/pages/PageGrid.js +50 -0
- package/dist/connection/pages/PageGrid.js.map +7 -0
- package/dist/connection/pages/PageView.d.ts +24 -0
- package/dist/connection/pages/PageView.js +93 -0
- package/dist/connection/pages/PageView.js.map +7 -0
- package/dist/connection/pages/PagesList.d.ts +14 -0
- package/dist/connection/pages/PagesList.js +143 -0
- package/dist/connection/pages/PagesList.js.map +7 -0
- package/dist/connection/pages/TableViewBlock.d.ts +24 -0
- package/dist/connection/pages/TableViewBlock.js +82 -0
- package/dist/connection/pages/TableViewBlock.js.map +7 -0
- package/dist/connection/pages/ViewPicker.d.ts +21 -0
- package/dist/connection/pages/ViewPicker.js +56 -0
- package/dist/connection/pages/ViewPicker.js.map +7 -0
- package/dist/connection/pages/index.d.ts +9 -0
- package/dist/connection/pages/index.js +49 -0
- package/dist/connection/pages/index.js.map +7 -0
- package/dist/connection/pages/labels.d.ts +61 -0
- package/dist/connection/pages/labels.js +61 -0
- package/dist/connection/pages/labels.js.map +7 -0
- package/dist/connection/settings-page/featuresSection.js +2 -2
- package/dist/connection/settings-page/featuresSection.js.map +1 -1
- package/dist/connection/sharing/ResourceShareForm.js +1 -1
- package/dist/connection/sharing/ResourceShareForm.js.map +2 -2
- package/dist/connection/threads-page/ConnectedThreadsPage.js +10 -8
- package/dist/connection/threads-page/ConnectedThreadsPage.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +11 -6
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/dashboards/ConditionsEditor.d.ts +54 -0
- package/dist/dashboards/ConditionsEditor.js +156 -0
- package/dist/dashboards/ConditionsEditor.js.map +7 -0
- package/dist/dashboards/index.cjs +33 -521
- package/dist/dashboards/index.cjs.map +1 -1
- package/dist/dashboards/index.d.ts +3 -2
- package/dist/dashboards/index.js +13 -1
- package/dist/dashboards/index.js.map +2 -2
- package/dist/databases/DatabaseFilterMenu.d.ts +18 -0
- package/dist/databases/DatabaseFilterMenu.js +95 -0
- package/dist/databases/DatabaseFilterMenu.js.map +7 -0
- package/dist/databases/DatabaseTable.js +1 -1
- package/dist/databases/DatabaseTable.js.map +1 -1
- package/dist/databases/DatabaseToolbar.d.ts +3 -1
- package/dist/databases/DatabaseToolbar.js +2 -0
- package/dist/databases/DatabaseToolbar.js.map +2 -2
- package/dist/databases/index.cjs +85 -71
- package/dist/databases/index.d.ts +1 -0
- package/dist/databases/index.js +8 -0
- package/dist/databases/index.js.map +2 -2
- package/dist/embed/index.cjs +14 -13
- package/dist/facts/index.cjs +43 -43
- package/dist/files/bulk/BulkActionsBar.d.ts +8 -5
- package/dist/files/bulk/BulkActionsBar.js +6 -7
- package/dist/files/bulk/BulkActionsBar.js.map +2 -2
- package/dist/files/cells/DocumentNameCell.d.ts +2 -1
- package/dist/files/cells/DocumentNameCell.js +1 -1
- package/dist/files/cells/DocumentNameCell.js.map +2 -2
- package/dist/files/index.cjs +237 -224
- package/dist/files/index.d.ts +1 -1
- package/dist/files/index.js +0 -2
- package/dist/files/index.js.map +2 -2
- package/dist/files/permissions.d.ts +4 -3
- package/dist/files/permissions.js +6 -3
- package/dist/files/permissions.js.map +2 -2
- package/dist/files/views/ViewSelectorMenu.d.ts +24 -5
- package/dist/files/views/ViewSelectorMenu.js +78 -51
- package/dist/files/views/ViewSelectorMenu.js.map +2 -2
- package/dist/files/views/gridViews.d.ts +34 -1
- package/dist/files/views/gridViews.js +28 -0
- package/dist/files/views/gridViews.js.map +2 -2
- package/dist/files/views/index.d.ts +2 -2
- package/dist/files/views/index.js +8 -0
- package/dist/files/views/index.js.map +2 -2
- package/dist/files/views/useGridViews.d.ts +8 -4
- package/dist/files/views/useGridViews.js +42 -11
- package/dist/files/views/useGridViews.js.map +2 -2
- package/dist/files/visibility.d.ts +1 -16
- package/dist/files/visibility.js +6 -23
- package/dist/files/visibility.js.map +2 -2
- package/dist/index.cjs +453 -428
- package/dist/index.cjs.map +1 -1
- package/dist/pages/index.cjs +1363 -0
- package/dist/pages/index.cjs.map +1 -0
- package/dist/pages/index.d.ts +14 -0
- package/dist/pages/index.js +3 -0
- package/dist/pages/index.js.map +7 -0
- package/dist/settings/ConversationSettingsParts.d.ts +4 -6
- package/dist/settings/ConversationSettingsParts.js +15 -10
- package/dist/settings/ConversationSettingsParts.js.map +2 -2
- package/dist/settings/index.cjs +145 -144
- package/dist/studio/index.cjs +8 -7
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/widgets.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +23 -22
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +10 -5
- package/dist/DocumentReviewCard-ENCPTGJE.cjs.map +0 -1
- package/dist/FilesViewerDialog-FFPW7TIK.cjs.map +0 -1
- package/dist/WorkspaceTableView-2RH33X3U.cjs.map +0 -1
- package/dist/ai-YX3OAC4F.cjs.map +0 -1
- package/dist/chunk-32HVYK4Q.cjs.map +0 -1
- package/dist/chunk-6TU4YLFW.cjs.map +0 -1
- package/dist/chunk-BCRB42SP.cjs.map +0 -1
- package/dist/chunk-KP7BQIZL.cjs.map +0 -1
- package/dist/chunk-LVIQWRC5.cjs.map +0 -1
- package/dist/chunk-N2OVF6SJ.cjs.map +0 -1
- package/dist/chunk-N3H3YAKY.cjs.map +0 -1
- package/dist/chunk-TG2GM7WJ.cjs.map +0 -1
- package/dist/chunk-UOI6JJPG.cjs.map +0 -1
- package/dist/chunk-ZPIZINH2.cjs.map +0 -1
- package/dist/connection/dashboards/ConnectedDashboardsPage.d.ts +0 -69
- package/dist/connection/dashboards/ConnectedDashboardsPage.js +0 -554
- package/dist/connection/dashboards/ConnectedDashboardsPage.js.map +0 -7
- package/dist/connection/files/views/tableViews.d.ts +0 -19
- package/dist/connection/files/views/tableViews.js +0 -36
- package/dist/connection/files/views/tableViews.js.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/chat/chat-page-types.ts"],
|
|
4
|
-
"sourcesContent": ["import type { ReactNode } from 'react'\nimport type { WorkflowStepKind } from '../agents/workflows/stepKinds'\nimport type { WorkflowStepPhase } from '../agents/workflows/run'\nimport type { MentionCandidate, MessageMentionRef } from '@arbidocs/react/shell'\nimport type { SlashMenuItem } from './SlashMenu'\n\n/**\n * The view-model of a chat page. It is the shape `useConversation()` from `@arbidocs/react` returns,\n * so `<ChatPage chat={useConversation(...)} />` works without an adapter; any other source (a demo,\n * another backend) can fill it in. Plain data and callbacks: no SDK, store or router.\n */\n/** One passage of a source document behind a citation. */\nexport interface ChatPagePassage {\n id: string\n /** The source document's id, when known (what an \"open document\" action needs). */\n documentId: string | null\n documentTitle: string\n page: number | null\n text: string\n}\n\n/** The source behind `[statement](#cite-N)` marks of an answer. */\nexport interface ChatPageCitation {\n /** The number in `(#cite-N)`. */\n num: string\n statement: string\n documentTitle: string\n page: number | null\n passages: ReadonlyArray<ChatPagePassage>\n}\n\n/** What the host gets when the reader opens a cited document. */\nexport interface ChatCitationTarget {\n documentId: string | null\n documentTitle: string\n page: number | null\n /** The cited passage (the one opened from, or the first). */\n passage: ChatPagePassage | null\n citation: ChatPageCitation\n}\n\nexport interface ChatPageMessage {\n senderName?: string\n /**\n * Written by someone else in a shared thread: shown on the left. Unset (the reader's own, or a\n * one-person chat): on the right.\n */\n fromOther?: boolean\n id: string\n role: 'user' | 'assistant'\n /** Markdown for an assistant message, plain text for a user message. */\n content: string\n status: 'streaming' | 'complete' | 'error'\n /** Why an assistant message failed. */\n error?: string\n /** Agent steps the answer took so far. */\n stepCount?: number\n /** Sources of the `[..](#cite-N)` marks in `content`. Without them the marks are quiet numbers. */\n citations?: ReadonlyArray<ChatPageCitation>\n /** The reader stopped the answer; `content` is what had streamed. */\n stopped?: boolean\n /** A user message that started a workflow step (its id): shown as that step's chip. */\n workflowStep?: string\n}\n\nexport interface ChatPageThread {\n id: string\n /** Empty until the first question titles it. */\n title: string\n}\n\nexport interface ChatPageDocument {\n id: string\n name: string\n isSelected: boolean\n}\n\n/**\n * The composer's `/` menu: its rows (commands and skills) and what picking or typing a skill does.\n * `useConnectedChat` fills it from the connection; the page filters the rows by the draft.\n */\nexport interface ChatPageSlash {\n items: ReadonlyArray<SlashMenuItem>\n /** A picked row: true when it was handled (a skill's form opened); otherwise `/name ` is inserted. */\n pick: (item: SlashMenuItem) => boolean\n /** A submitted draft: true when it named a skill (its form opened), so nothing is sent. */\n startDraft: (draft: string) => boolean\n /** The menu's \"Browse skills\" footer. Omit to hide it. */\n onBrowse?: () => void\n /** Rendered once with the composer (the skill's form). */\n launcher?: ReactNode\n}\n\nexport interface ChatPageController {\n /** The composer's `/` menu. Omit for none. */\n slash?: ChatPageSlash\n assistantMode?: 'always' | 'mentioned'\n setAssistantMode?: (mode: 'always' | 'mentioned') => void | Promise<void>\n isUpdatingAssistantMode?: boolean\n isPostingComment?: boolean\n mentionCandidates?: ReadonlyArray<MentionCandidate>\n threads: ReadonlyArray<ChatPageThread>\n activeThreadId: string\n messages: ReadonlyArray<ChatPageMessage>\n isRunning: boolean\n /** The last turn failed. */\n error: string | null\n /** A stored conversation's messages are loading. */\n isLoadingThread?: boolean\n /** The conversation list is loading. */\n isLoadingThreads?: boolean\n /** Loading or deleting a stored conversation failed. */\n historyError?: string | null\n documents: ReadonlyArray<ChatPageDocument>\n isLoadingDocuments: boolean\n isUploading: boolean\n uploadError: string | null\n send: (text: string, options?: { mentions?: MessageMentionRef[] }) => void | Promise<void>\n retry: () => void | Promise<void>\n /** Stops the running answer. Omit when the source cannot be aborted: no stop button then. */\n stop?: () => void\n selectThread: (id: string) => void\n newThread: () => void\n /** Omit to hide the delete action. */\n deleteThread?: (id: string) => void\n toggleDocument: (id: string) => void\n selectAllDocuments: () => void\n upload: (files: File[]) => void | Promise<void>\n}\n\n/** Every fixed string of the chat page. Pass a partial `labels` to translate or reword. */\nexport interface ChatPageLabels {\n /** Accessible name of the whole chat. */\n chat: string\n conversations: string\n newChat: string\n untitled: string\n deleteConversation: (title: string) => string\n /** Assistant name on the answer's byline. */\n assistant: string\n thinking: string\n steps: (count: number) => string\n responseFailed: string\n answerFailedTitle: string\n uploadFailedTitle: string\n placeholder: string\n composerAriaLabel: string\n documentsInChat: (selected: number, total: number) => string\n documentsHeading: string\n selectAllDocuments: string\n noDocuments: string\n uploadDocuments: string\n uploading: string\n emptyTitle: string\n emptyDescription: string\n emptyUploadTitle: string\n emptyUploadDescription: string\n workflows: string\n loadingDocuments: string\n stop: string\n stopped: string\n loadingConversation: string\n historyFailedTitle: string\n /** Accessible name of a citation mark. */\n citation: (num: string, source: string) => string\n /** Heading of the citation popover. */\n citationHeading: (num: string) => string\n citationNoSource: string\n openDocument: string\n page: (page: number) => string\n morePassages: (count: number) => string\n}\n\nexport const DEFAULT_CHAT_PAGE_LABELS: ChatPageLabels = {\n chat: 'Assistant chat',\n conversations: 'Conversations',\n newChat: 'New chat',\n untitled: 'New chat',\n deleteConversation: (title) => `Delete conversation ${title}`,\n assistant: 'Assistant',\n thinking: 'Thinking\u2026',\n steps: (count) => (count === 1 ? '1 step' : `${count} steps`),\n responseFailed: 'Response failed',\n answerFailedTitle: 'The answer could not be completed',\n uploadFailedTitle: 'The upload failed',\n placeholder: 'Ask about your documents',\n composerAriaLabel: 'Message the assistant',\n documentsInChat: (selected, total) => `${selected} of ${total} documents in this chat`,\n documentsHeading: 'Documents in this chat',\n selectAllDocuments: 'Select all',\n noDocuments: 'No documents yet',\n uploadDocuments: 'Upload documents',\n uploading: 'Uploading\u2026',\n emptyTitle: 'Ask about your documents',\n emptyDescription: 'Every answer is grounded in the selected documents and cites its sources.',\n emptyUploadTitle: 'Add a document to start',\n emptyUploadDescription: 'Upload the documents you want to ask about.',\n workflows: 'Workflows',\n loadingDocuments: 'Loading documents\u2026',\n stop: 'Stop generating',\n stopped: 'Stopped',\n loadingConversation: 'Loading conversation\u2026',\n historyFailedTitle: 'The conversation history could not be used',\n citation: (num, source) => (source ? `Source ${num}: ${source}` : `Source ${num}`),\n citationHeading: (num) => `Source ${num}`,\n citationNoSource: 'The passage for this source is not available.',\n openDocument: 'Open document',\n page: (page) => `Page ${page}`,\n morePassages: (count) => (count === 1 ? '1 more passage' : `${count} more passages`),\n}\n\nexport interface ChatPageProps {\n /** Open a notification at its original message once history has loaded. */\n targetMessageId?: string\n chat: ChatPageController\n /**\n * The stored thread the host names (a `?conversation=` link): selected once the thread list has it. With\n * `onConversationChange` the host hears which stored thread is on screen (`null` after a new thread) and can\n * mirror it; a link the list has not loaded yet is kept meanwhile. Absent: the chat picks its own thread.\n */\n conversationId?: string | null\n onConversationChange?: (conversationId: string | null) => void\n /**\n * `page` (default): a full-page chat; while it is mounted the dock yields (see\n * `useChatSurface`). `dock`: the same chat in the dock, which does not claim the page slot.\n */\n surface?: 'page' | 'dock'\n /** Replaces the heading (default: the active conversation's title). */\n header?: ReactNode\n /** Actions at the right of the header bar. */\n headerActions?: ReactNode\n /**\n * The workflow launcher column. A column beside the chat when the container is wide, a\n * collapsible panel under the header when it is not (so an open dock never squeezes it).\n */\n aside?: ReactNode\n /** Starter questions on the empty conversation; clicking one fills the composer. */\n prompts?: ReadonlyArray<string>\n /** Whether the empty state asks for documents before offering starter prompts. */\n documentsRequired?: boolean\n /** Heading of the empty state; wins over `labels.emptyTitle`. */\n emptyTitle?: string\n /** Sub-heading of the empty state; wins over `labels.emptyDescription`. */\n emptyDescription?: string\n /**\n * Renders an answer. Default: `ChatMessageContent` (markdown: lists, tables, a quiet numbered\n * mark with a source popover for each citation).\n */\n renderContent?: (message: ChatPageMessage) => ReactNode\n /**\n * Opens the cited document (and page) in the host's viewer. Without it the citation popover\n * shows the source and passage and offers no open action.\n */\n onOpenCitation?: (target: ChatCitationTarget) => void\n /**\n * A workflow step by id \u2014 its title, kind and phase: a message that started a step shows as that\n * step's chip, as the thread's bar draws it (else its id, as an AI step).\n */\n workflowStepOf?: (stepId: string) => WorkflowStepView | undefined\n /**\n * Container width, in rem, from which `aside` is a column beside the chat; narrower, it is a\n * button-toggled panel over the transcript. Default 60.\n */\n asideBreakpoint?: number\n /**\n * Fill the height left in the nearest scrolling ancestor below the chat's own top (the page\n * header above it, the shell bars around it), measured in dynamic viewport units so a phone's\n * collapsing URL bar cannot cut it. Use it for a chat card placed under a page header.\n */\n fillHeight?: boolean\n /** Smallest height `fillHeight` gives, in px. Default 360. */\n minHeight?: number\n /**\n * One conversation only (e.g. a workflow run's thread): no conversation list, select or New\n * chat; the host picks the thread (`chat.selectThread`).\n */\n singleThread?: boolean\n /** Drop the heading from the header bar (the host's page header already names the chat). */\n compactHeader?: boolean\n /** Accepted upload types for the file picker. */\n accept?: string\n labels?: Partial<ChatPageLabels>\n className?: string\n testIds?: Partial<{\n root: string\n transcript: string\n input: string\n send: string\n documents: string\n upload: string\n alert: string\n asideToggle: string\n aside: string\n }>\n}\n\n/** A workflow step as a chat shows it: its title, kind and where it is. */\nexport interface WorkflowStepView {\n title?: string\n kind?: WorkflowStepKind\n phase?: WorkflowStepPhase\n /** The step's document (its latest version): opened from beside its chip. */\n document?: { name: string; onOpen: () => void }\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import type { ReactNode } from 'react'\nimport type { WorkflowStepKind } from '../agents/workflows/stepKinds'\nimport type { WorkflowStepPhase } from '../agents/workflows/run'\nimport type { MentionCandidate, MessageMentionRef } from '@arbidocs/react/shell'\nimport type { SlashMenuItem } from './SlashMenu'\n\n/**\n * The view-model of a chat page. It is the shape `useConversation()` from `@arbidocs/react` returns,\n * so `<ChatPage chat={useConversation(...)} />` works without an adapter; any other source (a demo,\n * another backend) can fill it in. Plain data and callbacks: no SDK, store or router.\n */\n/** One passage of a source document behind a citation. */\nexport interface ChatPagePassage {\n id: string\n /** The source document's id, when known (what an \"open document\" action needs). */\n documentId: string | null\n documentTitle: string\n page: number | null\n text: string\n}\n\n/** The source behind `[statement](#cite-N)` marks of an answer. */\nexport interface ChatPageCitation {\n /** The number in `(#cite-N)`. */\n num: string\n statement: string\n documentTitle: string\n page: number | null\n passages: ReadonlyArray<ChatPagePassage>\n}\n\n/** What the host gets when the reader opens a cited document. */\nexport interface ChatCitationTarget {\n documentId: string | null\n documentTitle: string\n page: number | null\n /** The cited passage (the one opened from, or the first). */\n passage: ChatPagePassage | null\n citation: ChatPageCitation\n}\n\nexport interface ChatPageMessage {\n senderName?: string\n /**\n * Written by someone else in a shared thread: shown on the left. Unset (the reader's own, or a\n * one-person chat): on the right.\n */\n fromOther?: boolean\n id: string\n role: 'user' | 'assistant'\n /** Markdown for an assistant message, plain text for a user message. */\n content: string\n status: 'streaming' | 'complete' | 'error'\n /** Why an assistant message failed. */\n error?: string\n /** Agent steps the answer took so far. */\n stepCount?: number\n /** Sources of the `[..](#cite-N)` marks in `content`. Without them the marks are quiet numbers. */\n citations?: ReadonlyArray<ChatPageCitation>\n /** The reader stopped the answer; `content` is what had streamed. */\n stopped?: boolean\n /** A user message that started a workflow step (its id): shown as that step's chip. */\n workflowStep?: string\n}\n\nexport interface ChatPageThread {\n id: string\n /** Empty until the first question titles it. */\n title: string\n /** False: no delete for it (a shared thread is a workspace owner's to delete). Default true. */\n canDelete?: boolean\n}\n\nexport interface ChatPageDocument {\n id: string\n name: string\n isSelected: boolean\n}\n\n/**\n * The composer's `/` menu: its rows (commands and skills) and what picking or typing a skill does.\n * `useConnectedChat` fills it from the connection; the page filters the rows by the draft.\n */\nexport interface ChatPageSlash {\n items: ReadonlyArray<SlashMenuItem>\n /** A picked row: true when it was handled (a skill's form opened); otherwise `/name ` is inserted. */\n pick: (item: SlashMenuItem) => boolean\n /** A submitted draft: true when it named a skill (its form opened), so nothing is sent. */\n startDraft: (draft: string) => boolean\n /** The menu's \"Browse skills\" footer. Omit to hide it. */\n onBrowse?: () => void\n /** Rendered once with the composer (the skill's form). */\n launcher?: ReactNode\n}\n\nexport interface ChatPageController {\n /** The composer's `/` menu. Omit for none. */\n slash?: ChatPageSlash\n assistantMode?: 'always' | 'mentioned'\n setAssistantMode?: (mode: 'always' | 'mentioned') => void | Promise<void>\n isUpdatingAssistantMode?: boolean\n isPostingComment?: boolean\n mentionCandidates?: ReadonlyArray<MentionCandidate>\n threads: ReadonlyArray<ChatPageThread>\n activeThreadId: string\n messages: ReadonlyArray<ChatPageMessage>\n isRunning: boolean\n /** The last turn failed. */\n error: string | null\n /** A stored conversation's messages are loading. */\n isLoadingThread?: boolean\n /** The conversation list is loading. */\n isLoadingThreads?: boolean\n /** Loading or deleting a stored conversation failed. */\n historyError?: string | null\n documents: ReadonlyArray<ChatPageDocument>\n isLoadingDocuments: boolean\n isUploading: boolean\n uploadError: string | null\n send: (text: string, options?: { mentions?: MessageMentionRef[] }) => void | Promise<void>\n retry: () => void | Promise<void>\n /** Stops the running answer. Omit when the source cannot be aborted: no stop button then. */\n stop?: () => void\n selectThread: (id: string) => void\n newThread: () => void\n /** Omit to hide the delete action. */\n deleteThread?: (id: string) => void\n toggleDocument: (id: string) => void\n selectAllDocuments: () => void\n upload: (files: File[]) => void | Promise<void>\n}\n\n/** Every fixed string of the chat page. Pass a partial `labels` to translate or reword. */\nexport interface ChatPageLabels {\n /** Accessible name of the whole chat. */\n chat: string\n conversations: string\n newChat: string\n untitled: string\n deleteConversation: (title: string) => string\n /** Assistant name on the answer's byline. */\n assistant: string\n thinking: string\n steps: (count: number) => string\n responseFailed: string\n answerFailedTitle: string\n uploadFailedTitle: string\n placeholder: string\n composerAriaLabel: string\n documentsInChat: (selected: number, total: number) => string\n documentsHeading: string\n selectAllDocuments: string\n noDocuments: string\n uploadDocuments: string\n uploading: string\n emptyTitle: string\n emptyDescription: string\n emptyUploadTitle: string\n emptyUploadDescription: string\n workflows: string\n loadingDocuments: string\n stop: string\n stopped: string\n loadingConversation: string\n historyFailedTitle: string\n /** Accessible name of a citation mark. */\n citation: (num: string, source: string) => string\n /** Heading of the citation popover. */\n citationHeading: (num: string) => string\n citationNoSource: string\n openDocument: string\n page: (page: number) => string\n morePassages: (count: number) => string\n}\n\nexport const DEFAULT_CHAT_PAGE_LABELS: ChatPageLabels = {\n chat: 'Assistant chat',\n conversations: 'Conversations',\n newChat: 'New chat',\n untitled: 'New chat',\n deleteConversation: (title) => `Delete conversation ${title}`,\n assistant: 'Assistant',\n thinking: 'Thinking\u2026',\n steps: (count) => (count === 1 ? '1 step' : `${count} steps`),\n responseFailed: 'Response failed',\n answerFailedTitle: 'The answer could not be completed',\n uploadFailedTitle: 'The upload failed',\n placeholder: 'Ask about your documents',\n composerAriaLabel: 'Message the assistant',\n documentsInChat: (selected, total) => `${selected} of ${total} documents in this chat`,\n documentsHeading: 'Documents in this chat',\n selectAllDocuments: 'Select all',\n noDocuments: 'No documents yet',\n uploadDocuments: 'Upload documents',\n uploading: 'Uploading\u2026',\n emptyTitle: 'Ask about your documents',\n emptyDescription: 'Every answer is grounded in the selected documents and cites its sources.',\n emptyUploadTitle: 'Add a document to start',\n emptyUploadDescription: 'Upload the documents you want to ask about.',\n workflows: 'Workflows',\n loadingDocuments: 'Loading documents\u2026',\n stop: 'Stop generating',\n stopped: 'Stopped',\n loadingConversation: 'Loading conversation\u2026',\n historyFailedTitle: 'The conversation history could not be used',\n citation: (num, source) => (source ? `Source ${num}: ${source}` : `Source ${num}`),\n citationHeading: (num) => `Source ${num}`,\n citationNoSource: 'The passage for this source is not available.',\n openDocument: 'Open document',\n page: (page) => `Page ${page}`,\n morePassages: (count) => (count === 1 ? '1 more passage' : `${count} more passages`),\n}\n\nexport interface ChatPageProps {\n /** Open a notification at its original message once history has loaded. */\n targetMessageId?: string\n chat: ChatPageController\n /**\n * The stored thread the host names (a `?conversation=` link): selected once the thread list has it. With\n * `onConversationChange` the host hears which stored thread is on screen (`null` after a new thread) and can\n * mirror it; a link the list has not loaded yet is kept meanwhile. Absent: the chat picks its own thread.\n */\n conversationId?: string | null\n onConversationChange?: (conversationId: string | null) => void\n /**\n * `page` (default): a full-page chat; while it is mounted the dock yields (see\n * `useChatSurface`). `dock`: the same chat in the dock, which does not claim the page slot.\n */\n surface?: 'page' | 'dock'\n /** Replaces the heading (default: the active conversation's title). */\n header?: ReactNode\n /** Actions at the right of the header bar. */\n headerActions?: ReactNode\n /**\n * The workflow launcher column. A column beside the chat when the container is wide, a\n * collapsible panel under the header when it is not (so an open dock never squeezes it).\n */\n aside?: ReactNode\n /** Starter questions on the empty conversation; clicking one fills the composer. */\n prompts?: ReadonlyArray<string>\n /** Whether the empty state asks for documents before offering starter prompts. */\n documentsRequired?: boolean\n /** Heading of the empty state; wins over `labels.emptyTitle`. */\n emptyTitle?: string\n /** Sub-heading of the empty state; wins over `labels.emptyDescription`. */\n emptyDescription?: string\n /**\n * Renders an answer. Default: `ChatMessageContent` (markdown: lists, tables, a quiet numbered\n * mark with a source popover for each citation).\n */\n renderContent?: (message: ChatPageMessage) => ReactNode\n /**\n * Opens the cited document (and page) in the host's viewer. Without it the citation popover\n * shows the source and passage and offers no open action.\n */\n onOpenCitation?: (target: ChatCitationTarget) => void\n /**\n * A workflow step by id \u2014 its title, kind and phase: a message that started a step shows as that\n * step's chip, as the thread's bar draws it (else its id, as an AI step).\n */\n workflowStepOf?: (stepId: string) => WorkflowStepView | undefined\n /**\n * Container width, in rem, from which `aside` is a column beside the chat; narrower, it is a\n * button-toggled panel over the transcript. Default 60.\n */\n asideBreakpoint?: number\n /**\n * Fill the height left in the nearest scrolling ancestor below the chat's own top (the page\n * header above it, the shell bars around it), measured in dynamic viewport units so a phone's\n * collapsing URL bar cannot cut it. Use it for a chat card placed under a page header.\n */\n fillHeight?: boolean\n /** Smallest height `fillHeight` gives, in px. Default 360. */\n minHeight?: number\n /**\n * One conversation only (e.g. a workflow run's thread): no conversation list, select or New\n * chat; the host picks the thread (`chat.selectThread`).\n */\n singleThread?: boolean\n /** Drop the heading from the header bar (the host's page header already names the chat). */\n compactHeader?: boolean\n /** Accepted upload types for the file picker. */\n accept?: string\n labels?: Partial<ChatPageLabels>\n className?: string\n testIds?: Partial<{\n root: string\n transcript: string\n input: string\n send: string\n documents: string\n upload: string\n alert: string\n asideToggle: string\n aside: string\n }>\n}\n\n/** A workflow step as a chat shows it: its title, kind and where it is. */\nexport interface WorkflowStepView {\n title?: string\n kind?: WorkflowStepKind\n phase?: WorkflowStepPhase\n /** The step's document (its latest version): opened from beside its chip. */\n document?: { name: string; onOpen: () => void }\n}\n"],
|
|
5
|
+
"mappings": ";AA+KO,MAAM,2BAA2C;AAAA,EACtD,MAAM;AAAA,EACN,eAAe;AAAA,EACf,SAAS;AAAA,EACT,UAAU;AAAA,EACV,oBAAoB,CAAC,UAAU,uBAAuB,KAAK;AAAA,EAC3D,WAAW;AAAA,EACX,UAAU;AAAA,EACV,OAAO,CAAC,UAAW,UAAU,IAAI,WAAW,GAAG,KAAK;AAAA,EACpD,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,iBAAiB,CAAC,UAAU,UAAU,GAAG,QAAQ,OAAO,KAAK;AAAA,EAC7D,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,wBAAwB;AAAA,EACxB,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,UAAU,CAAC,KAAK,WAAY,SAAS,UAAU,GAAG,KAAK,MAAM,KAAK,UAAU,GAAG;AAAA,EAC/E,iBAAiB,CAAC,QAAQ,UAAU,GAAG;AAAA,EACvC,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,MAAM,CAAC,SAAS,QAAQ,IAAI;AAAA,EAC5B,cAAc,CAAC,UAAW,UAAU,IAAI,mBAAmB,GAAG,KAAK;AACrE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/chat/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkKWV4VC74_cjs = require('../chunk-KWV4VC74.cjs');
|
|
5
5
|
var chunkKLMNCBLY_cjs = require('../chunk-KLMNCBLY.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkP5TQOSKA_cjs = require('../chunk-P5TQOSKA.cjs');
|
|
7
7
|
var chunkXZMYSDU4_cjs = require('../chunk-XZMYSDU4.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunk5TT6J67U_cjs = require('../chunk-5TT6J67U.cjs');
|
|
9
9
|
var chunkJHDCDEXY_cjs = require('../chunk-JHDCDEXY.cjs');
|
|
10
10
|
var chunk5RMVFFVW_cjs = require('../chunk-5RMVFFVW.cjs');
|
|
11
11
|
var chunk5F4DCIHS_cjs = require('../chunk-5F4DCIHS.cjs');
|
|
@@ -37,7 +37,7 @@ require('../chunk-PLIF5CUV.cjs');
|
|
|
37
37
|
|
|
38
38
|
Object.defineProperty(exports, "AssistantToaster", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkKWV4VC74_cjs.AssistantToaster; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "ComposerAccessories", {
|
|
43
43
|
enumerable: true,
|
|
@@ -181,15 +181,15 @@ Object.defineProperty(exports, "useDismissibleCard", {
|
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "AssistantDock", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkP5TQOSKA_cjs.AssistantDock; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "AssistantDockToggle", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkP5TQOSKA_cjs.AssistantDockToggle; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "useAssistantDock", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkP5TQOSKA_cjs.useAssistantDock; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "useOpenCitation", {
|
|
195
195
|
enumerable: true,
|
|
@@ -197,75 +197,75 @@ Object.defineProperty(exports, "useOpenCitation", {
|
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "AssistantModeToggle", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunk5TT6J67U_cjs.AssistantModeToggle; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "ChatDocuments", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunk5TT6J67U_cjs.ChatDocuments; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "ChatMessageContent", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunk5TT6J67U_cjs.ChatMessageContent; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "ChatPage", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunk5TT6J67U_cjs.ChatPage; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "ChatThreadList", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunk5TT6J67U_cjs.ChatThreadList; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "ChatThreadSelect", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunk5TT6J67U_cjs.ChatThreadSelect; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "CitationMark", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunk5TT6J67U_cjs.CitationMark; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "ContextChip", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunk5TT6J67U_cjs.ContextChip; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "ConversationEmpty", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunk5TT6J67U_cjs.ConversationEmpty; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunk5TT6J67U_cjs.DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "DEFAULT_CHAT_PAGE_LABELS", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunk5TT6J67U_cjs.DEFAULT_CHAT_PAGE_LABELS; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_EMPTY_LABELS", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunk5TT6J67U_cjs.DEFAULT_CONVERSATION_EMPTY_LABELS; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "DEFAULT_MESSAGE_ALERT_LABELS", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunk5TT6J67U_cjs.DEFAULT_MESSAGE_ALERT_LABELS; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "MessageAlert", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunk5TT6J67U_cjs.MessageAlert; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "useChatSurface", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunk5TT6J67U_cjs.useChatSurface; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "useControlledThread", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunk5TT6J67U_cjs.useControlledThread; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "useRegisterEmbeddedChat", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunk5TT6J67U_cjs.useRegisterEmbeddedChat; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "useStartRequestedConversation", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunk5TT6J67U_cjs.useStartRequestedConversation; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "BranchControls", {
|
|
271
271
|
enumerable: true,
|
|
@@ -8,6 +8,7 @@ var chunk7D4WXUBS_cjs = require('./chunk-7D4WXUBS.cjs');
|
|
|
8
8
|
var chunkOYXWQTHF_cjs = require('./chunk-OYXWQTHF.cjs');
|
|
9
9
|
var chunkS237ORM3_cjs = require('./chunk-S237ORM3.cjs');
|
|
10
10
|
var chunkII2OEXHW_cjs = require('./chunk-II2OEXHW.cjs');
|
|
11
|
+
var chunkDKY67DA6_cjs = require('./chunk-DKY67DA6.cjs');
|
|
11
12
|
var chunkJJZOL5MG_cjs = require('./chunk-JJZOL5MG.cjs');
|
|
12
13
|
var chunk3YEXZX4H_cjs = require('./chunk-3YEXZX4H.cjs');
|
|
13
14
|
var chunkYZ25NAR3_cjs = require('./chunk-YZ25NAR3.cjs');
|
|
@@ -5160,7 +5161,7 @@ var DEFAULT_TASK_LIST_LABELS = {
|
|
|
5160
5161
|
colShared: "Sharing",
|
|
5161
5162
|
shared: "Shared with the workspace",
|
|
5162
5163
|
sharedOwnerOnly: "Only the creator can change who can see this",
|
|
5163
|
-
deleteOwnerOnly: "Only
|
|
5164
|
+
deleteOwnerOnly: "Only a workspace owner can delete this (its creator only while it is private)",
|
|
5164
5165
|
goalMet: (met, total) => `${met}/${total} met`,
|
|
5165
5166
|
subtasksDone: (done, total) => `${done}/${total} sub-tasks done`,
|
|
5166
5167
|
expandSubtasks: "Show sub-tasks",
|
|
@@ -5215,7 +5216,6 @@ function TaskRowMenu({
|
|
|
5215
5216
|
onDelete,
|
|
5216
5217
|
onMoveTo,
|
|
5217
5218
|
onOpenActivity,
|
|
5218
|
-
onToggleShared,
|
|
5219
5219
|
onGrantAccess
|
|
5220
5220
|
}) {
|
|
5221
5221
|
const [open, setOpen] = react.useState(false);
|
|
@@ -5275,7 +5275,6 @@ function TaskRowMenu({
|
|
|
5275
5275
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.History, { className: "mr-2 size-4", "aria-hidden": true }),
|
|
5276
5276
|
labels.activity
|
|
5277
5277
|
] }),
|
|
5278
|
-
isOwner && onToggleShared && /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuItem, { disabled: busy, onSelect: onToggleShared, children: task.is_shared ? "Make private" : "Share with workspace" }),
|
|
5279
5278
|
canEdit && onAddSubtask && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { onSelect: onAddSubtask, "data-testid": `task-add-subtask-${id}`, children: [
|
|
5280
5279
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ListPlus, { className: "mr-2 size-4", "aria-hidden": true }),
|
|
5281
5280
|
labels.addSubtask
|
|
@@ -5462,7 +5461,7 @@ function TaskTable(props) {
|
|
|
5462
5461
|
const markable = selectedTasks.filter(
|
|
5463
5462
|
(t) => t.status != null && (t.is_owner !== false || props.canEditShared) && isPlainTodo(t) && asTaskStatus(t.status) !== "done"
|
|
5464
5463
|
);
|
|
5465
|
-
const deletable = selectedTasks.filter((t) => t
|
|
5464
|
+
const deletable = selectedTasks.filter((t) => chunkDKY67DA6_cjs.canDeleteThread(t, Boolean(props.isWorkspaceOwner)));
|
|
5466
5465
|
const rowsRef = react.useRef(rows);
|
|
5467
5466
|
rowsRef.current = rows;
|
|
5468
5467
|
const handleSelectionChange = (picked) => {
|
|
@@ -5623,15 +5622,17 @@ function TaskTable(props) {
|
|
|
5623
5622
|
renderShared: (row) => {
|
|
5624
5623
|
const { l: lb, props: p } = latest.current;
|
|
5625
5624
|
const { task } = row;
|
|
5626
|
-
if (!p.
|
|
5625
|
+
if (!p.onShare) return null;
|
|
5626
|
+
const shared = task.is_shared ?? false;
|
|
5627
5627
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5628
5628
|
ui.SharingEntity,
|
|
5629
5629
|
{
|
|
5630
|
-
shared
|
|
5631
|
-
onToggle: (shouldShare) =>
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5630
|
+
shared,
|
|
5631
|
+
onToggle: (shouldShare) => {
|
|
5632
|
+
if (shouldShare) latest.current.props.onShare?.(task);
|
|
5633
|
+
},
|
|
5634
|
+
disabled: shared || task.is_owner === false,
|
|
5635
|
+
disabledTooltip: shared ? chunkDKY67DA6_cjs.sharedForGoodTooltip() : lb.sharedOwnerOnly,
|
|
5635
5636
|
tooltipInactive: "Only you can see this \u2014 click to share with this workspace",
|
|
5636
5637
|
"data-testid": `task-shared-${task.external_id}`
|
|
5637
5638
|
}
|
|
@@ -5667,7 +5668,7 @@ function TaskTable(props) {
|
|
|
5667
5668
|
const busy = p.busyId === id;
|
|
5668
5669
|
const isOwner = task.is_owner !== false;
|
|
5669
5670
|
const canEdit = isOwner || Boolean(p.canEditShared);
|
|
5670
|
-
const canAdmin =
|
|
5671
|
+
const canAdmin = chunkDKY67DA6_cjs.canDeleteThread(task, Boolean(p.isWorkspaceOwner));
|
|
5671
5672
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-2", children: [
|
|
5672
5673
|
!latest.current.narrow && isOwner && task.pending_auth_request_id && p.onGrantAccess && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5673
5674
|
ui.Button,
|
|
@@ -10089,5 +10090,5 @@ exports.useWorkflowView = useWorkflowView;
|
|
|
10089
10090
|
exports.withLabelIds = withLabelIds;
|
|
10090
10091
|
exports.workflowFromSkillMarkdown = workflowFromSkillMarkdown;
|
|
10091
10092
|
exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
|
|
10092
|
-
//# sourceMappingURL=chunk-
|
|
10093
|
-
//# sourceMappingURL=chunk-
|
|
10093
|
+
//# sourceMappingURL=chunk-3VPNL4EH.cjs.map
|
|
10094
|
+
//# sourceMappingURL=chunk-3VPNL4EH.cjs.map
|