@geekapps/silo-elements-nextjs 0.2.55 → 0.2.57

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.
@@ -44,6 +44,30 @@ type ChaptersProps = {
44
44
  endTime?: number;
45
45
  }>;
46
46
  };
47
+ type AgeRatingProps = {
48
+ /** The age_ratings JSON from the file: { US: "PG-13", BR: "14", EU: "PEGI 16" } */
49
+ data?: Record<string, string>;
50
+ /** BCP-47 locale like "en-US", "pt-BR", "de-DE" — picks the right region key */
51
+ locale?: string;
52
+ /** Custom lookup for display info per region+code: { title, description, imageUrl } */
53
+ lookup?: Record<string, {
54
+ title?: string;
55
+ description?: string;
56
+ imageUrl?: string;
57
+ }>;
58
+ };
59
+ type RatingProps = {
60
+ /** Aggregate counts */
61
+ counts?: {
62
+ LOVE?: number;
63
+ LIKE?: number;
64
+ DISLIKE?: number;
65
+ };
66
+ /** Current user's reaction */
67
+ userReaction?: "LOVE" | "LIKE" | "DISLIKE" | null;
68
+ /** Called when user clicks a reaction button */
69
+ onReact?: (reaction: "LOVE" | "LIKE" | "DISLIKE" | null) => void;
70
+ };
47
71
  type VideoProps = {
48
72
  title?: string;
49
73
  description?: string;
@@ -79,7 +103,15 @@ declare function StoryboardFrame(_props: StoryboardFrameProps): null;
79
103
  declare namespace StoryboardFrame {
80
104
  var displayName: string;
81
105
  }
106
+ declare function AgeRating(_props: AgeRatingProps): null;
107
+ declare namespace AgeRating {
108
+ var displayName: string;
109
+ }
110
+ declare function Rating(_props: RatingProps): null;
111
+ declare namespace Rating {
112
+ var displayName: string;
113
+ }
82
114
  declare function Video({ title, description, children, className, autoHideControls, defaultVolume, maxHeight, fixedHeight, }: VideoProps): react__default.JSX.Element;
83
115
  declare const VideoPlayer: typeof Video;
84
116
 
85
- export { Captions, type CaptionsProps, Chapters, type ChaptersProps, Source, type SourceProps, Storyboard, StoryboardFrame, type StoryboardFrameProps, type StoryboardProps, type ThumbnailProps, Video, VideoPlayer, type VideoSourceType, VideoThumbnail };
117
+ export { AgeRating, type AgeRatingProps, Captions, type CaptionsProps, Chapters, type ChaptersProps, Rating, type RatingProps, Source, type SourceProps, Storyboard, StoryboardFrame, type StoryboardFrameProps, type StoryboardProps, type ThumbnailProps, Video, VideoPlayer, type VideoSourceType, VideoThumbnail };