@datatechsolutions/ui 2.11.22 → 2.11.23
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 +186 -133
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +61 -8
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/workflow-canvas.js +5 -5
- package/dist/astrlabe/workflow-canvas.mjs +4 -4
- package/dist/{chunk-5WFBHIM5.js → chunk-6UEVHQTJ.js} +10 -9
- package/dist/chunk-6UEVHQTJ.js.map +1 -0
- package/dist/{chunk-CU3L2357.mjs → chunk-D7EPY2L3.mjs} +34 -21
- package/dist/chunk-D7EPY2L3.mjs.map +1 -0
- package/dist/{chunk-ITFBJSHZ.js → chunk-EY3UIPM2.js} +76 -63
- package/dist/chunk-EY3UIPM2.js.map +1 -0
- package/dist/{chunk-23247RGB.mjs → chunk-GXVZXTTC.mjs} +10 -9
- package/dist/chunk-GXVZXTTC.mjs.map +1 -0
- package/dist/index.js +730 -730
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-23247RGB.mjs.map +0 -1
- package/dist/chunk-5WFBHIM5.js.map +0 -1
- package/dist/chunk-CU3L2357.mjs.map +0 -1
- package/dist/chunk-ITFBJSHZ.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { GlassModalShell, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-
|
|
2
|
+
import { ToggleSwitch, GlassModalShell, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-GXVZXTTC.mjs';
|
|
3
|
+
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
3
4
|
import { GraphNodeHeader, GraphNodeMeta, GraphNodeBadge, GraphNodeIconBubble } from './chunk-OZNTQROP.mjs';
|
|
4
5
|
import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-TLPPVL3W.mjs';
|
|
5
|
-
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
6
6
|
import { memo, useState, useRef, useCallback, useEffect, lazy, createContext, useMemo, useContext } from 'react';
|
|
7
7
|
import { Position, NodeResizer, MarkerType, useReactFlow, getBezierPath, BaseEdge, EdgeLabelRenderer, Handle, ReactFlowProvider, useNodesState, useEdgesState, addEdge, BackgroundVariant } from '@xyflow/react';
|
|
8
8
|
import '@xyflow/react/dist/style.css';
|
|
@@ -1594,14 +1594,19 @@ var AgentToolFlowNode = memo(function AgentToolFlowNode2({ id, data, selected })
|
|
|
1594
1594
|
data.onToggle && /* @__PURE__ */ jsx(
|
|
1595
1595
|
"span",
|
|
1596
1596
|
{
|
|
1597
|
-
|
|
1598
|
-
"aria-checked": agentTool.enabled,
|
|
1599
|
-
className: `nodrag nopan relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer items-center rounded-full border border-white/50 px-0.5 shadow-[inset_0_1px_0_rgba(255,255,255,0.5)] transition duration-200 dark:border-white/15 ${agentTool.enabled ? "bg-amber-500/90" : "bg-slate-300/80 dark:bg-slate-700/80"}`,
|
|
1597
|
+
className: "nodrag nopan",
|
|
1600
1598
|
onClick: (event) => {
|
|
1601
1599
|
event.stopPropagation();
|
|
1602
|
-
data.onToggle(agentTool);
|
|
1603
1600
|
},
|
|
1604
|
-
children: /* @__PURE__ */ jsx(
|
|
1601
|
+
children: /* @__PURE__ */ jsx(
|
|
1602
|
+
ToggleSwitch,
|
|
1603
|
+
{
|
|
1604
|
+
checked: Boolean(agentTool.enabled),
|
|
1605
|
+
onChange: () => data.onToggle?.(agentTool),
|
|
1606
|
+
size: "sm",
|
|
1607
|
+
label: `${agentTool.name} enabled`
|
|
1608
|
+
}
|
|
1609
|
+
)
|
|
1605
1610
|
}
|
|
1606
1611
|
)
|
|
1607
1612
|
] }),
|
|
@@ -1695,16 +1700,20 @@ var ToolFlowNode = memo(function ToolFlowNode2({ id, data, selected }) {
|
|
|
1695
1700
|
onToggle && /* @__PURE__ */ jsx(
|
|
1696
1701
|
"span",
|
|
1697
1702
|
{
|
|
1698
|
-
|
|
1699
|
-
"aria-checked": tool.enabled,
|
|
1700
|
-
"aria-label": tool.enabled ? "Enabled" : "Disabled",
|
|
1701
|
-
className: `nodrag nopan relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer items-center rounded-full border border-white/50 px-0.5 shadow-[inset_0_1px_0_rgba(255,255,255,0.5)] transition duration-200 dark:border-white/15 ${tool.enabled ? "bg-blue-600/90" : "bg-slate-300/80 dark:bg-slate-700/80"}`,
|
|
1703
|
+
className: "nodrag nopan",
|
|
1702
1704
|
onClick: (event) => {
|
|
1703
1705
|
event.stopPropagation();
|
|
1704
1706
|
event.preventDefault();
|
|
1705
|
-
onToggle(tool);
|
|
1706
1707
|
},
|
|
1707
|
-
children: /* @__PURE__ */ jsx(
|
|
1708
|
+
children: /* @__PURE__ */ jsx(
|
|
1709
|
+
ToggleSwitch,
|
|
1710
|
+
{
|
|
1711
|
+
checked: Boolean(tool.enabled),
|
|
1712
|
+
onChange: () => onToggle(tool),
|
|
1713
|
+
size: "sm",
|
|
1714
|
+
label: `${tool.name} enabled`
|
|
1715
|
+
}
|
|
1716
|
+
)
|
|
1708
1717
|
}
|
|
1709
1718
|
)
|
|
1710
1719
|
] }),
|
|
@@ -1842,16 +1851,20 @@ var RuleFlowNode = memo(function RuleFlowNode2({ id, data, selected }) {
|
|
|
1842
1851
|
onToggle && /* @__PURE__ */ jsx(
|
|
1843
1852
|
"span",
|
|
1844
1853
|
{
|
|
1845
|
-
|
|
1846
|
-
"aria-checked": rule.enabled,
|
|
1847
|
-
"aria-label": rule.enabled ? "Enabled" : "Disabled",
|
|
1848
|
-
className: `nodrag nopan relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer items-center rounded-full border border-white/50 px-0.5 shadow-[inset_0_1px_0_rgba(255,255,255,0.5)] transition duration-200 dark:border-white/15 ${rule.enabled ? "bg-blue-600/90" : "bg-slate-300/80 dark:bg-slate-700/80"}`,
|
|
1854
|
+
className: "nodrag nopan",
|
|
1849
1855
|
onClick: (event) => {
|
|
1850
1856
|
event.stopPropagation();
|
|
1851
1857
|
event.preventDefault();
|
|
1852
|
-
onToggle(rule);
|
|
1853
1858
|
},
|
|
1854
|
-
children: /* @__PURE__ */ jsx(
|
|
1859
|
+
children: /* @__PURE__ */ jsx(
|
|
1860
|
+
ToggleSwitch,
|
|
1861
|
+
{
|
|
1862
|
+
checked: Boolean(rule.enabled),
|
|
1863
|
+
onChange: () => onToggle(rule),
|
|
1864
|
+
size: "sm",
|
|
1865
|
+
label: `${rule.name} enabled`
|
|
1866
|
+
}
|
|
1867
|
+
)
|
|
1855
1868
|
}
|
|
1856
1869
|
)
|
|
1857
1870
|
] }),
|
|
@@ -7549,5 +7562,5 @@ function Workspace({
|
|
|
7549
7562
|
}
|
|
7550
7563
|
|
|
7551
7564
|
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 };
|
|
7552
|
-
//# sourceMappingURL=chunk-
|
|
7553
|
-
//# sourceMappingURL=chunk-
|
|
7565
|
+
//# sourceMappingURL=chunk-D7EPY2L3.mjs.map
|
|
7566
|
+
//# sourceMappingURL=chunk-D7EPY2L3.mjs.map
|