@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkB6MVQCXW_cjs = require('./chunk-B6MVQCXW.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkHM23LXUP_cjs = require('./chunk-HM23LXUP.cjs');
|
|
6
6
|
var chunk7UTB4PHM_cjs = require('./chunk-7UTB4PHM.cjs');
|
|
7
7
|
var chunkPPCATBOY_cjs = require('./chunk-PPCATBOY.cjs');
|
|
8
8
|
var chunkMHVNT4J3_cjs = require('./chunk-MHVNT4J3.cjs');
|
|
@@ -13,14 +13,20 @@ var ui = require('@arbidocs/react/ui');
|
|
|
13
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
14
14
|
|
|
15
15
|
var DEFAULT_WORKFLOW_STEP_CHIP_LABELS = {
|
|
16
|
-
chip: "
|
|
16
|
+
chip: "{title}",
|
|
17
|
+
name: "Workflow step ({kind}): {title}",
|
|
17
18
|
show: "Show the instruction",
|
|
18
|
-
hide: "Hide the instruction"
|
|
19
|
+
hide: "Hide the instruction",
|
|
20
|
+
kinds: chunkHM23LXUP_cjs.DEFAULT_STEP_KIND_LABELS
|
|
19
21
|
};
|
|
20
22
|
function WorkflowStepChip({
|
|
21
23
|
step,
|
|
22
24
|
title,
|
|
25
|
+
kind = "agent",
|
|
26
|
+
phase = "running",
|
|
27
|
+
document: document2,
|
|
23
28
|
content,
|
|
29
|
+
messageId,
|
|
24
30
|
labels,
|
|
25
31
|
className,
|
|
26
32
|
testId = "workflow-step-message"
|
|
@@ -28,33 +34,59 @@ function WorkflowStepChip({
|
|
|
28
34
|
const l = { ...DEFAULT_WORKFLOW_STEP_CHIP_LABELS, ...labels };
|
|
29
35
|
const [open, setOpen] = react.useState(false);
|
|
30
36
|
const Chevron = open ? lucideReact.ChevronDown : lucideReact.ChevronRight;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
37
|
+
const KindIcon = chunkHM23LXUP_cjs.STEP_KIND_ICONS[kind];
|
|
38
|
+
const name = l.name.replace("{kind}", l.kinds[kind]).replace("{title}", title || step);
|
|
39
|
+
const done = phase === "done" || phase === "skipped";
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: ui.cn(`wf-kind-${kind}`, "flex w-full flex-col items-center gap-1.5 py-2", className),
|
|
44
|
+
"data-message-id": messageId,
|
|
45
|
+
"data-testid": testId,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-xl items-center gap-2", children: [
|
|
48
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: "wf-link", "data-done": done || void 0 }),
|
|
49
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
+
chunkHM23LXUP_cjs.StepChip,
|
|
51
|
+
{
|
|
52
|
+
kind,
|
|
53
|
+
phase,
|
|
54
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(KindIcon, {}),
|
|
55
|
+
label: l.chip.replace("{title}", title || step),
|
|
56
|
+
labelClassName: "max-w-[22rem] truncate",
|
|
57
|
+
onClick: () => setOpen((o) => !o),
|
|
58
|
+
"aria-expanded": open,
|
|
59
|
+
"aria-label": name,
|
|
60
|
+
title: open ? l.hide : l.show,
|
|
61
|
+
className: ui.cn("shrink-0", document2 && "rounded-r-none"),
|
|
62
|
+
"data-step": step,
|
|
63
|
+
"data-testid": `${testId}-toggle`,
|
|
64
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Chevron, { className: "size-3.5 shrink-0 text-muted-foreground", "aria-hidden": true })
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
document2 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
68
|
+
chunkHM23LXUP_cjs.StepDocumentButton,
|
|
69
|
+
{
|
|
70
|
+
kind,
|
|
71
|
+
name: document2.name,
|
|
72
|
+
onOpen: document2.onOpen,
|
|
73
|
+
showName: true,
|
|
74
|
+
testId: `${testId}-open-document`
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: "wf-link", "data-done": done || void 0 })
|
|
78
|
+
] }),
|
|
79
|
+
open && /* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
+
"p",
|
|
81
|
+
{
|
|
82
|
+
className: "m-0 max-w-prose whitespace-pre-wrap break-words rounded-lg border border-border bg-card px-3 py-2 text-sm text-muted-foreground",
|
|
83
|
+
"data-testid": `${testId}-content`,
|
|
84
|
+
children: content
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
58
90
|
}
|
|
59
91
|
var LINE_PX = 16;
|
|
60
92
|
function wheelPixels(event, page) {
|
|
@@ -1855,18 +1887,19 @@ function MessageRow({
|
|
|
1855
1887
|
identity,
|
|
1856
1888
|
renderContent,
|
|
1857
1889
|
onOpenCitation,
|
|
1858
|
-
|
|
1890
|
+
workflowStepOf,
|
|
1859
1891
|
labels
|
|
1860
1892
|
}) {
|
|
1861
1893
|
if (message.role === "user" && message.workflowStep) {
|
|
1862
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1894
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1863
1895
|
WorkflowStepChip,
|
|
1864
1896
|
{
|
|
1865
1897
|
step: message.workflowStep,
|
|
1866
|
-
|
|
1867
|
-
content: message.content
|
|
1898
|
+
...workflowStepOf?.(message.workflowStep),
|
|
1899
|
+
content: message.content,
|
|
1900
|
+
messageId: message.id
|
|
1868
1901
|
}
|
|
1869
|
-
)
|
|
1902
|
+
);
|
|
1870
1903
|
}
|
|
1871
1904
|
if (message.role === "user") {
|
|
1872
1905
|
return /* @__PURE__ */ jsxRuntime.jsx(Message.Root, { role: "user", messageId: message.id, children: /* @__PURE__ */ jsxRuntime.jsxs(Message.Content, { role: "user", messageId: message.id, children: [
|
|
@@ -1933,7 +1966,7 @@ function ChatPage({
|
|
|
1933
1966
|
identity,
|
|
1934
1967
|
renderContent,
|
|
1935
1968
|
onOpenCitation,
|
|
1936
|
-
|
|
1969
|
+
workflowStepOf,
|
|
1937
1970
|
singleThread,
|
|
1938
1971
|
targetMessageId,
|
|
1939
1972
|
asideBreakpoint = DEFAULT_ASIDE_BREAKPOINT_REM,
|
|
@@ -1960,15 +1993,15 @@ function ChatPage({
|
|
|
1960
1993
|
const textareaRef = react.useRef(null);
|
|
1961
1994
|
const currentThreadRef = react.useRef(chat.activeThreadId);
|
|
1962
1995
|
currentThreadRef.current = chat.activeThreadId;
|
|
1963
|
-
const mentions =
|
|
1996
|
+
const mentions = chunkHM23LXUP_cjs.useMentionAutocomplete({
|
|
1964
1997
|
value: draft,
|
|
1965
1998
|
onValueChange: setDraft,
|
|
1966
1999
|
candidates: chat.mentionCandidates ?? [],
|
|
1967
2000
|
textareaRef
|
|
1968
2001
|
});
|
|
1969
|
-
const { width } =
|
|
1970
|
-
const { height: headerHeight } =
|
|
1971
|
-
const rem =
|
|
2002
|
+
const { width } = chunkHM23LXUP_cjs.useElementSize(rootRef);
|
|
2003
|
+
const { height: headerHeight } = chunkHM23LXUP_cjs.useElementSize(headerRef);
|
|
2004
|
+
const rem = chunkHM23LXUP_cjs.rootFontSizePx();
|
|
1972
2005
|
const hasListColumn = !singleThread && width >= LIST_COLUMN_REM * rem;
|
|
1973
2006
|
const hasAsideColumn = width > 0 && width >= asideBreakpoint * rem;
|
|
1974
2007
|
const fillPx = useFillHeight(rootRef, fillHeight, minHeight);
|
|
@@ -2215,7 +2248,7 @@ function ChatPage({
|
|
|
2215
2248
|
identity,
|
|
2216
2249
|
renderContent,
|
|
2217
2250
|
onOpenCitation,
|
|
2218
|
-
|
|
2251
|
+
workflowStepOf,
|
|
2219
2252
|
labels: l
|
|
2220
2253
|
}
|
|
2221
2254
|
)
|
|
@@ -2518,5 +2551,5 @@ exports.useAssistantDock = useAssistantDock;
|
|
|
2518
2551
|
exports.useChatSurface = useChatSurface;
|
|
2519
2552
|
exports.useRegisterEmbeddedChat = useRegisterEmbeddedChat;
|
|
2520
2553
|
exports.useStreamAnnouncement = useStreamAnnouncement;
|
|
2521
|
-
//# sourceMappingURL=chunk-
|
|
2522
|
-
//# sourceMappingURL=chunk-
|
|
2554
|
+
//# sourceMappingURL=chunk-WV4IDVDQ.cjs.map
|
|
2555
|
+
//# sourceMappingURL=chunk-WV4IDVDQ.cjs.map
|