@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.
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.module.css.js +22 -12
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +237 -95
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +6 -5
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1111 -131
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +1 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +22 -17
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +15 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +36 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +14 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +31 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +172 -120
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +18 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +35 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +33 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +70 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +32 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -32
- package/dist/components/Chat/ChatInput/index.d.ts +29 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +178 -118
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +2 -2
- package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +136 -118
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
- package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +3 -3
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
- package/dist/components/Chat/MessageActions/index.d.ts +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +40 -36
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
- package/dist/components/Chat/MessageList/MessageList.module.css.js +10 -6
- package/dist/components/Chat/MessageList/index.d.ts +30 -3
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +154 -66
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageMeta/index.js +21 -19
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +8 -8
- package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageReactions/index.js +60 -28
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -6
- package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageStatus/index.js +49 -34
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +81 -76
- package/dist/components/ColorPicker/ColorPicker.module.css.js +24 -24
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +43 -41
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +52 -50
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +28 -25
- package/dist/components/EntityIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +80 -32
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
- package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
- package/dist/components/ErrorPage/components/Error403.js +25 -21
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.d.ts +5 -1
- package/dist/components/ErrorPage/index.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.js +17 -10
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
- package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
- package/dist/components/NavMenu/NavMenu.d.ts +7 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +54 -44
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
- package/dist/components/NavMenu/types.d.ts +4 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewToolbar/utils.d.ts +12 -0
- package/dist/components/NewToolbar/utils.d.ts.map +1 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnboardingTour/index.d.ts +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
- package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +24 -0
- package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.js +727 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +8 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.js +67 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +7 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.js +44 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +9 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.js +38 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +33 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.js +601 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoIcons.js +145 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts +27 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMenu.js +77 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +17 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +289 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +55 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSelect.js +168 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +12 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +48 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +384 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +21 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +264 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +39 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +360 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +16 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +4 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +22 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +211 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +11 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +41 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +69 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +21 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.js +91 -0
- package/dist/components/VideoPlayer/index.d.ts +11 -0
- package/dist/components/VideoPlayer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/types.d.ts +101 -0
- package/dist/components/VideoPlayer/types.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts +8 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.js +38 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts +5 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/storyboard.js +47 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts +18 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/subtitles.js +23 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts +3 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/touch.js +5 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +10 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +22 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts +69 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoSettings.js +90 -0
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +29 -29
- package/dist/config/envConfig.d.ts +4 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +41 -37
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +9 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +96 -58
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -23
- package/dist/hooks/useUiPref.d.ts +2 -0
- package/dist/hooks/useUiPref.d.ts.map +1 -0
- package/dist/hooks/useUiPref.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +582 -558
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts +19 -0
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +1 -0
- package/dist/videoSettings/createVideoSettingsDataSource.js +127 -0
- package/docs/README.md +499 -499
- package/package.json +79 -78
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
4
|
-
import { Stack as
|
|
5
|
-
import { useDisclosure as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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:
|
|
16
|
+
parentIsExisting: p
|
|
15
17
|
}) => {
|
|
16
|
-
const [
|
|
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
|
-
})),
|
|
34
|
-
|
|
35
|
+
})), d = n.every((e) => !e.isTemp), f = (e) => {
|
|
36
|
+
d && (D(e), x());
|
|
35
37
|
};
|
|
36
|
-
return
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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:
|
|
45
|
-
style: {
|
|
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__ */
|
|
48
|
-
|
|
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:
|
|
113
|
+
cursor: d ? "zoom-in" : "default"
|
|
57
114
|
},
|
|
58
|
-
onClick: () =>
|
|
115
|
+
onClick: () => f(i)
|
|
59
116
|
}
|
|
60
117
|
),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
118
|
+
/* @__PURE__ */ a(
|
|
119
|
+
v,
|
|
63
120
|
{
|
|
64
|
-
visible: e.isTemp && t === "view" &&
|
|
121
|
+
visible: e.isTemp && t === "view" && p,
|
|
65
122
|
loaderProps: { size: 20 }
|
|
66
123
|
}
|
|
67
124
|
),
|
|
68
|
-
t === "view" && !e.isTemp && /* @__PURE__ */
|
|
69
|
-
|
|
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:
|
|
82
|
-
children: /* @__PURE__ */
|
|
138
|
+
className: r.downloadButton,
|
|
139
|
+
children: /* @__PURE__ */ a(u, { size: 16, icon: g })
|
|
83
140
|
}
|
|
84
141
|
),
|
|
85
|
-
t === "draft" &&
|
|
86
|
-
|
|
142
|
+
t === "draft" && c && /* @__PURE__ */ a(
|
|
143
|
+
l,
|
|
87
144
|
{
|
|
88
145
|
size: "20px",
|
|
89
146
|
radius: "xl",
|
|
90
147
|
variant: "filled",
|
|
91
|
-
onMouseDown: (
|
|
148
|
+
onMouseDown: (A) => A.preventDefault(),
|
|
92
149
|
pos: "absolute",
|
|
93
150
|
color: "dark",
|
|
94
|
-
onClick: () =>
|
|
95
|
-
className:
|
|
96
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
104
|
-
|
|
160
|
+
h.length > 0 && /* @__PURE__ */ a(
|
|
161
|
+
m,
|
|
105
162
|
{
|
|
106
163
|
w: "100%",
|
|
107
|
-
className:
|
|
108
|
-
"data-many":
|
|
109
|
-
children:
|
|
110
|
-
const
|
|
111
|
-
return /* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
|
|
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" &&
|
|
172
|
+
visible: e.isTemp && t === "view" && p,
|
|
116
173
|
loaderProps: { size: 20 }
|
|
117
174
|
}
|
|
118
175
|
),
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
|
|
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__ */
|
|
128
|
-
|
|
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
|
-
|
|
137
|
-
|
|
193
|
+
G(
|
|
194
|
+
L(e.type, !1, e.name),
|
|
138
195
|
!1,
|
|
139
196
|
36
|
|
140
197
|
),
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
|
|
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:
|
|
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__ */
|
|
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__ */
|
|
166
|
-
|
|
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:
|
|
176
|
-
children: /* @__PURE__ */
|
|
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" &&
|
|
183
|
-
|
|
236
|
+
t === "draft" && c && /* @__PURE__ */ a(
|
|
237
|
+
l,
|
|
184
238
|
{
|
|
185
239
|
size: "xs",
|
|
186
240
|
radius: "xl",
|
|
187
|
-
onMouseDown: (
|
|
241
|
+
onMouseDown: (w) => w.preventDefault(),
|
|
188
242
|
variant: "filled",
|
|
189
243
|
color: "dark",
|
|
190
|
-
onClick: () => i
|
|
191
|
-
className:
|
|
192
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
201
|
-
|
|
254
|
+
d && /* @__PURE__ */ a(
|
|
255
|
+
$,
|
|
202
256
|
{
|
|
203
|
-
opened:
|
|
204
|
-
onOpenChange: (e) => e ?
|
|
205
|
-
attachments:
|
|
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
|
-
|
|
266
|
+
Y as AttachmentsPreview
|
|
212
267
|
};
|
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
const e = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
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":"
|
|
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
|
|
2
|
-
import { Box as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 || (
|
|
13
|
+
c: r || (e ? "white" : "black"),
|
|
15
14
|
minified: !0,
|
|
16
|
-
isDesktop:
|
|
15
|
+
isDesktop: !1
|
|
17
16
|
}
|
|
18
17
|
) }),
|
|
19
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
22
|
+
d as BouncingLogo
|
|
29
23
|
};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_wrapper_16jue_1", s = "_logo_16jue_8", a = "_shadow_16jue_23", e = {
|
|
2
2
|
wrapper: o,
|
|
3
3
|
logo: s,
|
|
4
|
-
|
|
5
|
-
shadow: t,
|
|
6
|
-
desktopShadow: d
|
|
4
|
+
shadow: a
|
|
7
5
|
};
|
|
8
6
|
export {
|
|
9
|
-
|
|
10
|
-
_ as desktop,
|
|
11
|
-
d as desktopShadow,
|
|
7
|
+
e as default,
|
|
12
8
|
s as logo,
|
|
13
|
-
|
|
9
|
+
a as shadow,
|
|
14
10
|
o as wrapper
|
|
15
11
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const t = "
|
|
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:
|
|
5
|
-
title:
|
|
6
|
-
meta:
|
|
4
|
+
body: _,
|
|
5
|
+
title: c,
|
|
6
|
+
meta: e
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
_ as body,
|
|
10
|
+
n as default,
|
|
11
11
|
o as icon,
|
|
12
|
-
|
|
12
|
+
e as meta,
|
|
13
13
|
t as root,
|
|
14
|
-
|
|
14
|
+
c as title
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
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 = "
|
|
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:
|
|
4
|
-
inputBox:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
}
|