@datatechsolutions/ui 2.11.7 → 2.11.8
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.d.mts +13 -6
- package/dist/astrlabe/index.d.ts +13 -6
- package/dist/astrlabe/index.js +102 -100
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +5 -3
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/workflow-canvas.js +2 -2
- package/dist/astrlabe/workflow-canvas.mjs +1 -1
- package/dist/{chunk-TKLALDY4.js → chunk-LFWRE3A3.js} +77 -40
- package/dist/chunk-LFWRE3A3.js.map +1 -0
- package/dist/{chunk-76MHUX4T.mjs → chunk-VWKBMTTC.mjs} +77 -40
- package/dist/chunk-VWKBMTTC.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-76MHUX4T.mjs.map +0 -1
- package/dist/chunk-TKLALDY4.js.map +0 -1
|
@@ -208,47 +208,84 @@ var useWorkflowStore = create((set, get) => ({
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
}));
|
|
211
|
-
var
|
|
211
|
+
var EMPTY_STATE = {
|
|
212
212
|
activeModal: null,
|
|
213
213
|
agentData: null,
|
|
214
|
-
subworkflowData: null,
|
|
215
214
|
logicNodeData: null,
|
|
216
|
-
pipelineSettingsData: null
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
activeModal:
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
215
|
+
pipelineSettingsData: null
|
|
216
|
+
};
|
|
217
|
+
var useModalStore = create((set, get) => ({
|
|
218
|
+
...EMPTY_STATE,
|
|
219
|
+
stack: [],
|
|
220
|
+
openAgentModal: (agent, models, isCreateMode = false) => {
|
|
221
|
+
const current = get();
|
|
222
|
+
const entry = {
|
|
223
|
+
type: current.activeModal,
|
|
224
|
+
agentData: current.agentData,
|
|
225
|
+
logicNodeData: current.logicNodeData,
|
|
226
|
+
pipelineSettingsData: current.pipelineSettingsData
|
|
227
|
+
};
|
|
228
|
+
const newStack = current.activeModal ? [...current.stack, entry] : current.stack;
|
|
229
|
+
set({
|
|
230
|
+
activeModal: "agent",
|
|
231
|
+
agentData: { agent, models, isCreateMode },
|
|
232
|
+
logicNodeData: null,
|
|
233
|
+
pipelineSettingsData: null,
|
|
234
|
+
stack: newStack
|
|
235
|
+
});
|
|
236
|
+
},
|
|
237
|
+
openLogicNodeModal: (nodeId, nodeLabel, config) => {
|
|
238
|
+
const current = get();
|
|
239
|
+
const entry = {
|
|
240
|
+
type: current.activeModal,
|
|
241
|
+
agentData: current.agentData,
|
|
242
|
+
logicNodeData: current.logicNodeData,
|
|
243
|
+
pipelineSettingsData: current.pipelineSettingsData
|
|
244
|
+
};
|
|
245
|
+
const newStack = current.activeModal ? [...current.stack, entry] : current.stack;
|
|
246
|
+
set({
|
|
247
|
+
activeModal: "logic-node",
|
|
248
|
+
logicNodeData: { nodeId, nodeLabel, config },
|
|
249
|
+
agentData: null,
|
|
250
|
+
pipelineSettingsData: null,
|
|
251
|
+
stack: newStack
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
openPipelineSettingsModal: (name, description) => {
|
|
255
|
+
const current = get();
|
|
256
|
+
const entry = {
|
|
257
|
+
type: current.activeModal,
|
|
258
|
+
agentData: current.agentData,
|
|
259
|
+
logicNodeData: current.logicNodeData,
|
|
260
|
+
pipelineSettingsData: current.pipelineSettingsData
|
|
261
|
+
};
|
|
262
|
+
const newStack = current.activeModal ? [...current.stack, entry] : current.stack;
|
|
263
|
+
set({
|
|
264
|
+
activeModal: "pipeline-settings",
|
|
265
|
+
pipelineSettingsData: { name, description },
|
|
266
|
+
agentData: null,
|
|
267
|
+
logicNodeData: null,
|
|
268
|
+
stack: newStack
|
|
269
|
+
});
|
|
270
|
+
},
|
|
271
|
+
closeModal: () => {
|
|
272
|
+
const { stack } = get();
|
|
273
|
+
if (stack.length > 0) {
|
|
274
|
+
const previous = stack[stack.length - 1];
|
|
275
|
+
set({
|
|
276
|
+
activeModal: previous.type,
|
|
277
|
+
agentData: previous.agentData,
|
|
278
|
+
logicNodeData: previous.logicNodeData,
|
|
279
|
+
pipelineSettingsData: previous.pipelineSettingsData,
|
|
280
|
+
stack: stack.slice(0, -1)
|
|
281
|
+
});
|
|
282
|
+
} else {
|
|
283
|
+
set({ ...EMPTY_STATE, stack: [] });
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
closeAllModals: () => {
|
|
287
|
+
set({ ...EMPTY_STATE, stack: [] });
|
|
288
|
+
}
|
|
252
289
|
}));
|
|
253
290
|
var GRAPH_ACTIVE_EDGE_COLOR = "#14b8a6";
|
|
254
291
|
var GRAPH_TRUE_EDGE_COLOR = "#22c55e";
|
|
@@ -7046,5 +7083,5 @@ function Workspace({
|
|
|
7046
7083
|
}
|
|
7047
7084
|
|
|
7048
7085
|
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, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
|
|
7049
|
-
//# sourceMappingURL=chunk-
|
|
7050
|
-
//# sourceMappingURL=chunk-
|
|
7086
|
+
//# sourceMappingURL=chunk-VWKBMTTC.mjs.map
|
|
7087
|
+
//# sourceMappingURL=chunk-VWKBMTTC.mjs.map
|