@ckeditor/ckeditor5-emoji 45.0.0-alpha.1 → 45.0.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/build/emoji.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +8 -8
- package/src/emojipicker.d.ts +2 -0
- package/src/emojipicker.js +14 -3
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
export default {"zh-cn":{"dictionary":{"Emoji":"表情符号","Show all emoji...":"显示所有表情符号...","Find an emoji (min. 2 characters)":"查找表情符号(最少 2 个字符)","No emojis were found matching \"%0\".":"未找到与“%0”匹配的表情符号。","Keep on typing to see the emoji.":"继续键入以查看表情符号。","The query must contain at least two characters.":"查询必须至少包含两个字符。","Smileys & Expressions":"笑脸符与表情","Gestures & People":"手势与人物","Animals & Nature":"动物与自然","Food & Drinks":"食物与饮料","Travel & Places":"旅行与地点","Activities":"活动","Objects":"物品","Symbols":"符号","Flags":"旗帜","Select skin tone":"选择肤色","Default skin tone":"默认肤色","Light skin tone":"浅肤色","Medium Light skin tone":"中等偏浅肤色","Medium skin tone":"中等肤色","Medium Dark skin tone":"中等偏深肤色","Dark skin tone":"深肤色","Emoji picker":""},getPluralForm(n){return 0;}}}
|
|
5
|
+
export default {"zh-cn":{"dictionary":{"Emoji":"表情符号","Show all emoji...":"显示所有表情符号...","Find an emoji (min. 2 characters)":"查找表情符号(最少 2 个字符)","No emojis were found matching \"%0\".":"未找到与“%0”匹配的表情符号。","Keep on typing to see the emoji.":"继续键入以查看表情符号。","The query must contain at least two characters.":"查询必须至少包含两个字符。","Smileys & Expressions":"笑脸符与表情","Gestures & People":"手势与人物","Animals & Nature":"动物与自然","Food & Drinks":"食物与饮料","Travel & Places":"旅行与地点","Activities":"活动","Objects":"物品","Symbols":"符号","Flags":"旗帜","Select skin tone":"选择肤色","Default skin tone":"默认肤色","Light skin tone":"浅肤色","Medium Light skin tone":"中等偏浅肤色","Medium skin tone":"中等肤色","Medium Dark skin tone":"中等偏深肤色","Dark skin tone":"深肤色","Emoji picker":"表情符号选择器"},getPluralForm(n){return 0;}}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
( e => {
|
|
7
|
-
const { [ 'zh-cn' ]: { dictionary, getPluralForm } } = {"zh-cn":{"dictionary":{"Emoji":"表情符号","Show all emoji...":"显示所有表情符号...","Find an emoji (min. 2 characters)":"查找表情符号(最少 2 个字符)","No emojis were found matching \"%0\".":"未找到与“%0”匹配的表情符号。","Keep on typing to see the emoji.":"继续键入以查看表情符号。","The query must contain at least two characters.":"查询必须至少包含两个字符。","Smileys & Expressions":"笑脸符与表情","Gestures & People":"手势与人物","Animals & Nature":"动物与自然","Food & Drinks":"食物与饮料","Travel & Places":"旅行与地点","Activities":"活动","Objects":"物品","Symbols":"符号","Flags":"旗帜","Select skin tone":"选择肤色","Default skin tone":"默认肤色","Light skin tone":"浅肤色","Medium Light skin tone":"中等偏浅肤色","Medium skin tone":"中等肤色","Medium Dark skin tone":"中等偏深肤色","Dark skin tone":"深肤色","Emoji picker":""},getPluralForm(n){return 0;}}};
|
|
7
|
+
const { [ 'zh-cn' ]: { dictionary, getPluralForm } } = {"zh-cn":{"dictionary":{"Emoji":"表情符号","Show all emoji...":"显示所有表情符号...","Find an emoji (min. 2 characters)":"查找表情符号(最少 2 个字符)","No emojis were found matching \"%0\".":"未找到与“%0”匹配的表情符号。","Keep on typing to see the emoji.":"继续键入以查看表情符号。","The query must contain at least two characters.":"查询必须至少包含两个字符。","Smileys & Expressions":"笑脸符与表情","Gestures & People":"手势与人物","Animals & Nature":"动物与自然","Food & Drinks":"食物与饮料","Travel & Places":"旅行与地点","Activities":"活动","Objects":"物品","Symbols":"符号","Flags":"旗帜","Select skin tone":"选择肤色","Default skin tone":"默认肤色","Light skin tone":"浅肤色","Medium Light skin tone":"中等偏浅肤色","Medium skin tone":"中等肤色","Medium Dark skin tone":"中等偏深肤色","Dark skin tone":"深肤色","Emoji picker":"表情符号选择器"},getPluralForm(n){return 0;}}};
|
|
8
8
|
e[ 'zh-cn' ] ||= { dictionary: {}, getPluralForm: null };
|
|
9
9
|
e[ 'zh-cn' ].dictionary = Object.assign( e[ 'zh-cn' ].dictionary, dictionary );
|
|
10
10
|
e[ 'zh-cn' ].getPluralForm = getPluralForm;
|
package/dist/translations/zh.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
export default {"zh":{"dictionary":{"Emoji":"表情符號","Show all emoji...":"顯示所有表情符號…","Find an emoji (min. 2 characters)":"尋找表情符號(最少 2 個字元)","No emojis were found matching \"%0\".":"找不到與「%0」相符的表情符號。","Keep on typing to see the emoji.":"繼續輸入以查看表情符號。","The query must contain at least two characters.":"查詢條件至少須包含兩個字元。","Smileys & Expressions":"笑臉與表情","Gestures & People":"手勢與人物","Animals & Nature":"動物與自然","Food & Drinks":"飲食","Travel & Places":"旅遊與景點","Activities":"活動","Objects":"物件","Symbols":"符號","Flags":"旗幟","Select skin tone":"選取膚色","Default skin tone":"預設膚色","Light skin tone":"淺調膚色","Medium Light skin tone":"中淺調膚色","Medium skin tone":"中調膚色","Medium Dark skin tone":"中深調膚色","Dark skin tone":"深調膚色","Emoji picker":""},getPluralForm(n){return 0;}}}
|
|
5
|
+
export default {"zh":{"dictionary":{"Emoji":"表情符號","Show all emoji...":"顯示所有表情符號…","Find an emoji (min. 2 characters)":"尋找表情符號(最少 2 個字元)","No emojis were found matching \"%0\".":"找不到與「%0」相符的表情符號。","Keep on typing to see the emoji.":"繼續輸入以查看表情符號。","The query must contain at least two characters.":"查詢條件至少須包含兩個字元。","Smileys & Expressions":"笑臉與表情","Gestures & People":"手勢與人物","Animals & Nature":"動物與自然","Food & Drinks":"飲食","Travel & Places":"旅遊與景點","Activities":"活動","Objects":"物件","Symbols":"符號","Flags":"旗幟","Select skin tone":"選取膚色","Default skin tone":"預設膚色","Light skin tone":"淺調膚色","Medium Light skin tone":"中淺調膚色","Medium skin tone":"中調膚色","Medium Dark skin tone":"中深調膚色","Dark skin tone":"深調膚色","Emoji picker":"表情符號選擇器"},getPluralForm(n){return 0;}}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
( e => {
|
|
7
|
-
const { [ 'zh' ]: { dictionary, getPluralForm } } = {"zh":{"dictionary":{"Emoji":"表情符號","Show all emoji...":"顯示所有表情符號…","Find an emoji (min. 2 characters)":"尋找表情符號(最少 2 個字元)","No emojis were found matching \"%0\".":"找不到與「%0」相符的表情符號。","Keep on typing to see the emoji.":"繼續輸入以查看表情符號。","The query must contain at least two characters.":"查詢條件至少須包含兩個字元。","Smileys & Expressions":"笑臉與表情","Gestures & People":"手勢與人物","Animals & Nature":"動物與自然","Food & Drinks":"飲食","Travel & Places":"旅遊與景點","Activities":"活動","Objects":"物件","Symbols":"符號","Flags":"旗幟","Select skin tone":"選取膚色","Default skin tone":"預設膚色","Light skin tone":"淺調膚色","Medium Light skin tone":"中淺調膚色","Medium skin tone":"中調膚色","Medium Dark skin tone":"中深調膚色","Dark skin tone":"深調膚色","Emoji picker":""},getPluralForm(n){return 0;}}};
|
|
7
|
+
const { [ 'zh' ]: { dictionary, getPluralForm } } = {"zh":{"dictionary":{"Emoji":"表情符號","Show all emoji...":"顯示所有表情符號…","Find an emoji (min. 2 characters)":"尋找表情符號(最少 2 個字元)","No emojis were found matching \"%0\".":"找不到與「%0」相符的表情符號。","Keep on typing to see the emoji.":"繼續輸入以查看表情符號。","The query must contain at least two characters.":"查詢條件至少須包含兩個字元。","Smileys & Expressions":"笑臉與表情","Gestures & People":"手勢與人物","Animals & Nature":"動物與自然","Food & Drinks":"飲食","Travel & Places":"旅遊與景點","Activities":"活動","Objects":"物件","Symbols":"符號","Flags":"旗幟","Select skin tone":"選取膚色","Default skin tone":"預設膚色","Light skin tone":"淺調膚色","Medium Light skin tone":"中淺調膚色","Medium skin tone":"中調膚色","Medium Dark skin tone":"中深調膚色","Dark skin tone":"深調膚色","Emoji picker":"表情符號選擇器"},getPluralForm(n){return 0;}}};
|
|
8
8
|
e[ 'zh' ] ||= { dictionary: {}, getPluralForm: null };
|
|
9
9
|
e[ 'zh' ].dictionary = Object.assign( e[ 'zh' ].dictionary, dictionary );
|
|
10
10
|
e[ 'zh' ].getPluralForm = getPluralForm;
|
package/lang/translations/ar.po
CHANGED
package/lang/translations/bg.po
CHANGED
package/lang/translations/bn.po
CHANGED
package/lang/translations/ca.po
CHANGED
package/lang/translations/cs.po
CHANGED
package/lang/translations/da.po
CHANGED
package/lang/translations/de.po
CHANGED
package/lang/translations/el.po
CHANGED
package/lang/translations/es.po
CHANGED
package/lang/translations/et.po
CHANGED
package/lang/translations/fi.po
CHANGED
package/lang/translations/fr.po
CHANGED
package/lang/translations/he.po
CHANGED
package/lang/translations/hi.po
CHANGED
package/lang/translations/hu.po
CHANGED
package/lang/translations/id.po
CHANGED
package/lang/translations/it.po
CHANGED
package/lang/translations/ja.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-emoji",
|
|
3
|
-
"version": "45.0.0-alpha.
|
|
3
|
+
"version": "45.0.0-alpha.11",
|
|
4
4
|
"description": "Emoji feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "45.0.0-alpha.
|
|
17
|
-
"@ckeditor/ckeditor5-icons": "45.0.0-alpha.
|
|
18
|
-
"@ckeditor/ckeditor5-mention": "45.0.0-alpha.
|
|
19
|
-
"@ckeditor/ckeditor5-typing": "45.0.0-alpha.
|
|
20
|
-
"@ckeditor/ckeditor5-ui": "45.0.0-alpha.
|
|
21
|
-
"@ckeditor/ckeditor5-utils": "45.0.0-alpha.
|
|
22
|
-
"ckeditor5": "45.0.0-alpha.
|
|
16
|
+
"@ckeditor/ckeditor5-core": "45.0.0-alpha.11",
|
|
17
|
+
"@ckeditor/ckeditor5-icons": "45.0.0-alpha.11",
|
|
18
|
+
"@ckeditor/ckeditor5-mention": "45.0.0-alpha.11",
|
|
19
|
+
"@ckeditor/ckeditor5-typing": "45.0.0-alpha.11",
|
|
20
|
+
"@ckeditor/ckeditor5-ui": "45.0.0-alpha.11",
|
|
21
|
+
"@ckeditor/ckeditor5-utils": "45.0.0-alpha.11",
|
|
22
|
+
"ckeditor5": "45.0.0-alpha.11",
|
|
23
23
|
"fuzzysort": "3.1.0",
|
|
24
24
|
"es-toolkit": "1.32.0"
|
|
25
25
|
},
|
package/src/emojipicker.d.ts
CHANGED
|
@@ -82,6 +82,8 @@ export default class EmojiPicker extends Plugin {
|
|
|
82
82
|
private _createEmojiPickerFormView;
|
|
83
83
|
/**
|
|
84
84
|
* Hides the balloon with the emoji picker.
|
|
85
|
+
*
|
|
86
|
+
* @param updateFocus Whether to focus the editor after closing the emoji picker.
|
|
85
87
|
*/
|
|
86
88
|
private _hideUI;
|
|
87
89
|
/**
|
package/src/emojipicker.js
CHANGED
|
@@ -128,6 +128,7 @@ export default class EmojiPicker extends Plugin {
|
|
|
128
128
|
isToggleable: true
|
|
129
129
|
});
|
|
130
130
|
buttonView.on('execute', () => {
|
|
131
|
+
this.editor.editing.view.scrollToTheSelection();
|
|
131
132
|
this.showUI();
|
|
132
133
|
});
|
|
133
134
|
return buttonView;
|
|
@@ -178,18 +179,28 @@ export default class EmojiPicker extends Plugin {
|
|
|
178
179
|
clickOutsideHandler({
|
|
179
180
|
emitter: emojiPickerFormView,
|
|
180
181
|
contextElements: [this.balloonPlugin.view.element],
|
|
181
|
-
callback: () =>
|
|
182
|
+
callback: () => {
|
|
183
|
+
// Focusing on the editable during a click outside the balloon panel might
|
|
184
|
+
// cause the selection to move to the beginning of the editable, so we avoid
|
|
185
|
+
// focusing on it during this action.
|
|
186
|
+
// See: https://github.com/ckeditor/ckeditor5/issues/18253
|
|
187
|
+
this._hideUI(false);
|
|
188
|
+
},
|
|
182
189
|
activator: () => this.balloonPlugin.visibleView === emojiPickerFormView
|
|
183
190
|
});
|
|
184
191
|
return emojiPickerFormView;
|
|
185
192
|
}
|
|
186
193
|
/**
|
|
187
194
|
* Hides the balloon with the emoji picker.
|
|
195
|
+
*
|
|
196
|
+
* @param updateFocus Whether to focus the editor after closing the emoji picker.
|
|
188
197
|
*/
|
|
189
|
-
_hideUI() {
|
|
198
|
+
_hideUI(updateFocus = true) {
|
|
190
199
|
this.balloonPlugin.remove(this.emojiPickerFormView);
|
|
191
200
|
this.emojiPickerView.searchView.setInputValue('');
|
|
192
|
-
|
|
201
|
+
if (updateFocus) {
|
|
202
|
+
this.editor.editing.view.focus();
|
|
203
|
+
}
|
|
193
204
|
this._hideFakeVisualSelection();
|
|
194
205
|
}
|
|
195
206
|
/**
|