mirror of
https://github.com/bitbaum/writingkit.git
synced 2026-12-04 14:37:22 +01:00
* feat: charts in articles and suggestions the writer accepts or rejects (0.3.0) - ```chart blocks (JSON or CSV spec): parseChartBlock, splitChartBlocks, table fallbacks for RSS/share cards (chartsToTables), chartValuesNotInText so a proposed chart draws only the writer's own numbers - @bitbaum/writingkit/react/chart: ArticleChart / ArticleChartBlock drawn by @bitbaum/chartkit (new optional peer) - Suggestion, applySuggestion (refuses stale text), wordDiff, SuggestionCard - suggestMedia: a chart beside the paragraph with figures, else an illustration - ArticleComposer: renderChart in Preview; draft-from-brief is a suggestion Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * feat(chart): read bip-kit's series-line format too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(suggestions): show a rewrite whole; keep Publish the one primary action Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn --------- Co-authored-by: Claude <noreply@anthropic.com>
17 lines
626 B
TypeScript
17 lines
626 B
TypeScript
import { chartTable, type ArticleChart as ArticleChartSpec } from "../chart.js";
|
|
export declare function ArticleChart({ chart, locale, height, }: {
|
|
chart: ArticleChartSpec;
|
|
locale?: string;
|
|
height?: number;
|
|
}): import("react").JSX.Element;
|
|
/**
|
|
* The text inside a ` ```chart ` fence, drawn; or, when it does not parse, the
|
|
* problem in words for the writer (`showProblem`) and nothing for a reader.
|
|
*/
|
|
export declare function ArticleChartBlock({ source, locale, showProblem, }: {
|
|
source: string;
|
|
locale?: string;
|
|
showProblem?: boolean;
|
|
}): import("react").JSX.Element | null;
|
|
export { chartTable };
|