Allow visible_if to be used on all types.
I know that Shopify are explicitly listed the types this property is available on, but reality seems to be that this is supported on all types.
I personally use it on product_list and collection types.
I think the use case is obvious.
ValidSchema is the check that fails.
Example code:
{
"type": "collection",
"id": "collection",
"label": "Collection",
"visible_if": "{{ block.settings.source_type == 'collection' }}"
},
{
"type": "product_list",
"id": "list",
"label": "Products",
"visible_if": "{{ block.settings.source_type == 'list' }}"
}