diff --git a/plugins/woocommerce-blocks/assets/js/blocks/product-filter/inner-blocks/attribute-filter/block.json b/plugins/woocommerce-blocks/assets/js/blocks/product-filter/inner-blocks/attribute-filter/block.json
index b8033c77cb3..6a497c20a33 100644
--- a/plugins/woocommerce-blocks/assets/js/blocks/product-filter/inner-blocks/attribute-filter/block.json
+++ b/plugins/woocommerce-blocks/assets/js/blocks/product-filter/inner-blocks/attribute-filter/block.json
@@ -14,7 +14,45 @@
"inserter": false,
"color": {
"text": true,
- "background": false
+ "background": false,
+ "__experimentalDefaultControls": {
+ "text": false
+ }
+ },
+ "typography": {
+ "fontSize": true,
+ "lineHeight": true,
+ "__experimentalFontWeight": true,
+ "__experimentalFontFamily": true,
+ "__experimentalFontStyle": true,
+ "__experimentalTextTransform": true,
+ "__experimentalTextDecoration": true,
+ "__experimentalLetterSpacing": true,
+ "__experimentalDefaultControls": {
+ "fontSize": false
+ }
+ },
+ "spacing": {
+ "margin": true,
+ "padding": true,
+ "blockGap": true,
+ "__experimentalDefaultControls": {
+ "margin": false,
+ "padding": false,
+ "blockGap": false
+ }
+ },
+ "__experimentalBorder": {
+ "color": true,
+ "radius": true,
+ "style": true,
+ "width": true,
+ "__experimentalDefaultControls": {
+ "color": false,
+ "radius": false,
+ "style": false,
+ "width": false
+ }
}
},
"usesContext": [ "query", "queryId" ],
@@ -42,6 +80,18 @@
"isPreview": {
"type": "boolean",
"default": false
+ },
+ "sortOrder": {
+ "type": "string",
+ "default": "count-desc"
+ },
+ "hideEmpty": {
+ "type": "boolean",
+ "default": true
+ },
+ "clearButton": {
+ "type": "boolean",
+ "default":true
}
}
}
diff --git a/plugins/woocommerce-blocks/assets/js/blocks/product-filter/inner-blocks/attribute-filter/components/inspector-controls.tsx b/plugins/woocommerce-blocks/assets/js/blocks/product-filter/inner-blocks/attribute-filter/components/inspector-controls.tsx
deleted file mode 100644
index 7dfd23c4663..00000000000
--- a/plugins/woocommerce-blocks/assets/js/blocks/product-filter/inner-blocks/attribute-filter/components/inspector-controls.tsx
+++ /dev/null
@@ -1,137 +0,0 @@
-/**
- * External dependencies
- */
-import { __, _x } from '@wordpress/i18n';
-import { InspectorControls } from '@wordpress/block-editor';
-import {
- PanelBody,
- ToggleControl,
- // @ts-expect-error - no types.
- // eslint-disable-next-line @wordpress/no-unsafe-wp-apis
- __experimentalToggleGroupControl as ToggleGroupControl,
- // @ts-expect-error - no types.
- // eslint-disable-next-line @wordpress/no-unsafe-wp-apis
- __experimentalToggleGroupControlOption as ToggleGroupControlOption,
-} from '@wordpress/components';
-
-/**
- * Internal dependencies
- */
-import { AttributeSelectControls } from './attribute-select-controls';
-import { EditProps } from '../types';
-
-export const Inspector = ( { attributes, setAttributes }: EditProps ) => {
- const { attributeId, showCounts, queryType, displayStyle, selectType } =
- attributes;
-
- return (
-
{ __(
@@ -318,11 +217,7 @@ const Edit = ( props: EditProps ) => {
if ( attributeOptions.length === 0 )
return (
-
{ __(
@@ -335,12 +230,7 @@ const Edit = ( props: EditProps ) => {
);
return (
-