jodit 4.6.11 → 4.6.12

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +7 -128
  5. package/es2015/jodit.min.js +2 -2
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.css +1 -1
  13. package/es2018/jodit.fat.min.js +2 -2
  14. package/es2018/jodit.js +7 -128
  15. package/es2018/jodit.min.js +2 -2
  16. package/es2018/plugins/debug/debug.css +1 -1
  17. package/es2018/plugins/debug/debug.js +1 -1
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  22. package/es2021/jodit.css +1 -1
  23. package/es2021/jodit.fat.min.js +2 -2
  24. package/es2021/jodit.js +7 -128
  25. package/es2021/jodit.min.js +2 -2
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +1 -1
  33. package/es2021.en/jodit.fat.min.js +2 -2
  34. package/es2021.en/jodit.js +7 -128
  35. package/es2021.en/jodit.min.js +2 -2
  36. package/es2021.en/plugins/debug/debug.css +1 -1
  37. package/es2021.en/plugins/debug/debug.js +1 -1
  38. package/es2021.en/plugins/debug/debug.min.js +1 -1
  39. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  40. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  42. package/es5/415.fat.min.js +1 -1
  43. package/es5/415.min.js +1 -1
  44. package/es5/5.fat.min.js +1 -1
  45. package/es5/5.min.js +1 -1
  46. package/es5/jodit.css +2 -2
  47. package/es5/jodit.fat.min.js +2 -2
  48. package/es5/jodit.js +7 -128
  49. package/es5/jodit.min.css +2 -2
  50. package/es5/jodit.min.js +2 -2
  51. package/es5/plugins/debug/debug.css +1 -1
  52. package/es5/plugins/debug/debug.js +1 -1
  53. package/es5/plugins/debug/debug.min.js +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  57. package/esm/core/constants.js +1 -1
  58. package/esm/core/helpers/array/index.d.ts +0 -1
  59. package/esm/core/helpers/array/index.js +0 -1
  60. package/package.json +1 -1
  61. package/types/core/helpers/array/index.d.ts +0 -1
  62. package/esm/core/helpers/array/reconcile-arrays.d.ts +0 -54
  63. package/esm/core/helpers/array/reconcile-arrays.js +0 -103
  64. package/types/core/helpers/array/reconcile-arrays.d.ts +0 -54
package/es2021/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.6.11
4
+ * Version: v4.6.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -8348,7 +8348,7 @@ __webpack_require__.r(__webpack_exports__);
8348
8348
  * Released under MIT see LICENSE.txt in the project root for license information.
8349
8349
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
8350
8350
  */
8351
- const APP_VERSION = "4.6.11";
8351
+ const APP_VERSION = "4.6.12";
8352
8352
  // prettier-ignore
8353
8353
  const ES = "es2021";
8354
8354
  const IS_ES_MODERN = true;
@@ -13954,16 +13954,13 @@ function observable(obj) {
13954
13954
 
13955
13955
  "use strict";
13956
13956
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13957
- /* harmony export */ $r: function() { return /* reexport safe */ _to_array__WEBPACK_IMPORTED_MODULE_3__.$; },
13957
+ /* harmony export */ $r: function() { return /* reexport safe */ _to_array__WEBPACK_IMPORTED_MODULE_2__.$; },
13958
13958
  /* harmony export */ _j: function() { return /* reexport safe */ _as_array__WEBPACK_IMPORTED_MODULE_0__._; },
13959
- /* harmony export */ ft: function() { return /* reexport safe */ _reconcile_arrays__WEBPACK_IMPORTED_MODULE_1__.f; },
13960
- /* harmony export */ j5: function() { return /* reexport safe */ _reconcile_arrays__WEBPACK_IMPORTED_MODULE_1__.j; },
13961
- /* harmony export */ uM: function() { return /* reexport safe */ _split_array__WEBPACK_IMPORTED_MODULE_2__.u; }
13959
+ /* harmony export */ uM: function() { return /* reexport safe */ _split_array__WEBPACK_IMPORTED_MODULE_1__.u; }
13962
13960
  /* harmony export */ });
13963
13961
  /* harmony import */ var _as_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82317);
13964
- /* harmony import */ var _reconcile_arrays__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63784);
13965
- /* harmony import */ var _split_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42589);
13966
- /* harmony import */ var _to_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42448);
13962
+ /* harmony import */ var _split_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42589);
13963
+ /* harmony import */ var _to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42448);
13967
13964
  /*!
13968
13965
  * Jodit Editor (https://xdsoft.net/jodit/)
13969
13966
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -13977,7 +13974,6 @@ function observable(obj) {
13977
13974
 
13978
13975
 
13979
13976
 
13980
-
13981
13977
  /***/ }),
13982
13978
 
13983
13979
  /***/ 32782:
@@ -29072,121 +29068,6 @@ function moveCursorOutFromSpecialTags(jodit, fake, tags) {
29072
29068
  }
29073
29069
 
29074
29070
 
29075
- /***/ }),
29076
-
29077
- /***/ 63784:
29078
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
29079
-
29080
- "use strict";
29081
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29082
- /* harmony export */ f: function() { return /* binding */ applyArrayReconciliation; },
29083
- /* harmony export */ j: function() { return /* binding */ reconcileArrays; }
29084
- /* harmony export */ });
29085
- /*!
29086
- * Jodit Editor (https://xdsoft.net/jodit/)
29087
- * Released under MIT see LICENSE.txt in the project root for license information.
29088
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
29089
- */
29090
- /**
29091
- * Reconciles two arrays and returns the differences
29092
- * @param oldArray - The original array
29093
- * @param newArray - The new array to compare against
29094
- * @param keyFn - Optional function to generate unique keys for items (for object comparison)
29095
- * @returns Object containing added, removed, kept and moved items
29096
- *
29097
- * @example
29098
- * ```typescript
29099
- * const old = [1, 2, 3, 4];
29100
- * const new = [2, 4, 5, 1];
29101
- * const result = reconcileArrays(old, new);
29102
- * // result.added = [5]
29103
- * // result.removed = [3]
29104
- * // result.kept = [2, 4, 1]
29105
- * // result.moved = [{item: 1, from: 0, to: 3}]
29106
- * ```
29107
- *
29108
- * @example
29109
- * ```typescript
29110
- * const old = [{id: 1, name: 'a'}, {id: 2, name: 'b'}];
29111
- * const new = [{id: 2, name: 'b'}, {id: 3, name: 'c'}];
29112
- * const result = reconcileArrays(old, new, item => item.id);
29113
- * // result.added = [{id: 3, name: 'c'}]
29114
- * // result.removed = [{id: 1, name: 'a'}]
29115
- * ```
29116
- */
29117
- function reconcileArrays(oldArray, newArray, keyFn) {
29118
- const getKey = keyFn || ((item) => item);
29119
- const oldMap = new Map();
29120
- const newMap = new Map();
29121
- oldArray.forEach((item, index) => {
29122
- oldMap.set(getKey(item), { item, index });
29123
- });
29124
- newArray.forEach((item, index) => {
29125
- newMap.set(getKey(item), { item, index });
29126
- });
29127
- const added = [];
29128
- const removed = [];
29129
- const kept = [];
29130
- const moved = [];
29131
- // Find removed items
29132
- oldMap.forEach((value, key) => {
29133
- if (!newMap.has(key)) {
29134
- removed.push(value.item);
29135
- }
29136
- });
29137
- // Find added items and track kept/moved items
29138
- newMap.forEach((value, key) => {
29139
- const oldItem = oldMap.get(key);
29140
- if (!oldItem) {
29141
- added.push(value.item);
29142
- }
29143
- else {
29144
- kept.push(value.item);
29145
- if (oldItem.index !== value.index) {
29146
- moved.push({
29147
- item: value.item,
29148
- from: oldItem.index,
29149
- to: value.index
29150
- });
29151
- }
29152
- }
29153
- });
29154
- return {
29155
- added,
29156
- removed,
29157
- kept,
29158
- moved
29159
- };
29160
- }
29161
- /**
29162
- * Applies reconciliation patches to transform one array into another
29163
- * @param oldArray - The original array to transform
29164
- * @param newArray - The target array structure
29165
- * @param keyFn - Optional function to generate unique keys for items
29166
- * @returns New array matching the structure of newArray
29167
- */
29168
- function applyArrayReconciliation(oldArray, newArray, keyFn) {
29169
- const result = reconcileArrays(oldArray, newArray, keyFn);
29170
- const output = [];
29171
- // Build the new array based on newArray order
29172
- newArray.forEach(item => {
29173
- const key = keyFn ? keyFn(item) : item;
29174
- const isNew = result.added.some(addedItem => (keyFn ? keyFn(addedItem) : addedItem) === key);
29175
- if (isNew) {
29176
- output.push(item);
29177
- }
29178
- else {
29179
- // Use the old item reference if it exists
29180
- const oldItem = oldArray.find(oldItem => (keyFn ? keyFn(oldItem) : oldItem) === key);
29181
- if (oldItem !== undefined) {
29182
- output.push(oldItem);
29183
- }
29184
- }
29185
- });
29186
- return output;
29187
- }
29188
-
29189
-
29190
29071
  /***/ }),
29191
29072
 
29192
29073
  /***/ 63837:
@@ -29754,7 +29635,6 @@ __webpack_require__.r(__webpack_exports__);
29754
29635
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29755
29636
  /* harmony export */ CamelCaseToKebabCase: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_7__.N; },
29756
29637
  /* harmony export */ NUMBER_FIELDS_REG: function() { return /* reexport safe */ _normalize__WEBPACK_IMPORTED_MODULE_5__.b$; },
29757
- /* harmony export */ applyArrayReconciliation: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.ft; },
29758
29638
  /* harmony export */ applyStyles: function() { return /* reexport safe */ _html__WEBPACK_IMPORTED_MODULE_4__.ZM; },
29759
29639
  /* harmony export */ asArray: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__._j; },
29760
29640
  /* harmony export */ camelCase: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_7__.xQ; },
@@ -29809,7 +29689,6 @@ __webpack_require__.r(__webpack_exports__);
29809
29689
  /* harmony export */ normalizeUrl: function() { return /* reexport safe */ _normalize__WEBPACK_IMPORTED_MODULE_5__.l2; },
29810
29690
  /* harmony export */ offset: function() { return /* reexport safe */ _size__WEBPACK_IMPORTED_MODULE_6__.cY; },
29811
29691
  /* harmony export */ position: function() { return /* reexport safe */ _size__WEBPACK_IMPORTED_MODULE_6__.G1; },
29812
- /* harmony export */ reconcileArrays: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.j5; },
29813
29692
  /* harmony export */ safeHTML: function() { return /* reexport safe */ _html__WEBPACK_IMPORTED_MODULE_4__.t_; },
29814
29693
  /* harmony export */ sanitizeHTMLElement: function() { return /* reexport safe */ _html__WEBPACK_IMPORTED_MODULE_4__.vn; },
29815
29694
  /* harmony export */ setTimeout: function() { return /* reexport safe */ _async__WEBPACK_IMPORTED_MODULE_1__.w; },
@@ -29834,7 +29713,7 @@ __webpack_require__.r(__webpack_exports__);
29834
29713
  /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6589);
29835
29714
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97369);
29836
29715
  /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
29837
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _utils__WEBPACK_IMPORTED_MODULE_8__) if(["default","applyArrayReconciliation","asArray","reconcileArrays","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _utils__WEBPACK_IMPORTED_MODULE_8__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
29716
+ /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _utils__WEBPACK_IMPORTED_MODULE_8__) if(["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _utils__WEBPACK_IMPORTED_MODULE_8__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
29838
29717
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
29839
29718
  /*!
29840
29719
  * Jodit Editor (https://xdsoft.net/jodit/)