jodit-pro-react 5.5.77 → 5.5.78

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JoditEditor_default
3
- } from "./chunk-66ZF3QZL.mjs";
3
+ } from "./chunk-KZHDMEIW.mjs";
4
4
  export {
5
5
  JoditEditor_default as default
6
6
  };
@@ -193,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
193
193
  var init_constants = __esm({
194
194
  "node_modules/jodit/esm/core/constants.js"() {
195
195
  "use strict";
196
- APP_VERSION = "4.13.16";
196
+ APP_VERSION = "4.13.17";
197
197
  ES = "es2020";
198
198
  IS_ES_MODERN = true;
199
199
  IS_ES_NEXT = true;
@@ -16784,6 +16784,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process2) {
16784
16784
  return Promise.all(promises);
16785
16785
  }
16786
16786
  function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
16787
+ const readerPromises = [];
16787
16788
  let file2, i54;
16788
16789
  for (i54 = 0; i54 < fileList.length; i54 += 1) {
16789
16790
  file2 = fileList[i54];
@@ -16794,7 +16795,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
16794
16795
  continue;
16795
16796
  }
16796
16797
  const reader = new FileReader();
16797
- promises.push(uploader.j.async.promise((resolve, reject) => {
16798
+ const readerPromise = uploader.j.async.promise((resolve, reject) => {
16798
16799
  reader.onerror = reject;
16799
16800
  reader.onloadend = () => {
16800
16801
  const resp = {
@@ -16807,10 +16808,18 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
16807
16808
  resolve(resp);
16808
16809
  };
16809
16810
  reader.readAsDataURL(file2);
16810
- }));
16811
+ });
16812
+ readerPromises.push(readerPromise);
16813
+ promises.push(readerPromise);
16811
16814
  fileList[i54] = null;
16812
16815
  }
16813
16816
  }
16817
+ if (readerPromises.length) {
16818
+ Promise.all(readerPromises).then(() => {
16819
+ uploader.j.events && uploader.j.e.fire("filesWereUploaded");
16820
+ }).catch(() => {
16821
+ });
16822
+ }
16814
16823
  }
16815
16824
 
16816
16825
  // node_modules/jodit/esm/modules/uploader/helpers/process-old-browser-drag.js
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-66ZF3QZL.mjs";
5
+ } from "./chunk-KZHDMEIW.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;