@micromag/screen-map 0.3.445 → 0.3.452
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 -40
- package/lib/index.js +3 -40
- package/package.json +14 -14
package/es/index.js
CHANGED
|
@@ -20,8 +20,6 @@ import Scroll from '@micromag/element-scroll';
|
|
|
20
20
|
import Text from '@micromag/element-text';
|
|
21
21
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
22
22
|
import _extends from '@babel/runtime/helpers/extends';
|
|
23
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
24
|
-
import { Map as Map$1, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
25
23
|
|
|
26
24
|
var styles = {"container":"micromag-screen-map-container","splash":"micromag-screen-map-splash","markerOverlayScrollable":"micromag-screen-map-markerOverlayScrollable","markerOverlayContainer":"micromag-screen-map-markerOverlayContainer","background":"micromag-screen-map-background","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","title":"micromag-screen-map-title","description":"micromag-screen-map-description","button":"micromag-screen-map-button","emptyTitle":"micromag-screen-map-emptyTitle","emptyDescription":"micromag-screen-map-emptyDescription","emptyButton":"micromag-screen-map-emptyButton","splashButton":"micromag-screen-map-splashButton","closeButton":"micromag-screen-map-closeButton","markerImage":"micromag-screen-map-markerImage","markerTitle":"micromag-screen-map-markerTitle","markerSubtitle":"micromag-screen-map-markerSubtitle","markerDescription":"micromag-screen-map-markerDescription","hasSelectedMarker":"micromag-screen-map-hasSelectedMarker","opened":"micromag-screen-map-opened"};
|
|
27
25
|
|
|
@@ -258,7 +256,6 @@ function MapScreen(_ref) {
|
|
|
258
256
|
});
|
|
259
257
|
};
|
|
260
258
|
}
|
|
261
|
-
|
|
262
259
|
return function () {};
|
|
263
260
|
}, [withMarkerImages, markers]);
|
|
264
261
|
|
|
@@ -507,41 +504,7 @@ var MapImagesScreen = function MapImagesScreen(_ref) {
|
|
|
507
504
|
}));
|
|
508
505
|
};
|
|
509
506
|
|
|
510
|
-
|
|
511
|
-
var markers = _ref.markers;
|
|
512
|
-
var marker = markers.find(function (_ref2) {
|
|
513
|
-
var _ref2$geoPosition = _ref2.geoPosition,
|
|
514
|
-
geoPosition = _ref2$geoPosition === void 0 ? null : _ref2$geoPosition;
|
|
515
|
-
return geoPosition !== null && geoPosition.latitude !== null && geoPosition.longitude !== null;
|
|
516
|
-
});
|
|
517
|
-
var _ref3 = marker || {},
|
|
518
|
-
_ref3$geoPosition = _ref3.geoPosition,
|
|
519
|
-
geoPosition = _ref3$geoPosition === void 0 ? {} : _ref3$geoPosition;
|
|
520
|
-
var _ref4 = geoPosition || {},
|
|
521
|
-
_ref4$lat = _ref4.lat,
|
|
522
|
-
lat = _ref4$lat === void 0 ? null : _ref4$lat,
|
|
523
|
-
_ref4$lng = _ref4.lng,
|
|
524
|
-
lng = _ref4$lng === void 0 ? null : _ref4$lng;
|
|
525
|
-
var _Map = Map$1(newStory, {
|
|
526
|
-
latitude: lat,
|
|
527
|
-
longitude: lng
|
|
528
|
-
}),
|
|
529
|
-
titleStory = _Map.story,
|
|
530
|
-
titleComponent = _Map.component;
|
|
531
|
-
var _Container = Container$1(titleStory, _toConsumableArray(titleComponent ? [titleComponent] : [])),
|
|
532
|
-
containerStory = _Container.story,
|
|
533
|
-
containerComponent = _Container.component;
|
|
534
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
535
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
// eslint-disable-next-line
|
|
540
|
-
|
|
541
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
542
|
-
__proto__: null,
|
|
543
|
-
appleNews: transform
|
|
544
|
-
});
|
|
507
|
+
// import * as transforms from './transforms/index';
|
|
545
508
|
|
|
546
509
|
var definition = [{
|
|
547
510
|
id: 'map',
|
|
@@ -565,7 +528,7 @@ var definition = [{
|
|
|
565
528
|
}),
|
|
566
529
|
component: MapScreen,
|
|
567
530
|
layouts: ['normal'],
|
|
568
|
-
|
|
531
|
+
// transforms,
|
|
569
532
|
states: [{
|
|
570
533
|
id: 'intro',
|
|
571
534
|
label: defineMessage({
|
|
@@ -746,7 +709,7 @@ var definition = [{
|
|
|
746
709
|
}),
|
|
747
710
|
component: MapImagesScreen,
|
|
748
711
|
layouts: ['normal'],
|
|
749
|
-
|
|
712
|
+
// transforms,
|
|
750
713
|
states: [{
|
|
751
714
|
id: 'intro',
|
|
752
715
|
label: defineMessage({
|
package/lib/index.js
CHANGED
|
@@ -24,8 +24,6 @@ var Scroll = require('@micromag/element-scroll');
|
|
|
24
24
|
var Text = require('@micromag/element-text');
|
|
25
25
|
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
26
26
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
27
|
-
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
28
|
-
var appleNews = require('@micromag/transforms/apple-news');
|
|
29
27
|
|
|
30
28
|
var styles = {"container":"micromag-screen-map-container","splash":"micromag-screen-map-splash","markerOverlayScrollable":"micromag-screen-map-markerOverlayScrollable","markerOverlayContainer":"micromag-screen-map-markerOverlayContainer","background":"micromag-screen-map-background","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","title":"micromag-screen-map-title","description":"micromag-screen-map-description","button":"micromag-screen-map-button","emptyTitle":"micromag-screen-map-emptyTitle","emptyDescription":"micromag-screen-map-emptyDescription","emptyButton":"micromag-screen-map-emptyButton","splashButton":"micromag-screen-map-splashButton","closeButton":"micromag-screen-map-closeButton","markerImage":"micromag-screen-map-markerImage","markerTitle":"micromag-screen-map-markerTitle","markerSubtitle":"micromag-screen-map-markerSubtitle","markerDescription":"micromag-screen-map-markerDescription","hasSelectedMarker":"micromag-screen-map-hasSelectedMarker","opened":"micromag-screen-map-opened"};
|
|
31
29
|
|
|
@@ -262,7 +260,6 @@ function MapScreen(_ref) {
|
|
|
262
260
|
});
|
|
263
261
|
};
|
|
264
262
|
}
|
|
265
|
-
|
|
266
263
|
return function () {};
|
|
267
264
|
}, [withMarkerImages, markers]);
|
|
268
265
|
|
|
@@ -511,41 +508,7 @@ var MapImagesScreen = function MapImagesScreen(_ref) {
|
|
|
511
508
|
}));
|
|
512
509
|
};
|
|
513
510
|
|
|
514
|
-
|
|
515
|
-
var markers = _ref.markers;
|
|
516
|
-
var marker = markers.find(function (_ref2) {
|
|
517
|
-
var _ref2$geoPosition = _ref2.geoPosition,
|
|
518
|
-
geoPosition = _ref2$geoPosition === void 0 ? null : _ref2$geoPosition;
|
|
519
|
-
return geoPosition !== null && geoPosition.latitude !== null && geoPosition.longitude !== null;
|
|
520
|
-
});
|
|
521
|
-
var _ref3 = marker || {},
|
|
522
|
-
_ref3$geoPosition = _ref3.geoPosition,
|
|
523
|
-
geoPosition = _ref3$geoPosition === void 0 ? {} : _ref3$geoPosition;
|
|
524
|
-
var _ref4 = geoPosition || {},
|
|
525
|
-
_ref4$lat = _ref4.lat,
|
|
526
|
-
lat = _ref4$lat === void 0 ? null : _ref4$lat,
|
|
527
|
-
_ref4$lng = _ref4.lng,
|
|
528
|
-
lng = _ref4$lng === void 0 ? null : _ref4$lng;
|
|
529
|
-
var _Map = appleNews.Map(newStory, {
|
|
530
|
-
latitude: lat,
|
|
531
|
-
longitude: lng
|
|
532
|
-
}),
|
|
533
|
-
titleStory = _Map.story,
|
|
534
|
-
titleComponent = _Map.component;
|
|
535
|
-
var _Container = appleNews.Container(titleStory, _toConsumableArray(titleComponent ? [titleComponent] : [])),
|
|
536
|
-
containerStory = _Container.story,
|
|
537
|
-
containerComponent = _Container.component;
|
|
538
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
539
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
540
|
-
});
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
// eslint-disable-next-line
|
|
544
|
-
|
|
545
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
546
|
-
__proto__: null,
|
|
547
|
-
appleNews: transform
|
|
548
|
-
});
|
|
511
|
+
// import * as transforms from './transforms/index';
|
|
549
512
|
|
|
550
513
|
var definition = [{
|
|
551
514
|
id: 'map',
|
|
@@ -569,7 +532,7 @@ var definition = [{
|
|
|
569
532
|
}),
|
|
570
533
|
component: MapScreen,
|
|
571
534
|
layouts: ['normal'],
|
|
572
|
-
|
|
535
|
+
// transforms,
|
|
573
536
|
states: [{
|
|
574
537
|
id: 'intro',
|
|
575
538
|
label: reactIntl.defineMessage({
|
|
@@ -750,7 +713,7 @@ var definition = [{
|
|
|
750
713
|
}),
|
|
751
714
|
component: MapImagesScreen,
|
|
752
715
|
layouts: ['normal'],
|
|
753
|
-
|
|
716
|
+
// transforms,
|
|
754
717
|
states: [{
|
|
755
718
|
id: 'intro',
|
|
756
719
|
label: reactIntl.defineMessage({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-map",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.452",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -59,18 +59,18 @@
|
|
|
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-button": "^0.3.
|
|
65
|
-
"@micromag/element-container": "^0.3.
|
|
66
|
-
"@micromag/element-footer": "^0.3.
|
|
67
|
-
"@micromag/element-header": "^0.3.
|
|
68
|
-
"@micromag/element-heading": "^0.3.
|
|
69
|
-
"@micromag/element-image": "^0.3.
|
|
70
|
-
"@micromag/element-map": "^0.3.
|
|
71
|
-
"@micromag/element-scroll": "^0.3.
|
|
72
|
-
"@micromag/element-text": "^0.3.
|
|
73
|
-
"@micromag/transforms": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.452",
|
|
63
|
+
"@micromag/element-background": "^0.3.452",
|
|
64
|
+
"@micromag/element-button": "^0.3.452",
|
|
65
|
+
"@micromag/element-container": "^0.3.452",
|
|
66
|
+
"@micromag/element-footer": "^0.3.452",
|
|
67
|
+
"@micromag/element-header": "^0.3.452",
|
|
68
|
+
"@micromag/element-heading": "^0.3.452",
|
|
69
|
+
"@micromag/element-image": "^0.3.452",
|
|
70
|
+
"@micromag/element-map": "^0.3.452",
|
|
71
|
+
"@micromag/element-scroll": "^0.3.452",
|
|
72
|
+
"@micromag/element-text": "^0.3.452",
|
|
73
|
+
"@micromag/transforms": "^0.3.452",
|
|
74
74
|
"classnames": "^2.2.6",
|
|
75
75
|
"lodash": "^4.17.21",
|
|
76
76
|
"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": "aec551095929a41f43406d0da6e3cfe7f394b92e"
|
|
85
85
|
}
|