@ckeditor/ckeditor5-ui 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 (223) hide show
  1. package/dist/index-editor.css +19 -19
  2. package/dist/index.css +34 -34
  3. package/dist/index.css.map +1 -1
  4. package/dist/index.js +4994 -4957
  5. package/dist/index.js.map +1 -1
  6. package/package.json +9 -9
  7. package/src/arialiveannouncer.d.ts +6 -7
  8. package/src/arialiveannouncer.js +2 -2
  9. package/src/autocomplete/autocompleteview.d.ts +4 -4
  10. package/src/autocomplete/autocompleteview.js +2 -2
  11. package/src/badge/badge.d.ts +2 -2
  12. package/src/badge/badge.js +2 -2
  13. package/src/bindings/addkeyboardhandlingforgrid.d.ts +2 -2
  14. package/src/bindings/addkeyboardhandlingforgrid.js +1 -1
  15. package/src/bindings/clickoutsidehandler.d.ts +1 -1
  16. package/src/bindings/clickoutsidehandler.js +1 -1
  17. package/src/bindings/csstransitiondisablermixin.d.ts +5 -4
  18. package/src/bindings/csstransitiondisablermixin.js +11 -8
  19. package/src/bindings/draggableviewmixin.d.ts +3 -3
  20. package/src/bindings/draggableviewmixin.js +2 -2
  21. package/src/bindings/preventdefault.d.ts +4 -3
  22. package/src/bindings/preventdefault.js +3 -2
  23. package/src/bindings/submithandler.d.ts +3 -3
  24. package/src/bindings/submithandler.js +2 -2
  25. package/src/button/button.d.ts +1 -1
  26. package/src/button/buttonlabel.d.ts +2 -2
  27. package/src/button/buttonlabelview.d.ts +3 -3
  28. package/src/button/buttonlabelview.js +2 -2
  29. package/src/button/buttonview.d.ts +6 -6
  30. package/src/button/buttonview.js +4 -4
  31. package/src/button/filedialogbuttonview.d.ts +17 -12
  32. package/src/button/filedialogbuttonview.js +5 -13
  33. package/src/button/listitembuttonview.d.ts +8 -5
  34. package/src/button/listitembuttonview.js +8 -5
  35. package/src/button/switchbuttonview.d.ts +3 -3
  36. package/src/button/switchbuttonview.js +3 -3
  37. package/src/collapsible/collapsibleview.d.ts +4 -4
  38. package/src/collapsible/collapsibleview.js +3 -3
  39. package/src/colorgrid/colorgridview.d.ts +5 -5
  40. package/src/colorgrid/colorgridview.js +4 -4
  41. package/src/colorgrid/colortileview.d.ts +2 -2
  42. package/src/colorgrid/colortileview.js +2 -2
  43. package/src/colorpicker/colorpickerview.d.ts +8 -8
  44. package/src/colorpicker/colorpickerview.js +6 -5
  45. package/src/colorpicker/utils.d.ts +3 -0
  46. package/src/colorpicker/utils.js +4 -4
  47. package/src/colorselector/colorgridsfragmentview.d.ts +6 -6
  48. package/src/colorselector/colorgridsfragmentview.js +7 -7
  49. package/src/colorselector/colorpickerfragmentview.d.ts +5 -5
  50. package/src/colorselector/colorpickerfragmentview.js +4 -4
  51. package/src/colorselector/colorselectorview.d.ts +6 -6
  52. package/src/colorselector/colorselectorview.js +6 -6
  53. package/src/colorselector/documentcolorcollection.d.ts +1 -1
  54. package/src/colorselector/documentcolorcollection.js +1 -1
  55. package/src/componentfactory.d.ts +2 -2
  56. package/src/componentfactory.js +1 -1
  57. package/src/dialog/dialog.d.ts +3 -3
  58. package/src/dialog/dialog.js +2 -2
  59. package/src/dialog/dialogactionsview.d.ts +6 -6
  60. package/src/dialog/dialogactionsview.js +5 -5
  61. package/src/dialog/dialogcontentview.d.ts +3 -3
  62. package/src/dialog/dialogcontentview.js +2 -2
  63. package/src/dialog/dialogview.d.ts +8 -8
  64. package/src/dialog/dialogview.js +9 -9
  65. package/src/dropdown/button/dropdownbutton.d.ts +3 -3
  66. package/src/dropdown/button/dropdownbuttonview.d.ts +4 -4
  67. package/src/dropdown/button/dropdownbuttonview.js +3 -3
  68. package/src/dropdown/button/splitbuttonview.d.ts +6 -6
  69. package/src/dropdown/button/splitbuttonview.js +3 -3
  70. package/src/dropdown/dropdownpanelfocusable.d.ts +1 -1
  71. package/src/dropdown/dropdownpanelview.d.ts +4 -4
  72. package/src/dropdown/dropdownpanelview.js +2 -2
  73. package/src/dropdown/dropdownview.d.ts +7 -7
  74. package/src/dropdown/dropdownview.js +2 -2
  75. package/src/dropdown/menu/dropdownmenubehaviors.d.ts +8 -2
  76. package/src/dropdown/menu/dropdownmenubehaviors.js +7 -1
  77. package/src/dropdown/menu/dropdownmenubuttonview.d.ts +3 -3
  78. package/src/dropdown/menu/dropdownmenubuttonview.js +3 -3
  79. package/src/dropdown/menu/dropdownmenulistitembuttonview.d.ts +2 -2
  80. package/src/dropdown/menu/dropdownmenulistitembuttonview.js +2 -2
  81. package/src/dropdown/menu/dropdownmenulistitemview.d.ts +4 -4
  82. package/src/dropdown/menu/dropdownmenulistitemview.js +3 -3
  83. package/src/dropdown/menu/dropdownmenulistview.d.ts +2 -2
  84. package/src/dropdown/menu/dropdownmenulistview.js +2 -2
  85. package/src/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +2 -2
  86. package/src/dropdown/menu/dropdownmenunestedmenupanelview.js +2 -2
  87. package/src/dropdown/menu/dropdownmenunestedmenuview.d.ts +6 -6
  88. package/src/dropdown/menu/dropdownmenunestedmenuview.js +5 -5
  89. package/src/dropdown/menu/dropdownmenurootlistview.d.ts +5 -5
  90. package/src/dropdown/menu/dropdownmenurootlistview.js +5 -5
  91. package/src/dropdown/utils.d.ts +7 -7
  92. package/src/dropdown/utils.js +14 -14
  93. package/src/editableui/editableuiview.d.ts +2 -2
  94. package/src/editableui/editableuiview.js +2 -2
  95. package/src/editableui/inline/inlineeditableuiview.d.ts +3 -4
  96. package/src/editableui/inline/inlineeditableuiview.js +2 -2
  97. package/src/editorui/accessibilityhelp/accessibilityhelp.d.ts +3 -3
  98. package/src/editorui/accessibilityhelp/accessibilityhelp.js +5 -5
  99. package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +2 -2
  100. package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.js +3 -3
  101. package/src/editorui/bodycollection.d.ts +3 -3
  102. package/src/editorui/bodycollection.js +3 -3
  103. package/src/editorui/boxed/boxededitoruiview.d.ts +3 -3
  104. package/src/editorui/boxed/boxededitoruiview.js +3 -3
  105. package/src/editorui/editorui.d.ts +10 -16
  106. package/src/editorui/editorui.js +6 -25
  107. package/src/editorui/editoruiview.d.ts +6 -6
  108. package/src/editorui/editoruiview.js +3 -3
  109. package/src/editorui/evaluationbadge.d.ts +3 -3
  110. package/src/editorui/evaluationbadge.js +3 -3
  111. package/src/editorui/poweredby.d.ts +4 -6
  112. package/src/editorui/poweredby.js +4 -4
  113. package/src/focuscycler.d.ts +3 -3
  114. package/src/focuscycler.js +1 -1
  115. package/src/formheader/formheaderview.d.ts +4 -4
  116. package/src/formheader/formheaderview.js +3 -3
  117. package/src/formrow/formrowview.d.ts +4 -4
  118. package/src/formrow/formrowview.js +2 -2
  119. package/src/highlightedtext/buttonlabelwithhighlightview.d.ts +3 -3
  120. package/src/highlightedtext/buttonlabelwithhighlightview.js +2 -2
  121. package/src/highlightedtext/highlightedtextview.d.ts +2 -2
  122. package/src/highlightedtext/highlightedtextview.js +2 -2
  123. package/src/highlightedtext/labelwithhighlightview.d.ts +3 -3
  124. package/src/highlightedtext/labelwithhighlightview.js +2 -2
  125. package/src/icon/iconview.d.ts +2 -2
  126. package/src/icon/iconview.js +2 -2
  127. package/src/iframe/iframeview.d.ts +2 -2
  128. package/src/iframe/iframeview.js +2 -2
  129. package/src/index.d.ts +128 -85
  130. package/src/index.js +122 -82
  131. package/src/input/inputbase.d.ts +2 -2
  132. package/src/input/inputbase.js +2 -2
  133. package/src/input/inputview.d.ts +2 -2
  134. package/src/input/inputview.js +2 -2
  135. package/src/inputnumber/inputnumberview.d.ts +2 -2
  136. package/src/inputnumber/inputnumberview.js +2 -2
  137. package/src/inputtext/inputtextview.d.ts +2 -2
  138. package/src/inputtext/inputtextview.js +2 -2
  139. package/src/label/labelview.d.ts +2 -2
  140. package/src/label/labelview.js +2 -2
  141. package/src/labeledfield/labeledfieldview.d.ts +4 -4
  142. package/src/labeledfield/labeledfieldview.js +3 -3
  143. package/src/labeledfield/utils.d.ts +4 -4
  144. package/src/labeledfield/utils.js +3 -3
  145. package/src/labeledinput/labeledinputview.d.ts +4 -4
  146. package/src/labeledinput/labeledinputview.js +3 -3
  147. package/src/legacyerrors.d.ts +5 -0
  148. package/src/legacyerrors.js +20 -0
  149. package/src/list/listitemgroupview.d.ts +5 -5
  150. package/src/list/listitemgroupview.js +5 -5
  151. package/src/list/listitemview.d.ts +3 -3
  152. package/src/list/listitemview.js +2 -2
  153. package/src/list/listseparatorview.d.ts +2 -2
  154. package/src/list/listseparatorview.js +2 -2
  155. package/src/list/listview.d.ts +7 -7
  156. package/src/list/listview.js +6 -6
  157. package/src/menubar/menubarmenubuttonview.d.ts +3 -3
  158. package/src/menubar/menubarmenubuttonview.js +3 -3
  159. package/src/menubar/menubarmenulistitembuttonview.d.ts +2 -2
  160. package/src/menubar/menubarmenulistitembuttonview.js +2 -2
  161. package/src/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +1 -1
  162. package/src/menubar/menubarmenulistitemfiledialogbuttonview.js +1 -1
  163. package/src/menubar/menubarmenulistitemview.d.ts +3 -3
  164. package/src/menubar/menubarmenulistitemview.js +2 -2
  165. package/src/menubar/menubarmenulistview.d.ts +2 -2
  166. package/src/menubar/menubarmenulistview.js +5 -5
  167. package/src/menubar/menubarmenupanelview.d.ts +3 -3
  168. package/src/menubar/menubarmenupanelview.js +2 -2
  169. package/src/menubar/menubarmenuview.d.ts +4 -4
  170. package/src/menubar/menubarmenuview.js +4 -4
  171. package/src/menubar/menubarview.d.ts +6 -7
  172. package/src/menubar/menubarview.js +9 -9
  173. package/src/menubar/utils.d.ts +10 -3
  174. package/src/menubar/utils.js +10 -2
  175. package/src/model.d.ts +2 -2
  176. package/src/model.js +1 -1
  177. package/src/notification/notification.d.ts +1 -1
  178. package/src/notification/notification.js +1 -1
  179. package/src/panel/balloon/balloonpanelview.d.ts +13 -13
  180. package/src/panel/balloon/balloonpanelview.js +9 -9
  181. package/src/panel/balloon/contextualballoon.d.ts +14 -13
  182. package/src/panel/balloon/contextualballoon.js +8 -7
  183. package/src/panel/sticky/stickypanelview.d.ts +3 -3
  184. package/src/panel/sticky/stickypanelview.js +3 -3
  185. package/src/search/filteredview.d.ts +1 -1
  186. package/src/search/filtergroupanditemnames.d.ts +5 -5
  187. package/src/search/filtergroupanditemnames.js +1 -1
  188. package/src/search/searchinfoview.d.ts +2 -2
  189. package/src/search/searchinfoview.js +2 -2
  190. package/src/search/searchresultsview.d.ts +4 -4
  191. package/src/search/searchresultsview.js +3 -3
  192. package/src/search/text/searchtextqueryview.d.ts +5 -5
  193. package/src/search/text/searchtextqueryview.js +4 -4
  194. package/src/search/text/searchtextview.d.ts +9 -9
  195. package/src/search/text/searchtextview.js +6 -6
  196. package/src/spinner/spinnerview.d.ts +2 -2
  197. package/src/spinner/spinnerview.js +2 -2
  198. package/src/template.d.ts +6 -5
  199. package/src/template.js +4 -4
  200. package/src/textarea/textareaview.d.ts +2 -2
  201. package/src/textarea/textareaview.js +2 -2
  202. package/src/toolbar/balloon/balloontoolbar.d.ts +3 -3
  203. package/src/toolbar/balloon/balloontoolbar.js +5 -5
  204. package/src/toolbar/block/blockbuttonview.d.ts +2 -2
  205. package/src/toolbar/block/blockbuttonview.js +2 -2
  206. package/src/toolbar/block/blocktoolbar.d.ts +6 -6
  207. package/src/toolbar/block/blocktoolbar.js +8 -8
  208. package/src/toolbar/normalizetoolbarconfig.d.ts +1 -1
  209. package/src/toolbar/normalizetoolbarconfig.js +1 -1
  210. package/src/toolbar/toolbarlinebreakview.d.ts +2 -2
  211. package/src/toolbar/toolbarlinebreakview.js +2 -2
  212. package/src/toolbar/toolbarseparatorview.d.ts +2 -2
  213. package/src/toolbar/toolbarseparatorview.js +2 -2
  214. package/src/toolbar/toolbarview.d.ts +10 -7
  215. package/src/toolbar/toolbarview.js +11 -8
  216. package/src/tooltipmanager.d.ts +3 -3
  217. package/src/tooltipmanager.js +3 -3
  218. package/src/view.d.ts +3 -3
  219. package/src/view.js +3 -3
  220. package/src/viewcollection.d.ts +2 -2
  221. package/src/viewcollection.js +1 -1
  222. package/src/bindings/injectcsstransitiondisabler.d.ts +0 -59
  223. package/src/bindings/injectcsstransitiondisabler.js +0 -71
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module ui/panel/balloon/balloonpanelview
7
7
  */
8
- import View from '../../view.js';
8
+ import { View } from '../../view.js';
9
9
  import { getOptimalPosition, global, isRange, toUnit, isVisible, isText, ResizeObserver, Rect } from '@ckeditor/ckeditor5-utils';
10
10
  import { isElement } from 'es-toolkit/compat';
11
11
  import '../../../theme/components/panel/balloonpanel.css';
@@ -31,7 +31,7 @@ const POSITION_OFF_SCREEN = {
31
31
  *
32
32
  * A floating container which can
33
33
  * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#pin pin} to any
34
- * {@link module:utils/dom/position~Options#target target} in the DOM and remain in that position
34
+ * {@link module:utils/dom/position~DomOptimalPositionOptions#target target} in the DOM and remain in that position
35
35
  * e.g. when the web page is scrolled.
36
36
  *
37
37
  * The balloon panel can be used to display contextual, non-blocking UI like forms, toolbars and
@@ -42,7 +42,7 @@ const POSITION_OFF_SCREEN = {
42
42
  * that the balloon can use, automatically switching from one to another when the viewport space becomes
43
43
  * scarce to keep the balloon visible to the user as long as it is possible. The balloon will also
44
44
  * accept any custom position set provided by the user compatible with the
45
- * {@link module:utils/dom/position~Options options}.
45
+ * {@link module:utils/dom/position~DomOptimalPositionOptions options}.
46
46
  *
47
47
  * ```ts
48
48
  * const panel = new BalloonPanelView( locale );
@@ -139,11 +139,11 @@ class BalloonPanelView extends View {
139
139
  this.isVisible = false;
140
140
  }
141
141
  /**
142
- * Attaches the panel to a specified {@link module:utils/dom/position~Options#target} with a
142
+ * Attaches the panel to a specified {@link module:utils/dom/position~DomOptimalPositionOptions#target} with a
143
143
  * smart positioning heuristics that chooses from available positions to make sure the panel
144
144
  * is visible to the user i.e. within the limits of the viewport.
145
145
  *
146
- * This method accepts configuration {@link module:utils/dom/position~Options options}
146
+ * This method accepts configuration {@link module:utils/dom/position~DomOptimalPositionOptions options}
147
147
  * to set the `target`, optional `limiter` and `positions` the balloon should choose from.
148
148
  *
149
149
  * ```ts
@@ -215,11 +215,11 @@ class BalloonPanelView extends View {
215
215
  * Works the same way as the {@link #attachTo} method except that the position of the panel is
216
216
  * continuously updated when:
217
217
  *
218
- * * any ancestor of the {@link module:utils/dom/position~Options#target}
219
- * or {@link module:utils/dom/position~Options#limiter} is scrolled,
218
+ * * any ancestor of the {@link module:utils/dom/position~DomOptimalPositionOptions#target}
219
+ * or {@link module:utils/dom/position~DomOptimalPositionOptions#limiter} is scrolled,
220
220
  * * the browser window gets resized or scrolled.
221
221
  *
222
- * Thanks to that, the panel always sticks to the {@link module:utils/dom/position~Options#target}
222
+ * Thanks to that, the panel always sticks to the {@link module:utils/dom/position~DomOptimalPositionOptions#target}
223
223
  * and is immune to the changing environment.
224
224
  *
225
225
  * ```ts
@@ -1059,7 +1059,7 @@ class BalloonPanelView extends View {
1059
1059
  */
1060
1060
  static defaultPositions = /* #__PURE__ */ BalloonPanelView.generatePositions();
1061
1061
  }
1062
- export default BalloonPanelView;
1062
+ export { BalloonPanelView };
1063
1063
  /**
1064
1064
  * Returns the DOM element for given object or null, if there is none,
1065
1065
  * e.g. when the passed object is a Rect instance or so.
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module ui/panel/balloon/contextualballoon
7
7
  */
8
- import BalloonPanelView from './balloonpanelview.js';
9
- import View from '../../view.js';
10
- import ButtonView from '../../button/buttonview.js';
11
- import type ViewCollection from '../../viewcollection.js';
8
+ import { BalloonPanelView } from './balloonpanelview.js';
9
+ import { View } from '../../view.js';
10
+ import { ButtonView } from '../../button/buttonview.js';
11
+ import { type ViewCollection } from '../../viewcollection.js';
12
12
  import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
13
- import { FocusTracker, type Locale, type PositionOptions, type DecoratedMethodEvent } from '@ckeditor/ckeditor5-utils';
13
+ import { FocusTracker, type Locale, type DomOptimalPositionOptions, type DecoratedMethodEvent } from '@ckeditor/ckeditor5-utils';
14
14
  import '../../../theme/components/panel/balloonrotator.css';
15
15
  import '../../../theme/components/panel/fakepanel.css';
16
16
  /**
@@ -47,17 +47,17 @@ import '../../../theme/components/panel/fakepanel.css';
47
47
  * view you want to display. If there is more than one panel stack to be displayed, the rotator view will add a
48
48
  * navigation bar. If there is only one stack, the rotator view is transparent (it does not add any UI elements).
49
49
  */
50
- export default class ContextualBalloon extends Plugin {
50
+ export declare class ContextualBalloon extends Plugin {
51
51
  /**
52
- * The {@link module:utils/dom/position~Options#limiter position limiter}
52
+ * The {@link module:utils/dom/position~DomOptimalPositionOptions#limiter position limiter}
53
53
  * for the {@link #view balloon}, used when no `limiter` has been passed into {@link #add}
54
54
  * or {@link #updatePosition}.
55
55
  *
56
56
  * By default, a function that obtains the farthest DOM
57
- * {@link module:engine/view/rooteditableelement~RootEditableElement}
58
- * of the {@link module:engine/view/document~Document#selection}.
57
+ * {@link module:engine/view/rooteditableelement~ViewRootEditableElement}
58
+ * of the {@link module:engine/view/document~ViewDocument#selection}.
59
59
  */
60
- positionLimiter: PositionOptions['limiter'];
60
+ positionLimiter: DomOptimalPositionOptions['limiter'];
61
61
  visibleStack?: string;
62
62
  /**
63
63
  * The currently visible view or `null` when there are no views in any stack.
@@ -155,12 +155,12 @@ export default class ContextualBalloon extends Plugin {
155
155
  *
156
156
  * @param position Position options.
157
157
  */
158
- updatePosition(position?: Partial<PositionOptions>): void;
158
+ updatePosition(position?: Partial<DomOptimalPositionOptions>): void;
159
159
  /**
160
160
  * Returns position options of the last view in the stack.
161
161
  * This keeps the balloon in the same position when the view is changed.
162
162
  */
163
- getPositionOptions(): Partial<PositionOptions> | undefined;
163
+ getPositionOptions(): Partial<DomOptimalPositionOptions> | undefined;
164
164
  /**
165
165
  * Shows the last view from the stack of a given ID.
166
166
  */
@@ -227,7 +227,7 @@ export interface ViewConfiguration {
227
227
  /**
228
228
  * Positioning options.
229
229
  */
230
- position?: Partial<PositionOptions>;
230
+ position?: Partial<DomOptimalPositionOptions>;
231
231
  /**
232
232
  * An additional CSS class added to the {@link #view balloon} when visible.
233
233
  */
@@ -249,6 +249,7 @@ export interface ViewConfiguration {
249
249
  * Rotator view is a helper class for the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon ContextualBalloon}.
250
250
  * It is used for displaying the last view from the current stack and providing navigation buttons for switching stacks.
251
251
  * See the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon ContextualBalloon} documentation to learn more.
252
+ * @internal
252
253
  */
253
254
  export declare class RotatorView extends View {
254
255
  /**
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module ui/panel/balloon/contextualballoon
7
7
  */
8
- import BalloonPanelView from './balloonpanelview.js';
9
- import View from '../../view.js';
10
- import ButtonView from '../../button/buttonview.js';
8
+ import { BalloonPanelView } from './balloonpanelview.js';
9
+ import { View } from '../../view.js';
10
+ import { ButtonView } from '../../button/buttonview.js';
11
11
  import { Plugin } from '@ckeditor/ckeditor5-core';
12
12
  import { CKEditorError, FocusTracker, Rect, toUnit } from '@ckeditor/ckeditor5-utils';
13
13
  import { IconNextArrow, IconPreviousArrow } from '@ckeditor/ckeditor5-icons';
@@ -48,15 +48,15 @@ const toPx = /* #__PURE__ */ toUnit('px');
48
48
  * view you want to display. If there is more than one panel stack to be displayed, the rotator view will add a
49
49
  * navigation bar. If there is only one stack, the rotator view is transparent (it does not add any UI elements).
50
50
  */
51
- export default class ContextualBalloon extends Plugin {
51
+ export class ContextualBalloon extends Plugin {
52
52
  /**
53
- * The {@link module:utils/dom/position~Options#limiter position limiter}
53
+ * The {@link module:utils/dom/position~DomOptimalPositionOptions#limiter position limiter}
54
54
  * for the {@link #view balloon}, used when no `limiter` has been passed into {@link #add}
55
55
  * or {@link #updatePosition}.
56
56
  *
57
57
  * By default, a function that obtains the farthest DOM
58
- * {@link module:engine/view/rooteditableelement~RootEditableElement}
59
- * of the {@link module:engine/view/document~Document#selection}.
58
+ * {@link module:engine/view/rooteditableelement~ViewRootEditableElement}
59
+ * of the {@link module:engine/view/document~ViewDocument#selection}.
60
60
  */
61
61
  positionLimiter;
62
62
  visibleStack;
@@ -414,6 +414,7 @@ export default class ContextualBalloon extends Plugin {
414
414
  * Rotator view is a helper class for the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon ContextualBalloon}.
415
415
  * It is used for displaying the last view from the current stack and providing navigation buttons for switching stacks.
416
416
  * See the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon ContextualBalloon} documentation to learn more.
417
+ * @internal
417
418
  */
418
419
  export class RotatorView extends View {
419
420
  /**
@@ -5,14 +5,14 @@
5
5
  /**
6
6
  * @module ui/panel/sticky/stickypanelview
7
7
  */
8
- import View from '../../view.js';
9
- import type ViewCollection from '../../viewcollection.js';
8
+ import { View } from '../../view.js';
9
+ import { type ViewCollection } from '../../viewcollection.js';
10
10
  import { type Locale } from '@ckeditor/ckeditor5-utils';
11
11
  import '../../../theme/components/panel/stickypanel.css';
12
12
  /**
13
13
  * The sticky panel view class.
14
14
  */
15
- export default class StickyPanelView extends View {
15
+ export declare class StickyPanelView extends View {
16
16
  /**
17
17
  * Collection of the child views which creates balloon panel contents.
18
18
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module ui/panel/sticky/stickypanelview
7
7
  */
8
- import View from '../../view.js';
9
- import Template from '../../template.js';
8
+ import { View } from '../../view.js';
9
+ import { Template } from '../../template.js';
10
10
  import { Rect, toUnit, getVisualViewportOffset, global } from '@ckeditor/ckeditor5-utils';
11
11
  // @if CK_DEBUG_STICKYPANEL // const {
12
12
  // @if CK_DEBUG_STICKYPANEL // default: RectDrawer,
@@ -17,7 +17,7 @@ const toPx = /* #__PURE__ */ toUnit('px');
17
17
  /**
18
18
  * The sticky panel view class.
19
19
  */
20
- export default class StickyPanelView extends View {
20
+ export class StickyPanelView extends View {
21
21
  /**
22
22
  * Collection of the child views which creates balloon panel contents.
23
23
  */
@@ -9,7 +9,7 @@ import type { FocusableView } from '../focuscycler.js';
9
9
  /**
10
10
  * A view that can be filtered by a {@link module:ui/search/text/searchtextview~SearchTextView}.
11
11
  */
12
- export default interface FilteredView extends FocusableView {
12
+ export interface FilteredView extends FocusableView {
13
13
  /**
14
14
  * Filters the view by the given regular expression.
15
15
  */
@@ -2,14 +2,14 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import type ViewCollection from '../viewcollection.js';
6
- import type ListItemGroupView from '../list/listitemgroupview.js';
7
- import type ListItemView from '../list/listitemview.js';
8
- import type ListSeparatorView from '../list/listseparatorview.js';
5
+ import { type ViewCollection } from '../viewcollection.js';
6
+ import { type ListItemGroupView } from '../list/listitemgroupview.js';
7
+ import { type ListItemView } from '../list/listitemview.js';
8
+ import { type ListSeparatorView } from '../list/listseparatorview.js';
9
9
  /**
10
10
  * A filter function that returns matching item and group names in the list view.
11
11
  */
12
- export default function filterGroupAndItemNames(regExp: RegExp | null, items: ViewCollection<ListItemGroupView | ListItemView | ListSeparatorView>): {
12
+ export declare function filterGroupAndItemNames(regExp: RegExp | null, items: ViewCollection<ListItemGroupView | ListItemView | ListSeparatorView>): {
13
13
  resultsCount: number;
14
14
  totalItemsCount: number;
15
15
  };
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * A filter function that returns matching item and group names in the list view.
7
7
  */
8
- export default function filterGroupAndItemNames(regExp, items) {
8
+ export function filterGroupAndItemNames(regExp, items) {
9
9
  let totalItemsCount = 0;
10
10
  let resultsCount = 0;
11
11
  for (const groupView of items) {
@@ -6,13 +6,13 @@
6
6
  * @module ui/search/searchinfoview
7
7
  */
8
8
  import type { FocusableView } from '../focuscycler.js';
9
- import View from '../view.js';
9
+ import { View } from '../view.js';
10
10
  /**
11
11
  * A view displaying an information text related to different states of {@link module:ui/search/text/searchtextview~SearchTextView}.
12
12
  *
13
13
  * @internal
14
14
  */
15
- export default class SearchInfoView extends View implements FocusableView {
15
+ export declare class SearchInfoView extends View implements FocusableView {
16
16
  /**
17
17
  * Controls whether the view is visible.
18
18
  *
@@ -2,13 +2,13 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import View from '../view.js';
5
+ import { View } from '../view.js';
6
6
  /**
7
7
  * A view displaying an information text related to different states of {@link module:ui/search/text/searchtextview~SearchTextView}.
8
8
  *
9
9
  * @internal
10
10
  */
11
- export default class SearchInfoView extends View {
11
+ export class SearchInfoView extends View {
12
12
  /**
13
13
  * @inheritDoc
14
14
  */
@@ -5,14 +5,14 @@
5
5
  /**
6
6
  * @module ui/search/searchresultsview
7
7
  */
8
- import View from '../view.js';
9
- import type ViewCollection from '../viewcollection.js';
8
+ import { View } from '../view.js';
9
+ import { type ViewCollection } from '../viewcollection.js';
10
10
  import { FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils';
11
- import { default as FocusCycler, type FocusableView } from '../focuscycler.js';
11
+ import { FocusCycler, type FocusableView } from '../focuscycler.js';
12
12
  /**
13
13
  * A sub-component of {@link module:ui/search/text/searchtextview~SearchTextView}. It hosts the filtered and the information views.
14
14
  */
15
- export default class SearchResultsView extends View implements FocusableView {
15
+ export declare class SearchResultsView extends View implements FocusableView {
16
16
  /**
17
17
  * Tracks information about the DOM focus in the view.
18
18
  *
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module ui/search/searchresultsview
7
7
  */
8
- import View from '../view.js';
8
+ import { View } from '../view.js';
9
9
  import { FocusTracker } from '@ckeditor/ckeditor5-utils';
10
- import { default as FocusCycler } from '../focuscycler.js';
10
+ import { FocusCycler } from '../focuscycler.js';
11
11
  /**
12
12
  * A sub-component of {@link module:ui/search/text/searchtextview~SearchTextView}. It hosts the filtered and the information views.
13
13
  */
14
- export default class SearchResultsView extends View {
14
+ export class SearchResultsView extends View {
15
15
  /**
16
16
  * Tracks information about the DOM focus in the view.
17
17
  *
@@ -2,10 +2,10 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import ButtonView from '../../button/buttonview.js';
6
- import IconView from '../../icon/iconview.js';
7
- import LabeledFieldView, { type LabeledFieldViewCreator } from '../../labeledfield/labeledfieldview.js';
8
- import type InputBase from '../../input/inputbase.js';
5
+ import { ButtonView } from '../../button/buttonview.js';
6
+ import { IconView } from '../../icon/iconview.js';
7
+ import { LabeledFieldView, type LabeledFieldViewCreator } from '../../labeledfield/labeledfieldview.js';
8
+ import { type InputBase } from '../../input/inputbase.js';
9
9
  import type { Locale } from '@ckeditor/ckeditor5-utils';
10
10
  /**
11
11
  * A search input field for the {@link module:ui/search/text/searchtextview~SearchTextView} component.
@@ -13,7 +13,7 @@ import type { Locale } from '@ckeditor/ckeditor5-utils';
13
13
  * @internal
14
14
  * @extends module:ui/labeledfield/labeledfieldview~LabeledFieldView
15
15
  */
16
- export default class SearchTextQueryView<TQueryFieldView extends InputBase<HTMLInputElement | HTMLTextAreaElement>> extends LabeledFieldView<TQueryFieldView> {
16
+ export declare class SearchTextQueryView<TQueryFieldView extends InputBase<HTMLInputElement | HTMLTextAreaElement>> extends LabeledFieldView<TQueryFieldView> {
17
17
  /**
18
18
  * The loupe icon displayed next to the {@link #fieldView}.
19
19
  */
@@ -6,9 +6,9 @@
6
6
  * @module ui/search/text/searchtextqueryview
7
7
  */
8
8
  import { IconCancel, IconLoupe } from '@ckeditor/ckeditor5-icons';
9
- import ButtonView from '../../button/buttonview.js';
10
- import IconView from '../../icon/iconview.js';
11
- import LabeledFieldView from '../../labeledfield/labeledfieldview.js';
9
+ import { ButtonView } from '../../button/buttonview.js';
10
+ import { IconView } from '../../icon/iconview.js';
11
+ import { LabeledFieldView } from '../../labeledfield/labeledfieldview.js';
12
12
  import { createLabeledInputText } from '../../labeledfield/utils.js';
13
13
  /**
14
14
  * A search input field for the {@link module:ui/search/text/searchtextview~SearchTextView} component.
@@ -16,7 +16,7 @@ import { createLabeledInputText } from '../../labeledfield/utils.js';
16
16
  * @internal
17
17
  * @extends module:ui/labeledfield/labeledfieldview~LabeledFieldView
18
18
  */
19
- export default class SearchTextQueryView extends LabeledFieldView {
19
+ export class SearchTextQueryView extends LabeledFieldView {
20
20
  /**
21
21
  * The loupe icon displayed next to the {@link #fieldView}.
22
22
  */
@@ -6,14 +6,14 @@
6
6
  * @module ui/search/text/searchtextview
7
7
  */
8
8
  import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
9
- import View from '../../view.js';
10
- import { default as SearchTextQueryView, type SearchTextQueryViewConfig } from './searchtextqueryview.js';
11
- import SearchResultsView from '../searchresultsview.js';
12
- import FocusCycler, { type FocusableView } from '../../focuscycler.js';
13
- import type FilteredView from '../filteredview.js';
14
- import type ViewCollection from '../../viewcollection.js';
15
- import type InputBase from '../../input/inputbase.js';
16
- import type InputTextView from '../../inputtext/inputtextview.js';
9
+ import { View } from '../../view.js';
10
+ import { SearchTextQueryView, type SearchTextQueryViewConfig } from './searchtextqueryview.js';
11
+ import { SearchResultsView } from '../searchresultsview.js';
12
+ import { FocusCycler, type FocusableView } from '../../focuscycler.js';
13
+ import { type FilteredView } from '../filteredview.js';
14
+ import { type ViewCollection } from '../../viewcollection.js';
15
+ import { type InputBase } from '../../input/inputbase.js';
16
+ import { type InputTextView } from '../../inputtext/inputtextview.js';
17
17
  import '../../../theme/components/search/search.css';
18
18
  /**
19
19
  * A search component that allows filtering of an arbitrary view based on a search query
@@ -33,7 +33,7 @@ import '../../../theme/components/search/search.css';
33
33
  * document.body.append( view.element );
34
34
  * ```
35
35
  */
36
- export default class SearchTextView<TQueryFieldView extends InputBase<HTMLInputElement | HTMLTextAreaElement> = InputTextView> extends View {
36
+ export declare class SearchTextView<TQueryFieldView extends InputBase<HTMLInputElement | HTMLTextAreaElement> = InputTextView> extends View {
37
37
  /**
38
38
  * Tracks information about the DOM focus in the view.
39
39
  *
@@ -6,11 +6,11 @@
6
6
  * @module ui/search/text/searchtextview
7
7
  */
8
8
  import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils';
9
- import View from '../../view.js';
10
- import { default as SearchTextQueryView } from './searchtextqueryview.js';
11
- import SearchInfoView from '../searchinfoview.js';
12
- import SearchResultsView from '../searchresultsview.js';
13
- import FocusCycler from '../../focuscycler.js';
9
+ import { View } from '../../view.js';
10
+ import { SearchTextQueryView } from './searchtextqueryview.js';
11
+ import { SearchInfoView } from '../searchinfoview.js';
12
+ import { SearchResultsView } from '../searchresultsview.js';
13
+ import { FocusCycler } from '../../focuscycler.js';
14
14
  import { escapeRegExp } from 'es-toolkit/compat';
15
15
  import '../../../theme/components/search/search.css';
16
16
  /**
@@ -31,7 +31,7 @@ import '../../../theme/components/search/search.css';
31
31
  * document.body.append( view.element );
32
32
  * ```
33
33
  */
34
- export default class SearchTextView extends View {
34
+ export class SearchTextView extends View {
35
35
  /**
36
36
  * Tracks information about the DOM focus in the view.
37
37
  *
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module ui/spinner/spinnerview
7
7
  */
8
- import View from '../view.js';
8
+ import { View } from '../view.js';
9
9
  import '../../theme/components/spinner/spinner.css';
10
10
  /**
11
11
  * The spinner view class.
12
12
  */
13
- export default class SpinnerView extends View {
13
+ export declare class SpinnerView extends View {
14
14
  /**
15
15
  * Controls whether the spinner is visible.
16
16
  *
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module ui/spinner/spinnerview
7
7
  */
8
- import View from '../view.js';
8
+ import { View } from '../view.js';
9
9
  import '../../theme/components/spinner/spinner.css';
10
10
  /**
11
11
  * The spinner view class.
12
12
  */
13
- export default class SpinnerView extends View {
13
+ export class SpinnerView extends View {
14
14
  /**
15
15
  * @inheritDoc
16
16
  */
package/src/template.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module ui/template
7
7
  */
8
- import View from './view.js';
9
- import ViewCollection from './viewcollection.js';
8
+ import { View } from './view.js';
9
+ import { ViewCollection } from './viewcollection.js';
10
10
  import { type ArrayOrItem, type Emitter, type Observable } from '@ckeditor/ckeditor5-utils';
11
11
  declare const Template_base: {
12
12
  new (): Emitter;
@@ -50,7 +50,7 @@ declare const Template_base: {
50
50
  * See {@link module:ui/template~TemplateDefinition} to know more about templates and complex
51
51
  * template definitions.
52
52
  */
53
- export default class Template extends /* #__PURE__ */ Template_base {
53
+ export declare class Template extends /* #__PURE__ */ Template_base {
54
54
  ns?: string;
55
55
  /**
56
56
  * The tag (`tagName`) of this template, e.g. `div`. It also indicates that the template
@@ -325,7 +325,7 @@ export default class Template extends /* #__PURE__ */ Template_base {
325
325
  * }
326
326
  * ```
327
327
  *
328
- * or values bound to {@link module:ui/model~Model} properties:
328
+ * or values bound to {@link module:ui/model~UIModel} properties:
329
329
  *
330
330
  * ```ts
331
331
  * attributes: {
@@ -377,7 +377,7 @@ export default class Template extends /* #__PURE__ */ Template_base {
377
377
  */
378
378
  private _revertTemplateFromNode;
379
379
  }
380
- type AttributeValues = Array<TemplateSimpleValue | TemplateBinding> | [
380
+ export type AttributeValues = Array<TemplateSimpleValue | TemplateBinding> | [
381
381
  NamespacedValue<Array<TemplateSimpleValue | TemplateBinding>>
382
382
  ];
383
383
  /**
@@ -910,6 +910,7 @@ export interface BindChain<TObservable> {
910
910
  }
911
911
  /**
912
912
  * The {@link module:ui/template~Template#_renderNode} configuration.
913
+ * @internal
913
914
  */
914
915
  export interface RenderData {
915
916
  /**
package/src/template.js CHANGED
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module ui/template
7
7
  */
8
- import View from './view.js';
9
- import ViewCollection from './viewcollection.js';
8
+ import { View } from './view.js';
9
+ import { ViewCollection } from './viewcollection.js';
10
10
  import { CKEditorError, EmitterMixin, isNode, toArray } from '@ckeditor/ckeditor5-utils';
11
11
  import { isObject, cloneDeepWith } from 'es-toolkit/compat';
12
12
  const xhtmlNs = 'http://www.w3.org/1999/xhtml';
@@ -48,7 +48,7 @@ const xhtmlNs = 'http://www.w3.org/1999/xhtml';
48
48
  * See {@link module:ui/template~TemplateDefinition} to know more about templates and complex
49
49
  * template definitions.
50
50
  */
51
- export default class Template extends /* #__PURE__ */ EmitterMixin() {
51
+ export class Template extends /* #__PURE__ */ EmitterMixin() {
52
52
  ns;
53
53
  /**
54
54
  * The tag (`tagName`) of this template, e.g. `div`. It also indicates that the template
@@ -573,7 +573,7 @@ export default class Template extends /* #__PURE__ */ EmitterMixin() {
573
573
  * }
574
574
  * ```
575
575
  *
576
- * or values bound to {@link module:ui/model~Model} properties:
576
+ * or values bound to {@link module:ui/model~UIModel} properties:
577
577
  *
578
578
  * ```ts
579
579
  * attributes: {
@@ -6,7 +6,7 @@
6
6
  * @module ui/textarea/textareaview
7
7
  */
8
8
  import { type Locale } from '@ckeditor/ckeditor5-utils';
9
- import InputBase from '../input/inputbase.js';
9
+ import { InputBase } from '../input/inputbase.js';
10
10
  import '../../theme/components/input/input.css';
11
11
  import '../../theme/components/textarea/textarea.css';
12
12
  /**
@@ -23,7 +23,7 @@ import '../../theme/components/textarea/textarea.css';
23
23
  * document.body.append( textareaView.element );
24
24
  * ```
25
25
  */
26
- export default class TextareaView extends InputBase<HTMLTextAreaElement> {
26
+ export declare class TextareaView extends InputBase<HTMLTextAreaElement> {
27
27
  /**
28
28
  * Specifies the visible height of a text area, in lines.
29
29
  *
@@ -6,7 +6,7 @@
6
6
  * @module ui/textarea/textareaview
7
7
  */
8
8
  import { Rect, toUnit, getBorderWidths, global, CKEditorError, isVisible, ResizeObserver } from '@ckeditor/ckeditor5-utils';
9
- import InputBase from '../input/inputbase.js';
9
+ import { InputBase } from '../input/inputbase.js';
10
10
  import '../../theme/components/input/input.css';
11
11
  import '../../theme/components/textarea/textarea.css';
12
12
  /**
@@ -23,7 +23,7 @@ import '../../theme/components/textarea/textarea.css';
23
23
  * document.body.append( textareaView.element );
24
24
  * ```
25
25
  */
26
- export default class TextareaView extends InputBase {
26
+ export class TextareaView extends InputBase {
27
27
  /**
28
28
  * An instance of the resize observer used to detect when the view is visible or not and update
29
29
  * its height if any changes that affect it were made while it was invisible.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module ui/toolbar/balloon/balloontoolbar
7
7
  */
8
- import ContextualBalloon from '../../panel/balloon/contextualballoon.js';
9
- import ToolbarView from '../toolbarview.js';
8
+ import { ContextualBalloon } from '../../panel/balloon/contextualballoon.js';
9
+ import { ToolbarView } from '../toolbarview.js';
10
10
  import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
11
11
  import { FocusTracker } from '@ckeditor/ckeditor5-utils';
12
12
  /**
@@ -14,7 +14,7 @@ import { FocusTracker } from '@ckeditor/ckeditor5-utils';
14
14
  *
15
15
  * It uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon plugin}.
16
16
  */
17
- export default class BalloonToolbar extends Plugin {
17
+ export declare class BalloonToolbar extends Plugin {
18
18
  /**
19
19
  * The toolbar view displayed in the balloon.
20
20
  */
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module ui/toolbar/balloon/balloontoolbar
7
7
  */
8
- import ContextualBalloon from '../../panel/balloon/contextualballoon.js';
9
- import ToolbarView from '../toolbarview.js';
10
- import BalloonPanelView from '../../panel/balloon/balloonpanelview.js';
11
- import normalizeToolbarConfig from '../normalizetoolbarconfig.js';
8
+ import { ContextualBalloon } from '../../panel/balloon/contextualballoon.js';
9
+ import { ToolbarView } from '../toolbarview.js';
10
+ import { BalloonPanelView } from '../../panel/balloon/balloonpanelview.js';
11
+ import { normalizeToolbarConfig } from '../normalizetoolbarconfig.js';
12
12
  import { Plugin } from '@ckeditor/ckeditor5-core';
13
13
  import { FocusTracker, Rect, ResizeObserver, env, global, toUnit } from '@ckeditor/ckeditor5-utils';
14
14
  import { Observer } from '@ckeditor/ckeditor5-engine';
@@ -19,7 +19,7 @@ const toPx = /* #__PURE__ */ toUnit('px');
19
19
  *
20
20
  * It uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon plugin}.
21
21
  */
22
- export default class BalloonToolbar extends Plugin {
22
+ export class BalloonToolbar extends Plugin {
23
23
  /**
24
24
  * The toolbar view displayed in the balloon.
25
25
  */