@iobroker/adapter-react-v5 5.0.5 → 5.0.6
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 +22 -0
- package/craco-module-federation.js +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -667,6 +667,25 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
|
|
|
667
667
|
- adapter-react-v5 has all types exported. So you can use `import { type IobTheme, Theme } from '@iobroker/adapter-react-v5';` and `const theme: IobTheme = Theme('light');`
|
|
668
668
|
- Json-Config is now an external package and must be included as dependency separately.
|
|
669
669
|
- Use type `Translate` for `t(word: string, ...args: any[]) => string`
|
|
670
|
+
- All components for admin JsonConfig must be changed:
|
|
671
|
+
Before `adapter-react-v5@5.x`:
|
|
672
|
+
|
|
673
|
+
```
|
|
674
|
+
import { ConfigGeneric, I18n } from '@iobroker/adapter-react-v5';
|
|
675
|
+
class JsonComponent extends ConfigGeneric {
|
|
676
|
+
...
|
|
677
|
+
}
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
With `adapter-react-v5@5.x`:
|
|
681
|
+
|
|
682
|
+
```
|
|
683
|
+
import { I18n } from '@iobroker/adapter-react-v5';
|
|
684
|
+
import { ConfigGeneric } from '@iobroker/json-config';
|
|
685
|
+
class JsonComponent extends ConfigGeneric {
|
|
686
|
+
...
|
|
687
|
+
}
|
|
688
|
+
```
|
|
670
689
|
|
|
671
690
|
## Warning
|
|
672
691
|
`react-inlinesvg@4.0.5` cannot be used. Use `react-inlinesvg@4.0.3` instead.
|
|
@@ -676,6 +695,9 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
|
|
|
676
695
|
-->
|
|
677
696
|
|
|
678
697
|
## Changelog
|
|
698
|
+
### 5.0.6 (2024-06-15)
|
|
699
|
+
* (bluefox) Added `modulefederation.admin.config.js` for module federation
|
|
700
|
+
|
|
679
701
|
### 5.0.5 (2024-06-10)
|
|
680
702
|
* (bluefox) Sources were synchronized with admin
|
|
681
703
|
|
|
@@ -18,7 +18,7 @@ const getModuleFederationConfigPath = (additionalPaths = []) => {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
module.exports = {
|
|
21
|
-
overrideWebpackConfig: ({webpackConfig, pluginOptions}) => {
|
|
21
|
+
overrideWebpackConfig: ({ webpackConfig, pluginOptions }) => {
|
|
22
22
|
const moduleFederationConfigPath = getModuleFederationConfigPath();
|
|
23
23
|
|
|
24
24
|
if (moduleFederationConfigPath) {
|
|
@@ -59,7 +59,7 @@ module.exports = {
|
|
|
59
59
|
return webpackConfig;
|
|
60
60
|
},
|
|
61
61
|
|
|
62
|
-
overrideDevServerConfig: ({devServerConfig}) => {
|
|
62
|
+
overrideDevServerConfig: ({ devServerConfig }) => {
|
|
63
63
|
devServerConfig.headers = {
|
|
64
64
|
'Access-Control-Allow-Origin': '*',
|
|
65
65
|
'Access-Control-Allow-Methods': '*',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "React classes to develop admin interfaces for ioBroker with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Denis Haev (bluefox)",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@emotion/react": "^11.11.4",
|
|
31
31
|
"@emotion/styled": "^11.11.5",
|
|
32
32
|
"@iobroker/socket-client": "^2.4.18",
|
|
33
|
-
"@iobroker/types": "^6.0.
|
|
34
|
-
"@iobroker/js-controller-common": "^6.0.
|
|
35
|
-
"@iobroker/js-controller-common-db": "^6.0.
|
|
36
|
-
"@mui/icons-material": "^5.15.
|
|
33
|
+
"@iobroker/types": "^6.0.4",
|
|
34
|
+
"@iobroker/js-controller-common": "^6.0.4",
|
|
35
|
+
"@iobroker/js-controller-common-db": "^6.0.4",
|
|
36
|
+
"@mui/icons-material": "^5.15.20",
|
|
37
37
|
"@mui/material": "5.14.14",
|
|
38
38
|
"@mui/styles": "5.14.14",
|
|
39
|
-
"@mui/x-date-pickers": "^7.
|
|
40
|
-
"@sentry/browser": "^8.
|
|
39
|
+
"@mui/x-date-pickers": "^7.7.0",
|
|
40
|
+
"@sentry/browser": "^8.9.2",
|
|
41
41
|
"react-color": "^2.19.3",
|
|
42
42
|
"react-colorful": "^5.6.1",
|
|
43
43
|
"react-cropper": "^2.3.3",
|