@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { default as default2 } from "./core/useAvatar/useAvatar.js";
|
|
2
|
+
import { default as default3 } from "./core/useBookmark/useBookmark.js";
|
|
3
|
+
import { default as default4 } from "./core/useConf/useConf.js";
|
|
4
|
+
import { default as default5 } from "./core/useDate/useDate.js";
|
|
5
|
+
import { default as default6 } from "./core/useHasWorkflow/useHasWorkflow.js";
|
|
6
|
+
import { default as default7 } from "./core/useHeader/useHeader.js";
|
|
7
|
+
import { default as default8 } from "./core/useIsAdml/useIsAdml.js";
|
|
8
|
+
import { default as default9 } from "./core/useOdeIcons/useOdeIcons.js";
|
|
9
|
+
import { default as default10 } from "./core/usePaths/usePaths.js";
|
|
10
|
+
import { default as default11 } from "./core/useSession/useSession.js";
|
|
11
|
+
import { default as default12 } from "./core/useUser/useUser.js";
|
|
12
|
+
import { default as default13 } from "./core/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
13
|
+
import { default as default14 } from "./core/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
14
|
+
import { default as default15 } from "./core/useZendeskGuide/useZendeskGuide.js";
|
|
15
|
+
import { default as default16 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
16
|
+
import { default as default17 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
17
|
+
import { default as default18 } from "./hooks/useDebounce/useDebounce.js";
|
|
18
|
+
import { default as default19 } from "./hooks/useToast/useToast.js";
|
|
19
|
+
import { default as default20 } from "./hooks/useImage/useImage.js";
|
|
20
|
+
import { default as default21 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
21
|
+
import { default as default22 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
22
|
+
import { default as default23 } from "./hooks/useTitle/useTitle.js";
|
|
23
|
+
import { default as default24 } from "./hooks/useToggle/useToggle.js";
|
|
24
|
+
import { default as default25 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
25
|
+
import { default as default26 } from "./widgets/Widget/Widget.js";
|
|
26
|
+
import { default as default27 } from "./components/ActionBar/ActionBar.js";
|
|
27
|
+
import { default as default28 } from "./components/Alert/Alert.js";
|
|
28
|
+
import { default as default29 } from "./components/AppHeader/AppHeader.js";
|
|
29
|
+
import { AppIcon } from "./components/AppIcon/AppIcon.js";
|
|
30
|
+
import { default as default30 } from "./components/Attachment/Attachment.js";
|
|
31
|
+
import { default as default31 } from "./components/Avatar/Avatar.js";
|
|
32
|
+
import { default as default32 } from "./components/Badge/Badge.js";
|
|
33
|
+
import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb.js";
|
|
34
|
+
import { default as default33 } from "./components/Button/Button.js";
|
|
35
|
+
import { default as default34 } from "./components/Button/IconButton.js";
|
|
36
|
+
import { default as default35 } from "./components/Button/SearchButton.js";
|
|
37
|
+
import { default as default36 } from "./components/Card/Card.js";
|
|
38
|
+
import { default as default37 } from "./components/Checkbox/Checkbox.js";
|
|
39
|
+
import { default as default38 } from "./components/ColorPicker/ColorPicker.js";
|
|
40
|
+
import { default as default39 } from "./components/ColorPicker/ColorPickerItem.js";
|
|
41
|
+
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
42
|
+
import { default as default40 } from "./components/Combobox/Combobox.js";
|
|
43
|
+
import { default as default41 } from "./components/Dropdown/Dropdown.js";
|
|
44
|
+
import { default as default42 } from "./components/Dropzone/Dropzone.js";
|
|
45
|
+
import { default as default43 } from "./components/EmptyScreen/EmptyScreen.js";
|
|
46
|
+
import { default as default44 } from "./components/FileCard/FileCard.js";
|
|
47
|
+
import { default as default45 } from "./components/Form/FormText.js";
|
|
48
|
+
import { default as default46 } from "./components/Form/FormControl.js";
|
|
49
|
+
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
50
|
+
import { default as default47 } from "./components/Heading/Heading.js";
|
|
51
|
+
import { Icon } from "./components/Icon/Icon.js";
|
|
52
|
+
import { default as default48 } from "./components/Image/Image.js";
|
|
53
|
+
import { ImagePicker } from "./components/ImagePicker/ImagePicker.js";
|
|
54
|
+
import { default as default49 } from "./components/Input/Input.js";
|
|
55
|
+
import { default as default50 } from "./components/Label/Label.js";
|
|
56
|
+
import { default as default51 } from "./components/Loading/Loading.js";
|
|
57
|
+
import { default as default52 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
58
|
+
import { default as default53 } from "./components/Logo/Logo.js";
|
|
59
|
+
import { Menu } from "./components/Menu/Menu.js";
|
|
60
|
+
import { default as default54 } from "./components/Modal/Modal.js";
|
|
61
|
+
import { Popover, PopoverBody, PopoverFooter, PopoverHeader } from "./components/Popover/Popover.js";
|
|
62
|
+
import { default as default55 } from "./components/Radio/Radio.js";
|
|
63
|
+
import { default as default56 } from "./components/SearchBar/SearchBar.js";
|
|
64
|
+
import { default as default57 } from "./components/Select/Select.js";
|
|
65
|
+
import { default as default58 } from "./components/Table/TableExplorer.js";
|
|
66
|
+
import { default as default59 } from "./components/Tabs/Tabs.js";
|
|
67
|
+
import { default as default60 } from "./components/TextArea/TextArea.js";
|
|
68
|
+
import { default as default61 } from "./components/Toolbar/Toolbar.js";
|
|
69
|
+
import { default as default62 } from "./components/Tooltip/Tooltip.js";
|
|
70
|
+
import { default as default63 } from "./components/TreeView/TreeView.js";
|
|
71
|
+
import { UploadCard } from "./components/UploadCard/UploadCard.js";
|
|
72
|
+
import { default as default64 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
73
|
+
import { OdeClientContext, OdeClientProvider, useOdeClient } from "./core/OdeClientProvider/OdeClientProvider.js";
|
|
74
|
+
import { ThemeContext, ThemeProvider, useOdeTheme } from "./core/ThemeProvider/ThemeProvider.js";
|
|
75
|
+
import { default as default65 } from "./core/useConversation/useConversation.js";
|
|
76
|
+
import { useHttpErrorToast } from "./core/useHttpErrorToast/useHttpErrorToast.js";
|
|
77
|
+
import { default as default66 } from "./core/useLibraryUrl/useLibraryUrl.js";
|
|
78
|
+
import { default as default67 } from "./core/useMediaLibrary/useMediaLibrary.js";
|
|
79
|
+
import { useResourceSearch } from "./core/useResourceSearch/useResourceSearch.js";
|
|
80
|
+
import { default as default68 } from "./core/useTrashedResource/useTrashedResource.js";
|
|
81
|
+
import { default as default69 } from "./core/useUploadFiles/useUploadFiles.js";
|
|
82
|
+
import { default as default70 } from "./core/useWorkspaceFile/useWorkspaceFile.js";
|
|
83
|
+
import { default as default71 } from "./hooks/useDropdown/useDropdown.js";
|
|
84
|
+
import { default as default72 } from "./hooks/useDropzone/useDropzone.js";
|
|
85
|
+
import { default as default73 } from "./hooks/useHover/useHover.js";
|
|
86
|
+
import { default as default74 } from "./portal/Layout/Layout.js";
|
|
87
|
+
import { MockedDataProvider, useMockedData } from "./utils/MockedDataProvider/MockedDataProvider.js";
|
|
88
|
+
import { StringUtils } from "./utils/StringUtils.js";
|
|
89
|
+
import { addTimestampToImageUrl } from "./utils/addTimestampToUrl.js";
|
|
90
|
+
import { getOrGenerateBlobId } from "./utils/blob.js";
|
|
91
|
+
import { checkUserRight } from "./utils/checkUserRight.js";
|
|
92
|
+
import { findTreeNode } from "./utils/findTreeNode.js";
|
|
93
|
+
import { isActionAvailable } from "./utils/isActionAvailable.js";
|
|
94
|
+
import { libraryMaps } from "./utils/libraryMaps.js";
|
|
95
|
+
import { NOOP } from "./utils/noop.js";
|
|
96
|
+
import { mergeRefs, setRef } from "./utils/ref.js";
|
|
97
|
+
import { getThumbnail } from "./utils/thumbnail.js";
|
|
98
|
+
import { convertMsToMS, padTo2Digits } from "./utils/time.js";
|
|
99
|
+
import { TreeNodeFolderWrapper, addNode, arrayUnique, deleteNode, findNodeById, findParentNode, getAncestors, hasChildren, modifyNode, moveNode, updateNode, wrapTreeNode } from "./utils/treeview.js";
|
|
100
|
+
import { getBestSupportedMimeType } from "./utils/video.js";
|
|
101
|
+
import { default as default75 } from "./widgets/BookmarkedApps/BookmarkedApps.js";
|
|
102
|
+
export {
|
|
103
|
+
AccessiblePalette,
|
|
104
|
+
default27 as ActionBar,
|
|
105
|
+
default28 as Alert,
|
|
106
|
+
default29 as AppHeader,
|
|
107
|
+
AppIcon,
|
|
108
|
+
default30 as Attachment,
|
|
109
|
+
default31 as Avatar,
|
|
110
|
+
default32 as Badge,
|
|
111
|
+
default75 as BookmarkedApps,
|
|
112
|
+
Breadcrumb,
|
|
113
|
+
default33 as Button,
|
|
114
|
+
default36 as Card,
|
|
115
|
+
default37 as Checkbox,
|
|
116
|
+
default38 as ColorPicker,
|
|
117
|
+
default39 as ColorPickerItem,
|
|
118
|
+
Column,
|
|
119
|
+
default40 as Combobox,
|
|
120
|
+
DefaultPalette,
|
|
121
|
+
default41 as Dropdown,
|
|
122
|
+
default42 as Dropzone,
|
|
123
|
+
default43 as EmptyScreen,
|
|
124
|
+
default44 as FileCard,
|
|
125
|
+
default46 as FormControl,
|
|
126
|
+
default45 as FormText,
|
|
127
|
+
Grid,
|
|
128
|
+
default47 as Heading,
|
|
129
|
+
Icon,
|
|
130
|
+
default34 as IconButton,
|
|
131
|
+
default48 as Image,
|
|
132
|
+
ImagePicker,
|
|
133
|
+
default49 as Input,
|
|
134
|
+
default50 as Label,
|
|
135
|
+
default74 as Layout,
|
|
136
|
+
default51 as Loading,
|
|
137
|
+
default52 as LoadingScreen,
|
|
138
|
+
default53 as Logo,
|
|
139
|
+
Menu,
|
|
140
|
+
MockedDataProvider,
|
|
141
|
+
default54 as Modal,
|
|
142
|
+
NOOP,
|
|
143
|
+
OdeClientContext,
|
|
144
|
+
OdeClientProvider,
|
|
145
|
+
Popover,
|
|
146
|
+
PopoverBody,
|
|
147
|
+
PopoverFooter,
|
|
148
|
+
PopoverHeader,
|
|
149
|
+
default55 as Radio,
|
|
150
|
+
default56 as SearchBar,
|
|
151
|
+
default35 as SearchButton,
|
|
152
|
+
default57 as Select,
|
|
153
|
+
StringUtils,
|
|
154
|
+
default58 as TableExplorer,
|
|
155
|
+
default59 as Tabs,
|
|
156
|
+
default60 as TextArea,
|
|
157
|
+
ThemeContext,
|
|
158
|
+
ThemeProvider,
|
|
159
|
+
default61 as Toolbar,
|
|
160
|
+
default62 as Tooltip,
|
|
161
|
+
TreeNodeFolderWrapper,
|
|
162
|
+
default63 as TreeView,
|
|
163
|
+
UploadCard,
|
|
164
|
+
default64 as VisuallyHidden,
|
|
165
|
+
default26 as Widget,
|
|
166
|
+
addNode,
|
|
167
|
+
addTimestampToImageUrl,
|
|
168
|
+
arrayUnique,
|
|
169
|
+
checkUserRight,
|
|
170
|
+
convertMsToMS,
|
|
171
|
+
deleteNode,
|
|
172
|
+
findNodeById,
|
|
173
|
+
findParentNode,
|
|
174
|
+
findTreeNode,
|
|
175
|
+
getAncestors,
|
|
176
|
+
getBestSupportedMimeType,
|
|
177
|
+
getOrGenerateBlobId,
|
|
178
|
+
getThumbnail,
|
|
179
|
+
hasChildren,
|
|
180
|
+
isActionAvailable,
|
|
181
|
+
libraryMaps,
|
|
182
|
+
mergeRefs,
|
|
183
|
+
modifyNode,
|
|
184
|
+
moveNode,
|
|
185
|
+
padTo2Digits,
|
|
186
|
+
setRef,
|
|
187
|
+
updateNode,
|
|
188
|
+
default2 as useAvatar,
|
|
189
|
+
default3 as useBookmark,
|
|
190
|
+
default16 as useBrowserInfo,
|
|
191
|
+
default17 as useClickOutside,
|
|
192
|
+
default4 as useConf,
|
|
193
|
+
default65 as useConversation,
|
|
194
|
+
default5 as useDate,
|
|
195
|
+
default18 as useDebounce,
|
|
196
|
+
default71 as useDropdown,
|
|
197
|
+
default72 as useDropzone,
|
|
198
|
+
default6 as useHasWorkflow,
|
|
199
|
+
default7 as useHeader,
|
|
200
|
+
default73 as useHover,
|
|
201
|
+
useHttpErrorToast,
|
|
202
|
+
default20 as useImage,
|
|
203
|
+
default8 as useIsAdml,
|
|
204
|
+
default21 as useKeyPress,
|
|
205
|
+
default66 as useLibraryUrl,
|
|
206
|
+
default67 as useMediaLibrary,
|
|
207
|
+
useMockedData,
|
|
208
|
+
useOdeClient,
|
|
209
|
+
default9 as useOdeIcons,
|
|
210
|
+
useOdeTheme,
|
|
211
|
+
default10 as usePaths,
|
|
212
|
+
useResourceSearch,
|
|
213
|
+
default22 as useScrollToTop,
|
|
214
|
+
default11 as useSession,
|
|
215
|
+
default23 as useTitle,
|
|
216
|
+
default19 as useToast,
|
|
217
|
+
default24 as useToggle,
|
|
218
|
+
default25 as useTrapFocus,
|
|
219
|
+
default68 as useTrashedResource,
|
|
220
|
+
default69 as useUploadFiles,
|
|
221
|
+
default12 as useUser,
|
|
222
|
+
default70 as useWorkspaceFile,
|
|
223
|
+
default13 as useWorkspaceSearch,
|
|
224
|
+
default14 as useXitiTrackPageLoad,
|
|
225
|
+
default15 as useZendeskGuide,
|
|
226
|
+
wrapTreeNode
|
|
227
|
+
};
|
package/dist/modals.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as default2 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
2
|
+
import { default as default3 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
3
|
+
import { default as default4 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
4
|
+
import { default as default5 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
5
|
+
import { default as default6 } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
6
|
+
import { default as default7 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
7
|
+
import { default as default8 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
8
|
+
import { default as default9 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
9
|
+
export {
|
|
10
|
+
default8 as BlogPublic,
|
|
11
|
+
default5 as OnboardingModal,
|
|
12
|
+
default2 as PublishModal,
|
|
13
|
+
default6 as ResourceModal,
|
|
14
|
+
default4 as ShareBlog,
|
|
15
|
+
default3 as ShareModal,
|
|
16
|
+
default9 as useShareMutation,
|
|
17
|
+
default7 as useUpdateMutation
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactionSummaryData, ReactionType } from 'edifice-ts-client';
|
|
2
|
+
export interface ReactionChoiceProps {
|
|
3
|
+
availableReactions: ReactionType[];
|
|
4
|
+
summary?: ReactionSummaryData;
|
|
5
|
+
onChange?: (chosenReaction?: ReactionType) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ReactionChoice: {
|
|
8
|
+
({ availableReactions, summary, onChange, }: ReactionChoiceProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default ReactionChoice;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
5
|
+
import Dropdown from "../../components/Dropdown/Dropdown.js";
|
|
6
|
+
import Tooltip from "../../components/Tooltip/Tooltip.js";
|
|
7
|
+
import IconButton from "../../components/Button/IconButton.js";
|
|
8
|
+
const ReactionChoice = ({
|
|
9
|
+
availableReactions,
|
|
10
|
+
summary = {
|
|
11
|
+
totalReactionsCounter: 0,
|
|
12
|
+
userReaction: null
|
|
13
|
+
},
|
|
14
|
+
onChange
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
t
|
|
18
|
+
} = useTranslation(), {
|
|
19
|
+
getReactionIcon,
|
|
20
|
+
getReactionLabel
|
|
21
|
+
} = useReactionIcons(), {
|
|
22
|
+
userReaction
|
|
23
|
+
} = summary, classes = clsx({
|
|
24
|
+
"fw-bold": !!userReaction
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ jsx("div", { className: "reaction-choice", children: /* @__PURE__ */ jsxs(Dropdown, { placement: "top-start", isTriggerHovered: !0, children: [
|
|
27
|
+
/* @__PURE__ */ jsx(Dropdown.Trigger, { className: classes, color: "tertiary", variant: "ghost", size: "sm", icon: getReactionIcon(userReaction), hideCarret: !0, label: t(getReactionLabel(userReaction)) }),
|
|
28
|
+
/* @__PURE__ */ jsx(Dropdown.Menu, { unstyled: !0, className: "bg-white shadow rounded-8 overflow-visible", children: /* @__PURE__ */ jsx("div", { className: "d-flex align-items-center justify-content-between", children: availableReactions == null ? void 0 : availableReactions.map((reactionType) => /* @__PURE__ */ jsx(Dropdown.Item, { className: "p-0", children: /* @__PURE__ */ jsx(Tooltip, { message: t(getReactionLabel(reactionType)), placement: "top", children: /* @__PURE__ */ jsx(IconButton, { className: "reaction-available m-4", variant: "ghost", size: "sm", icon: getReactionIcon(reactionType), onClick: () => onChange == null ? void 0 : onChange(reactionType) }) }) }, reactionType)) }) })
|
|
29
|
+
] }) });
|
|
30
|
+
}, ReactionChoice$1 = ReactionChoice;
|
|
31
|
+
export {
|
|
32
|
+
ReactionChoice$1 as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
4
|
+
import useAvatar from "../../core/useAvatar/useAvatar.js";
|
|
5
|
+
import Avatar from "../../components/Avatar/Avatar.js";
|
|
6
|
+
function ReactionModalCard({
|
|
7
|
+
reaction
|
|
8
|
+
}) {
|
|
9
|
+
const {
|
|
10
|
+
t
|
|
11
|
+
} = useTranslation(), {
|
|
12
|
+
avatarURL,
|
|
13
|
+
userbookURL
|
|
14
|
+
} = useAvatar(reaction.userId, reaction.profile), {
|
|
15
|
+
getReactionIcon,
|
|
16
|
+
getReactionLabel
|
|
17
|
+
} = useReactionIcons();
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", { className: "reaction-modal-card w-100 d-flex gap-8", children: [
|
|
19
|
+
/* @__PURE__ */ jsxs("div", { className: "position-relative p-8", children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Avatar, { variant: "circle", size: "md", src: avatarURL, alt: reaction.displayName }),
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: "position-absolute end-0 bottom-0", children: getReactionIcon(reaction.reactionType, !0) })
|
|
22
|
+
] }),
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex flex-column w-100 pt-8", children: [
|
|
24
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex align-items-baseline", children: [
|
|
25
|
+
/* @__PURE__ */ jsx("div", { className: "d-flex overflow-hidden", children: /* @__PURE__ */ jsx("a", { href: userbookURL, className: "text-reset flex-shrink-0", children: reaction.displayName }) }),
|
|
26
|
+
/* @__PURE__ */ jsx("strong", { className: "ms-12 caption text-gray-700", children: t(reaction.profile) })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ jsx("p", { className: "caption text-gray-700", children: t(getReactionLabel(reaction.reactionType)) })
|
|
29
|
+
] })
|
|
30
|
+
] });
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
ReactionModalCard
|
|
34
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactionDetailsData } from 'edifice-ts-client';
|
|
2
|
+
import { ReactionModalCard } from './ReactionModal.Card';
|
|
3
|
+
export interface ReactionModalProps {
|
|
4
|
+
/** Id of resource. */
|
|
5
|
+
resourceId: string;
|
|
6
|
+
/** Number of results per page, defaults to 30. */
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
/** Display modal ? */
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
/** Close button handler. */
|
|
11
|
+
onModalClose(): void;
|
|
12
|
+
/** Function for loading reactions to the resource. */
|
|
13
|
+
reactionDetailsLoader: (resourceId: string, page: number, size: number) => Promise<ReactionDetailsData | undefined>;
|
|
14
|
+
}
|
|
15
|
+
declare const ReactionModal: {
|
|
16
|
+
({ resourceId, pageSize, reactionDetailsLoader: loadReactionDetails, onModalClose, ...restProps }: ReactionModalProps): import('react').ReactPortal;
|
|
17
|
+
displayName: string;
|
|
18
|
+
Card: typeof ReactionModalCard;
|
|
19
|
+
};
|
|
20
|
+
export default ReactionModal;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ReactionTypes } from "edifice-ts-client";
|
|
3
|
+
import { useState, useId, useCallback, useMemo, useEffect } from "react";
|
|
4
|
+
import { createPortal } from "react-dom";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
import { ReactionModalCard } from "./ReactionModal.Card.js";
|
|
7
|
+
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
8
|
+
import Modal from "../../components/Modal/Modal.js";
|
|
9
|
+
import Tabs from "../../components/Tabs/Tabs.js";
|
|
10
|
+
import Button from "../../components/Button/Button.js";
|
|
11
|
+
import { StringUtils } from "../../utils/StringUtils.js";
|
|
12
|
+
const ALL_TAB_ID = "all", ReactionModal = ({
|
|
13
|
+
resourceId,
|
|
14
|
+
pageSize = 30,
|
|
15
|
+
reactionDetailsLoader: loadReactionDetails,
|
|
16
|
+
onModalClose,
|
|
17
|
+
...restProps
|
|
18
|
+
}) => {
|
|
19
|
+
const [counters, setCounters] = useState({
|
|
20
|
+
countByType: {},
|
|
21
|
+
allReactionsCounter: 0
|
|
22
|
+
}), [reactions, setReactions] = useState([]), [currentTabId, setCurrentTabId] = useState(ALL_TAB_ID), id = useId(), {
|
|
23
|
+
t
|
|
24
|
+
} = useTranslation(), {
|
|
25
|
+
getReactionIcon
|
|
26
|
+
} = useReactionIcons(), [latestPage, setLatestPage] = useState(0), loadNextPage = useCallback(async () => {
|
|
27
|
+
const nextPage = latestPage + 1;
|
|
28
|
+
setLatestPage(nextPage);
|
|
29
|
+
const data = await loadReactionDetails(resourceId, nextPage, pageSize);
|
|
30
|
+
if (data) {
|
|
31
|
+
const {
|
|
32
|
+
reactionCounters,
|
|
33
|
+
userReactions
|
|
34
|
+
} = data;
|
|
35
|
+
nextPage === 1 && setCounters(reactionCounters), setReactions((old) => [...old, ...userReactions.filter((reaction) => !old.some((oldReaction) => oldReaction.userId === reaction.userId))]);
|
|
36
|
+
}
|
|
37
|
+
}, [latestPage, loadReactionDetails, pageSize, resourceId]), panel = useMemo(() => /* @__PURE__ */ jsx("div", { className: "d-flex flex-column w-100 gap-8 mt-32", children: reactions.filter((reaction) => currentTabId === ALL_TAB_ID || reaction.reactionType === currentTabId).map((reaction) => /* @__PURE__ */ jsx(ReactionModal.Card, { reaction }, reaction.userId)) }), [currentTabId, reactions]), tabs = useMemo(() => {
|
|
38
|
+
const items = ReactionTypes.filter((type) => {
|
|
39
|
+
var _a;
|
|
40
|
+
return typeof ((_a = counters.countByType) == null ? void 0 : _a[type]) == "number";
|
|
41
|
+
}).map((type) => ({
|
|
42
|
+
id: type,
|
|
43
|
+
icon: getReactionIcon(type),
|
|
44
|
+
label: StringUtils.toCounter(counters.countByType[type]),
|
|
45
|
+
content: panel
|
|
46
|
+
}));
|
|
47
|
+
return [{
|
|
48
|
+
id: ALL_TAB_ID,
|
|
49
|
+
icon: null,
|
|
50
|
+
label: t("audience.reaction.tab.all"),
|
|
51
|
+
content: panel
|
|
52
|
+
}, ...items];
|
|
53
|
+
}, [counters.countByType, panel]);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
loadNextPage();
|
|
56
|
+
}, []);
|
|
57
|
+
const handleTabChange = (tab) => {
|
|
58
|
+
setCurrentTabId(tab.id);
|
|
59
|
+
}, hasMore = reactions.length < counters.allReactionsCounter;
|
|
60
|
+
return /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id, ...restProps, onModalClose, size: "md", scrollable: !0, children: [
|
|
61
|
+
/* @__PURE__ */ jsx(Modal.Header, { onModalClose, children: /* @__PURE__ */ jsx("h2", { children: t("audience.reaction.modal.header") }) }),
|
|
62
|
+
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(Tabs, { items: tabs, defaultId: ALL_TAB_ID, onChange: handleTabChange }) }),
|
|
63
|
+
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
64
|
+
hasMore && /* @__PURE__ */ jsx(Button, { color: "tertiary", onClick: loadNextPage, children: t("audience.reaction.modal.more") }),
|
|
65
|
+
/* @__PURE__ */ jsx(Button, { color: "primary", onClick: onModalClose, type: "button", variant: "filled", children: t("close") })
|
|
66
|
+
] })
|
|
67
|
+
] }), document.getElementById("portal"));
|
|
68
|
+
};
|
|
69
|
+
ReactionModal.Card = ReactionModalCard;
|
|
70
|
+
const ReactionModal$1 = ReactionModal;
|
|
71
|
+
export {
|
|
72
|
+
ReactionModal$1 as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactionSummaryData } from 'edifice-ts-client';
|
|
2
|
+
export interface ReactionSummaryProps {
|
|
3
|
+
summary?: ReactionSummaryData;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ReactionSummary: {
|
|
7
|
+
({ summary, onClick, }: ReactionSummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export default ReactionSummary;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
3
|
+
import Button from "../../components/Button/Button.js";
|
|
4
|
+
import { StringUtils } from "../../utils/StringUtils.js";
|
|
5
|
+
const ReactionSummary = ({
|
|
6
|
+
summary = {
|
|
7
|
+
userReaction: null,
|
|
8
|
+
totalReactionsCounter: 0
|
|
9
|
+
},
|
|
10
|
+
onClick
|
|
11
|
+
}) => {
|
|
12
|
+
const {
|
|
13
|
+
getReactionIcon
|
|
14
|
+
} = useReactionIcons(), {
|
|
15
|
+
totalReactionsCounter,
|
|
16
|
+
reactionTypes
|
|
17
|
+
} = summary, hasNoReactions = totalReactionsCounter === 0;
|
|
18
|
+
return /* @__PURE__ */ jsx(Button, { variant: "ghost", className: "py-4 px-8 btn-icon", disabled: hasNoReactions, onClick: (event) => {
|
|
19
|
+
event.preventDefault(), event.stopPropagation(), onClick == null || onClick();
|
|
20
|
+
}, children: /* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center", children: [
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: "text-gray-700 fw-normal me-8", children: StringUtils.toCounter(totalReactionsCounter) }),
|
|
22
|
+
hasNoReactions ? /* @__PURE__ */ jsx("div", { className: "reaction-overlap", children: getReactionIcon("REACTION_1", !0) }) : reactionTypes == null ? void 0 : reactionTypes.map((reactionType) => /* @__PURE__ */ jsx("div", { className: "reaction-overlap", children: getReactionIcon(reactionType, !0) }, reactionType))
|
|
23
|
+
] }) });
|
|
24
|
+
}, ReactionSummary$1 = ReactionSummary;
|
|
25
|
+
export {
|
|
26
|
+
ReactionSummary$1 as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ViewsDetailsProfile } from 'edifice-ts-client';
|
|
2
|
+
export interface ViewsCardProps {
|
|
3
|
+
viewsByProfile: ViewsDetailsProfile;
|
|
4
|
+
}
|
|
5
|
+
declare const ViewsByProfileCard: {
|
|
6
|
+
({ viewsByProfile }: ViewsCardProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default ViewsByProfileCard;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import { StringUtils } from "../../utils/StringUtils.js";
|
|
4
|
+
import { Icon } from "../../components/Icon/Icon.js";
|
|
5
|
+
const ViewsByProfileCard = ({
|
|
6
|
+
viewsByProfile
|
|
7
|
+
}) => {
|
|
8
|
+
const {
|
|
9
|
+
t
|
|
10
|
+
} = useTranslation(), profile = viewsByProfile.profile.toLowerCase(), classNameIcon = `views-detail-icon rounded p-8 views-detail-icon-${profile}`;
|
|
11
|
+
function getIcon(profile2) {
|
|
12
|
+
switch (profile2) {
|
|
13
|
+
case "student":
|
|
14
|
+
return /* @__PURE__ */ jsx(Icon, { name: "audience/views/student" });
|
|
15
|
+
case "relative":
|
|
16
|
+
return /* @__PURE__ */ jsx(Icon, { name: "audience/views/parent" });
|
|
17
|
+
case "teacher":
|
|
18
|
+
return /* @__PURE__ */ jsx(Icon, { name: "audience/views/teacher" });
|
|
19
|
+
case "personnel":
|
|
20
|
+
return /* @__PURE__ */ jsx(Icon, { name: "audience/views/personnel" });
|
|
21
|
+
case "guest":
|
|
22
|
+
return /* @__PURE__ */ jsx(Icon, { name: "audience/views/guest" });
|
|
23
|
+
default:
|
|
24
|
+
return /* @__PURE__ */ jsx(Icon, { name: "users" });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ jsxs("div", { className: "views-detail-line p-8 ms-32 mb-12", children: [
|
|
28
|
+
/* @__PURE__ */ jsx("div", { className: classNameIcon, children: getIcon(profile) }),
|
|
29
|
+
/* @__PURE__ */ jsx("div", { className: "h3", children: StringUtils.toCounter(viewsByProfile.counter) }),
|
|
30
|
+
/* @__PURE__ */ jsx("div", { children: t(`audience.views.uniqueViewsPerProfile.${profile}`) })
|
|
31
|
+
] }, profile);
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
ViewsByProfileCard as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ViewsCounterProps {
|
|
3
|
+
viewsCounter: number;
|
|
4
|
+
onClick?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const ViewsCounter: {
|
|
8
|
+
({ viewsCounter, onClick, className, }: ViewsCounterProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default ViewsCounter;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import Button from "../../components/Button/Button.js";
|
|
4
|
+
import { StringUtils } from "../../utils/StringUtils.js";
|
|
5
|
+
import { Icon } from "../../components/Icon/Icon.js";
|
|
6
|
+
const ViewsCounter = ({
|
|
7
|
+
viewsCounter,
|
|
8
|
+
onClick,
|
|
9
|
+
className
|
|
10
|
+
}) => {
|
|
11
|
+
const handleButtonClick = (event) => {
|
|
12
|
+
event.preventDefault(), event.stopPropagation(), onClick == null || onClick();
|
|
13
|
+
};
|
|
14
|
+
return className = clsx("text-gray-700 fw-normal py-4 px-8 btn-icon", className), /* @__PURE__ */ jsx(Button, { rightIcon: /* @__PURE__ */ jsx(Icon, { name: "see" }), variant: "ghost", type: "button", className, onClick: handleButtonClick, disabled: !viewsCounter, children: StringUtils.toCounter(viewsCounter) });
|
|
15
|
+
}, ViewsCounter$1 = ViewsCounter;
|
|
16
|
+
export {
|
|
17
|
+
ViewsCounter$1 as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ViewsDetails } from 'edifice-ts-client';
|
|
2
|
+
export interface ViewsModalProps {
|
|
3
|
+
viewsDetails: ViewsDetails;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onModalClose: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ViewsModal: {
|
|
8
|
+
({ viewsDetails, isOpen, onModalClose, }: ViewsModalProps): import('react').ReactPortal;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default ViewsModal;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { createPortal } from "react-dom";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import ViewsByProfileCard from "./ViewsByProfileCard.js";
|
|
5
|
+
import Modal from "../../components/Modal/Modal.js";
|
|
6
|
+
import Button from "../../components/Button/Button.js";
|
|
7
|
+
import { Icon } from "../../components/Icon/Icon.js";
|
|
8
|
+
import { StringUtils } from "../../utils/StringUtils.js";
|
|
9
|
+
const ViewsModal = ({
|
|
10
|
+
viewsDetails,
|
|
11
|
+
isOpen,
|
|
12
|
+
onModalClose
|
|
13
|
+
}) => {
|
|
14
|
+
var _a;
|
|
15
|
+
const {
|
|
16
|
+
t
|
|
17
|
+
} = useTranslation(), hasUniqueViews = viewsDetails.uniqueViewsCounter !== void 0;
|
|
18
|
+
return /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "ViewsModal", isOpen, onModalClose, children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Modal.Header, { onModalClose, children: t("audience.views.title") }),
|
|
20
|
+
/* @__PURE__ */ jsxs(Modal.Body, { children: [
|
|
21
|
+
/* @__PURE__ */ jsxs("div", { className: "views-detail-line p-8 mb-12", children: [
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "views-detail-icon rounded p-8", children: /* @__PURE__ */ jsx(Icon, { name: "see" }) }),
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: "h3", children: StringUtils.toCounter(viewsDetails.viewsCounter) }),
|
|
24
|
+
/* @__PURE__ */ jsx("div", { children: t("audience.views.detail.viewsCounter") })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ jsxs("div", { className: "views-detail-line p-8 mb-12", children: [
|
|
27
|
+
/* @__PURE__ */ jsx("div", { className: "views-detail-icon rounded p-8", children: /* @__PURE__ */ jsx(Icon, { name: "users" }) }),
|
|
28
|
+
hasUniqueViews ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29
|
+
/* @__PURE__ */ jsx("div", { className: "h3", children: StringUtils.toCounter(viewsDetails.uniqueViewsCounter) }),
|
|
30
|
+
/* @__PURE__ */ jsx("div", { children: t("audience.views.detail.uniqueViewsCounter") })
|
|
31
|
+
] }) : /* @__PURE__ */ jsx("div", { children: t("audience.views.detail.noUniqueViews") })
|
|
32
|
+
] }),
|
|
33
|
+
hasUniqueViews ? (_a = viewsDetails.uniqueViewsPerProfile) == null ? void 0 : _a.map((viewsByProfile) => /* @__PURE__ */ jsx(ViewsByProfileCard, { viewsByProfile }, viewsByProfile.profile)) : null
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ jsx(Modal.Footer, { children: /* @__PURE__ */ jsx(Button, { color: "primary", onClick: onModalClose, type: "button", variant: "filled", children: t("audience.views.cancel") }) })
|
|
36
|
+
] }), document.getElementById("portal"));
|
|
37
|
+
}, ViewsModal$1 = ViewsModal;
|
|
38
|
+
export {
|
|
39
|
+
ViewsModal$1 as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactionType } from 'edifice-ts-client';
|
|
2
|
+
export default function useReactionIcons(): {
|
|
3
|
+
getReactionIcon: (reactionType?: ReactionType | null, asCounter?: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
getReactionLabel: (reactionType?: ReactionType | null) => "audience.reaction.thanks" | "audience.reaction.great" | "audience.reaction.congrats" | "audience.reaction.interesting" | "audience.reaction.default";
|
|
5
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "../../../components/Icon/Icon.js";
|
|
3
|
+
function useReactionIcons() {
|
|
4
|
+
return {
|
|
5
|
+
getReactionIcon: (reactionType, asCounter) => {
|
|
6
|
+
switch (reactionType) {
|
|
7
|
+
case "REACTION_1":
|
|
8
|
+
return asCounter ? /* @__PURE__ */ jsx(Icon, { name: "audience/reactions/thanks-counter" }) : /* @__PURE__ */ jsx(Icon, { name: "audience/reactions/thanks" });
|
|
9
|
+
case "REACTION_2":
|
|
10
|
+
return asCounter ? /* @__PURE__ */ jsx(Icon, { name: "audience/reactions/great-counter" }) : /* @__PURE__ */ jsx(Icon, { name: "audience/reactions/great" });
|
|
11
|
+
case "REACTION_3":
|
|
12
|
+
return asCounter ? /* @__PURE__ */ jsx(Icon, { name: "audience/reactions/congrats-counter" }) : /* @__PURE__ */ jsx(Icon, { name: "audience/reactions/congrats" });
|
|
13
|
+
case "REACTION_4":
|
|
14
|
+
return asCounter ? /* @__PURE__ */ jsx(Icon, { name: "audience/reactions/interesting-counter" }) : /* @__PURE__ */ jsx(Icon, { name: "audience/reactions/interesting" });
|
|
15
|
+
default:
|
|
16
|
+
return /* @__PURE__ */ jsx(Icon, { name: "reaction" });
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
getReactionLabel: (reactionType) => {
|
|
20
|
+
switch (reactionType) {
|
|
21
|
+
case "REACTION_1":
|
|
22
|
+
return "audience.reaction.thanks";
|
|
23
|
+
case "REACTION_2":
|
|
24
|
+
return "audience.reaction.great";
|
|
25
|
+
case "REACTION_3":
|
|
26
|
+
return "audience.reaction.congrats";
|
|
27
|
+
case "REACTION_4":
|
|
28
|
+
return "audience.reaction.interesting";
|
|
29
|
+
default:
|
|
30
|
+
return "audience.reaction.default";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
useReactionIcons as default
|
|
37
|
+
};
|