@m4l/layouts 9.7.0 → 9.7.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.
- package/components/MFHostApp/MFHostApp.d.ts.map +1 -1
- package/components/MFHostApp/MFHostApp.js +26 -25
- package/components/MFHostApp/types.d.ts +8 -8
- package/components/MFHostApp/types.d.ts.map +1 -1
- package/components/MFNoAuthApp/index.d.ts.map +1 -1
- package/components/MFNoAuthApp/index.js +21 -21
- package/package.json +1 -1
- package/utils/createAppMF.d.ts.map +1 -1
- package/utils/createAppMF.js +21 -20
|
@@ -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":"AAuBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,oDA0F9C;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { unstable_HistoryRouter as T } from "react-router-dom";
|
|
3
|
-
import { EnvironmentProvider as H, HostToolsProvider as
|
|
4
|
-
import { DeviceTypeProvider as
|
|
5
|
-
import { projectMFHostRuntimeTools as
|
|
6
|
-
import { MFHostAppErrorBoundary as
|
|
7
|
-
function
|
|
3
|
+
import { EnvironmentProvider as H, HostToolsProvider as g, NetworkProvider as E, AuthProvider as A, DomainCountryProvider as D } from "@m4l/core";
|
|
4
|
+
import { DeviceTypeProvider as R, LocalesProvider as _, HostThemeProvider as w, FormatterProvider as S, AppearanceComponentProvider as x } from "@m4l/graphics";
|
|
5
|
+
import { projectMFHostRuntimeTools as j, BaseModule as k, WindowToolsMFProvider as B, MFHostRuntimeToolsProvider as C, MFObservabilityProvider as L, DynamicMFParmsProvider as N } from "@m4l/components";
|
|
6
|
+
import { MFHostAppErrorBoundary as O } from "./MFHostAppErrorBoundary.js";
|
|
7
|
+
function G(n) {
|
|
8
8
|
const {
|
|
9
9
|
children: d,
|
|
10
10
|
currentLocale: s,
|
|
11
|
-
hostTheme:
|
|
12
|
-
environment:
|
|
11
|
+
hostTheme: l,
|
|
12
|
+
environment: c,
|
|
13
13
|
hostTools: e,
|
|
14
|
-
axiosOperation:
|
|
14
|
+
axiosOperation: m,
|
|
15
15
|
formatters: o,
|
|
16
16
|
isAuth: a = !0,
|
|
17
17
|
moduleId: i,
|
|
18
18
|
moduleNameField: u,
|
|
19
19
|
skeletonFlags: h,
|
|
20
|
-
privileges:
|
|
21
|
-
componentsDictionary:
|
|
20
|
+
privileges: v,
|
|
21
|
+
componentsDictionary: F,
|
|
22
22
|
dynamicMFStore: t,
|
|
23
|
-
windowTools:
|
|
24
|
-
hostRuntime:
|
|
23
|
+
windowTools: y,
|
|
24
|
+
hostRuntime: p,
|
|
25
|
+
observability: P,
|
|
25
26
|
// overrideContainerStyles,
|
|
26
|
-
loggedUser:
|
|
27
|
-
moduleVersion:
|
|
28
|
-
} = n, f =
|
|
29
|
-
return /* @__PURE__ */ r(H, { ...
|
|
27
|
+
loggedUser: M,
|
|
28
|
+
moduleVersion: b
|
|
29
|
+
} = n, f = j(p);
|
|
30
|
+
return /* @__PURE__ */ r(H, { ...c, children: /* @__PURE__ */ r(O, { moduleId: i, moduleVersion: b, children: /* @__PURE__ */ r(g, { ...e, children: /* @__PURE__ */ r(E, { axiosOperation: m, children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(A, { isMicroFrontEnd: !0, loggedUser: M, children: /* @__PURE__ */ r(_, { isMicroFrontEnd: !0, localeHost: s, children: /* @__PURE__ */ r(w, { isMicroFrontEnd: !0, ...l, children: /* @__PURE__ */ r(
|
|
30
31
|
T,
|
|
31
32
|
{
|
|
32
33
|
history: e.history,
|
|
33
34
|
children: /* @__PURE__ */ r(
|
|
34
|
-
|
|
35
|
+
D,
|
|
35
36
|
{
|
|
36
37
|
isMicroFrontEnd: !0,
|
|
37
38
|
id: t?.getState().dynamicMFParameters?.id || 1,
|
|
@@ -40,19 +41,19 @@ function q(n) {
|
|
|
40
41
|
decimal_symbol: o.numberFormatter.decimalSymbol,
|
|
41
42
|
thousands_symbol: o.numberFormatter.thousandsSymbol,
|
|
42
43
|
children: /* @__PURE__ */ r(
|
|
43
|
-
|
|
44
|
+
k,
|
|
44
45
|
{
|
|
45
46
|
isAuth: a,
|
|
46
47
|
moduleId: i,
|
|
47
48
|
moduleNameField: u,
|
|
48
|
-
componentsDictionary:
|
|
49
|
+
componentsDictionary: F,
|
|
49
50
|
skeletonFlags: h,
|
|
50
|
-
privileges:
|
|
51
|
-
children: /* @__PURE__ */ r(
|
|
52
|
-
|
|
51
|
+
privileges: v,
|
|
52
|
+
children: /* @__PURE__ */ r(S, { isMicroFrontEnd: !0, ...o, children: /* @__PURE__ */ r(B, { ...y, children: /* @__PURE__ */ r(
|
|
53
|
+
C,
|
|
53
54
|
{
|
|
54
55
|
value: f,
|
|
55
|
-
children: /* @__PURE__ */ r(
|
|
56
|
+
children: /* @__PURE__ */ r(L, { value: P, children: /* @__PURE__ */ r(N, { store: t, children: /* @__PURE__ */ r(x, { children: d }) }) })
|
|
56
57
|
}
|
|
57
58
|
) }) })
|
|
58
59
|
}
|
|
@@ -63,6 +64,6 @@ function q(n) {
|
|
|
63
64
|
) }) }) }) }) }) }) }) });
|
|
64
65
|
}
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
G as MFHostApp,
|
|
68
|
+
G as default
|
|
68
69
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AuthUserType, AxiosOperation, EnvironmentType, HostToolsType } from '@m4l/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BaseModuleProps, DynamicMFStore, EmergeType, M4LOverridesStyleRules, MFHostRuntime, WindowToolsMF } from '@m4l/components';
|
|
3
|
+
import { MFObservabilityService } from '../../../../../out-tsc/libs/observability/mf/index.d.ts';
|
|
4
|
+
import { Formatters, HostThemeType, LocaleType } from '@m4l/graphics';
|
|
5
|
+
import { Theme } from '@mui/material/styles';
|
|
4
6
|
import { MFHostAppSlots } from './slots/styled';
|
|
5
7
|
import { MF_HOST_APP_KEY } from './constants';
|
|
6
|
-
import { Theme } from '@mui/material/styles';
|
|
7
8
|
export interface ByHostProps {
|
|
8
9
|
environment: EnvironmentType;
|
|
9
10
|
hostTools: HostToolsType;
|
|
@@ -14,18 +15,17 @@ export interface ByHostProps {
|
|
|
14
15
|
dynamicMFStore: DynamicMFStore;
|
|
15
16
|
windowTools: WindowToolsMF;
|
|
16
17
|
hostRuntime?: MFHostRuntime;
|
|
18
|
+
observability?: MFObservabilityService;
|
|
17
19
|
/**
|
|
18
|
-
* @deprecated
|
|
20
|
+
* @deprecated Do not use. It no longer affects responsive breakpoint handling.
|
|
19
21
|
*/
|
|
20
22
|
observedDivRef?: Element | Text | null;
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
23
|
-
* cuando se cambia el idioma, desde MFHostApp/MFWindowsTitle
|
|
24
|
-
* @deprecated no usar, no tiene efecto. utilizar el hook useMFWindowsTitle
|
|
24
|
+
* @deprecated Do not use. It no longer affects host title synchronization.
|
|
25
25
|
*/
|
|
26
26
|
isAddEditModule?: boolean;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Logged user forwarded to microfrontends that still need authenticated user context.
|
|
29
29
|
*/
|
|
30
30
|
loggedUser?: AuthUserType;
|
|
31
31
|
/**
|
|
@@ -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,
|
|
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,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,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;IAC5B,aAAa,CAAC,EAAE,sBAAsB,CAAC;IAEvC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;IACvC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,eAAe,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,cAAc,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,eAAe,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -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":"AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI3C;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,oDA4ClD;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { DomainCountryProvider as
|
|
3
|
-
import { DeviceTypeProvider as
|
|
4
|
-
import { HostRuntimeProvider as
|
|
5
|
-
import { useMemo as
|
|
6
|
-
import { createMFNoAuthHostRuntime as
|
|
7
|
-
import { MFHostAppErrorBoundary as
|
|
8
|
-
function
|
|
2
|
+
import { DomainCountryProvider as a } from "@m4l/core";
|
|
3
|
+
import { DeviceTypeProvider as p, FormatterProvider as h } from "@m4l/graphics";
|
|
4
|
+
import { useShellObservability as y, HostRuntimeProvider as v, BaseModule as f, MFObservabilityProvider as F } from "@m4l/components";
|
|
5
|
+
import { useMemo as b } from "react";
|
|
6
|
+
import { createMFNoAuthHostRuntime as M } from "./createMFNoAuthHostRuntime.js";
|
|
7
|
+
import { MFHostAppErrorBoundary as A } from "../MFHostApp/MFHostAppErrorBoundary.js";
|
|
8
|
+
function O(e) {
|
|
9
9
|
const {
|
|
10
|
-
children:
|
|
11
|
-
formatters:
|
|
10
|
+
children: i,
|
|
11
|
+
formatters: t,
|
|
12
12
|
moduleId: o,
|
|
13
13
|
moduleNameField: n,
|
|
14
14
|
skeletonFlags: m,
|
|
15
|
-
privileges:
|
|
16
|
-
componentsDictionary:
|
|
17
|
-
isAuth:
|
|
18
|
-
} = e,
|
|
19
|
-
return /* @__PURE__ */ r(
|
|
15
|
+
privileges: s,
|
|
16
|
+
componentsDictionary: d,
|
|
17
|
+
isAuth: l
|
|
18
|
+
} = e, u = b(() => M(), []), c = y();
|
|
19
|
+
return /* @__PURE__ */ r(v, { value: u, children: /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(a, { isMicroFrontEnd: !0, ...{
|
|
20
20
|
id: 1,
|
|
21
21
|
currency: "USD",
|
|
22
22
|
currency_decimal_digits: 2,
|
|
23
23
|
decimal_symbol: ".",
|
|
24
24
|
thousands_symbol: ","
|
|
25
|
-
}, children: /* @__PURE__ */ r(
|
|
25
|
+
}, children: /* @__PURE__ */ r(A, { moduleId: o, children: /* @__PURE__ */ r(
|
|
26
26
|
f,
|
|
27
27
|
{
|
|
28
|
-
isAuth:
|
|
28
|
+
isAuth: l,
|
|
29
29
|
moduleId: o,
|
|
30
30
|
moduleNameField: n,
|
|
31
|
-
componentsDictionary:
|
|
31
|
+
componentsDictionary: d,
|
|
32
32
|
skeletonFlags: m,
|
|
33
|
-
privileges:
|
|
34
|
-
children: /* @__PURE__ */ r(
|
|
33
|
+
privileges: s,
|
|
34
|
+
children: /* @__PURE__ */ r(h, { isMicroFrontEnd: !0, ...t, children: /* @__PURE__ */ r(F, { value: c, children: i }) })
|
|
35
35
|
}
|
|
36
36
|
) }) }) }) });
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
O as MFNoAuthApp,
|
|
40
|
+
O as default
|
|
41
41
|
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
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;AAS7C,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,
|
|
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;AAS7C,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,QAkFlD"}
|
package/utils/createAppMF.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { MFHostApp as w } from "../components/MFHostApp/MFHostApp.js";
|
|
3
3
|
import { createRoot as R } from "react-dom/client";
|
|
4
4
|
function s(n, o) {
|
|
5
5
|
return `__root_${n}_${o}`;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function v(n, o) {
|
|
8
8
|
return window[s(n, o)];
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
window[s(n, o)] =
|
|
10
|
+
function $(n, o, i) {
|
|
11
|
+
window[s(n, o)] = i;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function h(n, o) {
|
|
14
14
|
delete window[s(n, o)];
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function a(n) {
|
|
17
17
|
const {
|
|
18
18
|
prefixMF: o,
|
|
19
|
-
moduleId:
|
|
20
|
-
App:
|
|
19
|
+
moduleId: i,
|
|
20
|
+
App: u,
|
|
21
21
|
privileges: p,
|
|
22
22
|
appVersion: t,
|
|
23
23
|
componentsDictionary: g,
|
|
24
24
|
skeletonFlags: f
|
|
25
25
|
} = n;
|
|
26
26
|
function _(e) {
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
-
const m = R(
|
|
30
|
-
|
|
31
|
-
/* @__PURE__ */
|
|
27
|
+
const r = document.getElementById(e.containerId);
|
|
28
|
+
if (r) {
|
|
29
|
+
const m = R(r);
|
|
30
|
+
$(o, e.containerId, m), m.render(
|
|
31
|
+
/* @__PURE__ */ l(
|
|
32
32
|
w,
|
|
33
33
|
{
|
|
34
34
|
environment: e.environment,
|
|
@@ -38,15 +38,16 @@ function y(n) {
|
|
|
38
38
|
hostTheme: e.hostTheme,
|
|
39
39
|
formatters: e.formatter,
|
|
40
40
|
dynamicMFStore: e.dynamicMFStore,
|
|
41
|
-
moduleId:
|
|
41
|
+
moduleId: i,
|
|
42
42
|
moduleVersion: t,
|
|
43
43
|
privileges: p,
|
|
44
44
|
skeletonFlags: f,
|
|
45
45
|
componentsDictionary: g,
|
|
46
46
|
windowTools: e.windowTools,
|
|
47
47
|
hostRuntime: e.hostRuntime,
|
|
48
|
+
observability: e.observability,
|
|
48
49
|
loggedUser: e.loggedUser,
|
|
49
|
-
children: /* @__PURE__ */ u
|
|
50
|
+
children: /* @__PURE__ */ l(u, { emergeType: e.emergeType })
|
|
50
51
|
}
|
|
51
52
|
)
|
|
52
53
|
);
|
|
@@ -55,13 +56,13 @@ function y(n) {
|
|
|
55
56
|
const d = ((e) => {
|
|
56
57
|
_(e);
|
|
57
58
|
});
|
|
58
|
-
d.__version = t, window[`render_v2_${o}_${
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
d.__version = t, window[`render_v2_${o}_${i}`] = d, window[`unmount_${o}_${i}`] = (e) => {
|
|
60
|
+
const r = v(o, e);
|
|
61
|
+
r && (r.unmount(), process.env.NODE_ENV === "development" && console.debug(`unmount_${o}_${i}`, e), h(o, e));
|
|
61
62
|
}, process.env.NODE_ENV === "development" && console.debug(
|
|
62
|
-
`******* Module ESM: ${o}_${
|
|
63
|
+
`******* Module ESM: ${o}_${i} - Version ${t} loaded ******* `
|
|
63
64
|
);
|
|
64
65
|
}
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
a as createAppMF
|
|
67
68
|
};
|