jodit-pro-react 5.5.65 → 5.5.67

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-YGPPQT4E.mjs";
3
+ } from "./chunk-WGMHQM6B.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.6";
196
+ APP_VERSION = "4.13.8";
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, o57, e42) {
45488
- var s50 = arguments.length, i54 = s50 < 3 ? t48 : e42 === null ? e42 = Object.getOwnPropertyDescriptor(t48, o57) : e42, l57;
45489
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i54 = Reflect.decorate(r59, t48, o57, e42);
45490
- else for (var a77 = r59.length - 1; a77 >= 0; a77--) (l57 = r59[a77]) && (i54 = (s50 < 3 ? l57(i54) : s50 > 3 ? l57(t48, o57, i54) : l57(t48, o57)) || i54);
45491
- return s50 > 3 && i54 && Object.defineProperty(t48, o57, i54), i54;
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 o57;
45500
- return (o57 = this.__dialog) === null || o57 === void 0 ? void 0 : o57.isOpened;
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 o57 = this.__ui, e42 = this.__dialog;
45506
- e42.isOpened ? e42.close() : (t48 && p30.extractStyle(o57.state, t48), o57.target = t48, o57.update(), e42.setFooter([Button(e42, "cancel", "Cancel", "default").onAction(() => e42.close()), Button(e42, "ok", t48 ? "Update" : "Insert", "primary").onAction(() => {
45507
- t48 || (t48 = this.j.createInside.element(o57.state.href ? "a" : "button"), this.j.s.insertNode(t48, true, false)), p30.applyStyle(o57.state, t48), t48.className = o57.state.className || "", this.jodit.e.fire("synchro"), e42.close();
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 o57;
45515
- (o57 = this.__dialog) === null || o57 === void 0 || o57.destruct();
45515
+ var e42;
45516
+ (e42 = this.__dialog) === null || e42 === void 0 || e42.destruct();
45516
45517
  }
45517
45518
  };
45518
45519
  c24(u31, "buttonGenerator");
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-YGPPQT4E.mjs";
5
+ } from "./chunk-WGMHQM6B.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;