@ckeditor/ckeditor5-ui 48.2.0 → 48.3.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 (117) hide show
  1. package/dist/arialiveannouncer.d.ts +90 -90
  2. package/dist/augmentation.d.ts +86 -86
  3. package/dist/autocomplete/autocompleteview.d.ts +70 -70
  4. package/dist/badge/badge.d.ts +119 -121
  5. package/dist/bindings/addkeyboardhandlingforgrid.d.ts +22 -22
  6. package/dist/bindings/clickoutsidehandler.d.ts +25 -25
  7. package/dist/bindings/csstransitiondisablermixin.d.ts +47 -36
  8. package/dist/bindings/draggableviewmixin.d.ts +45 -37
  9. package/dist/bindings/preventdefault.d.ts +30 -30
  10. package/dist/bindings/submithandler.d.ts +49 -49
  11. package/dist/button/button.d.ts +167 -167
  12. package/dist/button/buttonlabel.d.ts +28 -28
  13. package/dist/button/buttonlabelview.d.ts +26 -26
  14. package/dist/button/buttonview.d.ts +192 -192
  15. package/dist/button/filedialogbuttonview.d.ts +107 -99
  16. package/dist/button/listitembuttonview.d.ts +73 -73
  17. package/dist/button/switchbuttonview.d.ts +40 -40
  18. package/dist/collapsible/collapsibleview.d.ts +63 -63
  19. package/dist/colorgrid/colorgridview.d.ts +117 -117
  20. package/dist/colorgrid/colortileview.d.ts +21 -21
  21. package/dist/colorgrid/utils.d.ts +35 -35
  22. package/dist/colorpicker/colorpickerview.d.ts +155 -157
  23. package/dist/colorpicker/utils.d.ts +37 -37
  24. package/dist/colorselector/colorgridsfragmentview.d.ts +191 -191
  25. package/dist/colorselector/colorpickerfragmentview.d.ts +129 -129
  26. package/dist/colorselector/colorselectorview.d.ts +227 -229
  27. package/dist/colorselector/documentcolorcollection.d.ts +52 -59
  28. package/dist/componentfactory.d.ts +76 -76
  29. package/dist/dialog/dialog.d.ts +311 -288
  30. package/dist/dialog/dialogactionsview.d.ts +62 -62
  31. package/dist/dialog/dialogcontentview.d.ts +22 -22
  32. package/dist/dialog/dialogview.d.ts +255 -251
  33. package/dist/dropdown/button/dropdownbutton.d.ts +17 -17
  34. package/dist/dropdown/button/dropdownbuttonview.d.ts +41 -41
  35. package/dist/dropdown/button/splitbuttonview.d.ts +155 -155
  36. package/dist/dropdown/dropdownpanelfocusable.d.ts +16 -16
  37. package/dist/dropdown/dropdownpanelview.d.ts +56 -56
  38. package/dist/dropdown/dropdownview.d.ts +326 -326
  39. package/dist/dropdown/menu/dropdownmenubehaviors.d.ts +43 -43
  40. package/dist/dropdown/menu/dropdownmenubuttonview.d.ts +29 -29
  41. package/dist/dropdown/menu/dropdownmenulistitembuttonview.d.ts +12 -12
  42. package/dist/dropdown/menu/dropdownmenulistitemview.d.ts +17 -17
  43. package/dist/dropdown/menu/dropdownmenulistview.d.ts +19 -19
  44. package/dist/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +28 -28
  45. package/dist/dropdown/menu/dropdownmenunestedmenuview.d.ts +126 -126
  46. package/dist/dropdown/menu/dropdownmenurootlistview.d.ts +132 -132
  47. package/dist/dropdown/menu/utils.d.ts +112 -112
  48. package/dist/dropdown/utils.d.ts +272 -272
  49. package/dist/editableui/editableuiview.d.ts +78 -78
  50. package/dist/editableui/inline/inlineeditableuiview.d.ts +38 -38
  51. package/dist/editorui/accessibilityhelp/accessibilityhelp.d.ts +50 -50
  52. package/dist/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +30 -30
  53. package/dist/editorui/bodycollection.d.ts +86 -86
  54. package/dist/editorui/boxed/boxededitoruiview.d.ts +35 -35
  55. package/dist/editorui/editorui.d.ts +348 -351
  56. package/dist/editorui/editoruiview.d.ts +53 -53
  57. package/dist/editorui/evaluationbadge.d.ts +28 -28
  58. package/dist/editorui/poweredby.d.ts +25 -25
  59. package/dist/focuscycler.d.ts +265 -270
  60. package/dist/formheader/formheaderview.d.ts +53 -53
  61. package/dist/formrow/formrowview.d.ts +52 -52
  62. package/dist/highlightedtext/buttonlabelwithhighlightview.d.ts +25 -25
  63. package/dist/highlightedtext/highlightedtextview.d.ts +33 -33
  64. package/dist/highlightedtext/labelwithhighlightview.d.ts +21 -21
  65. package/dist/icon/iconview.d.ts +83 -83
  66. package/dist/iframe/iframeview.d.ts +42 -42
  67. package/dist/index.css.map +1 -1
  68. package/dist/index.d.ts +136 -136
  69. package/dist/index.js +16467 -17751
  70. package/dist/index.js.map +1 -1
  71. package/dist/input/inputbase.d.ts +114 -114
  72. package/dist/input/inputview.d.ts +28 -28
  73. package/dist/inputnumber/inputnumberview.d.ts +44 -44
  74. package/dist/inputtext/inputtextview.d.ts +13 -13
  75. package/dist/label/labelview.d.ts +31 -31
  76. package/dist/labeledfield/labeledfieldview.d.ts +180 -180
  77. package/dist/labeledfield/utils.d.ts +112 -112
  78. package/dist/labeledinput/labeledinputview.d.ts +120 -120
  79. package/dist/legacyerrors.d.ts +0 -4
  80. package/dist/list/listitemgroupview.d.ts +54 -54
  81. package/dist/list/listitemview.d.ts +31 -31
  82. package/dist/list/listseparatorview.d.ts +13 -13
  83. package/dist/list/listview.d.ts +119 -119
  84. package/dist/menubar/menubarmenubuttonview.d.ts +28 -28
  85. package/dist/menubar/menubarmenulistitembuttonview.d.ts +16 -16
  86. package/dist/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +18 -18
  87. package/dist/menubar/menubarmenulistitemview.d.ts +20 -20
  88. package/dist/menubar/menubarmenulistview.d.ts +24 -24
  89. package/dist/menubar/menubarmenupanelview.d.ts +47 -47
  90. package/dist/menubar/menubarmenuview.d.ts +113 -113
  91. package/dist/menubar/menubarview.d.ts +145 -145
  92. package/dist/menubar/utils.d.ts +455 -455
  93. package/dist/model.d.ts +19 -18
  94. package/dist/notification/notification.d.ts +200 -200
  95. package/dist/panel/balloon/balloonpanelview.d.ts +692 -692
  96. package/dist/panel/balloon/contextualballoon.d.ts +298 -298
  97. package/dist/panel/sticky/stickypanelview.d.ts +151 -151
  98. package/dist/search/filteredview.d.ts +23 -23
  99. package/dist/search/filtergroupanditemnames.d.ts +11 -11
  100. package/dist/search/searchinfoview.d.ts +39 -39
  101. package/dist/search/searchresultsview.d.ts +49 -49
  102. package/dist/search/text/searchtextqueryview.d.ts +63 -63
  103. package/dist/search/text/searchtextview.d.ts +203 -203
  104. package/dist/spinner/spinnerview.d.ts +20 -20
  105. package/dist/template.d.ts +897 -902
  106. package/dist/textarea/textareaview.d.ts +96 -96
  107. package/dist/toolbar/balloon/balloontoolbar.d.ts +122 -122
  108. package/dist/toolbar/block/blockbuttonview.d.ts +30 -30
  109. package/dist/toolbar/block/blocktoolbar.d.ts +166 -166
  110. package/dist/toolbar/normalizetoolbarconfig.d.ts +35 -35
  111. package/dist/toolbar/toolbarlinebreakview.d.ts +13 -13
  112. package/dist/toolbar/toolbarseparatorview.d.ts +13 -13
  113. package/dist/toolbar/toolbarview.d.ts +271 -271
  114. package/dist/tooltipmanager.d.ts +190 -193
  115. package/dist/view.d.ts +385 -388
  116. package/dist/viewcollection.d.ts +134 -134
  117. package/package.json +6 -6
@@ -1,471 +1,471 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, 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
- import { type MenuBarMenuView } from './menubarmenuview.js';
6
- import type { MenuBarView, MenuBarConfig, MenuBarConfigObject, MenuBarConfigAddedGroup, MenuBarConfigAddedMenu, NormalizedMenuBarConfigObject, MenuBarConfigAddedItem } from './menubarview.js';
7
- import { type ComponentFactory } from '../componentfactory.js';
8
- import { type Locale, type PositioningFunction } from '@ckeditor/ckeditor5-utils';
2
+ * @license Copyright (c) 2003-2026, 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
+ import { type MenuBarMenuView } from "./menubarmenuview.js";
6
+ import type { MenuBarView, MenuBarConfig, MenuBarConfigObject, MenuBarConfigAddedGroup, MenuBarConfigAddedMenu, NormalizedMenuBarConfigObject, MenuBarConfigAddedItem } from "./menubarview.js";
7
+ import { type ComponentFactory } from "../componentfactory.js";
8
+ import { type Locale, type PositioningFunction } from "@ckeditor/ckeditor5-utils";
9
9
  /**
10
- * Behaviors of the {@link module:ui/menubar/menubarview~MenuBarView} component.
11
- * @internal
12
- */
10
+ * Behaviors of the {@link module:ui/menubar/menubarview~MenuBarView} component.
11
+ * @internal
12
+ */
13
13
  export declare const MenuBarBehaviors: {
14
- /**
15
- * When the bar is already open:
16
- * * Opens the menu when the user hovers over its button.
17
- * * Closes open menu when another menu's button gets hovered.
18
- */
19
- toggleMenusAndFocusItemsOnHover(menuBarView: MenuBarView): void;
20
- /**
21
- * Moves between top-level menus using the arrow left and right keys.
22
- *
23
- * If the menubar has already been open, the arrow keys move focus between top-level menu buttons and open them.
24
- * If the menubar is closed, the arrow keys only move focus between top-level menu buttons.
25
- */
26
- focusCycleMenusOnArrows(menuBarView: MenuBarView): void;
27
- /**
28
- * Closes the entire sub-menu structure when the bar is closed. This prevents sub-menus from being open if the user
29
- * closes the entire bar, and then re-opens some top-level menu.
30
- */
31
- closeMenusWhenTheBarCloses(menuBarView: MenuBarView): void;
32
- /**
33
- * Handles the following case:
34
- * 1. Hover to open a sub-menu (A). The button has focus.
35
- * 2. Press arrow up/down to move focus to another sub-menu (B) button.
36
- * 3. Press arrow right to open the sub-menu (B).
37
- * 4. The sub-menu (A) should close as it would with `toggleMenusAndFocusItemsOnHover()`.
38
- */
39
- closeMenuWhenAnotherOnTheSameLevelOpens(menuBarView: MenuBarView): void;
40
- /**
41
- * Closes the bar when the user clicked outside of it (page body, editor root, etc.).
42
- */
43
- closeOnClickOutside(menuBarView: MenuBarView): void;
44
- /**
45
- * Tracks the keyboard focus interaction on the menu bar view. It is used to determine if the nested items
46
- * of the menu bar should render focus rings after first interaction with the keyboard.
47
- */
48
- enableFocusHighlightOnInteraction(menuBarView: MenuBarView): void;
14
+ /**
15
+ * When the bar is already open:
16
+ * * Opens the menu when the user hovers over its button.
17
+ * * Closes open menu when another menu's button gets hovered.
18
+ */
19
+ toggleMenusAndFocusItemsOnHover(menuBarView: MenuBarView): void;
20
+ /**
21
+ * Moves between top-level menus using the arrow left and right keys.
22
+ *
23
+ * If the menubar has already been open, the arrow keys move focus between top-level menu buttons and open them.
24
+ * If the menubar is closed, the arrow keys only move focus between top-level menu buttons.
25
+ */
26
+ focusCycleMenusOnArrows(menuBarView: MenuBarView): void;
27
+ /**
28
+ * Closes the entire sub-menu structure when the bar is closed. This prevents sub-menus from being open if the user
29
+ * closes the entire bar, and then re-opens some top-level menu.
30
+ */
31
+ closeMenusWhenTheBarCloses(menuBarView: MenuBarView): void;
32
+ /**
33
+ * Handles the following case:
34
+ * 1. Hover to open a sub-menu (A). The button has focus.
35
+ * 2. Press arrow up/down to move focus to another sub-menu (B) button.
36
+ * 3. Press arrow right to open the sub-menu (B).
37
+ * 4. The sub-menu (A) should close as it would with `toggleMenusAndFocusItemsOnHover()`.
38
+ */
39
+ closeMenuWhenAnotherOnTheSameLevelOpens(menuBarView: MenuBarView): void;
40
+ /**
41
+ * Closes the bar when the user clicked outside of it (page body, editor root, etc.).
42
+ */
43
+ closeOnClickOutside(menuBarView: MenuBarView): void;
44
+ /**
45
+ * Tracks the keyboard focus interaction on the menu bar view. It is used to determine if the nested items
46
+ * of the menu bar should render focus rings after first interaction with the keyboard.
47
+ */
48
+ enableFocusHighlightOnInteraction(menuBarView: MenuBarView): void;
49
49
  };
50
50
  /**
51
- * Behaviors of the {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} component.
52
- * @internal
53
- */
51
+ * Behaviors of the {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} component.
52
+ * @internal
53
+ */
54
54
  export declare const MenuBarMenuBehaviors: {
55
- /**
56
- * If the button of the menu is focused, pressing the arrow down key should open the panel and focus it.
57
- * This is analogous to the {@link module:ui/dropdown/dropdownview~DropdownView}.
58
- */
59
- openAndFocusPanelOnArrowDownKey(menuView: MenuBarMenuView): void;
60
- /**
61
- * Open the menu on the right arrow key press. This allows for navigating to sub-menus using the keyboard.
62
- */
63
- openOnArrowRightKey(menuView: MenuBarMenuView): void;
64
- /**
65
- * Opens the menu on its button click. Note that this behavior only opens but never closes the menu (unlike
66
- * {@link module:ui/dropdown/dropdownview~DropdownView}).
67
- */
68
- openOnButtonClick(menuView: MenuBarMenuView): void;
69
- /**
70
- * Toggles the menu on its button click. This behavior is analogous to {@link module:ui/dropdown/dropdownview~DropdownView}.
71
- */
72
- toggleOnButtonClick(menuView: MenuBarMenuView): void;
73
- /**
74
- * Opens the menu and focuses the panel content upon pressing the Enter key.
75
- */
76
- openAndFocusOnEnterKeyPress(menuView: MenuBarMenuView): void;
77
- /**
78
- * Closes the menu on the right left key press. This allows for navigating to sub-menus using the keyboard.
79
- */
80
- closeOnArrowLeftKey(menuView: MenuBarMenuView): void;
81
- /**
82
- * Closes the menu on the esc key press. This allows for navigating to sub-menus using the keyboard.
83
- */
84
- closeOnEscKey(menuView: MenuBarMenuView): void;
85
- /**
86
- * Closes the menu when its parent menu also closed. This prevents from orphaned open menus when the parent menu re-opens.
87
- */
88
- closeOnParentClose(menuView: MenuBarMenuView): void;
55
+ /**
56
+ * If the button of the menu is focused, pressing the arrow down key should open the panel and focus it.
57
+ * This is analogous to the {@link module:ui/dropdown/dropdownview~DropdownView}.
58
+ */
59
+ openAndFocusPanelOnArrowDownKey(menuView: MenuBarMenuView): void;
60
+ /**
61
+ * Open the menu on the right arrow key press. This allows for navigating to sub-menus using the keyboard.
62
+ */
63
+ openOnArrowRightKey(menuView: MenuBarMenuView): void;
64
+ /**
65
+ * Opens the menu on its button click. Note that this behavior only opens but never closes the menu (unlike
66
+ * {@link module:ui/dropdown/dropdownview~DropdownView}).
67
+ */
68
+ openOnButtonClick(menuView: MenuBarMenuView): void;
69
+ /**
70
+ * Toggles the menu on its button click. This behavior is analogous to {@link module:ui/dropdown/dropdownview~DropdownView}.
71
+ */
72
+ toggleOnButtonClick(menuView: MenuBarMenuView): void;
73
+ /**
74
+ * Opens the menu and focuses the panel content upon pressing the Enter key.
75
+ */
76
+ openAndFocusOnEnterKeyPress(menuView: MenuBarMenuView): void;
77
+ /**
78
+ * Closes the menu on the right left key press. This allows for navigating to sub-menus using the keyboard.
79
+ */
80
+ closeOnArrowLeftKey(menuView: MenuBarMenuView): void;
81
+ /**
82
+ * Closes the menu on the esc key press. This allows for navigating to sub-menus using the keyboard.
83
+ */
84
+ closeOnEscKey(menuView: MenuBarMenuView): void;
85
+ /**
86
+ * Closes the menu when its parent menu also closed. This prevents from orphaned open menus when the parent menu re-opens.
87
+ */
88
+ closeOnParentClose(menuView: MenuBarMenuView): void;
89
89
  };
90
90
  /**
91
- * Contains every positioning function used by {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} that decides where the
92
- * {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#panelView} should be placed.
93
- *
94
- * Top-level menu positioning functions:
95
- *
96
- * ┌──────┐
97
- * │ │
98
- * ├──────┴────────┐
99
- * │ │
100
- * │ │
101
- * │ │
102
- * │ SE │
103
- * └───────────────┘
104
- *
105
- * ┌──────┐
106
- * │ │
107
- * ┌────────┴──────┤
108
- * │ │
109
- * │ │
110
- * │ │
111
- * │ SW │
112
- * └───────────────┘
113
- *
114
- * ┌───────────────┐
115
- * │ NW │
116
- * │ │
117
- * │ │
118
- * │ │
119
- * └────────┬──────┤
120
- * │ │
121
- * └──────┘
122
- *
123
- * ┌───────────────┐
124
- * │ NE │
125
- * │ │
126
- * │ │
127
- * │ │
128
- * ├──────┬────────┘
129
- * │ │
130
- * └──────┘
131
- *
132
- * Sub-menu positioning functions:
133
- *
134
- * ┌──────┬───────────────┐
135
- * │ │ │
136
- * └──────┤ │
137
- * │ │
138
- * │ ES │
139
- * └───────────────┘
140
- *
141
- * ┌───────────────┬──────┐
142
- * │ │ │
143
- * │ ├──────┘
144
- * │ │
145
- * │ WS │
146
- * └───────────────┘
147
- *
148
- * ┌───────────────┐
149
- * │ EN │
150
- * │ │
151
- * ┌──────┤ │
152
- * │ │ │
153
- * └──────┴───────────────┘
154
- *
155
- * ┌───────────────┐
156
- * │ WN │
157
- * │ │
158
- * │ ├──────┐
159
- * │ │ │
160
- * └───────────────┴──────┘
161
- */
91
+ * Contains every positioning function used by {@link module:ui/menubar/menubarmenuview~MenuBarMenuView} that decides where the
92
+ * {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#panelView} should be placed.
93
+ *
94
+ * Top-level menu positioning functions:
95
+ *
96
+ * ┌──────┐
97
+ * │ │
98
+ * ├──────┴────────┐
99
+ * │ │
100
+ * │ │
101
+ * │ │
102
+ * │ SE │
103
+ * └───────────────┘
104
+ *
105
+ * ┌──────┐
106
+ * │ │
107
+ * ┌────────┴──────┤
108
+ * │ │
109
+ * │ │
110
+ * │ │
111
+ * │ SW │
112
+ * └───────────────┘
113
+ *
114
+ * ┌───────────────┐
115
+ * │ NW │
116
+ * │ │
117
+ * │ │
118
+ * │ │
119
+ * └────────┬──────┤
120
+ * │ │
121
+ * └──────┘
122
+ *
123
+ * ┌───────────────┐
124
+ * │ NE │
125
+ * │ │
126
+ * │ │
127
+ * │ │
128
+ * ├──────┬────────┘
129
+ * │ │
130
+ * └──────┘
131
+ *
132
+ * Sub-menu positioning functions:
133
+ *
134
+ * ┌──────┬───────────────┐
135
+ * │ │ │
136
+ * └──────┤ │
137
+ * │ │
138
+ * │ ES │
139
+ * └───────────────┘
140
+ *
141
+ * ┌───────────────┬──────┐
142
+ * │ │ │
143
+ * │ ├──────┘
144
+ * │ │
145
+ * │ WS │
146
+ * └───────────────┘
147
+ *
148
+ * ┌───────────────┐
149
+ * │ EN │
150
+ * │ │
151
+ * ┌──────┤ │
152
+ * │ │ │
153
+ * └──────┴───────────────┘
154
+ *
155
+ * ┌───────────────┐
156
+ * │ WN │
157
+ * │ │
158
+ * │ ├──────┐
159
+ * │ │ │
160
+ * └───────────────┴──────┘
161
+ */
162
162
  /**
163
- * @internal
164
- */
163
+ * @internal
164
+ */
165
165
  export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, PositioningFunction>;
166
166
  /**
167
- * The default items {@link module:core/editor/editorconfig~EditorConfig#menuBar configuration} of the
168
- * {@link module:ui/menubar/menubarview~MenuBarView} component. It contains names of all menu bar components
169
- * registered in the {@link module:ui/componentfactory~ComponentFactory component factory} (available in the project).
170
- *
171
- * **Note**: Menu bar component names provided by core editor features are prefixed with `menuBar:` in order to distinguish
172
- * them from components referenced by the {@link module:core/editor/editorconfig~EditorConfig#toolbar toolbar configuration}, for instance,
173
- * `'menuBar:bold'` is a menu bar button but `'bold'` is a toolbar button.
174
- *
175
- * Below is the preset menu bar structure (the default value of `config.menuBar.items` property):
176
- *
177
- * ```ts
178
- * [
179
- * {
180
- * menuId: 'file',
181
- * label: 'File',
182
- * groups: [
183
- * {
184
- * groupId: 'export',
185
- * items: [
186
- * 'menuBar:exportPdf',
187
- * 'menuBar:exportWord'
188
- * ]
189
- * },
190
- * {
191
- * groupId: 'import',
192
- * items: [
193
- * 'menuBar:importWord'
194
- * ]
195
- * },
196
- * {
197
- * groupId: 'revisionHistory',
198
- * items: [
199
- * 'menuBar:revisionHistory'
200
- * ]
201
- * }
202
- * ]
203
- * },
204
- * {
205
- * menuId: 'edit',
206
- * label: 'Edit',
207
- * groups: [
208
- * {
209
- * groupId: 'undo',
210
- * items: [
211
- * 'menuBar:undo',
212
- * 'menuBar:redo'
213
- * ]
214
- * },
215
- * {
216
- * groupId: 'selectAll',
217
- * items: [
218
- * 'menuBar:selectAll'
219
- * ]
220
- * },
221
- * {
222
- * groupId: 'findAndReplace',
223
- * items: [
224
- * 'menuBar:findAndReplace'
225
- * ]
226
- * }
227
- * ]
228
- * },
229
- * {
230
- * menuId: 'view',
231
- * label: 'View',
232
- * groups: [
233
- * {
234
- * groupId: 'sourceEditingEnhanced',
235
- * items: [
236
- * 'menuBar:sourceEditingEnhanced'
237
- * ]
238
- * },
239
- * {
240
- * groupId: 'sourceEditing',
241
- * items: [
242
- * 'menuBar:sourceEditing'
243
- * ]
244
- * },
245
- * {
246
- * groupId: 'showBlocks',
247
- * items: [
248
- * 'menuBar:showBlocks'
249
- * ]
250
- * },
251
- * {
252
- * groupId: 'previewMergeFields',
253
- * items: [
254
- * 'menuBar:previewMergeFields'
255
- * ]
256
- * },
257
- * {
258
- * groupId: 'fullscreen',
259
- * items: [
260
- * 'menuBar:fullscreen'
261
- * ]
262
- * },
263
- * {
264
- * groupId: 'restrictedEditingException',
265
- * items: [
266
- * 'menuBar:restrictedEditingException'
267
- * ]
268
- * }
269
- * ]
270
- * },
271
- * {
272
- * menuId: 'insert',
273
- * label: 'Insert',
274
- * groups: [
275
- * {
276
- * groupId: 'insertMainWidgets',
277
- * items: [
278
- * 'menuBar:insertImage',
279
- * 'menuBar:ckbox',
280
- * 'menuBar:ckfinder',
281
- * 'menuBar:insertTable'
282
- * ]
283
- * },
284
- * {
285
- * groupId: 'insertInline',
286
- * items: [
287
- * 'menuBar:link',
288
- * 'menuBar:insertFootnote',
289
- * 'menuBar:bookmark',
290
- * 'menuBar:comment',
291
- * 'menuBar:insertMergeField',
292
- * 'menuBar:emoji'
293
- * ]
294
- * },
295
- * {
296
- * groupId: 'insertMinorWidgets',
297
- * items: [
298
- * 'menuBar:mediaEmbed',
299
- * 'menuBar:insertTemplate',
300
- * 'menuBar:blockQuote',
301
- * 'menuBar:codeBlock',
302
- * 'menuBar:htmlEmbed'
303
- * ]
304
- * },
305
- * {
306
- * groupId: 'insertStructureWidgets',
307
- * items: [
308
- * 'menuBar:horizontalLine',
309
- * 'menuBar:pageBreak',
310
- * 'menuBar:tableOfContents'
311
- * ]
312
- * },
313
- * {
314
- * groupId: 'restrictedEditing',
315
- * items: [
316
- * 'menuBar:restrictedEditing'
317
- * ]
318
- * }
319
- * ]
320
- * },
321
- * {
322
- * menuId: 'format',
323
- * label: 'Format',
324
- * groups: [
325
- * {
326
- * groupId: 'textAndFont',
327
- * items: [
328
- * {
329
- * menuId: 'text',
330
- * label: 'Text',
331
- * groups: [
332
- * {
333
- * groupId: 'basicStyles',
334
- * items: [
335
- * 'menuBar:bold',
336
- * 'menuBar:italic',
337
- * 'menuBar:underline',
338
- * 'menuBar:strikethrough',
339
- * 'menuBar:superscript',
340
- * 'menuBar:subscript',
341
- * 'menuBar:code'
342
- * ]
343
- * },
344
- * {
345
- * groupId: 'textPartLanguage',
346
- * items: [
347
- * 'menuBar:textPartLanguage'
348
- * ]
349
- * }
350
- * ]
351
- * },
352
- * {
353
- * menuId: 'font',
354
- * label: 'Font',
355
- * groups: [
356
- * {
357
- * groupId: 'fontProperties',
358
- * items: [
359
- * 'menuBar:fontSize',
360
- * 'menuBar:fontFamily'
361
- * ]
362
- * },
363
- * {
364
- * groupId: 'fontColors',
365
- * items: [
366
- * 'menuBar:fontColor',
367
- * 'menuBar:fontBackgroundColor'
368
- * ]
369
- * },
370
- * {
371
- * groupId: 'highlight',
372
- * items: [
373
- * 'menuBar:highlight'
374
- * ]
375
- * }
376
- * ]
377
- * },
378
- * 'menuBar:heading'
379
- * ]
380
- * },
381
- * {
382
- * groupId: 'list',
383
- * items: [
384
- * 'menuBar:bulletedList',
385
- * 'menuBar:numberedList',
386
- * 'menuBar:multiLevelList',
387
- * 'menuBar:todoList'
388
- * ]
389
- * },
390
- * {
391
- * groupId: 'indent',
392
- * items: [
393
- * 'menuBar:alignment',
394
- * 'menuBar:lineHeight',
395
- * 'menuBar:indent',
396
- * 'menuBar:outdent'
397
- * ]
398
- * },
399
- * {
400
- * groupId: 'caseChange',
401
- * items: [
402
- * 'menuBar:caseChange'
403
- * ]
404
- * },
405
- * {
406
- * groupId: 'removeFormat',
407
- * items: [
408
- * 'menuBar:removeFormat'
409
- * ]
410
- * }
411
- * ]
412
- * },
413
- * {
414
- * menuId: 'tools',
415
- * label: 'Tools',
416
- * groups: [
417
- * {
418
- * groupId: 'aiTools',
419
- * items: [
420
- * 'menuBar:aiAssistant',
421
- * 'menuBar:aiCommands',
422
- * 'menuBar:toggleAi',
423
- * 'menuBar:aiQuickActions'
424
- * ]
425
- * },
426
- * {
427
- * groupId: 'tools',
428
- * items: [
429
- * 'menuBar:trackChanges',
430
- * 'menuBar:commentsArchive'
431
- * ]
432
- * }
433
- * ]
434
- * },
435
- * {
436
- * menuId: 'help',
437
- * label: 'Help',
438
- * groups: [
439
- * {
440
- * groupId: 'help',
441
- * items: [
442
- * 'menuBar:accessibilityHelp'
443
- * ]
444
- * }
445
- * ]
446
- * }
447
- * ];
448
- * ```
449
- *
450
- * The menu bar can be customized using the `config.menuBar.removeItems` and `config.menuBar.addItems` properties.
451
- */
452
- export declare const DefaultMenuBarItems: MenuBarConfigObject['items'];
167
+ * The default items {@link module:core/editor/editorconfig~EditorConfig#menuBar configuration} of the
168
+ * {@link module:ui/menubar/menubarview~MenuBarView} component. It contains names of all menu bar components
169
+ * registered in the {@link module:ui/componentfactory~ComponentFactory component factory} (available in the project).
170
+ *
171
+ * **Note**: Menu bar component names provided by core editor features are prefixed with `menuBar:` in order to distinguish
172
+ * them from components referenced by the {@link module:core/editor/editorconfig~EditorConfig#toolbar toolbar configuration}, for instance,
173
+ * `'menuBar:bold'` is a menu bar button but `'bold'` is a toolbar button.
174
+ *
175
+ * Below is the preset menu bar structure (the default value of `config.menuBar.items` property):
176
+ *
177
+ * ```ts
178
+ * [
179
+ * {
180
+ * menuId: 'file',
181
+ * label: 'File',
182
+ * groups: [
183
+ * {
184
+ * groupId: 'export',
185
+ * items: [
186
+ * 'menuBar:exportPdf',
187
+ * 'menuBar:exportWord'
188
+ * ]
189
+ * },
190
+ * {
191
+ * groupId: 'import',
192
+ * items: [
193
+ * 'menuBar:importWord'
194
+ * ]
195
+ * },
196
+ * {
197
+ * groupId: 'revisionHistory',
198
+ * items: [
199
+ * 'menuBar:revisionHistory'
200
+ * ]
201
+ * }
202
+ * ]
203
+ * },
204
+ * {
205
+ * menuId: 'edit',
206
+ * label: 'Edit',
207
+ * groups: [
208
+ * {
209
+ * groupId: 'undo',
210
+ * items: [
211
+ * 'menuBar:undo',
212
+ * 'menuBar:redo'
213
+ * ]
214
+ * },
215
+ * {
216
+ * groupId: 'selectAll',
217
+ * items: [
218
+ * 'menuBar:selectAll'
219
+ * ]
220
+ * },
221
+ * {
222
+ * groupId: 'findAndReplace',
223
+ * items: [
224
+ * 'menuBar:findAndReplace'
225
+ * ]
226
+ * }
227
+ * ]
228
+ * },
229
+ * {
230
+ * menuId: 'view',
231
+ * label: 'View',
232
+ * groups: [
233
+ * {
234
+ * groupId: 'sourceEditingEnhanced',
235
+ * items: [
236
+ * 'menuBar:sourceEditingEnhanced'
237
+ * ]
238
+ * },
239
+ * {
240
+ * groupId: 'sourceEditing',
241
+ * items: [
242
+ * 'menuBar:sourceEditing'
243
+ * ]
244
+ * },
245
+ * {
246
+ * groupId: 'showBlocks',
247
+ * items: [
248
+ * 'menuBar:showBlocks'
249
+ * ]
250
+ * },
251
+ * {
252
+ * groupId: 'previewMergeFields',
253
+ * items: [
254
+ * 'menuBar:previewMergeFields'
255
+ * ]
256
+ * },
257
+ * {
258
+ * groupId: 'fullscreen',
259
+ * items: [
260
+ * 'menuBar:fullscreen'
261
+ * ]
262
+ * },
263
+ * {
264
+ * groupId: 'restrictedEditingException',
265
+ * items: [
266
+ * 'menuBar:restrictedEditingException'
267
+ * ]
268
+ * }
269
+ * ]
270
+ * },
271
+ * {
272
+ * menuId: 'insert',
273
+ * label: 'Insert',
274
+ * groups: [
275
+ * {
276
+ * groupId: 'insertMainWidgets',
277
+ * items: [
278
+ * 'menuBar:insertImage',
279
+ * 'menuBar:ckbox',
280
+ * 'menuBar:ckfinder',
281
+ * 'menuBar:insertTable'
282
+ * ]
283
+ * },
284
+ * {
285
+ * groupId: 'insertInline',
286
+ * items: [
287
+ * 'menuBar:link',
288
+ * 'menuBar:insertFootnote',
289
+ * 'menuBar:bookmark',
290
+ * 'menuBar:comment',
291
+ * 'menuBar:insertMergeField',
292
+ * 'menuBar:emoji'
293
+ * ]
294
+ * },
295
+ * {
296
+ * groupId: 'insertMinorWidgets',
297
+ * items: [
298
+ * 'menuBar:mediaEmbed',
299
+ * 'menuBar:insertTemplate',
300
+ * 'menuBar:blockQuote',
301
+ * 'menuBar:codeBlock',
302
+ * 'menuBar:htmlEmbed'
303
+ * ]
304
+ * },
305
+ * {
306
+ * groupId: 'insertStructureWidgets',
307
+ * items: [
308
+ * 'menuBar:horizontalLine',
309
+ * 'menuBar:pageBreak',
310
+ * 'menuBar:tableOfContents'
311
+ * ]
312
+ * },
313
+ * {
314
+ * groupId: 'restrictedEditing',
315
+ * items: [
316
+ * 'menuBar:restrictedEditing'
317
+ * ]
318
+ * }
319
+ * ]
320
+ * },
321
+ * {
322
+ * menuId: 'format',
323
+ * label: 'Format',
324
+ * groups: [
325
+ * {
326
+ * groupId: 'textAndFont',
327
+ * items: [
328
+ * {
329
+ * menuId: 'text',
330
+ * label: 'Text',
331
+ * groups: [
332
+ * {
333
+ * groupId: 'basicStyles',
334
+ * items: [
335
+ * 'menuBar:bold',
336
+ * 'menuBar:italic',
337
+ * 'menuBar:underline',
338
+ * 'menuBar:strikethrough',
339
+ * 'menuBar:superscript',
340
+ * 'menuBar:subscript',
341
+ * 'menuBar:code'
342
+ * ]
343
+ * },
344
+ * {
345
+ * groupId: 'textPartLanguage',
346
+ * items: [
347
+ * 'menuBar:textPartLanguage'
348
+ * ]
349
+ * }
350
+ * ]
351
+ * },
352
+ * {
353
+ * menuId: 'font',
354
+ * label: 'Font',
355
+ * groups: [
356
+ * {
357
+ * groupId: 'fontProperties',
358
+ * items: [
359
+ * 'menuBar:fontSize',
360
+ * 'menuBar:fontFamily'
361
+ * ]
362
+ * },
363
+ * {
364
+ * groupId: 'fontColors',
365
+ * items: [
366
+ * 'menuBar:fontColor',
367
+ * 'menuBar:fontBackgroundColor'
368
+ * ]
369
+ * },
370
+ * {
371
+ * groupId: 'highlight',
372
+ * items: [
373
+ * 'menuBar:highlight'
374
+ * ]
375
+ * }
376
+ * ]
377
+ * },
378
+ * 'menuBar:heading'
379
+ * ]
380
+ * },
381
+ * {
382
+ * groupId: 'list',
383
+ * items: [
384
+ * 'menuBar:bulletedList',
385
+ * 'menuBar:numberedList',
386
+ * 'menuBar:multiLevelList',
387
+ * 'menuBar:todoList'
388
+ * ]
389
+ * },
390
+ * {
391
+ * groupId: 'indent',
392
+ * items: [
393
+ * 'menuBar:alignment',
394
+ * 'menuBar:lineHeight',
395
+ * 'menuBar:indent',
396
+ * 'menuBar:outdent'
397
+ * ]
398
+ * },
399
+ * {
400
+ * groupId: 'caseChange',
401
+ * items: [
402
+ * 'menuBar:caseChange'
403
+ * ]
404
+ * },
405
+ * {
406
+ * groupId: 'removeFormat',
407
+ * items: [
408
+ * 'menuBar:removeFormat'
409
+ * ]
410
+ * }
411
+ * ]
412
+ * },
413
+ * {
414
+ * menuId: 'tools',
415
+ * label: 'Tools',
416
+ * groups: [
417
+ * {
418
+ * groupId: 'aiTools',
419
+ * items: [
420
+ * 'menuBar:aiAssistant',
421
+ * 'menuBar:aiCommands',
422
+ * 'menuBar:toggleAi',
423
+ * 'menuBar:aiQuickActions'
424
+ * ]
425
+ * },
426
+ * {
427
+ * groupId: 'tools',
428
+ * items: [
429
+ * 'menuBar:trackChanges',
430
+ * 'menuBar:commentsArchive'
431
+ * ]
432
+ * }
433
+ * ]
434
+ * },
435
+ * {
436
+ * menuId: 'help',
437
+ * label: 'Help',
438
+ * groups: [
439
+ * {
440
+ * groupId: 'help',
441
+ * items: [
442
+ * 'menuBar:accessibilityHelp'
443
+ * ]
444
+ * }
445
+ * ]
446
+ * }
447
+ * ];
448
+ * ```
449
+ *
450
+ * The menu bar can be customized using the `config.menuBar.removeItems` and `config.menuBar.addItems` properties.
451
+ */
452
+ export declare const DefaultMenuBarItems: MenuBarConfigObject["items"];
453
453
  /**
454
- * Performs a cleanup and normalization of the menu bar configuration.
455
- */
454
+ * Performs a cleanup and normalization of the menu bar configuration.
455
+ */
456
456
  export declare function normalizeMenuBarConfig(config: Readonly<MenuBarConfig>): NormalizedMenuBarConfigObject;
457
457
  /**
458
- * Processes a normalized menu bar config and returns a config clone with the following modifications:
459
- *
460
- * * Removed components that are not available in the component factory,
461
- * * Removed obsolete separators,
462
- * * Purged empty menus,
463
- * * Localized top-level menu labels.
464
- * @internal
465
- */
458
+ * Processes a normalized menu bar config and returns a config clone with the following modifications:
459
+ *
460
+ * * Removed components that are not available in the component factory,
461
+ * * Removed obsolete separators,
462
+ * * Purged empty menus,
463
+ * * Localized top-level menu labels.
464
+ * @internal
465
+ */
466
466
  export declare function processMenuBarConfig({ normalizedConfig, locale, componentFactory, extraItems }: {
467
- normalizedConfig: NormalizedMenuBarConfigObject;
468
- locale: Locale;
469
- componentFactory: ComponentFactory;
470
- extraItems: Array<MenuBarConfigAddedItem | MenuBarConfigAddedGroup | MenuBarConfigAddedMenu>;
467
+ normalizedConfig: NormalizedMenuBarConfigObject;
468
+ locale: Locale;
469
+ componentFactory: ComponentFactory;
470
+ extraItems: Array<MenuBarConfigAddedItem | MenuBarConfigAddedGroup | MenuBarConfigAddedMenu>;
471
471
  }): NormalizedMenuBarConfigObject;