{
  "format": "shadcn-figma-stories/1",
  "scope": "Static native design variants and documented examples; not executable interaction tests.",
  "source": {
    "path": "provenance://source/.figma-pool%2Fshadcn.fig",
    "sha256": "ccbe95f20f501389a322d0f6de2c90ca79126a33355f1b31e2b1dcc7c8e2b3d5",
    "page": "2360:5132"
  },
  "stories": [
    {
      "id": "figma-2395-2364",
      "name": "Frame 3",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:2364",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22552",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22552",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-2373",
      "name": "Frame 19",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:2373",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22553",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22553",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-6263",
      "name": "Frame 20",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:6263",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22554",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22554",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-6379",
      "name": "Frame 21",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:6379",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22555",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22555",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-6452",
      "name": "Frame 22",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:6452",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22558",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22558",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-6600",
      "name": "Frame 23",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:6600",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22559",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22559",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-6776",
      "name": "Frame 24",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:6776",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22560",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22560",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-6910",
      "name": "Frame 25",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:6910",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22568",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22568",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-7105",
      "name": "Frame 26",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:7105",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22569",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22569",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2395-7275",
      "name": "Frame 27",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2395:7275",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2463-22579",
      "name": "Component preview",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2463:22579",
        "part": "2395:2323"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "actual-source-contract",
      "expected": "MessageScrollerProvider is headless, with autoScroll=false default, defaultScrollPosition=end, scrollEdgeThreshold8px, previous-item peek64px, scrollMargin0. Root is div; actual Viewport defaults named region Messages, tabIndex0. Content defaults role=log/aria-relevant=additions; reference supplies transcript name and speaker text. Item is div with stable messageId and optional scrollAnchor=false; every direct content row is an Item, including separators/loading rows if supplied. Stable IDs—not array index or text—drive command targets, visibility and prepend preservation. Viewport preserveScrollOnPrepend defaults true. Initial default position applies once on first nonempty render (start|end|last-anchor), pending-scroll marks initial layout until applied. With autoScroll true, new content follows only while already following the bottom; deliberate wheel/touch/viewport scroll keys release follow, and readers away from end are not pulled down. Native geometry and Resize/Mutation/Intersection observers derive edges, anchor positioning and visibility; internal modes following-bottom/free-scrolling/anchored-to-message/settling-jump are not public controlled props. Anchored turns reserve a hidden accessibility spacer as needed. useMessageScroller returns scrollToMessage/scrollToStart/scrollToEnd with optional align/behavior/scrollMargin; commands return false when viewport/eligible target unavailable and may defer a known target until mounted. useMessageScrollerScrollable exposes start/end overflow booleans, useMessageScrollerVisibility exposes currentAnchorId and visibleMessageIds using lazily subscribed observers. These are hook snapshots, not fabricated change events. Button defaults direction=end, behavior=smooth, native type=button and readable source label; inactive button is inert/tabIndex-1. Active Button invokes onClick first, preventDefault vetoes command; accepted command blurs button then uses the real scroll command. Viewport onScroll syncs actual geometry before caller onScroll; wheel/touch/key user intent is observed before caller callbacks, so preventDefault there is not an invented undo of source intent."
    },
    {
      "id": "keyboard-focus-disabled-error",
      "expected": "Named viewport is natively focusable; Home/End/Page/arrow/Space scroll according to browser and release auto-follow intent. Scroll changes do not imply a selected message, move keyboard focus to a message, or announce every streamed token. Native scroll buttons support Enter/Space only while active, have meaningful names and preserve caller cancellation. The source intentionally blurs accepted scroll buttons; reference does not claim a focus trap or automatic focus return. Escape is passive. Essential speaker attribution/text remains readable; role=log additions is the source policy, and repeated complete-text rerenders must not become the only task status. Loading/network errors are caller feedback, not scroll state."
    },
    {
      "id": "explicit-instance-composition",
      "expected": "Reference has14 stable report message IDs, an explicit turn anchor, autoScroll=true and opening=end. Named log/region and speaker text are caller composition. Append/prepend actions only change local arrays, jump uses actual hook; no AI/backend transport is implied. A constrained viewport and measurable row heights are validation geometry, not replacement native FIG styling. No message selection API, generic ARIA grid or invented source position event is added."
    }
  ]
}
