{
  "apiVersion": 3,
  "name": "wpuf-ud/tabs",
  "title": "User Tabs",
  "category": "wpuf-ud",
  "icon": "admin-page",
  "description": "Organize user content into tabbed interface with customizable About tab and fixed content tabs.",
  "keywords": [ "user", "tabs", "organize", "content", "interface", "wpuf" ],
  "textdomain": "wpuf-pro",
  "usesContext": [
    "wpuf-ud/userId",
    "wpuf-ud/userObject",
    "wpuf-ud/canEdit",
    "wpuf-ud/containerLayout"
  ],
  "providesContext": {
    "wpuf-ud/tabContext": "tabContext",
    "wpuf-ud/activeTab": "defaultActiveTab"
  },
  "attributes": {
    "enabledTabs": {
      "type": "array",
      "default": ["about", "posts", "comments", "files", "activity"]
    },
    "tabOrder": {
      "type": "array",
      "default": ["about", "posts", "comments", "files", "activity"]
    },
    "customLabels": {
      "type": "object",
      "default": {}
    },
    "disallowedBlocks": {
      "type": "array",
      "default": [
        "wpuf-ud/directory",
        "wpuf-ud/profile",
        "wpuf-ud/tabs"
      ]
    },
    "aboutTabContent": {
      "type": "array",
      "default": []
    },
    "postsPerPage": {
      "type": "number",
      "default": 10
    },
    "showPostsPagination": {
      "type": "boolean",
      "default": true
    },
    "commentsPerPage": {
      "type": "number",
      "default": 10
    },
    "showCommentsPagination": {
      "type": "boolean",
      "default": true
    }
  },
  "supports": {
    "html": false,
    "spacing": {
      "margin": true,
      "padding": true
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true
    }
  },
  "example": {
    "viewportWidth": 800,
    "attributes": {
      "enabledTabs": ["about", "posts", "comments"],
      "tabOrder": ["about", "posts", "comments"],
      "customLabels": {},
      "disallowedBlocks": ["wpuf-ud/directory", "wpuf-ud/profile", "wpuf-ud/tabs"],
      "aboutTabContent": [],
      "postsPerPage": 10,
      "showPostsPagination": true,
      "commentsPerPage": 10,
      "showCommentsPagination": true
    },
    "innerBlocks": [
      {
        "name": "core/group",
        "attributes": {
          "className": "wpuf-user-tabs"
        },
        "innerBlocks": [
          {
            "name": "core/group",
            "attributes": {
              "className": "wpuf-hidden sm:wpuf-block"
            },
            "innerBlocks": [
              {
                "name": "core/group",
                "attributes": {
                  "className": "wpuf-border-b wpuf-border-gray-200"
                },
                "innerBlocks": [
                  {
                    "name": "core/navigation",
                    "attributes": {
                      "ariaLabel": "Tabs",
                      "className": "wpuf--mb-px wpuf-flex"
                    },
                    "innerBlocks": [
                      {
                        "name": "core/navigation-link",
                        "attributes": {
                          "label": "About",
                          "className": "wpuf-w-1/3 wpuf-border-b-2 wpuf-border-current wpuf-px-1 wpuf-py-4 wpuf-text-center wpuf-text-sm wpuf-font-medium wpuf-text-current"
                        }
                      },
                      {
                        "name": "core/navigation-link",
                        "attributes": {
                          "label": "Posts",
                          "className": "wpuf-w-1/3 wpuf-border-b-2 wpuf-border-transparent wpuf-px-1 wpuf-py-4 wpuf-text-center wpuf-text-sm wpuf-font-medium wpuf-text-gray-500"
                        }
                      },
                      {
                        "name": "core/navigation-link",
                        "attributes": {
                          "label": "Comments",
                          "className": "wpuf-w-1/3 wpuf-border-b-2 wpuf-border-transparent wpuf-px-1 wpuf-py-4 wpuf-text-center wpuf-text-sm wpuf-font-medium wpuf-text-gray-500"
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "name": "core/group",
            "attributes": {
              "className": "wpuf-tab-content-area wpuf-mt-6"
            },
            "innerBlocks": [
              {
                "name": "core/group",
                "attributes": {
                  "className": "wpuf-tab-content wpuf-tab-active"
                },
                "innerBlocks": [
                  {
                    "name": "core/group",
                    "attributes": {
                      "className": "wpuf-about-tab-content"
                    },
                    "innerBlocks": [
                      {
                        "name": "core/paragraph",
                        "attributes": {
                          "content": "This is the About tab where you can add custom content about the user. Add blocks here to create a personalized about section."
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
