@ckeditor/ckeditor5-widget 40.2.0 → 41.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +5 -5
- package/LICENSE.md +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +8 -7
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/highlightstack.d.ts +1 -1
- package/src/highlightstack.js +1 -1
- package/src/index.d.ts +7 -7
- package/src/index.js +7 -7
- package/src/utils.d.ts +1 -1
- package/src/utils.js +4 -5
- package/src/verticalnavigation.d.ts +1 -1
- package/src/verticalnavigation.js +1 -1
- package/src/widget.d.ts +2 -2
- package/src/widget.js +4 -4
- package/src/widgetresize/resizer.d.ts +3 -3
- package/src/widgetresize/resizer.js +3 -3
- package/src/widgetresize/resizerstate.d.ts +2 -2
- package/src/widgetresize/resizerstate.js +1 -1
- package/src/widgetresize/sizeview.d.ts +3 -3
- package/src/widgetresize/sizeview.js +1 -1
- package/src/widgetresize.d.ts +2 -2
- package/src/widgetresize.js +2 -2
- package/src/widgettoolbarrepository.d.ts +1 -1
- package/src/widgettoolbarrepository.js +2 -2
- package/src/widgettypearound/utils.d.ts +1 -1
- package/src/widgettypearound/utils.js +2 -2
- package/src/widgettypearound/widgettypearound.d.ts +1 -1
- package/src/widgettypearound/widgettypearound.js +3 -3
- package/theme/widget.css +1 -1
- package/theme/widgetresize.css +1 -1
- package/theme/widgettypearound.css +1 -1
package/CHANGELOG.md
CHANGED
@@ -126,7 +126,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
126
126
|
|
127
127
|
### Other changes
|
128
128
|
|
129
|
-
* Introduce support and
|
129
|
+
* Introduce support and utilities for creating inline widgets. Closes [[ckeditor/ckeditor5#1096](https://github.com/ckeditor/ckeditor5/issues/1096)](https://github.com/ckeditor/ckeditor5/issues/1096). ([38fa159](https://github.com/ckeditor/ckeditor5-widget/commit/38fa159))
|
130
130
|
* Renamed the `.ck-widget_selectable` class to `.ck-widget_with-selection-handler` for better semantics. Closes [#66](https://github.com/ckeditor/ckeditor5-widget/issues/66). ([178ad5f](https://github.com/ckeditor/ckeditor5-widget/commit/178ad5f))
|
131
131
|
|
132
132
|
### BREAKING CHANGES
|
@@ -163,7 +163,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
163
163
|
|
164
164
|
### Other changes
|
165
165
|
|
166
|
-
* Do not set the `contenteditable` property for widgets and their nested
|
166
|
+
* Do not set the `contenteditable` property for widgets and their nested editable elements in Edge due to an awful instability which it causes in this browser. Closes [ckeditor/ckeditor5#1079](https://github.com/ckeditor/ckeditor5/issues/1079). Closes [ckeditor/ckeditor5#1067](https://github.com/ckeditor/ckeditor5/issues/1067). ([ee530b1](https://github.com/ckeditor/ckeditor5-widget/commit/ee530b1))
|
167
167
|
|
168
168
|
|
169
169
|
## [10.1.0](https://github.com/ckeditor/ckeditor5-widget/compare/v10.0.0...v10.1.0) (June 21, 2018)
|
@@ -193,7 +193,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
193
193
|
|
194
194
|
### Bug fixes
|
195
195
|
|
196
|
-
* Replaced nested editable's `.ck-editable` class with `.ck-editor__editable` + `.ck-editor__nested-editable` to stop Grammarly throwing errors. Closes [ckeditor/ckeditor5#578](https://github.com/ckeditor/ckeditor5/issues/578). ([051b326](https://github.com/ckeditor/ckeditor5-widget/commit/051b326))
|
196
|
+
* Replaced nested editable element's `.ck-editable` class with `.ck-editor__editable` + `.ck-editor__nested-editable` to stop Grammarly throwing errors. Closes [ckeditor/ckeditor5#578](https://github.com/ckeditor/ckeditor5/issues/578). ([051b326](https://github.com/ckeditor/ckeditor5-widget/commit/051b326))
|
197
197
|
|
198
198
|
### Other changes
|
199
199
|
|
@@ -237,11 +237,11 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
237
237
|
|
238
238
|
### Bug fixes
|
239
239
|
|
240
|
-
* Added initial contenteditable state for editable widget. Closes [#9](https://github.com/ckeditor/ckeditor5-widget/issues/9). ([c6321ff](https://github.com/ckeditor/ckeditor5-widget/commit/c6321ff))
|
240
|
+
* Added initial `contenteditable` state for editable widget. Closes [#9](https://github.com/ckeditor/ckeditor5-widget/issues/9). ([c6321ff](https://github.com/ckeditor/ckeditor5-widget/commit/c6321ff))
|
241
241
|
|
242
242
|
### Features
|
243
243
|
|
244
|
-
* <kbd>Ctrl</kbd>+<kbd>A</kbd> in a nested editable should select nested editable's content. Closes [#13](https://github.com/ckeditor/ckeditor5-widget/issues/13). ([35a8aff](https://github.com/ckeditor/ckeditor5-widget/commit/35a8aff))
|
244
|
+
* <kbd>Ctrl</kbd>+<kbd>A</kbd> in a nested editable should select the nested editable element's content. Closes [#13](https://github.com/ckeditor/ckeditor5-widget/issues/13). ([35a8aff](https://github.com/ckeditor/ckeditor5-widget/commit/35a8aff))
|
245
245
|
|
246
246
|
### Other changes
|
247
247
|
|
package/LICENSE.md
CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
|
|
2
2
|
==========================
|
3
3
|
|
4
4
|
**CKEditor 5 widget API** – https://github.com/ckeditor/ckeditor5-image <br>
|
5
|
-
Copyright (c) 2003–
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
6
6
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
8
8
|
|
package/lang/translations/ar.po
CHANGED
package/lang/translations/az.po
CHANGED
package/lang/translations/bg.po
CHANGED
package/lang/translations/bn.po
CHANGED
package/lang/translations/ca.po
CHANGED
package/lang/translations/cs.po
CHANGED
package/lang/translations/da.po
CHANGED
package/lang/translations/de.po
CHANGED
package/lang/translations/el.po
CHANGED
package/lang/translations/en.po
CHANGED
package/lang/translations/es.po
CHANGED
package/lang/translations/et.po
CHANGED
package/lang/translations/fa.po
CHANGED
package/lang/translations/fi.po
CHANGED
package/lang/translations/fr.po
CHANGED
package/lang/translations/gl.po
CHANGED
package/lang/translations/he.po
CHANGED
package/lang/translations/hi.po
CHANGED
package/lang/translations/hr.po
CHANGED
package/lang/translations/hu.po
CHANGED
package/lang/translations/id.po
CHANGED
package/lang/translations/it.po
CHANGED
package/lang/translations/ja.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/ku.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sq.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-widget",
|
3
|
-
"version": "
|
3
|
+
"version": "41.0.0",
|
4
4
|
"description": "Widget API for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -9,14 +9,15 @@
|
|
9
9
|
"ckeditor5-lib",
|
10
10
|
"ckeditor5-dll"
|
11
11
|
],
|
12
|
+
"type": "module",
|
12
13
|
"main": "src/index.js",
|
13
14
|
"dependencies": {
|
14
|
-
"@ckeditor/ckeditor5-core": "
|
15
|
-
"@ckeditor/ckeditor5-engine": "
|
16
|
-
"@ckeditor/ckeditor5-enter": "
|
17
|
-
"@ckeditor/ckeditor5-ui": "
|
18
|
-
"@ckeditor/ckeditor5-utils": "
|
19
|
-
"@ckeditor/ckeditor5-typing": "
|
15
|
+
"@ckeditor/ckeditor5-core": "41.0.0",
|
16
|
+
"@ckeditor/ckeditor5-engine": "41.0.0",
|
17
|
+
"@ckeditor/ckeditor5-enter": "41.0.0",
|
18
|
+
"@ckeditor/ckeditor5-ui": "41.0.0",
|
19
|
+
"@ckeditor/ckeditor5-utils": "41.0.0",
|
20
|
+
"@ckeditor/ckeditor5-typing": "41.0.0",
|
20
21
|
"lodash-es": "4.17.21"
|
21
22
|
},
|
22
23
|
"author": "CKSource (http://cksource.com/)",
|
package/src/augmentation.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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/augmentation.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
export {};
|
package/src/highlightstack.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
import type { DowncastWriter, HighlightDescriptor } from '@ckeditor/ckeditor5-engine';
|
package/src/highlightstack.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
package/src/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
package/src/utils.js
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
6
6
|
* @module widget/utils
|
7
7
|
*/
|
8
8
|
import { CKEditorError, toArray } from '@ckeditor/ckeditor5-utils';
|
9
|
-
import { findOptimalInsertionRange as engineFindOptimalInsertionRange } from '@ckeditor/ckeditor5-engine';
|
10
9
|
import { IconView } from '@ckeditor/ckeditor5-ui';
|
11
|
-
import HighlightStack from './highlightstack';
|
12
|
-
import { getTypeAroundFakeCaretPosition } from './widgettypearound/utils';
|
10
|
+
import HighlightStack from './highlightstack.js';
|
11
|
+
import { getTypeAroundFakeCaretPosition } from './widgettypearound/utils.js';
|
13
12
|
import dragHandleIcon from '../theme/icons/drag-handle.svg';
|
14
13
|
/**
|
15
14
|
* CSS class added to each widget element.
|
@@ -259,7 +258,7 @@ export function findOptimalInsertionRange(selection, model) {
|
|
259
258
|
return model.createRange(model.createPositionAt(selectedElement, typeAroundFakeCaretPosition));
|
260
259
|
}
|
261
260
|
}
|
262
|
-
return
|
261
|
+
return model.schema.findOptimalInsertionRange(selection);
|
263
262
|
}
|
264
263
|
/**
|
265
264
|
* A util to be used in order to map view positions to correct model positions when implementing a widget
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
package/src/widget.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
@@ -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
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
@@ -9,9 +9,9 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { MouseObserver, TreeWalker } 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.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
@@ -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
|
*/
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
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
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
package/src/widgetresize.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
@@ -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.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
import type { DocumentSelection, DomConverter, Element, Schema, Selection, ViewElement } from '@ckeditor/ckeditor5-engine';
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/* global DOMParser */
|
@@ -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'];
|
package/theme/widget.css
CHANGED
package/theme/widgetresize.css
CHANGED