Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add storyshots (#2124)

Dominik Żegleń14c08fe2d594
diff --git a/package-lock.json b/package-lock.json
index d3b2d25ce2..c676b4ceb6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3048,6 +3048,315 @@
"integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==",
"dev": true
},
+ "@storybook/addon-storyshots": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/addon-storyshots/-/addon-storyshots-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-aao17ktEWuf05bYriiG2OUUneBrBOUNLp2dsw3mEpGc7PsGn7zsK1DkTaPw9Ruy3lkZlD9ZQ73o0JF//4NiWlw==",
+ "dev": true,
+ "requires": {
+ "@storybook/addons": "4.0.0-alpha.3",
+ "@storybook/core": "4.0.0-alpha.3",
+ "@storybook/node-logger": "4.0.0-alpha.3",
+ "babel-runtime": "^6.26.0",
+ "glob": "^7.1.2",
+ "global": "^4.3.2",
+ "jest-image-snapshot": "^2.4.0",
+ "jest-specific-snapshot": "^0.5.0",
+ "puppeteer": "^1.3.0",
+ "read-pkg-up": "^3.0.0"
+ },
+ "dependencies": {
+ "@storybook/addons": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/addons/-/addons-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-9wXau3uH0LjtPd0TNppX1riITdF4cBpQ5YCrc3n1mcGqBm3NHh2ZUJLqDbNteWkDQzB2bpbLwxVb7ANSpny5Rg==",
+ "dev": true,
+ "requires": {
+ "@storybook/channels": "4.0.0-alpha.3",
+ "global": "^4.3.2"
+ }
+ },
+ "@storybook/channel-postmessage": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/channel-postmessage/-/channel-postmessage-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-bOfwVfUi5et8VQ7HQfeydbNSc7LxqemGOZxHJrXucAuNiftam4YFYb5QeloTZfP1EcnSxyljiWgrpoBKlnmQjg==",
+ "dev": true,
+ "requires": {
+ "@storybook/channels": "4.0.0-alpha.3",
+ "global": "^4.3.2",
+ "json-stringify-safe": "^5.0.1"
+ }
+ },
+ "@storybook/channels": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/channels/-/channels-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-koilNU5E7cx0Y/lNXHoAuuaLVmvmC97ys53CH4KChx3R0ESk6koyRSMr8/qgUSR4WhUdBcy0MR6JxTaVfzb7Wg==",
+ "dev": true
+ },
+ "@storybook/client-logger": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/client-logger/-/client-logger-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-C+0mW2JmwTo9VsEiTEm6ZaUwW1HGHoDP2P6AwHruzGBgkSuShxAvWd6RoSH7IEzkkktJpgFEys/CEJNU9wzTLA==",
+ "dev": true
+ },
+ "@storybook/components": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/components/-/components-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-c2JOiNl1tayaOkak8SjXtWZm2LwGOSc3IoWreQrCgiFX44l0LcINzU8WyqRq4oROgyX38mM9t3Wv+zhLLk2yCQ==",
+ "dev": true,
+ "requires": {
+ "glamor": "^2.20.40",
+ "glamorous": "^4.12.3",
+ "prop-types": "^15.6.1"
+ }
+ },
+ "@storybook/core": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/core/-/core-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-a0WDWTLCcoEzWHALXClSBmkHNSmEw02JjZ5cGYoWyJonQLMMsLa+qolF1dCffZGrs5XQjtrMS19wAgPMsWR/Eg==",
+ "dev": true,
+ "requires": {
+ "@storybook/addons": "4.0.0-alpha.3",
+ "@storybook/channel-postmessage": "4.0.0-alpha.3",
+ "@storybook/client-logger": "4.0.0-alpha.3",
+ "@storybook/node-logger": "4.0.0-alpha.3",
+ "@storybook/ui": "4.0.0-alpha.3",
+ "autoprefixer": "^8.3.0",
+ "babel-runtime": "^6.26.0",
+ "chalk": "^2.4.0",
+ "commander": "^2.15.1",
+ "css-loader": "^0.28.11",
+ "dotenv": "^5.0.1",
+ "events": "^2.0.0",
+ "express": "^4.16.3",
+ "file-loader": "^1.1.11",
+ "find-cache-dir": "^1.0.0",
+ "global": "^4.3.2",
+ "json-loader": "^0.5.7",
+ "json5": "^0.5.1",
+ "postcss-flexbugs-fixes": "^3.2.0",
+ "postcss-loader": "^2.1.4",
+ "prop-types": "^15.6.1",
+ "qs": "^6.5.1",
+ "redux": "^3.7.2",
+ "serve-favicon": "^2.5.0",
+ "shelljs": "^0.8.1",
+ "style-loader": "^0.20.3",
+ "svg-url-loader": "^2.3.2",
+ "url-loader": "^1.0.1",
+ "webpack": "^4.6.0",
+ "webpack-dev-middleware": "^3.1.2",
+ "webpack-hot-middleware": "^2.22.0"
+ }
+ },
+ "@storybook/node-logger": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/node-logger/-/node-logger-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-5RNGeC41YaIJPnrM7YV6Qc3addL3TwZYJCM/MTkNds+6hA19IJhTgTamAI6NDqZw88MSp0z/DgzTFH/zVk0kiQ==",
+ "dev": true,
+ "requires": {
+ "npmlog": "^4.1.2"
+ }
+ },
+ "@storybook/ui": {
+ "version": "4.0.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/@storybook/ui/-/ui-4.0.0-alpha.3.tgz",
+ "integrity": "sha512-WGIjaNMYDb57NgT2MnnucSaaBt0mlb5e/NcONbDc+e2b8YlrqDNh57PiSzKTlvscmu+Po8jZjDTaH4JDMNm5uw==",
+ "dev": true,
+ "requires": {
+ "@storybook/components": "4.0.0-alpha.3",
+ "@storybook/mantra-core": "^1.7.2",
+ "@storybook/podda": "^1.2.3",
+ "@storybook/react-komposer": "^2.0.4",
+ "babel-runtime": "^6.26.0",
+ "deep-equal": "^1.0.1",
+ "events": "^2.0.0",
+ "fuse.js": "^3.2.0",
+ "global": "^4.3.2",
+ "keycode": "^2.2.0",
+ "lodash.debounce": "^4.0.8",
+ "lodash.pick": "^4.4.0",
+ "lodash.sortby": "^4.7.0",
+ "lodash.throttle": "^4.1.1",
+ "prop-types": "^15.6.1",
+ "qs": "^6.5.1",
+ "react-fuzzy": "^0.5.2",
+ "react-icons": "^2.2.7",
+ "react-lifecycles-compat": "^3.0.2",
+ "react-modal": "^3.4.1",
+ "react-split-pane": "^0.1.77",
+ "react-treebeard": "^2.1.0"
+ }
+ },
+ "ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "autoprefixer": {
+ "version": "8.6.0",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-8.6.0.tgz",
+ "integrity": "sha512-JaYK4gmyklt+es0VDdWVS9R/X96D8eaT0qDLAO6R4niBsoKv6nI4QtfFs8YQskwatIdJ6XZeTBDRpjf4tH+Dlg==",
+ "dev": true,
+ "requires": {
+ "browserslist": "^3.2.8",
+ "caniuse-lite": "^1.0.30000847",
+ "normalize-range": "^0.1.2",
+ "num2fraction": "^1.2.2",
+ "postcss": "^6.0.22",
+ "postcss-value-parser": "^3.2.3"
+ }
+ },
+ "browserslist": {
+ "version": "3.2.8",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-3.2.8.tgz",
+ "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==",
+ "dev": true,
+ "requires": {
+ "caniuse-lite": "^1.0.30000844",
+ "electron-to-chromium": "^1.3.47"
+ }
+ },
+ "caniuse-lite": {
+ "version": "1.0.30000849",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000849.tgz",
+ "integrity": "sha512-hlkWpyGJTDjjim2m+nvvHiEqt2PZuPdB9yYRbys5P/T179Aq7YgMF6tnM489voTfqMLtJhqmOZNfghxWjjT8jg==",
+ "dev": true
+ },
+ "chalk": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz",
+ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ }
+ },
+ "commander": {
+ "version": "2.15.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz",
+ "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==",
+ "dev": true
+ },
+ "electron-to-chromium": {
+ "version": "1.3.48",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.48.tgz",
+ "integrity": "sha1-07DYWTgUBE4JLs4hCPw6ya6kuQA=",
+ "dev": true
+ },
+ "events": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz",
+ "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==",
+ "dev": true
+ },
+ "load-json-file": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",
+ "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^4.0.0",
+ "pify": "^3.0.0",
+ "strip-bom": "^3.0.0"
+ }
+ },
+ "parse-json": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",
+ "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",
+ "dev": true,
+ "requires": {
+ "error-ex": "^1.3.1",
+ "json-parse-better-errors": "^1.0.1"
+ }
+ },
+ "path-type": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz",
+ "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==",
+ "dev": true,
+ "requires": {
+ "pify": "^3.0.0"
+ }
+ },
+ "pify": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+ "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
+ "dev": true
+ },
+ "postcss": {
+ "version": "6.0.22",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.22.tgz",
+ "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.4.1",
+ "source-map": "^0.6.1",
+ "supports-color": "^5.4.0"
+ }
+ },
+ "postcss-loader": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-2.1.5.tgz",
+ "integrity": "sha512-pV7kB5neJ0/1tZ8L1uGOBNTVBCSCXQoIsZMsrwvO8V2rKGa2tBl/f80GGVxow2jJnRJ2w1ocx693EKhZAb9Isg==",
+ "dev": true,
+ "requires": {
+ "loader-utils": "^1.1.0",
+ "postcss": "^6.0.0",
+ "postcss-load-config": "^1.2.0",
+ "schema-utils": "^0.4.0"
+ }
+ },
+ "react-lifecycles-compat": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
+ "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==",
+ "dev": true
+ },
+ "read-pkg": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",
+ "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=",
+ "dev": true,
+ "requires": {
+ "load-json-file": "^4.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^3.0.0"
+ }
+ },
+ "read-pkg-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz",
+ "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=",
+ "dev": true,
+ "requires": {
+ "find-up": "^2.0.0",
+ "read-pkg": "^3.0.0"
+ }
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ },
+ "strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
+ "dev": true
+ }
+ }
+ },
"@storybook/addons": {
"version": "4.0.0-alpha.8",
"resolved": "https://registry.npmjs.org/@storybook/addons/-/addons-4.0.0-alpha.8.tgz",
@@ -4266,6 +4575,15 @@
"integrity": "sha512-z55ocwKBRLryBs394Sm3ushTtBeg6VAeuku7utSoSnsJKvKcnXFIyC6vh27n3rXyxSgkJBBCAvyOn7gSUcTYjg==",
"dev": true
},
+ "agent-base": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.2.0.tgz",
+ "integrity": "sha512-c+R/U5X+2zz2+UCrCFv6odQzJdoqI+YecuhnAJLa1zYaMc13zPfwMwZrr91Pd1DYNo/yPRbiM4WVf9whgwFsIg==",
+ "dev": true,
+ "requires": {
+ "es6-promisify": "^5.0.0"
+ }
+ },
"airbnb-js-shims": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/airbnb-js-shims/-/airbnb-js-shims-1.6.0.tgz",
@@ -5004,54 +5322,10 @@
}
},
"babel-core": {
- "version": "6.26.3",
- "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz",
- "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==",
- "dev": true,
- "requires": {
- "babel-code-frame": "^6.26.0",
- "babel-generator": "^6.26.0",
- "babel-helpers": "^6.24.1",
- "babel-messages": "^6.23.0",
- "babel-register": "^6.26.0",
- "babel-runtime": "^6.26.0",
- "babel-template": "^6.26.0",
- "babel-traverse": "^6.26.0",
- "babel-types": "^6.26.0",
- "babylon": "^6.18.0",
- "convert-source-map": "^1.5.1",
- "debug": "^2.6.9",
- "json5": "^0.5.1",
- "lodash": "^4.17.4",
- "minimatch": "^3.0.4",
- "path-is-absolute": "^1.0.1",
- "private": "^0.1.8",
- "slash": "^1.0.0",
- "source-map": "^0.5.7"
- },
- "dependencies": {
- "babylon": {
- "version": "6.18.0",
- "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz",
- "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==",
- "dev": true
- },
- "convert-source-map": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz",
- "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=",
- "dev": true
- },
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- }
- }
+ "version": "7.0.0-bridge.0",
+ "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz",
+ "integrity": "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==",
+ "dev": true
},
"babel-eslint": {
"version": "8.2.2",
@@ -6365,12 +6639,54 @@
"source-map-support": "^0.4.15"
},
"dependencies": {
+ "babel-core": {
+ "version": "6.26.3",
+ "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz",
+ "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==",
+ "dev": true,
+ "requires": {
+ "babel-code-frame": "^6.26.0",
+ "babel-generator": "^6.26.0",
+ "babel-helpers": "^6.24.1",
+ "babel-messages": "^6.23.0",
+ "babel-register": "^6.26.0",
+ "babel-runtime": "^6.26.0",
+ "babel-template": "^6.26.0",
+ "babel-traverse": "^6.26.0",
+ "babel-types": "^6.26.0",
+ "babylon": "^6.18.0",
+ "convert-source-map": "^1.5.1",
+ "debug": "^2.6.9",
+ "json5": "^0.5.1",
+ "lodash": "^4.17.4",
+ "minimatch": "^3.0.4",
+ "path-is-absolute": "^1.0.1",
+ "private": "^0.1.8",
+ "slash": "^1.0.0",
+ "source-map": "^0.5.7"
+ }
+ },
+ "babylon": {
+ "version": "6.18.0",
+ "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz",
+ "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==",
+ "dev": true
+ },
"core-js": {
"version": "2.5.7",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz",
"integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==",
"dev": true
},
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
"source-map-support": {
"version": "0.4.18",
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz",
@@ -8680,6 +8996,12 @@
}
}
},
+ "discontinuous-range": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/discontinuous-range/-/discontinuous-range-1.0.0.tgz",
+ "integrity": "sha1-44Mx8IRLukm5qctxx3FYWqsbxlo=",
+ "dev": true
+ },
"dns-equal": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",
@@ -9022,6 +9344,132 @@
"integrity": "sha512-JeaiKfpCYQwIgSupqfApjt+AMMc1iffwHDr4YqnO8JBlbirgeAE3nZui8aSVsEUij25oG0Pi20MQZwins5shPQ==",
"dev": true
},
+ "enzyme": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/enzyme/-/enzyme-3.3.0.tgz",
+ "integrity": "sha512-l8csyPyLmtxskTz6pX9W8eDOyH1ckEtDttXk/vlFWCjv00SkjTjtoUrogqp4yEvMyneU9dUJoOLnqFoiHb8IHA==",
+ "dev": true,
+ "requires": {
+ "cheerio": "^1.0.0-rc.2",
+ "function.prototype.name": "^1.0.3",
+ "has": "^1.0.1",
+ "is-boolean-object": "^1.0.0",
+ "is-callable": "^1.1.3",
+ "is-number-object": "^1.0.3",
+ "is-string": "^1.0.4",
+ "is-subset": "^0.1.1",
+ "lodash": "^4.17.4",
+ "object-inspect": "^1.5.0",
+ "object-is": "^1.0.1",
+ "object.assign": "^4.1.0",
+ "object.entries": "^1.0.4",
+ "object.values": "^1.0.4",
+ "raf": "^3.4.0",
+ "rst-selector-parser": "^2.2.3"
+ },
+ "dependencies": {
+ "cheerio": {
+ "version": "1.0.0-rc.2",
+ "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.2.tgz",
+ "integrity": "sha1-S59TqBsn5NXawxwP/Qz6A8xoMNs=",
+ "dev": true,
+ "requires": {
+ "css-select": "~1.2.0",
+ "dom-serializer": "~0.1.0",
+ "entities": "~1.1.1",
+ "htmlparser2": "^3.9.1",
+ "lodash": "^4.15.0",
+ "parse5": "^3.0.1"
+ }
+ },
+ "lodash": {
+ "version": "4.17.5",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz",
+ "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==",
+ "dev": true
+ },
+ "parse5": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.3.tgz",
+ "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==",
+ "dev": true,
+ "requires": {
+ "@types/node": "*"
+ }
+ }
+ }
+ },
+ "enzyme-adapter-react-16": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.1.1.tgz",
+ "integrity": "sha512-kC8pAtU2Jk3OJ0EG8Y2813dg9Ol0TXi7UNxHzHiWs30Jo/hj7alc//G1YpKUsPP1oKl9X+Lkx+WlGJpPYA+nvw==",
+ "dev": true,
+ "requires": {
+ "enzyme-adapter-utils": "^1.3.0",
+ "lodash": "^4.17.4",
+ "object.assign": "^4.0.4",
+ "object.values": "^1.0.4",
+ "prop-types": "^15.6.0",
+ "react-reconciler": "^0.7.0",
+ "react-test-renderer": "^16.0.0-0"
+ },
+ "dependencies": {
+ "lodash": {
+ "version": "4.17.5",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz",
+ "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==",
+ "dev": true
+ },
+ "react-test-renderer": {
+ "version": "16.3.2",
+ "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-16.3.2.tgz",
+ "integrity": "sha512-lL8WHIpCTMdSe+CRkt0rfMxBkJFyhVrpdQ54BaJRIrXf9aVmbeHbRA8GFRpTvohPN5tPzMabmrzW2PUfWCfWwQ==",
+ "dev": true,
+ "requires": {
+ "fbjs": "^0.8.16",
+ "object-assign": "^4.1.1",
+ "prop-types": "^15.6.0",
+ "react-is": "^16.3.2"
+ }
+ }
+ }
+ },
+ "enzyme-adapter-utils": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/enzyme-adapter-utils/-/enzyme-adapter-utils-1.3.0.tgz",
+ "integrity": "sha512-vVXSt6uDv230DIv+ebCG66T1Pm36Kv+m74L1TrF4kaE7e1V7Q/LcxO0QRkajk5cA6R3uu9wJf5h13wOTezTbjA==",
+ "dev": true,
+ "requires": {
+ "lodash": "^4.17.4",
+ "object.assign": "^4.0.4",
+ "prop-types": "^15.6.0"
+ },
+ "dependencies": {
+ "lodash": {
+ "version": "4.17.5",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz",
+ "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==",
+ "dev": true
+ }
+ }
+ },
+ "enzyme-to-json": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/enzyme-to-json/-/enzyme-to-json-3.3.3.tgz",
+ "integrity": "sha1-7eRZOPswnNh+vUOG9gx1RSVRWgc=",
+ "dev": true,
+ "requires": {
+ "lodash": "^4.17.4"
+ },
+ "dependencies": {
+ "lodash": {
+ "version": "4.17.5",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz",
+ "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==",
+ "dev": true
+ }
+ }
+ },
"errno": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz",
@@ -9102,6 +9550,21 @@
"es6-symbol": "^3.1.1"
}
},
+ "es6-promise": {
+ "version": "4.2.4",
+ "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.4.tgz",
+ "integrity": "sha512-/NdNZVJg+uZgtm9eS3O6lrOLYmQag2DjdEXuPaHlZ6RuVqgqaVZfgYCepEIKsLqwdQArOPtC3XzRLqGGfT8KQQ==",
+ "dev": true
+ },
+ "es6-promisify": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz",
+ "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=",
+ "dev": true,
+ "requires": {
+ "es6-promise": "^4.0.3"
+ }
+ },
"es6-shim": {
"version": "0.35.3",
"resolved": "https://registry.npmjs.org/es6-shim/-/es6-shim-0.35.3.tgz",
@@ -9855,6 +10318,49 @@
"is-extglob": "^1.0.0"
}
},
+ "extract-zip": {
+ "version": "1.6.6",
+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.6.tgz",
+ "integrity": "sha1-EpDt6NINCHK0Kf0/NRyhKOxe+Fw=",
+ "dev": true,
+ "requires": {
+ "concat-stream": "1.6.0",
+ "debug": "2.6.9",
+ "mkdirp": "0.5.0",
+ "yauzl": "2.4.1"
+ },
+ "dependencies": {
+ "concat-stream": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz",
+ "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "mkdirp": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.0.tgz",
+ "integrity": "sha1-HXMHam35hs2TROFecfzAWkyavxI=",
+ "dev": true,
+ "requires": {
+ "minimist": "0.0.8"
+ }
+ }
+ }
+ },
"extsprintf": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
@@ -10219,6 +10725,12 @@
"integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
"dev": true
},
+ "fast-memoize": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.4.0.tgz",
+ "integrity": "sha512-ISTsDL4wfSoLK1RoFNl8F8hE40jPF3St08YAv/qJTJk2mah7RUH6nhCBaeRseb0TvhOFNXD9A8AJuYVS4XR7sg==",
+ "dev": true
+ },
"fastparse": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.1.tgz",
@@ -10264,6 +10776,15 @@
}
}
},
+ "fd-slicer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz",
+ "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=",
+ "dev": true,
+ "requires": {
+ "pend": "~1.2.0"
+ }
+ },
"figures": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz",
@@ -11813,6 +12334,35 @@
"gh-got": "^6.0.0"
}
},
+ "glamor": {
+ "version": "2.20.40",
+ "resolved": "https://registry.npmjs.org/glamor/-/glamor-2.20.40.tgz",
+ "integrity": "sha512-DNXCd+c14N9QF8aAKrfl4xakPk5FdcFwmH7sD0qnC0Pr7xoZ5W9yovhUrY/dJc3psfGGXC58vqQyRtuskyUJxA==",
+ "dev": true,
+ "requires": {
+ "fbjs": "^0.8.12",
+ "inline-style-prefixer": "^3.0.6",
+ "object-assign": "^4.1.1",
+ "prop-types": "^15.5.10",
+ "through": "^2.3.8"
+ }
+ },
+ "glamorous": {
+ "version": "4.13.1",
+ "resolved": "https://registry.npmjs.org/glamorous/-/glamorous-4.13.1.tgz",
+ "integrity": "sha512-x9yCGlRrPEkHF63m+WoZXHnpSet5ipS/fxczx5ic0ZKPPd2mMDyCZ0iEhse49OFlag0yxbJTc7k/L0g1GCmCYQ==",
+ "dev": true,
+ "requires": {
+ "brcast": "^3.0.0",
+ "csstype": "^2.2.0",
+ "fast-memoize": "^2.2.7",
+ "html-tag-names": "^1.1.1",
+ "is-function": "^1.0.1",
+ "is-plain-object": "^2.0.4",
+ "react-html-attributes": "^1.4.2",
+ "svg-tag-names": "^1.1.0"
+ }
+ },
"glob": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
@@ -12473,6 +13023,12 @@
"integrity": "sha1-ZouTd26q5V696POtRkswekljYl4=",
"dev": true
},
+ "html-element-attributes": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/html-element-attributes/-/html-element-attributes-1.3.1.tgz",
+ "integrity": "sha512-UrRKgp5sQmRnDy4TEwAUsu14XBUlzKB8U3hjIYDjcZ3Hbp86Jtftzxfgrv6E/ii/h78tsaZwAnAE8HwnHr0dPA==",
+ "dev": true
+ },
"html-encoding-sniffer": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz",
@@ -12527,6 +13083,12 @@
}
}
},
+ "html-tag-names": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/html-tag-names/-/html-tag-names-1.1.3.tgz",
+ "integrity": "sha512-kY/ck6Q0lGLxGocn86BM8Q4vCTUCY78VN43h0uMGeZ8p9LU3XdSNQR4Rs3JEjrKZSS5iXI1YgzY0g8U1AFDQzA==",
+ "dev": true
+ },
"htmlparser2": {
"version": "3.9.2",
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz",
@@ -12925,6 +13487,16 @@
"integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=",
"dev": true
},
+ "https-proxy-agent": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz",
+ "integrity": "sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ==",
+ "dev": true,
+ "requires": {
+ "agent-base": "^4.1.0",
+ "debug": "^3.1.0"
+ }
+ },
"hyphenate-style-name": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.2.tgz",
@@ -13223,6 +13795,12 @@
"binary-extensions": "^1.0.0"
}
},
+ "is-boolean-object": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.0.0.tgz",
+ "integrity": "sha1-mPiygDBoQhmpXzdc+9iM40Bd/5M=",
+ "dev": true
+ },
"is-buffer": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
@@ -13399,6 +13977,12 @@
"kind-of": "^3.0.2"
}
},
+ "is-number-object": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.3.tgz",
+ "integrity": "sha1-8mWrian0RQNO9q/xWo8AsA9VF5k=",
+ "dev": true
+ },
"is-object": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz",
@@ -13549,6 +14133,18 @@
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
"integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
},
+ "is-string": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.4.tgz",
+ "integrity": "sha1-zDqbaYV9Yh6WNyWiTK7shzuCbmQ=",
+ "dev": true
+ },
+ "is-subset": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz",
+ "integrity": "sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY=",
+ "dev": true
+ },
"is-svg": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-svg/-/is-svg-2.1.0.tgz",
@@ -13862,6 +14458,21 @@
"babel-plugin-syntax-object-rest-spread": "^6.13.0"
}
},
+ "babylon": {
+ "version": "6.18.0",
+ "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz",
+ "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==",
+ "dev": true
+ },
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
"jest-cli": {
"version": "22.4.4",
"resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-22.4.4.tgz",
@@ -13949,6 +14560,35 @@
"strip-bom": "3.0.0",
"write-file-atomic": "^2.1.0",
"yargs": "^10.0.3"
+ },
+ "dependencies": {
+ "babel-core": {
+ "version": "6.26.3",
+ "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz",
+ "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==",
+ "dev": true,
+ "requires": {
+ "babel-code-frame": "^6.26.0",
+ "babel-generator": "^6.26.0",
+ "babel-helpers": "^6.24.1",
+ "babel-messages": "^6.23.0",
+ "babel-register": "^6.26.0",
+ "babel-runtime": "^6.26.0",
+ "babel-template": "^6.26.0",
+ "babel-traverse": "^6.26.0",
+ "babel-types": "^6.26.0",
+ "babylon": "^6.18.0",
+ "convert-source-map": "^1.5.1",
+ "debug": "^2.6.9",
+ "json5": "^0.5.1",
+ "lodash": "^4.17.4",
+ "minimatch": "^3.0.4",
+ "path-is-absolute": "^1.0.1",
+ "private": "^0.1.8",
+ "slash": "^1.0.0",
+ "source-map": "^0.5.7"
+ }
+ }
}
},
"strip-ansi": {
@@ -14142,6 +14782,12 @@
}
}
},
+ "jest-file": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/jest-file/-/jest-file-1.0.0.tgz",
+ "integrity": "sha1-jFmWeL/TrtDTvp9+pgUES/3wFYw=",
+ "dev": true
+ },
"jest-get-type": {
"version": "22.1.0",
"resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-22.1.0.tgz",
@@ -14163,6 +14809,60 @@
"sane": "^2.0.0"
}
},
+ "jest-image-snapshot": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/jest-image-snapshot/-/jest-image-snapshot-2.4.1.tgz",
+ "integrity": "sha1-naaoZRWppv7HxJZLemhZzTZsZFk=",
+ "dev": true,
+ "requires": {
+ "chalk": "^1.1.3",
+ "get-stdin": "^5.0.1",
+ "lodash": "^4.17.4",
+ "mkdirp": "^0.5.1",
+ "pixelmatch": "^4.0.2",
+ "pngjs": "^3.3.3",
+ "rimraf": "^2.6.2"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ }
+ },
+ "get-stdin": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz",
+ "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=",
+ "dev": true
+ },
+ "lodash": {
+ "version": "4.17.5",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz",
+ "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ }
+ }
+ },
"jest-jasmine2": {
"version": "22.4.4",
"resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-22.4.4.tgz",
@@ -14294,6 +14994,15 @@
"pretty-format": "^22.4.0"
}
},
+ "jest-specific-snapshot": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/jest-specific-snapshot/-/jest-specific-snapshot-0.5.0.tgz",
+ "integrity": "sha512-jtcxwY9DnK9gT7HjS1bGL8SF4NV8DL2/CzUmuL4aZxwmAk4gEW8qOnXkU6kD3B1T4Y+Zj9uvN8zWqzcftT0ERA==",
+ "dev": true,
+ "requires": {
+ "jest-snapshot": ">=20.0.3"
+ }
+ },
"jest-util": {
"version": "22.4.1",
"resolved": "https://registry.npmjs.org/jest-util/-/jest-util-22.4.1.tgz",
@@ -15452,6 +16161,8 @@
"prop-types": "^15.6.0",
"react-event-listener": "^0.5.1",
"react-jss": "^8.1.0",
+ "react-lifecycles-compat": "^2.0.0",
+ "react-popper": "^0.10.0",
"react-scrollbar-size": "^2.0.2",
"react-transition-group": "^2.2.1",
"recompose": "^0.26.0",
@@ -15463,20 +16174,6 @@
"version": "4.17.5",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz",
"integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw=="
- },
- "react-lifecycles-compat": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.1.4.tgz",
- "integrity": "sha512-g3pdexIqkn+CVvSpYIoyON8zUbF9kgfhp672gyz7wQ7PQyXVmJtah+GDYqpHpOrdwex3F77iv+alq79iux9HZw=="
- },
- "react-popper": {
- "version": "0.8.3",
- "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-0.8.3.tgz",
- "integrity": "sha1-D3MzMTfJ+wr27EB00tBYWgoEYeE=",
- "requires": {
- "popper.js": "^1.12.9",
- "prop-types": "^15.6.0"
- }
}
}
},
@@ -16519,6 +17216,42 @@
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
"dev": true
},
+ "nearley": {
+ "version": "2.13.0",
+ "resolved": "https://registry.npmjs.org/nearley/-/nearley-2.13.0.tgz",
+ "integrity": "sha512-ioYYogSaZhFlCpRizQgY3UT3G1qFXmHGY/5ozoFE3dMfiCRAeJfh+IPE3/eh9gCZvqLhPCWb4bLt7Bqzo+1mLQ==",
+ "dev": true,
+ "requires": {
+ "nomnom": "~1.6.2",
+ "railroad-diagrams": "^1.0.0",
+ "randexp": "0.4.6",
+ "semver": "^5.4.1"
+ },
+ "dependencies": {
+ "colors": {
+ "version": "0.5.1",
+ "resolved": "https://registry.npmjs.org/colors/-/colors-0.5.1.tgz",
+ "integrity": "sha1-fQAj6usVTo7p/Oddy5I9DtFmd3Q=",
+ "dev": true
+ },
+ "nomnom": {
+ "version": "1.6.2",
+ "resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.6.2.tgz",
+ "integrity": "sha1-hKZqJgF0QI/Ft3oY+IjszET7aXE=",
+ "dev": true,
+ "requires": {
+ "colors": "0.5.x",
+ "underscore": "~1.4.4"
+ }
+ },
+ "underscore": {
+ "version": "1.4.4",
+ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz",
+ "integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ=",
+ "dev": true
+ }
+ }
+ },
"negotiator": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
@@ -17036,6 +17769,18 @@
}
}
},
+ "object-inspect": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.5.0.tgz",
+ "integrity": "sha512-UmOFbHbwvv+XHj7BerrhVq+knjceBdkvU5AriwLMvhv2qi+e7DJzxfBeFpILEjVzCp+xA+W/pIf06RGPWlZNfw==",
+ "dev": true
+ },
+ "object-is": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.0.1.tgz",
+ "integrity": "sha1-CqYOyZiaCz7Xlc9NBvYs8a1lObY=",
+ "dev": true
+ },
"object-keys": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz",
@@ -17581,6 +18326,12 @@
"sha.js": "^2.4.8"
}
},
+ "pend": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+ "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
+ "dev": true
+ },
"performance-now": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
@@ -17608,6 +18359,15 @@
"pinkie": "^2.0.0"
}
},
+ "pixelmatch": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-4.0.2.tgz",
+ "integrity": "sha1-j0fc7FARtHe2fbA8JDvB8wheiFQ=",
+ "dev": true,
+ "requires": {
+ "pngjs": "^3.0.0"
+ }
+ },
"pkg-dir": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz",
@@ -17638,6 +18398,12 @@
"integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==",
"dev": true
},
+ "pngjs": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-3.3.3.tgz",
+ "integrity": "sha512-1n3Z4p3IOxArEs1VRXnZ/RXdfEniAUS9jb68g58FIXMNkPJeZd+Qh4Uq7/e0LVxAQGos1eIUrqrt4FpjdnEd+Q==",
+ "dev": true
+ },
"popper.js": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.14.1.tgz",
@@ -18316,6 +19082,15 @@
}
}
},
+ "postcss-flexbugs-fixes": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-3.3.1.tgz",
+ "integrity": "sha512-9y9kDDf2F9EjKX6x9ueNa5GARvsUbXw4ezH8vXItXHwKzljbu8awP7t5dCaabKYm18Vs1lo5bKQcnc0HkISt+w==",
+ "dev": true,
+ "requires": {
+ "postcss": "^6.0.1"
+ }
+ },
"postcss-load-config": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-1.2.0.tgz",
@@ -19628,6 +20403,12 @@
"ipaddr.js": "1.6.0"
}
},
+ "proxy-from-env": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz",
+ "integrity": "sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=",
+ "dev": true
+ },
"prr": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz",
@@ -19679,6 +20460,44 @@
"integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",
"dev": true
},
+ "puppeteer": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-1.3.0.tgz",
+ "integrity": "sha512-wx10aPQPpGJVxdB6yoDSLm9p4rCwARUSLMVV0bx++owuqkvviXKyiFM3EWsywaFmjOKNPXacIjplF7xhHiFP3w==",
+ "dev": true,
+ "requires": {
+ "debug": "^2.6.8",
+ "extract-zip": "^1.6.5",
+ "https-proxy-agent": "^2.1.0",
+ "mime": "^1.3.4",
+ "progress": "^2.0.0",
+ "proxy-from-env": "^1.0.0",
+ "rimraf": "^2.6.1",
+ "ws": "^3.0.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "ws": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz",
+ "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==",
+ "dev": true,
+ "requires": {
+ "async-limiter": "~1.0.0",
+ "safe-buffer": "~5.1.0",
+ "ultron": "~1.1.0"
+ }
+ }
+ }
+ },
"q": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
@@ -19742,6 +20561,15 @@
}
}
},
+ "raf": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.0.tgz",
+ "integrity": "sha512-pDP/NMRAXoTfrhCfyfSEwJAKLaxBU9eApMeBPB1TkDouZmvPerIClV8lTAd+uF8ZiTaVl69e1FCxQrAd/VTjGw==",
+ "dev": true,
+ "requires": {
+ "performance-now": "^2.1.0"
+ }
+ },
"rafl": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/rafl/-/rafl-1.2.2.tgz",
@@ -19750,6 +20578,22 @@
"global": "~4.3.0"
}
},
+ "railroad-diagrams": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz",
+ "integrity": "sha1-635iZ1SN3t+4mcG5Dlc3RVnN234=",
+ "dev": true
+ },
+ "randexp": {
+ "version": "0.4.6",
+ "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.4.6.tgz",
+ "integrity": "sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==",
+ "dev": true,
+ "requires": {
+ "discontinuous-range": "1.0.0",
+ "ret": "~0.1.10"
+ }
+ },
"randomatic": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.0.0.tgz",
@@ -19931,6 +20775,15 @@
"prop-types": "^15.5.9"
}
},
+ "react-html-attributes": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/react-html-attributes/-/react-html-attributes-1.4.2.tgz",
+ "integrity": "sha1-DSzPE0/Hmy01Q4N9wVkdMre5A/k=",
+ "dev": true,
+ "requires": {
+ "html-element-attributes": "^1.0.0"
+ }
+ },
"react-icon-base": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/react-icon-base/-/react-icon-base-2.1.0.tgz",
@@ -19946,6 +20799,12 @@
"react-icon-base": "2.1.0"
}
},
+ "react-is": {
+ "version": "16.4.0",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.4.0.tgz",
+ "integrity": "sha512-8ADZg/mBw+t2Fbr5Hm1K64v8q8Q6E+DprV5wQ5A8PSLW6XP0XJFMdUskVEW8efQ5oUgWHn8EYdHEPAMF0Co6hA==",
+ "dev": true
+ },
"react-jss": {
"version": "8.4.0",
"resolved": "https://registry.npmjs.org/react-jss/-/react-jss-8.4.0.tgz",
@@ -19958,6 +20817,52 @@
"theming": "^1.3.0"
}
},
+ "react-lifecycles-compat": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-2.0.2.tgz",
+ "integrity": "sha512-BPksUj7VMAAFhcCw79sZA0Ow/LTAEjs3Sio1AQcuwLeOP+ua0f/08Su2wyiW+JjDDH6fRqNy3h5CLXh21u1mVg=="
+ },
+ "react-modal": {
+ "version": "3.4.5",
+ "resolved": "https://registry.npmjs.org/react-modal/-/react-modal-3.4.5.tgz",
+ "integrity": "sha512-fYaGmsvt4z5voC2Bl/9ngIWES4BSRYgGnTljMwuzTuYZ1BBpaZbnXia8xlvj7mF0kg3aPV+5APjZRiMfRG6vyA==",
+ "dev": true,
+ "requires": {
+ "exenv": "^1.2.0",
+ "prop-types": "^15.5.10",
+ "react-lifecycles-compat": "^3.0.0",
+ "warning": "^3.0.0"
+ },
+ "dependencies": {
+ "react-lifecycles-compat": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
+ "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==",
+ "dev": true
+ }
+ }
+ },
+ "react-popper": {
+ "version": "0.10.4",
+ "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-0.10.4.tgz",
+ "integrity": "sha1-rypBXqIike3VBGeNev2opu4ylao=",
+ "requires": {
+ "popper.js": "^1.14.1",
+ "prop-types": "^15.6.1"
+ }
+ },
+ "react-reconciler": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.7.0.tgz",
+ "integrity": "sha512-50JwZ3yNyMS8fchN+jjWEJOH3Oze7UmhxeoJLn2j6f3NjpfCRbcmih83XTWmzqtar/ivd5f7tvQhvvhism2fgg==",
+ "dev": true,
+ "requires": {
+ "fbjs": "^0.8.16",
+ "loose-envify": "^1.1.0",
+ "object-assign": "^4.1.1",
+ "prop-types": "^15.6.0"
+ }
+ },
"react-redux": {
"version": "5.0.7",
"resolved": "https://registry.npmjs.org/react-redux/-/react-redux-5.0.7.tgz",
@@ -20725,6 +21630,16 @@
"inherits": "^2.0.1"
}
},
+ "rst-selector-parser": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz",
+ "integrity": "sha1-gbIw6i/MYGbInjRy3nlChdmwPZE=",
+ "dev": true,
+ "requires": {
+ "lodash.flattendeep": "^4.4.0",
+ "nearley": "^2.7.10"
+ }
+ },
"rsvp": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz",
@@ -21907,6 +22822,27 @@
"integrity": "sha512-Ga8c8NjAAp46Br4+0oZ2WxJCwIzwP60Gq1YPgU+39PiTVxyed/iKE/zyZI6+UlVYH5Q4PaQdHhcegIFPZTUfoQ==",
"dev": true
},
+ "serve-favicon": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.5.0.tgz",
+ "integrity": "sha1-k10kDN/g9YBTB/3+ln2IlCosvPA=",
+ "dev": true,
+ "requires": {
+ "etag": "~1.8.1",
+ "fresh": "0.5.2",
+ "ms": "2.1.1",
+ "parseurl": "~1.3.2",
+ "safe-buffer": "5.1.1"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
+ "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
+ "dev": true
+ }
+ }
+ },
"serve-index": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz",
@@ -22788,6 +23724,16 @@
"integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
"dev": true
},
+ "style-loader": {
+ "version": "0.20.3",
+ "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-0.20.3.tgz",
+ "integrity": "sha512-2I7AVP73MvK33U7B9TKlYZAqdROyMXDYSMvHLX43qy3GCOaJNiV6i0v/sv9idWIaQ42Yn2dNv79Q5mKXbKhAZg==",
+ "dev": true,
+ "requires": {
+ "loader-utils": "^1.1.0",
+ "schema-utils": "^0.4.5"
+ }
+ },
"stylis": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/stylis/-/stylis-3.5.0.tgz",
@@ -22836,6 +23782,12 @@
"resolved": "https://registry.npmjs.org/svg-injector-2/-/svg-injector-2-2.1.3.tgz",
"integrity": "sha1-6AjyK3kDG4gu0s2Ze27tL9sFn6E="
},
+ "svg-tag-names": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/svg-tag-names/-/svg-tag-names-1.1.1.tgz",
+ "integrity": "sha1-lkGynvcQJe4JTHBD983efZn71Qo=",
+ "dev": true
+ },
"svg-url-loader": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/svg-url-loader/-/svg-url-loader-2.3.2.tgz",
@@ -23231,6 +24183,41 @@
"integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
"dev": true
},
+ "babel-core": {
+ "version": "6.26.3",
+ "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz",
+ "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==",
+ "dev": true,
+ "requires": {
+ "babel-code-frame": "^6.26.0",
+ "babel-generator": "^6.26.0",
+ "babel-helpers": "^6.24.1",
+ "babel-messages": "^6.23.0",
+ "babel-register": "^6.26.0",
+ "babel-runtime": "^6.26.0",
+ "babel-template": "^6.26.0",
+ "babel-traverse": "^6.26.0",
+ "babel-types": "^6.26.0",
+ "babylon": "^6.18.0",
+ "convert-source-map": "^1.5.1",
+ "debug": "^2.6.9",
+ "json5": "^0.5.1",
+ "lodash": "^4.17.4",
+ "minimatch": "^3.0.4",
+ "path-is-absolute": "^1.0.1",
+ "private": "^0.1.8",
+ "slash": "^1.0.0",
+ "source-map": "^0.5.7"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
+ "dev": true
+ }
+ }
+ },
"babel-plugin-istanbul": {
"version": "4.1.6",
"resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz",
@@ -24162,6 +25149,12 @@
}
}
},
+ "ultron": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz",
+ "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==",
+ "dev": true
+ },
"underscore": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz",
@@ -26364,6 +27357,18 @@
}
}
},
+ "webpack-hot-middleware": {
+ "version": "2.22.2",
+ "resolved": "https://registry.npmjs.org/webpack-hot-middleware/-/webpack-hot-middleware-2.22.2.tgz",
+ "integrity": "sha512-uccPS6b/UlXJoNCS+3fuc40z2KZgO0qQhnu+Ne1iZiHTy9s5fMCJAV+Vc8VTVkN203UphsxQmkumxYeHLiQ5jg==",
+ "dev": true,
+ "requires": {
+ "ansi-html": "0.0.7",
+ "html-entities": "^1.2.0",
+ "querystring": "^0.2.0",
+ "strip-ansi": "^3.0.0"
+ }
+ },
"webpack-log": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/webpack-log/-/webpack-log-1.2.0.tgz",
@@ -26675,6 +27680,15 @@
"camelcase": "^4.1.0"
}
},
+ "yauzl": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz",
+ "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=",
+ "dev": true,
+ "requires": {
+ "fd-slicer": "~1.0.1"
+ }
+ },
"yeoman-environment": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/yeoman-environment/-/yeoman-environment-2.1.1.tgz",
diff --git a/package.json b/package.json
index 8d2db255ff..4d2d9f4f24 100644
--- a/package.json
+++ b/package.json
@@ -72,6 +72,7 @@
"@babel/preset-es2015": "^7.0.0-beta.44",
"@babel/preset-react": "^7.0.0-beta.44",
"@babel/preset-stage-0": "^7.0.0-beta.44",
+ "@storybook/addon-storyshots": "^4.0.0-alpha.3",
"@storybook/react": "^4.0.0-alpha.3",
"@types/i18next": "^8.4.3",
"@types/jest": "^22.2.3",
@@ -79,11 +80,15 @@
"@types/react-router-dom": "^4.2.6",
"@types/react-test-renderer": "^16.0.1",
"autoprefixer": "^8.2.0",
+ "babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.2",
"babel-jest": "^22.2.2",
"babel-loader": "^8.0.0-beta.2",
"chai": "^4.1.2",
"css-loader": "^0.28.11",
+ "enzyme": "^3.3.0",
+ "enzyme-adapter-react-16": "^1.1.1",
+ "enzyme-to-json": "^3.3.3",
"eslint": "^4.19.1",
"eslint-config-prettier": "^2.9.0",
"eslint-config-standard": "^10.2.1",
@@ -95,6 +100,7 @@
"eslint-plugin-standard": "^3.0.1",
"file-loader": "^1.1.11",
"jest": "^22.4.3",
+ "jest-file": "^1.0.0",
"mini-css-extract-plugin": "^0.4.0",
"mjml": "^4.0.5",
"node-sass": "^4.9.0",
@@ -132,7 +138,8 @@
"jest": {
"globals": {},
"transform": {
- "^.+\\.tsx?$": "ts-jest"
+ "^.+\\.tsx?$": "ts-jest",
+ "^.+\\.png?$": "jest-file"
},
"testRegex": ".*\\.test\\.tsx?$",
"moduleFileExtensions": [
diff --git a/saleor/static/dashboard-next/storybook/.babelrc b/saleor/static/dashboard-next/storybook/.babelrc
new file mode 100644
index 0000000000..077285aa75
--- /dev/null
+++ b/saleor/static/dashboard-next/storybook/.babelrc
@@ -0,0 +1,12 @@
+{
+ "presets": [
+ "@babel/preset-stage-0",
+ "@babel/preset-es2015",
+ "@babel/preset-react"
+ ],
+ "plugins": [
+ "@babel/plugin-proposal-class-properties",
+ "@babel/plugin-proposal-decorators",
+ "@babel/plugin-proposal-object-rest-spread"
+ ]
+}
diff --git a/saleor/static/dashboard-next/storybook/Stories.test.ts b/saleor/static/dashboard-next/storybook/Stories.test.ts
new file mode 100644
index 0000000000..0c34252111
--- /dev/null
+++ b/saleor/static/dashboard-next/storybook/Stories.test.ts
@@ -0,0 +1,13 @@
+/* eslint-disable */
+import initStoryshots from "@storybook/addon-storyshots";
+import { configure, shallow } from "enzyme";
+import * as Adapter from "enzyme-adapter-react-16";
+import toJSON from "enzyme-to-json";
+
+configure({ adapter: new Adapter() });
+
+initStoryshots({
+ configPath: "saleor/static/dashboard-next/storybook/",
+ renderer: shallow,
+ serializer: toJSON
+});
diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
new file mode 100644
index 0000000000..c1a061aab8
--- /dev/null
+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
@@ -0,0 +1,3826 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Storyshots Categories / CategoryBaseForm with 'errors' property 1`] = `
+<Component
+ classes={
+ Object {
+ "cardActions": "Component-cardActions-21",
+ "textField": "Component-textField-22",
+ }
+ }
+ description="Across pressure PM food discover recognize. Send letter reach listen. Quickly work plan rule.
+Tell lose part purpose do when. Whatever drug contain particularly defense."
+ errors={
+ Array [
+ Object {
+ "field": "name",
+ "message": "To pole jest wymagane.",
+ },
+ ]
+ }
+ name="Apparel"
+/>
+`;
+
+exports[`Storyshots Categories / CategoryBaseForm with initial data 1`] = `
+<Component
+ classes={
+ Object {
+ "cardActions": "Component-cardActions-21",
+ "textField": "Component-textField-22",
+ }
+ }
+ description="Across pressure PM food discover recognize. Send letter reach listen. Quickly work plan rule.
+Tell lose part purpose do when. Whatever drug contain particularly defense."
+ name="Apparel"
+/>
+`;
+
+exports[`Storyshots Categories / CategoryBaseForm without initial data 1`] = `
+<Component
+ classes={
+ Object {
+ "cardActions": "Component-cardActions-21",
+ "textField": "Component-textField-22",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Categories / CategoryProducts when loading data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Products"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ <Hidden
+ implementation="js"
+ lgDown={false}
+ lgUp={false}
+ mdDown={false}
+ mdUp={true}
+ smDown={false}
+ smUp={false}
+ xlDown={false}
+ xlUp={false}
+ xsDown={false}
+ xsUp={false}
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(FilterList) />
+ </WithStyles(IconButton)>
+ </Hidden>
+ </WithStyles(Component)>
+ <WithStyles(Component)
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / CategoryProducts with clickable rows 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Products"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ <Hidden
+ implementation="js"
+ lgDown={false}
+ lgUp={false}
+ mdDown={false}
+ mdUp={true}
+ smDown={false}
+ smUp={false}
+ xlDown={false}
+ xlUp={false}
+ xsDown={false}
+ xsUp={false}
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(FilterList) />
+ </WithStyles(IconButton)>
+ </Hidden>
+ </WithStyles(Component)>
+ <WithStyles(Component)
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ onRowClick={[Function]}
+ products={
+ Array [
+ Object {
+ "id": "UHJvZHVjdDox",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder60x60.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoy",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder60x60.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoz",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder60x60.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoa",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder60x60.png",
+ },
+ ]
+ }
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / CategoryProducts with initial data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Products"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ <Hidden
+ implementation="js"
+ lgDown={false}
+ lgUp={false}
+ mdDown={false}
+ mdUp={true}
+ smDown={false}
+ smUp={false}
+ xlDown={false}
+ xlUp={false}
+ xsDown={false}
+ xsUp={false}
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(FilterList) />
+ </WithStyles(IconButton)>
+ </Hidden>
+ </WithStyles(Component)>
+ <WithStyles(Component)
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ products={
+ Array [
+ Object {
+ "id": "UHJvZHVjdDox",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder60x60.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoy",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder60x60.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoz",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder60x60.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoa",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder60x60.png",
+ },
+ ]
+ }
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / CategoryProducts without initial data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Products"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ <Hidden
+ implementation="js"
+ lgDown={false}
+ lgUp={false}
+ mdDown={false}
+ mdUp={true}
+ smDown={false}
+ smUp={false}
+ xlDown={false}
+ xlUp={false}
+ xsDown={false}
+ xsUp={false}
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(FilterList) />
+ </WithStyles(IconButton)>
+ </Hidden>
+ </WithStyles(Component)>
+ <WithStyles(Component)
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ products={Array []}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / CategorySubcategories when loading data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Subcategories"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <Component
+ onClick={[Function]}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / CategorySubcategories with initial data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Subcategories"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <Component
+ categories={
+ Array [
+ Object {
+ "id": "123123",
+ "name": "Lorem ipsum dolor",
+ },
+ Object {
+ "id": "876752",
+ "name": "Mauris vehicula tortor vulputate",
+ },
+ ]
+ }
+ onClick={[Function]}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / CategorySubcategories without initial data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Subcategories"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <Component
+ categories={Array []}
+ onClick={[Function]}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / ProductFilters with initial data 1`] = `
+<FilterCard
+ handleClear={[Function]}
+>
+ <TextField
+ fullWidth={true}
+ label="Name"
+ name="name"
+ onChange={[Function]}
+ required={false}
+ select={false}
+ value="Lorem ipsum"
+ />
+ <WithStyles(Component) />
+ <WithStyles(Component)
+ choices={
+ Array [
+ Object {
+ "label": "Type 1",
+ "value": "123123123",
+ },
+ Object {
+ "label": "Type 2",
+ "value": "123123124",
+ },
+ Object {
+ "label": "Type 3",
+ "value": "123123125",
+ },
+ Object {
+ "label": "Type 4",
+ "value": "123123126",
+ },
+ ]
+ }
+ label="Product type"
+ name="productTypes"
+ onChange={[Function]}
+ value={
+ Array [
+ "123123123",
+ "123123126",
+ ]
+ }
+ />
+ <WithStyles(Component) />
+ <WithStyles(Component)
+ currencySymbol="USD"
+ label="Price"
+ name="price"
+ onChange={[Function]}
+ value={
+ Object {
+ "max": "50",
+ "min": "30",
+ }
+ }
+ />
+ <WithStyles(Component) />
+ <WithStyles(Component)
+ choices={
+ Array [
+ Object {
+ "label": "Published",
+ "value": "1",
+ },
+ Object {
+ "label": "Not published",
+ "value": "0",
+ },
+ Object {
+ "label": "All",
+ "value": "",
+ },
+ ]
+ }
+ label="Published"
+ name="published"
+ onChange={[Function]}
+ value="true"
+ />
+ <WithStyles(Component) />
+ <WithStyles(Component)
+ choices={
+ Array [
+ Object {
+ "label": "Highlighted",
+ "value": "1",
+ },
+ Object {
+ "label": "Not highlighted",
+ "value": "0",
+ },
+ Object {
+ "label": "All",
+ "value": "",
+ },
+ ]
+ }
+ label="Highlighted"
+ name="highlighted"
+ onChange={[Function]}
+ value="false"
+ />
+</FilterCard>
+`;
+
+exports[`Storyshots Categories / ProductFilters without initial data 1`] = `
+<FilterCard
+ handleClear={[Function]}
+>
+ <TextField
+ fullWidth={true}
+ label="Name"
+ name="name"
+ onChange={[Function]}
+ required={false}
+ select={false}
+ value=""
+ />
+ <WithStyles(Component) />
+ <WithStyles(Component)
+ choices={
+ Array [
+ Object {
+ "label": "Type 1",
+ "value": "123123123",
+ },
+ Object {
+ "label": "Type 2",
+ "value": "123123124",
+ },
+ Object {
+ "label": "Type 3",
+ "value": "123123125",
+ },
+ Object {
+ "label": "Type 4",
+ "value": "123123126",
+ },
+ ]
+ }
+ label="Product type"
+ name="productTypes"
+ onChange={[Function]}
+ value={Array []}
+ />
+ <WithStyles(Component) />
+ <WithStyles(Component)
+ currencySymbol="USD"
+ label="Price"
+ name="price"
+ onChange={[Function]}
+ value={
+ Object {
+ "max": "",
+ "min": "",
+ }
+ }
+ />
+ <WithStyles(Component) />
+ <WithStyles(Component)
+ choices={
+ Array [
+ Object {
+ "label": "Published",
+ "value": "1",
+ },
+ Object {
+ "label": "Not published",
+ "value": "0",
+ },
+ Object {
+ "label": "All",
+ "value": "",
+ },
+ ]
+ }
+ label="Published"
+ name="published"
+ onChange={[Function]}
+ value=""
+ />
+ <WithStyles(Component) />
+ <WithStyles(Component)
+ choices={
+ Array [
+ Object {
+ "label": "Highlighted",
+ "value": "1",
+ },
+ Object {
+ "label": "Not highlighted",
+ "value": "0",
+ },
+ Object {
+ "label": "All",
+ "value": "",
+ },
+ ]
+ }
+ label="Highlighted"
+ name="highlighted"
+ onChange={[Function]}
+ value=""
+ />
+</FilterCard>
+`;
+
+exports[`Storyshots Categories / RootCategoryList when loading data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Categories"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <Component
+ onClick={[Function]}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / RootCategoryList with initial data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Categories"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <Component
+ categories={
+ Array [
+ Object {
+ "id": "123123",
+ "name": "Lorem ipsum dolor",
+ },
+ Object {
+ "id": "876752",
+ "name": "Mauris vehicula tortor vulputate",
+ },
+ ]
+ }
+ onClick={[Function]}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Categories / RootCategoryList without initial data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Categories"
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(Add) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <Component
+ categories={Array []}
+ onClick={[Function]}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Generics / ErrorMessageCard default 1`] = `
+<WithStyles(Card)>
+ <WithStyles(CardContent)>
+ <WithStyles(Typography)
+ component="h2"
+ variant="headline"
+ >
+ Error
+ </WithStyles(Typography)>
+ <WithStyles(Typography)
+ variant="body1"
+ >
+ Loren ipsum dolor sit amet!
+ </WithStyles(Typography)>
+ </WithStyles(CardContent)>
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Generics / MultiSelectField with error hint 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "chip": "Component-chip-1",
+ "chipContainer": "Component-chipContainer-2",
+ "formControl": "Component-formControl-3",
+ }
+ }
+ error={true}
+ hint="Lorem error"
+ onChange={[Function]}
+ value={Array []}
+/>
+`;
+
+exports[`Storyshots Generics / MultiSelectField with hint 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "chip": "Component-chip-1",
+ "chipContainer": "Component-chipContainer-2",
+ "formControl": "Component-formControl-3",
+ }
+ }
+ hint="Lorem ipsum"
+ onChange={[Function]}
+ value={Array []}
+/>
+`;
+
+exports[`Storyshots Generics / MultiSelectField with label 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "chip": "Component-chip-1",
+ "chipContainer": "Component-chipContainer-2",
+ "formControl": "Component-formControl-3",
+ }
+ }
+ label="Lorem ipsum"
+ onChange={[Function]}
+ value={Array []}
+/>
+`;
+
+exports[`Storyshots Generics / MultiSelectField with label and hint 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "chip": "Component-chip-1",
+ "chipContainer": "Component-chipContainer-2",
+ "formControl": "Component-formControl-3",
+ }
+ }
+ hint="Ipsum"
+ label="Lorem"
+ onChange={[Function]}
+ value={Array []}
+/>
+`;
+
+exports[`Storyshots Generics / MultiSelectField with no value 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "chip": "Component-chip-1",
+ "chipContainer": "Component-chipContainer-2",
+ "formControl": "Component-formControl-3",
+ }
+ }
+ onChange={[Function]}
+ value={Array []}
+/>
+`;
+
+exports[`Storyshots Generics / MultiSelectField with value 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "chip": "Component-chip-1",
+ "chipContainer": "Component-chipContainer-2",
+ "formControl": "Component-formControl-3",
+ }
+ }
+ onChange={[Function]}
+ value={
+ Array [
+ "1",
+ ]
+ }
+/>
+`;
+
+exports[`Storyshots Generics / MultiSelectField with value, label and hint 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "chip": "Component-chip-1",
+ "chipContainer": "Component-chipContainer-2",
+ "formControl": "Component-formControl-3",
+ }
+ }
+ hint="Ipsum"
+ label="Lorem"
+ onChange={[Function]}
+ value={
+ Array [
+ "1",
+ ]
+ }
+/>
+`;
+
+exports[`Storyshots Generics / PageHeader with title 1`] = `
+<Component
+ classes={
+ Object {
+ "action": "Component-action-4",
+ "grid": "Component-grid-5",
+ "menuButton": "Component-menuButton-6",
+ "root": "Component-root-7",
+ "subtitle": "Component-subtitle-8",
+ "title": "Component-title-9",
+ }
+ }
+ title="Lorem ipsum"
+/>
+`;
+
+exports[`Storyshots Generics / PageHeader with title and back button 1`] = `
+<Component
+ classes={
+ Object {
+ "action": "Component-action-4",
+ "grid": "Component-grid-5",
+ "menuButton": "Component-menuButton-6",
+ "root": "Component-root-7",
+ "subtitle": "Component-subtitle-8",
+ "title": "Component-title-9",
+ }
+ }
+ onBack={[Function]}
+ title="Lorem ipsum"
+/>
+`;
+
+exports[`Storyshots Generics / PageHeader with title icon bar 1`] = `
+<Component
+ classes={
+ Object {
+ "action": "Component-action-4",
+ "grid": "Component-grid-5",
+ "menuButton": "Component-menuButton-6",
+ "root": "Component-root-7",
+ "subtitle": "Component-subtitle-8",
+ "title": "Component-title-9",
+ }
+ }
+ title="Lorem ipsum"
+>
+ <WithStyles(IconButton)>
+ <pure(Delete) />
+ </WithStyles(IconButton)>
+</Component>
+`;
+
+exports[`Storyshots Generics / PageHeader with title, back button and icon bar 1`] = `
+<Component
+ classes={
+ Object {
+ "action": "Component-action-4",
+ "grid": "Component-grid-5",
+ "menuButton": "Component-menuButton-6",
+ "root": "Component-root-7",
+ "subtitle": "Component-subtitle-8",
+ "title": "Component-title-9",
+ }
+ }
+ onBack={[Function]}
+ title="Lorem ipsum"
+>
+ <WithStyles(IconButton)>
+ <pure(Delete) />
+ </WithStyles(IconButton)>
+</Component>
+`;
+
+exports[`Storyshots Generics / PageHeader without title 1`] = `
+<Component
+ classes={
+ Object {
+ "action": "Component-action-4",
+ "grid": "Component-grid-5",
+ "menuButton": "Component-menuButton-6",
+ "root": "Component-root-7",
+ "subtitle": "Component-subtitle-8",
+ "title": "Component-title-9",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Generics / PriceField disabled 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ disabled={true}
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceField with currency symbol 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ currencySymbol="$"
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceField with hint 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ hint="Lorem ipsum"
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceField with label 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ label="Lorem ipsum"
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceField with label and hint 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ hint="Ipsum"
+ label="Lorem"
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceField with no value 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceField with value 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ name="price"
+ onChange={[Function]}
+ value="30"
+/>
+`;
+
+exports[`Storyshots Generics / PriceField with value, label, currency symbol and error 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ currencySymbol="$"
+ error={true}
+ hint="Ipsum"
+ label="Lorem"
+ name="price"
+ onChange={[Function]}
+ value="30"
+/>
+`;
+
+exports[`Storyshots Generics / PriceField with value, label, currency symbol and hint 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-14",
+ "pullDown": "Component-pullDown-15",
+ "separator": "Component-separator-16",
+ "widgetContainer": "Component-widgetContainer-17",
+ }
+ }
+ currencySymbol="$"
+ hint="Ipsum"
+ label="Lorem"
+ name="price"
+ onChange={[Function]}
+ value="30"
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField disabled 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ disabled={true}
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField with currency symbol 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ currencySymbol="$"
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField with hint 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ hint="Lorem ipsum"
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField with label 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ label="Lorem ipsum"
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField with label and hint 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ hint="Ipsum"
+ label="Lorem"
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField with no value 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ name="price"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField with value 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ name="price"
+ onChange={[Function]}
+ value={
+ Object {
+ "max": "30",
+ "min": "10",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField with value, label, currency symbol and error 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ currencySymbol="$"
+ error={true}
+ hint="Ipsum"
+ label="Lorem"
+ name="price"
+ onChange={[Function]}
+ value={
+ Object {
+ "max": "30",
+ "min": "10",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Generics / PriceRangeField with value, label, currency symbol and hint 1`] = `
+<Component
+ classes={
+ Object {
+ "inputContainer": "Component-inputContainer-10",
+ "pullDown": "Component-pullDown-11",
+ "separator": "Component-separator-12",
+ "widgetContainer": "Component-widgetContainer-13",
+ }
+ }
+ currencySymbol="$"
+ hint="Ipsum"
+ label="Lorem"
+ name="price"
+ onChange={[Function]}
+ value={
+ Object {
+ "max": "30",
+ "min": "10",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Generics / SingleSelectField with error hint 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "formControl": "Component-formControl-18",
+ }
+ }
+ error={true}
+ hint="Lorem error"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / SingleSelectField with hint 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "formControl": "Component-formControl-18",
+ }
+ }
+ hint="Lorem ipsum"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / SingleSelectField with label 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "formControl": "Component-formControl-18",
+ }
+ }
+ label="Lorem ipsum"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / SingleSelectField with label and hint 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "formControl": "Component-formControl-18",
+ }
+ }
+ hint="Ipsum"
+ label="Lorem"
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / SingleSelectField with no value 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "formControl": "Component-formControl-18",
+ }
+ }
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Generics / SingleSelectField with value 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "formControl": "Component-formControl-18",
+ }
+ }
+ onChange={[Function]}
+ value="1"
+/>
+`;
+
+exports[`Storyshots Generics / SingleSelectField with value, label and hint 1`] = `
+<Component
+ choices={
+ Array [
+ Object {
+ "label": "Apparel",
+ "value": "1",
+ },
+ Object {
+ "label": "Groceries",
+ "value": "2",
+ },
+ Object {
+ "label": "Books",
+ "value": "3",
+ },
+ Object {
+ "label": "Accessories",
+ "value": "4",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "formControl": "Component-formControl-18",
+ }
+ }
+ hint="Ipsum"
+ label="Lorem"
+ onChange={[Function]}
+ value="1"
+/>
+`;
+
+exports[`Storyshots Generics / Skeleton default 1`] = `
+<Component
+ classes={
+ Object {
+ "skeleton": "Component-skeleton-19",
+ }
+ }
+ style={
+ Object {
+ "maxWidth": 300,
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Generics / TablePagination both previous and next pages are available 1`] = `
+<Table
+ classes={
+ Object {
+ "root": "MuiTable-root-20",
+ }
+ }
+ component="table"
+>
+ <WithStyles(Component)
+ Actions={[Function]}
+ colSpan={1}
+ component={[Function]}
+ hasNextPage={true}
+ hasPreviousPage={true}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ />
+</Table>
+`;
+
+exports[`Storyshots Generics / TablePagination next page available 1`] = `
+<Table
+ classes={
+ Object {
+ "root": "MuiTable-root-20",
+ }
+ }
+ component="table"
+>
+ <WithStyles(Component)
+ Actions={[Function]}
+ colSpan={1}
+ component={[Function]}
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ />
+</Table>
+`;
+
+exports[`Storyshots Generics / TablePagination no previous / next page 1`] = `
+<Table
+ classes={
+ Object {
+ "root": "MuiTable-root-20",
+ }
+ }
+ component="table"
+>
+ <WithStyles(Component)
+ Actions={[Function]}
+ colSpan={1}
+ component={[Function]}
+ hasNextPage={false}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ />
+</Table>
+`;
+
+exports[`Storyshots Generics / TablePagination previous page available 1`] = `
+<Table
+ classes={
+ Object {
+ "root": "MuiTable-root-20",
+ }
+ }
+ component="table"
+>
+ <WithStyles(Component)
+ Actions={[Function]}
+ colSpan={1}
+ component={[Function]}
+ hasNextPage={false}
+ hasPreviousPage={true}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ />
+</Table>
+`;
+
+exports[`Storyshots Pages / PageBaseForm with 'created' property 1`] = `
+<Component
+ availableOn="2018-03-20T16:39:08.850105+00:00"
+ classes={
+ Object {
+ "addHelperTextPadding": "Component-addHelperTextPadding-23",
+ "cardActions": "Component-cardActions-24",
+ }
+ }
+ content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin bibendum et justo sit amet viverra. Maecenas euismod auctor nisi et tincidunt. Maecenas ante urna, aliquet at odio sed, gravida efficitur purus. Morbi ut dapibus ante. Nulla eu neque sit amet odio tincidunt porttitor eu quis purus. Aliquam at diam sit amet turpis varius semper vitae non lectus. Vivamus lectus ligula, molestie eu augue eu, cursus tincidunt sem. Nam ornare egestas tincidunt."
+ created="2018-03-20T16:39:08.850105+00:00"
+ isVisible={true}
+ slug="lorem-ipsum-dolor"
+ title="Lorem ipsum"
+/>
+`;
+
+exports[`Storyshots Pages / PageBaseForm with 'errors' property 1`] = `
+<Component
+ availableOn="2018-03-20T16:39:08.850105+00:00"
+ classes={
+ Object {
+ "addHelperTextPadding": "Component-addHelperTextPadding-23",
+ "cardActions": "Component-cardActions-24",
+ }
+ }
+ content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin bibendum et justo sit amet viverra. Maecenas euismod auctor nisi et tincidunt. Maecenas ante urna, aliquet at odio sed, gravida efficitur purus. Morbi ut dapibus ante. Nulla eu neque sit amet odio tincidunt porttitor eu quis purus. Aliquam at diam sit amet turpis varius semper vitae non lectus. Vivamus lectus ligula, molestie eu augue eu, cursus tincidunt sem. Nam ornare egestas tincidunt."
+ errors={
+ Array [
+ Object {
+ "field": "slug",
+ "message": "To pole jest wymagane.",
+ },
+ Object {
+ "field": "title",
+ "message": "To pole jest wymagane.",
+ },
+ Object {
+ "field": "content",
+ "message": "To pole jest wymagane.",
+ },
+ ]
+ }
+ isVisible={true}
+ slug="lorem-ipsum-dolor"
+ title="Lorem ipsum"
+/>
+`;
+
+exports[`Storyshots Pages / PageBaseForm with initial data 1`] = `
+<Component
+ availableOn="2018-03-20T16:39:08.850105+00:00"
+ classes={
+ Object {
+ "addHelperTextPadding": "Component-addHelperTextPadding-23",
+ "cardActions": "Component-cardActions-24",
+ }
+ }
+ content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin bibendum et justo sit amet viverra. Maecenas euismod auctor nisi et tincidunt. Maecenas ante urna, aliquet at odio sed, gravida efficitur purus. Morbi ut dapibus ante. Nulla eu neque sit amet odio tincidunt porttitor eu quis purus. Aliquam at diam sit amet turpis varius semper vitae non lectus. Vivamus lectus ligula, molestie eu augue eu, cursus tincidunt sem. Nam ornare egestas tincidunt."
+ isVisible={true}
+ slug="lorem-ipsum-dolor"
+ title="Lorem ipsum"
+/>
+`;
+
+exports[`Storyshots Pages / PageDeleteDialog default 1`] = `
+<Component
+ classes={
+ Object {
+ "deleteButton": "Component-deleteButton-25",
+ }
+ }
+ opened={true}
+>
+ <WithStyles(DialogContentText)>
+ Do you really want to delete this page?
+ </WithStyles(DialogContentText)>
+</Component>
+`;
+
+exports[`Storyshots Pages / PageFilters with initial data 1`] = `
+<FilterCard
+ handleClear={[Function]}
+>
+ <TextField
+ fullWidth={true}
+ label="Title"
+ name="title"
+ onChange={[Function]}
+ required={false}
+ select={false}
+ value="Initial title"
+ />
+ <WithStyles(Component) />
+ <TextField
+ fullWidth={true}
+ label="Url"
+ name="url"
+ onChange={[Function]}
+ required={false}
+ select={false}
+ value="initial-url"
+ />
+</FilterCard>
+`;
+
+exports[`Storyshots Pages / PageFilters without initial data 1`] = `
+<FilterCard
+ handleClear={[Function]}
+>
+ <TextField
+ fullWidth={true}
+ label="Title"
+ name="title"
+ onChange={[Function]}
+ required={false}
+ select={false}
+ value=""
+ />
+ <WithStyles(Component) />
+ <TextField
+ fullWidth={true}
+ label="Url"
+ name="url"
+ onChange={[Function]}
+ required={false}
+ select={false}
+ value=""
+ />
+</FilterCard>
+`;
+
+exports[`Storyshots Pages / PageList when loading data 1`] = `
+<Card
+ classes={
+ Object {
+ "root": "MuiCard-root-26",
+ }
+ }
+ raised={false}
+>
+ <WithStyles(Component)
+ handleNextPage={[Function]}
+ handlePreviousPage={[Function]}
+ onEditClick={[Function]}
+ onShowPageClick={[Function]}
+ pageInfo={
+ Object {
+ "endCursor": "YXJyYXljb25uZWN0aW9uOjE=",
+ "hasNextPage": false,
+ "hasPreviousPage": false,
+ "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",
+ }
+ }
+ />
+</Card>
+`;
+
+exports[`Storyshots Pages / PageList with data 1`] = `
+<Card
+ classes={
+ Object {
+ "root": "MuiCard-root-26",
+ }
+ }
+ raised={false}
+>
+ <WithStyles(Component)
+ handleNextPage={[Function]}
+ handlePreviousPage={[Function]}
+ onEditClick={[Function]}
+ onShowPageClick={[Function]}
+ pageInfo={
+ Object {
+ "endCursor": "YXJyYXljb25uZWN0aW9uOjE=",
+ "hasNextPage": false,
+ "hasPreviousPage": false,
+ "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",
+ }
+ }
+ pages={
+ Array [
+ Object {
+ "cursor": "YXJyYXljb25uZWN0aW9uOjA=",
+ "node": Object {
+ "id": "UGFnZTox",
+ "isVisible": true,
+ "slug": "about",
+ "title": "About",
+ },
+ },
+ Object {
+ "cursor": "YXJyYXljb25uZWN0aW9uOjE=",
+ "node": Object {
+ "id": "UGFnZToy",
+ "isVisible": false,
+ "slug": "terms-of-use",
+ "title": "Terms of use",
+ },
+ },
+ ]
+ }
+ />
+</Card>
+`;
+
+exports[`Storyshots Pages / PageList without data 1`] = `
+<Card
+ classes={
+ Object {
+ "root": "MuiCard-root-26",
+ }
+ }
+ raised={false}
+>
+ <WithStyles(Component)
+ handleNextPage={[Function]}
+ handlePreviousPage={[Function]}
+ onEditClick={[Function]}
+ onShowPageClick={[Function]}
+ pageInfo={
+ Object {
+ "endCursor": "YXJyYXljb25uZWN0aW9uOjE=",
+ "hasNextPage": false,
+ "hasPreviousPage": false,
+ "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",
+ }
+ }
+ pages={Array []}
+ />
+</Card>
+`;
+
+exports[`Storyshots Products / ProductAttributesForm when data loaded 1`] = `
+<Component
+ attributes={
+ Array [
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZToz",
+ "name": "Brand",
+ "slug": "brand",
+ "values": Array [
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjQw",
+ "name": "dominikibrand",
+ "slug": "dominikibrand",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM5",
+ "name": "superbrand",
+ "slug": "superbrand",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM4",
+ "name": "Mirumee",
+ "slug": "mirumee",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjY=",
+ "name": "Saleor",
+ "slug": "saleor",
+ },
+ ],
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZToy",
+ "name": "Collar",
+ "slug": "collar",
+ "values": Array [
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjU=",
+ "name": "Polo",
+ "slug": "polo",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjQ=",
+ "name": "V-Neck",
+ "slug": "v-neck",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM=",
+ "name": "Round",
+ "slug": "round",
+ },
+ ],
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZTox",
+ "name": "Color",
+ "slug": "color",
+ "values": Array [
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI=",
+ "name": "White",
+ "slug": "white",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE=",
+ "name": "Blue",
+ "slug": "blue",
+ },
+ ],
+ },
+ ]
+ }
+ classes={Object {}}
+ onChange={[Function]}
+ productAttributes={
+ Array [
+ Object {
+ "name": "brand",
+ "value": "superbrand",
+ },
+ Object {
+ "name": "collar",
+ "value": "round",
+ },
+ Object {
+ "name": "color",
+ "value": "blue",
+ },
+ ]
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductAttributesForm when loading data 1`] = `
+<Component
+ classes={Object {}}
+ loading={true}
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductAvailabilityForm when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-27",
+ }
+ }
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductAvailabilityForm with loaded data 1`] = `
+<Component
+ available={true}
+ availableOn="04-10-2010"
+ classes={
+ Object {
+ "root": "Component-root-27",
+ }
+ }
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductCategoryAndCollectionsForm when data is loaded 1`] = `
+<Component
+ categories={
+ Array [
+ Object {
+ "label": "Lorem ipsum dolor",
+ "value": "123123",
+ },
+ Object {
+ "label": "Mauris vehicula tortor vulputate",
+ "value": "876752",
+ },
+ ]
+ }
+ category="876752"
+ classes={Object {}}
+ collections={
+ Array [
+ Object {
+ "label": "Winter collection",
+ "value": "1",
+ },
+ Object {
+ "label": "Emperor's choice",
+ "value": "2",
+ },
+ ]
+ }
+ onChange={[Function]}
+ productCollections={
+ Array [
+ "1",
+ ]
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductCategoryAndCollectionsForm while loading data 1`] = `
+<Component
+ classes={Object {}}
+ loading={true}
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductCollections when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-28",
+ "link": "Component-link-29",
+ }
+ }
+ onRowClick={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductCollections with collections 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-28",
+ "link": "Component-link-29",
+ }
+ }
+ collections={
+ Array [
+ Object {
+ "id": "collection-1",
+ "name": "Winter Collection",
+ },
+ Object {
+ "id": "collection-2",
+ "name": "Summer Collection",
+ },
+ ]
+ }
+ onRowClick={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductCollections with no collections 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-28",
+ "link": "Component-link-29",
+ }
+ }
+ collections={Array []}
+ onRowClick={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductDescription when loading data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ onBack={[Function]}
+ >
+ <WithStyles(IconButton)
+ disabled={true}
+ onClick={[Function]}
+ >
+ <pure(Visibility) />
+ </WithStyles(IconButton)>
+ <WithStyles(IconButton)
+ disabled={true}
+ onClick={[Function]}
+ >
+ <pure(Edit) />
+ </WithStyles(IconButton)>
+ <WithStyles(IconButton)
+ disabled={true}
+ onClick={[Function]}
+ >
+ <pure(Delete) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <WithStyles(CardContent)>
+ <WithStyles(Typography)>
+ <WithStyles(Component) />
+ </WithStyles(Typography)>
+ </WithStyles(CardContent)>
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Products / ProductDescription with description 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ onBack={[Function]}
+ title="Stewart-Barrera"
+ >
+ <WithStyles(IconButton)
+ disabled={false}
+ >
+ <pure(Visibility) />
+ </WithStyles(IconButton)>
+ <WithStyles(IconButton)
+ disabled={false}
+ >
+ <pure(Edit) />
+ </WithStyles(IconButton)>
+ <WithStyles(IconButton)
+ disabled={false}
+ >
+ <pure(Delete) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <WithStyles(CardContent)>
+ <WithStyles(Typography)>
+ Light light office style present life military. Enough executive coach cause own.
+
+Care season wrong fly. Example age between discuss assume.
+
+Their third build might strong account. Worry enter room note level air.
+
+Weight director mother. Because find task with now enter tree management.
+
+Soon name recently ground green. There owner sport box them red information.
+ </WithStyles(Typography)>
+ </WithStyles(CardContent)>
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Products / ProductDescription with no description 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ onBack={[Function]}
+ title="Stewart-Barrera"
+ >
+ <WithStyles(IconButton)
+ disabled={false}
+ >
+ <pure(Visibility) />
+ </WithStyles(IconButton)>
+ <WithStyles(IconButton)
+ disabled={false}
+ >
+ <pure(Edit) />
+ </WithStyles(IconButton)>
+ <WithStyles(IconButton)
+ disabled={false}
+ >
+ <pure(Delete) />
+ </WithStyles(IconButton)>
+ </WithStyles(Component)>
+ <WithStyles(CardContent)>
+ <WithStyles(Typography)>
+ No description
+ </WithStyles(Typography)>
+ </WithStyles(CardContent)>
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Products / ProductDetailsForm when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-30",
+ }
+ }
+ loading={true}
+ onBack={[Function]}
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductDetailsForm with initial data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-30",
+ }
+ }
+ currencySymbol="USD"
+ description="Aenean sit amet malesuada nibh. Proin nisi lorem, facilisis at tortor vel, convallis ornare nibh. In nec ipsum porta, varius leo eu, condimentum quam. Donec gravida euismod ipsum, at consequat orci efficitur nec. Phasellus lectus arcu, auctor eget porttitor eget, venenatis a lacus. Suspendisse quis urna rhoncus, commodo justo at, tempor nisl."
+ name="Our totally awesome book"
+ onBack={[Function]}
+ onChange={[Function]}
+ price="300"
+/>
+`;
+
+exports[`Storyshots Products / ProductDetailsForm with no initial data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-30",
+ }
+ }
+ onBack={[Function]}
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductDetailsPage when loaded data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-31",
+ }
+ }
+ onBack={[Function]}
+ onCollectionShow={[Function]}
+ onDelete={[Function]}
+ onEdit={[Function]}
+ onImageEdit={[Function]}
+ onImageReorder={[Function]}
+ onImageUpload={[Function]}
+ onProductPublish={[Function]}
+ onProductShow={[Function]}
+ onVariantShow={[Function]}
+ placeholderImage="placeholder255x255.png"
+ product={
+ Object {
+ "availability": Object {
+ "available": true,
+ "priceRange": Object {
+ "start": Object {
+ "net": Object {
+ "localized": "55,14 USD",
+ },
+ },
+ "stop": Object {
+ "net": Object {
+ "localized": "88,36 USD",
+ },
+ },
+ },
+ },
+ "collections": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "id": "collection-1",
+ "name": "Winter Collection",
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "collection-2",
+ "name": "Summer Collection",
+ },
+ },
+ ],
+ },
+ "description": "Light light office style present life military. Enough executive coach cause own.
+
+Care season wrong fly. Example age between discuss assume.
+
+Their third build might strong account. Worry enter room note level air.
+
+Weight director mother. Because find task with now enter tree management.
+
+Soon name recently ground green. There owner sport box them red information.",
+ "grossMargin": Array [
+ Object {
+ "start": 56,
+ "stop": 98,
+ },
+ ],
+ "id": "UHJvZHVjdDoyOA==",
+ "images": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "alt": "",
+ "id": "UHJvZHVjdEltYWdlOjY2",
+ "order": 0,
+ "url": "placeholder255x255.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "",
+ "id": "UHJvZHVjdEltYWdlOjY3",
+ "order": 1,
+ "url": "placeholder255x255.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "",
+ "id": "UHJvZHVjdEltYWdlOjY4",
+ "order": 2,
+ "url": "placeholder255x255.png",
+ },
+ },
+ ],
+ },
+ "isPublished": true,
+ "name": "Stewart-Barrera",
+ "price": Object {
+ "localized": "95,47 USD",
+ },
+ "productType": Object {
+ "id": "UHJvZHVjdFR5cGU6Mw==",
+ "name": "Coffee",
+ },
+ "purchaseCost": Object {
+ "start": Object {
+ "gross": Object {
+ "localized": "1,88 USD",
+ },
+ },
+ "stop": Object {
+ "gross": Object {
+ "localized": "48,10 USD",
+ },
+ },
+ },
+ "url": "/pl/products/stewart-barrera-28/",
+ "variants": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6Nw==",
+ "name": "XXL",
+ "priceOverride": null,
+ "sku": "2-1337",
+ "stockQuantity": 5,
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6OA==",
+ "name": "XL",
+ "priceOverride": null,
+ "sku": "2-1338",
+ "stockQuantity": 0,
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6OQ==",
+ "name": "L",
+ "priceOverride": null,
+ "sku": "2-1339",
+ "stockQuantity": 15,
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTA=",
+ "name": "M",
+ "priceOverride": null,
+ "sku": "2-1340",
+ "stockQuantity": 33,
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTE=",
+ "name": "S",
+ "priceOverride": null,
+ "sku": "2-1341",
+ "stockQuantity": 0,
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTI=",
+ "name": "XS",
+ "priceOverride": null,
+ "sku": "2-1342",
+ "stockQuantity": 0,
+ },
+ },
+ ],
+ },
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductDetailsPage when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-31",
+ }
+ }
+ onBack={[Function]}
+ onCollectionShow={[Function]}
+ onDelete={[Function]}
+ onEdit={[Function]}
+ onImageEdit={[Function]}
+ onImageReorder={[Function]}
+ onImageUpload={[Function]}
+ onProductPublish={[Function]}
+ onProductShow={[Function]}
+ onVariantShow={[Function]}
+ placeholderImage="placeholder255x255.png"
+/>
+`;
+
+exports[`Storyshots Products / ProductImagePage data loaded 1`] = `
+<Component
+ classes={
+ Object {
+ "image": "Component-image-33",
+ "root": "Component-root-32",
+ }
+ }
+ image="placeholder255x255.png"
+ onBack={[Function]}
+ onSubmit={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductImagePage loading 1`] = `
+<Component
+ classes={
+ Object {
+ "image": "Component-image-33",
+ "root": "Component-root-32",
+ }
+ }
+ loading={true}
+ onBack={[Function]}
+ onSubmit={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductImages when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-35",
+ "fileField": "Component-fileField-38",
+ "gridElement": "Component-gridElement-36",
+ "icon": "Component-icon-37",
+ "root": "Component-root-34",
+ }
+ }
+ onImageReorder={[Function]}
+ onImageUpload={[Function]}
+ placeholderImage="placeholder255x255.png"
+/>
+`;
+
+exports[`Storyshots Products / ProductImages with data 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-35",
+ "fileField": "Component-fileField-38",
+ "gridElement": "Component-gridElement-36",
+ "icon": "Component-icon-37",
+ "root": "Component-root-34",
+ }
+ }
+ images={
+ Array [
+ Object {
+ "alt": "",
+ "id": "UHJvZHVjdEltYWdlOjY2",
+ "order": 0,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "",
+ "id": "UHJvZHVjdEltYWdlOjY3",
+ "order": 1,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "",
+ "id": "UHJvZHVjdEltYWdlOjY4",
+ "order": 2,
+ "url": "placeholder255x255.png",
+ },
+ ]
+ }
+ onImageReorder={[Function]}
+ onImageUpload={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductImages without data 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-35",
+ "fileField": "Component-fileField-38",
+ "gridElement": "Component-gridElement-36",
+ "icon": "Component-icon-37",
+ "root": "Component-root-34",
+ }
+ }
+ images={Array []}
+ onImageReorder={[Function]}
+ onImageUpload={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductListCard when loading data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Product list"
+ >
+ <Hidden
+ implementation="js"
+ lgDown={false}
+ lgUp={false}
+ mdDown={false}
+ mdUp={true}
+ smDown={false}
+ smUp={false}
+ xlDown={false}
+ xlUp={false}
+ xsDown={false}
+ xsUp={false}
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(FilterList) />
+ </WithStyles(IconButton)>
+ </Hidden>
+ </WithStyles(Component)>
+ <WithStyles(Component)
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Products / ProductListCard with clickable rows 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Product list"
+ >
+ <Hidden
+ implementation="js"
+ lgDown={false}
+ lgUp={false}
+ mdDown={false}
+ mdUp={true}
+ smDown={false}
+ smUp={false}
+ xlDown={false}
+ xlUp={false}
+ xsDown={false}
+ xsUp={false}
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(FilterList) />
+ </WithStyles(IconButton)>
+ </Hidden>
+ </WithStyles(Component)>
+ <WithStyles(Component)
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ onRowClick={[Function]}
+ products={
+ Array [
+ Object {
+ "id": "UHJvZHVjdDox",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder255x255.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoy",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder255x255.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoz",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder255x255.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoa",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder255x255.png",
+ },
+ ]
+ }
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Products / ProductListCard with initial data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Product list"
+ >
+ <Hidden
+ implementation="js"
+ lgDown={false}
+ lgUp={false}
+ mdDown={false}
+ mdUp={true}
+ smDown={false}
+ smUp={false}
+ xlDown={false}
+ xlUp={false}
+ xsDown={false}
+ xsUp={false}
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(FilterList) />
+ </WithStyles(IconButton)>
+ </Hidden>
+ </WithStyles(Component)>
+ <WithStyles(Component)
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ products={
+ Array [
+ Object {
+ "id": "UHJvZHVjdDox",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder255x255.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoy",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder255x255.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoz",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder255x255.png",
+ },
+ Object {
+ "id": "UHJvZHVjdDoa",
+ "name": "Gardner, Graham and King",
+ "productType": Object {
+ "id": "1",
+ "name": "T-Shirt",
+ },
+ "thumbnailUrl": "placeholder255x255.png",
+ },
+ ]
+ }
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Products / ProductListCard without initial data 1`] = `
+<WithStyles(Card)>
+ <WithStyles(Component)
+ title="Product list"
+ >
+ <Hidden
+ implementation="js"
+ lgDown={false}
+ lgUp={false}
+ mdDown={false}
+ mdUp={true}
+ smDown={false}
+ smUp={false}
+ xlDown={false}
+ xlUp={false}
+ xsDown={false}
+ xsUp={false}
+ >
+ <WithStyles(IconButton)
+ onClick={[Function]}
+ >
+ <pure(FilterList) />
+ </WithStyles(IconButton)>
+ </Hidden>
+ </WithStyles(Component)>
+ <WithStyles(Component)
+ hasNextPage={true}
+ hasPreviousPage={false}
+ onNextPage={[Function]}
+ onPreviousPage={[Function]}
+ products={Array []}
+ />
+</WithStyles(Card)>
+`;
+
+exports[`Storyshots Products / ProductPriceAndAvailability when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "greenText": "Component-greenText-39",
+ "leftCell": "Component-leftCell-40",
+ "redText": "Component-redText-41",
+ "rightCell": "Component-rightCell-42",
+ }
+ }
+ onPublish={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductPriceAndAvailability when product is available 1`] = `
+<Component
+ classes={
+ Object {
+ "greenText": "Component-greenText-39",
+ "leftCell": "Component-leftCell-40",
+ "redText": "Component-redText-41",
+ "rightCell": "Component-rightCell-42",
+ }
+ }
+ grossMargin={
+ Object {
+ "start": 56,
+ "stop": 98,
+ }
+ }
+ isAvailable={true}
+ onPublish={[Function]}
+ purchaseCost={
+ Object {
+ "start": "1,88 USD",
+ "stop": "48,10 USD",
+ }
+ }
+ salePrice={
+ Object {
+ "start": "55,14 USD",
+ "stop": "88,36 USD",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductPriceAndAvailability when product is not available 1`] = `
+<Component
+ classes={
+ Object {
+ "greenText": "Component-greenText-39",
+ "leftCell": "Component-leftCell-40",
+ "redText": "Component-redText-41",
+ "rightCell": "Component-rightCell-42",
+ }
+ }
+ grossMargin={
+ Object {
+ "start": 56,
+ "stop": 98,
+ }
+ }
+ isAvailable={false}
+ onPublish={[Function]}
+ purchaseCost={
+ Object {
+ "start": "1,88 USD",
+ "stop": "48,10 USD",
+ }
+ }
+ salePrice={
+ Object {
+ "start": "55,14 USD",
+ "stop": "88,36 USD",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductUpdatePage when data is fully loaded 1`] = `
+<Component
+ categories={
+ Array [
+ Object {
+ "id": "123123",
+ "name": "Lorem ipsum dolor",
+ },
+ Object {
+ "id": "876752",
+ "name": "Mauris vehicula tortor vulputate",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "cardContainer": "Component-cardContainer-45",
+ "grid": "Component-grid-44",
+ "root": "Component-root-43",
+ }
+ }
+ collections={
+ Array [
+ Object {
+ "id": "1",
+ "name": "Winter collection",
+ },
+ Object {
+ "id": "2",
+ "name": "Emperor's choice",
+ },
+ ]
+ }
+ onBack={[Function]}
+ onSubmit={[Function]}
+ product={
+ Object {
+ "attributes": Array [
+ Object {
+ "name": "brand",
+ "value": "superbrand",
+ },
+ Object {
+ "name": "collar",
+ "value": "round",
+ },
+ Object {
+ "name": "color",
+ "value": "blue",
+ },
+ ],
+ "available": true,
+ "availableOn": "23-01-2006",
+ "category": Object {
+ "id": "123123",
+ },
+ "collections": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "id": "1",
+ "name": "Winter collection",
+ },
+ },
+ ],
+ },
+ "description": "Aenean sit amet malesuada nibh. Proin nisi lorem, facilisis at tortor vel, convallis ornare nibh. In nec ipsum porta, varius leo eu, condimentum quam. Donec gravida euismod ipsum, at consequat orci efficitur nec. Phasellus lectus arcu, auctor eget porttitor eget, venenatis a lacus. Suspendisse quis urna rhoncus, commodo justo at, tempor nisl.",
+ "id": "1231u",
+ "name": "Our awesome book",
+ "price": Object {
+ "currencySymbol": "$",
+ "net": 3000.1,
+ },
+ "productType": Object {
+ "name": "Book",
+ "productAttributes": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZToz",
+ "name": "Brand",
+ "slug": "brand",
+ "values": Array [
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjQw",
+ "name": "dominikibrand",
+ "slug": "dominikibrand",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM5",
+ "name": "superbrand",
+ "slug": "superbrand",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM4",
+ "name": "Mirumee",
+ "slug": "mirumee",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjY=",
+ "name": "Saleor",
+ "slug": "saleor",
+ },
+ ],
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZToy",
+ "name": "Collar",
+ "slug": "collar",
+ "values": Array [
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjU=",
+ "name": "Polo",
+ "slug": "polo",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjQ=",
+ "name": "V-Neck",
+ "slug": "v-neck",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM=",
+ "name": "Round",
+ "slug": "round",
+ },
+ ],
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZTox",
+ "name": "Color",
+ "slug": "color",
+ "values": Array [
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI=",
+ "name": "White",
+ "slug": "white",
+ },
+ Object {
+ "id": "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE=",
+ "name": "Blue",
+ "slug": "blue",
+ },
+ ],
+ },
+ },
+ ],
+ },
+ },
+ "seo": Object {
+ "description": "Order our awesome book right now!",
+ "title": "Buy our awesome book now!",
+ },
+ "slug": "our-awesome-book-1231u",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductUpdatePage when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "cardContainer": "Component-cardContainer-45",
+ "grid": "Component-grid-44",
+ "root": "Component-root-43",
+ }
+ }
+ loading={true}
+ onBack={[Function]}
+ onSubmit={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantAttributes when loaded data 1`] = `
+<Component
+ attributes={
+ Array [
+ Object {
+ "attribute": Object {
+ "name": "Cover",
+ "slug": "cover",
+ "values": Array [
+ "hard",
+ "soft",
+ ],
+ },
+ "value": "hard",
+ },
+ Object {
+ "attribute": Object {
+ "name": "Version",
+ "slug": "version",
+ "values": Array [
+ "regular",
+ "extended",
+ ],
+ },
+ "value": "extended",
+ },
+ ]
+ }
+ classes={
+ Object {
+ "grid": "Component-grid-46",
+ }
+ }
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantAttributes when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "grid": "Component-grid-46",
+ }
+ }
+ loading={true}
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantDeleteDialog default 1`] = `
+<Component
+ classes={
+ Object {
+ "deleteButton": "Component-deleteButton-47",
+ }
+ }
+ name="Extended Hard"
+ open={true}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantImageSelectDialog default 1`] = `
+<ProductVariantImageSelectDialogComponent
+ classes={
+ Object {
+ "gridElement": "ProductVariantImageSelectDialogComponent-gridElement-49",
+ "icon": "ProductVariantImageSelectDialogComponent-icon-50",
+ "iconChecked": "ProductVariantImageSelectDialogComponent-iconChecked-51",
+ "root": "ProductVariantImageSelectDialogComponent-root-48",
+ }
+ }
+ images={
+ Array [
+ Object {
+ "alt": "Front",
+ "id": "img1",
+ "order": 1,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Back",
+ "id": "img2",
+ "order": 4,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Right side",
+ "id": "img3",
+ "order": 2,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Left side",
+ "id": "img4",
+ "order": 3,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Paper",
+ "id": "img5",
+ "order": 0,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Hard cover",
+ "id": "img6",
+ "order": 1,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Extended version",
+ "id": "img7",
+ "order": 0,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Cut version",
+ "id": "img8",
+ "order": 2,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Soft cover",
+ "id": "img9",
+ "order": 2,
+ "url": "placeholder255x255.png",
+ },
+ ]
+ }
+ open={true}
+ selectedImages={
+ Array [
+ Object {
+ "id": "img1",
+ },
+ Object {
+ "id": "img2",
+ },
+ Object {
+ "id": "img7",
+ },
+ Object {
+ "id": "img8",
+ },
+ ]
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantImages when loaded data 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-53",
+ "gridElement": "Component-gridElement-54",
+ "root": "Component-root-52",
+ }
+ }
+ images={
+ Array [
+ Object {
+ "alt": "Front",
+ "id": "img1",
+ "order": 1,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Back",
+ "id": "img2",
+ "order": 4,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Right side",
+ "id": "img3",
+ "order": 2,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Left side",
+ "id": "img4",
+ "order": 3,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Paper",
+ "id": "img5",
+ "order": 0,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Hard cover",
+ "id": "img6",
+ "order": 1,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Extended version",
+ "id": "img7",
+ "order": 0,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Cut version",
+ "id": "img8",
+ "order": 2,
+ "url": "placeholder255x255.png",
+ },
+ Object {
+ "alt": "Soft cover",
+ "id": "img9",
+ "order": 2,
+ "url": "placeholder255x255.png",
+ },
+ ]
+ }
+ onImageAdd={[Function]}
+ placeholderImage="placeholder255x255.png"
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantImages when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-53",
+ "gridElement": "Component-gridElement-54",
+ "root": "Component-root-52",
+ }
+ }
+ loading={true}
+ onImageAdd={[Function]}
+ placeholderImage="placeholder255x255.png"
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantNavigation when loaded data 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-55",
+ "link": "Component-link-56",
+ }
+ }
+ variants={
+ Array [
+ Object {
+ "id": "var2",
+ "name": "Extended Soft",
+ },
+ Object {
+ "id": "var3",
+ "name": "Normal Hard",
+ },
+ Object {
+ "id": "var4",
+ "name": "Normal Soft",
+ },
+ ]
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantNavigation when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-55",
+ "link": "Component-link-56",
+ }
+ }
+ loading={true}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantNavigation with clickable rows 1`] = `
+<Component
+ classes={
+ Object {
+ "card": "Component-card-55",
+ "link": "Component-link-56",
+ }
+ }
+ onRowClick={[Function]}
+ variants={
+ Array [
+ Object {
+ "id": "var2",
+ "name": "Extended Soft",
+ },
+ Object {
+ "id": "var3",
+ "name": "Normal Hard",
+ },
+ Object {
+ "id": "var4",
+ "name": "Normal Soft",
+ },
+ ]
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantPage when loaded data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-57",
+ }
+ }
+ onBack={[Function]}
+ onDelete={[Function]}
+ onImageSelect={[Function]}
+ variant={
+ Object {
+ "attributes": Array [
+ Object {
+ "attribute": Object {
+ "name": "Cover",
+ "slug": "cover",
+ "values": Array [
+ "hard",
+ "soft",
+ ],
+ },
+ "value": "hard",
+ },
+ Object {
+ "attribute": Object {
+ "name": "Version",
+ "slug": "version",
+ "values": Array [
+ "regular",
+ "extended",
+ ],
+ },
+ "value": "extended",
+ },
+ ],
+ "id": "var1",
+ "images": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "id": "img1",
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "img2",
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "img7",
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "img8",
+ },
+ },
+ ],
+ },
+ "name": "Extended Hard",
+ "priceOverride": Object {
+ "amount": 100,
+ "currency": "USD",
+ },
+ "product": Object {
+ "id": "prod1",
+ "images": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "alt": "Front",
+ "id": "img1",
+ "order": 1,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Back",
+ "id": "img2",
+ "order": 4,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Right side",
+ "id": "img3",
+ "order": 2,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Left side",
+ "id": "img4",
+ "order": 3,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Paper",
+ "id": "img5",
+ "order": 0,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Hard cover",
+ "id": "img6",
+ "order": 1,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Extended version",
+ "id": "img7",
+ "order": 0,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Cut version",
+ "id": "img8",
+ "order": 2,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Soft cover",
+ "id": "img9",
+ "order": 2,
+ "url": "placeholder60x60.png",
+ },
+ },
+ ],
+ },
+ "name": "Our Awesome Book",
+ "thumbnailUrl": "placeholder60x60.png",
+ "variants": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "id": "var2",
+ "name": "Extended Soft",
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "var3",
+ "name": "Normal Hard",
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "var4",
+ "name": "Normal Soft",
+ },
+ },
+ ],
+ "totalCount": 11,
+ },
+ },
+ "sku": "1230959124123",
+ "stock": 49,
+ "stockAllocated": 12,
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantPage when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-57",
+ }
+ }
+ loading={true}
+ onBack={[Function]}
+ onDelete={[Function]}
+ onImageSelect={[Function]}
+ placeholderImage="placeholder60x60.png"
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantPrice when loaded data 1`] = `
+<Component
+ classes={
+ Object {
+ "grid": "Component-grid-59",
+ "root": "Component-root-58",
+ }
+ }
+ costPrice={100}
+ currencySymbol="USD"
+ onChange={[Function]}
+ priceOverride={100}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantPrice when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "grid": "Component-grid-59",
+ "root": "Component-root-58",
+ }
+ }
+ loading={true}
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantProduct when loaded data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-60",
+ }
+ }
+ product={
+ Object {
+ "id": "prod1",
+ "images": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "alt": "Front",
+ "id": "img1",
+ "order": 1,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Back",
+ "id": "img2",
+ "order": 4,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Right side",
+ "id": "img3",
+ "order": 2,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Left side",
+ "id": "img4",
+ "order": 3,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Paper",
+ "id": "img5",
+ "order": 0,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Hard cover",
+ "id": "img6",
+ "order": 1,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Extended version",
+ "id": "img7",
+ "order": 0,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Cut version",
+ "id": "img8",
+ "order": 2,
+ "url": "placeholder60x60.png",
+ },
+ },
+ Object {
+ "node": Object {
+ "alt": "Soft cover",
+ "id": "img9",
+ "order": 2,
+ "url": "placeholder60x60.png",
+ },
+ },
+ ],
+ },
+ "name": "Our Awesome Book",
+ "thumbnailUrl": "placeholder60x60.png",
+ "variants": Object {
+ "edges": Array [
+ Object {
+ "node": Object {
+ "id": "var2",
+ "name": "Extended Soft",
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "var3",
+ "name": "Normal Hard",
+ },
+ },
+ Object {
+ "node": Object {
+ "id": "var4",
+ "name": "Normal Soft",
+ },
+ },
+ ],
+ "totalCount": 11,
+ },
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantProduct when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "root": "Component-root-60",
+ }
+ }
+ loading={true}
+ placeholderImage="placeholder60x60.png"
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantStock when loaded data 1`] = `
+<Component
+ classes={
+ Object {
+ "grid": "Component-grid-62",
+ "root": "Component-root-61",
+ }
+ }
+ onChange={[Function]}
+ sku="1230959124123"
+ stock={49}
+ stockAllocated={12}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariantStock when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "grid": "Component-grid-62",
+ "root": "Component-root-61",
+ }
+ }
+ loading={true}
+ onChange={[Function]}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariants when loading data 1`] = `
+<Component
+ classes={
+ Object {
+ "alignRightText": "Component-alignRightText-63",
+ "greenDot": "Component-greenDot-64",
+ "link": "Component-link-65",
+ "redDot": "Component-redDot-66",
+ }
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductVariants when product has no variants 1`] = `
+<Component
+ classes={
+ Object {
+ "alignRightText": "Component-alignRightText-63",
+ "greenDot": "Component-greenDot-64",
+ "link": "Component-link-65",
+ "redDot": "Component-redDot-66",
+ }
+ }
+ variants={Array []}
+/>
+`;
+
+exports[`Storyshots Products / ProductVariants when product has variants 1`] = `
+<Component
+ classes={
+ Object {
+ "alignRightText": "Component-alignRightText-63",
+ "greenDot": "Component-greenDot-64",
+ "link": "Component-link-65",
+ "redDot": "Component-redDot-66",
+ }
+ }
+ fallbackGross="80%"
+ fallbackPrice="90.00 USD"
+ variants={
+ Array [
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6Nw==",
+ "name": "XXL",
+ "priceOverride": null,
+ "sku": "2-1337",
+ "stockQuantity": 5,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6OA==",
+ "name": "XL",
+ "priceOverride": null,
+ "sku": "2-1338",
+ "stockQuantity": 0,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6OQ==",
+ "name": "L",
+ "priceOverride": null,
+ "sku": "2-1339",
+ "stockQuantity": 15,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTA=",
+ "name": "M",
+ "priceOverride": null,
+ "sku": "2-1340",
+ "stockQuantity": 33,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTE=",
+ "name": "S",
+ "priceOverride": null,
+ "sku": "2-1341",
+ "stockQuantity": 0,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTI=",
+ "name": "XS",
+ "priceOverride": null,
+ "sku": "2-1342",
+ "stockQuantity": 0,
+ },
+ ]
+ }
+/>
+`;
+
+exports[`Storyshots Products / ProductVariants with clickable rows 1`] = `
+<Component
+ classes={
+ Object {
+ "alignRightText": "Component-alignRightText-63",
+ "greenDot": "Component-greenDot-64",
+ "link": "Component-link-65",
+ "redDot": "Component-redDot-66",
+ }
+ }
+ fallbackGross="80%"
+ fallbackPrice="90.00 USD"
+ onRowClick={[Function]}
+ variants={
+ Array [
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6Nw==",
+ "name": "XXL",
+ "priceOverride": null,
+ "sku": "2-1337",
+ "stockQuantity": 5,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6OA==",
+ "name": "XL",
+ "priceOverride": null,
+ "sku": "2-1338",
+ "stockQuantity": 0,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6OQ==",
+ "name": "L",
+ "priceOverride": null,
+ "sku": "2-1339",
+ "stockQuantity": 15,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTA=",
+ "name": "M",
+ "priceOverride": null,
+ "sku": "2-1340",
+ "stockQuantity": 33,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTE=",
+ "name": "S",
+ "priceOverride": null,
+ "sku": "2-1341",
+ "stockQuantity": 0,
+ },
+ Object {
+ "id": "UHJvZHVjdFZhcmlhbnQ6MTI=",
+ "name": "XS",
+ "priceOverride": null,
+ "sku": "2-1342",
+ "stockQuantity": 0,
+ },
+ ]
+ }
+/>
+`;
diff --git a/saleor/static/dashboard-next/storybook/config.js b/saleor/static/dashboard-next/storybook/config.js
index c723698a49..46d4383612 100644
--- a/saleor/static/dashboard-next/storybook/config.js
+++ b/saleor/static/dashboard-next/storybook/config.js
@@ -1,3 +1,4 @@
+/* eslint-disable */
import { configure } from "@storybook/react";
function loadStories() {
diff --git a/saleor/static/dashboard-next/storybook/webpack.config.js b/saleor/static/dashboard-next/storybook/webpack.config.js
index 82d2ee18f8..4008f3cf19 100644
--- a/saleor/static/dashboard-next/storybook/webpack.config.js
+++ b/saleor/static/dashboard-next/storybook/webpack.config.js
@@ -1,3 +1,4 @@
+/* eslint-disable */
var path = require("path");
var webpack = require("webpack");