@ckeditor/ckeditor5-mention 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231216.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +2 -2
- package/package.json +3 -2
- package/src/augmentation.d.ts +1 -1
- package/src/index.d.ts +6 -6
- package/src/index.js +4 -4
- package/src/mention.d.ts +4 -4
- package/src/mention.js +3 -3
- package/src/mentioncommand.d.ts +2 -2
- package/src/mentioncommand.js +3 -3
- package/src/mentionediting.d.ts +3 -3
- package/src/mentionediting.js +3 -3
- package/src/mentionui.d.ts +2 -2
- package/src/mentionui.js +7 -7
- package/src/ui/domwrapperview.d.ts +2 -2
- package/src/ui/domwrapperview.js +1 -1
- package/src/ui/mentionlistitemview.d.ts +2 -2
- package/src/ui/mentionlistitemview.js +1 -1
- package/src/ui/mentionsview.d.ts +3 -3
- package/src/ui/mentionsview.js +2 -2
package/CHANGELOG.md
CHANGED
@@ -62,7 +62,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
62
62
|
|
63
63
|
* It should be possible to type before a mention which is at the beginning of a block. Closes [#77](https://github.com/ckeditor/ckeditor5-mention/issues/77). ([946e762](https://github.com/ckeditor/ckeditor5-mention/commit/946e762))
|
64
64
|
* Mentions should work when different UTF character classes are used in the feed configuration. Closes [#38](https://github.com/ckeditor/ckeditor5-mention/issues/38). ([764f099](https://github.com/ckeditor/ckeditor5-mention/commit/764f099))
|
65
|
-
* Partial mentions should not be downcasted (
|
65
|
+
* Partial mentions should not be downcasted (for example, copied to clipboard). Closes [#24](https://github.com/ckeditor/ckeditor5-mention/issues/24). ([8956b1f](https://github.com/ckeditor/ckeditor5-mention/commit/8956b1f))
|
66
66
|
|
67
67
|
### Other changes
|
68
68
|
|
@@ -77,7 +77,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
77
77
|
|
78
78
|
### Bug fixes
|
79
79
|
|
80
|
-
* A mention can now be preceded by characters such as brackets, quotes, soft
|
80
|
+
* A mention can now be preceded by characters such as brackets, quotes, soft breaks, etc. Closes [#44](https://github.com/ckeditor/ckeditor5-mention/issues/44). ([86262d1](https://github.com/ckeditor/ckeditor5-mention/commit/86262d1))
|
81
81
|
* The mention plugin should not throw errors when another `ContextualBalloon` is already visible. Closes [#67](https://github.com/ckeditor/ckeditor5-mention/issues/67). ([de9ee71](https://github.com/ckeditor/ckeditor5-mention/commit/de9ee71))
|
82
82
|
* The mention panel should have precedence over all other panels. Closes [#74](https://github.com/ckeditor/ckeditor5-mention/issues/74). ([3e8a84c](https://github.com/ckeditor/ckeditor5-mention/commit/3e8a84c))
|
83
83
|
* The Mention UI will use `ContextualBalloon` plugin to display to prevent balloon collisions with other features. Closes [#27](https://github.com/ckeditor/ckeditor5-mention/issues/27). ([9ae7f30](https://github.com/ckeditor/ckeditor5-mention/commit/9ae7f30))
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-mention",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20231216.0",
|
4
4
|
"description": "Mention feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -10,9 +10,10 @@
|
|
10
10
|
"ckeditor5-plugin",
|
11
11
|
"ckeditor5-dll"
|
12
12
|
],
|
13
|
+
"type": "module",
|
13
14
|
"main": "src/index.js",
|
14
15
|
"dependencies": {
|
15
|
-
"ckeditor5": "0.0.0-nightly-
|
16
|
+
"ckeditor5": "0.0.0-nightly-20231216.0",
|
16
17
|
"lodash-es": "4.17.21"
|
17
18
|
},
|
18
19
|
"author": "CKSource (http://cksource.com/)",
|
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 { MentionConfig, Mention, MentionEditing, MentionUI, MentionCommand } from './index';
|
5
|
+
import type { MentionConfig, Mention, MentionEditing, MentionUI, MentionCommand } from './index.js';
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
7
7
|
interface EditorConfig {
|
8
8
|
/**
|
package/src/index.d.ts
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention
|
7
7
|
*/
|
8
|
-
export { default as Mention } from './mention';
|
9
|
-
export { default as MentionEditing } from './mentionediting';
|
10
|
-
export { default as MentionUI } from './mentionui';
|
11
|
-
export type { MentionConfig, MentionFeed, ItemRenderer } from './mentionconfig';
|
12
|
-
export type { default as MentionCommand } from './mentioncommand';
|
13
|
-
import './augmentation';
|
8
|
+
export { default as Mention } from './mention.js';
|
9
|
+
export { default as MentionEditing } from './mentionediting.js';
|
10
|
+
export { default as MentionUI } from './mentionui.js';
|
11
|
+
export type { MentionConfig, MentionFeed, ItemRenderer } from './mentionconfig.js';
|
12
|
+
export type { default as MentionCommand } from './mentioncommand.js';
|
13
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention
|
7
7
|
*/
|
8
|
-
export { default as Mention } from './mention';
|
9
|
-
export { default as MentionEditing } from './mentionediting';
|
10
|
-
export { default as MentionUI } from './mentionui';
|
11
|
-
import './augmentation';
|
8
|
+
export { default as Mention } from './mention.js';
|
9
|
+
export { default as MentionEditing } from './mentionediting.js';
|
10
|
+
export { default as MentionUI } from './mentionui.js';
|
11
|
+
import './augmentation.js';
|
package/src/mention.d.ts
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/mention
|
7
7
|
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import type { Element } from 'ckeditor5/src/engine';
|
10
|
-
import MentionEditing from './mentionediting';
|
11
|
-
import MentionUI from './mentionui';
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
10
|
+
import MentionEditing from './mentionediting.js';
|
11
|
+
import MentionUI from './mentionui.js';
|
12
12
|
import '../theme/mention.css';
|
13
13
|
/**
|
14
14
|
* The mention plugin.
|
package/src/mention.js
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/mention
|
7
7
|
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import MentionEditing, { _toMentionAttribute } from './mentionediting';
|
10
|
-
import MentionUI from './mentionui';
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
+
import MentionEditing, { _toMentionAttribute } from './mentionediting.js';
|
10
|
+
import MentionUI from './mentionui.js';
|
11
11
|
import '../theme/mention.css';
|
12
12
|
/**
|
13
13
|
* The mention plugin.
|
package/src/mentioncommand.d.ts
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/mentioncommand
|
7
7
|
*/
|
8
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
9
|
-
import type { Range } from 'ckeditor5/src/engine';
|
8
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
9
|
+
import type { Range } from 'ckeditor5/src/engine.js';
|
10
10
|
/**
|
11
11
|
* The mention command.
|
12
12
|
*
|
package/src/mentioncommand.js
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/mentioncommand
|
7
7
|
*/
|
8
|
-
import { Command } from 'ckeditor5/src/core';
|
9
|
-
import { CKEditorError, toMap } from 'ckeditor5/src/utils';
|
10
|
-
import { _addMentionAttributes } from './mentionediting';
|
8
|
+
import { Command } from 'ckeditor5/src/core.js';
|
9
|
+
import { CKEditorError, toMap } from 'ckeditor5/src/utils.js';
|
10
|
+
import { _addMentionAttributes } from './mentionediting.js';
|
11
11
|
/**
|
12
12
|
* The mention command.
|
13
13
|
*
|
package/src/mentionediting.d.ts
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/mentionediting
|
7
7
|
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import type { Element } from 'ckeditor5/src/engine';
|
10
|
-
import type { MentionAttribute } from './mention';
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
10
|
+
import type { MentionAttribute } from './mention.js';
|
11
11
|
/**
|
12
12
|
* The mention editing feature.
|
13
13
|
*
|
package/src/mentionediting.js
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/mentionediting
|
7
7
|
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import { uid } from 'ckeditor5/src/utils';
|
10
|
-
import MentionCommand from './mentioncommand';
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
+
import { uid } from 'ckeditor5/src/utils.js';
|
10
|
+
import MentionCommand from './mentioncommand.js';
|
11
11
|
/**
|
12
12
|
* The mention editing feature.
|
13
13
|
*
|
package/src/mentionui.d.ts
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/mentionui
|
7
7
|
*/
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
9
|
-
import { ContextualBalloon } from 'ckeditor5/src/ui';
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
9
|
+
import { ContextualBalloon } from 'ckeditor5/src/ui.js';
|
10
10
|
/**
|
11
11
|
* The mention UI feature.
|
12
12
|
*/
|
package/src/mentionui.js
CHANGED
@@ -5,14 +5,14 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/mentionui
|
7
7
|
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import { ButtonView, ContextualBalloon, clickOutsideHandler } from 'ckeditor5/src/ui';
|
10
|
-
import { CKEditorError, Collection, Rect, env, keyCodes, logWarning } from 'ckeditor5/src/utils';
|
11
|
-
import { TextWatcher } from 'ckeditor5/src/typing';
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
+
import { ButtonView, ContextualBalloon, clickOutsideHandler } from 'ckeditor5/src/ui.js';
|
10
|
+
import { CKEditorError, Collection, Rect, env, keyCodes, logWarning } from 'ckeditor5/src/utils.js';
|
11
|
+
import { TextWatcher } from 'ckeditor5/src/typing.js';
|
12
12
|
import { debounce } from 'lodash-es';
|
13
|
-
import MentionsView from './ui/mentionsview';
|
14
|
-
import DomWrapperView from './ui/domwrapperview';
|
15
|
-
import MentionListItemView from './ui/mentionlistitemview';
|
13
|
+
import MentionsView from './ui/mentionsview.js';
|
14
|
+
import DomWrapperView from './ui/domwrapperview.js';
|
15
|
+
import MentionListItemView from './ui/mentionlistitemview.js';
|
16
16
|
const VERTICAL_SPACING = 3;
|
17
17
|
// The key codes that mention UI handles when it is open (without commit keys).
|
18
18
|
const defaultHandledKeyCodes = [
|
@@ -5,8 +5,8 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/ui/domwrapperview
|
7
7
|
*/
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
10
10
|
/**
|
11
11
|
* This class wraps DOM element as a CKEditor5 UI View.
|
12
12
|
*
|
package/src/ui/domwrapperview.js
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/ui/mentionlistitemview
|
7
7
|
*/
|
8
|
-
import { ListItemView } from 'ckeditor5/src/ui';
|
9
|
-
import type { MentionFeedItem } from '../mentionconfig';
|
8
|
+
import { ListItemView } from 'ckeditor5/src/ui.js';
|
9
|
+
import type { MentionFeedItem } from '../mentionconfig.js';
|
10
10
|
export default class MentionListItemView extends ListItemView {
|
11
11
|
item: MentionFeedItem;
|
12
12
|
marker: string;
|
@@ -5,7 +5,7 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/ui/mentionlistitemview
|
7
7
|
*/
|
8
|
-
import { ListItemView } from 'ckeditor5/src/ui';
|
8
|
+
import { ListItemView } from 'ckeditor5/src/ui.js';
|
9
9
|
export default class MentionListItemView extends ListItemView {
|
10
10
|
highlight() {
|
11
11
|
const child = this.children.first;
|
package/src/ui/mentionsview.d.ts
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/ui/mentionsview
|
7
7
|
*/
|
8
|
-
import { ListView } from 'ckeditor5/src/ui';
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
10
|
-
import type MentionListItemView from './mentionlistitemview';
|
8
|
+
import { ListView } from 'ckeditor5/src/ui.js';
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
10
|
+
import type MentionListItemView from './mentionlistitemview.js';
|
11
11
|
import '../../theme/mentionui.css';
|
12
12
|
/**
|
13
13
|
* The mention ui view.
|
package/src/ui/mentionsview.js
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
/**
|
6
6
|
* @module mention/ui/mentionsview
|
7
7
|
*/
|
8
|
-
import { ListView } from 'ckeditor5/src/ui';
|
9
|
-
import { Rect } from 'ckeditor5/src/utils';
|
8
|
+
import { ListView } from 'ckeditor5/src/ui.js';
|
9
|
+
import { Rect } from 'ckeditor5/src/utils.js';
|
10
10
|
import '../../theme/mentionui.css';
|
11
11
|
/**
|
12
12
|
* The mention ui view.
|