jodit-pro-react 5.4.20 → 5.4.22
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.
|
@@ -9372,7 +9372,8 @@ svg.jodit-icon {
|
|
|
9372
9372
|
align-items: center;
|
|
9373
9373
|
background: #fff;
|
|
9374
9374
|
display: flex;
|
|
9375
|
-
flex
|
|
9375
|
+
flex: 1 1 0;
|
|
9376
|
+
min-height: 0;
|
|
9376
9377
|
overflow: hidden;
|
|
9377
9378
|
padding: 6px 8px;
|
|
9378
9379
|
pointer-events: none;
|
|
@@ -9385,6 +9386,7 @@ svg.jodit-icon {
|
|
|
9385
9386
|
}
|
|
9386
9387
|
.jodit-style-popup__card-label {
|
|
9387
9388
|
background: #f0f0f0;
|
|
9389
|
+
flex-shrink: 0;
|
|
9388
9390
|
font-size: 11px;
|
|
9389
9391
|
line-height: 20px;
|
|
9390
9392
|
overflow: hidden;
|
|
@@ -182,7 +182,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
|
|
|
182
182
|
var init_constants = __esm({
|
|
183
183
|
"node_modules/jodit/esm/core/constants.js"() {
|
|
184
184
|
"use strict";
|
|
185
|
-
APP_VERSION = "4.9.
|
|
185
|
+
APP_VERSION = "4.9.8";
|
|
186
186
|
ES = "es2020";
|
|
187
187
|
IS_ES_MODERN = true;
|
|
188
188
|
IS_ES_NEXT = true;
|
|
@@ -7866,6 +7866,7 @@ var UIButton = class UIButton2 extends UIElement {
|
|
|
7866
7866
|
}
|
|
7867
7867
|
onChangeText() {
|
|
7868
7868
|
this.text.textContent = this.jodit.i18n(this.state.text);
|
|
7869
|
+
this.__updateAriaLabel();
|
|
7869
7870
|
}
|
|
7870
7871
|
onChangeTextSetMode() {
|
|
7871
7872
|
this.setMod("text-icons", Boolean(this.state.text.trim().length));
|
|
@@ -7888,6 +7889,13 @@ var UIButton = class UIButton2 extends UIElement {
|
|
|
7888
7889
|
attr(this.container, "title", i8nTooltip);
|
|
7889
7890
|
}
|
|
7890
7891
|
attr(this.container, "aria-label", i8nTooltip);
|
|
7892
|
+
this.__updateAriaLabel();
|
|
7893
|
+
}
|
|
7894
|
+
__updateAriaLabel() {
|
|
7895
|
+
const hasText = this.state.text.trim().length > 0;
|
|
7896
|
+
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
7897
|
+
attr(this.container, "aria-label", i8nTooltip);
|
|
7898
|
+
attr(this.button, "aria-label", !hasText ? i8nTooltip : null);
|
|
7891
7899
|
}
|
|
7892
7900
|
onChangeTabIndex() {
|
|
7893
7901
|
attr(this.container, "tabindex", this.state.tabIndex);
|
|
@@ -47112,20 +47120,23 @@ Config.prototype.customStyles = { definitions: [] }, Config.prototype.controls.s
|
|
|
47112
47120
|
const e40 = t42.o.customStyles.definitions;
|
|
47113
47121
|
return e40.length ? d42(t42, e40) != null : false;
|
|
47114
47122
|
}, update(t42, e40) {
|
|
47123
|
+
var s50;
|
|
47115
47124
|
const o48 = t42.o.customStyles.definitions;
|
|
47116
47125
|
if (!o48.length) return;
|
|
47117
|
-
const
|
|
47118
|
-
t42.o.textIcons && (
|
|
47119
|
-
},
|
|
47120
|
-
|
|
47121
|
-
|
|
47126
|
+
const n48 = d42(t42, o48), i48 = ((s50 = e40.control) === null || s50 === void 0 ? void 0 : s50.component) === "select";
|
|
47127
|
+
(t42.o.textIcons || i48) && (n48 ? e40.state.text = n48.name : e40.state.text = i48 ? t42.i18n("Styles") : "");
|
|
47128
|
+
}, exec() {
|
|
47129
|
+
return false;
|
|
47130
|
+
}, popup(t42, e40, s50) {
|
|
47131
|
+
const o48 = t42.o.customStyles.definitions;
|
|
47132
|
+
if (!o48.length) return false;
|
|
47122
47133
|
t42.s.current() || t42.s.focus(), t42.s.save();
|
|
47123
|
-
const
|
|
47124
|
-
t42.s.restore(),
|
|
47134
|
+
const n48 = w10(t42, o48, () => {
|
|
47135
|
+
t42.s.restore(), s50();
|
|
47125
47136
|
});
|
|
47126
47137
|
return t42.e.one("beforePopupClose", () => {
|
|
47127
47138
|
t42.s.restore();
|
|
47128
|
-
}),
|
|
47139
|
+
}), n48;
|
|
47129
47140
|
} };
|
|
47130
47141
|
|
|
47131
47142
|
// node_modules/jodit-pro/esm/plugins/style/style.js
|
package/build/esm/index.css
CHANGED
|
@@ -9372,7 +9372,8 @@ svg.jodit-icon {
|
|
|
9372
9372
|
align-items: center;
|
|
9373
9373
|
background: #fff;
|
|
9374
9374
|
display: flex;
|
|
9375
|
-
flex
|
|
9375
|
+
flex: 1 1 0;
|
|
9376
|
+
min-height: 0;
|
|
9376
9377
|
overflow: hidden;
|
|
9377
9378
|
padding: 6px 8px;
|
|
9378
9379
|
pointer-events: none;
|
|
@@ -9385,6 +9386,7 @@ svg.jodit-icon {
|
|
|
9385
9386
|
}
|
|
9386
9387
|
.jodit-style-popup__card-label {
|
|
9387
9388
|
background: #f0f0f0;
|
|
9389
|
+
flex-shrink: 0;
|
|
9388
9390
|
font-size: 11px;
|
|
9389
9391
|
line-height: 20px;
|
|
9390
9392
|
overflow: hidden;
|