@micromag/screen-gallery 0.3.444 → 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 +3 -25
- package/lib/index.js +3 -25
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -20,8 +20,6 @@ import Text from '@micromag/element-text';
|
|
|
20
20
|
import Visual from '@micromag/element-visual';
|
|
21
21
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
22
22
|
import _extends from '@babel/runtime/helpers/extends';
|
|
23
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
24
|
-
import { Mosaic, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
25
23
|
|
|
26
24
|
var layoutProps = {
|
|
27
25
|
// 2
|
|
@@ -450,27 +448,7 @@ function GalleryCaptionsScreen(_ref) {
|
|
|
450
448
|
}));
|
|
451
449
|
}
|
|
452
450
|
|
|
453
|
-
|
|
454
|
-
var images = _ref.images;
|
|
455
|
-
var _Mosaic = Mosaic(newStory, {
|
|
456
|
-
images: images
|
|
457
|
-
}),
|
|
458
|
-
titleStory = _Mosaic.story,
|
|
459
|
-
titleComponent = _Mosaic.component;
|
|
460
|
-
var _Container = Container$1(titleStory, _toConsumableArray(titleComponent ? [titleComponent] : [])),
|
|
461
|
-
containerStory = _Container.story,
|
|
462
|
-
containerComponent = _Container.component;
|
|
463
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
464
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
465
|
-
});
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
// eslint-disable-next-line
|
|
469
|
-
|
|
470
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
471
|
-
__proto__: null,
|
|
472
|
-
appleNews: transform
|
|
473
|
-
});
|
|
451
|
+
// import * as transforms from './transforms/index';
|
|
474
452
|
|
|
475
453
|
var definition = [{
|
|
476
454
|
id: 'gallery',
|
|
@@ -504,7 +482,7 @@ var definition = [{
|
|
|
504
482
|
'two-one-two', 'one-two-two', 'two-two-one',
|
|
505
483
|
// 6
|
|
506
484
|
'two-by-three', 'one-one-two-two', 'two-two-one-one'],
|
|
507
|
-
|
|
485
|
+
// transforms,
|
|
508
486
|
fields: [{
|
|
509
487
|
name: 'layout',
|
|
510
488
|
type: 'screen-layout',
|
|
@@ -605,7 +583,7 @@ var definition = [{
|
|
|
605
583
|
'two-one-two', 'one-two-two', 'two-two-one',
|
|
606
584
|
// 6
|
|
607
585
|
'two-by-three', 'one-one-two-two', 'two-two-one-one'],
|
|
608
|
-
|
|
586
|
+
// transforms,
|
|
609
587
|
fields: [{
|
|
610
588
|
name: 'layout',
|
|
611
589
|
type: 'screen-layout',
|
package/lib/index.js
CHANGED
|
@@ -24,8 +24,6 @@ var Text = require('@micromag/element-text');
|
|
|
24
24
|
var Visual = require('@micromag/element-visual');
|
|
25
25
|
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
26
26
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
27
|
-
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
28
|
-
var appleNews = require('@micromag/transforms/apple-news');
|
|
29
27
|
|
|
30
28
|
var layoutProps = {
|
|
31
29
|
// 2
|
|
@@ -454,27 +452,7 @@ function GalleryCaptionsScreen(_ref) {
|
|
|
454
452
|
}));
|
|
455
453
|
}
|
|
456
454
|
|
|
457
|
-
|
|
458
|
-
var images = _ref.images;
|
|
459
|
-
var _Mosaic = appleNews.Mosaic(newStory, {
|
|
460
|
-
images: images
|
|
461
|
-
}),
|
|
462
|
-
titleStory = _Mosaic.story,
|
|
463
|
-
titleComponent = _Mosaic.component;
|
|
464
|
-
var _Container = appleNews.Container(titleStory, _toConsumableArray(titleComponent ? [titleComponent] : [])),
|
|
465
|
-
containerStory = _Container.story,
|
|
466
|
-
containerComponent = _Container.component;
|
|
467
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
468
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
469
|
-
});
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
// eslint-disable-next-line
|
|
473
|
-
|
|
474
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
475
|
-
__proto__: null,
|
|
476
|
-
appleNews: transform
|
|
477
|
-
});
|
|
455
|
+
// import * as transforms from './transforms/index';
|
|
478
456
|
|
|
479
457
|
var definition = [{
|
|
480
458
|
id: 'gallery',
|
|
@@ -508,7 +486,7 @@ var definition = [{
|
|
|
508
486
|
'two-one-two', 'one-two-two', 'two-two-one',
|
|
509
487
|
// 6
|
|
510
488
|
'two-by-three', 'one-one-two-two', 'two-two-one-one'],
|
|
511
|
-
|
|
489
|
+
// transforms,
|
|
512
490
|
fields: [{
|
|
513
491
|
name: 'layout',
|
|
514
492
|
type: 'screen-layout',
|
|
@@ -609,7 +587,7 @@ var definition = [{
|
|
|
609
587
|
'two-one-two', 'one-two-two', 'two-two-one',
|
|
610
588
|
// 6
|
|
611
589
|
'two-by-three', 'one-one-two-two', 'two-two-one-one'],
|
|
612
|
-
|
|
590
|
+
// transforms,
|
|
613
591
|
fields: [{
|
|
614
592
|
name: 'layout',
|
|
615
593
|
type: 'screen-layout',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.447",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.13.10",
|
|
62
|
-
"@micromag/core": "^0.3.
|
|
63
|
-
"@micromag/element-background": "^0.3.
|
|
64
|
-
"@micromag/element-container": "^0.3.
|
|
65
|
-
"@micromag/element-footer": "^0.3.
|
|
66
|
-
"@micromag/element-grid": "^0.3.
|
|
67
|
-
"@micromag/element-header": "^0.3.
|
|
68
|
-
"@micromag/element-layout": "^0.3.
|
|
69
|
-
"@micromag/element-text": "^0.3.
|
|
70
|
-
"@micromag/element-visual": "^0.3.
|
|
71
|
-
"@micromag/transforms": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.447",
|
|
63
|
+
"@micromag/element-background": "^0.3.447",
|
|
64
|
+
"@micromag/element-container": "^0.3.447",
|
|
65
|
+
"@micromag/element-footer": "^0.3.447",
|
|
66
|
+
"@micromag/element-grid": "^0.3.447",
|
|
67
|
+
"@micromag/element-header": "^0.3.447",
|
|
68
|
+
"@micromag/element-layout": "^0.3.447",
|
|
69
|
+
"@micromag/element-text": "^0.3.447",
|
|
70
|
+
"@micromag/element-visual": "^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",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"access": "public",
|
|
80
80
|
"registry": "https://registry.npmjs.org/"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "ec175c602ce6f59b7561f57c92da443814109d50"
|
|
83
83
|
}
|