update twemoji package and emoji lists

This commit is contained in:
7w1 committed 2026-06-17 16:24:08 -05:00
1 parent 3ac83ac4a1
commit e76c33c0e1
5 files changed
+104 -86

No files matched your search

@@ -0,0 +1,5 @@
---
default: patch
---
Fixed broken Twemoji rendering and updated emoji picker, autocomplete, and jumbo detection for new emojis.
+5 -4
View File
@@ -33,7 +33,7 @@
"@fontsource-variable/nunito": "5.2.7",
"@fontsource/space-mono": "5.2.9",
"@phosphor-icons/react": "^2.1.10",
"@sableclient/twemoji-font": "^1.0.2",
"@sableclient/twemoji-font": "^1.0.3",
"@sentry/react": "^10.43.0",
"@tanstack/react-query": "^5.90.21",
"@tanstack/react-query-devtools": "^5.91.3",
@@ -51,8 +51,9 @@
"dayjs": "^1.11.19",
"domhandler": "^5.0.3",
"dompurify": "^3.3.3",
"emojibase": "^15.3.1",
"emojibase-data": "^15.3.2",
"emoji-regex": "^10.6.0",
"emojibase": "^17.0.0",
"emojibase-data": "^17.0.0",
"eventemitter3": "^5.0.4",
"file-saver": "^2.0.5",
"focus-trap-react": "^10.3.1",
@@ -136,4 +137,4 @@
"pnpm": ">=10"
},
"packageManager": "[email protected]+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be"
}
}
+88 -79
View File
@@ -40,8 +40,8 @@ importers:
specifier: ^2.1.10
version: 2.1.10([email protected]([email protected]))([email protected])
'@sableclient/twemoji-font':
specifier: ^1.0.2
version: 1.0.2
specifier: ^1.0.3
version: 1.0.3
'@sentry/react':
specifier: ^10.43.0
version: 10.46.0([email protected])
@@ -93,12 +93,15 @@ importers:
dompurify:
specifier: ^3.3.3
version: 3.3.3
emoji-regex:
specifier: ^10.6.0
version: 10.6.0
emojibase:
specifier: ^15.3.1
version: 15.3.1
specifier: ^17.0.0
version: 17.0.0
emojibase-data:
specifier: ^15.3.2
version: 15.3.2(emojibase@15.3.1)
specifier: ^17.0.0
version: 17.0.0(emojibase@17.0.0)
eventemitter3:
specifier: ^5.0.4
version: 5.0.4
@@ -2638,8 +2641,8 @@ packages:
'@sableclient/[email protected]':
resolution: {integrity: sha512-XLRcbUPcn7i3QKZAPjIfUkUEXP0E4DOr0dyRoVCWMjHWj28kq+T7jeB2fRr5lB77olBwNHMjIuoTwrv02xiepQ==}
'@sableclient/[email protected].2':
resolution: {integrity: sha512-9IaGNpTrj6d0q7m+Lq6U+iYKwoHQSxyUQB1kox5OzTi9T1eU4eFJLGCqtq5Sst0SbCnNsfBqTiC4s0x85+Q2oQ==}
'@sableclient/[email protected].3':
resolution: {integrity: sha512-V+I76tutAOe7TmueZW2YOcM6uWIpy/lz4fbkhlTBB/EZoxPyX8xAgGE0BfWjGycyvYUib1P3bBBrgLwm09zlZQ==}
'@sentry-internal/[email protected]':
resolution: {integrity: sha512-WB1gBT9G13V02ekZ6NpUhoI1aGHV2eNfjEPthkU2bGBvFpQKnstwzjg7waIRGR7cu+YSW2Q6UI6aQLgBeOPD1g==}
@@ -3484,13 +3487,17 @@ packages:
[email protected]:
resolution: {integrity: sha512-5z3uFKBWjiNR44nFcYdkcXjKMbg5KXNdciu7mhTPo9tB7NbqSNP2sSnGR+fqknZSCwKkBN+oxiiajWs4dT6ORg==}
emoji[email protected]:
resolution: {integrity: sha512-TpDyTDDTdqWIJixV5sTA6OQ0P0JfIIeK2tFRR3q56G9LK65ylAZ7z3KyBXokpvTTJ+mLUXQXbLNyVkjvnTLE+A==}
emoji[email protected]:
resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}
[email protected]:
resolution: {integrity: sha512-Yvgb5AWoHViHV/gq1qr5ZAarcBip+B27/ZLRsUJkbgAEaLlZ/fof9g882LTpmEpyhBNEC0m2SEmItljHsTygjA==}
peerDependencies:
emojibase: '*'
emojibase@15.3.1:
resolution: {integrity: sha512-GNsjHnG2J3Ktg684Fs/vZR/6XpOSkZPMAv85EHrr6br2RN2cJNwdS4am/3YSK3y+/gOv2kmoK3GGdahXdMxg2g==}
emojibase@17.0.0:
resolution: {integrity: sha512-bXdpf4HPY3p41zK5swVKZdC/VynsMZ4LoLxdYDE+GucqkFwzcM1GVc4ODfYAlwoKaf2U2oNNUoOO78N96ovpBA==}
engines: {node: '>=18.12.0'}
[email protected]:
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
@@ -5439,7 +5446,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-compilation-targets': 7.28.6
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
debug: 4.4.3
lodash.debounce: 4.0.8
resolve: 1.22.11
@@ -5530,7 +5537,7 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/traverse': 7.29.0
transitivePeerDependencies:
- supports-color
@@ -5538,17 +5545,17 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.27.1(@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-skip-transparent-expression-wrappers': 7.27.1
'@babel/plugin-transform-optional-chaining': 7.28.6(@babel/[email protected])
transitivePeerDependencies:
@@ -5557,7 +5564,7 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/traverse': 7.29.0
transitivePeerDependencies:
- supports-color
@@ -5569,12 +5576,12 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
@@ -5585,17 +5592,17 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-regexp-features-plugin': 7.28.5(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-remap-async-to-generator': 7.27.1(@babel/[email protected])
'@babel/traverse': 7.29.0
transitivePeerDependencies:
@@ -5605,7 +5612,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-module-imports': 7.28.6
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-remap-async-to-generator': 7.27.1(@babel/[email protected])
transitivePeerDependencies:
- supports-color
@@ -5613,18 +5620,18 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-class-features-plugin': 7.28.6(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
transitivePeerDependencies:
- supports-color
@@ -5632,7 +5639,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-class-features-plugin': 7.28.6(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
transitivePeerDependencies:
- supports-color
@@ -5642,7 +5649,7 @@ snapshots:
'@babel/helper-annotate-as-pure': 7.27.3
'@babel/helper-compilation-targets': 7.28.6
'@babel/helper-globals': 7.28.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-replace-supers': 7.28.6(@babel/[email protected])
'@babel/traverse': 7.29.0
transitivePeerDependencies:
@@ -5651,13 +5658,13 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/template': 7.28.6
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/traverse': 7.29.0
transitivePeerDependencies:
- supports-color
@@ -5666,28 +5673,28 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-regexp-features-plugin': 7.28.5(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-regexp-features-plugin': 7.28.5(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/plugin-transform-destructuring': 7.28.5(@babel/[email protected])
transitivePeerDependencies:
- supports-color
@@ -5695,17 +5702,17 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-skip-transparent-expression-wrappers': 7.27.1
transitivePeerDependencies:
- supports-color
@@ -5714,7 +5721,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-compilation-targets': 7.28.6
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/traverse': 7.29.0
transitivePeerDependencies:
- supports-color
@@ -5722,28 +5729,28 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-module-transforms': 7.28.6(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
transitivePeerDependencies:
- supports-color
@@ -5751,7 +5758,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-module-transforms': 7.28.6(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
transitivePeerDependencies:
- supports-color
@@ -5759,7 +5766,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-module-transforms': 7.28.6(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-validator-identifier': 7.28.5
'@babel/traverse': 7.29.0
transitivePeerDependencies:
@@ -5769,7 +5776,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-module-transforms': 7.28.6(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
transitivePeerDependencies:
- supports-color
@@ -5777,28 +5784,28 @@ snapshots:
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-regexp-features-plugin': 7.28.5(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-compilation-targets': 7.28.6
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/plugin-transform-destructuring': 7.28.5(@babel/[email protected])
'@babel/plugin-transform-parameters': 7.27.7(@babel/[email protected])
'@babel/traverse': 7.29.0
@@ -5808,7 +5815,7 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-replace-supers': 7.28.6(@babel/[email protected])
transitivePeerDependencies:
- supports-color
@@ -5816,12 +5823,12 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-skip-transparent-expression-wrappers': 7.27.1
transitivePeerDependencies:
- supports-color
@@ -5829,13 +5836,13 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-class-features-plugin': 7.28.6(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
transitivePeerDependencies:
- supports-color
@@ -5844,14 +5851,14 @@ snapshots:
'@babel/core': 7.29.0
'@babel/helper-annotate-as-pure': 7.27.3
'@babel/helper-create-class-features-plugin': 7.28.6(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
transitivePeerDependencies:
- supports-color
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
@@ -5866,28 +5873,28 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-regexp-features-plugin': 7.28.5(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-skip-transparent-expression-wrappers': 7.27.1
transitivePeerDependencies:
- supports-color
@@ -5895,47 +5902,47 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-regexp-features-plugin': 7.28.5(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-regexp-features-plugin': 7.28.5(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-create-regexp-features-plugin': 7.28.5(@babel/[email protected])
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/compat-data': 7.29.0
'@babel/core': 7.29.0
'@babel/helper-compilation-targets': 7.28.6
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/helper-validator-option': 7.27.1
'@babel/plugin-bugfix-firefox-class-in-computed-class-key': 7.28.5(@babel/[email protected])
'@babel/plugin-bugfix-safari-class-field-initializer-scope': 7.27.1(@babel/[email protected])
@@ -6009,7 +6016,7 @@ snapshots:
'@babel/[email protected](@babel/[email protected])':
dependencies:
'@babel/core': 7.29.0
'@babel/helper-plugin-utils': 7.28.6
'@babel/helper-plugin-utils': 7.29.7
'@babel/types': 7.29.0
esutils: 2.0.3
@@ -7786,7 +7793,7 @@ snapshots:
'@sableclient/[email protected]': {}
'@sableclient/[email protected].2': {}
'@sableclient/[email protected].3': {}
'@sentry-internal/[email protected]':
dependencies:
@@ -8693,11 +8700,13 @@ snapshots:
[email protected]: {}
emoji[email protected]([email protected]):
dependencies:
emojibase: 15.3.1
emoji[email protected]: {}
emojibase@15.3.1: {}
emojibase[email protected]([email protected]):
dependencies:
emojibase: 17.0.0
[email protected]: {}
[email protected]: {}
+3 -2
View File
@@ -17,6 +17,7 @@ import {
import type { IntermediateRepresentation, OptFn, Opts as LinkifyOpts } from 'linkifyjs';
import Linkify from 'linkify-react';
import type { ChildNode } from 'domhandler';
import emojiRegex from 'emoji-regex';
import * as css from '$styles/CustomHtml.css';
import {
@@ -27,7 +28,7 @@ import {
} from '$utils/matrix';
import { getMemberDisplayName } from '$utils/room';
import type { Nicknames } from '$state/nicknames';
import { EMOJI_PATTERN, sanitizeForRegex, URL_NEG_LB } from '$utils/regex';
import { sanitizeForRegex, URL_NEG_LB } from '$utils/regex';
import { findAndReplace } from '$utils/findAndReplace';
import { onEnterOrSpace } from '$utils/keyboard';
import { copyToClipboard } from '$utils/dom';
@@ -46,7 +47,7 @@ import {
import { isRedundantMatrixUriAnchorText, parseMatrixUri, testMatrixUri } from './matrix-uri';
import { getHexcodeForEmoji, getShortcodeFor } from './emoji';
const EMOJI_REG_G = new RegExp(`${URL_NEG_LB}(${EMOJI_PATTERN})`, 'g');
const EMOJI_REG_G = new RegExp(`${URL_NEG_LB}(${emojiRegex().source})`, 'g');
const shouldLinkifyDomText = (domNode: DOMText): boolean =>
!(domNode.parent && 'name' in domNode.parent && domNode.parent.name === 'code') &&
+3 -1
View File
@@ -1,3 +1,5 @@
import emojiRegex from 'emoji-regex';
/**
* https://www.npmjs.com/package/escape-string-regexp
*/
@@ -22,5 +24,5 @@ export const EMOJI_PATTERN = `[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u
// Thumbs up emoji found to have Variation Selector 16 at the end
// so included variation selector pattern in regex
export const JUMBO_EMOJI_REG = new RegExp(
`^(((${EMOJI_PATTERN})|(:.+?:))(${VARIATION_SELECTOR_PATTERN}|\\s)*){1,10}$`
`^(((${emojiRegex().source})|(:.+?:))(${VARIATION_SELECTOR_PATTERN}|\\s)*){1,10}$`
);