@storybook/addon-interactions 8.1.0-alpha.5 → 8.1.0-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/preview.d.ts CHANGED
@@ -1,10 +1,8 @@
1
- import { StepLabel, PlayFunction, PlayFunctionContext, ArgsEnhancer, Renderer } from '@storybook/types';
1
+ import { StepLabel, PlayFunction, PlayFunctionContext } from '@storybook/types';
2
2
 
3
3
  declare const runStep: (label: StepLabel, play: PlayFunction, context: PlayFunctionContext<any>) => void | Promise<void>;
4
- declare const traverseArgs: (value: unknown, depth?: number, key?: string) => unknown;
5
- declare const argsEnhancers: ArgsEnhancer<Renderer>[];
6
4
  declare const parameters: {
7
5
  throwPlayFunctionExceptions: boolean;
8
6
  };
9
7
 
10
- export { argsEnhancers, parameters, runStep, traverseArgs };
8
+ export { parameters, runStep };
package/dist/preview.js CHANGED
@@ -1,11 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var test = require('@storybook/test');
4
3
  var instrumenter = require('@storybook/instrumenter');
5
4
 
6
- var {step:runStep}=instrumenter.instrument({step:(label,play,context)=>play(context)},{intercept:!0}),traverseArgs=(value,depth=0,key)=>{if(depth>5||value==null)return value;if(test.isMockFunction(value))return key&&value.mockName(key),value;if(typeof value=="function"&&"isAction"in value&&value.isAction&&!("implicit"in value&&value.implicit)){let mock=test.fn(value);return key&&mock.mockName(key),mock}if(Array.isArray(value))return depth++,value.map(item=>traverseArgs(item,depth));if(typeof value=="object"&&value.constructor===Object){depth++;for(let[k,v]of Object.entries(value))Object.getOwnPropertyDescriptor(value,k).writable&&(value[k]=traverseArgs(v,depth,k));return value}return value},wrapActionsInSpyFns=({initialArgs})=>traverseArgs(initialArgs),argsEnhancers=[wrapActionsInSpyFns],parameters={throwPlayFunctionExceptions:!1};
5
+ var {step:runStep}=instrumenter.instrument({step:(label,play,context)=>play(context)},{intercept:!0}),parameters={throwPlayFunctionExceptions:!1};
7
6
 
8
- exports.argsEnhancers = argsEnhancers;
9
7
  exports.parameters = parameters;
10
8
  exports.runStep = runStep;
11
- exports.traverseArgs = traverseArgs;
package/dist/preview.mjs CHANGED
@@ -1,6 +1,5 @@
1
- import { isMockFunction, fn } from '@storybook/test';
2
1
  import { instrument } from '@storybook/instrumenter';
3
2
 
4
- var {step:runStep}=instrument({step:(label,play,context)=>play(context)},{intercept:!0}),traverseArgs=(value,depth=0,key)=>{if(depth>5||value==null)return value;if(isMockFunction(value))return key&&value.mockName(key),value;if(typeof value=="function"&&"isAction"in value&&value.isAction&&!("implicit"in value&&value.implicit)){let mock=fn(value);return key&&mock.mockName(key),mock}if(Array.isArray(value))return depth++,value.map(item=>traverseArgs(item,depth));if(typeof value=="object"&&value.constructor===Object){depth++;for(let[k,v]of Object.entries(value))Object.getOwnPropertyDescriptor(value,k).writable&&(value[k]=traverseArgs(v,depth,k));return value}return value},wrapActionsInSpyFns=({initialArgs})=>traverseArgs(initialArgs),argsEnhancers=[wrapActionsInSpyFns],parameters={throwPlayFunctionExceptions:!1};
3
+ var {step:runStep}=instrument({step:(label,play,context)=>play(context)},{intercept:!0}),parameters={throwPlayFunctionExceptions:!1};
5
4
 
6
- export { argsEnhancers, parameters, runStep, traverseArgs };
5
+ export { parameters, runStep };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-interactions",
3
- "version": "8.1.0-alpha.5",
3
+ "version": "8.1.0-alpha.7",
4
4
  "description": "Automate, test and debug user interactions",
5
5
  "keywords": [
6
6
  "storybook-addons",
@@ -54,22 +54,22 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@storybook/global": "^5.0.0",
57
- "@storybook/instrumenter": "8.1.0-alpha.5",
58
- "@storybook/test": "8.1.0-alpha.5",
59
- "@storybook/types": "8.1.0-alpha.5",
57
+ "@storybook/instrumenter": "8.1.0-alpha.7",
58
+ "@storybook/test": "8.1.0-alpha.7",
59
+ "@storybook/types": "8.1.0-alpha.7",
60
60
  "polished": "^4.2.2",
61
61
  "ts-dedent": "^2.2.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@devtools-ds/object-inspector": "^1.1.2",
65
- "@storybook/client-logger": "8.1.0-alpha.5",
66
- "@storybook/components": "8.1.0-alpha.5",
67
- "@storybook/core-common": "8.1.0-alpha.5",
68
- "@storybook/core-events": "8.1.0-alpha.5",
65
+ "@storybook/client-logger": "8.1.0-alpha.7",
66
+ "@storybook/components": "8.1.0-alpha.7",
67
+ "@storybook/core-common": "8.1.0-alpha.7",
68
+ "@storybook/core-events": "8.1.0-alpha.7",
69
69
  "@storybook/icons": "^1.2.5",
70
- "@storybook/manager-api": "8.1.0-alpha.5",
71
- "@storybook/preview-api": "8.1.0-alpha.5",
72
- "@storybook/theming": "8.1.0-alpha.5",
70
+ "@storybook/manager-api": "8.1.0-alpha.7",
71
+ "@storybook/preview-api": "8.1.0-alpha.7",
72
+ "@storybook/theming": "8.1.0-alpha.7",
73
73
  "@types/node": "^18.0.0",
74
74
  "formik": "^2.2.9",
75
75
  "react": "^18.2.0",