@picmo/renderer-twemoji
Advanced tools
Changelog
[5.5.0] - 2022-08-16
picmo
] Added a new auto
autofocus option that will choose a target based on available elements.picmo
] Added a global configuration store with an injectStyles
option to control automatic CSS injection.picmo
] Fixed invalid scrollbar CSS properties.@picmo/popup-picker
] Added type="button" to the popup close button to prevent accidental form submission.@picmo/popup-picker
] Focus is returned to the trigger when closing only when pressing Escape or selecting an emojiChangelog
[5.4.0] - 2022-07-30
picmo
] Added new autoFocus
option to better control autofocus behavior (or disable it entirely).picmo
] Deprecated the autoFocusSearch
option in favor of autoFocus
.@picmo/popup-picker
] Upgraded to use the floating-ui library (successor to Popper.js).@picmo/renderer-twemoji
] Made SVG container display: none
to fix popup positioning issues.Changelog
[5.1.1] - 2022-05-30
@picmo/popup-picker
] Fixed issue where the positionCleanup function was not defined when using fixed positioning, leading to a potential exception when closing a popup pickerChangelog
[5.1.0] - 2022-05-22
dataStore
to specify a factory to create the desired data store type.className
to apply additional CSS classes to the popup container (to override the theme or set a z-index
). (#198).Changelog
[5.0.1] - 2022-05-18
showCloseButton: false
set.Changelog
[5.0.0] - 2022-05-15
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. Requires picmo
as a peer dependency.@picmo/renderer-twemoji
- The Twemoji renderer. Requires picmo
as a peer dependency.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
).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 rendererhideOnClickOutside
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.picmo
package only creates inline pickers. Popup pickers are created with createPopup
from the @picmo/popup-picker
package instead of createPicker
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.emoji-data
npm package or can be downloaded from a CDN at runtime.@picmo/popup-picker
package.@picmo/twemoji
package.emoji
event changed to emoji:select
.
{ data, emoji, hexcode, url, label }
.hidden
event changed to to emoji:hide
in @picmo/popup-picker
.svg
(the default) or png
..addEventListener
instead of .on
.showAnimation
changed to animate
.custom
format changed.
{ name, emoji }
{ data, emoji, label, tags, url }
emojiVersion
is now a number or the string auth
for automatic detection.recentsCount
changed to maxRecents
.showCategoryButtons
changed to showCategoryTabs
.rows
changed to visibleRows
.autoHide
changed to hideOnEmojiSelect
.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 the className
option).