@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.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-2JS5B55J.mjs';
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(Fragment, { children: [
702
- /* @__PURE__ */ jsx(
703
- "path",
704
- {
705
- d: edgePath,
706
- fill: "none",
707
- stroke: "transparent",
708
- strokeWidth: 20,
709
- onMouseEnter: () => setIsHovered(true),
710
- onMouseLeave: () => setIsHovered(false),
711
- className: "react-flow__edge-interaction"
712
- }
713
- ),
714
- /* @__PURE__ */ jsx(BaseEdge, { id, path: edgePath, markerEnd, style }),
715
- /* @__PURE__ */ jsxs(EdgeLabelRenderer, { children: [
716
- hasLabel && labelStyle && /* @__PURE__ */ jsx(
717
- "div",
718
- {
719
- 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}`,
720
- style: {
721
- transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`
722
- },
723
- "data-testid": `edge-label-${id}`,
724
- children: label
725
- }
726
- ),
727
- showControls && !showInsertPopup && /* @__PURE__ */ jsx(
728
- "button",
729
- {
730
- type: "button",
731
- 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",
732
- style: {
733
- transform: `translate(-50%, -50%) translate(${labelX}px,${labelY + insertButtonOffset}px)`
734
- },
735
- onClick: handleInsertClick,
736
- "aria-label": "Insert node",
737
- children: /* @__PURE__ */ jsx(PlusIcon, { className: "h-3 w-3 text-teal-500 dark:text-teal-400" })
738
- }
739
- ),
740
- showInsertPopup && /* @__PURE__ */ jsx(
741
- EdgeInsertPopup,
742
- {
743
- position: { x: labelX, y: labelY + insertButtonOffset },
744
- onSelect: handleInsertNodeSelect,
745
- onClose: () => setShowInsertPopup(false)
746
- }
747
- ),
748
- showControls && /* @__PURE__ */ jsx(
749
- "button",
750
- {
751
- type: "button",
752
- 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",
753
- style: {
754
- transform: `translate(-50%, -50%) translate(${labelX}px,${labelY + deleteButtonOffset}px)`
755
- },
756
- onClick: handleDeleteEdge,
757
- "aria-label": "Delete connection",
758
- children: /* @__PURE__ */ jsx(XMarkIcon, { className: "h-3 w-3 text-red-500 dark:text-red-400" })
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-3NXUTBDV.mjs.map
7605
- //# sourceMappingURL=chunk-3NXUTBDV.mjs.map
7613
+ //# sourceMappingURL=chunk-WG4S74B5.mjs.map
7614
+ //# sourceMappingURL=chunk-WG4S74B5.mjs.map