{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "cozy-block/magazine-grid",
  "title": "Magazine Grid (Pro)",
  "description": "Showcase your posts categorically with multiple layout options. Easily feature a specific post to highlight important content. Enhance your site's look and keep visitors engaged with our versatile and customizable 'Magazine Grid' block.",
  "category": "cozy-block/post-magazine",
  "keywords": [
    "magazine",
    "post"
  ],
  "textdomain": "cozy-addons",
  "supports": {
    "html": false,
    "color": {
      "background": false,
      "link": false,
      "text": true
    },
    "spacing": {
      "padding": true,
      "margin": [
        "top",
        "bottom"
      ],
      "__experimentalDefaultControls": {
        "padding": true
      }
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontStyle": true,
      "__experimentalFontWeight": true,
      "__experimentalTextTransform": true,
      "__experimentalFontFamily": true,
      "__experimentalLetterSpacing": true,
      "__experimentalTextDecoration": true,
      "__experimentalSkipSerialization": [
        "textDecoration"
      ],
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    }
  },
  "attributes": {
    "cover": {
      "type": "string",
      "default": ""
    },
    "clientId": {
      "type": "string",
      "default": ""
    },
    "style": {
      "type": "object",
      "default": {
        "typography": {
          "fontSize": "14px"
        }
      }
    },
    "perPage": {
      "type": "number",
      "default": 6
    },
    "sortBy": {
      "type": "string",
      "default": "latest"
    },
    "exclude": {
      "type": "string",
      "default": ""
    },
    "offset": {
      "type": "string",
      "default": ""
    },
    "layout": {
      "type": "string",
      "default": "featured-left"
    },
    "enableOptions": {
      "type": "object",
      "default": {
        "heading": true,
        "subHeading": true,
        "ignoreSticky": true,
        "postImage": true,
        "imgLinkPost": true,
        "imgLinkNewTab": false,
        "titleLinkPost": true,
        "titleLinkNewTab": false,
        "postContent": true,
        "featuredPostContent": true,
        "postExcerpt": 20,
        "featuredPostExcerpt": 30,
        "readMore": true,
        "featuredReadMore": true,
        "readMoreNewTab": false,
        "postAuthor": true,
        "featuredPostAuthor": true,
        "postComments": true,
        "feauredPostComments": true,
        "postDate": true,
        "enableMetaIcon": true,
        "featuredPostDate": true,
        "linkPostMeta": true,
        "postMetaNewTab": false,
        "postCategories": true,
        "featuredPostCategories": true,
        "enableFeaturedMetaIcon": true,
        "linkCat": true,
        "catNewTab": false
      }
    },
    "headingLabel": {
      "type": "string",
      "default": "Featured"
    },
    "headingTag": {
      "type": "string",
      "default": "h2"
    },
    "headingGap": {
      "type": "string",
      "default": "16px"
    },
    "headerBox": {
      "type": "object",
      "default": {
        "tabAlign": "space-between",
        "padding": {
          "top": "6px",
          "right": "6px",
          "bottom": "6px",
          "left": "6px"
        },
        "margin": {
          "top": "0px",
          "bottom": "12px"
        },
        "border": {
          "top": {
            "width": "",
            "style": "",
            "color": ""
          },
          "right": {
            "width": "",
            "style": "",
            "color": ""
          },
          "bottom": {
            "width": "1px",
            "style": "solid",
            "color": "#e2e2e2"
          },
          "left": {
            "width": "",
            "style": "",
            "color": ""
          }
        },
        "radius": "0px",
        "color": {
          "bg": ""
        }
      }
    },
    "headingStyles": {
      "type": "object",
      "default": {
        "padding": {
          "top": "0px",
          "right": "0px",
          "bottom": "0px",
          "left": "0px"
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": {
          "top": "0px",
          "right": "0px",
          "bottom": "0px",
          "left": "0px"
        },
        "clipPath": "",
        "font": {
          "size": "18px",
          "weight": "600",
          "family": "Public Sans"
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "bg": "",
          "text": ""
        }
      }
    },
    "subHeading": {
      "type": "object",
      "default": {
        "label": "View All",
        "tag": "h3",
        "padding": {
          "top": "0px",
          "right": "0px",
          "bottom": "0px",
          "left": "0px"
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "0px",
        "font": {
          "size": "14px",
          "weight": "500",
          "family": "Public Sans"
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "text": "",
          "textHover": "",
          "bg": "",
          "bgHover": "",
          "borderHover": ""
        }
      }
    },
    "selectedCategory": {
      "type": "string",
      "default": ""
    },
    "featuredPostOptions": {
      "type": "object",
      "default": {
        "enabled": true,
        "imageOverlay": false,
        "source": "default",
        "sticky": true,
        "rowGap": "26px",
        "columnGap": "16px",
        "textAlign": "left",
        "image": {
          "margin": {
            "top": "0px",
            "bottom": "10px"
          },
          "height": "450px",
          "radius": "0px"
        },
        "content": {
          "padding": {
            "top": "0px",
            "right": "0px",
            "bottom": "0px",
            "left": "0px"
          },
          "margin": {
            "top": 0,
            "bottom": "0px"
          },
          "border": {
            "width": "",
            "style": "",
            "color": ""
          },
          "radius": "0px",
          "outerHGap": "0px",
          "outerVGap": "0px",
          "position": "relative",
          "color": {
            "bg": ""
          }
        },
        "title": {
          "className": "",
          "margin": {
            "top": "4px",
            "bottom": "6px"
          },
          "font": {
            "size": "22px",
            "weight": "600",
            "family": "Public Sans"
          },
          "letterCase": "none",
          "decoration": "none",
          "lineHeight": "",
          "letterSpacing": "",
          "color": {
            "text": "#090b10",
            "textHover": "#f90"
          }
        },
        "postID": "",
        "position": "left"
      }
    },
    "postBoxStyles": {
      "type": "object",
      "default": {
        "padding": {
          "top": "0px",
          "right": "0px",
          "bottom": "0px",
          "left": "0px"
        },
        "margin": {
          "top": "0px",
          "bottom": "0px"
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "0px",
        "color": {
          "bg": "",
          "bgHover": "",
          "borderHover": ""
        },
        "shadow": {
          "enabled": false,
          "horizontal": 0,
          "vertical": 0,
          "blur": 0,
          "spread": 0,
          "color": "",
          "position": ""
        },
        "shadowHover": {
          "enabled": false,
          "horizontal": 0,
          "vertical": 0,
          "blur": 0,
          "spread": 0,
          "color": "",
          "position": ""
        },
        "hoverEffect": true
      }
    },
    "postOptions": {
      "type": "object",
      "default": {
        "column": 2,
        "gap": "16px",
        "invert": false,
        "masonry": false,
        "imageOverlay": false,
        "textAlign": "left",
        "image": {
          "margin": {
            "top": "0px",
            "bottom": "10px"
          },
          "width": "",
          "height": "220px",
          "radius": "0px",
          "hoverEffect": true
        },
        "content": {
          "gap": "12px",
          "rowGap": "10px",
          "padding": {
            "top": "0px",
            "right": "0px",
            "bottom": "0px",
            "left": "0px"
          }
        },
        "title": {
          "className": "",
          "margin": {
            "top": "4px",
            "bottom": "6px"
          },
          "font": {
            "size": "18px",
            "weight": "600",
            "family": "Public Sans"
          },
          "letterCase": "none",
          "decoration": "none",
          "lineHeight": "",
          "letterSpacing": "",
          "color": {
            "text": "#090b10",
            "textHover": "#f90"
          }
        }
      }
    },
    "featuredPostCategories": {
      "type": "object",
      "default": {
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "0px",
        "font": {
          "size": "14px",
          "weight": "500",
          "family": "Public Sans"
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "text": "",
          "textHover": "",
          "bg": "",
          "bgHover": "",
          "borderHover": ""
        }
      }
    },
    "postCategories": {
      "type": "object",
      "default": {
        "gap": "12px",
        "padding": {
          "top": "0px",
          "right": "0px",
          "bottom": "0px",
          "left": "0px"
        },
        "margin": {
          "top": "6px",
          "bottom": "0px"
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "0px",
        "font": {
          "size": "14px",
          "weight": "500",
          "family": "Public Sans"
        },
        "hoverEffect": true,
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "text": "",
          "textHover": "",
          "bg": "",
          "bgHover": "",
          "borderHover": ""
        }
      }
    },
    "postMeta": {
      "type": "object",
      "default": {
        "margin": {
          "top": "8px",
          "bottom": "8px"
        },
        "font": {
          "size": "14px",
          "weight": "500",
          "family": "Public Sans"
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "featured": "#5566ca",
          "featuredHover": "#f90",
          "text": "#5566ca",
          "textHover": "#f90"
        }
      }
    },
    "featuredReadMore": {
      "type": "object",
      "default": {
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "0px",
        "font": {
          "size": "14px",
          "weight": "500",
          "family": "Public Sans"
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "text": "",
          "textHover": "",
          "bg": "",
          "bgHover": "",
          "borderHover": ""
        }
      }
    },
    "readMore": {
      "type": "object",
      "default": {
        "padding": {
          "top": "0px",
          "right": "0px",
          "bottom": "0px",
          "left": "0px"
        },
        "margin": {
          "top": "4px",
          "bottom": "0px"
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "0px",
        "font": {
          "size": "14px",
          "weight": "500",
          "family": "Public Sans"
        },
        "textAlign": "right",
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "text": "",
          "textHover": "",
          "bg": "",
          "bgHover": "",
          "borderHover": ""
        }
      }
    },
    "ajaxLoader": {
      "type": "object",
      "default": {
        "enabled": false,
        "type": "default",
        "label": "Load More",
        "loadingText": "",
        "minWidth": "95px",
        "content": 10,
        "padding": {
          "top": "8px",
          "right": "14px",
          "bottom": "8px",
          "left": "14px"
        },
        "margin": {
          "top": "26px",
          "bottom": "0px"
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "100px",
        "font": {
          "size": "14px",
          "weight": "500",
          "family": "Public Sans"
        },
        "textAlign": "center",
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "text": "#fff",
          "textHover": "",
          "spinnerPrimary": "#fff",
          "spinnerSecondary": "#989898",
          "bg": "#5566ca",
          "bgHover": "#f90",
          "borderHover": ""
        }
      }
    }
  },
  "editorScript": [
    "file:./index.js",
    "file:../index.js"
  ],
  "editorStyle": "file:./index.css",
  "style": [
    "file:./style-index.css",
    "cozy-block--global-block-styles"
  ],
  "viewScript": [
    "cozy-block--magazine-grid--frontend-script"
  ],
  "render": "file:./render.php"
}