@micromag/screen-urbania-recommendation 0.3.68 → 0.3.73
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 +6 -15
- package/lib/index.js +6 -15
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -75,7 +75,8 @@ var Recommendation = function Recommendation(_ref) {
|
|
|
75
75
|
var _useScreenSize = useScreenSize(),
|
|
76
76
|
width = _useScreenSize.width,
|
|
77
77
|
height = _useScreenSize.height,
|
|
78
|
-
menuOverScreen = _useScreenSize.menuOverScreen
|
|
78
|
+
menuOverScreen = _useScreenSize.menuOverScreen,
|
|
79
|
+
resolution = _useScreenSize.resolution;
|
|
79
80
|
|
|
80
81
|
var _useViewer = useViewer(),
|
|
81
82
|
menuSize = _useViewer.menuSize;
|
|
@@ -244,6 +245,7 @@ var Recommendation = function Recommendation(_ref) {
|
|
|
244
245
|
background: finalBackground,
|
|
245
246
|
width: width,
|
|
246
247
|
height: height,
|
|
248
|
+
resolution: resolution,
|
|
247
249
|
playing: backgroundPlaying,
|
|
248
250
|
shouldLoad: backgroundShouldLoad,
|
|
249
251
|
backgroundClassName: finalAnimateBackground ? styles.background : null
|
|
@@ -298,9 +300,6 @@ var definition = [{
|
|
|
298
300
|
fields: [{
|
|
299
301
|
name: 'category',
|
|
300
302
|
type: 'heading-element',
|
|
301
|
-
theme: {
|
|
302
|
-
textStyle: 'heading1'
|
|
303
|
-
},
|
|
304
303
|
label: defineMessage({
|
|
305
304
|
id: "4grcMU",
|
|
306
305
|
defaultMessage: [{
|
|
@@ -311,9 +310,6 @@ var definition = [{
|
|
|
311
310
|
}, {
|
|
312
311
|
name: 'date',
|
|
313
312
|
type: 'text-element',
|
|
314
|
-
theme: {
|
|
315
|
-
textStyle: 'text'
|
|
316
|
-
},
|
|
317
313
|
label: defineMessage({
|
|
318
314
|
id: "yEG9zh",
|
|
319
315
|
defaultMessage: [{
|
|
@@ -324,9 +320,6 @@ var definition = [{
|
|
|
324
320
|
}, {
|
|
325
321
|
name: 'title',
|
|
326
322
|
type: 'heading-element',
|
|
327
|
-
theme: {
|
|
328
|
-
textStyle: 'heading1'
|
|
329
|
-
},
|
|
330
323
|
label: defineMessage({
|
|
331
324
|
id: "N25iDO",
|
|
332
325
|
defaultMessage: [{
|
|
@@ -337,9 +330,6 @@ var definition = [{
|
|
|
337
330
|
}, {
|
|
338
331
|
name: 'sponsor',
|
|
339
332
|
type: 'text-element',
|
|
340
|
-
theme: {
|
|
341
|
-
textStyle: 'text'
|
|
342
|
-
},
|
|
343
333
|
label: defineMessage({
|
|
344
334
|
id: "WY14Zu",
|
|
345
335
|
defaultMessage: [{
|
|
@@ -375,8 +365,9 @@ var definition = [{
|
|
|
375
365
|
type: 'call-to-action',
|
|
376
366
|
theme: {
|
|
377
367
|
label: {
|
|
378
|
-
textStyle: '
|
|
379
|
-
}
|
|
368
|
+
textStyle: 'cta'
|
|
369
|
+
},
|
|
370
|
+
boxStyle: 'cta'
|
|
380
371
|
}
|
|
381
372
|
}]
|
|
382
373
|
}];
|
package/lib/index.js
CHANGED
|
@@ -95,7 +95,8 @@ var Recommendation = function Recommendation(_ref) {
|
|
|
95
95
|
var _useScreenSize = contexts.useScreenSize(),
|
|
96
96
|
width = _useScreenSize.width,
|
|
97
97
|
height = _useScreenSize.height,
|
|
98
|
-
menuOverScreen = _useScreenSize.menuOverScreen
|
|
98
|
+
menuOverScreen = _useScreenSize.menuOverScreen,
|
|
99
|
+
resolution = _useScreenSize.resolution;
|
|
99
100
|
|
|
100
101
|
var _useViewer = contexts.useViewer(),
|
|
101
102
|
menuSize = _useViewer.menuSize;
|
|
@@ -264,6 +265,7 @@ var Recommendation = function Recommendation(_ref) {
|
|
|
264
265
|
background: finalBackground,
|
|
265
266
|
width: width,
|
|
266
267
|
height: height,
|
|
268
|
+
resolution: resolution,
|
|
267
269
|
playing: backgroundPlaying,
|
|
268
270
|
shouldLoad: backgroundShouldLoad,
|
|
269
271
|
backgroundClassName: finalAnimateBackground ? styles.background : null
|
|
@@ -318,9 +320,6 @@ var definition = [{
|
|
|
318
320
|
fields: [{
|
|
319
321
|
name: 'category',
|
|
320
322
|
type: 'heading-element',
|
|
321
|
-
theme: {
|
|
322
|
-
textStyle: 'heading1'
|
|
323
|
-
},
|
|
324
323
|
label: reactIntl.defineMessage({
|
|
325
324
|
id: "4grcMU",
|
|
326
325
|
defaultMessage: [{
|
|
@@ -331,9 +330,6 @@ var definition = [{
|
|
|
331
330
|
}, {
|
|
332
331
|
name: 'date',
|
|
333
332
|
type: 'text-element',
|
|
334
|
-
theme: {
|
|
335
|
-
textStyle: 'text'
|
|
336
|
-
},
|
|
337
333
|
label: reactIntl.defineMessage({
|
|
338
334
|
id: "yEG9zh",
|
|
339
335
|
defaultMessage: [{
|
|
@@ -344,9 +340,6 @@ var definition = [{
|
|
|
344
340
|
}, {
|
|
345
341
|
name: 'title',
|
|
346
342
|
type: 'heading-element',
|
|
347
|
-
theme: {
|
|
348
|
-
textStyle: 'heading1'
|
|
349
|
-
},
|
|
350
343
|
label: reactIntl.defineMessage({
|
|
351
344
|
id: "N25iDO",
|
|
352
345
|
defaultMessage: [{
|
|
@@ -357,9 +350,6 @@ var definition = [{
|
|
|
357
350
|
}, {
|
|
358
351
|
name: 'sponsor',
|
|
359
352
|
type: 'text-element',
|
|
360
|
-
theme: {
|
|
361
|
-
textStyle: 'text'
|
|
362
|
-
},
|
|
363
353
|
label: reactIntl.defineMessage({
|
|
364
354
|
id: "WY14Zu",
|
|
365
355
|
defaultMessage: [{
|
|
@@ -395,8 +385,9 @@ var definition = [{
|
|
|
395
385
|
type: 'call-to-action',
|
|
396
386
|
theme: {
|
|
397
387
|
label: {
|
|
398
|
-
textStyle: '
|
|
399
|
-
}
|
|
388
|
+
textStyle: 'cta'
|
|
389
|
+
},
|
|
390
|
+
boxStyle: 'cta'
|
|
400
391
|
}
|
|
401
392
|
}]
|
|
402
393
|
}];
|
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.73",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,15 +49,15 @@
|
|
|
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-call-to-action": "^0.3.
|
|
55
|
-
"@micromag/element-container": "^0.3.
|
|
56
|
-
"@micromag/element-heading": "^0.3.
|
|
57
|
-
"@micromag/element-layout": "^0.3.
|
|
58
|
-
"@micromag/element-scroll": "^0.3.
|
|
59
|
-
"@micromag/element-text": "^0.3.
|
|
60
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.73",
|
|
53
|
+
"@micromag/element-background": "^0.3.73",
|
|
54
|
+
"@micromag/element-call-to-action": "^0.3.73",
|
|
55
|
+
"@micromag/element-container": "^0.3.73",
|
|
56
|
+
"@micromag/element-heading": "^0.3.73",
|
|
57
|
+
"@micromag/element-layout": "^0.3.73",
|
|
58
|
+
"@micromag/element-scroll": "^0.3.73",
|
|
59
|
+
"@micromag/element-text": "^0.3.73",
|
|
60
|
+
"@micromag/transforms": "^0.3.73",
|
|
61
61
|
"classnames": "^2.2.6",
|
|
62
62
|
"lodash": "^4.17.21",
|
|
63
63
|
"prop-types": "^15.7.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "88ca59e9f89a4135924ffdca6a3e977047ac03e9"
|
|
71
71
|
}
|