add keyword support, recents overrides, and custom data #37
+63
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
There are 3 main pain points in the current EmojiMart that this PR addressed ::
keywordsfor searching. Thedataformat does not use them, and the config.js file does not leverage them in the search functiondataset to be used.This PR addresses both of these.
Implementation Details
Custom Data
This is an optional property that may be passed in. If it's available; we parse it. If not; behavior should be the same as before.
Keyword Support
Keywords are allowed to be attached to the Emoji Entries in data. If the property present; we'll use them. If not; we'll default to an empty list
Searching keywords is added on top of this "empty-list-default" variable.
Custom Recents
This PR adds a prop that can override which emoji's fill the recents. If present, we override the internal getter. Otherwise; behavior should be unchanged.