@edifice.io/react 2.0.0-develop-rc.8 → 2.0.0-develop-rc.14
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/README.md +88 -17
- package/dist/common/PublishModal/PublishModal.d.ts +9 -0
- package/dist/common/PublishModal/components/ToastSuccess.d.ts +4 -0
- package/dist/common/PublishModal/hooks/usePublishModal.d.ts +38 -0
- package/dist/common/ResourceModal/ResourceModal.d.ts +30 -0
- package/dist/common/ResourceModal/apps/BlogPublic.d.ts +13 -0
- package/dist/common/ResourceModal/hooks/useSlug.d.ts +17 -0
- package/dist/common/ResourceModal/hooks/useThumb.d.ts +11 -0
- package/dist/common/ResourceModal/hooks/useUpdateMutation.d.ts +7 -0
- package/dist/common/ResourceModal/index.d.ts +3 -0
- package/dist/common/ShareModal/ShareBookmarkLine.d.ts +9 -0
- package/dist/common/ShareModal/ShareModal.d.ts +41 -0
- package/dist/common/ShareModal/apps/ShareBlog.d.ts +8 -0
- package/dist/common/ShareModal/hooks/useSearch.d.ts +24 -0
- package/dist/common/ShareModal/hooks/useShare.d.ts +54 -0
- package/dist/common/ShareModal/hooks/useShareBookmark.d.ts +23 -0
- package/dist/common/ShareModal/hooks/useShareMutation.d.ts +13 -0
- package/dist/common/ShareModal/index.d.ts +3 -0
- package/dist/common/ShareModal/utils/hasRight.d.ts +2 -0
- package/dist/common/ShareModal/utils/showShareRightLine.d.ts +2 -0
- package/dist/components/ActionBar/ActionBar.d.ts +1 -1
- package/dist/components/ActionBar/index.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/index.d.ts +1 -0
- package/dist/components/AppIcon/AppIcon.d.ts +1 -1
- package/dist/components/Attachment/Attachment.d.ts +1 -1
- package/dist/components/Attachment/index.d.ts +1 -0
- package/dist/components/Audience/ReactionChoice.d.ts +11 -0
- package/dist/components/Audience/ReactionModal.Card.d.ts +4 -0
- package/dist/components/Audience/ReactionModal.d.ts +20 -0
- package/dist/components/Audience/ReactionSummary.d.ts +10 -0
- package/dist/components/Audience/ViewsByProfileCard.d.ts +9 -0
- package/dist/components/Audience/ViewsModal.d.ts +11 -0
- package/dist/components/Audience/hooks/useReactionIcons.d.ts +5 -0
- package/dist/components/Audience/hooks/useReactions.d.ts +15 -0
- package/dist/components/Audience/hooks/useViews.d.ts +11 -0
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbNav.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/IconButton.d.ts +1 -1
- package/dist/components/Button/SearchButton.d.ts +1 -1
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Card/Card.d.ts +4 -4
- package/dist/components/Card/CardBody.d.ts +1 -1
- package/dist/components/Card/CardContext.d.ts +1 -1
- package/dist/components/Card/CardImage.d.ts +1 -1
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPickerItem.d.ts +1 -1
- package/dist/components/ColorPicker/index.d.ts +3 -1
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Dropzone/Dropzone.d.ts +1 -1
- package/dist/components/Dropzone/index.d.ts +1 -0
- package/dist/components/EmptyScreen/EmptyScreen.d.ts +1 -1
- package/dist/components/EmptyScreen/index.d.ts +1 -0
- package/dist/components/FileCard/FileCard.d.ts +2 -2
- package/dist/components/FileCard/FileIcon.d.ts +1 -1
- package/dist/components/FileCard/index.d.ts +1 -0
- package/dist/components/Form/FormControl.d.ts +1 -1
- package/dist/components/Form/FormText.d.ts +1 -1
- package/dist/components/Form/index.d.ts +2 -1
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +1 -1
- package/dist/components/LoadingScreen/index.d.ts +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Table/Table.components.d.ts +20 -0
- package/dist/components/Table/Table.d.ts +33 -0
- package/dist/components/Table/TableExplorer.d.ts +1 -1
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/Toolbar/Toolbar.d.ts +1 -1
- package/dist/components/Toolbar/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/core/OdeClientProvider/OdeClientProvider.d.ts +1 -1
- package/dist/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/useAvatar/useAvatar.d.ts +1 -1
- package/dist/core/useBookmark/useBookmark.d.ts +1 -1
- package/dist/core/useCantoo/index.d.ts +1 -0
- package/dist/core/useCantoo/useCantoo.d.ts +1 -0
- package/dist/core/useConf/useConf.d.ts +1 -1
- package/dist/core/useHeader/useHeader.d.ts +1 -1
- package/dist/core/useMediaLibrary/useMediaLibrary.d.ts +2 -2
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +1 -1
- package/dist/core/useResource/useResource.d.ts +1 -1
- package/dist/core/useResourceSearch/useResourceSearch.d.ts +1 -1
- package/dist/core/useUpload/useUpload.d.ts +1 -1
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +3 -3
- package/dist/core/useUser/useUser.d.ts +1 -1
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +1 -1
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -1
- package/dist/hooks/useToast/useToast.d.ts +1 -1
- package/dist/icons/dist/index.js +1282 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +274 -226
- package/dist/multimedia/AudioRecorder/AudioRecorder.d.ts +12 -0
- package/dist/multimedia/AudioRecorder/useAudioRecorder.d.ts +16 -0
- package/dist/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.d.ts +46 -0
- package/dist/multimedia/Linker/InternalLinker.d.ts +28 -0
- package/dist/multimedia/LinkerCard/LinkerCard.d.ts +13 -0
- package/dist/multimedia/LinkerCard/index.d.ts +2 -0
- package/dist/multimedia/MediaLibrary/MediaLibrary.d.ts +84 -0
- package/dist/multimedia/MediaLibrary/MediaLibraryContext.d.ts +60 -0
- package/dist/multimedia/MediaLibrary/innertabs/InternalLink.d.ts +11 -0
- package/dist/multimedia/UploadFiles/UploadFiles.d.ts +9 -0
- package/dist/multimedia/VideoRecorder/VideoRecorder.d.ts +14 -0
- package/dist/multimedia/Workspace/Workspace.d.ts +33 -0
- package/dist/portal/Header/WidgetApps.d.ts +1 -1
- package/dist/ui/src/common/OnboardingModal/OnboardingModal.js +59 -0
- package/dist/ui/src/common/OnboardingModal/useOnboardingModal.js +30 -0
- package/dist/ui/src/common/PublishModal/PublishModal.js +120 -0
- package/dist/ui/src/common/PublishModal/components/ActivitiesDropdown.js +29 -0
- package/dist/ui/src/common/PublishModal/components/AgeSelect.js +20 -0
- package/dist/ui/src/common/PublishModal/components/LangSelect.js +19 -0
- package/dist/ui/src/common/PublishModal/components/PublishModalFooter.js +23 -0
- package/dist/ui/src/common/PublishModal/components/SubjectsDropdown.js +29 -0
- package/dist/ui/src/common/PublishModal/components/ToastError.js +24 -0
- package/dist/ui/src/common/PublishModal/components/ToastSuccess.js +18 -0
- package/dist/ui/src/common/PublishModal/constants/ageOptions.js +4 -0
- package/dist/ui/src/common/PublishModal/hooks/useActivitiesOptions.js +34 -0
- package/dist/ui/src/common/PublishModal/hooks/useLanguageOptions.js +43 -0
- package/dist/ui/src/common/PublishModal/hooks/usePublishModal.js +106 -0
- package/dist/ui/src/common/PublishModal/hooks/useSubjectsOptions.js +118 -0
- package/dist/ui/src/common/ResourceModal/ResourceModal.js +156 -0
- package/dist/ui/src/common/ResourceModal/apps/BlogPublic.js +62 -0
- package/dist/ui/src/common/ResourceModal/hooks/useSlug.js +41 -0
- package/dist/ui/src/common/ResourceModal/hooks/useThumb.js +17 -0
- package/dist/ui/src/common/ResourceModal/hooks/useUpdateMutation.js +12 -0
- package/dist/ui/src/common/ShareModal/ShareBookmark.js +22 -0
- package/dist/ui/src/common/ShareModal/ShareBookmarkLine.js +42 -0
- package/dist/ui/src/common/ShareModal/ShareModal.js +128 -0
- package/dist/ui/src/common/ShareModal/apps/ShareBlog.js +43 -0
- package/dist/ui/src/common/ShareModal/hooks/useSearch.js +178 -0
- package/dist/ui/src/common/ShareModal/hooks/useShare.js +192 -0
- package/dist/ui/src/common/ShareModal/hooks/useShareBookmark.js +67 -0
- package/dist/ui/src/common/ShareModal/hooks/useShareMutation.js +15 -0
- package/dist/ui/src/common/ShareModal/utils/hasRight.js +4 -0
- package/dist/ui/src/common/ShareModal/utils/showShareRightLine.js +4 -0
- package/dist/ui/src/components/ActionBar/ActionBar.js +8 -0
- package/dist/ui/src/components/Alert/Alert.js +78 -0
- package/dist/ui/src/components/AppHeader/AppHeader.js +22 -0
- package/dist/ui/src/components/AppIcon/AppIcon.js +49 -0
- package/dist/ui/src/components/Attachment/Attachment.js +15 -0
- package/dist/ui/src/components/Audience/ReactionChoice.js +33 -0
- package/dist/ui/src/components/Audience/ReactionModal.Card.js +33 -0
- package/dist/ui/src/components/Audience/ReactionModal.js +73 -0
- package/dist/ui/src/components/Audience/ReactionSummary.js +27 -0
- package/dist/ui/src/components/Audience/ViewsByProfileCard.js +36 -0
- package/dist/ui/src/components/Audience/ViewsCounter.js +18 -0
- package/dist/ui/src/components/Audience/ViewsModal.js +40 -0
- package/dist/ui/src/components/Audience/hooks/useReactionIcons.js +38 -0
- package/dist/ui/src/components/Audience/hooks/useReactions.js +35 -0
- package/dist/ui/src/components/Avatar/Avatar.js +33 -0
- package/dist/ui/src/components/Badge/Badge.js +31 -0
- package/dist/ui/src/components/Breadcrumb/Breadcrumb.js +28 -0
- package/dist/ui/src/components/Breadcrumb/BreadcrumbItem.js +14 -0
- package/dist/ui/src/components/Breadcrumb/BreadcrumbList.js +13 -0
- package/dist/ui/src/components/Breadcrumb/BreadcrumbNav.js +22 -0
- package/dist/ui/src/components/Button/Button.js +35 -0
- package/dist/ui/src/components/Button/IconButton.js +18 -0
- package/dist/ui/src/components/Button/SearchButton.js +17 -0
- package/dist/ui/src/components/Card/Card.js +51 -0
- package/dist/ui/src/components/Card/CardBody.js +18 -0
- package/dist/ui/src/components/Card/CardContext.js +11 -0
- package/dist/ui/src/components/Card/CardFooter.js +7 -0
- package/dist/ui/src/components/Card/CardHeader.js +19 -0
- package/dist/ui/src/components/Card/CardImage.js +21 -0
- package/dist/ui/src/components/Card/CardText.js +12 -0
- package/dist/ui/src/components/Card/CardTitle.js +12 -0
- package/dist/ui/src/components/Card/CardUser.js +10 -0
- package/dist/ui/src/components/Checkbox/Checkbox.js +35 -0
- package/dist/ui/src/components/ColorPicker/ColorPalette.js +171 -0
- package/dist/ui/src/components/ColorPicker/ColorPicker.js +37 -0
- package/dist/ui/src/components/ColorPicker/ColorPickerItem.js +13 -0
- package/dist/ui/src/components/Combobox/Combobox.js +40 -0
- package/dist/ui/src/components/Combobox/ComboboxTrigger.js +30 -0
- package/dist/ui/src/components/Dropdown/Dropdown.js +60 -0
- package/dist/ui/src/components/Dropdown/DropdownCheckboxItem.js +34 -0
- package/dist/ui/src/components/Dropdown/DropdownContext.js +11 -0
- package/dist/ui/src/components/Dropdown/DropdownItem.js +33 -0
- package/dist/ui/src/components/Dropdown/DropdownMenu.js +26 -0
- package/dist/ui/src/components/Dropdown/DropdownMenuGroup.js +12 -0
- package/dist/ui/src/components/Dropdown/DropdownRadioItem.js +34 -0
- package/dist/ui/src/components/Dropdown/DropdownSeparator.js +5 -0
- package/dist/ui/src/components/Dropdown/DropdownTrigger.js +34 -0
- package/dist/ui/src/components/Dropzone/Dropzone.js +56 -0
- package/dist/ui/src/components/Dropzone/DropzoneContext.js +12 -0
- package/dist/ui/src/components/Dropzone/DropzoneDrag.js +11 -0
- package/dist/ui/src/components/Dropzone/DropzoneFile.js +32 -0
- package/dist/ui/src/components/Dropzone/DropzoneImport.js +28 -0
- package/dist/ui/src/components/EmptyScreen/EmptyScreen.js +20 -0
- package/dist/ui/src/components/FileCard/FileCard.js +91 -0
- package/dist/ui/src/components/FileCard/FileIcon.js +15 -0
- package/dist/ui/src/components/Form/FormContext.js +11 -0
- package/dist/ui/src/components/Form/FormControl.js +32 -0
- package/dist/ui/src/components/Form/FormText.js +17 -0
- package/dist/ui/src/components/Grid/Grid.js +32 -0
- package/dist/ui/src/components/Heading/Heading.js +16 -0
- package/dist/ui/src/components/Image/Image.js +41 -0
- package/dist/ui/src/components/ImagePicker/ImagePicker.js +58 -0
- package/dist/ui/src/components/Input/Input.js +31 -0
- package/dist/ui/src/components/Label/Label.js +37 -0
- package/dist/ui/src/components/Loading/Loading.js +27 -0
- package/dist/ui/src/components/LoadingScreen/LoadingScreen.js +25 -0
- package/dist/ui/src/components/Logo/Logo.js +14 -0
- package/dist/ui/src/components/Menu/Menu.js +58 -0
- package/dist/ui/src/components/Menu/MenuButton.js +21 -0
- package/dist/ui/src/components/Menu/MenuContext.js +12 -0
- package/dist/ui/src/components/Menu/MenuItem.js +19 -0
- package/dist/ui/src/components/Modal/Modal.js +72 -0
- package/dist/ui/src/components/Modal/ModalBody.js +15 -0
- package/dist/ui/src/components/Modal/ModalContext.js +15 -0
- package/dist/ui/src/components/Modal/ModalFooter.js +5 -0
- package/dist/ui/src/components/Modal/ModalHeader.js +27 -0
- package/dist/ui/src/components/Modal/ModalSubtitle.js +5 -0
- package/dist/ui/src/components/Popover/Popover.js +51 -0
- package/dist/ui/src/components/Radio/Radio.js +31 -0
- package/dist/ui/src/components/SearchBar/SearchBar.js +36 -0
- package/dist/ui/src/components/Select/Select.js +37 -0
- package/dist/ui/src/components/Select/SelectTrigger.js +6 -0
- package/dist/ui/src/components/Table/Table.components.js +39 -0
- package/dist/ui/src/components/Table/Table.js +16 -0
- package/dist/ui/src/components/Tabs/Tabs.js +75 -0
- package/dist/ui/src/components/Tabs/TabsContext.js +12 -0
- package/dist/ui/src/components/Tabs/TabsItem.js +26 -0
- package/dist/ui/src/components/Tabs/TabsList.js +24 -0
- package/dist/ui/src/components/Tabs/TabsPanel.js +14 -0
- package/dist/ui/src/components/TextArea/TextArea.js +34 -0
- package/dist/ui/src/components/TextArea/TextareaCounter.js +8 -0
- package/dist/ui/src/components/Toolbar/Toolbar.js +77 -0
- package/dist/ui/src/components/Tooltip/Tooltip.js +40 -0
- package/dist/ui/src/components/TreeView/TreeItem.js +54 -0
- package/dist/ui/src/components/TreeView/TreeView.js +39 -0
- package/dist/ui/src/components/TreeView/hooks/useTreeItemEvents.js +28 -0
- package/dist/ui/src/components/UploadCard/UploadCard.js +72 -0
- package/dist/ui/src/components/VisuallyHidden/VisuallyHidden.js +8 -0
- package/dist/ui/src/core/OdeClientProvider/OdeClientProvider.js +62 -0
- package/dist/ui/src/core/ThemeProvider/ThemeProvider.js +53 -0
- package/dist/ui/src/core/useAvatar/useAvatar.js +30 -0
- package/dist/ui/src/core/useBookmark/useBookmark.js +14 -0
- package/dist/ui/src/core/useCantoo/useCantoo.js +18 -0
- package/dist/ui/src/core/useConf/useConf.js +13 -0
- package/dist/ui/src/core/useConversation/useConversation.js +43 -0
- package/dist/ui/src/core/useCookiesConsent/useCookiesConsent.js +29 -0
- package/dist/ui/src/core/useDate/useDate.js +65 -0
- package/dist/ui/src/core/useHasWorkflow/useHasWorkflow.js +22 -0
- package/dist/ui/src/core/useHeader/useHeader.js +50 -0
- package/dist/ui/src/core/useHttpErrorToast/useHttpErrorToast.js +21 -0
- package/dist/ui/src/core/useIsAdml/useIsAdml.js +18 -0
- package/dist/ui/src/core/useLibraryUrl/useLibraryUrl.js +21 -0
- package/dist/ui/src/core/useMediaLibrary/useMediaLibrary.js +58 -0
- package/dist/ui/src/core/useOdeIcons/useOdeIcons.js +92 -0
- package/dist/ui/src/core/usePaths/usePaths.js +6 -0
- package/dist/ui/src/core/usePreferences/usePreferences.js +10 -0
- package/dist/ui/src/core/useResource/useResource.js +25 -0
- package/dist/ui/src/core/useResourceSearch/useResourceSearch.js +34 -0
- package/dist/ui/src/core/useSession/useSession.js +11 -0
- package/dist/ui/src/core/useTrashedResource/useTrashedResource.js +27 -0
- package/dist/ui/src/core/useUpload/useUpload.js +106 -0
- package/dist/ui/src/core/useUploadFiles/useUploadFiles.js +101 -0
- package/dist/ui/src/core/useUser/useUser.js +22 -0
- package/dist/ui/src/core/useWorkspaceFile/useWorkspaceFile.js +49 -0
- package/dist/ui/src/core/useWorkspaceSearch/useWorkspaceSearch.js +58 -0
- package/dist/ui/src/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js +28 -0
- package/dist/ui/src/core/useZendeskGuide/useZendeskGuide.js +101 -0
- package/dist/ui/src/hooks/useBrowserInfo/useBrowserInfo.js +16 -0
- package/dist/ui/src/hooks/useClickOutside/useClickOutside.js +26 -0
- package/dist/ui/src/hooks/useDebounce/useDebounce.js +15 -0
- package/dist/ui/src/hooks/useDropdown/useDropdown.js +158 -0
- package/dist/ui/src/hooks/useDropzone/useDropzone.js +76 -0
- package/dist/ui/src/hooks/useHover/useHover.js +22 -0
- package/dist/ui/src/hooks/useImage/useImage.js +18 -0
- package/dist/ui/src/hooks/useImageResizer/useImageResizer.js +42 -0
- package/dist/ui/src/hooks/useKeyPress/useKeyPress.js +14 -0
- package/dist/ui/src/hooks/useScrollToTop/useScrollToTop.js +9 -0
- package/dist/ui/src/hooks/useThumbnail/useThumbnail.js +29 -0
- package/dist/ui/src/hooks/useTitle/useTitle.js +10 -0
- package/dist/ui/src/hooks/useToast/useToast.js +34 -0
- package/dist/ui/src/hooks/useToggle/useToggle.js +10 -0
- package/dist/ui/src/hooks/useTrapFocus/useTrapFocus.js +16 -0
- package/dist/ui/src/multimedia/AudioRecorder/AudioRecorder.js +49 -0
- package/dist/ui/src/multimedia/AudioRecorder/AudioRecorderTimer.js +24 -0
- package/dist/ui/src/multimedia/AudioRecorder/useAudioRecorder.js +307 -0
- package/dist/ui/src/multimedia/Embed/Embed.js +32 -0
- package/dist/ui/src/multimedia/ImageEditor/components/ImageEditor.js +116 -0
- package/dist/ui/src/multimedia/ImageEditor/components/ImageEditorToolbar.js +69 -0
- package/dist/ui/src/multimedia/ImageEditor/effects/blur.js +72 -0
- package/dist/ui/src/multimedia/ImageEditor/effects/crop.js +155 -0
- package/dist/ui/src/multimedia/ImageEditor/effects/misc.js +162 -0
- package/dist/ui/src/multimedia/ImageEditor/effects/resize.js +157 -0
- package/dist/ui/src/multimedia/ImageEditor/effects/rotate.js +33 -0
- package/dist/ui/src/multimedia/ImageEditor/hooks/useHistoryTool.js +66 -0
- package/dist/ui/src/multimedia/ImageEditor/hooks/useImageEditor.js +76 -0
- package/dist/ui/src/multimedia/ImageEditor/hooks/useImageEffects.js +52 -0
- package/dist/ui/src/multimedia/ImageEditor/utils/aggregate.js +13 -0
- package/dist/ui/src/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +39 -0
- package/dist/ui/src/multimedia/Linker/ExternalLinker.js +45 -0
- package/dist/ui/src/multimedia/Linker/InternalLinker.js +114 -0
- package/dist/ui/src/multimedia/LinkerCard/LinkerCard.js +38 -0
- package/dist/ui/src/multimedia/MediaLibrary/MediaLibrary.js +211 -0
- package/dist/ui/src/multimedia/MediaLibrary/MediaLibraryContext.js +12 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/Audio.js +19 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/ExternalLink.js +17 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/Iframe.js +14 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/InternalLink.js +35 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/Upload.js +34 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/Video.js +22 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +14 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/Workspace.js +31 -0
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/index.js +21 -0
- package/dist/ui/src/multimedia/UploadFiles/UploadFiles.js +56 -0
- package/dist/ui/src/multimedia/VideoEmbed/VideoEmbed.js +77 -0
- package/dist/ui/src/multimedia/VideoRecorder/VideoRecorder.js +259 -0
- package/dist/ui/src/multimedia/Workspace/Workspace.js +169 -0
- package/dist/ui/src/portal/Header/Badge.js +9 -0
- package/dist/ui/src/portal/Header/Header.js +171 -0
- package/dist/ui/src/portal/Header/NavItem.js +14 -0
- package/dist/ui/src/portal/Header/NavLink.js +19 -0
- package/dist/ui/src/portal/Header/Navbar.js +13 -0
- package/dist/ui/src/portal/Header/NavbarNav.js +13 -0
- package/dist/ui/src/portal/Header/WidgetApps.js +23 -0
- package/dist/ui/src/portal/Help/Help.js +25 -0
- package/dist/ui/src/portal/Help/hooks/useHelp.js +85 -0
- package/dist/ui/src/portal/Layout/Layout.js +43 -0
- package/dist/ui/src/portal/SearchEngine/SearchEngine.js +33 -0
- package/dist/ui/src/utils/MockedDataProvider/MockedDataProvider.js +26 -0
- package/dist/ui/src/utils/StringUtils.js +14 -0
- package/dist/ui/src/utils/addTimestampToUrl.js +7 -0
- package/dist/ui/src/utils/blob.js +15 -0
- package/dist/ui/src/utils/checkUserRight.js +44 -0
- package/dist/ui/src/utils/fileSize.js +8 -0
- package/dist/ui/src/utils/findTreeNode.js +11 -0
- package/dist/ui/src/utils/isActionAvailable.js +7 -0
- package/dist/ui/src/utils/libraryMaps.js +12 -0
- package/dist/ui/src/utils/noop.js +5 -0
- package/dist/ui/src/utils/ref.js +14 -0
- package/dist/ui/src/utils/thumbnail.js +6 -0
- package/dist/ui/src/utils/time.js +11 -0
- package/dist/ui/src/utils/treeview.js +133 -0
- package/dist/ui/src/utils/video.js +4 -0
- package/dist/ui/src/widgets/BookmarkedApps/BookmarkedApps.js +8 -0
- package/dist/ui/src/widgets/Widget/Widget.js +22 -0
- package/dist/utils/MockedDataProvider/MockedDataProvider.d.ts +1 -1
- package/dist/utils/checkUserRight.d.ts +1 -1
- package/dist/utils/isActionAvailable.d.ts +1 -1
- package/dist/utils/treeview.d.ts +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.d.ts +1 -1
- package/package.json +30 -61
- package/dist/audience.js +0 -17
- package/dist/audience.js.map +0 -1
- package/dist/components/ActionBar/ActionBar.js +0 -10
- package/dist/components/ActionBar/ActionBar.js.map +0 -1
- package/dist/components/Alert/Alert.js +0 -80
- package/dist/components/Alert/Alert.js.map +0 -1
- package/dist/components/AppHeader/AppHeader.js +0 -24
- package/dist/components/AppHeader/AppHeader.js.map +0 -1
- package/dist/components/AppIcon/AppIcon.js +0 -50
- package/dist/components/AppIcon/AppIcon.js.map +0 -1
- package/dist/components/Attachment/Attachment.js +0 -17
- package/dist/components/Attachment/Attachment.js.map +0 -1
- package/dist/components/Avatar/Avatar.js +0 -35
- package/dist/components/Avatar/Avatar.js.map +0 -1
- package/dist/components/Badge/Badge.js +0 -33
- package/dist/components/Badge/Badge.js.map +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +0 -29
- package/dist/components/Breadcrumb/Breadcrumb.js.map +0 -1
- package/dist/components/Breadcrumb/BreadcrumbItem.js +0 -15
- package/dist/components/Breadcrumb/BreadcrumbItem.js.map +0 -1
- package/dist/components/Breadcrumb/BreadcrumbList.js +0 -14
- package/dist/components/Breadcrumb/BreadcrumbList.js.map +0 -1
- package/dist/components/Breadcrumb/BreadcrumbNav.js +0 -23
- package/dist/components/Breadcrumb/BreadcrumbNav.js.map +0 -1
- package/dist/components/Button/Button.js +0 -37
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/IconButton.js +0 -20
- package/dist/components/Button/IconButton.js.map +0 -1
- package/dist/components/Button/SearchButton.js +0 -19
- package/dist/components/Button/SearchButton.js.map +0 -1
- package/dist/components/Card/Card.js +0 -53
- package/dist/components/Card/Card.js.map +0 -1
- package/dist/components/Card/CardBody.js +0 -19
- package/dist/components/Card/CardBody.js.map +0 -1
- package/dist/components/Card/CardContext.js +0 -12
- package/dist/components/Card/CardContext.js.map +0 -1
- package/dist/components/Card/CardFooter.js +0 -8
- package/dist/components/Card/CardFooter.js.map +0 -1
- package/dist/components/Card/CardHeader.js +0 -20
- package/dist/components/Card/CardHeader.js.map +0 -1
- package/dist/components/Card/CardImage.js +0 -22
- package/dist/components/Card/CardImage.js.map +0 -1
- package/dist/components/Card/CardText.js +0 -13
- package/dist/components/Card/CardText.js.map +0 -1
- package/dist/components/Card/CardTitle.js +0 -13
- package/dist/components/Card/CardTitle.js.map +0 -1
- package/dist/components/Card/CardUser.js +0 -11
- package/dist/components/Card/CardUser.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.js +0 -37
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/ColorPicker/ColorPalette.js +0 -172
- package/dist/components/ColorPicker/ColorPalette.js.map +0 -1
- package/dist/components/ColorPicker/ColorPicker.js +0 -39
- package/dist/components/ColorPicker/ColorPicker.js.map +0 -1
- package/dist/components/ColorPicker/ColorPickerItem.js +0 -15
- package/dist/components/ColorPicker/ColorPickerItem.js.map +0 -1
- package/dist/components/Combobox/Combobox.js +0 -42
- package/dist/components/Combobox/Combobox.js.map +0 -1
- package/dist/components/Combobox/ComboboxTrigger.js +0 -31
- package/dist/components/Combobox/ComboboxTrigger.js.map +0 -1
- package/dist/components/Dropdown/Dropdown.js +0 -62
- package/dist/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/components/Dropdown/DropdownCheckboxItem.js +0 -35
- package/dist/components/Dropdown/DropdownCheckboxItem.js.map +0 -1
- package/dist/components/Dropdown/DropdownContext.js +0 -12
- package/dist/components/Dropdown/DropdownContext.js.map +0 -1
- package/dist/components/Dropdown/DropdownItem.js +0 -34
- package/dist/components/Dropdown/DropdownItem.js.map +0 -1
- package/dist/components/Dropdown/DropdownMenu.js +0 -27
- package/dist/components/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/components/Dropdown/DropdownMenuGroup.js +0 -13
- package/dist/components/Dropdown/DropdownMenuGroup.js.map +0 -1
- package/dist/components/Dropdown/DropdownRadioItem.js +0 -35
- package/dist/components/Dropdown/DropdownRadioItem.js.map +0 -1
- package/dist/components/Dropdown/DropdownSeparator.js +0 -6
- package/dist/components/Dropdown/DropdownSeparator.js.map +0 -1
- package/dist/components/Dropdown/DropdownTrigger.js +0 -35
- package/dist/components/Dropdown/DropdownTrigger.js.map +0 -1
- package/dist/components/Dropzone/Dropzone.js +0 -57
- package/dist/components/Dropzone/Dropzone.js.map +0 -1
- package/dist/components/Dropzone/DropzoneContext.js +0 -13
- package/dist/components/Dropzone/DropzoneContext.js.map +0 -1
- package/dist/components/Dropzone/DropzoneDrag.js +0 -12
- package/dist/components/Dropzone/DropzoneDrag.js.map +0 -1
- package/dist/components/Dropzone/DropzoneFile.js +0 -33
- package/dist/components/Dropzone/DropzoneFile.js.map +0 -1
- package/dist/components/Dropzone/DropzoneImport.js +0 -29
- package/dist/components/Dropzone/DropzoneImport.js.map +0 -1
- package/dist/components/EmptyScreen/EmptyScreen.js +0 -22
- package/dist/components/EmptyScreen/EmptyScreen.js.map +0 -1
- package/dist/components/FileCard/FileCard.js +0 -93
- package/dist/components/FileCard/FileCard.js.map +0 -1
- package/dist/components/FileCard/FileIcon.js +0 -16
- package/dist/components/FileCard/FileIcon.js.map +0 -1
- package/dist/components/Form/FormContext.js +0 -12
- package/dist/components/Form/FormContext.js.map +0 -1
- package/dist/components/Form/FormControl.js +0 -34
- package/dist/components/Form/FormControl.js.map +0 -1
- package/dist/components/Form/FormText.js +0 -19
- package/dist/components/Form/FormText.js.map +0 -1
- package/dist/components/Grid/Grid.js +0 -33
- package/dist/components/Grid/Grid.js.map +0 -1
- package/dist/components/Heading/Heading.js +0 -18
- package/dist/components/Heading/Heading.js.map +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -17
- package/dist/components/Icon/Icon.js +0 -11
- package/dist/components/Icon/Icon.js.map +0 -1
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Image/Image.js +0 -43
- package/dist/components/Image/Image.js.map +0 -1
- package/dist/components/ImagePicker/ImagePicker.js +0 -59
- package/dist/components/ImagePicker/ImagePicker.js.map +0 -1
- package/dist/components/Input/Input.js +0 -33
- package/dist/components/Input/Input.js.map +0 -1
- package/dist/components/Label/Label.js +0 -39
- package/dist/components/Label/Label.js.map +0 -1
- package/dist/components/Loading/Loading.js +0 -29
- package/dist/components/Loading/Loading.js.map +0 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +0 -27
- package/dist/components/LoadingScreen/LoadingScreen.js.map +0 -1
- package/dist/components/Logo/Logo.js +0 -16
- package/dist/components/Logo/Logo.js.map +0 -1
- package/dist/components/Menu/Menu.js +0 -59
- package/dist/components/Menu/Menu.js.map +0 -1
- package/dist/components/Menu/MenuButton.js +0 -22
- package/dist/components/Menu/MenuButton.js.map +0 -1
- package/dist/components/Menu/MenuContext.js +0 -13
- package/dist/components/Menu/MenuContext.js.map +0 -1
- package/dist/components/Menu/MenuItem.js +0 -20
- package/dist/components/Menu/MenuItem.js.map +0 -1
- package/dist/components/Modal/Modal.js +0 -74
- package/dist/components/Modal/Modal.js.map +0 -1
- package/dist/components/Modal/ModalBody.js +0 -16
- package/dist/components/Modal/ModalBody.js.map +0 -1
- package/dist/components/Modal/ModalContext.js +0 -16
- package/dist/components/Modal/ModalContext.js.map +0 -1
- package/dist/components/Modal/ModalFooter.js +0 -6
- package/dist/components/Modal/ModalFooter.js.map +0 -1
- package/dist/components/Modal/ModalHeader.js +0 -28
- package/dist/components/Modal/ModalHeader.js.map +0 -1
- package/dist/components/Modal/ModalSubtitle.js +0 -6
- package/dist/components/Modal/ModalSubtitle.js.map +0 -1
- package/dist/components/Popover/Popover.js +0 -52
- package/dist/components/Popover/Popover.js.map +0 -1
- package/dist/components/Radio/Radio.js +0 -33
- package/dist/components/Radio/Radio.js.map +0 -1
- package/dist/components/SearchBar/SearchBar.js +0 -38
- package/dist/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/components/Select/Select.js +0 -39
- package/dist/components/Select/Select.js.map +0 -1
- package/dist/components/Select/SelectTrigger.js +0 -7
- package/dist/components/Select/SelectTrigger.js.map +0 -1
- package/dist/components/Table/TableExplorer.js +0 -10
- package/dist/components/Table/TableExplorer.js.map +0 -1
- package/dist/components/Tabs/Tabs.js +0 -76
- package/dist/components/Tabs/Tabs.js.map +0 -1
- package/dist/components/Tabs/TabsContext.js +0 -13
- package/dist/components/Tabs/TabsContext.js.map +0 -1
- package/dist/components/Tabs/TabsItem.js +0 -27
- package/dist/components/Tabs/TabsItem.js.map +0 -1
- package/dist/components/Tabs/TabsList.js +0 -25
- package/dist/components/Tabs/TabsList.js.map +0 -1
- package/dist/components/Tabs/TabsPanel.js +0 -15
- package/dist/components/Tabs/TabsPanel.js.map +0 -1
- package/dist/components/TextArea/TextArea.js +0 -36
- package/dist/components/TextArea/TextArea.js.map +0 -1
- package/dist/components/TextArea/TextareaCounter.js +0 -9
- package/dist/components/TextArea/TextareaCounter.js.map +0 -1
- package/dist/components/Toolbar/Toolbar.js +0 -79
- package/dist/components/Toolbar/Toolbar.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.js +0 -42
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/TreeView/TreeItem.js +0 -55
- package/dist/components/TreeView/TreeItem.js.map +0 -1
- package/dist/components/TreeView/TreeView.js +0 -41
- package/dist/components/TreeView/TreeView.js.map +0 -1
- package/dist/components/TreeView/hooks/useTreeItemEvents.js +0 -29
- package/dist/components/TreeView/hooks/useTreeItemEvents.js.map +0 -1
- package/dist/components/UploadCard/UploadCard.js +0 -73
- package/dist/components/UploadCard/UploadCard.js.map +0 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +0 -10
- package/dist/components/VisuallyHidden/VisuallyHidden.js.map +0 -1
- package/dist/core/OdeClientProvider/OdeClientProvider.js +0 -63
- package/dist/core/OdeClientProvider/OdeClientProvider.js.map +0 -1
- package/dist/core/ThemeProvider/ThemeProvider.js +0 -53
- package/dist/core/ThemeProvider/ThemeProvider.js.map +0 -1
- package/dist/core/useAvatar/useAvatar.js +0 -31
- package/dist/core/useAvatar/useAvatar.js.map +0 -1
- package/dist/core/useBookmark/useBookmark.js +0 -15
- package/dist/core/useBookmark/useBookmark.js.map +0 -1
- package/dist/core/useConf/useConf.js +0 -14
- package/dist/core/useConf/useConf.js.map +0 -1
- package/dist/core/useConversation/useConversation.js +0 -44
- package/dist/core/useConversation/useConversation.js.map +0 -1
- package/dist/core/useCookiesConsent/useCookiesConsent.js +0 -30
- package/dist/core/useCookiesConsent/useCookiesConsent.js.map +0 -1
- package/dist/core/useDate/useDate.js +0 -66
- package/dist/core/useDate/useDate.js.map +0 -1
- package/dist/core/useHasWorkflow/useHasWorkflow.js +0 -23
- package/dist/core/useHasWorkflow/useHasWorkflow.js.map +0 -1
- package/dist/core/useHeader/useHeader.js +0 -47
- package/dist/core/useHeader/useHeader.js.map +0 -1
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js +0 -22
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js.map +0 -1
- package/dist/core/useIsAdml/useIsAdml.js +0 -19
- package/dist/core/useIsAdml/useIsAdml.js.map +0 -1
- package/dist/core/useLibraryUrl/useLibraryUrl.js +0 -22
- package/dist/core/useLibraryUrl/useLibraryUrl.js.map +0 -1
- package/dist/core/useMediaLibrary/useMediaLibrary.js +0 -59
- package/dist/core/useMediaLibrary/useMediaLibrary.js.map +0 -1
- package/dist/core/useOdeIcons/useOdeIcons.js +0 -93
- package/dist/core/useOdeIcons/useOdeIcons.js.map +0 -1
- package/dist/core/usePaths/usePaths.js +0 -7
- package/dist/core/usePaths/usePaths.js.map +0 -1
- package/dist/core/usePreferences/usePreferences.js +0 -11
- package/dist/core/usePreferences/usePreferences.js.map +0 -1
- package/dist/core/useResource/useResource.js +0 -26
- package/dist/core/useResource/useResource.js.map +0 -1
- package/dist/core/useResourceSearch/useResourceSearch.js +0 -35
- package/dist/core/useResourceSearch/useResourceSearch.js.map +0 -1
- package/dist/core/useSession/useSession.js +0 -12
- package/dist/core/useSession/useSession.js.map +0 -1
- package/dist/core/useTrashedResource/useTrashedResource.js +0 -28
- package/dist/core/useTrashedResource/useTrashedResource.js.map +0 -1
- package/dist/core/useUpload/useUpload.js +0 -107
- package/dist/core/useUpload/useUpload.js.map +0 -1
- package/dist/core/useUploadFiles/useUploadFiles.js +0 -102
- package/dist/core/useUploadFiles/useUploadFiles.js.map +0 -1
- package/dist/core/useUser/useUser.js +0 -23
- package/dist/core/useUser/useUser.js.map +0 -1
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +0 -50
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js.map +0 -1
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +0 -59
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js.map +0 -1
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js +0 -29
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js.map +0 -1
- package/dist/core/useZendeskGuide/useZendeskGuide.js +0 -102
- package/dist/core/useZendeskGuide/useZendeskGuide.js.map +0 -1
- package/dist/editor.js +0 -59
- package/dist/editor.js.map +0 -1
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +0 -17
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js.map +0 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +0 -27
- package/dist/hooks/useClickOutside/useClickOutside.js.map +0 -1
- package/dist/hooks/useDebounce/useDebounce.js +0 -16
- package/dist/hooks/useDebounce/useDebounce.js.map +0 -1
- package/dist/hooks/useDropdown/useDropdown.js +0 -159
- package/dist/hooks/useDropdown/useDropdown.js.map +0 -1
- package/dist/hooks/useDropzone/useDropzone.js +0 -77
- package/dist/hooks/useDropzone/useDropzone.js.map +0 -1
- package/dist/hooks/useHover/useHover.js +0 -23
- package/dist/hooks/useHover/useHover.js.map +0 -1
- package/dist/hooks/useImage/useImage.js +0 -19
- package/dist/hooks/useImage/useImage.js.map +0 -1
- package/dist/hooks/useImageResizer/useImageResizer.js +0 -43
- package/dist/hooks/useImageResizer/useImageResizer.js.map +0 -1
- package/dist/hooks/useKeyPress/useKeyPress.js +0 -15
- package/dist/hooks/useKeyPress/useKeyPress.js.map +0 -1
- package/dist/hooks/useScrollToTop/useScrollToTop.js +0 -10
- package/dist/hooks/useScrollToTop/useScrollToTop.js.map +0 -1
- package/dist/hooks/useThumbnail/useThumbnail.js +0 -30
- package/dist/hooks/useThumbnail/useThumbnail.js.map +0 -1
- package/dist/hooks/useTitle/useTitle.js +0 -11
- package/dist/hooks/useTitle/useTitle.js.map +0 -1
- package/dist/hooks/useToast/useToast.js +0 -35
- package/dist/hooks/useToast/useToast.js.map +0 -1
- package/dist/hooks/useToggle/useToggle.js +0 -11
- package/dist/hooks/useToggle/useToggle.js.map +0 -1
- package/dist/hooks/useTrapFocus/useTrapFocus.js +0 -17
- package/dist/hooks/useTrapFocus/useTrapFocus.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/modals.js +0 -17
- package/dist/modals.js.map +0 -1
- package/dist/modules/audience/ReactionChoice.d.ts +0 -11
- package/dist/modules/audience/ReactionChoice.js +0 -34
- package/dist/modules/audience/ReactionChoice.js.map +0 -1
- package/dist/modules/audience/ReactionModal.Card.d.ts +0 -4
- package/dist/modules/audience/ReactionModal.Card.js +0 -35
- package/dist/modules/audience/ReactionModal.Card.js.map +0 -1
- package/dist/modules/audience/ReactionModal.d.ts +0 -20
- package/dist/modules/audience/ReactionModal.js +0 -73
- package/dist/modules/audience/ReactionModal.js.map +0 -1
- package/dist/modules/audience/ReactionSummary.d.ts +0 -10
- package/dist/modules/audience/ReactionSummary.js +0 -28
- package/dist/modules/audience/ReactionSummary.js.map +0 -1
- package/dist/modules/audience/ViewsByProfileCard.d.ts +0 -9
- package/dist/modules/audience/ViewsByProfileCard.js +0 -36
- package/dist/modules/audience/ViewsByProfileCard.js.map +0 -1
- package/dist/modules/audience/ViewsCounter.js +0 -19
- package/dist/modules/audience/ViewsCounter.js.map +0 -1
- package/dist/modules/audience/ViewsModal.d.ts +0 -11
- package/dist/modules/audience/ViewsModal.js +0 -41
- package/dist/modules/audience/ViewsModal.js.map +0 -1
- package/dist/modules/audience/hooks/useReactionIcons.d.ts +0 -5
- package/dist/modules/audience/hooks/useReactionIcons.js +0 -38
- package/dist/modules/audience/hooks/useReactionIcons.js.map +0 -1
- package/dist/modules/audience/hooks/useReactions.d.ts +0 -15
- package/dist/modules/audience/hooks/useReactions.js +0 -36
- package/dist/modules/audience/hooks/useReactions.js.map +0 -1
- package/dist/modules/audience/hooks/useViews.d.ts +0 -11
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.d.ts +0 -8
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +0 -133
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js.map +0 -1
- package/dist/modules/editor/components/BubbleMenuEditImage/index.d.ts +0 -1
- package/dist/modules/editor/components/Editor/Editor.d.ts +0 -45
- package/dist/modules/editor/components/Editor/Editor.js +0 -84
- package/dist/modules/editor/components/Editor/Editor.js.map +0 -1
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +0 -7
- package/dist/modules/editor/components/Editor/MathsModal.js +0 -51
- package/dist/modules/editor/components/Editor/MathsModal.js.map +0 -1
- package/dist/modules/editor/components/Editor/index.d.ts +0 -2
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.d.ts +0 -22
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js +0 -18
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js.map +0 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.d.ts +0 -14
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js +0 -55
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js.map +0 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.d.ts +0 -14
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js +0 -48
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js.map +0 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.d.ts +0 -9
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js +0 -19
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js.map +0 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.d.ts +0 -14
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js +0 -51
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js.map +0 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.d.ts +0 -10
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js +0 -63
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js.map +0 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.d.ts +0 -10
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +0 -53
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js.map +0 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +0 -10
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +0 -320
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js.map +0 -1
- package/dist/modules/editor/components/EditorToolbar/index.d.ts +0 -1
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.d.ts +0 -2
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +0 -11
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js.map +0 -1
- package/dist/modules/editor/components/NodeView/AudioNodeView.d.ts +0 -2
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +0 -11
- package/dist/modules/editor/components/NodeView/AudioNodeView.js.map +0 -1
- package/dist/modules/editor/components/NodeView/ImageNodeView.d.ts +0 -2
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +0 -11
- package/dist/modules/editor/components/NodeView/ImageNodeView.js.map +0 -1
- package/dist/modules/editor/components/NodeView/LinkerNodeView.d.ts +0 -2
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +0 -11
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js.map +0 -1
- package/dist/modules/editor/components/NodeView/VideoNodeView.d.ts +0 -2
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +0 -11
- package/dist/modules/editor/components/NodeView/VideoNodeView.js.map +0 -1
- package/dist/modules/editor/components/NodeView/index.d.ts +0 -5
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.d.ts +0 -7
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +0 -35
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js.map +0 -1
- package/dist/modules/editor/components/Renderer/AudioRenderer.d.ts +0 -7
- package/dist/modules/editor/components/Renderer/AudioRenderer.js +0 -12
- package/dist/modules/editor/components/Renderer/AudioRenderer.js.map +0 -1
- package/dist/modules/editor/components/Renderer/LinkerRenderer.d.ts +0 -9
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +0 -35
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js.map +0 -1
- package/dist/modules/editor/components/Renderer/MediaRenderer.d.ts +0 -2
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +0 -70
- package/dist/modules/editor/components/Renderer/MediaRenderer.js.map +0 -1
- package/dist/modules/editor/components/Renderer/index.d.ts +0 -4
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.d.ts +0 -2
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.js +0 -9
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.js.map +0 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +0 -15
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +0 -60
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js.map +0 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.d.ts +0 -9
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +0 -29
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js.map +0 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.d.ts +0 -13
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js +0 -46
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js.map +0 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.d.ts +0 -9
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +0 -28
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js.map +0 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +0 -9
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +0 -89
- package/dist/modules/editor/components/Toolbar/TableToolbar.js.map +0 -1
- package/dist/modules/editor/components/Toolbar/index.d.ts +0 -2
- package/dist/modules/editor/components/index.d.ts +0 -6
- package/dist/modules/editor/hooks/index.d.ts +0 -12
- package/dist/modules/editor/hooks/useActionOptions.d.ts +0 -5
- package/dist/modules/editor/hooks/useActionOptions.js +0 -76
- package/dist/modules/editor/hooks/useActionOptions.js.map +0 -1
- package/dist/modules/editor/hooks/useCommentEditor.d.ts +0 -13
- package/dist/modules/editor/hooks/useCommentEditor.js +0 -38
- package/dist/modules/editor/hooks/useCommentEditor.js.map +0 -1
- package/dist/modules/editor/hooks/useEditorContext.d.ts +0 -37
- package/dist/modules/editor/hooks/useEditorContext.js +0 -13
- package/dist/modules/editor/hooks/useEditorContext.js.map +0 -1
- package/dist/modules/editor/hooks/useImageModal.d.ts +0 -31
- package/dist/modules/editor/hooks/useImageModal.js +0 -47
- package/dist/modules/editor/hooks/useImageModal.js.map +0 -1
- package/dist/modules/editor/hooks/useImageSelection.d.ts +0 -21
- package/dist/modules/editor/hooks/useImageSelection.js +0 -47
- package/dist/modules/editor/hooks/useImageSelection.js.map +0 -1
- package/dist/modules/editor/hooks/useLinkToolbar.d.ts +0 -17
- package/dist/modules/editor/hooks/useLinkToolbar.js +0 -38
- package/dist/modules/editor/hooks/useLinkToolbar.js.map +0 -1
- package/dist/modules/editor/hooks/useMathsModal.d.ts +0 -17
- package/dist/modules/editor/hooks/useMathsModal.js +0 -18
- package/dist/modules/editor/hooks/useMathsModal.js.map +0 -1
- package/dist/modules/editor/hooks/useMathsStyles.d.ts +0 -1
- package/dist/modules/editor/hooks/useMathsStyles.js +0 -21
- package/dist/modules/editor/hooks/useMathsStyles.js.map +0 -1
- package/dist/modules/editor/hooks/useMediaLibraryEditor.d.ts +0 -19
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js +0 -153
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js.map +0 -1
- package/dist/modules/editor/hooks/useResizeMedia.d.ts +0 -10
- package/dist/modules/editor/hooks/useResizeMedia.js +0 -48
- package/dist/modules/editor/hooks/useResizeMedia.js.map +0 -1
- package/dist/modules/editor/hooks/useSpeechRecognition.d.ts +0 -6
- package/dist/modules/editor/hooks/useSpeechRecognition.js +0 -22
- package/dist/modules/editor/hooks/useSpeechRecognition.js.map +0 -1
- package/dist/modules/editor/hooks/useSpeechSynthetisis.d.ts +0 -12
- package/dist/modules/editor/hooks/useSpeechSynthetisis.js +0 -21
- package/dist/modules/editor/hooks/useSpeechSynthetisis.js.map +0 -1
- package/dist/modules/editor/hooks/useTipTapEditor.d.ts +0 -15
- package/dist/modules/editor/hooks/useTipTapEditor.js +0 -76
- package/dist/modules/editor/hooks/useTipTapEditor.js.map +0 -1
- package/dist/modules/editor/index.d.ts +0 -3
- package/dist/modules/editor/utils/has-extension.d.ts +0 -2
- package/dist/modules/editor/utils/has-extension.js +0 -5
- package/dist/modules/editor/utils/has-extension.js.map +0 -1
- package/dist/modules/editor/utils/has-mark.d.ts +0 -2
- package/dist/modules/editor/utils/has-mark.js +0 -5
- package/dist/modules/editor/utils/has-mark.js.map +0 -1
- package/dist/modules/editor/utils/has-text-style.d.ts +0 -2
- package/dist/modules/editor/utils/has-text-style.js +0 -6
- package/dist/modules/editor/utils/has-text-style.js.map +0 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +0 -60
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js.map +0 -1
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js +0 -31
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js.map +0 -1
- package/dist/modules/modals/PublishModal/PublishModal.d.ts +0 -9
- package/dist/modules/modals/PublishModal/PublishModal.js +0 -121
- package/dist/modules/modals/PublishModal/PublishModal.js.map +0 -1
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js +0 -30
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js.map +0 -1
- package/dist/modules/modals/PublishModal/components/AgeSelect.js +0 -21
- package/dist/modules/modals/PublishModal/components/AgeSelect.js.map +0 -1
- package/dist/modules/modals/PublishModal/components/LangSelect.js +0 -20
- package/dist/modules/modals/PublishModal/components/LangSelect.js.map +0 -1
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +0 -24
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js.map +0 -1
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +0 -30
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js.map +0 -1
- package/dist/modules/modals/PublishModal/components/ToastError.js +0 -25
- package/dist/modules/modals/PublishModal/components/ToastError.js.map +0 -1
- package/dist/modules/modals/PublishModal/components/ToastSuccess.d.ts +0 -4
- package/dist/modules/modals/PublishModal/components/ToastSuccess.js +0 -19
- package/dist/modules/modals/PublishModal/components/ToastSuccess.js.map +0 -1
- package/dist/modules/modals/PublishModal/constants/ageOptions.js +0 -5
- package/dist/modules/modals/PublishModal/constants/ageOptions.js.map +0 -1
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.js +0 -35
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.js.map +0 -1
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.js +0 -44
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.js.map +0 -1
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.d.ts +0 -38
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js +0 -107
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js.map +0 -1
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js +0 -119
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js.map +0 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +0 -30
- package/dist/modules/modals/ResourceModal/ResourceModal.js +0 -158
- package/dist/modules/modals/ResourceModal/ResourceModal.js.map +0 -1
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.d.ts +0 -13
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js +0 -64
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js.map +0 -1
- package/dist/modules/modals/ResourceModal/hooks/useSlug.d.ts +0 -17
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js +0 -42
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js.map +0 -1
- package/dist/modules/modals/ResourceModal/hooks/useThumb.d.ts +0 -11
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js +0 -18
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js.map +0 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +0 -7
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +0 -14
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js.map +0 -1
- package/dist/modules/modals/ResourceModal/index.d.ts +0 -3
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +0 -9
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +0 -41
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +0 -9
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +0 -44
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js.map +0 -1
- package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +0 -24
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +0 -54
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +0 -23
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +0 -13
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js +0 -17
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js.map +0 -1
- package/dist/modules/modals/ShareModal/index.d.ts +0 -3
- package/dist/modules/modals/ShareModal/utils/hasRight.d.ts +0 -2
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +0 -2
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.d.ts +0 -12
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +0 -50
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js.map +0 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +0 -25
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js.map +0 -1
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +0 -16
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +0 -308
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js.map +0 -1
- package/dist/modules/multimedia/Embed/Embed.js +0 -33
- package/dist/modules/multimedia/Embed/Embed.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +0 -117
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +0 -70
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/effects/blur.js +0 -73
- package/dist/modules/multimedia/ImageEditor/effects/blur.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/effects/crop.js +0 -156
- package/dist/modules/multimedia/ImageEditor/effects/crop.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/effects/misc.js +0 -163
- package/dist/modules/multimedia/ImageEditor/effects/misc.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/effects/resize.js +0 -158
- package/dist/modules/multimedia/ImageEditor/effects/resize.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js +0 -34
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +0 -65
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js +0 -77
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js +0 -53
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js.map +0 -1
- package/dist/modules/multimedia/ImageEditor/utils/aggregate.js +0 -14
- package/dist/modules/multimedia/ImageEditor/utils/aggregate.js.map +0 -1
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.d.ts +0 -46
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +0 -40
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js.map +0 -1
- package/dist/modules/multimedia/Linker/ExternalLinker.js +0 -46
- package/dist/modules/multimedia/Linker/ExternalLinker.js.map +0 -1
- package/dist/modules/multimedia/Linker/InternalLinker.d.ts +0 -28
- package/dist/modules/multimedia/Linker/InternalLinker.js +0 -115
- package/dist/modules/multimedia/Linker/InternalLinker.js.map +0 -1
- package/dist/modules/multimedia/LinkerCard/LinkerCard.d.ts +0 -13
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +0 -40
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js.map +0 -1
- package/dist/modules/multimedia/LinkerCard/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +0 -84
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +0 -212
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +0 -60
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.js +0 -13
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.js +0 -20
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.js +0 -18
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.js +0 -15
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.d.ts +0 -11
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +0 -36
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +0 -35
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.js +0 -23
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +0 -15
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +0 -32
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js.map +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +0 -22
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js.map +0 -1
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +0 -9
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js +0 -57
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js.map +0 -1
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +0 -78
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js.map +0 -1
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +0 -14
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +0 -260
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js.map +0 -1
- package/dist/modules/multimedia/Workspace/Workspace.d.ts +0 -33
- package/dist/modules/multimedia/Workspace/Workspace.js +0 -170
- package/dist/modules/multimedia/Workspace/Workspace.js.map +0 -1
- package/dist/multimedia.js +0 -21
- package/dist/multimedia.js.map +0 -1
- package/dist/portal/Header/Badge.js +0 -10
- package/dist/portal/Header/Badge.js.map +0 -1
- package/dist/portal/Header/Header.js +0 -171
- package/dist/portal/Header/Header.js.map +0 -1
- package/dist/portal/Header/NavItem.js +0 -15
- package/dist/portal/Header/NavItem.js.map +0 -1
- package/dist/portal/Header/NavLink.js +0 -20
- package/dist/portal/Header/NavLink.js.map +0 -1
- package/dist/portal/Header/Navbar.js +0 -14
- package/dist/portal/Header/Navbar.js.map +0 -1
- package/dist/portal/Header/NavbarNav.js +0 -14
- package/dist/portal/Header/NavbarNav.js.map +0 -1
- package/dist/portal/Header/WidgetApps.js +0 -24
- package/dist/portal/Header/WidgetApps.js.map +0 -1
- package/dist/portal/Help/Help.js +0 -26
- package/dist/portal/Help/Help.js.map +0 -1
- package/dist/portal/Help/hooks/useHelp.js +0 -86
- package/dist/portal/Help/hooks/useHelp.js.map +0 -1
- package/dist/portal/Layout/Layout.js +0 -43
- package/dist/portal/Layout/Layout.js.map +0 -1
- package/dist/portal/SearchEngine/SearchEngine.js +0 -34
- package/dist/portal/SearchEngine/SearchEngine.js.map +0 -1
- package/dist/utils/MockedDataProvider/MockedDataProvider.js +0 -27
- package/dist/utils/MockedDataProvider/MockedDataProvider.js.map +0 -1
- package/dist/utils/StringUtils.js +0 -15
- package/dist/utils/StringUtils.js.map +0 -1
- package/dist/utils/addTimestampToUrl.js +0 -8
- package/dist/utils/addTimestampToUrl.js.map +0 -1
- package/dist/utils/blob.js +0 -16
- package/dist/utils/blob.js.map +0 -1
- package/dist/utils/checkUserRight.js +0 -45
- package/dist/utils/checkUserRight.js.map +0 -1
- package/dist/utils/fileSize.js +0 -9
- package/dist/utils/fileSize.js.map +0 -1
- package/dist/utils/findTreeNode.js +0 -12
- package/dist/utils/findTreeNode.js.map +0 -1
- package/dist/utils/isActionAvailable.js +0 -8
- package/dist/utils/isActionAvailable.js.map +0 -1
- package/dist/utils/libraryMaps.js +0 -13
- package/dist/utils/libraryMaps.js.map +0 -1
- package/dist/utils/noop.js +0 -6
- package/dist/utils/noop.js.map +0 -1
- package/dist/utils/ref.js +0 -15
- package/dist/utils/ref.js.map +0 -1
- package/dist/utils/thumbnail.js +0 -7
- package/dist/utils/thumbnail.js.map +0 -1
- package/dist/utils/time.js +0 -12
- package/dist/utils/time.js.map +0 -1
- package/dist/utils/treeview.js +0 -134
- package/dist/utils/treeview.js.map +0 -1
- package/dist/utils/video.js +0 -5
- package/dist/utils/video.js.map +0 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +0 -9
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js.map +0 -1
- package/dist/widgets/Widget/Widget.js +0 -23
- package/dist/widgets/Widget/Widget.js.map +0 -1
- /package/dist/{modules/modals → common}/OnboardingModal/OnboardingModal.d.ts +0 -0
- /package/dist/{modules/modals → common}/OnboardingModal/index.d.ts +0 -0
- /package/dist/{modules/modals → common}/OnboardingModal/useOnboardingModal.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/components/ActivitiesDropdown.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/components/AgeSelect.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/components/LangSelect.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/components/PublishModalFooter.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/components/SubjectsDropdown.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/components/ToastError.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/constants/ageOptions.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/hooks/useActivitiesOptions.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/hooks/useLanguageOptions.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/hooks/useSubjectsOptions.d.ts +0 -0
- /package/dist/{modules/modals → common}/PublishModal/index.d.ts +0 -0
- /package/dist/{modules/modals → common}/ShareModal/ShareBookmark.d.ts +0 -0
- /package/dist/{modules/modals → common}/index.d.ts +0 -0
- /package/dist/{modules/audience → components/Audience}/ViewsCounter.d.ts +0 -0
- /package/dist/{modules/audience → components/Audience}/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/AudioRecorder/AudioRecorderTimer.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/AudioRecorder/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/Embed/Embed.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/Embed/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/components/ImageEditor.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/components/ImageEditorToolbar.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/effects/blur.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/effects/crop.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/effects/misc.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/effects/resize.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/effects/rotate.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/hooks/useHistoryTool.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/hooks/useImageEditor.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/hooks/useImageEffects.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/utils/aggregate.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImageEditor/utils/debounceAggregate.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/ImagePickerWorkspace/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/Linker/ExternalLinker.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/Linker/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/Audio.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/ExternalLink.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/Iframe.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/Upload.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/Video.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/VideoEmbedder.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/Workspace.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/UploadFiles/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/VideoEmbed/VideoEmbed.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/VideoEmbed/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/VideoRecorder/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/Workspace/index.d.ts +0 -0
- /package/dist/{modules/multimedia → multimedia}/index.d.ts +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function z() {
|
|
2
|
-
const h = (e, n, t, o) => (t > o && (e = Math.round(e * o / t), t = o), e > n && (t = Math.round(t * n / e), e = n), {
|
|
3
|
-
height: e,
|
|
4
|
-
width: t
|
|
5
|
-
}), p = (e, n) => {
|
|
6
|
-
const t = e.split(".");
|
|
7
|
-
return t.pop(), t.join(".") + "." + n;
|
|
8
|
-
}, w = (e, n, t, o, s = "jpeg", g = 80) => {
|
|
9
|
-
const i = g / 100, r = document.createElement("canvas"), l = `image/${s}`;
|
|
10
|
-
let c = e.width, m = e.height;
|
|
11
|
-
const u = h(m, o, c, t);
|
|
12
|
-
c = u.width, m = u.height;
|
|
13
|
-
const a = r.getContext("2d");
|
|
14
|
-
return a && (r.width = c, r.height = m, a.imageSmoothingEnabled && a.imageSmoothingQuality && (a.imageSmoothingQuality = "high"), a.drawImage(e, 0, 0, c, m)), new Promise((f, y) => {
|
|
15
|
-
r.toBlob((d) => {
|
|
16
|
-
d ? f(new File([d], n, {
|
|
17
|
-
type: l,
|
|
18
|
-
lastModified: (/* @__PURE__ */ new Date()).getTime()
|
|
19
|
-
})) : y();
|
|
20
|
-
}, l, i);
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
resizeImageFile: async (e, n = 1440, t = 1440, o = 80) => {
|
|
25
|
-
if (!e) throw Error("Image resizer: file not found!");
|
|
26
|
-
if (!e.type || !e.type.startsWith("image/")) throw Error("Image resizer: the file given is not an image.");
|
|
27
|
-
const s = "jpeg";
|
|
28
|
-
return new Promise((g) => {
|
|
29
|
-
const i = new Image();
|
|
30
|
-
i.setAttribute("style", "max-width: none;"), i.src = URL.createObjectURL(e), i.onload = async () => {
|
|
31
|
-
const r = await w(i, p(e.name, s), n, t, s, o);
|
|
32
|
-
g(r);
|
|
33
|
-
}, i.onerror = (r) => {
|
|
34
|
-
throw Error("Image Loading Error: " + r);
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
z as default
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=useImageResizer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useImageResizer.js","sources":["../../../src/hooks/useImageResizer/useImageResizer.ts"],"sourcesContent":["/**\n * @module useImageResizer\n * @description This module provides a hook to resize and compress image files.\n * @returns all the action available for the image resizer\n */\nexport default function useImageResizer() {\n const changeHeightWidth = (\n height: number,\n maxHeight: number,\n width: number,\n maxWidth: number,\n ) => {\n if (width > maxWidth) {\n height = Math.round((height * maxWidth) / width);\n width = maxWidth;\n }\n if (height > maxHeight) {\n width = Math.round((width * maxHeight) / height);\n height = maxHeight;\n }\n return { height, width };\n };\n\n const renameFileNameExtension = (filename: string, newExtension: string) => {\n const filenameParts = filename.split('.');\n filenameParts.pop();\n return filenameParts.join('.') + '.' + newExtension;\n };\n\n const resizeImage = (\n image: HTMLImageElement,\n fileName: string,\n maxWidth: number,\n maxHeight: number,\n compressFormat = 'jpeg',\n quality = 80,\n ): Promise<File> => {\n const qualityDecimal = quality / 100;\n const canvas = document.createElement('canvas');\n const contentType = `image/${compressFormat}`;\n\n let width = image.width;\n let height = image.height;\n\n const newHeightWidth = changeHeightWidth(\n height,\n maxHeight,\n width,\n maxWidth,\n );\n\n width = newHeightWidth.width;\n height = newHeightWidth.height;\n\n const ctx = canvas.getContext('2d');\n if (ctx) {\n canvas.width = width;\n canvas.height = height;\n\n if (ctx.imageSmoothingEnabled && ctx.imageSmoothingQuality) {\n ctx.imageSmoothingQuality = 'high';\n }\n\n ctx.drawImage(image, 0, 0, width, height);\n }\n return new Promise((resolve, reject) => {\n canvas.toBlob(\n (blob) => {\n if (blob) {\n resolve(\n new File([blob], fileName, {\n type: contentType,\n lastModified: new Date().getTime(),\n }),\n );\n } else {\n reject();\n }\n },\n contentType,\n qualityDecimal,\n );\n });\n };\n\n /**\n * Resize and compress Image File in JPEG format (other format don't work well with canvas.toBlob() with quality parameter)\n * @param file The image file to resize\n * @param maxWidth The maximum width of the resized image\n * @param maxHeight The maximum height of the resized image\n * @param quality The quality of the compressed image\n * @returns The resized image file\n */\n const resizeImageFile = async (\n file: File,\n maxWidth = 1440,\n maxHeight = 1440,\n quality = 80,\n ): Promise<File> => {\n if (!file) throw Error('Image resizer: file not found!');\n\n if (!file.type || !file.type.startsWith('image/'))\n throw Error('Image resizer: the file given is not an image.');\n\n const compressFormat = 'jpeg';\n\n return new Promise((resolve) => {\n const image = new Image();\n image.setAttribute('style', 'max-width: none;');\n image.src = URL.createObjectURL(file);\n image.onload = async () => {\n const resizedFile = await resizeImage(\n image,\n renameFileNameExtension(file.name, compressFormat),\n maxWidth,\n maxHeight,\n compressFormat,\n quality,\n );\n resolve(resizedFile);\n };\n image.onerror = (error) => {\n throw Error('Image Loading Error: ' + error);\n };\n });\n };\n\n return {\n resizeImageFile,\n };\n}\n"],"names":["useImageResizer","changeHeightWidth","height","maxHeight","width","maxWidth","Math","round","renameFileNameExtension","filename","newExtension","filenameParts","split","pop","join","resizeImage","image","fileName","compressFormat","quality","qualityDecimal","canvas","document","createElement","contentType","newHeightWidth","ctx","getContext","imageSmoothingEnabled","imageSmoothingQuality","drawImage","Promise","resolve","reject","toBlob","blob","File","type","lastModified","Date","getTime","resizeImageFile","file","Error","startsWith","Image","setAttribute","src","URL","createObjectURL","onload","resizedFile","name","onerror","error"],"mappings":"AAKA,SAAwBA,IAAkB;AACxC,QAAMC,IAAoBA,CACxBC,GACAC,GACAC,GACAC,OAEID,IAAQC,MACVH,IAASI,KAAKC,MAAOL,IAASG,IAAYD,CAAK,GACvCC,IAAAA,IAENH,IAASC,MACXC,IAAQE,KAAKC,MAAOH,IAAQD,IAAaD,CAAM,GACtCC,IAAAA,IAEJ;AAAA,IAAED,QAAAA;AAAAA,IAAQE,OAAAA;AAAAA,EAAAA,IAGbI,IAA0BA,CAACC,GAAkBC,MAAyB;AACpEC,UAAAA,IAAgBF,EAASG,MAAM,GAAG;AACxCD,WAAAA,EAAcE,IAAI,GACXF,EAAcG,KAAK,GAAG,IAAI,MAAMJ;AAAAA,EAAAA,GAGnCK,IAAcA,CAClBC,GACAC,GACAZ,GACAF,GACAe,IAAiB,QACjBC,IAAU,OACQ;AAClB,UAAMC,IAAiBD,IAAU,KAC3BE,IAASC,SAASC,cAAc,QAAQ,GACxCC,IAAc,SAASN,CAAc;AAE3C,QAAId,IAAQY,EAAMZ,OACdF,IAASc,EAAMd;AAEnB,UAAMuB,IAAiBxB,EACrBC,GACAC,GACAC,GACAC,CACF;AAEAD,IAAAA,IAAQqB,EAAerB,OACvBF,IAASuB,EAAevB;AAElBwB,UAAAA,IAAML,EAAOM,WAAW,IAAI;AAClC,WAAID,MACFL,EAAOjB,QAAQA,GACfiB,EAAOnB,SAASA,GAEZwB,EAAIE,yBAAyBF,EAAIG,0BACnCH,EAAIG,wBAAwB,SAG9BH,EAAII,UAAUd,GAAO,GAAG,GAAGZ,GAAOF,CAAM,IAEnC,IAAI6B,QAAQ,CAACC,GAASC,MAAW;AACtCZ,MAAAA,EAAOa,OACJC,CAASA,MAAA;AACR,QAAIA,IACFH,EACE,IAAII,KAAK,CAACD,CAAI,GAAGlB,GAAU;AAAA,UACzBoB,MAAMb;AAAAA,UACNc,eAAc,oBAAIC,KAAK,GAAEC,QAAQ;AAAA,QAClC,CAAA,CACH,IAEOP;MACT,GAEFT,GACAJ,CACF;AAAA,IAAA,CACD;AAAA,EAAA;AA6CI,SAAA;AAAA,IACLqB,iBAnCsB,OACtBC,GACArC,IAAW,MACXF,IAAY,MACZgB,IAAU,OACQ;AAClB,UAAI,CAACuB,EAAYC,OAAAA,MAAM,gCAAgC;AAEnD,UAAA,CAACD,EAAKL,QAAQ,CAACK,EAAKL,KAAKO,WAAW,QAAQ,EACxCD,OAAAA,MAAM,gDAAgD;AAE9D,YAAMzB,IAAiB;AAEhB,aAAA,IAAIa,QAASC,CAAYA,MAAA;AACxBhB,cAAAA,IAAQ,IAAI6B;AACZC,QAAAA,EAAAA,aAAa,SAAS,kBAAkB,GACxCC,EAAAA,MAAMC,IAAIC,gBAAgBP,CAAI,GACpC1B,EAAMkC,SAAS,YAAY;AACzB,gBAAMC,IAAc,MAAMpC,EACxBC,GACAR,EAAwBkC,EAAKU,MAAMlC,CAAc,GACjDb,GACAF,GACAe,GACAC,CACF;AACAa,UAAAA,EAAQmB,CAAW;AAAA,QAAA,GAErBnC,EAAMqC,UAAWC,CAAUA,MAAA;AACnBX,gBAAAA,MAAM,0BAA0BW,CAAK;AAAA,QAAA;AAAA,MAC7C,CACD;AAAA,IAAA;AAAA,EAIDb;AAEJ;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useCallback as o, useEffect as s } from "react";
|
|
2
|
-
function i(n, t) {
|
|
3
|
-
const e = o(({
|
|
4
|
-
code: r
|
|
5
|
-
}) => {
|
|
6
|
-
t.includes(r) && n();
|
|
7
|
-
}, [n, t]);
|
|
8
|
-
s(() => (window.addEventListener("keydown", e), () => {
|
|
9
|
-
window.removeEventListener("keydown", e);
|
|
10
|
-
}), [e]);
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
i as default
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=useKeyPress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyPress.js","sources":["../../../src/hooks/useKeyPress/useKeyPress.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react';\n\nexport default function useKeyPress(\n callback: () => void,\n keyCodes: string[],\n): void {\n const handler = useCallback(\n ({ code }: KeyboardEvent) => {\n if (keyCodes.includes(code)) {\n callback();\n }\n },\n [callback, keyCodes],\n );\n\n useEffect(() => {\n window.addEventListener('keydown', handler);\n return () => {\n window.removeEventListener('keydown', handler);\n };\n }, [handler]);\n}\n"],"names":["useKeyPress","callback","keyCodes","handler","useCallback","code","includes","useEffect","addEventListener","removeEventListener"],"mappings":";AAEwBA,SAAAA,EACtBC,GACAC,GACM;AACAC,QAAAA,IAAUC,EACd,CAAC;AAAA,IAAEC,MAAAA;AAAAA,EAAAA,MAA0B;AACvBH,IAAAA,EAASI,SAASD,CAAI,KACfJ;EACX,GAEF,CAACA,GAAUC,CAAQ,CACrB;AAEAK,EAAAA,EAAU,OACDC,OAAAA,iBAAiB,WAAWL,CAAO,GACnC,MAAM;AACJM,WAAAA,oBAAoB,WAAWN,CAAO;AAAA,EAAA,IAE9C,CAACA,CAAO,CAAC;AACd;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollToTop.js","sources":["../../../src/hooks/useScrollToTop/useScrollToTop.ts"],"sourcesContent":["export default function useScrollToTop() {\n const refToTop = document.querySelector('html');\n\n const scrollToTop = () => {\n refToTop && refToTop.scrollIntoView();\n };\n return scrollToTop;\n}\n"],"names":["useScrollToTop","refToTop","document","querySelector","scrollToTop","scrollIntoView"],"mappings":"AAAA,SAAwBA,IAAiB;AACjCC,QAAAA,IAAWC,SAASC,cAAc,MAAM;AAKvCC,SAHaA,MAAM;AACxBH,IAAAA,KAAYA,EAASI;EAAe;AAGxC;"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { useState as t, useEffect as a } from "react";
|
|
2
|
-
import { useInView as d } from "react-intersection-observer";
|
|
3
|
-
function w(c, r) {
|
|
4
|
-
const [m, l] = t(null), {
|
|
5
|
-
ref: u,
|
|
6
|
-
inView: f
|
|
7
|
-
} = d({
|
|
8
|
-
triggerOnce: !0,
|
|
9
|
-
...r == null ? void 0 : r.intersectionOptions
|
|
10
|
-
});
|
|
11
|
-
return a(() => {
|
|
12
|
-
var e;
|
|
13
|
-
(e = r == null ? void 0 : r.ref) != null && e.current && (u == null || u(r.ref.current));
|
|
14
|
-
}, [r == null ? void 0 : r.ref, u]), a(() => {
|
|
15
|
-
if ((r == null ? void 0 : r.ref) === void 0 || f) {
|
|
16
|
-
const e = new Image();
|
|
17
|
-
return e.src = c, e.onload = () => {
|
|
18
|
-
l(!0);
|
|
19
|
-
}, e.onerror = () => {
|
|
20
|
-
l(!1);
|
|
21
|
-
}, () => {
|
|
22
|
-
e.onload = null, e.onerror = null, l(null);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}, [f]), m;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
w as default
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=useThumbnail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useThumbnail.js","sources":["../../../src/hooks/useThumbnail/useThumbnail.ts"],"sourcesContent":["/* eslint-disable react-hooks/exhaustive-deps */\nimport { useEffect, useState } from 'react';\n\nimport { IntersectionOptions, useInView } from 'react-intersection-observer';\n\ntype LazyLoadOptions = {\n ref?: React.RefObject<HTMLElement>;\n intersectionOptions?: IntersectionOptions;\n};\n\n/**\n * Preload a `src` URL and return true if it is available.\n * @param src the URL to preload\n * @param options if defined, lazy-load the `src` URL when ref is defined and visible,\n * with respect to the [`intersectionOptions`](https://github.com/thebuilder/react-intersection-observer/tree/dceba7f52aebea4d62d539bc55a1db129226bb6c?tab=readme-ov-file#options)\n * @return `true` if `src` is available, or false otherwise, or `null` while not tested.\n */\nexport default function useThumbnail(src: string, options?: LazyLoadOptions) {\n const [status, setStatus] = useState<boolean | null>(null);\n\n // If defined, wait for the currentRef to be \"InView\" to check if its thumbnail exists.\n const { ref: inViewRef, inView } = useInView({\n triggerOnce: true,\n ...options?.intersectionOptions,\n });\n\n // This `useEffect` is required to share the ref node with useInView() above\n useEffect(() => {\n // Callback refs, like the one from `useInView`, is a function that takes the node as an argument\n options?.ref?.current && inViewRef?.(options.ref.current);\n }, [options?.ref, inViewRef]);\n\n useEffect(() => {\n if (options?.ref === undefined || inView) {\n const img = new Image();\n img.src = src;\n\n img.onload = () => {\n setStatus(true);\n };\n\n img.onerror = () => {\n setStatus(false);\n };\n\n return () => {\n img.onload = null;\n img.onerror = null;\n setStatus(null);\n };\n }\n }, [inView]);\n\n return status;\n}\n"],"names":["useThumbnail","src","options","status","setStatus","useState","ref","inViewRef","inView","useInView","triggerOnce","intersectionOptions","useEffect","current","undefined","img","Image","onload","onerror"],"mappings":";;AAiBwBA,SAAAA,EAAaC,GAAaC,GAA2B;AAC3E,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAyB,IAAI,GAGnD;AAAA,IAAEC,KAAKC;AAAAA,IAAWC,QAAAA;AAAAA,MAAWC,EAAU;AAAA,IAC3CC,aAAa;AAAA,IACb,GAAGR,KAAAA,gBAAAA,EAASS;AAAAA,EAAAA,CACb;AAGDC,SAAAA,EAAU,MAAM;;AAEdV,KAAAA,IAAAA,KAAAA,gBAAAA,EAASI,QAATJ,QAAAA,EAAcW,YAAWN,KAAAA,QAAAA,EAAYL,EAAQI,IAAIO;AAAAA,EAChD,GAAA,CAACX,KAAAA,gBAAAA,EAASI,KAAKC,CAAS,CAAC,GAE5BK,EAAU,MAAM;AACVV,SAAAA,KAAAA,gBAAAA,EAASI,SAAQQ,UAAaN,GAAQ;AAClCO,YAAAA,IAAM,IAAIC;AAChBD,aAAAA,EAAId,MAAMA,GAEVc,EAAIE,SAAS,MAAM;AACjBb,QAAAA,EAAU,EAAI;AAAA,MAAA,GAGhBW,EAAIG,UAAU,MAAM;AAClBd,QAAAA,EAAU,EAAK;AAAA,MAAA,GAGV,MAAM;AACXW,QAAAA,EAAIE,SAAS,MACbF,EAAIG,UAAU,MACdd,EAAU,IAAI;AAAA,MAAA;AAAA,IAElB;AAAA,EAAA,GACC,CAACI,CAAM,CAAC,GAEJL;AACT;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useState as u, useEffect as o } from "react";
|
|
2
|
-
function f() {
|
|
3
|
-
const t = typeof document < "u", [e, n] = u(() => document.title);
|
|
4
|
-
return o(() => {
|
|
5
|
-
t && n(document.title);
|
|
6
|
-
}, [t]), e;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
f as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=useTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTitle.js","sources":["../../../src/hooks/useTitle/useTitle.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport default function useTitle(): string {\n const documentDefined = typeof document !== 'undefined';\n\n const [title, setTitle] = useState<string>(() => document.title);\n\n useEffect(() => {\n if (!documentDefined) return;\n\n setTitle(document.title);\n }, [documentDefined]);\n\n return title;\n}\n"],"names":["useTitle","documentDefined","document","title","setTitle","useState","useEffect"],"mappings":";AAEA,SAAwBA,IAAmB;AACnCC,QAAAA,IAAkB,OAAOC,WAAa,KAEtC,CAACC,GAAOC,CAAQ,IAAIC,EAAiB,MAAMH,SAASC,KAAK;AAE/DG,SAAAA,EAAU,MAAM;AACd,IAAKL,KAELG,EAASF,SAASC,KAAK;AAAA,EAAA,GACtB,CAACF,CAAe,CAAC,GAEbE;AACT;"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import a from "react-hot-toast";
|
|
3
|
-
import { Alert as d } from "../../components/Alert/Alert.js";
|
|
4
|
-
const u = "top-right";
|
|
5
|
-
function D() {
|
|
6
|
-
return {
|
|
7
|
-
success: (r, e) => a.custom(/* @__PURE__ */ m(d, { type: "success", isToast: !0, isDismissible: e == null ? void 0 : e.isDismissible, className: "mb-12", children: r }), {
|
|
8
|
-
id: e == null ? void 0 : e.id,
|
|
9
|
-
duration: e == null ? void 0 : e.duration,
|
|
10
|
-
position: (e == null ? void 0 : e.position) ?? u
|
|
11
|
-
}),
|
|
12
|
-
error: (r, e) => a.custom(/* @__PURE__ */ m(d, { type: "danger", isToast: !0, isDismissible: e == null ? void 0 : e.isDismissible, className: "mb-12", children: r }), {
|
|
13
|
-
id: e == null ? void 0 : e.id,
|
|
14
|
-
duration: e == null ? void 0 : e.duration,
|
|
15
|
-
position: (e == null ? void 0 : e.position) ?? u
|
|
16
|
-
}),
|
|
17
|
-
info: (r, e) => a.custom(/* @__PURE__ */ m(d, { type: "info", isToast: !0, isDismissible: e == null ? void 0 : e.isDismissible, className: "mb-12", children: r }), {
|
|
18
|
-
id: e == null ? void 0 : e.id,
|
|
19
|
-
duration: e == null ? void 0 : e.duration,
|
|
20
|
-
position: (e == null ? void 0 : e.position) ?? u
|
|
21
|
-
}),
|
|
22
|
-
warning: (r, e) => a.custom(/* @__PURE__ */ m(d, { type: "warning", isToast: !0, isDismissible: e == null ? void 0 : e.isDismissible, className: "mb-12", children: r }), {
|
|
23
|
-
id: e == null ? void 0 : e.id,
|
|
24
|
-
duration: e == null ? void 0 : e.duration,
|
|
25
|
-
position: (e == null ? void 0 : e.position) ?? u
|
|
26
|
-
}),
|
|
27
|
-
loading: a.loading,
|
|
28
|
-
dismiss: (r) => a.dismiss(r),
|
|
29
|
-
remove: (r) => a.remove(r)
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
D as default
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=useToast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToast.js","sources":["../../../src/hooks/useToast/useToast.tsx"],"sourcesContent":["import { ReactNode } from 'react';\n\nimport toast, { ToastPosition } from 'react-hot-toast';\n\nimport Alert from '../../components/Alert/Alert';\n\nexport interface CustomToastOptions {\n id?: string;\n isDismissible?: boolean;\n position?: ToastPosition;\n duration?: number;\n}\n\nconst DEFAULT_POSITION = 'top-right';\n\nexport default function useToast() {\n const toasts = {\n success: (message: string | ReactNode, options?: CustomToastOptions) =>\n toast.custom(\n <Alert\n type=\"success\"\n isToast={true}\n isDismissible={options?.isDismissible}\n className=\"mb-12\"\n >\n {message}\n </Alert>,\n {\n id: options?.id,\n duration: options?.duration,\n position: options?.position ?? DEFAULT_POSITION,\n },\n ),\n error: (message: string | ReactNode, options?: CustomToastOptions) =>\n toast.custom(\n <Alert\n type=\"danger\"\n isToast={true}\n isDismissible={options?.isDismissible}\n className=\"mb-12\"\n >\n {message}\n </Alert>,\n {\n id: options?.id,\n duration: options?.duration,\n position: options?.position ?? DEFAULT_POSITION,\n },\n ),\n info: (message: string | ReactNode, options?: CustomToastOptions) =>\n toast.custom(\n <Alert\n type=\"info\"\n isToast={true}\n isDismissible={options?.isDismissible}\n className=\"mb-12\"\n >\n {message}\n </Alert>,\n {\n id: options?.id,\n duration: options?.duration,\n position: options?.position ?? DEFAULT_POSITION,\n },\n ),\n warning: (message: string | ReactNode, options?: CustomToastOptions) =>\n toast.custom(\n <Alert\n type=\"warning\"\n isToast={true}\n isDismissible={options?.isDismissible}\n className=\"mb-12\"\n >\n {message}\n </Alert>,\n {\n id: options?.id,\n duration: options?.duration,\n position: options?.position ?? DEFAULT_POSITION,\n },\n ),\n loading: toast.loading,\n dismiss: (id: string) => toast.dismiss(id),\n remove: (id: string) => toast.remove(id),\n };\n\n return toasts;\n}\n"],"names":["DEFAULT_POSITION","useToast","toasts","success","message","options","toast","custom","Alert","isDismissible","id","duration","position","error","info","warning","loading","dismiss","remove"],"mappings":";;;AAaA,MAAMA,IAAmB;AAEzB,SAAwBC,IAAW;AAuE1BC,SAtEQ;AAAA,IACbC,SAASA,CAACC,GAA6BC,MACrCC,EAAMC,yBACHC,GACC,EAAA,MAAK,WACL,SAAS,IACT,eAAeH,KAAAA,gBAAAA,EAASI,eACxB,WAAU,SAETL,aACH,GACA;AAAA,MACEM,IAAIL,KAAAA,gBAAAA,EAASK;AAAAA,MACbC,UAAUN,KAAAA,gBAAAA,EAASM;AAAAA,MACnBC,WAAUP,KAAAA,gBAAAA,EAASO,aAAYZ;AAAAA,IAAAA,CAEnC;AAAA,IACFa,OAAOA,CAACT,GAA6BC,MACnCC,EAAMC,yBACHC,GACC,EAAA,MAAK,UACL,SAAS,IACT,eAAeH,KAAAA,gBAAAA,EAASI,eACxB,WAAU,SAETL,aACH,GACA;AAAA,MACEM,IAAIL,KAAAA,gBAAAA,EAASK;AAAAA,MACbC,UAAUN,KAAAA,gBAAAA,EAASM;AAAAA,MACnBC,WAAUP,KAAAA,gBAAAA,EAASO,aAAYZ;AAAAA,IAAAA,CAEnC;AAAA,IACFc,MAAMA,CAACV,GAA6BC,MAClCC,EAAMC,yBACHC,GACC,EAAA,MAAK,QACL,SAAS,IACT,eAAeH,KAAAA,gBAAAA,EAASI,eACxB,WAAU,SAETL,aACH,GACA;AAAA,MACEM,IAAIL,KAAAA,gBAAAA,EAASK;AAAAA,MACbC,UAAUN,KAAAA,gBAAAA,EAASM;AAAAA,MACnBC,WAAUP,KAAAA,gBAAAA,EAASO,aAAYZ;AAAAA,IAAAA,CAEnC;AAAA,IACFe,SAASA,CAACX,GAA6BC,MACrCC,EAAMC,yBACHC,GACC,EAAA,MAAK,WACL,SAAS,IACT,eAAeH,KAAAA,gBAAAA,EAASI,eACxB,WAAU,SAETL,aACH,GACA;AAAA,MACEM,IAAIL,KAAAA,gBAAAA,EAASK;AAAAA,MACbC,UAAUN,KAAAA,gBAAAA,EAASM;AAAAA,MACnBC,WAAUP,KAAAA,gBAAAA,EAASO,aAAYZ;AAAAA,IAAAA,CAEnC;AAAA,IACFgB,SAASV,EAAMU;AAAAA,IACfC,SAASA,CAACP,MAAeJ,EAAMW,QAAQP,CAAE;AAAA,IACzCQ,QAAQA,CAACR,MAAeJ,EAAMY,OAAOR,CAAE;AAAA,EAAA;AAI3C;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToggle.js","sources":["../../../src/hooks/useToggle/useToggle.ts"],"sourcesContent":["import { useCallback, useState } from 'react';\n// Hook\n// Parameter is the boolean, with default \"false\" value\nexport default function useToggle(initialState = false): [boolean, any] {\n // Initialize the state\n const [state, setState] = useState<boolean>(initialState);\n // Define and memorize toggler function in case we pass down the comopnent,\n // This function change the boolean value to it's opposite value\n const toggle = useCallback((): void => {\n setState((prevState: any) => !prevState);\n }, []);\n return [state, toggle];\n}\n"],"names":["useToggle","initialState","state","setState","useState","toggle","useCallback","prevState"],"mappings":";AAGwBA,SAAAA,EAAUC,IAAe,IAAuB;AAEtE,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAkBH,CAAY,GAGlDI,IAASC,EAAY,MAAY;AAC5B,IAAAH,EAAA,CAACI,MAAmB,CAACA,CAAS;AAAA,EACzC,GAAG,CAAE,CAAA;AACE,SAAA,CAACL,GAAOG,CAAM;AACvB;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useRef as u, useEffect as a } from "react";
|
|
2
|
-
function d() {
|
|
3
|
-
const s = u(null), o = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
4
|
-
return a(() => {
|
|
5
|
-
const e = s.current, r = e.querySelectorAll(o)[0], t = e.querySelectorAll(o), l = s && (t == null ? void 0 : t[t.length - 1]), c = (n) => {
|
|
6
|
-
n.key === "Tab" && (n.shiftKey ? document.activeElement === r && (l.focus(), n.preventDefault()) : document.activeElement === l && (r.focus(), n.preventDefault()));
|
|
7
|
-
};
|
|
8
|
-
if (e)
|
|
9
|
-
return e.addEventListener("keydown", c), () => {
|
|
10
|
-
e.removeEventListener("keydown", c);
|
|
11
|
-
};
|
|
12
|
-
}, []), s;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
d as default
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useTrapFocus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTrapFocus.js","sources":["../../../src/hooks/useTrapFocus/useTrapFocus.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\nexport default function useTrapFocus() {\n const ref = useRef<HTMLElement | null>(null);\n const focusableElements =\n 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])';\n\n useEffect(() => {\n const node: any = ref.current;\n /** First Focusable Element */\n const firstFocusableElement = node.querySelectorAll(\n focusableElements,\n )[0] as HTMLElement;\n /** Focusable Content */\n const focusableContent = node.querySelectorAll(focusableElements);\n /** Last Focusable Element */\n const lastFocusableElement =\n ref && (focusableContent?.[focusableContent.length - 1] as HTMLElement);\n\n const handleKeydown = (event: KeyboardEvent) => {\n const isTabPressed = event.key === 'Tab';\n\n if (!isTabPressed) {\n return;\n }\n\n if (event.shiftKey) {\n /* shift + tab */ if (\n document.activeElement === firstFocusableElement\n ) {\n lastFocusableElement.focus();\n event.preventDefault();\n }\n } /* tab */ else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n event.preventDefault();\n }\n }\n };\n\n if (node) {\n node.addEventListener('keydown', handleKeydown);\n return () => {\n node.removeEventListener('keydown', handleKeydown);\n };\n }\n }, []);\n\n return ref;\n}\n"],"names":["useTrapFocus","ref","useRef","focusableElements","useEffect","node","current","firstFocusableElement","querySelectorAll","focusableContent","lastFocusableElement","length","handleKeydown","event","key","shiftKey","document","activeElement","focus","preventDefault","addEventListener","removeEventListener"],"mappings":";AAEA,SAAwBA,IAAe;AAC/BC,QAAAA,IAAMC,EAA2B,IAAI,GACrCC,IACJ;AAEFC,SAAAA,EAAU,MAAM;AACd,UAAMC,IAAYJ,EAAIK,SAEhBC,IAAwBF,EAAKG,iBACjCL,CACF,EAAE,CAAC,GAEGM,IAAmBJ,EAAKG,iBAAiBL,CAAiB,GAE1DO,IACJT,MAAQQ,KAAAA,gBAAAA,EAAmBA,EAAiBE,SAAS,KAEjDC,IAAgBA,CAACC,MAAyB;AAG9C,MAFqBA,EAAMC,QAAQ,UAM/BD,EAAME,WAENC,SAASC,kBAAkBV,MAE3BG,EAAqBQ,MAAM,GAC3BL,EAAMM,eAAe,KAGnBH,SAASC,kBAAkBP,MAC7BH,EAAsBW,MAAM,GAC5BL,EAAMM,eAAe;AAAA,IAEzB;AAGF,QAAId;AACGe,aAAAA,EAAAA,iBAAiB,WAAWR,CAAa,GACvC,MAAM;AACNS,QAAAA,EAAAA,oBAAoB,WAAWT,CAAa;AAAA,MAAA;AAAA,EAGvD,GAAG,CAAE,CAAA,GAEEX;AACT;"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/modals.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as e } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
2
|
-
import { default as a } from "./modules/modals/PublishModal/PublishModal.js";
|
|
3
|
-
import { ResourceModal as l } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
4
|
-
import { BlogPublic as p } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
5
|
-
import { useUpdateMutation as m } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
6
|
-
import { ShareBlog as s } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
7
|
-
import { useShareMutation as M } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
8
|
-
export {
|
|
9
|
-
p as BlogPublic,
|
|
10
|
-
e as OnboardingModal,
|
|
11
|
-
a as PublishModal,
|
|
12
|
-
l as ResourceModal,
|
|
13
|
-
s as ShareBlog,
|
|
14
|
-
M as useShareMutation,
|
|
15
|
-
m as useUpdateMutation
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=modals.js.map
|
package/dist/modals.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modals.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactionSummaryData, ReactionType } from '@edifice.io/ts-client';
|
|
2
|
-
export interface ReactionChoiceProps {
|
|
3
|
-
availableReactions: ReactionType[];
|
|
4
|
-
summary?: ReactionSummaryData;
|
|
5
|
-
onChange?: (chosenReaction?: ReactionType) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const ReactionChoice: {
|
|
8
|
-
({ availableReactions, summary, onChange, }: ReactionChoiceProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
export default ReactionChoice;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import u from "clsx";
|
|
3
|
-
import { useTranslation as p } from "react-i18next";
|
|
4
|
-
import f from "./hooks/useReactionIcons.js";
|
|
5
|
-
import { Dropdown as o } from "../../components/Dropdown/Dropdown.js";
|
|
6
|
-
import { Tooltip as h } from "../../components/Tooltip/Tooltip.js";
|
|
7
|
-
import { IconButton as g } from "../../components/Button/IconButton.js";
|
|
8
|
-
const R = ({
|
|
9
|
-
availableReactions: r,
|
|
10
|
-
summary: l = {
|
|
11
|
-
totalReactionsCounter: 0,
|
|
12
|
-
userReaction: null
|
|
13
|
-
},
|
|
14
|
-
onChange: s
|
|
15
|
-
}) => {
|
|
16
|
-
const {
|
|
17
|
-
t: c
|
|
18
|
-
} = p(), {
|
|
19
|
-
getReactionIcon: n,
|
|
20
|
-
getReactionLabel: m
|
|
21
|
-
} = f(), {
|
|
22
|
-
userReaction: i
|
|
23
|
-
} = l, a = u({
|
|
24
|
-
"fw-bold": !!i
|
|
25
|
-
});
|
|
26
|
-
return /* @__PURE__ */ e("div", { className: "reaction-choice", children: /* @__PURE__ */ d(o, { placement: "top-start", isTriggerHovered: !0, children: [
|
|
27
|
-
/* @__PURE__ */ e(o.Trigger, { className: a, color: "tertiary", variant: "ghost", size: "sm", icon: n(i), hideCarret: !0, label: c(m(i)) }),
|
|
28
|
-
/* @__PURE__ */ e(o.Menu, { unstyled: !0, className: "bg-white shadow rounded-8 overflow-visible", children: /* @__PURE__ */ e("div", { className: "d-flex align-items-center justify-content-between", children: r == null ? void 0 : r.map((t) => /* @__PURE__ */ e(o.Item, { className: "p-0", children: /* @__PURE__ */ e(h, { message: c(m(t)), placement: "top", children: /* @__PURE__ */ e(g, { className: "reaction-available m-4", variant: "ghost", size: "sm", icon: n(t), onClick: () => s == null ? void 0 : s(t) }) }) }, t)) }) })
|
|
29
|
-
] }) });
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
R as default
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=ReactionChoice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionChoice.js","sources":["../../../src/modules/audience/ReactionChoice.tsx"],"sourcesContent":["import { ReactionSummaryData, ReactionType } from '@edifice.io/ts-client';\nimport clsx from 'clsx';\nimport { useTranslation } from 'react-i18next';\nimport { useReactionIcons } from '.';\nimport { IconButton } from '../../components/Button';\nimport { Dropdown } from '../../components/Dropdown';\nimport { Tooltip } from '../../components/Tooltip';\n\nexport interface ReactionChoiceProps {\n availableReactions: ReactionType[];\n summary?: ReactionSummaryData;\n onChange?: (chosenReaction?: ReactionType) => void;\n}\n\nconst ReactionChoice = ({\n availableReactions,\n summary = { totalReactionsCounter: 0, userReaction: null },\n onChange,\n}: ReactionChoiceProps) => {\n const { t } = useTranslation();\n const { getReactionIcon, getReactionLabel } = useReactionIcons();\n\n const { userReaction } = summary;\n const classes = clsx({\n 'fw-bold': !!userReaction,\n });\n\n return (\n <div className=\"reaction-choice\">\n <Dropdown placement=\"top-start\" isTriggerHovered>\n <Dropdown.Trigger\n className={classes}\n color=\"tertiary\"\n variant=\"ghost\"\n size=\"sm\"\n icon={getReactionIcon(userReaction)}\n hideCarret\n label={t(getReactionLabel(userReaction))}\n ></Dropdown.Trigger>\n <Dropdown.Menu\n unstyled\n className=\"bg-white shadow rounded-8 overflow-visible\"\n >\n <div className=\"d-flex align-items-center justify-content-between\">\n {availableReactions?.map((reactionType) => (\n <Dropdown.Item className=\"p-0\" key={reactionType}>\n <Tooltip\n message={t(getReactionLabel(reactionType))}\n placement=\"top\"\n >\n <IconButton\n className=\"reaction-available m-4\"\n variant=\"ghost\"\n size=\"sm\"\n icon={getReactionIcon(reactionType)}\n onClick={() => onChange?.(reactionType)}\n />\n </Tooltip>\n </Dropdown.Item>\n ))}\n </div>\n </Dropdown.Menu>\n </Dropdown>\n </div>\n );\n};\n\nReactionChoice.displayName = 'ReactionChoice';\n\nexport default ReactionChoice;\n"],"names":["ReactionChoice","availableReactions","summary","totalReactionsCounter","userReaction","onChange","t","useTranslation","getReactionIcon","getReactionLabel","useReactionIcons","classes","clsx","jsx","Dropdown","map","reactionType","Tooltip","IconButton"],"mappings":";;;;;;;AAcA,MAAMA,IAAiBA,CAAC;AAAA,EACtBC,oBAAAA;AAAAA,EACAC,SAAAA,IAAU;AAAA,IAAEC,uBAAuB;AAAA,IAAGC,cAAc;AAAA,EAAK;AAAA,EACzDC,UAAAA;AACmB,MAAM;AACnB,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvB;AAAA,IAAEC,iBAAAA;AAAAA,IAAiBC,kBAAAA;AAAAA,MAAqBC,EAAiB,GAEzD;AAAA,IAAEN,cAAAA;AAAAA,EAAiBF,IAAAA,GACnBS,IAAUC,EAAK;AAAA,IACnB,WAAW,CAAC,CAACR;AAAAA,EAAAA,CACd;AAGC,SAAA,gBAAAS,EAAC,SAAI,WAAU,mBACb,4BAACC,GAAS,EAAA,WAAU,aAAY,kBAAgB,IAC9C,UAAA;AAAA,IAAC,gBAAAD,EAAAC,EAAS,SAAT,EACC,WAAWH,GACX,OAAM,YACN,SAAQ,SACR,MAAK,MACL,MAAMH,EAAgBJ,CAAY,GAClC,YAAU,IACV,OAAOE,EAAEG,EAAiBL,CAAY,CAAC,GACxC;AAAA,IACD,gBAAAS,EAACC,EAAS,MAAT,EACC,UAAQ,IACR,WAAU,8CAEV,UAAC,gBAAAD,EAAA,OAAA,EAAI,WAAU,qDACZZ,iCAAoBc,IAAKC,CAAAA,MACvB,gBAAAH,EAAAC,EAAS,MAAT,EAAc,WAAU,OACvB,UAAA,gBAAAD,EAACI,GACC,EAAA,SAASX,EAAEG,EAAiBO,CAAY,CAAC,GACzC,WAAU,OAEV,UAAC,gBAAAH,EAAAK,GAAA,EACC,WAAU,0BACV,SAAQ,SACR,MAAK,MACL,MAAMV,EAAgBQ,CAAY,GAClC,SAAS,MAAMX,KAAAA,gBAAAA,EAAWW,GAAc,CAAA,EAE5C,CAAA,EAZkCA,GAAAA,CAapC,GACD,CACH,EACF,CAAA;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ;"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as c } from "react-i18next";
|
|
3
|
-
import n from "./hooks/useReactionIcons.js";
|
|
4
|
-
import d from "../../core/useAvatar/useAvatar.js";
|
|
5
|
-
import { Avatar as m } from "../../components/Avatar/Avatar.js";
|
|
6
|
-
function N({
|
|
7
|
-
reaction: e
|
|
8
|
-
}) {
|
|
9
|
-
const {
|
|
10
|
-
t: i
|
|
11
|
-
} = c(), {
|
|
12
|
-
avatarURL: r,
|
|
13
|
-
userbookURL: l
|
|
14
|
-
} = d(e.userId, e.profile), {
|
|
15
|
-
getReactionIcon: t,
|
|
16
|
-
getReactionLabel: o
|
|
17
|
-
} = n();
|
|
18
|
-
return /* @__PURE__ */ s("div", { className: "reaction-modal-card w-100 d-flex gap-8", children: [
|
|
19
|
-
/* @__PURE__ */ s("div", { className: "position-relative p-8", children: [
|
|
20
|
-
/* @__PURE__ */ a(m, { variant: "circle", size: "md", src: r, alt: e.displayName }),
|
|
21
|
-
/* @__PURE__ */ a("div", { className: "position-absolute end-0 bottom-0", children: t(e.reactionType, !0) })
|
|
22
|
-
] }),
|
|
23
|
-
/* @__PURE__ */ s("div", { className: "d-flex flex-column w-100 pt-8", children: [
|
|
24
|
-
/* @__PURE__ */ s("div", { className: "d-flex align-items-baseline", children: [
|
|
25
|
-
/* @__PURE__ */ a("div", { className: "d-flex overflow-hidden", children: /* @__PURE__ */ a("a", { href: l, className: "text-reset flex-shrink-0", children: e.displayName }) }),
|
|
26
|
-
/* @__PURE__ */ a("strong", { className: "ms-12 caption text-gray-700", children: i(e.profile) })
|
|
27
|
-
] }),
|
|
28
|
-
/* @__PURE__ */ a("p", { className: "caption text-gray-700", children: i(o(e.reactionType)) })
|
|
29
|
-
] })
|
|
30
|
-
] });
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
N as ReactionModalCard
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=ReactionModal.Card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionModal.Card.js","sources":["../../../src/modules/audience/ReactionModal.Card.tsx"],"sourcesContent":["import { ReactionDetailsData } from '@edifice.io/ts-client';\nimport { useTranslation } from 'react-i18next';\nimport { Avatar } from '../../components/Avatar';\nimport { useAvatar } from '../../core';\nimport useReactionIcons from './hooks/useReactionIcons';\n\nexport function ReactionModalCard({\n reaction,\n}: {\n reaction: ReactionDetailsData['userReactions'][number];\n}) {\n const { t } = useTranslation();\n const { avatarURL, userbookURL } = useAvatar(\n reaction.userId,\n reaction.profile,\n );\n const { getReactionIcon, getReactionLabel } = useReactionIcons();\n\n return (\n <div className=\"reaction-modal-card w-100 d-flex gap-8\">\n <div className=\"position-relative p-8\">\n <Avatar\n variant=\"circle\"\n size=\"md\"\n src={avatarURL}\n alt={reaction.displayName}\n />\n <div className=\"position-absolute end-0 bottom-0\">\n {getReactionIcon(reaction.reactionType, true)}\n </div>\n </div>\n <div className=\"d-flex flex-column w-100 pt-8\">\n <div className=\"d-flex align-items-baseline\">\n <div className=\"d-flex overflow-hidden\">\n <a href={userbookURL} className=\"text-reset flex-shrink-0\">\n {reaction.displayName}\n </a>\n </div>\n <strong className=\"ms-12 caption text-gray-700\">\n {t(reaction.profile)}\n </strong>\n </div>\n <p className=\"caption text-gray-700\">\n {t(getReactionLabel(reaction.reactionType))}\n </p>\n </div>\n </div>\n );\n}\n"],"names":["ReactionModalCard","reaction","t","useTranslation","avatarURL","userbookURL","useAvatar","userId","profile","getReactionIcon","getReactionLabel","useReactionIcons","jsxs","jsx","Avatar","displayName","reactionType"],"mappings":";;;;;AAMO,SAASA,EAAkB;AAAA,EAChCC,UAAAA;AAGF,GAAG;AACK,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvB;AAAA,IAAEC,WAAAA;AAAAA,IAAWC,aAAAA;AAAAA,EAAgBC,IAAAA,EACjCL,EAASM,QACTN,EAASO,OACX,GACM;AAAA,IAAEC,iBAAAA;AAAAA,IAAiBC,kBAAAA;AAAAA,MAAqBC,EAAiB;AAG7D,SAAA,gBAAAC,EAAC,OAAI,EAAA,WAAU,0CACb,UAAA;AAAA,IAAC,gBAAAA,EAAA,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,MAAC,gBAAAC,EAAAC,GAAA,EACC,SAAQ,UACR,MAAK,MACL,KAAKV,GACL,KAAKH,EAASc,YAAY,CAAA;AAAA,MAE5B,gBAAAF,EAAC,SAAI,WAAU,oCACZJ,YAAgBR,EAASe,cAAc,EAAI,GAC9C;AAAA,IAAA,GACF;AAAA,IACA,gBAAAJ,EAAC,OAAI,EAAA,WAAU,iCACb,UAAA;AAAA,MAAC,gBAAAA,EAAA,OAAA,EAAI,WAAU,+BACb,UAAA;AAAA,QAAC,gBAAAC,EAAA,OAAA,EAAI,WAAU,0BACb,UAAC,gBAAAA,EAAA,KAAA,EAAE,MAAMR,GAAa,WAAU,4BAC7BJ,UAASc,EAAAA,YACZ,CAAA,GACF;AAAA,0BACC,UAAO,EAAA,WAAU,+BACfb,UAAED,EAAAA,EAASO,OAAO,GACrB;AAAA,MAAA,GACF;AAAA,MACA,gBAAAK,EAAC,OAAE,WAAU,yBACVX,YAAEQ,EAAiBT,EAASe,YAAY,CAAC,EAC5C,CAAA;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ReactionDetailsData } from '@edifice.io/ts-client';
|
|
2
|
-
import { ReactionModalCard } from './ReactionModal.Card';
|
|
3
|
-
export interface ReactionModalProps {
|
|
4
|
-
/** Id of resource. */
|
|
5
|
-
resourceId: string;
|
|
6
|
-
/** Number of results per page, defaults to 30. */
|
|
7
|
-
pageSize?: number;
|
|
8
|
-
/** Display modal ? */
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
/** Close button handler. */
|
|
11
|
-
onModalClose(): void;
|
|
12
|
-
/** Function for loading reactions to the resource. */
|
|
13
|
-
reactionDetailsLoader: (resourceId: string, page: number, size: number) => Promise<ReactionDetailsData | undefined>;
|
|
14
|
-
}
|
|
15
|
-
declare const ReactionModal: {
|
|
16
|
-
({ resourceId, pageSize, reactionDetailsLoader: loadReactionDetails, onModalClose, ...restProps }: ReactionModalProps): import('react').ReactPortal;
|
|
17
|
-
displayName: string;
|
|
18
|
-
Card: typeof ReactionModalCard;
|
|
19
|
-
};
|
|
20
|
-
export default ReactionModal;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as T } from "react/jsx-runtime";
|
|
2
|
-
import { ReactionTypes as D } from "@edifice.io/ts-client";
|
|
3
|
-
import { useState as c, useId as F, useCallback as H, useMemo as g, useEffect as S } from "react";
|
|
4
|
-
import { createPortal as U } from "react-dom";
|
|
5
|
-
import { useTranslation as q } from "react-i18next";
|
|
6
|
-
import { ReactionModalCard as z } from "./ReactionModal.Card.js";
|
|
7
|
-
import G from "./hooks/useReactionIcons.js";
|
|
8
|
-
import { StringUtils as J } from "../../utils/StringUtils.js";
|
|
9
|
-
import { Modal as i } from "../../components/Modal/Modal.js";
|
|
10
|
-
import { Tabs as K } from "../../components/Tabs/Tabs.js";
|
|
11
|
-
import { Button as I } from "../../components/Button/Button.js";
|
|
12
|
-
const s = "all", B = ({
|
|
13
|
-
resourceId: f,
|
|
14
|
-
pageSize: p = 30,
|
|
15
|
-
reactionDetailsLoader: h,
|
|
16
|
-
onModalClose: l,
|
|
17
|
-
...R
|
|
18
|
-
}) => {
|
|
19
|
-
const [n, x] = c({
|
|
20
|
-
countByType: {},
|
|
21
|
-
allReactionsCounter: 0
|
|
22
|
-
}), [d, P] = c([]), [m, L] = c(s), k = F(), {
|
|
23
|
-
t: r
|
|
24
|
-
} = q(), {
|
|
25
|
-
getReactionIcon: M
|
|
26
|
-
} = G(), [y, j] = c(0), b = H(async () => {
|
|
27
|
-
const t = y + 1;
|
|
28
|
-
j(t);
|
|
29
|
-
const e = await h(f, t, p);
|
|
30
|
-
if (e) {
|
|
31
|
-
const {
|
|
32
|
-
reactionCounters: a,
|
|
33
|
-
userReactions: E
|
|
34
|
-
} = e;
|
|
35
|
-
t === 1 && x(a), P((C) => [...C, ...E.filter((N) => !C.some((_) => _.userId === N.userId))]);
|
|
36
|
-
}
|
|
37
|
-
}, [y, h, p, f]), u = g(() => /* @__PURE__ */ o("div", { className: "d-flex flex-column w-100 gap-8 mt-32", children: d.filter((t) => m === s || t.reactionType === m).map((t) => /* @__PURE__ */ o(B.Card, { reaction: t }, t.userId)) }), [m, d]), v = g(() => {
|
|
38
|
-
const t = D.filter((e) => {
|
|
39
|
-
var a;
|
|
40
|
-
return typeof ((a = n.countByType) == null ? void 0 : a[e]) == "number";
|
|
41
|
-
}).map((e) => ({
|
|
42
|
-
id: e,
|
|
43
|
-
icon: M(e),
|
|
44
|
-
label: J.toCounter(n.countByType[e]),
|
|
45
|
-
content: u
|
|
46
|
-
}));
|
|
47
|
-
return [{
|
|
48
|
-
id: s,
|
|
49
|
-
icon: null,
|
|
50
|
-
label: r("audience.reaction.tab.all"),
|
|
51
|
-
content: u
|
|
52
|
-
}, ...t];
|
|
53
|
-
}, [n.countByType, u]);
|
|
54
|
-
S(() => {
|
|
55
|
-
b();
|
|
56
|
-
}, []);
|
|
57
|
-
const w = (t) => {
|
|
58
|
-
L(t.id);
|
|
59
|
-
}, A = d.length < n.allReactionsCounter;
|
|
60
|
-
return /* @__PURE__ */ U(/* @__PURE__ */ T(i, { id: k, ...R, onModalClose: l, size: "md", scrollable: !0, children: [
|
|
61
|
-
/* @__PURE__ */ o(i.Header, { onModalClose: l, children: /* @__PURE__ */ o("h2", { children: r("audience.reaction.modal.header") }) }),
|
|
62
|
-
/* @__PURE__ */ o(i.Body, { children: /* @__PURE__ */ o(K, { items: v, defaultId: s, onChange: w }) }),
|
|
63
|
-
/* @__PURE__ */ T(i.Footer, { children: [
|
|
64
|
-
A && /* @__PURE__ */ o(I, { color: "tertiary", onClick: b, children: r("audience.reaction.modal.more") }),
|
|
65
|
-
/* @__PURE__ */ o(I, { color: "primary", onClick: l, type: "button", variant: "filled", children: r("close") })
|
|
66
|
-
] })
|
|
67
|
-
] }), document.getElementById("portal"));
|
|
68
|
-
};
|
|
69
|
-
B.Card = z;
|
|
70
|
-
export {
|
|
71
|
-
B as default
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=ReactionModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionModal.js","sources":["../../../src/modules/audience/ReactionModal.tsx"],"sourcesContent":["import {\n ReactionDetailsData,\n ReactionType,\n ReactionTypes,\n} from '@edifice.io/ts-client';\nimport { useCallback, useEffect, useId, useMemo, useState } from 'react';\nimport { createPortal } from 'react-dom';\nimport { useTranslation } from 'react-i18next';\nimport { Button } from '../../components/Button';\nimport { Modal } from '../../components/Modal';\nimport { Tabs, TabsItemProps } from '../../components/Tabs';\nimport { StringUtils } from '../../utils';\nimport { ReactionModalCard } from './ReactionModal.Card';\nimport { default as useReactionIcons } from './hooks/useReactionIcons';\n\nexport interface ReactionModalProps {\n /** Id of resource. */\n resourceId: string;\n\n /** Number of results per page, defaults to 30. */\n pageSize?: number;\n\n /** Display modal ? */\n isOpen: boolean;\n\n /** Close button handler. */\n onModalClose(): void;\n\n /** Function for loading reactions to the resource. */\n reactionDetailsLoader: (\n resourceId: string,\n page: number,\n size: number,\n ) => Promise<ReactionDetailsData | undefined>;\n}\n\nconst ALL_TAB_ID = 'all';\ntype TabId = ReactionType | typeof ALL_TAB_ID;\n\nconst ReactionModal = ({\n resourceId,\n pageSize = 30,\n reactionDetailsLoader: loadReactionDetails,\n onModalClose,\n ...restProps\n}: ReactionModalProps) => {\n // Reaction counters details.\n const [counters, setCounters] = useState({\n countByType: {} as {\n [type in ReactionType]?: number;\n },\n allReactionsCounter: 0,\n });\n // Reactions details.\n const [reactions, setReactions] = useState<\n ReactionDetailsData['userReactions']\n >([]);\n // Currently displayed tab ID.\n const [currentTabId, setCurrentTabId] = useState<TabId>(ALL_TAB_ID);\n\n const id = useId();\n const { t } = useTranslation();\n const { getReactionIcon } = useReactionIcons();\n\n const [latestPage, setLatestPage] = useState(0);\n\n const loadNextPage = useCallback(async () => {\n const nextPage = latestPage + 1;\n setLatestPage(nextPage);\n\n const data = await loadReactionDetails(resourceId, nextPage, pageSize);\n if (data) {\n const { reactionCounters, userReactions } = data;\n if (nextPage === 1) setCounters(reactionCounters);\n setReactions((old) => [\n ...old,\n ...userReactions.filter(\n (reaction) =>\n !old.some((oldReaction) => oldReaction.userId === reaction.userId),\n ),\n ]);\n }\n }, [latestPage, loadReactionDetails, pageSize, resourceId]);\n\n // Displayed panel.\n const panel = useMemo(() => {\n return (\n <div className=\"d-flex flex-column w-100 gap-8 mt-32\">\n {reactions\n .filter(\n (reaction) =>\n currentTabId === ALL_TAB_ID ||\n reaction.reactionType === currentTabId,\n )\n .map((reaction) => {\n return (\n <ReactionModal.Card key={reaction.userId} reaction={reaction} />\n );\n })}\n </div>\n );\n }, [currentTabId, reactions]);\n\n // Displayed tabs list.\n const tabs = useMemo(() => {\n const items: TabsItemProps[] = ReactionTypes.filter(\n (type) => typeof counters.countByType?.[type] === 'number',\n ).map((type) => ({\n id: type,\n icon: getReactionIcon(type),\n label: StringUtils.toCounter(counters.countByType[type] as number),\n content: panel,\n }));\n\n return [\n {\n id: ALL_TAB_ID,\n icon: null,\n label: t('audience.reaction.tab.all'),\n content: panel,\n },\n ...items,\n ];\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [counters.countByType, panel]);\n\n // Load first page, once\n useEffect(() => {\n loadNextPage();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const handleTabChange = (tab: TabsItemProps) => {\n setCurrentTabId(tab.id as TabId);\n };\n\n const hasMore = reactions.length < counters.allReactionsCounter;\n\n return createPortal(\n <Modal\n id={id}\n {...restProps}\n onModalClose={onModalClose}\n size=\"md\"\n scrollable\n >\n <Modal.Header onModalClose={onModalClose}>\n <h2>{t('audience.reaction.modal.header')}</h2>\n </Modal.Header>\n\n <Modal.Body>\n <Tabs\n items={tabs}\n defaultId={ALL_TAB_ID}\n onChange={handleTabChange}\n ></Tabs>\n </Modal.Body>\n\n <Modal.Footer>\n {hasMore && (\n <Button color=\"tertiary\" onClick={loadNextPage}>\n {t('audience.reaction.modal.more')}\n </Button>\n )}\n <Button\n color=\"primary\"\n onClick={onModalClose}\n type=\"button\"\n variant=\"filled\"\n >\n {t('close')}\n </Button>\n </Modal.Footer>\n </Modal>,\n document.getElementById('portal') as HTMLElement,\n );\n};\n\nReactionModal.displayName = 'ReactionModal';\nReactionModal.Card = ReactionModalCard;\n\nexport default ReactionModal;\n"],"names":["ALL_TAB_ID","ReactionModal","resourceId","pageSize","reactionDetailsLoader","loadReactionDetails","onModalClose","restProps","counters","setCounters","useState","countByType","allReactionsCounter","reactions","setReactions","currentTabId","setCurrentTabId","id","useId","t","useTranslation","getReactionIcon","useReactionIcons","latestPage","setLatestPage","loadNextPage","useCallback","nextPage","data","reactionCounters","userReactions","old","filter","reaction","some","oldReaction","userId","panel","useMemo","jsx","reactionType","map","tabs","items","ReactionTypes","type","icon","label","StringUtils","toCounter","content","useEffect","handleTabChange","tab","hasMore","length","createPortal","jsxs","Modal","Tabs","Button","document","getElementById","Card","ReactionModalCard"],"mappings":";;;;;;;;;;;AAoCA,MAAMA,IAAa,OAGbC,IAAgBA,CAAC;AAAA,EACrBC,YAAAA;AAAAA,EACAC,UAAAA,IAAW;AAAA,EACXC,uBAAuBC;AAAAA,EACvBC,cAAAA;AAAAA,EACA,GAAGC;AACe,MAAM;AAExB,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS;AAAA,IACvCC,aAAa,CAAC;AAAA,IAGdC,qBAAqB;AAAA,EAAA,CACtB,GAEK,CAACC,GAAWC,CAAY,IAAIJ,EAEhC,CAAE,CAAA,GAEE,CAACK,GAAcC,CAAe,IAAIN,EAAgBV,CAAU,GAE5DiB,IAAKC,KACL;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvB;AAAA,IAAEC,iBAAAA;AAAAA,MAAoBC,EAAiB,GAEvC,CAACC,GAAYC,CAAa,IAAId,EAAS,CAAC,GAExCe,IAAeC,EAAY,YAAY;AAC3C,UAAMC,IAAWJ,IAAa;AAC9BC,IAAAA,EAAcG,CAAQ;AAEtB,UAAMC,IAAO,MAAMvB,EAAoBH,GAAYyB,GAAUxB,CAAQ;AACrE,QAAIyB,GAAM;AACF,YAAA;AAAA,QAAEC,kBAAAA;AAAAA,QAAkBC,eAAAA;AAAAA,MAAkBF,IAAAA;AACxCD,MAAAA,MAAa,KAAGlB,EAAYoB,CAAgB,GAChDf,EAAciB,OAAQ,CACpB,GAAGA,GACH,GAAGD,EAAcE,OACdC,CACCA,MAAA,CAACF,EAAIG,KAAMC,OAAgBA,EAAYC,WAAWH,EAASG,MAAM,CACrE,CAAC,CACF;AAAA,IACH;AAAA,KACC,CAACb,GAAYlB,GAAqBF,GAAUD,CAAU,CAAC,GAGpDmC,IAAQC,EAAQ,MAEjB,gBAAAC,EAAA,OAAA,EAAI,WAAU,wCACZ1B,YACEmB,OACEC,CAAAA,MACClB,MAAiBf,KACjBiC,EAASO,iBAAiBzB,CAC9B,EACC0B,IAAKR,CAAaA,wBAEdhC,EAAc,MAAd,EAAyC,UAAAgC,KAAjBA,EAASG,MAA8B,CAEnE,EACL,CAAA,GAED,CAACrB,GAAcF,CAAS,CAAC,GAGtB6B,IAAOJ,EAAQ,MAAM;AACzB,UAAMK,IAAyBC,EAAcZ,OAC1Ca,CAAAA,MAAAA;;AAAS,sBAAOrC,IAAAA,EAASG,gBAATH,gBAAAA,EAAuBqC,OAAU;AAAA,KACpD,EAAEJ,IAAKI,CAAUA,OAAA;AAAA,MACf5B,IAAI4B;AAAAA,MACJC,MAAMzB,EAAgBwB,CAAI;AAAA,MAC1BE,OAAOC,EAAYC,UAAUzC,EAASG,YAAYkC,CAAI,CAAW;AAAA,MACjEK,SAASb;AAAAA,IACT,EAAA;AAEF,WAAO,CACL;AAAA,MACEpB,IAAIjB;AAAAA,MACJ8C,MAAM;AAAA,MACNC,OAAO5B,EAAE,2BAA2B;AAAA,MACpC+B,SAASb;AAAAA,IAAAA,GAEX,GAAGM,CAAK;AAAA,EAGT,GAAA,CAACnC,EAASG,aAAa0B,CAAK,CAAC;AAGhCc,EAAAA,EAAU,MAAM;AACD,IAAA1B;EAEf,GAAG,CAAE,CAAA;AAEC2B,QAAAA,IAAkBA,CAACC,MAAuB;AAC9CrC,IAAAA,EAAgBqC,EAAIpC,EAAW;AAAA,EAAA,GAG3BqC,IAAUzC,EAAU0C,SAAS/C,EAASI;AAErC4C,SAAAA,gBAAAA,EACJ,gBAAAC,EAAAC,GAAA,EACC,IAAAzC,GACA,GAAIV,GACJ,cAAAD,GACA,MAAK,MACL,YAAU,IAEV,UAAA;AAAA,IAAC,gBAAAiC,EAAAmB,EAAM,QAAN,EAAa,cAAApD,GACZ,4BAAC,MAAIa,EAAAA,UAAAA,EAAE,gCAAgC,EAAA,CAAE,EAC3C,CAAA;AAAA,IAEC,gBAAAoB,EAAAmB,EAAM,MAAN,EACC,UAAC,gBAAAnB,EAAAoB,GAAA,EACC,OAAOjB,GACP,WAAW1C,GACX,UAAUoD,EAAAA,CACX,EACH,CAAA;AAAA,IAEA,gBAAAK,EAACC,EAAM,QAAN,EACEJ,UAAAA;AAAAA,MACCA,KAAA,gBAAAf,EAACqB,KAAO,OAAM,YAAW,SAASnC,GAC/BN,UAAAA,EAAE,8BAA8B,EACnC,CAAA;AAAA,MAED,gBAAAoB,EAAAqB,GAAA,EACC,OAAM,WACN,SAAStD,GACT,MAAK,UACL,SAAQ,UAEPa,UAAEA,EAAA,OAAO,EACZ,CAAA;AAAA,IAAA,GACF;AAAA,EAAA,EAAA,CACF,GACA0C,SAASC,eAAe,QAAQ,CAClC;AACF;AAGA7D,EAAc8D,OAAOC;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactionSummaryData } from '@edifice.io/ts-client';
|
|
2
|
-
export interface ReactionSummaryProps {
|
|
3
|
-
summary?: ReactionSummaryData;
|
|
4
|
-
onClick?: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const ReactionSummary: {
|
|
7
|
-
({ summary, onClick, }: ReactionSummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
export default ReactionSummary;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import c from "./hooks/useReactionIcons.js";
|
|
3
|
-
import { Button as m } from "../../components/Button/Button.js";
|
|
4
|
-
import { StringUtils as d } from "../../utils/StringUtils.js";
|
|
5
|
-
const v = ({
|
|
6
|
-
summary: i = {
|
|
7
|
-
userReaction: null,
|
|
8
|
-
totalReactionsCounter: 0
|
|
9
|
-
},
|
|
10
|
-
onClick: a
|
|
11
|
-
}) => {
|
|
12
|
-
const {
|
|
13
|
-
getReactionIcon: n
|
|
14
|
-
} = c(), {
|
|
15
|
-
totalReactionsCounter: r,
|
|
16
|
-
reactionTypes: o
|
|
17
|
-
} = i, s = r === 0;
|
|
18
|
-
return /* @__PURE__ */ e(m, { variant: "ghost", className: "py-4 px-8 btn-icon", disabled: s, onClick: (t) => {
|
|
19
|
-
t.preventDefault(), t.stopPropagation(), a == null || a();
|
|
20
|
-
}, children: /* @__PURE__ */ l("div", { className: "d-flex align-items-center", children: [
|
|
21
|
-
/* @__PURE__ */ e("div", { className: "text-gray-700 fw-normal me-8", children: d.toCounter(r) }),
|
|
22
|
-
s ? /* @__PURE__ */ e("div", { className: "reaction-overlap", children: n("REACTION_1", !0) }) : o == null ? void 0 : o.map((t) => /* @__PURE__ */ e("div", { className: "reaction-overlap", children: n(t, !0) }, t))
|
|
23
|
-
] }) });
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
v as default
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=ReactionSummary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionSummary.js","sources":["../../../src/modules/audience/ReactionSummary.tsx"],"sourcesContent":["import { ReactionSummaryData } from '@edifice.io/ts-client';\nimport { Button } from '../../components/Button';\nimport { StringUtils } from '../../utils';\nimport useReactionIcons from './hooks/useReactionIcons';\n\nexport interface ReactionSummaryProps {\n summary?: ReactionSummaryData;\n onClick?: () => void;\n}\n\nconst ReactionSummary = ({\n summary = { userReaction: null, totalReactionsCounter: 0 },\n onClick,\n}: ReactionSummaryProps) => {\n const { getReactionIcon } = useReactionIcons();\n\n const { totalReactionsCounter, reactionTypes } = summary;\n\n const hasNoReactions = totalReactionsCounter === 0;\n\n const handleDetailsClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n event.stopPropagation();\n onClick?.();\n };\n\n return (\n <Button\n variant=\"ghost\"\n className=\"py-4 px-8 btn-icon\"\n disabled={hasNoReactions}\n onClick={handleDetailsClick}\n >\n <div className=\"d-flex align-items-center\">\n <div className=\"text-gray-700 fw-normal me-8\">\n {StringUtils.toCounter(totalReactionsCounter)}\n </div>\n {hasNoReactions ? (\n <div className=\"reaction-overlap\">\n {getReactionIcon('REACTION_1', true)}\n </div>\n ) : (\n reactionTypes?.map((reactionType) => (\n <div className=\"reaction-overlap\" key={reactionType}>\n {getReactionIcon(reactionType, true)}\n </div>\n ))\n )}\n </div>\n </Button>\n );\n};\n\nReactionSummary.displayName = 'ReactionSummary';\n\nexport default ReactionSummary;\n"],"names":["ReactionSummary","summary","userReaction","totalReactionsCounter","onClick","getReactionIcon","useReactionIcons","reactionTypes","hasNoReactions","jsx","Button","handleDetailsClick","event","preventDefault","stopPropagation","jsxs","StringUtils","toCounter","map","reactionType"],"mappings":";;;;AAUA,MAAMA,IAAkBA,CAAC;AAAA,EACvBC,SAAAA,IAAU;AAAA,IAAEC,cAAc;AAAA,IAAMC,uBAAuB;AAAA,EAAE;AAAA,EACzDC,SAAAA;AACoB,MAAM;AACpB,QAAA;AAAA,IAAEC,iBAAAA;AAAAA,MAAoBC,EAAiB,GAEvC;AAAA,IAAEH,uBAAAA;AAAAA,IAAuBI,eAAAA;AAAAA,EAAkBN,IAAAA,GAE3CO,IAAiBL,MAA0B;AAQjD,SACG,gBAAAM,EAAAC,GAAA,EACC,SAAQ,SACR,WAAU,sBACV,UAAUF,GACV,SAXuBG,CAACC,MAA+C;AACzEA,IAAAA,EAAMC,eAAe,GACrBD,EAAME,gBAAgB,GACZV,KAAA,QAAAA;AAAA,EAAA,GAUR,UAAC,gBAAAW,EAAA,OAAA,EAAI,WAAU,6BACb,UAAA;AAAA,IAAA,gBAAAN,EAAC,SAAI,WAAU,gCACZO,UAAYC,EAAAA,UAAUd,CAAqB,GAC9C;AAAA,IACCK,sBACE,OAAI,EAAA,WAAU,oBACZH,UAAgBA,EAAA,cAAc,EAAI,EACrC,CAAA,IAEAE,KAAAA,gBAAAA,EAAeW,IAAKC,CAClBA,MAAA,gBAAAV,EAAC,SAAI,WAAU,oBACZJ,YAAgBc,GAAc,EAAI,EADEA,GAAAA,CAEvC;AAAA,EACD,EAEL,CAAA,EACF,CAAA;AAEJ;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ViewsDetailsProfile } from '@edifice.io/ts-client';
|
|
2
|
-
export interface ViewsCardProps {
|
|
3
|
-
viewsByProfile: ViewsDetailsProfile;
|
|
4
|
-
}
|
|
5
|
-
declare const ViewsByProfileCard: {
|
|
6
|
-
({ viewsByProfile }: ViewsCardProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export default ViewsByProfileCard;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as u } from "react-i18next";
|
|
3
|
-
import { StringUtils as d } from "../../utils/StringUtils.js";
|
|
4
|
-
import { Icon as n } from "../../components/Icon/Icon.js";
|
|
5
|
-
const w = ({
|
|
6
|
-
viewsByProfile: s
|
|
7
|
-
}) => {
|
|
8
|
-
const {
|
|
9
|
-
t: i
|
|
10
|
-
} = u(), r = s.profile.toLowerCase(), t = `views-detail-icon rounded p-8 views-detail-icon-${r}`;
|
|
11
|
-
function a(c) {
|
|
12
|
-
switch (c) {
|
|
13
|
-
case "student":
|
|
14
|
-
return /* @__PURE__ */ e(n, { name: "audience/views/student" });
|
|
15
|
-
case "relative":
|
|
16
|
-
return /* @__PURE__ */ e(n, { name: "audience/views/parent" });
|
|
17
|
-
case "teacher":
|
|
18
|
-
return /* @__PURE__ */ e(n, { name: "audience/views/teacher" });
|
|
19
|
-
case "personnel":
|
|
20
|
-
return /* @__PURE__ */ e(n, { name: "audience/views/personnel" });
|
|
21
|
-
case "guest":
|
|
22
|
-
return /* @__PURE__ */ e(n, { name: "audience/views/guest" });
|
|
23
|
-
default:
|
|
24
|
-
return /* @__PURE__ */ e(n, { name: "users" });
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return /* @__PURE__ */ o("div", { className: "views-detail-line p-8 ms-32 mb-12", children: [
|
|
28
|
-
/* @__PURE__ */ e("div", { className: t, children: a(r) }),
|
|
29
|
-
/* @__PURE__ */ e("div", { className: "h3", children: d.toCounter(s.counter) }),
|
|
30
|
-
/* @__PURE__ */ e("div", { children: i(`audience.views.uniqueViewsPerProfile.${r}`) })
|
|
31
|
-
] }, r);
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
w as default
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=ViewsByProfileCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewsByProfileCard.js","sources":["../../../src/modules/audience/ViewsByProfileCard.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next';\n\nimport { ViewsDetailsProfile } from '@edifice.io/ts-client';\nimport { Icon } from '../../components';\nimport { StringUtils } from '../../utils';\n\nexport interface ViewsCardProps {\n viewsByProfile: ViewsDetailsProfile;\n}\n\nconst ViewsByProfileCard = ({ viewsByProfile }: ViewsCardProps) => {\n const { t } = useTranslation();\n const profile = viewsByProfile.profile.toLowerCase();\n const classNameIcon = `views-detail-icon rounded p-8 views-detail-icon-${profile}`;\n\n function getIcon(profile: string) {\n switch (profile) {\n case 'student':\n return <Icon name=\"audience/views/student\" />;\n case 'relative':\n return <Icon name=\"audience/views/parent\" />;\n case 'teacher':\n return <Icon name=\"audience/views/teacher\" />;\n case 'personnel':\n return <Icon name=\"audience/views/personnel\" />;\n case 'guest':\n return <Icon name=\"audience/views/guest\" />;\n default:\n return <Icon name=\"users\" />;\n }\n }\n\n return (\n <div key={profile} className=\"views-detail-line p-8 ms-32 mb-12\">\n <div className={classNameIcon}>{getIcon(profile)}</div>\n <div className=\"h3\">{StringUtils.toCounter(viewsByProfile.counter)}</div>\n <div>{t(`audience.views.uniqueViewsPerProfile.${profile}`)}</div>\n </div>\n );\n};\n\nViewsByProfileCard.displayName = 'ViewsByProfileCard';\n\nexport default ViewsByProfileCard;\n"],"names":["ViewsByProfileCard","viewsByProfile","t","useTranslation","profile","toLowerCase","classNameIcon","getIcon","jsx","Icon","jsxs","StringUtils","toCounter","counter"],"mappings":";;;;AAUA,MAAMA,IAAqBA,CAAC;AAAA,EAAEC,gBAAAA;AAA+B,MAAM;AAC3D,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvBC,IAAUH,EAAeG,QAAQC,YAAY,GAC7CC,IAAgB,mDAAmDF,CAAO;AAEhF,WAASG,EAAQH,GAAiB;AAChC,YAAQA,GAAO;AAAA,MACb,KAAK;AACI,eAAA,gBAAAI,EAACC,GAAK,EAAA,MAAK,yBAA2B,CAAA;AAAA,MAC/C,KAAK;AACI,eAAA,gBAAAD,EAACC,GAAK,EAAA,MAAK,wBAA0B,CAAA;AAAA,MAC9C,KAAK;AACI,eAAA,gBAAAD,EAACC,GAAK,EAAA,MAAK,yBAA2B,CAAA;AAAA,MAC/C,KAAK;AACI,eAAA,gBAAAD,EAACC,GAAK,EAAA,MAAK,2BAA6B,CAAA;AAAA,MACjD,KAAK;AACI,eAAA,gBAAAD,EAACC,GAAK,EAAA,MAAK,uBAAyB,CAAA;AAAA,MAC7C;AACS,eAAA,gBAAAD,EAACC,GAAK,EAAA,MAAK,QAAU,CAAA;AAAA,IAChC;AAAA,EACF;AAGE,SAAA,gBAAAC,EAAC,OAAkB,EAAA,WAAU,qCAC3B,UAAA;AAAA,IAAA,gBAAAF,EAAC,OAAI,EAAA,WAAWF,GAAgBC,UAAAA,EAAQH,CAAO,GAAE;AAAA,IACjD,gBAAAI,EAAC,SAAI,WAAU,MAAMG,YAAYC,UAAUX,EAAeY,OAAO,GAAE;AAAA,sBAClE,OAAKX,EAAAA,UAAAA,EAAE,wCAAwCE,CAAO,EAAE,GAAE;AAAA,EAAA,EAAA,GAHnDA,CAIV;AAEJ;"}
|