@ckeditor/ckeditor5-word-count 41.3.0-alpha.3 → 41.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/package.json +2 -3
  2. package/src/index.d.ts +1 -1
  3. package/dist/content-index.css +0 -4
  4. package/dist/editor-index.css +0 -4
  5. package/dist/index.css +0 -4
  6. package/dist/translations/ar.d.ts +0 -8
  7. package/dist/translations/ar.js +0 -5
  8. package/dist/translations/az.d.ts +0 -8
  9. package/dist/translations/az.js +0 -5
  10. package/dist/translations/bg.d.ts +0 -8
  11. package/dist/translations/bg.js +0 -5
  12. package/dist/translations/bn.d.ts +0 -8
  13. package/dist/translations/bn.js +0 -5
  14. package/dist/translations/ca.d.ts +0 -8
  15. package/dist/translations/ca.js +0 -5
  16. package/dist/translations/cs.d.ts +0 -8
  17. package/dist/translations/cs.js +0 -5
  18. package/dist/translations/da.d.ts +0 -8
  19. package/dist/translations/da.js +0 -5
  20. package/dist/translations/de-ch.d.ts +0 -8
  21. package/dist/translations/de-ch.js +0 -5
  22. package/dist/translations/de.d.ts +0 -8
  23. package/dist/translations/de.js +0 -5
  24. package/dist/translations/el.d.ts +0 -8
  25. package/dist/translations/el.js +0 -5
  26. package/dist/translations/en-au.d.ts +0 -8
  27. package/dist/translations/en-au.js +0 -5
  28. package/dist/translations/en-gb.d.ts +0 -8
  29. package/dist/translations/en-gb.js +0 -5
  30. package/dist/translations/en.d.ts +0 -8
  31. package/dist/translations/en.js +0 -5
  32. package/dist/translations/es-co.d.ts +0 -8
  33. package/dist/translations/es-co.js +0 -5
  34. package/dist/translations/es.d.ts +0 -8
  35. package/dist/translations/es.js +0 -5
  36. package/dist/translations/et.d.ts +0 -8
  37. package/dist/translations/et.js +0 -5
  38. package/dist/translations/fa.d.ts +0 -8
  39. package/dist/translations/fa.js +0 -5
  40. package/dist/translations/fi.d.ts +0 -8
  41. package/dist/translations/fi.js +0 -5
  42. package/dist/translations/fr.d.ts +0 -8
  43. package/dist/translations/fr.js +0 -5
  44. package/dist/translations/gl.d.ts +0 -8
  45. package/dist/translations/gl.js +0 -5
  46. package/dist/translations/he.d.ts +0 -8
  47. package/dist/translations/he.js +0 -5
  48. package/dist/translations/hi.d.ts +0 -8
  49. package/dist/translations/hi.js +0 -5
  50. package/dist/translations/hr.d.ts +0 -8
  51. package/dist/translations/hr.js +0 -5
  52. package/dist/translations/hu.d.ts +0 -8
  53. package/dist/translations/hu.js +0 -5
  54. package/dist/translations/hy.d.ts +0 -8
  55. package/dist/translations/hy.js +0 -5
  56. package/dist/translations/id.d.ts +0 -8
  57. package/dist/translations/id.js +0 -5
  58. package/dist/translations/it.d.ts +0 -8
  59. package/dist/translations/it.js +0 -5
  60. package/dist/translations/ja.d.ts +0 -8
  61. package/dist/translations/ja.js +0 -5
  62. package/dist/translations/ko.d.ts +0 -8
  63. package/dist/translations/ko.js +0 -5
  64. package/dist/translations/ku.d.ts +0 -8
  65. package/dist/translations/ku.js +0 -5
  66. package/dist/translations/lt.d.ts +0 -8
  67. package/dist/translations/lt.js +0 -5
  68. package/dist/translations/lv.d.ts +0 -8
  69. package/dist/translations/lv.js +0 -5
  70. package/dist/translations/ms.d.ts +0 -8
  71. package/dist/translations/ms.js +0 -5
  72. package/dist/translations/ne.d.ts +0 -8
  73. package/dist/translations/ne.js +0 -5
  74. package/dist/translations/nl.d.ts +0 -8
  75. package/dist/translations/nl.js +0 -5
  76. package/dist/translations/no.d.ts +0 -8
  77. package/dist/translations/no.js +0 -5
  78. package/dist/translations/pl.d.ts +0 -8
  79. package/dist/translations/pl.js +0 -5
  80. package/dist/translations/pt-br.d.ts +0 -8
  81. package/dist/translations/pt-br.js +0 -5
  82. package/dist/translations/pt.d.ts +0 -8
  83. package/dist/translations/pt.js +0 -5
  84. package/dist/translations/ro.d.ts +0 -8
  85. package/dist/translations/ro.js +0 -5
  86. package/dist/translations/ru.d.ts +0 -8
  87. package/dist/translations/ru.js +0 -5
  88. package/dist/translations/sk.d.ts +0 -8
  89. package/dist/translations/sk.js +0 -5
  90. package/dist/translations/sq.d.ts +0 -8
  91. package/dist/translations/sq.js +0 -5
  92. package/dist/translations/sr-latn.d.ts +0 -8
  93. package/dist/translations/sr-latn.js +0 -5
  94. package/dist/translations/sr.d.ts +0 -8
  95. package/dist/translations/sr.js +0 -5
  96. package/dist/translations/sv.d.ts +0 -8
  97. package/dist/translations/sv.js +0 -5
  98. package/dist/translations/th.d.ts +0 -8
  99. package/dist/translations/th.js +0 -5
  100. package/dist/translations/tk.d.ts +0 -8
  101. package/dist/translations/tk.js +0 -5
  102. package/dist/translations/tr.d.ts +0 -8
  103. package/dist/translations/tr.js +0 -5
  104. package/dist/translations/ug.d.ts +0 -8
  105. package/dist/translations/ug.js +0 -5
  106. package/dist/translations/uk.d.ts +0 -8
  107. package/dist/translations/uk.js +0 -5
  108. package/dist/translations/ur.d.ts +0 -8
  109. package/dist/translations/ur.js +0 -5
  110. package/dist/translations/vi.d.ts +0 -8
  111. package/dist/translations/vi.js +0 -5
  112. package/dist/translations/zh-cn.d.ts +0 -8
  113. package/dist/translations/zh-cn.js +0 -5
  114. package/dist/translations/zh.d.ts +0 -8
  115. package/dist/translations/zh.js +0 -5
  116. package/dist/types/augmentation.d.ts +0 -23
  117. package/dist/types/index.d.ts +0 -14
  118. package/dist/types/utils.d.ts +0 -18
  119. package/dist/types/wordcount.d.ts +0 -139
  120. package/dist/types/wordcountconfig.d.ts +0 -96
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"ms":{"dictionary":{"Words: %0":"Perkataan: %0","Characters: %0":"Aksara: %0"},getPluralForm(n){return 0;}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"ne":{"dictionary":{"Words: %0":"शब्दहरू: %0","Characters: %0":"क्यारेक्टरहरू: %0"},getPluralForm(n){return (n != 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"nl":{"dictionary":{"Words: %0":"Woorden: %0","Characters: %0":"Tekens: %0"},getPluralForm(n){return (n != 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"no":{"dictionary":{"Words: %0":"Ord: %0","Characters: %0":"Tegn: %0"},getPluralForm(n){return (n != 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"pl":{"dictionary":{"Words: %0":"Słowa: %0","Characters: %0":"Znaki: %0"},getPluralForm(n){return (n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"pt-br":{"dictionary":{"Words: %0":"Palavras: %0","Characters: %0":"Caracteres: %0"},getPluralForm(n){return (n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"pt":{"dictionary":{"Words: %0":"Palavras: %0","Characters: %0":"Caracteres: %0"},getPluralForm(n){return (n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"ro":{"dictionary":{"Words: %0":"Cuvinte: %0","Characters: %0":"Caractere: %0"},getPluralForm(n){return (n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"ru":{"dictionary":{"Words: %0":"Слов: %0","Characters: %0":"Символов: %0"},getPluralForm(n){return (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"sk":{"dictionary":{"Words: %0":"Slov: %0","Characters: %0":"Znakov: %0"},getPluralForm(n){return (n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"sq":{"dictionary":{"Words: %0":"Fjalë: %0","Characters: %0":"Karaktere: %0"},getPluralForm(n){return (n != 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"sr-latn":{"dictionary":{"Words: %0":"Reči: %0","Characters: %0":"Karakteri: %0"},getPluralForm(n){return (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"sr":{"dictionary":{"Words: %0":"Речи: %0","Characters: %0":"Карактери: %0"},getPluralForm(n){return (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"sv":{"dictionary":{"Words: %0":"Ord: %0","Characters: %0":"Tecken: %0"},getPluralForm(n){return (n != 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"th":{"dictionary":{"Words: %0":"คำ: %0","Characters: %0":"ตัวอักษร: %0"},getPluralForm(n){return 0;}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"tk":{"dictionary":{"Words: %0":"Sözler: %0","Characters: %0":"Nyşanlar: %0"},getPluralForm(n){return (n != 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"tr":{"dictionary":{"Words: %0":"Kelimeler: %0","Characters: %0":"Karakterler: %0"},getPluralForm(n){return (n > 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"ug":{"dictionary":{"Words: %0":"سۆز: %0","Characters: %0":"ھەرپ: %0"},getPluralForm(n){return (n != 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"uk":{"dictionary":{"Words: %0":"Слова: %0","Characters: %0":"Символи: %0"},getPluralForm(n){return (n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"ur":{"dictionary":{"Words: %0":"الفاظ: 0%","Characters: %0":"حروف: 0%"},getPluralForm(n){return (n != 1);}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"vi":{"dictionary":{"Words: %0":"Số chữ: %0","Characters: %0":"Số ký tự: %0"},getPluralForm(n){return 0;}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"zh-cn":{"dictionary":{"Words: %0":"单词数:%0","Characters: %0":"字符数:%0"},getPluralForm(n){return 0;}}}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export default {"zh":{"dictionary":{"Words: %0":"字數: %0","Characters: %0":"字元數: %0"},getPluralForm(n){return 0;}}}
@@ -1,23 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- import type { WordCount, WordCountConfig } from './index.js';
10
- declare module '@ckeditor/ckeditor5-core' {
11
- interface EditorConfig {
12
- /**
13
- * The configuration of the word count feature.
14
- * It is introduced by the {@link module:word-count/wordcount~WordCount} feature.
15
- *
16
- * Read more in {@link module:word-count/wordcountconfig~WordCountConfig}.
17
- */
18
- wordCount?: WordCountConfig;
19
- }
20
- interface PluginsMap {
21
- [WordCount.pluginName]: WordCount;
22
- }
23
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module word-count
11
- */
12
- export { default as WordCount, type WordCountUpdateEvent } from './wordcount.js';
13
- export type { WordCountConfig } from './wordcountconfig.js';
14
- import './augmentation.js';
@@ -1,18 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module word-count/utils
11
- */
12
- import type { Item } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Returns a plain text representation of an element and its children.
15
- *
16
- * @returns Plain text representing the model's data.
17
- */
18
- export declare function modelElementToPlainText(item: Item): string;
@@ -1,139 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
- /**
11
- * The word count plugin.
12
- *
13
- * This plugin calculates all words and characters in all {@link module:engine/model/text~Text text nodes} available in the model.
14
- * It also provides an HTML element that updates its state whenever the editor content is changed.
15
- *
16
- * The model's data is first converted to plain text using {@link module:word-count/utils~modelElementToPlainText}.
17
- * The number of words and characters in your text are determined based on the created plain text. Please keep in mind
18
- * that every block in the editor is separated with a newline character, which is included in the calculation.
19
- *
20
- * Here are some examples of how the word and character calculations are made:
21
- *
22
- * ```html
23
- * <paragraph>foo</paragraph>
24
- * <paragraph>bar</paragraph>
25
- * // Words: 2, Characters: 7
26
- *
27
- * <paragraph><$text bold="true">foo</$text>bar</paragraph>
28
- * // Words: 1, Characters: 6
29
- *
30
- * <paragraph>*&^%)</paragraph>
31
- * // Words: 0, Characters: 5
32
- *
33
- * <paragraph>foo(bar)</paragraph>
34
- * //Words: 1, Characters: 8
35
- *
36
- * <paragraph>12345</paragraph>
37
- * // Words: 1, Characters: 5
38
- * ```
39
- */
40
- export default class WordCount extends Plugin {
41
- /**
42
- * The number of characters in the editor.
43
- *
44
- * @observable
45
- * @readonly
46
- */
47
- characters: number;
48
- /**
49
- * The number of words in the editor.
50
- *
51
- * @observable
52
- * @readonly
53
- */
54
- words: number;
55
- /**
56
- * The label used to display the words value in the {@link #wordCountContainer output container}.
57
- *
58
- * @observable
59
- * @private
60
- * @readonly
61
- */
62
- _wordsLabel: string | undefined;
63
- /**
64
- * The label used to display the characters value in the {@link #wordCountContainer output container}.
65
- *
66
- * @observable
67
- * @private
68
- * @readonly
69
- */
70
- _charactersLabel: string | undefined;
71
- /**
72
- * The configuration of this plugin.
73
- */
74
- private _config;
75
- /**
76
- * The reference to a {@link module:ui/view~View view object} that contains the self-updating HTML container.
77
- */
78
- private _outputView;
79
- /**
80
- * A regular expression used to recognize words in the editor's content.
81
- */
82
- private readonly _wordsMatchRegExp;
83
- /**
84
- * @inheritDoc
85
- */
86
- constructor(editor: Editor);
87
- /**
88
- * @inheritDoc
89
- */
90
- static get pluginName(): "WordCount";
91
- /**
92
- * @inheritDoc
93
- */
94
- init(): void;
95
- /**
96
- * @inheritDoc
97
- */
98
- destroy(): void;
99
- /**
100
- * Creates a self-updating HTML element. Repeated executions return the same element.
101
- * The returned element has the following HTML structure:
102
- *
103
- * ```html
104
- * <div class="ck ck-word-count">
105
- * <div class="ck-word-count__words">Words: 4</div>
106
- * <div class="ck-word-count__characters">Characters: 28</div>
107
- * </div>
108
- * ```
109
- */
110
- get wordCountContainer(): HTMLElement;
111
- private _getText;
112
- /**
113
- * Determines the number of characters in the current editor's model.
114
- */
115
- private _getCharacters;
116
- /**
117
- * Determines the number of words in the current editor's model.
118
- */
119
- private _getWords;
120
- /**
121
- * Determines the number of words and characters in the current editor's model and assigns it to {@link #characters} and {@link #words}.
122
- * It also fires the {@link #event:update}.
123
- *
124
- * @fires update
125
- */
126
- private _refreshStats;
127
- }
128
- /**
129
- * An event fired after {@link ~WordCount#words} and {@link ~WordCount#characters} are updated.
130
- *
131
- * @eventName ~WordCount#update
132
- */
133
- export type WordCountUpdateEvent = {
134
- name: 'update';
135
- args: [{
136
- words: number;
137
- characters: number;
138
- }];
139
- };