1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
export type {
ScrollCommand,
ScrollGeometry,
SmartScrollResult,
SmartScrollState,
} from "./logic/smart-scroll";
export {
createSmartScrollState,
isNearBottom,
NEAR_BOTTOM_THRESHOLD,
onContentChange,
onReset,
onResume,
onScroll,
} from "./logic/smart-scroll";
export type { SmartScrollController } from "./ui/controller.svelte";
export { createSmartScrollController } from "./ui/controller.svelte";
export { default as ScrollToBottom } from "./ui/ScrollToBottom.svelte";
/** Public module manifest — aggregated by the shell's "Loaded Modules" view. */
export const manifest = {
name: "smart-scroll",
description:
"Keeps the transcript pinned to the bottom while it streams, unless the reader scrolls up",
} as const;
|