@testing-library/user-event 14.0.1 → 14.0.2
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.
- package/dist/index.cjs +133 -117
- package/dist/index.mjs +133 -117
- package/dist/types/utils/dataTransfer/Blob.d.ts +3 -1
- package/dist/types/utils/dataTransfer/Clipboard.d.ts +1 -1
- package/dist/types/utils/dataTransfer/DataTransfer.d.ts +2 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/misc/getWindow.d.ts +1 -0
- package/package.json +8 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function createClipboardItem(...blobs: Array<Blob | string>): ClipboardItem;
|
|
1
|
+
export declare function createClipboardItem(window: Window & typeof globalThis, ...blobs: Array<Blob | string>): ClipboardItem;
|
|
2
2
|
export declare function attachClipboardStubToView(window: Window & typeof globalThis): {
|
|
3
3
|
resetClipboardStub: () => void;
|
|
4
4
|
detachClipboardStub: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function createDataTransfer(files?: File[]): DataTransfer;
|
|
2
|
-
export declare function getBlobFromDataTransferItem(item: DataTransferItem): Blob;
|
|
1
|
+
export declare function createDataTransfer(window: Window & typeof globalThis, files?: File[]): DataTransfer;
|
|
2
|
+
export declare function getBlobFromDataTransferItem(window: Window & typeof globalThis, item: DataTransferItem): Blob;
|
|
@@ -25,6 +25,7 @@ export * from './misc/cloneEvent';
|
|
|
25
25
|
export * from './misc/eventWrapper';
|
|
26
26
|
export * from './misc/findClosest';
|
|
27
27
|
export * from './misc/getDocumentFromNode';
|
|
28
|
+
export * from './misc/getWindow';
|
|
28
29
|
export * from './misc/isDescendantOrSelf';
|
|
29
30
|
export * from './misc/isElementType';
|
|
30
31
|
export * from './misc/isVisible';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getWindow(node: Node): Window & typeof globalThis;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testing-library/user-event",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.2",
|
|
4
4
|
"description": "Fire events the same way the user does",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-testing-library",
|
|
@@ -44,11 +44,10 @@
|
|
|
44
44
|
"validate": "kcd-scripts validate",
|
|
45
45
|
"typecheck": "kcd-scripts typecheck"
|
|
46
46
|
},
|
|
47
|
-
"dependencies": {},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"@testing-library/dom": "^8.11.4",
|
|
50
49
|
"@testing-library/jest-dom": "^5.16.3",
|
|
51
|
-
"@testing-library/react": "^
|
|
50
|
+
"@testing-library/react": "^13.0.0",
|
|
52
51
|
"@types/jest-in-case": "^1.0.3",
|
|
53
52
|
"@types/react": "^17.0.42",
|
|
54
53
|
"esbuild": "^0.14.27",
|
|
@@ -57,8 +56,12 @@
|
|
|
57
56
|
"jest-in-case": "^1.0.2",
|
|
58
57
|
"jest-serializer-ansi": "^1.0.3",
|
|
59
58
|
"kcd-scripts": "^12.1.0",
|
|
60
|
-
"react": "^
|
|
61
|
-
"react-dom": "^
|
|
59
|
+
"react": "^18.0.0",
|
|
60
|
+
"react-dom": "^18.0.0",
|
|
61
|
+
"react17": "npm:react@^17.0.2",
|
|
62
|
+
"reactDom17": "npm:react-dom@^17.0.2",
|
|
63
|
+
"reactIs17": "npm:react-is@^17.0.2",
|
|
64
|
+
"reactTesting17": "npm:@testing-library/react@^12.1.3",
|
|
62
65
|
"typescript": "^4.1.2"
|
|
63
66
|
},
|
|
64
67
|
"peerDependencies": {
|