components
1 year ago
testing
2 years ago
components.d.ts
2 years ago
index.d.ts
5 years ago
interfaces.d.ts
1 year ago
stencil-public-runtime.d.ts
2 years ago
util.d.ts
2 years ago
interfaces.d.ts
305 lines
| 1 | declare global { |
| 2 | interface Window { |
| 3 | gapi: any; |
| 4 | wp: any; |
| 5 | jQuery: any; |
| 6 | prestoPlayerAdmin: { |
| 7 | i18n: i18nConfig; |
| 8 | }; |
| 9 | prestoPlayer: { |
| 10 | debug: boolean; |
| 11 | debug_navigator: boolean; |
| 12 | ajaxurl: string; |
| 13 | nonce: string; |
| 14 | isPremium: string; |
| 15 | logged_in: boolean; |
| 16 | i18n: i18nConfig; |
| 17 | }; |
| 18 | } |
| 19 | } |
| 20 | export interface BunnyConfig extends Object { |
| 21 | hostname: string; |
| 22 | thumbnail: string; |
| 23 | preview: string; |
| 24 | } |
| 25 | export interface i18nConfig extends Object { |
| 26 | startOver?: string; |
| 27 | upNext?: string; |
| 28 | rewatch: string; |
| 29 | emailPlaceholder?: string; |
| 30 | skip?: string; |
| 31 | emailDefaultHeadline?: string; |
| 32 | play: string; |
| 33 | } |
| 34 | export interface ActionBarConfig extends Object { |
| 35 | enabled: boolean; |
| 36 | percentage_start: number; |
| 37 | text: string; |
| 38 | background_color: string; |
| 39 | button_type: string; |
| 40 | button_radius: string; |
| 41 | button_text?: string; |
| 42 | button_color?: string; |
| 43 | button_count?: boolean; |
| 44 | button_link?: ButtonLinkObject; |
| 45 | button_text_color?: string; |
| 46 | } |
| 47 | export interface ButtonLinkObject extends Object { |
| 48 | id: string; |
| 49 | url: string; |
| 50 | type: string; |
| 51 | opensInNewTab: boolean; |
| 52 | } |
| 53 | export interface PlaylistItem extends Object { |
| 54 | id: number; |
| 55 | config: PrestoConfig; |
| 56 | duration: string; |
| 57 | title: string; |
| 58 | } |
| 59 | export interface PrestoConfig extends Object { |
| 60 | styles?: string; |
| 61 | type?: string; |
| 62 | preset?: presetAttributes; |
| 63 | autoplay?: boolean; |
| 64 | id?: number; |
| 65 | title?: string; |
| 66 | playerClass?: string; |
| 67 | blockAttributes?: blockAttributes; |
| 68 | chapters?: prestoChapters; |
| 69 | branding?: prestoBranding; |
| 70 | src?: string; |
| 71 | analytics?: boolean; |
| 72 | automations?: boolean; |
| 73 | provider?: string; |
| 74 | provider_video_id?: string; |
| 75 | isAdmin?: boolean; |
| 76 | save_player_position?: boolean; |
| 77 | ajaxProgress?: boolean; |
| 78 | youtube?: YoutubeConfig; |
| 79 | i18n?: i18nConfig; |
| 80 | search?: SearchBarConfig; |
| 81 | markers?: any; |
| 82 | storage?: { |
| 83 | enabled?: boolean; |
| 84 | key?: string; |
| 85 | }; |
| 86 | } |
| 87 | export interface prestoChapters extends Object { |
| 88 | [index: number]: { |
| 89 | time: number; |
| 90 | title: string; |
| 91 | }; |
| 92 | } |
| 93 | export interface DynamicOverlay extends Object { |
| 94 | key?: number; |
| 95 | startTime: string; |
| 96 | endTime: string; |
| 97 | text: string; |
| 98 | position: 'top-left' | 'top-right'; |
| 99 | link?: { |
| 100 | url: string; |
| 101 | type?: string; |
| 102 | id?: number; |
| 103 | opensInNewTab?: boolean; |
| 104 | }; |
| 105 | color: string; |
| 106 | backgroundColor: string; |
| 107 | opacity: number; |
| 108 | } |
| 109 | export interface blockAttributes extends Object { |
| 110 | color?: string; |
| 111 | id?: number; |
| 112 | title?: string; |
| 113 | src?: string; |
| 114 | poster?: string; |
| 115 | playsInline?: boolean; |
| 116 | autoplay?: boolean; |
| 117 | mutedPreview?: { |
| 118 | enabled?: boolean; |
| 119 | captions?: boolean; |
| 120 | }; |
| 121 | mutedOverlay?: MutedOverlay; |
| 122 | ratio?: string; |
| 123 | } |
| 124 | export interface MutedOverlay extends Object { |
| 125 | enabled?: boolean; |
| 126 | width?: number; |
| 127 | src?: string; |
| 128 | focalPoint?: { |
| 129 | x: number; |
| 130 | y: number; |
| 131 | }; |
| 132 | } |
| 133 | export interface YoutubeConfig extends Object { |
| 134 | noCookie?: boolean; |
| 135 | channelId?: string; |
| 136 | } |
| 137 | export interface presetAttributes extends Object { |
| 138 | id?: number; |
| 139 | lazy_load_youtube?: boolean; |
| 140 | after_video_action?: string; |
| 141 | hide_youtube?: boolean; |
| 142 | sticky_scroll?: boolean; |
| 143 | sticky_scroll_position?: string; |
| 144 | on_video_end?: string; |
| 145 | play?: boolean; |
| 146 | play_video_viewport?: boolean; |
| 147 | invert_time?: boolean; |
| 148 | skin?: string; |
| 149 | save_player_position?: boolean; |
| 150 | captions?: boolean; |
| 151 | captions_enabled?: boolean; |
| 152 | hide_logo?: boolean; |
| 153 | reset_on_end?: boolean; |
| 154 | auto_hide?: boolean; |
| 155 | show_time_elapsed?: boolean; |
| 156 | speed?: boolean; |
| 157 | background_color?: string; |
| 158 | caption_style?: string; |
| 159 | email_collection?: EmailCollection; |
| 160 | cta?: CTA; |
| 161 | watermark?: Watermark; |
| 162 | search?: Search; |
| 163 | action_bar?: ActionBarConfig; |
| 164 | } |
| 165 | export interface Search extends Object { |
| 166 | enabled?: boolean; |
| 167 | minMatchCharLength?: number; |
| 168 | threshold?: number; |
| 169 | placeholder?: string; |
| 170 | } |
| 171 | export interface Watermark extends Object { |
| 172 | enabled?: boolean; |
| 173 | text?: string; |
| 174 | backgroundColor?: string; |
| 175 | color?: string; |
| 176 | opacity?: number; |
| 177 | position?: 'top-left' | 'top-right' | 'randomize'; |
| 178 | } |
| 179 | export interface SearchBarConfig extends Object { |
| 180 | showSearchResults?: boolean; |
| 181 | searchResults?: any; |
| 182 | } |
| 183 | export interface prestoBranding extends Object { |
| 184 | logo?: string; |
| 185 | logo_width?: number; |
| 186 | } |
| 187 | export interface CTA extends Object { |
| 188 | enabled?: boolean; |
| 189 | percentage?: number; |
| 190 | show_rewatch?: boolean; |
| 191 | show_skip?: boolean; |
| 192 | headline?: string; |
| 193 | show_button?: boolean; |
| 194 | bottom_text?: string; |
| 195 | button_color?: string; |
| 196 | background_opacity?: number; |
| 197 | button_text_color?: string; |
| 198 | button_text?: string; |
| 199 | button_link?: ButtonLinkObject; |
| 200 | button_radius?: number; |
| 201 | } |
| 202 | export interface EmailCollection extends Object { |
| 203 | enabled?: boolean; |
| 204 | percentage?: number; |
| 205 | allow_skip?: boolean; |
| 206 | headline?: string; |
| 207 | bottom_text?: string; |
| 208 | button_text?: string; |
| 209 | border_radius?: number; |
| 210 | button_text_color?: string; |
| 211 | button_color?: string; |
| 212 | } |
| 213 | interface OnVolumeChangeParam { |
| 214 | muted: boolean; |
| 215 | volume: number; |
| 216 | } |
| 217 | export interface PlyrProps { |
| 218 | id?: number; |
| 219 | type?: 'youtube' | 'vimeo' | 'video' | 'audio'; |
| 220 | className?: string; |
| 221 | videoId?: string; |
| 222 | url?: string; |
| 223 | config: PrestoConfig; |
| 224 | on?: (eventName: string, event?: any) => void; |
| 225 | onReady?: (player?: any) => void; |
| 226 | onPlay?: () => void; |
| 227 | onPause?: () => void; |
| 228 | onEnd?: () => void; |
| 229 | onLoadedData?: () => void; |
| 230 | onSeeked?: (time?: number) => void; |
| 231 | onTimeUpdate?: (time?: number) => void; |
| 232 | onEnterFullscreen?: () => void; |
| 233 | onExitFullscreen?: () => void; |
| 234 | onVolumeChange?: (params: OnVolumeChangeParam) => void; |
| 235 | onCaptionsEnabled?: () => void; |
| 236 | onCaptionsDisabled?: () => void; |
| 237 | enabled?: boolean; |
| 238 | title?: string; |
| 239 | debug?: boolean; |
| 240 | autoplay?: boolean; |
| 241 | autopause?: boolean; |
| 242 | seekTime?: number; |
| 243 | volume?: number; |
| 244 | muted?: boolean; |
| 245 | duration?: number; |
| 246 | displayDuration?: boolean; |
| 247 | invertTime?: boolean; |
| 248 | toggleInvert?: boolean; |
| 249 | ratio?: string; |
| 250 | clickToPlay?: boolean; |
| 251 | hideControls?: boolean; |
| 252 | resetOnEnd?: boolean; |
| 253 | disableContextMenu?: boolean; |
| 254 | loadSprite?: boolean; |
| 255 | iconPrefix?: string; |
| 256 | iconUrl?: string; |
| 257 | icon_url?: string; |
| 258 | blankVideo?: string; |
| 259 | quality?: { |
| 260 | default?: string | number; |
| 261 | option?: string[] | number[]; |
| 262 | }; |
| 263 | loop?: { |
| 264 | active?: boolean; |
| 265 | }; |
| 266 | speed?: { |
| 267 | selected?: number; |
| 268 | options?: number[]; |
| 269 | }; |
| 270 | keyboard?: { |
| 271 | focused?: boolean; |
| 272 | global?: boolean; |
| 273 | }; |
| 274 | tooltips?: { |
| 275 | controls?: boolean; |
| 276 | seek?: boolean; |
| 277 | }; |
| 278 | fullscreen?: { |
| 279 | enabled?: boolean; |
| 280 | fallback?: boolean; |
| 281 | iosNative?: boolean; |
| 282 | }; |
| 283 | storage?: { |
| 284 | enabled?: boolean; |
| 285 | key?: string; |
| 286 | }; |
| 287 | controls?: string[]; |
| 288 | settings?: string[]; |
| 289 | poster?: string; |
| 290 | sources?: Array<{ |
| 291 | src: string; |
| 292 | type: string; |
| 293 | size?: string; |
| 294 | }>; |
| 295 | captions?: Array<{ |
| 296 | kind?: string; |
| 297 | label?: string; |
| 298 | src: string; |
| 299 | srclang?: string; |
| 300 | default?: boolean; |
| 301 | key?: any; |
| 302 | }>; |
| 303 | } |
| 304 | export {}; |
| 305 |