jodit-pro-react 5.5.80 → 5.5.82
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.21";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -4320,7 +4320,7 @@ function scrollIntoViewIfNeeded(elm, root, doc) {
|
|
|
4320
4320
|
root.scrollTop = root.scrollTop < alignBottom ? alignBottom : elm.offsetTop;
|
|
4321
4321
|
}
|
|
4322
4322
|
if (!inView(elm, root, doc)) {
|
|
4323
|
-
elm.scrollIntoView();
|
|
4323
|
+
elm.scrollIntoView({ block: "nearest" });
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
4326
4326
|
}
|
|
@@ -28587,10 +28587,20 @@ var UISearch = class UISearch2 extends UIElement {
|
|
|
28587
28587
|
this.replaceButton = replaceBtn;
|
|
28588
28588
|
this.currentBox = current;
|
|
28589
28589
|
this.countBox = count;
|
|
28590
|
+
const closeAction = () => this.close();
|
|
28591
|
+
const replaceAction = () => void jodit.e.fire(this, "pressReplaceButton");
|
|
28592
|
+
const nextAction = () => void jodit.e.fire("searchNext");
|
|
28593
|
+
const prevAction = () => void jodit.e.fire("searchPrevious");
|
|
28594
|
+
const onKeyboardActivate = (action) => (e42) => {
|
|
28595
|
+
if (!e42.detail) {
|
|
28596
|
+
e42.preventDefault();
|
|
28597
|
+
action();
|
|
28598
|
+
}
|
|
28599
|
+
};
|
|
28590
28600
|
jodit.e.on(this.closeButton, "pointerdown", () => {
|
|
28591
|
-
|
|
28601
|
+
closeAction();
|
|
28592
28602
|
return false;
|
|
28593
|
-
}).on(this.queryInput, "input", () => {
|
|
28603
|
+
}).on(this.closeButton, "click", onKeyboardActivate(closeAction)).on(this.queryInput, "input", () => {
|
|
28594
28604
|
this.currentIndex = 0;
|
|
28595
28605
|
}).on(this.queryInput, "pointerdown", () => {
|
|
28596
28606
|
if (jodit.s.isFocused()) {
|
|
@@ -28598,15 +28608,15 @@ var UISearch = class UISearch2 extends UIElement {
|
|
|
28598
28608
|
this.selInfo = jodit.s.save();
|
|
28599
28609
|
}
|
|
28600
28610
|
}).on(this.replaceButton, "pointerdown", () => {
|
|
28601
|
-
|
|
28611
|
+
replaceAction();
|
|
28602
28612
|
return false;
|
|
28603
|
-
}).on(next, "pointerdown", () => {
|
|
28604
|
-
|
|
28613
|
+
}).on(this.replaceButton, "click", onKeyboardActivate(replaceAction)).on(next, "pointerdown", () => {
|
|
28614
|
+
nextAction();
|
|
28605
28615
|
return false;
|
|
28606
|
-
}).on(prev, "pointerdown", () => {
|
|
28607
|
-
|
|
28616
|
+
}).on(next, "click", onKeyboardActivate(nextAction)).on(prev, "pointerdown", () => {
|
|
28617
|
+
prevAction();
|
|
28608
28618
|
return false;
|
|
28609
|
-
}).on(this.queryInput, "input", () => {
|
|
28619
|
+
}).on(prev, "click", onKeyboardActivate(prevAction)).on(this.queryInput, "input", () => {
|
|
28610
28620
|
this.setMod("empty-query", !trim(this.queryInput.value).length);
|
|
28611
28621
|
}).on(this.queryInput, "keydown", (() => {
|
|
28612
28622
|
const debounced = this.j.async.debounce((e42) => __async(this, null, function* () {
|