@layers-app/shared 0.4.5 → 0.4.7

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 (296) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AppContainer/AppContainer.module.css.js +22 -12
  3. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
  4. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
  5. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
  6. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  7. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
  8. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +237 -95
  10. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  11. package/dist/components/AppContainer/components/Header.js +6 -5
  12. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
  14. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
  15. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  16. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1111 -131
  17. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
  18. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  19. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
  21. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  22. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  23. package/dist/components/AppContainer/types.d.ts +1 -0
  24. package/dist/components/AppContainer/types.d.ts.map +1 -1
  25. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  26. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +2 -0
  27. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
  28. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +22 -17
  29. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +15 -0
  30. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +1 -0
  31. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +36 -0
  32. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
  33. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +14 -0
  34. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +1 -0
  35. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +31 -0
  36. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  37. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +172 -120
  38. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  39. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  40. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
  41. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +18 -0
  42. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +1 -0
  43. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +35 -0
  44. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +33 -0
  45. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -0
  46. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +70 -0
  47. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
  48. package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
  49. package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
  50. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  51. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
  52. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  53. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
  54. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +32 -28
  55. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  56. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
  57. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
  58. package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
  59. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  60. package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
  61. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
  62. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
  63. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
  64. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
  65. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -32
  66. package/dist/components/Chat/ChatInput/index.d.ts +29 -1
  67. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  68. package/dist/components/Chat/ChatInput/index.js +178 -118
  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 +4 -4
  73. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +2 -2
  74. package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
  75. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  76. package/dist/components/Chat/ChatMessage/index.js +136 -118
  77. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
  78. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
  79. package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
  80. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +3 -3
  81. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
  82. package/dist/components/Chat/MessageActions/index.d.ts +7 -0
  83. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  84. package/dist/components/Chat/MessageActions/index.js +40 -36
  85. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
  86. package/dist/components/Chat/MessageList/MessageList.module.css.js +10 -6
  87. package/dist/components/Chat/MessageList/index.d.ts +30 -3
  88. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  89. package/dist/components/Chat/MessageList/index.js +154 -66
  90. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
  91. package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
  92. package/dist/components/Chat/MessageMeta/index.js +21 -19
  93. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +8 -8
  94. package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
  95. package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
  96. package/dist/components/Chat/MessageReactions/index.js +60 -28
  97. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
  98. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -6
  99. package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
  100. package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
  101. package/dist/components/Chat/MessageStatus/index.js +49 -34
  102. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
  103. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
  104. package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
  105. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  106. package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
  107. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  108. package/dist/components/ColorPicker/ColorPicker.js +81 -76
  109. package/dist/components/ColorPicker/ColorPicker.module.css.js +24 -24
  110. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  111. package/dist/components/ColorPicker/ColorPickerList.js +43 -41
  112. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  113. package/dist/components/ColorPicker/ColorPickerToolbar.js +52 -50
  114. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  115. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  116. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  117. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  118. package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
  119. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  120. package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
  121. package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
  122. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  123. package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
  124. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  125. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  126. package/dist/components/EmojiPicker/IconsPanel.js +28 -25
  127. package/dist/components/EntityIcon.d.ts +1 -0
  128. package/dist/components/EntityIcon.d.ts.map +1 -1
  129. package/dist/components/EntityIcon.js +80 -32
  130. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  131. package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
  132. package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
  133. package/dist/components/ErrorPage/components/Error403.js +25 -21
  134. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  135. package/dist/components/ErrorPage/index.d.ts +5 -1
  136. package/dist/components/ErrorPage/index.d.ts.map +1 -1
  137. package/dist/components/ErrorPage/index.js +17 -10
  138. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  139. package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
  140. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  141. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  142. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  143. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  144. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  145. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  146. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  147. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  148. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
  149. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
  150. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
  151. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  152. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  153. package/dist/components/Loaders/styles.module.css.js +6 -6
  154. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  155. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  156. package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
  157. package/dist/components/NavMenu/NavMenu.d.ts +7 -1
  158. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  159. package/dist/components/NavMenu/NavMenu.js +54 -44
  160. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  161. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  162. package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
  163. package/dist/components/NavMenu/types.d.ts +4 -0
  164. package/dist/components/NavMenu/types.d.ts.map +1 -1
  165. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  166. package/dist/components/NewToolbar/utils.d.ts +12 -0
  167. package/dist/components/NewToolbar/utils.d.ts.map +1 -0
  168. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  169. package/dist/components/Notification/Notification.module.css.js +1 -1
  170. package/dist/components/OnboardingTour/index.d.ts +1 -1
  171. package/dist/components/OnboardingTour/index.d.ts.map +1 -1
  172. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
  173. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
  174. package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
  175. package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
  176. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  177. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  178. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  179. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  180. package/dist/components/VideoPlayer/VideoPlayer.d.ts +24 -0
  181. package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +1 -0
  182. package/dist/components/VideoPlayer/VideoPlayer.js +727 -0
  183. package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +8 -0
  184. package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +1 -0
  185. package/dist/components/VideoPlayer/components/MobileDrawer/index.js +67 -0
  186. package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +7 -0
  187. package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +1 -0
  188. package/dist/components/VideoPlayer/components/SelectListOptionButton.js +44 -0
  189. package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +9 -0
  190. package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +1 -0
  191. package/dist/components/VideoPlayer/components/StoryboardPreview.js +38 -0
  192. package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +33 -0
  193. package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +1 -0
  194. package/dist/components/VideoPlayer/components/VideoCustomControls.js +601 -0
  195. package/dist/components/VideoPlayer/components/VideoIcons.d.ts +25 -0
  196. package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +1 -0
  197. package/dist/components/VideoPlayer/components/VideoIcons.js +145 -0
  198. package/dist/components/VideoPlayer/components/VideoMenu.d.ts +27 -0
  199. package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +1 -0
  200. package/dist/components/VideoPlayer/components/VideoMenu.js +77 -0
  201. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +17 -0
  202. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +1 -0
  203. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +289 -0
  204. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +10 -0
  205. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +1 -0
  206. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +55 -0
  207. package/dist/components/VideoPlayer/components/VideoSelect.d.ts +10 -0
  208. package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +1 -0
  209. package/dist/components/VideoPlayer/components/VideoSelect.js +168 -0
  210. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +12 -0
  211. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +1 -0
  212. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +48 -0
  213. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +25 -0
  214. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -0
  215. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +384 -0
  216. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +21 -0
  217. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +1 -0
  218. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +264 -0
  219. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +10 -0
  220. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +1 -0
  221. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +39 -0
  222. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +14 -0
  223. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -0
  224. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +360 -0
  225. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +16 -0
  226. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +1 -0
  227. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +14 -0
  228. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +1 -0
  229. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +4 -0
  230. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +1 -0
  231. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +14 -0
  232. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +22 -0
  233. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +1 -0
  234. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +211 -0
  235. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +11 -0
  236. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +1 -0
  237. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +41 -0
  238. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +10 -0
  239. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +1 -0
  240. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +69 -0
  241. package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +21 -0
  242. package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +1 -0
  243. package/dist/components/VideoPlayer/hooks/useStoryboard.js +91 -0
  244. package/dist/components/VideoPlayer/index.d.ts +11 -0
  245. package/dist/components/VideoPlayer/index.d.ts.map +1 -0
  246. package/dist/components/VideoPlayer/types.d.ts +101 -0
  247. package/dist/components/VideoPlayer/types.d.ts.map +1 -0
  248. package/dist/components/VideoPlayer/utils/chapters.d.ts +8 -0
  249. package/dist/components/VideoPlayer/utils/chapters.d.ts.map +1 -0
  250. package/dist/components/VideoPlayer/utils/chapters.js +38 -0
  251. package/dist/components/VideoPlayer/utils/storyboard.d.ts +5 -0
  252. package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +1 -0
  253. package/dist/components/VideoPlayer/utils/storyboard.js +47 -0
  254. package/dist/components/VideoPlayer/utils/subtitles.d.ts +18 -0
  255. package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +1 -0
  256. package/dist/components/VideoPlayer/utils/subtitles.js +23 -0
  257. package/dist/components/VideoPlayer/utils/touch.d.ts +3 -0
  258. package/dist/components/VideoPlayer/utils/touch.d.ts.map +1 -0
  259. package/dist/components/VideoPlayer/utils/touch.js +5 -0
  260. package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +10 -0
  261. package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +1 -0
  262. package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +22 -0
  263. package/dist/components/VideoPlayer/utils/videoSettings.d.ts +69 -0
  264. package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +1 -0
  265. package/dist/components/VideoPlayer/utils/videoSettings.js +90 -0
  266. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  267. package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
  268. package/dist/components/table/FrontTable.d.ts.map +1 -1
  269. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  270. package/dist/config/brand.d.ts.map +1 -1
  271. package/dist/config/brand.js +29 -29
  272. package/dist/config/envConfig.d.ts +4 -0
  273. package/dist/config/envConfig.d.ts.map +1 -1
  274. package/dist/config/envConfig.js +41 -37
  275. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  276. package/dist/helpers/showNotifications.d.ts +9 -0
  277. package/dist/helpers/showNotifications.d.ts.map +1 -1
  278. package/dist/helpers/showNotifications.js +96 -58
  279. package/dist/helpers/showNotifications.module.css.js +1 -1
  280. package/dist/hooks/useDateUtils.d.ts.map +1 -1
  281. package/dist/hooks/useDateUtils.js +19 -23
  282. package/dist/hooks/useUiPref.d.ts +2 -0
  283. package/dist/hooks/useUiPref.d.ts.map +1 -0
  284. package/dist/hooks/useUiPref.js +80 -0
  285. package/dist/index.css +1 -1
  286. package/dist/index.d.ts +3 -0
  287. package/dist/index.d.ts.map +1 -1
  288. package/dist/index.js +582 -558
  289. package/dist/lang/locales/ui_en.json.js +1 -1
  290. package/dist/lang/locales/ui_es.json.js +1 -1
  291. package/dist/lang/locales/ui_ru.json.js +1 -1
  292. package/dist/videoSettings/createVideoSettingsDataSource.d.ts +19 -0
  293. package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +1 -0
  294. package/dist/videoSettings/createVideoSettingsDataSource.js +127 -0
  295. package/docs/README.md +499 -499
  296. package/package.json +79 -78
@@ -1,19 +1,21 @@
1
- import { jsxs as n, Fragment as C, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as o, Fragment as P, jsx as a } from "react/jsx-runtime";
2
+ import { useState as M } from "react";
2
3
  import { Download01Icon as g } from "@hugeicons/core-free-icons";
3
- import { HugeiconsIcon as x } from "@hugeicons/react";
4
- import { Stack as v, Grid as z, Box as h, Image as F, LoadingOverlay as y, ActionIcon as c, CloseIcon as f, Flex as I, Text as N } from "@mantine/core";
5
- import { useDisclosure as M } from "@mantine/hooks";
6
- import { getFileIcons as P } from "../../helpers/getFileIcons.js";
7
- import { getFileType as A } from "../../helpers/getFileType.js";
8
- import { AttachmentsGalleryModal as B } from "../AttachmentsGalleryModal/AttachmentsGalleryModal.js";
9
- import a from "./AttachmentsPreview.module.css.js";
10
- const U = ({
11
- files: o,
12
- onRemove: i,
4
+ import { HugeiconsIcon as u } from "@hugeicons/react";
5
+ import { Stack as y, Box as m, Image as z, LoadingOverlay as v, ActionIcon as l, Grid as I, CloseIcon as N, Flex as b, Text as C } from "@mantine/core";
6
+ import { useDisclosure as O } from "@mantine/hooks";
7
+ import { formatBytes as S } from "../../helpers/formatBytes.js";
8
+ import { getFileIcons as G } from "../../helpers/getFileIcons.js";
9
+ import { getFileType as L } from "../../helpers/getFileType.js";
10
+ import { AttachmentsGalleryModal as $ } from "../AttachmentsGalleryModal/AttachmentsGalleryModal.js";
11
+ import r from "./AttachmentsPreview.module.css.js";
12
+ const k = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='m3 16 5-5 4 4'/%3E%3Cpath d='m14 14 2-2 5 5'/%3E%3Cline x1='3' y1='3' x2='21' y2='21'/%3E%3C/svg%3E", Y = ({
13
+ files: s,
14
+ onRemove: c,
13
15
  mode: t,
14
- parentIsExisting: u
16
+ parentIsExisting: p
15
17
  }) => {
16
- const [T, { open: w, close: b }] = M(!1), s = o.filter((e) => e.isImage), d = o.filter((e) => !e.isImage), D = s.map((e) => ({
18
+ const [E, { open: x, close: T }] = O(!1), [B, D] = M(0), n = s.filter((e) => e.isImage), h = s.filter((e) => !e.isImage), F = n.map((e) => ({
17
19
  id: e.id,
18
20
  Url: e.url,
19
21
  contentType: e.type || "image/png",
@@ -30,43 +32,98 @@ const U = ({
30
32
  version: 1,
31
33
  deleted: !1,
32
34
  deletedAt: /* @__PURE__ */ new Date()
33
- })), m = s.every((e) => !e.isTemp), k = () => {
34
- m && w();
35
+ })), d = n.every((e) => !e.isTemp), f = (e) => {
36
+ d && (D(e), x());
35
37
  };
36
- return o.length === 0 ? null : /* @__PURE__ */ n(C, { children: [
37
- /* @__PURE__ */ n(v, { gap: "10px", w: "100%", tabIndex: 0, children: [
38
- s.length > 0 && /* @__PURE__ */ r(z, { gap: "xs", children: s.map((e) => {
39
- const l = o.indexOf(e);
40
- return /* @__PURE__ */ r(z.Col, { span: "content", children: /* @__PURE__ */ n(
41
- h,
38
+ return s.length === 0 ? null : /* @__PURE__ */ o(P, { children: [
39
+ /* @__PURE__ */ o(y, { gap: "10px", w: "100%", tabIndex: 0, children: [
40
+ t === "view" && n.length >= 2 && /* @__PURE__ */ a(
41
+ "div",
42
+ {
43
+ className: r.mediaGrid,
44
+ "data-odd": n.length % 2 === 1,
45
+ children: n.map((e, i) => /* @__PURE__ */ o(
46
+ m,
47
+ {
48
+ pos: "relative",
49
+ className: `${r.imagePreviewWrapper} ${r.mediaTile}`,
50
+ children: [
51
+ /* @__PURE__ */ a(
52
+ z,
53
+ {
54
+ src: e.src,
55
+ fallbackSrc: k,
56
+ fit: "cover",
57
+ className: `${r.tileImg} ${r.mediaFadeIn}`,
58
+ style: { cursor: d ? "zoom-in" : "default" },
59
+ onClick: () => f(i)
60
+ }
61
+ ),
62
+ /* @__PURE__ */ a(
63
+ v,
64
+ {
65
+ visible: e.isTemp && p,
66
+ loaderProps: { size: 20 }
67
+ }
68
+ ),
69
+ !e.isTemp && /* @__PURE__ */ a(
70
+ l,
71
+ {
72
+ component: "a",
73
+ size: "22px",
74
+ href: e.url,
75
+ download: e.name,
76
+ rel: "noopener noreferrer",
77
+ variant: "subtle",
78
+ color: "white",
79
+ bg: "var(--mantine-color-dark-filled, #2E2E2E)",
80
+ className: r.downloadButton,
81
+ children: /* @__PURE__ */ a(u, { size: 16, icon: g })
82
+ }
83
+ )
84
+ ]
85
+ },
86
+ e.id
87
+ ))
88
+ }
89
+ ),
90
+ !(t === "view" && n.length >= 2) && n.length > 0 && /* @__PURE__ */ a(I, { gap: "xs", children: n.map((e, i) => {
91
+ const w = s.indexOf(e);
92
+ return /* @__PURE__ */ a(I.Col, { span: "content", children: /* @__PURE__ */ o(
93
+ m,
42
94
  {
43
95
  pos: "relative",
44
- className: a.imagePreviewWrapper,
45
- style: { width: "var(--attachment-image-w, 56px)", height: "var(--attachment-image-h, 56px)" },
96
+ className: r.imagePreviewWrapper,
97
+ style: {
98
+ width: "var(--attachment-image-w, 56px)",
99
+ height: "var(--attachment-image-h, 56px)"
100
+ },
46
101
  children: [
47
- /* @__PURE__ */ r(
48
- F,
102
+ /* @__PURE__ */ a(
103
+ z,
49
104
  {
50
105
  src: e.src,
106
+ fallbackSrc: k,
107
+ className: r.mediaFadeIn,
51
108
  w: "100%",
52
109
  h: "100%",
53
110
  fit: "cover",
54
111
  radius: "sm",
55
112
  style: {
56
- cursor: m ? "zoom-in" : "default"
113
+ cursor: d ? "zoom-in" : "default"
57
114
  },
58
- onClick: () => k()
115
+ onClick: () => f(i)
59
116
  }
60
117
  ),
61
- /* @__PURE__ */ r(
62
- y,
118
+ /* @__PURE__ */ a(
119
+ v,
63
120
  {
64
- visible: e.isTemp && t === "view" && u,
121
+ visible: e.isTemp && t === "view" && p,
65
122
  loaderProps: { size: 20 }
66
123
  }
67
124
  ),
68
- t === "view" && !e.isTemp && /* @__PURE__ */ r(
69
- c,
125
+ t === "view" && !e.isTemp && /* @__PURE__ */ a(
126
+ l,
70
127
  {
71
128
  component: "a",
72
129
  size: "20px",
@@ -78,54 +135,54 @@ const U = ({
78
135
  top: 2,
79
136
  right: 2,
80
137
  bg: "var(--mantine-color-dark-filled, #2E2E2E)",
81
- className: a.downloadButton,
82
- children: /* @__PURE__ */ r(x, { size: 16, icon: g })
138
+ className: r.downloadButton,
139
+ children: /* @__PURE__ */ a(u, { size: 16, icon: g })
83
140
  }
84
141
  ),
85
- t === "draft" && i && /* @__PURE__ */ r(
86
- c,
142
+ t === "draft" && c && /* @__PURE__ */ a(
143
+ l,
87
144
  {
88
145
  size: "20px",
89
146
  radius: "xl",
90
147
  variant: "filled",
91
- onMouseDown: (p) => p.preventDefault(),
148
+ onMouseDown: (A) => A.preventDefault(),
92
149
  pos: "absolute",
93
150
  color: "dark",
94
- onClick: () => i(l),
95
- className: a.deleteButton,
96
- children: /* @__PURE__ */ r(f, { size: "12px" })
151
+ onClick: () => c(w),
152
+ className: r.deleteButton,
153
+ children: /* @__PURE__ */ a(N, { size: "12px" })
97
154
  }
98
155
  )
99
156
  ]
100
157
  }
101
158
  ) }, e.id);
102
159
  }) }),
103
- d.length > 0 && /* @__PURE__ */ r(
104
- h,
160
+ h.length > 0 && /* @__PURE__ */ a(
161
+ m,
105
162
  {
106
163
  w: "100%",
107
- className: a.filePreviewList,
108
- "data-many": d.length >= 4,
109
- children: d.map((e) => {
110
- const l = o.indexOf(e);
111
- return /* @__PURE__ */ n(h, { className: a.filePreviewWrapper, children: [
112
- /* @__PURE__ */ r(
113
- y,
164
+ className: r.filePreviewList,
165
+ "data-many": t === "draft" && h.length >= 4,
166
+ children: h.map((e) => {
167
+ const i = s.indexOf(e);
168
+ return /* @__PURE__ */ o(m, { className: r.filePreviewWrapper, children: [
169
+ /* @__PURE__ */ a(
170
+ v,
114
171
  {
115
- visible: e.isTemp && t === "view" && u,
172
+ visible: e.isTemp && t === "view" && p,
116
173
  loaderProps: { size: 20 }
117
174
  }
118
175
  ),
119
- /* @__PURE__ */ n(
120
- I,
176
+ /* @__PURE__ */ o(
177
+ b,
121
178
  {
122
179
  align: "center",
123
180
  justify: "space-between",
124
181
  wrap: "nowrap",
125
182
  gap: 2,
126
183
  children: [
127
- /* @__PURE__ */ n(
128
- I,
184
+ /* @__PURE__ */ o(
185
+ b,
129
186
  {
130
187
  align: "center",
131
188
  gap: "xs",
@@ -133,19 +190,19 @@ const U = ({
133
190
  flex: 1,
134
191
  miw: 0,
135
192
  children: [
136
- P(
137
- A(e.type, !1, e.name),
193
+ G(
194
+ L(e.type, !1, e.name),
138
195
  !1,
139
196
  36
140
197
  ),
141
- /* @__PURE__ */ n(v, { gap: 0, flex: 1, miw: 0, children: [
142
- /* @__PURE__ */ r(
143
- N,
198
+ /* @__PURE__ */ o(y, { gap: 0, flex: 1, miw: 0, children: [
199
+ /* @__PURE__ */ a(
200
+ C,
144
201
  {
145
202
  size: "sm",
146
203
  truncate: !0,
147
204
  title: e.name,
148
- className: a.fileDownloadName,
205
+ className: r.fileDownloadName,
149
206
  component: "a",
150
207
  href: e.url,
151
208
  download: e.name,
@@ -154,16 +211,13 @@ const U = ({
154
211
  children: e.name
155
212
  }
156
213
  ),
157
- /* @__PURE__ */ n(N, { size: "xs", c: "dimmed", children: [
158
- Math.round(e.size / 1024),
159
- " KB"
160
- ] })
214
+ /* @__PURE__ */ a(C, { size: "xs", className: r.fileSize, children: S(e.size, 1) })
161
215
  ] })
162
216
  ]
163
217
  }
164
218
  ),
165
- t === "view" && !e.isTemp && /* @__PURE__ */ r(
166
- c,
219
+ t === "view" && !e.isTemp && /* @__PURE__ */ a(
220
+ l,
167
221
  {
168
222
  component: "a",
169
223
  href: e.url,
@@ -172,24 +226,24 @@ const U = ({
172
226
  variant: "subtle",
173
227
  color: "gray",
174
228
  size: "sm",
175
- className: a.downloadButton,
176
- children: /* @__PURE__ */ r(x, { size: 16, icon: g })
229
+ className: r.downloadButton,
230
+ children: /* @__PURE__ */ a(u, { size: 16, icon: g })
177
231
  }
178
232
  )
179
233
  ]
180
234
  }
181
235
  ),
182
- t === "draft" && i && /* @__PURE__ */ r(
183
- c,
236
+ t === "draft" && c && /* @__PURE__ */ a(
237
+ l,
184
238
  {
185
239
  size: "xs",
186
240
  radius: "xl",
187
- onMouseDown: (p) => p.preventDefault(),
241
+ onMouseDown: (w) => w.preventDefault(),
188
242
  variant: "filled",
189
243
  color: "dark",
190
- onClick: () => i(l),
191
- className: a.deleteButton,
192
- children: /* @__PURE__ */ r(f, { size: "12px" })
244
+ onClick: () => c(i),
245
+ className: r.deleteButton,
246
+ children: /* @__PURE__ */ a(N, { size: "12px" })
193
247
  }
194
248
  )
195
249
  ] }, e.id);
@@ -197,16 +251,17 @@ const U = ({
197
251
  }
198
252
  )
199
253
  ] }),
200
- m && /* @__PURE__ */ r(
201
- B,
254
+ d && /* @__PURE__ */ a(
255
+ $,
202
256
  {
203
- opened: T,
204
- onOpenChange: (e) => e ? w() : b(),
205
- attachments: D
257
+ opened: E,
258
+ onOpenChange: (e) => e ? x() : T(),
259
+ attachments: F,
260
+ initialIndex: B
206
261
  }
207
262
  )
208
263
  ] });
209
264
  };
210
265
  export {
211
- U as AttachmentsPreview
266
+ Y as AttachmentsPreview
212
267
  };
@@ -1,17 +1,27 @@
1
- const e = "_imagePreviewWrapper_1814g_1", t = "_deleteButton_1814g_11", o = "_downloadButton_1814g_25", i = "_filePreviewList_1814g_63", r = "_fileDownloadName_1814g_89", a = "_filePreviewWrapper_1814g_101", l = {
2
- imagePreviewWrapper: e,
3
- deleteButton: t,
4
- downloadButton: o,
5
- filePreviewList: i,
6
- fileDownloadName: r,
7
- filePreviewWrapper: a
1
+ const e = "_mediaGrid_1n4ll_6", l = "_mediaTile_1n4ll_14", i = "_tileImg_1n4ll_29", n = "_mediaFadeIn_1n4ll_36", t = "_downloadButton_1n4ll_58", _ = "_imagePreviewWrapper_1n4ll_56", a = "_deleteButton_1n4ll_69", o = "_filePreviewList_1n4ll_95", d = "_fileDownloadName_1n4ll_108", r = "_filePreviewWrapper_1n4ll_114", m = "_fileSize_1n4ll_170", s = {
2
+ mediaGrid: e,
3
+ mediaTile: l,
4
+ tileImg: i,
5
+ mediaFadeIn: n,
6
+ downloadButton: t,
7
+ imagePreviewWrapper: _,
8
+ deleteButton: a,
9
+ filePreviewList: o,
10
+ fileDownloadName: d,
11
+ filePreviewWrapper: r,
12
+ fileSize: m
8
13
  };
9
14
  export {
10
- l as default,
11
- t as deleteButton,
12
- o as downloadButton,
13
- r as fileDownloadName,
14
- i as filePreviewList,
15
- a as filePreviewWrapper,
16
- e as imagePreviewWrapper
15
+ s as default,
16
+ a as deleteButton,
17
+ t as downloadButton,
18
+ d as fileDownloadName,
19
+ o as filePreviewList,
20
+ r as filePreviewWrapper,
21
+ m as fileSize,
22
+ _ as imagePreviewWrapper,
23
+ n as mediaFadeIn,
24
+ e as mediaGrid,
25
+ l as mediaTile,
26
+ i as tileImg
17
27
  };
@@ -1,8 +1,6 @@
1
- import { appMode } from '../../helpers/isAppMode';
2
1
  type BouncingLogoProps = {
3
2
  c?: string;
4
- appMode?: appMode | null;
5
3
  };
6
- export declare const BouncingLogo: ({ c, appMode }: BouncingLogoProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const BouncingLogo: ({ c }: BouncingLogoProps) => import("react/jsx-runtime").JSX.Element;
7
5
  export {};
8
6
  //# sourceMappingURL=BouncingLogo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BouncingLogo.d.ts","sourceRoot":"","sources":["../../../src/components/BouncingLogo/BouncingLogo.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAa,MAAM,yBAAyB,CAAC;AAM7D,KAAK,iBAAiB,GAAG;IACvB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,gBAAgB,iBAAiB,4CAmB7D,CAAC"}
1
+ {"version":3,"file":"BouncingLogo.d.ts","sourceRoot":"","sources":["../../../src/components/BouncingLogo/BouncingLogo.tsx"],"names":[],"mappings":"AAOA,KAAK,iBAAiB,GAAG;IACvB,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAgBpD,CAAC"}
@@ -1,29 +1,23 @@
1
- import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
- import { Box as t } from "@mantine/core";
3
- import { isAppMode as a } from "../../helpers/isAppMode.js";
4
- import { useIsDarkTheme as c } from "../../helpers/themeUtils.js";
5
- import { Logotype as d } from "../Logotype.js";
6
- import o from "./BouncingLogo.module.css.js";
7
- const u = ({ c: r, appMode: i }) => {
8
- const m = c(), s = a(i || "SAAS", "DESKTOP");
9
- return /* @__PURE__ */ p(t, { className: o.wrapper, children: [
10
- /* @__PURE__ */ e("div", { className: `${o.logo} ${s ? o.desktop : ""}`, children: /* @__PURE__ */ e(
11
- d,
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import { Box as m } from "@mantine/core";
3
+ import { useIsDarkTheme as a } from "../../helpers/themeUtils.js";
4
+ import { Logotype as t } from "../Logotype.js";
5
+ import s from "./BouncingLogo.module.css.js";
6
+ const d = ({ c: r }) => {
7
+ const e = a();
8
+ return /* @__PURE__ */ i(m, { className: s.wrapper, children: [
9
+ /* @__PURE__ */ o("div", { className: s.logo, children: /* @__PURE__ */ o(
10
+ t,
12
11
  {
13
12
  isLink: !1,
14
- c: r || (m ? "white" : "black"),
13
+ c: r || (e ? "white" : "black"),
15
14
  minified: !0,
16
- isDesktop: s
15
+ isDesktop: !1
17
16
  }
18
17
  ) }),
19
- /* @__PURE__ */ e(
20
- "div",
21
- {
22
- className: `${o.shadow} ${s ? o.desktopShadow : ""}`
23
- }
24
- )
18
+ /* @__PURE__ */ o("div", { className: s.shadow })
25
19
  ] });
26
20
  };
27
21
  export {
28
- u as BouncingLogo
22
+ d as BouncingLogo
29
23
  };
@@ -1,15 +1,11 @@
1
- const o = "_wrapper_1n4or_1", s = "_logo_1n4or_15", _ = "_desktop_1n4or_45", t = "_shadow_1n4or_73", d = "_desktopShadow_1n4or_99", p = {
1
+ const o = "_wrapper_16jue_1", s = "_logo_16jue_8", a = "_shadow_16jue_23", e = {
2
2
  wrapper: o,
3
3
  logo: s,
4
- desktop: _,
5
- shadow: t,
6
- desktopShadow: d
4
+ shadow: a
7
5
  };
8
6
  export {
9
- p as default,
10
- _ as desktop,
11
- d as desktopShadow,
7
+ e as default,
12
8
  s as logo,
13
- t as shadow,
9
+ a as shadow,
14
10
  o as wrapper
15
11
  };
@@ -1,15 +1,15 @@
1
- const t = "_root_1rrzr_1", o = "_icon_1rrzr_13", r = "_body_1rrzr_31", _ = "_title_1rrzr_41", c = "_meta_1rrzr_53", e = {
1
+ const t = "_root_328w5_1", o = "_icon_328w5_7", _ = "_body_328w5_16", c = "_title_328w5_21", e = "_meta_328w5_27", n = {
2
2
  root: t,
3
3
  icon: o,
4
- body: r,
5
- title: _,
6
- meta: c
4
+ body: _,
5
+ title: c,
6
+ meta: e
7
7
  };
8
8
  export {
9
- r as body,
10
- e as default,
9
+ _ as body,
10
+ n as default,
11
11
  o as icon,
12
- c as meta,
12
+ e as meta,
13
13
  t as root,
14
- _ as title
14
+ c as title
15
15
  };
@@ -1,9 +1,9 @@
1
- const b = "_root_1escb_1", o = "_bubble_1escb_27", t = {
2
- root: b,
3
- bubble: o
1
+ const o = "_root_1oixr_1", b = "_bubble_1oixr_14", t = {
2
+ root: o,
3
+ bubble: b
4
4
  };
5
5
  export {
6
- o as bubble,
6
+ b as bubble,
7
7
  t as default,
8
- b as root
8
+ o as root
9
9
  };
@@ -1,4 +1,4 @@
1
- const t = "_root_13wo5_1", o = "_info_13wo5_23", e = "_title_13wo5_43", n = "_subtitle_13wo5_61", s = "_selectionBar_13wo5_87", _ = "_selectionCount_13wo5_97", i = {
1
+ const t = "_root_yfjvk_1", o = "_info_yfjvk_12", e = "_title_yfjvk_22", n = "_subtitle_yfjvk_31", s = "_selectionBar_yfjvk_44", _ = "_selectionCount_yfjvk_49", i = {
2
2
  root: t,
3
3
  info: o,
4
4
  title: e,
@@ -1,37 +1,49 @@
1
- const t = "_root_6rx8s_1", e = "_inputRow_6rx8s_17", n = "_inputBox_6rx8s_31", r = "_header_6rx8s_49", _ = "_headerIcon_6rx8s_63", a = "_headerBar_6rx8s_83", o = "_headerTitle_6rx8s_111", s = "_headerText_6rx8s_131", c = "_headerAttachment_6rx8s_149", x = "_hiddenFileInput_6rx8s_177", d = "_attachments_6rx8s_195", h = "_inputArea_6rx8s_203", u = "_iconButton_6rx8s_221", i = "_textarea_6rx8s_229", p = "_textareaInput_6rx8s_239", B = "_sendButton_6rx8s_267", I = {
1
+ const t = "_root_1y8n6_1", n = "_inputRow_1y8n6_9", e = "_inputBox_1y8n6_19", o = "_inputArea_1y8n6_57", _ = "_notice_1y8n6_69", c = "_noticeIcon_1y8n6_102", i = "_noticeMain_1y8n6_112", a = "_noticeText_1y8n6_121", s = "_noticeAction_1y8n6_126", r = "_noticeDismiss_1y8n6_130", d = "_header_1y8n6_140", h = "_headerIcon_1y8n6_147", y = "_headerBar_1y8n6_157", u = "_headerTitle_1y8n6_171", p = "_headerText_1y8n6_181", x = "_headerAttachment_1y8n6_190", B = "_hiddenFileInput_1y8n6_204", I = "_attachments_1y8n6_213", m = "_iconButton_1y8n6_226", A = "_textarea_1y8n6_231", T = "_textareaInput_1y8n6_236", l = "_sendButton_1y8n6_250", w = {
2
2
  root: t,
3
- inputRow: e,
4
- inputBox: n,
5
- header: r,
6
- headerIcon: _,
7
- headerBar: a,
8
- headerTitle: o,
9
- headerText: s,
10
- headerAttachment: c,
11
- hiddenFileInput: x,
12
- attachments: d,
13
- inputArea: h,
14
- iconButton: u,
15
- textarea: i,
16
- textareaInput: p,
17
- sendButton: B
3
+ inputRow: n,
4
+ inputBox: e,
5
+ inputArea: o,
6
+ notice: _,
7
+ noticeIcon: c,
8
+ noticeMain: i,
9
+ noticeText: a,
10
+ noticeAction: s,
11
+ noticeDismiss: r,
12
+ header: d,
13
+ headerIcon: h,
14
+ headerBar: y,
15
+ headerTitle: u,
16
+ headerText: p,
17
+ headerAttachment: x,
18
+ hiddenFileInput: B,
19
+ attachments: I,
20
+ iconButton: m,
21
+ textarea: A,
22
+ textareaInput: T,
23
+ sendButton: l
18
24
  };
19
25
  export {
20
- d as attachments,
21
- I as default,
22
- r as header,
23
- c as headerAttachment,
24
- a as headerBar,
25
- _ as headerIcon,
26
- s as headerText,
27
- o as headerTitle,
28
- x as hiddenFileInput,
29
- u as iconButton,
30
- h as inputArea,
31
- n as inputBox,
32
- e as inputRow,
26
+ I as attachments,
27
+ w as default,
28
+ d as header,
29
+ x as headerAttachment,
30
+ y as headerBar,
31
+ h as headerIcon,
32
+ p as headerText,
33
+ u as headerTitle,
34
+ B as hiddenFileInput,
35
+ m as iconButton,
36
+ o as inputArea,
37
+ e as inputBox,
38
+ n as inputRow,
39
+ _ as notice,
40
+ s as noticeAction,
41
+ r as noticeDismiss,
42
+ c as noticeIcon,
43
+ i as noticeMain,
44
+ a as noticeText,
33
45
  t as root,
34
- B as sendButton,
35
- i as textarea,
36
- p as textareaInput
46
+ l as sendButton,
47
+ A as textarea,
48
+ T as textareaInput
37
49
  };
@@ -17,15 +17,43 @@ export interface ChatInputEditing {
17
17
  text: string;
18
18
  onCancel: () => void;
19
19
  }
20
+ /**
21
+ * A persistent context strip rendered inside the composer, attached to the top
22
+ * of the input box (Slack/Discord-style). Reusable for any in-composer notice —
23
+ * "external contact", connection state, etc. Unlike {@link ChatInputReplyTo} /
24
+ * {@link ChatInputEditing} it isn't dismissable and doesn't move focus.
25
+ */
26
+ export interface ChatInputNoticeAction {
27
+ label: string;
28
+ onClick: () => void;
29
+ }
30
+ export interface ChatInputNotice {
31
+ text: React.ReactNode;
32
+ icon?: React.ReactNode;
33
+ /** Colour scheme. Defaults to `warning` (the external-contact yellow). */
34
+ variant?: 'warning' | 'info' | 'neutral' | 'danger';
35
+ /** Optional primary action rendered as a pill button on the right. */
36
+ action?: ChatInputNoticeAction;
37
+ /** When set, a ✕ dismiss button is shown on the far right. */
38
+ onDismiss?: () => void;
39
+ }
20
40
  export interface ChatInputProps {
21
41
  value?: string;
22
42
  onChange?: (value: string) => void;
23
43
  onSend?: (value: string) => void;
24
44
  onAttach?: (files: File[]) => void;
25
45
  onEmojiSelect?: (emoji: string) => void;
46
+ /**
47
+ * When provided, a GIF tab appears in the composer's emoji picker. Receives
48
+ * the picked GIF's URL — the host sends it as a message (GIFs aren't text,
49
+ * so they don't go through {@link onChange} / {@link onSend}).
50
+ */
51
+ onGifSelect?: (url: string) => void;
26
52
  placeholder?: string;
27
53
  replyTo?: ChatInputReplyTo;
28
54
  editing?: ChatInputEditing;
55
+ /** Persistent context strip attached to the top of the input box. */
56
+ notice?: ChatInputNotice;
29
57
  attachments?: CommentComposerTypes.AnyCommentFile[];
30
58
  onRemoveAttachment?: (index: number) => void;
31
59
  maxLength?: number;
@@ -39,7 +67,7 @@ export interface ChatInputProps {
39
67
  className?: string;
40
68
  style?: React.CSSProperties;
41
69
  }
42
- export declare function ChatInput({ value: controlledValue, onChange, onSend, onAttach, onEmojiSelect, placeholder, replyTo, editing, attachments, onRemoveAttachment, maxLength, disabled, disableAttachments, className, style, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
70
+ export declare function ChatInput({ value: controlledValue, onChange, onSend, onAttach, onEmojiSelect, onGifSelect, placeholder, replyTo, editing, notice, attachments, onRemoveAttachment, maxLength, disabled, disableAttachments, className, style, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
43
71
  export declare namespace ChatInput {
44
72
  var displayName: string;
45
73
  }