@arbidocs/blocks 0.4.122 → 0.4.123
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 +388 -324
- package/dist/agents/index.js +7 -7
- 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-UDK553WP.cjs → chunk-4VCKYR4D.cjs} +4 -4
- package/dist/{chunk-UDK553WP.cjs.map → chunk-4VCKYR4D.cjs.map} +1 -1
- package/dist/{chunk-XSUOEJB3.cjs → chunk-7FZWNDPU.cjs} +162 -836
- package/dist/chunk-7FZWNDPU.cjs.map +1 -0
- 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-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-AY32GGKU.js → chunk-MD7RVFKA.js} +131 -751
- package/dist/chunk-MD7RVFKA.js.map +1 -0
- package/dist/{chunk-65HZ36MY.js → chunk-OTDGTBAS.js} +20 -3
- package/dist/chunk-OTDGTBAS.js.map +1 -0
- package/dist/{chunk-ZP4IFW2E.js → chunk-RARHNGKM.js} +731 -183
- package/dist/chunk-RARHNGKM.js.map +1 -0
- package/dist/{chunk-XFZ7HNPG.js → chunk-SOZNA52K.js} +3 -3
- package/dist/{chunk-XFZ7HNPG.js.map → chunk-SOZNA52K.js.map} +1 -1
- package/dist/{chunk-US5ASM4G.cjs → chunk-U2F4SSJR.cjs} +5 -5
- package/dist/{chunk-US5ASM4G.cjs.map → chunk-U2F4SSJR.cjs.map} +1 -1
- package/dist/{chunk-Z2NSU7D5.cjs → chunk-V4V2CVNE.cjs} +768 -214
- package/dist/chunk-V4V2CVNE.cjs.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-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/index.cjs +63 -46
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +33 -16
- 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 +2 -2
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +840 -764
- package/dist/index.js +14 -14
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- 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/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 +61 -85
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +12 -36
- package/dist/workflow-canvas/index.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
|
@@ -1,48 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useConnection } from '../chunk-OYMWV45N.js';
|
|
3
|
-
import { workflowWhen, isoToLocalInput, describeRRule, RecurrenceBuilder, AgentSelect, useWorkflowPreview, localInputToIso } from '../chunk-
|
|
3
|
+
import { workflowWhen, isoToLocalInput, describeRRule, RecurrenceBuilder, AgentSelect, useWorkflowPreview, localInputToIso } from '../chunk-RARHNGKM.js';
|
|
4
4
|
import '../chunk-P5ST47VY.js';
|
|
5
5
|
import '../chunk-4XJZ6AAY.js';
|
|
6
6
|
import '../chunk-P6GHJSLR.js';
|
|
7
|
-
import {
|
|
7
|
+
import { isIncompleteSignal, fromPlanSteps, layoutFromPlanSteps, WorkflowRunner, toPlanSteps } from '../chunk-MD7RVFKA.js';
|
|
8
8
|
import '../chunk-XD2M6LIG.js';
|
|
9
9
|
import '../chunk-6S5FLMWG.js';
|
|
10
10
|
import '../chunk-RFXJYIDV.js';
|
|
11
11
|
import '../chunk-5LXQPP2K.js';
|
|
12
12
|
import '../chunk-S7PSMMRG.js';
|
|
13
13
|
import '../chunk-EVUEIBNU.js';
|
|
14
|
-
import { TONE_DOT, TONES, isTone } from '../chunk-AUS3KBHJ.js';
|
|
15
14
|
import '../chunk-NUNKSZKU.js';
|
|
16
15
|
import '../chunk-YU2KUMGE.js';
|
|
17
16
|
import '../chunk-N5YEF3LC.js';
|
|
18
|
-
import '../chunk-HOXKR26S.js';
|
|
19
|
-
import '../chunk-AA3PT6KR.js';
|
|
20
|
-
import '../chunk-SLSBJRWW.js';
|
|
21
17
|
import '../chunk-4WWM3GQ5.js';
|
|
22
18
|
import '../chunk-TX2ZICS7.js';
|
|
19
|
+
import '../chunk-76JDDMSP.js';
|
|
20
|
+
import { DEFAULT_STEP_KIND_LABELS, workflowSteps, dependsOn, stepLevels, runFields, upstreamSteps, stepDependencies, canAssign, WORKFLOW_STEP_KINDS, STEP_KIND_ICONS, validateWorkflowGraph, stepConfigProblems, skillToWorkflow, assigneeName, orderSteps, stepKindOf } from '../chunk-7HAM7Y5U.js';
|
|
21
|
+
import '../chunk-AA3PT6KR.js';
|
|
22
|
+
import { TONE_DOT, TONES, isTone } from '../chunk-AUS3KBHJ.js';
|
|
23
|
+
import '../chunk-SLSBJRWW.js';
|
|
23
24
|
import '../chunk-NPLYHR2E.js';
|
|
24
25
|
import '../chunk-7F6CBP3Z.js';
|
|
25
|
-
import '../chunk-76JDDMSP.js';
|
|
26
26
|
import '../chunk-OXF2IFXG.js';
|
|
27
27
|
import '../chunk-VUNV25KB.js';
|
|
28
28
|
import { useState, useMemo, useEffect, useCallback, useRef } from 'react';
|
|
29
29
|
import { useWorkspaceUsers, useTags, useDocuments, useWorkflows, useSkills, useAgents, useConversations, useCreateWorkflow, useUpdateWorkflow, useRunWorkflow } from '@arbidocs/react';
|
|
30
30
|
import { Label, Input, cn, Button, Textarea, Checkbox, Popover, PopoverTrigger, PopoverContent } from '@arbidocs/react/ui';
|
|
31
|
-
import { X, Plus, Trash2, Maximize,
|
|
31
|
+
import { X, Plus, Trash2, Maximize, PencilRuler, Eye, LayoutGrid, Settings2, Loader2, Play, Save, Zap, GitBranch, FilePenLine, UserRound, Hourglass, Check, AlertTriangle, MinusCircle } from 'lucide-react';
|
|
32
32
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
33
33
|
import { MarkerType, applyNodeChanges, ReactFlow, Background, BackgroundVariant, Controls, ControlButton, MiniMap, Handle, Position } from '@xyflow/react';
|
|
34
34
|
|
|
35
35
|
// src/workflow-canvas/edit.ts
|
|
36
|
-
var WORKFLOW_STEP_KINDS = [
|
|
37
|
-
"form",
|
|
38
|
-
"upload",
|
|
39
|
-
"agent",
|
|
40
|
-
"review",
|
|
41
|
-
"sign",
|
|
42
|
-
"email_draft",
|
|
43
|
-
"tabular_review"
|
|
44
|
-
];
|
|
45
|
-
var stepKindOf = (step) => step.kind === "action" ? step.action.type : step.kind;
|
|
46
36
|
function newSteppedWorkflow(id, title) {
|
|
47
37
|
return {
|
|
48
38
|
id,
|
|
@@ -1921,13 +1911,7 @@ function revealCenter(node, view, frame, reserveRight = 0) {
|
|
|
1921
1911
|
};
|
|
1922
1912
|
}
|
|
1923
1913
|
var DEFAULT_WORKFLOW_CANVAS_LABELS = {
|
|
1924
|
-
|
|
1925
|
-
upload: "Upload",
|
|
1926
|
-
agent: "AI step",
|
|
1927
|
-
review: "Approval",
|
|
1928
|
-
sign: "Sign",
|
|
1929
|
-
email_draft: "Email draft",
|
|
1930
|
-
tabular_review: "Tabular review",
|
|
1914
|
+
...DEFAULT_STEP_KIND_LABELS,
|
|
1931
1915
|
redline: "Tracked changes",
|
|
1932
1916
|
branch: "Branch",
|
|
1933
1917
|
kindHints: {
|
|
@@ -1958,15 +1942,6 @@ var DEFAULT_WORKFLOW_CANVAS_LABELS = {
|
|
|
1958
1942
|
fitView: "Fit view"
|
|
1959
1943
|
};
|
|
1960
1944
|
var TRIGGER_NODE = "__trigger";
|
|
1961
|
-
var STEP_KIND_ICONS = {
|
|
1962
|
-
form: FileInput,
|
|
1963
|
-
upload: Upload,
|
|
1964
|
-
agent: Bot,
|
|
1965
|
-
review: ClipboardCheck,
|
|
1966
|
-
sign: PenLine,
|
|
1967
|
-
email_draft: Mail,
|
|
1968
|
-
tabular_review: Table2
|
|
1969
|
-
};
|
|
1970
1945
|
var KINDS = WORKFLOW_STEP_KINDS;
|
|
1971
1946
|
function AddNext({
|
|
1972
1947
|
from,
|
|
@@ -2259,11 +2234,12 @@ function WorkflowCanvas({
|
|
|
2259
2234
|
const selectedRef = useRef(selected);
|
|
2260
2235
|
selectedRef.current = selected;
|
|
2261
2236
|
const fit = useCallback(
|
|
2262
|
-
async (flow, anchorOnSelection) => {
|
|
2237
|
+
async (flow, anchorOnSelection, whole = false) => {
|
|
2263
2238
|
await flow.fitView({
|
|
2264
2239
|
padding: { top: "48px", bottom: "48px", left: "48px", right: `${reserveRight + 48}px` },
|
|
2265
2240
|
maxZoom: 1
|
|
2266
2241
|
});
|
|
2242
|
+
if (whole) return;
|
|
2267
2243
|
const box = frame.current;
|
|
2268
2244
|
const picked = anchorOnSelection ? selectedRef.current : null;
|
|
2269
2245
|
const view = readableViewport(
|
|
@@ -2355,7 +2331,7 @@ function WorkflowCanvas({
|
|
|
2355
2331
|
ControlButton,
|
|
2356
2332
|
{
|
|
2357
2333
|
className: "react-flow__controls-fitview",
|
|
2358
|
-
onClick: () => flowRef.current && void fit(flowRef.current, true),
|
|
2334
|
+
onClick: () => flowRef.current && void fit(flowRef.current, false, true),
|
|
2359
2335
|
title: l.fitView,
|
|
2360
2336
|
"aria-label": l.fitView,
|
|
2361
2337
|
"data-testid": `${testId}-fit`,
|