Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge branch 'master' into feature/single-page-category-search
Marcin Gębalaa47c3af5308c
diff --cc package.jsonindex 711e22e6a2,7157cc72b4..9db18ba886--- a/package.json+++ b/package.json@@@ -27,8 -25,9 +25,10 @@@"jquery.cookie": "^1.4.1","material-design-icons": "^3.0.1","materialize-css": "^0.97.7",+ "mobx": "^3.0.0",+ "mobx-react": "^4.1.0","modernizr": "^3.2.0",+ "query-string": "^4.2.3","react": "^0.14.3","react-dom": "^0.14.3","react-redux": "~4.0.0",@@@ -41,9 -40,9 +42,10 @@@"devDependencies": {"autoprefixer": "^6.4.1","babel-core": "^6.14.0",+ "babel-eslint": "^6.1.2","babel-loader": "^6.2.5","babel-plugin-transform-class-properties": "^6.11.5",+ "babel-plugin-transform-decorators-legacy": "^1.3.4","babel-plugin-transform-object-rest-spread": "^6.8.0","babel-preset-es2015": "^6.14.0","babel-preset-react": "^6.0.15",@@@ -68,21 -63,11 +70,22 @@@"stage-0","es2015","react"+ ],+ "plugins": [++ "transform-decorators-legacy",+ "transform-class-properties",+ "transform-object-rest-spread",+ "babel-relay-plugin-loader"]},+ "metadata": {+ "graphql": {+ "schema": "./schema.json"+ }+ },"scripts": {- "build-assets": "node ./node_modules/webpack/bin/webpack.js -p",+ "build-assets": "python manage.py graphql_schema; node ./node_modules/webpack/bin/webpack.js -p","heroku-postbuild": "npm run build-assets",- "start": "node ./node_modules/webpack/bin/webpack.js -d --watch"+ "start": "python manage.py graphql_schema; UV_THREADPOOL_SIZE=8 node ./node_modules/webpack/bin/webpack.js -d --watch"}}diff --cc saleor/core/utils/random_data.pyindex 75ef60dd3d,0602f901fc..4efa25e596--- a/saleor/core/utils/random_data.py+++ b/saleor/core/utils/random_data.py@@@ -39,17 -36,17 +39,19 @@@ DEFAULT_SCHEMA ='Size': ['XS', 'S', 'M', 'L', 'XL', 'XXL']},'images_dir': 't-shirts/',+ 'is_shipping_required': True},'Mugs': {+ 'category': 'Accessories','product_attributes': {'Brand': ['Saleor']},'variant_attributes': {},- 'images_dir': 'mugs/'+ 'images_dir': 'mugs/',+ 'is_shipping_required': True},'Coffee': {+ 'category': 'Foodstuffs','product_attributes': {'Coffee Genre': ['Arabica', 'Robusta'],'Brand': ['Saleor']@@@ -59,9 -56,9 +61,10 @@@},'different_variant_prices': True,'images_dir': 'coffee/',+ 'is_shipping_required': True},'Candy': {+ 'category': 'Foodstuffs','product_attributes': {'Flavor': ['Sour', 'Sweet'],'Brand': ['Saleor']diff --cc saleor/product/views.pyindex f1e2900548,2c40a8c971..f91157b554--- a/saleor/product/views.py+++ b/saleor/product/views.py@@@ -9,8 -10,10 +9,9 @@@ from django.shortcuts import get_objectfrom django.template.response import TemplateResponsefrom ..cart.utils import set_cart_cookie-from ..core.utils import get_paginator_items, serialize_decimal++from ..core.utils import serialize_decimalfrom .models import Categoryfrom .utils import (products_with_details, products_for_cart,- products_with_availability,handle_cart_form, get_availability,get_product_images, get_variant_picker_data,get_product_attributes_data)diff --cc saleor/static/js/storefront.jsindex 5c928ff827,03deb505aa..881a2017d3--- a/saleor/static/js/storefront.js+++ b/saleor/static/js/storefront.js@@@ -2,9 -2,11 +2,12 @@@ import '../scss/storefront/storefront.simport 'jquery.cookie'import React from 'react'import ReactDOM from 'react-dom'+import Relay from 'react-relay';+ import variantPickerStore from './stores/variantPicker'+import VariantPicker from './components/variantPicker/VariantPicker'+ import VariantPrice from './components/variantPicker/VariantPrice'let csrftoken = $.cookie('csrftoken')diff --cc yarn.lockindex 4f4d8ef112,6eb6873915..5697e70abb--- a/yarn.lock+++ b/yarn.lock@@@ -859,19 -822,7 +867,19 @@@ babel-register@^6.18.0mkdirp "^0.5.1"source-map-support "^0.4.2"-babel-runtime@^6.0.0, babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtime@^6.2.0, babel-runtime@^6.20.0, babel-runtime@^6.9.0, babel-runtime@^6.9.1:+babel-relay-plugin-loader@^0.9.0:+ version "0.9.0"+ resolved "https://registry.yarnpkg.com/babel-relay-plugin-loader/-/babel-relay-plugin-loader-0.9.0.tgz#2f05d44d211173b828968541df4e93912f17aba6"+ dependencies:+ babel-relay-plugin "^0.9.0"++babel-relay-plugin@^0.9.0, "babel-relay-plugin@https://registry.npmjs.org/babel-relay-plugin/-/babel-relay-plugin-0.9.3.tgz":+ version "0.9.3"+ resolved "https://registry.npmjs.org/babel-relay-plugin/-/babel-relay-plugin-0.9.3.tgz#4dd92693f68b00cd1cb68a705470f8f9cfaed5d6"+ dependencies:+ graphql "^0.6.0"+- babel-runtime@^6.0.0, babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtime@^6.20.0, babel-runtime@^6.6.1, babel-runtime@^6.9.0, babel-runtime@^6.9.1:++babel-runtime@^6.0.0, babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtime@^6.2.0, babel-runtime@^6.20.0, babel-runtime@^6.6.1, babel-runtime@^6.9.0, babel-runtime@^6.9.1:version "6.20.0"resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.20.0.tgz#87300bdcf4cd770f09bf0048c64204e17806d16f"dependencies: