@micromag/screen-image-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 -26
- package/lib/index.js +2 -26
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -16,9 +16,6 @@ import Container from '@micromag/element-container';
|
|
|
16
16
|
import Footer from '@micromag/element-footer';
|
|
17
17
|
import Header from '@micromag/element-header';
|
|
18
18
|
import Image from '@micromag/element-image';
|
|
19
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
20
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
21
|
-
import { Video, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
22
19
|
|
|
23
20
|
/**
|
|
24
21
|
* Locale loader
|
|
@@ -461,28 +458,7 @@ var Image360Screen = function Image360Screen(_ref) {
|
|
|
461
458
|
Image360Screen.propTypes = propTypes;
|
|
462
459
|
Image360Screen.defaultProps = defaultProps;
|
|
463
460
|
|
|
464
|
-
|
|
465
|
-
var video = _ref.video;
|
|
466
|
-
var _ref2 = video || {},
|
|
467
|
-
_ref2$media = _ref2.media,
|
|
468
|
-
media = _ref2$media === void 0 ? null : _ref2$media;
|
|
469
|
-
var _Video = Video(newStory, media),
|
|
470
|
-
titleStory = _Video.story,
|
|
471
|
-
titleComponent = _Video.component;
|
|
472
|
-
var _Container = Container$1(titleStory, _toConsumableArray(titleComponent ? [titleComponent] : [])),
|
|
473
|
-
containerStory = _Container.story,
|
|
474
|
-
containerComponent = _Container.component;
|
|
475
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
476
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
477
|
-
});
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
// eslint-disable-next-line
|
|
481
|
-
|
|
482
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
483
|
-
__proto__: null,
|
|
484
|
-
appleNews: transform
|
|
485
|
-
});
|
|
461
|
+
// import * as transforms from './transforms/index';
|
|
486
462
|
|
|
487
463
|
var definition = {
|
|
488
464
|
id: 'video-360',
|
|
@@ -506,7 +482,7 @@ var definition = {
|
|
|
506
482
|
}),
|
|
507
483
|
component: Image360Screen,
|
|
508
484
|
layouts: ['full'],
|
|
509
|
-
|
|
485
|
+
// transforms,
|
|
510
486
|
fields: [{
|
|
511
487
|
name: 'video',
|
|
512
488
|
type: 'video-element',
|
package/lib/index.js
CHANGED
|
@@ -20,9 +20,6 @@ var Container = require('@micromag/element-container');
|
|
|
20
20
|
var Footer = require('@micromag/element-footer');
|
|
21
21
|
var Header = require('@micromag/element-header');
|
|
22
22
|
var Image = require('@micromag/element-image');
|
|
23
|
-
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
24
|
-
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
25
|
-
var appleNews = require('@micromag/transforms/apple-news');
|
|
26
23
|
|
|
27
24
|
/**
|
|
28
25
|
* Locale loader
|
|
@@ -465,28 +462,7 @@ var Image360Screen = function Image360Screen(_ref) {
|
|
|
465
462
|
Image360Screen.propTypes = propTypes;
|
|
466
463
|
Image360Screen.defaultProps = defaultProps;
|
|
467
464
|
|
|
468
|
-
|
|
469
|
-
var video = _ref.video;
|
|
470
|
-
var _ref2 = video || {},
|
|
471
|
-
_ref2$media = _ref2.media,
|
|
472
|
-
media = _ref2$media === void 0 ? null : _ref2$media;
|
|
473
|
-
var _Video = appleNews.Video(newStory, media),
|
|
474
|
-
titleStory = _Video.story,
|
|
475
|
-
titleComponent = _Video.component;
|
|
476
|
-
var _Container = appleNews.Container(titleStory, _toConsumableArray(titleComponent ? [titleComponent] : [])),
|
|
477
|
-
containerStory = _Container.story,
|
|
478
|
-
containerComponent = _Container.component;
|
|
479
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
480
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
481
|
-
});
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
// eslint-disable-next-line
|
|
485
|
-
|
|
486
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
487
|
-
__proto__: null,
|
|
488
|
-
appleNews: transform
|
|
489
|
-
});
|
|
465
|
+
// import * as transforms from './transforms/index';
|
|
490
466
|
|
|
491
467
|
var definition = {
|
|
492
468
|
id: 'video-360',
|
|
@@ -510,7 +486,7 @@ var definition = {
|
|
|
510
486
|
}),
|
|
511
487
|
component: Image360Screen,
|
|
512
488
|
layouts: ['full'],
|
|
513
|
-
|
|
489
|
+
// transforms,
|
|
514
490
|
fields: [{
|
|
515
491
|
name: 'video',
|
|
516
492
|
type: 'video-element',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-image-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
|
}
|