@micromag/screen-image 0.3.541 → 0.3.547
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 +10 -15
- package/package.json +13 -14
- package/lib/index.js +0 -929
package/es/index.js
CHANGED
|
@@ -295,40 +295,35 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
295
295
|
};
|
|
296
296
|
ImageScreen.propTypes = propTypes;
|
|
297
297
|
ImageScreen.defaultProps = defaultProps;
|
|
298
|
-
var ImageScreen$1 = ImageScreen;
|
|
299
298
|
|
|
300
299
|
var ImageLegendScreen = function ImageLegendScreen(_ref) {
|
|
301
300
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
302
|
-
return /*#__PURE__*/React.createElement(ImageScreen
|
|
301
|
+
return /*#__PURE__*/React.createElement(ImageScreen, Object.assign({}, props, {
|
|
303
302
|
withLegend: true
|
|
304
303
|
}));
|
|
305
304
|
};
|
|
306
|
-
var ImageLegendScreen$1 = ImageLegendScreen;
|
|
307
305
|
|
|
308
306
|
var ImageTextScreen = function ImageTextScreen(_ref) {
|
|
309
307
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
310
|
-
return /*#__PURE__*/React.createElement(ImageScreen
|
|
308
|
+
return /*#__PURE__*/React.createElement(ImageScreen, Object.assign({}, props, {
|
|
311
309
|
withText: true
|
|
312
310
|
}));
|
|
313
311
|
};
|
|
314
|
-
var ImageTextScreen$1 = ImageTextScreen;
|
|
315
312
|
|
|
316
313
|
var ImageTitleScreen = function ImageTitleScreen(_ref) {
|
|
317
314
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
318
|
-
return /*#__PURE__*/React.createElement(ImageScreen
|
|
315
|
+
return /*#__PURE__*/React.createElement(ImageScreen, Object.assign({}, props, {
|
|
319
316
|
withTitle: true
|
|
320
317
|
}));
|
|
321
318
|
};
|
|
322
|
-
var ImageTitleScreen$1 = ImageTitleScreen;
|
|
323
319
|
|
|
324
320
|
var ImageTitleTextScreen = function ImageTitleTextScreen(_ref) {
|
|
325
321
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
326
|
-
return /*#__PURE__*/React.createElement(ImageScreen
|
|
322
|
+
return /*#__PURE__*/React.createElement(ImageScreen, Object.assign({}, props, {
|
|
327
323
|
withTitle: true,
|
|
328
324
|
withText: true
|
|
329
325
|
}));
|
|
330
326
|
};
|
|
331
|
-
var ImageTitleTextScreen$1 = ImageTitleTextScreen;
|
|
332
327
|
|
|
333
328
|
// import * as transforms from './transforms/index';
|
|
334
329
|
|
|
@@ -352,7 +347,7 @@ var definition = [{
|
|
|
352
347
|
"value": "Image"
|
|
353
348
|
}]
|
|
354
349
|
}),
|
|
355
|
-
component: ImageScreen
|
|
350
|
+
component: ImageScreen,
|
|
356
351
|
layouts: ['normal', 'fullscreen'],
|
|
357
352
|
// transforms,
|
|
358
353
|
fields: [{
|
|
@@ -455,7 +450,7 @@ var definition = [{
|
|
|
455
450
|
"value": "Image with title"
|
|
456
451
|
}]
|
|
457
452
|
}),
|
|
458
|
-
component: ImageTitleScreen
|
|
453
|
+
component: ImageTitleScreen,
|
|
459
454
|
layouts: ['normal', 'reverse', 'card', 'card-reverse'],
|
|
460
455
|
// transforms,
|
|
461
456
|
fields: [{
|
|
@@ -572,7 +567,7 @@ var definition = [{
|
|
|
572
567
|
"value": "Image with text"
|
|
573
568
|
}]
|
|
574
569
|
}),
|
|
575
|
-
component: ImageTextScreen
|
|
570
|
+
component: ImageTextScreen,
|
|
576
571
|
layouts: ['normal', 'reverse', 'card', 'card-reverse'],
|
|
577
572
|
// transforms,
|
|
578
573
|
fields: [{
|
|
@@ -688,7 +683,7 @@ var definition = [{
|
|
|
688
683
|
"value": "Image with title and text"
|
|
689
684
|
}]
|
|
690
685
|
}),
|
|
691
|
-
component: ImageTitleTextScreen
|
|
686
|
+
component: ImageTitleTextScreen,
|
|
692
687
|
layouts: ['normal', 'reverse', 'title-top', 'card', 'card-reverse'],
|
|
693
688
|
// transforms,
|
|
694
689
|
fields: [{
|
|
@@ -819,7 +814,7 @@ var definition = [{
|
|
|
819
814
|
"value": "Image with legend"
|
|
820
815
|
}]
|
|
821
816
|
}),
|
|
822
|
-
component: ImageLegendScreen
|
|
817
|
+
component: ImageLegendScreen,
|
|
823
818
|
layouts: ['normal', 'reverse', 'card', 'card-reverse'],
|
|
824
819
|
// transforms,
|
|
825
820
|
fields: [{
|
|
@@ -917,4 +912,4 @@ var definition = [{
|
|
|
917
912
|
}]
|
|
918
913
|
}];
|
|
919
914
|
|
|
920
|
-
export { ImageLegendScreen
|
|
915
|
+
export { ImageLegendScreen, ImageScreen, ImageTextScreen, ImageTitleScreen, ImageTitleTextScreen, definition as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-image",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.547",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -30,12 +30,11 @@
|
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"license": "ISC",
|
|
33
|
-
"
|
|
33
|
+
"type": "module",
|
|
34
34
|
"module": "es/index.js",
|
|
35
35
|
"style": "assets/css/styles.css",
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|
|
38
|
-
"require": "./lib/index.js",
|
|
39
38
|
"import": "./es/index.js"
|
|
40
39
|
},
|
|
41
40
|
"./assets/css/styles": "./assets/css/styles.css",
|
|
@@ -61,16 +60,16 @@
|
|
|
61
60
|
},
|
|
62
61
|
"dependencies": {
|
|
63
62
|
"@babel/runtime": "^7.13.10",
|
|
64
|
-
"@micromag/core": "^0.3.
|
|
65
|
-
"@micromag/element-background": "^0.3.
|
|
66
|
-
"@micromag/element-container": "^0.3.
|
|
67
|
-
"@micromag/element-footer": "^0.3.
|
|
68
|
-
"@micromag/element-header": "^0.3.
|
|
69
|
-
"@micromag/element-heading": "^0.3.
|
|
70
|
-
"@micromag/element-layout": "^0.3.
|
|
71
|
-
"@micromag/element-text": "^0.3.
|
|
72
|
-
"@micromag/element-visual": "^0.3.
|
|
73
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.547",
|
|
64
|
+
"@micromag/element-background": "^0.3.547",
|
|
65
|
+
"@micromag/element-container": "^0.3.547",
|
|
66
|
+
"@micromag/element-footer": "^0.3.547",
|
|
67
|
+
"@micromag/element-header": "^0.3.547",
|
|
68
|
+
"@micromag/element-heading": "^0.3.547",
|
|
69
|
+
"@micromag/element-layout": "^0.3.547",
|
|
70
|
+
"@micromag/element-text": "^0.3.547",
|
|
71
|
+
"@micromag/element-visual": "^0.3.547",
|
|
72
|
+
"@micromag/transforms": "^0.3.547",
|
|
74
73
|
"classnames": "^2.2.6",
|
|
75
74
|
"lodash": "^4.17.21",
|
|
76
75
|
"prop-types": "^15.7.2",
|
|
@@ -81,5 +80,5 @@
|
|
|
81
80
|
"access": "public",
|
|
82
81
|
"registry": "https://registry.npmjs.org/"
|
|
83
82
|
},
|
|
84
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "3c2f5904ce61fcfa61f673c38c2a5ec56e9e2b07"
|
|
85
84
|
}
|
package/lib/index.js
DELETED
|
@@ -1,929 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var reactIntl = require('react-intl');
|
|
6
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
|
-
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
8
|
-
var classNames = require('classnames');
|
|
9
|
-
var PropTypes = require('prop-types');
|
|
10
|
-
var React = require('react');
|
|
11
|
-
var core = require('@micromag/core');
|
|
12
|
-
var components = require('@micromag/core/components');
|
|
13
|
-
var contexts = require('@micromag/core/contexts');
|
|
14
|
-
var hooks = require('@micromag/core/hooks');
|
|
15
|
-
var utils = require('@micromag/core/utils');
|
|
16
|
-
var Background = require('@micromag/element-background');
|
|
17
|
-
var Container = require('@micromag/element-container');
|
|
18
|
-
var Footer = require('@micromag/element-footer');
|
|
19
|
-
var Header = require('@micromag/element-header');
|
|
20
|
-
var Heading = require('@micromag/element-heading');
|
|
21
|
-
var Layout = require('@micromag/element-layout');
|
|
22
|
-
var Text = require('@micromag/element-text');
|
|
23
|
-
var Visual = require('@micromag/element-visual');
|
|
24
|
-
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
25
|
-
var _extends = require('@babel/runtime/helpers/extends');
|
|
26
|
-
|
|
27
|
-
var styles = {"container":"micromag-screen-image-container","image":"micromag-screen-image-image","background":"micromag-screen-image-background","disabled":"micromag-screen-image-disabled","hidden":"micromag-screen-image-hidden","placeholder":"micromag-screen-image-placeholder","content":"micromag-screen-image-content","emptyImage":"micromag-screen-image-emptyImage","emptyTitle":"micromag-screen-image-emptyTitle","emptyText":"micromag-screen-image-emptyText","emptyLegend":"micromag-screen-image-emptyLegend","imageContainer":"micromag-screen-image-imageContainer","placeholderImage":"micromag-screen-image-placeholderImage","isPlaceholder":"micromag-screen-image-isPlaceholder","layout":"micromag-screen-image-layout","isCard":"micromag-screen-image-isCard","isCardReverse":"micromag-screen-image-isCardReverse","footer":"micromag-screen-image-footer","isFullscreen":"micromag-screen-image-isFullscreen","header":"micromag-screen-image-header"};
|
|
28
|
-
|
|
29
|
-
// NOTE: should this be a scrolling element ?
|
|
30
|
-
|
|
31
|
-
var propTypes = {
|
|
32
|
-
layout: PropTypes.oneOf(['normal', 'fullscreen', 'reverse', 'card', 'card-reverse', 'title-top']),
|
|
33
|
-
image: core.PropTypes.imageMedia,
|
|
34
|
-
imageFit: PropTypes.oneOf(['contain', 'cover']),
|
|
35
|
-
defaultImageFit: PropTypes.string,
|
|
36
|
-
title: core.PropTypes.headingElement,
|
|
37
|
-
text: core.PropTypes.textElement,
|
|
38
|
-
legend: core.PropTypes.textElement,
|
|
39
|
-
withTitle: PropTypes.bool,
|
|
40
|
-
withText: PropTypes.bool,
|
|
41
|
-
withLegend: PropTypes.bool,
|
|
42
|
-
spacing: PropTypes.number,
|
|
43
|
-
background: core.PropTypes.backgroundElement,
|
|
44
|
-
header: core.PropTypes.header,
|
|
45
|
-
footer: core.PropTypes.footer,
|
|
46
|
-
current: PropTypes.bool,
|
|
47
|
-
active: PropTypes.bool,
|
|
48
|
-
className: PropTypes.string
|
|
49
|
-
};
|
|
50
|
-
var defaultProps = {
|
|
51
|
-
layout: 'normal',
|
|
52
|
-
image: null,
|
|
53
|
-
imageFit: null,
|
|
54
|
-
defaultImageFit: 'cover',
|
|
55
|
-
title: null,
|
|
56
|
-
text: null,
|
|
57
|
-
legend: null,
|
|
58
|
-
withTitle: false,
|
|
59
|
-
withText: false,
|
|
60
|
-
withLegend: false,
|
|
61
|
-
spacing: 20,
|
|
62
|
-
background: null,
|
|
63
|
-
header: null,
|
|
64
|
-
footer: null,
|
|
65
|
-
current: true,
|
|
66
|
-
active: true,
|
|
67
|
-
className: null
|
|
68
|
-
};
|
|
69
|
-
var ImageScreen = function ImageScreen(_ref) {
|
|
70
|
-
var layout = _ref.layout,
|
|
71
|
-
image = _ref.image,
|
|
72
|
-
imageFit = _ref.imageFit,
|
|
73
|
-
defaultImageFit = _ref.defaultImageFit,
|
|
74
|
-
title = _ref.title,
|
|
75
|
-
text = _ref.text,
|
|
76
|
-
legend = _ref.legend,
|
|
77
|
-
withTitle = _ref.withTitle,
|
|
78
|
-
withText = _ref.withText,
|
|
79
|
-
withLegend = _ref.withLegend,
|
|
80
|
-
spacing = _ref.spacing,
|
|
81
|
-
background = _ref.background,
|
|
82
|
-
header = _ref.header,
|
|
83
|
-
footer = _ref.footer,
|
|
84
|
-
current = _ref.current,
|
|
85
|
-
active = _ref.active,
|
|
86
|
-
className = _ref.className;
|
|
87
|
-
var _useScreenSize = contexts.useScreenSize(),
|
|
88
|
-
width = _useScreenSize.width,
|
|
89
|
-
height = _useScreenSize.height,
|
|
90
|
-
resolution = _useScreenSize.resolution;
|
|
91
|
-
var _useScreenRenderConte = contexts.useScreenRenderContext(),
|
|
92
|
-
isView = _useScreenRenderConte.isView,
|
|
93
|
-
isPreview = _useScreenRenderConte.isPreview,
|
|
94
|
-
isPlaceholder = _useScreenRenderConte.isPlaceholder,
|
|
95
|
-
isEdit = _useScreenRenderConte.isEdit;
|
|
96
|
-
var _useViewerContext = contexts.useViewerContext(),
|
|
97
|
-
viewerTopHeight = _useViewerContext.topHeight,
|
|
98
|
-
viewerBottomHeight = _useViewerContext.bottomHeight,
|
|
99
|
-
viewerBottomSidesWidth = _useViewerContext.bottomSidesWidth;
|
|
100
|
-
var _useViewerWebView = contexts.useViewerWebView(),
|
|
101
|
-
openWebView = _useViewerWebView.open;
|
|
102
|
-
var _usePlaybackContext = contexts.usePlaybackContext(),
|
|
103
|
-
muted = _usePlaybackContext.muted;
|
|
104
|
-
var mediaRef = contexts.usePlaybackMediaRef(current);
|
|
105
|
-
var hasHeader = utils.isHeaderFilled(header);
|
|
106
|
-
var hasFooter = utils.isFooterFilled(footer);
|
|
107
|
-
var footerProps = utils.getFooterProps(footer, {
|
|
108
|
-
isView: isView,
|
|
109
|
-
current: current,
|
|
110
|
-
openWebView: openWebView,
|
|
111
|
-
isPreview: isPreview
|
|
112
|
-
});
|
|
113
|
-
var hasImage = image !== null;
|
|
114
|
-
var hasTitle = utils.isTextFilled(title);
|
|
115
|
-
var hasText = utils.isTextFilled(text);
|
|
116
|
-
var hasLegend = utils.isTextFilled(legend);
|
|
117
|
-
var _useState = React.useState(!hasImage),
|
|
118
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
119
|
-
ready = _useState2[0],
|
|
120
|
-
setReady = _useState2[1];
|
|
121
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
122
|
-
var mediaShouldLoad = current || active;
|
|
123
|
-
var onImageLoaded = React.useCallback(function () {
|
|
124
|
-
setReady(true);
|
|
125
|
-
}, [setReady]);
|
|
126
|
-
var finalImageFit = React.useMemo(function () {
|
|
127
|
-
return {
|
|
128
|
-
fit: imageFit || defaultImageFit
|
|
129
|
-
};
|
|
130
|
-
}, [imageFit, defaultImageFit]);
|
|
131
|
-
var isReversed = layout === 'reverse' || layout === 'card-reverse';
|
|
132
|
-
var isTitleTop = layout === 'title-top';
|
|
133
|
-
var isCardLayout = layout === 'card' || layout === 'card-reverse';
|
|
134
|
-
var isCard = layout === 'card';
|
|
135
|
-
var isCardReverse = layout === 'card-reverse';
|
|
136
|
-
var isFullscreen = layout === 'fullscreen';
|
|
137
|
-
var finalSpacing = !isFullscreen && !isPlaceholder ? spacing : 0;
|
|
138
|
-
var _useDimensionObserver = hooks.useDimensionObserver(),
|
|
139
|
-
imageCntRef = _useDimensionObserver.ref,
|
|
140
|
-
imageWidth = _useDimensionObserver.width,
|
|
141
|
-
imageHeight = _useDimensionObserver.height;
|
|
142
|
-
var cardImageMargin = isCardReverse ? "".concat(finalSpacing / 2, "px ").concat(-finalSpacing / 2, "px 0") : "0 ".concat(-finalSpacing / 2, "px ").concat(finalSpacing / 2, "px");
|
|
143
|
-
var imageMargin = isCardLayout ? cardImageMargin : finalSpacing / 2;
|
|
144
|
-
var itemMarginStyle = !isPlaceholder ? {
|
|
145
|
-
margin: finalSpacing / 2,
|
|
146
|
-
marginTop: isCardReverse && !hasHeader ? finalSpacing : finalSpacing / 2,
|
|
147
|
-
marginBottom: isCard && !hasHeader ? finalSpacing : finalSpacing / 2
|
|
148
|
-
} : null;
|
|
149
|
-
var items = [/*#__PURE__*/React.createElement("div", {
|
|
150
|
-
key: "image",
|
|
151
|
-
ref: imageCntRef,
|
|
152
|
-
className: styles.imageContainer,
|
|
153
|
-
style: !isPlaceholder ? {
|
|
154
|
-
margin: imageMargin
|
|
155
|
-
} : null
|
|
156
|
-
}, /*#__PURE__*/React.createElement(components.ScreenElement, {
|
|
157
|
-
placeholder: "image",
|
|
158
|
-
placeholderProps: {
|
|
159
|
-
className: styles.placeholderImage,
|
|
160
|
-
height: '100%'
|
|
161
|
-
},
|
|
162
|
-
emptyLabel: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
163
|
-
id: "ebsPd4",
|
|
164
|
-
defaultMessage: [{
|
|
165
|
-
"type": 0,
|
|
166
|
-
"value": "Image"
|
|
167
|
-
}]
|
|
168
|
-
}),
|
|
169
|
-
emptyClassName: styles.emptyImage,
|
|
170
|
-
isEmpty: !hasImage
|
|
171
|
-
}, hasImage ? /*#__PURE__*/React.createElement(Visual, {
|
|
172
|
-
className: styles.image,
|
|
173
|
-
media: image,
|
|
174
|
-
objectFit: finalImageFit,
|
|
175
|
-
width: imageWidth,
|
|
176
|
-
height: imageHeight,
|
|
177
|
-
resolution: resolution,
|
|
178
|
-
playing: backgroundPlaying,
|
|
179
|
-
muted: muted,
|
|
180
|
-
active: active,
|
|
181
|
-
shouldLoad: mediaShouldLoad,
|
|
182
|
-
withoutVideo: isPreview,
|
|
183
|
-
onLoaded: onImageLoaded
|
|
184
|
-
}) : null)), withTitle && /*#__PURE__*/React.createElement(components.ScreenElement, {
|
|
185
|
-
key: "title",
|
|
186
|
-
placeholder: "title",
|
|
187
|
-
emptyLabel: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
188
|
-
id: "2ZOPe+",
|
|
189
|
-
defaultMessage: [{
|
|
190
|
-
"type": 0,
|
|
191
|
-
"value": "Title"
|
|
192
|
-
}]
|
|
193
|
-
}),
|
|
194
|
-
emptyClassName: styles.emptyTitle,
|
|
195
|
-
isEmpty: !hasTitle
|
|
196
|
-
}, hasTitle ? /*#__PURE__*/React.createElement("div", {
|
|
197
|
-
style: itemMarginStyle
|
|
198
|
-
}, /*#__PURE__*/React.createElement(Heading, title)) : null), withText && /*#__PURE__*/React.createElement(components.ScreenElement, {
|
|
199
|
-
key: "text",
|
|
200
|
-
placeholder: "text",
|
|
201
|
-
emptyLabel: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
202
|
-
id: "z4CiV1",
|
|
203
|
-
defaultMessage: [{
|
|
204
|
-
"type": 0,
|
|
205
|
-
"value": "Text"
|
|
206
|
-
}]
|
|
207
|
-
}),
|
|
208
|
-
emptyClassName: styles.emptyText,
|
|
209
|
-
isEmpty: !hasText
|
|
210
|
-
}, hasText ? /*#__PURE__*/React.createElement("div", {
|
|
211
|
-
style: itemMarginStyle
|
|
212
|
-
}, /*#__PURE__*/React.createElement(Text, text)) : null), withLegend && /*#__PURE__*/React.createElement(components.ScreenElement, {
|
|
213
|
-
key: "legend",
|
|
214
|
-
placeholder: "shortText",
|
|
215
|
-
emptyLabel: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
216
|
-
id: "dqnkQk",
|
|
217
|
-
defaultMessage: [{
|
|
218
|
-
"type": 0,
|
|
219
|
-
"value": "Legend"
|
|
220
|
-
}]
|
|
221
|
-
}),
|
|
222
|
-
emptyClassName: styles.emptyLegend,
|
|
223
|
-
isEmpty: !hasLegend
|
|
224
|
-
}, hasLegend ? /*#__PURE__*/React.createElement("div", {
|
|
225
|
-
style: itemMarginStyle
|
|
226
|
-
}, /*#__PURE__*/React.createElement(Text, legend)) : null)];
|
|
227
|
-
if (isReversed) {
|
|
228
|
-
items.reverse();
|
|
229
|
-
} else if (isTitleTop) {
|
|
230
|
-
if (withTitle && (hasTitle || isPlaceholder)) {
|
|
231
|
-
items.splice(0, 0, items.splice(1, 1)[0]);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
var paddingBottom = (current && !isPreview ? viewerBottomHeight : 0) + finalSpacing / 2;
|
|
235
|
-
var paddingTop = (!isPreview ? viewerTopHeight : 0) + finalSpacing / 2;
|
|
236
|
-
if (isCardLayout || isFullscreen) {
|
|
237
|
-
paddingTop = 0;
|
|
238
|
-
paddingBottom = 0;
|
|
239
|
-
}
|
|
240
|
-
if (isCardReverse) {
|
|
241
|
-
paddingTop = current && !isPreview ? viewerTopHeight : 0;
|
|
242
|
-
paddingBottom = current && !isPreview ? viewerBottomHeight : 0;
|
|
243
|
-
}
|
|
244
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
245
|
-
className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, className, className !== null), styles.isReversed, isReversed), styles.isPlaceholder, isPlaceholder), styles.isCard, isCard), styles.isCardReverse, isCardReverse), styles.isFullscreen, isFullscreen)]),
|
|
246
|
-
"data-screen-ready": ready
|
|
247
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
248
|
-
width: width,
|
|
249
|
-
height: height,
|
|
250
|
-
className: styles.content
|
|
251
|
-
}, /*#__PURE__*/React.createElement(Layout, {
|
|
252
|
-
className: styles.layout,
|
|
253
|
-
fullscreen: true,
|
|
254
|
-
style: !isPlaceholder ? {
|
|
255
|
-
padding: finalSpacing / 2,
|
|
256
|
-
paddingTop: paddingTop,
|
|
257
|
-
paddingBottom: paddingBottom
|
|
258
|
-
} : null
|
|
259
|
-
}, !isPlaceholder && hasHeader ? /*#__PURE__*/React.createElement("div", {
|
|
260
|
-
className: styles.header,
|
|
261
|
-
style: isFullscreen || isCardReverse ? {
|
|
262
|
-
paddingTop: hasHeader ? spacing / 2 : spacing,
|
|
263
|
-
paddingBottom: hasHeader ? spacing / 2 : spacing,
|
|
264
|
-
paddingLeft: isCardReverse ? spacing / 2 : spacing,
|
|
265
|
-
paddingRight: isCardReverse ? spacing / 2 : spacing,
|
|
266
|
-
transform: !isPreview ? "translate(0, ".concat(viewerTopHeight, "px)") : null
|
|
267
|
-
} : {
|
|
268
|
-
paddingTop: isCardLayout ? spacing / 2 : null,
|
|
269
|
-
paddingBottom: isCardLayout ? spacing : spacing / 2,
|
|
270
|
-
paddingLeft: spacing / 2,
|
|
271
|
-
paddingRight: spacing / 2
|
|
272
|
-
}
|
|
273
|
-
}, /*#__PURE__*/React.createElement(Header, header)) : null, items, !isPlaceholder && hasFooter ? /*#__PURE__*/React.createElement("div", {
|
|
274
|
-
className: styles.footer,
|
|
275
|
-
style: isFullscreen || isCardReverse ? {
|
|
276
|
-
paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
277
|
-
paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
278
|
-
paddingTop: spacing / 2,
|
|
279
|
-
paddingBottom: spacing / 2,
|
|
280
|
-
transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null
|
|
281
|
-
} : {
|
|
282
|
-
paddingLeft: Math.max(viewerBottomSidesWidth - spacing, 0),
|
|
283
|
-
paddingRight: Math.max(viewerBottomSidesWidth - spacing, 0),
|
|
284
|
-
paddingTop: isCardLayout ? spacing / 2 : null,
|
|
285
|
-
paddingBottom: isCardLayout ? spacing / 2 : null
|
|
286
|
-
}
|
|
287
|
-
}, /*#__PURE__*/React.createElement(Footer, footerProps)) : null)), !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
|
|
288
|
-
background: background,
|
|
289
|
-
width: width,
|
|
290
|
-
height: height,
|
|
291
|
-
resolution: resolution,
|
|
292
|
-
playing: backgroundPlaying,
|
|
293
|
-
muted: muted,
|
|
294
|
-
shouldLoad: mediaShouldLoad,
|
|
295
|
-
mediaRef: mediaRef,
|
|
296
|
-
withoutVideo: isPreview,
|
|
297
|
-
className: styles.background
|
|
298
|
-
}) : null);
|
|
299
|
-
};
|
|
300
|
-
ImageScreen.propTypes = propTypes;
|
|
301
|
-
ImageScreen.defaultProps = defaultProps;
|
|
302
|
-
var ImageScreen$1 = ImageScreen;
|
|
303
|
-
|
|
304
|
-
var ImageLegendScreen = function ImageLegendScreen(_ref) {
|
|
305
|
-
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
306
|
-
return /*#__PURE__*/React.createElement(ImageScreen$1, Object.assign({}, props, {
|
|
307
|
-
withLegend: true
|
|
308
|
-
}));
|
|
309
|
-
};
|
|
310
|
-
var ImageLegendScreen$1 = ImageLegendScreen;
|
|
311
|
-
|
|
312
|
-
var ImageTextScreen = function ImageTextScreen(_ref) {
|
|
313
|
-
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
314
|
-
return /*#__PURE__*/React.createElement(ImageScreen$1, Object.assign({}, props, {
|
|
315
|
-
withText: true
|
|
316
|
-
}));
|
|
317
|
-
};
|
|
318
|
-
var ImageTextScreen$1 = ImageTextScreen;
|
|
319
|
-
|
|
320
|
-
var ImageTitleScreen = function ImageTitleScreen(_ref) {
|
|
321
|
-
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
322
|
-
return /*#__PURE__*/React.createElement(ImageScreen$1, Object.assign({}, props, {
|
|
323
|
-
withTitle: true
|
|
324
|
-
}));
|
|
325
|
-
};
|
|
326
|
-
var ImageTitleScreen$1 = ImageTitleScreen;
|
|
327
|
-
|
|
328
|
-
var ImageTitleTextScreen = function ImageTitleTextScreen(_ref) {
|
|
329
|
-
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
330
|
-
return /*#__PURE__*/React.createElement(ImageScreen$1, Object.assign({}, props, {
|
|
331
|
-
withTitle: true,
|
|
332
|
-
withText: true
|
|
333
|
-
}));
|
|
334
|
-
};
|
|
335
|
-
var ImageTitleTextScreen$1 = ImageTitleTextScreen;
|
|
336
|
-
|
|
337
|
-
// import * as transforms from './transforms/index';
|
|
338
|
-
|
|
339
|
-
var definition = [{
|
|
340
|
-
id: 'image',
|
|
341
|
-
type: 'screen',
|
|
342
|
-
group: {
|
|
343
|
-
label: reactIntl.defineMessage({
|
|
344
|
-
id: "6mX2ya",
|
|
345
|
-
defaultMessage: [{
|
|
346
|
-
"type": 0,
|
|
347
|
-
"value": "Images"
|
|
348
|
-
}]
|
|
349
|
-
}),
|
|
350
|
-
order: 4
|
|
351
|
-
},
|
|
352
|
-
title: reactIntl.defineMessage({
|
|
353
|
-
id: "uJ9eBc",
|
|
354
|
-
defaultMessage: [{
|
|
355
|
-
"type": 0,
|
|
356
|
-
"value": "Image"
|
|
357
|
-
}]
|
|
358
|
-
}),
|
|
359
|
-
component: ImageScreen$1,
|
|
360
|
-
layouts: ['normal', 'fullscreen'],
|
|
361
|
-
// transforms,
|
|
362
|
-
fields: [{
|
|
363
|
-
name: 'layout',
|
|
364
|
-
type: 'screen-layout',
|
|
365
|
-
defaultValue: 'normal',
|
|
366
|
-
label: reactIntl.defineMessage({
|
|
367
|
-
id: "4iBXj2",
|
|
368
|
-
defaultMessage: [{
|
|
369
|
-
"type": 0,
|
|
370
|
-
"value": "Layout"
|
|
371
|
-
}]
|
|
372
|
-
})
|
|
373
|
-
}, {
|
|
374
|
-
name: 'image',
|
|
375
|
-
type: 'visual',
|
|
376
|
-
label: reactIntl.defineMessage({
|
|
377
|
-
id: "xsipID",
|
|
378
|
-
defaultMessage: [{
|
|
379
|
-
"type": 0,
|
|
380
|
-
"value": "Image"
|
|
381
|
-
}]
|
|
382
|
-
})
|
|
383
|
-
}, {
|
|
384
|
-
name: 'imageFit',
|
|
385
|
-
type: 'fit',
|
|
386
|
-
defaultValue: 'cover',
|
|
387
|
-
values: ['cover', 'contain'],
|
|
388
|
-
label: reactIntl.defineMessage({
|
|
389
|
-
id: "dkBBRa",
|
|
390
|
-
defaultMessage: [{
|
|
391
|
-
"type": 0,
|
|
392
|
-
"value": "Image fit"
|
|
393
|
-
}]
|
|
394
|
-
})
|
|
395
|
-
}, {
|
|
396
|
-
name: 'background',
|
|
397
|
-
type: 'background',
|
|
398
|
-
label: reactIntl.defineMessage({
|
|
399
|
-
id: "+MPZRu",
|
|
400
|
-
defaultMessage: [{
|
|
401
|
-
"type": 0,
|
|
402
|
-
"value": "Background"
|
|
403
|
-
}]
|
|
404
|
-
})
|
|
405
|
-
}, {
|
|
406
|
-
name: 'header',
|
|
407
|
-
type: 'header',
|
|
408
|
-
label: reactIntl.defineMessage({
|
|
409
|
-
id: "rhuDxI",
|
|
410
|
-
defaultMessage: [{
|
|
411
|
-
"type": 0,
|
|
412
|
-
"value": "Header"
|
|
413
|
-
}]
|
|
414
|
-
}),
|
|
415
|
-
theme: {
|
|
416
|
-
badge: {
|
|
417
|
-
label: {
|
|
418
|
-
textStyle: 'badge'
|
|
419
|
-
},
|
|
420
|
-
boxStyle: 'badge'
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}, {
|
|
424
|
-
name: 'footer',
|
|
425
|
-
type: 'footer',
|
|
426
|
-
label: reactIntl.defineMessage({
|
|
427
|
-
id: "g4nybp",
|
|
428
|
-
defaultMessage: [{
|
|
429
|
-
"type": 0,
|
|
430
|
-
"value": "Footer"
|
|
431
|
-
}]
|
|
432
|
-
}),
|
|
433
|
-
theme: {
|
|
434
|
-
callToAction: {
|
|
435
|
-
label: {
|
|
436
|
-
textStyle: 'cta'
|
|
437
|
-
},
|
|
438
|
-
boxStyle: 'cta'
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}]
|
|
442
|
-
}, {
|
|
443
|
-
id: 'image-title',
|
|
444
|
-
type: 'screen',
|
|
445
|
-
group: {
|
|
446
|
-
label: reactIntl.defineMessage({
|
|
447
|
-
id: "S/mavZ",
|
|
448
|
-
defaultMessage: [{
|
|
449
|
-
"type": 0,
|
|
450
|
-
"value": "Text and Images"
|
|
451
|
-
}]
|
|
452
|
-
}),
|
|
453
|
-
order: 3
|
|
454
|
-
},
|
|
455
|
-
title: reactIntl.defineMessage({
|
|
456
|
-
id: "AA8TV9",
|
|
457
|
-
defaultMessage: [{
|
|
458
|
-
"type": 0,
|
|
459
|
-
"value": "Image with title"
|
|
460
|
-
}]
|
|
461
|
-
}),
|
|
462
|
-
component: ImageTitleScreen$1,
|
|
463
|
-
layouts: ['normal', 'reverse', 'card', 'card-reverse'],
|
|
464
|
-
// transforms,
|
|
465
|
-
fields: [{
|
|
466
|
-
name: 'layout',
|
|
467
|
-
type: 'screen-layout',
|
|
468
|
-
defaultValue: 'normal',
|
|
469
|
-
label: reactIntl.defineMessage({
|
|
470
|
-
id: "4iBXj2",
|
|
471
|
-
defaultMessage: [{
|
|
472
|
-
"type": 0,
|
|
473
|
-
"value": "Layout"
|
|
474
|
-
}]
|
|
475
|
-
})
|
|
476
|
-
}, {
|
|
477
|
-
name: 'image',
|
|
478
|
-
type: 'visual',
|
|
479
|
-
label: reactIntl.defineMessage({
|
|
480
|
-
id: "xsipID",
|
|
481
|
-
defaultMessage: [{
|
|
482
|
-
"type": 0,
|
|
483
|
-
"value": "Image"
|
|
484
|
-
}]
|
|
485
|
-
})
|
|
486
|
-
}, {
|
|
487
|
-
name: 'imageFit',
|
|
488
|
-
type: 'fit',
|
|
489
|
-
defaultValue: 'cover',
|
|
490
|
-
values: ['cover', 'contain'],
|
|
491
|
-
label: reactIntl.defineMessage({
|
|
492
|
-
id: "dkBBRa",
|
|
493
|
-
defaultMessage: [{
|
|
494
|
-
"type": 0,
|
|
495
|
-
"value": "Image fit"
|
|
496
|
-
}]
|
|
497
|
-
})
|
|
498
|
-
}, {
|
|
499
|
-
name: 'title',
|
|
500
|
-
type: 'heading-element',
|
|
501
|
-
inline: true,
|
|
502
|
-
theme: {
|
|
503
|
-
textStyle: 'heading2'
|
|
504
|
-
},
|
|
505
|
-
label: reactIntl.defineMessage({
|
|
506
|
-
id: "N25iDO",
|
|
507
|
-
defaultMessage: [{
|
|
508
|
-
"type": 0,
|
|
509
|
-
"value": "Title"
|
|
510
|
-
}]
|
|
511
|
-
})
|
|
512
|
-
}, {
|
|
513
|
-
name: 'background',
|
|
514
|
-
type: 'background',
|
|
515
|
-
label: reactIntl.defineMessage({
|
|
516
|
-
id: "+MPZRu",
|
|
517
|
-
defaultMessage: [{
|
|
518
|
-
"type": 0,
|
|
519
|
-
"value": "Background"
|
|
520
|
-
}]
|
|
521
|
-
})
|
|
522
|
-
}, {
|
|
523
|
-
name: 'header',
|
|
524
|
-
type: 'header',
|
|
525
|
-
label: reactIntl.defineMessage({
|
|
526
|
-
id: "rhuDxI",
|
|
527
|
-
defaultMessage: [{
|
|
528
|
-
"type": 0,
|
|
529
|
-
"value": "Header"
|
|
530
|
-
}]
|
|
531
|
-
}),
|
|
532
|
-
theme: {
|
|
533
|
-
badge: {
|
|
534
|
-
label: {
|
|
535
|
-
textStyle: 'badge'
|
|
536
|
-
},
|
|
537
|
-
boxStyle: 'badge'
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}, {
|
|
541
|
-
name: 'footer',
|
|
542
|
-
type: 'footer',
|
|
543
|
-
label: reactIntl.defineMessage({
|
|
544
|
-
id: "g4nybp",
|
|
545
|
-
defaultMessage: [{
|
|
546
|
-
"type": 0,
|
|
547
|
-
"value": "Footer"
|
|
548
|
-
}]
|
|
549
|
-
}),
|
|
550
|
-
theme: {
|
|
551
|
-
callToAction: {
|
|
552
|
-
label: {
|
|
553
|
-
textStyle: 'cta'
|
|
554
|
-
},
|
|
555
|
-
boxStyle: 'cta'
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}]
|
|
559
|
-
}, {
|
|
560
|
-
id: 'image-text',
|
|
561
|
-
type: 'screen',
|
|
562
|
-
group: {
|
|
563
|
-
label: reactIntl.defineMessage({
|
|
564
|
-
id: "S/mavZ",
|
|
565
|
-
defaultMessage: [{
|
|
566
|
-
"type": 0,
|
|
567
|
-
"value": "Text and Images"
|
|
568
|
-
}]
|
|
569
|
-
}),
|
|
570
|
-
order: 3
|
|
571
|
-
},
|
|
572
|
-
title: reactIntl.defineMessage({
|
|
573
|
-
id: "CJmQeh",
|
|
574
|
-
defaultMessage: [{
|
|
575
|
-
"type": 0,
|
|
576
|
-
"value": "Image with text"
|
|
577
|
-
}]
|
|
578
|
-
}),
|
|
579
|
-
component: ImageTextScreen$1,
|
|
580
|
-
layouts: ['normal', 'reverse', 'card', 'card-reverse'],
|
|
581
|
-
// transforms,
|
|
582
|
-
fields: [{
|
|
583
|
-
name: 'layout',
|
|
584
|
-
type: 'screen-layout',
|
|
585
|
-
defaultValue: 'normal',
|
|
586
|
-
label: reactIntl.defineMessage({
|
|
587
|
-
id: "4iBXj2",
|
|
588
|
-
defaultMessage: [{
|
|
589
|
-
"type": 0,
|
|
590
|
-
"value": "Layout"
|
|
591
|
-
}]
|
|
592
|
-
})
|
|
593
|
-
}, {
|
|
594
|
-
name: 'image',
|
|
595
|
-
type: 'visual',
|
|
596
|
-
label: reactIntl.defineMessage({
|
|
597
|
-
id: "xsipID",
|
|
598
|
-
defaultMessage: [{
|
|
599
|
-
"type": 0,
|
|
600
|
-
"value": "Image"
|
|
601
|
-
}]
|
|
602
|
-
})
|
|
603
|
-
}, {
|
|
604
|
-
name: 'imageFit',
|
|
605
|
-
type: 'fit',
|
|
606
|
-
defaultValue: 'cover',
|
|
607
|
-
values: ['cover', 'contain'],
|
|
608
|
-
label: reactIntl.defineMessage({
|
|
609
|
-
id: "dkBBRa",
|
|
610
|
-
defaultMessage: [{
|
|
611
|
-
"type": 0,
|
|
612
|
-
"value": "Image fit"
|
|
613
|
-
}]
|
|
614
|
-
})
|
|
615
|
-
}, {
|
|
616
|
-
name: 'text',
|
|
617
|
-
type: 'text-element',
|
|
618
|
-
theme: {
|
|
619
|
-
textStyle: 'text'
|
|
620
|
-
},
|
|
621
|
-
label: reactIntl.defineMessage({
|
|
622
|
-
id: "4E2gbX",
|
|
623
|
-
defaultMessage: [{
|
|
624
|
-
"type": 0,
|
|
625
|
-
"value": "Text"
|
|
626
|
-
}]
|
|
627
|
-
})
|
|
628
|
-
}, {
|
|
629
|
-
name: 'background',
|
|
630
|
-
type: 'background',
|
|
631
|
-
label: reactIntl.defineMessage({
|
|
632
|
-
id: "+MPZRu",
|
|
633
|
-
defaultMessage: [{
|
|
634
|
-
"type": 0,
|
|
635
|
-
"value": "Background"
|
|
636
|
-
}]
|
|
637
|
-
})
|
|
638
|
-
}, {
|
|
639
|
-
name: 'header',
|
|
640
|
-
type: 'header',
|
|
641
|
-
label: reactIntl.defineMessage({
|
|
642
|
-
id: "rhuDxI",
|
|
643
|
-
defaultMessage: [{
|
|
644
|
-
"type": 0,
|
|
645
|
-
"value": "Header"
|
|
646
|
-
}]
|
|
647
|
-
}),
|
|
648
|
-
theme: {
|
|
649
|
-
badge: {
|
|
650
|
-
label: {
|
|
651
|
-
textStyle: 'badge'
|
|
652
|
-
},
|
|
653
|
-
boxStyle: 'badge'
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}, {
|
|
657
|
-
name: 'footer',
|
|
658
|
-
type: 'footer',
|
|
659
|
-
label: reactIntl.defineMessage({
|
|
660
|
-
id: "g4nybp",
|
|
661
|
-
defaultMessage: [{
|
|
662
|
-
"type": 0,
|
|
663
|
-
"value": "Footer"
|
|
664
|
-
}]
|
|
665
|
-
}),
|
|
666
|
-
theme: {
|
|
667
|
-
callToAction: {
|
|
668
|
-
label: {
|
|
669
|
-
textStyle: 'cta'
|
|
670
|
-
},
|
|
671
|
-
boxStyle: 'cta'
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}]
|
|
675
|
-
}, {
|
|
676
|
-
id: 'image-title-text',
|
|
677
|
-
type: 'screen',
|
|
678
|
-
group: {
|
|
679
|
-
label: reactIntl.defineMessage({
|
|
680
|
-
id: "S/mavZ",
|
|
681
|
-
defaultMessage: [{
|
|
682
|
-
"type": 0,
|
|
683
|
-
"value": "Text and Images"
|
|
684
|
-
}]
|
|
685
|
-
}),
|
|
686
|
-
order: 3
|
|
687
|
-
},
|
|
688
|
-
title: reactIntl.defineMessage({
|
|
689
|
-
id: "eWIM/8",
|
|
690
|
-
defaultMessage: [{
|
|
691
|
-
"type": 0,
|
|
692
|
-
"value": "Image with title and text"
|
|
693
|
-
}]
|
|
694
|
-
}),
|
|
695
|
-
component: ImageTitleTextScreen$1,
|
|
696
|
-
layouts: ['normal', 'reverse', 'title-top', 'card', 'card-reverse'],
|
|
697
|
-
// transforms,
|
|
698
|
-
fields: [{
|
|
699
|
-
name: 'layout',
|
|
700
|
-
type: 'screen-layout',
|
|
701
|
-
defaultValue: 'normal',
|
|
702
|
-
label: reactIntl.defineMessage({
|
|
703
|
-
id: "4iBXj2",
|
|
704
|
-
defaultMessage: [{
|
|
705
|
-
"type": 0,
|
|
706
|
-
"value": "Layout"
|
|
707
|
-
}]
|
|
708
|
-
})
|
|
709
|
-
}, {
|
|
710
|
-
name: 'image',
|
|
711
|
-
type: 'visual',
|
|
712
|
-
isHorizontal: false,
|
|
713
|
-
label: reactIntl.defineMessage({
|
|
714
|
-
id: "xsipID",
|
|
715
|
-
defaultMessage: [{
|
|
716
|
-
"type": 0,
|
|
717
|
-
"value": "Image"
|
|
718
|
-
}]
|
|
719
|
-
})
|
|
720
|
-
}, {
|
|
721
|
-
name: 'imageFit',
|
|
722
|
-
type: 'fit',
|
|
723
|
-
defaultValue: 'cover',
|
|
724
|
-
values: ['cover', 'contain'],
|
|
725
|
-
label: reactIntl.defineMessage({
|
|
726
|
-
id: "dkBBRa",
|
|
727
|
-
defaultMessage: [{
|
|
728
|
-
"type": 0,
|
|
729
|
-
"value": "Image fit"
|
|
730
|
-
}]
|
|
731
|
-
})
|
|
732
|
-
}, {
|
|
733
|
-
name: 'title',
|
|
734
|
-
type: 'text-element',
|
|
735
|
-
inline: true,
|
|
736
|
-
theme: {
|
|
737
|
-
textStyle: 'heading2'
|
|
738
|
-
},
|
|
739
|
-
label: reactIntl.defineMessage({
|
|
740
|
-
id: "N25iDO",
|
|
741
|
-
defaultMessage: [{
|
|
742
|
-
"type": 0,
|
|
743
|
-
"value": "Title"
|
|
744
|
-
}]
|
|
745
|
-
})
|
|
746
|
-
}, {
|
|
747
|
-
name: 'text',
|
|
748
|
-
type: 'text-element',
|
|
749
|
-
theme: {
|
|
750
|
-
textStyle: 'text'
|
|
751
|
-
},
|
|
752
|
-
label: reactIntl.defineMessage({
|
|
753
|
-
id: "4E2gbX",
|
|
754
|
-
defaultMessage: [{
|
|
755
|
-
"type": 0,
|
|
756
|
-
"value": "Text"
|
|
757
|
-
}]
|
|
758
|
-
})
|
|
759
|
-
}, {
|
|
760
|
-
name: 'background',
|
|
761
|
-
type: 'background',
|
|
762
|
-
label: reactIntl.defineMessage({
|
|
763
|
-
id: "+MPZRu",
|
|
764
|
-
defaultMessage: [{
|
|
765
|
-
"type": 0,
|
|
766
|
-
"value": "Background"
|
|
767
|
-
}]
|
|
768
|
-
})
|
|
769
|
-
}, {
|
|
770
|
-
name: 'header',
|
|
771
|
-
type: 'header',
|
|
772
|
-
label: reactIntl.defineMessage({
|
|
773
|
-
id: "rhuDxI",
|
|
774
|
-
defaultMessage: [{
|
|
775
|
-
"type": 0,
|
|
776
|
-
"value": "Header"
|
|
777
|
-
}]
|
|
778
|
-
}),
|
|
779
|
-
theme: {
|
|
780
|
-
badge: {
|
|
781
|
-
label: {
|
|
782
|
-
textStyle: 'badge'
|
|
783
|
-
},
|
|
784
|
-
boxStyle: 'badge'
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}, {
|
|
788
|
-
name: 'footer',
|
|
789
|
-
type: 'footer',
|
|
790
|
-
label: reactIntl.defineMessage({
|
|
791
|
-
id: "g4nybp",
|
|
792
|
-
defaultMessage: [{
|
|
793
|
-
"type": 0,
|
|
794
|
-
"value": "Footer"
|
|
795
|
-
}]
|
|
796
|
-
}),
|
|
797
|
-
theme: {
|
|
798
|
-
callToAction: {
|
|
799
|
-
label: {
|
|
800
|
-
textStyle: 'cta'
|
|
801
|
-
},
|
|
802
|
-
boxStyle: 'cta'
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}]
|
|
806
|
-
}, {
|
|
807
|
-
id: 'image-legend',
|
|
808
|
-
type: 'screen',
|
|
809
|
-
group: {
|
|
810
|
-
label: reactIntl.defineMessage({
|
|
811
|
-
id: "6mX2ya",
|
|
812
|
-
defaultMessage: [{
|
|
813
|
-
"type": 0,
|
|
814
|
-
"value": "Images"
|
|
815
|
-
}]
|
|
816
|
-
}),
|
|
817
|
-
order: 4
|
|
818
|
-
},
|
|
819
|
-
title: reactIntl.defineMessage({
|
|
820
|
-
id: "H1YcaV",
|
|
821
|
-
defaultMessage: [{
|
|
822
|
-
"type": 0,
|
|
823
|
-
"value": "Image with legend"
|
|
824
|
-
}]
|
|
825
|
-
}),
|
|
826
|
-
component: ImageLegendScreen$1,
|
|
827
|
-
layouts: ['normal', 'reverse', 'card', 'card-reverse'],
|
|
828
|
-
// transforms,
|
|
829
|
-
fields: [{
|
|
830
|
-
name: 'layout',
|
|
831
|
-
type: 'screen-layout',
|
|
832
|
-
defaultValue: 'normal',
|
|
833
|
-
label: reactIntl.defineMessage({
|
|
834
|
-
id: "4iBXj2",
|
|
835
|
-
defaultMessage: [{
|
|
836
|
-
"type": 0,
|
|
837
|
-
"value": "Layout"
|
|
838
|
-
}]
|
|
839
|
-
})
|
|
840
|
-
}, {
|
|
841
|
-
name: 'image',
|
|
842
|
-
type: 'visual',
|
|
843
|
-
label: reactIntl.defineMessage({
|
|
844
|
-
id: "xsipID",
|
|
845
|
-
defaultMessage: [{
|
|
846
|
-
"type": 0,
|
|
847
|
-
"value": "Image"
|
|
848
|
-
}]
|
|
849
|
-
})
|
|
850
|
-
}, {
|
|
851
|
-
name: 'imageFit',
|
|
852
|
-
type: 'fit',
|
|
853
|
-
defaultValue: 'cover',
|
|
854
|
-
values: ['cover', 'contain'],
|
|
855
|
-
label: reactIntl.defineMessage({
|
|
856
|
-
id: "dkBBRa",
|
|
857
|
-
defaultMessage: [{
|
|
858
|
-
"type": 0,
|
|
859
|
-
"value": "Image fit"
|
|
860
|
-
}]
|
|
861
|
-
})
|
|
862
|
-
}, {
|
|
863
|
-
name: 'legend',
|
|
864
|
-
type: 'text-element',
|
|
865
|
-
theme: {
|
|
866
|
-
textStyle: 'text'
|
|
867
|
-
},
|
|
868
|
-
label: reactIntl.defineMessage({
|
|
869
|
-
id: "3OS3Ms",
|
|
870
|
-
defaultMessage: [{
|
|
871
|
-
"type": 0,
|
|
872
|
-
"value": "Legend"
|
|
873
|
-
}]
|
|
874
|
-
})
|
|
875
|
-
}, {
|
|
876
|
-
name: 'background',
|
|
877
|
-
type: 'background',
|
|
878
|
-
label: reactIntl.defineMessage({
|
|
879
|
-
id: "+MPZRu",
|
|
880
|
-
defaultMessage: [{
|
|
881
|
-
"type": 0,
|
|
882
|
-
"value": "Background"
|
|
883
|
-
}]
|
|
884
|
-
})
|
|
885
|
-
}, {
|
|
886
|
-
name: 'header',
|
|
887
|
-
type: 'header',
|
|
888
|
-
label: reactIntl.defineMessage({
|
|
889
|
-
id: "rhuDxI",
|
|
890
|
-
defaultMessage: [{
|
|
891
|
-
"type": 0,
|
|
892
|
-
"value": "Header"
|
|
893
|
-
}]
|
|
894
|
-
}),
|
|
895
|
-
theme: {
|
|
896
|
-
badge: {
|
|
897
|
-
label: {
|
|
898
|
-
textStyle: 'badge'
|
|
899
|
-
},
|
|
900
|
-
boxStyle: 'badge'
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
}, {
|
|
904
|
-
name: 'footer',
|
|
905
|
-
type: 'footer',
|
|
906
|
-
label: reactIntl.defineMessage({
|
|
907
|
-
id: "g4nybp",
|
|
908
|
-
defaultMessage: [{
|
|
909
|
-
"type": 0,
|
|
910
|
-
"value": "Footer"
|
|
911
|
-
}]
|
|
912
|
-
}),
|
|
913
|
-
theme: {
|
|
914
|
-
callToAction: {
|
|
915
|
-
label: {
|
|
916
|
-
textStyle: 'cta'
|
|
917
|
-
},
|
|
918
|
-
boxStyle: 'cta'
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
}]
|
|
922
|
-
}];
|
|
923
|
-
|
|
924
|
-
exports.ImageLegendScreen = ImageLegendScreen$1;
|
|
925
|
-
exports.ImageScreen = ImageScreen$1;
|
|
926
|
-
exports.ImageTextScreen = ImageTextScreen$1;
|
|
927
|
-
exports.ImageTitleScreen = ImageTitleScreen$1;
|
|
928
|
-
exports.ImageTitleTextScreen = ImageTitleTextScreen$1;
|
|
929
|
-
exports.default = definition;
|