@mui/codemod 5.14.18 → 5.15.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/node/v5.0.0/grid-list-component.test/actual.js +1 -0
- package/node/v5.0.0/grid-list-component.test/expected.js +1 -0
- package/node/v5.0.0/jss-to-tss-react.test/actual-from-material-ui-core-styles.js +2 -2
- package/node/v5.0.0/jss-to-tss-react.test/actual-typescript.js +2 -2
- package/node/v5.0.0/jss-to-tss-react.test/expected-from-material-ui-core-styles.js +2 -2
- package/node/v5.0.0/jss-to-tss-react.test/expected-typescript.js +2 -2
- package/package.json +6 -6
|
@@ -7,6 +7,7 @@ var _other = _interopRequireDefault(require("./other"));
|
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
// import GridList from '@material-ui/core/GridList';
|
|
9
9
|
// import GridListTile from '@material-ui/core/GridListTile';
|
|
10
|
+
|
|
10
11
|
/*#__PURE__*/(0, _jsxRuntime.jsxs)(_core.GridList, {
|
|
11
12
|
cellHeight: "auto",
|
|
12
13
|
cols: numOfCols,
|
|
@@ -7,6 +7,7 @@ var _other = _interopRequireDefault(require("./other"));
|
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
// import ImageList from '@material-ui/core/ImageList';
|
|
9
9
|
// import ImageListItem from '@material-ui/core/ImageListItem';
|
|
10
|
+
|
|
10
11
|
/*#__PURE__*/(0, _jsxRuntime.jsxs)(_core.ImageList, {
|
|
11
12
|
cellHeight: "auto",
|
|
12
13
|
cols: numOfCols,
|
|
@@ -11,8 +11,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
11
11
|
var _InnerComponent;
|
|
12
12
|
/*
|
|
13
13
|
Sandboxes for verifying correct behavior:
|
|
14
|
-
JSS - https://codesandbox.io/
|
|
15
|
-
TSS - https://codesandbox.io/
|
|
14
|
+
JSS - https://codesandbox.io/p/sandbox/case1-jss-dedp2f?file=/src/App.js
|
|
15
|
+
TSS - https://codesandbox.io/p/sandbox/case1-tss-s0z7tx?file=/src/App.js
|
|
16
16
|
*/
|
|
17
17
|
const useStyles = (0, _styles.makeStyles)({
|
|
18
18
|
test: {
|
|
@@ -12,8 +12,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
12
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
/*
|
|
14
14
|
Sandboxes for verifying correct behavior:
|
|
15
|
-
JSS - https://codesandbox.io/
|
|
16
|
-
TSS - https://codesandbox.io/
|
|
15
|
+
JSS - https://codesandbox.io/p/sandbox/typescript-case-bt065c?file=/demo.tsx
|
|
16
|
+
TSS - https://codesandbox.io/p/sandbox/typescript-case-7jwpms?file=/demo.tsx
|
|
17
17
|
*/const useStyles = (0, _styles.makeStyles)(theme => (0, _styles.createStyles)({
|
|
18
18
|
test: {
|
|
19
19
|
backgroundColor: "purple",
|
|
@@ -11,8 +11,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
11
11
|
var _InnerComponent;
|
|
12
12
|
/*
|
|
13
13
|
Sandboxes for verifying correct behavior:
|
|
14
|
-
JSS - https://codesandbox.io/
|
|
15
|
-
TSS - https://codesandbox.io/
|
|
14
|
+
JSS - https://codesandbox.io/p/sandbox/case1-jss-dedp2f?file=/src/App.js
|
|
15
|
+
TSS - https://codesandbox.io/p/sandbox/case1-tss-s0z7tx?file=/src/App.js
|
|
16
16
|
*/
|
|
17
17
|
const useStyles = (0, _mui.makeStyles)({
|
|
18
18
|
name: "TestName"
|
|
@@ -12,8 +12,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
12
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
/*
|
|
14
14
|
Sandboxes for verifying correct behavior:
|
|
15
|
-
JSS - https://codesandbox.io/
|
|
16
|
-
TSS - https://codesandbox.io/
|
|
15
|
+
JSS - https://codesandbox.io/p/sandbox/typescript-case-bt065c?file=/demo.tsx
|
|
16
|
+
TSS - https://codesandbox.io/p/sandbox/typescript-case-7jwpms?file=/demo.tsx
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
const useStyles = (0, _mui.makeStyles)()((theme, _params, classes) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/codemod",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.15.0",
|
|
4
4
|
"bin": "./codemod.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "MUI Team",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-codemod",
|
|
28
28
|
"funding": {
|
|
29
29
|
"type": "opencollective",
|
|
30
|
-
"url": "https://opencollective.com/mui"
|
|
30
|
+
"url": "https://opencollective.com/mui-org"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/core": "^7.23.
|
|
34
|
-
"@babel/runtime": "^7.23.
|
|
35
|
-
"@babel/traverse": "^7.23.
|
|
33
|
+
"@babel/core": "^7.23.5",
|
|
34
|
+
"@babel/runtime": "^7.23.5",
|
|
35
|
+
"@babel/traverse": "^7.23.5",
|
|
36
36
|
"jscodeshift": "^0.13.1",
|
|
37
37
|
"jscodeshift-add-imports": "^1.0.10",
|
|
38
38
|
"yargs": "^17.7.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/chai": "^4.3.
|
|
41
|
+
"@types/chai": "^4.3.11",
|
|
42
42
|
"@types/jscodeshift": "0.11.5",
|
|
43
43
|
"chai": "^4.3.10"
|
|
44
44
|
},
|