Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update stories
dominik-zeglen7eb2f8971f14
diff --git a/package-lock.json b/package-lock.jsonindex 724938855a..ad0035b715 100644--- a/package-lock.json+++ b/package-lock.json@@ -3015,6 +3015,7 @@"react-event-listener": "^0.6.2","react-jss": "^8.1.0","react-transition-group": "^2.2.1",+ "recompose": "^0.28.0","warning": "^4.0.1"},"dependencies": {@@ -3028,15 +3029,31 @@}},"recompose": {- "version": "0.27.1",- "resolved": "https://registry.npmjs.org/recompose/-/recompose-0.27.1.tgz",- "integrity": "sha512-p7xsyi/rfNjHfdP7vPU02uSFa+Q1eHhjKrvO+3+kRP4Ortj+MxEmpmd+UQtBGM2D2iNAjzNI5rCyBKp9Ob5McA==",+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/recompose/-/recompose-0.28.2.tgz",+ "integrity": "sha512-baVNKQBQAAAuLRnv6Cb/6/j59a1BVj6c6Pags1KXVyRB0yPfQVUZtuAUnqHDBXoR8iXPrLGWE4RNtCQ/AaRP3g==","requires": {- "babel-runtime": "^6.26.0",+ "@babel/runtime": "7.0.0-beta.56","change-emitter": "^0.1.2","fbjs": "^0.8.1","hoist-non-react-statics": "^2.3.1",+ "react-lifecycles-compat": "^3.0.2","symbol-observable": "^1.0.4"+ },+ "dependencies": {+ "@babel/runtime": {+ "version": "7.0.0-beta.56",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.0.0-beta.56.tgz",+ "integrity": "sha512-vP9XV2VP013UEyZdU9eWClCsm6rQPUYHVNCfmpcv5uKviW7mKmUZq71Y5cr5dYsFKfnGDxSo8h6plUGR60lwHg==",+ "requires": {+ "regenerator-runtime": "^0.12.0"+ }+ },+ "regenerator-runtime": {+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz",+ "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg=="+ }}},"warning": {@@ -19864,6 +19881,11 @@"theming": "^1.3.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=="+ },"react-modal": {"version": "3.4.5","resolved": "https://registry.npmjs.org/react-modal/-/react-modal-3.4.5.tgz",diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snapindex 7a8d50a094..6ce1b98e78 100644--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap@@ -10980,6 +10980,97 @@ exports[`Storyshots Pages / PageContent when loading 1`] = `</div>`;+exports[`Storyshots Pages / PageContent with errors 1`] = `+<div>+ <div+ class="MuiPaper-root-id MuiPaper-elevation1-id MuiPaper-rounded-id MuiCard-root-id"+ >+ <div+ class="MuiCardContent-root-id"+ >+ <div+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id"+ >+ <label+ class="MuiFormLabel-root-id MuiFormLabel-error-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"+ data-shrink="false"+ >+ Title+ </label>+ <div+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-error-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"+ >+ <input+ aria-invalid="true"+ autofocus=""+ class="MuiInput-input-id MuiInput-disabled-id"+ disabled=""+ name="title"+ type="text"+ value=""+ />+ </div>+ <p+ class="MuiFormHelperText-root-id MuiFormHelperText-error-id"+ >+ Generic error+ </p>+ </div>+ <div+ class="Component-spacer-id"+ />+ <div+ class="MuiFormControl-root-id"+ style="width:100%"+ >+ <label+ class="MuiFormLabel-root-id MuiFormLabel-error-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"+ data-shrink="false"+ >+ Content+ </label>+ <div+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-error-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"+ >+ <div+ class="Textarea-root-id"+ style="height:19px"+ >+ <textarea+ aria-hidden="true"+ class="Textarea-textarea-id Textarea-shadow-id"+ readonly=""+ rows="1"+ tabindex="-1"+ />+ <textarea+ aria-hidden="true"+ class="Textarea-textarea-id Textarea-shadow-id"+ readonly=""+ rows="1"+ tabindex="-1"+ />+ <textarea+ aria-invalid="true"+ class="Textarea-textarea-id MuiInput-input-id MuiInput-disabled-id MuiInput-inputMultiline-id"+ disabled=""+ name="content"+ rows="1"+ type="text"+ />+ </div>+ </div>+ <p+ class="MuiFormHelperText-root-id MuiFormHelperText-error-id"+ >+ Generic error+ </p>+ </div>+ </div>+ </div>+</div>+`;+exports[`Storyshots Pages / PageDeleteDialog default 1`] = `<div />`;exports[`Storyshots Pages / PageProperties when loaded 1`] = `diff --git a/saleor/static/dashboard-next/storybook/stories/pages/PageContent.tsx b/saleor/static/dashboard-next/storybook/stories/pages/PageContent.tsxindex 1279f904c0..edd04bbac5 100644--- a/saleor/static/dashboard-next/storybook/stories/pages/PageContent.tsx+++ b/saleor/static/dashboard-next/storybook/stories/pages/PageContent.tsx@@ -7,7 +7,18 @@ import Decorator from "../../Decorator";storiesOf("Pages / PageContent", module).addDecorator(Decorator)- .add("when loaded", () => <PageContent {...page} />)+ .add("when loaded", () => <PageContent errors={{}} {...page} />).add("when loading", () => (- <PageContent loading={true} content="" title="" />+ <PageContent errors={{}} loading={true} content="" title="" />+ ))+ .add("with errors", () => (+ <PageContent+ errors={{+ content: "Generic error",+ title: "Generic error"+ }}+ loading={true}+ content=""+ title=""+ />));