themashcodee / slack-blocks-to-jsx

A library to convert Slack blocks to JSX components to be used with React
https://www.npmjs.com/package/slack-blocks-to-jsx
11 stars 1 forks source link

Emoji names library #7

Closed StephenTangCook closed 12 hours ago

StephenTangCook commented 1 week ago

https://github.com/themashcodee/slack-blocks-to-jsx/blob/9d462cad3719baa2ef7ed85f5243d5c1cfb6616a/src/utils/emojis.ts#L5

For reference, Slack uses the emoji library https://github.com/iamcal/emoji-data (source: https://api.slack.com/reference/surfaces/formatting#emoji). It's not a good idea to try to fill in the "missing emojis" from the node-emoji library as Slack will have a large number of different names in their naming system.

themashcodee commented 1 week ago

Hey @StephenTangCook, Thanks for raising this issue.

You are correct, I should use https://github.com/nulab/emoji-data-ts to parse emojis as it is based on slack emoji data.

themashcodee commented 12 hours ago

resolved in v0.3.3