@storybook/addon-interactions 6.5.0-alpha.42 → 6.5.0-alpha.43

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.
@@ -49,9 +49,11 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
49
49
 
50
50
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
51
51
 
52
- // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
52
+ var JestMock = new _jestMock.ModuleMocker(global);
53
+ var fn = JestMock.fn.bind(JestMock); // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
54
+
53
55
  var _instrument = (0, _instrumenter.instrument)({
54
- action: _jestMock.fn
56
+ action: fn
55
57
  }, {
56
58
  retain: true
57
59
  }),
@@ -25,7 +25,9 @@ import "core-js/modules/es.regexp.exec.js";
25
25
  import { addons } from '@storybook/addons';
26
26
  import { FORCE_REMOUNT, STORY_RENDER_PHASE_CHANGED } from '@storybook/core-events';
27
27
  import { instrument } from '@storybook/instrumenter';
28
- import { fn } from 'jest-mock'; // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
28
+ import { ModuleMocker } from 'jest-mock';
29
+ var JestMock = new ModuleMocker(global);
30
+ var fn = JestMock.fn.bind(JestMock); // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
29
31
 
30
32
  var _instrument = instrument({
31
33
  action: fn
@@ -2,7 +2,9 @@ import "core-js/modules/es.array.reduce.js";
2
2
  import { addons } from '@storybook/addons';
3
3
  import { FORCE_REMOUNT, STORY_RENDER_PHASE_CHANGED } from '@storybook/core-events';
4
4
  import { instrument } from '@storybook/instrumenter';
5
- import { fn } from 'jest-mock'; // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
5
+ import { ModuleMocker } from 'jest-mock';
6
+ const JestMock = new ModuleMocker(global);
7
+ const fn = JestMock.fn.bind(JestMock); // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
6
8
 
7
9
  const {
8
10
  action
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-interactions",
3
- "version": "6.5.0-alpha.42",
3
+ "version": "6.5.0-alpha.43",
4
4
  "description": "Automate, test and debug user interactions",
5
5
  "keywords": [
6
6
  "storybook-addons",
@@ -41,14 +41,14 @@
41
41
  "prepare": "node ../../scripts/prepare.js"
42
42
  },
43
43
  "dependencies": {
44
- "@storybook/addons": "6.5.0-alpha.42",
45
- "@storybook/api": "6.5.0-alpha.42",
46
- "@storybook/components": "6.5.0-alpha.42",
47
- "@storybook/core-common": "6.5.0-alpha.42",
48
- "@storybook/core-events": "6.5.0-alpha.42",
44
+ "@storybook/addons": "6.5.0-alpha.43",
45
+ "@storybook/api": "6.5.0-alpha.43",
46
+ "@storybook/components": "6.5.0-alpha.43",
47
+ "@storybook/core-common": "6.5.0-alpha.43",
48
+ "@storybook/core-events": "6.5.0-alpha.43",
49
49
  "@storybook/csf": "0.0.2--canary.87bc651.0",
50
- "@storybook/instrumenter": "6.5.0-alpha.42",
51
- "@storybook/theming": "6.5.0-alpha.42",
50
+ "@storybook/instrumenter": "6.5.0-alpha.43",
51
+ "@storybook/theming": "6.5.0-alpha.43",
52
52
  "core-js": "^3.8.2",
53
53
  "global": "^4.4.0",
54
54
  "jest-mock": "^27.0.6",
@@ -75,7 +75,7 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "1477954e18494e721ae8d3c99bc710381eab1351",
78
+ "gitHead": "62e538940658869e62dc852f5754d55a5e0fb52b",
79
79
  "sbmodern": "dist/modern/index.js",
80
80
  "storybook": {
81
81
  "displayName": "Interactions",