{
  "apiVersion": 3,
  "name": "ecb/expire-content",
  "version": "1.0.0",
  "title": "Expire Content",
  "category": "design",
  "icon": "clock",
  "description": "Automatically hide or replace inner content after a specific date/time.",
  "keywords": [ "expire", "timed", "schedule", "hide", "campaign" ],
  "supports": {
    "html": false,
    "anchor": true
  },
  "attributes": {
    "expiryDate": {
      "type": "string",
      "default": ""
    },
    "expiryTime": {
      "type": "string",
      "default": ""
    },
    "action": {
      "type": "string",
      "default": "hide"
    },
    "replacementText": {
      "type": "string",
      "default": ""
    }
  },
  "usesContext": [ "postId", "postType" ],
  "editorScript": "ecb-expire-content-editor-script",
  "style": "ecb-expire-content-style",
  "editorStyle": "ecb-expire-content-editor-style",
  "textdomain": "expire-content-block",
  "example": {
    "attributes": {
      "expiryDate": "2025-12-31",
      "expiryTime": "23:59",
      "action": "replace",
      "replacementText": "This offer has expired."
    },
    "innerBlocks": [
      {
        "name": "core/paragraph",
        "attributes": {
          "content": "Limited-time holiday promotion."
        }
      }
    ]
  }
}
