 {
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "flexa/facebook-feed",
  "version": "1.0.0",
  "title": "Facebook Feed",
  "category": "flexa",
  "description": "Show the latest posts from a Facebook Page via the Graph API (token kept server-side, cached) — in a grid, list, masonry or carousel, toggle the profile picture, page name, timestamp, post image, message, reactions, comments and shares, link posts back to Facebook, page through the results, and style the card typography and colours.",
  "keywords": [
    "flexa",
    "facebook",
    "feed",
    "social",
    "posts",
    "page"
  ],
  "textdomain": "flexa-block",
  "example": {
    "attributes": {
      "isExamplePreview": true
    },
    "viewportWidth": 800
  },
  "attributes": {
    "isExamplePreview": {
      "type": "boolean",
      "default": false
    },
    "blockId": {
      "type": "string"
    },
    "htmlTag": {
      "type": "string",
      "default": "section"
    },
    "containerType": {
      "type": "string",
      "default": "boxed",
      "enum": [
        "boxed",
        "full-width"
      ]
    },
    "pageId": {
      "type": "string",
      "default": ""
    },
    "numberOfPosts": {
      "type": "number",
      "default": 6
    },
    "sortNewestFirst": {
      "type": "boolean",
      "default": true
    },
    "cacheTime": {
      "type": "number",
      "default": 30
    },
    "feedLayout": {
      "type": "string",
      "default": "grid",
      "enum": [
        "grid",
        "list",
        "masonry",
        "carousel"
      ]
    },
    "columns": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "3",
          "unit": ""
        },
        "tablet": {
          "value": "2",
          "unit": ""
        },
        "mobile": {
          "value": "1",
          "unit": ""
        }
      }
    },
    "itemGap": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "24",
          "unit": "px"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "contentPadding": {
      "type": "object",
      "default": {
        "desktop": {
          "top": "12",
          "right": "12",
          "bottom": "12",
          "left": "12",
          "unit": "px"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "contentGap": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "10",
          "unit": "px"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "widthBoxed": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "widthFullWidth": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "100",
          "unit": "%"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "showAvatar": {
      "type": "boolean",
      "default": true
    },
    "showPageName": {
      "type": "boolean",
      "default": true
    },
    "showTimestamp": {
      "type": "boolean",
      "default": true
    },
    "showImage": {
      "type": "boolean",
      "default": true
    },
    "showMessage": {
      "type": "boolean",
      "default": true
    },
    "messageLimit": {
      "type": "number",
      "default": 20
    },
    "showReactions": {
      "type": "boolean",
      "default": true
    },
    "showComments": {
      "type": "boolean",
      "default": false
    },
    "showShares": {
      "type": "boolean",
      "default": true
    },
    "enableLink": {
      "type": "boolean",
      "default": true
    },
    "openInNewTab": {
      "type": "boolean",
      "default": true
    },
    "paginationType": {
      "type": "string",
      "default": "none",
      "enum": [
        "none",
        "numbered",
        "loadmore"
      ]
    },
    "perPage": {
      "type": "number",
      "default": 6
    },
    "loadMoreText": {
      "type": "string",
      "default": "Load more"
    },
    "paginationAlign": {
      "type": "string",
      "default": "center",
      "enum": [
        "left",
        "center",
        "right"
      ]
    },
    "prevLabel": {
      "type": "string",
      "default": ""
    },
    "nextLabel": {
      "type": "string",
      "default": ""
    },
    "paginationColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "paginationActiveColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "paginationBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "paginationActiveBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "paginationRadius": {
      "type": "object",
      "default": {}
    },
    "paginationFontSize": {
      "type": "object",
      "default": {}
    },
    "loadMoreColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "loadMoreBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "headerTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "headerColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "messageTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "messageColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "metaTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "metaColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "cardBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "spacing": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "background": {
      "type": "object",
      "default": {
        "type": "none",
        "color": {
          "light": "",
          "dark": ""
        },
        "gradient": {
          "light": "",
          "dark": ""
        },
        "image": {
          "url": "",
          "id": null,
          "position": "center center",
          "repeat": "no-repeat",
          "size": "cover",
          "attachment": "scroll"
        },
        "lazyLoad": false
      }
    },
    "border": {
      "type": "object",
      "default": {
        "desktop": {
          "style": "solid",
          "width": {
            "top": "1",
            "right": "1",
            "bottom": "1",
            "left": "1",
            "unit": "px"
          },
          "color": {
            "light": "rgba(0,0,0,0.08)",
            "dark": "rgba(255,255,255,0.14)"
          },
          "radius": {
            "topLeft": "12",
            "topRight": "12",
            "bottomRight": "12",
            "bottomLeft": "12",
            "unit": "px"
          }
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "boxShadow": {
      "type": "object",
      "default": {
        "horizontal": "0",
        "vertical": "4",
        "blur": "12",
        "spread": "0",
        "color": {
          "light": "rgba(0,0,0,0.1)",
          "dark": ""
        },
        "inset": false,
        "enabled": false
      }
    },
    "advancedLayout": {
      "type": "object",
      "default": {
        "desktop": {
          "zIndex": "",
          "overflow": "",
          "position": ""
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "responsiveVisibility": {
      "type": "object",
      "default": {
        "hideOnDesktop": false,
        "hideOnTablet": false,
        "hideOnMobile": false
      }
    },
    "animation": {
      "type": "object",
      "default": {
        "type": "none",
        "duration": "normal",
        "delay": ""
      }
    },
    "htmlAttributes": {
      "type": "object",
      "default": {
        "customAttributes": []
      }
    }
  },
  "supports": {
    "anchor": true,
    "className": true,
    "html": false,
    "align": false
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}