@datatechsolutions/ui 2.11.7 → 2.11.9
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 +17 -7
- package/dist/astrlabe/index.d.ts +17 -7
- package/dist/astrlabe/index.js +113 -102
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +16 -5
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/workflow-canvas.js +2 -2
- package/dist/astrlabe/workflow-canvas.mjs +1 -1
- package/dist/{chunk-TKLALDY4.js → chunk-LFWRE3A3.js} +77 -40
- package/dist/chunk-LFWRE3A3.js.map +1 -0
- package/dist/{chunk-76MHUX4T.mjs → chunk-VWKBMTTC.mjs} +77 -40
- package/dist/chunk-VWKBMTTC.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-76MHUX4T.mjs.map +0 -1
- package/dist/chunk-TKLALDY4.js.map +0 -1
|
@@ -234,13 +234,16 @@ type WorkspaceModalProps = {
|
|
|
234
234
|
onClose: () => void;
|
|
235
235
|
title: string;
|
|
236
236
|
subtitle?: string;
|
|
237
|
+
label?: string;
|
|
237
238
|
icon?: ReactNode;
|
|
238
239
|
gradient?: string;
|
|
239
240
|
maxWidth?: string | GlassModalSize;
|
|
241
|
+
headerActions?: ReactNode;
|
|
242
|
+
footer?: ReactNode;
|
|
240
243
|
tabs?: ReactNode;
|
|
241
244
|
children: ReactNode;
|
|
242
245
|
};
|
|
243
|
-
declare function WorkspaceModal({ open, onClose, title, subtitle, icon, gradient, maxWidth, tabs, children, }: WorkspaceModalProps): react_jsx_runtime.JSX.Element;
|
|
246
|
+
declare function WorkspaceModal({ open, onClose, title, subtitle, label, icon, gradient, maxWidth, headerActions, footer, tabs, children, }: WorkspaceModalProps): react_jsx_runtime.JSX.Element;
|
|
244
247
|
|
|
245
248
|
type PipelineSettingsModalProps = {
|
|
246
249
|
onSave: (name: string, description: string) => Promise<void>;
|
|
@@ -500,15 +503,12 @@ type SubworkflowStoreActions = {
|
|
|
500
503
|
type SubworkflowStore = SubworkflowStoreState & SubworkflowStoreActions;
|
|
501
504
|
declare const useSubworkflowStore: zustand.UseBoundStore<zustand.StoreApi<SubworkflowStore>>;
|
|
502
505
|
|
|
503
|
-
type ModalType = 'agent' | '
|
|
506
|
+
type ModalType = 'agent' | 'logic-node' | 'pipeline-settings' | null;
|
|
504
507
|
type AgentModalData = {
|
|
505
508
|
agent: AgentWithPrompts;
|
|
506
509
|
models: AgentModel[];
|
|
507
510
|
isCreateMode: boolean;
|
|
508
511
|
};
|
|
509
|
-
type SubworkflowModalData = {
|
|
510
|
-
tool: Subworkflow;
|
|
511
|
-
};
|
|
512
512
|
type LogicNodeModalData = {
|
|
513
513
|
nodeId: string;
|
|
514
514
|
nodeLabel: string;
|
|
@@ -518,19 +518,29 @@ type PipelineSettingsModalData = {
|
|
|
518
518
|
name: string;
|
|
519
519
|
description: string;
|
|
520
520
|
};
|
|
521
|
+
type ModalEntry = {
|
|
522
|
+
type: ModalType;
|
|
523
|
+
agentData: AgentModalData | null;
|
|
524
|
+
logicNodeData: LogicNodeModalData | null;
|
|
525
|
+
pipelineSettingsData: PipelineSettingsModalData | null;
|
|
526
|
+
};
|
|
521
527
|
type ModalStoreState = {
|
|
528
|
+
/** Current active modal (top of stack) */
|
|
522
529
|
activeModal: ModalType;
|
|
523
530
|
agentData: AgentModalData | null;
|
|
524
|
-
subworkflowData: SubworkflowModalData | null;
|
|
525
531
|
logicNodeData: LogicNodeModalData | null;
|
|
526
532
|
pipelineSettingsData: PipelineSettingsModalData | null;
|
|
533
|
+
/** Stack of previous modals (for back-navigation) */
|
|
534
|
+
stack: ModalEntry[];
|
|
527
535
|
};
|
|
528
536
|
type ModalStoreActions = {
|
|
529
537
|
openAgentModal: (agent: AgentWithPrompts, models: AgentModel[], isCreateMode?: boolean) => void;
|
|
530
|
-
openSubworkflowModal: (tool: Subworkflow) => void;
|
|
531
538
|
openLogicNodeModal: (nodeId: string, nodeLabel: string, config: LogicNodeConfig) => void;
|
|
532
539
|
openPipelineSettingsModal: (name: string, description: string) => void;
|
|
540
|
+
/** Close current modal. If stack has entries, restores the previous modal. */
|
|
533
541
|
closeModal: () => void;
|
|
542
|
+
/** Close all modals and clear the stack. */
|
|
543
|
+
closeAllModals: () => void;
|
|
534
544
|
};
|
|
535
545
|
type ModalStore = ModalStoreState & ModalStoreActions;
|
|
536
546
|
declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<ModalStore>>;
|
package/dist/astrlabe/index.d.ts
CHANGED
|
@@ -234,13 +234,16 @@ type WorkspaceModalProps = {
|
|
|
234
234
|
onClose: () => void;
|
|
235
235
|
title: string;
|
|
236
236
|
subtitle?: string;
|
|
237
|
+
label?: string;
|
|
237
238
|
icon?: ReactNode;
|
|
238
239
|
gradient?: string;
|
|
239
240
|
maxWidth?: string | GlassModalSize;
|
|
241
|
+
headerActions?: ReactNode;
|
|
242
|
+
footer?: ReactNode;
|
|
240
243
|
tabs?: ReactNode;
|
|
241
244
|
children: ReactNode;
|
|
242
245
|
};
|
|
243
|
-
declare function WorkspaceModal({ open, onClose, title, subtitle, icon, gradient, maxWidth, tabs, children, }: WorkspaceModalProps): react_jsx_runtime.JSX.Element;
|
|
246
|
+
declare function WorkspaceModal({ open, onClose, title, subtitle, label, icon, gradient, maxWidth, headerActions, footer, tabs, children, }: WorkspaceModalProps): react_jsx_runtime.JSX.Element;
|
|
244
247
|
|
|
245
248
|
type PipelineSettingsModalProps = {
|
|
246
249
|
onSave: (name: string, description: string) => Promise<void>;
|
|
@@ -500,15 +503,12 @@ type SubworkflowStoreActions = {
|
|
|
500
503
|
type SubworkflowStore = SubworkflowStoreState & SubworkflowStoreActions;
|
|
501
504
|
declare const useSubworkflowStore: zustand.UseBoundStore<zustand.StoreApi<SubworkflowStore>>;
|
|
502
505
|
|
|
503
|
-
type ModalType = 'agent' | '
|
|
506
|
+
type ModalType = 'agent' | 'logic-node' | 'pipeline-settings' | null;
|
|
504
507
|
type AgentModalData = {
|
|
505
508
|
agent: AgentWithPrompts;
|
|
506
509
|
models: AgentModel[];
|
|
507
510
|
isCreateMode: boolean;
|
|
508
511
|
};
|
|
509
|
-
type SubworkflowModalData = {
|
|
510
|
-
tool: Subworkflow;
|
|
511
|
-
};
|
|
512
512
|
type LogicNodeModalData = {
|
|
513
513
|
nodeId: string;
|
|
514
514
|
nodeLabel: string;
|
|
@@ -518,19 +518,29 @@ type PipelineSettingsModalData = {
|
|
|
518
518
|
name: string;
|
|
519
519
|
description: string;
|
|
520
520
|
};
|
|
521
|
+
type ModalEntry = {
|
|
522
|
+
type: ModalType;
|
|
523
|
+
agentData: AgentModalData | null;
|
|
524
|
+
logicNodeData: LogicNodeModalData | null;
|
|
525
|
+
pipelineSettingsData: PipelineSettingsModalData | null;
|
|
526
|
+
};
|
|
521
527
|
type ModalStoreState = {
|
|
528
|
+
/** Current active modal (top of stack) */
|
|
522
529
|
activeModal: ModalType;
|
|
523
530
|
agentData: AgentModalData | null;
|
|
524
|
-
subworkflowData: SubworkflowModalData | null;
|
|
525
531
|
logicNodeData: LogicNodeModalData | null;
|
|
526
532
|
pipelineSettingsData: PipelineSettingsModalData | null;
|
|
533
|
+
/** Stack of previous modals (for back-navigation) */
|
|
534
|
+
stack: ModalEntry[];
|
|
527
535
|
};
|
|
528
536
|
type ModalStoreActions = {
|
|
529
537
|
openAgentModal: (agent: AgentWithPrompts, models: AgentModel[], isCreateMode?: boolean) => void;
|
|
530
|
-
openSubworkflowModal: (tool: Subworkflow) => void;
|
|
531
538
|
openLogicNodeModal: (nodeId: string, nodeLabel: string, config: LogicNodeConfig) => void;
|
|
532
539
|
openPipelineSettingsModal: (name: string, description: string) => void;
|
|
540
|
+
/** Close current modal. If stack has entries, restores the previous modal. */
|
|
533
541
|
closeModal: () => void;
|
|
542
|
+
/** Close all modals and clear the stack. */
|
|
543
|
+
closeAllModals: () => void;
|
|
534
544
|
};
|
|
535
545
|
type ModalStore = ModalStoreState & ModalStoreActions;
|
|
536
546
|
declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<ModalStore>>;
|