@arbidocs/blocks 0.4.122 → 0.4.124
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/{StreamedArtifactEditor-IZWYNFMM.cjs → StreamedArtifactEditor-DNBDUNP2.cjs} +5 -5
- package/dist/{StreamedArtifactEditor-IZWYNFMM.cjs.map → StreamedArtifactEditor-DNBDUNP2.cjs.map} +1 -1
- package/dist/{StreamedArtifactEditor-HTNPG4NB.js → StreamedArtifactEditor-WDHPTWX7.js} +3 -3
- package/dist/{StreamedArtifactEditor-HTNPG4NB.js.map → StreamedArtifactEditor-WDHPTWX7.js.map} +1 -1
- package/dist/agents/index.cjs +390 -326
- package/dist/agents/index.js +9 -9
- package/dist/agents/tasks/ConversationListView.d.ts +2 -1
- package/dist/agents/tasks/ConversationTurnSpeaker.d.ts +3 -1
- package/dist/agents/tasks/TaskFlow.d.ts +17 -0
- package/dist/agents/tasks/ThreadLauncher.d.ts +51 -0
- package/dist/agents/tasks/ThreadStatusLine.d.ts +33 -0
- package/dist/agents/tasks/WorkflowRunStatus.d.ts +32 -0
- package/dist/agents/tasks/WorkflowThreadStrip.d.ts +29 -3
- package/dist/agents/tasks/compact-thread-activity.d.ts +5 -2
- package/dist/agents/tasks/index.d.ts +3 -0
- package/dist/agents/workflows/StepBarFrame.d.ts +18 -17
- package/dist/agents/workflows/StepChip.d.ts +37 -0
- package/dist/agents/workflows/StepDocuments.d.ts +64 -0
- package/dist/agents/workflows/WorkflowStepBar.d.ts +1 -2
- package/dist/agents/workflows/index.d.ts +2 -0
- package/dist/agents/workflows/stepKinds.d.ts +24 -0
- package/dist/artifacts/VersionTimeline.d.ts +7 -0
- package/dist/artifacts/index.cjs +21 -21
- package/dist/artifacts/index.js +1 -1
- package/dist/chat/ChatPage.d.ts +1 -1
- package/dist/chat/DraftingDocChip.d.ts +22 -0
- package/dist/chat/WorkflowStepChip.d.ts +23 -5
- package/dist/chat/chat-page-types.d.ts +18 -2
- package/dist/chat/flashMessage.d.ts +6 -0
- package/dist/chat/index.cjs +144 -131
- package/dist/chat/index.d.ts +2 -0
- package/dist/chat/index.js +4 -3
- package/dist/{chunk-SHASZLGD.js → chunk-3AV7HP6G.js} +3 -3
- package/dist/{chunk-SHASZLGD.js.map → chunk-3AV7HP6G.js.map} +1 -1
- package/dist/{chunk-UDK553WP.cjs → chunk-4VCKYR4D.cjs} +4 -4
- package/dist/{chunk-UDK553WP.cjs.map → chunk-4VCKYR4D.cjs.map} +1 -1
- package/dist/chunk-7HAM7Y5U.js +907 -0
- package/dist/chunk-7HAM7Y5U.js.map +1 -0
- package/dist/{chunk-TCNYKDYE.js → chunk-CXLVI3SB.js} +73 -40
- package/dist/chunk-CXLVI3SB.js.map +1 -0
- package/dist/{chunk-N7ARMX3O.cjs → chunk-D7WCGOD4.cjs} +3 -3
- package/dist/{chunk-N7ARMX3O.cjs.map → chunk-D7WCGOD4.cjs.map} +1 -1
- package/dist/{chunk-ZP4IFW2E.js → chunk-EJSJ27HV.js} +733 -185
- package/dist/chunk-EJSJ27HV.js.map +1 -0
- package/dist/{chunk-AY32GGKU.js → chunk-ERNMU6RV.js} +132 -752
- package/dist/chunk-ERNMU6RV.js.map +1 -0
- package/dist/{chunk-XFZ7HNPG.js → chunk-ETN5EZI4.js} +3 -3
- package/dist/{chunk-XFZ7HNPG.js.map → chunk-ETN5EZI4.js.map} +1 -1
- package/dist/{chunk-Z2NSU7D5.cjs → chunk-FL5TEBTM.cjs} +770 -216
- package/dist/chunk-FL5TEBTM.cjs.map +1 -0
- package/dist/chunk-HM23LXUP.cjs +976 -0
- package/dist/chunk-HM23LXUP.cjs.map +1 -0
- package/dist/{chunk-WN64RF46.js → chunk-HQH35JWC.js} +3 -3
- package/dist/{chunk-WN64RF46.js.map → chunk-HQH35JWC.js.map} +1 -1
- package/dist/{chunk-XSUOEJB3.cjs → chunk-MRURIBBB.cjs} +163 -837
- package/dist/chunk-MRURIBBB.cjs.map +1 -0
- package/dist/{chunk-65HZ36MY.js → chunk-OTDGTBAS.js} +20 -3
- package/dist/chunk-OTDGTBAS.js.map +1 -0
- package/dist/{chunk-CK4C3IQR.cjs → chunk-VMZXFYHK.cjs} +47 -6
- package/dist/chunk-VMZXFYHK.cjs.map +1 -0
- package/dist/{chunk-SVJQWLOF.cjs → chunk-W4GXDARU.cjs} +20 -3
- package/dist/chunk-W4GXDARU.cjs.map +1 -0
- package/dist/{chunk-US5ASM4G.cjs → chunk-WEUCLOBB.cjs} +5 -5
- package/dist/{chunk-US5ASM4G.cjs.map → chunk-WEUCLOBB.cjs.map} +1 -1
- package/dist/{chunk-S2KVJYBD.cjs → chunk-WV4IDVDQ.cjs} +76 -43
- package/dist/chunk-WV4IDVDQ.cjs.map +1 -0
- package/dist/{chunk-2FUJXMGO.js → chunk-Y4X3RBFI.js} +44 -6
- package/dist/{chunk-CK4C3IQR.cjs.map → chunk-Y4X3RBFI.js.map} +1 -1
- package/dist/collaboration/index.cjs +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +4 -4
- package/dist/connect/docx.js +3 -3
- package/dist/connect/index.cjs +68 -51
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +37 -20
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/WorkflowRunThread.d.ts +4 -4
- package/dist/connection/ai.d.ts +2 -0
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/index.cjs +728 -652
- package/dist/index.js +16 -16
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +1 -1
- package/dist/shell/index.cjs +10 -10
- package/dist/shell/index.js +2 -2
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +6 -5
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +5 -4
- package/dist/studio/index.js.map +1 -1
- package/dist/workflow-canvas/WorkflowCanvas.d.ts +0 -9
- package/dist/workflow-canvas/edit.d.ts +2 -11
- package/dist/workflow-canvas/index.cjs +63 -87
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +14 -38
- package/dist/workflow-canvas/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +25 -13
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +3 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +3 -1
- package/node_modules/@arbidocs/coedit/dist/commands.js +25 -14
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/src/blocks.css +168 -0
- package/src/workflow-canvas/canvas.css +2 -40
- package/dist/chunk-2FUJXMGO.js.map +0 -1
- package/dist/chunk-65HZ36MY.js.map +0 -1
- package/dist/chunk-AY32GGKU.js.map +0 -1
- package/dist/chunk-B4SRYJLM.cjs +0 -107
- package/dist/chunk-B4SRYJLM.cjs.map +0 -1
- package/dist/chunk-HOXKR26S.js +0 -103
- package/dist/chunk-HOXKR26S.js.map +0 -1
- package/dist/chunk-S2KVJYBD.cjs.map +0 -1
- package/dist/chunk-SVJQWLOF.cjs.map +0 -1
- package/dist/chunk-TCNYKDYE.js.map +0 -1
- package/dist/chunk-XSUOEJB3.cjs.map +0 -1
- package/dist/chunk-Z2NSU7D5.cjs.map +0 -1
- package/dist/chunk-ZP4IFW2E.js.map +0 -1
|
@@ -6,8 +6,8 @@ require('../chunk-7G2LJMUG.cjs');
|
|
|
6
6
|
var chunkU6MPHCEB_cjs = require('../chunk-U6MPHCEB.cjs');
|
|
7
7
|
var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
|
|
8
8
|
require('../chunk-C2CWWEHO.cjs');
|
|
9
|
-
require('../chunk-FX3K6LNZ.cjs');
|
|
10
9
|
require('../chunk-ULWRNGGE.cjs');
|
|
10
|
+
require('../chunk-FX3K6LNZ.cjs');
|
|
11
11
|
require('../chunk-MHVNT4J3.cjs');
|
|
12
12
|
require('../chunk-DES3K4SD.cjs');
|
|
13
13
|
|
|
@@ -4,8 +4,8 @@ import '../chunk-NBV56SGU.js';
|
|
|
4
4
|
export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose } from '../chunk-IXTQYFIF.js';
|
|
5
5
|
export { DEFAULT_SHARE_CONTROL_LABELS, ShareControl } from '../chunk-K4BGOPGG.js';
|
|
6
6
|
import '../chunk-N5YEF3LC.js';
|
|
7
|
-
import '../chunk-SLSBJRWW.js';
|
|
8
7
|
import '../chunk-TX2ZICS7.js';
|
|
8
|
+
import '../chunk-SLSBJRWW.js';
|
|
9
9
|
import '../chunk-7F6CBP3Z.js';
|
|
10
10
|
import '../chunk-VUNV25KB.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/connect/docx.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var chunkN7ARMX3O_cjs = require('../chunk-N7ARMX3O.cjs');
|
|
5
|
-
require('../chunk-MUMH3Z6K.cjs');
|
|
6
4
|
var chunkKUW4ATIC_cjs = require('../chunk-KUW4ATIC.cjs');
|
|
5
|
+
var chunkD7WCGOD4_cjs = require('../chunk-D7WCGOD4.cjs');
|
|
7
6
|
require('../chunk-S24XEVPS.cjs');
|
|
8
7
|
require('../chunk-JSH43QMZ.cjs');
|
|
8
|
+
require('../chunk-MUMH3Z6K.cjs');
|
|
9
9
|
require('../chunk-5FYU7ZIU.cjs');
|
|
10
10
|
require('../chunk-I2QSDQQV.cjs');
|
|
11
11
|
require('../chunk-RC25WMVB.cjs');
|
|
@@ -18,13 +18,13 @@ function ConnectedStreamedWordArtifact({
|
|
|
18
18
|
fontBaseUrl,
|
|
19
19
|
...props
|
|
20
20
|
}) {
|
|
21
|
-
const adapter =
|
|
21
|
+
const adapter = chunkD7WCGOD4_cjs.useConnectedNativeDocxAdapter(fontBaseUrl);
|
|
22
22
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkKUW4ATIC_cjs.StreamedWordArtifact, { ...props, adapter });
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(exports, "ConnectedNativeDocxEditor", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkD7WCGOD4_cjs.ConnectedNativeDocxEditor; }
|
|
28
28
|
});
|
|
29
29
|
exports.ConnectedStreamedWordArtifact = ConnectedStreamedWordArtifact;
|
|
30
30
|
//# sourceMappingURL=docx.cjs.map
|
package/dist/connect/docx.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedNativeDocxAdapter } from '../chunk-SHASZLGD.js';
|
|
3
|
-
export { ConnectedNativeDocxEditor } from '../chunk-SHASZLGD.js';
|
|
4
|
-
import '../chunk-OYMWV45N.js';
|
|
5
2
|
import { StreamedWordArtifact } from '../chunk-D72GGCXN.js';
|
|
3
|
+
import { useConnectedNativeDocxAdapter } from '../chunk-3AV7HP6G.js';
|
|
4
|
+
export { ConnectedNativeDocxEditor } from '../chunk-3AV7HP6G.js';
|
|
6
5
|
import '../chunk-GYAUJ4KT.js';
|
|
7
6
|
import '../chunk-BDSKKIFZ.js';
|
|
7
|
+
import '../chunk-OYMWV45N.js';
|
|
8
8
|
import '../chunk-HFZ45FD3.js';
|
|
9
9
|
import '../chunk-QXMR5YHC.js';
|
|
10
10
|
import '../chunk-AF6RDAJF.js';
|
package/dist/connect/index.cjs
CHANGED
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkOR4CO743_cjs = require('../chunk-OR4CO743.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
8
|
-
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
5
|
+
var chunk4VCKYR4D_cjs = require('../chunk-4VCKYR4D.cjs');
|
|
6
|
+
var chunkD7WCGOD4_cjs = require('../chunk-D7WCGOD4.cjs');
|
|
9
7
|
require('../chunk-S24XEVPS.cjs');
|
|
10
8
|
require('../chunk-JSH43QMZ.cjs');
|
|
9
|
+
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
10
|
+
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
11
11
|
require('../chunk-5FYU7ZIU.cjs');
|
|
12
12
|
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkWEUCLOBB_cjs = require('../chunk-WEUCLOBB.cjs');
|
|
14
14
|
var chunkU6MPHCEB_cjs = require('../chunk-U6MPHCEB.cjs');
|
|
15
15
|
var chunkI2QSDQQV_cjs = require('../chunk-I2QSDQQV.cjs');
|
|
16
16
|
require('../chunk-RC25WMVB.cjs');
|
|
17
|
-
var
|
|
18
|
-
require('../chunk-7D737FLE.cjs');
|
|
17
|
+
var chunkMRURIBBB_cjs = require('../chunk-MRURIBBB.cjs');
|
|
19
18
|
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
20
19
|
require('../chunk-DETZZBG2.cjs');
|
|
21
|
-
require('../chunk-32HW2Q33.cjs');
|
|
22
20
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
23
21
|
require('../chunk-C2CWWEHO.cjs');
|
|
22
|
+
require('../chunk-7D737FLE.cjs');
|
|
24
23
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
25
24
|
require('../chunk-ADOKTJHV.cjs');
|
|
26
|
-
var
|
|
25
|
+
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
26
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
27
|
+
var chunkWV4IDVDQ_cjs = require('../chunk-WV4IDVDQ.cjs');
|
|
27
28
|
require('../chunk-B6MVQCXW.cjs');
|
|
28
|
-
require('../chunk-
|
|
29
|
+
var chunkHM23LXUP_cjs = require('../chunk-HM23LXUP.cjs');
|
|
29
30
|
require('../chunk-7UTB4PHM.cjs');
|
|
31
|
+
require('../chunk-32HW2Q33.cjs');
|
|
30
32
|
require('../chunk-FX3K6LNZ.cjs');
|
|
31
|
-
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
32
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
33
33
|
require('../chunk-PPCATBOY.cjs');
|
|
34
34
|
require('../chunk-MHVNT4J3.cjs');
|
|
35
35
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
@@ -122,7 +122,7 @@ function ConnectedWorkspaceActivity({
|
|
|
122
122
|
[feed.data]
|
|
123
123
|
);
|
|
124
124
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
125
|
-
|
|
125
|
+
chunkWEUCLOBB_cjs.WorkspaceActivityList,
|
|
126
126
|
{
|
|
127
127
|
...listProps,
|
|
128
128
|
items,
|
|
@@ -148,7 +148,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
148
148
|
});
|
|
149
149
|
if (!workspaceId) return null;
|
|
150
150
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
151
|
-
|
|
151
|
+
chunkWEUCLOBB_cjs.WorkspaceNotificationMenu,
|
|
152
152
|
{
|
|
153
153
|
...menuProps,
|
|
154
154
|
level,
|
|
@@ -167,7 +167,7 @@ function ConnectedThreadFollow({
|
|
|
167
167
|
enabled: status === "authenticated"
|
|
168
168
|
});
|
|
169
169
|
if (!conversationId) return null;
|
|
170
|
-
const Control = as === "menu-item" ?
|
|
170
|
+
const Control = as === "menu-item" ? chunkWEUCLOBB_cjs.ThreadFollowMenuItem : chunkWEUCLOBB_cjs.ThreadFollowButton;
|
|
171
171
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
172
|
Control,
|
|
173
173
|
{
|
|
@@ -220,7 +220,7 @@ function ConnectedSkillUpload() {
|
|
|
220
220
|
upload.error && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "text-sm text-destructive", children: upload.error.message })
|
|
221
221
|
] });
|
|
222
222
|
}
|
|
223
|
-
var StreamedArtifactEditor = react.lazy(() => import('../StreamedArtifactEditor-
|
|
223
|
+
var StreamedArtifactEditor = react.lazy(() => import('../StreamedArtifactEditor-DNBDUNP2.cjs'));
|
|
224
224
|
function StreamedArtifact({
|
|
225
225
|
artifacts: artifacts$1,
|
|
226
226
|
workspaceId,
|
|
@@ -293,7 +293,7 @@ function StreamedArtifact({
|
|
|
293
293
|
}
|
|
294
294
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
295
295
|
function formValues(step, inputs) {
|
|
296
|
-
const fields =
|
|
296
|
+
const fields = chunkHM23LXUP_cjs.stepFields(step);
|
|
297
297
|
if (!fields.length) return void 0;
|
|
298
298
|
if (step.kind === "form")
|
|
299
299
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -328,10 +328,10 @@ function useAnswerRetry(missing, refetch) {
|
|
|
328
328
|
function useWorkflowThread(workflow, options = {}) {
|
|
329
329
|
const arbi = react$1.useArbi();
|
|
330
330
|
const { ensureWorkspaceOpen, status } = chunkMUMH3Z6K_cjs.useConnection();
|
|
331
|
-
const { wsId } =
|
|
331
|
+
const { wsId } = chunk4VCKYR4D_cjs.useWorkspaceDocs();
|
|
332
332
|
const [threadId, setThreadId] = react.useState(options.conversationId);
|
|
333
333
|
const [localInputs, setLocalInputs] = react.useState(
|
|
334
|
-
() =>
|
|
334
|
+
() => chunkHM23LXUP_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
335
335
|
);
|
|
336
336
|
const [edits, setEdits] = react.useState({});
|
|
337
337
|
const [localStates, setLocalStates] = react.useState({});
|
|
@@ -351,12 +351,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
351
351
|
);
|
|
352
352
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
353
353
|
const steps = react.useMemo(
|
|
354
|
-
() =>
|
|
354
|
+
() => chunkHM23LXUP_cjs.workflowSteps(workflow).length > 0 ? chunkHM23LXUP_cjs.workflowSteps(workflow) : chunkMRURIBBB_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
355
355
|
[workflow, conversation?.plan?.steps]
|
|
356
356
|
);
|
|
357
357
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
358
358
|
const serverStates = react.useMemo(
|
|
359
|
-
() =>
|
|
359
|
+
() => chunkHM23LXUP_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
360
360
|
[activity.data]
|
|
361
361
|
);
|
|
362
362
|
const working = steps.some(
|
|
@@ -399,7 +399,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
399
399
|
async (values, done) => {
|
|
400
400
|
await ensureWorkspaceOpen();
|
|
401
401
|
const created = await createWork.mutateAsync({
|
|
402
|
-
title:
|
|
402
|
+
title: chunkHM23LXUP_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
403
403
|
description: workflow.description || null,
|
|
404
404
|
prompt: null,
|
|
405
405
|
skill_ref: null,
|
|
@@ -411,7 +411,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
411
411
|
criteria: [],
|
|
412
412
|
max_passes: 3,
|
|
413
413
|
documents: [],
|
|
414
|
-
steps:
|
|
414
|
+
steps: chunkMRURIBBB_cjs.toPlanSteps(workflow, {
|
|
415
415
|
inputs: values,
|
|
416
416
|
resolveWorkflow: options.resolveWorkflow,
|
|
417
417
|
compose: options.compose
|
|
@@ -498,7 +498,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
498
498
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
499
499
|
const needsStart = !threadId || idle && !anyRunning;
|
|
500
500
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
501
|
-
const view =
|
|
501
|
+
const view = chunkMRURIBBB_cjs.useWorkflowView({
|
|
502
502
|
steps,
|
|
503
503
|
states,
|
|
504
504
|
inputs,
|
|
@@ -528,7 +528,7 @@ function WorkflowRunThread({
|
|
|
528
528
|
conversationId,
|
|
529
529
|
workspaceId,
|
|
530
530
|
aside,
|
|
531
|
-
|
|
531
|
+
stepOf,
|
|
532
532
|
targetMessageId,
|
|
533
533
|
onOpenCitation,
|
|
534
534
|
labels,
|
|
@@ -541,14 +541,14 @@ function WorkflowRunThread({
|
|
|
541
541
|
if (listed && activeThreadId !== conversationId) selectThread(conversationId);
|
|
542
542
|
}, [listed, activeThreadId, conversationId, selectThread]);
|
|
543
543
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
544
|
-
|
|
544
|
+
chunkWV4IDVDQ_cjs.ChatPage,
|
|
545
545
|
{
|
|
546
546
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
547
547
|
singleThread: true,
|
|
548
548
|
documentsRequired: false,
|
|
549
549
|
aside,
|
|
550
550
|
asideBreakpoint: 52,
|
|
551
|
-
|
|
551
|
+
workflowStepOf: stepOf,
|
|
552
552
|
targetMessageId,
|
|
553
553
|
onOpenCitation,
|
|
554
554
|
labels,
|
|
@@ -579,7 +579,7 @@ function WorkflowSignDialog({
|
|
|
579
579
|
const arbi = react$1.useArbi();
|
|
580
580
|
const { user, ensureWorkspaceOpen } = chunkMUMH3Z6K_cjs.useConnection();
|
|
581
581
|
const tools = documentTools.useOptionalDocumentTools();
|
|
582
|
-
const { id, version: stepVersion } =
|
|
582
|
+
const { id, version: stepVersion } = chunkHM23LXUP_cjs.splitDocRef(docRef);
|
|
583
583
|
const [version, setVersion] = react.useState(stepVersion);
|
|
584
584
|
const [pdf, setPdf] = react.useState(null);
|
|
585
585
|
const [preparing, setPreparing] = react.useState(false);
|
|
@@ -657,7 +657,7 @@ function WorkflowWordDialog({
|
|
|
657
657
|
onClose,
|
|
658
658
|
labels
|
|
659
659
|
}) {
|
|
660
|
-
const { id } =
|
|
660
|
+
const { id } = chunkHM23LXUP_cjs.splitDocRef(docRef);
|
|
661
661
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
662
662
|
chunkULWRNGGE_cjs.ModalScaffold,
|
|
663
663
|
{
|
|
@@ -666,7 +666,7 @@ function WorkflowWordDialog({
|
|
|
666
666
|
title: title ?? labels.wordTitle,
|
|
667
667
|
size: "xl",
|
|
668
668
|
testId: "workflow-word-dialog",
|
|
669
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
669
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkD7WCGOD4_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
670
670
|
}
|
|
671
671
|
);
|
|
672
672
|
}
|
|
@@ -806,7 +806,7 @@ function ConnectedWorkflowRunner({
|
|
|
806
806
|
const dl = { ...DEFAULT_WORKFLOW_RUNNER_DIALOG_LABELS, ...dialogLabels };
|
|
807
807
|
const arbi = react$1.useArbi();
|
|
808
808
|
const { ensureWorkspaceOpen, user } = chunkMUMH3Z6K_cjs.useConnection();
|
|
809
|
-
const { wsId } =
|
|
809
|
+
const { wsId } = chunk4VCKYR4D_cjs.useWorkspaceDocs();
|
|
810
810
|
const { data: docs = [], refetch } = react$1.useDocuments(wsId);
|
|
811
811
|
const [sending, setSending] = react.useState([]);
|
|
812
812
|
const [added, setAdded] = react.useState({});
|
|
@@ -829,7 +829,7 @@ function ConnectedWorkflowRunner({
|
|
|
829
829
|
() => ({
|
|
830
830
|
me: user?.externalId,
|
|
831
831
|
openDocument: onOpenDocument && ((ref) => {
|
|
832
|
-
const { id, version } =
|
|
832
|
+
const { id, version } = chunkHM23LXUP_cjs.splitDocRef(ref);
|
|
833
833
|
onOpenDocument(id, version);
|
|
834
834
|
}),
|
|
835
835
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -839,7 +839,7 @@ function ConnectedWorkflowRunner({
|
|
|
839
839
|
const w = state.waiting;
|
|
840
840
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
841
841
|
}),
|
|
842
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
842
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunkHM23LXUP_cjs.splitDocRef(ref).id) ?? "" })),
|
|
843
843
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
844
844
|
}),
|
|
845
845
|
[user?.externalId, onOpenDocument, onOpenDraft, onOpenMessage, hostActions, nameOfDoc, inThread]
|
|
@@ -975,7 +975,7 @@ function ConnectedWorkflowRunner({
|
|
|
975
975
|
);
|
|
976
976
|
};
|
|
977
977
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
978
|
-
|
|
978
|
+
chunkMRURIBBB_cjs.WorkflowRunner,
|
|
979
979
|
{
|
|
980
980
|
people,
|
|
981
981
|
...runnerProps,
|
|
@@ -1021,10 +1021,10 @@ function ConnectedWorkflowRunner({
|
|
|
1021
1021
|
) }),
|
|
1022
1022
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1023
1023
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1024
|
-
|
|
1024
|
+
chunkMRURIBBB_cjs.WorkflowStepBar,
|
|
1025
1025
|
{
|
|
1026
1026
|
run: view,
|
|
1027
|
-
levels:
|
|
1027
|
+
levels: chunkHM23LXUP_cjs.stepLevels(view.steps),
|
|
1028
1028
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
1029
1029
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
1030
1030
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -1035,7 +1035,24 @@ function ConnectedWorkflowRunner({
|
|
|
1035
1035
|
{
|
|
1036
1036
|
conversationId,
|
|
1037
1037
|
workspaceId: wsId,
|
|
1038
|
-
|
|
1038
|
+
stepOf: (id) => {
|
|
1039
|
+
const step = view.steps.find((s) => s.id === id);
|
|
1040
|
+
if (!step) return void 0;
|
|
1041
|
+
const states = Object.fromEntries(
|
|
1042
|
+
view.steps.flatMap((s) => {
|
|
1043
|
+
const state = view.stateOf(s.id);
|
|
1044
|
+
return state ? [[s.id, state]] : [];
|
|
1045
|
+
})
|
|
1046
|
+
);
|
|
1047
|
+
const ref = chunkHM23LXUP_cjs.stepDocuments(view.steps, states, id).at(-1);
|
|
1048
|
+
const open = actions.openDocument ?? actions.openRedline;
|
|
1049
|
+
return {
|
|
1050
|
+
title: step.title,
|
|
1051
|
+
kind: chunkHM23LXUP_cjs.stepKindOf(step),
|
|
1052
|
+
phase: view.phaseOf(id),
|
|
1053
|
+
document: ref && open ? { name: nameOfDoc(chunkHM23LXUP_cjs.splitDocRef(ref).id) ?? ref, onOpen: () => open(ref) } : void 0
|
|
1054
|
+
};
|
|
1055
|
+
},
|
|
1039
1056
|
targetMessageId: target,
|
|
1040
1057
|
onOpenCitation: openCitation,
|
|
1041
1058
|
labels: { workflows: l.currentStep },
|
|
@@ -1205,7 +1222,7 @@ function ConnectedTagTable({
|
|
|
1205
1222
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
1206
1223
|
const snapshot = (data) => {
|
|
1207
1224
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
1208
|
-
const bytes =
|
|
1225
|
+
const bytes = chunkWEUCLOBB_cjs.tagTableDocx(data, {
|
|
1209
1226
|
title,
|
|
1210
1227
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
1211
1228
|
});
|
|
@@ -1215,7 +1232,7 @@ function ConnectedTagTable({
|
|
|
1215
1232
|
};
|
|
1216
1233
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1217
1234
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1218
|
-
|
|
1235
|
+
chunkWEUCLOBB_cjs.TagTable,
|
|
1219
1236
|
{
|
|
1220
1237
|
...props,
|
|
1221
1238
|
table,
|
|
@@ -1801,9 +1818,9 @@ function mapWorkNotification(note) {
|
|
|
1801
1818
|
}
|
|
1802
1819
|
const titles = {
|
|
1803
1820
|
mention: `${sender} mentioned you in a conversation`,
|
|
1804
|
-
workspace_access_request: `${sender} needs workspace access to run a
|
|
1805
|
-
conversation_ready: `${sender}
|
|
1806
|
-
conversation_done: `${sender} marked a
|
|
1821
|
+
workspace_access_request: `${sender} needs workspace access to run a thread`,
|
|
1822
|
+
conversation_ready: note.sender.external_id === note.recipient.external_id ? "Your thread is ready" : `${sender}\u2019s thread is ready`,
|
|
1823
|
+
conversation_done: `${sender} marked a thread done`
|
|
1807
1824
|
};
|
|
1808
1825
|
const title = titles[note.type];
|
|
1809
1826
|
if (!title || !note.workspace_ext_id || !note.conversation_ext_id?.match(/^con-[a-zA-Z0-9]+$/))
|
|
@@ -3648,7 +3665,7 @@ function ConnectedMailMessage({
|
|
|
3648
3665
|
function ActiveChat({ agentId, workspaceId }) {
|
|
3649
3666
|
const chat = react$1.useArbiChat({ agentId, workspaceId });
|
|
3650
3667
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3651
|
-
|
|
3668
|
+
chunkWV4IDVDQ_cjs.ChatPage,
|
|
3652
3669
|
{
|
|
3653
3670
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
3654
3671
|
documentsRequired: false,
|
|
@@ -3710,35 +3727,35 @@ function ConnectedAgentChatPanel({
|
|
|
3710
3727
|
|
|
3711
3728
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
3712
3729
|
enumerable: true,
|
|
3713
|
-
get: function () { return
|
|
3730
|
+
get: function () { return chunk4VCKYR4D_cjs.ConnectedAssistantDock; }
|
|
3714
3731
|
});
|
|
3715
3732
|
Object.defineProperty(exports, "redlineStats", {
|
|
3716
3733
|
enumerable: true,
|
|
3717
|
-
get: function () { return
|
|
3734
|
+
get: function () { return chunk4VCKYR4D_cjs.redlineStats; }
|
|
3718
3735
|
});
|
|
3719
3736
|
Object.defineProperty(exports, "textToArtifact", {
|
|
3720
3737
|
enumerable: true,
|
|
3721
|
-
get: function () { return
|
|
3738
|
+
get: function () { return chunk4VCKYR4D_cjs.textToArtifact; }
|
|
3722
3739
|
});
|
|
3723
3740
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
3724
3741
|
enumerable: true,
|
|
3725
|
-
get: function () { return
|
|
3742
|
+
get: function () { return chunk4VCKYR4D_cjs.toRedlineMarkdown; }
|
|
3726
3743
|
});
|
|
3727
3744
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
3728
3745
|
enumerable: true,
|
|
3729
|
-
get: function () { return
|
|
3746
|
+
get: function () { return chunk4VCKYR4D_cjs.useConnectedAiTask; }
|
|
3730
3747
|
});
|
|
3731
3748
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
3732
3749
|
enumerable: true,
|
|
3733
|
-
get: function () { return
|
|
3750
|
+
get: function () { return chunk4VCKYR4D_cjs.useConnectedChat; }
|
|
3734
3751
|
});
|
|
3735
3752
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
3736
3753
|
enumerable: true,
|
|
3737
|
-
get: function () { return
|
|
3754
|
+
get: function () { return chunk4VCKYR4D_cjs.useSemanticSearch; }
|
|
3738
3755
|
});
|
|
3739
3756
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
3740
3757
|
enumerable: true,
|
|
3741
|
-
get: function () { return
|
|
3758
|
+
get: function () { return chunk4VCKYR4D_cjs.useWorkspaceDocs; }
|
|
3742
3759
|
});
|
|
3743
3760
|
Object.defineProperty(exports, "ConnectionProvider", {
|
|
3744
3761
|
enumerable: true,
|