renovate[bot]
05b1777b83
Update Node.js to v10.16.3 ( https://github.com/woocommerce/woocommerce-blocks/pull/874 )
2019-08-16 16:29:08 +01:00
Albert Juhé Lluveras
fb842d2596
Update Reviews styles so it looks the same in the editor and the frontend ( https://github.com/woocommerce/woocommerce-blocks/pull/871 )
2019-08-16 16:12:06 +01: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
Mike Jolley
d9c2b4d4c6
Align stars left ( https://github.com/woocommerce/woocommerce-blocks/pull/866 )
2019-08-15 13:20:06 +01:00
Mike Jolley
aa65f19a46
Remove screen-reader-text css rules ( https://github.com/woocommerce/woocommerce-blocks/pull/849 )
2019-08-15 13:19:09 +01:00
Albert Juhé Lluveras
a7221fd5ce
Add README note for PHP deprecation notices
2019-08-15 13:03:41 +02:00
Mike Jolley
1ed14cdc01
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
2019-08-15 10:36:24 +01:00
Albert Juhé Lluveras
6ad05724c8
Add description to blocks added in last releases ( https://github.com/woocommerce/woocommerce-blocks/pull/869 )
2019-08-15 11:16:32 +02:00
David Stone
a4de62ba83
Use correct parameter order for implode. Solves deprecation notice in PHP 7.4 ( https://github.com/woocommerce/woocommerce-blocks/pull/857 )
2019-08-15 11:16:04 +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
Darren Ethier
64b476303a
remove unnecessary config ( https://github.com/woocommerce/woocommerce-blocks/pull/862 )
2019-08-14 07:23:09 -04: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
renovate[bot]
a618bb7dd0
Pin dependency babel-plugin-transform-react-remove-prop-types to 0.4.24 ( https://github.com/woocommerce/woocommerce-blocks/pull/851 )
2019-08-13 15:44:07 +01:00
Mike Jolley
5f5797dc3d
Add global data helpers ( https://github.com/woocommerce/woocommerce-blocks/pull/848 )
...
* Extract global settings to assets/js/data
* add alias
* Fix alias
* Rename to settings
2019-08-13 15:43:48 +01: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]
0229b166a0
Update dependency composer/installers to v1.7.0 ( https://github.com/woocommerce/woocommerce-blocks/pull/842 )
2019-08-13 11:40:01 +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
Claudio Sanches
dddadb895f
Fix duplicated translatable string ( https://github.com/woocommerce/woocommerce-blocks/pull/843 )
...
* Fix duplicated translatable string
* Fixed more duplicated strings in descriptions
* Merge similar strings
2019-08-13 11:29:00 +01:00
Mike Jolley
84a464fc62
Allow hidden products in handpicked products block ( https://github.com/woocommerce/woocommerce-blocks/pull/803 )
...
* Allow hidden products in handpicked block
* Simplify set_visibility_query_args
2019-08-12 12:54:51 +01:00
HackMD
a4f82d6a90
Updated deploy instructions
2019-08-12 11:48:58 +00:00
Albert Juhé Lluveras
a36608d9dc
Make react-test-renderer name consistent ( https://github.com/woocommerce/woocommerce-blocks/pull/836 )
2019-08-12 13:41:18 +02:00
Mike Jolley
de97e18df7
Update readme and deploy script from release/2.3
2019-08-12 12:08:30 +01:00
Albert Juhé Lluveras
e7180dfc7b
Product Categories: prevent importing all HOCs and import only withComponentId ( https://github.com/woocommerce/woocommerce-blocks/pull/834 )
2019-08-12 10:44:51 +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]
2cfd59fa38
Pin dependency bundlesize to 0.18.0 ( https://github.com/woocommerce/woocommerce-blocks/pull/831 )
2019-08-12 11:05:20 +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
222bde2bba
add configuration for css bundlesize ( https://github.com/woocommerce/woocommerce-blocks/pull/832 )
2019-08-09 14:43:15 -04: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
Mike Jolley
9a23b81204
Reduce CSS specificity ( https://github.com/woocommerce/woocommerce-blocks/pull/796 )
...
* Reduce CSS specificity
* 2019 fixes
2019-08-09 15:07:05 +01:00
Albert Juhé Lluveras
708fb72288
Disable HTML editing on Featured Category ( https://github.com/woocommerce/woocommerce-blocks/pull/816 )
2019-08-08 17:09:41 +02:00
Albert Juhé Lluveras
6e91656677
Featured Product: hide background opacity control if there is no image ( https://github.com/woocommerce/woocommerce-blocks/pull/813 )
...
* Featured Product: hide background opacity control if there is no image
* Add explanation for FocalPointPicker check
2019-08-08 17:09:32 +02:00
Albert Juhé Lluveras
6f88bb85a2
Add tests to utils/products.js ( https://github.com/woocommerce/woocommerce-blocks/pull/817 )
...
* Add tests to utils/products.js
* Make getImageSrcFromProduct return an empty string instead of 0 when there are no images
2019-08-08 14:48:34 +01: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]
9ff3332b24
Update npm to v6.10.3 ( https://github.com/woocommerce/woocommerce-blocks/pull/809 )
2019-08-08 12:59:29 +01:00
renovate[bot]
0d739215d5
Update Node.js to v10.16.2 ( https://github.com/woocommerce/woocommerce-blocks/pull/810 )
2019-08-08 12:47:34 +01:00
Albert Juhé Lluveras
3097bb0901
Create a constants.js file with the NAMESPACE value ( https://github.com/woocommerce/woocommerce-blocks/pull/799 )
...
* Create a constants.js file with the NAMESPACE value
* Created 'ENDPOINTS' constant instead of 'NAMESPACE'
* Use NAMESPACE in constants.js
2019-08-07 16:47:01 +02:00
Darren Ethier
2d5b06f07a
Introduce withSearchedProducts higher order component and refactor ProductsControl Component ( https://github.com/woocommerce/woocommerce-blocks/pull/791 )
...
* add new withSearchedProducts hoc
includes tests
* convert to functional component and wrap with new hoc
* remove dependency between tests
* Fix typo with PropTypes bool
Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>
* remove unnecessary specific import
* fix bug introduced on refactor for selected prop recalc
* fix tests that were testing the wrong expectation
- also improved mocks a bit so they are a bit more realistic for the purpose of the test coverage.
* remove unnecessary Fragment
* tweak propType definitions and remove defaults
- this keeps argument expectations in sync with wrapped component and reduces chance of unexpected behaviour if `SearchListControl` logic changes.
* remove lodash.find dependency.
2019-08-06 11:34:13 -04:00
Mike Jolley
918f822128
Disable HTML editing on dynamic blocks ( https://github.com/woocommerce/woocommerce-blocks/pull/801 )
...
* Disable HTML editing on dynamic blocks
* Tabindex case
2019-08-06 15:10:01 +01:00
Mike Jolley
6a6d280eb0
Add product search block ( https://github.com/woocommerce/woocommerce-blocks/pull/697 )
...
* basic scaffold
* Progress
* Fix saving
* Move data to form
* Update assets/js/blocks/product-search/editor.scss
Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>
* Update assets/js/blocks/product-search/block.js
Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>
* hex case
* Use a span element
* Move render method
* CSS
* Update buttons
* Fix navigation buttons
* remove webkit appearance styles for buttons
* Swap rich to plain text component
* Improved attribute handling
* Update assets/js/blocks/product-search/block.js
Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>
2019-08-05 11:25:57 +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
Albert Juhé Lluveras
8a187db5d9
Move withComponentId to hocs directory ( https://github.com/woocommerce/woocommerce-blocks/pull/797 )
2019-08-05 10:37:16 +01:00
Albert Juhé Lluveras
2504bffdfa
Create `withProduct` HOC ( https://github.com/woocommerce/woocommerce-blocks/pull/779 )
...
* Reset 'loaded' state in Featured Product and Category blocks
* Minor code improvements
* Remove state from ApiErrorPlaceholder
* Move getProduct to a HOC
* Undo changes in Featured Category
* Update proptypes
* Move error messages to <ApiErrorPlaceholder>
* Reorder props
* Move lifecycle methods to HOC
* Make <FeaturedProduct> component presentational
* Move withProduct to js/hocs
* Create NAMESPACE constant in utils
* Create getProduct util function
* Set 'error' and 'product' state to null instead of 'false' when they have no value
* Prevent getImageSrcFromProduct and getImageIdFromProduct returning an error when 'product' is not an object
* Add HOC tests
* Use 'toBe' and 'toBeNull' jest expect methods instead of 'toEqual' when possible
* Export HOCs from index
* Move mock implementation to beforeEach
2019-08-02 13:56:53 +02:00