@datatechsolutions/ui 2.11.70 → 2.11.71
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.
- package/dist/astrlabe/index.js +131 -131
- package/dist/astrlabe/index.mjs +3 -3
- package/dist/astrlabe/workflow-canvas.js +3 -3
- package/dist/astrlabe/workflow-canvas.mjs +2 -2
- package/dist/{chunk-V6HUE7UQ.js → chunk-KMJG6A4K.js} +64 -64
- package/dist/{chunk-V6HUE7UQ.js.map → chunk-KMJG6A4K.js.map} +1 -1
- package/dist/{chunk-QS5KM6OG.mjs → chunk-TMVBROBQ.mjs} +3 -3
- package/dist/{chunk-QS5KM6OG.mjs.map → chunk-TMVBROBQ.mjs.map} +1 -1
- package/dist/{chunk-EGXE4ZTC.mjs → chunk-ULNKKVDK.mjs} +31 -16
- package/dist/chunk-ULNKKVDK.mjs.map +1 -0
- package/dist/{chunk-ZNLDMYBS.js → chunk-UOKLJT2P.js} +31 -16
- package/dist/chunk-UOKLJT2P.js.map +1 -0
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +744 -744
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-EGXE4ZTC.mjs.map +0 -1
- package/dist/chunk-ZNLDMYBS.js.map +0 -1
|
@@ -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
|
-
|
|
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: [
|
|
@@ -17254,6 +17263,7 @@ function DepartmentAssistantDemo({
|
|
|
17254
17263
|
assistantComplete: assistantTyped.length === assistantMessage.length,
|
|
17255
17264
|
department: flow.name,
|
|
17256
17265
|
agents: flow.agents,
|
|
17266
|
+
agentAvatars: flow.agentAvatars,
|
|
17257
17267
|
avatarGradient: t.inputAvatar,
|
|
17258
17268
|
cursorClass: t.inputCursor
|
|
17259
17269
|
}
|
|
@@ -17277,7 +17287,8 @@ function DepartmentAssistantDemo({
|
|
|
17277
17287
|
hideHeader: true,
|
|
17278
17288
|
stepDurationMs: workflowStepMs,
|
|
17279
17289
|
onComplete: handleWorkflowComplete,
|
|
17280
|
-
theme: t.workflow
|
|
17290
|
+
theme: t.workflow,
|
|
17291
|
+
nodeAvatars: flow.nodeAvatars
|
|
17281
17292
|
},
|
|
17282
17293
|
`wf-${flow.id}`
|
|
17283
17294
|
)
|
|
@@ -17337,6 +17348,7 @@ function InputStage3({
|
|
|
17337
17348
|
assistantComplete,
|
|
17338
17349
|
department,
|
|
17339
17350
|
agents,
|
|
17351
|
+
agentAvatars,
|
|
17340
17352
|
avatarGradient,
|
|
17341
17353
|
cursorClass
|
|
17342
17354
|
}) {
|
|
@@ -17364,17 +17376,20 @@ function InputStage3({
|
|
|
17364
17376
|
assistantMessage,
|
|
17365
17377
|
!assistantComplete && cursor
|
|
17366
17378
|
] }),
|
|
17367
|
-
assistantComplete && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17374
|
-
|
|
17375
|
-
|
|
17376
|
-
|
|
17377
|
-
|
|
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
|
+
}) })
|
|
17378
17393
|
] }) })
|
|
17379
17394
|
] })
|
|
17380
17395
|
] }),
|
|
@@ -25388,5 +25403,5 @@ exports.usePullToRefresh = usePullToRefresh;
|
|
|
25388
25403
|
exports.validateDashboardSpec = validateDashboardSpec;
|
|
25389
25404
|
exports.xScale = xScale;
|
|
25390
25405
|
exports.yScale = yScale;
|
|
25391
|
-
//# sourceMappingURL=chunk-
|
|
25392
|
-
//# sourceMappingURL=chunk-
|
|
25406
|
+
//# sourceMappingURL=chunk-UOKLJT2P.js.map
|
|
25407
|
+
//# sourceMappingURL=chunk-UOKLJT2P.js.map
|