Commit Graph

19219 Commits

Author SHA1 Message Date
Tarun Vijwani 62dbd8f70d Convert PaymentMethodErrorBoundary to Class component (https://github.com/woocommerce/woocommerce-blocks/pull/12088)
* Convert PaymentMethodErrorBoundary to class component

* Remove unused expressPaymentMethodId variable
2023-12-08 16:28:55 +00:00
Matt Sherman e4f67f9f10
Template API: Registration of custom block types (#41937) 2023-12-08 10:49:20 -05:00
dependabot[bot] 95b8b03051 Bump automattic/jetpack-config from 1.15.4 to 2.0.0 (https://github.com/woocommerce/woocommerce-blocks/pull/11958)
Bumps [automattic/jetpack-config](https://github.com/Automattic/jetpack-config) from 1.15.4 to 2.0.0.
- [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.4...v2.0.0)

---
updated-dependencies:
- dependency-name: automattic/jetpack-config
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 15:33:30 +00:00
Tarun Vijwani 5afdacb72e Add missing selectors to data store documentation (https://github.com/woocommerce/woocommerce-blocks/pull/11969)
* Add missing selectors to docs

- Add missing selectors for the following:
- data-store/checkout
- data-store/collections
- data-store/payment
- data-store/schema

* Fix markdown

* Fix getIncompatiblePaymentMethods selector description.

* Fix schema selectors information

* Fix additional spacing

* Add more information about the objects.

* Update checkout.md to use more descriptive
variable name for prefersCollection
2023-12-08 15:15:34 +00:00
dependabot[bot] 088ca1df35 Bump automattic/jetpack-autoloader from 2.12.0 to 3.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/11957)
Bumps [automattic/jetpack-autoloader](https://github.com/Automattic/jetpack-autoloader) from 2.12.0 to 3.0.2.
- [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.12.0...v3.0.2)

---
updated-dependencies:
- dependency-name: automattic/jetpack-autoloader
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 15:10:14 +00:00
Maikel David Pérez Gómez cc25c54afd
Grouped product field is being shown on non-grouped product types (#41946)
* Products in this group field should not be visible in any other product types, only visible in the grouped product type.

* Stock status under Inventory tab should not be visible when editing/creating a grouped product.

* Variations tab is not visible when editing/creating a grouped product.

* Add changelog file

* Fix php linter
2023-12-08 10:53:40 -04:00
dependabot[bot] c8174e2f93 Bump automattic/jetpack-connection from 1.60.1 to 2.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/12036)
Bumps [automattic/jetpack-connection](https://github.com/Automattic/jetpack-connection) from 1.60.1 to 2.1.0.
- [Release notes](https://github.com/Automattic/jetpack-connection/releases)
- [Changelog](https://github.com/Automattic/jetpack-connection/blob/trunk/CHANGELOG.md)
- [Commits](https://github.com/Automattic/jetpack-connection/compare/v1.60.1...v2.1.0)

---
updated-dependencies:
- dependency-name: automattic/jetpack-connection
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 14:43:29 +00:00
dependabot[bot] fd8443cb80 Bump @wordpress/wordcount from 3.13.0 to 3.47.0 (https://github.com/woocommerce/woocommerce-blocks/pull/12094)
Bumps [@wordpress/wordcount](https://github.com/WordPress/gutenberg/tree/HEAD/packages/wordcount) from 3.13.0 to 3.47.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/wordcount/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/wordcount@3.47.0/packages/wordcount)

---
updated-dependencies:
- dependency-name: "@wordpress/wordcount"
  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-12-08 14:28:16 +00:00
dependabot[bot] e1a4d612eb Bump @adobe/css-tools from 4.3.1 to 4.3.2 (https://github.com/woocommerce/woocommerce-blocks/pull/12002)
Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 13:49:57 +00:00
dependabot[bot] 049d45689c Bump phpunit/phpunit from 9.6.13 to 9.6.15 (https://github.com/woocommerce/woocommerce-blocks/pull/12035)
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.13 to 9.6.15.
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.15/ChangeLog-9.6.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.13...9.6.15)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  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-12-08 13:33:28 +00:00
Sebastian Buchwald 5ff41e577f Fix empty ClassicTemplate on product_cat site templates (https://github.com/woocommerce/woocommerce-blocks/pull/11164)
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2023-12-08 13:30:31 +01:00
Mike Jolley 1535caac84 Update product category controls to use typescript (https://github.com/woocommerce/woocommerce-blocks/pull/11909)
* ProductControl is now defined in typescript. Remove todo

* Update components to typescript

* Update lifecycle test
2023-12-08 11:39:31 +00:00
Karol Manijak 31905b97f2 Make Featured Category centred horizontally (https://github.com/woocommerce/woocommerce-blocks/pull/12063) 2023-12-08 10:11:34 +01:00
Karol Manijak e7a53dcf06 Update Features Flags and Experimental Interfaces doc with Collection Filters and its inner blocks (https://github.com/woocommerce/woocommerce-blocks/pull/12047)
* Update Features Flags and Experimental Interfaces doc with Collection Filters and its inner blocks

* Replace feature flag references with links to specific commit, not trunk
2023-12-08 10:10:58 +01:00
github-actions d69d4ce978 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-08 02:45:59 +00:00
paul sealock f47816b3e6 Better event name 2023-12-08 15:39:14 +13:00
paul sealock cbe376088c Add a back button to method configuration screen 2023-12-08 15:33:54 +13:00
Roy Ho 4992b77e49 Remove styling from sale badge (https://github.com/woocommerce/woocommerce-blocks/pull/12077)
Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com>
2023-12-07 18:24:18 -08:00
Damián Suárez cf33d1a31c
[Product Block Editor]: re implement product description field (#41862) 2023-12-07 20:51:39 -03:00
Damián Suárez a459f1eb7e fix eslint error 2023-12-07 19:55:18 -03:00
Barry Hughes 030bc4004f
Add customer address change action to user profile (#39254) 2023-12-07 14:52:36 -08:00
Daniel Dudzic ca3234b4be Product Gallery: Replace the frontend custom placeholder with the core Woo placeholder (https://github.com/woocommerce/woocommerce-blocks/pull/12086) 2023-12-07 23:51:32 +01:00
Damián Suárez a31f09bb06 fix e2e failing tests 2023-12-07 19:35:06 -03:00
Damián Suárez c99c04b160 fix lint issues 2023-12-07 19:35:06 -03:00
Damián Suárez a5f889a87f changelog 2023-12-07 19:35:06 -03:00
Damián Suárez 356ac0bdb5 insert Summary block into the Description one 2023-12-07 19:35:05 -03:00
Leif Singer 7838adc1b9
Logging: Enable viewing log entry context data in the DB logger list table (#41936) 2023-12-07 22:58:05 +01:00
Matt Sherman 6bec52cfe8 Changelog 2023-12-07 15:59:52 -05:00
Matt Sherman c93c3e3fcd Assert that template attributes and usesContext are augmented 2023-12-07 15:50:47 -05:00
Matt Sherman 23fa0fedf8 Additional unit tests 2023-12-07 15:30:52 -05:00
Matt Sherman 4dc0ac6432 Extract is_registered and unregister 2023-12-07 15:17:25 -05:00
Maikel David Pérez Gómez 37c965735d
Create section description block (#41929)
* Create section description block

* Add changelog files

* Change section description block to receive its content from the attributes instead of innerBlocks
2023-12-07 14:11:23 -05:00
Corey McKrill 286fb53418
Only render context row when an entry has context data 2023-12-07 11:00:56 -08:00
Corey McKrill 0d286a19f8
Update unit tests to use JSON instead of serialize 2023-12-07 10:58:23 -08:00
Matt Sherman 7206f2b3b9 Add unit test for register_block_type_from_metadata 2023-12-07 13:45:28 -05:00
Tarun Vijwani 29b4217f15 Update the border colors in the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/11474)
* Change border color to Gutenberg 100 for Cart and Checkout blocks

* Change form input color to Gutenberg 900 for Cart and Checkout blocks

* Fix additional border colors of Checkout block

* Update borders and form field colors in Cart Block

* Change border color to $universal-border-light

* Change border color for cart line items to $universal-border-light

* Change  form input fields border color to $universal-border-dark

- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.

* Fix colors of text area border and form steps

* Change  form input fields border color to $universal-border-dark

- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.

* Fix form steps

* Update universal dark border rgba value

- Update universal dark border rgba value from rgba(0, 0, 0, 0.882) to rgba(17, 17, 17, .80) to keep it consistent with universal-border colors

* Update $universal-border-light color

* Update the opacity of the borders

* Update the border color to rgba (17, 17, 17, 0.12)

* Roll back $universal-border-light value to the original value: 0.115

* Remove Opacity and pass it as argument in with-translucent-border

- We have with-translucent-border option that accepts border and opacity for pseudo elements.

* Remove additional spaces

* Replace with-translucent-border with normal border

- Since we're are not mixing the opacity to the border color so we don't need to use mixin with-translucent-border.

* Fix applied css and add low contrast Color usage details

-  Fix minor CSS as per the standards.
- Add comments for universal border colors that they're low contrast colors and should be used for decorative elements only

* Fix border gap and double border for multiple shipping packages

* Fix payment method borders and Cart line items borders

- Change border bottom to border-top for cart line items.
- Fix payment method radio control borders.

* Fix local pickup border

- Local pickup was using  with-translucent-borders so it has some opacity, changed it to border-bottom.

* Add border-bottom to cart items

* Remove additional border from Cart items

* Fix radio and checkbox borders as per the design

* Fix shipping method borders and background color as per the design.

* Force align left on the description for the local pickup options.

* Update border color in quantity selector component

* Fix Shipping options radio selection alignment

- Add left padding to wc-block-components-shipping-rates-control__package element.

* Update colors and variables

* Change checkbox and radio button colors

- Change checkbox and radio button colors from  rgba(25, 23, 17, 0.3) to  rgba(25, 23, 17, 0.48).

* Remove bottom property from express payment style
2023-12-07 21:37:48 +04:00
Thomas Roberts 906961be3b Move merchant-side Checkout E2E tests to Playwright (https://github.com/woocommerce/woocommerce-blocks/pull/11853) 2023-12-07 17:32:18 +00:00
Alefe Souza 4b58adde04 Fix casting error on Utils::wp_version_compare (https://github.com/woocommerce/woocommerce-blocks/pull/11802)
* Fix casting on Utils::wp_version_compare

* Fix linting issue

* Apply version number fix on current wp version

* Fix linter errors

* Fix linter errors
2023-12-07 18:18:34 +01:00
Niels Lange 7a0835e354 Migrate translation tests to Playwright (https://github.com/woocommerce/woocommerce-blocks/pull/12070)
* Migrate translation tests to Playwright

* Optimise tests

* Migrate translation tests to Playwright

* Optimise tests

* Run test as side effects
2023-12-07 16:50:00 +00:00
Luigi Teschio 88562d1106 Products By Attribute: E2E tests - skip test (https://github.com/woocommerce/woocommerce-blocks/pull/12085) 2023-12-07 17:19:50 +01:00
Hsing-yu Flowers 2578fa11e9 Update the checkout order endpoint allowed order statuses for payment complete (https://github.com/woocommerce/woocommerce-blocks/pull/12018)
* Update the allowed order statuses for payment complete

* Check if order exists before checking needs_payment
2023-12-07 11:09:19 -05:00
Matt Sherman c892074b76 Update comment for phpcs:disable 2023-12-07 10:58:19 -05:00
Matt Sherman 7c14b27f36 Extract public function to register block type 2023-12-07 10:55:46 -05:00
Luigi Teschio d959781fc6 Social Follow Us Pattern: fix width image (https://github.com/woocommerce/woocommerce-blocks/pull/12080) 2023-12-07 15:42:45 +01:00
Mike Jolley efe2017794 Fix classname for dark mode in validation notice (https://github.com/woocommerce/woocommerce-blocks/pull/12037) 2023-12-07 14:41:31 +00:00
Mike Jolley 45ae286a10 Change guest permissions to full after verification (https://github.com/woocommerce/woocommerce-blocks/pull/12072) 2023-12-07 14:41:12 +00:00
ragulka ba9760baa3 reset array keys after filtering to prevent conversion to JSON object (https://github.com/woocommerce/woocommerce-blocks/pull/11070) 2023-12-07 14:40:34 +00:00
Luigi Teschio be79b9864e
Fix: `useEditorBlocks` hook always returns an array (#41874)
* fix: useEditorBlocks hook always returns an array

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 14:41:44 +01:00
Patricia Hillebrandt 4467715546
[CYS] Update the call to the ai product endpoint to account for the newly introduced last_product param. (#41842) 2023-12-07 09:17:29 -03:00
Patricia Hillebrandt d9ca827083
[CYS] Temporarily remove the survey button (#41781) 2023-12-07 09:16:15 -03:00
Patricia Hillebrandt 396f1e5169 Merge branch 'trunk' into 41637/remove-survey-button 2023-12-07 08:49:10 -03:00
Patricia Hillebrandt c60992e061
Update color palettes when AI is no available (#41880) 2023-12-07 08:39:13 -03:00
Barry Hughes e9ba3d3755
Make the process for initiating the password strength meter more robust. (#41822) 2023-12-07 12:25:13 +01:00
Patricia Hillebrandt 4c62ac23ee Address build and lint errors 2023-12-07 08:05:06 -03:00
Patricia Hillebrandt 90dc7aaa41 Fix lint error 2023-12-07 07:55:35 -03:00
Patricia Hillebrandt 00b7b78ee8 Merge branch 'trunk' into update/ai-product-endpoint-last-product-param 2023-12-07 07:27:14 -03:00
Patricia Hillebrandt 422e9ce1b9 Merge branch 'trunk' into update-color-palettes-no-ai 2023-12-07 07:22:53 -03:00
Patricia Hillebrandt a8d4de29f9 Address lint errors. 2023-12-07 06:26:55 -03:00
Niels Lange ab766273ff Fix font weight of cart totals title in site editor (https://github.com/woocommerce/woocommerce-blocks/pull/12051)
* Fix font weight of cart totals title in site editor

* Set explicit font-weight for th in cart line items
2023-12-07 15:55:47 +07:00
Luigi Teschio f59b95d6e3
CYS: Reset products when the AI is offline (#41923)
* CYS: Reset products when the AI is offline

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 09:42:16 +01:00
Luigi Teschio 60efd15e7e CYS: Add DELETE private/ai/products endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/12076)
* CYS: Add DELETE private/ai/products endpoint

* Ensure the hash for the product is also updated on content reset.

---------

Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com>
2023-12-07 09:27:57 +01:00
Luigi Teschio 01d9bfc678
CSY: Update copy when AI is offline (#41900)
* fix: CSY - update font copy when ai is offline

* Add changefile(s) from automation for the following project(s): woocommerce

* update font

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 09:16:28 +01:00
Chi-Hsuan Huang f793b64c64
Make CYS loader smoother (#41772)
* Make CYS loading sequence smoother

* Add changelog
2023-12-07 12:14:57 +08:00
Matt Sherman 1451626182 Make the BlockRegistry a singleton 2023-12-06 20:07:52 -05:00
Marco Almeida dd1a76d2be
Cart shortcode: Format postcode before validation on the shipping calculator (#41917)
In the shortcode-based Cart, format postcode before validation on the shipping calculator to be coherent with the checkout behaviour.

Fixes #41913
2023-12-06 16:43:57 -08:00
Corey McKrill d82747f643
Add changelog file 2023-12-06 16:34:05 -08:00
Corey McKrill 57804c0ed5
Improve backtrace getter 2023-12-06 16:05:26 -08:00
barryhughes 6dd6866640 Changelog. 2023-12-06 15:43:43 -08:00
barryhughes b186a83aea Set version tag to 8.5.0. 2023-12-06 15:35:38 -08:00
barryhughes 64206a9a6d Use strict array searching. 2023-12-06 15:35:04 -08:00
Corey McKrill 651e754fdd
Show log context as additional togglable table row
This is partly based on the work done by @johnregan3 in #31823.

Co-authored-by: John Regan <john.m.regan@gmail.com>
2023-12-06 15:03:22 -08:00
Patricia Hillebrandt 89108c348b ditch spacing. 2023-12-06 19:04:21 -03:00
Patricia Hillebrandt 6bc41b24e3 Fix lint error. 2023-12-06 19:01:28 -03:00
Daniel W. Robert cb48f78fae Remove `Approved Pull Requests` Workflow (https://github.com/woocommerce/woocommerce-blocks/pull/12017)
* Remove ADD_LABEL step for 'status: ready to merge'

This updates the workflow to remove the step for adding the 'status: ready to
merge' label.

Additionally, this adjusts the naming within the job to reflect the
change to the workflow.

* Remove entire workflow for Approved Pull Requests

Once Woo Blocks is merged into the monorepo, this workflow will no
longer be needed / relevant at all.
2023-12-06 15:25:02 -05:00
Patricia Hillebrandt 6305c8f001 Merge branch 'trunk' into update-color-palettes-no-ai 2023-12-06 16:58:53 -03:00
Christopher Allford 8c6b414fe0
Revert "Refactoring Task Infrastructure" (#41928)
Revert "Refactored Task Infrastructure (#41202)"

This reverts commit 96a973b9fa.
2023-12-06 11:36:12 -08:00
Christopher Allford d6a3ba9ba9
Revert "Renamed `@woocommerce/shortcode-assets`" (#41927)
Revert "Renamed `@woocommerce/shortcode-assets` (#41922)"

This reverts commit d0fa93d470.
2023-12-06 11:35:53 -08:00
Christopher Allford d0fa93d470
Renamed `@woocommerce/shortcode-assets` (#41922) 2023-12-06 10:13:25 -08:00
Christian Wach 8fbb7cd8fc Add customer address change action to user profile 2023-12-06 18:01:01 +00:00
Christopher Allford 96a973b9fa
Refactored Task Infrastructure (#41202)
* Fixed NPM packages with invalid names.
* Renamed plugin packages.
* Standardized package NPM scripts.
* Replaced Turborepo with Wireit.
2023-12-06 09:32:32 -08:00
Patricia Hillebrandt 564f95d997 Update the color palette migrated from Tsubaki for the New - Neutral palette. 2023-12-06 14:22:35 -03:00
Atanas Penchev bf87c09969
CSS3 transitions for all fade animations (#37692)
* CSS3 transitions for all fade animations

* Changelog

* Whitespace

* Formatting

* Lambda function

* Comment

* Clean up transitionEnd event listeners if (!touch)

* Update this.offsetWidth comment

* Use jQuery methods in order to greatly reduce diff
2023-12-06 17:44:26 +01:00
Mike Jolley 14cdc5e6f5 Use locale in isAddressComplete (https://github.com/woocommerce/woocommerce-blocks/pull/11888) 2023-12-06 16:33:15 +00:00
Chris Lilitsas 62e094e554
Missing CSS class on the empty-orders notice CTA in the My Account > Orders page (#41325)
* Add missing class

* Add changefile(s) from automation for the following project(s): woocommerce

* Template bump

* Bump version

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-06 15:59:05 +00:00
Karol Manijak 71640ef347 Restructure Product Collection editor files (https://github.com/woocommerce/woocommerce-blocks/pull/11981)
* Move Product Collection editor experience components into /edit directory

* Move Product Collection Inner Blocks structure to constants

* Improve the Product Collection's variations names
2023-12-06 15:50:24 +01:00
Leif Singer 4897cdb683
Logging: Update doc block to more accurate return value (#41867) 2023-12-06 14:48:11 +01:00
github-actions 4cd59f6a3a Add changefile(s) from automation for the following project(s): woocommerce 2023-12-06 13:45:12 +00:00
github-actions 6d252400fb Add changefile(s) from automation for the following project(s): woocommerce 2023-12-06 13:43:30 +00:00
Alba Rincón 6806f61aa7 Show the survey button only when AI is available 2023-12-06 14:43:16 +01:00
Alba Rincón cb3fdeb35d Change copy depending on the the AI availability 2023-12-06 14:41:46 +01:00
Alba Rincón 77826c6c76 Add new color palettes for when ai is unavailable 2023-12-06 14:41:34 +01:00
Karol Manijak 4d72c559d3 Unify the @typescript-eslint/parser version with eslint-plugin and what's in Core (https://github.com/woocommerce/woocommerce-blocks/pull/12066) 2023-12-06 20:28:48 +07:00
Barry Hughes 4c57f72574
Change To be able to download order data from all products removed (#41449) 2023-12-06 04:57:41 -08:00
Moon 212c5bca3e
CYS - AI Offline flow (#41656) 2023-12-06 20:49:28 +08:00
Mike Jolley ccd0b6b33c Use get_plugins because it uses cache (https://github.com/woocommerce/woocommerce-blocks/pull/12031) 2023-12-06 12:43:07 +00:00
Mike Jolley 946d15ca48 Adjust nesting so page wraps the main group block (https://github.com/woocommerce/woocommerce-blocks/pull/12050) 2023-12-06 12:31:37 +00:00
Tarun Vijwani 1879839657 Add missing actions to data store documentation (https://github.com/woocommerce/woocommerce-blocks/pull/11986)
* Add missing actions to the documentation

- Add the missing actions to the following:

- data-store/cart
- data-store/checkout
- data-store/collections
- data-store/validation

* Move actions above selectors in Cart doc

* Add more info to cart actions

* Fix syntax of Cart actions examples

* Fix syntax and examples

- Use store name constant instead of strings
- Fix description and examples of collections document

* Add more info about the keys of objects and arrays

* Update billing address info in cart data

* Update parameter names and descriptions in
checkout.md and collections.md

* Update docs/third-party-developers/extensibility/data-store/checkout.md

Co-authored-by: Niels Lange <info@nielslange.de>

---------

Co-authored-by: Niels Lange <info@nielslange.de>
2023-12-06 08:58:25 +00:00
Niels Lange 69ef1b96e8 Enable new notice styles for all themes (https://github.com/woocommerce/woocommerce-blocks/pull/12043)
* Enable new notice styles

* Fix Twenty Twenty-One button background color issue
2023-12-06 15:46:22 +07:00
Luigi Teschio 1f410bdd04 fix: Product Collection: Featured Products 5 Columns improve spacing (https://github.com/woocommerce/woocommerce-blocks/pull/12041) 2023-12-06 09:05:49 +01:00
jonathansadowski d8b2663def
Update stable tag to 8.3.1 (#41612)
woorelease: Update stable tag to 8.3.1

Co-authored-by: rodel <rodel@rodels-MBP.automattic.net>
2023-12-06 05:36:09 +08:00
barryhughes 8fa3282981 Bump version tags. 2023-12-05 13:29:35 -08:00
barryhughes 6cf48117cc Changelog. 2023-12-05 13:29:35 -08:00
barryhughes 54675f228b Update template doc tags; remove unnecessary phpcs:ignore rule. 2023-12-05 13:29:35 -08:00
barryhughes acf14e07a6 Add docblock for filter hook `woocommerce_order_downloads_table_show_downloads`. 2023-12-05 13:29:35 -08:00
mt8 d51ed1aa4c Change: Added a filterable variable to the variables when loading the order/order-details.php template. 2023-12-05 13:29:35 -08:00
mt8 94f95f6ea3 Revert "Add woocommerce_order_has_downloadable_item filter to WC_Order->has_downloadable_item()"
This reverts commit 3baa6a891e.
2023-12-05 13:29:35 -08:00
mt8 6c087974b8 Add woocommerce_order_has_downloadable_item filter to WC_Order->has_downloadable_item() 2023-12-05 13:29:35 -08:00
Fernando Marichal 6ea7a48dbc
Add link to documentation to Downloads section (#41844)
* Modify Downloads description

* Remove text decoration

* Add changelogs

* Modify translators texts

* Fix indenting

* Remove link style

---------

Co-authored-by: Fernando Marichal <fernandomarichal@fernandos-mbp.lan>
2023-12-05 16:59:32 -03:00
rodelgc 8732330ba9
Delete Blocks 11.6.2 changelog from trunk (#41899) 2023-12-06 03:27:14 +08:00
Albert Juhé Lluveras b41c8f5086
Update WooCommerce Blocks to 11.7.0 (#41876)
* Update WooCommerce Blocks to 11.7.0

* Update Mini-Cart block e2e Playwright tests

---------

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2023-12-05 16:53:49 +01:00
github-actions[bot] d5c7664c57
Delete changelog files based on PR 41834 (#41885)
Delete changelog files for 41834

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2023-12-05 23:36:50 +08:00
Roy Ho 6df846d11a Product gallery/fix/view all link (https://github.com/woocommerce/woocommerce-blocks/pull/11995)
* Center align view all link

* Add thumbnail count specific styling

* Product Gallery Thumbnails: Improve the responsiveness of the View All overlay text

---------

Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com>
2023-12-05 16:25:41 +01:00
github-actions[bot] 9f1231faff
Release: Remove 8.4 change files (#41655)
Delete changelog files from 8.4 release

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2023-12-05 09:53:10 -05:00
github-actions[bot] 8999de2938
Prep trunk for 8.5 cycle (#41654)
Prep trunk for 8.5 cycle with version bump to 8.5.0-dev

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2023-12-05 09:48:52 -05:00
Mike Jolley fac4312664 Remove "shopper's" from string (https://github.com/woocommerce/woocommerce-blocks/pull/12049) 2023-12-05 12:37:19 +00:00
Thomas Shellberg 7b0affff3e
Fix z-index issue with the Image Background Removal Spotlight. (#41185)
* [Woo AI] - Fix z-index issue with the Image Background Removal Spotlight.
2023-12-05 13:08:57 +01:00
Paulo Arromba 9e200b390c
Update WooCommerce Blocks to 11.6.2 (#41869)
Updated woocommerce/woocommerce-blocks to 11.6.2
2023-12-05 11:21:14 +00:00
Albert Juhé Lluveras 38fbb179d9 Update versions to 11.8.0-dev 2023-12-05 10:58:14 +01:00
Albert Juhé Lluveras c50f395efd Add 11.7.0 testing steps and changelog 2023-12-05 10:57:17 +01:00
Christopher Allford 88969742f2
Regenerate PNPM Lock File & Fix Errors (#41830) 2023-12-05 00:36:30 -08:00
Sam Seay c5ad636e35 Upgrade TypeScript to 5.3.2 (https://github.com/woocommerce/woocommerce-blocks/pull/11926)
* Also add skipLibCheck option to TS Config.
2023-12-05 18:17:04 +13:00
Eason d57b9e1d05
Make the `useCampaigns` hook support being used with multiple instances (#41211)
* Add tests for the `useCampaigns` hook in the woocommerce-admin marketing.

* Add `channels` to the deps of `useSelect` in the `useCampaigns` hook to avoid outdated hook states.

* Make the `useCampaigns` hook support being used with multiple instances.

- Include the `perPage` in the page key of campaigns in the multichannel's data store.
- Move the processing of querying the campaigns paging to the selector of the multichannel's data store.
- Move `total` in each campaign's paging of the multichannel's data store.
- Remove unused properties and their types: `state.campaigns.perPage` and `state.campaigns.total`

* Add changelog

* Multichannel data store - Move the `total` from `campaigns.pages[*]` to `campaigns.meta` to have only one total value.

Related to:
- https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1409634640
- https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1409590559

* Multichannel data store - Return the pagination meta of campaigns along with the `getCampaigns` selector.

Address: https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1412266127
2023-12-05 11:20:05 +08:00
Corey McKrill 165495a015
Logging: Update doc block to more accurate return value
Improves the doc block of `wc_get_logger()` to reflect that the return
value will be a class that implements `WC_Logger_Interface`, but may
not actually be an instance of `WC_Logger`.

Fixes #41256
2023-12-04 13:06:31 -08:00
Paulo Arromba 159ce527a7 Add/11.6.2 testing instructions and changelog (https://github.com/woocommerce/woocommerce-blocks/pull/12040)
* Updated readme.txt, versions, added testing steps

* Updated testing zip link
2023-12-04 17:24:58 +00:00
Albert Juhé Lluveras 9371318292 Revert "Remove unused Add to Cart product element (https://github.com/woocommerce/woocommerce-blocks/pull/11948)" (https://github.com/woocommerce/woocommerce-blocks/pull/12033)
This reverts commit 6a397d65f9.
2023-12-04 17:28:58 +01:00
Darren Ethier 795f008952 Implement the Block Hooks API to automatically inject the Mini-Cart block (https://github.com/woocommerce/woocommerce-blocks/pull/11745)
* Change the default for Mini Cart block

The Block Hooks API currently doesn’t allow for setting the default state of the block injected into content so this ensures the mini-cart block has a better default state for injection. The current default (displaying total value in cart) takes up more width increasing the risk of poor layout.

* Utilize Block Hooks to automatically inject mini-cart block.

* include experimental prefix on filters

* Fix filter name.

* remove experimental prefix.

On thinking about this, I don’t think these need to be experimental. They are intentionally provided as escape hatches for hosts/themes that want to opt-in/out so we’ll have to support them when this is shipped (at least until its no longer needed!)

* fix variable name!

* fix unit tests because of new default

* remove another incorrect text expectation

Defaults for the block affect this expectation.

* fix E2E tests

* Mini Cart Block: improve E2E test

* fix: improve check for the Product Collection block

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2023-12-04 17:27:27 +01:00
Luigi Teschio 5b0e74383b Improve AI prompt for the Featured Category Triple pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11879)
* Improve AI prompt for the Featured Category Triple pattern

* test

* improve prompt
2023-12-04 16:28:36 +01:00
Luigi Teschio f74f5a2e61 Fix Testimonials 3 Column pattern width (https://github.com/woocommerce/woocommerce-blocks/pull/12030)
* Fix Testimonials 3 Column pattern width

* remove padding
2023-12-04 16:28:22 +01:00
Alba Rincón 4b63874ff8
Switch assembler theme to TT4 (#41736)
* Switch assemble theme to TT4

* Add changefile(s) from automation for the following project(s): woocommerce

* Rename changelog file

* Add changefile(s) from automation for the following project(s): woocommerce

* Remove duplicated changelog

* Add changefile(s) from automation for the following project(s): woocommerce

* Remove duplicated changelog

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-04 16:20:05 +01:00
Tung Du 2bc48e4e4a Fix: Ensure new filter blocks work with inherited query context (https://github.com/woocommerce/woocommerce-blocks/pull/12022)
* make the collection filters block available globally

* make query optional

* remove unnecessary editor contextual
2023-12-04 21:05:09 +07:00
Chi-Hsuan Huang f4e486d421
Update CYS task subheading (#41771)
* Update cys task subheading

* Add changelog
2023-12-04 21:35:34 +08:00
Nathan Silveira 4f08753d0c
Add wc-settings to the footer when injecting wc-settings dependency (#41790) 2023-12-04 10:06:38 -03:00
Luigi Teschio 945e476648 Improve AI prompt for the header of the Hero Product 3 Split pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11877)
* Improve AI prompt for the header of the Hero Product 3 Split pattern

* improve prompt
2023-12-04 14:04:28 +01:00
Patricia Hillebrandt 5f4c8e2f7c [CYS] Fix regression and ensure AI-generated content is assigned to products after the third attempt (https://github.com/woocommerce/woocommerce-blocks/pull/12016)
* Fix restriction preventing the update of products with AI-generated content after the 3rd attempt.

* use set_slug rather than wp_update_post for updating the product permalink.

---------

Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
2023-12-04 09:58:01 +01:00
Luigi Teschio af23649365 Hook `woocommerce_single_product_summary` action to `core/post-excerpt` block (https://github.com/woocommerce/woocommerce-blocks/pull/11953)
* hook woocommerce_single_product_summary into core/post-excerpt block

* Add E2E tests

* improve E2E test
2023-12-04 09:03:00 +01:00
Alba Rincón a387c93528 Update patterns design (https://github.com/woocommerce/woocommerce-blocks/pull/12005)
* Update "Just arrived full hero" pattern design

* Remove titles from galleries and update chessboard copy

* Remove unused patterns and old option
2023-12-04 08:58:32 +01:00
Patricia Hillebrandt 1f1ddd17d4 Merge branch 'trunk' into update/ai-product-endpoint-last-product-param 2023-12-04 04:04:02 -03:00
Panos (Panagiotis) Synetos 2ab2862185
activation.css does not have access to $woocommerce variable 2023-12-04 08:50:58 +02:00
Panos (Panagiotis) Synetos 3b151dd1db
Merge branch 'trunk' into fix/41774-use-fallback-colors-css-variables 2023-12-04 08:18:52 +02:00
Paul Sealock d25ebd0a1e
Shipping Settings: Revert removal of default method names (#41833) 2023-12-03 14:15:03 +13:00
Paul Sealock 3e139f3c73
Shipping Settings: Refresh shipping methods on every addition (#41834) 2023-12-03 14:14:53 +13:00
Alba Rincón 1a3cd9b328 Update product placeholders with products from design (https://github.com/woocommerce/woocommerce-blocks/pull/12007)
* Update product placeholders

* Fix errors

* WIP

* Fix image path and reduce image size

* Upload ai image only if present

* Replace typewriter image

---------

Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com>
2023-12-02 09:47:53 +01:00
Niels Lange 1c7d995e97 Decrease modal width (https://github.com/woocommerce/woocommerce-blocks/pull/12003) 2023-12-02 02:54:39 +00:00
Corey McKrill 9c54477ce5
Add changelog file 2023-12-01 14:16:47 -08:00
Corey McKrill 54efe56eae
Logging: Prevent fatal type error when submitting empty search
Ensures that if the "Search within these files" form is submitted with
an empty input, it does not trigger a fatal error due to the search
method returning an empty array at a time when it should be returning
the integer `0`.
2023-12-01 14:12:52 -08:00
Corey McKrill aaff5a0f43
Logging: Enable downloading log files singularly and in bulk (#41801)
Add functionality and UI for downloading log files directly from WC Admin.

Fixes #40645
2023-12-01 13:49:46 -08:00
paul sealock 2d8a192ef3 remove validation since no field are required 2023-12-02 10:37:01 +13:00
Chris Lilitsas 0f3c4ea4bd
Vertical alignment issue in the variations selector (#41369)
This PR removes a line-height rule causing vertical alignment issues in the variations selector and introduces a bottom margin on the single variation container.

Closes #41367
2023-12-01 12:22:47 -08:00
Seghir Nadir 226d7de6d6 import checkbox from single place (https://github.com/woocommerce/woocommerce-blocks/pull/12015) 2023-12-01 19:40:04 +01:00
Dekadinious acdb2df13a
Show variations in upsells when parent is not published (#30042)
* Show variations in upsells when parent is not published

I was struggling to get the upsell section to show for our eCommerce site. After some digging I found that line 1525 stopped variations from showing in the upsell section if the parent product was set to privately published. This makes testing products and upsells hard, and it's inconsistent behaviour when simple products that are privately published do show up. The proposed change will make variations show up as long as the current user can edit the parent product. This is consistent with the behaviour for simple products.

* Add changelog

---------

Co-authored-by: Jorge Torres <jorge.torres@automattic.com>
2023-12-01 17:08:11 +00:00