jodit-pro-react 5.5.77 → 5.5.79
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.
|
@@ -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.
|
|
196
|
+
APP_VERSION = "4.13.18";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -4303,7 +4303,7 @@ function inView(elm, root, doc) {
|
|
|
4303
4303
|
while (el && el !== root && el.parentNode) {
|
|
4304
4304
|
el = el.parentNode;
|
|
4305
4305
|
rect = el.getBoundingClientRect();
|
|
4306
|
-
if (top + height > rect.bottom && top > rect.top) {
|
|
4306
|
+
if (top + height > rect.bottom + SUBPIXEL_TOLERANCE && top > rect.top) {
|
|
4307
4307
|
return false;
|
|
4308
4308
|
}
|
|
4309
4309
|
if (top + height <= rect.top) {
|
|
@@ -4311,7 +4311,7 @@ function inView(elm, root, doc) {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
}
|
|
4313
4313
|
const clientHeight = doc.documentElement && doc.documentElement.clientHeight || 0;
|
|
4314
|
-
return (top + height <= clientHeight || top <= 0) && top + height >= 0;
|
|
4314
|
+
return (top + height <= clientHeight + SUBPIXEL_TOLERANCE || top <= 0) && top + height >= 0;
|
|
4315
4315
|
}
|
|
4316
4316
|
function scrollIntoViewIfNeeded(elm, root, doc) {
|
|
4317
4317
|
if (Dom.isHTMLElement(elm) && !inView(elm, root, doc)) {
|
|
@@ -4324,10 +4324,12 @@ function scrollIntoViewIfNeeded(elm, root, doc) {
|
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
4326
4326
|
}
|
|
4327
|
+
var SUBPIXEL_TOLERANCE;
|
|
4327
4328
|
var init_scroll_into_view = __esm({
|
|
4328
4329
|
"node_modules/jodit/esm/core/helpers/utils/scroll-into-view.js"() {
|
|
4329
4330
|
"use strict";
|
|
4330
4331
|
init_dom();
|
|
4332
|
+
SUBPIXEL_TOLERANCE = 1;
|
|
4331
4333
|
}
|
|
4332
4334
|
});
|
|
4333
4335
|
|
|
@@ -16784,6 +16786,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process2) {
|
|
|
16784
16786
|
return Promise.all(promises);
|
|
16785
16787
|
}
|
|
16786
16788
|
function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
|
|
16789
|
+
const readerPromises = [];
|
|
16787
16790
|
let file2, i54;
|
|
16788
16791
|
for (i54 = 0; i54 < fileList.length; i54 += 1) {
|
|
16789
16792
|
file2 = fileList[i54];
|
|
@@ -16794,7 +16797,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
16794
16797
|
continue;
|
|
16795
16798
|
}
|
|
16796
16799
|
const reader = new FileReader();
|
|
16797
|
-
|
|
16800
|
+
const readerPromise = uploader.j.async.promise((resolve, reject) => {
|
|
16798
16801
|
reader.onerror = reject;
|
|
16799
16802
|
reader.onloadend = () => {
|
|
16800
16803
|
const resp = {
|
|
@@ -16807,10 +16810,18 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
16807
16810
|
resolve(resp);
|
|
16808
16811
|
};
|
|
16809
16812
|
reader.readAsDataURL(file2);
|
|
16810
|
-
})
|
|
16813
|
+
});
|
|
16814
|
+
readerPromises.push(readerPromise);
|
|
16815
|
+
promises.push(readerPromise);
|
|
16811
16816
|
fileList[i54] = null;
|
|
16812
16817
|
}
|
|
16813
16818
|
}
|
|
16819
|
+
if (readerPromises.length) {
|
|
16820
|
+
Promise.all(readerPromises).then(() => {
|
|
16821
|
+
uploader.j.events && uploader.j.e.fire("filesWereUploaded");
|
|
16822
|
+
}).catch(() => {
|
|
16823
|
+
});
|
|
16824
|
+
}
|
|
16814
16825
|
}
|
|
16815
16826
|
|
|
16816
16827
|
// node_modules/jodit/esm/modules/uploader/helpers/process-old-browser-drag.js
|