@mui/docs 6.4.4 → 7.0.0-alpha.0

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/README.md CHANGED
@@ -9,7 +9,7 @@ Install the package in your project directory with:
9
9
  <!-- #default-branch-switch -->
10
10
 
11
11
  ```bash
12
- npm install @mui/docs
12
+ npm install @mui/docs@next
13
13
  ```
14
14
 
15
15
  The docs has a peer dependency on the core components.
@@ -18,7 +18,7 @@ If you are not already using Material UI in your project, you can add it with:
18
18
  <!-- #default-branch-switch -->
19
19
 
20
20
  ```bash
21
- npm install @mui/material
21
+ npm install @mui/material@next
22
22
  ```
23
23
 
24
24
  ## Documentation
@@ -47,10 +47,6 @@ function AdCarbonImage() {
47
47
  //
48
48
  // To solve the issue, for example StrictModel double effect execution, we debounce the load action.
49
49
  const load = setTimeout(() => {
50
- // The DOM node could have unmounted at this point.
51
- if (!ref.current) {
52
- return;
53
- }
54
50
  const script = (0, _loadScript.default)('https://cdn.carbonads.com/carbon.js?serve=CKYIL27L&placement=material-uicom', ref.current);
55
51
  script.id = '_carbonads_js';
56
52
  });
@@ -8,6 +8,8 @@ function loadScript(src, position) {
8
8
  const script = document.createElement('script');
9
9
  script.setAttribute('async', '');
10
10
  script.src = src;
11
- position.appendChild(script);
11
+ if (position) {
12
+ position.appendChild(script);
13
+ }
12
14
  return script;
13
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "6.4.4",
3
+ "version": "7.0.0-alpha.0",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI Docs - Documentation building blocks.",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-docs",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.26.0",
26
+ "@babel/runtime": "^7.26.7",
27
27
  "clipboard-copy": "^4.0.1",
28
28
  "clsx": "^2.1.1",
29
29
  "nprogress": "^0.2.0",
30
30
  "prop-types": "^15.8.1",
31
- "@mui/internal-markdown": "^1.0.25"
31
+ "@mui/internal-markdown": "^2.0.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@mui/base": "*",