@ckeditor/ckeditor5-widget 38.2.0-alpha.1 → 39.0.1
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/README.md +0 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/sq.po +33 -0
- package/package.json +8 -9
- 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/README.md
CHANGED
@@ -4,7 +4,6 @@ CKEditor 5 widget API
|
|
4
4
|
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget)
|
5
5
|
[](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
6
6
|
[](https://app.travis-ci.com/github/ckeditor/ckeditor5)
|
7
|
-

|
8
7
|
|
9
8
|
This package implements the widget API for CKEditor 5.
|
10
9
|
|
package/lang/translations/gl.po
CHANGED
@@ -30,4 +30,4 @@ msgstr "Inserir parágrafo após o bloque"
|
|
30
30
|
|
31
31
|
msgctxt "Information to be read by screen reader about shortcuts to type around a widget"
|
32
32
|
msgid "Press Enter to type after or press Shift + Enter to type before the widget"
|
33
|
-
msgstr ""
|
33
|
+
msgstr "Prema Intro para escribir após ou prema Maiús + Intro para escribir antes do trebello"
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n"
|
16
|
+
"Language: sq\n"
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18
|
+
|
19
|
+
msgctxt "The label used by assistive technologies describing a toolbar attached to a widget."
|
20
|
+
msgid "Widget toolbar"
|
21
|
+
msgstr "Kokështrirja e shtesës"
|
22
|
+
|
23
|
+
msgctxt "The title displayed when a mouse is over a button that inserts a paragraph before a block."
|
24
|
+
msgid "Insert paragraph before block"
|
25
|
+
msgstr ""
|
26
|
+
|
27
|
+
msgctxt "The title displayed when a mouse is over a button that inserts a paragraph after a block."
|
28
|
+
msgid "Insert paragraph after block"
|
29
|
+
msgstr ""
|
30
|
+
|
31
|
+
msgctxt "Information to be read by screen reader about shortcuts to type around a widget"
|
32
|
+
msgid "Press Enter to type after or press Shift + Enter to type before the widget"
|
33
|
+
msgstr ""
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-widget",
|
3
|
-
"version": "
|
3
|
+
"version": "39.0.1",
|
4
4
|
"description": "Widget API for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -10,15 +10,14 @@
|
|
10
10
|
"ckeditor5-dll"
|
11
11
|
],
|
12
12
|
"main": "src/index.js",
|
13
|
-
"type": "module",
|
14
13
|
"dependencies": {
|
15
|
-
"@ckeditor/ckeditor5-core": "
|
16
|
-
"@ckeditor/ckeditor5-engine": "
|
17
|
-
"@ckeditor/ckeditor5-enter": "
|
18
|
-
"@ckeditor/ckeditor5-ui": "
|
19
|
-
"@ckeditor/ckeditor5-utils": "
|
20
|
-
"@ckeditor/ckeditor5-typing": "
|
21
|
-
"lodash-es": "
|
14
|
+
"@ckeditor/ckeditor5-core": "39.0.1",
|
15
|
+
"@ckeditor/ckeditor5-engine": "39.0.1",
|
16
|
+
"@ckeditor/ckeditor5-enter": "39.0.1",
|
17
|
+
"@ckeditor/ckeditor5-ui": "39.0.1",
|
18
|
+
"@ckeditor/ckeditor5-utils": "39.0.1",
|
19
|
+
"@ckeditor/ckeditor5-typing": "39.0.1",
|
20
|
+
"lodash-es": "4.17.21"
|
22
21
|
},
|
23
22
|
"engines": {
|
24
23
|
"node": ">=16.0.0",
|
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';
|
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';
|
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';
|
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';
|
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';
|
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';
|
12
|
+
import { getTypeAroundFakeCaretPosition } from './widgettypearound/utils';
|
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';
|
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';
|
13
|
+
import verticalNavigationHandler from './verticalnavigation';
|
14
|
+
import { getLabel, isWidget, WIDGET_SELECTED_CLASS_NAME } from './utils';
|
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';
|
7
|
+
import type { ResizerOptions } from '../widgetresize';
|
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';
|
11
|
+
import SizeView from './sizeview';
|
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';
|
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';
|
10
|
+
import type ResizeState from './resizerstate';
|
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';
|
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';
|
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';
|
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';
|
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';
|
15
|
+
import { isWidget } from '../utils';
|
16
16
|
import returnIcon from '../../theme/icons/return-arrow.svg';
|
17
17
|
import '../../theme/widgettypearound.css';
|
18
18
|
const POSSIBLE_INSERTION_POSITIONS = ['before', 'after'];
|