@iobroker/dm-gui-components 9.1.6 → 9.1.8

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.
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Please select instance",
35
35
  "toClipboard": "to clipboard",
36
36
  "updateAvailable": "Update available",
37
+ "updateConfirmation": "Do you want to install the available update?",
37
38
  "yesButtonText": "Yes"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Por favor seleccione una instancia",
35
35
  "toClipboard": "al portapapeles",
36
36
  "updateAvailable": "Actualización disponible",
37
+ "updateConfirmation": "¿Desea instalar la actualización disponible?",
37
38
  "yesButtonText": "Sí"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Veuillez sélectionner une instance",
35
35
  "toClipboard": "au presse-papiers",
36
36
  "updateAvailable": "Mise à jour disponible",
37
+ "updateConfirmation": "Voulez-vous installer la mise à jour disponible ?",
37
38
  "yesButtonText": "Oui"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Seleziona l'istanza",
35
35
  "toClipboard": "negli appunti",
36
36
  "updateAvailable": "Aggiornamento disponibile",
37
+ "updateConfirmation": "Vuoi installare l'aggiornamento disponibile?",
37
38
  "yesButtonText": "SÌ"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Selecteer een instantie",
35
35
  "toClipboard": "naar klembord",
36
36
  "updateAvailable": "Update beschikbaar",
37
+ "updateConfirmation": "Wilt u de beschikbare update installeren?",
37
38
  "yesButtonText": "Ja"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Proszę wybrać instancję",
35
35
  "toClipboard": "do schowka",
36
36
  "updateAvailable": "Dostępna aktualizacja",
37
+ "updateConfirmation": "Czy chcesz zainstalować dostępną aktualizację?",
37
38
  "yesButtonText": "Tak"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Por favor, selecione uma instância.",
35
35
  "toClipboard": "para a área de transferência",
36
36
  "updateAvailable": "Atualização disponível",
37
+ "updateConfirmation": "Deseja instalar a atualização disponível?",
37
38
  "yesButtonText": "Sim"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Пожалуйста, выберите экземпляр.",
35
35
  "toClipboard": "в буфер обмена",
36
36
  "updateAvailable": "Доступно обновление",
37
+ "updateConfirmation": "Вы хотите установить доступное обновление?",
37
38
  "yesButtonText": "Да"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "Будь ласка, виберіть екземпляр",
35
35
  "toClipboard": "в буфер обміну",
36
36
  "updateAvailable": "Доступне оновлення",
37
+ "updateConfirmation": "Бажаєте встановити доступне оновлення?",
37
38
  "yesButtonText": "Так"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "selectInstanceText": "请选择实例",
35
35
  "toClipboard": "到剪贴板",
36
36
  "updateAvailable": "有可用更新",
37
+ "updateConfirmation": "是否要安装可用的更新?",
37
38
  "yesButtonText": "是的"
38
39
  }
@@ -1,9 +1,9 @@
1
1
  import { type Connection } from '@iobroker/adapter-react-v5';
2
- import type { RetVal } from '@iobroker/dm-utils';
2
+ import type { DeviceId, RetVal } from '@iobroker/dm-utils';
3
3
  import type { ControlState, DeviceInfo, DmActionResponse, DmControlResponse, InstanceDetails } from './api';
4
4
  export interface Message {
5
5
  actionId?: string;
6
- deviceId?: string;
6
+ deviceId?: DeviceId;
7
7
  value?: unknown;
8
8
  origin?: number;
9
9
  confirm?: boolean;
@@ -21,7 +21,7 @@ export declare abstract class DmProtocolBase {
21
21
  abstract loadDevices(callback: LoadDevicesCallback): Promise<void>;
22
22
  abstract sendAction(command: CommandName, messageToSend: Message): Promise<DmActionResponse | DmControlResponse>;
23
23
  abstract sendControl(command: CommandName, messageToSend: {
24
- deviceId: string;
24
+ deviceId: DeviceId;
25
25
  controlId: string;
26
26
  state?: ControlState;
27
27
  }): Promise<DmControlResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"DmProtocolBase.js","sourceRoot":"./src/","sources":["protocol/DmProtocolBase.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAgB,cAAc;IAEX;IACA;IAFrB,YACqB,gBAAwB,EACxB,MAAkB;QADlB,qBAAgB,GAAhB,gBAAgB,CAAQ;QACxB,WAAM,GAAN,MAAM,CAAY;IACpC,CAAC;IAgBM,IAAI,CAAU,OAAoB,EAAE,IAAU;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;CACJ","sourcesContent":["import { type Connection } from '@iobroker/adapter-react-v5';\nimport type { RetVal } from '@iobroker/dm-utils';\nimport type { ControlState, DeviceInfo, DmActionResponse, DmControlResponse, InstanceDetails } from './api';\n\nexport interface Message {\n actionId?: string;\n deviceId?: string;\n value?: unknown;\n origin?: number;\n confirm?: boolean;\n data?: any;\n /** Inform backend, how long the frontend will wait for an answer */\n timeout?: number;\n}\n\nexport type CommandName = `dm:${string}`;\n\nexport type LoadDevicesCallback = (batch: DeviceInfo[], total?: number) => RetVal<void>;\n\nexport abstract class DmProtocolBase {\n constructor(\n private readonly selectedInstance: string,\n private readonly socket: Connection,\n ) {}\n\n public abstract convertInstanceDetails(details: any): InstanceDetails;\n\n public abstract loadDevices(callback: LoadDevicesCallback): Promise<void>;\n\n public abstract sendAction(\n command: CommandName,\n messageToSend: Message,\n ): Promise<DmActionResponse | DmControlResponse>;\n\n public abstract sendControl(\n command: CommandName,\n messageToSend: { deviceId: string; controlId: string; state?: ControlState },\n ): Promise<DmControlResponse>;\n\n protected send<T = any>(command: CommandName, data?: any): Promise<T> {\n return this.socket.sendTo(this.selectedInstance, command, data);\n }\n}\n"]}
1
+ {"version":3,"file":"DmProtocolBase.js","sourceRoot":"./src/","sources":["protocol/DmProtocolBase.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAgB,cAAc;IAEX;IACA;IAFrB,YACqB,gBAAwB,EACxB,MAAkB;QADlB,qBAAgB,GAAhB,gBAAgB,CAAQ;QACxB,WAAM,GAAN,MAAM,CAAY;IACpC,CAAC;IAgBM,IAAI,CAAU,OAAoB,EAAE,IAAU;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;CACJ","sourcesContent":["import { type Connection } from '@iobroker/adapter-react-v5';\nimport type { DeviceId, RetVal } from '@iobroker/dm-utils';\nimport type { ControlState, DeviceInfo, DmActionResponse, DmControlResponse, InstanceDetails } from './api';\n\nexport interface Message {\n actionId?: string;\n deviceId?: DeviceId;\n value?: unknown;\n origin?: number;\n confirm?: boolean;\n data?: any;\n /** Inform backend, how long the frontend will wait for an answer */\n timeout?: number;\n}\n\nexport type CommandName = `dm:${string}`;\n\nexport type LoadDevicesCallback = (batch: DeviceInfo[], total?: number) => RetVal<void>;\n\nexport abstract class DmProtocolBase {\n constructor(\n private readonly selectedInstance: string,\n private readonly socket: Connection,\n ) {}\n\n public abstract convertInstanceDetails(details: any): InstanceDetails;\n\n public abstract loadDevices(callback: LoadDevicesCallback): Promise<void>;\n\n public abstract sendAction(\n command: CommandName,\n messageToSend: Message,\n ): Promise<DmActionResponse | DmControlResponse>;\n\n public abstract sendControl(\n command: CommandName,\n messageToSend: { deviceId: DeviceId; controlId: string; state?: ControlState },\n ): Promise<DmControlResponse>;\n\n protected send<T = any>(command: CommandName, data?: any): Promise<T> {\n return this.socket.sendTo(this.selectedInstance, command, data);\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/dm-gui-components",
3
- "version": "9.1.6",
3
+ "version": "9.1.8",
4
4
  "description": "ReactJS components to develop admin interface for ioBroker device manager.",
5
5
  "author": {
6
6
  "name": "Jey Cee",
@@ -52,16 +52,16 @@
52
52
  },
53
53
  "homepage": "https://github.com/ioBroker/dm-gui-components#readme",
54
54
  "dependencies": {
55
- "@iobroker/adapter-react-v5": "^8.2.13",
56
- "@iobroker/json-config": "^8.4.11"
55
+ "@iobroker/adapter-react-v5": "^8.3.1",
56
+ "@iobroker/json-config": "^8.4.15"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@alcalzone/release-script": "^5.2.1",
60
60
  "@alcalzone/release-script-plugin-license": "^5.2.0",
61
61
  "@iobroker/build-tools": "^3.0.1",
62
- "@iobroker/dm-utils": "^3.1.1",
62
+ "@iobroker/dm-utils": "^3.1.3",
63
63
  "@iobroker/dm-utils-v1": "npm:@iobroker/dm-utils@^1.0.16",
64
- "@iobroker/eslint-config": "^2.2.0",
64
+ "@iobroker/eslint-config": "^2.3.4",
65
65
  "@types/react": "^18.3.31",
66
66
  "@types/react-dom": "^18.3.7",
67
67
  "react": "^18.3.1",