@edifice.io/react 2.0.0-develop-rc.14 → 2.0.0-develop-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/audience.js +16 -0
- package/dist/comments.js +4 -0
- package/dist/components/ActionBar/ActionBar.d.ts +0 -1
- package/dist/components/ActionBar/ActionBar.js +8 -0
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/Alert.js +81 -0
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.js +22 -0
- package/dist/components/AppIcon/AppIcon.d.ts +11 -11
- package/dist/components/AppIcon/AppIcon.js +51 -0
- package/dist/components/AppIcon/index.d.ts +1 -1
- package/dist/components/Attachment/Attachment.d.ts +1 -1
- package/dist/components/Attachment/Attachment.js +18 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -4
- package/dist/components/Avatar/Avatar.js +33 -0
- package/dist/components/Badge/Badge.d.ts +20 -18
- package/dist/components/Badge/Badge.js +18 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +28 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbNav.d.ts +2 -2
- package/dist/components/Breadcrumb/BreadcrumbNav.js +22 -0
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +5 -5
- package/dist/components/Button/IconButton.d.ts +1 -1
- package/dist/components/Button/IconButton.js +18 -0
- package/dist/components/Button/SearchButton.d.ts +1 -1
- package/dist/components/Button/SearchButton.js +17 -0
- package/dist/components/Card/Card.d.ts +11 -7
- package/dist/components/Card/Card.js +53 -0
- package/dist/components/Card/CardBody.d.ts +2 -2
- package/dist/components/Card/CardContext.d.ts +2 -2
- package/dist/components/Card/CardHeader.js +22 -0
- package/dist/components/Card/CardImage.d.ts +2 -2
- package/dist/components/Card/CardImage.js +21 -0
- package/dist/components/Card/CardText.d.ts +1 -1
- package/dist/components/Card/CardTitle.d.ts +1 -1
- package/dist/components/Card/CardUser.js +10 -0
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/ColorPicker/ColorPalette.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +38 -0
- package/dist/components/ColorPicker/ColorPickerItem.js +13 -0
- package/dist/components/Combobox/ComboboxTrigger.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.js +60 -0
- package/dist/components/Dropdown/DropdownContext.d.ts +1 -1
- package/dist/components/Dropdown/DropdownItem.d.ts +1 -1
- package/dist/components/Dropdown/DropdownMenu.d.ts +2 -2
- package/dist/components/Dropdown/DropdownTrigger.d.ts +3 -4
- package/dist/components/Dropdown/DropdownTrigger.js +34 -0
- package/dist/components/Dropzone/Dropzone.d.ts +26 -2
- package/dist/components/Dropzone/Dropzone.js +55 -0
- package/dist/components/Dropzone/DropzoneContext.d.ts +0 -1
- package/dist/components/Dropzone/DropzoneFile.d.ts +2 -1
- package/dist/components/Dropzone/DropzoneFile.js +30 -0
- package/dist/components/Dropzone/DropzoneImport.js +28 -0
- package/dist/components/Dropzone/index.d.ts +2 -1
- package/dist/components/EmptyScreen/EmptyScreen.d.ts +5 -1
- package/dist/components/EmptyScreen/EmptyScreen.js +21 -0
- package/dist/components/Form/FormContext.d.ts +1 -1
- package/dist/components/Form/FormControl.d.ts +4 -4
- package/dist/components/Form/FormText.js +17 -0
- package/dist/components/Grid/Grid.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +3 -4
- package/dist/components/Image/Image.js +41 -0
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Label/Label.d.ts +2 -2
- package/dist/components/Layout/Layout.d.ts +12 -0
- package/dist/components/Layout/Layout.js +44 -0
- package/dist/components/Layout/components/Header.js +189 -0
- package/dist/components/Layout/components/Help.js +25 -0
- package/dist/components/Layout/components/Main.d.ts +16 -0
- package/dist/components/Layout/components/NavItem.d.ts +6 -0
- package/dist/components/Layout/components/NavLink.js +19 -0
- package/dist/components/Layout/components/NavbarNav.d.ts +6 -0
- package/dist/components/Layout/components/SearchEngine.js +33 -0
- package/dist/components/Layout/components/WidgetApps.d.ts +9 -0
- package/dist/components/Layout/components/WidgetApps.js +23 -0
- package/dist/components/Layout/hooks/index.d.ts +2 -0
- package/dist/components/Layout/hooks/useHeader.d.ts +5 -0
- package/dist/components/Layout/hooks/useHelp.d.ts +9 -0
- package/dist/components/Layout/hooks/useHelp.js +85 -0
- package/dist/components/List/List.d.ts +23 -0
- package/dist/components/List/List.js +50 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/Loading/Loading.js +27 -0
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +0 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +25 -0
- package/dist/components/Logo/Logo.d.ts +0 -1
- package/dist/components/Logo/Logo.js +14 -0
- package/dist/components/Menu/components/Menu.js +27 -0
- package/dist/components/Menu/components/MenuButton.d.ts +5 -0
- package/dist/components/Menu/components/MenuButton.js +21 -0
- package/dist/components/Menu/hooks/useMenu.d.ts +9 -0
- package/dist/components/Menu/hooks/useMenu.js +50 -0
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Modal/Modal.d.ts +1 -2
- package/dist/components/Modal/ModalContext.d.ts +0 -1
- package/dist/components/Modal/ModalHeader.js +27 -0
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +36 -0
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +37 -0
- package/dist/components/Select/SelectTrigger.d.ts +1 -1
- package/dist/components/Table/components/Table.d.ts +30 -0
- package/dist/components/Table/components/Table.js +19 -0
- package/dist/components/Table/components/TableTbody.d.ts +6 -0
- package/dist/components/Table/components/TableTbody.js +11 -0
- package/dist/components/Table/components/TableTd.d.ts +4 -0
- package/dist/components/Table/components/TableTd.js +11 -0
- package/dist/components/Table/components/TableTh.d.ts +4 -0
- package/dist/components/Table/components/TableTh.js +11 -0
- package/dist/components/Table/components/TableThead.d.ts +4 -0
- package/dist/components/Table/components/TableThead.js +11 -0
- package/dist/components/Table/components/TableTr.d.ts +4 -0
- package/dist/components/Table/components/TableTr.js +11 -0
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Tabs/components/Tabs.d.ts +42 -0
- package/dist/components/Tabs/components/Tabs.js +45 -0
- package/dist/components/Tabs/components/TabsItem.js +26 -0
- package/dist/components/Tabs/components/TabsList.d.ts +6 -0
- package/dist/components/Tabs/components/TabsList.js +24 -0
- package/dist/components/Tabs/components/TabsPanel.js +14 -0
- package/dist/components/Tabs/context/TabsContext.d.ts +12 -0
- package/dist/components/Tabs/hooks/useTabs.d.ts +15 -0
- package/dist/components/Tabs/hooks/useTabs.js +61 -0
- package/dist/components/Tabs/index.d.ts +2 -3
- package/dist/components/TextArea/TextArea.d.ts +2 -2
- package/dist/components/Toolbar/Toolbar.d.ts +18 -18
- package/dist/components/Toolbar/Toolbar.js +78 -0
- package/dist/components/Toolbar/index.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.js +41 -0
- package/dist/components/Tree/components/DndTree.d.ts +3 -0
- package/dist/components/Tree/components/DndTree.js +61 -0
- package/dist/components/Tree/components/SortableTree.d.ts +9 -0
- package/dist/components/Tree/components/SortableTree.js +143 -0
- package/dist/components/Tree/components/Tree.d.ts +7 -0
- package/dist/components/Tree/components/Tree.js +86 -0
- package/dist/components/Tree/hooks/useTree.d.ts +31 -0
- package/dist/components/Tree/hooks/useTree.js +87 -0
- package/dist/components/Tree/hooks/useTreeSortable.d.ts +38 -0
- package/dist/components/Tree/hooks/useTreeSortable.js +202 -0
- package/dist/components/Tree/index.d.ts +6 -0
- package/dist/components/Tree/types/index.d.ts +170 -0
- package/dist/components/Tree/utilities/tree-sortable.d.ts +29 -0
- package/dist/components/Tree/utilities/tree-sortable.js +144 -0
- package/dist/components/Tree/utilities/tree.d.ts +34 -0
- package/dist/components/Tree/utilities/tree.js +44 -0
- package/dist/components/TreeView/TreeNode.d.ts +37 -11
- package/dist/components/TreeView/TreeNode.js +69 -0
- package/dist/components/TreeView/TreeView.d.ts +28 -12
- package/dist/components/TreeView/TreeView.js +37 -0
- package/dist/components/TreeView/hooks/useTreeView.d.ts +33 -0
- package/dist/components/TreeView/hooks/useTreeView.js +105 -0
- package/dist/components/TreeView/index.d.ts +2 -1
- package/dist/components/TreeView/utilities/index.d.ts +1 -0
- package/dist/components/TreeView/utilities/treeview.d.ts +35 -0
- package/dist/components/TreeView/utilities/treeview.js +53 -0
- package/dist/components/index.d.ts +3 -4
- package/dist/editor.js +58 -0
- package/dist/hooks/index.d.ts +28 -2
- package/dist/hooks/useAvatar/useAvatar.d.ts +6 -0
- package/dist/hooks/useAvatar/useAvatar.js +30 -0
- package/dist/hooks/useBookmark/useBookmark.d.ts +2 -0
- package/dist/hooks/useBookmark/useBookmark.js +14 -0
- package/dist/hooks/useBreakpoint/index.d.ts +1 -0
- package/dist/hooks/useBreakpoint/useBreakpoint.d.ts +20 -0
- package/dist/hooks/useBreakpoint/useBreakpoint.js +14 -0
- package/dist/hooks/useCantoo/useCantoo.js +18 -0
- package/dist/hooks/useCheckable/index.d.ts +1 -0
- package/dist/hooks/useCheckable/useCheckable.d.ts +9 -0
- package/dist/hooks/useCheckable/useCheckable.js +21 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +0 -1
- package/dist/hooks/useConf/useConf.d.ts +4 -0
- package/dist/hooks/useConf/useConf.js +13 -0
- package/dist/hooks/useConversation/useConversation.js +43 -0
- package/dist/hooks/useDate/useDate.d.ts +14 -0
- package/dist/hooks/useDate/useDate.js +65 -0
- package/dist/hooks/useDirectory/index.d.ts +1 -0
- package/dist/hooks/useDirectory/useDirectory.d.ts +6 -0
- package/dist/hooks/useDirectory/useDirectory.js +16 -0
- package/dist/hooks/useDropdown/useDropdown.d.ts +2 -2
- package/dist/hooks/useDropdown/useDropdown.js +158 -0
- package/dist/hooks/useDropzone/useDropzone.d.ts +3 -3
- package/dist/hooks/useDropzone/useDropzone.js +78 -0
- package/dist/hooks/useEdificeIcons/index.d.ts +1 -0
- package/dist/hooks/useEdificeIcons/useEdificeIcons.d.ts +9 -0
- package/dist/hooks/useEdificeIcons/useEdificeIcons.js +92 -0
- package/dist/hooks/useHasWorkflow/useHasWorkflow.js +22 -0
- package/dist/hooks/useHeader/useHeader.d.ts +5 -0
- package/dist/hooks/useHeader/useHeader.js +46 -0
- package/dist/hooks/useHttpErrorToast/index.d.ts +1 -0
- package/dist/hooks/useHttpErrorToast/useHttpErrorToast.d.ts +3 -0
- package/dist/hooks/useHttpErrorToast/useHttpErrorToast.js +21 -0
- package/dist/hooks/useIsAdml/useIsAdml.js +18 -0
- package/dist/hooks/useLibraryUrl/useLibraryUrl.js +21 -0
- package/dist/hooks/useMediaLibrary/useMediaLibrary.d.ts +12 -0
- package/dist/hooks/usePaths/usePaths.js +7 -0
- package/dist/hooks/usePreferences/usePreferences.js +10 -0
- package/dist/hooks/useResource/useResource.d.ts +3 -0
- package/dist/hooks/useResource/useResource.js +25 -0
- package/dist/hooks/useResourceSearch/useResourceSearch.d.ts +18 -0
- package/dist/hooks/useResourceSearch/useResourceSearch.js +19 -0
- package/dist/hooks/useSession/useSession.js +11 -0
- package/dist/hooks/useToast/useToast.d.ts +1 -1
- package/dist/hooks/useTrapFocus/useTrapFocus.d.ts +0 -1
- package/dist/hooks/useTrashedResource/useTrashedResource.js +27 -0
- package/dist/hooks/useUpload/useUpload.d.ts +18 -0
- package/dist/hooks/useUpload/useUpload.js +106 -0
- package/dist/hooks/useUploadFiles/useUploadFiles.d.ts +25 -0
- package/dist/hooks/useUploadFiles/useUploadFiles.js +100 -0
- package/dist/hooks/useUser/useUser.d.ts +7 -0
- package/dist/hooks/useUser/useUser.js +22 -0
- package/dist/hooks/useWorkspaceFile/useWorkspaceFile.d.ts +21 -0
- package/dist/hooks/useWorkspaceFile/useWorkspaceFile.js +49 -0
- package/dist/hooks/useWorkspaceSearch/useWorkspaceSearch.d.ts +9 -0
- package/dist/hooks/useWorkspaceSearch/useWorkspaceSearch.js +58 -0
- package/dist/hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js +28 -0
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +101 -0
- package/dist/icons-apps.js +232 -0
- package/dist/icons-audience.js +28 -0
- package/dist/icons-nav.js +28 -0
- package/dist/icons.js +300 -0
- package/dist/index.d.ts +3 -6
- package/dist/index.js +201 -261
- 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 +33 -0
- package/dist/modules/audience/ReactionModal.d.ts +20 -0
- package/dist/modules/audience/ReactionModal.js +72 -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 +40 -0
- package/dist/modules/audience/ViewsCounter.d.ts +10 -0
- package/dist/modules/audience/ViewsCounter.js +18 -0
- package/dist/modules/audience/ViewsModal.d.ts +11 -0
- package/dist/modules/audience/ViewsModal.js +41 -0
- package/dist/modules/audience/hooks/useReactionIcons.d.ts +5 -0
- package/dist/modules/audience/hooks/useReactionIcons.js +45 -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/comments/components/BadgeProfile.d.ts +4 -0
- package/dist/modules/comments/components/BadgeProfile.js +18 -0
- package/dist/modules/comments/components/Comment.d.ts +7 -0
- package/dist/modules/comments/components/Comment.js +72 -0
- package/dist/modules/comments/components/CommentAvatar.d.ts +3 -0
- package/dist/modules/comments/components/CommentAvatar.js +17 -0
- package/dist/modules/comments/components/CommentDate.d.ts +4 -0
- package/dist/modules/comments/components/CommentDate.js +27 -0
- package/dist/modules/comments/components/CommentForm.d.ts +3 -0
- package/dist/modules/comments/components/CommentForm.js +37 -0
- package/dist/modules/comments/components/CommentHeader.d.ts +3 -0
- package/dist/modules/comments/components/CommentHeader.js +8 -0
- package/dist/modules/comments/components/CommentList.d.ts +1 -0
- package/dist/modules/comments/components/CommentList.js +22 -0
- package/dist/modules/comments/components/CommentTitle.d.ts +4 -0
- package/dist/modules/comments/components/CommentTitle.js +7 -0
- package/dist/modules/comments/components/TextCounter.d.ts +4 -0
- package/dist/modules/comments/components/TextCounter.js +8 -0
- package/dist/modules/comments/constants.d.ts +20 -0
- package/dist/modules/comments/constants.js +8 -0
- package/dist/modules/comments/context/Context.d.ts +16 -0
- package/dist/modules/comments/context/Context.js +5 -0
- package/dist/modules/comments/hooks/useAutosizeTextarea.d.ts +1 -0
- package/dist/modules/comments/hooks/useAutosizeTextarea.js +19 -0
- package/dist/modules/comments/hooks/useComments.d.ts +29 -0
- package/dist/modules/comments/hooks/useComments.js +66 -0
- package/dist/modules/comments/hooks/useCommentsContext.d.ts +15 -0
- package/dist/modules/comments/hooks/useCommentsContext.js +11 -0
- package/dist/modules/comments/hooks/useProfileQueries.d.ts +4 -0
- package/dist/modules/comments/hooks/useProfileQueries.js +26 -0
- package/dist/modules/comments/index.d.ts +1 -0
- package/dist/modules/comments/provider/CommentProvider.d.ts +3 -0
- package/dist/modules/comments/provider/CommentProvider.js +85 -0
- package/dist/modules/comments/types.d.ts +102 -0
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.d.ts +8 -0
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +135 -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 +82 -0
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +7 -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 +331 -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 +3 -0
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +12 -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 +35 -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 +3 -0
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +73 -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 +61 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.d.ts +9 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +33 -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 +31 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +9 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +89 -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 +86 -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 +18 -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 +16 -0
- package/dist/modules/editor/hooks/useTipTapEditor.js +86 -0
- package/dist/modules/editor/index.d.ts +3 -0
- package/dist/modules/editor/utilities/has-extension.d.ts +2 -0
- package/dist/modules/editor/utilities/has-extension.js +4 -0
- package/dist/modules/editor/utilities/has-mark.d.ts +2 -0
- package/dist/modules/editor/utilities/has-mark.js +4 -0
- package/dist/modules/editor/utilities/has-text-style.d.ts +2 -0
- package/dist/modules/editor/utilities/has-text-style.js +5 -0
- package/dist/modules/icons/components/IconAdd.d.ts +7 -0
- package/dist/modules/icons/components/IconAdd.js +12 -0
- package/dist/modules/icons/components/IconAddUser.d.ts +7 -0
- package/dist/modules/icons/components/IconAddUser.js +12 -0
- package/dist/modules/icons/components/IconAlertCircle.d.ts +7 -0
- package/dist/modules/icons/components/IconAlertCircle.js +13 -0
- package/dist/modules/icons/components/IconAlertTriangle.d.ts +7 -0
- package/dist/modules/icons/components/IconAlertTriangle.js +13 -0
- package/dist/modules/icons/components/IconAlignCenter.d.ts +7 -0
- package/dist/modules/icons/components/IconAlignCenter.js +12 -0
- package/dist/modules/icons/components/IconAlignJustify.d.ts +7 -0
- package/dist/modules/icons/components/IconAlignJustify.js +12 -0
- package/dist/modules/icons/components/IconAlignLeft.d.ts +7 -0
- package/dist/modules/icons/components/IconAlignLeft.js +12 -0
- package/dist/modules/icons/components/IconAlignRight.d.ts +7 -0
- package/dist/modules/icons/components/IconAlignRight.js +12 -0
- package/dist/modules/icons/components/IconAnswer.d.ts +7 -0
- package/dist/modules/icons/components/IconAnswer.js +13 -0
- package/dist/modules/icons/components/IconApplications.d.ts +7 -0
- package/dist/modules/icons/components/IconApplications.js +12 -0
- package/dist/modules/icons/components/IconArrowDown.d.ts +7 -0
- package/dist/modules/icons/components/IconArrowDown.js +13 -0
- package/dist/modules/icons/components/IconArrowLeft.d.ts +7 -0
- package/dist/modules/icons/components/IconArrowLeft.js +13 -0
- package/dist/modules/icons/components/IconArrowRight.d.ts +7 -0
- package/dist/modules/icons/components/IconArrowRight.js +13 -0
- package/dist/modules/icons/components/IconArrowUp.d.ts +7 -0
- package/dist/modules/icons/components/IconArrowUp.js +13 -0
- package/dist/modules/icons/components/IconBlock.d.ts +7 -0
- package/dist/modules/icons/components/IconBlock.js +12 -0
- package/dist/modules/icons/components/IconBlur.d.ts +7 -0
- package/dist/modules/icons/components/IconBlur.js +13 -0
- package/dist/modules/icons/components/IconBookmark.d.ts +7 -0
- package/dist/modules/icons/components/IconBookmark.js +12 -0
- package/dist/modules/icons/components/IconBulletList.d.ts +7 -0
- package/dist/modules/icons/components/IconBulletList.js +16 -0
- package/dist/modules/icons/components/IconBurgerMenu.d.ts +7 -0
- package/dist/modules/icons/components/IconBurgerMenu.js +12 -0
- package/dist/modules/icons/components/IconCalendar.d.ts +7 -0
- package/dist/modules/icons/components/IconCalendar.js +12 -0
- package/dist/modules/icons/components/IconCalendarLight.d.ts +7 -0
- package/dist/modules/icons/components/IconCalendarLight.js +12 -0
- package/dist/modules/icons/components/IconCamera.d.ts +7 -0
- package/dist/modules/icons/components/IconCamera.js +13 -0
- package/dist/modules/icons/components/IconCenter.d.ts +7 -0
- package/dist/modules/icons/components/IconCenter.js +12 -0
- package/dist/modules/icons/components/IconCheck.d.ts +7 -0
- package/dist/modules/icons/components/IconCheck.js +12 -0
- package/dist/modules/icons/components/IconChecklist.d.ts +7 -0
- package/dist/modules/icons/components/IconChecklist.js +13 -0
- package/dist/modules/icons/components/IconClock.d.ts +7 -0
- package/dist/modules/icons/components/IconClock.js +12 -0
- package/dist/modules/icons/components/IconClose.d.ts +7 -0
- package/dist/modules/icons/components/IconClose.js +13 -0
- package/dist/modules/icons/components/IconCloseFullScreen.d.ts +7 -0
- package/dist/modules/icons/components/IconCloseFullScreen.js +12 -0
- package/dist/modules/icons/components/IconCode.d.ts +7 -0
- package/dist/modules/icons/components/IconCode.js +12 -0
- package/dist/modules/icons/components/IconCopy.d.ts +7 -0
- package/dist/modules/icons/components/IconCopy.js +12 -0
- package/dist/modules/icons/components/IconCrop.d.ts +7 -0
- package/dist/modules/icons/components/IconCrop.js +13 -0
- package/dist/modules/icons/components/IconCut.d.ts +7 -0
- package/dist/modules/icons/components/IconCut.js +13 -0
- package/dist/modules/icons/components/IconDelete.d.ts +7 -0
- package/dist/modules/icons/components/IconDelete.js +12 -0
- package/dist/modules/icons/components/IconDeleteColor.d.ts +7 -0
- package/dist/modules/icons/components/IconDeleteColor.js +13 -0
- package/dist/modules/icons/components/IconDeleteColumn.d.ts +7 -0
- package/dist/modules/icons/components/IconDeleteColumn.js +12 -0
- package/dist/modules/icons/components/IconDeleteColumnHighlight.d.ts +7 -0
- package/dist/modules/icons/components/IconDeleteColumnHighlight.js +12 -0
- package/dist/modules/icons/components/IconDeleteRow.d.ts +7 -0
- package/dist/modules/icons/components/IconDeleteRow.js +12 -0
- package/dist/modules/icons/components/IconDeleteRowHighlight.d.ts +7 -0
- package/dist/modules/icons/components/IconDeleteRowHighlight.js +12 -0
- package/dist/modules/icons/components/IconDepositeInbox.d.ts +7 -0
- package/dist/modules/icons/components/IconDepositeInbox.js +13 -0
- package/dist/modules/icons/components/IconDownload.d.ts +7 -0
- package/dist/modules/icons/components/IconDownload.js +17 -0
- package/dist/modules/icons/components/IconEdit.d.ts +7 -0
- package/dist/modules/icons/components/IconEdit.js +13 -0
- package/dist/modules/icons/components/IconError.d.ts +7 -0
- package/dist/modules/icons/components/IconError.js +12 -0
- package/dist/modules/icons/components/IconExternalLink.d.ts +7 -0
- package/dist/modules/icons/components/IconExternalLink.js +13 -0
- package/dist/modules/icons/components/IconFiles.d.ts +7 -0
- package/dist/modules/icons/components/IconFiles.js +12 -0
- package/dist/modules/icons/components/IconFilter.d.ts +7 -0
- package/dist/modules/icons/components/IconFilter.js +12 -0
- package/dist/modules/icons/components/IconFlag.d.ts +7 -0
- package/dist/modules/icons/components/IconFlag.js +12 -0
- package/dist/modules/icons/components/IconFolder.d.ts +7 -0
- package/dist/modules/icons/components/IconFolder.js +12 -0
- package/dist/modules/icons/components/IconFolderMove.d.ts +7 -0
- package/dist/modules/icons/components/IconFolderMove.js +17 -0
- package/dist/modules/icons/components/IconForgoing.d.ts +7 -0
- package/dist/modules/icons/components/IconForgoing.js +12 -0
- package/dist/modules/icons/components/IconFullScreen.d.ts +7 -0
- package/dist/modules/icons/components/IconFullScreen.js +12 -0
- package/dist/modules/icons/components/IconGlobe.d.ts +7 -0
- package/dist/modules/icons/components/IconGlobe.js +12 -0
- package/dist/modules/icons/components/IconHeadphone.d.ts +7 -0
- package/dist/modules/icons/components/IconHeadphone.js +12 -0
- package/dist/modules/icons/components/IconHide.d.ts +7 -0
- package/dist/modules/icons/components/IconHide.js +13 -0
- package/dist/modules/icons/components/IconHighlightColumn.d.ts +7 -0
- package/dist/modules/icons/components/IconHighlightColumn.js +12 -0
- package/dist/modules/icons/components/IconHighlightRow.d.ts +7 -0
- package/dist/modules/icons/components/IconHighlightRow.js +12 -0
- package/dist/modules/icons/components/IconHome.d.ts +7 -0
- package/dist/modules/icons/components/IconHome.js +12 -0
- package/dist/modules/icons/components/IconHourglass.d.ts +7 -0
- package/dist/modules/icons/components/IconHourglass.js +12 -0
- package/dist/modules/icons/components/IconImageSizeLarge.d.ts +7 -0
- package/dist/modules/icons/components/IconImageSizeLarge.js +12 -0
- package/dist/modules/icons/components/IconImageSizeMedium.d.ts +7 -0
- package/dist/modules/icons/components/IconImageSizeMedium.js +12 -0
- package/dist/modules/icons/components/IconImageSizeSmall.d.ts +7 -0
- package/dist/modules/icons/components/IconImageSizeSmall.js +12 -0
- package/dist/modules/icons/components/IconInbox.d.ts +7 -0
- package/dist/modules/icons/components/IconInbox.js +12 -0
- package/dist/modules/icons/components/IconInfoCircle.d.ts +7 -0
- package/dist/modules/icons/components/IconInfoCircle.js +13 -0
- package/dist/modules/icons/components/IconLandscape.d.ts +7 -0
- package/dist/modules/icons/components/IconLandscape.js +12 -0
- package/dist/modules/icons/components/IconLink.d.ts +7 -0
- package/dist/modules/icons/components/IconLink.js +16 -0
- package/dist/modules/icons/components/IconListOrder.d.ts +7 -0
- package/dist/modules/icons/components/IconListOrder.js +12 -0
- package/dist/modules/icons/components/IconLoader.d.ts +7 -0
- package/dist/modules/icons/components/IconLoader.js +12 -0
- package/dist/modules/icons/components/IconLock.d.ts +7 -0
- package/dist/modules/icons/components/IconLock.js +12 -0
- package/dist/modules/icons/components/IconMail.d.ts +7 -0
- package/dist/modules/icons/components/IconMail.js +13 -0
- package/dist/modules/icons/components/IconMergeCells.d.ts +7 -0
- package/dist/modules/icons/components/IconMergeCells.js +13 -0
- package/dist/modules/icons/components/IconMessageInfo.d.ts +7 -0
- package/dist/modules/icons/components/IconMessageInfo.js +13 -0
- package/dist/modules/icons/components/IconMic.d.ts +7 -0
- package/dist/modules/icons/components/IconMic.js +12 -0
- package/dist/modules/icons/components/IconMinus.d.ts +7 -0
- package/dist/modules/icons/components/IconMinus.js +12 -0
- package/dist/modules/icons/components/IconMove.d.ts +7 -0
- package/dist/modules/icons/components/IconMove.js +14 -0
- package/dist/modules/icons/components/IconNoColors.d.ts +7 -0
- package/dist/modules/icons/components/IconNoColors.js +12 -0
- package/dist/modules/icons/components/IconOptions.d.ts +7 -0
- package/dist/modules/icons/components/IconOptions.js +14 -0
- package/dist/modules/icons/components/IconOrderedList.d.ts +7 -0
- package/dist/modules/icons/components/IconOrderedList.js +16 -0
- package/dist/modules/icons/components/IconPaperclip.d.ts +7 -0
- package/dist/modules/icons/components/IconPaperclip.js +12 -0
- package/dist/modules/icons/components/IconPause.d.ts +7 -0
- package/dist/modules/icons/components/IconPause.js +12 -0
- package/dist/modules/icons/components/IconPinOff.d.ts +7 -0
- package/dist/modules/icons/components/IconPinOff.js +12 -0
- package/dist/modules/icons/components/IconPinOn.d.ts +7 -0
- package/dist/modules/icons/components/IconPinOn.js +12 -0
- package/dist/modules/icons/components/IconPlaceholder.d.ts +7 -0
- package/dist/modules/icons/components/IconPlaceholder.js +16 -0
- package/dist/modules/icons/components/IconPlay.d.ts +7 -0
- package/dist/modules/icons/components/IconPlay.js +12 -0
- package/dist/modules/icons/components/IconPlayFilled.d.ts +7 -0
- package/dist/modules/icons/components/IconPlayFilled.js +12 -0
- package/dist/modules/icons/components/IconPlus.d.ts +7 -0
- package/dist/modules/icons/components/IconPlus.js +12 -0
- package/dist/modules/icons/components/IconPointerDefault.d.ts +7 -0
- package/dist/modules/icons/components/IconPointerDefault.js +12 -0
- package/dist/modules/icons/components/IconPointerHand.d.ts +7 -0
- package/dist/modules/icons/components/IconPointerHand.js +12 -0
- package/dist/modules/icons/components/IconPrint.d.ts +7 -0
- package/dist/modules/icons/components/IconPrint.js +12 -0
- package/dist/modules/icons/components/IconQuestion.d.ts +7 -0
- package/dist/modules/icons/components/IconQuestion.js +14 -0
- package/dist/modules/icons/components/IconRafterDown.d.ts +7 -0
- package/dist/modules/icons/components/IconRafterDown.js +12 -0
- package/dist/modules/icons/components/IconRafterLeft.d.ts +7 -0
- package/dist/modules/icons/components/IconRafterLeft.js +12 -0
- package/dist/modules/icons/components/IconRafterRight.d.ts +7 -0
- package/dist/modules/icons/components/IconRafterRight.js +12 -0
- package/dist/modules/icons/components/IconRafterUp.d.ts +7 -0
- package/dist/modules/icons/components/IconRafterUp.js +12 -0
- package/dist/modules/icons/components/IconReaction.d.ts +7 -0
- package/dist/modules/icons/components/IconReaction.js +12 -0
- package/dist/modules/icons/components/IconRecord.d.ts +7 -0
- package/dist/modules/icons/components/IconRecord.js +12 -0
- package/dist/modules/icons/components/IconRecordPause.d.ts +7 -0
- package/dist/modules/icons/components/IconRecordPause.js +12 -0
- package/dist/modules/icons/components/IconRecordStop.d.ts +7 -0
- package/dist/modules/icons/components/IconRecordStop.js +12 -0
- package/dist/modules/icons/components/IconRecordVideo.d.ts +7 -0
- package/dist/modules/icons/components/IconRecordVideo.js +12 -0
- package/dist/modules/icons/components/IconRedo.d.ts +7 -0
- package/dist/modules/icons/components/IconRedo.js +13 -0
- package/dist/modules/icons/components/IconRefresh.d.ts +7 -0
- package/dist/modules/icons/components/IconRefresh.js +13 -0
- package/dist/modules/icons/components/IconReset.d.ts +7 -0
- package/dist/modules/icons/components/IconReset.js +12 -0
- package/dist/modules/icons/components/IconRestart.d.ts +7 -0
- package/dist/modules/icons/components/IconRestart.js +12 -0
- package/dist/modules/icons/components/IconRestore.d.ts +7 -0
- package/dist/modules/icons/components/IconRestore.js +12 -0
- package/dist/modules/icons/components/IconSave.d.ts +7 -0
- package/dist/modules/icons/components/IconSave.js +12 -0
- package/dist/modules/icons/components/IconSearch.d.ts +7 -0
- package/dist/modules/icons/components/IconSearch.js +12 -0
- package/dist/modules/icons/components/IconSee.d.ts +7 -0
- package/dist/modules/icons/components/IconSee.js +13 -0
- package/dist/modules/icons/components/IconSend.d.ts +7 -0
- package/dist/modules/icons/components/IconSend.js +12 -0
- package/dist/modules/icons/components/IconSetBackground.d.ts +7 -0
- package/dist/modules/icons/components/IconSetBackground.js +17 -0
- package/dist/modules/icons/components/IconSettings.d.ts +7 -0
- package/dist/modules/icons/components/IconSettings.js +16 -0
- package/dist/modules/icons/components/IconShare.d.ts +7 -0
- package/dist/modules/icons/components/IconShare.js +12 -0
- package/dist/modules/icons/components/IconSmartphone.d.ts +7 -0
- package/dist/modules/icons/components/IconSmartphone.js +13 -0
- package/dist/modules/icons/components/IconSmiley.d.ts +7 -0
- package/dist/modules/icons/components/IconSmiley.js +13 -0
- package/dist/modules/icons/components/IconSortAscendingLetters.d.ts +7 -0
- package/dist/modules/icons/components/IconSortAscendingLetters.js +13 -0
- package/dist/modules/icons/components/IconSortDescending.d.ts +7 -0
- package/dist/modules/icons/components/IconSortDescending.js +13 -0
- package/dist/modules/icons/components/IconSortDescendingLetters.d.ts +7 -0
- package/dist/modules/icons/components/IconSortDescendingLetters.js +13 -0
- package/dist/modules/icons/components/IconSortTime.d.ts +7 -0
- package/dist/modules/icons/components/IconSortTime.js +14 -0
- package/dist/modules/icons/components/IconSpeechToText.d.ts +7 -0
- package/dist/modules/icons/components/IconSpeechToText.js +12 -0
- package/dist/modules/icons/components/IconSplitCells.d.ts +7 -0
- package/dist/modules/icons/components/IconSplitCells.js +13 -0
- package/dist/modules/icons/components/IconSquareRoot.d.ts +7 -0
- package/dist/modules/icons/components/IconSquareRoot.js +12 -0
- package/dist/modules/icons/components/IconSubscript.d.ts +7 -0
- package/dist/modules/icons/components/IconSubscript.js +12 -0
- package/dist/modules/icons/components/IconSuccessFill.d.ts +7 -0
- package/dist/modules/icons/components/IconSuccessFill.js +12 -0
- package/dist/modules/icons/components/IconSuccessOutline.d.ts +7 -0
- package/dist/modules/icons/components/IconSuccessOutline.js +13 -0
- package/dist/modules/icons/components/IconSuperscript.d.ts +7 -0
- package/dist/modules/icons/components/IconSuperscript.js +12 -0
- package/dist/modules/icons/components/IconTable.d.ts +7 -0
- package/dist/modules/icons/components/IconTable.js +12 -0
- package/dist/modules/icons/components/IconTextBold.d.ts +7 -0
- package/dist/modules/icons/components/IconTextBold.js +12 -0
- package/dist/modules/icons/components/IconTextColor.d.ts +7 -0
- package/dist/modules/icons/components/IconTextColor.js +16 -0
- package/dist/modules/icons/components/IconTextHighlight.d.ts +7 -0
- package/dist/modules/icons/components/IconTextHighlight.js +16 -0
- package/dist/modules/icons/components/IconTextItalic.d.ts +7 -0
- package/dist/modules/icons/components/IconTextItalic.js +12 -0
- package/dist/modules/icons/components/IconTextPage.d.ts +7 -0
- package/dist/modules/icons/components/IconTextPage.js +12 -0
- package/dist/modules/icons/components/IconTextSize.d.ts +7 -0
- package/dist/modules/icons/components/IconTextSize.js +12 -0
- package/dist/modules/icons/components/IconTextToSpeech.d.ts +7 -0
- package/dist/modules/icons/components/IconTextToSpeech.js +12 -0
- package/dist/modules/icons/components/IconTextTypo.d.ts +7 -0
- package/dist/modules/icons/components/IconTextTypo.js +12 -0
- package/dist/modules/icons/components/IconTextUnderline.d.ts +7 -0
- package/dist/modules/icons/components/IconTextUnderline.js +13 -0
- package/dist/modules/icons/components/IconTextVanilla.d.ts +7 -0
- package/dist/modules/icons/components/IconTextVanilla.js +13 -0
- package/dist/modules/icons/components/IconTool.d.ts +7 -0
- package/dist/modules/icons/components/IconTool.js +12 -0
- package/dist/modules/icons/components/IconTrendingUp.d.ts +7 -0
- package/dist/modules/icons/components/IconTrendingUp.js +16 -0
- package/dist/modules/icons/components/IconUndo.d.ts +7 -0
- package/dist/modules/icons/components/IconUndo.js +13 -0
- package/dist/modules/icons/components/IconUnlink.d.ts +7 -0
- package/dist/modules/icons/components/IconUnlink.js +13 -0
- package/dist/modules/icons/components/IconUnlock.d.ts +7 -0
- package/dist/modules/icons/components/IconUnlock.js +13 -0
- package/dist/modules/icons/components/IconUpload.d.ts +7 -0
- package/dist/modules/icons/components/IconUpload.js +18 -0
- package/dist/modules/icons/components/IconUser.d.ts +7 -0
- package/dist/modules/icons/components/IconUser.js +12 -0
- package/dist/modules/icons/components/IconUserSearch.d.ts +7 -0
- package/dist/modules/icons/components/IconUserSearch.js +13 -0
- package/dist/modules/icons/components/IconUsers.d.ts +7 -0
- package/dist/modules/icons/components/IconUsers.js +13 -0
- package/dist/modules/icons/components/IconVideo.d.ts +7 -0
- package/dist/modules/icons/components/IconVideo.js +12 -0
- package/dist/modules/icons/components/IconViewCalendar.d.ts +7 -0
- package/dist/modules/icons/components/IconViewCalendar.js +12 -0
- package/dist/modules/icons/components/IconViewList.d.ts +7 -0
- package/dist/modules/icons/components/IconViewList.js +15 -0
- package/dist/modules/icons/components/IconWand.d.ts +7 -0
- package/dist/modules/icons/components/IconWand.js +12 -0
- package/dist/modules/icons/components/IconWrite.d.ts +7 -0
- package/dist/modules/icons/components/IconWrite.js +12 -0
- package/dist/modules/icons/components/IconZoomIn.d.ts +7 -0
- package/dist/modules/icons/components/IconZoomIn.js +12 -0
- package/dist/modules/icons/components/IconZoomOut.d.ts +7 -0
- package/dist/modules/icons/components/IconZoomOut.js +12 -0
- package/dist/modules/icons/components/apps/IconAccount.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAccount.js +12 -0
- package/dist/modules/icons/components/apps/IconActualites.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconActualites.js +12 -0
- package/dist/modules/icons/components/apps/IconAdmin.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAdmin.js +12 -0
- package/dist/modules/icons/components/apps/IconAdminPortal.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAdminPortal.js +12 -0
- package/dist/modules/icons/components/apps/IconAdmissionPostBac.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAdmissionPostBac.js +12 -0
- package/dist/modules/icons/components/apps/IconAgenda.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAgenda.js +12 -0
- package/dist/modules/icons/components/apps/IconArchive.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconArchive.js +12 -0
- package/dist/modules/icons/components/apps/IconAssistance.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAssistance.js +12 -0
- package/dist/modules/icons/components/apps/IconAssr.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAssr.js +12 -0
- package/dist/modules/icons/components/apps/IconAward.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAward.js +12 -0
- package/dist/modules/icons/components/apps/IconBanquesavoir.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconBanquesavoir.js +12 -0
- package/dist/modules/icons/components/apps/IconBcdi.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconBcdi.js +12 -0
- package/dist/modules/icons/components/apps/IconBiblionisep.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconBiblionisep.js +12 -0
- package/dist/modules/icons/components/apps/IconBlog.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconBlog.js +12 -0
- package/dist/modules/icons/components/apps/IconBookmarkEmpty.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconBookmarkEmpty.js +12 -0
- package/dist/modules/icons/components/apps/IconCahierDeTexte.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCahierDeTexte.js +12 -0
- package/dist/modules/icons/components/apps/IconCahierTextes.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCahierTextes.js +12 -0
- package/dist/modules/icons/components/apps/IconCalendar.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCalendar.js +12 -0
- package/dist/modules/icons/components/apps/IconCanalNumerique.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCanalNumerique.js +12 -0
- package/dist/modules/icons/components/apps/IconCcn.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCcn.js +12 -0
- package/dist/modules/icons/components/apps/IconCerise.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCerise.js +12 -0
- package/dist/modules/icons/components/apps/IconCervoprint.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCervoprint.js +12 -0
- package/dist/modules/icons/components/apps/IconCharlemagne.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCharlemagne.js +12 -0
- package/dist/modules/icons/components/apps/IconCharte.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCharte.js +12 -0
- package/dist/modules/icons/components/apps/IconChat.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconChat.js +12 -0
- package/dist/modules/icons/components/apps/IconCidj.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCidj.js +12 -0
- package/dist/modules/icons/components/apps/IconCns.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCns.js +12 -0
- package/dist/modules/icons/components/apps/IconCollaborativeWall.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCollaborativeWall.js +12 -0
- package/dist/modules/icons/components/apps/IconCommunity.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCommunity.js +12 -0
- package/dist/modules/icons/components/apps/IconCompetences.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconCompetences.js +12 -0
- package/dist/modules/icons/components/apps/IconConnecteurGenerique1.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconConnecteurGenerique1.js +12 -0
- package/dist/modules/icons/components/apps/IconConnecteurGenerique2.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconConnecteurGenerique2.js +12 -0
- package/dist/modules/icons/components/apps/IconConversation.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconConversation.js +12 -0
- package/dist/modules/icons/components/apps/IconDirectory.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconDirectory.js +12 -0
- package/dist/modules/icons/components/apps/IconEducagri.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconEducagri.js +12 -0
- package/dist/modules/icons/components/apps/IconEdumedia.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconEdumedia.js +12 -0
- package/dist/modules/icons/components/apps/IconEdumoov.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconEdumoov.js +12 -0
- package/dist/modules/icons/components/apps/IconEdutheque.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconEdutheque.js +12 -0
- package/dist/modules/icons/components/apps/IconElectron.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconElectron.js +12 -0
- package/dist/modules/icons/components/apps/IconElyceepicardie.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconElyceepicardie.js +12 -0
- package/dist/modules/icons/components/apps/IconEsidoc.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconEsidoc.js +12 -0
- package/dist/modules/icons/components/apps/IconEuropress.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconEuropress.js +12 -0
- package/dist/modules/icons/components/apps/IconExercizer.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconExercizer.js +12 -0
- package/dist/modules/icons/components/apps/IconForms.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconForms.js +16 -0
- package/dist/modules/icons/components/apps/IconForum.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconForum.js +12 -0
- package/dist/modules/icons/components/apps/IconGepi.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconGepi.js +12 -0
- package/dist/modules/icons/components/apps/IconGlpi.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconGlpi.js +12 -0
- package/dist/modules/icons/components/apps/IconHiboutheque.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconHiboutheque.js +12 -0
- package/dist/modules/icons/components/apps/IconItopstore.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconItopstore.js +12 -0
- package/dist/modules/icons/components/apps/IconKne.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconKne.js +12 -0
- package/dist/modules/icons/components/apps/IconLeSiteTv.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconLeSiteTv.js +12 -0
- package/dist/modules/icons/components/apps/IconLemonde.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconLemonde.js +12 -0
- package/dist/modules/icons/components/apps/IconLesechos.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconLesechos.js +12 -0
- package/dist/modules/icons/components/apps/IconLibrary.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconLibrary.js +12 -0
- package/dist/modules/icons/components/apps/IconLsu.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconLsu.js +12 -0
- package/dist/modules/icons/components/apps/IconMadmagz.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMadmagz.js +12 -0
- package/dist/modules/icons/components/apps/IconMatholycee.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMatholycee.js +12 -0
- package/dist/modules/icons/components/apps/IconMaxicours.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMaxicours.js +12 -0
- package/dist/modules/icons/components/apps/IconMediacentre.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMediacentre.js +12 -0
- package/dist/modules/icons/components/apps/IconMindmap.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMindmap.js +12 -0
- package/dist/modules/icons/components/apps/IconMonorientationenligne.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMonorientationenligne.js +12 -0
- package/dist/modules/icons/components/apps/IconMonstageenligne.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMonstageenligne.js +12 -0
- package/dist/modules/icons/components/apps/IconMoodle.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMoodle.js +12 -0
- package/dist/modules/icons/components/apps/IconMuseefrancaisphoto.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMuseefrancaisphoto.js +12 -0
- package/dist/modules/icons/components/apps/IconMyNetwork.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMyNetwork.js +12 -0
- package/dist/modules/icons/components/apps/IconNetvibes.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconNetvibes.js +12 -0
- package/dist/modules/icons/components/apps/IconNote.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconNote.js +12 -0
- package/dist/modules/icons/components/apps/IconNotebook.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconNotebook.js +12 -0
- package/dist/modules/icons/components/apps/IconNotes.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconNotes.js +12 -0
- package/dist/modules/icons/components/apps/IconOnisep.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconOnisep.js +12 -0
- package/dist/modules/icons/components/apps/IconOnisep2.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconOnisep2.js +12 -0
- package/dist/modules/icons/components/apps/IconPad.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPad.js +12 -0
- package/dist/modules/icons/components/apps/IconPages.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPages.js +12 -0
- package/dist/modules/icons/components/apps/IconParametrage.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconParametrage.js +12 -0
- package/dist/modules/icons/components/apps/IconParametrages.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconParametrages.js +12 -0
- package/dist/modules/icons/components/apps/IconParaschool.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconParaschool.js +12 -0
- package/dist/modules/icons/components/apps/IconParcours.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconParcours.js +12 -0
- package/dist/modules/icons/components/apps/IconPearltrees.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPearltrees.js +12 -0
- package/dist/modules/icons/components/apps/IconPicardieCursus.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPicardieCursus.js +12 -0
- package/dist/modules/icons/components/apps/IconPlaceholder.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPlaceholder.js +16 -0
- package/dist/modules/icons/components/apps/IconPoll.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPoll.js +12 -0
- package/dist/modules/icons/components/apps/IconPresences.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPresences.js +16 -0
- package/dist/modules/icons/components/apps/IconProeps.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconProeps.js +12 -0
- package/dist/modules/icons/components/apps/IconPronote.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPronote.js +12 -0
- package/dist/modules/icons/components/apps/IconPublic.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconPublic.js +12 -0
- package/dist/modules/icons/components/apps/IconQwant.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconQwant.js +12 -0
- package/dist/modules/icons/components/apps/IconQwantJunior.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconQwantJunior.js +12 -0
- package/dist/modules/icons/components/apps/IconRack.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconRack.js +12 -0
- package/dist/modules/icons/components/apps/IconRbs.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconRbs.js +12 -0
- package/dist/modules/icons/components/apps/IconResidenceArtiste.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconResidenceArtiste.js +12 -0
- package/dist/modules/icons/components/apps/IconRessourcesdepartementale91.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconRessourcesdepartementale91.js +12 -0
- package/dist/modules/icons/components/apps/IconSacoche.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconSacoche.js +12 -0
- package/dist/modules/icons/components/apps/IconSchoolbook.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconSchoolbook.js +12 -0
- package/dist/modules/icons/components/apps/IconScolinfo.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconScolinfo.js +12 -0
- package/dist/modules/icons/components/apps/IconScrapbook.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconScrapbook.js +12 -0
- package/dist/modules/icons/components/apps/IconSearchengine.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconSearchengine.js +12 -0
- package/dist/modules/icons/components/apps/IconSettingsClass.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconSettingsClass.js +12 -0
- package/dist/modules/icons/components/apps/IconSharebigfiles.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconSharebigfiles.js +12 -0
- package/dist/modules/icons/components/apps/IconStatistics.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconStatistics.js +12 -0
- package/dist/modules/icons/components/apps/IconStats.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconStats.js +12 -0
- package/dist/modules/icons/components/apps/IconSuitcase.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconSuitcase.js +12 -0
- package/dist/modules/icons/components/apps/IconSupport.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconSupport.js +12 -0
- package/dist/modules/icons/components/apps/IconTimeline.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconTimeline.js +12 -0
- package/dist/modules/icons/components/apps/IconTimelinegenerator.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconTimelinegenerator.js +12 -0
- package/dist/modules/icons/components/apps/IconTurboself.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconTurboself.js +12 -0
- package/dist/modules/icons/components/apps/IconUniversalis.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconUniversalis.js +12 -0
- package/dist/modules/icons/components/apps/IconUnstagepourtous.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconUnstagepourtous.js +12 -0
- package/dist/modules/icons/components/apps/IconUserbook.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconUserbook.js +12 -0
- package/dist/modules/icons/components/apps/IconVideo.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconVideo.js +12 -0
- package/dist/modules/icons/components/apps/IconVieScolaire.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconVieScolaire.js +12 -0
- package/dist/modules/icons/components/apps/IconVisioconf.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconVisioconf.js +12 -0
- package/dist/modules/icons/components/apps/IconWebclasseur.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconWebclasseur.js +12 -0
- package/dist/modules/icons/components/apps/IconWebsite.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconWebsite.js +12 -0
- package/dist/modules/icons/components/apps/IconWiki.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconWiki.js +13 -0
- package/dist/modules/icons/components/apps/IconWorkspace.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconWorkspace.js +12 -0
- package/dist/modules/icons/components/apps/index.d.ts +115 -0
- package/dist/modules/icons/components/audience/IconCongrats.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconCongrats.js +22 -0
- package/dist/modules/icons/components/audience/IconCongratsCounter.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconCongratsCounter.js +21 -0
- package/dist/modules/icons/components/audience/IconGreat.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconGreat.js +16 -0
- package/dist/modules/icons/components/audience/IconGreatCounter.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconGreatCounter.js +14 -0
- package/dist/modules/icons/components/audience/IconGuest.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconGuest.js +12 -0
- package/dist/modules/icons/components/audience/IconInteresting.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconInteresting.js +15 -0
- package/dist/modules/icons/components/audience/IconInterestingCounter.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconInterestingCounter.js +17 -0
- package/dist/modules/icons/components/audience/IconParent.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconParent.js +12 -0
- package/dist/modules/icons/components/audience/IconPersonnel.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconPersonnel.js +12 -0
- package/dist/modules/icons/components/audience/IconStudent.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconStudent.js +20 -0
- package/dist/modules/icons/components/audience/IconTeacher.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconTeacher.js +12 -0
- package/dist/modules/icons/components/audience/IconThanks.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconThanks.js +18 -0
- package/dist/modules/icons/components/audience/IconThanksCounter.d.ts +7 -0
- package/dist/modules/icons/components/audience/IconThanksCounter.js +16 -0
- package/dist/modules/icons/components/audience/index.d.ts +13 -0
- package/dist/modules/icons/components/index.d.ts +149 -0
- package/dist/modules/icons/components/nav/IconCommunity.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconCommunity.js +12 -0
- package/dist/modules/icons/components/nav/IconDisconnect.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconDisconnect.js +12 -0
- package/dist/modules/icons/components/nav/IconHome.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconHome.js +12 -0
- package/dist/modules/icons/components/nav/IconMyApps.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconMyApps.js +12 -0
- package/dist/modules/icons/components/nav/IconNeoAssistance.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconNeoAssistance.js +12 -0
- package/dist/modules/icons/components/nav/IconNeoMessaging.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconNeoMessaging.js +12 -0
- package/dist/modules/icons/components/nav/IconNewRelease.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconNewRelease.js +12 -0
- package/dist/modules/icons/components/nav/IconOneAssistance.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconOneAssistance.js +12 -0
- package/dist/modules/icons/components/nav/IconOneMessaging.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconOneMessaging.js +12 -0
- package/dist/modules/icons/components/nav/IconOneProfile.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconOneProfile.js +13 -0
- package/dist/modules/icons/components/nav/IconProfile.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconProfile.js +12 -0
- package/dist/modules/icons/components/nav/IconSearch.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconSearch.js +12 -0
- package/dist/modules/icons/components/nav/IconUserbook.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconUserbook.js +12 -0
- package/dist/modules/icons/components/nav/index.d.ts +13 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +59 -0
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.d.ts +6 -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.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.js +19 -0
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +23 -0
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +29 -0
- package/dist/modules/modals/PublishModal/components/ToastSuccess.d.ts +4 -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/ResourceModal/ResourceModal.d.ts +30 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.js +155 -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/useUpdateMutation.d.ts +7 -0
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +12 -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 +49 -0
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +41 -0
- package/dist/modules/modals/ShareModal/ShareModal.js +130 -0
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +8 -0
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +43 -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/utils/hasRight.d.ts +2 -0
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +2 -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.js +26 -0
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +16 -0
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +314 -0
- package/dist/modules/multimedia/Embed/Embed.js +32 -0
- package/dist/modules/multimedia/FileCard/FileCard._.d.ts +17 -0
- package/dist/modules/multimedia/FileCard/FileCard.d.ts +13 -0
- package/dist/modules/multimedia/FileCard/FileCard.js +94 -0
- package/dist/modules/multimedia/FileCard/FileIcon.d.ts +6 -0
- package/dist/modules/multimedia/FileCard/FileIcon.js +15 -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 +72 -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/misc.d.ts +154 -0
- package/dist/modules/multimedia/ImageEditor/effects/resize.d.ts +25 -0
- package/dist/modules/multimedia/ImageEditor/effects/rotate.d.ts +8 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.d.ts +32 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.d.ts +29 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.d.ts +23 -0
- package/dist/modules/multimedia/ImagePicker/ImagePicker.d.ts +46 -0
- package/dist/modules/multimedia/ImagePicker/ImagePicker.js +40 -0
- package/dist/modules/multimedia/ImagePicker/index.d.ts +2 -0
- package/dist/modules/multimedia/Linker/ExternalLinker/ExternalLinker.d.ts +28 -0
- package/dist/modules/multimedia/Linker/ExternalLinker/ExternalLinker.js +45 -0
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +37 -0
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +129 -0
- package/dist/modules/multimedia/Linker/index.d.ts +4 -0
- package/dist/modules/multimedia/LinkerCard/LinkerCard._.d.ts +8 -0
- package/dist/modules/multimedia/LinkerCard/LinkerCard.d.ts +13 -0
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +38 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +84 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +217 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +60 -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/InternalLink.d.ts +11 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +35 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +34 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +15 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +31 -0
- package/dist/modules/multimedia/UploadCard/UploadCard._.d.ts +9 -0
- package/dist/modules/multimedia/UploadCard/UploadCard.d.ts +43 -0
- package/dist/modules/multimedia/UploadCard/UploadCard.js +75 -0
- package/dist/modules/multimedia/UploadCard/index.d.ts +2 -0
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +9 -0
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js +56 -0
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.d.ts +6 -0
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +76 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +14 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +265 -0
- package/dist/modules/multimedia/Workspace/Workspace.d.ts +33 -0
- package/dist/modules/multimedia/Workspace/Workspace.js +172 -0
- package/dist/modules/multimedia/index.d.ts +7 -0
- package/dist/modules/widgets/BookmarkedApps/BookmarkedApps.d.ts +8 -0
- package/dist/multimedia.js +18 -0
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.d.ts +26 -0
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.js +5 -0
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +26 -0
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.hook.d.ts +1 -0
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.hook.js +11 -0
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.js +54 -0
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.context.d.ts +10 -0
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.context.js +5 -0
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.d.ts +10 -0
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.hook.d.ts +1 -0
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.hook.js +11 -0
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.js +46 -0
- package/dist/providers/MockedDataProvider/MockedDataProvider.d.ts +28 -0
- package/dist/providers/MockedDataProvider/MockedDataProvider.js +9 -0
- package/dist/providers/index.d.ts +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/size.d.ts +1 -1
- package/dist/types/status.d.ts +1 -1
- package/dist/types/treedata.d.ts +30 -0
- package/dist/utilities/check-user-rights/check-user-rights.d.ts +11 -0
- package/dist/utilities/check-user-rights/check-user-rights.js +46 -0
- package/dist/utilities/check-user-rights/index.d.ts +1 -0
- package/dist/utilities/index.d.ts +2 -0
- package/dist/utilities/refs/index.d.ts +1 -0
- package/package.json +115 -40
- package/dist/common/OnboardingModal/useOnboardingModal.d.ts +0 -7
- package/dist/common/PublishModal/PublishModal.d.ts +0 -9
- package/dist/common/PublishModal/components/AgeSelect.d.ts +0 -8
- package/dist/common/PublishModal/components/ToastSuccess.d.ts +0 -4
- package/dist/common/PublishModal/hooks/usePublishModal.d.ts +0 -38
- package/dist/common/ResourceModal/ResourceModal.d.ts +0 -30
- package/dist/common/ResourceModal/apps/BlogPublic.d.ts +0 -13
- package/dist/common/ResourceModal/hooks/useSlug.d.ts +0 -17
- package/dist/common/ResourceModal/hooks/useThumb.d.ts +0 -11
- package/dist/common/ResourceModal/hooks/useUpdateMutation.d.ts +0 -7
- package/dist/common/ShareModal/ShareBookmarkLine.d.ts +0 -9
- package/dist/common/ShareModal/ShareModal.d.ts +0 -41
- package/dist/common/ShareModal/apps/ShareBlog.d.ts +0 -8
- package/dist/common/ShareModal/hooks/useSearch.d.ts +0 -24
- package/dist/common/ShareModal/hooks/useShare.d.ts +0 -54
- package/dist/common/ShareModal/hooks/useShareBookmark.d.ts +0 -23
- package/dist/common/ShareModal/hooks/useShareMutation.d.ts +0 -13
- package/dist/common/ShareModal/utils/hasRight.d.ts +0 -2
- package/dist/common/ShareModal/utils/showShareRightLine.d.ts +0 -2
- package/dist/components/Audience/ReactionChoice.d.ts +0 -11
- package/dist/components/Audience/ReactionModal.Card.d.ts +0 -4
- package/dist/components/Audience/ReactionModal.d.ts +0 -20
- package/dist/components/Audience/ReactionSummary.d.ts +0 -10
- package/dist/components/Audience/ViewsByProfileCard.d.ts +0 -9
- package/dist/components/Audience/ViewsCounter.d.ts +0 -11
- package/dist/components/Audience/ViewsModal.d.ts +0 -11
- package/dist/components/Audience/hooks/useReactionIcons.d.ts +0 -5
- package/dist/components/Audience/hooks/useReactions.d.ts +0 -15
- package/dist/components/Audience/hooks/useViews.d.ts +0 -11
- package/dist/components/FileCard/FileCard.d.ts +0 -13
- package/dist/components/FileCard/FileIcon.d.ts +0 -6
- package/dist/components/ImagePicker/ImagePicker.d.ts +0 -38
- package/dist/components/ImagePicker/index.d.ts +0 -1
- package/dist/components/Menu/MenuButton.d.ts +0 -5
- package/dist/components/Table/Table.components.d.ts +0 -20
- package/dist/components/Table/Table.d.ts +0 -33
- package/dist/components/Table/TableExplorer.d.ts +0 -14
- package/dist/components/Tabs/Tabs.d.ts +0 -42
- package/dist/components/Tabs/TabsContext.d.ts +0 -12
- package/dist/components/Tabs/TabsList.d.ts +0 -6
- package/dist/components/TreeView/TreeItem.d.ts +0 -52
- package/dist/components/TreeView/hooks/useTreeItemEvents.d.ts +0 -8
- package/dist/components/UploadCard/UploadCard.d.ts +0 -42
- package/dist/components/UploadCard/index.d.ts +0 -1
- package/dist/core/OdeClientProvider/OdeClientProvider.d.ts +0 -28
- package/dist/core/OdeClientProvider/index.d.ts +0 -1
- package/dist/core/ThemeProvider/ThemeProvider.d.ts +0 -11
- package/dist/core/ThemeProvider/index.d.ts +0 -1
- package/dist/core/index.d.ts +0 -25
- package/dist/core/useAvatar/useAvatar.d.ts +0 -6
- package/dist/core/useBookmark/useBookmark.d.ts +0 -2
- package/dist/core/useConf/useConf.d.ts +0 -4
- package/dist/core/useDate/useDate.d.ts +0 -13
- package/dist/core/useHeader/useHeader.d.ts +0 -5
- package/dist/core/useHttpErrorToast/index.d.ts +0 -1
- package/dist/core/useHttpErrorToast/useHttpErrorToast.d.ts +0 -2
- package/dist/core/useMediaLibrary/useMediaLibrary.d.ts +0 -12
- package/dist/core/useOdeIcons/index.d.ts +0 -1
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +0 -9
- package/dist/core/useResource/useResource.d.ts +0 -3
- package/dist/core/useResourceSearch/useResourceSearch.d.ts +0 -18
- package/dist/core/useUpload/useUpload.d.ts +0 -18
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +0 -25
- package/dist/core/useUser/useUser.d.ts +0 -7
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +0 -21
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +0 -9
- package/dist/hooks/useImageResizer/index.d.ts +0 -1
- package/dist/hooks/useImageResizer/useImageResizer.d.ts +0 -8
- package/dist/icons/dist/index.js +0 -1282
- package/dist/multimedia/AudioRecorder/AudioRecorder.d.ts +0 -12
- package/dist/multimedia/AudioRecorder/useAudioRecorder.d.ts +0 -16
- package/dist/multimedia/ImageEditor/components/ImageEditorToolbar.d.ts +0 -7
- package/dist/multimedia/ImageEditor/effects/blur.d.ts +0 -19
- package/dist/multimedia/ImageEditor/effects/crop.d.ts +0 -28
- package/dist/multimedia/ImageEditor/effects/misc.d.ts +0 -154
- package/dist/multimedia/ImageEditor/effects/resize.d.ts +0 -25
- package/dist/multimedia/ImageEditor/effects/rotate.d.ts +0 -8
- package/dist/multimedia/ImageEditor/hooks/useHistoryTool.d.ts +0 -32
- package/dist/multimedia/ImageEditor/hooks/useImageEditor.d.ts +0 -30
- package/dist/multimedia/ImageEditor/hooks/useImageEffects.d.ts +0 -23
- package/dist/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.d.ts +0 -46
- package/dist/multimedia/ImagePickerWorkspace/index.d.ts +0 -2
- package/dist/multimedia/Linker/ExternalLinker.d.ts +0 -28
- package/dist/multimedia/Linker/InternalLinker.d.ts +0 -28
- package/dist/multimedia/Linker/index.d.ts +0 -4
- package/dist/multimedia/LinkerCard/LinkerCard.d.ts +0 -13
- package/dist/multimedia/MediaLibrary/MediaLibrary.d.ts +0 -84
- package/dist/multimedia/MediaLibrary/MediaLibraryContext.d.ts +0 -60
- package/dist/multimedia/MediaLibrary/innertabs/ExternalLink.d.ts +0 -6
- package/dist/multimedia/MediaLibrary/innertabs/InternalLink.d.ts +0 -11
- package/dist/multimedia/UploadFiles/UploadFiles.d.ts +0 -9
- package/dist/multimedia/VideoEmbed/VideoEmbed.d.ts +0 -5
- package/dist/multimedia/VideoRecorder/VideoRecorder.d.ts +0 -14
- package/dist/multimedia/Workspace/Workspace.d.ts +0 -33
- package/dist/multimedia/index.d.ts +0 -8
- package/dist/portal/Header/Badge.d.ts +0 -5
- package/dist/portal/Header/NavItem.d.ts +0 -6
- package/dist/portal/Header/NavbarNav.d.ts +0 -6
- package/dist/portal/Header/WidgetApps.d.ts +0 -9
- package/dist/portal/Header/index.d.ts +0 -5
- package/dist/portal/Help/hooks/useHelp.d.ts +0 -10
- package/dist/portal/Help/index.d.ts +0 -1
- package/dist/portal/Layout/Layout.d.ts +0 -12
- package/dist/portal/Layout/index.d.ts +0 -1
- package/dist/portal/Main/Main.d.ts +0 -16
- package/dist/portal/Main/index.d.ts +0 -2
- package/dist/portal/SearchEngine/index.d.ts +0 -1
- package/dist/ui/src/common/OnboardingModal/OnboardingModal.js +0 -59
- package/dist/ui/src/common/OnboardingModal/useOnboardingModal.js +0 -30
- package/dist/ui/src/common/PublishModal/PublishModal.js +0 -120
- package/dist/ui/src/common/PublishModal/components/ActivitiesDropdown.js +0 -29
- package/dist/ui/src/common/PublishModal/components/AgeSelect.js +0 -20
- package/dist/ui/src/common/PublishModal/components/LangSelect.js +0 -19
- package/dist/ui/src/common/PublishModal/components/PublishModalFooter.js +0 -23
- package/dist/ui/src/common/PublishModal/components/SubjectsDropdown.js +0 -29
- package/dist/ui/src/common/PublishModal/hooks/usePublishModal.js +0 -106
- package/dist/ui/src/common/ResourceModal/ResourceModal.js +0 -156
- package/dist/ui/src/common/ResourceModal/apps/BlogPublic.js +0 -62
- package/dist/ui/src/common/ResourceModal/hooks/useSlug.js +0 -41
- package/dist/ui/src/common/ResourceModal/hooks/useUpdateMutation.js +0 -12
- package/dist/ui/src/common/ShareModal/ShareBookmark.js +0 -22
- package/dist/ui/src/common/ShareModal/ShareBookmarkLine.js +0 -42
- package/dist/ui/src/common/ShareModal/ShareModal.js +0 -128
- package/dist/ui/src/common/ShareModal/apps/ShareBlog.js +0 -43
- package/dist/ui/src/common/ShareModal/hooks/useSearch.js +0 -178
- package/dist/ui/src/common/ShareModal/hooks/useShare.js +0 -192
- package/dist/ui/src/common/ShareModal/hooks/useShareBookmark.js +0 -67
- package/dist/ui/src/common/ShareModal/hooks/useShareMutation.js +0 -15
- package/dist/ui/src/components/ActionBar/ActionBar.js +0 -8
- package/dist/ui/src/components/Alert/Alert.js +0 -78
- package/dist/ui/src/components/AppHeader/AppHeader.js +0 -22
- package/dist/ui/src/components/AppIcon/AppIcon.js +0 -49
- package/dist/ui/src/components/Attachment/Attachment.js +0 -15
- package/dist/ui/src/components/Audience/ReactionChoice.js +0 -33
- package/dist/ui/src/components/Audience/ReactionModal.Card.js +0 -33
- package/dist/ui/src/components/Audience/ReactionModal.js +0 -73
- package/dist/ui/src/components/Audience/ReactionSummary.js +0 -27
- package/dist/ui/src/components/Audience/ViewsByProfileCard.js +0 -36
- package/dist/ui/src/components/Audience/ViewsCounter.js +0 -18
- package/dist/ui/src/components/Audience/ViewsModal.js +0 -40
- package/dist/ui/src/components/Audience/hooks/useReactionIcons.js +0 -38
- package/dist/ui/src/components/Audience/hooks/useReactions.js +0 -35
- package/dist/ui/src/components/Avatar/Avatar.js +0 -33
- package/dist/ui/src/components/Badge/Badge.js +0 -31
- package/dist/ui/src/components/Breadcrumb/Breadcrumb.js +0 -28
- package/dist/ui/src/components/Breadcrumb/BreadcrumbNav.js +0 -22
- package/dist/ui/src/components/Button/IconButton.js +0 -18
- package/dist/ui/src/components/Button/SearchButton.js +0 -17
- package/dist/ui/src/components/Card/Card.js +0 -51
- package/dist/ui/src/components/Card/CardHeader.js +0 -19
- package/dist/ui/src/components/Card/CardImage.js +0 -21
- package/dist/ui/src/components/Card/CardUser.js +0 -10
- package/dist/ui/src/components/ColorPicker/ColorPicker.js +0 -37
- package/dist/ui/src/components/ColorPicker/ColorPickerItem.js +0 -13
- package/dist/ui/src/components/Dropdown/Dropdown.js +0 -60
- package/dist/ui/src/components/Dropdown/DropdownTrigger.js +0 -34
- package/dist/ui/src/components/Dropzone/Dropzone.js +0 -56
- package/dist/ui/src/components/Dropzone/DropzoneFile.js +0 -32
- package/dist/ui/src/components/Dropzone/DropzoneImport.js +0 -28
- package/dist/ui/src/components/EmptyScreen/EmptyScreen.js +0 -20
- package/dist/ui/src/components/FileCard/FileCard.js +0 -91
- package/dist/ui/src/components/FileCard/FileIcon.js +0 -15
- package/dist/ui/src/components/Form/FormText.js +0 -17
- package/dist/ui/src/components/Image/Image.js +0 -41
- package/dist/ui/src/components/ImagePicker/ImagePicker.js +0 -58
- package/dist/ui/src/components/Loading/Loading.js +0 -27
- package/dist/ui/src/components/LoadingScreen/LoadingScreen.js +0 -25
- package/dist/ui/src/components/Logo/Logo.js +0 -14
- package/dist/ui/src/components/Menu/Menu.js +0 -58
- package/dist/ui/src/components/Menu/MenuButton.js +0 -21
- package/dist/ui/src/components/Modal/ModalHeader.js +0 -27
- package/dist/ui/src/components/SearchBar/SearchBar.js +0 -36
- package/dist/ui/src/components/Select/Select.js +0 -37
- package/dist/ui/src/components/Table/Table.components.js +0 -39
- package/dist/ui/src/components/Table/Table.js +0 -16
- package/dist/ui/src/components/Tabs/Tabs.js +0 -75
- package/dist/ui/src/components/Tabs/TabsItem.js +0 -26
- package/dist/ui/src/components/Tabs/TabsList.js +0 -24
- package/dist/ui/src/components/Tabs/TabsPanel.js +0 -14
- package/dist/ui/src/components/Toolbar/Toolbar.js +0 -77
- package/dist/ui/src/components/Tooltip/Tooltip.js +0 -40
- package/dist/ui/src/components/TreeView/TreeItem.js +0 -54
- package/dist/ui/src/components/TreeView/TreeView.js +0 -39
- package/dist/ui/src/components/TreeView/hooks/useTreeItemEvents.js +0 -28
- package/dist/ui/src/components/UploadCard/UploadCard.js +0 -72
- package/dist/ui/src/core/OdeClientProvider/OdeClientProvider.js +0 -62
- package/dist/ui/src/core/ThemeProvider/ThemeProvider.js +0 -53
- package/dist/ui/src/core/useAvatar/useAvatar.js +0 -30
- package/dist/ui/src/core/useBookmark/useBookmark.js +0 -14
- package/dist/ui/src/core/useCantoo/useCantoo.js +0 -18
- package/dist/ui/src/core/useConf/useConf.js +0 -13
- package/dist/ui/src/core/useConversation/useConversation.js +0 -43
- package/dist/ui/src/core/useDate/useDate.js +0 -65
- package/dist/ui/src/core/useHasWorkflow/useHasWorkflow.js +0 -22
- package/dist/ui/src/core/useHeader/useHeader.js +0 -50
- package/dist/ui/src/core/useHttpErrorToast/useHttpErrorToast.js +0 -21
- package/dist/ui/src/core/useIsAdml/useIsAdml.js +0 -18
- package/dist/ui/src/core/useLibraryUrl/useLibraryUrl.js +0 -21
- package/dist/ui/src/core/useOdeIcons/useOdeIcons.js +0 -92
- package/dist/ui/src/core/usePaths/usePaths.js +0 -6
- package/dist/ui/src/core/usePreferences/usePreferences.js +0 -10
- package/dist/ui/src/core/useResource/useResource.js +0 -25
- package/dist/ui/src/core/useResourceSearch/useResourceSearch.js +0 -34
- package/dist/ui/src/core/useSession/useSession.js +0 -11
- package/dist/ui/src/core/useTrashedResource/useTrashedResource.js +0 -27
- package/dist/ui/src/core/useUpload/useUpload.js +0 -106
- package/dist/ui/src/core/useUploadFiles/useUploadFiles.js +0 -101
- package/dist/ui/src/core/useUser/useUser.js +0 -22
- package/dist/ui/src/core/useWorkspaceFile/useWorkspaceFile.js +0 -49
- package/dist/ui/src/core/useWorkspaceSearch/useWorkspaceSearch.js +0 -58
- package/dist/ui/src/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js +0 -28
- package/dist/ui/src/core/useZendeskGuide/useZendeskGuide.js +0 -101
- package/dist/ui/src/hooks/useDropdown/useDropdown.js +0 -158
- package/dist/ui/src/hooks/useDropzone/useDropzone.js +0 -76
- package/dist/ui/src/hooks/useImageResizer/useImageResizer.js +0 -42
- package/dist/ui/src/multimedia/AudioRecorder/AudioRecorder.js +0 -49
- package/dist/ui/src/multimedia/AudioRecorder/AudioRecorderTimer.js +0 -24
- package/dist/ui/src/multimedia/AudioRecorder/useAudioRecorder.js +0 -307
- package/dist/ui/src/multimedia/Embed/Embed.js +0 -32
- package/dist/ui/src/multimedia/ImageEditor/components/ImageEditor.js +0 -116
- package/dist/ui/src/multimedia/ImageEditor/components/ImageEditorToolbar.js +0 -69
- package/dist/ui/src/multimedia/ImageEditor/effects/blur.js +0 -72
- package/dist/ui/src/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +0 -39
- package/dist/ui/src/multimedia/Linker/ExternalLinker.js +0 -45
- package/dist/ui/src/multimedia/Linker/InternalLinker.js +0 -114
- package/dist/ui/src/multimedia/LinkerCard/LinkerCard.js +0 -38
- package/dist/ui/src/multimedia/MediaLibrary/MediaLibrary.js +0 -211
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/ExternalLink.js +0 -17
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/InternalLink.js +0 -35
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/Upload.js +0 -34
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +0 -14
- package/dist/ui/src/multimedia/MediaLibrary/innertabs/Workspace.js +0 -31
- package/dist/ui/src/multimedia/UploadFiles/UploadFiles.js +0 -56
- package/dist/ui/src/multimedia/VideoEmbed/VideoEmbed.js +0 -77
- package/dist/ui/src/multimedia/VideoRecorder/VideoRecorder.js +0 -259
- package/dist/ui/src/multimedia/Workspace/Workspace.js +0 -169
- package/dist/ui/src/portal/Header/Badge.js +0 -9
- package/dist/ui/src/portal/Header/Header.js +0 -171
- package/dist/ui/src/portal/Header/NavLink.js +0 -19
- package/dist/ui/src/portal/Header/WidgetApps.js +0 -23
- package/dist/ui/src/portal/Help/Help.js +0 -25
- package/dist/ui/src/portal/Help/hooks/useHelp.js +0 -85
- package/dist/ui/src/portal/Layout/Layout.js +0 -43
- package/dist/ui/src/portal/SearchEngine/SearchEngine.js +0 -33
- package/dist/ui/src/utils/MockedDataProvider/MockedDataProvider.js +0 -26
- package/dist/ui/src/utils/StringUtils.js +0 -14
- package/dist/ui/src/utils/addTimestampToUrl.js +0 -7
- package/dist/ui/src/utils/blob.js +0 -15
- package/dist/ui/src/utils/checkUserRight.js +0 -44
- package/dist/ui/src/utils/fileSize.js +0 -8
- package/dist/ui/src/utils/findTreeNode.js +0 -11
- package/dist/ui/src/utils/isActionAvailable.js +0 -7
- package/dist/ui/src/utils/libraryMaps.js +0 -12
- package/dist/ui/src/utils/noop.js +0 -5
- package/dist/ui/src/utils/thumbnail.js +0 -6
- package/dist/ui/src/utils/time.js +0 -11
- package/dist/ui/src/utils/treeview.js +0 -133
- package/dist/ui/src/utils/video.js +0 -4
- package/dist/ui/src/widgets/BookmarkedApps/BookmarkedApps.js +0 -8
- package/dist/ui/src/widgets/Widget/Widget.js +0 -22
- package/dist/utils/MockedDataProvider/MockedDataProvider.d.ts +0 -28
- package/dist/utils/StringUtils.d.ts +0 -5
- package/dist/utils/addTimestampToUrl.d.ts +0 -6
- package/dist/utils/blob.d.ts +0 -9
- package/dist/utils/checkUserRight.d.ts +0 -11
- package/dist/utils/fileSize.d.ts +0 -1
- package/dist/utils/findTreeNode.d.ts +0 -9
- package/dist/utils/index.d.ts +0 -14
- package/dist/utils/isActionAvailable.d.ts +0 -2
- package/dist/utils/libraryMaps.d.ts +0 -4
- package/dist/utils/noop.d.ts +0 -4
- package/dist/utils/thumbnail.d.ts +0 -8
- package/dist/utils/time.d.ts +0 -2
- package/dist/utils/treeview.d.ts +0 -33
- package/dist/utils/video.d.ts +0 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.d.ts +0 -8
- /package/dist/{ui/src/components → components}/Breadcrumb/BreadcrumbItem.js +0 -0
- /package/dist/{ui/src/components → components}/Breadcrumb/BreadcrumbList.js +0 -0
- /package/dist/{ui/src/components → components}/Button/Button.js +0 -0
- /package/dist/{ui/src/components → components}/Card/CardBody.js +0 -0
- /package/dist/{ui/src/components → components}/Card/CardContext.js +0 -0
- /package/dist/{ui/src/components → components}/Card/CardFooter.js +0 -0
- /package/dist/{ui/src/components → components}/Card/CardText.js +0 -0
- /package/dist/{ui/src/components → components}/Card/CardTitle.js +0 -0
- /package/dist/{ui/src/components → components}/Checkbox/Checkbox.js +0 -0
- /package/dist/{ui/src/components → components}/ColorPicker/ColorPalette.js +0 -0
- /package/dist/{ui/src/components → components}/Combobox/Combobox.js +0 -0
- /package/dist/{ui/src/components → components}/Combobox/ComboboxTrigger.js +0 -0
- /package/dist/{ui/src/components → components}/Dropdown/DropdownCheckboxItem.js +0 -0
- /package/dist/{ui/src/components → components}/Dropdown/DropdownContext.js +0 -0
- /package/dist/{ui/src/components → components}/Dropdown/DropdownItem.js +0 -0
- /package/dist/{ui/src/components → components}/Dropdown/DropdownMenu.js +0 -0
- /package/dist/{ui/src/components → components}/Dropdown/DropdownMenuGroup.js +0 -0
- /package/dist/{ui/src/components → components}/Dropdown/DropdownRadioItem.js +0 -0
- /package/dist/{ui/src/components → components}/Dropdown/DropdownSeparator.js +0 -0
- /package/dist/{ui/src/components → components}/Dropzone/DropzoneContext.js +0 -0
- /package/dist/{ui/src/components → components}/Dropzone/DropzoneDrag.js +0 -0
- /package/dist/{ui/src/components → components}/Form/FormContext.js +0 -0
- /package/dist/{ui/src/components → components}/Form/FormControl.js +0 -0
- /package/dist/{ui/src/components → components}/Grid/Grid.js +0 -0
- /package/dist/{ui/src/components → components}/Heading/Heading.js +0 -0
- /package/dist/{ui/src/components → components}/Input/Input.js +0 -0
- /package/dist/{ui/src/components → components}/Label/Label.js +0 -0
- /package/dist/{portal/Header → components/Layout/components}/Header.d.ts +0 -0
- /package/dist/{portal/Help → components/Layout/components}/Help.d.ts +0 -0
- /package/dist/{ui/src/portal/Header → components/Layout/components}/NavItem.js +0 -0
- /package/dist/{portal/Header → components/Layout/components}/NavLink.d.ts +0 -0
- /package/dist/{portal/Header → components/Layout/components}/Navbar.d.ts +0 -0
- /package/dist/{ui/src/portal/Header → components/Layout/components}/Navbar.js +0 -0
- /package/dist/{ui/src/portal/Header → components/Layout/components}/NavbarNav.js +0 -0
- /package/dist/{portal/SearchEngine → components/Layout/components}/SearchEngine.d.ts +0 -0
- /package/dist/{portal → components/Layout}/index.d.ts +0 -0
- /package/dist/components/Menu/{Menu.d.ts → components/Menu.d.ts} +0 -0
- /package/dist/components/Menu/{MenuContext.d.ts → components/MenuContext.d.ts} +0 -0
- /package/dist/{ui/src/components/Menu → components/Menu/components}/MenuContext.js +0 -0
- /package/dist/components/Menu/{MenuItem.d.ts → components/MenuItem.d.ts} +0 -0
- /package/dist/{ui/src/components/Menu → components/Menu/components}/MenuItem.js +0 -0
- /package/dist/{ui/src/components → components}/Modal/Modal.js +0 -0
- /package/dist/{ui/src/components → components}/Modal/ModalBody.js +0 -0
- /package/dist/{ui/src/components → components}/Modal/ModalContext.js +0 -0
- /package/dist/{ui/src/components → components}/Modal/ModalFooter.js +0 -0
- /package/dist/{ui/src/components → components}/Modal/ModalSubtitle.js +0 -0
- /package/dist/{ui/src/components → components}/Popover/Popover.js +0 -0
- /package/dist/{ui/src/components → components}/Radio/Radio.js +0 -0
- /package/dist/{ui/src/components → components}/Select/SelectTrigger.js +0 -0
- /package/dist/components/Tabs/{TabsItem.d.ts → components/TabsItem.d.ts} +0 -0
- /package/dist/components/Tabs/{TabsPanel.d.ts → components/TabsPanel.d.ts} +0 -0
- /package/dist/{ui/src/components/Tabs → components/Tabs/context}/TabsContext.js +0 -0
- /package/dist/{ui/src/components → components}/TextArea/TextArea.js +0 -0
- /package/dist/{ui/src/components → components}/TextArea/TextareaCounter.js +0 -0
- /package/dist/{ui/src/components → components}/VisuallyHidden/VisuallyHidden.js +0 -0
- /package/dist/{core → hooks}/useAvatar/index.d.ts +0 -0
- /package/dist/{core → hooks}/useBookmark/index.d.ts +0 -0
- /package/dist/{ui/src/hooks → hooks}/useBrowserInfo/useBrowserInfo.js +0 -0
- /package/dist/{core → hooks}/useCantoo/index.d.ts +0 -0
- /package/dist/{core → hooks}/useCantoo/useCantoo.d.ts +0 -0
- /package/dist/{ui/src/hooks → hooks}/useClickOutside/useClickOutside.js +0 -0
- /package/dist/{core → hooks}/useConf/index.d.ts +0 -0
- /package/dist/{core → hooks}/useConversation/index.d.ts +0 -0
- /package/dist/{core → hooks}/useConversation/useConversation.d.ts +0 -0
- /package/dist/{core → hooks}/useCookiesConsent/index.d.ts +0 -0
- /package/dist/{core → hooks}/useCookiesConsent/useCookiesConsent.d.ts +0 -0
- /package/dist/{ui/src/core → hooks}/useCookiesConsent/useCookiesConsent.js +0 -0
- /package/dist/{core → hooks}/useDate/index.d.ts +0 -0
- /package/dist/{ui/src/hooks → hooks}/useDebounce/useDebounce.js +0 -0
- /package/dist/{core → hooks}/useHasWorkflow/index.d.ts +0 -0
- /package/dist/{core → hooks}/useHasWorkflow/useHasWorkflow.d.ts +0 -0
- /package/dist/{core → hooks}/useHeader/index.d.ts +0 -0
- /package/dist/{ui/src/hooks → hooks}/useHover/useHover.js +0 -0
- /package/dist/{ui/src/hooks → hooks}/useImage/useImage.js +0 -0
- /package/dist/{core → hooks}/useIsAdml/index.d.ts +0 -0
- /package/dist/{core → hooks}/useIsAdml/useIsAdml.d.ts +0 -0
- /package/dist/{ui/src/hooks → hooks}/useKeyPress/useKeyPress.js +0 -0
- /package/dist/{core → hooks}/useLibraryUrl/index.d.ts +0 -0
- /package/dist/{core → hooks}/useLibraryUrl/useLibraryUrl.d.ts +0 -0
- /package/dist/{core → hooks}/useMediaLibrary/index.d.ts +0 -0
- /package/dist/{ui/src/core → hooks}/useMediaLibrary/useMediaLibrary.js +0 -0
- /package/dist/{core → hooks}/usePaths/index.d.ts +0 -0
- /package/dist/{core → hooks}/usePaths/usePaths.d.ts +0 -0
- /package/dist/{core → hooks}/usePreferences/index.d.ts +0 -0
- /package/dist/{core → hooks}/usePreferences/usePreferences.d.ts +0 -0
- /package/dist/{core → hooks}/useResource/index.d.ts +0 -0
- /package/dist/{core → hooks}/useResourceSearch/index.d.ts +0 -0
- /package/dist/{ui/src/hooks → hooks}/useScrollToTop/useScrollToTop.js +0 -0
- /package/dist/{core → hooks}/useSession/index.d.ts +0 -0
- /package/dist/{core → hooks}/useSession/useSession.d.ts +0 -0
- /package/dist/{ui/src/hooks → hooks}/useThumbnail/useThumbnail.js +0 -0
- /package/dist/{ui/src/hooks → hooks}/useTitle/useTitle.js +0 -0
- /package/dist/{ui/src/hooks → hooks}/useToast/useToast.js +0 -0
- /package/dist/{ui/src/hooks → hooks}/useToggle/useToggle.js +0 -0
- /package/dist/{ui/src/hooks → hooks}/useTrapFocus/useTrapFocus.js +0 -0
- /package/dist/{core → hooks}/useTrashedResource/index.d.ts +0 -0
- /package/dist/{core → hooks}/useTrashedResource/useTrashedResource.d.ts +0 -0
- /package/dist/{core → hooks}/useUpload/index.d.ts +0 -0
- /package/dist/{core → hooks}/useUploadFiles/index.d.ts +0 -0
- /package/dist/{core → hooks}/useUser/index.d.ts +0 -0
- /package/dist/{core → hooks}/useWorkspaceFile/index.d.ts +0 -0
- /package/dist/{core → hooks}/useWorkspaceSearch/index.d.ts +0 -0
- /package/dist/{core → hooks}/useXitiTrackPageLoad/index.d.ts +0 -0
- /package/dist/{core → hooks}/useXitiTrackPageLoad/useXitiTrackPageLoad.d.ts +0 -0
- /package/dist/{core → hooks}/useZendeskGuide/index.d.ts +0 -0
- /package/dist/{core → hooks}/useZendeskGuide/useZendeskGuide.d.ts +0 -0
- /package/dist/{components/Audience → modules/audience}/index.d.ts +0 -0
- /package/dist/{common → modules/modals}/OnboardingModal/OnboardingModal.d.ts +0 -0
- /package/dist/{common → modules/modals}/OnboardingModal/index.d.ts +0 -0
- /package/dist/{common → modules/modals}/PublishModal/components/ActivitiesDropdown.d.ts +0 -0
- /package/dist/{common → modules/modals}/PublishModal/components/LangSelect.d.ts +0 -0
- /package/dist/{common → modules/modals}/PublishModal/components/PublishModalFooter.d.ts +0 -0
- /package/dist/{common → modules/modals}/PublishModal/components/SubjectsDropdown.d.ts +0 -0
- /package/dist/{common → modules/modals}/PublishModal/components/ToastError.d.ts +0 -0
- /package/dist/{ui/src/common → modules/modals}/PublishModal/components/ToastError.js +0 -0
- /package/dist/{ui/src/common → modules/modals}/PublishModal/components/ToastSuccess.js +0 -0
- /package/dist/{common → modules/modals}/PublishModal/constants/ageOptions.d.ts +0 -0
- /package/dist/{ui/src/common → modules/modals}/PublishModal/constants/ageOptions.js +0 -0
- /package/dist/{common → modules/modals}/PublishModal/hooks/useActivitiesOptions.d.ts +0 -0
- /package/dist/{ui/src/common → modules/modals}/PublishModal/hooks/useActivitiesOptions.js +0 -0
- /package/dist/{common → modules/modals}/PublishModal/hooks/useLanguageOptions.d.ts +0 -0
- /package/dist/{ui/src/common → modules/modals}/PublishModal/hooks/useLanguageOptions.js +0 -0
- /package/dist/{common → modules/modals}/PublishModal/hooks/useSubjectsOptions.d.ts +0 -0
- /package/dist/{ui/src/common → modules/modals}/PublishModal/hooks/useSubjectsOptions.js +0 -0
- /package/dist/{common → modules/modals}/PublishModal/index.d.ts +0 -0
- /package/dist/{ui/src/common → modules/modals}/ResourceModal/hooks/useThumb.js +0 -0
- /package/dist/{common → modules/modals}/ResourceModal/index.d.ts +0 -0
- /package/dist/{common → modules/modals}/ShareModal/ShareBookmark.d.ts +0 -0
- /package/dist/{common → modules/modals}/ShareModal/index.d.ts +0 -0
- /package/dist/{ui/src/common → modules/modals}/ShareModal/utils/hasRight.js +0 -0
- /package/dist/{ui/src/common → modules/modals}/ShareModal/utils/showShareRightLine.js +0 -0
- /package/dist/{common → modules/modals}/index.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/AudioRecorder/AudioRecorderTimer.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/AudioRecorder/index.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/Embed/Embed.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/Embed/index.d.ts +0 -0
- /package/dist/{components → modules/multimedia}/FileCard/index.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/ImageEditor/components/ImageEditor.d.ts +0 -0
- /package/dist/{ui/src → modules}/multimedia/ImageEditor/effects/crop.js +0 -0
- /package/dist/{ui/src → modules}/multimedia/ImageEditor/effects/misc.js +0 -0
- /package/dist/{ui/src → modules}/multimedia/ImageEditor/effects/resize.js +0 -0
- /package/dist/{ui/src → modules}/multimedia/ImageEditor/effects/rotate.js +0 -0
- /package/dist/{ui/src → modules}/multimedia/ImageEditor/hooks/useHistoryTool.js +0 -0
- /package/dist/{ui/src → modules}/multimedia/ImageEditor/hooks/useImageEditor.js +0 -0
- /package/dist/{ui/src → modules}/multimedia/ImageEditor/hooks/useImageEffects.js +0 -0
- /package/dist/{multimedia → modules/multimedia}/ImageEditor/index.d.ts +0 -0
- /package/dist/{multimedia/ImageEditor/utils → modules/multimedia/ImageEditor/utilities}/aggregate.d.ts +0 -0
- /package/dist/{ui/src/multimedia/ImageEditor/utils → modules/multimedia/ImageEditor/utilities}/aggregate.js +0 -0
- /package/dist/{multimedia/ImageEditor/utils → modules/multimedia/ImageEditor/utilities}/debounceAggregate.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/LinkerCard/index.d.ts +0 -0
- /package/dist/{ui/src → modules}/multimedia/MediaLibrary/MediaLibraryContext.js +0 -0
- /package/dist/{multimedia → modules/multimedia}/MediaLibrary/index.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/MediaLibrary/innertabs/Audio.d.ts +0 -0
- /package/dist/{ui/src → modules}/multimedia/MediaLibrary/innertabs/Audio.js +0 -0
- /package/dist/{multimedia → modules/multimedia}/MediaLibrary/innertabs/Iframe.d.ts +0 -0
- /package/dist/{ui/src → modules}/multimedia/MediaLibrary/innertabs/Iframe.js +0 -0
- /package/dist/{multimedia → modules/multimedia}/MediaLibrary/innertabs/Upload.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/MediaLibrary/innertabs/Video.d.ts +0 -0
- /package/dist/{ui/src → modules}/multimedia/MediaLibrary/innertabs/Video.js +0 -0
- /package/dist/{multimedia → modules/multimedia}/MediaLibrary/innertabs/VideoEmbedder.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/MediaLibrary/innertabs/Workspace.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/MediaLibrary/innertabs/index.d.ts +0 -0
- /package/dist/{ui/src → modules}/multimedia/MediaLibrary/innertabs/index.js +0 -0
- /package/dist/{multimedia → modules/multimedia}/UploadFiles/index.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/VideoEmbed/index.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/VideoRecorder/index.d.ts +0 -0
- /package/dist/{multimedia → modules/multimedia}/Workspace/index.d.ts +0 -0
- /package/dist/{widgets → modules/widgets}/BookmarkedApps/index.d.ts +0 -0
- /package/dist/{widgets → modules/widgets}/Widget/Widget.d.ts +0 -0
- /package/dist/{widgets → modules/widgets}/Widget/index.d.ts +0 -0
- /package/dist/{widgets → modules/widgets}/index.d.ts +0 -0
- /package/dist/{utils → providers}/MockedDataProvider/index.d.ts +0 -0
- /package/dist/{utils → utilities/refs}/ref.d.ts +0 -0
- /package/dist/{ui/src/utils → utilities/refs}/ref.js +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useCallback, useEffect } from "react";
|
|
3
|
+
import { odeServices } from "@edifice.io/ts-client";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import { useDebounce } from "@uidotdev/usehooks";
|
|
6
|
+
import { useEdificeTheme } from "../../../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
7
|
+
import SvgIconApplications from "../../../icons/components/IconApplications.js";
|
|
8
|
+
import LinkerCard from "../../LinkerCard/LinkerCard.js";
|
|
9
|
+
import { useResourceSearch } from "../../../../hooks/useResourceSearch/useResourceSearch.js";
|
|
10
|
+
import AppIcon from "../../../../components/AppIcon/AppIcon.js";
|
|
11
|
+
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
12
|
+
import SearchBar from "../../../../components/SearchBar/SearchBar.js";
|
|
13
|
+
import EmptyScreen from "../../../../components/EmptyScreen/EmptyScreen.js";
|
|
14
|
+
import usePaths from "../../../../hooks/usePaths/usePaths.js";
|
|
15
|
+
const InternalLinker = ({
|
|
16
|
+
appCode,
|
|
17
|
+
defaultAppCode,
|
|
18
|
+
defaultResourceId,
|
|
19
|
+
onChange,
|
|
20
|
+
onSelect,
|
|
21
|
+
multiple = !0,
|
|
22
|
+
resourceList,
|
|
23
|
+
applicationList,
|
|
24
|
+
showApplicationSelector = !0
|
|
25
|
+
}) => {
|
|
26
|
+
const {
|
|
27
|
+
t
|
|
28
|
+
} = useTranslation(), {
|
|
29
|
+
theme
|
|
30
|
+
} = useEdificeTheme(), [imagePath] = usePaths(), {
|
|
31
|
+
resourceApplications,
|
|
32
|
+
loadResources
|
|
33
|
+
} = useResourceSearch(appCode), [options, setOptions] = useState(), [selectedApplication, setSelectedApplication] = useState(), [searchTerms, setSearchTerms] = useState(), debounceSearch = useDebounce(searchTerms || "", 500), [resources, setResources] = useState([]), filterResources = useCallback((resource, search) => {
|
|
34
|
+
var _a, _b, _c;
|
|
35
|
+
if (!search) return !0;
|
|
36
|
+
const searchParam = (search == null ? void 0 : search.toLowerCase()) || "";
|
|
37
|
+
return ((_a = resource.name) == null ? void 0 : _a.toLowerCase().includes(searchParam)) || ((_b = resource.creatorName) == null ? void 0 : _b.toLowerCase().includes(searchParam)) || ((_c = resource.description) == null ? void 0 : _c.toLowerCase().includes(searchParam));
|
|
38
|
+
}, []), sortResources = useCallback((resources2) => resources2.sort((a, b) => a.modifiedAt < b.modifiedAt ? 1 : -1), []), loadAndDisplayResources = useCallback((search) => {
|
|
39
|
+
async function load() {
|
|
40
|
+
if (resourceList) {
|
|
41
|
+
const filteredResources = resourceList.filter((resource) => filterResources(resource, search));
|
|
42
|
+
setResources(sortResources(filteredResources));
|
|
43
|
+
return;
|
|
44
|
+
} else if (selectedApplication)
|
|
45
|
+
try {
|
|
46
|
+
const resources2 = (await loadResources({
|
|
47
|
+
application: selectedApplication.application,
|
|
48
|
+
search,
|
|
49
|
+
types: [selectedApplication.application],
|
|
50
|
+
filters: {},
|
|
51
|
+
pagination: {
|
|
52
|
+
startIdx: 0,
|
|
53
|
+
pageSize: 300
|
|
54
|
+
}
|
|
55
|
+
// ignored at the moment
|
|
56
|
+
})).filter((resource) => filterResources(resource, search));
|
|
57
|
+
setResources(sortResources(resources2));
|
|
58
|
+
return;
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
61
|
+
setResources([]);
|
|
62
|
+
}
|
|
63
|
+
load();
|
|
64
|
+
}, [loadResources, selectedApplication, filterResources, sortResources, resourceList]), [selectedDocuments, setSelectedDocuments] = useState([]), handleOptionClick = (option) => {
|
|
65
|
+
onChange == null || onChange(option), setSelectedApplication(option);
|
|
66
|
+
}, handleSearchChange = (event) => {
|
|
67
|
+
const newText = event.target.value;
|
|
68
|
+
setSearchTerms(newText.toString());
|
|
69
|
+
}, handleSubmit = useCallback((event) => {
|
|
70
|
+
loadAndDisplayResources(searchTerms), event.stopPropagation(), event.preventDefault();
|
|
71
|
+
}, [loadAndDisplayResources, searchTerms]), getSelectedResourceIndex = useCallback((resourceId) => selectedDocuments.findIndex((selectedDocument) => selectedDocument.assetId === resourceId), [selectedDocuments]), selectResource = useCallback((resource) => {
|
|
72
|
+
setSelectedDocuments(multiple ? (previousState) => [...previousState, resource] : [resource]);
|
|
73
|
+
}, [setSelectedDocuments, multiple]), toggleResourceSelection = useCallback((resource) => {
|
|
74
|
+
const index = getSelectedResourceIndex(resource.assetId);
|
|
75
|
+
index < 0 ? selectResource(resource) : setSelectedDocuments(selectedDocuments.filter((_value, i) => i !== index));
|
|
76
|
+
}, [getSelectedResourceIndex, selectResource, selectedDocuments]);
|
|
77
|
+
return useEffect(() => {
|
|
78
|
+
(async () => {
|
|
79
|
+
if (applicationList) {
|
|
80
|
+
setOptions(applicationList.sort((app1, app2) => app1.displayName.localeCompare(app2.displayName)));
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const appPromises = resourceApplications.map((application) => odeServices.session().getWebApp(application)), webApps = await Promise.all(appPromises);
|
|
84
|
+
setOptions(resourceApplications.map((application, index) => {
|
|
85
|
+
var _a;
|
|
86
|
+
return {
|
|
87
|
+
application,
|
|
88
|
+
displayName: t(((_a = webApps[index]) == null ? void 0 : _a.displayName) ?? application),
|
|
89
|
+
icon: /* @__PURE__ */ jsx(AppIcon, { app: webApps[index], size: "24" })
|
|
90
|
+
};
|
|
91
|
+
}).sort((app1, app2) => app1.displayName.localeCompare(app2.displayName)));
|
|
92
|
+
})();
|
|
93
|
+
}, [resourceApplications, t, applicationList]), useEffect(() => {
|
|
94
|
+
loadAndDisplayResources(debounceSearch);
|
|
95
|
+
}, [loadAndDisplayResources, debounceSearch]), useEffect(() => {
|
|
96
|
+
onSelect == null || onSelect(selectedDocuments);
|
|
97
|
+
}, [selectedDocuments]), useEffect(() => {
|
|
98
|
+
var _a;
|
|
99
|
+
const safeDefaultAppCode = defaultAppCode ?? ((applicationList == null ? void 0 : applicationList.length) === 1 && ((_a = applicationList == null ? void 0 : applicationList[0]) == null ? void 0 : _a.application));
|
|
100
|
+
if (safeDefaultAppCode) {
|
|
101
|
+
const option = options == null ? void 0 : options.find((option2) => safeDefaultAppCode === option2.application);
|
|
102
|
+
setSelectedApplication(option), loadAndDisplayResources("");
|
|
103
|
+
}
|
|
104
|
+
}, [options, defaultAppCode]), useEffect(() => {
|
|
105
|
+
if (defaultResourceId && getSelectedResourceIndex(defaultResourceId) < 0) {
|
|
106
|
+
const resource = resources == null ? void 0 : resources.find((resource2) => defaultResourceId === resource2.assetId);
|
|
107
|
+
resource && selectResource(resource);
|
|
108
|
+
}
|
|
109
|
+
}, [resources]), /* @__PURE__ */ jsxs("div", { className: "d-flex flex-column flex-fill overflow-hidden", children: [
|
|
110
|
+
/* @__PURE__ */ jsxs("div", { className: "search d-flex bg-light rounded-top border border-bottom-0", children: [
|
|
111
|
+
showApplicationSelector && /* @__PURE__ */ jsx("div", { className: "flex-shrink-1 px-8 py-12 border-end", children: /* @__PURE__ */ jsxs(Dropdown, { overflow: !0, children: [
|
|
112
|
+
/* @__PURE__ */ jsx(Dropdown.Trigger, { icon: /* @__PURE__ */ jsx("div", { className: "pe-8", children: (selectedApplication == null ? void 0 : selectedApplication.icon) || /* @__PURE__ */ jsx(SvgIconApplications, {}) }), label: t((selectedApplication == null ? void 0 : selectedApplication.displayName) || "bbm.linker.int.choose"), variant: "ghost", size: "md" }),
|
|
113
|
+
/* @__PURE__ */ jsx(Dropdown.Menu, { children: options == null ? void 0 : options.map((option) => /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: () => handleOptionClick(option), children: option.displayName }, option.application)) })
|
|
114
|
+
] }) }),
|
|
115
|
+
/* @__PURE__ */ jsx("div", { className: "flex-grow-1 align-self-center", children: /* @__PURE__ */ jsx("form", { className: "gap-16 d-flex w-100 align-items-center px-16 py-8", onSubmit: handleSubmit, children: /* @__PURE__ */ jsx(SearchBar, { isVariant: !0, placeholder: t("search"), size: "lg", className: "w-100", disabled: !selectedApplication, onChange: handleSearchChange }) }) })
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ jsxs("div", { className: "internal-linker flex-grow-1 w-100 rounded-bottom border gap-0 overflow-auto", children: [
|
|
118
|
+
selectedApplication && resources && resources.length > 0 && /* @__PURE__ */ jsx("div", { children: resources.map((resource) => {
|
|
119
|
+
const isSelected = selectedDocuments.findIndex((doc) => doc.assetId === resource.assetId) >= 0;
|
|
120
|
+
return /* @__PURE__ */ jsx(LinkerCard, { doc: resource, isSelected, onClick: () => toggleResourceSelection(resource) }, resource.path);
|
|
121
|
+
}) }),
|
|
122
|
+
selectedApplication && resources && resources.length <= 0 && /* @__PURE__ */ jsx("div", { className: "d-flex justify-content-center mt-16", children: /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/illu-empty-search-${selectedApplication.application}.svg`, text: t("bbm.linker.int.notfound"), className: "mt-16" }) }),
|
|
123
|
+
!selectedApplication && /* @__PURE__ */ jsx("div", { className: "d-flex justify-content-center mt-32", children: /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/illu-empty-search.svg`, text: t("bbm.linker.int.empty"), className: "mt-32" }) })
|
|
124
|
+
] })
|
|
125
|
+
] });
|
|
126
|
+
};
|
|
127
|
+
export {
|
|
128
|
+
InternalLinker as default
|
|
129
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as LinkerCard } from './LinkerCard';
|
|
3
|
+
declare const meta: Meta<typeof LinkerCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LinkerCard>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const TimelineGenerator: Story;
|
|
8
|
+
export declare const Blog: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IResource } from '@edifice.io/ts-client';
|
|
2
|
+
import { CardProps } from '../../../components';
|
|
3
|
+
export interface LinkerCardProps extends CardProps {
|
|
4
|
+
/**
|
|
5
|
+
* Resource to render as a card
|
|
6
|
+
* */
|
|
7
|
+
doc: IResource;
|
|
8
|
+
}
|
|
9
|
+
declare const LinkerCard: {
|
|
10
|
+
({ doc, isClickable, isSelectable, isSelected, onClick, className, }: LinkerCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default LinkerCard;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import SvgIconUsers from "../../icons/components/IconUsers.js";
|
|
5
|
+
import useDate from "../../../hooks/useDate/useDate.js";
|
|
6
|
+
import Card from "../../../components/Card/Card.js";
|
|
7
|
+
import Image from "../../../components/Image/Image.js";
|
|
8
|
+
import AppIcon from "../../../components/AppIcon/AppIcon.js";
|
|
9
|
+
const LinkerCard = ({
|
|
10
|
+
doc,
|
|
11
|
+
isClickable = !0,
|
|
12
|
+
isSelectable = !1,
|
|
13
|
+
isSelected = !1,
|
|
14
|
+
onClick,
|
|
15
|
+
className
|
|
16
|
+
}) => {
|
|
17
|
+
const {
|
|
18
|
+
fromNow
|
|
19
|
+
} = useDate(), {
|
|
20
|
+
fromDate
|
|
21
|
+
} = useMemo(() => ({
|
|
22
|
+
fromDate: fromNow(doc.modifiedAt)
|
|
23
|
+
}), [fromNow, doc]);
|
|
24
|
+
return /* @__PURE__ */ jsx(Card, { className: clsx("card-linker shadow-none", className), isClickable, isSelectable, isSelected, onClick, children: /* @__PURE__ */ jsxs(Card.Body, { space: "8", children: [
|
|
25
|
+
/* @__PURE__ */ jsx("div", { className: "card-image ps-8 pe-4", children: doc.thumbnail && doc.thumbnail.length > 0 ? /* @__PURE__ */ jsx(Image, { alt: "", height: 48, width: 48, src: doc.thumbnail, objectFit: "cover", className: "rounded h-full", style: {
|
|
26
|
+
aspectRatio: 1 / 1
|
|
27
|
+
} }) : /* @__PURE__ */ jsx(AppIcon, { app: doc.application, iconFit: "ratio", size: "48", variant: "rounded" }) }),
|
|
28
|
+
/* @__PURE__ */ jsxs("div", { className: "w-75", children: [
|
|
29
|
+
/* @__PURE__ */ jsx(Card.Text, { children: doc.name }),
|
|
30
|
+
/* @__PURE__ */ jsx(Card.Text, { className: "text-black-50", children: doc == null ? void 0 : doc.creatorName })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ jsx("div", { className: "d-none d-md-block text-black-50 ps-4 pe-8", children: /* @__PURE__ */ jsx(Card.Text, { children: fromDate }) }),
|
|
33
|
+
doc.shared && /* @__PURE__ */ jsx("div", { className: "ps-4 pe-8", children: /* @__PURE__ */ jsx(SvgIconUsers, { width: "20", height: "20" }) })
|
|
34
|
+
] }) });
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
LinkerCard as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { WorkspaceElement, WorkspaceVisibility } from '@edifice.io/ts-client';
|
|
2
|
+
import { TabsItemProps } from '../../../components';
|
|
3
|
+
import { ExternalLinkTabProps } from './innertabs/ExternalLink';
|
|
4
|
+
import { InternalLinkTabProps, InternalLinkTabResult } from './innertabs/InternalLink';
|
|
5
|
+
/** Ordered list of tabs. */
|
|
6
|
+
declare const orderedTabs: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Available features exposed by tabs :
|
|
9
|
+
* "workspace" | "upload" | "audio-capture" | ...
|
|
10
|
+
*/
|
|
11
|
+
export type AvailableTab = (typeof orderedTabs)[number];
|
|
12
|
+
/** Additional properties of tabs. */
|
|
13
|
+
export type MediaLibraryTabProps = {
|
|
14
|
+
/**
|
|
15
|
+
* Media Library types where this tab should be displayed.
|
|
16
|
+
* "*" for all types.
|
|
17
|
+
*/
|
|
18
|
+
availableFor: Array<MediaLibraryType | "*" | null>;
|
|
19
|
+
/** Required checks before using this feature. */
|
|
20
|
+
isEnable: null | (() => boolean);
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Pre-configured types of media libraries.
|
|
24
|
+
* Choosing a type will filter out unwanted tabs.
|
|
25
|
+
*/
|
|
26
|
+
export type MediaLibraryType =
|
|
27
|
+
/** Audio files */
|
|
28
|
+
"audio"
|
|
29
|
+
/** Video files / streams / links */
|
|
30
|
+
| "video"
|
|
31
|
+
/** Image files */
|
|
32
|
+
| "image"
|
|
33
|
+
/** Attached files */
|
|
34
|
+
| "attachment"
|
|
35
|
+
/** Embedded websites */
|
|
36
|
+
| "embedder"
|
|
37
|
+
/** Hyperlinks */
|
|
38
|
+
| "hyperlink";
|
|
39
|
+
export interface MediaLibraryRef {
|
|
40
|
+
/** Open the Media Library on given type. */
|
|
41
|
+
show: (type: MediaLibraryType) => void;
|
|
42
|
+
/** Close the Media Library. */
|
|
43
|
+
hide: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* Open the MediaLibrary on a internal/external link Tab,
|
|
46
|
+
* and prefill the tab with data.
|
|
47
|
+
*/
|
|
48
|
+
showLink: (data: InternalLinkTabProps | ExternalLinkTabProps) => void;
|
|
49
|
+
/** Get the Media Libray type currently displayed, or null if hidden. */
|
|
50
|
+
type: MediaLibraryType | null;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The resulting type depends on the actual selected Tab when modal is closed.
|
|
54
|
+
*/
|
|
55
|
+
export type MediaLibraryResult = WorkspaceElement[] | WorkspaceElement | InternalLinkTabResult | string | /*TODO type des autres résultats ?*/ any;
|
|
56
|
+
/**
|
|
57
|
+
* MediaLibrary component properties
|
|
58
|
+
*/
|
|
59
|
+
export interface MediaLibraryProps {
|
|
60
|
+
/** Application Code (example: "blog"). */
|
|
61
|
+
appCode: string;
|
|
62
|
+
/** Visibility of the uploaded files "protected" | "public" | "external". */
|
|
63
|
+
visibility: WorkspaceVisibility;
|
|
64
|
+
/** Allow selecting / uploading multiple files at once ? */
|
|
65
|
+
multiple?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Called when the user validates the modal (Add button).
|
|
68
|
+
* @param result depends on which InnerTab is visible
|
|
69
|
+
*/
|
|
70
|
+
onSuccess: (result: MediaLibraryResult) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Called when the user closes the modal.
|
|
73
|
+
* @param uploads uploaded workspace elements to cancel.
|
|
74
|
+
*/
|
|
75
|
+
onCancel: (uploads?: WorkspaceElement[]) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Called when the user swith between tabs, without closing the modal.
|
|
78
|
+
* @param tab Props of the newly displayed tab.
|
|
79
|
+
* @param uploads uploaded workspace elements to cancel.
|
|
80
|
+
*/
|
|
81
|
+
onTabChange?: (tab: TabsItemProps, uploads?: WorkspaceElement[]) => void;
|
|
82
|
+
}
|
|
83
|
+
declare const MediaLibrary: import('react').ForwardRefExoticComponent<MediaLibraryProps & import('react').RefAttributes<MediaLibraryRef>>;
|
|
84
|
+
export default MediaLibrary;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useRef, useImperativeHandle, useState, useMemo, useEffect, useCallback } from "react";
|
|
3
|
+
import { odeServices } from "@edifice.io/ts-client";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import SvgIconApplications from "../../icons/components/IconApplications.js";
|
|
6
|
+
import SvgIconCode from "../../icons/components/IconCode.js";
|
|
7
|
+
import SvgIconFolder from "../../icons/components/IconFolder.js";
|
|
8
|
+
import SvgIconGlobe from "../../icons/components/IconGlobe.js";
|
|
9
|
+
import SvgIconMic from "../../icons/components/IconMic.js";
|
|
10
|
+
import SvgIconRecordVideo from "../../icons/components/IconRecordVideo.js";
|
|
11
|
+
import SvgIconSmartphone from "../../icons/components/IconSmartphone.js";
|
|
12
|
+
import { InnerTabs } from "./innertabs/index.js";
|
|
13
|
+
import { MediaLibraryContext } from "./MediaLibraryContext.js";
|
|
14
|
+
import useHttpErrorToast from "../../../hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
15
|
+
import useHasWorkflow from "../../../hooks/useHasWorkflow/useHasWorkflow.js";
|
|
16
|
+
import Modal from "../../../components/Modal/Modal.js";
|
|
17
|
+
import Button from "../../../components/Button/Button.js";
|
|
18
|
+
import { Tabs } from "../../../components/Tabs/components/Tabs.js";
|
|
19
|
+
const orderedTabs = [
|
|
20
|
+
"audio-capture",
|
|
21
|
+
"video-capture",
|
|
22
|
+
"internal-link",
|
|
23
|
+
// Link to a shared resource (previously known as "internal linker")
|
|
24
|
+
"external-link",
|
|
25
|
+
// Link to an external website (previously known as "external linker")
|
|
26
|
+
"iframe",
|
|
27
|
+
// Framed website
|
|
28
|
+
"upload",
|
|
29
|
+
// Filesystem browser + drag'n'drop of files
|
|
30
|
+
"workspace",
|
|
31
|
+
// Media browser
|
|
32
|
+
"video-embedder"
|
|
33
|
+
// Link to a hosted video
|
|
34
|
+
], mediaLibraryTypes = {
|
|
35
|
+
none: null,
|
|
36
|
+
audio: {
|
|
37
|
+
title: "bbm.audio.modal.title",
|
|
38
|
+
defaultTab: "audio-capture"
|
|
39
|
+
},
|
|
40
|
+
video: {
|
|
41
|
+
title: "bbm.video.modal.title",
|
|
42
|
+
defaultTab: "video-capture"
|
|
43
|
+
},
|
|
44
|
+
image: {
|
|
45
|
+
title: "bbm.image.modal.title",
|
|
46
|
+
defaultTab: "workspace"
|
|
47
|
+
},
|
|
48
|
+
attachment: {
|
|
49
|
+
title: "bbm.attachment.modal.title",
|
|
50
|
+
defaultTab: "workspace"
|
|
51
|
+
},
|
|
52
|
+
hyperlink: {
|
|
53
|
+
title: "bbm.link.modal.title",
|
|
54
|
+
defaultTab: "linker"
|
|
55
|
+
},
|
|
56
|
+
embedder: {
|
|
57
|
+
title: "bbm.embed.modal.title",
|
|
58
|
+
defaultTab: "iframe"
|
|
59
|
+
}
|
|
60
|
+
}, MediaLibrary = /* @__PURE__ */ forwardRef(({
|
|
61
|
+
appCode,
|
|
62
|
+
visibility,
|
|
63
|
+
multiple,
|
|
64
|
+
onSuccess,
|
|
65
|
+
onCancel,
|
|
66
|
+
onTabChange
|
|
67
|
+
}, ref) => {
|
|
68
|
+
var _a;
|
|
69
|
+
const linkTabProps = useRef(), refModal = useRef(null);
|
|
70
|
+
useImperativeHandle(ref, () => ({
|
|
71
|
+
show,
|
|
72
|
+
hide,
|
|
73
|
+
showLink,
|
|
74
|
+
type,
|
|
75
|
+
...refModal.current
|
|
76
|
+
})), useHttpErrorToast({
|
|
77
|
+
isDismissible: !0,
|
|
78
|
+
duration: 1 / 0
|
|
79
|
+
});
|
|
80
|
+
const {
|
|
81
|
+
t
|
|
82
|
+
} = useTranslation(), workspaceCreateWorkflow = useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|addDocument"), videoCaptureWorkflow = useHasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture"), [type, setType] = useState(null), availableTabs = {
|
|
83
|
+
workspace: {
|
|
84
|
+
id: "workspace",
|
|
85
|
+
icon: /* @__PURE__ */ jsx(SvgIconFolder, {}),
|
|
86
|
+
label: t("bbm.workspace"),
|
|
87
|
+
content: /* @__PURE__ */ jsx(InnerTabs.Workspace, {}),
|
|
88
|
+
availableFor: ["audio", "video", "image", "attachment"],
|
|
89
|
+
isEnable: null
|
|
90
|
+
},
|
|
91
|
+
upload: {
|
|
92
|
+
id: "upload",
|
|
93
|
+
icon: /* @__PURE__ */ jsx(SvgIconSmartphone, {}),
|
|
94
|
+
label: t("bbm.device"),
|
|
95
|
+
content: /* @__PURE__ */ jsx(InnerTabs.Upload, {}),
|
|
96
|
+
availableFor: ["audio", "video", "image", "attachment"],
|
|
97
|
+
isEnable: () => !!workspaceCreateWorkflow
|
|
98
|
+
},
|
|
99
|
+
"video-capture": {
|
|
100
|
+
id: "video-capture",
|
|
101
|
+
icon: /* @__PURE__ */ jsx(SvgIconRecordVideo, {}),
|
|
102
|
+
label: t("bbm.video"),
|
|
103
|
+
content: /* @__PURE__ */ jsx(InnerTabs.Video, {}),
|
|
104
|
+
availableFor: ["video"],
|
|
105
|
+
isEnable: () => !!videoCaptureWorkflow
|
|
106
|
+
},
|
|
107
|
+
"audio-capture": {
|
|
108
|
+
id: "audio-capture",
|
|
109
|
+
icon: /* @__PURE__ */ jsx(SvgIconMic, {}),
|
|
110
|
+
label: t("bbm.audio"),
|
|
111
|
+
content: /* @__PURE__ */ jsx(InnerTabs.Audio, {}),
|
|
112
|
+
availableFor: ["audio"],
|
|
113
|
+
isEnable: () => !!workspaceCreateWorkflow
|
|
114
|
+
},
|
|
115
|
+
"external-link": {
|
|
116
|
+
id: "external-link",
|
|
117
|
+
icon: /* @__PURE__ */ jsx(SvgIconGlobe, {}),
|
|
118
|
+
label: t("bbm.linker.ext"),
|
|
119
|
+
content: /* @__PURE__ */ jsx(InnerTabs.ExternalLink, { ...linkTabProps.current }),
|
|
120
|
+
availableFor: ["hyperlink"],
|
|
121
|
+
isEnable: null
|
|
122
|
+
},
|
|
123
|
+
"internal-link": {
|
|
124
|
+
id: "internal-link",
|
|
125
|
+
icon: /* @__PURE__ */ jsx(SvgIconApplications, {}),
|
|
126
|
+
label: t("bbm.linker.int"),
|
|
127
|
+
content: /* @__PURE__ */ jsx(InnerTabs.InternalLink, { ...linkTabProps.current }),
|
|
128
|
+
availableFor: ["hyperlink"],
|
|
129
|
+
isEnable: null
|
|
130
|
+
},
|
|
131
|
+
iframe: {
|
|
132
|
+
id: "iframe",
|
|
133
|
+
icon: /* @__PURE__ */ jsx(SvgIconCode, {}),
|
|
134
|
+
label: t("bbm.embed"),
|
|
135
|
+
content: /* @__PURE__ */ jsx(InnerTabs.Iframe, {}),
|
|
136
|
+
availableFor: ["embedder"],
|
|
137
|
+
isEnable: null
|
|
138
|
+
},
|
|
139
|
+
"video-embedder": {
|
|
140
|
+
id: "iframe",
|
|
141
|
+
icon: /* @__PURE__ */ jsx(SvgIconCode, {}),
|
|
142
|
+
label: t("bbm.embed"),
|
|
143
|
+
content: /* @__PURE__ */ jsx(InnerTabs.VideoEmbedder, {}),
|
|
144
|
+
availableFor: ["video"],
|
|
145
|
+
isEnable: null
|
|
146
|
+
}
|
|
147
|
+
}, tabs = useMemo(
|
|
148
|
+
() => orderedTabs.map((key) => availableTabs[key]).filter((tab) => {
|
|
149
|
+
var _a2;
|
|
150
|
+
return ((_a2 = tab.isEnable) == null ? void 0 : _a2.call(tab)) !== !1 && (tab.availableFor.length === 0 || tab.availableFor.includes(type));
|
|
151
|
+
}),
|
|
152
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
153
|
+
[type]
|
|
154
|
+
), [defaultTabId, setDefaultTabId] = useState(), defaultTabIdx = useMemo(() => {
|
|
155
|
+
const index = tabs.findIndex((t2) => t2.id === defaultTabId);
|
|
156
|
+
return 0 > index || index >= tabs.length ? 0 : index;
|
|
157
|
+
}, [tabs, defaultTabId]), [resultCounter, setResultCounter] = useState(), [result, setResult] = useState(), [deletionsOnCancel, setDeletionsOnCancel] = useState([]), [onSuccessAction, setPreSuccess] = useState();
|
|
158
|
+
function setVisibleTab(tab) {
|
|
159
|
+
throw tabs.findIndex((t2) => t2.id === tab) < 0 ? "tab.not.visible" : "not.implemented.yet";
|
|
160
|
+
}
|
|
161
|
+
function switchType(type2) {
|
|
162
|
+
linkTabProps.current = void 0, setDefaultTabId(void 0), setType(type2);
|
|
163
|
+
}
|
|
164
|
+
const show = (type2) => {
|
|
165
|
+
setType(type2);
|
|
166
|
+
}, hide = () => {
|
|
167
|
+
setType(null);
|
|
168
|
+
}, showLink = (props) => {
|
|
169
|
+
linkTabProps.current = props, !("resourceId" in props || "appPrefix" in props) && setDefaultTabId("external-link"), setType("hyperlink");
|
|
170
|
+
};
|
|
171
|
+
useEffect(() => {
|
|
172
|
+
var _a2, _b;
|
|
173
|
+
const typeKey = type || "none";
|
|
174
|
+
!defaultTabId && typeof ((_a2 = mediaLibraryTypes[typeKey]) == null ? void 0 : _a2.defaultTab) == "string" && setDefaultTabId((_b = mediaLibraryTypes[typeKey]) == null ? void 0 : _b.defaultTab);
|
|
175
|
+
}, [defaultTabId, type]);
|
|
176
|
+
const modalHeader = t(((_a = mediaLibraryTypes[type ?? "none"]) == null ? void 0 : _a.title) ?? "bbm"), resetState = () => {
|
|
177
|
+
linkTabProps.current = void 0, setResult(void 0), setResultCounter(void 0), setDefaultTabId(void 0), setPreSuccess(void 0), setDeletionsOnCancel([]);
|
|
178
|
+
}, handleTabChange = (tab) => {
|
|
179
|
+
onTabChange == null || onTabChange(tab, deletionsOnCancel), resetState();
|
|
180
|
+
}, handleOnSuccess = useCallback(() => {
|
|
181
|
+
const triggerSuccess = async (result2) => {
|
|
182
|
+
result2 instanceof Array && ["protected", "public"].findIndex((v) => v === visibility) >= 0 && (result2 = await odeServices.workspace().transferDocuments(result2, appCode ?? "media-library", visibility)), onSuccess(result2);
|
|
183
|
+
};
|
|
184
|
+
onSuccessAction ? onSuccessAction().then((result2) => {
|
|
185
|
+
triggerSuccess(result2);
|
|
186
|
+
}) : result && triggerSuccess(result), resetState();
|
|
187
|
+
}, [onSuccessAction, result, onSuccess, visibility, appCode]), handleOnCancel = () => {
|
|
188
|
+
onCancel(deletionsOnCancel), resetState();
|
|
189
|
+
};
|
|
190
|
+
return type && /* @__PURE__ */ jsx(MediaLibraryContext.Provider, { value: {
|
|
191
|
+
appCode,
|
|
192
|
+
visibility,
|
|
193
|
+
multiple,
|
|
194
|
+
type,
|
|
195
|
+
setResultCounter,
|
|
196
|
+
setResult,
|
|
197
|
+
setCancellable: (uploads) => setDeletionsOnCancel([...uploads]),
|
|
198
|
+
setVisibleTab,
|
|
199
|
+
switchType,
|
|
200
|
+
setPreSuccess
|
|
201
|
+
}, children: /* @__PURE__ */ jsxs(Modal, { id: "media-library", isOpen: type !== null, onModalClose: handleOnCancel, size: "lg", viewport: !0, scrollable: !0, children: [
|
|
202
|
+
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: handleOnCancel, children: modalHeader }),
|
|
203
|
+
/* @__PURE__ */ jsx(Tabs, { items: tabs, defaultId: tabs[defaultTabIdx].id, onChange: handleTabChange, children: (currentItem) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
204
|
+
tabs.length > 1 && /* @__PURE__ */ jsx(Tabs.List, { className: "mt-16" }),
|
|
205
|
+
/* @__PURE__ */ jsx(Modal.Body, { className: "d-flex", children: /* @__PURE__ */ jsx(Tabs.Panel, { currentItem, children: currentItem == null ? void 0 : currentItem.content }) })
|
|
206
|
+
] }) }),
|
|
207
|
+
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
208
|
+
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick: handleOnCancel, children: t("cancel") }),
|
|
209
|
+
/* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", disabled: typeof result > "u", onClick: handleOnSuccess, children: resultCounter && resultCounter > 1 ? t("addMultiple", {
|
|
210
|
+
number: resultCounter
|
|
211
|
+
}) : t("add") })
|
|
212
|
+
] })
|
|
213
|
+
] }) });
|
|
214
|
+
});
|
|
215
|
+
export {
|
|
216
|
+
MediaLibrary as default
|
|
217
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { WorkspaceElement, WorkspaceVisibility } from '@edifice.io/ts-client';
|
|
2
|
+
import { AvailableTab, MediaLibraryResult, MediaLibraryType } from './MediaLibrary';
|
|
3
|
+
export declare const MediaLibraryContext: import('react').Context<{
|
|
4
|
+
/** Application code (example: "blog") */
|
|
5
|
+
appCode: string;
|
|
6
|
+
/** Visibility of the uploaded files. */
|
|
7
|
+
visibility?: WorkspaceVisibility;
|
|
8
|
+
/** Allow selecting / uploading multiple files at once ? */
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
/** Type of resource to search for. */
|
|
11
|
+
type: MediaLibraryType | null;
|
|
12
|
+
/** Set the counter in the success button label. */
|
|
13
|
+
setResultCounter: (count?: number) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Set a innertab-specific callback which gets the result when success button is clicked.
|
|
16
|
+
*/
|
|
17
|
+
setResult: (result?: MediaLibraryResult) => void;
|
|
18
|
+
/** Memoize uploaded elements to be deleted on cancellation. */
|
|
19
|
+
setCancellable: (uploads: WorkspaceElement[]) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Allow an innertab to switch display to another innertab.
|
|
22
|
+
* This function will throw an error if switching failed.
|
|
23
|
+
*/
|
|
24
|
+
setVisibleTab: (tab: AvailableTab) => void;
|
|
25
|
+
/** Allow an innertab to switch type of the media library. */
|
|
26
|
+
switchType: (type: MediaLibraryType) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Allow an innertab to set action to execute before triggering onSuccess.
|
|
29
|
+
*/
|
|
30
|
+
setPreSuccess: (onSuccessAction?: () => () => Promise<MediaLibraryResult>) => void;
|
|
31
|
+
}>;
|
|
32
|
+
export declare function useMediaLibraryContext(): {
|
|
33
|
+
/** Application code (example: "blog") */
|
|
34
|
+
appCode: string;
|
|
35
|
+
/** Visibility of the uploaded files. */
|
|
36
|
+
visibility?: WorkspaceVisibility;
|
|
37
|
+
/** Allow selecting / uploading multiple files at once ? */
|
|
38
|
+
multiple?: boolean;
|
|
39
|
+
/** Type of resource to search for. */
|
|
40
|
+
type: MediaLibraryType | null;
|
|
41
|
+
/** Set the counter in the success button label. */
|
|
42
|
+
setResultCounter: (count?: number) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Set a innertab-specific callback which gets the result when success button is clicked.
|
|
45
|
+
*/
|
|
46
|
+
setResult: (result?: MediaLibraryResult) => void;
|
|
47
|
+
/** Memoize uploaded elements to be deleted on cancellation. */
|
|
48
|
+
setCancellable: (uploads: WorkspaceElement[]) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Allow an innertab to switch display to another innertab.
|
|
51
|
+
* This function will throw an error if switching failed.
|
|
52
|
+
*/
|
|
53
|
+
setVisibleTab: (tab: AvailableTab) => void;
|
|
54
|
+
/** Allow an innertab to switch type of the media library. */
|
|
55
|
+
switchType: (type: MediaLibraryType) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Allow an innertab to set action to execute before triggering onSuccess.
|
|
58
|
+
*/
|
|
59
|
+
setPreSuccess: (onSuccessAction?: () => () => Promise<MediaLibraryResult>) => void;
|
|
60
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IExternalLink } from '../../Linker/ExternalLinker/ExternalLinker';
|
|
2
|
+
export type ExternalLinkTabProps = {
|
|
3
|
+
multiNodeSelected?: boolean;
|
|
4
|
+
link?: Partial<IExternalLink>;
|
|
5
|
+
};
|
|
6
|
+
export declare const ExternalLink: ({ link, multiNodeSelected, }: ExternalLinkTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import ExternalLinker from "../../Linker/ExternalLinker/ExternalLinker.js";
|
|
3
|
+
import { useMediaLibraryContext } from "../MediaLibraryContext.js";
|
|
4
|
+
const ExternalLink = ({
|
|
5
|
+
link,
|
|
6
|
+
multiNodeSelected = !1
|
|
7
|
+
}) => {
|
|
8
|
+
const {
|
|
9
|
+
setResult
|
|
10
|
+
} = useMediaLibraryContext();
|
|
11
|
+
return /* @__PURE__ */ jsx(ExternalLinker, { link, onChange: (link2) => {
|
|
12
|
+
setResult(link2);
|
|
13
|
+
}, multiNodeSelected });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
ExternalLink
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ILinkedResource } from '@edifice.io/ts-client';
|
|
2
|
+
export type InternalLinkTabProps = {
|
|
3
|
+
target?: "_blank" | null;
|
|
4
|
+
appPrefix?: string | null;
|
|
5
|
+
resourceId?: string | null;
|
|
6
|
+
};
|
|
7
|
+
export type InternalLinkTabResult = {
|
|
8
|
+
target?: "_blank";
|
|
9
|
+
resources?: ILinkedResource[];
|
|
10
|
+
};
|
|
11
|
+
export declare const InternalLink: ({ target, resourceId, appPrefix, }: InternalLinkTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import InternalLinker from "../../Linker/InternalLinker/InternalLinker.js";
|
|
5
|
+
import { useMediaLibraryContext } from "../MediaLibraryContext.js";
|
|
6
|
+
import useToggle from "../../../../hooks/useToggle/useToggle.js";
|
|
7
|
+
import Checkbox from "../../../../components/Checkbox/Checkbox.js";
|
|
8
|
+
const InternalLink = ({
|
|
9
|
+
target,
|
|
10
|
+
resourceId,
|
|
11
|
+
appPrefix
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
t
|
|
15
|
+
} = useTranslation(), {
|
|
16
|
+
setResult,
|
|
17
|
+
setResultCounter,
|
|
18
|
+
appCode,
|
|
19
|
+
multiple
|
|
20
|
+
} = useMediaLibraryContext(), [isChecked, toggleChecked] = useToggle(target === "_blank"), [resources, setRessources] = useState([]), handleSelect = (resources2) => {
|
|
21
|
+
setRessources(resources2);
|
|
22
|
+
};
|
|
23
|
+
return useEffect(() => {
|
|
24
|
+
setResult({
|
|
25
|
+
target: isChecked ? "_blank" : void 0,
|
|
26
|
+
resources
|
|
27
|
+
}), resources && resources.length ? setResultCounter(resources.length) : setResultCounter(void 0);
|
|
28
|
+
}, [isChecked, resources]), /* @__PURE__ */ jsxs("div", { className: "d-flex flex-column flex-fill gap-16 overflow-hidden", children: [
|
|
29
|
+
/* @__PURE__ */ jsx(InternalLinker, { appCode, defaultAppCode: appPrefix, defaultResourceId: resourceId, onSelect: handleSelect, multiple }),
|
|
30
|
+
/* @__PURE__ */ jsx(Checkbox, { className: "align-items-center", checked: isChecked, label: t("bbm.linker.open.tab"), onChange: toggleChecked })
|
|
31
|
+
] });
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
InternalLink
|
|
35
|
+
};
|