@dump247/storybook-state
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -23,3 +23,6 @@ import { Renderable, RenderFunction } from '@storybook/react'; | ||
export type StorybookStateCallback<T> = (store: Store<T>) => Renderable | Renderable[]; | ||
export function withState<T extends {}>(state: T, callback?: StorybookStateCallback<T>): any // RenderFunction; | ||
export type LegacyStorybookStateCallback<T> = (store: Store<T>) => Renderable | Renderable[]; | ||
export function withState<T extends {}>(state: T, callback: LegacyStorybookStateCallback<T>): any // RenderFunction; | ||
export type StorybookStateCallback<T> = (context: {store: Store<T>}) => Renderable | Renderable[]; | ||
export function withState<T extends {}>(state: T): (callback: StorybookStateCallback<T>) => any |
{ | ||
"name": "@dump247/storybook-state", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Manage component state in storybook stories.", | ||
@@ -36,2 +36,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"enzyme-adapter-react-16": "^1.6.0", | ||
"react": "^16.6.0", | ||
"react-json-view": "^1.13.3" | ||
@@ -49,7 +51,7 @@ }, | ||
"enzyme": "^3.2.0", | ||
"enzyme-adapter-react-15": "^1.0.5", | ||
"enzyme-adapter-react-16": "^1.6.0", | ||
"jest": "^21.2.1", | ||
"react-dom": "^15.6.0", | ||
"react-test-renderer": "^15.6.2" | ||
"react-dom": "^16.0.0", | ||
"react-test-renderer": "^16.0.0" | ||
} | ||
} |
import React from 'react'; | ||
import { withState, Store } from './index'; | ||
import { mount, configure } from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-15'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
import addons from '@storybook/addons'; | ||
@@ -6,0 +6,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31866
6
15
561
1
+ Addedreact@^16.6.0
+ Addedairbnb-prop-types@2.16.0(transitive)
+ Addedarray-buffer-byte-length@1.0.1(transitive)
+ Addedarray.prototype.filter@1.0.4(transitive)
+ Addedarray.prototype.find@2.2.3(transitive)
+ Addedarray.prototype.flat@1.3.2(transitive)
+ Addedarraybuffer.prototype.slice@1.0.3(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcheerio@1.0.0(transitive)
+ Addedcheerio-select@2.1.0(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcss-select@5.1.0(transitive)
+ Addedcss-what@6.1.0(transitive)
+ Addeddata-view-buffer@1.0.1(transitive)
+ Addeddata-view-byte-length@1.0.1(transitive)
+ Addeddata-view-byte-offset@1.0.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddiscontinuous-range@1.0.0(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.1.0(transitive)
+ Addedencoding-sniffer@0.2.0(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedenzyme@3.11.0(transitive)
+ Addedenzyme-adapter-react-16@1.15.8(transitive)
+ Addedenzyme-adapter-utils@1.14.2(transitive)
+ Addedenzyme-shallow-equal@1.0.7(transitive)
+ Addedes-abstract@1.23.5(transitive)
+ Addedes-array-method-boxes-properly@1.0.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedes-set-tostringtag@2.0.3(transitive)
+ Addedes-shim-unscopables@1.0.2(transitive)
+ Addedes-to-primitive@1.3.0(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedfunction.prototype.name@1.1.6(transitive)
+ Addedfunctions-have-names@1.2.3(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedget-symbol-description@1.0.2(transitive)
+ Addedglobalthis@1.0.4(transitive)
+ Addedgopd@1.1.0(transitive)
+ Addedhas@1.0.4(transitive)
+ Addedhas-bigints@1.0.2(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.1.0(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhtml-element-map@1.3.1(transitive)
+ Addedhtmlparser2@9.1.0(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedinternal-slot@1.0.7(transitive)
+ Addedis-array-buffer@3.0.4(transitive)
+ Addedis-async-function@2.0.0(transitive)
+ Addedis-bigint@1.1.0(transitive)
+ Addedis-boolean-object@1.2.0(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-data-view@1.0.1(transitive)
+ Addedis-date-object@1.0.5(transitive)
+ Addedis-finalizationregistry@1.1.0(transitive)
+ Addedis-generator-function@1.0.10(transitive)
+ Addedis-map@2.0.3(transitive)
+ Addedis-negative-zero@2.0.3(transitive)
+ Addedis-number-object@1.1.0(transitive)
+ Addedis-regex@1.2.0(transitive)
+ Addedis-set@2.0.3(transitive)
+ Addedis-shared-array-buffer@1.0.3(transitive)
+ Addedis-string@1.1.0(transitive)
+ Addedis-subset@0.1.1(transitive)
+ Addedis-symbol@1.1.0(transitive)
+ Addedis-typed-array@1.1.13(transitive)
+ Addedis-weakmap@2.0.2(transitive)
+ Addedis-weakref@1.0.2(transitive)
+ Addedis-weakset@2.0.3(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedlodash.escape@4.0.1(transitive)
+ Addedlodash.flattendeep@4.4.0(transitive)
+ Addedlodash.isequal@4.5.0(transitive)
+ Addedmoo@0.5.2(transitive)
+ Addednearley@2.20.1(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedobject-is@1.1.6(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedobject.entries@1.1.8(transitive)
+ Addedobject.fromentries@2.0.8(transitive)
+ Addedobject.values@1.2.0(transitive)
+ Addedparse5@7.2.1(transitive)
+ Addedparse5-htmlparser2-tree-adapter@7.1.0(transitive)
+ Addedparse5-parser-stream@7.1.2(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedprop-types-exact@1.2.5(transitive)
+ Addedraf@3.4.1(transitive)
+ Addedrailroad-diagrams@1.0.0(transitive)
+ Addedrandexp@0.4.6(transitive)
+ Addedreact-dom@16.14.0(transitive)
+ Addedreact-test-renderer@16.14.0(transitive)
+ Addedreflect.getprototypeof@1.0.7(transitive)
+ Addedreflect.ownkeys@1.1.4(transitive)
+ Addedregexp.prototype.flags@1.5.3(transitive)
+ Addedret@0.1.15(transitive)
+ Addedrst-selector-parser@2.2.3(transitive)
+ Addedsafe-array-concat@1.1.2(transitive)
+ Addedsafe-regex-test@1.0.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedscheduler@0.19.1(transitive)
+ Addedsemver@5.7.26.3.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-function-name@2.0.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedstring.prototype.trim@1.2.9(transitive)
+ Addedstring.prototype.trimend@1.0.8(transitive)
+ Addedstring.prototype.trimstart@1.0.8(transitive)
+ Addedtyped-array-buffer@1.0.2(transitive)
+ Addedtyped-array-byte-length@1.0.1(transitive)
+ Addedtyped-array-byte-offset@1.0.3(transitive)
+ Addedtyped-array-length@1.0.7(transitive)
+ Addedunbox-primitive@1.0.2(transitive)
+ Addedundici@6.21.0(transitive)
+ Addedwhatwg-encoding@3.1.1(transitive)
+ Addedwhatwg-mimetype@4.0.0(transitive)
+ Addedwhich-boxed-primitive@1.1.0(transitive)
+ Addedwhich-builtin-type@1.2.0(transitive)
+ Addedwhich-collection@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.16(transitive)
- Removedreact@17.0.2(transitive)
- Removedreact-dom@17.0.2(transitive)
- Removedscheduler@0.20.2(transitive)