@layers-app/shared 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  3. package/dist/components/AppContainer/AppContainer.js +72 -79
  4. package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
  5. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
  7. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
  9. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/Header.js +6 -5
  11. package/dist/components/AppContainer/components/Main.js +4 -4
  12. package/dist/components/AppContainer/components/SidebarToggleButton.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/SidebarToggleButton.js +25 -16
  14. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  15. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  16. package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
  17. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  18. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
  19. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  21. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  22. package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
  23. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  24. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  25. package/dist/components/AppContainer/types.d.ts +1 -0
  26. package/dist/components/AppContainer/types.d.ts.map +1 -1
  27. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  28. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  29. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -33
  30. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
  32. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  33. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +54 -36
  34. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  35. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +2 -0
  36. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  37. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +84 -37
  38. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
  39. package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
  40. package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
  41. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  42. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
  43. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  44. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
  45. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +7 -7
  46. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  47. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +138 -84
  48. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
  49. package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
  50. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  51. package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
  52. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
  53. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +15 -0
  54. package/dist/components/Chat/CallMessage/index.d.ts +21 -0
  55. package/dist/components/Chat/CallMessage/index.d.ts.map +1 -0
  56. package/dist/components/Chat/CallMessage/index.js +49 -0
  57. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +9 -0
  58. package/dist/components/Chat/ChatBubble/index.d.ts +14 -0
  59. package/dist/components/Chat/ChatBubble/index.d.ts.map +1 -0
  60. package/dist/components/Chat/ChatBubble/index.js +32 -0
  61. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +17 -0
  62. package/dist/components/Chat/ChatHeader/index.d.ts +42 -0
  63. package/dist/components/Chat/ChatHeader/index.d.ts.map +1 -0
  64. package/dist/components/Chat/ChatHeader/index.js +78 -0
  65. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +49 -0
  66. package/dist/components/Chat/ChatInput/index.d.ts +74 -0
  67. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -0
  68. package/dist/components/Chat/ChatInput/index.js +288 -0
  69. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
  70. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
  71. package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
  72. package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +15 -0
  73. package/dist/components/Chat/ChatLayout/index.d.ts +17 -0
  74. package/dist/components/Chat/ChatLayout/index.d.ts.map +1 -0
  75. package/dist/components/Chat/ChatLayout/index.js +43 -0
  76. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +21 -0
  77. package/dist/components/Chat/ChatMessage/index.d.ts +47 -0
  78. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -0
  79. package/dist/components/Chat/ChatMessage/index.js +206 -0
  80. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +11 -0
  81. package/dist/components/Chat/ChatPill/index.d.ts +12 -0
  82. package/dist/components/Chat/ChatPill/index.d.ts.map +1 -0
  83. package/dist/components/Chat/ChatPill/index.js +21 -0
  84. package/dist/components/Chat/DayMeta/index.d.ts +11 -0
  85. package/dist/components/Chat/DayMeta/index.d.ts.map +1 -0
  86. package/dist/components/Chat/DayMeta/index.js +9 -0
  87. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +17 -0
  88. package/dist/components/Chat/DialogItem/index.d.ts +41 -0
  89. package/dist/components/Chat/DialogItem/index.d.ts.map +1 -0
  90. package/dist/components/Chat/DialogItem/index.js +107 -0
  91. package/dist/components/Chat/DialogList/DialogList.module.css.js +7 -0
  92. package/dist/components/Chat/DialogList/index.d.ts +11 -0
  93. package/dist/components/Chat/DialogList/index.d.ts.map +1 -0
  94. package/dist/components/Chat/DialogList/index.js +19 -0
  95. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +13 -0
  96. package/dist/components/Chat/MediaDocument/index.d.ts +15 -0
  97. package/dist/components/Chat/MediaDocument/index.d.ts.map +1 -0
  98. package/dist/components/Chat/MediaDocument/index.js +73 -0
  99. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +7 -0
  100. package/dist/components/Chat/MessageActions/index.d.ts +23 -0
  101. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -0
  102. package/dist/components/Chat/MessageActions/index.js +68 -0
  103. package/dist/components/Chat/MessageAuthor/index.d.ts +20 -0
  104. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -0
  105. package/dist/components/Chat/MessageAuthor/index.js +36 -0
  106. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +7 -0
  107. package/dist/components/Chat/MessageForward/index.d.ts +13 -0
  108. package/dist/components/Chat/MessageForward/index.d.ts.map +1 -0
  109. package/dist/components/Chat/MessageForward/index.js +30 -0
  110. package/dist/components/Chat/MessageList/MessageList.module.css.js +21 -0
  111. package/dist/components/Chat/MessageList/index.d.ts +39 -0
  112. package/dist/components/Chat/MessageList/index.d.ts.map +1 -0
  113. package/dist/components/Chat/MessageList/index.js +159 -0
  114. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +13 -0
  115. package/dist/components/Chat/MessageMeta/index.d.ts +16 -0
  116. package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -0
  117. package/dist/components/Chat/MessageMeta/index.js +33 -0
  118. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +15 -0
  119. package/dist/components/Chat/MessageReactions/index.d.ts +32 -0
  120. package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -0
  121. package/dist/components/Chat/MessageReactions/index.js +72 -0
  122. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +15 -0
  123. package/dist/components/Chat/MessageReply/index.d.ts +15 -0
  124. package/dist/components/Chat/MessageReply/index.d.ts.map +1 -0
  125. package/dist/components/Chat/MessageReply/index.js +40 -0
  126. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +11 -0
  127. package/dist/components/Chat/MessageStatus/index.d.ts +14 -0
  128. package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -0
  129. package/dist/components/Chat/MessageStatus/index.js +68 -0
  130. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +11 -0
  131. package/dist/components/Chat/ServiceMessage/index.d.ts +13 -0
  132. package/dist/components/Chat/ServiceMessage/index.d.ts.map +1 -0
  133. package/dist/components/Chat/ServiceMessage/index.js +21 -0
  134. package/dist/components/Chat/UnreadSeparator/index.d.ts +11 -0
  135. package/dist/components/Chat/UnreadSeparator/index.d.ts.map +1 -0
  136. package/dist/components/Chat/UnreadSeparator/index.js +13 -0
  137. package/dist/components/Chat/colors.d.ts +7 -0
  138. package/dist/components/Chat/colors.d.ts.map +1 -0
  139. package/dist/components/Chat/colors.js +30 -0
  140. package/dist/components/Chat/icons.d.ts +9 -0
  141. package/dist/components/Chat/icons.d.ts.map +1 -0
  142. package/dist/components/Chat/icons.js +49 -0
  143. package/dist/components/Chat/index.d.ts +24 -0
  144. package/dist/components/Chat/index.d.ts.map +1 -0
  145. package/dist/components/Chat/mock-data.d.ts +32 -0
  146. package/dist/components/Chat/mock-data.d.ts.map +1 -0
  147. package/dist/components/Chat/types.d.ts +159 -0
  148. package/dist/components/Chat/types.d.ts.map +1 -0
  149. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
  150. package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
  151. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  152. package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
  153. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  154. package/dist/components/ColorPicker/ColorPickerList.js +81 -68
  155. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  156. package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
  157. package/dist/components/ColorPicker/icons.js +5 -5
  158. package/dist/components/ColorPicker/types.d.ts +6 -0
  159. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  160. package/dist/components/ColorPicker/types.js +53 -11
  161. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  162. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  163. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  164. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  165. package/dist/components/CommentComposer/types.js +9 -0
  166. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  167. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  168. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  169. package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
  170. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  171. package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
  172. package/dist/components/EmojiPicker/EmojiPicker.d.ts +23 -1
  173. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  174. package/dist/components/EmojiPicker/EmojiPicker.js +126 -88
  175. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  176. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  177. package/dist/components/EmojiPicker/IconsPanel.js +28 -25
  178. package/dist/components/EntityIcon.d.ts +1 -0
  179. package/dist/components/EntityIcon.d.ts.map +1 -1
  180. package/dist/components/EntityIcon.js +90 -33
  181. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  182. package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
  183. package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
  184. package/dist/components/ErrorPage/components/Error403.js +25 -21
  185. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  186. package/dist/components/ErrorPage/index.d.ts +5 -1
  187. package/dist/components/ErrorPage/index.d.ts.map +1 -1
  188. package/dist/components/ErrorPage/index.js +17 -10
  189. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  190. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  191. package/dist/components/FilePicker/FilePicker.js +135 -161
  192. package/dist/components/FilePicker/FilePicker.module.css.js +8 -12
  193. package/dist/components/FilePicker/FilePickerGallery.js +13 -13
  194. package/dist/components/FilePicker/FilePickerGiphy.js +4 -4
  195. package/dist/components/FilePicker/FilePickerGoogleDrive.js +3 -3
  196. package/dist/components/FilePicker/FilePickerUnsplash.js +18 -18
  197. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  198. package/dist/components/FilePicker/FilePickerUpload.js +55 -47
  199. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  200. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  201. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  202. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  203. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  204. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  205. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  206. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  207. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  208. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  209. package/dist/components/Loaders/styles.module.css.js +6 -6
  210. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  211. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  212. package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
  213. package/dist/components/NavMenu/NavMenu.d.ts +7 -1
  214. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  215. package/dist/components/NavMenu/NavMenu.js +54 -44
  216. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  217. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  218. package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
  219. package/dist/components/NavMenu/types.d.ts +4 -0
  220. package/dist/components/NavMenu/types.d.ts.map +1 -1
  221. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  222. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  223. package/dist/components/Notification/Notification.module.css.js +1 -1
  224. package/dist/components/PillTabs/PillTabs.d.ts +19 -0
  225. package/dist/components/PillTabs/PillTabs.d.ts.map +1 -0
  226. package/dist/components/PillTabs/PillTabs.js +50 -0
  227. package/dist/components/PillTabs/PillTabs.module.css.js +11 -0
  228. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  229. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  230. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  231. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  232. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  233. package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
  234. package/dist/components/modals/RemoveConfirmModal.js +1 -1
  235. package/dist/components/table/FrontTable.d.ts.map +1 -1
  236. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  237. package/dist/config/envConfig.d.ts +2 -0
  238. package/dist/config/envConfig.d.ts.map +1 -1
  239. package/dist/config/envConfig.js +41 -37
  240. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  241. package/dist/helpers/showNotifications.d.ts +15 -0
  242. package/dist/helpers/showNotifications.d.ts.map +1 -1
  243. package/dist/helpers/showNotifications.js +114 -72
  244. package/dist/helpers/showNotifications.module.css.js +16 -4
  245. package/dist/hooks/useUiPref.d.ts +2 -0
  246. package/dist/hooks/useUiPref.d.ts.map +1 -0
  247. package/dist/hooks/useUiPref.js +80 -0
  248. package/dist/index.css +1 -1
  249. package/dist/index.d.ts +4 -0
  250. package/dist/index.d.ts.map +1 -1
  251. package/dist/index.js +588 -527
  252. package/dist/lang/locales/ui_en.json.js +5 -5
  253. package/dist/lang/locales/ui_es.json.js +1 -1
  254. package/dist/lang/locales/ui_ru.json.js +1 -1
  255. package/docs/README.md +499 -499
  256. package/package.json +78 -75
@@ -1,38 +1,46 @@
1
- import { jsxs as j, jsx as o } from "react/jsx-runtime";
2
- import { useState as d, useMemo as $, useEffect as v } from "react";
3
- import { useTranslation as A } from "react-i18next";
4
- import { Popover as k, Center as E, Tabs as t, Flex as T, Button as G } from "@mantine/core";
5
- import { IconEntity as J } from "../ProjectIcon/ProjectIcon.js";
6
- import { EmojiPanel as K } from "./EmojiPanel.js";
7
- import { IconsPanel as U } from "./IconsPanel.js";
8
- import f from "./EmojiPicker.module.css.js";
9
- const ee = ({
10
- project: C,
11
- value: i,
12
- querySearch: l,
13
- children: N,
1
+ import { jsxs as b, jsx as i } from "react/jsx-runtime";
2
+ import { useState as d, useMemo as U, useEffect as N } from "react";
3
+ import { useTranslation as V } from "react-i18next";
4
+ import { Popover as j, Center as X, Tabs as o, Flex as P, Button as Y } from "@mantine/core";
5
+ import { getEnvConfig as Z } from "../../config/envConfig.js";
6
+ import { usePlatform as q } from "../../hooks/usePlatform.js";
7
+ import { FilePickerGiphy as S } from "../FilePicker/FilePickerGiphy.js";
8
+ import { IconEntity as W } from "../ProjectIcon/ProjectIcon.js";
9
+ import { EmojiPanel as _ } from "./EmojiPanel.js";
10
+ import { IconsPanel as ee } from "./IconsPanel.js";
11
+ import l from "./EmojiPicker.module.css.js";
12
+ const de = ({
13
+ project: R,
14
+ value: s,
15
+ querySearch: c,
16
+ children: w,
14
17
  onChange: p,
15
- position: R = "bottom-start",
16
- popoverProps: P,
18
+ position: D = "bottom-start",
19
+ popoverProps: k,
17
20
  showIcons: u,
18
- showColors: D,
19
- defaultActiveTab: I = null,
20
- showEmojis: s = !0,
21
- withinPortal: w = !1,
22
- locales: h,
23
- openWhen: g = "click",
24
- triggerRegex: b = /(^|\s):([^\s:]{1,})$/,
25
- typingSeq: c,
26
- showRemoveButton: L = !0,
27
- keepOpenOnRandom: M = !1
21
+ showColors: I,
22
+ showGifs: E,
23
+ onSelectGif: F,
24
+ defaultActiveTab: L = null,
25
+ showEmojis: n = !0,
26
+ withinPortal: M = !1,
27
+ locales: g,
28
+ openWhen: h = "click",
29
+ triggerRegex: y = /(^|\s):([^\s:]{1,})$/,
30
+ typingSeq: m,
31
+ showRemoveButton: z = !0,
32
+ keepOpenOnRandom: A = !1,
33
+ showRandomButton: B = !0,
34
+ closeOnSelect: v = !0
28
35
  }) => {
29
- const { t: e } = A("ui"), [n, r] = d(!1), [O, y] = d(I), [z, B] = d(i || null), [x, F] = d(null), a = $(() => ({
36
+ const { t: e } = V("ui"), G = q(), x = !!E && G.has("giphy") && Z().media?.giphyEnabled !== !1, [f, r] = d(!1), [H, T] = d(L), [O, Q] = d(s || null), [C, $] = d(null), t = U(() => ({
30
37
  emojis: e("emojis"),
31
38
  remove: e("remove"),
32
39
  search: e("search"),
33
40
  random: e("random"),
34
41
  searchResults: e("emojiPicker.searchResults"),
35
42
  icons: e("emojiPicker.icons"),
43
+ gifs: e("emojiPicker.gifs"),
36
44
  searchNoResults: e("emojiPicker.searchNoResults"),
37
45
  chooseColor: e("emojiPicker.chooseColor"),
38
46
  emojiCategory: {
@@ -46,34 +54,34 @@ const ee = ({
46
54
  symbols: e("emojiPicker.categories.symbols"),
47
55
  flags: e("emojiPicker.categories.flags"),
48
56
  additional: e("emojiPicker.categories.additional"),
49
- ...h?.emojiCategory
57
+ ...g?.emojiCategory
50
58
  },
51
- ...h
52
- }), [e, h]);
53
- v(() => {
54
- const m = u && J.parse(i)?.icon ? "icons" : s ? "emojis" : null;
55
- !n && m && y(m);
56
- }, [n, s, u, i]), v(() => {
57
- if (g !== "realtime" || typeof c != "number" || x === c) return;
58
- F(c);
59
- const m = l ?? "", Q = !!s && b.test(m);
60
- r(Q);
59
+ ...g
60
+ }), [e, g]);
61
+ N(() => {
62
+ const a = u && W.parse(s)?.icon ? "icons" : n ? "emojis" : null;
63
+ !f && a && T(a);
64
+ }, [f, n, u, s]), N(() => {
65
+ if (h !== "realtime" || typeof m != "number" || C === m) return;
66
+ $(m);
67
+ const a = c ?? "", K = !!n && y.test(a);
68
+ r(K);
61
69
  }, [
62
- g,
70
+ h,
71
+ m,
72
+ C,
63
73
  c,
64
- x,
65
- l,
66
- b,
67
- s
74
+ y,
75
+ n
68
76
  ]);
69
- const H = typeof l == "string";
70
- return /* @__PURE__ */ j(
71
- k,
77
+ const J = typeof c == "string";
78
+ return /* @__PURE__ */ b(
79
+ j,
72
80
  {
73
- withinPortal: w,
74
- opened: n,
81
+ withinPortal: M,
82
+ opened: f,
75
83
  onChange: r,
76
- position: R,
84
+ position: D,
77
85
  radius: "var(--mantine-spacing-sm)",
78
86
  styles: {
79
87
  dropdown: {
@@ -96,20 +104,20 @@ const ee = ({
96
104
  ]
97
105
  }
98
106
  },
99
- ...P || {},
107
+ ...k || {},
100
108
  children: [
101
- /* @__PURE__ */ o(k.Target, { children: /* @__PURE__ */ o(
102
- E,
109
+ /* @__PURE__ */ i(j.Target, { children: /* @__PURE__ */ i(
110
+ X,
103
111
  {
104
- onClick: g === "click" && !P?.disabled ? () => r(!n) : void 0,
105
- children: N ?? z
112
+ onClick: h === "click" && !k?.disabled ? () => r(!f) : void 0,
113
+ children: w ?? O
106
114
  }
107
115
  ) }),
108
- /* @__PURE__ */ o(k.Dropdown, { w: "380px", children: /* @__PURE__ */ j(
109
- t,
116
+ /* @__PURE__ */ i(j.Dropdown, { w: "380px", children: /* @__PURE__ */ b(
117
+ o,
110
118
  {
111
- value: O,
112
- onChange: y,
119
+ value: H,
120
+ onChange: T,
113
121
  keepMounted: !1,
114
122
  h: "100%",
115
123
  styles: {
@@ -126,8 +134,8 @@ const ee = ({
126
134
  }
127
135
  },
128
136
  children: [
129
- !H && /* @__PURE__ */ j(
130
- t.List,
137
+ !J && /* @__PURE__ */ b(
138
+ o.List,
131
139
  {
132
140
  style: {
133
141
  gap: "4px"
@@ -135,28 +143,38 @@ const ee = ({
135
143
  h: 54,
136
144
  px: 8,
137
145
  children: [
138
- s && /* @__PURE__ */ o(
139
- t.Tab,
146
+ n && /* @__PURE__ */ i(
147
+ o.Tab,
140
148
  {
141
- className: f.originalTab,
149
+ className: l.originalTab,
142
150
  h: "100%",
143
151
  p: 0,
144
152
  value: "emojis",
145
- children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: a.emojis })
153
+ children: /* @__PURE__ */ i(P, { className: l.customTab, px: "sm", h: 36, children: t.emojis })
146
154
  }
147
155
  ),
148
- u && /* @__PURE__ */ o(
149
- t.Tab,
156
+ u && /* @__PURE__ */ i(
157
+ o.Tab,
150
158
  {
151
- className: f.originalTab,
159
+ className: l.originalTab,
152
160
  h: "100%",
153
161
  p: 0,
154
162
  value: "icons",
155
- children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: a.icons })
163
+ children: /* @__PURE__ */ i(P, { className: l.customTab, px: "sm", h: 36, children: t.icons })
156
164
  }
157
165
  ),
158
- !!String(i) && L && /* @__PURE__ */ o(
159
- G,
166
+ x && /* @__PURE__ */ i(
167
+ o.Tab,
168
+ {
169
+ className: l.originalTab,
170
+ h: "100%",
171
+ p: 0,
172
+ value: "gifs",
173
+ children: /* @__PURE__ */ i(P, { className: l.customTab, px: "sm", h: 36, children: t.gifs })
174
+ }
175
+ ),
176
+ !!String(s) && z && /* @__PURE__ */ i(
177
+ Y,
160
178
  {
161
179
  variant: "subtle",
162
180
  fz: "sm",
@@ -167,40 +185,60 @@ const ee = ({
167
185
  color: "var(--mantine-color-gray-light-color)",
168
186
  onClick: () => p?.(""),
169
187
  style: { marginLeft: "auto" },
170
- children: a.remove
188
+ children: t.remove
171
189
  }
172
190
  )
173
191
  ]
174
192
  }
175
193
  ),
176
- /* @__PURE__ */ o(t.Panel, { mah: 470, style: { overflow: "auto" }, value: "emojis", children: /* @__PURE__ */ o(
177
- K,
194
+ /* @__PURE__ */ i(o.Panel, { mah: 470, style: { overflow: "auto" }, value: "emojis", children: /* @__PURE__ */ i(
195
+ _,
178
196
  {
179
197
  onChange: p,
180
- value: i,
181
- querySearch: l,
182
- locales: a,
183
- setRandomIcon: B,
184
- onClose: () => r(!1)
198
+ value: s,
199
+ querySearch: c,
200
+ locales: t,
201
+ setRandomIcon: Q,
202
+ showRandomButton: B,
203
+ onClose: v ? () => r(!1) : () => {
204
+ }
185
205
  }
186
206
  ) }),
187
- /* @__PURE__ */ o(
188
- t.Panel,
207
+ /* @__PURE__ */ i(
208
+ o.Panel,
189
209
  {
190
210
  mah: 470,
191
211
  h: "100%",
192
212
  style: { overflow: "auto" },
193
213
  value: "icons",
194
- children: /* @__PURE__ */ o(
195
- U,
214
+ children: /* @__PURE__ */ i(
215
+ ee,
196
216
  {
197
- project: C,
217
+ project: R,
198
218
  onChange: p,
199
- value: i,
200
- locales: a,
201
- showColors: D,
202
- keepOpenOnRandom: M,
203
- onClose: () => r(!1)
219
+ value: s,
220
+ locales: t,
221
+ showColors: I,
222
+ keepOpenOnRandom: A,
223
+ onClose: v ? () => r(!1) : () => {
224
+ }
225
+ }
226
+ )
227
+ }
228
+ ),
229
+ x && /* @__PURE__ */ i(
230
+ o.Panel,
231
+ {
232
+ mah: 470,
233
+ style: { overflow: "auto" },
234
+ p: "sm",
235
+ value: "gifs",
236
+ children: /* @__PURE__ */ i(
237
+ S,
238
+ {
239
+ onChange: (a) => {
240
+ F?.(a), r(!1);
241
+ }
204
242
  }
205
243
  )
206
244
  }
@@ -213,5 +251,5 @@ const ee = ({
213
251
  );
214
252
  };
215
253
  export {
216
- ee as EmojiPicker
254
+ de as EmojiPicker
217
255
  };
@@ -1,13 +1,13 @@
1
- const o = "_item_o1hlf_1", a = "_randomIcon_o1hlf_26", n = "_originalTab_o1hlf_30", t = "_customTab_o1hlf_36", _ = {
1
+ const o = "_item_s1gb0_1", s = "_randomIcon_s1gb0_51", a = "_originalTab_s1gb0_59", n = "_customTab_s1gb0_71", t = {
2
2
  item: o,
3
- randomIcon: a,
4
- originalTab: n,
5
- customTab: t
3
+ randomIcon: s,
4
+ originalTab: a,
5
+ customTab: n
6
6
  };
7
7
  export {
8
- t as customTab,
9
- _ as default,
8
+ n as customTab,
9
+ t as default,
10
10
  o as item,
11
- n as originalTab,
12
- a as randomIcon
11
+ a as originalTab,
12
+ s as randomIcon
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"IconsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/IconsPanel.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA0BjD,eAAO,MAAM,UAAU,sHASlB,IAAI,CACL,gBAAgB,EAChB,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAC5D,GAAG;IACF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,6CAwSF,CAAC"}
1
+ {"version":3,"file":"IconsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/IconsPanel.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA0BjD,eAAO,MAAM,UAAU,sHASlB,IAAI,CACL,gBAAgB,EAChB,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAC5D,GAAG;IACF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,6CA4SF,CAAC"}
@@ -1,23 +1,23 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { memo as M, useState as x, useEffect as U, useCallback as V, useMemo as j } from "react";
2
+ import { memo as M, useState as k, useEffect as U, useCallback as V, useMemo as j } from "react";
3
3
  import { useTranslation as G } from "react-i18next";
4
- import { Search01Icon as Q, ShuffleIcon as Y } from "@hugeicons/core-free-icons";
4
+ import { Search01Icon as Q, ShuffleIcon as W } from "@hugeicons/core-free-icons";
5
5
  import { HugeiconsIcon as L } from "@hugeicons/react";
6
- import { useEvent as _ } from "@layers-app/draggable-ui";
7
- import { useMantineTheme as J, parseThemeColor as K, darken as W, Stack as y, Text as b, Flex as z, FocusTrap as X, TextInput as Z, Tooltip as ee, ActionIcon as oe, Box as te, Paper as E, SimpleGrid as N } from "@mantine/core";
6
+ import { useEvent as Y } from "@layers-app/draggable-ui";
7
+ import { useMantineTheme as _, parseThemeColor as J, darken as K, Stack as y, Text as b, Flex as z, FocusTrap as X, TextInput as Z, Tooltip as ee, ActionIcon as oe, Box as te, Paper as E, SimpleGrid as N } from "@mantine/core";
8
8
  import { groupBy as re } from "lodash-es";
9
9
  import { DEFAULT_VALUES as ie } from "../../constants.js";
10
10
  import { ColorPicker as ne } from "../ColorPicker/ColorPicker.js";
11
11
  import { NoData as ce } from "../NoData/NoData.js";
12
- import { IconEntity as I, IconType as A } from "../ProjectIcon/ProjectIcon.js";
12
+ import { IconEntity as w, IconType as A } from "../ProjectIcon/ProjectIcon.js";
13
13
  import { customIcons as D } from "./custom-icons/customIcons.js";
14
14
  import { getIconsList as F, getRandomIcon as ae } from "./utils.js";
15
15
  import h from "./EmojiPicker.module.css.js";
16
16
  async function le(a, c, l = 500) {
17
17
  const u = [], p = a.length;
18
18
  for (let r = 0; r < p; r += l) {
19
- const w = a.slice(r, r + l).filter(c);
20
- u.push(...w), await new Promise((f) => setTimeout(f, 0));
19
+ const I = a.slice(r, r + l).filter(c);
20
+ u.push(...I), await new Promise((f) => setTimeout(f, 0));
21
21
  }
22
22
  return u;
23
23
  }
@@ -31,7 +31,7 @@ const Ce = M(
31
31
  project: r,
32
32
  keepOpenOnRandom: C = !1
33
33
  }) => {
34
- const w = J(), [f, R] = x(""), { t: k } = G("ui"), [P, $] = x(
34
+ const I = _(), [f, R] = k(""), { t: x } = G("ui"), [P, $] = k(
35
35
  []
36
36
  );
37
37
  U(() => {
@@ -45,7 +45,7 @@ const Ce = M(
45
45
  );
46
46
  })();
47
47
  }, [r]);
48
- const [T, S] = x([]), H = V(
48
+ const [T, S] = k([]), H = V(
49
49
  async (o) => {
50
50
  const t = o.currentTarget.value;
51
51
  R(t);
@@ -57,39 +57,41 @@ const Ce = M(
57
57
  S(v.map((d) => d.n));
58
58
  },
59
59
  [r]
60
- ), i = I.parse(u), g = _((o) => {
60
+ ), i = w.parse(u), g = Y((o) => {
61
61
  const t = o.currentTarget.getAttribute("data-icon");
62
62
  t && (l?.(
63
- I.stringify({
63
+ w.stringify({
64
64
  icon: t.replace("i:", ""),
65
65
  color: i?.color,
66
66
  type: i?.type || A.FILLED
67
67
  })
68
68
  ), a || p());
69
- }), n = K({
69
+ }), n = J({
70
70
  color: i?.color || ie.COLORS[0],
71
- theme: w
71
+ theme: I
72
72
  }), O = j(() => n.isThemeColor ? {
73
73
  "--icon-color": `var(--mantine-color-${n.color}-filled)`,
74
74
  "--icon-color-hover": `var(--mantine-color-${n.color}-filled-hover)`
75
75
  } : {
76
76
  "--icon-color": n.value,
77
- "--icon-color-hover": W(n.value, 0.2)
77
+ "--icon-color-hover": K(n.value, 0.2)
78
78
  }, [n]), q = async () => {
79
79
  const o = await ae(r);
80
- S([]), l?.(I.stringify({ icon: o, color: i?.color })), !a && !C && p();
80
+ S([]), l?.(w.stringify({ icon: o, color: i?.color })), !a && !C && p();
81
81
  };
82
82
  return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
83
83
  a && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
84
- /* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: c?.chooseColor || k("chooseColor") }),
84
+ /* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: c?.chooseColor || x("chooseColor") }),
85
85
  /* @__PURE__ */ e(
86
86
  ne,
87
87
  {
88
88
  swatchSize: 24,
89
- gap: 4,
89
+ fullWidth: !0,
90
+ w: "100%",
91
+ px: 4,
90
92
  value: n.color,
91
93
  onChange: (o) => l?.(
92
- I.stringify({
94
+ w.stringify({
93
95
  color: o,
94
96
  icon: i?.icon,
95
97
  type: i?.type || A.FILLED
@@ -130,7 +132,7 @@ const Ce = M(
130
132
  radius: "var(--mantine-radius-default)"
131
133
  }
132
134
  ) }),
133
- /* @__PURE__ */ e(ee, { withArrow: !0, label: c?.random || k("random"), children: /* @__PURE__ */ e(
135
+ /* @__PURE__ */ e(ee, { withArrow: !0, label: c?.random || x("random"), children: /* @__PURE__ */ e(
134
136
  oe,
135
137
  {
136
138
  h: 36,
@@ -144,7 +146,7 @@ const Ce = M(
144
146
  {
145
147
  color: "var(--mantine-color-default-color)",
146
148
  size: 20,
147
- icon: Y
149
+ icon: W
148
150
  }
149
151
  )
150
152
  }
@@ -158,8 +160,8 @@ const Ce = M(
158
160
  style: {
159
161
  overflowY: "auto"
160
162
  },
161
- gap: 16,
162
- children: f ? /* @__PURE__ */ m(y, { flex: 1, align: "stretch", children: [
163
+ gap: "xs",
164
+ children: f ? /* @__PURE__ */ m(y, { flex: 1, align: "stretch", gap: 0, children: [
163
165
  /* @__PURE__ */ e(
164
166
  E,
165
167
  {
@@ -214,12 +216,13 @@ const Ce = M(
214
216
  E,
215
217
  {
216
218
  bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
217
- px: 4,
218
- py: 6,
219
+ px: 6,
220
+ py: 2,
221
+ h: 23,
219
222
  pos: "sticky",
220
223
  top: -1,
221
224
  style: { zIndex: 1 },
222
- children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: o.id || k("noCat") })
225
+ children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: o.id || x("noCat") })
223
226
  }
224
227
  ),
225
228
  /* @__PURE__ */ e(N, { cols: 10, spacing: 0, children: o.icons.map((t) => {
@@ -9,6 +9,7 @@ export interface EntityIconData {
9
9
  isFolder?: boolean;
10
10
  pathById?: string[];
11
11
  isOpen?: boolean;
12
+ avatarUrl?: string | null;
12
13
  }
13
14
  export declare const EntityIcon: <T extends EntityIconData>({ item, }: {
14
15
  item?: T;
@@ -1 +1 @@
1
- {"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AA2BA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAQD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,WAElD;IACD,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,mDAwIA,CAAC"}
1
+ {"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AAgCA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAQD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,WAElD;IACD,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,mDAmMA,CAAC"}