@datatechsolutions/ui 2.11.33 → 2.11.34
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/index.js +132 -132
- package/dist/astrlabe/index.mjs +3 -3
- package/dist/astrlabe/workflow-canvas.js +3 -3
- package/dist/astrlabe/workflow-canvas.mjs +2 -2
- package/dist/{chunk-2JS5B55J.mjs → chunk-CH5BZ5ML.mjs} +4 -4
- package/dist/{chunk-2JS5B55J.mjs.map → chunk-CH5BZ5ML.mjs.map} +1 -1
- package/dist/{chunk-HSUB5MTJ.js → chunk-D6MUVAMK.js} +119 -110
- package/dist/chunk-D6MUVAMK.js.map +1 -0
- package/dist/{chunk-3NXUTBDV.mjs → chunk-WG4S74B5.mjs} +74 -65
- package/dist/chunk-WG4S74B5.mjs.map +1 -0
- package/dist/{chunk-LH2JDCO3.js → chunk-YHAVW6OR.js} +4 -4
- package/dist/{chunk-LH2JDCO3.js.map → chunk-YHAVW6OR.js.map} +1 -1
- package/dist/index.js +709 -709
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3NXUTBDV.mjs.map +0 -1
- package/dist/chunk-HSUB5MTJ.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-
|
|
2
|
+
import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-CH5BZ5ML.mjs';
|
|
3
3
|
import { GraphNodeHeader, GraphNodeMeta, GraphNodeBadge, GraphNodeIconBubble } from './chunk-OZNTQROP.mjs';
|
|
4
4
|
import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-TLPPVL3W.mjs';
|
|
5
5
|
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
@@ -698,68 +698,77 @@ function ConditionalEdgeComponent({
|
|
|
698
698
|
const hasLabel = Boolean(label && labelStyle);
|
|
699
699
|
const insertButtonOffset = hasLabel ? -20 : 0;
|
|
700
700
|
const deleteButtonOffset = hasLabel ? showInsertPopup ? -40 : -40 : showInsertPopup ? -20 : -20;
|
|
701
|
-
return /* @__PURE__ */ jsxs(
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
{
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
701
|
+
return /* @__PURE__ */ jsxs(
|
|
702
|
+
"g",
|
|
703
|
+
{
|
|
704
|
+
onMouseEnter: () => setIsHovered(true),
|
|
705
|
+
onMouseLeave: () => setIsHovered(false),
|
|
706
|
+
children: [
|
|
707
|
+
/* @__PURE__ */ jsx(
|
|
708
|
+
"path",
|
|
709
|
+
{
|
|
710
|
+
d: edgePath,
|
|
711
|
+
fill: "none",
|
|
712
|
+
stroke: "transparent",
|
|
713
|
+
strokeWidth: 20,
|
|
714
|
+
className: "react-flow__edge-interaction"
|
|
715
|
+
}
|
|
716
|
+
),
|
|
717
|
+
/* @__PURE__ */ jsx(BaseEdge, { id, path: edgePath, markerEnd, style }),
|
|
718
|
+
/* @__PURE__ */ jsxs(EdgeLabelRenderer, { children: [
|
|
719
|
+
hasLabel && labelStyle && /* @__PURE__ */ jsx(
|
|
720
|
+
"div",
|
|
721
|
+
{
|
|
722
|
+
className: `nodrag nopan pointer-events-auto absolute rounded-full px-2 py-0.5 text-[10px] font-semibold ${labelStyle.background} ${labelStyle.text} ${labelStyle.darkBackground} ${labelStyle.darkText}`,
|
|
723
|
+
style: {
|
|
724
|
+
transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`
|
|
725
|
+
},
|
|
726
|
+
"data-testid": `edge-label-${id}`,
|
|
727
|
+
children: label
|
|
728
|
+
}
|
|
729
|
+
),
|
|
730
|
+
showControls && !showInsertPopup && /* @__PURE__ */ jsx(
|
|
731
|
+
"button",
|
|
732
|
+
{
|
|
733
|
+
type: "button",
|
|
734
|
+
className: "nodrag nopan pointer-events-auto absolute flex h-5 w-5 items-center justify-center rounded-full border border-teal-300 bg-white shadow-md transition-all hover:scale-110 hover:bg-teal-50 dark:border-teal-600 dark:bg-gray-800 dark:hover:bg-teal-900/30",
|
|
735
|
+
style: {
|
|
736
|
+
transform: `translate(-50%, -50%) translate(${labelX}px,${labelY + insertButtonOffset}px)`
|
|
737
|
+
},
|
|
738
|
+
onClick: handleInsertClick,
|
|
739
|
+
onMouseEnter: () => setIsHovered(true),
|
|
740
|
+
onMouseLeave: () => setIsHovered(false),
|
|
741
|
+
"aria-label": "Insert node",
|
|
742
|
+
children: /* @__PURE__ */ jsx(PlusIcon, { className: "h-3 w-3 text-teal-500 dark:text-teal-400" })
|
|
743
|
+
}
|
|
744
|
+
),
|
|
745
|
+
showInsertPopup && /* @__PURE__ */ jsx(
|
|
746
|
+
EdgeInsertPopup,
|
|
747
|
+
{
|
|
748
|
+
position: { x: labelX, y: labelY + insertButtonOffset },
|
|
749
|
+
onSelect: handleInsertNodeSelect,
|
|
750
|
+
onClose: () => setShowInsertPopup(false)
|
|
751
|
+
}
|
|
752
|
+
),
|
|
753
|
+
showControls && /* @__PURE__ */ jsx(
|
|
754
|
+
"button",
|
|
755
|
+
{
|
|
756
|
+
type: "button",
|
|
757
|
+
className: "nodrag nopan pointer-events-auto absolute flex h-5 w-5 items-center justify-center rounded-full border border-red-300 bg-white shadow-md transition-all hover:scale-110 hover:bg-red-50 dark:border-red-600 dark:bg-gray-800 dark:hover:bg-red-900/30",
|
|
758
|
+
style: {
|
|
759
|
+
transform: `translate(-50%, -50%) translate(${labelX}px,${labelY + deleteButtonOffset}px)`
|
|
760
|
+
},
|
|
761
|
+
onClick: handleDeleteEdge,
|
|
762
|
+
onMouseEnter: () => setIsHovered(true),
|
|
763
|
+
onMouseLeave: () => setIsHovered(false),
|
|
764
|
+
"aria-label": "Delete connection",
|
|
765
|
+
children: /* @__PURE__ */ jsx(XMarkIcon, { className: "h-3 w-3 text-red-500 dark:text-red-400" })
|
|
766
|
+
}
|
|
767
|
+
)
|
|
768
|
+
] })
|
|
769
|
+
]
|
|
770
|
+
}
|
|
771
|
+
);
|
|
763
772
|
}
|
|
764
773
|
var ConditionalEdge = memo(ConditionalEdgeComponent);
|
|
765
774
|
function CustomConnectionLine({
|
|
@@ -7601,5 +7610,5 @@ function Workspace({
|
|
|
7601
7610
|
}
|
|
7602
7611
|
|
|
7603
7612
|
export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CATEGORY_COLORS, CATEGORY_PILL_COLORS, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, 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, ModelProviderFlowNode, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NoteFlowNode, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, QuestionClassifierFlowNode, RuleFlowNode, SelectionContextMenu, StartFlowNode, StrandsIcon, TemplateTransformFlowNode, ToolFlowNode, VariableAggregatorFlowNode, VariableAssignerFlowNode, WorkflowBuilderProvider, WorkflowCanvas, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isFrameworkCompatibleWithProviders, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
|
|
7604
|
-
//# sourceMappingURL=chunk-
|
|
7605
|
-
//# sourceMappingURL=chunk-
|
|
7613
|
+
//# sourceMappingURL=chunk-WG4S74B5.mjs.map
|
|
7614
|
+
//# sourceMappingURL=chunk-WG4S74B5.mjs.map
|