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.
@@ -12,7 +12,10 @@
12
12
  </component>
13
13
  <component name="ChangeListManager">
14
14
  <list default="true" id="5da7ff7f-03a8-49de-9fbb-8f8640d83b83" name="Default Changelist" comment="">
15
- <change beforePath="$PROJECT_DIR$/test/tests/acceptance/plugins/search.js" beforeDir="false" afterPath="$PROJECT_DIR$/test/tests/acceptance/plugins/search.js" afterDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/CHANGELOG.MD" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.MD" afterDir="false" />
16
+ <change beforePath="$PROJECT_DIR$/src/core/decorators/hook/hook.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/core/decorators/hook/hook.ts" afterDir="false" />
17
+ <change beforePath="$PROJECT_DIR$/src/core/decorators/wait/wait.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/core/decorators/wait/wait.ts" afterDir="false" />
18
+ <change beforePath="$PROJECT_DIR$/test/tests/units/objectObserverTest.js" beforeDir="false" afterPath="$PROJECT_DIR$/test/tests/units/objectObserverTest.js" afterDir="false" />
16
19
  </list>
17
20
  <list id="5049e1d4-15bc-4e3a-b46b-d2ce7537fc13" name="Revert &quot;Some small fixes&quot;" comment="Revert &quot;Some small fixes&quot;&#10;&#10;This reverts commit bc391ec6" />
18
21
  <option name="SHOW_DIALOG" value="false" />
@@ -841,7 +844,7 @@
841
844
  <workItem from="1647717009468" duration="1325000" />
842
845
  <workItem from="1647720525903" duration="602000" />
843
846
  <workItem from="1647723129471" duration="611000" />
844
- <workItem from="1647728375663" duration="463000" />
847
+ <workItem from="1647728375663" duration="3084000" />
845
848
  </task>
846
849
  <task id="LOCAL-01022" summary="Update npm and duck typing Dom.isNode">
847
850
  <created>1646343502774</created>
package/CHANGELOG.MD CHANGED
@@ -9,6 +9,10 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 3.16.3
13
+
14
+ * Fixed composition `wait` and `debounce` decorators
15
+
12
16
  ## 3.16.2
13
17
 
14
18
  #### :bug: Bug Fix
package/build/jodit.css CHANGED
@@ -1,14 +1,14 @@
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.2
4
+ * Version: v3.16.3
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
  /*!
9
9
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
10
10
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
11
- * Version: v3.16.2
11
+ * Version: v3.16.3
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */
@@ -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.2
4
+ * Version: v3.16.3
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.2
4
+ * Version: v3.16.3
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.2
4
+ * Version: v3.16.3
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -5384,7 +5384,7 @@ function hook(status) {
5384
5384
  throw (0,error/* error */.v)('Handler must be a Function');
5385
5385
  }
5386
5386
  target.hookStatus(status, (component) => {
5387
- target[propertyKey].call(component);
5387
+ component[propertyKey].call(component);
5388
5388
  });
5389
5389
  };
5390
5390
  }
@@ -5446,7 +5446,8 @@ function persistent(target, propertyKey) {
5446
5446
 
5447
5447
  function wait(condition) {
5448
5448
  return (target, propertyKey) => {
5449
- if (!(0,helpers.isFunction)(target[propertyKey])) {
5449
+ const fn = target[propertyKey];
5450
+ if (!(0,helpers.isFunction)(fn)) {
5450
5451
  throw (0,helpers.error)('Handler must be a Function');
5451
5452
  }
5452
5453
  target.hookStatus(core_component/* STATUSES.ready */.n$.ready, (component) => {
@@ -5455,15 +5456,18 @@ function wait(condition) {
5455
5456
  : component.j.async;
5456
5457
  const realMethod = component[propertyKey];
5457
5458
  let timeout = 0;
5458
- component[propertyKey] = function callProxy(...args) {
5459
- async.clearTimeout(timeout);
5460
- if (condition(component)) {
5461
- realMethod.apply(component, args);
5462
- }
5463
- else {
5464
- timeout = async.setTimeout(() => callProxy(...args), 10);
5459
+ Object.defineProperty(component, propertyKey, {
5460
+ configurable: true,
5461
+ value: function callProxy(...args) {
5462
+ async.clearTimeout(timeout);
5463
+ if (condition(component)) {
5464
+ realMethod.apply(component, args);
5465
+ }
5466
+ else {
5467
+ timeout = async.setTimeout(() => callProxy(...args), 10);
5468
+ }
5465
5469
  }
5466
- };
5470
+ });
5467
5471
  });
5468
5472
  };
5469
5473
  }
@@ -11754,7 +11758,7 @@ class View extends component/* Component */.wA {
11754
11758
  this.isView = true;
11755
11759
  this.mods = {};
11756
11760
  this.components = new Set();
11757
- this.version = "3.16.2";
11761
+ this.version = "3.16.3";
11758
11762
  this.async = new Async();
11759
11763
  this.buffer = Storage.makeStorage();
11760
11764
  this.storage = Storage.makeStorage(true, this.componentName);
@@ -11852,10 +11856,10 @@ class View extends component/* Component */.wA {
11852
11856
  return this.__isFullSize;
11853
11857
  }
11854
11858
  getVersion() {
11855
- return "3.16.2";
11859
+ return "3.16.3";
11856
11860
  }
11857
11861
  static getVersion() {
11858
- return "3.16.2";
11862
+ return "3.16.3";
11859
11863
  }
11860
11864
  initOptions(options) {
11861
11865
  this.options = (0,helpers.ConfigProto)(options || {}, (0,helpers.ConfigProto)(this.options || {}, View.defaultOptions));