@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.
- package/Components/ColorPicker.d.ts +8 -8
- package/Components/FileBrowser.d.ts +24 -24
- package/Components/FileViewer.d.ts +12 -12
- package/Components/Icon.d.ts +7 -7
- package/Components/Icon.js +1 -1
- package/Components/Icon.js.map +1 -1
- package/Components/IconPicker.d.ts +10 -10
- package/Components/IconSelector.d.ts +7 -7
- package/Components/Image.d.ts +4 -4
- package/Components/JsonConfigComponent/ConfigCRON.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigCertCollection.js +2 -2
- package/Components/JsonConfigComponent/ConfigCertCollection.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCertificates.js +2 -2
- package/Components/JsonConfigComponent/ConfigCertificates.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckLicense.js +7 -7
- package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.d.ts +10 -10
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +23 -23
- package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigObjectId.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigPort.js +1 -1
- package/Components/JsonConfigComponent/ConfigPort.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSendto.js +2 -2
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.js +2 -2
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTable.js +2 -2
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigUUID.d.ts +2 -2
- package/Components/JsonConfigComponent/ConfigUUID.js +1 -1
- package/Components/JsonConfigComponent/ConfigUUID.js.map +1 -1
- package/Components/Loader.d.ts +2 -2
- package/Components/Loaders/PT.d.ts +2 -2
- package/Components/Loaders/Vendor.d.ts +2 -2
- package/Components/Logo.d.ts +7 -7
- package/Components/ObjectBrowser.d.ts +52 -52
- package/Components/ObjectBrowser.js +22 -25
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/SaveCloseButtons.d.ts +10 -10
- package/Components/SelectWithIcon.js +1 -1
- package/Components/SelectWithIcon.js.map +1 -1
- package/Components/TabContainer.d.ts +2 -2
- package/Components/TabContent.d.ts +1 -1
- package/Components/TextWithIcon.js.map +1 -1
- package/Components/TreeTable.js +1 -1
- package/Components/TreeTable.js.map +1 -1
- package/Components/UploadImage.js +2 -2
- package/Components/UploadImage.js.map +1 -1
- package/Components/Utils.js +8 -6
- package/Components/Utils.js.map +1 -1
- package/Dialogs/Confirm.js +1 -1
- package/Dialogs/Confirm.js.map +1 -1
- package/Dialogs/Error.d.ts +5 -5
- package/Dialogs/Message.d.ts +6 -6
- package/Dialogs/SelectFile.d.ts +28 -28
- package/Dialogs/SelectID.d.ts +27 -27
- package/Dialogs/TextInput.d.ts +11 -11
- package/GenericApp.d.ts +10 -9
- package/GenericApp.js +16 -13
- package/GenericApp.js.map +1 -1
- package/LegacyConnection.d.ts +13 -7
- package/LegacyConnection.js +181 -161
- package/LegacyConnection.js.map +1 -1
- package/README.md +10 -3
- package/icons/IconAdapter.d.ts +4 -4
- package/icons/IconAlias.d.ts +4 -4
- package/icons/IconChannel.d.ts +4 -4
- package/icons/IconClearFilter.d.ts +4 -4
- package/icons/IconClosed.d.ts +4 -4
- package/icons/IconCopy.d.ts +4 -4
- package/icons/IconDevice.d.ts +4 -4
- package/icons/IconDocument.d.ts +4 -4
- package/icons/IconDocumentReadOnly.d.ts +4 -4
- package/icons/IconExpert.d.ts +4 -4
- package/icons/IconFx.d.ts +4 -4
- package/icons/IconInstance.d.ts +4 -4
- package/icons/IconLogout.d.ts +4 -4
- package/icons/IconNoIcon.d.ts +4 -4
- package/icons/IconOpen.d.ts +4 -4
- package/icons/IconState.d.ts +4 -4
- 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
|
|
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
|
|
package/icons/IconAdapter.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconAlias.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconChannel.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconClosed.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconCopy.d.ts
CHANGED
|
@@ -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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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/IconDevice.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconDocument.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconExpert.d.ts
CHANGED
|
@@ -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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconInstance.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconLogout.d.ts
CHANGED
|
@@ -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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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/IconNoIcon.d.ts
CHANGED
|
@@ -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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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/IconOpen.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/icons/IconState.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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.
|
|
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.
|
|
30
|
+
"@emotion/react": "^11.11.1",
|
|
31
31
|
"@emotion/styled": "^11.11.0",
|
|
32
|
-
"@mui/icons-material": "^5.
|
|
33
|
-
"@mui/material": "^5.
|
|
34
|
-
"@mui/styles": "^5.
|
|
35
|
-
"@mui/x-date-pickers": "6.
|
|
36
|
-
"@iobroker/socket-client": "^2.0
|
|
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.
|
|
39
|
-
"@sentry/integrations": "^7.
|
|
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.
|
|
44
|
+
"react-icons": "^4.10.1",
|
|
45
45
|
"react-inlinesvg": "^3.0.2",
|
|
46
46
|
"react-text-mask": "^5.5.0"
|
|
47
47
|
}
|