ValyroUI English version

Citation Evidence Lens

Подсветка утверждений по степени подтверждения и источники к каждому. Pro · Контент и соцсети › Факты и источники

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add citation-evidence-lens
npm install valyro-ui-pro

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

Пропсы

PropTypeDefault
content *stringThe text. Blank lines separate paragraphs; claims are found in it by their quote.
claims *EvidenceClaim[]Statements to check, each with its status and sources.
sources *EvidenceSource[]Everything the claims cite, by id.
onOpenSource(source: EvidenceSource, claim: EvidenceClaim) => voidCalled when the reader opens a source (alongside the link, when the source has a url).
confidence'show' | 'hide''show'Show the model's confidence estimate (labelled as an estimate, not a check). Default show.
activeClaimIdstring | nullClaim whose evidence is open. null: the overview.
defaultActiveClaimIdstring | nullnullInitial open claim when uncontrolled.
onActiveClaimIdChange(id: string | null) => voidCalled when the reader opens, switches or closes a claim.
highlight'all' | 'issues' | 'none'Which claims are highlighted: every one, only those that need attention, or none (plain reading).
defaultHighlight'all' | 'issues' | 'none''all'Initial highlight mode when uncontrolled. Default all.
onHighlightChange(highlight: CitationHighlight) => voidCalled when the reader switches the highlight mode.
loadingbooleanfalseThe text and evidence are loading: skeleton lines.
errorReactNodeLoading failed: shown instead of the text.
titleReactNodeHeading. Default: labels.title.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3).
timeZonestringIANA time zone of source dates (default: the ThemeProvider's, then the reader's).
localestringBCP 47 locale for dates and numbers; defaults to the ThemeProvider's.
labelsPartial<Omit<CitationEvidenceLensLabels, 'statuses' | 'statusHints'>> & { statuses?: Partial<Record<ClaimStatus, string>>; statusHints?: Partial<Record<ClaimStatus, string>>; }Overrides for the built-in English text; keys left out keep their defaults.

Похожие компоненты

  • Source Dossier — Досье источников: статус проверки, факты со ссылками, виды источников, печать
  • Correction Ledger — Хронология правок материала: что изменено, когда и почему, с пословным сравнением
  • Interactive Quote Deck — Цитаты с первоисточником, контекстом, оригиналом перевода и шарингом с атрибуцией
  • Article Header — Шапка статьи: рубрика, заголовок, лид, авторы и дата
  • Byline — Подпись: авторы, дата публикации и обновления, время чтения
  • Article Figure — Иллюстрация с подписью и автором фото
  • Pull Quote — Выносная цитата с атрибуцией
  • Key Points — Блок «Главное» с ключевыми тезисами
  • Editor Note — Обновление, исправление, раскрытие и пометка о спонсорстве
  • Article Toc — Оглавление статьи с подсветкой текущего раздела
  • Reading Progress — Полоса прогресса чтения
  • Share Bar — Поделиться: Telegram, VK, X, WhatsApp, почта и копирование ссылки

Назад: Article Comments · Далее: Source Dossier · Весь раздел «Контент и соцсети»