@micromag/screen-conversation 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 +16 -13
- package/lib/index.js +16 -13
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -183,6 +183,7 @@ var propTypes = {
|
|
|
183
183
|
background: PropTypes.backgroundElement,
|
|
184
184
|
callToAction: PropTypes.callToAction,
|
|
185
185
|
current: PropTypes$1.bool,
|
|
186
|
+
active: PropTypes$1.bool,
|
|
186
187
|
type: PropTypes$1.string,
|
|
187
188
|
conversation: PropTypes.conversation,
|
|
188
189
|
transitions: PropTypes.transitions,
|
|
@@ -196,6 +197,7 @@ var defaultProps = {
|
|
|
196
197
|
background: null,
|
|
197
198
|
callToAction: null,
|
|
198
199
|
current: true,
|
|
200
|
+
active: true,
|
|
199
201
|
type: null,
|
|
200
202
|
conversation: null,
|
|
201
203
|
transitions: null,
|
|
@@ -355,7 +357,8 @@ var ConversationScreen = function ConversationScreen(_ref) {
|
|
|
355
357
|
background: background,
|
|
356
358
|
width: width,
|
|
357
359
|
height: height,
|
|
358
|
-
playing: backgroundPlaying
|
|
360
|
+
playing: backgroundPlaying,
|
|
361
|
+
shouldLoad: current || active
|
|
359
362
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
360
363
|
width: width,
|
|
361
364
|
height: height
|
|
@@ -442,8 +445,8 @@ var definition = {
|
|
|
442
445
|
type: 'screen',
|
|
443
446
|
group: {
|
|
444
447
|
label: defineMessage({
|
|
445
|
-
|
|
446
|
-
|
|
448
|
+
id: "fIawTr",
|
|
449
|
+
defaultMessage: [{
|
|
447
450
|
"type": 0,
|
|
448
451
|
"value": "Text"
|
|
449
452
|
}]
|
|
@@ -451,8 +454,8 @@ var definition = {
|
|
|
451
454
|
order: 3
|
|
452
455
|
},
|
|
453
456
|
title: defineMessage({
|
|
454
|
-
|
|
455
|
-
|
|
457
|
+
id: "rBPIgw",
|
|
458
|
+
defaultMessage: [{
|
|
456
459
|
"type": 0,
|
|
457
460
|
"value": "Conversation"
|
|
458
461
|
}]
|
|
@@ -484,8 +487,8 @@ var definition = {
|
|
|
484
487
|
label: 'Sequence'
|
|
485
488
|
}],
|
|
486
489
|
label: defineMessage({
|
|
487
|
-
|
|
488
|
-
|
|
490
|
+
id: "6DV50M",
|
|
491
|
+
defaultMessage: [{
|
|
489
492
|
"type": 0,
|
|
490
493
|
"value": "Timing"
|
|
491
494
|
}]
|
|
@@ -497,8 +500,8 @@ var definition = {
|
|
|
497
500
|
textStyle: 'heading1'
|
|
498
501
|
},
|
|
499
502
|
label: defineMessage({
|
|
500
|
-
|
|
501
|
-
|
|
503
|
+
id: "N25iDO",
|
|
504
|
+
defaultMessage: [{
|
|
502
505
|
"type": 0,
|
|
503
506
|
"value": "Title"
|
|
504
507
|
}]
|
|
@@ -507,8 +510,8 @@ var definition = {
|
|
|
507
510
|
name: 'conversation',
|
|
508
511
|
type: 'conversation',
|
|
509
512
|
label: defineMessage({
|
|
510
|
-
|
|
511
|
-
|
|
513
|
+
id: "8tANs8",
|
|
514
|
+
defaultMessage: [{
|
|
512
515
|
"type": 0,
|
|
513
516
|
"value": "Conversation"
|
|
514
517
|
}]
|
|
@@ -517,8 +520,8 @@ var definition = {
|
|
|
517
520
|
name: 'background',
|
|
518
521
|
type: 'background',
|
|
519
522
|
label: defineMessage({
|
|
520
|
-
|
|
521
|
-
|
|
523
|
+
id: "+MPZRu",
|
|
524
|
+
defaultMessage: [{
|
|
522
525
|
"type": 0,
|
|
523
526
|
"value": "Background"
|
|
524
527
|
}]
|
package/lib/index.js
CHANGED
|
@@ -205,6 +205,7 @@ var propTypes = {
|
|
|
205
205
|
background: core.PropTypes.backgroundElement,
|
|
206
206
|
callToAction: core.PropTypes.callToAction,
|
|
207
207
|
current: PropTypes__default["default"].bool,
|
|
208
|
+
active: PropTypes__default["default"].bool,
|
|
208
209
|
type: PropTypes__default["default"].string,
|
|
209
210
|
conversation: core.PropTypes.conversation,
|
|
210
211
|
transitions: core.PropTypes.transitions,
|
|
@@ -218,6 +219,7 @@ var defaultProps = {
|
|
|
218
219
|
background: null,
|
|
219
220
|
callToAction: null,
|
|
220
221
|
current: true,
|
|
222
|
+
active: true,
|
|
221
223
|
type: null,
|
|
222
224
|
conversation: null,
|
|
223
225
|
transitions: null,
|
|
@@ -377,7 +379,8 @@ var ConversationScreen = function ConversationScreen(_ref) {
|
|
|
377
379
|
background: background,
|
|
378
380
|
width: width,
|
|
379
381
|
height: height,
|
|
380
|
-
playing: backgroundPlaying
|
|
382
|
+
playing: backgroundPlaying,
|
|
383
|
+
shouldLoad: current || active
|
|
381
384
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
382
385
|
width: width,
|
|
383
386
|
height: height
|
|
@@ -464,8 +467,8 @@ var definition = {
|
|
|
464
467
|
type: 'screen',
|
|
465
468
|
group: {
|
|
466
469
|
label: reactIntl.defineMessage({
|
|
467
|
-
|
|
468
|
-
|
|
470
|
+
id: "fIawTr",
|
|
471
|
+
defaultMessage: [{
|
|
469
472
|
"type": 0,
|
|
470
473
|
"value": "Text"
|
|
471
474
|
}]
|
|
@@ -473,8 +476,8 @@ var definition = {
|
|
|
473
476
|
order: 3
|
|
474
477
|
},
|
|
475
478
|
title: reactIntl.defineMessage({
|
|
476
|
-
|
|
477
|
-
|
|
479
|
+
id: "rBPIgw",
|
|
480
|
+
defaultMessage: [{
|
|
478
481
|
"type": 0,
|
|
479
482
|
"value": "Conversation"
|
|
480
483
|
}]
|
|
@@ -506,8 +509,8 @@ var definition = {
|
|
|
506
509
|
label: 'Sequence'
|
|
507
510
|
}],
|
|
508
511
|
label: reactIntl.defineMessage({
|
|
509
|
-
|
|
510
|
-
|
|
512
|
+
id: "6DV50M",
|
|
513
|
+
defaultMessage: [{
|
|
511
514
|
"type": 0,
|
|
512
515
|
"value": "Timing"
|
|
513
516
|
}]
|
|
@@ -519,8 +522,8 @@ var definition = {
|
|
|
519
522
|
textStyle: 'heading1'
|
|
520
523
|
},
|
|
521
524
|
label: reactIntl.defineMessage({
|
|
522
|
-
|
|
523
|
-
|
|
525
|
+
id: "N25iDO",
|
|
526
|
+
defaultMessage: [{
|
|
524
527
|
"type": 0,
|
|
525
528
|
"value": "Title"
|
|
526
529
|
}]
|
|
@@ -529,8 +532,8 @@ var definition = {
|
|
|
529
532
|
name: 'conversation',
|
|
530
533
|
type: 'conversation',
|
|
531
534
|
label: reactIntl.defineMessage({
|
|
532
|
-
|
|
533
|
-
|
|
535
|
+
id: "8tANs8",
|
|
536
|
+
defaultMessage: [{
|
|
534
537
|
"type": 0,
|
|
535
538
|
"value": "Conversation"
|
|
536
539
|
}]
|
|
@@ -539,8 +542,8 @@ var definition = {
|
|
|
539
542
|
name: 'background',
|
|
540
543
|
type: 'background',
|
|
541
544
|
label: reactIntl.defineMessage({
|
|
542
|
-
|
|
543
|
-
|
|
545
|
+
id: "+MPZRu",
|
|
546
|
+
defaultMessage: [{
|
|
544
547
|
"type": 0,
|
|
545
548
|
"value": "Background"
|
|
546
549
|
}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-conversation",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.406",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,16 +49,16 @@
|
|
|
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-heading": "^0.2.
|
|
57
|
-
"@micromag/element-layout": "^0.2.
|
|
58
|
-
"@micromag/element-scroll": "^0.2.
|
|
59
|
-
"@micromag/element-text": "^0.2.
|
|
60
|
-
"@micromag/element-visual": "^0.2.
|
|
61
|
-
"@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-heading": "^0.2.405",
|
|
57
|
+
"@micromag/element-layout": "^0.2.405",
|
|
58
|
+
"@micromag/element-scroll": "^0.2.405",
|
|
59
|
+
"@micromag/element-text": "^0.2.405",
|
|
60
|
+
"@micromag/element-visual": "^0.2.406",
|
|
61
|
+
"@micromag/transforms": "^0.2.405",
|
|
62
62
|
"classnames": "^2.2.6",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
64
|
"prop-types": "^15.7.2",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
|
|
72
72
|
}
|