@datatechsolutions/ui 2.11.71 → 2.11.73

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,13 +1,13 @@
1
1
  "use client";
2
- 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, isFrameworkCompatibleWithProviders } from '../chunk-TMVBROBQ.mjs';
3
- 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, ModelProviderFlowNode, NODE_EXECUTION_ACCENT_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, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-TMVBROBQ.mjs';
4
- import { GlassModal, Button, FormInput, FormTextarea, ToggleSwitch, Input, DynamicIslandConfirm } from '../chunk-ULNKKVDK.mjs';
5
- import '../chunk-D2JF6C3E.mjs';
2
+ import '../chunk-JB6RNAD2.mjs';
3
+ export { topologicalSortAgents, validateGraphNodeConfigs, validateNodeConfig, validateWorkflowGraph } from '../chunk-53SRKVKQ.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, isFrameworkCompatibleWithProviders } from '../chunk-TP7H2NQN.mjs';
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, ModelProviderFlowNode, NODE_EXECUTION_ACCENT_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, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-TP7H2NQN.mjs';
6
+ import { GlassModal, Button, FormInput, FormTextarea, ToggleSwitch, Input, DynamicIslandConfirm } from '../chunk-Z47UM6TC.mjs';
6
7
  import { useTranslations } from '../chunk-7VJ7CMMT.mjs';
7
8
  import '../chunk-QWG2FMUN.mjs';
8
- import '../chunk-JB6RNAD2.mjs';
9
+ import '../chunk-D2JF6C3E.mjs';
9
10
  export { GraphNodeBadge, GraphNodeHeader, GraphNodeIconBubble, GraphNodeMeta } from '../chunk-OZNTQROP.mjs';
10
- export { topologicalSortAgents, validateGraphNodeConfigs, validateNodeConfig, validateWorkflowGraph } from '../chunk-53SRKVKQ.mjs';
11
11
  import { getAgentTier, createDefaultLogicNodeConfig } from '../chunk-WNCPAWLC.mjs';
12
12
  export { applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier } from '../chunk-WNCPAWLC.mjs';
13
13
  import { memo, useCallback, useState, useEffect, useMemo, useRef, Children } from 'react';
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkKMJG6A4K_js = require('../chunk-KMJG6A4K.js');
5
- require('../chunk-UOKLJT2P.js');
6
- require('../chunk-UZ3CMNUJ.js');
4
+ var chunkQ5W4CGXP_js = require('../chunk-Q5W4CGXP.js');
5
+ require('../chunk-EBVEKRQB.js');
7
6
  require('../chunk-YXN2K77G.js');
8
7
  require('../chunk-S7KHTUHA.js');
8
+ require('../chunk-UZ3CMNUJ.js');
9
9
  require('../chunk-P4YYEM4B.js');
10
10
  require('../chunk-C7BI5LQ6.js');
11
11
 
@@ -13,7 +13,7 @@ require('../chunk-C7BI5LQ6.js');
13
13
 
14
14
  Object.defineProperty(exports, "Workspace", {
15
15
  enumerable: true,
16
- get: function () { return chunkKMJG6A4K_js.Workspace; }
16
+ get: function () { return chunkQ5W4CGXP_js.Workspace; }
17
17
  });
18
18
  //# sourceMappingURL=workflow-canvas.js.map
19
19
  //# sourceMappingURL=workflow-canvas.js.map
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- export { Workspace } from '../chunk-TMVBROBQ.mjs';
3
- import '../chunk-ULNKKVDK.mjs';
4
- import '../chunk-D2JF6C3E.mjs';
2
+ export { Workspace } from '../chunk-TP7H2NQN.mjs';
3
+ import '../chunk-Z47UM6TC.mjs';
5
4
  import '../chunk-7VJ7CMMT.mjs';
6
5
  import '../chunk-QWG2FMUN.mjs';
6
+ import '../chunk-D2JF6C3E.mjs';
7
7
  import '../chunk-OZNTQROP.mjs';
8
8
  import '../chunk-WNCPAWLC.mjs';
9
9
  //# sourceMappingURL=workflow-canvas.mjs.map
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
5
4
  var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
6
5
  var chunkS7KHTUHA_js = require('./chunk-S7KHTUHA.js');
6
+ var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
7
7
  var Headless6 = require('@headlessui/react');
8
8
  var clsx = require('clsx');
9
9
  var React12 = require('react');
@@ -16595,33 +16595,33 @@ function DepartmentWorkflowDemo({
16595
16595
  )
16596
16596
  ] })
16597
16597
  ] }),
16598
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full items-center overflow-x-auto px-6 py-8", children: [
16598
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full items-center overflow-x-auto px-4 py-6", children: [
16599
16599
  /* @__PURE__ */ jsxRuntime.jsx("style", { children: `
16600
16600
  @keyframes deptGlow { 0%, 100% { box-shadow: 0 0 12px var(--glow); } 50% { box-shadow: 0 0 28px var(--glow); } }
16601
16601
  @keyframes deptEdge { to { stroke-dashoffset: -16; } }
16602
16602
  ` }),
16603
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-stretch gap-0 min-w-full justify-center", children: columns.map((col, colIdx) => {
16603
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto flex items-stretch gap-0", children: columns.map((col, colIdx) => {
16604
16604
  const isStepActive = stepIndex === col.stepIndex;
16605
16605
  const isStepDone = stepIndex > col.stepIndex;
16606
16606
  const showsConnector = colIdx > 0;
16607
16607
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-stretch", children: [
16608
- showsConnector && /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "36", height: "100", className: "self-center shrink-0", viewBox: "0 0 36 100", children: [
16608
+ showsConnector && /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "100", className: "self-center shrink-0", viewBox: "0 0 24 100", children: [
16609
16609
  /* @__PURE__ */ jsxRuntime.jsx(
16610
16610
  "line",
16611
16611
  {
16612
16612
  x1: "0",
16613
16613
  y1: "50",
16614
- x2: "36",
16614
+ x2: "24",
16615
16615
  y2: "50",
16616
16616
  stroke: isStepDone ? t.completeEdgeStroke : isStepActive ? t.activeEdgeStroke : "#334155",
16617
16617
  strokeWidth: "2",
16618
- strokeDasharray: "6 4",
16618
+ strokeDasharray: "5 3",
16619
16619
  style: { animation: isStepActive ? "deptEdge 0.8s linear infinite" : "none" }
16620
16620
  }
16621
16621
  ),
16622
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "34", cy: "50", r: "3", fill: isStepDone ? t.completeEdgeStroke : isStepActive ? t.activeEdgeStroke : "#334155" })
16622
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "22", cy: "50", r: "2.5", fill: isStepDone ? t.completeEdgeStroke : isStepActive ? t.activeEdgeStroke : "#334155" })
16623
16623
  ] }),
16624
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-[160px] flex-col gap-2 shrink-0", children: [
16624
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-[148px] flex-col gap-2 shrink-0", children: [
16625
16625
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[8px] font-bold uppercase tracking-wider text-gray-400 dark:text-gray-500 text-center", children: [
16626
16626
  "Step ",
16627
16627
  col.stepIndex + 1
@@ -17262,6 +17262,8 @@ function DepartmentAssistantDemo({
17262
17262
  phase: inputPhase,
17263
17263
  assistantComplete: assistantTyped.length === assistantMessage.length,
17264
17264
  department: flow.name,
17265
+ assistantAvatar: flow.assistantAvatar,
17266
+ assistantName: flow.assistantName,
17265
17267
  agents: flow.agents,
17266
17268
  agentAvatars: flow.agentAvatars,
17267
17269
  avatarGradient: t.inputAvatar,
@@ -17347,6 +17349,8 @@ function InputStage3({
17347
17349
  phase,
17348
17350
  assistantComplete,
17349
17351
  department,
17352
+ assistantAvatar,
17353
+ assistantName,
17350
17354
  agents,
17351
17355
  agentAvatars,
17352
17356
  avatarGradient,
@@ -17354,10 +17358,13 @@ function InputStage3({
17354
17358
  }) {
17355
17359
  const cursor = /* @__PURE__ */ jsxRuntime.jsx("span", { className: `ml-0.5 inline-block w-[2px] h-4 align-middle ${cursorClass} animate-pulse` });
17356
17360
  const showAssistant = phase === "assistant";
17361
+ const personaName = assistantName ?? department;
17357
17362
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col px-4 py-6 sm:px-8", children: [
17358
17363
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-5 flex items-center justify-center gap-2 text-[10px] font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500", children: [
17359
17364
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "h-1 w-1 rounded-full bg-emerald-500 animate-pulse" }),
17360
17365
  "Conversa \u2014 ",
17366
+ personaName,
17367
+ " \xB7 ",
17361
17368
  department
17362
17369
  ] }),
17363
17370
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto flex w-full max-w-3xl flex-1 flex-col justify-end gap-4 overflow-hidden", children: [
@@ -17366,31 +17373,41 @@ function InputStage3({
17366
17373
  phase === "user" && cursor
17367
17374
  ] }) }) }),
17368
17375
  showAssistant && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end gap-2.5", children: [
17369
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-gradient-to-br ${avatarGradient} shadow-md`, children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.SparklesIcon, { className: "h-5 w-5 text-white" }) }),
17370
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liquid-surface max-w-[88%] rounded-2xl rounded-bl-md px-5 py-3.5", children: assistantMessage.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1 py-1", children: [
17371
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse` }),
17372
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse`, style: { animationDelay: "150ms" } }),
17373
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse`, style: { animationDelay: "300ms" } })
17374
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17375
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base leading-relaxed text-gray-900 dark:text-white", children: [
17376
- assistantMessage,
17377
- !assistantComplete && cursor
17378
- ] }),
17379
- assistantComplete && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 flex flex-wrap gap-2", children: agents.map((agent) => {
17380
- const avatar = agentAvatars?.[agent];
17381
- return /* @__PURE__ */ jsxRuntime.jsxs(
17382
- "span",
17383
- {
17384
- className: "inline-flex items-center gap-1.5 rounded-full bg-white/40 dark:bg-white/[0.08] py-0.5 pl-0.5 pr-3 text-[11px] font-semibold text-gray-700 dark:text-gray-200 shadow-sm",
17385
- children: [
17386
- avatar ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: avatar, alt: "", className: "h-6 w-6 rounded-full bg-white/40 dark:bg-white/[0.06]" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: `flex h-6 w-6 items-center justify-center rounded-full bg-gradient-to-br ${avatarGradient}`, children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.BoltIcon, { className: "h-3 w-3 text-white" }) }),
17387
- agent
17388
- ]
17389
- },
17390
- agent
17391
- );
17392
- }) })
17393
- ] }) })
17376
+ assistantAvatar ? /* @__PURE__ */ jsxRuntime.jsx(
17377
+ "img",
17378
+ {
17379
+ src: assistantAvatar,
17380
+ alt: personaName,
17381
+ className: `h-11 w-11 shrink-0 rounded-2xl bg-white/40 dark:bg-white/[0.06] ring-2 ring-white/30 dark:ring-white/10 shadow-md`
17382
+ }
17383
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl bg-gradient-to-br ${avatarGradient} shadow-md`, children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.SparklesIcon, { className: "h-5 w-5 text-white" }) }),
17384
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "liquid-surface max-w-[88%] rounded-2xl rounded-bl-md px-5 py-3.5", children: [
17385
+ assistantMessage.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1 text-[10px] font-bold uppercase tracking-wider text-gray-500 dark:text-gray-400", children: personaName }),
17386
+ assistantMessage.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1 py-1", children: [
17387
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse` }),
17388
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse`, style: { animationDelay: "150ms" } }),
17389
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse`, style: { animationDelay: "300ms" } })
17390
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17391
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base leading-relaxed text-gray-900 dark:text-white", children: [
17392
+ assistantMessage,
17393
+ !assistantComplete && cursor
17394
+ ] }),
17395
+ assistantComplete && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 flex flex-wrap gap-2", children: agents.map((agent) => {
17396
+ const avatar = agentAvatars?.[agent];
17397
+ return /* @__PURE__ */ jsxRuntime.jsxs(
17398
+ "span",
17399
+ {
17400
+ className: "inline-flex items-center gap-1.5 rounded-full bg-white/40 dark:bg-white/[0.08] py-0.5 pl-0.5 pr-3 text-[11px] font-semibold text-gray-700 dark:text-gray-200 shadow-sm",
17401
+ children: [
17402
+ avatar ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: avatar, alt: "", className: "h-6 w-6 rounded-full bg-white/40 dark:bg-white/[0.06]" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: `flex h-6 w-6 items-center justify-center rounded-full bg-gradient-to-br ${avatarGradient}`, children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.BoltIcon, { className: "h-3 w-3 text-white" }) }),
17403
+ agent
17404
+ ]
17405
+ },
17406
+ agent
17407
+ );
17408
+ }) })
17409
+ ] })
17410
+ ] })
17394
17411
  ] })
17395
17412
  ] }),
17396
17413
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto mt-5 w-full max-w-3xl", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "liquid-surface flex items-center gap-3 rounded-full px-4 py-2.5 opacity-60", children: [
@@ -25403,5 +25420,5 @@ exports.usePullToRefresh = usePullToRefresh;
25403
25420
  exports.validateDashboardSpec = validateDashboardSpec;
25404
25421
  exports.xScale = xScale;
25405
25422
  exports.yScale = yScale;
25406
- //# sourceMappingURL=chunk-UOKLJT2P.js.map
25407
- //# sourceMappingURL=chunk-UOKLJT2P.js.map
25423
+ //# sourceMappingURL=chunk-EBVEKRQB.js.map
25424
+ //# sourceMappingURL=chunk-EBVEKRQB.js.map