Support Emoji 15.0 (#3183)

This commit is contained in:
Alexander Zinchuk 2023-05-28 14:32:25 +02:00
parent 533e82eb3c
commit 2f3671899c
4 changed files with 12 additions and 11 deletions

14
package-lock.json generated
View File

@ -14,7 +14,7 @@
"async-mutex": "^0.4.0",
"big-integer": "github:painor/BigInteger.js",
"croppie": "^2.6.5",
"emoji-data-ios": "git+https://github.com/korenskoy/emoji-data-ios#3c401da02c6792cea0b6c758795da406377bf667",
"emoji-data-ios": "git+https://github.com/korenskoy/emoji-data-ios#2886b318eae174527c4bc9fcd321940ef3a85527",
"idb-keyval": "^6.2.0",
"lowlight": "^2.8.1",
"mp4box": "^0.5.2",
@ -6974,9 +6974,9 @@
}
},
"node_modules/emoji-data-ios": {
"version": "0.4.1",
"resolved": "git+ssh://git@github.com/korenskoy/emoji-data-ios.git#3c401da02c6792cea0b6c758795da406377bf667",
"integrity": "sha512-NEa0/ptcUrkQCvzzpnXoUsbqQ1whg1lN9ufJzSi1BiwS/h2d8MXTgcgSw9zImWkk85vjpA649xj/m4CU+FNJ+g==",
"version": "0.5.0",
"resolved": "git+ssh://git@github.com/korenskoy/emoji-data-ios.git#2886b318eae174527c4bc9fcd321940ef3a85527",
"integrity": "sha512-NVYVtnj9vUy/mFFssAKpfeJBRSHwuNHwmHb1JnLD/6TGtinAGTMpprdtuB9D/+0uiaJuCmydss2469raDfztNw==",
"license": "MIT"
},
"node_modules/emoji-regex": {
@ -12136,9 +12136,9 @@
}
},
"node_modules/lint-staged/node_modules/yaml": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz",
"integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==",
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz",
"integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==",
"dev": true,
"engines": {
"node": ">= 14"

View File

@ -121,7 +121,7 @@
"async-mutex": "^0.4.0",
"big-integer": "github:painor/BigInteger.js",
"croppie": "^2.6.5",
"emoji-data-ios": "git+https://github.com/korenskoy/emoji-data-ios#3c401da02c6792cea0b6c758795da406377bf667",
"emoji-data-ios": "git+https://github.com/korenskoy/emoji-data-ios#2886b318eae174527c4bc9fcd321940ef3a85527",
"idb-keyval": "^6.2.0",
"lowlight": "^2.8.1",
"mp4box": "^0.5.2",

File diff suppressed because one or more lines are too long

View File

@ -126,7 +126,7 @@ function isLastEmojiVersionSupported() {
inlineEl.classList.add('emoji-test-element');
document.body.appendChild(inlineEl);
inlineEl.innerText = '🫱🏻'; // Emoji from 14.0 version
inlineEl.innerText = '🫸🏻'; // Emoji from 15.0 version
const newEmojiWidth = inlineEl.offsetWidth;
inlineEl.innerText = '❤️'; // Emoji from 1.0 version
const legacyEmojiWidth = inlineEl.offsetWidth;