This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
PicMo 5.0.0- 2022-05-15 #197
joeattardi
announced in
Announcements
Replies: 1 comment
-
Congrats! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First PicMo release (previously Emoji Button).
@joeattardi/emoji-button
package split into three packages:picmo
- The main emoji picker package, can be used to create inline emoji pickers.@picmo/popup-picker
- The popup picker package, can be used to create popup emoji pickers. Requirespicmo
as a peer dependency.@picmo/renderer-twemoji
- The Twemoji renderer. Requirespicmo
as a peer dependency.Added
data:ready
event signals when the database is initialized and ready to use.createDatabase
: Creates an emoji database ahead of time. This is not required as the picker will initialize the database if one doesn't exist.deleteDatabase
: Deletes an emoji databasedeleteRecents
: Deletes the recent emojis from local storagepicker:open
) and closed (picker:close
).Picker options
className
for applying custom theme styling.initialEmoji
for initial emoji selection.locale
for emoji data locale.messages
for emojibase-data message data.renderer
for specifying emoji rendererPopup options
hideOnClickOutside
to control whether or not the picker should close when clicking outside of it.hideOnEscape
to control whether or not the picker should close when pressing the escape key.showCloseButton
to control whether or not the close button should be shown.triggerElement
to denote the element that should trigger the popup.Changed
picmo
package only creates inline pickers. Popup pickers are created withcreatePopup
from the@picmo/popup-picker
package instead ofcreatePicker
from the main package. This function accepts the same options as the main package for the picker itself, and accepts an additional object with popup specific options.from the
emoji-data
npm package or can be downloaded from a CDN at runtime.@picmo/popup-picker
package.@picmo/twemoji
package.emoji
event changed toemoji:select
.{ data, emoji, hexcode, url, label }
.hidden
event changed to toemoji:hide
in@picmo/popup-picker
.svg
(the default) orpng
..addEventListener
instead of.on
.Picker options
showAnimation
changed toanimate
.custom
format changed.{ name, emoji }
{ data, emoji, label, tags, url }
emojiVersion
is now a number or the stringauth
for automatic detection.recentsCount
changed tomaxRecents
.showCategoryButtons
changed toshowCategoryTabs
.rows
changed tovisibleRows
.Popup options
autoHide
changed tohideOnEmojiSelect
.Removed
Picker options
icons
removed.plugins
removed.twemojiOptions
removed (now controlled by@picmo/renderer-twemoji
package).styleOptions
removed (now controlled by CSS variables in CSS class specified by theclassName
option).This discussion was created from the release PicMo 5.0.0- 2022-05-15.
Beta Was this translation helpful? Give feedback.
All reactions