Socket
Socket
Sign inDemoInstall

@testing-library/user-event

Package Overview
Dependencies
Maintainers
13
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/user-event - npm Package Compare versions

Comparing version 14.2.5 to 14.2.6

2

dist/types/document/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc