umwd-components 0.1.71 → 0.1.73

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.
@@ -11,9 +11,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var React = require('react');
13
13
  var material = require('@mui/material');
14
- var muiMarkdown = require('mui-markdown');
15
14
  var StrapiImage = require('./StrapiImage.js');
16
15
 
16
+ const MuiMarkdown = /*#__PURE__*/React.lazy(() => import( /* webpackChunkName: "mui-markdown" */'mui-markdown'));
17
17
  function TextImageSection(_ref) {
18
18
  let {
19
19
  data
@@ -72,7 +72,7 @@ function TextImageSection(_ref) {
72
72
  alignItems: "center",
73
73
  justifyContent: "center"
74
74
  }
75
- }, /*#__PURE__*/React.createElement(muiMarkdown.MuiMarkdown, null, text)))));
75
+ }, /*#__PURE__*/React.createElement(MuiMarkdown, null, text)))));
76
76
  }
77
77
 
78
78
  exports.default = TextImageSection;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  /*
2
3
  * UMWD-Components
3
4
  * @copyright Jelle Paulus
@@ -7,9 +7,9 @@
7
7
 
8
8
  import React from 'react';
9
9
  import { Container, Paper, Typography, Stack, Box } from '@mui/material';
10
- import { MuiMarkdown } from 'mui-markdown';
11
10
  import { StrapiImage } from './StrapiImage.js';
12
11
 
12
+ const MuiMarkdown = /*#__PURE__*/React.lazy(() => import( /* webpackChunkName: "mui-markdown" */'mui-markdown'));
13
13
  function TextImageSection(_ref) {
14
14
  let {
15
15
  data
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  /*
2
3
  * UMWD-Components
3
4
  * @copyright Jelle Paulus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.71",
3
+ "version": "0.1.73",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -2,7 +2,9 @@
2
2
 
3
3
  import React from "react";
4
4
  import { Box, Container, Paper, Typography, Stack } from "@mui/material";
5
- import { MuiMarkdown } from "mui-markdown";
5
+ const MuiMarkdown = React.lazy(
6
+ () => import(/* webpackChunkName: "mui-markdown" */ "mui-markdown")
7
+ );
6
8
  import { StrapiImage } from "./StrapiImage.tsx";
7
9
 
8
10
  type maxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | string;
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import { Button, SvgIcon, useTheme } from "@mui/material";
3
5