Ron Rennick
4fa2e3822c
Update the monorepo to node v20 ( #45148 )
...
* test bumping node to v18
* remove community contributor condition from review assignment
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* bump node to v20
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, packages/php/remote-specs-validation, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* add blocks eslint-plugin-woocommerce to project workspace
* add e2e-environment as a peer to e2e-utils
* restore version on @woocommerce/api
* update lock file
* move e2e-environment to devDependencies
* add undefined location check to admin js test
---------
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-12 13:49:55 -03:00
Nathan Silveira
5e3d372e5f
Prepare @woocommerce/product-editor for release 1.5 ( #46543 )
2024-04-12 12:03:37 -03:00
Oleksandr Aratovskyi
5bcbb52a9b
Remove BNPL (Klarna) apm and fix icons on wcpay welcome page ( #46523 )
...
* Update payment method icons
* Use latest payment methods icons on wcpay weclome page
* Style payment icons on wcpay welcome page similarly to connect page
* Remove BNPL from wcpay welcome page additional payment methods
* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, woocommerce
* Fix warnings on CB payment method
* Fix lint error
* Change discover icon to new
---------
Co-authored-by: oaratovskyi <oleksandr.aratovskyi@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-12 17:07:12 +03:00
Nathan Silveira
027f83f1fa
Remove Media Library menu item from Downloads section ( #46490 )
...
* Remove MediaLibraryMenuItem from downloads
* Add changelog
2024-04-12 11:03:10 -03:00
Nathan Silveira
0b69d4d6f7
Prepare @woocommerce/admin-layout and block-templates for release ( #46538 )
...
* Prepare @woocommerce/block-templates for release
* Prepare @woocommerce/admin-layout for release
* Revert mistake
2024-04-12 13:52:36 +00:00
Fernando Marichal
d8037dd154
Add menu item to Publish button with copy to draft ( #46294 )
...
* Add duplicate product store
* Add copyToDraft method
* Add copy to draft button
* Modify success notice
* Add changelogs
* Update name before saving product
* Add comment to code
2024-04-12 10:19:12 -03:00
Nathan Silveira
450b06a1e1
Always use productTemplateId when available and use editedRecord in useEntityRecord hooks ( #46395 )
...
* Use editedRecord instead of record
* Always use productTemplateId when available
* Change private methods to protected in ProductVariationTemplate
* Use editedRecord in hook useEntityRecord
* Update changelogs
* Restore attribute renamed by mistake
* Change useProductTemplate unit test
2024-04-12 10:16:35 -03:00
Damián Suárez
5db25ea616
[Product Block Editor]: expose __experimentalSectionActions component ( #46515 )
...
* add basic Readme.md file
* expose __experimentalSectionActions component
* changelog
* update readme example
2024-04-12 05:48:40 -04:00
Ron Rennick
c6048b5c49
Add glob, rimraf, and uuid to Syncpack ( #46278 )
...
* add uuid to syncpack
* add rimraf to syncpack
* add glob to syncpack
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/product-editor, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/integrate-plugin, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/components, @woocommerce/block-templates, @woocommerce/ai, @woocommerce/admin-layout, @woocommerce/admin-e2e-tests, woocommerce
---------
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-11 12:52:49 -03:00
Matt Sherman
4ba72b2258
Product Editor API: Add tooltip attribute to woocommerce/product-select-field block ( #46447 )
2024-04-11 07:20:57 -04:00
Nathan Silveira
3fb744313b
Add isSelectableByUser attribute to product templates ( #46394 )
...
* Add selectable attribute in product template to allow creation of product templates that do not appear on the "Change product type" UI
* Always use productTemplateId when available, otherwise fallback to standard-product-template
* Rename attribute
* Use editedRecord in hook useEntityRecord
* Revert "Always use productTemplateId when available, otherwise fallback to standard-product-template"
This reverts commit 2960fcd520
.
* Revert "Use editedRecord in hook useEntityRecord"
This reverts commit c28e005e7b
.
* Add changelogs
* Fix unit tests
* Increment changelog
2024-04-10 17:57:42 +00:00
Chi-Hsuan Huang
95b36650d7
Fix Launch Your Store task item should not be clickable once completed ( #46361 )
...
* Fix Launch Your Store task item should not be clickable once completed
* Add changefile(s) from automation for the following project(s): @woocommerce/experimental, woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
2024-04-10 20:32:15 +08:00
Leif Singer
8ee74ede0e
Update Woo.com references to WooCommerce.com ( #46259 )
...
* replace capitalized Woo.com with WooCommerce.com
* replace http URLs
* replace https URLs
* replace developer.woo.com
* add missing version in `@since` tag
* unslash the HTTP_REFERER
* WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
* add changelog file
* add more changelog files
* address linter errors
* address more linter errors
* fix test
* more linter errors
2024-04-09 09:50:15 +01:00
Fernando Marichal
931aec84e8
[Linked products] - Change number of 'choose products for me' to 4 ( #46094 )
...
* Add limit to "choose products for me"
* Add changelog
2024-04-05 11:35:59 -03:00
Ilyas Foo
7e7be4f9d0
Add launch your store success screen ( #46103 )
...
* Initial commit with LYS components
* Update CustomerFeedbackSimple component to support emoji value props
* Add confetti package in woocommerce components
* Add confetti usage
* Remove unnecessary files
* Update pnpm lock
* Changelogs
* Lint and temporarily comment out tests
* Lint css and rename image
* Various fixes
* Rename transitional to congrats
* Add copy link functionaility from Moon's code and move whatsnext component
* Rename components
* Move and renames
* Fix ref type
* Add temporary dynamic actions
* Remove confetti background
* Add header
* Update xstate actions for launch success page
* Add temporary spinner
* Combine congrats data fetching to a single action and service
* Add functioning dynamic actions list
* Temporarily remove test
* Cleanups
* More cleanups
* Small lint
* add url listener for content param
* Update comment on confetti package
* Remove lodash and replace with reduce
* Fix Woo Express condition
---------
Co-authored-by: rjchow <me@rjchow.com>
2024-04-05 10:44:57 +08:00
Nima Karimi
1dc97f0801
[Woo AI] Add JSON response format ( #46137 )
...
* Add response_format to Woo AI package
* Add changelog
* Request JSON response format for product name generation
* Add changelog
* Add shared types
2024-04-03 21:37:39 +03:00
Damián Suárez
df2ba716ef
[Product Block Editor]: disable TextArea RichText instance according to `disabled` attribute value ( #46089 )
...
* get ready to disable text-area block
* changelog
* update doc
2024-04-02 10:56:52 -04:00
Nathan Silveira
e2eaa55b7d
Apply filter to add metadata for generated variations ( #45953 )
...
* Add meta_data parameter in generateProductVariations
* Apply filter to get meta_data to generate variations
* Add meta_data parameter in generate variations endpoint
* Update name and add documentation
* Fix useEntityRecord in blockEditor
2024-04-02 05:25:01 -03:00
Maikel Perez
75a563df58
Redirect to the edit product page after changing the product type and publishing it ( #46092 )
...
* Redirect to the edit product page after changing the product type and publishing it
* Add changelog file
2024-04-01 14:43:35 -03:00
Oleksandr Aratovskyi
14cd6e6dfd
Remove ToS acceptance in WCPay banner and promotions JSON ( #46003 )
...
* Remove ToS acceptance in WCPay banner and promotions JSON
* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, packages/php/remote-specs-validation
* Add line break in banner to look nicer
* Center banner content
* Style banner for mobile version
* fix js test to use another block (previous one no longer exist)
* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, packages/php/remote-specs-validation, woocommerce
* Add comment to css
---------
Co-authored-by: oaratovskyi <oleksandr.aratovskyi@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 14:59:29 +02:00
Matt Sherman
468c5e61bf
Product Editor: Accessible label for text area block ( #45968 )
...
* Add aria-labelledby attribute to rich text component
* Handle label click to focus rich text
* Remove unneeded ts-ignore
* Pass in label ID explicitly instead of hardcoding knowledge of its naming pattern
* Changelog
* Add tooltip attribute to block.json
* Focus text area when clicking on label
* Remove Label id... not needed
* Set text area labelled by to label
* Add aria-required to rich text
* Hide required asterisks from aria
2024-03-28 05:24:16 -03:00
Fernando Marichal
89bbebe6b8
Change Tracks event name for Quick variations menu action ( #45889 )
...
* Rename tracks event
* Add changelog
2024-03-27 10:59:10 -03:00
Matt Sherman
9000fd764e
Product Editor: Only send edited properties when saving ( #45958 )
...
* Only send edited properties
* Changelog
* Rename const to match previous code
* Remove all the logic to look up the entity key... we know it is 'id' for products
2024-03-27 05:21:32 -03:00
dependabot[bot]
0a7fcb8324
Bump composer/composer from 2.6.5 to 2.7.0 in /packages/php/monorepo-plugin ( #44460 )
...
Bump composer/composer in /packages/php/monorepo-plugin
Bumps [composer/composer](https://github.com/composer/composer ) from 2.6.5 to 2.7.0.
- [Release notes](https://github.com/composer/composer/releases )
- [Changelog](https://github.com/composer/composer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/composer/composer/compare/2.6.5...2.7.0 )
---
updated-dependencies:
- dependency-name: composer/composer
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-25 11:08:22 -03:00
Paweł Nguyen
e610b5048c
Fix homepage link in create-woo-extension package.json ( #45811 )
...
* Fix homepage link in package.json
* Add changefile(s) from automation for the following project(s): @woocommerce/create-woo-extension
---------
Co-authored-by: github-actions <github-actions@github.com>
2024-03-22 17:09:27 -03:00
Matt Sherman
37e58a982a
Product Editor: Show correct Publish/Schedule button label when timezone is behind UTC (UTC-1, UTC-4, UTC-9, etc.) ( #45848 )
...
* Use useProductScheduled to determine button label
* Changelog
2024-03-22 14:18:32 -04:00
Nathan Silveira
ff79576cd3
Fix word break inside columns in product editor ( #45687 )
2024-03-22 14:42:15 -03:00
Maikel Perez
54476cb7f3
After Variations are created, disable the fields that don’t do anything ( #45838 )
...
* Disable woocommerce/product-regular-price-field when product type is variable
* Disable woocommerce/product-sale-price-field when product type is variable
* Disable woocommerce/product-sku-field when product type is variable
* Disable Track stock quantity toggle when product type is variable
* Disable woocommerce/product-radio-field when product type is variable
* Disable woocommerce/product-shipping-class-field when product type is variable
* Disable woocommerce/product-shipping-dimensions-fields when product type is variable
* Add changelog files
* Fix php linter
2024-03-22 13:52:42 -03:00
Damián Suárez
27124828e9
[Product Block Editor]: register `metadata` attribute for all blocks ( #45657 )
...
* register the `metadata` attribute for all blocks
* bind value attribute with the nane product entity
* changelog
* add a ToDo note
* rename edit component fn to NameBlockEdit
* changelog
* restore @ts-export line
* fix eslint issue
* fix eslint issue
2024-03-22 12:23:38 -04:00
Fernando Marichal
3842611975
Update copy of inventory management fields ( #45801 )
...
* Update copy of inventory management fields
* Add changelog
* Add changelog
2024-03-22 11:49:54 -03:00
Fernando Marichal
4a0d7f5822
Enable 'Publish' button when product status is draft ( #45812 )
...
* Enable publish button when draft
* Add changelog
2024-03-22 11:49:22 -03:00
Fernando Marichal
dd550ddca4
Add an image to multiple variations using Quick updates ( #45774 )
...
* Add component
* Add utils
* Add styles
* Use utils in images block
* Add changelog
* Add tracks event
* Add mode upload by default
* Fix js tests
* Fix variation-actions-menus tests
2024-03-22 11:49:11 -03:00
Damián Suárez
72d2a39de2
[Product Block Editor]: document woocommerce/product-text-area-field field block ( #45513 )
...
* [Product Block Editor]: document `woocommerce/product-text-area-field` block
* changelog
2024-03-21 10:49:04 -04:00
Damián Suárez
b357bdc593
[Product Block Editor]: introduce `woocommerce/entity-product` source handler ( #45616 )
...
* introduce woocommerce/entity-product source handler
* add test for product entity source handler
* add useSource value test
* changelog
* clean unused helper
* minor TS changes
* rename TS type
2024-03-21 09:00:23 -04:00
Fernando Marichal
50bec2d1b0
Change hidden tag behavior ( #45766 )
...
* Modify header hidden tag
* Modify visibility section hidden tag
* Add changelog
2024-03-20 15:34:33 -03:00
Matt Sherman
4272a782a6
Product Editor: Fix crash when uploading files from variations list Quick Update menu ( #45748 )
...
* Handle when downloads menu is passed an empty selection
* Changelog
2024-03-20 14:24:15 -04:00
Mahesh Bohara
6ce72a25ba
Add loading state functionality to Schedule button in the calendar ( #45645 )
...
* Add loading state functionality to Schedule button in the calendar
* Add changelog
* Updated changelog file
2024-03-19 14:45:27 -04:00
Lee Willis
b88821f685
Introduce handleConfirm. Export handlePrompt & handleConfirm from product-editor ( #44226 )
...
* Introduce handleConfirm. Export handlePrompt, and handleConfirm from product-editor
* Change as requested
* Add changelog
* Fix onCancel behaviour
* Fix lint error
---------
Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
Co-authored-by: Matt Sherman <matt@jam123.com>
2024-03-19 14:11:14 -04:00
Fernando Marichal
99853c19bf
Fix double scroll bar in pre-publish panel ( #45671 )
...
* Fix double scroll bar
# Conflicts:
# packages/js/product-editor/src/components/prepublish-panel/style.scss
* Add changelog
* Add comment to styles
2024-03-19 15:06:30 -03:00
Fernando Marichal
298ed3c680
Fix section title styles in the pre-publish panel on WP 6.5 ( #45689 )
...
* Fix section title
* Add changelog
2024-03-19 13:21:29 -03:00
Maikel Perez
c2f33b2f5b
Replace the Draft tag with a Scheduled tag in the product header ( #45685 )
...
* Show Scheduled product header tag when the product is been scheduled
* Fix the pre publish modal header message when to say scheduled when the product has a date in the future
* Add changelog file
2024-03-19 16:20:19 +00:00
Maikel Perez
617b49464e
Hidden tag inconsistency ( #45679 )
...
* Header tag Hidden now is aligned with the Visibility: Hidden from the pre publish modal
* Add changelog file
2024-03-19 16:16:34 +00:00
Fernando Marichal
506a8b0086
Fix publish dropdown visibility in new product after hiding pre-publish modal ( #45682 )
...
* Publish dropdown visible after hidding panel
* Add changelog
* Rename prop
2024-03-19 13:15:33 -03:00
Maikel Perez
dea68ee3e3
Handle taxes not being enabled and customized tax classes ( #45531 )
...
* Create and register the woocommerce/product-select-field block
* Replace the tax class radio group block by woocommerce/product-select-field block
* Hide tax fields when taxes are disabled
* Hide tax fields when taxes are disabled in product variations
* Add changelog files
* Fix linter errors
2024-03-18 18:09:03 +00:00
Fernando Marichal
ee044a7b50
Remove the "Always show pre-publish checks" from pre-publish panel ( #45672 )
...
* Remove "always show prepublish panel"
* Add changelog
2024-03-18 14:00:21 -04:00
Matt Sherman
52d300f2a9
Product Editor: Disable description full editor when using an incompatible version of Gutenberg ( #45650 )
...
* Check Gutenberg version and prevent full editor use if using a version that causes crash
* Changelog
2024-03-18 02:23:08 -04:00
Matt Sherman
c658b1c163
Product Editor: Fix editor crash when clicking in editor margin when summary or description fields are focused ( #45608 )
...
* Revert dashboard size (changed in #44166 )
* Hide toolbar on blur of text-area
* useClearSelectedBlockOnBlur hook
* Use useClearSelectedBlockOnBlur hook to hide toolbar
* Changelog
* Update packages/js/product-editor/src/hooks/use-clear-selected-block-on-blur/use-clear-selected-block-on-blur.ts
---------
Co-authored-by: Damián Suárez <rdsuarez@gmail.com>
2024-03-15 05:54:34 -04:00
Seghir Nadir
4be06d8959
Add support for WooCommerce Analytics module in @woocommerce/explat ( #45131 )
...
* support running A/B tests in frontend
* add optional chaining
* Add changefile(s) from automation for the following project(s): @woocommerce/explat
* switch to shared variable
* fix tests
---------
Co-authored-by: github-actions <github-actions@github.com>
2024-03-14 21:43:52 +00:00
Matt Sherman
afe0e0724b
Product Editor: Handle loading of product editor when global settings are not available on initial render ( #45490 )
...
* Do not pass settings from global down to editor; let BlockEditor handle loading settings itself
* Changelog
* Changelog
2024-03-14 13:02:40 -04:00
Nathan Silveira
7fdaf53a88
Match template based on different attributes besides product types ( #45454 )
...
* Match template based on different attributes besides product types
* Do not hard-code postType
* Refactor code
* Handle isResolving from useEntityRecord
* Refactor useProductTemplate
* Handle null value in `useProductTemplate`
2024-03-14 10:51:42 -03:00