@micromag/element-visual 0.4.38 → 0.4.41

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.
Files changed (2) hide show
  1. package/es/index.js +3 -3
  2. package/package.json +5 -5
package/es/index.js CHANGED
@@ -128,10 +128,10 @@ function Visual(_ref) {
128
128
  resolution: resolution,
129
129
  shouldLoad: finalShouldLoad,
130
130
  onLoaded: onLoaded,
131
- className: classNames([styles.container, _defineProperty({}, className, className !== null)]),
131
+ className: classNames([styles.container, className]),
132
132
  imageClassName: imageClassName
133
133
  })) : null, type === 'video' && shouldLoad && !withoutVideo ? /*#__PURE__*/React.createElement("div", {
134
- className: classNames([styles.container, _defineProperty(_defineProperty({}, styles.natural, natural), className, className !== null)]),
134
+ className: classNames([styles.container, className, _defineProperty({}, styles.natural, natural)]),
135
135
  style: {
136
136
  width: width,
137
137
  height: height,
@@ -139,7 +139,7 @@ function Visual(_ref) {
139
139
  },
140
140
  ref: refVisible
141
141
  }, /*#__PURE__*/React.createElement("div", {
142
- className: classNames([styles.videoContainer, _defineProperty({}, videoClassName, videoClassName !== null)]),
142
+ className: classNames([styles.videoContainer, videoClassName]),
143
143
  style: videoContainerStyle
144
144
  }, /*#__PURE__*/React.createElement(Video, Object.assign({}, elProps, {
145
145
  innerClassName: styles.videoTag,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-visual",
3
- "version": "0.4.38",
3
+ "version": "0.4.41",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -61,9 +61,9 @@
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.28.6",
63
63
  "@folklore/size": "^0.1.20",
64
- "@micromag/core": "^0.4.38",
65
- "@micromag/element-image": "^0.4.38",
66
- "@micromag/element-video": "^0.4.38",
64
+ "@micromag/core": "^0.4.41",
65
+ "@micromag/element-image": "^0.4.41",
66
+ "@micromag/element-video": "^0.4.41",
67
67
  "classnames": "^2.2.6",
68
68
  "uuid": "^9.0.0"
69
69
  },
@@ -71,6 +71,6 @@
71
71
  "access": "public",
72
72
  "registry": "https://registry.npmjs.org/"
73
73
  },
74
- "gitHead": "e984a8b97d5c87914dd4844ff29628a5690edd6f",
74
+ "gitHead": "c7856a747ba0a4466f4b63bc29e31003275ac6e0",
75
75
  "types": "es/index.d.ts"
76
76
  }