@datatechsolutions/ui 2.7.137 → 2.7.139
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/{chunk-WURM4JVE.mjs → chunk-AMUPPC66.mjs} +13 -6
- package/dist/chunk-AMUPPC66.mjs.map +1 -0
- package/dist/{chunk-6KYBGBI4.mjs → chunk-BTJP5QCD.mjs} +13 -2
- package/dist/{chunk-6KYBGBI4.mjs.map → chunk-BTJP5QCD.mjs.map} +1 -1
- package/dist/{chunk-5IE2FIWT.js → chunk-JYX3ILSA.js} +262 -120
- package/dist/chunk-JYX3ILSA.js.map +1 -0
- package/dist/{chunk-F4FMGGHO.js → chunk-ULPKAD4A.js} +13 -2
- package/dist/{chunk-F4FMGGHO.js.map → chunk-ULPKAD4A.js.map} +1 -1
- package/dist/{chunk-3OGFL5RQ.mjs → chunk-WTPYTOK4.mjs} +263 -121
- package/dist/chunk-WTPYTOK4.mjs.map +1 -0
- package/dist/{chunk-6Y3DK5EC.js → chunk-YCIUVIFN.js} +68 -61
- package/dist/chunk-YCIUVIFN.js.map +1 -0
- package/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +337 -337
- package/dist/index.mjs +1 -1
- package/dist/workflow/contracts.d.mts +13 -3
- package/dist/workflow/contracts.d.ts +13 -3
- package/dist/workflow/index.js +126 -125
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/index.mjs +6 -5
- package/dist/workflow/index.mjs.map +1 -1
- package/dist/workflow/utils.js +4 -4
- package/dist/workflow/utils.mjs +1 -1
- package/dist/workflow/workflow-canvas.js +4 -4
- package/dist/workflow/workflow-canvas.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-3OGFL5RQ.mjs.map +0 -1
- package/dist/chunk-5IE2FIWT.js.map +0 -1
- package/dist/chunk-6Y3DK5EC.js.map +0 -1
- package/dist/chunk-WURM4JVE.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkJYX3ILSA_js = require('./chunk-JYX3ILSA.js');
|
|
5
5
|
var chunkNJ6PBGQM_js = require('./chunk-NJ6PBGQM.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkULPKAD4A_js = require('./chunk-ULPKAD4A.js');
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var nextIntl = require('next-intl');
|
|
9
9
|
var dynamic = require('next/dynamic.js');
|
|
@@ -307,6 +307,7 @@ var LOGIC_NODE_GRADIENTS = {
|
|
|
307
307
|
iteration_start: "from-indigo-400 to-blue-500",
|
|
308
308
|
note: "from-yellow-400 to-amber-500",
|
|
309
309
|
entity: "from-blue-400 to-cyan-500",
|
|
310
|
+
datasource: "from-cyan-500 to-blue-600",
|
|
310
311
|
group: "from-slate-400 to-gray-500"
|
|
311
312
|
};
|
|
312
313
|
var LOGIC_NODE_BADGE_COLORS = {
|
|
@@ -328,6 +329,7 @@ var LOGIC_NODE_BADGE_COLORS = {
|
|
|
328
329
|
iteration_start: "bg-indigo-100 text-indigo-700 dark:bg-indigo-500/20 dark:text-indigo-300",
|
|
329
330
|
note: "bg-yellow-100 text-yellow-700 dark:bg-yellow-500/20 dark:text-yellow-300",
|
|
330
331
|
entity: "bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300",
|
|
332
|
+
datasource: "bg-cyan-100 text-cyan-700 dark:bg-cyan-500/20 dark:text-cyan-300",
|
|
331
333
|
group: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300"
|
|
332
334
|
};
|
|
333
335
|
var LOGIC_NODE_BADGE_SOFT_COLORS = {
|
|
@@ -349,6 +351,7 @@ var LOGIC_NODE_BADGE_SOFT_COLORS = {
|
|
|
349
351
|
iteration_start: "bg-indigo-50 text-indigo-600 dark:bg-indigo-500/20 dark:text-indigo-400",
|
|
350
352
|
note: "bg-yellow-50 text-yellow-600 dark:bg-yellow-500/20 dark:text-yellow-400",
|
|
351
353
|
entity: "bg-blue-50 text-blue-600 dark:bg-blue-500/20 dark:text-blue-400",
|
|
354
|
+
datasource: "bg-cyan-50 text-cyan-600 dark:bg-cyan-500/20 dark:text-cyan-400",
|
|
352
355
|
group: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400"
|
|
353
356
|
};
|
|
354
357
|
var LOGIC_ICON_MAP = {
|
|
@@ -370,6 +373,7 @@ var LOGIC_ICON_MAP = {
|
|
|
370
373
|
iteration_start: outline.PlayCircleIcon,
|
|
371
374
|
note: outline.PencilSquareIcon,
|
|
372
375
|
entity: outline.CircleStackIcon,
|
|
376
|
+
datasource: outline.ServerStackIcon,
|
|
373
377
|
group: outline.RectangleGroupIcon
|
|
374
378
|
};
|
|
375
379
|
var NODE_SELECTED_CLASS = "node-card-selected";
|
|
@@ -396,7 +400,8 @@ var NODE_BORDER_COLORS = {
|
|
|
396
400
|
variable_aggregator: "border-violet-300/50 dark:border-violet-600/50",
|
|
397
401
|
document_extractor: "border-rose-300/50 dark:border-rose-600/50",
|
|
398
402
|
list_operator: "border-lime-300/50 dark:border-lime-600/50",
|
|
399
|
-
note: "border-gray-200/50 dark:border-gray-700/50"
|
|
403
|
+
note: "border-gray-200/50 dark:border-gray-700/50",
|
|
404
|
+
datasource: "border-cyan-300/50 dark:border-cyan-600/50"
|
|
400
405
|
};
|
|
401
406
|
function getNodeStateClass(selected, nodeType, customBorder) {
|
|
402
407
|
if (selected) return NODE_SELECTED_CLASS;
|
|
@@ -426,6 +431,7 @@ var MINIMAP_NODE_COLORS = {
|
|
|
426
431
|
iteration_start: "#6366f1",
|
|
427
432
|
note: "#eab308",
|
|
428
433
|
entity: "#3b82f6",
|
|
434
|
+
datasource: "#06b6d4",
|
|
429
435
|
group: "#64748b"
|
|
430
436
|
};
|
|
431
437
|
var LOGIC_NODE_HANDLE_COLORS = {
|
|
@@ -447,6 +453,7 @@ var LOGIC_NODE_HANDLE_COLORS = {
|
|
|
447
453
|
iteration_start: "!bg-indigo-500",
|
|
448
454
|
note: "!bg-yellow-500",
|
|
449
455
|
entity: "!bg-blue-500",
|
|
456
|
+
datasource: "!bg-cyan-500",
|
|
450
457
|
group: "!bg-slate-500"
|
|
451
458
|
};
|
|
452
459
|
var INSERTABLE_NODES = [
|
|
@@ -1367,7 +1374,7 @@ var AgentFlowNode = react.memo(function AgentFlowNode2({ id, data, selected }) {
|
|
|
1367
1374
|
/* @__PURE__ */ jsxRuntime.jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
1368
1375
|
/* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: "rounded-full bg-indigo-100 px-2 py-0.5 text-[10px] font-semibold text-indigo-700 dark:bg-indigo-500/20 dark:text-indigo-300", children: "Agent" }),
|
|
1369
1376
|
(() => {
|
|
1370
|
-
const tier =
|
|
1377
|
+
const tier = chunkULPKAD4A_js.getAgentTier(Number(data.agent.elo ?? 0));
|
|
1371
1378
|
return /* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: `rounded-full px-2 py-0.5 text-[10px] font-bold ${tier.pillColor}`, children: tier.key });
|
|
1372
1379
|
})(),
|
|
1373
1380
|
/* @__PURE__ */ jsxRuntime.jsxs(NodeCardBadge, { className: `inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium ${frameworkMeta.badgeColor}`, children: [
|
|
@@ -2823,7 +2830,7 @@ function WorkspaceDrawer({
|
|
|
2823
2830
|
children
|
|
2824
2831
|
}) {
|
|
2825
2832
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2826
|
-
|
|
2833
|
+
chunkJYX3ILSA_js.EntityDrawer,
|
|
2827
2834
|
{
|
|
2828
2835
|
open,
|
|
2829
2836
|
onClose,
|
|
@@ -2866,7 +2873,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2866
2873
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-xs text-gray-500 dark:text-gray-400", children: t("inputVariablesHelp") }),
|
|
2867
2874
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
2868
2875
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2869
|
-
|
|
2876
|
+
chunkJYX3ILSA_js.Input,
|
|
2870
2877
|
{
|
|
2871
2878
|
value: newVariable,
|
|
2872
2879
|
onChange: (event) => setNewVariable(event.target.value),
|
|
@@ -2876,7 +2883,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2876
2883
|
}
|
|
2877
2884
|
),
|
|
2878
2885
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2879
|
-
|
|
2886
|
+
chunkJYX3ILSA_js.Button,
|
|
2880
2887
|
{
|
|
2881
2888
|
type: "button",
|
|
2882
2889
|
onClick: handleAddVariable,
|
|
@@ -2893,7 +2900,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2893
2900
|
children: [
|
|
2894
2901
|
variable,
|
|
2895
2902
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2896
|
-
|
|
2903
|
+
chunkJYX3ILSA_js.IconButton,
|
|
2897
2904
|
{
|
|
2898
2905
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
2899
2906
|
label: `Remove ${variable}`,
|
|
@@ -2910,7 +2917,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2910
2917
|
] }),
|
|
2911
2918
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2 border-t border-gray-200 pt-4 dark:border-gray-700", children: [
|
|
2912
2919
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2913
|
-
|
|
2920
|
+
chunkJYX3ILSA_js.Button,
|
|
2914
2921
|
{
|
|
2915
2922
|
type: "button",
|
|
2916
2923
|
onClick: onCancel,
|
|
@@ -2920,7 +2927,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2920
2927
|
}
|
|
2921
2928
|
),
|
|
2922
2929
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2923
|
-
|
|
2930
|
+
chunkJYX3ILSA_js.Button,
|
|
2924
2931
|
{
|
|
2925
2932
|
type: "button",
|
|
2926
2933
|
onClick: handleSave,
|
|
@@ -3032,8 +3039,8 @@ function ConfigFormActions({
|
|
|
3032
3039
|
saveDisabled = false
|
|
3033
3040
|
}) {
|
|
3034
3041
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2 border-t border-gray-200 pt-4 dark:border-gray-700", children: [
|
|
3035
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3036
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3042
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJYX3ILSA_js.Button, { type: "button", outline: true, onClick: onCancel, children: cancelLabel }),
|
|
3043
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJYX3ILSA_js.Button, { type: "button", onClick: onSave, disabled: saveDisabled, children: saveLabel })
|
|
3037
3044
|
] });
|
|
3038
3045
|
}
|
|
3039
3046
|
var OPERATOR_OPTIONS = [
|
|
@@ -3082,7 +3089,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3082
3089
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-3 flex items-center justify-between", children: [
|
|
3083
3090
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: t("conditionsLabel") }),
|
|
3084
3091
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3085
|
-
|
|
3092
|
+
chunkJYX3ILSA_js.Button,
|
|
3086
3093
|
{
|
|
3087
3094
|
type: "button",
|
|
3088
3095
|
onClick: handleAddCondition,
|
|
@@ -3093,7 +3100,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3093
3100
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: conditions.map((condition, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-2 rounded-lg border border-gray-200 bg-gray-50 p-3 dark:border-gray-700 dark:bg-gray-800/50", children: [
|
|
3094
3101
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid flex-1 grid-cols-3 gap-2", children: [
|
|
3095
3102
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3096
|
-
|
|
3103
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3097
3104
|
{
|
|
3098
3105
|
type: "text",
|
|
3099
3106
|
label: t("variableLabel"),
|
|
@@ -3104,7 +3111,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3104
3111
|
}
|
|
3105
3112
|
) }),
|
|
3106
3113
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3107
|
-
|
|
3114
|
+
chunkJYX3ILSA_js.FormSelect,
|
|
3108
3115
|
{
|
|
3109
3116
|
label: t("operatorLabel"),
|
|
3110
3117
|
value: condition.operator,
|
|
@@ -3114,7 +3121,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3114
3121
|
}
|
|
3115
3122
|
) }),
|
|
3116
3123
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3117
|
-
|
|
3124
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3118
3125
|
{
|
|
3119
3126
|
type: "text",
|
|
3120
3127
|
label: t("valueLabel"),
|
|
@@ -3126,7 +3133,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3126
3133
|
) })
|
|
3127
3134
|
] }),
|
|
3128
3135
|
conditions.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3129
|
-
|
|
3136
|
+
chunkJYX3ILSA_js.IconButton,
|
|
3130
3137
|
{
|
|
3131
3138
|
onClick: () => handleRemoveCondition(index),
|
|
3132
3139
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.TrashIcon, { className: "h-4 w-4" }),
|
|
@@ -3281,7 +3288,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3281
3288
|
};
|
|
3282
3289
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3283
3290
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3284
|
-
|
|
3291
|
+
chunkJYX3ILSA_js.FormSelect,
|
|
3285
3292
|
{
|
|
3286
3293
|
label: t("methodLabel"),
|
|
3287
3294
|
value: method,
|
|
@@ -3290,7 +3297,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3290
3297
|
}
|
|
3291
3298
|
),
|
|
3292
3299
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3293
|
-
|
|
3300
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3294
3301
|
{
|
|
3295
3302
|
type: "text",
|
|
3296
3303
|
label: t("urlLabel"),
|
|
@@ -3303,7 +3310,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3303
3310
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
3304
3311
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: t("headersLabel") }),
|
|
3305
3312
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3306
|
-
|
|
3313
|
+
chunkJYX3ILSA_js.Button,
|
|
3307
3314
|
{
|
|
3308
3315
|
type: "button",
|
|
3309
3316
|
onClick: handleAddHeader,
|
|
@@ -3313,7 +3320,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3313
3320
|
] }),
|
|
3314
3321
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: headerEntries.map((entry, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
3315
3322
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3316
|
-
|
|
3323
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3317
3324
|
{
|
|
3318
3325
|
type: "text",
|
|
3319
3326
|
value: entry.key,
|
|
@@ -3323,7 +3330,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3323
3330
|
}
|
|
3324
3331
|
),
|
|
3325
3332
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3326
|
-
|
|
3333
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3327
3334
|
{
|
|
3328
3335
|
type: "text",
|
|
3329
3336
|
value: entry.value,
|
|
@@ -3333,7 +3340,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3333
3340
|
}
|
|
3334
3341
|
),
|
|
3335
3342
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3336
|
-
|
|
3343
|
+
chunkJYX3ILSA_js.IconButton,
|
|
3337
3344
|
{
|
|
3338
3345
|
onClick: () => handleRemoveHeader(index),
|
|
3339
3346
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.TrashIcon, { className: "h-4 w-4" }),
|
|
@@ -3345,7 +3352,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3345
3352
|
] }, index)) })
|
|
3346
3353
|
] }),
|
|
3347
3354
|
method !== "GET" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3348
|
-
|
|
3355
|
+
chunkJYX3ILSA_js.FormTextarea,
|
|
3349
3356
|
{
|
|
3350
3357
|
label: t("bodyLabel"),
|
|
3351
3358
|
value: body,
|
|
@@ -3356,7 +3363,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3356
3363
|
}
|
|
3357
3364
|
),
|
|
3358
3365
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3359
|
-
|
|
3366
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3360
3367
|
{
|
|
3361
3368
|
type: "number",
|
|
3362
3369
|
label: t("timeoutLabel"),
|
|
@@ -3387,7 +3394,7 @@ function TemplateTransformNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3387
3394
|
};
|
|
3388
3395
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3389
3396
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3390
|
-
|
|
3397
|
+
chunkJYX3ILSA_js.FormTextarea,
|
|
3391
3398
|
{
|
|
3392
3399
|
label: t("templateLabel"),
|
|
3393
3400
|
value: template,
|
|
@@ -3398,7 +3405,7 @@ function TemplateTransformNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3398
3405
|
}
|
|
3399
3406
|
),
|
|
3400
3407
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3401
|
-
|
|
3408
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3402
3409
|
{
|
|
3403
3410
|
type: "text",
|
|
3404
3411
|
label: t("outputVariableLabel"),
|
|
@@ -3427,7 +3434,7 @@ function IterationNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3427
3434
|
};
|
|
3428
3435
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3429
3436
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3430
|
-
|
|
3437
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3431
3438
|
{
|
|
3432
3439
|
type: "text",
|
|
3433
3440
|
label: t("iteratorVariableLabel"),
|
|
@@ -3437,7 +3444,7 @@ function IterationNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3437
3444
|
}
|
|
3438
3445
|
),
|
|
3439
3446
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3440
|
-
|
|
3447
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3441
3448
|
{
|
|
3442
3449
|
type: "number",
|
|
3443
3450
|
label: t("maxIterationsLabel"),
|
|
@@ -3468,7 +3475,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3468
3475
|
};
|
|
3469
3476
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3470
3477
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3471
|
-
|
|
3478
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3472
3479
|
{
|
|
3473
3480
|
type: "text",
|
|
3474
3481
|
label: t("sourceIdLabel"),
|
|
@@ -3478,7 +3485,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3478
3485
|
}
|
|
3479
3486
|
),
|
|
3480
3487
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3481
|
-
|
|
3488
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3482
3489
|
{
|
|
3483
3490
|
type: "number",
|
|
3484
3491
|
label: t("topKLabel"),
|
|
@@ -3489,7 +3496,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3489
3496
|
}
|
|
3490
3497
|
),
|
|
3491
3498
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3492
|
-
|
|
3499
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3493
3500
|
{
|
|
3494
3501
|
type: "number",
|
|
3495
3502
|
label: t("similarityThresholdLabel"),
|
|
@@ -3537,7 +3544,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3537
3544
|
};
|
|
3538
3545
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3539
3546
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3540
|
-
|
|
3547
|
+
chunkJYX3ILSA_js.FormTextarea,
|
|
3541
3548
|
{
|
|
3542
3549
|
label: t("outputTemplateLabel"),
|
|
3543
3550
|
hint: t("outputTemplateHelp"),
|
|
@@ -3552,7 +3559,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3552
3559
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-1 block text-sm font-medium text-gray-700 dark:text-gray-300", children: t("outputVariablesLabel") }),
|
|
3553
3560
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
3554
3561
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3555
|
-
|
|
3562
|
+
chunkJYX3ILSA_js.FormInput,
|
|
3556
3563
|
{
|
|
3557
3564
|
type: "text",
|
|
3558
3565
|
value: newVariable,
|
|
@@ -3563,7 +3570,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3563
3570
|
}
|
|
3564
3571
|
),
|
|
3565
3572
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3566
|
-
|
|
3573
|
+
chunkJYX3ILSA_js.Button,
|
|
3567
3574
|
{
|
|
3568
3575
|
type: "button",
|
|
3569
3576
|
onClick: handleAddVariable,
|
|
@@ -3578,7 +3585,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3578
3585
|
children: [
|
|
3579
3586
|
variable,
|
|
3580
3587
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3581
|
-
|
|
3588
|
+
chunkJYX3ILSA_js.IconButton,
|
|
3582
3589
|
{
|
|
3583
3590
|
onClick: () => handleRemoveVariable(variable),
|
|
3584
3591
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
@@ -4014,7 +4021,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4014
4021
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-1 block text-sm font-medium text-gray-700 dark:text-gray-300", children: t("inputVariablesLabel") }),
|
|
4015
4022
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
4016
4023
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4017
|
-
|
|
4024
|
+
chunkJYX3ILSA_js.FormInput,
|
|
4018
4025
|
{
|
|
4019
4026
|
type: "text",
|
|
4020
4027
|
value: newVariable,
|
|
@@ -4025,7 +4032,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4025
4032
|
}
|
|
4026
4033
|
),
|
|
4027
4034
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4028
|
-
|
|
4035
|
+
chunkJYX3ILSA_js.Button,
|
|
4029
4036
|
{
|
|
4030
4037
|
type: "button",
|
|
4031
4038
|
onClick: handleAddVariable,
|
|
@@ -4033,10 +4040,10 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4033
4040
|
}
|
|
4034
4041
|
)
|
|
4035
4042
|
] }),
|
|
4036
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 space-y-2", children: inputVariables.map((variable, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4043
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 space-y-2", children: inputVariables.map((variable, index) => /* @__PURE__ */ jsxRuntime.jsx(chunkJYX3ILSA_js.Card, { className: "border-purple-200/70 dark:border-purple-500/30", children: /* @__PURE__ */ jsxRuntime.jsx(chunkJYX3ILSA_js.CardContent, { className: "p-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4037
4044
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex min-w-6 items-center justify-center rounded-full bg-purple-100 px-1.5 py-0.5 text-[10px] font-semibold text-purple-700 dark:bg-purple-500/20 dark:text-purple-300", children: index + 1 }),
|
|
4038
4045
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4039
|
-
|
|
4046
|
+
chunkJYX3ILSA_js.FormInput,
|
|
4040
4047
|
{
|
|
4041
4048
|
type: "text",
|
|
4042
4049
|
value: variable,
|
|
@@ -4046,7 +4053,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4046
4053
|
}
|
|
4047
4054
|
),
|
|
4048
4055
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4049
|
-
|
|
4056
|
+
chunkJYX3ILSA_js.IconButton,
|
|
4050
4057
|
{
|
|
4051
4058
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
4052
4059
|
label: `Remove ${variable || index + 1}`,
|
|
@@ -4058,7 +4065,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4058
4065
|
] }) }) }, `${index}-${variable}`)) })
|
|
4059
4066
|
] }),
|
|
4060
4067
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4061
|
-
|
|
4068
|
+
chunkJYX3ILSA_js.FormInput,
|
|
4062
4069
|
{
|
|
4063
4070
|
type: "text",
|
|
4064
4071
|
label: t("outputVariableLabel"),
|
|
@@ -4068,7 +4075,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4068
4075
|
}
|
|
4069
4076
|
),
|
|
4070
4077
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4071
|
-
|
|
4078
|
+
chunkJYX3ILSA_js.FormSelect,
|
|
4072
4079
|
{
|
|
4073
4080
|
label: t("aggregationModeLabel"),
|
|
4074
4081
|
value: aggregationMode,
|
|
@@ -4101,7 +4108,7 @@ function DocumentExtractorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4101
4108
|
};
|
|
4102
4109
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4103
4110
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4104
|
-
|
|
4111
|
+
chunkJYX3ILSA_js.FormSelect,
|
|
4105
4112
|
{
|
|
4106
4113
|
label: t("extractionModeLabel"),
|
|
4107
4114
|
value: extractionMode,
|
|
@@ -4110,7 +4117,7 @@ function DocumentExtractorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4110
4117
|
}
|
|
4111
4118
|
),
|
|
4112
4119
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4113
|
-
|
|
4120
|
+
chunkJYX3ILSA_js.FormInput,
|
|
4114
4121
|
{
|
|
4115
4122
|
type: "text",
|
|
4116
4123
|
label: t("outputVariableLabel"),
|
|
@@ -4287,7 +4294,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4287
4294
|
};
|
|
4288
4295
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4289
4296
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4290
|
-
|
|
4297
|
+
chunkJYX3ILSA_js.FormInput,
|
|
4291
4298
|
{
|
|
4292
4299
|
type: "text",
|
|
4293
4300
|
label: t("iteratorVariableLabel"),
|
|
@@ -4297,7 +4304,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4297
4304
|
}
|
|
4298
4305
|
),
|
|
4299
4306
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4300
|
-
|
|
4307
|
+
chunkJYX3ILSA_js.FormInput,
|
|
4301
4308
|
{
|
|
4302
4309
|
type: "text",
|
|
4303
4310
|
label: t("itemVariableLabel"),
|
|
@@ -4307,7 +4314,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4307
4314
|
}
|
|
4308
4315
|
),
|
|
4309
4316
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4310
|
-
|
|
4317
|
+
chunkJYX3ILSA_js.FormInput,
|
|
4311
4318
|
{
|
|
4312
4319
|
type: "text",
|
|
4313
4320
|
label: t("indexVariableLabel"),
|
|
@@ -4579,7 +4586,7 @@ function GroupNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4579
4586
|
};
|
|
4580
4587
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4581
4588
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4582
|
-
|
|
4589
|
+
chunkJYX3ILSA_js.FormInput,
|
|
4583
4590
|
{
|
|
4584
4591
|
type: "text",
|
|
4585
4592
|
label: translations("labelField"),
|
|
@@ -4589,7 +4596,7 @@ function GroupNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4589
4596
|
}
|
|
4590
4597
|
),
|
|
4591
4598
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4592
|
-
|
|
4599
|
+
chunkJYX3ILSA_js.FormTextarea,
|
|
4593
4600
|
{
|
|
4594
4601
|
label: translations("descriptionField"),
|
|
4595
4602
|
value: description,
|
|
@@ -4762,7 +4769,7 @@ function NodeContextMenu({ position, targetId, onClose, onEdit, onDuplicate, onC
|
|
|
4762
4769
|
}
|
|
4763
4770
|
];
|
|
4764
4771
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4765
|
-
|
|
4772
|
+
chunkJYX3ILSA_js.ContextMenu,
|
|
4766
4773
|
{
|
|
4767
4774
|
position,
|
|
4768
4775
|
onClose,
|
|
@@ -4819,7 +4826,7 @@ function PanelContextMenu({ position, onClose, onPaste, onSelectAll, onFitView,
|
|
|
4819
4826
|
}
|
|
4820
4827
|
];
|
|
4821
4828
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4822
|
-
|
|
4829
|
+
chunkJYX3ILSA_js.ContextMenu,
|
|
4823
4830
|
{
|
|
4824
4831
|
position,
|
|
4825
4832
|
onClose,
|
|
@@ -4966,7 +4973,7 @@ function SelectionContextMenu({
|
|
|
4966
4973
|
}
|
|
4967
4974
|
];
|
|
4968
4975
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4969
|
-
|
|
4976
|
+
chunkJYX3ILSA_js.ContextMenu,
|
|
4970
4977
|
{
|
|
4971
4978
|
position,
|
|
4972
4979
|
onClose,
|
|
@@ -5405,7 +5412,7 @@ function WorkflowCanvasInner({
|
|
|
5405
5412
|
};
|
|
5406
5413
|
}
|
|
5407
5414
|
if (isLogicNodeType(savedNode.type)) {
|
|
5408
|
-
const config = savedNode.data.config ??
|
|
5415
|
+
const config = savedNode.data.config ?? chunkULPKAD4A_js.createDefaultLogicNodeConfig(savedNode.type);
|
|
5409
5416
|
if (config) {
|
|
5410
5417
|
const baseNode = {
|
|
5411
5418
|
id: savedNode.id,
|
|
@@ -5574,7 +5581,7 @@ function WorkflowCanvasInner({
|
|
|
5574
5581
|
}
|
|
5575
5582
|
storeTakeSnapshot();
|
|
5576
5583
|
const isTB = direction === "TB";
|
|
5577
|
-
const repositionedNodes =
|
|
5584
|
+
const repositionedNodes = chunkULPKAD4A_js.applyDagreLayout(nodes, edges, direction).map((node) => ({
|
|
5578
5585
|
...node,
|
|
5579
5586
|
sourcePosition: isTB ? react$1.Position.Bottom : react$1.Position.Right,
|
|
5580
5587
|
targetPosition: isTB ? react$1.Position.Top : react$1.Position.Left
|
|
@@ -5703,7 +5710,7 @@ function WorkflowCanvasInner({
|
|
|
5703
5710
|
}, [storePaste]);
|
|
5704
5711
|
const contextMenuAddNote = react.useCallback((flowPosition) => {
|
|
5705
5712
|
storeTakeSnapshot();
|
|
5706
|
-
const noteConfig =
|
|
5713
|
+
const noteConfig = chunkULPKAD4A_js.createDefaultLogicNodeConfig("note");
|
|
5707
5714
|
const noteNode = {
|
|
5708
5715
|
id: crypto.randomUUID(),
|
|
5709
5716
|
type: "note",
|
|
@@ -6206,7 +6213,7 @@ function WorkflowCanvasInner({
|
|
|
6206
6213
|
};
|
|
6207
6214
|
setNodes((currentNodes) => [...currentNodes, newNode]);
|
|
6208
6215
|
} else if (nodeType === "group") {
|
|
6209
|
-
const groupConfig = configRaw ? JSON.parse(configRaw) :
|
|
6216
|
+
const groupConfig = configRaw ? JSON.parse(configRaw) : chunkULPKAD4A_js.createDefaultLogicNodeConfig("group");
|
|
6210
6217
|
if (!groupConfig) return;
|
|
6211
6218
|
const newNode = {
|
|
6212
6219
|
id: newNodeId,
|
|
@@ -6223,7 +6230,7 @@ function WorkflowCanvasInner({
|
|
|
6223
6230
|
};
|
|
6224
6231
|
setNodes((currentNodes) => [...currentNodes, newNode]);
|
|
6225
6232
|
} else if (isLogicNodeType(nodeType)) {
|
|
6226
|
-
const config = configRaw ? JSON.parse(configRaw) :
|
|
6233
|
+
const config = configRaw ? JSON.parse(configRaw) : chunkULPKAD4A_js.createDefaultLogicNodeConfig(nodeType);
|
|
6227
6234
|
if (!config) return;
|
|
6228
6235
|
const newNode = {
|
|
6229
6236
|
id: newNodeId,
|
|
@@ -6340,7 +6347,7 @@ function WorkflowCanvasInner({
|
|
|
6340
6347
|
(edgeId, nodeType, position) => {
|
|
6341
6348
|
if (!isLogicNodeType(nodeType)) return;
|
|
6342
6349
|
storeTakeSnapshot();
|
|
6343
|
-
const config =
|
|
6350
|
+
const config = chunkULPKAD4A_js.createDefaultLogicNodeConfig(nodeType);
|
|
6344
6351
|
if (!config) return;
|
|
6345
6352
|
const newNodeId = crypto.randomUUID();
|
|
6346
6353
|
const newNode = {
|
|
@@ -6826,5 +6833,5 @@ exports.useDrawerStore = useDrawerStore;
|
|
|
6826
6833
|
exports.useWorkflowBuilderClient = useWorkflowBuilderClient;
|
|
6827
6834
|
exports.useWorkflowBuilderClientOptional = useWorkflowBuilderClientOptional;
|
|
6828
6835
|
exports.useWorkflowStore = useWorkflowStore;
|
|
6829
|
-
//# sourceMappingURL=chunk-
|
|
6830
|
-
//# sourceMappingURL=chunk-
|
|
6836
|
+
//# sourceMappingURL=chunk-YCIUVIFN.js.map
|
|
6837
|
+
//# sourceMappingURL=chunk-YCIUVIFN.js.map
|