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", "version": "1.0.0",
"title": "Add to Cart with Options", "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.", "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": { "attributes": {
"isDescendentOfSingleProductBlock": { "isDescendentOfSingleProductBlock": {
"type": "boolean", "type": "boolean",
"default": false "default": false
} }
}, },
"category": "woocommerce",
"keywords": [ "WooCommerce" ], "keywords": [ "WooCommerce" ],
"usesContext": ["postId"], "usesContext": [ "postId" ],
"textdomain": "woocommerce", "textdomain": "woocommerce",
"apiVersion": 2, "apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json" "$schema": "https://schemas.wp.org/trunk/block.json"

View File

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

View File

@ -3,7 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"title": "Add to Cart Button", "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.", "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" ], "keywords": [ "WooCommerce" ],
"usesContext": [ "query", "queryId", "postId" ], "usesContext": [ "query", "queryId", "postId" ],
"textdomain": "woocommerce", "textdomain": "woocommerce",
@ -58,9 +58,7 @@
"label": "Outline" "label": "Outline"
} }
], ],
"viewScript": [ "viewScript": [ "wc-product-button-interactivity-frontend" ],
"wc-product-button-interactivity-frontend"
],
"apiVersion": 2, "apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json" "$schema": "https://schemas.wp.org/trunk/block.json"
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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