@arbidocs/blocks 0.5.129 → 0.5.130
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-XJOYVVAH.cjs → ConnectedCallDock-CJ7RWP5B.cjs} +12 -12
- package/dist/{ConnectedCallDock-XJOYVVAH.cjs.map → ConnectedCallDock-CJ7RWP5B.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-CUDYAPQK.cjs → ConnectedCallRoom-JPJCXP6X.cjs} +12 -12
- package/dist/{ConnectedCallRoom-CUDYAPQK.cjs.map → ConnectedCallRoom-JPJCXP6X.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-7KTAOUE3.cjs → ConnectedNativeDocxComparison-5TZAIR4V.cjs} +13 -13
- package/dist/{ConnectedNativeDocxComparison-7KTAOUE3.cjs.map → ConnectedNativeDocxComparison-5TZAIR4V.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-SI3L77J4.cjs → ConnectedPresentation-SEUUNFUA.cjs} +13 -13
- package/dist/{ConnectedPresentation-SI3L77J4.cjs.map → ConnectedPresentation-SEUUNFUA.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/{ConnectedSlidesTab-E76OVY34.cjs → ConnectedSlidesTab-3ATAKNSJ.cjs} +13 -13
- package/dist/{ConnectedSlidesTab-E76OVY34.cjs.map → ConnectedSlidesTab-3ATAKNSJ.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-J4MYBABA.cjs → ConnectedStreamedWordArtifact-BKPOMQ6G.cjs} +13 -13
- package/dist/{ConnectedStreamedWordArtifact-J4MYBABA.cjs.map → ConnectedStreamedWordArtifact-BKPOMQ6G.cjs.map} +1 -1
- package/dist/DocumentReviewCard-M53XFLI2.cjs +1 -1
- package/dist/{FilesViewerDialog-GGF4WMU4.cjs → FilesViewerDialog-EFRMXIM5.cjs} +27 -27
- package/dist/{FilesViewerDialog-GGF4WMU4.cjs.map → FilesViewerDialog-EFRMXIM5.cjs.map} +1 -1
- package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs → StreamedArtifactEditor-RSPUSZ2B.cjs} +5 -5
- package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs.map → StreamedArtifactEditor-RSPUSZ2B.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-CUCTCA2O.cjs → WorkspaceTableView-QPROJRCF.cjs} +3 -3
- package/dist/{WorkspaceTableView-CUCTCA2O.cjs.map → WorkspaceTableView-QPROJRCF.cjs.map} +1 -1
- package/dist/agents/index.cjs +363 -363
- package/dist/agents/workflows/StepParts.d.ts +3 -0
- package/dist/agents/workflows/StepParts.js +20 -3
- package/dist/agents/workflows/StepParts.js.map +2 -2
- package/dist/agents/workflows/WorkflowStepAction.js +14 -3
- package/dist/agents/workflows/WorkflowStepAction.js.map +2 -2
- package/dist/agents/workflows/planSteps.js +6 -1
- package/dist/agents/workflows/planSteps.js.map +2 -2
- package/dist/agents/workflows/workflow.d.ts +11 -2
- package/dist/agents/workflows/workflow.js +16 -1
- package/dist/agents/workflows/workflow.js.map +2 -2
- package/dist/{ai-IEIR7SC2.cjs → ai-4XJ2VFNS.cjs} +24 -24
- package/dist/ai-4XJ2VFNS.cjs.map +1 -0
- package/dist/artifacts/VersionTimeline.d.ts +5 -1
- package/dist/artifacts/VersionTimeline.js +15 -0
- package/dist/artifacts/VersionTimeline.js.map +2 -2
- package/dist/artifacts/index.cjs +24 -24
- package/dist/calls/index.cjs +3 -3
- package/dist/chat/index.cjs +59 -59
- package/dist/{chunk-XF355M7O.cjs → chunk-2Z25MUAY.cjs} +17 -17
- package/dist/{chunk-XF355M7O.cjs.map → chunk-2Z25MUAY.cjs.map} +1 -1
- package/dist/{chunk-7JLJH5CW.cjs → chunk-5A6T4W46.cjs} +7 -7
- package/dist/{chunk-7JLJH5CW.cjs.map → chunk-5A6T4W46.cjs.map} +1 -1
- package/dist/{chunk-L4CIFLCU.cjs → chunk-7LEN65YI.cjs} +9 -9
- package/dist/{chunk-L4CIFLCU.cjs.map → chunk-7LEN65YI.cjs.map} +1 -1
- package/dist/{chunk-IDCD5TEZ.cjs → chunk-A6GBPE5E.cjs} +18 -18
- package/dist/{chunk-IDCD5TEZ.cjs.map → chunk-A6GBPE5E.cjs.map} +1 -1
- package/dist/{chunk-XGTMC54Q.cjs → chunk-AFXLRO6E.cjs} +4 -4
- package/dist/{chunk-XGTMC54Q.cjs.map → chunk-AFXLRO6E.cjs.map} +1 -1
- package/dist/{chunk-KNGZZC4O.cjs → chunk-B3BZ6MNI.cjs} +6 -6
- package/dist/{chunk-KNGZZC4O.cjs.map → chunk-B3BZ6MNI.cjs.map} +1 -1
- package/dist/{chunk-WAV762GP.cjs → chunk-DBN6GBRQ.cjs} +6 -6
- package/dist/{chunk-WAV762GP.cjs.map → chunk-DBN6GBRQ.cjs.map} +1 -1
- package/dist/{chunk-QGVOT7E4.cjs → chunk-EQTZQD66.cjs} +8 -8
- package/dist/{chunk-QGVOT7E4.cjs.map → chunk-EQTZQD66.cjs.map} +1 -1
- package/dist/{chunk-CNLIXB6S.cjs → chunk-ERRXU2HL.cjs} +3 -3
- package/dist/{chunk-CNLIXB6S.cjs.map → chunk-ERRXU2HL.cjs.map} +1 -1
- package/dist/{chunk-M2FOXGJU.cjs → chunk-F6CEPWIF.cjs} +7 -7
- package/dist/{chunk-M2FOXGJU.cjs.map → chunk-F6CEPWIF.cjs.map} +1 -1
- package/dist/{chunk-VWBYE3XY.cjs → chunk-FQRJCAT2.cjs} +6 -6
- package/dist/{chunk-VWBYE3XY.cjs.map → chunk-FQRJCAT2.cjs.map} +1 -1
- package/dist/{chunk-HH5RDNO5.cjs → chunk-GOQV6NOK.cjs} +74 -74
- package/dist/{chunk-HH5RDNO5.cjs.map → chunk-GOQV6NOK.cjs.map} +1 -1
- package/dist/{chunk-XCKHOXRP.cjs → chunk-H4ID6S4P.cjs} +6 -6
- package/dist/{chunk-XCKHOXRP.cjs.map → chunk-H4ID6S4P.cjs.map} +1 -1
- package/dist/{chunk-UFT22LAB.cjs → chunk-HBUHOCWF.cjs} +16 -16
- package/dist/{chunk-UFT22LAB.cjs.map → chunk-HBUHOCWF.cjs.map} +1 -1
- package/dist/{chunk-U7D6ZDR2.cjs → chunk-HORAMB52.cjs} +96 -36
- package/dist/chunk-HORAMB52.cjs.map +1 -0
- package/dist/{chunk-3IH55CDE.cjs → chunk-IZBAWZTB.cjs} +16 -2
- package/dist/chunk-IZBAWZTB.cjs.map +1 -0
- package/dist/{chunk-QRAQZTJE.cjs → chunk-JN5YMHGI.cjs} +18 -3
- package/dist/chunk-JN5YMHGI.cjs.map +1 -0
- package/dist/{chunk-LXFCED4Z.cjs → chunk-KWHGYHRC.cjs} +7 -7
- package/dist/{chunk-LXFCED4Z.cjs.map → chunk-KWHGYHRC.cjs.map} +1 -1
- package/dist/{chunk-EG7EJFUE.cjs → chunk-MHIG6GGS.cjs} +17 -2
- package/dist/chunk-MHIG6GGS.cjs.map +1 -0
- package/dist/{chunk-I3A6KKWY.cjs → chunk-MI3N3ZOT.cjs} +86 -76
- package/dist/chunk-MI3N3ZOT.cjs.map +1 -0
- package/dist/{chunk-ENOPKX7E.cjs → chunk-MXBXZXXQ.cjs} +3 -3
- package/dist/{chunk-ENOPKX7E.cjs.map → chunk-MXBXZXXQ.cjs.map} +1 -1
- package/dist/{chunk-7NLO7ASW.cjs → chunk-MXGXKUSW.cjs} +17 -17
- package/dist/{chunk-7NLO7ASW.cjs.map → chunk-MXGXKUSW.cjs.map} +1 -1
- package/dist/{chunk-ZCU72Q76.cjs → chunk-NM7RWZ4E.cjs} +10 -10
- package/dist/{chunk-ZCU72Q76.cjs.map → chunk-NM7RWZ4E.cjs.map} +1 -1
- package/dist/{chunk-NQML7IUC.cjs → chunk-OD6NGGL3.cjs} +134 -107
- package/dist/chunk-OD6NGGL3.cjs.map +1 -0
- package/dist/{chunk-TP5PGWIO.cjs → chunk-QFXOTJ6G.cjs} +20 -15
- package/dist/chunk-QFXOTJ6G.cjs.map +1 -0
- package/dist/{chunk-7L4X6QN2.cjs → chunk-QXMPATG6.cjs} +8 -8
- package/dist/{chunk-7L4X6QN2.cjs.map → chunk-QXMPATG6.cjs.map} +1 -1
- package/dist/{chunk-WXUU3COI.cjs → chunk-SUOHAB7N.cjs} +11 -11
- package/dist/{chunk-WXUU3COI.cjs.map → chunk-SUOHAB7N.cjs.map} +1 -1
- package/dist/{chunk-I7J3ED6P.cjs → chunk-TDA6KESI.cjs} +4 -4
- package/dist/{chunk-I7J3ED6P.cjs.map → chunk-TDA6KESI.cjs.map} +1 -1
- package/dist/{chunk-5GA65VBW.cjs → chunk-TZYB22FM.cjs} +9 -9
- package/dist/{chunk-5GA65VBW.cjs.map → chunk-TZYB22FM.cjs.map} +1 -1
- package/dist/{chunk-HSLPFBK2.cjs → chunk-VL7ZX4KQ.cjs} +6 -6
- package/dist/{chunk-HSLPFBK2.cjs.map → chunk-VL7ZX4KQ.cjs.map} +1 -1
- package/dist/{chunk-2F57IO7S.cjs → chunk-XCW6OY7E.cjs} +27 -27
- package/dist/{chunk-2F57IO7S.cjs.map → chunk-XCW6OY7E.cjs.map} +1 -1
- package/dist/{chunk-NG2EE7HR.cjs → chunk-YWHUWIHP.cjs} +9 -9
- package/dist/{chunk-NG2EE7HR.cjs.map → chunk-YWHUWIHP.cjs.map} +1 -1
- package/dist/connect/docx.cjs +16 -16
- package/dist/connect/index.cjs +1168 -416
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +2 -0
- package/dist/connect/index.js +12 -0
- package/dist/connect/index.js.map +2 -2
- package/dist/connect/viewer.cjs +16 -16
- package/dist/connection/ConnectedWorkflowBuilder.d.ts +12 -0
- package/dist/connection/ConnectedWorkflowBuilder.js +6 -1
- package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
- package/dist/connection/assistant/AssistantDrafts.d.ts +21 -0
- package/dist/connection/assistant/AssistantDrafts.js +158 -0
- package/dist/connection/assistant/AssistantDrafts.js.map +7 -0
- package/dist/connection/assistant/AssistantPlan.d.ts +16 -0
- package/dist/connection/assistant/AssistantPlan.js +72 -0
- package/dist/connection/assistant/AssistantPlan.js.map +7 -0
- package/dist/connection/assistant/AssistantStatusPanel.d.ts +28 -0
- package/dist/connection/assistant/AssistantStatusPanel.js +206 -0
- package/dist/connection/assistant/AssistantStatusPanel.js.map +7 -0
- package/dist/connection/assistant/ConnectedAssistantPage.d.ts +39 -0
- package/dist/connection/assistant/ConnectedAssistantPage.js +377 -0
- package/dist/connection/assistant/ConnectedAssistantPage.js.map +7 -0
- package/dist/connection/conversation/AgentSteps.js +19 -2
- package/dist/connection/conversation/AgentSteps.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +22 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/useDocumentVersionRestore.d.ts +14 -0
- package/dist/connection/viewer/useDocumentVersionRestore.js +48 -0
- package/dist/connection/viewer/useDocumentVersionRestore.js.map +7 -0
- package/dist/connection/viewer/useViewerTabs.d.ts +1 -1
- package/dist/connection/viewer/useViewerTabs.js +6 -3
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/document-tools/VersionSnapshotBar.d.ts +4 -1
- package/dist/document-tools/VersionSnapshotBar.js +14 -0
- package/dist/document-tools/VersionSnapshotBar.js.map +2 -2
- package/dist/document-tools/index.cjs +13 -13
- package/dist/embed/index.cjs +25 -25
- package/dist/facts/index.cjs +43 -43
- package/dist/index.cjs +530 -530
- package/dist/office/index.cjs +5 -5
- package/dist/settings/index.cjs +1 -1
- package/dist/site/index.cjs +5 -5
- package/dist/studio/index.cjs +16 -16
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/TriggerInspector.d.ts +7 -0
- package/dist/workflow-canvas/TriggerInspector.js +56 -0
- package/dist/workflow-canvas/TriggerInspector.js.map +2 -2
- package/dist/workflow-canvas/index.cjs +142 -81
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ai-IEIR7SC2.cjs.map +0 -1
- package/dist/chunk-3IH55CDE.cjs.map +0 -1
- package/dist/chunk-EG7EJFUE.cjs.map +0 -1
- package/dist/chunk-I3A6KKWY.cjs.map +0 -1
- package/dist/chunk-NQML7IUC.cjs.map +0 -1
- package/dist/chunk-QRAQZTJE.cjs.map +0 -1
- package/dist/chunk-TP5PGWIO.cjs.map +0 -1
- package/dist/chunk-U7D6ZDR2.cjs.map +0 -1
|
@@ -3,29 +3,29 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkYZ6YOOTF_cjs = require('./chunk-YZ6YOOTF.cjs');
|
|
5
5
|
var chunkKWJW5TMH_cjs = require('./chunk-KWJW5TMH.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkMXGXKUSW_cjs = require('./chunk-MXGXKUSW.cjs');
|
|
7
7
|
var chunk7PN3YENO_cjs = require('./chunk-7PN3YENO.cjs');
|
|
8
|
-
var
|
|
9
|
-
var chunkQUMUAJ2P_cjs = require('./chunk-QUMUAJ2P.cjs');
|
|
8
|
+
var chunkHBUHOCWF_cjs = require('./chunk-HBUHOCWF.cjs');
|
|
10
9
|
var chunkT73BHNQX_cjs = require('./chunk-T73BHNQX.cjs');
|
|
11
|
-
var
|
|
10
|
+
var chunkTZYB22FM_cjs = require('./chunk-TZYB22FM.cjs');
|
|
12
11
|
var chunkP5AQYC4D_cjs = require('./chunk-P5AQYC4D.cjs');
|
|
13
|
-
var
|
|
12
|
+
var chunkDBN6GBRQ_cjs = require('./chunk-DBN6GBRQ.cjs');
|
|
14
13
|
var chunkJH6JTI76_cjs = require('./chunk-JH6JTI76.cjs');
|
|
15
14
|
var chunkZ3LFF3YT_cjs = require('./chunk-Z3LFF3YT.cjs');
|
|
16
15
|
var chunkNSD37OF5_cjs = require('./chunk-NSD37OF5.cjs');
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
16
|
+
var chunkOD6NGGL3_cjs = require('./chunk-OD6NGGL3.cjs');
|
|
17
|
+
var chunkQFXOTJ6G_cjs = require('./chunk-QFXOTJ6G.cjs');
|
|
18
|
+
var chunk5A6T4W46_cjs = require('./chunk-5A6T4W46.cjs');
|
|
20
19
|
var chunkJJZOL5MG_cjs = require('./chunk-JJZOL5MG.cjs');
|
|
21
|
-
var
|
|
20
|
+
var chunkSUOHAB7N_cjs = require('./chunk-SUOHAB7N.cjs');
|
|
21
|
+
var chunkQUMUAJ2P_cjs = require('./chunk-QUMUAJ2P.cjs');
|
|
22
22
|
var chunkHQDR43JC_cjs = require('./chunk-HQDR43JC.cjs');
|
|
23
23
|
var chunkJR2YSBD5_cjs = require('./chunk-JR2YSBD5.cjs');
|
|
24
24
|
var chunk5SKHK3BG_cjs = require('./chunk-5SKHK3BG.cjs');
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
25
|
+
var chunkA6GBPE5E_cjs = require('./chunk-A6GBPE5E.cjs');
|
|
26
|
+
var chunkVL7ZX4KQ_cjs = require('./chunk-VL7ZX4KQ.cjs');
|
|
27
|
+
var chunkEQTZQD66_cjs = require('./chunk-EQTZQD66.cjs');
|
|
28
|
+
var chunkJN5YMHGI_cjs = require('./chunk-JN5YMHGI.cjs');
|
|
29
29
|
var chunkIPSHAMO2_cjs = require('./chunk-IPSHAMO2.cjs');
|
|
30
30
|
var chunkTKHCIHE2_cjs = require('./chunk-TKHCIHE2.cjs');
|
|
31
31
|
var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
|
|
@@ -70,7 +70,7 @@ function ConnectedTaskComposer({
|
|
|
70
70
|
const startLater = startLaterProp && automationsEnabled;
|
|
71
71
|
const isWorkflow = kind === "workflow";
|
|
72
72
|
const isEdit = isWorkflow ? !!editingWorkflow : !!task;
|
|
73
|
-
const { forTasks: baseSkills, skills } =
|
|
73
|
+
const { forTasks: baseSkills, skills } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
|
|
74
74
|
const { data: reviewFields = [] } = react.useTags();
|
|
75
75
|
const scheduledSkills = react$1.useMemo(
|
|
76
76
|
() => [
|
|
@@ -129,8 +129,8 @@ function ConnectedTaskComposer({
|
|
|
129
129
|
const { data: workspaces = [] } = react.useWorkspaces();
|
|
130
130
|
const { tasks: allTasks } = react.useWorkItems();
|
|
131
131
|
const { data: documents = [] } = react.useDocuments();
|
|
132
|
-
const { create, update, updateWorkflow, isPending } =
|
|
133
|
-
const scopeSource =
|
|
132
|
+
const { create, update, updateWorkflow, isPending } = chunkHBUHOCWF_cjs.useWorkflowTasks();
|
|
133
|
+
const scopeSource = chunkDBN6GBRQ_cjs.useConnectedWorkflowScopeSource();
|
|
134
134
|
const activeWorkspaceId = react.useArbiSessionState((s) => s.workspaceId);
|
|
135
135
|
const planWork = react.usePlanWork(activeWorkspaceId);
|
|
136
136
|
const activeWorkspace = react$1.useMemo(
|
|
@@ -148,7 +148,7 @@ function ConnectedTaskComposer({
|
|
|
148
148
|
const label = (t) => t.title?.trim() || "Untitled task";
|
|
149
149
|
if (isWorkflow) return allTasks.map((t) => ({ id: t.external_id, name: label(t) }));
|
|
150
150
|
const subject = task ?? { external_id: "__new__" };
|
|
151
|
-
return
|
|
151
|
+
return chunkOD6NGGL3_cjs.moveTargets(
|
|
152
152
|
[...allTasks.filter((t) => t.external_id !== subject.external_id), subject],
|
|
153
153
|
subject
|
|
154
154
|
).map((t) => ({ id: t.external_id, name: label(t) }));
|
|
@@ -163,33 +163,33 @@ function ConnectedTaskComposer({
|
|
|
163
163
|
);
|
|
164
164
|
const initialValues = react$1.useMemo(() => {
|
|
165
165
|
const ids = {
|
|
166
|
-
customWorkflowId:
|
|
167
|
-
reminderWorkflowId:
|
|
166
|
+
customWorkflowId: chunk5A6T4W46_cjs.CUSTOM_TASK_ID,
|
|
167
|
+
reminderWorkflowId: chunk5A6T4W46_cjs.REMIND_TASK_ID,
|
|
168
168
|
definitions: forTasks
|
|
169
169
|
};
|
|
170
170
|
const base = launchWorkflow ? {
|
|
171
|
-
...
|
|
171
|
+
...chunk5A6T4W46_cjs.workflowToComposerValues(launchWorkflow, ids),
|
|
172
172
|
when: "once",
|
|
173
173
|
runAt: "",
|
|
174
174
|
rrule: "",
|
|
175
175
|
eventKind: "",
|
|
176
176
|
afterTaskId: "",
|
|
177
177
|
name: ""
|
|
178
|
-
} : editingWorkflow ?
|
|
178
|
+
} : editingWorkflow ? chunk5A6T4W46_cjs.workflowToComposerValues(editingWorkflow, ids) : task ? chunk5A6T4W46_cjs.taskToComposerValues(task, ids) : isWorkflow ? {
|
|
179
179
|
// Run now is the default start; scheduling is the fallback in the same field.
|
|
180
180
|
assignee: "agent",
|
|
181
|
-
workflowId: initialWorkflowId ??
|
|
181
|
+
workflowId: initialWorkflowId ?? chunk5A6T4W46_cjs.CUSTOM_TASK_ID,
|
|
182
182
|
when: startLater ? "once" : "now",
|
|
183
183
|
...initialPrompt ? {
|
|
184
184
|
inputs: {
|
|
185
|
-
[initialWorkflowId ===
|
|
185
|
+
[initialWorkflowId === chunk5A6T4W46_cjs.REMIND_TASK_ID ? "message" : "instruction"]: initialPrompt
|
|
186
186
|
}
|
|
187
187
|
} : {},
|
|
188
188
|
// A scheduled run needs an agent: the owner's Assistant unless another is picked.
|
|
189
189
|
...startLater && defaultAgentId ? { agentId: defaultAgentId } : {}
|
|
190
190
|
} : initialAgentExtId ? (
|
|
191
191
|
// Assigning an agent means agentic work: the free instruction, and tell me when done.
|
|
192
|
-
{ agentId: initialAgentExtId, workflowId:
|
|
192
|
+
{ agentId: initialAgentExtId, workflowId: chunk5A6T4W46_cjs.CUSTOM_TASK_ID, notifyOnComplete: true }
|
|
193
193
|
) : {};
|
|
194
194
|
return {
|
|
195
195
|
timezone: chunkQUMUAJ2P_cjs.detectTimeZone(),
|
|
@@ -250,7 +250,7 @@ function ConnectedTaskComposer({
|
|
|
250
250
|
const ctx = {
|
|
251
251
|
workflow: chosen,
|
|
252
252
|
values: submitted,
|
|
253
|
-
plan: chosen.id ===
|
|
253
|
+
plan: chosen.id === chunk5A6T4W46_cjs.CUSTOM_TASK_ID ? plan : null
|
|
254
254
|
};
|
|
255
255
|
try {
|
|
256
256
|
if (isWorkflow && editingWorkflow && !options?.runOnce) {
|
|
@@ -286,7 +286,7 @@ function ConnectedTaskComposer({
|
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
289
|
-
|
|
289
|
+
chunkOD6NGGL3_cjs.TaskComposer,
|
|
290
290
|
{
|
|
291
291
|
open,
|
|
292
292
|
onOpenChange,
|
|
@@ -300,15 +300,15 @@ function ConnectedTaskComposer({
|
|
|
300
300
|
tasks: taskOptions,
|
|
301
301
|
initialValues,
|
|
302
302
|
timezones,
|
|
303
|
-
eventOptions:
|
|
303
|
+
eventOptions: chunkQFXOTJ6G_cjs.AUTOMATION_EVENTS,
|
|
304
304
|
eventWorkflowOptions: workspaceAutomations.filter((item) => item.external_id !== editingWorkflow?.external_id).map((item) => ({ id: item.external_id, label: item.name })),
|
|
305
305
|
isPending,
|
|
306
306
|
planDrafting: planWork.isPending,
|
|
307
307
|
hasPlan: plan !== null,
|
|
308
|
-
renderIcon:
|
|
308
|
+
renderIcon: chunk5A6T4W46_cjs.renderWorkflowIcon,
|
|
309
309
|
scopeSource,
|
|
310
310
|
renderDocuments: (field, value, onChange) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
311
|
-
|
|
311
|
+
chunkDBN6GBRQ_cjs.ConnectedWorkflowDocumentsField,
|
|
312
312
|
{
|
|
313
313
|
field,
|
|
314
314
|
value,
|
|
@@ -339,8 +339,8 @@ function ConnectedTaskComposer({
|
|
|
339
339
|
...plan ? { addAndStart: "Approve plan and start", addAndSchedule: "Approve plan and schedule" } : {}
|
|
340
340
|
},
|
|
341
341
|
onSubmit: submit,
|
|
342
|
-
goal: (values) => values.workflowId ===
|
|
343
|
-
|
|
342
|
+
goal: (values) => values.workflowId === chunk5A6T4W46_cjs.CUSTOM_TASK_ID ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
343
|
+
chunkOD6NGGL3_cjs.TaskPlan,
|
|
344
344
|
{
|
|
345
345
|
plan,
|
|
346
346
|
onChange: setPlan,
|
|
@@ -386,7 +386,7 @@ function ConnectedWorkflowHistory({
|
|
|
386
386
|
const { openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
387
387
|
const { data: runs = [], isLoading } = react.useWorkflowRuns(workflow?.external_id);
|
|
388
388
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
389
|
-
|
|
389
|
+
chunkOD6NGGL3_cjs.TaskRunsDialog,
|
|
390
390
|
{
|
|
391
391
|
inline,
|
|
392
392
|
hideHeader,
|
|
@@ -421,7 +421,7 @@ function ConnectedTaskActivityDialog({
|
|
|
421
421
|
const activity = react.useConversationActivity(conversationId, { live });
|
|
422
422
|
const { data: agents = [] } = react.useAgents();
|
|
423
423
|
const { userId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
424
|
-
const { members } =
|
|
424
|
+
const { members } = chunkTZYB22FM_cjs.useConnectedWorkspaceRole();
|
|
425
425
|
const renderPerson = react$1.useCallback(
|
|
426
426
|
(id) => {
|
|
427
427
|
const isMe = !!id && id === userId;
|
|
@@ -437,7 +437,7 @@ function ConnectedTaskActivityDialog({
|
|
|
437
437
|
[agents]
|
|
438
438
|
);
|
|
439
439
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
440
|
-
|
|
440
|
+
chunkOD6NGGL3_cjs.TaskActivityDialog,
|
|
441
441
|
{
|
|
442
442
|
open: true,
|
|
443
443
|
onOpenChange: (open) => !open && onClose(),
|
|
@@ -487,7 +487,7 @@ function ConnectedThreadTaskBar({
|
|
|
487
487
|
renderIcon
|
|
488
488
|
}) {
|
|
489
489
|
const { conversations } = react.useConversationItems();
|
|
490
|
-
const { activity, items, related, signals, startedBy } =
|
|
490
|
+
const { activity, items, related, signals, startedBy } = chunkMXGXKUSW_cjs.useConnectedThreadActivity(conversationId);
|
|
491
491
|
const canEditShared = react.useCanEditShared();
|
|
492
492
|
const update = react.useUpdateConversation();
|
|
493
493
|
const actOnStep = react.useActOnStep();
|
|
@@ -508,8 +508,8 @@ function ConnectedThreadTaskBar({
|
|
|
508
508
|
const person = members.find((m) => m.user.external_id === id)?.user;
|
|
509
509
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
510
510
|
};
|
|
511
|
-
const steps =
|
|
512
|
-
const states =
|
|
511
|
+
const steps = chunkQFXOTJ6G_cjs.fromPlanSteps(task?.plan?.steps ?? []);
|
|
512
|
+
const states = chunkEQTZQD66_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
513
513
|
const runInputs = task?.skill_inputs ?? {};
|
|
514
514
|
const stepCall = (body) => actOnStep.mutateAsync({ conversationId, body });
|
|
515
515
|
const uploadToRun = async (files) => {
|
|
@@ -535,18 +535,18 @@ function ConnectedThreadTaskBar({
|
|
|
535
535
|
).finally(() => setBusy(false));
|
|
536
536
|
};
|
|
537
537
|
const strip = /* @__PURE__ */ jsxRuntime.jsx(
|
|
538
|
-
|
|
538
|
+
chunkOD6NGGL3_cjs.WorkflowThreadStrip,
|
|
539
539
|
{
|
|
540
540
|
renderIcon,
|
|
541
541
|
...variant === "steps" ? { maxSpan: 3, current: currentStepId, onSelectStep } : {},
|
|
542
542
|
steps,
|
|
543
543
|
states,
|
|
544
544
|
items,
|
|
545
|
-
assigneeOf: (step) =>
|
|
545
|
+
assigneeOf: (step) => chunkEQTZQD66_cjs.canAssign(step) ? chunkEQTZQD66_cjs.assigneeName(step.assignee, {
|
|
546
546
|
// A step that is the viewer's own reads "Waiting for you".
|
|
547
547
|
nameOf: (id) => id === me ? "you" : nameOf(id),
|
|
548
548
|
inputs: runInputs,
|
|
549
|
-
fields:
|
|
549
|
+
fields: chunkEQTZQD66_cjs.runFieldsOf(steps),
|
|
550
550
|
announcedTo: states[step.id]?.announcedTo
|
|
551
551
|
}) : void 0,
|
|
552
552
|
signals,
|
|
@@ -555,7 +555,7 @@ function ConnectedThreadTaskBar({
|
|
|
555
555
|
const doc = documents.find((d) => d.external_id === id);
|
|
556
556
|
return doc ? ui.getDocumentTitle(doc) : void 0;
|
|
557
557
|
},
|
|
558
|
-
onOpenDocument: (ref) => openDocument(
|
|
558
|
+
onOpenDocument: (ref) => openDocument(chunkEQTZQD66_cjs.splitDocRef(ref).id),
|
|
559
559
|
inputs: runInputs,
|
|
560
560
|
nameOf: (id) => id === me ? "you" : nameOf(id),
|
|
561
561
|
onSkip: canEdit ? (step) => void actOnStep.mutateAsync({ conversationId, body: { step, action: "skip" } }).catch(
|
|
@@ -564,7 +564,7 @@ function ConnectedThreadTaskBar({
|
|
|
564
564
|
renderStepAction: (step, phase) => (
|
|
565
565
|
// A signer or a draft's person acts on their step even on a thread they cannot edit.
|
|
566
566
|
canEdit || phase === "waiting" || phase === "done" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
567
|
-
|
|
567
|
+
chunkOD6NGGL3_cjs.WorkflowStepAction,
|
|
568
568
|
{
|
|
569
569
|
step,
|
|
570
570
|
phase,
|
|
@@ -602,8 +602,8 @@ function ConnectedThreadTaskBar({
|
|
|
602
602
|
// A workflow run: its named steps, with what happened in the thread under each.
|
|
603
603
|
strip
|
|
604
604
|
) : items.length || startedBy ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
605
|
-
startedBy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
606
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
605
|
+
startedBy && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.WorkflowThreadStartedBy, { origin: startedBy }),
|
|
606
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQFXOTJ6G_cjs.TaskFlow, { items: items.filter((item) => !item.step) })
|
|
607
607
|
] }) : (
|
|
608
608
|
// Ordinary chats record no activity events, so an empty ribbon says nothing rather than
|
|
609
609
|
// "No recorded activity yet" while the answer and its steps are right there in the thread.
|
|
@@ -721,7 +721,7 @@ ${labels.map((l) => `${l.key}=${l.name}`).join("\n")}`;
|
|
|
721
721
|
if (known) return known;
|
|
722
722
|
const setUp = (async () => {
|
|
723
723
|
const existing = await arbi.tags.list({ workspaceId });
|
|
724
|
-
const { ids, missing } =
|
|
724
|
+
const { ids, missing } = chunkOD6NGGL3_cjs.matchRequiredLabels(labels, existing);
|
|
725
725
|
for (const label of missing) {
|
|
726
726
|
const tag = await createTag({
|
|
727
727
|
name: label.name,
|
|
@@ -973,7 +973,7 @@ function useWorkflowRunTarget({
|
|
|
973
973
|
}) {
|
|
974
974
|
const { workspaceId: open } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
975
975
|
const session = react.useArbiSessionStore();
|
|
976
|
-
const selectWorkspace =
|
|
976
|
+
const selectWorkspace = chunkMXGXKUSW_cjs.useSelectWorkspace();
|
|
977
977
|
const createProject = react.useCreateProject();
|
|
978
978
|
const { mutateAsync: updateProject } = react.useUpdateProjectFields();
|
|
979
979
|
const { mutateAsync: updateWorkspace } = react.useUpdateWorkspace();
|
|
@@ -1125,13 +1125,13 @@ function WorkflowRunProjectChooser({
|
|
|
1125
1125
|
landing: "chat"
|
|
1126
1126
|
};
|
|
1127
1127
|
const [adding, setAdding] = react$1.useState(false);
|
|
1128
|
-
const [values, setValues] = react$1.useState(() =>
|
|
1128
|
+
const [values, setValues] = react$1.useState(() => chunkJN5YMHGI_cjs.defaultInputs(form));
|
|
1129
1129
|
const [error, setError] = react$1.useState(null);
|
|
1130
1130
|
const formRef = react$1.useRef(null);
|
|
1131
1131
|
react$1.useEffect(() => {
|
|
1132
1132
|
if (adding) formRef.current?.querySelector("input, textarea")?.focus();
|
|
1133
1133
|
}, [adding]);
|
|
1134
|
-
const problems =
|
|
1134
|
+
const problems = chunkJN5YMHGI_cjs.validateInputs(form, values);
|
|
1135
1135
|
const complete = Object.keys(problems).length === 0;
|
|
1136
1136
|
const missing = fields.filter((f) => problems[f.name]).map((f) => f.label);
|
|
1137
1137
|
const options = react$1.useMemo(
|
|
@@ -1180,7 +1180,7 @@ function WorkflowRunProjectChooser({
|
|
|
1180
1180
|
"data-testid": `${testId}-new-project`,
|
|
1181
1181
|
children: [
|
|
1182
1182
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1183
|
-
|
|
1183
|
+
chunkSUOHAB7N_cjs.SchemaForm,
|
|
1184
1184
|
{
|
|
1185
1185
|
fields,
|
|
1186
1186
|
values,
|
|
@@ -1353,7 +1353,7 @@ function RunThread({
|
|
|
1353
1353
|
}) {
|
|
1354
1354
|
const chat = react.useConversation({ workspaceId });
|
|
1355
1355
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1356
|
-
|
|
1356
|
+
chunkA6GBPE5E_cjs.ChatPage,
|
|
1357
1357
|
{
|
|
1358
1358
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
1359
1359
|
singleThread: true,
|
|
@@ -1370,7 +1370,7 @@ function RunThread({
|
|
|
1370
1370
|
}
|
|
1371
1371
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
1372
1372
|
function formValues(step, inputs) {
|
|
1373
|
-
const fields =
|
|
1373
|
+
const fields = chunkEQTZQD66_cjs.stepFields(step);
|
|
1374
1374
|
if (!fields.length) return void 0;
|
|
1375
1375
|
if (step.kind === "form")
|
|
1376
1376
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -1408,7 +1408,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1408
1408
|
const wsId = workspaceId ?? void 0;
|
|
1409
1409
|
const [threadId, setThreadId] = react$1.useState(options.conversationId);
|
|
1410
1410
|
const [localInputs, setLocalInputs] = react$1.useState(
|
|
1411
|
-
() =>
|
|
1411
|
+
() => chunkEQTZQD66_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
1412
1412
|
);
|
|
1413
1413
|
const [edits, setEdits] = react$1.useState({});
|
|
1414
1414
|
const [localStates, setLocalStates] = react$1.useState({});
|
|
@@ -1428,12 +1428,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1428
1428
|
);
|
|
1429
1429
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
1430
1430
|
const steps = react$1.useMemo(
|
|
1431
|
-
() =>
|
|
1431
|
+
() => chunkEQTZQD66_cjs.workflowSteps(workflow).length > 0 ? chunkEQTZQD66_cjs.workflowSteps(workflow) : chunkQFXOTJ6G_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
1432
1432
|
[workflow, conversation?.plan?.steps]
|
|
1433
1433
|
);
|
|
1434
1434
|
const activity = react.useConversationActivity(threadId, { live: !!threadId });
|
|
1435
1435
|
const serverStates = react$1.useMemo(
|
|
1436
|
-
() =>
|
|
1436
|
+
() => chunkEQTZQD66_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
1437
1437
|
[activity.data]
|
|
1438
1438
|
);
|
|
1439
1439
|
const working = steps.some(
|
|
@@ -1475,9 +1475,9 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1475
1475
|
const createThread = react$1.useCallback(
|
|
1476
1476
|
async (values, done) => {
|
|
1477
1477
|
const prepared = await options.beforeStart?.();
|
|
1478
|
-
const planned = prepared?.labelIds ?
|
|
1478
|
+
const planned = prepared?.labelIds ? chunkOD6NGGL3_cjs.withLabelIds(workflow, prepared.labelIds) : workflow;
|
|
1479
1479
|
const created = await createWork.mutateAsync({
|
|
1480
|
-
title:
|
|
1480
|
+
title: chunkEQTZQD66_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
1481
1481
|
description: workflow.description || null,
|
|
1482
1482
|
prompt: null,
|
|
1483
1483
|
skill_ref: null,
|
|
@@ -1489,7 +1489,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1489
1489
|
criteria: [],
|
|
1490
1490
|
max_passes: 3,
|
|
1491
1491
|
documents: [],
|
|
1492
|
-
steps:
|
|
1492
|
+
steps: chunkQFXOTJ6G_cjs.toPlanSteps(planned, {
|
|
1493
1493
|
inputs: values,
|
|
1494
1494
|
resolveWorkflow: options.resolveWorkflow,
|
|
1495
1495
|
compose: options.compose
|
|
@@ -1576,7 +1576,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1576
1576
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
1577
1577
|
const needsStart = !threadId || idle && !anyRunning;
|
|
1578
1578
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
1579
|
-
const view =
|
|
1579
|
+
const view = chunkOD6NGGL3_cjs.useWorkflowView({
|
|
1580
1580
|
steps,
|
|
1581
1581
|
states,
|
|
1582
1582
|
inputs,
|
|
@@ -1625,7 +1625,7 @@ function WorkflowSignDialog({
|
|
|
1625
1625
|
const arbi = react.useArbi();
|
|
1626
1626
|
const { user, ensureWorkspaceOpen } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
1627
1627
|
const tools = documentTools.useOptionalDocumentTools();
|
|
1628
|
-
const { id, version: stepVersion } =
|
|
1628
|
+
const { id, version: stepVersion } = chunkEQTZQD66_cjs.splitDocRef(docRef);
|
|
1629
1629
|
const [version, setVersion] = react$1.useState(stepVersion);
|
|
1630
1630
|
const [pdf, setPdf] = react$1.useState(null);
|
|
1631
1631
|
const [preparing, setPreparing] = react$1.useState(false);
|
|
@@ -1703,7 +1703,7 @@ function WorkflowWordDialog({
|
|
|
1703
1703
|
onClose,
|
|
1704
1704
|
labels
|
|
1705
1705
|
}) {
|
|
1706
|
-
const { id } =
|
|
1706
|
+
const { id } = chunkEQTZQD66_cjs.splitDocRef(docRef);
|
|
1707
1707
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1708
1708
|
chunkULWRNGGE_cjs.ModalScaffold,
|
|
1709
1709
|
{
|
|
@@ -1712,7 +1712,7 @@ function WorkflowWordDialog({
|
|
|
1712
1712
|
title: title ?? labels.wordTitle,
|
|
1713
1713
|
size: "xl",
|
|
1714
1714
|
testId: "workflow-word-dialog",
|
|
1715
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1715
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkTZYB22FM_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
1716
1716
|
}
|
|
1717
1717
|
);
|
|
1718
1718
|
}
|
|
@@ -1868,7 +1868,7 @@ function WorkflowRunBody({
|
|
|
1868
1868
|
const session = react.useArbiSessionStore();
|
|
1869
1869
|
const openRef = react$1.useRef(workspaceId);
|
|
1870
1870
|
openRef.current = workspaceId;
|
|
1871
|
-
const required =
|
|
1871
|
+
const required = chunkOD6NGGL3_cjs.requiredLabelsOf(given);
|
|
1872
1872
|
const ownEnsureLabels = useEnsureRequiredLabels();
|
|
1873
1873
|
const ensureLabels = page?.ensureLabels ?? ownEnsureLabels;
|
|
1874
1874
|
const [startedLabelIds, setStartedLabelIds] = react$1.useState({});
|
|
@@ -1883,7 +1883,7 @@ function WorkflowRunBody({
|
|
|
1883
1883
|
const fromStep = pageTarget ? projectStepOf(projectFrom) : void 0;
|
|
1884
1884
|
const projectStep = fromStep?.step;
|
|
1885
1885
|
const workflow = react$1.useMemo(
|
|
1886
|
-
() => withCommitStep(
|
|
1886
|
+
() => withCommitStep(chunkOD6NGGL3_cjs.withLabelIds(given, labelIds), projectStep),
|
|
1887
1887
|
[given, labelIds, projectStep]
|
|
1888
1888
|
);
|
|
1889
1889
|
const hostBeforeStart = options?.beforeStart;
|
|
@@ -1957,7 +1957,7 @@ function WorkflowRunBody({
|
|
|
1957
1957
|
() => ({
|
|
1958
1958
|
me: userId,
|
|
1959
1959
|
openDocument: onOpenDocument && ((ref) => {
|
|
1960
|
-
const { id, version } =
|
|
1960
|
+
const { id, version } = chunkEQTZQD66_cjs.splitDocRef(ref);
|
|
1961
1961
|
onOpenDocument(id, version);
|
|
1962
1962
|
}),
|
|
1963
1963
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -1967,7 +1967,7 @@ function WorkflowRunBody({
|
|
|
1967
1967
|
const w = state.waiting;
|
|
1968
1968
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
1969
1969
|
}),
|
|
1970
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
1970
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunkEQTZQD66_cjs.splitDocRef(ref).id) ?? "" })),
|
|
1971
1971
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
1972
1972
|
}),
|
|
1973
1973
|
[userId, onOpenDocument, onOpenDraft, hostActions, nameOfDoc]
|
|
@@ -2076,7 +2076,7 @@ function WorkflowRunBody({
|
|
|
2076
2076
|
) : null;
|
|
2077
2077
|
};
|
|
2078
2078
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2079
|
-
|
|
2079
|
+
chunkOD6NGGL3_cjs.WorkflowRunner,
|
|
2080
2080
|
{
|
|
2081
2081
|
people,
|
|
2082
2082
|
...runnerProps,
|
|
@@ -2137,10 +2137,10 @@ function WorkflowRunBody({
|
|
|
2137
2137
|
pageBar,
|
|
2138
2138
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2139
2139
|
!page && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2140
|
-
|
|
2140
|
+
chunkOD6NGGL3_cjs.WorkflowStepBar,
|
|
2141
2141
|
{
|
|
2142
2142
|
run: view,
|
|
2143
|
-
levels:
|
|
2143
|
+
levels: chunkEQTZQD66_cjs.stepLevels(view.steps),
|
|
2144
2144
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
2145
2145
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
2146
2146
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -2161,13 +2161,13 @@ function WorkflowRunBody({
|
|
|
2161
2161
|
return state ? [[s.id, state]] : [];
|
|
2162
2162
|
})
|
|
2163
2163
|
);
|
|
2164
|
-
const ref =
|
|
2164
|
+
const ref = chunkVL7ZX4KQ_cjs.stepDocuments(view.steps, states, id).at(-1);
|
|
2165
2165
|
const open = actions.openDocument ?? actions.openRedline;
|
|
2166
2166
|
return {
|
|
2167
2167
|
title: step.title,
|
|
2168
|
-
kind:
|
|
2168
|
+
kind: chunkVL7ZX4KQ_cjs.stepKindOf(step),
|
|
2169
2169
|
phase: view.phaseOf(id),
|
|
2170
|
-
document: ref && open ? { name: nameOfDoc(
|
|
2170
|
+
document: ref && open ? { name: nameOfDoc(chunkEQTZQD66_cjs.splitDocRef(ref).id) ?? ref, onOpen: () => open(ref) } : void 0
|
|
2171
2171
|
};
|
|
2172
2172
|
},
|
|
2173
2173
|
targetMessageId: target,
|
|
@@ -2377,7 +2377,7 @@ function ConnectedWorkflowRunPage({
|
|
|
2377
2377
|
workspaceId,
|
|
2378
2378
|
onProjectCreated
|
|
2379
2379
|
});
|
|
2380
|
-
const required =
|
|
2380
|
+
const required = chunkOD6NGGL3_cjs.requiredLabelsOf(workflow);
|
|
2381
2381
|
const ensure = useEnsureRequiredLabels();
|
|
2382
2382
|
const labels = useRequiredLabels(required, target.target, ensure, target.stage === "ready");
|
|
2383
2383
|
const fromStep = !!projectStepOf(projectFrom);
|
|
@@ -2502,5 +2502,5 @@ exports.useRequiredLabels = useRequiredLabels;
|
|
|
2502
2502
|
exports.useTaskPeople = useTaskPeople;
|
|
2503
2503
|
exports.useWorkflowsPageState = useWorkflowsPageState;
|
|
2504
2504
|
exports.workflowRunView = workflowRunView;
|
|
2505
|
-
//# sourceMappingURL=chunk-
|
|
2506
|
-
//# sourceMappingURL=chunk-
|
|
2505
|
+
//# sourceMappingURL=chunk-GOQV6NOK.cjs.map
|
|
2506
|
+
//# sourceMappingURL=chunk-GOQV6NOK.cjs.map
|