{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "wedocs/wedocs-docs-grid",
  "version": "1.0.0",
  "title": "weDocs Docs Grid",
  "icon": "grid-view",
  "category": "wedocs",
  "description": "Display all the docs in a grid view",
  "example": {
    "attributes": {
      "docStyle": "1x1",
      "showDocArticle": true,
      "showViewDetails": true,
      "buttonText": "View Details"
    }
  },
  "supports": {
    "html": false,
    "align": [
      "wide",
      "full"
    ],
    "anchor": true,
    "color": {
      "background": true,
      "link": true,
      "__experimentalDefaultControls": {
        "background": true
      }
    },
    "spacing": {
      "margin": true,
      "padding": true,
      "blockGap": true,
      "__experimentalDefaultControls": {
        "padding": true,
        "margin": true
      }
    },
    "__experimentalBorder": false
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "render": "file:./render.php",
  "attributes": {
    "docStyle": {
      "type": "string",
      "default": "1x1"
    },
    "docsPerPage": {
      "type": "string",
      "default": "all"
    },
    "excludeDocs": {
      "type": "array",
      "default": []
    },
    "order": {
      "type": "string",
      "default": "asc"
    },
    "orderBy": {
      "type": "string",
      "default": "menu_order"
    },
    "sectionsPerDoc": {
      "type": "string",
      "default": "all"
    },
    "articlesPerSection": {
      "type": "string",
      "default": "all"
    },
    "showDocArticle": {
      "type": "boolean",
      "default": true
    },
    "keepArticlesCollapsed": {
      "type": "boolean",
      "default": false
    },
    "showViewDetails": {
      "type": "boolean",
      "default": true
    },
    "gridPadding": {
      "type": "object",
      "default": {
        "top": "20px",
        "right": "20px",
        "bottom": "20px",
        "left": "20px"
      }
    },
    "gridMargin": {
      "type": "object",
      "default": {
        "top": "0px",
        "right": "0px",
        "bottom": "0px",
        "left": "0px"
      }
    },
    "docTitleColor": {
      "type": "string",
      "default": "#333333"
    },
    "docChildrenActiveColor": {
      "type": "string",
      "default": "#0073aa"
    },
    "borderWidth": {
      "type": "string",
      "default": "1px"
    },
    "borderColor": {
      "type": "string",
      "default": "rgba(0, 0, 0, 0.1)"
    },
    "borderType": {
      "type": "string",
      "default": "solid"
    },
    "borderRadius": {
      "type": "string",
      "default": "4px"
    },
    "buttonBorderRadius": {
      "type": "string",
      "default": "4px"
    },
    "buttonPadding": {
      "type": "object",
      "default": {
        "top": "10px",
        "right": "20px",
        "bottom": "10px",
        "left": "20px"
      }
    },
    "buttonMargin": {
      "type": "object",
      "default": {
        "top": "10px",
        "right": "0px",
        "bottom": "0px",
        "left": "0px"
      }
    },
    "buttonColor": {
      "type": "string",
      "default": "#0073aa"
    },
    "buttonHoverColor": {
      "type": "string",
      "default": "#005177"
    },
    "buttonText": {
      "type": "string",
      "default": "View Details"
    },
    "buttonTextColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "buttonHoverTextColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "paginationTextColor": {
      "type": "string",
      "default": "#333333"
    },
    "paginationTextHoverColor": {
      "type": "string",
      "default": "#0073aa"
    },
    "paginationBackgroundColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "paginationHoverColor": {
      "type": "string",
      "default": "#f5f5f5"
    },
    "paginationBorderColor": {
      "type": "string",
      "default": "#dddddd"
    },
    "titleFontSize": {
      "type": "string",
      "default": ""
    },
    "titleFontWeight": {
      "type": "string",
      "default": ""
    },
    "titleFontFamily": {
      "type": "string",
      "default": ""
    },
    "titleLineHeight": {
      "type": "string",
      "default": ""
    },
    "buttonFontSize": {
      "type": "string",
      "default": ""
    },
    "buttonFontWeight": {
      "type": "string",
      "default": ""
    },
    "buttonFontFamily": {
      "type": "string",
      "default": ""
    },
    "buttonLineHeight": {
      "type": "string",
      "default": ""
    },
    "paginationFontSize": {
      "type": "string",
      "default": ""
    },
    "paginationFontWeight": {
      "type": "string",
      "default": ""
    },
    "paginationFontFamily": {
      "type": "string",
      "default": ""
    },
    "paginationLineHeight": {
      "type": "string",
      "default": ""
    },
    "titleLetterSpacing": {
      "type": "string",
      "default": ""
    },
    "titleTextDecoration": {
      "type": "string",
      "default": ""
    },
    "titleTextTransform": {
      "type": "string",
      "default": ""
    },
    "buttonLetterSpacing": {
      "type": "string",
      "default": ""
    },
    "buttonTextDecoration": {
      "type": "string",
      "default": ""
    },
    "buttonTextTransform": {
      "type": "string",
      "default": ""
    },
    "paginationLetterSpacing": {
      "type": "string",
      "default": ""
    },
    "paginationTextDecoration": {
      "type": "string",
      "default": ""
    },
    "paginationTextTransform": {
      "type": "string",
      "default": ""
    }
  }
}