mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 02:31:07 +08:00
Merge branch 'next' into 7101-vue-docs-mode
This commit is contained in:
commit
05579f1193
@ -10,6 +10,7 @@ lib/cli/test
|
||||
scripts/storage
|
||||
*.bundle.js
|
||||
*.js.map
|
||||
*.d.ts
|
||||
|
||||
!.remarkrc.js
|
||||
!.babelrc.js
|
||||
@ -18,7 +19,3 @@ scripts/storage
|
||||
!.jest.config.js
|
||||
!.storybook
|
||||
|
||||
REACT_NATIVE
|
||||
examples-native
|
||||
react-native
|
||||
ondevice-*
|
2
.github/automention.yml
vendored
2
.github/automention.yml
vendored
@ -5,7 +5,7 @@
|
||||
'app: polymer': ['stijnkoopal', 'ndelangen']
|
||||
'app: preact': ['BartWaardenburg']
|
||||
'app: react-native': ['benoitdion', 'gongreg']
|
||||
'app: react-native-server': ['benoitdion', 'igor-dv']
|
||||
'app: react-native-server': ['benoitdion', 'gongreg']
|
||||
'app: svelte': ['cam-stitt', 'plumpNation']
|
||||
'app: vue': ['backbone87', 'elevatebart', 'pksunkara']
|
||||
'api: addons': ['ndelangen']
|
||||
|
15
CHANGELOG.md
15
CHANGELOG.md
@ -1,3 +1,18 @@
|
||||
## 5.2.0-alpha.32 (June 29, 2019)
|
||||
|
||||
### Features
|
||||
|
||||
* Addon-docs: Add .story.mdx support to preset ([#7229](https://github.com/storybookjs/storybook/pull/7229))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* React-native: Fix react native server ([#7187](https://github.com/storybookjs/storybook/pull/7187))
|
||||
* Addon-docs: Fix source-loader in monorepo examples ([#7214](https://github.com/storybookjs/storybook/pull/7214))
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Addon-docs: Convert repo stories to new module format ([#7175](https://github.com/storybookjs/storybook/pull/7175))
|
||||
|
||||
## 5.2.0-alpha.31 (June 27, 2019)
|
||||
|
||||
### Breaking Changes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "a11y addon for storybook",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
@ -26,12 +26,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"axe-core": "^3.2.2",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Action Logger addon for storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -21,11 +21,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"fast-deep-equal": "^2.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "A storybook addon to show different backgrounds for your preview",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,12 +25,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"memoizerific": "^1.11.3",
|
||||
"react": "^16.8.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-centered",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook decorator to center components",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-contexts",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook Addon Contexts",
|
||||
"keywords": [
|
||||
"storybook",
|
||||
@ -28,10 +28,10 @@
|
||||
"dev:check-types": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-cssresources",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "A storybook addon to switch between css resources at runtime for your story",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,10 +25,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-design-assets",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Design asset preview for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -27,12 +27,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -26,20 +26,8 @@ function webpack(webpackConfig = {}, options = {}) {
|
||||
...module,
|
||||
rules: [
|
||||
...(module.rules || []),
|
||||
// {
|
||||
// test: [/\.stories\.(jsx?$|ts?$)/],
|
||||
// enforce: 'pre',
|
||||
// use: [
|
||||
// {
|
||||
// loader: require.resolve('@storybook/addon-storysource/loader'),
|
||||
// options: {
|
||||
// injectParameters: true,
|
||||
// },
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
test: /\.stories.mdx$/,
|
||||
test: /\.(stories|story).mdx$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
@ -55,7 +43,7 @@ function webpack(webpackConfig = {}, options = {}) {
|
||||
},
|
||||
{
|
||||
test: /\.mdx$/,
|
||||
exclude: /\.stories.mdx$/,
|
||||
exclude: /\.(stories|story).mdx$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
@ -72,11 +60,7 @@ function webpack(webpackConfig = {}, options = {}) {
|
||||
}
|
||||
|
||||
function addons(entry = []) {
|
||||
return [
|
||||
...entry,
|
||||
// require.resolve('@storybook/addon-storysource/register'),
|
||||
require.resolve('../register'),
|
||||
];
|
||||
return [...entry, require.resolve('../register')];
|
||||
}
|
||||
|
||||
module.exports = { webpack, addons };
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-docs",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Superior documentation for your components",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -28,11 +28,11 @@
|
||||
"@mdx-js/loader": "^1.0.0",
|
||||
"@mdx-js/mdx": "^1.0.0",
|
||||
"@mdx-js/react": "^1.0.16",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/router": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/router": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"lodash": "^4.17.11",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-events",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Add events to your Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,9 +24,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"format-json": "^1.0.3",
|
||||
"lodash": "^4.17.11",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-google-analytics",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook addon for google analytics",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -20,8 +20,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react-ga": "^2.5.7"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-graphql",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook addon to display the GraphiQL IDE",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -22,8 +22,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"graphiql": "^0.13.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-info",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "A Storybook addon to show additional information for your stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -22,10 +22,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"jsx-to-string": "^1.4.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "React storybook addon that show component jest report",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -28,11 +28,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-knobs",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook Addon Prop Editor Component",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -22,11 +22,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/client-api": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/client-api": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"copy-to-clipboard": "^3.0.8",
|
||||
"core-js": "^3.0.1",
|
||||
"escape-html": "^1.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Story Links addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -22,9 +22,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/router": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/router": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-notes",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Write notes for your Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -23,13 +23,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/router": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/router": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"markdown-to-jsx": "^6.9.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-ondevice-actions",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Action Logger addon for react-native storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -19,13 +19,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"core-js": "^2.5.7",
|
||||
"fast-deep-equal": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31"
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/addon-actions": "*",
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* eslint-disable react/no-array-index-key */
|
||||
/* eslint-disable no-nested-ternary */
|
||||
import React from 'react';
|
||||
import { Button, View, Text } from 'react-native';
|
||||
|
||||
@ -22,6 +24,7 @@ const theme = {
|
||||
|
||||
class Inspect extends React.Component<{ name?: string; value: any }, { expanded: boolean }> {
|
||||
state = { expanded: false };
|
||||
|
||||
render() {
|
||||
const { name, value } = this.props;
|
||||
const { expanded } = this.state;
|
||||
@ -52,7 +55,7 @@ class Inspect extends React.Component<{ name?: string; value: any }, { expanded:
|
||||
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
||||
{toggle}
|
||||
{nameComponent}
|
||||
<Text>{': ' + (value.length === 0 ? '[]' : expanded ? '[' : '[...]')}</Text>
|
||||
<Text>{`: ${value.length === 0 ? '[]' : expanded ? '[' : '[...]'}`}</Text>
|
||||
</View>
|
||||
{expanded ? (
|
||||
<View style={{ marginLeft: 40 }}>
|
||||
@ -62,7 +65,7 @@ class Inspect extends React.Component<{ name?: string; value: any }, { expanded:
|
||||
</View>
|
||||
))}
|
||||
<View style={{ marginLeft: 20 }}>
|
||||
<Text>{']'}</Text>
|
||||
<Text>]</Text>
|
||||
</View>
|
||||
</View>
|
||||
) : null}
|
||||
@ -71,13 +74,13 @@ class Inspect extends React.Component<{ name?: string; value: any }, { expanded:
|
||||
}
|
||||
return (
|
||||
<View>
|
||||
<Text>{'['}</Text>
|
||||
<Text>[</Text>
|
||||
{value.map((v, i) => (
|
||||
<View key={i} style={{ marginLeft: 20 }}>
|
||||
<Inspect value={v} />
|
||||
</View>
|
||||
))}
|
||||
<Text>{']'}</Text>
|
||||
<Text>]</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
@ -89,7 +92,7 @@ class Inspect extends React.Component<{ name?: string; value: any }, { expanded:
|
||||
{toggle}
|
||||
{nameComponent}
|
||||
<Text>
|
||||
{': ' + (Object.keys(value).length === 0 ? '{}' : expanded ? '{' : '{...}')}
|
||||
{`: ${Object.keys(value).length === 0 ? '{}' : expanded ? '{' : '{...}'}`}
|
||||
</Text>
|
||||
</View>
|
||||
{expanded ? (
|
||||
@ -124,7 +127,7 @@ class Inspect extends React.Component<{ name?: string; value: any }, { expanded:
|
||||
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
||||
{toggle}
|
||||
{nameComponent}
|
||||
<Text>{': '}</Text>
|
||||
<Text>: </Text>
|
||||
<Value value={value} />
|
||||
</View>
|
||||
);
|
||||
@ -147,7 +150,7 @@ function Value({ value }: { value: any }) {
|
||||
if (value instanceof RegExp) {
|
||||
return (
|
||||
<Text style={{ color: theme.OBJECT_VALUE_REGEXP_COLOR }}>
|
||||
{'/' + value.source + '/' + value.flags}
|
||||
{`/${value.source}/${value.flags}`}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
@ -166,8 +169,9 @@ function Value({ value }: { value: any }) {
|
||||
);
|
||||
case 'function':
|
||||
return <Text style={{ color: theme.OBJECT_VALUE_FUNCTION_PREFIX_COLOR }}>[Function]</Text>;
|
||||
default:
|
||||
return <Text>{JSON.stringify(value)}</Text>;
|
||||
}
|
||||
return <Text>{JSON.stringify(value)}</Text>;
|
||||
}
|
||||
|
||||
export default Inspect;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-ondevice-backgrounds",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "A react-native storybook addon to show different backgrounds for your preview",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,7 +24,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"prop-types": "^15.7.2"
|
||||
},
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable react/prop-types, react/destructuring-assignment, import/no-extraneous-dependencies */
|
||||
import React, { Component } from 'react';
|
||||
import { View, Text } from 'react-native';
|
||||
import Events from '@storybook/core-events';
|
||||
@ -36,10 +37,6 @@ const Instructions = () => (
|
||||
);
|
||||
|
||||
export default class BackgroundPanel extends Component {
|
||||
setBackgroundFromSwatch = background => {
|
||||
this.props.channel.emit(Constants.UPDATE_BACKGROUND, background);
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
this.props.channel.on(Events.SELECT_STORY, this.onStorySelected);
|
||||
}
|
||||
@ -48,6 +45,10 @@ export default class BackgroundPanel extends Component {
|
||||
this.props.channel.removeListener(Events.SELECT_STORY, this.onStorySelected);
|
||||
}
|
||||
|
||||
setBackgroundFromSwatch = background => {
|
||||
this.props.channel.emit(Constants.UPDATE_BACKGROUND, background);
|
||||
};
|
||||
|
||||
onStorySelected = selection => {
|
||||
this.setState({ selection });
|
||||
};
|
||||
|
@ -19,9 +19,9 @@ export default class Container extends React.Component {
|
||||
channel.removeListener(Constants.UPDATE_BACKGROUND, this.onBackgroundChange);
|
||||
}
|
||||
|
||||
onBackgroundChange = (background) => {
|
||||
onBackgroundChange = background => {
|
||||
this.setState({ background });
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
const { background } = this.state;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-ondevice-knobs",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Display storybook story knobs on your deviced.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -21,8 +21,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"deep-equal": "^1.0.1",
|
||||
"prop-types": "^15.7.2",
|
||||
|
@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
|
||||
import { View } from 'react-native';
|
||||
import PropField from './PropField';
|
||||
|
||||
export default class propForm extends React.Component {
|
||||
export default class PropForm extends React.Component {
|
||||
makeChangeHandler(name, type) {
|
||||
return value => {
|
||||
const { onFieldChange } = this.props;
|
||||
@ -38,13 +38,13 @@ export default class propForm extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
propForm.displayName = 'propForm';
|
||||
PropForm.displayName = 'PropForm';
|
||||
|
||||
propForm.defaultProps = {
|
||||
PropForm.defaultProps = {
|
||||
knobs: [],
|
||||
};
|
||||
|
||||
propForm.propTypes = {
|
||||
PropForm.propTypes = {
|
||||
knobs: PropTypes.arrayOf(
|
||||
PropTypes.shape({
|
||||
name: PropTypes.string,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-ondevice-notes",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Write notes for your react-native Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -20,7 +20,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"prop-types": "^15.7.2",
|
||||
"react-native-simple-markdown": "^1.1.0"
|
||||
|
@ -1,3 +1,4 @@
|
||||
// eslint-disable-next-line no-undef
|
||||
if (__DEV__) {
|
||||
console.log("import '@storybook/addon-ondevice-notes/register' to register the notes addon");
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,6 @@
|
||||
/* eslint-disable react/prop-types */
|
||||
/* eslint-disable react/destructuring-assignment */
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import React from 'react';
|
||||
import { View } from 'react-native';
|
||||
import Markdown from 'react-native-simple-markdown';
|
||||
@ -7,10 +10,6 @@ import Events from '@storybook/core-events';
|
||||
export const PARAM_KEY = `notes`;
|
||||
|
||||
class Notes extends React.Component {
|
||||
setBackgroundFromSwatch = background => {
|
||||
this.props.channel.emit(Constants.UPDATE_BACKGROUND, background);
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
this.props.channel.on(Events.SELECT_STORY, this.onStorySelected);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-options",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Options addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -22,7 +22,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"util-deprecate": "^1.0.2"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-queryparams",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -23,12 +23,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,7 +25,7 @@
|
||||
"storybook": "start-storybook -p 6006"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"glob": "^7.1.3",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots-puppeteer",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Image snappshots addition to StoryShots base on puppeteer",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -22,8 +22,8 @@
|
||||
"prepare": "node ../../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/node-logger": "5.2.0-alpha.31",
|
||||
"@storybook/router": "5.2.0-alpha.31",
|
||||
"@storybook/node-logger": "5.2.0-alpha.32",
|
||||
"@storybook/router": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"jest-image-snapshot": "^2.8.2",
|
||||
"regenerator-runtime": "^0.12.1"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storysource",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Stories addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -22,10 +22,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/router": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/router": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"estraverse": "^4.2.0",
|
||||
"loader-utils": "^1.2.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-viewport",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook addon to change the viewport size to mobile",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -21,12 +21,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"memoizerific": "^1.11.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/angular",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -26,8 +26,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/node-logger": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"@storybook/node-logger": "5.2.0-alpha.32",
|
||||
"angular2-template-loader": "^0.6.2",
|
||||
"core-js": "^3.0.1",
|
||||
"fork-ts-checker-webpack-plugin": "^1.3.4",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/ember",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
||||
"homepage": "https://github.com/storybookjs/storybook/tree/master/app/ember",
|
||||
"bugs": {
|
||||
@ -24,7 +24,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ember/test-helpers": "^1.5.0",
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -25,7 +25,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marko",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Marko: Develop Marko Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -26,7 +26,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/mithril",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Mithril: Develop Mithril Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -27,7 +27,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/polymer",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Polymer: Develop Polymer components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -25,7 +25,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"@webcomponents/webcomponentsjs": "^1.2.0",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -27,7 +27,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/rax",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Rax: Develop Rax Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook",
|
||||
@ -27,7 +27,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"babel-preset-rax": "^1.0.0-beta.0",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^2.6.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react-native-server",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "A better way to develop React Native Components for your app",
|
||||
"keywords": [
|
||||
"react",
|
||||
@ -24,12 +24,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/channel-websocket": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/ui": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/channel-websocket": "5.2.0-alpha.32",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/ui": "5.2.0-alpha.32",
|
||||
"commander": "^2.19.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -51,8 +51,7 @@ export default class ReactProvider extends Provider {
|
||||
<Consumer filter={mapper} pure>
|
||||
{({ storiesHash, storyId, api, viewMode }) => {
|
||||
if (storiesHash[storyId]) {
|
||||
const { kind, story } = storiesHash[storyId];
|
||||
api.emit(Events.SET_CURRENT_STORY, { kind, story });
|
||||
api.emit(Events.SET_CURRENT_STORY, { storyId });
|
||||
}
|
||||
return viewMode === 'story' ? <PreviewHelp /> : null;
|
||||
}}
|
||||
@ -62,12 +61,6 @@ export default class ReactProvider extends Provider {
|
||||
|
||||
handleAPI(api) {
|
||||
addons.loadAddons(api);
|
||||
api.on(Events.STORY_CHANGED, () => {
|
||||
api.emit(Events.SET_CURRENT_STORY, this.selection);
|
||||
});
|
||||
api.on(Events.GET_CURRENT_STORY, () => {
|
||||
api.emit(Events.SET_CURRENT_STORY, this.selection);
|
||||
});
|
||||
api.emit(Events.GET_STORIES);
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react-native",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "A better way to develop React Native Components for your app",
|
||||
"keywords": [
|
||||
"react",
|
||||
@ -23,11 +23,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@emotion/native": "^10.0.10",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/channel-websocket": "5.2.0-alpha.31",
|
||||
"@storybook/channels": "5.2.0-alpha.31",
|
||||
"@storybook/client-api": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/channel-websocket": "5.2.0-alpha.32",
|
||||
"@storybook/channels": "5.2.0-alpha.32",
|
||||
"@storybook/client-api": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"react-native-swipe-gestures": "^1.0.3",
|
||||
"rn-host-detect": "^1.1.5"
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable prefer-destructuring */
|
||||
import Preview from './preview';
|
||||
|
||||
const preview = new Preview();
|
||||
|
@ -22,7 +22,9 @@ type Props = {
|
||||
// To avoid issues we use absolute positioned element with predefined screen size
|
||||
export default class AbsolutePositionedKeyboardAwareView extends PureComponent<Props> {
|
||||
keyboardDidShowListener: EmitterSubscription;
|
||||
|
||||
keyboardDidHideListener: EmitterSubscription;
|
||||
|
||||
keyboardOpen: boolean;
|
||||
|
||||
componentWillMount() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { NAVIGATOR, PREVIEW, ADDONS } from './navigation/constants';
|
||||
import { Animated } from 'react-native';
|
||||
import { NAVIGATOR, PREVIEW, ADDONS } from './navigation/constants';
|
||||
|
||||
const PREVIEW_SCALE = 0.3;
|
||||
|
||||
|
@ -8,7 +8,6 @@ import {
|
||||
TouchableOpacityProps,
|
||||
} from 'react-native';
|
||||
import styled from '@emotion/native';
|
||||
import Events from '@storybook/core-events';
|
||||
import addons from '@storybook/addons';
|
||||
import Channel from '@storybook/channels';
|
||||
import StoryListView from '../StoryListView';
|
||||
@ -36,14 +35,11 @@ interface OnDeviceUIProps {
|
||||
url?: string;
|
||||
tabOpen?: number;
|
||||
isUIHidden?: boolean;
|
||||
getInitialStory?: (...args: any[]) => any;
|
||||
shouldDisableKeyboardAvoidingView?: boolean;
|
||||
keyboardAvoidingViewVerticalOffset?: number;
|
||||
}
|
||||
|
||||
interface OnDeviceUIState {
|
||||
selection: any;
|
||||
storyFn: any;
|
||||
tabOpen: number;
|
||||
slideBetweenAnimation: boolean;
|
||||
previewWidth: number;
|
||||
@ -64,6 +60,7 @@ const Preview: typeof TouchableOpacity = styled.TouchableOpacity`
|
||||
|
||||
export default class OnDeviceUI extends PureComponent<OnDeviceUIProps, OnDeviceUIState> {
|
||||
animatedValue: Animated.Value;
|
||||
|
||||
channel: Channel;
|
||||
|
||||
constructor(props: OnDeviceUIProps) {
|
||||
@ -72,8 +69,6 @@ export default class OnDeviceUI extends PureComponent<OnDeviceUIProps, OnDeviceU
|
||||
this.state = {
|
||||
tabOpen,
|
||||
slideBetweenAnimation: false,
|
||||
selection: {},
|
||||
storyFn: null,
|
||||
previewWidth: 0,
|
||||
previewHeight: 0,
|
||||
};
|
||||
@ -81,24 +76,6 @@ export default class OnDeviceUI extends PureComponent<OnDeviceUIProps, OnDeviceU
|
||||
this.channel = addons.getChannel();
|
||||
}
|
||||
|
||||
async componentWillMount() {
|
||||
const { getInitialStory } = this.props;
|
||||
if (getInitialStory) {
|
||||
const story = await getInitialStory();
|
||||
this.setState({
|
||||
selection: story || {},
|
||||
storyFn: story ? story.storyFn : null,
|
||||
});
|
||||
}
|
||||
this.channel.on(Events.SELECT_STORY, this.handleStoryChange);
|
||||
this.channel.on(Events.FORCE_RE_RENDER, this.forceReRender);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.channel.removeListener(Events.SELECT_STORY, this.handleStoryChange);
|
||||
this.channel.removeListener(Events.FORCE_RE_RENDER, this.forceReRender);
|
||||
}
|
||||
|
||||
onLayout = ({ previewWidth, previewHeight }: PreviewDimens) => {
|
||||
this.setState({ previewWidth, previewHeight });
|
||||
};
|
||||
@ -107,24 +84,6 @@ export default class OnDeviceUI extends PureComponent<OnDeviceUIProps, OnDeviceU
|
||||
this.handleToggleTab(PREVIEW);
|
||||
};
|
||||
|
||||
forceReRender = () => {
|
||||
this.forceUpdate();
|
||||
};
|
||||
|
||||
handleStoryChange = (selection: any) => {
|
||||
const { selection: prevSelection } = this.state;
|
||||
if (selection.kind === prevSelection.kind && selection.story === prevSelection.story) {
|
||||
this.handleToggleTab(PREVIEW);
|
||||
}
|
||||
this.setState({
|
||||
selection: {
|
||||
kind: selection.kind,
|
||||
story: selection.story,
|
||||
},
|
||||
storyFn: selection.storyFn,
|
||||
});
|
||||
};
|
||||
|
||||
handleToggleTab = (newTabOpen: number) => {
|
||||
const { tabOpen } = this.state;
|
||||
if (newTabOpen === tabOpen) {
|
||||
@ -155,14 +114,7 @@ export default class OnDeviceUI extends PureComponent<OnDeviceUIProps, OnDeviceU
|
||||
keyboardAvoidingViewVerticalOffset,
|
||||
} = this.props;
|
||||
|
||||
const {
|
||||
tabOpen,
|
||||
slideBetweenAnimation,
|
||||
selection,
|
||||
storyFn,
|
||||
previewWidth,
|
||||
previewHeight,
|
||||
} = this.state;
|
||||
const { tabOpen, slideBetweenAnimation, previewWidth, previewHeight } = this.state;
|
||||
|
||||
const previewWrapperStyles = [
|
||||
{ flex: 1 },
|
||||
@ -190,21 +142,12 @@ export default class OnDeviceUI extends PureComponent<OnDeviceUIProps, OnDeviceU
|
||||
disabled={tabOpen === PREVIEW}
|
||||
onPress={this.handleOpenPreview}
|
||||
>
|
||||
<StoryView
|
||||
url={url}
|
||||
selection={selection}
|
||||
storyFn={storyFn}
|
||||
listenToEvents={false}
|
||||
/>
|
||||
<StoryView url={url} onDevice stories={stories} />
|
||||
</Preview>
|
||||
</Animated.View>
|
||||
</Animated.View>
|
||||
<Panel style={getNavigatorPanelPosition(this.animatedValue, previewWidth)}>
|
||||
<StoryListView
|
||||
stories={stories}
|
||||
selectedKind={selection.kind}
|
||||
selectedStory={selection.story}
|
||||
/>
|
||||
<StoryListView stories={stories} />
|
||||
</Panel>
|
||||
<Panel style={getAddonPanelPosition(this.animatedValue, previewWidth)}>
|
||||
<Addons />
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable react/destructuring-assignment */
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, SafeAreaView, StyleSheet } from 'react-native';
|
||||
import GestureRecognizer, { GestureRecognizerConfig } from 'react-native-swipe-gestures';
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable react/destructuring-assignment */
|
||||
import React, { Component } from 'react';
|
||||
import { SectionList, TextInput, TouchableOpacity, View, SafeAreaView } from 'react-native';
|
||||
import styled from '@emotion/native';
|
||||
@ -64,8 +65,6 @@ const ListItem: React.FunctionComponent<ListItemProps> = ({ kind, title, selecte
|
||||
|
||||
interface Props {
|
||||
stories: any;
|
||||
selectedKind?: string;
|
||||
selectedStory?: string;
|
||||
}
|
||||
|
||||
interface State {
|
||||
@ -90,28 +89,35 @@ export default class StoryListView extends Component<Props, State> {
|
||||
componentDidMount() {
|
||||
const channel = addons.getChannel();
|
||||
channel.on(Events.STORY_ADDED, this.handleStoryAdded);
|
||||
channel.on(Events.SELECT_STORY, this.forceReRender);
|
||||
this.handleStoryAdded();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
const channel = addons.getChannel();
|
||||
channel.removeListener(Events.STORY_ADDED, this.handleStoryAdded);
|
||||
channel.removeListener(Events.SELECT_STORY, this.forceReRender);
|
||||
}
|
||||
|
||||
forceReRender = () => {
|
||||
this.forceUpdate();
|
||||
};
|
||||
|
||||
handleStoryAdded = () => {
|
||||
const { stories } = this.props;
|
||||
|
||||
if (stories) {
|
||||
const data = stories.dumpStoryBook().map(
|
||||
(section: any) => ({
|
||||
title: section.kind,
|
||||
data: section.stories.map((story: any) => ({
|
||||
key: story,
|
||||
name: story,
|
||||
kind: section.kind,
|
||||
})),
|
||||
}),
|
||||
{}
|
||||
const data = Object.values(
|
||||
stories
|
||||
.raw()
|
||||
.reduce((acc: { [kind: string]: { title: string; data: any[] } }, story: any) => {
|
||||
acc[story.kind] = {
|
||||
title: story.kind,
|
||||
data: (acc[story.kind] ? acc[story.kind].data : []).concat(story),
|
||||
};
|
||||
|
||||
return acc;
|
||||
}, {})
|
||||
);
|
||||
|
||||
this.setState({ data, originalData: data });
|
||||
@ -146,13 +152,13 @@ export default class StoryListView extends Component<Props, State> {
|
||||
this.setState({ data: filteredData });
|
||||
};
|
||||
|
||||
changeStory(kind: string, story: string) {
|
||||
changeStory(storyId: string) {
|
||||
const channel = addons.getChannel();
|
||||
channel.emit(Events.SET_CURRENT_STORY, { kind, story });
|
||||
channel.emit(Events.SET_CURRENT_STORY, { storyId });
|
||||
}
|
||||
|
||||
render() {
|
||||
const { selectedKind, selectedStory } = this.props;
|
||||
const selectedStory = this.props.stories.getSelection();
|
||||
const { data } = this.state;
|
||||
|
||||
return (
|
||||
@ -171,12 +177,12 @@ export default class StoryListView extends Component<Props, State> {
|
||||
<ListItem
|
||||
title={item.name}
|
||||
kind={item.kind}
|
||||
selected={item.kind === selectedKind && item.name === selectedStory}
|
||||
onPress={() => this.changeStory(item.kind, item.name)}
|
||||
selected={item.id === selectedStory.id}
|
||||
onPress={() => this.changeStory(item.id)}
|
||||
/>
|
||||
)}
|
||||
renderSectionHeader={({ section: { title } }) => (
|
||||
<SectionHeader title={title} selected={title === selectedKind} />
|
||||
<SectionHeader title={title} selected={title === selectedStory.kind} />
|
||||
)}
|
||||
keyExtractor={(item, index) => item + index}
|
||||
sections={data}
|
||||
|
@ -5,15 +5,9 @@ import addons from '@storybook/addons';
|
||||
import Events from '@storybook/core-events';
|
||||
|
||||
interface Props {
|
||||
listenToEvents: boolean;
|
||||
selection?: any;
|
||||
storyFn?: any;
|
||||
stories: any;
|
||||
url: string;
|
||||
}
|
||||
|
||||
interface State {
|
||||
storyFn?: any;
|
||||
selection?: any;
|
||||
onDevice?: boolean;
|
||||
}
|
||||
|
||||
const HelpContainer = styled.View`
|
||||
@ -24,33 +18,23 @@ const HelpContainer = styled.View`
|
||||
justify-content: center;
|
||||
`;
|
||||
|
||||
export default class StoryView extends Component<Props, State> {
|
||||
export default class StoryView extends Component<Props> {
|
||||
componentDidMount() {
|
||||
if (this.props.listenToEvents) {
|
||||
const channel = addons.getChannel();
|
||||
channel.on(Events.SELECT_STORY, this.selectStory);
|
||||
channel.on(Events.FORCE_RE_RENDER, this.forceReRender);
|
||||
}
|
||||
const channel = addons.getChannel();
|
||||
channel.on(Events.STORY_RENDER, this.forceReRender);
|
||||
channel.on(Events.FORCE_RE_RENDER, this.forceReRender);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
const { listenToEvents } = this.props;
|
||||
|
||||
if (listenToEvents) {
|
||||
const channel = addons.getChannel();
|
||||
channel.removeListener(Events.SELECT_STORY, this.selectStory);
|
||||
channel.removeListener(Events.FORCE_RE_RENDER, this.forceReRender);
|
||||
}
|
||||
const channel = addons.getChannel();
|
||||
channel.removeListener(Events.STORY_RENDER, this.forceReRender);
|
||||
channel.removeListener(Events.FORCE_RE_RENDER, this.forceReRender);
|
||||
}
|
||||
|
||||
forceReRender = () => {
|
||||
this.forceUpdate();
|
||||
};
|
||||
|
||||
selectStory = (selection: any) => {
|
||||
this.setState({ storyFn: selection.storyFn, selection });
|
||||
};
|
||||
|
||||
renderHelp = () => {
|
||||
const { url } = this.props;
|
||||
return (
|
||||
@ -75,41 +59,24 @@ export default class StoryView extends Component<Props, State> {
|
||||
);
|
||||
|
||||
render() {
|
||||
const { listenToEvents } = this.props;
|
||||
const { onDevice, stories } = this.props;
|
||||
|
||||
if (listenToEvents) {
|
||||
return this.renderListening();
|
||||
} else {
|
||||
return this.renderOnDevice();
|
||||
const selection = stories.getSelection();
|
||||
|
||||
const { id, storyFn } = selection;
|
||||
|
||||
if (storyFn) {
|
||||
return (
|
||||
<View key={id} style={{ flex: 1 }}>
|
||||
{storyFn()}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
if (onDevice) {
|
||||
return this.renderOnDeviceUIHelp();
|
||||
}
|
||||
|
||||
return this.renderHelp();
|
||||
}
|
||||
|
||||
renderListening = () => {
|
||||
if (!this.state) {
|
||||
return null;
|
||||
}
|
||||
const { storyFn, selection } = this.state;
|
||||
const { kind, story } = selection;
|
||||
|
||||
return storyFn ? (
|
||||
<View key={`${kind}:::${story}`} style={{ flex: 1 }}>
|
||||
{storyFn()}
|
||||
</View>
|
||||
) : (
|
||||
this.renderHelp()
|
||||
);
|
||||
};
|
||||
|
||||
renderOnDevice = () => {
|
||||
const { storyFn, selection } = this.props;
|
||||
const { kind, story } = selection;
|
||||
|
||||
return storyFn ? (
|
||||
<View key={`${kind}:::${story}`} style={{ flex: 1 }}>
|
||||
{storyFn()}
|
||||
</View>
|
||||
) : (
|
||||
this.renderOnDeviceUIHelp()
|
||||
);
|
||||
};
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies, no-underscore-dangle */
|
||||
import React from 'react';
|
||||
import { AsyncStorage } from 'react-native';
|
||||
import { ThemeProvider } from 'emotion-theming';
|
||||
@ -32,16 +33,19 @@ export type Params = {
|
||||
} & EmotionProps;
|
||||
|
||||
export default class Preview {
|
||||
currentStory: any;
|
||||
_clientApi: ClientApi;
|
||||
|
||||
_stories: StoryStore;
|
||||
|
||||
_addons: any;
|
||||
|
||||
_decorators: any[];
|
||||
|
||||
_asyncStorageStoryId: string;
|
||||
|
||||
constructor() {
|
||||
this._addons = {};
|
||||
this._decorators = [];
|
||||
|
||||
this._stories = new StoryStore({});
|
||||
this._clientApi = new ClientApi({ storyStore: this._stories });
|
||||
}
|
||||
@ -64,9 +68,6 @@ export default class Preview {
|
||||
|
||||
const onDeviceUI = params.onDeviceUI !== false;
|
||||
const { initialSelection, shouldPersistSelection } = params;
|
||||
// should the initial story be sent to storybookUI
|
||||
// set to true if using disableWebsockets or if connection to WebsocketServer fails.
|
||||
let setInitialStory = false;
|
||||
|
||||
try {
|
||||
channel = addons.getChannel();
|
||||
@ -78,6 +79,7 @@ export default class Preview {
|
||||
if (!channel || params.resetStorybook) {
|
||||
if (onDeviceUI && params.disableWebsockets) {
|
||||
channel = new Channel({ async: true });
|
||||
this._setInitialStory(initialSelection, shouldPersistSelection);
|
||||
} else {
|
||||
const host = getHost(params.host || 'localhost');
|
||||
const port = `:${params.port || 7007}`;
|
||||
@ -93,11 +95,7 @@ export default class Preview {
|
||||
url,
|
||||
async: onDeviceUI,
|
||||
onError: () => {
|
||||
// We are both emitting event and telling the component to get initial story. It may happen that component is created before the error or vise versa.
|
||||
// This way we handle both cases
|
||||
this._setInitialStory(initialSelection, shouldPersistSelection);
|
||||
|
||||
setInitialStory = true;
|
||||
},
|
||||
});
|
||||
}
|
||||
@ -113,13 +111,6 @@ export default class Preview {
|
||||
|
||||
this._sendSetStories();
|
||||
|
||||
// If the app is started with server running, set the story as the one selected in the browser
|
||||
if (webUrl) {
|
||||
this._sendGetCurrentStory();
|
||||
} else {
|
||||
setInitialStory = true;
|
||||
}
|
||||
|
||||
const preview = this;
|
||||
|
||||
addons.loadAddons(this._clientApi);
|
||||
@ -127,7 +118,6 @@ export default class Preview {
|
||||
const appliedTheme = { ...theme, ...params.theme };
|
||||
|
||||
// react-native hot module loader must take in a Class - https://github.com/facebook/react-native/issues/10991
|
||||
// eslint-disable-next-line react/prefer-stateless-function
|
||||
return class StorybookRoot extends React.PureComponent {
|
||||
render() {
|
||||
if (onDeviceUI) {
|
||||
@ -138,11 +128,6 @@ export default class Preview {
|
||||
url={webUrl}
|
||||
isUIHidden={params.isUIHidden}
|
||||
tabOpen={params.tabOpen}
|
||||
getInitialStory={
|
||||
setInitialStory
|
||||
? preview._getInitialStory(initialSelection, shouldPersistSelection)
|
||||
: null
|
||||
}
|
||||
shouldDisableKeyboardAvoidingView={params.shouldDisableKeyboardAvoidingView}
|
||||
keyboardAvoidingViewVerticalOffset={params.keyboardAvoidingViewVerticalOffset}
|
||||
/>
|
||||
@ -152,7 +137,7 @@ export default class Preview {
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={appliedTheme}>
|
||||
<StoryView url={webUrl} listenToEvents />
|
||||
<StoryView stories={preview._stories} url={webUrl} />
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
@ -164,14 +149,6 @@ export default class Preview {
|
||||
const stories = this._stories.extract();
|
||||
channel.emit(Events.SET_STORIES, { stories });
|
||||
channel.emit(Events.STORIES_CONFIGURED);
|
||||
if (this.currentStory) {
|
||||
channel.emit(Events.SET_CURRENT_STORY, this.currentStory);
|
||||
}
|
||||
}
|
||||
|
||||
_sendGetCurrentStory() {
|
||||
const channel = addons.getChannel();
|
||||
channel.emit(Events.GET_CURRENT_STORY);
|
||||
}
|
||||
|
||||
_setInitialStory = async (initialSelection: any, shouldPersistSelection = true) => {
|
||||
@ -187,11 +164,18 @@ export default class Preview {
|
||||
if (initialSelection && this._checkStory(initialSelection)) {
|
||||
story = initialSelection;
|
||||
} else if (shouldPersistSelection) {
|
||||
const value = await AsyncStorage.getItem(STORAGE_KEY);
|
||||
const previousStory = JSON.parse(value);
|
||||
try {
|
||||
let value = this._asyncStorageStoryId;
|
||||
if (!value) {
|
||||
value = JSON.parse(await AsyncStorage.getItem(STORAGE_KEY));
|
||||
this._asyncStorageStoryId = value;
|
||||
}
|
||||
|
||||
if (this._checkStory(previousStory)) {
|
||||
story = previousStory;
|
||||
if (this._checkStory(value)) {
|
||||
story = value;
|
||||
}
|
||||
} catch (e) {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
@ -199,43 +183,44 @@ export default class Preview {
|
||||
return this._getStory(story);
|
||||
}
|
||||
|
||||
const dump = this._stories.dumpStoryBook();
|
||||
|
||||
const nonEmptyKind = dump.find((kind: any) => kind.stories.length > 0);
|
||||
if (nonEmptyKind) {
|
||||
return this._getStory({ kind: nonEmptyKind.kind, story: nonEmptyKind.stories[0] });
|
||||
const stories = this._stories.raw();
|
||||
if (stories && stories.length) {
|
||||
return this._getStory(stories[0].id);
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
_getStory(selection: { kind: string; story: string }) {
|
||||
const { kind, story } = selection;
|
||||
const storyFn = this._stories.getStoryWithContext(kind, story);
|
||||
return { ...selection, storyFn };
|
||||
_getStory(storyId: string) {
|
||||
return this._stories.fromId(storyId);
|
||||
}
|
||||
|
||||
_selectStoryEvent(selection: { kind: string; story: string }) {
|
||||
AsyncStorage.setItem(STORAGE_KEY, JSON.stringify(selection));
|
||||
_selectStoryEvent({ storyId }: { storyId: string }) {
|
||||
if (storyId) {
|
||||
try {
|
||||
AsyncStorage.setItem(STORAGE_KEY, JSON.stringify(storyId));
|
||||
} catch (e) {
|
||||
//
|
||||
}
|
||||
|
||||
if (selection) {
|
||||
const story = this._getStory(selection);
|
||||
const story = this._getStory(storyId);
|
||||
this._selectStory(story);
|
||||
}
|
||||
}
|
||||
|
||||
_selectStory(story: any) {
|
||||
this.currentStory = story;
|
||||
const channel = addons.getChannel();
|
||||
|
||||
this._stories.setSelection(story);
|
||||
channel.emit(Events.SELECT_STORY, story);
|
||||
}
|
||||
|
||||
_checkStory(selection: any) {
|
||||
if (!selection || typeof selection !== 'object' || !selection.kind || !selection.story) {
|
||||
_checkStory(storyId: string) {
|
||||
if (!storyId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const story = this._getStory(selection);
|
||||
const story = this._getStory(storyId);
|
||||
|
||||
if (story.storyFn === null) {
|
||||
return null;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -29,8 +29,8 @@
|
||||
"@babel/plugin-transform-react-constant-elements": "^7.2.0",
|
||||
"@babel/preset-flow": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/node-logger": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"@storybook/node-logger": "5.2.0-alpha.32",
|
||||
"@svgr/webpack": "^4.0.3",
|
||||
"babel-plugin-add-react-displayname": "^0.0.5",
|
||||
"babel-plugin-named-asset-import": "^0.3.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/riot",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for riot.js: View riot snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -25,7 +25,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -26,7 +26,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -26,7 +26,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-parameter",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"devkit",
|
||||
@ -24,12 +24,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-roundtrip",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "roundtrip addon for storybook",
|
||||
"keywords": [
|
||||
"devkit",
|
||||
@ -24,12 +24,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1 +1 @@
|
||||
{"version":"5.2.0-alpha.31","info":{"plain":"### Breaking Changes\n\n* Module format: story field for name/parameters annotation ([#7202](https://github.com/storybookjs/storybook/pull/7202))\n\n### Features\n\n* Core: Story sorting ([#6472](https://github.com/storybookjs/storybook/pull/6472))\n\n### Maintenance\n\n* Addon-docs: Fix source-loader CI errors ([#7203](https://github.com/storybookjs/storybook/pull/7203))"}}
|
||||
{"version":"5.2.0-alpha.32","info":{"plain":"### Features\n\n* Addon-docs: Add .story.mdx support to preset ([#7229](https://github.com/storybookjs/storybook/pull/7229))\n\n### Bug Fixes\n\n* React-native: Fix react native server ([#7187](https://github.com/storybookjs/storybook/pull/7187))\n* Addon-docs: Fix source-loader in monorepo examples ([#7214](https://github.com/storybookjs/storybook/pull/7214))\n\n### Maintenance\n\n* Addon-docs: Convert repo stories to new module format ([#7175](https://github.com/storybookjs/storybook/pull/7175))"}}
|
@ -1,4 +1,6 @@
|
||||
export default from './storybook';
|
||||
import StorybookUIRoot from './storybook';
|
||||
|
||||
export { StorybookUIRoot as default };
|
||||
|
||||
// NOTE: The code below is what CRNA generates out of the box. We currently
|
||||
// have no clever way of replacing this with Storybook's UI (Vanilla RN does!)
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
const path = require('path');
|
||||
const blacklist = require('metro-config/src/defaults/blacklist');
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "crna-kitchen-sink",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"main": "node_modules/expo/AppEntry.js",
|
||||
"scripts": {
|
||||
@ -24,14 +24,14 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.2.2",
|
||||
"@babel/plugin-transform-react-jsx-source": "^7.2.0",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-ondevice-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-ondevice-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-ondevice-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-ondevice-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/react-native": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-ondevice-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-ondevice-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-ondevice-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-ondevice-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/react-native": "5.2.0-alpha.32",
|
||||
"babel-loader": "^8.0.4",
|
||||
"babel-plugin-module-resolver": "^3.2.0",
|
||||
"babel-preset-expo": "^5.1.1",
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import '@storybook/addon-actions/register';
|
||||
import '@storybook/addon-links/register';
|
||||
import '@storybook/addon-options/register';
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import React from 'react';
|
||||
import { Text } from 'react-native';
|
||||
|
||||
@ -7,6 +8,7 @@ import { linkTo } from '@storybook/addon-links';
|
||||
import { withKnobs } from '@storybook/addon-knobs';
|
||||
import { withBackgrounds } from '@storybook/addon-ondevice-backgrounds';
|
||||
import knobsWrapper from './Knobs';
|
||||
// eslint-disable-next-line import/no-unresolved, import/extensions
|
||||
import Button from './Button';
|
||||
import CenterView from './CenterView';
|
||||
import Welcome from './Welcome';
|
||||
@ -20,19 +22,22 @@ addParameters({
|
||||
],
|
||||
});
|
||||
|
||||
storiesOf('Welcome', module).addParameters({
|
||||
component: Welcome
|
||||
}).add('to Storybook', () => <Welcome showApp={linkTo('Button')} />, {
|
||||
notes: `
|
||||
storiesOf('Welcome', module)
|
||||
.addParameters({
|
||||
component: Welcome,
|
||||
})
|
||||
.add('to Storybook', () => <Welcome showApp={linkTo('Button')} />, {
|
||||
notes: `
|
||||
# Markdown!\n
|
||||
* List Item
|
||||
* [List Item with Link](https://storybook.js.org)
|
||||
`,
|
||||
});
|
||||
});
|
||||
|
||||
storiesOf('Button', module).addParameters({
|
||||
component: Button
|
||||
})
|
||||
storiesOf('Button', module)
|
||||
.addParameters({
|
||||
component: Button,
|
||||
})
|
||||
.addParameters({
|
||||
backgrounds: [
|
||||
{ name: 'dark', value: '#222222' },
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "angular-cli",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
@ -34,19 +34,19 @@
|
||||
"@angular-devkit/build-angular": "^0.13.4",
|
||||
"@angular/cli": "^7.3.6",
|
||||
"@angular/compiler-cli": "^7.2.6",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/angular": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/angular": "5.2.0-alpha.32",
|
||||
"@types/core-js": "^2.5.0",
|
||||
"@types/jest": "^24.0.11",
|
||||
"@types/node": "~12.0.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-kitchen-sink",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -19,22 +19,22 @@
|
||||
"react-lifecycles-compat": "^3.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-events": "5.2.0-alpha.31",
|
||||
"@storybook/addon-info": "5.2.0-alpha.31",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/react": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-events": "5.2.0-alpha.32",
|
||||
"@storybook/addon-info": "5.2.0-alpha.32",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/react": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"react-scripts": "^3.0.1"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-react15",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"babel-loader": "8.0.6",
|
||||
@ -19,10 +19,10 @@
|
||||
"build-storybook": "build-storybook -s public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/react": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/react": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"babel-core": "6",
|
||||
"babel-runtime": "6"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-kitchen-sink",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook -s public",
|
||||
@ -14,12 +14,12 @@
|
||||
"react-dom": "^16.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-info": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/react": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-info": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/react": "5.2.0-alpha.32",
|
||||
"@types/enzyme": "^3.9.0",
|
||||
"@types/react": "^16.8.3",
|
||||
"@types/react-dom": "^16.8.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-devkits",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook -c ./ -s built-storybooks",
|
||||
@ -8,14 +8,14 @@
|
||||
"storybook": "start-storybook -p 9011 -c ./"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-parameter": "5.2.0-alpha.31",
|
||||
"@storybook/addon-roundtrip": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/node-logger": "5.2.0-alpha.31",
|
||||
"@storybook/react": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addon-parameter": "5.2.0-alpha.32",
|
||||
"@storybook/addon-roundtrip": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/node-logger": "5.2.0-alpha.32",
|
||||
"@storybook/react": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^5.2.0",
|
||||
"enzyme-to-json": "^3.3.5",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ember-example",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "ember build",
|
||||
@ -15,19 +15,19 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.3.4",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/ember": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/ember": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"babel-loader": "^8",
|
||||
"broccoli-asset-rev": "^3.0.0",
|
||||
"cross-env": "^5.2.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "html-kitchen-sink",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -14,24 +14,24 @@
|
||||
"storybook": "start-storybook -p 9006"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-events": "5.2.0-alpha.31",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/core": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/html": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-events": "5.2.0-alpha.32",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/core": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/html": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"eventemitter3": "^3.1.0",
|
||||
"format-json": "^1.0.3",
|
||||
"global": "^4.3.2"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "marko-cli",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"description": "Demo of how to build an app using marko-starter",
|
||||
"repository": {
|
||||
@ -24,14 +24,14 @@
|
||||
"marko-starter": "^2.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/marko": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/marko": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"prettier": "^1.16.4",
|
||||
"webpack": "^4.33.0"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mithril-example",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook",
|
||||
@ -11,20 +11,20 @@
|
||||
"mithril": "^1.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/mithril": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/mithril": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"webpack": "^4.33.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "official-storybook",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook -c ./ -s built-storybooks",
|
||||
@ -15,34 +15,34 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@packtracker/webpack-plugin": "^2.0.1",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-contexts": "5.2.0-alpha.31",
|
||||
"@storybook/addon-cssresources": "5.2.0-alpha.31",
|
||||
"@storybook/addon-design-assets": "5.2.0-alpha.31",
|
||||
"@storybook/addon-docs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-events": "5.2.0-alpha.31",
|
||||
"@storybook/addon-graphql": "5.2.0-alpha.31",
|
||||
"@storybook/addon-info": "5.2.0-alpha.31",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-queryparams": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots-puppeteer": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/node-logger": "5.2.0-alpha.31",
|
||||
"@storybook/react": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-contexts": "5.2.0-alpha.32",
|
||||
"@storybook/addon-cssresources": "5.2.0-alpha.32",
|
||||
"@storybook/addon-design-assets": "5.2.0-alpha.32",
|
||||
"@storybook/addon-docs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-events": "5.2.0-alpha.32",
|
||||
"@storybook/addon-graphql": "5.2.0-alpha.32",
|
||||
"@storybook/addon-info": "5.2.0-alpha.32",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-queryparams": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots-puppeteer": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/components": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/node-logger": "5.2.0-alpha.32",
|
||||
"@storybook/react": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^5.2.0",
|
||||
"enzyme-to-json": "^3.3.5",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "polymer-cli",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook",
|
||||
@ -10,17 +10,17 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@polymer/polymer": "^2.6.0",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/polymer": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/polymer": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"@webcomponents/webcomponentsjs": "^1.2.0",
|
||||
"global": "^4.3.2",
|
||||
"lit-html": "^1.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "preact-example",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -16,21 +16,21 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.3.4",
|
||||
"@babel/plugin-transform-runtime": "^7.2.0",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-contexts": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/preact": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-contexts": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/preact": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"babel-loader": "^8.0.4",
|
||||
"cross-env": "^5.2.0",
|
||||
"file-loader": "^3.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rax-kitchen-sink",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test:generate-output": "jest --json --outputFile=jest-test-results.json --config=./jest-addon.config.js",
|
||||
@ -24,23 +24,23 @@
|
||||
"rax-view": "^0.6.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-events": "5.2.0-alpha.31",
|
||||
"@storybook/addon-info": "5.2.0-alpha.31",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/rax": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-events": "5.2.0-alpha.32",
|
||||
"@storybook/addon-info": "5.2.0-alpha.32",
|
||||
"@storybook/addon-jest": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/rax": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"babel-eslint": "^8.2.2",
|
||||
"babel-preset-rax": "^1.0.0-beta.0",
|
||||
"rax-scripts": "^1.0.0-beta.10",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "riot-example",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -16,20 +16,20 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.3.4",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/riot": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/riot": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"babel-loader": "^8.0.4",
|
||||
"cross-env": "^5.2.0",
|
||||
"file-loader": "^3.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "svelte-example",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook -s public",
|
||||
@ -11,19 +11,19 @@
|
||||
"global": "^4.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/svelte": "5.2.0-alpha.31"
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"@storybook/svelte": "5.2.0-alpha.32"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-example",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,24 +15,22 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.3.4",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.31",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-contexts": "5.2.0-alpha.31",
|
||||
"@storybook/addon-docs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.31",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/components": "5.2.0-alpha.31",
|
||||
"@storybook/source-loader": "5.2.0-alpha.31",
|
||||
"@storybook/vue": "5.2.0-alpha.31",
|
||||
"@storybook/addon-a11y": "5.2.0-alpha.32",
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-backgrounds": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-contexts": "5.2.0-alpha.32",
|
||||
"@storybook/addon-docs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storysource": "5.2.0-alpha.32",
|
||||
"@storybook/addon-viewport": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/source-loader": "5.2.0-alpha.32",
|
||||
"@storybook/vue": "5.2.0-alpha.32",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-loader": "^8.0.5",
|
||||
"cross-env": "^5.2.0",
|
||||
|
@ -2,5 +2,5 @@
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"registry": "https://registry.npmjs.org",
|
||||
"version": "5.2.0-alpha.31"
|
||||
"version": "5.2.0-alpha.32"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addons",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook addons store",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -21,9 +21,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/api": "5.2.0-alpha.31",
|
||||
"@storybook/channels": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/api": "5.2.0-alpha.32",
|
||||
"@storybook/channels": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"util-deprecate": "^1.0.2"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/api",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Core Storybook API & Context",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -20,11 +20,11 @@
|
||||
"prepare": "node ./scripts/generateVersion.js && node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/router": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/channels": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/router": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"fast-deep-equal": "^2.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1 +1 @@
|
||||
export const version = '5.2.0-alpha.31';
|
||||
export const version = '5.2.0-alpha.32';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-postmessage",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -21,8 +21,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/channels": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"telejson": "^2.2.1"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-websocket",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -21,7 +21,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "5.2.0-alpha.31",
|
||||
"@storybook/channels": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"json-fn": "^1.1.1"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channels",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -12,17 +12,12 @@ import {
|
||||
} from '../../lib/helpers';
|
||||
|
||||
export default async (npmOptions, installServer) => {
|
||||
const [
|
||||
storybookVersion,
|
||||
addonsVersion,
|
||||
actionsVersion,
|
||||
linksVersion,
|
||||
] = await getVersions(
|
||||
const [storybookVersion, addonsVersion, actionsVersion, linksVersion] = await getVersions(
|
||||
npmOptions,
|
||||
'@storybook/react-native',
|
||||
'@storybook/addons',
|
||||
'@storybook/addon-actions',
|
||||
'@storybook/addon-links',
|
||||
'@storybook/addon-links'
|
||||
);
|
||||
|
||||
// copy all files from the template directory to project directory
|
||||
@ -76,8 +71,5 @@ export default async (npmOptions, installServer) => {
|
||||
|
||||
const babelDependencies = await getBabelDependencies(npmOptions, packageJson);
|
||||
|
||||
installDependencies(npmOptions, [
|
||||
...devDependencies,
|
||||
...babelDependencies,
|
||||
]);
|
||||
installDependencies(npmOptions, [...devDependencies, ...babelDependencies]);
|
||||
};
|
||||
|
@ -5,6 +5,7 @@ import { storiesOf } from '@storybook/react-native';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import { linkTo } from '@storybook/addon-links';
|
||||
|
||||
// eslint-disable-next-line import/extensions
|
||||
import Button from './Button';
|
||||
import CenterView from './CenterView';
|
||||
import Welcome from './Welcome';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/cli",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
|
||||
"keywords": [
|
||||
"cli",
|
||||
@ -30,7 +30,7 @@
|
||||
"@babel/core": "^7.4.5",
|
||||
"@babel/preset-env": "^7.4.5",
|
||||
"@babel/register": "^7.0.0",
|
||||
"@storybook/codemod": "5.2.0-alpha.31",
|
||||
"@storybook/codemod": "5.2.0-alpha.32",
|
||||
"chalk": "^2.4.1",
|
||||
"commander": "^2.19.0",
|
||||
"core-js": "^3.0.1",
|
||||
@ -45,33 +45,33 @@
|
||||
"update-notifier": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "5.2.0-alpha.31",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.31",
|
||||
"@storybook/addon-graphql": "5.2.0-alpha.31",
|
||||
"@storybook/addon-info": "5.2.0-alpha.31",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.31",
|
||||
"@storybook/addon-links": "5.2.0-alpha.31",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.31",
|
||||
"@storybook/addon-options": "5.2.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/angular": "5.2.0-alpha.31",
|
||||
"@storybook/channel-postmessage": "5.2.0-alpha.31",
|
||||
"@storybook/channel-websocket": "5.2.0-alpha.31",
|
||||
"@storybook/channels": "5.2.0-alpha.31",
|
||||
"@storybook/ember": "5.2.0-alpha.31",
|
||||
"@storybook/html": "5.2.0-alpha.31",
|
||||
"@storybook/marko": "5.2.0-alpha.31",
|
||||
"@storybook/mithril": "5.2.0-alpha.31",
|
||||
"@storybook/polymer": "5.2.0-alpha.31",
|
||||
"@storybook/preact": "5.2.0-alpha.31",
|
||||
"@storybook/rax": "5.2.0-alpha.31",
|
||||
"@storybook/react": "5.2.0-alpha.31",
|
||||
"@storybook/react-native": "5.2.0-alpha.31",
|
||||
"@storybook/riot": "5.2.0-alpha.31",
|
||||
"@storybook/svelte": "5.2.0-alpha.31",
|
||||
"@storybook/ui": "5.2.0-alpha.31",
|
||||
"@storybook/vue": "5.2.0-alpha.31"
|
||||
"@storybook/addon-actions": "5.2.0-alpha.32",
|
||||
"@storybook/addon-centered": "5.2.0-alpha.32",
|
||||
"@storybook/addon-graphql": "5.2.0-alpha.32",
|
||||
"@storybook/addon-info": "5.2.0-alpha.32",
|
||||
"@storybook/addon-knobs": "5.2.0-alpha.32",
|
||||
"@storybook/addon-links": "5.2.0-alpha.32",
|
||||
"@storybook/addon-notes": "5.2.0-alpha.32",
|
||||
"@storybook/addon-options": "5.2.0-alpha.32",
|
||||
"@storybook/addon-storyshots": "5.2.0-alpha.32",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/angular": "5.2.0-alpha.32",
|
||||
"@storybook/channel-postmessage": "5.2.0-alpha.32",
|
||||
"@storybook/channel-websocket": "5.2.0-alpha.32",
|
||||
"@storybook/channels": "5.2.0-alpha.32",
|
||||
"@storybook/ember": "5.2.0-alpha.32",
|
||||
"@storybook/html": "5.2.0-alpha.32",
|
||||
"@storybook/marko": "5.2.0-alpha.32",
|
||||
"@storybook/mithril": "5.2.0-alpha.32",
|
||||
"@storybook/polymer": "5.2.0-alpha.32",
|
||||
"@storybook/preact": "5.2.0-alpha.32",
|
||||
"@storybook/rax": "5.2.0-alpha.32",
|
||||
"@storybook/react": "5.2.0-alpha.32",
|
||||
"@storybook/react-native": "5.2.0-alpha.32",
|
||||
"@storybook/riot": "5.2.0-alpha.32",
|
||||
"@storybook/svelte": "5.2.0-alpha.32",
|
||||
"@storybook/ui": "5.2.0-alpha.32",
|
||||
"@storybook/vue": "5.2.0-alpha.32"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-api",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook Client API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -20,10 +20,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/router": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/router": "5.2.0-alpha.32",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"eventemitter3": "^3.1.0",
|
||||
|
@ -97,7 +97,15 @@ export default class StoryStore extends EventEmitter {
|
||||
this._selection = data === undefined ? this._selection : { storyId, viewMode };
|
||||
this._error = error === undefined ? this._error : error;
|
||||
|
||||
setTimeout(() => this.emit(Events.STORY_RENDER), 1);
|
||||
setTimeout(() => {
|
||||
// preferred method to emit event.
|
||||
if (this._channel) {
|
||||
this._channel.emit(Events.STORY_RENDER);
|
||||
}
|
||||
|
||||
// should be deprecated in future.
|
||||
this.emit(Events.STORY_RENDER);
|
||||
}, 1);
|
||||
};
|
||||
|
||||
getSelection = () => this._selection;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-logger",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/codemod",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "A collection of codemod scripts written with JSCodeshift",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/components",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Core Storybook Components",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -21,8 +21,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"markdown-to-jsx": "^6.9.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-events",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Event names used in storybook core",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core",
|
||||
"version": "5.2.0-alpha.31",
|
||||
"version": "5.2.0-alpha.32",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -25,15 +25,15 @@
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
||||
"@babel/plugin-transform-react-constant-elements": "^7.2.0",
|
||||
"@babel/preset-env": "^7.4.5",
|
||||
"@storybook/addons": "5.2.0-alpha.31",
|
||||
"@storybook/channel-postmessage": "5.2.0-alpha.31",
|
||||
"@storybook/client-api": "5.2.0-alpha.31",
|
||||
"@storybook/client-logger": "5.2.0-alpha.31",
|
||||
"@storybook/core-events": "5.2.0-alpha.31",
|
||||
"@storybook/node-logger": "5.2.0-alpha.31",
|
||||
"@storybook/router": "5.2.0-alpha.31",
|
||||
"@storybook/theming": "5.2.0-alpha.31",
|
||||
"@storybook/ui": "5.2.0-alpha.31",
|
||||
"@storybook/addons": "5.2.0-alpha.32",
|
||||
"@storybook/channel-postmessage": "5.2.0-alpha.32",
|
||||
"@storybook/client-api": "5.2.0-alpha.32",
|
||||
"@storybook/client-logger": "5.2.0-alpha.32",
|
||||
"@storybook/core-events": "5.2.0-alpha.32",
|
||||
"@storybook/node-logger": "5.2.0-alpha.32",
|
||||
"@storybook/router": "5.2.0-alpha.32",
|
||||
"@storybook/theming": "5.2.0-alpha.32",
|
||||
"@storybook/ui": "5.2.0-alpha.32",
|
||||
"airbnb-js-shims": "^1 || ^2",
|
||||
"ansi-to-html": "^0.6.11",
|
||||
"autoprefixer": "^9.4.9",
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user