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
components.d.ts
1389 lines
| 1 | /* eslint-disable */ |
| 2 | /* tslint:disable */ |
| 3 | /** |
| 4 | * This is an autogenerated file created by the Stencil compiler. |
| 5 | * It contains typing information for all components that exist in this project. |
| 6 | */ |
| 7 | import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; |
| 8 | import { ActionBarConfig, blockAttributes, BunnyConfig, ButtonLinkObject, CTA, DynamicOverlay, EmailCollection, i18nConfig, MutedOverlay, PlaylistItem, presetAttributes, prestoBranding, prestoChapters, PrestoConfig, SearchBarConfig, YoutubeConfig } from "./interfaces"; |
| 9 | export { ActionBarConfig, blockAttributes, BunnyConfig, ButtonLinkObject, CTA, DynamicOverlay, EmailCollection, i18nConfig, MutedOverlay, PlaylistItem, presetAttributes, prestoBranding, prestoChapters, PrestoConfig, SearchBarConfig, YoutubeConfig } from "./interfaces"; |
| 10 | export namespace Components { |
| 11 | interface PrestoActionBar { |
| 12 | "config": ActionBarConfig; |
| 13 | "direction"?: 'rtl'; |
| 14 | "player": any; |
| 15 | "youtube"?: YoutubeConfig; |
| 16 | } |
| 17 | interface PrestoActionBarController { |
| 18 | "config": ActionBarConfig; |
| 19 | "currentTime": number; |
| 20 | "direction"?: 'rtl'; |
| 21 | "duration": number; |
| 22 | "ended": boolean; |
| 23 | "youtube"?: YoutubeConfig; |
| 24 | } |
| 25 | interface PrestoActionBarUi { |
| 26 | "open"?: boolean; |
| 27 | } |
| 28 | interface PrestoAudio { |
| 29 | "audioAttributes": object; |
| 30 | "autoplay": boolean; |
| 31 | "getRef"?: (elm?: HTMLAudioElement) => void; |
| 32 | "mediaTitle": string; |
| 33 | "player": any; |
| 34 | "poster": string; |
| 35 | "preload": string; |
| 36 | "preset": presetAttributes; |
| 37 | "provider": string; |
| 38 | "src": string; |
| 39 | "tracks": { label: string; src: string; srcLang: string }[]; |
| 40 | } |
| 41 | interface PrestoBunny { |
| 42 | "autoplay": boolean; |
| 43 | "getRef"?: (elm?: HTMLVideoElement) => void; |
| 44 | "player": any; |
| 45 | "playsinline": boolean; |
| 46 | "poster": string; |
| 47 | "preload": string; |
| 48 | "previewUrl": string; |
| 49 | "provider": string; |
| 50 | "src": string; |
| 51 | "thumbnail": string; |
| 52 | "tracks": { label: string; src: string; srcLang: string }[]; |
| 53 | "videoAttributes": object; |
| 54 | } |
| 55 | interface PrestoBusinessSkin { |
| 56 | } |
| 57 | /** |
| 58 | * This component is needed to prevent re-rendering of |
| 59 | * main component with currentTime changes. |
| 60 | */ |
| 61 | interface PrestoCtaOverlay { |
| 62 | "direction"?: 'rtl'; |
| 63 | "i18n": i18nConfig; |
| 64 | "player": any; |
| 65 | "preset": presetAttributes; |
| 66 | "provider": string; |
| 67 | } |
| 68 | interface PrestoCtaOverlayController { |
| 69 | "cta"?: CTA; |
| 70 | "currentTime": number; |
| 71 | "direction"?: 'rtl'; |
| 72 | "duration": number; |
| 73 | "ended": boolean; |
| 74 | "i18n": i18nConfig; |
| 75 | "provider": string; |
| 76 | } |
| 77 | interface PrestoCtaOverlayUi { |
| 78 | "allowRewatch": boolean; |
| 79 | "allowSkip": boolean; |
| 80 | "bottomText": string; |
| 81 | "buttonLink": ButtonLinkObject; |
| 82 | "buttonText": string; |
| 83 | "buttonType": 'link' | 'time'; |
| 84 | "defaultHeadline": string; |
| 85 | "direction"?: 'rtl'; |
| 86 | /** |
| 87 | * Props |
| 88 | */ |
| 89 | "headline": string; |
| 90 | "i18n": i18nConfig; |
| 91 | "provider": string; |
| 92 | "showButton": boolean; |
| 93 | "type": string; |
| 94 | } |
| 95 | interface PrestoDynamicOverlayUi { |
| 96 | /** |
| 97 | * When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. |
| 98 | */ |
| 99 | "href": string; |
| 100 | "position": 'top-left' | 'top-right'; |
| 101 | /** |
| 102 | * Tells the browser where to open the link. Only used when `href` is set. |
| 103 | */ |
| 104 | "target": '_blank' | '_parent' | '_self' | '_top'; |
| 105 | } |
| 106 | interface PrestoDynamicOverlays { |
| 107 | "enabled": boolean; |
| 108 | "overlays": Array<DynamicOverlay>; |
| 109 | "player": any; |
| 110 | "preset": presetAttributes; |
| 111 | } |
| 112 | /** |
| 113 | * This component is needed to prevent re-rendering of |
| 114 | * main component with currentTime changes. |
| 115 | */ |
| 116 | interface PrestoEmailOverlay { |
| 117 | "direction"?: 'rtl'; |
| 118 | "i18n": i18nConfig; |
| 119 | "player": any; |
| 120 | "preset": presetAttributes; |
| 121 | "provider": string; |
| 122 | "videoId": number; |
| 123 | } |
| 124 | interface PrestoEmailOverlayController { |
| 125 | "currentTime": number; |
| 126 | "direction"?: 'rtl'; |
| 127 | "duration": number; |
| 128 | "emailCollection"?: EmailCollection; |
| 129 | "ended": boolean; |
| 130 | "i18n": i18nConfig; |
| 131 | "presetId": number; |
| 132 | "provider": string; |
| 133 | "videoId": number; |
| 134 | } |
| 135 | interface PrestoEmailOverlayUi { |
| 136 | "allowSkip": boolean; |
| 137 | "borderRadius": number; |
| 138 | "bottomText": string; |
| 139 | "buttonText": string; |
| 140 | "direction"?: 'rtl'; |
| 141 | "errorMessage": string; |
| 142 | /** |
| 143 | * Props |
| 144 | */ |
| 145 | "headline": string; |
| 146 | "i18n": i18nConfig; |
| 147 | "isLoading": boolean; |
| 148 | "provider": string; |
| 149 | "type": string; |
| 150 | } |
| 151 | interface PrestoModernSkin { |
| 152 | } |
| 153 | interface PrestoMutedOverlay { |
| 154 | "mutedOverlay": MutedOverlay; |
| 155 | "mutedPreview": boolean; |
| 156 | "preset": presetAttributes; |
| 157 | } |
| 158 | interface PrestoPlayer { |
| 159 | "actionBar": ActionBarConfig; |
| 160 | "analytics": boolean; |
| 161 | "audioAttributes": object; |
| 162 | "automations": boolean; |
| 163 | "autoplay": boolean; |
| 164 | "blockAttributes": blockAttributes; |
| 165 | "branding": prestoBranding; |
| 166 | "bunny": BunnyConfig; |
| 167 | "chapters": prestoChapters; |
| 168 | "classes": string; |
| 169 | "config": PrestoConfig; |
| 170 | "css"?: string; |
| 171 | "currentTime": number; |
| 172 | "direction"?: 'rtl'; |
| 173 | /** |
| 174 | * Toggle Fullscreen |
| 175 | * @returns Plyr |
| 176 | */ |
| 177 | "fullscreenToggle": (open: boolean) => Promise<any>; |
| 178 | /** |
| 179 | * Go to and play |
| 180 | * @param time number |
| 181 | */ |
| 182 | "goToAndPlay": (time: number) => Promise<void>; |
| 183 | "iconUrl": string; |
| 184 | "isAdmin": boolean; |
| 185 | "markers": any; |
| 186 | "mediaTitle": string; |
| 187 | /** |
| 188 | * Remove an event listener for the specified event. |
| 189 | * @param event String |
| 190 | * @param func Function |
| 191 | * @returns Plyr |
| 192 | */ |
| 193 | "off": (event: string, func: Function) => Promise<any>; |
| 194 | /** |
| 195 | * Add an event listener for the specified event. |
| 196 | * @param event String |
| 197 | * @param func Function |
| 198 | * @returns Plyr |
| 199 | */ |
| 200 | "on": (event: string, func: Function) => Promise<any>; |
| 201 | /** |
| 202 | * Add an event listener for the specified event. |
| 203 | * @param event String |
| 204 | * @param func Function |
| 205 | * @returns Plyr |
| 206 | */ |
| 207 | "once": (event: string, func: Function) => Promise<any>; |
| 208 | "overlays": Array<DynamicOverlay>; |
| 209 | /** |
| 210 | * Pause video |
| 211 | * @returns Plyr |
| 212 | */ |
| 213 | "pause": () => Promise<any>; |
| 214 | /** |
| 215 | * Play video |
| 216 | * @returns Plyr |
| 217 | */ |
| 218 | "play": (unmute?: boolean) => Promise<void>; |
| 219 | "playsinline": boolean; |
| 220 | "poster": string; |
| 221 | "preload": 'metadata' | 'none' | 'auto'; |
| 222 | "preset": presetAttributes; |
| 223 | "provider": string; |
| 224 | "provider_video_id": string; |
| 225 | /** |
| 226 | * Play video |
| 227 | * @returns Plyr |
| 228 | */ |
| 229 | "restart": () => Promise<any>; |
| 230 | "search": SearchBarConfig; |
| 231 | "src": string; |
| 232 | /** |
| 233 | * Pause video |
| 234 | * @returns Plyr |
| 235 | */ |
| 236 | "stop": () => Promise<any>; |
| 237 | "tracks": { label: string; src: string; srcLang: string }[]; |
| 238 | "type": string; |
| 239 | "videoAttributes": object; |
| 240 | "video_id": number; |
| 241 | "youtube": YoutubeConfig; |
| 242 | } |
| 243 | interface PrestoPlayerButton { |
| 244 | /** |
| 245 | * Disables the button. |
| 246 | */ |
| 247 | "disabled"?: boolean; |
| 248 | /** |
| 249 | * Tells the browser to download the linked file as this filename. Only used when `href` is set. |
| 250 | */ |
| 251 | "download": string; |
| 252 | /** |
| 253 | * Draws the button with a caret for use with dropdowns, popovers, etc. |
| 254 | */ |
| 255 | "full"?: boolean; |
| 256 | /** |
| 257 | * When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. |
| 258 | */ |
| 259 | "href": string; |
| 260 | /** |
| 261 | * An optional name for the button. Ignored when `href` is set. |
| 262 | */ |
| 263 | "name": string; |
| 264 | /** |
| 265 | * The button's size. |
| 266 | */ |
| 267 | "size": 'small' | 'medium' | 'large'; |
| 268 | /** |
| 269 | * Indicates if activating the button should submit the form. Ignored when `href` is set. |
| 270 | */ |
| 271 | "submit"?: boolean; |
| 272 | /** |
| 273 | * Tells the browser where to open the link. Only used when `href` is set. |
| 274 | */ |
| 275 | "target": '_blank' | '_parent' | '_self' | '_top'; |
| 276 | /** |
| 277 | * The button's type. |
| 278 | */ |
| 279 | "type": 'default' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'text'; |
| 280 | /** |
| 281 | * An optional value for the button. Ignored when `href` is set. |
| 282 | */ |
| 283 | "value": string; |
| 284 | } |
| 285 | interface PrestoPlayerSkeleton { |
| 286 | "effect": 'pulse' | 'sheen' | 'none'; |
| 287 | } |
| 288 | interface PrestoPlayerSpinner { |
| 289 | } |
| 290 | interface PrestoPlaylist { |
| 291 | /** |
| 292 | * Title for the Playlist |
| 293 | */ |
| 294 | "heading": string; |
| 295 | /** |
| 296 | * Array of videos from the Playlist |
| 297 | */ |
| 298 | "items": Array<PlaylistItem>; |
| 299 | /** |
| 300 | * Count prefix string for the Playlist - Plural |
| 301 | */ |
| 302 | "listTextPlural": string; |
| 303 | /** |
| 304 | * Count prefix string for the Playlist - Singular |
| 305 | */ |
| 306 | "listTextSingular": string; |
| 307 | /** |
| 308 | * Transition duration for next video. |
| 309 | */ |
| 310 | "transitionDuration": number; |
| 311 | } |
| 312 | interface PrestoPlaylistItem { |
| 313 | /** |
| 314 | * Active status |
| 315 | */ |
| 316 | "active": boolean; |
| 317 | /** |
| 318 | * Playing status |
| 319 | */ |
| 320 | "playing": boolean; |
| 321 | } |
| 322 | interface PrestoPlaylistOverlay { |
| 323 | /** |
| 324 | * Flag to handle if this item is the last item in the list. |
| 325 | */ |
| 326 | "isLastItem": boolean; |
| 327 | /** |
| 328 | * String for the Button that says `Next Video` |
| 329 | */ |
| 330 | "nextItemString": string; |
| 331 | /** |
| 332 | * Title of the upcoming next playlist item |
| 333 | */ |
| 334 | "nextItemTitle": string; |
| 335 | /** |
| 336 | * Visibility flag for the Overlay |
| 337 | */ |
| 338 | "show": boolean; |
| 339 | /** |
| 340 | * Transition duration for next video. |
| 341 | */ |
| 342 | "transitionDuration": number; |
| 343 | } |
| 344 | interface PrestoPlaylistUi { |
| 345 | } |
| 346 | interface PrestoSearchBar { |
| 347 | "player": any; |
| 348 | /** |
| 349 | * Props |
| 350 | */ |
| 351 | "value": string; |
| 352 | } |
| 353 | interface PrestoSearchBarUi { |
| 354 | /** |
| 355 | * Has results |
| 356 | */ |
| 357 | "hasNavigation": boolean; |
| 358 | /** |
| 359 | * The placeholder. |
| 360 | */ |
| 361 | "placeholder": string; |
| 362 | /** |
| 363 | * The value for the search. |
| 364 | */ |
| 365 | "value": string; |
| 366 | } |
| 367 | interface PrestoStackedSkin { |
| 368 | } |
| 369 | interface PrestoTimestamp { |
| 370 | "time": string; |
| 371 | } |
| 372 | interface PrestoVideo { |
| 373 | "autoplay": boolean; |
| 374 | "getRef"?: (elm?: HTMLVideoElement) => void; |
| 375 | "player": any; |
| 376 | "playsinline": boolean; |
| 377 | "poster": string; |
| 378 | "preload": string; |
| 379 | "provider": string; |
| 380 | "src": string; |
| 381 | "tracks": { label: string; src: string; srcLang: string }[]; |
| 382 | "videoAttributes": object; |
| 383 | } |
| 384 | interface PrestoVideoCurtainUi { |
| 385 | /** |
| 386 | * Props |
| 387 | */ |
| 388 | "actionUrl": string; |
| 389 | } |
| 390 | interface PrestoVimeo { |
| 391 | "getRef"?: (elm?: HTMLIFrameElement) => void; |
| 392 | "player": any; |
| 393 | "poster": string; |
| 394 | "src": string; |
| 395 | } |
| 396 | interface PrestoYoutube { |
| 397 | "getRef"?: (elm?: HTMLIFrameElement | HTMLVideoElement | HTMLDivElement) => void; |
| 398 | "lazyLoad": boolean; |
| 399 | "player": any; |
| 400 | "poster": string; |
| 401 | "src": string; |
| 402 | } |
| 403 | interface PrestoYoutubeSubscribeButton { |
| 404 | "channel": string; |
| 405 | "layout": string; |
| 406 | "showCount": boolean; |
| 407 | } |
| 408 | } |
| 409 | export interface PrestoActionBarControllerCustomEvent<T> extends CustomEvent<T> { |
| 410 | detail: T; |
| 411 | target: HTMLPrestoActionBarControllerElement; |
| 412 | } |
| 413 | export interface PrestoAudioCustomEvent<T> extends CustomEvent<T> { |
| 414 | detail: T; |
| 415 | target: HTMLPrestoAudioElement; |
| 416 | } |
| 417 | export interface PrestoCtaOverlayControllerCustomEvent<T> extends CustomEvent<T> { |
| 418 | detail: T; |
| 419 | target: HTMLPrestoCtaOverlayControllerElement; |
| 420 | } |
| 421 | export interface PrestoCtaOverlayUiCustomEvent<T> extends CustomEvent<T> { |
| 422 | detail: T; |
| 423 | target: HTMLPrestoCtaOverlayUiElement; |
| 424 | } |
| 425 | export interface PrestoDynamicOverlaysCustomEvent<T> extends CustomEvent<T> { |
| 426 | detail: T; |
| 427 | target: HTMLPrestoDynamicOverlaysElement; |
| 428 | } |
| 429 | export interface PrestoEmailOverlayControllerCustomEvent<T> extends CustomEvent<T> { |
| 430 | detail: T; |
| 431 | target: HTMLPrestoEmailOverlayControllerElement; |
| 432 | } |
| 433 | export interface PrestoEmailOverlayUiCustomEvent<T> extends CustomEvent<T> { |
| 434 | detail: T; |
| 435 | target: HTMLPrestoEmailOverlayUiElement; |
| 436 | } |
| 437 | export interface PrestoMutedOverlayCustomEvent<T> extends CustomEvent<T> { |
| 438 | detail: T; |
| 439 | target: HTMLPrestoMutedOverlayElement; |
| 440 | } |
| 441 | export interface PrestoPlayerCustomEvent<T> extends CustomEvent<T> { |
| 442 | detail: T; |
| 443 | target: HTMLPrestoPlayerElement; |
| 444 | } |
| 445 | export interface PrestoPlayerButtonCustomEvent<T> extends CustomEvent<T> { |
| 446 | detail: T; |
| 447 | target: HTMLPrestoPlayerButtonElement; |
| 448 | } |
| 449 | export interface PrestoPlaylistItemCustomEvent<T> extends CustomEvent<T> { |
| 450 | detail: T; |
| 451 | target: HTMLPrestoPlaylistItemElement; |
| 452 | } |
| 453 | export interface PrestoPlaylistOverlayCustomEvent<T> extends CustomEvent<T> { |
| 454 | detail: T; |
| 455 | target: HTMLPrestoPlaylistOverlayElement; |
| 456 | } |
| 457 | export interface PrestoSearchBarUiCustomEvent<T> extends CustomEvent<T> { |
| 458 | detail: T; |
| 459 | target: HTMLPrestoSearchBarUiElement; |
| 460 | } |
| 461 | export interface PrestoYoutubeCustomEvent<T> extends CustomEvent<T> { |
| 462 | detail: T; |
| 463 | target: HTMLPrestoYoutubeElement; |
| 464 | } |
| 465 | declare global { |
| 466 | interface HTMLPrestoActionBarElement extends Components.PrestoActionBar, HTMLStencilElement { |
| 467 | } |
| 468 | var HTMLPrestoActionBarElement: { |
| 469 | prototype: HTMLPrestoActionBarElement; |
| 470 | new (): HTMLPrestoActionBarElement; |
| 471 | }; |
| 472 | interface HTMLPrestoActionBarControllerElementEventMap { |
| 473 | "actionBarStateChange": boolean; |
| 474 | } |
| 475 | interface HTMLPrestoActionBarControllerElement extends Components.PrestoActionBarController, HTMLStencilElement { |
| 476 | addEventListener<K extends keyof HTMLPrestoActionBarControllerElementEventMap>(type: K, listener: (this: HTMLPrestoActionBarControllerElement, ev: PrestoActionBarControllerCustomEvent<HTMLPrestoActionBarControllerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 477 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 478 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 479 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 480 | removeEventListener<K extends keyof HTMLPrestoActionBarControllerElementEventMap>(type: K, listener: (this: HTMLPrestoActionBarControllerElement, ev: PrestoActionBarControllerCustomEvent<HTMLPrestoActionBarControllerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 481 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 482 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 483 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 484 | } |
| 485 | var HTMLPrestoActionBarControllerElement: { |
| 486 | prototype: HTMLPrestoActionBarControllerElement; |
| 487 | new (): HTMLPrestoActionBarControllerElement; |
| 488 | }; |
| 489 | interface HTMLPrestoActionBarUiElement extends Components.PrestoActionBarUi, HTMLStencilElement { |
| 490 | } |
| 491 | var HTMLPrestoActionBarUiElement: { |
| 492 | prototype: HTMLPrestoActionBarUiElement; |
| 493 | new (): HTMLPrestoActionBarUiElement; |
| 494 | }; |
| 495 | interface HTMLPrestoAudioElementEventMap { |
| 496 | "playVideo": void; |
| 497 | "pauseVideo": true; |
| 498 | } |
| 499 | interface HTMLPrestoAudioElement extends Components.PrestoAudio, HTMLStencilElement { |
| 500 | addEventListener<K extends keyof HTMLPrestoAudioElementEventMap>(type: K, listener: (this: HTMLPrestoAudioElement, ev: PrestoAudioCustomEvent<HTMLPrestoAudioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 501 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 502 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 503 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 504 | removeEventListener<K extends keyof HTMLPrestoAudioElementEventMap>(type: K, listener: (this: HTMLPrestoAudioElement, ev: PrestoAudioCustomEvent<HTMLPrestoAudioElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 505 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 506 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 507 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 508 | } |
| 509 | var HTMLPrestoAudioElement: { |
| 510 | prototype: HTMLPrestoAudioElement; |
| 511 | new (): HTMLPrestoAudioElement; |
| 512 | }; |
| 513 | interface HTMLPrestoBunnyElement extends Components.PrestoBunny, HTMLStencilElement { |
| 514 | } |
| 515 | var HTMLPrestoBunnyElement: { |
| 516 | prototype: HTMLPrestoBunnyElement; |
| 517 | new (): HTMLPrestoBunnyElement; |
| 518 | }; |
| 519 | interface HTMLPrestoBusinessSkinElement extends Components.PrestoBusinessSkin, HTMLStencilElement { |
| 520 | } |
| 521 | var HTMLPrestoBusinessSkinElement: { |
| 522 | prototype: HTMLPrestoBusinessSkinElement; |
| 523 | new (): HTMLPrestoBusinessSkinElement; |
| 524 | }; |
| 525 | /** |
| 526 | * This component is needed to prevent re-rendering of |
| 527 | * main component with currentTime changes. |
| 528 | */ |
| 529 | interface HTMLPrestoCtaOverlayElement extends Components.PrestoCtaOverlay, HTMLStencilElement { |
| 530 | } |
| 531 | var HTMLPrestoCtaOverlayElement: { |
| 532 | prototype: HTMLPrestoCtaOverlayElement; |
| 533 | new (): HTMLPrestoCtaOverlayElement; |
| 534 | }; |
| 535 | interface HTMLPrestoCtaOverlayControllerElementEventMap { |
| 536 | "playVideo": void; |
| 537 | "pauseVideo": boolean; |
| 538 | "restartVideo": void; |
| 539 | "ctaStateChange": boolean; |
| 540 | } |
| 541 | interface HTMLPrestoCtaOverlayControllerElement extends Components.PrestoCtaOverlayController, HTMLStencilElement { |
| 542 | addEventListener<K extends keyof HTMLPrestoCtaOverlayControllerElementEventMap>(type: K, listener: (this: HTMLPrestoCtaOverlayControllerElement, ev: PrestoCtaOverlayControllerCustomEvent<HTMLPrestoCtaOverlayControllerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 543 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 544 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 545 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 546 | removeEventListener<K extends keyof HTMLPrestoCtaOverlayControllerElementEventMap>(type: K, listener: (this: HTMLPrestoCtaOverlayControllerElement, ev: PrestoCtaOverlayControllerCustomEvent<HTMLPrestoCtaOverlayControllerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 547 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 548 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 549 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 550 | } |
| 551 | var HTMLPrestoCtaOverlayControllerElement: { |
| 552 | prototype: HTMLPrestoCtaOverlayControllerElement; |
| 553 | new (): HTMLPrestoCtaOverlayControllerElement; |
| 554 | }; |
| 555 | interface HTMLPrestoCtaOverlayUiElementEventMap { |
| 556 | "skip": void; |
| 557 | "rewatch": void; |
| 558 | } |
| 559 | interface HTMLPrestoCtaOverlayUiElement extends Components.PrestoCtaOverlayUi, HTMLStencilElement { |
| 560 | addEventListener<K extends keyof HTMLPrestoCtaOverlayUiElementEventMap>(type: K, listener: (this: HTMLPrestoCtaOverlayUiElement, ev: PrestoCtaOverlayUiCustomEvent<HTMLPrestoCtaOverlayUiElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 561 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 562 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 563 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 564 | removeEventListener<K extends keyof HTMLPrestoCtaOverlayUiElementEventMap>(type: K, listener: (this: HTMLPrestoCtaOverlayUiElement, ev: PrestoCtaOverlayUiCustomEvent<HTMLPrestoCtaOverlayUiElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 565 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 566 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 567 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 568 | } |
| 569 | var HTMLPrestoCtaOverlayUiElement: { |
| 570 | prototype: HTMLPrestoCtaOverlayUiElement; |
| 571 | new (): HTMLPrestoCtaOverlayUiElement; |
| 572 | }; |
| 573 | interface HTMLPrestoDynamicOverlayUiElement extends Components.PrestoDynamicOverlayUi, HTMLStencilElement { |
| 574 | } |
| 575 | var HTMLPrestoDynamicOverlayUiElement: { |
| 576 | prototype: HTMLPrestoDynamicOverlayUiElement; |
| 577 | new (): HTMLPrestoDynamicOverlayUiElement; |
| 578 | }; |
| 579 | interface HTMLPrestoDynamicOverlaysElementEventMap { |
| 580 | "reloadComponent": void; |
| 581 | } |
| 582 | interface HTMLPrestoDynamicOverlaysElement extends Components.PrestoDynamicOverlays, HTMLStencilElement { |
| 583 | addEventListener<K extends keyof HTMLPrestoDynamicOverlaysElementEventMap>(type: K, listener: (this: HTMLPrestoDynamicOverlaysElement, ev: PrestoDynamicOverlaysCustomEvent<HTMLPrestoDynamicOverlaysElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 584 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 585 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 586 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 587 | removeEventListener<K extends keyof HTMLPrestoDynamicOverlaysElementEventMap>(type: K, listener: (this: HTMLPrestoDynamicOverlaysElement, ev: PrestoDynamicOverlaysCustomEvent<HTMLPrestoDynamicOverlaysElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 588 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 589 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 590 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 591 | } |
| 592 | var HTMLPrestoDynamicOverlaysElement: { |
| 593 | prototype: HTMLPrestoDynamicOverlaysElement; |
| 594 | new (): HTMLPrestoDynamicOverlaysElement; |
| 595 | }; |
| 596 | /** |
| 597 | * This component is needed to prevent re-rendering of |
| 598 | * main component with currentTime changes. |
| 599 | */ |
| 600 | interface HTMLPrestoEmailOverlayElement extends Components.PrestoEmailOverlay, HTMLStencilElement { |
| 601 | } |
| 602 | var HTMLPrestoEmailOverlayElement: { |
| 603 | prototype: HTMLPrestoEmailOverlayElement; |
| 604 | new (): HTMLPrestoEmailOverlayElement; |
| 605 | }; |
| 606 | interface HTMLPrestoEmailOverlayControllerElementEventMap { |
| 607 | "playVideo": void; |
| 608 | "pauseVideo": true; |
| 609 | "restartVideo": void; |
| 610 | "emailStateChange": boolean; |
| 611 | } |
| 612 | interface HTMLPrestoEmailOverlayControllerElement extends Components.PrestoEmailOverlayController, HTMLStencilElement { |
| 613 | addEventListener<K extends keyof HTMLPrestoEmailOverlayControllerElementEventMap>(type: K, listener: (this: HTMLPrestoEmailOverlayControllerElement, ev: PrestoEmailOverlayControllerCustomEvent<HTMLPrestoEmailOverlayControllerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 614 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 615 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 616 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 617 | removeEventListener<K extends keyof HTMLPrestoEmailOverlayControllerElementEventMap>(type: K, listener: (this: HTMLPrestoEmailOverlayControllerElement, ev: PrestoEmailOverlayControllerCustomEvent<HTMLPrestoEmailOverlayControllerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 618 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 619 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 620 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 621 | } |
| 622 | var HTMLPrestoEmailOverlayControllerElement: { |
| 623 | prototype: HTMLPrestoEmailOverlayControllerElement; |
| 624 | new (): HTMLPrestoEmailOverlayControllerElement; |
| 625 | }; |
| 626 | interface HTMLPrestoEmailOverlayUiElementEventMap { |
| 627 | "submitForm": object; |
| 628 | "skip": object; |
| 629 | } |
| 630 | interface HTMLPrestoEmailOverlayUiElement extends Components.PrestoEmailOverlayUi, HTMLStencilElement { |
| 631 | addEventListener<K extends keyof HTMLPrestoEmailOverlayUiElementEventMap>(type: K, listener: (this: HTMLPrestoEmailOverlayUiElement, ev: PrestoEmailOverlayUiCustomEvent<HTMLPrestoEmailOverlayUiElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 632 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 633 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 634 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 635 | removeEventListener<K extends keyof HTMLPrestoEmailOverlayUiElementEventMap>(type: K, listener: (this: HTMLPrestoEmailOverlayUiElement, ev: PrestoEmailOverlayUiCustomEvent<HTMLPrestoEmailOverlayUiElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 636 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 637 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 638 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 639 | } |
| 640 | var HTMLPrestoEmailOverlayUiElement: { |
| 641 | prototype: HTMLPrestoEmailOverlayUiElement; |
| 642 | new (): HTMLPrestoEmailOverlayUiElement; |
| 643 | }; |
| 644 | interface HTMLPrestoModernSkinElement extends Components.PrestoModernSkin, HTMLStencilElement { |
| 645 | } |
| 646 | var HTMLPrestoModernSkinElement: { |
| 647 | prototype: HTMLPrestoModernSkinElement; |
| 648 | new (): HTMLPrestoModernSkinElement; |
| 649 | }; |
| 650 | interface HTMLPrestoMutedOverlayElementEventMap { |
| 651 | "playVideo": void; |
| 652 | } |
| 653 | interface HTMLPrestoMutedOverlayElement extends Components.PrestoMutedOverlay, HTMLStencilElement { |
| 654 | addEventListener<K extends keyof HTMLPrestoMutedOverlayElementEventMap>(type: K, listener: (this: HTMLPrestoMutedOverlayElement, ev: PrestoMutedOverlayCustomEvent<HTMLPrestoMutedOverlayElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 655 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 656 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 657 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 658 | removeEventListener<K extends keyof HTMLPrestoMutedOverlayElementEventMap>(type: K, listener: (this: HTMLPrestoMutedOverlayElement, ev: PrestoMutedOverlayCustomEvent<HTMLPrestoMutedOverlayElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 659 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 660 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 661 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 662 | } |
| 663 | var HTMLPrestoMutedOverlayElement: { |
| 664 | prototype: HTMLPrestoMutedOverlayElement; |
| 665 | new (): HTMLPrestoMutedOverlayElement; |
| 666 | }; |
| 667 | interface HTMLPrestoPlayerElementEventMap { |
| 668 | "loaded": boolean; |
| 669 | "currentMediaPlayer": object; |
| 670 | "playerReady": object; |
| 671 | "playedMedia": object; |
| 672 | "pausedMedia": object; |
| 673 | "endedMedia": object; |
| 674 | } |
| 675 | interface HTMLPrestoPlayerElement extends Components.PrestoPlayer, HTMLStencilElement { |
| 676 | addEventListener<K extends keyof HTMLPrestoPlayerElementEventMap>(type: K, listener: (this: HTMLPrestoPlayerElement, ev: PrestoPlayerCustomEvent<HTMLPrestoPlayerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 677 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 678 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 679 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 680 | removeEventListener<K extends keyof HTMLPrestoPlayerElementEventMap>(type: K, listener: (this: HTMLPrestoPlayerElement, ev: PrestoPlayerCustomEvent<HTMLPrestoPlayerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 681 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 682 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 683 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 684 | } |
| 685 | var HTMLPrestoPlayerElement: { |
| 686 | prototype: HTMLPrestoPlayerElement; |
| 687 | new (): HTMLPrestoPlayerElement; |
| 688 | }; |
| 689 | interface HTMLPrestoPlayerButtonElementEventMap { |
| 690 | "prestoBlur": void; |
| 691 | "prestoFocus": void; |
| 692 | } |
| 693 | interface HTMLPrestoPlayerButtonElement extends Components.PrestoPlayerButton, HTMLStencilElement { |
| 694 | addEventListener<K extends keyof HTMLPrestoPlayerButtonElementEventMap>(type: K, listener: (this: HTMLPrestoPlayerButtonElement, ev: PrestoPlayerButtonCustomEvent<HTMLPrestoPlayerButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 695 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 696 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 697 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 698 | removeEventListener<K extends keyof HTMLPrestoPlayerButtonElementEventMap>(type: K, listener: (this: HTMLPrestoPlayerButtonElement, ev: PrestoPlayerButtonCustomEvent<HTMLPrestoPlayerButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 699 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 700 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 701 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 702 | } |
| 703 | var HTMLPrestoPlayerButtonElement: { |
| 704 | prototype: HTMLPrestoPlayerButtonElement; |
| 705 | new (): HTMLPrestoPlayerButtonElement; |
| 706 | }; |
| 707 | interface HTMLPrestoPlayerSkeletonElement extends Components.PrestoPlayerSkeleton, HTMLStencilElement { |
| 708 | } |
| 709 | var HTMLPrestoPlayerSkeletonElement: { |
| 710 | prototype: HTMLPrestoPlayerSkeletonElement; |
| 711 | new (): HTMLPrestoPlayerSkeletonElement; |
| 712 | }; |
| 713 | interface HTMLPrestoPlayerSpinnerElement extends Components.PrestoPlayerSpinner, HTMLStencilElement { |
| 714 | } |
| 715 | var HTMLPrestoPlayerSpinnerElement: { |
| 716 | prototype: HTMLPrestoPlayerSpinnerElement; |
| 717 | new (): HTMLPrestoPlayerSpinnerElement; |
| 718 | }; |
| 719 | interface HTMLPrestoPlaylistElement extends Components.PrestoPlaylist, HTMLStencilElement { |
| 720 | } |
| 721 | var HTMLPrestoPlaylistElement: { |
| 722 | prototype: HTMLPrestoPlaylistElement; |
| 723 | new (): HTMLPrestoPlaylistElement; |
| 724 | }; |
| 725 | interface HTMLPrestoPlaylistItemElementEventMap { |
| 726 | "triggerPlay": void; |
| 727 | "triggerPause": void; |
| 728 | } |
| 729 | interface HTMLPrestoPlaylistItemElement extends Components.PrestoPlaylistItem, HTMLStencilElement { |
| 730 | addEventListener<K extends keyof HTMLPrestoPlaylistItemElementEventMap>(type: K, listener: (this: HTMLPrestoPlaylistItemElement, ev: PrestoPlaylistItemCustomEvent<HTMLPrestoPlaylistItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 731 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 732 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 733 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 734 | removeEventListener<K extends keyof HTMLPrestoPlaylistItemElementEventMap>(type: K, listener: (this: HTMLPrestoPlaylistItemElement, ev: PrestoPlaylistItemCustomEvent<HTMLPrestoPlaylistItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 735 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 736 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 737 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 738 | } |
| 739 | var HTMLPrestoPlaylistItemElement: { |
| 740 | prototype: HTMLPrestoPlaylistItemElement; |
| 741 | new (): HTMLPrestoPlaylistItemElement; |
| 742 | }; |
| 743 | interface HTMLPrestoPlaylistOverlayElementEventMap { |
| 744 | "rewatch": void; |
| 745 | "next": void; |
| 746 | } |
| 747 | interface HTMLPrestoPlaylistOverlayElement extends Components.PrestoPlaylistOverlay, HTMLStencilElement { |
| 748 | addEventListener<K extends keyof HTMLPrestoPlaylistOverlayElementEventMap>(type: K, listener: (this: HTMLPrestoPlaylistOverlayElement, ev: PrestoPlaylistOverlayCustomEvent<HTMLPrestoPlaylistOverlayElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 749 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 750 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 751 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 752 | removeEventListener<K extends keyof HTMLPrestoPlaylistOverlayElementEventMap>(type: K, listener: (this: HTMLPrestoPlaylistOverlayElement, ev: PrestoPlaylistOverlayCustomEvent<HTMLPrestoPlaylistOverlayElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 753 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 754 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 755 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 756 | } |
| 757 | var HTMLPrestoPlaylistOverlayElement: { |
| 758 | prototype: HTMLPrestoPlaylistOverlayElement; |
| 759 | new (): HTMLPrestoPlaylistOverlayElement; |
| 760 | }; |
| 761 | interface HTMLPrestoPlaylistUiElement extends Components.PrestoPlaylistUi, HTMLStencilElement { |
| 762 | } |
| 763 | var HTMLPrestoPlaylistUiElement: { |
| 764 | prototype: HTMLPrestoPlaylistUiElement; |
| 765 | new (): HTMLPrestoPlaylistUiElement; |
| 766 | }; |
| 767 | interface HTMLPrestoSearchBarElement extends Components.PrestoSearchBar, HTMLStencilElement { |
| 768 | } |
| 769 | var HTMLPrestoSearchBarElement: { |
| 770 | prototype: HTMLPrestoSearchBarElement; |
| 771 | new (): HTMLPrestoSearchBarElement; |
| 772 | }; |
| 773 | interface HTMLPrestoSearchBarUiElementEventMap { |
| 774 | "previousNav": void; |
| 775 | "nextNav": void; |
| 776 | "search": string; |
| 777 | "focusChange": boolean; |
| 778 | } |
| 779 | interface HTMLPrestoSearchBarUiElement extends Components.PrestoSearchBarUi, HTMLStencilElement { |
| 780 | addEventListener<K extends keyof HTMLPrestoSearchBarUiElementEventMap>(type: K, listener: (this: HTMLPrestoSearchBarUiElement, ev: PrestoSearchBarUiCustomEvent<HTMLPrestoSearchBarUiElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 781 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 782 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 783 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 784 | removeEventListener<K extends keyof HTMLPrestoSearchBarUiElementEventMap>(type: K, listener: (this: HTMLPrestoSearchBarUiElement, ev: PrestoSearchBarUiCustomEvent<HTMLPrestoSearchBarUiElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 785 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 786 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 787 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 788 | } |
| 789 | var HTMLPrestoSearchBarUiElement: { |
| 790 | prototype: HTMLPrestoSearchBarUiElement; |
| 791 | new (): HTMLPrestoSearchBarUiElement; |
| 792 | }; |
| 793 | interface HTMLPrestoStackedSkinElement extends Components.PrestoStackedSkin, HTMLStencilElement { |
| 794 | } |
| 795 | var HTMLPrestoStackedSkinElement: { |
| 796 | prototype: HTMLPrestoStackedSkinElement; |
| 797 | new (): HTMLPrestoStackedSkinElement; |
| 798 | }; |
| 799 | interface HTMLPrestoTimestampElement extends Components.PrestoTimestamp, HTMLStencilElement { |
| 800 | } |
| 801 | var HTMLPrestoTimestampElement: { |
| 802 | prototype: HTMLPrestoTimestampElement; |
| 803 | new (): HTMLPrestoTimestampElement; |
| 804 | }; |
| 805 | interface HTMLPrestoVideoElement extends Components.PrestoVideo, HTMLStencilElement { |
| 806 | } |
| 807 | var HTMLPrestoVideoElement: { |
| 808 | prototype: HTMLPrestoVideoElement; |
| 809 | new (): HTMLPrestoVideoElement; |
| 810 | }; |
| 811 | interface HTMLPrestoVideoCurtainUiElement extends Components.PrestoVideoCurtainUi, HTMLStencilElement { |
| 812 | } |
| 813 | var HTMLPrestoVideoCurtainUiElement: { |
| 814 | prototype: HTMLPrestoVideoCurtainUiElement; |
| 815 | new (): HTMLPrestoVideoCurtainUiElement; |
| 816 | }; |
| 817 | interface HTMLPrestoVimeoElement extends Components.PrestoVimeo, HTMLStencilElement { |
| 818 | } |
| 819 | var HTMLPrestoVimeoElement: { |
| 820 | prototype: HTMLPrestoVimeoElement; |
| 821 | new (): HTMLPrestoVimeoElement; |
| 822 | }; |
| 823 | interface HTMLPrestoYoutubeElementEventMap { |
| 824 | "reload": string; |
| 825 | } |
| 826 | interface HTMLPrestoYoutubeElement extends Components.PrestoYoutube, HTMLStencilElement { |
| 827 | addEventListener<K extends keyof HTMLPrestoYoutubeElementEventMap>(type: K, listener: (this: HTMLPrestoYoutubeElement, ev: PrestoYoutubeCustomEvent<HTMLPrestoYoutubeElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; |
| 828 | addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 829 | addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; |
| 830 | addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; |
| 831 | removeEventListener<K extends keyof HTMLPrestoYoutubeElementEventMap>(type: K, listener: (this: HTMLPrestoYoutubeElement, ev: PrestoYoutubeCustomEvent<HTMLPrestoYoutubeElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; |
| 832 | removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 833 | removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; |
| 834 | removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; |
| 835 | } |
| 836 | var HTMLPrestoYoutubeElement: { |
| 837 | prototype: HTMLPrestoYoutubeElement; |
| 838 | new (): HTMLPrestoYoutubeElement; |
| 839 | }; |
| 840 | interface HTMLPrestoYoutubeSubscribeButtonElement extends Components.PrestoYoutubeSubscribeButton, HTMLStencilElement { |
| 841 | } |
| 842 | var HTMLPrestoYoutubeSubscribeButtonElement: { |
| 843 | prototype: HTMLPrestoYoutubeSubscribeButtonElement; |
| 844 | new (): HTMLPrestoYoutubeSubscribeButtonElement; |
| 845 | }; |
| 846 | interface HTMLElementTagNameMap { |
| 847 | "presto-action-bar": HTMLPrestoActionBarElement; |
| 848 | "presto-action-bar-controller": HTMLPrestoActionBarControllerElement; |
| 849 | "presto-action-bar-ui": HTMLPrestoActionBarUiElement; |
| 850 | "presto-audio": HTMLPrestoAudioElement; |
| 851 | "presto-bunny": HTMLPrestoBunnyElement; |
| 852 | "presto-business-skin": HTMLPrestoBusinessSkinElement; |
| 853 | "presto-cta-overlay": HTMLPrestoCtaOverlayElement; |
| 854 | "presto-cta-overlay-controller": HTMLPrestoCtaOverlayControllerElement; |
| 855 | "presto-cta-overlay-ui": HTMLPrestoCtaOverlayUiElement; |
| 856 | "presto-dynamic-overlay-ui": HTMLPrestoDynamicOverlayUiElement; |
| 857 | "presto-dynamic-overlays": HTMLPrestoDynamicOverlaysElement; |
| 858 | "presto-email-overlay": HTMLPrestoEmailOverlayElement; |
| 859 | "presto-email-overlay-controller": HTMLPrestoEmailOverlayControllerElement; |
| 860 | "presto-email-overlay-ui": HTMLPrestoEmailOverlayUiElement; |
| 861 | "presto-modern-skin": HTMLPrestoModernSkinElement; |
| 862 | "presto-muted-overlay": HTMLPrestoMutedOverlayElement; |
| 863 | "presto-player": HTMLPrestoPlayerElement; |
| 864 | "presto-player-button": HTMLPrestoPlayerButtonElement; |
| 865 | "presto-player-skeleton": HTMLPrestoPlayerSkeletonElement; |
| 866 | "presto-player-spinner": HTMLPrestoPlayerSpinnerElement; |
| 867 | "presto-playlist": HTMLPrestoPlaylistElement; |
| 868 | "presto-playlist-item": HTMLPrestoPlaylistItemElement; |
| 869 | "presto-playlist-overlay": HTMLPrestoPlaylistOverlayElement; |
| 870 | "presto-playlist-ui": HTMLPrestoPlaylistUiElement; |
| 871 | "presto-search-bar": HTMLPrestoSearchBarElement; |
| 872 | "presto-search-bar-ui": HTMLPrestoSearchBarUiElement; |
| 873 | "presto-stacked-skin": HTMLPrestoStackedSkinElement; |
| 874 | "presto-timestamp": HTMLPrestoTimestampElement; |
| 875 | "presto-video": HTMLPrestoVideoElement; |
| 876 | "presto-video-curtain-ui": HTMLPrestoVideoCurtainUiElement; |
| 877 | "presto-vimeo": HTMLPrestoVimeoElement; |
| 878 | "presto-youtube": HTMLPrestoYoutubeElement; |
| 879 | "presto-youtube-subscribe-button": HTMLPrestoYoutubeSubscribeButtonElement; |
| 880 | } |
| 881 | } |
| 882 | declare namespace LocalJSX { |
| 883 | interface PrestoActionBar { |
| 884 | "config"?: ActionBarConfig; |
| 885 | "direction"?: 'rtl'; |
| 886 | "player"?: any; |
| 887 | "youtube"?: YoutubeConfig; |
| 888 | } |
| 889 | interface PrestoActionBarController { |
| 890 | "config"?: ActionBarConfig; |
| 891 | "currentTime"?: number; |
| 892 | "direction"?: 'rtl'; |
| 893 | "duration"?: number; |
| 894 | "ended"?: boolean; |
| 895 | "onActionBarStateChange"?: (event: PrestoActionBarControllerCustomEvent<boolean>) => void; |
| 896 | "youtube"?: YoutubeConfig; |
| 897 | } |
| 898 | interface PrestoActionBarUi { |
| 899 | "open"?: boolean; |
| 900 | } |
| 901 | interface PrestoAudio { |
| 902 | "audioAttributes"?: object; |
| 903 | "autoplay"?: boolean; |
| 904 | "getRef"?: (elm?: HTMLAudioElement) => void; |
| 905 | "mediaTitle"?: string; |
| 906 | "onPauseVideo"?: (event: PrestoAudioCustomEvent<true>) => void; |
| 907 | "onPlayVideo"?: (event: PrestoAudioCustomEvent<void>) => void; |
| 908 | "player"?: any; |
| 909 | "poster"?: string; |
| 910 | "preload"?: string; |
| 911 | "preset"?: presetAttributes; |
| 912 | "provider"?: string; |
| 913 | "src"?: string; |
| 914 | "tracks"?: { label: string; src: string; srcLang: string }[]; |
| 915 | } |
| 916 | interface PrestoBunny { |
| 917 | "autoplay"?: boolean; |
| 918 | "getRef"?: (elm?: HTMLVideoElement) => void; |
| 919 | "player"?: any; |
| 920 | "playsinline"?: boolean; |
| 921 | "poster"?: string; |
| 922 | "preload"?: string; |
| 923 | "previewUrl"?: string; |
| 924 | "provider"?: string; |
| 925 | "src"?: string; |
| 926 | "thumbnail"?: string; |
| 927 | "tracks"?: { label: string; src: string; srcLang: string }[]; |
| 928 | "videoAttributes"?: object; |
| 929 | } |
| 930 | interface PrestoBusinessSkin { |
| 931 | } |
| 932 | /** |
| 933 | * This component is needed to prevent re-rendering of |
| 934 | * main component with currentTime changes. |
| 935 | */ |
| 936 | interface PrestoCtaOverlay { |
| 937 | "direction"?: 'rtl'; |
| 938 | "i18n"?: i18nConfig; |
| 939 | "player"?: any; |
| 940 | "preset"?: presetAttributes; |
| 941 | "provider"?: string; |
| 942 | } |
| 943 | interface PrestoCtaOverlayController { |
| 944 | "cta"?: CTA; |
| 945 | "currentTime"?: number; |
| 946 | "direction"?: 'rtl'; |
| 947 | "duration"?: number; |
| 948 | "ended"?: boolean; |
| 949 | "i18n"?: i18nConfig; |
| 950 | "onCtaStateChange"?: (event: PrestoCtaOverlayControllerCustomEvent<boolean>) => void; |
| 951 | "onPauseVideo"?: (event: PrestoCtaOverlayControllerCustomEvent<boolean>) => void; |
| 952 | "onPlayVideo"?: (event: PrestoCtaOverlayControllerCustomEvent<void>) => void; |
| 953 | "onRestartVideo"?: (event: PrestoCtaOverlayControllerCustomEvent<void>) => void; |
| 954 | "provider"?: string; |
| 955 | } |
| 956 | interface PrestoCtaOverlayUi { |
| 957 | "allowRewatch"?: boolean; |
| 958 | "allowSkip"?: boolean; |
| 959 | "bottomText"?: string; |
| 960 | "buttonLink"?: ButtonLinkObject; |
| 961 | "buttonText"?: string; |
| 962 | "buttonType"?: 'link' | 'time'; |
| 963 | "defaultHeadline"?: string; |
| 964 | "direction"?: 'rtl'; |
| 965 | /** |
| 966 | * Props |
| 967 | */ |
| 968 | "headline"?: string; |
| 969 | "i18n"?: i18nConfig; |
| 970 | "onRewatch"?: (event: PrestoCtaOverlayUiCustomEvent<void>) => void; |
| 971 | /** |
| 972 | * Events |
| 973 | */ |
| 974 | "onSkip"?: (event: PrestoCtaOverlayUiCustomEvent<void>) => void; |
| 975 | "provider"?: string; |
| 976 | "showButton"?: boolean; |
| 977 | "type"?: string; |
| 978 | } |
| 979 | interface PrestoDynamicOverlayUi { |
| 980 | /** |
| 981 | * When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. |
| 982 | */ |
| 983 | "href"?: string; |
| 984 | "position"?: 'top-left' | 'top-right'; |
| 985 | /** |
| 986 | * Tells the browser where to open the link. Only used when `href` is set. |
| 987 | */ |
| 988 | "target"?: '_blank' | '_parent' | '_self' | '_top'; |
| 989 | } |
| 990 | interface PrestoDynamicOverlays { |
| 991 | "enabled"?: boolean; |
| 992 | "onReloadComponent"?: (event: PrestoDynamicOverlaysCustomEvent<void>) => void; |
| 993 | "overlays"?: Array<DynamicOverlay>; |
| 994 | "player"?: any; |
| 995 | "preset"?: presetAttributes; |
| 996 | } |
| 997 | /** |
| 998 | * This component is needed to prevent re-rendering of |
| 999 | * main component with currentTime changes. |
| 1000 | */ |
| 1001 | interface PrestoEmailOverlay { |
| 1002 | "direction"?: 'rtl'; |
| 1003 | "i18n"?: i18nConfig; |
| 1004 | "player"?: any; |
| 1005 | "preset"?: presetAttributes; |
| 1006 | "provider"?: string; |
| 1007 | "videoId"?: number; |
| 1008 | } |
| 1009 | interface PrestoEmailOverlayController { |
| 1010 | "currentTime"?: number; |
| 1011 | "direction"?: 'rtl'; |
| 1012 | "duration"?: number; |
| 1013 | "emailCollection"?: EmailCollection; |
| 1014 | "ended"?: boolean; |
| 1015 | "i18n"?: i18nConfig; |
| 1016 | "onEmailStateChange"?: (event: PrestoEmailOverlayControllerCustomEvent<boolean>) => void; |
| 1017 | "onPauseVideo"?: (event: PrestoEmailOverlayControllerCustomEvent<true>) => void; |
| 1018 | "onPlayVideo"?: (event: PrestoEmailOverlayControllerCustomEvent<void>) => void; |
| 1019 | "onRestartVideo"?: (event: PrestoEmailOverlayControllerCustomEvent<void>) => void; |
| 1020 | "presetId"?: number; |
| 1021 | "provider"?: string; |
| 1022 | "videoId"?: number; |
| 1023 | } |
| 1024 | interface PrestoEmailOverlayUi { |
| 1025 | "allowSkip"?: boolean; |
| 1026 | "borderRadius"?: number; |
| 1027 | "bottomText"?: string; |
| 1028 | "buttonText"?: string; |
| 1029 | "direction"?: 'rtl'; |
| 1030 | "errorMessage"?: string; |
| 1031 | /** |
| 1032 | * Props |
| 1033 | */ |
| 1034 | "headline"?: string; |
| 1035 | "i18n"?: i18nConfig; |
| 1036 | "isLoading"?: boolean; |
| 1037 | "onSkip"?: (event: PrestoEmailOverlayUiCustomEvent<object>) => void; |
| 1038 | /** |
| 1039 | * Events |
| 1040 | */ |
| 1041 | "onSubmitForm"?: (event: PrestoEmailOverlayUiCustomEvent<object>) => void; |
| 1042 | "provider"?: string; |
| 1043 | "type"?: string; |
| 1044 | } |
| 1045 | interface PrestoModernSkin { |
| 1046 | } |
| 1047 | interface PrestoMutedOverlay { |
| 1048 | "mutedOverlay"?: MutedOverlay; |
| 1049 | "mutedPreview"?: boolean; |
| 1050 | "onPlayVideo"?: (event: PrestoMutedOverlayCustomEvent<void>) => void; |
| 1051 | "preset"?: presetAttributes; |
| 1052 | } |
| 1053 | interface PrestoPlayer { |
| 1054 | "actionBar"?: ActionBarConfig; |
| 1055 | "analytics"?: boolean; |
| 1056 | "audioAttributes"?: object; |
| 1057 | "automations"?: boolean; |
| 1058 | "autoplay"?: boolean; |
| 1059 | "blockAttributes"?: blockAttributes; |
| 1060 | "branding"?: prestoBranding; |
| 1061 | "bunny"?: BunnyConfig; |
| 1062 | "chapters"?: prestoChapters; |
| 1063 | "classes"?: string; |
| 1064 | "config"?: PrestoConfig; |
| 1065 | "css"?: string; |
| 1066 | "currentTime"?: number; |
| 1067 | "direction"?: 'rtl'; |
| 1068 | "iconUrl"?: string; |
| 1069 | "isAdmin"?: boolean; |
| 1070 | "markers"?: any; |
| 1071 | "mediaTitle"?: string; |
| 1072 | "onCurrentMediaPlayer"?: (event: PrestoPlayerCustomEvent<object>) => void; |
| 1073 | "onEndedMedia"?: (event: PrestoPlayerCustomEvent<object>) => void; |
| 1074 | /** |
| 1075 | * Component loaded |
| 1076 | */ |
| 1077 | "onLoaded"?: (event: PrestoPlayerCustomEvent<boolean>) => void; |
| 1078 | "onPausedMedia"?: (event: PrestoPlayerCustomEvent<object>) => void; |
| 1079 | "onPlayedMedia"?: (event: PrestoPlayerCustomEvent<object>) => void; |
| 1080 | "onPlayerReady"?: (event: PrestoPlayerCustomEvent<object>) => void; |
| 1081 | "overlays"?: Array<DynamicOverlay>; |
| 1082 | "playsinline"?: boolean; |
| 1083 | "poster"?: string; |
| 1084 | "preload"?: 'metadata' | 'none' | 'auto'; |
| 1085 | "preset"?: presetAttributes; |
| 1086 | "provider"?: string; |
| 1087 | "provider_video_id"?: string; |
| 1088 | "search"?: SearchBarConfig; |
| 1089 | "src"?: string; |
| 1090 | "tracks"?: { label: string; src: string; srcLang: string }[]; |
| 1091 | "type"?: string; |
| 1092 | "videoAttributes"?: object; |
| 1093 | "video_id"?: number; |
| 1094 | "youtube"?: YoutubeConfig; |
| 1095 | } |
| 1096 | interface PrestoPlayerButton { |
| 1097 | /** |
| 1098 | * Disables the button. |
| 1099 | */ |
| 1100 | "disabled"?: boolean; |
| 1101 | /** |
| 1102 | * Tells the browser to download the linked file as this filename. Only used when `href` is set. |
| 1103 | */ |
| 1104 | "download"?: string; |
| 1105 | /** |
| 1106 | * Draws the button with a caret for use with dropdowns, popovers, etc. |
| 1107 | */ |
| 1108 | "full"?: boolean; |
| 1109 | /** |
| 1110 | * When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. |
| 1111 | */ |
| 1112 | "href"?: string; |
| 1113 | /** |
| 1114 | * An optional name for the button. Ignored when `href` is set. |
| 1115 | */ |
| 1116 | "name"?: string; |
| 1117 | /** |
| 1118 | * Emitted when the button loses focus. |
| 1119 | */ |
| 1120 | "onPrestoBlur"?: (event: PrestoPlayerButtonCustomEvent<void>) => void; |
| 1121 | /** |
| 1122 | * Emitted when the button gains focus. |
| 1123 | */ |
| 1124 | "onPrestoFocus"?: (event: PrestoPlayerButtonCustomEvent<void>) => void; |
| 1125 | /** |
| 1126 | * The button's size. |
| 1127 | */ |
| 1128 | "size"?: 'small' | 'medium' | 'large'; |
| 1129 | /** |
| 1130 | * Indicates if activating the button should submit the form. Ignored when `href` is set. |
| 1131 | */ |
| 1132 | "submit"?: boolean; |
| 1133 | /** |
| 1134 | * Tells the browser where to open the link. Only used when `href` is set. |
| 1135 | */ |
| 1136 | "target"?: '_blank' | '_parent' | '_self' | '_top'; |
| 1137 | /** |
| 1138 | * The button's type. |
| 1139 | */ |
| 1140 | "type"?: 'default' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'text'; |
| 1141 | /** |
| 1142 | * An optional value for the button. Ignored when `href` is set. |
| 1143 | */ |
| 1144 | "value"?: string; |
| 1145 | } |
| 1146 | interface PrestoPlayerSkeleton { |
| 1147 | "effect"?: 'pulse' | 'sheen' | 'none'; |
| 1148 | } |
| 1149 | interface PrestoPlayerSpinner { |
| 1150 | } |
| 1151 | interface PrestoPlaylist { |
| 1152 | /** |
| 1153 | * Title for the Playlist |
| 1154 | */ |
| 1155 | "heading"?: string; |
| 1156 | /** |
| 1157 | * Array of videos from the Playlist |
| 1158 | */ |
| 1159 | "items"?: Array<PlaylistItem>; |
| 1160 | /** |
| 1161 | * Count prefix string for the Playlist - Plural |
| 1162 | */ |
| 1163 | "listTextPlural"?: string; |
| 1164 | /** |
| 1165 | * Count prefix string for the Playlist - Singular |
| 1166 | */ |
| 1167 | "listTextSingular"?: string; |
| 1168 | /** |
| 1169 | * Transition duration for next video. |
| 1170 | */ |
| 1171 | "transitionDuration"?: number; |
| 1172 | } |
| 1173 | interface PrestoPlaylistItem { |
| 1174 | /** |
| 1175 | * Active status |
| 1176 | */ |
| 1177 | "active"?: boolean; |
| 1178 | /** |
| 1179 | * Emit pause event |
| 1180 | */ |
| 1181 | "onTriggerPause"?: (event: PrestoPlaylistItemCustomEvent<void>) => void; |
| 1182 | /** |
| 1183 | * Emit play event |
| 1184 | */ |
| 1185 | "onTriggerPlay"?: (event: PrestoPlaylistItemCustomEvent<void>) => void; |
| 1186 | /** |
| 1187 | * Playing status |
| 1188 | */ |
| 1189 | "playing"?: boolean; |
| 1190 | } |
| 1191 | interface PrestoPlaylistOverlay { |
| 1192 | /** |
| 1193 | * Flag to handle if this item is the last item in the list. |
| 1194 | */ |
| 1195 | "isLastItem"?: boolean; |
| 1196 | /** |
| 1197 | * String for the Button that says `Next Video` |
| 1198 | */ |
| 1199 | "nextItemString"?: string; |
| 1200 | /** |
| 1201 | * Title of the upcoming next playlist item |
| 1202 | */ |
| 1203 | "nextItemTitle"?: string; |
| 1204 | /** |
| 1205 | * Next item play event |
| 1206 | */ |
| 1207 | "onNext"?: (event: PrestoPlaylistOverlayCustomEvent<void>) => void; |
| 1208 | /** |
| 1209 | * Rewatch item event |
| 1210 | */ |
| 1211 | "onRewatch"?: (event: PrestoPlaylistOverlayCustomEvent<void>) => void; |
| 1212 | /** |
| 1213 | * Visibility flag for the Overlay |
| 1214 | */ |
| 1215 | "show"?: boolean; |
| 1216 | /** |
| 1217 | * Transition duration for next video. |
| 1218 | */ |
| 1219 | "transitionDuration"?: number; |
| 1220 | } |
| 1221 | interface PrestoPlaylistUi { |
| 1222 | } |
| 1223 | interface PrestoSearchBar { |
| 1224 | "player"?: any; |
| 1225 | /** |
| 1226 | * Props |
| 1227 | */ |
| 1228 | "value"?: string; |
| 1229 | } |
| 1230 | interface PrestoSearchBarUi { |
| 1231 | /** |
| 1232 | * Has results |
| 1233 | */ |
| 1234 | "hasNavigation"?: boolean; |
| 1235 | /** |
| 1236 | * Search is performed |
| 1237 | */ |
| 1238 | "onFocusChange"?: (event: PrestoSearchBarUiCustomEvent<boolean>) => void; |
| 1239 | /** |
| 1240 | * Next is navigated |
| 1241 | */ |
| 1242 | "onNextNav"?: (event: PrestoSearchBarUiCustomEvent<void>) => void; |
| 1243 | /** |
| 1244 | * Previous is navigated. |
| 1245 | */ |
| 1246 | "onPreviousNav"?: (event: PrestoSearchBarUiCustomEvent<void>) => void; |
| 1247 | /** |
| 1248 | * Search is performed |
| 1249 | */ |
| 1250 | "onSearch"?: (event: PrestoSearchBarUiCustomEvent<string>) => void; |
| 1251 | /** |
| 1252 | * The placeholder. |
| 1253 | */ |
| 1254 | "placeholder"?: string; |
| 1255 | /** |
| 1256 | * The value for the search. |
| 1257 | */ |
| 1258 | "value"?: string; |
| 1259 | } |
| 1260 | interface PrestoStackedSkin { |
| 1261 | } |
| 1262 | interface PrestoTimestamp { |
| 1263 | "time"?: string; |
| 1264 | } |
| 1265 | interface PrestoVideo { |
| 1266 | "autoplay"?: boolean; |
| 1267 | "getRef"?: (elm?: HTMLVideoElement) => void; |
| 1268 | "player"?: any; |
| 1269 | "playsinline"?: boolean; |
| 1270 | "poster"?: string; |
| 1271 | "preload"?: string; |
| 1272 | "provider"?: string; |
| 1273 | "src"?: string; |
| 1274 | "tracks"?: { label: string; src: string; srcLang: string }[]; |
| 1275 | "videoAttributes"?: object; |
| 1276 | } |
| 1277 | interface PrestoVideoCurtainUi { |
| 1278 | /** |
| 1279 | * Props |
| 1280 | */ |
| 1281 | "actionUrl"?: string; |
| 1282 | } |
| 1283 | interface PrestoVimeo { |
| 1284 | "getRef"?: (elm?: HTMLIFrameElement) => void; |
| 1285 | "player"?: any; |
| 1286 | "poster"?: string; |
| 1287 | "src"?: string; |
| 1288 | } |
| 1289 | interface PrestoYoutube { |
| 1290 | "getRef"?: (elm?: HTMLIFrameElement | HTMLVideoElement | HTMLDivElement) => void; |
| 1291 | "lazyLoad"?: boolean; |
| 1292 | /** |
| 1293 | * Events |
| 1294 | */ |
| 1295 | "onReload"?: (event: PrestoYoutubeCustomEvent<string>) => void; |
| 1296 | "player"?: any; |
| 1297 | "poster"?: string; |
| 1298 | "src"?: string; |
| 1299 | } |
| 1300 | interface PrestoYoutubeSubscribeButton { |
| 1301 | "channel"?: string; |
| 1302 | "layout"?: string; |
| 1303 | "showCount"?: boolean; |
| 1304 | } |
| 1305 | interface IntrinsicElements { |
| 1306 | "presto-action-bar": PrestoActionBar; |
| 1307 | "presto-action-bar-controller": PrestoActionBarController; |
| 1308 | "presto-action-bar-ui": PrestoActionBarUi; |
| 1309 | "presto-audio": PrestoAudio; |
| 1310 | "presto-bunny": PrestoBunny; |
| 1311 | "presto-business-skin": PrestoBusinessSkin; |
| 1312 | "presto-cta-overlay": PrestoCtaOverlay; |
| 1313 | "presto-cta-overlay-controller": PrestoCtaOverlayController; |
| 1314 | "presto-cta-overlay-ui": PrestoCtaOverlayUi; |
| 1315 | "presto-dynamic-overlay-ui": PrestoDynamicOverlayUi; |
| 1316 | "presto-dynamic-overlays": PrestoDynamicOverlays; |
| 1317 | "presto-email-overlay": PrestoEmailOverlay; |
| 1318 | "presto-email-overlay-controller": PrestoEmailOverlayController; |
| 1319 | "presto-email-overlay-ui": PrestoEmailOverlayUi; |
| 1320 | "presto-modern-skin": PrestoModernSkin; |
| 1321 | "presto-muted-overlay": PrestoMutedOverlay; |
| 1322 | "presto-player": PrestoPlayer; |
| 1323 | "presto-player-button": PrestoPlayerButton; |
| 1324 | "presto-player-skeleton": PrestoPlayerSkeleton; |
| 1325 | "presto-player-spinner": PrestoPlayerSpinner; |
| 1326 | "presto-playlist": PrestoPlaylist; |
| 1327 | "presto-playlist-item": PrestoPlaylistItem; |
| 1328 | "presto-playlist-overlay": PrestoPlaylistOverlay; |
| 1329 | "presto-playlist-ui": PrestoPlaylistUi; |
| 1330 | "presto-search-bar": PrestoSearchBar; |
| 1331 | "presto-search-bar-ui": PrestoSearchBarUi; |
| 1332 | "presto-stacked-skin": PrestoStackedSkin; |
| 1333 | "presto-timestamp": PrestoTimestamp; |
| 1334 | "presto-video": PrestoVideo; |
| 1335 | "presto-video-curtain-ui": PrestoVideoCurtainUi; |
| 1336 | "presto-vimeo": PrestoVimeo; |
| 1337 | "presto-youtube": PrestoYoutube; |
| 1338 | "presto-youtube-subscribe-button": PrestoYoutubeSubscribeButton; |
| 1339 | } |
| 1340 | } |
| 1341 | export { LocalJSX as JSX }; |
| 1342 | declare module "@stencil/core" { |
| 1343 | export namespace JSX { |
| 1344 | interface IntrinsicElements { |
| 1345 | "presto-action-bar": LocalJSX.PrestoActionBar & JSXBase.HTMLAttributes<HTMLPrestoActionBarElement>; |
| 1346 | "presto-action-bar-controller": LocalJSX.PrestoActionBarController & JSXBase.HTMLAttributes<HTMLPrestoActionBarControllerElement>; |
| 1347 | "presto-action-bar-ui": LocalJSX.PrestoActionBarUi & JSXBase.HTMLAttributes<HTMLPrestoActionBarUiElement>; |
| 1348 | "presto-audio": LocalJSX.PrestoAudio & JSXBase.HTMLAttributes<HTMLPrestoAudioElement>; |
| 1349 | "presto-bunny": LocalJSX.PrestoBunny & JSXBase.HTMLAttributes<HTMLPrestoBunnyElement>; |
| 1350 | "presto-business-skin": LocalJSX.PrestoBusinessSkin & JSXBase.HTMLAttributes<HTMLPrestoBusinessSkinElement>; |
| 1351 | /** |
| 1352 | * This component is needed to prevent re-rendering of |
| 1353 | * main component with currentTime changes. |
| 1354 | */ |
| 1355 | "presto-cta-overlay": LocalJSX.PrestoCtaOverlay & JSXBase.HTMLAttributes<HTMLPrestoCtaOverlayElement>; |
| 1356 | "presto-cta-overlay-controller": LocalJSX.PrestoCtaOverlayController & JSXBase.HTMLAttributes<HTMLPrestoCtaOverlayControllerElement>; |
| 1357 | "presto-cta-overlay-ui": LocalJSX.PrestoCtaOverlayUi & JSXBase.HTMLAttributes<HTMLPrestoCtaOverlayUiElement>; |
| 1358 | "presto-dynamic-overlay-ui": LocalJSX.PrestoDynamicOverlayUi & JSXBase.HTMLAttributes<HTMLPrestoDynamicOverlayUiElement>; |
| 1359 | "presto-dynamic-overlays": LocalJSX.PrestoDynamicOverlays & JSXBase.HTMLAttributes<HTMLPrestoDynamicOverlaysElement>; |
| 1360 | /** |
| 1361 | * This component is needed to prevent re-rendering of |
| 1362 | * main component with currentTime changes. |
| 1363 | */ |
| 1364 | "presto-email-overlay": LocalJSX.PrestoEmailOverlay & JSXBase.HTMLAttributes<HTMLPrestoEmailOverlayElement>; |
| 1365 | "presto-email-overlay-controller": LocalJSX.PrestoEmailOverlayController & JSXBase.HTMLAttributes<HTMLPrestoEmailOverlayControllerElement>; |
| 1366 | "presto-email-overlay-ui": LocalJSX.PrestoEmailOverlayUi & JSXBase.HTMLAttributes<HTMLPrestoEmailOverlayUiElement>; |
| 1367 | "presto-modern-skin": LocalJSX.PrestoModernSkin & JSXBase.HTMLAttributes<HTMLPrestoModernSkinElement>; |
| 1368 | "presto-muted-overlay": LocalJSX.PrestoMutedOverlay & JSXBase.HTMLAttributes<HTMLPrestoMutedOverlayElement>; |
| 1369 | "presto-player": LocalJSX.PrestoPlayer & JSXBase.HTMLAttributes<HTMLPrestoPlayerElement>; |
| 1370 | "presto-player-button": LocalJSX.PrestoPlayerButton & JSXBase.HTMLAttributes<HTMLPrestoPlayerButtonElement>; |
| 1371 | "presto-player-skeleton": LocalJSX.PrestoPlayerSkeleton & JSXBase.HTMLAttributes<HTMLPrestoPlayerSkeletonElement>; |
| 1372 | "presto-player-spinner": LocalJSX.PrestoPlayerSpinner & JSXBase.HTMLAttributes<HTMLPrestoPlayerSpinnerElement>; |
| 1373 | "presto-playlist": LocalJSX.PrestoPlaylist & JSXBase.HTMLAttributes<HTMLPrestoPlaylistElement>; |
| 1374 | "presto-playlist-item": LocalJSX.PrestoPlaylistItem & JSXBase.HTMLAttributes<HTMLPrestoPlaylistItemElement>; |
| 1375 | "presto-playlist-overlay": LocalJSX.PrestoPlaylistOverlay & JSXBase.HTMLAttributes<HTMLPrestoPlaylistOverlayElement>; |
| 1376 | "presto-playlist-ui": LocalJSX.PrestoPlaylistUi & JSXBase.HTMLAttributes<HTMLPrestoPlaylistUiElement>; |
| 1377 | "presto-search-bar": LocalJSX.PrestoSearchBar & JSXBase.HTMLAttributes<HTMLPrestoSearchBarElement>; |
| 1378 | "presto-search-bar-ui": LocalJSX.PrestoSearchBarUi & JSXBase.HTMLAttributes<HTMLPrestoSearchBarUiElement>; |
| 1379 | "presto-stacked-skin": LocalJSX.PrestoStackedSkin & JSXBase.HTMLAttributes<HTMLPrestoStackedSkinElement>; |
| 1380 | "presto-timestamp": LocalJSX.PrestoTimestamp & JSXBase.HTMLAttributes<HTMLPrestoTimestampElement>; |
| 1381 | "presto-video": LocalJSX.PrestoVideo & JSXBase.HTMLAttributes<HTMLPrestoVideoElement>; |
| 1382 | "presto-video-curtain-ui": LocalJSX.PrestoVideoCurtainUi & JSXBase.HTMLAttributes<HTMLPrestoVideoCurtainUiElement>; |
| 1383 | "presto-vimeo": LocalJSX.PrestoVimeo & JSXBase.HTMLAttributes<HTMLPrestoVimeoElement>; |
| 1384 | "presto-youtube": LocalJSX.PrestoYoutube & JSXBase.HTMLAttributes<HTMLPrestoYoutubeElement>; |
| 1385 | "presto-youtube-subscribe-button": LocalJSX.PrestoYoutubeSubscribeButton & JSXBase.HTMLAttributes<HTMLPrestoYoutubeSubscribeButtonElement>; |
| 1386 | } |
| 1387 | } |
| 1388 | } |
| 1389 |