@ckeditor/ckeditor5-fullscreen 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.
@@ -1,289 +1,288 @@
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 EventInfo } from '@ckeditor/ckeditor5-utils';
6
- import type { ElementApi, Editor, EditorConfig } from '@ckeditor/ckeditor5-core';
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 { ElementApi, Editor, EditorConfig } from "@ckeditor/ckeditor5-core";
7
6
  /**
8
- * The abstract editor type handler.
9
- *
10
- * This class defines some actions and behaviors that are applied when fullscreen mode is toggled, and which are common
11
- * regardless of the editor type. Then, specific classes like `ClassicEditorHandler` or `DecoupledEditorHandler`
12
- * extend this class with actions specific for these editor types.
13
- *
14
- * Extend this class to provide fullscreen mode handling for unsupported editor types,
15
- * or if you wish to heavily customize the default behavior.
16
- *
17
- * The only method that is necessary to provide when extending this class is {@link #defaultOnEnter}. However, make sure to
18
- * familiarize yourself with the below full list of actions taken by `FullscreenAbstractEditorHandler` to understand
19
- * what is covered by default, and what should be provided by you.
20
- *
21
- * When entering the fullscreen mode, the {@link #enable} method is called. It creates the properly styled container
22
- * and handles the editor features that need it, in the following order:
23
- *
24
- * 1. Saves the scroll positions of all ancestors of the editable element to restore them after leaving the fullscreen mode.
25
- * 2. Executes the {@link #defaultOnEnter} method to move the proper editor UI elements to the fullscreen mode.
26
- * **If you extend the abstract handler, you should override this method** to move the elements that are specific to your editor type, like:
27
- * editable, toolbar, menu bar.
28
- * Use {@link #moveToFullscreen} method for this purpose to ensure they are automatically cleaned up after leaving the fullscreen mode.
29
- * 3. Adds proper classes to the `<body>` and `<html>` elements to block page scrolling, adjust `z-index` etc.
30
- *
31
- * Steps 4-12 are only executed if the corresponding features are used.
32
- *
33
- * 4. If presence list is used, moves it to the fullscreen mode container.
34
- * 5. If document outline is used, moves it to the fullscreen mode.
35
- * 6. If pagination is used, adjusts it's configuration for the changed view.
36
- * 7. If annotations are used, moves them to the fullscreen mode.
37
- * 8. If revision history is used, overrides the callbacks to show the revision viewer in the fullscreen mode.
38
- * 9. If AI Tabs is used, moves it to the fullscreen mode.
39
- * 10. If source editing and document outline are both used, registers a callback hiding the document outline header in source editing mode.
40
- * 11. Changes the position of some dialogs to utilize the empty space on the right side of the editable element.
41
- * 12. If custom container is used, hides all other elements in it to ensure they don't create an empty unscrollable space.
42
- *
43
- * Then finally:
44
- *
45
- * 13. Adjusts the visibility of the left and right sidebars based on the available space.
46
- * 14. Sets up a resize observer to adjust the visibility of the left and right sidebars dynamically.
47
- * 15. Executes the configured {@link module:fullscreen/fullscreenconfig~FullscreenConfig#onEnterCallback
48
- * `config.fullscreen.onEnterCallback`} function.
49
- * By default, it returns the fullscreen mode container element so it can be further customized.
50
- *
51
- * When leaving the fullscreen mode, the {@link #disable} method is called. It does the following:
52
- *
53
- * 1. Execute the configured {@link module:fullscreen/fullscreenconfig~FullscreenConfig#onLeaveCallback
54
- * `config.fullscreen.onLeaveCallback`} function.
55
- * 2. Remove the classes added to the `<body>` and `<html>` elements.
56
- * 3. If document outline is used, restore its default container.
57
- * 4. If annotations are used, restore their original state (UI, filters etc).
58
- * 5. If revision history is used, restore the original callbacks.
59
- * 7. If AI Tabs is used, restore it to the original state.
60
- * 8. If source editing and document outline are both used, restore the document outline header.
61
- * 9. Restore all moved elements to their original place.
62
- * 10. Destroy the fullscreen mode container.
63
- * 11. If the editor has a toolbar, switch its behavior to the one configured in the
64
- * {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} property.
65
- * 12. Restore the scroll positions of all ancestors of the editable element.
66
- * 13. If pagination is used, restore its default configuration.
67
- * 14. Restore default dialogs positions.
68
- *
69
- * This class is exported to allow for custom extensions.
70
- */
7
+ * The abstract editor type handler.
8
+ *
9
+ * This class defines some actions and behaviors that are applied when fullscreen mode is toggled, and which are common
10
+ * regardless of the editor type. Then, specific classes like `ClassicEditorHandler` or `DecoupledEditorHandler`
11
+ * extend this class with actions specific for these editor types.
12
+ *
13
+ * Extend this class to provide fullscreen mode handling for unsupported editor types,
14
+ * or if you wish to heavily customize the default behavior.
15
+ *
16
+ * The only method that is necessary to provide when extending this class is {@link #defaultOnEnter}. However, make sure to
17
+ * familiarize yourself with the below full list of actions taken by `FullscreenAbstractEditorHandler` to understand
18
+ * what is covered by default, and what should be provided by you.
19
+ *
20
+ * When entering the fullscreen mode, the {@link #enable} method is called. It creates the properly styled container
21
+ * and handles the editor features that need it, in the following order:
22
+ *
23
+ * 1. Saves the scroll positions of all ancestors of the editable element to restore them after leaving the fullscreen mode.
24
+ * 2. Executes the {@link #defaultOnEnter} method to move the proper editor UI elements to the fullscreen mode.
25
+ * **If you extend the abstract handler, you should override this method** to move the elements that are specific to your editor type, like:
26
+ * editable, toolbar, menu bar.
27
+ * Use {@link #moveToFullscreen} method for this purpose to ensure they are automatically cleaned up after leaving the fullscreen mode.
28
+ * 3. Adds proper classes to the `<body>` and `<html>` elements to block page scrolling, adjust `z-index` etc.
29
+ *
30
+ * Steps 4-12 are only executed if the corresponding features are used.
31
+ *
32
+ * 4. If presence list is used, moves it to the fullscreen mode container.
33
+ * 5. If document outline is used, moves it to the fullscreen mode.
34
+ * 6. If pagination is used, adjusts it's configuration for the changed view.
35
+ * 7. If annotations are used, moves them to the fullscreen mode.
36
+ * 8. If revision history is used, overrides the callbacks to show the revision viewer in the fullscreen mode.
37
+ * 9. If AI Tabs is used, moves it to the fullscreen mode.
38
+ * 10. If source editing and document outline are both used, registers a callback hiding the document outline header in source editing mode.
39
+ * 11. Changes the position of some dialogs to utilize the empty space on the right side of the editable element.
40
+ * 12. If custom container is used, hides all other elements in it to ensure they don't create an empty unscrollable space.
41
+ *
42
+ * Then finally:
43
+ *
44
+ * 13. Adjusts the visibility of the left and right sidebars based on the available space.
45
+ * 14. Sets up a resize observer to adjust the visibility of the left and right sidebars dynamically.
46
+ * 15. Executes the configured {@link module:fullscreen/fullscreenconfig~FullscreenConfig#onEnterCallback
47
+ * `config.fullscreen.onEnterCallback`} function.
48
+ * By default, it returns the fullscreen mode container element so it can be further customized.
49
+ *
50
+ * When leaving the fullscreen mode, the {@link #disable} method is called. It does the following:
51
+ *
52
+ * 1. Execute the configured {@link module:fullscreen/fullscreenconfig~FullscreenConfig#onLeaveCallback
53
+ * `config.fullscreen.onLeaveCallback`} function.
54
+ * 2. Remove the classes added to the `<body>` and `<html>` elements.
55
+ * 3. If document outline is used, restore its default container.
56
+ * 4. If annotations are used, restore their original state (UI, filters etc).
57
+ * 5. If revision history is used, restore the original callbacks.
58
+ * 7. If AI Tabs is used, restore it to the original state.
59
+ * 8. If source editing and document outline are both used, restore the document outline header.
60
+ * 9. Restore all moved elements to their original place.
61
+ * 10. Destroy the fullscreen mode container.
62
+ * 11. If the editor has a toolbar, switch its behavior to the one configured in the
63
+ * {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} property.
64
+ * 12. Restore the scroll positions of all ancestors of the editable element.
65
+ * 13. If pagination is used, restore its default configuration.
66
+ * 14. Restore default dialogs positions.
67
+ *
68
+ * This class is exported to allow for custom extensions.
69
+ */
71
70
  export declare class FullscreenAbstractEditorHandler {
72
- /**
73
- * Maps placeholder names to placeholder elements and moved elements.
74
- */
75
- private _placeholderMap;
76
- /**
77
- * The wrapper element that holds the fullscreen mode layout.
78
- */
79
- private _wrapper;
80
- /**
81
- * The document object in which the editor is located.
82
- */
83
- private _document;
84
- /**
85
- * Data of the annotations UIs that were active before entering the fullscreen mode.
86
- */
87
- private _annotationsUIsData;
88
- /**
89
- * The pagination body collection that is used in the fullscreen mode.
90
- * If we don't move pagination lines to the fullscreen container, they won't be visible.
91
- */
92
- private _paginationBodyCollection;
93
- /**
94
- * Whether the left sidebar collapse button is created.
95
- */
96
- private _hasLeftCollapseButton;
97
- /**
98
- * The button that toggles the visibility of the left sidebar.
99
- */
100
- private _collapseLeftSidebarButton;
101
- /**
102
- * The resize observer that is used to adjust the visibility of the left and right sidebars dynamically.
103
- */
104
- private _resizeObserver;
105
- /**
106
- * The width of the expanded left and right sidebars in the fullscreen mode. Necessary for logic checking if they should be visible.
107
- */
108
- private _sidebarsWidths;
109
- /**
110
- * Whether the left sidebar should be kept hidden even if there is enough space for it. It's set to `true` when user
111
- * collapses the left sidebar with a button. Behavior is reset when exiting the fullscreen mode.
112
- */
113
- private _keepLeftSidebarHidden;
114
- /**
115
- * Temporary flag used to ignore the first automatic layout adjustment logic when user collapses the left sidebar with a button.
116
- * It is then immediately set back to `false`.
117
- */
118
- private _forceShowLeftSidebar;
119
- /**
120
- * A callback that hides the document outline header when the source editing mode is enabled.
121
- * Document outline element itself is hidden by source editing plugin.
122
- */
123
- private _sourceEditingCallback;
124
- /**
125
- * A map of elements that were hidden when entering the fullscreen mode.
126
- * It is used to restore their previous visibility when leaving the fullscreen mode and avoid showing elements
127
- * that were hidden before entering the fullscreen mode.
128
- */
129
- private _hiddenElements;
130
- /**
131
- * A map matching the ancestors of the editable element with their scroll positions before entering fullscreen mode.
132
- */
133
- private _savedAncestorsScrollPositions;
134
- /**
135
- * A callback that shows the revision viewer, stored to restore the original one after exiting the fullscreen mode.
136
- */
137
- protected _showRevisionViewerCallback: ((config?: EditorConfig) => Promise<any>) | null;
138
- /**
139
- * A callback that closes the revision viewer, stored to restore the original one after exiting the fullscreen mode.
140
- */
141
- protected _closeRevisionViewerCallback: ((viewerEditor?: any) => Promise<unknown>) | null;
142
- /**
143
- * An editor instance. It should be set by the particular editor type handler.
144
- */
145
- protected _editor: Editor & Partial<ElementApi>;
146
- /**
147
- * A map of AI Tabs data that were set before entering the fullscreen mode.
148
- */
149
- private _aiTabsData;
150
- /**
151
- * @inheritDoc
152
- */
153
- constructor(editor: Editor);
154
- /**
155
- * Moves the given element to the fullscreen mode container, leaving a placeholder in its place.
156
- */
157
- moveToFullscreen(elementToMove: HTMLElement, placeholderName: string): void;
158
- /**
159
- * Returns a single moved element to its original place.
160
- */
161
- restoreMovedElementLocation(placeholderName: string): void;
162
- /**
163
- * Returns the fullscreen mode container element.
164
- */
165
- getWrapper(): HTMLElement;
166
- /**
167
- * Enables the fullscreen mode. It executes the editor-specific enable handler and then the configured callback.
168
- */
169
- enable(): void;
170
- /**
171
- * Disables the fullscreen mode by restoring all moved elements and destroying the fullscreen container.
172
- */
173
- disable(): void;
174
- /**
175
- * @inheritDoc
176
- */
177
- destroy(): void;
178
- /**
179
- * A function that moves the editor UI elements to the fullscreen mode. It should be set by the particular editor type handler.
180
- *
181
- * Returns the fullscreen mode container element so it can be further customized via
182
- * `fullscreen.onEnterCallback` configuration property.
183
- */
184
- defaultOnEnter(): HTMLElement;
185
- /**
186
- * Destroys the fullscreen mode container.
187
- */
188
- private _destroyContainer;
189
- /**
190
- * Checks if the PresenceListUI plugin is available and moves its elements to fullscreen mode.
191
- */
192
- private _generatePresenceListContainer;
193
- /**
194
- * Checks if the DocumentOutlineUI plugin is available and moves its elements to fullscreen mode.
195
- */
196
- private _generateDocumentOutlineContainer;
197
- /**
198
- * Restores the default value of documentOutlineContainer, which is modified in fullscreen mode.
199
- */
200
- private _restoreDocumentOutlineDefaultContainer;
201
- private _generateCollapseButton;
202
- /**
203
- * Stores the current state of the annotations UIs to restore it when leaving fullscreen mode and switches the UI to the wide sidebar.
204
- */
205
- private _overrideAnnotationsUIs;
206
- /**
207
- * Restores the saved state of the annotations UIs.
208
- */
209
- private _restoreAnnotationsUIs;
210
- /**
211
- * Modifies the revision history viewer callbacks to display the viewer in the fullscreen mode.
212
- */
213
- private _overrideRevisionHistoryCallbacks;
214
- /**
215
- * Resets the revision history viewer callbacks to their original values.
216
- */
217
- private _restoreRevisionHistoryCallbacks;
218
- /**
219
- * Adds an event listener when the dialog opens to adjust its position in fullscreen mode,
220
- * utilizing the empty space on the right side of the editable element.
221
- */
222
- private _registerFullscreenDialogPositionAdjustments;
223
- /**
224
- * Removes an event listener that adjusts the dialog's position in fullscreen mode.
225
- */
226
- private _unregisterFullscreenDialogPositionAdjustments;
227
- /**
228
- * Stores a bound reference to the _updateDialogPosition method, allowing it to be attached and detached from change event.
229
- */
230
- updateDialogPositionCallback: (_evt: EventInfo, _name: string, isOpen: boolean) => void;
231
- /**
232
- * If dialog is open, adjust its positioning.
233
- */
234
- private _updateDialogPosition;
235
- /**
236
- * Adjusts the dialog position to utilize the empty space on the right side of the editable.
237
- * The new dialog position should be on the right side of the fullscreen view with a 30px margin.
238
- * Only dialogs with the position set to "editor-top-side" should have their position changed.
239
- */
240
- private _setNewDialogPosition;
241
- /**
242
- * Saves the scroll positions of all ancestors of the given element.
243
- */
244
- private _saveAncestorsScrollPositions;
245
- /**
246
- * Stores the current state of the AI Tabs and moves it to the fullscreen mode.
247
- */
248
- private _handleAITabsTransfer;
249
- /**
250
- * Checks the transition event to see if it's changing the width of the AI tabs and if so, adjusts the visible fullscreen mode elements.
251
- */
252
- private _handleAISidebarTransitions;
253
- /**
254
- * Restores the state of the AI Tabs to the original values.
255
- */
256
- private _restoreAITabs;
257
- /**
258
- * Adjusts the visibility of the left and right sidebars based on the available space.
259
- */
260
- private _adjustVisibleElements;
261
- /**
262
- * Switches the annotations UI to the requested one.
263
- */
264
- private _switchAnnotationsUI;
265
- /**
266
- * Sets up a resize observer to adjust the visibility of the left and right sidebars dynamically.
267
- */
268
- private _setupResizeObserver;
269
- /**
270
- * Hides the left sidebar. Works only if there is anything to hide.
271
- */
272
- private _hideLeftSidebar;
273
- /**
274
- * Shows the left sidebar. Works only if there is anything to show.
275
- */
276
- private _showLeftSidebar;
277
- /**
278
- * Hides the right sidebar. Works only if there is anything to hide.
279
- */
280
- private _hideRightSidebar;
281
- /**
282
- * Shows the right sidebar. Works only if there is anything to show.
283
- */
284
- private _showRightSidebar;
285
- /**
286
- * Handler for AI tabs `transitionend`; must be the same reference in `addEventListener` / `removeEventListener`.
287
- */
288
- private _aiTabsTransitionEndCallback;
71
+ /**
72
+ * Maps placeholder names to placeholder elements and moved elements.
73
+ */
74
+ private _placeholderMap;
75
+ /**
76
+ * The wrapper element that holds the fullscreen mode layout.
77
+ */
78
+ private _wrapper;
79
+ /**
80
+ * The document object in which the editor is located.
81
+ */
82
+ private _document;
83
+ /**
84
+ * Data of the annotations UIs that were active before entering the fullscreen mode.
85
+ */
86
+ private _annotationsUIsData;
87
+ /**
88
+ * The pagination body collection that is used in the fullscreen mode.
89
+ * If we don't move pagination lines to the fullscreen container, they won't be visible.
90
+ */
91
+ private _paginationBodyCollection;
92
+ /**
93
+ * Whether the left sidebar collapse button is created.
94
+ */
95
+ private _hasLeftCollapseButton;
96
+ /**
97
+ * The button that toggles the visibility of the left sidebar.
98
+ */
99
+ private _collapseLeftSidebarButton;
100
+ /**
101
+ * The resize observer that is used to adjust the visibility of the left and right sidebars dynamically.
102
+ */
103
+ private _resizeObserver;
104
+ /**
105
+ * The width of the expanded left and right sidebars in the fullscreen mode. Necessary for logic checking if they should be visible.
106
+ */
107
+ private _sidebarsWidths;
108
+ /**
109
+ * Whether the left sidebar should be kept hidden even if there is enough space for it. It's set to `true` when user
110
+ * collapses the left sidebar with a button. Behavior is reset when exiting the fullscreen mode.
111
+ */
112
+ private _keepLeftSidebarHidden;
113
+ /**
114
+ * Temporary flag used to ignore the first automatic layout adjustment logic when user collapses the left sidebar with a button.
115
+ * It is then immediately set back to `false`.
116
+ */
117
+ private _forceShowLeftSidebar;
118
+ /**
119
+ * A callback that hides the document outline header when the source editing mode is enabled.
120
+ * Document outline element itself is hidden by source editing plugin.
121
+ */
122
+ private _sourceEditingCallback;
123
+ /**
124
+ * A map of elements that were hidden when entering the fullscreen mode.
125
+ * It is used to restore their previous visibility when leaving the fullscreen mode and avoid showing elements
126
+ * that were hidden before entering the fullscreen mode.
127
+ */
128
+ private _hiddenElements;
129
+ /**
130
+ * A map matching the ancestors of the editable element with their scroll positions before entering fullscreen mode.
131
+ */
132
+ private _savedAncestorsScrollPositions;
133
+ /**
134
+ * A callback that shows the revision viewer, stored to restore the original one after exiting the fullscreen mode.
135
+ */
136
+ protected _showRevisionViewerCallback: ((config?: EditorConfig) => Promise<any>) | null;
137
+ /**
138
+ * A callback that closes the revision viewer, stored to restore the original one after exiting the fullscreen mode.
139
+ */
140
+ protected _closeRevisionViewerCallback: ((viewerEditor?: any) => Promise<unknown>) | null;
141
+ /**
142
+ * An editor instance. It should be set by the particular editor type handler.
143
+ */
144
+ protected _editor: Editor & Partial<ElementApi>;
145
+ /**
146
+ * A map of AI Tabs data that were set before entering the fullscreen mode.
147
+ */
148
+ private _aiTabsData;
149
+ /**
150
+ * @inheritDoc
151
+ */
152
+ constructor(editor: Editor);
153
+ /**
154
+ * Moves the given element to the fullscreen mode container, leaving a placeholder in its place.
155
+ */
156
+ moveToFullscreen(elementToMove: HTMLElement, placeholderName: string): void;
157
+ /**
158
+ * Returns a single moved element to its original place.
159
+ */
160
+ restoreMovedElementLocation(placeholderName: string): void;
161
+ /**
162
+ * Returns the fullscreen mode container element.
163
+ */
164
+ getWrapper(): HTMLElement;
165
+ /**
166
+ * Enables the fullscreen mode. It executes the editor-specific enable handler and then the configured callback.
167
+ */
168
+ enable(): void;
169
+ /**
170
+ * Disables the fullscreen mode by restoring all moved elements and destroying the fullscreen container.
171
+ */
172
+ disable(): void;
173
+ /**
174
+ * @inheritDoc
175
+ */
176
+ destroy(): void;
177
+ /**
178
+ * A function that moves the editor UI elements to the fullscreen mode. It should be set by the particular editor type handler.
179
+ *
180
+ * Returns the fullscreen mode container element so it can be further customized via
181
+ * `fullscreen.onEnterCallback` configuration property.
182
+ */
183
+ defaultOnEnter(): HTMLElement;
184
+ /**
185
+ * Destroys the fullscreen mode container.
186
+ */
187
+ private _destroyContainer;
188
+ /**
189
+ * Checks if the PresenceListUI plugin is available and moves its elements to fullscreen mode.
190
+ */
191
+ private _generatePresenceListContainer;
192
+ /**
193
+ * Checks if the DocumentOutlineUI plugin is available and moves its elements to fullscreen mode.
194
+ */
195
+ private _generateDocumentOutlineContainer;
196
+ /**
197
+ * Restores the default value of documentOutlineContainer, which is modified in fullscreen mode.
198
+ */
199
+ private _restoreDocumentOutlineDefaultContainer;
200
+ private _generateCollapseButton;
201
+ /**
202
+ * Stores the current state of the annotations UIs to restore it when leaving fullscreen mode and switches the UI to the wide sidebar.
203
+ */
204
+ private _overrideAnnotationsUIs;
205
+ /**
206
+ * Restores the saved state of the annotations UIs.
207
+ */
208
+ private _restoreAnnotationsUIs;
209
+ /**
210
+ * Modifies the revision history viewer callbacks to display the viewer in the fullscreen mode.
211
+ */
212
+ private _overrideRevisionHistoryCallbacks;
213
+ /**
214
+ * Resets the revision history viewer callbacks to their original values.
215
+ */
216
+ private _restoreRevisionHistoryCallbacks;
217
+ /**
218
+ * Adds an event listener when the dialog opens to adjust its position in fullscreen mode,
219
+ * utilizing the empty space on the right side of the editable element.
220
+ */
221
+ private _registerFullscreenDialogPositionAdjustments;
222
+ /**
223
+ * Removes an event listener that adjusts the dialog's position in fullscreen mode.
224
+ */
225
+ private _unregisterFullscreenDialogPositionAdjustments;
226
+ /**
227
+ * Stores a bound reference to the _updateDialogPosition method, allowing it to be attached and detached from change event.
228
+ */
229
+ updateDialogPositionCallback: typeof this._updateDialogPosition;
230
+ /**
231
+ * If dialog is open, adjust its positioning.
232
+ */
233
+ private _updateDialogPosition;
234
+ /**
235
+ * Adjusts the dialog position to utilize the empty space on the right side of the editable.
236
+ * The new dialog position should be on the right side of the fullscreen view with a 30px margin.
237
+ * Only dialogs with the position set to "editor-top-side" should have their position changed.
238
+ */
239
+ private _setNewDialogPosition;
240
+ /**
241
+ * Saves the scroll positions of all ancestors of the given element.
242
+ */
243
+ private _saveAncestorsScrollPositions;
244
+ /**
245
+ * Stores the current state of the AI Tabs and moves it to the fullscreen mode.
246
+ */
247
+ private _handleAITabsTransfer;
248
+ /**
249
+ * Checks the transition event to see if it's changing the width of the AI tabs and if so, adjusts the visible fullscreen mode elements.
250
+ */
251
+ private _handleAISidebarTransitions;
252
+ /**
253
+ * Restores the state of the AI Tabs to the original values.
254
+ */
255
+ private _restoreAITabs;
256
+ /**
257
+ * Adjusts the visibility of the left and right sidebars based on the available space.
258
+ */
259
+ private _adjustVisibleElements;
260
+ /**
261
+ * Switches the annotations UI to the requested one.
262
+ */
263
+ private _switchAnnotationsUI;
264
+ /**
265
+ * Sets up a resize observer to adjust the visibility of the left and right sidebars dynamically.
266
+ */
267
+ private _setupResizeObserver;
268
+ /**
269
+ * Hides the left sidebar. Works only if there is anything to hide.
270
+ */
271
+ private _hideLeftSidebar;
272
+ /**
273
+ * Shows the left sidebar. Works only if there is anything to show.
274
+ */
275
+ private _showLeftSidebar;
276
+ /**
277
+ * Hides the right sidebar. Works only if there is anything to hide.
278
+ */
279
+ private _hideRightSidebar;
280
+ /**
281
+ * Shows the right sidebar. Works only if there is anything to show.
282
+ */
283
+ private _showRightSidebar;
284
+ /**
285
+ * Handler for AI tabs `transitionend`; must be the same reference in `addEventListener` / `removeEventListener`.
286
+ */
287
+ private _aiTabsTransitionEndCallback;
289
288
  }
@@ -1,23 +1,23 @@
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 { ClassicEditor } from '@ckeditor/ckeditor5-editor-classic';
6
- import { FullscreenAbstractEditorHandler } from './abstracteditorhandler.js';
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 { ClassicEditor } from "@ckeditor/ckeditor5-editor-classic";
6
+ import { FullscreenAbstractEditorHandler } from "./abstracteditorhandler.js";
7
7
  /**
8
- * The classic editor fullscreen mode handler.
9
- */
8
+ * The classic editor fullscreen mode handler.
9
+ */
10
10
  export declare class FullscreenClassicEditorHandler extends FullscreenAbstractEditorHandler {
11
- /**
12
- * An editor instance.
13
- */
14
- protected readonly _editor: ClassicEditor;
15
- /**
16
- * @inheritDoc
17
- */
18
- constructor(editor: ClassicEditor);
19
- /**
20
- * A function that moves the editor UI elements to the fullscreen mode.
21
- */
22
- defaultOnEnter(): HTMLElement;
11
+ /**
12
+ * An editor instance.
13
+ */
14
+ protected override readonly _editor: ClassicEditor;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ constructor(editor: ClassicEditor);
19
+ /**
20
+ * A function that moves the editor UI elements to the fullscreen mode.
21
+ */
22
+ override defaultOnEnter(): HTMLElement;
23
23
  }