@micromag/screen-gallery 0.3.251 → 0.3.262

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.
@@ -1 +1 @@
1
- .micromag-screen-gallery-container .micromag-screen-gallery-content,.micromag-screen-gallery-container .micromag-screen-gallery-image{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-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}.micromag-screen-gallery-container .micromag-screen-gallery-content{-webkit-transition:padding-bottom .2s ease-out;-o-transition:padding-bottom .2s ease-out;transition:padding-bottom .2s ease-out}
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","content":"micromag-screen-gallery-content","image":"micromag-screen-gallery-image","disabled":"micromag-screen-gallery-disabled","hidden":"micromag-screen-gallery-hidden","placeholder":"micromag-screen-gallery-placeholder","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"};
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
@@ -384,6 +384,7 @@ var GalleryScreen = function GalleryScreen(_ref) {
384
384
  playing: backgroundPlaying,
385
385
  active: active,
386
386
  shouldLoad: mediaShouldLoad,
387
+ withoutVideo: isPreview,
387
388
  onLoaded: onImageLoaded
388
389
  })) : null))), withCaptions ? /*#__PURE__*/React.createElement(Transitions, {
389
390
  transitions: transitions,
@@ -412,22 +413,14 @@ var GalleryScreen = function GalleryScreen(_ref) {
412
413
  return /*#__PURE__*/React.createElement("div", {
413
414
  className: classNames([styles.container, (_ref5 = {}, _defineProperty(_ref5, className, className !== null), _defineProperty(_ref5, styles.isPlaceholder, isPlaceholder), _ref5)]),
414
415
  "data-screen-ready": ready
415
- }, !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
416
- background: background,
416
+ }, /*#__PURE__*/React.createElement(Container, {
417
417
  width: width,
418
418
  height: height,
419
- resolution: resolution,
420
- playing: backgroundPlaying,
421
- muted: muted,
422
- shouldLoad: mediaShouldLoad,
423
- mediaRef: mediaRef
424
- }) : null, /*#__PURE__*/React.createElement(Container, {
425
- width: width,
426
- height: height
419
+ className: styles.content
427
420
  }, /*#__PURE__*/React.createElement("div", {
428
- className: styles.content,
421
+ className: styles.inner,
429
422
  style: {
430
- paddingTop: current && !isPreview ? viewerTopHeight : null,
423
+ paddingTop: !isPreview ? viewerTopHeight : null,
431
424
  paddingBottom: (hasCallToAction ? callToActionHeight : 0) + (current && !isPreview ? viewerBottomHeight : 0)
432
425
  },
433
426
  ref: contentRef
@@ -449,7 +442,18 @@ var GalleryScreen = function GalleryScreen(_ref) {
449
442
  animationDisabled: isPreview,
450
443
  focusable: current && isView,
451
444
  openWebView: openWebView
452
- }))) : 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);
453
457
  };
454
458
 
455
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","content":"micromag-screen-gallery-content","image":"micromag-screen-gallery-image","disabled":"micromag-screen-gallery-disabled","hidden":"micromag-screen-gallery-hidden","placeholder":"micromag-screen-gallery-placeholder","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"};
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
@@ -406,6 +406,7 @@ var GalleryScreen = function GalleryScreen(_ref) {
406
406
  playing: backgroundPlaying,
407
407
  active: active,
408
408
  shouldLoad: mediaShouldLoad,
409
+ withoutVideo: isPreview,
409
410
  onLoaded: onImageLoaded
410
411
  })) : null))), withCaptions ? /*#__PURE__*/React__default["default"].createElement(components.Transitions, {
411
412
  transitions: transitions,
@@ -434,22 +435,14 @@ var GalleryScreen = function GalleryScreen(_ref) {
434
435
  return /*#__PURE__*/React__default["default"].createElement("div", {
435
436
  className: classNames__default["default"]([styles.container, (_ref5 = {}, _defineProperty__default["default"](_ref5, className, className !== null), _defineProperty__default["default"](_ref5, styles.isPlaceholder, isPlaceholder), _ref5)]),
436
437
  "data-screen-ready": ready
437
- }, !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(Background__default["default"], {
438
- background: background,
438
+ }, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
439
439
  width: width,
440
440
  height: height,
441
- resolution: resolution,
442
- playing: backgroundPlaying,
443
- muted: muted,
444
- shouldLoad: mediaShouldLoad,
445
- mediaRef: mediaRef
446
- }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
447
- width: width,
448
- height: height
441
+ className: styles.content
449
442
  }, /*#__PURE__*/React__default["default"].createElement("div", {
450
- className: styles.content,
443
+ className: styles.inner,
451
444
  style: {
452
- paddingTop: current && !isPreview ? viewerTopHeight : null,
445
+ paddingTop: !isPreview ? viewerTopHeight : null,
453
446
  paddingBottom: (hasCallToAction ? callToActionHeight : 0) + (current && !isPreview ? viewerBottomHeight : 0)
454
447
  },
455
448
  ref: contentRef
@@ -471,7 +464,18 @@ var GalleryScreen = function GalleryScreen(_ref) {
471
464
  animationDisabled: isPreview,
472
465
  focusable: current && isView,
473
466
  openWebView: openWebView
474
- }))) : 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);
475
479
  };
476
480
 
477
481
  GalleryScreen.propTypes = propTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-gallery",
3
- "version": "0.3.251",
3
+ "version": "0.3.262",
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.251",
53
- "@micromag/element-background": "^0.3.251",
54
- "@micromag/element-call-to-action": "^0.3.251",
55
- "@micromag/element-container": "^0.3.251",
56
- "@micromag/element-grid": "^0.3.251",
57
- "@micromag/element-layout": "^0.3.251",
58
- "@micromag/element-text": "^0.3.251",
59
- "@micromag/element-visual": "^0.3.251",
60
- "@micromag/transforms": "^0.3.251",
52
+ "@micromag/core": "^0.3.262",
53
+ "@micromag/element-background": "^0.3.262",
54
+ "@micromag/element-call-to-action": "^0.3.262",
55
+ "@micromag/element-container": "^0.3.262",
56
+ "@micromag/element-grid": "^0.3.262",
57
+ "@micromag/element-layout": "^0.3.262",
58
+ "@micromag/element-text": "^0.3.262",
59
+ "@micromag/element-visual": "^0.3.262",
60
+ "@micromag/transforms": "^0.3.262",
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": "3b6fb00baaa7f3ab90684a88cbe4c30929b6b27d"
70
+ "gitHead": "2299eaeb150cfdd14b4da321bf9089ab1e6383c2"
71
71
  }