/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-dom-bindings/src/events/DOMEventNames.js
131 строка
3 KB
Sebastian Silbermann
React DOM: Add support for Popover API (#27981)
20 май 2024, 23:01
Не верифицирован
20 май 2024, 23:01
6f90365
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import getVendorPrefixedEventName from './getVendorPrefixedEventName'; export type DOMEventName = | 'abort' | 'afterblur' // Not a real event. This is used by event experiments. // These are vendor-prefixed so you should use the exported constants instead: // 'animationiteration' | // 'animationend | // 'animationstart' | | 'beforeblur' // Not a real event. This is used by event experiments. | 'beforeinput' | 'beforetoggle' | 'blur' | 'canplay' | 'canplaythrough' | 'cancel' | 'change' | 'click' | 'close' | 'compositionend' | 'compositionstart' | 'compositionupdate' | 'contextmenu' | 'copy' | 'cut' | 'dblclick' | 'auxclick' | 'drag' | 'dragend' | 'dragenter' | 'dragexit' | 'dragleave' | 'dragover' | 'dragstart' | 'drop' | 'durationchange' | 'emptied' | 'encrypted' | 'ended' | 'error' | 'focus' | 'focusin' | 'focusout' | 'fullscreenchange' | 'gotpointercapture' | 'hashchange' | 'input' | 'invalid' | 'keydown' | 'keypress' | 'keyup' | 'load' | 'loadstart' | 'loadeddata' | 'loadedmetadata' | 'lostpointercapture' | 'message' | 'mousedown' | 'mouseenter' | 'mouseleave' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseup' | 'paste' | 'pause' | 'play' | 'playing' | 'pointercancel' | 'pointerdown' | 'pointerenter' | 'pointerleave' | 'pointermove' | 'pointerout' | 'pointerover' | 'pointerup' | 'popstate' | 'progress' | 'ratechange' | 'reset' | 'resize' | 'scroll' | 'scrollend' | 'seeked' | 'seeking' | 'select' | 'selectstart' | 'selectionchange' | 'stalled' | 'submit' | 'suspend' | 'textInput' // Intentionally camelCase. Non-standard. | 'timeupdate' | 'toggle' | 'touchcancel' | 'touchend' | 'touchmove' | 'touchstart' // These are vendor-prefixed so you should use the exported constants instead: // 'transitionrun' | // 'transitionstart' | // 'transitioncancel' | // 'transitionend' | | 'volumechange' | 'waiting' | 'wheel'; export const ANIMATION_END: DOMEventName = getVendorPrefixedEventName('animationend'); export const ANIMATION_ITERATION: DOMEventName = getVendorPrefixedEventName('animationiteration'); export const ANIMATION_START: DOMEventName = getVendorPrefixedEventName('animationstart'); export const TRANSITION_RUN: DOMEventName = getVendorPrefixedEventName('transitionrun'); export const TRANSITION_START: DOMEventName = getVendorPrefixedEventName('transitionstart'); export const TRANSITION_CANCEL: DOMEventName = getVendorPrefixedEventName('transitioncancel'); export const TRANSITION_END: DOMEventName = getVendorPrefixedEventName('transitionend');