mayak-common-library 0.0.20 → 0.0.21

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/dist/index.js CHANGED
@@ -631,6 +631,7 @@ var _theme = {
631
631
  };
632
632
 
633
633
  // src/theme/index.tsx
634
+ var MUIWrapperContext = (0, import_react6.createContext)({});
634
635
  function ThemeRegistry(props) {
635
636
  const { children } = props;
636
637
  const [{ cache, flush }] = (0, import_react6.useState)(() => {
@@ -677,7 +678,7 @@ function ThemeRegistry(props) {
677
678
  }
678
679
  );
679
680
  });
680
- return /* @__PURE__ */ React.createElement(import_react7.CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(import_ThemeProvider.default, { theme }, /* @__PURE__ */ React.createElement(import_CssBaseline.default, null), children));
681
+ return /* @__PURE__ */ React.createElement(MUIWrapperContext.Provider, { value: {} }, /* @__PURE__ */ React.createElement(import_react7.CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(import_ThemeProvider.default, { theme }, /* @__PURE__ */ React.createElement(import_CssBaseline.default, null), children)));
681
682
  }
682
683
 
683
684
  // src/providers/Providers.tsx
package/dist/index.mjs CHANGED
@@ -535,7 +535,7 @@ var FromToInput = ({ label }) => {
535
535
  var FromToInput_default = FromToInput;
536
536
 
537
537
  // src/theme/index.tsx
538
- import { useMemo, useState as useState3 } from "react";
538
+ import { createContext, useMemo, useState as useState3 } from "react";
539
539
  import createCache from "@emotion/cache";
540
540
  import { useServerInsertedHTML } from "next/navigation";
541
541
  import { CacheProvider } from "@emotion/react";
@@ -581,6 +581,7 @@ var _theme = {
581
581
  };
582
582
 
583
583
  // src/theme/index.tsx
584
+ var MUIWrapperContext = createContext({});
584
585
  function ThemeRegistry(props) {
585
586
  const { children } = props;
586
587
  const [{ cache, flush }] = useState3(() => {
@@ -627,7 +628,7 @@ function ThemeRegistry(props) {
627
628
  }
628
629
  );
629
630
  });
630
- return /* @__PURE__ */ React.createElement(CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React.createElement(CssBaseline, null), children));
631
+ return /* @__PURE__ */ React.createElement(MUIWrapperContext.Provider, { value: {} }, /* @__PURE__ */ React.createElement(CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React.createElement(CssBaseline, null), children)));
631
632
  }
632
633
 
633
634
  // src/providers/Providers.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",