@micromag/screen-quiz 0.4.40 → 0.4.42

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 (2) hide show
  1. package/es/index.js +3 -3
  2. package/package.json +16 -16
package/es/index.js CHANGED
@@ -1584,7 +1584,7 @@ function QuizMultipleScreen(_ref) {
1584
1584
  var bgItem = useMemo(function () {
1585
1585
  return {
1586
1586
  key: backgroundKey,
1587
- background: finalBackground
1587
+ background: finalBackground || null
1588
1588
  };
1589
1589
  }, [backgroundKey, finalBackground]);
1590
1590
  var bgTransitions = useTransition(bgItem, {
@@ -1696,10 +1696,10 @@ function QuizMultipleScreen(_ref) {
1696
1696
  width: width,
1697
1697
  height: height,
1698
1698
  resolution: resolution,
1699
- playing: backgroundPlaying,
1699
+ playing: item.key === bgItem.key && backgroundPlaying,
1700
1700
  muted: muted,
1701
1701
  shouldLoad: backgroundShouldLoad,
1702
- mediaRef: mediaRef,
1702
+ mediaRef: item.key === bgItem.key ? mediaRef : null,
1703
1703
  className: styles$2.background,
1704
1704
  withoutVideo: isPreview
1705
1705
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-quiz",
3
- "version": "0.4.40",
3
+ "version": "0.4.42",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -64,20 +64,20 @@
64
64
  "@fortawesome/fontawesome-svg-core": "^7.2.0",
65
65
  "@fortawesome/free-solid-svg-icons": "^7.2.0",
66
66
  "@fortawesome/react-fontawesome": "^3.2.0",
67
- "@micromag/core": "^0.4.40",
68
- "@micromag/data": "^0.4.40",
69
- "@micromag/element-background": "^0.4.40",
70
- "@micromag/element-button": "^0.4.40",
71
- "@micromag/element-container": "^0.4.40",
72
- "@micromag/element-footer": "^0.4.40",
73
- "@micromag/element-header": "^0.4.40",
74
- "@micromag/element-heading": "^0.4.40",
75
- "@micromag/element-keypad": "^0.4.40",
76
- "@micromag/element-layout": "^0.4.40",
77
- "@micromag/element-scroll": "^0.4.40",
78
- "@micromag/element-text": "^0.4.40",
79
- "@micromag/element-visual": "^0.4.40",
80
- "@micromag/transforms": "^0.4.40",
67
+ "@micromag/core": "^0.4.42",
68
+ "@micromag/data": "^0.4.42",
69
+ "@micromag/element-background": "^0.4.42",
70
+ "@micromag/element-button": "^0.4.42",
71
+ "@micromag/element-container": "^0.4.42",
72
+ "@micromag/element-footer": "^0.4.42",
73
+ "@micromag/element-header": "^0.4.42",
74
+ "@micromag/element-heading": "^0.4.42",
75
+ "@micromag/element-keypad": "^0.4.42",
76
+ "@micromag/element-layout": "^0.4.42",
77
+ "@micromag/element-scroll": "^0.4.42",
78
+ "@micromag/element-text": "^0.4.42",
79
+ "@micromag/element-visual": "^0.4.42",
80
+ "@micromag/transforms": "^0.4.42",
81
81
  "@react-spring/core": "^10.0.3",
82
82
  "@react-spring/web": "^10.0.3",
83
83
  "classnames": "^2.2.6",
@@ -89,6 +89,6 @@
89
89
  "access": "public",
90
90
  "registry": "https://registry.npmjs.org/"
91
91
  },
92
- "gitHead": "6a9ff6e196a972abfd617f49353862cf445b0e83",
92
+ "gitHead": "6fd96aeb9ef1857c731917d8b7cde23d31b39574",
93
93
  "types": "es/index.d.ts"
94
94
  }