jodit 4.1.10 → 4.1.11

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 (55) hide show
  1. package/CHANGELOG.md +9 -5
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +29 -27
  5. package/es2015/jodit.min.js +2 -2
  6. package/es2015/plugins/debug/debug.js +1 -1
  7. package/es2015/plugins/debug/debug.min.js +1 -1
  8. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  11. package/es2018/jodit.css +1 -1
  12. package/es2018/jodit.fat.min.js +2 -2
  13. package/es2018/jodit.js +29 -27
  14. package/es2018/jodit.min.js +2 -2
  15. package/es2018/plugins/debug/debug.js +1 -1
  16. package/es2018/plugins/debug/debug.min.js +1 -1
  17. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  18. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +1 -1
  21. package/es2021/jodit.fat.min.js +2 -2
  22. package/es2021/jodit.js +29 -27
  23. package/es2021/jodit.min.js +2 -2
  24. package/es2021/plugins/debug/debug.js +1 -1
  25. package/es2021/plugins/debug/debug.min.js +1 -1
  26. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  27. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  28. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  29. package/es2021.en/jodit.css +1 -1
  30. package/es2021.en/jodit.fat.min.js +2 -2
  31. package/es2021.en/jodit.js +29 -27
  32. package/es2021.en/jodit.min.js +2 -2
  33. package/es2021.en/plugins/debug/debug.js +1 -1
  34. package/es2021.en/plugins/debug/debug.min.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  37. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  38. package/es5/jodit.css +2 -2
  39. package/es5/jodit.fat.min.js +2 -2
  40. package/es5/jodit.js +31 -29
  41. package/es5/jodit.min.css +2 -2
  42. package/es5/jodit.min.js +2 -2
  43. package/es5/plugins/debug/debug.js +1 -1
  44. package/es5/plugins/debug/debug.min.js +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  47. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  48. package/esm/core/constants.js +1 -1
  49. package/esm/modules/file-browser/config.d.ts +1 -0
  50. package/esm/modules/file-browser/config.js +1 -0
  51. package/esm/modules/file-browser/data-provider.d.ts +1 -1
  52. package/esm/modules/file-browser/data-provider.js +9 -9
  53. package/package.json +1 -1
  54. package/types/modules/file-browser/config.d.ts +1 -0
  55. package/types/modules/file-browser/data-provider.d.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.1.10
4
+ * Version: v4.1.11
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 an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.1.10
4
+ * Version: v4.1.11
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 an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.1.10
4
+ * Version: v4.1.11
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 an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.1.10
4
+ * Version: v4.1.11
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 an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.1.10
4
+ * Version: v4.1.11
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-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- export const APP_VERSION = "4.1.10";
6
+ export const APP_VERSION = "4.1.11";
7
7
  // prettier-ignore
8
8
  export const ES = "es2020";
9
9
  export const IS_ES_MODERN = true;
@@ -7,6 +7,7 @@
7
7
  * @module modules/file-browser
8
8
  */
9
9
  import type { IFileBrowserOptions } from "jodit/esm/types";
10
+ import "jodit/esm/core/request/config";
10
11
  declare module 'jodit/config' {
11
12
  interface Config {
12
13
  filebrowser: IFileBrowserOptions;
@@ -3,6 +3,7 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
+ import "jodit/esm/core/request/config.js";
6
7
  import { isArray, isString } from "jodit/esm/core/helpers/checker/index.js";
7
8
  import { humanSizeToBytes } from "jodit/esm/core/helpers/utils/human-size-to-bytes.js";
8
9
  import { UIFileInput } from "jodit/esm/core/ui/form/inputs/file/file.js";
@@ -17,7 +17,7 @@ export default class DataProvider implements IFileBrowserDataProvider {
17
17
  * Alias for options
18
18
  */
19
19
  get o(): this['options'];
20
- private ajaxInstances;
20
+ private __ajaxInstances;
21
21
  protected get<T extends IFileBrowserAnswer = IFileBrowserAnswer>(name: keyof IFileBrowserOptions): Promise<T>;
22
22
  private progressHandler;
23
23
  onProgress(callback: (percentage: number) => void): void;
@@ -39,7 +39,7 @@ let DataProvider = class DataProvider {
39
39
  this.parent = parent;
40
40
  this.options = options;
41
41
  this.__currentPermissions = null;
42
- this.ajaxInstances = new Map();
42
+ this.__ajaxInstances = new Map();
43
43
  this.progressHandler = (ignore) => { };
44
44
  }
45
45
  /**
@@ -49,11 +49,11 @@ let DataProvider = class DataProvider {
49
49
  return this.options;
50
50
  }
51
51
  get(name) {
52
- const ai = this.ajaxInstances;
53
- if (ai.has(name)) {
54
- const ajax = ai.get(name);
52
+ const instances = this.__ajaxInstances;
53
+ if (instances.has(name)) {
54
+ const ajax = instances.get(name);
55
55
  ajax?.abort();
56
- ai.delete(name);
56
+ instances.delete(name);
57
57
  }
58
58
  const opts = ConfigProto(this.options[name] !== undefined
59
59
  ? this.options[name]
@@ -64,12 +64,12 @@ let DataProvider = class DataProvider {
64
64
  opts.data = opts.prepareData.call(this, opts.data);
65
65
  }
66
66
  const ajax = new Ajax(opts);
67
- ai.set(name, ajax);
67
+ instances.set(name, ajax);
68
68
  const promise = ajax.send();
69
69
  promise
70
70
  .finally(() => {
71
71
  ajax.destruct();
72
- ai.delete(name);
72
+ instances.delete(name);
73
73
  this.progressHandler(100);
74
74
  })
75
75
  .catch(() => null);
@@ -387,8 +387,8 @@ let DataProvider = class DataProvider {
387
387
  return this.options.isSuccess(resp);
388
388
  }
389
389
  destruct() {
390
- this.ajaxInstances.forEach(a => a.destruct());
391
- this.ajaxInstances.clear();
390
+ this.__ajaxInstances.forEach(a => a.destruct());
391
+ this.__ajaxInstances.clear();
392
392
  }
393
393
  };
394
394
  DataProvider = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit",
3
- "version": "4.1.10",
3
+ "version": "4.1.11",
4
4
  "description": "Jodit is an awesome and useful wysiwyg editor with filebrowser",
5
5
  "main": "esm/index.js",
6
6
  "types": "types/index.d.ts",
@@ -7,6 +7,7 @@
7
7
  * @module modules/file-browser
8
8
  */
9
9
  import type { IFileBrowserOptions } from "jodit/esm/types";
10
+ import "jodit/esm/core/request/config";
10
11
  declare module 'jodit/config' {
11
12
  interface Config {
12
13
  filebrowser: IFileBrowserOptions;
@@ -17,7 +17,7 @@ export default class DataProvider implements IFileBrowserDataProvider {
17
17
  * Alias for options
18
18
  */
19
19
  get o(): this['options'];
20
- private ajaxInstances;
20
+ private __ajaxInstances;
21
21
  protected get<T extends IFileBrowserAnswer = IFileBrowserAnswer>(name: keyof IFileBrowserOptions): Promise<T>;
22
22
  private progressHandler;
23
23
  onProgress(callback: (percentage: number) => void): void;