Commit Graph

54232 Commits

Author SHA1 Message Date
Ismael Martín Alabarce 8f533167f7
Add PhoneNumberInput component – cooldown (#40335)
* Move component from WooPayments

* Expose component on the package

And include its style sheet.

* Add missing global typing

* Fallback to alpha2 codes

when wcSettings.countries is not available

* Add build data script and its output

* Move defaults to their own file

* Add readme and JSDocs

* Add storyboard examples

* Add JS unit and snapshot tests

* Move `DataType` to a `types.ts` file

To get rid of the type definition in the build data script

* Fix markdown issues

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

* Minor markdown update

* Fix input sanitization

* Add component output to storybook examples

* Remove consecutive spaces or hyphens from input sanitization

* Improve consecutive character sanitization

Move it to the component keyDown event to avoid the caret to be displaced

* Ensure imports from @wordpress/element

* Refactor to avoid using lodash

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

* Use $gray-5 for highlighted items for better contrast

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-16 10:19:36 +02:00
Rodel Calasagsag de22698dc7 Add changelog 2023-10-14 16:20:47 +08:00
Rodel Calasagsag f63b8353ee Add support for draft releases 2023-10-14 16:20:33 +08:00
Rodel Calasagsag b5421de444 Use chrome user agent 2023-10-14 16:19:31 +08:00
Joni Erkkilä c4cbaf495b Capitalize aria-label value 2023-10-14 09:39:08 +03:00
Joni Erkkilä 4d133b4ca8 Merge branch 'trunk' into update/breadcrumb-for-accessibility 2023-10-14 09:28:42 +03:00
louwie17 7f25060044
Variation switching when deleting (#40780)
* Add variation switcher hook for easier use across multiple components

* Add unregister function for validation

* Add changelogs

* Remove stray console

* Add unRegisterValidator function
2023-10-13 19:25:58 -04:00
Matt Sherman b4474fc633
Doc: Migrate naming conventions (#40781) 2023-10-13 17:56:26 -04:00
Jon Lane b4b107f4f9 Few additional flows 2023-10-13 14:40:59 -07:00
Jon Lane fc5ed4c3f3 Changelog added 2023-10-13 14:36:11 -07:00
Jon Lane fc1f21b98b Added new flows 2023-10-13 14:35:08 -07:00
Jon Lane 37ededc875 Migration of existing page 2023-10-13 13:37:40 -07:00
Maikel David Pérez Gómez df2bf33bcd
Add edit button to each variation to redirect to the single variation page (#40709)
* Add edit button to each variation to redirect to the single variation page

* Add changelog file

* Fix blocks and plugin registration

* Add router redirection

* Fix css conflicts with the prev experience

* Fix linter errors

* Add changelog file
2023-10-13 16:22:11 -04:00
Maikel David Pérez Gómez 177f8bbe6b
[Virtual] ‘Needs shipping’ toggle (#40735)
* Add virtual section and block to the Shipping tab

* Set shipping disabled when the product is virtual

* Add changelog files

* Fix linter errors
2023-10-13 16:19:32 -04:00
Jonathan Lane f0c5e7a22a
Migrate testing instructions doc from wiki (#40720)
* Migrate testing instructions doc from wiki

* Linting fixes

* Linting fixes

* Updated URLs for images

* Add changelog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-10-13 12:58:01 -07:00
Matt Sherman 161219bf73 Fix linting issues 2023-10-13 15:51:27 -04:00
Matt Sherman 70557d0f8b Changelog 2023-10-13 15:42:50 -04:00
Matt Sherman 0ba4c1d80c CSS naming conventions migration 2023-10-13 15:41:57 -04:00
Matt Sherman 60b77eef28 Naming conventions migration 2023-10-13 15:41:47 -04:00
Maikel David Pérez Gómez ff062eed4d
Add new file dropdown menu (#40731)
* Create downloads menu component

* Add the menu to the downloads section

* Create upload-files-menu-item component

* Add upload-files-menu-item to the downloads menu

* Create media-library-menu-item component

* Fix media library menu item zindex conflict with the media upload modal

* Create insert-url-menu-item component

* Add insert-url-menu-item to the downloads menu

* Add support for digital product when product-virtual-downloadable feature is enabled

* Add changelog files

* Remove non needed style

* Fix linter errors

* Fix redirection logic

* Keep drop zone on to of the table

* Avoid duplicate files

* Stringify download ids before persist them

* Fix summary block property value under SimpleProductTemplate

* Fix linter error
2023-10-13 15:25:37 -04:00
Marco Almeida 2361f0512a
Create 39948-patch-4 changelog file 2023-10-13 18:02:28 +01:00
Alejandro López Ariza 39f8d627bf
Update Action Scheduler to 3.6.4 (#40717)
* Update Action Scheduler to 3.6.4

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-13 12:49:07 +02:00
Niels Lange ac500dcd34
Remove developer doc note 2023-10-13 15:58:10 +07:00
Niels Lange 428ce8ec4f
Save additional *.md liniting error 2023-10-13 13:29:40 +07:00
Niels Lange ab281ac1d2
Fix *.md linting errors 2023-10-13 13:07:51 +07:00
Niels Lange 715b4ccc31
Add docs “Translating WooCommerce” 2023-10-13 12:56:48 +07:00
berislav grgičak f712c23b66
Fix Marketplace theme labels and links (#40661)
* Update search title

* Update no result title

* Open products in the same tab
2023-10-13 05:56:38 +02:00
Chi-Hsuan Huang f743a7d4f6
Fix cys ai font choosing state (#40742)
* Fix chooseFontPairing state

* Add changelog
2023-10-12 20:53:20 -05:00
Chi-Hsuan Huang 322fbd6eb7
Make cys intro page responsive (#40725)
* Make cys intro page responsive

* Add changelog

* Change min-width to 820px

* Change color prompt version
2023-10-12 19:43:32 -05:00
Maikel David Pérez Gómez 985d9596d6
Add Delete variation item to the editor actions menu (#40672)
* Create DeleteVariationMenuItem to be added to the Header's MoreMenu

* Move registration menu item fills to each product/variation page

* Export RemoveConfirmationModal from the product editor package

* Request for variation deletion

* Show notice when deleting variation

* Redirect to parent product page after deleting the variation

* Add tracking event

* Manage isRemoving state under RemoveConfirmationModal

* Add changelog files

* Fix linter error

* Fix delete variation modal title

* Add tracking events

* Use the right prop to get the variation name

* Add name and parent_id to the ProductVariation type definition

* Add changelog file

* Feedback modal should get the correct product id when editing a variation

* Fix rebase conflicts

* Fix unit test
2023-10-12 15:59:13 -04:00
Barry Hughes 2373416574
Hide "Preview" icon when order is locked (#40730) 2023-10-12 09:29:16 -07:00
louwie17 c4c56f3fc8
Add variation switcher in footer for variation page (#40713)
* Add variation switcher in footer for variation page

* Add productId to make sure template is updated correctly

* Don't show bar when less then 2 variations.

* Add class for when page is scrolled to bottom

* Add changelogs

* Add tracks

* Fix lint error

* Fix css lint issues
2023-10-12 11:56:48 -03:00
Chi-Hsuan Huang 61a68131bd
Add wca test tool to reset Customize Your Store task (#40728)
* Add reset cys tool

* Add changelog

* Reset style

* Fix reset template

* Update actions.js

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

---------

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2023-10-12 09:05:58 -05:00
Jason Kytros 40852f160e
Prevent global attribute terms from being automatically selected (#40729)
* Prevent global attribute terms from being automatically selected

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-12 11:03:03 -03:00
Tom Cafferkey 4c060e8b28
Update WooCommerce Blocks to 11.3.0 (#40710) 2023-10-12 13:12:28 +01:00
Chi-Hsuan Huang 12a6bdc58c
[Customize Your Store] Add look and feel tags to color choices (#40698) 2023-10-12 06:58:50 -05:00
Jorge Torres e4f96765de Add changelog 2023-10-12 12:56:59 +01:00
Jorge Torres 74a60c2e9f Hide “Preview” icon when order is locked 2023-10-12 12:56:56 +01:00
Dan Q 874a3b5f7d
Cache Marketplace search results (#40492) 2023-10-12 11:44:37 +01:00
Dan Q 952e4bd7fe Appease linter 2023-10-12 10:56:46 +01:00
Dan Q a23fbbbd63 Manually resolve linting issues created by trunk rebase 2023-10-12 10:35:51 +01:00
Dan Q 53d3f95b3d Add AbortSignal (from trunk) into merged branch 2023-10-12 10:29:43 +01:00
Dan Q 744d07cbee Merge branch 'trunk' into add/wccom-18292-cache-marketplace-results 2023-10-12 10:06:33 +01:00
Chi-Hsuan Huang 532bb3056e
Replace font ai suggestion with pre-defined rule-based approach (#40696) 2023-10-12 01:35:46 -05:00
Chi-Hsuan Huang 2f47695ebc
[Customize Your Store] Preload ai loader image (#40697) 2023-10-12 01:12:24 -05:00
Chi-Hsuan Huang e87835e95b
Improve CYS font/color performance (#40701)
* Move BlockEditorProvider to variation container and set useSubRegistry to true

* Add custom iframe component

* Add changelog
2023-10-12 12:32:20 +08:00
Chi-Hsuan Huang 8be56d7fcf
Add `woocommerce_admin_customize_store_completed_theme_id` option to allowed list (#40695)
* Add woocommerce_admin_customize_store_completed_theme_id option to allowed list

* Add changelog
2023-10-12 12:25:12 +08:00
Ilyas Foo 4bc7964b36
Remove retry button when offline in CYS (#40694)
* Remove retry button and update copy when internet is not available in intro page

* Changelog

* Update test
2023-10-12 10:49:25 +08:00
Fernando Marichal ff51b07da3
Change the blocks editor header to support variations (#40606)
* Add variation name and parent id to REST API

* Add variation title

* Add changelog

* Change changelog

* Fix lint

* Add changelog

* Fix typo

* Modify header check
2023-10-11 15:34:26 -03:00
Maikel David Pérez Gómez 2cff75c73c
Add virtual and downloads related controls to variation management flows (#40567)
* Add Toggle shipping item to the variations quick actions menu

* Add Downloads -> Set download limit item to the variations quick actions menu

* Add Downloads -> Set download expiry item to the variations quick actions menu

* Add Downloads -> Upload files item to the variations quick actions menu

* Add changelog file

* Fix some styles conflicts and set default uploaded files

* Hide the toggle shipping and downloads menu items behind the feature flag product-virtual-downloadable

* Fix unit tests
2023-10-11 12:50:00 -04:00