jodit-pro-react 5.5.65 → 5.5.66
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.7";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -12165,6 +12165,7 @@ var Dialog = Dialog_1 = class Dialog2 extends ViewWithToolbar {
|
|
|
12165
12165
|
this.isOpened = false;
|
|
12166
12166
|
const self2 = this;
|
|
12167
12167
|
self2.options = ConfigProto(options2, ConfigProto(Config.prototype.dialog, Dialog_1.defaultOptions));
|
|
12168
|
+
self2.attachEvents(self2.options);
|
|
12168
12169
|
Dom.safeRemove(self2.container);
|
|
12169
12170
|
const n57 = this.getFullElName.bind(this);
|
|
12170
12171
|
self2.container = this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">
|
|
@@ -45484,11 +45485,11 @@ init_dom();
|
|
|
45484
45485
|
init_plugin2();
|
|
45485
45486
|
var _8 = Object.defineProperty;
|
|
45486
45487
|
var c24 = (r59, t48) => _8(r59, "name", { value: t48, configurable: true });
|
|
45487
|
-
var d26 = function(r59, t48,
|
|
45488
|
-
var s50 = arguments.length, i54 = s50 < 3 ? t48 :
|
|
45489
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i54 = Reflect.decorate(r59, t48,
|
|
45490
|
-
else for (var a77 = r59.length - 1; a77 >= 0; a77--) (l57 = r59[a77]) && (i54 = (s50 < 3 ? l57(i54) : s50 > 3 ? l57(t48,
|
|
45491
|
-
return s50 > 3 && i54 && Object.defineProperty(t48,
|
|
45488
|
+
var d26 = function(r59, t48, e42, o57) {
|
|
45489
|
+
var s50 = arguments.length, i54 = s50 < 3 ? t48 : o57 === null ? o57 = Object.getOwnPropertyDescriptor(t48, e42) : o57, l57;
|
|
45490
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i54 = Reflect.decorate(r59, t48, e42, o57);
|
|
45491
|
+
else for (var a77 = r59.length - 1; a77 >= 0; a77--) (l57 = r59[a77]) && (i54 = (s50 < 3 ? l57(i54) : s50 > 3 ? l57(t48, e42, i54) : l57(t48, e42)) || i54);
|
|
45492
|
+
return s50 > 3 && i54 && Object.defineProperty(t48, e42, i54), i54;
|
|
45492
45493
|
};
|
|
45493
45494
|
var u31 = class u32 extends Plugin {
|
|
45494
45495
|
constructor() {
|
|
@@ -45496,23 +45497,23 @@ var u31 = class u32 extends Plugin {
|
|
|
45496
45497
|
}
|
|
45497
45498
|
afterInit(t48) {
|
|
45498
45499
|
t48.e.on("toggleButtonGenerator", this.toggleButtonGenerator).on("isButtonGeneratorOpened", () => {
|
|
45499
|
-
var
|
|
45500
|
-
return (
|
|
45500
|
+
var e42;
|
|
45501
|
+
return (e42 = this.__dialog) === null || e42 === void 0 ? void 0 : e42.isOpened;
|
|
45501
45502
|
});
|
|
45502
45503
|
}
|
|
45503
45504
|
toggleButtonGenerator(t48) {
|
|
45504
|
-
this.__dialog || (this.__dialog = new Dialog({ language: this.j.o.language, theme: this.j.o.theme, shadowRoot: this.j.o.shadowRoot }), this.__ui = new d25(this.__dialog), this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730, 700)), t48 && !Dom.isTag(t48, /* @__PURE__ */ new Set(["button", "a"])) && (t48 = void 0);
|
|
45505
|
-
const
|
|
45506
|
-
|
|
45507
|
-
t48 || (t48 = this.j.createInside.element(
|
|
45505
|
+
this.__dialog || (this.__dialog = new Dialog({ language: this.j.o.language, theme: this.j.o.theme, shadowRoot: this.j.o.shadowRoot, events: this.j.o.events }), this.__ui = new d25(this.__dialog), this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730, 700)), t48 && !Dom.isTag(t48, /* @__PURE__ */ new Set(["button", "a"])) && (t48 = void 0);
|
|
45506
|
+
const e42 = this.__ui, o57 = this.__dialog;
|
|
45507
|
+
o57.isOpened ? o57.close() : (t48 && p30.extractStyle(e42.state, t48), e42.target = t48, e42.update(), o57.setFooter([Button(o57, "cancel", "Cancel", "default").onAction(() => o57.close()), Button(o57, "ok", t48 ? "Update" : "Insert", "primary").onAction(() => {
|
|
45508
|
+
t48 || (t48 = this.j.createInside.element(e42.state.href ? "a" : "button"), this.j.s.insertNode(t48, true, false)), p30.applyStyle(e42.state, t48), t48.className = e42.state.className || "", this.jodit.e.fire("synchro"), o57.close();
|
|
45508
45509
|
})]).open());
|
|
45509
45510
|
}
|
|
45510
45511
|
onDblClick(t48) {
|
|
45511
45512
|
Dom.isTag(t48.target, "button") && this.toggleButtonGenerator(t48.target);
|
|
45512
45513
|
}
|
|
45513
45514
|
beforeDestruct(t48) {
|
|
45514
|
-
var
|
|
45515
|
-
(
|
|
45515
|
+
var e42;
|
|
45516
|
+
(e42 = this.__dialog) === null || e42 === void 0 || e42.destruct();
|
|
45516
45517
|
}
|
|
45517
45518
|
};
|
|
45518
45519
|
c24(u31, "buttonGenerator");
|