@fluxo-dev/shell 0.0.28 → 0.0.29

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.js CHANGED
@@ -4344,7 +4344,8 @@ class AppJitManager {
4344
4344
  }
4345
4345
  }
4346
4346
 
4347
- function FrontendSwitch() {
4347
+ function FrontendSwitch(props) {
4348
+ var _a;
4348
4349
  const {
4349
4350
  allowedFrontends
4350
4351
  } = useAppSelector(a => a.layout);
@@ -4353,7 +4354,7 @@ function FrontendSwitch() {
4353
4354
  children: allowedFrontends.length > 1 && jsx(ActionIcon, {
4354
4355
  children: jsx(IconGridDots, {
4355
4356
  size: 24,
4356
- color: '#fff',
4357
+ color: (_a = props.iconColor) !== null && _a !== void 0 ? _a : '#fff',
4357
4358
  onClick: () => navigate('frontend-switcher')
4358
4359
  })
4359
4360
  })
@@ -21495,6 +21496,9 @@ function MenuDesigner(props) {
21495
21496
  });
21496
21497
  };
21497
21498
  const isModuleAttachedToFrontend = (module, frontend) => {
21499
+ // workaround momentaneo. Bisogna capire come eventualmente
21500
+ // abbinare le app dinamiche ai frontend. Per ora, tutte quelle che non sono fluxo, vengono abbinate
21501
+ if (module.key !== 'fluxo') return true;
21498
21502
  const shellFrontend = props.frontends.find(a => a.id === (currentWebMenu === null || currentWebMenu === void 0 ? void 0 : currentWebMenu.frontend));
21499
21503
  if ((shellFrontend === null || shellFrontend === void 0 ? void 0 : shellFrontend.modules.filter(a => a.scope === module.key).length) === 0) return false;
21500
21504
  return true;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@fluxo-dev/shell",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "peerDependencies": {
5
- "@fluxo-dev/shell-hub": "0.0.28",
6
- "@fluxo-dev/shell-korebi": "0.0.28",
7
- "@fluxo-dev/shell-mfe": "0.0.28",
8
- "@fluxo-dev/shell-printing": "0.0.28",
9
- "@fluxo-dev/shell-reporting": "0.0.28",
10
- "@fluxo-dev/shell-workflow": "0.0.28"
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"
11
11
  },
12
12
  "module": "./index.esm.js",
13
13
  "type": "module",
@@ -1 +1,4 @@
1
- export declare function FrontendSwitch(): import("react/jsx-runtime").JSX.Element;
1
+ export interface FrontendSwitchProps {
2
+ iconColor?: string;
3
+ }
4
+ export declare function FrontendSwitch(props: FrontendSwitchProps): import("react/jsx-runtime").JSX.Element;