From 327b2ee45865483618e992f1a8df69dcbc94c268 Mon Sep 17 00:00:00 2001 From: Keith Kurson Date: Mon, 9 Jan 2023 15:04:24 -0800 Subject: [PATCH 1/3] Update twemoji URL --- lib/icon.js | 2 +- package-lock.json | 16 ++++++++-------- package.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/icon.js b/lib/icon.js index 7dd8fa3..af3a6a6 100644 --- a/lib/icon.js +++ b/lib/icon.js @@ -441,7 +441,7 @@ const iconOptions = Object.keys(icons).concat(Object.keys(svgs)); export const Icon = ({ icon, alt, emoji, ...props }) => { if (emoji) { - const parsedEmoji = parse(emoji); + const parsedEmoji = parse(emoji, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' }); return ( =16.8.0", From c4f2c0ac2c45f4967ed5c071b74000d27c85d4c8 Mon Sep 17 00:00:00 2001 From: Keith Kurson Date: Mon, 9 Jan 2023 16:13:29 -0800 Subject: [PATCH 2/3] Update hard-coded entries --- lib/icon.js | 142 ++++++++++++++++++++++++++-------------------------- 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/lib/icon.js b/lib/icon.js index af3a6a6..5976f2a 100644 --- a/lib/icon.js +++ b/lib/icon.js @@ -240,159 +240,159 @@ const svgs = { const icons = { ambulance: - 'https://twemoji.maxcdn.com/v/latest/svg/1f691.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f691.svg', arrowBackward: - 'https://twemoji.maxcdn.com/v/latest/svg/25c0.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/25c0.svg', backhandIndex: - 'https://twemoji.maxcdn.com/v/latest/svg/1f447.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f447.svg', balloon: - 'https://twemoji.maxcdn.com/v/latest/svg/1f388.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f388.svg', bentoBox: - 'https://twemoji.maxcdn.com/v/latest/svg/1f371.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f371.svg', bicep: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4aa.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4aa.svg', blockArrowDown: - 'https://twemoji.maxcdn.com/v/latest/svg/2b07.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/2b07.svg', blockArrowUp: - 'https://twemoji.maxcdn.com/v/latest/svg/2b06.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/2b06.svg', bomb: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4a3.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4a3.svg', boosted: 'https://cdn.glitch.com/d7f4f279-e13b-4330-8422-00b2d9211424%2Fboosted-default.png?v=1583253498622', bouquet: - 'https://twemoji.maxcdn.com/v/latest/svg/1f490.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f490.svg', carpStreamer: - 'https://twemoji.maxcdn.com/v/latest/svg/1f38f.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f38f.svg', clap: - 'https://twemoji.maxcdn.com/v/latest/svg/1f44f.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f44f.svg', clapper: - 'https://twemoji.maxcdn.com/v/latest/svg/1f3ac.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f3ac.svg', coffin: - 'https://twemoji.maxcdn.com/v/latest/svg/26b0.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/26b0.svg', creditCard: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4b3.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4b3.svg', crescentMoon: - 'https://twemoji.maxcdn.com/v/latest/svg/1f319.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f319.svg', crystalBall: - 'https://twemoji.maxcdn.com/v/latest/svg/1f52e.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f52e.svg', cyclone: - 'https://twemoji.maxcdn.com/v/latest/svg/1f300.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f300.svg', dancers: - 'https://twemoji.maxcdn.com/v/latest/svg/1f46f-200d-2640-fe0f.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f46f-200d-2640-fe0f.svg', dev: 'https://cdn.glitch.com/d7f4f279-e13b-4330-8422-00b2d9211424%2Ffooter_icon_dev.png?v=1584034391207', diamondSmall: 'https://cdn.glitch.com/e7e23ba6-c0ec-4a5a-8dcf-b6f61984cea8%2Fdiamond_small.svg?v=1568142112219', dogFace: - 'https://twemoji.maxcdn.com/v/latest/svg/1f436.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f436.svg', earthAsia: - 'https://twemoji.maxcdn.com/v/latest/svg/1f30f.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f30f.svg', email: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4e7.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4e7.svg', eyeglasses: - 'https://twemoji.maxcdn.com/v/latest/svg/1f453.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f453.svg', eyes: - 'https://twemoji.maxcdn.com/v/latest/svg/1f440.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f440.svg', facebook: 'https://cdn.glitch.com/e7e23ba6-c0ec-4a5a-8dcf-b6f61984cea8%2Ffacebook.png?v=1568142112883', faceExpressionless: - 'https://twemoji.maxcdn.com/v/latest/svg/1f611.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f611.svg', faceSlightlySmiling: - 'https://twemoji.maxcdn.com/v/latest/svg/1f642.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f642.svg', fastDown: - 'https://twemoji.maxcdn.com/v/latest/svg/23ec.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/23ec.svg', fastUp: - 'https://twemoji.maxcdn.com/v/latest/svg/23eb.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/23eb.svg', femaleTechnologist: - 'https://twemoji.maxcdn.com/v/latest/svg/1f469-200d-1f4bb.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f469-200d-1f4bb.svg', ferrisWheel: - 'https://twemoji.maxcdn.com/v/latest/svg/1f3a1.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f3a1.svg', fireEngine: - 'https://twemoji.maxcdn.com/v/latest/svg/1f692.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f692.svg', fishingPole: - 'https://twemoji.maxcdn.com/v/latest/svg/1f3a3.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f3a3.svg', framedPicture: - 'https://twemoji.maxcdn.com/v/latest/svg/1f5bc.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f5bc.svg', gift: - 'https://twemoji.maxcdn.com/v/latest/svg/1f381.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f381.svg', ghost: - 'https://twemoji.maxcdn.com/v/latest/svg/1f47b.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f47b.svg', glitchLogo: 'https://cdn.glitch.com/4bca9911-a70a-46cd-b0b2-f1b103c832d9%2FglitchLogo.svg?v=1569963961866', globeWithMeridians: - 'https://twemoji.maxcdn.com/v/latest/svg/1f310.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f310.svg', google: 'https://cdn.glitch.com/e7e23ba6-c0ec-4a5a-8dcf-b6f61984cea8%2Fgoogle.png?v=1568142113626', handshake: - 'https://twemoji.maxcdn.com/v/latest/svg/1f91d.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f91d.svg', helmetWithWhiteCross: - 'https://twemoji.maxcdn.com/v/latest/svg/26d1.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/26d1.svg', herb: - 'https://twemoji.maxcdn.com/v/latest/svg/1f33f.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f33f.svg', hibiscus: - 'https://twemoji.maxcdn.com/v/latest/svg/1f33a.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f33a.svg', horizontalTrafficLight: - 'https://twemoji.maxcdn.com/v/latest/svg/1f6a5.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f6a5.svg', index: - 'https://twemoji.maxcdn.com/v/latest/svg/261d.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/261d.svg', key: - 'https://twemoji.maxcdn.com/v/latest/svg/1f511.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f511.svg', keyboard: - 'https://twemoji.maxcdn.com/v/latest/svg/2328.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/2328.svg', ladyBeetle: - 'https://twemoji.maxcdn.com/v/latest/svg/1f41e.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f41e.svg', lightbulb: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4a1.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4a1.svg', lightningBolt: - 'https://twemoji.maxcdn.com/v/latest/svg/26a1.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/26a1.svg', linkedin: 'https://cdn.glitch.com/d7f4f279-e13b-4330-8422-00b2d9211424%2Ffooter_icon_linkedin.png?v=1584034393831', lock: - 'https://twemoji.maxcdn.com/v/latest/svg/1f512.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f512.svg', loveLetter: - 'https://twemoji.maxcdn.com/v/latest/svg/1f48c.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f48c.svg', mailboxOpen: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4ec.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4ec.svg', microphone: - 'https://twemoji.maxcdn.com/v/latest/svg/1f3a4.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f3a4.svg', mouse: - 'https://twemoji.maxcdn.com/v/latest/svg/1f5b1.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f5b1.svg', musicalKeyboard: - 'https://twemoji.maxcdn.com/v/latest/svg/1f3b9.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f3b9.svg', new: - 'https://twemoji.maxcdn.com/v/latest/svg/1f195.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f195.svg', newspaper: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4f0.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4f0.svg', octagonalSign: - 'https://twemoji.maxcdn.com/v/latest/svg/1f6d1.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f6d1.svg', pager: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4df.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4df.svg', paperclip: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4ce.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4ce.svg', park: - 'https://twemoji.maxcdn.com/v/latest/svg/1f3de.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f3de.svg', party: - 'https://twemoji.maxcdn.com/v/latest/svg/1f389.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f389.svg', playButton: - 'https://twemoji.maxcdn.com/v/latest/svg/25b6.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/25b6.svg', policeOfficer: - 'https://twemoji.maxcdn.com/v/latest/svg/1f46e.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f46e.svg', pushpin: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4cc.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4cc.svg', rainbow: - 'https://twemoji.maxcdn.com/v/latest/svg/1f308.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f308.svg', raisingHandWoman: - 'https://twemoji.maxcdn.com/v/latest/svg/1f64b-200d-2640-fe0f.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f64b-200d-2640-fe0f.svg', refresh: - 'https://twemoji.maxcdn.com/v/latest/svg/1f504.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f504.svg', rocket: - 'https://twemoji.maxcdn.com/v/latest/svg/1f680.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f680.svg', scales: - 'https://twemoji.maxcdn.com/v/latest/svg/2696.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/2696.svg', seedling: - 'https://twemoji.maxcdn.com/v/latest/svg/1f331.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f331.svg', shuffle: - 'https://twemoji.maxcdn.com/v/latest/svg/1f500.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f500.svg', sick: 'https://twemoji.maxcdn.com/v/latest/svg/1f912.svg', slack: @@ -434,7 +434,7 @@ const icons = { wave: 'https://twemoji.maxcdn.com/v/latest/svg/1f44b.svg', zzz: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4a4.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4a4.svg', } const iconOptions = Object.keys(icons).concat(Object.keys(svgs)); From ca82157e942e7f4e50d0a44de0102d01837c04df Mon Sep 17 00:00:00 2001 From: Keith Kurson Date: Mon, 9 Jan 2023 16:27:50 -0800 Subject: [PATCH 3/3] The rest of them --- lib/icon.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/icon.js b/lib/icon.js index 5976f2a..0efdde2 100644 --- a/lib/icon.js +++ b/lib/icon.js @@ -394,45 +394,45 @@ const icons = { shuffle: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f500.svg', sick: - 'https://twemoji.maxcdn.com/v/latest/svg/1f912.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f912.svg', slack: 'https://cdn.glitch.com/e7e23ba6-c0ec-4a5a-8dcf-b6f61984cea8%2Fslack.svg?v=1568142115840', sparkles: - 'https://twemoji.maxcdn.com/v/latest/svg/2728.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/2728.svg', sparklingHeart: - 'https://twemoji.maxcdn.com/v/latest/svg/1f496.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f496.svg', spiralNotePad: - 'https://twemoji.maxcdn.com/v/latest/svg/1f5d2.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f5d2.svg', sunny: - 'https://twemoji.maxcdn.com/v/latest/svg/2600.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/2600.svg', telephone: - 'https://twemoji.maxcdn.com/v/latest/svg/260e.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/260e.svg', television: - 'https://twemoji.maxcdn.com/v/latest/svg/1f4fa.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4fa.svg', thumbsDown: - 'https://twemoji.maxcdn.com/v/latest/svg/1f44e.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f44e.svg', thumbsUp: - 'https://twemoji.maxcdn.com/v/latest/svg/1f44d.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f44d.svg', tokyoTower: - 'https://twemoji.maxcdn.com/v/latest/svg/1f5fc.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f5fc.svg', trafficLight: - 'https://twemoji.maxcdn.com/v/latest/svg/1f6a6.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f6a6.svg', truck: - 'https://twemoji.maxcdn.com/v/latest/svg/1f69a.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f69a.svg', turtle: - 'https://twemoji.maxcdn.com/v/latest/svg/1f422.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f422.svg', twitter: 'https://cdn.glitch.com/d7f4f279-e13b-4330-8422-00b2d9211424%2Ffooter_icon_twitter.png?v=1584034389011', two: - 'https://twemoji.maxcdn.com/v/latest/svg/32-20e3.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/32-20e3.svg', umbrella: - 'https://twemoji.maxcdn.com/v/latest/svg/2602.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/2602.svg', verified: 'https://cdn.glitch.com/e7e23ba6-c0ec-4a5a-8dcf-b6f61984cea8%2Fverified.svg?v=1568142116735', victoryHand: - 'https://twemoji.maxcdn.com/v/latest/svg/270c.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/270c.svg', wave: - 'https://twemoji.maxcdn.com/v/latest/svg/1f44b.svg', + 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f44b.svg', zzz: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/1f4a4.svg', }