This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-16
lines changed
assets/js/blocks/product-categories Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 44 "category" : " woocommerce" ,
55 "description" : " Show all product categories as a list or dropdown." ,
66 "keywords" : [ " WooCommerce" ],
7+ "supports" : {
8+ "align" : [ " wide" , " full" ],
9+ "html" : false ,
10+ "color" : {
11+ "background" : false ,
12+ "link" : true
13+ },
14+ "typography" : {
15+ "fontSize" : true ,
16+ "lineHeight" : true
17+ }
18+ },
719 "attributes" : {
820 "align" : {
921 "type" : " string"
Original file line number Diff line number Diff line change 33 */
44import { createBlock , registerBlockType } from '@wordpress/blocks' ;
55import { Icon , listView } from '@wordpress/icons' ;
6- import { isFeaturePluginBuild } from '@woocommerce/block-settings' ;
76
87/**
98 * Internal dependencies
@@ -22,21 +21,6 @@ registerBlockType( metadata, {
2221 />
2322 ) ,
2423 } ,
25- supports : {
26- align : [ 'wide' , 'full' ] ,
27- html : false ,
28- ...( isFeaturePluginBuild ( ) && {
29- color : {
30- background : false ,
31- link : true ,
32- } ,
33- typography : {
34- fontSize : true ,
35- lineHeight : true ,
36- } ,
37- } ) ,
38- } ,
39-
4024 transforms : {
4125 from : [
4226 {
You can’t perform that action at this time.
0 commit comments