diff --git a/.circleci/config.yml b/.circleci/config.yml index 55069b50583..829bfa4fd66 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -81,6 +81,11 @@ jobs: command: | cd examples/angular-cli yarn build-storybook + - run: + name: "Build polymer-cli" + command: | + cd examples/polymer-cli + yarn build-storybook - run: name: "Run react kitchen-sink (smoke test)" command: | @@ -96,6 +101,10 @@ jobs: command: | cd examples/angular-cli yarn storybook --smoke-test + - run: + name: "Visually test storybook" + command: | + yarn chromatic - run: name: "Run image snapshots" command: yarn test --image @@ -207,26 +216,6 @@ jobs: command: | yarn test --coverage --runInBand --core yarn coverage - storybook: - <<: *defaults - steps: - - checkout - - restore_cache: - name: "Restore core dependencies cache" - keys: - - core-dependencies-{{ checksum "yarn.lock" }} - - restore_cache: - name: "Restore core dist cache" - keys: - - core-dist-{{ .Revision }} - - run: - name: "Link packages" - command: | - yarn install - - run: - name: "Visually test storybook" - command: | - yarn chromatic cli: working_directory: /tmp/storybook docker: @@ -292,9 +281,6 @@ workflows: - unit-test: requires: - build - - storybook: - requires: - - build - cli: requires: - build diff --git a/addons/actions/package.json b/addons/actions/package.json index 91d6d3fc68d..6bfd462717f 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -22,7 +22,7 @@ "dependencies": { "deep-equal": "^1.0.1", "global": "^4.3.2", - "make-error": "^1.3.3", + "make-error": "^1.3.4", "prop-types": "^15.6.0", "react-inspector": "^2.2.2", "uuid": "^3.2.1" diff --git a/addons/storyshots/package.json b/addons/storyshots/package.json index ff836edf215..9d212b1c389 100644 --- a/addons/storyshots/package.json +++ b/addons/storyshots/package.json @@ -36,8 +36,8 @@ "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "enzyme-to-json": "^3.3.1", - "jest": "^22.1.4", - "jest-cli": "^22.1.4", + "jest": "^22.3.0", + "jest-cli": "^22.3.0", "react": "^16.1.0", "react-dom": "^16.1.0" }, diff --git a/app/angular/package.json b/app/angular/package.json index 061e9837c04..c13a9d91b71 100644 --- a/app/angular/package.json +++ b/app/angular/package.json @@ -69,7 +69,7 @@ "react": "^16.0.0", "react-dev-utils": "^5.0.0", "react-dom": "^16.0.0", - "react-modal": "^3.1.13", + "react-modal": "^3.2.1", "redux": "^3.6.0", "request": "^2.81.0", "rxjs": "^5.4.2", diff --git a/app/polymer/package.json b/app/polymer/package.json index 662264edbb7..f346f93e68f 100644 --- a/app/polymer/package.json +++ b/app/polymer/package.json @@ -68,7 +68,7 @@ "react": "^16.0.0", "react-dev-utils": "^5.0.0", "react-dom": "^16.0.0", - "react-modal": "^3.1.13", + "react-modal": "^3.2.1", "redux": "^3.7.2", "request": "^2.83.0", "style-loader": "^0.20.1", diff --git a/app/react-native/package.json b/app/react-native/package.json index b611c0d84f1..980763667b1 100644 --- a/app/react-native/package.json +++ b/app/react-native/package.json @@ -60,7 +60,7 @@ "postcss-loader": "^2.1.0", "prop-types": "^15.6.0", "react-native-compat": "^1.0.0", - "react-native-iphone-x-helper": "^1.0.1", + "react-native-iphone-x-helper": "^1.0.2", "shelljs": "^0.8.1", "style-loader": "^0.20.1", "uglifyjs-webpack-plugin": "^1.1.7", diff --git a/docs/package.json b/docs/package.json index b1904a637cc..69b2aaa15b0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -31,15 +31,15 @@ "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "bootstrap": "^3.3.7", - "gatsby": "^1.9.193", - "gatsby-link": "^1.6.36", - "gatsby-plugin-sharp": "^1.6.27", - "gatsby-remark-autolink-headers": "^1.4.11", - "gatsby-remark-copy-linked-files": "^1.5.26", - "gatsby-remark-images": "^1.5.43", - "gatsby-remark-smartypants": "^1.4.10", - "gatsby-source-filesystem": "^1.5.18", - "gatsby-transformer-remark": "^1.7.31", + "gatsby": "^1.9.199", + "gatsby-link": "^1.6.37", + "gatsby-plugin-sharp": "^1.6.28", + "gatsby-remark-autolink-headers": "^1.4.12", + "gatsby-remark-copy-linked-files": "^1.5.27", + "gatsby-remark-images": "^1.5.44", + "gatsby-remark-smartypants": "^1.4.11", + "gatsby-source-filesystem": "^1.5.19", + "gatsby-transformer-remark": "^1.7.32", "gh-pages": "^1.1.0", "global": "^4.3.2", "highlight.js": "^9.12.0", diff --git a/docs/yarn.lock b/docs/yarn.lock index 588874becae..75941d59c9e 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -3955,6 +3955,10 @@ fast-glob@^1.0.1: micromatch "^3.0.3" readdir-enhanced "^1.5.2" +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + fast-memoize@^2.2.7: version "2.2.8" resolved "https://registry.yarnpkg.com/fast-memoize/-/fast-memoize-2.2.8.tgz#d7f899f31d037b12d9db4281912f9018575720b1" @@ -4346,15 +4350,15 @@ fuse.js@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/fuse.js/-/fuse.js-3.2.0.tgz#f0448e8069855bf2a3e683cdc1d320e7e2a07ef4" -gatsby-1-config-css-modules@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/gatsby-1-config-css-modules/-/gatsby-1-config-css-modules-1.0.8.tgz#c051b7be22c6d07d485c2d9d05e0b88c13f4a572" +gatsby-1-config-css-modules@^1.0.9: + version "1.0.9" + resolved "https://registry.yarnpkg.com/gatsby-1-config-css-modules/-/gatsby-1-config-css-modules-1.0.9.tgz#ae7ebffcaea4b1cc821951b71c123107d697bfaa" dependencies: babel-runtime "^6.26.0" -gatsby-cli@^1.1.39: - version "1.1.39" - resolved "https://registry.yarnpkg.com/gatsby-cli/-/gatsby-cli-1.1.39.tgz#f2f4bf67d081de88c0a9a3728d9fcf0e215e182d" +gatsby-cli@^1.1.40: + version "1.1.40" + resolved "https://registry.yarnpkg.com/gatsby-cli/-/gatsby-cli-1.1.40.tgz#6d81d245092f1eb983a2c3015875c3750c7d7db8" dependencies: babel-code-frame "^6.26.0" babel-runtime "^6.26.0" @@ -4374,9 +4378,9 @@ gatsby-cli@^1.1.39: yargs "^8.0.2" yurnalist "^0.2.1" -gatsby-link@^1.6.36: - version "1.6.36" - resolved "https://registry.yarnpkg.com/gatsby-link/-/gatsby-link-1.6.36.tgz#3f969d38e9396e2650d3804543c76881eab98feb" +gatsby-link@^1.6.37: + version "1.6.37" + resolved "https://registry.yarnpkg.com/gatsby-link/-/gatsby-link-1.6.37.tgz#d132290c0239dc2e11a9106353c586f969194673" dependencies: "@types/history" "^4.6.2" "@types/react-router-dom" "^4.2.2" @@ -4384,16 +4388,16 @@ gatsby-link@^1.6.36: prop-types "^15.5.8" ric "^1.3.0" -gatsby-module-loader@^1.0.9: - version "1.0.9" - resolved "https://registry.yarnpkg.com/gatsby-module-loader/-/gatsby-module-loader-1.0.9.tgz#a33f3496589577749d2fbb680f7bab9ddcc86172" +gatsby-module-loader@^1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/gatsby-module-loader/-/gatsby-module-loader-1.0.10.tgz#32560de487ea5523097917bc1dc76b9a1247bbe9" dependencies: babel-runtime "^6.26.0" loader-utils "^0.2.16" -gatsby-plugin-sharp@^1.6.27: - version "1.6.27" - resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-1.6.27.tgz#28b697d19417ec1bf5ad0d4d805d5c634ed12c46" +gatsby-plugin-sharp@^1.6.28: + version "1.6.28" + resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-1.6.28.tgz#4f485f4be15d2e64a7876455aea1fc9ed80b05a7" dependencies: async "^2.1.2" babel-runtime "^6.26.0" @@ -4408,26 +4412,26 @@ gatsby-plugin-sharp@^1.6.27: sharp "^0.19.0" svgo "^0.7.2" -gatsby-react-router-scroll@^1.0.10: - version "1.0.10" - resolved "https://registry.yarnpkg.com/gatsby-react-router-scroll/-/gatsby-react-router-scroll-1.0.10.tgz#a520ea98fd25d5c307790974b13955cb128e01df" +gatsby-react-router-scroll@^1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/gatsby-react-router-scroll/-/gatsby-react-router-scroll-1.0.11.tgz#1ad3bdfc7f0a897abf24e4d89111ee49de516691" dependencies: babel-runtime "^6.26.0" scroll-behavior "^0.9.9" warning "^3.0.0" -gatsby-remark-autolink-headers@^1.4.11: - version "1.4.11" - resolved "https://registry.yarnpkg.com/gatsby-remark-autolink-headers/-/gatsby-remark-autolink-headers-1.4.11.tgz#d6d33613c18e405d90177dfa7dd54dd7853b4759" +gatsby-remark-autolink-headers@^1.4.12: + version "1.4.12" + resolved "https://registry.yarnpkg.com/gatsby-remark-autolink-headers/-/gatsby-remark-autolink-headers-1.4.12.tgz#98d1cc3b2d08dd24fe145db6360d7afb04c3874c" dependencies: babel-runtime "^6.26.0" github-slugger "^1.1.1" mdast-util-to-string "^1.0.2" unist-util-visit "^1.1.1" -gatsby-remark-copy-linked-files@^1.5.26: - version "1.5.26" - resolved "https://registry.yarnpkg.com/gatsby-remark-copy-linked-files/-/gatsby-remark-copy-linked-files-1.5.26.tgz#d223fc9d7dba45b48b90a29d5e40af4c59807baa" +gatsby-remark-copy-linked-files@^1.5.27: + version "1.5.27" + resolved "https://registry.yarnpkg.com/gatsby-remark-copy-linked-files/-/gatsby-remark-copy-linked-files-1.5.27.tgz#09657a439e14696e2e81b3b752632d1ae1367c89" dependencies: babel-runtime "^6.26.0" cheerio "^1.0.0-rc.2" @@ -4438,30 +4442,30 @@ gatsby-remark-copy-linked-files@^1.5.26: path-is-inside "^1.0.2" unist-util-visit "^1.1.1" -gatsby-remark-images@^1.5.43: - version "1.5.43" - resolved "https://registry.yarnpkg.com/gatsby-remark-images/-/gatsby-remark-images-1.5.43.tgz#155137f259391342c5d2832d085d63319412180a" +gatsby-remark-images@^1.5.44: + version "1.5.44" + resolved "https://registry.yarnpkg.com/gatsby-remark-images/-/gatsby-remark-images-1.5.44.tgz#19c0cdbb8fbe49c2b3f3e76d02994af8bb57d586" dependencies: babel-runtime "^6.26.0" cheerio "^1.0.0-rc.2" - gatsby-plugin-sharp "^1.6.27" + gatsby-plugin-sharp "^1.6.28" is-relative-url "^2.0.0" lodash "^4.17.4" slash "^1.0.0" unist-util-select "^1.5.0" -gatsby-remark-smartypants@^1.4.10: - version "1.4.10" - resolved "https://registry.yarnpkg.com/gatsby-remark-smartypants/-/gatsby-remark-smartypants-1.4.10.tgz#b04c06741529e693dc54fe23e191edb3cf0aea9e" +gatsby-remark-smartypants@^1.4.11: + version "1.4.11" + resolved "https://registry.yarnpkg.com/gatsby-remark-smartypants/-/gatsby-remark-smartypants-1.4.11.tgz#86e756aa9f093f25627961b00c14bcec6ebd1894" dependencies: babel-runtime "^6.26.0" retext "^4.0.0" retext-smartypants "^2.0.0" unist-util-visit "^1.1.1" -gatsby-source-filesystem@^1.5.18: - version "1.5.18" - resolved "https://registry.yarnpkg.com/gatsby-source-filesystem/-/gatsby-source-filesystem-1.5.18.tgz#e2cb96a2c248c304e58ba3d0142316a695d3ef35" +gatsby-source-filesystem@^1.5.19: + version "1.5.19" + resolved "https://registry.yarnpkg.com/gatsby-source-filesystem/-/gatsby-source-filesystem-1.5.19.tgz#bce5596d525f2098624a0c99c27d956fcb753c3d" dependencies: babel-cli "^6.26.0" babel-runtime "^6.26.0" @@ -4475,9 +4479,9 @@ gatsby-source-filesystem@^1.5.18: slash "^1.0.0" valid-url "^1.0.9" -gatsby-transformer-remark@^1.7.31: - version "1.7.31" - resolved "https://registry.yarnpkg.com/gatsby-transformer-remark/-/gatsby-transformer-remark-1.7.31.tgz#b429e14e60c8cf8809def0c6c914627ef7ff3a1c" +gatsby-transformer-remark@^1.7.32: + version "1.7.32" + resolved "https://registry.yarnpkg.com/gatsby-transformer-remark/-/gatsby-transformer-remark-1.7.32.tgz#c16d2a2655f5a027626c7aee5e92850eaeae4664" dependencies: babel-runtime "^6.26.0" bluebird "^3.5.0" @@ -4500,9 +4504,9 @@ gatsby-transformer-remark@^1.7.31: unist-util-select "^1.5.0" unist-util-visit "^1.1.1" -gatsby@^1.9.193: - version "1.9.193" - resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-1.9.193.tgz#95cfb31b834dac124a0b2922948ea54c983f8682" +gatsby@^1.9.199: + version "1.9.199" + resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-1.9.199.tgz#8d23dcd1d3b33d012074cc8a439174dfc5a700f6" dependencies: async "^2.1.2" babel-code-frame "^6.22.0" @@ -4536,20 +4540,21 @@ gatsby@^1.9.193: express "^4.14.0" express-graphql "^0.6.6" extract-text-webpack-plugin "^1.0.1" + fast-levenshtein "~2.0.4" file-loader "^0.9.0" flat "^2.0.1" friendly-errors-webpack-plugin "^1.6.1" front-matter "^2.1.0" fs-extra "^4.0.1" - gatsby-1-config-css-modules "^1.0.8" - gatsby-cli "^1.1.39" - gatsby-link "^1.6.36" - gatsby-module-loader "^1.0.9" - gatsby-react-router-scroll "^1.0.10" + gatsby-1-config-css-modules "^1.0.9" + gatsby-cli "^1.1.40" + gatsby-link "^1.6.37" + gatsby-module-loader "^1.0.10" + gatsby-react-router-scroll "^1.0.11" glob "^7.1.1" graphql "^0.11.7" graphql-relay "^0.5.1" - graphql-skip-limit "^1.0.9" + graphql-skip-limit "^1.0.10" history "^4.6.2" invariant "^2.2.2" is-relative "^0.2.1" @@ -4909,9 +4914,9 @@ graphql-relay@^0.5.1: version "0.5.3" resolved "https://registry.yarnpkg.com/graphql-relay/-/graphql-relay-0.5.3.tgz#56a78ac07c87d89795a34db6b8e9681b827be5b5" -graphql-skip-limit@^1.0.9: - version "1.0.9" - resolved "https://registry.yarnpkg.com/graphql-skip-limit/-/graphql-skip-limit-1.0.9.tgz#20d0de6bd6cf3460c4fdcee3d6b379634d0d44b7" +graphql-skip-limit@^1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/graphql-skip-limit/-/graphql-skip-limit-1.0.10.tgz#0923b8b2e333cfc5d47283fa3e376657a1378452" dependencies: babel-runtime "^6.26.0" graphql "^0.11.7" diff --git a/examples/angular-cli/package.json b/examples/angular-cli/package.json index b1a791ac30f..83b3532a46f 100644 --- a/examples/angular-cli/package.json +++ b/examples/angular-cli/package.json @@ -13,23 +13,23 @@ "test": "ng test" }, "dependencies": { - "@angular/animations": "^5.2.4", - "@angular/common": "^5.2.4", - "@angular/compiler": "^5.2.4", - "@angular/core": "^5.2.4", - "@angular/forms": "^5.2.4", - "@angular/http": "^5.2.4", - "@angular/platform-browser": "^5.2.4", - "@angular/platform-browser-dynamic": "^5.2.4", - "@angular/router": "^5.2.4", + "@angular/animations": "^5.2.5", + "@angular/common": "^5.2.5", + "@angular/compiler": "^5.2.5", + "@angular/core": "^5.2.5", + "@angular/forms": "^5.2.5", + "@angular/http": "^5.2.5", + "@angular/platform-browser": "^5.2.5", + "@angular/platform-browser-dynamic": "^5.2.5", + "@angular/router": "^5.2.5", "core-js": "^2.4.1", "rxjs": "^5.4.2", "zone.js": "^0.8.20" }, "devDependencies": { "@angular/cli": "1.6.8", - "@angular/compiler-cli": "^5.2.4", - "@angular/language-service": "^5.2.4", + "@angular/compiler-cli": "^5.2.5", + "@angular/language-service": "^5.2.5", "@storybook/addon-actions": "^3.4.0-alpha.8", "@storybook/addon-links": "^3.4.0-alpha.8", "@storybook/addon-notes": "^3.4.0-alpha.8", @@ -38,7 +38,7 @@ "@storybook/addons": "^3.4.0-alpha.8", "@storybook/angular": "^3.4.0-alpha.8", "@types/jasmine": "~2.8.6", - "@types/node": "~9.4.5", + "@types/node": "~9.4.6", "global": "^4.3.2", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json index 06f961e789e..c5c9e0e05b8 100644 --- a/examples/cra-kitchen-sink/package.json +++ b/examples/cra-kitchen-sink/package.json @@ -40,7 +40,7 @@ "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.0", "enzyme-to-json": "^3.3.1", - "jest": "^22.2.2", + "jest": "^22.3.0", "react-scripts": "^1.1.1" } } diff --git a/examples/official-storybook/built-storybooks/angular-cli b/examples/official-storybook/built-storybooks/angular-cli new file mode 120000 index 00000000000..fb7a49bbf43 --- /dev/null +++ b/examples/official-storybook/built-storybooks/angular-cli @@ -0,0 +1 @@ +../../angular-cli/storybook-static \ No newline at end of file diff --git a/examples/official-storybook/built-storybooks/cra-kitchen-sink b/examples/official-storybook/built-storybooks/cra-kitchen-sink new file mode 120000 index 00000000000..bc94cdebbaf --- /dev/null +++ b/examples/official-storybook/built-storybooks/cra-kitchen-sink @@ -0,0 +1 @@ +../../cra-kitchen-sink/storybook-static \ No newline at end of file diff --git a/examples/official-storybook/built-storybooks/polymer-cli b/examples/official-storybook/built-storybooks/polymer-cli new file mode 120000 index 00000000000..0ea6cbfd0ec --- /dev/null +++ b/examples/official-storybook/built-storybooks/polymer-cli @@ -0,0 +1 @@ +../../polymer-cli/storybook-static \ No newline at end of file diff --git a/examples/official-storybook/built-storybooks/vue-kitchen-sink b/examples/official-storybook/built-storybooks/vue-kitchen-sink new file mode 120000 index 00000000000..48946b56a2a --- /dev/null +++ b/examples/official-storybook/built-storybooks/vue-kitchen-sink @@ -0,0 +1 @@ +../../vue-kitchen-sink/storybook-static \ No newline at end of file diff --git a/examples/official-storybook/package.json b/examples/official-storybook/package.json index ba2bd95d064..b3cc8ddcb82 100644 --- a/examples/official-storybook/package.json +++ b/examples/official-storybook/package.json @@ -7,7 +7,7 @@ "chromatic": "chromatic test --storybook-addon --exit-zero-on-changes --app-code ab7m45tp9p", "generate-addon-jest-testresults": "jest --config=tests/addon-jest.config.json --json --outputFile=stories/addon-jest.testresults.json", "image-snapshots": "yarn run build-storybook && jest --projects=./image-snapshots", - "storybook": "start-storybook -p 9010 -c ./" + "storybook": "start-storybook -p 9010 -c ./ -s built-storybooks" }, "devDependencies": { "@storybook/addon-a11y": "^3.4.0-alpha.8", @@ -34,7 +34,7 @@ "eventemitter3": "^3.0.1", "format-json": "^1.0.3", "global": "^4.3.2", - "jest": "^22.1.4", + "jest": "^22.3.0", "paths.macro": "^2.0.2", "prop-types": "^15.6.0", "react": "^16.2.0", diff --git a/examples/official-storybook/stories/__snapshots__/app-acceptance.stories.storyshot b/examples/official-storybook/stories/__snapshots__/app-acceptance.stories.storyshot new file mode 100644 index 00000000000..6ebeacf6f19 --- /dev/null +++ b/examples/official-storybook/stories/__snapshots__/app-acceptance.stories.storyshot @@ -0,0 +1,33 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App|acceptance angular-cli 1`] = ` +