| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | * |
| 7 | * @flow |
| 8 | */ |
| 9 | |
| 10 | import getVendorPrefixedEventName from './getVendorPrefixedEventName'; |
| 11 | |
| 12 | export type DOMEventName = |
| 13 | | 'abort' |
| 14 | | 'afterblur' // Not a real event. This is used by event experiments. |
| 15 | // These are vendor-prefixed so you should use the exported constants instead: |
| 16 | // 'animationiteration' | |
| 17 | // 'animationend | |
| 18 | // 'animationstart' | |
| 19 | | 'beforeblur' // Not a real event. This is used by event experiments. |
| 20 | | 'beforeinput' |
| 21 | | 'beforetoggle' |
| 22 | | 'blur' |
| 23 | | 'canplay' |
| 24 | | 'canplaythrough' |
| 25 | | 'cancel' |
| 26 | | 'change' |
| 27 | | 'click' |
| 28 | | 'close' |
| 29 | | 'compositionend' |
| 30 | | 'compositionstart' |
| 31 | | 'compositionupdate' |
| 32 | | 'contextmenu' |
| 33 | | 'copy' |
| 34 | | 'cut' |
| 35 | | 'dblclick' |
| 36 | | 'auxclick' |
| 37 | | 'drag' |
| 38 | | 'dragend' |
| 39 | | 'dragenter' |
| 40 | | 'dragexit' |
| 41 | | 'dragleave' |
| 42 | | 'dragover' |
| 43 | | 'dragstart' |
| 44 | | 'drop' |
| 45 | | 'durationchange' |
| 46 | | 'emptied' |
| 47 | | 'encrypted' |
| 48 | | 'ended' |
| 49 | | 'error' |
| 50 | | 'focus' |
| 51 | | 'focusin' |
| 52 | | 'focusout' |
| 53 | | 'fullscreenchange' |
| 54 | | 'fullscreenerror' |
| 55 | | 'gotpointercapture' |
| 56 | | 'hashchange' |
| 57 | | 'input' |
| 58 | | 'invalid' |
| 59 | | 'keydown' |
| 60 | | 'keypress' |
| 61 | | 'keyup' |
| 62 | | 'load' |
| 63 | | 'loadstart' |
| 64 | | 'loadeddata' |
| 65 | | 'loadedmetadata' |
| 66 | | 'lostpointercapture' |
| 67 | | 'message' |
| 68 | | 'mousedown' |
| 69 | | 'mouseenter' |
| 70 | | 'mouseleave' |
| 71 | | 'mousemove' |
| 72 | | 'mouseout' |
| 73 | | 'mouseover' |
| 74 | | 'mouseup' |
| 75 | | 'paste' |
| 76 | | 'pause' |
| 77 | | 'play' |
| 78 | | 'playing' |
| 79 | | 'pointercancel' |
| 80 | | 'pointerdown' |
| 81 | | 'pointerenter' |
| 82 | | 'pointerleave' |
| 83 | | 'pointermove' |
| 84 | | 'pointerout' |
| 85 | | 'pointerover' |
| 86 | | 'pointerup' |
| 87 | | 'popstate' |
| 88 | | 'progress' |
| 89 | | 'ratechange' |
| 90 | | 'reset' |
| 91 | | 'resize' |
| 92 | | 'scroll' |
| 93 | | 'scrollend' |
| 94 | | 'seeked' |
| 95 | | 'seeking' |
| 96 | | 'select' |
| 97 | | 'selectstart' |
| 98 | | 'selectionchange' |
| 99 | | 'stalled' |
| 100 | | 'submit' |
| 101 | | 'suspend' |
| 102 | | 'textInput' // Intentionally camelCase. Non-standard. |
| 103 | | 'timeupdate' |
| 104 | | 'toggle' |
| 105 | | 'touchcancel' |
| 106 | | 'touchend' |
| 107 | | 'touchmove' |
| 108 | | 'touchstart' |
| 109 | // These are vendor-prefixed so you should use the exported constants instead: |
| 110 | // 'transitionrun' | |
| 111 | // 'transitionstart' | |
| 112 | // 'transitioncancel' | |
| 113 | // 'transitionend' | |
| 114 | | 'volumechange' |
| 115 | | 'waiting' |
| 116 | | 'wheel'; |
| 117 | |
| 118 | export const ANIMATION_END: DOMEventName = |
| 119 | getVendorPrefixedEventName('animationend'); |
| 120 | export const ANIMATION_ITERATION: DOMEventName = |
| 121 | getVendorPrefixedEventName('animationiteration'); |
| 122 | export const ANIMATION_START: DOMEventName = |
| 123 | getVendorPrefixedEventName('animationstart'); |
| 124 | |
| 125 | export const TRANSITION_RUN: DOMEventName = |
| 126 | getVendorPrefixedEventName('transitionrun'); |
| 127 | export const TRANSITION_START: DOMEventName = |
| 128 | getVendorPrefixedEventName('transitionstart'); |
| 129 | export const TRANSITION_CANCEL: DOMEventName = |
| 130 | getVendorPrefixedEventName('transitioncancel'); |
| 131 | export const TRANSITION_END: DOMEventName = |
| 132 | getVendorPrefixedEventName('transitionend'); |