Commit Graph

1309 Commits

Author SHA1 Message Date
renovate[bot] 99502f744f Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/1191) 2019-11-18 11:01:44 +00:00
Mike Jolley d613d2fde6 Active filters block (https://github.com/woocommerce/woocommerce-blocks/pull/1168)
* Basic block construction

* Register on PHP side

* wc-active-filters script

* Price utils

* Refactor price slider so state reflects the query

Moves some logic from the component to the block so that min and max price can change (via query) and be reflected by the price sliders.

This allows the active filters block to change the query and have those new values reflected by the slider.

* Fix type checking of numbers

* Styles for filter block

* Improved attribute helper for getting attribute taxonomy data from ID/taxonomy

* Refactor attribute filter to use updateAttributeFilter helper

* Disable checkboxes when loading to avoid multiple queries

* Add todos - this is blocked

* Remove checked state from Attribute Filter so it gets updated from the store (https://github.com/woocommerce/woocommerce-blocks/pull/1170)

* isLoading check

* active price filtering rendering

* Block heading

* Implement block options; chip display with clear button

* Clear all should remove all attributes

* Enable previews

* Introduce a component to look up terms from slugs using collections (which are cached)

* Correct all docblocks

* activePriceFilters null return

* renderRemovableListItem

* Remove useMemo for hasFilters

* Switch classnames notation

* Ensure slug is array in removeAttributeFilterBySlug

* null -> undefined return types for attributes

* Remove fragment

* Check we have a termObject in ActiveAttributeFilters

* Refactor formatPriceRange return statements

* Ensure query array index will exist

* Only sort when adding a query

* Remove aria-label with dupe text

* hasFilters is function

* Update useQueryStateByKey usage

* More doc block fixes

* Update getAttributeFromTaxonomy return and docblock

* getAttributeFromID return/docblock
2019-11-15 14:41:23 +00:00
renovate[bot] 9c9b248c6d Update dependency core-js to v3.4.1 (https://github.com/woocommerce/woocommerce-blocks/pull/1164) 2019-11-13 10:14:01 +01:00
renovate[bot] e721c2d6c7 Update dependency eslint-plugin-jest to v22.21.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1165) 2019-11-13 10:13:51 +01:00
renovate[bot] 69af13bc45 Update dependency @octokit/rest to v16.35.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1163) 2019-11-13 09:48:43 +01:00
renovate[bot] cff026bd93 Update dependency @babel/core to v7.7.2 (https://github.com/woocommerce/woocommerce-blocks/pull/1162) 2019-11-13 09:48:31 +01:00
renovate[bot] 16f576f2f9 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/1148) 2019-11-11 09:46:28 +01:00
Albert Juhé Lluveras 2f04c61223 Update dependencies order (https://github.com/woocommerce/woocommerce-blocks/pull/1146)
* Update dependencies order

* Create eslint WooCommerce plugin with dependency group rule

* Update WCPackageLocality definition so it only includes External and Internal

* Rename WPPackageLocality to WCPackageLocality

* Delete old typedef
2019-11-08 17:30:11 +01:00
renovate[bot] 0295379b49 Update dependency @octokit/rest to v16.34.1 (https://github.com/woocommerce/woocommerce-blocks/pull/1130) 2019-11-06 11:44:26 +01:00
renovate[bot] 3882541824 Update dependency core-js to v3.3.6 (https://github.com/woocommerce/woocommerce-blocks/pull/1132) 2019-11-06 11:39:10 +01:00
renovate[bot] 1d2d4102fd Update dependency autoprefixer to v9.7.1 (https://github.com/woocommerce/woocommerce-blocks/pull/1131) 2019-11-06 11:39:00 +01:00
renovate[bot] 4abb516638 Update babel monorepo to v7.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1129) 2019-11-06 11:38:47 +01:00
renovate[bot] 9fd3ab7e74 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/1121) 2019-11-04 10:24:30 +00:00
Mike Jolley 83925b48e6 New block: Filter Products by Price (https://github.com/woocommerce/woocommerce-blocks/pull/853)
* Basic component setup

* Working slider

* Validation

* styling

* Update webpack config to fix ie11

* ie progress

* styling improvements

* improve events

* IE shim

* Fix samsung internet styles

* Add aria

* remove old methods

* event handling

* Tweak size and width of inputs

* reset progress

* shorthand notation for setstate

* Inline comment for textare usage

* Remove pointless comparison

* destruct from state

* zindex comment

* Move out currency settings and validation

* enforce int for min and max state

* Use woocommerce/settings

* showInputFields prop

* Filter Products by Price: Block creation (https://github.com/woocommerce/woocommerce-blocks/pull/865)

* Prevent interaction with slider

* Show input fields toggle

* Placeholder content and icons

* Update dependency rimraf to v2.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/858)

* placeholder styling

* remove unnecessary config (https://github.com/woocommerce/woocommerce-blocks/pull/862)

* Filter button and styling

* Show/hide placeholder based on product count

* Update dependency rimraf to v2.7.1 (https://github.com/woocommerce/woocommerce-blocks/pull/867)

* Use correct parameter order for implode. Solves deprecation notice in PHP 7.4 (https://github.com/woocommerce/woocommerce-blocks/pull/857)

* Add description to blocks added in last releases (https://github.com/woocommerce/woocommerce-blocks/pull/869)

* Limit max width

* Prevent wrap

* handles src file

* Introduce withCategory HOC for featured category block (https://github.com/woocommerce/woocommerce-blocks/pull/846)

* Introduce withCategory hoc

* Refactor featured category to use new hoc

* Update docblocks

* Add README note for PHP deprecation notices

* Remove screen-reader-text css rules (https://github.com/woocommerce/woocommerce-blocks/pull/849)

* Align stars left (https://github.com/woocommerce/woocommerce-blocks/pull/866)

* bool

* Create Reviews by Product block (https://github.com/woocommerce/woocommerce-blocks/pull/658)

* Create Reviews by Product block

* Honor Content settings

* Fix wrong className

* Load new wc-packages file

* Add reviews-by-product JS files to webpack config

* Cleanup

* Remove error messages

* Add Reviews by Product icon

* Update sort options

* Allow additional CSS classes attribute

* Refactor block styles

* Fix wrong default for reviews_orderby

* Don't enforce CSS chunks

* Add reviews count to Reviews by Product controls (https://github.com/woocommerce/woocommerce-blocks/pull/671)

* Add label to Reviews by Product controls count (https://github.com/woocommerce/woocommerce-blocks/pull/677)

* Add reviews count to Reviews by Product controls

* Add label to Reviews by Product controls count

* Add label to Reviews by Product controls count

* Update components package

* Review ordering and placeholders (https://github.com/woocommerce/woocommerce-blocks/pull/688)

* Add support for comment_count ordering and add to productcontrol

* Add a placeholder if rating count is 0

* Update assets/js/components/utils/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/blocks/reviews-by-product/block.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* grammar

* Fix some linting errors and warnings (https://github.com/woocommerce/woocommerce-blocks/pull/693)

* Create Reviews by Product block placeholder (https://github.com/woocommerce/woocommerce-blocks/pull/691)

* Create Reviews by Product block placeholder

* Reviews by Product: load and render reviews with JS (https://github.com/woocommerce/woocommerce-blocks/pull/696)

* Reviews by Product: load and render reviews with JS

* Add dangerouslySetInnerHTML explanatory comment

* Fix wrong dependency source

* Debounce getReviews call when creating the Reviews by Product block

* Rename 'Reviewer Picture' with 'Avatar' (https://github.com/woocommerce/woocommerce-blocks/pull/702)

* Lint errors

* Replace stringify query with addQueryArgs (https://github.com/woocommerce/woocommerce-blocks/pull/707)

* Add reviews endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/705)

* Prevent state updates on unmounted components (https://github.com/woocommerce/woocommerce-blocks/pull/715)

* Add Order by and Load more controls in Reviews by Product frontend (https://github.com/woocommerce/woocommerce-blocks/pull/716)

* Export IconReviewsByProduct (https://github.com/woocommerce/woocommerce-blocks/pull/721)

* Fix Reviews by Product layout in IE11 (https://github.com/woocommerce/woocommerce-blocks/pull/723)

* Set minimum to per page input field (https://github.com/woocommerce/woocommerce-blocks/pull/731)

* Hide avatars in Reviews by Products if 'show_avatars' settings is false (https://github.com/woocommerce/woocommerce-blocks/pull/730)

* Blocks API - Reviews endpoint with rating sort and category filtering (https://github.com/woocommerce/woocommerce-blocks/pull/726)

* Move file to correct location

* We are only using the reviews endpoint not revioews/id

* Remove sensistive data and make endpoint public

* Allow guest access to approved reviews

* Add support for rating sorting

* category filtering

* update arg name

* fix category query

* Reviews by Product: add placeholders when loading reviews (https://github.com/woocommerce/woocommerce-blocks/pull/732)

* Add placeholder animation (https://github.com/woocommerce/woocommerce-blocks/pull/733)

* Hook up Reviews by Product 'Order by' with endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/736)

* Hook up Reviews by Product 'Order by' with endpoint

* Use onChange instead of onBlur in select control

* Reviews by Product: Hide ratings if they are disabled in settings (https://github.com/woocommerce/woocommerce-blocks/pull/740)

* Hide ratings in Reviews by Product if disabled in settings

* Hide order by select if ratings are disabled

* Reviews by Product cleanup (https://github.com/woocommerce/woocommerce-blocks/pull/773)

* Fix wrong method name

* Reduce the number of dependencies used in Reviews by Product (https://github.com/woocommerce/woocommerce-blocks/pull/774)

* Reduce the number of dependencies used in Reviews by Product

* Use 'withComponentId' HOC

* Remove debounce

* Fix wrong proptype

* Get rid of JS warning

* Load render from react-dom

* Add formatted_date_created item schema (https://github.com/woocommerce/woocommerce-blocks/pull/788)

* Fix import of WithComponentID

* Add new settings to Reviews by Product block (https://github.com/woocommerce/woocommerce-blocks/pull/787)

* Add new settings to Reviews by Product block

* Remove helpText and add notices

* Use RangeControl for numeric settings

* Prevent fetching new reviews if all were already fetched

* Enable product image in reviews

* Remove unnecessary catch

* Refactor getReviews

* Move getReviews back to block's code

* Cleanup

* Fix wrong order in editor

* Hide 'Load More Reviews' if showLoadMore is false

* Move getReviews to utils.js

* Add @woocommerce/navigation to package.json

* Make notices non-dismissable

* Reviews by Product: prevent importing all HOCs and import only withComponentId (https://github.com/woocommerce/woocommerce-blocks/pull/811)

* Reviews by product: Update review styling and content (https://github.com/woocommerce/woocommerce-blocks/pull/806)

* Add new settings to Reviews by Product block

* Remove helpText and add notices

* Use RangeControl for numeric settings

* Prevent fetching new reviews if all were already fetched

* Enable product image in reviews

* Remove unnecessary catch

* Refactor getReviews

* Move getReviews back to block's code

* Cleanup

* Fix wrong order in editor

* Hide 'Load More Reviews' if showLoadMore is false

* Move getReviews to utils.js

* Add @woocommerce/navigation to package.json

* Make notices non-dismissable

* Review design/layout

* verified icons

* Read more component

* remove comment

* expanded -> isExpanded

* Localise and change default elipses

* Simplify ReadMore

* Support children rather than passing content

* remove outside

* remove list style

* Update assets/js/components/read-more/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/components/read-more/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* merge set state

* Add missing parameter doc in renderReview (https://github.com/woocommerce/woocommerce-blocks/pull/820)

* Fix Reviews by Product order by select not honoring default setting (https://github.com/woocommerce/woocommerce-blocks/pull/818)

* Read more component - change how clamped content is shown (https://github.com/woocommerce/woocommerce-blocks/pull/821)

* Pass review as components

* Build summary from content and track both

* Toggle display after inital load

* remove unused variable

* remove componentDidUpdate

* Simplify clampLines

* Put back componentDidUpdate, but store final summary in state

* clampEnabled

* Call clampLines from componentDidMount (https://github.com/woocommerce/woocommerce-blocks/pull/826)

* truncate html tests

* implement trimHTML and pass test

* Feedback

* test short content

* Use withProduct HOC in ReviewsByProductEditor (https://github.com/woocommerce/woocommerce-blocks/pull/828)

* Use withProduct HOC

* Convert ReviewsByProductEditor to a functional component

* Add loading and error states

* Prevent loading screen appearing when changing products

* Reviews: only save wrapper element to post (https://github.com/woocommerce/woocommerce-blocks/pull/830)

* Fix bundlesize config not picking frontend files (https://github.com/woocommerce/woocommerce-blocks/pull/840)

* Reviews by Product: split 'block.js' into smaller chunks (https://github.com/woocommerce/woocommerce-blocks/pull/841)

* Split 'block.js' into smaller chunks

* Move frontend blocks to their specific folder

* Order imports

* Typo

* Add frontend components proptypes

* Fix indentation

* Call 'this.getDefaultArgs' directly inside 'getReviews'

* Move access to wc_product_block_data to the top of the file

* Rename 'frontend' folder to 'base'

* Rename base components and move styles to their folder

* Fix Reviews by Product using rating count instead of review count (https://github.com/woocommerce/woocommerce-blocks/pull/860)

* Improve Reviews by Product accessibility (https://github.com/woocommerce/woocommerce-blocks/pull/861)

* Improve Reviews by Product accessibility

* Make 'onClick' prop not required in <LoadMoreButton>

* Wrap Reviews by Product editor block with <Disabled>

* Reviews: fix reviews without rating not appearing when sorting by rating (https://github.com/woocommerce/woocommerce-blocks/pull/863)

* Update assets/css/style.scss

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/872)

* Update dependency webpack to v4.39.2 (https://github.com/woocommerce/woocommerce-blocks/pull/855)

* Update dependency @woocommerce/components to v3.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/875)

* Update Reviews styles so it looks the same in the editor and the frontend (https://github.com/woocommerce/woocommerce-blocks/pull/871)

* Update Node.js to v10.16.3 (https://github.com/woocommerce/woocommerce-blocks/pull/874)

* Move wc_product_block_data variables to constants file (https://github.com/woocommerce/woocommerce-blocks/pull/870)

* Update dependency webpack-cli to v3.3.7 (https://github.com/woocommerce/woocommerce-blocks/pull/880)

* Add changelog script (https://github.com/woocommerce/woocommerce-blocks/pull/878)

* Add changelog script

* Adapt changelog script to WooCommerce Blocks

* Minor improvements

* Update dependency lint-staged to v9.2.3 (https://github.com/woocommerce/woocommerce-blocks/pull/879)

* Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/883)

* Update dependency eslint to v6.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/881)

* Reviews by category block (https://github.com/woocommerce/woocommerce-blocks/pull/804)

* Create Reviews by Product block

* Honor Content settings

* Fix wrong className

* Load new wc-packages file

* Add reviews-by-product JS files to webpack config

* Cleanup

* Remove error messages

* Add Reviews by Product icon

* Update sort options

* Allow additional CSS classes attribute

* Refactor block styles

* Fix wrong default for reviews_orderby

* Don't enforce CSS chunks

* Add reviews count to Reviews by Product controls (https://github.com/woocommerce/woocommerce-blocks/pull/671)

* Add label to Reviews by Product controls count (https://github.com/woocommerce/woocommerce-blocks/pull/677)

* Add reviews count to Reviews by Product controls

* Add label to Reviews by Product controls count

* Add label to Reviews by Product controls count

* Update components package

* Review ordering and placeholders (https://github.com/woocommerce/woocommerce-blocks/pull/688)

* Add support for comment_count ordering and add to productcontrol

* Add a placeholder if rating count is 0

* Update assets/js/components/utils/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/blocks/reviews-by-product/block.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* grammar

* Fix some linting errors and warnings (https://github.com/woocommerce/woocommerce-blocks/pull/693)

* Create Reviews by Product block placeholder (https://github.com/woocommerce/woocommerce-blocks/pull/691)

* Create Reviews by Product block placeholder

* Reviews by Product: load and render reviews with JS (https://github.com/woocommerce/woocommerce-blocks/pull/696)

* Reviews by Product: load and render reviews with JS

* Add dangerouslySetInnerHTML explanatory comment

* Fix wrong dependency source

* Debounce getReviews call when creating the Reviews by Product block

* Rename 'Reviewer Picture' with 'Avatar' (https://github.com/woocommerce/woocommerce-blocks/pull/702)

* Lint errors

* Replace stringify query with addQueryArgs (https://github.com/woocommerce/woocommerce-blocks/pull/707)

* Add reviews endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/705)

* Prevent state updates on unmounted components (https://github.com/woocommerce/woocommerce-blocks/pull/715)

* Add Order by and Load more controls in Reviews by Product frontend (https://github.com/woocommerce/woocommerce-blocks/pull/716)

* Export IconReviewsByProduct (https://github.com/woocommerce/woocommerce-blocks/pull/721)

* Fix Reviews by Product layout in IE11 (https://github.com/woocommerce/woocommerce-blocks/pull/723)

* Set minimum to per page input field (https://github.com/woocommerce/woocommerce-blocks/pull/731)

* Hide avatars in Reviews by Products if 'show_avatars' settings is false (https://github.com/woocommerce/woocommerce-blocks/pull/730)

* Blocks API - Reviews endpoint with rating sort and category filtering (https://github.com/woocommerce/woocommerce-blocks/pull/726)

* Move file to correct location

* We are only using the reviews endpoint not revioews/id

* Remove sensistive data and make endpoint public

* Allow guest access to approved reviews

* Add support for rating sorting

* category filtering

* update arg name

* fix category query

* Reviews by Product: add placeholders when loading reviews (https://github.com/woocommerce/woocommerce-blocks/pull/732)

* Add placeholder animation (https://github.com/woocommerce/woocommerce-blocks/pull/733)

* Hook up Reviews by Product 'Order by' with endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/736)

* Hook up Reviews by Product 'Order by' with endpoint

* Use onChange instead of onBlur in select control

* Reviews by Product: Hide ratings if they are disabled in settings (https://github.com/woocommerce/woocommerce-blocks/pull/740)

* Hide ratings in Reviews by Product if disabled in settings

* Hide order by select if ratings are disabled

* Reviews by Product cleanup (https://github.com/woocommerce/woocommerce-blocks/pull/773)

* Fix wrong method name

* Reduce the number of dependencies used in Reviews by Product (https://github.com/woocommerce/woocommerce-blocks/pull/774)

* Reduce the number of dependencies used in Reviews by Product

* Use 'withComponentId' HOC

* Remove debounce

* Fix wrong proptype

* Get rid of JS warning

* Load render from react-dom

* Add formatted_date_created item schema (https://github.com/woocommerce/woocommerce-blocks/pull/788)

* Inital block setup

* Fix import of WithComponentID

* Render the category reviews

* Add new settings to Reviews by Product block (https://github.com/woocommerce/woocommerce-blocks/pull/787)

* Add new settings to Reviews by Product block

* Remove helpText and add notices

* Use RangeControl for numeric settings

* Prevent fetching new reviews if all were already fetched

* Enable product image in reviews

* Remove unnecessary catch

* Refactor getReviews

* Move getReviews back to block's code

* Cleanup

* Fix wrong order in editor

* Hide 'Load More Reviews' if showLoadMore is false

* Move getReviews to utils.js

* Add @woocommerce/navigation to package.json

* Make notices non-dismissable

* Reviews by Product: prevent importing all HOCs and import only withComponentId (https://github.com/woocommerce/woocommerce-blocks/pull/811)

* Reviews by product: Update review styling and content (https://github.com/woocommerce/woocommerce-blocks/pull/806)

* Add new settings to Reviews by Product block

* Remove helpText and add notices

* Use RangeControl for numeric settings

* Prevent fetching new reviews if all were already fetched

* Enable product image in reviews

* Remove unnecessary catch

* Refactor getReviews

* Move getReviews back to block's code

* Cleanup

* Fix wrong order in editor

* Hide 'Load More Reviews' if showLoadMore is false

* Move getReviews to utils.js

* Add @woocommerce/navigation to package.json

* Make notices non-dismissable

* Review design/layout

* verified icons

* Read more component

* remove comment

* expanded -> isExpanded

* Localise and change default elipses

* Simplify ReadMore

* Support children rather than passing content

* remove outside

* remove list style

* Update assets/js/components/read-more/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/components/read-more/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* merge set state

* Add missing parameter doc in renderReview (https://github.com/woocommerce/woocommerce-blocks/pull/820)

* Fix Reviews by Product order by select not honoring default setting (https://github.com/woocommerce/woocommerce-blocks/pull/818)

* Read more component - change how clamped content is shown (https://github.com/woocommerce/woocommerce-blocks/pull/821)

* Pass review as components

* Build summary from content and track both

* Toggle display after inital load

* remove unused variable

* remove componentDidUpdate

* Simplify clampLines

* Put back componentDidUpdate, but store final summary in state

* clampEnabled

* Call clampLines from componentDidMount (https://github.com/woocommerce/woocommerce-blocks/pull/826)

* truncate html tests

* implement trimHTML and pass test

* Feedback

* test short content

* Use withProduct HOC in ReviewsByProductEditor (https://github.com/woocommerce/woocommerce-blocks/pull/828)

* Use withProduct HOC

* Convert ReviewsByProductEditor to a functional component

* Add loading and error states

* Prevent loading screen appearing when changing products

* Reviews: only save wrapper element to post (https://github.com/woocommerce/woocommerce-blocks/pull/830)

* Update based on product reviews

* Cleanup after master merge

* Implement content hiding and placeholder states for reviews blocks

* Output product names and adjust css

* Review permalink

* Remove old read-more component which was moved

* showProductName is already part of passed attributes

* CSS tweaks for missing elements

* Move dir

* Move product reviews block

* Move shared uitils

* update paths

* frontend paths

* Update paths

* shared attributes

* switch to constants

* Shared review block code

* Replace constants

* Fix hidden content bug

* star alignment

* Update dependency eslint to v6.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/890)

* remove JSON parse

* remove comment

* No need for important rules

* Fix error appearing on Reviews by Product when there were no reviews (https://github.com/woocommerce/woocommerce-blocks/pull/884)

* Fix error appearing on Reviews by Product when there were no reviews

* Revert "Fix error appearing on Reviews by Product when there were no reviews"

This reverts commit 73e95b39aa9a318888d08bb51faeff8bb51259d7.

* Move withProduct() HOC to editor-block.js

* Revert "Move withProduct() HOC to editor-block.js"

This reverts commit ae9515792d4870cc5cf1d92a2d6acc91198b5f62.

* Move renderNoReviews back to edit.js

* Move no reviews placeholder to its own component

* Remove usage of 'RawHTML'

* Fix propTypes

* Remove unnecessary escapeHTML

* revise labels

* Move component to base

* Add price text

* Update design to latest figma

* update from master

* Fixed merge conflicts with settings

* Fix formatting

* Update to use react hooks

* Progress hooking up price slider

* Fixes usage of data store for min/max

* Added loading state

* Fix useQueryStateByKey setter

* Product list integration

* Inital state and preventing too many queries

* Style fixes

* Button loading styles

* Package conflict

* useCallback

* Remove duplication

* variable name feedback

* Implement useCallback on functions

* useMemo for getProgressStyle

* Block feedback

* Use get_block_asset_build_path

* Remove old settings from merge conflict

* Move sketch file to .prefixed dir

* Removed render methods

* Exclude price filter from legacy build

* Feedback
2019-11-01 13:56:14 +00:00
renovate[bot] 9113805701 Update dependency @octokit/rest to v16.34.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1105) 2019-10-30 07:56:42 -04:00
renovate[bot] 438322d25a Update dependency autoprefixer to v9.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1106) 2019-10-30 07:56:08 -04:00
renovate[bot] 6309e9a8c6 Update dependency core-js to v3.3.5 (https://github.com/woocommerce/woocommerce-blocks/pull/1107) 2019-10-30 07:54:55 -04:00
renovate[bot] d1801099b3 Update dependency eslint to v6.6.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1108) 2019-10-30 07:53:52 -04:00
renovate[bot] 0c337ec2b5 Update dependency eslint-config-prettier to v6.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1109) 2019-10-30 07:45:48 -04:00
Mike Jolley f851a6ef9b All Products with Inner Blocks (https://github.com/woocommerce/woocommerce-blocks/pull/1032)
* Inital block creation

* Update labels

* Columns, rows, sample data json

* Output data from API

* thumbnail_html

* Split into smaller components of grid

* Price handling

* Image handling

* Remove !

* frontend

* Work on cart api

* Cart error handling and product type conditions

* innerblock progress

* Implement layoutConfig as set from innerblocks shape.

Note:

- this is just a poc
- where things are configured likely needs changed
- will still need to work out how this gets persisted for the frontend and how things get displayed there (but likely will work fairly similar in terms of mapping to components).

* use correct prop name

* Working edit button

* Clean up block controls and edit view

* Add link with innerblocks

* update link description

* correctly handle components with inner blocks as children

* Re-organise atomic components and blocks into own directories

* Unique keys for components

* Fix default layout when inserting block for first time

* Working layoutconfig save

* Save attributes

* Move sale badge to image component

* Add disabled to render preview and blocks

* icons

* Editor view styling

* Update withComponetId to stop component ID incrementing too many times

Co-Authored-By: Darren Ethier <darren@roughsmootheng.in>

* Improve key generation

* done/cancel buttons on edit

* Create withProducts HOC for All Products block (https://github.com/woocommerce/woocommerce-blocks/pull/994)

* Create withProducts HOC for All Products block

* Add order select and pagination to All Products block

* Go to first page when changing order

* Add HOC test

* Make sure block is updated whem columns/rows change in the editor

* Fix 'SALE' badge positioning

* Remove unnecessary key

* Honor 'perPage' value when generating placeholders

* Make placeholder sizes match rendered block item

* Several CSS improvements

* Remove unused CSS properties

* Move getProducts to hocs utils

* Remove All Products sample-data.json

* Fix order select wrong margin in the editor

* Refactor how loading image gets its size

* Clear products when loadProducts start

* Enhance pagination logic

* Fix placeholder width

* Fix regular_price check

* Set product link max-width

* Implement querystrings for the All Products block (https://github.com/woocommerce/woocommerce-blocks/pull/997)

* Implement querystrings for the All Products block

* Create withWindow HOC

* Add with-window tests

* Use renderFrontend util in All Products block (https://github.com/woocommerce/woocommerce-blocks/pull/1003)

* Add with-window tests

* Use renderFrontend util in All Products block

* Rename properties and components from 'order' to 'sort' (https://github.com/woocommerce/woocommerce-blocks/pull/1012)

* Rename properties and components from 'order' to 'sort'

* Rename onOrderChange to onSortChange

* Remove unnecessary stylint-disable-line (https://github.com/woocommerce/woocommerce-blocks/pull/1016)

* Create withBrowserLocation and withBrowserHistory HOC (https://github.com/woocommerce/woocommerce-blocks/pull/1022)

* Create withBrowserWindowProp HOC

* Remove unnecessary expect's

* Always pass window prop to propMap if it exists

* Scroll to top when switching pages in All Products block (https://github.com/woocommerce/woocommerce-blocks/pull/1011)

* Scroll to top when switching pages in All Pages block

* Improve keyboard navigation in the All Products block

* Create withScrollToTop HOC

* Fix variable name typo

* Update paths with aliases

* Avoid first and last page being included in pagination 'pagesToDisplay' (https://github.com/woocommerce/woocommerce-blocks/pull/1015)

* Update lock

* constants

* linting

* Clean up styling

* Prettier

* Block options for title/image

* Prettier

* Remove shared content controls

* Update atomic block descriptions

* Summary block

* Prettier

* Impoved template edit appearance and added inline tips

* Apply prettier

* Reset and cancel buttons

* Improved keys

* Tweak tip placement

* Remove incorrect comments

* Remove disabled ofr non interactive elements

* Fragment not needed

* Update assets/js/atomic/components/product-list/title/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Move componentId hoc

* Comment

* Implement onImageLoaded

* Pagination: disable first/last page if they are active (https://github.com/woocommerce/woocommerce-blocks/pull/1041)

* Update assets/js/atomic/components/product-list/rating/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Sale badges refactoring

Adds sale badges blocks and improves how the default blocks are defined.

* revert changes in withComponentId

* fix flexbox alignment

* Create withQueryStringValues HOC and use it in ProductGrid component (https://github.com/woocommerce/woocommerce-blocks/pull/1040)

* Create withQueryStringValues HOC and use it in ProductGrid component

* Add tests

* Add comment explaining urlParameterSuffix

* Don't destructure props if only used once

* Move dependencies check outside the HOC

* Update test description

* Remove HOCs no longer used

* Update assets/js/atomic/blocks/product-list/image/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/atomic/components/product-list/sale-badge/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/atomic/utils/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/atomic/utils/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Feedback

* Grid to List

* Improved badge handling

* update package-lock after merge from master

* Add wp.data store for schema and lists. (https://github.com/woocommerce/woocommerce-blocks/pull/1008)

* install @wordpress/data-controls and deepFreeze

* add schema store

* add query-state store

* add collections store

* add bundle entry point (and export store keys and constants)

* add master README.md for new stores

* add bundle configuration and register asset php side

* Add missing param name

Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>

* code style fixes

* remove unnecessary period from test description

* Simplify conditional

* reorder imports (code style)

* reorder imports and codestyle

* refactor using lodash for state utils

* reorder imports

* reorder imports

* reorder dependencies

* reorder dependnecies an remove duplication block

* remove errant tab

* reorder dependencies

* Modify collections store to add headers to the store state. (https://github.com/woocommerce/woocommerce-blocks/pull/1073)

* add control for getting unparsed response from apiFetch

* Modify action so it recieves a response object.

* modify reducer to handle response object

* improve selectors to make headers accessible

- modifys existing `getCollection` to retrieve items from state.
- adds `getCollectionHeader` selector

* update resolvers to handle full response from request

- also adds resolver for `getCollectionHeader`

* update docs for changes

* Improve spacing in doc

Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>

* Fix spacing in inline docs

Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>

* change `getFromState` to receive an object instead of arguments list.

* Prepare All Products block to accept extension inner blocks (https://github.com/woocommerce/woocommerce-blocks/pull/1047)

* Simplify BLOCK_MAP

* Prepare All Products block to accept extension inner blocks

* Change filter name

* Update filter name

* Add check that block exists in BLOCK_MAP

* Create REVERSED_BLOCK_MAP instead of searching blocks each time

* Change how child blocks are registered for All Products block

* Refactor All Products block so reverse map isn't needed

* Remove getDefaultBlocks

* Make sure getRegisteredInnerBlocks always returns an object and add checks to registerInnerBlock

* Add missing blockName arg

* Add inline docs to block registry

* Move 'blockName' prop to context

* Typos

* Improve registerInnerBlock error messages and create a validation function

* Refactor context

* Rename validateOption to assertOption

* refactor where new context lives and add alias for base-context

* fix doc block

* remove todo block (there’s an issue for it)

* rename context

* Update assets/js/atomic/components/product-list/sale-badge/index.js

Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>

* HeadingToolbar comment

* Tweak bool comparison

* Improve how default layouts are set so all blocks can be removed and the no-content message is correct

* Sale centering

* Fix default template

* Product example switch to preview

* Update preview schema and image data to match latest schema

* Add @woocommerce/atomic-components alias

* Alias for previews to prevent need for relative paths

* Drop `align` for sale block

Align disrupts other blocks in unexpected and unavoidable ways. Drop support so the sale block is a block level item.

* Rename atomic components and blocks (and create ProductLayoutContext) (https://github.com/woocommerce/woocommerce-blocks/pull/1089)

* rename atomic blocks and components to be more generic (drop list)

* create new context for productlayout and implement provider

* Rename ProductSalesBadge to ProductSaleBadge

* Add php5.3 restriction for All Products block (https://github.com/woocommerce/woocommerce-blocks/pull/1090)

* enable legacy builds and add handling for AllProducts to be wp5.3 only

* fix legacy builds

* Prevent filemtime notice

* Implement new data stores with All Products block (https://github.com/woocommerce/woocommerce-blocks/pull/1067)

* add new hooks and tests and alias for hooks

* various fixes for stores after implementation tests

* implement new stores for ProductList component

* add doc blocks for useStoreProducts hooks

* fix typo in property on returned object
2019-10-28 09:53:09 -04:00
renovate[bot] 2a72092dd4 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/1091) 2019-10-28 10:31:57 +00:00
renovate[bot] 9ad48205b4 Update dependency react-test-renderer to v16.11.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1074) 2019-10-23 10:19:08 +02:00
renovate[bot] 3d22e01e63 Update dependency lint-staged to v9.4.2 (https://github.com/woocommerce/woocommerce-blocks/pull/1072) 2019-10-23 10:19:01 +02:00
renovate[bot] d36b881b9c Update dependency eslint-plugin-jest to v22.20.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1071) 2019-10-23 10:18:43 +02:00
renovate[bot] 5d70a4499d Update dependency core-js to v3.3.3 (https://github.com/woocommerce/woocommerce-blocks/pull/1070) 2019-10-23 10:18:18 +02:00
Darren Ethier 2fde552e3f Refresh package-lock.json due to node lts version bump (https://github.com/woocommerce/woocommerce-blocks/pull/1058)
* refresh package-lock

* update travis config

* doh, typo

* try a rebuild for all
2019-10-21 16:26:53 +01:00
renovate[bot] b1e2dfa0b0 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/1057) 2019-10-21 10:11:28 +02:00
renovate[bot] b95203aad9 Update dependency @babel/core to v7.6.4 (https://github.com/woocommerce/woocommerce-blocks/pull/1049) 2019-10-16 11:11:16 +02:00
renovate[bot] da0cf36f66 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/1042) 2019-10-16 10:44:33 +02:00
renovate[bot] 5f303cfe6f Update dependency autoprefixer to v9.6.5 (https://github.com/woocommerce/woocommerce-blocks/pull/1051) 2019-10-16 10:41:55 +02:00
renovate[bot] 99a3660e29 Update dependency @octokit/rest to v16.33.1 (https://github.com/woocommerce/woocommerce-blocks/pull/1050) 2019-10-16 10:41:33 +02:00
Darren Ethier 007039c5b9 Expose wp_version on settings api and provide a js version compare function (https://github.com/woocommerce/woocommerce-blocks/pull/1033)
* install compare-versions and export on `@woocommerce/settings` external

* expose `wp_version` on wcSettings

* export a compareWithWpVersion function for easier version checking

* improve semver coercing for wp version check

also add tests

* fix for code standards around imports

* switch to camelcase for version option
2019-10-11 11:29:27 -04:00
renovate[bot] 452e963840 Update dependency eslint-config-prettier to v6.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1039) 2019-10-09 10:33:10 +02:00
renovate[bot] 6300e48766 Update dependency cross-env to v6.0.3 (https://github.com/woocommerce/woocommerce-blocks/pull/1038) 2019-10-09 10:32:05 +02:00
renovate[bot] 152977d66c Update dependency autoprefixer to v9.6.4 (https://github.com/woocommerce/woocommerce-blocks/pull/1037) 2019-10-09 10:31:40 +02:00
renovate[bot] d1bc3fff2d Update dependency @octokit/rest to v16.33.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1036) 2019-10-09 10:30:54 +02:00
renovate[bot] 3f62090f93 Update dependency @babel/core to v7.6.3 (https://github.com/woocommerce/woocommerce-blocks/pull/1035) 2019-10-09 10:30:16 +02:00
renovate[bot] 15d74ecd31 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/1023)
* Lock file maintenance

* Enable composer in renovate
2019-10-07 11:05:35 +01:00
Darren Ethier f3bd3e6a09 Introduce legacy build system and new aliases (https://github.com/woocommerce/woocommerce-blocks/pull/1018)
* install directory-named-webpack-plugin

* create new plugin for fallback legacy imports

* implement webpack configuration for fallback legacy imports and legacy builds

Note: legacy builds are currently disabled, we can enable by just commenting out when we need them.

* removed unused webpack plugin experimented with in earlier iteration

* prettier fixes

* add legacy folder with readme for explanation

* add some info on legacy builds to `CONTRIBUTING.md`

* refactor imports to use new aliases

* fix link in doc

* update jest test config for new aliases

* use native string.startsWith instead of custom function

* reformat file for spacing/code style

* add slash to alias

* clean up webpack config and make things more dry

* update indent style for json files to be tab not spaces

- adjusts editorconfig rules
- reformat jest.config.json

* simplify conditional
2019-10-06 08:36:15 -04:00
renovate[bot] 96a902fa81 Update dependency cross-env to v6.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/1009) 2019-10-02 15:52:10 +02:00
renovate[bot] d8760bcdd6 Update dependency eslint to v6.5.1 (https://github.com/woocommerce/woocommerce-blocks/pull/1010) 2019-10-02 15:51:15 +02:00
renovate[bot] c86114d2cb Update dependency cross-env to v6 (https://github.com/woocommerce/woocommerce-blocks/pull/993) 2019-09-25 12:27:11 +02:00
renovate[bot] cfffbb2561 Update dependency webpack to v4.41.0 (https://github.com/woocommerce/woocommerce-blocks/pull/992) 2019-09-25 12:26:34 +02:00
renovate[bot] cc3d06c417 Update dependency lint-staged to v9.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/991) 2019-09-25 12:26:04 +02:00
renovate[bot] 766dd61a4f Update dependency @octokit/rest to v16.30.1 (https://github.com/woocommerce/woocommerce-blocks/pull/989) 2019-09-25 12:25:22 +02:00
renovate[bot] 5f78890c6a Update dependency @babel/core to v7.6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/988) 2019-09-25 12:24:44 +02:00
renovate[bot] f2b63f76f8 Update dependency react-test-renderer to v16.9.0 (https://github.com/woocommerce/woocommerce-blocks/pull/823) 2019-09-25 12:23:53 +02:00
Albert Juhé Lluveras b5e1ec8052 Delete interpolate-components dependency and update package-lock.json (https://github.com/woocommerce/woocommerce-blocks/pull/986)
* Remove interpolate-components dependency

* Update package-lock

* Enable Renovate's lockFileMaintenance
2019-09-24 20:43:28 +02:00
renovate[bot] 96e073acd8 Update dependency webpack to v4.40.2 (https://github.com/woocommerce/woocommerce-blocks/pull/969) 2019-09-20 09:23:14 -04:00
renovate[bot] 9aa9394a5a Update dependency eslint to v6.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/967) 2019-09-20 09:22:43 -04:00
renovate[bot] 21f0fc88a9 Update dependency eslint-config-prettier to v6.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/968) 2019-09-20 09:20:54 -04:00
renovate[bot] da903b54d7 Update dependency webpack-cli to v3.3.9 (https://github.com/woocommerce/woocommerce-blocks/pull/970) 2019-09-20 09:20:39 -04:00
renovate[bot] 43968f23c9 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/971) 2019-09-20 09:20:23 -04:00
renovate[bot] b5f2f0c536 Update dependency eslint-plugin-jest to v22.17.0 (https://github.com/woocommerce/woocommerce-blocks/pull/959) 2019-09-13 23:50:49 +02:00
renovate[bot] 11ede4fa95 Update dependency webpack-cli to v3.3.8 (https://github.com/woocommerce/woocommerce-blocks/pull/960) 2019-09-13 23:50:20 +02:00
renovate[bot] 676873908c Update dependency @babel/core to v7.6.0 (https://github.com/woocommerce/woocommerce-blocks/pull/958) 2019-09-13 23:48:39 +02:00
Albert Juhé Lluveras 6ab7834f59 Install prettier and reformat files (https://github.com/woocommerce/woocommerce-blocks/pull/945)
* Install prettier

* Reformat all files

* Add prettier to precommit hook

* Update prettier settings to match Gutenberg code standards

* Reformat files with new settings

* Improve legibility in some line breaks
2019-09-05 17:09:31 +02:00
renovate[bot] 41ea6691cb Update dependency eslint-plugin-jest to v22.16.0 (https://github.com/woocommerce/woocommerce-blocks/pull/943) 2019-09-04 10:56:25 +02:00
renovate[bot] 5b05f0632c Update dependency eslint to v6.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/942) 2019-09-04 10:51:47 +02:00
renovate[bot] 42776c555f Update dependency cross-env to v5.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/941) 2019-09-04 10:50:08 +02:00
renovate[bot] d0d8a8c678 Update dependency @octokit/rest to v16.28.9 (https://github.com/woocommerce/woocommerce-blocks/pull/940) 2019-09-04 10:49:19 +02:00
Mike Jolley 0d0474f1e7 Rolling 2.4 release changelog (https://github.com/woocommerce/woocommerce-blocks/pull/720)
* 2.4 placeholder

* Add error handling for API requests to the featured product block.

* changelog

* Update changelog

* Changelog and versions
2019-08-29 10:39:51 +01:00
renovate[bot] 0e0bc749d2 Update dependency rimraf to v3 (https://github.com/woocommerce/woocommerce-blocks/pull/868) 2019-08-28 11:17:07 +01:00
renovate[bot] 8e020311eb Update dependency eslint to v6.2.2 (https://github.com/woocommerce/woocommerce-blocks/pull/922) 2019-08-28 11:07:00 +01:00
renovate[bot] 26671c37de Update dependency yargs to v14 (https://github.com/woocommerce/woocommerce-blocks/pull/887) 2019-08-28 11:06:44 +01:00
renovate[bot] dd06a34d72 Update dependency sass-loader to v7.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/892) 2019-08-28 11:06:26 +01:00
renovate[bot] e80cca3890 Update dependency eslint-plugin-jest to v22.15.2 (https://github.com/woocommerce/woocommerce-blocks/pull/923) 2019-08-28 11:05:20 +01:00
renovate[bot] b8fa8710d6 Update dependency lint-staged to v9.2.5 (https://github.com/woocommerce/woocommerce-blocks/pull/924) 2019-08-28 11:05:10 +01:00
renovate[bot] 207023db3a Update dependency babel-eslint to v10.0.3 (https://github.com/woocommerce/woocommerce-blocks/pull/921) 2019-08-28 11:05:01 +01:00
renovate[bot] 82a4107ee7 Update dependency webpack to v4.39.3 (https://github.com/woocommerce/woocommerce-blocks/pull/925) 2019-08-28 11:02:01 +01:00
dependabot[bot] 3605ae580c Bump eslint-utils from 1.3.1 to 1.4.2 (https://github.com/woocommerce/woocommerce-blocks/pull/912)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-27 11:12:08 +02:00
Albert Juhé Lluveras 4a1171364d Create OrderSelect and Label components (https://github.com/woocommerce/woocommerce-blocks/pull/905)
* Create Label and OrderSelect components

* Update review list item so it uses 'classnames'

* Split review order select styles from generic component

* Update snapshots

* Refactor Label so we don't need to check Symbol

* Add description to Label and OrderSelect components

* Use prop-types instead of prop-types-elementtype

* Simplify Label propTypes

* Update package-lock
2019-08-23 18:35:34 +02:00
renovate[bot] 046e69e46c Update dependency @woocommerce/navigation to v3 (https://github.com/woocommerce/woocommerce-blocks/pull/876) 2019-08-22 21:01:10 +02:00
Darren Ethier 0b9559e2db Install @babel/plugin-proposal-class-properties. (https://github.com/woocommerce/woocommerce-blocks/pull/856)
* add @babel/plugin-proposal-class-properties plugin

* refactor ProductByCategoryBlock to use class properties
2019-08-21 09:05:17 -04:00
renovate[bot] 0a709aa133 Update dependency eslint to v6.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/890) 2019-08-20 14:35:08 +01:00
renovate[bot] 1b12758093 Update dependency eslint to v6.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/881) 2019-08-19 14:29:28 +01:00
renovate[bot] a050dff437 Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/883) 2019-08-19 14:29:06 +01:00
renovate[bot] 8540838ec8 Update dependency lint-staged to v9.2.3 (https://github.com/woocommerce/woocommerce-blocks/pull/879) 2019-08-19 13:16:36 +02:00
renovate[bot] f70d9021fe Update dependency webpack-cli to v3.3.7 (https://github.com/woocommerce/woocommerce-blocks/pull/880) 2019-08-19 11:28:58 +02:00
renovate[bot] 5027fa2c6f Update dependency @woocommerce/components to v3.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/875) 2019-08-16 08:50:48 +02:00
renovate[bot] 5dded757ba Update dependency webpack to v4.39.2 (https://github.com/woocommerce/woocommerce-blocks/pull/855) 2019-08-15 16:07:22 +01:00
renovate[bot] de9f8b14ea Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/872) 2019-08-15 17:05:26 +02:00
Albert Juhé Lluveras ad38f9d327 Create Reviews by Product block (https://github.com/woocommerce/woocommerce-blocks/pull/658)
* Create Reviews by Product block

* Honor Content settings

* Fix wrong className

* Load new wc-packages file

* Add reviews-by-product JS files to webpack config

* Cleanup

* Remove error messages

* Add Reviews by Product icon

* Update sort options

* Allow additional CSS classes attribute

* Refactor block styles

* Fix wrong default for reviews_orderby

* Don't enforce CSS chunks

* Add reviews count to Reviews by Product controls (https://github.com/woocommerce/woocommerce-blocks/pull/671)

* Add label to Reviews by Product controls count (https://github.com/woocommerce/woocommerce-blocks/pull/677)

* Add reviews count to Reviews by Product controls

* Add label to Reviews by Product controls count

* Add label to Reviews by Product controls count

* Update components package

* Review ordering and placeholders (https://github.com/woocommerce/woocommerce-blocks/pull/688)

* Add support for comment_count ordering and add to productcontrol

* Add a placeholder if rating count is 0

* Update assets/js/components/utils/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/blocks/reviews-by-product/block.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* grammar

* Fix some linting errors and warnings (https://github.com/woocommerce/woocommerce-blocks/pull/693)

* Create Reviews by Product block placeholder (https://github.com/woocommerce/woocommerce-blocks/pull/691)

* Create Reviews by Product block placeholder

* Reviews by Product: load and render reviews with JS (https://github.com/woocommerce/woocommerce-blocks/pull/696)

* Reviews by Product: load and render reviews with JS

* Add dangerouslySetInnerHTML explanatory comment

* Fix wrong dependency source

* Debounce getReviews call when creating the Reviews by Product block

* Rename 'Reviewer Picture' with 'Avatar' (https://github.com/woocommerce/woocommerce-blocks/pull/702)

* Lint errors

* Replace stringify query with addQueryArgs (https://github.com/woocommerce/woocommerce-blocks/pull/707)

* Add reviews endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/705)

* Prevent state updates on unmounted components (https://github.com/woocommerce/woocommerce-blocks/pull/715)

* Add Order by and Load more controls in Reviews by Product frontend (https://github.com/woocommerce/woocommerce-blocks/pull/716)

* Export IconReviewsByProduct (https://github.com/woocommerce/woocommerce-blocks/pull/721)

* Fix Reviews by Product layout in IE11 (https://github.com/woocommerce/woocommerce-blocks/pull/723)

* Set minimum to per page input field (https://github.com/woocommerce/woocommerce-blocks/pull/731)

* Hide avatars in Reviews by Products if 'show_avatars' settings is false (https://github.com/woocommerce/woocommerce-blocks/pull/730)

* Blocks API - Reviews endpoint with rating sort and category filtering (https://github.com/woocommerce/woocommerce-blocks/pull/726)

* Move file to correct location

* We are only using the reviews endpoint not revioews/id

* Remove sensistive data and make endpoint public

* Allow guest access to approved reviews

* Add support for rating sorting

* category filtering

* update arg name

* fix category query

* Reviews by Product: add placeholders when loading reviews (https://github.com/woocommerce/woocommerce-blocks/pull/732)

* Add placeholder animation (https://github.com/woocommerce/woocommerce-blocks/pull/733)

* Hook up Reviews by Product 'Order by' with endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/736)

* Hook up Reviews by Product 'Order by' with endpoint

* Use onChange instead of onBlur in select control

* Reviews by Product: Hide ratings if they are disabled in settings (https://github.com/woocommerce/woocommerce-blocks/pull/740)

* Hide ratings in Reviews by Product if disabled in settings

* Hide order by select if ratings are disabled

* Reviews by Product cleanup (https://github.com/woocommerce/woocommerce-blocks/pull/773)

* Fix wrong method name

* Reduce the number of dependencies used in Reviews by Product (https://github.com/woocommerce/woocommerce-blocks/pull/774)

* Reduce the number of dependencies used in Reviews by Product

* Use 'withComponentId' HOC

* Remove debounce

* Fix wrong proptype

* Get rid of JS warning

* Load render from react-dom

* Add formatted_date_created item schema (https://github.com/woocommerce/woocommerce-blocks/pull/788)

* Fix import of WithComponentID

* Add new settings to Reviews by Product block (https://github.com/woocommerce/woocommerce-blocks/pull/787)

* Add new settings to Reviews by Product block

* Remove helpText and add notices

* Use RangeControl for numeric settings

* Prevent fetching new reviews if all were already fetched

* Enable product image in reviews

* Remove unnecessary catch

* Refactor getReviews

* Move getReviews back to block's code

* Cleanup

* Fix wrong order in editor

* Hide 'Load More Reviews' if showLoadMore is false

* Move getReviews to utils.js

* Add @woocommerce/navigation to package.json

* Make notices non-dismissable

* Reviews by Product: prevent importing all HOCs and import only withComponentId (https://github.com/woocommerce/woocommerce-blocks/pull/811)

* Reviews by product: Update review styling and content (https://github.com/woocommerce/woocommerce-blocks/pull/806)

* Add new settings to Reviews by Product block

* Remove helpText and add notices

* Use RangeControl for numeric settings

* Prevent fetching new reviews if all were already fetched

* Enable product image in reviews

* Remove unnecessary catch

* Refactor getReviews

* Move getReviews back to block's code

* Cleanup

* Fix wrong order in editor

* Hide 'Load More Reviews' if showLoadMore is false

* Move getReviews to utils.js

* Add @woocommerce/navigation to package.json

* Make notices non-dismissable

* Review design/layout

* verified icons

* Read more component

* remove comment

* expanded -> isExpanded

* Localise and change default elipses

* Simplify ReadMore

* Support children rather than passing content

* remove outside

* remove list style

* Update assets/js/components/read-more/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/components/read-more/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* merge set state

* Add missing parameter doc in renderReview (https://github.com/woocommerce/woocommerce-blocks/pull/820)

* Fix Reviews by Product order by select not honoring default setting (https://github.com/woocommerce/woocommerce-blocks/pull/818)

* Read more component - change how clamped content is shown (https://github.com/woocommerce/woocommerce-blocks/pull/821)

* Pass review as components

* Build summary from content and track both

* Toggle display after inital load

* remove unused variable

* remove componentDidUpdate

* Simplify clampLines

* Put back componentDidUpdate, but store final summary in state

* clampEnabled

* Call clampLines from componentDidMount (https://github.com/woocommerce/woocommerce-blocks/pull/826)

* truncate html tests

* implement trimHTML and pass test

* Feedback

* test short content

* Use withProduct HOC in ReviewsByProductEditor (https://github.com/woocommerce/woocommerce-blocks/pull/828)

* Use withProduct HOC

* Convert ReviewsByProductEditor to a functional component

* Add loading and error states

* Prevent loading screen appearing when changing products

* Reviews: only save wrapper element to post (https://github.com/woocommerce/woocommerce-blocks/pull/830)

* Fix bundlesize config not picking frontend files (https://github.com/woocommerce/woocommerce-blocks/pull/840)

* Reviews by Product: split 'block.js' into smaller chunks (https://github.com/woocommerce/woocommerce-blocks/pull/841)

* Split 'block.js' into smaller chunks

* Move frontend blocks to their specific folder

* Order imports

* Typo

* Add frontend components proptypes

* Fix indentation

* Call 'this.getDefaultArgs' directly inside 'getReviews'

* Move access to wc_product_block_data to the top of the file

* Rename 'frontend' folder to 'base'

* Rename base components and move styles to their folder

* Fix Reviews by Product using rating count instead of review count (https://github.com/woocommerce/woocommerce-blocks/pull/860)

* Improve Reviews by Product accessibility (https://github.com/woocommerce/woocommerce-blocks/pull/861)

* Improve Reviews by Product accessibility

* Make 'onClick' prop not required in <LoadMoreButton>

* Wrap Reviews by Product editor block with <Disabled>

* Reviews: fix reviews without rating not appearing when sorting by rating (https://github.com/woocommerce/woocommerce-blocks/pull/863)
2019-08-15 16:55:57 +02:00
renovate[bot] 2078e81bc8 Update dependency rimraf to v2.7.1 (https://github.com/woocommerce/woocommerce-blocks/pull/867) 2019-08-15 11:11:18 +02:00
renovate[bot] 7b07bb015a Update dependency rimraf to v2.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/858) 2019-08-14 11:39:38 +02:00
Darren Ethier 69890535c9 Add babel-plugin-transform-remove-prop-types Babel plugin (https://github.com/woocommerce/woocommerce-blocks/pull/839)
* install transform-react-remove-prop-types babel plugin

* use `@wordpress/babel-preset-default` not `@wordpress/default` (name change)

* add configuration for new plugin (removing prop-types on production builds)
2019-08-13 09:51:44 -04:00
renovate[bot] e36d014584 Update dependency core-js to v3.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/838) 2019-08-13 11:40:31 +01:00
renovate[bot] 45f2d48f56 Update dependency eslint-plugin-jest to v22.15.1 (https://github.com/woocommerce/woocommerce-blocks/pull/844) 2019-08-13 11:39:49 +01:00
renovate[bot] c3008d268f Update dependency core-js to v3.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/824) 2019-08-12 11:05:29 +02:00
renovate[bot] da52d84518 Update dependency sass-loader to v7.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/827) 2019-08-12 11:05:06 +02:00
Darren Ethier e5bf616dca Add bundlesize package and tweak travis config (https://github.com/woocommerce/woocommerce-blocks/pull/822)
- adds bundlesize package and travis config to run it on pulls (reports size as a check on pulls)
- reconfigure travis configuration so that jobs are split by task for easier review/reporting
- Fix failing phpunit tests exposed as a result of the travis reconfiguration
- Fix legit fail exposed by failing phpunit test in products REST endpoint (permissions related)
- Don't abort plugin initialization when detecting no build asset file but still throw notice (necessary to ensure php tests run in travis because we don't build js/css assets unnecessarily for those tests)
2019-08-09 14:08:31 -04:00
Albert Juhé Lluveras e5f73b05e8 Add eslint JSDoc checks (https://github.com/woocommerce/woocommerce-blocks/pull/819)
* Add eslint JSDoc checks

* Use @wordpress/eslint-plugin for ESLint config

* Rename 'augments' with 'extends'

* Remove '@wordpress/eslint-plugin' from package.json
2019-08-09 18:18:46 +02:00
renovate[bot] 981b5aea63 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/802) 2019-08-08 13:07:34 +01:00
renovate[bot] c99043e897 Update dependency style-loader to v1 (https://github.com/woocommerce/woocommerce-blocks/pull/805) 2019-08-08 13:04:33 +01:00
renovate[bot] 65e28ed35d Update dependency eslint-plugin-jest to v22.15.0 (https://github.com/woocommerce/woocommerce-blocks/pull/815) 2019-08-08 13:00:33 +01:00
renovate[bot] f82c3ecc29 Update dependency css-loader to v3.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/807) 2019-08-08 13:00:03 +01:00
renovate[bot] 5efef42495 Update dependency webpack to v4.39.1 (https://github.com/woocommerce/woocommerce-blocks/pull/798) 2019-08-05 10:40:45 +01:00
renovate[bot] dcfb27efd8 Update dependency webpack to v4.39.0 (https://github.com/woocommerce/woocommerce-blocks/pull/794) 2019-08-02 12:51:05 +01:00
renovate[bot] c3cee87dce Update dependency eslint-plugin-jest to v22.14.1 (https://github.com/woocommerce/woocommerce-blocks/pull/782) 2019-07-31 10:39:27 +01:00
renovate[bot] 2875dee9ae Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/776) 2019-07-29 14:12:18 +01:00
Mike Jolley 5789a74409 Reduce number of dependencies for the product categories list block (https://github.com/woocommerce/woocommerce-blocks/pull/771)
* unqiueID helper to replace compose

* move get categories function to own file

* fix svg styling

* remove lodash dependency

* Refactor block/edit to use less dependencies

* Babel config to skip wp.element

* update comments

* Update assets/js/blocks/product-categories/frontend.js

ie11 compatible for each on nodelist

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* move id generation to constructor

* simplify webpack config

* Remove components CSS dependency

* use HOC for component ID

* Correct case on ComponentId
2019-07-29 13:00:26 +01:00
renovate[bot] 0d41e0e3e2 Update dependency eslint-plugin-jest to v22.14.0 (https://github.com/woocommerce/woocommerce-blocks/pull/772) 2019-07-29 11:28:48 +02:00
renovate[bot] d447557436 Update dependency eslint-plugin-jest to v22.13.7 (https://github.com/woocommerce/woocommerce-blocks/pull/767) 2019-07-26 10:30:12 +02:00
renovate[bot] 4e5835e4b8 Update dependency webpack to v4.38.0 (https://github.com/woocommerce/woocommerce-blocks/pull/768) 2019-07-26 10:30:05 +02:00
renovate[bot] 827a14db33 Update dependency lint-staged to v9.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/765) 2019-07-26 10:29:43 +02:00
renovate[bot] 46aafd21c2 Update dependency webpack to v4.37.0 (https://github.com/woocommerce/woocommerce-blocks/pull/763) 2019-07-23 11:56:03 +02:00
renovate[bot] 5837573d0c Update dependency eslint-plugin-react to v7.14.3 (https://github.com/woocommerce/woocommerce-blocks/pull/761) 2019-07-23 11:55:40 +02:00
renovate[bot] a07440f82a Update dependency eslint-plugin-jest to v22.13.6 (https://github.com/woocommerce/woocommerce-blocks/pull/760) 2019-07-23 11:55:32 +02:00
renovate[bot] d8b459b312 Update dependency eslint-plugin-jest to v22.13.2 (https://github.com/woocommerce/woocommerce-blocks/pull/759) 2019-07-22 16:20:33 +01:00
renovate[bot] ac6ac1dedb Update dependency eslint-plugin-jest to v22.13.1 (https://github.com/woocommerce/woocommerce-blocks/pull/758) 2019-07-22 15:47:23 +01:00
renovate[bot] 460eeed7ff Update dependency eslint to v6.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/755) 2019-07-22 15:09:41 +01:00
renovate[bot] c3e50b53ce Update dependency eslint-plugin-jest to v22.13.0 (https://github.com/woocommerce/woocommerce-blocks/pull/751) 2019-07-22 15:03:26 +01:00
renovate[bot] dff73240bc Update dependency css-loader to v3.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/749) 2019-07-18 15:21:22 +02:00
renovate[bot] 7540de54e0 Update dependency @babel/core to v7.5.5 (https://github.com/woocommerce/woocommerce-blocks/pull/748) 2019-07-18 11:16:30 +02:00
renovate[bot] ad936a210b Update dependency eslint-plugin-jest to v22.10.0 (https://github.com/woocommerce/woocommerce-blocks/pull/747) 2019-07-18 11:15:46 +02:00
renovate[bot] d85626f9f8 Update dependency webpack to v4.36.1 (https://github.com/woocommerce/woocommerce-blocks/pull/745) 2019-07-18 11:15:35 +02:00
renovate[bot] 2659e9455f Update dependency eslint-plugin-jest to v22.9.0 (https://github.com/woocommerce/woocommerce-blocks/pull/741) 2019-07-17 11:55:58 +02:00
renovate[bot] e84853b6ef Update dependency mini-css-extract-plugin to v0.8.0 (https://github.com/woocommerce/woocommerce-blocks/pull/742) 2019-07-17 11:55:48 +02:00
renovate[bot] b085c44436 Update dependency yargs to v13.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/737) 2019-07-16 12:28:57 +02:00
renovate[bot] 29daec2f42 Update dependency eslint-plugin-jest to v22.8.0 (https://github.com/woocommerce/woocommerce-blocks/pull/735) 2019-07-16 12:26:59 +02:00
renovate[bot] 26982ca992 Update dependency webpack-cli to v3.3.6 (https://github.com/woocommerce/woocommerce-blocks/pull/734) 2019-07-15 16:27:46 +02:00
renovate[bot] 10873b8503 Update npm to v6.10.1 (https://github.com/woocommerce/woocommerce-blocks/pull/729) 2019-07-12 11:09:57 +01:00
Mike Jolley ac74504400 Experiment: Handling API fetch errors (https://github.com/woocommerce/woocommerce-blocks/pull/679)
* error handling

* Update assets/js/blocks/featured-product/block.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update assets/js/blocks/featured-product/block.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Move to dedicated component

* escape messages and remove debug code

* merge conflict

* move renderApiError

* Revert "move renderApiError"

This reverts commit 2d5ffdecf2fae66434ac16b71d9b349fa1b61783.

* Revert "merge conflict"

This reverts commit bdc8eb4bd0f8dd5e4525c758fe3e79ffeefff3f5.

* Update assets/js/components/api-error-placeholder/index.js

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update error notice
2019-07-11 11:12:44 +01:00
renovate[bot] a23008f39c Update dependency lint-staged to v9.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/718) 2019-07-11 10:43:44 +01:00
renovate[bot] 6586c5b61e Update dependency @babel/core to v7.5.4 (https://github.com/woocommerce/woocommerce-blocks/pull/711) 2019-07-10 09:49:09 +01:00
renovate[bot] fb83bbfa89 Update dependency webpack to v4.35.3 (https://github.com/woocommerce/woocommerce-blocks/pull/698) 2019-07-08 15:36:53 +01:00
renovate[bot] 2a8a009f21 Update dependency lint-staged to v9.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/695) 2019-07-08 14:21:28 +01:00
renovate[bot] 0a1ea4f383 Update dependency autoprefixer to v9.6.1 (https://github.com/woocommerce/woocommerce-blocks/pull/694) 2019-07-08 14:21:16 +01:00
renovate[bot] 53163608a2 Update dependency @woocommerce/components to v3.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/692) 2019-07-05 12:48:12 +02:00
renovate[bot] 4a94c6d859 Update dependency @babel/core to v7.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/687) 2019-07-04 16:31:13 +01:00
renovate[bot] 1a20d8cac9 Update dependency eslint-plugin-jest to v22.7.2 (https://github.com/woocommerce/woocommerce-blocks/pull/682) 2019-07-04 16:06:52 +01:00
renovate[bot] 57e66dccc0 Update dependency @woocommerce/components to v3 (https://github.com/woocommerce/woocommerce-blocks/pull/681) 2019-07-04 09:14:48 +01:00
renovate[bot] bfd83c959e Update dependency lint-staged to v9.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/674) 2019-07-03 10:35:25 +01:00
renovate[bot] 601291f644 Update dependency lint-staged to v9 (https://github.com/woocommerce/woocommerce-blocks/pull/670) 2019-07-02 15:30:45 +01:00
renovate[bot] 44685c9e3f Update dependency webpack to v4.35.2 (https://github.com/woocommerce/woocommerce-blocks/pull/666) 2019-07-01 11:04:05 +01:00
renovate[bot] 96bce2be9e Update dependency eslint-plugin-jsx-a11y to v6.2.3 (https://github.com/woocommerce/woocommerce-blocks/pull/665) 2019-07-01 10:07:30 +01:00
renovate[bot] 759dcf3440 Update npm to v6.9.2 (https://github.com/woocommerce/woocommerce-blocks/pull/657) 2019-06-28 14:03:46 +01:00
Mike Jolley 8bc02c3b0c Include blocks api in feature plugin (https://github.com/woocommerce/woocommerce-blocks/pull/628)
* Progress moving endpoints

* Handle rest api registration

* Add tag_operator to blocks API

From https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/555

* Unit tests

* update travis

* Composer before install

* Travis config

* switch dir running composer

* nodev mode
2019-06-27 11:03:21 +01:00
Kelly Dwan 6471602702 Bump version to 2.3.0-dev (https://github.com/woocommerce/woocommerce-blocks/pull/652) 2019-06-26 15:17:17 -04:00
Kelly Dwan 4c941191ba Release version 2.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/651)
* Version bump to RC

* Add json files to built package

* Center images in product columns

* Update changelog, bump version to final
2019-06-26 12:37:50 -04:00
renovate[bot] 36b58ff1be Update dependency eslint to v6.0.1 (https://github.com/woocommerce/woocommerce-blocks/pull/649) 2019-06-25 10:48:22 +01:00
renovate[bot] 3775b59b5a Update dependency eslint-plugin-react to v7.14.2 (https://github.com/woocommerce/woocommerce-blocks/pull/648) 2019-06-25 10:47:37 +01:00
Kelly Dwan ce981aeb8c Roll back husky update to 2.4.1 (https://github.com/woocommerce/woocommerce-blocks/pull/646)
2.5 requires node 12.1+, but we're on 10.x
2019-06-25 10:20:28 +01:00
renovate[bot] c93168d1ac Update dependency husky to v2.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/645) 2019-06-24 09:06:46 -04:00
renovate[bot] aa53d6256c Update dependency eslint-plugin-react to v7.14.1 (https://github.com/woocommerce/woocommerce-blocks/pull/644) 2019-06-24 09:04:32 -04:00
renovate[bot] 6226c2accc Update dependency eslint to v6 (https://github.com/woocommerce/woocommerce-blocks/pull/642) 2019-06-24 09:04:12 -04:00
renovate[bot] bed9f26307 Update dependency webpack-cli to v3.3.5 (https://github.com/woocommerce/woocommerce-blocks/pull/643) 2019-06-24 09:00:18 -04:00
renovate[bot] d8caa49aaf Update dependency eslint-plugin-jest to v22.7.1 (https://github.com/woocommerce/woocommerce-blocks/pull/639) 2019-06-24 08:55:25 -04:00
renovate[bot] c981a5c5c6 Update dependency webpack to v4.35.0 (https://github.com/woocommerce/woocommerce-blocks/pull/638) 2019-06-24 08:53:04 -04:00
renovate[bot] c7f9844ab1 Update dependency babel-eslint to v10.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/635) 2019-06-17 10:25:09 -04:00
renovate[bot] 5f76139679 Update dependency core-js to v3.1.4 (https://github.com/woocommerce/woocommerce-blocks/pull/634) 2019-06-17 17:40:01 +08:00
renovate[bot] 7885c5f1c4 Update dependency webpack to v4.34.0 (https://github.com/woocommerce/woocommerce-blocks/pull/631) 2019-06-14 09:49:00 -04:00
renovate[bot] 691dad4b22 Update dependency lint-staged to v8.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/632) 2019-06-14 09:48:44 -04:00
renovate[bot] f9b54fcefc Update dependency @wordpress/components to v8 (https://github.com/woocommerce/woocommerce-blocks/pull/630) 2019-06-12 14:31:11 -04:00
renovate[bot] 7b890a4a4f Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/629) 2019-06-12 14:14:07 -04:00
Kelly Dwan ed36d76ff9 Try dependency plugin (https://github.com/woocommerce/woocommerce-blocks/pull/626) 2019-06-12 11:50:57 -04:00
renovate[bot] c2eda2416d Update dependency husky to v2.4.1 (https://github.com/woocommerce/woocommerce-blocks/pull/627) 2019-06-12 10:40:19 +01:00
renovate[bot] 11002fc6bc Update dependency css-loader to v3 (https://github.com/woocommerce/woocommerce-blocks/pull/623) 2019-06-11 09:51:57 -04:00
renovate[bot] 9bb40b7d81 Update dependency webpack-cli to v3.3.4 (https://github.com/woocommerce/woocommerce-blocks/pull/622) 2019-06-11 09:44:40 -04:00
renovate[bot] 3432d0f283 Update dependency autoprefixer to v9.6.0 (https://github.com/woocommerce/woocommerce-blocks/pull/614)
* Update dependency autoprefixer to v9.6.0

* Fix postcss/autoprefixer config

`browsers` property is now deprecated, should use browsers list in package.json for compat with other tools
2019-06-10 10:24:22 -04:00
renovate[bot] 26e0be77f0 Update dependency stylelint to v10.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/619) 2019-06-10 09:30:08 -04:00
renovate[bot] 9b5a321c21 Update dependency webpack to v4.33.0 (https://github.com/woocommerce/woocommerce-blocks/pull/615) 2019-06-10 09:29:46 -04:00
renovate[bot] 9fa761bf76 Update dependency lint-staged to v8.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/617) 2019-06-07 15:13:57 +02:00
renovate[bot] 526f07832a Update dependency husky to v2.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/616) 2019-06-07 15:13:34 +02:00
renovate[bot] 4639d4617e Update dependency webpack-cli to v3.3.3 (https://github.com/woocommerce/woocommerce-blocks/pull/618) 2019-06-07 15:12:51 +02:00
renovate[bot] 1f37bccda8 Update dependency clean-webpack-plugin to v3 (https://github.com/woocommerce/woocommerce-blocks/pull/611)
* Update dependency clean-webpack-plugin to v3

* Update CleanWebpackPlugin import for v3+
2019-05-30 10:17:00 -04:00
renovate[bot] a82b8726bf Update dependency mini-css-extract-plugin to v0.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/604) 2019-05-28 14:37:02 -04:00
renovate[bot] 50fbfc5399 Update dependency core-js to v3.1.3 (https://github.com/woocommerce/woocommerce-blocks/pull/603) 2019-05-28 14:36:36 -04:00
renovate[bot] efc96bba85 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/582)
* Update wordpress monorepo

* Update core-js to 3.x
2019-05-23 10:57:33 -04:00
renovate[bot] 5de8a2d09a Update dependency eslint-plugin-jest to v22.6.4 (https://github.com/woocommerce/woocommerce-blocks/pull/594) 2019-05-23 16:52:04 +02:00
renovate[bot] 4c696ebcaa Update dependency webpack to v4.32.2 (https://github.com/woocommerce/woocommerce-blocks/pull/597) 2019-05-23 11:35:32 +01:00
renovate[bot] 22f88f7c2e Update dependency webpack to v4.32.1 (https://github.com/woocommerce/woocommerce-blocks/pull/593) 2019-05-22 12:40:55 +02:00
renovate[bot] b32bb71f2c Update dependency core-js to v2.6.8 (https://github.com/woocommerce/woocommerce-blocks/pull/587) 2019-05-22 12:36:39 +02:00
renovate[bot] bf7618bdee Update dependency @babel/core to v7.4.5 (https://github.com/woocommerce/woocommerce-blocks/pull/585) 2019-05-21 16:37:16 -04:00
renovate[bot] ccc40edaa8 Update dependency core-js to v2.6.7 (https://github.com/woocommerce/woocommerce-blocks/pull/579) 2019-05-21 11:19:08 +02:00
renovate[bot] bd4659147e Update dependency webpack to v4.32.0 (https://github.com/woocommerce/woocommerce-blocks/pull/575) 2019-05-21 11:09:58 +02:00
renovate[bot] 5640f83239 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/570) 2019-05-21 11:06:12 +02:00
renovate[bot] 9203b71b28 Update dependency core-js to v2.6.6 (https://github.com/woocommerce/woocommerce-blocks/pull/573) 2019-05-20 14:34:50 +01:00
renovate[bot] 8e5514a929 Update dependency lint-staged to v8.1.7 (https://github.com/woocommerce/woocommerce-blocks/pull/566) 2019-05-15 08:48:23 +01:00
renovate[bot] b6daddd0f5 Update dependency husky to v2.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/563) 2019-05-14 16:23:57 -04:00
Kelly Dwan 22439f5c12 Release version 2.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/562)
* Version bump to 2.1.0-rc

* Version bump to 2.1.0

* Add missing period
2019-05-14 13:43:54 -04:00
renovate[bot] 8aae752690 Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/561) 2019-05-13 14:07:47 +01:00
Mike Jolley e8f3d3776f Show build progress (https://github.com/woocommerce/woocommerce-blocks/pull/557)
* Add progress indicator to build

* Clean up post-build output (only show build files)

* Enable cacheDirectory

* Supress start output
2019-05-13 13:08:32 +01:00
renovate[bot] 2b1fa6ba3f Update dependency babel-loader to v8.0.6 (https://github.com/woocommerce/woocommerce-blocks/pull/559) 2019-05-13 12:45:16 +01:00
renovate[bot] ce17f5756b Update dependency yargs to v13.2.4 (https://github.com/woocommerce/woocommerce-blocks/pull/560) 2019-05-13 12:45:09 +01:00
renovate[bot] 0732e2f094 Update dependency webpack-cli to v3.3.2 (https://github.com/woocommerce/woocommerce-blocks/pull/552) 2019-05-10 10:38:04 -04:00
renovate[bot] 781f706e42 Update dependency clean-webpack-plugin to v2.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/553) 2019-05-10 10:37:53 -04:00
renovate[bot] b121d090c1 Update dependency webpack to v4.31.0 (https://github.com/woocommerce/woocommerce-blocks/pull/556) 2019-05-09 10:28:04 -04:00
renovate[bot] fddbc7efaa chore(deps): update dependency lint-staged to v8.1.6 (https://github.com/woocommerce/woocommerce-blocks/pull/550) 2019-05-03 10:34:15 -04:00
renovate[bot] 31b5f8bb83 chore(deps): update dependency eslint-plugin-react to v7.13.0 (https://github.com/woocommerce/woocommerce-blocks/pull/549) 2019-05-03 10:33:53 -04:00
renovate[bot] 6dcdc5f80a chore(deps): update dependency husky to v2.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/545) 2019-05-02 11:34:10 -04:00
renovate[bot] 7b0a03abee fix(deps): update dependency gridicons to v3.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/546) 2019-05-02 11:33:40 -04:00
renovate[bot] ef50db86f5 chore(deps): update dependency node-sass to v4.12.0 (https://github.com/woocommerce/woocommerce-blocks/pull/542) 2019-04-29 10:25:38 -04:00
renovate[bot] 235d717906 chore(deps): update dependency @babel/core to v7.4.4 (https://github.com/woocommerce/woocommerce-blocks/pull/541) 2019-04-29 10:25:19 -04:00
renovate[bot] 539a5ed152 chore(deps): update dependency eslint-plugin-jest to v22.5.1 (https://github.com/woocommerce/woocommerce-blocks/pull/539) 2019-04-25 10:21:01 -04:00
renovate[bot] 4793924efe chore(deps): update dependency husky to v2.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/538) 2019-04-24 17:31:28 -04:00
renovate[bot] 7edb9b080a chore(deps): update dependency husky to v2 (https://github.com/woocommerce/woocommerce-blocks/pull/537) 2019-04-24 12:35:45 -04:00
renovate[bot] e54a9a7fbb chore(deps): update dependency eslint-plugin-jest to v22.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/536) 2019-04-24 10:47:06 -04:00
renovate[bot] 2f2d1c165e chore(deps): update dependency webpack-cli to v3.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/535) 2019-04-22 13:17:18 -04:00
renovate[bot] f8e2a7c06e chore(deps): update dependency stylelint-config-wordpress to v14 (https://github.com/woocommerce/woocommerce-blocks/pull/532) 2019-04-18 11:14:56 -04:00
renovate[bot] 026c635f2b chore(deps): update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/531) 2019-04-18 11:14:45 -04:00
renovate[bot] 94cd18d6f0 chore(deps): update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/529) 2019-04-16 16:22:01 -04:00
renovate[bot] e62aa238a5 chore(deps): update dependency stylelint to v10 (https://github.com/woocommerce/woocommerce-blocks/pull/528) 2019-04-16 16:20:30 -04:00
renovate[bot] 43ed7187be chore(deps): update dependency webpack to v4.30.0 (https://github.com/woocommerce/woocommerce-blocks/pull/527) 2019-04-16 16:19:43 -04:00
Kelly Dwan 3920836287 Update ProductsControl to use API search when product catalog is large (https://github.com/woocommerce/woocommerce-blocks/pull/515)
* Move query path into constant

* Add catalog size as a preloaded setting

* Pass a search callback to SearchListControl

This will limit the number of products loaded, and update the product list via an API call, when there are over 200 products

* Extract the API requests into a separate file

* Fix proptype warning

* Only trigger the selected request if there are selected products

* Add new `@wordpress/*` dependencies from wc package bumps

* Move the "large catalog" check to the server side

* Update to components@2.0.0
2019-04-12 11:47:29 -04:00
renovate[bot] 9eba0d41f9 fix(deps): update dependency gridicons to v3.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/524) 2019-04-11 11:20:37 -04:00
renovate[bot] 2ce15f01e6 chore(deps): update dependency mini-css-extract-plugin to v0.6.0 (https://github.com/woocommerce/woocommerce-blocks/pull/522) 2019-04-10 15:45:21 -04:00
Kelly Dwan 634349ce4b Bump version to 2.0.0-rc3 (https://github.com/woocommerce/woocommerce-blocks/pull/521)
* Update tested versions of WP & WC

* Bump version & update readme
2019-04-08 19:24:02 -04:00
renovate[bot] bc9fcc1a21 chore(deps): update dependency autoprefixer to v9.5.1 (https://github.com/woocommerce/woocommerce-blocks/pull/519) 2019-04-08 14:53:19 -04:00
renovate[bot] 85ea23eb17 chore(deps): update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/516) 2019-04-05 10:56:15 -04:00
renovate[bot] 5e164508ec chore(deps): update dependency @babel/core to v7.4.3 (https://github.com/woocommerce/woocommerce-blocks/pull/514) 2019-04-03 10:44:23 -04:00
renovate[bot] 8e084adda9 chore(deps): update dependency eslint to v5.16.0 (https://github.com/woocommerce/woocommerce-blocks/pull/512) 2019-04-01 11:03:46 -04:00
renovate[bot] 407e7468ff chore(deps): update dependency react-test-renderer to v16.8.6 (https://github.com/woocommerce/woocommerce-blocks/pull/510) 2019-03-28 10:47:40 -04:00
renovate[bot] 0b1cab89c5 chore(deps): update dependency react-test-renderer to v16.8.5 (https://github.com/woocommerce/woocommerce-blocks/pull/507) 2019-03-27 11:06:26 +01:00
Kelly Dwan 23532701dd Fix fatal with 1.x versions of the feature plugin (https://github.com/woocommerce/woocommerce-blocks/pull/502)
* Add plugin version check to prevent fatal error with core + 1.4

* Version bump
2019-03-22 10:42:01 -04:00
renovate[bot] 828e413493 chore(deps): update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/501) 2019-03-20 15:04:08 -04:00
renovate[bot] 52e1999384 chore(deps): update dependency @babel/core to v7.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/500) 2019-03-20 11:00:56 -04:00
renovate[bot] dbc394ce71 chore(deps): update dependency eslint to v5.15.3 (https://github.com/woocommerce/woocommerce-blocks/pull/498) 2019-03-20 11:00:31 -04:00
renovate[bot] c66b5445d9 chore(deps): update dependency webpack-cli to v3.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/496) 2019-03-18 11:25:27 -04:00
renovate[bot] e46b2a6f73 chore(deps): update dependency eslint-plugin-jest to v22.4.1 (https://github.com/woocommerce/woocommerce-blocks/pull/497) 2019-03-18 11:23:59 -04:00
renovate[bot] 2d9d467728 chore(deps): update dependency eslint to v5.15.2 (https://github.com/woocommerce/woocommerce-blocks/pull/495) 2019-03-18 11:23:13 -04:00
Kelly Dwan 0c85ec1bc7 Add pre-publishing script and bump version to 2.0.0-rc1 (https://github.com/woocommerce/woocommerce-blocks/pull/494)
* Add a `prepack` script to run before publish

This will re-install dependencies, run linting on PHP, CSS, and JS, run the JS tests, and lastly build the production bundle.

* phpcs is now part of `npm run lint` so we don’t need to run it twice

* Version bump to RC1
2019-03-15 12:55:34 -04:00
renovate[bot] 4aa4ba25b5 chore(deps): update dependency eslint-plugin-jest to v22.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/493) 2019-03-15 12:44:19 -04:00
renovate[bot] e89cb009cd chore(deps): update dependency clean-webpack-plugin to v2.0.1 (https://github.com/woocommerce/woocommerce-blocks/pull/492) 2019-03-14 16:06:11 -04:00
renovate[bot] ff1733a391 chore(deps): update dependency autoprefixer to v9.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/491) 2019-03-14 16:04:58 -04:00
Kelly Dwan 22f3582c43 Build: Add translation conversion script (https://github.com/woocommerce/woocommerce-blocks/pull/486)
* Add script to transform language .po files to the expected JSON format for each built JS file

* Merge in updated language packs

* Ignore languages file in bin
2019-03-13 09:59:12 -04:00
renovate[bot] 500b1a8f74 chore(deps): update dependency eslint-plugin-jest to v22.3.2 (https://github.com/woocommerce/woocommerce-blocks/pull/484) 2019-03-12 11:14:05 -04:00
renovate[bot] 226369a287 chore(deps): update dependency eslint-plugin-jest to v22.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/483) 2019-03-12 09:57:36 -04:00
renovate[bot] 0f473aaa07 chore(deps): update dependency css-loader to v2.1.1 (https://github.com/woocommerce/woocommerce-blocks/pull/479) 2019-03-07 11:03:02 -05:00
Kelly Dwan cba3d402b6 Bump the version, update the changelog (https://github.com/woocommerce/woocommerce-blocks/pull/478) 2019-03-06 18:27:37 -05:00
renovate[bot] c4b8b5ea44 chore(deps): update npm to v6.9.0 (https://github.com/woocommerce/woocommerce-blocks/pull/476) 2019-03-06 14:18:39 -05:00
renovate[bot] 2ccdc07b85 chore(deps): update wordpress monorepo (major) (https://github.com/woocommerce/woocommerce-blocks/pull/475)
* chore(deps): update wordpress monorepo

* Remove unnecessary babel config
2019-03-06 13:50:44 -05:00
renovate[bot] 432925a090 chore(deps): update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/474) 2019-03-06 12:59:42 -05:00
renovate[bot] c66c9cd633 chore(deps): update dependency react-test-renderer to v16.8.4 (https://github.com/woocommerce/woocommerce-blocks/pull/473) 2019-03-06 12:43:22 -05:00
renovate[bot] 4a5eb512d3 chore(deps): update dependency eslint to v5.15.1 (https://github.com/woocommerce/woocommerce-blocks/pull/470) 2019-03-05 12:56:11 -05:00
renovate[bot] 78d385f28c chore(deps): update dependency autoprefixer to v9.4.10 (https://github.com/woocommerce/woocommerce-blocks/pull/469) 2019-03-05 12:54:31 -05:00
renovate[bot] 8f998a4859 chore(deps): update dependency clean-webpack-plugin to v2 (https://github.com/woocommerce/woocommerce-blocks/pull/466)
* chore(deps): update dependency clean-webpack-plugin to v2

* Update options for v2.0
2019-03-04 09:48:27 -08:00
renovate[bot] 039bb10b89 fix(deps): pin dependency gridicons to 3.1.1 (https://github.com/woocommerce/woocommerce-blocks/pull/467) 2019-03-04 09:42:47 -08:00
Kelly Dwan 7f78a79698 Set up plugin to be published on npm (https://github.com/woocommerce/woocommerce-blocks/pull/456)
* Move block rendering class into assets

* Update package.json for npm

* Move script registration into publish-able file

* Fix phpcs issue

* Add note about source of file

* Add wcSettings back in

* Rename files to match class name

* Add languages & includes back, so we can use this for publishing zip files

* Update documentation, versions, and add hook for wc components settings

* Update wcSettings output to use fitler

* Update version to `alpha`

* Make block library class into a singleton
2019-03-04 09:30:06 -08:00
renovate[bot] e84670b4c4 chore(deps): update dependency eslint to v5.15.0 (https://github.com/woocommerce/woocommerce-blocks/pull/464) 2019-03-03 13:13:09 -08:00
renovate[bot] 16562fff20 chore(deps): update dependency lint-staged to v8.1.5 (https://github.com/woocommerce/woocommerce-blocks/pull/463) 2019-03-03 13:11:49 -08:00
renovate[bot] 20090582b6 chore(deps): update dependency webpack to v4.29.6 (https://github.com/woocommerce/woocommerce-blocks/pull/461) 2019-02-28 09:25:08 -08:00
renovate[bot] fb482b0cf6 chore(deps): update dependency @babel/core to v7.3.4 (https://github.com/woocommerce/woocommerce-blocks/pull/452) 2019-02-26 10:18:43 -05:00
renovate[bot] 612df2efb8 chore(deps): update dependency autoprefixer to v9.4.9 (https://github.com/woocommerce/woocommerce-blocks/pull/450) 2019-02-25 10:16:00 -05:00
renovate[bot] ae42ecbae3 chore(deps): update dependency react-test-renderer to v16.8.3 (https://github.com/woocommerce/woocommerce-blocks/pull/447) 2019-02-21 14:02:16 -05:00
renovate[bot] 71d8235449 fix(deps): update dependency @woocommerce/components to v1.6.0 (https://github.com/woocommerce/woocommerce-blocks/pull/445) 2019-02-21 12:53:07 -05:00
renovate[bot] 792ed91a5a chore(deps): update dependency autoprefixer to v9.4.8 (https://github.com/woocommerce/woocommerce-blocks/pull/443) 2019-02-20 12:19:26 -05:00
Kelly Dwan b14a37f7b5 Update CSS build process (https://github.com/woocommerce/woocommerce-blocks/pull/439)
* Split apart editor and frontend styles

* Remove the empty JS files after each build

* Pull out editor and style CSS files into two single, separate files
Rename products-grid CSS, add a “global” front end stylesheet

* Update style registration to use these two new global CSS files

* Merge style JS files into vendors before deleting them

* Remove empty file to fix lint error

* Check for file before reading from it

When watching, not all the file stubs are created, so this errors out.
2019-02-19 16:09:36 -05:00
renovate[bot] 6790518efc chore(deps): update dependency eslint to v5.14.1 (https://github.com/woocommerce/woocommerce-blocks/pull/438) 2019-02-18 16:02:40 -05:00
renovate[bot] e5e7737058 chore(deps): update dependency @babel/core to v7.3.3 (https://github.com/woocommerce/woocommerce-blocks/pull/435) 2019-02-18 09:48:19 -05:00
renovate[bot] 6378556414 chore(deps): update dependency eslint to v5.14.0 (https://github.com/woocommerce/woocommerce-blocks/pull/434) 2019-02-18 09:47:51 -05:00
renovate[bot] 181f126e58 chore(deps): update dependency webpack to v4.29.5 (https://github.com/woocommerce/woocommerce-blocks/pull/436) 2019-02-18 09:21:10 -05:00
renovate[bot] 62397dcd87 chore(deps): update dependency webpack to v4.29.4 (https://github.com/woocommerce/woocommerce-blocks/pull/431) 2019-02-15 11:18:03 -05:00
renovate[bot] 7eb27e61bc chore(deps): update dependency core-js to v2.6.5 (https://github.com/woocommerce/woocommerce-blocks/pull/430) 2019-02-15 11:17:33 -05:00
renovate[bot] 04e3747acb chore(deps): update dependency react-test-renderer to v16.8.2 (https://github.com/woocommerce/woocommerce-blocks/pull/429) 2019-02-15 11:16:40 -05:00
renovate[bot] 9089346cc3 chore(deps): update dependency cssnano to v4.1.10 (https://github.com/woocommerce/woocommerce-blocks/pull/425) 2019-02-14 13:00:43 -05:00
renovate[bot] 9de561702b chore(deps): update dependency eslint-plugin-jest to v22.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/427) 2019-02-14 13:00:26 -05:00
renovate[bot] fb2516e472 chore(deps): update dependency lint-staged to v8.1.4 (https://github.com/woocommerce/woocommerce-blocks/pull/423) 2019-02-14 10:47:27 -05:00
renovate[bot] dfb4acf882 chore(deps): update wordpress monorepo (major) (https://github.com/woocommerce/woocommerce-blocks/pull/343)
* chore(deps): update wordpress monorepo

* Fix tests: `transformIgnorePatterns` requires the babel config to be a JS export, rather than a JSON file
2019-02-13 15:18:43 -05:00
renovate[bot] 2bdfc262e6 chore(deps): update dependency cssnano to v4.1.9 (https://github.com/woocommerce/woocommerce-blocks/pull/418) 2019-02-12 14:10:20 -05:00
renovate[bot] 55669d294a chore(deps): update dependency react-test-renderer to v16.8.1 (https://github.com/woocommerce/woocommerce-blocks/pull/402) 2019-02-08 10:07:32 -05:00
Kevin Killingsworth a8754e73dd Bump `@woocommerce/components` to v1.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/408)
This advances the version of woocommerce components for the primary
reason of fixing the navigation problem of adding #/ to any URLs we use.
2019-02-07 11:25:28 -06:00
renovate[bot] 4a5b9b2688 chore(deps): update dependency core-js to v2.6.4 (https://github.com/woocommerce/woocommerce-blocks/pull/410) 2019-02-07 10:06:34 -05:00
renovate[bot] cd9d573112 chore(deps): update dependency webpack to v4.29.3 (https://github.com/woocommerce/woocommerce-blocks/pull/409) 2019-02-07 09:58:12 -05:00
renovate[bot] 60b4cd5fcc chore(deps): update dependency webpack to v4.29.2 (https://github.com/woocommerce/woocommerce-blocks/pull/404) 2019-02-06 11:20:18 -05:00
renovate[bot] 843f9529bf chore(deps): update dependency webpack-cli to v3.2.3 (https://github.com/woocommerce/woocommerce-blocks/pull/399) 2019-02-05 13:35:23 +08:00
renovate[bot] 0902e1b707 chore(deps): update dependency webpack to v4.29.1 (https://github.com/woocommerce/woocommerce-blocks/pull/395) 2019-02-04 14:24:49 -05:00
renovate[bot] a49f061950 chore(deps): update dependency eslint-plugin-jsx-a11y to v6.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/394)
LGTM 👍
2019-02-04 17:24:19 +08:00
renovate[bot] 63c7728ad8 chore(deps): update dependency lint-staged to v8.1.3 (https://github.com/woocommerce/woocommerce-blocks/pull/393)
Minor bug fix.  👍
2019-02-04 17:20:20 +08:00
renovate[bot] 9c02e09537 chore(deps): update dependency lint-staged to v8.1.2 (https://github.com/woocommerce/woocommerce-blocks/pull/392) 2019-02-02 11:52:44 -05:00
renovate[bot] e3b7c4af60 chore(deps): update dependency eslint to v5.13.0 (https://github.com/woocommerce/woocommerce-blocks/pull/391) 2019-02-01 14:28:06 -05:00
renovate[bot] 454c9262ab chore(deps): update dependency eslint-plugin-jest to v22.2.2 (https://github.com/woocommerce/woocommerce-blocks/pull/390) 2019-02-01 10:26:31 -05:00
renovate[bot] 11bfb1b153 fix(deps): update dependency @woocommerce/components to v1.4.2 (https://github.com/woocommerce/woocommerce-blocks/pull/388) 2019-01-31 17:12:03 -05:00
renovate[bot] 9a404e5c6e Update dependency eslint-plugin-jest to v22.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/376) 2019-01-30 16:07:32 -05:00
renovate[bot] d664df9a85 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/366) 2019-01-29 14:18:34 -05:00
renovate[bot] 9860565210 Update dependency autoprefixer to v9.4.7 (https://github.com/woocommerce/woocommerce-blocks/pull/367) 2019-01-29 12:46:25 -05:00
renovate[bot] 2cf52f0e4d Update dependency lint-staged to v8.1.1 (https://github.com/woocommerce/woocommerce-blocks/pull/365) 2019-01-29 12:46:03 -05:00
renovate[bot] e46aebf921 Update dependency eslint-plugin-jsx-a11y to v6.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/363) 2019-01-29 12:42:52 -05:00
renovate[bot] 32d42cbec7 Update dependency core-js to v2.6.3 (https://github.com/woocommerce/woocommerce-blocks/pull/358) 2019-01-22 07:49:15 -05:00
renovate[bot] 71536c0e00 Update dependency clean-webpack-plugin to v1.0.1 (https://github.com/woocommerce/woocommerce-blocks/pull/356) 2019-01-22 07:33:55 -05:00
renovate[bot] 16319d2a07 Update dependency autoprefixer to v9.4.6 (https://github.com/woocommerce/woocommerce-blocks/pull/355) 2019-01-21 10:54:41 -05:00
renovate[bot] 98540efb81 Update dependency webpack to v4.29.0 (https://github.com/woocommerce/woocommerce-blocks/pull/354) 2019-01-21 10:53:26 -05:00
renovate[bot] b2d3ad5e0d Update dependency stylelint to v9.10.1 (https://github.com/woocommerce/woocommerce-blocks/pull/353) 2019-01-21 10:53:03 -05:00
renovate[bot] 903236db84 Update dependency eslint to v5.12.1 (https://github.com/woocommerce/woocommerce-blocks/pull/352) 2019-01-18 17:05:13 -05:00
Renovate Bot 0f7eb3df30 Update npm to v6.6.0 2019-01-17 23:00:15 +00:00
renovate[bot] e45fbb60dd Update dependency eslint-plugin-react to v7.12.4 (https://github.com/woocommerce/woocommerce-blocks/pull/340) 2019-01-17 10:35:57 -05:00
Kelly Dwan 1b4904a19e Update `@wordpress/*` packages (https://github.com/woocommerce/woocommerce-blocks/pull/338) 2019-01-17 10:31:01 -05:00
renovate[bot] 0dfece4fd6 Update dependency @woocommerce/components to v1.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/333)
* Update dependency @woocommerce/components to v1.4.0

* Fix test snapshots
2019-01-16 18:58:37 -05:00
renovate[bot] 5f31174bdc Update dependency stylelint to v9.10.0 (https://github.com/woocommerce/woocommerce-blocks/pull/332) 2019-01-16 10:39:24 -05:00
Kelly Dwan afae8db424 Add changelog & version bump to 1.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/323)
* Add changelog & version bump to 1.3.0-RC

* Update changelog phrasing

* Update name/version in package-lock

* Update readme

* Bump version to 1.3.0
2019-01-15 16:43:18 -05:00
renovate[bot] 7d1c67fd2d Pin dependency classnames to 2.2.6 (https://github.com/woocommerce/woocommerce-blocks/pull/313) 2019-01-13 12:28:41 -05:00
Kelly Dwan 0d720183aa Add "Featured Product" block preview (https://github.com/woocommerce/woocommerce-blocks/pull/308)
* Add classnames package

* Add background image & initial styles

* Only show inspector controls when not in edit-mode

* Add overlay color + opacity controls

* Add content alignment

* Fix display of content

* Add content toggles

* Update styles from feedback

* Display the "Featured Product" block on the frontend (https://github.com/woocommerce/woocommerce-blocks/pull/310)

* Add render_callback to dynamically render product

* Set a size for the product description

* Remove fallback placeholder image

* Reset the background color for the placeholder component

Previously this was overriding storefront's custom background color CSS

* Update nested conditional

* Remove unnecessary style

* "Featured Product" Block: Add link to the product to the block (https://github.com/woocommerce/woocommerce-blocks/pull/311)

* Featured Product Block: Add link to the product to the block

* Add a better link label for screen reader users

* Match core button styles, fix alignment of button-link
2019-01-13 12:22:15 -05:00
renovate[bot] dbb04d5f1a Update dependency autoprefixer to v9.4.5 (https://github.com/woocommerce/woocommerce-blocks/pull/312) 2019-01-12 12:55:12 -05:00
Kelly Dwan 6a1c1490cb Split blocks into separate JS files (https://github.com/woocommerce/woocommerce-blocks/pull/305)
This lets us use the functionality of `register_block_type` to automatically enqueue the scripts and styles used by blocks in the editor, and eventually, styles on the frontend as well. Also adds cssnano to minify our CSS.
2019-01-10 13:16:37 -05:00
renovate[bot] b7bd2e7162 Update dependency webpack to v4.28.4 (https://github.com/woocommerce/woocommerce-blocks/pull/307) 2019-01-10 13:07:41 -05:00
renovate[bot] c3c9be354f Update dependency core-js to v2.6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/306) 2019-01-10 11:27:31 -05:00
renovate[bot] 257789a342 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/302) 2019-01-09 20:39:51 -05:00
renovate[bot] 9e89e32213 Update dependency eslint-plugin-jest to v22.1.3 (https://github.com/woocommerce/woocommerce-blocks/pull/301) 2019-01-09 10:18:30 -05:00
renovate[bot] c815e4ad9f Update dependency eslint-plugin-react to v7.12.3 (https://github.com/woocommerce/woocommerce-blocks/pull/297) 2019-01-07 10:20:26 -05:00
renovate[bot] 674c52b36b Update dependency webpack-cli to v3.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/298) 2019-01-07 10:04:55 -05:00
renovate[bot] 8e49c8184a Update dependency eslint to v5.12.0 (https://github.com/woocommerce/woocommerce-blocks/pull/296) 2019-01-04 17:21:07 -05:00
renovate[bot] b2fcd96111 Update dependency babel-loader to v8.0.5 (https://github.com/woocommerce/woocommerce-blocks/pull/292) 2019-01-04 11:37:42 -05:00
renovate[bot] f15a38d076 Update dependency eslint-plugin-react to v7.12.2 (https://github.com/woocommerce/woocommerce-blocks/pull/288) 2019-01-03 17:48:24 -05:00
renovate[bot] 2978534c03 Update dependency eslint to v5.11.1 (https://github.com/woocommerce/woocommerce-blocks/pull/284) 2019-01-03 17:47:37 -05:00
renovate[bot] 70131bc025 Update dependency husky to v1.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/287) 2019-01-03 13:28:02 -05:00
renovate[bot] 9a06938eb5 Update dependency autoprefixer to v9.4.4 (https://github.com/woocommerce/woocommerce-blocks/pull/291) 2019-01-03 13:27:39 -05:00
renovate[bot] 4ae80bc5d2 Update dependency css-loader to v2.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/285) 2019-01-03 13:27:23 -05:00
renovate[bot] 088753ce3c Update dependency webpack-cli to v3.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/290) 2019-01-03 13:27:09 -05:00
renovate[bot] 2147e5713b Update dependency webpack to v4.28.3 (https://github.com/woocommerce/woocommerce-blocks/pull/283) 2019-01-03 13:16:09 -05:00
renovate[bot] e212d762f6 Update dependency css-loader to v2.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/280) 2018-12-21 10:22:31 -05:00
renovate[bot] 0b91be551e Update dependency webpack to v4.28.1 (https://github.com/woocommerce/woocommerce-blocks/pull/278) 2018-12-20 13:09:05 -05:00
renovate[bot] 6f5e0b3fad Update dependency react-test-renderer to v16.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/275) 2018-12-20 10:25:52 -05:00
renovate[bot] d3c8998430 Update dependency @woocommerce/components to v1.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/267)
* Update dependency @woocommerce/components to v1.3.0

* Set up new globals used by @woocommerce/components
2018-12-19 10:55:16 -05:00
renovate[bot] 205f20f879 Update dependency webpack to v4.28.0 (https://github.com/woocommerce/woocommerce-blocks/pull/271) 2018-12-19 10:30:28 -05:00
renovate[bot] 877b6e92e8 Update dependency husky to v1.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/262) 2018-12-18 15:01:38 -05:00
renovate[bot] 24ab9c5f7e Update dependency core-js to v2.6.1 (https://github.com/woocommerce/woocommerce-blocks/pull/260) 2018-12-18 10:50:35 -05:00
renovate[bot] 8b4503f53b Update dependency autoprefixer to v9.4.3 (https://github.com/woocommerce/woocommerce-blocks/pull/256) 2018-12-17 10:04:50 -05:00
renovate[bot] 9bb76f741d Update dependency @babel/core to v7.2.2 (https://github.com/woocommerce/woocommerce-blocks/pull/253) 2018-12-15 11:47:54 -05:00
renovate[bot] 6c7e2d0976 Update dependency css-loader to v2.0.1 (https://github.com/woocommerce/woocommerce-blocks/pull/248) 2018-12-14 09:56:26 -05:00
renovate[bot] e06fcb0a3d Update dependency husky to v1.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/246) 2018-12-14 08:59:23 +08:00
Renovate Bot 9ec5fde082 Update dependency node-sass to v4.11.0 2018-12-09 02:48:04 +00:00
Renovate Bot 0b7168e2a3 Update dependency css-loader to v2 2018-12-08 16:26:58 +00:00
renovate[bot] 9bf2b5aa10 Update dependency eslint to v5.10.0 (https://github.com/woocommerce/woocommerce-blocks/pull/224) 2018-12-08 10:25:34 -06:00
renovate[bot] 7d114483fb Update dependency mini-css-extract-plugin to v0.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/217) 2018-12-08 10:24:47 -06:00
renovate[bot] 4118fd3bf3 Update dependency core-js to v2.6.0 (https://github.com/woocommerce/woocommerce-blocks/pull/213) 2018-12-08 10:24:22 -06:00
renovate[bot] 2dfb1bc5cd Update dependency webpack to v4.27.1 (https://github.com/woocommerce/woocommerce-blocks/pull/216) 2018-12-08 10:24:02 -06:00
renovate[bot] 48bcc11ae2 Update dependency autoprefixer to v9.4.2 (https://github.com/woocommerce/woocommerce-blocks/pull/204) 2018-12-04 10:09:45 -05:00
renovate[bot] 3cd501745d Update dependency eslint-plugin-jest to v22.1.2 (https://github.com/woocommerce/woocommerce-blocks/pull/203) 2018-12-04 09:52:42 -05:00
renovate[bot] 0eaebf04c0 Update dependency webpack to v4.27.0 (https://github.com/woocommerce/woocommerce-blocks/pull/201) 2018-12-04 09:52:20 -05:00
renovate[bot] 4cc4c7a7e9 Update dependency autoprefixer to v9.4.1 (https://github.com/woocommerce/woocommerce-blocks/pull/202) 2018-12-04 09:51:48 -05:00
Kelly Dwan 723c8eedab Update textdomain to plugin slug (https://github.com/woocommerce/woocommerce-blocks/pull/199)
* Update textdomain in JS files

* Update textdomain in PHP files

* Add babel plugin to create pot & php files from JS

* Update textdomain in plugin header

* Update translations after rebase
2018-12-04 09:51:21 -05:00
Kelly Dwan 6572b79708 Category Selection: Add loading & no results states (https://github.com/woocommerce/woocommerce-blocks/pull/197)
* Add gridicons dependency

* Add loading & no results states

* Update test snapshots

* Remove redundant setState call
2018-12-03 19:17:22 -05:00
renovate[bot] be07093ae0 Update dependency @babel/core to v7.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/194) 2018-12-03 19:16:31 -05:00
renovate[bot] 503aba0275 Update dependency eslint-plugin-jest to v22.1.1 (https://github.com/woocommerce/woocommerce-blocks/pull/200) 2018-12-03 19:16:16 -05:00
renovate[bot] 15dbfc3236 Update dependency autoprefixer to v9.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/185) 2018-12-03 10:18:30 -05:00
Claudio Sanches 81605bae30 New custom endpoints (https://github.com/woocommerce/woocommerce-blocks/pull/162)
* Included PHPCS and git hooks

* Fixed coding standards

* New Products endpoint

* Fixed product controller schema

* Improved products controller schema and response

* New product categories controller

* Updated REST API base to match WooCommerce authentication

* Fixed products/categories endpoint

* Better docblock

* Product attributes controller

* Product attribute terms controller

* Update REST API urls

* Reverted PHPCS changes

* Check permission only once while fetching posts

* Included raw price

* Included sku to products endpoint response

* Fixed endpoints in unit test

* Fixed routes in unit tests

* Check and use subscriber, contributor and author rules in unit tests
2018-11-30 14:12:56 -05:00
renovate[bot] 7a209367a7 Update dependency @woocommerce/components to v1.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/180) 2018-11-30 13:38:00 -05:00
renovate[bot] fbdc17d532 Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/167) 2018-11-29 13:09:21 -05:00
renovate[bot] 280a983790 Update Node.js to v10.14.1 (https://github.com/woocommerce/woocommerce-blocks/pull/169) 2018-11-29 12:50:42 -05:00
Claudio Sanches bd8d5beb21 Introduced pre-commit hook for PHP (https://github.com/woocommerce/woocommerce-blocks/pull/164) 2018-11-29 10:23:27 -05:00
renovate[bot] a17986f286 Update dependency @woocommerce/components to v1.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/160) 2018-11-28 10:58:03 -05:00
renovate[bot] 16f7c64258 Update dependency stylelint to v9.9.0 (https://github.com/woocommerce/woocommerce-blocks/pull/161) 2018-11-28 10:57:34 -05:00
renovate[bot] da6180f172 Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/142) 2018-11-27 14:41:06 -05:00
renovate[bot] 16e861859a Update dependency webpack to v4.26.1 (https://github.com/woocommerce/woocommerce-blocks/pull/155) 2018-11-27 14:31:31 -05:00
renovate[bot] 402d428642 Update dependency eslint-plugin-jest to v22.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/154) 2018-11-27 14:29:49 -05:00
renovate[bot] 35ac545abb Update dependency mini-css-extract-plugin to v0.4.5 (https://github.com/woocommerce/woocommerce-blocks/pull/152) 2018-11-27 14:28:39 -05:00
Kelly Dwan 6a50ebde8b Adds continuous integration testing with travis (https://github.com/woocommerce/woocommerce-blocks/pull/156)
* Add travis to run JS & CSS linting, JS tests, and PHPUnit tests

* Move API initiation out of the gutenberg/files check

So that php tests run without having to build the JS files

* Add very basic product endpoint tests

* Fix stylelint issues in CSS

* Remove e2e setup, replace with dependency setup

* Add missing install step

* Remove cache for now

* Add specific `har-validator` dependency because v 5.1.2 has disappeared

* Only run npm install for the JS test job

* Check for installed plugins

* Update install location

* Fix typo in plugin name

* Check the BRANCH variable, rather than TRAVIS_PULL_REQUEST_BRANCH, which is only set on PR runs

* Remove debug command

* A change to trigger CI

* Set the expected node & npm versions

* Remove copy-pasted command, does not apply
2018-11-27 12:12:48 -05:00
renovate[bot] f09a4efae2 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/147) 2018-11-21 11:45:09 -05:00
renovate[bot] 3851a6bad1 Update dependency webpack to v4.26.0 (https://github.com/woocommerce/woocommerce-blocks/pull/139) 2018-11-19 11:38:33 -05:00
Kelly Dwan 2231c829d1 Add a basic product category block (https://github.com/woocommerce/woocommerce-blocks/pull/136)
* Add a second block, for “products by category”

* Fetch products in the given category, when attributes change

* Display the resulting products

* Style the product preview

* Create utils folder, move shared attributes

* Move getQuery to shared utils folder

* Create a helper function to get the shortcode string

* Support the menu_order setting

* Support center/wide/full alignment

* Update PropTypes

* Add tests

* Add text domain to translation functions
2018-11-19 11:33:17 -05:00
renovate[bot] 10b740d148 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/133) 2018-11-16 14:32:52 -05:00
renovate[bot] 4e1fb93a51 Update dependency clean-webpack-plugin to v1 (https://github.com/woocommerce/woocommerce-blocks/pull/132) 2018-11-16 14:30:39 -05:00
renovate[bot] a1c79b0114 Update dependency @babel/core to v7.1.6 (https://github.com/woocommerce/woocommerce-blocks/pull/131) 2018-11-16 14:29:42 -05:00
Kelly Dwan 882cd4c7bb Set up Jest for JS testing (https://github.com/woocommerce/woocommerce-blocks/pull/130)
* Set up Jest testing

* Add a snapshot test for the product preview component
2018-11-16 10:43:51 -05:00
renovate[bot] 9bc66d90ee Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/129) 2018-11-15 16:59:05 -05:00
Kelly Dwan 702da46571 Add stylelint to find and fix css code style issues (https://github.com/woocommerce/woocommerce-blocks/pull/126)
* Add stylelint & WP gutenberg configuration

* Fix stylelint issues
2018-11-15 10:45:49 -05:00
Kelly Dwan 45f519590e Add eslint to find and fix code style issues (https://github.com/woocommerce/woocommerce-blocks/pull/123)
* Add eslint configuration

* Run eslint auto-fixer to cover fixable issues

* Use wp.element’s component to prevent undefined React error

* Add products data global to eslint config

* Fix remaining eslint errors by hand

* Fix eslint errors in webpack

* Remove duplicate rule
2018-11-13 14:21:04 -05:00
Kelly Dwan 140f4e5ed6 Update build process (https://github.com/woocommerce/woocommerce-blocks/pull/122)
* Add api-fetch dependency

* Remove compiled files from the repo

* Update build process, remove grunt

* Import CSS into block, as we now extract CSS via webpack to build

* Update enqueue scripts to reflect new build locations

* Detect if build files don’t exist, and instruct users to build project

* Update readme with build instructions

* Clarify where to run npm commands in info notice

* Only enqueue our JS files if we know they exist

* Clarify version compatibility between WC and WP 5.0
2018-11-13 14:12:32 -05:00
claudiulodro 6cde5409a1 Begin migration off withapidata 2018-09-05 11:30:46 -07:00