@layers-app/shared 0.4.6 → 0.4.8

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 (232) hide show
  1. package/dist/assets/default-workspace-avatar.jpg.js +1 -1
  2. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  3. package/dist/components/AliasTextInput/AliasTextInput.js +32 -32
  4. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  5. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  6. package/dist/components/AppContainer/AppContainer.js +82 -70
  7. package/dist/components/AppContainer/AppContainer.module.css.js +20 -10
  8. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
  9. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
  10. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
  11. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  12. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +77 -49
  13. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  14. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +238 -105
  15. package/dist/components/AppContainer/components/Main.js +4 -4
  16. package/dist/components/AppContainer/components/NavbarContent.d.ts.map +1 -1
  17. package/dist/components/AppContainer/components/NavbarContent.js +16 -2
  18. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  19. package/dist/components/AppContainer/components/ToolSidebar.d.ts +5 -0
  20. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  21. package/dist/components/AppContainer/components/ToolSidebar.js +51 -39
  22. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
  23. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  24. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1107 -137
  25. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
  26. package/dist/components/AppContainer/types.d.ts +12 -0
  27. package/dist/components/AppContainer/types.d.ts.map +1 -1
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
  29. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  30. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
  31. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +18 -16
  32. package/dist/components/Chat/ChatInput/index.d.ts +13 -1
  33. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  34. package/dist/components/Chat/ChatInput/index.js +264 -164
  35. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
  36. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
  37. package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
  38. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
  39. package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
  40. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  41. package/dist/components/Chat/ChatMessage/index.js +153 -118
  42. package/dist/components/Chat/MessageActions/index.d.ts +2 -0
  43. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  44. package/dist/components/Chat/MessageActions/index.js +189 -50
  45. package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
  46. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
  47. package/dist/components/Chat/MessageAuthor/index.js +39 -25
  48. package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
  49. package/dist/components/Chat/MessageList/index.d.ts +17 -25
  50. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  51. package/dist/components/Chat/MessageList/index.js +201 -149
  52. package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
  53. package/dist/components/Chat/MessageMeta/index.js +21 -19
  54. package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
  55. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  56. package/dist/components/ColorPicker/ColorPicker.js +81 -76
  57. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +1 -0
  58. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  59. package/dist/components/ColorPicker/ColorPickerToolbar.js +97 -91
  60. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
  61. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  62. package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
  63. package/dist/components/CommentComposer/index.d.ts +1 -1
  64. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  65. package/dist/components/CommentComposer/index.js +70 -68
  66. package/dist/components/CommentComposer/types.d.ts +6 -0
  67. package/dist/components/CommentComposer/types.d.ts.map +1 -1
  68. package/dist/components/CustomKBD/index.js +21 -22
  69. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  70. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  71. package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
  72. package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
  73. package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
  74. package/dist/components/EntityTitle/EntityTitle.js +81 -80
  75. package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
  76. package/dist/components/FormViewer/helpers/conditions.js +33 -17
  77. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
  78. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
  79. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
  80. package/dist/components/NewToolbar/utils.d.ts +12 -0
  81. package/dist/components/NewToolbar/utils.d.ts.map +1 -0
  82. package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
  83. package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
  84. package/dist/components/Notification/InfiniteScroll.js +42 -0
  85. package/dist/components/Notification/Notification.d.ts +4 -1
  86. package/dist/components/Notification/Notification.d.ts.map +1 -1
  87. package/dist/components/Notification/Notification.module.css.js +28 -4
  88. package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
  89. package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
  90. package/dist/components/Notification/atoms/ActionBadge.js +53 -0
  91. package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
  92. package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
  93. package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
  94. package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
  95. package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
  96. package/dist/components/Notification/atoms/InboxIcon.js +33 -0
  97. package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
  98. package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
  99. package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
  100. package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
  101. package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
  102. package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
  103. package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
  104. package/dist/components/Notification/atoms/TabBadge.js +32 -0
  105. package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
  106. package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
  107. package/dist/components/Notification/atoms/UnreadDot.js +23 -0
  108. package/dist/components/Notification/atoms/index.d.ts +5 -0
  109. package/dist/components/Notification/atoms/index.d.ts.map +1 -0
  110. package/dist/components/Notification/hooks/index.d.ts +8 -0
  111. package/dist/components/Notification/hooks/index.d.ts.map +1 -0
  112. package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
  113. package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
  114. package/dist/components/Notification/hooks/useInboxActions.js +58 -0
  115. package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
  116. package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
  117. package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
  118. package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
  119. package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
  120. package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
  121. package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
  122. package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
  123. package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
  124. package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
  125. package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
  126. package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
  127. package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
  128. package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
  129. package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
  130. package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
  131. package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
  132. package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
  133. package/dist/components/Notification/lib/api.d.ts +4 -0
  134. package/dist/components/Notification/lib/api.d.ts.map +1 -0
  135. package/dist/components/Notification/lib/api.js +19 -0
  136. package/dist/components/Notification/lib/index.d.ts +5 -0
  137. package/dist/components/Notification/lib/index.d.ts.map +1 -0
  138. package/dist/components/Notification/lib/notificationText.d.ts +10 -0
  139. package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
  140. package/dist/components/Notification/lib/notificationText.js +131 -0
  141. package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
  142. package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
  143. package/dist/components/Notification/lib/stripHtml.js +6 -0
  144. package/dist/components/Notification/lib/types.d.ts +45 -0
  145. package/dist/components/Notification/lib/types.d.ts.map +1 -0
  146. package/dist/components/Notification/lib/types.js +9 -0
  147. package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
  148. package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
  149. package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
  150. package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
  151. package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
  152. package/dist/components/Notification/molecules/InboxHeader.js +73 -0
  153. package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
  154. package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
  155. package/dist/components/Notification/molecules/InboxTabs.js +60 -0
  156. package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
  157. package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
  158. package/dist/components/Notification/molecules/NotificationActions.js +64 -0
  159. package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
  160. package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
  161. package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
  162. package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
  163. package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
  164. package/dist/components/Notification/molecules/NotificationContent.js +183 -0
  165. package/dist/components/Notification/molecules/index.d.ts +7 -0
  166. package/dist/components/Notification/molecules/index.d.ts.map +1 -0
  167. package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
  168. package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
  169. package/dist/components/Notification/organisms/InboxItem.js +100 -0
  170. package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
  171. package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
  172. package/dist/components/Notification/organisms/InboxPanel.js +99 -0
  173. package/dist/components/Notification/organisms/index.d.ts +3 -0
  174. package/dist/components/Notification/organisms/index.d.ts.map +1 -0
  175. package/dist/components/OnboardingTour/index.d.ts +1 -1
  176. package/dist/components/OnboardingTour/index.d.ts.map +1 -1
  177. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
  178. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
  179. package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
  180. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  181. package/dist/components/modals/RemoveConfirmModal.js +27 -26
  182. package/dist/config/brand.d.ts.map +1 -1
  183. package/dist/config/brand.js +29 -29
  184. package/dist/config/envConfig.d.ts +4 -0
  185. package/dist/config/envConfig.d.ts.map +1 -1
  186. package/dist/config/envConfig.js +29 -28
  187. package/dist/helpers/getFileIcons.js +5 -5
  188. package/dist/helpers/getFileType.d.ts.map +1 -1
  189. package/dist/helpers/getFileType.js +11 -2
  190. package/dist/helpers/platform.d.ts +1 -1
  191. package/dist/helpers/platform.d.ts.map +1 -1
  192. package/dist/helpers/platform.js +1 -0
  193. package/dist/helpers/showNotifications.d.ts +8 -14
  194. package/dist/helpers/showNotifications.d.ts.map +1 -1
  195. package/dist/helpers/showNotifications.js +107 -111
  196. package/dist/helpers/showNotifications.module.css.js +4 -16
  197. package/dist/hooks/useDateUtils.d.ts.map +1 -1
  198. package/dist/hooks/useDateUtils.js +19 -23
  199. package/dist/index.css +1 -1
  200. package/dist/index.js +576 -573
  201. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
  202. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
  203. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
  204. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
  205. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
  206. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
  207. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
  208. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
  209. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
  210. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
  211. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
  212. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
  213. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
  214. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
  215. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
  216. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
  217. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
  218. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
  219. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
  220. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
  221. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
  222. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
  223. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
  224. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
  225. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
  226. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
  227. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
  228. package/package.json +5 -3
  229. package/dist/components/Notification/Notification.js +0 -119
  230. package/dist/components/Notification/NotificationCard.d.ts +0 -10
  231. package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
  232. package/dist/components/Notification/NotificationCard.js +0 -93
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAE,oBAAoB,EAAwB,MAAM,SAAS,CAAC;AA0CrE,eAAO,MAAM,eAAe,GAAI,4EAQ7B,oBAAoB,4CAsctB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAE,oBAAoB,EAAwB,MAAM,SAAS,CAAC;AA0CrE,eAAO,MAAM,eAAe,GAAI,uFAS7B,oBAAoB,4CAuctB,CAAC"}
@@ -1,66 +1,67 @@
1
- import { jsx as r, jsxs as C } from "react/jsx-runtime";
2
- import { useState as Z, useRef as v, useMemo as U, useCallback as ee, useEffect as A } from "react";
3
- import { useTranslation as te } from "react-i18next";
4
- import { Attachment02Icon as oe, Sent02Icon as ne } from "@hugeicons/core-free-icons";
1
+ import { jsx as n, jsxs as C } from "react/jsx-runtime";
2
+ import { useState as ee, useRef as v, useMemo as U, useCallback as te, useEffect as A } from "react";
3
+ import { useTranslation as oe } from "react-i18next";
4
+ import { Attachment02Icon as re, Sent02Icon as ne } from "@hugeicons/core-free-icons";
5
5
  import { HugeiconsIcon as $ } from "@hugeicons/react";
6
- import { Stack as re, Box as se, Group as B, FileButton as ie, ActionIcon as P, UnstyledButton as le, Text as ae, Button as ce, Popover as L } from "@mantine/core";
7
- import { getMaxUploadSize as de } from "../../config/envConfig.js";
6
+ import { Stack as se, Box as ie, Group as B, FileButton as le, ActionIcon as P, UnstyledButton as ae, Text as ce, Button as de, Popover as L } from "@mantine/core";
7
+ import { getMaxUploadSize as me } from "../../config/envConfig.js";
8
8
  import { showErrorNotification as W } from "../../helpers/showNotifications.js";
9
- import { AttachmentsPreview as me } from "../AttachmentsPreview/AttachmentsPreview.js";
10
- import { CommentEditorHandler as ue } from "./CommentEditorHotkeys.js";
11
- import { useVirtualAnchor as fe } from "./useVirtualAnchor.js";
9
+ import { AttachmentsPreview as ue } from "../AttachmentsPreview/AttachmentsPreview.js";
10
+ import { CommentEditorHandler as fe } from "./CommentEditorHotkeys.js";
11
+ import { useVirtualAnchor as pe } from "./useVirtualAnchor.js";
12
12
  import y from "./CommentComposer.module.css.js";
13
- function j(n) {
14
- return "id" in n;
13
+ function j(r) {
14
+ return "id" in r;
15
15
  }
16
- function pe(n) {
17
- return typeof n == "object" && "isTemp" in n;
16
+ function he(r) {
17
+ return typeof r == "object" && "isTemp" in r;
18
18
  }
19
- function he(n) {
20
- const c = URL.createObjectURL(n);
19
+ function ge(r) {
20
+ const c = URL.createObjectURL(r);
21
21
  return {
22
22
  id: `temp-${crypto.randomUUID()}`,
23
- name: n.name,
24
- type: n.type,
25
- size: n.size,
23
+ name: r.name,
24
+ type: r.type,
25
+ size: r.size,
26
26
  url: c,
27
27
  src: c,
28
- isImage: n.type.startsWith("image/"),
28
+ isImage: r.type.startsWith("image/"),
29
29
  isTemp: !0,
30
- raw: n
30
+ raw: r
31
31
  };
32
32
  }
33
- const M = () => de() ?? 5 * 1024 * 1024, ge = 10;
34
- function xe(n, c) {
35
- return n(`composer.${c}`, { defaultValue: "" }) || n(`editor.composer.${c}`);
33
+ const M = () => me() ?? 5 * 1024 * 1024, xe = 10;
34
+ function ye(r, c) {
35
+ return r(`composer.${c}`, { defaultValue: "" }) || r(`editor.composer.${c}`);
36
36
  }
37
- const Ne = ({
38
- children: n,
37
+ const Re = ({
38
+ children: r,
39
39
  onSubmit: c,
40
40
  initialDraft: d,
41
41
  updateLocation: N,
42
42
  onBlur: k,
43
43
  setEdit: R,
44
- ns: S = "comments"
44
+ ns: S = "comments",
45
+ autoFocus: G
45
46
  }) => {
46
- const [m, _] = Z({
47
+ const [m, _] = ee({
47
48
  text: d?.text ?? "",
48
49
  files: d?.files ?? []
49
- }), { t: h } = te(S), G = h(S === "comments" ? "composer.placeholder" : "editor.composer.placeholder"), g = v(null), u = typeof d?.text < "u", a = {
50
+ }), { t: h } = oe(S), X = h(S === "comments" ? "composer.placeholder" : "editor.composer.placeholder"), g = v(null), u = typeof d?.text < "u", a = {
50
51
  text: m.text,
51
52
  files: m.files
52
- }, X = v(null), p = v(null), Y = U(
53
+ }, Y = v(null), p = v(null), V = U(
53
54
  () => ({
54
55
  container: document.createElement("div"),
55
56
  elements: []
56
57
  }),
57
58
  []
58
- ), V = v(null), f = !!N, q = fe({
59
+ ), q = v(null), f = !!N, J = pe({
59
60
  isFloat: f,
60
61
  updateLocation: N,
61
- selectionRef: V,
62
- selectionState: Y
63
- }), I = 10 * 30 * 0.7, b = ee(() => {
62
+ selectionRef: q,
63
+ selectionState: V
64
+ }), I = 10 * 30 * 0.7, b = te(() => {
64
65
  if (!p.current) return;
65
66
  const e = p.current, t = e.querySelector(
66
67
  '[class*="editorWrapper"]'
@@ -88,7 +89,7 @@ const Ne = ({
88
89
  };
89
90
  }
90
91
  }, [f]);
91
- const { textChanged: J, newFiles: K, deletedFiles: D, hasChanges: F } = U(() => {
92
+ const { textChanged: K, newFiles: D, deletedFiles: Q, hasChanges: F } = U(() => {
92
93
  const e = d?.files || [], t = m.files, s = d?.text !== a.text, o = t.filter((i) => i.isTemp), x = new Set(
93
94
  t.filter(
94
95
  (i) => j(i)
@@ -116,9 +117,9 @@ const Ne = ({
116
117
  files: o.files
117
118
  };
118
119
  });
119
- }, Q = (e, t) => {
120
+ }, Z = (e, t) => {
120
121
  e && t((s) => {
121
- const o = s.files, x = ge - o.length, l = [], E = [];
122
+ const o = s.files, x = xe - o.length, l = [], E = [];
122
123
  e.forEach((z) => {
123
124
  z.size > M() ? E.push(z) : l.push(z);
124
125
  }), E.length > 0 && W({
@@ -127,12 +128,12 @@ const Ne = ({
127
128
  maxSize: Math.round(M() / (1024 * 1024))
128
129
  })
129
130
  }), l.length > x && W({
130
- message: xe(h, "uploadErrors.tooManyFiles")
131
+ message: ye(h, "uploadErrors.tooManyFiles")
131
132
  });
132
133
  const i = l.slice(0, x);
133
134
  return {
134
135
  ...s,
135
- files: [...o, ...i.map(he)]
136
+ files: [...o, ...i.map(ge)]
136
137
  };
137
138
  });
138
139
  }, w = async () => {
@@ -140,16 +141,16 @@ const Ne = ({
140
141
  u ? await c({
141
142
  mode: "edit",
142
143
  data: {
143
- textChanged: J,
144
- newFiles: K,
145
- deletedFiles: D,
144
+ textChanged: K,
145
+ newFiles: D,
146
+ deletedFiles: Q,
146
147
  newText: a.text
147
148
  }
148
149
  }) : await c({
149
150
  mode: "create",
150
151
  data: {
151
152
  text: a.text,
152
- files: m.files.filter(pe)
153
+ files: m.files.filter(he)
153
154
  }
154
155
  });
155
156
  } catch {
@@ -164,8 +165,8 @@ const Ne = ({
164
165
  const s = new t.klass();
165
166
  e.append(s), s.select();
166
167
  }), T({ text: "", files: [] }, !0);
167
- }, O = /* @__PURE__ */ r(
168
- re,
168
+ }, O = /* @__PURE__ */ n(
169
+ se,
169
170
  {
170
171
  ref: p,
171
172
  className: `
@@ -178,11 +179,11 @@ const Ne = ({
178
179
  {
179
180
  className: y.composerContainer,
180
181
  style: {
181
- "--placeholder-text": `"${G}"`
182
+ "--placeholder-text": `"${X}"`
182
183
  },
183
184
  children: [
184
- /* @__PURE__ */ r("div", { className: y.editorWrapper, children: /* @__PURE__ */ r(
185
- ue,
185
+ /* @__PURE__ */ n("div", { className: y.editorWrapper, children: /* @__PURE__ */ n(
186
+ fe,
186
187
  {
187
188
  onSubmit: w,
188
189
  editorRef: g,
@@ -193,7 +194,8 @@ const Ne = ({
193
194
  isFloat: f,
194
195
  hasChanges: F,
195
196
  ns: S,
196
- children: n?.({
197
+ forceAutoFocus: G,
198
+ children: r?.({
197
199
  onSubmit: w,
198
200
  handleBlur: () => {
199
201
  },
@@ -204,9 +206,9 @@ const Ne = ({
204
206
  })
205
207
  }
206
208
  ) }),
207
- /* @__PURE__ */ r(se, { h: 10, "data-editor-spacer": !0, tabIndex: 0, style: { width: "100%" } }),
208
- /* @__PURE__ */ r(
209
- me,
209
+ /* @__PURE__ */ n(ie, { h: 10, "data-editor-spacer": !0, tabIndex: 0, style: { width: "100%" } }),
210
+ /* @__PURE__ */ n(
211
+ ue,
210
212
  {
211
213
  files: m.files,
212
214
  mode: "draft",
@@ -227,24 +229,24 @@ const Ne = ({
227
229
  tabIndex: 0,
228
230
  gap: "4px",
229
231
  children: [
230
- /* @__PURE__ */ r(
231
- ie,
232
+ /* @__PURE__ */ n(
233
+ le,
232
234
  {
233
- onChange: (e) => Q(e, T),
235
+ onChange: (e) => Z(e, T),
234
236
  multiple: !0,
235
- children: (e) => /* @__PURE__ */ r(P, { ...e, variant: "subtle", size: "lg", color: "gray", children: /* @__PURE__ */ r(
237
+ children: (e) => /* @__PURE__ */ n(P, { ...e, variant: "subtle", size: "lg", color: "gray", children: /* @__PURE__ */ n(
236
238
  $,
237
239
  {
238
240
  style: { transform: "rotate(35deg)" },
239
- icon: oe,
241
+ icon: re,
240
242
  size: 20
241
243
  }
242
244
  ) })
243
245
  }
244
246
  ),
245
247
  u ? /* @__PURE__ */ C(B, { gap: "8px", children: [
246
- /* @__PURE__ */ r(
247
- le,
248
+ /* @__PURE__ */ n(
249
+ ae,
248
250
  {
249
251
  onClick: H,
250
252
  "data-no-focus": !0,
@@ -255,11 +257,11 @@ const Ne = ({
255
257
  background: "none",
256
258
  border: "none"
257
259
  },
258
- children: /* @__PURE__ */ r(ae, { size: "sm", c: "dimmed", children: h("composer.cancel") })
260
+ children: /* @__PURE__ */ n(ce, { size: "sm", c: "dimmed", children: h("composer.cancel") })
259
261
  }
260
262
  ),
261
- /* @__PURE__ */ r(
262
- ce,
263
+ /* @__PURE__ */ n(
264
+ de,
263
265
  {
264
266
  size: "xs",
265
267
  radius: "md",
@@ -268,7 +270,7 @@ const Ne = ({
268
270
  children: h("composer.save")
269
271
  }
270
272
  )
271
- ] }) : /* @__PURE__ */ r(
273
+ ] }) : /* @__PURE__ */ n(
272
274
  P,
273
275
  {
274
276
  size: "lg",
@@ -276,7 +278,7 @@ const Ne = ({
276
278
  variant: "filled",
277
279
  onClick: w,
278
280
  disabled: !a.text.trim() && a.files.length === 0,
279
- children: /* @__PURE__ */ r($, { icon: ne, size: 20 })
281
+ children: /* @__PURE__ */ n($, { icon: ne, size: 20 })
280
282
  }
281
283
  )
282
284
  ]
@@ -321,10 +323,10 @@ const Ne = ({
321
323
  }
322
324
  },
323
325
  children: [
324
- /* @__PURE__ */ r(L.Target, { children: /* @__PURE__ */ r(
326
+ /* @__PURE__ */ n(L.Target, { children: /* @__PURE__ */ n(
325
327
  "div",
326
328
  {
327
- ref: q,
329
+ ref: J,
328
330
  style: {
329
331
  position: "fixed",
330
332
  width: "5px",
@@ -336,10 +338,10 @@ const Ne = ({
336
338
  }
337
339
  }
338
340
  ) }),
339
- /* @__PURE__ */ r(
341
+ /* @__PURE__ */ n(
340
342
  L.Dropdown,
341
343
  {
342
- ref: X,
344
+ ref: Y,
343
345
  className: y.commentComposerFloat,
344
346
  children: O
345
347
  }
@@ -349,5 +351,5 @@ const Ne = ({
349
351
  ) : O;
350
352
  };
351
353
  export {
352
- Ne as CommentComposer
354
+ Re as CommentComposer
353
355
  };
@@ -34,6 +34,11 @@ export declare namespace CommentComposerTypes {
34
34
  isImage: boolean;
35
35
  isTemp: boolean;
36
36
  raw?: File;
37
+ /** Natural media pixel dimensions when the backend reports them — lets the
38
+ * preview reserve the exact aspect-ratio box so the row doesn't reflow once
39
+ * the media loads. Undefined falls back to a fixed placeholder aspect. */
40
+ width?: number;
41
+ height?: number;
37
42
  }
38
43
  type AnyCommentFile = CommentAttachment;
39
44
  interface CommentDraft {
@@ -82,6 +87,7 @@ export interface CommentComposerBaseProps {
82
87
  initialDraft?: CommentComposerTypes.ComposerInitialDraft;
83
88
  ns?: string;
84
89
  placementData?: PlacementData;
90
+ autoFocus?: boolean;
85
91
  setEdit?: (v: {
86
92
  id: string;
87
93
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/types.ts"],"names":[],"mappings":"AAAA,yBAAiB,oBAAoB,CAAC;IACpC,KAAY,MAAM;QAChB,IAAI,SAAS;QACb,OAAO,YAAY;QACnB,MAAM,WAAW;QACjB,MAAM,WAAW;QACjB,SAAS,cAAc;QACvB,IAAI,SAAS;QACb,IAAI,gBAAgB;QACpB,IAAI,SAAS;QACb,UAAU,eAAe;QACzB,IAAI,SAAS;QACb,OAAO,YAAY;QACnB,IAAI,SAAS;KACd;IAED,UAAiB,qBAAqB;QACpC,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,IAAI,CAAC;QACb,GAAG,EAAE,IAAI,CAAC;KACX;IAED,UAAiB,iBAAiB;QAChC,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;QAChB,GAAG,CAAC,EAAE,IAAI,CAAC;KACZ;IAED,KAAY,cAAc,GAAG,iBAAiB,CAAC;IAE/C,UAAiB,YAAY;QAC3B,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,iBAAiB,EAAE,CAAC;KAC5B;IAED,UAAiB,kBAAkB;QACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;QACrB,UAAU,EAAE,CAAC,CAAC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AAC,oBAAoB,CAAC;IACzD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAAE,CAAC;KAC9C,KAAK,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB;IAClE,cAAc,EAAE,CACd,OAAO,EAAE,cAAc,EACvB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,EACzC,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,KACE,IAAI,CAAC;IAEV,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACnE,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/types.ts"],"names":[],"mappings":"AAAA,yBAAiB,oBAAoB,CAAC;IACpC,KAAY,MAAM;QAChB,IAAI,SAAS;QACb,OAAO,YAAY;QACnB,MAAM,WAAW;QACjB,MAAM,WAAW;QACjB,SAAS,cAAc;QACvB,IAAI,SAAS;QACb,IAAI,gBAAgB;QACpB,IAAI,SAAS;QACb,UAAU,eAAe;QACzB,IAAI,SAAS;QACb,OAAO,YAAY;QACnB,IAAI,SAAS;KACd;IAED,UAAiB,qBAAqB;QACpC,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAA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,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,KACE,IAAI,CAAC;IAEV,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACnE,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,mBAAmB,CAAC"}
@@ -1,40 +1,39 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { Box as f } from "@mantine/core";
3
- import n from "./CustomKBD.module.css.js";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { Box as n } from "@mantine/core";
3
+ import f from "./CustomKBD.module.css.js";
4
4
  const B = ({
5
5
  value: o,
6
6
  miw: r = 31,
7
7
  w: t = 16,
8
8
  mr: e = 0,
9
- fz: s = 12,
10
- fontFamily: m = "Space Mono",
11
- fw: a = 400,
12
- bbw: d = 2,
13
- br: i = 4,
14
- onClick: p = () => {
9
+ fz: m = 12,
10
+ fontFamily: s = "Space Mono",
11
+ fw: i = 400,
12
+ bbw: p = 2,
13
+ br: d = 4,
14
+ onClick: a = () => {
15
15
  },
16
- ...l
17
- }) => /* @__PURE__ */ c(
18
- f,
16
+ ...c
17
+ }) => /* @__PURE__ */ l(
18
+ n,
19
19
  {
20
- ...l,
21
- className: n.root,
22
- onClick: p,
20
+ ...c,
21
+ className: f.root,
22
+ onClick: a,
23
23
  py: 2,
24
24
  miw: r,
25
25
  w: t,
26
26
  mr: e,
27
- fw: a,
28
- fz: s,
27
+ fw: i,
28
+ fz: m,
29
29
  style: {
30
- borderRadius: i,
31
- borderBottomWidth: d,
32
- fontFamily: m
30
+ borderRadius: d,
31
+ borderBottomWidth: p,
32
+ fontFamily: s
33
33
  },
34
34
  children: o
35
35
  }
36
36
  );
37
37
  export {
38
- B as CustomKBD,
39
- B as default
38
+ B as CustomKBD
40
39
  };
@@ -56,5 +56,6 @@ export type EmojiPickerLocales = {
56
56
  gifs?: string;
57
57
  emojiCategory?: Record<string, string>;
58
58
  };
59
+ export declare function useEmojiPickerLocales(override?: EmojiPickerLocales): EmojiPickerLocales;
59
60
  export declare const EmojiPicker: ({ project, value, querySearch, children, onChange, position, popoverProps, showIcons, showColors, showGifs, onSelectGif, defaultActiveTab, showEmojis, withinPortal, locales: _locales, openWhen, triggerRegex, typingSeq, showRemoveButton, keepOpenOnRandom, showRandomButton, closeOnSelect, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
60
61
  //# sourceMappingURL=EmojiPicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAWvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,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