jodit 4.0.6 → 4.0.13

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 (133) hide show
  1. package/CHANGELOG.md +15 -5
  2. package/es2015/jodit.css +19 -19
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +633 -529
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +2 -2
  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 +72 -46
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  13. package/es2018/jodit.css +19 -19
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +2 -2
  16. package/es2018/jodit.js +633 -529
  17. package/es2018/jodit.min.css +1 -1
  18. package/es2018/jodit.min.js +2 -2
  19. package/es2018/plugins/debug/debug.js +1 -1
  20. package/es2018/plugins/debug/debug.min.js +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  22. package/es2018/plugins/speech-recognize/speech-recognize.js +72 -46
  23. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
  24. package/es2021/jodit.css +19 -19
  25. package/es2021/jodit.fat.min.css +1 -1
  26. package/es2021/jodit.fat.min.js +2 -2
  27. package/es2021/jodit.js +632 -528
  28. package/es2021/jodit.min.css +1 -1
  29. package/es2021/jodit.min.js +2 -2
  30. package/es2021/plugins/debug/debug.js +1 -1
  31. package/es2021/plugins/debug/debug.min.js +1 -1
  32. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  33. package/es2021/plugins/speech-recognize/speech-recognize.js +72 -46
  34. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  35. package/es2021.en/jodit.css +19 -19
  36. package/es2021.en/jodit.fat.min.css +1 -1
  37. package/es2021.en/jodit.fat.min.js +2 -2
  38. package/es2021.en/jodit.js +333 -313
  39. package/es2021.en/jodit.min.css +1 -1
  40. package/es2021.en/jodit.min.js +2 -2
  41. package/es2021.en/plugins/debug/debug.js +1 -1
  42. package/es2021.en/plugins/debug/debug.min.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.js +3 -1
  45. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  46. package/es5/jodit.css +25 -19
  47. package/es5/jodit.fat.min.css +1 -1
  48. package/es5/jodit.fat.min.js +2 -2
  49. package/es5/jodit.js +646 -542
  50. package/es5/jodit.min.css +3 -3
  51. package/es5/jodit.min.js +2 -2
  52. package/es5/plugins/debug/debug.js +1 -1
  53. package/es5/plugins/debug/debug.min.js +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +72 -46
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  57. package/esm/core/async/async.d.ts +1 -1
  58. package/esm/core/async/async.js +2 -2
  59. package/esm/core/constants.js +1 -1
  60. package/esm/core/create/create.d.ts +1 -1
  61. package/esm/core/helpers/utils/append-script.d.ts +1 -5
  62. package/esm/core/helpers/utils/append-script.js +13 -28
  63. package/esm/core/plugin/helpers/load.d.ts +1 -1
  64. package/esm/core/plugin/helpers/load.js +2 -2
  65. package/esm/core/plugin/plugin-system.js +5 -5
  66. package/esm/core/plugin/plugin.js +5 -1
  67. package/esm/core/ui/popup/popup.js +1 -0
  68. package/esm/core/view/view-with-toolbar.js +4 -1
  69. package/esm/langs/fi.d.ts +218 -0
  70. package/esm/langs/fi.js +231 -0
  71. package/esm/languages.js +2 -0
  72. package/esm/plugins/add-new-line/add-new-line.d.ts +14 -14
  73. package/esm/plugins/add-new-line/add-new-line.js +76 -73
  74. package/esm/plugins/copy-format/langs/fi.d.ts +4 -0
  75. package/esm/plugins/copy-format/langs/fi.js +9 -0
  76. package/esm/plugins/copy-format/langs/index.d.ts +2 -1
  77. package/esm/plugins/copy-format/langs/index.js +2 -1
  78. package/esm/plugins/line-height/langs/fi.d.ts +4 -0
  79. package/esm/plugins/line-height/langs/fi.js +9 -0
  80. package/esm/plugins/line-height/langs/index.d.ts +2 -1
  81. package/esm/plugins/line-height/langs/index.js +2 -1
  82. package/esm/plugins/resizer/resizer.d.ts +2 -2
  83. package/esm/plugins/resizer/resizer.js +12 -13
  84. package/esm/plugins/search/config.d.ts +5 -0
  85. package/esm/plugins/search/config.js +3 -1
  86. package/esm/plugins/search/helpers/{wrap-ranges-texts-in-tmp-span.d.ts → highlight-text-ranges.d.ts} +2 -2
  87. package/esm/plugins/search/helpers/{wrap-ranges-texts-in-tmp-span.js → highlight-text-ranges.js} +19 -1
  88. package/esm/plugins/search/helpers/index.d.ts +1 -1
  89. package/esm/plugins/search/helpers/index.js +1 -1
  90. package/esm/plugins/search/search.d.ts +1 -1
  91. package/esm/plugins/search/search.js +4 -4
  92. package/esm/plugins/source/source.js +1 -1
  93. package/esm/plugins/speech-recognize/langs/fi.d.ts +9 -0
  94. package/esm/plugins/speech-recognize/langs/fi.js +14 -0
  95. package/esm/plugins/speech-recognize/langs/index.d.ts +2 -1
  96. package/esm/plugins/speech-recognize/langs/index.js +2 -1
  97. package/esm/plugins/spellcheck/langs/fi.d.ts +1 -0
  98. package/esm/plugins/spellcheck/langs/fi.js +9 -0
  99. package/esm/plugins/spellcheck/langs/index.d.ts +2 -1
  100. package/esm/plugins/spellcheck/langs/index.js +2 -1
  101. package/esm/plugins/symbols/langs/fi.d.ts +1 -0
  102. package/esm/plugins/symbols/langs/fi.js +9 -0
  103. package/esm/plugins/symbols/langs/index.d.ts +2 -1
  104. package/esm/plugins/symbols/langs/index.js +2 -1
  105. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +1 -1
  106. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +70 -73
  107. package/esm/tsconfig.json +1 -1
  108. package/esm/types/create.d.ts +1 -1
  109. package/package.json +1 -1
  110. package/types/core/async/async.d.ts +1 -1
  111. package/types/core/create/create.d.ts +1 -1
  112. package/types/core/helpers/utils/append-script.d.ts +1 -5
  113. package/types/core/plugin/helpers/load.d.ts +1 -1
  114. package/types/langs/fi.d.ts +218 -0
  115. package/types/plugins/add-new-line/add-new-line.d.ts +14 -14
  116. package/types/plugins/copy-format/langs/fi.d.ts +4 -0
  117. package/types/plugins/copy-format/langs/index.d.ts +2 -1
  118. package/types/plugins/line-height/langs/fi.d.ts +4 -0
  119. package/types/plugins/line-height/langs/index.d.ts +2 -1
  120. package/types/plugins/resizer/resizer.d.ts +2 -2
  121. package/types/plugins/search/config.d.ts +5 -0
  122. package/types/plugins/search/helpers/{wrap-ranges-texts-in-tmp-span.d.ts → highlight-text-ranges.d.ts} +2 -2
  123. package/types/plugins/search/helpers/index.d.ts +1 -1
  124. package/types/plugins/search/search.d.ts +1 -1
  125. package/types/plugins/speech-recognize/langs/fi.d.ts +9 -0
  126. package/types/plugins/speech-recognize/langs/index.d.ts +2 -1
  127. package/types/plugins/spellcheck/langs/fi.d.ts +1 -0
  128. package/types/plugins/spellcheck/langs/index.d.ts +2 -1
  129. package/types/plugins/symbols/langs/fi.d.ts +1 -0
  130. package/types/plugins/symbols/langs/index.d.ts +2 -1
  131. package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +1 -1
  132. package/types/tsconfig.json +1 -1
  133. package/types/types/create.d.ts +1 -1
@@ -6,11 +6,11 @@
6
6
  /**
7
7
  * @module plugins/search
8
8
  */
9
- import type { ICreate, ISelectionRange } from "jodit/esm/types";
9
+ import type { ICreate, IJodit, ISelectionRange } from "jodit/esm/types";
10
10
  /**
11
11
  * @private
12
12
  */
13
- export declare function wrapRangesTextsInTmpSpan(rng: ISelectionRange, restRanges: ISelectionRange[], ci: ICreate, root: HTMLElement): void;
13
+ export declare function highlightTextRanges(jodit: IJodit, rng: ISelectionRange, restRanges: ISelectionRange[], ci: ICreate, root: HTMLElement): void;
14
14
  /**
15
15
  * @private
16
16
  */
@@ -7,4 +7,4 @@
7
7
  * @module plugins/search
8
8
  */
9
9
  export * from "./sentence-finder";
10
- export * from "./wrap-ranges-texts-in-tmp-span";
10
+ export * from "./highlight-text-ranges";
@@ -46,7 +46,7 @@ export declare class search extends Plugin {
46
46
  private isValidCache;
47
47
  private find;
48
48
  private wrapFrameRequest;
49
- private drawSelectionRanges;
49
+ private __drawSelectionRanges;
50
50
  protected onAfterGetValueFromEditor(data: {
51
51
  value: string;
52
52
  }): void;
@@ -0,0 +1,9 @@
1
+ declare const _exports: {
2
+ 'Speech Recognize': string;
3
+ newline: string;
4
+ delete: string;
5
+ space: string;
6
+ Sound: string;
7
+ 'Interim Results': string;
8
+ };
9
+ export = _exports;
@@ -8,6 +8,7 @@ import * as cs_cz from "./cs_cz.js";
8
8
  import * as de from "./de.js";
9
9
  import * as es from "./es.js";
10
10
  import * as fa from "./fa.js";
11
+ import * as fi from "./fi.js";
11
12
  import * as fr from "./fr.js";
12
13
  import * as he from "./he.js";
13
14
  import * as hu from "./hu.js";
@@ -23,4 +24,4 @@ import * as ru from "./ru.js";
23
24
  import * as tr from "./tr.js";
24
25
  import * as zh_cn from "./zh_cn.js";
25
26
  import * as zh_tw from "./zh_tw.js";
26
- export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
27
+ export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
@@ -0,0 +1 @@
1
+ export let Spellcheck: string;
@@ -8,6 +8,7 @@ import * as cs_cz from "./cs_cz.js";
8
8
  import * as de from "./de.js";
9
9
  import * as es from "./es.js";
10
10
  import * as fa from "./fa.js";
11
+ import * as fi from "./fi.js";
11
12
  import * as fr from "./fr.js";
12
13
  import * as he from "./he.js";
13
14
  import * as hu from "./hu.js";
@@ -23,4 +24,4 @@ import * as ru from "./ru.js";
23
24
  import * as tr from "./tr.js";
24
25
  import * as zh_cn from "./zh_cn.js";
25
26
  import * as zh_tw from "./zh_tw.js";
26
- export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
27
+ export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
@@ -0,0 +1 @@
1
+ export let symbols: string;
@@ -8,6 +8,7 @@ import * as cs_cz from "./cs_cz.js";
8
8
  import * as de from "./de.js";
9
9
  import * as es from "./es.js";
10
10
  import * as fa from "./fa.js";
11
+ import * as fi from "./fi.js";
11
12
  import * as fr from "./fr.js";
12
13
  import * as he from "./he.js";
13
14
  import * as hu from "./hu.js";
@@ -23,4 +24,4 @@ import * as ru from "./ru.js";
23
24
  import * as tr from "./tr.js";
24
25
  import * as zh_cn from "./zh_cn.js";
25
26
  import * as zh_tw from "./zh_tw.js";
26
- export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
27
+ export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
@@ -10,6 +10,6 @@
10
10
  */
11
11
  import type { IJodit } from "jodit/esm/types";
12
12
  /**
13
- * Process navigate keypressing in table cell
13
+ * Process navigates key pressing in table cell
14
14
  */
15
15
  export declare function tableKeyboardNavigation(editor: IJodit): void;
@@ -35,7 +35,7 @@
35
35
 
36
36
  "importHelpers": true,
37
37
 
38
- "lib": ["es5", "esnext", "dom", "scripthost", "es2015.iterable"],
38
+ "lib": ["es5", "esnext", "DOM", "scripthost", "es2015.iterable"],
39
39
 
40
40
  "baseUrl": ".",
41
41
  "paths": {
@@ -41,7 +41,7 @@ interface ICreate {
41
41
  /**
42
42
  * Create DOM element from HTML text
43
43
  */
44
- fromHTML(html: string, refs?: IDictionary<boolean>): HTMLElement;
44
+ fromHTML<T extends HTMLElement>(html: string, refs?: IDictionary<boolean>): T;
45
45
  /**
46
46
  * Apply to element `createAttributes` options
47
47
  */