{
  "format": "ui-contract-stories/1",
  "componentId": "shadcn:CodeBlock",
  "purpose": "Source-independent reusable semantic fixtures. Static HTML specifies expected anatomy/state; actual pinned React adapter and protocol cases separately establish behavior.",
  "stories": [
    {
      "id": "numbered",
      "name": "Numbered",
      "inputs": {
        "content": {
          "lineNumbers": true,
          "startLine": 7
        },
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "plain",
      "name": "Plain",
      "inputs": {
        "content": {
          "lineNumbers": false
        },
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "wrapped",
      "name": "Wrapped",
      "inputs": {
        "content": {
          "wrap": true
        },
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-wrap=\"true\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "small",
      "name": "Small",
      "inputs": {
        "size": "sm",
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"sm\" data-variant=\"default\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "destructive",
      "name": "Destructive",
      "inputs": {
        "variant": "destructive",
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"destructive\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "copied",
      "name": "Copied",
      "inputs": {
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "copied",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copied\" data-copied=\"true\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\">Copied</span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>",
        "sourceOutputState": "Successful clipboard promise sets the private copied state; no public copied prop."
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "disabled-copy",
      "name": "Disabled copy",
      "inputs": {
        "copyButton": {
          "disabled": true,
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\" disabled=\"\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "floating-actions",
      "name": "Floating actions",
      "inputs": {
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "floating-hover",
      "name": "Floating hover",
      "inputs": {
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [
        {
          "action": "hover",
          "part": "root"
        }
      ],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "floating-focus",
      "name": "Floating focus",
      "inputs": {
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [
        {
          "action": "focus",
          "part": "copy",
          "keyboard": true
        }
      ],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "pre-focus",
      "name": "Pre focus",
      "inputs": {
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [
        {
          "action": "focus",
          "part": "content",
          "keyboard": true
        }
      ],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "dark-host",
      "name": "Dark host",
      "inputs": {
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<div data-theme=\"dark\"><h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p></div>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    },
    {
      "id": "dark-root",
      "name": "Dark root",
      "inputs": {
        "copyButton": {
          "value": "const project = \"Annual report\";\n+ const added = 1;\n- const removed = 0;\nconsole.log(project);"
        }
      },
      "visualState": "default",
      "fixture": {
        "html": "<h2 id=\"code-heading\">Report code example</h2><div data-slot=\"code-block\" data-size=\"default\" data-variant=\"default\" data-theme=\"dark\"><div data-slot=\"code-block-header\"><div data-slot=\"code-block-title\">report.js</div><div data-slot=\"code-block-actions\"><button type=\"button\" data-slot=\"code-block-copy-button\" class=\"cn-button cn-button-variant-ghost cn-button-size-icon-xs\" aria-describedby=\"code-help\" aria-label=\"Copy\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M9 9h12v12H9zM3 15V3h12\" fill=\"none\" stroke=\"currentColor\"/></svg></button><span class=\"sr-only\" aria-live=\"polite\"></span></div></div><pre data-slot=\"code-block-content\" dir=\"ltr\" tabindex=\"0\" aria-labelledby=\"code-heading\" aria-describedby=\"code-help\" data-numbered=\"true\" style=\"counter-reset:line 6\"><code data-slot=\"code-block-code\"><span data-slot=\"code-block-line\" data-variant=\"default\"><span data-slot=\"code-block-line-content\">const project = \"Annual report\";</span></span><span data-slot=\"code-block-line\" data-variant=\"added\"><span data-slot=\"code-block-line-content\">+ const added = 1;</span></span><span data-slot=\"code-block-line\" data-variant=\"removed\"><span data-slot=\"code-block-line-content\">- const removed = 0;</span></span><span data-slot=\"code-block-line\" data-variant=\"highlighted\"><span data-slot=\"code-block-line-content\">console.log(project);</span></span></code></pre><div data-slot=\"code-block-footer\">JavaScript · + added; − removed</div></div><p id=\"code-help\">Select the code and copy manually if clipboard copying is unavailable.</p>"
      },
      "steps": [],
      "expectation": "Actual source slots, public variants and caller-provided meaning match the fixture; lifecycle changes are checked separately through the real source target."
    }
  ]
}
