@m4l/layouts 9.3.12 → 9.3.13-BE071125-beta.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.
@@ -50,6 +50,7 @@ export declare const colorsLight: {
50
50
  readonly primary: string;
51
51
  readonly secondary: string;
52
52
  readonly disabled: string;
53
+ readonly contrastText: string;
53
54
  };
54
55
  readonly background: {
55
56
  readonly default: string;
@@ -59,6 +60,7 @@ export declare const colorsLight: {
59
60
  readonly backdrop: string;
60
61
  readonly base: string;
61
62
  readonly blur: string;
63
+ readonly contrastDefault: string;
62
64
  readonly paper: "#fff";
63
65
  };
64
66
  readonly chips: {
@@ -73,6 +75,7 @@ export declare const colorsLight: {
73
75
  readonly candy: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
74
76
  readonly persianGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
75
77
  readonly aqua: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
78
+ readonly sheetGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
76
79
  readonly disabled: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
77
80
  readonly primary: {
78
81
  readonly outlined: {
@@ -253,6 +256,7 @@ export declare const colorsLight: {
253
256
  readonly primary: string;
254
257
  readonly secondary: string;
255
258
  readonly disabled: string;
259
+ readonly contrastText: string;
256
260
  };
257
261
  readonly divider: string;
258
262
  readonly background: {
@@ -263,6 +267,7 @@ export declare const colorsLight: {
263
267
  readonly backdrop: string;
264
268
  readonly base: string;
265
269
  readonly blur: string;
270
+ readonly contrastDefault: string;
266
271
  readonly paper: "#000";
267
272
  };
268
273
  readonly chips: {
@@ -277,6 +282,7 @@ export declare const colorsLight: {
277
282
  readonly candy: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
278
283
  readonly persianGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
279
284
  readonly aqua: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
285
+ readonly sheetGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
280
286
  readonly disabled: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
281
287
  readonly primary: {
282
288
  readonly outlined: {
@@ -459,6 +465,7 @@ export declare const colorsDark: {
459
465
  readonly primary: string;
460
466
  readonly secondary: string;
461
467
  readonly disabled: string;
468
+ readonly contrastText: string;
462
469
  };
463
470
  readonly background: {
464
471
  readonly default: string;
@@ -468,6 +475,7 @@ export declare const colorsDark: {
468
475
  readonly backdrop: string;
469
476
  readonly base: string;
470
477
  readonly blur: string;
478
+ readonly contrastDefault: string;
471
479
  readonly paper: "#fff";
472
480
  };
473
481
  readonly chips: {
@@ -482,6 +490,7 @@ export declare const colorsDark: {
482
490
  readonly candy: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
483
491
  readonly persianGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
484
492
  readonly aqua: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
493
+ readonly sheetGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
485
494
  readonly disabled: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
486
495
  readonly primary: {
487
496
  readonly outlined: {
@@ -662,6 +671,7 @@ export declare const colorsDark: {
662
671
  readonly primary: string;
663
672
  readonly secondary: string;
664
673
  readonly disabled: string;
674
+ readonly contrastText: string;
665
675
  };
666
676
  readonly divider: string;
667
677
  readonly background: {
@@ -672,6 +682,7 @@ export declare const colorsDark: {
672
682
  readonly backdrop: string;
673
683
  readonly base: string;
674
684
  readonly blur: string;
685
+ readonly contrastDefault: string;
675
686
  readonly paper: "#000";
676
687
  };
677
688
  readonly chips: {
@@ -686,6 +697,7 @@ export declare const colorsDark: {
686
697
  readonly candy: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
687
698
  readonly persianGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
688
699
  readonly aqua: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
700
+ readonly sheetGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
689
701
  readonly disabled: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
690
702
  readonly primary: {
691
703
  readonly outlined: {
package/@types/types.d.ts CHANGED
@@ -1,20 +1,23 @@
1
- /* import { NoAuthModuleLayoutOwnerState, NoAuthModuleLayoutSlotsType } from '../layouts/NoAuthModuleLayout/types';
2
- */
3
- /* declare module '@mui/material/styles' {
1
+ import { MFHostAppOwnerState, MFHostAppSlotsType } from '../components/MFHostApp/types';
2
+ import { ComponentsOverrides, ComponentsVariants } from '@mui/material/styles';
3
+ import { Theme } from '@mui/material/styles';
4
+ import { MF_HOST_APP_KEY } from '../components/MFHostApp/constants';
5
+
6
+ declare module '@mui/material/styles' {
4
7
  // Define the slots in the theme
5
8
  interface ComponentNameToClassKey {
6
- M4LNoAuthModuleLayout: NoAuthModuleLayoutSlotsType;
7
- }
9
+ [MF_HOST_APP_KEY]: MFHostAppSlotsType;
8
10
 
11
+ }
9
12
  interface ComponentsPropsList {
10
- M4LNoAuthModuleLayout: Partial<NoAuthModuleLayoutOwnerState>;
13
+ [MF_HOST_APP_KEY]: Partial<MFHostAppOwnerState>;
11
14
  }
12
-
13
15
  interface Components {
14
- M4LNoAuthModuleLayout?: {
15
- defaultProps?: ComponentsPropsList['M4LNoAuthModuleLayout'];
16
- styleOverrides?: ComponentsOverrides<Theme>['M4LNoAuthModuleLayout'];
17
- variants?: ComponentsVariants['M4LNoAuthModuleLayout'];
16
+ [MF_HOST_APP_KEY]?: {
17
+ defaultProps?: ComponentsPropsList[MF_HOST_APP_KEY];
18
+ styleOverrides?: ComponentsOverrides<Theme>[MF_HOST_APP_KEY];
19
+ variants?: ComponentsVariants[MF_HOST_APP_KEY];
18
20
  };
21
+
19
22
  }
20
- } */
23
+ }
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { unstable_HistoryRouter } from "react-router-dom";
3
- import { EnvironmentProvider, HostToolsProvider, NetworkProvider, DomainCountryProvider } from "@m4l/core";
3
+ import { EnvironmentProvider, HostToolsProvider, NetworkProvider, AuthProvider, DomainCountryProvider } from "@m4l/core";
4
4
  import { DeviceTypeProvider, LocalesProvider, HostThemeProvider, FormatterProvider } from "@m4l/graphics";
5
5
  import { BaseModule, WindowToolsMFProvider, DynamicMFParmsProvider, AppearanceComponentProvider } from "@m4l/components";
6
6
  function MFHostApp(props) {
@@ -19,9 +19,11 @@ function MFHostApp(props) {
19
19
  privileges,
20
20
  componentsDictionary,
21
21
  dynamicMFStore,
22
- windowTools
22
+ windowTools,
23
+ // overrideContainerStyles,
24
+ loggedUser
23
25
  } = props;
24
- return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation, children: /* @__PURE__ */ jsx(DeviceTypeProvider, { children: /* @__PURE__ */ jsx(LocalesProvider, { isMicroFrontEnd: true, localeHost: currentLocale, children: /* @__PURE__ */ jsx(
26
+ return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation, children: /* @__PURE__ */ jsx(DeviceTypeProvider, { children: /* @__PURE__ */ jsx(AuthProvider, { isMicroFrontEnd: true, loggedUser, children: /* @__PURE__ */ jsx(LocalesProvider, { isMicroFrontEnd: true, localeHost: currentLocale, children: /* @__PURE__ */ jsx(
25
27
  HostThemeProvider,
26
28
  {
27
29
  isMicroFrontEnd: true,
@@ -50,7 +52,7 @@ function MFHostApp(props) {
50
52
  }
51
53
  ) })
52
54
  }
53
- ) }) }) }) }) });
55
+ ) }) }) }) }) }) });
54
56
  }
55
57
  export {
56
58
  MFHostApp as M
@@ -0,0 +1 @@
1
+ export declare const MF_HOST_APP_KEY = "MFHostApp";
@@ -0,0 +1,3 @@
1
+ export declare const MFHostAppContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
+ ownerState?: (Partial<import('../types').MFHostAppOwnerState> & Record<string, unknown>) | undefined;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -0,0 +1,3 @@
1
+ export declare enum MFHostAppSlots {
2
+ container = "container"
3
+ }
@@ -0,0 +1,2 @@
1
+ import { MFHostAppStyles } from './types';
2
+ export declare const mfHostAppStyles: MFHostAppStyles;
@@ -1,6 +1,9 @@
1
- import { AxiosOperation, EnvironmentType, HostToolsType } from '@m4l/core';
1
+ import { AuthUserType, AxiosOperation, EnvironmentType, HostToolsType } from '@m4l/core';
2
2
  import { Formatters, LocaleType, HostThemeType } from '@m4l/graphics';
3
- import { DynamicMFStore, WindowToolsMF, BaseModuleProps } from '@m4l/components';
3
+ import { DynamicMFStore, WindowToolsMF, BaseModuleProps, EmergeType, M4LOverridesStyleRules } from '@m4l/components';
4
+ import { MFHostAppSlots } from './slots/styled';
5
+ import { MF_HOST_APP_KEY } from './constants';
6
+ import { Theme } from '@mui/material/styles';
4
7
  export interface ByHostProps {
5
8
  environment: EnvironmentType;
6
9
  hostTools: HostToolsType;
@@ -20,5 +23,14 @@ export interface ByHostProps {
20
23
  * @deprecated no usar, no tiene efecto. utilizar el hook useMFWindowsTitle
21
24
  */
22
25
  isAddEditModule?: boolean;
26
+ /**
27
+ * loggedUser: usuario logueado, para los microfrontends que necesitan el usuario logueado
28
+ */
29
+ loggedUser?: AuthUserType;
23
30
  }
24
31
  export type MFHostAppProps = ByHostProps & BaseModuleProps;
32
+ export type MFHostAppOwnerState = {
33
+ emergeType?: EmergeType;
34
+ };
35
+ export type MFHostAppSlotsType = keyof typeof MFHostAppSlots;
36
+ export type MFHostAppStyles = M4LOverridesStyleRules<MFHostAppSlotsType, typeof MF_HOST_APP_KEY, Theme>;
@@ -292,6 +292,7 @@ export declare function useModuleDetailTabs<T extends Record<string, any> = Reco
292
292
  onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLDivElement> | undefined;
293
293
  onTransitionEnd?: import('react').TransitionEventHandler<HTMLDivElement> | undefined;
294
294
  onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLDivElement> | undefined;
295
+ ariaLabel?: string | undefined;
295
296
  dataTestId?: string | undefined;
296
297
  centerRipple?: boolean | undefined;
297
298
  disableRipple?: boolean | undefined;
@@ -303,7 +304,6 @@ export declare function useModuleDetailTabs<T extends Record<string, any> = Reco
303
304
  TouchRippleProps?: Partial<import('@mui/material/ButtonBase/TouchRipple').TouchRippleProps> | undefined;
304
305
  touchRippleRef?: React.Ref<import('@mui/material/ButtonBase/TouchRipple').TouchRippleActions> | undefined;
305
306
  disableFocusRipple?: boolean | undefined;
306
- ariaLabel?: string | undefined;
307
307
  iconPosition?: "top" | "bottom" | "start" | "end" | undefined;
308
308
  wrapped?: boolean | undefined;
309
309
  }[];
@@ -14,7 +14,9 @@ function useNetworkActionConfirm(props) {
14
14
  startProgress,
15
15
  stopProgress
16
16
  },
17
- ...getEndPoint(obj)
17
+ ...getEndPoint(obj),
18
+ toastSuccess: false,
19
+ toastError: false
18
20
  }).then((response) => {
19
21
  if (customToastConfig) {
20
22
  const toastConfig = customToastConfig(obj, response);
package/index.js CHANGED
@@ -3,12 +3,12 @@ import { M } from "./components/MFNoAuthApp/index.js";
3
3
  import { M as M2 } from "./components/MFHostApp/MFHostApp.js";
4
4
  import { M as M3 } from "./components/ModuleDetailTabs/ModuleDetailTabs.js";
5
5
  import { D } from "./components/DynamicTabs/DynamicTabs.js";
6
- import { M as M4 } from "./layouts/ModuleLayout/ModuleLayout.js";
7
6
  import { N } from "./layouts/NoAuthModuleLayout/index.js";
8
- import { d, g } from "./layouts/ModuleLayout/dicctionary.js";
7
+ import { M as M4 } from "./layouts/ModuleLayout/ModuleLayout.js";
8
+ import { g } from "./layouts/ModuleLayout/dicctionary.js";
9
9
  import { M as M5 } from "./layouts/MasterDetailLayout/MasterDetailLayout.js";
10
10
  import { g as g2 } from "./layouts/MasterDetailLayout/dicctionary.js";
11
- import { d as d2, g as g3 } from "./layouts/NoAuthModuleLayout/dicctionary.js";
11
+ import { d, g as g3 } from "./layouts/NoAuthModuleLayout/dicctionary.js";
12
12
  import { u } from "./hooks/useMasterDetail/index.js";
13
13
  import { u as u2 } from "./hooks/useModule/index.js";
14
14
  import { u as u3 } from "./hooks/useDynamicAccordions/useDynamicAccordions.js";
@@ -27,8 +27,7 @@ export {
27
27
  N as NoAuthModuleLayout,
28
28
  c2 as createAppMF,
29
29
  c as createComponentField,
30
- d as defaultModuleLayoutDictionary,
31
- d2 as defaultNoAuthModuleLayoutDictionary,
30
+ d as defaultNoAuthModuleLayoutDictionary,
32
31
  g2 as getMasterDetailLayoutComponentsDictionary,
33
32
  g as getModuleLayoutComponentsDictionary,
34
33
  g3 as getNoAuthModuleLayoutComponentsDictionary,
@@ -79,7 +79,7 @@ function MasterDetailLayout(props) {
79
79
  onClose: () => {
80
80
  moduleLayoutRef.current?.closeModal();
81
81
  },
82
- type: "modal",
82
+ emergeType: "modal",
83
83
  variant: "outlined",
84
84
  children: typeof detailComponent === "function" ? detailComponent({}) : detailComponent
85
85
  }
@@ -5,7 +5,7 @@ import { B as BaseModuleLayout } from "./subcomponents/BaseModuleLayout/index.js
5
5
  import { a as ModuleProvider } from "./contexts/ModuleContext/index.js";
6
6
  import { u as useUpdateWindowTitleAndEditionInfoMF } from "../../hooks/useUpdateWindowTitleAndEditionInfoMF/useUpdateWindowTitleAndEditionInfoMF.js";
7
7
  const ModuleLayout = forwardRef((props, ref) => {
8
- const { moduleId, moduleActions, version, children, buildTime, moduleNameField, subtitle, editionInfo } = props;
8
+ const { moduleId, moduleActions, version, children, buildTime, moduleNameField, subtitle, editionInfo, overrideContainerStyles } = props;
9
9
  const moduleRef = useRef(null);
10
10
  const closeModal = () => {
11
11
  moduleRef.current?.closeModal();
@@ -16,7 +16,7 @@ const ModuleLayout = forwardRef((props, ref) => {
16
16
  useImperativeHandle(ref, () => ({
17
17
  openModal,
18
18
  closeModal,
19
- current: moduleRef.current
19
+ nodeElement: moduleRef.current?.nodeElement || null
20
20
  }));
21
21
  useUpdateWindowTitleAndEditionInfoMF({
22
22
  moduleNameField,
@@ -30,7 +30,7 @@ const ModuleLayout = forwardRef((props, ref) => {
30
30
  moduleActions,
31
31
  version,
32
32
  buildTime,
33
- children: /* @__PURE__ */ jsx(ModalProvider, { children: /* @__PURE__ */ jsx(BaseModuleLayout, { ref: moduleRef, children }) })
33
+ children: /* @__PURE__ */ jsx(ModalProvider, { children: /* @__PURE__ */ jsx(BaseModuleLayout, { ref: moduleRef, overrideContainerStyles, children }) })
34
34
  }
35
35
  );
36
36
  });
@@ -2,10 +2,6 @@ import { getModalDialogComponentsDictionary } from "@m4l/components";
2
2
  function getModuleLayoutComponentsDictionary() {
3
3
  return ["module_layout"].concat(getModalDialogComponentsDictionary());
4
4
  }
5
- const defaultModuleLayoutDictionary = {
6
- module_layout: {}
7
- };
8
5
  export {
9
- defaultModuleLayoutDictionary as d,
10
6
  getModuleLayoutComponentsDictionary as g
11
7
  };
@@ -1,2 +1,3 @@
1
1
  export { ModuleLayout } from './ModuleLayout';
2
- export type { ModuleLayoutProps } from './types';
2
+ export type { ModuleLayoutProps, ModuleLayoutRef } from './types';
3
+ export { getModuleLayoutComponentsDictionary } from './dicctionary';
@@ -0,0 +1 @@
1
+
@@ -1,2 +1,2 @@
1
- import { ModuleProps, ModuleRef } from './types';
2
- export declare const BaseModuleLayout: import('react').ForwardRefExoticComponent<ModuleProps & import('react').RefAttributes<ModuleRef>>;
1
+ import { BaseModuleProps, ModuleRef } from './types';
2
+ export declare const BaseModuleLayout: import('react').ForwardRefExoticComponent<BaseModuleProps & import('react').RefAttributes<ModuleRef>>;
@@ -4,16 +4,16 @@ import { useModal, getComponentSlotRoot } from "@m4l/components";
4
4
  import { M as ModuleLayoutRootStyled } from "../../slots/ModuleLayoutSlots.js";
5
5
  import { a as MODULE_LAYOUT_KEY } from "../../constants.js";
6
6
  const BaseModuleLayout = forwardRef((props, ref) => {
7
- const { children } = props;
7
+ const { children, overrideContainerStyles } = props;
8
8
  const { openModal, closeModal } = useModal();
9
9
  const divRef = useRef(null);
10
10
  useImperativeHandle(ref, () => ({
11
11
  openModal,
12
12
  closeModal,
13
- current: divRef.current
13
+ nodeElement: divRef.current
14
14
  }));
15
15
  const classRoot = getComponentSlotRoot(MODULE_LAYOUT_KEY);
16
- return /* @__PURE__ */ jsx(ModuleLayoutRootStyled, { className: classRoot, ref: divRef, children });
16
+ return /* @__PURE__ */ jsx(ModuleLayoutRootStyled, { className: classRoot, ref: divRef, style: overrideContainerStyles, children });
17
17
  });
18
18
  export {
19
19
  BaseModuleLayout as B
@@ -3,8 +3,9 @@ import { ModalOpenOptions } from '@m4l/components';
3
3
  export type ModuleRef = {
4
4
  openModal: (modalOpenProps: ModalOpenOptions) => void;
5
5
  closeModal: () => void;
6
- current: HTMLDivElement | null;
6
+ nodeElement: HTMLDivElement | null;
7
7
  };
8
- export interface ModuleProps {
8
+ export interface BaseModuleProps {
9
9
  children: ReactNode;
10
+ overrideContainerStyles?: React.CSSProperties;
10
11
  }
@@ -1,8 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { ModalOpenOptions, ModuleAction } from '@m4l/components';
3
- import { ModuleRef } from './subcomponents/BaseModuleLayout/types';
2
+ import { M4LOverridesStyleRules, ModalOpenOptions, ModuleAction } from '@m4l/components';
4
3
  import { ModuleLayoutSlots } from './slots/ModuleLayoutEnum';
5
- import { OverridesStyleRules } from '@mui/material/styles/overrides';
6
4
  import { MODULE_LAYOUT_KEY } from './constants';
7
5
  import { Theme } from '@mui/material/styles';
8
6
  import { ModuleNameField } from '../../hooks/useUpdateWindowTitleAndEditionInfoMF/types';
@@ -12,7 +10,7 @@ export interface ContainerProps {
12
10
  export type ModuleLayoutRef = {
13
11
  openModal: (modalOpenProps: ModalOpenOptions) => void;
14
12
  closeModal: () => void;
15
- current: ModuleRef | null;
13
+ nodeElement: HTMLDivElement | null;
16
14
  };
17
15
  export interface ModuleLayoutProps {
18
16
  moduleId: string;
@@ -23,6 +21,11 @@ export interface ModuleLayoutProps {
23
21
  moduleNameField?: ModuleNameField;
24
22
  subtitle?: string;
25
23
  editionInfo?: string;
24
+ /**
25
+ * Estilos personalizados que van a reemplazar los estilos por defecto del contenedor del módulo. Para casos especiales.
26
+ * Donde se deb
27
+ */
28
+ overrideContainerStyles?: React.CSSProperties;
26
29
  }
27
30
  export type ModuleLayoutSlotsType = keyof typeof ModuleLayoutSlots;
28
- export type ModuleLayoutStyles = OverridesStyleRules<ModuleLayoutSlotsType, typeof MODULE_LAYOUT_KEY, Theme>;
31
+ export type ModuleLayoutStyles = M4LOverridesStyleRules<ModuleLayoutSlotsType, typeof MODULE_LAYOUT_KEY, Theme>;
@@ -13,4 +13,4 @@ export declare const DICTIONARY_KEYS: {
13
13
  label_home_navigation: string;
14
14
  };
15
15
  export declare const DEFAULT_HOME_PATH = "/auth/login";
16
- export declare const NO_AUTH_MODULE_LAYOUT_CLASSES: Record<string, string>;
16
+ export declare const NO_AUTH_MODULE_LAYOUT_CLASSES: Record<"headerContainer" | "buttonHomeNavigation" | "containerModuleName" | "wrapperFormContent" | "containerLanguageAndSettings" | "containerCompanyLogo" | "desktopBanner" | "contentFormDesktop" | "baseNoAuthModuleLayoutRoot" | "formContent", string>;
@@ -1,5 +1,4 @@
1
- export { ModuleLayout } from './ModuleLayout/ModuleLayout';
2
- export * from './ModuleLayout/dicctionary';
1
+ export * from './ModuleLayout';
3
2
  export * from './MasterDetailLayout';
4
3
  export { NoAuthModuleLayout } from './NoAuthModuleLayout';
5
4
  export * from './NoAuthModuleLayout/dicctionary';
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.3.12",
3
+ "version": "9.3.13-BE071125-beta.1",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "lint-staged": {
7
7
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
8
8
  },
9
9
  "peerDependencies": {
10
- "@m4l/components": "^9.0.0",
10
+ "@m4l/components": "9.3.27-BE071125-beta.1",
11
11
  "@m4l/core": "^2.0.0",
12
12
  "@m4l/graphics": "^7.0.0",
13
13
  "@m4l/styles": "^7.0.0"
@@ -1,7 +1,10 @@
1
+ import { EmergeType } from '@m4l/components';
1
2
  export type CreateAppMFProps = {
2
3
  prefixMF: string;
3
4
  moduleId: string;
4
- App: () => JSX.Element;
5
+ App: (props: {
6
+ emergeType?: EmergeType;
7
+ }) => JSX.Element;
5
8
  privileges: string[];
6
9
  appVersion: string;
7
10
  componentsDictionary: string[];
@@ -11,7 +11,7 @@ function createAppMF(props) {
11
11
  componentsDictionary,
12
12
  skeletonFlags
13
13
  } = props;
14
- window[`render_${prefixMF}_${moduleId}`] = (containerId, environment, hostTools, currentLocale, hostTheme, axiosOperation, formatters, dynamicMFStore, windowTools) => {
14
+ window[`render_${prefixMF}_${moduleId}`] = (containerId, environment, hostTools, currentLocale, hostTheme, axiosOperation, formatters, dynamicMFStore, windowTools, options) => {
15
15
  const container = document.getElementById(containerId);
16
16
  if (container) {
17
17
  const root = createRoot(container);
@@ -32,7 +32,8 @@ function createAppMF(props) {
32
32
  skeletonFlags,
33
33
  componentsDictionary,
34
34
  windowTools,
35
- children: /* @__PURE__ */ jsx(App, {})
35
+ loggedUser: options.loggedUser,
36
+ children: /* @__PURE__ */ jsx(App, { emergeType: options.emergeType })
36
37
  }
37
38
  )
38
39
  );