@kadira/storybook-addons
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -1,5 +0,10 @@ | ||
## Change Log | ||
## Changelog | ||
### v1.4.0 | ||
29 Aug 2016 | ||
* Add `getPreview` and `setPreview` methods [PR2](https://github.com/kadirahq/storybook-addons/pull/2) | ||
### v1.3.1 | ||
* First stable release with addon store for loaders, panels and channel. |
@@ -18,2 +18,3 @@ "use strict"; | ||
this._channel = null; | ||
this._preview = null; | ||
} | ||
@@ -32,2 +33,12 @@ | ||
}, { | ||
key: "getPreview", | ||
value: function getPreview() { | ||
return this._preview; | ||
} | ||
}, { | ||
key: "setPreview", | ||
value: function setPreview(preview) { | ||
this._preview = preview; | ||
} | ||
}, { | ||
key: "getPanels", | ||
@@ -34,0 +45,0 @@ value: function getPanels() { |
{ | ||
"name": "@kadira/storybook-addons", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Storybook addons store", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,3 +0,8 @@ | ||
# storybook-adddons | ||
# Storybook Addons | ||
Node module to register addons | ||
Storybook Addons is a node module which is used to load custom addons to storybook. It stores addon loaders, communication channel and other resources which can be used by storybook implementations where required. | ||
## Writing New Addons | ||
> TODO | ||
@@ -6,2 +6,3 @@ export class AddonStore { | ||
this._channel = null; | ||
this._preview = null; | ||
} | ||
@@ -17,2 +18,10 @@ | ||
getPreview() { | ||
return this._preview; | ||
} | ||
setPreview(preview) { | ||
this._preview = preview; | ||
} | ||
getPanels() { | ||
@@ -19,0 +28,0 @@ return this._panels; |
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
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
5368
103
9