@iobroker/adapter-react-v5 4.12.0 → 4.12.1

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.
@@ -13,6 +13,7 @@ interface IconProps {
13
13
  /** Styles for utf-8 characters */
14
14
  styleUTF8?: React.CSSProperties;
15
15
  onError?: ReactEventHandler<HTMLImageElement>;
16
+ ref?: React.RefObject<HTMLImageElement>;
16
17
  /** Alternative text for image */
17
18
  alt?: string;
18
19
  }
@@ -113,12 +113,12 @@ const Icon = (props) => {
113
113
  if (src.startsWith('./')) {
114
114
  src = src.substring(2);
115
115
  }
116
- return react_1.default.createElement("img", { title: props.title || undefined, style: props.style || {}, className: Utils_1.default.clsx(props.className, 'iconOwn'), src: `https://remote-files.iobroker.in${window.location.pathname}${src}`, alt: props.alt || undefined, onError: e => {
116
+ return react_1.default.createElement("img", { title: props.title || undefined, style: props.style || {}, className: Utils_1.default.clsx(props.className, 'iconOwn'), src: `https://remote-files.iobroker.in${window.location.pathname}${src}`, alt: props.alt || undefined, ref: props.ref, onError: e => {
117
117
  // analyse error
118
118
  props.onError && props.onError(e);
119
119
  } });
120
120
  }
121
- return react_1.default.createElement("img", { title: props.title || undefined, style: props.style || {}, className: Utils_1.default.clsx(props.className, 'iconOwn'), src: props.src, alt: props.alt || undefined, onError: props.onError });
121
+ return react_1.default.createElement("img", { title: props.title || undefined, style: props.style || {}, className: Utils_1.default.clsx(props.className, 'iconOwn'), src: props.src, alt: props.alt || undefined, ref: props.ref, onError: props.onError });
122
122
  }
123
123
  return props.src;
124
124
  }
package/README.md CHANGED
@@ -670,7 +670,7 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
670
670
  -->
671
671
 
672
672
  ## Changelog
673
- ### 4.12.0 (2024-03-24)
673
+ ### 4.12.1 (2024-03-24)
674
674
  * (bluefox) Added support for remote cloud
675
675
 
676
676
  ### 4.11.6 (2024-03-19)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "4.12.0",
3
+ "version": "4.12.1",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "Denis Haev (bluefox)",