@ckeditor/ckeditor5-ui 47.0.0-alpha.4 → 47.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/dialog/dialog.d.ts +1 -1
- package/src/dialog/dialogview.d.ts +1 -1
- package/src/dialog/dialogview.js +4 -0
- package/src/menubar/utils.d.ts +2 -1
- package/src/menubar/utils.js +4 -2
package/dist/index.js
CHANGED
|
@@ -3894,6 +3894,10 @@ const toPx$6 = /* #__PURE__ */ toUnit('px');
|
|
|
3894
3894
|
return;
|
|
3895
3895
|
} else if (typeof this.position == 'function') {
|
|
3896
3896
|
const coords = this.position(dialogRect, domRootRect);
|
|
3897
|
+
if (coords == null) {
|
|
3898
|
+
this._moveOffScreen();
|
|
3899
|
+
return;
|
|
3900
|
+
}
|
|
3897
3901
|
this._moveTo(coords.left, coords.top);
|
|
3898
3902
|
return;
|
|
3899
3903
|
}
|
|
@@ -13180,7 +13184,8 @@ const NESTED_PANEL_HORIZONTAL_OFFSET = 5;
|
|
|
13180
13184
|
* groupId: 'aiTools',
|
|
13181
13185
|
* items: [
|
|
13182
13186
|
* 'menuBar:aiAssistant',
|
|
13183
|
-
* 'menuBar:aiCommands'
|
|
13187
|
+
* 'menuBar:aiCommands',
|
|
13188
|
+
* 'menuBar:toggleAi'
|
|
13184
13189
|
* ]
|
|
13185
13190
|
* },
|
|
13186
13191
|
* {
|
|
@@ -13453,7 +13458,8 @@ const DefaultMenuBarItems = [
|
|
|
13453
13458
|
groupId: 'aiTools',
|
|
13454
13459
|
items: [
|
|
13455
13460
|
'menuBar:aiAssistant',
|
|
13456
|
-
'menuBar:aiCommands'
|
|
13461
|
+
'menuBar:aiCommands',
|
|
13462
|
+
'menuBar:toggleAi'
|
|
13457
13463
|
]
|
|
13458
13464
|
},
|
|
13459
13465
|
{
|