@micromag/screen-quote 0.2.401 → 0.2.406
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 +17 -13
- package/lib/index.js +17 -13
- package/package.json +10 -10
package/es/index.js
CHANGED
|
@@ -27,6 +27,7 @@ var propTypes = {
|
|
|
27
27
|
background: PropTypes$1.backgroundElement,
|
|
28
28
|
callToAction: PropTypes$1.callToAction,
|
|
29
29
|
current: PropTypes.bool,
|
|
30
|
+
active: PropTypes.bool,
|
|
30
31
|
transitions: PropTypes$1.transitions,
|
|
31
32
|
transitionStagger: PropTypes.number,
|
|
32
33
|
className: PropTypes.string
|
|
@@ -39,6 +40,7 @@ var defaultProps = {
|
|
|
39
40
|
background: null,
|
|
40
41
|
callToAction: null,
|
|
41
42
|
current: true,
|
|
43
|
+
active: true,
|
|
42
44
|
transitions: null,
|
|
43
45
|
transitionStagger: 100,
|
|
44
46
|
className: null
|
|
@@ -54,6 +56,7 @@ var QuoteScreen = function QuoteScreen(_ref) {
|
|
|
54
56
|
background = _ref.background,
|
|
55
57
|
callToAction = _ref.callToAction,
|
|
56
58
|
current = _ref.current,
|
|
59
|
+
active = _ref.active,
|
|
57
60
|
transitions = _ref.transitions,
|
|
58
61
|
transitionStagger = _ref.transitionStagger,
|
|
59
62
|
className = _ref.className;
|
|
@@ -139,7 +142,8 @@ var QuoteScreen = function QuoteScreen(_ref) {
|
|
|
139
142
|
background: background,
|
|
140
143
|
width: width,
|
|
141
144
|
height: height,
|
|
142
|
-
playing: backgroundPlaying
|
|
145
|
+
playing: backgroundPlaying,
|
|
146
|
+
shouldLoad: current || active
|
|
143
147
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
144
148
|
width: width,
|
|
145
149
|
height: height
|
|
@@ -196,8 +200,8 @@ var definition = {
|
|
|
196
200
|
type: 'screen',
|
|
197
201
|
group: {
|
|
198
202
|
label: defineMessage({
|
|
199
|
-
|
|
200
|
-
|
|
203
|
+
id: "fIawTr",
|
|
204
|
+
defaultMessage: [{
|
|
201
205
|
"type": 0,
|
|
202
206
|
"value": "Text"
|
|
203
207
|
}]
|
|
@@ -205,8 +209,8 @@ var definition = {
|
|
|
205
209
|
order: 2
|
|
206
210
|
},
|
|
207
211
|
title: defineMessage({
|
|
208
|
-
|
|
209
|
-
|
|
212
|
+
id: "3q9GPv",
|
|
213
|
+
defaultMessage: [{
|
|
210
214
|
"type": 0,
|
|
211
215
|
"value": "Quote"
|
|
212
216
|
}]
|
|
@@ -219,8 +223,8 @@ var definition = {
|
|
|
219
223
|
type: 'screen-layout',
|
|
220
224
|
defaultValue: 'top',
|
|
221
225
|
label: defineMessage({
|
|
222
|
-
|
|
223
|
-
|
|
226
|
+
id: "4iBXj2",
|
|
227
|
+
defaultMessage: [{
|
|
224
228
|
"type": 0,
|
|
225
229
|
"value": "Layout"
|
|
226
230
|
}]
|
|
@@ -233,8 +237,8 @@ var definition = {
|
|
|
233
237
|
textStyle: 'heading2'
|
|
234
238
|
},
|
|
235
239
|
label: defineMessage({
|
|
236
|
-
|
|
237
|
-
|
|
240
|
+
id: "88/Ge8",
|
|
241
|
+
defaultMessage: [{
|
|
238
242
|
"type": 0,
|
|
239
243
|
"value": "Quote"
|
|
240
244
|
}]
|
|
@@ -246,8 +250,8 @@ var definition = {
|
|
|
246
250
|
textStyle: 'text'
|
|
247
251
|
},
|
|
248
252
|
label: defineMessage({
|
|
249
|
-
|
|
250
|
-
|
|
253
|
+
id: "73hxYw",
|
|
254
|
+
defaultMessage: [{
|
|
251
255
|
"type": 0,
|
|
252
256
|
"value": "Author"
|
|
253
257
|
}]
|
|
@@ -256,8 +260,8 @@ var definition = {
|
|
|
256
260
|
name: 'background',
|
|
257
261
|
type: 'background',
|
|
258
262
|
label: defineMessage({
|
|
259
|
-
|
|
260
|
-
|
|
263
|
+
id: "+MPZRu",
|
|
264
|
+
defaultMessage: [{
|
|
261
265
|
"type": 0,
|
|
262
266
|
"value": "Background"
|
|
263
267
|
}]
|
package/lib/index.js
CHANGED
|
@@ -46,6 +46,7 @@ var propTypes = {
|
|
|
46
46
|
background: core.PropTypes.backgroundElement,
|
|
47
47
|
callToAction: core.PropTypes.callToAction,
|
|
48
48
|
current: PropTypes__default["default"].bool,
|
|
49
|
+
active: PropTypes__default["default"].bool,
|
|
49
50
|
transitions: core.PropTypes.transitions,
|
|
50
51
|
transitionStagger: PropTypes__default["default"].number,
|
|
51
52
|
className: PropTypes__default["default"].string
|
|
@@ -58,6 +59,7 @@ var defaultProps = {
|
|
|
58
59
|
background: null,
|
|
59
60
|
callToAction: null,
|
|
60
61
|
current: true,
|
|
62
|
+
active: true,
|
|
61
63
|
transitions: null,
|
|
62
64
|
transitionStagger: 100,
|
|
63
65
|
className: null
|
|
@@ -73,6 +75,7 @@ var QuoteScreen = function QuoteScreen(_ref) {
|
|
|
73
75
|
background = _ref.background,
|
|
74
76
|
callToAction = _ref.callToAction,
|
|
75
77
|
current = _ref.current,
|
|
78
|
+
active = _ref.active,
|
|
76
79
|
transitions = _ref.transitions,
|
|
77
80
|
transitionStagger = _ref.transitionStagger,
|
|
78
81
|
className = _ref.className;
|
|
@@ -158,7 +161,8 @@ var QuoteScreen = function QuoteScreen(_ref) {
|
|
|
158
161
|
background: background,
|
|
159
162
|
width: width,
|
|
160
163
|
height: height,
|
|
161
|
-
playing: backgroundPlaying
|
|
164
|
+
playing: backgroundPlaying,
|
|
165
|
+
shouldLoad: current || active
|
|
162
166
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
163
167
|
width: width,
|
|
164
168
|
height: height
|
|
@@ -215,8 +219,8 @@ var definition = {
|
|
|
215
219
|
type: 'screen',
|
|
216
220
|
group: {
|
|
217
221
|
label: reactIntl.defineMessage({
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
id: "fIawTr",
|
|
223
|
+
defaultMessage: [{
|
|
220
224
|
"type": 0,
|
|
221
225
|
"value": "Text"
|
|
222
226
|
}]
|
|
@@ -224,8 +228,8 @@ var definition = {
|
|
|
224
228
|
order: 2
|
|
225
229
|
},
|
|
226
230
|
title: reactIntl.defineMessage({
|
|
227
|
-
|
|
228
|
-
|
|
231
|
+
id: "3q9GPv",
|
|
232
|
+
defaultMessage: [{
|
|
229
233
|
"type": 0,
|
|
230
234
|
"value": "Quote"
|
|
231
235
|
}]
|
|
@@ -238,8 +242,8 @@ var definition = {
|
|
|
238
242
|
type: 'screen-layout',
|
|
239
243
|
defaultValue: 'top',
|
|
240
244
|
label: reactIntl.defineMessage({
|
|
241
|
-
|
|
242
|
-
|
|
245
|
+
id: "4iBXj2",
|
|
246
|
+
defaultMessage: [{
|
|
243
247
|
"type": 0,
|
|
244
248
|
"value": "Layout"
|
|
245
249
|
}]
|
|
@@ -252,8 +256,8 @@ var definition = {
|
|
|
252
256
|
textStyle: 'heading2'
|
|
253
257
|
},
|
|
254
258
|
label: reactIntl.defineMessage({
|
|
255
|
-
|
|
256
|
-
|
|
259
|
+
id: "88/Ge8",
|
|
260
|
+
defaultMessage: [{
|
|
257
261
|
"type": 0,
|
|
258
262
|
"value": "Quote"
|
|
259
263
|
}]
|
|
@@ -265,8 +269,8 @@ var definition = {
|
|
|
265
269
|
textStyle: 'text'
|
|
266
270
|
},
|
|
267
271
|
label: reactIntl.defineMessage({
|
|
268
|
-
|
|
269
|
-
|
|
272
|
+
id: "73hxYw",
|
|
273
|
+
defaultMessage: [{
|
|
270
274
|
"type": 0,
|
|
271
275
|
"value": "Author"
|
|
272
276
|
}]
|
|
@@ -275,8 +279,8 @@ var definition = {
|
|
|
275
279
|
name: 'background',
|
|
276
280
|
type: 'background',
|
|
277
281
|
label: reactIntl.defineMessage({
|
|
278
|
-
|
|
279
|
-
|
|
282
|
+
id: "+MPZRu",
|
|
283
|
+
defaultMessage: [{
|
|
280
284
|
"type": 0,
|
|
281
285
|
"value": "Background"
|
|
282
286
|
}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quote",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.406",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.2.
|
|
53
|
-
"@micromag/element-background": "^0.2.
|
|
54
|
-
"@micromag/element-call-to-action": "^0.2.
|
|
55
|
-
"@micromag/element-container": "^0.2.
|
|
56
|
-
"@micromag/element-layout": "^0.2.
|
|
57
|
-
"@micromag/element-quote": "^0.2.
|
|
58
|
-
"@micromag/element-text": "^0.2.
|
|
59
|
-
"@micromag/transforms": "^0.2.
|
|
52
|
+
"@micromag/core": "^0.2.405",
|
|
53
|
+
"@micromag/element-background": "^0.2.406",
|
|
54
|
+
"@micromag/element-call-to-action": "^0.2.405",
|
|
55
|
+
"@micromag/element-container": "^0.2.405",
|
|
56
|
+
"@micromag/element-layout": "^0.2.405",
|
|
57
|
+
"@micromag/element-quote": "^0.2.405",
|
|
58
|
+
"@micromag/element-text": "^0.2.405",
|
|
59
|
+
"@micromag/transforms": "^0.2.405",
|
|
60
60
|
"classnames": "^2.2.6",
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"prop-types": "^15.7.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
|
|
70
70
|
}
|