Skip to content

Commit

Permalink
Switch to @twemoji/api 15.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ZxMYS committed Aug 14, 2024
1 parent ad33693 commit 92d60c1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# react-twemoji
A simple [React](https://facebook.github.io/react/) wrapper for [Twemoji](https://github.com/twitter/twemoji).
A simple [React](https://facebook.github.io/react/) wrapper for [Twemoji](https://github.com/jdecked/twemoji).
It calls twemoji.parse() to convert emoji characters to Twemoji images.

## Install
Expand Down Expand Up @@ -31,9 +31,9 @@ It outputs the following HTML to DOM,
```html
<div>
<p>
<img draggable="false" class="twemoji" alt="😂" src="https://twemoji.maxcdn.com/2/72x72/1f602.png">
<img draggable="false" class="twemoji" alt="😂" src="https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.1.0/assets/72x72/1f602.png">
<span>
<img draggable="false" class="twemoji" alt="😉" src="https://twemoji.maxcdn.com/2/72x72/1f609.png">
<img draggable="false" class="twemoji" alt="😉" src="https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.1.0/assets/72x72/1f609.png">
</span>
</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-twemoji",
"version": "0.5.0",
"version": "0.6.0",
"description": "A React wrapper for Twemoji",
"keyword": [
"emoji",
Expand Down Expand Up @@ -63,7 +63,7 @@
"dependencies": {
"lodash.isequal": "^4.5.0",
"prop-types": "^15.7.2",
"twemoji": "14.0.1"
"@twemoji/api": "15.1.0"
},
"peerDependencies": {
"react": ">=16.4.2"
Expand Down
2 changes: 1 addition & 1 deletion src/Twemoji/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import isEqual from 'lodash.isequal';
import React from 'react';
import PropTypes from 'prop-types';
import twemoji from 'twemoji';
import twemoji from '@twemoji/api';

export default class Twemoji extends React.Component {
static propTypes = {
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,19 @@
version "1.0.2"
resolved "https://registry.yarnpkg.com/@socket.io/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz#568d9beae00b0d835f4f8c53fd55714986492e61"

"@twemoji/[email protected]":
version "15.1.0"
resolved "https://registry.yarnpkg.com/@twemoji/api/-/api-15.1.0.tgz#66fc74c74accbcb6376d977560a03bba5215923c"
dependencies:
"@twemoji/parser" "15.1.0"
fs-extra "^8.0.1"
jsonfile "^5.0.0"
universalify "^0.1.2"

"@twemoji/[email protected]":
version "15.1.0"
resolved "https://registry.yarnpkg.com/@twemoji/parser/-/parser-15.1.0.tgz#ad83b69fcd1fbcb705022f2b85d73e127ad5f335"

"@types/component-emitter@^1.2.10":
version "1.2.11"
resolved "https://registry.yarnpkg.com/@types/component-emitter/-/component-emitter-1.2.11.tgz#50d47d42b347253817a39709fef03ce66a108506"
Expand Down Expand Up @@ -4794,19 +4807,6 @@ [email protected]:
version "0.0.0"
resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"

[email protected]:
version "14.0.0"
resolved "https://registry.yarnpkg.com/twemoji-parser/-/twemoji-parser-14.0.0.tgz#13dabcb6d3a261d9efbf58a1666b182033bf2b62"

[email protected]:
version "14.0.1"
resolved "https://registry.yarnpkg.com/twemoji/-/twemoji-14.0.1.tgz#0640887ef149403ae577081cbc2480a026e55ed6"
dependencies:
fs-extra "^8.0.1"
jsonfile "^5.0.0"
twemoji-parser "14.0.0"
universalify "^0.1.2"

type-check@~0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"
Expand Down

0 comments on commit 92d60c1

Please sign in to comment.