@ckeditor/ckeditor5-basic-styles 44.3.0-alpha.7 → 45.0.0-alpha.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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+
6
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ export default {"be":{"dictionary":{"Bold":"Тоўсты","Italic":"Курсіў","Underline":"Падкрэслены","Code":"Код","Strikethrough":"Перакрэслены","Subscript":"Ніжні індэкс","Superscript":"Верхні індэкс","Italic text":"Текст курсівам","Move out of an inline code style":"Выйсці з убудаванага сцілю","Bold text":"Тоўсты тэкст","Underline text":"Падкрэслены тэкст","Strikethrough text":"Перакрэслены тэкст"},getPluralForm(n){return (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);}}}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+
6
+ ( e => {
7
+ const { [ 'be' ]: { dictionary, getPluralForm } } = {"be":{"dictionary":{"Bold":"Тоўсты","Italic":"Курсіў","Underline":"Падкрэслены","Code":"Код","Strikethrough":"Перакрэслены","Subscript":"Ніжні індэкс","Superscript":"Верхні індэкс","Italic text":"Текст курсівам","Move out of an inline code style":"Выйсці з убудаванага сцілю","Bold text":"Тоўсты тэкст","Underline text":"Падкрэслены тэкст","Strikethrough text":"Перакрэслены тэкст"},getPluralForm(n){return (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);}}};
8
+ e[ 'be' ] ||= { dictionary: {}, getPluralForm: null };
9
+ e[ 'be' ].dictionary = Object.assign( e[ 'be' ].dictionary, dictionary );
10
+ e[ 'be' ].getPluralForm = getPluralForm;
11
+ } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -0,0 +1,60 @@
1
+ # Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: be\n"
11
+ "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"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "Toolbar button tooltip for the Bold feature."
15
+ msgid "Bold"
16
+ msgstr "Тоўсты"
17
+
18
+ msgctxt "Toolbar button tooltip for the Italic feature."
19
+ msgid "Italic"
20
+ msgstr "Курсіў"
21
+
22
+ msgctxt "Toolbar button tooltip for the Underline feature."
23
+ msgid "Underline"
24
+ msgstr "Падкрэслены"
25
+
26
+ msgctxt "Toolbar button tooltip for the Code feature."
27
+ msgid "Code"
28
+ msgstr "Код"
29
+
30
+ msgctxt "Toolbar button tooltip for the Strikethrough feature."
31
+ msgid "Strikethrough"
32
+ msgstr "Перакрэслены"
33
+
34
+ msgctxt "Toolbar button tooltip for the Subscript feature."
35
+ msgid "Subscript"
36
+ msgstr "Ніжні індэкс"
37
+
38
+ msgctxt "Toolbar button tooltip for the Superscript feature."
39
+ msgid "Superscript"
40
+ msgstr "Верхні індэкс"
41
+
42
+ msgctxt "Keystroke description for assistive technologies: keystroke for making text italic."
43
+ msgid "Italic text"
44
+ msgstr "Текст курсівам"
45
+
46
+ msgctxt "Keystroke description for assistive technologies: keystroke for moving selection out of an inline code style."
47
+ msgid "Move out of an inline code style"
48
+ msgstr "Выйсці з убудаванага сцілю"
49
+
50
+ msgctxt "Keystroke description for assistive technologies: keystroke for making text bold."
51
+ msgid "Bold text"
52
+ msgstr "Тоўсты тэкст"
53
+
54
+ msgctxt "Keystroke description for assistive technologies: keystroke for making text underlined."
55
+ msgid "Underline text"
56
+ msgstr "Падкрэслены тэкст"
57
+
58
+ msgctxt "Keystroke description for assistive technologies: keystroke for making text strikethrough."
59
+ msgid "Strikethrough text"
60
+ msgstr "Перакрэслены тэкст"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-basic-styles",
3
- "version": "44.3.0-alpha.7",
3
+ "version": "45.0.0-alpha.0",
4
4
  "description": "Basic styles feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,11 +13,12 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "44.3.0-alpha.7",
17
- "@ckeditor/ckeditor5-typing": "44.3.0-alpha.7",
18
- "@ckeditor/ckeditor5-ui": "44.3.0-alpha.7",
19
- "@ckeditor/ckeditor5-utils": "44.3.0-alpha.7",
20
- "ckeditor5": "44.3.0-alpha.7"
16
+ "@ckeditor/ckeditor5-core": "45.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-icons": "45.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-typing": "45.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-ui": "45.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.0",
21
+ "ckeditor5": "45.0.0-alpha.0"
21
22
  },
22
23
  "author": "CKSource (http://cksource.com/)",
23
24
  "license": "SEE LICENSE IN LICENSE.md",
@@ -17,6 +17,10 @@ import { Command } from 'ckeditor5/src/core.js';
17
17
  * for the current selection and to which nodes the attribute can be applied.
18
18
  */
19
19
  export default class AttributeCommand extends Command {
20
+ /**
21
+ * The attribute that will be set by the command.
22
+ */
23
+ attributeKey;
20
24
  /**
21
25
  * @param attributeKey Attribute that will be set by the command.
22
26
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module basic-styles/bold/boldui
7
7
  */
8
- import { Plugin, icons } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconBold } from 'ckeditor5/src/icons.js';
9
10
  import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
11
  import { getButtonCreator } from '../utils.js';
11
12
  const BOLD = 'bold';
@@ -35,7 +36,7 @@ export default class BoldUI extends Plugin {
35
36
  editor,
36
37
  commandName: BOLD,
37
38
  plugin: this,
38
- icon: icons.bold,
39
+ icon: IconBold,
39
40
  label: t('Bold'),
40
41
  keystroke: 'CTRL+B'
41
42
  });
@@ -6,9 +6,9 @@
6
6
  * @module basic-styles/code/codeui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconCode } from 'ckeditor5/src/icons.js';
9
10
  import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
11
  import { getButtonCreator } from '../utils.js';
11
- import codeIcon from '../../theme/icons/code.svg';
12
12
  import '../../theme/code.css';
13
13
  const CODE = 'code';
14
14
  /**
@@ -37,7 +37,7 @@ export default class CodeUI extends Plugin {
37
37
  editor,
38
38
  commandName: CODE,
39
39
  plugin: this,
40
- icon: codeIcon,
40
+ icon: IconCode,
41
41
  label: t('Code')
42
42
  });
43
43
  // Add code button to feature components.
@@ -6,9 +6,9 @@
6
6
  * @module basic-styles/italic/italicui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconItalic } from 'ckeditor5/src/icons.js';
9
10
  import { MenuBarMenuListItemButtonView, ButtonView } from 'ckeditor5/src/ui.js';
10
11
  import { getButtonCreator } from '../utils.js';
11
- import italicIcon from '../../theme/icons/italic.svg';
12
12
  const ITALIC = 'italic';
13
13
  /**
14
14
  * The italic UI feature. It introduces the Italic button.
@@ -36,7 +36,7 @@ export default class ItalicUI extends Plugin {
36
36
  editor,
37
37
  commandName: ITALIC,
38
38
  plugin: this,
39
- icon: italicIcon,
39
+ icon: IconItalic,
40
40
  keystroke: 'CTRL+I',
41
41
  label: t('Italic')
42
42
  });
@@ -6,9 +6,9 @@
6
6
  * @module basic-styles/strikethrough/strikethroughui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconStrikethrough } from 'ckeditor5/src/icons.js';
9
10
  import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
11
  import { getButtonCreator } from '../utils.js';
11
- import strikethroughIcon from '../../theme/icons/strikethrough.svg';
12
12
  const STRIKETHROUGH = 'strikethrough';
13
13
  /**
14
14
  * The strikethrough UI feature. It introduces the Strikethrough button.
@@ -36,7 +36,7 @@ export default class StrikethroughUI extends Plugin {
36
36
  editor,
37
37
  commandName: STRIKETHROUGH,
38
38
  plugin: this,
39
- icon: strikethroughIcon,
39
+ icon: IconStrikethrough,
40
40
  keystroke: 'CTRL+SHIFT+X',
41
41
  label: t('Strikethrough')
42
42
  });
@@ -6,9 +6,9 @@
6
6
  * @module basic-styles/subscript/subscriptui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconSubscript } from 'ckeditor5/src/icons.js';
9
10
  import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
11
  import { getButtonCreator } from '../utils.js';
11
- import subscriptIcon from '../../theme/icons/subscript.svg';
12
12
  const SUBSCRIPT = 'subscript';
13
13
  /**
14
14
  * The subscript UI feature. It introduces the Subscript button.
@@ -36,7 +36,7 @@ export default class SubscriptUI extends Plugin {
36
36
  editor,
37
37
  commandName: SUBSCRIPT,
38
38
  plugin: this,
39
- icon: subscriptIcon,
39
+ icon: IconSubscript,
40
40
  label: t('Subscript')
41
41
  });
42
42
  // Add subscript button to feature components.
@@ -6,9 +6,9 @@
6
6
  * @module basic-styles/superscript/superscriptui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconSuperscript } from 'ckeditor5/src/icons.js';
9
10
  import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
11
  import { getButtonCreator } from '../utils.js';
11
- import superscriptIcon from '../../theme/icons/superscript.svg';
12
12
  const SUPERSCRIPT = 'superscript';
13
13
  /**
14
14
  * The superscript UI feature. It introduces the Superscript button.
@@ -36,7 +36,7 @@ export default class SuperscriptUI extends Plugin {
36
36
  editor,
37
37
  commandName: SUPERSCRIPT,
38
38
  plugin: this,
39
- icon: superscriptIcon,
39
+ icon: IconSuperscript,
40
40
  label: t('Superscript')
41
41
  });
42
42
  // Add superscript button to feature components.
@@ -6,9 +6,9 @@
6
6
  * @module basic-styles/underline/underlineui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconUnderline } from 'ckeditor5/src/icons.js';
9
10
  import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
11
  import { getButtonCreator } from '../utils.js';
11
- import underlineIcon from '../../theme/icons/underline.svg';
12
12
  const UNDERLINE = 'underline';
13
13
  /**
14
14
  * The underline UI feature. It introduces the Underline button.
@@ -36,7 +36,7 @@ export default class UnderlineUI extends Plugin {
36
36
  editor,
37
37
  commandName: UNDERLINE,
38
38
  plugin: this,
39
- icon: underlineIcon,
39
+ icon: IconUnderline,
40
40
  label: t('Underline'),
41
41
  keystroke: 'CTRL+U'
42
42
  });
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 5.7 5.2 3.9v1.3l-5.6 4c-.1.2-.3.2-.5.2-.3-.1-.6-.7-.6-1l.3-.4 4.7-3.5L11.5 7l-.2-.2c-.1-.3-.1-.6 0-.8.2-.2.5-.4.8-.4a.8.8 0 0 1 .4.1zm-5.2 0L2 9.6v1.3l5.6 4c.1.2.3.2.5.2.3-.1.7-.7.6-1 0-.1 0-.3-.2-.4l-5-3.5L8.2 7l.2-.2c.1-.3.1-.6 0-.8-.2-.2-.5-.4-.8-.4a.8.8 0 0 0-.3.1z"/></svg>
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82zm8.147 7.829h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309z"/></svg>
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.677 8.678h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309zM7.03 10.349l3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82z"/></svg>
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>