Commit Graph

2666 Commits

Author SHA1 Message Date
Thomas Roberts 589f6923d6 Export `Button` and `Label` from `wc-blocks-checkout` package (https://github.com/woocommerce/woocommerce-blocks/pull/4406)
* Remove snackbar filtering

* Revert "Move Button and Label components to `@woocommerce/blocks-checkout` package (https://github.com/woocommerce/woocommerce-blocks/pull/4222)"

This reverts commit 983ce48cad.

* Export Label and Button from the wc-blocks-checkout package

* Reorder exports

This is so the diff is smaller in the PR

* Revert "Remove snackbar filtering"

This reverts commit 8e598436e871aa56f89740fbe6fbe522fd02db1d.
2021-07-02 10:24:07 +01:00
Thomas Roberts 93b750ee19 Change `couponName` filter to `coupons` and update documentation (https://github.com/woocommerce/woocommerce-blocks/pull/4312)
* Rework coupon filters to not be applied individually

* Add a `text` property to the coupons in the cart

This is needed to allow extensions to change the text without affecting the code.

* Output coupon text instead of code

* Add coupons filter documentation

* Add deprecation warning when extension uses couponName filter

* Change couponName filter to coupons

* Add label to Cart item definition

* Change coupon.text to coupon.label

* Update coupon.label in coupon aria-label

* Update image and coupon.text in docs

* Add filter registration example
2021-07-01 14:12:46 +01:00
Seghir Nadir 31566de45a remove assets from zip (https://github.com/woocommerce/woocommerce-blocks/pull/4418) 2021-07-01 12:48:48 +01:00
renovate[bot] 95de607f71 Update dependency classnames to v2.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4414)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 05:07:59 +00:00
renovate[bot] 43a67030ef Update dependency @types/dinero.js to v1.8.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4411)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 03:22:43 +00:00
renovate[bot] 0e2b669759 Update dependency @woocommerce/eslint-plugin to v1.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4413)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 02:22:03 +00:00
renovate[bot] 36b298039c Update dependency @woocommerce/api to v0.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4412)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 02:19:14 +00:00
renovate[bot] 91da9f9f9d Update dependency @testing-library/jest-dom to v5.14.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4410)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 02:02:50 +00:00
renovate[bot] 0421c8bf06 Update dependency @storybook/addon-knobs to v6.2.9 (https://github.com/woocommerce/woocommerce-blocks/pull/4409)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 01:53:35 +00:00
Mike Jolley 686a6f4ece Audit and Move Image Assets, update error state (https://github.com/woocommerce/woocommerce-blocks/pull/4389)
* Remove avatar.jpg

* Inline grid block preview svg

* Replace spilled icecream error icon with generic icon

* Inline single product block preview

* Improve block error styling and icon

* Move payment method icons

* Replace WC_BLOCKS_ASSET_URL usage

* Remove unused images

* update snaps
2021-06-29 15:04:24 +01:00
Mike Jolley 33c55353f7 Add Terser to preserve translator comments (https://github.com/woocommerce/woocommerce-blocks/pull/4379)
* Tidy and document current configs

* Add terser package

* sharedConfig with Terser plugin setup

* replace todo

* revert change to alias

* Package lock update

* ci to install

* Revert "ci to install"

This reverts commit a65b7f3ca8ef8ab1cb78f825a43ca8df07f784bb.

* revert shared config

* fix extra comma

* tweak setup

* Missing jsx
2021-06-29 12:18:29 +01:00
Raluca Stan 5e38ee6090 Update/5.3.2 testing instructions (https://github.com/woocommerce/woocommerce-blocks/pull/4403) 2021-06-29 13:08:51 +03:00
Nadir Seghir 875b164327 udpate version 2021-06-25 12:11:43 +01:00
github-actions[bot] 6f05e45622 Release: 5.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4381)
* add changelog

* add testing notes

* Bumping version strings to new version.

Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
2021-06-25 12:08:53 +01:00
Raluca Stan 837c58863a Update 531.md
Fix testing instruction with detailed info about the TT1 blocks theme
2021-06-25 11:16:23 +03:00
Thomas Roberts e5beda98f6 Add `IntegrationInterface` documentation (https://github.com/woocommerce/woocommerce-blocks/pull/4394)
* Add IntegrationInterface documentation

* Add information about the values of get_script_data being serialized

* Add link to main README
2021-06-25 09:13:44 +01:00
Raluca Stan f14a1f64bf Update 531.md 2021-06-23 15:36:00 +03:00
Darren Ethier 9d01e7d38b Update 520.md
clarify testing notes
2021-06-23 06:56:29 -04:00
Mike Jolley a2cbc97b17 Add screen reader text to price range (https://github.com/woocommerce/woocommerce-blocks/pull/4367) 2021-06-23 11:51:46 +01:00
Mike Jolley 5ba5722a49 Allow HTML in the All Products Block Product Titles (https://github.com/woocommerce/woocommerce-blocks/pull/4363)
* Render titles as HTML in ProductName component and use Typescript

* Update snaps
2021-06-23 11:51:32 +01:00
renovate[bot] a02291b396 Update dependency gh-pages to v3.2.3 (https://github.com/woocommerce/woocommerce-blocks/pull/4388)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 03:15:19 +00:00
renovate[bot] bd3b907223 Update dependency @types/gtag.js to v0.0.6 (https://github.com/woocommerce/woocommerce-blocks/pull/4387)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 03:04:40 +00:00
renovate[bot] 35d38d9f91 Update dependency @stripe/stripe-js to v1.15.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4386)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 02:56:42 +00:00
renovate[bot] 43e92a2ca2 Update dependency @babel/preset-env to v7.14.7 (https://github.com/woocommerce/woocommerce-blocks/pull/4385)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 01:25:52 +00:00
renovate[bot] b41ae3d54a Pin dependency gh-pages to v3.2.2 (https://github.com/woocommerce/woocommerce-blocks/pull/4384)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 01:15:50 +00:00
renovate[bot] 9ef4725103 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4374)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-21 14:28:35 +01:00
Mike Jolley 9a00279b6a Storybook to gh-pages deployment (https://github.com/woocommerce/woocommerce-blocks/pull/4370)
* Add gh-pages deployment

* Update package lock
2021-06-21 10:58:57 +01:00
Mike Jolley fe50b5ee78 Add storybook link to readme 2021-06-21 10:58:40 +01:00
Seghir Nadir e033cb0aea Add ExtendRestAPI and SlotFills docs (https://github.com/woocommerce/woocommerce-blocks/pull/4208)
* add extend docs

* add slotFill docs

* Update docs/extensibility/available-endpoints-to-extend.md

Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com>

* Update docs/extensibility/available-endpoints-to-extend.md

Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com>

* Update docs/extensibility/available-endpoints-to-extend.md

Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Allen Smith <loranallensmith@gmail.com>

* Apply suggestions from code review

Co-authored-by: Darren Ethier <darren@roughsmootheng.in>

* add feedback to extend-rest-api-add

* Fix naming

* add disclaimer about feature gating

* add links to readme

Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com>
Co-authored-by: Allen Smith <loranallensmith@gmail.com>
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2021-06-18 23:32:19 +01:00
Albert Juhé Lluveras f9fefd3e53 Split 5.2.0 testing steps between feature plugin and feature plugin + core 2021-06-18 18:21:24 +02:00
Mike Jolley b2da9f602a Append SKU to name for SearchListControl (https://github.com/woocommerce/woocommerce-blocks/pull/4366)
* Append skus to name

* Update assets/js/editor-components/products-control/index.js

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

* formatting

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2021-06-17 11:30:57 +01:00
Thomas Roberts 995d6f0f82 Update `AddressForm` and related components to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/4365)
* Add type argument to getSetting

* Convert prepareAddressFields to TypeScript

* Add State and Country Input prop types

* Type country input

* Type state input

* Convert AddressForm to TypeScript

* Add SHIPPING_COUNTRIES, ALLOWED_COUNTRIES (and states) to constants.ts

* Add return types to components

* Remove shipping-country-input JS file

* Fix type of CountryInputWithCountriesProps

* Use type argument in constants.ts

* Remove unnecessary braces on onChange function

* Use correct case for allowedCountries
2021-06-17 09:35:24 +01:00
Thomas Roberts 984c5a0eb1 Add type argument to getSetting (https://github.com/woocommerce/woocommerce-blocks/pull/4361) 2021-06-17 08:50:52 +01:00
Thomas Roberts 60b95041ff Fix error about duplicate keys in TotalsFees (https://github.com/woocommerce/woocommerce-blocks/pull/4360) 2021-06-17 08:49:45 +01:00
Mike Jolley 84718840d6 Update Express Payments Loading UI (https://github.com/woocommerce/woocommerce-blocks/pull/4228)
* Separate button spinner to separate component for reuse

* Use block checkout spinner in loading mask

* Block pointer events within loading mask

* Give the useRef within useShallowEqual a default value

This prevents the potential of having an undefined value returned.

* State setter and dispatch are stable

These do not need to be used as dependencies.

* Prevent re-renders of children when using loading mask.

This prevents children being rerendered and losing state. Loading styles are applied instead using a classname, but leaving the divs in place.

* Use memoization to to prevent excessive express payment rerenders

* Wrap express payment in loading mask

* Show loading state after submission

* remove eslint exclusion

* Move spinner to base components so it's available outside of the checkout package

* Avoid extra is-loading classname

* Update snaps/fix tests

* Remove memorization of payment method content due to stale data

* Express payment error handling

* Split up payment method context to make it more manageable

* Add blocking logic to cart

* Update snap

* Restore useRef

* Fix missing function removed by accident

* Fix setActivePaymentMethod and started status (so saved methods still allow express to be initialized)

* Loading Mask Todo

* Remove boolean shallow equals

* Missing dep

* Memoize typo

* Document changes in useStoreEvents

* Replace expressPaymentMethodActive

* setExpressPaymentError deprecation

* Only change status if an error is passed

* Track disabled state via useCheckoutSubmit

* useCallback on error message functions

* Fix mocks in test
2021-06-16 13:44:40 +01:00
renovate[bot] fa9e1447e7 Update dependency @stripe/stripe-js to v1.15.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4357)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 03:59:02 +00:00
renovate[bot] a5ea5910f6 Update babel monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/4356)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 03:56:38 +00:00
renovate[bot] 5b18379888 Update npm to v6.14.13 (https://github.com/woocommerce/woocommerce-blocks/pull/4355)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 03:54:06 +00:00
renovate[bot] c213519cf5 Update dependency github-label-sync to v2.0.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4354)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 02:31:43 +00:00
renovate[bot] 3fbb9132d0 Update dependency @types/wordpress__data-controls to v1.0.5 (https://github.com/woocommerce/woocommerce-blocks/pull/4353)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 00:39:55 +00:00
renovate[bot] 534ca71864 Update dependency @octokit/graphql to v4.6.4 (https://github.com/woocommerce/woocommerce-blocks/pull/4352)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 00:37:26 +00:00
Albert Juhé Lluveras 4918bc40c0 Update version to 5.4.0-dev 2021-06-15 11:48:17 +02:00
Albert Juhé Lluveras 4cd12a8108 Add 5.3.1 testing instructions (https://github.com/woocommerce/woocommerce-blocks/pull/4351)
* Update changelog and compatibility version for 5.3.1

* Add testing instructions for WC Blocks 5.3.1

* Update ZIP file for WC Blocks 5.3.1 testing
2021-06-15 11:47:11 +02:00
Thomas Roberts 0edcd0ef9a Add documentation for __experimentalDiscountsMeta slot (https://github.com/woocommerce/woocommerce-blocks/pull/4349) 2021-06-15 09:30:13 +01:00
Albert Juhé Lluveras 370c888700 Load woocommerce.css in Site editor (https://github.com/woocommerce/woocommerce-blocks/pull/4345) 2021-06-15 07:33:31 +02:00
Albert Juhé Lluveras 0c5cd9eea0 Make Product Categories List links unclickable in the editor (https://github.com/woocommerce/woocommerce-blocks/pull/4339) 2021-06-15 07:33:16 +02:00
Rua Haszard 8fb7ab7821 Add storybook demo for Chip (https://github.com/woocommerce/woocommerce-blocks/pull/3029)
* add stories for Chip

* Add more knobs to Chip storybook

Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
2021-06-14 16:53:44 +01:00
renovate[bot] f9a0854305 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4344)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-14 08:58:16 +02:00
Albert Juhé Lluveras efc9d44b11 Fix Product Categories List display issues in WP 5.8 (https://github.com/woocommerce/woocommerce-blocks/pull/4335) 2021-06-12 11:44:41 +02:00
renovate[bot] 1d23bd9fc2 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4315)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-11 17:45:04 +02:00