nexus-shell 0.1.14 → 0.1.15
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/ShellLayout.d.ts +4 -1
- package/dist/components/widgets/ArgumentInspectorWidget.d.ts +3 -0
- package/dist/components/widgets/DialogueMapperLibraryWidget.d.ts +3 -0
- package/dist/components/widgets/DialogueMappingWidget.d.ts +2 -0
- package/dist/components/widgets/MenuBar.d.ts +2 -1
- package/dist/components/widgets/UserProfile.d.ts +2 -1
- package/dist/core/services/LayoutService.d.ts +32 -1
- package/dist/core/services/UserProfileService.d.ts +11 -0
- package/dist/{index-yr6-V2yn.js → index-n5JRc_aS.js} +14457 -13945
- package/dist/index.d.ts +3 -0
- package/dist/{maplibre-gl-CttkI_EG.js → maplibre-gl-BTM3hwYI.js} +1 -1
- package/dist/nexus-shell.es.js +36 -33
- package/dist/nexus-shell.umd.js +249 -239
- package/dist/stories/ShellLayout.stories.d.ts +1 -0
- package/dist/stories/UserProfile.stories.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Model } from 'flexlayout-react';
|
|
1
2
|
import { ISidebarPanel } from '../../core/services/SidebarService';
|
|
2
3
|
import { ISlashCommand } from '../../core/services/ChatService';
|
|
3
4
|
import { IStatusBarWidget } from '../../core/services/StatusBarService';
|
|
@@ -9,6 +10,8 @@ interface ShellLayoutProps {
|
|
|
9
10
|
menuConfig?: Record<string, IMenuItem[]>;
|
|
10
11
|
statusBarConfig?: IStatusBarWidget[];
|
|
11
12
|
rightMenuBarContent?: React.ReactNode;
|
|
13
|
+
title?: React.ReactNode;
|
|
14
|
+
layoutModel?: Model;
|
|
12
15
|
}
|
|
13
|
-
export declare const ShellLayout: ({ panels, slashCommands, menuConfig, statusBarConfig, rightMenuBarContent }: ShellLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const ShellLayout: ({ panels, slashCommands, menuConfig, statusBarConfig, rightMenuBarContent, title, layoutModel }: ShellLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
17
|
export {};
|
|
@@ -4,6 +4,8 @@ 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
9
|
}
|
|
8
10
|
export declare const DialogueMappingWidget: React.FC<DialogueMappingWidgetProps>;
|
|
9
11
|
export default DialogueMappingWidget;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface MenuBarProps {
|
|
2
|
+
title?: React.ReactNode;
|
|
2
3
|
rightContent?: React.ReactNode;
|
|
3
4
|
}
|
|
4
|
-
export declare const MenuBar: ({ rightContent }: MenuBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const MenuBar: ({ title, rightContent }: MenuBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,12 +1,43 @@
|
|
|
1
|
-
import { Model } from 'flexlayout-react';
|
|
1
|
+
import { Model, IJsonModel } from 'flexlayout-react';
|
|
2
2
|
|
|
3
3
|
interface LayoutState {
|
|
4
4
|
model: Model;
|
|
5
5
|
dirtyTabs: Set<string>;
|
|
6
|
+
storageKey: string;
|
|
6
7
|
setModel: (model: Model) => void;
|
|
8
|
+
setStorageKey: (key: string, fallbackLayout?: IJsonModel) => void;
|
|
7
9
|
addTab: (componentName: string, title?: string) => void;
|
|
8
10
|
setTabDirty: (tabId: string, dirty: boolean) => void;
|
|
9
11
|
isTabDirty: (tabId: string) => boolean;
|
|
10
12
|
}
|
|
13
|
+
export declare const defaultLayout: IJsonModel;
|
|
14
|
+
export declare const dialogueMappingLayoutJson: IJsonModel;
|
|
15
|
+
export declare const dialogueMapperMenus: {
|
|
16
|
+
File: {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
commandId: string;
|
|
20
|
+
}[];
|
|
21
|
+
Edit: {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
commandId: string;
|
|
25
|
+
}[];
|
|
26
|
+
Layout: {
|
|
27
|
+
id: string;
|
|
28
|
+
label: string;
|
|
29
|
+
commandId: string;
|
|
30
|
+
}[];
|
|
31
|
+
Argumentation: {
|
|
32
|
+
id: string;
|
|
33
|
+
label: string;
|
|
34
|
+
commandId: string;
|
|
35
|
+
}[];
|
|
36
|
+
Help: {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
commandId: string;
|
|
40
|
+
}[];
|
|
41
|
+
};
|
|
11
42
|
export declare const useLayoutStore: import('zustand').UseBoundStore<import('zustand').StoreApi<LayoutState>>;
|
|
12
43
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface UserProfileState {
|
|
2
|
+
name: string;
|
|
3
|
+
role: string;
|
|
4
|
+
email: string;
|
|
5
|
+
avatarUrl: string;
|
|
6
|
+
customAvatar: string;
|
|
7
|
+
updateProfile: (profile: Partial<Pick<UserProfileState, 'name' | 'role' | 'email' | 'avatarUrl'>>) => void;
|
|
8
|
+
setCustomAvatar: (base64: string) => void;
|
|
9
|
+
clearCustomAvatar: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useUserProfileStore: import('zustand').UseBoundStore<import('zustand').StoreApi<UserProfileState>>;
|