@micromag/screen-video-360 0.3.445 → 0.3.447
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 -25
- package/lib/index.js +2 -25
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -19,8 +19,6 @@ import Footer from '@micromag/element-footer';
|
|
|
19
19
|
import Header from '@micromag/element-header';
|
|
20
20
|
import Image from '@micromag/element-image';
|
|
21
21
|
import Video from '@micromag/element-video';
|
|
22
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
23
|
-
import { Video as Video$1, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
24
22
|
|
|
25
23
|
/**
|
|
26
24
|
* Locale loader
|
|
@@ -619,28 +617,7 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
619
617
|
Video360Screen.propTypes = propTypes;
|
|
620
618
|
Video360Screen.defaultProps = defaultProps;
|
|
621
619
|
|
|
622
|
-
|
|
623
|
-
var video = _ref.video;
|
|
624
|
-
var _ref2 = video || {},
|
|
625
|
-
_ref2$media = _ref2.media,
|
|
626
|
-
media = _ref2$media === void 0 ? null : _ref2$media;
|
|
627
|
-
var _Video = Video$1(newStory, media),
|
|
628
|
-
titleStory = _Video.story,
|
|
629
|
-
titleComponent = _Video.component;
|
|
630
|
-
var _Container = Container$1(titleStory, _toConsumableArray(titleComponent ? [titleComponent] : [])),
|
|
631
|
-
containerStory = _Container.story,
|
|
632
|
-
containerComponent = _Container.component;
|
|
633
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
634
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
635
|
-
});
|
|
636
|
-
};
|
|
637
|
-
|
|
638
|
-
// eslint-disable-next-line
|
|
639
|
-
|
|
640
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
641
|
-
__proto__: null,
|
|
642
|
-
appleNews: transform
|
|
643
|
-
});
|
|
620
|
+
// import * as transforms from './transforms/index';
|
|
644
621
|
|
|
645
622
|
var definition = {
|
|
646
623
|
id: 'video-360',
|
|
@@ -664,7 +641,7 @@ var definition = {
|
|
|
664
641
|
}),
|
|
665
642
|
component: Video360Screen,
|
|
666
643
|
layouts: ['full'],
|
|
667
|
-
|
|
644
|
+
// transforms,
|
|
668
645
|
fields: [{
|
|
669
646
|
name: 'video',
|
|
670
647
|
type: 'video-element',
|
package/lib/index.js
CHANGED
|
@@ -23,8 +23,6 @@ var Footer = require('@micromag/element-footer');
|
|
|
23
23
|
var Header = require('@micromag/element-header');
|
|
24
24
|
var Image = require('@micromag/element-image');
|
|
25
25
|
var Video = require('@micromag/element-video');
|
|
26
|
-
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
27
|
-
var appleNews = require('@micromag/transforms/apple-news');
|
|
28
26
|
|
|
29
27
|
/**
|
|
30
28
|
* Locale loader
|
|
@@ -623,28 +621,7 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
623
621
|
Video360Screen.propTypes = propTypes;
|
|
624
622
|
Video360Screen.defaultProps = defaultProps;
|
|
625
623
|
|
|
626
|
-
|
|
627
|
-
var video = _ref.video;
|
|
628
|
-
var _ref2 = video || {},
|
|
629
|
-
_ref2$media = _ref2.media,
|
|
630
|
-
media = _ref2$media === void 0 ? null : _ref2$media;
|
|
631
|
-
var _Video = appleNews.Video(newStory, media),
|
|
632
|
-
titleStory = _Video.story,
|
|
633
|
-
titleComponent = _Video.component;
|
|
634
|
-
var _Container = appleNews.Container(titleStory, _toConsumableArray(titleComponent ? [titleComponent] : [])),
|
|
635
|
-
containerStory = _Container.story,
|
|
636
|
-
containerComponent = _Container.component;
|
|
637
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
638
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
639
|
-
});
|
|
640
|
-
};
|
|
641
|
-
|
|
642
|
-
// eslint-disable-next-line
|
|
643
|
-
|
|
644
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
645
|
-
__proto__: null,
|
|
646
|
-
appleNews: transform
|
|
647
|
-
});
|
|
624
|
+
// import * as transforms from './transforms/index';
|
|
648
625
|
|
|
649
626
|
var definition = {
|
|
650
627
|
id: 'video-360',
|
|
@@ -668,7 +645,7 @@ var definition = {
|
|
|
668
645
|
}),
|
|
669
646
|
component: Video360Screen,
|
|
670
647
|
layouts: ['full'],
|
|
671
|
-
|
|
648
|
+
// transforms,
|
|
672
649
|
fields: [{
|
|
673
650
|
name: 'video',
|
|
674
651
|
type: 'video-element',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video-360",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.447",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.13.10",
|
|
62
62
|
"@folklore/size": "^0.1.20",
|
|
63
|
-
"@micromag/core": "^0.3.
|
|
64
|
-
"@micromag/element-background": "^0.3.
|
|
65
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
66
|
-
"@micromag/element-container": "^0.3.
|
|
67
|
-
"@micromag/element-footer": "^0.3.
|
|
68
|
-
"@micromag/element-header": "^0.3.
|
|
69
|
-
"@micromag/element-image": "^0.3.
|
|
70
|
-
"@micromag/element-video": "^0.3.
|
|
71
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.447",
|
|
64
|
+
"@micromag/element-background": "^0.3.447",
|
|
65
|
+
"@micromag/element-closed-captions": "^0.3.447",
|
|
66
|
+
"@micromag/element-container": "^0.3.447",
|
|
67
|
+
"@micromag/element-footer": "^0.3.447",
|
|
68
|
+
"@micromag/element-header": "^0.3.447",
|
|
69
|
+
"@micromag/element-image": "^0.3.447",
|
|
70
|
+
"@micromag/element-video": "^0.3.447",
|
|
71
|
+
"@micromag/transforms": "^0.3.447",
|
|
72
72
|
"classnames": "^2.2.6",
|
|
73
73
|
"lodash": "^4.17.21",
|
|
74
74
|
"prop-types": "^15.7.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"access": "public",
|
|
82
82
|
"registry": "https://registry.npmjs.org/"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "ec175c602ce6f59b7561f57c92da443814109d50"
|
|
85
85
|
}
|