@ckeditor/ckeditor5-emoji 44.3.0-alpha.1 → 44.3.0-alpha.3
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 +2 -2
- package/README.md +17 -11
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/emojiconfig.d.ts +2 -2
- package/src/emojirepository.d.ts +1 -1
- package/src/utils/isemojisupported.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-emoji",
|
|
3
|
-
"version": "44.3.0-alpha.
|
|
3
|
+
"version": "44.3.0-alpha.3",
|
|
4
4
|
"description": "Emoji feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "44.3.0-alpha.
|
|
17
|
-
"@ckeditor/ckeditor5-mention": "44.3.0-alpha.
|
|
18
|
-
"@ckeditor/ckeditor5-typing": "44.3.0-alpha.
|
|
19
|
-
"@ckeditor/ckeditor5-ui": "44.3.0-alpha.
|
|
20
|
-
"@ckeditor/ckeditor5-utils": "44.3.0-alpha.
|
|
21
|
-
"ckeditor5": "44.3.0-alpha.
|
|
16
|
+
"@ckeditor/ckeditor5-core": "44.3.0-alpha.3",
|
|
17
|
+
"@ckeditor/ckeditor5-mention": "44.3.0-alpha.3",
|
|
18
|
+
"@ckeditor/ckeditor5-typing": "44.3.0-alpha.3",
|
|
19
|
+
"@ckeditor/ckeditor5-ui": "44.3.0-alpha.3",
|
|
20
|
+
"@ckeditor/ckeditor5-utils": "44.3.0-alpha.3",
|
|
21
|
+
"ckeditor5": "44.3.0-alpha.3",
|
|
22
22
|
"fuzzysort": "3.1.0",
|
|
23
23
|
"lodash-es": "4.17.21"
|
|
24
24
|
},
|
|
25
25
|
"author": "CKSource (http://cksource.com/)",
|
|
26
26
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
27
|
-
"homepage": "https://ckeditor.com",
|
|
27
|
+
"homepage": "https://ckeditor.com/ckeditor-5",
|
|
28
28
|
"bugs": "https://github.com/ckeditor/ckeditor5/issues",
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
package/src/emojiconfig.d.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* @module emoji/emojiconfig
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* The configuration of the
|
|
9
|
+
* The configuration of the Emoji feature.
|
|
10
10
|
*
|
|
11
|
-
* Read more about {@glink features/emoji#configuration configuring the
|
|
11
|
+
* Read more about {@glink features/emoji#configuration configuring the Emoji feature}.
|
|
12
12
|
*
|
|
13
13
|
* ```ts
|
|
14
14
|
* ClassicEditor
|
package/src/emojirepository.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ export type EmojiCdnResource = {
|
|
|
143
143
|
tags?: Array<string>;
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
146
|
-
* Represents a single emoji item used by the
|
|
146
|
+
* Represents a single emoji item used by the Emoji feature.
|
|
147
147
|
*/
|
|
148
148
|
export type EmojiEntry = Omit<EmojiCdnResource, 'skins'> & {
|
|
149
149
|
skins: EmojiMap;
|
|
@@ -45,6 +45,7 @@ export default function isEmojiSupported(unicode) {
|
|
|
45
45
|
const x = CANVAS_WIDTH + ((i / 4) % CANVAS_WIDTH);
|
|
46
46
|
const y = Math.floor(i / 4 / CANVAS_WIDTH);
|
|
47
47
|
const b = ctx.getImageData(x, y, 1, 1).data;
|
|
48
|
+
/* istanbul ignore next -- @preserve */
|
|
48
49
|
if (a[i] !== b[0] || a[i + 2] !== b[2]) {
|
|
49
50
|
return false;
|
|
50
51
|
}
|