Commit Graph

490 Commits

Author SHA1 Message Date
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] 2e48398e7f Update Node.js to v10.16.0 (https://github.com/woocommerce/woocommerce-blocks/pull/607) 2019-05-29 13:18:46 -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
Kelly Dwan bfa7724fe3 Add dynamic rendering + SSR to Products by Attribute (https://github.com/woocommerce/woocommerce-blocks/pull/602)
* Add dynamic rendering + SSR to Products by Attribute

* Fix spacing lint issue
2019-05-28 13:11:25 +01:00
Kelly Dwan e0ff109781 Add dynamic rendering + SSR to the Top Rated Products block (https://github.com/woocommerce/woocommerce-blocks/pull/600) 2019-05-28 13:06:12 +01:00
Kelly Dwan 9cb681fcf2 Add dynamic rendering + SSR to Best Selling Products block (https://github.com/woocommerce/woocommerce-blocks/pull/599) 2019-05-28 13:00:49 +01:00
Kelly Dwan 751bbfcbb2 Add dynamic rendering + SSR to Hand-picked Products block (https://github.com/woocommerce/woocommerce-blocks/pull/595)
* Move the contentVisibility schema into a separate function

This attribute is common even amongst blocks that don’t use shareAttributes, so we should make it reusable

* Add dynamic rendering + SSR to Hand-picked Products block

* Add block deprecation

* Update the posts_per_page to include all selected products
2019-05-28 11:43:57 +01:00
Mike Jolley 1fb893e3f4 Add Woo icon and branding to block categories (https://github.com/woocommerce/woocommerce-blocks/pull/581)
* remove php insertion of block category

* Add an SVG icon for the woo logo

* Add block-category.js to import into blocks

This creates the category icon complete with a Woo SVG icon

* Import block-category to all blocks that use it

* Style woocommerce blocks in woo purple

* Lint error

* fillRule case

* Update propTypes

* Use foreground prop instead of css

* Convert Woo Logo to ICON type component

* Add shared blocks.js to house the category code

* Calculate width from height
2019-05-28 11:18:07 +01:00
Mike Jolley 2eb750881a Update dynamic block styles and markup for default themes (https://github.com/woocommerce/woocommerce-blocks/pull/576)
* Add missing escape

* Revise product structure and introduce woocommerce_blocks_product_grid_item_html filter

* Add missing block-button/price styles

* Add a themename body class to allow per-theme styling

* Add WC style dependencies so block styles are loaded last

* Styles with greater specificicity, for 2019

* Default theme styling

* SF styles

* Ensure dependencies exist

* Split sale badge HTML to allow it to be moved more easily

* Load stylesheet via WooCommerce filters to ensure they load later than core styles

* Make structure in the editor match the product lists on frontend so styles are inherited

* Remove quotes around single fontnames (linting rules)

* Ensure there is spacing between blocks

* Use parent theme name in body class

* Fix column alignment in editor by removing inline max width

* Put back block styles

* Started adding shared styles

* Update default styles/add missing shared styles

* lint errors

* fix indent

* No longer a need for shared since we're loading style.css in the editor too

* Update tests
2019-05-28 11:17:45 +01: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
Kelly Dwan 40c551dba4 Add dynamic rendering + SSR to Products By Category block (https://github.com/woocommerce/woocommerce-blocks/pull/596) 2019-05-23 12:23:15 +01: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
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
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