@m4l/layouts 0.1.16 → 0.1.18
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/index.e1f2766e.js +43 -0
- package/components/MFHostApp/types.d.ts +4 -9
- package/components/MFIsolationApp/{index.967f891d.js → index.21e432e9.js} +1 -1
- package/components/index.d.ts +2 -2
- package/index.js +4 -4
- package/{node_modules.6a6cd7c4.js → node_modules.adf5d2c5.js} +1 -1
- package/package.json +1 -1
- package/{vendor.9dd106b8.js → vendor.63d78656.js} +5 -6
- package/components/MFHostApp/index.60578754.js +0 -33
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { unstable_HistoryRouter as l } from "react-router-dom";
|
|
2
|
+
import { EnvironmentProvider as m, HostToolsProvider as h, NetworkProvider as u, DomainCountryProvider as a } from "@m4l/core";
|
|
3
|
+
import { LocalesProvider as p, HostThemeProvider as v } from "@m4l/graphics";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
function M(e) {
|
|
6
|
+
const {
|
|
7
|
+
children: i,
|
|
8
|
+
currentLocale: t,
|
|
9
|
+
hostTheme: n,
|
|
10
|
+
environment: s,
|
|
11
|
+
hostTools: o,
|
|
12
|
+
axiosOperation: d,
|
|
13
|
+
domainCountryId: c
|
|
14
|
+
} = e;
|
|
15
|
+
return /* @__PURE__ */ r(m, {
|
|
16
|
+
...s,
|
|
17
|
+
children: /* @__PURE__ */ r(h, {
|
|
18
|
+
...o,
|
|
19
|
+
children: /* @__PURE__ */ r(u, {
|
|
20
|
+
axiosOperation: d,
|
|
21
|
+
children: /* @__PURE__ */ r(p, {
|
|
22
|
+
isMicroFrontEnd: !0,
|
|
23
|
+
localeHost: t,
|
|
24
|
+
children: /* @__PURE__ */ r(v, {
|
|
25
|
+
isMicroFrontEnd: !0,
|
|
26
|
+
...n,
|
|
27
|
+
children: /* @__PURE__ */ r(a, {
|
|
28
|
+
domainCountryId: c,
|
|
29
|
+
isMicroFrontEnd: !0,
|
|
30
|
+
children: /* @__PURE__ */ r(l, {
|
|
31
|
+
history: o.history,
|
|
32
|
+
children: i
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
M
|
|
43
|
+
};
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { AxiosOperation, EnvironmentType, HostToolsType } from '@m4l/core';
|
|
3
3
|
import { HostThemeType, LocaleType } from '@m4l/graphics';
|
|
4
|
-
|
|
5
|
-
export declare type ByHostProps = {
|
|
4
|
+
export interface ByHostProps {
|
|
6
5
|
environment: EnvironmentType;
|
|
7
6
|
hostTools: HostToolsType;
|
|
8
7
|
axiosOperation: AxiosOperation;
|
|
9
8
|
hostTheme: HostThemeType;
|
|
10
9
|
currentLocale: LocaleType;
|
|
11
10
|
domainCountryId: number;
|
|
12
|
-
}
|
|
13
|
-
export
|
|
14
|
-
domainCountryId: number;
|
|
15
|
-
history: BrowserHistory;
|
|
16
|
-
hostTheme: HostThemeType;
|
|
17
|
-
currentLocale: LocaleType;
|
|
11
|
+
}
|
|
12
|
+
export interface MFHostAppProps extends ByHostProps {
|
|
18
13
|
children: ReactNode;
|
|
19
|
-
}
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@ import { ToastContainer as P, toast as M } from "react-toastify";
|
|
|
4
4
|
import { HostThemeProvider as w, defaultThemeOptions as F, fnComponentsOverrides as H, ProgressBarStyle as g, LocalesProvider as A, getLocaleFromNetwork as k } from "@m4l/graphics";
|
|
5
5
|
import { A as T } from "../../contexts/AuthContext/index.6f966215.js";
|
|
6
6
|
import { voidFunction as m, EnvironmentProvider as x, HostToolsProvider as E, NetworkProvider as C, axiosOperation as N, DomainCountryProvider as O } from "@m4l/core";
|
|
7
|
-
import { c as I, f as L, N as _ } from "../../node_modules.
|
|
7
|
+
import { c as I, f as L, N as _ } from "../../node_modules.adf5d2c5.js";
|
|
8
8
|
import { u as b } from "../../hooks/useAuth/index.cb6a3420.js";
|
|
9
9
|
import { jsx as o, jsxs as j } from "react/jsx-runtime";
|
|
10
10
|
function B(r) {
|
package/components/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { MFIsolationApp } from './MFIsolationApp';
|
|
2
|
+
export { MFHostApp } from './MFHostApp';
|
|
3
3
|
export type { ByHostProps } from './MFHostApp/types';
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as n } from "./components/MFIsolationApp/index.
|
|
2
|
-
import { M as f } from "./components/MFHostApp/index.
|
|
1
|
+
import { M as n } from "./components/MFIsolationApp/index.21e432e9.js";
|
|
2
|
+
import { M as f } from "./components/MFHostApp/index.e1f2766e.js";
|
|
3
3
|
import { a as D, A } from "./contexts/AuthContext/index.6f966215.js";
|
|
4
4
|
import { a as c, d as g, g as h } from "./layouts/ModuleLayout/index.842072c5.js";
|
|
5
5
|
import { a as N, d as F, g as v } from "./layouts/MasterDetailLayout/index.71de0dc7.js";
|
|
@@ -12,8 +12,8 @@ import "react-router-dom";
|
|
|
12
12
|
import "react-toastify";
|
|
13
13
|
import "@m4l/graphics";
|
|
14
14
|
import "@m4l/core";
|
|
15
|
-
import "./node_modules.
|
|
16
|
-
import "./vendor.
|
|
15
|
+
import "./node_modules.adf5d2c5.js";
|
|
16
|
+
import "./vendor.63d78656.js";
|
|
17
17
|
import "react/jsx-runtime";
|
|
18
18
|
import "@m4l/components";
|
|
19
19
|
import "@mui/material";
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./components/MFIsolationApp/index.
|
|
1
|
+
import "./components/MFIsolationApp/index.21e432e9.js";
|
|
2
2
|
import "react-router-dom";
|
|
3
|
-
import "@m4l/graphics";
|
|
4
|
-
import "./node_modules.6a6cd7c4.js";
|
|
5
3
|
import "@m4l/core";
|
|
4
|
+
import "@m4l/graphics";
|
|
6
5
|
import "react/jsx-runtime";
|
|
7
6
|
import "./contexts/AuthContext/index.6f966215.js";
|
|
8
7
|
import "./layouts/ModuleLayout/index.842072c5.js";
|
|
@@ -11,11 +10,11 @@ import "react";
|
|
|
11
10
|
import "./layouts/MasterDetailLayout/index.71de0dc7.js";
|
|
12
11
|
import "@mui/material";
|
|
13
12
|
import "./layouts/NoAuthModuleLayout/index.5d1098ef.js";
|
|
14
|
-
import "./components/MFHostApp/index.
|
|
13
|
+
import "./components/MFHostApp/index.e1f2766e.js";
|
|
15
14
|
import "./hooks/useMasterDetail/index.8e9e900b.js";
|
|
16
15
|
import "./hooks/useAuth/index.cb6a3420.js";
|
|
17
16
|
import "./hooks/useModule/index.096d7d13.js";
|
|
18
|
-
var
|
|
17
|
+
var w = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
w as c
|
|
21
20
|
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { unstable_HistoryRouter as c } from "react-router-dom";
|
|
2
|
-
import { LocalesProvider as m, HostThemeProvider as d } from "@m4l/graphics";
|
|
3
|
-
import "../../node_modules.6a6cd7c4.js";
|
|
4
|
-
import { DomainCountryProvider as u } from "@m4l/core";
|
|
5
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
-
function M(o) {
|
|
7
|
-
const {
|
|
8
|
-
children: t,
|
|
9
|
-
currentLocale: i,
|
|
10
|
-
hostTheme: e,
|
|
11
|
-
history: n,
|
|
12
|
-
domainCountryId: s
|
|
13
|
-
} = o;
|
|
14
|
-
return /* @__PURE__ */ r(m, {
|
|
15
|
-
isMicroFrontEnd: !0,
|
|
16
|
-
localeHost: i,
|
|
17
|
-
children: /* @__PURE__ */ r(d, {
|
|
18
|
-
isMicroFrontEnd: !0,
|
|
19
|
-
...e,
|
|
20
|
-
children: /* @__PURE__ */ r(u, {
|
|
21
|
-
domainCountryId: s,
|
|
22
|
-
isMicroFrontEnd: !0,
|
|
23
|
-
children: /* @__PURE__ */ r(c, {
|
|
24
|
-
history: n,
|
|
25
|
-
children: t
|
|
26
|
-
})
|
|
27
|
-
})
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
M
|
|
33
|
-
};
|