@micromag/viewer 0.2.368 → 0.2.373

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 CHANGED
@@ -1522,11 +1522,14 @@ var ViewerContainer = function ViewerContainer(_ref) {
1522
1522
  _story$slug = story.slug,
1523
1523
  slug = _story$slug === void 0 ? null : _story$slug,
1524
1524
  _story$title = story.title,
1525
- title = _story$title === void 0 ? null : _story$title;
1525
+ title = _story$title === void 0 ? null : _story$title,
1526
+ _story$components = story.components,
1527
+ components = _story$components === void 0 ? [] : _story$components;
1526
1528
  return _objectSpread({
1527
1529
  storyId: id,
1528
1530
  storySlug: slug,
1529
- storyTitle: title
1531
+ storyTitle: title,
1532
+ screensCount: (components || []).length
1530
1533
  }, trackingVariables);
1531
1534
  }, [story, trackingVariables]);
1532
1535
 
package/lib/index.js CHANGED
@@ -1539,11 +1539,14 @@ var ViewerContainer = function ViewerContainer(_ref) {
1539
1539
  _story$slug = story.slug,
1540
1540
  slug = _story$slug === void 0 ? null : _story$slug,
1541
1541
  _story$title = story.title,
1542
- title = _story$title === void 0 ? null : _story$title;
1542
+ title = _story$title === void 0 ? null : _story$title,
1543
+ _story$components = story.components,
1544
+ components = _story$components === void 0 ? [] : _story$components;
1543
1545
  return _objectSpread__default["default"]({
1544
1546
  storyId: id,
1545
1547
  storySlug: slug,
1546
- storyTitle: title
1548
+ storyTitle: title,
1549
+ screensCount: (components || []).length
1547
1550
  }, trackingVariables);
1548
1551
  }, [story, trackingVariables]);
1549
1552
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/viewer",
3
- "version": "0.2.368",
3
+ "version": "0.2.373",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -31,6 +31,9 @@
31
31
  "license": "ISC",
32
32
  "main": "lib/index.js",
33
33
  "module": "es/index.js",
34
+ "exports": {
35
+ "./scss/styles": "./scss/styles.scss"
36
+ },
34
37
  "files": [
35
38
  "lib",
36
39
  "es",
@@ -55,16 +58,16 @@
55
58
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
56
59
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
57
60
  "@fortawesome/react-fontawesome": "^0.1.13",
58
- "@micromag/core": "^0.2.365",
59
- "@micromag/element-scroll": "^0.2.365",
60
- "@micromag/elements": "^0.2.365",
61
- "@micromag/fields": "^0.2.366",
62
- "@micromag/intl": "^0.2.367",
63
- "@micromag/screens": "^0.2.368",
61
+ "@micromag/core": "^0.2.373",
62
+ "@micromag/element-scroll": "^0.2.373",
63
+ "@micromag/elements": "^0.2.373",
64
+ "@micromag/fields": "^0.2.373",
65
+ "@micromag/intl": "^0.2.373",
66
+ "@micromag/screens": "^0.2.373",
64
67
  "@react-spring/core": "^9.1.1",
65
68
  "@react-spring/web": "^9.1.1",
66
69
  "classnames": "^2.2.6",
67
- "lodash": "^4.17.20",
70
+ "lodash": "^4.17.21",
68
71
  "prop-types": "^15.7.2",
69
72
  "react-helmet": "^6.1.0",
70
73
  "react-intl": "^5.12.1",
@@ -76,5 +79,5 @@
76
79
  "publishConfig": {
77
80
  "access": "public"
78
81
  },
79
- "gitHead": "5cc26ab60b865b0883abd0c41dcad29f72ed1849"
82
+ "gitHead": "613451a824d273954763eaf3a739ec16ac6feb9b"
80
83
  }