{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "story-viewer-fixtures",
  "title": "Story Viewer — fixtures",
  "author": "ilinxa",
  "description": "Story Viewer plus the dummy-data fixtures used by the docs-site demo.",
  "registryDependencies": [
    "@ilinxa/story-viewer"
  ],
  "files": [
    {
      "path": "src/registry/components/media/story-viewer/dummy-data.ts",
      "content": "import { Heart, Laugh, ThumbsUp } from \"lucide-react\";\nimport { createElement } from \"react\";\nimport type {\n  Story,\n  StoryCurrentUser,\n  StoryEngagementReactionKind,\n  ViewerListItem,\n} from \"./types\";\n\nconst NOW = new Date(\"2026-05-03T14:00:00Z\");\n\nfunction isoMinusMin(min: number): string {\n  return new Date(NOW.getTime() - min * 60_000).toISOString();\n}\n\n/**\n * 3 mock stories with mixed image + video content.\n * Video URLs match kasder's locked test set (w3schools).\n */\nexport const STORY_VIEWER_DUMMY: Story[] = [\n  {\n    id: \"story-1\",\n    userId: \"user-1\",\n    username: \"ayse_yilmaz\",\n    avatar: \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=80&h=80&fit=crop\",\n    hasUnread: true,\n    createdAt: isoMinusMin(15),\n    // v0.2.0 — owner-mode overlay sample data.\n    viewerCount: 47,\n    items: [\n      {\n        id: \"story-1-item-1\",\n        type: \"image\",\n        src: \"https://images.unsplash.com/photo-1517842645767-c639042777db?w=900&h=1600&fit=crop\",\n        duration: 5,\n        // 0.6.0 - per-item caption, time, view count and initial engagement tallies.\n        caption: \"Spring collection is here - first look\",\n        createdAt: isoMinusMin(15),\n        viewerCount: 47,\n        engagement: { likeCount: 12, liked: false, reactionCount: 23, replyCount: 4 },\n        // v0.2.0 — link CTA bottom button.\n        link: {\n          url: \"https://example.com/shop/spring-collection\",\n          cta: \"Shop now\",\n        },\n      },\n      {\n        id: \"story-1-item-2\",\n        type: \"image\",\n        src: \"https://images.unsplash.com/photo-1504711434969-e33886168f5c?w=900&h=1600&fit=crop\",\n        duration: 5,\n        caption: \"Behind the scenes\",\n        createdAt: isoMinusMin(9),\n        viewerCount: 31,\n        engagement: { likeCount: 5, liked: true, reactionCount: 7, replyCount: 0 },\n      },\n      {\n        id: \"story-1-item-3\",\n        type: \"image\",\n        src: \"https://images.unsplash.com/photo-1465101046530-73398c7f28ca?w=900&h=1600&fit=crop\",\n        duration: 5,\n      },\n    ],\n  },\n  {\n    id: \"story-2\",\n    userId: \"user-2\",\n    username: \"mehmet_demir\",\n    avatar: \"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=80&h=80&fit=crop\",\n    hasUnread: true,\n    createdAt: isoMinusMin(45),\n    items: [\n      {\n        id: \"story-2-item-1\",\n        type: \"video\",\n        src: \"https://www.w3schools.com/html/mov_bbb.mp4\",\n      },\n      {\n        id: \"story-2-item-2\",\n        type: \"video\",\n        src: \"https://www.w3schools.com/html/movie.mp4\",\n      },\n    ],\n  },\n  {\n    id: \"story-3\",\n    userId: \"user-3\",\n    username: \"zeynep_kaya\",\n    avatar: \"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=80&h=80&fit=crop\",\n    hasUnread: false,\n    createdAt: isoMinusMin(180),\n    items: [\n      {\n        id: \"story-3-item-1\",\n        type: \"image\",\n        src: \"https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=900&h=1600&fit=crop\",\n        duration: 5,\n      },\n      {\n        id: \"story-3-item-2\",\n        type: \"video\",\n        src: \"https://www.w3schools.com/html/mov_bbb.mp4\",\n      },\n    ],\n  },\n];\n\n// ─── v0.2.0 — additional sample data for engagement / owner / link demos ──\n\n/** Sample current viewer for the v0.2.0 viewer-mode + reply composer demos. */\nexport const STORY_VIEWER_DUMMY_CURRENT_USER: StoryCurrentUser = {\n  id: \"user-current\",\n  name: \"Sen\",\n  avatar:\n    \"https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=80&h=80&fit=crop\",\n};\n\n/** Sample reaction kinds for the engagement overlay's reaction action. */\nexport const STORY_VIEWER_DUMMY_REACTION_KINDS: StoryEngagementReactionKind[] =\n  [\n    {\n      key: \"like\",\n      icon: createElement(ThumbsUp, { className: \"h-6 w-6\" }),\n      label: \"Like\",\n      count: 12,\n    },\n    {\n      key: \"love\",\n      icon: createElement(Heart, { className: \"h-6 w-6\" }),\n      label: \"Love\",\n      count: 8,\n      color: \"#ef4444\",\n    },\n    {\n      key: \"laugh\",\n      icon: createElement(Laugh, { className: \"h-6 w-6\" }),\n      label: \"Haha\",\n      count: 3,\n    },\n  ];\n\n/** Sample viewers list for the owner-mode overlay (eager seed). */\nexport const STORY_VIEWER_DUMMY_VIEWERS: ViewerListItem[] = [\n  {\n    id: \"viewer-1\",\n    name: \"Emre Demir\",\n    avatar:\n      \"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=80&h=80&fit=crop\",\n    viewedAt: new Date(\"2026-05-03T13:55:00Z\").toISOString(),\n  },\n  {\n    id: \"viewer-2\",\n    name: \"Selin Ak\",\n    avatar:\n      \"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=80&h=80&fit=crop\",\n    viewedAt: new Date(\"2026-05-03T13:50:00Z\").toISOString(),\n  },\n  {\n    id: \"viewer-3\",\n    name: \"Burak Kaya\",\n    avatar:\n      \"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=80&h=80&fit=crop\",\n    viewedAt: new Date(\"2026-05-03T13:45:00Z\").toISOString(),\n  },\n  {\n    id: \"viewer-4\",\n    name: \"Defne Yıldız\",\n    avatar:\n      \"https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=80&h=80&fit=crop\",\n    viewedAt: new Date(\"2026-05-03T13:30:00Z\").toISOString(),\n  },\n];\n\n// ─── 0.6.0 - muted group + Arabic (RTL) samples ───────────────────────────\n\n/**\n * A host-muted group: the viewer skips it on every sequential move (auto-advance, tap, arrow\n * keys, swipe). Open it directly with `initialStoryIndex` and it still plays.\n */\nexport const STORY_VIEWER_DUMMY_MUTED: Story = {\n  id: \"story-muted\",\n  userId: \"user-muted\",\n  username: \"muted_account\",\n  muted: true,\n  hasUnread: true,\n  createdAt: isoMinusMin(60),\n  items: [\n    {\n      id: \"story-muted-item-1\",\n      type: \"image\",\n      src: \"https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=900&h=1600&fit=crop\",\n      duration: 5,\n      caption: \"You muted this account - the viewer skips it\",\n    },\n  ],\n};\n\n/** Arabic sample stories for the RTL demo (author names, captions). */\nexport const STORY_VIEWER_DUMMY_AR: Story[] = [\n  {\n    id: \"story-ar-1\",\n    userId: \"user-ar-1\",\n    username: \"ليلى_العتيبي\",\n    avatar: \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=80&h=80&fit=crop\",\n    hasUnread: true,\n    createdAt: isoMinusMin(20),\n    viewerCount: 52,\n    items: [\n      {\n        id: \"story-ar-1-item-1\",\n        type: \"image\",\n        src: \"https://images.unsplash.com/photo-1517842645767-c639042777db?w=900&h=1600&fit=crop\",\n        duration: 5,\n        caption: \"صباح الخير من الرياض - أول رحلة لهذا الموسم\",\n        createdAt: isoMinusMin(20),\n        engagement: { likeCount: 18, liked: false, reactionCount: 9, replyCount: 3 },\n      },\n      {\n        id: \"story-ar-1-item-2\",\n        type: \"image\",\n        src: \"https://images.unsplash.com/photo-1465101046530-73398c7f28ca?w=900&h=1600&fit=crop\",\n        duration: 5,\n        caption: \"غروب الشمس فوق الصحراء\",\n        createdAt: isoMinusMin(12),\n      },\n    ],\n  },\n  {\n    id: \"story-ar-2\",\n    userId: \"user-ar-2\",\n    username: \"خالد_المنصور\",\n    avatar: \"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=80&h=80&fit=crop\",\n    hasUnread: false,\n    createdAt: isoMinusMin(95),\n    items: [\n      {\n        id: \"story-ar-2-item-1\",\n        type: \"image\",\n        src: \"https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=900&h=1600&fit=crop\",\n        duration: 5,\n        caption: \"قهوة المساء مع الأصدقاء\",\n        createdAt: isoMinusMin(95),\n      },\n    ],\n  },\n];\n\n// @ilinxa/story-viewer-fixtures 0.7.1\n",
      "type": "registry:component",
      "target": "components/story-viewer/dummy-data.ts"
    }
  ],
  "meta": {
    "version": "0.7.1",
    "status": "alpha"
  },
  "categories": [
    "media",
    "fixtures"
  ],
  "type": "registry:block"
}