@m4l/layouts 3.0.0 → 3.1.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.
@@ -1,7 +1,7 @@
1
1
  import { unstable_HistoryRouter } from "react-router-dom";
2
2
  import { EnvironmentProvider, HostToolsProvider, NetworkProvider, DomainCountryProvider } from "@m4l/core";
3
3
  import { LocalesProvider, HostThemeProvider, ResponsiveContainerProvider, FormatterProvider } from "@m4l/graphics";
4
- import { BaseModule, WindowToolsMFProvider, DynamicMFParmsProvider } from "@m4l/components";
4
+ import { BaseModule, WindowToolsMFProvider, DynamicMFParmsProvider, AppearanceComponentProvider } from "@m4l/components";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { M as MFWindowsTitle } from "../index-uQ5qk7MJ.js";
7
7
  function MFHostApp(props) {
@@ -24,6 +24,7 @@ function MFHostApp(props) {
24
24
  observedDivRef,
25
25
  isAddEditModule = false
26
26
  } = props;
27
+ const hostIsMobile = hostTheme.hostThemeOptions.generalSettings.isMobile;
27
28
  return /* @__PURE__ */ jsx(EnvironmentProvider, {
28
29
  ...environment,
29
30
  children: /* @__PURE__ */ jsx(HostToolsProvider, {
@@ -36,6 +37,7 @@ function MFHostApp(props) {
36
37
  children: /* @__PURE__ */ jsx(HostThemeProvider, {
37
38
  isMicroFrontEnd: true,
38
39
  ...hostTheme,
40
+ isMobile: hostIsMobile,
39
41
  children: /* @__PURE__ */ jsx(ResponsiveContainerProvider, {
40
42
  observedDivRef,
41
43
  children: /* @__PURE__ */ jsx(unstable_HistoryRouter, {
@@ -63,7 +65,9 @@ function MFHostApp(props) {
63
65
  store: dynamicMFStore,
64
66
  children: /* @__PURE__ */ jsx(MFWindowsTitle, {
65
67
  isAddEditModule,
66
- children
68
+ children: /* @__PURE__ */ jsx(AppearanceComponentProvider, {
69
+ children
70
+ })
67
71
  })
68
72
  })
69
73
  })
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a } from "./components/index-uQ5qk7MJ.js";
2
- import { M } from "./components/MFHostApp/index-_3WAKrrA.js";
2
+ import { M } from "./components/MFHostApp/index-VbXPmijD.js";
3
3
  import { A, a as a2 } from "./contexts/AuthContext/index-DARkRRM4.js";
4
4
  import { a as a3, d, g } from "./layouts/ModuleLayout/index-DAtDuh6s.js";
5
5
  import { a as a4, d as d2, g as g2 } from "./layouts/MasterDetailLayout/index-DeC4RoBs.js";
@@ -0,0 +1 @@
1
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "private": false,
package/vite-env.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- /// <reference types="vite/client" />
2
- /// <reference types="vitest" />
3
- /// <reference types="vitest/importMeta" />
1
+ /// <reference types="vite/client" />
2
+ /// <reference types="vitest" />
3
+ /// <reference types="vitest/importMeta" />