@ckeditor/ckeditor5-widget 38.2.0-alpha.0 → 38.2.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +7 -7
- package/src/augmentation.d.ts +1 -1
- package/src/index.d.ts +6 -6
- package/src/index.js +6 -6
- package/src/utils.js +2 -2
- package/src/widget.d.ts +1 -1
- package/src/widget.js +3 -3
- package/src/widgetresize/resizer.d.ts +2 -2
- package/src/widgetresize/resizer.js +2 -2
- package/src/widgetresize/resizerstate.d.ts +1 -1
- package/src/widgetresize/sizeview.d.ts +2 -2
- package/src/widgetresize.d.ts +1 -1
- package/src/widgetresize.js +1 -1
- package/src/widgettoolbarrepository.js +1 -1
- package/src/widgettypearound/utils.js +1 -1
- package/src/widgettypearound/widgettypearound.js +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-widget",
|
3
|
-
"version": "38.2.0-alpha.
|
3
|
+
"version": "38.2.0-alpha.1",
|
4
4
|
"description": "Widget API for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,12 +12,12 @@
|
|
12
12
|
"main": "src/index.js",
|
13
13
|
"type": "module",
|
14
14
|
"dependencies": {
|
15
|
-
"@ckeditor/ckeditor5-core": "38.2.0-alpha.
|
16
|
-
"@ckeditor/ckeditor5-engine": "38.2.0-alpha.
|
17
|
-
"@ckeditor/ckeditor5-enter": "38.2.0-alpha.
|
18
|
-
"@ckeditor/ckeditor5-ui": "38.2.0-alpha.
|
19
|
-
"@ckeditor/ckeditor5-utils": "38.2.0-alpha.
|
20
|
-
"@ckeditor/ckeditor5-typing": "38.2.0-alpha.
|
15
|
+
"@ckeditor/ckeditor5-core": "38.2.0-alpha.1",
|
16
|
+
"@ckeditor/ckeditor5-engine": "38.2.0-alpha.1",
|
17
|
+
"@ckeditor/ckeditor5-enter": "38.2.0-alpha.1",
|
18
|
+
"@ckeditor/ckeditor5-ui": "38.2.0-alpha.1",
|
19
|
+
"@ckeditor/ckeditor5-utils": "38.2.0-alpha.1",
|
20
|
+
"@ckeditor/ckeditor5-typing": "38.2.0-alpha.1",
|
21
21
|
"lodash-es": "^4.17.15"
|
22
22
|
},
|
23
23
|
"engines": {
|
package/src/augmentation.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
import type { Widget, WidgetResize, WidgetToolbarRepository, WidgetTypeAround } from './index';
|
5
|
+
import type { Widget, WidgetResize, WidgetToolbarRepository, WidgetTypeAround } from './index.js';
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
7
7
|
interface PluginsMap {
|
8
8
|
[Widget.pluginName]: Widget;
|
package/src/index.d.ts
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module widget
|
7
7
|
*/
|
8
|
-
export { default as Widget } from './widget';
|
9
|
-
export { default as WidgetToolbarRepository } from './widgettoolbarrepository';
|
10
|
-
export { default as WidgetResize } from './widgetresize';
|
11
|
-
export { default as WidgetTypeAround } from './widgettypearound/widgettypearound';
|
12
|
-
export * from './utils';
|
13
|
-
import './augmentation';
|
8
|
+
export { default as Widget } from './widget.js';
|
9
|
+
export { default as WidgetToolbarRepository } from './widgettoolbarrepository.js';
|
10
|
+
export { default as WidgetResize } from './widgetresize.js';
|
11
|
+
export { default as WidgetTypeAround } from './widgettypearound/widgettypearound.js';
|
12
|
+
export * from './utils.js';
|
13
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module widget
|
7
7
|
*/
|
8
|
-
export { default as Widget } from './widget';
|
9
|
-
export { default as WidgetToolbarRepository } from './widgettoolbarrepository';
|
10
|
-
export { default as WidgetResize } from './widgetresize';
|
11
|
-
export { default as WidgetTypeAround } from './widgettypearound/widgettypearound';
|
12
|
-
export * from './utils';
|
13
|
-
import './augmentation';
|
8
|
+
export { default as Widget } from './widget.js';
|
9
|
+
export { default as WidgetToolbarRepository } from './widgettoolbarrepository.js';
|
10
|
+
export { default as WidgetResize } from './widgetresize.js';
|
11
|
+
export { default as WidgetTypeAround } from './widgettypearound/widgettypearound.js';
|
12
|
+
export * from './utils.js';
|
13
|
+
import './augmentation.js';
|
package/src/utils.js
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
import { CKEditorError, toArray } from '@ckeditor/ckeditor5-utils';
|
9
9
|
import { findOptimalInsertionRange as engineFindOptimalInsertionRange } from '@ckeditor/ckeditor5-engine';
|
10
10
|
import { IconView } from '@ckeditor/ckeditor5-ui';
|
11
|
-
import HighlightStack from './highlightstack';
|
12
|
-
import { getTypeAroundFakeCaretPosition } from './widgettypearound/utils';
|
11
|
+
import HighlightStack from './highlightstack.js';
|
12
|
+
import { getTypeAroundFakeCaretPosition } from './widgettypearound/utils.js';
|
13
13
|
import dragHandleIcon from '../theme/icons/drag-handle.svg';
|
14
14
|
/**
|
15
15
|
* CSS class added to each widget element.
|
package/src/widget.d.ts
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
9
9
|
import { type Element, type Node } from '@ckeditor/ckeditor5-engine';
|
10
10
|
import { Delete } from '@ckeditor/ckeditor5-typing';
|
11
|
-
import WidgetTypeAround from './widgettypearound/widgettypearound';
|
11
|
+
import WidgetTypeAround from './widgettypearound/widgettypearound.js';
|
12
12
|
import '../theme/widget.css';
|
13
13
|
/**
|
14
14
|
* The widget plugin. It enables base support for widgets.
|
package/src/widget.js
CHANGED
@@ -9,9 +9,9 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { MouseObserver } from '@ckeditor/ckeditor5-engine';
|
10
10
|
import { Delete } from '@ckeditor/ckeditor5-typing';
|
11
11
|
import { env, getLocalizedArrowKeyCodeDirection } from '@ckeditor/ckeditor5-utils';
|
12
|
-
import WidgetTypeAround from './widgettypearound/widgettypearound';
|
13
|
-
import verticalNavigationHandler from './verticalnavigation';
|
14
|
-
import { getLabel, isWidget, WIDGET_SELECTED_CLASS_NAME } from './utils';
|
12
|
+
import WidgetTypeAround from './widgettypearound/widgettypearound.js';
|
13
|
+
import verticalNavigationHandler from './verticalnavigation.js';
|
14
|
+
import { getLabel, isWidget, WIDGET_SELECTED_CLASS_NAME } from './utils.js';
|
15
15
|
import '../theme/widget.css';
|
16
16
|
/**
|
17
17
|
* The widget plugin. It enables base support for widgets.
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
import { Rect, type DecoratedMethodEvent } from '@ckeditor/ckeditor5-utils';
|
6
|
-
import ResizeState from './resizerstate';
|
7
|
-
import type { ResizerOptions } from '../widgetresize';
|
6
|
+
import ResizeState from './resizerstate.js';
|
7
|
+
import type { ResizerOptions } from '../widgetresize.js';
|
8
8
|
declare const Resizer_base: {
|
9
9
|
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
10
10
|
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
@@ -7,8 +7,8 @@
|
|
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';
|
11
|
-
import SizeView from './sizeview';
|
10
|
+
import ResizeState from './resizerstate.js';
|
11
|
+
import SizeView from './sizeview.js';
|
12
12
|
/**
|
13
13
|
* Represents a resizer for a single resizable object.
|
14
14
|
*/
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
import type { ResizerOptions } from '../widgetresize';
|
5
|
+
import type { ResizerOptions } from '../widgetresize.js';
|
6
6
|
declare const ResizeState_base: {
|
7
7
|
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
8
8
|
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
@@ -6,8 +6,8 @@
|
|
6
6
|
* @module widget/widgetresize/sizeview
|
7
7
|
*/
|
8
8
|
import { View } from '@ckeditor/ckeditor5-ui';
|
9
|
-
import type { ResizerOptions } from '../widgetresize';
|
10
|
-
import type ResizeState from './resizerstate';
|
9
|
+
import type { ResizerOptions } from '../widgetresize.js';
|
10
|
+
import type ResizeState from './resizerstate.js';
|
11
11
|
/**
|
12
12
|
* A view displaying the proposed new element size during the resizing.
|
13
13
|
*/
|
package/src/widgetresize.d.ts
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
/**
|
6
6
|
* @module widget/widgetresize
|
7
7
|
*/
|
8
|
-
import Resizer from './widgetresize/resizer';
|
8
|
+
import Resizer from './widgetresize/resizer.js';
|
9
9
|
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
10
10
|
import { type Element, type ViewContainerElement } from '@ckeditor/ckeditor5-engine';
|
11
11
|
import '../theme/widgetresize.css';
|
package/src/widgetresize.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
/**
|
6
6
|
* @module widget/widgetresize
|
7
7
|
*/
|
8
|
-
import Resizer from './widgetresize/resizer';
|
8
|
+
import Resizer from './widgetresize/resizer.js';
|
9
9
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
10
10
|
import { MouseObserver } from '@ckeditor/ckeditor5-engine';
|
11
11
|
import { DomEmitterMixin, global } from '@ckeditor/ckeditor5-utils';
|
@@ -8,7 +8,7 @@
|
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
9
9
|
import { BalloonPanelView, ContextualBalloon, ToolbarView } from '@ckeditor/ckeditor5-ui';
|
10
10
|
import { CKEditorError, logWarning } from '@ckeditor/ckeditor5-utils';
|
11
|
-
import { isWidget } from './utils';
|
11
|
+
import { isWidget } from './utils.js';
|
12
12
|
/**
|
13
13
|
* Widget toolbar repository plugin. A central point for registering widget toolbars. This plugin handles the whole
|
14
14
|
* toolbar rendering process and exposes a concise API.
|
@@ -5,7 +5,7 @@
|
|
5
5
|
/**
|
6
6
|
* @module widget/widgettypearound/utils
|
7
7
|
*/
|
8
|
-
import { isWidget } from '../utils';
|
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.
|
@@ -11,8 +11,8 @@ import { Template } from '@ckeditor/ckeditor5-ui';
|
|
11
11
|
import { Enter } from '@ckeditor/ckeditor5-enter';
|
12
12
|
import { Delete } from '@ckeditor/ckeditor5-typing';
|
13
13
|
import { env, isForwardArrowKeyCode } from '@ckeditor/ckeditor5-utils';
|
14
|
-
import { isTypeAroundWidget, getClosestTypeAroundDomButton, getTypeAroundButtonPosition, getClosestWidgetViewElement, getTypeAroundFakeCaretPosition, TYPE_AROUND_SELECTION_ATTRIBUTE } from './utils';
|
15
|
-
import { isWidget } from '../utils';
|
14
|
+
import { isTypeAroundWidget, getClosestTypeAroundDomButton, getTypeAroundButtonPosition, getClosestWidgetViewElement, getTypeAroundFakeCaretPosition, TYPE_AROUND_SELECTION_ATTRIBUTE } from './utils.js';
|
15
|
+
import { isWidget } from '../utils.js';
|
16
16
|
import returnIcon from '../../theme/icons/return-arrow.svg';
|
17
17
|
import '../../theme/widgettypearound.css';
|
18
18
|
const POSSIBLE_INSERTION_POSITIONS = ['before', 'after'];
|