@iobroker/adapter-react-v5 0.0.2 → 0.1.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/Components/FileViewer.js +7 -3
- package/Components/FileViewer.js.map +1 -1
- package/Components/IconSelector.js +2 -2
- package/Components/IconSelector.js.map +1 -1
- package/Components/ObjectBrowser.js +337 -82
- package/Components/ObjectBrowser.js.map +1 -1
- package/README.md +32 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -609,12 +609,43 @@ 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.1.0 (2022-03-23)
|
|
641
|
+
* (bluefox) Fixed theme errors
|
|
642
|
+
|
|
643
|
+
### 0.0.4 (2022-03-22)
|
|
644
|
+
* (bluefox) Fixed eslint warnings
|
|
645
|
+
|
|
646
|
+
### 0.0.3 (2022-03-19)
|
|
647
|
+
* (bluefox) beta version
|
|
648
|
+
|
|
618
649
|
### 0.0.2 (2022-02-24)
|
|
619
650
|
* (bluefox) try to publish first version
|
|
620
651
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "React classes to develop admin interfaces for ioBroker with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bluefox",
|
|
@@ -26,17 +26,17 @@
|
|
|
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.
|
|
31
|
-
"@emotion/react": "^11.8.
|
|
29
|
+
"@sentry/browser": "^6.19.1",
|
|
30
|
+
"@sentry/integrations": "^6.19.1",
|
|
31
|
+
"@emotion/react": "^11.8.2",
|
|
32
32
|
"@emotion/styled": "^11.8.1",
|
|
33
|
-
"@mui/icons-material": "^5.
|
|
34
|
-
"@mui/material": "^5.
|
|
35
|
-
"@mui/styles": "^5.
|
|
33
|
+
"@mui/icons-material": "^5.5.1",
|
|
34
|
+
"@mui/material": "^5.5.2",
|
|
35
|
+
"@mui/styles": "^5.5.1",
|
|
36
36
|
"react-color": "^2.19.3",
|
|
37
37
|
"react-colorful": "^5.5.1",
|
|
38
|
-
"react-dropzone": "^
|
|
38
|
+
"react-dropzone": "^12.0.4",
|
|
39
39
|
"react-inlinesvg": "^2.3.0",
|
|
40
|
-
"@types/iobroker": "^
|
|
40
|
+
"@types/iobroker": "^4.0.1"
|
|
41
41
|
}
|
|
42
42
|
}
|