@ckeditor/ckeditor5-mention 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 +2 -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 +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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-mention",
|
3
|
-
"version": "38.2.0-alpha.
|
3
|
+
"version": "38.2.0-alpha.1",
|
4
4
|
"description": "Mention feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"main": "src/index.js",
|
14
14
|
"type": "module",
|
15
15
|
"dependencies": {
|
16
|
-
"ckeditor5": "38.2.0-alpha.
|
16
|
+
"ckeditor5": "38.2.0-alpha.1",
|
17
17
|
"lodash-es": "^4.17.15"
|
18
18
|
},
|
19
19
|
"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 { 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,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.js';
|
9
|
+
import type { Range } from 'ckeditor5/src/engine.js';
|
10
|
+
import type { MentionAttribute } from './mention.js';
|
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.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.
|