Export NimbleEmojiIndex

release
Etienne Lemay 2018-04-26 12:10:57 -04:00
parent a8b81f1858
commit 446fdf9544
No known key found for this signature in database
GPG Key ID: EE7CF89146BB28E9
4 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import React from 'react'
import PropTypes from 'prop-types'
import NimbleEmojiIndex from '../../utils/emoji-index'
import NimbleEmojiIndex from '../../utils/emoji-index/nimble-emoji-index'
import { SearchPropTypes, SearchDefaultProps } from '../../utils/shared-props'
export default class NimbleSearch extends React.PureComponent {

View File

@ -1,6 +1,7 @@
import emojiIndex from './utils/parent-emoji-index'
import emojiIndex from './utils/emoji-index/emoji-index'
import store from './utils/store'
import frequently from './utils/frequently'
export { Picker, Emoji, Category } from './components'
export { NimbleEmojiIndex } from './utils/emoji-index/nimble-emoji-index'
export { emojiIndex, store, frequently }

View File

@ -1,9 +1,8 @@
import data from '../data'
import NimbleEmojiIndex from './emoji-index'
import data from '../../data'
import NimbleEmojiIndex from './nimble-emoji-index'
const emojiIndex = new NimbleEmojiIndex(data)
const emojis = emojiIndex.emojis
const emoticons = emojiIndex.emoticons
const { emojis, emoticons } = emojiIndex
function search() {
return emojiIndex.search(...arguments)

View File

@ -1,4 +1,4 @@
import { getData, getSanitizedData, intersect } from '.'
import { getData, getSanitizedData, intersect } from '..'
export default class NimbleEmojiIndex {
constructor(data) {