ValyroUI English version

Source Dossier

Досье источников: статус проверки, факты со ссылками, виды источников, печать. Pro · Контент и соцсети › Факты и источники

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add source-dossier
npm install valyro-ui-pro

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

Пропсы

PropTypeDefault
sources *DossierSource[]Everything the piece relies on: documents, interviews, data, pages.
claimsDossierClaim[]Facts of the piece and the sources behind each.
status'verified' | 'partial' | 'unverified' | 'disputed''unverified'Overall state set by an editor. Default unverified — links alone never make a piece verified.
verifiedAtDateInputWhen the editors finished checking.
verifiedByReactNodeWho checked: an editor or the fact-check desk.
methodologyReactNodeHow the facts were checked, in a sentence or two.
defaultExpandedbooleantrueThe source list starts open. Default true; printing always shows it.
loadingbooleanfalseThe dossier is loading: skeleton.
errorReactNodeLoading failed: shown instead of the dossier.
titleReactNodeHeading. Default: labels.title.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3).
timeZonestringIANA time zone of the dates (default: the ThemeProvider's, then the reader's).
localestringBCP 47 locale for dates; defaults to the ThemeProvider's.
labelsPartial<Omit<SourceDossierLabels, 'statuses' | 'statusHints' | 'claimStatuses' | 'kinds' | 'kindHints'>> & { statuses?: Partial<Record<DossierStatus, string>>; statusHints?: Partial<Record<DossierStatus, string>>; claimStatuses?: Partial<Record<ClaimStatus, string>>; kinds?: Partial<Record<DossierSourceKind, string>>; kindHints?: Partial<Record<DossierSourceKind, string>>; }Overrides for the built-in English text; keys left out keep their defaults.

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

  • Citation Evidence Lens — Подсветка утверждений по степени подтверждения и источники к каждому
  • 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, почта и копирование ссылки

Назад: Citation Evidence Lens · Далее: Correction Ledger · Весь раздел «Контент и соцсети»