@adea-ai/ui 0.151.2 → 0.151.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +5 -0
  2. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  3. package/dist/components/composites/action-button/action-button.js +8 -2
  4. package/dist/components/composites/action-button/action-button.js.map +1 -1
  5. package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
  6. package/dist/components/composites/inline-citation/inline-citation.js +39 -36
  7. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  8. package/dist/components/conversation/scroll-follow-core.d.ts +13 -0
  9. package/dist/components/conversation/scroll-follow-core.d.ts.map +1 -1
  10. package/dist/components/conversation/scroll-follow-core.js +12 -1
  11. package/dist/components/conversation/scroll-follow-core.js.map +1 -1
  12. package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
  13. package/dist/components/conversation/scroll-follow.js +52 -21
  14. package/dist/components/conversation/scroll-follow.js.map +1 -1
  15. package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
  16. package/dist/components/ui/calendar/calendar.js +109 -115
  17. package/dist/components/ui/calendar/calendar.js.map +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +2 -1
  21. package/dist/r/src/components/composites/action-button/action-button.tsx +11 -1
  22. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +112 -105
  23. package/dist/r/src/components/conversation/scroll-follow-core.ts +23 -0
  24. package/dist/r/src/components/conversation/scroll-follow.ts +69 -17
  25. package/dist/r/src/components/ui/calendar/calendar.tsx +99 -104
  26. package/package.json +8 -2
  27. package/src/components/composites/action-button/action-button.tsx +11 -1
  28. package/src/components/composites/inline-citation/inline-citation.tsx +112 -105
  29. package/src/components/conversation/scroll-follow-core.ts +23 -0
  30. package/src/components/conversation/scroll-follow.ts +69 -17
  31. package/src/components/ui/calendar/calendar.tsx +99 -104
  32. package/src/index.ts +1 -0
package/dist/index.d.ts CHANGED
@@ -89,6 +89,7 @@ export * from './components/layout/virtual-window';
89
89
  export * from './components/layout/app-shell';
90
90
  export * from './components/layout/page';
91
91
  export * from './components/layout/panel';
92
+ export * from './components/layout/pixel-pane';
92
93
  export * from './components/layout/side-rail';
93
94
  export * from './components/layout/sidebar-nav';
94
95
  export * from './components/layout/contextual-sidebar';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oCAAoC,CAAA;AAClD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAA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oBAAoB,EACpB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,GAC3B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3F,OAAO,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACX,aAAa,EACb,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,SAAS,GACf,MAAM,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -91,6 +91,7 @@ import { AppShell, AppShellBody, AppShellContent, AppShellMain } from "./compone
91
91
  import { SkipLink } from "./components/layout/app-shell/skip-link.js";
92
92
  import { Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection } from "./components/layout/page/page.js";
93
93
  import { Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar } from "./components/layout/panel/panel.js";
94
+ import { PixelPane } from "./components/layout/pixel-pane/pixel-pane.js";
94
95
  import { useSideRail } from "./components/layout/side-rail/side-rail-context.js";
95
96
  import { SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection } from "./components/layout/side-rail/side-rail.js";
96
97
  import { SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavRow, SidebarNavSection, SidebarNavTitle, sidebarNavItemClass, sidebarNavItemStateClass } from "./components/layout/sidebar-nav/sidebar-nav.js";
@@ -197,4 +198,4 @@ import { MARK_IMAGE_MAX_DATA_URL_LENGTH, MARK_IMAGE_MAX_SOURCE_BYTES, MARK_IMAGE
197
198
  import { isShellIconKey, resolveShellIcon, shellIconEntries, shellIconLabel } from "./components/composites/icon-picker/shell-icons.js";
198
199
  import { IconPicker, IconPickerDropdown } from "./components/composites/icon-picker/icon-picker.js";
199
200
  import { AccentPicker } from "./components/composites/accent-picker/accent-picker.js";
200
- export { ANSI_MAX_LINE_LENGTH, ANSI_RETAIN_LINES, APPEARANCE_EDITOR_FONT_AXES, APPEARANCE_EDITOR_FONT_SIZE_MAX, APPEARANCE_EDITOR_FONT_SIZE_MIN, AboutDialog, AccentPicker, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, ActionButton, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnnotationSurface, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearanceEditorActions, AppearanceFontSettingsGroup, AppearancePanel, AppearancePopover, SettingsRow as AppearanceSettingsRow, AspectRatio, Attachment, AttachmentCard, AttachmentList, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, BoardCardTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CHAIN_OF_THOUGHT_STATUS_LABELS, CODE_BLOCK_LINE_LIMIT, CalendarSurface, Callout, CalloutTitle, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CatalogBrowser, CatalogDetail, CatalogDetailSection, ChainOfThought, ChainOfThoughtResult, ChainOfThoughtResults, ChainOfThoughtStep, Chat, ChatComposer, ChatEmpty, ChatHeader, ChatNotice, Checkbox, CheckboxDescription, CheckboxLabel, Checkpoint, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandHint, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, CommandStatus, ComposerAttachmentButton, ComposerHint, ComposerMenu, ComposerMenuItem, Confirmation, Context, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextualSidebar, ConversationAvatar, ConversationPane, ConversationSurface, DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, EntityIcon, FILE_CHANGE_LABELS, FILE_TREE_AUTO_EXPAND_LIMIT, FILE_TREE_MAX_DEPTH, FILE_TREE_MAX_ROWS, FLOATING_PREVIEW_CORNER_RADIUS, FLOATING_PREVIEW_EDGE_GAP, Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FileTree, FloatingPreview, FormField, Heading, HelpCenter, HoverCard, HoverCardContent, HoverCardTrigger, IconPicker, IconPickerDropdown, InlineCitation, InlineCode, Input, InputControl, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdChord, KbdGroup, Label, ListGroup, ListRow, ListRowControl, MARK_IMAGE_MAX_DATA_URL_LENGTH, MARK_IMAGE_MAX_SOURCE_BYTES, MARK_IMAGE_SIZE, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, MODEL_SEARCH_THRESHOLD, MarkImageError, Marker, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageActions, MessageBody, MessageComposer, MessageContent, MessageDayDivider, MessageFooter, MessageGroup, MessageHeader, MessageRow, MessageScroller, MessageText, ModalDialog, ModelSelector, Motion, NO_FLOATING_PREVIEW_OBSTACLES, NO_PREVIEW_MINI_PLAYER_OBSTACLES, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, NumberField, OrbitItem, OrbitLayout, PASTE_THRESHOLD_CHARS, PASTE_THRESHOLD_LINES, PASTE_TOKEN_REGEX, PREVIEW_MINI_PLAYER_CORNER_RADIUS, PREVIEW_MINI_PLAYER_EDGE_GAP, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, PixelResizeHandle, Plan, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, Questionnaire, Queue, QueueFollowUps, REDUCED_TRANSPARENCY_QUERY, RadioGroup, RadioGroupItem, Reasoning, ResizableHandle, ResizablePanel, ResizablePanelGroup, SOURCE_SNIPPET_LIMIT, SOURCE_TITLE_LIMIT, STACK_MAX_LINES, STACK_TRACE_MAX_BLOCKS, SceneControls, ScrollArea, SecretInputGroup, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsLayout, SettingsNavigation, SettingsPage, SettingsRow$1 as SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShellRail, ShellTopBar, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavResizeHandle, SidebarNavRow, SidebarNavSection, SidebarNavTitle, Skeleton, SkipLink, Slider, Sources, Spinner, SplitLayout, StackTrace, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Subagent, Suggestion, Suggestions, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, TASK_ITEM_STATUS_LABELS, TERMINAL_MAX_LINES, TEST_RESULTS_LIST_LIMIT, TOOL_STATUS_LABELS, TOOL_VALUE_MAX_CHARS, TRACE_STATUS_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskItemList, TaskItemRow, Terminal, TestResults, Text, TextLink, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemeModeToggle, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tool, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, Trace, TraceDetail, TraceLine, TranscriptComposition, Tree, TreeRow, TreeRowActions, UpdateChannelControl, UpdateDialog, ValueCombobox, VirtualWindow, WorkspaceMark, WorkspaceReorderDialog, WorkspaceSwitcher, accentPresets, alertVariants, allTokens, ansi256ToColor, ansiLineText, appearancePreviewThemes, applyAppearanceFontSettings, badgeVariants, boardCardTitleVariants, boundText, breakdownRows, bubbleVariants, buildFileTree, builtinThemes, buttonVariants, calloutVariants, captureAnchor, cardVariants, centredSquare, chatNoticeVariants, checkMarkImageFile, checkpointLabel, checkpointStatus, citationLabel, citationName, clampFloatingPreviewPosition, clampPreviewMiniPlayerPosition, clampWindow, classifyFrame, closePane, cn, colorTokens, computeLayoutFrames, confirmationOutcome, contextLabel, contextLevel, contextLevelWord, contextPercent, contextShort, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countChanges, countLeaves, countLines, createAnsiParser, createAppMenuItems, createLayoutState, createVersionedPersistence, cva, decisionReason, dedentLines, defaultDarkThemeId, defaultLightThemeId, defaultPreferenceStorage, defaultThemeSelection, densityTokens, describeChanges, describeCount, describeFrameGroup, designTokens, diffLineVariants, diffStats, diffTargetPath, editorPaletteFor, elevationTokens, entityIconVariants, expandAll, findModel, findTokenRanges, firstFailureKey, flattenFileTree, focusPane, fontOptions, fontSettingsBootstrapScript, fontZoomShortcut, formatAttachmentSize, formatBytes, formatCost, formatDuration, formatExact, formatReleaseDate, formatDuration$1 as formatTestDuration, formatToken, formatTokens, formatToolValue, frameLocation, groupModels, groupStackEntries, hasContextFigures, headingElement, headingVariants, indexFileTree, initialExpanded, initialsFrom, inlineScriptLiteral, isAwaitingAnswer, isCustomAccent, isFailedExit, isFigure, isMarkImageDataUrl, isPasteBlock, isPlainStyle, isQuestionAnswered, isShellIconKey, isThemeAccentId, itemVariants, kbdChordKeys, kbdGroupVariants, kbdVariants, keyedRows, layoutDepth, listLeaves, listedCounts, localStoragePersistence, markImageFromFile, markImageProblemCopy, markerVariants, messageCitations, modelSearchValue, monogram, motionTokens, movePane, moveTarget, moveWorkspace, nearestAnsiColor, needsSearch, neighborLeaf, nextCitationMode, nextSeq, normalizeAppearanceEditorFontSettings, normalizeAppearanceEditorFontSize, normalizeCustomAccent, normalizeEfforts, normalizeLayout, normalizePath, normalizeSurface, paintAccentRoles, parseAnsi, parseDiff, parseInline, parseMessageText, parseStackTrace, partitionQueue, placeCitationMarkers, plainTextFromMarkdown, platformModifierKey, pruneBlocks, quarantineRecord, radiusTokens, readLegacyValue, readVersionedRecord, reasoningTitle, recollapsePastes, reconcileCounts, recoveryEnvelope, recoveryKeyFor, remapCarriedBlocks, resizeFloatingPreview, resizePreviewMiniPlayer, resizeSplit, resolveAccentPreset, resolveAccentRoles, resolveColors, resolveEffort, resolveFloatingPreviewFrame, resolvePreviewMiniPlayerFrame, resolveShellIcon, resolveSurface, resolveSurfaceState, resolveVariant, resolvedDensity, restoreAnchor, restoreControl, restoreDialogCopy, revealInWindow, safeHref, safePreviewSrc, safeSourceUrl, searchShortcutKeyshortcuts, searchShortcutLabel, settleDecision, sheetVariants, shellIconEntries, shellIconLabel, shouldCollapse, sidebarNavItemClass, sidebarNavItemStateClass, sourceHost, sourceTitle, sourcesLabel, splitLocation, splitPane, splitPaneBalanced, statusDotVariants, stepAppearanceFontSizes, stepCountLabel, stripTrailingBlankLines, suiteKey, suiteState, surfaceAlpha, surfaceInteractive, swapPanes, taskProgress, taskProgressLabel, terminalCssVariables, terminalStatusLabel, testKey, textElement, textVariants, textareaVariants, themeAccentsFor, themeById, themeCssVariables, themeFamilies, themeRecordById, themeRecords, themeScript, themeSurfaces, themesForAppearance, toast, toaster, toggleVariants, tokenRangeAt, tokensAsHex, transcriptDisclosureKey, typeaheadIndex, typographyTokens, undoClosePane, undocumentedTokenAliases, useOptionalTheme, useSideRail, useTheme, validateTheme, validateThemeRegistry, variantFromRecord, withAccent, wrapIndex, writeClipboardText, writeVersionedRecord, zIndexTokens };
201
+ export { ANSI_MAX_LINE_LENGTH, ANSI_RETAIN_LINES, APPEARANCE_EDITOR_FONT_AXES, APPEARANCE_EDITOR_FONT_SIZE_MAX, APPEARANCE_EDITOR_FONT_SIZE_MIN, AboutDialog, AccentPicker, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, ActionButton, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnnotationSurface, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearanceEditorActions, AppearanceFontSettingsGroup, AppearancePanel, AppearancePopover, SettingsRow as AppearanceSettingsRow, AspectRatio, Attachment, AttachmentCard, AttachmentList, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, BoardCardTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CHAIN_OF_THOUGHT_STATUS_LABELS, CODE_BLOCK_LINE_LIMIT, CalendarSurface, Callout, CalloutTitle, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CatalogBrowser, CatalogDetail, CatalogDetailSection, ChainOfThought, ChainOfThoughtResult, ChainOfThoughtResults, ChainOfThoughtStep, Chat, ChatComposer, ChatEmpty, ChatHeader, ChatNotice, Checkbox, CheckboxDescription, CheckboxLabel, Checkpoint, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandHint, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, CommandStatus, ComposerAttachmentButton, ComposerHint, ComposerMenu, ComposerMenuItem, Confirmation, Context, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextualSidebar, ConversationAvatar, ConversationPane, ConversationSurface, DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, EntityIcon, FILE_CHANGE_LABELS, FILE_TREE_AUTO_EXPAND_LIMIT, FILE_TREE_MAX_DEPTH, FILE_TREE_MAX_ROWS, FLOATING_PREVIEW_CORNER_RADIUS, FLOATING_PREVIEW_EDGE_GAP, Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FileTree, FloatingPreview, FormField, Heading, HelpCenter, HoverCard, HoverCardContent, HoverCardTrigger, IconPicker, IconPickerDropdown, InlineCitation, InlineCode, Input, InputControl, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdChord, KbdGroup, Label, ListGroup, ListRow, ListRowControl, MARK_IMAGE_MAX_DATA_URL_LENGTH, MARK_IMAGE_MAX_SOURCE_BYTES, MARK_IMAGE_SIZE, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, MODEL_SEARCH_THRESHOLD, MarkImageError, Marker, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageActions, MessageBody, MessageComposer, MessageContent, MessageDayDivider, MessageFooter, MessageGroup, MessageHeader, MessageRow, MessageScroller, MessageText, ModalDialog, ModelSelector, Motion, NO_FLOATING_PREVIEW_OBSTACLES, NO_PREVIEW_MINI_PLAYER_OBSTACLES, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, NumberField, OrbitItem, OrbitLayout, PASTE_THRESHOLD_CHARS, PASTE_THRESHOLD_LINES, PASTE_TOKEN_REGEX, PREVIEW_MINI_PLAYER_CORNER_RADIUS, PREVIEW_MINI_PLAYER_EDGE_GAP, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, PixelPane, PixelResizeHandle, Plan, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, Questionnaire, Queue, QueueFollowUps, REDUCED_TRANSPARENCY_QUERY, RadioGroup, RadioGroupItem, Reasoning, ResizableHandle, ResizablePanel, ResizablePanelGroup, SOURCE_SNIPPET_LIMIT, SOURCE_TITLE_LIMIT, STACK_MAX_LINES, STACK_TRACE_MAX_BLOCKS, SceneControls, ScrollArea, SecretInputGroup, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsLayout, SettingsNavigation, SettingsPage, SettingsRow$1 as SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShellRail, ShellTopBar, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavResizeHandle, SidebarNavRow, SidebarNavSection, SidebarNavTitle, Skeleton, SkipLink, Slider, Sources, Spinner, SplitLayout, StackTrace, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Subagent, Suggestion, Suggestions, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, TASK_ITEM_STATUS_LABELS, TERMINAL_MAX_LINES, TEST_RESULTS_LIST_LIMIT, TOOL_STATUS_LABELS, TOOL_VALUE_MAX_CHARS, TRACE_STATUS_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskItemList, TaskItemRow, Terminal, TestResults, Text, TextLink, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemeModeToggle, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tool, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, Trace, TraceDetail, TraceLine, TranscriptComposition, Tree, TreeRow, TreeRowActions, UpdateChannelControl, UpdateDialog, ValueCombobox, VirtualWindow, WorkspaceMark, WorkspaceReorderDialog, WorkspaceSwitcher, accentPresets, alertVariants, allTokens, ansi256ToColor, ansiLineText, appearancePreviewThemes, applyAppearanceFontSettings, badgeVariants, boardCardTitleVariants, boundText, breakdownRows, bubbleVariants, buildFileTree, builtinThemes, buttonVariants, calloutVariants, captureAnchor, cardVariants, centredSquare, chatNoticeVariants, checkMarkImageFile, checkpointLabel, checkpointStatus, citationLabel, citationName, clampFloatingPreviewPosition, clampPreviewMiniPlayerPosition, clampWindow, classifyFrame, closePane, cn, colorTokens, computeLayoutFrames, confirmationOutcome, contextLabel, contextLevel, contextLevelWord, contextPercent, contextShort, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countChanges, countLeaves, countLines, createAnsiParser, createAppMenuItems, createLayoutState, createVersionedPersistence, cva, decisionReason, dedentLines, defaultDarkThemeId, defaultLightThemeId, defaultPreferenceStorage, defaultThemeSelection, densityTokens, describeChanges, describeCount, describeFrameGroup, designTokens, diffLineVariants, diffStats, diffTargetPath, editorPaletteFor, elevationTokens, entityIconVariants, expandAll, findModel, findTokenRanges, firstFailureKey, flattenFileTree, focusPane, fontOptions, fontSettingsBootstrapScript, fontZoomShortcut, formatAttachmentSize, formatBytes, formatCost, formatDuration, formatExact, formatReleaseDate, formatDuration$1 as formatTestDuration, formatToken, formatTokens, formatToolValue, frameLocation, groupModels, groupStackEntries, hasContextFigures, headingElement, headingVariants, indexFileTree, initialExpanded, initialsFrom, inlineScriptLiteral, isAwaitingAnswer, isCustomAccent, isFailedExit, isFigure, isMarkImageDataUrl, isPasteBlock, isPlainStyle, isQuestionAnswered, isShellIconKey, isThemeAccentId, itemVariants, kbdChordKeys, kbdGroupVariants, kbdVariants, keyedRows, layoutDepth, listLeaves, listedCounts, localStoragePersistence, markImageFromFile, markImageProblemCopy, markerVariants, messageCitations, modelSearchValue, monogram, motionTokens, movePane, moveTarget, moveWorkspace, nearestAnsiColor, needsSearch, neighborLeaf, nextCitationMode, nextSeq, normalizeAppearanceEditorFontSettings, normalizeAppearanceEditorFontSize, normalizeCustomAccent, normalizeEfforts, normalizeLayout, normalizePath, normalizeSurface, paintAccentRoles, parseAnsi, parseDiff, parseInline, parseMessageText, parseStackTrace, partitionQueue, placeCitationMarkers, plainTextFromMarkdown, platformModifierKey, pruneBlocks, quarantineRecord, radiusTokens, readLegacyValue, readVersionedRecord, reasoningTitle, recollapsePastes, reconcileCounts, recoveryEnvelope, recoveryKeyFor, remapCarriedBlocks, resizeFloatingPreview, resizePreviewMiniPlayer, resizeSplit, resolveAccentPreset, resolveAccentRoles, resolveColors, resolveEffort, resolveFloatingPreviewFrame, resolvePreviewMiniPlayerFrame, resolveShellIcon, resolveSurface, resolveSurfaceState, resolveVariant, resolvedDensity, restoreAnchor, restoreControl, restoreDialogCopy, revealInWindow, safeHref, safePreviewSrc, safeSourceUrl, searchShortcutKeyshortcuts, searchShortcutLabel, settleDecision, sheetVariants, shellIconEntries, shellIconLabel, shouldCollapse, sidebarNavItemClass, sidebarNavItemStateClass, sourceHost, sourceTitle, sourcesLabel, splitLocation, splitPane, splitPaneBalanced, statusDotVariants, stepAppearanceFontSizes, stepCountLabel, stripTrailingBlankLines, suiteKey, suiteState, surfaceAlpha, surfaceInteractive, swapPanes, taskProgress, taskProgressLabel, terminalCssVariables, terminalStatusLabel, testKey, textElement, textVariants, textareaVariants, themeAccentsFor, themeById, themeCssVariables, themeFamilies, themeRecordById, themeRecords, themeScript, themeSurfaces, themesForAppearance, toast, toaster, toggleVariants, tokenRangeAt, tokensAsHex, transcriptDisclosureKey, typeaheadIndex, typographyTokens, undoClosePane, undocumentedTokenAliases, useOptionalTheme, useSideRail, useTheme, validateTheme, validateThemeRegistry, variantFromRecord, withAccent, wrapIndex, writeClipboardText, writeVersionedRecord, zIndexTokens };
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  Show,
3
+ createRoot,
3
4
  createSignal,
4
5
  splitProps,
5
6
  type ComponentProps,
@@ -66,7 +67,16 @@ function guardedClick(
66
67
  onActivate: (event: MouseEvent) => void = () => {}
67
68
  ) {
68
69
  return (event: MouseEvent) => {
69
- if (disabled()) {
70
+ // A polymorphic trigger can provide a getter that creates reactive work.
71
+ // Event callbacks have no owner, so dispose any such work after the read.
72
+ const isDisabled = createRoot((dispose) => {
73
+ try {
74
+ return disabled()
75
+ } finally {
76
+ dispose()
77
+ }
78
+ })
79
+ if (isDisabled) {
70
80
  event.preventDefault()
71
81
  event.stopImmediatePropagation()
72
82
  return
@@ -157,116 +157,123 @@ export function InlineCitation(props: InlineCitationProps) {
157
157
  if (wasPeeking) queueMicrotask(() => content?.focus())
158
158
  }
159
159
 
160
+ // The badge and the popover's portal marker share one wrapper. Without it they
161
+ // are loose siblings in the host's node list, and when the portal marker comes
162
+ // and goes as the card opens and closes, a host that renders its inline nodes
163
+ // as one array (MessageText) reconciles that array and can move the badge,
164
+ // which drops keyboard focus to <body> on the badge the reader just reached.
160
165
  return (
161
166
  <Show when={count() > 0}>
162
- <Popover
163
- open={mode() !== 'closed'}
164
- onOpenChange={(next) => {
165
- if (!next && !pressing) dispatch('dismiss')
166
- }}
167
- placement="bottom"
168
- gutter={6}
169
- >
170
- <PopoverTrigger
171
- as={Button}
172
- variant="subtle"
173
- size="2xs"
174
- touchTarget="comfortable"
175
- data-slot="inline-citation"
176
- aria-label={citationName(local.sources, local.index)}
177
- class={cn('mx-0.5 align-baseline tabular-nums', local.class)}
178
- onClick={onClick}
179
- onPointerEnter={onPointerEnter}
180
- onPointerLeave={onPointerLeave}
181
- onFocus={(event: FocusEvent & { currentTarget: HTMLElement }) => {
182
- // Mouse focus follows the press; only keyboard focus peeks.
183
- if (restoringFocus) return
184
- if (event.currentTarget.matches(':focus-visible')) dispatch('focus')
167
+ <span data-slot="inline-citation-root">
168
+ <Popover
169
+ open={mode() !== 'closed'}
170
+ onOpenChange={(next) => {
171
+ if (!next && !pressing) dispatch('dismiss')
185
172
  }}
186
- onBlur={() => dispatch('blur')}
173
+ placement="bottom"
174
+ gutter={6}
187
175
  >
188
- <span aria-hidden="true" class="max-w-32 truncate">
189
- {citationLabel(local.index, local.sources[0])}
190
- </span>
191
- <Show when={count() > 1}>
192
- <span aria-hidden="true">+{count() - 1}</span>
193
- </Show>
194
- </PopoverTrigger>
195
- <PopoverContent
196
- ref={(element: HTMLElement) => (content = element)}
197
- inert={keyboardPeek() || mode() === 'closed' || undefined}
198
- class="w-72 max-w-full"
199
- onOpenAutoFocus={(event: Event) => {
200
- if (mode() === 'peek') event.preventDefault()
201
- }}
202
- onFocusIn={() => {
203
- focusInCard = true
204
- }}
205
- onKeyDown={(event: KeyboardEvent) => {
206
- if (event.key !== 'Escape' || escapeClosedTooltip || mode() !== 'pinned') return
207
- dispatch('dismiss')
208
- }}
209
- onCloseAutoFocus={(event: Event) => {
210
- const returnFocus = focusInCard
211
- focusInCard = false
212
- if (!returnFocus) {
213
- event.preventDefault()
214
- return
215
- }
216
- // The focus move that follows is synchronous; the microtask ends the window.
217
- restoringFocus = true
218
- queueMicrotask(() => {
219
- restoringFocus = false
220
- })
221
- }}
222
- onPointerEnter={(event: PointerEvent) => {
223
- if (event.pointerType !== 'touch') clear()
224
- }}
225
- onPointerLeave={onPointerLeave}
226
- >
227
- <Show when={active()}>
228
- {(source) => (
229
- <div class="flex min-w-0 flex-col gap-1.5 px-2 py-1.5">
230
- <Show when={count() > 1}>
231
- <div class="flex items-center justify-between gap-2">
232
- <span
233
- role="status"
234
- aria-live="polite"
235
- class="text-xs text-muted-foreground tabular-nums"
236
- >
237
- Source {wrapIndex(position(), count()) + 1} of {count()}
238
- </span>
239
- <span class="flex items-center gap-0.5">
240
- <ActionButton
241
- variant="ghost"
242
- size="icon-xs"
243
- aria-label="Previous source"
244
- tooltip="Previous source"
245
- onClick={() => setPosition((value) => wrapIndex(value - 1, count()))}
246
- >
247
- <ChevronLeft />
248
- </ActionButton>
249
- <ActionButton
250
- variant="ghost"
251
- size="icon-xs"
252
- aria-label="Next source"
253
- tooltip="Next source"
254
- onClick={() => setPosition((value) => wrapIndex(value + 1, count()))}
176
+ <PopoverTrigger
177
+ as={Button}
178
+ variant="subtle"
179
+ size="2xs"
180
+ touchTarget="comfortable"
181
+ data-slot="inline-citation"
182
+ aria-label={citationName(local.sources, local.index)}
183
+ class={cn('mx-0.5 align-baseline tabular-nums', local.class)}
184
+ onClick={onClick}
185
+ onPointerEnter={onPointerEnter}
186
+ onPointerLeave={onPointerLeave}
187
+ onFocus={(event: FocusEvent & { currentTarget: HTMLElement }) => {
188
+ // Mouse focus follows the press; only keyboard focus peeks.
189
+ if (restoringFocus) return
190
+ if (event.currentTarget.matches(':focus-visible')) dispatch('focus')
191
+ }}
192
+ onBlur={() => dispatch('blur')}
193
+ >
194
+ <span aria-hidden="true" class="max-w-32 truncate">
195
+ {citationLabel(local.index, local.sources[0])}
196
+ </span>
197
+ <Show when={count() > 1}>
198
+ <span aria-hidden="true">+{count() - 1}</span>
199
+ </Show>
200
+ </PopoverTrigger>
201
+ <PopoverContent
202
+ ref={(element: HTMLElement) => (content = element)}
203
+ inert={keyboardPeek() || mode() === 'closed' || undefined}
204
+ class="w-72 max-w-full"
205
+ onOpenAutoFocus={(event: Event) => {
206
+ if (mode() === 'peek') event.preventDefault()
207
+ }}
208
+ onFocusIn={() => {
209
+ focusInCard = true
210
+ }}
211
+ onKeyDown={(event: KeyboardEvent) => {
212
+ if (event.key !== 'Escape' || escapeClosedTooltip || mode() !== 'pinned') return
213
+ dispatch('dismiss')
214
+ }}
215
+ onCloseAutoFocus={(event: Event) => {
216
+ const returnFocus = focusInCard
217
+ focusInCard = false
218
+ if (!returnFocus) {
219
+ event.preventDefault()
220
+ return
221
+ }
222
+ // The focus move that follows is synchronous; the microtask ends the window.
223
+ restoringFocus = true
224
+ queueMicrotask(() => {
225
+ restoringFocus = false
226
+ })
227
+ }}
228
+ onPointerEnter={(event: PointerEvent) => {
229
+ if (event.pointerType !== 'touch') clear()
230
+ }}
231
+ onPointerLeave={onPointerLeave}
232
+ >
233
+ <Show when={active()}>
234
+ {(source) => (
235
+ <div class="flex min-w-0 flex-col gap-1.5 px-2 py-1.5">
236
+ <Show when={count() > 1}>
237
+ <div class="flex items-center justify-between gap-2">
238
+ <span
239
+ role="status"
240
+ aria-live="polite"
241
+ class="text-xs text-muted-foreground tabular-nums"
255
242
  >
256
- <ChevronRight />
257
- </ActionButton>
258
- </span>
259
- </div>
260
- </Show>
261
- <PopoverTitle class="p-0 [overflow-wrap:anywhere]">
262
- {sourceTitle(source())}
263
- </PopoverTitle>
264
- <CitationDetails source={source()} />
265
- </div>
266
- )}
267
- </Show>
268
- </PopoverContent>
269
- </Popover>
243
+ Source {wrapIndex(position(), count()) + 1} of {count()}
244
+ </span>
245
+ <span class="flex items-center gap-0.5">
246
+ <ActionButton
247
+ variant="ghost"
248
+ size="icon-xs"
249
+ aria-label="Previous source"
250
+ tooltip="Previous source"
251
+ onClick={() => setPosition((value) => wrapIndex(value - 1, count()))}
252
+ >
253
+ <ChevronLeft />
254
+ </ActionButton>
255
+ <ActionButton
256
+ variant="ghost"
257
+ size="icon-xs"
258
+ aria-label="Next source"
259
+ tooltip="Next source"
260
+ onClick={() => setPosition((value) => wrapIndex(value + 1, count()))}
261
+ >
262
+ <ChevronRight />
263
+ </ActionButton>
264
+ </span>
265
+ </div>
266
+ </Show>
267
+ <PopoverTitle class="p-0 [overflow-wrap:anywhere]">
268
+ {sourceTitle(source())}
269
+ </PopoverTitle>
270
+ <CitationDetails source={source()} />
271
+ </div>
272
+ )}
273
+ </Show>
274
+ </PopoverContent>
275
+ </Popover>
276
+ </span>
270
277
  </Show>
271
278
  )
272
279
  }
@@ -86,6 +86,29 @@ export function isSelfScroll(
86
86
  return lastWriteTop >= 0 && Math.abs(scrollTop - lastWriteTop) <= epsilon
87
87
  }
88
88
 
89
+ /**
90
+ * A viewport can clamp our bottom write before its scroll/resize notification,
91
+ * then streamed content can reopen the gap before either callback runs. Accept
92
+ * only the exact offset explained by that growth, with no reader input. Other
93
+ * offsets still belong to the reader. A programmatic reveal landing at this
94
+ * same offset cannot be distinguished from native clamping by geometry alone.
95
+ */
96
+ export function isViewportGrowthClamp(args: {
97
+ geom: ScrollGeom
98
+ lastWriteTop: number
99
+ lastWriteClientHeight: number
100
+ readerMovedSinceWrite: boolean
101
+ }): boolean {
102
+ const growth = args.geom.clientHeight - args.lastWriteClientHeight
103
+ return (
104
+ !args.readerMovedSinceWrite &&
105
+ args.lastWriteTop >= 0 &&
106
+ args.lastWriteClientHeight >= 0 &&
107
+ growth > SELF_SCROLL_EPSILON &&
108
+ Math.abs(args.geom.scrollTop - Math.max(0, args.lastWriteTop - growth)) <= SELF_SCROLL_EPSILON
109
+ )
110
+ }
111
+
89
112
  /**
90
113
  * Distance (px) from the true bottom within which a user scroll RE-ENGAGES
91
114
  * follow. Deliberately much tighter than DEFAULT_BOTTOM_THRESHOLD: that 100px
@@ -23,6 +23,7 @@ import {
23
23
  evaluateAutoPin,
24
24
  isScrollUpIntent,
25
25
  isSelfScroll,
26
+ isViewportGrowthClamp,
26
27
  resolveUserScrollStick,
27
28
  SELF_SCROLL_EPSILON,
28
29
  type ReaderInput,
@@ -52,6 +53,7 @@ export function createScrollFollow(options: {
52
53
  let stick = true
53
54
  let lastWriteTop = -1
54
55
  let lastWriteClientHeight = -1
56
+ let readerMovedSinceWrite = false
55
57
  let previousTop = -1
56
58
  let lastScrollClientHeight = 0
57
59
  let pendingRestore: { frame: number; fromTop: number; target: number } | undefined
@@ -88,13 +90,29 @@ export function createScrollFollow(options: {
88
90
  }
89
91
  onCleanup(reportPosition)
90
92
 
93
+ const rememberPosition = (element: HTMLDivElement) => {
94
+ lastWriteTop = element.scrollTop
95
+ lastWriteClientHeight = element.clientHeight
96
+ previousTop = element.scrollTop
97
+ readerMovedSinceWrite = false
98
+ }
91
99
  const writePin = (element: HTMLDivElement, target: number) => {
92
100
  // Instant writes keep the self-scroll reference synchronized. A smooth
93
101
  // animation would produce intermediate positions that resemble user input.
94
102
  element.scrollTop = target
95
- lastWriteTop = element.scrollTop
96
- lastWriteClientHeight = element.clientHeight
97
- previousTop = element.scrollTop
103
+ rememberPosition(element)
104
+ }
105
+ const acceptViewportClamp = (element: HTMLDivElement) => {
106
+ if (
107
+ stick &&
108
+ isViewportGrowthClamp({
109
+ geom: geometry(element),
110
+ lastWriteTop,
111
+ lastWriteClientHeight,
112
+ readerMovedSinceWrite,
113
+ })
114
+ )
115
+ rememberPosition(element)
98
116
  }
99
117
  const pinHeld = (element: HTMLDivElement) => {
100
118
  const geom = geometry(element)
@@ -102,11 +120,7 @@ export function createScrollFollow(options: {
102
120
  if (distanceFromBottom(geom) > atBottomEpsilon()) writePin(element, bottomTarget(geom))
103
121
  // An end the engine already clamped to is accepted as it stands, and is the reference
104
122
  // from here on: the write before it is further down than the content now reaches.
105
- else {
106
- lastWriteTop = element.scrollTop
107
- lastWriteClientHeight = element.clientHeight
108
- previousTop = element.scrollTop
109
- }
123
+ else rememberPosition(element)
110
124
  holdTop = element.scrollTop
111
125
  setAtBottom(computeAtBottom(geometry(element), options.threshold()))
112
126
  reportPosition()
@@ -114,6 +128,7 @@ export function createScrollFollow(options: {
114
128
  const pinAuto = () => {
115
129
  if (!scroller || !options.enabled() || pendingRestore) return
116
130
  if (holdsPosition(scroller)) return pinHeld(scroller)
131
+ acceptViewportClamp(scroller)
117
132
  const geom = geometry(scroller)
118
133
  const result = evaluateAutoPin({
119
134
  stick,
@@ -123,10 +138,7 @@ export function createScrollFollow(options: {
123
138
  })
124
139
  stick = result.stick
125
140
  if (result.pin) writePin(scroller, result.target)
126
- else if (result.stick) {
127
- lastWriteTop = result.target
128
- lastWriteClientHeight = geom.clientHeight
129
- }
141
+ else if (result.stick) rememberPosition(scroller)
130
142
  setAtBottom(computeAtBottom(geometry(scroller), options.threshold()))
131
143
  reportPosition()
132
144
  }
@@ -157,6 +169,7 @@ export function createScrollFollow(options: {
157
169
  return
158
170
  }
159
171
  if (holdsPosition(scroller)) return pinHeld(scroller)
172
+ acceptViewportClamp(scroller)
160
173
  const geom = geometry(scroller)
161
174
  setAtBottom(computeAtBottom(geom, options.threshold()))
162
175
  if (!isSelfScroll(geom.scrollTop, lastWriteTop)) {
@@ -173,6 +186,9 @@ export function createScrollFollow(options: {
173
186
  lastWriteClientHeight = -1
174
187
  }
175
188
  }
189
+ // A content-collapse clamp can arrive before ResizeObserver. Keep its new
190
+ // bottom as our reference if viewport growth and more output follow next.
191
+ if (stick && distanceFromBottom(geom) <= atBottomEpsilon()) rememberPosition(scroller)
176
192
  previousTop = geom.scrollTop
177
193
  // This baseline belongs only to scroll events, not observer callbacks.
178
194
  // Advancing it during resize would erase the viewport-clamp evidence.
@@ -219,15 +235,20 @@ export function createScrollFollow(options: {
219
235
  }
220
236
  }
221
237
  const noteHoldInput = (event: Event) => {
222
- if (holds === 0 || holdIntent) return
223
238
  let input: ReaderInput | undefined
224
239
  if (event instanceof WheelEvent) input = { kind: 'wheel', deltaY: event.deltaY }
225
- else if (event instanceof KeyboardEvent)
240
+ else if (event instanceof KeyboardEvent) {
241
+ // Descendant controls own their keys; only the focused transcript can
242
+ // signal native keyboard scrolling, just as for snapshot restoration.
243
+ if (event.target !== scroller) return
226
244
  input = { kind: 'key', key: event.key, shiftKey: event.shiftKey }
227
- else if (event.type === 'touchmove') input = { kind: 'touchmove' }
245
+ } else if (event.type === 'touchmove') input = { kind: 'touchmove' }
228
246
  else if (event.type === 'pointerdown')
229
247
  input = { kind: 'pointerdown', onScroller: event.target === scroller }
230
- if (input && isScrollUpIntent(input)) holdIntent = true
248
+ if (input && isScrollUpIntent(input)) {
249
+ readerMovedSinceWrite = true
250
+ if (holds > 0) holdIntent = true
251
+ }
231
252
  }
232
253
 
233
254
  createEffect(() => {
@@ -239,6 +260,7 @@ export function createScrollFollow(options: {
239
260
  candidate && Number.isFinite(candidate.top) && candidate.top >= 0 ? candidate : undefined
240
261
  let scheduledRestore: typeof pendingRestore
241
262
  let observer: ResizeObserver | undefined
263
+ let contentObserver: MutationObserver | undefined
242
264
  onCleanup(() => {
243
265
  if (scheduledRestore) {
244
266
  cancelAnimationFrame(scheduledRestore.frame)
@@ -248,6 +270,7 @@ export function createScrollFollow(options: {
248
270
  removeRestoreIntentListeners()
249
271
  removeRestoreIntentListeners = noop
250
272
  observer?.disconnect()
273
+ contentObserver?.disconnect()
251
274
  })
252
275
  stick = true
253
276
  holdGeneration += 1
@@ -256,6 +279,7 @@ export function createScrollFollow(options: {
256
279
  holdIntent = false
257
280
  lastWriteTop = -1
258
281
  lastWriteClientHeight = -1
282
+ readerMovedSinceWrite = false
259
283
  previousTop = -1
260
284
  lastScrollClientHeight = 0
261
285
  setAtBottom(true)
@@ -270,7 +294,35 @@ export function createScrollFollow(options: {
270
294
  if (!enabled || typeof ResizeObserver === 'undefined') return
271
295
  observer = new ResizeObserver(pinAuto)
272
296
  observer.observe(scroller!)
273
- if (content) observer.observe(content)
297
+ if (content) {
298
+ observer.observe(content)
299
+ if (typeof MutationObserver !== 'undefined') {
300
+ contentObserver = new MutationObserver(() => {
301
+ // A collapsed turn can clamp the offset before any scroll/resize
302
+ // callback. Remember that bottom at the mutation boundary, before
303
+ // a later task grows the viewport or streams more content. This is
304
+ // bookkeeping only: never pin, re-arm, or compete with another owner.
305
+ if (
306
+ !scroller ||
307
+ !options.enabled() ||
308
+ pendingRestore ||
309
+ holds > 0 ||
310
+ !stick ||
311
+ readerMovedSinceWrite ||
312
+ lastWriteTop < 0
313
+ )
314
+ return
315
+ // Read the offset once per mutation batch. This can flush pending
316
+ // layout, but deferring it loses a collapse clamp before a later task
317
+ // grows the viewport/output. Ordinary growth needs no other geometry.
318
+ const top = scroller.scrollTop
319
+ if (top >= lastWriteTop - SELF_SCROLL_EPSILON) return
320
+ if (scroller.scrollHeight - top - scroller.clientHeight <= atBottomEpsilon())
321
+ rememberPosition(scroller)
322
+ })
323
+ contentObserver.observe(content, { childList: true, characterData: true, subtree: true })
324
+ }
325
+ }
274
326
  }
275
327
 
276
328
  const watchRestoreIntent = () => {