@ckeditor/ckeditor5-emoji 44.2.0-alpha.10 → 44.2.0-alpha.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-emoji",
3
- "version": "44.2.0-alpha.10",
3
+ "version": "44.2.0-alpha.11",
4
4
  "description": "Emoji feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,12 +13,12 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "44.2.0-alpha.10",
17
- "@ckeditor/ckeditor5-mention": "44.2.0-alpha.10",
18
- "@ckeditor/ckeditor5-typing": "44.2.0-alpha.10",
19
- "@ckeditor/ckeditor5-ui": "44.2.0-alpha.10",
20
- "@ckeditor/ckeditor5-utils": "44.2.0-alpha.10",
21
- "ckeditor5": "44.2.0-alpha.10",
16
+ "@ckeditor/ckeditor5-core": "44.2.0-alpha.11",
17
+ "@ckeditor/ckeditor5-mention": "44.2.0-alpha.11",
18
+ "@ckeditor/ckeditor5-typing": "44.2.0-alpha.11",
19
+ "@ckeditor/ckeditor5-ui": "44.2.0-alpha.11",
20
+ "@ckeditor/ckeditor5-utils": "44.2.0-alpha.11",
21
+ "ckeditor5": "44.2.0-alpha.11",
22
22
  "fuse.js": "7.0.0",
23
23
  "lodash-es": "4.17.21"
24
24
  },
@@ -176,6 +176,10 @@ export default class EmojiMention extends Plugin {
176
176
  if (searchQuery.startsWith(' ')) {
177
177
  return [];
178
178
  }
179
+ // Do not show anything when a query starts with a marker character.
180
+ if (searchQuery.startsWith(EMOJI_MENTION_MARKER)) {
181
+ return [];
182
+ }
179
183
  // If the repository plugin is not available, return an empty feed to avoid confusion. See: #17842.
180
184
  if (!this._isEmojiRepositoryAvailable) {
181
185
  return [];