@iobroker/adapter-react-v5 4.1.0 → 4.2.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.
Files changed (81) hide show
  1. package/Components/ColorPicker.d.ts +8 -8
  2. package/Components/FileBrowser.d.ts +24 -24
  3. package/Components/FileViewer.d.ts +12 -12
  4. package/Components/Icon.d.ts +7 -7
  5. package/Components/Icon.js +1 -1
  6. package/Components/Icon.js.map +1 -1
  7. package/Components/IconPicker.d.ts +10 -10
  8. package/Components/IconSelector.d.ts +7 -7
  9. package/Components/Image.d.ts +4 -4
  10. package/Components/JsonConfigComponent/ConfigCRON.d.ts +1 -1
  11. package/Components/JsonConfigComponent/ConfigCertCollection.js +2 -2
  12. package/Components/JsonConfigComponent/ConfigCertCollection.js.map +1 -1
  13. package/Components/JsonConfigComponent/ConfigCertificates.js +2 -2
  14. package/Components/JsonConfigComponent/ConfigCertificates.js.map +1 -1
  15. package/Components/JsonConfigComponent/ConfigCheckLicense.js +7 -7
  16. package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
  17. package/Components/JsonConfigComponent/ConfigCustom.d.ts +10 -10
  18. package/Components/JsonConfigComponent/ConfigGeneric.d.ts +23 -23
  19. package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +1 -1
  20. package/Components/JsonConfigComponent/ConfigObjectId.d.ts +1 -1
  21. package/Components/JsonConfigComponent/ConfigPort.js +1 -1
  22. package/Components/JsonConfigComponent/ConfigPort.js.map +1 -1
  23. package/Components/JsonConfigComponent/ConfigSendto.js +2 -2
  24. package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
  25. package/Components/JsonConfigComponent/ConfigSetState.js +2 -2
  26. package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
  27. package/Components/JsonConfigComponent/ConfigTable.js +2 -2
  28. package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
  29. package/Components/JsonConfigComponent/ConfigUUID.d.ts +2 -2
  30. package/Components/JsonConfigComponent/ConfigUUID.js +1 -1
  31. package/Components/JsonConfigComponent/ConfigUUID.js.map +1 -1
  32. package/Components/Loader.d.ts +2 -2
  33. package/Components/Loaders/PT.d.ts +2 -2
  34. package/Components/Loaders/Vendor.d.ts +2 -2
  35. package/Components/Logo.d.ts +7 -7
  36. package/Components/ObjectBrowser.d.ts +52 -52
  37. package/Components/ObjectBrowser.js +22 -25
  38. package/Components/ObjectBrowser.js.map +1 -1
  39. package/Components/SaveCloseButtons.d.ts +10 -10
  40. package/Components/SelectWithIcon.js +1 -1
  41. package/Components/SelectWithIcon.js.map +1 -1
  42. package/Components/TabContainer.d.ts +2 -2
  43. package/Components/TabContent.d.ts +1 -1
  44. package/Components/TextWithIcon.js.map +1 -1
  45. package/Components/TreeTable.js +1 -1
  46. package/Components/TreeTable.js.map +1 -1
  47. package/Components/UploadImage.js +2 -2
  48. package/Components/UploadImage.js.map +1 -1
  49. package/Components/Utils.js +8 -6
  50. package/Components/Utils.js.map +1 -1
  51. package/Dialogs/Confirm.js +1 -1
  52. package/Dialogs/Confirm.js.map +1 -1
  53. package/Dialogs/Error.d.ts +5 -5
  54. package/Dialogs/Message.d.ts +6 -6
  55. package/Dialogs/SelectFile.d.ts +28 -28
  56. package/Dialogs/SelectID.d.ts +27 -27
  57. package/Dialogs/TextInput.d.ts +11 -11
  58. package/GenericApp.d.ts +10 -9
  59. package/GenericApp.js +16 -13
  60. package/GenericApp.js.map +1 -1
  61. package/LegacyConnection.d.ts +13 -7
  62. package/LegacyConnection.js +181 -161
  63. package/LegacyConnection.js.map +1 -1
  64. package/README.md +10 -3
  65. package/icons/IconAdapter.d.ts +4 -4
  66. package/icons/IconAlias.d.ts +4 -4
  67. package/icons/IconChannel.d.ts +4 -4
  68. package/icons/IconClearFilter.d.ts +4 -4
  69. package/icons/IconClosed.d.ts +4 -4
  70. package/icons/IconCopy.d.ts +4 -4
  71. package/icons/IconDevice.d.ts +4 -4
  72. package/icons/IconDocument.d.ts +4 -4
  73. package/icons/IconDocumentReadOnly.d.ts +4 -4
  74. package/icons/IconExpert.d.ts +4 -4
  75. package/icons/IconFx.d.ts +4 -4
  76. package/icons/IconInstance.d.ts +4 -4
  77. package/icons/IconLogout.d.ts +4 -4
  78. package/icons/IconNoIcon.d.ts +4 -4
  79. package/icons/IconOpen.d.ts +4 -4
  80. package/icons/IconState.d.ts +4 -4
  81. package/package.json +10 -10
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  You can find demo on https://github.com/ioBroker/adapter-react-demo
3
3
 
4
4
  ## Getting started
5
- If you want to create the configuration page with react:
5
+ If you want to create the configuration page with ReactJS:
6
6
  1. Create github repo for adapter.
7
7
  2. execute `npx create-react-app src` . It will take a while.
8
8
  3. `cd src`
@@ -181,7 +181,7 @@ onPrepareSave(settings) {
181
181
  ## Components
182
182
 
183
183
  ### Connection.js
184
- This is non-react class to provide the communication for socket connection with server.
184
+ This is a non-react class to provide the communication for socket connection with server.
185
185
 
186
186
  ### GenericApp.js
187
187
 
@@ -322,7 +322,7 @@ function renderCron() {
322
322
  ##### getObjectNameFromObj
323
323
  `getObjectNameFromObj(obj, settings, options, isDesc)`
324
324
 
325
- Get object name from single object.
325
+ Get object name from a single object.
326
326
 
327
327
  Usage: `Utils.getObjectNameFromObj(this.objects[id], null, {language: I18n.getLanguage()})`
328
328
 
@@ -661,6 +661,13 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
661
661
  -->
662
662
 
663
663
  ## Changelog
664
+ ### 4.2.0 (2023-07-07)
665
+ * (bluefox) Updated packages
666
+ * (bluefox) Added new method `getObjectsById` to the socket communication
667
+
668
+ ### 4.1.2 (2023-06-20)
669
+ * (bluefox) Allowed setting theme name directly by theme toggle
670
+
664
671
  ### 4.1.0 (2023-05-10)
665
672
  * (bluefox) `craco-module-federation.js` was added. For node 16
666
673
 
@@ -2,10 +2,10 @@ export default IconAdapter;
2
2
  declare function IconAdapter(props: any): React.JSX.Element;
3
3
  declare namespace IconAdapter {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconAlias;
2
2
  declare function IconAlias(props: any): React.JSX.Element;
3
3
  declare namespace IconAlias {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconChannel;
2
2
  declare function IconChannel(props: any): React.JSX.Element;
3
3
  declare namespace IconChannel {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconClearFilter;
2
2
  declare function IconClearFilter(props: any): React.JSX.Element;
3
3
  declare namespace IconClearFilter {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconClosed;
2
2
  declare function IconClosed(props: any): React.JSX.Element;
3
3
  declare namespace IconClosed {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -29,10 +29,10 @@ export type IconCopyProps = {
29
29
  declare function IconCopy(props: any): React.JSX.Element;
30
30
  declare namespace IconCopy {
31
31
  namespace propTypes {
32
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
- const width: PropTypes.Requireable<NonNullable<string | number>>;
34
- const height: PropTypes.Requireable<NonNullable<string | number>>;
35
- const className: PropTypes.Requireable<string>;
32
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
34
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
35
+ let className: PropTypes.Requireable<string>;
36
36
  }
37
37
  }
38
38
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconDevice;
2
2
  declare function IconDevice(props: any): React.JSX.Element;
3
3
  declare namespace IconDevice {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconDocument;
2
2
  declare function IconDocument(props: any): React.JSX.Element;
3
3
  declare namespace IconDocument {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconDocumentReadOnly;
2
2
  declare function IconDocumentReadOnly(props: any): React.JSX.Element;
3
3
  declare namespace IconDocumentReadOnly {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -29,10 +29,10 @@ export type ExpertIconProps = {
29
29
  declare function ExpertIcon(props: any): React.JSX.Element;
30
30
  declare namespace ExpertIcon {
31
31
  namespace propTypes {
32
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
- const width: PropTypes.Requireable<NonNullable<string | number>>;
34
- const height: PropTypes.Requireable<NonNullable<string | number>>;
35
- const className: PropTypes.Requireable<string>;
32
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
34
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
35
+ let className: PropTypes.Requireable<string>;
36
36
  }
37
37
  }
38
38
  import React from 'react';
package/icons/IconFx.d.ts CHANGED
@@ -2,10 +2,10 @@ export default IconFx;
2
2
  declare function IconFx(props: any): React.JSX.Element;
3
3
  declare namespace IconFx {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconInstance;
2
2
  declare function IconInstance(props: any): React.JSX.Element;
3
3
  declare namespace IconInstance {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -29,10 +29,10 @@ export type IconLogoutProps = {
29
29
  declare function IconLogout(props: any): React.JSX.Element;
30
30
  declare namespace IconLogout {
31
31
  namespace propTypes {
32
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
- const width: PropTypes.Requireable<NonNullable<string | number>>;
34
- const height: PropTypes.Requireable<NonNullable<string | number>>;
35
- const className: PropTypes.Requireable<string>;
32
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
34
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
35
+ let className: PropTypes.Requireable<string>;
36
36
  }
37
37
  }
38
38
  import React from 'react';
@@ -29,10 +29,10 @@ export type IconNoIconProps = {
29
29
  declare function IconNoIcon(props: any): React.JSX.Element;
30
30
  declare namespace IconNoIcon {
31
31
  namespace propTypes {
32
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
- const width: PropTypes.Requireable<NonNullable<string | number>>;
34
- const height: PropTypes.Requireable<NonNullable<string | number>>;
35
- const className: PropTypes.Requireable<string>;
32
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
34
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
35
+ let className: PropTypes.Requireable<string>;
36
36
  }
37
37
  }
38
38
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconOpen;
2
2
  declare function IconOpen(props: any): React.JSX.Element;
3
3
  declare namespace IconOpen {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
@@ -2,10 +2,10 @@ export default IconState;
2
2
  declare function IconState(props: any): React.JSX.Element;
3
3
  declare namespace IconState {
4
4
  namespace propTypes {
5
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
- const width: PropTypes.Requireable<NonNullable<string | number>>;
7
- const height: PropTypes.Requireable<NonNullable<string | number>>;
8
- const className: PropTypes.Requireable<string>;
5
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let width: PropTypes.Requireable<NonNullable<string | number>>;
7
+ let height: PropTypes.Requireable<NonNullable<string | number>>;
8
+ let className: PropTypes.Requireable<string>;
9
9
  }
10
10
  }
11
11
  import React from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -27,21 +27,21 @@
27
27
  "homepage": "https://github.com/ioBroker/adapter-react-v5#readme",
28
28
  "devDependencies": {},
29
29
  "dependencies": {
30
- "@emotion/react": "^11.11.0",
30
+ "@emotion/react": "^11.11.1",
31
31
  "@emotion/styled": "^11.11.0",
32
- "@mui/icons-material": "^5.11.16",
33
- "@mui/material": "^5.12.3",
34
- "@mui/styles": "^5.12.3",
35
- "@mui/x-date-pickers": "6.3.1",
36
- "@iobroker/socket-client": "^2.0.7",
32
+ "@mui/icons-material": "^5.13.7",
33
+ "@mui/material": "^5.13.7",
34
+ "@mui/styles": "^5.13.7",
35
+ "@mui/x-date-pickers": "6.9.2",
36
+ "@iobroker/socket-client": "^2.2.0",
37
37
  "react-cropper": "^2.3.3",
38
- "@sentry/browser": "^7.51.2",
39
- "@sentry/integrations": "^7.51.2",
38
+ "@sentry/browser": "^7.57.0",
39
+ "@sentry/integrations": "^7.57.0",
40
40
  "@types/iobroker": "^4.0.5",
41
41
  "react-color": "^2.19.3",
42
42
  "react-colorful": "^5.6.1",
43
43
  "react-dropzone": "^14.2.3",
44
- "react-icons": "^4.8.0",
44
+ "react-icons": "^4.10.1",
45
45
  "react-inlinesvg": "^3.0.2",
46
46
  "react-text-mask": "^5.5.0"
47
47
  }