@micromag/screen-gallery 0.3.229 → 0.3.233
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/assets/css/styles.css +1 -1
- package/es/index.js +16 -14
- package/lib/index.js +16 -14
- package/package.json +11 -11
package/assets/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.micromag-screen-gallery-container .micromag-screen-gallery-
|
|
1
|
+
.micromag-screen-gallery-container .micromag-screen-gallery-background,.micromag-screen-gallery-container .micromag-screen-gallery-image,.micromag-screen-gallery-container .micromag-screen-gallery-inner{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-gallery-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-gallery-disabled.micromag-screen-gallery-container{overflow:hidden;pointer-events:none}.micromag-screen-gallery-hidden.micromag-screen-gallery-container{display:none;visibility:hidden}.micromag-screen-gallery-placeholder.micromag-screen-gallery-container .micromag-screen-gallery-content{position:relative;padding:6px}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption,.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-gallery-container .micromag-screen-gallery-background{z-index:0}.micromag-screen-gallery-container .micromag-screen-gallery-content{z-index:1}.micromag-screen-gallery-container .micromag-screen-gallery-inner{-webkit-transition:padding-bottom .2s ease-out;-o-transition:padding-bottom .2s ease-out;transition:padding-bottom .2s ease-out}.micromag-screen-gallery-container .micromag-screen-gallery-grid{position:relative;height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-placeholder{height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption,.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{width:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption{height:50px;margin-top:10px}.micromag-screen-gallery-container .micromag-screen-gallery-gridItem{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-imageContainer{overflow:hidden;position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-gallery-container .micromag-screen-gallery-callToAction{position:absolute;bottom:0;left:0;width:100%;-webkit-transition:-webkit-transform .2s ease-out;transition:-webkit-transform .2s ease-out;-o-transition:transform .2s ease-out;transition:transform .2s ease-out;transition:transform .2s ease-out, -webkit-transform .2s ease-out}.micromag-screen-gallery-container .micromag-screen-gallery-caption{padding:10px 0}
|
package/es/index.js
CHANGED
|
@@ -191,7 +191,7 @@ var layoutProps = {
|
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
-
var styles = {"container":"micromag-screen-gallery-container","
|
|
194
|
+
var styles = {"container":"micromag-screen-gallery-container","background":"micromag-screen-gallery-background","image":"micromag-screen-gallery-image","inner":"micromag-screen-gallery-inner","disabled":"micromag-screen-gallery-disabled","hidden":"micromag-screen-gallery-hidden","placeholder":"micromag-screen-gallery-placeholder","content":"micromag-screen-gallery-content","emptyCaption":"micromag-screen-gallery-emptyCaption","emptyImage":"micromag-screen-gallery-emptyImage","grid":"micromag-screen-gallery-grid","gridItem":"micromag-screen-gallery-gridItem","imageContainer":"micromag-screen-gallery-imageContainer","callToAction":"micromag-screen-gallery-callToAction","caption":"micromag-screen-gallery-caption"};
|
|
195
195
|
|
|
196
196
|
var propTypes = {
|
|
197
197
|
layout: PropTypes.oneOf([// 2
|
|
@@ -413,21 +413,12 @@ var GalleryScreen = function GalleryScreen(_ref) {
|
|
|
413
413
|
return /*#__PURE__*/React.createElement("div", {
|
|
414
414
|
className: classNames([styles.container, (_ref5 = {}, _defineProperty(_ref5, className, className !== null), _defineProperty(_ref5, styles.isPlaceholder, isPlaceholder), _ref5)]),
|
|
415
415
|
"data-screen-ready": ready
|
|
416
|
-
},
|
|
417
|
-
background: background,
|
|
416
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
418
417
|
width: width,
|
|
419
418
|
height: height,
|
|
420
|
-
|
|
421
|
-
playing: backgroundPlaying,
|
|
422
|
-
muted: muted,
|
|
423
|
-
shouldLoad: mediaShouldLoad,
|
|
424
|
-
mediaRef: mediaRef,
|
|
425
|
-
withoutVideo: isPreview
|
|
426
|
-
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
427
|
-
width: width,
|
|
428
|
-
height: height
|
|
419
|
+
className: styles.content
|
|
429
420
|
}, /*#__PURE__*/React.createElement("div", {
|
|
430
|
-
className: styles.
|
|
421
|
+
className: styles.inner,
|
|
431
422
|
style: {
|
|
432
423
|
paddingTop: !isPreview ? viewerTopHeight : null,
|
|
433
424
|
paddingBottom: (hasCallToAction ? callToActionHeight : 0) + (current && !isPreview ? viewerBottomHeight : 0)
|
|
@@ -451,7 +442,18 @@ var GalleryScreen = function GalleryScreen(_ref) {
|
|
|
451
442
|
animationDisabled: isPreview,
|
|
452
443
|
focusable: current && isView,
|
|
453
444
|
openWebView: openWebView
|
|
454
|
-
}))) : null))
|
|
445
|
+
}))) : null)), !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
|
|
446
|
+
background: background,
|
|
447
|
+
width: width,
|
|
448
|
+
height: height,
|
|
449
|
+
resolution: resolution,
|
|
450
|
+
playing: backgroundPlaying,
|
|
451
|
+
muted: muted,
|
|
452
|
+
shouldLoad: mediaShouldLoad,
|
|
453
|
+
mediaRef: mediaRef,
|
|
454
|
+
withoutVideo: isPreview,
|
|
455
|
+
className: styles.background
|
|
456
|
+
}) : null);
|
|
455
457
|
};
|
|
456
458
|
|
|
457
459
|
GalleryScreen.propTypes = propTypes;
|
package/lib/index.js
CHANGED
|
@@ -213,7 +213,7 @@ var layoutProps = {
|
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
|
|
216
|
-
var styles = {"container":"micromag-screen-gallery-container","
|
|
216
|
+
var styles = {"container":"micromag-screen-gallery-container","background":"micromag-screen-gallery-background","image":"micromag-screen-gallery-image","inner":"micromag-screen-gallery-inner","disabled":"micromag-screen-gallery-disabled","hidden":"micromag-screen-gallery-hidden","placeholder":"micromag-screen-gallery-placeholder","content":"micromag-screen-gallery-content","emptyCaption":"micromag-screen-gallery-emptyCaption","emptyImage":"micromag-screen-gallery-emptyImage","grid":"micromag-screen-gallery-grid","gridItem":"micromag-screen-gallery-gridItem","imageContainer":"micromag-screen-gallery-imageContainer","callToAction":"micromag-screen-gallery-callToAction","caption":"micromag-screen-gallery-caption"};
|
|
217
217
|
|
|
218
218
|
var propTypes = {
|
|
219
219
|
layout: PropTypes__default["default"].oneOf([// 2
|
|
@@ -435,21 +435,12 @@ var GalleryScreen = function GalleryScreen(_ref) {
|
|
|
435
435
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
436
436
|
className: classNames__default["default"]([styles.container, (_ref5 = {}, _defineProperty__default["default"](_ref5, className, className !== null), _defineProperty__default["default"](_ref5, styles.isPlaceholder, isPlaceholder), _ref5)]),
|
|
437
437
|
"data-screen-ready": ready
|
|
438
|
-
},
|
|
439
|
-
background: background,
|
|
438
|
+
}, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
440
439
|
width: width,
|
|
441
440
|
height: height,
|
|
442
|
-
|
|
443
|
-
playing: backgroundPlaying,
|
|
444
|
-
muted: muted,
|
|
445
|
-
shouldLoad: mediaShouldLoad,
|
|
446
|
-
mediaRef: mediaRef,
|
|
447
|
-
withoutVideo: isPreview
|
|
448
|
-
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
449
|
-
width: width,
|
|
450
|
-
height: height
|
|
441
|
+
className: styles.content
|
|
451
442
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
452
|
-
className: styles.
|
|
443
|
+
className: styles.inner,
|
|
453
444
|
style: {
|
|
454
445
|
paddingTop: !isPreview ? viewerTopHeight : null,
|
|
455
446
|
paddingBottom: (hasCallToAction ? callToActionHeight : 0) + (current && !isPreview ? viewerBottomHeight : 0)
|
|
@@ -473,7 +464,18 @@ var GalleryScreen = function GalleryScreen(_ref) {
|
|
|
473
464
|
animationDisabled: isPreview,
|
|
474
465
|
focusable: current && isView,
|
|
475
466
|
openWebView: openWebView
|
|
476
|
-
}))) : null))
|
|
467
|
+
}))) : null)), !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(Background__default["default"], {
|
|
468
|
+
background: background,
|
|
469
|
+
width: width,
|
|
470
|
+
height: height,
|
|
471
|
+
resolution: resolution,
|
|
472
|
+
playing: backgroundPlaying,
|
|
473
|
+
muted: muted,
|
|
474
|
+
shouldLoad: mediaShouldLoad,
|
|
475
|
+
mediaRef: mediaRef,
|
|
476
|
+
withoutVideo: isPreview,
|
|
477
|
+
className: styles.background
|
|
478
|
+
}) : null);
|
|
477
479
|
};
|
|
478
480
|
|
|
479
481
|
GalleryScreen.propTypes = propTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.233",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/element-background": "^0.3.
|
|
54
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
55
|
-
"@micromag/element-container": "^0.3.
|
|
56
|
-
"@micromag/element-grid": "^0.3.
|
|
57
|
-
"@micromag/element-layout": "^0.3.
|
|
58
|
-
"@micromag/element-text": "^0.3.
|
|
59
|
-
"@micromag/element-visual": "^0.3.
|
|
60
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.233",
|
|
53
|
+
"@micromag/element-background": "^0.3.233",
|
|
54
|
+
"@micromag/element-call-to-action": "^0.3.233",
|
|
55
|
+
"@micromag/element-container": "^0.3.233",
|
|
56
|
+
"@micromag/element-grid": "^0.3.233",
|
|
57
|
+
"@micromag/element-layout": "^0.3.233",
|
|
58
|
+
"@micromag/element-text": "^0.3.233",
|
|
59
|
+
"@micromag/element-visual": "^0.3.233",
|
|
60
|
+
"@micromag/transforms": "^0.3.233",
|
|
61
61
|
"classnames": "^2.2.6",
|
|
62
62
|
"lodash": "^4.17.21",
|
|
63
63
|
"prop-types": "^15.7.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "1849b8fc36ca5b6c6a13045db441495bba22184f"
|
|
71
71
|
}
|