ValyroUI Русская версия

Correction Ledger

Correction history: what changed, when and why, with a word-level diff. Pro · Content and social › Facts and sources

The public record of what changed in a piece after it was published: corrections, clarifications, updates and retractions in time order, each with its reason, author and the exact words that changed. Changes that alter the meaning are marked and open by default.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add correction-ledger
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { CorrectionLedger } from 'valyro-ui-pro';

Props

PropTypeDefault
entries *CorrectionEntry[]Every change after publication.
publishedDateInputWhen the piece was first published: the start of the ledger.
order'newest' | 'oldest''newest'Reading order. Default newest.
expandedstring[]Ids of entries whose change is shown.
defaultExpandedstring[]Initial open entries when uncontrolled. Default: major changes.
onExpandedChange(expanded: string[]) => voidCalled when the reader opens or closes an entry's change.
loadingbooleanfalseThe history is loading: skeleton.
errorReactNodeLoading failed: shown instead of the ledger.
titleReactNodeHeading. Default: labels.title.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3).
timeZonestringIANA time zone of the times (default: the ThemeProvider's, then the reader's).
localestringBCP 47 locale for dates; defaults to the ThemeProvider's.
labelsPartial<Omit<CorrectionLedgerLabels, 'kinds'>> & { kinds?: Partial<Record<CorrectionKind, string>> }Overrides for the built-in English text; keys left out keep their defaults.

Related components

  • Citation Evidence Lens — Highlights claims by how well they are supported, with sources for each
  • Source Dossier — Source dossier: verification status, linked facts, source types, print
  • Interactive Quote Deck — Quotes with the primary source, context, original wording and attributed sharing
  • Article Header — Article header: section, headline, lede, authors and date
  • Byline — Byline: authors, published and updated dates, reading time
  • Article Figure — Image with caption and photo credit
  • Pull Quote — Pull quote with attribution
  • Key Points — “Key points” summary block
  • Editor Note — Update, correction, disclosure and sponsored-content notes
  • Article Toc — Article table of contents that tracks the current section
  • Reading Progress — Reading progress bar
  • Share Bar — Share: Telegram, VK, X, WhatsApp, email and copy link

Previous: Source Dossier · Next: Interactive Quote Deck · All Content and social