@flytedan/flytebot-design-system 0.31.0 → 0.32.0

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.
package/dist/index.d.cts CHANGED
@@ -1126,6 +1126,13 @@ interface FilterFieldMultiSelect extends FilterFieldBase {
1126
1126
  * express an "any"/"is"-only dimension exactly rather than showing a switch with
1127
1127
  * nothing to switch to. Defaults to both `["in", "notIn"]`. */
1128
1128
  operators?: FilterOperator[];
1129
+ /** The most values one selection may hold, e.g. the server's own limit on an id list.
1130
+ * validateFilterValue rejects a larger selection, search stops offering new options
1131
+ * once the limit is reached, and a pasted list that would exceed it is refused with a
1132
+ * visible error instead of being applied. Must be a whole number of at least 1;
1133
+ * FilterBar throws a clear, field-naming error in development if it isn't. No limit
1134
+ * when omitted. */
1135
+ maxValues?: number;
1129
1136
  }
1130
1137
  interface FilterRangeValue {
1131
1138
  min?: number;
@@ -1163,9 +1170,9 @@ interface FilterFieldDate extends FilterFieldBase {
1163
1170
  * development if it isn't. */
1164
1171
  defaultDays?: number;
1165
1172
  /** Upper bound enforced on the "within the last N days" input. Default 3650 (ten
1166
- * years) — generous enough for any real "recent activity" window while still
1167
- * guaranteeing a plausible, in-range value ever reaches `onFilterChange`. Must be a
1168
- * whole number from 1 to 3650; FilterBar throws a clear, field-naming error in
1173
+ * years), which is also a hard ceiling: a larger maxDays is treated as 3650 by
1174
+ * validateFilterValue and the Days input, in production as well as development. Must
1175
+ * be a whole number from 1 to 3650; FilterBar throws a clear, field-naming error in
1169
1176
  * development if it isn't. */
1170
1177
  maxDays?: number;
1171
1178
  }
@@ -1198,6 +1205,27 @@ interface FilterBarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "on
1198
1205
  align?: "left" | "right";
1199
1206
  className?: string;
1200
1207
  }
1208
+ type FilterValidation = {
1209
+ ok: true;
1210
+ } | {
1211
+ ok: false;
1212
+ reason: string;
1213
+ };
1214
+ /**
1215
+ * The one place every field kind's rules live. Pure, with no state, so FilterBar's own
1216
+ * commit function, a consumer's code (e.g. to disable a submit button) and a test can
1217
+ * all call it on any candidate value:
1218
+ * - text: a string.
1219
+ * - select: one of the field's own option values.
1220
+ * - multiSelect: `{ operator, values }` with at least one `{ value, label }` option, no
1221
+ * more than the field's `maxValues`, and an operator the field allows.
1222
+ * - date, withinDays: a whole number of days from 1 to the field's maxDays, which is
1223
+ * itself capped at 3650.
1224
+ * - date, between: two real YYYY-MM-DD dates, `from` on or before `to`.
1225
+ * - range: at least one bound; each present bound a finite number within the field's
1226
+ * min/max, and a whole number when `field.integer` is set; min ≤ max when both are set.
1227
+ */
1228
+ declare function validateFilterValue(field: FilterField, value: unknown): FilterValidation;
1201
1229
  /**
1202
1230
  * FilterBar — the declarative filter system for a server-driven list.
1203
1231
  *
@@ -2200,10 +2228,12 @@ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement
2200
2228
  }
2201
2229
  declare function Textarea({ label, help, error, required, rows, disabled, id, className, style, ...rest }: TextareaProps): React.JSX.Element;
2202
2230
 
2203
- /** Numeric field with thousands formatting on blur, +/- steppers with hold-to-repeat
2204
- * acceleration and arrow keys (shift = bigStep) that snap to the step grid within
2205
- * [min, max], and inline min/max/integer validation that keeps an invalid typed value
2206
- * from ever reaching `onChange`. */
2231
+ /** Numeric field with thousands formatting while unfocused, +/- steppers (press once for
2232
+ * one step, press and hold to repeat with acceleration), ArrowUp/ArrowDown (Shift for
2233
+ * `bigStep`), and inline min/max/integer validation that keeps an invalid typed value
2234
+ * from ever reaching `onChange`. Every stepper and arrow result lands on the step grid
2235
+ * (multiples of `step` counted from `min`, or from 0 when there is no finite `min`),
2236
+ * computed in decimal-safe arithmetic, then clamped into the allowed range. */
2207
2237
  interface NumberInputProps {
2208
2238
  label?: string;
2209
2239
  help?: string;
@@ -2220,16 +2250,24 @@ interface NumberInputProps {
2220
2250
  suffix?: string;
2221
2251
  required?: boolean;
2222
2252
  disabled?: boolean;
2253
+ /** Lowest allowed value. A typed value below it is shown as invalid and never reaches
2254
+ * `onChange`; the steppers and arrow keys stop at it. With `integer`, the lowest
2255
+ * allowed value is `Math.ceil(min)`. */
2223
2256
  min?: number;
2257
+ /** Highest allowed value, enforced the same way as `min`. With `integer`, the highest
2258
+ * allowed value is `Math.floor(max)`. */
2224
2259
  max?: number;
2260
+ /** Grid spacing for the steppers and arrow keys. Default 1. A press moves to the next
2261
+ * grid point in its direction, so from an off-grid value it snaps onto the grid
2262
+ * (step 10 from 3 goes up to 10, down to 0). Typed values are not snapped. */
2225
2263
  step?: number;
2226
- /** Larger step used while holding the steppers or shift+arrows. */
2264
+ /** Distance for Shift+ArrowUp/ArrowDown and for the accelerated phase of a held
2265
+ * stepper, also snapped to the step grid. Default `10 × step`. */
2227
2266
  bigStep?: number;
2228
- /** Requires a whole number. Off by default — a field with a whole-number `step` (e.g.
2229
- * cents in steps of 10) may still want decimal input, so this is a deliberate opt-in
2230
- * rather than inferred from `step`. When set, typed text, blur, the steppers and arrow
2231
- * keys all reject or snap away from a fractional value; a fractional value can never
2232
- * reach `onChange`. */
2267
+ /** Requires a whole number. Off by default, so a whole-number `step` (e.g. cents in
2268
+ * steps of 10) doesn't by itself block decimals. When set, a typed fraction is shown
2269
+ * as invalid, the allowed range narrows to `[ceil(min), floor(max)]`, and a stepper or
2270
+ * arrow result that falls between whole numbers is rounded in the direction of travel. */
2233
2271
  integer?: boolean;
2234
2272
  /** Thousands-format the display when not editing. Default true. */
2235
2273
  format?: boolean;
@@ -2237,13 +2275,12 @@ interface NumberInputProps {
2237
2275
  /** Called with {target:{value}} where value is a number — or `undefined` once the
2238
2276
  * field is cleared to empty. A cleared field is "no value", never `0`: the caller
2239
2277
  * (e.g. FilterBar's range/date panels) tells an unset bound apart from a typed
2240
- * zero by this, not by testing for `0` itself. */
2278
+ * zero by this, not by testing for `0` itself. Never called with an invalid value. */
2241
2279
  onChange?: (e: any) => void;
2242
- /** Called with the field's current validity every time it changes — true once the
2243
- * typed text is empty or a legal number, false while it is out of bounds, non-integer
2244
- * (when `integer` is set), or otherwise unparseable. Lets a parent (e.g. a panel with
2245
- * its own Done button) know a value is mid-edit-and-invalid even though nothing has
2246
- * been (or ever will be) passed to `onChange` for it. */
2280
+ /** Called on mount and whenever the field's validity changes — true while the text is
2281
+ * empty or a legal number, false while it is out of range, fractional (with
2282
+ * `integer`), or not a number. Invalid text stays in the field, flagged, after blur, so
2283
+ * a parent with its own Done button can keep it disabled until the text is fixed. */
2247
2284
  onValidityChange?: (valid: boolean) => void;
2248
2285
  placeholder?: string;
2249
2286
  style?: any;
@@ -4671,4 +4708,4 @@ declare function formatDocumentTitle(routeTitle: string | undefined | null, appN
4671
4708
  */
4672
4709
  declare function useDocumentTitle(routeTitle: string | undefined | null, appName: string): void;
4673
4710
 
4674
- export { AccountMenu, type AccountMenuLink, type AccountMenuProps, AgentChatPanel, type AgentChatPanelProps, AnchoredPopover, type AnchoredPopoverProps, AnimNum, type AnimNumProps, ApiSpecBrowser, type ApiSpecBrowserProps, type AppEntry, AppShell, type AppShellProps, AppSwitcher, type AppSwitcherProps, AppearanceMenu, type AppearanceMenuProps, type AppearancePrefs, type AppearanceStore, type AppearanceStoreOptions, type Attachment, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Badge, type BadgeProps, Banner, type BannerProps, type BannerTone, BarList, type BarListProps, type BarListRow, BudgetReallocator, type BudgetReallocatorProps, Button, type ButtonProps, CHANNELS, CHANNEL_WEIGHTS, CHAT_UNAVAILABLE, Calendar, type CalendarProps, Card, type CardProps, CardRow, type CardRowProps, ChannelContribution, type ChannelContributionChannel, type ChannelContributionProps, ChannelMeta, type ChannelMetaRecord, ChannelTag, type ChannelTagProps, ChannelWeightOf, type ChatAdapter, ChatComposer, type ChatComposerProps, type ChatEngine, type ChatEngineOptions, ChatKit, type ChatMessage, type ChatRenderContext, ChatSessionBar, type ChatSessionBarProps, ChatTranscript, type ChatTranscriptProps, ChatTurn, type ChatTurnProps, Checkbox, type CheckboxProps, type Citation, Citations, type CitationsProps, Clamp, type ClampProps, ClockFace, type ClockFaceProps, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ComingSoon, type ComingSoonProps, type ContextUsage, type CreateVersionStoreOptions, CsiBadge, type CsiBadgeProps, CsiHero, type CsiHeroProps, CsiMeter, type CsiMeterProps, DEFAULT_PREFS, DEFAULT_STORAGE_KEY, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, type DemoSessionControls, DemoSessionProvider, type DeviceSession, DiffBlock, type DiffBlockProps, DonutChart, type DonutChartProps, type DonutSegment, Drawer, type DrawerProps, Dropzone, DropzoneKit, type DropzoneProps, ENTITY_ROW_METRIC_WIDTH, type EditorTrigger, EmptyState, type EmptyStateProps, type EndpointSpec, EntityRow, type EntityRowAction, type EntityRowContent, type EntityRowMetric, EntityRowMetrics, type EntityRowMetricsProps, type EntityRowProps, FILE_VIEWER_CSV_ROW_LIMIT, FILE_VIEWER_TEXT_LIMIT, FeatureGate, type FeatureGateProps, type FeatureStatus, FileBrowser, type FileBrowserFile, type FileBrowserFolder, type FileBrowserPermissions, type FileBrowserProps, FileChip, type FileChipProps, FileGrid, type FileGridProps, FileKit, FilePickButton, type FilePickButtonProps, type FileRejection, FileStrip, type FileStripProps, FileTile, type FileTileProps, type FileUploadHandler, FileViewer, type FileViewerProps, FilterBar, type FilterBarProps, type FilterDateValue, type FilterField, type FilterFieldDate, type FilterFieldMultiSelect, type FilterFieldOption, type FilterFieldRange, type FilterFieldSelect, type FilterFieldText, type FilterMultiSelectValue, type FilterOperator, type FilterRangeValue, type FilterResolveMatch, type FilterResolveResult, type FilterValue, Flag$1 as Flag, type FlagExplanation, type FlagProps, FlytedeskBrand, type FlytedeskBrandProps, FlytedeskMark, type FlytedeskMarkProps, FormatEta, FunnelChart, type FunnelChartProps, type FunnelStep, Gate, type GateProps, IMPORTANCE_LEVELS, IconButton, type IconButtonProps, type ImportanceLevel, type ImportanceLevelId, ImportanceTag, type ImportanceTagProps, type ImportanceTokens, Input, type InputProps, type Job, type JobAction, type JobCardStatus, type JobStatus, JobTray, type JobTrayProps, Json, KeyHint, type KeyHintProps, type ListEnvelope, LoadingRegion, type LoadingRegionProps, Markdown, MarkdownEditor, type MarkdownEditorHandle, type MarkdownEditorProps, MarkdownInline, type MarkdownProps, type MentionSource, Menu, MenuButton, type MenuButtonProps, type MenuItem, type MenuProps, MessageBody, type MessageBodyProps, type MessageGroup, Meter, type MeterProps, type MeterSegment, type MeterSegmentInput, MixGap, type MixGapProps, type MixGapRow, MockJobKit, type MockJobStatus, Modal, type ModalProps, ModeSwitch, type ModeSwitchProps, type Model, ModelControls, type ModelControlsProps, NumberInput, type NumberInputProps, POPOVER_BODY_MIN, type Packet, PacketCard, type PacketCardProps, type PacketSchema, type Pager, Pagination, type PaginationProps, PermissionDenied, type PermissionDeniedProps, type PermissionGroup, PermissionHint, type PermissionItem, type Phase, type PhaseStatus, PhasedProgress, type PhasedProgressProps, type Placement, type PollOptions, Popover, type PopoverProps, type PreferenceCriterion, PreferenceMeter, type PreferenceMeterProps, type ProfileFieldDef, type ProfileFieldType, type ProfileNotificationDef, ProfilePage, type ProfilePageProps, ProgressBar, type ProgressBarProps, QueryKit, type QueuedTurn, QuotaRow, type QuotaRowProps, Radio, type RadioProps, RangeSlider, type RangeSliderProps, RelativeTime, type RelativeTimeProps, type RoadmapItem, type RoadmapResult, RoadmapTimeline, type RoadmapTimelineProps, type Role, RunActions, type RunActionsProps, type RunConfig, RuntimeKit, type RuntimeSummary, SaturationDistribution, type SaturationDistributionCampus, type SaturationDistributionProps, ScoreMeter, type ScoreMeterProps, ScreenHead, type ScreenHeadProps, SearchField, type SearchFieldProps, SegmentedControl, type SegmentedControlProps, SegmentedMeter, type SegmentedMeterProps, Select, type SelectOption, type SelectProps, type SendMessageResult, type ServerTable, type Session, type SessionContextValue, type Flag as SessionFlag, SessionKit, SessionProvider, type SessionProviderProps, type SessionRole, type SessionStats, type SessionUser, SidebarNav, type SidebarNavItem, type SidebarNavProps, type SignInContinueAs, SignInPage, type SignInPageProps, Skeleton, type SkeletonProps, SkeletonText, type SkeletonTextProps, type SlashCommand, Slider, type SliderProps, SortMenu, type SortMenuField, type SortMenuProps, type SpecModule, Spinner, type SpinnerProps, StatTile, type StatTileProps, type Step, StepList, type StepListProps, type StreamHandlers, type Suggestion, SurroundSound, type SurroundSoundProps, Switch, type SwitchProps, type TableQuery, Tabs, type TabsProps, Tag, type TagProps, TestModeBar, type TestModeBarProps, type TextScale, Textarea, type TextareaProps, type ThemeMode, ThinkingBlock, type ThinkingBlockProps, type ThreadSummary, TimePicker, type TimePickerProps, Toast, type ToastProps, Tooltip, type TooltipProps, Topbar, type TopbarProps, TranscriptKit, TransferList, type TransferListProps, type TransferListSide, type TransferListSideProps, TrendChart, type TrendChartProps, type TrendSeries, type UsageLimit, UseFeatureStatus, type UseResponsiveRailOptions, type UseResponsiveRailResult, UseRuntimeMode, type UseServerTableOptions, type User, VIRTUAL_LIST_BUFFER_ROWS, VIRTUAL_LIST_ROW_GAP, type VersionRecord, type VersionStore, VirtualList, type VirtualListProps, type VirtualLoadedBand, type VirtualWindow, type VoiceHandler, acceptMatches, anyOfFilter, applyPrefs, channelWeightOf, computeNeedMore, computeVirtualWindow, createLocalStorageAppearanceStore, createVersionStore, eqFilter, extensionOf, extractClipboardFiles, filterFiles, formatAbsolute, formatBytes, formatClock, formatDocumentTitle, formatDuration, formatEta, formatRelative, groupMessages, hasModifier, iconForMime, importanceLevel, importanceTokens, installFlytedeskFavicon, isImage, isSystemMessage, jobBucket, languageLabel, loadPrefs, markdownToText, meterFormats, modifierLabel, parseDelimited, pastedTextName, pluralizeUnit, preferenceScore, preferenceSegments, rangeFilter, resolveTheme, revokeAttachment, savePrefs, toAttachment, tokenize, useAppearancePrefs, useChatEngine, useDocumentTitle, useFeatureStatus, useFocusTrap, usePopoverPosition, useResponsiveRail, useRuntimeMode, useServerTable, useSessionContext, useStagedFiles, visibleMessages };
4711
+ export { AccountMenu, type AccountMenuLink, type AccountMenuProps, AgentChatPanel, type AgentChatPanelProps, AnchoredPopover, type AnchoredPopoverProps, AnimNum, type AnimNumProps, ApiSpecBrowser, type ApiSpecBrowserProps, type AppEntry, AppShell, type AppShellProps, AppSwitcher, type AppSwitcherProps, AppearanceMenu, type AppearanceMenuProps, type AppearancePrefs, type AppearanceStore, type AppearanceStoreOptions, type Attachment, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Badge, type BadgeProps, Banner, type BannerProps, type BannerTone, BarList, type BarListProps, type BarListRow, BudgetReallocator, type BudgetReallocatorProps, Button, type ButtonProps, CHANNELS, CHANNEL_WEIGHTS, CHAT_UNAVAILABLE, Calendar, type CalendarProps, Card, type CardProps, CardRow, type CardRowProps, ChannelContribution, type ChannelContributionChannel, type ChannelContributionProps, ChannelMeta, type ChannelMetaRecord, ChannelTag, type ChannelTagProps, ChannelWeightOf, type ChatAdapter, ChatComposer, type ChatComposerProps, type ChatEngine, type ChatEngineOptions, ChatKit, type ChatMessage, type ChatRenderContext, ChatSessionBar, type ChatSessionBarProps, ChatTranscript, type ChatTranscriptProps, ChatTurn, type ChatTurnProps, Checkbox, type CheckboxProps, type Citation, Citations, type CitationsProps, Clamp, type ClampProps, ClockFace, type ClockFaceProps, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ComingSoon, type ComingSoonProps, type ContextUsage, type CreateVersionStoreOptions, CsiBadge, type CsiBadgeProps, CsiHero, type CsiHeroProps, CsiMeter, type CsiMeterProps, DEFAULT_PREFS, DEFAULT_STORAGE_KEY, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, type DemoSessionControls, DemoSessionProvider, type DeviceSession, DiffBlock, type DiffBlockProps, DonutChart, type DonutChartProps, type DonutSegment, Drawer, type DrawerProps, Dropzone, DropzoneKit, type DropzoneProps, ENTITY_ROW_METRIC_WIDTH, type EditorTrigger, EmptyState, type EmptyStateProps, type EndpointSpec, EntityRow, type EntityRowAction, type EntityRowContent, type EntityRowMetric, EntityRowMetrics, type EntityRowMetricsProps, type EntityRowProps, FILE_VIEWER_CSV_ROW_LIMIT, FILE_VIEWER_TEXT_LIMIT, FeatureGate, type FeatureGateProps, type FeatureStatus, FileBrowser, type FileBrowserFile, type FileBrowserFolder, type FileBrowserPermissions, type FileBrowserProps, FileChip, type FileChipProps, FileGrid, type FileGridProps, FileKit, FilePickButton, type FilePickButtonProps, type FileRejection, FileStrip, type FileStripProps, FileTile, type FileTileProps, type FileUploadHandler, FileViewer, type FileViewerProps, FilterBar, type FilterBarProps, type FilterDateValue, type FilterField, type FilterFieldDate, type FilterFieldMultiSelect, type FilterFieldOption, type FilterFieldRange, type FilterFieldSelect, type FilterFieldText, type FilterMultiSelectValue, type FilterOperator, type FilterRangeValue, type FilterResolveMatch, type FilterResolveResult, type FilterValidation, type FilterValue, Flag$1 as Flag, type FlagExplanation, type FlagProps, FlytedeskBrand, type FlytedeskBrandProps, FlytedeskMark, type FlytedeskMarkProps, FormatEta, FunnelChart, type FunnelChartProps, type FunnelStep, Gate, type GateProps, IMPORTANCE_LEVELS, IconButton, type IconButtonProps, type ImportanceLevel, type ImportanceLevelId, ImportanceTag, type ImportanceTagProps, type ImportanceTokens, Input, type InputProps, type Job, type JobAction, type JobCardStatus, type JobStatus, JobTray, type JobTrayProps, Json, KeyHint, type KeyHintProps, type ListEnvelope, LoadingRegion, type LoadingRegionProps, Markdown, MarkdownEditor, type MarkdownEditorHandle, type MarkdownEditorProps, MarkdownInline, type MarkdownProps, type MentionSource, Menu, MenuButton, type MenuButtonProps, type MenuItem, type MenuProps, MessageBody, type MessageBodyProps, type MessageGroup, Meter, type MeterProps, type MeterSegment, type MeterSegmentInput, MixGap, type MixGapProps, type MixGapRow, MockJobKit, type MockJobStatus, Modal, type ModalProps, ModeSwitch, type ModeSwitchProps, type Model, ModelControls, type ModelControlsProps, NumberInput, type NumberInputProps, POPOVER_BODY_MIN, type Packet, PacketCard, type PacketCardProps, type PacketSchema, type Pager, Pagination, type PaginationProps, PermissionDenied, type PermissionDeniedProps, type PermissionGroup, PermissionHint, type PermissionItem, type Phase, type PhaseStatus, PhasedProgress, type PhasedProgressProps, type Placement, type PollOptions, Popover, type PopoverProps, type PreferenceCriterion, PreferenceMeter, type PreferenceMeterProps, type ProfileFieldDef, type ProfileFieldType, type ProfileNotificationDef, ProfilePage, type ProfilePageProps, ProgressBar, type ProgressBarProps, QueryKit, type QueuedTurn, QuotaRow, type QuotaRowProps, Radio, type RadioProps, RangeSlider, type RangeSliderProps, RelativeTime, type RelativeTimeProps, type RoadmapItem, type RoadmapResult, RoadmapTimeline, type RoadmapTimelineProps, type Role, RunActions, type RunActionsProps, type RunConfig, RuntimeKit, type RuntimeSummary, SaturationDistribution, type SaturationDistributionCampus, type SaturationDistributionProps, ScoreMeter, type ScoreMeterProps, ScreenHead, type ScreenHeadProps, SearchField, type SearchFieldProps, SegmentedControl, type SegmentedControlProps, SegmentedMeter, type SegmentedMeterProps, Select, type SelectOption, type SelectProps, type SendMessageResult, type ServerTable, type Session, type SessionContextValue, type Flag as SessionFlag, SessionKit, SessionProvider, type SessionProviderProps, type SessionRole, type SessionStats, type SessionUser, SidebarNav, type SidebarNavItem, type SidebarNavProps, type SignInContinueAs, SignInPage, type SignInPageProps, Skeleton, type SkeletonProps, SkeletonText, type SkeletonTextProps, type SlashCommand, Slider, type SliderProps, SortMenu, type SortMenuField, type SortMenuProps, type SpecModule, Spinner, type SpinnerProps, StatTile, type StatTileProps, type Step, StepList, type StepListProps, type StreamHandlers, type Suggestion, SurroundSound, type SurroundSoundProps, Switch, type SwitchProps, type TableQuery, Tabs, type TabsProps, Tag, type TagProps, TestModeBar, type TestModeBarProps, type TextScale, Textarea, type TextareaProps, type ThemeMode, ThinkingBlock, type ThinkingBlockProps, type ThreadSummary, TimePicker, type TimePickerProps, Toast, type ToastProps, Tooltip, type TooltipProps, Topbar, type TopbarProps, TranscriptKit, TransferList, type TransferListProps, type TransferListSide, type TransferListSideProps, TrendChart, type TrendChartProps, type TrendSeries, type UsageLimit, UseFeatureStatus, type UseResponsiveRailOptions, type UseResponsiveRailResult, UseRuntimeMode, type UseServerTableOptions, type User, VIRTUAL_LIST_BUFFER_ROWS, VIRTUAL_LIST_ROW_GAP, type VersionRecord, type VersionStore, VirtualList, type VirtualListProps, type VirtualLoadedBand, type VirtualWindow, type VoiceHandler, acceptMatches, anyOfFilter, applyPrefs, channelWeightOf, computeNeedMore, computeVirtualWindow, createLocalStorageAppearanceStore, createVersionStore, eqFilter, extensionOf, extractClipboardFiles, filterFiles, formatAbsolute, formatBytes, formatClock, formatDocumentTitle, formatDuration, formatEta, formatRelative, groupMessages, hasModifier, iconForMime, importanceLevel, importanceTokens, installFlytedeskFavicon, isImage, isSystemMessage, jobBucket, languageLabel, loadPrefs, markdownToText, meterFormats, modifierLabel, parseDelimited, pastedTextName, pluralizeUnit, preferenceScore, preferenceSegments, rangeFilter, resolveTheme, revokeAttachment, savePrefs, toAttachment, tokenize, useAppearancePrefs, useChatEngine, useDocumentTitle, useFeatureStatus, useFocusTrap, usePopoverPosition, useResponsiveRail, useRuntimeMode, useServerTable, useSessionContext, useStagedFiles, validateFilterValue, visibleMessages };
package/dist/index.d.ts CHANGED
@@ -1126,6 +1126,13 @@ interface FilterFieldMultiSelect extends FilterFieldBase {
1126
1126
  * express an "any"/"is"-only dimension exactly rather than showing a switch with
1127
1127
  * nothing to switch to. Defaults to both `["in", "notIn"]`. */
1128
1128
  operators?: FilterOperator[];
1129
+ /** The most values one selection may hold, e.g. the server's own limit on an id list.
1130
+ * validateFilterValue rejects a larger selection, search stops offering new options
1131
+ * once the limit is reached, and a pasted list that would exceed it is refused with a
1132
+ * visible error instead of being applied. Must be a whole number of at least 1;
1133
+ * FilterBar throws a clear, field-naming error in development if it isn't. No limit
1134
+ * when omitted. */
1135
+ maxValues?: number;
1129
1136
  }
1130
1137
  interface FilterRangeValue {
1131
1138
  min?: number;
@@ -1163,9 +1170,9 @@ interface FilterFieldDate extends FilterFieldBase {
1163
1170
  * development if it isn't. */
1164
1171
  defaultDays?: number;
1165
1172
  /** Upper bound enforced on the "within the last N days" input. Default 3650 (ten
1166
- * years) — generous enough for any real "recent activity" window while still
1167
- * guaranteeing a plausible, in-range value ever reaches `onFilterChange`. Must be a
1168
- * whole number from 1 to 3650; FilterBar throws a clear, field-naming error in
1173
+ * years), which is also a hard ceiling: a larger maxDays is treated as 3650 by
1174
+ * validateFilterValue and the Days input, in production as well as development. Must
1175
+ * be a whole number from 1 to 3650; FilterBar throws a clear, field-naming error in
1169
1176
  * development if it isn't. */
1170
1177
  maxDays?: number;
1171
1178
  }
@@ -1198,6 +1205,27 @@ interface FilterBarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "on
1198
1205
  align?: "left" | "right";
1199
1206
  className?: string;
1200
1207
  }
1208
+ type FilterValidation = {
1209
+ ok: true;
1210
+ } | {
1211
+ ok: false;
1212
+ reason: string;
1213
+ };
1214
+ /**
1215
+ * The one place every field kind's rules live. Pure, with no state, so FilterBar's own
1216
+ * commit function, a consumer's code (e.g. to disable a submit button) and a test can
1217
+ * all call it on any candidate value:
1218
+ * - text: a string.
1219
+ * - select: one of the field's own option values.
1220
+ * - multiSelect: `{ operator, values }` with at least one `{ value, label }` option, no
1221
+ * more than the field's `maxValues`, and an operator the field allows.
1222
+ * - date, withinDays: a whole number of days from 1 to the field's maxDays, which is
1223
+ * itself capped at 3650.
1224
+ * - date, between: two real YYYY-MM-DD dates, `from` on or before `to`.
1225
+ * - range: at least one bound; each present bound a finite number within the field's
1226
+ * min/max, and a whole number when `field.integer` is set; min ≤ max when both are set.
1227
+ */
1228
+ declare function validateFilterValue(field: FilterField, value: unknown): FilterValidation;
1201
1229
  /**
1202
1230
  * FilterBar — the declarative filter system for a server-driven list.
1203
1231
  *
@@ -2200,10 +2228,12 @@ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement
2200
2228
  }
2201
2229
  declare function Textarea({ label, help, error, required, rows, disabled, id, className, style, ...rest }: TextareaProps): React.JSX.Element;
2202
2230
 
2203
- /** Numeric field with thousands formatting on blur, +/- steppers with hold-to-repeat
2204
- * acceleration and arrow keys (shift = bigStep) that snap to the step grid within
2205
- * [min, max], and inline min/max/integer validation that keeps an invalid typed value
2206
- * from ever reaching `onChange`. */
2231
+ /** Numeric field with thousands formatting while unfocused, +/- steppers (press once for
2232
+ * one step, press and hold to repeat with acceleration), ArrowUp/ArrowDown (Shift for
2233
+ * `bigStep`), and inline min/max/integer validation that keeps an invalid typed value
2234
+ * from ever reaching `onChange`. Every stepper and arrow result lands on the step grid
2235
+ * (multiples of `step` counted from `min`, or from 0 when there is no finite `min`),
2236
+ * computed in decimal-safe arithmetic, then clamped into the allowed range. */
2207
2237
  interface NumberInputProps {
2208
2238
  label?: string;
2209
2239
  help?: string;
@@ -2220,16 +2250,24 @@ interface NumberInputProps {
2220
2250
  suffix?: string;
2221
2251
  required?: boolean;
2222
2252
  disabled?: boolean;
2253
+ /** Lowest allowed value. A typed value below it is shown as invalid and never reaches
2254
+ * `onChange`; the steppers and arrow keys stop at it. With `integer`, the lowest
2255
+ * allowed value is `Math.ceil(min)`. */
2223
2256
  min?: number;
2257
+ /** Highest allowed value, enforced the same way as `min`. With `integer`, the highest
2258
+ * allowed value is `Math.floor(max)`. */
2224
2259
  max?: number;
2260
+ /** Grid spacing for the steppers and arrow keys. Default 1. A press moves to the next
2261
+ * grid point in its direction, so from an off-grid value it snaps onto the grid
2262
+ * (step 10 from 3 goes up to 10, down to 0). Typed values are not snapped. */
2225
2263
  step?: number;
2226
- /** Larger step used while holding the steppers or shift+arrows. */
2264
+ /** Distance for Shift+ArrowUp/ArrowDown and for the accelerated phase of a held
2265
+ * stepper, also snapped to the step grid. Default `10 × step`. */
2227
2266
  bigStep?: number;
2228
- /** Requires a whole number. Off by default — a field with a whole-number `step` (e.g.
2229
- * cents in steps of 10) may still want decimal input, so this is a deliberate opt-in
2230
- * rather than inferred from `step`. When set, typed text, blur, the steppers and arrow
2231
- * keys all reject or snap away from a fractional value; a fractional value can never
2232
- * reach `onChange`. */
2267
+ /** Requires a whole number. Off by default, so a whole-number `step` (e.g. cents in
2268
+ * steps of 10) doesn't by itself block decimals. When set, a typed fraction is shown
2269
+ * as invalid, the allowed range narrows to `[ceil(min), floor(max)]`, and a stepper or
2270
+ * arrow result that falls between whole numbers is rounded in the direction of travel. */
2233
2271
  integer?: boolean;
2234
2272
  /** Thousands-format the display when not editing. Default true. */
2235
2273
  format?: boolean;
@@ -2237,13 +2275,12 @@ interface NumberInputProps {
2237
2275
  /** Called with {target:{value}} where value is a number — or `undefined` once the
2238
2276
  * field is cleared to empty. A cleared field is "no value", never `0`: the caller
2239
2277
  * (e.g. FilterBar's range/date panels) tells an unset bound apart from a typed
2240
- * zero by this, not by testing for `0` itself. */
2278
+ * zero by this, not by testing for `0` itself. Never called with an invalid value. */
2241
2279
  onChange?: (e: any) => void;
2242
- /** Called with the field's current validity every time it changes — true once the
2243
- * typed text is empty or a legal number, false while it is out of bounds, non-integer
2244
- * (when `integer` is set), or otherwise unparseable. Lets a parent (e.g. a panel with
2245
- * its own Done button) know a value is mid-edit-and-invalid even though nothing has
2246
- * been (or ever will be) passed to `onChange` for it. */
2280
+ /** Called on mount and whenever the field's validity changes — true while the text is
2281
+ * empty or a legal number, false while it is out of range, fractional (with
2282
+ * `integer`), or not a number. Invalid text stays in the field, flagged, after blur, so
2283
+ * a parent with its own Done button can keep it disabled until the text is fixed. */
2247
2284
  onValidityChange?: (valid: boolean) => void;
2248
2285
  placeholder?: string;
2249
2286
  style?: any;
@@ -4671,4 +4708,4 @@ declare function formatDocumentTitle(routeTitle: string | undefined | null, appN
4671
4708
  */
4672
4709
  declare function useDocumentTitle(routeTitle: string | undefined | null, appName: string): void;
4673
4710
 
4674
- export { AccountMenu, type AccountMenuLink, type AccountMenuProps, AgentChatPanel, type AgentChatPanelProps, AnchoredPopover, type AnchoredPopoverProps, AnimNum, type AnimNumProps, ApiSpecBrowser, type ApiSpecBrowserProps, type AppEntry, AppShell, type AppShellProps, AppSwitcher, type AppSwitcherProps, AppearanceMenu, type AppearanceMenuProps, type AppearancePrefs, type AppearanceStore, type AppearanceStoreOptions, type Attachment, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Badge, type BadgeProps, Banner, type BannerProps, type BannerTone, BarList, type BarListProps, type BarListRow, BudgetReallocator, type BudgetReallocatorProps, Button, type ButtonProps, CHANNELS, CHANNEL_WEIGHTS, CHAT_UNAVAILABLE, Calendar, type CalendarProps, Card, type CardProps, CardRow, type CardRowProps, ChannelContribution, type ChannelContributionChannel, type ChannelContributionProps, ChannelMeta, type ChannelMetaRecord, ChannelTag, type ChannelTagProps, ChannelWeightOf, type ChatAdapter, ChatComposer, type ChatComposerProps, type ChatEngine, type ChatEngineOptions, ChatKit, type ChatMessage, type ChatRenderContext, ChatSessionBar, type ChatSessionBarProps, ChatTranscript, type ChatTranscriptProps, ChatTurn, type ChatTurnProps, Checkbox, type CheckboxProps, type Citation, Citations, type CitationsProps, Clamp, type ClampProps, ClockFace, type ClockFaceProps, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ComingSoon, type ComingSoonProps, type ContextUsage, type CreateVersionStoreOptions, CsiBadge, type CsiBadgeProps, CsiHero, type CsiHeroProps, CsiMeter, type CsiMeterProps, DEFAULT_PREFS, DEFAULT_STORAGE_KEY, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, type DemoSessionControls, DemoSessionProvider, type DeviceSession, DiffBlock, type DiffBlockProps, DonutChart, type DonutChartProps, type DonutSegment, Drawer, type DrawerProps, Dropzone, DropzoneKit, type DropzoneProps, ENTITY_ROW_METRIC_WIDTH, type EditorTrigger, EmptyState, type EmptyStateProps, type EndpointSpec, EntityRow, type EntityRowAction, type EntityRowContent, type EntityRowMetric, EntityRowMetrics, type EntityRowMetricsProps, type EntityRowProps, FILE_VIEWER_CSV_ROW_LIMIT, FILE_VIEWER_TEXT_LIMIT, FeatureGate, type FeatureGateProps, type FeatureStatus, FileBrowser, type FileBrowserFile, type FileBrowserFolder, type FileBrowserPermissions, type FileBrowserProps, FileChip, type FileChipProps, FileGrid, type FileGridProps, FileKit, FilePickButton, type FilePickButtonProps, type FileRejection, FileStrip, type FileStripProps, FileTile, type FileTileProps, type FileUploadHandler, FileViewer, type FileViewerProps, FilterBar, type FilterBarProps, type FilterDateValue, type FilterField, type FilterFieldDate, type FilterFieldMultiSelect, type FilterFieldOption, type FilterFieldRange, type FilterFieldSelect, type FilterFieldText, type FilterMultiSelectValue, type FilterOperator, type FilterRangeValue, type FilterResolveMatch, type FilterResolveResult, type FilterValue, Flag$1 as Flag, type FlagExplanation, type FlagProps, FlytedeskBrand, type FlytedeskBrandProps, FlytedeskMark, type FlytedeskMarkProps, FormatEta, FunnelChart, type FunnelChartProps, type FunnelStep, Gate, type GateProps, IMPORTANCE_LEVELS, IconButton, type IconButtonProps, type ImportanceLevel, type ImportanceLevelId, ImportanceTag, type ImportanceTagProps, type ImportanceTokens, Input, type InputProps, type Job, type JobAction, type JobCardStatus, type JobStatus, JobTray, type JobTrayProps, Json, KeyHint, type KeyHintProps, type ListEnvelope, LoadingRegion, type LoadingRegionProps, Markdown, MarkdownEditor, type MarkdownEditorHandle, type MarkdownEditorProps, MarkdownInline, type MarkdownProps, type MentionSource, Menu, MenuButton, type MenuButtonProps, type MenuItem, type MenuProps, MessageBody, type MessageBodyProps, type MessageGroup, Meter, type MeterProps, type MeterSegment, type MeterSegmentInput, MixGap, type MixGapProps, type MixGapRow, MockJobKit, type MockJobStatus, Modal, type ModalProps, ModeSwitch, type ModeSwitchProps, type Model, ModelControls, type ModelControlsProps, NumberInput, type NumberInputProps, POPOVER_BODY_MIN, type Packet, PacketCard, type PacketCardProps, type PacketSchema, type Pager, Pagination, type PaginationProps, PermissionDenied, type PermissionDeniedProps, type PermissionGroup, PermissionHint, type PermissionItem, type Phase, type PhaseStatus, PhasedProgress, type PhasedProgressProps, type Placement, type PollOptions, Popover, type PopoverProps, type PreferenceCriterion, PreferenceMeter, type PreferenceMeterProps, type ProfileFieldDef, type ProfileFieldType, type ProfileNotificationDef, ProfilePage, type ProfilePageProps, ProgressBar, type ProgressBarProps, QueryKit, type QueuedTurn, QuotaRow, type QuotaRowProps, Radio, type RadioProps, RangeSlider, type RangeSliderProps, RelativeTime, type RelativeTimeProps, type RoadmapItem, type RoadmapResult, RoadmapTimeline, type RoadmapTimelineProps, type Role, RunActions, type RunActionsProps, type RunConfig, RuntimeKit, type RuntimeSummary, SaturationDistribution, type SaturationDistributionCampus, type SaturationDistributionProps, ScoreMeter, type ScoreMeterProps, ScreenHead, type ScreenHeadProps, SearchField, type SearchFieldProps, SegmentedControl, type SegmentedControlProps, SegmentedMeter, type SegmentedMeterProps, Select, type SelectOption, type SelectProps, type SendMessageResult, type ServerTable, type Session, type SessionContextValue, type Flag as SessionFlag, SessionKit, SessionProvider, type SessionProviderProps, type SessionRole, type SessionStats, type SessionUser, SidebarNav, type SidebarNavItem, type SidebarNavProps, type SignInContinueAs, SignInPage, type SignInPageProps, Skeleton, type SkeletonProps, SkeletonText, type SkeletonTextProps, type SlashCommand, Slider, type SliderProps, SortMenu, type SortMenuField, type SortMenuProps, type SpecModule, Spinner, type SpinnerProps, StatTile, type StatTileProps, type Step, StepList, type StepListProps, type StreamHandlers, type Suggestion, SurroundSound, type SurroundSoundProps, Switch, type SwitchProps, type TableQuery, Tabs, type TabsProps, Tag, type TagProps, TestModeBar, type TestModeBarProps, type TextScale, Textarea, type TextareaProps, type ThemeMode, ThinkingBlock, type ThinkingBlockProps, type ThreadSummary, TimePicker, type TimePickerProps, Toast, type ToastProps, Tooltip, type TooltipProps, Topbar, type TopbarProps, TranscriptKit, TransferList, type TransferListProps, type TransferListSide, type TransferListSideProps, TrendChart, type TrendChartProps, type TrendSeries, type UsageLimit, UseFeatureStatus, type UseResponsiveRailOptions, type UseResponsiveRailResult, UseRuntimeMode, type UseServerTableOptions, type User, VIRTUAL_LIST_BUFFER_ROWS, VIRTUAL_LIST_ROW_GAP, type VersionRecord, type VersionStore, VirtualList, type VirtualListProps, type VirtualLoadedBand, type VirtualWindow, type VoiceHandler, acceptMatches, anyOfFilter, applyPrefs, channelWeightOf, computeNeedMore, computeVirtualWindow, createLocalStorageAppearanceStore, createVersionStore, eqFilter, extensionOf, extractClipboardFiles, filterFiles, formatAbsolute, formatBytes, formatClock, formatDocumentTitle, formatDuration, formatEta, formatRelative, groupMessages, hasModifier, iconForMime, importanceLevel, importanceTokens, installFlytedeskFavicon, isImage, isSystemMessage, jobBucket, languageLabel, loadPrefs, markdownToText, meterFormats, modifierLabel, parseDelimited, pastedTextName, pluralizeUnit, preferenceScore, preferenceSegments, rangeFilter, resolveTheme, revokeAttachment, savePrefs, toAttachment, tokenize, useAppearancePrefs, useChatEngine, useDocumentTitle, useFeatureStatus, useFocusTrap, usePopoverPosition, useResponsiveRail, useRuntimeMode, useServerTable, useSessionContext, useStagedFiles, visibleMessages };
4711
+ export { AccountMenu, type AccountMenuLink, type AccountMenuProps, AgentChatPanel, type AgentChatPanelProps, AnchoredPopover, type AnchoredPopoverProps, AnimNum, type AnimNumProps, ApiSpecBrowser, type ApiSpecBrowserProps, type AppEntry, AppShell, type AppShellProps, AppSwitcher, type AppSwitcherProps, AppearanceMenu, type AppearanceMenuProps, type AppearancePrefs, type AppearanceStore, type AppearanceStoreOptions, type Attachment, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Badge, type BadgeProps, Banner, type BannerProps, type BannerTone, BarList, type BarListProps, type BarListRow, BudgetReallocator, type BudgetReallocatorProps, Button, type ButtonProps, CHANNELS, CHANNEL_WEIGHTS, CHAT_UNAVAILABLE, Calendar, type CalendarProps, Card, type CardProps, CardRow, type CardRowProps, ChannelContribution, type ChannelContributionChannel, type ChannelContributionProps, ChannelMeta, type ChannelMetaRecord, ChannelTag, type ChannelTagProps, ChannelWeightOf, type ChatAdapter, ChatComposer, type ChatComposerProps, type ChatEngine, type ChatEngineOptions, ChatKit, type ChatMessage, type ChatRenderContext, ChatSessionBar, type ChatSessionBarProps, ChatTranscript, type ChatTranscriptProps, ChatTurn, type ChatTurnProps, Checkbox, type CheckboxProps, type Citation, Citations, type CitationsProps, Clamp, type ClampProps, ClockFace, type ClockFaceProps, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ComingSoon, type ComingSoonProps, type ContextUsage, type CreateVersionStoreOptions, CsiBadge, type CsiBadgeProps, CsiHero, type CsiHeroProps, CsiMeter, type CsiMeterProps, DEFAULT_PREFS, DEFAULT_STORAGE_KEY, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, type DemoSessionControls, DemoSessionProvider, type DeviceSession, DiffBlock, type DiffBlockProps, DonutChart, type DonutChartProps, type DonutSegment, Drawer, type DrawerProps, Dropzone, DropzoneKit, type DropzoneProps, ENTITY_ROW_METRIC_WIDTH, type EditorTrigger, EmptyState, type EmptyStateProps, type EndpointSpec, EntityRow, type EntityRowAction, type EntityRowContent, type EntityRowMetric, EntityRowMetrics, type EntityRowMetricsProps, type EntityRowProps, FILE_VIEWER_CSV_ROW_LIMIT, FILE_VIEWER_TEXT_LIMIT, FeatureGate, type FeatureGateProps, type FeatureStatus, FileBrowser, type FileBrowserFile, type FileBrowserFolder, type FileBrowserPermissions, type FileBrowserProps, FileChip, type FileChipProps, FileGrid, type FileGridProps, FileKit, FilePickButton, type FilePickButtonProps, type FileRejection, FileStrip, type FileStripProps, FileTile, type FileTileProps, type FileUploadHandler, FileViewer, type FileViewerProps, FilterBar, type FilterBarProps, type FilterDateValue, type FilterField, type FilterFieldDate, type FilterFieldMultiSelect, type FilterFieldOption, type FilterFieldRange, type FilterFieldSelect, type FilterFieldText, type FilterMultiSelectValue, type FilterOperator, type FilterRangeValue, type FilterResolveMatch, type FilterResolveResult, type FilterValidation, type FilterValue, Flag$1 as Flag, type FlagExplanation, type FlagProps, FlytedeskBrand, type FlytedeskBrandProps, FlytedeskMark, type FlytedeskMarkProps, FormatEta, FunnelChart, type FunnelChartProps, type FunnelStep, Gate, type GateProps, IMPORTANCE_LEVELS, IconButton, type IconButtonProps, type ImportanceLevel, type ImportanceLevelId, ImportanceTag, type ImportanceTagProps, type ImportanceTokens, Input, type InputProps, type Job, type JobAction, type JobCardStatus, type JobStatus, JobTray, type JobTrayProps, Json, KeyHint, type KeyHintProps, type ListEnvelope, LoadingRegion, type LoadingRegionProps, Markdown, MarkdownEditor, type MarkdownEditorHandle, type MarkdownEditorProps, MarkdownInline, type MarkdownProps, type MentionSource, Menu, MenuButton, type MenuButtonProps, type MenuItem, type MenuProps, MessageBody, type MessageBodyProps, type MessageGroup, Meter, type MeterProps, type MeterSegment, type MeterSegmentInput, MixGap, type MixGapProps, type MixGapRow, MockJobKit, type MockJobStatus, Modal, type ModalProps, ModeSwitch, type ModeSwitchProps, type Model, ModelControls, type ModelControlsProps, NumberInput, type NumberInputProps, POPOVER_BODY_MIN, type Packet, PacketCard, type PacketCardProps, type PacketSchema, type Pager, Pagination, type PaginationProps, PermissionDenied, type PermissionDeniedProps, type PermissionGroup, PermissionHint, type PermissionItem, type Phase, type PhaseStatus, PhasedProgress, type PhasedProgressProps, type Placement, type PollOptions, Popover, type PopoverProps, type PreferenceCriterion, PreferenceMeter, type PreferenceMeterProps, type ProfileFieldDef, type ProfileFieldType, type ProfileNotificationDef, ProfilePage, type ProfilePageProps, ProgressBar, type ProgressBarProps, QueryKit, type QueuedTurn, QuotaRow, type QuotaRowProps, Radio, type RadioProps, RangeSlider, type RangeSliderProps, RelativeTime, type RelativeTimeProps, type RoadmapItem, type RoadmapResult, RoadmapTimeline, type RoadmapTimelineProps, type Role, RunActions, type RunActionsProps, type RunConfig, RuntimeKit, type RuntimeSummary, SaturationDistribution, type SaturationDistributionCampus, type SaturationDistributionProps, ScoreMeter, type ScoreMeterProps, ScreenHead, type ScreenHeadProps, SearchField, type SearchFieldProps, SegmentedControl, type SegmentedControlProps, SegmentedMeter, type SegmentedMeterProps, Select, type SelectOption, type SelectProps, type SendMessageResult, type ServerTable, type Session, type SessionContextValue, type Flag as SessionFlag, SessionKit, SessionProvider, type SessionProviderProps, type SessionRole, type SessionStats, type SessionUser, SidebarNav, type SidebarNavItem, type SidebarNavProps, type SignInContinueAs, SignInPage, type SignInPageProps, Skeleton, type SkeletonProps, SkeletonText, type SkeletonTextProps, type SlashCommand, Slider, type SliderProps, SortMenu, type SortMenuField, type SortMenuProps, type SpecModule, Spinner, type SpinnerProps, StatTile, type StatTileProps, type Step, StepList, type StepListProps, type StreamHandlers, type Suggestion, SurroundSound, type SurroundSoundProps, Switch, type SwitchProps, type TableQuery, Tabs, type TabsProps, Tag, type TagProps, TestModeBar, type TestModeBarProps, type TextScale, Textarea, type TextareaProps, type ThemeMode, ThinkingBlock, type ThinkingBlockProps, type ThreadSummary, TimePicker, type TimePickerProps, Toast, type ToastProps, Tooltip, type TooltipProps, Topbar, type TopbarProps, TranscriptKit, TransferList, type TransferListProps, type TransferListSide, type TransferListSideProps, TrendChart, type TrendChartProps, type TrendSeries, type UsageLimit, UseFeatureStatus, type UseResponsiveRailOptions, type UseResponsiveRailResult, UseRuntimeMode, type UseServerTableOptions, type User, VIRTUAL_LIST_BUFFER_ROWS, VIRTUAL_LIST_ROW_GAP, type VersionRecord, type VersionStore, VirtualList, type VirtualListProps, type VirtualLoadedBand, type VirtualWindow, type VoiceHandler, acceptMatches, anyOfFilter, applyPrefs, channelWeightOf, computeNeedMore, computeVirtualWindow, createLocalStorageAppearanceStore, createVersionStore, eqFilter, extensionOf, extractClipboardFiles, filterFiles, formatAbsolute, formatBytes, formatClock, formatDocumentTitle, formatDuration, formatEta, formatRelative, groupMessages, hasModifier, iconForMime, importanceLevel, importanceTokens, installFlytedeskFavicon, isImage, isSystemMessage, jobBucket, languageLabel, loadPrefs, markdownToText, meterFormats, modifierLabel, parseDelimited, pastedTextName, pluralizeUnit, preferenceScore, preferenceSegments, rangeFilter, resolveTheme, revokeAttachment, savePrefs, toAttachment, tokenize, useAppearancePrefs, useChatEngine, useDocumentTitle, useFeatureStatus, useFocusTrap, usePopoverPosition, useResponsiveRail, useRuntimeMode, useServerTable, useSessionContext, useStagedFiles, validateFilterValue, visibleMessages };