jodit-pro 4.6.16 → 4.6.18
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 +6 -127
- 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 +6 -127
- 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 +6 -127
- 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 +6 -127
- 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 +6 -133
- 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/es2021/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.18
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -11730,7 +11730,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11730
11730
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.EW; },
|
|
11731
11731
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.w4; },
|
|
11732
11732
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.S5; },
|
|
11733
|
-
/* harmony export */ applyArrayReconciliation: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.ft; },
|
|
11734
11733
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.ZM; },
|
|
11735
11734
|
/* harmony export */ asArray: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__._j; },
|
|
11736
11735
|
/* harmony export */ assert: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.vA; },
|
|
@@ -11825,7 +11824,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11825
11824
|
/* harmony export */ parseQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.Vc; },
|
|
11826
11825
|
/* harmony export */ position: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.G1; },
|
|
11827
11826
|
/* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.u_; },
|
|
11828
|
-
/* harmony export */ reconcileArrays: function() { return /* reexport safe */ _array_index_js__WEBPACK_IMPORTED_MODULE_0__.j5; },
|
|
11829
11827
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.DY; },
|
|
11830
11828
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.cL; },
|
|
11831
11829
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.tI; },
|
|
@@ -20951,121 +20949,6 @@ function uniqueMax(array) {
|
|
|
20951
20949
|
}
|
|
20952
20950
|
|
|
20953
20951
|
|
|
20954
|
-
/***/ }),
|
|
20955
|
-
|
|
20956
|
-
/***/ 39942:
|
|
20957
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20958
|
-
|
|
20959
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20960
|
-
/* harmony export */ f: function() { return /* binding */ applyArrayReconciliation; },
|
|
20961
|
-
/* harmony export */ j: function() { return /* binding */ reconcileArrays; }
|
|
20962
|
-
/* harmony export */ });
|
|
20963
|
-
/*!
|
|
20964
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20965
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
20966
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
20967
|
-
*/ /**
|
|
20968
|
-
* Reconciles two arrays and returns the differences
|
|
20969
|
-
* @param oldArray - The original array
|
|
20970
|
-
* @param newArray - The new array to compare against
|
|
20971
|
-
* @param keyFn - Optional function to generate unique keys for items (for object comparison)
|
|
20972
|
-
* @returns Object containing added, removed, kept and moved items
|
|
20973
|
-
*
|
|
20974
|
-
* @example
|
|
20975
|
-
* ```typescript
|
|
20976
|
-
* const old = [1, 2, 3, 4];
|
|
20977
|
-
* const new = [2, 4, 5, 1];
|
|
20978
|
-
* const result = reconcileArrays(old, new);
|
|
20979
|
-
* // result.added = [5]
|
|
20980
|
-
* // result.removed = [3]
|
|
20981
|
-
* // result.kept = [2, 4, 1]
|
|
20982
|
-
* // result.moved = [{item: 1, from: 0, to: 3}]
|
|
20983
|
-
* ```
|
|
20984
|
-
*
|
|
20985
|
-
* @example
|
|
20986
|
-
* ```typescript
|
|
20987
|
-
* const old = [{id: 1, name: 'a'}, {id: 2, name: 'b'}];
|
|
20988
|
-
* const new = [{id: 2, name: 'b'}, {id: 3, name: 'c'}];
|
|
20989
|
-
* const result = reconcileArrays(old, new, item => item.id);
|
|
20990
|
-
* // result.added = [{id: 3, name: 'c'}]
|
|
20991
|
-
* // result.removed = [{id: 1, name: 'a'}]
|
|
20992
|
-
* ```
|
|
20993
|
-
*/ function reconcileArrays(oldArray, newArray, keyFn) {
|
|
20994
|
-
const getKey = keyFn || ((item)=>item);
|
|
20995
|
-
const oldMap = new Map();
|
|
20996
|
-
const newMap = new Map();
|
|
20997
|
-
oldArray.forEach((item, index)=>{
|
|
20998
|
-
oldMap.set(getKey(item), {
|
|
20999
|
-
item,
|
|
21000
|
-
index
|
|
21001
|
-
});
|
|
21002
|
-
});
|
|
21003
|
-
newArray.forEach((item, index)=>{
|
|
21004
|
-
newMap.set(getKey(item), {
|
|
21005
|
-
item,
|
|
21006
|
-
index
|
|
21007
|
-
});
|
|
21008
|
-
});
|
|
21009
|
-
const added = [];
|
|
21010
|
-
const removed = [];
|
|
21011
|
-
const kept = [];
|
|
21012
|
-
const moved = [];
|
|
21013
|
-
// Find removed items
|
|
21014
|
-
oldMap.forEach((value, key)=>{
|
|
21015
|
-
if (!newMap.has(key)) {
|
|
21016
|
-
removed.push(value.item);
|
|
21017
|
-
}
|
|
21018
|
-
});
|
|
21019
|
-
// Find added items and track kept/moved items
|
|
21020
|
-
newMap.forEach((value, key)=>{
|
|
21021
|
-
const oldItem = oldMap.get(key);
|
|
21022
|
-
if (!oldItem) {
|
|
21023
|
-
added.push(value.item);
|
|
21024
|
-
} else {
|
|
21025
|
-
kept.push(value.item);
|
|
21026
|
-
if (oldItem.index !== value.index) {
|
|
21027
|
-
moved.push({
|
|
21028
|
-
item: value.item,
|
|
21029
|
-
from: oldItem.index,
|
|
21030
|
-
to: value.index
|
|
21031
|
-
});
|
|
21032
|
-
}
|
|
21033
|
-
}
|
|
21034
|
-
});
|
|
21035
|
-
return {
|
|
21036
|
-
added,
|
|
21037
|
-
removed,
|
|
21038
|
-
kept,
|
|
21039
|
-
moved
|
|
21040
|
-
};
|
|
21041
|
-
}
|
|
21042
|
-
/**
|
|
21043
|
-
* Applies reconciliation patches to transform one array into another
|
|
21044
|
-
* @param oldArray - The original array to transform
|
|
21045
|
-
* @param newArray - The target array structure
|
|
21046
|
-
* @param keyFn - Optional function to generate unique keys for items
|
|
21047
|
-
* @returns New array matching the structure of newArray
|
|
21048
|
-
*/ function applyArrayReconciliation(oldArray, newArray, keyFn) {
|
|
21049
|
-
const result = reconcileArrays(oldArray, newArray, keyFn);
|
|
21050
|
-
const output = [];
|
|
21051
|
-
// Build the new array based on newArray order
|
|
21052
|
-
newArray.forEach((item)=>{
|
|
21053
|
-
const key = keyFn ? keyFn(item) : item;
|
|
21054
|
-
const isNew = result.added.some((addedItem)=>(keyFn ? keyFn(addedItem) : addedItem) === key);
|
|
21055
|
-
if (isNew) {
|
|
21056
|
-
output.push(item);
|
|
21057
|
-
} else {
|
|
21058
|
-
// Use the old item reference if it exists
|
|
21059
|
-
const oldItem = oldArray.find((oldItem)=>(keyFn ? keyFn(oldItem) : oldItem) === key);
|
|
21060
|
-
if (oldItem !== undefined) {
|
|
21061
|
-
output.push(oldItem);
|
|
21062
|
-
}
|
|
21063
|
-
}
|
|
21064
|
-
});
|
|
21065
|
-
return output;
|
|
21066
|
-
}
|
|
21067
|
-
|
|
21068
|
-
|
|
21069
20952
|
/***/ }),
|
|
21070
20953
|
|
|
21071
20954
|
/***/ 39955:
|
|
@@ -38393,16 +38276,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38393
38276
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38394
38277
|
|
|
38395
38278
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38396
|
-
/* harmony export */ $r: function() { return /* reexport safe */
|
|
38279
|
+
/* harmony export */ $r: function() { return /* reexport safe */ _to_array_js__WEBPACK_IMPORTED_MODULE_2__.$; },
|
|
38397
38280
|
/* harmony export */ _j: function() { return /* reexport safe */ _as_array_js__WEBPACK_IMPORTED_MODULE_0__._; },
|
|
38398
|
-
/* harmony export */
|
|
38399
|
-
/* harmony export */ j5: function() { return /* reexport safe */ _reconcile_arrays_js__WEBPACK_IMPORTED_MODULE_1__.j; },
|
|
38400
|
-
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_2__.u; }
|
|
38281
|
+
/* harmony export */ uM: function() { return /* reexport safe */ _split_array_js__WEBPACK_IMPORTED_MODULE_1__.u; }
|
|
38401
38282
|
/* harmony export */ });
|
|
38402
38283
|
/* harmony import */ var _as_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29999);
|
|
38403
|
-
/* harmony import */ var
|
|
38404
|
-
/* harmony import */ var
|
|
38405
|
-
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
38284
|
+
/* harmony import */ var _split_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46559);
|
|
38285
|
+
/* harmony import */ var _to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
38406
38286
|
/*!
|
|
38407
38287
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38408
38288
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38414,7 +38294,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38414
38294
|
|
|
38415
38295
|
|
|
38416
38296
|
|
|
38417
|
-
|
|
38418
38297
|
/***/ }),
|
|
38419
38298
|
|
|
38420
38299
|
/***/ 77183:
|
|
@@ -43475,7 +43354,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43475
43354
|
* ```
|
|
43476
43355
|
* @packageDocumentation
|
|
43477
43356
|
* @module constants
|
|
43478
|
-
*/ const APP_VERSION = "4.6.
|
|
43357
|
+
*/ const APP_VERSION = "4.6.18";
|
|
43479
43358
|
// prettier-ignore
|
|
43480
43359
|
const ES = "es2021";
|
|
43481
43360
|
const IS_ES_MODERN = true;
|