Commit Graph

750 Commits

Author SHA1 Message Date
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
Kelly Dwan 6526e398f0 Product Categories List: Add the links into the rendered block (https://github.com/woocommerce/woocommerce-blocks/pull/637)
* Add `isPreview` prop to be used when in editor preview

* Add product category link to the categories object

* Add the link to the `a` if we're not in the preview mode
2019-06-24 08:52:43 -04:00
Mike Jolley f7d846b547 Update composer package name/description
Updating directly so Packagist can see this new information before I create it.
2019-06-19 10:49:29 +01: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
Kelly Dwan 27345f93a2 Add/block product categories (https://github.com/woocommerce/woocommerce-blocks/pull/613)
* Add initial work for Product Categories List block

* Add empty category toggle

* Add option to show list as a dropdown

* Fix console warnings

* Only show proptypes linter warning if the component declares proptypes

* Add frontend script to render the product categories

* Split wcSettings & wc_product_block_data globals so that the later can be used from the frontend

* Remove wp dependencies, these are added by the webpack script now

* Capture all "woo packages" into a separate script chunk

These require `wcSettings`, which can't be available on the frontend - but we do need vendors on the frontend.

* Rewrite component into a function

* Fix validation error on editor reload
2019-06-17 10:23:59 -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
Kelly Dwan aca692d49a Add `menu_order` as a valid orderby value (https://github.com/woocommerce/woocommerce-blocks/pull/625) 2019-06-12 10:41:29 +01: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
Kelly Dwan 30f171f707 Update all dynamic blocks (https://github.com/woocommerce/woocommerce-blocks/pull/609)
* Use the `name` prop in place of writing out the string

* Pull out `orderby` schema into reusable function

* Correct version tag

* Extract some more schema property defs into shared functions

* Move the `print_script_settings` function so the schema-related functions follow the block registration

* Set all the schema functions to be `protected`

* Remove version tags from docs

* Fix default rows fallback value
2019-06-11 09:50:42 -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
Mike Jolley 3a73be7dbb Introduce transient caching to grid block queries (https://github.com/woocommerce/woocommerce-blocks/pull/605)
* Utlise WC Query to handle sorting rather than setting query args manually

* Implement transient caching
2019-06-11 09:10:32 -04:00
Kelly Dwan 75ec6a48c2 Remove the styles build target in webpack (https://github.com/woocommerce/woocommerce-blocks/pull/610)
The CSS can be imported into the “global” JS file now
2019-06-10 12:47:14 -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] 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
Mike Jolley 18d81328c1 Add text when no categories are selected 2019-05-24 12:38:26 +01:00
Mike Jolley a14ab46778 Merge branch 'master' into experiment/cancel-button 2019-05-24 12:06:07 +01:00
Mike Jolley bff9b8bf00 Overwrite changes when using sidebar 2019-05-24 12:01:24 +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
Mike Jolley 0d3bce262f Styling 2019-05-23 11:34:13 +01:00
Mike Jolley 7f1e8acb78 Fixed panel editing/feedback 2019-05-23 11:28:24 +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
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