@micromag/screen-urbania-recommendation 0.3.349 → 0.3.356
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 +53 -35
- package/lib/index.js +54 -35
- package/package.json +12 -11
package/es/index.js
CHANGED
|
@@ -9,10 +9,11 @@ import { PropTypes } from '@micromag/core';
|
|
|
9
9
|
import { ScreenElement, PlaceholderTitle, PlaceholderText, TransitionsStagger } from '@micromag/core/components';
|
|
10
10
|
import { useScreenSize, useViewerContext, useViewerWebView, usePlaybackContext, usePlaybackMediaRef, useScreenRenderContext } from '@micromag/core/contexts';
|
|
11
11
|
import { useTrackScreenEvent } from '@micromag/core/hooks';
|
|
12
|
-
import { isTextFilled } from '@micromag/core/utils';
|
|
12
|
+
import { isTextFilled, isHeaderFilled, isFooterFilled, getFooterProps } from '@micromag/core/utils';
|
|
13
13
|
import Background from '@micromag/element-background';
|
|
14
|
-
import CallToAction from '@micromag/element-call-to-action';
|
|
15
14
|
import Container from '@micromag/element-container';
|
|
15
|
+
import Footer from '@micromag/element-footer';
|
|
16
|
+
import Header from '@micromag/element-header';
|
|
16
17
|
import Heading from '@micromag/element-heading';
|
|
17
18
|
import Layout, { Spacer } from '@micromag/element-layout';
|
|
18
19
|
import Scroll from '@micromag/element-scroll';
|
|
@@ -27,8 +28,9 @@ var propTypes = {
|
|
|
27
28
|
sponsor: PropTypes.textElement,
|
|
28
29
|
description: PropTypes.textElement,
|
|
29
30
|
spacing: PropTypes$1.number,
|
|
31
|
+
header: PropTypes.header,
|
|
32
|
+
footer: PropTypes.footer,
|
|
30
33
|
background: PropTypes.backgroundElement,
|
|
31
|
-
callToAction: PropTypes.callToAction,
|
|
32
34
|
current: PropTypes$1.bool,
|
|
33
35
|
active: PropTypes$1.bool,
|
|
34
36
|
animateBackground: PropTypes$1.bool,
|
|
@@ -43,8 +45,9 @@ var defaultProps = {
|
|
|
43
45
|
sponsor: null,
|
|
44
46
|
description: null,
|
|
45
47
|
spacing: 20,
|
|
48
|
+
header: null,
|
|
49
|
+
footer: null,
|
|
46
50
|
background: null,
|
|
47
|
-
callToAction: null,
|
|
48
51
|
current: true,
|
|
49
52
|
active: true,
|
|
50
53
|
animateBackground: true,
|
|
@@ -53,15 +56,16 @@ var defaultProps = {
|
|
|
53
56
|
className: null
|
|
54
57
|
};
|
|
55
58
|
var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
56
|
-
var _ref4, _ref5,
|
|
59
|
+
var _ref3, _ref4, _ref5, _ref7, _ref11;
|
|
57
60
|
var category = _ref.category,
|
|
58
61
|
date = _ref.date,
|
|
59
62
|
title = _ref.title,
|
|
60
63
|
sponsor = _ref.sponsor,
|
|
61
64
|
description = _ref.description,
|
|
62
65
|
spacing = _ref.spacing,
|
|
66
|
+
header = _ref.header,
|
|
67
|
+
footer = _ref.footer,
|
|
63
68
|
background = _ref.background,
|
|
64
|
-
callToAction = _ref.callToAction,
|
|
65
69
|
current = _ref.current,
|
|
66
70
|
active = _ref.active,
|
|
67
71
|
animateBackground = _ref.animateBackground,
|
|
@@ -106,9 +110,14 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
106
110
|
var transitionPlaying = current;
|
|
107
111
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
108
112
|
var scrollingDisabled = !isEdit && transitionDisabled || !current;
|
|
109
|
-
var
|
|
110
|
-
|
|
111
|
-
|
|
113
|
+
var hasHeader = isHeaderFilled(header);
|
|
114
|
+
var hasFooter = isFooterFilled(footer);
|
|
115
|
+
var footerProps = getFooterProps(footer, {
|
|
116
|
+
isView: isView,
|
|
117
|
+
current: current,
|
|
118
|
+
openWebView: openWebView,
|
|
119
|
+
isPreview: isPreview
|
|
120
|
+
});
|
|
112
121
|
var _useState3 = useState(false),
|
|
113
122
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
114
123
|
scrolledBottom = _useState4[0],
|
|
@@ -131,8 +140,8 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
131
140
|
setAnimationStarted(true);
|
|
132
141
|
}
|
|
133
142
|
}, [isView, setAnimationStarted]);
|
|
134
|
-
var onScrolledBottom = useCallback(function (
|
|
135
|
-
var initial =
|
|
143
|
+
var onScrolledBottom = useCallback(function (_ref2) {
|
|
144
|
+
var initial = _ref2.initial;
|
|
136
145
|
if (initial) {
|
|
137
146
|
trackScreenEvent('scroll', 'Screen');
|
|
138
147
|
}
|
|
@@ -151,10 +160,15 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
151
160
|
}, [background]);
|
|
152
161
|
|
|
153
162
|
// Create elements
|
|
154
|
-
var items = [!isPlaceholder ? /*#__PURE__*/React.createElement(
|
|
163
|
+
var items = [!isPlaceholder && hasHeader ? /*#__PURE__*/React.createElement("div", {
|
|
164
|
+
key: "header",
|
|
165
|
+
style: {
|
|
166
|
+
paddingBottom: spacing
|
|
167
|
+
}
|
|
168
|
+
}, /*#__PURE__*/React.createElement(Header, header)) : null, !isPlaceholder ? /*#__PURE__*/React.createElement(Spacer, {
|
|
155
169
|
key: "spacer-cta-top"
|
|
156
170
|
}) : null, hasTextCard || isPlaceholder || isEdit ? /*#__PURE__*/React.createElement(Container, {
|
|
157
|
-
className: classNames([styles.textCard, (
|
|
171
|
+
className: classNames([styles.textCard, (_ref3 = {}, _defineProperty(_ref3, className, className !== null), _defineProperty(_ref3, styles.isPlaceholder, isPlaceholder), _defineProperty(_ref3, styles.appear, finalAnimateBackground), _ref3)])
|
|
158
172
|
}, /*#__PURE__*/React.createElement(ScreenElement, {
|
|
159
173
|
key: "category",
|
|
160
174
|
placeholder: /*#__PURE__*/React.createElement(PlaceholderTitle, {
|
|
@@ -170,9 +184,9 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
170
184
|
emptyClassName: styles.emptyText,
|
|
171
185
|
isEmpty: !hasCategory
|
|
172
186
|
}, hasCategory ? /*#__PURE__*/React.createElement(Heading, Object.assign({
|
|
173
|
-
className: classNames([styles.category, (
|
|
187
|
+
className: classNames([styles.category, (_ref4 = {}, _defineProperty(_ref4, className, className !== null), _defineProperty(_ref4, styles.noBottomBorder, onlyCategory), _ref4)])
|
|
174
188
|
}, category)) : null), hasDate || hasTitle || isPlaceholder ? /*#__PURE__*/React.createElement("div", {
|
|
175
|
-
className: classNames([styles.dateTitleRow, (
|
|
189
|
+
className: classNames([styles.dateTitleRow, (_ref5 = {}, _defineProperty(_ref5, className, className !== null), _defineProperty(_ref5, styles.bottomBorder, hasSponsor || !hasSponsor && hasDescription), _defineProperty(_ref5, styles.isPlaceholder, isPlaceholder), _ref5)])
|
|
176
190
|
}, /*#__PURE__*/React.createElement(ScreenElement, {
|
|
177
191
|
key: "date",
|
|
178
192
|
placeholder: /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
@@ -189,7 +203,7 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
189
203
|
}, hasDate ? /*#__PURE__*/React.createElement("div", {
|
|
190
204
|
className: classNames([styles.dateContainer, _defineProperty({}, className, className !== null)])
|
|
191
205
|
}, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
192
|
-
className: classNames([styles.date, (
|
|
206
|
+
className: classNames([styles.date, (_ref7 = {}, _defineProperty(_ref7, className, className !== null), _defineProperty(_ref7, styles.centerDate, !hasTitle), _ref7)])
|
|
193
207
|
}, date))) : null), /*#__PURE__*/React.createElement(ScreenElement, {
|
|
194
208
|
key: "title",
|
|
195
209
|
placeholder: "title"
|
|
@@ -239,23 +253,19 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
239
253
|
className: styles.description
|
|
240
254
|
}, description)) : null)) : null, !isPlaceholder ? /*#__PURE__*/React.createElement(Spacer, {
|
|
241
255
|
key: "spacer-cta-bottom"
|
|
242
|
-
}) : null, !isPlaceholder &&
|
|
256
|
+
}) : null, !isPlaceholder && hasFooter ? /*#__PURE__*/React.createElement("div", {
|
|
257
|
+
key: "call-to-action",
|
|
243
258
|
className: classNames([styles.callToAction, _defineProperty({}, styles.disabled, !scrolledBottom)]),
|
|
244
259
|
style: {
|
|
245
260
|
paddingTop: spacing,
|
|
246
261
|
paddingLeft: Math.max(0, viewerBottomSidesWidth - spacing),
|
|
247
262
|
paddingRight: Math.max(0, viewerBottomSidesWidth - spacing)
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
}, /*#__PURE__*/React.createElement(CallToAction, Object.assign({}, callToAction, {
|
|
251
|
-
animationDisabled: isPreview,
|
|
252
|
-
focusable: current && isView,
|
|
253
|
-
openWebView: openWebView
|
|
254
|
-
}))) : null].filter(function (el) {
|
|
263
|
+
}
|
|
264
|
+
}, /*#__PURE__*/React.createElement(Footer, footerProps)) : null].filter(function (el) {
|
|
255
265
|
return el !== null;
|
|
256
266
|
});
|
|
257
267
|
return /*#__PURE__*/React.createElement("div", {
|
|
258
|
-
className: classNames([styles.container, (
|
|
268
|
+
className: classNames([styles.container, (_ref11 = {}, _defineProperty(_ref11, className, className !== null), _defineProperty(_ref11, styles.isPlaceholder, isPlaceholder), _ref11)]),
|
|
259
269
|
"data-screen-ready": true
|
|
260
270
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
261
271
|
width: width,
|
|
@@ -379,17 +389,25 @@ var definition = [{
|
|
|
379
389
|
}]
|
|
380
390
|
})
|
|
381
391
|
}, {
|
|
382
|
-
name: '
|
|
383
|
-
type: '
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
392
|
+
name: 'header',
|
|
393
|
+
type: 'header',
|
|
394
|
+
label: defineMessage({
|
|
395
|
+
id: "rhuDxI",
|
|
396
|
+
defaultMessage: [{
|
|
397
|
+
"type": 0,
|
|
398
|
+
"value": "Header"
|
|
399
|
+
}]
|
|
400
|
+
})
|
|
390
401
|
}, {
|
|
391
|
-
name: '
|
|
392
|
-
type: '
|
|
402
|
+
name: 'footer',
|
|
403
|
+
type: 'footer',
|
|
404
|
+
label: defineMessage({
|
|
405
|
+
id: "g4nybp",
|
|
406
|
+
defaultMessage: [{
|
|
407
|
+
"type": 0,
|
|
408
|
+
"value": "Footer"
|
|
409
|
+
}]
|
|
410
|
+
})
|
|
393
411
|
}]
|
|
394
412
|
}];
|
|
395
413
|
|
package/lib/index.js
CHANGED
|
@@ -15,8 +15,9 @@ var contexts = require('@micromag/core/contexts');
|
|
|
15
15
|
var hooks = require('@micromag/core/hooks');
|
|
16
16
|
var utils = require('@micromag/core/utils');
|
|
17
17
|
var Background = require('@micromag/element-background');
|
|
18
|
-
var CallToAction = require('@micromag/element-call-to-action');
|
|
19
18
|
var Container = require('@micromag/element-container');
|
|
19
|
+
var Footer = require('@micromag/element-footer');
|
|
20
|
+
var Header = require('@micromag/element-header');
|
|
20
21
|
var Heading = require('@micromag/element-heading');
|
|
21
22
|
var Layout = require('@micromag/element-layout');
|
|
22
23
|
var Scroll = require('@micromag/element-scroll');
|
|
@@ -31,8 +32,9 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
31
32
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
32
33
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
34
|
var Background__default = /*#__PURE__*/_interopDefaultLegacy(Background);
|
|
34
|
-
var CallToAction__default = /*#__PURE__*/_interopDefaultLegacy(CallToAction);
|
|
35
35
|
var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
|
|
36
|
+
var Footer__default = /*#__PURE__*/_interopDefaultLegacy(Footer);
|
|
37
|
+
var Header__default = /*#__PURE__*/_interopDefaultLegacy(Header);
|
|
36
38
|
var Heading__default = /*#__PURE__*/_interopDefaultLegacy(Heading);
|
|
37
39
|
var Layout__default = /*#__PURE__*/_interopDefaultLegacy(Layout);
|
|
38
40
|
var Scroll__default = /*#__PURE__*/_interopDefaultLegacy(Scroll);
|
|
@@ -47,8 +49,9 @@ var propTypes = {
|
|
|
47
49
|
sponsor: core.PropTypes.textElement,
|
|
48
50
|
description: core.PropTypes.textElement,
|
|
49
51
|
spacing: PropTypes__default["default"].number,
|
|
52
|
+
header: core.PropTypes.header,
|
|
53
|
+
footer: core.PropTypes.footer,
|
|
50
54
|
background: core.PropTypes.backgroundElement,
|
|
51
|
-
callToAction: core.PropTypes.callToAction,
|
|
52
55
|
current: PropTypes__default["default"].bool,
|
|
53
56
|
active: PropTypes__default["default"].bool,
|
|
54
57
|
animateBackground: PropTypes__default["default"].bool,
|
|
@@ -63,8 +66,9 @@ var defaultProps = {
|
|
|
63
66
|
sponsor: null,
|
|
64
67
|
description: null,
|
|
65
68
|
spacing: 20,
|
|
69
|
+
header: null,
|
|
70
|
+
footer: null,
|
|
66
71
|
background: null,
|
|
67
|
-
callToAction: null,
|
|
68
72
|
current: true,
|
|
69
73
|
active: true,
|
|
70
74
|
animateBackground: true,
|
|
@@ -73,15 +77,16 @@ var defaultProps = {
|
|
|
73
77
|
className: null
|
|
74
78
|
};
|
|
75
79
|
var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
76
|
-
var _ref4, _ref5,
|
|
80
|
+
var _ref3, _ref4, _ref5, _ref7, _ref11;
|
|
77
81
|
var category = _ref.category,
|
|
78
82
|
date = _ref.date,
|
|
79
83
|
title = _ref.title,
|
|
80
84
|
sponsor = _ref.sponsor,
|
|
81
85
|
description = _ref.description,
|
|
82
86
|
spacing = _ref.spacing,
|
|
87
|
+
header = _ref.header,
|
|
88
|
+
footer = _ref.footer,
|
|
83
89
|
background = _ref.background,
|
|
84
|
-
callToAction = _ref.callToAction,
|
|
85
90
|
current = _ref.current,
|
|
86
91
|
active = _ref.active,
|
|
87
92
|
animateBackground = _ref.animateBackground,
|
|
@@ -126,9 +131,14 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
126
131
|
var transitionPlaying = current;
|
|
127
132
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
128
133
|
var scrollingDisabled = !isEdit && transitionDisabled || !current;
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
var hasHeader = utils.isHeaderFilled(header);
|
|
135
|
+
var hasFooter = utils.isFooterFilled(footer);
|
|
136
|
+
var footerProps = utils.getFooterProps(footer, {
|
|
137
|
+
isView: isView,
|
|
138
|
+
current: current,
|
|
139
|
+
openWebView: openWebView,
|
|
140
|
+
isPreview: isPreview
|
|
141
|
+
});
|
|
132
142
|
var _useState3 = React.useState(false),
|
|
133
143
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
134
144
|
scrolledBottom = _useState4[0],
|
|
@@ -151,8 +161,8 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
151
161
|
setAnimationStarted(true);
|
|
152
162
|
}
|
|
153
163
|
}, [isView, setAnimationStarted]);
|
|
154
|
-
var onScrolledBottom = React.useCallback(function (
|
|
155
|
-
var initial =
|
|
164
|
+
var onScrolledBottom = React.useCallback(function (_ref2) {
|
|
165
|
+
var initial = _ref2.initial;
|
|
156
166
|
if (initial) {
|
|
157
167
|
trackScreenEvent('scroll', 'Screen');
|
|
158
168
|
}
|
|
@@ -171,10 +181,15 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
171
181
|
}, [background]);
|
|
172
182
|
|
|
173
183
|
// Create elements
|
|
174
|
-
var items = [!isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(
|
|
184
|
+
var items = [!isPlaceholder && hasHeader ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
185
|
+
key: "header",
|
|
186
|
+
style: {
|
|
187
|
+
paddingBottom: spacing
|
|
188
|
+
}
|
|
189
|
+
}, /*#__PURE__*/React__default["default"].createElement(Header__default["default"], header)) : null, !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
|
|
175
190
|
key: "spacer-cta-top"
|
|
176
191
|
}) : null, hasTextCard || isPlaceholder || isEdit ? /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
177
|
-
className: classNames__default["default"]([styles.textCard, (
|
|
192
|
+
className: classNames__default["default"]([styles.textCard, (_ref3 = {}, _defineProperty__default["default"](_ref3, className, className !== null), _defineProperty__default["default"](_ref3, styles.isPlaceholder, isPlaceholder), _defineProperty__default["default"](_ref3, styles.appear, finalAnimateBackground), _ref3)])
|
|
178
193
|
}, /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
|
|
179
194
|
key: "category",
|
|
180
195
|
placeholder: /*#__PURE__*/React__default["default"].createElement(components.PlaceholderTitle, {
|
|
@@ -190,9 +205,9 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
190
205
|
emptyClassName: styles.emptyText,
|
|
191
206
|
isEmpty: !hasCategory
|
|
192
207
|
}, hasCategory ? /*#__PURE__*/React__default["default"].createElement(Heading__default["default"], Object.assign({
|
|
193
|
-
className: classNames__default["default"]([styles.category, (
|
|
208
|
+
className: classNames__default["default"]([styles.category, (_ref4 = {}, _defineProperty__default["default"](_ref4, className, className !== null), _defineProperty__default["default"](_ref4, styles.noBottomBorder, onlyCategory), _ref4)])
|
|
194
209
|
}, category)) : null), hasDate || hasTitle || isPlaceholder ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
195
|
-
className: classNames__default["default"]([styles.dateTitleRow, (
|
|
210
|
+
className: classNames__default["default"]([styles.dateTitleRow, (_ref5 = {}, _defineProperty__default["default"](_ref5, className, className !== null), _defineProperty__default["default"](_ref5, styles.bottomBorder, hasSponsor || !hasSponsor && hasDescription), _defineProperty__default["default"](_ref5, styles.isPlaceholder, isPlaceholder), _ref5)])
|
|
196
211
|
}, /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
|
|
197
212
|
key: "date",
|
|
198
213
|
placeholder: /*#__PURE__*/React__default["default"].createElement(components.PlaceholderText, {
|
|
@@ -209,7 +224,7 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
209
224
|
}, hasDate ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
210
225
|
className: classNames__default["default"]([styles.dateContainer, _defineProperty__default["default"]({}, className, className !== null)])
|
|
211
226
|
}, /*#__PURE__*/React__default["default"].createElement(Text__default["default"], Object.assign({
|
|
212
|
-
className: classNames__default["default"]([styles.date, (
|
|
227
|
+
className: classNames__default["default"]([styles.date, (_ref7 = {}, _defineProperty__default["default"](_ref7, className, className !== null), _defineProperty__default["default"](_ref7, styles.centerDate, !hasTitle), _ref7)])
|
|
213
228
|
}, date))) : null), /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
|
|
214
229
|
key: "title",
|
|
215
230
|
placeholder: "title"
|
|
@@ -259,23 +274,19 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
259
274
|
className: styles.description
|
|
260
275
|
}, description)) : null)) : null, !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
|
|
261
276
|
key: "spacer-cta-bottom"
|
|
262
|
-
}) : null, !isPlaceholder &&
|
|
277
|
+
}) : null, !isPlaceholder && hasFooter ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
278
|
+
key: "call-to-action",
|
|
263
279
|
className: classNames__default["default"]([styles.callToAction, _defineProperty__default["default"]({}, styles.disabled, !scrolledBottom)]),
|
|
264
280
|
style: {
|
|
265
281
|
paddingTop: spacing,
|
|
266
282
|
paddingLeft: Math.max(0, viewerBottomSidesWidth - spacing),
|
|
267
283
|
paddingRight: Math.max(0, viewerBottomSidesWidth - spacing)
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
}, /*#__PURE__*/React__default["default"].createElement(CallToAction__default["default"], Object.assign({}, callToAction, {
|
|
271
|
-
animationDisabled: isPreview,
|
|
272
|
-
focusable: current && isView,
|
|
273
|
-
openWebView: openWebView
|
|
274
|
-
}))) : null].filter(function (el) {
|
|
284
|
+
}
|
|
285
|
+
}, /*#__PURE__*/React__default["default"].createElement(Footer__default["default"], footerProps)) : null].filter(function (el) {
|
|
275
286
|
return el !== null;
|
|
276
287
|
});
|
|
277
288
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
278
|
-
className: classNames__default["default"]([styles.container, (
|
|
289
|
+
className: classNames__default["default"]([styles.container, (_ref11 = {}, _defineProperty__default["default"](_ref11, className, className !== null), _defineProperty__default["default"](_ref11, styles.isPlaceholder, isPlaceholder), _ref11)]),
|
|
279
290
|
"data-screen-ready": true
|
|
280
291
|
}, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
281
292
|
width: width,
|
|
@@ -399,17 +410,25 @@ var definition = [{
|
|
|
399
410
|
}]
|
|
400
411
|
})
|
|
401
412
|
}, {
|
|
402
|
-
name: '
|
|
403
|
-
type: '
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
413
|
+
name: 'header',
|
|
414
|
+
type: 'header',
|
|
415
|
+
label: reactIntl.defineMessage({
|
|
416
|
+
id: "rhuDxI",
|
|
417
|
+
defaultMessage: [{
|
|
418
|
+
"type": 0,
|
|
419
|
+
"value": "Header"
|
|
420
|
+
}]
|
|
421
|
+
})
|
|
410
422
|
}, {
|
|
411
|
-
name: '
|
|
412
|
-
type: '
|
|
423
|
+
name: 'footer',
|
|
424
|
+
type: 'footer',
|
|
425
|
+
label: reactIntl.defineMessage({
|
|
426
|
+
id: "g4nybp",
|
|
427
|
+
defaultMessage: [{
|
|
428
|
+
"type": 0,
|
|
429
|
+
"value": "Footer"
|
|
430
|
+
}]
|
|
431
|
+
})
|
|
413
432
|
}]
|
|
414
433
|
}];
|
|
415
434
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-urbania-recommendation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.356",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,15 +49,16 @@
|
|
|
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-
|
|
55
|
-
"@micromag/element-
|
|
56
|
-
"@micromag/element-
|
|
57
|
-
"@micromag/element-
|
|
58
|
-
"@micromag/element-
|
|
59
|
-
"@micromag/element-
|
|
60
|
-
"@micromag/
|
|
52
|
+
"@micromag/core": "^0.3.354",
|
|
53
|
+
"@micromag/element-background": "^0.3.354",
|
|
54
|
+
"@micromag/element-container": "^0.3.354",
|
|
55
|
+
"@micromag/element-footer": "^0.3.354",
|
|
56
|
+
"@micromag/element-header": "^0.3.356",
|
|
57
|
+
"@micromag/element-heading": "^0.3.354",
|
|
58
|
+
"@micromag/element-layout": "^0.3.354",
|
|
59
|
+
"@micromag/element-scroll": "^0.3.354",
|
|
60
|
+
"@micromag/element-text": "^0.3.354",
|
|
61
|
+
"@micromag/transforms": "^0.3.354",
|
|
61
62
|
"classnames": "^2.2.6",
|
|
62
63
|
"lodash": "^4.17.21",
|
|
63
64
|
"prop-types": "^15.7.2",
|
|
@@ -67,5 +68,5 @@
|
|
|
67
68
|
"publishConfig": {
|
|
68
69
|
"access": "public"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "683c410d9fc568658e5907fb0a8fa470cb04f6eb"
|
|
71
72
|
}
|