@micromag/screen-map 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-map-container .micromag-screen-map-markerOverlayContainer,.micromag-screen-map-container .micromag-screen-map-markerOverlayScrollable,.micromag-screen-map-container .micromag-screen-map-splash{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-map-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-map-disabled.micromag-screen-map-container{overflow:hidden;pointer-events:none}.micromag-screen-map-hidden.micromag-screen-map-container{display:none;visibility:hidden}.micromag-screen-map-placeholder.micromag-screen-map-container .micromag-screen-map-content{position:relative;padding:6px}.micromag-screen-map-container .micromag-screen-map-placeholder{height:100%}.micromag-screen-map-container .micromag-screen-map-markerOverlayContainer{-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;opacity:0;background-color:rgba(28,28,28,.4);pointer-events:none}.micromag-screen-map-container .micromag-screen-map-markerOverlaySafe{display:block;width:100%}.micromag-screen-map-container .micromag-screen-map-markerOverlay{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;overflow:hidden}.micromag-screen-map-container .micromag-screen-map-markerOverlayContent{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:0 20px;-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;-o-transition:transform .3s ease;transition:transform .3s ease;transition:transform .3s ease, -webkit-transform .3s ease;background-color:#fff}.micromag-screen-map-container .micromag-screen-map-markerOverlayContentInner{color:#1c1c1c}.micromag-screen-map-container .micromag-screen-map-swipeIndicator{width:30px;margin:10px auto;border:2px solid #adadad;border-radius:2px}.micromag-screen-map-container .micromag-screen-map-splash{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:20px;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;background-color:rgba(28,28,28,.75)}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-description,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-title{margin:10px 0}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-button{display:inline-block}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyButton,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyDescription,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyTitle{width:100%;margin:5px auto}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyTitle{height:50px}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyDescription{height:80px}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyButton{height:70px}.micromag-screen-map-container .micromag-screen-map-splashButton{margin-top:10px}.micromag-screen-map-container .micromag-screen-map-closeButton{display:block;position:absolute;top:20px;right:20px;width:44px;height:44px;padding:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;border-radius:50%;opacity:0;background-color:rgba(43,43,43,.8);font-size:30px;line-height:0;text-align:center;pointer-events:none}.micromag-screen-map-container .micromag-screen-map-markerDescription,.micromag-screen-map-container .micromag-screen-map-markerImage,.micromag-screen-map-container .micromag-screen-map-markerSubtitle,.micromag-screen-map-container .micromag-screen-map-markerTitle{margin-bottom:20px}.micromag-screen-map-container.micromag-screen-map-hasSelectedMarker .micromag-screen-map-markerOverlayContainer{opacity:1;pointer-events:auto}.micromag-screen-map-container.micromag-screen-map-hasSelectedMarker .micromag-screen-map-markerOverlayContent{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.micromag-screen-map-container.micromag-screen-map-opened .micromag-screen-map-splash{opacity:0;pointer-events:none}.micromag-screen-map-container.micromag-screen-map-opened .micromag-screen-map-closeButton{opacity:1;pointer-events:all}
1
+ .micromag-screen-map-container .micromag-screen-map-background,.micromag-screen-map-container .micromag-screen-map-markerOverlayContainer,.micromag-screen-map-container .micromag-screen-map-markerOverlayScrollable,.micromag-screen-map-container .micromag-screen-map-splash{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-map-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-map-disabled.micromag-screen-map-container{overflow:hidden;pointer-events:none}.micromag-screen-map-hidden.micromag-screen-map-container{display:none;visibility:hidden}.micromag-screen-map-placeholder.micromag-screen-map-container .micromag-screen-map-content{position:relative;padding:6px}.micromag-screen-map-container .micromag-screen-map-background{z-index:0}.micromag-screen-map-container .micromag-screen-map-content{z-index:1}.micromag-screen-map-container .micromag-screen-map-placeholder{height:100%}.micromag-screen-map-container .micromag-screen-map-markerOverlayContainer{-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;opacity:0;background-color:rgba(28,28,28,.4);pointer-events:none}.micromag-screen-map-container .micromag-screen-map-markerOverlaySafe{display:block;width:100%}.micromag-screen-map-container .micromag-screen-map-markerOverlay{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;overflow:hidden}.micromag-screen-map-container .micromag-screen-map-markerOverlayContent{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:0 20px;-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;-o-transition:transform .3s ease;transition:transform .3s ease;transition:transform .3s ease, -webkit-transform .3s ease;background-color:#fff}.micromag-screen-map-container .micromag-screen-map-markerOverlayContentInner{color:#1c1c1c}.micromag-screen-map-container .micromag-screen-map-swipeIndicator{width:30px;margin:10px auto;border:2px solid #adadad;border-radius:2px}.micromag-screen-map-container .micromag-screen-map-splash{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:20px;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;background-color:rgba(28,28,28,.75)}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-description,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-title{margin:10px 0}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-button{display:inline-block}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyButton,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyDescription,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyTitle{width:100%;margin:5px auto}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyTitle{height:50px}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyDescription{height:80px}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyButton{height:70px}.micromag-screen-map-container .micromag-screen-map-splashButton{margin-top:10px}.micromag-screen-map-container .micromag-screen-map-closeButton{display:block;position:absolute;top:20px;right:20px;width:44px;height:44px;padding:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;border-radius:50%;opacity:0;background-color:rgba(43,43,43,.8);font-size:30px;line-height:0;text-align:center;pointer-events:none}.micromag-screen-map-container .micromag-screen-map-markerDescription,.micromag-screen-map-container .micromag-screen-map-markerImage,.micromag-screen-map-container .micromag-screen-map-markerSubtitle,.micromag-screen-map-container .micromag-screen-map-markerTitle{margin-bottom:20px}.micromag-screen-map-container.micromag-screen-map-hasSelectedMarker .micromag-screen-map-markerOverlayContainer{opacity:1;pointer-events:auto}.micromag-screen-map-container.micromag-screen-map-hasSelectedMarker .micromag-screen-map-markerOverlayContent{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.micromag-screen-map-container.micromag-screen-map-opened .micromag-screen-map-splash{opacity:0;pointer-events:none}.micromag-screen-map-container.micromag-screen-map-opened .micromag-screen-map-closeButton{opacity:1;pointer-events:all}
package/es/index.js CHANGED
@@ -22,7 +22,7 @@ import _extends from '@babel/runtime/helpers/extends';
22
22
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
23
23
  import { Map as Map$1, Container as Container$1 } from '@micromag/transforms/apple-news';
24
24
 
25
- var styles = {"container":"micromag-screen-map-container","markerOverlayContainer":"micromag-screen-map-markerOverlayContainer","markerOverlayScrollable":"micromag-screen-map-markerOverlayScrollable","splash":"micromag-screen-map-splash","disabled":"micromag-screen-map-disabled","hidden":"micromag-screen-map-hidden","placeholder":"micromag-screen-map-placeholder","content":"micromag-screen-map-content","markerOverlaySafe":"micromag-screen-map-markerOverlaySafe","markerOverlay":"micromag-screen-map-markerOverlay","markerOverlayContent":"micromag-screen-map-markerOverlayContent","markerOverlayContentInner":"micromag-screen-map-markerOverlayContentInner","swipeIndicator":"micromag-screen-map-swipeIndicator","description":"micromag-screen-map-description","title":"micromag-screen-map-title","button":"micromag-screen-map-button","emptyButton":"micromag-screen-map-emptyButton","emptyDescription":"micromag-screen-map-emptyDescription","emptyTitle":"micromag-screen-map-emptyTitle","splashButton":"micromag-screen-map-splashButton","closeButton":"micromag-screen-map-closeButton","markerDescription":"micromag-screen-map-markerDescription","markerImage":"micromag-screen-map-markerImage","markerSubtitle":"micromag-screen-map-markerSubtitle","markerTitle":"micromag-screen-map-markerTitle","hasSelectedMarker":"micromag-screen-map-hasSelectedMarker","opened":"micromag-screen-map-opened"};
25
+ var styles = {"container":"micromag-screen-map-container","background":"micromag-screen-map-background","markerOverlayContainer":"micromag-screen-map-markerOverlayContainer","markerOverlayScrollable":"micromag-screen-map-markerOverlayScrollable","splash":"micromag-screen-map-splash","disabled":"micromag-screen-map-disabled","hidden":"micromag-screen-map-hidden","placeholder":"micromag-screen-map-placeholder","content":"micromag-screen-map-content","markerOverlaySafe":"micromag-screen-map-markerOverlaySafe","markerOverlay":"micromag-screen-map-markerOverlay","markerOverlayContent":"micromag-screen-map-markerOverlayContent","markerOverlayContentInner":"micromag-screen-map-markerOverlayContentInner","swipeIndicator":"micromag-screen-map-swipeIndicator","description":"micromag-screen-map-description","title":"micromag-screen-map-title","button":"micromag-screen-map-button","emptyButton":"micromag-screen-map-emptyButton","emptyDescription":"micromag-screen-map-emptyDescription","emptyTitle":"micromag-screen-map-emptyTitle","splashButton":"micromag-screen-map-splashButton","closeButton":"micromag-screen-map-closeButton","markerDescription":"micromag-screen-map-markerDescription","markerImage":"micromag-screen-map-markerImage","markerSubtitle":"micromag-screen-map-markerSubtitle","markerTitle":"micromag-screen-map-markerTitle","hasSelectedMarker":"micromag-screen-map-hasSelectedMarker","opened":"micromag-screen-map-opened"};
26
26
 
27
27
  var defaultCenter = {
28
28
  lat: 45.5,
@@ -402,21 +402,10 @@ function MapScreen(_ref) {
402
402
  return /*#__PURE__*/React.createElement("div", {
403
403
  className: classNames([styles.container, (_ref15 = {}, _defineProperty(_ref15, className, className !== null), _defineProperty(_ref15, styles["".concat(layout, "Layout")], layout !== null), _defineProperty(_ref15, styles.opened, opened || isPreview && screenState !== 'intro'), _defineProperty(_ref15, styles.hasSelectedMarker, hasSelectedMarker), _ref15)]),
404
404
  "data-screen-ready": finalReady
405
- }, !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
406
- color: {
407
- color: '#FFFFFF',
408
- alpha: 1
409
- },
405
+ }, /*#__PURE__*/React.createElement(Container, {
410
406
  width: width,
411
407
  height: height,
412
- resolution: resolution,
413
- playing: backgroundPlaying,
414
- muted: muted,
415
- shouldLoad: backgroundShouldLoad,
416
- mediaRef: mediaRef
417
- }) : null, /*#__PURE__*/React.createElement(Container, {
418
- width: width,
419
- height: height
408
+ className: styles.content
420
409
  }, isPlaceholder ? /*#__PURE__*/React.createElement(PlaceholderMap, {
421
410
  className: styles.placeholder,
422
411
  withImages: withMarkerImages
@@ -548,7 +537,21 @@ function MapScreen(_ref) {
548
537
  className: styles.closeButton,
549
538
  onClick: onCloseClick,
550
539
  focusable: current && isView
551
- }, "\xD7") : null)));
540
+ }, "\xD7") : null)), !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
541
+ color: {
542
+ color: '#FFFFFF',
543
+ alpha: 1
544
+ },
545
+ width: width,
546
+ height: height,
547
+ resolution: resolution,
548
+ playing: backgroundPlaying,
549
+ muted: muted,
550
+ shouldLoad: backgroundShouldLoad,
551
+ mediaRef: mediaRef,
552
+ withoutVideo: isPreview,
553
+ className: styles.background
554
+ }) : null);
552
555
  }
553
556
 
554
557
  MapScreen.propTypes = propTypes;
package/lib/index.js CHANGED
@@ -44,7 +44,7 @@ var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
44
44
  var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
45
45
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
46
46
 
47
- var styles = {"container":"micromag-screen-map-container","markerOverlayContainer":"micromag-screen-map-markerOverlayContainer","markerOverlayScrollable":"micromag-screen-map-markerOverlayScrollable","splash":"micromag-screen-map-splash","disabled":"micromag-screen-map-disabled","hidden":"micromag-screen-map-hidden","placeholder":"micromag-screen-map-placeholder","content":"micromag-screen-map-content","markerOverlaySafe":"micromag-screen-map-markerOverlaySafe","markerOverlay":"micromag-screen-map-markerOverlay","markerOverlayContent":"micromag-screen-map-markerOverlayContent","markerOverlayContentInner":"micromag-screen-map-markerOverlayContentInner","swipeIndicator":"micromag-screen-map-swipeIndicator","description":"micromag-screen-map-description","title":"micromag-screen-map-title","button":"micromag-screen-map-button","emptyButton":"micromag-screen-map-emptyButton","emptyDescription":"micromag-screen-map-emptyDescription","emptyTitle":"micromag-screen-map-emptyTitle","splashButton":"micromag-screen-map-splashButton","closeButton":"micromag-screen-map-closeButton","markerDescription":"micromag-screen-map-markerDescription","markerImage":"micromag-screen-map-markerImage","markerSubtitle":"micromag-screen-map-markerSubtitle","markerTitle":"micromag-screen-map-markerTitle","hasSelectedMarker":"micromag-screen-map-hasSelectedMarker","opened":"micromag-screen-map-opened"};
47
+ var styles = {"container":"micromag-screen-map-container","background":"micromag-screen-map-background","markerOverlayContainer":"micromag-screen-map-markerOverlayContainer","markerOverlayScrollable":"micromag-screen-map-markerOverlayScrollable","splash":"micromag-screen-map-splash","disabled":"micromag-screen-map-disabled","hidden":"micromag-screen-map-hidden","placeholder":"micromag-screen-map-placeholder","content":"micromag-screen-map-content","markerOverlaySafe":"micromag-screen-map-markerOverlaySafe","markerOverlay":"micromag-screen-map-markerOverlay","markerOverlayContent":"micromag-screen-map-markerOverlayContent","markerOverlayContentInner":"micromag-screen-map-markerOverlayContentInner","swipeIndicator":"micromag-screen-map-swipeIndicator","description":"micromag-screen-map-description","title":"micromag-screen-map-title","button":"micromag-screen-map-button","emptyButton":"micromag-screen-map-emptyButton","emptyDescription":"micromag-screen-map-emptyDescription","emptyTitle":"micromag-screen-map-emptyTitle","splashButton":"micromag-screen-map-splashButton","closeButton":"micromag-screen-map-closeButton","markerDescription":"micromag-screen-map-markerDescription","markerImage":"micromag-screen-map-markerImage","markerSubtitle":"micromag-screen-map-markerSubtitle","markerTitle":"micromag-screen-map-markerTitle","hasSelectedMarker":"micromag-screen-map-hasSelectedMarker","opened":"micromag-screen-map-opened"};
48
48
 
49
49
  var defaultCenter = {
50
50
  lat: 45.5,
@@ -424,21 +424,10 @@ function MapScreen(_ref) {
424
424
  return /*#__PURE__*/React__default["default"].createElement("div", {
425
425
  className: classNames__default["default"]([styles.container, (_ref15 = {}, _defineProperty__default["default"](_ref15, className, className !== null), _defineProperty__default["default"](_ref15, styles["".concat(layout, "Layout")], layout !== null), _defineProperty__default["default"](_ref15, styles.opened, opened || isPreview && screenState !== 'intro'), _defineProperty__default["default"](_ref15, styles.hasSelectedMarker, hasSelectedMarker), _ref15)]),
426
426
  "data-screen-ready": finalReady
427
- }, !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(elementBackground.Background, {
428
- color: {
429
- color: '#FFFFFF',
430
- alpha: 1
431
- },
427
+ }, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
432
428
  width: width,
433
429
  height: height,
434
- resolution: resolution,
435
- playing: backgroundPlaying,
436
- muted: muted,
437
- shouldLoad: backgroundShouldLoad,
438
- mediaRef: mediaRef
439
- }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
440
- width: width,
441
- height: height
430
+ className: styles.content
442
431
  }, isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(components.PlaceholderMap, {
443
432
  className: styles.placeholder,
444
433
  withImages: withMarkerImages
@@ -570,7 +559,21 @@ function MapScreen(_ref) {
570
559
  className: styles.closeButton,
571
560
  onClick: onCloseClick,
572
561
  focusable: current && isView
573
- }, "\xD7") : null)));
562
+ }, "\xD7") : null)), !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(elementBackground.Background, {
563
+ color: {
564
+ color: '#FFFFFF',
565
+ alpha: 1
566
+ },
567
+ width: width,
568
+ height: height,
569
+ resolution: resolution,
570
+ playing: backgroundPlaying,
571
+ muted: muted,
572
+ shouldLoad: backgroundShouldLoad,
573
+ mediaRef: mediaRef,
574
+ withoutVideo: isPreview,
575
+ className: styles.background
576
+ }) : null);
574
577
  }
575
578
 
576
579
  MapScreen.propTypes = propTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-map",
3
- "version": "0.3.251",
3
+ "version": "0.3.262",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,17 +49,17 @@
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-button": "^0.3.251",
55
- "@micromag/element-call-to-action": "^0.3.251",
56
- "@micromag/element-container": "^0.3.251",
57
- "@micromag/element-heading": "^0.3.251",
58
- "@micromag/element-image": "^0.3.251",
59
- "@micromag/element-map": "^0.3.251",
60
- "@micromag/element-scroll": "^0.3.251",
61
- "@micromag/element-text": "^0.3.251",
62
- "@micromag/transforms": "^0.3.251",
52
+ "@micromag/core": "^0.3.262",
53
+ "@micromag/element-background": "^0.3.262",
54
+ "@micromag/element-button": "^0.3.262",
55
+ "@micromag/element-call-to-action": "^0.3.262",
56
+ "@micromag/element-container": "^0.3.262",
57
+ "@micromag/element-heading": "^0.3.262",
58
+ "@micromag/element-image": "^0.3.262",
59
+ "@micromag/element-map": "^0.3.262",
60
+ "@micromag/element-scroll": "^0.3.262",
61
+ "@micromag/element-text": "^0.3.262",
62
+ "@micromag/transforms": "^0.3.262",
63
63
  "classnames": "^2.2.6",
64
64
  "lodash": "^4.17.21",
65
65
  "prop-types": "^15.7.2",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "3b6fb00baaa7f3ab90684a88cbe4c30929b6b27d"
72
+ "gitHead": "2299eaeb150cfdd14b4da321bf9089ab1e6383c2"
73
73
  }