Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Mar 19, 2022
1 parent e591950 commit 145e42e
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 59 deletions.
4 changes: 2 additions & 2 deletions build/jodit.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.en.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
32 changes: 18 additions & 14 deletions build/jodit.es2018.en.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -5384,7 +5384,7 @@ function hook(status) {
throw (0,error/* error */.v)('Handler must be a Function');
}
target.hookStatus(status, (component) => {
target[propertyKey].call(component);
component[propertyKey].call(component);
});
};
}
Expand Down Expand Up @@ -5446,7 +5446,8 @@ function persistent(target, propertyKey) {

function wait(condition) {
return (target, propertyKey) => {
if (!(0,helpers.isFunction)(target[propertyKey])) {
const fn = target[propertyKey];
if (!(0,helpers.isFunction)(fn)) {
throw (0,helpers.error)('Handler must be a Function');
}
target.hookStatus(core_component/* STATUSES.ready */.n$.ready, (component) => {
Expand All @@ -5455,15 +5456,18 @@ function wait(condition) {
: component.j.async;
const realMethod = component[propertyKey];
let timeout = 0;
component[propertyKey] = function callProxy(...args) {
async.clearTimeout(timeout);
if (condition(component)) {
realMethod.apply(component, args);
}
else {
timeout = async.setTimeout(() => callProxy(...args), 10);
Object.defineProperty(component, propertyKey, {
configurable: true,
value: function callProxy(...args) {
async.clearTimeout(timeout);
if (condition(component)) {
realMethod.apply(component, args);
}
else {
timeout = async.setTimeout(() => callProxy(...args), 10);
}
}
};
});
});
};
}
Expand Down Expand Up @@ -11754,7 +11758,7 @@ class View extends component/* Component */.wA {
this.isView = true;
this.mods = {};
this.components = new Set();
this.version = "3.16.2";
this.version = "3.16.3";
this.async = new Async();
this.buffer = Storage.makeStorage();
this.storage = Storage.makeStorage(true, this.componentName);
Expand Down Expand Up @@ -11852,10 +11856,10 @@ class View extends component/* Component */.wA {
return this.__isFullSize;
}
getVersion() {
return "3.16.2";
return "3.16.3";
}
static getVersion() {
return "3.16.2";
return "3.16.3";
}
initOptions(options) {
this.options = (0,helpers.ConfigProto)(options || {}, (0,helpers.ConfigProto)(this.options || {}, View.defaultOptions));
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.en.min.js

Large diffs are not rendered by default.

32 changes: 18 additions & 14 deletions build/jodit.es2018.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -5384,7 +5384,7 @@ function hook(status) {
throw (0,error/* error */.v)('Handler must be a Function');
}
target.hookStatus(status, (component) => {
target[propertyKey].call(component);
component[propertyKey].call(component);
});
};
}
Expand Down Expand Up @@ -5446,7 +5446,8 @@ function persistent(target, propertyKey) {

function wait(condition) {
return (target, propertyKey) => {
if (!(0,helpers.isFunction)(target[propertyKey])) {
const fn = target[propertyKey];
if (!(0,helpers.isFunction)(fn)) {
throw (0,helpers.error)('Handler must be a Function');
}
target.hookStatus(core_component/* STATUSES.ready */.n$.ready, (component) => {
Expand All @@ -5455,15 +5456,18 @@ function wait(condition) {
: component.j.async;
const realMethod = component[propertyKey];
let timeout = 0;
component[propertyKey] = function callProxy(...args) {
async.clearTimeout(timeout);
if (condition(component)) {
realMethod.apply(component, args);
}
else {
timeout = async.setTimeout(() => callProxy(...args), 10);
Object.defineProperty(component, propertyKey, {
configurable: true,
value: function callProxy(...args) {
async.clearTimeout(timeout);
if (condition(component)) {
realMethod.apply(component, args);
}
else {
timeout = async.setTimeout(() => callProxy(...args), 10);
}
}
};
});
});
};
}
Expand Down Expand Up @@ -15987,7 +15991,7 @@ class View extends component/* Component */.wA {
this.isView = true;
this.mods = {};
this.components = new Set();
this.version = "3.16.2";
this.version = "3.16.3";
this.async = new Async();
this.buffer = Storage.makeStorage();
this.storage = Storage.makeStorage(true, this.componentName);
Expand Down Expand Up @@ -16085,10 +16089,10 @@ class View extends component/* Component */.wA {
return this.__isFullSize;
}
getVersion() {
return "3.16.2";
return "3.16.3";
}
static getVersion() {
return "3.16.2";
return "3.16.3";
}
initOptions(options) {
this.options = (0,helpers.ConfigProto)(options || {}, (0,helpers.ConfigProto)(this.options || {}, View.defaultOptions));
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.min.js

Large diffs are not rendered by default.

40 changes: 22 additions & 18 deletions build/jodit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -9948,7 +9948,7 @@ function hook(status) {
throw (0, error_1.error)('Handler must be a Function');
}
target.hookStatus(status, function (component) {
target[propertyKey].call(component);
component[propertyKey].call(component);
});
};
}
Expand Down Expand Up @@ -10038,7 +10038,8 @@ var helpers_1 = __webpack_require__(146);
var component_1 = __webpack_require__(154);
function wait(condition) {
return function (target, propertyKey) {
if (!(0, helpers_1.isFunction)(target[propertyKey])) {
var fn = target[propertyKey];
if (!(0, helpers_1.isFunction)(fn)) {
throw (0, helpers_1.error)('Handler must be a Function');
}
target.hookStatus(component_1.STATUSES.ready, function (component) {
Expand All @@ -10047,19 +10048,22 @@ function wait(condition) {
: component.j.async;
var realMethod = component[propertyKey];
var timeout = 0;
component[propertyKey] = function callProxy() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
async.clearTimeout(timeout);
if (condition(component)) {
realMethod.apply(component, args);
}
else {
timeout = async.setTimeout(function () { return callProxy.apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(args), false)); }, 10);
Object.defineProperty(component, propertyKey, {
configurable: true,
value: function callProxy() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
async.clearTimeout(timeout);
if (condition(component)) {
realMethod.apply(component, args);
}
else {
timeout = async.setTimeout(function () { return callProxy.apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(args), false)); }, 10);
}
}
};
});
});
};
}
Expand Down Expand Up @@ -16303,7 +16307,7 @@ var View = (function (_super) {
_this.isView = true;
_this.mods = {};
_this.components = new Set();
_this.version = "3.16.2";
_this.version = "3.16.3";
_this.async = new async_1.Async();
_this.buffer = storage_1.Storage.makeStorage();
_this.storage = storage_1.Storage.makeStorage(true, _this.componentName);
Expand Down Expand Up @@ -16450,10 +16454,10 @@ var View = (function (_super) {
configurable: true
});
View.prototype.getVersion = function () {
return "3.16.2";
return "3.16.3";
};
View.getVersion = function () {
return "3.16.2";
return "3.16.3";
};
View.prototype.initOptions = function (options) {
this.options = (0, helpers_1.ConfigProto)(options || {}, (0, helpers_1.ConfigProto)(this.options || {}, View.defaultOptions));
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/jodit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/vdom.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/vdom.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.16.2
* Version: v3.16.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "3.16.2",
"version": "3.16.3",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down

0 comments on commit 145e42e

Please sign in to comment.