Content Composer — fixtures
ilinxa/content-composer-fixturesFreeBlock
Content Composer plus the dummy-data fixtures used by the docs-site demo.
Install it
npx shadcn@latest add https://ui.ilinxa.com/r/content-composer-fixtures.jsonSource
1import type { AuthorEntity } from "./parts/field-author-picker";2import type { BodySlotValue, NewsCardItem } from "./types";34/**5 * Re-edit fixtures (shipped via `content-composer-fixtures`). Functions6 * (the demo uploader + author loader) live in `demo.tsx`, not here — fixtures7 * are data only.8 */910export const SAMPLE_AUTHORS: AuthorEntity[] = [11 { id: "u-1", name: "Dana Reyes" },12 { id: "u-2", name: "Sam Okonkwo" },13 { id: "u-3", name: "Mira Lindqvist" },14 { id: "u-4", name: "Theo Vance" },15];1617/**18 * A published article to drive the re-edit round-trip. Its engagement counts19 * (`likeCount` / `commentCount` / `views`) are intentionally present so the demo20 * shows the adapter's OMIT rule: on re-publish, `toContentItem` never re-emits21 * them, so the page's PATCH/merge preserves the real numbers.22 */23export const SAMPLE_NEWS_ITEM: NewsCardItem = {24 id: "news-42",25 title: "City council approves the riverside transit corridor",26 image: "https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1280&h=720&fit=crop&q=80",27 excerpt: "After a two-year review, the corridor breaks ground this spring.",28 category: "Local",29 slug: "riverside-transit-corridor",30 status: "published",31 visibility: "public",32 readTime: 4,33 language: "en",34 topics: ["transit", "infrastructure"],35 tags: ["riverside", "council"],36 authorEntity: { id: "u-1", name: "Dana Reyes" },37 isFeatured: true,38 likeCount: 128,39 commentCount: 24,40 views: 5400,41 publishedAt: "2026-05-20T09:00:00.000Z",42};4344/** The persisted article body (NOT on NewsCardItem) — fed via `initialBody`. */45export const SAMPLE_NEWS_BODY: BodySlotValue = {46 kind: "richtext",47 value: [48 {49 type: "p",50 children: [51 {52 text: "The council voted 7–2 in favour of the corridor after a packed public session.",53 },54 ],55 },56 {57 type: "p",58 children: [59 { text: "Construction is expected to begin in April, with the first segment opening late next year." },60 ],61 },62 ],63};
What it pulls in
Other registry items
Files it writes
More from ilinxa
All 184 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Account Switcheraccount-switcher | ilinxa | Blocks | Free | 1 dep · 10 files | |
| Account Switcher (deprecated alias)account-switcher-01 | ilinxa | Blocks | Free | no deps | |
| Account Switcher — fixturesaccount-switcher-fixtures | ilinxa | Blocks | Free | no deps | |
| App Sidebarapp-sidebar | ilinxa | Blocks | Free | 1 dep · 37 files | |
| App Sidebar — fixturesapp-sidebar-fixtures | ilinxa | Blocks | Free | no deps | |
| Rich Text Editor (deprecated alias)article-body-01 | ilinxa | Blocks | Free | no deps | |
| Article Metaarticle-meta | ilinxa | Blocks | Free | 1 dep · 4 files | |
| Article Meta (deprecated alias)article-meta-01 | ilinxa | Blocks | Free | no deps |
