nexus-shell 0.1.5 → 0.1.6

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.
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const DialogueMappingShell: React.FC;
4
+ export default DialogueMappingShell;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { TabNode } from 'flexlayout-react';
3
+
4
+ export declare const DialogueMappingWidget: React.FC<{
5
+ node?: TabNode;
6
+ }>;
7
+ export default DialogueMappingWidget;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { NodeProps } from 'reactflow';
3
+ import { IDialogueNodeData } from '../../../core/services/DialogueMappingService';
4
+
5
+ export declare const IbisNode: React.FC<NodeProps<IDialogueNodeData>>;
@@ -0,0 +1,44 @@
1
+ import { Node, Edge, Connection } from 'reactflow';
2
+
3
+ export type IbisNodeType = 'question' | 'idea' | 'pro' | 'con' | 'note' | 'decision' | 'link' | 'image';
4
+ export interface IDialogueNodeData {
5
+ id: string;
6
+ type: IbisNodeType;
7
+ title: string;
8
+ description?: string;
9
+ tags?: string[];
10
+ author?: string;
11
+ timestamp: string;
12
+ status?: 'pending' | 'accepted' | 'rejected';
13
+ url?: string;
14
+ imageUrl?: string;
15
+ }
16
+ interface DialogueMappingState {
17
+ nodes: Node<IDialogueNodeData>[];
18
+ edges: Edge[];
19
+ selectedNodeId: string | null;
20
+ layoutHistory: Node<IDialogueNodeData>[][];
21
+ setNodes: (nodes: Node<IDialogueNodeData>[]) => void;
22
+ setEdges: (edges: Edge[]) => void;
23
+ setSelectedNodeId: (id: string | null) => void;
24
+ addNode: (type: IbisNodeType, position: {
25
+ x: number;
26
+ y: number;
27
+ }) => void;
28
+ updateNodeData: (id: string, updates: Partial<IDialogueNodeData>) => void;
29
+ deleteNode: (id: string) => void;
30
+ connectNodes: (connection: Connection) => boolean;
31
+ validateConnection: (sourceId: string, targetId: string) => {
32
+ valid: boolean;
33
+ reason?: string;
34
+ };
35
+ triggerAutoLayout: (direction: 'vertical' | 'horizontal' | 'grid') => void;
36
+ undoLayout: () => void;
37
+ connectionError: string | null;
38
+ setConnectionError: (error: string | null) => void;
39
+ recordHistory: () => void;
40
+ importMap: (jsonStr: string) => boolean;
41
+ exportMap: () => string;
42
+ }
43
+ export declare const useDialogueMappingStore: import('zustand').UseBoundStore<import('zustand').StoreApi<DialogueMappingState>>;
44
+ export {};