@fluxo-dev/shell 0.0.29 → 0.0.31

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@fluxo-dev/shell",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "peerDependencies": {
5
- "@fluxo-dev/shell-hub": "0.0.29",
6
- "@fluxo-dev/shell-korebi": "0.0.29",
7
- "@fluxo-dev/shell-mfe": "0.0.29",
8
- "@fluxo-dev/shell-printing": "0.0.29",
9
- "@fluxo-dev/shell-reporting": "0.0.29",
10
- "@fluxo-dev/shell-workflow": "0.0.29"
5
+ "@fluxo-dev/shell-hub": "0.0.31",
6
+ "@fluxo-dev/shell-korebi": "0.0.31",
7
+ "@fluxo-dev/shell-mfe": "0.0.31",
8
+ "@fluxo-dev/shell-printing": "0.0.31",
9
+ "@fluxo-dev/shell-reporting": "0.0.31",
10
+ "@fluxo-dev/shell-workflow": "0.0.31"
11
11
  },
12
12
  "module": "./index.esm.js",
13
13
  "type": "module",
package/src/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { FluxoShell, FluxoShellProps, ShellFrontend } from './lib/app';
1
+ export { FluxoShell, FluxoShellProps, ShellFrontend, ShellUI, ShellUINavigation } from './lib/app';
2
2
  export { FrontendSwitch } from './lib/components/frontend-switch';
package/src/lib/app.d.ts CHANGED
@@ -10,6 +10,13 @@ export type ShellFrontend = {
10
10
  modules: EmbeddedModule[];
11
11
  renderWhen?: (configuration: InitialConfiguration) => boolean;
12
12
  };
13
+ export declare enum ShellUINavigation {
14
+ Sidebar = 1,
15
+ Topbar = 2
16
+ }
17
+ export interface ShellUI {
18
+ navigation: ShellUINavigation;
19
+ }
13
20
  export interface FluxoShellProps {
14
21
  pluginEndpoint: string;
15
22
  appVersion: string;
@@ -17,6 +24,7 @@ export interface FluxoShellProps {
17
24
  clientInitialization: () => Promise<void>;
18
25
  brandName?: string;
19
26
  withMultipleSessions: boolean;
27
+ ui: ShellUI;
20
28
  }
21
29
  export declare function FluxoShell(props: FluxoShellProps): import("react/jsx-runtime").JSX.Element;
22
30
  export default FluxoShell;
@@ -1,3 +1,4 @@
1
+ import { ShellUI } from "@fluxo-dev/shell";
1
2
  export interface AppBarProps {
2
3
  previewMode?: {
3
4
  logo?: string;
@@ -5,6 +6,7 @@ export interface AppBarProps {
5
6
  headerColor: string;
6
7
  };
7
8
  brandName: string;
9
+ shellUi: ShellUI;
8
10
  }
9
11
  declare function AppBar(props: AppBarProps): import("react/jsx-runtime").JSX.Element;
10
12
  export default AppBar;
@@ -1,7 +1,10 @@
1
+ import { ShellUI } from "../../app";
2
+ import './horizontal-menu.css';
1
3
  export interface AppLayoutProps {
2
4
  appVersion: string;
3
5
  brandName: string;
4
6
  withMultipleSessions: boolean;
7
+ ui: ShellUI;
5
8
  }
6
9
  declare function AppLayout(props: AppLayoutProps): import("react/jsx-runtime").JSX.Element;
7
10
  export default AppLayout;
@@ -1,5 +1,7 @@
1
+ import { ShellUI } from "@fluxo-dev/shell";
1
2
  export interface AppContentProps {
2
3
  withMultipleSessions: boolean;
4
+ shellUi: ShellUI;
3
5
  }
4
6
  declare function AppContent(props: AppContentProps): import("react/jsx-runtime").JSX.Element;
5
7
  export default AppContent;
@@ -1 +1,5 @@
1
- export declare function Navbar(): import("react/jsx-runtime").JSX.Element;
1
+ import { ShellUI } from "../../app";
2
+ export interface NavbarProps {
3
+ shellUi: ShellUI;
4
+ }
5
+ export declare function Navbar(props: NavbarProps): import("react/jsx-runtime").JSX.Element;