@datatechsolutions/ui 2.11.32 → 2.11.33
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.d.mts +9 -0
- package/dist/astrlabe/index.d.ts +9 -0
- package/dist/astrlabe/index.js +133 -133
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-QNR3NADH.mjs → chunk-2JS5B55J.mjs} +3 -3
- package/dist/{chunk-QNR3NADH.mjs.map → chunk-2JS5B55J.mjs.map} +1 -1
- package/dist/{chunk-YNZAYMGD.mjs → chunk-3NXUTBDV.mjs} +67 -14
- package/dist/chunk-3NXUTBDV.mjs.map +1 -0
- package/dist/{chunk-7O3FQ2PW.js → chunk-HSUB5MTJ.js} +111 -58
- package/dist/chunk-HSUB5MTJ.js.map +1 -0
- package/dist/{chunk-3N76EFJM.js → chunk-LH2JDCO3.js} +3 -3
- package/dist/{chunk-3N76EFJM.js.map → chunk-LH2JDCO3.js.map} +1 -1
- package/dist/index.js +730 -730
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-7O3FQ2PW.js.map +0 -1
- package/dist/chunk-YNZAYMGD.mjs.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-
|
|
3
|
-
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
2
|
+
import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-2JS5B55J.mjs';
|
|
4
3
|
import { GraphNodeHeader, GraphNodeMeta, GraphNodeBadge, GraphNodeIconBubble } from './chunk-OZNTQROP.mjs';
|
|
5
4
|
import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-TLPPVL3W.mjs';
|
|
5
|
+
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
6
6
|
import { memo, useState, useRef, useCallback, useEffect, lazy, createContext, useMemo, useContext } from 'react';
|
|
7
7
|
import { Position, NodeResizer, MarkerType, useReactFlow, getBezierPath, BaseEdge, EdgeLabelRenderer, Handle, ReactFlowProvider, useNodesState, useEdgesState, addEdge, BackgroundVariant } from '@xyflow/react';
|
|
8
8
|
import '@xyflow/react/dist/style.css';
|
|
9
9
|
import { create } from 'zustand';
|
|
10
10
|
import { PlusIcon, XMarkIcon } from '@heroicons/react/24/solid';
|
|
11
|
-
import { Bars2Icon, CursorArrowRaysIcon, HandRaisedIcon, MagnifyingGlassPlusIcon, MagnifyingGlassMinusIcon, ArrowsPointingInIcon, ArrowUturnLeftIcon, ArrowUturnRightIcon, MapIcon, Squares2X2Icon, ArrowsRightLeftIcon, CommandLineIcon, ExclamationTriangleIcon, CpuChipIcon, TrashIcon, WrenchScrewdriverIcon, NewspaperIcon, ChartBarIcon, CloudIcon, ScaleIcon, AdjustmentsHorizontalIcon, CircleStackIcon, PlayIcon, StopIcon, ArrowsPointingOutIcon, CodeBracketIcon, GlobeAltIcon, DocumentTextIcon, ArrowPathIcon, BookOpenIcon, ChatBubbleLeftRightIcon, QuestionMarkCircleIcon, AdjustmentsVerticalIcon, Square3Stack3DIcon, DocumentMagnifyingGlassIcon, ListBulletIcon, PlayCircleIcon, PencilSquareIcon, ServerStackIcon, KeyIcon, RectangleGroupIcon, ChevronDownIcon, ChevronUpIcon, PresentationChartBarIcon, ChartPieIcon, ChartBarSquareIcon, CurrencyDollarIcon, ShieldCheckIcon, ClipboardDocumentCheckIcon, FireIcon, ShoppingBagIcon, UsersIcon, BuildingStorefrontIcon, PencilIcon, DocumentDuplicateIcon, ClipboardDocumentIcon, ClipboardIcon, PlusIcon as PlusIcon$1, XMarkIcon as XMarkIcon$1 } from '@heroicons/react/24/outline';
|
|
11
|
+
import { Bars2Icon, CursorArrowRaysIcon, HandRaisedIcon, MagnifyingGlassPlusIcon, MagnifyingGlassMinusIcon, ArrowsPointingInIcon, ArrowUturnLeftIcon, ArrowUturnRightIcon, MapIcon, EllipsisHorizontalIcon, Squares2X2Icon, ArrowsRightLeftIcon, CommandLineIcon, ExclamationTriangleIcon, CpuChipIcon, TrashIcon, WrenchScrewdriverIcon, NewspaperIcon, ChartBarIcon, CloudIcon, ScaleIcon, AdjustmentsHorizontalIcon, CircleStackIcon, PlayIcon, StopIcon, ArrowsPointingOutIcon, CodeBracketIcon, GlobeAltIcon, DocumentTextIcon, ArrowPathIcon, BookOpenIcon, ChatBubbleLeftRightIcon, QuestionMarkCircleIcon, AdjustmentsVerticalIcon, Square3Stack3DIcon, DocumentMagnifyingGlassIcon, ListBulletIcon, PlayCircleIcon, PencilSquareIcon, ServerStackIcon, KeyIcon, RectangleGroupIcon, ChevronDownIcon, ChevronUpIcon, PresentationChartBarIcon, ChartPieIcon, ChartBarSquareIcon, CurrencyDollarIcon, ShieldCheckIcon, ClipboardDocumentCheckIcon, FireIcon, ShoppingBagIcon, UsersIcon, BuildingStorefrontIcon, PencilIcon, DocumentDuplicateIcon, ClipboardDocumentIcon, ClipboardIcon, PlusIcon as PlusIcon$1, XMarkIcon as XMarkIcon$1 } from '@heroicons/react/24/outline';
|
|
12
12
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
var DEFAULT_PASTE_OFFSET = 40;
|
|
@@ -28,6 +28,10 @@ var useWorkflowStore = create((set, get) => ({
|
|
|
28
28
|
showVariableInspector: false,
|
|
29
29
|
showVersionHistory: false,
|
|
30
30
|
showRunPanel: false,
|
|
31
|
+
showMinimap: true,
|
|
32
|
+
showDots: true,
|
|
33
|
+
showShortcuts: false,
|
|
34
|
+
cardDisplayMode: "detailed",
|
|
31
35
|
isRunning: false,
|
|
32
36
|
nodeResults: {},
|
|
33
37
|
selectedRunId: null,
|
|
@@ -171,6 +175,21 @@ var useWorkflowStore = create((set, get) => ({
|
|
|
171
175
|
toggleRunPanel: () => {
|
|
172
176
|
set((state) => ({ showRunPanel: !state.showRunPanel }));
|
|
173
177
|
},
|
|
178
|
+
toggleMinimap: () => {
|
|
179
|
+
set((state) => ({ showMinimap: !state.showMinimap }));
|
|
180
|
+
},
|
|
181
|
+
toggleDots: () => {
|
|
182
|
+
set((state) => ({ showDots: !state.showDots }));
|
|
183
|
+
},
|
|
184
|
+
toggleShortcuts: () => {
|
|
185
|
+
set((state) => ({ showShortcuts: !state.showShortcuts }));
|
|
186
|
+
},
|
|
187
|
+
closeShortcuts: () => {
|
|
188
|
+
set({ showShortcuts: false });
|
|
189
|
+
},
|
|
190
|
+
toggleCardDisplayMode: () => {
|
|
191
|
+
set((state) => ({ cardDisplayMode: state.cardDisplayMode === "detailed" ? "compact" : "detailed" }));
|
|
192
|
+
},
|
|
174
193
|
setIsRunning: (running) => {
|
|
175
194
|
set({ isRunning: running });
|
|
176
195
|
},
|
|
@@ -201,6 +220,10 @@ var useWorkflowStore = create((set, get) => ({
|
|
|
201
220
|
showVariableInspector: false,
|
|
202
221
|
showVersionHistory: false,
|
|
203
222
|
showRunPanel: false,
|
|
223
|
+
showMinimap: true,
|
|
224
|
+
showDots: true,
|
|
225
|
+
showShortcuts: false,
|
|
226
|
+
cardDisplayMode: "detailed",
|
|
204
227
|
isRunning: false,
|
|
205
228
|
nodeResults: {},
|
|
206
229
|
selectedRunId: null,
|
|
@@ -793,6 +816,8 @@ var DraggableCommandBar = memo(function DraggableCommandBar2({
|
|
|
793
816
|
onControlModeChange,
|
|
794
817
|
showMinimap,
|
|
795
818
|
onToggleMinimap,
|
|
819
|
+
showDots,
|
|
820
|
+
onToggleDots,
|
|
796
821
|
cardDisplayMode,
|
|
797
822
|
onToggleCardDisplayMode,
|
|
798
823
|
layoutDirection,
|
|
@@ -916,6 +941,16 @@ var DraggableCommandBar = memo(function DraggableCommandBar2({
|
|
|
916
941
|
children: /* @__PURE__ */ jsx(MapIcon, { className: "h-4 w-4" })
|
|
917
942
|
}
|
|
918
943
|
),
|
|
944
|
+
/* @__PURE__ */ jsx(
|
|
945
|
+
"button",
|
|
946
|
+
{
|
|
947
|
+
type: "button",
|
|
948
|
+
onClick: onToggleDots,
|
|
949
|
+
title: tWorkflow("toggleDots"),
|
|
950
|
+
className: showDots ? activeButtonClassName : inactiveButtonClassName,
|
|
951
|
+
children: /* @__PURE__ */ jsx(EllipsisHorizontalIcon, { className: "h-4 w-4" })
|
|
952
|
+
}
|
|
953
|
+
),
|
|
919
954
|
/* @__PURE__ */ jsx(
|
|
920
955
|
"button",
|
|
921
956
|
{
|
|
@@ -992,7 +1027,9 @@ var DraggableCommandBar = memo(function DraggableCommandBar2({
|
|
|
992
1027
|
{ keys: "\u21E7 5", label: tWorkflow("shortcutZoom50") },
|
|
993
1028
|
{ keys: "Esc", label: tWorkflow("shortcutDeselect") },
|
|
994
1029
|
{ keys: "\u232B", label: tWorkflow("shortcutDelete") },
|
|
995
|
-
{ keys: "L", label: tWorkflow("layoutMode") }
|
|
1030
|
+
{ keys: "L", label: tWorkflow("layoutMode") },
|
|
1031
|
+
{ keys: "G", label: tWorkflow("toggleDots") },
|
|
1032
|
+
{ keys: "M", label: tWorkflow("toggleMinimap") }
|
|
996
1033
|
].map((shortcut) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
997
1034
|
/* @__PURE__ */ jsx("span", { className: "text-[11px] text-gray-600 dark:text-gray-300", children: shortcut.label }),
|
|
998
1035
|
/* @__PURE__ */ jsx("span", { className: "flex items-center gap-0.5", children: shortcut.keys.split(" ").map((key) => /* @__PURE__ */ jsx(
|
|
@@ -5954,10 +5991,16 @@ function WorkflowCanvasInner({
|
|
|
5954
5991
|
const canRedo = useWorkflowStore((state) => state.future.length > 0);
|
|
5955
5992
|
const controlMode = useWorkflowStore((state) => state.controlMode);
|
|
5956
5993
|
const setControlMode = useWorkflowStore((state) => state.setControlMode);
|
|
5957
|
-
const
|
|
5958
|
-
const
|
|
5959
|
-
const
|
|
5994
|
+
const showMinimap = useWorkflowStore((s) => s.showMinimap);
|
|
5995
|
+
const showDots = useWorkflowStore((s) => s.showDots);
|
|
5996
|
+
const showShortcuts = useWorkflowStore((s) => s.showShortcuts);
|
|
5997
|
+
const cardDisplayMode = useWorkflowStore((s) => s.cardDisplayMode);
|
|
5960
5998
|
const layoutDirection = useWorkflowStore((s) => s.layoutDirection);
|
|
5999
|
+
const toggleMinimap = useWorkflowStore((s) => s.toggleMinimap);
|
|
6000
|
+
const toggleDots = useWorkflowStore((s) => s.toggleDots);
|
|
6001
|
+
const toggleShortcuts = useWorkflowStore((s) => s.toggleShortcuts);
|
|
6002
|
+
const closeShortcuts = useWorkflowStore((s) => s.closeShortcuts);
|
|
6003
|
+
const toggleCardDisplayMode = useWorkflowStore((s) => s.toggleCardDisplayMode);
|
|
5961
6004
|
const setLayoutDirection = useWorkflowStore((s) => s.setLayoutDirection);
|
|
5962
6005
|
const [editingLogicNodeId, setEditingLogicNodeId] = useState(null);
|
|
5963
6006
|
const handleEditLogicNode = useCallback((nodeId) => {
|
|
@@ -6732,6 +6775,14 @@ function WorkflowCanvasInner({
|
|
|
6732
6775
|
setControlMode("hand");
|
|
6733
6776
|
return;
|
|
6734
6777
|
}
|
|
6778
|
+
if (event.key.toLowerCase() === "g") {
|
|
6779
|
+
toggleDots();
|
|
6780
|
+
return;
|
|
6781
|
+
}
|
|
6782
|
+
if (event.key.toLowerCase() === "m") {
|
|
6783
|
+
toggleMinimap();
|
|
6784
|
+
return;
|
|
6785
|
+
}
|
|
6735
6786
|
if (event.shiftKey && event.key === "!") {
|
|
6736
6787
|
event.preventDefault();
|
|
6737
6788
|
zoomTo(1);
|
|
@@ -7297,7 +7348,7 @@ function WorkflowCanvasInner({
|
|
|
7297
7348
|
deleteKeyCode: ["Backspace", "Delete"],
|
|
7298
7349
|
connectionLineStyle: { stroke: GRAPH_ACTIVE_EDGE_COLOR, strokeWidth: 2 },
|
|
7299
7350
|
children: [
|
|
7300
|
-
/* @__PURE__ */ jsx(
|
|
7351
|
+
showDots && /* @__PURE__ */ jsx(
|
|
7301
7352
|
Background,
|
|
7302
7353
|
{
|
|
7303
7354
|
variant: BackgroundVariant.Dots,
|
|
@@ -7333,14 +7384,16 @@ function WorkflowCanvasInner({
|
|
|
7333
7384
|
controlMode,
|
|
7334
7385
|
onControlModeChange: setControlMode,
|
|
7335
7386
|
showMinimap,
|
|
7336
|
-
onToggleMinimap:
|
|
7387
|
+
onToggleMinimap: toggleMinimap,
|
|
7388
|
+
showDots,
|
|
7389
|
+
onToggleDots: toggleDots,
|
|
7337
7390
|
cardDisplayMode,
|
|
7338
|
-
onToggleCardDisplayMode:
|
|
7391
|
+
onToggleCardDisplayMode: toggleCardDisplayMode,
|
|
7339
7392
|
layoutDirection,
|
|
7340
7393
|
onLayoutDirectionChange: handleLayoutDirectionChange,
|
|
7341
7394
|
showShortcuts,
|
|
7342
|
-
onToggleShortcuts:
|
|
7343
|
-
onCloseShortcuts:
|
|
7395
|
+
onToggleShortcuts: toggleShortcuts,
|
|
7396
|
+
onCloseShortcuts: closeShortcuts,
|
|
7344
7397
|
tWorkflow
|
|
7345
7398
|
}
|
|
7346
7399
|
),
|
|
@@ -7548,5 +7601,5 @@ function Workspace({
|
|
|
7548
7601
|
}
|
|
7549
7602
|
|
|
7550
7603
|
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, NODE_EXECUTION_ACCENT_COLORS, 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, getNodeExecutionAccent, getNodeExecutionAccentRgb, isFrameworkCompatibleWithProviders, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
|
|
7551
|
-
//# sourceMappingURL=chunk-
|
|
7552
|
-
//# sourceMappingURL=chunk-
|
|
7604
|
+
//# sourceMappingURL=chunk-3NXUTBDV.mjs.map
|
|
7605
|
+
//# sourceMappingURL=chunk-3NXUTBDV.mjs.map
|