Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dump247/storybook-state

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dump247/storybook-state - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

.nvmrc

7

index.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc