@iobroker/adapter-react-v5 7.4.8 → 7.4.10

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/build/types.d.ts CHANGED
@@ -7,6 +7,19 @@ import type Router from './Components/Router';
7
7
 
8
8
  export type Translate = (key: string, ...args: (string | number | boolean)[]) => string;
9
9
 
10
+ export type LogMessage = {
11
+ /** Log message */
12
+ message: string;
13
+ /** origin */
14
+ from: string;
15
+ /** timestamp in ms */
16
+ ts: number;
17
+ /** Log message */
18
+ severity: ioBroker.LogLevel;
19
+ /** unique ID of the message */
20
+ _id: number;
21
+ };
22
+
10
23
  /**
11
24
  * Properties for the connection to the admin or web instance.
12
25
  */
@@ -34,7 +47,7 @@ export interface ConnectionProps {
34
47
  /** Ready callback. */
35
48
  onReady?: (objects: Record<string, ioBroker.Object>) => void;
36
49
  /** Log callback. */
37
- onLog?: (text: string) => void;
50
+ onLog?: (text: LogMessage) => void;
38
51
  /** Error callback. */
39
52
  onError?: (error: any) => void;
40
53
  /** Object change callback. */
package/index.css ADDED
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Copyright 2018-2023 Denis Haev (bluefox) <dogafox@gmail.com>
3
+ *
4
+ * MIT License
5
+ *
6
+ **/
7
+
8
+ html {
9
+ height: 100%;
10
+ }
11
+
12
+ body {
13
+ margin: 0;
14
+ padding: 0;
15
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
16
+ 'Droid Sans', 'Helvetica Neue', sans-serif;
17
+ -webkit-font-smoothing: antialiased;
18
+ -moz-osx-font-smoothing: grayscale;
19
+ width: 100%;
20
+ height: 100%;
21
+ overflow: hidden;
22
+ }
23
+
24
+ /* scrollbar */
25
+ ::-webkit-scrollbar-track {
26
+ background-color: #ccc;
27
+ border-radius: 5px;
28
+ }
29
+
30
+ ::-webkit-scrollbar {
31
+ width: 5px;
32
+ height: 5px;
33
+ background-color: #ccc;
34
+ }
35
+
36
+ ::-webkit-scrollbar-thumb {
37
+ background-color: #575757;
38
+ border-radius: 5px;
39
+ }
40
+
41
+ #root {
42
+ height: 100%;
43
+ }
44
+
45
+ .App {
46
+ height: 100%;
47
+ }
48
+
49
+ @keyframes glow {
50
+ from {
51
+ background-color: initial;
52
+ }
53
+ to {
54
+ background-color: #58c458;
55
+ }
56
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "7.4.8",
3
+ "version": "7.4.10",
4
4
  "description": "React components to develop ioBroker interfaces with react.",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -40,6 +40,7 @@
40
40
  "files": [
41
41
  "build/",
42
42
  "i18n/",
43
+ "index.css",
43
44
  "LICENSE",
44
45
  "tasksExample.js",
45
46
  "craco-module-federation.js",
@@ -85,5 +86,5 @@
85
86
  "ts-node": "^10.9.2",
86
87
  "typescript": "^5.7.2"
87
88
  },
88
- "gitHead": "fa6c5eb306823b8051a913ca98af3a37b429a1f6"
89
+ "gitHead": "4bc4babcf524300e7ac34558060b779252e368aa"
89
90
  }