@micromag/screen-audio 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 +13 -9
- package/lib/index.js +13 -9
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -29,6 +29,7 @@ var propTypes = {
|
|
|
29
29
|
background: PropTypes$1.backgroundElement,
|
|
30
30
|
callToAction: PropTypes$1.callToAction,
|
|
31
31
|
current: PropTypes.bool,
|
|
32
|
+
active: PropTypes.bool,
|
|
32
33
|
transitions: PropTypes$1.transitions,
|
|
33
34
|
getMediaRef: PropTypes.func,
|
|
34
35
|
className: PropTypes.string
|
|
@@ -40,6 +41,7 @@ var defaultProps = {
|
|
|
40
41
|
background: null,
|
|
41
42
|
callToAction: null,
|
|
42
43
|
current: true,
|
|
44
|
+
active: true,
|
|
43
45
|
transitions: null,
|
|
44
46
|
getMediaRef: null,
|
|
45
47
|
className: null
|
|
@@ -54,6 +56,7 @@ var AudioScreen = function AudioScreen(_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
|
getMediaRef = _ref.getMediaRef,
|
|
59
62
|
className = _ref.className;
|
|
@@ -264,7 +267,8 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
264
267
|
background: background,
|
|
265
268
|
width: width,
|
|
266
269
|
height: height,
|
|
267
|
-
playing: backgroundPlaying
|
|
270
|
+
playing: backgroundPlaying,
|
|
271
|
+
shouldLoad: current || active
|
|
268
272
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
269
273
|
width: width,
|
|
270
274
|
height: height
|
|
@@ -315,8 +319,8 @@ var definition = {
|
|
|
315
319
|
type: 'screen',
|
|
316
320
|
group: {
|
|
317
321
|
label: defineMessage({
|
|
318
|
-
|
|
319
|
-
|
|
322
|
+
id: "+9akmg",
|
|
323
|
+
defaultMessage: [{
|
|
320
324
|
"type": 0,
|
|
321
325
|
"value": "Audio and Video"
|
|
322
326
|
}]
|
|
@@ -324,8 +328,8 @@ var definition = {
|
|
|
324
328
|
order: 5
|
|
325
329
|
},
|
|
326
330
|
title: defineMessage({
|
|
327
|
-
|
|
328
|
-
|
|
331
|
+
id: "bhEaUt",
|
|
332
|
+
defaultMessage: [{
|
|
329
333
|
"type": 0,
|
|
330
334
|
"value": "Audio"
|
|
331
335
|
}]
|
|
@@ -343,8 +347,8 @@ var definition = {
|
|
|
343
347
|
autoPlay: true
|
|
344
348
|
},
|
|
345
349
|
label: defineMessage({
|
|
346
|
-
|
|
347
|
-
|
|
350
|
+
id: "169xnt",
|
|
351
|
+
defaultMessage: [{
|
|
348
352
|
"type": 0,
|
|
349
353
|
"value": "Audio"
|
|
350
354
|
}]
|
|
@@ -353,8 +357,8 @@ var definition = {
|
|
|
353
357
|
name: 'background',
|
|
354
358
|
type: 'background',
|
|
355
359
|
label: defineMessage({
|
|
356
|
-
|
|
357
|
-
|
|
360
|
+
id: "+MPZRu",
|
|
361
|
+
defaultMessage: [{
|
|
358
362
|
"type": 0,
|
|
359
363
|
"value": "Background"
|
|
360
364
|
}]
|
package/lib/index.js
CHANGED
|
@@ -50,6 +50,7 @@ var propTypes = {
|
|
|
50
50
|
background: core.PropTypes.backgroundElement,
|
|
51
51
|
callToAction: core.PropTypes.callToAction,
|
|
52
52
|
current: PropTypes__default["default"].bool,
|
|
53
|
+
active: PropTypes__default["default"].bool,
|
|
53
54
|
transitions: core.PropTypes.transitions,
|
|
54
55
|
getMediaRef: PropTypes__default["default"].func,
|
|
55
56
|
className: PropTypes__default["default"].string
|
|
@@ -61,6 +62,7 @@ var defaultProps = {
|
|
|
61
62
|
background: null,
|
|
62
63
|
callToAction: null,
|
|
63
64
|
current: true,
|
|
65
|
+
active: true,
|
|
64
66
|
transitions: null,
|
|
65
67
|
getMediaRef: null,
|
|
66
68
|
className: null
|
|
@@ -75,6 +77,7 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
75
77
|
background = _ref.background,
|
|
76
78
|
callToAction = _ref.callToAction,
|
|
77
79
|
current = _ref.current,
|
|
80
|
+
active = _ref.active,
|
|
78
81
|
transitions = _ref.transitions,
|
|
79
82
|
getMediaRef = _ref.getMediaRef,
|
|
80
83
|
className = _ref.className;
|
|
@@ -285,7 +288,8 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
285
288
|
background: background,
|
|
286
289
|
width: width,
|
|
287
290
|
height: height,
|
|
288
|
-
playing: backgroundPlaying
|
|
291
|
+
playing: backgroundPlaying,
|
|
292
|
+
shouldLoad: current || active
|
|
289
293
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
290
294
|
width: width,
|
|
291
295
|
height: height
|
|
@@ -336,8 +340,8 @@ var definition = {
|
|
|
336
340
|
type: 'screen',
|
|
337
341
|
group: {
|
|
338
342
|
label: reactIntl.defineMessage({
|
|
339
|
-
|
|
340
|
-
|
|
343
|
+
id: "+9akmg",
|
|
344
|
+
defaultMessage: [{
|
|
341
345
|
"type": 0,
|
|
342
346
|
"value": "Audio and Video"
|
|
343
347
|
}]
|
|
@@ -345,8 +349,8 @@ var definition = {
|
|
|
345
349
|
order: 5
|
|
346
350
|
},
|
|
347
351
|
title: reactIntl.defineMessage({
|
|
348
|
-
|
|
349
|
-
|
|
352
|
+
id: "bhEaUt",
|
|
353
|
+
defaultMessage: [{
|
|
350
354
|
"type": 0,
|
|
351
355
|
"value": "Audio"
|
|
352
356
|
}]
|
|
@@ -364,8 +368,8 @@ var definition = {
|
|
|
364
368
|
autoPlay: true
|
|
365
369
|
},
|
|
366
370
|
label: reactIntl.defineMessage({
|
|
367
|
-
|
|
368
|
-
|
|
371
|
+
id: "169xnt",
|
|
372
|
+
defaultMessage: [{
|
|
369
373
|
"type": 0,
|
|
370
374
|
"value": "Audio"
|
|
371
375
|
}]
|
|
@@ -374,8 +378,8 @@ var definition = {
|
|
|
374
378
|
name: 'background',
|
|
375
379
|
type: 'background',
|
|
376
380
|
label: reactIntl.defineMessage({
|
|
377
|
-
|
|
378
|
-
|
|
381
|
+
id: "+MPZRu",
|
|
382
|
+
defaultMessage: [{
|
|
379
383
|
"type": 0,
|
|
380
384
|
"value": "Background"
|
|
381
385
|
}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-audio",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.406",
|
|
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.2.
|
|
53
|
-
"@micromag/element-audio": "^0.2.
|
|
54
|
-
"@micromag/element-background": "^0.2.
|
|
55
|
-
"@micromag/element-call-to-action": "^0.2.
|
|
56
|
-
"@micromag/element-closed-captions": "^0.2.
|
|
57
|
-
"@micromag/element-container": "^0.2.
|
|
58
|
-
"@micromag/element-layout": "^0.2.
|
|
59
|
-
"@micromag/element-media-controls": "^0.2.
|
|
60
|
-
"@micromag/transforms": "^0.2.
|
|
52
|
+
"@micromag/core": "^0.2.405",
|
|
53
|
+
"@micromag/element-audio": "^0.2.405",
|
|
54
|
+
"@micromag/element-background": "^0.2.406",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.2.405",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.2.405",
|
|
57
|
+
"@micromag/element-container": "^0.2.405",
|
|
58
|
+
"@micromag/element-layout": "^0.2.405",
|
|
59
|
+
"@micromag/element-media-controls": "^0.2.405",
|
|
60
|
+
"@micromag/transforms": "^0.2.405",
|
|
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": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
|
|
71
71
|
}
|