{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "timefly/block-timefly",
  "version": "0.1.0",
  "title": "TimeFly",
  "category": "widgets",
  "icon": "clock",
  "description": "A Dynamic Time-Based Visibility Block for WordPress",
  "keywords": [
    "time",
    "schedule",
    "visibility",
    "conditional",
    "container"
  ],
  "example": {
    "attributes": {
      "visibilityMode": "show_between",
      "patternType": "one_time",
      "oneTimeSchedule": {
        "startDateTime": "2024-01-01T09:00",
        "endDateTime": "2024-01-01T17:00"
      }
    },
    "innerBlocks": [
      {
        "name": "core/paragraph",
        "attributes": {
          "content": "This content will only be visible during business hours!"
        }
      }
    ]
  },
  "attributes": {
    "visibilityMode": {
      "type": "string",
      "default": "show_until",
      "enum": ["show_until", "show_from", "show_between"]
    },
    "patternType": {
      "type": "string",
      "default": "one_time",
      "enum": ["one_time", "recurring_weekly"]
    },
    "oneTimeSchedule": {
      "type": "object",
      "default": {
        "startDateTime": "",
        "endDateTime": ""
      }
    },
    "recurringSchedule": {
      "type": "object",
      "default": {
        "daysOfWeek": [],
        "timeWindow": {
          "startTime": "09:00",
          "endTime": "17:00"
        },
        "seriesBounds": {
          "startDate": "",
          "endDate": null
        }
      }
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "className": true
  },
  "providesContext": {
    "timefly/visibilityMode": "visibilityMode",
    "timefly/isActive": "isActive"
  },
  "textdomain": "timefly",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}