/** * Shared list viewport-change types. * * The push counterpart of the synchronous `renderedKeys()` / `visibleKeys()` * read APIs: dispatched by the list-flavoured components whenever their * rendered or visible key set changes (scroll, resize, content change), so * consumers can prioritise per-viewport work without polling. * * Each component uses its own public event name while sharing this detail * shape: `detail-list-viewport-change`, `vertical-list-viewport-change`, * `grid-list-viewport-change`, and `datagrid-viewport-change`. */ type ListViewportChangeDetail = { /** Keys of the rendered window (viewport + overscan where virtualized). */ readonly renderedKeys: readonly string[]; /** Keys strictly intersecting the viewport. */ readonly visibleKeys: readonly string[]; }; type ListViewportChangeEvent = CustomEvent; export { ListViewportChangeEvent as n, ListViewportChangeDetail as t };