@ckeditor/ckeditor5-basic-styles 39.0.1 → 40.0.0

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 (124) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +1 -1
  3. package/README.md +3 -3
  4. package/build/basic-styles.js.map +1 -0
  5. package/build/translations/hy.js +1 -0
  6. package/lang/translations/af.po +1 -0
  7. package/lang/translations/ar.po +1 -0
  8. package/lang/translations/ast.po +1 -0
  9. package/lang/translations/az.po +1 -0
  10. package/lang/translations/bg.po +1 -0
  11. package/lang/translations/bn.po +1 -0
  12. package/lang/translations/bs.po +1 -0
  13. package/lang/translations/ca.po +1 -0
  14. package/lang/translations/cs.po +1 -0
  15. package/lang/translations/da.po +1 -0
  16. package/lang/translations/de-ch.po +1 -0
  17. package/lang/translations/de.po +1 -0
  18. package/lang/translations/el.po +1 -0
  19. package/lang/translations/en-au.po +1 -0
  20. package/lang/translations/en-gb.po +1 -0
  21. package/lang/translations/en.po +1 -0
  22. package/lang/translations/eo.po +1 -0
  23. package/lang/translations/es-co.po +1 -0
  24. package/lang/translations/es.po +1 -0
  25. package/lang/translations/et.po +1 -0
  26. package/lang/translations/eu.po +1 -0
  27. package/lang/translations/fa.po +1 -0
  28. package/lang/translations/fi.po +1 -0
  29. package/lang/translations/fr.po +1 -0
  30. package/lang/translations/gl.po +1 -0
  31. package/lang/translations/gu.po +1 -0
  32. package/lang/translations/he.po +1 -0
  33. package/lang/translations/hi.po +1 -0
  34. package/lang/translations/hr.po +1 -0
  35. package/lang/translations/hu.po +1 -0
  36. package/lang/translations/hy.po +46 -0
  37. package/lang/translations/id.po +1 -0
  38. package/lang/translations/it.po +1 -0
  39. package/lang/translations/ja.po +1 -0
  40. package/lang/translations/jv.po +1 -0
  41. package/lang/translations/km.po +1 -0
  42. package/lang/translations/kn.po +1 -0
  43. package/lang/translations/ko.po +1 -0
  44. package/lang/translations/ku.po +1 -0
  45. package/lang/translations/lt.po +1 -0
  46. package/lang/translations/lv.po +1 -0
  47. package/lang/translations/ms.po +1 -0
  48. package/lang/translations/nb.po +1 -0
  49. package/lang/translations/ne.po +1 -0
  50. package/lang/translations/nl.po +1 -0
  51. package/lang/translations/no.po +1 -0
  52. package/lang/translations/oc.po +1 -0
  53. package/lang/translations/pl.po +1 -0
  54. package/lang/translations/pt-br.po +1 -0
  55. package/lang/translations/pt.po +1 -0
  56. package/lang/translations/ro.po +1 -0
  57. package/lang/translations/ru.po +1 -0
  58. package/lang/translations/si.po +1 -0
  59. package/lang/translations/sk.po +1 -0
  60. package/lang/translations/sl.po +1 -0
  61. package/lang/translations/sq.po +1 -0
  62. package/lang/translations/sr-latn.po +1 -0
  63. package/lang/translations/sr.po +1 -0
  64. package/lang/translations/sv.po +1 -0
  65. package/lang/translations/th.po +1 -0
  66. package/lang/translations/tk.po +1 -0
  67. package/lang/translations/tr.po +1 -0
  68. package/lang/translations/tt.po +1 -0
  69. package/lang/translations/ug.po +1 -0
  70. package/lang/translations/uk.po +1 -0
  71. package/lang/translations/ur.po +1 -0
  72. package/lang/translations/uz.po +1 -0
  73. package/lang/translations/vi.po +1 -0
  74. package/lang/translations/zh-cn.po +1 -0
  75. package/lang/translations/zh.po +1 -0
  76. package/package.json +2 -6
  77. package/src/attributecommand.d.ts +74 -74
  78. package/src/attributecommand.js +105 -105
  79. package/src/augmentation.d.ts +40 -40
  80. package/src/augmentation.js +5 -5
  81. package/src/bold/boldediting.d.ts +24 -24
  82. package/src/bold/boldediting.js +62 -62
  83. package/src/bold/boldui.d.ts +21 -21
  84. package/src/bold/boldui.js +47 -47
  85. package/src/bold.d.ts +29 -29
  86. package/src/bold.js +33 -33
  87. package/src/code/codeediting.d.ts +29 -29
  88. package/src/code/codeediting.js +59 -59
  89. package/src/code/codeui.d.ts +22 -22
  90. package/src/code/codeui.js +48 -48
  91. package/src/code.d.ts +30 -30
  92. package/src/code.js +34 -34
  93. package/src/index.d.ts +30 -30
  94. package/src/index.js +29 -29
  95. package/src/italic/italicediting.d.ts +24 -24
  96. package/src/italic/italicediting.js +52 -52
  97. package/src/italic/italicui.d.ts +21 -21
  98. package/src/italic/italicui.js +48 -48
  99. package/src/italic.d.ts +29 -29
  100. package/src/italic.js +33 -33
  101. package/src/strikethrough/strikethroughediting.d.ts +25 -25
  102. package/src/strikethrough/strikethroughediting.js +54 -54
  103. package/src/strikethrough/strikethroughui.d.ts +21 -21
  104. package/src/strikethrough/strikethroughui.js +48 -48
  105. package/src/strikethrough.d.ts +29 -29
  106. package/src/strikethrough.js +33 -33
  107. package/src/subscript/subscriptediting.d.ts +24 -24
  108. package/src/subscript/subscriptediting.js +50 -50
  109. package/src/subscript/subscriptui.d.ts +21 -21
  110. package/src/subscript/subscriptui.js +47 -47
  111. package/src/subscript.d.ts +26 -26
  112. package/src/subscript.js +30 -30
  113. package/src/superscript/superscriptediting.d.ts +24 -24
  114. package/src/superscript/superscriptediting.js +50 -50
  115. package/src/superscript/superscriptui.d.ts +21 -21
  116. package/src/superscript/superscriptui.js +47 -47
  117. package/src/superscript.d.ts +26 -26
  118. package/src/superscript.js +30 -30
  119. package/src/underline/underlineediting.d.ts +24 -24
  120. package/src/underline/underlineediting.js +49 -49
  121. package/src/underline/underlineui.d.ts +21 -21
  122. package/src/underline/underlineui.js +48 -48
  123. package/src/underline.d.ts +29 -29
  124. package/src/underline.js +33 -33
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n"
16
16
  "Language: ko\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n"
16
16
  "Language: ku\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n"
16
16
  "Language: lt\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n"
16
16
  "Language: lv\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n"
16
16
  "Language: ms\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Norwegian Bokmål (https://app.transifex.com/ckeditor/teams/11143/nb/)\n"
16
16
  "Language: nb\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n"
16
16
  "Language: ne_NP\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n"
16
16
  "Language: nl\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n"
16
16
  "Language: no\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Occitan (post 1500) (https://app.transifex.com/ckeditor/teams/11143/oc/)\n"
16
16
  "Language: oc\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n"
16
16
  "Language: pl\n"
17
17
  "Plural-Forms: nplurals=4; plural=(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);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
16
16
  "Language: pt_BR\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n"
16
16
  "Language: pt\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n"
16
16
  "Language: ro\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n"
16
16
  "Language: ru\n"
17
17
  "Plural-Forms: nplurals=4; plural=(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);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Sinhala (Sri Lanka) (https://app.transifex.com/ckeditor/teams/11143/si_LK/)\n"
16
16
  "Language: si_LK\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n"
16
16
  "Language: sk\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Slovenian (https://app.transifex.com/ckeditor/teams/11143/sl/)\n"
16
16
  "Language: sl\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n"
16
16
  "Language: sq\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
16
16
  "Language: sr@latin\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
16
16
  "Language: sr\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
16
16
  "Language: sv\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
16
16
  "Language: th\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n"
16
16
  "Language: tk\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
16
16
  "Language: tr\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Tatar (https://app.transifex.com/ckeditor/teams/11143/tt/)\n"
16
16
  "Language: tt\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n"
16
16
  "Language: ug\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
16
16
  "Language: uk\n"
17
17
  "Plural-Forms: nplurals=4; plural=(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);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
16
16
  "Language: ur\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
16
16
  "Language: uz\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
16
16
  "Language: vi\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
16
  "Language: zh_CN\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
16
  "Language: zh_TW\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Bold feature."
20
21
  msgid "Bold"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-basic-styles",
3
- "version": "39.0.1",
3
+ "version": "40.0.0",
4
4
  "description": "Basic styles feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,11 +12,7 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "39.0.1"
16
- },
17
- "engines": {
18
- "node": ">=16.0.0",
19
- "npm": ">=5.7.1"
15
+ "ckeditor5": "40.0.0"
20
16
  },
21
17
  "author": "CKSource (http://cksource.com/)",
22
18
  "license": "GPL-2.0-or-later",
@@ -1,74 +1,74 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, 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
- * @module basic-styles/attributecommand
7
- */
8
- import { Command, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * An extension of the base {@link module:core/command~Command} class, which provides utilities for a command
11
- * that toggles a single attribute on a text or an element.
12
- *
13
- * `AttributeCommand` uses {@link module:engine/model/document~Document#selection}
14
- * to decide which nodes (if any) should be changed, and applies or removes the attribute from them.
15
- *
16
- * The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled
17
- * for the current selection and to which nodes the attribute can be applied.
18
- */
19
- export default class AttributeCommand extends Command {
20
- /**
21
- * Flag indicating whether the command is active. The command is active when the
22
- * {@link module:engine/model/selection~Selection#hasAttribute selection has the attribute} which means that:
23
- *
24
- * * If the selection is not empty &ndash; That the attribute is set on the first node in the selection that allows this attribute.
25
- * * If the selection is empty &ndash; That the selection has the attribute itself (which means that newly typed
26
- * text will have this attribute, too).
27
- *
28
- * @observable
29
- * @readonly
30
- */
31
- value: boolean;
32
- /**
33
- * The attribute that will be set by the command.
34
- */
35
- readonly attributeKey: string;
36
- /**
37
- * @param attributeKey Attribute that will be set by the command.
38
- */
39
- constructor(editor: Editor, attributeKey: string);
40
- /**
41
- * Updates the command's {@link #value} and {@link #isEnabled} based on the current selection.
42
- */
43
- refresh(): void;
44
- /**
45
- * Executes the command &mdash; applies the attribute to the selection or removes it from the selection.
46
- *
47
- * If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
48
- *
49
- * The execution result differs, depending on the {@link module:engine/model/document~Document#selection}:
50
- *
51
- * * If the selection is on a range, the command applies the attribute to all nodes in that range
52
- * (if they are allowed to have this attribute by the {@link module:engine/model/schema~Schema schema}).
53
- * * If the selection is collapsed in a non-empty node, the command applies the attribute to the
54
- * {@link module:engine/model/document~Document#selection} itself (note that typed characters copy attributes from the selection).
55
- * * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
56
- * that the selection inherits all attributes from a node if it is in an empty node).
57
- *
58
- * @fires execute
59
- * @param options Command options.
60
- * @param options.forceValue If set, it will force the command behavior. If `true`,
61
- * the command will apply the attribute, otherwise the command will remove the attribute.
62
- * If not set, the command will look for its current value to decide what it should do.
63
- */
64
- execute(options?: {
65
- forceValue?: boolean;
66
- }): void;
67
- /**
68
- * Checks the attribute value of the first node in the selection that allows the attribute.
69
- * For the collapsed selection returns the selection attribute.
70
- *
71
- * @returns The attribute value.
72
- */
73
- private _getValueFromFirstAllowedNode;
74
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ * @module basic-styles/attributecommand
7
+ */
8
+ import { Command, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * An extension of the base {@link module:core/command~Command} class, which provides utilities for a command
11
+ * that toggles a single attribute on a text or an element.
12
+ *
13
+ * `AttributeCommand` uses {@link module:engine/model/document~Document#selection}
14
+ * to decide which nodes (if any) should be changed, and applies or removes the attribute from them.
15
+ *
16
+ * The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled
17
+ * for the current selection and to which nodes the attribute can be applied.
18
+ */
19
+ export default class AttributeCommand extends Command {
20
+ /**
21
+ * Flag indicating whether the command is active. The command is active when the
22
+ * {@link module:engine/model/selection~Selection#hasAttribute selection has the attribute} which means that:
23
+ *
24
+ * * If the selection is not empty &ndash; That the attribute is set on the first node in the selection that allows this attribute.
25
+ * * If the selection is empty &ndash; That the selection has the attribute itself (which means that newly typed
26
+ * text will have this attribute, too).
27
+ *
28
+ * @observable
29
+ * @readonly
30
+ */
31
+ value: boolean;
32
+ /**
33
+ * The attribute that will be set by the command.
34
+ */
35
+ readonly attributeKey: string;
36
+ /**
37
+ * @param attributeKey Attribute that will be set by the command.
38
+ */
39
+ constructor(editor: Editor, attributeKey: string);
40
+ /**
41
+ * Updates the command's {@link #value} and {@link #isEnabled} based on the current selection.
42
+ */
43
+ refresh(): void;
44
+ /**
45
+ * Executes the command &mdash; applies the attribute to the selection or removes it from the selection.
46
+ *
47
+ * If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
48
+ *
49
+ * The execution result differs, depending on the {@link module:engine/model/document~Document#selection}:
50
+ *
51
+ * * If the selection is on a range, the command applies the attribute to all nodes in that range
52
+ * (if they are allowed to have this attribute by the {@link module:engine/model/schema~Schema schema}).
53
+ * * If the selection is collapsed in a non-empty node, the command applies the attribute to the
54
+ * {@link module:engine/model/document~Document#selection} itself (note that typed characters copy attributes from the selection).
55
+ * * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
56
+ * that the selection inherits all attributes from a node if it is in an empty node).
57
+ *
58
+ * @fires execute
59
+ * @param options Command options.
60
+ * @param options.forceValue If set, it will force the command behavior. If `true`,
61
+ * the command will apply the attribute, otherwise the command will remove the attribute.
62
+ * If not set, the command will look for its current value to decide what it should do.
63
+ */
64
+ execute(options?: {
65
+ forceValue?: boolean;
66
+ }): void;
67
+ /**
68
+ * Checks the attribute value of the first node in the selection that allows the attribute.
69
+ * For the collapsed selection returns the selection attribute.
70
+ *
71
+ * @returns The attribute value.
72
+ */
73
+ private _getValueFromFirstAllowedNode;
74
+ }