Skip to content

Commit

Permalink
change(emoji-mart-react): update package and readme to new package st…
Browse files Browse the repository at this point in the history
…ructure

We decided to host our own package on npm, so that others
from Collaboration could benefit from it too.

Related to PS-21122.
  • Loading branch information
JanPodmajersky committed Jun 18, 2024
1 parent 7921068 commit 8d3d7c7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 @slidoapp/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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev": "yarn workspace @emoji-mart/website dev",
"build": "yarn workspace @slidoapp/emoji-mart build",
"build:data": "yarn workspace @emoji-mart/data build",
"build:react": "yarn workspace @emoji-mart/react build",
"build:react": "yarn workspace @slidoapp/emoji-mart-react build",
"build:website": "yarn workspace @emoji-mart/website build",
"check:types": "tsc",
"prettier": "prettier --check .",
Expand Down
7 changes: 4 additions & 3 deletions packages/emoji-mart-react/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# `@emoji-mart/react`
# `@slidoapp/emoji-mart-react`

A React wrapper for [EmojiMart](https://missiveapp.com/open/emoji-mart).
This is a fork of Emoji Mart, done by [slidoapp](https://github.com/slidoapp/emoji-mart/), which fixes some a11y issues.

## 🧑‍💻 Usage
```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
8 changes: 4 additions & 4 deletions packages/emoji-mart-react/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@emoji-mart/react",
"version": "1.1.1",
"name": "@slidoapp/emoji-mart-react",
"version": "1.1.2",
"description": "React wrapper for Emoji Mart; the emoji picker for the web.",
"license": "MIT",
"homepage": "https://missiveapp.com/open/emoji-mart",
"repository": {
"type": "git",
"url": "https://github.com/missive/emoji-mart",
"url": "https://github.com/slidoapp/emoji-mart",
"directory": "packages/emoji-mart-react"
},
"source": "react.tsx",
Expand All @@ -18,7 +18,7 @@
"prepublishOnly": "yarn build"
},
"peerDependencies": {
"emoji-mart": "^5.2",
"@slidoapp/emoji-mart": "^5.6",
"react": "^16.8 || ^17 || ^18"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/emoji-mart-react/react.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-nocheck
import React, { useEffect, useRef } from 'react'
import { Picker } from 'emoji-mart'
import { Picker } from '@slidoapp/emoji-mart'

export default function EmojiPicker(props) {
const ref = useRef(null)
Expand Down
4 changes: 2 additions & 2 deletions packages/emoji-mart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ npm install --save @slidoapp/emoji-mart @emoji-mart/data @slidoapp/emoji-mart-re

```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 @@ -124,7 +124,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

0 comments on commit 8d3d7c7

Please sign in to comment.