@iobroker/adapter-react-v5 7.4.2 → 7.4.4
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 +2 -2
- package/build/Components/FileBrowser.js +1 -1
- package/build/Components/FileBrowser.js.map +1 -1
- package/build/Components/IconDeviceType.d.ts +1 -1
- package/build/Components/IconDeviceType.js +5 -1
- package/build/Components/IconDeviceType.js.map +1 -1
- package/build/Components/IconPicker.js +0 -1
- package/build/Components/IconPicker.js.map +1 -1
- package/build/Components/Image.js.map +1 -1
- package/build/Components/Logo.js +4 -4
- package/build/Components/Logo.js.map +1 -1
- package/build/Components/ObjectBrowser.d.ts +8 -6
- package/build/Components/ObjectBrowser.js +2 -2
- package/build/Components/ObjectBrowser.js.map +1 -1
- package/build/Components/TextWithIcon.js +0 -1
- package/build/Components/TextWithIcon.js.map +1 -1
- package/build/Components/Utils.js +1 -3
- package/build/Components/Utils.js.map +1 -1
- package/build/Dialogs/SelectID.d.ts +2 -2
- package/build/Dialogs/SelectID.js +1 -1
- package/build/Dialogs/SelectID.js.map +1 -1
- package/build/GenericApp.js +1 -1
- package/build/GenericApp.js.map +1 -1
- package/build/LegacyConnection.d.ts +4 -7
- package/build/LegacyConnection.js +84 -160
- package/build/LegacyConnection.js.map +1 -1
- package/build/i18n/de.json +1 -1
- package/build/i18n/en.json +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/types.d.ts +80 -0
- package/i18n/de.json +2 -2
- package/i18n/en.json +2 -1
- package/package.json +15 -15
package/build/i18n/de.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"ra_Add objects tree from JSON file": "Objektbaum aus JSON-Datei hinzufügen",
|
|
8
8
|
"ra_Add row": "Zeile hinzufügen",
|
|
9
9
|
"ra_Advanced options": "Erweiterte Optionen",
|
|
10
|
-
"ra_All items are filtered out": "Alle Elemente
|
|
10
|
+
"ra_All items are filtered out": "Alle Elemente sind herausgefiltert",
|
|
11
11
|
"ra_All objects": "Alle Objekte",
|
|
12
12
|
"ra_Append": "Anhängen",
|
|
13
13
|
"ra_Append %s entries or replace existing?": "%s Einträge anhängen oder vorhandene ersetzen?",
|
package/build/i18n/en.json
CHANGED
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"ra_License %s": "License %s",
|
|
116
116
|
"ra_License agreement": "License agreement",
|
|
117
117
|
"ra_License does not exist": "License does not exist",
|
|
118
|
+
"ra_tooltip_expire": "Expires in",
|
|
118
119
|
"ra_License expired on %s": "License expired on %s",
|
|
119
120
|
"ra_License for other product \"%s\"": "License for other product \"%s\"",
|
|
120
121
|
"ra_License is for version %s, but required version is %s.": "License is for version %s, but required version is %s.",
|
package/build/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { Image } from './Components/Image';
|
|
|
16
16
|
export { Loader } from './Components/Loader';
|
|
17
17
|
export { Logo } from './Components/Logo';
|
|
18
18
|
export { MDUtils } from './Components/MDUtils';
|
|
19
|
-
export {
|
|
19
|
+
export { type TreeItemData, type TreeItem, type ObjectBrowserFilter, type ObjectBrowserCustomFilter, type ObjectBrowserColumn, type ObjectBrowserProps, ObjectBrowserClass, ObjectBrowser, getSelectIdIconFromObjects, ITEM_IMAGES, } from './Components/ObjectBrowser';
|
|
20
20
|
export { Router } from './Components/Router';
|
|
21
21
|
export { SaveCloseButtons } from './Components/SaveCloseButtons';
|
|
22
22
|
export { Schedule, type ScheduleConfig } from './Components/Schedule';
|
package/build/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export { Image } from './Components/Image';
|
|
|
16
16
|
export { Loader } from './Components/Loader';
|
|
17
17
|
export { Logo } from './Components/Logo';
|
|
18
18
|
export { MDUtils } from './Components/MDUtils';
|
|
19
|
-
export { ObjectBrowser, getSelectIdIconFromObjects, ITEM_IMAGES,
|
|
19
|
+
export { ObjectBrowserClass, ObjectBrowser, getSelectIdIconFromObjects, ITEM_IMAGES, } from './Components/ObjectBrowser';
|
|
20
20
|
export { Router } from './Components/Router';
|
|
21
21
|
export { SaveCloseButtons } from './Components/SaveCloseButtons';
|
|
22
22
|
export { Schedule } from './Components/Schedule';
|
package/build/index.js.map
CHANGED
|
@@ -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,YAAY,EAAmB,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC5F,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,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"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Ac,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC,CAAC,aAAa;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,IAAI,UAAU,EAAE,MAAM,sBAAsB,CAAC,CAAC,aAAa;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC,CAAC,aAAa;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,MAAM,qBAAqB,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","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 { isDeviceIcon, type DeviceType, IconDeviceType } from './Components/IconDeviceType';\nexport { IconPicker } from './Components/IconPicker';\nexport { IconSelector } from './Components/IconSelector';\nexport { Image } from './Components/Image';\nexport { Loader } from './Components/Loader';\nexport { Logo } from './Components/Logo';\nexport { MDUtils } from './Components/MDUtils';\nexport {\n type TreeItemData,\n type TreeItem,\n type ObjectBrowserFilter,\n type ObjectBrowserCustomFilter,\n type ObjectBrowserColumn,\n type ObjectBrowserProps,\n ObjectBrowserClass,\n ObjectBrowser,\n getSelectIdIconFromObjects,\n ITEM_IMAGES,\n} from './Components/ObjectBrowser';\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 { type IconProps } from './icons/IconProps';\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 } 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"]}
|
package/build/types.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { JSX, CSSProperties } from 'react';
|
|
2
2
|
import type { Theme as MuiTheme, Palette as MuiPalette } from '@mui/material/styles';
|
|
3
3
|
import type { AdminConnection, Connection } from '@iobroker/socket-client';
|
|
4
|
+
|
|
4
5
|
import type { LegacyConnection } from './LegacyConnection';
|
|
6
|
+
import type Router from './Components/Router';
|
|
5
7
|
|
|
6
8
|
export type Translate = (key: string, ...args: (string | number | boolean)[]) => string;
|
|
7
9
|
|
|
@@ -139,3 +141,81 @@ export interface GenericAppState {
|
|
|
139
141
|
_alertMessage: string | JSX.Element;
|
|
140
142
|
common?: Record<string, any>;
|
|
141
143
|
}
|
|
144
|
+
|
|
145
|
+
export interface ObjectBrowserTableFilter {
|
|
146
|
+
id?: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
room?: string;
|
|
149
|
+
func?: string;
|
|
150
|
+
role?: string;
|
|
151
|
+
expertMode?: boolean;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface ObjectBrowserCustomFilter {
|
|
155
|
+
readonly type?: string | string[];
|
|
156
|
+
readonly common?: {
|
|
157
|
+
readonly type?: string | string[];
|
|
158
|
+
readonly role?: string | string[];
|
|
159
|
+
// If "_" - no custom set
|
|
160
|
+
// If "_dataSources" - only data sources (history, sql, influxdb, ...)
|
|
161
|
+
// Else "telegram." or something like this
|
|
162
|
+
// `true` - If common.custom not empty
|
|
163
|
+
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
|
164
|
+
readonly custom?: '_' | '_dataSources' | true | string;
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type ObjectBrowserType = 'state' | 'instance' | 'channel' | 'device' | 'chart';
|
|
169
|
+
|
|
170
|
+
export interface ObjectBrowserProps {
|
|
171
|
+
/** The title of the dialog. */
|
|
172
|
+
title: string;
|
|
173
|
+
/** The key to store state in the browser (default: 'App') */
|
|
174
|
+
key?: string;
|
|
175
|
+
/** The CSS classes. */
|
|
176
|
+
classes: Record<string, any>;
|
|
177
|
+
/** Default filters to be applied to the object table. */
|
|
178
|
+
defaultFilters?: ObjectBrowserTableFilter;
|
|
179
|
+
/** The selected ID or IDs. */
|
|
180
|
+
selected?: string | string[];
|
|
181
|
+
/** Callback when object is selected. */
|
|
182
|
+
onSelect?: (selectedItems: string[], name: string, isDouble?: boolean) => void;
|
|
183
|
+
/** The socket connection. */
|
|
184
|
+
socket: Connection;
|
|
185
|
+
/** Show the expert button? */
|
|
186
|
+
showExpertButton?: boolean;
|
|
187
|
+
/** Is expert mode enabled? (default: false) */
|
|
188
|
+
expertMode?: boolean;
|
|
189
|
+
/** Prefix (default: '.') */
|
|
190
|
+
imagePrefix?: string;
|
|
191
|
+
/** Theme name. */
|
|
192
|
+
themeName?: string;
|
|
193
|
+
/** Translation function. */
|
|
194
|
+
t: Translate;
|
|
195
|
+
/** The selected language. */
|
|
196
|
+
lang: ioBroker.Languages;
|
|
197
|
+
/** Allow to select multiple objects? (default: false) */
|
|
198
|
+
multiSelect?: boolean;
|
|
199
|
+
/** Can't objects be edited? (default: false) */
|
|
200
|
+
notEditable?: boolean;
|
|
201
|
+
/** Show folders first? (default: false) */
|
|
202
|
+
foldersFirst?: boolean;
|
|
203
|
+
/** Disable the column selector? (default: false) */
|
|
204
|
+
disableColumnSelector?: boolean;
|
|
205
|
+
/** The custom dialog React component to use */
|
|
206
|
+
objectCustomDialog?: any;
|
|
207
|
+
/** Custom filter. Optional {common: {custom: true}} or {common: {custom: 'sql.0'}} */
|
|
208
|
+
customFilter?: ObjectBrowserCustomFilter;
|
|
209
|
+
/** Custom value React component to use */
|
|
210
|
+
objectBrowserValue?: any;
|
|
211
|
+
/** Custom object editor React component to use */
|
|
212
|
+
objectBrowserEditObject?: any;
|
|
213
|
+
/** Router */
|
|
214
|
+
router?: Router;
|
|
215
|
+
/** Object types to show */
|
|
216
|
+
types?: ObjectBrowserType[];
|
|
217
|
+
/** Columns to display */
|
|
218
|
+
columns?: ObjectBrowserColumn[];
|
|
219
|
+
/** The width of the dialog. */
|
|
220
|
+
width?: Width;
|
|
221
|
+
}
|
package/i18n/de.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"ra_Add objects tree from JSON file": "Objektbaum aus JSON-Datei hinzufügen",
|
|
8
8
|
"ra_Add row": "Zeile hinzufügen",
|
|
9
9
|
"ra_Advanced options": "Erweiterte Optionen",
|
|
10
|
-
"ra_All items are filtered out": "Alle Elemente
|
|
10
|
+
"ra_All items are filtered out": "Alle Elemente sind herausgefiltert",
|
|
11
11
|
"ra_All objects": "Alle Objekte",
|
|
12
12
|
"ra_Append": "Anhängen",
|
|
13
13
|
"ra_Append %s entries or replace existing?": "%s Einträge anhängen oder vorhandene ersetzen?",
|
|
@@ -447,4 +447,4 @@
|
|
|
447
447
|
"sch_validTo": "bis",
|
|
448
448
|
"sch_wholeDay": "Ganzer Tag",
|
|
449
449
|
"sch_yearEveryMonth": "jeden Monat"
|
|
450
|
-
}
|
|
450
|
+
}
|
package/i18n/en.json
CHANGED
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"ra_License %s": "License %s",
|
|
116
116
|
"ra_License agreement": "License agreement",
|
|
117
117
|
"ra_License does not exist": "License does not exist",
|
|
118
|
+
"ra_tooltip_expire": "Expires in",
|
|
118
119
|
"ra_License expired on %s": "License expired on %s",
|
|
119
120
|
"ra_License for other product \"%s\"": "License for other product \"%s\"",
|
|
120
121
|
"ra_License is for version %s, but required version is %s.": "License is for version %s, but required version is %s.",
|
|
@@ -447,4 +448,4 @@
|
|
|
447
448
|
"sch_validTo": "to",
|
|
448
449
|
"sch_wholeDay": "Whole day",
|
|
449
450
|
"sch_yearEveryMonth": "every month"
|
|
450
|
-
}
|
|
451
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.4",
|
|
4
4
|
"description": "React components to develop ioBroker interfaces with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bluefox",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"@rollup/rollup-linux-x64-gnu": "*"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@emotion/react": "^11.13.
|
|
58
|
-
"@emotion/styled": "^11.13.
|
|
59
|
-
"@iobroker/js-controller-common": "^
|
|
60
|
-
"@iobroker/js-controller-common-db": "^
|
|
61
|
-
"@iobroker/socket-client": "^3.1.
|
|
62
|
-
"@iobroker/types": "^
|
|
63
|
-
"@mui/icons-material": "^6.1.
|
|
64
|
-
"@mui/material": "^6.1.
|
|
65
|
-
"@sentry/browser": "^8.
|
|
66
|
-
"cronstrue": "^2.
|
|
57
|
+
"@emotion/react": "^11.13.5",
|
|
58
|
+
"@emotion/styled": "^11.13.5",
|
|
59
|
+
"@iobroker/js-controller-common": "^7.0.5",
|
|
60
|
+
"@iobroker/js-controller-common-db": "^7.0.5",
|
|
61
|
+
"@iobroker/socket-client": "^3.1.3",
|
|
62
|
+
"@iobroker/types": "^7.0.5",
|
|
63
|
+
"@mui/icons-material": "^6.1.10",
|
|
64
|
+
"@mui/material": "^6.1.10",
|
|
65
|
+
"@sentry/browser": "^8.42.0",
|
|
66
|
+
"cronstrue": "^2.52.0",
|
|
67
67
|
"react-color": "^2.19.3",
|
|
68
68
|
"react-colorful": "^5.6.1",
|
|
69
69
|
"react-cropper": "^2.3.3",
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
"@babel/preset-env": "^7.26.0",
|
|
78
78
|
"@babel/preset-flow": "^7.25.9",
|
|
79
79
|
"@babel/preset-react": "^7.25.9",
|
|
80
|
-
"@iobroker/eslint-config": "^0.
|
|
81
|
-
"@types/node": "^22.
|
|
80
|
+
"@iobroker/eslint-config": "^1.0.0",
|
|
81
|
+
"@types/node": "^22.10.1",
|
|
82
82
|
"@types/react": "^18.3.12",
|
|
83
83
|
"@types/react-color": "^3.0.12",
|
|
84
84
|
"ajv": "^8.17.1",
|
|
85
85
|
"ts-node": "^10.9.2",
|
|
86
|
-
"typescript": "^5.
|
|
86
|
+
"typescript": "^5.7.2"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "000ac03a48b960b3e55a2ef5ca82eb4e1de09ab2"
|
|
89
89
|
}
|