@storybook/addon-interactions 6.5.0-alpha.45 → 6.5.0-alpha.46
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.
|
@@ -31,6 +31,8 @@ require("core-js/modules/es.function.name.js");
|
|
|
31
31
|
|
|
32
32
|
var _addons = require("@storybook/addons");
|
|
33
33
|
|
|
34
|
+
var _global = require("global");
|
|
35
|
+
|
|
34
36
|
var _coreEvents = require("@storybook/core-events");
|
|
35
37
|
|
|
36
38
|
var _instrumenter = require("@storybook/instrumenter");
|
|
@@ -49,7 +51,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
49
51
|
|
|
50
52
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
53
|
|
|
52
|
-
var JestMock = new _jestMock.ModuleMocker(
|
|
54
|
+
var JestMock = new _jestMock.ModuleMocker(_global.window);
|
|
53
55
|
var fn = JestMock.fn.bind(JestMock); // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
|
|
54
56
|
|
|
55
57
|
var _instrument = (0, _instrumenter.instrument)({
|
|
@@ -23,10 +23,11 @@ import "core-js/modules/es.array.slice.js";
|
|
|
23
23
|
import "core-js/modules/es.array.from.js";
|
|
24
24
|
import "core-js/modules/es.regexp.exec.js";
|
|
25
25
|
import { addons } from '@storybook/addons';
|
|
26
|
+
import { window as globalWindow } from 'global';
|
|
26
27
|
import { FORCE_REMOUNT, STORY_RENDER_PHASE_CHANGED } from '@storybook/core-events';
|
|
27
28
|
import { instrument } from '@storybook/instrumenter';
|
|
28
29
|
import { ModuleMocker } from 'jest-mock';
|
|
29
|
-
var JestMock = new ModuleMocker(
|
|
30
|
+
var JestMock = new ModuleMocker(globalWindow);
|
|
30
31
|
var fn = JestMock.fn.bind(JestMock); // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
|
|
31
32
|
|
|
32
33
|
var _instrument = instrument({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "core-js/modules/es.array.reduce.js";
|
|
2
2
|
import { addons } from '@storybook/addons';
|
|
3
|
+
import { window as globalWindow } from 'global';
|
|
3
4
|
import { FORCE_REMOUNT, STORY_RENDER_PHASE_CHANGED } from '@storybook/core-events';
|
|
4
5
|
import { instrument } from '@storybook/instrumenter';
|
|
5
6
|
import { ModuleMocker } from 'jest-mock';
|
|
6
|
-
const JestMock = new ModuleMocker(
|
|
7
|
+
const JestMock = new ModuleMocker(globalWindow);
|
|
7
8
|
const fn = JestMock.fn.bind(JestMock); // Aliasing `fn` to `action` here, so we get a more descriptive label in the UI.
|
|
8
9
|
|
|
9
10
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-interactions",
|
|
3
|
-
"version": "6.5.0-alpha.
|
|
3
|
+
"version": "6.5.0-alpha.46",
|
|
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.
|
|
45
|
-
"@storybook/api": "6.5.0-alpha.
|
|
46
|
-
"@storybook/components": "6.5.0-alpha.
|
|
47
|
-
"@storybook/core-common": "6.5.0-alpha.
|
|
48
|
-
"@storybook/core-events": "6.5.0-alpha.
|
|
44
|
+
"@storybook/addons": "6.5.0-alpha.46",
|
|
45
|
+
"@storybook/api": "6.5.0-alpha.46",
|
|
46
|
+
"@storybook/components": "6.5.0-alpha.46",
|
|
47
|
+
"@storybook/core-common": "6.5.0-alpha.46",
|
|
48
|
+
"@storybook/core-events": "6.5.0-alpha.46",
|
|
49
49
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
50
|
-
"@storybook/instrumenter": "6.5.0-alpha.
|
|
51
|
-
"@storybook/theming": "6.5.0-alpha.
|
|
50
|
+
"@storybook/instrumenter": "6.5.0-alpha.46",
|
|
51
|
+
"@storybook/theming": "6.5.0-alpha.46",
|
|
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": "
|
|
78
|
+
"gitHead": "a64dc8426d21a70970728878c3bba0ac0a377a48",
|
|
79
79
|
"sbmodern": "dist/modern/index.js",
|
|
80
80
|
"storybook": {
|
|
81
81
|
"displayName": "Interactions",
|