jodit-pro-react 5.4.21 → 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-grow: 1;
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;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JoditEditor_default
3
- } from "./chunk-H2MDDBMV.mjs";
3
+ } from "./chunk-ILODSYDG.mjs";
4
4
  export {
5
5
  JoditEditor_default as default
6
6
  };
@@ -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.6";
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);
@@ -47117,6 +47125,8 @@ Config.prototype.customStyles = { definitions: [] }, Config.prototype.controls.s
47117
47125
  if (!o48.length) return;
47118
47126
  const n48 = d42(t42, o48), i48 = ((s50 = e40.control) === null || s50 === void 0 ? void 0 : s50.component) === "select";
47119
47127
  (t42.o.textIcons || i48) && (n48 ? e40.state.text = n48.name : e40.state.text = i48 ? t42.i18n("Styles") : "");
47128
+ }, exec() {
47129
+ return false;
47120
47130
  }, popup(t42, e40, s50) {
47121
47131
  const o48 = t42.o.customStyles.definitions;
47122
47132
  if (!o48.length) return false;
@@ -9372,7 +9372,8 @@ svg.jodit-icon {
9372
9372
  align-items: center;
9373
9373
  background: #fff;
9374
9374
  display: flex;
9375
- flex-grow: 1;
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;
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-H2MDDBMV.mjs";
5
+ } from "./chunk-ILODSYDG.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;