jodit 4.0.0-beta.94 → 4.0.0-beta.95

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +9 -5
  2. package/README.md +5 -5
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +18 -4
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.css +1 -1
  13. package/es2018/jodit.fat.min.js +2 -2
  14. package/es2018/jodit.js +18 -4
  15. package/es2018/jodit.min.js +2 -2
  16. package/es2018/plugins/debug/debug.js +1 -1
  17. package/es2018/plugins/debug/debug.min.js +1 -1
  18. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  21. package/es2021/jodit.css +1 -1
  22. package/es2021/jodit.fat.min.js +2 -2
  23. package/es2021/jodit.js +18 -4
  24. package/es2021/jodit.min.js +2 -2
  25. package/es2021/plugins/debug/debug.js +1 -1
  26. package/es2021/plugins/debug/debug.min.js +1 -1
  27. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  28. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  30. package/es2021.en/jodit.css +1 -1
  31. package/es2021.en/jodit.fat.min.js +2 -2
  32. package/es2021.en/jodit.js +18 -4
  33. package/es2021.en/jodit.min.js +2 -2
  34. package/es2021.en/plugins/debug/debug.js +1 -1
  35. package/es2021.en/plugins/debug/debug.min.js +1 -1
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  37. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  38. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  39. package/es5/jodit.css +2 -2
  40. package/es5/jodit.fat.min.js +2 -2
  41. package/es5/jodit.js +22 -4
  42. package/es5/jodit.min.css +2 -2
  43. package/es5/jodit.min.js +2 -2
  44. package/es5/plugins/debug/debug.js +1 -1
  45. package/es5/plugins/debug/debug.min.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  47. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  48. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  49. package/esm/core/constants.js +1 -1
  50. package/esm/core/view/view.d.ts +1 -0
  51. package/esm/core/view/view.js +4 -1
  52. package/esm/jodit.d.ts +2 -1
  53. package/esm/jodit.js +6 -0
  54. package/esm/modules/uploader/helpers/send.js +6 -1
  55. package/package.json +1 -1
  56. package/types/core/view/view.d.ts +1 -0
  57. package/types/jodit.d.ts +2 -1
package/es5/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/jodit/)
4
- * Version: v4.0.0-beta.94
4
+ * Version: v4.0.0-beta.95
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -3108,7 +3108,7 @@ __webpack_require__.r(__webpack_exports__);
3108
3108
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
3109
3109
  */
3110
3110
 
3111
- var APP_VERSION = "4.0.0-beta.94";
3111
+ var APP_VERSION = "4.0.0-beta.95";
3112
3112
  // prettier-ignore
3113
3113
  var ES = "es5";
3114
3114
  var IS_ES_MODERN = false;
@@ -17879,11 +17879,14 @@ var View = /** @class */ (function (_super) {
17879
17879
  });
17880
17880
  Object.defineProperty(View.prototype, "message", {
17881
17881
  get: function () {
17882
- return new jodit_modules_messages_messages__WEBPACK_IMPORTED_MODULE_9__/* .UIMessages */ .D(this, this.container);
17882
+ return this.getMessageModule(this.container);
17883
17883
  },
17884
17884
  enumerable: false,
17885
17885
  configurable: true
17886
17886
  });
17887
+ View.prototype.getMessageModule = function (container) {
17888
+ return new jodit_modules_messages_messages__WEBPACK_IMPORTED_MODULE_9__/* .UIMessages */ .D(this, container);
17889
+ };
17887
17890
  Object.defineProperty(View.prototype, "storage", {
17888
17891
  /**
17889
17892
  * Container for persistent set/get value
@@ -18409,6 +18412,13 @@ var Jodit = /** @class */ (function (_super) {
18409
18412
  enumerable: false,
18410
18413
  configurable: true
18411
18414
  });
18415
+ Object.defineProperty(Jodit.prototype, "message", {
18416
+ get: function () {
18417
+ return this.getMessageModule(this.workplace);
18418
+ },
18419
+ enumerable: false,
18420
+ configurable: true
18421
+ });
18412
18422
  Object.defineProperty(Jodit.prototype, "statusbar", {
18413
18423
  /**
18414
18424
  * Statusbar module
@@ -19506,6 +19516,9 @@ var Jodit = /** @class */ (function (_super) {
19506
19516
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
19507
19517
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
19508
19518
  ], Jodit.prototype, "createInside", null);
19519
+ (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
19520
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
19521
+ ], Jodit.prototype, "message", null);
19509
19522
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
19510
19523
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
19511
19524
  ], Jodit.prototype, "s", null);
@@ -26439,7 +26452,12 @@ function send(uploader, data) {
26439
26452
  .send()
26440
26453
  .then(function (resp) { return resp.json(); })
26441
26454
  .catch(function (error) {
26442
- uploader.o.error.call(uploader, error);
26455
+ return {
26456
+ success: false,
26457
+ data: {
26458
+ messages: [error]
26459
+ }
26460
+ };
26443
26461
  })
26444
26462
  .finally(function () {
26445
26463
  ajax.destruct();
package/es5/jodit.min.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/jodit/)
4
- * Version: v4.0.0-beta.94
4
+ * Version: v4.0.0-beta.95
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/jodit/)
11
- * Version: v4.0.0-beta.94
11
+ * Version: v4.0.0-beta.95
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */