@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.
@@ -46504,7 +46504,7 @@ System.register(["tslib", "@web-atoms/core/dist/style/styled", "@web-atoms/core/
46504
46504
  currentTarget.removeAttribute("data-drop-enabled");
46505
46505
  const uploadEvent = currentTarget.getAttribute("data-upload-event");
46506
46506
  const extra = currentTarget.getAttribute("data-extra");
46507
- const fileHandlesPromises = [...e.dataTransfer.items].filter(item => item.kind === "file").map(item => supportsFileSystemAccessAPI ? item.getAsFileSystemHandle() : supportsWebkitGetAsEntry ? item.webkitGetAsEntry() : item.getAsFile());
46507
+ 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());
46508
46508
  const files = [];
46509
46509
  const getFiles = (dir, parent = dir.name) => __awaiter(void 0, void 0, void 0, function* () {
46510
46510
  var _a, e_1, _b, _c;
@@ -46554,7 +46554,7 @@ System.register(["tslib", "@web-atoms/core/dist/style/styled", "@web-atoms/core/
46554
46554
  if (handle.kind === "directory" || handle.isDirectory) {
46555
46555
  files.push(...(yield getFiles(handle)));
46556
46556
  } else {
46557
- files.push(yield handle.getFile());
46557
+ files.push(handle.getFile ? yield handle.getFile() : handle);
46558
46558
  }
46559
46559
  } finally {
46560
46560
  _k = true;