Commit Graph

5972 Commits

Author SHA1 Message Date
Thomas Roberts fc104dad31 Move `Spinner` to components package (https://github.com/woocommerce/woocommerce-blocks/pull/11317) 2023-10-20 04:26:09 -07:00
Seghir Nadir 114f0b4059 Copy shipping phone to billing phone if sync is checked (https://github.com/woocommerce/woocommerce-blocks/pull/10603) 2023-10-20 17:41:57 +07:00
Tarun Vijwani b5ccc358a6 Add decoding to site title to allow quotes (https://github.com/woocommerce/woocommerce-blocks/pull/11334) 2023-10-20 03:13:55 -07:00
Luigi Teschio face8d2b57 Product Gallery: Add animation when large image changes (https://github.com/woocommerce/woocommerce-blocks/pull/11113)
* Add slide animation

* Remove placeholder and pagination (https://github.com/woocommerce/woocommerce-blocks/pull/11145)

* Add titles to patterns and set the aligment to Wide

* Replace product query patterns with product collection ones

* Remove pagination and no results query from product query patterns

* Add aspect ratio to the product image attributes

* Add portrait aspect ratio to product X column and product gallery patterns

* improve animation

* improve naming

* fix regression

* fix css

* improve code style

* remove check on tag image

* align image

* fix crash when zoom is disabled

* fix E2E tests

* improve CSS

---------

Co-authored-by: Alba Rincón <albarin@users.noreply.github.com>
2023-10-20 09:42:39 +02:00
Mike Jolley 9ba4f34d31 Cart and Checkout block transforms for classic shortcodes (https://github.com/woocommerce/woocommerce-blocks/pull/11228)
* Add transforms for checkout block

* Block to shortcode switcher in notice

* cart transforms

* Fix target block for switching

* Remove switcher UI for classic cart/checkout

* Set isPreview when generating block preview in switcher

* Onboarding task

* Action on click

* Focus on block after replacement

* Update notice styling and wording

* Undo functionality

* Look for woocommerce/classic-shortcode when determining if task list item should display

* Enable focus on the cart/checkout block when visiting from the task list

* Classic Cart/Checkout Updated Title

* Add missing translations

* Refactor modal content to avoid sprintf

* Improve pickBlockClientId

* Tracks events for switching to classic shortcode block

* TaskList support for non-block themes

* Updated placeholder to work on non-white page backgrounds

* Find blocks using findBlock utility

* Add TabbableContainer for buttons

* Add align to wrapper

* Update modal content

* Update modal usage

* Removed undo link when converting from classic shortcode

* Check if block was selected

* Revert "Removed undo link when converting from classic shortcode"

This reverts commit 2babbab4c1e69861a0371ff745e85d80ff6bbab1.

* update snackbar text
2023-10-19 16:43:43 +01:00
Alba Rincón da8bd0d713 Change the structure to allow aligning left the icons on mobile (https://github.com/woocommerce/woocommerce-blocks/pull/11355) 2023-10-19 16:35:51 +02:00
Alba Rincón 55faf5222f Decrease spacing between menu items (https://github.com/woocommerce/woocommerce-blocks/pull/11356) 2023-10-19 16:35:28 +02:00
Alba Rincón 499a7f2145 Re-enable the `Product Hero 2 Column 2 Row` pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11346) 2023-10-19 13:59:11 +02:00
Alba Rincón 70c3f56cd0 Fix white space on the right of the pattern by using groups instead of columns (https://github.com/woocommerce/woocommerce-blocks/pull/11315) 2023-10-19 13:44:59 +02:00
Alba Rincón 6c51ec61ac Adjust margins and paddings for the Featured Category Triple (https://github.com/woocommerce/woocommerce-blocks/pull/11319) 2023-10-19 08:40:01 +02:00
Thomas Roberts 38759c4e84 Move `FormattedMonetaryAmount` to the components package (https://github.com/woocommerce/woocommerce-blocks/pull/11230) 2023-10-18 07:43:34 -07:00
Thomas Roberts c9ae690a0b Move `Chip` and `RemovableChip` to components package (https://github.com/woocommerce/woocommerce-blocks/pull/11223) 2023-10-18 05:08:18 -07:00
Karol Manijak d548852380 Simplify Product Collection query attributes by removing attributes which are never used (https://github.com/woocommerce/woocommerce-blocks/pull/11259)
* Simply Product Collection query attribute by removing sticky and parents which are never used

* Remove parents attribute from migration logic
2023-10-18 12:47:55 +02:00
Karol Manijak 9a1e26057c Remove hardcoded queryIds from patterns that include Product Collection (https://github.com/woocommerce/woocommerce-blocks/pull/11290) 2023-10-18 09:43:20 +02:00
Tung Du a441329dc8 Fix: Mini-Cart block shows wrong total if theres multiple installs on the same domain (https://github.com/woocommerce/woocommerce-blocks/pull/11257) 2023-10-18 07:21:15 +00:00
roykho 3c7b291ea5 Add changelog and testing for 11.3.1 release 2023-10-17 07:40:21 -07:00
Paulo Arromba 9e9ebc5039 Use the <header> element for the checkout header (https://github.com/woocommerce/woocommerce-blocks/pull/11222)
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2023-10-17 14:02:10 +01:00
Alba Rincón 795242af1a [Store Customization] Fix the "Testimonials 3 Columns" title alignment (https://github.com/woocommerce/woocommerce-blocks/pull/11281) 2023-10-17 13:50:19 +01:00
Paulo Arromba 08802e6bd3 Use the <main> tag in Cart and Checkout templates (https://github.com/woocommerce/woocommerce-blocks/pull/11224) 2023-10-17 13:10:33 +01:00
Mike Jolley f5d5514dfe Add examples and background to formatters doc (https://github.com/woocommerce/woocommerce-blocks/pull/11242) 2023-10-17 12:49:59 +01:00
Thomas Roberts 766fa1311d Move `CheckboxList` and create new `blocksComponents` package (https://github.com/woocommerce/woocommerce-blocks/pull/11214) 2023-10-17 02:47:34 -07:00
Alba Rincón 7563bea081 [Store Customization] Fix pattern spacing in homepage template 3 (https://github.com/woocommerce/woocommerce-blocks/pull/11279)
* Fix pattern spacing

Removes the top/bottom paddings, adds margins to the bottom of each pattern

* Add margin between patterns to ensure consistency between themes

* Add margin to the bottom of patterns
2023-10-17 11:09:20 +02:00
Alba Rincón 2b4754ff2e [Store Customization] Fix pattern spacing in homepage template 2 (https://github.com/woocommerce/woocommerce-blocks/pull/11278)
* Fix pattern spacing

Removes the top/bottom paddings, adds margins to the bottom of each pattern

* Add margin between patterns to ensure consistency between themes
2023-10-17 11:09:11 +02:00
Alba Rincón a918602c71 Fix pattern spacing (https://github.com/woocommerce/woocommerce-blocks/pull/11268)
Removes the top/bottom paddings, adds margins to the bottom of each pattern
2023-10-17 10:56:02 +02:00
Tom Cafferkey 01c8d45efd Store Customization > Remove placeholder text from the image on the Hero Product Chessboard pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11250) 2023-10-17 08:55:27 +01:00
Luigi Teschio dfbef14b28 Archive Templates - Compatibility Layer: fix E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/11273)
* Archive Templates - Compatibility Layer: fix E2E tests

* remove unecessary step
2023-10-17 09:46:25 +02:00
Tung Du 9297d5ee9e Add: `menu-order` orderby option for Product Attribute Terms route (https://github.com/woocommerce/woocommerce-blocks/pull/11232)
Co-authored-by: Mike Jolley <mike.jolley@me.com>
2023-10-17 04:54:50 +00:00
Karol Manijak 276556a47c Revert woocommerce/woocommerce-blocks#10032 so All Products renders in the frontend (https://github.com/woocommerce/woocommerce-blocks/pull/11263) 2023-10-16 17:16:07 +02:00
Brian ce6c7e460a LocalPickup: fix learn more documentation link (https://github.com/woocommerce/woocommerce-blocks/pull/11241) 2023-10-16 06:26:23 -07:00
Mike Jolley 6f8d87c0af Examples and use cases for ExtendSchema (https://github.com/woocommerce/woocommerce-blocks/pull/11245)
* Examples and use cases

* Address feedback

* Revert addition to main file
2023-10-16 13:32:26 +01:00
Alba Rincón 606308de6f Remove empty pattern file (https://github.com/woocommerce/woocommerce-blocks/pull/11256) 2023-10-16 10:31:35 +02:00
Roy Ho 8bb98fd9d9 product gallery block: add preview (https://github.com/woocommerce/woocommerce-blocks/pull/11247) 2023-10-13 11:19:14 -07:00
Alba Rincón 0691226cd3 Temporarily disable the woocommerce-blocks/product-hero-2-col-2-row pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11234) 2023-10-13 14:05:10 +02:00
Mike Jolley 6571f3356e Update examples (https://github.com/woocommerce/woocommerce-blocks/pull/11211) 2023-10-13 12:14:18 +01:00
Mike Jolley c8b8b7232d Checkout Field Padding and Spacing (https://github.com/woocommerce/woocommerce-blocks/pull/11207)
* Spacing values

* Unused opacity rule
2023-10-13 12:13:50 +01:00
Alba Rincón 494a50cb55 [Store Customization MVP] Add fallbacks to all the pattern titles, descriptions and buttons (https://github.com/woocommerce/woocommerce-blocks/pull/11208)
* Add fallbacks to all the pattern titles, descriptions and buttons

* Remove pagination in pattern
2023-10-13 10:08:35 +02:00
Alba Rincón 62ab092822 [Store Customization MVP] Add image alts to the ai prompt if available (https://github.com/woocommerce/woocommerce-blocks/pull/11101)
* Add image alts to the ai prompt if available

* Update images index and remove randomness

* Update pattern with missing content

* Add image alts to the pattern array

* Improve prompt

* Fix typo

* Use the correct business_description in both the scheduled action and the endpoint
2023-10-13 09:32:35 +02:00
Luigi Teschio 5f07baee8b fix check blocks.ini (https://github.com/woocommerce/woocommerce-blocks/pull/11227) 2023-10-12 15:02:39 +02:00
Paulo Arromba 0223b0d156 Updated composer.lock (https://github.com/woocommerce/woocommerce-blocks/pull/11213) 2023-10-12 02:37:14 -07:00
Alba Rincón c6de93a5d9 Make patterns full width and fix margin (https://github.com/woocommerce/woocommerce-blocks/pull/11206)
* Make patterns full width and fix margin

* Fix horizontal spacing
2023-10-12 09:06:33 +02:00
Tung Du cd16c0f401 Price Filter powered by Interactivity API (https://github.com/woocommerce/woocommerce-blocks/pull/10730)
Co-authored-by: David Arenas <david.arenas@automattic.com>
Co-authored-by: Luis Herranz <luisherranz@gmail.com>
2023-10-12 04:30:27 +00:00
Niels Lange 113342fc89 Fix inconsistent border focus styles (https://github.com/woocommerce/woocommerce-blocks/pull/11203) 2023-10-12 09:31:55 +07:00
roykho 847d94b040 Fix linting errors in testing instructions for 1130 2023-10-11 09:12:57 -07:00
Mike Jolley 0c2f042886 Add universal border radius for form elements and components (https://github.com/woocommerce/woocommerce-blocks/pull/11193)
* Add universal border radius

* Apply radius to checkbox and dropdown
2023-10-11 17:04:45 +01:00
roykho 055e1a11ef Update to next dev version 2023-10-11 08:40:37 -07:00
roykho 7e426acff3 Update changelogs and testing instructions for 11.3.0 2023-10-11 08:38:55 -07:00
Mike Jolley 2044798af6 Remove Shipping calculator settings and link to the WooCommerce admin settings (https://github.com/woocommerce/woocommerce-blocks/pull/11184)
* Remove block level options in favour of settings

* Remove calculator toggle test

* Update assets/js/blocks/cart/inner-blocks/cart-order-summary-shipping/block.tsx

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Remove unused attributes

---------

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2023-10-11 15:09:43 +01:00
Tom Cafferkey cffea366a5 Product Collection 5 Columns pattern - Update title and price to be rows instead of columns (https://github.com/woocommerce/woocommerce-blocks/pull/11205) 2023-10-11 12:20:16 +01:00
Tom Cafferkey a45e3699a2 Product Collection: Featured Products 5 Columns - Remove no results block. (https://github.com/woocommerce/woocommerce-blocks/pull/11198) 2023-10-11 08:11:57 +01:00
Hsing-yu Flowers 748ecb0963 Add order and checkout order endpoint documentation (https://github.com/woocommerce/woocommerce-blocks/pull/11157)
* Add order and checkout order endpoint documentation

* Update order and checkout order endpoint documentation

* Update cart endpoint doc
2023-10-11 06:37:42 +00:00
Manish Menaria e88fa94026 Product Collection - Fix undefined layout attribute issue in migration (https://github.com/woocommerce/woocommerce-blocks/pull/11196)
This commit addresses an issue where layout attributes could become undefined during the block migration process. Alongside this fix, several updates were made to align the migration logic with the new `ProductCollectionDisplayLayout` types:

- Added logic to handle `undefined` layout attributes, defaulting to `DEFAULT_ATTRIBUTES.displayLayout`.
- Removed `ProductGridLayout` and `ProductGridLayoutTypes` from the types file.
- Imported `LayoutOptions` and `ProductCollectionDisplayLayout` from the product-collection module.
- Updated the `mapLayoutType` and `mapLayoutPropertiesFrom...` functions to use the new layout types.
- Updated transformation functions like `transformProductTemplate` and `transformPostSummary` to use the new types.

These changes not only resolve the issue with undefined layout attributes but also align the codebase with the new layout options, enhancing code maintainability.
2023-10-11 11:00:26 +05:30
Mike Jolley 75bac91787 Ensure validation of fields occurs when collapsing fields (https://github.com/woocommerce/woocommerce-blocks/pull/11199)
* Ensure validation of fields occurs when collapsing fields

* update click for edit button

* turn off pointer events when hidden

* Add visibility rule
2023-10-10 22:07:58 +01:00
Tom Cafferkey 41724e9400 Product Gallery pattern: Use the Product Collection block (https://github.com/woocommerce/woocommerce-blocks/pull/11194) 2023-10-10 17:17:17 +01:00
Luigi Teschio 645bd8d339 Add feature gate for the block templates controller refactor (https://github.com/woocommerce/woocommerce-blocks/pull/11178)
* add feature gating for the block templates controller refactor

* improve check
2023-10-10 16:50:18 +02:00
Alexandre Lara a6ddae9dc3 Product Gallery block: Move inner block settings around to match the order from the design (https://github.com/woocommerce/woocommerce-blocks/pull/11170)
* Rearrange block settings to correct position

* Remove unnecessary comments

* Remove unused imports

* Fix e2e tests
2023-10-10 14:04:54 +02:00
Mike Jolley 27ae9acafc Remove all instances of GUTENBERG_EDITOR_CONTEXT (https://github.com/woocommerce/woocommerce-blocks/pull/11126) 2023-10-10 10:57:26 +00:00
Thomas Roberts 14b5414c36 Update wording on checkout error message to try to prevent retries (https://github.com/woocommerce/woocommerce-blocks/pull/10888) 2023-10-10 01:16:24 -07:00
Alexandre Lara e603d039ad Make block to respect the Redirect to Cart setting (https://github.com/woocommerce/woocommerce-blocks/pull/11151) 2023-10-09 19:06:48 +02:00
Niels Lange cd1f199f1b Increase number of visible products when cart is empty (https://github.com/woocommerce/woocommerce-blocks/pull/11182) 2023-10-09 22:04:19 +07:00
Paulo Arromba c14a911937 Updated cart json response example (https://github.com/woocommerce/woocommerce-blocks/pull/11135)
* Updated cart json response example

* Updated cart json response example host

* Updated cart json response example protocol
2023-10-09 07:40:04 -07:00
Dmytro 81773ad31e Add data-price button attribute containing product price (https://github.com/woocommerce/woocommerce-blocks/pull/11117)
* Add data-price button attribute containing product price

* Fix phpcs error.

---------

Co-authored-by: Dima <9010963+message-dimke@users.noreply.github.com>
2023-10-09 07:33:48 -07:00
dependabot[bot] fa7d66e248 Bump automattic/jetpack-autoloader from 2.11.22 to 2.12.0 (https://github.com/woocommerce/woocommerce-blocks/pull/11066)
Bumps [automattic/jetpack-autoloader](https://github.com/Automattic/jetpack-autoloader) from 2.11.22 to 2.12.0.
- [Release notes](https://github.com/Automattic/jetpack-autoloader/releases)
- [Changelog](https://github.com/Automattic/jetpack-autoloader/blob/trunk/CHANGELOG.md)
- [Commits](https://github.com/Automattic/jetpack-autoloader/compare/v2.11.22...v2.12.0)

---
updated-dependencies:
- dependency-name: automattic/jetpack-autoloader
  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>
2023-10-09 06:19:05 -07:00
Mike Jolley 3857dc6e04 WIP: Condensed Address Form Implementation (https://github.com/woocommerce/woocommerce-blocks/pull/11167)
* Add address card component

* Condensed shipping address

* Billing address

* Animations

* Fix editing state

* Toggle sections open in tests
2023-10-09 12:49:09 +01:00
Luigi Teschio 924ed3f30b Product Gallery: fix CSS leak (https://github.com/woocommerce/woocommerce-blocks/pull/11111)
* fix CSS leak

* fix css

* fix comment
2023-10-09 10:15:54 +00:00
Mike Jolley 2f9181a514 Icon should use current color (https://github.com/woocommerce/woocommerce-blocks/pull/11127) 2023-10-09 10:36:17 +01:00
Tung Du 758fdb3b46 Making filter block contextual on the front end (https://github.com/woocommerce/woocommerce-blocks/pull/10919) 2023-10-09 08:22:17 +00:00
Tung Du 1f049de16b Fix: Store Notices block breaks page editors (https://github.com/woocommerce/woocommerce-blocks/pull/11165) 2023-10-09 07:15:57 +00:00
Patricia Hillebrandt df2a3d72d2 Store Customization > Update aspect ratio, icons and default text for the Social: Follow us on social media pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11161)
* Add titles to patterns and set the aligment to Wide

* Replace product query patterns with product collection ones

* Add group and spacing to the 3-cols and social patterns

* Fix alignment issue in the testimonals 3 in the editor

* Add padding to the featured catergory triple pattern

* Remove pagination and no results query from product query patterns

* Add aspect ratio to the product image attributes

* Add portrait aspect ratio to product X column and product gallery patterns

* Fix PHP warning and remove the padding for the Testimonials 3 Columns pattern.

* Ensure the Just Arrived Full Hero pattern can have an AI managed image assigned to it and update the content assignment.

* Add background dim

* Update dim to 30

* Add aspect ratio to the Social: Follow us on social media

* Update the icons color to primary

* Update the default title for the Follow us on social media pattern within the dictionary.

* Update text for the main header.

---------

Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
2023-10-06 11:45:26 +00:00
Patricia Hillebrandt 75c48ffb47 Store Customization > Ensure the Just Arrived Full Hero pattern can have an AI selected image assigned to it (https://github.com/woocommerce/woocommerce-blocks/pull/11159)
* Add titles to patterns and set the aligment to Wide

* Replace product query patterns with product collection ones

* Add group and spacing to the 3-cols and social patterns

* Fix alignment issue in the testimonals 3 in the editor

* Add padding to the featured catergory triple pattern

* Remove pagination and no results query from product query patterns

* Add aspect ratio to the product image attributes

* Add portrait aspect ratio to product X column and product gallery patterns

* Fix PHP warning and remove the padding for the Testimonials 3 Columns pattern.

* Ensure the Just Arrived Full Hero pattern can have an AI managed image assigned to it and update the content assignment.

* Add background dim

* Update dim to 30

* Update text for the main header.

---------

Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
2023-10-06 11:17:31 +00:00
Patricia Hillebrandt 15d24a227f Store Customization > Fix the Testimonials 3 Columns pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11158)
* Add titles to patterns and set the aligment to Wide

* Replace product query patterns with product collection ones

* Add group and spacing to the 3-cols and social patterns

* Fix alignment issue in the testimonals 3 in the editor

* Add padding to the featured catergory triple pattern

* Remove pagination and no results query from product query patterns

* Add aspect ratio to the product image attributes

* Add portrait aspect ratio to product X column and product gallery patterns

* Fix PHP warning and remove the padding for the Testimonials 3 Columns pattern.

* Update text for the main header.

---------

Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
2023-10-06 10:42:51 +00:00
Mike Jolley 4987a921b1 Force 100% width for combobox (https://github.com/woocommerce/woocommerce-blocks/pull/11133) 2023-10-06 11:03:48 +01:00
Alba Rincón 209fe0b6d8 Add horizontal padding to the Featured Category Triple pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11160) 2023-10-06 11:45:43 +02:00
Alba Rincón 37623be4f2 Remove placeholder and pagination (https://github.com/woocommerce/woocommerce-blocks/pull/11145)
* Add titles to patterns and set the aligment to Wide

* Replace product query patterns with product collection ones

* Remove pagination and no results query from product query patterns

* Add aspect ratio to the product image attributes

* Add portrait aspect ratio to product X column and product gallery patterns
2023-10-06 10:51:35 +02:00
Alexandre Lara b4f07b7c5f Product Gallery > Next/Previous Buttons block: Add support to Interactivity API (https://github.com/woocommerce/woocommerce-blocks/pull/10938)
* Add interactivity API to the Pager block

* Replace Large Image when clicking on page

* Fix php cs errors

* Fix php cs errors

* Fix php cs errors

* fix php cs errors

* Add support to Interactivity API

* Fix phpcs errors

* Fix phpcs errors

* Remove unnecessary code and fix block classes

* Rename interactivity actions

* Remove unnecessary type conversion

* Fix error when clicking on page in Pager block

* Fix php cs errors

* Fix ProductGalleryUtils import

* fix php cs error

* Fix styles for next/previous buttons

* Fix styles for the next/previous buttons

* Fix php cs errors

* Fix next/previous icons when buttons are outside image

* Fix php cs errors

* Fix php cs errors

* Fix buttons not visible in Editor

* Delete src/SpeciticTemplateController.php

Delete unnecessary file that is causing php cs error
2023-10-05 18:55:52 +02:00
Alba Rincón 01d8a78e4f Store Customization > Homepage Template 1: Review layout and spacing in between patterns (https://github.com/woocommerce/woocommerce-blocks/pull/11144)
* Add titles to patterns and set the aligment to Wide

* Replace product query patterns with product collection ones

* Add group and spacing to the 3-cols and social patterns

* Fix alignment issue in the testimonals 3 in the editor

* Add padding to the featured catergory triple pattern
2023-10-05 17:44:14 +02:00
Mike Jolley 3fed0831f8 Check endpoint was preloaded before returning it. (https://github.com/woocommerce/woocommerce-blocks/pull/11128) 2023-10-05 15:43:29 +00:00
Luigi Teschio 74c6287485 return (https://github.com/woocommerce/woocommerce-blocks/pull/11143) 2023-10-05 14:14:54 +00:00
Alba Rincón 592db8df43 Store Customization > Homepage Template 3: Review layout and spacing in between patterns (https://github.com/woocommerce/woocommerce-blocks/pull/11131)
* Add padding and headers to patterns

* Fix centering when GB enabled
2023-10-05 13:49:26 +02:00
Alba Rincón 4716d7483e Store Customization > Homepage Template 2: Review layout and spacing in between patterns (https://github.com/woocommerce/woocommerce-blocks/pull/11129)
* Add titles to patterns and set the aligment to Wide

* Add paddings

* Replace product query patterns with product collection ones

* Fix pattern title
2023-10-05 13:14:53 +02:00
Mike Jolley eb383203f0 validateInput when the value in the store changes (https://github.com/woocommerce/woocommerce-blocks/pull/11108) 2023-10-05 10:27:10 +01:00
Patricia Hillebrandt 04e298050c Store Customization > Replace patterns based on the Products (Beta) block with an equivalent based on the Product Collection block (https://github.com/woocommerce/woocommerce-blocks/pull/11134)
* Introduce the new Product Collection 4 Columns pattern as a replacement for 1:1 Image 4-Column Product Row

* Introduce the new Product Collection 5 Columns pattern as a replacement for Minimal 5-Column Product Row

* Update the slug for the Product Collection 5 Columns pattern

* Introduce the new Product Collection 3 Columns pattern as a replacement for 3-Column Product Row

* Ditch the block types from the docblock

* Introduce the new Product Collection: Featured Products 5 Columns pattern as a replacement for Featured Products 5-Item Grid

* Update the patterns dictionary.

* remove block types from the Product Collection: Featured Products 5 Columns pattern

* Remove outdated patterns.

* Remove unnecessary queryId
2023-10-05 08:36:18 +00:00
Tom Cafferkey 661b7031dd Store Customization > Add default image to Just Arrived pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11130) 2023-10-05 09:05:59 +01:00
Luigi Teschio ad80598ab8 Pattern: fetch product id on the JS side (https://github.com/woocommerce/woocommerce-blocks/pull/11138)
* Pattern: fetch product id on the frontend side

* fix TS type
2023-10-05 07:30:50 +00:00
Alexandre Lara dec4e4fc75 Product Gallery > Pager block: Add E2E tests for the block (https://github.com/woocommerce/woocommerce-blocks/pull/11001)
* Add e2e tests for Pager block

* Fix e2e tests for Product Gallery Pager

* Fix e2e tests
2023-10-04 19:11:34 +02:00
Alba Rincón 22fd4512d8 Remove object cast (https://github.com/woocommerce/woocommerce-blocks/pull/11082) 2023-10-04 14:55:25 +02:00
Patricia Hillebrandt 4d82186495 Store Customization > Wireframe and adjust width for the Just Arrived Full Hero pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11115)
* Update the width; Add the button text to the patterns dictionary; adjust the width to wide.

* Remove unnecessary space before the title.
2023-10-04 12:47:19 +00:00
Patricia Hillebrandt 8f421d551e Store Customization > Add the Featured Category Cover Image pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11109)
* Reintroduce the Featured Category Cover Image pattern.

* Update styles for the pattern to match the new ones.

* Update the patterns dictionary to include the Featured Category Cover Image.

* Remove bold from h3 tag

* remove the fonts customization for the button

* Drop the medium fontsize for the paragraph.
2023-10-04 11:17:28 +00:00
Tom Cafferkey 9805a665ab Remove opinionated styles from the Hero Product 3 Split pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11110) 2023-10-04 12:03:52 +01:00
Luigi Teschio 9dd8dd321f Product Button: use setTimeout when requestIdleCallback isn't available (https://github.com/woocommerce/woocommerce-blocks/pull/11125) 2023-10-04 10:58:23 +02:00
Luigi Teschio c47babe628 Product Gallery: fix 'Block woocommerce/product-gallery-large-image is already registered' error (https://github.com/woocommerce/woocommerce-blocks/pull/11124) 2023-10-04 10:57:45 +02:00
Raluca Stan b9f4044361 Update payment-method-integration.md 2023-10-03 11:58:07 +02:00
dependabot[bot] 7a761f5633 Bump @babel/cli from 7.22.9 to 7.23.0 (https://github.com/woocommerce/woocommerce-blocks/pull/11093)
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.22.9 to 7.23.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.0/packages/babel-cli)

---
updated-dependencies:
- dependency-name: "@babel/cli"
  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>
2023-10-02 16:48:24 +00:00
Luigi Teschio 29fe7cdce0 Product Gallery: Polish Gallery in full view mode (https://github.com/woocommerce/woocommerce-blocks/pull/10947)
* 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 Full view mode: Add the logic to render the dedicated template

* use template-part instead template

* add E2E tests

* update selectors

* add feature flag product gallery template part

* fix E2E tests

* remove not necessary file

* polish the dialog

* fix: dialog show always the selected product

* fix: not open the dialog when the user click on icon

* rename handleClick to handleCloseButtonClick

* improve style

* fix overlay css

* fix registration

* improve logic

* improve default template

---------

Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>
2023-10-02 14:36:48 +02:00
Niels Lange 60e5943c53 Update the sidebar notice we show for incompatible extensions (https://github.com/woocommerce/woocommerce-blocks/pull/10877)
* Adkust text of sidebar notice

* Adjust text of sidebar notice

* Rename folder to “incompatible-extension-notice”

* Rename main component and interface

* Rename constants

* Add new files for splitting logic

* WIP: Semi-hardcoded solution

* WIP: Add new data store

* Fetch incompatible extensions dynamically

* Fix broken dismiss notice functionality

* Minor refactor

* Remove data store

* Remove console.log

* Remove obsolete data store fragment

* Update package-lock.json and composer.lock

* Change wording from “might be” to “may be”

* Show single incompatible extension within notice instead of as list

* Fix *.md linting error
2023-09-29 17:39:57 +07:00
Daniel Dudzic 0406dfd462 Product Gallery: Remove additional wrapper (https://github.com/woocommerce/woocommerce-blocks/pull/11031) 2023-09-29 08:01:20 +00:00
Niels Lange 7289bbb01f Update shipping.md 2023-09-29 14:43:37 +07:00
Alexandre Lara 218e47f37a Product Gallery > Pager block: Fix classname to adhere to the Coding Guidelines (https://github.com/woocommerce/woocommerce-blocks/pull/11035)
* Improve regex for directive parsing

* Fix classname when page is selected and active

* Remove unnecessary commit
2023-09-29 09:42:05 +02:00
larsenlarsson 76752dfedb woocommerce/woocommerce-blocks#11053 added fee id (https://github.com/woocommerce/woocommerce-blocks/pull/11054) 2023-09-29 13:34:55 +07:00
dependabot[bot] a0e246eb52 Bump phpunit/php-code-coverage from 9.2.27 to 9.2.29 (https://github.com/woocommerce/woocommerce-blocks/pull/11044)
Bumps [phpunit/php-code-coverage](https://github.com/sebastianbergmann/php-code-coverage) from 9.2.27 to 9.2.29.
- [Changelog](https://github.com/sebastianbergmann/php-code-coverage/blob/9.2.29/ChangeLog-9.2.md)
- [Commits](https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.27...9.2.29)

---
updated-dependencies:
- dependency-name: phpunit/php-code-coverage
  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>
2023-09-28 20:21:18 -07:00
dependabot[bot] f3ce00a709 Bump automattic/jetpack-config from 1.15.3 to 1.15.4 (https://github.com/woocommerce/woocommerce-blocks/pull/11047)
Bumps [automattic/jetpack-config](https://github.com/Automattic/jetpack-config) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/Automattic/jetpack-config/releases)
- [Changelog](https://github.com/Automattic/jetpack-config/blob/trunk/CHANGELOG.md)
- [Commits](https://github.com/Automattic/jetpack-config/compare/v1.15.3...v1.15.4)

---
updated-dependencies:
- dependency-name: automattic/jetpack-config
  dependency-type: direct:production
  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>
2023-09-28 20:10:43 -07:00