@ckeditor/ckeditor5-emoji 0.0.0-nightly-next-20250217.0 → 44.2.0-alpha.0
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/LICENSE.md +1 -1
- package/build/emoji.js +2 -1
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +5 -0
- package/dist/translations/af.umd.js +11 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +5 -0
- package/dist/translations/ar.umd.js +11 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +5 -0
- package/dist/translations/ast.umd.js +11 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +5 -0
- package/dist/translations/az.umd.js +11 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +5 -0
- package/dist/translations/bg.umd.js +11 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +5 -0
- package/dist/translations/bn.umd.js +11 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +5 -0
- package/dist/translations/bs.umd.js +11 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +5 -0
- package/dist/translations/ca.umd.js +11 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +5 -0
- package/dist/translations/cs.umd.js +11 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +5 -0
- package/dist/translations/da.umd.js +11 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +5 -0
- package/dist/translations/de-ch.umd.js +11 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +5 -0
- package/dist/translations/de.umd.js +11 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +5 -0
- package/dist/translations/el.umd.js +11 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +5 -0
- package/dist/translations/en-au.umd.js +11 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +5 -0
- package/dist/translations/en-gb.umd.js +11 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +5 -0
- package/dist/translations/en.umd.js +11 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +5 -0
- package/dist/translations/eo.umd.js +11 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +5 -0
- package/dist/translations/es-co.umd.js +11 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +5 -0
- package/dist/translations/es.umd.js +11 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +5 -0
- package/dist/translations/et.umd.js +11 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +5 -0
- package/dist/translations/eu.umd.js +11 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +5 -0
- package/dist/translations/fa.umd.js +11 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +5 -0
- package/dist/translations/fi.umd.js +11 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +5 -0
- package/dist/translations/fr.umd.js +11 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +5 -0
- package/dist/translations/gl.umd.js +11 -0
- package/dist/translations/gu.d.ts +8 -0
- package/dist/translations/gu.js +5 -0
- package/dist/translations/gu.umd.js +11 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +5 -0
- package/dist/translations/he.umd.js +11 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +5 -0
- package/dist/translations/hi.umd.js +11 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +5 -0
- package/dist/translations/hr.umd.js +11 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +5 -0
- package/dist/translations/hu.umd.js +11 -0
- package/dist/translations/hy.d.ts +8 -0
- package/dist/translations/hy.js +5 -0
- package/dist/translations/hy.umd.js +11 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +5 -0
- package/dist/translations/id.umd.js +11 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +5 -0
- package/dist/translations/it.umd.js +11 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +5 -0
- package/dist/translations/ja.umd.js +11 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +5 -0
- package/dist/translations/jv.umd.js +11 -0
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +5 -0
- package/dist/translations/kk.umd.js +11 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +5 -0
- package/dist/translations/km.umd.js +11 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +5 -0
- package/dist/translations/kn.umd.js +11 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +5 -0
- package/dist/translations/ko.umd.js +11 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +5 -0
- package/dist/translations/ku.umd.js +11 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +5 -0
- package/dist/translations/lt.umd.js +11 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +5 -0
- package/dist/translations/lv.umd.js +11 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +5 -0
- package/dist/translations/ms.umd.js +11 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +5 -0
- package/dist/translations/nb.umd.js +11 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +5 -0
- package/dist/translations/ne.umd.js +11 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +5 -0
- package/dist/translations/nl.umd.js +11 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +5 -0
- package/dist/translations/no.umd.js +11 -0
- package/dist/translations/oc.d.ts +8 -0
- package/dist/translations/oc.js +5 -0
- package/dist/translations/oc.umd.js +11 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +5 -0
- package/dist/translations/pl.umd.js +11 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +5 -0
- package/dist/translations/pt-br.umd.js +11 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +5 -0
- package/dist/translations/pt.umd.js +11 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +5 -0
- package/dist/translations/ro.umd.js +11 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +5 -0
- package/dist/translations/ru.umd.js +11 -0
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +5 -0
- package/dist/translations/si.umd.js +11 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +5 -0
- package/dist/translations/sk.umd.js +11 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +5 -0
- package/dist/translations/sl.umd.js +11 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +5 -0
- package/dist/translations/sq.umd.js +11 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +5 -0
- package/dist/translations/sr-latn.umd.js +11 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +5 -0
- package/dist/translations/sr.umd.js +11 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +5 -0
- package/dist/translations/sv.umd.js +11 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +5 -0
- package/dist/translations/th.umd.js +11 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +5 -0
- package/dist/translations/ti.umd.js +11 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +5 -0
- package/dist/translations/tk.umd.js +11 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +5 -0
- package/dist/translations/tr.umd.js +11 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +5 -0
- package/dist/translations/tt.umd.js +11 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +5 -0
- package/dist/translations/ug.umd.js +11 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +5 -0
- package/dist/translations/uk.umd.js +11 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +5 -0
- package/dist/translations/ur.umd.js +11 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +5 -0
- package/dist/translations/uz.umd.js +11 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +5 -0
- package/dist/translations/vi.umd.js +11 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +5 -0
- package/dist/translations/zh-cn.umd.js +11 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +5 -0
- package/dist/translations/zh.umd.js +11 -0
- package/lang/translations/af.po +100 -0
- package/lang/translations/ar.po +100 -0
- package/lang/translations/ast.po +100 -0
- package/lang/translations/az.po +100 -0
- package/lang/translations/bg.po +100 -0
- package/lang/translations/bn.po +100 -0
- package/lang/translations/bs.po +100 -0
- package/lang/translations/ca.po +100 -0
- package/lang/translations/cs.po +100 -0
- package/lang/translations/da.po +100 -0
- package/lang/translations/de-ch.po +100 -0
- package/lang/translations/de.po +100 -0
- package/lang/translations/el.po +100 -0
- package/lang/translations/en-au.po +100 -0
- package/lang/translations/en-gb.po +100 -0
- package/lang/translations/en.po +100 -0
- package/lang/translations/eo.po +100 -0
- package/lang/translations/es-co.po +100 -0
- package/lang/translations/es.po +100 -0
- package/lang/translations/et.po +100 -0
- package/lang/translations/eu.po +100 -0
- package/lang/translations/fa.po +100 -0
- package/lang/translations/fi.po +100 -0
- package/lang/translations/fr.po +100 -0
- package/lang/translations/gl.po +100 -0
- package/lang/translations/gu.po +100 -0
- package/lang/translations/he.po +100 -0
- package/lang/translations/hi.po +100 -0
- package/lang/translations/hr.po +100 -0
- package/lang/translations/hu.po +100 -0
- package/lang/translations/hy.po +100 -0
- package/lang/translations/id.po +100 -0
- package/lang/translations/it.po +100 -0
- package/lang/translations/ja.po +100 -0
- package/lang/translations/jv.po +100 -0
- package/lang/translations/kk.po +100 -0
- package/lang/translations/km.po +100 -0
- package/lang/translations/kn.po +100 -0
- package/lang/translations/ko.po +100 -0
- package/lang/translations/ku.po +100 -0
- package/lang/translations/lt.po +100 -0
- package/lang/translations/lv.po +100 -0
- package/lang/translations/ms.po +100 -0
- package/lang/translations/nb.po +100 -0
- package/lang/translations/ne.po +100 -0
- package/lang/translations/nl.po +100 -0
- package/lang/translations/no.po +100 -0
- package/lang/translations/oc.po +100 -0
- package/lang/translations/pl.po +100 -0
- package/lang/translations/pt-br.po +100 -0
- package/lang/translations/pt.po +100 -0
- package/lang/translations/ro.po +100 -0
- package/lang/translations/ru.po +100 -0
- package/lang/translations/si.po +100 -0
- package/lang/translations/sk.po +100 -0
- package/lang/translations/sl.po +100 -0
- package/lang/translations/sq.po +100 -0
- package/lang/translations/sr-latn.po +100 -0
- package/lang/translations/sr.po +100 -0
- package/lang/translations/sv.po +100 -0
- package/lang/translations/th.po +100 -0
- package/lang/translations/ti.po +100 -0
- package/lang/translations/tk.po +100 -0
- package/lang/translations/tr.po +100 -0
- package/lang/translations/tt.po +100 -0
- package/lang/translations/ug.po +100 -0
- package/lang/translations/uk.po +100 -0
- package/lang/translations/ur.po +100 -0
- package/lang/translations/uz.po +100 -0
- package/lang/translations/vi.po +100 -0
- package/lang/translations/zh-cn.po +100 -0
- package/lang/translations/zh.po +100 -0
- package/package.json +8 -9
- package/src/emojimention.js +0 -10
- package/src/emojipicker.js +2 -3
- package/src/emojirepository.js +8 -21
- package/src/ui/emojicategoriesview.js +0 -16
- package/src/ui/emojigridview.js +0 -26
- package/src/ui/emojipickerview.js +0 -36
- package/src/ui/emojisearchview.js +1 -9
- package/src/ui/emojitoneview.js +0 -8
package/src/emojirepository.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module emoji/emojirepository
|
|
7
7
|
*/
|
|
8
8
|
import Fuse from 'fuse.js';
|
|
9
|
-
import { groupBy } from 'es
|
|
9
|
+
import { groupBy } from 'lodash-es';
|
|
10
10
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
11
11
|
import { logWarning } from 'ckeditor5/src/utils.js';
|
|
12
12
|
// An endpoint from which the emoji database will be downloaded during plugin initialization.
|
|
@@ -27,19 +27,6 @@ const BASELINE_EMOJI_WIDTH = 24;
|
|
|
27
27
|
* Loads the emoji database from URL during plugin initialization and provides utility methods to search it.
|
|
28
28
|
*/
|
|
29
29
|
class EmojiRepository extends Plugin {
|
|
30
|
-
/**
|
|
31
|
-
* Emoji database.
|
|
32
|
-
*/
|
|
33
|
-
_database;
|
|
34
|
-
/**
|
|
35
|
-
* A promise resolved after downloading the emoji database.
|
|
36
|
-
* The promise resolves with `true` when the database is successfully downloaded or `false` otherwise.
|
|
37
|
-
*/
|
|
38
|
-
_databasePromise;
|
|
39
|
-
/**
|
|
40
|
-
* An instance of the [Fuse.js](https://www.fusejs.io/) library.
|
|
41
|
-
*/
|
|
42
|
-
_fuseSearch;
|
|
43
30
|
/**
|
|
44
31
|
* @inheritDoc
|
|
45
32
|
*/
|
|
@@ -155,7 +142,7 @@ class EmojiRepository extends Plugin {
|
|
|
155
142
|
{ title: t('Symbols'), icon: '🟢', groupId: 8 },
|
|
156
143
|
{ title: t('Flags'), icon: '🏁', groupId: 9 }
|
|
157
144
|
];
|
|
158
|
-
const groups = groupBy(this._database,
|
|
145
|
+
const groups = groupBy(this._database, 'group');
|
|
159
146
|
return categories.map(category => {
|
|
160
147
|
return {
|
|
161
148
|
...category,
|
|
@@ -183,13 +170,13 @@ class EmojiRepository extends Plugin {
|
|
|
183
170
|
isReady() {
|
|
184
171
|
return this._databasePromise;
|
|
185
172
|
}
|
|
186
|
-
/**
|
|
187
|
-
* A function used to check if the given emoji is supported in the operating system.
|
|
188
|
-
*
|
|
189
|
-
* Referenced for unit testing purposes.
|
|
190
|
-
*/
|
|
191
|
-
static _isEmojiSupported = isEmojiSupported;
|
|
192
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* A function used to check if the given emoji is supported in the operating system.
|
|
176
|
+
*
|
|
177
|
+
* Referenced for unit testing purposes.
|
|
178
|
+
*/
|
|
179
|
+
EmojiRepository._isEmojiSupported = isEmojiSupported;
|
|
193
180
|
export default EmojiRepository;
|
|
194
181
|
/**
|
|
195
182
|
* Makes the HTTP request to download the emoji database.
|
|
@@ -13,22 +13,6 @@ import '../../theme/emojicategories.css';
|
|
|
13
13
|
* It is responsible allowing the user to select a particular emoji category.
|
|
14
14
|
*/
|
|
15
15
|
export default class EmojiCategoriesView extends View {
|
|
16
|
-
/**
|
|
17
|
-
* Tracks information about the DOM focus in the grid.
|
|
18
|
-
*/
|
|
19
|
-
focusTracker;
|
|
20
|
-
/**
|
|
21
|
-
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
22
|
-
*/
|
|
23
|
-
keystrokes;
|
|
24
|
-
/**
|
|
25
|
-
* Helps cycling over focusable children in the input view.
|
|
26
|
-
*/
|
|
27
|
-
focusCycler;
|
|
28
|
-
/**
|
|
29
|
-
* A collection of the categories buttons.
|
|
30
|
-
*/
|
|
31
|
-
buttonViews;
|
|
32
16
|
/**
|
|
33
17
|
* @inheritDoc
|
|
34
18
|
*/
|
package/src/ui/emojigridview.js
CHANGED
|
@@ -12,32 +12,6 @@ import '../../theme/emojigrid.css';
|
|
|
12
12
|
* A grid of emoji tiles. It allows browsing emojis and selecting them to be inserted into the content.
|
|
13
13
|
*/
|
|
14
14
|
export default class EmojiGridView extends View {
|
|
15
|
-
/**
|
|
16
|
-
* A collection of the child tile views. Each tile represents a particular emoji.
|
|
17
|
-
*/
|
|
18
|
-
tiles;
|
|
19
|
-
/**
|
|
20
|
-
* Tracks information about the DOM focus in the grid.
|
|
21
|
-
*/
|
|
22
|
-
focusTracker;
|
|
23
|
-
/**
|
|
24
|
-
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
25
|
-
*/
|
|
26
|
-
keystrokes;
|
|
27
|
-
/**
|
|
28
|
-
* An array containing all emojis grouped by their categories.
|
|
29
|
-
*/
|
|
30
|
-
emojiCategories;
|
|
31
|
-
/**
|
|
32
|
-
* A collection of all already created tile views. Each tile represents a particular emoji.
|
|
33
|
-
* The cached tiles collection is used for efficiency purposes to avoid re-creating a particular
|
|
34
|
-
* tile again when the grid view has changed.
|
|
35
|
-
*/
|
|
36
|
-
cachedTiles;
|
|
37
|
-
/**
|
|
38
|
-
* A callback used to filter grid items by a specified query.
|
|
39
|
-
*/
|
|
40
|
-
_getEmojiByQuery;
|
|
41
15
|
/**
|
|
42
16
|
* @inheritDoc
|
|
43
17
|
*/
|
|
@@ -15,42 +15,6 @@ import EmojiToneView from './emojitoneview.js';
|
|
|
15
15
|
* A view that glues pieces of the emoji panel together.
|
|
16
16
|
*/
|
|
17
17
|
export default class EmojiPickerView extends View {
|
|
18
|
-
/**
|
|
19
|
-
* A collection of the focusable children of the view.
|
|
20
|
-
*/
|
|
21
|
-
items;
|
|
22
|
-
/**
|
|
23
|
-
* Tracks information about the DOM focus in the view.
|
|
24
|
-
*/
|
|
25
|
-
focusTracker;
|
|
26
|
-
/**
|
|
27
|
-
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
28
|
-
*/
|
|
29
|
-
keystrokes;
|
|
30
|
-
/**
|
|
31
|
-
* Helps cycling over focusable {@link #items} in the view.
|
|
32
|
-
*/
|
|
33
|
-
focusCycler;
|
|
34
|
-
/**
|
|
35
|
-
* An instance of the `EmojiSearchView`.
|
|
36
|
-
*/
|
|
37
|
-
searchView;
|
|
38
|
-
/**
|
|
39
|
-
* An instance of the `EmojiToneView`.
|
|
40
|
-
*/
|
|
41
|
-
toneView;
|
|
42
|
-
/**
|
|
43
|
-
* An instance of the `EmojiCategoriesView`.
|
|
44
|
-
*/
|
|
45
|
-
categoriesView;
|
|
46
|
-
/**
|
|
47
|
-
* An instance of the `EmojiGridView`.
|
|
48
|
-
*/
|
|
49
|
-
gridView;
|
|
50
|
-
/**
|
|
51
|
-
* An instance of the `EmojiGridView`.
|
|
52
|
-
*/
|
|
53
|
-
infoView;
|
|
54
18
|
/**
|
|
55
19
|
* @inheritDoc
|
|
56
20
|
*/
|
|
@@ -5,20 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module emoji/ui/emojisearchview
|
|
7
7
|
*/
|
|
8
|
-
import { escapeRegExp } from 'es
|
|
8
|
+
import { escapeRegExp } from 'lodash-es';
|
|
9
9
|
import { createLabeledInputText, SearchTextView, View } from 'ckeditor5/src/ui.js';
|
|
10
10
|
/**
|
|
11
11
|
* A view responsible for providing an input element that allows filtering emoji by the provided query.
|
|
12
12
|
*/
|
|
13
13
|
export default class EmojiSearchView extends View {
|
|
14
|
-
/**
|
|
15
|
-
* The find in text input view that stores the searched string.
|
|
16
|
-
*/
|
|
17
|
-
inputView;
|
|
18
|
-
/**
|
|
19
|
-
* An instance of the `EmojiGridView`.
|
|
20
|
-
*/
|
|
21
|
-
gridView;
|
|
22
14
|
/**
|
|
23
15
|
* @inheritDoc
|
|
24
16
|
*/
|
package/src/ui/emojitoneview.js
CHANGED
|
@@ -12,14 +12,6 @@ import '../../theme/emojitone.css';
|
|
|
12
12
|
* A view responsible for selecting a skin tone for an emoji.
|
|
13
13
|
*/
|
|
14
14
|
export default class EmojiToneView extends View {
|
|
15
|
-
/**
|
|
16
|
-
* A dropdown element for selecting an active skin tone.
|
|
17
|
-
*/
|
|
18
|
-
dropdownView;
|
|
19
|
-
/**
|
|
20
|
-
* An array of available skin tones.
|
|
21
|
-
*/
|
|
22
|
-
_skinTones;
|
|
23
15
|
/**
|
|
24
16
|
* @inheritDoc
|
|
25
17
|
*/
|