{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "media-carousel-fixtures",
  "title": "Media Carousel — fixtures",
  "author": "ilinxa",
  "description": "Media Carousel plus the dummy-data fixtures used by the docs-site demo.",
  "registryDependencies": [
    "@ilinxa/media-carousel"
  ],
  "files": [
    {
      "path": "src/registry/components/media/media-carousel/dummy-data.ts",
      "content": "import type { MediaCarouselLabels, MediaItem } from \"./types\";\n\n/** Mixed image + video — kasder gallery demo (5 slides, video at index 2). */\nexport const DUMMY_MIXED_MEDIA: MediaItem[] = [\n  {\n    id: \"1\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/1738986/pexels-photo-1738986.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"Mountain at sunrise\",\n  },\n  {\n    id: \"2\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/2387873/pexels-photo-2387873.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"Forest path with morning light\",\n  },\n  {\n    id: \"3\",\n    type: \"video\",\n    url: \"https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/720/Big_Buck_Bunny_720_10s_1MB.mp4\",\n    poster:\n      \"https://images.pexels.com/videos/856005/free-video-856005.jpg?auto=compress&cs=tinysrgb&w=1280\",\n  },\n  {\n    id: \"4\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/1366919/pexels-photo-1366919.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"City skyline at dusk\",\n  },\n  {\n    id: \"5\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/1366913/pexels-photo-1366913.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"Evening lights downtown\",\n  },\n];\n\n/** Photos-only — product gallery demo. */\nexport const DUMMY_PRODUCT_PHOTOS: MediaItem[] = [\n  {\n    id: \"p1\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/1457842/pexels-photo-1457842.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"Sneaker side view\",\n  },\n  {\n    id: \"p2\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/1456706/pexels-photo-1456706.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"Sneaker top view\",\n  },\n  {\n    id: \"p3\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/1598505/pexels-photo-1598505.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"Sneaker detail\",\n  },\n  {\n    id: \"p4\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/2529148/pexels-photo-2529148.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"Sneaker on display\",\n  },\n];\n\n/** Single image — proves single-item shortcut. */\nexport const DUMMY_SINGLE_IMAGE: MediaItem[] = [\n  {\n    id: \"s1\",\n    type: \"image\",\n    url: \"https://images.pexels.com/photos/2387873/pexels-photo-2387873.jpeg?auto=compress&cs=tinysrgb&w=1280\",\n    alt: \"Forest path\",\n  },\n];\n\n/** Single video — proves single-item shortcut + video. */\nexport const DUMMY_SINGLE_VIDEO: MediaItem[] = [\n  {\n    id: \"sv1\",\n    type: \"video\",\n    url: \"https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/720/Big_Buck_Bunny_720_10s_1MB.mp4\",\n    poster:\n      \"https://images.pexels.com/videos/856005/free-video-856005.jpg?auto=compress&cs=tinysrgb&w=1280\",\n  },\n];\n\nconst PX = \"https://images.pexels.com/photos\";\nconst PX_Q = \"?auto=compress&cs=tinysrgb&w=1280\";\n\n/** Platform post carousel — mixed image sizes with intrinsic `width` / `height` (landscape, portrait, panoramic). */\nexport const prototypeItems: MediaItem[] = [\n  { id: \"pr1\", type: \"image\", url: `${PX}/1738986/pexels-photo-1738986.jpeg${PX_Q}`, alt: \"Mountain at sunrise\", width: 1280, height: 853 },\n  { id: \"pr2\", type: \"image\", url: `${PX}/2387873/pexels-photo-2387873.jpeg${PX_Q}`, alt: \"Forest path with morning light\", width: 853, height: 1280 },\n  { id: \"pr3\", type: \"image\", url: `${PX}/1366919/pexels-photo-1366919.jpeg${PX_Q}`, alt: \"City skyline at dusk\", width: 1280, height: 720 },\n  { id: \"pr4\", type: \"image\", url: `${PX}/1366913/pexels-photo-1366913.jpeg${PX_Q}`, alt: \"Evening lights downtown\", width: 1280, height: 427 },\n];\n\n/** Same shape, different leading ratio — pair with `aspect=\"natural-clamped\"` to see the clamp (3:4 becomes 4:5). */\nexport const mixedRatioItems: MediaItem[] = [\n  { id: \"mr1\", type: \"image\", url: `${PX}/2387873/pexels-photo-2387873.jpeg${PX_Q}`, alt: \"Forest path\", width: 600, height: 800 },\n  { id: \"mr2\", type: \"image\", url: `${PX}/1738986/pexels-photo-1738986.jpeg${PX_Q}`, alt: \"Mountain\", width: 1280, height: 853 },\n  { id: \"mr3\", type: \"image\", url: `${PX}/1366919/pexels-photo-1366919.jpeg${PX_Q}`, alt: \"City skyline\", width: 1280, height: 720 },\n];\n\nconst POSTER =\n  \"https://images.pexels.com/videos/856005/free-video-856005.jpg?auto=compress&cs=tinysrgb&w=1280\";\n\n/** Two videos (poster + url, with dimensions) and an image. */\nexport const videoItems: MediaItem[] = [\n  { id: \"v1\", type: \"video\", url: \"https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/720/Big_Buck_Bunny_720_10s_1MB.mp4\", poster: POSTER, width: 1280, height: 720 },\n  { id: \"v2\", type: \"image\", url: `${PX}/1738986/pexels-photo-1738986.jpeg${PX_Q}`, alt: \"Mountain at sunrise\", width: 1280, height: 853 },\n  { id: \"v3\", type: \"video\", url: \"https://test-videos.co.uk/vids/jellyfish/mp4/h264/720/Jellyfish_720_10s_1MB.mp4\", poster: POSTER, width: 1280, height: 720 },\n];\n\n/** An image whose URL has \"expired\" — `onMediaError` resolves a working one. */\nexport const brokenImageItem: MediaItem = {\n  id: \"broken1\",\n  type: \"image\",\n  url: \"/__missing__/expired.jpg\",\n  alt: \"Image with an expired URL\",\n  width: 1280,\n  height: 853,\n};\n\n/** The URL `onMediaError` resolves for `brokenImageItem`. */\nexport const refreshedImageUrl = `${PX}/1738986/pexels-photo-1738986.jpeg${PX_Q}`;\n\n/** Companion slides so the error-refresh tab is a real carousel. */\nexport const errorRefreshItems: MediaItem[] = [\n  brokenImageItem,\n  { id: \"er2\", type: \"image\", url: `${PX}/2387873/pexels-photo-2387873.jpeg${PX_Q}`, alt: \"Forest path\", width: 853, height: 1280 },\n];\n\n/** Arabic labels (function forms, Arabic-Indic digits through `locale=\"ar\"`). */\nexport const arLabels: MediaCarouselLabels = {\n  carouselLabel: \"معرض الوسائط\",\n  previousSlide: \"الشريحة السابقة\",\n  nextSlide: \"الشريحة التالية\",\n  goToSlide: (position) => `انتقل إلى الشريحة ${position.toLocaleString(\"ar\")}`,\n  slideAriaLabel: (position, total) =>\n    `الشريحة ${position.toLocaleString(\"ar\")} من ${total.toLocaleString(\"ar\")}`,\n  counter: (position, total, format) => `${format(position)} / ${format(total)}`,\n  carouselRoleDescription: \"معرض\",\n  slideRoleDescription: \"شريحة\",\n};\n\n/** Turkish labels (function forms). */\nexport const trLabels: MediaCarouselLabels = {\n  carouselLabel: \"Medya galerisi\",\n  previousSlide: \"Önceki slayt\",\n  nextSlide: \"Sonraki slayt\",\n  goToSlide: (position) => `${position}. slayta git`,\n  slideAriaLabel: (position, total) => `Slayt ${position} / ${total}`,\n  counter: (position, total, format) => `${format(position)}/${format(total)}`,\n  carouselRoleDescription: \"galeri\",\n  slideRoleDescription: \"slayt\",\n};\n\n/** Captioned items (0.4.0): two short, one without a caption, one long. */\nexport const captionedItems: MediaItem[] = [\n  {\n    id: \"cap1\",\n    type: \"image\",\n    url: `${PX}/1738986/pexels-photo-1738986.jpeg${PX_Q}`,\n    alt: \"Mountain at sunrise\",\n    caption: \"Sunrise from the ridge: the first light on the east face.\",\n  },\n  {\n    id: \"cap2\",\n    type: \"image\",\n    url: `${PX}/2387873/pexels-photo-2387873.jpeg${PX_Q}`,\n    alt: \"Forest path\",\n  },\n  {\n    id: \"cap3\",\n    type: \"image\",\n    url: `${PX}/1366919/pexels-photo-1366919.jpeg${PX_Q}`,\n    alt: \"City skyline at dusk\",\n    caption:\n      \"A longer caption that needs more than two lines: we walked the old harbour road at dusk, stopped for tea, and watched the skyline switch on one window at a time until the whole waterfront was lit. Tap Show more to read the rest.\",\n  },\n];\n\n/** Two items: Embla drops the loop (they cannot fill it at 85 %). */\nexport const twoItems: MediaItem[] = captionedItems.slice(0, 2).map((it) => ({ ...it }));\n\n// @ilinxa/media-carousel-fixtures 0.4.0\n",
      "type": "registry:component",
      "target": "components/media-carousel/dummy-data.ts"
    }
  ],
  "meta": {
    "version": "0.4.0",
    "status": "alpha"
  },
  "categories": [
    "media",
    "fixtures"
  ],
  "type": "registry:block"
}