@edifice.io/react 2.0.0-develop-rc.12 → 2.0.0-develop-rc.13
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/OnboardingModal/OnboardingModal.js +59 -0
- package/dist/common/OnboardingModal/useOnboardingModal.js +30 -0
- package/dist/{modules/modals → common}/PublishModal/PublishModal.d.ts +1 -1
- package/dist/common/PublishModal/PublishModal.js +120 -0
- package/dist/common/PublishModal/components/ActivitiesDropdown.js +29 -0
- package/dist/common/PublishModal/components/AgeSelect.js +20 -0
- package/dist/common/PublishModal/components/LangSelect.js +19 -0
- package/dist/common/PublishModal/components/PublishModalFooter.js +23 -0
- package/dist/common/PublishModal/components/SubjectsDropdown.js +29 -0
- package/dist/common/PublishModal/components/ToastError.js +24 -0
- package/dist/{modules/modals → common}/PublishModal/components/ToastSuccess.d.ts +1 -1
- package/dist/common/PublishModal/components/ToastSuccess.js +18 -0
- package/dist/common/PublishModal/constants/ageOptions.js +4 -0
- package/dist/{modules/modals → common}/PublishModal/hooks/useActivitiesOptions.js +4 -5
- package/dist/common/PublishModal/hooks/useLanguageOptions.js +43 -0
- package/dist/{modules/modals → common}/PublishModal/hooks/usePublishModal.d.ts +1 -1
- package/dist/common/PublishModal/hooks/usePublishModal.js +106 -0
- package/dist/{modules/modals → common}/PublishModal/hooks/useSubjectsOptions.js +41 -42
- package/dist/{modules/modals → common}/ResourceModal/ResourceModal.d.ts +3 -3
- package/dist/common/ResourceModal/ResourceModal.js +156 -0
- package/dist/{modules/modals → common}/ResourceModal/apps/BlogPublic.d.ts +2 -2
- package/dist/common/ResourceModal/apps/BlogPublic.js +62 -0
- package/dist/{modules/modals → common}/ResourceModal/hooks/useSlug.d.ts +1 -1
- package/dist/common/ResourceModal/hooks/useSlug.js +41 -0
- package/dist/{modules/modals → common}/ResourceModal/hooks/useThumb.d.ts +1 -1
- package/dist/common/ResourceModal/hooks/useThumb.js +17 -0
- package/dist/{modules/modals → common}/ResourceModal/hooks/useUpdateMutation.d.ts +3 -3
- package/dist/common/ResourceModal/hooks/useUpdateMutation.js +12 -0
- package/dist/common/ResourceModal/index.d.ts +3 -0
- package/dist/common/ShareModal/ShareBookmark.js +22 -0
- package/dist/{modules/modals → common}/ShareModal/ShareBookmarkLine.d.ts +1 -1
- package/dist/common/ShareModal/ShareBookmarkLine.js +42 -0
- package/dist/{modules/modals → common}/ShareModal/ShareModal.d.ts +2 -2
- package/dist/common/ShareModal/ShareModal.js +128 -0
- package/dist/common/ShareModal/apps/ShareBlog.d.ts +8 -0
- package/dist/common/ShareModal/apps/ShareBlog.js +43 -0
- package/dist/{modules/modals → common}/ShareModal/hooks/useSearch.d.ts +2 -2
- package/dist/common/ShareModal/hooks/useSearch.js +178 -0
- package/dist/{modules/modals → common}/ShareModal/hooks/useShare.d.ts +1 -1
- package/dist/common/ShareModal/hooks/useShare.js +192 -0
- package/dist/{modules/modals → common}/ShareModal/hooks/useShareBookmark.d.ts +1 -1
- package/dist/common/ShareModal/hooks/useShareBookmark.js +67 -0
- package/dist/{modules/modals → common}/ShareModal/hooks/useShareMutation.d.ts +3 -3
- package/dist/common/ShareModal/hooks/useShareMutation.js +15 -0
- package/dist/common/ShareModal/index.d.ts +3 -0
- package/dist/{modules/modals → common}/ShareModal/utils/hasRight.d.ts +1 -1
- package/dist/common/ShareModal/utils/hasRight.js +4 -0
- package/dist/{modules/modals → common}/ShareModal/utils/showShareRightLine.d.ts +1 -1
- package/dist/common/ShareModal/utils/showShareRightLine.js +4 -0
- package/dist/components/ActionBar/ActionBar.d.ts +1 -1
- package/dist/components/ActionBar/ActionBar.js +6 -8
- package/dist/components/ActionBar/index.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/Alert.js +60 -62
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.js +18 -20
- package/dist/components/AppHeader/index.d.ts +1 -0
- package/dist/components/AppIcon/AppIcon.d.ts +1 -1
- package/dist/components/AppIcon/AppIcon.js +44 -45
- package/dist/components/Attachment/Attachment.d.ts +1 -1
- package/dist/components/Attachment/Attachment.js +13 -15
- package/dist/components/Attachment/index.d.ts +1 -0
- package/dist/{modules/audience → components/Audience}/ReactionChoice.d.ts +1 -1
- package/dist/components/Audience/ReactionChoice.js +33 -0
- package/dist/{modules/audience → components/Audience}/ReactionModal.Card.d.ts +1 -1
- package/dist/components/Audience/ReactionModal.Card.js +33 -0
- package/dist/{modules/audience → components/Audience}/ReactionModal.d.ts +1 -1
- package/dist/components/Audience/ReactionModal.js +73 -0
- package/dist/{modules/audience → components/Audience}/ReactionSummary.d.ts +1 -1
- package/dist/components/Audience/ReactionSummary.js +27 -0
- package/dist/{modules/audience → components/Audience}/ViewsByProfileCard.d.ts +1 -1
- package/dist/components/Audience/ViewsByProfileCard.js +36 -0
- package/dist/components/Audience/ViewsCounter.js +18 -0
- package/dist/{modules/audience → components/Audience}/ViewsModal.d.ts +1 -1
- package/dist/components/Audience/ViewsModal.js +40 -0
- package/dist/{modules/audience → components/Audience}/hooks/useReactionIcons.d.ts +1 -1
- package/dist/components/Audience/hooks/useReactionIcons.js +38 -0
- package/dist/{modules/audience → components/Audience}/hooks/useReactions.d.ts +3 -3
- package/dist/components/Audience/hooks/useReactions.js +35 -0
- package/dist/{modules/audience → components/Audience}/hooks/useViews.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +27 -29
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.js +20 -22
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +23 -24
- package/dist/components/Breadcrumb/BreadcrumbItem.js +11 -12
- package/dist/components/Breadcrumb/BreadcrumbList.js +10 -11
- package/dist/components/Breadcrumb/BreadcrumbNav.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbNav.js +15 -16
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +32 -34
- package/dist/components/Button/IconButton.d.ts +1 -1
- package/dist/components/Button/IconButton.js +15 -17
- package/dist/components/Button/SearchButton.d.ts +1 -1
- package/dist/components/Button/SearchButton.js +15 -17
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Card/Card.d.ts +4 -4
- package/dist/components/Card/Card.js +47 -49
- package/dist/components/Card/CardBody.d.ts +1 -1
- package/dist/components/Card/CardBody.js +13 -14
- package/dist/components/Card/CardContext.d.ts +1 -1
- package/dist/components/Card/CardContext.js +7 -8
- package/dist/components/Card/CardFooter.js +5 -6
- package/dist/components/Card/CardHeader.js +14 -15
- package/dist/components/Card/CardImage.d.ts +1 -1
- package/dist/components/Card/CardImage.js +13 -14
- package/dist/components/Card/CardText.js +8 -9
- package/dist/components/Card/CardTitle.js +8 -9
- package/dist/components/Card/CardUser.js +8 -9
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +30 -32
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPalette.js +4 -5
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +28 -30
- package/dist/components/ColorPicker/ColorPickerItem.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPickerItem.js +11 -13
- package/dist/components/ColorPicker/index.d.ts +3 -1
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.js +35 -36
- package/dist/components/Combobox/ComboboxTrigger.js +21 -22
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.js +55 -57
- package/dist/components/Dropdown/DropdownCheckboxItem.js +26 -27
- package/dist/components/Dropdown/DropdownContext.js +7 -8
- package/dist/components/Dropdown/DropdownItem.js +27 -28
- package/dist/components/Dropdown/DropdownMenu.js +21 -22
- package/dist/components/Dropdown/DropdownMenuGroup.js +9 -10
- package/dist/components/Dropdown/DropdownRadioItem.js +26 -27
- package/dist/components/Dropdown/DropdownSeparator.js +3 -4
- package/dist/components/Dropdown/DropdownTrigger.js +28 -29
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Dropzone/Dropzone.d.ts +1 -1
- package/dist/components/Dropzone/Dropzone.js +47 -48
- package/dist/components/Dropzone/DropzoneContext.js +8 -9
- package/dist/components/Dropzone/DropzoneDrag.js +7 -8
- package/dist/components/Dropzone/DropzoneFile.js +25 -26
- package/dist/components/Dropzone/DropzoneImport.js +20 -21
- package/dist/components/Dropzone/index.d.ts +1 -0
- package/dist/components/EmptyScreen/EmptyScreen.d.ts +1 -1
- package/dist/components/EmptyScreen/EmptyScreen.js +16 -18
- package/dist/components/EmptyScreen/index.d.ts +1 -0
- package/dist/components/FileCard/FileCard.d.ts +2 -2
- package/dist/components/FileCard/FileCard.js +37 -39
- package/dist/components/FileCard/FileIcon.d.ts +1 -1
- package/dist/components/FileCard/FileIcon.js +11 -12
- package/dist/components/FileCard/index.d.ts +1 -0
- package/dist/components/Form/FormContext.js +7 -8
- package/dist/components/Form/FormControl.d.ts +1 -1
- package/dist/components/Form/FormControl.js +30 -32
- package/dist/components/Form/FormText.d.ts +1 -1
- package/dist/components/Form/FormText.js +12 -14
- package/dist/components/Form/index.d.ts +2 -1
- package/dist/components/Grid/Grid.js +27 -28
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Heading/Heading.js +14 -16
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/Image/Image.js +39 -41
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +1 -1
- package/dist/components/ImagePicker/ImagePicker.js +51 -52
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +28 -30
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.js +30 -32
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/Loading/Loading.js +23 -25
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +1 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +20 -22
- package/dist/components/LoadingScreen/index.d.ts +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/Logo.js +12 -14
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Menu/Menu.js +39 -40
- package/dist/components/Menu/MenuButton.js +17 -18
- package/dist/components/Menu/MenuContext.js +8 -9
- package/dist/components/Menu/MenuItem.js +14 -15
- package/dist/components/Modal/Modal.d.ts +4 -1
- package/dist/components/Modal/Modal.js +49 -51
- package/dist/components/Modal/ModalBody.js +11 -12
- package/dist/components/Modal/ModalContext.js +8 -9
- package/dist/components/Modal/ModalFooter.js +3 -4
- package/dist/components/Modal/ModalHeader.js +22 -23
- package/dist/components/Modal/ModalSubtitle.js +3 -4
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Popover/Popover.js +33 -34
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +26 -28
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +29 -31
- package/dist/components/SearchBar/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +31 -33
- package/dist/components/Select/SelectTrigger.js +4 -5
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Table/Table.components.d.ts +20 -0
- package/dist/components/Table/Table.components.js +39 -0
- package/dist/components/Table/Table.d.ts +33 -0
- package/dist/components/Table/Table.js +16 -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/Tabs.js +58 -59
- package/dist/components/Tabs/TabsContext.js +8 -9
- package/dist/components/Tabs/TabsItem.js +20 -21
- package/dist/components/Tabs/TabsList.js +18 -19
- package/dist/components/Tabs/TabsPanel.js +9 -10
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextArea/TextArea.js +31 -33
- package/dist/components/TextArea/TextareaCounter.js +6 -7
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/Toolbar/Toolbar.d.ts +1 -1
- package/dist/components/Toolbar/Toolbar.js +60 -62
- package/dist/components/Toolbar/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +28 -30
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/TreeView/TreeItem.js +46 -47
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/components/TreeView/TreeView.js +33 -35
- package/dist/components/TreeView/hooks/useTreeItemEvents.js +18 -19
- package/dist/components/TreeView/index.d.ts +1 -0
- package/dist/components/UploadCard/UploadCard.js +52 -53
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +6 -8
- 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/OdeClientProvider/OdeClientProvider.js +44 -45
- package/dist/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/core/ThemeProvider/ThemeProvider.js +36 -36
- package/dist/core/index.d.ts +1 -0
- package/dist/core/useAvatar/useAvatar.d.ts +1 -1
- package/dist/core/useAvatar/useAvatar.js +21 -22
- package/dist/core/useBookmark/useBookmark.d.ts +1 -1
- package/dist/core/useBookmark/useBookmark.js +9 -10
- package/dist/core/useCantoo/index.d.ts +1 -0
- package/dist/core/useCantoo/useCantoo.d.ts +1 -0
- package/dist/core/useCantoo/useCantoo.js +18 -0
- package/dist/core/useConf/useConf.d.ts +1 -1
- package/dist/core/useConf/useConf.js +7 -8
- package/dist/core/useConversation/useConversation.js +29 -30
- package/dist/core/useCookiesConsent/useCookiesConsent.js +16 -17
- package/dist/core/useDate/useDate.js +35 -36
- package/dist/core/useHasWorkflow/useHasWorkflow.js +15 -16
- package/dist/core/useHeader/useHeader.d.ts +1 -1
- package/dist/core/useHeader/useHeader.js +45 -42
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js +17 -18
- package/dist/core/useIsAdml/useIsAdml.js +11 -12
- package/dist/core/useLibraryUrl/useLibraryUrl.js +16 -17
- package/dist/core/useMediaLibrary/useMediaLibrary.d.ts +2 -2
- package/dist/core/useMediaLibrary/useMediaLibrary.js +32 -33
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +1 -1
- package/dist/core/useOdeIcons/useOdeIcons.js +37 -38
- package/dist/core/usePaths/usePaths.js +2 -3
- package/dist/core/usePreferences/usePreferences.js +5 -6
- package/dist/core/useResource/useResource.d.ts +1 -1
- package/dist/core/useResource/useResource.js +14 -15
- package/dist/core/useResourceSearch/useResourceSearch.d.ts +1 -1
- package/dist/core/useResourceSearch/useResourceSearch.js +22 -23
- package/dist/core/useSession/useSession.js +6 -7
- package/dist/core/useTrashedResource/useTrashedResource.js +18 -19
- package/dist/core/useUpload/useUpload.d.ts +1 -1
- package/dist/core/useUpload/useUpload.js +68 -69
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +1 -1
- package/dist/core/useUploadFiles/useUploadFiles.js +82 -83
- package/dist/core/useUser/useUser.d.ts +1 -1
- package/dist/core/useUser/useUser.js +15 -16
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +1 -1
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +31 -32
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +1 -1
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +41 -42
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js +17 -18
- package/dist/core/useZendeskGuide/useZendeskGuide.js +46 -47
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +11 -12
- package/dist/hooks/useClickOutside/useClickOutside.js +18 -19
- package/dist/hooks/useDebounce/useDebounce.js +10 -11
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +96 -97
- package/dist/hooks/useDropzone/useDropzone.js +53 -54
- package/dist/hooks/useHover/useHover.js +14 -15
- package/dist/hooks/useImage/useImage.js +13 -14
- package/dist/hooks/useImageResizer/useImageResizer.js +31 -32
- package/dist/hooks/useKeyPress/useKeyPress.js +10 -11
- package/dist/hooks/useScrollToTop/useScrollToTop.js +4 -5
- package/dist/hooks/useThumbnail/useThumbnail.js +21 -22
- package/dist/hooks/useTitle/useTitle.js +7 -8
- package/dist/hooks/useToast/useToast.js +25 -26
- package/dist/hooks/useToggle/useToggle.js +6 -7
- package/dist/hooks/useTrapFocus/useTrapFocus.js +11 -12
- package/dist/index.d.ts +3 -1
- package/dist/index.js +274 -226
- package/dist/{modules/multimedia → multimedia}/AudioRecorder/AudioRecorder.d.ts +1 -1
- package/dist/multimedia/AudioRecorder/AudioRecorder.js +49 -0
- package/dist/multimedia/AudioRecorder/AudioRecorderTimer.js +24 -0
- package/dist/{modules/multimedia → multimedia}/AudioRecorder/useAudioRecorder.d.ts +2 -2
- package/dist/multimedia/AudioRecorder/useAudioRecorder.js +307 -0
- package/dist/multimedia/Embed/Embed.js +32 -0
- package/dist/multimedia/ImageEditor/components/ImageEditor.js +116 -0
- package/dist/multimedia/ImageEditor/components/ImageEditorToolbar.js +69 -0
- package/dist/multimedia/ImageEditor/effects/blur.js +72 -0
- package/dist/multimedia/ImageEditor/effects/crop.js +155 -0
- package/dist/multimedia/ImageEditor/effects/misc.js +162 -0
- package/dist/multimedia/ImageEditor/effects/resize.js +157 -0
- package/dist/multimedia/ImageEditor/effects/rotate.js +33 -0
- package/dist/multimedia/ImageEditor/hooks/useHistoryTool.js +66 -0
- package/dist/multimedia/ImageEditor/hooks/useImageEditor.js +76 -0
- package/dist/multimedia/ImageEditor/hooks/useImageEffects.js +52 -0
- package/dist/multimedia/ImageEditor/utils/aggregate.js +13 -0
- package/dist/{modules/multimedia → multimedia}/ImagePickerWorkspace/ImagePickerWorkspace.d.ts +1 -1
- package/dist/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +39 -0
- package/dist/multimedia/Linker/ExternalLinker.js +45 -0
- package/dist/{modules/multimedia → multimedia}/Linker/InternalLinker.d.ts +1 -1
- package/dist/multimedia/Linker/InternalLinker.js +114 -0
- package/dist/{modules/multimedia → multimedia}/LinkerCard/LinkerCard.d.ts +3 -3
- package/dist/multimedia/LinkerCard/LinkerCard.js +38 -0
- package/dist/multimedia/LinkerCard/index.d.ts +2 -0
- package/dist/{modules/multimedia → multimedia}/MediaLibrary/MediaLibrary.d.ts +2 -2
- package/dist/multimedia/MediaLibrary/MediaLibrary.js +211 -0
- package/dist/{modules/multimedia → multimedia}/MediaLibrary/MediaLibraryContext.d.ts +2 -2
- package/dist/multimedia/MediaLibrary/MediaLibraryContext.js +12 -0
- package/dist/multimedia/MediaLibrary/innertabs/Audio.js +19 -0
- package/dist/multimedia/MediaLibrary/innertabs/ExternalLink.js +17 -0
- package/dist/multimedia/MediaLibrary/innertabs/Iframe.js +14 -0
- package/dist/{modules/multimedia → multimedia}/MediaLibrary/innertabs/InternalLink.d.ts +1 -1
- package/dist/multimedia/MediaLibrary/innertabs/InternalLink.js +35 -0
- package/dist/multimedia/MediaLibrary/innertabs/Upload.js +34 -0
- package/dist/multimedia/MediaLibrary/innertabs/Video.js +22 -0
- package/dist/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +14 -0
- package/dist/multimedia/MediaLibrary/innertabs/Workspace.js +31 -0
- package/dist/multimedia/MediaLibrary/innertabs/index.js +21 -0
- package/dist/{modules/multimedia → multimedia}/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/multimedia/UploadFiles/UploadFiles.js +56 -0
- package/dist/multimedia/VideoEmbed/VideoEmbed.js +77 -0
- package/dist/{modules/multimedia → multimedia}/VideoRecorder/VideoRecorder.d.ts +1 -1
- package/dist/multimedia/VideoRecorder/VideoRecorder.js +259 -0
- package/dist/{modules/multimedia → multimedia}/Workspace/Workspace.d.ts +1 -1
- package/dist/multimedia/Workspace/Workspace.js +169 -0
- package/dist/portal/Header/Badge.js +5 -6
- package/dist/portal/Header/Header.js +138 -138
- package/dist/portal/Header/NavItem.js +11 -12
- package/dist/portal/Header/NavLink.js +14 -15
- package/dist/portal/Header/Navbar.js +9 -10
- package/dist/portal/Header/NavbarNav.js +9 -10
- package/dist/portal/Header/WidgetApps.d.ts +1 -1
- package/dist/portal/Header/WidgetApps.js +16 -17
- package/dist/portal/Help/Help.js +18 -19
- package/dist/portal/Help/hooks/useHelp.js +63 -64
- package/dist/portal/Layout/Layout.js +36 -36
- package/dist/portal/SearchEngine/SearchEngine.js +25 -26
- package/dist/utils/MockedDataProvider/MockedDataProvider.d.ts +1 -1
- package/dist/utils/MockedDataProvider/MockedDataProvider.js +21 -22
- package/dist/utils/StringUtils.js +8 -9
- package/dist/utils/addTimestampToUrl.js +4 -5
- package/dist/utils/blob.js +9 -10
- package/dist/utils/checkUserRight.d.ts +1 -1
- package/dist/utils/checkUserRight.js +27 -28
- package/dist/utils/fileSize.js +5 -6
- package/dist/utils/findTreeNode.js +7 -8
- package/dist/utils/isActionAvailable.d.ts +1 -1
- package/dist/utils/isActionAvailable.js +4 -5
- package/dist/utils/libraryMaps.js +2 -3
- package/dist/utils/noop.js +2 -3
- package/dist/utils/ref.js +8 -9
- package/dist/utils/thumbnail.js +3 -4
- package/dist/utils/time.js +7 -8
- package/dist/utils/treeview.d.ts +1 -1
- package/dist/utils/treeview.js +96 -97
- package/dist/utils/video.js +2 -3
- package/dist/widgets/BookmarkedApps/BookmarkedApps.d.ts +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +6 -7
- package/dist/widgets/Widget/Widget.js +18 -19
- package/package.json +27 -58
- package/dist/audience.js +0 -17
- package/dist/audience.js.map +0 -1
- package/dist/components/ActionBar/ActionBar.js.map +0 -1
- package/dist/components/Alert/Alert.js.map +0 -1
- package/dist/components/AppHeader/AppHeader.js.map +0 -1
- package/dist/components/AppIcon/AppIcon.js.map +0 -1
- package/dist/components/Attachment/Attachment.js.map +0 -1
- package/dist/components/Avatar/Avatar.js.map +0 -1
- package/dist/components/Badge/Badge.js.map +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js.map +0 -1
- package/dist/components/Breadcrumb/BreadcrumbItem.js.map +0 -1
- package/dist/components/Breadcrumb/BreadcrumbList.js.map +0 -1
- package/dist/components/Breadcrumb/BreadcrumbNav.js.map +0 -1
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/IconButton.js.map +0 -1
- package/dist/components/Button/SearchButton.js.map +0 -1
- package/dist/components/Card/Card.js.map +0 -1
- package/dist/components/Card/CardBody.js.map +0 -1
- package/dist/components/Card/CardContext.js.map +0 -1
- package/dist/components/Card/CardFooter.js.map +0 -1
- package/dist/components/Card/CardHeader.js.map +0 -1
- package/dist/components/Card/CardImage.js.map +0 -1
- package/dist/components/Card/CardText.js.map +0 -1
- package/dist/components/Card/CardTitle.js.map +0 -1
- package/dist/components/Card/CardUser.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/ColorPicker/ColorPalette.js.map +0 -1
- package/dist/components/ColorPicker/ColorPicker.js.map +0 -1
- package/dist/components/ColorPicker/ColorPickerItem.js.map +0 -1
- package/dist/components/Combobox/Combobox.js.map +0 -1
- package/dist/components/Combobox/ComboboxTrigger.js.map +0 -1
- package/dist/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/components/Dropdown/DropdownCheckboxItem.js.map +0 -1
- package/dist/components/Dropdown/DropdownContext.js.map +0 -1
- package/dist/components/Dropdown/DropdownItem.js.map +0 -1
- package/dist/components/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/components/Dropdown/DropdownMenuGroup.js.map +0 -1
- package/dist/components/Dropdown/DropdownRadioItem.js.map +0 -1
- package/dist/components/Dropdown/DropdownSeparator.js.map +0 -1
- package/dist/components/Dropdown/DropdownTrigger.js.map +0 -1
- package/dist/components/Dropzone/Dropzone.js.map +0 -1
- package/dist/components/Dropzone/DropzoneContext.js.map +0 -1
- package/dist/components/Dropzone/DropzoneDrag.js.map +0 -1
- package/dist/components/Dropzone/DropzoneFile.js.map +0 -1
- package/dist/components/Dropzone/DropzoneImport.js.map +0 -1
- package/dist/components/EmptyScreen/EmptyScreen.js.map +0 -1
- package/dist/components/FileCard/FileCard.js.map +0 -1
- package/dist/components/FileCard/FileIcon.js.map +0 -1
- package/dist/components/Form/FormContext.js.map +0 -1
- package/dist/components/Form/FormControl.js.map +0 -1
- package/dist/components/Form/FormText.js.map +0 -1
- package/dist/components/Grid/Grid.js.map +0 -1
- 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.map +0 -1
- package/dist/components/ImagePicker/ImagePicker.js.map +0 -1
- package/dist/components/Input/Input.js.map +0 -1
- package/dist/components/Label/Label.js.map +0 -1
- package/dist/components/Loading/Loading.js.map +0 -1
- package/dist/components/LoadingScreen/LoadingScreen.js.map +0 -1
- package/dist/components/Logo/Logo.js.map +0 -1
- package/dist/components/Menu/Menu.js.map +0 -1
- package/dist/components/Menu/MenuButton.js.map +0 -1
- package/dist/components/Menu/MenuContext.js.map +0 -1
- package/dist/components/Menu/MenuItem.js.map +0 -1
- package/dist/components/Modal/Modal.js.map +0 -1
- package/dist/components/Modal/ModalBody.js.map +0 -1
- package/dist/components/Modal/ModalContext.js.map +0 -1
- package/dist/components/Modal/ModalFooter.js.map +0 -1
- package/dist/components/Modal/ModalHeader.js.map +0 -1
- package/dist/components/Modal/ModalSubtitle.js.map +0 -1
- package/dist/components/Popover/Popover.js.map +0 -1
- package/dist/components/Radio/Radio.js.map +0 -1
- package/dist/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/components/Select/Select.js.map +0 -1
- 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.map +0 -1
- package/dist/components/Tabs/TabsContext.js.map +0 -1
- package/dist/components/Tabs/TabsItem.js.map +0 -1
- package/dist/components/Tabs/TabsList.js.map +0 -1
- package/dist/components/Tabs/TabsPanel.js.map +0 -1
- package/dist/components/TextArea/TextArea.js.map +0 -1
- package/dist/components/TextArea/TextareaCounter.js.map +0 -1
- package/dist/components/Toolbar/Toolbar.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/TreeView/TreeItem.js.map +0 -1
- package/dist/components/TreeView/TreeView.js.map +0 -1
- package/dist/components/TreeView/hooks/useTreeItemEvents.js.map +0 -1
- package/dist/components/UploadCard/UploadCard.js.map +0 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js.map +0 -1
- package/dist/core/OdeClientProvider/OdeClientProvider.js.map +0 -1
- package/dist/core/ThemeProvider/ThemeProvider.js.map +0 -1
- package/dist/core/useAvatar/useAvatar.js.map +0 -1
- package/dist/core/useBookmark/useBookmark.js.map +0 -1
- package/dist/core/useConf/useConf.js.map +0 -1
- package/dist/core/useConversation/useConversation.js.map +0 -1
- package/dist/core/useCookiesConsent/useCookiesConsent.js.map +0 -1
- package/dist/core/useDate/useDate.js.map +0 -1
- package/dist/core/useHasWorkflow/useHasWorkflow.js.map +0 -1
- package/dist/core/useHeader/useHeader.js.map +0 -1
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js.map +0 -1
- package/dist/core/useIsAdml/useIsAdml.js.map +0 -1
- package/dist/core/useLibraryUrl/useLibraryUrl.js.map +0 -1
- package/dist/core/useMediaLibrary/useMediaLibrary.js.map +0 -1
- package/dist/core/useOdeIcons/useOdeIcons.js.map +0 -1
- package/dist/core/usePaths/usePaths.js.map +0 -1
- package/dist/core/usePreferences/usePreferences.js.map +0 -1
- package/dist/core/useResource/useResource.js.map +0 -1
- package/dist/core/useResourceSearch/useResourceSearch.js.map +0 -1
- package/dist/core/useSession/useSession.js.map +0 -1
- package/dist/core/useTrashedResource/useTrashedResource.js.map +0 -1
- package/dist/core/useUpload/useUpload.js.map +0 -1
- package/dist/core/useUploadFiles/useUploadFiles.js.map +0 -1
- package/dist/core/useUser/useUser.js.map +0 -1
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js.map +0 -1
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js.map +0 -1
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js.map +0 -1
- 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.map +0 -1
- package/dist/hooks/useClickOutside/useClickOutside.js.map +0 -1
- package/dist/hooks/useDebounce/useDebounce.js.map +0 -1
- package/dist/hooks/useDropdown/useDropdown.js.map +0 -1
- package/dist/hooks/useDropzone/useDropzone.js.map +0 -1
- package/dist/hooks/useHover/useHover.js.map +0 -1
- package/dist/hooks/useImage/useImage.js.map +0 -1
- package/dist/hooks/useImageResizer/useImageResizer.js.map +0 -1
- package/dist/hooks/useKeyPress/useKeyPress.js.map +0 -1
- package/dist/hooks/useScrollToTop/useScrollToTop.js.map +0 -1
- package/dist/hooks/useThumbnail/useThumbnail.js.map +0 -1
- package/dist/hooks/useTitle/useTitle.js.map +0 -1
- package/dist/hooks/useToast/useToast.js.map +0 -1
- package/dist/hooks/useToggle/useToggle.js.map +0 -1
- 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.js +0 -34
- package/dist/modules/audience/ReactionChoice.js.map +0 -1
- package/dist/modules/audience/ReactionModal.Card.js +0 -35
- package/dist/modules/audience/ReactionModal.Card.js.map +0 -1
- package/dist/modules/audience/ReactionModal.js +0 -73
- package/dist/modules/audience/ReactionModal.js.map +0 -1
- package/dist/modules/audience/ReactionSummary.js +0 -28
- package/dist/modules/audience/ReactionSummary.js.map +0 -1
- 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.js +0 -41
- package/dist/modules/audience/ViewsModal.js.map +0 -1
- 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.js +0 -36
- package/dist/modules/audience/hooks/useReactions.js.map +0 -1
- 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.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.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.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.js +0 -107
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js.map +0 -1
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js.map +0 -1
- 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.js +0 -64
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js.map +0 -1
- 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.js +0 -18
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js.map +0 -1
- 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/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/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/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.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.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.js +0 -115
- package/dist/modules/multimedia/Linker/InternalLinker.js.map +0 -1
- 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.js +0 -212
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js.map +0 -1
- 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.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.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.js +0 -260
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js.map +0 -1
- 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.map +0 -1
- package/dist/portal/Header/Header.js.map +0 -1
- package/dist/portal/Header/NavItem.js.map +0 -1
- package/dist/portal/Header/NavLink.js.map +0 -1
- package/dist/portal/Header/Navbar.js.map +0 -1
- package/dist/portal/Header/NavbarNav.js.map +0 -1
- package/dist/portal/Header/WidgetApps.js.map +0 -1
- package/dist/portal/Help/Help.js.map +0 -1
- package/dist/portal/Help/hooks/useHelp.js.map +0 -1
- package/dist/portal/Layout/Layout.js.map +0 -1
- package/dist/portal/SearchEngine/SearchEngine.js.map +0 -1
- package/dist/utils/MockedDataProvider/MockedDataProvider.js.map +0 -1
- package/dist/utils/StringUtils.js.map +0 -1
- package/dist/utils/addTimestampToUrl.js.map +0 -1
- package/dist/utils/blob.js.map +0 -1
- package/dist/utils/checkUserRight.js.map +0 -1
- package/dist/utils/fileSize.js.map +0 -1
- package/dist/utils/findTreeNode.js.map +0 -1
- package/dist/utils/isActionAvailable.js.map +0 -1
- package/dist/utils/libraryMaps.js.map +0 -1
- package/dist/utils/noop.js.map +0 -1
- package/dist/utils/ref.js.map +0 -1
- package/dist/utils/thumbnail.js.map +0 -1
- package/dist/utils/time.js.map +0 -1
- package/dist/utils/treeview.js.map +0 -1
- package/dist/utils/video.js.map +0 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js.map +0 -1
- 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 +0,0 @@
|
|
|
1
|
-
export { default as BubbleMenuEditImage } from './BubbleMenuEditImage';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { WorkspaceVisibility } from '@edifice.io/ts-client';
|
|
2
|
-
import { Content, FocusPosition, JSONContent } from '@tiptap/react';
|
|
3
|
-
export interface EditorRef {
|
|
4
|
-
/** Get the current content. */
|
|
5
|
-
getContent: (as: 'html' | 'json' | 'plain') => undefined | string | JSONContent;
|
|
6
|
-
/** Get speech synthetisis current state */
|
|
7
|
-
isSpeeching: () => boolean;
|
|
8
|
-
/** [De]activate speech synthetisis */
|
|
9
|
-
toogleSpeechSynthetisis: () => boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Editor component properties
|
|
13
|
-
*/
|
|
14
|
-
export interface EditorProps {
|
|
15
|
-
/**
|
|
16
|
-
* (Optional) id of the HTML element.
|
|
17
|
-
* Useful with an external `<FormControl id=...><Label/>`.
|
|
18
|
-
*/
|
|
19
|
-
id?: string;
|
|
20
|
-
/** Rich content to render. */
|
|
21
|
-
content: Content;
|
|
22
|
-
/**
|
|
23
|
-
* Rendering mode : `edit` to allow content modifications, or `read` (default)
|
|
24
|
-
* Switching to `edit` mode will also render the toolbar
|
|
25
|
-
* (unless `toolbar` property is `none`).
|
|
26
|
-
*/
|
|
27
|
-
mode?: 'edit' | 'read';
|
|
28
|
-
/** Toolbar to display in `edit` mode. */
|
|
29
|
-
toolbar?: 'full' | 'none';
|
|
30
|
-
/** Display with or without a border */
|
|
31
|
-
variant?: 'outline' | 'ghost';
|
|
32
|
-
/** Set focus position to the editor */
|
|
33
|
-
focus?: FocusPosition;
|
|
34
|
-
/** Editor placeholder content */
|
|
35
|
-
placeholder?: string;
|
|
36
|
-
/** Visibility of the content created
|
|
37
|
-
* this will impact where the uploaded files will be upload and the availability of the public media files */
|
|
38
|
-
visibility?: WorkspaceVisibility;
|
|
39
|
-
/** Function to listen if content change */
|
|
40
|
-
onContentChange?: ({ editor }: {
|
|
41
|
-
editor: any;
|
|
42
|
-
}) => void;
|
|
43
|
-
}
|
|
44
|
-
declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<EditorRef>>;
|
|
45
|
-
export default Editor;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as M, useId as k, useImperativeHandle as v, Suspense as H, lazy as h } from "react";
|
|
3
|
-
import "@edifice.io/tiptap-extensions";
|
|
4
|
-
import { EditorContent as j } from "@tiptap/react";
|
|
5
|
-
import f from "clsx";
|
|
6
|
-
import { useMathsStyles as N } from "../../hooks/useMathsStyles.js";
|
|
7
|
-
import { useTipTapEditor as R } from "../../hooks/useTipTapEditor.js";
|
|
8
|
-
import { useMediaLibraryEditor as z } from "../../hooks/useMediaLibraryEditor.js";
|
|
9
|
-
import { useMathsModal as A } from "../../hooks/useMathsModal.js";
|
|
10
|
-
import { useImageModal as B } from "../../hooks/useImageModal.js";
|
|
11
|
-
import { useLinkToolbar as J } from "../../hooks/useLinkToolbar.js";
|
|
12
|
-
import { useSpeechSynthetisis as P } from "../../hooks/useSpeechSynthetisis.js";
|
|
13
|
-
import { EditorContext as U } from "../../hooks/useEditorContext.js";
|
|
14
|
-
import { EditorToolbar as $ } from "../EditorToolbar/EditorToolbar.js";
|
|
15
|
-
import q from "../Toolbar/LinkToolbar.js";
|
|
16
|
-
import D from "../Toolbar/TableToolbar.js";
|
|
17
|
-
import F from "../BubbleMenuEditImage/BubbleMenuEditImage.js";
|
|
18
|
-
import G from "../../../multimedia/MediaLibrary/MediaLibrary.js";
|
|
19
|
-
import { useOdeClient as K } from "../../../../core/OdeClientProvider/OdeClientProvider.js";
|
|
20
|
-
import { LoadingScreen as Q } from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
21
|
-
const V = /* @__PURE__ */ h(async () => await import("./MathsModal.js")), W = /* @__PURE__ */ h(async () => await import("../../../multimedia/ImageEditor/components/ImageEditor.js")), be = /* @__PURE__ */ M(({
|
|
22
|
-
id: s,
|
|
23
|
-
content: b,
|
|
24
|
-
mode: g = "read",
|
|
25
|
-
toolbar: E = "full",
|
|
26
|
-
variant: a = "outline",
|
|
27
|
-
focus: y = "start",
|
|
28
|
-
placeholder: I = "",
|
|
29
|
-
visibility: m = "protected",
|
|
30
|
-
onContentChange: S
|
|
31
|
-
}, T) => {
|
|
32
|
-
const l = k(), {
|
|
33
|
-
appCode: p
|
|
34
|
-
} = K(), {
|
|
35
|
-
editor: e,
|
|
36
|
-
editable: o
|
|
37
|
-
} = R(g === "edit", b, y, I, S), {
|
|
38
|
-
ref: n,
|
|
39
|
-
...C
|
|
40
|
-
} = z(e), {
|
|
41
|
-
toggle: L,
|
|
42
|
-
...c
|
|
43
|
-
} = A(e), r = B(e, "media-library", m), x = J(e, n), d = P(e);
|
|
44
|
-
if (N(), v(T, () => ({
|
|
45
|
-
getContent: (u) => {
|
|
46
|
-
switch (u) {
|
|
47
|
-
case "html":
|
|
48
|
-
return e == null ? void 0 : e.getHTML();
|
|
49
|
-
case "json":
|
|
50
|
-
return e == null ? void 0 : e.getJSON();
|
|
51
|
-
case "plain":
|
|
52
|
-
return e == null ? void 0 : e.getText();
|
|
53
|
-
default:
|
|
54
|
-
throw new Error(`[Editor] Unknown content format ${u}`);
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
toogleSpeechSynthetisis: d.toggle,
|
|
58
|
-
isSpeeching: () => d.isActivated
|
|
59
|
-
})), !e) return null;
|
|
60
|
-
const w = f(a === "outline" && "border rounded-3"), O = f(a === "outline" && "py-12 px-16");
|
|
61
|
-
return /* @__PURE__ */ i(U.Provider, { value: {
|
|
62
|
-
id: s ?? l,
|
|
63
|
-
appCode: p,
|
|
64
|
-
editor: e,
|
|
65
|
-
editable: o
|
|
66
|
-
}, children: [
|
|
67
|
-
/* @__PURE__ */ i("div", { className: w, children: [
|
|
68
|
-
E !== "none" && o && /* @__PURE__ */ t($, { mediaLibraryRef: n, toggleMathsModal: L }),
|
|
69
|
-
/* @__PURE__ */ t(j, { id: s ?? l, editor: e, className: O })
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ t(q, { editor: e, ...x }),
|
|
72
|
-
/* @__PURE__ */ t(D, { editor: e }),
|
|
73
|
-
e && /* @__PURE__ */ t(F, { editor: e, onEditImage: r.handleEdit, openEditImage: r.isOpen, editable: o }),
|
|
74
|
-
/* @__PURE__ */ i(H, { fallback: /* @__PURE__ */ t(Q, {}), children: [
|
|
75
|
-
o && /* @__PURE__ */ t(G, { appCode: p, visibility: m, multiple: !0, ref: n, ...C }),
|
|
76
|
-
o && c.isOpen && /* @__PURE__ */ t(V, { ...c }),
|
|
77
|
-
o && (r == null ? void 0 : r.isOpen) && (r == null ? void 0 : r.currentImage) && /* @__PURE__ */ t(W, { altText: r == null ? void 0 : r.currentImage.alt, legend: r == null ? void 0 : r.currentImage.title, image: r == null ? void 0 : r.currentImage.src, isOpen: r.isOpen, onCancel: r.handleCancel, onSave: r.handleSave, onError: console.error })
|
|
78
|
-
] })
|
|
79
|
-
] });
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
be as default
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=Editor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.js","sources":["../../../../../src/modules/editor/components/Editor/Editor.tsx"],"sourcesContent":["import {\n Ref,\n Suspense,\n forwardRef,\n lazy,\n useId,\n useImperativeHandle,\n} from 'react';\n\nimport '@edifice.io/tiptap-extensions';\nimport { WorkspaceVisibility } from '@edifice.io/ts-client';\nimport {\n Content,\n EditorContent,\n FocusPosition,\n JSONContent,\n} from '@tiptap/react';\nimport clsx from 'clsx';\n\nimport {\n BubbleMenuEditImage,\n EditorContext,\n EditorToolbar,\n LinkToolbar,\n TableToolbar,\n useImageModal,\n useLinkToolbar,\n useMathsModal,\n useMediaLibraryEditor,\n useSpeechSynthetisis,\n useTipTapEditor,\n} from '../..';\nimport { LoadingScreen, useOdeClient } from '../../../..';\nimport { MediaLibrary } from '../../../multimedia';\nimport { useMathsStyles } from '../../hooks/useMathsStyles';\n\nconst MathsModal = lazy(async () => await import('./MathsModal'));\nconst ImageEditor = lazy(\n async () =>\n await import('../../../multimedia/ImageEditor/components/ImageEditor'),\n);\n\nexport interface EditorRef {\n /** Get the current content. */\n getContent: (\n as: 'html' | 'json' | 'plain',\n ) => undefined | string | JSONContent;\n\n /** Get speech synthetisis current state */\n isSpeeching: () => boolean;\n /** [De]activate speech synthetisis */\n toogleSpeechSynthetisis: () => boolean;\n}\n\n/**\n * Editor component properties\n */\nexport interface EditorProps {\n /**\n * (Optional) id of the HTML element.\n * Useful with an external `<FormControl id=...><Label/>`.\n */\n id?: string;\n /** Rich content to render. */\n content: Content;\n /**\n * Rendering mode : `edit` to allow content modifications, or `read` (default)\n * Switching to `edit` mode will also render the toolbar\n * (unless `toolbar` property is `none`).\n */\n mode?: 'edit' | 'read' /* | \"preview\" */;\n /** Toolbar to display in `edit` mode. */\n toolbar?: 'full' | 'none';\n /** Display with or without a border */\n variant?: 'outline' | 'ghost';\n /** Set focus position to the editor */\n focus?: FocusPosition;\n /** Editor placeholder content */\n placeholder?: string;\n /** Visibility of the content created\n * this will impact where the uploaded files will be upload and the availability of the public media files */\n visibility?: WorkspaceVisibility;\n /** Function to listen if content change */\n onContentChange?: ({ editor }: { editor: any }) => void;\n}\n\nconst Editor = forwardRef(\n (\n {\n id,\n content,\n mode = 'read',\n toolbar = 'full',\n variant = 'outline',\n focus = 'start',\n placeholder = '',\n visibility = 'protected',\n onContentChange,\n }: EditorProps,\n ref: Ref<EditorRef>,\n ) => {\n const editorId = useId();\n const { appCode } = useOdeClient();\n const { editor, editable } = useTipTapEditor(\n mode === 'edit',\n content,\n focus,\n placeholder,\n onContentChange,\n );\n const { ref: mediaLibraryModalRef, ...mediaLibraryModalHandlers } =\n useMediaLibraryEditor(editor);\n const { toggle: toggleMathsModal, ...mathsModalHandlers } =\n useMathsModal(editor);\n const imageModal = useImageModal(editor, 'media-library', visibility);\n const linkToolbarHandlers = useLinkToolbar(editor, mediaLibraryModalRef);\n const speechSynthetisis = useSpeechSynthetisis(editor);\n\n useMathsStyles();\n\n //----- Editor API\n useImperativeHandle(ref, () => ({\n getContent: (as: 'html' | 'json' | 'plain') => {\n switch (as) {\n case 'html':\n return editor?.getHTML();\n case 'json':\n return editor?.getJSON();\n case 'plain':\n return editor?.getText();\n default:\n throw new Error(`[Editor] Unknown content format ${as}`);\n }\n },\n toogleSpeechSynthetisis: speechSynthetisis.toggle,\n isSpeeching: () => speechSynthetisis.isActivated,\n }));\n\n if (!editor) return null;\n\n const borderClass = clsx(variant === 'outline' && 'border rounded-3');\n const contentClass = clsx(variant === 'outline' && 'py-12 px-16');\n\n return (\n <EditorContext.Provider\n value={{\n id: id ?? editorId,\n appCode,\n editor,\n editable,\n }}\n >\n <div className={borderClass}>\n {toolbar !== 'none' && editable && (\n <EditorToolbar\n {...{\n mediaLibraryRef: mediaLibraryModalRef,\n toggleMathsModal: toggleMathsModal,\n }}\n />\n )}\n <EditorContent\n id={id ?? editorId}\n editor={editor}\n className={contentClass}\n />\n </div>\n\n <LinkToolbar editor={editor} {...linkToolbarHandlers} />\n\n <TableToolbar editor={editor} />\n\n {editor && (\n <BubbleMenuEditImage\n editor={editor}\n onEditImage={imageModal.handleEdit}\n openEditImage={imageModal.isOpen}\n editable={editable}\n />\n )}\n\n <Suspense fallback={<LoadingScreen />}>\n {editable && (\n <MediaLibrary\n appCode={appCode}\n visibility={visibility}\n multiple={true}\n ref={mediaLibraryModalRef}\n {...mediaLibraryModalHandlers}\n />\n )}\n\n {editable && mathsModalHandlers.isOpen && (\n <MathsModal {...mathsModalHandlers} />\n )}\n\n {editable && imageModal?.isOpen && imageModal?.currentImage && (\n <ImageEditor\n altText={imageModal?.currentImage.alt}\n legend={imageModal?.currentImage.title}\n image={imageModal?.currentImage.src}\n isOpen={imageModal.isOpen}\n onCancel={imageModal.handleCancel}\n onSave={imageModal.handleSave}\n onError={console.error}\n />\n )}\n </Suspense>\n </EditorContext.Provider>\n );\n },\n);\n\nexport default Editor;\n"],"names":["MathsModal","lazy","ImageEditor","Editor","id","content","mode","toolbar","variant","focus","placeholder","visibility","onContentChange","ref","editorId","useId","appCode","useOdeClient","editor","editable","useTipTapEditor","mediaLibraryModalRef","mediaLibraryModalHandlers","useMediaLibraryEditor","toggle","toggleMathsModal","mathsModalHandlers","useMathsModal","imageModal","useImageModal","linkToolbarHandlers","useLinkToolbar","speechSynthetisis","useSpeechSynthetisis","useMathsStyles","useImperativeHandle","getContent","as","getHTML","getJSON","getText","Error","toogleSpeechSynthetisis","isSpeeching","isActivated","borderClass","clsx","contentClass","jsxs","EditorContext","jsx","EditorToolbar","mediaLibraryRef","EditorContent","LinkToolbar","TableToolbar","BubbleMenuEditImage","handleEdit","isOpen","Suspense","LoadingScreen","MediaLibrary","currentImage","alt","title","src","handleCancel","handleSave","console","error"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoCA,MAAMA,IAAkB,gBAAAC,EAAA,YAAY,MAAM,OAAO,iBAAc,CAAC,GAC1DC,IACJ,gBAAAD,EAAA,YACE,MAAM,OAAO,2DAAwD,CACzE,GA8CME,uBACJ,CACE;AAAA,EACEC,IAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,MAAAA,IAAO;AAAA,EACPC,SAAAA,IAAU;AAAA,EACVC,SAAAA,IAAU;AAAA,EACVC,OAAAA,IAAQ;AAAA,EACRC,aAAAA,IAAc;AAAA,EACdC,YAAAA,IAAa;AAAA,EACbC,iBAAAA;AACW,GACbC,MACG;AACH,QAAMC,IAAWC,KACX;AAAA,IAAEC,SAAAA;AAAAA,MAAYC,EAAa,GAC3B;AAAA,IAAEC,QAAAA;AAAAA,IAAQC,UAAAA;AAAAA,EAAAA,IAAaC,EAC3Bd,MAAS,QACTD,GACAI,GACAC,GACAE,CACF,GACM;AAAA,IAAEC,KAAKQ;AAAAA,IAAsB,GAAGC;AAAAA,EAAAA,IACpCC,EAAsBL,CAAM,GACxB;AAAA,IAAEM,QAAQC;AAAAA,IAAkB,GAAGC;AAAAA,EAAAA,IACnCC,EAAcT,CAAM,GAChBU,IAAaC,EAAcX,GAAQ,iBAAiBP,CAAU,GAC9DmB,IAAsBC,EAAeb,GAAQG,CAAoB,GACjEW,IAAoBC,EAAqBf,CAAM;AAsBjD,MApBWgB,KAGfC,EAAoBtB,GAAK,OAAO;AAAA,IAC9BuB,YAAYA,CAACC,MAAkC;AAC7C,cAAQA,GAAE;AAAA,QACR,KAAK;AACH,iBAAOnB,KAAAA,gBAAAA,EAAQoB;AAAAA,QACjB,KAAK;AACH,iBAAOpB,KAAAA,gBAAAA,EAAQqB;AAAAA,QACjB,KAAK;AACH,iBAAOrB,KAAAA,gBAAAA,EAAQsB;AAAAA,QACjB;AACE,gBAAM,IAAIC,MAAM,mCAAmCJ,CAAE,EAAE;AAAA,MAC3D;AAAA,IACF;AAAA,IACAK,yBAAyBV,EAAkBR;AAAAA,IAC3CmB,aAAaA,MAAMX,EAAkBY;AAAAA,EACrC,EAAA,GAEE,CAAC1B,EAAe,QAAA;AAEpB,QAAM2B,IAAcC,EAAKtC,MAAY,aAAa,kBAAkB,GAC9DuC,IAAeD,EAAKtC,MAAY,aAAa,aAAa;AAEhE,SACG,gBAAAwC,EAAAC,EAAc,UAAd,EACC,OAAO;AAAA,IACL7C,IAAIA,KAAMU;AAAAA,IACVE,SAAAA;AAAAA,IACAE,QAAAA;AAAAA,IACAC,UAAAA;AAAAA,EAGF,GAAA,UAAA;AAAA,IAAC,gBAAA6B,EAAA,OAAA,EAAI,WAAWH,GACbtC,UAAAA;AAAAA,MAAAA,MAAY,UAAUY,KACpB,gBAAA+B,EAAAC,GAAA,EAEGC,iBAAiB/B,GACjBI,kBAAAA,GAGL;AAAA,wBACA4B,GACC,EAAA,IAAIjD,KAAMU,GACV,QAAAI,GACA,WAAW6B,GAAa;AAAA,IAAA,GAE5B;AAAA,IAEC,gBAAAG,EAAAI,GAAA,EAAY,QAAApC,GAAoBY,GAAAA,EAAoB,CAAA;AAAA,IAErD,gBAAAoB,EAACK,KAAa,QAAArC,GAAe;AAAA,IAE5BA,KACE,gBAAAgC,EAAAM,GAAA,EACC,QAAAtC,GACA,aAAaU,EAAW6B,YACxB,eAAe7B,EAAW8B,QAC1B,UAAAvC,EAEH,CAAA;AAAA,IAEA,gBAAA6B,EAAAW,GAAA,EAAS,UAAU,gBAAAT,EAACU,KAAa,GAC/BzC,UAAAA;AAAAA,MACCA,KAAA,gBAAA+B,EAACW,KACC,SAAA7C,GACA,YAAAL,GACA,UAAU,IACV,KAAKU,GACDC,GAAAA,EAEP,CAAA;AAAA,MAEAH,KAAYO,EAAmBgC,UAC7B,gBAAAR,EAAAlD,GAAA,EAAe0B,GAAAA,GACjB;AAAA,MAEAP,MAAYS,KAAAA,gBAAAA,EAAY8B,YAAU9B,KAAAA,gBAAAA,EAAYkC,iBAC7C,gBAAAZ,EAAChD,GACC,EAAA,SAAS0B,KAAAA,gBAAAA,EAAYkC,aAAaC,KAClC,QAAQnC,KAAAA,gBAAAA,EAAYkC,aAAaE,OACjC,OAAOpC,KAAAA,gBAAAA,EAAYkC,aAAaG,KAChC,QAAQrC,EAAW8B,QACnB,UAAU9B,EAAWsC,cACrB,QAAQtC,EAAWuC,YACnB,SAASC,QAAQC,OAEpB;AAAA,IAAA,GACH;AAAA,EACF,EAAA,CAAA;AAEJ,CACF;"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as b, useEffect as $ } from "react";
|
|
3
|
-
import x from "@tiptap-pro/extension-mathematics";
|
|
4
|
-
import { useEditor as E, EditorContent as C } from "@tiptap/react";
|
|
5
|
-
import M from "@tiptap/starter-kit";
|
|
6
|
-
import { createPortal as g } from "react-dom";
|
|
7
|
-
import { useTranslation as w } from "react-i18next";
|
|
8
|
-
import { Modal as a } from "../../../../components/Modal/Modal.js";
|
|
9
|
-
import { Button as c } from "../../../../components/Button/Button.js";
|
|
10
|
-
const j = ({
|
|
11
|
-
isOpen: h,
|
|
12
|
-
onSuccess: l,
|
|
13
|
-
onCancel: o
|
|
14
|
-
}) => {
|
|
15
|
-
const i = "\\frac{-b + \\sqrt{b^2 - 4ac}}{2a}", [m, d] = b(`$${i}$`), {
|
|
16
|
-
t: e
|
|
17
|
-
} = w(), t = E({
|
|
18
|
-
extensions: [M, x],
|
|
19
|
-
content: "",
|
|
20
|
-
editable: !1
|
|
21
|
-
});
|
|
22
|
-
$(() => {
|
|
23
|
-
t == null || t.commands.setContent(m), t == null || t.commands.enter();
|
|
24
|
-
}, [t, m]);
|
|
25
|
-
const f = (u) => {
|
|
26
|
-
const s = u.target.value.replaceAll(`
|
|
27
|
-
`, "$<br/>$");
|
|
28
|
-
s ? (t == null || t.commands.setContent(`$${s}$`), d(`$${s}$`)) : (t == null || t.commands.setContent(""), d("")), t == null || t.commands.enter();
|
|
29
|
-
}, p = () => {
|
|
30
|
-
o == null || o();
|
|
31
|
-
};
|
|
32
|
-
return /* @__PURE__ */ g(/* @__PURE__ */ n(a, { id: "MathsModal", isOpen: h, onModalClose: p, children: [
|
|
33
|
-
/* @__PURE__ */ r(a.Header, { onModalClose: p, children: e("tiptap.maths.title") }),
|
|
34
|
-
/* @__PURE__ */ n(a.Subtitle, { children: [
|
|
35
|
-
e("tiptap.maths.subtitle.1"),
|
|
36
|
-
/* @__PURE__ */ r("a", { href: e("https://fr.wikibooks.org/wiki/LaTeX/%C3%89crire_des_math%C3%A9matiques"), target: "_blank", rel: "noreferrer", children: e("tiptap.maths.subtitle.2") })
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ n(a.Body, { children: [
|
|
39
|
-
/* @__PURE__ */ r("textarea", { id: "formulaTextArea", name: "formula", rows: 4, cols: 50, onChange: f, placeholder: `Exemple : ${i}`, className: "border rounded-3 w-100 px-16 py-12" }),
|
|
40
|
-
/* @__PURE__ */ r(C, { editor: t, className: "pt-24 pb-0 text-center fs-1" })
|
|
41
|
-
] }),
|
|
42
|
-
/* @__PURE__ */ n(a.Footer, { children: [
|
|
43
|
-
/* @__PURE__ */ r(c, { color: "tertiary", onClick: o, type: "button", variant: "ghost", children: e("tiptap.maths.cancel") }),
|
|
44
|
-
/* @__PURE__ */ r(c, { color: "primary", onClick: () => l == null ? void 0 : l(m), type: "button", variant: "filled", children: e("tiptap.maths.add") })
|
|
45
|
-
] })
|
|
46
|
-
] }), document.getElementById("portal"));
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
j as default
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=MathsModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MathsModal.js","sources":["../../../../../src/modules/editor/components/Editor/MathsModal.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport Mathematics from '@tiptap-pro/extension-mathematics';\nimport { Editor, EditorContent, useEditor } from '@tiptap/react';\nimport StarterKit from '@tiptap/starter-kit';\nimport { createPortal } from 'react-dom';\nimport { useTranslation } from 'react-i18next';\nimport { Button, Modal } from '../../../..';\n\ninterface ModalProps {\n isOpen: boolean;\n onSuccess?: (formulaEditor: string) => void;\n onCancel?: () => void;\n}\n\nconst MathsModal = ({ isOpen, onSuccess, onCancel }: ModalProps) => {\n const FORMULA_PLACEHOLDER = '\\\\frac{-b + \\\\sqrt{b^2 - 4ac}}{2a}';\n const [formulaEditor, setFormulaEditor] = useState<string>(\n `$${FORMULA_PLACEHOLDER}$`,\n );\n\n const { t } = useTranslation();\n\n const editor: Editor | null = useEditor({\n extensions: [StarterKit, Mathematics],\n content: ``,\n editable: false,\n });\n\n useEffect(() => {\n editor?.commands.setContent(formulaEditor);\n editor?.commands.enter();\n return;\n }, [editor, formulaEditor]);\n\n const handleChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n const newFormulaTextarea: string = event.target.value;\n const newFormulaEditor = newFormulaTextarea.replaceAll('\\n', '$<br/>$');\n // replace editor content\n if (newFormulaEditor) {\n editor?.commands.setContent(`$${newFormulaEditor}$`);\n setFormulaEditor(`$${newFormulaEditor}$`);\n } else {\n editor?.commands.setContent('');\n setFormulaEditor('');\n }\n editor?.commands.enter();\n };\n\n const handleOnCancel = () => {\n onCancel?.();\n };\n\n return createPortal(\n <Modal id=\"MathsModal\" isOpen={isOpen} onModalClose={handleOnCancel}>\n <Modal.Header onModalClose={handleOnCancel}>\n {t('tiptap.maths.title')}\n </Modal.Header>\n <Modal.Subtitle>\n {t('tiptap.maths.subtitle.1')}\n <a\n href={t(\n 'https://fr.wikibooks.org/wiki/LaTeX/%C3%89crire_des_math%C3%A9matiques',\n )}\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {t('tiptap.maths.subtitle.2')}\n </a>\n </Modal.Subtitle>\n <Modal.Body>\n <textarea\n id=\"formulaTextArea\"\n name=\"formula\"\n rows={4}\n cols={50}\n onChange={handleChange}\n placeholder={`Exemple : ${FORMULA_PLACEHOLDER}`}\n className=\"border rounded-3 w-100 px-16 py-12\"\n ></textarea>\n <EditorContent\n editor={editor}\n className=\"pt-24 pb-0 text-center fs-1\"\n />\n </Modal.Body>\n <Modal.Footer>\n <Button\n color=\"tertiary\"\n onClick={onCancel}\n type=\"button\"\n variant=\"ghost\"\n >\n {t('tiptap.maths.cancel')}\n </Button>\n <Button\n color=\"primary\"\n onClick={() => onSuccess?.(formulaEditor)}\n type=\"button\"\n variant=\"filled\"\n >\n {t('tiptap.maths.add')}\n </Button>\n </Modal.Footer>\n </Modal>,\n document.getElementById('portal') as HTMLElement,\n );\n};\n\nexport default MathsModal;\n"],"names":["MathsModal","isOpen","onSuccess","onCancel","FORMULA_PLACEHOLDER","formulaEditor","setFormulaEditor","useState","t","useTranslation","editor","useEditor","extensions","StarterKit","Mathematics","content","editable","useEffect","commands","setContent","enter","handleChange","event","newFormulaEditor","target","value","replaceAll","handleOnCancel","jsxs","Modal","jsx","EditorContent","Button","document","getElementById"],"mappings":";;;;;;;;;AAeA,MAAMA,IAAaA,CAAC;AAAA,EAAEC,QAAAA;AAAAA,EAAQC,WAAAA;AAAAA,EAAWC,UAAAA;AAAqB,MAAM;AAClE,QAAMC,IAAsB,sCACtB,CAACC,GAAeC,CAAgB,IAAIC,EACxC,IAAIH,CAAmB,GACzB,GAEM;AAAA,IAAEI,GAAAA;AAAAA,MAAMC,EAAe,GAEvBC,IAAwBC,EAAU;AAAA,IACtCC,YAAY,CAACC,GAAYC,CAAW;AAAA,IACpCC,SAAS;AAAA,IACTC,UAAU;AAAA,EAAA,CACX;AAEDC,EAAAA,EAAU,MAAM;AACNC,IAAAA,KAAAA,QAAAA,EAAAA,SAASC,WAAWd,IAC5BK,KAAAA,QAAAA,EAAQQ,SAASE;AAAAA,EACjB,GACC,CAACV,GAAQL,CAAa,CAAC;AAEpBgB,QAAAA,IAAeA,CAACC,MAAkD;AAEtE,UAAMC,IAD6BD,EAAME,OAAOC,MACJC,WAAW;AAAA,GAAM,SAAS;AAEtE,IAAIH,KACFb,KAAAA,QAAAA,EAAQQ,SAASC,WAAW,IAAII,CAAgB,MAC/BjB,EAAA,IAAIiB,CAAgB,GAAG,MAEhCL,KAAAA,QAAAA,EAAAA,SAASC,WAAW,KAC5Bb,EAAiB,EAAE,IAErBI,KAAAA,QAAAA,EAAQQ,SAASE;AAAAA,EAAM,GAGnBO,IAAiBA,MAAM;AAChB,IAAAxB,KAAA,QAAAA;AAAA,EAAA;AAGb,2BACG,gBAAAyB,EAAAC,GAAA,EAAM,IAAG,cAAa,QAAA5B,GAAgB,cAAc0B,GACnD,UAAA;AAAA,IAAA,gBAAAG,EAACD,EAAM,QAAN,EAAa,cAAcF,GACzBnB,UAAAA,EAAE,oBAAoB,GACzB;AAAA,IACA,gBAAAoB,EAACC,EAAM,UAAN,EACErB,UAAAA;AAAAA,MAAAA,EAAE,yBAAyB;AAAA,MAC3B,gBAAAsB,EAAA,KAAA,EACC,MAAMtB,EACJ,wEACF,GACA,QAAO,UACP,KAAI,cAEHA,UAAEA,EAAA,yBAAyB,EAC9B,CAAA;AAAA,IAAA,GACF;AAAA,IACA,gBAAAoB,EAACC,EAAM,MAAN,EACC,UAAA;AAAA,MAAA,gBAAAC,EAAC,cACC,IAAG,mBACH,MAAK,WACL,MAAM,GACN,MAAM,IACN,UAAUT,GACV,aAAa,aAAajB,CAAmB,IAC7C,WAAU,sCACX;AAAA,MACA,gBAAA0B,EAAAC,GAAA,EACC,QAAArB,GACA,WAAU,8BAA6B,CAAA;AAAA,IAAA,GAE3C;AAAA,IACA,gBAAAkB,EAACC,EAAM,QAAN,EACC,UAAA;AAAA,MAAC,gBAAAC,EAAAE,GAAA,EACC,OAAM,YACN,SAAS7B,GACT,MAAK,UACL,SAAQ,SAEPK,UAAEA,EAAA,qBAAqB,EAC1B,CAAA;AAAA,MACC,gBAAAsB,EAAAE,GAAA,EACC,OAAM,WACN,SAAS,MAAM9B,KAAAA,gBAAAA,EAAYG,IAC3B,MAAK,UACL,SAAQ,UAEPG,UAAAA,EAAE,kBAAkB,GACvB;AAAA,IAAA,GACF;AAAA,EAAA,EAAA,CACF,GACAyB,SAASC,eAAe,QAAQ,CAClC;AACF;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactNode, RefAttributes } from 'react';
|
|
2
|
-
import { DropdownMenuOptions, IconButtonProps } from '../../../..';
|
|
3
|
-
interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* Props for the trigger
|
|
6
|
-
*/
|
|
7
|
-
triggerProps: JSX.IntrinsicAttributes & Omit<IconButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>;
|
|
8
|
-
/**
|
|
9
|
-
* Menu icon
|
|
10
|
-
*/
|
|
11
|
-
icon: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Menu label (for accessibility)
|
|
14
|
-
*/
|
|
15
|
-
ariaLabel: string;
|
|
16
|
-
/**
|
|
17
|
-
* Options to display
|
|
18
|
-
*/
|
|
19
|
-
options: DropdownMenuOptions[];
|
|
20
|
-
}
|
|
21
|
-
export declare const EditorToolbarDropdownMenu: ({ triggerProps, icon, ariaLabel, options, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, Fragment as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Fragment as p } from "react";
|
|
3
|
-
import { Tooltip as d } from "../../../../components/Tooltip/Tooltip.js";
|
|
4
|
-
import { IconButton as s } from "../../../../components/Button/IconButton.js";
|
|
5
|
-
import { Dropdown as t } from "../../../../components/Dropdown/Dropdown.js";
|
|
6
|
-
const x = ({
|
|
7
|
-
triggerProps: n,
|
|
8
|
-
icon: i,
|
|
9
|
-
ariaLabel: e,
|
|
10
|
-
options: m
|
|
11
|
-
}) => /* @__PURE__ */ l(c, { children: [
|
|
12
|
-
/* @__PURE__ */ r(d, { message: e, placement: "top", children: /* @__PURE__ */ r(s, { ...n, type: "button", variant: "ghost", color: "tertiary", icon: i, "aria-label": e }) }),
|
|
13
|
-
/* @__PURE__ */ r(t.Menu, { children: m.map((o, a) => /* @__PURE__ */ r(p, { children: o.type === "divider" ? /* @__PURE__ */ r(t.Separator, {}) : /* @__PURE__ */ r(t.Item, { icon: o.icon, onClick: () => o.action(null), children: o.label }) }, a)) })
|
|
14
|
-
] });
|
|
15
|
-
export {
|
|
16
|
-
x as EditorToolbarDropdownMenu
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=EditorToolbar.DropdownMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorToolbar.DropdownMenu.js","sources":["../../../../../src/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.tsx"],"sourcesContent":["import { Fragment, ReactNode, RefAttributes } from 'react';\nimport {\n Dropdown,\n DropdownMenuOptions,\n IconButton,\n IconButtonProps,\n Tooltip,\n} from '../../../..';\n\ninterface Props {\n /**\n * Props for the trigger\n */\n triggerProps: JSX.IntrinsicAttributes &\n Omit<IconButtonProps, 'ref'> &\n RefAttributes<HTMLButtonElement>;\n /**\n * Menu icon\n */\n icon: ReactNode;\n /**\n * Menu label (for accessibility)\n */\n ariaLabel: string;\n /**\n * Options to display\n */\n options: DropdownMenuOptions[];\n}\n\nexport const EditorToolbarDropdownMenu = ({\n triggerProps,\n icon,\n ariaLabel,\n options,\n}: Props) => {\n return (\n <>\n <Tooltip message={ariaLabel} placement=\"top\">\n <IconButton\n {...triggerProps}\n type=\"button\"\n variant=\"ghost\"\n color=\"tertiary\"\n icon={icon}\n aria-label={ariaLabel}\n />\n </Tooltip>\n <Dropdown.Menu>\n {options.map((option, index) => {\n return (\n <Fragment key={index}>\n {option.type === 'divider' ? (\n <Dropdown.Separator />\n ) : (\n <Dropdown.Item\n icon={option.icon}\n onClick={() => option.action(null)}\n >\n {option.label}\n </Dropdown.Item>\n )}\n </Fragment>\n );\n })}\n </Dropdown.Menu>\n </>\n );\n};\n"],"names":["EditorToolbarDropdownMenu","triggerProps","icon","ariaLabel","options","jsxs","Fragment","jsx","Tooltip","IconButton","Dropdown","map","option","index","type","action","label"],"mappings":";;;;;AA8BO,MAAMA,IAA4BA,CAAC;AAAA,EACxCC,cAAAA;AAAAA,EACAC,MAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,SAAAA;AACK,MAGD,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,EAAA,gBAAAC,EAACC,KAAQ,SAASL,GAAW,WAAU,OACrC,UAAA,gBAAAI,EAACE,KACC,GAAIR,GACJ,MAAK,UACL,SAAQ,SACR,OAAM,YACN,MAAAC,GACA,cAAYC,EAAU,CAAA,GAE1B;AAAA,EACA,gBAAAI,EAACG,EAAS,MAAT,EACEN,YAAQO,IAAI,CAACC,GAAQC,MAElB,gBAAAN,EAACD,GAAA,EACEM,UAAOE,EAAAA,SAAS,YACf,gBAAAP,EAACG,EAAS,WAAT,CAAqB,CAAA,IAErB,gBAAAH,EAAAG,EAAS,MAAT,EACC,MAAME,EAAOV,MACb,SAAS,MAAMU,EAAOG,OAAO,IAAI,GAEhCH,UAAAA,EAAOI,MACV,CAAA,EAAA,GATWH,CAWf,CAEH,GACH;AACF,EAAA,CAAA;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RefAttributes } from 'react';
|
|
2
|
-
import { IconButtonProps } from '../../../..';
|
|
3
|
-
interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* Props for the trigger
|
|
6
|
-
*/
|
|
7
|
-
triggerProps: JSX.IntrinsicAttributes & Omit<IconButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>;
|
|
8
|
-
/**
|
|
9
|
-
* Tracks refs on ColorPickers.
|
|
10
|
-
*/
|
|
11
|
-
itemRefs: any;
|
|
12
|
-
}
|
|
13
|
-
export declare const EditorToolbarEmoji: ({ triggerProps, itemRefs }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import p, { Categories as t } from "emoji-picker-react";
|
|
3
|
-
import { useTranslation as c } from "react-i18next";
|
|
4
|
-
import { useEditorContext as l } from "../../hooks/useEditorContext.js";
|
|
5
|
-
import { Tooltip as j } from "../../../../components/Tooltip/Tooltip.js";
|
|
6
|
-
import { IconButton as b } from "../../../../components/Button/IconButton.js";
|
|
7
|
-
import { Icon as g } from "../../../../components/Icon/Icon.js";
|
|
8
|
-
import { Dropdown as E } from "../../../../components/Dropdown/Dropdown.js";
|
|
9
|
-
const A = ({
|
|
10
|
-
triggerProps: a,
|
|
11
|
-
itemRefs: m
|
|
12
|
-
}) => {
|
|
13
|
-
const {
|
|
14
|
-
t: o
|
|
15
|
-
} = c(), {
|
|
16
|
-
editor: r
|
|
17
|
-
} = l();
|
|
18
|
-
return /* @__PURE__ */ n(s, { children: [
|
|
19
|
-
/* @__PURE__ */ e(j, { message: o("tiptap.toolbar.emojisPicker"), placement: "top", children: /* @__PURE__ */ e(b, { ...a, type: "button", variant: "ghost", color: "tertiary", icon: /* @__PURE__ */ e(g, { name: "smiley" }), "aria-label": o("tiptap.toolbar.emojisPicker") }) }),
|
|
20
|
-
/* @__PURE__ */ e(E.Menu, { children: /* @__PURE__ */ e("div", { ref: (i) => m.current["emoji-picker"] = i, children: /* @__PURE__ */ e(p, { height: 400, width: 316, onEmojiClick: (i) => r == null ? void 0 : r.commands.insertContentAt(r.view.state.selection, i.emoji), previewConfig: {
|
|
21
|
-
showPreview: !1
|
|
22
|
-
}, searchDisabled: !0, categories: [{
|
|
23
|
-
category: t.SUGGESTED,
|
|
24
|
-
name: `${o("tiptap.toolbar.emojis.recentlyUsed")}`
|
|
25
|
-
}, {
|
|
26
|
-
category: t.SMILEYS_PEOPLE,
|
|
27
|
-
name: `${o("tiptap.toolbar.emojis.people")}`
|
|
28
|
-
}, {
|
|
29
|
-
category: t.ANIMALS_NATURE,
|
|
30
|
-
name: `${o("tiptap.toolbar.emojis.animalsNature")}`
|
|
31
|
-
}, {
|
|
32
|
-
category: t.FOOD_DRINK,
|
|
33
|
-
name: `${o("tiptap.toolbar.emojis.foodDrink")}`
|
|
34
|
-
}, {
|
|
35
|
-
category: t.TRAVEL_PLACES,
|
|
36
|
-
name: `${o("tiptap.toolbar.emojis.travelPlaces")}`
|
|
37
|
-
}, {
|
|
38
|
-
category: t.ACTIVITIES,
|
|
39
|
-
name: `${o("tiptap.toolbar.emojis.activities")}`
|
|
40
|
-
}, {
|
|
41
|
-
category: t.OBJECTS,
|
|
42
|
-
name: `${o("tiptap.toolbar.emojis.objects")}`
|
|
43
|
-
}, {
|
|
44
|
-
category: t.SYMBOLS,
|
|
45
|
-
name: `${o("tiptap.toolbar.emojis.symbols")}`
|
|
46
|
-
}, {
|
|
47
|
-
category: t.FLAGS,
|
|
48
|
-
name: `${o("tiptap.toolbar.emojis.flags")}`
|
|
49
|
-
}] }) }) })
|
|
50
|
-
] });
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
A as EditorToolbarEmoji
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=EditorToolbar.Emoji.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorToolbar.Emoji.js","sources":["../../../../../src/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.tsx"],"sourcesContent":["import { RefAttributes } from 'react';\n\nimport EmojiPicker, { Categories } from 'emoji-picker-react';\nimport { useTranslation } from 'react-i18next';\n\nimport {\n Dropdown,\n Icon,\n IconButton,\n IconButtonProps,\n Tooltip,\n} from '../../../..';\nimport { useEditorContext } from '../../hooks/useEditorContext';\n\ninterface Props {\n /**\n * Props for the trigger\n */\n triggerProps: JSX.IntrinsicAttributes &\n Omit<IconButtonProps, 'ref'> &\n RefAttributes<HTMLButtonElement>;\n /**\n * Tracks refs on ColorPickers.\n */\n itemRefs: any;\n}\n\nexport const EditorToolbarEmoji = ({ triggerProps, itemRefs }: Props) => {\n const { t } = useTranslation();\n const { editor } = useEditorContext();\n\n return (\n <>\n <Tooltip message={t('tiptap.toolbar.emojisPicker')} placement=\"top\">\n <IconButton\n {...triggerProps}\n type=\"button\"\n variant=\"ghost\"\n color=\"tertiary\"\n icon={<Icon name=\"smiley\" />}\n aria-label={t('tiptap.toolbar.emojisPicker')}\n />\n </Tooltip>\n <Dropdown.Menu>\n <div ref={(el) => (itemRefs.current['emoji-picker'] = el)}>\n <EmojiPicker\n height={400}\n width={316}\n onEmojiClick={(emoji) =>\n editor?.commands.insertContentAt(\n editor.view.state.selection,\n emoji.emoji,\n )\n }\n previewConfig={{ showPreview: false }}\n searchDisabled={true}\n categories={[\n {\n category: Categories.SUGGESTED,\n name: `${t('tiptap.toolbar.emojis.recentlyUsed')}`,\n },\n {\n category: Categories.SMILEYS_PEOPLE,\n name: `${t('tiptap.toolbar.emojis.people')}`,\n },\n {\n category: Categories.ANIMALS_NATURE,\n name: `${t('tiptap.toolbar.emojis.animalsNature')}`,\n },\n {\n category: Categories.FOOD_DRINK,\n name: `${t('tiptap.toolbar.emojis.foodDrink')}`,\n },\n {\n category: Categories.TRAVEL_PLACES,\n name: `${t('tiptap.toolbar.emojis.travelPlaces')}`,\n },\n {\n category: Categories.ACTIVITIES,\n name: `${t('tiptap.toolbar.emojis.activities')}`,\n },\n {\n category: Categories.OBJECTS,\n name: `${t('tiptap.toolbar.emojis.objects')}`,\n },\n {\n category: Categories.SYMBOLS,\n name: `${t('tiptap.toolbar.emojis.symbols')}`,\n },\n {\n category: Categories.FLAGS,\n name: `${t('tiptap.toolbar.emojis.flags')}`,\n },\n ]}\n />\n </div>\n </Dropdown.Menu>\n </>\n );\n};\n"],"names":["EditorToolbarEmoji","triggerProps","itemRefs","t","useTranslation","editor","useEditorContext","jsxs","Fragment","jsx","Tooltip","IconButton","Icon","Dropdown","el","current","EmojiPicker","emoji","commands","insertContentAt","view","state","selection","showPreview","category","Categories","SUGGESTED","name","SMILEYS_PEOPLE","ANIMALS_NATURE","FOOD_DRINK","TRAVEL_PLACES","ACTIVITIES","OBJECTS","SYMBOLS","FLAGS"],"mappings":";;;;;;;;AA2BO,MAAMA,IAAqBA,CAAC;AAAA,EAAEC,cAAAA;AAAAA,EAAcC,UAAAA;AAAgB,MAAM;AACjE,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvB;AAAA,IAAEC,QAAAA;AAAAA,MAAWC,EAAiB;AAEpC,SAEI,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAQ,SAASP,EAAE,6BAA6B,GAAG,WAAU,OAC5D,UAAC,gBAAAM,EAAAE,GAAA,EACKV,GAAAA,GACJ,MAAK,UACL,SAAQ,SACR,OAAM,YACN,MAAM,gBAAAQ,EAACG,GAAK,EAAA,MAAK,SAAQ,CAAA,GACzB,cAAYT,EAAE,6BAA6B,EAAA,CAAE,EAEjD,CAAA;AAAA,IACC,gBAAAM,EAAAI,EAAS,MAAT,EACC,UAAC,gBAAAJ,EAAA,OAAA,EAAI,KAAMK,CAAAA,MAAQZ,EAASa,QAAQ,cAAc,IAAID,GACpD,UAAC,gBAAAL,EAAAO,GAAA,EACC,QAAQ,KACR,OAAO,KACP,cAAeC,CAAAA,MACbZ,KAAAA,gBAAAA,EAAQa,SAASC,gBACfd,EAAOe,KAAKC,MAAMC,WAClBL,EAAMA,QAGV,eAAe;AAAA,MAAEM,aAAa;AAAA,IAAA,GAC9B,gBAAgB,IAChB,YAAY,CACV;AAAA,MACEC,UAAUC,EAAWC;AAAAA,MACrBC,MAAM,GAAGxB,EAAE,oCAAoC,CAAC;AAAA,IAAA,GAElD;AAAA,MACEqB,UAAUC,EAAWG;AAAAA,MACrBD,MAAM,GAAGxB,EAAE,8BAA8B,CAAC;AAAA,IAAA,GAE5C;AAAA,MACEqB,UAAUC,EAAWI;AAAAA,MACrBF,MAAM,GAAGxB,EAAE,qCAAqC,CAAC;AAAA,IAAA,GAEnD;AAAA,MACEqB,UAAUC,EAAWK;AAAAA,MACrBH,MAAM,GAAGxB,EAAE,iCAAiC,CAAC;AAAA,IAAA,GAE/C;AAAA,MACEqB,UAAUC,EAAWM;AAAAA,MACrBJ,MAAM,GAAGxB,EAAE,oCAAoC,CAAC;AAAA,IAAA,GAElD;AAAA,MACEqB,UAAUC,EAAWO;AAAAA,MACrBL,MAAM,GAAGxB,EAAE,kCAAkC,CAAC;AAAA,IAAA,GAEhD;AAAA,MACEqB,UAAUC,EAAWQ;AAAAA,MACrBN,MAAM,GAAGxB,EAAE,+BAA+B,CAAC;AAAA,IAAA,GAE7C;AAAA,MACEqB,UAAUC,EAAWS;AAAAA,MACrBP,MAAM,GAAGxB,EAAE,+BAA+B,CAAC;AAAA,IAAA,GAE7C;AAAA,MACEqB,UAAUC,EAAWU;AAAAA,MACrBR,MAAM,GAAGxB,EAAE,6BAA6B,CAAC;AAAA,IAAA,CAC1C,EACD,CAAA,EAEN,CAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RefAttributes } from 'react';
|
|
2
|
-
import { IconButtonProps } from '../../../..';
|
|
3
|
-
interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* Props for the trigger
|
|
6
|
-
*/
|
|
7
|
-
triggerProps: JSX.IntrinsicAttributes & Omit<IconButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>;
|
|
8
|
-
/**
|
|
9
|
-
* Tracks refs on ColorPickers.
|
|
10
|
-
*/
|
|
11
|
-
itemRefs: any;
|
|
12
|
-
}
|
|
13
|
-
export declare const EditorToolbarHighlightColor: ({ triggerProps, itemRefs, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsxs as h, Fragment as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as g, useMemo as u, useCallback as f, useEffect as b } from "react";
|
|
3
|
-
import { useTranslation as A } from "react-i18next";
|
|
4
|
-
import { useEditorContext as C } from "../../hooks/useEditorContext.js";
|
|
5
|
-
import { DefaultPalette as k } from "../../../../components/ColorPicker/ColorPalette.js";
|
|
6
|
-
import { ColorPicker as x } from "../../../../components/ColorPicker/ColorPicker.js";
|
|
7
|
-
import { Tooltip as H } from "../../../../components/Tooltip/Tooltip.js";
|
|
8
|
-
import { IconButton as y } from "../../../../components/Button/IconButton.js";
|
|
9
|
-
import { Icon as E } from "../../../../components/Icon/Icon.js";
|
|
10
|
-
import { Dropdown as T } from "../../../../components/Dropdown/Dropdown.js";
|
|
11
|
-
const N = ({
|
|
12
|
-
triggerProps: c,
|
|
13
|
-
itemRefs: l
|
|
14
|
-
}) => {
|
|
15
|
-
const {
|
|
16
|
-
t: e
|
|
17
|
-
} = A(), {
|
|
18
|
-
editor: t
|
|
19
|
-
} = C(), [i, s] = g("#4A4A4A"), n = u(
|
|
20
|
-
() => t == null ? void 0 : t.isActive("customHighlight", {
|
|
21
|
-
color: /^#([0-9a-f]{3}){1,2}$/i
|
|
22
|
-
}),
|
|
23
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24
|
-
[t, t == null ? void 0 : t.state]
|
|
25
|
-
), a = f((o) => {
|
|
26
|
-
o === i || o === "" ? (s(""), t == null || t.chain().focus().unsetHighlight().run()) : (s(o), t == null || t.chain().focus().setHighlight({
|
|
27
|
-
color: o
|
|
28
|
-
}).run());
|
|
29
|
-
}, [i, t]);
|
|
30
|
-
b(() => {
|
|
31
|
-
s((t == null ? void 0 : t.getAttributes("customHighlight").color) ?? "");
|
|
32
|
-
}, [t, t == null ? void 0 : t.state]);
|
|
33
|
-
const m = [{
|
|
34
|
-
...k,
|
|
35
|
-
reset: {
|
|
36
|
-
value: "transparent",
|
|
37
|
-
description: e("tiptap.toolbar.highlight.none")
|
|
38
|
-
}
|
|
39
|
-
}];
|
|
40
|
-
return /* @__PURE__ */ h(p, { children: [
|
|
41
|
-
/* @__PURE__ */ r(H, { message: e("tiptap.toolbar.highlight.back"), placement: "top", children: /* @__PURE__ */ r(y, { ...c, type: "button", variant: "ghost", color: "tertiary", icon: /* @__PURE__ */ r(E, { name: "text-highlight" }), "aria-label": e("tiptap.toolbar.highlight.back"), className: n ? "selected" : "" }) }),
|
|
42
|
-
/* @__PURE__ */ r(T.Menu, { children: /* @__PURE__ */ r(x, { ref: (o) => l.current["color-picker"] = o, palettes: m, model: i, onSuccess: (o) => a(o.value) }) })
|
|
43
|
-
] });
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
N as EditorToolbarHighlightColor
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=EditorToolbar.HighlightColor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorToolbar.HighlightColor.js","sources":["../../../../../src/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.tsx"],"sourcesContent":["import {\n RefAttributes,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport { useTranslation } from 'react-i18next';\n\nimport {\n ColorPalette,\n ColorPicker,\n DefaultPalette,\n Dropdown,\n Icon,\n IconButton,\n IconButtonProps,\n Tooltip,\n} from '../../../..';\nimport { useEditorContext } from '../../hooks/useEditorContext';\n\ninterface Props {\n /**\n * Props for the trigger\n */\n triggerProps: JSX.IntrinsicAttributes &\n Omit<IconButtonProps, 'ref'> &\n RefAttributes<HTMLButtonElement>;\n /**\n * Tracks refs on ColorPickers.\n */\n itemRefs: any;\n}\n\nexport const EditorToolbarHighlightColor = ({\n triggerProps,\n itemRefs,\n}: Props) => {\n const { t } = useTranslation();\n const { editor } = useEditorContext();\n\n // Manage text and background colors.\n const [color, setColor] = useState<string>('#4A4A4A');\n\n const isActive = useMemo(\n () =>\n editor?.isActive('customHighlight', {\n color: /^#([0-9a-f]{3}){1,2}$/i,\n }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [editor, editor?.state],\n );\n\n // Triggered when the user chooses a highlighting color.\n const applyColor = useCallback(\n (value: string) => {\n // If the same color is picked, remove it (=toggle mode).\n if (value === color || value === '') {\n setColor('');\n editor?.chain().focus().unsetHighlight().run();\n } else {\n setColor(value);\n editor?.chain().focus().setHighlight({ color: value }).run();\n }\n },\n [color, editor],\n );\n\n // When cursor moves in table, update the current highlight color.\n useEffect(() => {\n setColor(editor?.getAttributes('customHighlight').color ?? '');\n }, [editor, editor?.state]);\n\n // Palettes of available colors to choose from.\n const palettes: ColorPalette[] = [\n {\n ...DefaultPalette,\n reset: {\n value: 'transparent',\n description: t('tiptap.toolbar.highlight.none'),\n },\n },\n ];\n\n return (\n <>\n <Tooltip message={t('tiptap.toolbar.highlight.back')} placement=\"top\">\n <IconButton\n {...triggerProps}\n type=\"button\"\n variant=\"ghost\"\n color=\"tertiary\"\n icon={<Icon name=\"text-highlight\" />}\n aria-label={t('tiptap.toolbar.highlight.back')}\n className={isActive ? 'selected' : ''}\n />\n </Tooltip>\n <Dropdown.Menu>\n <ColorPicker\n ref={(el: any) => (itemRefs.current['color-picker'] = el)}\n palettes={palettes}\n model={color}\n onSuccess={(item) => applyColor(item.value)}\n />\n </Dropdown.Menu>\n </>\n );\n};\n"],"names":["EditorToolbarHighlightColor","triggerProps","itemRefs","t","useTranslation","editor","useEditorContext","color","setColor","useState","isActive","useMemo","state","applyColor","useCallback","value","chain","focus","unsetHighlight","run","setHighlight","useEffect","getAttributes","palettes","DefaultPalette","reset","description","jsxs","Fragment","jsx","Tooltip","IconButton","Icon","Dropdown","ColorPicker","el","current","item"],"mappings":";;;;;;;;;;AAmCO,MAAMA,IAA8BA,CAAC;AAAA,EAC1CC,cAAAA;AAAAA,EACAC,UAAAA;AACK,MAAM;AACL,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvB;AAAA,IAAEC,QAAAA;AAAAA,MAAWC,EAAiB,GAG9B,CAACC,GAAOC,CAAQ,IAAIC,EAAiB,SAAS,GAE9CC,IAAWC;AAAAA,IACf,MACEN,KAAAA,gBAAAA,EAAQK,SAAS,mBAAmB;AAAA,MAClCH,OAAO;AAAA,IAAA;AAAA;AAAA,IAGX,CAACF,GAAQA,KAAAA,gBAAAA,EAAQO,KAAK;AAAA,EAAA,GAIlBC,IAAaC,EACjB,CAACC,MAAkB;AAEbA,IAAAA,MAAUR,KAASQ,MAAU,MAC/BP,EAAS,EAAE,GACXH,KAAAA,QAAAA,EAAQW,QAAQC,QAAQC,iBAAiBC,UAEzCX,EAASO,CAAK,GACdV,KAAAA,QAAAA,EAAQW,QAAQC,QAAQG,aAAa;AAAA,MAAEb,OAAOQ;AAAAA,IAAAA,GAASI;AAAAA,EACzD,GAEF,CAACZ,GAAOF,CAAM,CAChB;AAGAgB,EAAAA,EAAU,MAAM;AACdb,IAAAA,GAASH,KAAAA,gBAAAA,EAAQiB,cAAc,mBAAmBf,UAAS,EAAE;AAAA,EAC5D,GAAA,CAACF,GAAQA,KAAAA,gBAAAA,EAAQO,KAAK,CAAC;AAG1B,QAAMW,IAA2B,CAC/B;AAAA,IACE,GAAGC;AAAAA,IACHC,OAAO;AAAA,MACLV,OAAO;AAAA,MACPW,aAAavB,EAAE,+BAA+B;AAAA,IAChD;AAAA,EAAA,CACD;AAGH,SAEI,gBAAAwB,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAQ,EAAA,SAAS3B,EAAE,+BAA+B,GAAG,WAAU,OAC9D,UAAA,gBAAA0B,EAACE,GACC,EAAA,GAAI9B,GACJ,MAAK,UACL,SAAQ,SACR,OAAM,YACN,MAAM,gBAAA4B,EAACG,GAAK,EAAA,MAAK,kBAAmB,GACpC,cAAY7B,EAAE,+BAA+B,GAC7C,WAAWO,IAAW,aAAa,GAAG,CAAA,GAE1C;AAAA,IACA,gBAAAmB,EAACI,EAAS,MAAT,EACC,4BAACC,GACC,EAAA,KAAK,CAACC,MAAajC,EAASkC,QAAQ,cAAc,IAAID,GACtD,UAAAZ,GACA,OAAOhB,GACP,WAAY8B,OAASxB,EAAWwB,EAAKtB,KAAK,EAAA,CAAE,EAEhD,CAAA;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DropdownMenuOptions } from '../../../..';
|
|
2
|
-
interface Props {
|
|
3
|
-
/**
|
|
4
|
-
* Options to display
|
|
5
|
-
*/
|
|
6
|
-
options: DropdownMenuOptions[];
|
|
7
|
-
}
|
|
8
|
-
export declare const EditorToolbarPlusMenu: ({ options }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Fragment as m } from "react";
|
|
3
|
-
import { useTranslation as s } from "react-i18next";
|
|
4
|
-
import { Dropdown as t } from "../../../../components/Dropdown/Dropdown.js";
|
|
5
|
-
const g = ({
|
|
6
|
-
options: n
|
|
7
|
-
}) => {
|
|
8
|
-
const {
|
|
9
|
-
t: o
|
|
10
|
-
} = s();
|
|
11
|
-
return /* @__PURE__ */ i(l, { children: [
|
|
12
|
-
/* @__PURE__ */ r(t.Trigger, { variant: "ghost", label: o("tiptap.toolbar.plus"), size: "md", tabIndex: -1 }),
|
|
13
|
-
/* @__PURE__ */ r(t.Menu, { children: n.map((e, a) => /* @__PURE__ */ r(m, { children: e.type === "divider" ? /* @__PURE__ */ r(t.Separator, {}) : /* @__PURE__ */ r(t.Item, { icon: e.icon, onClick: () => e.action(null), children: e.label }) }, a)) })
|
|
14
|
-
] });
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
g as EditorToolbarPlusMenu
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=EditorToolbar.PlusMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorToolbar.PlusMenu.js","sources":["../../../../../src/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.tsx"],"sourcesContent":["import { Fragment } from 'react';\n\nimport { useTranslation } from 'react-i18next';\nimport { Dropdown, DropdownMenuOptions } from '../../../..';\n\ninterface Props {\n /**\n * Options to display\n */\n options: DropdownMenuOptions[];\n}\n\nexport const EditorToolbarPlusMenu = ({ options }: Props) => {\n const { t } = useTranslation();\n\n return (\n <>\n <Dropdown.Trigger\n variant=\"ghost\"\n label={t('tiptap.toolbar.plus')}\n size=\"md\"\n tabIndex={-1}\n />\n <Dropdown.Menu>\n {options.map((option, index) => {\n return (\n <Fragment key={index}>\n {option.type === 'divider' ? (\n <Dropdown.Separator />\n ) : (\n <Dropdown.Item\n icon={option.icon}\n onClick={() => option.action(null)}\n >\n {option.label}\n </Dropdown.Item>\n )}\n </Fragment>\n );\n })}\n </Dropdown.Menu>\n </>\n );\n};\n"],"names":["EditorToolbarPlusMenu","options","t","useTranslation","jsxs","Fragment","jsx","Dropdown","map","option","index","type","icon","action","label"],"mappings":";;;;AAYO,MAAMA,IAAwBA,CAAC;AAAA,EAAEC,SAAAA;AAAe,MAAM;AACrD,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe;AAE7B,SAEI,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,EAAS,SAAT,EACC,SAAQ,SACR,OAAOL,EAAE,qBAAqB,GAC9B,MAAK,MACL,UAAU,GAAG,CAAA;AAAA,IAEf,gBAAAI,EAACC,EAAS,MAAT,EACEN,YAAQO,IAAI,CAACC,GAAQC,MAElB,gBAAAJ,EAACD,GAAA,EACEI,UAAOE,EAAAA,SAAS,YACf,gBAAAL,EAACC,EAAS,WAAT,CAAqB,CAAA,IAErB,gBAAAD,EAAAC,EAAS,MAAT,EACC,MAAME,EAAOG,MACb,SAAS,MAAMH,EAAOI,OAAO,IAAI,GAEhCJ,UAAAA,EAAOK,MACV,CAAA,EAAA,GATWJ,CAWf,CAEH,GACH;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RefAttributes } from 'react';
|
|
2
|
-
import { IconButtonProps } from '../../../..';
|
|
3
|
-
interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* Props for the trigger
|
|
6
|
-
*/
|
|
7
|
-
triggerProps: JSX.IntrinsicAttributes & Omit<IconButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>;
|
|
8
|
-
/**
|
|
9
|
-
* Tracks refs on ColorPickers.
|
|
10
|
-
*/
|
|
11
|
-
itemRefs: any;
|
|
12
|
-
}
|
|
13
|
-
export declare const EditorToolbarTextColor: ({ triggerProps, itemRefs }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, Fragment as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as u, useMemo as b, useCallback as x, useEffect as A } from "react";
|
|
3
|
-
import { useTranslation as h } from "react-i18next";
|
|
4
|
-
import { useEditorContext as C } from "../../hooks/useEditorContext.js";
|
|
5
|
-
import { DefaultPalette as g, AccessiblePalette as y } from "../../../../components/ColorPicker/ColorPalette.js";
|
|
6
|
-
import { Tooltip as T } from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
-
import { IconButton as k } from "../../../../components/Button/IconButton.js";
|
|
8
|
-
import { Icon as E } from "../../../../components/Icon/Icon.js";
|
|
9
|
-
import { Dropdown as P } from "../../../../components/Dropdown/Dropdown.js";
|
|
10
|
-
import { ColorPicker as S } from "../../../../components/ColorPicker/ColorPicker.js";
|
|
11
|
-
const q = ({
|
|
12
|
-
triggerProps: a,
|
|
13
|
-
itemRefs: s
|
|
14
|
-
}) => {
|
|
15
|
-
const {
|
|
16
|
-
t: e
|
|
17
|
-
} = h(), {
|
|
18
|
-
editor: o
|
|
19
|
-
} = C(), [l, c] = u("#4A4A4A"), n = b(
|
|
20
|
-
() => o == null ? void 0 : o.isActive("textStyle", {
|
|
21
|
-
color: /^#([0-9a-f]{3}){1,2}$/i
|
|
22
|
-
}),
|
|
23
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24
|
-
[o, o == null ? void 0 : o.state]
|
|
25
|
-
), p = x((t) => {
|
|
26
|
-
t === l ? (c(""), o == null || o.chain().focus().unsetColor().run()) : (c(t), o == null || o.chain().focus().setColor(t).run());
|
|
27
|
-
}, [l, o]);
|
|
28
|
-
A(() => {
|
|
29
|
-
const t = o == null ? void 0 : o.getAttributes("textStyle");
|
|
30
|
-
c((t == null ? void 0 : t.color) ?? "#4A4A4A");
|
|
31
|
-
}, [o, o == null ? void 0 : o.state]);
|
|
32
|
-
const i = [{
|
|
33
|
-
...g,
|
|
34
|
-
label: e("tiptap.toolbar.color.text")
|
|
35
|
-
}, {
|
|
36
|
-
...y,
|
|
37
|
-
label: e("tiptap.toolbar.color.a13y"),
|
|
38
|
-
tooltip: {
|
|
39
|
-
message: e("tiptap.toolbar.color.a13y.hint"),
|
|
40
|
-
placement: "right"
|
|
41
|
-
}
|
|
42
|
-
}];
|
|
43
|
-
return /* @__PURE__ */ m(f, { children: [
|
|
44
|
-
/* @__PURE__ */ r(T, { message: e("tiptap.toolbar.color.text"), placement: "top", children: /* @__PURE__ */ r(k, { ...a, type: "button", variant: "ghost", color: "tertiary", icon: /* @__PURE__ */ r(E, { name: "text-color" }), "aria-label": e("tiptap.toolbar.color.text"), className: n ? "selected" : "" }) }),
|
|
45
|
-
/* @__PURE__ */ r(P.Menu, { children: /* @__PURE__ */ r(S, { ref: (t) => s.current["color-picker"] = t, model: l, palettes: i, onSuccess: (t) => p(t.value) }) })
|
|
46
|
-
] });
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
q as EditorToolbarTextColor
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=EditorToolbar.TextColor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorToolbar.TextColor.js","sources":["../../../../../src/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.tsx"],"sourcesContent":["import {\n RefAttributes,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport { useTranslation } from 'react-i18next';\n\nimport {\n AccessiblePalette,\n ColorPalette,\n ColorPicker,\n DefaultPalette,\n Dropdown,\n Icon,\n IconButton,\n IconButtonProps,\n Tooltip,\n} from '../../../..';\nimport { useEditorContext } from '../../hooks/useEditorContext';\n\ninterface Props {\n /**\n * Props for the trigger\n */\n triggerProps: JSX.IntrinsicAttributes &\n Omit<IconButtonProps, 'ref'> &\n RefAttributes<HTMLButtonElement>;\n /**\n * Tracks refs on ColorPickers.\n */\n itemRefs: any;\n}\n\nexport const EditorToolbarTextColor = ({ triggerProps, itemRefs }: Props) => {\n const { t } = useTranslation();\n const { editor } = useEditorContext();\n\n // Manage text and background colors.\n const [color, setColor] = useState<string>('#4A4A4A');\n\n const isActive = useMemo(\n () =>\n editor?.isActive('textStyle', {\n color: /^#([0-9a-f]{3}){1,2}$/i,\n }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [editor, editor?.state],\n );\n\n // Triggered when the user chooses a color for cells background.\n const applyColor = useCallback(\n (value: string) => {\n // If the same color is picked, remove it (=toggle mode).\n if (value === color) {\n setColor('');\n editor?.chain().focus().unsetColor().run();\n } else {\n setColor(value);\n editor?.chain().focus().setColor(value).run();\n }\n },\n [color, editor],\n );\n\n // When cursor moves in table, update the current text color.\n useEffect(() => {\n const textStyle = editor?.getAttributes('textStyle');\n setColor(textStyle?.color ?? '#4A4A4A');\n }, [editor, editor?.state]);\n\n // Palettes of available colors to choose from.\n const palettes: ColorPalette[] = [\n { ...DefaultPalette, label: t('tiptap.toolbar.color.text') },\n {\n ...AccessiblePalette,\n label: t('tiptap.toolbar.color.a13y'),\n tooltip: {\n message: t('tiptap.toolbar.color.a13y.hint'),\n placement: 'right',\n },\n },\n ];\n\n return (\n <>\n <Tooltip message={t('tiptap.toolbar.color.text')} placement=\"top\">\n <IconButton\n {...triggerProps}\n type=\"button\"\n variant=\"ghost\"\n color=\"tertiary\"\n icon={<Icon name=\"text-color\" />}\n aria-label={t('tiptap.toolbar.color.text')}\n className={isActive ? 'selected' : ''}\n />\n </Tooltip>\n <Dropdown.Menu>\n <ColorPicker\n ref={(el: any) => (itemRefs.current['color-picker'] = el)}\n model={color}\n palettes={palettes}\n onSuccess={(item) => applyColor(item.value)}\n />\n </Dropdown.Menu>\n </>\n );\n};\n"],"names":["EditorToolbarTextColor","triggerProps","itemRefs","t","useTranslation","editor","useEditorContext","color","setColor","useState","isActive","useMemo","state","applyColor","useCallback","value","chain","focus","unsetColor","run","useEffect","textStyle","getAttributes","palettes","DefaultPalette","label","AccessiblePalette","tooltip","message","placement","jsxs","Fragment","jsx","Tooltip","IconButton","Icon","Dropdown","ColorPicker","el","current","item"],"mappings":";;;;;;;;;;AAoCO,MAAMA,IAAyBA,CAAC;AAAA,EAAEC,cAAAA;AAAAA,EAAcC,UAAAA;AAAgB,MAAM;AACrE,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvB;AAAA,IAAEC,QAAAA;AAAAA,MAAWC,EAAiB,GAG9B,CAACC,GAAOC,CAAQ,IAAIC,EAAiB,SAAS,GAE9CC,IAAWC;AAAAA,IACf,MACEN,KAAAA,gBAAAA,EAAQK,SAAS,aAAa;AAAA,MAC5BH,OAAO;AAAA,IAAA;AAAA;AAAA,IAGX,CAACF,GAAQA,KAAAA,gBAAAA,EAAQO,KAAK;AAAA,EAAA,GAIlBC,IAAaC,EACjB,CAACC,MAAkB;AAEjB,IAAIA,MAAUR,KACZC,EAAS,EAAE,GACXH,KAAAA,QAAAA,EAAQW,QAAQC,QAAQC,aAAaC,UAErCX,EAASO,CAAK,GACdV,KAAAA,QAAAA,EAAQW,QAAQC,QAAQT,SAASO,GAAOI;AAAAA,EAC1C,GAEF,CAACZ,GAAOF,CAAM,CAChB;AAGAe,EAAAA,EAAU,MAAM;AACRC,UAAAA,IAAYhB,KAAAA,gBAAAA,EAAQiB,cAAc;AAC/BD,IAAAA,GAAAA,KAAAA,gBAAAA,EAAWd,UAAS,SAAS;AAAA,EACrC,GAAA,CAACF,GAAQA,KAAAA,gBAAAA,EAAQO,KAAK,CAAC;AAG1B,QAAMW,IAA2B,CAC/B;AAAA,IAAE,GAAGC;AAAAA,IAAgBC,OAAOtB,EAAE,2BAA2B;AAAA,EAAA,GACzD;AAAA,IACE,GAAGuB;AAAAA,IACHD,OAAOtB,EAAE,2BAA2B;AAAA,IACpCwB,SAAS;AAAA,MACPC,SAASzB,EAAE,gCAAgC;AAAA,MAC3C0B,WAAW;AAAA,IACb;AAAA,EAAA,CACD;AAGH,SAEI,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAQ,EAAA,SAAS9B,EAAE,2BAA2B,GAAG,WAAU,OAC1D,UAAA,gBAAA6B,EAACE,GACC,EAAA,GAAIjC,GACJ,MAAK,UACL,SAAQ,SACR,OAAM,YACN,MAAM,gBAAA+B,EAACG,GAAK,EAAA,MAAK,cAAe,GAChC,cAAYhC,EAAE,2BAA2B,GACzC,WAAWO,IAAW,aAAa,GAAG,CAAA,GAE1C;AAAA,IACA,gBAAAsB,EAACI,EAAS,MAAT,EACC,4BAACC,GACC,EAAA,KAAK,CAACC,MAAapC,EAASqC,QAAQ,cAAc,IAAID,GACtD,OAAO/B,GACP,UAAAgB,GACA,WAAYiB,OAAS3B,EAAW2B,EAAKzB,KAAK,EAAA,CAAE,EAEhD,CAAA;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RefAttributes } from 'react';
|
|
2
|
-
import { IconButtonProps } from '../../../..';
|
|
3
|
-
interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* Props for the trigger
|
|
6
|
-
*/
|
|
7
|
-
triggerProps: JSX.IntrinsicAttributes & Omit<IconButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>;
|
|
8
|
-
}
|
|
9
|
-
export declare const EditorToolbarTextSize: ({ triggerProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|