jm-david / emoji-mart-vue

One component to pick them all 👊🏼
https://jm-david.github.io/emoji-mart-vue
BSD 3-Clause "New" or "Revised" License
603 stars 82 forks source link

Unify emoji index #53

Closed serebrov closed 5 years ago

serebrov commented 5 years ago

Rework EmojiIndex class to be both source of data for picker components and for the search component (before there was similar NimbleEmojiIndex, but it was used only by search - so we had to go through the raw emojis data twice).

Now the EmojiIndex can also be used globally and shared between many picker instances (if there is more that one picker on the page).

The properties, related to emoji data are moved from the picker to EmojiIndex parameters: include, exclude, custom, recent, emojisToShowFiler.

Added recentLength parameter to control how many recent icons to display (before it was hard-coded to perLine * 4).

serebrov commented 5 years ago

Accidentally created against upstream fork (again, sorry).