@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.
- 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-ZNLDMYBS.js → chunk-6TL7IE36.js} +58 -26
- package/dist/chunk-6TL7IE36.js.map +1 -0
- package/dist/{chunk-V6HUE7UQ.js → chunk-OPOEEZRR.js} +64 -64
- package/dist/{chunk-V6HUE7UQ.js.map → chunk-OPOEEZRR.js.map} +1 -1
- package/dist/{chunk-QS5KM6OG.mjs → chunk-S4GL2WCD.mjs} +3 -3
- package/dist/{chunk-QS5KM6OG.mjs.map → chunk-S4GL2WCD.mjs.map} +1 -1
- package/dist/{chunk-EGXE4ZTC.mjs → chunk-VT5YXFTT.mjs} +58 -26
- package/dist/chunk-VT5YXFTT.mjs.map +1 -0
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -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
package/dist/astrlabe/index.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
4
|
-
import { GlassModal, Button, FormInput, FormTextarea, ToggleSwitch, Input, DynamicIslandConfirm } from '../chunk-
|
|
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
|
|
5
|
-
require('../chunk-
|
|
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
|
|
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-
|
|
3
|
-
import '../chunk-
|
|
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
|
-
|
|
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
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17364
|
-
|
|
17365
|
-
|
|
17366
|
-
] }),
|
|
17367
|
-
|
|
17368
|
-
"span",
|
|
17369
|
-
{
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
|
|
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
|
-
|
|
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-
|
|
25392
|
-
//# sourceMappingURL=chunk-
|
|
25423
|
+
//# sourceMappingURL=chunk-6TL7IE36.js.map
|
|
25424
|
+
//# sourceMappingURL=chunk-6TL7IE36.js.map
|