@scalemule/news-publication 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/chunk-FMCHQI7K.js +742 -0
- package/dist/index.cjs +744 -0
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +1 -0
- package/dist/snapshot-C0IGpt-B.d.cts +48 -0
- package/dist/snapshot-CxuyMF39.d.ts +48 -0
- package/dist/snapshot-file.d.cts +2 -1
- package/dist/snapshot-file.d.ts +2 -1
- package/dist/{snapshot-OZFP3-Up.d.cts → types-DFDCZHbS.d.cts} +40 -46
- package/dist/{snapshot-OZFP3-Up.d.ts → types-DFDCZHbS.d.ts} +40 -46
- package/dist/verified-card.cjs +747 -0
- package/dist/verified-card.d.cts +23 -0
- package/dist/verified-card.d.ts +23 -0
- package/dist/verified-card.js +1 -0
- package/package.json +9 -2
- package/tokens/broadsheet.css +210 -0
- package/verified-card.css +208 -0
package/README.md
CHANGED
|
@@ -85,3 +85,18 @@ import { ArticleProvenance } from '@scalemule/news-publication'
|
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
The component inherits the publication's typography. Optional styling hooks are `article-provenance` and `article-provenance__label`. `readerSources()` is available when an existing publication component owns source-list rendering.
|
|
88
|
+
|
|
89
|
+
### Verified Community Cards
|
|
90
|
+
|
|
91
|
+
`VerifiedCardSection` and `VerifiedCardComponent` render broadsheet-styled fact sheets for verified entities (`PLACE`, `ACTIVITY`, `EVENT`, `ORGANIZATION`, `PRODUCT`). Verified cards display confirmed operating hours, venues, contact details, dates, and primary action links (tickets, registration, maps) validated by newsroom staff.
|
|
92
|
+
|
|
93
|
+
```tsx
|
|
94
|
+
import { VerifiedCardSection, getArticleCards } from '@scalemule/news-publication'
|
|
95
|
+
|
|
96
|
+
const cards = getArticleCards(article.metadata?.cards)
|
|
97
|
+
|
|
98
|
+
<VerifiedCardSection cards={cards} />
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Styles adhere to the publication theme (`--pub-paper`, `--pub-ink`, `--pub-accent`, `--pub-rule`, `--pub-soft`) and are included in `@scalemule/news-publication/tokens.css` or available standalone via `@scalemule/news-publication/verified-card.css`.
|
|
102
|
+
|