Releases: serebrov/emoji-mart-vue
Releases · serebrov/emoji-mart-vue
6.0.1
6.0.0
- #53 - do not include all.json by default, remove Emoji and Picker wrappers.
Breaking change, the usage before was like this:
import { Picker, Emoji } from 'emoji-mart-vue-fast'
...
<emoji .../>
<picker .../>
The usage now is this:
import data from '../data/all.json'
import { Picker, Emoji } from 'emoji-mart-vue-fast'
let emojiIndex = new EmojiIndex(data)
...
<emoji :data="emojiIndex" .../>
<picker :data="emojiIndex" .../>
So now the client code has to import the json
file and EmojiIndex
and specify the data
parameter for components. A bit more work, but makes things explicit and the client code is free to use any data json file.