@micromag/element-closed-captions 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 +1 -2
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
1
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
2
  import classNames from 'classnames';
4
3
  import parseSRT from 'parse-srt';
@@ -68,7 +67,7 @@ function ClosedCaptions(_ref) {
68
67
  var active = line !== null;
69
68
  var finalBoxStyles = boxStyle !== null ? getStyleFromBox(boxStyle) : null;
70
69
  return /*#__PURE__*/React.createElement("div", {
71
- className: classNames([styles.container, _defineProperty({}, className, className !== null)])
70
+ className: classNames([styles.container, className])
72
71
  }, active ? /*#__PURE__*/React.createElement("div", {
73
72
  className: styles.captions,
74
73
  style: finalBoxStyles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-closed-captions",
3
- "version": "0.4.38",
3
+ "version": "0.4.41",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,8 +60,8 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.28.6",
63
- "@micromag/core": "^0.4.38",
64
- "@micromag/element-text": "^0.4.38",
63
+ "@micromag/core": "^0.4.41",
64
+ "@micromag/element-text": "^0.4.41",
65
65
  "classnames": "^2.2.6",
66
66
  "parse-srt": "^1.0.0-alpha",
67
67
  "react-intl": "^8.1.3 || ^10.0.0",
@@ -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
  }