@micromag/viewer 0.3.636 → 0.3.637

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 -5
  2. package/package.json +10 -10
package/es/index.js CHANGED
@@ -3510,7 +3510,7 @@ var defaultRoutes = {
3510
3510
  screen: screen
3511
3511
  };
3512
3512
 
3513
- var _excluded = ["story", "paused", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "trackingVariables", "locale", "locales", "translations", "pathWithIndex", "trackingDisabled"];
3513
+ var _excluded = ["story", "paused", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "locale", "locales", "translations", "pathWithIndex", "trackingVariables", "trackingDisabled", "trackingPaused"];
3514
3514
  var propTypes = {
3515
3515
  story: PropTypes$1.story,
3516
3516
  paused: PropTypes.bool,
@@ -3522,12 +3522,13 @@ var propTypes = {
3522
3522
  withoutRouter: PropTypes.bool,
3523
3523
  googleApiKey: PropTypes.string,
3524
3524
  visitor: PropTypes$1.visitor,
3525
- trackingVariables: PropTypes$1.trackingVariables,
3526
3525
  locale: PropTypes.string,
3527
3526
  locales: PropTypes.arrayOf(PropTypes.string),
3528
3527
  translations: PropTypes.objectOf(PropTypes.string),
3529
3528
  pathWithIndex: PropTypes.bool,
3529
+ trackingVariables: PropTypes$1.trackingVariables,
3530
3530
  trackingDisabled: PropTypes.bool,
3531
+ trackingPaused: PropTypes.bool,
3531
3532
  children: PropTypes.func
3532
3533
  };
3533
3534
  var defaultProps = {
@@ -3541,12 +3542,13 @@ var defaultProps = {
3541
3542
  withoutRouter: false,
3542
3543
  googleApiKey: null,
3543
3544
  visitor: null,
3544
- trackingVariables: null,
3545
3545
  locale: 'en',
3546
3546
  locales: ['fr', 'en'],
3547
3547
  translations: null,
3548
3548
  pathWithIndex: false,
3549
+ trackingVariables: null,
3549
3550
  trackingDisabled: false,
3551
+ trackingPaused: false,
3550
3552
  children: null
3551
3553
  };
3552
3554
  var ViewerContainer = function ViewerContainer(_ref) {
@@ -3559,12 +3561,13 @@ var ViewerContainer = function ViewerContainer(_ref) {
3559
3561
  withoutRouter = _ref.withoutRouter,
3560
3562
  googleApiKey = _ref.googleApiKey,
3561
3563
  visitor = _ref.visitor,
3562
- trackingVariables = _ref.trackingVariables,
3563
3564
  locale = _ref.locale,
3564
3565
  locales = _ref.locales,
3565
3566
  translations = _ref.translations,
3566
3567
  pathWithIndex = _ref.pathWithIndex,
3568
+ trackingVariables = _ref.trackingVariables,
3567
3569
  trackingDisabled = _ref.trackingDisabled,
3570
+ trackingPaused = _ref.trackingPaused,
3568
3571
  otherProps = _objectWithoutProperties(_ref, _excluded);
3569
3572
  var finalTrackingVariables = useMemo(function () {
3570
3573
  if (story === null && trackingVariables === null) {
@@ -3608,7 +3611,8 @@ var ViewerContainer = function ViewerContainer(_ref) {
3608
3611
  paused: paused
3609
3612
  }, /*#__PURE__*/React.createElement(TrackingProvider, {
3610
3613
  variables: finalTrackingVariables,
3611
- disabled: trackingDisabled
3614
+ disabled: trackingDisabled,
3615
+ paused: trackingPaused
3612
3616
  }, withoutRouter ? /*#__PURE__*/React.createElement(Viewer, Object.assign({
3613
3617
  story: story,
3614
3618
  basePath: basePath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/viewer",
3
- "version": "0.3.636",
3
+ "version": "0.3.637",
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.36",
67
- "@micromag/core": "^0.3.628",
68
- "@micromag/element-badge": "^0.3.628",
69
- "@micromag/element-scroll": "^0.3.628",
70
- "@micromag/element-share-options": "^0.3.628",
71
- "@micromag/element-webview": "^0.3.628",
72
- "@micromag/elements": "^0.3.628",
73
- "@micromag/intl": "^0.3.628",
74
- "@micromag/screens": "^0.3.636",
67
+ "@micromag/core": "^0.3.637",
68
+ "@micromag/element-badge": "^0.3.637",
69
+ "@micromag/element-scroll": "^0.3.637",
70
+ "@micromag/element-share-options": "^0.3.637",
71
+ "@micromag/element-webview": "^0.3.637",
72
+ "@micromag/elements": "^0.3.637",
73
+ "@micromag/intl": "^0.3.637",
74
+ "@micromag/screens": "^0.3.637",
75
75
  "@react-spring/core": "^9.6.1",
76
76
  "@react-spring/web": "^9.6.1",
77
77
  "@use-gesture/react": "^10.3.0",
@@ -92,5 +92,5 @@
92
92
  "access": "public",
93
93
  "registry": "https://registry.npmjs.org/"
94
94
  },
95
- "gitHead": "97a9840e7df9d9d9e5854b927597fadc11c423c1"
95
+ "gitHead": "8f06c2a525d71dc47183af7786284632a04332e1"
96
96
  }