@iobroker/adapter-react-v5 8.1.1 → 8.1.3

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/README.md CHANGED
@@ -690,6 +690,12 @@ You can find the migration instructions:
690
690
  -->
691
691
 
692
692
  ## Changelog
693
+ ### 8.1.3 (2026-03-09)
694
+ - (@GermanBluefox) Added export of the types icons
695
+
696
+ ### 8.1.2 (2026-03-05)
697
+ - (@GermanBluefox) Updated packages
698
+
693
699
  ### 8.1.1 (2026-03-02)
694
700
  - (@GermanBluefox) Force react 18
695
701
 
@@ -105,7 +105,7 @@ export function iobUriParse(uri) {
105
105
  return result;
106
106
  }
107
107
  export function getAttrInObject(obj, path, _position) {
108
- _position = _position || 0;
108
+ _position ||= 0;
109
109
  if (obj === undefined || obj === null || !path) {
110
110
  return obj;
111
111
  }
@@ -118,7 +118,7 @@ export function getAttrInObject(obj, path, _position) {
118
118
  return undefined;
119
119
  }
120
120
  export function setAttrInObject(obj, path, value, _position) {
121
- _position = _position || 0;
121
+ _position ||= 0;
122
122
  if (obj === undefined || obj === null || !path) {
123
123
  return value;
124
124
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IobUri.js","sourceRoot":"./src/","sources":["Components/IobUri.tsx"],"names":[],"mappings":"AAOA,MAAM,UAAU,cAAc,CAAC,GAAiB;IAC5C,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACxB,OAAO,eAAe,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;IAC1D,CAAC;IACD,IAAI,GAAG,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,cAAc,GAAG,CAAC,OAAO,EAAE,CAAC;IACvC,CAAC;IACD,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QACtB,OAAO,aAAa,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,IAAI,IAAI,EAAE,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,IAAI,EAAE,CAAC;aACjC,IAAI,CAAC,IAAI,CAAC,EAAE;YACT,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gBAC/F,IAAI,CAAC;oBACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;gBAAC,MAAM,CAAC;oBACL,SAAS;gBACb,CAAC;YACL,CAAC;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;IACX,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,iBAAiB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;AACjD,CAAC","sourcesContent":["import type { Connection } from '../index';\n\nexport type IobUri = string;\nexport type IobUriType = 'object' | 'state' | 'file' | 'http' | 'base64';\n\nexport type IobUriParsed = { type: IobUriType; address: string; path?: string };\n\nexport function iobUriToString(uri: IobUriParsed): IobUri {\n if (uri.type === 'object') {\n return `iobobject://${uri.address}/${uri.path || ''}`;\n }\n if (uri.type === 'state') {\n return `iobstate://${uri.address}`;\n }\n if (uri.type === 'file') {\n return `iobfile://${uri.address}/${uri.path || ''}`;\n }\n if (uri.type === 'http') {\n return uri.address;\n }\n if (uri.path?.includes('/')) {\n return `iobfile://${uri.address}/${uri.path}`;\n }\n if (uri.path) {\n return `iobobject://${uri.address}/${uri.path}`;\n }\n return `iobstate://${uri.address}`;\n}\n\n/** Parse ioBroker URI */\nexport function iobUriParse(uri: string): IobUriParsed {\n const result: IobUriParsed = {\n type: 'object',\n address: '',\n };\n if (uri.startsWith('iobobject://')) {\n result.type = 'object';\n uri = uri.replace('iobobject://', '');\n const parts = uri.split('/');\n result.address = parts[0];\n result.path = parts[1]; // native.schemas.myObject\n } else if (uri.startsWith('iobstate://')) {\n result.type = 'state';\n uri = uri.replace('iobstate://', '');\n const parts = uri.split('/');\n result.address = parts[0];\n result.path = parts[1]; // val, ts, lc, from, q, ...\n } else if (uri.startsWith('iobfile://')) {\n result.type = 'file';\n uri = uri.replace('iobfile://', '');\n const parts = uri.split('/');\n result.address = parts.shift();\n result.path = parts.join('/'); // main/img/hello.png\n } else if (uri.startsWith('http://') || uri.startsWith('https://')) {\n result.type = 'http';\n result.address = uri; // https://googlw.com/path/uri?lakds=7889\n } else if (uri.startsWith('data:')) {\n // data:image/jpeg;base64,\n result.type = 'base64';\n result.address = uri; // data:image/jpeg;base64,...\n } else {\n // no protocol provided\n const parts = uri.split('/');\n if (parts.length === 2) {\n result.address = parts[0];\n result.path = parts[1];\n if (result.path.includes('.')) {\n result.type = 'object';\n } else if (result.path) {\n if (\n result.path === 'val' ||\n result.path === 'q' ||\n result.path === 'ack' ||\n result.path === 'ts' ||\n result.path === 'lc' ||\n result.path === 'from' ||\n result.path === 'user' ||\n result.path === 'expire' ||\n result.path === 'c'\n ) {\n result.type = 'state';\n } else if (\n result.path === 'common' ||\n result.path === 'native' ||\n result.path === 'from' ||\n result.path === 'acl' ||\n result.path === 'type'\n ) {\n result.type = 'object';\n } else {\n throw new Error(`Unknown path: ${result.path}`);\n }\n } else {\n result.type = 'state';\n }\n } else if (parts.length === 1) {\n result.address = parts[0];\n result.type = 'state';\n } else {\n // it is a file\n result.address = parts.shift();\n result.type = 'file';\n result.path = parts.join('/');\n }\n }\n return result;\n}\n\nexport function getAttrInObject(\n obj: Record<string, any> | null | undefined,\n path: string[] | undefined,\n _position?: number,\n): any {\n _position = _position || 0;\n if (obj === undefined || obj === null || !path) {\n return obj;\n }\n if (path.length - 1 === _position) {\n return obj[path[_position]];\n }\n if (typeof obj === 'object') {\n return getAttrInObject(obj[path[_position]], path, _position + 1);\n }\n return undefined;\n}\n\nexport function setAttrInObject(\n obj: Record<string, any> | null | undefined,\n path: string[] | undefined,\n value: any,\n _position?: number,\n): any {\n _position = _position || 0;\n if (obj === undefined || obj === null || !path) {\n return value;\n }\n if (path.length - 1 === _position) {\n obj[path[_position]] = value;\n return obj;\n }\n if (typeof obj === 'object') {\n return setAttrInObject(obj[path[_position]], path, value, _position + 1);\n }\n}\n\nexport async function iobUriRead(uri: IobUri | IobUriParsed, socket: Connection): Promise<any> {\n if (typeof uri === 'string') {\n uri = iobUriParse(uri);\n }\n if (uri.type === 'object') {\n const obj: ioBroker.Object | null | undefined = await socket.getObject(uri.address);\n return getAttrInObject(obj, uri.path?.split('.'));\n }\n if (uri.type === 'state') {\n const state: ioBroker.State | null | undefined = await socket.getState(uri.address);\n if (!uri.path) {\n return state;\n }\n return (state as Record<string, any>)?.[uri.path];\n }\n if (uri.type === 'file') {\n return await socket.readFile(uri.address, uri.path, true);\n }\n if (uri.type === 'http') {\n return fetch(uri.address)\n .then(response => response.text())\n .then(text => {\n if ((text.startsWith('{') && text.endsWith('}')) || (text.startsWith('[') && text.endsWith(']'))) {\n try {\n return JSON.parse(text);\n } catch {\n // ignore\n }\n }\n return text;\n });\n }\n throw new Error(`Unknown type: ${uri.type}`);\n}\n"]}
1
+ {"version":3,"file":"IobUri.js","sourceRoot":"./src/","sources":["Components/IobUri.tsx"],"names":[],"mappings":"AAOA,MAAM,UAAU,cAAc,CAAC,GAAiB;IAC5C,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACxB,OAAO,eAAe,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;IAC1D,CAAC;IACD,IAAI,GAAG,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,cAAc,GAAG,CAAC,OAAO,EAAE,CAAC;IACvC,CAAC;IACD,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QACtB,OAAO,aAAa,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;IACxD,CAA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,EAAE;YACT,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gBAC/F,IAAI,CAAC;oBACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;gBAAC,MAAM,CAAC;oBACL,SAAS;gBACb,CAAC;YACL,CAAC;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;IACX,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,iBAAiB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;AACjD,CAAC","sourcesContent":["import type { Connection } from '../index';\n\nexport type IobUri = string;\nexport type IobUriType = 'object' | 'state' | 'file' | 'http' | 'base64';\n\nexport type IobUriParsed = { type: IobUriType; address: string; path?: string };\n\nexport function iobUriToString(uri: IobUriParsed): IobUri {\n if (uri.type === 'object') {\n return `iobobject://${uri.address}/${uri.path || ''}`;\n }\n if (uri.type === 'state') {\n return `iobstate://${uri.address}`;\n }\n if (uri.type === 'file') {\n return `iobfile://${uri.address}/${uri.path || ''}`;\n }\n if (uri.type === 'http') {\n return uri.address;\n }\n if (uri.path?.includes('/')) {\n return `iobfile://${uri.address}/${uri.path}`;\n }\n if (uri.path) {\n return `iobobject://${uri.address}/${uri.path}`;\n }\n return `iobstate://${uri.address}`;\n}\n\n/** Parse ioBroker URI */\nexport function iobUriParse(uri: string): IobUriParsed {\n const result: IobUriParsed = {\n type: 'object',\n address: '',\n };\n if (uri.startsWith('iobobject://')) {\n result.type = 'object';\n uri = uri.replace('iobobject://', '');\n const parts = uri.split('/');\n result.address = parts[0];\n result.path = parts[1]; // native.schemas.myObject\n } else if (uri.startsWith('iobstate://')) {\n result.type = 'state';\n uri = uri.replace('iobstate://', '');\n const parts = uri.split('/');\n result.address = parts[0];\n result.path = parts[1]; // val, ts, lc, from, q, ...\n } else if (uri.startsWith('iobfile://')) {\n result.type = 'file';\n uri = uri.replace('iobfile://', '');\n const parts = uri.split('/');\n result.address = parts.shift();\n result.path = parts.join('/'); // main/img/hello.png\n } else if (uri.startsWith('http://') || uri.startsWith('https://')) {\n result.type = 'http';\n result.address = uri; // https://googlw.com/path/uri?lakds=7889\n } else if (uri.startsWith('data:')) {\n // data:image/jpeg;base64,\n result.type = 'base64';\n result.address = uri; // data:image/jpeg;base64,...\n } else {\n // no protocol provided\n const parts = uri.split('/');\n if (parts.length === 2) {\n result.address = parts[0];\n result.path = parts[1];\n if (result.path.includes('.')) {\n result.type = 'object';\n } else if (result.path) {\n if (\n result.path === 'val' ||\n result.path === 'q' ||\n result.path === 'ack' ||\n result.path === 'ts' ||\n result.path === 'lc' ||\n result.path === 'from' ||\n result.path === 'user' ||\n result.path === 'expire' ||\n result.path === 'c'\n ) {\n result.type = 'state';\n } else if (\n result.path === 'common' ||\n result.path === 'native' ||\n result.path === 'from' ||\n result.path === 'acl' ||\n result.path === 'type'\n ) {\n result.type = 'object';\n } else {\n throw new Error(`Unknown path: ${result.path}`);\n }\n } else {\n result.type = 'state';\n }\n } else if (parts.length === 1) {\n result.address = parts[0];\n result.type = 'state';\n } else {\n // it is a file\n result.address = parts.shift();\n result.type = 'file';\n result.path = parts.join('/');\n }\n }\n return result;\n}\n\nexport function getAttrInObject(\n obj: Record<string, any> | null | undefined,\n path: string[] | undefined,\n _position?: number,\n): any {\n _position ||= 0;\n if (obj === undefined || obj === null || !path) {\n return obj;\n }\n if (path.length - 1 === _position) {\n return obj[path[_position]];\n }\n if (typeof obj === 'object') {\n return getAttrInObject(obj[path[_position]], path, _position + 1);\n }\n return undefined;\n}\n\nexport function setAttrInObject(\n obj: Record<string, any> | null | undefined,\n path: string[] | undefined,\n value: any,\n _position?: number,\n): any {\n _position ||= 0;\n if (obj === undefined || obj === null || !path) {\n return value;\n }\n if (path.length - 1 === _position) {\n obj[path[_position]] = value;\n return obj;\n }\n if (typeof obj === 'object') {\n return setAttrInObject(obj[path[_position]], path, value, _position + 1);\n }\n}\n\nexport async function iobUriRead(uri: IobUri | IobUriParsed, socket: Connection): Promise<any> {\n if (typeof uri === 'string') {\n uri = iobUriParse(uri);\n }\n if (uri.type === 'object') {\n const obj: ioBroker.Object | null | undefined = await socket.getObject(uri.address);\n return getAttrInObject(obj, uri.path?.split('.'));\n }\n if (uri.type === 'state') {\n const state: ioBroker.State | null | undefined = await socket.getState(uri.address);\n if (!uri.path) {\n return state;\n }\n return (state as Record<string, any>)?.[uri.path];\n }\n if (uri.type === 'file') {\n return await socket.readFile(uri.address, uri.path, true);\n }\n if (uri.type === 'http') {\n return fetch(uri.address)\n .then(response => response.text())\n .then(text => {\n if ((text.startsWith('{') && text.endsWith('}')) || (text.startsWith('[') && text.endsWith(']'))) {\n try {\n return JSON.parse(text);\n } catch {\n // ignore\n }\n }\n return text;\n });\n }\n throw new Error(`Unknown type: ${uri.type}`);\n}\n"]}
package/build/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { DeviceTypeSelector } from './Components/DeviceType/DeviceTypeSelector';
16
16
  export { DeviceTypeIcon } from './Components/DeviceType/DeviceTypeIcon';
17
17
  export { STATES_NAME_ICONS } from './Components/DeviceType/DeviceTypeOptions';
18
18
  export { extendDeviceTypeTranslation } from './Components/DeviceType/deviceTypeTranslations';
19
+ export { type IconPropsSVG, Cleaner, DoorClosed, DoorOpened, FireOff, FireOn, FloodOff, FloodOn, Gate, HeatValve, Home, Humidity, IconHome, Jalousie, Material, MotionOff, MotionOn, PushButton, RepairExpert, RGB, Socket, Thermometer, ThermometerSimple, Thermostat, Valve, WindowClosed, WindowOpened, WindowTilted, } from './Components/DeviceType/icons';
19
20
  export { Loader } from './Components/Loader';
20
21
  export { Logo } from './Components/Logo';
21
22
  export { MDUtils } from './Components/MDUtils';
package/build/index.js CHANGED
@@ -16,6 +16,7 @@ export { DeviceTypeSelector } from './Components/DeviceType/DeviceTypeSelector';
16
16
  export { DeviceTypeIcon } from './Components/DeviceType/DeviceTypeIcon';
17
17
  export { STATES_NAME_ICONS } from './Components/DeviceType/DeviceTypeOptions';
18
18
  export { extendDeviceTypeTranslation } from './Components/DeviceType/deviceTypeTranslations';
19
+ export { Cleaner, DoorClosed, DoorOpened, FireOff, FireOn, FloodOff, FloodOn, Gate, HeatValve, Home, Humidity, IconHome, Jalousie, Material, MotionOff, MotionOn, PushButton, RepairExpert, RGB, Socket, Thermometer, ThermometerSimple, Thermostat, Valve, WindowClosed, WindowOpened, WindowTilted, } from './Components/DeviceType/icons';
19
20
  export { Loader } from './Components/Loader';
20
21
  export { Logo } from './Components/Logo';
21
22
  export { MDUtils } from './Components/MDUtils';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"./src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACH,WAAW,EAMX,gBAAgB,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,UAAU,EACV,UAAU,EACV,eAAe,GAGlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,E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AAqB,CAAC,CAAC,aAAa;AACjF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACH,gBAAgB,EAMhB,aAAa,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAIH,eAAe,EACf,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,GACb,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC","sourcesContent":["export { Theme } from './Theme';\nexport { GenericApp } from './GenericApp';\nexport { I18n } from './i18n';\nexport { printPrompt } from './Prompt';\nexport { ColorPicker } from './Components/ColorPicker';\nexport { ComplexCron } from './Components/ComplexCron';\nexport { copy } from './Components/CopyToClipboard';\nexport { CustomModal } from './Components/CustomModal';\nexport {\n FileBrowser,\n type MetaACL,\n type MetaObject,\n type FileBrowserProps,\n type FolderOrFileItem,\n type Folders,\n FileBrowserClass,\n} from './Components/FileBrowser';\nexport {\n EXTENSIONS,\n FileViewer,\n FileViewerClass,\n type FileViewerProps,\n type FileViewerState,\n} from './Components/FileViewer';\nexport { getSystemIcon, getSelectIdIcon, Icon } from './Components/Icon';\nexport { IconPicker } from './Components/IconPicker';\nexport { IconSelector } from './Components/IconSelector';\nexport { Image } from './Components/Image';\nexport { DeviceTypeSelector } from './Components/DeviceType/DeviceTypeSelector';\nexport { DeviceTypeIcon } from './Components/DeviceType/DeviceTypeIcon';\nexport { STATES_NAME_ICONS } from './Components/DeviceType/DeviceTypeOptions';\nexport { extendDeviceTypeTranslation } from './Components/DeviceType/deviceTypeTranslations';\nexport { Loader } from './Components/Loader';\nexport { Logo } from './Components/Logo';\nexport { MDUtils } from './Components/MDUtils';\nexport { ObjectBrowserClass, ObjectBrowser, getSelectIdIconFromObjects, ITEM_IMAGES } from './Components/ObjectBrowser';\nexport {\n type TreeItemData,\n type TreeItem,\n type ObjectBrowserFilter,\n type ObjectBrowserCustomFilter,\n type ObjectBrowserColumn,\n type ObjectBrowserProps,\n} from './Components/objectBrowser.types';\n\nexport { InfoBox } from './Components/InfoBox';\nexport { Router } from './Components/Router';\nexport { SaveCloseButtons } from './Components/SaveCloseButtons';\nexport { Schedule, type ScheduleConfig } from './Components/Schedule';\nexport { SelectWithIcon } from './Components/SelectWithIcon';\nexport { TabContainer } from './Components/TabContainer';\nexport { TabContent } from './Components/TabContent';\nexport { TabHeader } from './Components/TabHeader';\nexport { TableResize } from './Components/TableResize';\nexport { TextWithIcon } from './Components/TextWithIcon';\nexport { ToggleThemeMenu } from './Components/ToggleThemeMenu';\nexport { TreeTable } from './Components/TreeTable';\nexport { UploadImage } from './Components/UploadImage';\nexport { Utils } from './Components/Utils';\nexport { withWidth } from './Components/withWidth';\nexport { cron2state, SimpleCron } from './Components/SimpleCron';\nexport { convertCronToText } from './Components/SimpleCron/cronText';\nexport { LoaderVendor } from './Components/Loaders/Vendor';\nexport { LoaderPT } from './Components/Loaders/PT';\nexport { LoaderMV } from './Components/Loaders/MV';\nexport { LoaderNW } from './Components/Loaders/NW';\nexport { type IconProps } from './Components/Icon';\nexport { type IconsIconProps } from './icons/types';\nexport { IconAdapter } from './icons/IconAdapter';\nexport { IconAlias } from './icons/IconAlias';\nexport { IconButtonImage } from './icons/IconButtonImage';\nexport { IconChannel } from './icons/IconChannel';\nexport { IconClearFilter } from './icons/IconClearFilter';\nexport { IconClosed } from './icons/IconClosed';\nexport { IconCopy } from './icons/IconCopy';\nexport { IconDevice } from './icons/IconDevice';\nexport { IconDocument } from './icons/IconDocument';\nexport { IconDocumentReadOnly } from './icons/IconDocumentReadOnly';\nexport { IconExpert } from './icons/IconExpert';\nexport { IconFx } from './icons/IconFx';\nexport { IconInstance } from './icons/IconInstance';\nexport { IconLogout } from './icons/IconLogout';\nexport { IconNoIcon } from './icons/IconNoIcon';\nexport { IconOpen } from './icons/IconOpen';\nexport { IconState } from './icons/IconState';\nexport { IconVacuum } from './icons/IconVacuum';\nexport { DialogComplexCron } from './Dialogs/ComplexCron';\nexport { DialogComplexCron as ComplexCronDialog } from './Dialogs/ComplexCron'; // deprecated\nexport { DialogConfirm } from './Dialogs/Confirm';\nexport { DialogConfirm as Confirm } from './Dialogs/Confirm'; // deprecated\nexport { DialogCron } from './Dialogs/Cron';\nexport { DialogCron as Cron } from './Dialogs/Cron'; // deprecated\nexport { DialogError } from './Dialogs/Error';\nexport { DialogError as Error } from './Dialogs/Error'; // deprecated\nexport { DialogMessage } from './Dialogs/Message';\nexport { DialogMessage as Message } from './Dialogs/Message'; // deprecated\nexport { DialogSelectID, type SelectIDFilters } from './Dialogs/SelectID';\nexport { DialogSelectID as SelectID } from './Dialogs/SelectID'; // deprecated\nexport { DialogSelectFile } from './Dialogs/SelectFile';\nexport { DialogSelectFile as SelectFile } from './Dialogs/SelectFile'; // deprecated\nexport { DialogSimpleCron } from './Dialogs/SimpleCron';\nexport { DialogSimpleCron as SimpleCronDialog } from './Dialogs/SimpleCron'; // deprecated\nexport { DialogTextInput } from './Dialogs/TextInput';\nexport { DialogTextInput as TextInput } from './Dialogs/TextInput'; // deprecated\nexport { Connection, PROGRESS, ERRORS, PERMISSION_ERROR } from './Connection';\nexport { AdminConnection } from './AdminConnection';\nexport { dictionary } from './dictionary';\nexport {\n LegacyConnection,\n type ConnectOptions,\n type CompactSystemRepositoryEntry,\n type CompactSystemRepository,\n type SocketClient,\n type BinaryStateChangeHandler,\n pattern2RegEx,\n} from './LegacyConnection';\n\nexport {\n type IobUri,\n type IobUriType,\n type IobUriParsed,\n getAttrInObject,\n setAttrInObject,\n iobUriToString,\n iobUriParse,\n iobUriRead,\n} from './Components/IobUri';\n\nexport type {\n Translate,\n ConnectionProps,\n OldObject,\n ObjectChangeHandler,\n ThemeName,\n ThemeType,\n GenericAppProps,\n GenericAppSettings,\n IobTheme,\n Width,\n GenericAppState,\n} from './types';\n\nexport { moduleFederationShared } from './modulefederation.admin.config';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"./src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACH,WAAW,EAMX,gBAAgB,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,UAAU,EACV,UAAU,EACV,eAAe,GAGlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAEH,OAAO,EACP,UAAU,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,SAAS,EACT,IAAI,EACJ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BAAgB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACH,gBAAgB,EAMhB,aAAa,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAIH,eAAe,EACf,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,GACb,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC","sourcesContent":["export { Theme } from './Theme';\nexport { GenericApp } from './GenericApp';\nexport { I18n } from './i18n';\nexport { printPrompt } from './Prompt';\nexport { ColorPicker } from './Components/ColorPicker';\nexport { ComplexCron } from './Components/ComplexCron';\nexport { copy } from './Components/CopyToClipboard';\nexport { CustomModal } from './Components/CustomModal';\nexport {\n FileBrowser,\n type MetaACL,\n type MetaObject,\n type FileBrowserProps,\n type FolderOrFileItem,\n type Folders,\n FileBrowserClass,\n} from './Components/FileBrowser';\nexport {\n EXTENSIONS,\n FileViewer,\n FileViewerClass,\n type FileViewerProps,\n type FileViewerState,\n} from './Components/FileViewer';\nexport { getSystemIcon, getSelectIdIcon, Icon } from './Components/Icon';\nexport { IconPicker } from './Components/IconPicker';\nexport { IconSelector } from './Components/IconSelector';\nexport { Image } from './Components/Image';\nexport { DeviceTypeSelector } from './Components/DeviceType/DeviceTypeSelector';\nexport { DeviceTypeIcon } from './Components/DeviceType/DeviceTypeIcon';\nexport { STATES_NAME_ICONS } from './Components/DeviceType/DeviceTypeOptions';\nexport { extendDeviceTypeTranslation } from './Components/DeviceType/deviceTypeTranslations';\nexport {\n type IconPropsSVG,\n Cleaner,\n DoorClosed,\n DoorOpened,\n FireOff,\n FireOn,\n FloodOff,\n FloodOn,\n Gate,\n HeatValve,\n Home,\n Humidity,\n IconHome,\n Jalousie,\n Material,\n MotionOff,\n MotionOn,\n PushButton,\n RepairExpert,\n RGB,\n Socket,\n Thermometer,\n ThermometerSimple,\n Thermostat,\n Valve,\n WindowClosed,\n WindowOpened,\n WindowTilted,\n} from './Components/DeviceType/icons';\nexport { Loader } from './Components/Loader';\nexport { Logo } from './Components/Logo';\nexport { MDUtils } from './Components/MDUtils';\nexport { ObjectBrowserClass, ObjectBrowser, getSelectIdIconFromObjects, ITEM_IMAGES } from './Components/ObjectBrowser';\nexport {\n type TreeItemData,\n type TreeItem,\n type ObjectBrowserFilter,\n type ObjectBrowserCustomFilter,\n type ObjectBrowserColumn,\n type ObjectBrowserProps,\n} from './Components/objectBrowser.types';\n\nexport { InfoBox } from './Components/InfoBox';\nexport { Router } from './Components/Router';\nexport { SaveCloseButtons } from './Components/SaveCloseButtons';\nexport { Schedule, type ScheduleConfig } from './Components/Schedule';\nexport { SelectWithIcon } from './Components/SelectWithIcon';\nexport { TabContainer } from './Components/TabContainer';\nexport { TabContent } from './Components/TabContent';\nexport { TabHeader } from './Components/TabHeader';\nexport { TableResize } from './Components/TableResize';\nexport { TextWithIcon } from './Components/TextWithIcon';\nexport { ToggleThemeMenu } from './Components/ToggleThemeMenu';\nexport { TreeTable } from './Components/TreeTable';\nexport { UploadImage } from './Components/UploadImage';\nexport { Utils } from './Components/Utils';\nexport { withWidth } from './Components/withWidth';\nexport { cron2state, SimpleCron } from './Components/SimpleCron';\nexport { convertCronToText } from './Components/SimpleCron/cronText';\nexport { LoaderVendor } from './Components/Loaders/Vendor';\nexport { LoaderPT } from './Components/Loaders/PT';\nexport { LoaderMV } from './Components/Loaders/MV';\nexport { LoaderNW } from './Components/Loaders/NW';\nexport { type IconProps } from './Components/Icon';\nexport { type IconsIconProps } from './icons/types';\nexport { IconAdapter } from './icons/IconAdapter';\nexport { IconAlias } from './icons/IconAlias';\nexport { IconButtonImage } from './icons/IconButtonImage';\nexport { IconChannel } from './icons/IconChannel';\nexport { IconClearFilter } from './icons/IconClearFilter';\nexport { IconClosed } from './icons/IconClosed';\nexport { IconCopy } from './icons/IconCopy';\nexport { IconDevice } from './icons/IconDevice';\nexport { IconDocument } from './icons/IconDocument';\nexport { IconDocumentReadOnly } from './icons/IconDocumentReadOnly';\nexport { IconExpert } from './icons/IconExpert';\nexport { IconFx } from './icons/IconFx';\nexport { IconInstance } from './icons/IconInstance';\nexport { IconLogout } from './icons/IconLogout';\nexport { IconNoIcon } from './icons/IconNoIcon';\nexport { IconOpen } from './icons/IconOpen';\nexport { IconState } from './icons/IconState';\nexport { IconVacuum } from './icons/IconVacuum';\nexport { DialogComplexCron } from './Dialogs/ComplexCron';\nexport { DialogComplexCron as ComplexCronDialog } from './Dialogs/ComplexCron'; // deprecated\nexport { DialogConfirm } from './Dialogs/Confirm';\nexport { DialogConfirm as Confirm } from './Dialogs/Confirm'; // deprecated\nexport { DialogCron } from './Dialogs/Cron';\nexport { DialogCron as Cron } from './Dialogs/Cron'; // deprecated\nexport { DialogError } from './Dialogs/Error';\nexport { DialogError as Error } from './Dialogs/Error'; // deprecated\nexport { DialogMessage } from './Dialogs/Message';\nexport { DialogMessage as Message } from './Dialogs/Message'; // deprecated\nexport { DialogSelectID, type SelectIDFilters } from './Dialogs/SelectID';\nexport { DialogSelectID as SelectID } from './Dialogs/SelectID'; // deprecated\nexport { DialogSelectFile } from './Dialogs/SelectFile';\nexport { DialogSelectFile as SelectFile } from './Dialogs/SelectFile'; // deprecated\nexport { DialogSimpleCron } from './Dialogs/SimpleCron';\nexport { DialogSimpleCron as SimpleCronDialog } from './Dialogs/SimpleCron'; // deprecated\nexport { DialogTextInput } from './Dialogs/TextInput';\nexport { DialogTextInput as TextInput } from './Dialogs/TextInput'; // deprecated\nexport { Connection, PROGRESS, ERRORS, PERMISSION_ERROR } from './Connection';\nexport { AdminConnection } from './AdminConnection';\nexport { dictionary } from './dictionary';\nexport {\n LegacyConnection,\n type ConnectOptions,\n type CompactSystemRepositoryEntry,\n type CompactSystemRepository,\n type SocketClient,\n type BinaryStateChangeHandler,\n pattern2RegEx,\n} from './LegacyConnection';\n\nexport {\n type IobUri,\n type IobUriType,\n type IobUriParsed,\n getAttrInObject,\n setAttrInObject,\n iobUriToString,\n iobUriParse,\n iobUriRead,\n} from './Components/IobUri';\n\nexport type {\n Translate,\n ConnectionProps,\n OldObject,\n ObjectChangeHandler,\n ThemeName,\n ThemeType,\n GenericAppProps,\n GenericAppSettings,\n IobTheme,\n Width,\n GenericAppState,\n} from './types';\n\nexport { moduleFederationShared } from './modulefederation.admin.config';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "8.1.1",
3
+ "version": "8.1.3",
4
4
  "description": "React components to develop ioBroker interfaces with react.",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -56,19 +56,19 @@
56
56
  "@emotion/styled": "^11.14.1",
57
57
  "@iobroker/js-controller-common": "^7.1.0",
58
58
  "@iobroker/js-controller-common-db": "^7.1.0",
59
- "@iobroker/socket-client": "5.0.3",
59
+ "@iobroker/socket-client": "5.1.1",
60
60
  "@iobroker/type-detector": "^5.0.10",
61
61
  "@iobroker/types": "^7.1.0",
62
62
  "@mui/icons-material": "^6.5.0",
63
63
  "@mui/material": "^6.5.0",
64
- "@sentry/browser": "^10.38.0",
65
- "cronstrue": "^3.11.0",
64
+ "@sentry/browser": "^10.42.0",
65
+ "cronstrue": "^3.13.0",
66
66
  "file-selector": "^2.1.2",
67
67
  "react-color": "^2.19.3",
68
68
  "react-colorful": "^5.6.1",
69
69
  "react-cropper": "^2.3.3",
70
- "react-dropzone": "^14.4.0",
71
- "react-icons": "^5.5.0",
70
+ "react-dropzone": "^15.0.0",
71
+ "react-icons": "^5.6.0",
72
72
  "react-inlinesvg": "^4.2.0"
73
73
  },
74
74
  "peerDependencies": {
@@ -76,14 +76,14 @@
76
76
  "react-dom": "^18.3.1"
77
77
  },
78
78
  "devDependencies": {
79
- "@alcalzone/release-script": "^5.0.0",
80
- "@alcalzone/release-script-plugin-license": "^4.0.0",
79
+ "@alcalzone/release-script": "^5.1.1",
80
+ "@alcalzone/release-script-plugin-license": "^5.1.1",
81
81
  "@iobroker/build-tools": "^3.0.1",
82
82
  "@iobroker/eslint-config": "^2.2.0",
83
- "@types/node": "^25.2.2",
83
+ "@types/node": "^25.3.5",
84
84
  "@types/react": "^18.3.28",
85
85
  "@types/react-color": "^3.0.13",
86
- "ajv": "^8.17.1",
86
+ "ajv": "^8.18.0",
87
87
  "react": "^18.3.1",
88
88
  "react-dom": "^18.3.1",
89
89
  "ts-node": "^10.9.2",