@micromag/screen-contribution 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.
Files changed (3) hide show
  1. package/es/index.js +25 -21
  2. package/lib/index.js +25 -21
  3. package/package.json +13 -13
package/es/index.js CHANGED
@@ -37,6 +37,7 @@ var propTypes = {
37
37
  background: PropTypes$1.backgroundElement,
38
38
  callToAction: PropTypes$1.callToAction,
39
39
  current: PropTypes.bool,
40
+ active: PropTypes.bool,
40
41
  transitions: PropTypes$1.transitions,
41
42
  transitionStagger: PropTypes.number,
42
43
  resizeTransitionDuration: PropTypes.number,
@@ -56,6 +57,7 @@ var defaultProps = {
56
57
  background: null,
57
58
  callToAction: null,
58
59
  current: true,
60
+ active: true,
59
61
  transitions: null,
60
62
  transitionStagger: 100,
61
63
  resizeTransitionDuration: 750,
@@ -78,6 +80,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
78
80
  background = _ref.background,
79
81
  callToAction = _ref.callToAction,
80
82
  current = _ref.current,
83
+ active = _ref.active,
81
84
  transitions = _ref.transitions,
82
85
  transitionStagger = _ref.transitionStagger,
83
86
  resizeTransitionDuration = _ref.resizeTransitionDuration,
@@ -412,7 +415,8 @@ var ContributionScreen = function ContributionScreen(_ref) {
412
415
  background: background,
413
416
  width: width,
414
417
  height: height,
415
- playing: backgroundPlaying
418
+ playing: backgroundPlaying,
419
+ shouldLoad: current || active
416
420
  }) : null, /*#__PURE__*/React.createElement(Container, {
417
421
  width: width,
418
422
  height: height
@@ -445,8 +449,8 @@ var definition = {
445
449
  type: 'screen',
446
450
  group: {
447
451
  label: defineMessage({
448
- "id": "ZqwBOx",
449
- "defaultMessage": [{
452
+ id: "ZqwBOx",
453
+ defaultMessage: [{
450
454
  "type": 0,
451
455
  "value": "Questions"
452
456
  }]
@@ -454,8 +458,8 @@ var definition = {
454
458
  order: 7
455
459
  },
456
460
  title: defineMessage({
457
- "id": "g6b9Lg",
458
- "defaultMessage": [{
461
+ id: "g6b9Lg",
462
+ defaultMessage: [{
459
463
  "type": 0,
460
464
  "value": "Contribution"
461
465
  }]
@@ -467,8 +471,8 @@ var definition = {
467
471
  type: 'screen-layout',
468
472
  defaultValue: 'top',
469
473
  label: defineMessage({
470
- "id": "4iBXj2",
471
- "defaultMessage": [{
474
+ id: "4iBXj2",
475
+ defaultMessage: [{
472
476
  "type": 0,
473
477
  "value": "Layout"
474
478
  }]
@@ -480,8 +484,8 @@ var definition = {
480
484
  textStyle: 'heading2'
481
485
  },
482
486
  label: defineMessage({
483
- "id": "N25iDO",
484
- "defaultMessage": [{
487
+ id: "N25iDO",
488
+ defaultMessage: [{
485
489
  "type": 0,
486
490
  "value": "Title"
487
491
  }]
@@ -493,8 +497,8 @@ var definition = {
493
497
  textStyle: 'text'
494
498
  },
495
499
  label: defineMessage({
496
- "id": "nXVNeg",
497
- "defaultMessage": [{
500
+ id: "nXVNeg",
501
+ defaultMessage: [{
498
502
  "type": 0,
499
503
  "value": "Name"
500
504
  }]
@@ -506,8 +510,8 @@ var definition = {
506
510
  textStyle: 'text'
507
511
  },
508
512
  label: defineMessage({
509
- "id": "RcLsua",
510
- "defaultMessage": [{
513
+ id: "RcLsua",
514
+ defaultMessage: [{
511
515
  "type": 0,
512
516
  "value": "Message"
513
517
  }]
@@ -519,8 +523,8 @@ var definition = {
519
523
  textStyle: 'button'
520
524
  },
521
525
  label: defineMessage({
522
- "id": "uAKPQ9",
523
- "defaultMessage": [{
526
+ id: "uAKPQ9",
527
+ defaultMessage: [{
524
528
  "type": 0,
525
529
  "value": "Submit"
526
530
  }]
@@ -534,8 +538,8 @@ var definition = {
534
538
  }
535
539
  },
536
540
  label: defineMessage({
537
- "id": "SyMSDa",
538
- "defaultMessage": [{
541
+ id: "SyMSDa",
542
+ defaultMessage: [{
539
543
  "type": 0,
540
544
  "value": "Published name style"
541
545
  }]
@@ -549,8 +553,8 @@ var definition = {
549
553
  }
550
554
  },
551
555
  label: defineMessage({
552
- "id": "+SlKOi",
553
- "defaultMessage": [{
556
+ id: "+SlKOi",
557
+ defaultMessage: [{
554
558
  "type": 0,
555
559
  "value": "Published message style"
556
560
  }]
@@ -559,8 +563,8 @@ var definition = {
559
563
  name: 'background',
560
564
  type: 'background',
561
565
  label: defineMessage({
562
- "id": "+MPZRu",
563
- "defaultMessage": [{
566
+ id: "+MPZRu",
567
+ defaultMessage: [{
564
568
  "type": 0,
565
569
  "value": "Background"
566
570
  }]
package/lib/index.js CHANGED
@@ -58,6 +58,7 @@ var propTypes = {
58
58
  background: core.PropTypes.backgroundElement,
59
59
  callToAction: core.PropTypes.callToAction,
60
60
  current: PropTypes__default["default"].bool,
61
+ active: PropTypes__default["default"].bool,
61
62
  transitions: core.PropTypes.transitions,
62
63
  transitionStagger: PropTypes__default["default"].number,
63
64
  resizeTransitionDuration: PropTypes__default["default"].number,
@@ -77,6 +78,7 @@ var defaultProps = {
77
78
  background: null,
78
79
  callToAction: null,
79
80
  current: true,
81
+ active: true,
80
82
  transitions: null,
81
83
  transitionStagger: 100,
82
84
  resizeTransitionDuration: 750,
@@ -99,6 +101,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
99
101
  background = _ref.background,
100
102
  callToAction = _ref.callToAction,
101
103
  current = _ref.current,
104
+ active = _ref.active,
102
105
  transitions = _ref.transitions,
103
106
  transitionStagger = _ref.transitionStagger,
104
107
  resizeTransitionDuration = _ref.resizeTransitionDuration,
@@ -433,7 +436,8 @@ var ContributionScreen = function ContributionScreen(_ref) {
433
436
  background: background,
434
437
  width: width,
435
438
  height: height,
436
- playing: backgroundPlaying
439
+ playing: backgroundPlaying,
440
+ shouldLoad: current || active
437
441
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
438
442
  width: width,
439
443
  height: height
@@ -466,8 +470,8 @@ var definition = {
466
470
  type: 'screen',
467
471
  group: {
468
472
  label: reactIntl.defineMessage({
469
- "id": "ZqwBOx",
470
- "defaultMessage": [{
473
+ id: "ZqwBOx",
474
+ defaultMessage: [{
471
475
  "type": 0,
472
476
  "value": "Questions"
473
477
  }]
@@ -475,8 +479,8 @@ var definition = {
475
479
  order: 7
476
480
  },
477
481
  title: reactIntl.defineMessage({
478
- "id": "g6b9Lg",
479
- "defaultMessage": [{
482
+ id: "g6b9Lg",
483
+ defaultMessage: [{
480
484
  "type": 0,
481
485
  "value": "Contribution"
482
486
  }]
@@ -488,8 +492,8 @@ var definition = {
488
492
  type: 'screen-layout',
489
493
  defaultValue: 'top',
490
494
  label: reactIntl.defineMessage({
491
- "id": "4iBXj2",
492
- "defaultMessage": [{
495
+ id: "4iBXj2",
496
+ defaultMessage: [{
493
497
  "type": 0,
494
498
  "value": "Layout"
495
499
  }]
@@ -501,8 +505,8 @@ var definition = {
501
505
  textStyle: 'heading2'
502
506
  },
503
507
  label: reactIntl.defineMessage({
504
- "id": "N25iDO",
505
- "defaultMessage": [{
508
+ id: "N25iDO",
509
+ defaultMessage: [{
506
510
  "type": 0,
507
511
  "value": "Title"
508
512
  }]
@@ -514,8 +518,8 @@ var definition = {
514
518
  textStyle: 'text'
515
519
  },
516
520
  label: reactIntl.defineMessage({
517
- "id": "nXVNeg",
518
- "defaultMessage": [{
521
+ id: "nXVNeg",
522
+ defaultMessage: [{
519
523
  "type": 0,
520
524
  "value": "Name"
521
525
  }]
@@ -527,8 +531,8 @@ var definition = {
527
531
  textStyle: 'text'
528
532
  },
529
533
  label: reactIntl.defineMessage({
530
- "id": "RcLsua",
531
- "defaultMessage": [{
534
+ id: "RcLsua",
535
+ defaultMessage: [{
532
536
  "type": 0,
533
537
  "value": "Message"
534
538
  }]
@@ -540,8 +544,8 @@ var definition = {
540
544
  textStyle: 'button'
541
545
  },
542
546
  label: reactIntl.defineMessage({
543
- "id": "uAKPQ9",
544
- "defaultMessage": [{
547
+ id: "uAKPQ9",
548
+ defaultMessage: [{
545
549
  "type": 0,
546
550
  "value": "Submit"
547
551
  }]
@@ -555,8 +559,8 @@ var definition = {
555
559
  }
556
560
  },
557
561
  label: reactIntl.defineMessage({
558
- "id": "SyMSDa",
559
- "defaultMessage": [{
562
+ id: "SyMSDa",
563
+ defaultMessage: [{
560
564
  "type": 0,
561
565
  "value": "Published name style"
562
566
  }]
@@ -570,8 +574,8 @@ var definition = {
570
574
  }
571
575
  },
572
576
  label: reactIntl.defineMessage({
573
- "id": "+SlKOi",
574
- "defaultMessage": [{
577
+ id: "+SlKOi",
578
+ defaultMessage: [{
575
579
  "type": 0,
576
580
  "value": "Published message style"
577
581
  }]
@@ -580,8 +584,8 @@ var definition = {
580
584
  name: 'background',
581
585
  type: 'background',
582
586
  label: reactIntl.defineMessage({
583
- "id": "+MPZRu",
584
- "defaultMessage": [{
587
+ id: "+MPZRu",
588
+ defaultMessage: [{
585
589
  "type": 0,
586
590
  "value": "Background"
587
591
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-contribution",
3
- "version": "0.2.401",
3
+ "version": "0.2.406",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -52,17 +52,17 @@
52
52
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
53
53
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
54
54
  "@fortawesome/react-fontawesome": "^0.1.13",
55
- "@micromag/core": "^0.2.401",
56
- "@micromag/data": "^0.2.401",
57
- "@micromag/element-background": "^0.2.401",
58
- "@micromag/element-button": "^0.2.401",
59
- "@micromag/element-call-to-action": "^0.2.401",
60
- "@micromag/element-container": "^0.2.401",
61
- "@micromag/element-heading": "^0.2.401",
62
- "@micromag/element-scroll": "^0.2.401",
63
- "@micromag/element-text": "^0.2.401",
64
- "@micromag/element-text-input": "^0.2.401",
65
- "@micromag/transforms": "^0.2.401",
55
+ "@micromag/core": "^0.2.405",
56
+ "@micromag/data": "^0.2.405",
57
+ "@micromag/element-background": "^0.2.406",
58
+ "@micromag/element-button": "^0.2.405",
59
+ "@micromag/element-call-to-action": "^0.2.405",
60
+ "@micromag/element-container": "^0.2.405",
61
+ "@micromag/element-heading": "^0.2.405",
62
+ "@micromag/element-scroll": "^0.2.405",
63
+ "@micromag/element-text": "^0.2.405",
64
+ "@micromag/element-text-input": "^0.2.405",
65
+ "@micromag/transforms": "^0.2.405",
66
66
  "classnames": "^2.2.6",
67
67
  "lodash": "^4.17.21",
68
68
  "prop-types": "^15.7.2",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "fd03ec6d9decc9e18d6088a36e47c7b1e0e72b4c"
75
+ "gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
76
76
  }