emoji-mart
Advanced tools
Comparing version 5.2.1 to 5.2.2
{ | ||
"name": "emoji-mart", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"description": "Emoji picker for the web", | ||
@@ -44,3 +44,2 @@ "license": "MIT", | ||
"autoprefixer": "10.4.4", | ||
"is-emoji-supported": "0.0.5", | ||
"parcel": "2.3.2", | ||
@@ -47,0 +46,0 @@ "preact": "10.6.4" |
@@ -14,2 +14,3 @@ <div align="center"> | ||
- [🕵️♀️ Headless search](#%EF%B8%8F%EF%B8%8F-headless-search) | ||
- [🔬 Get emoji data from native](#-get-emoji-data-from-native) | ||
- [🗺 Internationalization](#-internationalization) | ||
@@ -29,3 +30,3 @@ - [📚 Examples](#-examples) | ||
```sh | ||
yarn install @emoji-mart/data | ||
yarn add @emoji-mart/data | ||
``` | ||
@@ -219,3 +220,3 @@ | ||
## 🕵️♀️ Headless search | ||
You can search without the Picker. Just like the emoji component, `data` needs to be initialized first in order to use the search index. It can also be used to return emoji data when providing a native emoji. | ||
You can search without the Picker. Just like the emoji component, `data` needs to be initialized first in order to use the search index. | ||
@@ -238,5 +239,26 @@ ```js | ||
search('christmas') // => ['🎄', '🇨🇽', '🧑🎄', '🔔', '🤶', '🎁', '☃️', '❄️', '🎅', '⛄'] | ||
search('🤞🏼') // => ['🤞'] | ||
``` | ||
## 🔬 Get emoji data from native | ||
You can get emoji data from a native emoji. This is useful if you want to get the emoji ID from a native emoji. Just like the emoji component, `data` needs to be initialized first in order to retrieve the emoji data. | ||
```js | ||
import data from '@emoji-mart/data' | ||
import { init, getEmojiDataFromNative } from 'emoji-mart' | ||
init({ data }) | ||
getEmojiDataFromNative('🤞🏿').then(console.log) | ||
/* { | ||
aliases: ['hand_with_index_and_middle_fingers_crossed'], | ||
id: 'crossed_fingers', | ||
keywords: ['hand', 'with', 'index', 'and', 'middle', 'good', 'lucky'], | ||
name: 'Crossed Fingers', | ||
native: '🤞🏿', | ||
shortcodes: ':crossed_fingers::skin-tone-6:', | ||
skin: 6, | ||
unified: '1f91e-1f3ff', | ||
} */ | ||
``` | ||
## 🗺 Internationalization | ||
@@ -243,0 +265,0 @@ EmojiMart UI supports [multiple languages](https://github.com/missive/emoji-mart/tree/main/packages/emoji-mart-data/i18n), feel free to open a PR if yours is missing. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1591164
5
8293
293