@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,89 +1,91 @@
|
|
|
1
|
-
import { jsxs as g, jsx as
|
|
2
|
-
import { forwardRef as H, useState as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import {
|
|
5
|
-
import { TextColorIcon as
|
|
6
|
-
import { normalizeColorItem as w, resolveColorLabel as
|
|
7
|
-
import { useRecentColors as
|
|
1
|
+
import { jsxs as g, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as H, useState as M, useCallback as S, useMemo as j } from "react";
|
|
3
|
+
import { useTranslation as E } from "react-i18next";
|
|
4
|
+
import { useComputedColorScheme as P, Box as h, Flex as A, Tooltip as U, UnstyledButton as V } from "@mantine/core";
|
|
5
|
+
import { TextColorIcon as B, HighlightSwatch as K } from "./icons.js";
|
|
6
|
+
import { normalizeColorItem as w, resolveColorLabel as T, isDefaultColor as q } from "./types.js";
|
|
7
|
+
import { useRecentColors as G } from "./useRecentColors.js";
|
|
8
8
|
import n from "./ColorPicker.module.css.js";
|
|
9
9
|
function v({
|
|
10
|
-
isActive:
|
|
10
|
+
isActive: s,
|
|
11
11
|
round: d,
|
|
12
12
|
disabled: u,
|
|
13
13
|
onClick: f,
|
|
14
14
|
children: i,
|
|
15
15
|
tooltipLabel: p
|
|
16
16
|
}) {
|
|
17
|
-
const b = /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
const b = /* @__PURE__ */ t(
|
|
18
|
+
V,
|
|
19
19
|
{
|
|
20
20
|
type: "button",
|
|
21
|
-
className: `${n.inlineSwatch}${d ? ` ${n.inlineSwatchRound}` : ""}${
|
|
21
|
+
className: `${n.inlineSwatch}${d ? ` ${n.inlineSwatchRound}` : ""}${s ? ` ${n.inlineSwatchActive}` : ""}`,
|
|
22
22
|
onMouseDown: (m) => m.preventDefault(),
|
|
23
23
|
onClick: f,
|
|
24
24
|
disabled: u,
|
|
25
25
|
children: i
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
|
-
return p ? /* @__PURE__ */
|
|
28
|
+
return p ? /* @__PURE__ */ t(U, { label: p, withArrow: !0, zIndex: 400, children: b }) : b;
|
|
29
29
|
}
|
|
30
30
|
const oe = H(
|
|
31
31
|
({
|
|
32
|
-
sections:
|
|
32
|
+
sections: s,
|
|
33
33
|
onChange: d,
|
|
34
34
|
withRecentColors: u,
|
|
35
35
|
maxRecentColors: f = 9,
|
|
36
36
|
disabled: i,
|
|
37
37
|
recentColorsLabel: p = "Recently used"
|
|
38
38
|
}, b) => {
|
|
39
|
-
const { t: m } =
|
|
39
|
+
const { t: m } = E("ui"), x = P("light", {
|
|
40
|
+
getInitialValueInEffect: !0
|
|
41
|
+
}) === "dark", { recentColors: z, addRecent: $ } = G({
|
|
40
42
|
maxItems: f
|
|
41
|
-
}), [L,
|
|
43
|
+
}), [L, D] = M(z), k = S(
|
|
42
44
|
(e, o, c) => {
|
|
43
|
-
u && ($(e, o, c),
|
|
44
|
-
const
|
|
45
|
-
(
|
|
45
|
+
u && ($(e, o, c), D((l) => {
|
|
46
|
+
const r = l.filter(
|
|
47
|
+
(a) => !(a.value === e && a.sectionKey === o)
|
|
46
48
|
);
|
|
47
|
-
return [{ value: e, sectionKey: o, border: c }, ...
|
|
49
|
+
return [{ value: e, sectionKey: o, border: c }, ...r].slice(
|
|
48
50
|
0,
|
|
49
51
|
f
|
|
50
52
|
);
|
|
51
53
|
})), d(e, o);
|
|
52
54
|
},
|
|
53
55
|
[d, u, $]
|
|
54
|
-
), C =
|
|
56
|
+
), C = j(() => {
|
|
55
57
|
const e = {};
|
|
56
|
-
for (const o of
|
|
58
|
+
for (const o of s) e[o.key] = o;
|
|
57
59
|
return e;
|
|
58
|
-
}, [
|
|
60
|
+
}, [s]), y = S(
|
|
59
61
|
(e, o) => {
|
|
60
62
|
const l = (o ? C[o] : void 0)?.colors.find(
|
|
61
|
-
(
|
|
62
|
-
),
|
|
63
|
-
return
|
|
63
|
+
(a) => w(a).value === e
|
|
64
|
+
), r = l ? w(l).label : void 0;
|
|
65
|
+
return T(m, e, r);
|
|
64
66
|
},
|
|
65
67
|
[C, m]
|
|
66
68
|
), F = S(
|
|
67
|
-
(e) =>
|
|
69
|
+
(e) => q(e) ? x ? "#FFFFFF" : "#000000" : e,
|
|
68
70
|
[x]
|
|
69
71
|
);
|
|
70
72
|
return /* @__PURE__ */ g(h, { ref: b, children: [
|
|
71
73
|
u && L.length > 0 && /* @__PURE__ */ g(h, { className: n.inlineSection, children: [
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
const c = e.sectionKey ? C[e.sectionKey] : void 0, l = c?.key === "textColor" || c?.key === "color" || e.sectionKey === "color",
|
|
74
|
+
/* @__PURE__ */ t(h, { className: n.inlineSectionLabel, children: p }),
|
|
75
|
+
/* @__PURE__ */ t(A, { className: n.inlineRow, gap: 2, children: L.map((e, o) => {
|
|
76
|
+
const c = e.sectionKey ? C[e.sectionKey] : void 0, l = c?.key === "textColor" || c?.key === "color" || e.sectionKey === "color", r = y(
|
|
75
77
|
e.value,
|
|
76
78
|
e.sectionKey
|
|
77
79
|
);
|
|
78
|
-
return l ? /* @__PURE__ */
|
|
80
|
+
return l ? /* @__PURE__ */ t(
|
|
79
81
|
v,
|
|
80
82
|
{
|
|
81
83
|
isActive: !1,
|
|
82
84
|
disabled: i,
|
|
83
|
-
tooltipLabel:
|
|
85
|
+
tooltipLabel: r,
|
|
84
86
|
onClick: () => k(e.value, e.sectionKey ?? ""),
|
|
85
|
-
children: /* @__PURE__ */
|
|
86
|
-
|
|
87
|
+
children: /* @__PURE__ */ t(
|
|
88
|
+
B,
|
|
87
89
|
{
|
|
88
90
|
size: 20,
|
|
89
91
|
color: F(e.value),
|
|
@@ -92,16 +94,16 @@ const oe = H(
|
|
|
92
94
|
)
|
|
93
95
|
},
|
|
94
96
|
`${e.sectionKey}-${e.value}-${o}`
|
|
95
|
-
) : /* @__PURE__ */
|
|
97
|
+
) : /* @__PURE__ */ t(
|
|
96
98
|
v,
|
|
97
99
|
{
|
|
98
100
|
isActive: !1,
|
|
99
101
|
round: !0,
|
|
100
102
|
disabled: i,
|
|
101
|
-
tooltipLabel:
|
|
103
|
+
tooltipLabel: r,
|
|
102
104
|
onClick: () => k(e.value, e.sectionKey ?? ""),
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
-
|
|
105
|
+
children: /* @__PURE__ */ t(
|
|
106
|
+
K,
|
|
105
107
|
{
|
|
106
108
|
bgColor: e.value,
|
|
107
109
|
borderColor: e.border || "var(--mantine-color-default-border)"
|
|
@@ -112,37 +114,37 @@ const oe = H(
|
|
|
112
114
|
);
|
|
113
115
|
}) })
|
|
114
116
|
] }),
|
|
115
|
-
|
|
117
|
+
s.map((e) => {
|
|
116
118
|
const o = e.key === "highlight" || e.key === "background" || e.key === "textHighlight";
|
|
117
119
|
return /* @__PURE__ */ g(h, { className: n.inlineSection, children: [
|
|
118
|
-
e.label && /* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
const { value: l, border:
|
|
121
|
-
return o ? /* @__PURE__ */
|
|
120
|
+
e.label && /* @__PURE__ */ t(h, { className: n.inlineSectionLabel, children: e.label }),
|
|
121
|
+
/* @__PURE__ */ t(A, { className: n.inlineRow, gap: 2, children: e.colors.map((c) => {
|
|
122
|
+
const { value: l, border: r, label: a } = w(c), N = l === e.value, R = F(l), I = T(m, l, a);
|
|
123
|
+
return o ? /* @__PURE__ */ t(
|
|
122
124
|
v,
|
|
123
125
|
{
|
|
124
126
|
isActive: N,
|
|
125
127
|
round: !0,
|
|
126
128
|
disabled: i,
|
|
127
|
-
tooltipLabel:
|
|
128
|
-
onClick: () => k(l, e.key,
|
|
129
|
-
children: /* @__PURE__ */
|
|
130
|
-
|
|
129
|
+
tooltipLabel: I,
|
|
130
|
+
onClick: () => k(l, e.key, r),
|
|
131
|
+
children: /* @__PURE__ */ t(
|
|
132
|
+
K,
|
|
131
133
|
{
|
|
132
134
|
bgColor: l,
|
|
133
|
-
borderColor:
|
|
135
|
+
borderColor: r || R
|
|
134
136
|
}
|
|
135
137
|
)
|
|
136
138
|
},
|
|
137
139
|
l
|
|
138
|
-
) : /* @__PURE__ */
|
|
140
|
+
) : /* @__PURE__ */ t(
|
|
139
141
|
v,
|
|
140
142
|
{
|
|
141
143
|
isActive: N,
|
|
142
144
|
disabled: i,
|
|
143
|
-
tooltipLabel:
|
|
145
|
+
tooltipLabel: I,
|
|
144
146
|
onClick: () => k(l, e.key),
|
|
145
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ t(B, { size: 20, color: R, showBorder: !0 })
|
|
146
148
|
},
|
|
147
149
|
l
|
|
148
150
|
);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_commentComposerWrapper_17oei_1", e = "_commentComposerFloat_17oei_68", r = "_composerContainer_17oei_97", t = "_editorWrapper_17oei_113", p = "_editMode_17oei_192", m = {
|
|
2
2
|
commentComposerWrapper: o,
|
|
3
3
|
commentComposerFloat: e,
|
|
4
4
|
composerContainer: r,
|
|
5
5
|
editorWrapper: t,
|
|
6
|
-
editMode:
|
|
6
|
+
editMode: p
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
e as commentComposerFloat,
|
|
10
10
|
o as commentComposerWrapper,
|
|
11
11
|
r as composerContainer,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
m as default,
|
|
13
|
+
p as editMode,
|
|
14
14
|
t as editorWrapper
|
|
15
15
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EmojiPickerProps } from './EmojiPicker';
|
|
2
|
-
export declare const EmojiPanel: ({ locales, onChange, onClose, setRandomIcon, querySearch, }: Pick<EmojiPickerProps, "locales" | "value" | "onChange" | "querySearch"> & {
|
|
2
|
+
export declare const EmojiPanel: ({ locales, onChange, onClose, setRandomIcon, querySearch, showRandomButton, }: Pick<EmojiPickerProps, "locales" | "value" | "onChange" | "querySearch"> & {
|
|
3
3
|
onClose: () => void;
|
|
4
4
|
setRandomIcon: (icon: string) => void;
|
|
5
|
+
showRandomButton?: boolean;
|
|
5
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
//# sourceMappingURL=EmojiPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,UAAU,GAAI,
|
|
1
|
+
{"version":3,"file":"EmojiPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,UAAU,GAAI,+EAOxB,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG;IAC5E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,4CAqTA,CAAC"}
|
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
import { jsxs as y, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as d, useRef as p, useEffect as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { Search01Icon as
|
|
2
|
+
import { useState as d, useRef as p, useEffect as A, useCallback as L } from "react";
|
|
3
|
+
import { useTranslation as U } from "react-i18next";
|
|
4
|
+
import { Search01Icon as V, ShuffleIcon as W, Clock01Icon as X, SmileIcon as Z, Pizza01Icon as _, FootballIcon as ee, Airplane01Icon as te, BulbIcon as oe, Asterisk02Icon as re, Flag02Icon as ne } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as c } from "@hugeicons/react";
|
|
6
|
-
import { useEvent as
|
|
7
|
-
import { Stack as v, FocusTrap as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { pickRandomEmoji as
|
|
11
|
-
import { NoData as
|
|
12
|
-
import { IconEntity as
|
|
13
|
-
import { frequentEmoji as
|
|
14
|
-
import { getEmojis as
|
|
6
|
+
import { useEvent as ie } from "@layers-app/draggable-ui";
|
|
7
|
+
import { Stack as v, FocusTrap as ce, Flex as z, TextInput as se, Tooltip as ae, ActionIcon as F, Paper as q, Text as N, SimpleGrid as M } from "@mantine/core";
|
|
8
|
+
import le from "fuse.js";
|
|
9
|
+
import fe from "../../assets/svg/dog.svg.js";
|
|
10
|
+
import { pickRandomEmoji as ue } from "../../helpers/pickRandomEmoji.js";
|
|
11
|
+
import { NoData as de } from "../NoData/NoData.js";
|
|
12
|
+
import { IconEntity as pe } from "../ProjectIcon/ProjectIcon.js";
|
|
13
|
+
import { frequentEmoji as me } from "./constants.js";
|
|
14
|
+
import { getEmojis as he } from "./utils.js";
|
|
15
15
|
import T from "./EmojiPicker.module.css.js";
|
|
16
|
-
const
|
|
17
|
-
{ i: "frequent", icon: /* @__PURE__ */ t(c, { size: 20, icon:
|
|
18
|
-
{ i: "people", icon: /* @__PURE__ */ t(c, { size: 20, icon:
|
|
16
|
+
const ge = [
|
|
17
|
+
{ i: "frequent", icon: /* @__PURE__ */ t(c, { size: 20, icon: X }) },
|
|
18
|
+
{ i: "people", icon: /* @__PURE__ */ t(c, { size: 20, icon: Z }) },
|
|
19
19
|
{
|
|
20
20
|
i: "nature",
|
|
21
|
-
icon: /* @__PURE__ */ t(
|
|
21
|
+
icon: /* @__PURE__ */ t(fe, { width: 20, height: 20 })
|
|
22
22
|
},
|
|
23
|
-
{ i: "foods", icon: /* @__PURE__ */ t(c, { size: 20, icon:
|
|
24
|
-
{ i: "activity", icon: /* @__PURE__ */ t(c, { size: 20, icon:
|
|
25
|
-
{ i: "places", icon: /* @__PURE__ */ t(c, { size: 20, icon:
|
|
26
|
-
{ i: "objects", icon: /* @__PURE__ */ t(c, { size: 20, icon:
|
|
27
|
-
{ i: "symbols", icon: /* @__PURE__ */ t(c, { size: 20, icon:
|
|
28
|
-
{ i: "flags", icon: /* @__PURE__ */ t(c, { size: 20, icon:
|
|
29
|
-
],
|
|
23
|
+
{ i: "foods", icon: /* @__PURE__ */ t(c, { size: 20, icon: _ }) },
|
|
24
|
+
{ i: "activity", icon: /* @__PURE__ */ t(c, { size: 20, icon: ee }) },
|
|
25
|
+
{ i: "places", icon: /* @__PURE__ */ t(c, { size: 20, icon: te }) },
|
|
26
|
+
{ i: "objects", icon: /* @__PURE__ */ t(c, { size: 20, icon: oe }) },
|
|
27
|
+
{ i: "symbols", icon: /* @__PURE__ */ t(c, { size: 20, icon: re }) },
|
|
28
|
+
{ i: "flags", icon: /* @__PURE__ */ t(c, { size: 20, icon: ne }) }
|
|
29
|
+
], Ae = ({
|
|
30
30
|
locales: u,
|
|
31
31
|
onChange: C,
|
|
32
|
-
onClose:
|
|
33
|
-
setRandomIcon:
|
|
34
|
-
querySearch: m
|
|
32
|
+
onClose: P,
|
|
33
|
+
setRandomIcon: Q,
|
|
34
|
+
querySearch: m,
|
|
35
|
+
showRandomButton: w = !0
|
|
35
36
|
}) => {
|
|
36
|
-
const [b, k] = d("frequent"), x = p("frequent"), h = p({}), I = p(null), [S,
|
|
37
|
-
|
|
37
|
+
const [b, k] = d("frequent"), x = p("frequent"), h = p({}), I = p(null), [S, E] = d(""), [O, G] = d([]), [a, H] = d(null), [j, D] = d([]), { t: Y } = U(), g = p(!1), l = p(null);
|
|
38
|
+
A(() => {
|
|
38
39
|
if (typeof m == "string") {
|
|
39
40
|
const e = m.slice(1);
|
|
40
|
-
if (
|
|
41
|
+
if (E(e), a) {
|
|
41
42
|
const o = a.search(e);
|
|
42
|
-
|
|
43
|
+
D(o.map((r) => r.item.e));
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
|
-
}, [m, a]),
|
|
46
|
+
}, [m, a]), A(() => {
|
|
46
47
|
(async () => {
|
|
47
|
-
const o = await
|
|
48
|
+
const o = await he(), r = o.flatMap(
|
|
48
49
|
(i) => i.e.map((n) => ({
|
|
49
50
|
e: n.e,
|
|
50
51
|
n: n.n,
|
|
51
52
|
k: n.k
|
|
52
53
|
// категория
|
|
53
54
|
}))
|
|
54
|
-
), s =
|
|
55
|
+
), s = me.map(
|
|
55
56
|
(i) => r.find((n) => n.e === i)
|
|
56
57
|
);
|
|
57
|
-
|
|
58
|
-
const f = new
|
|
58
|
+
G([{ i: "frequent", e: s }, ...o]);
|
|
59
|
+
const f = new le(
|
|
59
60
|
o.flatMap(
|
|
60
61
|
(i) => i.e.map((n) => ({
|
|
61
62
|
e: n.e,
|
|
@@ -68,32 +69,32 @@ const he = [
|
|
|
68
69
|
threshold: 0.3
|
|
69
70
|
}
|
|
70
71
|
);
|
|
71
|
-
|
|
72
|
+
H(f);
|
|
72
73
|
})();
|
|
73
74
|
}, []);
|
|
74
|
-
const
|
|
75
|
+
const $ = L(
|
|
75
76
|
(e) => {
|
|
76
77
|
const o = e.currentTarget.value;
|
|
77
|
-
if (
|
|
78
|
+
if (E(o), a) {
|
|
78
79
|
const r = a.search(o);
|
|
79
|
-
|
|
80
|
+
D(r.map((s) => s.item.e));
|
|
80
81
|
}
|
|
81
82
|
},
|
|
82
83
|
[a]
|
|
83
|
-
),
|
|
84
|
+
), R = ie((e) => {
|
|
84
85
|
const o = e.currentTarget.getAttribute("data-icon");
|
|
85
86
|
o && (C?.(
|
|
86
|
-
|
|
87
|
+
pe.stringify({
|
|
87
88
|
emoji: o.replace("e:", "")
|
|
88
89
|
})
|
|
89
|
-
),
|
|
90
|
-
}),
|
|
90
|
+
), P());
|
|
91
|
+
}), B = (e) => {
|
|
91
92
|
const o = I.current, r = h.current[e.i];
|
|
92
93
|
if (!o || !r) return;
|
|
93
94
|
g.current = !0, l.current = e.i, k(e.i);
|
|
94
95
|
const s = r.offsetTop - o.offsetTop;
|
|
95
96
|
o.scrollTo({ top: s, behavior: "smooth" });
|
|
96
|
-
},
|
|
97
|
+
}, J = () => {
|
|
97
98
|
const e = I.current;
|
|
98
99
|
if (!e) return;
|
|
99
100
|
const o = e.scrollTop;
|
|
@@ -112,9 +113,9 @@ const he = [
|
|
|
112
113
|
n < s && (s = n, r = f);
|
|
113
114
|
}
|
|
114
115
|
}), r !== x.current && (x.current = r, k(r));
|
|
115
|
-
},
|
|
116
|
+
}, K = typeof m == "string";
|
|
116
117
|
return /* @__PURE__ */ y(v, { gap: 0, h: "100%", children: [
|
|
117
|
-
/* @__PURE__ */ t(
|
|
118
|
+
/* @__PURE__ */ t(ce, { active: !0, children: /* @__PURE__ */ y(
|
|
118
119
|
z,
|
|
119
120
|
{
|
|
120
121
|
my: "sm",
|
|
@@ -125,9 +126,9 @@ const he = [
|
|
|
125
126
|
h: 38,
|
|
126
127
|
children: [
|
|
127
128
|
/* @__PURE__ */ t(
|
|
128
|
-
|
|
129
|
+
se,
|
|
129
130
|
{
|
|
130
|
-
leftSection: /* @__PURE__ */ t(c, { size: 16, icon:
|
|
131
|
+
leftSection: /* @__PURE__ */ t(c, { size: 16, icon: V }),
|
|
131
132
|
value: S,
|
|
132
133
|
placeholder: `${u?.search}...`,
|
|
133
134
|
"data-autofocus": !0,
|
|
@@ -137,26 +138,26 @@ const he = [
|
|
|
137
138
|
borderRadius: "var(--mantine-radius-default)"
|
|
138
139
|
}
|
|
139
140
|
},
|
|
140
|
-
w: 320,
|
|
141
|
-
onChange:
|
|
141
|
+
w: w ? 320 : "100%",
|
|
142
|
+
onChange: $,
|
|
142
143
|
radius: "var(--mantine-radius-default)"
|
|
143
144
|
}
|
|
144
145
|
),
|
|
145
|
-
/* @__PURE__ */ t(
|
|
146
|
-
|
|
146
|
+
w && /* @__PURE__ */ t(ae, { withArrow: !0, label: u?.random || Y("random"), children: /* @__PURE__ */ t(
|
|
147
|
+
F,
|
|
147
148
|
{
|
|
148
149
|
h: 36,
|
|
149
150
|
w: 36,
|
|
150
151
|
variant: "outline",
|
|
151
152
|
color: "var(--mantine-color-default-border)",
|
|
152
|
-
onClick: () =>
|
|
153
|
+
onClick: () => ue(Q, C),
|
|
153
154
|
className: T.randomIcon,
|
|
154
155
|
children: /* @__PURE__ */ t(
|
|
155
156
|
c,
|
|
156
157
|
{
|
|
157
158
|
color: "var(--mantine-color-default-color)",
|
|
158
159
|
size: 20,
|
|
159
|
-
icon:
|
|
160
|
+
icon: W
|
|
160
161
|
}
|
|
161
162
|
)
|
|
162
163
|
}
|
|
@@ -174,10 +175,10 @@ const he = [
|
|
|
174
175
|
overflowY: "auto"
|
|
175
176
|
},
|
|
176
177
|
ref: I,
|
|
177
|
-
onScroll:
|
|
178
|
-
children: S ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
|
|
179
|
-
!
|
|
180
|
-
|
|
178
|
+
onScroll: J,
|
|
179
|
+
children: S ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", gap: 0, children: [
|
|
180
|
+
!K && /* @__PURE__ */ t(
|
|
181
|
+
q,
|
|
181
182
|
{
|
|
182
183
|
py: 6,
|
|
183
184
|
px: 6,
|
|
@@ -185,20 +186,20 @@ const he = [
|
|
|
185
186
|
top: -1,
|
|
186
187
|
style: { zIndex: 1 },
|
|
187
188
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
188
|
-
children: /* @__PURE__ */ t(
|
|
189
|
+
children: /* @__PURE__ */ t(N, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: u?.searchResults })
|
|
189
190
|
}
|
|
190
191
|
),
|
|
191
|
-
|
|
192
|
+
j.length ? /* @__PURE__ */ t(M, { cols: 10, spacing: 0, children: j.map((e) => /* @__PURE__ */ t(
|
|
192
193
|
"div",
|
|
193
194
|
{
|
|
194
195
|
className: T.item,
|
|
195
196
|
"data-icon": e,
|
|
196
|
-
onClick:
|
|
197
|
+
onClick: R,
|
|
197
198
|
children: e
|
|
198
199
|
},
|
|
199
200
|
e
|
|
200
201
|
)) }) : /* @__PURE__ */ t(z, { flex: 1, justify: "center", align: "stretch", children: /* @__PURE__ */ t(
|
|
201
|
-
|
|
202
|
+
de,
|
|
202
203
|
{
|
|
203
204
|
size: 100,
|
|
204
205
|
description: u?.searchNoResults,
|
|
@@ -207,7 +208,7 @@ const he = [
|
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
) })
|
|
210
|
-
] }) :
|
|
211
|
+
] }) : O.map((e) => /* @__PURE__ */ y(
|
|
211
212
|
"div",
|
|
212
213
|
{
|
|
213
214
|
ref: (o) => {
|
|
@@ -215,24 +216,24 @@ const he = [
|
|
|
215
216
|
},
|
|
216
217
|
children: [
|
|
217
218
|
/* @__PURE__ */ t(
|
|
218
|
-
|
|
219
|
+
q,
|
|
219
220
|
{
|
|
220
|
-
bg: "
|
|
221
|
+
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
221
222
|
py: 2,
|
|
222
223
|
px: 6,
|
|
223
224
|
pos: "sticky",
|
|
224
225
|
top: -1,
|
|
225
226
|
h: 23,
|
|
226
227
|
style: { zIndex: 1 },
|
|
227
|
-
children: /* @__PURE__ */ t(
|
|
228
|
+
children: /* @__PURE__ */ t(N, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: u?.emojiCategory?.[e.i] })
|
|
228
229
|
}
|
|
229
230
|
),
|
|
230
|
-
/* @__PURE__ */ t(
|
|
231
|
+
/* @__PURE__ */ t(M, { cols: 10, spacing: 0, children: e.e.map((o) => /* @__PURE__ */ t(
|
|
231
232
|
"div",
|
|
232
233
|
{
|
|
233
234
|
className: T.item,
|
|
234
235
|
"data-icon": o.e,
|
|
235
|
-
onClick:
|
|
236
|
+
onClick: R,
|
|
236
237
|
children: o.e
|
|
237
238
|
},
|
|
238
239
|
o.e
|
|
@@ -252,14 +253,14 @@ const he = [
|
|
|
252
253
|
justify: "space-between",
|
|
253
254
|
h: "56px",
|
|
254
255
|
px: 8,
|
|
255
|
-
children:
|
|
256
|
-
|
|
256
|
+
children: ge.map((e) => /* @__PURE__ */ t(
|
|
257
|
+
F,
|
|
257
258
|
{
|
|
258
259
|
variant: b === e.i ? "light" : "subtle",
|
|
259
260
|
color: b === e.i ? "var(--mantine-color-default-color)" : "var(--mantine-color-dimmed)",
|
|
260
261
|
radius: "default",
|
|
261
262
|
size: 32,
|
|
262
|
-
onClick: () =>
|
|
263
|
+
onClick: () => B(e),
|
|
263
264
|
"data-active": b === e.i,
|
|
264
265
|
children: e.icon
|
|
265
266
|
},
|
|
@@ -270,5 +271,5 @@ const he = [
|
|
|
270
271
|
] });
|
|
271
272
|
};
|
|
272
273
|
export {
|
|
273
|
-
|
|
274
|
+
Ae as EmojiPanel
|
|
274
275
|
};
|
|
@@ -12,6 +12,14 @@ export type EmojiPickerProps = {
|
|
|
12
12
|
showIcons?: boolean;
|
|
13
13
|
showColors?: boolean;
|
|
14
14
|
showEmojis?: boolean;
|
|
15
|
+
showGifs?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Called when a GIF is picked from the GIF tab. Receives the GIF's URL.
|
|
18
|
+
* Distinct from {@link onChange} because hosts treat a GIF differently from
|
|
19
|
+
* an emoji/icon — chat composers send it as a message rather than inserting
|
|
20
|
+
* it into the text.
|
|
21
|
+
*/
|
|
22
|
+
onSelectGif?: (url: string) => void;
|
|
15
23
|
querySearch?: string;
|
|
16
24
|
defaultActiveTab?: string | null;
|
|
17
25
|
/** Controls how the popover opens. 'click' preserves current behavior; 'realtime' opens only when typing matches triggerRegex. */
|
|
@@ -22,6 +30,12 @@ export type EmojiPickerProps = {
|
|
|
22
30
|
typingSeq?: number;
|
|
23
31
|
/** If true, clicking the random icon button will not close the popover. Default: false */
|
|
24
32
|
keepOpenOnRandom?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Show the "Random" (shuffle) button next to the search field. Default: true.
|
|
35
|
+
* Connect chat composer + message reactions pass false — a random emoji is
|
|
36
|
+
* meaningless there.
|
|
37
|
+
*/
|
|
38
|
+
showRandomButton?: boolean;
|
|
25
39
|
/**
|
|
26
40
|
* If false, picking an emoji does NOT close the popover — useful for chat
|
|
27
41
|
* composers where users typically want to insert several emoji at once.
|
|
@@ -39,7 +53,8 @@ export type EmojiPickerLocales = {
|
|
|
39
53
|
remove?: string;
|
|
40
54
|
random?: string;
|
|
41
55
|
icons?: string;
|
|
56
|
+
gifs?: string;
|
|
42
57
|
emojiCategory?: Record<string, string>;
|
|
43
58
|
};
|
|
44
|
-
export declare const EmojiPicker: ({ project, value, querySearch, children, onChange, position, popoverProps, showIcons, showColors, defaultActiveTab, showEmojis, withinPortal, locales: _locales, openWhen, triggerRegex, typingSeq, showRemoveButton, keepOpenOnRandom, closeOnSelect, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
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;
|
|
45
60
|
//# 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;
|
|
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,KAAK,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,mSAuBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CA2PrC,CAAC"}
|