{
  "apiVersion": 3,
  	"name": "wpuf-ud/profile",
	"title": "WPUF - User Profile",
	"category": "wpuf-ud",
  "description": "Display a complete user profile with customizable layout and content blocks.",
  "keywords": [ "user", "profile", "member", "account" ],
  "textdomain": "wpuf-pro",
  "attributes": {
    "block_instance_id": {
      "type": "string"
    },
    "componentSpacing": {
      "type": "number",
      "default": 20
    },
    "userId": {
      "type": "string"
    },
    "userObject": {
      "type": "object"
    },
    "canEdit": {
      "type": "boolean",
      "default": false
    },
    "hasSelectedPattern": {
      "type": "boolean",
      "default": false
    },
    "selectedPattern": {
      "type": "string",
      "default": "layout-1"
    }
  },
  "providesContext": {
    "wpuf-ud/userId": "userId",
    "wpuf-ud/userObject": "userObject",
    "wpuf-ud/canEdit": "canEdit",
    "wpuf-ud/containerLayout": "selectedPattern"
  },
  "supports": {
    "html": false,
    "align": [ "wide", "full" ],
    "layout": true,
    "spacing": {
      "margin": true,
      "padding": true
    },
    "color": {
      "gradients": true,
      "link": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      }
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontFamily": true,
      "__experimentalFontWeight": true,
      "__experimentalFontStyle": true,
      "__experimentalTextTransform": true,
      "__experimentalTextDecoration": true,
      "__experimentalLetterSpacing": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    },
    "__experimentalBorder": {
      "radius": true,
      "color": true,
      "width": true,
      "style": true
    }
  },
  "example": {
    "viewportWidth": 800,
    "attributes": {
      "componentSpacing": 20,
      "hasSelectedPattern": true,
      "selectedPattern": "layout-1"
    },
    "innerBlocks": [
      {
        "name": "core/columns",
        "attributes": {
          "className": "wpuf-flex wpuf-flex-row wpuf-gap-8 wpuf-border wpuf-border-gray-200 wpuf-rounded-lg wpuf-p-8"
        },
        "innerBlocks": [
          {
            "name": "core/column",
            "attributes": {
              "className": "wpuf-profile-sidebar",
              "width": "33%"
            },
            "innerBlocks": [
              {
                "name": "wpuf-ud/avatar",
                "attributes": {
                  "avatarSize": "custom",
                  "avatarShape": "circle",
                  "customSize": 100
                }
              },
              {
                "name": "wpuf-ud/name",
                "attributes": {
                  "nameFormat": "display_name",
                  "headingLevel": "h2",
                  "showRoles": true
                }
              },
              {
                "name": "wpuf-ud/contact",
                "attributes": {
                  "layoutStyle": "vertical",
                  "showFields": ["display_name", "user_email", "user_url"],
                  "showLabels": false
                }
              }
            ]
          },
          {
            "name": "core/column",
            "attributes": {
              "className": "wpuf-profile-content",
              "width": "67%"
            },
            "innerBlocks": [
              {
                "name": "wpuf-ud/tabs",
                "attributes": {
                  "availableTabs": ["posts", "about", "comments"],
                  "defaultActiveTab": "posts"
                }
              }
            ]
          }
        ]
      }
    ]
  }
}
