@testing-library/user-event 14.0.0-alpha.17 → 14.0.0-alpha.18
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/utility/upload.js +1 -3
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +13 -0
- package/package.json +1 -1
package/dist/utility/upload.js
CHANGED
|
@@ -11,8 +11,6 @@ var _utils = require("../utils");
|
|
|
11
11
|
|
|
12
12
|
var _setup = require("../setup");
|
|
13
13
|
|
|
14
|
-
var _setFiles = require("#src/utils/edit/setFiles");
|
|
15
|
-
|
|
16
14
|
async function upload(element, fileOrFiles) {
|
|
17
15
|
var _input$files;
|
|
18
16
|
|
|
@@ -40,7 +38,7 @@ async function upload(element, fileOrFiles) {
|
|
|
40
38
|
return;
|
|
41
39
|
}
|
|
42
40
|
|
|
43
|
-
(0,
|
|
41
|
+
(0, _utils.setFiles)(input, (0, _utils.createFileList)(files));
|
|
44
42
|
|
|
45
43
|
_dom.fireEvent.input(input);
|
|
46
44
|
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './edit/isValidDateValue';
|
|
|
13
13
|
export * from './edit/isValidInputTimeValue';
|
|
14
14
|
export * from './edit/maxLength';
|
|
15
15
|
export * from './edit/prepareInput';
|
|
16
|
+
export * from './edit/setFiles';
|
|
16
17
|
export * from './focus/blur';
|
|
17
18
|
export * from './focus/copySelection';
|
|
18
19
|
export * from './focus/focus';
|
package/dist/utils/index.js
CHANGED
|
@@ -199,6 +199,19 @@ Object.keys(_prepareInput).forEach(function (key) {
|
|
|
199
199
|
});
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
+
var _setFiles = require("./edit/setFiles");
|
|
203
|
+
|
|
204
|
+
Object.keys(_setFiles).forEach(function (key) {
|
|
205
|
+
if (key === "default" || key === "__esModule") return;
|
|
206
|
+
if (key in exports && exports[key] === _setFiles[key]) return;
|
|
207
|
+
Object.defineProperty(exports, key, {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function () {
|
|
210
|
+
return _setFiles[key];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
|
|
202
215
|
var _blur = require("./focus/blur");
|
|
203
216
|
|
|
204
217
|
Object.keys(_blur).forEach(function (key) {
|