jodit 3.16.2 → 3.16.3
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/.idea/workspace.xml +5 -2
- package/CHANGELOG.MD +4 -0
- package/build/jodit.css +2 -2
- package/build/jodit.es2018.css +1 -1
- package/build/jodit.es2018.en.css +1 -1
- package/build/jodit.es2018.en.js +18 -14
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +18 -14
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +22 -18
- package/build/jodit.min.css +1 -1
- package/build/jodit.min.js +1 -1
- package/build/vdom.css +1 -1
- package/build/vdom.js +1 -1
- package/package.json +1 -1
- package/src/core/decorators/hook/hook.ts +1 -1
- package/src/core/decorators/wait/wait.ts +16 -14
package/build/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
|
|
4
|
-
* Version: v3.16.
|
|
4
|
+
* Version: v3.16.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -9948,7 +9948,7 @@ function hook(status) {
|
|
|
9948
9948
|
throw (0, error_1.error)('Handler must be a Function');
|
|
9949
9949
|
}
|
|
9950
9950
|
target.hookStatus(status, function (component) {
|
|
9951
|
-
|
|
9951
|
+
component[propertyKey].call(component);
|
|
9952
9952
|
});
|
|
9953
9953
|
};
|
|
9954
9954
|
}
|
|
@@ -10038,7 +10038,8 @@ var helpers_1 = __webpack_require__(146);
|
|
|
10038
10038
|
var component_1 = __webpack_require__(154);
|
|
10039
10039
|
function wait(condition) {
|
|
10040
10040
|
return function (target, propertyKey) {
|
|
10041
|
-
|
|
10041
|
+
var fn = target[propertyKey];
|
|
10042
|
+
if (!(0, helpers_1.isFunction)(fn)) {
|
|
10042
10043
|
throw (0, helpers_1.error)('Handler must be a Function');
|
|
10043
10044
|
}
|
|
10044
10045
|
target.hookStatus(component_1.STATUSES.ready, function (component) {
|
|
@@ -10047,19 +10048,22 @@ function wait(condition) {
|
|
|
10047
10048
|
: component.j.async;
|
|
10048
10049
|
var realMethod = component[propertyKey];
|
|
10049
10050
|
var timeout = 0;
|
|
10050
|
-
component
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
args
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10051
|
+
Object.defineProperty(component, propertyKey, {
|
|
10052
|
+
configurable: true,
|
|
10053
|
+
value: function callProxy() {
|
|
10054
|
+
var args = [];
|
|
10055
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10056
|
+
args[_i] = arguments[_i];
|
|
10057
|
+
}
|
|
10058
|
+
async.clearTimeout(timeout);
|
|
10059
|
+
if (condition(component)) {
|
|
10060
|
+
realMethod.apply(component, args);
|
|
10061
|
+
}
|
|
10062
|
+
else {
|
|
10063
|
+
timeout = async.setTimeout(function () { return callProxy.apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(args), false)); }, 10);
|
|
10064
|
+
}
|
|
10061
10065
|
}
|
|
10062
|
-
};
|
|
10066
|
+
});
|
|
10063
10067
|
});
|
|
10064
10068
|
};
|
|
10065
10069
|
}
|
|
@@ -16303,7 +16307,7 @@ var View = (function (_super) {
|
|
|
16303
16307
|
_this.isView = true;
|
|
16304
16308
|
_this.mods = {};
|
|
16305
16309
|
_this.components = new Set();
|
|
16306
|
-
_this.version = "3.16.
|
|
16310
|
+
_this.version = "3.16.3";
|
|
16307
16311
|
_this.async = new async_1.Async();
|
|
16308
16312
|
_this.buffer = storage_1.Storage.makeStorage();
|
|
16309
16313
|
_this.storage = storage_1.Storage.makeStorage(true, _this.componentName);
|
|
@@ -16450,10 +16454,10 @@ var View = (function (_super) {
|
|
|
16450
16454
|
configurable: true
|
|
16451
16455
|
});
|
|
16452
16456
|
View.prototype.getVersion = function () {
|
|
16453
|
-
return "3.16.
|
|
16457
|
+
return "3.16.3";
|
|
16454
16458
|
};
|
|
16455
16459
|
View.getVersion = function () {
|
|
16456
|
-
return "3.16.
|
|
16460
|
+
return "3.16.3";
|
|
16457
16461
|
};
|
|
16458
16462
|
View.prototype.initOptions = function (options) {
|
|
16459
16463
|
this.options = (0, helpers_1.ConfigProto)(options || {}, (0, helpers_1.ConfigProto)(this.options || {}, View.defaultOptions));
|
package/build/jodit.min.css
CHANGED