Commit Graph

2718 Commits

Author SHA1 Message Date
renovate[bot] 651495467f Update dependency core-js to v3.15.2 (https://github.com/woocommerce/woocommerce-blocks/pull/4515)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 17:31:38 +01:00
renovate[bot] 3fab2e7c88 Update dependency eslint to v7.31.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4517)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 12:19:15 +00:00
renovate[bot] c9a0b2a6ab Update dependency dinero.js to v1.9.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4516)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 04:09:41 +00:00
renovate[bot] 645446f48a Update npm to v6.14.14 (https://github.com/woocommerce/woocommerce-blocks/pull/4514)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 02:28:08 +00:00
renovate[bot] 6f35905cb8 Update dependency github-label-sync to v2.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/4513)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 01:44:19 +00:00
renovate[bot] 3fc33ff1aa Pin dependency @types/wordpress__block-editor to v2.2.9 (https://github.com/woocommerce/woocommerce-blocks/pull/4512)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 01:33:52 +00:00
renovate[bot] 7ef8c44f10 Update dependency autoprefixer to v10.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4488)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-27 18:38:35 +00:00
renovate[bot] 98388f4cb0 Update dependency @types/wordpress__deprecated to v2.4.3 (https://github.com/woocommerce/woocommerce-blocks/pull/4486)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-27 18:25:35 +01:00
Albert Juhé Lluveras 6afe5a8600 Add missing class to Cart skeleton title (https://github.com/woocommerce/woocommerce-blocks/pull/4498) 2021-07-27 12:47:20 +02:00
Albert Juhé Lluveras 203128d323 Fix Hand-picked Products block name inconsistencies (https://github.com/woocommerce/woocommerce-blocks/pull/4497) 2021-07-27 12:46:51 +02:00
Raluca Stan 0c9cec5895 Update extend-rest-api-add-data.md (https://github.com/woocommerce/woocommerce-blocks/pull/4490)
Update doc file with Formatters links
2021-07-27 10:28:49 +02:00
Raluca Stan 8781266573 Fix Store api cart links (https://github.com/woocommerce/woocommerce-blocks/pull/4460) 2021-07-27 10:15:36 +02:00
renovate[bot] 2e4ed5446d Update dependency @stripe/stripe-js to v1.16.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4487)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 18:41:09 +00:00
renovate[bot] 06b4a174d9 Update babel monorepo to v7.14.8 (https://github.com/woocommerce/woocommerce-blocks/pull/4485)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 18:39:02 +00:00
renovate[bot] 9c9da95147 Update dependency @types/react to v16.14.11 (https://github.com/woocommerce/woocommerce-blocks/pull/4461)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 17:48:47 +00:00
Mike Jolley 7ff3dac568 Fix e2e tests: Remove paypal from fixture data (https://github.com/woocommerce/woocommerce-blocks/pull/4507)
* Remove paypal from fixture data

* Fix scroll hoc tests

* Missing return type in cart causing TS error

* update e2e utils

* Replace searchForBlock method in e2e utils

* Single block update insert block

* Use insertBlockDontWaitForInsertClose
2021-07-26 15:05:09 +01:00
Niels Lange 64f71be372 Update getting-started.md (https://github.com/woocommerce/woocommerce-blocks/pull/4499) 2021-07-26 14:25:24 +02:00
Thomas Roberts fb846c5b78 Update `snackbarNotices` filter to `snackbarNoticeVisibility` (https://github.com/woocommerce/woocommerce-blocks/pull/4417)
* Change snackbarNotices filter to snackbarNoticeVisibility

* Add deprecation notice to snackbarNotices

* Rename noticesToDisplay to visibleNotices

* Update link in deprecated message
2021-07-26 09:13:54 +01:00
Seghir Nadir 45bbe80259 move SlotFillProvider before pluginArea (https://github.com/woocommerce/woocommerce-blocks/pull/4501) 2021-07-23 15:08:29 +01:00
Mike Jolley 14e9a33e97 initialize checkout alongside checkout-i2 (https://github.com/woocommerce/woocommerce-blocks/pull/4503) 2021-07-23 15:08:15 +01:00
Mike Jolley ea007aea6a Add checkout term field validation (https://github.com/woocommerce/woocommerce-blocks/pull/4496)
* Add notice if terms is unchecked when processing checkout

* Type StoreNotices and correctly scroll to error

* Checkbox error styles

* Hide input fields are invalid notice - validation notices are inline

* Scroll to error inputs

* Working inline validation for terms

* Add todo for exposing data

* update todo

* ensure checkbox is enabled before validating
2021-07-23 14:21:59 +01:00
Mike Jolley f78da3c355 WIP - Checkout i2 Feature Branch Tracking (https://github.com/woocommerce/woocommerce-blocks/pull/4268)
* Duplicate checkout block

* Contact information block

* form step block

* shipping address block

* Setup atomic blocks

* Container structure

* More formal steps rather than generic form step

* Add billing and shipping forms

* add checkout actions block

* add order note block

* Add order summary

* add payment block

* Add inspector controls for address fields

* frontend WIP

* move attributes

* wrap shipping with form step

* PhoneNumber to typescript

* Remove column block

* form steps

* move payment logic to frontend

* Express block

* inline payment block

* Add shipping method block

* Render inner blocks (not standalone blocks) and add classes to Atomic Block list on php side

* lazy again

* Add more wrappers from old frontend file

* add layout

* Checkout wrappers were missing

* Enqueue payment methods for new block

* Add missing classnames

* Move shipping as billing state to context provider

* express payments rendering

* try/block-registry

* Remove atomic components (unused)

* Fix attribute persistance due to template locking

* Fix shipping display when not needed

* Set correct parent blocks for inner blocks

* pass data to blocks

* demo/newsletter

* Skeleton styling

* only apply styles to loading state for now

* shipping method block frontend

* rename express block

* lock template

* fix ts warning for __webpack_public_path__

* Refactor to avoid duplicating atomic block logic

* remove changes in save method

* Add zones and shipping methods to the sidebar for the shipping inner block

Closes woocommerce/woocommerce-blocks#4320

* Fix script handles

* Fix method display when there are none

* Add shipping phone

* Add phone to api and sync with billing correctly

* Clear hidden fields on load

* fix requirePhoneField property

* Enable shipping and billing phone fields

* readonly field support

* Handle context attributes

* Fix createInterpolateElement usage

* add totalswrapper

* Implement Terms and Conditions block for Checkout i2  (https://github.com/woocommerce/woocommerce-blocks/pull/4436)

* Setup atomic blocks

* frontend WIP

* Express block

* try/block-registry

* Set correct parent blocks for inner blocks

* Skeleton styling

* Refactor to avoid duplicating atomic block logic

* add block locking

* add terms and conditions block

* hardcore settings image

* lock blocks from being deleted

* hide original checkout block

* mark blocks as side effectful

* move variations to block register function

* prevent core checkout blocks from needlessly showing in the inserter

* enable checkout i1

* fix broken rebase

* move save back

* Localise default text

Co-authored-by: Mike Jolley <mike.jolley@me.com>

* Add add-hoc Block locking from WooCommerce Blocks side. (https://github.com/woocommerce/woocommerce-blocks/pull/4454)

* add locking

* use subscribe instead

* fix condition

* add locking to blocks

* check if the item is not a text field

* Tidy up hacks CSS class handling

* Fix error if node is undefined

* Hide menu when move is disabled

* update package lock

* Add todo and fix issue where selector returns null

* split todos

* move todo

* edit comment

Co-authored-by: Mike Jolley <mike.jolley@me.com>

* Un-disable the billing checkbox in the editor (https://github.com/woocommerce/woocommerce-blocks/pull/4457)

* Add missing Slot fill provider on frontend

Fixes woocommerce/woocommerce-blocks#4441 by adding the slot fill provider to the checkout-i2 block.

* Use column style appender

* Add padding/styles to actions

* Add/update icon library

* Multiline checkbox alignment

* Icons and copy changes for i2 blocks

* Add terms by default

* Add notice if text is missing links (https://github.com/woocommerce/woocommerce-blocks/pull/4466)

* Swap variations for toggle

* Add payment settings to inspector

* Update package lock

* Add inline docs to block registry

* Add inner block areas below each form step.

This does not include the form step contents, just adds inner blocks after existing content. Moving content within the inner block area is a separate discussion.

This closes woocommerce/woocommerce-blocks#4306

* Sample block registration + docs

* Add tests for registerCheckoutBlock

* Fix lazy component detection in tests

* Add basic transform between i1 and i2

* remove template lock todo

* Update scroll to top hoc

* Move shared settings to new context providers

Closes woocommerce/woocommerce-blocks#4472

* Remove readonly field support (unused)

* Remove context code

* Experimental

* remove invalid typedef

* FIx scrolling on validation due to misplaced context provider

* Update assets/js/base/context/providers/cart-checkout/checkout-state/index.tsx

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

* Update comment to remove reference to phone

* Update packages/checkout/blocks-registry/README.md

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

* Rename ScrollToTopComponent

* Add explicit list of expectedType in TypeScript definition

* Add todo to remove custom shipping phone handling

* Remove dangerouslySetInnerHTML in External Link Card Component

* Add ExternalLinkCard to storybook

* update todo wording

* Refactor withScrollToTop to remove useCallback and use typescript

* Support children on CheckboxControl, with added Typescript

* Spread getRegisteredBlocks return value

Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2021-07-22 12:03:00 +01:00
Mike Jolley 844975fcd0 Fix SKU search in the Store API (https://github.com/woocommerce/woocommerce-blocks/pull/4469)
* Fix Product Search (by SKU) functionality. This was not being executed.

* Add unit test to confirm searching by SKU is functional
2021-07-20 16:31:18 +01:00
Albert Juhé Lluveras 99e273078b Remove dead files (https://github.com/woocommerce/woocommerce-blocks/pull/4471) 2021-07-19 10:22:32 +01:00
renovate[bot] cb98d22ab9 Update dependency @types/wordpress__data to v4.6.10 (https://github.com/woocommerce/woocommerce-blocks/pull/4462)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-19 10:17:11 +01:00
Darren Ethier c23ac5fe4e update changelog 2021-07-17 08:20:11 -04:00
Darren Ethier e0053afd6a Merge pull request from GHSA-6hq4-w6wv-8wrp 2021-07-14 16:55:12 -04:00
renovate[bot] 47c38f4548 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4456)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-12 16:08:55 +03:00
Raluca Stan 4907ddcd5d Fix all review memory leak on block transform (https://github.com/woocommerce/woocommerce-blocks/pull/4428) 2021-07-12 14:58:10 +03:00
Thomas Roberts ce965a3578 Update notices documentation to reflect changes to Snackbar Notices (https://github.com/woocommerce/woocommerce-blocks/pull/4455)
* Update notices documentation to reflect changes to Snackbar Notices

* Update docs/block-client-apis/notices.md

Co-authored-by: Mike Jolley <mike.jolley@me.com>

Co-authored-by: Mike Jolley <mike.jolley@me.com>
2021-07-12 12:49:47 +01:00
Mike Jolley 870a8c0b93 Switch arrow unicode characters (https://github.com/woocommerce/woocommerce-blocks/pull/4364)
* Switch arrow unicode characters

* flip arrow with css
2021-07-12 12:32:45 +01:00
Thomas Roberts f735f698e0 Add camelcase rule to eslint config (https://github.com/woocommerce/woocommerce-blocks/pull/4382)
* Add rules to allow camelCase variables as object properties

* Remove disable camelcase comments

* remove disable camelcase comments

* Remove space from eslint ignore rule
2021-07-09 17:53:45 +01:00
Thomas Roberts d841529f35 Add documentation for Formatters (https://github.com/woocommerce/woocommerce-blocks/pull/4390)
* Add documentation for Formatters

* Add link to formatters docs

* Add link to main README

* Add anchors to document

* Add code exaple of getting formatters

* Change CurrencyFormatter return into a table

* Fix table formatting issue and ensure arguments are all in tables
2021-07-09 17:19:24 +01:00
Seghir Nadir 2f440bbe20 Move SlotFillProvider to frontend only (https://github.com/woocommerce/woocommerce-blocks/pull/4437)
* Move SlotFillProvider to frontend only

* remove extra config for editor scripts

* update tests
2021-07-08 16:04:13 +01:00
Mike Jolley 9975868956 Add a workflow for the assign-milestone automation (https://github.com/woocommerce/woocommerce-blocks/pull/4342)
* Add a workflow for the assign-milestone automation

* add milestone_bump_strategy

* "none" bump strategy
2021-07-08 10:49:32 +01:00
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