nexus-shell 0.1.18 → 0.1.20
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/components/layout/NexusWorkspaceShell.d.ts +9 -0
- package/dist/components/widgets/ArgumentInspectorWidget.d.ts +3 -1
- package/dist/components/widgets/DialogueMapperInspector.d.ts +5 -0
- package/dist/components/widgets/DialogueMappingWidget.d.ts +1 -2
- package/dist/components/widgets/FlowControlToolbar.d.ts +6 -2
- package/dist/components/widgets/NexusWorkspaceTitle.d.ts +10 -0
- package/dist/components/widgets/ProjectPropertiesWidget.d.ts +8 -0
- package/dist/components/widgets/TreeWidget.d.ts +4 -2
- package/dist/core/services/DialogueMappingService.d.ts +10 -1
- package/dist/core/services/FileStoreService.d.ts +11 -0
- package/dist/core/services/LayoutService.d.ts +3 -1
- package/dist/{index-n5JRc_aS.js → index-QvOhswqj.js} +16880 -16697
- package/dist/index.d.ts +2 -2
- package/dist/{maplibre-gl-BTM3hwYI.js → maplibre-gl-CmXwvMHy.js} +1 -1
- package/dist/nexus-shell.es.js +29 -29
- package/dist/nexus-shell.umd.js +244 -239
- package/dist/stories/{DialogueMappingShell.stories.d.ts → NexusWorkspaceShell.stories.d.ts} +3 -3
- package/dist/stories/{DialogueMapperTitle.stories.d.ts → NexusWorkspaceTitle.stories.d.ts} +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/layout/DialogueMappingShell.d.ts +0 -4
- package/dist/components/widgets/DialogueMapperTitle.d.ts +0 -10
|
@@ -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;
|
|
@@ -4,8 +4,7 @@ import { TabNode } from 'flexlayout-react';
|
|
|
4
4
|
export interface DialogueMappingWidgetProps {
|
|
5
5
|
node?: TabNode;
|
|
6
6
|
defaultDragMode?: 'pan' | 'select';
|
|
7
|
-
|
|
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
|
-
|
|
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,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;
|
|
@@ -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
|
|
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
|
}
|