@m4l/layouts 0.1.17 → 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.
@@ -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
- import type { BrowserHistory } from 'history';
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 declare type MFHostAppProps = {
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.6a6cd7c4.js";
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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { M as n } from "./components/MFIsolationApp/index.967f891d.js";
2
- import { M as f } from "./components/MFHostApp/index.5af54b8e.js";
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.6a6cd7c4.js";
16
- import "./vendor.496d5f73.js";
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";
@@ -1,4 +1,4 @@
1
- import { c as le } from "./vendor.496d5f73.js";
1
+ import { c as le } from "./vendor.63d78656.js";
2
2
  function G() {
3
3
  return G = Object.assign ? Object.assign.bind() : function(r) {
4
4
  for (var t = 1; t < arguments.length; t++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/components": "*",
@@ -1,7 +1,7 @@
1
- import "./components/MFIsolationApp/index.967f891d.js";
1
+ import "./components/MFIsolationApp/index.21e432e9.js";
2
2
  import "react-router-dom";
3
- import "@m4l/graphics";
4
3
  import "@m4l/core";
4
+ import "@m4l/graphics";
5
5
  import "react/jsx-runtime";
6
6
  import "./contexts/AuthContext/index.6f966215.js";
7
7
  import "./layouts/ModuleLayout/index.842072c5.js";
@@ -10,7 +10,7 @@ import "react";
10
10
  import "./layouts/MasterDetailLayout/index.71de0dc7.js";
11
11
  import "@mui/material";
12
12
  import "./layouts/NoAuthModuleLayout/index.5d1098ef.js";
13
- import "./components/MFHostApp/index.5af54b8e.js";
13
+ import "./components/MFHostApp/index.e1f2766e.js";
14
14
  import "./hooks/useMasterDetail/index.8e9e900b.js";
15
15
  import "./hooks/useAuth/index.cb6a3420.js";
16
16
  import "./hooks/useModule/index.096d7d13.js";
@@ -1,32 +0,0 @@
1
- import { unstable_HistoryRouter as c } from "react-router-dom";
2
- import { LocalesProvider as d, HostThemeProvider as m } from "@m4l/graphics";
3
- import { DomainCountryProvider as u } from "@m4l/core";
4
- import { jsx as r } from "react/jsx-runtime";
5
- function f(o) {
6
- const {
7
- children: t,
8
- currentLocale: e,
9
- hostTheme: i,
10
- history: n,
11
- domainCountryId: s
12
- } = o;
13
- return /* @__PURE__ */ r(d, {
14
- isMicroFrontEnd: !0,
15
- localeHost: e,
16
- children: /* @__PURE__ */ r(m, {
17
- isMicroFrontEnd: !0,
18
- ...i,
19
- children: /* @__PURE__ */ r(u, {
20
- domainCountryId: s,
21
- isMicroFrontEnd: !0,
22
- children: /* @__PURE__ */ r(c, {
23
- history: n,
24
- children: t
25
- })
26
- })
27
- })
28
- });
29
- }
30
- export {
31
- f as M
32
- };