@ckeditor/ckeditor5-widget 0.0.0-nightly-20250617.0 → 0.0.0-nightly-20250619.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-widget",
3
- "version": "0.0.0-nightly-20250617.0",
3
+ "version": "0.0.0-nightly-20250619.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-20250617.0",
16
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250617.0",
17
- "@ckeditor/ckeditor5-enter": "0.0.0-nightly-20250617.0",
18
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250617.0",
19
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250617.0",
20
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250617.0",
21
- "@ckeditor/ckeditor5-typing": "0.0.0-nightly-20250617.0",
15
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250619.0",
16
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250619.0",
17
+ "@ckeditor/ckeditor5-enter": "0.0.0-nightly-20250619.0",
18
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250619.0",
19
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250619.0",
20
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250619.0",
21
+ "@ckeditor/ckeditor5-typing": "0.0.0-nightly-20250619.0",
22
22
  "es-toolkit": "1.38.0"
23
23
  },
24
24
  "author": "CKSource (http://cksource.com/)",
package/src/index.d.ts CHANGED
@@ -12,6 +12,7 @@ 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
13
  export { WidgetHighlightStack, type WidgetHighlightStackChangeEvent, type WidgetHighlightStackChangeEventData } from './highlightstack.js';
14
14
  export { verticalWidgetNavigationHandler } from './verticalnavigation.js';
15
+ export { WidgetResizeState } from './widgetresize/resizerstate.js';
15
16
  export { WidgetResizer, type WidgetResizerBeginEvent, type WidgetResizerCancelEvent, type WidgetResizerCommitEvent, type WidgetResizerUpdateSizeEvent } from './widgetresize/resizer.js';
16
17
  export { SizeView as _WidgetSizeView } from './widgetresize/sizeview.js';
17
18
  export { TYPE_AROUND_SELECTION_ATTRIBUTE as _WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE, getClosestTypeAroundDomButton as _getClosestWidgetTypeAroundDomButton, getTypeAroundButtonPosition as _getWidgetTypeAroundButtonPosition, getClosestWidgetViewElement as _getClosestWidgetViewElement, getTypeAroundFakeCaretPosition as _getWidgetTypeAroundFakeCaretPosition, isTypeAroundWidget } from './widgettypearound/utils.js';
package/src/index.js CHANGED
@@ -12,6 +12,7 @@ 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
13
  export { WidgetHighlightStack } from './highlightstack.js';
14
14
  export { verticalWidgetNavigationHandler } from './verticalnavigation.js';
15
+ export { WidgetResizeState } from './widgetresize/resizerstate.js';
15
16
  export { WidgetResizer } from './widgetresize/resizer.js';
16
17
  export { SizeView as _WidgetSizeView } from './widgetresize/sizeview.js';
17
18
  export { TYPE_AROUND_SELECTION_ATTRIBUTE as _WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE, getClosestTypeAroundDomButton as _getClosestWidgetTypeAroundDomButton, getTypeAroundButtonPosition as _getWidgetTypeAroundButtonPosition, getClosestWidgetViewElement as _getClosestWidgetViewElement, getTypeAroundFakeCaretPosition as _getWidgetTypeAroundFakeCaretPosition, isTypeAroundWidget } from './widgettypearound/utils.js';
@@ -3,7 +3,7 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { Rect, type DecoratedMethodEvent } from '@ckeditor/ckeditor5-utils';
6
- import { ResizeState } from './resizerstate.js';
6
+ import { WidgetResizeState } from './resizerstate.js';
7
7
  import type { WidgetResizerOptions } from '../widgetresize.js';
8
8
  declare const WidgetResizer_base: {
9
9
  new (): import("@ckeditor/ckeditor5-utils").Observable;
@@ -63,7 +63,7 @@ export declare class WidgetResizer extends /* #__PURE__ */ WidgetResizer_base {
63
63
  *
64
64
  * Note that a new state is created for each resize transaction.
65
65
  */
66
- get state(): ResizeState;
66
+ get state(): WidgetResizeState;
67
67
  /**
68
68
  * Makes resizer visible in the UI.
69
69
  */
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Template } from '@ckeditor/ckeditor5-ui';
9
9
  import { Rect, ObservableMixin, compareArrays } from '@ckeditor/ckeditor5-utils';
10
- import { ResizeState } from './resizerstate.js';
10
+ import { WidgetResizeState } from './resizerstate.js';
11
11
  import { SizeView } from './sizeview.js';
12
12
  /**
13
13
  * Represents a resizer for a single resizable object.
@@ -127,7 +127,7 @@ export class WidgetResizer extends /* #__PURE__ */ ObservableMixin() {
127
127
  * @param domResizeHandle Clicked handle.
128
128
  */
129
129
  begin(domResizeHandle) {
130
- this._state = new ResizeState(this._options);
130
+ this._state = new WidgetResizeState(this._options);
131
131
  this._sizeView._bindToState(this._options, this.state);
132
132
  this._initialViewWidth = this._options.viewElement.getStyle('width');
133
133
  this.state.begin(domResizeHandle, this._getHandleHost(), this._getResizeHost());
@@ -3,14 +3,14 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { WidgetResizerOptions } from '../widgetresize.js';
6
- declare const ResizeState_base: {
6
+ declare const WidgetResizeState_base: {
7
7
  new (): import("@ckeditor/ckeditor5-utils").Observable;
8
8
  prototype: import("@ckeditor/ckeditor5-utils").Observable;
9
9
  };
10
10
  /**
11
11
  * Stores the internal state of a single resizable object.
12
12
  */
13
- export declare class ResizeState extends /* #__PURE__ */ ResizeState_base {
13
+ export declare class WidgetResizeState extends /* #__PURE__ */ WidgetResizeState_base {
14
14
  /**
15
15
  * The position of the handle that initiated the resizing. E.g. `"top-left"`, `"bottom-right"` etc. or `null`
16
16
  * if unknown.
@@ -10,7 +10,7 @@ import { calculateResizeHostPercentageWidth } from '../utils.js';
10
10
  /**
11
11
  * Stores the internal state of a single resizable object.
12
12
  */
13
- export class ResizeState extends /* #__PURE__ */ ObservableMixin() {
13
+ export class WidgetResizeState extends /* #__PURE__ */ ObservableMixin() {
14
14
  /**
15
15
  * The reference point of the resizer where the dragging started. It is used to measure the distance the user cursor
16
16
  * traveled, so how much the image should be enlarged.
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { View } from '@ckeditor/ckeditor5-ui';
9
9
  import type { WidgetResizerOptions } from '../widgetresize.js';
10
- import { type ResizeState } from './resizerstate.js';
10
+ import { type WidgetResizeState } from './resizerstate.js';
11
11
  /**
12
12
  * A view displaying the proposed new element size during the resizing.
13
13
  *
@@ -47,7 +47,7 @@ export declare class SizeView extends View {
47
47
  * @param options An object defining the resizer options, used for setting the proper size label.
48
48
  * @param resizeState The `ResizeState` class instance, used for keeping the `SizeView` state up to date.
49
49
  */
50
- _bindToState(options: WidgetResizerOptions, resizeState: ResizeState): void;
50
+ _bindToState(options: WidgetResizerOptions, resizeState: WidgetResizeState): void;
51
51
  /**
52
52
  * A method used for cleaning up. It removes the bindings and hides the view.
53
53
  *