jodit-pro-react 5.5.78 → 5.5.79

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-KZHDMEIW.mjs";
3
+ } from "./chunk-YX2ZXXFN.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.17";
196
+ APP_VERSION = "4.13.18";
197
197
  ES = "es2020";
198
198
  IS_ES_MODERN = true;
199
199
  IS_ES_NEXT = true;
@@ -4303,7 +4303,7 @@ function inView(elm, root, doc) {
4303
4303
  while (el && el !== root && el.parentNode) {
4304
4304
  el = el.parentNode;
4305
4305
  rect = el.getBoundingClientRect();
4306
- if (top + height > rect.bottom && top > rect.top) {
4306
+ if (top + height > rect.bottom + SUBPIXEL_TOLERANCE && top > rect.top) {
4307
4307
  return false;
4308
4308
  }
4309
4309
  if (top + height <= rect.top) {
@@ -4311,7 +4311,7 @@ function inView(elm, root, doc) {
4311
4311
  }
4312
4312
  }
4313
4313
  const clientHeight = doc.documentElement && doc.documentElement.clientHeight || 0;
4314
- return (top + height <= clientHeight || top <= 0) && top + height >= 0;
4314
+ return (top + height <= clientHeight + SUBPIXEL_TOLERANCE || top <= 0) && top + height >= 0;
4315
4315
  }
4316
4316
  function scrollIntoViewIfNeeded(elm, root, doc) {
4317
4317
  if (Dom.isHTMLElement(elm) && !inView(elm, root, doc)) {
@@ -4324,10 +4324,12 @@ function scrollIntoViewIfNeeded(elm, root, doc) {
4324
4324
  }
4325
4325
  }
4326
4326
  }
4327
+ var SUBPIXEL_TOLERANCE;
4327
4328
  var init_scroll_into_view = __esm({
4328
4329
  "node_modules/jodit/esm/core/helpers/utils/scroll-into-view.js"() {
4329
4330
  "use strict";
4330
4331
  init_dom();
4332
+ SUBPIXEL_TOLERANCE = 1;
4331
4333
  }
4332
4334
  });
4333
4335
 
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-KZHDMEIW.mjs";
5
+ } from "./chunk-YX2ZXXFN.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;