@edifice.io/react 2.0.0-develop-rc.3
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/LICENSE +661 -0
- package/README.md +110 -0
- package/dist/audience.js +16 -0
- package/dist/components/ActionBar/ActionBar.d.ts +10 -0
- package/dist/components/ActionBar/ActionBar.js +8 -0
- package/dist/components/ActionBar/index.d.ts +2 -0
- package/dist/components/Alert/Alert.d.ts +60 -0
- package/dist/components/Alert/Alert.js +78 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/AppHeader/AppHeader.d.ts +17 -0
- package/dist/components/AppHeader/AppHeader.js +22 -0
- package/dist/components/AppHeader/index.d.ts +2 -0
- package/dist/components/AppIcon/AppIcon.d.ts +45 -0
- package/dist/components/AppIcon/AppIcon.js +49 -0
- package/dist/components/AppIcon/index.d.ts +1 -0
- package/dist/components/Attachment/Attachment.d.ts +14 -0
- package/dist/components/Attachment/Attachment.js +15 -0
- package/dist/components/Attachment/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +32 -0
- package/dist/components/Avatar/Avatar.js +33 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Badge/Badge.d.ts +47 -0
- package/dist/components/Badge/Badge.js +31 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +28 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +13 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +14 -0
- package/dist/components/Breadcrumb/BreadcrumbList.d.ts +13 -0
- package/dist/components/Breadcrumb/BreadcrumbList.js +13 -0
- package/dist/components/Breadcrumb/BreadcrumbNav.d.ts +18 -0
- package/dist/components/Breadcrumb/BreadcrumbNav.js +22 -0
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +63 -0
- package/dist/components/Button/Button.js +35 -0
- package/dist/components/Button/IconButton.d.ts +11 -0
- package/dist/components/Button/IconButton.js +18 -0
- package/dist/components/Button/SearchButton.d.ts +21 -0
- package/dist/components/Button/SearchButton.js +17 -0
- package/dist/components/Button/index.d.ts +6 -0
- package/dist/components/Card/Card.d.ts +83 -0
- package/dist/components/Card/Card.js +51 -0
- package/dist/components/Card/CardBody.d.ts +10 -0
- package/dist/components/Card/CardBody.js +18 -0
- package/dist/components/Card/CardContext.d.ts +12 -0
- package/dist/components/Card/CardContext.js +11 -0
- package/dist/components/Card/CardFooter.d.ts +8 -0
- package/dist/components/Card/CardFooter.js +7 -0
- package/dist/components/Card/CardHeader.d.ts +5 -0
- package/dist/components/Card/CardHeader.js +19 -0
- package/dist/components/Card/CardImage.d.ts +9 -0
- package/dist/components/Card/CardImage.js +21 -0
- package/dist/components/Card/CardText.d.ts +9 -0
- package/dist/components/Card/CardText.js +12 -0
- package/dist/components/Card/CardTitle.d.ts +9 -0
- package/dist/components/Card/CardTitle.js +12 -0
- package/dist/components/Card/CardUser.d.ts +8 -0
- package/dist/components/Card/CardUser.js +10 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/components/Checkbox/Checkbox.js +35 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPalette.d.ts +46 -0
- package/dist/components/ColorPicker/ColorPalette.js +171 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +18 -0
- package/dist/components/ColorPicker/ColorPicker.js +37 -0
- package/dist/components/ColorPicker/ColorPickerItem.d.ts +20 -0
- package/dist/components/ColorPicker/ColorPickerItem.js +13 -0
- package/dist/components/ColorPicker/index.d.ts +5 -0
- package/dist/components/Combobox/Combobox.d.ts +31 -0
- package/dist/components/Combobox/Combobox.js +41 -0
- package/dist/components/Combobox/ComboboxTrigger.d.ts +9 -0
- package/dist/components/Combobox/ComboboxTrigger.js +30 -0
- package/dist/components/Combobox/index.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.d.ts +79 -0
- package/dist/components/Dropdown/Dropdown.js +60 -0
- package/dist/components/Dropdown/DropdownCheckboxItem.d.ts +24 -0
- package/dist/components/Dropdown/DropdownCheckboxItem.js +34 -0
- package/dist/components/Dropdown/DropdownContext.d.ts +8 -0
- package/dist/components/Dropdown/DropdownContext.js +11 -0
- package/dist/components/Dropdown/DropdownItem.d.ts +29 -0
- package/dist/components/Dropdown/DropdownItem.js +33 -0
- package/dist/components/Dropdown/DropdownMenu.d.ts +35 -0
- package/dist/components/Dropdown/DropdownMenu.js +26 -0
- package/dist/components/Dropdown/DropdownMenuGroup.d.ts +13 -0
- package/dist/components/Dropdown/DropdownMenuGroup.js +12 -0
- package/dist/components/Dropdown/DropdownRadioItem.d.ts +24 -0
- package/dist/components/Dropdown/DropdownRadioItem.js +34 -0
- package/dist/components/Dropdown/DropdownSeparator.d.ts +5 -0
- package/dist/components/Dropdown/DropdownSeparator.js +5 -0
- package/dist/components/Dropdown/DropdownTrigger.d.ts +38 -0
- package/dist/components/Dropdown/DropdownTrigger.js +34 -0
- package/dist/components/Dropdown/index.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.d.ts +28 -0
- package/dist/components/Dropzone/Dropzone.js +56 -0
- package/dist/components/Dropzone/DropzoneContext.d.ts +10 -0
- package/dist/components/Dropzone/DropzoneContext.js +12 -0
- package/dist/components/Dropzone/DropzoneDrag.d.ts +5 -0
- package/dist/components/Dropzone/DropzoneDrag.js +11 -0
- package/dist/components/Dropzone/DropzoneFile.d.ts +8 -0
- package/dist/components/Dropzone/DropzoneFile.js +32 -0
- package/dist/components/Dropzone/DropzoneImport.d.ts +5 -0
- package/dist/components/Dropzone/DropzoneImport.js +28 -0
- package/dist/components/Dropzone/index.d.ts +2 -0
- package/dist/components/EmptyScreen/EmptyScreen.d.ts +27 -0
- package/dist/components/EmptyScreen/EmptyScreen.js +20 -0
- package/dist/components/EmptyScreen/index.d.ts +2 -0
- package/dist/components/FileCard/FileCard.d.ts +13 -0
- package/dist/components/FileCard/FileCard.js +91 -0
- package/dist/components/FileCard/FileIcon.d.ts +6 -0
- package/dist/components/FileCard/FileIcon.js +15 -0
- package/dist/components/FileCard/index.d.ts +2 -0
- package/dist/components/Form/FormContext.d.ts +6 -0
- package/dist/components/Form/FormContext.js +11 -0
- package/dist/components/Form/FormControl.d.ts +42 -0
- package/dist/components/Form/FormControl.js +32 -0
- package/dist/components/Form/FormText.d.ts +8 -0
- package/dist/components/Form/FormText.js +17 -0
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Grid/Grid.d.ts +56 -0
- package/dist/components/Grid/Grid.js +32 -0
- package/dist/components/Grid/index.d.ts +1 -0
- package/dist/components/Heading/Heading.d.ts +27 -0
- package/dist/components/Heading/Heading.js +16 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +17 -0
- package/dist/components/Icon/Icon.js +10 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Image/Image.d.ts +29 -0
- package/dist/components/Image/Image.js +41 -0
- package/dist/components/Image/index.d.ts +2 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +38 -0
- package/dist/components/ImagePicker/ImagePicker.js +58 -0
- package/dist/components/ImagePicker/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +33 -0
- package/dist/components/Input/Input.js +31 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Label/Label.d.ts +26 -0
- package/dist/components/Label/Label.js +37 -0
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Loading/Loading.d.ts +29 -0
- package/dist/components/Loading/Loading.js +27 -0
- package/dist/components/Loading/index.d.ts +2 -0
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +7 -0
- package/dist/components/LoadingScreen/LoadingScreen.js +25 -0
- package/dist/components/LoadingScreen/index.d.ts +1 -0
- package/dist/components/Logo/Logo.d.ts +8 -0
- package/dist/components/Logo/Logo.js +14 -0
- package/dist/components/Logo/index.d.ts +2 -0
- package/dist/components/Menu/Menu.d.ts +14 -0
- package/dist/components/Menu/Menu.js +58 -0
- package/dist/components/Menu/MenuButton.d.ts +5 -0
- package/dist/components/Menu/MenuButton.js +21 -0
- package/dist/components/Menu/MenuContext.d.ts +10 -0
- package/dist/components/Menu/MenuContext.js +12 -0
- package/dist/components/Menu/MenuItem.d.ts +4 -0
- package/dist/components/Menu/MenuItem.js +19 -0
- package/dist/components/Menu/index.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +56 -0
- package/dist/components/Modal/Modal.js +72 -0
- package/dist/components/Modal/ModalBody.d.ts +19 -0
- package/dist/components/Modal/ModalBody.js +15 -0
- package/dist/components/Modal/ModalContext.d.ts +8 -0
- package/dist/components/Modal/ModalContext.js +15 -0
- package/dist/components/Modal/ModalFooter.d.ts +12 -0
- package/dist/components/Modal/ModalFooter.js +5 -0
- package/dist/components/Modal/ModalHeader.d.ts +19 -0
- package/dist/components/Modal/ModalHeader.js +27 -0
- package/dist/components/Modal/ModalSubtitle.d.ts +12 -0
- package/dist/components/Modal/ModalSubtitle.js +5 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts +33 -0
- package/dist/components/Popover/Popover.js +51 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +25 -0
- package/dist/components/Radio/Radio.js +31 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/SearchBar/SearchBar.d.ts +51 -0
- package/dist/components/SearchBar/SearchBar.js +36 -0
- package/dist/components/SearchBar/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +39 -0
- package/dist/components/Select/Select.js +37 -0
- package/dist/components/Select/SelectTrigger.d.ts +8 -0
- package/dist/components/Select/SelectTrigger.js +6 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Table/TableExplorer.d.ts +14 -0
- package/dist/components/Table/TableExplorer.js +8 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +42 -0
- package/dist/components/Tabs/Tabs.js +75 -0
- package/dist/components/Tabs/TabsContext.d.ts +12 -0
- package/dist/components/Tabs/TabsContext.js +12 -0
- package/dist/components/Tabs/TabsItem.d.ts +26 -0
- package/dist/components/Tabs/TabsItem.js +26 -0
- package/dist/components/Tabs/TabsList.d.ts +6 -0
- package/dist/components/Tabs/TabsList.js +24 -0
- package/dist/components/Tabs/TabsPanel.d.ts +17 -0
- package/dist/components/Tabs/TabsPanel.js +14 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/TextArea/TextArea.d.ts +33 -0
- package/dist/components/TextArea/TextArea.js +34 -0
- package/dist/components/TextArea/TextareaCounter.d.ts +4 -0
- package/dist/components/TextArea/TextareaCounter.js +8 -0
- package/dist/components/TextArea/index.d.ts +2 -0
- package/dist/components/Toolbar/Toolbar.d.ts +76 -0
- package/dist/components/Toolbar/Toolbar.js +77 -0
- package/dist/components/Toolbar/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/components/Tooltip/Tooltip.js +40 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/TreeView/TreeItem.d.ts +52 -0
- package/dist/components/TreeView/TreeItem.js +54 -0
- package/dist/components/TreeView/TreeNode.d.ts +22 -0
- package/dist/components/TreeView/TreeView.d.ts +40 -0
- package/dist/components/TreeView/TreeView.js +39 -0
- package/dist/components/TreeView/hooks/useTreeItemEvents.d.ts +8 -0
- package/dist/components/TreeView/hooks/useTreeItemEvents.js +28 -0
- package/dist/components/TreeView/index.d.ts +3 -0
- package/dist/components/UploadCard/UploadCard.d.ts +42 -0
- package/dist/components/UploadCard/UploadCard.js +72 -0
- package/dist/components/UploadCard/index.d.ts +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +6 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +8 -0
- package/dist/components/VisuallyHidden/index.d.ts +1 -0
- package/dist/components/index.d.ts +42 -0
- package/dist/core/OdeClientProvider/OdeClientProvider.d.ts +28 -0
- package/dist/core/OdeClientProvider/OdeClientProvider.js +62 -0
- package/dist/core/OdeClientProvider/index.d.ts +1 -0
- package/dist/core/ThemeProvider/ThemeProvider.d.ts +11 -0
- package/dist/core/ThemeProvider/ThemeProvider.js +52 -0
- package/dist/core/ThemeProvider/index.d.ts +1 -0
- package/dist/core/index.d.ts +24 -0
- package/dist/core/useAvatar/index.d.ts +1 -0
- package/dist/core/useAvatar/useAvatar.d.ts +6 -0
- package/dist/core/useAvatar/useAvatar.js +30 -0
- package/dist/core/useBookmark/index.d.ts +1 -0
- package/dist/core/useBookmark/useBookmark.d.ts +2 -0
- package/dist/core/useBookmark/useBookmark.js +14 -0
- package/dist/core/useConf/index.d.ts +1 -0
- package/dist/core/useConf/useConf.d.ts +4 -0
- package/dist/core/useConf/useConf.js +13 -0
- package/dist/core/useConversation/index.d.ts +1 -0
- package/dist/core/useConversation/useConversation.d.ts +6 -0
- package/dist/core/useConversation/useConversation.js +43 -0
- package/dist/core/useCookiesConsent/index.d.ts +1 -0
- package/dist/core/useCookiesConsent/useCookiesConsent.d.ts +5 -0
- package/dist/core/useCookiesConsent/useCookiesConsent.js +29 -0
- package/dist/core/useDate/index.d.ts +2 -0
- package/dist/core/useDate/useDate.d.ts +13 -0
- package/dist/core/useDate/useDate.js +65 -0
- package/dist/core/useHasWorkflow/index.d.ts +1 -0
- package/dist/core/useHasWorkflow/useHasWorkflow.d.ts +1 -0
- package/dist/core/useHasWorkflow/useHasWorkflow.js +22 -0
- package/dist/core/useHeader/index.d.ts +1 -0
- package/dist/core/useHeader/useHeader.d.ts +5 -0
- package/dist/core/useHeader/useHeader.js +46 -0
- package/dist/core/useHttpErrorToast/index.d.ts +1 -0
- package/dist/core/useHttpErrorToast/useHttpErrorToast.d.ts +2 -0
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js +21 -0
- package/dist/core/useIsAdml/index.d.ts +1 -0
- package/dist/core/useIsAdml/useIsAdml.d.ts +3 -0
- package/dist/core/useIsAdml/useIsAdml.js +18 -0
- package/dist/core/useLibraryUrl/index.d.ts +1 -0
- package/dist/core/useLibraryUrl/useLibraryUrl.d.ts +7 -0
- package/dist/core/useLibraryUrl/useLibraryUrl.js +21 -0
- package/dist/core/useMediaLibrary/index.d.ts +1 -0
- package/dist/core/useMediaLibrary/useMediaLibrary.d.ts +12 -0
- package/dist/core/useMediaLibrary/useMediaLibrary.js +58 -0
- package/dist/core/useOdeIcons/index.d.ts +1 -0
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +9 -0
- package/dist/core/useOdeIcons/useOdeIcons.js +92 -0
- package/dist/core/usePaths/index.d.ts +1 -0
- package/dist/core/usePaths/usePaths.d.ts +1 -0
- package/dist/core/usePaths/usePaths.js +6 -0
- package/dist/core/usePreferences/index.d.ts +1 -0
- package/dist/core/usePreferences/usePreferences.d.ts +4 -0
- package/dist/core/usePreferences/usePreferences.js +10 -0
- package/dist/core/useResource/index.d.ts +1 -0
- package/dist/core/useResource/useResource.d.ts +3 -0
- package/dist/core/useResource/useResource.js +25 -0
- package/dist/core/useResourceSearch/index.d.ts +1 -0
- package/dist/core/useResourceSearch/useResourceSearch.d.ts +18 -0
- package/dist/core/useResourceSearch/useResourceSearch.js +34 -0
- package/dist/core/useSession/index.d.ts +1 -0
- package/dist/core/useSession/useSession.d.ts +1 -0
- package/dist/core/useSession/useSession.js +11 -0
- package/dist/core/useTrashedResource/index.d.ts +1 -0
- package/dist/core/useTrashedResource/useTrashedResource.d.ts +6 -0
- package/dist/core/useTrashedResource/useTrashedResource.js +27 -0
- package/dist/core/useUpload/index.d.ts +1 -0
- package/dist/core/useUpload/useUpload.d.ts +18 -0
- package/dist/core/useUpload/useUpload.js +106 -0
- package/dist/core/useUploadFiles/index.d.ts +1 -0
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +25 -0
- package/dist/core/useUploadFiles/useUploadFiles.js +101 -0
- package/dist/core/useUser/index.d.ts +1 -0
- package/dist/core/useUser/useUser.d.ts +7 -0
- package/dist/core/useUser/useUser.js +22 -0
- package/dist/core/useWorkspaceFile/index.d.ts +1 -0
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +21 -0
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +49 -0
- package/dist/core/useWorkspaceSearch/index.d.ts +1 -0
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +9 -0
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +58 -0
- package/dist/core/useXitiTrackPageLoad/index.d.ts +1 -0
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.d.ts +4 -0
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js +28 -0
- package/dist/core/useZendeskGuide/index.d.ts +1 -0
- package/dist/core/useZendeskGuide/useZendeskGuide.d.ts +2 -0
- package/dist/core/useZendeskGuide/useZendeskGuide.js +101 -0
- package/dist/editor.js +58 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/useBrowserInfo/index.d.ts +1 -0
- package/dist/hooks/useBrowserInfo/useBrowserInfo.d.ts +9 -0
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +16 -0
- package/dist/hooks/useClickOutside/index.d.ts +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +2 -0
- package/dist/hooks/useClickOutside/useClickOutside.js +26 -0
- package/dist/hooks/useDebounce/index.d.ts +1 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts +2 -0
- package/dist/hooks/useDebounce/useDebounce.js +15 -0
- package/dist/hooks/useDropdown/index.d.ts +1 -0
- package/dist/hooks/useDropdown/useDropdown.d.ts +32 -0
- package/dist/hooks/useDropdown/useDropdown.js +158 -0
- package/dist/hooks/useDropzone/index.d.ts +1 -0
- package/dist/hooks/useDropzone/useDropzone.d.ts +34 -0
- package/dist/hooks/useDropzone/useDropzone.js +76 -0
- package/dist/hooks/useHover/index.d.ts +1 -0
- package/dist/hooks/useHover/useHover.d.ts +2 -0
- package/dist/hooks/useHover/useHover.js +22 -0
- package/dist/hooks/useImage/index.d.ts +1 -0
- package/dist/hooks/useImage/useImage.d.ts +9 -0
- package/dist/hooks/useImage/useImage.js +18 -0
- package/dist/hooks/useImageResizer/index.d.ts +1 -0
- package/dist/hooks/useImageResizer/useImageResizer.d.ts +8 -0
- package/dist/hooks/useImageResizer/useImageResizer.js +42 -0
- package/dist/hooks/useKeyPress/index.d.ts +1 -0
- package/dist/hooks/useKeyPress/useKeyPress.d.ts +1 -0
- package/dist/hooks/useKeyPress/useKeyPress.js +14 -0
- package/dist/hooks/useScrollToTop/index.d.ts +1 -0
- package/dist/hooks/useScrollToTop/useScrollToTop.d.ts +1 -0
- package/dist/hooks/useScrollToTop/useScrollToTop.js +9 -0
- package/dist/hooks/useThumbnail/index.d.ts +1 -0
- package/dist/hooks/useThumbnail/useThumbnail.d.ts +14 -0
- package/dist/hooks/useThumbnail/useThumbnail.js +29 -0
- package/dist/hooks/useTitle/index.d.ts +1 -0
- package/dist/hooks/useTitle/useTitle.d.ts +1 -0
- package/dist/hooks/useTitle/useTitle.js +10 -0
- package/dist/hooks/useToast/index.d.ts +1 -0
- package/dist/hooks/useToast/useToast.d.ts +17 -0
- package/dist/hooks/useToast/useToast.js +34 -0
- package/dist/hooks/useToggle/index.d.ts +1 -0
- package/dist/hooks/useToggle/useToggle.d.ts +1 -0
- package/dist/hooks/useToggle/useToggle.js +10 -0
- package/dist/hooks/useTrapFocus/index.d.ts +1 -0
- package/dist/hooks/useTrapFocus/useTrapFocus.d.ts +2 -0
- package/dist/hooks/useTrapFocus/useTrapFocus.js +16 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +227 -0
- package/dist/modals.js +18 -0
- package/dist/modules/audience/ReactionChoice.d.ts +11 -0
- package/dist/modules/audience/ReactionChoice.js +33 -0
- package/dist/modules/audience/ReactionModal.Card.d.ts +4 -0
- package/dist/modules/audience/ReactionModal.Card.js +34 -0
- package/dist/modules/audience/ReactionModal.d.ts +20 -0
- package/dist/modules/audience/ReactionModal.js +73 -0
- package/dist/modules/audience/ReactionSummary.d.ts +10 -0
- package/dist/modules/audience/ReactionSummary.js +27 -0
- package/dist/modules/audience/ViewsByProfileCard.d.ts +9 -0
- package/dist/modules/audience/ViewsByProfileCard.js +35 -0
- package/dist/modules/audience/ViewsCounter.d.ts +11 -0
- package/dist/modules/audience/ViewsCounter.js +18 -0
- package/dist/modules/audience/ViewsModal.d.ts +11 -0
- package/dist/modules/audience/ViewsModal.js +40 -0
- package/dist/modules/audience/hooks/useReactionIcons.d.ts +5 -0
- package/dist/modules/audience/hooks/useReactionIcons.js +37 -0
- package/dist/modules/audience/hooks/useReactions.d.ts +15 -0
- package/dist/modules/audience/hooks/useReactions.js +35 -0
- package/dist/modules/audience/hooks/useViews.d.ts +11 -0
- package/dist/modules/audience/index.d.ts +12 -0
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.d.ts +8 -0
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +132 -0
- package/dist/modules/editor/components/BubbleMenuEditImage/index.d.ts +1 -0
- package/dist/modules/editor/components/Editor/Editor.d.ts +45 -0
- package/dist/modules/editor/components/Editor/Editor.js +83 -0
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +8 -0
- package/dist/modules/editor/components/Editor/MathsModal.js +50 -0
- package/dist/modules/editor/components/Editor/index.d.ts +2 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.d.ts +22 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js +17 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.d.ts +14 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js +54 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.d.ts +14 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js +47 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.d.ts +9 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js +18 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.d.ts +14 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js +50 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.d.ts +10 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js +62 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.d.ts +10 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +52 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +10 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +319 -0
- package/dist/modules/editor/components/EditorToolbar/index.d.ts +1 -0
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/AudioNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/ImageNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/LinkerNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/VideoNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/index.d.ts +5 -0
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.d.ts +7 -0
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +34 -0
- package/dist/modules/editor/components/Renderer/AudioRenderer.d.ts +7 -0
- package/dist/modules/editor/components/Renderer/AudioRenderer.js +11 -0
- package/dist/modules/editor/components/Renderer/LinkerRenderer.d.ts +9 -0
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +34 -0
- package/dist/modules/editor/components/Renderer/MediaRenderer.d.ts +2 -0
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +69 -0
- package/dist/modules/editor/components/Renderer/index.d.ts +4 -0
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.d.ts +2 -0
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.js +8 -0
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +15 -0
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +59 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.d.ts +9 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +28 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.d.ts +13 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js +45 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.d.ts +9 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +27 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +9 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +88 -0
- package/dist/modules/editor/components/Toolbar/index.d.ts +2 -0
- package/dist/modules/editor/components/index.d.ts +6 -0
- package/dist/modules/editor/hooks/index.d.ts +12 -0
- package/dist/modules/editor/hooks/useActionOptions.d.ts +5 -0
- package/dist/modules/editor/hooks/useActionOptions.js +75 -0
- package/dist/modules/editor/hooks/useCommentEditor.d.ts +13 -0
- package/dist/modules/editor/hooks/useCommentEditor.js +37 -0
- package/dist/modules/editor/hooks/useEditorContext.d.ts +37 -0
- package/dist/modules/editor/hooks/useEditorContext.js +12 -0
- package/dist/modules/editor/hooks/useImageModal.d.ts +31 -0
- package/dist/modules/editor/hooks/useImageModal.js +46 -0
- package/dist/modules/editor/hooks/useImageSelection.d.ts +21 -0
- package/dist/modules/editor/hooks/useImageSelection.js +46 -0
- package/dist/modules/editor/hooks/useLinkToolbar.d.ts +17 -0
- package/dist/modules/editor/hooks/useLinkToolbar.js +37 -0
- package/dist/modules/editor/hooks/useMathsModal.d.ts +17 -0
- package/dist/modules/editor/hooks/useMathsModal.js +17 -0
- package/dist/modules/editor/hooks/useMathsStyles.d.ts +1 -0
- package/dist/modules/editor/hooks/useMathsStyles.js +20 -0
- package/dist/modules/editor/hooks/useMediaLibraryEditor.d.ts +19 -0
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js +152 -0
- package/dist/modules/editor/hooks/useResizeMedia.d.ts +10 -0
- package/dist/modules/editor/hooks/useResizeMedia.js +47 -0
- package/dist/modules/editor/hooks/useSpeechRecognition.d.ts +6 -0
- package/dist/modules/editor/hooks/useSpeechRecognition.js +21 -0
- package/dist/modules/editor/hooks/useSpeechSynthetisis.d.ts +12 -0
- package/dist/modules/editor/hooks/useSpeechSynthetisis.js +20 -0
- package/dist/modules/editor/hooks/useTipTapEditor.d.ts +15 -0
- package/dist/modules/editor/hooks/useTipTapEditor.js +75 -0
- package/dist/modules/editor/index.d.ts +3 -0
- package/dist/modules/editor/utils/has-extension.d.ts +2 -0
- package/dist/modules/editor/utils/has-extension.js +4 -0
- package/dist/modules/editor/utils/has-mark.d.ts +2 -0
- package/dist/modules/editor/utils/has-mark.js +4 -0
- package/dist/modules/editor/utils/has-text-style.d.ts +2 -0
- package/dist/modules/editor/utils/has-text-style.js +5 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +43 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +59 -0
- package/dist/modules/modals/OnboardingModal/index.d.ts +1 -0
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.d.ts +7 -0
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js +30 -0
- package/dist/modules/modals/PublishModal/PublishModal.d.ts +9 -0
- package/dist/modules/modals/PublishModal/PublishModal.js +120 -0
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.d.ts +7 -0
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js +29 -0
- package/dist/modules/modals/PublishModal/components/AgeSelect.d.ts +8 -0
- package/dist/modules/modals/PublishModal/components/AgeSelect.js +20 -0
- package/dist/modules/modals/PublishModal/components/LangSelect.d.ts +5 -0
- package/dist/modules/modals/PublishModal/components/LangSelect.js +19 -0
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.d.ts +1 -0
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +23 -0
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.d.ts +7 -0
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +29 -0
- package/dist/modules/modals/PublishModal/components/ToastError.d.ts +5 -0
- package/dist/modules/modals/PublishModal/components/ToastError.js +24 -0
- package/dist/modules/modals/PublishModal/components/ToastSuccess.d.ts +4 -0
- package/dist/modules/modals/PublishModal/components/ToastSuccess.js +18 -0
- package/dist/modules/modals/PublishModal/constants/ageOptions.d.ts +1 -0
- package/dist/modules/modals/PublishModal/constants/ageOptions.js +4 -0
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.d.ts +4 -0
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.js +34 -0
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.d.ts +4 -0
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.js +43 -0
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.d.ts +38 -0
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js +106 -0
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.d.ts +4 -0
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js +118 -0
- package/dist/modules/modals/PublishModal/index.d.ts +1 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +30 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.js +156 -0
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.d.ts +13 -0
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js +62 -0
- package/dist/modules/modals/ResourceModal/hooks/useSlug.d.ts +17 -0
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js +41 -0
- package/dist/modules/modals/ResourceModal/hooks/useThumb.d.ts +11 -0
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js +17 -0
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +7 -0
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +12 -0
- package/dist/modules/modals/ResourceModal/index.d.ts +3 -0
- package/dist/modules/modals/ShareModal/ShareBookmark.d.ts +8 -0
- package/dist/modules/modals/ShareModal/ShareBookmark.js +22 -0
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +9 -0
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +42 -0
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +41 -0
- package/dist/modules/modals/ShareModal/ShareModal.js +128 -0
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +8 -0
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +42 -0
- package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +24 -0
- package/dist/modules/modals/ShareModal/hooks/useSearch.js +178 -0
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +54 -0
- package/dist/modules/modals/ShareModal/hooks/useShare.js +192 -0
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +23 -0
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +67 -0
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +13 -0
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js +15 -0
- package/dist/modules/modals/ShareModal/index.d.ts +3 -0
- package/dist/modules/modals/ShareModal/utils/hasRight.d.ts +2 -0
- package/dist/modules/modals/ShareModal/utils/hasRight.js +4 -0
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +2 -0
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.js +4 -0
- package/dist/modules/modals/index.d.ts +4 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.d.ts +12 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +49 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.d.ts +10 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +24 -0
- package/dist/modules/multimedia/AudioRecorder/index.d.ts +1 -0
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +16 -0
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +307 -0
- package/dist/modules/multimedia/Embed/Embed.d.ts +5 -0
- package/dist/modules/multimedia/Embed/Embed.js +32 -0
- package/dist/modules/multimedia/Embed/index.d.ts +2 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.d.ts +27 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +116 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.d.ts +7 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +69 -0
- package/dist/modules/multimedia/ImageEditor/effects/blur.d.ts +19 -0
- package/dist/modules/multimedia/ImageEditor/effects/blur.js +72 -0
- package/dist/modules/multimedia/ImageEditor/effects/crop.d.ts +28 -0
- package/dist/modules/multimedia/ImageEditor/effects/crop.js +155 -0
- package/dist/modules/multimedia/ImageEditor/effects/misc.d.ts +154 -0
- package/dist/modules/multimedia/ImageEditor/effects/misc.js +162 -0
- package/dist/modules/multimedia/ImageEditor/effects/resize.d.ts +25 -0
- package/dist/modules/multimedia/ImageEditor/effects/resize.js +157 -0
- package/dist/modules/multimedia/ImageEditor/effects/rotate.d.ts +8 -0
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js +33 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.d.ts +32 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +66 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.d.ts +30 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js +76 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.d.ts +23 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js +52 -0
- package/dist/modules/multimedia/ImageEditor/index.d.ts +1 -0
- package/dist/modules/multimedia/ImageEditor/utils/aggregate.d.ts +9 -0
- package/dist/modules/multimedia/ImageEditor/utils/aggregate.js +13 -0
- package/dist/modules/multimedia/ImageEditor/utils/debounceAggregate.d.ts +10 -0
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.d.ts +46 -0
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +39 -0
- package/dist/modules/multimedia/ImagePickerWorkspace/index.d.ts +2 -0
- package/dist/modules/multimedia/Linker/ExternalLinker.d.ts +28 -0
- package/dist/modules/multimedia/Linker/ExternalLinker.js +45 -0
- package/dist/modules/multimedia/Linker/InternalLinker.d.ts +28 -0
- package/dist/modules/multimedia/Linker/InternalLinker.js +114 -0
- package/dist/modules/multimedia/Linker/index.d.ts +4 -0
- package/dist/modules/multimedia/LinkerCard/LinkerCard.d.ts +13 -0
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +38 -0
- package/dist/modules/multimedia/LinkerCard/index.d.ts +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +84 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +211 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +60 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.js +12 -0
- package/dist/modules/multimedia/MediaLibrary/index.d.ts +3 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.js +19 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.d.ts +6 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.js +17 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.js +14 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.d.ts +11 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +35 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +34 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.js +22 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +14 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +31 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +10 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +21 -0
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +9 -0
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js +56 -0
- package/dist/modules/multimedia/UploadFiles/index.d.ts +2 -0
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.d.ts +5 -0
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +77 -0
- package/dist/modules/multimedia/VideoEmbed/index.d.ts +1 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +14 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +259 -0
- package/dist/modules/multimedia/VideoRecorder/index.d.ts +1 -0
- package/dist/modules/multimedia/Workspace/Workspace.d.ts +33 -0
- package/dist/modules/multimedia/Workspace/Workspace.js +169 -0
- package/dist/modules/multimedia/Workspace/index.d.ts +2 -0
- package/dist/modules/multimedia/index.d.ts +8 -0
- package/dist/multimedia.js +20 -0
- package/dist/portal/Header/Badge.d.ts +5 -0
- package/dist/portal/Header/Badge.js +9 -0
- package/dist/portal/Header/Header.d.ts +9 -0
- package/dist/portal/Header/Header.js +170 -0
- package/dist/portal/Header/NavItem.d.ts +6 -0
- package/dist/portal/Header/NavItem.js +14 -0
- package/dist/portal/Header/NavLink.d.ts +24 -0
- package/dist/portal/Header/NavLink.js +19 -0
- package/dist/portal/Header/Navbar.d.ts +6 -0
- package/dist/portal/Header/Navbar.js +13 -0
- package/dist/portal/Header/NavbarNav.d.ts +6 -0
- package/dist/portal/Header/NavbarNav.js +13 -0
- package/dist/portal/Header/WidgetApps.d.ts +9 -0
- package/dist/portal/Header/WidgetApps.js +23 -0
- package/dist/portal/Header/index.d.ts +5 -0
- package/dist/portal/Help/Help.d.ts +9 -0
- package/dist/portal/Help/Help.js +25 -0
- package/dist/portal/Help/hooks/useHelp.d.ts +10 -0
- package/dist/portal/Help/hooks/useHelp.js +85 -0
- package/dist/portal/Help/index.d.ts +1 -0
- package/dist/portal/Layout/Layout.d.ts +12 -0
- package/dist/portal/Layout/Layout.js +42 -0
- package/dist/portal/Layout/index.d.ts +1 -0
- package/dist/portal/Main/Main.d.ts +16 -0
- package/dist/portal/Main/index.d.ts +2 -0
- package/dist/portal/SearchEngine/SearchEngine.d.ts +5 -0
- package/dist/portal/SearchEngine/SearchEngine.js +33 -0
- package/dist/portal/SearchEngine/index.d.ts +1 -0
- package/dist/portal/index.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/size.d.ts +1 -0
- package/dist/types/status.d.ts +1 -0
- package/dist/utils/MockedDataProvider/MockedDataProvider.d.ts +28 -0
- package/dist/utils/MockedDataProvider/MockedDataProvider.js +26 -0
- package/dist/utils/MockedDataProvider/index.d.ts +1 -0
- package/dist/utils/StringUtils.d.ts +5 -0
- package/dist/utils/StringUtils.js +14 -0
- package/dist/utils/addTimestampToUrl.d.ts +6 -0
- package/dist/utils/addTimestampToUrl.js +7 -0
- package/dist/utils/blob.d.ts +9 -0
- package/dist/utils/blob.js +15 -0
- package/dist/utils/checkUserRight.d.ts +11 -0
- package/dist/utils/checkUserRight.js +44 -0
- package/dist/utils/fileSize.d.ts +1 -0
- package/dist/utils/fileSize.js +8 -0
- package/dist/utils/findTreeNode.d.ts +9 -0
- package/dist/utils/findTreeNode.js +11 -0
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/isActionAvailable.d.ts +2 -0
- package/dist/utils/isActionAvailable.js +7 -0
- package/dist/utils/libraryMaps.d.ts +4 -0
- package/dist/utils/libraryMaps.js +12 -0
- package/dist/utils/noop.d.ts +4 -0
- package/dist/utils/noop.js +5 -0
- package/dist/utils/ref.d.ts +5 -0
- package/dist/utils/ref.js +14 -0
- package/dist/utils/thumbnail.d.ts +8 -0
- package/dist/utils/thumbnail.js +6 -0
- package/dist/utils/time.d.ts +2 -0
- package/dist/utils/time.js +11 -0
- package/dist/utils/treeview.d.ts +33 -0
- package/dist/utils/treeview.js +133 -0
- package/dist/utils/video.d.ts +1 -0
- package/dist/utils/video.js +4 -0
- package/dist/widgets/BookmarkedApps/BookmarkedApps.d.ts +8 -0
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +8 -0
- package/dist/widgets/BookmarkedApps/index.d.ts +2 -0
- package/dist/widgets/Widget/Widget.d.ts +17 -0
- package/dist/widgets/Widget/Widget.js +22 -0
- package/dist/widgets/Widget/index.d.ts +2 -0
- package/dist/widgets/index.d.ts +2 -0
- package/package.json +134 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo, useCallback, useEffect } from "react";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
5
|
+
import { DefaultPalette, AccessiblePalette } from "../../../../components/ColorPicker/ColorPalette.js";
|
|
6
|
+
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
+
import IconButton from "../../../../components/Button/IconButton.js";
|
|
8
|
+
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
9
|
+
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
10
|
+
import ColorPicker from "../../../../components/ColorPicker/ColorPicker.js";
|
|
11
|
+
const EditorToolbarTextColor = ({
|
|
12
|
+
triggerProps,
|
|
13
|
+
itemRefs
|
|
14
|
+
}) => {
|
|
15
|
+
const {
|
|
16
|
+
t
|
|
17
|
+
} = useTranslation(), {
|
|
18
|
+
editor
|
|
19
|
+
} = useEditorContext(), [color, setColor] = useState("#4A4A4A"), isActive = useMemo(
|
|
20
|
+
() => editor == null ? void 0 : editor.isActive("textStyle", {
|
|
21
|
+
color: /^#([0-9a-f]{3}){1,2}$/i
|
|
22
|
+
}),
|
|
23
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24
|
+
[editor, editor == null ? void 0 : editor.state]
|
|
25
|
+
), applyColor = useCallback((value) => {
|
|
26
|
+
value === color ? (setColor(""), editor == null || editor.chain().focus().unsetColor().run()) : (setColor(value), editor == null || editor.chain().focus().setColor(value).run());
|
|
27
|
+
}, [color, editor]);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
const textStyle = editor == null ? void 0 : editor.getAttributes("textStyle");
|
|
30
|
+
setColor((textStyle == null ? void 0 : textStyle.color) ?? "#4A4A4A");
|
|
31
|
+
}, [editor, editor == null ? void 0 : editor.state]);
|
|
32
|
+
const palettes = [{
|
|
33
|
+
...DefaultPalette,
|
|
34
|
+
label: t("tiptap.toolbar.color.text")
|
|
35
|
+
}, {
|
|
36
|
+
...AccessiblePalette,
|
|
37
|
+
label: t("tiptap.toolbar.color.a13y"),
|
|
38
|
+
tooltip: {
|
|
39
|
+
message: t("tiptap.toolbar.color.a13y.hint"),
|
|
40
|
+
placement: "right"
|
|
41
|
+
}
|
|
42
|
+
}];
|
|
43
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Tooltip, { message: t("tiptap.toolbar.color.text"), placement: "top", children: /* @__PURE__ */ jsx(IconButton, { ...triggerProps, type: "button", variant: "ghost", color: "tertiary", icon: /* @__PURE__ */ jsx(Icon, { name: "text-color" }), "aria-label": t("tiptap.toolbar.color.text"), className: isActive ? "selected" : "" }) }),
|
|
45
|
+
/* @__PURE__ */ jsx(Dropdown.Menu, { children: /* @__PURE__ */ jsx(ColorPicker, { ref: (el) => itemRefs.current["color-picker"] = el, model: color, palettes, onSuccess: (item) => applyColor(item.value) }) })
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
EditorToolbarTextColor
|
|
50
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as Fragment$1 } from "react";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
5
|
+
import { hasExtension } from "../../utils/has-extension.js";
|
|
6
|
+
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
+
import IconButton from "../../../../components/Button/IconButton.js";
|
|
8
|
+
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
9
|
+
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
10
|
+
const EditorToolbarTextSize = ({
|
|
11
|
+
triggerProps
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
t
|
|
15
|
+
} = useTranslation(), {
|
|
16
|
+
editor
|
|
17
|
+
} = useEditorContext(), textOptions = [{
|
|
18
|
+
id: "title-1",
|
|
19
|
+
label: t("tiptap.toolbar.size.h1"),
|
|
20
|
+
className: "fs-2 fw-bold text-secondary",
|
|
21
|
+
action: () => editor == null ? void 0 : editor.chain().focus().setCustomHeading({
|
|
22
|
+
level: 1
|
|
23
|
+
}).run(),
|
|
24
|
+
visibility: hasExtension("customHeading", editor)
|
|
25
|
+
}, {
|
|
26
|
+
id: "title-2",
|
|
27
|
+
label: t("tiptap.toolbar.size.h2"),
|
|
28
|
+
className: "fs-3 fw-bold text-secondary",
|
|
29
|
+
action: () => editor == null ? void 0 : editor.chain().focus().setCustomHeading({
|
|
30
|
+
level: 2
|
|
31
|
+
}).run(),
|
|
32
|
+
visibility: hasExtension("customHeading", editor)
|
|
33
|
+
}, {
|
|
34
|
+
id: "divider",
|
|
35
|
+
type: "divider",
|
|
36
|
+
visibility: hasExtension("customHeading", editor) && hasExtension("fontSize", editor)
|
|
37
|
+
}, {
|
|
38
|
+
id: "big-text",
|
|
39
|
+
label: t("tiptap.toolbar.size.big"),
|
|
40
|
+
className: "fs-4",
|
|
41
|
+
action: () => editor == null ? void 0 : editor.chain().focus().setParagraph().setFontSize("18px").run(),
|
|
42
|
+
visibility: hasExtension("fontSize", editor)
|
|
43
|
+
}, {
|
|
44
|
+
id: "normal-text",
|
|
45
|
+
label: t("tiptap.toolbar.size.normal"),
|
|
46
|
+
action: () => editor == null ? void 0 : editor.chain().focus().setParagraph().setFontSize("16px").run(),
|
|
47
|
+
visibility: hasExtension("fontSize", editor)
|
|
48
|
+
}, {
|
|
49
|
+
id: "small-text",
|
|
50
|
+
label: t("tiptap.toolbar.size.small"),
|
|
51
|
+
className: "fs-6",
|
|
52
|
+
action: () => editor == null ? void 0 : editor.chain().focus().setParagraph().setFontSize("14px").run(),
|
|
53
|
+
visibility: hasExtension("fontSize", editor)
|
|
54
|
+
}];
|
|
55
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Tooltip, { message: t("tiptap.toolbar.size.choice"), placement: "top", children: /* @__PURE__ */ jsx(IconButton, { ...triggerProps, type: "button", variant: "ghost", color: "tertiary", icon: /* @__PURE__ */ jsx(Icon, { name: "text-size" }), "aria-label": t("tiptap.toolbar.size.choice") }) }),
|
|
57
|
+
/* @__PURE__ */ jsx(Dropdown.Menu, { children: textOptions.map((option) => /* @__PURE__ */ jsx(Fragment$1, { children: option.type === "divider" && option.visibility ? /* @__PURE__ */ jsx(Dropdown.Separator, {}) : option.visibility ? /* @__PURE__ */ jsx(Dropdown.Item, { onClick: option.action, children: /* @__PURE__ */ jsx("span", { className: option.className, children: option.label }) }) : null }, option.id)) })
|
|
58
|
+
] });
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
EditorToolbarTextSize
|
|
62
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 EditorToolbarTypography: ({ triggerProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, Fragment as Fragment$1 } from "react";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
5
|
+
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
6
|
+
import IconButton from "../../../../components/Button/IconButton.js";
|
|
7
|
+
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
8
|
+
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
9
|
+
const EditorToolbarTypography = ({
|
|
10
|
+
triggerProps
|
|
11
|
+
}) => {
|
|
12
|
+
const {
|
|
13
|
+
t
|
|
14
|
+
} = useTranslation(), {
|
|
15
|
+
editor
|
|
16
|
+
} = useEditorContext(), [value, setValue] = useState("sans-serif");
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
const textStyle = editor == null ? void 0 : editor.getAttributes("textStyle");
|
|
19
|
+
setValue((textStyle == null ? void 0 : textStyle.fontFamily) ?? "");
|
|
20
|
+
}, [editor, editor == null ? void 0 : editor.state]);
|
|
21
|
+
const options = [{
|
|
22
|
+
value: "",
|
|
23
|
+
label: t("tiptap.toolbar.typo.sans")
|
|
24
|
+
}, {
|
|
25
|
+
value: "Lora",
|
|
26
|
+
label: t("tiptap.toolbar.typo.serif"),
|
|
27
|
+
className: "ff-serif"
|
|
28
|
+
}, {
|
|
29
|
+
value: "IBM Plex Mono",
|
|
30
|
+
label: t("tiptap.toolbar.typo.mono"),
|
|
31
|
+
className: "ff-script"
|
|
32
|
+
}, {
|
|
33
|
+
value: "Ecriture A",
|
|
34
|
+
label: t("tiptap.toolbar.typo.cursive"),
|
|
35
|
+
className: "ff-cursive"
|
|
36
|
+
}, {
|
|
37
|
+
value: "OpenDyslexic",
|
|
38
|
+
label: t("tiptap.toolbar.typo.dyslexic"),
|
|
39
|
+
className: "ff-dyslexic"
|
|
40
|
+
}];
|
|
41
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
42
|
+
/* @__PURE__ */ jsx(Tooltip, { message: t("tiptap.toolbar.typo.choice"), placement: "top", children: /* @__PURE__ */ jsx(IconButton, { ...triggerProps, type: "button", variant: "ghost", color: "tertiary", icon: /* @__PURE__ */ jsx(Icon, { name: "text-typo" }), "aria-label": t("tiptap.toolbar.typo.choice"), className: editor != null && editor.isActive("textStyle", {
|
|
43
|
+
color: /^#([0-9a-f]{3}){1,2}$/i
|
|
44
|
+
}) ? "selected" : "" }) }),
|
|
45
|
+
/* @__PURE__ */ jsx(Dropdown.Menu, { children: options.map((option) => /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Dropdown.RadioItem, { value: option.value, model: value, onChange: (value2) => {
|
|
46
|
+
typeof value2 == "string" && value2.length > 0 ? (editor == null || editor.chain().focus().setFontFamily(value2).run(), setValue(value2)) : (editor == null || editor.chain().focus().unsetFontFamily().run(), setValue(""));
|
|
47
|
+
}, children: /* @__PURE__ */ jsx("span", { className: option.className, children: option.label }) }) }, option.label)) })
|
|
48
|
+
] });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
EditorToolbarTypography
|
|
52
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { MediaLibraryRef } from '../../../multimedia';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** Ref to a MediaLibrary instance */
|
|
5
|
+
mediaLibraryRef: RefObject<MediaLibraryRef>;
|
|
6
|
+
/** API to open/close a Math modal. */
|
|
7
|
+
toggleMathsModal: Function;
|
|
8
|
+
}
|
|
9
|
+
export declare const EditorToolbar: ({ mediaLibraryRef, toggleMathsModal }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import "@tiptap/react";
|
|
5
|
+
import { hasExtension } from "../../utils/has-extension.js";
|
|
6
|
+
import { hasMark } from "../../utils/has-mark.js";
|
|
7
|
+
import { hasTextStyle } from "../../utils/has-text-style.js";
|
|
8
|
+
import { EditorToolbarDropdownMenu } from "./EditorToolbar.DropdownMenu.js";
|
|
9
|
+
import { EditorToolbarEmoji } from "./EditorToolbar.Emoji.js";
|
|
10
|
+
import { EditorToolbarHighlightColor } from "./EditorToolbar.HighlightColor.js";
|
|
11
|
+
import { EditorToolbarPlusMenu } from "./EditorToolbar.PlusMenu.js";
|
|
12
|
+
import { EditorToolbarTextColor } from "./EditorToolbar.TextColor.js";
|
|
13
|
+
import { EditorToolbarTextSize } from "./EditorToolbar.TextSize.js";
|
|
14
|
+
import { EditorToolbarTypography } from "./EditorToolbar.Typography.js";
|
|
15
|
+
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
16
|
+
import { useActionOptions } from "../../hooks/useActionOptions.js";
|
|
17
|
+
import { useSpeechRecognition } from "../../hooks/useSpeechRecognition.js";
|
|
18
|
+
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
19
|
+
import Toolbar from "../../../../components/Toolbar/Toolbar.js";
|
|
20
|
+
const EditorToolbar = ({
|
|
21
|
+
mediaLibraryRef,
|
|
22
|
+
toggleMathsModal
|
|
23
|
+
}) => {
|
|
24
|
+
const {
|
|
25
|
+
t
|
|
26
|
+
} = useTranslation(), {
|
|
27
|
+
id,
|
|
28
|
+
editor
|
|
29
|
+
} = useEditorContext(), [plusOptions, listOptions, alignmentOptions] = useActionOptions(editor, toggleMathsModal, mediaLibraryRef), {
|
|
30
|
+
isAvailable: canRecognizeSpeech,
|
|
31
|
+
isActive: speechRecognition,
|
|
32
|
+
toggle: toggleSpeechRecognition
|
|
33
|
+
} = useSpeechRecognition(editor), toolbarItems = useMemo(() => {
|
|
34
|
+
const showIf = (truthy) => truthy ? "show" : "hide", showLinkModal = () => {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
const {
|
|
37
|
+
state
|
|
38
|
+
} = editor;
|
|
39
|
+
state.selection.empty ? (_a = mediaLibraryRef.current) == null || _a.show("hyperlink") : (_b = mediaLibraryRef.current) == null || _b.showLink({
|
|
40
|
+
link: {
|
|
41
|
+
text: state.selection.content().content.child(0).textContent,
|
|
42
|
+
target: "_blank"
|
|
43
|
+
},
|
|
44
|
+
multiNodeSelected: state.selection.content().content.childCount > 1
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
return [
|
|
48
|
+
//--------------- UNDO ---------------//
|
|
49
|
+
{
|
|
50
|
+
type: "icon",
|
|
51
|
+
props: {
|
|
52
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "undo" }),
|
|
53
|
+
"aria-label": t("editor.option.undo"),
|
|
54
|
+
onClick: () => editor == null ? void 0 : editor.chain().focus().undo().run(),
|
|
55
|
+
disabled: !(editor != null && editor.can().undo())
|
|
56
|
+
},
|
|
57
|
+
name: "undo",
|
|
58
|
+
tooltip: t("editor.option.undo"),
|
|
59
|
+
visibility: showIf(hasExtension("history", editor))
|
|
60
|
+
},
|
|
61
|
+
//--------------- REDO ---------------//
|
|
62
|
+
{
|
|
63
|
+
type: "icon",
|
|
64
|
+
props: {
|
|
65
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "redo" }),
|
|
66
|
+
"aria-label": t("editor.option.redo"),
|
|
67
|
+
onClick: () => editor == null ? void 0 : editor.chain().focus().redo().run(),
|
|
68
|
+
disabled: !(editor != null && editor.can().redo())
|
|
69
|
+
},
|
|
70
|
+
name: "redo",
|
|
71
|
+
tooltip: t("editor.option.redo"),
|
|
72
|
+
visibility: showIf(hasExtension("history", editor))
|
|
73
|
+
},
|
|
74
|
+
//-------------------------------------//
|
|
75
|
+
{
|
|
76
|
+
type: "divider",
|
|
77
|
+
name: "div-1"
|
|
78
|
+
},
|
|
79
|
+
//--------------- IMAGE ---------------//
|
|
80
|
+
{
|
|
81
|
+
type: "icon",
|
|
82
|
+
props: {
|
|
83
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "landscape" }),
|
|
84
|
+
className: "bg-green-200",
|
|
85
|
+
"aria-label": t("tiptap.toolbar.picture"),
|
|
86
|
+
onClick: () => {
|
|
87
|
+
var _a;
|
|
88
|
+
return (_a = mediaLibraryRef.current) == null ? void 0 : _a.show("image");
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
name: "image",
|
|
92
|
+
tooltip: t("tiptap.toolbar.picture")
|
|
93
|
+
},
|
|
94
|
+
//--------------- VIDEO ---------------//
|
|
95
|
+
{
|
|
96
|
+
type: "icon",
|
|
97
|
+
props: {
|
|
98
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "record-video" }),
|
|
99
|
+
className: "bg-purple-200",
|
|
100
|
+
"aria-label": t("tiptap.toolbar.video"),
|
|
101
|
+
onClick: () => {
|
|
102
|
+
var _a;
|
|
103
|
+
return (_a = mediaLibraryRef.current) == null ? void 0 : _a.show("video");
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
name: "video",
|
|
107
|
+
tooltip: t("tiptap.toolbar.video")
|
|
108
|
+
},
|
|
109
|
+
//--------------- AUDIO ---------------//
|
|
110
|
+
{
|
|
111
|
+
type: "icon",
|
|
112
|
+
props: {
|
|
113
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "mic" }),
|
|
114
|
+
className: "bg-red-200",
|
|
115
|
+
"aria-label": t("tiptap.toolbar.audio"),
|
|
116
|
+
onClick: () => {
|
|
117
|
+
var _a;
|
|
118
|
+
return (_a = mediaLibraryRef.current) == null ? void 0 : _a.show("audio");
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
name: "audio",
|
|
122
|
+
tooltip: t("tiptap.toolbar.audio")
|
|
123
|
+
},
|
|
124
|
+
//--------------- ATTACHMENT ---------------//
|
|
125
|
+
{
|
|
126
|
+
type: "icon",
|
|
127
|
+
props: {
|
|
128
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "paperclip" }),
|
|
129
|
+
className: "bg-yellow-200",
|
|
130
|
+
"aria-label": t("tiptap.toolbar.attachment"),
|
|
131
|
+
onClick: () => {
|
|
132
|
+
var _a;
|
|
133
|
+
return (_a = mediaLibraryRef.current) == null ? void 0 : _a.show("attachment");
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
name: "attachment",
|
|
137
|
+
tooltip: t("tiptap.toolbar.attachment")
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
type: "divider",
|
|
141
|
+
name: "div-2"
|
|
142
|
+
},
|
|
143
|
+
//--------------- SPEECH TO TEXT ---------------//
|
|
144
|
+
{
|
|
145
|
+
type: "icon",
|
|
146
|
+
props: {
|
|
147
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "speech-to-text" }),
|
|
148
|
+
"aria-label": t("tiptap.toolbar.stt"),
|
|
149
|
+
className: speechRecognition ? "is-selected" : "",
|
|
150
|
+
onClick: () => toggleSpeechRecognition()
|
|
151
|
+
},
|
|
152
|
+
visibility: canRecognizeSpeech ? "show" : "hide",
|
|
153
|
+
name: "speechtotext",
|
|
154
|
+
tooltip: t("tiptap.toolbar.stt")
|
|
155
|
+
},
|
|
156
|
+
//------------------------------------//
|
|
157
|
+
{
|
|
158
|
+
type: "divider",
|
|
159
|
+
name: "div-speech",
|
|
160
|
+
visibility: canRecognizeSpeech ? "show" : "hide"
|
|
161
|
+
},
|
|
162
|
+
//--------------- TYPOGRAPHY ---------------//
|
|
163
|
+
{
|
|
164
|
+
type: "dropdown",
|
|
165
|
+
props: {
|
|
166
|
+
children: (triggerProps) => /* @__PURE__ */ jsx(EditorToolbarTypography, { triggerProps })
|
|
167
|
+
},
|
|
168
|
+
name: "text_typo",
|
|
169
|
+
visibility: showIf(hasExtension("fontFamily", editor)),
|
|
170
|
+
tooltip: t("tiptap.toolbar.typo.choice")
|
|
171
|
+
},
|
|
172
|
+
//--------------- TEXT SIZE ---------------//
|
|
173
|
+
{
|
|
174
|
+
type: "dropdown",
|
|
175
|
+
props: {
|
|
176
|
+
children: (triggerProps) => /* @__PURE__ */ jsx(EditorToolbarTextSize, { triggerProps })
|
|
177
|
+
},
|
|
178
|
+
name: "text_size",
|
|
179
|
+
visibility: showIf(hasExtension("fontSize", editor) || hasExtension("heading", editor)),
|
|
180
|
+
tooltip: t("tiptap.toolbar.size.choice")
|
|
181
|
+
},
|
|
182
|
+
//--------------- TEXT COLOR ---------------//
|
|
183
|
+
{
|
|
184
|
+
type: "dropdown",
|
|
185
|
+
props: {
|
|
186
|
+
children: (triggerProps, itemRefs) => /* @__PURE__ */ jsx(EditorToolbarTextColor, { triggerProps, itemRefs })
|
|
187
|
+
},
|
|
188
|
+
overflow: !1,
|
|
189
|
+
name: "color",
|
|
190
|
+
visibility: hasTextStyle("color", editor) ? "show" : "hide",
|
|
191
|
+
tooltip: t("tiptap.toolbar.color.text")
|
|
192
|
+
},
|
|
193
|
+
//--------------- TEXT HIGHLIGHTING COLOR ---------------//
|
|
194
|
+
{
|
|
195
|
+
type: "dropdown",
|
|
196
|
+
props: {
|
|
197
|
+
children: (triggerProps, itemRefs) => /* @__PURE__ */ jsx(EditorToolbarHighlightColor, { triggerProps, itemRefs })
|
|
198
|
+
},
|
|
199
|
+
name: "highlight",
|
|
200
|
+
visibility: showIf(hasMark("customHighlight", editor)),
|
|
201
|
+
tooltip: t("tiptap.toolbar.highlight.back")
|
|
202
|
+
},
|
|
203
|
+
//-------------------------------------//
|
|
204
|
+
{
|
|
205
|
+
type: "divider",
|
|
206
|
+
name: "div-3"
|
|
207
|
+
},
|
|
208
|
+
//--------------- BOLD ---------------//
|
|
209
|
+
{
|
|
210
|
+
type: "icon",
|
|
211
|
+
props: {
|
|
212
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "text-bold" }),
|
|
213
|
+
"aria-label": t("tiptap.toolbar.bold"),
|
|
214
|
+
className: editor != null && editor.isActive("bold") ? "is-selected" : "",
|
|
215
|
+
onClick: () => editor == null ? void 0 : editor.chain().focus().toggleBold().run(),
|
|
216
|
+
disabled: editor == null ? void 0 : editor.isActive("heading")
|
|
217
|
+
},
|
|
218
|
+
name: "bold",
|
|
219
|
+
visibility: showIf(hasMark("bold", editor)),
|
|
220
|
+
tooltip: t("tiptap.toolbar.bold")
|
|
221
|
+
},
|
|
222
|
+
//--------------- ITALIC ---------------//
|
|
223
|
+
{
|
|
224
|
+
type: "icon",
|
|
225
|
+
props: {
|
|
226
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "text-italic" }),
|
|
227
|
+
"aria-label": t("tiptap.toolbar.italic"),
|
|
228
|
+
className: editor != null && editor.isActive("italic") ? "is-selected" : "",
|
|
229
|
+
onClick: () => editor == null ? void 0 : editor.chain().focus().toggleItalic().run()
|
|
230
|
+
},
|
|
231
|
+
name: "italic",
|
|
232
|
+
visibility: showIf(hasMark("italic", editor)),
|
|
233
|
+
tooltip: t("tiptap.toolbar.italic")
|
|
234
|
+
},
|
|
235
|
+
//--------------- UNDERLINE ---------------//
|
|
236
|
+
{
|
|
237
|
+
type: "icon",
|
|
238
|
+
props: {
|
|
239
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "text-underline" }),
|
|
240
|
+
"aria-label": t("tiptap.toolbar.underline"),
|
|
241
|
+
className: editor != null && editor.isActive("underline") ? "is-selected" : "",
|
|
242
|
+
onClick: () => editor == null ? void 0 : editor.chain().focus().toggleUnderline().run()
|
|
243
|
+
},
|
|
244
|
+
name: "underline",
|
|
245
|
+
visibility: showIf(hasMark("underline", editor)),
|
|
246
|
+
tooltip: t("tiptap.toolbar.underline")
|
|
247
|
+
},
|
|
248
|
+
//-------------------------------------//
|
|
249
|
+
{
|
|
250
|
+
type: "divider",
|
|
251
|
+
name: "div-4"
|
|
252
|
+
},
|
|
253
|
+
//--------------- EMOJI ---------------//
|
|
254
|
+
{
|
|
255
|
+
type: "dropdown",
|
|
256
|
+
props: {
|
|
257
|
+
children: (triggerProps, itemRefs) => /* @__PURE__ */ jsx(EditorToolbarEmoji, { triggerProps, itemRefs })
|
|
258
|
+
},
|
|
259
|
+
name: "emoji",
|
|
260
|
+
tooltip: t("tiptap.toolbar.emojisPicker")
|
|
261
|
+
},
|
|
262
|
+
//--------------- LINKER (internal / external) ---------------//
|
|
263
|
+
{
|
|
264
|
+
type: "icon",
|
|
265
|
+
props: {
|
|
266
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "link" }),
|
|
267
|
+
"aria-label": t("tiptap.toolbar.linker"),
|
|
268
|
+
className: editor != null && editor.isActive("linker") ? "is-selected" : "",
|
|
269
|
+
onClick: () => showLinkModal()
|
|
270
|
+
},
|
|
271
|
+
name: "linker",
|
|
272
|
+
tooltip: t("tiptap.toolbar.linker")
|
|
273
|
+
},
|
|
274
|
+
//-----------------------------------//
|
|
275
|
+
{
|
|
276
|
+
type: "divider",
|
|
277
|
+
name: "div-5"
|
|
278
|
+
},
|
|
279
|
+
//--------------- LIST MENU ---------------//
|
|
280
|
+
{
|
|
281
|
+
type: "dropdown",
|
|
282
|
+
props: {
|
|
283
|
+
children: (triggerProps) => /* @__PURE__ */ jsx(EditorToolbarDropdownMenu, { triggerProps, icon: /* @__PURE__ */ jsx(Icon, { name: "bullet-list" }), ariaLabel: t("tiptap.toolbar.listoptions"), options: listOptions })
|
|
284
|
+
},
|
|
285
|
+
name: "list",
|
|
286
|
+
visibility: showIf(hasExtension("starterKit", editor)),
|
|
287
|
+
tooltip: t("tiptap.toolbar.listoptions")
|
|
288
|
+
},
|
|
289
|
+
//--------------- TEXT ALIGNMENT ---------------//
|
|
290
|
+
{
|
|
291
|
+
type: "dropdown",
|
|
292
|
+
props: {
|
|
293
|
+
children: (triggerProps) => /* @__PURE__ */ jsx(EditorToolbarDropdownMenu, { triggerProps, icon: /* @__PURE__ */ jsx(Icon, { name: "align-left" }), ariaLabel: t("tiptap.toolbar.align"), options: alignmentOptions })
|
|
294
|
+
},
|
|
295
|
+
name: "alignment",
|
|
296
|
+
visibility: showIf(hasExtension("textAlign", editor)),
|
|
297
|
+
tooltip: t("tiptap.toolbar.align")
|
|
298
|
+
},
|
|
299
|
+
//-------------------------------------//
|
|
300
|
+
{
|
|
301
|
+
type: "divider",
|
|
302
|
+
name: "div-6"
|
|
303
|
+
},
|
|
304
|
+
//--------------- MORE sub-menu ---------------//
|
|
305
|
+
{
|
|
306
|
+
type: "dropdown",
|
|
307
|
+
props: {
|
|
308
|
+
children: () => /* @__PURE__ */ jsx(EditorToolbarPlusMenu, { options: plusOptions })
|
|
309
|
+
},
|
|
310
|
+
name: "plus",
|
|
311
|
+
visibility: showIf(hasExtension("textAlign", editor))
|
|
312
|
+
}
|
|
313
|
+
];
|
|
314
|
+
}, [alignmentOptions, canRecognizeSpeech, editor, listOptions, mediaLibraryRef, plusOptions, speechRecognition, t, toggleSpeechRecognition]);
|
|
315
|
+
return /* @__PURE__ */ jsx("div", { className: "sticky-top z-1 editor-toolbar rounded-3", children: /* @__PURE__ */ jsx(Toolbar, { items: toolbarItems, variant: "no-shadow", className: "rounded-top-3", isBlock: !0, align: "left", ariaControls: id }) });
|
|
316
|
+
};
|
|
317
|
+
export {
|
|
318
|
+
EditorToolbar
|
|
319
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EditorToolbar';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Attachment } from "@edifice.io/tiptap-extensions";
|
|
2
|
+
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
3
|
+
const AttachmentNodeView = (Component) => Attachment.extend({
|
|
4
|
+
addNodeView() {
|
|
5
|
+
return ReactNodeViewRenderer(Component);
|
|
6
|
+
}
|
|
7
|
+
}), AttachmentNodeView$1 = AttachmentNodeView;
|
|
8
|
+
export {
|
|
9
|
+
AttachmentNodeView$1 as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Audio } from "@edifice.io/tiptap-extensions";
|
|
2
|
+
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
3
|
+
const AudioNodeView = (Component) => Audio.extend({
|
|
4
|
+
addNodeView() {
|
|
5
|
+
return ReactNodeViewRenderer(Component);
|
|
6
|
+
}
|
|
7
|
+
}), AudioNodeView$1 = AudioNodeView;
|
|
8
|
+
export {
|
|
9
|
+
AudioNodeView$1 as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CustomImage } from "@edifice.io/tiptap-extensions";
|
|
2
|
+
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
3
|
+
const ImageNodeView = (Component) => CustomImage.extend({
|
|
4
|
+
addNodeView() {
|
|
5
|
+
return ReactNodeViewRenderer(Component);
|
|
6
|
+
}
|
|
7
|
+
}), ImageNodeView$1 = ImageNodeView;
|
|
8
|
+
export {
|
|
9
|
+
ImageNodeView$1 as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Linker } from "@edifice.io/tiptap-extensions";
|
|
2
|
+
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
3
|
+
const LinkerNodeView = (Component) => Linker.extend({
|
|
4
|
+
addNodeView() {
|
|
5
|
+
return ReactNodeViewRenderer(Component);
|
|
6
|
+
}
|
|
7
|
+
}), LinkerNodeView$1 = LinkerNodeView;
|
|
8
|
+
export {
|
|
9
|
+
LinkerNodeView$1 as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Video } from "@edifice.io/tiptap-extensions";
|
|
2
|
+
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
3
|
+
const VideoNodeView = (Component) => Video.extend({
|
|
4
|
+
addNodeView() {
|
|
5
|
+
return ReactNodeViewRenderer(Component);
|
|
6
|
+
}
|
|
7
|
+
}), VideoNodeView$1 = VideoNodeView;
|
|
8
|
+
export {
|
|
9
|
+
VideoNodeView$1 as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as AudioNodeView } from './AudioNodeView';
|
|
2
|
+
export { default as AttachmentNodeView } from './AttachmentNodeView';
|
|
3
|
+
export { default as ImageNodeView } from './ImageNodeView';
|
|
4
|
+
export { default as LinkerNodeView } from './LinkerNodeView';
|
|
5
|
+
export { default as VideoNodeView } from './VideoNodeView';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { NodeViewWrapper } from "@tiptap/react";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import Attachment from "../../../../components/Attachment/Attachment.js";
|
|
6
|
+
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
7
|
+
import { Grid } from "../../../../components/Grid/Grid.js";
|
|
8
|
+
import IconButton from "../../../../components/Button/IconButton.js";
|
|
9
|
+
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
10
|
+
const AttachmentRenderer = (props) => {
|
|
11
|
+
const {
|
|
12
|
+
t
|
|
13
|
+
} = useTranslation(), {
|
|
14
|
+
node
|
|
15
|
+
} = props, {
|
|
16
|
+
editable
|
|
17
|
+
} = useEditorContext(), [attachmentArrayAttrs, setAttachmentArrayAttrs] = useState(node.attrs.links), handleDelete = (index) => {
|
|
18
|
+
setAttachmentArrayAttrs((oldAttachments) => oldAttachments.filter((_, i) => i !== index));
|
|
19
|
+
};
|
|
20
|
+
return attachmentArrayAttrs.length !== 0 && /* @__PURE__ */ jsx(NodeViewWrapper, { children: /* @__PURE__ */ jsxs("div", { style: {
|
|
21
|
+
backgroundColor: "#F2F2F2",
|
|
22
|
+
borderRadius: ".8rem",
|
|
23
|
+
padding: "1.2rem"
|
|
24
|
+
}, "data-drag-handle": !0, children: [
|
|
25
|
+
/* @__PURE__ */ jsx("p", { className: "m-12 mt-0", children: t("tiptap.attachments.bloc") }),
|
|
26
|
+
/* @__PURE__ */ jsx(Grid, { children: attachmentArrayAttrs == null ? void 0 : attachmentArrayAttrs.map((attachment, index) => /* @__PURE__ */ jsx(Grid.Col, { sm: "6", children: /* @__PURE__ */ jsx(Attachment, { name: attachment.name, options: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
+
/* @__PURE__ */ jsx("a", { href: attachment.href, download: !0, children: /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.download"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(Icon, { name: "download" }), variant: "ghost" }) }),
|
|
28
|
+
editable && /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.delete"), color: "danger", type: "button", icon: /* @__PURE__ */ jsx(Icon, { name: "delete" }), variant: "ghost", onClick: () => handleDelete(index) })
|
|
29
|
+
] }) }) }, index)) })
|
|
30
|
+
] }) });
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
AttachmentRenderer
|
|
34
|
+
};
|