@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.
- package/components/MFHostApp/MFHostApp.d.ts +1 -1
- package/components/MFHostApp/MFHostApp.d.ts.map +1 -1
- package/components/MFHostApp/MFHostApp.js +38 -32
- package/components/MFHostApp/types.d.ts +2 -1
- package/components/MFHostApp/types.d.ts.map +1 -1
- package/components/MFNoAuthApp/createMFNoAuthHostRuntime.d.ts +6 -0
- package/components/MFNoAuthApp/createMFNoAuthHostRuntime.d.ts.map +1 -0
- package/components/MFNoAuthApp/createMFNoAuthHostRuntime.js +6 -0
- package/components/MFNoAuthApp/index.d.ts +1 -1
- package/components/MFNoAuthApp/index.d.ts.map +1 -1
- package/components/MFNoAuthApp/index.js +25 -23
- package/components/MFNoAuthApp/types.d.ts +1 -1
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.js +6 -6
- package/package.json +3 -3
- package/utils/createAppMF.d.ts.map +1 -1
- package/utils/createAppMF.js +54 -37
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MFHostAppProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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":"
|
|
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
|
|
3
|
-
import { EnvironmentProvider as
|
|
4
|
-
import { DeviceTypeProvider as
|
|
5
|
-
import { BaseModule as
|
|
6
|
-
function
|
|
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:
|
|
11
|
-
environment:
|
|
12
|
-
hostTools:
|
|
10
|
+
hostTheme: s,
|
|
11
|
+
environment: c,
|
|
12
|
+
hostTools: e,
|
|
13
13
|
axiosOperation: m,
|
|
14
|
-
formatters:
|
|
14
|
+
formatters: o,
|
|
15
15
|
isAuth: l = !0,
|
|
16
16
|
moduleId: a,
|
|
17
17
|
moduleNameField: u,
|
|
18
18
|
skeletonFlags: h,
|
|
19
|
-
privileges:
|
|
20
|
-
componentsDictionary:
|
|
19
|
+
privileges: F,
|
|
20
|
+
componentsDictionary: v,
|
|
21
21
|
dynamicMFStore: i,
|
|
22
|
-
windowTools:
|
|
22
|
+
windowTools: y,
|
|
23
|
+
hostRuntime: p,
|
|
23
24
|
// overrideContainerStyles,
|
|
24
|
-
loggedUser:
|
|
25
|
-
} = t;
|
|
26
|
-
return /* @__PURE__ */ r(
|
|
27
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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:
|
|
37
|
-
currency_decimal_digits:
|
|
38
|
-
decimal_symbol:
|
|
39
|
-
thousands_symbol:
|
|
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
|
-
|
|
41
|
+
S,
|
|
42
42
|
{
|
|
43
43
|
isAuth: l,
|
|
44
44
|
moduleId: a,
|
|
45
45
|
moduleNameField: u,
|
|
46
|
-
componentsDictionary:
|
|
46
|
+
componentsDictionary: v,
|
|
47
47
|
skeletonFlags: h,
|
|
48
|
-
privileges:
|
|
49
|
-
children: /* @__PURE__ */ r(
|
|
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
|
-
|
|
59
|
-
|
|
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;
|
|
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 @@
|
|
|
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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MFNoAuthAppProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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":"
|
|
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
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { DomainCountryProvider as l } from "@m4l/core";
|
|
3
|
-
import { DeviceTypeProvider as
|
|
4
|
-
import { BaseModule as
|
|
5
|
-
|
|
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:
|
|
9
|
-
moduleId:
|
|
10
|
+
formatters: t,
|
|
11
|
+
moduleId: i,
|
|
10
12
|
moduleNameField: n,
|
|
11
|
-
skeletonFlags:
|
|
12
|
-
privileges:
|
|
13
|
-
componentsDictionary:
|
|
14
|
-
isAuth:
|
|
15
|
-
} =
|
|
16
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
23
|
-
|
|
24
|
+
}, children: /* @__PURE__ */ o(
|
|
25
|
+
f,
|
|
24
26
|
{
|
|
25
|
-
isAuth:
|
|
26
|
-
moduleId:
|
|
27
|
+
isAuth: u,
|
|
28
|
+
moduleId: i,
|
|
27
29
|
moduleNameField: n,
|
|
28
|
-
componentsDictionary:
|
|
29
|
-
skeletonFlags:
|
|
30
|
-
privileges:
|
|
31
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
37
|
-
|
|
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
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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: "
|
|
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:
|
|
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
|
|
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.
|
|
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,
|
|
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"}
|
package/utils/createAppMF.js
CHANGED
|
@@ -1,48 +1,65 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { MFHostApp as
|
|
3
|
-
import { createRoot as
|
|
4
|
-
function
|
|
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:
|
|
7
|
-
moduleId:
|
|
8
|
-
App:
|
|
9
|
-
privileges:
|
|
10
|
-
appVersion:
|
|
11
|
-
componentsDictionary:
|
|
12
|
-
skeletonFlags:
|
|
13
|
-
} =
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
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:
|
|
23
|
-
hostTools:
|
|
24
|
-
axiosOperation:
|
|
25
|
-
currentLocale:
|
|
26
|
-
hostTheme:
|
|
27
|
-
formatters:
|
|
28
|
-
dynamicMFStore:
|
|
29
|
-
moduleId:
|
|
30
|
-
privileges:
|
|
31
|
-
skeletonFlags:
|
|
32
|
-
componentsDictionary:
|
|
33
|
-
windowTools:
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
}
|
|
41
|
-
|
|
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: ${
|
|
60
|
+
`******* Module ESM: ${o}_${i} - Version ${u} loaded ******* `
|
|
44
61
|
);
|
|
45
62
|
}
|
|
46
63
|
export {
|
|
47
|
-
|
|
64
|
+
y as createAppMF
|
|
48
65
|
};
|