{
  "apiVersion": 3,
  "name": "wpuf-ud/custom-field",
  "title": "User Custom Field",
  "category": "wpuf-ud",
  "description": "Display specific custom meta fields with various formatting and display options.",
  "keywords": [ "user", "custom", "field", "meta", "data", "wpuf" ],
  "textdomain": "wpuf-pro",
  "usesContext": [ "wpuf-ud/userObject" ],
  "attributes": {
    "metaFieldKey": {
      "type": "string",
      "default": ""
    },
    "fieldLabel": {
      "type": "string",
      "default": ""
    },
    "fieldType": {
      "type": "string",
      "default": "text"
    },
    "emptyValue": {
      "type": "string",
      "default": ""
    },
    "multipleValues": {
      "type": "string",
      "default": "comma_separated"
    },
    "dateFormat": {
      "type": "string",
      "default": "F j, Y"
    },
    "imageSize": {
      "type": "string",
      "default": "thumbnail"
    },
    "customImageSize": {
      "type": "object",
      "default": { "width": 150, "height": 150 }
    },
    "linkTarget": {
      "type": "string",
      "default": "_self"
    },
    "prefixText": {
      "type": "string",
      "default": ""
    },
    "suffixText": {
      "type": "string",
      "default": ""
    },
    "showLabel": {
      "type": "boolean",
      "default": true
    },
    "labelPosition": {
      "type": "string",
      "default": "above"
    },
    "layoutStyle": {
      "type": "string",
      "default": "inline"
    },
    "profileUserRoles": {
      "type": "array",
      "default": ["all"]
    },
    "viewerRoles": {
      "type": "array",
      "default": ["all"]
    },
    "fieldViewType": {
      "type": "string",
      "default": "hide"
    },
    "customMessage": {
      "type": "string",
      "default": ""
    },
    "viewerSubscriptionPacks": {
      "type": "array",
      "default": ["all"]
    },
    "viewerAccessLogic": {
      "type": "string",
      "default": "and"
    }
  },
  "supports": {
    "html": false,
    "color": {
      "background": true,
      "text": true,
      "link": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontFamily": true,
      "__experimentalFontStyle": true,
      "__experimentalFontWeight": true,
      "__experimentalLetterSpacing": true,
      "__experimentalTextTransform": true,
      "__experimentalTextDecoration": true
    },
    "spacing": {
      "margin": true,
      "padding": true
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true
    }
  },
  "example": {
    "viewportWidth": 800,
    "attributes": {
      "metaFieldKey": "phone_number",
      "fieldLabel": "Phone Number",
      "fieldType": "text",
      "showLabel": true,
      "labelPosition": "above",
      "layoutStyle": "inline",
      "profileUserRoles": ["all"],
      "viewerRoles": ["all"]
    },
    "innerBlocks": [
      {
        "name": "core/group",
        "attributes": {
          "className": "wpuf-custom-field"
        },
        "innerBlocks": [
          {
            "name": "core/group",
            "attributes": {
              "className": "wpuf-field-content"
            },
            "innerBlocks": [
              {
                "name": "core/group",
                "attributes": {
                  "className": "wpuf-field-text"
                },
                "innerBlocks": [
                  {
                    "name": "core/paragraph",
                    "attributes": {
                      "content": "Phone Number: +1 (555) 123-4567",
                      "className": "wpuf-field-text"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
