/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * The Query view on a phone (`Query Builder Phone Spec.md` QP20–QP29), #934's * cards as sentences: each row of a step is one sentence in a 44 row, a tap opens * its slots under it as full-width rows, and one clause is open at a time across * the query. A step's actions open inline under ⋯. Over them the band (Visual · * jq and Copy jq) and the query's head; under them the foot, its check and what * the query gives, Save… and Run. A slot's choices are the builder's * `SlotAutocomplete`, a full-height view here. Nothing floats. * * @packageDocumentation */ import { type ReactNode } from "react"; import { type PartStyles } from "./parts.js"; import type { QueryNotice } from "./use-query-editor.js"; import type { QueryEditor } from "./use-query-editor.js"; import type { QuerySaveLine } from "./status-line.js"; /** Props of {@link QueryPhoneView}. */ export interface QueryPhoneViewProps { readonly editor: QueryEditor; readonly ps: PartStyles; readonly workspace: string | undefined; /** The step an issue went to; the clause it opens. */ readonly focus: string | undefined; /** The notice a phone says over the strip instead. */ readonly elsewhere: QueryNotice | undefined; /** Where the query stands, its name's eyebrow. */ readonly save: QuerySaveLine; /** Its description: the author's, else the generated one. */ readonly description: string; /** Save…, whose popover is a view here. */ readonly saveButton: ReactNode; readonly onRun: () => void; readonly running: boolean; /** Whether the session holds drafts: a slot's value is dirty against what it held before any. */ readonly drafted: boolean; /** Opens the Library tab: a query with no steps' way on (5a). */ readonly onOpenLibrary: () => void; } /** * The Query view — see the module docs. * * @param props - The editor, its parts and the query's standing ({@link QueryPhoneViewProps}) * @returns The view's body */ export declare const QueryPhoneView: import("react").MemoExoticComponent<({ editor, ps, workspace, focus, elsewhere, save, description, saveButton, onRun, running, drafted, onOpenLibrary }: QueryPhoneViewProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=phone-steps.d.ts.map