Commit Graph

603 Commits

Author SHA1 Message Date
Kelly Dwan f6e5457f4b Dynamic grid blocks: Try using ServerSideRender component for preview (https://github.com/woocommerce/woocommerce-blocks/pull/565)
* Add grid block base class to handle rendering all grid blocks

Using code from the shortcode handler to create the query, subclass into newest product to show use

* Update preview content to match rendering from the new grid block handler

* Fix the categories query builder

* Update order of rating/price

* Remove center alignment

* Extract rating & button into separate functions

* Wrap the content in a link

* Add the current class names for better theme support

* Fix some styling in editor preview & frontend

* Add back the deprecated cols support for existing blocks

* Add multiple-rows class, style tweaks

* Switch Newest Products to dynamic rendering, deprecate existing shortcode method

* Add “On Sale” flag

* Switch “On Sale Products” to dynamic rendering

* Fix reusable block preview

* Add correct classes to On Sale Products

* Remove dynamic blocks from CSS hidden content rules

Content is not output to browser now, so we don’t need to hide it

* Fix undefined parameters

* Fix attributes for on sale

* Add deprecation comment, use more descriptive function name

* Addressing review feedback

* Update test: classnames have changed, image now wrapped in div

* Disable HTML editing for dynamic blocks

* Moved rendering logic into block library

* Try using ServerSideRender component for preview

* Define the schema for contentVisibility

This ensures the API correctly uses boolean instead of “true”/“false” strings

* Move the star rating CSS to the general grid-blocks section

* Remove the list styling, which is added back by core GB styles

* Fix stylelint issues
2019-05-21 16:34:48 -04:00
Mike Jolley ad1d47f3fd Implement cancel button + state management 2019-05-21 13:58:52 +01:00
Mike Jolley 7e19eefa82 Cancel styles 2019-05-21 13:58:35 +01:00
Kelly Dwan 099835918b Set the vendors chunk to always split out shared node_modules code (https://github.com/woocommerce/woocommerce-blocks/pull/577) 2019-05-21 11:29:09 +01:00
Kelly Dwan 7db16590ce Add instructions for testing `@woocommerce/block-library` locally (https://github.com/woocommerce/woocommerce-blocks/pull/578) 2019-05-21 11:16:43 +01: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
Mike Jolley e096666211 Update/dynamic grid blocks html (https://github.com/woocommerce/woocommerce-blocks/pull/567)
* Add grid block base class to handle rendering all grid blocks

Using code from the shortcode handler to create the query, subclass into newest product to show use

* Update preview content to match rendering from the new grid block handler

* Fix the categories query builder

* Update order of rating/price

* Remove center alignment

* Extract rating & button into separate functions

* Wrap the content in a link

* Add the current class names for better theme support

* Fix some styling in editor preview & frontend

* Add back the deprecated cols support for existing blocks

* Add multiple-rows class, style tweaks

* Switch Newest Products to dynamic rendering, deprecate existing shortcode method

* Add “On Sale” flag

* Switch “On Sale Products” to dynamic rendering

* Fix reusable block preview

* Add correct classes to On Sale Products

* Remove dynamic blocks from CSS hidden content rules

Content is not output to browser now, so we don’t need to hide it

* Fix undefined parameters

* Fix attributes for on sale

* Add deprecation comment, use more descriptive function name

* Addressing review feedback

* Update test: classnames have changed, image now wrapped in div

* Disable HTML editing for dynamic blocks

* Moved rendering logic into block library

* Update HTML rendering for products and remove core template functions

* Update styling

* Put the wp block class back

* Remove style import

* Move container classes to div not the ul

* Remove visibility classes

* Avoid rending non-visible items

* Revert style additons for visbility

* Fix CSS now that class names have shifted
2019-05-16 17:30:40 +01:00
Kelly Dwan a03a9d759b Try dynamic blocks for rendering content (replacing shortcode output) (https://github.com/woocommerce/woocommerce-blocks/pull/558)
* Add grid block base class to handle rendering all grid blocks

Using code from the shortcode handler to create the query, subclass into newest product to show use

* Update preview content to match rendering from the new grid block handler

* Fix the categories query builder

* Update order of rating/price

* Remove center alignment

* Extract rating & button into separate functions

* Wrap the content in a link

* Add the current class names for better theme support

* Fix some styling in editor preview & frontend

* Add back the deprecated cols support for existing blocks

* Add multiple-rows class, style tweaks

* Switch Newest Products to dynamic rendering, deprecate existing shortcode method

* Add “On Sale” flag

* Switch “On Sale Products” to dynamic rendering

* Fix reusable block preview

* Add correct classes to On Sale Products

* Remove dynamic blocks from CSS hidden content rules

Content is not output to browser now, so we don’t need to hide it

* Fix undefined parameters

* Fix attributes for on sale

* Add deprecation comment, use more descriptive function name

* Addressing review feedback

* Update test: classnames have changed, image now wrapped in div

* Disable HTML editing for dynamic blocks

* Moved rendering logic into block library

* Remove unnecessary !important on styles
2019-05-16 14:03:11 +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
Kelly Dwan 1ea00a7fb1 Bump to dev version (https://github.com/woocommerce/woocommerce-blocks/pull/564) 2019-05-15 08:37:48 +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
Kelly Dwan 0e68c9b12c Update and add documentation in READMEs (https://github.com/woocommerce/woocommerce-blocks/pull/551) 2019-05-09 10:45:09 -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
Kelly Dwan fccb6737eb ProductControl: Update product search performance (https://github.com/woocommerce/woocommerce-blocks/pull/547)
* Move the products API utilities to a shared folder

* Use the `onSearch` callback when we have a “large catalog”
2019-05-03 10:38:13 -04:00
Kelly Dwan e8fb6e7c94 Add "FocalPointPicker" to Featured Product block (https://github.com/woocommerce/woocommerce-blocks/pull/544)
* Add FocalPointPicker to featured product block

* Disable the media icon if no product is selected

* Use the focal point on the frontend display

* Check for `FocalPointPicker` before using it (compat for WP 5.1)

* Check if focalPoint attribue is an array before trying to use it
2019-05-03 10:37:52 -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
Kelly Dwan 8bc7adbee4 Grid Blocks: Prevent invalid parameter passed to API (https://github.com/woocommerce/woocommerce-blocks/pull/543)
* Prevent invalid parameter passed to API

per_page cannot be greater than 100, but the frontend does support a larger limit

* Add tests
2019-04-30 16:30:43 -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
Kelly Dwan cf14034f9a Cherry-pick branch/2.0.x: Fix conflict with hooks + 3.6, pre 3.6.2 2019-04-22 12:16:53 -04:00
Kelly Dwan 7bac46f286 Move conflict check to init action (https://github.com/woocommerce/woocommerce-blocks/pull/534)
Checking the feature plugin version on `init` ensures the constant is defined before we get to it, which is not guaranteed in `__construct` due to potential different load orders.
2019-04-19 12:33:04 -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
Kelly Dwan 39d5cb8231 Update readme.txt 2019-04-18 11:13:31 -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
Kelly Dwan da1ef3fead Version bump to 2.1.0-dev (https://github.com/woocommerce/woocommerce-blocks/pull/523) 2019-04-10 19:13:09 -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