@ckeditor/ckeditor5-basic-styles 45.2.1 → 46.0.0-alpha.1

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 (52) hide show
  1. package/build/basic-styles.js +1 -1
  2. package/dist/index.js +7 -5
  3. package/dist/index.js.map +1 -1
  4. package/package.json +7 -7
  5. package/src/attributecommand.d.ts +6 -6
  6. package/src/attributecommand.js +5 -5
  7. package/src/bold/boldediting.d.ts +1 -1
  8. package/src/bold/boldediting.js +2 -2
  9. package/src/bold/boldui.d.ts +1 -1
  10. package/src/bold/boldui.js +1 -1
  11. package/src/bold.d.ts +3 -3
  12. package/src/bold.js +3 -3
  13. package/src/code/codeediting.d.ts +1 -1
  14. package/src/code/codeediting.js +2 -2
  15. package/src/code/codeui.d.ts +1 -1
  16. package/src/code/codeui.js +1 -1
  17. package/src/code.d.ts +3 -3
  18. package/src/code.js +3 -3
  19. package/src/index.d.ts +23 -22
  20. package/src/index.js +23 -22
  21. package/src/italic/italicediting.d.ts +1 -1
  22. package/src/italic/italicediting.js +2 -2
  23. package/src/italic/italicui.d.ts +1 -1
  24. package/src/italic/italicui.js +1 -1
  25. package/src/italic.d.ts +3 -3
  26. package/src/italic.js +3 -3
  27. package/src/strikethrough/strikethroughediting.d.ts +1 -1
  28. package/src/strikethrough/strikethroughediting.js +2 -2
  29. package/src/strikethrough/strikethroughui.d.ts +1 -1
  30. package/src/strikethrough/strikethroughui.js +1 -1
  31. package/src/strikethrough.d.ts +3 -3
  32. package/src/strikethrough.js +3 -3
  33. package/src/subscript/subscriptediting.d.ts +1 -1
  34. package/src/subscript/subscriptediting.js +2 -2
  35. package/src/subscript/subscriptui.d.ts +1 -1
  36. package/src/subscript/subscriptui.js +1 -1
  37. package/src/subscript.d.ts +3 -3
  38. package/src/subscript.js +3 -3
  39. package/src/superscript/superscriptediting.d.ts +1 -1
  40. package/src/superscript/superscriptediting.js +2 -2
  41. package/src/superscript/superscriptui.d.ts +1 -1
  42. package/src/superscript/superscriptui.js +1 -1
  43. package/src/superscript.d.ts +3 -3
  44. package/src/superscript.js +3 -3
  45. package/src/underline/underlineediting.d.ts +1 -1
  46. package/src/underline/underlineediting.js +2 -2
  47. package/src/underline/underlineui.d.ts +1 -1
  48. package/src/underline/underlineui.js +1 -1
  49. package/src/underline.d.ts +3 -3
  50. package/src/underline.js +3 -3
  51. package/src/utils.d.ts +2 -0
  52. package/src/utils.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-basic-styles",
3
- "version": "45.2.1",
3
+ "version": "46.0.0-alpha.1",
4
4
  "description": "Basic styles feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,12 +13,12 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "45.2.1",
17
- "@ckeditor/ckeditor5-icons": "45.2.1",
18
- "@ckeditor/ckeditor5-typing": "45.2.1",
19
- "@ckeditor/ckeditor5-ui": "45.2.1",
20
- "@ckeditor/ckeditor5-utils": "45.2.1",
21
- "ckeditor5": "45.2.1"
16
+ "@ckeditor/ckeditor5-core": "46.0.0-alpha.1",
17
+ "@ckeditor/ckeditor5-icons": "46.0.0-alpha.1",
18
+ "@ckeditor/ckeditor5-typing": "46.0.0-alpha.1",
19
+ "@ckeditor/ckeditor5-ui": "46.0.0-alpha.1",
20
+ "@ckeditor/ckeditor5-utils": "46.0.0-alpha.1",
21
+ "ckeditor5": "46.0.0-alpha.1"
22
22
  },
23
23
  "author": "CKSource (http://cksource.com/)",
24
24
  "license": "SEE LICENSE IN LICENSE.md",
@@ -10,16 +10,16 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
10
  * An extension of the base {@link module:core/command~Command} class, which provides utilities for a command
11
11
  * that toggles a single attribute on a text or an element.
12
12
  *
13
- * `AttributeCommand` uses {@link module:engine/model/document~Document#selection}
13
+ * `AttributeCommand` uses {@link module:engine/model/document~ModelDocument#selection}
14
14
  * to decide which nodes (if any) should be changed, and applies or removes the attribute from them.
15
15
  *
16
16
  * The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled
17
17
  * for the current selection and to which nodes the attribute can be applied.
18
18
  */
19
- export default class AttributeCommand extends Command {
19
+ export declare class AttributeCommand extends Command {
20
20
  /**
21
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:
22
+ * {@link module:engine/model/selection~ModelSelection#hasAttribute selection has the attribute} which means that:
23
23
  *
24
24
  * * If the selection is not empty – That the attribute is set on the first node in the selection that allows this attribute.
25
25
  * * If the selection is empty – That the selection has the attribute itself (which means that newly typed
@@ -46,12 +46,12 @@ export default class AttributeCommand extends Command {
46
46
  *
47
47
  * If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
48
48
  *
49
- * The execution result differs, depending on the {@link module:engine/model/document~Document#selection}:
49
+ * The execution result differs, depending on the {@link module:engine/model/document~ModelDocument#selection}:
50
50
  *
51
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}).
52
+ * (if they are allowed to have this attribute by the {@link module:engine/model/schema~ModelSchema schema}).
53
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).
54
+ * {@link module:engine/model/document~ModelDocument#selection} itself (note that typed characters copy attributes from the selection).
55
55
  * * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
56
56
  * that the selection inherits all attributes from a node if it is in an empty node).
57
57
  *
@@ -10,13 +10,13 @@ import { Command } from 'ckeditor5/src/core.js';
10
10
  * An extension of the base {@link module:core/command~Command} class, which provides utilities for a command
11
11
  * that toggles a single attribute on a text or an element.
12
12
  *
13
- * `AttributeCommand` uses {@link module:engine/model/document~Document#selection}
13
+ * `AttributeCommand` uses {@link module:engine/model/document~ModelDocument#selection}
14
14
  * to decide which nodes (if any) should be changed, and applies or removes the attribute from them.
15
15
  *
16
16
  * The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled
17
17
  * for the current selection and to which nodes the attribute can be applied.
18
18
  */
19
- export default class AttributeCommand extends Command {
19
+ export class AttributeCommand extends Command {
20
20
  /**
21
21
  * The attribute that will be set by the command.
22
22
  */
@@ -42,12 +42,12 @@ export default class AttributeCommand extends Command {
42
42
  *
43
43
  * If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
44
44
  *
45
- * The execution result differs, depending on the {@link module:engine/model/document~Document#selection}:
45
+ * The execution result differs, depending on the {@link module:engine/model/document~ModelDocument#selection}:
46
46
  *
47
47
  * * If the selection is on a range, the command applies the attribute to all nodes in that range
48
- * (if they are allowed to have this attribute by the {@link module:engine/model/schema~Schema schema}).
48
+ * (if they are allowed to have this attribute by the {@link module:engine/model/schema~ModelSchema schema}).
49
49
  * * If the selection is collapsed in a non-empty node, the command applies the attribute to the
50
- * {@link module:engine/model/document~Document#selection} itself (note that typed characters copy attributes from the selection).
50
+ * {@link module:engine/model/document~ModelDocument#selection} itself (note that typed characters copy attributes from the selection).
51
51
  * * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
52
52
  * that the selection inherits all attributes from a node if it is in an empty node).
53
53
  *
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
12
12
  * It registers the `'bold'` command and introduces the `bold` attribute in the model which renders to the view
13
13
  * as a `<strong>` element.
14
14
  */
15
- export default class BoldEditing extends Plugin {
15
+ export declare class BoldEditing extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -6,7 +6,7 @@
6
6
  * @module basic-styles/bold/boldediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import AttributeCommand from '../attributecommand.js';
9
+ import { AttributeCommand } from '../attributecommand.js';
10
10
  const BOLD = 'bold';
11
11
  /**
12
12
  * The bold editing feature.
@@ -14,7 +14,7 @@ const BOLD = 'bold';
14
14
  * It registers the `'bold'` command and introduces the `bold` attribute in the model which renders to the view
15
15
  * as a `<strong>` element.
16
16
  */
17
- export default class BoldEditing extends Plugin {
17
+ export class BoldEditing extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The bold UI feature. It introduces the Bold button.
11
11
  */
12
- export default class BoldUI extends Plugin {
12
+ export declare class BoldUI extends Plugin {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
@@ -13,7 +13,7 @@ const BOLD = 'bold';
13
13
  /**
14
14
  * The bold UI feature. It introduces the Bold button.
15
15
  */
16
- export default class BoldUI extends Plugin {
16
+ export class BoldUI extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
package/src/bold.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/bold
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import BoldEditing from './bold/boldediting.js';
10
- import BoldUI from './bold/boldui.js';
9
+ import { BoldEditing } from './bold/boldediting.js';
10
+ import { BoldUI } from './bold/boldui.js';
11
11
  /**
12
12
  * The bold feature.
13
13
  *
@@ -17,7 +17,7 @@ import BoldUI from './bold/boldui.js';
17
17
  * This is a "glue" plugin which loads the {@link module:basic-styles/bold/boldediting~BoldEditing bold editing feature}
18
18
  * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
19
19
  */
20
- export default class Bold extends Plugin {
20
+ export declare class Bold extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
package/src/bold.js CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/bold
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import BoldEditing from './bold/boldediting.js';
10
- import BoldUI from './bold/boldui.js';
9
+ import { BoldEditing } from './bold/boldediting.js';
10
+ import { BoldUI } from './bold/boldui.js';
11
11
  /**
12
12
  * The bold feature.
13
13
  *
@@ -17,7 +17,7 @@ import BoldUI from './bold/boldui.js';
17
17
  * This is a "glue" plugin which loads the {@link module:basic-styles/bold/boldediting~BoldEditing bold editing feature}
18
18
  * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
19
19
  */
20
- export default class Bold extends Plugin {
20
+ export class Bold extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -13,7 +13,7 @@ import { TwoStepCaretMovement } from 'ckeditor5/src/typing.js';
13
13
  * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
14
14
  * as a `<code>` element.
15
15
  */
16
- export default class CodeEditing extends Plugin {
16
+ export declare class CodeEditing extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { TwoStepCaretMovement, inlineHighlight } from 'ckeditor5/src/typing.js';
10
- import AttributeCommand from '../attributecommand.js';
10
+ import { AttributeCommand } from '../attributecommand.js';
11
11
  const CODE = 'code';
12
12
  const HIGHLIGHT_CLASS = 'ck-code_selected';
13
13
  /**
@@ -16,7 +16,7 @@ const HIGHLIGHT_CLASS = 'ck-code_selected';
16
16
  * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
17
17
  * as a `<code>` element.
18
18
  */
19
- export default class CodeEditing extends Plugin {
19
+ export class CodeEditing extends Plugin {
20
20
  /**
21
21
  * @inheritDoc
22
22
  */
@@ -10,7 +10,7 @@ import '../../theme/code.css';
10
10
  /**
11
11
  * The code UI feature. It introduces the Code button.
12
12
  */
13
- export default class CodeUI extends Plugin {
13
+ export declare class CodeUI extends Plugin {
14
14
  /**
15
15
  * @inheritDoc
16
16
  */
@@ -14,7 +14,7 @@ const CODE = 'code';
14
14
  /**
15
15
  * The code UI feature. It introduces the Code button.
16
16
  */
17
- export default class CodeUI extends Plugin {
17
+ export class CodeUI extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
package/src/code.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/code
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import CodeEditing from './code/codeediting.js';
10
- import CodeUI from './code/codeui.js';
9
+ import { CodeEditing } from './code/codeediting.js';
10
+ import { CodeUI } from './code/codeui.js';
11
11
  import '../theme/code.css';
12
12
  /**
13
13
  * The code feature.
@@ -18,7 +18,7 @@ import '../theme/code.css';
18
18
  * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
19
19
  * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
20
20
  */
21
- export default class Code extends Plugin {
21
+ export declare class Code extends Plugin {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
package/src/code.js CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/code
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import CodeEditing from './code/codeediting.js';
10
- import CodeUI from './code/codeui.js';
9
+ import { CodeEditing } from './code/codeediting.js';
10
+ import { CodeUI } from './code/codeui.js';
11
11
  import '../theme/code.css';
12
12
  /**
13
13
  * The code feature.
@@ -18,7 +18,7 @@ import '../theme/code.css';
18
18
  * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
19
19
  * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
20
20
  */
21
- export default class Code extends Plugin {
21
+ export class Code extends Plugin {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
package/src/index.d.ts CHANGED
@@ -5,26 +5,27 @@
5
5
  /**
6
6
  * @module basic-styles
7
7
  */
8
- export { default as Bold } from './bold.js';
9
- export { default as BoldEditing } from './bold/boldediting.js';
10
- export { default as BoldUI } from './bold/boldui.js';
11
- export { default as Code } from './code.js';
12
- export { default as CodeEditing } from './code/codeediting.js';
13
- export { default as CodeUI } from './code/codeui.js';
14
- export { default as Italic } from './italic.js';
15
- export { default as ItalicEditing } from './italic/italicediting.js';
16
- export { default as ItalicUI } from './italic/italicui.js';
17
- export { default as Strikethrough } from './strikethrough.js';
18
- export { default as StrikethroughEditing } from './strikethrough/strikethroughediting.js';
19
- export { default as StrikethroughUI } from './strikethrough/strikethroughui.js';
20
- export { default as Subscript } from './subscript.js';
21
- export { default as SubscriptEditing } from './subscript/subscriptediting.js';
22
- export { default as SubscriptUI } from './subscript/subscriptui.js';
23
- export { default as Superscript } from './superscript.js';
24
- export { default as SuperscriptEditing } from './superscript/superscriptediting.js';
25
- export { default as SuperscriptUI } from './superscript/superscriptui.js';
26
- export { default as Underline } from './underline.js';
27
- export { default as UnderlineEditing } from './underline/underlineediting.js';
28
- export { default as UnderlineUI } from './underline/underlineui.js';
29
- export { default as AttributeCommand } from './attributecommand.js';
8
+ export { Bold } from './bold.js';
9
+ export { BoldEditing } from './bold/boldediting.js';
10
+ export { BoldUI } from './bold/boldui.js';
11
+ export { Code } from './code.js';
12
+ export { CodeEditing } from './code/codeediting.js';
13
+ export { CodeUI } from './code/codeui.js';
14
+ export { Italic } from './italic.js';
15
+ export { ItalicEditing } from './italic/italicediting.js';
16
+ export { ItalicUI } from './italic/italicui.js';
17
+ export { Strikethrough } from './strikethrough.js';
18
+ export { StrikethroughEditing } from './strikethrough/strikethroughediting.js';
19
+ export { StrikethroughUI } from './strikethrough/strikethroughui.js';
20
+ export { Subscript } from './subscript.js';
21
+ export { SubscriptEditing } from './subscript/subscriptediting.js';
22
+ export { SubscriptUI } from './subscript/subscriptui.js';
23
+ export { Superscript } from './superscript.js';
24
+ export { SuperscriptEditing } from './superscript/superscriptediting.js';
25
+ export { SuperscriptUI } from './superscript/superscriptui.js';
26
+ export { Underline } from './underline.js';
27
+ export { UnderlineEditing } from './underline/underlineediting.js';
28
+ export { UnderlineUI } from './underline/underlineui.js';
29
+ export { AttributeCommand } from './attributecommand.js';
30
+ export { getButtonCreator as _getBasicStylesButtonCreator } from './utils.js';
30
31
  import './augmentation.js';
package/src/index.js CHANGED
@@ -5,26 +5,27 @@
5
5
  /**
6
6
  * @module basic-styles
7
7
  */
8
- export { default as Bold } from './bold.js';
9
- export { default as BoldEditing } from './bold/boldediting.js';
10
- export { default as BoldUI } from './bold/boldui.js';
11
- export { default as Code } from './code.js';
12
- export { default as CodeEditing } from './code/codeediting.js';
13
- export { default as CodeUI } from './code/codeui.js';
14
- export { default as Italic } from './italic.js';
15
- export { default as ItalicEditing } from './italic/italicediting.js';
16
- export { default as ItalicUI } from './italic/italicui.js';
17
- export { default as Strikethrough } from './strikethrough.js';
18
- export { default as StrikethroughEditing } from './strikethrough/strikethroughediting.js';
19
- export { default as StrikethroughUI } from './strikethrough/strikethroughui.js';
20
- export { default as Subscript } from './subscript.js';
21
- export { default as SubscriptEditing } from './subscript/subscriptediting.js';
22
- export { default as SubscriptUI } from './subscript/subscriptui.js';
23
- export { default as Superscript } from './superscript.js';
24
- export { default as SuperscriptEditing } from './superscript/superscriptediting.js';
25
- export { default as SuperscriptUI } from './superscript/superscriptui.js';
26
- export { default as Underline } from './underline.js';
27
- export { default as UnderlineEditing } from './underline/underlineediting.js';
28
- export { default as UnderlineUI } from './underline/underlineui.js';
29
- export { default as AttributeCommand } from './attributecommand.js';
8
+ export { Bold } from './bold.js';
9
+ export { BoldEditing } from './bold/boldediting.js';
10
+ export { BoldUI } from './bold/boldui.js';
11
+ export { Code } from './code.js';
12
+ export { CodeEditing } from './code/codeediting.js';
13
+ export { CodeUI } from './code/codeui.js';
14
+ export { Italic } from './italic.js';
15
+ export { ItalicEditing } from './italic/italicediting.js';
16
+ export { ItalicUI } from './italic/italicui.js';
17
+ export { Strikethrough } from './strikethrough.js';
18
+ export { StrikethroughEditing } from './strikethrough/strikethroughediting.js';
19
+ export { StrikethroughUI } from './strikethrough/strikethroughui.js';
20
+ export { Subscript } from './subscript.js';
21
+ export { SubscriptEditing } from './subscript/subscriptediting.js';
22
+ export { SubscriptUI } from './subscript/subscriptui.js';
23
+ export { Superscript } from './superscript.js';
24
+ export { SuperscriptEditing } from './superscript/superscriptediting.js';
25
+ export { SuperscriptUI } from './superscript/superscriptui.js';
26
+ export { Underline } from './underline.js';
27
+ export { UnderlineEditing } from './underline/underlineediting.js';
28
+ export { UnderlineUI } from './underline/underlineui.js';
29
+ export { AttributeCommand } from './attributecommand.js';
30
+ export { getButtonCreator as _getBasicStylesButtonCreator } from './utils.js';
30
31
  import './augmentation.js';
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
12
12
  * It registers the `'italic'` command, the <kbd>Ctrl+I</kbd> keystroke and introduces the `italic` attribute in the model
13
13
  * which renders to the view as an `<i>` element.
14
14
  */
15
- export default class ItalicEditing extends Plugin {
15
+ export declare class ItalicEditing extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -6,7 +6,7 @@
6
6
  * @module basic-styles/italic/italicediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import AttributeCommand from '../attributecommand.js';
9
+ import { AttributeCommand } from '../attributecommand.js';
10
10
  const ITALIC = 'italic';
11
11
  /**
12
12
  * The italic editing feature.
@@ -14,7 +14,7 @@ const ITALIC = 'italic';
14
14
  * It registers the `'italic'` command, the <kbd>Ctrl+I</kbd> keystroke and introduces the `italic` attribute in the model
15
15
  * which renders to the view as an `<i>` element.
16
16
  */
17
- export default class ItalicEditing extends Plugin {
17
+ export class ItalicEditing extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The italic UI feature. It introduces the Italic button.
11
11
  */
12
- export default class ItalicUI extends Plugin {
12
+ export declare class ItalicUI extends Plugin {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
@@ -13,7 +13,7 @@ const ITALIC = 'italic';
13
13
  /**
14
14
  * The italic UI feature. It introduces the Italic button.
15
15
  */
16
- export default class ItalicUI extends Plugin {
16
+ export class ItalicUI extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
package/src/italic.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/italic
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import ItalicEditing from './italic/italicediting.js';
10
- import ItalicUI from './italic/italicui.js';
9
+ import { ItalicEditing } from './italic/italicediting.js';
10
+ import { ItalicUI } from './italic/italicui.js';
11
11
  /**
12
12
  * The italic feature.
13
13
  *
@@ -17,7 +17,7 @@ import ItalicUI from './italic/italicui.js';
17
17
  * This is a "glue" plugin which loads the {@link module:basic-styles/italic/italicediting~ItalicEditing} and
18
18
  * {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
19
19
  */
20
- export default class Italic extends Plugin {
20
+ export declare class Italic extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
package/src/italic.js CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/italic
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import ItalicEditing from './italic/italicediting.js';
10
- import ItalicUI from './italic/italicui.js';
9
+ import { ItalicEditing } from './italic/italicediting.js';
10
+ import { ItalicUI } from './italic/italicui.js';
11
11
  /**
12
12
  * The italic feature.
13
13
  *
@@ -17,7 +17,7 @@ import ItalicUI from './italic/italicui.js';
17
17
  * This is a "glue" plugin which loads the {@link module:basic-styles/italic/italicediting~ItalicEditing} and
18
18
  * {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
19
19
  */
20
- export default class Italic extends Plugin {
20
+ export class Italic extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -13,7 +13,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
13
13
  * `strikethroughsthrough` attribute in the model which renders to the view
14
14
  * as a `<s>` element.
15
15
  */
16
- export default class StrikethroughEditing extends Plugin {
16
+ export declare class StrikethroughEditing extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -6,7 +6,7 @@
6
6
  * @module basic-styles/strikethrough/strikethroughediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import AttributeCommand from '../attributecommand.js';
9
+ import { AttributeCommand } from '../attributecommand.js';
10
10
  const STRIKETHROUGH = 'strikethrough';
11
11
  /**
12
12
  * The strikethrough editing feature.
@@ -15,7 +15,7 @@ const STRIKETHROUGH = 'strikethrough';
15
15
  * `strikethroughsthrough` attribute in the model which renders to the view
16
16
  * as a `<s>` element.
17
17
  */
18
- export default class StrikethroughEditing extends Plugin {
18
+ export class StrikethroughEditing extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The strikethrough UI feature. It introduces the Strikethrough button.
11
11
  */
12
- export default class StrikethroughUI extends Plugin {
12
+ export declare class StrikethroughUI extends Plugin {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
@@ -13,7 +13,7 @@ const STRIKETHROUGH = 'strikethrough';
13
13
  /**
14
14
  * The strikethrough UI feature. It introduces the Strikethrough button.
15
15
  */
16
- export default class StrikethroughUI extends Plugin {
16
+ export class StrikethroughUI extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/strikethrough
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StrikethroughEditing from './strikethrough/strikethroughediting.js';
10
- import StrikethroughUI from './strikethrough/strikethroughui.js';
9
+ import { StrikethroughEditing } from './strikethrough/strikethroughediting.js';
10
+ import { StrikethroughUI } from './strikethrough/strikethroughui.js';
11
11
  /**
12
12
  * The strikethrough feature.
13
13
  *
@@ -17,7 +17,7 @@ import StrikethroughUI from './strikethrough/strikethroughui.js';
17
17
  * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
18
18
  * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
19
19
  */
20
- export default class Strikethrough extends Plugin {
20
+ export declare class Strikethrough extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/strikethrough
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StrikethroughEditing from './strikethrough/strikethroughediting.js';
10
- import StrikethroughUI from './strikethrough/strikethroughui.js';
9
+ import { StrikethroughEditing } from './strikethrough/strikethroughediting.js';
10
+ import { StrikethroughUI } from './strikethrough/strikethroughui.js';
11
11
  /**
12
12
  * The strikethrough feature.
13
13
  *
@@ -17,7 +17,7 @@ import StrikethroughUI from './strikethrough/strikethroughui.js';
17
17
  * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
18
18
  * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
19
19
  */
20
- export default class Strikethrough extends Plugin {
20
+ export class Strikethrough extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
12
12
  * It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view
13
13
  * as a `<sub>` element.
14
14
  */
15
- export default class SubscriptEditing extends Plugin {
15
+ export declare class SubscriptEditing extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -6,7 +6,7 @@
6
6
  * @module basic-styles/subscript/subscriptediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import AttributeCommand from '../attributecommand.js';
9
+ import { AttributeCommand } from '../attributecommand.js';
10
10
  const SUBSCRIPT = 'subscript';
11
11
  /**
12
12
  * The subscript editing feature.
@@ -14,7 +14,7 @@ const SUBSCRIPT = 'subscript';
14
14
  * It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view
15
15
  * as a `<sub>` element.
16
16
  */
17
- export default class SubscriptEditing extends Plugin {
17
+ export class SubscriptEditing extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The subscript UI feature. It introduces the Subscript button.
11
11
  */
12
- export default class SubscriptUI extends Plugin {
12
+ export declare class SubscriptUI extends Plugin {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
@@ -13,7 +13,7 @@ const SUBSCRIPT = 'subscript';
13
13
  /**
14
14
  * The subscript UI feature. It introduces the Subscript button.
15
15
  */
16
- export default class SubscriptUI extends Plugin {
16
+ export class SubscriptUI extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -6,15 +6,15 @@
6
6
  * @module basic-styles/subscript
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import SubscriptEditing from './subscript/subscriptediting.js';
10
- import SubscriptUI from './subscript/subscriptui.js';
9
+ import { SubscriptEditing } from './subscript/subscriptediting.js';
10
+ import { SubscriptUI } from './subscript/subscriptui.js';
11
11
  /**
12
12
  * The subscript feature.
13
13
  *
14
14
  * It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and
15
15
  * {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins.
16
16
  */
17
- export default class Subscript extends Plugin {
17
+ export declare class Subscript extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */