@micromag/viewer 0.3.569 → 0.3.570

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 +6 -2
  2. package/package.json +10 -10
package/es/index.js CHANGED
@@ -3419,7 +3419,7 @@ var defaultRoutes = {
3419
3419
  screen: screen
3420
3420
  };
3421
3421
 
3422
- var _excluded = ["story", "paused", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "trackingVariables", "locale", "locales", "translations", "pathWithIndex"];
3422
+ var _excluded = ["story", "paused", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "trackingVariables", "locale", "locales", "translations", "pathWithIndex", "trackingDisabled"];
3423
3423
  var propTypes = {
3424
3424
  story: PropTypes$1.story,
3425
3425
  paused: PropTypes.bool,
@@ -3436,6 +3436,7 @@ var propTypes = {
3436
3436
  locales: PropTypes.arrayOf(PropTypes.string),
3437
3437
  translations: PropTypes.objectOf(PropTypes.string),
3438
3438
  pathWithIndex: PropTypes.bool,
3439
+ trackingDisabled: PropTypes.bool,
3439
3440
  children: PropTypes.func
3440
3441
  };
3441
3442
  var defaultProps = {
@@ -3454,6 +3455,7 @@ var defaultProps = {
3454
3455
  locales: ['fr', 'en'],
3455
3456
  translations: null,
3456
3457
  pathWithIndex: false,
3458
+ trackingDisabled: false,
3457
3459
  children: null
3458
3460
  };
3459
3461
  var ViewerContainer = function ViewerContainer(_ref) {
@@ -3471,6 +3473,7 @@ var ViewerContainer = function ViewerContainer(_ref) {
3471
3473
  locales = _ref.locales,
3472
3474
  translations = _ref.translations,
3473
3475
  pathWithIndex = _ref.pathWithIndex,
3476
+ trackingDisabled = _ref.trackingDisabled,
3474
3477
  otherProps = _objectWithoutProperties(_ref, _excluded);
3475
3478
  var finalTrackingVariables = useMemo(function () {
3476
3479
  if (story === null && trackingVariables === null) {
@@ -3512,7 +3515,8 @@ var ViewerContainer = function ViewerContainer(_ref) {
3512
3515
  }, /*#__PURE__*/React.createElement(PlaybackProvider, {
3513
3516
  paused: paused
3514
3517
  }, /*#__PURE__*/React.createElement(TrackingProvider, {
3515
- variables: finalTrackingVariables
3518
+ variables: finalTrackingVariables,
3519
+ disabled: trackingDisabled
3516
3520
  }, withoutRouter ? /*#__PURE__*/React.createElement(Viewer$1, Object.assign({
3517
3521
  story: story,
3518
3522
  basePath: basePath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/viewer",
3
- "version": "0.3.569",
3
+ "version": "0.3.570",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -64,14 +64,14 @@
64
64
  "dependencies": {
65
65
  "@babel/runtime": "^7.13.10",
66
66
  "@folklore/routes": "^0.2.27",
67
- "@micromag/core": "^0.3.569",
68
- "@micromag/element-badge": "^0.3.569",
69
- "@micromag/element-scroll": "^0.3.569",
70
- "@micromag/element-share-options": "^0.3.569",
71
- "@micromag/element-webview": "^0.3.569",
72
- "@micromag/elements": "^0.3.569",
73
- "@micromag/intl": "^0.3.569",
74
- "@micromag/screens": "^0.3.569",
67
+ "@micromag/core": "^0.3.570",
68
+ "@micromag/element-badge": "^0.3.570",
69
+ "@micromag/element-scroll": "^0.3.570",
70
+ "@micromag/element-share-options": "^0.3.570",
71
+ "@micromag/element-webview": "^0.3.570",
72
+ "@micromag/elements": "^0.3.570",
73
+ "@micromag/intl": "^0.3.570",
74
+ "@micromag/screens": "^0.3.570",
75
75
  "@react-spring/core": "^9.6.1",
76
76
  "@react-spring/web": "^9.6.1",
77
77
  "@use-gesture/react": "^10.3.0",
@@ -91,5 +91,5 @@
91
91
  "access": "public",
92
92
  "registry": "https://registry.npmjs.org/"
93
93
  },
94
- "gitHead": "ceb71f23a32ab8df4a1563a1e5cd5598e539de4d"
94
+ "gitHead": "77ddf956df099afb685816a80bca648690751402"
95
95
  }