@ckeditor/ckeditor5-fullscreen 48.1.0-alpha.0 → 48.1.0-alpha.2
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.
|
@@ -282,4 +282,8 @@ export declare class FullscreenAbstractEditorHandler {
|
|
|
282
282
|
* Shows the right sidebar. Works only if there is anything to show.
|
|
283
283
|
*/
|
|
284
284
|
private _showRightSidebar;
|
|
285
|
+
/**
|
|
286
|
+
* Handler for AI tabs `transitionend`; must be the same reference in `addEventListener` / `removeEventListener`.
|
|
287
|
+
*/
|
|
288
|
+
private _aiTabsTransitionEndCallback;
|
|
285
289
|
}
|
package/dist/index.js
CHANGED
|
@@ -678,7 +678,7 @@ const DIALOG_OFFSET = 28;
|
|
|
678
678
|
aiTabs.type = 'sidebar';
|
|
679
679
|
// Adjust the visible elements when the transition (changing the size of the AI tabs) ends. Earlier we do not have the
|
|
680
680
|
// correct sizes of elements.
|
|
681
|
-
aiTabs.view.element.addEventListener('transitionend',
|
|
681
|
+
aiTabs.view.element.addEventListener('transitionend', this._aiTabsTransitionEndCallback);
|
|
682
682
|
}
|
|
683
683
|
/**
|
|
684
684
|
* 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.
|
|
@@ -698,7 +698,7 @@ const DIALOG_OFFSET = 28;
|
|
|
698
698
|
aiTabs.side = this._aiTabsData?.side;
|
|
699
699
|
aiTabs.type = this._aiTabsData?.type;
|
|
700
700
|
this._aiTabsData = null;
|
|
701
|
-
aiTabs.view.element.removeEventListener('transitionend', this.
|
|
701
|
+
aiTabs.view.element.removeEventListener('transitionend', this._aiTabsTransitionEndCallback);
|
|
702
702
|
}
|
|
703
703
|
/**
|
|
704
704
|
* Adjusts the visibility of the left and right sidebars based on the available space.
|
|
@@ -817,6 +817,11 @@ const DIALOG_OFFSET = 28;
|
|
|
817
817
|
this._wrapper.querySelector('.ck-fullscreen__right-sidebar').classList.remove('ck-fullscreen__right-sidebar--collapsed');
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
+
/**
|
|
821
|
+
* Handler for AI tabs `transitionend`; must be the same reference in `addEventListener` / `removeEventListener`.
|
|
822
|
+
*/ _aiTabsTransitionEndCallback = (evt)=>{
|
|
823
|
+
this._handleAISidebarTransitions(evt);
|
|
824
|
+
};
|
|
820
825
|
}
|
|
821
826
|
|
|
822
827
|
/**
|