{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "posts-grid/post-grid",
  "version": "0.1.0",
  "title": "Posts Grid",
  "category": "widgets",
  "icon": "smiley",
  "description": "Example block scaffolded with Create Block tool.",
  "example": {},
  "attributes": {
    "_initialized": {
      "type": "boolean",
      "default": false
    },
    "theme_effect" : {
      "type" : "string",
      "default": "style_1"
    },
    "gs_posts_pagination" : {
      "type":"boolean",
      "default": false
    },
    "pagination_type" : {
      "type" : "string",
      "default": "load-more-button"
    },
    "gs_posts_link_type" : {
      "type": "string",
      "default": "single_page" 
    },
    "gs_posts_name_is_linked" : {
      "type" : "boolean",
      "default" : false
    },
    "item_per_page" : {
      "type": "number",
      "default": 6
    },
    "load_per_click" : {
      "type": "number",
      "default" : 3
    },
    "initial_items" : {
      "type": "number",
      "default": 6
    },
    "per_load" : {
      "type": "number",
      "default": 3
    },
    "load_button_text" : {
      "type":"string",
      "default": "Load More"
    },
    
    "title_tag" : {
      "type": "string",
      "default": "h3"
    },
    "title_length_type" : {
      "type": "string",
      "default": "none"
    },
    "title_length" : {
      "type": "number",
      "default": 10
    },
    "show_thumbnail" : {
      "type": "boolean",
      "default": true
    },
    "show_cat" : {
      "type": "boolean",
      "default": true
    },
    "show_tag" : {
      "type": "boolean",
      "default": true
    },
    "show_date" : {
      "type": "boolean",
      "default": true
    },  
    "date_format" : {
      "type": "string",
      "default": "F j,y"
    },
    "custom_date_format" : {
      "type": "string",
      "default": ""
    },
    "date_icon" : {
      "type": "boolean",
      "default": true
    },
    "show_author" : {
      "type": "boolean",
      "default": true
    },
    "show_details" : {
      "type": "boolean",
      "default": true
    },
    "details_control" : {
      "type": "number",
      "default": 100
    },
    "show_excerpt" : {
      "type": "boolean",
      "default": false
    },
    "image_filter_style" : {
      "type": "string",
      "default": "none"
    },
    "image_filter_hover_style" : {
      "type": "string",
      "default": "none"
    },
    "gs_box_bg_color" : {
      "type": "string",
      "default": "gradient-bg-color"
    },
    "linear_range" : {
      "type": "number",
      "default": ""
    },
    "posts" : {
      "type": "number",
      "default": -1
    },
    "order" : {
      "type": "string",
      "default": "DESC"
    },
    "cat_order_by" : {
      "type": "string",
      "default": "none"
    },
    "cat_order" : {
      "type": "string",
      "default": "desc"
    },
    "columns" : {
      "type": "string",
      "default": "3 columns"
    },
    "columns_tablet" : {
      "type": "string",
      "default": "2 columns"
    },
    "columns_mobile_portrait" : {
      "type": "string",
      "default": "1 columns"
    },
    "columns_mobile" : {
      "type": "string",
      "default": "1 columns"
    },
    "group" : {
      "type": "string",
      "default": ""
    },
    "exclude_group" : {
      "type": "string",
      "default": ""
    },
    "include_tags" : {
      "type": "string",
      "default": ""
    },
    "exclude_tags" : {
      "type": "string",
      "default": ""
    },
    "select_by_title" : {
      "type": "string",
      "default": ""
    },
    "deselect_by_title" : {
      "type": "string",
      "default": ""
    },
    "title_typography" : {
      "type": "object",
      "default": ""
    },
    "cat_typography" : {
      "type": "object",
      "default": ""
    },
    "tag_typography" : {
      "type": "object",
      "default": ""
    },
    "authors_typography" : {
      "type": "object",
      "default": ""
    },
    "date_typography" : {
      "type": "object",
      "default": ""
    },
    "details_typography" : {
      "type": "object",
      "default": ""
    },
    "excerpt_typography" : {
      "type": "object",
      "default": ""
    },
    "gs_posts_filter_type" : {
      "type": "string",
      "default": "normal-filter"
    },
    "gs_filters_by" : {
      "type": "string",
      "default": "categories"
    },
    "gsp_filter_style" : {
      "type": "string",
      "default": "filter--default"
    },
    "gs_p_slide_speed" : {
      "type": "number",
      "default": 500
    },
    "gs_p_is_autop" : {
      "type": "boolean",
      "default": false
    },
    "gs_p_autop_pause" : {
      "type" : "number",
      "default": 2000
    }, 
    "gs_pause_on_hover" : {
      "type": "boolean",
      "default": true
    },
    "gs_p_inf_loop" : {
      "type": "boolean",
      "default": true
    },
    "gs_reverse_direction" : {
      "type": "boolean",
      "default": false
    },
    "gs_p_slider_navs" : {
      "type": "boolean",
      "default": false
    },
    "gs_p_slider_dots" : {
      "type": "boolean",
      "default": true
    },
    "gs_p_ctrl_pos" : {
      "type": "string",
      "default": "carousel-navs-pos--bottom"
    },
    "gsp_navs_style" : {
      "type": "string",
      "default": "nav--default"
    },
    "gsp_dots_style" : {
      "type": "string",
      "default": "dot--default"
    },
    "visibility_settings": {
      "type": "array",
      "default": [
        { "label": "Thumbnail", "key": "show_thumbnail", "desktop": true, "tablet": true, "mobile_landscape": true, "mobile": true },
        { "label": "Title", "key": "gs_l_title", "desktop": true, "tablet": true, "mobile_landscape": true, "mobile": true },
        { "label": "Category", "key": "show_cat", "desktop": true, "tablet": true, "mobile_landscape": true, "mobile": true },
        { "label": "Tag", "key": "show_tag", "desktop": true, "tablet": true, "mobile_landscape": true, "mobile": true },
        { "label": "Date", "key": "show_date", "desktop": true, "tablet": true, "mobile_landscape": true, "mobile": true },
        { "label": "Author", "key": "show_author", "desktop": true, "tablet": true, "mobile_landscape": true, "mobile": true },
        { "label": "Details", "key": "show_details", "desktop": true, "tablet": true, "mobile_landscape": true, "mobile": true },
        { "label": "Excerpt", "key": "show_excerpt", "desktop": true, "tablet": true, "mobile_landscape": true, "mobile": true }
      ]
    }


  },
  "supports": {
    "html": false
    
  },
  "textdomain": "posts-grid",
  "editorScript": "gs-posts-grid-post-grid-editor-script",
  "editorStyle": "file:./index.css"
}