nexus-shell 0.1.23 → 0.2.1
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/README.md +191 -106
- package/dist/components/layout/ShellLayout.d.ts +90 -12
- package/dist/components/widgets/ActivityBar.d.ts +48 -1
- package/dist/components/widgets/AppTitle.d.ts +30 -0
- package/dist/components/widgets/ChatPane.d.ts +63 -1
- package/dist/components/widgets/CommandPalette.d.ts +55 -7
- package/dist/components/widgets/ContextMenu.d.ts +34 -3
- package/dist/components/widgets/DataGrid.d.ts +44 -0
- package/dist/components/widgets/MenuBar.d.ts +55 -5
- package/dist/components/widgets/Modal.d.ts +58 -0
- package/dist/components/widgets/QuickSearch.d.ts +66 -0
- package/dist/components/widgets/SearchWidget.d.ts +36 -0
- package/dist/components/widgets/SettingsPanel.d.ts +33 -0
- package/dist/components/widgets/SidebarPane.d.ts +37 -1
- package/dist/components/widgets/StatusBar.d.ts +51 -1
- package/dist/components/widgets/TerminalPane.d.ts +43 -1
- package/dist/components/widgets/ThemeSwitcher.d.ts +35 -5
- package/dist/components/widgets/TreeWidget.d.ts +94 -5
- package/dist/components/widgets/UserProfile.d.ts +75 -6
- package/dist/connected/ConnectedActivityBar.d.ts +10 -0
- package/dist/connected/ConnectedChatPane.d.ts +18 -0
- package/dist/connected/ConnectedCommandPalette.d.ts +18 -0
- package/dist/connected/ConnectedMenuBar.d.ts +12 -0
- package/dist/connected/ConnectedModal.d.ts +15 -0
- package/dist/connected/ConnectedSidebarPane.d.ts +12 -0
- package/dist/connected/ConnectedStatusBar.d.ts +15 -0
- package/dist/connected/ConnectedTerminalPane.d.ts +18 -0
- package/dist/connected/ConnectedThemeSwitcher.d.ts +11 -0
- package/dist/connected/ConnectedUserProfile.d.ts +14 -0
- package/dist/connected/index.d.ts +21 -0
- package/dist/core/Boot.d.ts +64 -2
- package/dist/core/registry/MenuRegistry.d.ts +22 -9
- package/dist/core/services/ChatService.d.ts +23 -7
- package/dist/core/services/StatusBarService.d.ts +17 -14
- package/dist/index.d.ts +53 -33
- package/dist/lib/cn.d.ts +12 -0
- package/dist/nexus-shell.es.js +2427 -40
- package/dist/nexus-shell.umd.js +1 -3707
- package/dist/style.css +1 -1
- package/package.json +43 -15
- package/dist/App.d.ts +0 -2
- package/dist/components/layout/NexusWorkspaceShell.d.ts +0 -9
- package/dist/components/widgets/AgentManager.d.ts +0 -18
- package/dist/components/widgets/ArgumentInspectorWidget.d.ts +0 -5
- package/dist/components/widgets/DialogueMapperInspector.d.ts +0 -5
- package/dist/components/widgets/DialogueMapperLibrary.d.ts +0 -11
- package/dist/components/widgets/DialogueMapperLibraryWidget.d.ts +0 -3
- package/dist/components/widgets/DialogueMappingWidget.d.ts +0 -10
- package/dist/components/widgets/FilesSidebar.d.ts +0 -1
- package/dist/components/widgets/FlowControlToolbar.d.ts +0 -18
- package/dist/components/widgets/GlobalModal.d.ts +0 -3
- package/dist/components/widgets/MenuBarSearch.d.ts +0 -11
- package/dist/components/widgets/MockupReviewWidget.d.ts +0 -3
- package/dist/components/widgets/NexusWorkspaceTitle.d.ts +0 -10
- package/dist/components/widgets/ProjectPropertiesWidget.d.ts +0 -8
- package/dist/components/widgets/WargameMap.d.ts +0 -31
- package/dist/components/widgets/WelcomeTab.d.ts +0 -8
- package/dist/components/widgets/dialogue-mapper/IbisNode.d.ts +0 -5
- package/dist/components/widgets/mockup-reviewer/ExecutionOverlay.d.ts +0 -10
- package/dist/components/widgets/mockup-reviewer/HtmlShadowRenderer.d.ts +0 -9
- package/dist/components/widgets/mockup-reviewer/ImplementationPlanWorkspace.d.ts +0 -8
- package/dist/components/widgets/mockup-reviewer/MockupReviewWorkspace.d.ts +0 -10
- package/dist/components/widgets/mockup-reviewer/ReviewSidebar.d.ts +0 -3
- package/dist/components/widgets/mockup-reviewer/ReviewToolbar.d.ts +0 -12
- package/dist/components/widgets/mockup-reviewer/WorkflowMapper.d.ts +0 -7
- package/dist/components/widgets/wiki/AiCoWriterWorkspace.d.ts +0 -3
- package/dist/components/widgets/wiki/SemanticLinkMapper.d.ts +0 -3
- package/dist/components/widgets/wiki/WikiChatWidget.d.ts +0 -3
- package/dist/components/widgets/wiki/WikiEditor.d.ts +0 -3
- package/dist/components/widgets/wiki/WikiHistorySidebar.d.ts +0 -3
- package/dist/components/widgets/wiki/WikiNavigator.d.ts +0 -3
- package/dist/core/services/DialogueMappingService.d.ts +0 -59
- package/dist/core/services/FileStoreService.d.ts +0 -11
- package/dist/core/services/MockupReviewService.d.ts +0 -58
- package/dist/core/services/dialogue-mapper/DialogueLayoutEngine.d.ts +0 -9
- package/dist/core/services/dialogue-mapper/DialogueMapRepository.d.ts +0 -15
- package/dist/core/services/mockup-reviewer/MockupFixtures.d.ts +0 -11
- package/dist/core/services/useWikiStore.d.ts +0 -33
- package/dist/index-4EyxMz0x.js +0 -78516
- package/dist/main.d.ts +0 -1
- package/dist/maplibre-gl-DJOCpYhv.js +0 -24588
- package/dist/plugins/WikiPlugin.d.ts +0 -3
- package/dist/stories/ActivityBar.stories.d.ts +0 -9
- package/dist/stories/AgentManager.stories.d.ts +0 -25
- package/dist/stories/ChatPane.stories.d.ts +0 -10
- package/dist/stories/CommandPalette.stories.d.ts +0 -9
- package/dist/stories/DataGrid.stories.d.ts +0 -12
- package/dist/stories/DialogueMapperLibrary.stories.d.ts +0 -10
- package/dist/stories/DialogueMappingWidget.stories.d.ts +0 -9
- package/dist/stories/FlowControlToolbar.stories.d.ts +0 -14
- package/dist/stories/GlobalModal.stories.d.ts +0 -7
- package/dist/stories/IbisNode.stories.d.ts +0 -10
- package/dist/stories/MenuBar.stories.d.ts +0 -10
- package/dist/stories/MenuBarSearch.stories.d.ts +0 -7
- package/dist/stories/MockupReviewWidget.stories.d.ts +0 -9
- package/dist/stories/MockupReviewerLayout.stories.d.ts +0 -8
- package/dist/stories/NexusWorkspaceShell.stories.d.ts +0 -9
- package/dist/stories/NexusWorkspaceTitle.stories.d.ts +0 -11
- package/dist/stories/SearchWidget.stories.d.ts +0 -9
- package/dist/stories/ShellLayout.stories.d.ts +0 -13
- package/dist/stories/SidebarPane.stories.d.ts +0 -8
- package/dist/stories/StatusBar.stories.d.ts +0 -10
- package/dist/stories/TerminalPane.stories.d.ts +0 -9
- package/dist/stories/ThemeSwitcher.stories.d.ts +0 -10
- package/dist/stories/TreeWidget.stories.d.ts +0 -8
- package/dist/stories/UserProfile.stories.d.ts +0 -11
- package/dist/stories/WargameMap.stories.d.ts +0 -14
- package/dist/stories/wiki/WikiComposition.stories.d.ts +0 -6
- package/dist/stories/wiki/WikiWidgets.stories.d.ts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,39 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
1
|
+
/**
|
|
2
|
+
* Nexus Shell — a React component library for building IDE-style application
|
|
3
|
+
* shells.
|
|
4
|
+
*
|
|
5
|
+
* **Start with {@link ShellLayout}.** It is the whole application frame — menu
|
|
6
|
+
* bar, activity bar, sidebar, docking workspace, terminal, chat pane and status
|
|
7
|
+
* bar — and the intended starting point for an app built on this library. Call
|
|
8
|
+
* {@link initializeShell} once to register your commands, menus and panels,
|
|
9
|
+
* render `ShellLayout`, and grow from there.
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { initializeShell, ShellLayout } from 'nexus-shell';
|
|
13
|
+
* import 'nexus-shell/style.css';
|
|
14
|
+
*
|
|
15
|
+
* initializeShell({ panels, menus, commands });
|
|
16
|
+
* createRoot(el).render(<ShellLayout title={<AppTitle title="Acme" />} />);
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Everything the shell is built from is also exported on its own. Those
|
|
20
|
+
* components are pure and prop-driven, and they are the escape hatch: reach for
|
|
21
|
+
* them when you are embedding one piece into an app you already have, or when
|
|
22
|
+
* you need a layout the shell cannot express. Most applications should not need
|
|
23
|
+
* to.
|
|
24
|
+
*/
|
|
25
|
+
export { ShellLayout, type ShellLayoutProps } from './components/layout/ShellLayout';
|
|
26
|
+
export { initializeShell, DEFAULT_COMMAND_IDS, type InitializeShellOptions, } from './core/Boot';
|
|
27
|
+
export { commandRegistry, CommandRegistry, type ICommand } from './core/registry/CommandRegistry';
|
|
28
|
+
export { menuRegistry, MenuRegistry, type IMenuItemConfig } from './core/registry/MenuRegistry';
|
|
28
29
|
export { pluginRegistry, type IPlugin, type PluginStatus } from './core/registry/PluginRegistry';
|
|
29
30
|
export { componentRegistry, type ComponentConstructor } from './core/registry/ComponentRegistry';
|
|
30
|
-
export {
|
|
31
|
+
export { useChatStore, type ISlashCommandConfig } from './core/services/ChatService';
|
|
31
32
|
export { useLayoutStore } from './core/services/LayoutService';
|
|
32
|
-
export {
|
|
33
|
-
export { useSidebarStore, type ISidebarPanel } from './core/services/SidebarService';
|
|
33
|
+
export { useModalStore, type ModalType as ModalStoreType } from './core/services/ModalStoreService';
|
|
34
34
|
export { useRightSidebarStore } from './core/services/RightSidebarService';
|
|
35
|
+
export { useSidebarStore, type ISidebarPanel } from './core/services/SidebarService';
|
|
36
|
+
export { useStatusBarStore, type IStatusBarWidgetConfig } from './core/services/StatusBarService';
|
|
35
37
|
export { useTerminalStore } from './core/services/TerminalService';
|
|
36
|
-
export {
|
|
37
|
-
export { useStatusBarStore, type IStatusBarWidget } from './core/services/StatusBarService';
|
|
38
|
-
export { useKeyboardShortcuts } from './core/services/KeyboardService';
|
|
38
|
+
export { useThemeStore, type ThemeType } from './core/services/ThemeService';
|
|
39
39
|
export { useUserProfileStore, type UserProfileState } from './core/services/UserProfileService';
|
|
40
|
+
export { useKeyboardShortcuts } from './core/services/KeyboardService';
|
|
41
|
+
export * from './connected';
|
|
42
|
+
export { ActivityBar, type ActivityBarProps, type IActivityBarItem } from './components/widgets/ActivityBar';
|
|
43
|
+
export { AppTitle, type AppTitleProps } from './components/widgets/AppTitle';
|
|
44
|
+
export { ChatPane, type ChatPaneProps, type IChatMessage, type ISlashCommand } from './components/widgets/ChatPane';
|
|
45
|
+
export { CommandPalette, type CommandPaletteProps, type ICommandItem } from './components/widgets/CommandPalette';
|
|
46
|
+
export { ContextMenu, type ContextMenuProps, type IContextMenuItem } from './components/widgets/ContextMenu';
|
|
47
|
+
export { DataGrid, type DataGridProps, type IDataGridColumn } from './components/widgets/DataGrid';
|
|
48
|
+
export { MenuBar, type MenuBarProps, type IMenuItem } from './components/widgets/MenuBar';
|
|
49
|
+
export { Modal, type ModalProps, type ModalType } from './components/widgets/Modal';
|
|
50
|
+
export { QuickSearch, type QuickSearchProps, type IQuickSearchResult } from './components/widgets/QuickSearch';
|
|
51
|
+
export { SearchWidget, type SearchWidgetProps, type ISearchResult } from './components/widgets/SearchWidget';
|
|
52
|
+
export { SettingsPanel, type SettingsPanelProps, type ISettingsThemeOption, DEFAULT_SETTINGS_THEMES } from './components/widgets/SettingsPanel';
|
|
53
|
+
export { SidebarPane, type SidebarPaneProps } from './components/widgets/SidebarPane';
|
|
54
|
+
export { StatusBar, type StatusBarProps, type IStatusBarWidget } from './components/widgets/StatusBar';
|
|
55
|
+
export { TerminalPane, type TerminalPaneProps } from './components/widgets/TerminalPane';
|
|
56
|
+
export { ThemeSwitcher, type ThemeSwitcherProps, type IThemeOption, DEFAULT_THEME_OPTIONS } from './components/widgets/ThemeSwitcher';
|
|
57
|
+
export { TreeWidget, type TreeWidgetProps, type ITreeNode, type ITreeAction, type ITreeContext } from './components/widgets/TreeWidget';
|
|
58
|
+
export { UserProfile, type UserProfileProps, type IUserProfile, type IUserProfileAction } from './components/widgets/UserProfile';
|
|
59
|
+
export { cn } from './lib/cn';
|
package/dist/lib/cn.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Merge Tailwind class names, resolving conflicts so the last-specified
|
|
5
|
+
* utility wins. Use this anywhere a component accepts a `className` prop
|
|
6
|
+
* that should be able to override the component's own defaults.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* cn('px-2 text-sm', isActive && 'text-primary', className)
|
|
10
|
+
*/
|
|
11
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
12
|
+
export type { ClassValue };
|