@datatechsolutions/ui 2.11.11 → 2.11.12

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,7 +1,7 @@
1
1
  "use client";
2
2
  import '../chunk-JB6RNAD2.mjs';
3
3
  export { topologicalSortAgents, validateWorkflowGraph } from '../chunk-BLNXRUC4.mjs';
4
- import { Workspace, useModalStore, CATEGORY_COLORS, CATEGORY_PILL_COLORS, ICON_MAP, WorkflowCanvas, getEntityIcon, useWorkflowStore, LOGIC_ICON_MAP, LOGIC_NODE_GRADIENTS, getFrameworkMeta, getCompatibleModels, isModelCompatibleWithFramework, FRAMEWORK_META, getEntityGradient } from '../chunk-VWKBMTTC.mjs';
4
+ import { Workspace, useModalStore, CATEGORY_COLORS, CATEGORY_PILL_COLORS, ICON_MAP, WorkflowCanvas, getEntityIcon, getEntityGradient, useWorkflowStore, LOGIC_ICON_MAP, LOGIC_NODE_GRADIENTS, getFrameworkMeta, getCompatibleModels, isModelCompatibleWithFramework, FRAMEWORK_META } from '../chunk-VWKBMTTC.mjs';
5
5
  export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, 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, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-VWKBMTTC.mjs';
6
6
  import { GlassModalShell, Button, FormInput, FormTextarea, GlassFormModal, Input, DynamicIslandConfirm } from '../chunk-46ZM5VJJ.mjs';
7
7
  import '../chunk-QWG2FMUN.mjs';
@@ -1073,30 +1073,31 @@ function PipelineSettingsModal({ onSave }) {
1073
1073
  }
1074
1074
  );
1075
1075
  }
1076
- var DATASOURCE_GRADIENTS = {
1077
- bigquery: "from-blue-500 to-indigo-600",
1078
- postgres: "from-sky-500 to-blue-600",
1079
- snowflake: "from-cyan-400 to-blue-500",
1080
- mongodb: "from-green-500 to-emerald-600",
1081
- redis: "from-red-500 to-rose-600",
1082
- mysql: "from-blue-600 to-indigo-700",
1083
- clickhouse: "from-amber-500 to-yellow-600",
1084
- elasticsearch: "from-teal-500 to-cyan-600",
1085
- duckdb: "from-yellow-500 to-amber-600"
1076
+ var SI = (slug, color) => `https://cdn.simpleicons.org/${slug}/${color}`;
1077
+ var DATASOURCE_LOGOS = {
1078
+ bigquery: "https://www.svgrepo.com/show/375546/bigquery.svg",
1079
+ postgres: "https://www.svgrepo.com/show/354200/postgresql.svg",
1080
+ snowflake: "https://www.svgrepo.com/show/354381/snowflake-icon.svg",
1081
+ mongodb: "https://www.svgrepo.com/show/373845/mongo.svg",
1082
+ redis: "https://www.svgrepo.com/show/354272/redis.svg",
1083
+ mysql: "https://www.svgrepo.com/show/373848/mysql.svg",
1084
+ clickhouse: SI("clickhouse", "FFCC01"),
1085
+ elasticsearch: "https://www.svgrepo.com/show/353735/elasticsearch.svg",
1086
+ duckdb: SI("duckdb", "FFF000")
1086
1087
  };
1087
- function getDatasourceGradient(entityId) {
1088
+ function getDatasourceLogo(entityId) {
1088
1089
  const lower = entityId.toLowerCase();
1089
- for (const [key, gradient] of Object.entries(DATASOURCE_GRADIENTS)) {
1090
- if (lower.includes(key)) return gradient;
1090
+ for (const [key, url] of Object.entries(DATASOURCE_LOGOS)) {
1091
+ if (lower.includes(key)) return url;
1091
1092
  }
1092
- return getEntityGradient(entityId);
1093
+ return null;
1093
1094
  }
1094
- var PROVIDER_GRADIENTS = {
1095
- anthropic: "from-amber-500 to-orange-600",
1096
- amazon: "from-orange-500 to-amber-600",
1097
- google: "from-blue-500 to-cyan-600",
1098
- openai: "from-emerald-500 to-teal-600",
1099
- meta: "from-blue-600 to-indigo-700"
1095
+ var PROVIDER_LOGOS = {
1096
+ anthropic: SI("anthropic", "D4A27F"),
1097
+ amazon: "https://www.svgrepo.com/show/448266/aws.svg",
1098
+ google: SI("googlegemini", "8E75B2"),
1099
+ openai: "https://www.svgrepo.com/show/306500/openai.svg",
1100
+ meta: SI("meta", "0668E1")
1100
1101
  };
1101
1102
  function onDragStart(event, nodeType, entityId, label, config) {
1102
1103
  event.dataTransfer.setData("nodeType", nodeType);
@@ -1438,8 +1439,9 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
1438
1439
  outputVariable: `${entity.label.replace(/\s+/g, "")}Data`,
1439
1440
  limit: entity.defaultLimit
1440
1441
  });
1442
+ const dsLogo = getDatasourceLogo(entity.id);
1441
1443
  const EntityIcon = getEntityIcon(entity.id);
1442
- const entityGradient = getDatasourceGradient(entity.id);
1444
+ const entityGradient = getEntityGradient(entity.id);
1443
1445
  return /* @__PURE__ */ jsxs(
1444
1446
  "div",
1445
1447
  {
@@ -1447,7 +1449,7 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
1447
1449
  onDragStart: (event) => onDragStart(event, "entity", entity.id, entity.label, defaultConfig),
1448
1450
  className: "liquid-surface group flex items-center gap-2 rounded-lg px-3 py-2 transition-all cursor-grab hover:shadow-md active:cursor-grabbing",
1449
1451
  children: [
1450
- /* @__PURE__ */ jsx("div", { className: `flex h-6 w-6 items-center justify-center rounded-md bg-gradient-to-br ${entityGradient} shadow-sm`, children: /* @__PURE__ */ jsx(EntityIcon, { className: "h-3.5 w-3.5 text-white" }) }),
1452
+ dsLogo ? /* @__PURE__ */ jsx("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-white/10 p-1", children: /* @__PURE__ */ jsx("img", { src: dsLogo, alt: "", className: "h-4 w-4 object-contain", loading: "lazy" }) }) : /* @__PURE__ */ jsx("div", { className: `flex h-6 w-6 items-center justify-center rounded-md bg-gradient-to-br ${entityGradient} shadow-sm`, children: /* @__PURE__ */ jsx(EntityIcon, { className: "h-3.5 w-3.5 text-white" }) }),
1451
1453
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
1452
1454
  /* @__PURE__ */ jsx("p", { className: "truncate text-xs font-medium text-gray-900 dark:text-white", children: entity.label }),
1453
1455
  /* @__PURE__ */ jsxs("p", { className: "truncate text-[10px] text-gray-400 dark:text-gray-500", children: [
@@ -1471,9 +1473,7 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
1471
1473
  colorClass: "text-rose-600 dark:text-rose-400",
1472
1474
  count: filteredProviders.length,
1473
1475
  children: filteredProviders.map((provider) => {
1474
- const providerIcon = getModelIcon(`${provider.provider}.placeholder`);
1475
- const ProviderIcon = providerIcon.IconComponent;
1476
- const providerGradient = PROVIDER_GRADIENTS[provider.provider] ?? "from-rose-400 to-pink-500";
1476
+ const providerLogo = PROVIDER_LOGOS[provider.provider];
1477
1477
  return /* @__PURE__ */ jsxs(
1478
1478
  "div",
1479
1479
  {
@@ -1482,7 +1482,7 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
1482
1482
  role: "button",
1483
1483
  tabIndex: 0,
1484
1484
  children: [
1485
- /* @__PURE__ */ jsx("div", { className: `flex h-6 w-6 items-center justify-center rounded-md bg-gradient-to-br ${providerGradient} shadow-sm`, children: /* @__PURE__ */ jsx(ProviderIcon, { className: "h-3.5 w-3.5 text-white" }) }),
1485
+ providerLogo ? /* @__PURE__ */ jsx("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-white/10 p-1", children: /* @__PURE__ */ jsx("img", { src: providerLogo, alt: "", className: "h-4 w-4 object-contain", loading: "lazy" }) }) : /* @__PURE__ */ jsx("div", { className: "flex h-6 w-6 items-center justify-center rounded-md bg-gradient-to-br from-rose-400 to-pink-500 shadow-sm", children: /* @__PURE__ */ jsx(KeyIcon, { className: "h-3.5 w-3.5 text-white" }) }),
1486
1486
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
1487
1487
  /* @__PURE__ */ jsx("p", { className: "truncate text-xs font-medium text-gray-900 dark:text-white", children: provider.name }),
1488
1488
  /* @__PURE__ */ jsxs("p", { className: "truncate text-[10px] text-gray-400 dark:text-gray-500", children: [