@micromag/screen-urbania-trivia 0.3.614 → 0.3.615

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 +9 -9
  2. package/package.json +11 -11
package/es/index.js CHANGED
@@ -170,25 +170,25 @@ var UrbaniaTrivia = function UrbaniaTrivia(_ref) {
170
170
  var onTimeUpdate = useCallback(function (time) {
171
171
  setCurrentTime(time);
172
172
  }, [setDuration, duration]);
173
- var onProgressStep = useCallback(function (step) {
174
- trackScreenMedia(video, "progress_".concat(Math.round(step * 100, 10), "%"));
175
- }, [trackScreenMedia, video]);
173
+ var onProgressStep = useCallback(function (step, meta) {
174
+ trackScreenMedia(videoMedia, "progress_".concat(Math.round(step * 100, 10), "%"), meta);
175
+ }, [trackScreenMedia, videoMedia]);
176
176
  var onDurationChange = useCallback(function (dur) {
177
177
  setDuration(dur);
178
178
  }, [setDuration]);
179
179
  var onPlay = useCallback(function (_ref3) {
180
180
  var initial = _ref3.initial;
181
- trackScreenMedia(video, initial ? 'play' : 'resume');
182
- }, [trackScreenMedia, video]);
181
+ trackScreenMedia(videoMedia, initial ? 'play' : 'resume');
182
+ }, [trackScreenMedia, videoMedia]);
183
183
  var onPause = useCallback(function (_ref4) {
184
184
  var midway = _ref4.midway;
185
- trackScreenMedia(video, midway ? 'pause' : 'ended');
186
- }, [trackScreenMedia, video]);
185
+ trackScreenMedia(videoMedia, midway ? 'pause' : 'ended');
186
+ }, [trackScreenMedia, videoMedia]);
187
187
  var onSeeked = useCallback(function (time) {
188
188
  if (time > 0) {
189
- trackScreenMedia(video, 'seek');
189
+ trackScreenMedia(videoMedia, 'seek');
190
190
  }
191
- }, [trackScreenMedia, video]);
191
+ }, [trackScreenMedia, videoMedia]);
192
192
  var onEnded = useCallback(function () {
193
193
  if (current && shouldGotoNextScreenOnEnd) {
194
194
  gotoNextScreen();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-urbania-trivia",
3
- "version": "0.3.614",
3
+ "version": "0.3.615",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -62,15 +62,15 @@
62
62
  "dependencies": {
63
63
  "@babel/runtime": "^7.13.10",
64
64
  "@folklore/size": "^0.1.20",
65
- "@micromag/core": "^0.3.614",
66
- "@micromag/element-background": "^0.3.614",
67
- "@micromag/element-call-to-action": "^0.3.614",
68
- "@micromag/element-closed-captions": "^0.3.614",
69
- "@micromag/element-container": "^0.3.614",
70
- "@micromag/element-heading": "^0.3.614",
71
- "@micromag/element-image": "^0.3.614",
72
- "@micromag/element-video": "^0.3.614",
73
- "@micromag/transforms": "^0.3.614",
65
+ "@micromag/core": "^0.3.615",
66
+ "@micromag/element-background": "^0.3.615",
67
+ "@micromag/element-call-to-action": "^0.3.615",
68
+ "@micromag/element-closed-captions": "^0.3.615",
69
+ "@micromag/element-container": "^0.3.615",
70
+ "@micromag/element-heading": "^0.3.615",
71
+ "@micromag/element-image": "^0.3.615",
72
+ "@micromag/element-video": "^0.3.615",
73
+ "@micromag/transforms": "^0.3.615",
74
74
  "classnames": "^2.2.6",
75
75
  "lodash": "^4.17.21",
76
76
  "prop-types": "^15.7.2",
@@ -81,5 +81,5 @@
81
81
  "access": "public",
82
82
  "registry": "https://registry.npmjs.org/"
83
83
  },
84
- "gitHead": "98ba70b785fcd089365cc26eb8ee79ec897016dc"
84
+ "gitHead": "0269f185b25adfc919c7208bbc63e4824012c980"
85
85
  }