{
  "entries": [
    {
      "id": "button",
      "kind": "component",
      "items": [
        {
          "address": "label",
          "type": "item",
          "source": "explicit",
          "pointer": "/sections/0/items/0",
          "content": {
            "level": "must",
            "statement": "Label it with a <dsds:glossary#action-verb>, set its <dsds:button#variant> to <dsds:button#variant.primary> or <dsds:button#variant.quiet>, and follow <dsds:onboarding#check-the-label> and <dsds:onboarding#setup>."
          }
        },
        {
          "address": "one-per-screen",
          "type": "item",
          "source": "explicit",
          "pointer": "/sections/0/items/1",
          "content": {
            "level": "should",
            "statement": "Keep to [one primary button](dsds:button#label) per screen. See\n<dsds:button#label> and the [glossary][g].\n\n[g]: dsds:glossary"
          }
        },
        {
          "address": "broken",
          "type": "item",
          "source": "explicit",
          "pointer": "/sections/0/items/2",
          "content": {
            "level": "may",
            "statement": "Use a <dsds:glossary#confirm>. Broken: <dsds:glossary#nope> and [this](dsds:glossary#a..b)."
          }
        },
        {
          "address": "variant",
          "type": "trait",
          "source": "trait",
          "pointer": "/traits/0"
        },
        {
          "address": "variant.primary",
          "type": "value",
          "source": "trait",
          "pointer": "/traits/0/values/0"
        },
        {
          "address": "variant.quiet",
          "type": "value",
          "source": "trait",
          "pointer": "/traits/0/values/1"
        }
      ]
    },
    {
      "id": "glossary",
      "kind": "entry",
      "items": [
        {
          "address": "action-verb",
          "type": "item",
          "source": "explicit",
          "pointer": "/sections/0/items/0",
          "content": {
            "term": "Action verb",
            "definition": "A verb that says what happens, like \"Save\"."
          }
        },
        {
          "address": "confirm",
          "type": "item",
          "source": "explicit",
          "pointer": "/sections/0/items/1",
          "reuses": "onboarding#confirm-term",
          "origin": "onboarding#confirm-term",
          "content": {
            "term": "Confirm",
            "definition": "Agree to go ahead."
          }
        }
      ]
    },
    {
      "id": "onboarding",
      "kind": "entry",
      "items": [
        {
          "address": "check-the-label",
          "type": "item",
          "source": "explicit",
          "pointer": "/sections/0/items/0",
          "content": {
            "title": "Check the label"
          }
        },
        {
          "address": "confirm-term",
          "type": "item",
          "source": "explicit",
          "pointer": "/sections/1/items/0",
          "content": {
            "term": "Confirm",
            "definition": "Agree to go ahead."
          }
        },
        {
          "address": "setup",
          "type": "freeform",
          "source": "explicit",
          "pointer": "/sections/2/freeform/0"
        }
      ],
      "incoming": [
        {
          "rel": "same-as",
          "from": "glossary#confirm",
          "pointer": "glossary/sections/0/items/1/refs/0",
          "at": "confirm-term"
        }
      ]
    },
    {
      "id": "Color/Action/Primary",
      "kind": "token",
      "items": [],
      "incoming": [
        {
          "rel": "uses",
          "from": "button",
          "pointer": "button/uses/0"
        }
      ]
    }
  ],
  "inlineLinks": [
    {
      "from": "button",
      "pointer": "button/description",
      "offset": 31,
      "form": "autolink",
      "target": "Color/Action/Primary",
      "resolves": "Color/Action/Primary",
      "text": "Action primary"
    },
    {
      "from": "button",
      "pointer": "button/description",
      "offset": 76,
      "form": "autolink",
      "target": "glossary",
      "resolves": "glossary",
      "text": "Glossary"
    },
    {
      "from": "button#label",
      "pointer": "button/sections/0/items/0/statement",
      "offset": 16,
      "form": "autolink",
      "target": "glossary#action-verb",
      "resolves": "glossary#action-verb",
      "text": "Action verb"
    },
    {
      "from": "button#label",
      "pointer": "button/sections/0/items/0/statement",
      "offset": 53,
      "form": "autolink",
      "target": "button#variant",
      "resolves": "button#variant",
      "text": "Variant"
    },
    {
      "from": "button#label",
      "pointer": "button/sections/0/items/0/statement",
      "offset": 78,
      "form": "autolink",
      "target": "button#variant.primary",
      "resolves": "button#variant.primary",
      "text": "Primary"
    },
    {
      "from": "button#label",
      "pointer": "button/sections/0/items/0/statement",
      "offset": 111,
      "form": "autolink",
      "target": "button#variant.quiet",
      "resolves": "button#variant.quiet",
      "text": "button#variant.quiet"
    },
    {
      "from": "button#label",
      "pointer": "button/sections/0/items/0/statement",
      "offset": 151,
      "form": "autolink",
      "target": "onboarding#check-the-label",
      "resolves": "onboarding#check-the-label",
      "text": "Check the label"
    },
    {
      "from": "button#label",
      "pointer": "button/sections/0/items/0/statement",
      "offset": 189,
      "form": "autolink",
      "target": "onboarding#setup",
      "resolves": "onboarding#setup",
      "text": "Set up"
    },
    {
      "from": "button#one-per-screen",
      "pointer": "button/sections/0/items/1/statement",
      "offset": 8,
      "form": "inline",
      "target": "button#label",
      "resolves": "button#label",
      "text": "one primary button"
    },
    {
      "from": "button#one-per-screen",
      "pointer": "button/sections/0/items/1/statement",
      "offset": 64,
      "form": "autolink",
      "target": "button#label",
      "resolves": "button#label",
      "text": "button#label"
    },
    {
      "from": "button#one-per-screen",
      "pointer": "button/sections/0/items/1/statement",
      "offset": 108,
      "form": "reference",
      "target": "glossary",
      "resolves": "glossary"
    },
    {
      "from": "button#broken",
      "pointer": "button/sections/0/items/2/statement",
      "offset": 6,
      "form": "autolink",
      "target": "glossary#confirm",
      "resolves": "glossary#confirm",
      "text": "Confirm"
    },
    {
      "from": "button#broken",
      "pointer": "button/sections/0/items/2/statement",
      "offset": 39,
      "form": "autolink",
      "target": "glossary#nope",
      "text": "glossary#nope"
    },
    {
      "from": "button#broken",
      "pointer": "button/sections/0/items/2/statement",
      "offset": 64,
      "form": "inline",
      "target": "glossary#a..b",
      "text": "this"
    },
    {
      "from": "onboarding",
      "pointer": "onboarding/description",
      "offset": 53,
      "form": "autolink",
      "target": "glossary",
      "resolves": "glossary",
      "text": "Glossary"
    },
    {
      "from": "onboarding",
      "pointer": "onboarding/description",
      "offset": 75,
      "form": "inline",
      "target": "onboarding#setup",
      "resolves": "onboarding#setup",
      "text": "set up"
    }
  ],
  "problems": [
    {
      "code": "malformed-link",
      "at": "button#broken",
      "message": "inline link \"dsds:glossary#a..b\" isn't shaped like a `to`"
    },
    {
      "code": "unresolved-item",
      "at": "button#broken",
      "message": "inline link \"glossary#nope\" names no item on \"glossary\""
    }
  ]
}
