@datatechsolutions/ui 2.11.15 → 2.11.17

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
  'use strict';
3
3
 
4
- var chunkWB5CWGXD_js = require('../chunk-WB5CWGXD.js');
4
+ var chunkPNN6KWXQ_js = require('../chunk-PNN6KWXQ.js');
5
5
  require('../chunk-4XID6LOC.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 chunkWB5CWGXD_js.Workspace; }
16
+ get: function () { return chunkPNN6KWXQ_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-NTXIFTIQ.mjs';
2
+ export { Workspace } from '../chunk-57OBMWRA.mjs';
3
3
  import '../chunk-46ZM5VJJ.mjs';
4
4
  import '../chunk-QWG2FMUN.mjs';
5
5
  import '../chunk-D2JF6C3E.mjs';
@@ -338,7 +338,7 @@ var LOGIC_NODE_GRADIENTS = {
338
338
  note: "from-yellow-400 to-amber-500",
339
339
  entity: "from-blue-400 to-cyan-500",
340
340
  datasource: "from-cyan-500 to-blue-600",
341
- model_provider: "from-rose-500 to-pink-600",
341
+ model_provider: "from-slate-500 to-gray-600",
342
342
  group: "from-slate-400 to-gray-500"
343
343
  };
344
344
  var LOGIC_NODE_BADGE_COLORS = {
@@ -361,7 +361,7 @@ var LOGIC_NODE_BADGE_COLORS = {
361
361
  note: "bg-yellow-100 text-yellow-700 dark:bg-yellow-500/20 dark:text-yellow-300",
362
362
  entity: "bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300",
363
363
  datasource: "bg-cyan-100 text-cyan-700 dark:bg-cyan-500/20 dark:text-cyan-300",
364
- model_provider: "bg-rose-100 text-rose-700 dark:bg-rose-500/20 dark:text-rose-300",
364
+ model_provider: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300",
365
365
  group: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300"
366
366
  };
367
367
  var LOGIC_NODE_BADGE_SOFT_COLORS = {
@@ -384,7 +384,7 @@ var LOGIC_NODE_BADGE_SOFT_COLORS = {
384
384
  note: "bg-yellow-50 text-yellow-600 dark:bg-yellow-500/20 dark:text-yellow-400",
385
385
  entity: "bg-blue-50 text-blue-600 dark:bg-blue-500/20 dark:text-blue-400",
386
386
  datasource: "bg-cyan-50 text-cyan-600 dark:bg-cyan-500/20 dark:text-cyan-400",
387
- model_provider: "bg-rose-50 text-rose-600 dark:bg-rose-500/20 dark:text-rose-400",
387
+ model_provider: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400",
388
388
  group: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400"
389
389
  };
390
390
  var LOGIC_ICON_MAP = {
@@ -436,7 +436,7 @@ var NODE_BORDER_COLORS = {
436
436
  list_operator: "border-lime-300/50 dark:border-lime-600/50",
437
437
  note: "border-gray-200/50 dark:border-gray-700/50",
438
438
  datasource: "border-cyan-300/50 dark:border-cyan-600/50",
439
- model_provider: "border-rose-300/50 dark:border-rose-600/50"
439
+ model_provider: "border-slate-300/50 dark:border-slate-600/50"
440
440
  };
441
441
  function getNodeStateClass(selected, nodeType, customBorder) {
442
442
  if (selected) return NODE_SELECTED_CLASS;
@@ -467,7 +467,7 @@ var MINIMAP_NODE_COLORS = {
467
467
  note: "#eab308",
468
468
  entity: "#3b82f6",
469
469
  datasource: "#06b6d4",
470
- model_provider: "#f43f5e",
470
+ model_provider: "#64748b",
471
471
  group: "#64748b"
472
472
  };
473
473
  var LOGIC_NODE_HANDLE_COLORS = {
@@ -490,7 +490,7 @@ var LOGIC_NODE_HANDLE_COLORS = {
490
490
  note: "!bg-yellow-500",
491
491
  entity: "!bg-blue-500",
492
492
  datasource: "!bg-cyan-500",
493
- model_provider: "!bg-rose-500",
493
+ model_provider: "!bg-slate-500",
494
494
  group: "!bg-slate-500"
495
495
  };
496
496
  var INSERTABLE_NODES = [
@@ -2765,6 +2765,14 @@ var DatasourceFlowNode = memo(function DatasourceFlowNode2({ id, data, selected
2765
2765
  /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Right, id: "right-out", colorClass: "!bg-cyan-400" })
2766
2766
  ] });
2767
2767
  });
2768
+ var SI = (slug, color) => `https://cdn.simpleicons.org/${slug}/${color}`;
2769
+ var PROVIDER_LOGOS = {
2770
+ aws_bedrock: "https://www.svgrepo.com/show/448266/aws.svg",
2771
+ openai_api: "https://www.svgrepo.com/show/306500/openai.svg",
2772
+ google_vertex: SI("googlegemini", "8E75B2"),
2773
+ azure_openai: SI("microsoftazure", "0078D4"),
2774
+ anthropic_api: SI("anthropic", "D4A27F")
2775
+ };
2768
2776
  var PROVIDER_TYPE_LABELS = {
2769
2777
  aws_bedrock: "AWS Bedrock",
2770
2778
  openai_api: "OpenAI API",
@@ -2790,14 +2798,15 @@ var ModelProviderFlowNode = memo(function ModelProviderFlowNode2({ id, data, sel
2790
2798
  iconClassName: "flex h-11 w-11 items-center justify-center rounded-xl bg-gradient-to-br from-amber-400 to-orange-500 shadow-lg"
2791
2799
  }
2792
2800
  ) }),
2793
- /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Right, id: "right-out", colorClass: "!bg-rose-500" }),
2794
- /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Bottom, id: "bottom-out", colorClass: "!bg-rose-500" })
2801
+ /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Right, id: "right-out", colorClass: "!bg-slate-500" }),
2802
+ /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Bottom, id: "bottom-out", colorClass: "!bg-slate-500" })
2795
2803
  ] });
2796
2804
  }
2797
2805
  const providerLabel = PROVIDER_TYPE_LABELS[config.providerType] ?? config.providerType;
2798
2806
  const displayName = config.name || providerLabel;
2799
2807
  const regionLabel = config.region ? config.region : void 0;
2800
2808
  const isConfigured = !!(config.credentialRef || config.apiKeyRef);
2809
+ const logo = PROVIDER_LOGOS[config.providerType];
2801
2810
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2802
2811
  /* @__PURE__ */ jsx(NodeRunningIndicator, { nodeId: id }),
2803
2812
  /* @__PURE__ */ jsx(WorkflowHandle, { type: "target", position: Position.Left, id: "left-in", colorClass: "!bg-gray-400 dark:!bg-gray-500" }),
@@ -2812,14 +2821,14 @@ var ModelProviderFlowNode = memo(function ModelProviderFlowNode2({ id, data, sel
2812
2821
  /* @__PURE__ */ jsx(
2813
2822
  NodeCardHeader,
2814
2823
  {
2815
- icon: /* @__PURE__ */ jsx(KeyIcon, { className: "h-6 w-6 text-white" }),
2824
+ icon: logo ? /* @__PURE__ */ jsx("img", { src: logo, alt: providerLabel, className: "h-6 w-6 object-contain", loading: "lazy" }) : /* @__PURE__ */ jsx(KeyIcon, { className: "h-6 w-6 text-white" }),
2816
2825
  title: displayName,
2817
2826
  description: providerLabel,
2818
- iconClassName: "flex h-11 w-11 items-center justify-center rounded-xl bg-gradient-to-br from-rose-500 to-pink-600 shadow-lg"
2827
+ iconClassName: `flex h-11 w-11 items-center justify-center rounded-xl shadow-lg ${logo ? "bg-white/10 dark:bg-white/5 p-2" : "bg-gradient-to-br from-slate-600 to-slate-700 p-1.5"}`
2819
2828
  }
2820
2829
  ),
2821
2830
  /* @__PURE__ */ jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
2822
- /* @__PURE__ */ jsx(NodeCardBadge, { className: "rounded-full bg-rose-100 px-2 py-0.5 text-[10px] font-semibold text-rose-700 dark:bg-rose-500/20 dark:text-rose-300", children: providerLabel }),
2831
+ /* @__PURE__ */ jsx(NodeCardBadge, { className: "rounded-full bg-slate-100 px-2 py-0.5 text-[10px] font-semibold text-slate-700 dark:bg-slate-500/20 dark:text-slate-300", children: providerLabel }),
2823
2832
  regionLabel && /* @__PURE__ */ jsx(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: regionLabel }),
2824
2833
  /* @__PURE__ */ jsx(NodeCardBadge, { className: `rounded-full px-2 py-0.5 text-[10px] font-medium ${isConfigured ? "bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300" : "bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300"}`, children: isConfigured ? "Configured" : "Setup needed" }),
2825
2834
  config.modelFilter && config.modelFilter.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: [
@@ -2830,8 +2839,8 @@ var ModelProviderFlowNode = memo(function ModelProviderFlowNode2({ id, data, sel
2830
2839
  ] })
2831
2840
  }
2832
2841
  ),
2833
- /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Right, id: "right-out", colorClass: "!bg-rose-500" }),
2834
- /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Bottom, id: "bottom-out", colorClass: "!bg-rose-500" })
2842
+ /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Right, id: "right-out", colorClass: "!bg-slate-500" }),
2843
+ /* @__PURE__ */ jsx(WorkflowHandle, { type: "source", position: Position.Bottom, id: "bottom-out", colorClass: "!bg-slate-500" })
2835
2844
  ] });
2836
2845
  });
2837
2846
  var GROUP_COLORS = {
@@ -7306,5 +7315,5 @@ function Workspace({
7306
7315
  }
7307
7316
 
7308
7317
  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, 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 };
7309
- //# sourceMappingURL=chunk-NTXIFTIQ.mjs.map
7310
- //# sourceMappingURL=chunk-NTXIFTIQ.mjs.map
7318
+ //# sourceMappingURL=chunk-57OBMWRA.mjs.map
7319
+ //# sourceMappingURL=chunk-57OBMWRA.mjs.map