jodit 4.11.3 → 4.11.5

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 (72) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/es2015/jodit.css +21 -3
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +14 -14
  5. package/es2015/jodit.js +97 -22
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +5 -5
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +7 -7
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +14 -14
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +21 -3
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +8 -8
  23. package/es2021/jodit.js +96 -21
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +6 -6
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +21 -3
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +7 -7
  35. package/es2021.en/jodit.js +96 -21
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +6 -6
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +29 -6
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +112 -28
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/core/constants.js +1 -1
  60. package/esm/core/ui/button/button/button.js +2 -1
  61. package/esm/core/ui/icon.js +5 -2
  62. package/esm/core/ui/progress-bar/progress-bar.d.ts +9 -0
  63. package/esm/core/ui/progress-bar/progress-bar.js +53 -0
  64. package/esm/modules/toolbar/button/button.d.ts +1 -0
  65. package/esm/modules/toolbar/button/button.js +29 -19
  66. package/esm/types/toolbar.d.ts +12 -2
  67. package/esm/types/ui.d.ts +1 -0
  68. package/package.json +1 -1
  69. package/types/core/ui/progress-bar/progress-bar.d.ts +9 -0
  70. package/types/modules/toolbar/button/button.d.ts +1 -0
  71. package/types/types/toolbar.d.ts +12 -2
  72. package/types/types/ui.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,57 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.11.5
13
+
14
+ #### :rocket: New Feature
15
+
16
+ - `ProgressBar.showFileUploadAnimation(from?, to?)` — animated file icon that flies from a given point and fades out. Coordinates are relative to the editor container. Both `from` and `to` are optional with sensible defaults. The animation is automatically cleaned up on `destruct()`.
17
+ ```js
18
+ const editor = Jodit.make('#editor')
19
+ jodit.progressbar.showFileUploadAnimation();
20
+ ```
21
+
22
+ ## 4.11.4
23
+
24
+ #### :boom: Breaking Change
25
+
26
+ - `.jodit-icon` `transform-origin` changed from `0 0 !important` to `var(--jd-icon-transform-origin)` (default `center`), and the `!important` flag was removed. If your layout depends on the old top-left origin, restore it via CSS:
27
+ ```css
28
+ :root {
29
+ --jd-icon-transform-origin: 0 0 !important;
30
+ }
31
+ ```
32
+
33
+ #### :rocket: New Feature
34
+
35
+ - `IUIIconState` now supports `scale` property — when set, applies `transform: scale(...)` to the SVG icon element, overriding the CSS variable
36
+ - `IControlType.icon` now accepts `string | IUIIconState` — allows setting icon name, fill, iconURL, and scale directly from toolbar button config
37
+
38
+ Per-button scale example:
39
+ ```javascript
40
+ Jodit.make('#editor', {
41
+ buttons: Jodit.atom([
42
+ 'bold',
43
+ {
44
+ name: 'big-italic',
45
+ icon: { name: 'italic', fill: '', iconURL: '', scale: 1.5 },
46
+ tooltip: 'Italic (large icon)'
47
+ },
48
+ 'underline'
49
+ ])
50
+ });
51
+ ```
52
+
53
+ - CSS custom properties `--jd-icon-transform-origin` and `--jd-icon-transform-scale` for global icon scaling. Override them to resize all editor icons at once. Per-button `scale` in `IUIIconState` takes priority over the CSS variable.
54
+
55
+ Global scale override via CSS:
56
+ ```css
57
+ :root {
58
+ --jd-icon-transform-scale: 1.3;
59
+ --jd-icon-transform-origin: center;
60
+ }
61
+ ```
62
+
12
63
  ## 4.11.2
13
64
 
14
65
  #### :boom: Breaking Change
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.11.3
4
+ * Version: v4.11.5
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1300,7 +1300,7 @@
1300
1300
  }
1301
1301
  .jodit-progress-bar {
1302
1302
  position: absolute;
1303
- z-index: 2147483647;
1303
+ z-index: var(--jd-z-index-tooltip);
1304
1304
  top: 0;
1305
1305
  left: 0;
1306
1306
  height: 2px;
@@ -1336,6 +1336,21 @@
1336
1336
  width: 20px;
1337
1337
  clip: rect(-6px, 22px, 14px, var(--jd-padding-default));
1338
1338
  }
1339
+ .jodit-progress-bar__file-animation {
1340
+ position: fixed;
1341
+ width: 32px;
1342
+ height: 32px;
1343
+ opacity: 0.8;
1344
+ pointer-events: none;
1345
+ z-index: 2147483647;
1346
+ transform: scale(1);
1347
+ transition: left 800ms ease-in, top 800ms ease-in, opacity 800ms ease-in, transform 800ms ease-in;
1348
+ }
1349
+ .jodit-progress-bar__file-animation svg {
1350
+ width: 100%;
1351
+ height: 100%;
1352
+ fill: var(--jd-color-background-progress);
1353
+ }
1339
1354
 
1340
1355
  /*!
1341
1356
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -4894,6 +4909,8 @@ html.jodit_fullsize-box_true {
4894
4909
  --jd-button-df-size: calc((var(--jd-button-icon-size) - 4px) * 2);
4895
4910
  --jd-button-size: calc(var(--jd-button-icon-size) + var(--jd-button-df-size) + var(--jd-margin-v) * 2);
4896
4911
  --jd-focus-input-box-shadow: 0 0 0 0.05rem rgba(0, 123, 255, 0.25);
4912
+ --jd-icon-transform-origin: center;
4913
+ --jd-icon-transform-scale: 1;
4897
4914
  }
4898
4915
  /*!
4899
4916
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -5382,7 +5399,8 @@ input:focus + .jodit-switcher__slider {
5382
5399
  background-size: contain;
5383
5400
  fill: var(--jd-color-icon);
5384
5401
  stroke: var(--jd-color-icon);
5385
- transform-origin: 0 0 !important;
5402
+ transform-origin: var(--jd-icon-transform-origin);
5403
+ transform: scale(var(--jd-icon-transform-scale, 1));
5386
5404
  }
5387
5405
  .jodit-icon_close {
5388
5406
  stroke: var(--jd-color-icon);