Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Janci/ps 21122 publish empoji mart #5

Merged
merged 5 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.parcel-cache
coverage
node_modules
packages/**/dist
dist
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn add @emoji-mart/data

```js
import data from '@emoji-mart/data'
import { Picker } from 'emoji-mart'
import { Picker } from '@slidoapp/emoji-mart'

new Picker({ data })
```
Expand All @@ -41,7 +41,7 @@ new Picker({ data })
- **Cons:** Network latency, doesn’t work offline (unless you configure a ServiceWorker)

```js
import { Picker } from 'emoji-mart'
import { Picker } from '@slidoapp/emoji-mart'
new Picker({
data: async () => {
const response = await fetch(
Expand All @@ -58,12 +58,12 @@ In this example data is fetched from a content delivery network, but it could al
## 🏪 Picker
### React
```sh
npm install --save emoji-mart @emoji-mart/data @emoji-mart/react
npm install --save @slidoapp/emoji-mart @emoji-mart/data @slidoapp/emoji-mart-react
```

```js
import data from '@emoji-mart/data'
import Picker from '@emoji-mart/react'
import Picker from '@slidoapp/emoji-mart-react'

function App() {
return (
Expand Down Expand Up @@ -123,7 +123,7 @@ You can use custom emojis by providing an array of categories and their emojis.

```js
import data from '@emoji-mart/data'
import Picker from '@emoji-mart/react'
import Picker from '@slidoapp/emoji-mart-react'

const custom = [
{
Expand Down Expand Up @@ -191,7 +191,7 @@ First, you need to make sure data has been initialized. You need to call this on

```js
import data from '@emoji-mart/data'
import { init } from 'emoji-mart'
import { init } from '@slidoapp/emoji-mart'

init({ data })
```
Expand Down Expand Up @@ -221,7 +221,7 @@ You can search without the Picker. Just like the emoji component, `data` needs t

```js
import data from '@emoji-mart/data'
import { init, SearchIndex } from 'emoji-mart'
import { init, SearchIndex } from '@slidoapp/emoji-mart'

init({ data })

Expand All @@ -242,7 +242,7 @@ You can get emoji data from a native emoji. This is useful if you want to get th

```js
import data from '@emoji-mart/data'
import { init, getEmojiDataFromNative } from 'emoji-mart'
import { init, getEmojiDataFromNative } from '@slidoapp/emoji-mart'

init({ data })

Expand Down
Empty file removed dist/.gitkeep
Empty file.
2 changes: 0 additions & 2 deletions dist/browser.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/browser.js.map

This file was deleted.

178 changes: 0 additions & 178 deletions dist/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.d.ts.map

This file was deleted.

Loading