@micromag/viewer 0.3.689 → 0.3.691
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 +4 -2
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -2912,6 +2912,8 @@ var Viewer = function Viewer(_ref) {
|
|
|
2912
2912
|
}, [screenId, screens]);
|
|
2913
2913
|
var currentScreen = screens[screenIndex] || null;
|
|
2914
2914
|
var _ref2 = currentScreen || {},
|
|
2915
|
+
_ref2$id = _ref2.id,
|
|
2916
|
+
currentScreenId = _ref2$id === void 0 ? screenIndex : _ref2$id,
|
|
2915
2917
|
screenParameters = _ref2.parameters;
|
|
2916
2918
|
var _ref3 = screenParameters || {},
|
|
2917
2919
|
screenMetadata = _ref3.metadata;
|
|
@@ -3011,7 +3013,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
3011
3013
|
if (trackingEnabled && currentScreen !== null) {
|
|
3012
3014
|
trackScreenView(currentScreen, screenIndex);
|
|
3013
3015
|
}
|
|
3014
|
-
}, [
|
|
3016
|
+
}, [currentScreenId, trackScreenView, trackingEnabled]);
|
|
3015
3017
|
useEffect(function () {
|
|
3016
3018
|
if (ready && onViewModeChange !== null) {
|
|
3017
3019
|
onViewModeChange({
|
|
@@ -3770,7 +3772,7 @@ var ViewerContainer = function ViewerContainer(_ref) {
|
|
|
3770
3772
|
storyTitle: title,
|
|
3771
3773
|
screensCount: (components || []).length,
|
|
3772
3774
|
organisationSlug: organisationSlug,
|
|
3773
|
-
|
|
3775
|
+
googleAnalyticsIds: uniq(googleAnalyticsIds)
|
|
3774
3776
|
}, trackingVariables);
|
|
3775
3777
|
}, [story, trackingVariables]);
|
|
3776
3778
|
var _ref9 = story || {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.691",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"access": "public",
|
|
93
93
|
"registry": "https://registry.npmjs.org/"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "5b0954c06f68063de3948f60705883662fbfce92"
|
|
96
96
|
}
|