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