Commit Graph

5740 Commits

Author SHA1 Message Date
Saad Tarhi ae9e2e5e64 Update testing steps 2023-09-12 14:50:27 +01:00
Saad Tarhi 1ce980b512 Remove a test for an experimental feature 2023-09-12 14:38:00 +01:00
Saad Tarhi 4f791acb5b Add testing notes 2023-09-11 16:44:13 +01:00
Saad Tarhi bf6e7d2428 Remove changelog of a closed PR 2023-09-11 16:15:49 +01:00
Saad Tarhi 5cc15e182f Comment: Indicate min WP version for WooCommerce Core, not Blocks.
Woo Core supports WP L1, and we support L0. We added this comment
because it can be confusing since the info can only be found on the
release instructions
2023-09-11 16:13:41 +01:00
Saad Tarhi f7dad7ae98 Update WP min version in PHPCS file
It should match the min WP version of WooCommerce Core
2023-09-11 15:14:46 +01:00
Saad Tarhi ac49526ad6 Execute "npm run change-versions" 2023-09-11 15:01:49 +01:00
Saad Tarhi 2b7cba5716 Add changelog to "readme.txt" 2023-09-11 14:54:13 +01:00
Daniel Dudzic 75bba1d55d Product Gallery: Lock the Sale Badge and the Next/Prev Buttons (https://github.com/woocommerce/woocommerce-blocks/pull/10869)
* Fix "On sale" badge class for shop
* Add class to sale badge
* Apply styleProps.styles to elements using them
* Product Gallery: Lock the Sale Badge and the Next/Prev Buttons
2023-09-11 11:37:27 +00:00
Tung Du 48650a8655 PHPCS: Update PHP and WP versions to match with current requirements (https://github.com/woocommerce/woocommerce-blocks/pull/10864) 2023-09-11 17:37:22 +07:00
Karol Manijak 7948c52b16 Change default number of columns in Related Products (https://github.com/woocommerce/woocommerce-blocks/pull/10875)
* Change default number of columns in Related Products

* Add default attributes to Product Template in Single Product template

* Revert adding attributes
2023-09-10 10:26:56 +02:00
dependabot[bot] 3be5d3d74d Bump @wordpress/e2e-test-utils from 10.1.0 to 10.12.0 (https://github.com/woocommerce/woocommerce-blocks/pull/10803)
Bumps [@wordpress/e2e-test-utils](https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils) from 10.1.0 to 10.12.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-test-utils/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/e2e-test-utils@10.12.0/packages/e2e-test-utils)

---
updated-dependencies:
- dependency-name: "@wordpress/e2e-test-utils"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>
2023-09-08 17:34:19 -03:00
Luigi Teschio 3c7b47b7d1 Product Gallery: fix warning (https://github.com/woocommerce/woocommerce-blocks/pull/10839)
* Product Gallery: fix warning

* address feedback

* fix logic

* rename function
2023-09-08 16:06:48 +02:00
Tung Du 0cfea936e4 Fix: load blocks style separately for classic themes (https://github.com/woocommerce/woocommerce-blocks/pull/10758)
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2023-09-08 11:15:48 +07:00
Karol Manijak e6bd74fd3c Fix JS Lint issues (https://github.com/woocommerce/woocommerce-blocks/pull/10866) 2023-09-07 12:01:15 +02:00
Karol Manijak 7f2e5368ad Add Product Collection Rows pattern (https://github.com/woocommerce/woocommerce-blocks/pull/10857) 2023-09-07 10:24:36 +02:00
Tom Cafferkey 145fdf5e9b Product Image: Fix bug that prevented block styles being applied within the editor. (https://github.com/woocommerce/woocommerce-blocks/pull/10859) 2023-09-07 09:08:31 +01:00
Karol Manijak a2490ddfda Add Simple Grid Product Collection pattern (https://github.com/woocommerce/woocommerce-blocks/pull/10835)
* Add Simple Grid Product Collection pattern

* Move the sale badge to the lewft
2023-09-07 09:01:29 +02:00
Luigi Teschio 43c56e5383 Product Gallery Block: Add zoom on hovering on the frontend (https://github.com/woocommerce/woocommerce-blocks/pull/10791)
* Product Gallery: add support for On Sale Badge Block

* add align support

* Add E2E tests

* set margin via Block Styles

* disable experimental flag

* add next previous block

* restore support file

* fix TS error

* fix layout

* change product

* change product

* Product Gallert Block: Add zoom on hover

* set to true by default

* remove block is already registered error

* remove unecessary await

* Improve zoom logic

Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>

* Product Gallery Block: Add E2E tests for zoom while hovering setting (https://github.com/woocommerce/woocommerce-blocks/pull/10795)

---------

Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>
2023-09-05 15:22:17 +02:00
Karol Manijak d9e17accf1 Fix the artifacts path for classic theme (https://github.com/woocommerce/woocommerce-blocks/pull/10837) 2023-09-05 15:03:56 +02:00
Alexandre Lara 2ebe7bd0c9 Product Gallery > Pager block: Fix block alignment (https://github.com/woocommerce/woocommerce-blocks/pull/10782)
* Fix block alignment with Large Image block

* Prevent error when layout is not present in the attributes object

* Add Large Image and Pager to its own group

* Fix issue when moving around the thumbnails block

* Fix e2e tests for Product Gallery block

* Change ancestor block for the Pager block
2023-09-05 09:52:19 -03:00
Luis Herranz 3a30f22dfa Product button: sync temporary number of items on instantiation (https://github.com/woocommerce/woocommerce-blocks/pull/10604)
* Add data-wc-key

* Add layout-init to sync temporary value

---------

Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
2023-09-05 14:37:38 +02:00
Patricia Hillebrandt 7458ac54b0 Product Hero Pattern > Adjust the content width (https://github.com/woocommerce/woocommerce-blocks/pull/10832)
* Minor width adjustment for the Product Hero pattern.

* close div on a new line
2023-09-05 10:20:57 +00:00
Sam Seay fceff58059 Retry link retrieval on 429, fix the version of markdown-link-check (https://github.com/woocommerce/woocommerce-blocks/pull/10786) 2023-09-05 11:19:12 +07:00
Sam Seay abd41cae11 Fixes for jest transpilation issues. (https://github.com/woocommerce/woocommerce-blocks/pull/10788)
* Fix bug where is-plain-obj is not transpiled by Jest, update lock.
* Update packages.
* Mock useSelect for a handful of RichText selectors in test.
* Resolve react to single version to avoid invalid hook errors.
* Patch trim-html locally to avoid a bug in the released npm source.
* Mock out resizeObserver to avoid https://github.com/FezVrasta/react-resize-aware/issues/58
* Don't transpile config package: https://github.com/node-config/node-config/issues/628
2023-09-05 04:03:35 +00:00
dependabot[bot] 064b4c21ce Bump @wordpress/deprecated from 3.16.0 to 3.41.0 (https://github.com/woocommerce/woocommerce-blocks/pull/10830)
Bumps [@wordpress/deprecated](https://github.com/WordPress/gutenberg/tree/HEAD/packages/deprecated) from 3.16.0 to 3.41.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/deprecated/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/deprecated@3.41.0/packages/deprecated)

---
updated-dependencies:
- dependency-name: "@wordpress/deprecated"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>
2023-09-04 16:53:04 -03:00
dependabot[bot] f72fe33e6d Bump mockery/mockery from 1.6.5 to 1.6.6 (https://github.com/woocommerce/woocommerce-blocks/pull/10591)
Bumps [mockery/mockery](https://github.com/mockery/mockery) from 1.6.5 to 1.6.6.
- [Release notes](https://github.com/mockery/mockery/releases)
- [Changelog](https://github.com/mockery/mockery/blob/1.6.x/CHANGELOG.md)
- [Commits](https://github.com/mockery/mockery/compare/1.6.5...1.6.6)

---
updated-dependencies:
- dependency-name: mockery/mockery
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>
2023-09-04 15:23:36 -03:00
Tom Cafferkey 664f2e88bc Update release checklist for WC Core version bump. (https://github.com/woocommerce/woocommerce-blocks/pull/10829) 2023-09-04 14:38:34 +01:00
Thomas Roberts 4ad6cdb18d Ensure WooCommerce Core scripts are dequeued correctly (https://github.com/woocommerce/woocommerce-blocks/pull/10624) 2023-09-04 02:48:06 -07:00
Patricia Hillebrandt d751c3a469 Bump dev version to 11.1.0-dev 2023-09-04 11:17:06 +02:00
Lucio Giannotta 578ba4725e Fix customer account icon not scaling in certain environments (https://github.com/woocommerce/woocommerce-blocks/pull/10533)
Customer Account block icon size is based on the parent `font-size`
in order to make sure they stay harmoniously together.
However, the `box-sizing` could be set by some other actor
and mess with the size of the icon.
2023-09-02 16:07:01 +02:00
Alexandre Lara bda42f936c Product Gallery > Prevent error when "layout" is missing in block attributes (https://github.com/woocommerce/woocommerce-blocks/pull/10784) 2023-09-01 19:41:41 -03:00
Luigi Teschio 3e581e0372 bump @wordpress/env to 8.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/10808) 2023-09-01 17:54:35 +02:00
Tung Du 27e2d818cd Fix: use correct bump strategy for Assign Milestone workflow (https://github.com/woocommerce/woocommerce-blocks/pull/10805) 2023-09-01 17:31:34 +07:00
Karol Manijak ac7e115c3e Update @wordpress/env to 8.1.1 and re-enable PHP Unit Tests for PHP v 8.1 and 8.2 (https://github.com/woocommerce/woocommerce-blocks/pull/9875)
Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
Co-authored-by: Alba Rincón <albarin@users.noreply.github.com>
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
2023-09-01 16:07:55 +07:00
Daniel W. Robert 70aa569254 Update lockfile for fresh installation. (https://github.com/woocommerce/woocommerce-blocks/pull/10785) 2023-08-31 17:56:08 -04:00
Daniel W. Robert 59f468f5ba Adjust `Follow us on social media` pattern icon alignment (https://github.com/woocommerce/woocommerce-blocks/pull/10709)
* Adjust column width and icon alignment.

Set new col width to `75%` / `25%` and set the icon flex-alignment
to `space-between`.

While this is not ideal, without any fine-grained control over
breakpoints, this seems to be marginally better than having the icons
remain right-aligned on mobile.

* Correct grammar for pattern title and heading.

Should be "on" not "in".
2023-08-31 16:55:38 -04:00
Luigi Teschio 22b9f6a952 Product Gallery Block: add support for the on Sale Badge block (https://github.com/woocommerce/woocommerce-blocks/pull/10764)
* Product Gallery: add support for On Sale Badge Block

* add align support

* Add E2E tests

* set margin via Block Styles

* disable experimental flag

* add next previous block

* restore support file

* fix TS error

* fix layout

* change product
2023-08-31 18:15:31 +02:00
Alexandre Lara e9ff849e08 Add woocommerce namespace to Product Gallery block (https://github.com/woocommerce/woocommerce-blocks/pull/10769) 2023-08-31 12:13:40 -03:00
Patricia Hillebrandt 0488824275 Update the testing instructions for woocommerce/woocommerce-blocks#10619 2023-08-30 17:27:51 +02:00
Patricia Hillebrandt e491c07e1b Update the changelog, testing steps and required versions after 11.0.0 release 2023-08-30 13:00:35 +02:00
Alex Florisca d632ffdfae Fix bug with wpautop for the empty cart (https://github.com/woocommerce/woocommerce-blocks/pull/10768) 2023-08-30 10:41:34 +01:00
Sam Seay 44f48e41e9 Refactor errors util to TypeScript, minor typing fixes (https://github.com/woocommerce/woocommerce-blocks/pull/10754) 2023-08-30 18:56:28 +12:00
Luigi Teschio 2d89f4892d add side_effects suffix to the Product Gallery Large Image Next Previous Block (https://github.com/woocommerce/woocommerce-blocks/pull/10766) 2023-08-29 16:19:20 +02:00
Patricia Hillebrandt 37b8a84f85 Add team members to the WordPress.org Contributors & Developers list for WooCommerce Blocks (https://github.com/woocommerce/woocommerce-blocks/pull/10746)
* Add the team to the list of contributors on .org's plugin directory.

* Add a few more teammates.
2023-08-29 12:43:19 +00:00
Paulo Arromba 4ab7828367 Fix/Template endpoint update for subpages (https://github.com/woocommerce/woocommerce-blocks/pull/10745)
* Updates endpoint logic for cart and checkout templates to match Wordpress URL guessing

* Revert wrongly committed file

* Revert wrongly committed file

* typo

* updated @since property
2023-08-29 11:05:14 +01:00
Alba Rincón 035d8249ab [Store Customization MVP] Verticals API client (https://github.com/woocommerce/woocommerce-blocks/pull/10687)
* Add the Verticals API client

* Add tests

* Refactor error handling
2023-08-29 10:13:25 +02:00
Lucio Giannotta 5c4a757b6e Convert `product-control` to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/10552)
The main aim of this PR was to convert the product-control component to TypeScript. However, since the component is coupled with many other parts (it is itself wrapped into 4 HOCs), many refactoring changes were needed to make the types work.

In particular:

* Add `convertProductResponseItemToSearchItem` utility function

The function allows to clean up the `ProductResponseItem` in order
to make its shape compatible with the `SearchListItem`, instead of
passing the entire object.

Because data from the object might need to be used in certain
circumstance (e.g. render functions), the data is now allowed to be
scoped within a `details` key.

This commit also converts `utils/products` to TypeScript.

* Fix `ProductResponseItem` type missing `slug`

The `slug` is returned by the API but didn't appear in the type def.

* Improve certain HOCs types

The `withSearchedProducts` and `withTransformSingleSelectToMultipleSelect`
HOCs are now typed in such a way that it is clear what incoming props
they expect and what they inject.

* Refactor `ProductAttrributeTermControl` for further type safety

Make sure that `count` is always a `number` as required by the
component types.

* Refactor `search-list-control.tsx` and `item.tsx`

The new `SearchItem` allows for the `details` key to be passed.
All the components are now aware of it.
2023-08-29 08:01:31 +02:00
Lucio Giannotta a898a5b5ee Fix inconsistent padding in Customer Account block (https://github.com/woocommerce/woocommerce-blocks/pull/10476) 2023-08-29 07:32:48 +02:00
Tung Du a92b8a432f E2E: ensure the shop page is created by creating it manually (https://github.com/woocommerce/woocommerce-blocks/pull/10744) 2023-08-29 08:00:29 +07:00