nexus-shell 0.1.19 → 0.1.21

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,9 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface NexusWorkspaceShellProps {
4
+ disableLocalStorage?: boolean;
5
+ initialLayoutJson?: any;
6
+ onLayoutChange?: (model: any) => void;
7
+ }
8
+ export declare const NexusWorkspaceShell: React.FC<NexusWorkspaceShellProps>;
9
+ export default NexusWorkspaceShell;
@@ -1,3 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const ArgumentInspectorWidget: React.FC;
3
+ export declare const ArgumentInspectorWidget: React.FC<{
4
+ node?: any;
5
+ }>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const DialogueMapperInspector: React.FC<{
4
+ mapId?: string;
5
+ }>;
@@ -4,8 +4,7 @@ import { TabNode } from 'flexlayout-react';
4
4
  export interface DialogueMappingWidgetProps {
5
5
  node?: TabNode;
6
6
  defaultDragMode?: 'pan' | 'select';
7
- hideInternalLibrary?: boolean;
8
- hideInternalInspector?: boolean;
7
+ mapId: string;
9
8
  }
10
9
  export declare const DialogueMappingWidget: React.FC<DialogueMappingWidgetProps>;
11
10
  export default DialogueMappingWidget;
@@ -4,11 +4,15 @@ export interface FlowControlToolbarProps {
4
4
  variant?: 'header' | 'floating';
5
5
  dragMode?: 'pan' | 'select';
6
6
  onDragModeChange?: (mode: 'pan' | 'select') => void;
7
- onLayoutChange: (direction: 'vertical' | 'horizontal' | 'grid') => void;
7
+ autoLayoutMode: 'vertical' | 'horizontal' | 'freeform';
8
+ onAutoLayoutModeChange: (mode: 'vertical' | 'horizontal' | 'freeform') => void;
8
9
  onUndo: () => void;
9
10
  canUndo?: boolean;
10
- title?: string;
11
11
  className?: string;
12
+ isLibraryOpen?: boolean;
13
+ onToggleLibrary?: () => void;
14
+ isInspectorOpen?: boolean;
15
+ onToggleInspector?: () => void;
12
16
  }
13
17
  export declare const FlowControlToolbar: React.FC<FlowControlToolbarProps>;
14
18
  export default FlowControlToolbar;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const GlobalModal: React.FC;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface NexusWorkspaceTitleProps {
4
+ title?: string;
5
+ subtitle?: string;
6
+ icon?: React.ReactNode;
7
+ className?: string;
8
+ }
9
+ export declare const NexusWorkspaceTitle: React.FC<NexusWorkspaceTitleProps>;
10
+ export default NexusWorkspaceTitle;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface ProjectPropertiesProps {
4
+ projectId: string;
5
+ projectName: string;
6
+ }
7
+ export declare const ProjectPropertiesWidget: React.FC<ProjectPropertiesProps>;
8
+ export {};
@@ -11,9 +11,11 @@ export interface ITreeNode {
11
11
  export interface TreeWidgetProps {
12
12
  data: ITreeNode[];
13
13
  onMoveNode?: (draggedId: string, targetId: string) => void;
14
- onNewFile?: (parentId: string) => void;
15
- onNewFolder?: (parentId: string) => void;
14
+ onNewFile?: (parentId: string | null) => void;
15
+ onNewFolder?: (parentId: string | null) => void;
16
+ onNewDialogueMap?: (parentId: string | null) => void;
16
17
  onRename?: (nodeId: string) => void;
17
18
  onDelete?: (nodeId: string) => void;
19
+ onDoubleClick?: (node: ITreeNode) => void;
18
20
  }
19
21
  export declare const TreeWidget: React.FC<TreeWidgetProps>;
@@ -1,3 +1,4 @@
1
+ import { StoreApi, UseBoundStore } from 'zustand';
1
2
  import { Node, Edge, Connection } from 'reactflow';
2
3
 
3
4
  export type IbisNodeType = 'question' | 'idea' | 'pro' | 'con' | 'note' | 'decision' | 'link' | 'image' | 'map';
@@ -13,12 +14,18 @@ export interface IDialogueNodeData {
13
14
  url?: string;
14
15
  imageUrl?: string;
15
16
  autoEdit?: boolean;
17
+ freeformPosition?: {
18
+ x: number;
19
+ y: number;
20
+ };
16
21
  }
17
22
  interface DialogueMappingState {
18
23
  nodes: Node<IDialogueNodeData>[];
19
24
  edges: Edge[];
20
25
  selectedNodeId: string | null;
21
26
  layoutHistory: Node<IDialogueNodeData>[][];
27
+ autoLayoutMode: 'vertical' | 'horizontal' | 'freeform';
28
+ setAutoLayoutMode: (mode: 'vertical' | 'horizontal' | 'freeform') => void;
22
29
  setNodes: (nodes: Node<IDialogueNodeData>[]) => void;
23
30
  setEdges: (edges: Edge[]) => void;
24
31
  setSelectedNodeId: (id: string | null) => void;
@@ -46,5 +53,7 @@ interface DialogueMappingState {
46
53
  importMap: (jsonStr: string) => boolean;
47
54
  exportMap: () => string;
48
55
  }
49
- export declare const useDialogueMappingStore: import('zustand').UseBoundStore<import('zustand').StoreApi<DialogueMappingState>>;
56
+ export declare let globalFallbackStore: UseBoundStore<StoreApi<DialogueMappingState>> | null;
57
+ export declare const getMapStore: (mapId?: string) => UseBoundStore<StoreApi<DialogueMappingState>>;
58
+ export declare const useDialogueMappingStore: UseBoundStore<StoreApi<DialogueMappingState>>;
50
59
  export {};
@@ -0,0 +1,11 @@
1
+ import { ITreeNode } from '../../components/widgets/TreeWidget';
2
+
3
+ interface FileStoreState {
4
+ nodes: ITreeNode[];
5
+ fetchFiles: () => Promise<void>;
6
+ addFile: (parentId: string | null, file: ITreeNode) => Promise<void>;
7
+ deleteFile: (id: string) => Promise<void>;
8
+ renameFile: (id: string, newName: string) => Promise<void>;
9
+ }
10
+ export declare const useFileStore: import('zustand').UseBoundStore<import('zustand').StoreApi<FileStoreState>>;
11
+ export {};
@@ -4,9 +4,11 @@ interface LayoutState {
4
4
  model: Model;
5
5
  dirtyTabs: Set<string>;
6
6
  storageKey: string;
7
+ disableLocalStorage: boolean;
8
+ initLayout: (json: any, disableStorage?: boolean) => void;
7
9
  setModel: (model: Model) => void;
8
10
  setStorageKey: (key: string, fallbackLayout?: IJsonModel) => void;
9
- addTab: (componentName: string, title?: string) => void;
11
+ addTab: (componentName: string, title?: string, overrideConfig?: Record<string, any>) => void;
10
12
  setTabDirty: (tabId: string, dirty: boolean) => void;
11
13
  isTabDirty: (tabId: string) => boolean;
12
14
  }
@@ -0,0 +1,15 @@
1
+ export type ModalType = 'alert' | 'confirm' | 'prompt';
2
+ interface ModalState {
3
+ isOpen: boolean;
4
+ type: ModalType;
5
+ title: string;
6
+ message: string;
7
+ defaultValue?: string;
8
+ resolve: ((value: any) => void) | null;
9
+ openAlert: (message: string, title?: string) => Promise<void>;
10
+ openConfirm: (message: string, title?: string) => Promise<boolean>;
11
+ openPrompt: (message: string, defaultValue?: string, title?: string) => Promise<string | null>;
12
+ close: (value?: any) => void;
13
+ }
14
+ export declare const useModalStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ModalState>>;
15
+ export {};