@m4l/layouts 9.4.2-beta-improvement-606-typography-leveling.0 → 9.4.2

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.
@@ -1,6 +1,6 @@
1
1
  import { MFHostAppProps } from './types';
2
2
  /**
3
- * Componente que envuelve la aplicación de un microfrontend
3
+ * Wrap the remote MF tree with the host-owned runtime and shared shell providers.
4
4
  */
5
5
  export declare function MFHostApp(props: MFHostAppProps): import("@emotion/react/jsx-runtime").JSX.Element;
6
6
  export default MFHostApp;
@@ -1 +1 @@
1
- {"version":3,"file":"MFHostApp.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/MFHostApp/MFHostApp.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,oDAyE9C;AACD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"MFHostApp.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/MFHostApp/MFHostApp.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,oDAoF9C;AAED,eAAe,SAAS,CAAC"}
@@ -1,60 +1,66 @@
1
1
  import { jsx as r } from "@emotion/react/jsx-runtime";
2
- import { unstable_HistoryRouter as P } from "react-router-dom";
3
- import { EnvironmentProvider as M, HostToolsProvider as f, NetworkProvider as b, AuthProvider as g, DomainCountryProvider as T } from "@m4l/core";
4
- import { DeviceTypeProvider as E, LocalesProvider as D, HostThemeProvider as H, FormatterProvider as _ } from "@m4l/graphics";
5
- import { BaseModule as w, WindowToolsMFProvider as A, DynamicMFParmsProvider as S, AppearanceComponentProvider as x } from "@m4l/components";
6
- function B(t) {
2
+ import { unstable_HistoryRouter as T } from "react-router-dom";
3
+ import { EnvironmentProvider as f, HostToolsProvider as H, NetworkProvider as b, AuthProvider as g, DomainCountryProvider as E } from "@m4l/core";
4
+ import { DeviceTypeProvider as D, LocalesProvider as R, HostThemeProvider as _, FormatterProvider as w } from "@m4l/graphics";
5
+ import { projectMFHostRuntimeTools as A, BaseModule as S, WindowToolsMFProvider as x, MFHostRuntimeToolsProvider as j, DynamicMFParmsProvider as k, AppearanceComponentProvider as C } from "@m4l/components";
6
+ function U(t) {
7
7
  const {
8
8
  children: n,
9
9
  currentLocale: d,
10
- hostTheme: c,
11
- environment: s,
12
- hostTools: o,
10
+ hostTheme: s,
11
+ environment: c,
12
+ hostTools: e,
13
13
  axiosOperation: m,
14
- formatters: e,
14
+ formatters: o,
15
15
  isAuth: l = !0,
16
16
  moduleId: a,
17
17
  moduleNameField: u,
18
18
  skeletonFlags: h,
19
- privileges: y,
20
- componentsDictionary: F,
19
+ privileges: F,
20
+ componentsDictionary: v,
21
21
  dynamicMFStore: i,
22
- windowTools: v,
22
+ windowTools: y,
23
+ hostRuntime: p,
23
24
  // overrideContainerStyles,
24
- loggedUser: p
25
- } = t;
26
- return /* @__PURE__ */ r(M, { ...s, children: /* @__PURE__ */ r(f, { ...o, children: /* @__PURE__ */ r(b, { axiosOperation: m, children: /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(g, { isMicroFrontEnd: !0, loggedUser: p, children: /* @__PURE__ */ r(D, { isMicroFrontEnd: !0, localeHost: d, children: /* @__PURE__ */ r(
27
- H,
25
+ loggedUser: P
26
+ } = t, M = A(p);
27
+ return /* @__PURE__ */ r(f, { ...c, children: /* @__PURE__ */ r(H, { ...e, children: /* @__PURE__ */ r(b, { axiosOperation: m, children: /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(g, { isMicroFrontEnd: !0, loggedUser: P, children: /* @__PURE__ */ r(R, { isMicroFrontEnd: !0, localeHost: d, children: /* @__PURE__ */ r(_, { isMicroFrontEnd: !0, ...s, children: /* @__PURE__ */ r(
28
+ T,
28
29
  {
29
- isMicroFrontEnd: !0,
30
- ...c,
31
- children: /* @__PURE__ */ r(P, { history: o.history, children: /* @__PURE__ */ r(
32
- T,
30
+ history: e.history,
31
+ children: /* @__PURE__ */ r(
32
+ E,
33
33
  {
34
34
  isMicroFrontEnd: !0,
35
35
  id: i?.getState().dynamicMFParameters?.id || 1,
36
- currency: e.currencyFormatter.code,
37
- currency_decimal_digits: e.currencyFormatter.decimalDigits,
38
- decimal_symbol: e.numberFormatter.decimalSymbol,
39
- thousands_symbol: e.numberFormatter.thousandsSymbol,
36
+ currency: o.currencyFormatter.code,
37
+ currency_decimal_digits: o.currencyFormatter.decimalDigits,
38
+ decimal_symbol: o.numberFormatter.decimalSymbol,
39
+ thousands_symbol: o.numberFormatter.thousandsSymbol,
40
40
  children: /* @__PURE__ */ r(
41
- w,
41
+ S,
42
42
  {
43
43
  isAuth: l,
44
44
  moduleId: a,
45
45
  moduleNameField: u,
46
- componentsDictionary: F,
46
+ componentsDictionary: v,
47
47
  skeletonFlags: h,
48
- privileges: y,
49
- children: /* @__PURE__ */ r(_, { isMicroFrontEnd: !0, ...e, children: /* @__PURE__ */ r(A, { ...v, children: /* @__PURE__ */ r(S, { store: i, children: /* @__PURE__ */ r(x, { children: n }) }) }) })
48
+ privileges: F,
49
+ children: /* @__PURE__ */ r(w, { isMicroFrontEnd: !0, ...o, children: /* @__PURE__ */ r(x, { ...y, children: /* @__PURE__ */ r(
50
+ j,
51
+ {
52
+ value: M,
53
+ children: /* @__PURE__ */ r(k, { store: i, children: /* @__PURE__ */ r(C, { children: n }) })
54
+ }
55
+ ) }) })
50
56
  }
51
57
  )
52
58
  }
53
- ) })
59
+ )
54
60
  }
55
- ) }) }) }) }) }) });
61
+ ) }) }) }) }) }) }) });
56
62
  }
57
63
  export {
58
- B as MFHostApp,
59
- B as default
64
+ U as MFHostApp,
65
+ U as default
60
66
  };
@@ -1,6 +1,6 @@
1
1
  import { AuthUserType, AxiosOperation, EnvironmentType, HostToolsType } from '@m4l/core';
2
2
  import { Formatters, LocaleType, HostThemeType } from '@m4l/graphics';
3
- import { DynamicMFStore, WindowToolsMF, BaseModuleProps, EmergeType, M4LOverridesStyleRules } from '@m4l/components';
3
+ import { DynamicMFStore, MFHostRuntime, WindowToolsMF, BaseModuleProps, EmergeType, M4LOverridesStyleRules } from '@m4l/components';
4
4
  import { MFHostAppSlots } from './slots/styled';
5
5
  import { MF_HOST_APP_KEY } from './constants';
6
6
  import { Theme } from '@mui/material/styles';
@@ -13,6 +13,7 @@ export interface ByHostProps {
13
13
  formatters: Formatters;
14
14
  dynamicMFStore: DynamicMFStore;
15
15
  windowTools: WindowToolsMF;
16
+ hostRuntime?: MFHostRuntime;
16
17
  /**
17
18
  * @deprecated no usar, no tiene efecto. esto se usaba para detectar la resposividad de los breakpoints
18
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/MFHostApp/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAG,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,aAAa,CAAC;IACzB,aAAa,EAAE,UAAU,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,WAAW,EAAE,aAAa,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AACD,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,eAAe,CAAC;AAG3D,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAA;AAGD,MAAM,MAAM,kBAAkB,GAAI,MAAM,OAAO,cAAc,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,eAAe,EAAE,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/MFHostApp/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAG,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,aAAa,CAAC;IACzB,aAAa,EAAE,UAAU,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,WAAW,EAAE,aAAa,CAAC;IAC3B,WAAW,CAAC,EAAE,aAAa,CAAC;IAE5B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AACD,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,eAAe,CAAC;AAG3D,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAA;AAGD,MAAM,MAAM,kBAAkB,GAAI,MAAM,OAAO,cAAc,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,eAAe,EAAE,KAAK,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { MFHostRuntime } from '@m4l/components';
2
+ /**
3
+ * Build the minimal shell-owned runtime for the no-auth MF shell.
4
+ */
5
+ export declare function createMFNoAuthHostRuntime(): MFHostRuntime;
6
+ //# sourceMappingURL=createMFNoAuthHostRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createMFNoAuthHostRuntime.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/MFNoAuthApp/createMFNoAuthHostRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,aAAa,CAEzD"}
@@ -0,0 +1,6 @@
1
+ function t() {
2
+ return {};
3
+ }
4
+ export {
5
+ t as createMFNoAuthHostRuntime
6
+ };
@@ -1,6 +1,6 @@
1
1
  import { MFNoAuthAppProps } from './types';
2
2
  /**
3
- * Componente que envuelve la aplicación de un microfrontend sin autenticación
3
+ * Wrap the no-auth MF page in the minimal shell-owned provider stack.
4
4
  */
5
5
  export declare function MFNoAuthApp(props: MFNoAuthAppProps): import("@emotion/react/jsx-runtime").JSX.Element;
6
6
  export default MFNoAuthApp;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/MFNoAuthApp/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,oDAoClD;AACD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/components/MFNoAuthApp/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,oDAuClD;AAED,eAAe,WAAW,CAAC"}
@@ -1,38 +1,40 @@
1
- import { jsx as r } from "@emotion/react/jsx-runtime";
1
+ import { jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import { DomainCountryProvider as l } from "@m4l/core";
3
- import { DeviceTypeProvider as u, FormatterProvider as a } from "@m4l/graphics";
4
- import { BaseModule as p } from "@m4l/components";
5
- function D(o) {
3
+ import { DeviceTypeProvider as a, FormatterProvider as p } from "@m4l/graphics";
4
+ import { HostRuntimeProvider as h, BaseModule as f } from "@m4l/components";
5
+ import { useMemo as y } from "react";
6
+ import { createMFNoAuthHostRuntime as v } from "./createMFNoAuthHostRuntime.js";
7
+ function C(r) {
6
8
  const {
7
9
  children: e,
8
- formatters: i,
9
- moduleId: t,
10
+ formatters: t,
11
+ moduleId: i,
10
12
  moduleNameField: n,
11
- skeletonFlags: d,
12
- privileges: m,
13
- componentsDictionary: c,
14
- isAuth: s
15
- } = o;
16
- return /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(l, { isMicroFrontEnd: !0, ...{
13
+ skeletonFlags: m,
14
+ privileges: d,
15
+ componentsDictionary: s,
16
+ isAuth: u
17
+ } = r, c = y(() => v(), []);
18
+ return /* @__PURE__ */ o(h, { value: c, children: /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(l, { isMicroFrontEnd: !0, ...{
17
19
  id: 1,
18
20
  currency: "USD",
19
21
  currency_decimal_digits: 2,
20
22
  decimal_symbol: ".",
21
23
  thousands_symbol: ","
22
- }, children: /* @__PURE__ */ r(
23
- p,
24
+ }, children: /* @__PURE__ */ o(
25
+ f,
24
26
  {
25
- isAuth: s,
26
- moduleId: t,
27
+ isAuth: u,
28
+ moduleId: i,
27
29
  moduleNameField: n,
28
- componentsDictionary: c,
29
- skeletonFlags: d,
30
- privileges: m,
31
- children: /* @__PURE__ */ r(a, { isMicroFrontEnd: !0, ...i, children: e })
30
+ componentsDictionary: s,
31
+ skeletonFlags: m,
32
+ privileges: d,
33
+ children: /* @__PURE__ */ o(p, { isMicroFrontEnd: !0, ...t, children: e })
32
34
  }
33
- ) }) });
35
+ ) }) }) });
34
36
  }
35
37
  export {
36
- D as MFNoAuthApp,
37
- D as default
38
+ C as MFNoAuthApp,
39
+ C as default
38
40
  };
@@ -6,7 +6,7 @@ export interface ByHostProps {
6
6
  }
7
7
  export interface MFNoAuthAppProps extends ByHostProps, BaseModuleProps {
8
8
  /**
9
- * @deprecated no usar, no tiene efecto. esto se usaba para detectar la resposividad de los breakpoints
9
+ * @deprecated Do not use. It no longer affects no-auth shell responsiveness.
10
10
  */
11
11
  observedDivRef?: Element | Text | null;
12
12
  }
@@ -5,11 +5,11 @@ import { useLocation as $, useNavigate as x } from "react-router-dom";
5
5
  import { useEnvironment as D, useBase as E, useModuleDictionary as H } from "@m4l/core";
6
6
  import { NO_AUTH_MODULE_LAYOUT_CLASSES as M, NOT_AUTH_MODULE_LAYOUT_ICONS as l, DICTIONARY_KEYS as Y } from "../../../../constants.js";
7
7
  const K = (c) => {
8
- const { children: d, backgroundLoginUrl: m } = c, { host_static_assets: n, environment_assets: r } = D(), { currentSize: h } = _(), u = $(), { handleSetting: g, companyLogoUrl: S, footerComponent: a, homePath: i } = E(), p = x(), y = {
8
+ const { children: m, backgroundLoginUrl: d } = c, { host_static_assets: n, environment_assets: r } = D(), { currentSize: h } = _(), u = $(), { handleSetting: g, companyLogoUrl: p, footerComponent: a, homePath: i } = E(), S = x(), y = {
9
9
  size: h
10
10
  }, { getLabel: o } = H();
11
11
  return /* @__PURE__ */ t(C, { children: [
12
- /* @__PURE__ */ e(f, { enableIntersectionObserver: !1, src: m, className: M.desktopBackground }),
12
+ /* @__PURE__ */ e(f, { enableIntersectionObserver: !1, src: d, className: M.desktopBackground }),
13
13
  /* @__PURE__ */ t(O, { children: [
14
14
  /* @__PURE__ */ t(U, { children: [
15
15
  u.pathname !== i && /* @__PURE__ */ e(
@@ -20,7 +20,7 @@ const K = (c) => {
20
20
  label: o(Y.label_home_navigation),
21
21
  startIcon: `${n}/${r}/${l.home}`,
22
22
  onClick: () => {
23
- p(i || "/");
23
+ S(i || "/");
24
24
  }
25
25
  }
26
26
  ),
@@ -38,20 +38,20 @@ const K = (c) => {
38
38
  )
39
39
  ] })
40
40
  ] }),
41
- /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(I, { src: S }) }),
41
+ /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(I, { src: p }) }),
42
42
  /* @__PURE__ */ t(T, { children: [
43
43
  /* @__PURE__ */ t(B, { children: [
44
44
  /* @__PURE__ */ e(s, { variant: "h5", skeletonWidth: "20%", children: o("module_name") }),
45
45
  /* @__PURE__ */ e(
46
46
  s,
47
47
  {
48
- variant: "subtitleStandard",
48
+ variant: "subtitle",
49
49
  skeletonWidth: "40%",
50
50
  children: o("module_description")
51
51
  }
52
52
  )
53
53
  ] }),
54
- /* @__PURE__ */ e(k, { direction: "column", height: "auto", style: { overflow: "auto", position: "relative" }, children: d })
54
+ /* @__PURE__ */ e(k, { direction: "column", height: "auto", style: { overflow: "auto", position: "relative" }, children: m })
55
55
  ] }),
56
56
  a && a
57
57
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.4.2-beta-improvement-606-typography-leveling.0",
3
+ "version": "9.4.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@emotion/react": "11.14.0",
33
+ "react": "19.2.4",
33
34
  "react-router-dom": "6.29.0",
34
- "react": "19.1.0",
35
- "react-dom": "19.1.0",
35
+ "react-dom": "19.2.4",
36
36
  "zustand": "4.3.6",
37
37
  "@mui/material": "5.16.7"
38
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createAppMF.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/utils/createAppMF.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAiB,MAAM,iBAAiB,CAAC;AAW5E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,CAAC,KAAK,EAAE;QAAE,UAAU,CAAC,EAAE,UAAU,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,CAAC;IACzD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AACF;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,QA+ElD"}
1
+ {"version":3,"file":"createAppMF.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/utils/createAppMF.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,CAAC,KAAK,EAAE;QAAE,UAAU,CAAC,EAAE,UAAU,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,CAAC;IACzD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AA6BF;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,QA4ElD"}
@@ -1,48 +1,65 @@
1
- import { jsx as p } from "@emotion/react/jsx-runtime";
2
- import { MFHostApp as y } from "../components/MFHostApp/MFHostApp.js";
3
- import { createRoot as F } from "react-dom/client";
4
- function x(d) {
1
+ import { jsx as d } from "@emotion/react/jsx-runtime";
2
+ import { MFHostApp as w } from "../components/MFHostApp/MFHostApp.js";
3
+ import { createRoot as _ } from "react-dom/client";
4
+ function t(n, o) {
5
+ return `__root_${n}_${o}`;
6
+ }
7
+ function R(n, o) {
8
+ return window[t(n, o)];
9
+ }
10
+ function $(n, o, i) {
11
+ window[t(n, o)] = i;
12
+ }
13
+ function h(n, o) {
14
+ delete window[t(n, o)];
15
+ }
16
+ function y(n) {
5
17
  const {
6
- prefixMF: e,
7
- moduleId: n,
8
- App: i,
9
- privileges: s,
10
- appVersion: m,
11
- componentsDictionary: $,
12
- skeletonFlags: l
13
- } = d;
14
- window[`render_${e}_${n}`] = (o, u, w, c, g, f, E, v, M, r) => {
15
- const t = document.getElementById(o);
16
- if (t) {
17
- const _ = F(t);
18
- window[`__root_${e}_${o}`] = _, _.render(
19
- /* @__PURE__ */ p(
20
- y,
18
+ prefixMF: o,
19
+ moduleId: i,
20
+ App: m,
21
+ privileges: p,
22
+ appVersion: u,
23
+ componentsDictionary: l,
24
+ skeletonFlags: g
25
+ } = n;
26
+ function f(e) {
27
+ const r = document.getElementById(e.containerId);
28
+ if (r) {
29
+ const s = _(r);
30
+ $(o, e.containerId, s), s.render(
31
+ /* @__PURE__ */ d(
32
+ w,
21
33
  {
22
- environment: u,
23
- hostTools: w,
24
- axiosOperation: f,
25
- currentLocale: c,
26
- hostTheme: g,
27
- formatters: E,
28
- dynamicMFStore: v,
29
- moduleId: n,
30
- privileges: s,
31
- skeletonFlags: l,
32
- componentsDictionary: $,
33
- windowTools: M,
34
- loggedUser: r.loggedUser,
35
- children: /* @__PURE__ */ p(i, { emergeType: r.emergeType })
34
+ environment: e.environment,
35
+ hostTools: e.hostTools,
36
+ axiosOperation: e.axiosOperation,
37
+ currentLocale: e.currentLocale,
38
+ hostTheme: e.hostTheme,
39
+ formatters: e.formatter,
40
+ dynamicMFStore: e.dynamicMFStore,
41
+ moduleId: i,
42
+ privileges: p,
43
+ skeletonFlags: g,
44
+ componentsDictionary: l,
45
+ windowTools: e.windowTools,
46
+ hostRuntime: e.hostRuntime,
47
+ loggedUser: e.loggedUser,
48
+ children: /* @__PURE__ */ d(m, { emergeType: e.emergeType })
36
49
  }
37
50
  )
38
51
  );
39
52
  }
40
- }, window[`unmount_${e}_${n}`] = (o) => {
41
- window[`__root_${e}_${o}`] && (window[`__root_${e}_${o}`].unmount(), process.env.NODE_ENV === "development" && console.debug(`unmount_${e}_${n}`, o), delete window[`__root_${e}_${o}`]);
53
+ }
54
+ window[`render_v2_${o}_${i}`] = (e) => {
55
+ f(e);
56
+ }, window[`unmount_${o}_${i}`] = (e) => {
57
+ const r = R(o, e);
58
+ r && (r.unmount(), process.env.NODE_ENV === "development" && console.debug(`unmount_${o}_${i}`, e), h(o, e));
42
59
  }, process.env.NODE_ENV === "development" && console.debug(
43
- `******* Module ESM: ${e}_${n} - Version ${m} loaded ******* `
60
+ `******* Module ESM: ${o}_${i} - Version ${u} loaded ******* `
44
61
  );
45
62
  }
46
63
  export {
47
- x as createAppMF
64
+ y as createAppMF
48
65
  };