/** * The **Photon Grid knowledge base** — curated, verified documentation the AI * retrieves from when a user asks how to *use* the library rather than asking * the grid to do something. * * ### Why this file exists * A language model has never seen Photon Grid. Asked for a React example it * will confidently invent an API that does not exist. So "how do I…" questions * are answered from content authored here and verified against the source, with * the model used only to select and phrase — never to recall. * * ### Accuracy note * Every snippet below was checked against the actual implementation, **not** * against the package READMEs, which contain three known errors: * * | README claims | Reality | Verified in | * |---|---|---| * | `new PhotonGrid({ element, columns, rowData })` | `createGrid('#el', { columns, data })` — `PhotonGrid` isn't exported, `GridCore`'s constructor is positional, and the key is `data` | `src/index.ts`, `src/core/grid-core.ts`, `src/types/grid.types.ts` | * | `` | `` | `photon-grid-angular/src/library/photon-grid.component.ts` | * | `options.theme` | deprecated — use `mode` + `variant` | `src/types/grid.types.ts` | * * If you edit an article, re-verify against source rather than against a README. * * @packageDocumentation */ /** A single retrievable documentation article. */ export interface KnowledgeArticle { /** Stable id, used in tests and for deduplication. */ readonly id: string; /** Human title, shown to the model as the article heading. */ readonly title: string; /** * Words and phrases that should retrieve this article. Matched * case-insensitively against the user's prompt as whole words, so a keyword * may be a phrase ("server side"). Keep these specific: an over-broad keyword * makes this article outrank better ones. */ readonly keywords: readonly string[]; /** Markdown body. Fenced code blocks render with a copy button in the panel. */ readonly body: string; } /** Every article, in retrieval order. */ export declare const KNOWLEDGE_ARTICLES: readonly KnowledgeArticle[]; //# sourceMappingURL=knowledge-base.d.ts.map