{
  "apiVersion": 3,
  "title": "Brandy Product Collection",
  "name": "brandy/product-collection",
  "category": "brandy-blocks",
  "description": "Display products as a responsive grid or slider, with one editable product template repeated for every result.",
  "keywords": [
    "products",
    "woocommerce",
    "shop",
    "grid",
    "slider",
    "carousel"
  ],
  "attributes": {
    "queryId": {
      "type": "number"
    },
    "query": {
      "type": "object",
      "default": {
        "postType": "product",
        "perPage": 8,
        "offset": 0,
        "orderBy": "date",
        "order": "desc",
        "categories": [],
        "tags": [],
        "featured": false,
        "onSale": false,
        "hideOutOfStock": false,
        "inherit": false,
        "pagination": false,
        "relatedBy": {
          "categories": false,
          "tags": false
        },
        "excludeCurrent": false,
        "isBrandyProductCollection": true
      }
    },
    "displayLayout": {
      "type": "object",
      "default": {
        "columns": 4,
        "columnsTablet": 2,
        "columnsMobile": 1,
        "imageRatio": "auto"
      }
    },
    "slider": {
      "type": "object",
      "default": {
        "enabled": false,
        "loop": true,
        "autoPlay": false,
        "autoPlayDelay": 3000,
        "showButtons": true,
        "showDots": false,
        "controlsPlacement": "",
        "controlsNav": "",
        "controlsDots": "",
        "controlsReveal": "",
        "dimInactiveSlides": false,
        "controlsNavColors": {},
        "controlsDotsColors": {},
        "buttonsOffsetBasedOnImage": false,
        "pauseOnHover": false,
        "axis": {
          "desktop": "x",
          "tablet": "x",
          "mobile": "x"
        },
        "viewportHeight": ""
      }
    }
  },
  "providesContext": {
    "query": "query",
    "queryId": "queryId",
    "displayLayout": "displayLayout",
    "slider": "slider"
  },
  "allowedBlocks": [
    "brandy/product-template",
    "core/query-pagination",
    "core/query-no-results"
  ],
  "variations": [
    {
      "name": "default",
      "title": "Brandy Product Collection",
      "description": "Latest products in a responsive grid.",
      "isDefault": true
    },
    {
      "name": "slider",
      "title": "Product Slider",
      "description": "The same collection as a draggable carousel.",
      "attributes": {
        "slider": {
          "enabled": true,
          "loop": true,
          "autoPlay": false,
          "autoPlayDelay": 3000,
          "showButtons": true,
          "showDots": false,
          "controlsPlacement": "",
          "controlsNav": "",
          "controlsDots": "",
          "controlsReveal": "",
          "controlsNavColors": {},
          "controlsDotsColors": {},
          "buttonsOffsetBasedOnImage": false
        }
      },
      "isActive": [
        "slider.enabled"
      ]
    },
    {
      "name": "on-sale",
      "title": "On Sale Products",
      "description": "Only products currently on sale.",
      "attributes": {
        "query": {
          "postType": "product",
          "perPage": 8,
          "offset": 0,
          "orderBy": "date",
          "order": "desc",
          "categories": [],
          "tags": [],
          "featured": false,
          "onSale": true,
          "hideOutOfStock": false,
          "inherit": false,
          "pagination": false,
          "relatedBy": {
            "categories": false,
            "tags": false
          },
          "excludeCurrent": false,
          "isBrandyProductCollection": true
        }
      },
      "isActive": [
        "query.onSale"
      ]
    },
    {
      "name": "best-sellers",
      "title": "Best Sellers",
      "description": "Products ordered by total sales.",
      "attributes": {
        "query": {
          "postType": "product",
          "perPage": 8,
          "offset": 0,
          "orderBy": "popularity",
          "order": "desc",
          "categories": [],
          "tags": [],
          "featured": false,
          "onSale": false,
          "hideOutOfStock": false,
          "inherit": false,
          "pagination": false,
          "relatedBy": {
            "categories": false,
            "tags": false
          },
          "excludeCurrent": false,
          "isBrandyProductCollection": true
        }
      },
      "isActive": [
        "query.orderBy"
      ]
    }
  ],
  "supports": {
    "reusable": false,
    "html": false,
    "align": [
      "wide",
      "full"
    ],
    "spacing": {
      "margin": true,
      "padding": true
    },
    "interactivity": true
  },
  "example": {
    "viewportWidth": 1400
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css"
}