@mui/codemod 6.1.2 → 6.1.5
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.
|
@@ -141,6 +141,10 @@ function gridV2Props(file, api, options) {
|
|
|
141
141
|
if (itemProp) {
|
|
142
142
|
el.node.openingElement.attributes = el.node.openingElement.attributes.filter(attr => attr.type === 'JSXAttribute' && attr.name.name !== 'item');
|
|
143
143
|
}
|
|
144
|
+
const zeroMinWidthProp = el.node.openingElement.attributes.find(attr => attr.type === 'JSXAttribute' && attr.name.name === 'zeroMinWidth');
|
|
145
|
+
if (zeroMinWidthProp) {
|
|
146
|
+
el.node.openingElement.attributes = el.node.openingElement.attributes.filter(attr => attr.type === 'JSXAttribute' && attr.name.name !== 'zeroMinWidth');
|
|
147
|
+
}
|
|
144
148
|
});
|
|
145
149
|
return root.toSource(printOptions);
|
|
146
150
|
}
|
|
@@ -37,6 +37,15 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
37
37
|
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
38
38
|
item: false
|
|
39
39
|
});
|
|
40
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
41
|
+
zeroMinWidth: true
|
|
42
|
+
});
|
|
43
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
44
|
+
zeroMinWidth: true
|
|
45
|
+
});
|
|
46
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
47
|
+
zeroMinWidth: false
|
|
48
|
+
});
|
|
40
49
|
|
|
41
50
|
// Transforms responsive sizes
|
|
42
51
|
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
@@ -31,6 +31,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
31
31
|
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {});
|
|
32
32
|
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {});
|
|
33
33
|
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {});
|
|
34
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {});
|
|
35
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {});
|
|
36
|
+
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {});
|
|
34
37
|
|
|
35
38
|
// Transforms responsive sizes
|
|
36
39
|
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/codemod",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.5",
|
|
4
4
|
"bin": "./codemod.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "MUI Team",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"url": "https://opencollective.com/mui-org"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/core": "^7.25.
|
|
28
|
-
"@babel/runtime": "^7.25.
|
|
29
|
-
"@babel/traverse": "^7.25.
|
|
27
|
+
"@babel/core": "^7.25.8",
|
|
28
|
+
"@babel/runtime": "^7.25.7",
|
|
29
|
+
"@babel/traverse": "^7.25.7",
|
|
30
30
|
"jscodeshift": "^0.16.1",
|
|
31
31
|
"jscodeshift-add-imports": "^1.0.11",
|
|
32
32
|
"postcss": "^8.4.47",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": ">=14.0.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
|
-
"test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-codemod/**/*.test
|
|
50
|
+
"test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-codemod/**/*.test.?(c|m)[jt]s?(x)'",
|
|
51
51
|
"prebuild": "rimraf build",
|
|
52
52
|
"build": "node ../../scripts/build.mjs node --out-dir ./build && cpy README.md build && cpy package.json build && cpy codemod.js build",
|
|
53
53
|
"release": "pnpm build && pnpm publish"
|