@ckeditor/ckeditor5-ui 47.0.0-alpha.3 → 47.0.0-alpha.5
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 +4 -0
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ui",
|
|
3
|
-
"version": "47.0.0-alpha.
|
|
3
|
+
"version": "47.0.0-alpha.5",
|
|
4
4
|
"description": "The UI framework and standard UI library of CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"main": "src/index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ckeditor/ckeditor5-core": "47.0.0-alpha.
|
|
21
|
-
"@ckeditor/ckeditor5-editor-multi-root": "47.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-engine": "47.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-icons": "47.0.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-utils": "47.0.0-alpha.
|
|
20
|
+
"@ckeditor/ckeditor5-core": "47.0.0-alpha.5",
|
|
21
|
+
"@ckeditor/ckeditor5-editor-multi-root": "47.0.0-alpha.5",
|
|
22
|
+
"@ckeditor/ckeditor5-engine": "47.0.0-alpha.5",
|
|
23
|
+
"@ckeditor/ckeditor5-icons": "47.0.0-alpha.5",
|
|
24
|
+
"@ckeditor/ckeditor5-utils": "47.0.0-alpha.5",
|
|
25
25
|
"@types/color-convert": "2.0.4",
|
|
26
26
|
"color-convert": "3.1.0",
|
|
27
27
|
"color-parse": "2.0.2",
|
package/src/dialog/dialog.d.ts
CHANGED
|
@@ -245,7 +245,7 @@ export interface DialogDefinition {
|
|
|
245
245
|
position?: typeof DialogViewPosition[keyof typeof DialogViewPosition] | null | ((dialogRect: Rect, domRootRect?: Rect | null) => {
|
|
246
246
|
left: number;
|
|
247
247
|
top: number;
|
|
248
|
-
});
|
|
248
|
+
} | null);
|
|
249
249
|
/**
|
|
250
250
|
* A callback called when the dialog shows up with a `low` priority. It allows for setting up the dialog's {@link #content}.
|
|
251
251
|
*/
|
|
@@ -111,7 +111,7 @@ export declare class DialogView extends /* #__PURE__ */ DialogView_base implemen
|
|
|
111
111
|
position: typeof DialogViewPosition[keyof typeof DialogViewPosition] | null | ((dialogRect: Rect, domRootRect?: Rect | null) => {
|
|
112
112
|
left: number;
|
|
113
113
|
top: number;
|
|
114
|
-
});
|
|
114
|
+
} | null);
|
|
115
115
|
/**
|
|
116
116
|
* A flag indicating that the dialog should be shown. Once set to `true`, the dialog will be shown
|
|
117
117
|
* after its position is calculated. Until then, the dialog is transparent and not visible.
|
package/src/dialog/dialogview.js
CHANGED
|
@@ -342,6 +342,10 @@ export class DialogView extends /* #__PURE__ */ DraggableViewMixin(View) {
|
|
|
342
342
|
}
|
|
343
343
|
else if (typeof this.position == 'function') {
|
|
344
344
|
const coords = this.position(dialogRect, domRootRect);
|
|
345
|
+
if (coords == null) {
|
|
346
|
+
this._moveOffScreen();
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
345
349
|
this._moveTo(coords.left, coords.top);
|
|
346
350
|
return;
|
|
347
351
|
}
|