@fluxo-dev/shell 0.0.22 → 0.0.24
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/index.esm.css +4 -0
- package/index.esm.js +669 -196
- package/package.json +7 -7
- package/src/index.d.ts +2 -1
- package/src/lib/app.d.ts +12 -3
- package/src/lib/components/frontend-switch/frontend-switch.d.ts +1 -0
- package/src/lib/components/frontend-switch/index.d.ts +1 -0
- package/src/lib/components/routes/main-routes.d.ts +3 -2
- package/src/lib/layouts/main/app-layout.d.ts +1 -0
- package/src/lib/layouts/main/footer-bar.d.ts +1 -0
- package/src/lib/pages/frontend-switcher/frontend-switcher.d.ts +3 -0
- package/src/lib/pages/login/login-page.d.ts +4 -1
- package/src/lib/pages/settings/menu-designer/menu-designer.d.ts +5 -1
- package/src/lib/pages/settings/settings.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/shell",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@fluxo-dev/shell-hub": "0.0.
|
|
6
|
-
"@fluxo-dev/shell-korebi": "0.0.
|
|
7
|
-
"@fluxo-dev/shell-mfe": "0.0.
|
|
8
|
-
"@fluxo-dev/shell-printing": "0.0.
|
|
9
|
-
"@fluxo-dev/shell-reporting": "0.0.
|
|
10
|
-
"@fluxo-dev/shell-workflow": "0.0.
|
|
5
|
+
"@fluxo-dev/shell-hub": "0.0.24",
|
|
6
|
+
"@fluxo-dev/shell-korebi": "0.0.24",
|
|
7
|
+
"@fluxo-dev/shell-mfe": "0.0.24",
|
|
8
|
+
"@fluxo-dev/shell-printing": "0.0.24",
|
|
9
|
+
"@fluxo-dev/shell-reporting": "0.0.24",
|
|
10
|
+
"@fluxo-dev/shell-workflow": "0.0.24"
|
|
11
11
|
},
|
|
12
12
|
"module": "./index.esm.js",
|
|
13
13
|
"type": "module",
|
package/src/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { FluxoShell, FluxoShellProps } from './lib/app';
|
|
1
|
+
export { FluxoShell, FluxoShellProps, ShellFrontend } from './lib/app';
|
|
2
|
+
export { FrontendSwitch } from './lib/components/frontend-switch';
|
package/src/lib/app.d.ts
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { EmbeddedModule } from "@fluxo-dev/api-client-base";
|
|
2
|
+
import { EmbeddedModule, InitialConfiguration } from "@fluxo-dev/api-client-base";
|
|
3
3
|
import './app.module.css';
|
|
4
4
|
import 'dayjs/locale/it';
|
|
5
|
+
export type ShellFrontend = {
|
|
6
|
+
id: string | 'admin';
|
|
7
|
+
name: string;
|
|
8
|
+
layout?: React.ReactNode | JSX.Element;
|
|
9
|
+
dashboardComponent: React.ReactNode | React.ReactElement;
|
|
10
|
+
modules: EmbeddedModule[];
|
|
11
|
+
renderWhen?: (configuration: InitialConfiguration) => boolean;
|
|
12
|
+
};
|
|
5
13
|
export interface FluxoShellProps {
|
|
6
14
|
pluginEndpoint: string;
|
|
7
15
|
appVersion: string;
|
|
8
|
-
|
|
9
|
-
|
|
16
|
+
frontends: ShellFrontend[];
|
|
17
|
+
clientInitialization: () => Promise<void>;
|
|
18
|
+
brandName?: string;
|
|
10
19
|
}
|
|
11
20
|
export declare function FluxoShell(props: FluxoShellProps): import("react/jsx-runtime").JSX.Element;
|
|
12
21
|
export default FluxoShell;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function FrontendSwitch(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './frontend-switch';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShellFrontend } from "@fluxo-dev/shell";
|
|
2
2
|
export interface MainRoutesProps {
|
|
3
3
|
pluginEndpoint: string;
|
|
4
|
-
|
|
4
|
+
frontends: ShellFrontend[];
|
|
5
|
+
isAdminFrontend: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare function MainRoutes(props: MainRoutesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ShellFrontend } from "@fluxo-dev/shell";
|
|
2
|
+
export interface MenuDesignerProps {
|
|
3
|
+
frontends: ShellFrontend[];
|
|
4
|
+
}
|
|
5
|
+
export declare function MenuDesigner(props: MenuDesignerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShellFrontend } from "@fluxo-dev/shell";
|
|
2
2
|
export interface SettingsProps {
|
|
3
3
|
pluginEndpoint: string;
|
|
4
|
-
|
|
4
|
+
frontends: ShellFrontend[];
|
|
5
5
|
}
|
|
6
6
|
export declare function Settings(props: SettingsProps): import("react/jsx-runtime").JSX.Element;
|