@testing-library/user-event
Advanced tools
Comparing version 14.0.0-beta.10 to 14.0.0-beta.11
import './click'; | ||
import './keydown'; | ||
import './keypress'; | ||
import './keyup'; | ||
export { behavior } from './registry'; | ||
export type { BehaviorPlugin } from './registry'; |
import { Config } from '../setup'; | ||
export declare function dispatchEvent(config: Config, target: Element, event: Event): boolean; | ||
export declare function dispatchEvent(config: Config, target: Element, event: Event, preventDefault?: boolean): boolean; |
@@ -5,3 +5,3 @@ import { Config } from '../setup'; | ||
export type { EventType, PointerCoords }; | ||
export declare function dispatchUIEvent<K extends EventType>(config: Config, target: Element, type: K, init?: EventTypeInit<K>): boolean; | ||
export declare function bindDispatchUIEvent(config: Config): (target: Element, type: keyof DocumentEventMap, init?: InputEventInit | UIEventInit | EventInit | ClipboardEventInit | MouseEventInit | PointerEventInit | KeyboardEventInit | undefined) => boolean; | ||
export declare function dispatchUIEvent<K extends EventType>(config: Config, target: Element, type: K, init?: EventTypeInit<K>, preventDefault?: boolean): boolean; | ||
export declare function bindDispatchUIEvent(config: Config): (target: Element, type: keyof DocumentEventMap, init?: InputEventInit | UIEventInit | EventInit | ClipboardEventInit | MouseEventInit | PointerEventInit | KeyboardEventInit | undefined, preventDefault?: boolean | undefined) => boolean; |
@@ -1,2 +0,1 @@ | ||
import { Config } from '../setup'; | ||
/** | ||
@@ -75,5 +74,1 @@ * @internal Do not create/alter this by yourself as this type might be subject to changes. | ||
} | ||
export interface behaviorPlugin { | ||
matches: (keyDef: keyboardKey, element: Element, config: Config) => boolean; | ||
handle: (keyDef: keyboardKey, element: Element, config: Config) => void; | ||
} |
@@ -43,1 +43,5 @@ import { UISelectionRange } from '../../document'; | ||
}): void; | ||
/** | ||
* Move the selection | ||
*/ | ||
export declare function moveSelection(node: Element, direction: -1 | 1): void; |
@@ -6,12 +6,6 @@ export * from './click/isClickableInput'; | ||
export * from './dataTransfer/Clipboard'; | ||
export * from './edit/buildTimeValue'; | ||
export * from './edit/calculateNewValue'; | ||
export * from './edit/editInputElement'; | ||
export * from './edit/getValue'; | ||
export * from './edit/input'; | ||
export * from './edit/isContentEditable'; | ||
export * from './edit/isEditable'; | ||
export * from './edit/isValidDateValue'; | ||
export * from './edit/isValidInputTimeValue'; | ||
export * from './edit/maxLength'; | ||
export * from './edit/prepareInput'; | ||
export * from './edit/setFiles'; | ||
@@ -41,4 +35,3 @@ export * from './focus/blur'; | ||
export * from './misc/wait'; | ||
export * from './misc/hasFormSubmit'; | ||
export * from './pointer/cssPointerEvents'; | ||
export * from './pointer/mouseButtons'; |
{ | ||
"name": "@testing-library/user-event", | ||
"version": "14.0.0-beta.10", | ||
"version": "14.0.0-beta.11", | ||
"description": "Fire events the same way the user does", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240407
97
6862