discourse/app/assets/javascripts/float-kit/addon/components
Joffrey JAFFEUX 6740a340ca
DEV: unifies emoji picker (#28277)
The chat emoji picker is renamed emoji-picker, and the old emoji-picker is removed.

This commit doesn't attempt to fully rework a new emoji-picker but instead tries to migrate everything to one picker (the chat one) and add small changes.

Other notable changes:
- all the favorite emojis code has been mixed into one service which is able to store one state per context, favorites emojis will be stored for all topics, and for each chat channel. Meaning that if you always use a specific emoji in a channel, it will only show as favorite emoji in this channel.
- a lot of static code has been removed which should improve initial load perf of discourse. Initially this code was around to improve the performance of the emoji picker rendering.
- the emojis are now stored, once the full list has been loaded, if you close and reopen the picker it won't have to load them again.

List of components:

- `<EmojiPicker />` will render a button which will open a dropdown
- `<EmojiPickerContent />` represents the content of the dropdown alone, it's useful when you want to render a picker from an action which is not the default picker button
- `<EmojiPickerDetached />` just a simple wrapper over `<EmojiPickerContent />` to make it easier to use it with `this.menu.show(...)`

---------

Co-authored-by: Renato Atilio <renatoat@gmail.com>
2025-01-08 11:41:36 +01:00
..
d-button-tooltip.gjs DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
d-default-toast.gjs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
d-float-body.gjs DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
d-float-portal.gjs DEV: allows for multiple menus/tooltips (#26823) 2024-05-07 23:48:44 +02:00
d-headless-menu.gjs DEV: allows for multiple menus/tooltips (#26823) 2024-05-07 23:48:44 +02:00
d-headless-tooltip.gjs DEV: allows for multiple menus/tooltips (#26823) 2024-05-07 23:48:44 +02:00
d-inline-float.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
d-menu.gjs DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
d-menus.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
d-popover.gjs DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
d-toast.gjs DEV: uses swipe-events lib for swipe modifier (#26905) 2024-05-07 17:43:37 +02:00
d-toasts.gjs FEATURE: add progress bar to toast notifications (#26483) 2024-04-05 18:29:11 +08:00
d-tooltip.gjs FIX: correctly destroy menu/tooltip when removed from dom 2024-11-26 15:55:35 +01:00
d-tooltips.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00