@iobroker/adapter-react-v5 4.1.2 → 4.2.1

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 (97) hide show
  1. package/Components/JsonConfigComponent/ChipInput.d.ts +1 -1
  2. package/Components/JsonConfigComponent/ChipInput.js +6 -6
  3. package/Components/JsonConfigComponent/ChipInput.js.map +1 -1
  4. package/Components/JsonConfigComponent/ConfigAccordion.d.ts +14 -0
  5. package/Components/JsonConfigComponent/ConfigAccordion.js +352 -0
  6. package/Components/JsonConfigComponent/ConfigAccordion.js.map +1 -0
  7. package/Components/JsonConfigComponent/ConfigAlive.js.map +1 -1
  8. package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +1 -1
  9. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js.map +1 -1
  10. package/Components/JsonConfigComponent/ConfigCRON.js +3 -2
  11. package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
  12. package/Components/JsonConfigComponent/ConfigCertCollection.js +2 -2
  13. package/Components/JsonConfigComponent/ConfigCertCollection.js.map +1 -1
  14. package/Components/JsonConfigComponent/ConfigCertificates.js +2 -2
  15. package/Components/JsonConfigComponent/ConfigCertificates.js.map +1 -1
  16. package/Components/JsonConfigComponent/ConfigCheckLicense.js +8 -8
  17. package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
  18. package/Components/JsonConfigComponent/ConfigCheckbox.js.map +1 -1
  19. package/Components/JsonConfigComponent/ConfigChip.js.map +1 -1
  20. package/Components/JsonConfigComponent/ConfigColor.js.map +1 -1
  21. package/Components/JsonConfigComponent/ConfigCoordinates.js +54 -12
  22. package/Components/JsonConfigComponent/ConfigCoordinates.js.map +1 -1
  23. package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
  24. package/Components/JsonConfigComponent/ConfigDatePicker.js.map +1 -1
  25. package/Components/JsonConfigComponent/ConfigFile.js.map +1 -1
  26. package/Components/JsonConfigComponent/ConfigGeneric.d.ts +18 -3
  27. package/Components/JsonConfigComponent/ConfigGeneric.js +76 -36
  28. package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
  29. package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
  30. package/Components/JsonConfigComponent/ConfigImageUpload.js.map +1 -1
  31. package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
  32. package/Components/JsonConfigComponent/ConfigJsonEditor.js +1 -1
  33. package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
  34. package/Components/JsonConfigComponent/ConfigLanguage.js +3 -0
  35. package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
  36. package/Components/JsonConfigComponent/ConfigLicense.d.ts +23 -0
  37. package/Components/JsonConfigComponent/ConfigLicense.js +183 -0
  38. package/Components/JsonConfigComponent/ConfigLicense.js.map +1 -0
  39. package/Components/JsonConfigComponent/ConfigNumber.js +2 -48
  40. package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
  41. package/Components/JsonConfigComponent/ConfigObjectId.js +3 -1
  42. package/Components/JsonConfigComponent/ConfigObjectId.js.map +1 -1
  43. package/Components/JsonConfigComponent/ConfigPanel.js +4 -0
  44. package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -1
  45. package/Components/JsonConfigComponent/ConfigPassword.js.map +1 -1
  46. package/Components/JsonConfigComponent/ConfigPattern.d.ts +19 -13
  47. package/Components/JsonConfigComponent/ConfigPattern.js +1 -5
  48. package/Components/JsonConfigComponent/ConfigPattern.js.map +1 -1
  49. package/Components/JsonConfigComponent/ConfigPort.js +1 -1
  50. package/Components/JsonConfigComponent/ConfigPort.js.map +1 -1
  51. package/Components/JsonConfigComponent/ConfigRoom.js.map +1 -1
  52. package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
  53. package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
  54. package/Components/JsonConfigComponent/ConfigSendto.js +2 -2
  55. package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
  56. package/Components/JsonConfigComponent/ConfigSetState.js +3 -3
  57. package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
  58. package/Components/JsonConfigComponent/ConfigSlider.js +3 -1
  59. package/Components/JsonConfigComponent/ConfigSlider.js.map +1 -1
  60. package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +1 -1
  61. package/Components/JsonConfigComponent/ConfigStaticImage.js.map +1 -1
  62. package/Components/JsonConfigComponent/ConfigStaticText.js +9 -0
  63. package/Components/JsonConfigComponent/ConfigStaticText.js.map +1 -1
  64. package/Components/JsonConfigComponent/ConfigTable.js +3 -3
  65. package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
  66. package/Components/JsonConfigComponent/ConfigTabs.js.map +1 -1
  67. package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
  68. package/Components/JsonConfigComponent/ConfigTimePicker.js.map +1 -1
  69. package/Components/JsonConfigComponent/ConfigTopic.js +1 -1
  70. package/Components/JsonConfigComponent/ConfigTopic.js.map +1 -1
  71. package/Components/JsonConfigComponent/ConfigUUID.js +1 -1
  72. package/Components/JsonConfigComponent/ConfigUUID.js.map +1 -1
  73. package/Components/JsonConfigComponent/index.js.map +1 -1
  74. package/Components/ObjectBrowser.js +22 -25
  75. package/Components/ObjectBrowser.js.map +1 -1
  76. package/Components/UploadImage.js +2 -2
  77. package/Components/UploadImage.js.map +1 -1
  78. package/Components/Utils.js +1 -1
  79. package/Components/Utils.js.map +1 -1
  80. package/Dialogs/Confirm.js +1 -1
  81. package/Dialogs/Confirm.js.map +1 -1
  82. package/LegacyConnection.d.ts +6 -0
  83. package/LegacyConnection.js +181 -161
  84. package/LegacyConnection.js.map +1 -1
  85. package/README.md +11 -3
  86. package/i18n/de.json +3 -1
  87. package/i18n/en.json +3 -1
  88. package/i18n/es.json +3 -1
  89. package/i18n/fr.json +3 -1
  90. package/i18n/it.json +3 -1
  91. package/i18n/nl.json +3 -1
  92. package/i18n/pl.json +3 -1
  93. package/i18n/pt.json +3 -1
  94. package/i18n/ru.json +3 -1
  95. package/i18n/uk.json +3 -1
  96. package/i18n/zh-cn.json +3 -1
  97. package/package.json +9 -9
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,14 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
661
661
  -->
662
662
 
663
663
  ## Changelog
664
+ ### 4.2.1 (2023-07-17)
665
+ * (bluefox) Updated packages
666
+ * (bluefox) Added translations
667
+
668
+ ### 4.2.0 (2023-07-07)
669
+ * (bluefox) Updated packages
670
+ * (bluefox) Added new method `getObjectsById` to the socket communication
671
+
664
672
  ### 4.1.2 (2023-06-20)
665
673
  * (bluefox) Allowed setting theme name directly by theme toggle
666
674
 
package/i18n/de.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Benutzerdefinierte Fallback-Zertifikate",
381
381
  "ra_Clone current row": "Aktuelle Zeile klonen",
382
382
  "ra_fileType_video": "Video",
383
- "ra_select_folder_hint": "Um einen Ordner auszuwählen, halten Sie einfach die Taste \"Shift\" gedrückt, indem Sie auf den Ordner klicken."
383
+ "ra_select_folder_hint": "Um einen Ordner auszuwählen, halten Sie einfach die Taste \"Shift\" gedrückt, indem Sie auf den Ordner klicken.",
384
+ "ra_Accept license": "Lizenz akzeptieren",
385
+ "ra_License agreement": "Lizenzvereinbarung"
384
386
  }
package/i18n/en.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Fallback custom certificates",
381
381
  "ra_Clone current row": "Clone current row",
382
382
  "ra_fileType_video": "Video",
383
- "ra_select_folder_hint": "To select folder, just hold the key \"shift\" by clicking the folder."
383
+ "ra_select_folder_hint": "To select folder, just hold the key \"shift\" by clicking the folder.",
384
+ "ra_Accept license": "Accept license",
385
+ "ra_License agreement": "License agreement"
384
386
  }
package/i18n/es.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Certificados personalizados alternativos",
381
381
  "ra_Clone current row": "Clonar fila actual",
382
382
  "ra_fileType_video": "Video",
383
- "ra_select_folder_hint": "Para seleccionar la carpeta, simplemente mantenga presionada la tecla \"shift\" haciendo clic en la carpeta."
383
+ "ra_select_folder_hint": "Para seleccionar la carpeta, simplemente mantenga presionada la tecla \"shift\" haciendo clic en la carpeta.",
384
+ "ra_Accept license": "Aceptar licencia",
385
+ "ra_License agreement": "Acuerdo de licencia"
384
386
  }
package/i18n/fr.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Certificats personnalisés de secours",
381
381
  "ra_Clone current row": "Cloner la ligne actuelle",
382
382
  "ra_fileType_video": "Vidéo",
383
- "ra_select_folder_hint": "Pour sélectionner un dossier, maintenez simplement la touche \"shift\" enfoncée en cliquant sur le dossier."
383
+ "ra_select_folder_hint": "Pour sélectionner un dossier, maintenez simplement la touche \"shift\" enfoncée en cliquant sur le dossier.",
384
+ "ra_Accept license": "Accepter la licence",
385
+ "ra_License agreement": "Accord de licence"
384
386
  }
package/i18n/it.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Certificati personalizzati di fallback",
381
381
  "ra_Clone current row": "Clona riga corrente",
382
382
  "ra_fileType_video": "video",
383
- "ra_select_folder_hint": "Per selezionare la cartella, basta tenere premuto il tasto \"shift\" facendo clic sulla cartella."
383
+ "ra_select_folder_hint": "Per selezionare la cartella, basta tenere premuto il tasto \"shift\" facendo clic sulla cartella.",
384
+ "ra_Accept license": "Accetta licenza",
385
+ "ra_License agreement": "Contratto di licenza"
384
386
  }
package/i18n/nl.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Fallback aangepaste certificaten",
381
381
  "ra_Clone current row": "Kloon de huidige rij",
382
382
  "ra_fileType_video": "Video",
383
- "ra_select_folder_hint": "Om een map te selecteren, houdt u gewoon de toets \"shift\" ingedrukt door op de map te klikken."
383
+ "ra_select_folder_hint": "Om een map te selecteren, houdt u gewoon de toets \"shift\" ingedrukt door op de map te klikken.",
384
+ "ra_Accept license": "Accepteer licentie",
385
+ "ra_License agreement": "Licentieovereenkomst"
384
386
  }
package/i18n/pl.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Niestandardowe certyfikaty zastępcze",
381
381
  "ra_Clone current row": "Sklonuj bieżący wiersz",
382
382
  "ra_fileType_video": "Wideo",
383
- "ra_select_folder_hint": "Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder."
383
+ "ra_select_folder_hint": "Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",
384
+ "ra_Accept license": "Zaakceptuj licencję",
385
+ "ra_License agreement": "Umowa licencyjna"
384
386
  }
package/i18n/pt.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Certificados personalizados alternativos",
381
381
  "ra_Clone current row": "Clonar linha atual",
382
382
  "ra_fileType_video": "Vídeo",
383
- "ra_select_folder_hint": "Para selecionar a pasta, basta segurar a tecla \"shift\" clicando na pasta."
383
+ "ra_select_folder_hint": "Para selecionar a pasta, basta segurar a tecla \"shift\" clicando na pasta.",
384
+ "ra_Accept license": "Aceitar licença",
385
+ "ra_License agreement": "Contrato de licença"
384
386
  }
package/i18n/ru.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Резервные пользовательские сертификаты",
381
381
  "ra_Clone current row": "Клонировать текущую строку",
382
382
  "ra_fileType_video": "видео",
383
- "ra_select_folder_hint": "Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку."
383
+ "ra_select_folder_hint": "Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",
384
+ "ra_Accept license": "Принять лицензию",
385
+ "ra_License agreement": "Лицензионное соглашение"
384
386
  }
package/i18n/uk.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "Запасні спеціальні сертифікати",
381
381
  "ra_Clone current row": "Клонувати поточний рядок",
382
382
  "ra_fileType_video": "відео",
383
- "ra_select_folder_hint": "Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift»."
383
+ "ra_select_folder_hint": "Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",
384
+ "ra_Accept license": "Прийняти ліцензію",
385
+ "ra_License agreement": "Ліцензійна угода"
384
386
  }
package/i18n/zh-cn.json CHANGED
@@ -380,5 +380,7 @@
380
380
  "ra_Fallback custom certificates": "后备自定义证书",
381
381
  "ra_Clone current row": "克隆当前行",
382
382
  "ra_fileType_video": "视频",
383
- "ra_select_folder_hint": "要选择文件夹,只需按住“shift”键单击文件夹即可。"
383
+ "ra_select_folder_hint": "要选择文件夹,只需按住“shift”键单击文件夹即可。",
384
+ "ra_Accept license": "接受许可",
385
+ "ra_License agreement": "许可协议"
384
386
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "4.1.2",
3
+ "version": "4.2.1",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -29,19 +29,19 @@
29
29
  "dependencies": {
30
30
  "@emotion/react": "^11.11.1",
31
31
  "@emotion/styled": "^11.11.0",
32
- "@mui/icons-material": "^5.11.16",
33
- "@mui/material": "^5.13.5",
34
- "@mui/styles": "^5.13.2",
35
- "@mui/x-date-pickers": "6.8.0",
36
- "@iobroker/socket-client": "^2.1.0",
32
+ "@mui/icons-material": "^5.14.0",
33
+ "@mui/material": "^5.14.0",
34
+ "@mui/styles": "^5.14.0",
35
+ "@mui/x-date-pickers": "6.10.0",
36
+ "@iobroker/socket-client": "^2.2.0",
37
37
  "react-cropper": "^2.3.3",
38
- "@sentry/browser": "^7.56.0",
39
- "@sentry/integrations": "^7.56.0",
38
+ "@sentry/browser": "^7.58.1",
39
+ "@sentry/integrations": "^7.58.1",
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.9.0",
44
+ "react-icons": "^4.10.1",
45
45
  "react-inlinesvg": "^3.0.2",
46
46
  "react-text-mask": "^5.5.0"
47
47
  }