@testing-library/user-event 14.1.0 → 14.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ export interface Options {
48
48
  * This defaults to the owner document of an element if an API is called directly with an element and without setup.
49
49
  * Otherwise it falls back to the global document.
50
50
  *
51
- * @default element.ownerDocument??global.document
51
+ * @default element.ownerDocument??globalThis.document
52
52
  */
53
53
  document?: Document;
54
54
  /**
@@ -1,9 +1,11 @@
1
1
  export declare function createClipboardItem(window: Window & typeof globalThis, ...blobs: Array<Blob | string>): ClipboardItem;
2
- export declare function attachClipboardStubToView(window: Window & typeof globalThis): {
2
+ declare type ClipboardStubControlInstance = {
3
3
  resetClipboardStub: () => void;
4
4
  detachClipboardStub: () => void;
5
5
  };
6
+ export declare function attachClipboardStubToView(window: Window & typeof globalThis): ClipboardStubControlInstance;
6
7
  export declare function resetClipboardStubOnView(window: Window & typeof globalThis): void;
7
8
  export declare function detachClipboardStubFromView(window: Window & typeof globalThis): void;
8
9
  export declare function readDataTransferFromClipboard(document: Document): Promise<DataTransfer>;
9
10
  export declare function writeDataTransferToClipboard(document: Document, clipboardData: DataTransfer): Promise<void>;
11
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testing-library/user-event",
3
- "version": "14.1.0",
3
+ "version": "14.2.1",
4
4
  "description": "Fire events the same way the user does",
5
5
  "keywords": [
6
6
  "react-testing-library",
@@ -52,6 +52,7 @@
52
52
  "@types/react": "^17.0.42",
53
53
  "esbuild": "^0.14.27",
54
54
  "eslint-import-resolver-typescript": "^2.7.0",
55
+ "eslint-plugin-local-rules": "^1.1.0",
55
56
  "is-ci": "^3.0.1",
56
57
  "jest-in-case": "^1.0.2",
57
58
  "jest-serializer-ansi": "^1.0.3",