@micromag/core 0.3.615 → 0.3.616

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 -3
  2. package/package.json +2 -2
package/es/index.js CHANGED
@@ -2189,9 +2189,13 @@ var Tracking = /*#__PURE__*/function (_BaseTracking) {
2189
2189
  _ref2$type = _ref2.type,
2190
2190
  screenType = _ref2$type === undefined ? null : _ref2$type,
2191
2191
  _ref2$metadata = _ref2.metadata,
2192
- metadata = _ref2$metadata === undefined ? {} : _ref2$metadata;
2193
- var _ref3 = metadata || {},
2194
- screenTitle = _ref3.title;
2192
+ metadata = _ref2$metadata === undefined ? {} : _ref2$metadata,
2193
+ _ref2$parameters = _ref2.parameters,
2194
+ _ref2$parameters2 = _ref2$parameters === undefined ? {} : _ref2$parameters,
2195
+ parametersMetadata = _ref2$parameters2.metadata;
2196
+ var _ref3 = metadata || parametersMetadata || {},
2197
+ screenTitle = _ref3.title,
2198
+ screenDescrition = _ref3.description;
2195
2199
  if (this.screensViewed.indexOf(screenId || screenIndex) === -1) {
2196
2200
  this.screensViewed = [].concat(_toConsumableArray(this.screensViewed), [screenId || screenIndex]);
2197
2201
  }
@@ -2200,7 +2204,9 @@ var Tracking = /*#__PURE__*/function (_BaseTracking) {
2200
2204
  screenId: screenId,
2201
2205
  screenType: screenType,
2202
2206
  screenIndex: screenIndex,
2207
+ screensCount: screensCount,
2203
2208
  screenTitle: screenTitle,
2209
+ screenDescrition: screenDescrition,
2204
2210
  screenProgress: screensCount !== null && screenIndex !== null ? (screenIndex + 1) / screensCount : null,
2205
2211
  screensViewed: this.screensViewed,
2206
2212
  screensViewedProgress: screensCount !== null ? this.screensViewed.length / screensCount : null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.615",
3
+ "version": "0.3.616",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -144,5 +144,5 @@
144
144
  "access": "public",
145
145
  "registry": "https://registry.npmjs.org/"
146
146
  },
147
- "gitHead": "0269f185b25adfc919c7208bbc63e4824012c980"
147
+ "gitHead": "040b32d80d95f2377c284d30eea3673838a89cb2"
148
148
  }