@datatechsolutions/ui 3.6.1 → 3.7.0
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/astrlabe/graph-node.js +8 -5
- package/dist/astrlabe/graph-node.mjs +4 -1
- package/dist/astrlabe/index.js +115 -114
- package/dist/astrlabe/index.mjs +7 -6
- package/dist/astrlabe/workflow-canvas.js +7 -6
- package/dist/astrlabe/workflow-canvas.mjs +6 -5
- package/dist/{chunk-3Z66NXEB.mjs → chunk-2OPBUVTQ.mjs} +3 -3
- package/dist/{chunk-3Z66NXEB.mjs.map → chunk-2OPBUVTQ.mjs.map} +1 -1
- package/dist/{chunk-4JDJRGAB.mjs → chunk-34XRH2FX.mjs} +5 -4
- package/dist/chunk-34XRH2FX.mjs.map +1 -0
- package/dist/{chunk-KEWRLEYV.js → chunk-3JZGRXSG.js} +4 -4
- package/dist/{chunk-KEWRLEYV.js.map → chunk-3JZGRXSG.js.map} +1 -1
- package/dist/{chunk-JQYDJ75Q.mjs → chunk-3VYD7QL2.mjs} +3 -3
- package/dist/{chunk-JQYDJ75Q.mjs.map → chunk-3VYD7QL2.mjs.map} +1 -1
- package/dist/{chunk-MRRFDIUQ.mjs → chunk-4JRMXHPU.mjs} +5 -4
- package/dist/chunk-4JRMXHPU.mjs.map +1 -0
- package/dist/{chunk-4OFG6POC.mjs → chunk-5LCWQKGQ.mjs} +207 -1128
- package/dist/chunk-5LCWQKGQ.mjs.map +1 -0
- package/dist/{chunk-W5YCZOXO.js → chunk-7YK4WXHO.js} +79 -78
- package/dist/chunk-7YK4WXHO.js.map +1 -0
- package/dist/{chunk-YOJIPZ72.js → chunk-BBLBSDPN.js} +9 -9
- package/dist/{chunk-YOJIPZ72.js.map → chunk-BBLBSDPN.js.map} +1 -1
- package/dist/chunk-BHOT22QL.js +998 -0
- package/dist/chunk-BHOT22QL.js.map +1 -0
- package/dist/{chunk-MQNXKBFP.mjs → chunk-C4AJWDFB.mjs} +7 -6
- package/dist/chunk-C4AJWDFB.mjs.map +1 -0
- package/dist/{chunk-UOABOFKO.mjs → chunk-CBFK4W4C.mjs} +3 -3
- package/dist/{chunk-UOABOFKO.mjs.map → chunk-CBFK4W4C.mjs.map} +1 -1
- package/dist/{chunk-P5F257N3.js → chunk-CVZXZK2X.js} +35 -34
- package/dist/chunk-CVZXZK2X.js.map +1 -0
- package/dist/{chunk-IHHGT3LP.mjs → chunk-CYAAL3BY.mjs} +6 -5
- package/dist/chunk-CYAAL3BY.mjs.map +1 -0
- package/dist/{chunk-LVK7VXW7.js → chunk-DMPBNWJB.js} +37 -36
- package/dist/chunk-DMPBNWJB.js.map +1 -0
- package/dist/{chunk-ESLKQJQS.mjs → chunk-DXLATMGD.mjs} +6 -5
- package/dist/chunk-DXLATMGD.mjs.map +1 -0
- package/dist/{chunk-P4YYEM4B.js → chunk-EZQ2D47U.js} +7 -10
- package/dist/chunk-EZQ2D47U.js.map +1 -0
- package/dist/{chunk-6ZMTJSQF.js → chunk-FUHNEP3Y.js} +164 -163
- package/dist/chunk-FUHNEP3Y.js.map +1 -0
- package/dist/{chunk-YTE6WCBX.js → chunk-JHN2OUWG.js} +64 -63
- package/dist/chunk-JHN2OUWG.js.map +1 -0
- package/dist/{chunk-AMYQSPQC.js → chunk-JLECJI7S.js} +18 -17
- package/dist/chunk-JLECJI7S.js.map +1 -0
- package/dist/{chunk-DRORQGN2.js → chunk-KMNWPC64.js} +40 -39
- package/dist/chunk-KMNWPC64.js.map +1 -0
- package/dist/{chunk-VUAGVZJM.mjs → chunk-NJ6HH4QP.mjs} +6 -5
- package/dist/chunk-NJ6HH4QP.mjs.map +1 -0
- package/dist/{chunk-OZNTQROP.mjs → chunk-PLTLRL2V.mjs} +7 -10
- package/dist/chunk-PLTLRL2V.mjs.map +1 -0
- package/dist/{chunk-5ZAZ2C7A.mjs → chunk-PMMP76MV.mjs} +7 -6
- package/dist/chunk-PMMP76MV.mjs.map +1 -0
- package/dist/{chunk-NJZIE4EH.js → chunk-QF6WL7XU.js} +6 -5
- package/dist/chunk-QF6WL7XU.js.map +1 -0
- package/dist/{chunk-QRNFTG6A.js → chunk-QGLGQXJE.js} +4 -4
- package/dist/{chunk-QRNFTG6A.js.map → chunk-QGLGQXJE.js.map} +1 -1
- package/dist/{chunk-GCYYGSHU.js → chunk-R4EKPXX3.js} +564 -1525
- package/dist/chunk-R4EKPXX3.js.map +1 -0
- package/dist/{chunk-SQZGQOKU.js → chunk-RWYG7QHP.js} +119 -132
- package/dist/chunk-RWYG7QHP.js.map +1 -0
- package/dist/{chunk-WBEZATIB.js → chunk-RZ3NDH5S.js} +13 -13
- package/dist/{chunk-WBEZATIB.js.map → chunk-RZ3NDH5S.js.map} +1 -1
- package/dist/{chunk-HGWVJ3VB.mjs → chunk-SJVKID3E.mjs} +4 -3
- package/dist/chunk-SJVKID3E.mjs.map +1 -0
- package/dist/{chunk-7LILNZMR.mjs → chunk-TJEZL72T.mjs} +4 -3
- package/dist/chunk-TJEZL72T.mjs.map +1 -0
- package/dist/{chunk-MUOTTGCX.js → chunk-UDYEUTJC.js} +31 -30
- package/dist/chunk-UDYEUTJC.js.map +1 -0
- package/dist/{chunk-UGJZ3M4Q.js → chunk-VDLMWOQM.js} +55 -54
- package/dist/chunk-VDLMWOQM.js.map +1 -0
- package/dist/{chunk-KDFBN2L2.mjs → chunk-VZIUQE7B.mjs} +24 -37
- package/dist/chunk-VZIUQE7B.mjs.map +1 -0
- package/dist/chunk-WR55H7DH.mjs +934 -0
- package/dist/chunk-WR55H7DH.mjs.map +1 -0
- package/dist/{chunk-ZYVDDSAC.mjs → chunk-YRXDETBK.mjs} +6 -6
- package/dist/{chunk-ZYVDDSAC.mjs.map → chunk-YRXDETBK.mjs.map} +1 -1
- package/dist/{chunk-VDLAZR7S.mjs → chunk-ZYRL3WER.mjs} +5 -4
- package/dist/chunk-ZYRL3WER.mjs.map +1 -0
- package/dist/index.js +826 -825
- package/dist/index.mjs +4 -3
- package/dist/platform/admin/index.js +13 -12
- package/dist/platform/admin/index.mjs +7 -6
- package/dist/platform/agents-workspace.js +10 -9
- package/dist/platform/agents-workspace.mjs +9 -8
- package/dist/platform/app-shell.js +6 -5
- package/dist/platform/app-shell.mjs +5 -4
- package/dist/platform/auth/index.js +30 -29
- package/dist/platform/auth/index.mjs +7 -6
- package/dist/platform/billing/index.js +6 -5
- package/dist/platform/billing/index.mjs +5 -4
- package/dist/platform/impersonation/index.js +6 -5
- package/dist/platform/impersonation/index.mjs +5 -4
- package/dist/platform/index.d.mts +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +87 -93
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.mjs +23 -29
- package/dist/platform/index.mjs.map +1 -1
- package/dist/platform/pages/index.d.mts +86 -1
- package/dist/platform/pages/index.d.ts +86 -1
- package/dist/platform/pages/index.js +868 -209
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +670 -12
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +10 -9
- package/dist/platform/settings/index.mjs +9 -8
- package/dist/platform/workflow-canvas-shell.js +8 -7
- package/dist/platform/workflow-canvas-shell.mjs +7 -6
- package/package.json +1 -1
- package/dist/chunk-4JDJRGAB.mjs.map +0 -1
- package/dist/chunk-4OFG6POC.mjs.map +0 -1
- package/dist/chunk-5ZAZ2C7A.mjs.map +0 -1
- package/dist/chunk-6ZMTJSQF.js.map +0 -1
- package/dist/chunk-7LILNZMR.mjs.map +0 -1
- package/dist/chunk-AMYQSPQC.js.map +0 -1
- package/dist/chunk-DRORQGN2.js.map +0 -1
- package/dist/chunk-ESLKQJQS.mjs.map +0 -1
- package/dist/chunk-GCYYGSHU.js.map +0 -1
- package/dist/chunk-HGWVJ3VB.mjs.map +0 -1
- package/dist/chunk-IHHGT3LP.mjs.map +0 -1
- package/dist/chunk-KDFBN2L2.mjs.map +0 -1
- package/dist/chunk-LVK7VXW7.js.map +0 -1
- package/dist/chunk-MQNXKBFP.mjs.map +0 -1
- package/dist/chunk-MRRFDIUQ.mjs.map +0 -1
- package/dist/chunk-MUOTTGCX.js.map +0 -1
- package/dist/chunk-NJZIE4EH.js.map +0 -1
- package/dist/chunk-OZNTQROP.mjs.map +0 -1
- package/dist/chunk-P4YYEM4B.js.map +0 -1
- package/dist/chunk-P5F257N3.js.map +0 -1
- package/dist/chunk-SQZGQOKU.js.map +0 -1
- package/dist/chunk-UGJZ3M4Q.js.map +0 -1
- package/dist/chunk-VDLAZR7S.mjs.map +0 -1
- package/dist/chunk-VUAGVZJM.mjs.map +0 -1
- package/dist/chunk-W5YCZOXO.js.map +0 -1
- package/dist/chunk-YTE6WCBX.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { ToggleSwitch, StatusBadge, GlassModal, ContextMenu, FormInput, FormTextarea, FormSelect } from './chunk-5LCWQKGQ.mjs';
|
|
3
3
|
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
4
|
-
import { GraphNodeHeader, GraphNodeMeta, GraphNodeIconBubble, GraphNodeBadge } from './chunk-
|
|
4
|
+
import { GraphNodeHeader, GraphNodeMeta, GraphNodeIconBubble, GraphNodeBadge } from './chunk-PLTLRL2V.mjs';
|
|
5
|
+
import { Badge, Button, IconButton } from './chunk-WR55H7DH.mjs';
|
|
5
6
|
import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-G7JQ4OCE.mjs';
|
|
6
7
|
import { memo, useState, useRef, useCallback, useEffect, lazy, createContext, useMemo, useContext } from 'react';
|
|
7
8
|
import { Position, NodeResizer, MarkerType, useReactFlow, getBezierPath, BaseEdge, EdgeLabelRenderer, Handle, ReactFlowProvider, useNodesState, useEdgesState, addEdge, BackgroundVariant } from '@xyflow/react';
|
|
@@ -661,32 +662,12 @@ function EdgeInsertPopupComponent({ position, onSelect, onClose }) {
|
|
|
661
662
|
);
|
|
662
663
|
}
|
|
663
664
|
var EdgeInsertPopup = memo(EdgeInsertPopupComponent);
|
|
664
|
-
var
|
|
665
|
-
True:
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
darkBackground: "dark:bg-green-500/20",
|
|
669
|
-
darkText: "dark:text-green-300"
|
|
670
|
-
},
|
|
671
|
-
False: {
|
|
672
|
-
background: "bg-red-100",
|
|
673
|
-
text: "text-red-700",
|
|
674
|
-
darkBackground: "dark:bg-red-500/20",
|
|
675
|
-
darkText: "dark:text-red-300"
|
|
676
|
-
},
|
|
677
|
-
Loop: {
|
|
678
|
-
background: "bg-violet-100",
|
|
679
|
-
text: "text-violet-700",
|
|
680
|
-
darkBackground: "dark:bg-violet-500/20",
|
|
681
|
-
darkText: "dark:text-violet-300"
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
var DEFAULT_LABEL_STYLE = {
|
|
685
|
-
background: "bg-purple-100",
|
|
686
|
-
text: "text-purple-700",
|
|
687
|
-
darkBackground: "dark:bg-purple-500/20",
|
|
688
|
-
darkText: "dark:text-purple-300"
|
|
665
|
+
var LABEL_COLORS = {
|
|
666
|
+
True: "green",
|
|
667
|
+
False: "red",
|
|
668
|
+
Loop: "violet"
|
|
689
669
|
};
|
|
670
|
+
var DEFAULT_LABEL_COLOR = "purple";
|
|
690
671
|
function ConditionalEdgeComponent({
|
|
691
672
|
id,
|
|
692
673
|
source,
|
|
@@ -724,7 +705,7 @@ function ConditionalEdgeComponent({
|
|
|
724
705
|
});
|
|
725
706
|
const edgeData = data;
|
|
726
707
|
const label = edgeData?.label ?? (sourceHandleId === "true-out" ? "True" : void 0) ?? (sourceHandleId === "false-out" ? "False" : void 0) ?? (sourceHandleId === "loop-out" ? "Loop" : void 0);
|
|
727
|
-
const
|
|
708
|
+
const labelColor = label ? LABEL_COLORS[label] ?? DEFAULT_LABEL_COLOR : void 0;
|
|
728
709
|
const showControls = selected || isHovered;
|
|
729
710
|
const handleDeleteEdge = (event) => {
|
|
730
711
|
event.stopPropagation();
|
|
@@ -740,7 +721,7 @@ function ConditionalEdgeComponent({
|
|
|
740
721
|
edgeData?.onInsertNode?.(id, nodeType, { x: midpointX, y: midpointY });
|
|
741
722
|
setShowInsertPopup(false);
|
|
742
723
|
};
|
|
743
|
-
const hasLabel = Boolean(label &&
|
|
724
|
+
const hasLabel = Boolean(label && labelColor);
|
|
744
725
|
const insertButtonOffset = hasLabel ? -20 : 0;
|
|
745
726
|
const deleteButtonOffset = hasLabel ? showInsertPopup ? -40 : -40 : showInsertPopup ? -20 : -20;
|
|
746
727
|
return /* @__PURE__ */ jsxs(
|
|
@@ -761,15 +742,15 @@ function ConditionalEdgeComponent({
|
|
|
761
742
|
),
|
|
762
743
|
/* @__PURE__ */ jsx(BaseEdge, { id, path: edgePath, markerEnd, style }),
|
|
763
744
|
/* @__PURE__ */ jsxs(EdgeLabelRenderer, { children: [
|
|
764
|
-
hasLabel &&
|
|
745
|
+
hasLabel && labelColor && /* @__PURE__ */ jsx(
|
|
765
746
|
"div",
|
|
766
747
|
{
|
|
767
|
-
className:
|
|
748
|
+
className: "nodrag nopan pointer-events-auto absolute",
|
|
768
749
|
style: {
|
|
769
750
|
transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`
|
|
770
751
|
},
|
|
771
752
|
"data-testid": `edge-label-${id}`,
|
|
772
|
-
children: label
|
|
753
|
+
children: /* @__PURE__ */ jsx(Badge, { color: labelColor, size: "xs", children: label })
|
|
773
754
|
}
|
|
774
755
|
),
|
|
775
756
|
showControls && !showInsertPopup && /* @__PURE__ */ jsx(
|
|
@@ -1937,8 +1918,14 @@ function NodeCardMeta({ compact = false, children }) {
|
|
|
1937
1918
|
return /* @__PURE__ */ jsx(GraphNodeMeta, { compact, children });
|
|
1938
1919
|
}
|
|
1939
1920
|
function NodeCardBadge({ children, className, tone, soft = false }) {
|
|
1940
|
-
|
|
1941
|
-
|
|
1921
|
+
if (tone) {
|
|
1922
|
+
const toneClass = soft ? LOGIC_NODE_BADGE_SOFT_COLORS[tone] : LOGIC_NODE_BADGE_COLORS[tone];
|
|
1923
|
+
return /* @__PURE__ */ jsx(GraphNodeBadge, { className: `inline-flex items-center rounded-full px-2 py-0.5 text-[10px] ${soft ? "font-medium" : "font-semibold"} ${toneClass}`, children });
|
|
1924
|
+
}
|
|
1925
|
+
if (className) {
|
|
1926
|
+
return /* @__PURE__ */ jsx(GraphNodeBadge, { className, children });
|
|
1927
|
+
}
|
|
1928
|
+
return /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", children });
|
|
1942
1929
|
}
|
|
1943
1930
|
function NodeCardDeleteAction({ nodeId, onDelete }) {
|
|
1944
1931
|
if (!onDelete) return null;
|
|
@@ -3633,7 +3620,7 @@ var GroupFlowNode = memo(function GroupFlowNode2({ id, data, selected }) {
|
|
|
3633
3620
|
] })
|
|
3634
3621
|
] }),
|
|
3635
3622
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-between", children: [
|
|
3636
|
-
/* @__PURE__ */ jsx(
|
|
3623
|
+
/* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: colorScheme.text, children: translations("groupNode") }),
|
|
3637
3624
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
3638
3625
|
/* @__PURE__ */ jsx(
|
|
3639
3626
|
"button",
|
|
@@ -8596,5 +8583,5 @@ function Workspace({
|
|
|
8596
8583
|
}
|
|
8597
8584
|
|
|
8598
8585
|
export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CATEGORY_COLORS, CATEGORY_PILL_COLORS, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EXPERIMENTAL_NODE_TYPES, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, ICON_MAP, IfElseFlowNode, IterationFlowNode, IterationStartFlowNode, KnowledgeBaseFlowNode, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, ListOperatorFlowNode, LogicNodeModal, MINIMAP_NODE_COLORS, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeCardBadge, NodeCardDeleteAction, NodeCardHeader, NodeCardMeta, NodeContextMenu, NodeIconBubble, NodeInteractiveCard, NodeRunningIndicator, NoteFlowNode, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, QuestionClassifierFlowNode, RuleFlowNode, SelectionContextMenu, StartFlowNode, StrandsIcon, TemplateTransformFlowNode, ToolFlowNode, VariableAggregatorFlowNode, VariableAssignerFlowNode, WorkflowBuilderProvider, WorkflowCanvas, WorkflowHandle, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isFrameworkCompatibleWithProviders, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
|
|
8599
|
-
//# sourceMappingURL=chunk-
|
|
8600
|
-
//# sourceMappingURL=chunk-
|
|
8586
|
+
//# sourceMappingURL=chunk-VZIUQE7B.mjs.map
|
|
8587
|
+
//# sourceMappingURL=chunk-VZIUQE7B.mjs.map
|