@ckeditor/ckeditor5-mention 38.2.0-alpha.1 → 39.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -1
- package/package.json +3 -4
- 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 +3 -3
- 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/README.md
CHANGED
@@ -4,7 +4,6 @@ CKEditor 5 mention feature
|
|
4
4
|
[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-mention.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-mention)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
6
6
|
[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5)
|
7
|
-
![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-mention)
|
8
7
|
|
9
8
|
This package implements mention support for CKEditor 5 and brings smart autocompletion based on user input.
|
10
9
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-mention",
|
3
|
-
"version": "
|
3
|
+
"version": "39.0.1",
|
4
4
|
"description": "Mention feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -11,10 +11,9 @@
|
|
11
11
|
"ckeditor5-dll"
|
12
12
|
],
|
13
13
|
"main": "src/index.js",
|
14
|
-
"type": "module",
|
15
14
|
"dependencies": {
|
16
|
-
"ckeditor5": "
|
17
|
-
"lodash-es": "
|
15
|
+
"ckeditor5": "39.0.1",
|
16
|
+
"lodash-es": "4.17.21"
|
18
17
|
},
|
19
18
|
"engines": {
|
20
19
|
"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 { MentionConfig, Mention, MentionEditing, MentionUI, MentionCommand } from './index
|
5
|
+
import type { MentionConfig, Mention, MentionEditing, MentionUI, MentionCommand } from './index';
|
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';
|
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';
|
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';
|
9
|
+
export { default as MentionEditing } from './mentionediting';
|
10
|
+
export { default as MentionUI } from './mentionui';
|
11
|
+
import './augmentation';
|
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';
|
9
|
+
import type { Element } from 'ckeditor5/src/engine';
|
10
|
+
import MentionEditing from './mentionediting';
|
11
|
+
import MentionUI from './mentionui';
|
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';
|
9
|
+
import MentionEditing, { _toMentionAttribute } from './mentionediting';
|
10
|
+
import MentionUI from './mentionui';
|
11
11
|
import '../theme/mention.css';
|
12
12
|
/**
|
13
13
|
* The mention plugin.
|
package/src/mentioncommand.d.ts
CHANGED
@@ -5,9 +5,9 @@
|
|
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
|
10
|
-
import type { MentionAttribute } from './mention
|
8
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
9
|
+
import type { Range } from 'ckeditor5/src/engine';
|
10
|
+
import type { MentionAttribute } from './mention';
|
11
11
|
/**
|
12
12
|
* The mention command.
|
13
13
|
*
|
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';
|
9
|
+
import { CKEditorError, toMap } from 'ckeditor5/src/utils';
|
10
|
+
import { _addMentionAttributes } from './mentionediting';
|
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';
|
9
|
+
import type { Element } from 'ckeditor5/src/engine';
|
10
|
+
import type { MentionAttribute } from './mention';
|
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';
|
9
|
+
import { uid } from 'ckeditor5/src/utils';
|
10
|
+
import MentionCommand from './mentioncommand';
|
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';
|
9
|
+
import { ContextualBalloon } from 'ckeditor5/src/ui';
|
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';
|
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';
|
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';
|
14
|
+
import DomWrapperView from './ui/domwrapperview';
|
15
|
+
import MentionListItemView from './ui/mentionlistitemview';
|
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';
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
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';
|
9
|
+
import type { MentionFeedItem } from '../mentionconfig';
|
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';
|
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';
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
10
|
+
import type MentionListItemView from './mentionlistitemview';
|
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';
|
9
|
+
import { Rect } from 'ckeditor5/src/utils';
|
10
10
|
import '../../theme/mentionui.css';
|
11
11
|
/**
|
12
12
|
* The mention ui view.
|