@iobroker/adapter-react-v5 0.0.3 → 0.0.4
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
|
@@ -609,12 +609,37 @@ This project uses icons from [Flaticon](https://www.flaticon.com/).
|
|
|
609
609
|
ioBroker GmbH has a valid license for all of used icons.
|
|
610
610
|
The icons may not be reused in other projects without the proper flaticon license or flaticon subscription.
|
|
611
611
|
|
|
612
|
+
## Migration to v5
|
|
613
|
+
### In src/package.json => dependencies
|
|
614
|
+
- `"@iobroker/adapter-react": "^2.0.22",` => `"@iobroker/adapter-react-v5": "^0.0.3",`
|
|
615
|
+
- `"@material-ui/core": "^4.12.3",` => `"@mui/material": "^5.4.3",`
|
|
616
|
+
- `"@material-ui/icons": "^4.11.2",` => `"@mui/icons-material": "^5.4.2",`
|
|
617
|
+
- Add `"@mui/styles": "^5.4.2",`
|
|
618
|
+
- Add `"babel-eslint": "^10.1.0",`
|
|
619
|
+
|
|
620
|
+
### In Source files
|
|
621
|
+
- All `@iobroker/adapter-react/...` => `@iobroker/adapter-react-v5/...`
|
|
622
|
+
- All `@material-ui/icons/...` => `@mui/icons-material/...`
|
|
623
|
+
- Change `import { withStyles } from '@material-ui/core/styles';` => `import { withStyles } from '@mui/styles';`
|
|
624
|
+
- All `@material-ui/core...` => `@mui/material...`
|
|
625
|
+
- Change `import { MuiThemeProvider } from '@material-ui/core/styles';` => `import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles';`
|
|
626
|
+
- Change all `<MuiThemeProvider theme={this.state.theme}>` to `<StyledEngineProvider injectFirst><ThemeProvider theme={this.state.theme}>`
|
|
627
|
+
- Rename in styles `theme.palette.type` => `theme.palette.mode`
|
|
628
|
+
- Add to all `TextField` and `Select` the property `variant="standard"`
|
|
629
|
+
- Add to all `Button` that do not have `color` property: `color="grey"`
|
|
630
|
+
- Replace by `TextField` the `readOnly` attribute (if exists) with `InputProps={{readOnly: true}}`
|
|
631
|
+
|
|
632
|
+
If you still have questions, try to find an answer [here](https://mui.com/guides/migration-v4/).
|
|
633
|
+
|
|
612
634
|
<!--
|
|
613
635
|
Placeholder for the next version (at the beginning of the line):
|
|
614
636
|
### **WORK IN PROGRESS**
|
|
615
637
|
-->
|
|
616
638
|
|
|
617
639
|
## Changelog
|
|
640
|
+
### 0.0.4 (2022-03-22)
|
|
641
|
+
* (bluefox) Fixed eslint warnings
|
|
642
|
+
|
|
618
643
|
### 0.0.3 (2022-03-19)
|
|
619
644
|
* (bluefox) beta version
|
|
620
645
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "React classes to develop admin interfaces for ioBroker with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bluefox",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"homepage": "https://github.com/ioBroker/adapter-react-v5#readme",
|
|
27
27
|
"devDependencies": {},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sentry/browser": "^6.
|
|
30
|
-
"@sentry/integrations": "^6.
|
|
29
|
+
"@sentry/browser": "^6.19.1",
|
|
30
|
+
"@sentry/integrations": "^6.19.1",
|
|
31
31
|
"@emotion/react": "^11.8.2",
|
|
32
32
|
"@emotion/styled": "^11.8.1",
|
|
33
33
|
"@mui/icons-material": "^5.5.1",
|
|
34
|
-
"@mui/material": "^5.5.
|
|
34
|
+
"@mui/material": "^5.5.2",
|
|
35
35
|
"@mui/styles": "^5.5.1",
|
|
36
36
|
"react-color": "^2.19.3",
|
|
37
37
|
"react-colorful": "^5.5.1",
|