@micromag/element-image 0.4.38 → 0.4.40
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.js +2 -3
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
3
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
3
|
import { getSizeWithinBounds } from '@folklore/size';
|
|
@@ -169,13 +168,13 @@ function Image(_ref) {
|
|
|
169
168
|
supportsWebp: supportsWebp
|
|
170
169
|
});
|
|
171
170
|
return /*#__PURE__*/React.createElement("div", {
|
|
172
|
-
className: classNames([styles.container,
|
|
171
|
+
className: classNames([styles.container, className]),
|
|
173
172
|
style: finalContainerStyle,
|
|
174
173
|
ref: containerRef
|
|
175
174
|
}, finalUrl !== null && finalShouldLoad ? /*#__PURE__*/React.createElement("img", {
|
|
176
175
|
src: finalUrl,
|
|
177
176
|
alt: alt || description,
|
|
178
|
-
className: classNames([styles.img,
|
|
177
|
+
className: classNames([styles.img, imageClassName]),
|
|
179
178
|
style: finalImageStyle,
|
|
180
179
|
onLoad: onImageLoaded,
|
|
181
180
|
loading: loadingMode
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-image",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.40",
|
|
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.
|
|
64
|
+
"@micromag/core": "^0.4.40",
|
|
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": "
|
|
73
|
+
"gitHead": "6a9ff6e196a972abfd617f49353862cf445b0e83",
|
|
74
74
|
"types": "es/index.d.ts"
|
|
75
75
|
}
|