@datatechsolutions/ui 3.6.0 → 3.6.1

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.
Files changed (41) hide show
  1. package/dist/astrlabe/index.js +106 -106
  2. package/dist/astrlabe/index.mjs +2 -2
  3. package/dist/astrlabe/workflow-canvas.js +2 -2
  4. package/dist/astrlabe/workflow-canvas.mjs +1 -1
  5. package/dist/{chunk-I63NFWIA.mjs → chunk-3Z66NXEB.mjs} +3 -3
  6. package/dist/{chunk-I63NFWIA.mjs.map → chunk-3Z66NXEB.mjs.map} +1 -1
  7. package/dist/{chunk-XTXLRQ3H.mjs → chunk-4JDJRGAB.mjs} +27 -28
  8. package/dist/chunk-4JDJRGAB.mjs.map +1 -0
  9. package/dist/{chunk-WEZ722BS.mjs → chunk-5ZAZ2C7A.mjs} +4 -4
  10. package/dist/{chunk-WEZ722BS.mjs.map → chunk-5ZAZ2C7A.mjs.map} +1 -1
  11. package/dist/{chunk-UWSMHKOF.js → chunk-6ZMTJSQF.js} +78 -78
  12. package/dist/chunk-6ZMTJSQF.js.map +1 -0
  13. package/dist/{chunk-VPOIX2DY.js → chunk-DRORQGN2.js} +27 -27
  14. package/dist/{chunk-VPOIX2DY.js.map → chunk-DRORQGN2.js.map} +1 -1
  15. package/dist/{chunk-QTA5I6FC.mjs → chunk-KDFBN2L2.mjs} +34 -31
  16. package/dist/chunk-KDFBN2L2.mjs.map +1 -0
  17. package/dist/{chunk-QHP2MR2F.js → chunk-KEWRLEYV.js} +4 -4
  18. package/dist/{chunk-QHP2MR2F.js.map → chunk-KEWRLEYV.js.map} +1 -1
  19. package/dist/{chunk-DYWSG42B.mjs → chunk-MQNXKBFP.mjs} +8 -8
  20. package/dist/chunk-MQNXKBFP.mjs.map +1 -0
  21. package/dist/{chunk-3WXMBAGN.js → chunk-MUOTTGCX.js} +27 -28
  22. package/dist/chunk-MUOTTGCX.js.map +1 -0
  23. package/dist/{chunk-S7AV6XEY.js → chunk-SQZGQOKU.js} +32 -29
  24. package/dist/chunk-SQZGQOKU.js.map +1 -0
  25. package/dist/platform/agents-workspace.js +4 -4
  26. package/dist/platform/agents-workspace.mjs +3 -3
  27. package/dist/platform/index.js +15 -15
  28. package/dist/platform/index.mjs +6 -6
  29. package/dist/platform/pages/index.js +325 -320
  30. package/dist/platform/pages/index.js.map +1 -1
  31. package/dist/platform/pages/index.mjs +320 -315
  32. package/dist/platform/pages/index.mjs.map +1 -1
  33. package/dist/platform/workflow-canvas-shell.js +3 -3
  34. package/dist/platform/workflow-canvas-shell.mjs +2 -2
  35. package/package.json +1 -1
  36. package/dist/chunk-3WXMBAGN.js.map +0 -1
  37. package/dist/chunk-DYWSG42B.mjs.map +0 -1
  38. package/dist/chunk-QTA5I6FC.mjs.map +0 -1
  39. package/dist/chunk-S7AV6XEY.js.map +0 -1
  40. package/dist/chunk-UWSMHKOF.js.map +0 -1
  41. package/dist/chunk-XTXLRQ3H.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormTextarea, FormSelect, Button, IconButton } from './chunk-4OFG6POC.mjs';
2
+ import { Badge, ToggleSwitch, StatusBadge, GlassModal, ContextMenu, FormInput, FormTextarea, FormSelect, Button, IconButton } from './chunk-4OFG6POC.mjs';
3
3
  import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
4
- import { GraphNodeHeader, GraphNodeMeta, GraphNodeBadge, GraphNodeIconBubble } from './chunk-OZNTQROP.mjs';
4
+ import { GraphNodeHeader, GraphNodeMeta, GraphNodeIconBubble, GraphNodeBadge } from './chunk-OZNTQROP.mjs';
5
5
  import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-G7JQ4OCE.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';
@@ -1963,9 +1963,6 @@ function NodeCardDeleteAction({ nodeId, onDelete }) {
1963
1963
  }
1964
1964
  );
1965
1965
  }
1966
- function NodeCardBranchLabel({ children, className }) {
1967
- return /* @__PURE__ */ jsx("span", { className, children });
1968
- }
1969
1966
  var BASE_HANDLE_CLASS = "!h-3 !w-3 !border-2 !border-white dark:!border-gray-800";
1970
1967
  function useResolvedPosition(position) {
1971
1968
  const layoutDirection = useWorkflowStore((s) => s.layoutDirection);
@@ -2113,21 +2110,18 @@ var AgentFlowNode = memo(function AgentFlowNode2({ id, data, selected }) {
2113
2110
  ] })
2114
2111
  ] }),
2115
2112
  /* @__PURE__ */ jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
2116
- /* @__PURE__ */ jsx(NodeCardBadge, { className: "rounded-full bg-indigo-100 px-2 py-0.5 text-[10px] font-semibold text-indigo-700 dark:bg-indigo-500/20 dark:text-indigo-300", children: "Agent" }),
2113
+ /* @__PURE__ */ jsx(Badge, { color: "indigo", size: "xs", children: "Agent" }),
2117
2114
  (() => {
2118
2115
  const tier = getAgentTier(Number(data.agent.elo ?? 0));
2119
- return /* @__PURE__ */ jsx(NodeCardBadge, { className: `rounded-full px-2 py-0.5 text-[10px] font-bold ${tier.pillColor}`, children: tier.key });
2116
+ return /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: tier.pillColor, children: tier.key });
2120
2117
  })(),
2121
- /* @__PURE__ */ jsxs(NodeCardBadge, { className: `inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium ${frameworkMeta.badgeColor}`, children: [
2122
- /* @__PURE__ */ jsx(frameworkMeta.IconComponent, { className: "h-3 w-3" }),
2123
- frameworkMeta.label
2124
- ] }),
2125
- /* @__PURE__ */ jsx(NodeCardBadge, { className: "rounded-full bg-blue-50 px-2 py-0.5 text-[10px] font-medium text-blue-700 dark:bg-blue-900/25 dark:text-blue-300", children: data.agent.modelId }),
2126
- /* @__PURE__ */ jsxs(NodeCardBadge, { className: "rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-600 dark:bg-white/10 dark:text-gray-300", children: [
2118
+ /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: frameworkMeta.badgeColor, icon: /* @__PURE__ */ jsx(frameworkMeta.IconComponent, { className: "h-3 w-3" }), children: frameworkMeta.label }),
2119
+ /* @__PURE__ */ jsx(Badge, { color: "blue", size: "xs", children: data.agent.modelId }),
2120
+ /* @__PURE__ */ jsxs(Badge, { color: "zinc", size: "xs", children: [
2127
2121
  "T: ",
2128
2122
  data.agent.temperature
2129
2123
  ] }),
2130
- /* @__PURE__ */ jsxs(NodeCardBadge, { className: "rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-600 dark:bg-white/10 dark:text-gray-300", children: [
2124
+ /* @__PURE__ */ jsxs(Badge, { color: "zinc", size: "xs", children: [
2131
2125
  "v",
2132
2126
  data.agent.activePromptVersion
2133
2127
  ] }),
@@ -2135,7 +2129,16 @@ var AgentFlowNode = memo(function AgentFlowNode2({ id, data, selected }) {
2135
2129
  /* @__PURE__ */ jsx("div", { className: "w-full" }),
2136
2130
  /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-1 border-t border-gray-200/20 pt-1 dark:border-white/5", children: [
2137
2131
  /* @__PURE__ */ jsx(CommandLineIcon, { className: "h-3 w-3 shrink-0 text-amber-500 dark:text-amber-400" }),
2138
- data.agentTools.slice(0, 3).map((tool) => /* @__PURE__ */ jsx(NodeCardBadge, { className: `rounded px-1.5 py-px text-[9px] font-medium ${tool.enabled ? "bg-amber-100 text-amber-700 dark:bg-amber-500/15 dark:text-amber-300" : "bg-gray-100 text-gray-400 line-through dark:bg-white/5 dark:text-gray-500"}`, children: tool.name }, tool.id)),
2132
+ data.agentTools.slice(0, 3).map((tool) => /* @__PURE__ */ jsx(
2133
+ Badge,
2134
+ {
2135
+ color: tool.enabled ? "amber" : "zinc",
2136
+ size: "xs",
2137
+ className: tool.enabled ? "" : "line-through",
2138
+ children: tool.name
2139
+ },
2140
+ tool.id
2141
+ )),
2139
2142
  data.agentTools.length > 3 && /* @__PURE__ */ jsxs("span", { className: "text-[9px] text-gray-400 dark:text-gray-500", children: [
2140
2143
  "+",
2141
2144
  data.agentTools.length - 3
@@ -2237,9 +2240,9 @@ var AgentToolFlowNode = memo(function AgentToolFlowNode2({ id, data, selected })
2237
2240
  )
2238
2241
  ] }),
2239
2242
  /* @__PURE__ */ jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
2240
- /* @__PURE__ */ jsx(NodeCardBadge, { className: "rounded-full bg-amber-100 px-2 py-0.5 text-[10px] font-semibold text-amber-700 dark:bg-amber-500/20 dark:text-amber-300", children: t("agentToolNode") }),
2241
- /* @__PURE__ */ jsx(NodeCardBadge, { className: `rounded-full px-2 py-0.5 text-[10px] font-medium ${pill}`, children: category }),
2242
- agentTool.parameters && agentTool.parameters.length > 0 && /* @__PURE__ */ jsxs(NodeCardBadge, { className: "rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-600 dark:bg-white/10 dark:text-gray-300", children: [
2243
+ /* @__PURE__ */ jsx(Badge, { color: "amber", size: "xs", children: t("agentToolNode") }),
2244
+ /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: pill, children: category }),
2245
+ agentTool.parameters && agentTool.parameters.length > 0 && /* @__PURE__ */ jsxs(Badge, { color: "zinc", size: "xs", children: [
2243
2246
  agentTool.parameters.length,
2244
2247
  " params"
2245
2248
  ] }),
@@ -2346,8 +2349,8 @@ var ToolFlowNode = memo(function ToolFlowNode2({ id, data, selected }) {
2346
2349
  ] }),
2347
2350
  /* @__PURE__ */ jsxs(NodeCardMeta, { compact: isCompact, children: [
2348
2351
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
2349
- /* @__PURE__ */ jsx(NodeCardBadge, { className: "inline-flex items-center rounded-full bg-teal-100 px-2 py-0.5 text-[10px] font-semibold text-teal-700 dark:bg-teal-400/15 dark:text-teal-400", children: t("nodeType") }),
2350
- /* @__PURE__ */ jsx(NodeCardBadge, { className: `inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium ${categoryPill}`, children: tool.category }),
2352
+ /* @__PURE__ */ jsx(Badge, { color: "teal", size: "xs", children: t("nodeType") }),
2353
+ /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: categoryPill, children: tool.category }),
2351
2354
  /* @__PURE__ */ jsxs("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
2352
2355
  String(tool.timeoutMs ?? ""),
2353
2356
  "ms"
@@ -2404,7 +2407,7 @@ var RuleFlowNode = memo(function RuleFlowNode2({ id, data, selected }) {
2404
2407
  ] }),
2405
2408
  !isCompact && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-between", children: [
2406
2409
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
2407
- /* @__PURE__ */ jsx("span", { className: "inline-flex items-center rounded-full bg-violet-100 px-2 py-0.5 text-[10px] font-semibold text-violet-700 dark:bg-violet-500/20 dark:text-violet-300", children: t("ruleEngine") }),
2410
+ /* @__PURE__ */ jsx(Badge, { color: "violet", size: "xs", children: t("ruleEngine") }),
2408
2411
  contextVariableCount > 0 && /* @__PURE__ */ jsxs("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
2409
2412
  contextVariableCount,
2410
2413
  " vars"
@@ -2498,8 +2501,8 @@ var RuleFlowNode = memo(function RuleFlowNode2({ id, data, selected }) {
2498
2501
  ] }),
2499
2502
  !isCompact && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-between", children: [
2500
2503
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
2501
- /* @__PURE__ */ jsx("span", { className: "inline-flex items-center rounded-full bg-violet-100 px-2 py-0.5 text-[10px] font-semibold text-violet-700 dark:bg-violet-500/20 dark:text-violet-300", children: t("nodeType") }),
2502
- /* @__PURE__ */ jsx("span", { className: `inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium ${typePill}`, children: adjustmentType }),
2504
+ /* @__PURE__ */ jsx(Badge, { color: "violet", size: "xs", children: t("nodeType") }),
2505
+ /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: typePill, children: adjustmentType }),
2503
2506
  /* @__PURE__ */ jsxs("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
2504
2507
  "P",
2505
2508
  String(rule.priority ?? "")
@@ -2577,8 +2580,8 @@ var EntityFlowNode = memo(function EntityFlowNode2({ id, data, selected }) {
2577
2580
  ] }),
2578
2581
  /* @__PURE__ */ jsxs(NodeCardMeta, { compact: isCompact, children: [
2579
2582
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
2580
- /* @__PURE__ */ jsx(NodeCardBadge, { className: `inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-semibold ${badgeColor}`, children: t("entityNodeType") }),
2581
- /* @__PURE__ */ jsxs(NodeCardBadge, { className: `inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium ${badgeColor}`, children: [
2583
+ /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: badgeColor, children: t("entityNodeType") }),
2584
+ /* @__PURE__ */ jsxs(Badge, { color: "zinc", size: "xs", className: badgeColor, children: [
2582
2585
  fieldCount,
2583
2586
  " ",
2584
2587
  t("entityFields")
@@ -2739,8 +2742,8 @@ var IfElseFlowNode = memo(function IfElseFlowNode2({ id, data, selected }) {
2739
2742
  ] }),
2740
2743
  /* @__PURE__ */ jsx(NodeCardDeleteAction, { nodeId: id, onDelete })
2741
2744
  ] }),
2742
- /* @__PURE__ */ jsx(NodeCardBranchLabel, { className: "pointer-events-none absolute -right-12 top-1/2 -translate-y-1/2 rounded-full bg-green-100 px-2 py-0.5 text-[10px] font-semibold text-green-700 shadow-sm dark:bg-green-500/20 dark:text-green-300", children: t("ifBranchLabel") }),
2743
- /* @__PURE__ */ jsx(NodeCardBranchLabel, { className: "pointer-events-none absolute bottom-[-1.9rem] left-1/2 -translate-x-1/2 rounded-full bg-red-100 px-2 py-0.5 text-[10px] font-semibold text-red-700 shadow-sm dark:bg-red-500/20 dark:text-red-300", children: t("elseBranchLabel") })
2745
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute -right-12 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsx(StatusBadge, { status: "success", label: t("ifBranchLabel"), size: "sm" }) }),
2746
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute bottom-[-1.9rem] left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsx(StatusBadge, { status: "error", label: t("elseBranchLabel"), size: "sm" }) })
2744
2747
  ]
2745
2748
  }
2746
2749
  ),
@@ -3500,8 +3503,8 @@ var DatasourceFlowNode = memo(function DatasourceFlowNode2({ id, data, selected
3500
3503
  ] }),
3501
3504
  /* @__PURE__ */ jsxs(NodeCardMeta, { compact: isCompact, children: [
3502
3505
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
3503
- config.dialect && /* @__PURE__ */ jsx(NodeCardBadge, { className: "inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-semibold bg-cyan-100 text-cyan-700 dark:bg-cyan-400/15 dark:text-cyan-400", children: config.dialect }),
3504
- readOnly && /* @__PURE__ */ jsx(NodeCardBadge, { className: "inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium bg-slate-100 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400", children: "sample" }),
3506
+ config.dialect && /* @__PURE__ */ jsx(Badge, { color: "cyan", size: "xs", children: config.dialect }),
3507
+ readOnly && /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", children: "sample" }),
3505
3508
  /* @__PURE__ */ jsx("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
3506
3509
  columnCount > 0 ? `${columnCount} cols` : null,
3507
3510
  filterCount > 0 ? `${filterCount} filters` : null,
@@ -8593,5 +8596,5 @@ function Workspace({
8593
8596
  }
8594
8597
 
8595
8598
  export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CATEGORY_COLORS, CATEGORY_PILL_COLORS, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EXPERIMENTAL_NODE_TYPES, 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, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeCardBadge, NodeCardDeleteAction, NodeCardHeader, NodeCardMeta, NodeContextMenu, NodeIconBubble, NodeInteractiveCard, NodeRunningIndicator, NoteFlowNode, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, QuestionClassifierFlowNode, RuleFlowNode, SelectionContextMenu, StartFlowNode, StrandsIcon, TemplateTransformFlowNode, ToolFlowNode, VariableAggregatorFlowNode, VariableAssignerFlowNode, WorkflowBuilderProvider, WorkflowCanvas, WorkflowHandle, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isFrameworkCompatibleWithProviders, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
8596
- //# sourceMappingURL=chunk-QTA5I6FC.mjs.map
8597
- //# sourceMappingURL=chunk-QTA5I6FC.mjs.map
8599
+ //# sourceMappingURL=chunk-KDFBN2L2.mjs.map
8600
+ //# sourceMappingURL=chunk-KDFBN2L2.mjs.map