@datatechsolutions/ui 2.11.70 → 2.11.72

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
- 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-QS5KM6OG.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-QS5KM6OG.mjs';
4
- import { GlassModal, Button, FormInput, FormTextarea, ToggleSwitch, Input, DynamicIslandConfirm } from '../chunk-EGXE4ZTC.mjs';
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-S4GL2WCD.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-S4GL2WCD.mjs';
4
+ import { GlassModal, Button, FormInput, FormTextarea, ToggleSwitch, Input, DynamicIslandConfirm } from '../chunk-VT5YXFTT.mjs';
5
5
  import '../chunk-D2JF6C3E.mjs';
6
6
  import { useTranslations } from '../chunk-7VJ7CMMT.mjs';
7
7
  import '../chunk-QWG2FMUN.mjs';
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkV6HUE7UQ_js = require('../chunk-V6HUE7UQ.js');
5
- require('../chunk-ZNLDMYBS.js');
4
+ var chunkOPOEEZRR_js = require('../chunk-OPOEEZRR.js');
5
+ require('../chunk-6TL7IE36.js');
6
6
  require('../chunk-UZ3CMNUJ.js');
7
7
  require('../chunk-YXN2K77G.js');
8
8
  require('../chunk-S7KHTUHA.js');
@@ -13,7 +13,7 @@ require('../chunk-C7BI5LQ6.js');
13
13
 
14
14
  Object.defineProperty(exports, "Workspace", {
15
15
  enumerable: true,
16
- get: function () { return chunkV6HUE7UQ_js.Workspace; }
16
+ get: function () { return chunkOPOEEZRR_js.Workspace; }
17
17
  });
18
18
  //# sourceMappingURL=workflow-canvas.js.map
19
19
  //# sourceMappingURL=workflow-canvas.js.map
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- export { Workspace } from '../chunk-QS5KM6OG.mjs';
3
- import '../chunk-EGXE4ZTC.mjs';
2
+ export { Workspace } from '../chunk-S4GL2WCD.mjs';
3
+ import '../chunk-VT5YXFTT.mjs';
4
4
  import '../chunk-D2JF6C3E.mjs';
5
5
  import '../chunk-7VJ7CMMT.mjs';
6
6
  import '../chunk-QWG2FMUN.mjs';
@@ -16463,7 +16463,8 @@ function DepartmentWorkflowDemo({
16463
16463
  className,
16464
16464
  hideHeader = false,
16465
16465
  onComplete,
16466
- theme
16466
+ theme,
16467
+ nodeAvatars
16467
16468
  }) {
16468
16469
  const t = { ...DEFAULT_THEME, ...theme };
16469
16470
  const { graph, steps, title, description, accentBadge, completionSummary } = workflow;
@@ -16628,6 +16629,7 @@ function DepartmentWorkflowDemo({
16628
16629
  col.nodes.map((node2) => {
16629
16630
  const status = getStatus(node2);
16630
16631
  const meta = getNodeMeta(node2.type);
16632
+ const avatar = nodeAvatars?.[node2.id];
16631
16633
  const statusClass = status === "running" ? `scale-[1.04] ring-2 ${t.activeRing}` : status === "complete" ? "ring-1 ring-emerald-500/40" : "opacity-50";
16632
16634
  return /* @__PURE__ */ jsxRuntime.jsx(
16633
16635
  "div",
@@ -16635,7 +16637,14 @@ function DepartmentWorkflowDemo({
16635
16637
  className: `liquid-surface rounded-xl p-2.5 transition-all duration-500 ${statusClass}`,
16636
16638
  style: status === "running" ? { "--glow": meta.glow, animation: "deptGlow 1.4s ease-in-out infinite" } : void 0,
16637
16639
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
16638
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-8 w-8 shrink-0 items-center justify-center rounded-lg ${meta.bg}`, children: /* @__PURE__ */ jsxRuntime.jsx(meta.icon, { className: `h-4 w-4 ${meta.color}` }) }),
16640
+ avatar ? /* @__PURE__ */ jsxRuntime.jsx(
16641
+ "img",
16642
+ {
16643
+ src: avatar,
16644
+ alt: "",
16645
+ className: `h-10 w-10 shrink-0 rounded-xl bg-white/40 dark:bg-white/[0.06] ${status === "running" ? "ring-2 ring-white/40" : ""}`
16646
+ }
16647
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-9 w-9 shrink-0 items-center justify-center rounded-xl ${meta.bg}`, children: /* @__PURE__ */ jsxRuntime.jsx(meta.icon, { className: `h-5 w-5 ${meta.color}` }) }),
16639
16648
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
16640
16649
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate text-[11px] font-semibold text-gray-900 dark:text-white", children: node2.data.label }),
16641
16650
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1 text-[8px] text-gray-500 dark:text-gray-500", children: [
@@ -17253,7 +17262,10 @@ function DepartmentAssistantDemo({
17253
17262
  phase: inputPhase,
17254
17263
  assistantComplete: assistantTyped.length === assistantMessage.length,
17255
17264
  department: flow.name,
17265
+ assistantAvatar: flow.assistantAvatar,
17266
+ assistantName: flow.assistantName,
17256
17267
  agents: flow.agents,
17268
+ agentAvatars: flow.agentAvatars,
17257
17269
  avatarGradient: t.inputAvatar,
17258
17270
  cursorClass: t.inputCursor
17259
17271
  }
@@ -17277,7 +17289,8 @@ function DepartmentAssistantDemo({
17277
17289
  hideHeader: true,
17278
17290
  stepDurationMs: workflowStepMs,
17279
17291
  onComplete: handleWorkflowComplete,
17280
- theme: t.workflow
17292
+ theme: t.workflow,
17293
+ nodeAvatars: flow.nodeAvatars
17281
17294
  },
17282
17295
  `wf-${flow.id}`
17283
17296
  )
@@ -17336,16 +17349,22 @@ function InputStage3({
17336
17349
  phase,
17337
17350
  assistantComplete,
17338
17351
  department,
17352
+ assistantAvatar,
17353
+ assistantName,
17339
17354
  agents,
17355
+ agentAvatars,
17340
17356
  avatarGradient,
17341
17357
  cursorClass
17342
17358
  }) {
17343
17359
  const cursor = /* @__PURE__ */ jsxRuntime.jsx("span", { className: `ml-0.5 inline-block w-[2px] h-4 align-middle ${cursorClass} animate-pulse` });
17344
17360
  const showAssistant = phase === "assistant";
17361
+ const personaName = assistantName ?? department;
17345
17362
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col px-4 py-6 sm:px-8", children: [
17346
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: [
17347
17364
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "h-1 w-1 rounded-full bg-emerald-500 animate-pulse" }),
17348
17365
  "Conversa \u2014 ",
17366
+ personaName,
17367
+ " \xB7 ",
17349
17368
  department
17350
17369
  ] }),
17351
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: [
@@ -17354,28 +17373,41 @@ function InputStage3({
17354
17373
  phase === "user" && cursor
17355
17374
  ] }) }) }),
17356
17375
  showAssistant && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end gap-2.5", children: [
17357
- /* @__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" }) }),
17358
- /* @__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: [
17359
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse` }),
17360
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse`, style: { animationDelay: "150ms" } }),
17361
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `h-1.5 w-1.5 rounded-full ${cursorClass} animate-pulse`, style: { animationDelay: "300ms" } })
17362
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17363
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base leading-relaxed text-gray-900 dark:text-white", children: [
17364
- assistantMessage,
17365
- !assistantComplete && cursor
17366
- ] }),
17367
- assistantComplete && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2.5 flex flex-wrap gap-1.5", children: agents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
17368
- "span",
17369
- {
17370
- className: "inline-flex items-center rounded-full bg-white/40 dark:bg-white/[0.08] px-2.5 py-0.5 text-[10px] font-semibold text-gray-700 dark:text-gray-200",
17371
- children: [
17372
- /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.BoltIcon, { className: `mr-1 h-2.5 w-2.5 ${cursorClass.replace("bg-", "text-")}` }),
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
+ },
17373
17406
  agent
17374
- ]
17375
- },
17376
- agent
17377
- )) })
17378
- ] }) })
17407
+ );
17408
+ }) })
17409
+ ] })
17410
+ ] })
17379
17411
  ] })
17380
17412
  ] }),
17381
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: [
@@ -25388,5 +25420,5 @@ exports.usePullToRefresh = usePullToRefresh;
25388
25420
  exports.validateDashboardSpec = validateDashboardSpec;
25389
25421
  exports.xScale = xScale;
25390
25422
  exports.yScale = yScale;
25391
- //# sourceMappingURL=chunk-ZNLDMYBS.js.map
25392
- //# sourceMappingURL=chunk-ZNLDMYBS.js.map
25423
+ //# sourceMappingURL=chunk-6TL7IE36.js.map
25424
+ //# sourceMappingURL=chunk-6TL7IE36.js.map