@m4l/layouts 0.1.4 → 0.1.5

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 { Page, CompanyLogo, LanguagePopover, Typography, Image } from "@m4l/components";
2
2
  import { Card, Container, Stack } from "@mui/material";
3
3
  import { styled } from "@mui/material/styles";
4
- import { useModuleDictionary, useFlagsPresent, FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider } from "@m4l/core";
4
+ import { useModuleDictionary, useFlagsPresent, FlagsProvider, DomainProvider, ModuleDictionaryProvider, ModuleSkeletonProvider } from "@m4l/core";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { a as useResponsive, b as useLocales } from "../../vendor.js";
7
7
  const RootStyle = styled("div")(({
@@ -160,17 +160,26 @@ const NoAuthModuleLayout = (props) => {
160
160
  const {
161
161
  currentLang
162
162
  } = useLocales();
163
+ const finalSkeletonFlags = skeletonFlags;
164
+ if (finalSkeletonFlags.findIndex((f) => f === "dictionary_loaded") < 0) {
165
+ finalSkeletonFlags.push("dictionary_loaded");
166
+ }
167
+ if (finalSkeletonFlags.findIndex((f) => f === "domain_loaded") < 0) {
168
+ finalSkeletonFlags.push("domain_loaded");
169
+ }
163
170
  return /* @__PURE__ */ jsx(FlagsProvider, {
164
- children: /* @__PURE__ */ jsx(ModuleDictionaryProvider, {
165
- isAuth: false,
166
- moduleId,
167
- moduleName,
168
- componentsDictionary,
169
- currentLang: currentLang.value,
170
- children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, {
171
- flags: skeletonFlags,
172
- children: /* @__PURE__ */ jsx(ModuleWrapper, {
173
- children
171
+ children: /* @__PURE__ */ jsx(DomainProvider, {
172
+ children: /* @__PURE__ */ jsx(ModuleDictionaryProvider, {
173
+ isAuth: false,
174
+ moduleId,
175
+ moduleName,
176
+ componentsDictionary,
177
+ currentLang: currentLang.value,
178
+ children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, {
179
+ flags: finalSkeletonFlags,
180
+ children: /* @__PURE__ */ jsx(ModuleWrapper, {
181
+ children
182
+ })
174
183
  })
175
184
  })
176
185
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/components": "*",