@micromag/screen-video-360 0.3.488 → 0.3.495

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 CHANGED
@@ -144,6 +144,8 @@ var Video360Screen = function Video360Screen(_ref) {
144
144
  videoMedia = _ref2$media === void 0 ? null : _ref2$media,
145
145
  _ref2$closedCaptions = _ref2.closedCaptions,
146
146
  closedCaptions = _ref2$closedCaptions === void 0 ? null : _ref2$closedCaptions,
147
+ _ref2$captions = _ref2.captions,
148
+ captions = _ref2$captions === void 0 ? null : _ref2$captions,
147
149
  _ref2$withSeekBar = _ref2.withSeekBar,
148
150
  withSeekBar = _ref2$withSeekBar === void 0 ? false : _ref2$withSeekBar,
149
151
  _ref2$withControls = _ref2.withControls,
@@ -604,11 +606,12 @@ var Video360Screen = function Video360Screen(_ref) {
604
606
  paddingBottom: spacing / 2,
605
607
  paddingTop: 0
606
608
  }
607
- }, closedCaptions !== null && !isPreview && !isCapture && !isStatic ? /*#__PURE__*/React.createElement(ClosedCaptions, {
609
+ }, (closedCaptions !== null || captions !== null) && !isPreview && !isCapture && !isStatic ? /*#__PURE__*/React.createElement(ClosedCaptions, Object.assign({
608
610
  className: styles.closedCaptions,
609
- media: closedCaptions,
611
+ media: closedCaptions
612
+ }, captions, {
610
613
  currentTime: currentTime
611
- }) : null, hasFooter ? /*#__PURE__*/React.createElement(Footer, Object.assign({}, footerProps, {
614
+ })) : null, hasFooter ? /*#__PURE__*/React.createElement(Footer, Object.assign({}, footerProps, {
612
615
  className: styles.callToAction
613
616
  })) : null) : null)), !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
614
617
  background: background,
package/lib/index.js CHANGED
@@ -148,6 +148,8 @@ var Video360Screen = function Video360Screen(_ref) {
148
148
  videoMedia = _ref2$media === void 0 ? null : _ref2$media,
149
149
  _ref2$closedCaptions = _ref2.closedCaptions,
150
150
  closedCaptions = _ref2$closedCaptions === void 0 ? null : _ref2$closedCaptions,
151
+ _ref2$captions = _ref2.captions,
152
+ captions = _ref2$captions === void 0 ? null : _ref2$captions,
151
153
  _ref2$withSeekBar = _ref2.withSeekBar,
152
154
  withSeekBar = _ref2$withSeekBar === void 0 ? false : _ref2$withSeekBar,
153
155
  _ref2$withControls = _ref2.withControls,
@@ -608,11 +610,12 @@ var Video360Screen = function Video360Screen(_ref) {
608
610
  paddingBottom: spacing / 2,
609
611
  paddingTop: 0
610
612
  }
611
- }, closedCaptions !== null && !isPreview && !isCapture && !isStatic ? /*#__PURE__*/React.createElement(ClosedCaptions, {
613
+ }, (closedCaptions !== null || captions !== null) && !isPreview && !isCapture && !isStatic ? /*#__PURE__*/React.createElement(ClosedCaptions, Object.assign({
612
614
  className: styles.closedCaptions,
613
- media: closedCaptions,
615
+ media: closedCaptions
616
+ }, captions, {
614
617
  currentTime: currentTime
615
- }) : null, hasFooter ? /*#__PURE__*/React.createElement(Footer, Object.assign({}, footerProps, {
618
+ })) : null, hasFooter ? /*#__PURE__*/React.createElement(Footer, Object.assign({}, footerProps, {
616
619
  className: styles.callToAction
617
620
  })) : null) : null)), !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
618
621
  background: background,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-video-360",
3
- "version": "0.3.488",
3
+ "version": "0.3.495",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -62,15 +62,15 @@
62
62
  "dependencies": {
63
63
  "@babel/runtime": "^7.13.10",
64
64
  "@folklore/size": "^0.1.20",
65
- "@micromag/core": "^0.3.488",
66
- "@micromag/element-background": "^0.3.488",
67
- "@micromag/element-closed-captions": "^0.3.488",
68
- "@micromag/element-container": "^0.3.488",
69
- "@micromag/element-footer": "^0.3.488",
70
- "@micromag/element-header": "^0.3.488",
71
- "@micromag/element-image": "^0.3.488",
72
- "@micromag/element-video": "^0.3.488",
73
- "@micromag/transforms": "^0.3.488",
65
+ "@micromag/core": "^0.3.491",
66
+ "@micromag/element-background": "^0.3.491",
67
+ "@micromag/element-closed-captions": "^0.3.491",
68
+ "@micromag/element-container": "^0.3.491",
69
+ "@micromag/element-footer": "^0.3.491",
70
+ "@micromag/element-header": "^0.3.495",
71
+ "@micromag/element-image": "^0.3.491",
72
+ "@micromag/element-video": "^0.3.491",
73
+ "@micromag/transforms": "^0.3.491",
74
74
  "classnames": "^2.2.6",
75
75
  "lodash": "^4.17.21",
76
76
  "prop-types": "^15.7.2",
@@ -82,5 +82,5 @@
82
82
  "access": "public",
83
83
  "registry": "https://registry.npmjs.org/"
84
84
  },
85
- "gitHead": "36ecbf590ebb8eabac17e47fc48ffb8bf8c8178c"
85
+ "gitHead": "dca5bb24d7c6de3807e45e15dccfdca68dcac0f4"
86
86
  }