@iobroker/adapter-react-v5 4.13.16 → 4.13.18

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/GenericApp.d.ts CHANGED
@@ -59,10 +59,7 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
59
59
  onReceiveMessage: (message: {
60
60
  data: string;
61
61
  } | null) => void;
62
- /**
63
- * @private
64
- */
65
- onResize: () => void;
62
+ private onResize;
66
63
  /**
67
64
  * Gets the width depending on the window inner width.
68
65
  * @returns {import('./types').Width}
@@ -155,9 +152,8 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
155
152
  renderToast(): React.JSX.Element;
156
153
  /**
157
154
  * Closes the dialog.
158
- * @private
159
155
  */
160
- static onClose(): void;
156
+ private static onClose;
161
157
  /**
162
158
  * Renders the error dialog.
163
159
  */
@@ -180,17 +176,14 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
180
176
  * Renders the save and close buttons.
181
177
  */
182
178
  renderSaveCloseButtons(): React.JSX.Element | null;
183
- /**
184
- * @private
185
- */
186
- _updateNativeValue(obj: Record<string, any>, attrs: string | string[], value: any): boolean;
179
+ private _updateNativeValue;
187
180
  /**
188
181
  * Update the native value
189
182
  * @param attr The attribute name with dots as delimiter.
190
183
  * @param value The new value.
191
184
  * @param cb Callback which will be called upon completion.
192
185
  */
193
- updateNativeValue(attr: string, value: any, cb: () => void): void;
186
+ updateNativeValue(attr: string, value: any, cb?: () => void): void;
194
187
  /**
195
188
  * Set the error text to be shown.
196
189
  */
package/GenericApp.js CHANGED
@@ -164,9 +164,6 @@ class GenericApp extends Router_1.default {
164
164
  }
165
165
  }
166
166
  };
167
- /**
168
- * @private
169
- */
170
167
  this.onResize = () => {
171
168
  this.resizeTimer && clearTimeout(this.resizeTimer);
172
169
  this.resizeTimer = setTimeout(() => {
@@ -647,7 +644,6 @@ class GenericApp extends Router_1.default {
647
644
  }
648
645
  /**
649
646
  * Closes the dialog.
650
- * @private
651
647
  */
652
648
  static onClose() {
653
649
  if (typeof window.parent !== 'undefined' && window.parent) {
@@ -718,9 +714,6 @@ class GenericApp extends Router_1.default {
718
714
  } }) : null,
719
715
  this.state.confirmClose ? react_1.default.createElement(Confirm_1.default, { title: i18n_1.default.t('ra_Please confirm'), text: i18n_1.default.t('ra_Some data are not stored. Discard?'), ok: i18n_1.default.t('ra_Discard'), cancel: i18n_1.default.t('ra_Cancel'), onClose: isYes => this.setState({ confirmClose: false }, () => isYes && GenericApp.onClose()) }) : null);
720
716
  }
721
- /**
722
- * @private
723
- */
724
717
  _updateNativeValue(obj, attrs, value) {
725
718
  if (typeof attrs !== 'object') {
726
719
  attrs = attrs.split('.');
package/README.md CHANGED
@@ -670,7 +670,7 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
670
670
  -->
671
671
 
672
672
  ## Changelog
673
- ### 4.13.16 (2024-05-21)
673
+ ### 4.13.18 (2024-05-21)
674
674
  * (bluefox) Better types added
675
675
  * (bluefox) updated theme definitions
676
676
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "4.13.16",
3
+ "version": "4.13.18",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "Denis Haev (bluefox)",
@@ -31,7 +31,7 @@
31
31
  "@emotion/styled": "^11.11.5",
32
32
  "@iobroker/dm-utils": "^0.1.9",
33
33
  "@iobroker/json-config": "^6.17.6",
34
- "@iobroker/socket-client": "^2.4.10",
34
+ "@iobroker/socket-client": "^2.4.11",
35
35
  "@iobroker/types": "^5.0.20-alpha.0-20240510-819f1976e",
36
36
  "@iobroker/js-controller-common": "^5.0.20-alpha.0-20240510-819f1976e",
37
37
  "@iobroker/js-controller-common-db": "^5.0.20-alpha.0-20240510-819f1976e",