@micromag/element-image 0.4.41 → 0.4.42

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/es/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
- import * as react from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- declare const _default: react.ForwardRefExoticComponent<react.RefAttributes<unknown>>;
3
+ declare const _default: ({ ref, ...props }: {
4
+ [x: string]: any;
5
+ ref: any;
6
+ }) => react_jsx_runtime.JSX.Element;
4
7
 
5
8
  export { _default as default };
package/es/index.js CHANGED
@@ -1,13 +1,15 @@
1
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
1
2
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
4
  import { getSizeWithinBounds } from '@folklore/size';
4
5
  import classNames from 'classnames';
5
- import React, { forwardRef, useState, useRef, useCallback } from 'react';
6
+ import React, { useState, useRef, useCallback } from 'react';
6
7
  import { useSetting } from '@micromag/core/contexts';
7
8
  import { getOptimalImageUrl } from '@micromag/core/utils';
8
9
 
9
10
  var styles = {"container":"micromag-element-image-container","img":"micromag-element-image-img"};
10
11
 
12
+ var _excluded = ["ref"];
11
13
  var emptyObject = {};
12
14
  function Image(_ref) {
13
15
  var _ref$media = _ref.media,
@@ -180,7 +182,9 @@ function Image(_ref) {
180
182
  loading: loadingMode
181
183
  }) : null);
182
184
  }
183
- var Image_default = /*#__PURE__*/forwardRef(function (props, ref) {
185
+ var Image_default = (function (_ref5) {
186
+ var ref = _ref5.ref,
187
+ props = _objectWithoutProperties(_ref5, _excluded);
184
188
  return /*#__PURE__*/React.createElement(Image, Object.assign({
185
189
  containerRef: ref
186
190
  }, props));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-image",
3
- "version": "0.4.41",
3
+ "version": "0.4.42",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -61,7 +61,7 @@
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.28.6",
63
63
  "@folklore/size": "^0.1.20",
64
- "@micromag/core": "^0.4.41",
64
+ "@micromag/core": "^0.4.42",
65
65
  "classnames": "^2.2.6",
66
66
  "react-intl": "^8.1.3 || ^10.0.0",
67
67
  "uuid": "^9.0.0"
@@ -70,6 +70,6 @@
70
70
  "access": "public",
71
71
  "registry": "https://registry.npmjs.org/"
72
72
  },
73
- "gitHead": "c7856a747ba0a4466f4b63bc29e31003275ac6e0",
73
+ "gitHead": "6fd96aeb9ef1857c731917d8b7cde23d31b39574",
74
74
  "types": "es/index.d.ts"
75
75
  }