@ckeditor/ckeditor5-style 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-style",
3
- "version": "45.2.1",
3
+ "version": "46.0.0-alpha.1",
4
4
  "description": "Style feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,15 +13,15 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "45.2.1",
17
- "@ckeditor/ckeditor5-html-support": "45.2.1",
18
- "@ckeditor/ckeditor5-list": "45.2.1",
19
- "@ckeditor/ckeditor5-table": "45.2.1",
20
- "@ckeditor/ckeditor5-typing": "45.2.1",
21
- "@ckeditor/ckeditor5-ui": "45.2.1",
22
- "@ckeditor/ckeditor5-utils": "45.2.1",
23
- "ckeditor5": "45.2.1",
24
- "es-toolkit": "1.32.0"
16
+ "@ckeditor/ckeditor5-core": "46.0.0-alpha.1",
17
+ "@ckeditor/ckeditor5-html-support": "46.0.0-alpha.1",
18
+ "@ckeditor/ckeditor5-list": "46.0.0-alpha.1",
19
+ "@ckeditor/ckeditor5-table": "46.0.0-alpha.1",
20
+ "@ckeditor/ckeditor5-typing": "46.0.0-alpha.1",
21
+ "@ckeditor/ckeditor5-ui": "46.0.0-alpha.1",
22
+ "@ckeditor/ckeditor5-utils": "46.0.0-alpha.1",
23
+ "ckeditor5": "46.0.0-alpha.1",
24
+ "es-toolkit": "1.39.5"
25
25
  },
26
26
  "author": "CKSource (http://cksource.com/)",
27
27
  "license": "SEE LICENSE IN LICENSE.md",
package/src/index.d.ts CHANGED
@@ -5,10 +5,19 @@
5
5
  /**
6
6
  * @module style
7
7
  */
8
- export { default as Style } from './style.js';
9
- export { default as StyleEditing } from './styleediting.js';
10
- export { default as StyleUI } from './styleui.js';
11
- export { default as StyleUtils } from './styleutils.js';
8
+ export { Style } from './style.js';
9
+ export { StyleEditing } from './styleediting.js';
10
+ export { StyleUI } from './styleui.js';
11
+ export { StyleCommand } from './stylecommand.js';
12
+ export { StyleUtils, type NormalizedStyleDefinitions, type BlockStyleDefinition, type InlineStyleDefinition, type NormalizedStyleDefinition, type StyleUtilsIsEnabledForBlockEvent, type StyleUtilsIsActiveForBlockEvent, type StyleUtilsGetAffectedBlocksEvent, type StyleUtilsIsStyleEnabledForInlineSelectionEvent, type StyleUtilsIsStyleActiveForInlineSelectionEvent, type StyleUtilsGetAffectedInlineSelectableEvent, type StyleUtilsGetStylePreviewEvent, type StyleUtilsConfigureGHSDataFilterEvent } from './styleutils.js';
12
13
  export type { StyleConfig, StyleDefinition } from './styleconfig.js';
13
- export type { default as StyleCommand } from './stylecommand.js';
14
+ export { LinkStyleSupport } from './integrations/link.js';
15
+ export { ListStyleSupport } from './integrations/list.js';
16
+ export { TableStyleSupport } from './integrations/table.js';
17
+ export type { StyleGridViewExecuteEvent } from './ui/stylegridview.js';
18
+ export type { StylePanelViewExecuteEvent } from './ui/stylepanelview.js';
19
+ export { StyleGridButtonView as _StyleGridButtonView } from './ui/stylegridbuttonview.js';
20
+ export { StyleGridView as _StyleGridView } from './ui/stylegridview.js';
21
+ export { StyleGroupView as _StyleGroupView } from './ui/stylegroupview.js';
22
+ export { StylePanelView as _StylePanelView } from './ui/stylepanelview.js';
14
23
  import './augmentation.js';
package/src/index.js CHANGED
@@ -5,8 +5,16 @@
5
5
  /**
6
6
  * @module style
7
7
  */
8
- export { default as Style } from './style.js';
9
- export { default as StyleEditing } from './styleediting.js';
10
- export { default as StyleUI } from './styleui.js';
11
- export { default as StyleUtils } from './styleutils.js';
8
+ export { Style } from './style.js';
9
+ export { StyleEditing } from './styleediting.js';
10
+ export { StyleUI } from './styleui.js';
11
+ export { StyleCommand } from './stylecommand.js';
12
+ export { StyleUtils } from './styleutils.js';
13
+ export { LinkStyleSupport } from './integrations/link.js';
14
+ export { ListStyleSupport } from './integrations/list.js';
15
+ export { TableStyleSupport } from './integrations/table.js';
16
+ export { StyleGridButtonView as _StyleGridButtonView } from './ui/stylegridbuttonview.js';
17
+ export { StyleGridView as _StyleGridView } from './ui/stylegridview.js';
18
+ export { StyleGroupView as _StyleGroupView } from './ui/stylegroupview.js';
19
+ export { StylePanelView as _StylePanelView } from './ui/stylepanelview.js';
12
20
  import './augmentation.js';
@@ -6,8 +6,8 @@
6
6
  * @module style/integrations/link
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUtils from '../styleutils.js';
10
- export default class LinkStyleSupport extends Plugin {
9
+ import { StyleUtils } from '../styleutils.js';
10
+ export declare class LinkStyleSupport extends Plugin {
11
11
  private _styleUtils;
12
12
  private _htmlSupport;
13
13
  /**
@@ -7,8 +7,8 @@
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { findAttributeRange, findAttributeRangeBound } from 'ckeditor5/src/typing.js';
10
- import StyleUtils from '../styleutils.js';
11
- export default class LinkStyleSupport extends Plugin {
10
+ import { StyleUtils } from '../styleutils.js';
11
+ export class LinkStyleSupport extends Plugin {
12
12
  _styleUtils;
13
13
  _htmlSupport;
14
14
  /**
@@ -6,8 +6,8 @@
6
6
  * @module style/integrations/list
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUtils from '../styleutils.js';
10
- export default class ListStyleSupport extends Plugin {
9
+ import { StyleUtils } from '../styleutils.js';
10
+ export declare class ListStyleSupport extends Plugin {
11
11
  private _listUtils;
12
12
  private _styleUtils;
13
13
  private _htmlSupport;
@@ -6,8 +6,8 @@
6
6
  * @module style/integrations/list
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUtils from '../styleutils.js';
10
- export default class ListStyleSupport extends Plugin {
9
+ import { StyleUtils } from '../styleutils.js';
10
+ export class ListStyleSupport extends Plugin {
11
11
  _listUtils;
12
12
  _styleUtils;
13
13
  _htmlSupport;
@@ -6,8 +6,8 @@
6
6
  * @module style/integrations/table
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUtils from '../styleutils.js';
10
- export default class TableStyleSupport extends Plugin {
9
+ import { StyleUtils } from '../styleutils.js';
10
+ export declare class TableStyleSupport extends Plugin {
11
11
  private _tableUtils;
12
12
  private _styleUtils;
13
13
  /**
@@ -6,8 +6,8 @@
6
6
  * @module style/integrations/table
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUtils from '../styleutils.js';
10
- export default class TableStyleSupport extends Plugin {
9
+ import { StyleUtils } from '../styleutils.js';
10
+ export class TableStyleSupport extends Plugin {
11
11
  _tableUtils;
12
12
  _styleUtils;
13
13
  /**
package/src/style.d.ts CHANGED
@@ -6,15 +6,15 @@
6
6
  * @module style/style
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUI from './styleui.js';
10
- import StyleEditing from './styleediting.js';
9
+ import { StyleUI } from './styleui.js';
10
+ import { StyleEditing } from './styleediting.js';
11
11
  /**
12
12
  * The style plugin.
13
13
  *
14
14
  * This is a "glue" plugin that loads the {@link module:style/styleediting~StyleEditing style editing feature}
15
15
  * and {@link module:style/styleui~StyleUI style UI feature}.
16
16
  */
17
- export default class Style extends Plugin {
17
+ export declare class Style extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
package/src/style.js CHANGED
@@ -6,15 +6,15 @@
6
6
  * @module style/style
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUI from './styleui.js';
10
- import StyleEditing from './styleediting.js';
9
+ import { StyleUI } from './styleui.js';
10
+ import { StyleEditing } from './styleediting.js';
11
11
  /**
12
12
  * The style plugin.
13
13
  *
14
14
  * This is a "glue" plugin that loads the {@link module:style/styleediting~StyleEditing style editing feature}
15
15
  * and {@link module:style/styleui~StyleUI style UI feature}.
16
16
  */
17
- export default class Style extends Plugin {
17
+ export class Style extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -9,7 +9,7 @@ import { type NormalizedStyleDefinitions } from './styleutils.js';
9
9
  *
10
10
  * Applies and removes styles from selection and elements.
11
11
  */
12
- export default class StyleCommand extends Command {
12
+ export declare class StyleCommand extends Command {
13
13
  /**
14
14
  * Set of currently applied styles on the current selection.
15
15
  *
@@ -52,13 +52,13 @@ export default class StyleCommand extends Command {
52
52
  *
53
53
  * If the command value already contains the requested style, it will remove the style classes. Otherwise, it will set it.
54
54
  *
55
- * The execution result differs, depending on the {@link module:engine/model/document~Document#selection} and the
55
+ * The execution result differs, depending on the {@link module:engine/model/document~ModelDocument#selection} and the
56
56
  * style type (inline or block):
57
57
  *
58
58
  * * When applying inline styles:
59
59
  * * If the selection is on a range, the command applies the style classes to all nodes in that range.
60
60
  * * If the selection is collapsed in a non-empty node, the command applies the style classes to the
61
- * {@link module:engine/model/document~Document#selection}.
61
+ * {@link module:engine/model/document~ModelDocument#selection}.
62
62
  *
63
63
  * * When applying block styles:
64
64
  * * If the selection is on a range, the command applies the style classes to the nearest block parent element.
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import { Command } from 'ckeditor5/src/core.js';
6
6
  import { logWarning, first } from 'ckeditor5/src/utils.js';
7
- import StyleUtils from './styleutils.js';
7
+ import { StyleUtils } from './styleutils.js';
8
8
  /**
9
9
  * Style command.
10
10
  *
11
11
  * Applies and removes styles from selection and elements.
12
12
  */
13
- export default class StyleCommand extends Command {
13
+ export class StyleCommand extends Command {
14
14
  /**
15
15
  * Normalized definitions of the styles.
16
16
  */
@@ -86,13 +86,13 @@ export default class StyleCommand extends Command {
86
86
  *
87
87
  * If the command value already contains the requested style, it will remove the style classes. Otherwise, it will set it.
88
88
  *
89
- * The execution result differs, depending on the {@link module:engine/model/document~Document#selection} and the
89
+ * The execution result differs, depending on the {@link module:engine/model/document~ModelDocument#selection} and the
90
90
  * style type (inline or block):
91
91
  *
92
92
  * * When applying inline styles:
93
93
  * * If the selection is on a range, the command applies the style classes to all nodes in that range.
94
94
  * * If the selection is collapsed in a non-empty node, the command applies the style classes to the
95
- * {@link module:engine/model/document~Document#selection}.
95
+ * {@link module:engine/model/document~ModelDocument#selection}.
96
96
  *
97
97
  * * When applying block styles:
98
98
  * * If the selection is on a range, the command applies the style classes to the nearest block parent element.
@@ -6,10 +6,10 @@
6
6
  * @module style/styleediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUtils from './styleutils.js';
10
- import ListStyleSupport from './integrations/list.js';
11
- import TableStyleSupport from './integrations/table.js';
12
- import LinkStyleSupport from './integrations/link.js';
9
+ import { StyleUtils } from './styleutils.js';
10
+ import { ListStyleSupport } from './integrations/list.js';
11
+ import { TableStyleSupport } from './integrations/table.js';
12
+ import { LinkStyleSupport } from './integrations/link.js';
13
13
  /**
14
14
  * The style engine feature.
15
15
  *
@@ -17,7 +17,7 @@ import LinkStyleSupport from './integrations/link.js';
17
17
  * {@link module:style/styleconfig~StyleConfig#definitions configured style definitions} and introduces the
18
18
  * {@link module:style/stylecommand~StyleCommand style command} that applies styles to the content of the document.
19
19
  */
20
- export default class StyleEditing extends Plugin {
20
+ export declare class StyleEditing extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -6,11 +6,11 @@
6
6
  * @module style/styleediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleCommand from './stylecommand.js';
10
- import StyleUtils from './styleutils.js';
11
- import ListStyleSupport from './integrations/list.js';
12
- import TableStyleSupport from './integrations/table.js';
13
- import LinkStyleSupport from './integrations/link.js';
9
+ import { StyleCommand } from './stylecommand.js';
10
+ import { StyleUtils } from './styleutils.js';
11
+ import { ListStyleSupport } from './integrations/list.js';
12
+ import { TableStyleSupport } from './integrations/table.js';
13
+ import { LinkStyleSupport } from './integrations/link.js';
14
14
  /**
15
15
  * The style engine feature.
16
16
  *
@@ -18,7 +18,7 @@ import LinkStyleSupport from './integrations/link.js';
18
18
  * {@link module:style/styleconfig~StyleConfig#definitions configured style definitions} and introduces the
19
19
  * {@link module:style/stylecommand~StyleCommand style command} that applies styles to the content of the document.
20
20
  */
21
- export default class StyleEditing extends Plugin {
21
+ export class StyleEditing extends Plugin {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
package/src/styleui.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * @module style/styleui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StyleUtils from './styleutils.js';
9
+ import { StyleUtils } from './styleutils.js';
10
10
  import '../theme/style.css';
11
11
  /**
12
12
  * The UI plugin of the style feature .
@@ -14,7 +14,7 @@ import '../theme/style.css';
14
14
  * It registers the `'style'` UI dropdown in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
15
15
  * that displays a grid of styles and allows changing styles of the content.
16
16
  */
17
- export default class StyleUI extends Plugin {
17
+ export declare class StyleUI extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
package/src/styleui.js CHANGED
@@ -7,8 +7,8 @@
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { createDropdown } from 'ckeditor5/src/ui.js';
10
- import StylePanelView from './ui/stylepanelview.js';
11
- import StyleUtils from './styleutils.js';
10
+ import { StylePanelView } from './ui/stylepanelview.js';
11
+ import { StyleUtils } from './styleutils.js';
12
12
  import '../theme/style.css';
13
13
  /**
14
14
  * The UI plugin of the style feature .
@@ -16,7 +16,7 @@ import '../theme/style.css';
16
16
  * It registers the `'style'` UI dropdown in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
17
17
  * that displays a grid of styles and allows changing styles of the content.
18
18
  */
19
- export default class StyleUI extends Plugin {
19
+ export class StyleUI extends Plugin {
20
20
  /**
21
21
  * @inheritDoc
22
22
  */
@@ -6,12 +6,12 @@
6
6
  * @module style/styleutils
7
7
  */
8
8
  import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
- import type { Element, DocumentSelection, Selectable } from 'ckeditor5/src/engine.js';
9
+ import type { ModelElement, ModelDocumentSelection, ModelSelectable } from 'ckeditor5/src/engine.js';
10
10
  import type { DecoratedMethodEvent } from 'ckeditor5/src/utils.js';
11
11
  import type { TemplateDefinition } from 'ckeditor5/src/ui.js';
12
12
  import type { DataSchema } from '@ckeditor/ckeditor5-html-support';
13
13
  import type { StyleDefinition } from './styleconfig.js';
14
- export default class StyleUtils extends Plugin {
14
+ export declare class StyleUtils extends Plugin {
15
15
  private _htmlSupport;
16
16
  /**
17
17
  * @inheritDoc
@@ -56,37 +56,37 @@ export default class StyleUtils extends Plugin {
56
56
  *
57
57
  * @internal
58
58
  */
59
- isStyleEnabledForBlock(definition: BlockStyleDefinition, block: Element): boolean;
59
+ isStyleEnabledForBlock(definition: BlockStyleDefinition, block: ModelElement): boolean;
60
60
  /**
61
61
  * Returns true if the given style is applied to the specified block element.
62
62
  *
63
63
  * @internal
64
64
  */
65
- isStyleActiveForBlock(definition: BlockStyleDefinition, block: Element): boolean;
65
+ isStyleActiveForBlock(definition: BlockStyleDefinition, block: ModelElement): boolean;
66
66
  /**
67
67
  * Returns an array of block elements that style should be applied to.
68
68
  *
69
69
  * @internal
70
70
  */
71
- getAffectedBlocks(definition: BlockStyleDefinition, block: Element): Array<Element> | null;
71
+ getAffectedBlocks(definition: BlockStyleDefinition, block: ModelElement): Array<ModelElement> | null;
72
72
  /**
73
73
  * Verifies if the given style is applicable to the provided document selection.
74
74
  *
75
75
  * @internal
76
76
  */
77
- isStyleEnabledForInlineSelection(definition: InlineStyleDefinition, selection: DocumentSelection): boolean;
77
+ isStyleEnabledForInlineSelection(definition: InlineStyleDefinition, selection: ModelDocumentSelection): boolean;
78
78
  /**
79
79
  * Returns true if the given style is applied to the specified document selection.
80
80
  *
81
81
  * @internal
82
82
  */
83
- isStyleActiveForInlineSelection(definition: InlineStyleDefinition, selection: DocumentSelection): boolean;
83
+ isStyleActiveForInlineSelection(definition: InlineStyleDefinition, selection: ModelDocumentSelection): boolean;
84
84
  /**
85
85
  * Returns a selectable that given style should be applied to.
86
86
  *
87
87
  * @internal
88
88
  */
89
- getAffectedInlineSelectable(definition: InlineStyleDefinition, selection: DocumentSelection): Selectable;
89
+ getAffectedInlineSelectable(definition: InlineStyleDefinition, selection: ModelDocumentSelection): ModelSelectable;
90
90
  /**
91
91
  * Returns the `TemplateDefinition` used by styles dropdown to render style preview.
92
92
  *
package/src/styleutils.js CHANGED
@@ -12,7 +12,7 @@ const NON_PREVIEWABLE_ELEMENT_NAMES = [
12
12
  'caption', 'colgroup', 'dd', 'dt', 'figcaption', 'legend', 'li', 'optgroup', 'option', 'rp',
13
13
  'rt', 'summary', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr'
14
14
  ];
15
- export default class StyleUtils extends Plugin {
15
+ export class StyleUtils extends Plugin {
16
16
  _htmlSupport;
17
17
  /**
18
18
  * @inheritDoc
@@ -10,8 +10,10 @@ import { ButtonView, View } from 'ckeditor5/src/ui.js';
10
10
  import type { NormalizedStyleDefinition } from '../styleutils.js';
11
11
  /**
12
12
  * A class representing an individual button (style) in the grid. Renders a rich preview of the style.
13
+ *
14
+ * @internal
13
15
  */
14
- export default class StyleGridButtonView extends ButtonView {
16
+ export declare class StyleGridButtonView extends ButtonView {
15
17
  /**
16
18
  * Definition of the style the button will apply when executed.
17
19
  */
@@ -5,8 +5,10 @@
5
5
  import { ButtonView, View } from 'ckeditor5/src/ui.js';
6
6
  /**
7
7
  * A class representing an individual button (style) in the grid. Renders a rich preview of the style.
8
+ *
9
+ * @internal
8
10
  */
9
- export default class StyleGridButtonView extends ButtonView {
11
+ export class StyleGridButtonView extends ButtonView {
10
12
  /**
11
13
  * Definition of the style the button will apply when executed.
12
14
  */
@@ -7,14 +7,16 @@
7
7
  */
8
8
  import { View, type ViewCollection, type FocusableView } from 'ckeditor5/src/ui.js';
9
9
  import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
- import StyleGridButtonView from './stylegridbuttonview.js';
10
+ import { StyleGridButtonView } from './stylegridbuttonview.js';
11
11
  import type { NormalizedStyleDefinition } from '../styleutils.js';
12
12
  import '../../theme/stylegrid.css';
13
13
  /**
14
14
  * A class representing a grid of styles ({@link module:style/ui/stylegridbuttonview~StyleGridButtonView buttons}).
15
15
  * Allows users to select a style.
16
+ *
17
+ * @internal
16
18
  */
17
- export default class StyleGridView extends View<HTMLDivElement> implements FocusableView {
19
+ export declare class StyleGridView extends View<HTMLDivElement> implements FocusableView {
18
20
  /**
19
21
  * Tracks information about the DOM focus in the view.
20
22
  */
@@ -7,13 +7,15 @@
7
7
  */
8
8
  import { View, addKeyboardHandlingForGrid } from 'ckeditor5/src/ui.js';
9
9
  import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
10
- import StyleGridButtonView from './stylegridbuttonview.js';
10
+ import { StyleGridButtonView } from './stylegridbuttonview.js';
11
11
  import '../../theme/stylegrid.css';
12
12
  /**
13
13
  * A class representing a grid of styles ({@link module:style/ui/stylegridbuttonview~StyleGridButtonView buttons}).
14
14
  * Allows users to select a style.
15
+ *
16
+ * @internal
15
17
  */
16
- export default class StyleGridView extends View {
18
+ export class StyleGridView extends View {
17
19
  /**
18
20
  * Tracks information about the DOM focus in the view.
19
21
  */
@@ -7,15 +7,17 @@
7
7
  */
8
8
  import { LabelView, View } from 'ckeditor5/src/ui.js';
9
9
  import type { Locale } from 'ckeditor5/src/utils.js';
10
- import StyleGridView from './stylegridview.js';
10
+ import { StyleGridView } from './stylegridview.js';
11
11
  import type { NormalizedStyleDefinition } from '../styleutils.js';
12
12
  import '../../theme/stylegroup.css';
13
13
  /**
14
14
  * A class representing a group of styles (e.g. "block" or "inline").
15
15
  *
16
16
  * Renders a {@link module:style/ui/stylegridview~StyleGridView style grid} and a label.
17
+ *
18
+ * @internal
17
19
  */
18
- export default class StyleGroupView extends View<HTMLDivElement> {
20
+ export declare class StyleGroupView extends View<HTMLDivElement> {
19
21
  /**
20
22
  * The styles grid of the group.
21
23
  */
@@ -6,14 +6,16 @@
6
6
  * @module style/ui/stylegroupview
7
7
  */
8
8
  import { LabelView, View } from 'ckeditor5/src/ui.js';
9
- import StyleGridView from './stylegridview.js';
9
+ import { StyleGridView } from './stylegridview.js';
10
10
  import '../../theme/stylegroup.css';
11
11
  /**
12
12
  * A class representing a group of styles (e.g. "block" or "inline").
13
13
  *
14
14
  * Renders a {@link module:style/ui/stylegridview~StyleGridView style grid} and a label.
15
+ *
16
+ * @internal
15
17
  */
16
- export default class StyleGroupView extends View {
18
+ export class StyleGroupView extends View {
17
19
  /**
18
20
  * The styles grid of the group.
19
21
  */
@@ -7,15 +7,17 @@
7
7
  */
8
8
  import { FocusCycler, View, ViewCollection } from 'ckeditor5/src/ui.js';
9
9
  import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
- import StyleGroupView from './stylegroupview.js';
11
- import type StyleGridView from './stylegridview.js';
10
+ import { StyleGroupView } from './stylegroupview.js';
11
+ import { type StyleGridView } from './stylegridview.js';
12
12
  import type { NormalizedStyleDefinitions } from '../styleutils.js';
13
13
  import '../../theme/stylepanel.css';
14
14
  /**
15
15
  * A class representing a panel with available content styles. It renders styles in button grids, grouped
16
16
  * in categories.
17
+ *
18
+ * @internal
17
19
  */
18
- export default class StylePanelView extends View<HTMLDivElement> {
20
+ export declare class StylePanelView extends View<HTMLDivElement> {
19
21
  /**
20
22
  * Tracks information about DOM focus in the panel.
21
23
  */
@@ -7,13 +7,15 @@
7
7
  */
8
8
  import { FocusCycler, View, ViewCollection } from 'ckeditor5/src/ui.js';
9
9
  import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
10
- import StyleGroupView from './stylegroupview.js';
10
+ import { StyleGroupView } from './stylegroupview.js';
11
11
  import '../../theme/stylepanel.css';
12
12
  /**
13
13
  * A class representing a panel with available content styles. It renders styles in button grids, grouped
14
14
  * in categories.
15
+ *
16
+ * @internal
15
17
  */
16
- export default class StylePanelView extends View {
18
+ export class StylePanelView extends View {
17
19
  /**
18
20
  * Tracks information about DOM focus in the panel.
19
21
  */