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