@testing-library/user-event
Advanced tools
Comparing version 14.2.5 to 14.2.6
@@ -8,4 +8,4 @@ declare const isPrepared: unique symbol; | ||
export declare function prepareDocument(document: Document): void; | ||
export { getUIValue, setUIValue, startTrackValue, endTrackValue, clearInitialValue, } from './value'; | ||
export { getUIValue, setUIValue, commitValueAfterInput, clearInitialValue, } from './value'; | ||
export { getUISelection, setUISelection } from './selection'; | ||
export type { UISelectionRange } from './selection'; |
@@ -26,4 +26,5 @@ declare const UISelection: unique symbol; | ||
}; | ||
export declare function hasUISelection(element: HTMLInputElement | HTMLTextAreaElement): boolean; | ||
/** Flag the IDL selection as clean. This does not change the selection. */ | ||
export declare function setUISelectionClean(element: HTMLInputElement | HTMLTextAreaElement): void; | ||
export {}; |
@@ -5,2 +5,5 @@ declare const UIValue: unique symbol; | ||
declare global { | ||
interface Window { | ||
REACT_VERSION?: number; | ||
} | ||
interface Element { | ||
@@ -23,7 +26,3 @@ [UIValue]?: string; | ||
export declare function getInitialValue(element: HTMLInputElement | HTMLTextAreaElement): string | undefined; | ||
export declare function startTrackValue(element: HTMLInputElement | HTMLTextAreaElement): void; | ||
/** | ||
* @returns `true` if we recognize a React state reset and update | ||
*/ | ||
export declare function endTrackValue(element: HTMLInputElement | HTMLTextAreaElement): boolean; | ||
export declare function commitValueAfterInput(element: HTMLInputElement | HTMLTextAreaElement, cursorOffset: number): void; | ||
export {}; |
import { Config } from '../../setup'; | ||
import { ApiLevel } from '..'; | ||
export declare function hasPointerEvents(element: Element): boolean; | ||
export declare function hasPointerEvents(config: Config, element: Element): boolean; | ||
declare function closestPointerEventsDeclaration(element: Element): { | ||
pointerEvents: string; | ||
tree: Element[]; | ||
} | undefined; | ||
declare const PointerEventsCheck: unique symbol; | ||
@@ -10,3 +14,3 @@ declare global { | ||
} & { | ||
result: boolean; | ||
result: ReturnType<typeof closestPointerEventsDeclaration>; | ||
}; | ||
@@ -13,0 +17,0 @@ } |
{ | ||
"name": "@testing-library/user-event", | ||
"version": "14.2.5", | ||
"version": "14.2.6", | ||
"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
253627
7292