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
@@ -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
  */
@@ -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
  */
@@ -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
  */
@@ -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
  */
@@ -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
  */
@@ -3,7 +3,7 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- export const APP_VERSION = "4.0.0-beta.94";
6
+ export const APP_VERSION = "4.0.0-beta.95";
7
7
  // prettier-ignore
8
8
  export const ES = "es2020";
9
9
  export const IS_ES_MODERN = true;
@@ -46,6 +46,7 @@ export declare abstract class View extends Component implements IViewBased, Mods
46
46
  */
47
47
  get buffer(): IStorage;
48
48
  get message(): IMessages;
49
+ protected getMessageModule(container: HTMLElement): IMessages;
49
50
  /**
50
51
  * Container for persistent set/get value
51
52
  */
@@ -49,7 +49,10 @@ let View = View_1 = class View extends Component {
49
49
  return Storage.makeStorage();
50
50
  }
51
51
  get message() {
52
- return new UIMessages(this, this.container);
52
+ return this.getMessageModule(this.container);
53
+ }
54
+ getMessageModule(container) {
55
+ return new UIMessages(this, container);
53
56
  }
54
57
  /**
55
58
  * Container for persistent set/get value
package/esm/jodit.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @packageDocumentation
9
9
  * @module jodit
10
10
  */
11
- import type { CustomCommand, IDictionary, IPluginSystem, IStatusBar, IWorkPlace, Modes, IFileBrowser, IJodit, IUploader, ICreate, CanPromise, IHistory, AjaxOptions, IResponse } from "jodit/esm/types";
11
+ import type { CustomCommand, IDictionary, IPluginSystem, IStatusBar, IWorkPlace, Modes, IFileBrowser, IJodit, IUploader, ICreate, CanPromise, IHistory, AjaxOptions, IResponse, IMessages } from "jodit/esm/types";
12
12
  import type * as Modules from "jodit/esm/modules";
13
13
  import { Config } from "jodit/esm/config";
14
14
  import * as constants from "jodit/esm/core/constants";
@@ -104,6 +104,7 @@ export declare class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
104
104
  * workplace It contains source and wysiwyg editors
105
105
  */
106
106
  get workplace(): HTMLDivElement;
107
+ get message(): IMessages;
107
108
  /**
108
109
  * Statusbar module
109
110
  */
package/esm/jodit.js CHANGED
@@ -140,6 +140,9 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
140
140
  get workplace() {
141
141
  return this.currentPlace.workplace;
142
142
  }
143
+ get message() {
144
+ return this.getMessageModule(this.workplace);
145
+ }
143
146
  /**
144
147
  * Statusbar module
145
148
  */
@@ -1227,6 +1230,9 @@ Jodit.core = {
1227
1230
  __decorate([
1228
1231
  cache
1229
1232
  ], Jodit.prototype, "createInside", null);
1233
+ __decorate([
1234
+ cache
1235
+ ], Jodit.prototype, "message", null);
1230
1236
  __decorate([
1231
1237
  cache
1232
1238
  ], Jodit.prototype, "s", null);
@@ -56,7 +56,12 @@ export function send(uploader, data) {
56
56
  .send()
57
57
  .then(resp => resp.json())
58
58
  .catch(error => {
59
- uploader.o.error.call(uploader, error);
59
+ return {
60
+ success: false,
61
+ data: {
62
+ messages: [error]
63
+ }
64
+ };
60
65
  })
61
66
  .finally(() => {
62
67
  ajax.destruct();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit",
3
- "version": "4.0.0-beta.94",
3
+ "version": "4.0.0-beta.95",
4
4
  "description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
5
5
  "main": "esm/index.js",
6
6
  "types": "types/index.d.ts",
@@ -46,6 +46,7 @@ export declare abstract class View extends Component implements IViewBased, Mods
46
46
  */
47
47
  get buffer(): IStorage;
48
48
  get message(): IMessages;
49
+ protected getMessageModule(container: HTMLElement): IMessages;
49
50
  /**
50
51
  * Container for persistent set/get value
51
52
  */
package/types/jodit.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @packageDocumentation
9
9
  * @module jodit
10
10
  */
11
- import type { CustomCommand, IDictionary, IPluginSystem, IStatusBar, IWorkPlace, Modes, IFileBrowser, IJodit, IUploader, ICreate, CanPromise, IHistory, AjaxOptions, IResponse } from "jodit/esm/types";
11
+ import type { CustomCommand, IDictionary, IPluginSystem, IStatusBar, IWorkPlace, Modes, IFileBrowser, IJodit, IUploader, ICreate, CanPromise, IHistory, AjaxOptions, IResponse, IMessages } from "jodit/esm/types";
12
12
  import type * as Modules from "jodit/esm/modules";
13
13
  import { Config } from "jodit/esm/config";
14
14
  import * as constants from "jodit/esm/core/constants";
@@ -104,6 +104,7 @@ export declare class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
104
104
  * workplace It contains source and wysiwyg editors
105
105
  */
106
106
  get workplace(): HTMLDivElement;
107
+ get message(): IMessages;
107
108
  /**
108
109
  * Statusbar module
109
110
  */