/pub.leaflet.pages.linearDocument

Lexicon Definitions

{
  "lexicon": 1,
  "id": "pub.leaflet.pages.linearDocument",
  "defs": {
    "main": {
      "type": "object",
      "properties": {
        "blocks": {
          "type": "array",
          "items": {
            "type": "ref",
            "ref": "#block"
          }
        }
      }
    },
    "block": {
      "type": "object",
      "required": [
        "block"
      ],
      "properties": {
        "block": {
          "type": "union",
          "refs": [
            "pub.leaflet.blocks.iframe",
            "pub.leaflet.blocks.text",
            "pub.leaflet.blocks.blockquote",
            "pub.leaflet.blocks.header",
            "pub.leaflet.blocks.image",
            "pub.leaflet.blocks.unorderedList",
            "pub.leaflet.blocks.website",
            "pub.leaflet.blocks.math",
            "pub.leaflet.blocks.code",
            "pub.leaflet.blocks.horizontalRule",
            "pub.leaflet.blocks.bskyPost"
          ]
        },
        "alignment": {
          "type": "string",
          "knownValues": [
            "#textAlignLeft",
            "#textAlignCenter",
            "#textAlignRight",
            "#textAlignJustify"
          ]
        }
      }
    },
    "textAlignLeft": {
      "type": "token"
    },
    "textAlignCenter": {
      "type": "token"
    },
    "textAlignRight": {
      "type": "token"
    },
    "quote": {
      "type": "object",
      "required": [
        "start",
        "end"
      ],
      "properties": {
        "start": {
          "type": "ref",
          "ref": "#position"
        },
        "end": {
          "type": "ref",
          "ref": "#position"
        }
      }
    },
    "position": {
      "type": "object",
      "required": [
        "block",
        "offset"
      ],
      "properties": {
        "block": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "offset": {
          "type": "integer"
        }
      }
    }
  }
}