jodit-pro-react 5.4.20 → 5.4.21

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-XCHRHDRX.mjs";
3
+ } from "./chunk-H2MDDBMV.mjs";
4
4
  export {
5
5
  JoditEditor_default as default
6
6
  };
@@ -47112,20 +47112,21 @@ Config.prototype.customStyles = { definitions: [] }, Config.prototype.controls.s
47112
47112
  const e40 = t42.o.customStyles.definitions;
47113
47113
  return e40.length ? d42(t42, e40) != null : false;
47114
47114
  }, update(t42, e40) {
47115
+ var s50;
47115
47116
  const o48 = t42.o.customStyles.definitions;
47116
47117
  if (!o48.length) return;
47117
- const s50 = d42(t42, o48);
47118
- t42.o.textIcons && (s50 ? e40.state.text = s50.name : e40.state.text = "");
47119
- }, popup(t42, e40, o48) {
47120
- const s50 = t42.o.customStyles.definitions;
47121
- if (!s50.length) return false;
47118
+ const n48 = d42(t42, o48), i48 = ((s50 = e40.control) === null || s50 === void 0 ? void 0 : s50.component) === "select";
47119
+ (t42.o.textIcons || i48) && (n48 ? e40.state.text = n48.name : e40.state.text = i48 ? t42.i18n("Styles") : "");
47120
+ }, popup(t42, e40, s50) {
47121
+ const o48 = t42.o.customStyles.definitions;
47122
+ if (!o48.length) return false;
47122
47123
  t42.s.current() || t42.s.focus(), t42.s.save();
47123
- const l42 = w10(t42, s50, () => {
47124
- t42.s.restore(), o48();
47124
+ const n48 = w10(t42, o48, () => {
47125
+ t42.s.restore(), s50();
47125
47126
  });
47126
47127
  return t42.e.one("beforePopupClose", () => {
47127
47128
  t42.s.restore();
47128
- }), l42;
47129
+ }), n48;
47129
47130
  } };
47130
47131
 
47131
47132
  // node_modules/jodit-pro/esm/plugins/style/style.js
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-XCHRHDRX.mjs";
5
+ } from "./chunk-H2MDDBMV.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;