@social-mail/social-mail-client 1.2.329 → 1.2.331

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.
@@ -32478,7 +32478,7 @@ System.register(["tslib", "@web-atoms/core/dist/style/styled", "@web-atoms/core/
32478
32478
  currentTarget.removeAttribute("data-drop-enabled");
32479
32479
  const uploadEvent = currentTarget.getAttribute("data-upload-event");
32480
32480
  const extra = currentTarget.getAttribute("data-extra");
32481
- const fileHandlesPromises = [...e.dataTransfer.items].filter(item => item.kind === "file").map(item => supportsFileSystemAccessAPI ? item.getAsFileSystemHandle() : supportsWebkitGetAsEntry ? item.webkitGetAsEntry() : item.getAsFile());
32481
+ const fileHandlesPromises = [...e.dataTransfer.items].filter(item => item.kind === "file").map(item => supportsFileSystemAccessAPI ? item.getAsFileSystemHandle().then(f => f !== null && f !== void 0 ? f : item.getAsFile()) : supportsWebkitGetAsEntry ? item.webkitGetAsEntry() : item.getAsFile());
32482
32482
  const files = [];
32483
32483
  const getFiles = (dir, parent = dir.name) => __awaiter(void 0, void 0, void 0, function* () {
32484
32484
  var _a, e_1, _b, _c;
@@ -32528,7 +32528,7 @@ System.register(["tslib", "@web-atoms/core/dist/style/styled", "@web-atoms/core/
32528
32528
  if (handle.kind === "directory" || handle.isDirectory) {
32529
32529
  files.push(...(yield getFiles(handle)));
32530
32530
  } else {
32531
- files.push(yield handle.getFile());
32531
+ files.push(handle.getFile ? yield handle.getFile() : handle);
32532
32532
  }
32533
32533
  } finally {
32534
32534
  _k = true;