@arbidocs/blocks 0.5.114 → 0.5.116
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-2KXEQENS.cjs → ConnectedCallDock-WER7R222.cjs} +21 -21
- package/dist/{ConnectedCallDock-2KXEQENS.cjs.map → ConnectedCallDock-WER7R222.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-MU3NPNXF.cjs → ConnectedCallRoom-T7OBQTYP.cjs} +14 -14
- package/dist/{ConnectedCallRoom-MU3NPNXF.cjs.map → ConnectedCallRoom-T7OBQTYP.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-VH3I65H6.cjs → ConnectedNativeDocxComparison-546ILGLW.cjs} +19 -19
- package/dist/{ConnectedNativeDocxComparison-VH3I65H6.cjs.map → ConnectedNativeDocxComparison-546ILGLW.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-4EAY6KAZ.cjs → ConnectedProductionSetDialog-LHB4VQWC.cjs} +3 -3
- package/dist/{ConnectedProductionSetDialog-4EAY6KAZ.cjs.map → ConnectedProductionSetDialog-LHB4VQWC.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-KQSHCA75.cjs → ConnectedStreamedWordArtifact-S2ZFZLZQ.cjs} +19 -19
- package/dist/{ConnectedStreamedWordArtifact-KQSHCA75.cjs.map → ConnectedStreamedWordArtifact-S2ZFZLZQ.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-OCPFVMLD.cjs → DocumentReviewCard-ZSBZBGFK.cjs} +15 -15
- package/dist/{DocumentReviewCard-OCPFVMLD.cjs.map → DocumentReviewCard-ZSBZBGFK.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-BAGOEMXW.cjs → FilesViewerDialog-6UKR5WEF.cjs} +44 -44
- package/dist/{FilesViewerDialog-BAGOEMXW.cjs.map → FilesViewerDialog-6UKR5WEF.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-EJEIJDOC.cjs → NativeDocxEditor-2LQY2CTV.cjs} +6 -6
- package/dist/{NativeDocxEditor-EJEIJDOC.cjs.map → NativeDocxEditor-2LQY2CTV.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-IMAZICIZ.cjs → WorkspaceTableView-J3C6VH4T.cjs} +8 -8
- package/dist/{WorkspaceTableView-IMAZICIZ.cjs.map → WorkspaceTableView-J3C6VH4T.cjs.map} +1 -1
- package/dist/agents/index.cjs +297 -297
- package/dist/{ai-7U4B4CVF.cjs → ai-IM4A23YT.cjs} +24 -24
- package/dist/ai-IM4A23YT.cjs.map +1 -0
- package/dist/calls/index.cjs +121 -121
- package/dist/chat/DraftingDocChip.d.ts +3 -1
- package/dist/chat/DraftingDocChip.js +7 -4
- package/dist/chat/DraftingDocChip.js.map +2 -2
- package/dist/chat/index.cjs +37 -37
- package/dist/{chunk-4ED7CNOX.cjs → chunk-2CSLFAGF.cjs} +430 -150
- package/dist/chunk-2CSLFAGF.cjs.map +1 -0
- package/dist/{chunk-Q6DQGGP4.cjs → chunk-325GVZE6.cjs} +3 -3
- package/dist/{chunk-Q6DQGGP4.cjs.map → chunk-325GVZE6.cjs.map} +1 -1
- package/dist/{chunk-LFRNBT2I.cjs → chunk-557MJ4IH.cjs} +20 -20
- package/dist/{chunk-LFRNBT2I.cjs.map → chunk-557MJ4IH.cjs.map} +1 -1
- package/dist/{chunk-JSQQV23D.cjs → chunk-6UTKM5AB.cjs} +3 -3
- package/dist/{chunk-JSQQV23D.cjs.map → chunk-6UTKM5AB.cjs.map} +1 -1
- package/dist/{chunk-H5OLHP2U.cjs → chunk-7OPOPYV6.cjs} +3 -3
- package/dist/{chunk-H5OLHP2U.cjs.map → chunk-7OPOPYV6.cjs.map} +1 -1
- package/dist/{chunk-AHT6DQNI.cjs → chunk-B2HNNG25.cjs} +50 -50
- package/dist/{chunk-AHT6DQNI.cjs.map → chunk-B2HNNG25.cjs.map} +1 -1
- package/dist/{chunk-WW6LXQY6.cjs → chunk-B3LZITVF.cjs} +12 -12
- package/dist/{chunk-WW6LXQY6.cjs.map → chunk-B3LZITVF.cjs.map} +1 -1
- package/dist/{chunk-V5IMYLYK.cjs → chunk-BQ5RIWWT.cjs} +3 -3
- package/dist/{chunk-V5IMYLYK.cjs.map → chunk-BQ5RIWWT.cjs.map} +1 -1
- package/dist/{chunk-INEPPS4H.cjs → chunk-COD5ENHK.cjs} +4 -4
- package/dist/{chunk-INEPPS4H.cjs.map → chunk-COD5ENHK.cjs.map} +1 -1
- package/dist/{chunk-MC4F2URI.cjs → chunk-CPG7II4E.cjs} +28 -28
- package/dist/{chunk-MC4F2URI.cjs.map → chunk-CPG7II4E.cjs.map} +1 -1
- package/dist/{chunk-7XT5B2DZ.cjs → chunk-CPR6EHG7.cjs} +47 -47
- package/dist/{chunk-7XT5B2DZ.cjs.map → chunk-CPR6EHG7.cjs.map} +1 -1
- package/dist/{chunk-3U36VYMD.cjs → chunk-DDIW4HLU.cjs} +27 -27
- package/dist/{chunk-3U36VYMD.cjs.map → chunk-DDIW4HLU.cjs.map} +1 -1
- package/dist/chunk-HB2O4THB.cjs +18 -0
- package/dist/{chunk-ZZA756I4.cjs.map → chunk-HB2O4THB.cjs.map} +1 -1
- package/dist/{chunk-IFOGBMAE.cjs → chunk-KLMNCBLY.cjs} +9 -6
- package/dist/chunk-KLMNCBLY.cjs.map +1 -0
- package/dist/{chunk-TDN33HSK.cjs → chunk-KTQOGT2L.cjs} +6 -6
- package/dist/{chunk-TDN33HSK.cjs.map → chunk-KTQOGT2L.cjs.map} +1 -1
- package/dist/{chunk-UUENH4BJ.cjs → chunk-KXIRVKCJ.cjs} +3 -3
- package/dist/{chunk-UUENH4BJ.cjs.map → chunk-KXIRVKCJ.cjs.map} +1 -1
- package/dist/{chunk-436I7PQL.cjs → chunk-NIE3N6OM.cjs} +9 -9
- package/dist/{chunk-436I7PQL.cjs.map → chunk-NIE3N6OM.cjs.map} +1 -1
- package/dist/{chunk-XKDUPU7B.cjs → chunk-NJCK6V6U.cjs} +4 -4
- package/dist/{chunk-XKDUPU7B.cjs.map → chunk-NJCK6V6U.cjs.map} +1 -1
- package/dist/{chunk-5QUL5BZO.cjs → chunk-NNUK5ZM7.cjs} +4 -4
- package/dist/{chunk-5QUL5BZO.cjs.map → chunk-NNUK5ZM7.cjs.map} +1 -1
- package/dist/{chunk-4NPCDS2X.cjs → chunk-NY3YUCOW.cjs} +3 -3
- package/dist/{chunk-4NPCDS2X.cjs.map → chunk-NY3YUCOW.cjs.map} +1 -1
- package/dist/{chunk-6DCIZA3X.cjs → chunk-OEREKAAP.cjs} +75 -75
- package/dist/{chunk-6DCIZA3X.cjs.map → chunk-OEREKAAP.cjs.map} +1 -1
- package/dist/{chunk-3ODEWSRO.cjs → chunk-P77YTTJ3.cjs} +4 -4
- package/dist/{chunk-3ODEWSRO.cjs.map → chunk-P77YTTJ3.cjs.map} +1 -1
- package/dist/{chunk-3R6YHJ3G.cjs → chunk-QHOHDNBU.cjs} +6 -6
- package/dist/{chunk-3R6YHJ3G.cjs.map → chunk-QHOHDNBU.cjs.map} +1 -1
- package/dist/{chunk-LYTIQQQ2.cjs → chunk-R7CJEIA5.cjs} +3 -3
- package/dist/{chunk-LYTIQQQ2.cjs.map → chunk-R7CJEIA5.cjs.map} +1 -1
- package/dist/{chunk-MGQSLMTC.cjs → chunk-SB4M3ITT.cjs} +239 -85
- package/dist/chunk-SB4M3ITT.cjs.map +1 -0
- package/dist/{chunk-2W5E62EY.cjs → chunk-SGYSDABK.cjs} +6 -6
- package/dist/{chunk-2W5E62EY.cjs.map → chunk-SGYSDABK.cjs.map} +1 -1
- package/dist/{chunk-UNDQYTRF.cjs → chunk-T23UTIRI.cjs} +6 -6
- package/dist/{chunk-UNDQYTRF.cjs.map → chunk-T23UTIRI.cjs.map} +1 -1
- package/dist/{chunk-E4BLRF2L.cjs → chunk-TDO5UWXF.cjs} +5 -5
- package/dist/{chunk-E4BLRF2L.cjs.map → chunk-TDO5UWXF.cjs.map} +1 -1
- package/dist/{chunk-4IOYQLKG.cjs → chunk-TP5PGWIO.cjs} +3 -3
- package/dist/{chunk-4IOYQLKG.cjs.map → chunk-TP5PGWIO.cjs.map} +1 -1
- package/dist/{chunk-7X3FS5HQ.cjs → chunk-TT4IF52H.cjs} +35 -35
- package/dist/{chunk-7X3FS5HQ.cjs.map → chunk-TT4IF52H.cjs.map} +1 -1
- package/dist/{chunk-NHHEMBXQ.cjs → chunk-VGCTYTEW.cjs} +22 -14
- package/dist/chunk-VGCTYTEW.cjs.map +1 -0
- package/dist/{chunk-HM5L4SBC.cjs → chunk-VKH3BEZE.cjs} +3 -3
- package/dist/{chunk-HM5L4SBC.cjs.map → chunk-VKH3BEZE.cjs.map} +1 -1
- package/dist/{chunk-GQXPNIRE.cjs → chunk-WAV762GP.cjs} +6 -6
- package/dist/{chunk-GQXPNIRE.cjs.map → chunk-WAV762GP.cjs.map} +1 -1
- package/dist/{chunk-MZ2KZXNU.cjs → chunk-WXUU3COI.cjs} +3 -3
- package/dist/{chunk-MZ2KZXNU.cjs.map → chunk-WXUU3COI.cjs.map} +1 -1
- package/dist/{chunk-BW5MF464.cjs → chunk-XKVPSOKP.cjs} +4 -4
- package/dist/{chunk-BW5MF464.cjs.map → chunk-XKVPSOKP.cjs.map} +1 -1
- package/dist/{chunk-57EE6CMW.cjs → chunk-Y24V6HPR.cjs} +15 -15
- package/dist/{chunk-57EE6CMW.cjs.map → chunk-Y24V6HPR.cjs.map} +1 -1
- package/dist/{chunk-ET3NVY27.cjs → chunk-YGBHY67W.cjs} +5 -5
- package/dist/{chunk-ET3NVY27.cjs.map → chunk-YGBHY67W.cjs.map} +1 -1
- package/dist/{chunk-7TEUGFIL.cjs → chunk-YGXOKB5Z.cjs} +4 -4
- package/dist/{chunk-7TEUGFIL.cjs.map → chunk-YGXOKB5Z.cjs.map} +1 -1
- package/dist/connect/docx.cjs +23 -23
- package/dist/connect/index.cjs +1231 -1069
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +33 -33
- package/dist/connection/conversation/ConnectedConversation.js +143 -55
- package/dist/connection/conversation/ConnectedConversation.js.map +2 -2
- package/dist/connection/conversation/ConversationSendButton.d.ts +1 -0
- package/dist/connection/conversation/ConversationSendButton.js +3 -2
- package/dist/connection/conversation/ConversationSendButton.js.map +2 -2
- package/dist/connection/conversation/DocumentTargetNotice.d.ts +7 -0
- package/dist/connection/conversation/DocumentTargetNotice.js +45 -0
- package/dist/connection/conversation/DocumentTargetNotice.js.map +7 -0
- package/dist/connection/conversation/documentSwitch.d.ts +9 -0
- package/dist/connection/conversation/documentSwitch.js +40 -0
- package/dist/connection/conversation/documentSwitch.js.map +7 -0
- package/dist/connection/docx/ConnectedNativeDocxEditor.js +10 -2
- package/dist/connection/docx/ConnectedNativeDocxEditor.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +124 -21
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/VersionDropdown.d.ts +9 -0
- package/dist/connection/viewer/VersionDropdown.js +39 -0
- package/dist/connection/viewer/VersionDropdown.js.map +7 -0
- package/dist/connection/viewer/ViewerPdfPane.js +4 -1
- package/dist/connection/viewer/ViewerPdfPane.js.map +2 -2
- package/dist/connection/viewer/useViewerBlobs.d.ts +3 -1
- package/dist/connection/viewer/useViewerBlobs.js +14 -8
- package/dist/connection/viewer/useViewerBlobs.js.map +2 -2
- package/dist/connection/viewer/useViewerTabs.js +10 -0
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/dashboards/index.cjs +1 -1
- package/dist/docx/DocxCommandMenu.d.ts +8 -0
- package/dist/docx/DocxCommandMenu.js +202 -0
- package/dist/docx/DocxCommandMenu.js.map +7 -0
- package/dist/docx/NativeDocxEditor.d.ts +4 -2
- package/dist/docx/NativeDocxEditor.js +54 -13
- package/dist/docx/NativeDocxEditor.js.map +2 -2
- package/dist/docx/RibbonMenu.d.ts +3 -1
- package/dist/docx/RibbonMenu.js +10 -3
- package/dist/docx/RibbonMenu.js.map +2 -2
- package/dist/docx/RibbonOverflow.d.ts +3 -0
- package/dist/docx/RibbonOverflow.js +24 -1
- package/dist/docx/RibbonOverflow.js.map +2 -2
- package/dist/docx/index.cjs +38 -38
- package/dist/docx/signatures/SignatureFields.d.ts +5 -1
- package/dist/docx/signatures/SignatureFields.js +57 -10
- package/dist/docx/signatures/SignatureFields.js.map +2 -2
- package/dist/embed/index.cjs +38 -38
- package/dist/files/index.cjs +224 -224
- package/dist/index.cjs +1731 -1731
- package/dist/settings/index.cjs +147 -147
- package/dist/shell/index.cjs +90 -90
- package/dist/site/index.cjs +5 -5
- package/dist/studio/index.cjs +27 -27
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +54 -54
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/docx/styles.css +94 -0
- package/dist/ai-7U4B4CVF.cjs.map +0 -1
- package/dist/chunk-4ED7CNOX.cjs.map +0 -1
- package/dist/chunk-IFOGBMAE.cjs.map +0 -1
- package/dist/chunk-MGQSLMTC.cjs.map +0 -1
- package/dist/chunk-NHHEMBXQ.cjs.map +0 -1
- package/dist/chunk-ZZA756I4.cjs +0 -18
|
@@ -19,6 +19,7 @@ function DraftingDocChip({
|
|
|
19
19
|
state = "bound",
|
|
20
20
|
onAttach,
|
|
21
21
|
onDetach,
|
|
22
|
+
disabled = false,
|
|
22
23
|
className,
|
|
23
24
|
labels,
|
|
24
25
|
testId = "drafting-doc-chip"
|
|
@@ -37,12 +38,13 @@ function DraftingDocChip({
|
|
|
37
38
|
{
|
|
38
39
|
type: "button",
|
|
39
40
|
onClick: onAttach,
|
|
41
|
+
disabled,
|
|
40
42
|
className: cn(
|
|
41
43
|
CHIP,
|
|
42
|
-
"border-dashed border-border hover:border-primary/60 hover:text-foreground",
|
|
44
|
+
"border-dashed border-border hover:border-primary/60 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
43
45
|
className
|
|
44
46
|
),
|
|
45
|
-
title: `${text2}. ${l.attachHint}`,
|
|
47
|
+
title: disabled ? "Wait for the current turn or document switch to finish." : `${text2}. ${l.attachHint}`,
|
|
46
48
|
"data-testid": `${testId}-attach`,
|
|
47
49
|
children: [
|
|
48
50
|
/* @__PURE__ */ jsx(PenLine, { className: "size-3.5 shrink-0", "aria-hidden": true }),
|
|
@@ -73,9 +75,10 @@ function DraftingDocChip({
|
|
|
73
75
|
{
|
|
74
76
|
type: "button",
|
|
75
77
|
onClick: onDetach,
|
|
76
|
-
|
|
78
|
+
disabled,
|
|
79
|
+
className: "flex size-5 shrink-0 items-center justify-center rounded hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
77
80
|
"aria-label": l.detach,
|
|
78
|
-
title: l.detach,
|
|
81
|
+
title: disabled ? "Wait for the current turn or document switch to finish." : l.detach,
|
|
79
82
|
"data-testid": `${testId}-detach`,
|
|
80
83
|
children: /* @__PURE__ */ jsx(X, { className: "size-3", "aria-hidden": true })
|
|
81
84
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/chat/DraftingDocChip.tsx"],
|
|
4
|
-
"sourcesContent": ["import { PenLine, X } from 'lucide-react'\nimport { cn } from '@arbidocs/react/ui'\nimport { assistantCopy, useAssistantCopy } from '@arbidocs/react/shell'\n\n/** Every fixed string of the chip. Pass a partial `labels` to translate or reword. */\nexport interface DraftingDocChipLabels {\n /** `{title}` is the thread's document. */\n drafting: string\n /** What it means, on hover. */\n hint: string\n /** The attach offer in a thread not bound to the open document; `{title}` is its name. */\n attach: string\n /** What attaching does, on hover. */\n attachHint: string\n /** Unbind the thread from its document. */\n detach: string\n /** A thread bound to a document this person cannot open (another member's private document). */\n unavailable: string\n /** What that means, on hover. */\n unavailableHint: string\n}\n\n/** ARBI's own phrases (the defaults below). */\nconst ARBI = assistantCopy()\n\nexport const DEFAULT_DRAFTING_DOC_CHIP_LABELS: DraftingDocChipLabels = {\n drafting: 'Drafting in {title}',\n hint: ARBI.draftingHint,\n attach: 'Draft in {title}',\n attachHint: ARBI.draftingAttachHint,\n detach: 'Stop drafting in this document',\n unavailable: 'Drafting in a document you cannot open',\n unavailableHint:\n 'This thread is bound to a document you do not have access to. Your questions here only get answers; unbind it to draft in another document.',\n}\n\nexport interface DraftingDocChipProps {\n /** The document's name. */\n title: string\n /**\n * `bound`: the thread drafts in the document (every turn names it). `attach`: the document is\n * open but the thread is not bound to it; clicking binds it (`onAttach`). `unavailable`: the\n * thread is bound to a document this person cannot open (`title` is not shown).\n */\n state?: 'bound' | 'attach' | 'unavailable'\n /** Bind the thread to the open document (the `attach` state). */\n onAttach?: () => void\n /** Unbind the thread (the `bound` state). Absent: not offered. */\n onDetach?: () => void\n className?: string\n labels?: Partial<DraftingDocChipLabels>\n testId?: string\n}\n\nconst CHIP =\n 'flex h-7 min-w-0 max-w-[16rem] items-center gap-1.5 rounded-md border bg-card px-2 text-xs text-muted-foreground'\n\n/**\n * Drafting mode, said in the composer. A thread drafts in a document only when it is bound to it\n * (started from it, attached in it, or made in it): then the chip says so, and the assistant reads\n * the document on demand and edits it granularly as tracked changes, never as a whole document\n * resent each turn (that is what a pin is for). A document merely open beside an unbound thread is\n * offered as an explicit attach: being open never makes a question an edit.\n */\nexport function DraftingDocChip({\n title,\n state = 'bound',\n onAttach,\n onDetach,\n className,\n labels,\n testId = 'drafting-doc-chip',\n}: DraftingDocChipProps) {\n const assistant = useAssistantCopy()\n const l = {\n ...DEFAULT_DRAFTING_DOC_CHIP_LABELS,\n hint: assistant.draftingHint,\n attachHint: assistant.draftingAttachHint,\n ...labels,\n }\n if (state === 'attach') {\n const text = l.attach.replace('{title}', title)\n return (\n <button\n type=\"button\"\n onClick={onAttach}\n className={cn(\n CHIP,\n 'border-dashed border-border hover:border-primary/60 hover:text-foreground',\n className\n )}\n title={`${text}. ${l.attachHint}
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { PenLine, X } from 'lucide-react'\nimport { cn } from '@arbidocs/react/ui'\nimport { assistantCopy, useAssistantCopy } from '@arbidocs/react/shell'\n\n/** Every fixed string of the chip. Pass a partial `labels` to translate or reword. */\nexport interface DraftingDocChipLabels {\n /** `{title}` is the thread's document. */\n drafting: string\n /** What it means, on hover. */\n hint: string\n /** The attach offer in a thread not bound to the open document; `{title}` is its name. */\n attach: string\n /** What attaching does, on hover. */\n attachHint: string\n /** Unbind the thread from its document. */\n detach: string\n /** A thread bound to a document this person cannot open (another member's private document). */\n unavailable: string\n /** What that means, on hover. */\n unavailableHint: string\n}\n\n/** ARBI's own phrases (the defaults below). */\nconst ARBI = assistantCopy()\n\nexport const DEFAULT_DRAFTING_DOC_CHIP_LABELS: DraftingDocChipLabels = {\n drafting: 'Drafting in {title}',\n hint: ARBI.draftingHint,\n attach: 'Draft in {title}',\n attachHint: ARBI.draftingAttachHint,\n detach: 'Stop drafting in this document',\n unavailable: 'Drafting in a document you cannot open',\n unavailableHint:\n 'This thread is bound to a document you do not have access to. Your questions here only get answers; unbind it to draft in another document.',\n}\n\nexport interface DraftingDocChipProps {\n /** The document's name. */\n title: string\n /**\n * `bound`: the thread drafts in the document (every turn names it). `attach`: the document is\n * open but the thread is not bound to it; clicking binds it (`onAttach`). `unavailable`: the\n * thread is bound to a document this person cannot open (`title` is not shown).\n */\n state?: 'bound' | 'attach' | 'unavailable'\n /** Bind the thread to the open document (the `attach` state). */\n onAttach?: () => void\n /** Unbind the thread (the `bound` state). Absent: not offered. */\n onDetach?: () => void\n /** A turn or binding update is in progress. */\n disabled?: boolean\n className?: string\n labels?: Partial<DraftingDocChipLabels>\n testId?: string\n}\n\nconst CHIP =\n 'flex h-7 min-w-0 max-w-[16rem] items-center gap-1.5 rounded-md border bg-card px-2 text-xs text-muted-foreground'\n\n/**\n * Drafting mode, said in the composer. A thread drafts in a document only when it is bound to it\n * (started from it, attached in it, or made in it): then the chip says so, and the assistant reads\n * the document on demand and edits it granularly as tracked changes, never as a whole document\n * resent each turn (that is what a pin is for). A document merely open beside an unbound thread is\n * offered as an explicit attach: being open never makes a question an edit.\n */\nexport function DraftingDocChip({\n title,\n state = 'bound',\n onAttach,\n onDetach,\n disabled = false,\n className,\n labels,\n testId = 'drafting-doc-chip',\n}: DraftingDocChipProps) {\n const assistant = useAssistantCopy()\n const l = {\n ...DEFAULT_DRAFTING_DOC_CHIP_LABELS,\n hint: assistant.draftingHint,\n attachHint: assistant.draftingAttachHint,\n ...labels,\n }\n if (state === 'attach') {\n const text = l.attach.replace('{title}', title)\n return (\n <button\n type=\"button\"\n onClick={onAttach}\n disabled={disabled}\n className={cn(\n CHIP,\n 'border-dashed border-border hover:border-primary/60 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n title={\n disabled\n ? 'Wait for the current turn or document switch to finish.'\n : `${text}. ${l.attachHint}`\n }\n data-testid={`${testId}-attach`}\n >\n <PenLine className=\"size-3.5 shrink-0\" aria-hidden />\n <span className=\"truncate\">{text}</span>\n </button>\n )\n }\n const unavailable = state === 'unavailable'\n const text = unavailable ? l.unavailable : l.drafting.replace('{title}', title)\n return (\n <span\n className={cn(CHIP, 'border-border', onDetach && 'pr-0.5', className)}\n title={`${text}. ${unavailable ? l.unavailableHint : l.hint}`}\n data-testid={unavailable ? `${testId}-unavailable` : testId}\n >\n <PenLine\n className={cn('size-3.5 shrink-0', unavailable ? 'text-muted-foreground' : 'text-primary')}\n aria-hidden\n />\n <span className=\"truncate\">{text}</span>\n {onDetach && (\n <button\n type=\"button\"\n onClick={onDetach}\n disabled={disabled}\n className=\"flex size-5 shrink-0 items-center justify-center rounded hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n aria-label={l.detach}\n title={disabled ? 'Wait for the current turn or document switch to finish.' : l.detach}\n data-testid={`${testId}-detach`}\n >\n <X className=\"size-3\" aria-hidden />\n </button>\n )}\n </span>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAsFM,SAgBE,KAhBF;AAtFN,SAAS,SAAS,SAAS;AAC3B,SAAS,UAAU;AACnB,SAAS,eAAe,wBAAwB;AAqBhD,MAAM,OAAO,cAAc;AAEpB,MAAM,mCAA0D;AAAA,EACrE,UAAU;AAAA,EACV,MAAM,KAAK;AAAA,EACX,QAAQ;AAAA,EACR,YAAY,KAAK;AAAA,EACjB,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,iBACE;AACJ;AAsBA,MAAM,OACJ;AASK,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA,SAAS;AACX,GAAyB;AACvB,QAAM,YAAY,iBAAiB;AACnC,QAAM,IAAI;AAAA,IACR,GAAG;AAAA,IACH,MAAM,UAAU;AAAA,IAChB,YAAY,UAAU;AAAA,IACtB,GAAG;AAAA,EACL;AACA,MAAI,UAAU,UAAU;AACtB,UAAMA,QAAO,EAAE,OAAO,QAAQ,WAAW,KAAK;AAC9C,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,SAAS;AAAA,QACT;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,OACE,WACI,4DACA,GAAGA,KAAI,KAAK,EAAE,UAAU;AAAA,QAE9B,eAAa,GAAG,MAAM;AAAA,QAEtB;AAAA,8BAAC,WAAQ,WAAU,qBAAoB,eAAW,MAAC;AAAA,UACnD,oBAAC,UAAK,WAAU,YAAY,UAAAA,OAAK;AAAA;AAAA;AAAA,IACnC;AAAA,EAEJ;AACA,QAAM,cAAc,UAAU;AAC9B,QAAM,OAAO,cAAc,EAAE,cAAc,EAAE,SAAS,QAAQ,WAAW,KAAK;AAC9E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,MAAM,iBAAiB,YAAY,UAAU,SAAS;AAAA,MACpE,OAAO,GAAG,IAAI,KAAK,cAAc,EAAE,kBAAkB,EAAE,IAAI;AAAA,MAC3D,eAAa,cAAc,GAAG,MAAM,iBAAiB;AAAA,MAErD;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,GAAG,qBAAqB,cAAc,0BAA0B,cAAc;AAAA,YACzF,eAAW;AAAA;AAAA,QACb;AAAA,QACA,oBAAC,UAAK,WAAU,YAAY,gBAAK;AAAA,QAChC,YACC;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAS;AAAA,YACT;AAAA,YACA,WAAU;AAAA,YACV,cAAY,EAAE;AAAA,YACd,OAAO,WAAW,4DAA4D,EAAE;AAAA,YAChF,eAAa,GAAG,MAAM;AAAA,YAEtB,8BAAC,KAAE,WAAU,UAAS,eAAW,MAAC;AAAA;AAAA,QACpC;AAAA;AAAA;AAAA,EAEJ;AAEJ;",
|
|
6
6
|
"names": ["text"]
|
|
7
7
|
}
|
package/dist/chat/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkCJYWHUZR_cjs = require('../chunk-CJYWHUZR.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkKLMNCBLY_cjs = require('../chunk-KLMNCBLY.cjs');
|
|
6
6
|
var chunkPGJYD67F_cjs = require('../chunk-PGJYD67F.cjs');
|
|
7
7
|
var chunk5SKHK3BG_cjs = require('../chunk-5SKHK3BG.cjs');
|
|
8
8
|
var chunkIDCD5TEZ_cjs = require('../chunk-IDCD5TEZ.cjs');
|
|
@@ -26,10 +26,10 @@ require('../chunk-UDSHVNU3.cjs');
|
|
|
26
26
|
require('../chunk-IPSHAMO2.cjs');
|
|
27
27
|
var chunkZBP4ZSAJ_cjs = require('../chunk-ZBP4ZSAJ.cjs');
|
|
28
28
|
require('../chunk-PPCATBOY.cjs');
|
|
29
|
-
require('../chunk-LJJJ6CYH.cjs');
|
|
30
29
|
require('../chunk-TKHCIHE2.cjs');
|
|
31
30
|
require('../chunk-JDFBEGQO.cjs');
|
|
32
31
|
require('../chunk-ULWRNGGE.cjs');
|
|
32
|
+
require('../chunk-LJJJ6CYH.cjs');
|
|
33
33
|
require('../chunk-PLIF5CUV.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
@@ -40,143 +40,143 @@ Object.defineProperty(exports, "AssistantToaster", {
|
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "ComposerAccessories", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkKLMNCBLY_cjs.ComposerAccessories; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "ComposerTools", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkKLMNCBLY_cjs.ComposerTools; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "ContextActionButton", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkKLMNCBLY_cjs.ContextActionButton; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "ContextCheckRow", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkKLMNCBLY_cjs.ContextCheckRow; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "ContextPanelContent", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkKLMNCBLY_cjs.ContextPanelContent; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "ContextPanelFooter", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkKLMNCBLY_cjs.ContextPanelFooter; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "ContextPanelTabs", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkKLMNCBLY_cjs.ContextPanelTabs; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "ContextPickerList", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkKLMNCBLY_cjs.ContextPickerList; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "ContextPickerRow", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkKLMNCBLY_cjs.ContextPickerRow; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "ContextSearchInput", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkKLMNCBLY_cjs.ContextSearchInput; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "Conversation", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkKLMNCBLY_cjs.Conversation; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "ConversationBody", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationBody; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "ConversationHeader", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationHeader; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "ConversationHeaderActions", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationHeaderActions; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "ConversationHistoryPane", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationHistoryPane; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "ConversationLoading", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationLoading; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "ConversationMain", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationMain; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "ConversationRoot", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationRoot; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "ConversationSearchView", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationSearchView; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "ConversationSettingsButton", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkKLMNCBLY_cjs.ConversationSettingsButton; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_LAYOUT_LABELS", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkKLMNCBLY_cjs.DEFAULT_CONVERSATION_LAYOUT_LABELS; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_PARTS_LABELS", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkKLMNCBLY_cjs.DEFAULT_CONVERSATION_PARTS_LABELS; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_SEARCH_LABELS", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkKLMNCBLY_cjs.DEFAULT_CONVERSATION_SEARCH_LABELS; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "DEFAULT_DRAFTING_DOC_CHIP_LABELS", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkKLMNCBLY_cjs.DEFAULT_DRAFTING_DOC_CHIP_LABELS; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "DEFAULT_LABEL_PIN_ROW_LABELS", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkKLMNCBLY_cjs.DEFAULT_LABEL_PIN_ROW_LABELS; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "DEFAULT_PENDING_ANSWER_BAR_LABELS", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkKLMNCBLY_cjs.DEFAULT_PENDING_ANSWER_BAR_LABELS; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "DEFAULT_PINNED_DOC_CHIP_LABELS", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkKLMNCBLY_cjs.DEFAULT_PINNED_DOC_CHIP_LABELS; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "DraftingDocChip", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkKLMNCBLY_cjs.DraftingDocChip; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "LabelPinRow", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkKLMNCBLY_cjs.LabelPinRow; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "NewChatButton", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkKLMNCBLY_cjs.NewChatButton; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "NewPaChatButton", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkKLMNCBLY_cjs.NewPaChatButton; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "PaModeBadge", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkKLMNCBLY_cjs.PaModeBadge; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "PendingAnswerBar", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkKLMNCBLY_cjs.PendingAnswerBar; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "PinnedDocChip", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkKLMNCBLY_cjs.PinnedDocChip; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "useDismissibleCard", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkKLMNCBLY_cjs.useDismissibleCard; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "AssistantDock", {
|
|
182
182
|
enumerable: true,
|