@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,169 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useState, useCallback, useEffect } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import useWorkspaceSearch from "../../../core/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
6
|
+
import { Grid } from "../../../components/Grid/Grid.js";
|
|
7
|
+
import TreeView from "../../../components/TreeView/TreeView.js";
|
|
8
|
+
import SearchBar from "../../../components/SearchBar/SearchBar.js";
|
|
9
|
+
import FileCard from "../../../components/FileCard/FileCard.js";
|
|
10
|
+
import Dropdown from "../../../components/Dropdown/Dropdown.js";
|
|
11
|
+
import { Icon } from "../../../components/Icon/Icon.js";
|
|
12
|
+
import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
13
|
+
import EmptyScreen from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
14
|
+
import { findTreeNode } from "../../../utils/findTreeNode.js";
|
|
15
|
+
const Workspace = ({
|
|
16
|
+
roles,
|
|
17
|
+
onSelect,
|
|
18
|
+
multiple = !0,
|
|
19
|
+
className,
|
|
20
|
+
defaultFolder,
|
|
21
|
+
showPublicFolder
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
t
|
|
25
|
+
} = useTranslation(), {
|
|
26
|
+
root: ownerRoot,
|
|
27
|
+
loadContent: loadOwnerDocs
|
|
28
|
+
} = useWorkspaceSearch("root", t("workspace.tree.owner"), "owner", roles), {
|
|
29
|
+
root: sharedRoot,
|
|
30
|
+
loadContent: loadSharedDocs
|
|
31
|
+
} = useWorkspaceSearch("root", t("workspace.tree.shared"), "shared", roles), {
|
|
32
|
+
root: protectRoot,
|
|
33
|
+
loadContent: loadProtectedDocs
|
|
34
|
+
} = useWorkspaceSearch("root", t("workspace.tree.protected"), "protected", roles), {
|
|
35
|
+
root: publicRoot,
|
|
36
|
+
loadContent: loadPublicDocs
|
|
37
|
+
} = useWorkspaceSearch("root", t("workspace.tree.public"), "public", roles), ownerRef = useRef(null), sharedRef = useRef(null), protectRef = useRef(null), publicRef = useRef(null), [currentFilter, setCurrentFilter] = useState(() => defaultFolder === "public" ? showPublicFolder ? defaultFolder : "protected" : defaultFolder === "protected" || defaultFolder === "shared" ? defaultFolder : "owner"), [currentNode, setCurrentNode] = useState(() => defaultFolder === "public" ? showPublicFolder ? publicRoot : protectRoot : defaultFolder === "protected" ? protectRoot : defaultFolder === "shared" ? sharedRoot : ownerRoot), [documents, setDocuments] = useState(), [searchTerm, setSearchTerm] = useState(null), [sortOrder, setSortOrder] = useState(["modified", "desc"]), [selectedDocuments, setSelectedDocuments] = useState([]), rootNodeFor = useCallback((filter) => {
|
|
38
|
+
switch (filter) {
|
|
39
|
+
case "owner":
|
|
40
|
+
return {
|
|
41
|
+
root: ownerRoot,
|
|
42
|
+
othersRef: [sharedRef, protectRef, publicRef]
|
|
43
|
+
};
|
|
44
|
+
case "shared":
|
|
45
|
+
return {
|
|
46
|
+
root: sharedRoot,
|
|
47
|
+
othersRef: [ownerRef, protectRef, publicRef]
|
|
48
|
+
};
|
|
49
|
+
case "protected":
|
|
50
|
+
return {
|
|
51
|
+
root: protectRoot,
|
|
52
|
+
othersRef: [ownerRef, sharedRef, publicRef]
|
|
53
|
+
};
|
|
54
|
+
case "public":
|
|
55
|
+
return {
|
|
56
|
+
root: publicRoot,
|
|
57
|
+
othersRef: [ownerRef, sharedRef, protectRef]
|
|
58
|
+
};
|
|
59
|
+
default:
|
|
60
|
+
throw "no.root.node";
|
|
61
|
+
}
|
|
62
|
+
}, [ownerRoot, sharedRoot, protectRoot, publicRoot]), loadContent = useCallback(() => {
|
|
63
|
+
switch (currentFilter) {
|
|
64
|
+
case "owner":
|
|
65
|
+
loadOwnerDocs(currentNode.id);
|
|
66
|
+
break;
|
|
67
|
+
case "shared":
|
|
68
|
+
loadSharedDocs(currentNode.id);
|
|
69
|
+
break;
|
|
70
|
+
case "protected":
|
|
71
|
+
loadProtectedDocs(currentNode.id);
|
|
72
|
+
break;
|
|
73
|
+
case "public":
|
|
74
|
+
loadPublicDocs(currentNode.id);
|
|
75
|
+
break;
|
|
76
|
+
default:
|
|
77
|
+
throw "no.way";
|
|
78
|
+
}
|
|
79
|
+
}, [currentFilter, currentNode.id, loadOwnerDocs, loadProtectedDocs, loadPublicDocs, loadSharedDocs]);
|
|
80
|
+
function selectAndLoadContent(filter, nodeId) {
|
|
81
|
+
setCurrentFilter(filter);
|
|
82
|
+
const {
|
|
83
|
+
root,
|
|
84
|
+
othersRef
|
|
85
|
+
} = rootNodeFor(filter), targetNode = findTreeNode(root, (node) => node.id === nodeId);
|
|
86
|
+
targetNode && (setCurrentNode(targetNode), othersRef.forEach((otherRef) => {
|
|
87
|
+
var _a;
|
|
88
|
+
return (_a = otherRef.current) == null ? void 0 : _a.unselectAll();
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
var _a;
|
|
93
|
+
let ref;
|
|
94
|
+
switch (currentFilter) {
|
|
95
|
+
case "owner":
|
|
96
|
+
ref = ownerRef;
|
|
97
|
+
break;
|
|
98
|
+
case "shared":
|
|
99
|
+
ref = sharedRef;
|
|
100
|
+
break;
|
|
101
|
+
case "protected":
|
|
102
|
+
ref = protectRef;
|
|
103
|
+
break;
|
|
104
|
+
case "public":
|
|
105
|
+
ref = publicRef;
|
|
106
|
+
break;
|
|
107
|
+
default:
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
(_a = ref == null ? void 0 : ref.current) == null || _a.select("root");
|
|
111
|
+
}, [currentFilter]), useEffect(loadContent, [loadContent]), useEffect(() => {
|
|
112
|
+
if (currentNode.files) {
|
|
113
|
+
let list = [].concat(currentNode.files);
|
|
114
|
+
searchTerm && (list = list.filter((f) => f.name.indexOf(searchTerm) >= 0));
|
|
115
|
+
const sortFunction = sortOrder[0] === "name" ? sortOrder[1] === "asc" ? (a, b) => compare(a.name, b.name) : (a, b) => compare(b.name, a.name) : (a, b) => compare(b.modified, a.modified);
|
|
116
|
+
setDocuments(() => list.sort(sortFunction));
|
|
117
|
+
} else
|
|
118
|
+
setDocuments(void 0);
|
|
119
|
+
}, [currentNode, ownerRoot, protectRoot, sharedRoot, publicRoot, searchTerm, sortOrder]);
|
|
120
|
+
const handleSearchChange = useCallback((e) => {
|
|
121
|
+
setSearchTerm(e.target.value);
|
|
122
|
+
}, [setSearchTerm]);
|
|
123
|
+
function compare(a, b) {
|
|
124
|
+
return a ? b ? a.localeCompare(b) : 1 : -1;
|
|
125
|
+
}
|
|
126
|
+
function getSortOrderLabel() {
|
|
127
|
+
return sortOrder[0] === "name" ? sortOrder[1] === "asc" ? t("sort.order.alpha.asc") : t("sort.order.alpha.desc") : t("sort.order.modify.desc");
|
|
128
|
+
}
|
|
129
|
+
function handleSelectDoc(doc) {
|
|
130
|
+
let currentDocuments = [...selectedDocuments];
|
|
131
|
+
multiple ? currentDocuments.includes(doc) ? currentDocuments = currentDocuments.filter((selectedDocument) => selectedDocument._id !== doc._id) : currentDocuments = [...currentDocuments, doc] : currentDocuments = [doc], setSelectedDocuments(currentDocuments), onSelect(currentDocuments);
|
|
132
|
+
}
|
|
133
|
+
const workspace = clsx("workspace flex-grow-1 gap-0", className);
|
|
134
|
+
return /* @__PURE__ */ jsxs(Grid, { className: workspace, children: [
|
|
135
|
+
/* @__PURE__ */ jsx(Grid.Col, { sm: "12", md: "3", xl: "4", className: "workspace-folders p-12 pt-0 gap-12", children: /* @__PURE__ */ jsxs("div", { style: {
|
|
136
|
+
position: "sticky",
|
|
137
|
+
top: 0,
|
|
138
|
+
paddingTop: "1.2rem"
|
|
139
|
+
}, children: [
|
|
140
|
+
/* @__PURE__ */ jsx(TreeView, { ref: ownerRef, data: ownerRoot, onTreeItemSelect: (nodeId) => selectAndLoadContent("owner", nodeId), onTreeItemUnfold: (nodeId) => selectAndLoadContent("owner", nodeId) }),
|
|
141
|
+
/* @__PURE__ */ jsx(TreeView, { ref: sharedRef, data: sharedRoot, onTreeItemSelect: (nodeId) => selectAndLoadContent("shared", nodeId), onTreeItemUnfold: (nodeId) => selectAndLoadContent("shared", nodeId) }),
|
|
142
|
+
/* @__PURE__ */ jsx(TreeView, { ref: protectRef, data: protectRoot, onTreeItemSelect: (nodeId) => selectAndLoadContent("protected", nodeId), onTreeItemUnfold: (nodeId) => selectAndLoadContent("protected", nodeId) }),
|
|
143
|
+
showPublicFolder && /* @__PURE__ */ jsx(TreeView, { ref: publicRef, data: publicRoot, onTreeItemSelect: (nodeId) => selectAndLoadContent("public", nodeId), onTreeItemUnfold: (nodeId) => selectAndLoadContent("public", nodeId) })
|
|
144
|
+
] }) }),
|
|
145
|
+
/* @__PURE__ */ jsx(Grid.Col, { sm: "12", md: "5", xl: "8", children: /* @__PURE__ */ jsxs(Grid, { className: "flex-grow-1 gap-0", children: [
|
|
146
|
+
/* @__PURE__ */ jsxs(Grid.Col, { sm: "4", md: "8", xl: "12", children: [
|
|
147
|
+
/* @__PURE__ */ jsx("div", { className: "workspace-search px-16 py-8 ", children: /* @__PURE__ */ jsx(SearchBar, { isVariant: !0, className: "gap-16", onChange: handleSearchChange }) }),
|
|
148
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center justify-content-end px-8 py-4", children: [
|
|
149
|
+
/* @__PURE__ */ jsx("small", { className: "text-muted", children: t("workspace.search.order") }),
|
|
150
|
+
/* @__PURE__ */ jsxs(Dropdown, { children: [
|
|
151
|
+
/* @__PURE__ */ jsx(Dropdown.Trigger, { size: "sm", label: getSortOrderLabel(), variant: "ghost" }),
|
|
152
|
+
/* @__PURE__ */ jsxs(Dropdown.Menu, { children: [
|
|
153
|
+
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(Icon, { name: "sort-time" }), onClick: () => setSortOrder(["modified", "desc"]), children: t("sort.order.modify.desc") }),
|
|
154
|
+
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(Icon, { name: "sort-ascending-letters" }), onClick: () => setSortOrder(["name", "asc"]), children: t("sort.order.alpha.asc") }),
|
|
155
|
+
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(Icon, { name: "sort-descending-letters" }), onClick: () => setSortOrder(["name", "desc"]), children: t("sort.order.alpha.desc") })
|
|
156
|
+
] })
|
|
157
|
+
] })
|
|
158
|
+
] })
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ jsx(Grid.Col, { sm: "4", md: "8", xl: "12", className: "p-8 gap-8", children: documents ? documents.length !== 0 ? /* @__PURE__ */ jsx("div", { className: "grid grid-workspace", children: documents.map((doc) => {
|
|
161
|
+
const isSelected = selectedDocuments.includes(doc);
|
|
162
|
+
return /* @__PURE__ */ jsx(FileCard, { doc, isSelected, onClick: () => handleSelectDoc(doc) }, doc._id);
|
|
163
|
+
}) }) : /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: "/assets/themes/edifice-bootstrap/images/emptyscreen/illu-trash.svg", text: t("workspace.empty.docSpace"), title: t("explorer.emptyScreen.trash.title") }) : /* @__PURE__ */ jsx(LoadingScreen, {}) })
|
|
164
|
+
] }) })
|
|
165
|
+
] });
|
|
166
|
+
}, Component = Workspace;
|
|
167
|
+
export {
|
|
168
|
+
Component as default
|
|
169
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as default2 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
2
|
+
import { default as default3 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
3
|
+
import { default as default4 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
4
|
+
import { default as default5 } from "./modules/multimedia/Linker/InternalLinker.js";
|
|
5
|
+
import { default as default6 } from "./modules/multimedia/Linker/ExternalLinker.js";
|
|
6
|
+
import { default as default7 } from "./modules/multimedia/LinkerCard/LinkerCard.js";
|
|
7
|
+
import { default as default8 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
8
|
+
import { default as default9 } from "./modules/multimedia/Embed/Embed.js";
|
|
9
|
+
import { default as default10 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
10
|
+
export {
|
|
11
|
+
default8 as AudioRecorder,
|
|
12
|
+
default9 as Embed,
|
|
13
|
+
default6 as ExternalLinker,
|
|
14
|
+
default10 as ImageEditor,
|
|
15
|
+
default5 as InternalLinker,
|
|
16
|
+
default7 as LinkerCard,
|
|
17
|
+
default2 as MediaLibrary,
|
|
18
|
+
default4 as VideoRecorder,
|
|
19
|
+
default3 as Workspace
|
|
20
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { useHelp } from "../Help/hooks/useHelp.js";
|
|
5
|
+
import SearchEngine from "../SearchEngine/SearchEngine.js";
|
|
6
|
+
import { Badge } from "./Badge.js";
|
|
7
|
+
import { NavItem } from "./NavItem.js";
|
|
8
|
+
import { NavLink } from "./NavLink.js";
|
|
9
|
+
import { Navbar } from "./Navbar.js";
|
|
10
|
+
import { NavBarNav } from "./NavbarNav.js";
|
|
11
|
+
import { WidgetAppsBody, WidgetAppsFooter } from "./WidgetApps.js";
|
|
12
|
+
import useConversation from "../../core/useConversation/useConversation.js";
|
|
13
|
+
import useUser from "../../core/useUser/useUser.js";
|
|
14
|
+
import useHasWorkflow from "../../core/useHasWorkflow/useHasWorkflow.js";
|
|
15
|
+
import useHeader from "../../core/useHeader/useHeader.js";
|
|
16
|
+
import Avatar from "../../components/Avatar/Avatar.js";
|
|
17
|
+
import VisuallyHidden from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
18
|
+
import Help from "../Help/Help.js";
|
|
19
|
+
import Logo from "../../components/Logo/Logo.js";
|
|
20
|
+
import { Popover, PopoverBody, PopoverFooter } from "../../components/Popover/Popover.js";
|
|
21
|
+
import { useOdeClient } from "../../core/OdeClientProvider/OdeClientProvider.js";
|
|
22
|
+
import { useOdeTheme } from "../../core/ThemeProvider/ThemeProvider.js";
|
|
23
|
+
import { Icon } from "../../components/Icon/Icon.js";
|
|
24
|
+
const Header = ({
|
|
25
|
+
is1d = !1,
|
|
26
|
+
src = ""
|
|
27
|
+
}) => {
|
|
28
|
+
const {
|
|
29
|
+
t
|
|
30
|
+
} = useTranslation(), {
|
|
31
|
+
messages,
|
|
32
|
+
msgLink,
|
|
33
|
+
zimbraWorkflow
|
|
34
|
+
} = useConversation(), {
|
|
35
|
+
user,
|
|
36
|
+
avatar
|
|
37
|
+
} = useUser(), {
|
|
38
|
+
currentLanguage,
|
|
39
|
+
currentApp
|
|
40
|
+
} = useOdeClient(), hasOldHelpEnableWorkflow = useHasWorkflow("org.entcore.portal.controllers.PortalController|oldHelpEnable") || !1, {
|
|
41
|
+
isModalOpen: isHelpOpen,
|
|
42
|
+
setIsModalOpen: setIsHelpOpen,
|
|
43
|
+
parsedContent,
|
|
44
|
+
parsedHeadline,
|
|
45
|
+
error
|
|
46
|
+
} = useHelp(), classes = clsx("header", {
|
|
47
|
+
"no-2d": is1d,
|
|
48
|
+
"no-1d": !is1d
|
|
49
|
+
}), {
|
|
50
|
+
title,
|
|
51
|
+
bookmarkedApps,
|
|
52
|
+
appsRef,
|
|
53
|
+
isAppsHovered,
|
|
54
|
+
popoverAppsId,
|
|
55
|
+
userAvatar,
|
|
56
|
+
userName,
|
|
57
|
+
welcomeUser,
|
|
58
|
+
communityWorkflow,
|
|
59
|
+
conversationWorflow,
|
|
60
|
+
searchWorkflow,
|
|
61
|
+
isCollapsed,
|
|
62
|
+
toggleCollapsedNav,
|
|
63
|
+
handleLogout
|
|
64
|
+
} = useHeader({
|
|
65
|
+
user,
|
|
66
|
+
avatar
|
|
67
|
+
}), hasMessages = messages > 0, {
|
|
68
|
+
theme
|
|
69
|
+
} = useOdeTheme();
|
|
70
|
+
return /* @__PURE__ */ jsx("header", { className: classes, children: is1d ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
71
|
+
/* @__PURE__ */ jsx("div", { className: "container-fluid", children: /* @__PURE__ */ jsxs(Navbar, { children: [
|
|
72
|
+
/* @__PURE__ */ jsx("a", { className: "navbar-title d-md-none text-truncate h4", href: currentApp ? currentApp.address : "/timeline/timeline", children: title }),
|
|
73
|
+
/* @__PURE__ */ jsxs("div", { className: "d-none d-md-inline-flex gap-12 align-items-center", children: [
|
|
74
|
+
/* @__PURE__ */ jsx(Avatar, { alt: userName, size: "sm", src: userAvatar, variant: "circle", width: "32", height: "32" }),
|
|
75
|
+
/* @__PURE__ */ jsx("span", { className: "navbar-text", children: welcomeUser })
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ jsxs(NavBarNav, { className: "gap-8", "aria-hidden": "false", "aria-label": t("navbar.main.navigation"), children: [
|
|
78
|
+
conversationWorflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/conversation/conversation", className: "nav-link", children: [
|
|
79
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/one-messaging", className: "icon notification" }),
|
|
80
|
+
hasMessages && /* @__PURE__ */ jsx(Badge, { children: messages }),
|
|
81
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("navbar.messages") })
|
|
82
|
+
] }) }),
|
|
83
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(NavLink, { link: "/userbook/mon-compte", className: "dropdown-item", translate: t("navbar.myaccount"), children: /* @__PURE__ */ jsx(Icon, { name: "nav/one-profile", className: "icon user" }) }) }),
|
|
84
|
+
currentLanguage === "fr" && hasOldHelpEnableWorkflow ? /* @__PURE__ */ jsxs(NavItem, { children: [
|
|
85
|
+
/* @__PURE__ */ jsxs("button", { className: "nav-link", onClick: () => {
|
|
86
|
+
setIsHelpOpen(!0);
|
|
87
|
+
}, children: [
|
|
88
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/neo-assistance", className: "icon help" }),
|
|
89
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("navbar.help") })
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
92
|
+
] }) : null,
|
|
93
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
|
|
94
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/disconnect", className: "icon logout" }),
|
|
95
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("navbar.disconnect") })
|
|
96
|
+
] }) }),
|
|
97
|
+
/* @__PURE__ */ jsx(NavItem, { className: "d-md-none", children: /* @__PURE__ */ jsx("button", { className: "nav-link btn btn-naked", type: "button", "aria-controls": "navbarCollapsed", "aria-expanded": !isCollapsed, "aria-label": t("navbar.secondary.navigation"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsx(Icon, { name: "rafter-down", className: "icon rafter-down", width: "20", height: "20" }) }) })
|
|
98
|
+
] })
|
|
99
|
+
] }) }),
|
|
100
|
+
/* @__PURE__ */ jsx(Navbar, { className: "no-2d navbar-secondary navbar-expand-md", "aria-label": t("navbar.secondary.navigation"), children: /* @__PURE__ */ jsx("div", { className: "container-fluid", children: /* @__PURE__ */ jsxs("div", { className: `collapse navbar-collapse ${isCollapsed ? "" : "show"}`, id: "navbarCollapsed", children: [
|
|
101
|
+
/* @__PURE__ */ jsx(Logo, { is1d: !0, src: `${src}/img/illustrations/logo.png`, translate: t("navbar.home") }),
|
|
102
|
+
/* @__PURE__ */ jsxs(NavBarNav, { className: "gap-8", children: [
|
|
103
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/timeline/timeline", className: "button", children: [
|
|
104
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/new-release", color: "#fff", className: "d-md-none" }),
|
|
105
|
+
/* @__PURE__ */ jsx("span", { className: "d-inline-block", children: t("portal.header.navigation.whatsnew") })
|
|
106
|
+
] }) }),
|
|
107
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/userbook/annuaire", className: "button", children: [
|
|
108
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/userbook", color: "#fff", className: "d-md-none" }),
|
|
109
|
+
/* @__PURE__ */ jsx("span", { className: "d-inline-block", children: t("portal.header.navigation.classMembers") })
|
|
110
|
+
] }) }),
|
|
111
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/welcome", className: "button", children: [
|
|
112
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/my-apps", color: "#fff", className: "d-md-none" }),
|
|
113
|
+
/* @__PURE__ */ jsx("span", { className: "d-inline-block", children: t("portal.header.navigation.myapps") })
|
|
114
|
+
] }) })
|
|
115
|
+
] })
|
|
116
|
+
] }) }) })
|
|
117
|
+
] }) : /* @__PURE__ */ jsx(Navbar, { className: "navbar-expand-md", children: /* @__PURE__ */ jsxs("div", { className: "container-fluid", children: [
|
|
118
|
+
/* @__PURE__ */ jsx(Logo, { src: `${src}/img/illustrations/logo.png` }),
|
|
119
|
+
/* @__PURE__ */ jsx("a", { href: currentApp ? currentApp.address : "/timeline/timeline", className: "navbar-title text-truncate d-md-none", children: title }),
|
|
120
|
+
/* @__PURE__ */ jsxs("ul", { className: "navbar-nav", children: [
|
|
121
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(NavLink, { link: "/timeline/timeline", translate: t("navbar.home"), children: /* @__PURE__ */ jsx(Icon, { name: "nav/home", color: "#fff" }) }) }),
|
|
122
|
+
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", ref: appsRef, id: popoverAppsId, "aria-haspopup": "true", "aria-expanded": isAppsHovered, children: [
|
|
123
|
+
/* @__PURE__ */ jsx(NavLink, { link: "/welcome", translate: t("navbar.applications"), children: /* @__PURE__ */ jsx(Icon, { name: "nav/my-apps", color: "#fff" }) }),
|
|
124
|
+
/* @__PURE__ */ jsxs(Popover, { className: "top-100 widget", id: popoverAppsId, isVisible: isAppsHovered, children: [
|
|
125
|
+
/* @__PURE__ */ jsx(PopoverBody, { children: /* @__PURE__ */ jsx(WidgetAppsBody, { bookmarkedApps }) }),
|
|
126
|
+
/* @__PURE__ */ jsx(PopoverFooter, { className: "widget-footer border-top border-ghost", children: /* @__PURE__ */ jsx(WidgetAppsFooter, {}) })
|
|
127
|
+
] })
|
|
128
|
+
] }),
|
|
129
|
+
conversationWorflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs(NavLink, { className: "position-relative", link: "/conversation/conversation", translate: t("conversation"), children: [
|
|
130
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/neo-messaging", color: "#fff" }),
|
|
131
|
+
hasMessages && /* @__PURE__ */ jsx(Badge, { children: messages })
|
|
132
|
+
] }) }),
|
|
133
|
+
zimbraWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs(NavLink, { className: "position-relative", link: msgLink, translate: t("conversation"), children: [
|
|
134
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/neo-messaging", color: "#fff" }),
|
|
135
|
+
hasMessages && /* @__PURE__ */ jsx(Badge, { children: messages })
|
|
136
|
+
] }) }),
|
|
137
|
+
currentLanguage === "fr" && hasOldHelpEnableWorkflow ? /* @__PURE__ */ jsxs(NavItem, { children: [
|
|
138
|
+
/* @__PURE__ */ jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
|
|
139
|
+
setIsHelpOpen(!0);
|
|
140
|
+
}, children: [
|
|
141
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/neo-assistance", color: "#fff" }),
|
|
142
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("support") })
|
|
143
|
+
] }),
|
|
144
|
+
/* @__PURE__ */ jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
145
|
+
] }) : null,
|
|
146
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("div", { className: "dropdown", children: [
|
|
147
|
+
/* @__PURE__ */ jsx("button", { className: "nav-link btn btn-naked d-md-none", type: "button", "aria-controls": "dropdown-navbar", "aria-expanded": !isCollapsed, "aria-label": t("navbar.open.menu"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsx(Icon, { name: "rafter-down", className: "icon rafter-down", width: "20", height: "20", color: "#fff" }) }),
|
|
148
|
+
/* @__PURE__ */ jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
149
|
+
communityWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/community", className: "nav-link dropdown-item", children: [
|
|
150
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/community", className: "icon community" }),
|
|
151
|
+
/* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.community") })
|
|
152
|
+
] }) }),
|
|
153
|
+
searchWorkflow ? /* @__PURE__ */ jsx(SearchEngine, {}) : null,
|
|
154
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/userbook/mon-compte", className: "nav-link dropdown-item", children: [
|
|
155
|
+
/* @__PURE__ */ jsx(Avatar, { alt: userName, size: "sm", src: userAvatar, variant: "circle", className: "bg-white", width: "32", height: "32" }),
|
|
156
|
+
/* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.myaccount") })
|
|
157
|
+
] }) }),
|
|
158
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx("hr", { className: "dropdown-divider" }) }),
|
|
159
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? "/"), className: "nav-link dropdown-item", children: [
|
|
160
|
+
/* @__PURE__ */ jsx(Icon, { name: "nav/disconnect", className: "icon logout" }),
|
|
161
|
+
/* @__PURE__ */ jsx("span", { id: "logout-label", className: "nav-text", children: t("navbar.disconnect") })
|
|
162
|
+
] }) })
|
|
163
|
+
] })
|
|
164
|
+
] }) })
|
|
165
|
+
] })
|
|
166
|
+
] }) }) });
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
Header as default
|
|
170
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface NavItemProps extends React.ComponentPropsWithRef<'li'> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const NavItem: import('react').ForwardRefExoticComponent<Omit<NavItemProps, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
const NavItem = /* @__PURE__ */ forwardRef(({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
...restProps
|
|
8
|
+
}, ref) => {
|
|
9
|
+
const classes = clsx("nav-item", className);
|
|
10
|
+
return /* @__PURE__ */ jsx("li", { ref, className: classes, ...restProps, children });
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
NavItem
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface NavLinkProps<T> {
|
|
3
|
+
/**
|
|
4
|
+
* href link
|
|
5
|
+
*/
|
|
6
|
+
link: T;
|
|
7
|
+
/**
|
|
8
|
+
* To override default classes
|
|
9
|
+
*/
|
|
10
|
+
className?: T;
|
|
11
|
+
/**
|
|
12
|
+
* Children props
|
|
13
|
+
*/
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Translate Text
|
|
17
|
+
*/
|
|
18
|
+
translate?: T;
|
|
19
|
+
/**
|
|
20
|
+
* Give Navlink Button Style (for 1D navbar)
|
|
21
|
+
*/
|
|
22
|
+
button?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function NavLink({ link, className, children, translate, ...restProps }: NavLinkProps<string>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import VisuallyHidden from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
4
|
+
function NavLink({
|
|
5
|
+
link,
|
|
6
|
+
className,
|
|
7
|
+
children,
|
|
8
|
+
translate,
|
|
9
|
+
...restProps
|
|
10
|
+
}) {
|
|
11
|
+
const classes = clsx("nav-link", className);
|
|
12
|
+
return /* @__PURE__ */ jsxs("a", { href: link, className: classes, ...restProps, children: [
|
|
13
|
+
children,
|
|
14
|
+
translate && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx("span", { className: "nav-text", children: translate }) })
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
NavLink
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
function Navbar({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
...restProps
|
|
7
|
+
}) {
|
|
8
|
+
const classes = clsx("navbar", className);
|
|
9
|
+
return /* @__PURE__ */ jsx("nav", { className: classes, ...restProps, children });
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
Navbar
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface NavBarNavProps extends React.ComponentPropsWithoutRef<'ul'> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function NavBarNav({ children, className, ...restProps }: NavBarNavProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
function NavBarNav({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
...restProps
|
|
7
|
+
}) {
|
|
8
|
+
const classes = clsx("navbar-nav", className);
|
|
9
|
+
return /* @__PURE__ */ jsx("ul", { className: classes, ...restProps, children });
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
NavBarNav
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IWebApp } from 'edifice-ts-client';
|
|
3
|
+
export declare const WidgetAppsFooter: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const WidgetAppsBody: ({ bookmarkedApps, }: {
|
|
5
|
+
bookmarkedApps: IWebApp[];
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function WidgetApps({ children }: {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import { AppIcon } from "../../components/AppIcon/AppIcon.js";
|
|
4
|
+
const WidgetAppsFooter = () => {
|
|
5
|
+
const {
|
|
6
|
+
t
|
|
7
|
+
} = useTranslation();
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { className: "widget-footer", children: /* @__PURE__ */ jsx("div", { className: "widget-footer-action", children: /* @__PURE__ */ jsx("a", { href: "/welcome", className: "link", children: t("plus") }) }) });
|
|
9
|
+
}, WidgetAppsBody = ({
|
|
10
|
+
bookmarkedApps
|
|
11
|
+
}) => {
|
|
12
|
+
const {
|
|
13
|
+
t
|
|
14
|
+
} = useTranslation();
|
|
15
|
+
return /* @__PURE__ */ jsxs("div", { className: "widget-body d-flex flex-wrap", children: [
|
|
16
|
+
!bookmarkedApps.length && /* @__PURE__ */ jsx("div", { className: "text-dark", children: t("navbar.myapps.more") }),
|
|
17
|
+
bookmarkedApps.slice(0, 6).map((app, index) => /* @__PURE__ */ jsx("a", { href: app.address, className: "bookmarked-app", children: /* @__PURE__ */ jsx(AppIcon, { app, size: "32" }) }, index))
|
|
18
|
+
] });
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
WidgetAppsBody,
|
|
22
|
+
WidgetAppsFooter
|
|
23
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface HelpProps {
|
|
3
|
+
isHelpOpen: boolean;
|
|
4
|
+
parsedHeadline: any;
|
|
5
|
+
parsedContent: any;
|
|
6
|
+
error: boolean;
|
|
7
|
+
setIsHelpOpen: (state: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export default function Help({ isHelpOpen, setIsHelpOpen, parsedHeadline, parsedContent, error, }: HelpProps): JSX.Element | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createPortal } from "react-dom";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import Modal from "../../components/Modal/Modal.js";
|
|
5
|
+
function Help({
|
|
6
|
+
isHelpOpen,
|
|
7
|
+
setIsHelpOpen,
|
|
8
|
+
parsedHeadline,
|
|
9
|
+
parsedContent,
|
|
10
|
+
error
|
|
11
|
+
}) {
|
|
12
|
+
const {
|
|
13
|
+
t
|
|
14
|
+
} = useTranslation(), handleHelpOpen = () => {
|
|
15
|
+
setIsHelpOpen(!1);
|
|
16
|
+
};
|
|
17
|
+
return isHelpOpen ? /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "help-modal", isOpen: isHelpOpen, onModalClose: handleHelpOpen, scrollable: !0, size: "lg", children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: handleHelpOpen, children: t("navbar.help") }),
|
|
19
|
+
/* @__PURE__ */ jsx(Modal.Subtitle, { children: error ? t("help.notfound.title") : parsedHeadline }),
|
|
20
|
+
/* @__PURE__ */ jsx(Modal.Body, { className: error ? "d-flex" : null, children: error ? t("help.notfound.text") : parsedContent })
|
|
21
|
+
] }), document.getElementById("portal")) : null;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
Help as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function useHelp(): {
|
|
3
|
+
html: string;
|
|
4
|
+
visibility: boolean;
|
|
5
|
+
isModalOpen: boolean;
|
|
6
|
+
setIsModalOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
7
|
+
parsedContent: any;
|
|
8
|
+
parsedHeadline: any;
|
|
9
|
+
error: boolean;
|
|
10
|
+
};
|