@ckeditor/ckeditor5-widget 0.0.0-nightly-20250609.0 → 0.0.0-nightly-20250611.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.
Potentially problematic release.
This version of @ckeditor/ckeditor5-widget might be problematic. Click here for more details.
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/widgetresize/sizeview.d.ts +2 -0
- package/src/widgetresize/sizeview.js +2 -0
- package/src/widgettypearound/utils.d.ts +8 -0
- package/src/widgettypearound/utils.js +8 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-widget",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20250611.0",
|
4
4
|
"description": "Widget API for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,13 +12,13 @@
|
|
12
12
|
"type": "module",
|
13
13
|
"main": "src/index.js",
|
14
14
|
"dependencies": {
|
15
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
16
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
17
|
-
"@ckeditor/ckeditor5-enter": "0.0.0-nightly-
|
18
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
19
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
20
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
21
|
-
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-
|
15
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250611.0",
|
16
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250611.0",
|
17
|
+
"@ckeditor/ckeditor5-enter": "0.0.0-nightly-20250611.0",
|
18
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250611.0",
|
19
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250611.0",
|
20
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250611.0",
|
21
|
+
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-20250611.0",
|
22
22
|
"es-toolkit": "1.38.0"
|
23
23
|
},
|
24
24
|
"author": "CKSource (http://cksource.com/)",
|
package/src/index.d.ts
CHANGED
@@ -10,4 +10,6 @@ export { WidgetToolbarRepository } from './widgettoolbarrepository.js';
|
|
10
10
|
export { WidgetResize } from './widgetresize.js';
|
11
11
|
export { WidgetTypeAround } from './widgettypearound/widgettypearound.js';
|
12
12
|
export { WIDGET_CLASS_NAME, WIDGET_SELECTED_CLASS_NAME, isWidget, toWidget, setHighlightHandling, setLabel, getLabel, toWidgetEditable, findOptimalInsertionRange, viewToModelPositionOutsideModelElement, calculateResizeHostAncestorWidth, calculateResizeHostPercentageWidth } from './utils.js';
|
13
|
+
export { SizeView as _WidgetSizeView } from './widgetresize/sizeview.js';
|
14
|
+
export { TYPE_AROUND_SELECTION_ATTRIBUTE as _WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE, getClosestTypeAroundDomButton as _getClosestWidgetTypeAroundDomButton, getTypeAroundButtonPosition as _getWidgetTypeAroundButtonPosition, getClosestWidgetViewElement as _getClosestWidgetViewElement, getTypeAroundFakeCaretPosition as _getWidgetTypeAroundFakeCaretPosition } from './widgettypearound/utils.js';
|
13
15
|
import './augmentation.js';
|
package/src/index.js
CHANGED
@@ -10,4 +10,6 @@ export { WidgetToolbarRepository } from './widgettoolbarrepository.js';
|
|
10
10
|
export { WidgetResize } from './widgetresize.js';
|
11
11
|
export { WidgetTypeAround } from './widgettypearound/widgettypearound.js';
|
12
12
|
export { WIDGET_CLASS_NAME, WIDGET_SELECTED_CLASS_NAME, isWidget, toWidget, setHighlightHandling, setLabel, getLabel, toWidgetEditable, findOptimalInsertionRange, viewToModelPositionOutsideModelElement, calculateResizeHostAncestorWidth, calculateResizeHostPercentageWidth } from './utils.js';
|
13
|
+
export { SizeView as _WidgetSizeView } from './widgetresize/sizeview.js';
|
14
|
+
export { TYPE_AROUND_SELECTION_ATTRIBUTE as _WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE, getClosestTypeAroundDomButton as _getClosestWidgetTypeAroundDomButton, getTypeAroundButtonPosition as _getWidgetTypeAroundButtonPosition, getClosestWidgetViewElement as _getClosestWidgetViewElement, getTypeAroundFakeCaretPosition as _getWidgetTypeAroundFakeCaretPosition } from './widgettypearound/utils.js';
|
13
15
|
import './augmentation.js';
|
@@ -10,6 +10,8 @@ import type { ResizerOptions } from '../widgetresize.js';
|
|
10
10
|
import { type ResizeState } from './resizerstate.js';
|
11
11
|
/**
|
12
12
|
* A view displaying the proposed new element size during the resizing.
|
13
|
+
*
|
14
|
+
* @internal
|
13
15
|
*/
|
14
16
|
export declare class SizeView extends View {
|
15
17
|
/**
|
@@ -6,6 +6,8 @@ import type { DocumentSelection, DomConverter, Element, Schema, Selection, ViewE
|
|
6
6
|
/**
|
7
7
|
* The name of the type around model selection attribute responsible for
|
8
8
|
* displaying a fake caret next to a selected widget.
|
9
|
+
*
|
10
|
+
* @internal
|
9
11
|
*/
|
10
12
|
export declare const TYPE_AROUND_SELECTION_ATTRIBUTE = "widget-type-around";
|
11
13
|
/**
|
@@ -14,6 +16,8 @@ export declare const TYPE_AROUND_SELECTION_ATTRIBUTE = "widget-type-around";
|
|
14
16
|
export declare function isTypeAroundWidget(viewElement: ViewElement | undefined, modelElement: Element, schema: Schema): boolean;
|
15
17
|
/**
|
16
18
|
* For the passed HTML element, this helper finds the closest widget type around button ancestor.
|
19
|
+
*
|
20
|
+
* @internal
|
17
21
|
*/
|
18
22
|
export declare function getClosestTypeAroundDomButton(domElement: HTMLElement): HTMLElement | null;
|
19
23
|
/**
|
@@ -21,11 +25,14 @@ export declare function getClosestTypeAroundDomButton(domElement: HTMLElement):
|
|
21
25
|
* the paragraph would be inserted into the content if, for instance, the button was
|
22
26
|
* clicked by the user.
|
23
27
|
*
|
28
|
+
* @internal
|
24
29
|
* @returns The position of the button.
|
25
30
|
*/
|
26
31
|
export declare function getTypeAroundButtonPosition(domElement: HTMLElement): 'before' | 'after';
|
27
32
|
/**
|
28
33
|
* For the passed HTML element, this helper returns the closest view widget ancestor.
|
34
|
+
*
|
35
|
+
* @internal
|
29
36
|
*/
|
30
37
|
export declare function getClosestWidgetViewElement(domElement: HTMLElement, domConverter: DomConverter): ViewElement;
|
31
38
|
/**
|
@@ -33,6 +40,7 @@ export declare function getClosestWidgetViewElement(domElement: HTMLElement, dom
|
|
33
40
|
*
|
34
41
|
* **Note**: If the fake caret is not currently displayed, `null` is returned.
|
35
42
|
*
|
43
|
+
* @internal
|
36
44
|
* @returns The position of the fake caret or `null` when none is present.
|
37
45
|
*/
|
38
46
|
export declare function getTypeAroundFakeCaretPosition(selection: Selection | DocumentSelection): 'before' | 'after' | null;
|
@@ -9,6 +9,8 @@ import { isWidget } from '../utils.js';
|
|
9
9
|
/**
|
10
10
|
* The name of the type around model selection attribute responsible for
|
11
11
|
* displaying a fake caret next to a selected widget.
|
12
|
+
*
|
13
|
+
* @internal
|
12
14
|
*/
|
13
15
|
export const TYPE_AROUND_SELECTION_ATTRIBUTE = 'widget-type-around';
|
14
16
|
/**
|
@@ -19,6 +21,8 @@ export function isTypeAroundWidget(viewElement, modelElement, schema) {
|
|
19
21
|
}
|
20
22
|
/**
|
21
23
|
* For the passed HTML element, this helper finds the closest widget type around button ancestor.
|
24
|
+
*
|
25
|
+
* @internal
|
22
26
|
*/
|
23
27
|
export function getClosestTypeAroundDomButton(domElement) {
|
24
28
|
return domElement.closest('.ck-widget__type-around__button');
|
@@ -28,6 +32,7 @@ export function getClosestTypeAroundDomButton(domElement) {
|
|
28
32
|
* the paragraph would be inserted into the content if, for instance, the button was
|
29
33
|
* clicked by the user.
|
30
34
|
*
|
35
|
+
* @internal
|
31
36
|
* @returns The position of the button.
|
32
37
|
*/
|
33
38
|
export function getTypeAroundButtonPosition(domElement) {
|
@@ -35,6 +40,8 @@ export function getTypeAroundButtonPosition(domElement) {
|
|
35
40
|
}
|
36
41
|
/**
|
37
42
|
* For the passed HTML element, this helper returns the closest view widget ancestor.
|
43
|
+
*
|
44
|
+
* @internal
|
38
45
|
*/
|
39
46
|
export function getClosestWidgetViewElement(domElement, domConverter) {
|
40
47
|
const widgetDomElement = domElement.closest('.ck-widget');
|
@@ -45,6 +52,7 @@ export function getClosestWidgetViewElement(domElement, domConverter) {
|
|
45
52
|
*
|
46
53
|
* **Note**: If the fake caret is not currently displayed, `null` is returned.
|
47
54
|
*
|
55
|
+
* @internal
|
48
56
|
* @returns The position of the fake caret or `null` when none is present.
|
49
57
|
*/
|
50
58
|
export function getTypeAroundFakeCaretPosition(selection) {
|