jodit-pro 4.6.14 → 4.6.16
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.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +155 -22
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +155 -22
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +155 -22
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +155 -22
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +163 -24
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/package.json +1 -1
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.6.
|
|
4
|
+
* Version: v4.6.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -17619,6 +17619,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17619
17619
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.EW; },
|
|
17620
17620
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.w4; },
|
|
17621
17621
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.S5; },
|
|
17622
|
+
/* harmony export */ applyArrayReconciliation: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.ft; },
|
|
17622
17623
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.ZM; },
|
|
17623
17624
|
/* harmony export */ asArray: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__._j; },
|
|
17624
17625
|
/* harmony export */ assert: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.vA; },
|
|
@@ -17713,6 +17714,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17713
17714
|
/* harmony export */ parseQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.Vc; },
|
|
17714
17715
|
/* harmony export */ position: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.G1; },
|
|
17715
17716
|
/* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.u_; },
|
|
17717
|
+
/* harmony export */ reconcileArrays: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.j5; },
|
|
17716
17718
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.DY; },
|
|
17717
17719
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.cL; },
|
|
17718
17720
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.tI; },
|
|
@@ -30437,6 +30439,127 @@ function uniqueMax(array) {
|
|
|
30437
30439
|
}
|
|
30438
30440
|
|
|
30439
30441
|
|
|
30442
|
+
/***/ }),
|
|
30443
|
+
|
|
30444
|
+
/***/ 39942:
|
|
30445
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
30446
|
+
|
|
30447
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30448
|
+
/* harmony export */ f: function() { return /* binding */ applyArrayReconciliation; },
|
|
30449
|
+
/* harmony export */ j: function() { return /* binding */ reconcileArrays; }
|
|
30450
|
+
/* harmony export */ });
|
|
30451
|
+
/*!
|
|
30452
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30453
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
30454
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
30455
|
+
*/ /**
|
|
30456
|
+
* Reconciles two arrays and returns the differences
|
|
30457
|
+
* @param oldArray - The original array
|
|
30458
|
+
* @param newArray - The new array to compare against
|
|
30459
|
+
* @param keyFn - Optional function to generate unique keys for items (for object comparison)
|
|
30460
|
+
* @returns Object containing added, removed, kept and moved items
|
|
30461
|
+
*
|
|
30462
|
+
* @example
|
|
30463
|
+
* ```typescript
|
|
30464
|
+
* const old = [1, 2, 3, 4];
|
|
30465
|
+
* const new = [2, 4, 5, 1];
|
|
30466
|
+
* const result = reconcileArrays(old, new);
|
|
30467
|
+
* // result.added = [5]
|
|
30468
|
+
* // result.removed = [3]
|
|
30469
|
+
* // result.kept = [2, 4, 1]
|
|
30470
|
+
* // result.moved = [{item: 1, from: 0, to: 3}]
|
|
30471
|
+
* ```
|
|
30472
|
+
*
|
|
30473
|
+
* @example
|
|
30474
|
+
* ```typescript
|
|
30475
|
+
* const old = [{id: 1, name: 'a'}, {id: 2, name: 'b'}];
|
|
30476
|
+
* const new = [{id: 2, name: 'b'}, {id: 3, name: 'c'}];
|
|
30477
|
+
* const result = reconcileArrays(old, new, item => item.id);
|
|
30478
|
+
* // result.added = [{id: 3, name: 'c'}]
|
|
30479
|
+
* // result.removed = [{id: 1, name: 'a'}]
|
|
30480
|
+
* ```
|
|
30481
|
+
*/ function reconcileArrays(oldArray, newArray, keyFn) {
|
|
30482
|
+
var getKey = keyFn || function(item) {
|
|
30483
|
+
return item;
|
|
30484
|
+
};
|
|
30485
|
+
var oldMap = new Map();
|
|
30486
|
+
var newMap = new Map();
|
|
30487
|
+
oldArray.forEach(function(item, index) {
|
|
30488
|
+
oldMap.set(getKey(item), {
|
|
30489
|
+
item: item,
|
|
30490
|
+
index: index
|
|
30491
|
+
});
|
|
30492
|
+
});
|
|
30493
|
+
newArray.forEach(function(item, index) {
|
|
30494
|
+
newMap.set(getKey(item), {
|
|
30495
|
+
item: item,
|
|
30496
|
+
index: index
|
|
30497
|
+
});
|
|
30498
|
+
});
|
|
30499
|
+
var added = [];
|
|
30500
|
+
var removed = [];
|
|
30501
|
+
var kept = [];
|
|
30502
|
+
var moved = [];
|
|
30503
|
+
// Find removed items
|
|
30504
|
+
oldMap.forEach(function(value, key) {
|
|
30505
|
+
if (!newMap.has(key)) {
|
|
30506
|
+
removed.push(value.item);
|
|
30507
|
+
}
|
|
30508
|
+
});
|
|
30509
|
+
// Find added items and track kept/moved items
|
|
30510
|
+
newMap.forEach(function(value, key) {
|
|
30511
|
+
var oldItem = oldMap.get(key);
|
|
30512
|
+
if (!oldItem) {
|
|
30513
|
+
added.push(value.item);
|
|
30514
|
+
} else {
|
|
30515
|
+
kept.push(value.item);
|
|
30516
|
+
if (oldItem.index !== value.index) {
|
|
30517
|
+
moved.push({
|
|
30518
|
+
item: value.item,
|
|
30519
|
+
from: oldItem.index,
|
|
30520
|
+
to: value.index
|
|
30521
|
+
});
|
|
30522
|
+
}
|
|
30523
|
+
}
|
|
30524
|
+
});
|
|
30525
|
+
return {
|
|
30526
|
+
added: added,
|
|
30527
|
+
removed: removed,
|
|
30528
|
+
kept: kept,
|
|
30529
|
+
moved: moved
|
|
30530
|
+
};
|
|
30531
|
+
}
|
|
30532
|
+
/**
|
|
30533
|
+
* Applies reconciliation patches to transform one array into another
|
|
30534
|
+
* @param oldArray - The original array to transform
|
|
30535
|
+
* @param newArray - The target array structure
|
|
30536
|
+
* @param keyFn - Optional function to generate unique keys for items
|
|
30537
|
+
* @returns New array matching the structure of newArray
|
|
30538
|
+
*/ function applyArrayReconciliation(oldArray, newArray, keyFn) {
|
|
30539
|
+
var result = reconcileArrays(oldArray, newArray, keyFn);
|
|
30540
|
+
var output = [];
|
|
30541
|
+
// Build the new array based on newArray order
|
|
30542
|
+
newArray.forEach(function(item) {
|
|
30543
|
+
var key = keyFn ? keyFn(item) : item;
|
|
30544
|
+
var isNew = result.added.some(function(addedItem) {
|
|
30545
|
+
return (keyFn ? keyFn(addedItem) : addedItem) === key;
|
|
30546
|
+
});
|
|
30547
|
+
if (isNew) {
|
|
30548
|
+
output.push(item);
|
|
30549
|
+
} else {
|
|
30550
|
+
// Use the old item reference if it exists
|
|
30551
|
+
var oldItem = oldArray.find(function(oldItem) {
|
|
30552
|
+
return (keyFn ? keyFn(oldItem) : oldItem) === key;
|
|
30553
|
+
});
|
|
30554
|
+
if (oldItem !== undefined) {
|
|
30555
|
+
output.push(oldItem);
|
|
30556
|
+
}
|
|
30557
|
+
}
|
|
30558
|
+
});
|
|
30559
|
+
return output;
|
|
30560
|
+
}
|
|
30561
|
+
|
|
30562
|
+
|
|
30440
30563
|
/***/ }),
|
|
30441
30564
|
|
|
30442
30565
|
/***/ 39955:
|
|
@@ -44850,8 +44973,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44850
44973
|
/* harmony import */ var _decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
44851
44974
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
44852
44975
|
/* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
44853
|
-
/* harmony import */ var
|
|
44854
|
-
/* harmony import */ var _element_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48538);
|
|
44976
|
+
/* harmony import */ var _element_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48538);
|
|
44855
44977
|
/*!
|
|
44856
44978
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
44857
44979
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -44989,7 +45111,6 @@ var UIGroup_1;
|
|
|
44989
45111
|
|
|
44990
45112
|
|
|
44991
45113
|
|
|
44992
|
-
|
|
44993
45114
|
var UIGroup = UIGroup_1 = /*#__PURE__*/ function(UIElement) {
|
|
44994
45115
|
"use strict";
|
|
44995
45116
|
_inherits(UIGroup, UIElement);
|
|
@@ -45055,27 +45176,37 @@ var UIGroup = UIGroup_1 = /*#__PURE__*/ function(UIElement) {
|
|
|
45055
45176
|
}
|
|
45056
45177
|
},
|
|
45057
45178
|
{
|
|
45058
|
-
|
|
45059
|
-
|
|
45060
|
-
*/ key: "append",
|
|
45061
|
-
value: function append(elm, distElement) {
|
|
45179
|
+
key: "append",
|
|
45180
|
+
value: function append(elms, distElementOrIndex) {
|
|
45062
45181
|
var _this = this;
|
|
45063
|
-
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isArray)(
|
|
45064
|
-
|
|
45065
|
-
|
|
45182
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isArray)(elms)) {
|
|
45183
|
+
if (typeof distElementOrIndex === 'number') {
|
|
45184
|
+
throw new Error('You can not use index when append array of elements');
|
|
45185
|
+
}
|
|
45186
|
+
elms.forEach(function(item) {
|
|
45187
|
+
return _this.append(item, distElementOrIndex);
|
|
45066
45188
|
});
|
|
45067
45189
|
return this;
|
|
45068
45190
|
}
|
|
45069
|
-
|
|
45191
|
+
var elm = elms;
|
|
45192
|
+
var index = undefined;
|
|
45193
|
+
if (typeof distElementOrIndex === 'number') {
|
|
45194
|
+
index = Math.min(Math.max(0, distElementOrIndex), this.elements.length);
|
|
45195
|
+
this.elements.splice(index, 0, elm);
|
|
45196
|
+
} else {
|
|
45197
|
+
this.elements.push(elm);
|
|
45198
|
+
}
|
|
45070
45199
|
if (elm.name) {
|
|
45071
45200
|
elm.container.classList.add(this.getFullElName(elm.name));
|
|
45072
45201
|
}
|
|
45073
|
-
if (
|
|
45074
|
-
var distElm = this.getElm(
|
|
45075
|
-
|
|
45202
|
+
if (distElementOrIndex && typeof distElementOrIndex === 'string') {
|
|
45203
|
+
var distElm = this.getElm(distElementOrIndex);
|
|
45204
|
+
if (distElm == null) {
|
|
45205
|
+
throw new Error('Element does not exist');
|
|
45206
|
+
}
|
|
45076
45207
|
distElm.appendChild(elm.container);
|
|
45077
45208
|
} else {
|
|
45078
|
-
this.appendChildToContainer(elm.container);
|
|
45209
|
+
this.appendChildToContainer(elm.container, index);
|
|
45079
45210
|
}
|
|
45080
45211
|
elm.parentElement = this;
|
|
45081
45212
|
return this;
|
|
@@ -45095,8 +45226,12 @@ var UIGroup = UIGroup_1 = /*#__PURE__*/ function(UIElement) {
|
|
|
45095
45226
|
/**
|
|
45096
45227
|
* Allow set another container for the box of all children
|
|
45097
45228
|
*/ key: "appendChildToContainer",
|
|
45098
|
-
value: function appendChildToContainer(childContainer) {
|
|
45099
|
-
this.container.
|
|
45229
|
+
value: function appendChildToContainer(childContainer, index) {
|
|
45230
|
+
if (index === undefined || index < 0 || index > this.elements.length - 1 || this.container.children[index] == null) {
|
|
45231
|
+
this.container.appendChild(childContainer);
|
|
45232
|
+
} else {
|
|
45233
|
+
this.container.insertBefore(childContainer, this.container.children[index]);
|
|
45234
|
+
}
|
|
45100
45235
|
}
|
|
45101
45236
|
},
|
|
45102
45237
|
{
|
|
@@ -45134,7 +45269,7 @@ var UIGroup = UIGroup_1 = /*#__PURE__*/ function(UIElement) {
|
|
|
45134
45269
|
}
|
|
45135
45270
|
]);
|
|
45136
45271
|
return UIGroup;
|
|
45137
|
-
}(
|
|
45272
|
+
}(_element_js__WEBPACK_IMPORTED_MODULE_4__/* .UIElement */ .D);
|
|
45138
45273
|
__decorate([
|
|
45139
45274
|
(0,_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)('buttonSize')
|
|
45140
45275
|
], UIGroup.prototype, "update", null);
|
|
@@ -53812,13 +53947,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53812
53947
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
53813
53948
|
|
|
53814
53949
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
53815
|
-
/* harmony export */ $r: function() { return /* reexport safe */
|
|
53950
|
+
/* harmony export */ $r: function() { return /* reexport safe */ _to_array_js__WEBPACK_IMPORTED_MODULE_3__.$; },
|
|
53816
53951
|
/* harmony export */ _j: function() { return /* reexport safe */ _as_array_js__WEBPACK_IMPORTED_MODULE_0__._; },
|
|
53817
|
-
/* harmony export */
|
|
53952
|
+
/* harmony export */ ft: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.f; },
|
|
53953
|
+
/* harmony export */ j5: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.j; },
|
|
53954
|
+
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_2__.u; }
|
|
53818
53955
|
/* harmony export */ });
|
|
53819
53956
|
/* harmony import */ var _as_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29999);
|
|
53820
|
-
/* harmony import */ var
|
|
53821
|
-
/* harmony import */ var
|
|
53957
|
+
/* harmony import */ var _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39942);
|
|
53958
|
+
/* harmony import */ var _split_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46559);
|
|
53959
|
+
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
53822
53960
|
/*!
|
|
53823
53961
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
53824
53962
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -53830,6 +53968,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53830
53968
|
|
|
53831
53969
|
|
|
53832
53970
|
|
|
53971
|
+
|
|
53833
53972
|
/***/ }),
|
|
53834
53973
|
|
|
53835
53974
|
/***/ 77183:
|
|
@@ -61346,7 +61485,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
61346
61485
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
61347
61486
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
61348
61487
|
}
|
|
61349
|
-
var APP_VERSION = "4.6.
|
|
61488
|
+
var APP_VERSION = "4.6.16";
|
|
61350
61489
|
// prettier-ignore
|
|
61351
61490
|
var ES = "es5";
|
|
61352
61491
|
var IS_ES_MODERN = false;
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.6.
|
|
4
|
+
* Version: v4.6.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit-pro - PRO Version of Jodit Editor
|
|
10
10
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
11
|
-
* Version: v4.6.
|
|
11
|
+
* Version: v4.6.16
|
|
12
12
|
* Url: https://xdsoft.net/jodit/pro/
|
|
13
13
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
14
14
|
*/
|