perf: reduce size of emoji-mart dep using fork (#841)

This commit is contained in:
Nolan Lawson 2018-12-18 14:40:14 -08:00 committed by GitHub
parent e6ca246527
commit cd44e33a7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 9 deletions

5
package-lock.json generated
View file

@ -3522,9 +3522,8 @@
} }
}, },
"emoji-mart": { "emoji-mart": {
"version": "2.9.2", "version": "github:nolanlawson/emoji-mart#10dc04023031d3b3eebb4e58ddc4a6f33ffa03eb",
"resolved": "https://registry.npmjs.org/emoji-mart/-/emoji-mart-2.9.2.tgz", "from": "github:nolanlawson/emoji-mart#for-pinafore-1"
"integrity": "sha512-5S743OpjFb9nBbbx5F4APWgcp2IOjdT7gLLzu2OBh0k44C3ZoCm+wuIN1llOtj5eosUa3lYqrZWtU/ZiaCULrg=="
}, },
"emoji-regex": { "emoji-regex": {
"version": "7.0.1", "version": "7.0.1",

View file

@ -51,7 +51,7 @@
"compression": "^1.7.3", "compression": "^1.7.3",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"css-loader": "^2.0.1", "css-loader": "^2.0.1",
"emoji-mart": "^2.9.2", "emoji-mart": "github:nolanlawson/emoji-mart#for-pinafore-1",
"emoji-regex": "^7.0.1", "emoji-regex": "^7.0.1",
"encoding": "^0.1.12", "encoding": "^0.1.12",
"escape-html": "^1.0.3", "escape-html": "^1.0.3",

View file

@ -37,10 +37,6 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center center; background-position: center center;
} }
:global(.emoji-container .emoji-mart-emoji-native) {
/* remove if/when https://github.com/missive/emoji-mart/pull/256 is merged */
font-family: PinaforeEmoji, sans-serif;
}
</style> </style>
<script> <script>
import ModalDialog from './ModalDialog.html' import ModalDialog from './ModalDialog.html'

View file

@ -3,7 +3,7 @@
// using `remount` to pass in functions as attributes, since everything is stringified. So // using `remount` to pass in functions as attributes, since everything is stringified. So
// I just fire a global event here when an emoji is clicked. // I just fire a global event here when an emoji is clicked.
import NimblePicker from 'emoji-mart/dist-es/components/picker/nimble-picker' import NimblePicker from 'emoji-mart/dist-modern/components/picker/nimble-picker'
import React from 'react' import React from 'react'
import { emit } from '../_utils/eventBus' import { emit } from '../_utils/eventBus'