jodit 4.12.25 → 4.12.27
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/CHANGELOG.md +7 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +82 -51
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +4 -4
- package/es2021/jodit.js +82 -51
- package/es2021/jodit.min.js +4 -4
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +82 -51
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +82 -51
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/config-proto.js +1 -9
- package/esm/core/helpers/utils/index.d.ts +1 -0
- package/esm/core/helpers/utils/index.js +1 -0
- package/esm/core/helpers/utils/is-unsafe-proto-key.d.ts +18 -0
- package/esm/core/helpers/utils/is-unsafe-proto-key.js +20 -0
- package/esm/core/helpers/utils/set.js +4 -0
- package/package.json +1 -1
- package/types/core/helpers/utils/index.d.ts +1 -0
- package/types/core/helpers/utils/is-unsafe-proto-key.d.ts +18 -0
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.12.
|
|
4
|
+
* Version: v4.12.27
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1810,7 +1810,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1810
1810
|
* ```
|
|
1811
1811
|
* @packageDocumentation
|
|
1812
1812
|
* @module constants
|
|
1813
|
-
*/ const APP_VERSION = "4.12.
|
|
1813
|
+
*/ const APP_VERSION = "4.12.27";
|
|
1814
1814
|
// prettier-ignore
|
|
1815
1815
|
const ES = "es2021";
|
|
1816
1816
|
const IS_ES_MODERN = true;
|
|
@@ -7714,7 +7714,8 @@ const completeUrl = (url)=>{
|
|
|
7714
7714
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18303);
|
|
7715
7715
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5266);
|
|
7716
7716
|
/* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54794);
|
|
7717
|
-
/* harmony import */ var
|
|
7717
|
+
/* harmony import */ var _is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78048);
|
|
7718
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(71125);
|
|
7718
7719
|
/*!
|
|
7719
7720
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7720
7721
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7728,18 +7729,7 @@ const completeUrl = (url)=>{
|
|
|
7728
7729
|
|
|
7729
7730
|
|
|
7730
7731
|
|
|
7731
|
-
|
|
7732
|
-
* Keys that must never be copied from a (potentially untrusted) config object —
|
|
7733
|
-
* assigning them during a recursive merge can reach and mutate
|
|
7734
|
-
* `Object.prototype` (prototype pollution, CWE-1321).
|
|
7735
|
-
*/ const UNSAFE_PROTO_KEYS = [
|
|
7736
|
-
'__proto__',
|
|
7737
|
-
'constructor',
|
|
7738
|
-
'prototype'
|
|
7739
|
-
];
|
|
7740
|
-
function isUnsafeProtoKey(key) {
|
|
7741
|
-
return UNSAFE_PROTO_KEYS.indexOf(key) !== -1;
|
|
7742
|
-
}
|
|
7732
|
+
|
|
7743
7733
|
/**
|
|
7744
7734
|
* @example
|
|
7745
7735
|
* ```js
|
|
@@ -7788,7 +7778,7 @@ function isUnsafeProtoKey(key) {
|
|
|
7788
7778
|
}
|
|
7789
7779
|
const newOpt = {};
|
|
7790
7780
|
Object.keys(options).forEach((key)=>{
|
|
7791
|
-
if (isUnsafeProtoKey(key)) {
|
|
7781
|
+
if ((0,_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_6__.isUnsafeProtoKey)(key)) {
|
|
7792
7782
|
return;
|
|
7793
7783
|
}
|
|
7794
7784
|
const opt = options[key], protoKey = proto ? proto[key] : null;
|
|
@@ -7810,7 +7800,7 @@ function isUnsafeProtoKey(key) {
|
|
|
7810
7800
|
return newOpt;
|
|
7811
7801
|
}
|
|
7812
7802
|
function ConfigFlatten(obj) {
|
|
7813
|
-
return (0,
|
|
7803
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_7__.keys)(obj, false).reduce((app, key)=>{
|
|
7814
7804
|
app[key] = obj[key];
|
|
7815
7805
|
return app;
|
|
7816
7806
|
}, {});
|
|
@@ -7852,7 +7842,7 @@ function ConfigFlatten(obj) {
|
|
|
7852
7842
|
* @see {@link ConfigProto} for the prototype-chain variant used at editor creation time
|
|
7853
7843
|
*/ function ConfigMerge(target, source) {
|
|
7854
7844
|
Object.keys(source).forEach((key)=>{
|
|
7855
|
-
if (isUnsafeProtoKey(key)) {
|
|
7845
|
+
if ((0,_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_6__.isUnsafeProtoKey)(key)) {
|
|
7856
7846
|
return;
|
|
7857
7847
|
}
|
|
7858
7848
|
const srcVal = source[key];
|
|
@@ -7865,7 +7855,7 @@ function ConfigFlatten(obj) {
|
|
|
7865
7855
|
});
|
|
7866
7856
|
}
|
|
7867
7857
|
function ConfigDeepFlatten(obj) {
|
|
7868
|
-
return (0,
|
|
7858
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_7__.keys)(obj, false).reduce((app, key)=>{
|
|
7869
7859
|
app[key] = (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(obj[key]) ? ConfigDeepFlatten(obj[key]) : obj[key];
|
|
7870
7860
|
return app;
|
|
7871
7861
|
}, {});
|
|
@@ -8467,14 +8457,15 @@ const getClassName = (obj)=>{
|
|
|
8467
8457
|
"use strict";
|
|
8468
8458
|
__webpack_require__.r(__webpack_exports__);
|
|
8469
8459
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8470
|
-
/* harmony export */ $$: function() { return /* reexport safe */
|
|
8460
|
+
/* harmony export */ $$: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_24__.$$; },
|
|
8471
8461
|
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.ConfigDeepFlatten; },
|
|
8472
8462
|
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.ConfigFlatten; },
|
|
8473
8463
|
/* harmony export */ ConfigMerge: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.ConfigMerge; },
|
|
8474
8464
|
/* harmony export */ ConfigProto: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.ConfigProto; },
|
|
8475
8465
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.ConnectionError; },
|
|
8476
|
-
/* harmony export */ LimitedStack: function() { return /* reexport safe */
|
|
8466
|
+
/* harmony export */ LimitedStack: function() { return /* reexport safe */ _stack__WEBPACK_IMPORTED_MODULE_26__.LimitedStack; },
|
|
8477
8467
|
/* harmony export */ OptionsError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.OptionsError; },
|
|
8468
|
+
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */ _is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_18__.UNSAFE_PROTO_KEYS; },
|
|
8478
8469
|
/* harmony export */ abort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.abort; },
|
|
8479
8470
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
|
|
8480
8471
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.alreadyLoadedList; },
|
|
@@ -8483,17 +8474,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8483
8474
|
/* harmony export */ attr: function() { return /* reexport safe */ _attr__WEBPACK_IMPORTED_MODULE_3__.attr; },
|
|
8484
8475
|
/* harmony export */ browser: function() { return /* reexport safe */ _browser__WEBPACK_IMPORTED_MODULE_4__.browser; },
|
|
8485
8476
|
/* harmony export */ buildQuery: function() { return /* reexport safe */ _build_query__WEBPACK_IMPORTED_MODULE_5__.buildQuery; },
|
|
8486
|
-
/* harmony export */ call: function() { return /* reexport safe */
|
|
8487
|
-
/* harmony export */ callPromise: function() { return /* reexport safe */
|
|
8488
|
-
/* harmony export */ callThis: function() { return /* reexport safe */
|
|
8477
|
+
/* harmony export */ call: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.call; },
|
|
8478
|
+
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.callPromise; },
|
|
8479
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.callThis; },
|
|
8489
8480
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
8490
8481
|
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_9__.clearCenterAlign; },
|
|
8491
|
-
/* harmony export */ cns: function() { return /* reexport safe */
|
|
8482
|
+
/* harmony export */ cns: function() { return /* reexport safe */ _mark_deprecated__WEBPACK_IMPORTED_MODULE_19__.cns; },
|
|
8492
8483
|
/* harmony export */ completeUrl: function() { return /* reexport safe */ _complete_url__WEBPACK_IMPORTED_MODULE_6__.completeUrl; },
|
|
8493
8484
|
/* harmony export */ connection: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.connection; },
|
|
8494
8485
|
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */ _convert_media_url_to_video_embed__WEBPACK_IMPORTED_MODULE_8__.convertMediaUrlToVideoEmbed; },
|
|
8495
8486
|
/* harmony export */ css: function() { return /* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_9__.css; },
|
|
8496
|
-
/* harmony export */ cssPath: function() { return /* reexport safe */
|
|
8487
|
+
/* harmony export */ cssPath: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_24__.cssPath; },
|
|
8497
8488
|
/* harmony export */ ctrlKey: function() { return /* reexport safe */ _ctrl_key__WEBPACK_IMPORTED_MODULE_10__.ctrlKey; },
|
|
8498
8489
|
/* harmony export */ dataBind: function() { return /* reexport safe */ _data_bind__WEBPACK_IMPORTED_MODULE_11__.dataBind; },
|
|
8499
8490
|
/* harmony export */ defaultLanguage: function() { return /* reexport safe */ _default_language__WEBPACK_IMPORTED_MODULE_12__.defaultLanguage; },
|
|
@@ -8501,30 +8492,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8501
8492
|
/* harmony export */ fastClone: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_14__.fastClone; },
|
|
8502
8493
|
/* harmony export */ get: function() { return /* reexport safe */ _get__WEBPACK_IMPORTED_MODULE_15__.get; },
|
|
8503
8494
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.getClassName; },
|
|
8504
|
-
/* harmony export */ getDataTransfer: function() { return /* reexport safe */
|
|
8505
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */
|
|
8506
|
-
/* harmony export */ getXPathByElement: function() { return /* reexport safe */
|
|
8495
|
+
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.getDataTransfer; },
|
|
8496
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.getPropertyDescriptor; },
|
|
8497
|
+
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_24__.getXPathByElement; },
|
|
8507
8498
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
8508
8499
|
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes__WEBPACK_IMPORTED_MODULE_17__.humanSizeToBytes; },
|
|
8509
|
-
/* harmony export */ inView: function() { return /* reexport safe */
|
|
8500
|
+
/* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_23__.inView; },
|
|
8510
8501
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_14__.isAtom; },
|
|
8502
|
+
/* harmony export */ isUnsafeProtoKey: function() { return /* reexport safe */ _is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_18__.isUnsafeProtoKey; },
|
|
8511
8503
|
/* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.keepNames; },
|
|
8512
|
-
/* harmony export */ keys: function() { return /* reexport safe */
|
|
8513
|
-
/* harmony export */ loadImage: function() { return /* reexport safe */
|
|
8504
|
+
/* harmony export */ keys: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.keys; },
|
|
8505
|
+
/* harmony export */ loadImage: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.loadImage; },
|
|
8514
8506
|
/* harmony export */ loadNext: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.loadNext; },
|
|
8515
8507
|
/* harmony export */ loadNextStyle: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.loadNextStyle; },
|
|
8516
8508
|
/* harmony export */ markAsAtomic: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_14__.markAsAtomic; },
|
|
8517
|
-
/* harmony export */ markDeprecated: function() { return /* reexport safe */
|
|
8518
|
-
/* harmony export */ markOwner: function() { return /* reexport safe */
|
|
8519
|
-
/* harmony export */ memorizeExec: function() { return /* reexport safe */
|
|
8509
|
+
/* harmony export */ markDeprecated: function() { return /* reexport safe */ _mark_deprecated__WEBPACK_IMPORTED_MODULE_19__.markDeprecated; },
|
|
8510
|
+
/* harmony export */ markOwner: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.markOwner; },
|
|
8511
|
+
/* harmony export */ memorizeExec: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_27__.memorizeExec; },
|
|
8520
8512
|
/* harmony export */ options: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.options; },
|
|
8521
|
-
/* harmony export */ parseQuery: function() { return /* reexport safe */
|
|
8522
|
-
/* harmony export */ previewBox: function() { return /* reexport safe */
|
|
8523
|
-
/* harmony export */ refs: function() { return /* reexport safe */
|
|
8524
|
-
/* harmony export */ reset: function() { return /* reexport safe */
|
|
8525
|
-
/* harmony export */ resolveElement: function() { return /* reexport safe */
|
|
8526
|
-
/* harmony export */ scrollIntoViewIfNeeded: function() { return /* reexport safe */
|
|
8527
|
-
/* harmony export */ set: function() { return /* reexport safe */
|
|
8513
|
+
/* harmony export */ parseQuery: function() { return /* reexport safe */ _parse_query__WEBPACK_IMPORTED_MODULE_20__.parseQuery; },
|
|
8514
|
+
/* harmony export */ previewBox: function() { return /* reexport safe */ _print__WEBPACK_IMPORTED_MODULE_21__.previewBox; },
|
|
8515
|
+
/* harmony export */ refs: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_24__.refs; },
|
|
8516
|
+
/* harmony export */ reset: function() { return /* reexport safe */ _reset__WEBPACK_IMPORTED_MODULE_22__.reset; },
|
|
8517
|
+
/* harmony export */ resolveElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_24__.resolveElement; },
|
|
8518
|
+
/* harmony export */ scrollIntoViewIfNeeded: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_23__.scrollIntoViewIfNeeded; },
|
|
8519
|
+
/* harmony export */ set: function() { return /* reexport safe */ _set__WEBPACK_IMPORTED_MODULE_25__.set; }
|
|
8528
8520
|
/* harmony export */ });
|
|
8529
8521
|
/* harmony import */ var _align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16849);
|
|
8530
8522
|
/* harmony import */ var _append_script__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47760);
|
|
@@ -8548,15 +8540,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8548
8540
|
/* harmony import */ var _get__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(89308);
|
|
8549
8541
|
/* harmony import */ var _get_class_name__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(421);
|
|
8550
8542
|
/* harmony import */ var _human_size_to_bytes__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37427);
|
|
8551
|
-
/* harmony import */ var
|
|
8552
|
-
/* harmony import */ var
|
|
8553
|
-
/* harmony import */ var
|
|
8554
|
-
/* harmony import */ var
|
|
8555
|
-
/* harmony import */ var
|
|
8556
|
-
/* harmony import */ var
|
|
8557
|
-
/* harmony import */ var
|
|
8558
|
-
/* harmony import */ var
|
|
8559
|
-
/* harmony import */ var
|
|
8543
|
+
/* harmony import */ var _is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(78048);
|
|
8544
|
+
/* harmony import */ var _mark_deprecated__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(49385);
|
|
8545
|
+
/* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(36310);
|
|
8546
|
+
/* harmony import */ var _print__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(57075);
|
|
8547
|
+
/* harmony import */ var _reset__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(43379);
|
|
8548
|
+
/* harmony import */ var _scroll_into_view__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(60898);
|
|
8549
|
+
/* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(28723);
|
|
8550
|
+
/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(52144);
|
|
8551
|
+
/* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(42820);
|
|
8552
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(71125);
|
|
8560
8553
|
/*!
|
|
8561
8554
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8562
8555
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8590,6 +8583,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8590
8583
|
|
|
8591
8584
|
|
|
8592
8585
|
|
|
8586
|
+
|
|
8587
|
+
|
|
8588
|
+
|
|
8589
|
+
/***/ }),
|
|
8590
|
+
|
|
8591
|
+
/***/ 78048:
|
|
8592
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8593
|
+
|
|
8594
|
+
"use strict";
|
|
8595
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8596
|
+
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* binding */ UNSAFE_PROTO_KEYS; },
|
|
8597
|
+
/* harmony export */ isUnsafeProtoKey: function() { return /* binding */ isUnsafeProtoKey; }
|
|
8598
|
+
/* harmony export */ });
|
|
8599
|
+
/*!
|
|
8600
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8601
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8602
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
8603
|
+
*/ /**
|
|
8604
|
+
* @module helpers/utils
|
|
8605
|
+
*/ /**
|
|
8606
|
+
* Keys that must never be written from a (potentially untrusted) source —
|
|
8607
|
+
* assigning them while walking/merging an object can reach and mutate
|
|
8608
|
+
* `Object.prototype` (prototype pollution, CWE-1321).
|
|
8609
|
+
*/ const UNSAFE_PROTO_KEYS = [
|
|
8610
|
+
'__proto__',
|
|
8611
|
+
'constructor',
|
|
8612
|
+
'prototype'
|
|
8613
|
+
];
|
|
8614
|
+
/**
|
|
8615
|
+
* Check whether a key can be used to pollute the prototype chain.
|
|
8616
|
+
*/ function isUnsafeProtoKey(key) {
|
|
8617
|
+
return UNSAFE_PROTO_KEYS.indexOf(key) !== -1;
|
|
8618
|
+
}
|
|
8593
8619
|
|
|
8594
8620
|
|
|
8595
8621
|
/***/ }),
|
|
@@ -9077,6 +9103,7 @@ const $$temp = ()=>{
|
|
|
9077
9103
|
/* harmony import */ var jodit_core_helpers_checker_is_numeric__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70222);
|
|
9078
9104
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62101);
|
|
9079
9105
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85932);
|
|
9106
|
+
/* harmony import */ var _is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78048);
|
|
9080
9107
|
/*!
|
|
9081
9108
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9082
9109
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9087,6 +9114,7 @@ const $$temp = ()=>{
|
|
|
9087
9114
|
|
|
9088
9115
|
|
|
9089
9116
|
|
|
9117
|
+
|
|
9090
9118
|
/**
|
|
9091
9119
|
* Safe access in tree object
|
|
9092
9120
|
*
|
|
@@ -9104,6 +9132,9 @@ const $$temp = ()=>{
|
|
|
9104
9132
|
return;
|
|
9105
9133
|
}
|
|
9106
9134
|
const parts = chain.split('.');
|
|
9135
|
+
if (parts.some(_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_4__.isUnsafeProtoKey)) {
|
|
9136
|
+
return;
|
|
9137
|
+
}
|
|
9107
9138
|
let result = obj, key = parts[0];
|
|
9108
9139
|
for(let i = 0; i < parts.length - 1; i += 1){
|
|
9109
9140
|
key = parts[i];
|