Unify Product Elements inserter category to "WooCommerce Product Elements" (#46064)

* Unify the category for all Product Elements

* Add changelog

* Bring back category to product elements that don't use shared confiug

* Add specific category to some Product Elements blocks registered only for Single Product template
This commit is contained in:
Karol Manijak 2024-04-02 13:04:13 +02:00 committed by GitHub
parent 81bef3e641
commit 1f49f712b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 15 additions and 14 deletions

View File

@ -3,15 +3,15 @@
"version": "1.0.0",
"title": "Add to Cart with Options",
"description": "Display a button so the customer can add a product to their cart. Options will also be displayed depending on product type. e.g. quantity, variation.",
"category": "woocommerce-product-elements",
"attributes": {
"isDescendentOfSingleProductBlock": {
"type": "boolean",
"default": false
}
},
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"usesContext": ["postId"],
"usesContext": [ "postId" ],
"textdomain": "woocommerce",
"apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json"

View File

@ -3,12 +3,12 @@
"version": "1.0.0",
"title": "Product Average Rating (Beta)",
"description": "Display the average rating of a product",
"category": "woocommerce-product-elements",
"attributes": {
"textAlign": {
"type": "string"
}
},
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"ancestor": [ "woocommerce/single-product" ],
"textdomain": "woocommerce",

View File

@ -3,7 +3,7 @@
"version": "1.0.0",
"title": "Add to Cart Button",
"description": "Display a call to action button which either adds the product to the cart, or links to the product page.",
"category": "woocommerce",
"category": "woocommerce-product-elements",
"keywords": [ "WooCommerce" ],
"usesContext": [ "query", "queryId", "postId" ],
"textdomain": "woocommerce",
@ -58,9 +58,7 @@
"label": "Outline"
}
],
"viewScript": [
"wc-product-button-interactivity-frontend"
],
"viewScript": [ "wc-product-button-interactivity-frontend" ],
"apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json"
}

View File

@ -4,7 +4,7 @@
"icon": "info",
"title": "Product Details",
"description": "Display a product's description, attributes, and reviews.",
"category": "woocommerce",
"category": "woocommerce-product-elements",
"keywords": [ "WooCommerce" ],
"supports": {
"align": true,

View File

@ -4,7 +4,7 @@
"title": "Product Image Gallery",
"icon": "gallery",
"description": "Display a product's images.",
"category": "woocommerce",
"category": "woocommerce-product-elements",
"supports": {
"align": true,
"multiple": false

View File

@ -4,7 +4,7 @@
"title": "Product Meta",
"icon": "product",
"description": "Display a products SKU, categories, tags, and more.",
"category": "woocommerce",
"category": "woocommerce-product-elements",
"supports": {
"align": true,
"reusable": false

View File

@ -4,7 +4,7 @@
"icon": "admin-comments",
"title": "Product Reviews",
"description": "A block that shows the reviews for a product.",
"category": "woocommerce",
"category": "woocommerce-product-elements",
"keywords": [ "WooCommerce" ],
"supports": {},
"attributes": {},

View File

@ -3,6 +3,7 @@
"version": "1.0.0",
"title": "Product Rating Counter",
"description": "Display the review count of a product",
"category": "woocommerce-product-elements",
"attributes": {
"productId": {
"type": "number",
@ -26,7 +27,6 @@
}
},
"usesContext": [ "query", "queryId", "postId" ],
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"supports": {
"align": true

View File

@ -3,6 +3,7 @@
"version": "1.0.0",
"title": "Product Rating Stars",
"description": "Display the average rating of a product with stars",
"category": "woocommerce-product-elements",
"attributes": {
"productId": {
"type": "number",
@ -26,7 +27,6 @@
}
},
"usesContext": [ "query", "queryId", "postId" ],
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"supports": {
"align": true

View File

@ -27,7 +27,6 @@
}
},
"usesContext": [ "query", "queryId", "postId" ],
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"supports": {
"align": true

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Product Elements: unify the Product Elements inserter category