@mui/docs 6.0.0-alpha.10 → 6.0.0-alpha.11
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.11
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.10..next -->
|
|
6
|
+
|
|
7
|
+
_Jun 11, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 18 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@6.0.0-alpha.11`
|
|
12
|
+
|
|
13
|
+
- ​<!-- 38 -->[Autocomplete] Shouldn't resize when hovering (#42452) @ZeeshanTamboli
|
|
14
|
+
- ​<!-- 37 -->[Chip] Fix focus issue related with the Escape event (#41578) @shrilsharma
|
|
15
|
+
- ​<!-- 12 -->[Grid] Fix support for CSS variables (#42574) @oliviertassinari
|
|
16
|
+
- ​<!-- 11 -->[InputBase] Use `globalCss` for Pigment integration (#42431) @siriwatknp
|
|
17
|
+
- ​<!-- 10 -->Change React.ReactElement type from `any` to `unknown` (#42473) @sai6855
|
|
18
|
+
- ​<!-- 09 -->Integrate `extendSxProp` adapter (#42543) @siriwatknp
|
|
19
|
+
- ​<!-- 08 -->[Tab] Fix applying `iconWrapper` styles from theme and update its description (#42549) @sai6855
|
|
20
|
+
- ​<!-- 08 -->[pigment-css] Add `stringifyTheme` for Pigment CSS integration (#42476) @siriwatknp
|
|
21
|
+
|
|
22
|
+
### `@mui/system@6.0.0-alpha.11`
|
|
23
|
+
|
|
24
|
+
- ​<!-- 11 -->[Grid] Remove `disableEqualOverflow` by using `gap` (#42526) @DiegoAndai
|
|
25
|
+
- ​<!-- 07 -->[useMediaQuery] Drop Safari < 14 support (#42464) @aarongarciah
|
|
26
|
+
|
|
27
|
+
### `@mui/utils@6.0.0-alpha.11`
|
|
28
|
+
|
|
29
|
+
- ​<!-- 04 -->Allow passing `NaN` as `defaultValue` to `useControlled` (#41559) @iammminzzy
|
|
30
|
+
|
|
31
|
+
### `@mui/codemod@6.0.0-alpha.11`
|
|
32
|
+
|
|
33
|
+
- ​<!-- 39 -->Improve styled and sx prop transformation (#42598) @siriwatknp
|
|
34
|
+
- ​<!-- 36 -->Support more cases for sx-prop transformation (#42527) @siriwatknp
|
|
35
|
+
|
|
36
|
+
### `@mui/private-theming@6.0.0-alpha.11`
|
|
37
|
+
|
|
38
|
+
- ​<!-- 09 -->Fix issues reported by react compiler in `mui-private-theming` components (#42619) @sai6855
|
|
39
|
+
|
|
40
|
+
### Docs
|
|
41
|
+
|
|
42
|
+
- ​<!-- 31 -->Add `theme.applyStyles` and migrate docs (#42498) @siriwatknp
|
|
43
|
+
- ​<!-- 29 -->Fix dashboard template console error (#42594) @oliviertassinari
|
|
44
|
+
- ​<!-- 28 -->Migrate system props to `sx` prop (#42475) @siriwatknp
|
|
45
|
+
- ​<!-- 27 -->[material-ui]Fix duplicated sentence (#42521) @alexfauquette
|
|
46
|
+
- ​<!-- 22 -->[Grid] Fix docs spacing (#42573) @oliviertassinari
|
|
47
|
+
- ​<!-- 21 -->[joy-ui] Add Next.js App Router instructions on how to prevent flickering (#42514) @devnyxie
|
|
48
|
+
- ​<!-- 20 -->[joy-ui] Fix HTML tag without preformatting (#42525) @jacobmoshipco
|
|
49
|
+
- ​<!-- 19 -->[material-ui] Add docs for complementary stepper components (#41900) @anle9650
|
|
50
|
+
- ​<!-- 18 -->[material-ui] Fix typo on Sign-in/Sign-up templates (#42605) @zanivan
|
|
51
|
+
- ​<!-- 17 -->[material-ui] Add container queries docs (#42434) @siriwatknp
|
|
52
|
+
- ​<!-- 16 -->[material-ui] Fix ESLint error in Stepper demo (#42559) @aarongarciah
|
|
53
|
+
- ​<!-- 15 -->[material-ui] Shorten useMediaQuery subheading (#42561) @aarongarciah
|
|
54
|
+
- ​<!-- 14 -->[material-ui] Add a Refine example project (#42461) @necatiozmen
|
|
55
|
+
|
|
56
|
+
### Core
|
|
57
|
+
|
|
58
|
+
- ​<!-- 39 -->[website] Move the `React Engineer - X` role to future roles (#42532) @DanailH
|
|
59
|
+
- ​<!-- 35 -->[core] Allow `for..of` loops (#42600) @michaldudak
|
|
60
|
+
- ​<!-- 34 -->[core] Add comment about Object.js @oliviertassinari
|
|
61
|
+
- ​<!-- 33 -->[core] Disable eslint-plugin-react-compiler for Base (#42563) @aarongarciah
|
|
62
|
+
- ​<!-- 33 -->[core] Group Pigment CSS dependencies (#42174) @siriwatknp
|
|
63
|
+
- ​<!-- 32 -->[core] Configure eslint-plugin-react-compiler (#42555) @aarongarciah
|
|
64
|
+
- ​<!-- 31 -->[core] Skip charts animation for visual regression test (#42530) @alexfauquette
|
|
65
|
+
- ​<!-- 26 -->[docs-infra] Simplify click header (#42593) @oliviertassinari
|
|
66
|
+
- ​<!-- 25 -->[docs-infra] Add configurable jsdoc host variable (#42472) @tonygravell
|
|
67
|
+
- ​<!-- 25 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
|
|
68
|
+
- ​<!-- 24 -->[docs-infra] Prevent link anchor when selecting text (#41994) @alexfauquette
|
|
69
|
+
- ​<!-- 23 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
|
|
70
|
+
- ​<!-- 13 -->[examples] Remove Pigment CSS examples (#42471) @sai6855
|
|
71
|
+
- ​<!-- 06 -->[test] Restore pnpm tc command (#42572) @oliviertassinari
|
|
72
|
+
- ​<!-- 05 -->[test] Restore testing internal packages (#42519) @michaldudak
|
|
73
|
+
- ​<!-- 03 -->[website] Close Developer Advocate / Content Engineer role @oliviertassinari
|
|
74
|
+
- ​<!-- 02 -->[website] Remove blank line @oliviertassinari
|
|
75
|
+
- ​<!-- 01 -->[website] Fix mobile layout shift @oliviertassinari
|
|
76
|
+
|
|
77
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @anle9650, @DanailH, @danilo-leal, @devnyxie, @DiegoAndai, @iammminzzy, @jacobmoshipco, @michaldudak, @necatiozmen, @oliviertassinari, @sai6855, @shrilsharma, @siriwatknp, @tonygravell, @zanivan, @ZeeshanTamboli
|
|
78
|
+
|
|
3
79
|
## v6.0.0-alpha.10
|
|
4
80
|
|
|
5
81
|
<!-- generated comparing v6.0.0-alpha.9..next -->
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { alpha, darken, styled } from '@mui/material/styles';
|
|
4
|
+
import useForkRef from '@mui/utils/useForkRef';
|
|
4
5
|
import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from '../branding';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
const Root = styled('div')(({
|
|
@@ -137,7 +138,8 @@ const Root = styled('div')(({
|
|
|
137
138
|
textDecoration: 'none',
|
|
138
139
|
position: 'relative',
|
|
139
140
|
display: 'flex',
|
|
140
|
-
alignItems: 'center'
|
|
141
|
+
alignItems: 'center',
|
|
142
|
+
userSelect: 'text'
|
|
141
143
|
},
|
|
142
144
|
'& .anchor-icon': {
|
|
143
145
|
// To prevent the link to get the focus.
|
|
@@ -802,12 +804,32 @@ const Root = styled('div')(({
|
|
|
802
804
|
}
|
|
803
805
|
}
|
|
804
806
|
}));
|
|
807
|
+
function handleHeaderClick(event) {
|
|
808
|
+
const selection = document.getSelection();
|
|
809
|
+
if (selection === null) {
|
|
810
|
+
return;
|
|
811
|
+
}
|
|
812
|
+
if (selection.type === 'Range') {
|
|
813
|
+
// Disable the <a> behavior to be able to select text.
|
|
814
|
+
event.preventDefault();
|
|
815
|
+
}
|
|
816
|
+
}
|
|
805
817
|
export const MarkdownElement = /*#__PURE__*/React.forwardRef(function MarkdownElement(props, ref) {
|
|
806
818
|
const {
|
|
807
819
|
className,
|
|
808
820
|
renderedMarkdown,
|
|
809
821
|
...other
|
|
810
822
|
} = props;
|
|
823
|
+
const rootRef = React.useRef(null);
|
|
824
|
+
const handleRef = useForkRef(rootRef, ref);
|
|
825
|
+
React.useEffect(() => {
|
|
826
|
+
const elements = rootRef.current.getElementsByClassName('title-link-to-anchor');
|
|
827
|
+
for (let i = 0; i < elements.length; i += 1) {
|
|
828
|
+
// More reliable than `-webkit-user-drag` (https://caniuse.com/webkit-user-drag)
|
|
829
|
+
elements[i].setAttribute('draggable', 'false');
|
|
830
|
+
elements[i].addEventListener('click', handleHeaderClick);
|
|
831
|
+
}
|
|
832
|
+
}, []);
|
|
811
833
|
const more = {};
|
|
812
834
|
if (typeof renderedMarkdown === 'string') {
|
|
813
835
|
// workaround for https://github.com/facebook/react/issues/17170
|
|
@@ -820,6 +842,6 @@ export const MarkdownElement = /*#__PURE__*/React.forwardRef(function MarkdownEl
|
|
|
820
842
|
className: clsx('markdown-body', className),
|
|
821
843
|
...more,
|
|
822
844
|
...other,
|
|
823
|
-
ref:
|
|
845
|
+
ref: handleRef
|
|
824
846
|
});
|
|
825
847
|
});
|
|
@@ -8,6 +8,7 @@ exports.MarkdownElement = void 0;
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
10
10
|
var _styles = require("@mui/material/styles");
|
|
11
|
+
var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
|
|
11
12
|
var _branding = require("../branding");
|
|
12
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
@@ -148,7 +149,8 @@ const Root = (0, _styles.styled)('div')(({
|
|
|
148
149
|
textDecoration: 'none',
|
|
149
150
|
position: 'relative',
|
|
150
151
|
display: 'flex',
|
|
151
|
-
alignItems: 'center'
|
|
152
|
+
alignItems: 'center',
|
|
153
|
+
userSelect: 'text'
|
|
152
154
|
},
|
|
153
155
|
'& .anchor-icon': {
|
|
154
156
|
// To prevent the link to get the focus.
|
|
@@ -814,12 +816,32 @@ const Root = (0, _styles.styled)('div')(({
|
|
|
814
816
|
}
|
|
815
817
|
}
|
|
816
818
|
}));
|
|
819
|
+
function handleHeaderClick(event) {
|
|
820
|
+
const selection = document.getSelection();
|
|
821
|
+
if (selection === null) {
|
|
822
|
+
return;
|
|
823
|
+
}
|
|
824
|
+
if (selection.type === 'Range') {
|
|
825
|
+
// Disable the <a> behavior to be able to select text.
|
|
826
|
+
event.preventDefault();
|
|
827
|
+
}
|
|
828
|
+
}
|
|
817
829
|
const MarkdownElement = exports.MarkdownElement = /*#__PURE__*/React.forwardRef(function MarkdownElement(props, ref) {
|
|
818
830
|
const {
|
|
819
831
|
className,
|
|
820
832
|
renderedMarkdown,
|
|
821
833
|
...other
|
|
822
834
|
} = props;
|
|
835
|
+
const rootRef = React.useRef(null);
|
|
836
|
+
const handleRef = (0, _useForkRef.default)(rootRef, ref);
|
|
837
|
+
React.useEffect(() => {
|
|
838
|
+
const elements = rootRef.current.getElementsByClassName('title-link-to-anchor');
|
|
839
|
+
for (let i = 0; i < elements.length; i += 1) {
|
|
840
|
+
// More reliable than `-webkit-user-drag` (https://caniuse.com/webkit-user-drag)
|
|
841
|
+
elements[i].setAttribute('draggable', 'false');
|
|
842
|
+
elements[i].addEventListener('click', handleHeaderClick);
|
|
843
|
+
}
|
|
844
|
+
}, []);
|
|
823
845
|
const more = {};
|
|
824
846
|
if (typeof renderedMarkdown === 'string') {
|
|
825
847
|
// workaround for https://github.com/facebook/react/issues/17170
|
|
@@ -832,6 +854,6 @@ const MarkdownElement = exports.MarkdownElement = /*#__PURE__*/React.forwardRef(
|
|
|
832
854
|
className: (0, _clsx.default)('markdown-body', className),
|
|
833
855
|
...more,
|
|
834
856
|
...other,
|
|
835
|
-
ref:
|
|
857
|
+
ref: handleRef
|
|
836
858
|
});
|
|
837
859
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/docs",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.11",
|
|
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.24.
|
|
26
|
+
"@babel/runtime": "^7.24.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.
|
|
31
|
+
"@mui/internal-markdown": "^1.0.5"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@mui/base": "*",
|