@arbidocs/blocks 0.4.72 → 0.4.73
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 +400 -261
- package/dist/agents/index.js +6 -3
- package/dist/agents/tasks/TaskActivityTimeline.d.ts +1 -1
- package/dist/agents/tasks/WorkflowThreadStrip.d.ts +58 -0
- package/dist/agents/tasks/index.d.ts +1 -0
- package/dist/agents/workflows/WorkflowRunner.d.ts +70 -0
- package/dist/agents/workflows/index.d.ts +7 -1
- package/dist/agents/workflows/planSteps.d.ts +28 -0
- package/dist/agents/workflows/run.d.ts +97 -0
- package/dist/agents/workflows/skillMarkdown.d.ts +15 -0
- package/dist/agents/workflows/types.d.ts +109 -0
- package/dist/agents/workflows/useWorkflowPreview.d.ts +14 -0
- package/dist/agents/workflows/useWorkflowView.d.ts +54 -0
- package/dist/agents/workflows/workflow.d.ts +3 -1
- package/dist/chunk-2P3T23C7.js +1250 -0
- package/dist/chunk-2P3T23C7.js.map +1 -0
- package/dist/chunk-7D737FLE.cjs +43 -0
- package/dist/chunk-7D737FLE.cjs.map +1 -0
- package/dist/{chunk-LFGJAZ5H.js → chunk-DDF5GPIJ.js} +6 -36
- package/dist/chunk-DDF5GPIJ.js.map +1 -0
- package/dist/chunk-DETZZBG2.cjs +91 -0
- package/dist/chunk-DETZZBG2.cjs.map +1 -0
- package/dist/chunk-EVUEIBNU.js +89 -0
- package/dist/chunk-EVUEIBNU.js.map +1 -0
- package/dist/chunk-GTNUQBXI.cjs +1296 -0
- package/dist/chunk-GTNUQBXI.cjs.map +1 -0
- package/dist/{chunk-DH7C2UJO.cjs → chunk-IUR565UW.cjs} +297 -524
- package/dist/chunk-IUR565UW.cjs.map +1 -0
- package/dist/{chunk-THO7DZNN.cjs → chunk-MUMH3Z6K.cjs} +20 -15
- package/dist/chunk-MUMH3Z6K.cjs.map +1 -0
- package/dist/{chunk-KOXUBCLL.js → chunk-ORA2XE7U.js} +3 -3
- package/dist/{chunk-KOXUBCLL.js.map → chunk-ORA2XE7U.js.map} +1 -1
- package/dist/{chunk-5HOAOKZL.js → chunk-OYMWV45N.js} +21 -16
- package/dist/chunk-OYMWV45N.js.map +1 -0
- package/dist/{chunk-IMC2Z32C.js → chunk-QDNXEB3T.js} +268 -484
- package/dist/chunk-QDNXEB3T.js.map +1 -0
- package/dist/{chunk-G5QTGKDJ.cjs → chunk-WOYUXVVQ.cjs} +6 -6
- package/dist/{chunk-G5QTGKDJ.cjs.map → chunk-WOYUXVVQ.cjs.map} +1 -1
- package/dist/chunk-XD2M6LIG.js +41 -0
- package/dist/chunk-XD2M6LIG.js.map +1 -0
- package/dist/{chunk-WBDK4PIA.cjs → chunk-Z5VUZ6YD.cjs} +6 -37
- package/dist/chunk-Z5VUZ6YD.cjs.map +1 -0
- package/dist/connect/docx.cjs +2 -2
- package/dist/connect/docx.js +1 -1
- package/dist/connect/index.cjs +316 -23
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +300 -8
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedWorkflowBuilder.d.ts +44 -0
- package/dist/connection/ConnectedWorkflowRunner.d.ts +27 -0
- package/dist/connection/useWorkflowThread.d.ts +34 -0
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +9 -83
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +6 -83
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +22 -21
- package/dist/home/index.cjs.map +1 -1
- package/dist/home/index.js +4 -3
- package/dist/home/index.js.map +1 -1
- package/dist/index.cjs +450 -311
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +5 -5
- package/dist/studio/index.js +3 -3
- package/dist/workflow-canvas/StepInspector.d.ts +46 -0
- package/dist/workflow-canvas/TriggerInspector.d.ts +46 -0
- package/dist/workflow-canvas/WorkflowBuilder.d.ts +55 -0
- package/dist/workflow-canvas/WorkflowCanvas.d.ts +65 -0
- package/dist/workflow-canvas/edit.d.ts +54 -0
- package/dist/workflow-canvas/index.cjs +1609 -0
- package/dist/workflow-canvas/index.cjs.map +1 -0
- package/dist/workflow-canvas/index.d.ts +13 -0
- package/dist/workflow-canvas/index.js +1579 -0
- package/dist/workflow-canvas/index.js.map +1 -0
- package/dist/workflow-canvas/trigger.d.ts +51 -0
- package/package.json +25 -14
- package/src/workflow-canvas/canvas.css +113 -0
- package/dist/chunk-5HOAOKZL.js.map +0 -1
- package/dist/chunk-DH7C2UJO.cjs.map +0 -1
- package/dist/chunk-IMC2Z32C.js.map +0 -1
- package/dist/chunk-LFGJAZ5H.js.map +0 -1
- package/dist/chunk-THO7DZNN.cjs.map +0 -1
- package/dist/chunk-WBDK4PIA.cjs.map +0 -1
package/dist/files/index.cjs
CHANGED
|
@@ -6,101 +6,24 @@ var chunk4DVEGXZQ_cjs = require('../chunk-4DVEGXZQ.cjs');
|
|
|
6
6
|
var chunkZPERNIMP_cjs = require('../chunk-ZPERNIMP.cjs');
|
|
7
7
|
var chunk3AFWGEDJ_cjs = require('../chunk-3AFWGEDJ.cjs');
|
|
8
8
|
var chunkVFUWWH52_cjs = require('../chunk-VFUWWH52.cjs');
|
|
9
|
+
var chunkDETZZBG2_cjs = require('../chunk-DETZZBG2.cjs');
|
|
9
10
|
var chunkIA7RTPT3_cjs = require('../chunk-IA7RTPT3.cjs');
|
|
10
11
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
11
12
|
var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
|
|
12
|
-
require('../chunk-C54XEN5T.cjs');
|
|
13
13
|
require('../chunk-FX3K6LNZ.cjs');
|
|
14
14
|
require('../chunk-PPCATBOY.cjs');
|
|
15
|
+
require('../chunk-C54XEN5T.cjs');
|
|
15
16
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
16
17
|
var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
|
|
17
18
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
18
19
|
var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
|
|
19
20
|
require('../chunk-DES3K4SD.cjs');
|
|
20
|
-
var
|
|
21
|
-
var lucideReact = require('lucide-react');
|
|
21
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
22
22
|
var ui = require('@arbidocs/react/ui');
|
|
23
23
|
var jsxRuntime = require('react/jsx-runtime');
|
|
24
|
-
var
|
|
24
|
+
var react = require('react');
|
|
25
|
+
var lucideReact = require('lucide-react');
|
|
25
26
|
|
|
26
|
-
function UploadDropzone({
|
|
27
|
-
onFiles,
|
|
28
|
-
accept,
|
|
29
|
-
multiple = true,
|
|
30
|
-
disabled = false,
|
|
31
|
-
uploading = false,
|
|
32
|
-
title = "Drag files here",
|
|
33
|
-
description = "or click to browse",
|
|
34
|
-
hint,
|
|
35
|
-
uploadingLabel = "Uploading\u2026",
|
|
36
|
-
icon: Icon = lucideReact.UploadCloud,
|
|
37
|
-
testId,
|
|
38
|
-
className
|
|
39
|
-
}) {
|
|
40
|
-
const inputRef = react.useRef(null);
|
|
41
|
-
const [dragOver, setDragOver] = react.useState(false);
|
|
42
|
-
const inert = disabled || uploading;
|
|
43
|
-
const pick2 = (files) => {
|
|
44
|
-
if (!files?.length) return;
|
|
45
|
-
onFiles(Array.from(files));
|
|
46
|
-
};
|
|
47
|
-
const onDrop = (e) => {
|
|
48
|
-
e.preventDefault();
|
|
49
|
-
setDragOver(false);
|
|
50
|
-
if (inert) return;
|
|
51
|
-
pick2(e.dataTransfer.files);
|
|
52
|
-
};
|
|
53
|
-
const onDragOver = (e) => {
|
|
54
|
-
e.preventDefault();
|
|
55
|
-
if (!inert) setDragOver(true);
|
|
56
|
-
};
|
|
57
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58
|
-
"button",
|
|
59
|
-
{
|
|
60
|
-
type: "button",
|
|
61
|
-
onClick: () => !inert && inputRef.current?.click(),
|
|
62
|
-
onDrop,
|
|
63
|
-
onDragOver,
|
|
64
|
-
onDragLeave: () => setDragOver(false),
|
|
65
|
-
disabled: inert,
|
|
66
|
-
"data-testid": testId,
|
|
67
|
-
className: ui.cn(
|
|
68
|
-
"flex w-full flex-col items-center justify-center gap-3 rounded-lg bg-muted px-6 py-12 text-center transition-colors",
|
|
69
|
-
"hover:bg-accent/60",
|
|
70
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
71
|
-
dragOver && "bg-accent ring-2 ring-primary",
|
|
72
|
-
inert && "cursor-not-allowed opacity-60 hover:bg-muted",
|
|
73
|
-
className
|
|
74
|
-
),
|
|
75
|
-
children: [
|
|
76
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
77
|
-
"input",
|
|
78
|
-
{
|
|
79
|
-
ref: inputRef,
|
|
80
|
-
type: "file",
|
|
81
|
-
accept,
|
|
82
|
-
multiple,
|
|
83
|
-
className: "hidden",
|
|
84
|
-
onChange: (e) => {
|
|
85
|
-
pick2(e.target.files);
|
|
86
|
-
if (inputRef.current) inputRef.current.value = "";
|
|
87
|
-
},
|
|
88
|
-
"data-testid": testId ? `${testId}-input` : void 0
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-primary/10 text-primary", children: uploading ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-6 animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "size-6" }) }),
|
|
92
|
-
uploading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-foreground", children: uploadingLabel }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
93
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-foreground", children: [
|
|
94
|
-
title,
|
|
95
|
-
" ",
|
|
96
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: description })
|
|
97
|
-
] }),
|
|
98
|
-
hint && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: hint })
|
|
99
|
-
] })
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
27
|
var pill = classVarianceAuthority.cva(
|
|
105
28
|
"inline-flex max-w-full items-center justify-center gap-1 rounded-full text-xs font-medium leading-none",
|
|
106
29
|
{
|
|
@@ -7157,6 +7080,10 @@ Object.defineProperty(exports, "HoverIconCell", {
|
|
|
7157
7080
|
enumerable: true,
|
|
7158
7081
|
get: function () { return chunk3AFWGEDJ_cjs.HoverIconCell; }
|
|
7159
7082
|
});
|
|
7083
|
+
Object.defineProperty(exports, "UploadDropzone", {
|
|
7084
|
+
enumerable: true,
|
|
7085
|
+
get: function () { return chunkDETZZBG2_cjs.UploadDropzone; }
|
|
7086
|
+
});
|
|
7160
7087
|
Object.defineProperty(exports, "DEFAULT_SELECTION_BAR_LABELS", {
|
|
7161
7088
|
enumerable: true,
|
|
7162
7089
|
get: function () { return chunkIA7RTPT3_cjs.DEFAULT_SELECTION_BAR_LABELS; }
|
|
@@ -7320,7 +7247,6 @@ exports.TranslationCompareTable = TranslationCompareTable;
|
|
|
7320
7247
|
exports.UploadBrowseButtons = UploadBrowseButtons;
|
|
7321
7248
|
exports.UploadContainer = UploadContainer;
|
|
7322
7249
|
exports.UploadDropArea = UploadDropArea;
|
|
7323
|
-
exports.UploadDropzone = UploadDropzone;
|
|
7324
7250
|
exports.UploadErrorMessage = UploadErrorMessage;
|
|
7325
7251
|
exports.UploadFooterBar = UploadFooterBar;
|
|
7326
7252
|
exports.UploadFrame = UploadFrame;
|