@iobroker/adapter-react-v5 4.13.13 → 4.13.14

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.
@@ -245,7 +245,7 @@ class SimpleCron extends react_1.default.Component {
245
245
  period: 1,
246
246
  unit: PERIODIC_TYPES.minutes,
247
247
  timeFrom: 0,
248
- timeTo: 24,
248
+ timeTo: 23,
249
249
  weekdays: [0, 1, 2, 3, 4, 5, 6],
250
250
  },
251
251
  specific: {
package/GenericApp.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2018-2023 Denis Haev (bluefox) <dogafox@gmail.com>
2
+ * Copyright 2018-2024 Denis Haev (bluefox) <dogafox@gmail.com>
3
3
  *
4
4
  * MIT License
5
5
  *
@@ -214,9 +214,8 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
214
214
  static onClose(): void;
215
215
  /**
216
216
  * Renders the error dialog.
217
- * @returns {JSX.Element | null} The JSX element.
218
217
  */
219
- renderError(): React.JSX.Element;
218
+ renderError(): React.JSX.Element | null;
220
219
  /**
221
220
  * Checks if the configuration has changed.
222
221
  * @param {Record<string, any>} [native] the new state
@@ -233,9 +232,8 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
233
232
  setConfigurationError(errorText: string): void;
234
233
  /**
235
234
  * Renders the save and close buttons.
236
- * @returns {JSX.Element | undefined} The JSX element.
237
235
  */
238
- renderSaveCloseButtons(): React.JSX.Element;
236
+ renderSaveCloseButtons(): React.JSX.Element | null;
239
237
  /**
240
238
  * @private
241
239
  */
@@ -258,12 +256,10 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
258
256
  showToast(toast: string | React.JSX.Element): void;
259
257
  /**
260
258
  * Renders helper dialogs
261
- * @returns {JSX.Element} The JSX element.
262
259
  */
263
260
  renderHelperDialogs(): React.JSX.Element;
264
261
  /**
265
262
  * Renders this component.
266
- * @returns {JSX.Element} The JSX element.
267
263
  */
268
264
  render(): React.JSX.Element;
269
265
  }
package/GenericApp.js CHANGED
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  /**
30
- * Copyright 2018-2023 Denis Haev (bluefox) <dogafox@gmail.com>
30
+ * Copyright 2018-2024 Denis Haev (bluefox) <dogafox@gmail.com>
31
31
  *
32
32
  * MIT License
33
33
  *
@@ -35,7 +35,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  const react_1 = __importDefault(require("react"));
36
36
  const socket_client_1 = require("@iobroker/socket-client");
37
37
  const Sentry = __importStar(require("@sentry/browser"));
38
- const SentryIntegrations = __importStar(require("@sentry/integrations"));
39
38
  const material_1 = require("@mui/material");
40
39
  const icons_material_1 = require("@mui/icons-material");
41
40
  const Prompt_1 = __importDefault(require("./Prompt"));
@@ -300,7 +299,7 @@ class GenericApp extends Router_1.default {
300
299
  dsn: this.sentryDSN,
301
300
  release: `iobroker.${instanceObj.common.name}@${instanceObj.common.version}`,
302
301
  integrations: [
303
- new SentryIntegrations.Dedupe(),
302
+ Sentry.dedupeIntegration(),
304
303
  ],
305
304
  });
306
305
  console.log('Sentry initialized');
@@ -312,7 +311,8 @@ class GenericApp extends Router_1.default {
312
311
  waitPromise = this.socket.getObject('system.meta.uuid')
313
312
  .then(uuidObj => {
314
313
  if (uuidObj && uuidObj.native && uuidObj.native.uuid) {
315
- Sentry.configureScope(scope => scope.setUser({ id: uuidObj.native.uuid }));
314
+ const scope = Sentry.getCurrentScope();
315
+ scope.setUser({ id: uuidObj.native.uuid });
316
316
  }
317
317
  });
318
318
  }
@@ -668,7 +668,6 @@ class GenericApp extends Router_1.default {
668
668
  }
669
669
  /**
670
670
  * Renders the error dialog.
671
- * @returns {JSX.Element | null} The JSX element.
672
671
  */
673
672
  renderError() {
674
673
  if (!this.state.errorText) {
@@ -705,7 +704,6 @@ class GenericApp extends Router_1.default {
705
704
  }
706
705
  /**
707
706
  * Renders the save and close buttons.
708
- * @returns {JSX.Element | undefined} The JSX element.
709
707
  */
710
708
  renderSaveCloseButtons() {
711
709
  if (!this.state.confirmClose && !this.state.bottomButtons) {
@@ -786,7 +784,6 @@ class GenericApp extends Router_1.default {
786
784
  }
787
785
  /**
788
786
  * Renders helper dialogs
789
- * @returns {JSX.Element} The JSX element.
790
787
  */
791
788
  renderHelperDialogs() {
792
789
  return react_1.default.createElement(react_1.default.Fragment, null,
@@ -797,7 +794,6 @@ class GenericApp extends Router_1.default {
797
794
  }
798
795
  /**
799
796
  * Renders this component.
800
- * @returns {JSX.Element} The JSX element.
801
797
  */
802
798
  render() {
803
799
  if (!this.state.loaded) {
package/README.md CHANGED
@@ -670,6 +670,9 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
670
670
  -->
671
671
 
672
672
  ## Changelog
673
+ ### 4.13.14 (2024-05-19)
674
+ * (bluefox) Updated packages
675
+
673
676
  ### 4.13.13 (2024-05-09)
674
677
  * (bluefox) Updated ioBroker types
675
678
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "4.13.13",
3
+ "version": "4.13.14",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "Denis Haev (bluefox)",
@@ -31,16 +31,15 @@
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.9",
35
- "@iobroker/types": "^5.0.20-alpha.0-20240508-d36cddc8d",
36
- "@iobroker/js-controller-common": "^5.0.20-alpha.0-20240429-12b5c7f4",
37
- "@iobroker/js-controller-common-db": "^5.0.20-alpha.0-20240429-12b5c7f4",
38
- "@mui/icons-material": "^5.15.17",
34
+ "@iobroker/socket-client": "^2.4.10",
35
+ "@iobroker/types": "^5.0.20-alpha.0-20240510-819f1976e",
36
+ "@iobroker/js-controller-common": "^5.0.20-alpha.0-20240510-819f1976e",
37
+ "@iobroker/js-controller-common-db": "^5.0.20-alpha.0-20240510-819f1976e",
38
+ "@mui/icons-material": "^5.15.18",
39
39
  "@mui/material": "5.14.14",
40
40
  "@mui/styles": "5.14.14",
41
- "@mui/x-date-pickers": "^7.3.2",
42
- "@sentry/browser": "^7.114.0",
43
- "@sentry/integrations": "^7.114.0",
41
+ "@mui/x-date-pickers": "^7.5.0",
42
+ "@sentry/browser": "^8.2.1",
44
43
  "react-color": "^2.19.3",
45
44
  "react-colorful": "^5.6.1",
46
45
  "react-cropper": "^2.3.3",