Maikel David Pérez Gómez
50ff379f25
Delete variations from the single page does not reflect correctly in the parent product ( #40900 )
...
* Invalidate resolution for paginated variations after removing any from the single variation page
* Add changelog file
* Invalidate resolution also for getProductVariationsTotalCount
2023-10-20 13:06:02 -03:00
louwie17
fbac42aafc
Update variation switcher logic to not loop ( #40901 )
2023-10-20 11:17:30 -04:00
Matt Sherman
3fa5573706
Template API: Deprecate woocommerce/conditional block ( #40883 )
2023-10-20 09:53:06 -04:00
Nathan Silveira
3d182f342f
Create React component wrappers for the checkbox and number blocks ( #40828 )
...
* Add @woocommerce/number to @woocommerce/components
* Create a component for checkbox and use it on the block
* Create a component for number and use it on the block
* Add changelogs
* Remove scss import
* Rename Numbercontrol prop
* Expose useProductEntityProp
* Move components to product-editor package and fix UI bug created in checkbox component
* Revert unnecessary changes in components and update changelogs
* Revert changes in use-number-input-props
* Fix issue in checkbox
* Revert css change
2023-10-20 10:52:56 -03:00
Fernando Marichal
3426692606
Hide `Switch to draft` button on single variation page ( #40856 )
...
* Hide Switch to draft when variable product
* Add changelog
* Change changelog
2023-10-20 09:32:06 -04:00
Matt Sherman
61ef8a9fa2
Changelog
2023-10-19 15:34:32 -04:00
Matt Sherman
60fde2be96
Deprecate woocommerce/conditional block
2023-10-19 15:32:40 -04:00
Maikel David Pérez Gómez
8827e42bd7
Set prices button from the variations notice is not updating the right amount of variations ( #40876 )
...
* Improve has_price filter so it can matches when the price record does not exist or it's empty/null
* Get the exact variation ids of those ones that do not have price
* Add changelog files
* Fix linter errors
2023-10-19 13:14:08 -04:00
Matt Sherman
613a63b0ef
Template API: Conditional visibility support ( #40722 )
2023-10-19 12:02:05 -04:00
Matt Sherman
df2a0eb337
Remove productType from ProductEditorContext interface
2023-10-19 11:20:20 -04:00
Fernando Marichal
b0113ee555
Add edit downloads modal ( #40599 )
...
* Create edit downloads modal
* Add modal to downloads
# Conflicts:
# packages/js/product-editor/src/blocks/product-fields/downloads/edit.tsx
* Refactor removeHandler
* Fix EditDownloadsModal
* Refactor onSave
* Add changelog
* Fix onRemove
* Fix styles
* Fix lint
* Fix lint
* Fix modal closing when copyToClipboard
2023-10-19 11:09:04 -04:00
Daniel Mallory
e4b1657f98
Remove references to Sofort ( #40745 )
...
* Removing all references to Sofort in the various locations we show payment method information.
* Adding changelogs.
2023-10-19 13:45:48 +01:00
Matt Sherman
7fd28367d8
Remove order attribute from tab block
2023-10-19 08:28:14 -04:00
Matt Sherman
4605f7ee57
Set tab order based on block's order
2023-10-19 08:23:44 -04:00
Matt Sherman
97dc41e2aa
Remove productType from context (it was really just postType, which is already in context)
2023-10-19 07:43:09 -04:00
Matt Sherman
abd71af40a
Switch conditional block to use postType from context instead of productType
2023-10-19 07:33:29 -04:00
Matt Sherman
b40f9d2035
Switch productType to postType in context augmentation
2023-10-19 07:30:53 -04:00
Matt Sherman
f399196b39
Changelog
2023-10-18 18:57:27 -04:00
Matt Sherman
4a49683a69
Changelog
2023-10-18 18:57:22 -04:00
Matt Sherman
6b6ffd184e
Remove unused imports
2023-10-18 18:44:32 -04:00
Matt Sherman
8a1709a275
Make useEvaluationContext param optional
2023-10-18 18:41:40 -04:00
Matt Sherman
d14124c513
Fix up registerWooBlockType unit test
2023-10-18 18:41:22 -04:00
Matt Sherman
076939f2e4
Ignore ts error about lack of types for @wordpress/data
2023-10-18 15:43:26 -04:00
Matt Sherman
48d5cca0b8
Fix block registration for downloads
2023-10-18 15:16:17 -04:00
Matt Sherman
6b55e7c096
Refactor client-side usesContext augmentation
2023-10-18 15:16:17 -04:00
Matt Sherman
a4002105a4
Refactor client-side attribute augmentation
2023-10-18 15:16:17 -04:00
Matt Sherman
23b2953934
Fix block registration on notice-edit-single-variation
2023-10-18 15:16:17 -04:00
Matt Sherman
2981f14a5b
Fix block registration for downloads
2023-10-18 15:16:17 -04:00
Matt Sherman
b256841135
Use getEditedEntityRecord to get product
2023-10-18 15:16:17 -04:00
Matt Sherman
f466d84bf5
Remove editedProduct from usesContext
2023-10-18 15:16:17 -04:00
Matt Sherman
67e3d72095
Add productType to ProductEditorContext interface
2023-10-18 15:16:17 -04:00
Matt Sherman
6f53697df2
Remove console.log
2023-10-18 15:16:17 -04:00
Matt Sherman
aa942771e5
Fix up TS errors
2023-10-18 15:16:17 -04:00
Matt Sherman
ea6dc94897
Move useEvaluationContext implementation to product-editor
2023-10-18 15:16:17 -04:00
Matt Sherman
334a10a9a4
useEvaluationContext hook
2023-10-18 15:16:17 -04:00
Matt Sherman
e244c8e025
Improve useSelect implementation
2023-10-18 15:16:17 -04:00
Matt Sherman
09b0cdcef7
Memoize block context
2023-10-18 15:16:17 -04:00
Matt Sherman
86a0a15588
Include productType in context; don't include editedProduct
2023-10-18 15:16:17 -04:00
Matt Sherman
7161534f96
Conditional visibility implementation with useSelect
2023-10-18 15:16:17 -04:00
Matt Sherman
5845bcb768
Conditional visibility implementation with context
2023-10-18 15:16:17 -04:00
Matt Sherman
6f2e89adcb
Use registerProductEditorBlockType for variations
2023-10-18 15:16:17 -04:00
Matt Sherman
cb15fbcd34
Use registerProductEditorBlockType for variation-options
2023-10-18 15:16:17 -04:00
Matt Sherman
dbc3c7a77b
Use registerProductEditorBlockType for variation-items
2023-10-18 15:16:17 -04:00
Matt Sherman
9d492800f3
Use registerProductEditorBlockType for tag
2023-10-18 15:16:17 -04:00
Matt Sherman
271258a0c4
Use registerProductEditorBlockType for summary
2023-10-18 15:16:16 -04:00
Matt Sherman
ca9b5c3dd9
Use registerProductEditorBlockType for shipping-dimensions
2023-10-18 15:16:16 -04:00
Matt Sherman
686ad5c026
Use registerProductEditorBlockType for shipping-class
2023-10-18 15:16:16 -04:00
Matt Sherman
e366809711
Use registerProductEditorBlockType for schedule-sale
2023-10-18 15:16:16 -04:00
Matt Sherman
d92d34f9fe
Use registerProductEditorBlockType for sale-price
2023-10-18 15:16:16 -04:00
Matt Sherman
c937b3eea9
Use registerProductEditorBlockType for regular-price
2023-10-18 15:16:16 -04:00