jodit 4.7.5 → 4.7.7
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.
- package/CHANGELOG.md +41 -0
- package/README.md +4 -18
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +8 -8
- package/es2015/jodit.js +85 -137
- package/es2015/jodit.min.js +7 -7
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +9 -3
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.fat.min.js +8 -8
- package/es2018/jodit.min.js +7 -7
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +39 -39
- package/es2021/jodit.js +85 -137
- package/es2021/jodit.min.js +40 -40
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +4 -4
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +9 -3
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +76 -76
- package/es2021.en/jodit.js +85 -137
- package/es2021.en/jodit.min.js +76 -76
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +4 -4
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +9 -3
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +86 -141
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +9 -3
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/decorators/autobind/autobind.d.ts +19 -1
- package/esm/core/decorators/autobind/autobind.js +40 -1
- package/esm/modules/file-browser/data-provider.js +2 -17
- package/esm/plugins/resize-handler/resize-handler.js +10 -5
- package/esm/plugins/size/size.js +8 -6
- package/esm/plugins/speech-recognize/helpers/recognize-manager.js +13 -9
- package/esm/tsconfig.json +1 -1
- package/package.json +1 -1
- package/types/core/decorators/autobind/autobind.d.ts +19 -1
- 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.
|
|
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.
|
|
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.
|
|
113
|
+
href="https://unpkg.com/jodit@4.7.6/es2021/jodit.min.css"
|
|
128
114
|
/>
|
|
129
|
-
<script src="https://unpkg.com/jodit@4.
|
|
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