Commit Graph

2883 Commits

Author SHA1 Message Date
Mike Jolley b9d07173d4 Import `createInterpolateElement ` from `@wordpress/element` (https://github.com/woocommerce/woocommerce-blocks/pull/4368)
* change import for interpolate element

* remove dependency

* fix package lock

Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
2021-07-07 13:27:50 +01:00
Thomas Roberts 15fdc41e8f Add styles to stop totals items being padded inside panels (https://github.com/woocommerce/woocommerce-blocks/pull/4435)
* Add styles to stop totals items being padded inside panels

* Remove extra linebreak

* Use padding shorthand

* Move style into already established sidebar selector
2021-07-07 13:20:26 +01:00
renovate[bot] 12ca3013ad Update dependency @types/lodash to v4.14.171 (https://github.com/woocommerce/woocommerce-blocks/pull/4433)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 05:02:31 +00:00
renovate[bot] d05f3c49f2 Update dependency @types/react to v16.14.10 (https://github.com/woocommerce/woocommerce-blocks/pull/4434)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 04:01:03 +00:00
renovate[bot] 4aa75aff96 Update dependency @types/jest to v26.0.24 (https://github.com/woocommerce/woocommerce-blocks/pull/4432)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 03:53:09 +00:00
renovate[bot] 31cf08db65 Update dependency @types/gtag.js to v0.0.7 (https://github.com/woocommerce/woocommerce-blocks/pull/4431)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 02:19:10 +00:00
renovate[bot] 2390607dbe Update dependency @types/dinero.js to v1.8.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4430)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 01:51:33 +00:00
renovate[bot] 8257a32c35 Update Node.js to v12.22.3 (https://github.com/woocommerce/woocommerce-blocks/pull/4429)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 01:41:06 +00:00
Thomas Roberts c17cfb7db8 Make payment method icons display well even if theme tries to override their height/width (https://github.com/woocommerce/woocommerce-blocks/pull/4427)
* Make payment method icons display well even if theme tries to override

* Update flex justification for alignment styles

* Ensure payment method icons are displayed correctly in Checkout

* Remove center from object-position
2021-07-06 09:30:02 +01:00
Michael P. Pfeiffer ae1bde3481 Update version to 5.6.0-dev 2021-07-06 10:19:21 +02:00
github-actions[bot] c454c3f759 Release: 5.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4425)
* Empty commit for release pull request

* Update readme.txt with the changelog for 5.5.0

* Add testing notes

* Bumping version strings to new version.

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Michael P. Pfeiffer <michael@cssconf.eu>
2021-07-06 10:04:46 +02:00
Michael P. Pfeiffer b6a1edd62a Ensure product grids display as intended in the editor (https://github.com/woocommerce/woocommerce-blocks/pull/4424) 2021-07-05 11:58:48 +02:00
renovate[bot] fd4abebe8d Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4401)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-05 09:57:20 +01:00
VoHoTv f3e798d7dd Fix filtering by product type on Store API (https://github.com/woocommerce/woocommerce-blocks/pull/4422)
* Fixed $tax_query being set to an empty array

* Remove whitespace causing PHP coding standards test to fail

* Cleanup: add line break

Co-authored-by: Michael P. Pfeiffer <frontdevde@users.noreply.github.com>
2021-07-05 09:48:34 +01:00
Thomas Roberts 522f722b2b Create `StoreNoticesWithSnackbarProvider` (https://github.com/woocommerce/woocommerce-blocks/pull/4407)
* Add StoreNoticesWithSnackbarProvider component

* Remove snackbar from regular StoreNoticesProvider

* Create useStoreNoticesWithSnackbar hook

* Remove anything snackbar related from StoreNoticesContext

* Remove snackbar styles from store-notices

* Make checkout use store notices with snackbar context

* Move snackbar notices container to new directory

* Make useStoreCartCoupons use the notices with snackbar context

* Update tests

* Rename path and remove addSnackbarNotice

* Use StoreSnackbarNoticesProvider in Cart and Checkout blocks

* Update snackbar tests

* Update paths

* Update tests

* Create store notice provider for snackbar notices only

* Update context functions to include the word snackbar

* Change nesting in checkout

* Remove unused file
2021-07-05 09:38:08 +01:00
Michael P. Pfeiffer 719a8952ff Block Widgets: fix product grid display (https://github.com/woocommerce/woocommerce-blocks/pull/4419) 2021-07-05 08:58:00 +02:00
Thomas Roberts c3f4310fe2 Add `TotalsWrapper` component (https://github.com/woocommerce/woocommerce-blocks/pull/4415)
* Add TotalsWrapper component and associated styling

* Add TotalsWrapper around the subtotal, fees and discount

* Remove margins/paddings/borders from sidebar elements

This is to allow TotalsWrapper to be the component responsible for handling spacing and borders.

* Update styles to allow components to be wrapped in TotalsWrapper

* Move TotalsWrapper to checkout package

* Wrap all parts of Cart sidebar in TotalsWrapper

* Remove border from coupon panel

* Add has-bottom-border option to TotalsWrapper

* Wrap checkout sidebar components in TotalsWrapper

* Remove border/padding from order summary

* Add hasValidFills function

This will be used to check if a Slot has any fills that return truthy values.

* Remove borderSize and hasBottomBorder props from TotalsWrapper

* Wrap Slots in TotalsWrapper

* Update hasValidFills to check length of array

* Update tests and snapshots

* Only render tax totals if tax is more than 0
2021-07-02 15:56:39 +01:00
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