@datatechsolutions/ui 2.11.4 → 2.11.5

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
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-D9kHlmev.mjs';
3
+ export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-CJwGehdk.mjs';
4
4
  import '@xyflow/react';
5
5
  import './contracts.mjs';
@@ -1,5 +1,5 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-CQtkR4Y6.js';
3
+ export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-DSm0iyof.js';
4
4
  import '@xyflow/react';
5
5
  import './contracts.js';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkAZ3BXAI6_js = require('../chunk-AZ3BXAI6.js');
4
+ var chunkBONTO5LJ_js = require('../chunk-BONTO5LJ.js');
5
5
  require('../chunk-EVX2CFNL.js');
6
6
  require('../chunk-S7KHTUHA.js');
7
7
  require('../chunk-UZ3CMNUJ.js');
@@ -13,7 +13,7 @@ require('../chunk-YXN2K77G.js');
13
13
 
14
14
  Object.defineProperty(exports, "Workspace", {
15
15
  enumerable: true,
16
- get: function () { return chunkAZ3BXAI6_js.Workspace; }
16
+ get: function () { return chunkBONTO5LJ_js.Workspace; }
17
17
  });
18
18
  //# sourceMappingURL=workflow-canvas.js.map
19
19
  //# sourceMappingURL=workflow-canvas.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { Workspace } from '../chunk-BHKBEP2Y.mjs';
2
+ export { Workspace } from '../chunk-45UHTVTJ.mjs';
3
3
  import '../chunk-F6EBSQF6.mjs';
4
4
  import '../chunk-QWG2FMUN.mjs';
5
5
  import '../chunk-D2JF6C3E.mjs';
@@ -214,14 +214,14 @@ var useModalStore = create((set) => ({
214
214
  subworkflowData: null,
215
215
  logicNodeData: null,
216
216
  pipelineSettingsData: null,
217
- openAgentDrawer: (agent, models, isCreateMode = false) => set({
217
+ openAgentModal: (agent, models, isCreateMode = false) => set({
218
218
  activeModal: "agent",
219
219
  agentData: { agent, models, isCreateMode },
220
220
  subworkflowData: null,
221
221
  logicNodeData: null,
222
222
  pipelineSettingsData: null
223
223
  }),
224
- openSubworkflowDrawer: (tool) => set({
224
+ openSubworkflowModal: (tool) => set({
225
225
  activeModal: "subworkflow",
226
226
  subworkflowData: { tool },
227
227
  agentData: null,
@@ -5553,21 +5553,21 @@ function WorkflowCanvasInner({
5553
5553
  onAgentSaved,
5554
5554
  isCreatingAgent = false,
5555
5555
  nodeTypes: externalNodeTypes,
5556
- renderAgentDrawer,
5556
+ renderAgentModal,
5557
5557
  renderLogicNodeModal: _renderLogicNodeModal
5558
5558
  }) {
5559
5559
  const { screenToFlowPosition, getNode, toObject, fitView, zoomIn, zoomOut, zoomTo } = useReactFlow();
5560
5560
  const tWorkflow = useTranslations("agents.workflow");
5561
5561
  const sortedAgents = useMemo(() => [...agents].sort((agentA, agentB) => (agentA.order ?? 0) - (agentB.order ?? 0)), [agents]);
5562
5562
  const [selectedAgentId, setSelectedAgentId] = useState(null);
5563
- const openAgentDrawerAction = useModalStore((s) => s.openAgentDrawer);
5563
+ const openAgentModalAction = useModalStore((s) => s.openAgentModal);
5564
5564
  const openLogicNodeModalAction = useModalStore((s) => s.openLogicNodeModal);
5565
5565
  const closeModalAction = useModalStore((s) => s.closeModal);
5566
5566
  const activeModal = useModalStore((s) => s.activeModal);
5567
5567
  const modalOpen = activeModal === "agent";
5568
5568
  useEffect(() => {
5569
5569
  if (isCreatingAgent) {
5570
- openAgentDrawerAction(
5570
+ openAgentModalAction(
5571
5571
  { agentId: "", name: "", order: 0, enabled: true, temperature: 0.7, maxTokens: 4096 },
5572
5572
  models,
5573
5573
  true
@@ -5710,7 +5710,7 @@ function WorkflowCanvasInner({
5710
5710
  selected: selectedAgentId === savedNode.id,
5711
5711
  onSelect: () => {
5712
5712
  setSelectedAgentId(agent.agentId);
5713
- openAgentDrawerAction(agent, models);
5713
+ openAgentModalAction(agent, models);
5714
5714
  },
5715
5715
  onRemoveFromCanvas: handleRemoveNodeFromCanvas
5716
5716
  }
@@ -6061,7 +6061,7 @@ function WorkflowCanvasInner({
6061
6061
  const agent = targetNode.data?.agent;
6062
6062
  if (agent) {
6063
6063
  setSelectedAgentId(agent.agentId ?? agent.id ?? null);
6064
- openAgentDrawerAction(agent, models);
6064
+ openAgentModalAction(agent, models);
6065
6065
  }
6066
6066
  } else if (targetNode.type === "tool") {
6067
6067
  const tool = targetNode.data?.tool;
@@ -6071,7 +6071,7 @@ function WorkflowCanvasInner({
6071
6071
  } else {
6072
6072
  handleEditLogicNode(nodeId);
6073
6073
  }
6074
- }, [nodes, setSelectedAgentId, openAgentDrawerAction, models, onEditTool, onEditRule, handleEditLogicNode]);
6074
+ }, [nodes, setSelectedAgentId, openAgentModalAction, models, onEditTool, onEditRule, handleEditLogicNode]);
6075
6075
  const DUPLICATE_OFFSET = 40;
6076
6076
  const contextMenuDuplicateNode = useCallback((nodeId) => {
6077
6077
  storeTakeSnapshot();
@@ -6552,7 +6552,7 @@ function WorkflowCanvasInner({
6552
6552
  selected: false,
6553
6553
  onSelect: () => {
6554
6554
  setSelectedAgentId(agent.agentId);
6555
- openAgentDrawerAction(agent, models);
6555
+ openAgentModalAction(agent, models);
6556
6556
  },
6557
6557
  onRemoveFromCanvas: handleRemoveNodeFromCanvas
6558
6558
  }
@@ -7008,7 +7008,7 @@ function WorkflowCanvasInner({
7008
7008
  }
7009
7009
  )
7010
7010
  ] }),
7011
- renderAgentDrawer?.({
7011
+ renderAgentModal?.({
7012
7012
  agent: selectedAgent,
7013
7013
  models,
7014
7014
  open: modalOpen || isCreatingAgent,
@@ -7173,5 +7173,5 @@ function Workspace({
7173
7173
  }
7174
7174
 
7175
7175
  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, NodeCard, NodeContextMenu, NoteFlowNode, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, QuestionClassifierFlowNode, RuleFlowNode, SelectionContextMenu, StartFlowNode, StrandsIcon, TemplateTransformFlowNode, ToolFlowNode, VariableAggregatorFlowNode, VariableAssignerFlowNode, WorkflowBuilderProvider, WorkflowCanvas, Workspace, WorkspaceModal, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
7176
- //# sourceMappingURL=chunk-BHKBEP2Y.mjs.map
7177
- //# sourceMappingURL=chunk-BHKBEP2Y.mjs.map
7176
+ //# sourceMappingURL=chunk-45UHTVTJ.mjs.map
7177
+ //# sourceMappingURL=chunk-45UHTVTJ.mjs.map