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';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
sources * | DossierSource[] | Everything the piece relies on: documents, interviews, data, pages. | |
claims | DossierClaim[] | 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. |
verifiedAt | DateInput | When the editors finished checking. | |
verifiedBy | ReactNode | Who checked: an editor or the fact-check desk. | |
methodology | ReactNode | How the facts were checked, in a sentence or two. | |
defaultExpanded | boolean | true | The source list starts open. Default true; printing always shows it. |
loading | boolean | false | The dossier is loading: skeleton. |
error | ReactNode | Loading failed: shown instead of the dossier. | |
title | ReactNode | Heading. Default: labels.title. | |
headingLevel | 2 | 3 | 4 | 5 | 3 | Level of the heading (default 3). |
timeZone | string | IANA time zone of the dates (default: the ThemeProvider's, then the reader's). | |
locale | string | BCP 47 locale for dates; defaults to the ThemeProvider's. | |
labels | Partial<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 · Весь раздел «Контент и соцсети»