jodit 4.7.5 → 4.7.6

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 (61) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +4 -18
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.fat.min.js +8 -8
  5. package/es2015/jodit.js +85 -137
  6. package/es2015/jodit.min.js +7 -7
  7. package/es2015/plugins/debug/debug.css +1 -1
  8. package/es2015/plugins/debug/debug.js +1 -1
  9. package/es2015/plugins/debug/debug.min.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.js +9 -3
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  13. package/es2018/jodit.fat.min.js +8 -8
  14. package/es2018/jodit.min.js +7 -7
  15. package/es2018/plugins/debug/debug.min.js +1 -1
  16. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
  17. package/es2021/jodit.css +1 -1
  18. package/es2021/jodit.fat.min.js +9 -9
  19. package/es2021/jodit.js +85 -137
  20. package/es2021/jodit.min.js +8 -8
  21. package/es2021/plugins/debug/debug.css +1 -1
  22. package/es2021/plugins/debug/debug.js +1 -1
  23. package/es2021/plugins/debug/debug.min.js +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.js +9 -3
  26. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  27. package/es2021.en/jodit.css +1 -1
  28. package/es2021.en/jodit.fat.min.js +10 -10
  29. package/es2021.en/jodit.js +85 -137
  30. package/es2021.en/jodit.min.js +9 -9
  31. package/es2021.en/plugins/debug/debug.css +1 -1
  32. package/es2021.en/plugins/debug/debug.js +1 -1
  33. package/es2021.en/plugins/debug/debug.min.js +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.js +9 -3
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  37. package/es5/jodit.css +2 -2
  38. package/es5/jodit.fat.min.js +2 -2
  39. package/es5/jodit.js +86 -141
  40. package/es5/jodit.min.css +2 -2
  41. package/es5/jodit.min.js +2 -2
  42. package/es5/plugins/debug/debug.css +1 -1
  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 +9 -3
  47. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  48. package/es5/polyfills.fat.min.js +1 -1
  49. package/es5/polyfills.js +1 -1
  50. package/es5/polyfills.min.js +1 -1
  51. package/esm/core/constants.js +1 -1
  52. package/esm/core/decorators/autobind/autobind.d.ts +19 -1
  53. package/esm/core/decorators/autobind/autobind.js +40 -1
  54. package/esm/modules/file-browser/data-provider.js +2 -17
  55. package/esm/plugins/resize-handler/resize-handler.js +10 -5
  56. package/esm/plugins/size/size.js +8 -6
  57. package/esm/plugins/speech-recognize/helpers/recognize-manager.js +13 -9
  58. package/esm/tsconfig.json +1 -1
  59. package/package.json +1 -1
  60. package/types/core/decorators/autobind/autobind.d.ts +19 -1
  61. package/types/tsconfig.json +1 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,47 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.7.6
13
+
14
+ #### :boom: Breaking Change
15
+
16
+ - **`@autobind` decorator now only supports methods, not classes**
17
+ - Replaced external `autobind-decorator` dependency with internal implementation
18
+ - The old package is no longer maintained (last release was 7 years ago)
19
+ - **Migration Option 1** (Recommended): Apply `@autobind` to individual methods:
20
+ ```typescript
21
+ // Before (no longer supported):
22
+ @autobind
23
+ class MyClass {
24
+ method1() { }
25
+ method2() { }
26
+ }
27
+
28
+ // After:
29
+ class MyClass {
30
+ @autobind
31
+ method1() { }
32
+
33
+ @autobind
34
+ method2() { }
35
+ }
36
+ ```
37
+ - **Migration Option 2** (If you need class-level binding): Install and use the original package directly:
38
+ ```bash
39
+ npm install autobind-decorator
40
+ ```
41
+ ```typescript
42
+ import autobind from 'autobind-decorator';
43
+
44
+ @autobind
45
+ class MyClass {
46
+ method1() { }
47
+ method2() { }
48
+ }
49
+ ```
50
+ Note: `autobind-decorator` package is no longer maintained, but it still works if you need class-level binding.
51
+ - Internal affected files: `data-provider.ts`, `resize-handler.ts`, `size.ts`, `recognize-manager.ts`
52
+
12
53
  ## 4.7.5
13
54
 
14
55
  #### :rocket: New Feature
package/README.md CHANGED
@@ -58,13 +58,6 @@ ES2021 Version (for modern browsers only):
58
58
  #### ESM Modules:
59
59
 
60
60
  ```html
61
- <script type="importmap">
62
- {
63
- "imports": {
64
- "autobind-decorator": "https://unpkg.com/autobind-decorator@2.4.0/lib/esm/index.js"
65
- }
66
- }
67
- </script>
68
61
  <link rel="stylesheet" href="./node_modules/jodit/es2021/jodit.min.css" />
69
62
  <script type="module">
70
63
  import { Jodit } from './node_modules/jodit/esm/index.js';
@@ -79,13 +72,6 @@ The ESM modules automatically include only the [basic set of plugins](https://gi
79
72
  You can manually include additional plugins and languages as needed.
80
73
 
81
74
  ```html
82
- <script type="importmap">
83
- {
84
- "imports": {
85
- "autobind-decorator": "https://unpkg.com/autobind-decorator@2.4.0/lib/esm/index.js"
86
- }
87
- }
88
- </script>
89
75
  <link rel="stylesheet" href="./node_modules/jodit/es2021/jodit.min.css" />
90
76
  <script type="module">
91
77
  import { Jodit } from './node_modules/jodit/esm/index.js';
@@ -114,9 +100,9 @@ You can manually include additional plugins and languages as needed.
114
100
  ```html
115
101
  <link
116
102
  rel="stylesheet"
117
- href="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.1/es2021/jodit.min.css"
103
+ href="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.7.6/es2021/jodit.min.css"
118
104
  />
119
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.1/es2021/jodit.min.js"></script>
105
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.7.6/es2021/jodit.min.js"></script>
120
106
  ```
121
107
 
122
108
  #### unpkg
@@ -124,9 +110,9 @@ You can manually include additional plugins and languages as needed.
124
110
  ```html
125
111
  <link
126
112
  rel="stylesheet"
127
- href="https://unpkg.com/jodit@4.0.1/es2021/jodit.min.css"
113
+ href="https://unpkg.com/jodit@4.7.6/es2021/jodit.min.css"
128
114
  />
129
- <script src="https://unpkg.com/jodit@4.0.1/es2021/jodit.min.js"></script>
115
+ <script src="https://unpkg.com/jodit@4.7.6/es2021/jodit.min.js"></script>
130
116
  ```
131
117
 
132
118
  ### Usage
package/es2015/jodit.css CHANGED
@@ -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.7.5
4
+ * Version: v4.7.6
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */