/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * A render failure stays where it happened (#811). * * One boundary per PART of the canvas — a row's plot, an overlay body, the * expand render, the links layer. A throw while rendering one of them shows a * one-line fallback naming the part, and every other row, overlay and control * keeps working. (The only boundary used to be the Reactive's, around the * whole canvas: one author body that threw at render took everything with it.) * * The fallback carries `data-plan-error` naming the part — a stable id, the * same in every locale — and says so in the canvas's words (#820). It resets * when the part's input changes, so corrected data renders again without a * remount. */ import type { ReactNode } from "react"; import type { PlanPart } from "../messages.js"; type Styles = Record>; /** * A part's stable id — the fallback's `data-plan-error`: `popover`, or `row` * and the row's key (its id's canonical text, #822), which a label is not. * * @param part - The part * @returns Its id */ export declare function planPartId(part: PlanPart): string; export interface PlanPartBoundaryProps { /** The part — a row, a group's strip, an overlay body, the expand render, the links layer. */ part: PlanPart; /** The part's input — when it changes, the boundary tries again. */ resetKey: unknown; /** The resolved `plan` recipe styles (the `partError` slot). */ styles: Styles; children: ReactNode; } /** * Contain a render failure to one part of the canvas. * * @param props - The part's name, its reset input, the recipe styles and the part * @returns The part, or its one-line failure */ export declare function PlanPartBoundary({ part, resetKey, styles, children }: PlanPartBoundaryProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=PartBoundary.d.ts.map