utils/web_ui/dist/range-slider.d.ts
Krzysztof kuhy Rudnicki 53f281620e web_ui: commit the real tsc output so dist-fresh can pass
`web-ui-tests` has been red since 6714d13 and the cause was not a stale dist/:
the content is byte-identical. Every one of the 16 files differed only by a
trailing newline that tsc does not emit.

Where the newline came from: at 03bf1ed the subproject config had no exclude,
so pre-commit's end-of-file-fixer appended a newline to each generated file.
eaa5683 added `exclude: ^web_ui/dist/` to stop that recurring, but did not
revert the newlines already committed -- leaving a dist/ that no `pnpm build`
can ever reproduce, and therefore a job that could never go green.

It looked fine locally because `tsc -b` is incremental: with a warm
tsconfig.tsbuildinfo it skips emit entirely, so `pnpm build` was a no-op and
printed no diff. CI has no cache, always emits, and always failed. Deleting
tsbuildinfo reproduces the failure locally in one command.

Verified: after deleting tsbuildinfo and all of dist/, a from-scratch
`pnpm build` reproduces exactly what is committed here -- `git diff
--exit-code -- dist` is clean, which is the assertion CI makes. pnpm lint
passes and pnpm coverage is 84 tests, 100% statements/branches/functions.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG
2026-08-22 16:19:09 +02:00

31 lines
1.6 KiB
TypeScript

export interface RangeSliderProps {
/**
* Formats a value for the head readout. Omit it (with `label`) to render a
* bare track — dufs-cloud's wrappers draw their own labels and value notes,
* so a built-in head would duplicate them.
*/
readonly format?: (value: number) => string;
/** Current upper bound; equal to the distribution max when unconstrained. */
readonly hi: number;
/** Accessible name. Falls back to a generic one when omitted. */
readonly label?: string;
/** Current lower bound; equal to the distribution min when unconstrained. */
readonly lo: number;
/** Reports both thumb values (raw, clamped so lo <= hi) on every change. */
readonly onChange: (lo: number, hi: number) => void;
/** The full ascending distribution — not just its endpoints. */
readonly values: readonly number[];
}
/**
* Steps one thumb by `delta` positions through the distribution. Pure, so the
* keyboard contract is testable without layout.
*
* Steps to the next *distinct* value rather than the next index. Real
* distributions are lumpy -- awesome-mcp-explorer's star counts hold ~1500
* duplicate zeros -- and an index step inside a run of equal values changes the
* index while leaving the value (and therefore the thumb, and the filter)
* exactly where it was. That reads as a dead arrow key.
*/
export declare function steppedValue(values: readonly number[], current: number, delta: number): number;
export declare function RangeSlider({ format, hi, label, lo, onChange, values, }: RangeSliderProps): null | React.JSX.Element;
//# sourceMappingURL=range-slider.d.ts.map