@ckeditor/ckeditor5-basic-styles 45.2.1-alpha.9 → 46.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.
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/src/subscript.js CHANGED
@@ -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 class Subscript extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
12
12
  * It registers the `super` command and introduces the `super` attribute in the model which renders to the view
13
13
  * as a `<super>` element.
14
14
  */
15
- export default class SuperscriptEditing extends Plugin {
15
+ export declare class SuperscriptEditing extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -6,7 +6,7 @@
6
6
  * @module basic-styles/superscript/superscriptediting
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 SUPERSCRIPT = 'superscript';
11
11
  /**
12
12
  * The superscript editing feature.
@@ -14,7 +14,7 @@ const SUPERSCRIPT = 'superscript';
14
14
  * It registers the `super` command and introduces the `super` attribute in the model which renders to the view
15
15
  * as a `<super>` element.
16
16
  */
17
- export default class SuperscriptEditing extends Plugin {
17
+ export class SuperscriptEditing 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 superscript UI feature. It introduces the Superscript button.
11
11
  */
12
- export default class SuperscriptUI extends Plugin {
12
+ export declare class SuperscriptUI extends Plugin {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
@@ -13,7 +13,7 @@ const SUPERSCRIPT = 'superscript';
13
13
  /**
14
14
  * The superscript UI feature. It introduces the Superscript button.
15
15
  */
16
- export default class SuperscriptUI extends Plugin {
16
+ export class SuperscriptUI extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -6,15 +6,15 @@
6
6
  * @module basic-styles/superscript
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import SuperscriptEditing from './superscript/superscriptediting.js';
10
- import SuperscriptUI from './superscript/superscriptui.js';
9
+ import { SuperscriptEditing } from './superscript/superscriptediting.js';
10
+ import { SuperscriptUI } from './superscript/superscriptui.js';
11
11
  /**
12
12
  * The superscript feature.
13
13
  *
14
14
  * It loads the {@link module:basic-styles/superscript/superscriptediting~SuperscriptEditing} and
15
15
  * {@link module:basic-styles/superscript/superscriptui~SuperscriptUI} plugins.
16
16
  */
17
- export default class Superscript extends Plugin {
17
+ export declare class Superscript extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -6,15 +6,15 @@
6
6
  * @module basic-styles/superscript
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import SuperscriptEditing from './superscript/superscriptediting.js';
10
- import SuperscriptUI from './superscript/superscriptui.js';
9
+ import { SuperscriptEditing } from './superscript/superscriptediting.js';
10
+ import { SuperscriptUI } from './superscript/superscriptui.js';
11
11
  /**
12
12
  * The superscript feature.
13
13
  *
14
14
  * It loads the {@link module:basic-styles/superscript/superscriptediting~SuperscriptEditing} and
15
15
  * {@link module:basic-styles/superscript/superscriptui~SuperscriptUI} plugins.
16
16
  */
17
- export default class Superscript extends Plugin {
17
+ export class Superscript extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
12
12
  * It registers the `'underline'` command, the <kbd>Ctrl+U</kbd> keystroke
13
13
  * and introduces the `underline` attribute in the model which renders to the view as an `<u>` element.
14
14
  */
15
- export default class UnderlineEditing extends Plugin {
15
+ export declare class UnderlineEditing extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -6,7 +6,7 @@
6
6
  * @module basic-styles/underline/underlineediting
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 UNDERLINE = 'underline';
11
11
  /**
12
12
  * The underline editing feature.
@@ -14,7 +14,7 @@ const UNDERLINE = 'underline';
14
14
  * It registers the `'underline'` command, the <kbd>Ctrl+U</kbd> keystroke
15
15
  * and introduces the `underline` attribute in the model which renders to the view as an `<u>` element.
16
16
  */
17
- export default class UnderlineEditing extends Plugin {
17
+ export class UnderlineEditing 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 underline UI feature. It introduces the Underline button.
11
11
  */
12
- export default class UnderlineUI extends Plugin {
12
+ export declare class UnderlineUI extends Plugin {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
@@ -13,7 +13,7 @@ const UNDERLINE = 'underline';
13
13
  /**
14
14
  * The underline UI feature. It introduces the Underline button.
15
15
  */
16
- export default class UnderlineUI extends Plugin {
16
+ export class UnderlineUI extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/underline
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import UnderlineEditing from './underline/underlineediting.js';
10
- import UnderlineUI from './underline/underlineui.js';
9
+ import { UnderlineEditing } from './underline/underlineediting.js';
10
+ import { UnderlineUI } from './underline/underlineui.js';
11
11
  /**
12
12
  * The underline feature.
13
13
  *
@@ -17,7 +17,7 @@ import UnderlineUI from './underline/underlineui.js';
17
17
  * This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and
18
18
  * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
19
19
  */
20
- export default class Underline extends Plugin {
20
+ export declare class Underline extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
package/src/underline.js CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module basic-styles/underline
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import UnderlineEditing from './underline/underlineediting.js';
10
- import UnderlineUI from './underline/underlineui.js';
9
+ import { UnderlineEditing } from './underline/underlineediting.js';
10
+ import { UnderlineUI } from './underline/underlineui.js';
11
11
  /**
12
12
  * The underline feature.
13
13
  *
@@ -17,7 +17,7 @@ import UnderlineUI from './underline/underlineui.js';
17
17
  * This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and
18
18
  * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
19
19
  */
20
- export default class Underline extends Plugin {
20
+ export class Underline extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
package/src/utils.d.ts CHANGED
@@ -9,6 +9,8 @@ import type { Editor, Plugin } from 'ckeditor5/src/core.js';
9
9
  import { MenuBarMenuListItemButtonView, type ButtonView } from 'ckeditor5/src/ui.js';
10
10
  /**
11
11
  * Returns a function that creates a (toolbar or menu bar) button for a basic style feature.
12
+ *
13
+ * @internal
12
14
  */
13
15
  export declare function getButtonCreator({ editor, commandName, plugin, icon, label, keystroke }: {
14
16
  editor: Editor;
package/src/utils.js CHANGED
@@ -5,6 +5,8 @@
5
5
  import { MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
6
6
  /**
7
7
  * Returns a function that creates a (toolbar or menu bar) button for a basic style feature.
8
+ *
9
+ * @internal
8
10
  */
9
11
  export function getButtonCreator({ editor, commandName, plugin, icon, label, keystroke }) {
10
12
  return (ButtonClass) => {