Socket
Socket
Sign inDemoInstall

@testing-library/user-event

Package Overview
Dependencies
Maintainers
16
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.0.0-beta.10 to 14.0.0-beta.11

dist/types/event/behavior/keydown.d.ts

3

dist/types/event/behavior/index.d.ts
import './click';
import './keydown';
import './keypress';
import './keyup';
export { behavior } from './registry';
export type { BehaviorPlugin } from './registry';

2

dist/types/event/dispatchEvent.d.ts
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

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