@arbidocs/blocks 0.4.127 → 0.4.128
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/agents/index.cjs +303 -303
- package/dist/agents/index.js +11 -11
- package/dist/calls/index.cjs +1 -1
- package/dist/calls/index.js +1 -1
- package/dist/chat/index.cjs +152 -135
- package/dist/chat/index.d.ts +1 -0
- package/dist/chat/index.js +5 -4
- package/dist/chat/open-document.d.ts +66 -0
- package/dist/{chunk-DZI7WOUD.cjs → chunk-3BJLNKOB.cjs} +6 -2
- package/dist/chunk-3BJLNKOB.cjs.map +1 -0
- package/dist/{chunk-2PNNCEPH.js → chunk-54ANPPMV.js} +4 -4
- package/dist/{chunk-2PNNCEPH.js.map → chunk-54ANPPMV.js.map} +1 -1
- package/dist/{chunk-T6I6ZCBE.js → chunk-7BJRLP3U.js} +7 -4
- package/dist/chunk-7BJRLP3U.js.map +1 -0
- package/dist/{chunk-2DFDFOM7.js → chunk-7HAM7Y5U.js} +3 -3
- package/dist/{chunk-2DFDFOM7.js.map → chunk-7HAM7Y5U.js.map} +1 -1
- package/dist/{chunk-6Z72CXZR.js → chunk-CJBN5HIS.js} +6 -2
- package/dist/chunk-CJBN5HIS.js.map +1 -0
- package/dist/{chunk-PUCY3UXN.js → chunk-CXLVI3SB.js} +3 -3
- package/dist/{chunk-PUCY3UXN.js.map → chunk-CXLVI3SB.js.map} +1 -1
- package/dist/{chunk-KYDRUFWT.cjs → chunk-D4YR56FV.cjs} +5 -5
- package/dist/{chunk-KYDRUFWT.cjs.map → chunk-D4YR56FV.cjs.map} +1 -1
- package/dist/{chunk-ZLRQ5K77.cjs → chunk-FSBY2S4V.cjs} +8 -5
- package/dist/chunk-FSBY2S4V.cjs.map +1 -0
- package/dist/chunk-GYCQ3FNL.js +60 -0
- package/dist/chunk-GYCQ3FNL.js.map +1 -0
- package/dist/{chunk-6AALMYPS.cjs → chunk-HM23LXUP.cjs} +3 -3
- package/dist/{chunk-6AALMYPS.cjs.map → chunk-HM23LXUP.cjs.map} +1 -1
- package/dist/{chunk-T2CVFK2I.js → chunk-KLOSOT26.js} +11 -11
- package/dist/{chunk-T2CVFK2I.js.map → chunk-KLOSOT26.js.map} +1 -1
- package/dist/{chunk-SARREDFP.cjs → chunk-LC2KJSUS.cjs} +46 -46
- package/dist/{chunk-SARREDFP.cjs.map → chunk-LC2KJSUS.cjs.map} +1 -1
- package/dist/{chunk-XFKF3WRN.cjs → chunk-NZUQFF35.cjs} +5 -5
- package/dist/{chunk-XFKF3WRN.cjs.map → chunk-NZUQFF35.cjs.map} +1 -1
- package/dist/{chunk-5Y7JRY7Y.js → chunk-P5ST47VY.js} +3 -3
- package/dist/{chunk-5Y7JRY7Y.js.map → chunk-P5ST47VY.js.map} +1 -1
- package/dist/chunk-SWQX6CTT.cjs +65 -0
- package/dist/chunk-SWQX6CTT.cjs.map +1 -0
- package/dist/{chunk-ENDP7JER.js → chunk-VW2C2AZL.js} +3 -3
- package/dist/{chunk-ENDP7JER.js.map → chunk-VW2C2AZL.js.map} +1 -1
- package/dist/{chunk-MCPRNDOJ.cjs → chunk-W27VK32R.cjs} +79 -79
- package/dist/{chunk-MCPRNDOJ.cjs.map → chunk-W27VK32R.cjs.map} +1 -1
- package/dist/{chunk-PJJY6CYL.cjs → chunk-WV4IDVDQ.cjs} +11 -11
- package/dist/{chunk-PJJY6CYL.cjs.map → chunk-WV4IDVDQ.cjs.map} +1 -1
- package/dist/{chunk-UUXKB3WQ.js → chunk-ZCHSJUCI.js} +3 -3
- package/dist/{chunk-UUXKB3WQ.js.map → chunk-ZCHSJUCI.js.map} +1 -1
- package/dist/{chunk-NYHGG2IA.cjs → chunk-ZV3BKLFY.cjs} +3 -3
- package/dist/{chunk-NYHGG2IA.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +9 -9
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +4 -3
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +3 -2
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +53 -51
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +19 -17
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/mail/types.d.ts +2 -6
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/home/index.cjs +17 -17
- package/dist/home/index.js +3 -3
- package/dist/index.cjs +645 -628
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -20
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +11 -11
- package/dist/settings/index.js +3 -3
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +7 -6
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +6 -5
- package/dist/studio/index.js.map +1 -1
- package/dist/workflow-canvas/index.cjs +62 -62
- package/dist/workflow-canvas/index.js +11 -11
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/docx/README.md +7 -3
- package/dist/chunk-6Z72CXZR.js.map +0 -1
- package/dist/chunk-DZI7WOUD.cjs.map +0 -1
- package/dist/chunk-T6I6ZCBE.js.map +0 -1
- package/dist/chunk-ZLRQ5K77.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
5
4
|
var chunkOR4CO743_cjs = require('../chunk-OR4CO743.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkFSBY2S4V_cjs = require('../chunk-FSBY2S4V.cjs');
|
|
6
|
+
var chunk3BJLNKOB_cjs = require('../chunk-3BJLNKOB.cjs');
|
|
8
7
|
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
9
8
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
10
9
|
require('../chunk-S24XEVPS.cjs');
|
|
11
10
|
require('../chunk-V5OAXIBN.cjs');
|
|
12
11
|
require('../chunk-5FYU7ZIU.cjs');
|
|
13
|
-
var
|
|
12
|
+
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
13
|
+
var chunkD4YR56FV_cjs = require('../chunk-D4YR56FV.cjs');
|
|
14
14
|
var chunkO6IEZDRC_cjs = require('../chunk-O6IEZDRC.cjs');
|
|
15
15
|
var chunkI2QSDQQV_cjs = require('../chunk-I2QSDQQV.cjs');
|
|
16
16
|
require('../chunk-RC25WMVB.cjs');
|
|
17
|
-
var
|
|
18
|
-
require('../chunk-
|
|
17
|
+
var chunkLC2KJSUS_cjs = require('../chunk-LC2KJSUS.cjs');
|
|
18
|
+
require('../chunk-7D737FLE.cjs');
|
|
19
19
|
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
20
|
+
require('../chunk-DETZZBG2.cjs');
|
|
20
21
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
21
22
|
require('../chunk-C2CWWEHO.cjs');
|
|
22
|
-
require('../chunk-7D737FLE.cjs');
|
|
23
23
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
24
24
|
require('../chunk-ADOKTJHV.cjs');
|
|
25
25
|
var chunkZAVEMQ37_cjs = require('../chunk-ZAVEMQ37.cjs');
|
|
26
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
27
26
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
28
|
-
var
|
|
27
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
28
|
+
var chunkWV4IDVDQ_cjs = require('../chunk-WV4IDVDQ.cjs');
|
|
29
29
|
require('../chunk-B6MVQCXW.cjs');
|
|
30
|
-
var
|
|
30
|
+
var chunkSWQX6CTT_cjs = require('../chunk-SWQX6CTT.cjs');
|
|
31
|
+
var chunkHM23LXUP_cjs = require('../chunk-HM23LXUP.cjs');
|
|
32
|
+
require('../chunk-7UTB4PHM.cjs');
|
|
31
33
|
require('../chunk-32HW2Q33.cjs');
|
|
32
34
|
require('../chunk-FX3K6LNZ.cjs');
|
|
33
|
-
require('../chunk-7UTB4PHM.cjs');
|
|
34
35
|
require('../chunk-PPCATBOY.cjs');
|
|
35
36
|
require('../chunk-MHVNT4J3.cjs');
|
|
36
37
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
@@ -123,7 +124,7 @@ function ConnectedWorkspaceActivity({
|
|
|
123
124
|
[feed.data]
|
|
124
125
|
);
|
|
125
126
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
126
|
-
|
|
127
|
+
chunkD4YR56FV_cjs.WorkspaceActivityList,
|
|
127
128
|
{
|
|
128
129
|
...listProps,
|
|
129
130
|
items,
|
|
@@ -149,7 +150,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
149
150
|
});
|
|
150
151
|
if (!workspaceId) return null;
|
|
151
152
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
152
|
-
|
|
153
|
+
chunkD4YR56FV_cjs.WorkspaceNotificationMenu,
|
|
153
154
|
{
|
|
154
155
|
...menuProps,
|
|
155
156
|
level,
|
|
@@ -168,7 +169,7 @@ function ConnectedThreadFollow({
|
|
|
168
169
|
enabled: status === "authenticated"
|
|
169
170
|
});
|
|
170
171
|
if (!conversationId) return null;
|
|
171
|
-
const Control = as === "menu-item" ?
|
|
172
|
+
const Control = as === "menu-item" ? chunkD4YR56FV_cjs.ThreadFollowMenuItem : chunkD4YR56FV_cjs.ThreadFollowButton;
|
|
172
173
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
173
174
|
Control,
|
|
174
175
|
{
|
|
@@ -294,7 +295,7 @@ function StreamedArtifact({
|
|
|
294
295
|
}
|
|
295
296
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
296
297
|
function formValues(step, inputs) {
|
|
297
|
-
const fields =
|
|
298
|
+
const fields = chunkHM23LXUP_cjs.stepFields(step);
|
|
298
299
|
if (!fields.length) return void 0;
|
|
299
300
|
if (step.kind === "form")
|
|
300
301
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -329,10 +330,10 @@ function useAnswerRetry(missing, refetch) {
|
|
|
329
330
|
function useWorkflowThread(workflow, options = {}) {
|
|
330
331
|
const arbi = react$1.useArbi();
|
|
331
332
|
const { ensureWorkspaceOpen, status } = chunkMUMH3Z6K_cjs.useConnection();
|
|
332
|
-
const { wsId } =
|
|
333
|
+
const { wsId } = chunkFSBY2S4V_cjs.useWorkspaceDocs();
|
|
333
334
|
const [threadId, setThreadId] = react.useState(options.conversationId);
|
|
334
335
|
const [localInputs, setLocalInputs] = react.useState(
|
|
335
|
-
() =>
|
|
336
|
+
() => chunkHM23LXUP_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
336
337
|
);
|
|
337
338
|
const [edits, setEdits] = react.useState({});
|
|
338
339
|
const [localStates, setLocalStates] = react.useState({});
|
|
@@ -352,12 +353,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
352
353
|
);
|
|
353
354
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
354
355
|
const steps = react.useMemo(
|
|
355
|
-
() =>
|
|
356
|
+
() => chunkHM23LXUP_cjs.workflowSteps(workflow).length > 0 ? chunkHM23LXUP_cjs.workflowSteps(workflow) : chunkLC2KJSUS_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
356
357
|
[workflow, conversation?.plan?.steps]
|
|
357
358
|
);
|
|
358
359
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
359
360
|
const serverStates = react.useMemo(
|
|
360
|
-
() =>
|
|
361
|
+
() => chunkHM23LXUP_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
361
362
|
[activity.data]
|
|
362
363
|
);
|
|
363
364
|
const working = steps.some(
|
|
@@ -400,7 +401,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
400
401
|
async (values, done) => {
|
|
401
402
|
await ensureWorkspaceOpen();
|
|
402
403
|
const created = await createWork.mutateAsync({
|
|
403
|
-
title:
|
|
404
|
+
title: chunkHM23LXUP_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
404
405
|
description: workflow.description || null,
|
|
405
406
|
prompt: null,
|
|
406
407
|
skill_ref: null,
|
|
@@ -412,7 +413,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
412
413
|
criteria: [],
|
|
413
414
|
max_passes: 3,
|
|
414
415
|
documents: [],
|
|
415
|
-
steps:
|
|
416
|
+
steps: chunkLC2KJSUS_cjs.toPlanSteps(workflow, {
|
|
416
417
|
inputs: values,
|
|
417
418
|
resolveWorkflow: options.resolveWorkflow,
|
|
418
419
|
compose: options.compose
|
|
@@ -499,7 +500,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
499
500
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
500
501
|
const needsStart = !threadId || idle && !anyRunning;
|
|
501
502
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
502
|
-
const view =
|
|
503
|
+
const view = chunkLC2KJSUS_cjs.useWorkflowView({
|
|
503
504
|
steps,
|
|
504
505
|
states,
|
|
505
506
|
inputs,
|
|
@@ -542,7 +543,7 @@ function WorkflowRunThread({
|
|
|
542
543
|
if (listed && activeThreadId !== conversationId) selectThread(conversationId);
|
|
543
544
|
}, [listed, activeThreadId, conversationId, selectThread]);
|
|
544
545
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
545
|
-
|
|
546
|
+
chunkWV4IDVDQ_cjs.ChatPage,
|
|
546
547
|
{
|
|
547
548
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
548
549
|
singleThread: true,
|
|
@@ -580,7 +581,7 @@ function WorkflowSignDialog({
|
|
|
580
581
|
const arbi = react$1.useArbi();
|
|
581
582
|
const { user, ensureWorkspaceOpen } = chunkMUMH3Z6K_cjs.useConnection();
|
|
582
583
|
const tools = documentTools.useOptionalDocumentTools();
|
|
583
|
-
const { id, version: stepVersion } =
|
|
584
|
+
const { id, version: stepVersion } = chunkHM23LXUP_cjs.splitDocRef(docRef);
|
|
584
585
|
const [version, setVersion] = react.useState(stepVersion);
|
|
585
586
|
const [pdf, setPdf] = react.useState(null);
|
|
586
587
|
const [preparing, setPreparing] = react.useState(false);
|
|
@@ -658,7 +659,7 @@ function WorkflowWordDialog({
|
|
|
658
659
|
onClose,
|
|
659
660
|
labels
|
|
660
661
|
}) {
|
|
661
|
-
const { id } =
|
|
662
|
+
const { id } = chunkHM23LXUP_cjs.splitDocRef(docRef);
|
|
662
663
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
663
664
|
chunkULWRNGGE_cjs.ModalScaffold,
|
|
664
665
|
{
|
|
@@ -667,7 +668,7 @@ function WorkflowWordDialog({
|
|
|
667
668
|
title: title ?? labels.wordTitle,
|
|
668
669
|
size: "xl",
|
|
669
670
|
testId: "workflow-word-dialog",
|
|
670
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
671
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunk3BJLNKOB_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
671
672
|
}
|
|
672
673
|
);
|
|
673
674
|
}
|
|
@@ -807,7 +808,7 @@ function ConnectedWorkflowRunner({
|
|
|
807
808
|
const dl = { ...DEFAULT_WORKFLOW_RUNNER_DIALOG_LABELS, ...dialogLabels };
|
|
808
809
|
const arbi = react$1.useArbi();
|
|
809
810
|
const { ensureWorkspaceOpen, user } = chunkMUMH3Z6K_cjs.useConnection();
|
|
810
|
-
const { wsId } =
|
|
811
|
+
const { wsId } = chunkFSBY2S4V_cjs.useWorkspaceDocs();
|
|
811
812
|
const { data: docs = [], refetch } = react$1.useDocuments(wsId);
|
|
812
813
|
const [sending, setSending] = react.useState([]);
|
|
813
814
|
const [added, setAdded] = react.useState({});
|
|
@@ -830,7 +831,7 @@ function ConnectedWorkflowRunner({
|
|
|
830
831
|
() => ({
|
|
831
832
|
me: user?.externalId,
|
|
832
833
|
openDocument: onOpenDocument && ((ref) => {
|
|
833
|
-
const { id, version } =
|
|
834
|
+
const { id, version } = chunkHM23LXUP_cjs.splitDocRef(ref);
|
|
834
835
|
onOpenDocument(id, version);
|
|
835
836
|
}),
|
|
836
837
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -840,7 +841,7 @@ function ConnectedWorkflowRunner({
|
|
|
840
841
|
const w = state.waiting;
|
|
841
842
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
842
843
|
}),
|
|
843
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
844
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunkHM23LXUP_cjs.splitDocRef(ref).id) ?? "" })),
|
|
844
845
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
845
846
|
}),
|
|
846
847
|
[user?.externalId, onOpenDocument, onOpenDraft, onOpenMessage, hostActions, nameOfDoc, inThread]
|
|
@@ -976,7 +977,7 @@ function ConnectedWorkflowRunner({
|
|
|
976
977
|
);
|
|
977
978
|
};
|
|
978
979
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
979
|
-
|
|
980
|
+
chunkLC2KJSUS_cjs.WorkflowRunner,
|
|
980
981
|
{
|
|
981
982
|
people,
|
|
982
983
|
...runnerProps,
|
|
@@ -1022,10 +1023,10 @@ function ConnectedWorkflowRunner({
|
|
|
1022
1023
|
) }),
|
|
1023
1024
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1024
1025
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1025
|
-
|
|
1026
|
+
chunkLC2KJSUS_cjs.WorkflowStepBar,
|
|
1026
1027
|
{
|
|
1027
1028
|
run: view,
|
|
1028
|
-
levels:
|
|
1029
|
+
levels: chunkHM23LXUP_cjs.stepLevels(view.steps),
|
|
1029
1030
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
1030
1031
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
1031
1032
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -1045,13 +1046,13 @@ function ConnectedWorkflowRunner({
|
|
|
1045
1046
|
return state ? [[s.id, state]] : [];
|
|
1046
1047
|
})
|
|
1047
1048
|
);
|
|
1048
|
-
const ref =
|
|
1049
|
+
const ref = chunkHM23LXUP_cjs.stepDocuments(view.steps, states, id).at(-1);
|
|
1049
1050
|
const open = actions.openDocument ?? actions.openRedline;
|
|
1050
1051
|
return {
|
|
1051
1052
|
title: step.title,
|
|
1052
|
-
kind:
|
|
1053
|
+
kind: chunkHM23LXUP_cjs.stepKindOf(step),
|
|
1053
1054
|
phase: view.phaseOf(id),
|
|
1054
|
-
document: ref && open ? { name: nameOfDoc(
|
|
1055
|
+
document: ref && open ? { name: nameOfDoc(chunkHM23LXUP_cjs.splitDocRef(ref).id) ?? ref, onOpen: () => open(ref) } : void 0
|
|
1055
1056
|
};
|
|
1056
1057
|
},
|
|
1057
1058
|
targetMessageId: target,
|
|
@@ -1223,7 +1224,7 @@ function ConnectedTagTable({
|
|
|
1223
1224
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
1224
1225
|
const snapshot = (data) => {
|
|
1225
1226
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
1226
|
-
const bytes =
|
|
1227
|
+
const bytes = chunkD4YR56FV_cjs.tagTableDocx(data, {
|
|
1227
1228
|
title,
|
|
1228
1229
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
1229
1230
|
});
|
|
@@ -1233,7 +1234,7 @@ function ConnectedTagTable({
|
|
|
1233
1234
|
};
|
|
1234
1235
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1235
1236
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1236
|
-
|
|
1237
|
+
chunkD4YR56FV_cjs.TagTable,
|
|
1237
1238
|
{
|
|
1238
1239
|
...props,
|
|
1239
1240
|
table,
|
|
@@ -2135,10 +2136,7 @@ function useWordBody({
|
|
|
2135
2136
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2136
2137
|
[word.adapter, client, documentKey]
|
|
2137
2138
|
);
|
|
2138
|
-
|
|
2139
|
-
if (!roomId) return;
|
|
2140
|
-
return word.onRoomOpened?.(roomId) || void 0;
|
|
2141
|
-
}, [roomId, word]);
|
|
2139
|
+
chunkSWQX6CTT_cjs.useRegisterOpenDocument({ documentId: roomId });
|
|
2142
2140
|
const editor = react$1.useMailDraftEditor();
|
|
2143
2141
|
const state = () => stateRef.current?.() ?? null;
|
|
2144
2142
|
return {
|
|
@@ -3718,9 +3716,13 @@ function ConnectedMailMessage({
|
|
|
3718
3716
|
] });
|
|
3719
3717
|
}
|
|
3720
3718
|
function ActiveChat({ agentId, workspaceId }) {
|
|
3721
|
-
const chat = react$1.useArbiChat({
|
|
3719
|
+
const chat = react$1.useArbiChat({
|
|
3720
|
+
agentId,
|
|
3721
|
+
workspaceId,
|
|
3722
|
+
activeArtifact: () => chunkSWQX6CTT_cjs.takeOpenDocumentForTurn({ workspaceId })
|
|
3723
|
+
});
|
|
3722
3724
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3723
|
-
|
|
3725
|
+
chunkWV4IDVDQ_cjs.ChatPage,
|
|
3724
3726
|
{
|
|
3725
3727
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
3726
3728
|
documentsRequired: false,
|
|
@@ -3782,35 +3784,35 @@ function ConnectedAgentChatPanel({
|
|
|
3782
3784
|
|
|
3783
3785
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
3784
3786
|
enumerable: true,
|
|
3785
|
-
get: function () { return
|
|
3787
|
+
get: function () { return chunkFSBY2S4V_cjs.ConnectedAssistantDock; }
|
|
3786
3788
|
});
|
|
3787
3789
|
Object.defineProperty(exports, "redlineStats", {
|
|
3788
3790
|
enumerable: true,
|
|
3789
|
-
get: function () { return
|
|
3791
|
+
get: function () { return chunkFSBY2S4V_cjs.redlineStats; }
|
|
3790
3792
|
});
|
|
3791
3793
|
Object.defineProperty(exports, "textToArtifact", {
|
|
3792
3794
|
enumerable: true,
|
|
3793
|
-
get: function () { return
|
|
3795
|
+
get: function () { return chunkFSBY2S4V_cjs.textToArtifact; }
|
|
3794
3796
|
});
|
|
3795
3797
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
3796
3798
|
enumerable: true,
|
|
3797
|
-
get: function () { return
|
|
3799
|
+
get: function () { return chunkFSBY2S4V_cjs.toRedlineMarkdown; }
|
|
3798
3800
|
});
|
|
3799
3801
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
3800
3802
|
enumerable: true,
|
|
3801
|
-
get: function () { return
|
|
3803
|
+
get: function () { return chunkFSBY2S4V_cjs.useConnectedAiTask; }
|
|
3802
3804
|
});
|
|
3803
3805
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
3804
3806
|
enumerable: true,
|
|
3805
|
-
get: function () { return
|
|
3807
|
+
get: function () { return chunkFSBY2S4V_cjs.useConnectedChat; }
|
|
3806
3808
|
});
|
|
3807
3809
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
3808
3810
|
enumerable: true,
|
|
3809
|
-
get: function () { return
|
|
3811
|
+
get: function () { return chunkFSBY2S4V_cjs.useSemanticSearch; }
|
|
3810
3812
|
});
|
|
3811
3813
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
3812
3814
|
enumerable: true,
|
|
3813
|
-
get: function () { return
|
|
3815
|
+
get: function () { return chunkFSBY2S4V_cjs.useWorkspaceDocs; }
|
|
3814
3816
|
});
|
|
3815
3817
|
Object.defineProperty(exports, "ConnectionProvider", {
|
|
3816
3818
|
enumerable: true,
|