UNPKG

@nextcloud/vue

Version:
17 lines (16 loc) 437 B
import c from "emoji-mart-vue-fast/data/all.json"; import { EmojiIndex as a, frequently as t } from "emoji-mart-vue-fast"; const s = function(n, o = 10) { const r = new a(c); if (n) { let e = r.search(`:${n}`, o); return e.length < o && (e = e.concat(r.search(n, o - e.length))), e; } return t.get(o).map((e) => r.emoji(e)) || []; }, f = function(n) { t.add(n); }; export { f as emojiAddRecent, s as emojiSearch };