diff --git a/README.md b/README.md index 5854498c..4aa28f6a 100644 --- a/README.md +++ b/README.md @@ -257,13 +257,13 @@ Here's a simple example with a circle in an SVG: In this case, if the SVG takes the color of parent element. E.g., if it was used in a menu and the menu is red, the circle would be red. -## Developement and Debugging +## Development and Debugging In order to make adjustments to the vis-2 editor itself, to search for errors and to debug, the following steps must be carried out. -1. fork the iobroker/iobroker.vis-2 repository into your own account via user interface of github +1. fork the iobroker/iobroker.vis-2 repository into your own account via user interface of GitHub -2. clone the repository into a directory. copy the url from your github repository. the command looks like +2. clone the repository into a directory. copy the url from your GitHub repository. the command looks like ``` git clone https://github.com//ioBroker.vis-2.git @@ -294,7 +294,7 @@ npm run start ### **WORK IN PROGRESS** --> ## Changelog -### 2.10.0 (2024-07-07) +### **WORK IN PROGRESS** * (bluefox) Removed incompatible package for styles * (bluefox) All widgets must be updated diff --git a/packages/iobroker.vis-2/io-package.json b/packages/iobroker.vis-2/io-package.json index 8c331de1..fa79a592 100644 --- a/packages/iobroker.vis-2/io-package.json +++ b/packages/iobroker.vis-2/io-package.json @@ -3,19 +3,6 @@ "name": "vis-2", "version": "2.10.0", "news": { - "2.10.0": { - "en": "Removed incompatible package for styles\nAll widgets must be updated", - "de": "Unverträgliches Paket für Styles entfernt\nAlle Widgets müssen aktualisiert werden", - "ru": "Удаленный несовместимый пакет для стилей\nВсе виджеты должны быть обновлены", - "pt": "Pacote incompatível removido para estilos\nTodos os widgets devem ser atualizados", - "nl": "Incompatibel pakket voor stijlen verwijderd\nAlle widgets moeten bijgewerkt worden", - "fr": "Enlever le paquet incompatible pour les styles\nTous les widgets doivent être actualisés", - "it": "Pacchetto incompatibile rimosso per stili\nTutti i widget devono essere aggiornati", - "es": "Paquete incompatible eliminado para estilos\nTodos los widgets deben ser actualizados", - "pl": "Usunięty niekompatybilny pakiet stylów\nWszystkie widżety muszą być aktualizowane", - "uk": "Видалено несумісний пакет для стилів\nВсі віджети повинні бути оновлені", - "zh-cn": "删除样式不兼容的软件包\n所有部件都必须更新" - }, "2.9.64": { "en": "Added possibility to clear a text field by button", "de": "Möglichkeit hinzugefügt, ein Textfeld per Knopf zu löschen", diff --git a/packages/iobroker.vis-2/src/src/Vis/visEngine.tsx b/packages/iobroker.vis-2/src/src/Vis/visEngine.tsx index fc2d6e94..d37c9836 100644 --- a/packages/iobroker.vis-2/src/src/Vis/visEngine.tsx +++ b/packages/iobroker.vis-2/src/src/Vis/visEngine.tsx @@ -1339,7 +1339,7 @@ class VisEngine extends React.Component { .then(() => cb && cb()) .catch(error => cb && cb(error)); }, - sendTo: (instance, command, data, cb) => { + sendTo: (instance: string, command: string, data: any, cb?: (result: Record) => void) => { this.props.socket.sendTo(instance, command, data) .then(result => cb && cb(result)) .catch(error => cb && cb(error)); diff --git a/packages/iobroker.vis-2/src/src/version.json b/packages/iobroker.vis-2/src/src/version.json index fcc5972b..537cb4ff 100644 --- a/packages/iobroker.vis-2/src/src/version.json +++ b/packages/iobroker.vis-2/src/src/version.json @@ -1,3 +1,3 @@ { - "version": "2.9.64" + "version": "2.10.0" } \ No newline at end of file diff --git a/packages/types-vis-2/index.d.ts b/packages/types-vis-2/index.d.ts index dd3e9cc3..5794a75d 100644 --- a/packages/types-vis-2/index.d.ts +++ b/packages/types-vis-2/index.d.ts @@ -876,6 +876,8 @@ export interface VisLegacy { getUserGroups: () => Record; detectBounce: (el: any, isUp?: boolean) => boolean; isFloatComma?: boolean; + subscribe: (IDs: string[], cb: () => void) => void; + unsubscribe: (IDs: string[], cb: () => void) => void; } export interface MaterialIconSelectorProps {