@edifice.io/react 2.0.0-develop-rc.3 → 2.0.0-develop-rc.7
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 +17 -88
- package/dist/components/ActionBar/ActionBar.d.ts +1 -1
- package/dist/components/ActionBar/ActionBar.js +3 -2
- package/dist/components/ActionBar/index.d.ts +0 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/Alert.js +7 -6
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.js +3 -2
- package/dist/components/AppHeader/index.d.ts +0 -1
- package/dist/components/AppIcon/AppIcon.js +1 -1
- package/dist/components/Attachment/Attachment.d.ts +1 -1
- package/dist/components/Attachment/Attachment.js +3 -2
- package/dist/components/Attachment/index.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +4 -3
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.js +3 -2
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +4 -3
- package/dist/components/Button/IconButton.d.ts +1 -1
- package/dist/components/Button/IconButton.js +4 -3
- package/dist/components/Button/SearchButton.d.ts +1 -1
- package/dist/components/Button/SearchButton.js +4 -3
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.js +3 -2
- package/dist/components/Card/CardHeader.js +1 -1
- package/dist/components/Card/CardImage.js +1 -1
- package/dist/components/Card/CardUser.js +1 -1
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -2
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +5 -4
- package/dist/components/ColorPicker/ColorPickerItem.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPickerItem.js +3 -2
- package/dist/components/ColorPicker/index.d.ts +1 -3
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.js +4 -4
- package/dist/components/Combobox/ComboboxTrigger.js +2 -2
- package/dist/components/Combobox/index.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.js +4 -3
- package/dist/components/Dropdown/DropdownCheckboxItem.js +1 -1
- package/dist/components/Dropdown/DropdownRadioItem.js +1 -1
- package/dist/components/Dropdown/index.d.ts +0 -1
- package/dist/components/Dropzone/Dropzone.d.ts +1 -1
- package/dist/components/Dropzone/Dropzone.js +2 -2
- package/dist/components/Dropzone/DropzoneFile.js +1 -1
- package/dist/components/Dropzone/DropzoneImport.js +1 -1
- package/dist/components/Dropzone/index.d.ts +0 -1
- package/dist/components/EmptyScreen/EmptyScreen.d.ts +1 -1
- package/dist/components/EmptyScreen/EmptyScreen.js +4 -3
- package/dist/components/EmptyScreen/index.d.ts +0 -1
- package/dist/components/FileCard/FileCard.d.ts +1 -1
- package/dist/components/FileCard/FileCard.js +4 -3
- package/dist/components/FileCard/index.d.ts +0 -1
- package/dist/components/Form/FormControl.d.ts +1 -1
- package/dist/components/Form/FormControl.js +6 -5
- package/dist/components/Form/FormText.d.ts +1 -1
- package/dist/components/Form/FormText.js +3 -2
- package/dist/components/Form/index.d.ts +1 -2
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Heading/Heading.js +3 -2
- package/dist/components/Heading/index.d.ts +0 -1
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/Image/Image.js +3 -2
- package/dist/components/Image/index.d.ts +0 -1
- package/dist/components/ImagePicker/ImagePicker.js +4 -4
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +3 -2
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.js +3 -2
- package/dist/components/Label/index.d.ts +0 -1
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/Loading/Loading.js +3 -2
- package/dist/components/Loading/index.d.ts +0 -1
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +1 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +3 -2
- package/dist/components/LoadingScreen/index.d.ts +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/Logo.js +3 -2
- package/dist/components/Logo/index.d.ts +0 -1
- package/dist/components/Menu/MenuButton.js +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.js +3 -2
- package/dist/components/Modal/ModalHeader.js +1 -1
- package/dist/components/Modal/index.d.ts +0 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +3 -2
- package/dist/components/Radio/index.d.ts +0 -1
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +5 -4
- package/dist/components/SearchBar/index.d.ts +0 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +4 -3
- package/dist/components/Select/SelectTrigger.js +1 -1
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Table/TableExplorer.d.ts +1 -1
- package/dist/components/Table/TableExplorer.js +4 -3
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/TabsList.js +1 -1
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextArea/TextArea.js +5 -4
- package/dist/components/TextArea/index.d.ts +0 -1
- package/dist/components/Toolbar/Toolbar.d.ts +1 -1
- package/dist/components/Toolbar/Toolbar.js +7 -6
- package/dist/components/Toolbar/index.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -2
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/components/TreeView/TreeView.js +3 -2
- package/dist/components/TreeView/index.d.ts +0 -1
- package/dist/components/UploadCard/UploadCard.js +6 -6
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +3 -2
- package/dist/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/core/useAvatar/useAvatar.js +1 -1
- package/dist/core/useConversation/useConversation.js +2 -2
- package/dist/core/useHasWorkflow/useHasWorkflow.js +1 -1
- package/dist/core/useHeader/useHeader.js +3 -3
- package/dist/core/useLibraryUrl/useLibraryUrl.js +2 -2
- package/dist/core/useMediaLibrary/useMediaLibrary.js +2 -2
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +1 -1
- package/dist/core/useResource/useResource.d.ts +0 -1
- package/dist/core/useTrashedResource/useTrashedResource.js +2 -2
- package/dist/core/useUpload/useUpload.d.ts +4 -5
- package/dist/core/useUpload/useUpload.js +1 -1
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +5 -5
- package/dist/core/useUploadFiles/useUploadFiles.js +3 -3
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +4 -4
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +2 -2
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +2 -2
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +1 -1
- package/dist/editor.js +3 -3
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +1 -1
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +2 -2
- package/dist/hooks/useDropzone/useDropzone.js +2 -2
- package/dist/hooks/useToast/useToast.js +1 -1
- package/dist/index.js +142 -142
- package/dist/modals.js +14 -16
- package/dist/modules/audience/ReactionChoice.js +5 -5
- package/dist/modules/audience/ReactionModal.Card.js +1 -1
- package/dist/modules/audience/ReactionModal.js +4 -5
- package/dist/modules/audience/ReactionSummary.js +3 -3
- package/dist/modules/audience/ViewsCounter.js +3 -3
- package/dist/modules/audience/ViewsModal.js +4 -4
- package/dist/modules/audience/hooks/useReactions.d.ts +3 -5
- package/dist/modules/audience/hooks/useViews.d.ts +3 -3
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +3 -3
- package/dist/modules/editor/components/Editor/Editor.js +4 -4
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +0 -1
- package/dist/modules/editor/components/Editor/MathsModal.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js +4 -4
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js +1 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js +4 -4
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +1 -1
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +2 -2
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +2 -2
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +2 -2
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +2 -2
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +5 -5
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +2 -2
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js +4 -4
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +2 -2
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +6 -6
- package/dist/modules/editor/hooks/useImageModal.d.ts +1 -2
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +0 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +5 -5
- package/dist/modules/modals/PublishModal/PublishModal.js +8 -8
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js +1 -1
- package/dist/modules/modals/PublishModal/components/AgeSelect.js +1 -1
- package/dist/modules/modals/PublishModal/components/LangSelect.js +1 -1
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +1 -1
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +12 -11
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js +8 -7
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +3 -2
- package/dist/modules/modals/ResourceModal/index.d.ts +3 -3
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +2 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +3 -2
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +2 -2
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js +3 -2
- package/dist/modules/modals/ShareModal/index.d.ts +3 -3
- package/dist/modules/modals/ShareModal/utils/hasRight.d.ts +0 -1
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +0 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +5 -5
- package/dist/modules/multimedia/Embed/Embed.js +4 -4
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +8 -8
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +1 -1
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +36 -38
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +2 -2
- package/dist/modules/multimedia/Linker/ExternalLinker.js +9 -9
- package/dist/modules/multimedia/Linker/InternalLinker.js +6 -6
- package/dist/modules/multimedia/LinkerCard/LinkerCard.d.ts +1 -1
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +5 -4
- package/dist/modules/multimedia/LinkerCard/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +5 -5
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +3 -3
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +1 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +2 -2
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +7 -7
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +7 -7
- package/dist/modules/multimedia/Workspace/Workspace.js +10 -10
- package/dist/multimedia.js +18 -18
- package/dist/portal/Header/Header.js +3 -3
- package/dist/portal/Header/NavLink.js +1 -1
- package/dist/portal/Help/Help.d.ts +0 -1
- package/dist/portal/Help/Help.js +1 -1
- package/dist/portal/Help/hooks/useHelp.js +1 -1
- package/dist/portal/Layout/Layout.js +4 -4
- package/dist/portal/SearchEngine/SearchEngine.js +2 -2
- package/dist/utils/fileSize.js +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +2 -2
- package/package.json +19 -28
- package/dist/modules/modals/ShareModal/ShareBookmark.js +0 -22
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +0 -42
- package/dist/modules/modals/ShareModal/ShareModal.js +0 -128
- package/dist/modules/modals/ShareModal/hooks/useSearch.js +0 -178
- package/dist/modules/modals/ShareModal/hooks/useShare.js +0 -192
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +0 -67
- package/dist/modules/modals/ShareModal/utils/hasRight.js +0 -4
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.js +0 -4
package/dist/index.js
CHANGED
|
@@ -1,89 +1,90 @@
|
|
|
1
1
|
import { default as default2 } from "./core/useAvatar/useAvatar.js";
|
|
2
2
|
import { default as default3 } from "./core/useBookmark/useBookmark.js";
|
|
3
3
|
import { default as default4 } from "./core/useConf/useConf.js";
|
|
4
|
-
import { default as default5 } from "./core/
|
|
5
|
-
import { default as default6 } from "./core/
|
|
6
|
-
import { default as default7 } from "./core/
|
|
7
|
-
import { default as default8 } from "./core/
|
|
8
|
-
import { default as default9 } from "./core/
|
|
9
|
-
import { default as default10 } from "./core/
|
|
10
|
-
import { default as default11 } from "./core/
|
|
11
|
-
import { default as default12 } from "./core/
|
|
12
|
-
import { default as default13 } from "./core/
|
|
13
|
-
import { default as default14 } from "./core/
|
|
14
|
-
import { default as default15 } from "./core/
|
|
15
|
-
import { default as default16 } from "./
|
|
16
|
-
import { default as default17 } from "./
|
|
17
|
-
import { default as default18 } from "./
|
|
18
|
-
import { default as default19 } from "./
|
|
19
|
-
import { default as default20 } from "./
|
|
20
|
-
import { default as default21 } from "./
|
|
21
|
-
import { default as default22 } from "./hooks/
|
|
22
|
-
import { default as default23 } from "./hooks/
|
|
23
|
-
import { default as default24 } from "./hooks/
|
|
24
|
-
import { default as default25 } from "./hooks/
|
|
25
|
-
import { default as default26 } from "./
|
|
26
|
-
import { default as default27 } from "./
|
|
27
|
-
import { default as default28 } from "./
|
|
28
|
-
import { default as default29 } from "./
|
|
4
|
+
import { default as default5 } from "./core/useConversation/useConversation.js";
|
|
5
|
+
import { default as default6 } from "./core/useDate/useDate.js";
|
|
6
|
+
import { default as default7 } from "./core/useHasWorkflow/useHasWorkflow.js";
|
|
7
|
+
import { default as default8 } from "./core/useHeader/useHeader.js";
|
|
8
|
+
import { default as default9 } from "./core/useIsAdml/useIsAdml.js";
|
|
9
|
+
import { default as default10 } from "./core/useLibraryUrl/useLibraryUrl.js";
|
|
10
|
+
import { default as default11 } from "./core/useMediaLibrary/useMediaLibrary.js";
|
|
11
|
+
import { default as default12 } from "./core/useOdeIcons/useOdeIcons.js";
|
|
12
|
+
import { default as default13 } from "./core/usePaths/usePaths.js";
|
|
13
|
+
import { default as default14 } from "./core/useSession/useSession.js";
|
|
14
|
+
import { default as default15 } from "./core/useTrashedResource/useTrashedResource.js";
|
|
15
|
+
import { default as default16 } from "./core/useUploadFiles/useUploadFiles.js";
|
|
16
|
+
import { default as default17 } from "./core/useUser/useUser.js";
|
|
17
|
+
import { default as default18 } from "./core/useWorkspaceFile/useWorkspaceFile.js";
|
|
18
|
+
import { default as default19 } from "./core/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
19
|
+
import { default as default20 } from "./core/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
20
|
+
import { default as default21 } from "./core/useZendeskGuide/useZendeskGuide.js";
|
|
21
|
+
import { default as default22 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
22
|
+
import { default as default23 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
23
|
+
import { default as default24 } from "./hooks/useDebounce/useDebounce.js";
|
|
24
|
+
import { default as default25 } from "./hooks/useDropdown/useDropdown.js";
|
|
25
|
+
import { default as default26 } from "./hooks/useDropzone/useDropzone.js";
|
|
26
|
+
import { default as default27 } from "./hooks/useToast/useToast.js";
|
|
27
|
+
import { default as default28 } from "./hooks/useImage/useImage.js";
|
|
28
|
+
import { default as default29 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
29
|
+
import { default as default30 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
30
|
+
import { default as default31 } from "./hooks/useTitle/useTitle.js";
|
|
31
|
+
import { default as default32 } from "./hooks/useToggle/useToggle.js";
|
|
32
|
+
import { default as default33 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
33
|
+
import { default as default34 } from "./portal/Layout/Layout.js";
|
|
34
|
+
import { default as default35 } from "./widgets/Widget/Widget.js";
|
|
35
|
+
import { default as default36 } from "./widgets/BookmarkedApps/BookmarkedApps.js";
|
|
36
|
+
import { ActionBar } from "./components/ActionBar/ActionBar.js";
|
|
37
|
+
import { Alert } from "./components/Alert/Alert.js";
|
|
38
|
+
import { AppHeader } from "./components/AppHeader/AppHeader.js";
|
|
29
39
|
import { AppIcon } from "./components/AppIcon/AppIcon.js";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
40
|
+
import { Attachment } from "./components/Attachment/Attachment.js";
|
|
41
|
+
import { Avatar } from "./components/Avatar/Avatar.js";
|
|
42
|
+
import { Badge } from "./components/Badge/Badge.js";
|
|
33
43
|
import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb.js";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { default as default38 } from "./components/ColorPicker/ColorPicker.js";
|
|
40
|
-
import { default as default39 } from "./components/ColorPicker/ColorPickerItem.js";
|
|
44
|
+
import { Button } from "./components/Button/Button.js";
|
|
45
|
+
import { IconButton } from "./components/Button/IconButton.js";
|
|
46
|
+
import { SearchButton } from "./components/Button/SearchButton.js";
|
|
47
|
+
import { Card } from "./components/Card/Card.js";
|
|
48
|
+
import { Checkbox } from "./components/Checkbox/Checkbox.js";
|
|
41
49
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
50
|
+
import { ColorPicker } from "./components/ColorPicker/ColorPicker.js";
|
|
51
|
+
import { ColorPickerItem } from "./components/ColorPicker/ColorPickerItem.js";
|
|
52
|
+
import { Combobox } from "./components/Combobox/Combobox.js";
|
|
53
|
+
import { Dropdown } from "./components/Dropdown/Dropdown.js";
|
|
54
|
+
import { Dropzone } from "./components/Dropzone/Dropzone.js";
|
|
55
|
+
import { EmptyScreen } from "./components/EmptyScreen/EmptyScreen.js";
|
|
56
|
+
import { FileCard } from "./components/FileCard/FileCard.js";
|
|
57
|
+
import { FormControl } from "./components/Form/FormControl.js";
|
|
58
|
+
import { FormText } from "./components/Form/FormText.js";
|
|
49
59
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
50
|
-
import {
|
|
60
|
+
import { Heading } from "./components/Heading/Heading.js";
|
|
51
61
|
import { Icon } from "./components/Icon/Icon.js";
|
|
52
|
-
import {
|
|
62
|
+
import { Image } from "./components/Image/Image.js";
|
|
53
63
|
import { ImagePicker } from "./components/ImagePicker/ImagePicker.js";
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
64
|
+
import { Input } from "./components/Input/Input.js";
|
|
65
|
+
import { Label } from "./components/Label/Label.js";
|
|
66
|
+
import { Loading } from "./components/Loading/Loading.js";
|
|
67
|
+
import { LoadingScreen } from "./components/LoadingScreen/LoadingScreen.js";
|
|
68
|
+
import { Logo } from "./components/Logo/Logo.js";
|
|
59
69
|
import { Menu } from "./components/Menu/Menu.js";
|
|
60
|
-
import {
|
|
70
|
+
import { Modal } from "./components/Modal/Modal.js";
|
|
61
71
|
import { Popover, PopoverBody, PopoverFooter, PopoverHeader } from "./components/Popover/Popover.js";
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
72
|
+
import { Radio } from "./components/Radio/Radio.js";
|
|
73
|
+
import { SearchBar } from "./components/SearchBar/SearchBar.js";
|
|
74
|
+
import { Select } from "./components/Select/Select.js";
|
|
75
|
+
import { TableExplorer } from "./components/Table/TableExplorer.js";
|
|
76
|
+
import { Tabs } from "./components/Tabs/Tabs.js";
|
|
77
|
+
import { TextArea } from "./components/TextArea/TextArea.js";
|
|
78
|
+
import { Toolbar } from "./components/Toolbar/Toolbar.js";
|
|
79
|
+
import { Tooltip } from "./components/Tooltip/Tooltip.js";
|
|
80
|
+
import { TreeView } from "./components/TreeView/TreeView.js";
|
|
71
81
|
import { UploadCard } from "./components/UploadCard/UploadCard.js";
|
|
72
|
-
import {
|
|
82
|
+
import { VisuallyHidden } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
73
83
|
import { OdeClientContext, OdeClientProvider, useOdeClient } from "./core/OdeClientProvider/OdeClientProvider.js";
|
|
74
84
|
import { ThemeContext, ThemeProvider, useOdeTheme } from "./core/ThemeProvider/ThemeProvider.js";
|
|
75
|
-
import { default as default65 } from "./core/useConversation/useConversation.js";
|
|
76
85
|
import { useHttpErrorToast } from "./core/useHttpErrorToast/useHttpErrorToast.js";
|
|
77
|
-
import { default as default66 } from "./core/useLibraryUrl/useLibraryUrl.js";
|
|
78
|
-
import { default as default67 } from "./core/useMediaLibrary/useMediaLibrary.js";
|
|
79
86
|
import { useResourceSearch } from "./core/useResourceSearch/useResourceSearch.js";
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as default69 } from "./core/useUploadFiles/useUploadFiles.js";
|
|
82
|
-
import { default as default70 } from "./core/useWorkspaceFile/useWorkspaceFile.js";
|
|
83
|
-
import { default as default71 } from "./hooks/useDropdown/useDropdown.js";
|
|
84
|
-
import { default as default72 } from "./hooks/useDropzone/useDropzone.js";
|
|
85
|
-
import { default as default73 } from "./hooks/useHover/useHover.js";
|
|
86
|
-
import { default as default74 } from "./portal/Layout/Layout.js";
|
|
87
|
+
import { default as default37 } from "./hooks/useHover/useHover.js";
|
|
87
88
|
import { MockedDataProvider, useMockedData } from "./utils/MockedDataProvider/MockedDataProvider.js";
|
|
88
89
|
import { StringUtils } from "./utils/StringUtils.js";
|
|
89
90
|
import { addTimestampToImageUrl } from "./utils/addTimestampToUrl.js";
|
|
@@ -98,47 +99,46 @@ import { getThumbnail } from "./utils/thumbnail.js";
|
|
|
98
99
|
import { convertMsToMS, padTo2Digits } from "./utils/time.js";
|
|
99
100
|
import { TreeNodeFolderWrapper, addNode, arrayUnique, deleteNode, findNodeById, findParentNode, getAncestors, hasChildren, modifyNode, moveNode, updateNode, wrapTreeNode } from "./utils/treeview.js";
|
|
100
101
|
import { getBestSupportedMimeType } from "./utils/video.js";
|
|
101
|
-
import { default as default75 } from "./widgets/BookmarkedApps/BookmarkedApps.js";
|
|
102
102
|
export {
|
|
103
103
|
AccessiblePalette,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
ActionBar,
|
|
105
|
+
Alert,
|
|
106
|
+
AppHeader,
|
|
107
107
|
AppIcon,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
Attachment,
|
|
109
|
+
Avatar,
|
|
110
|
+
Badge,
|
|
111
|
+
default36 as BookmarkedApps,
|
|
112
112
|
Breadcrumb,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
Button,
|
|
114
|
+
Card,
|
|
115
|
+
Checkbox,
|
|
116
|
+
ColorPicker,
|
|
117
|
+
ColorPickerItem,
|
|
118
118
|
Column,
|
|
119
|
-
|
|
119
|
+
Combobox,
|
|
120
120
|
DefaultPalette,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
Dropdown,
|
|
122
|
+
Dropzone,
|
|
123
|
+
EmptyScreen,
|
|
124
|
+
FileCard,
|
|
125
|
+
FormControl,
|
|
126
|
+
FormText,
|
|
127
127
|
Grid,
|
|
128
|
-
|
|
128
|
+
Heading,
|
|
129
129
|
Icon,
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
IconButton,
|
|
131
|
+
Image,
|
|
132
132
|
ImagePicker,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
Input,
|
|
134
|
+
Label,
|
|
135
|
+
default34 as Layout,
|
|
136
|
+
Loading,
|
|
137
|
+
LoadingScreen,
|
|
138
|
+
Logo,
|
|
139
139
|
Menu,
|
|
140
140
|
MockedDataProvider,
|
|
141
|
-
|
|
141
|
+
Modal,
|
|
142
142
|
NOOP,
|
|
143
143
|
OdeClientContext,
|
|
144
144
|
OdeClientProvider,
|
|
@@ -146,23 +146,23 @@ export {
|
|
|
146
146
|
PopoverBody,
|
|
147
147
|
PopoverFooter,
|
|
148
148
|
PopoverHeader,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
Radio,
|
|
150
|
+
SearchBar,
|
|
151
|
+
SearchButton,
|
|
152
|
+
Select,
|
|
153
153
|
StringUtils,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
TableExplorer,
|
|
155
|
+
Tabs,
|
|
156
|
+
TextArea,
|
|
157
157
|
ThemeContext,
|
|
158
158
|
ThemeProvider,
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
Toolbar,
|
|
160
|
+
Tooltip,
|
|
161
161
|
TreeNodeFolderWrapper,
|
|
162
|
-
|
|
162
|
+
TreeView,
|
|
163
163
|
UploadCard,
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
VisuallyHidden,
|
|
165
|
+
default35 as Widget,
|
|
166
166
|
addNode,
|
|
167
167
|
addTimestampToImageUrl,
|
|
168
168
|
arrayUnique,
|
|
@@ -187,41 +187,41 @@ export {
|
|
|
187
187
|
updateNode,
|
|
188
188
|
default2 as useAvatar,
|
|
189
189
|
default3 as useBookmark,
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
default22 as useBrowserInfo,
|
|
191
|
+
default23 as useClickOutside,
|
|
192
192
|
default4 as useConf,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
193
|
+
default5 as useConversation,
|
|
194
|
+
default6 as useDate,
|
|
195
|
+
default24 as useDebounce,
|
|
196
|
+
default25 as useDropdown,
|
|
197
|
+
default26 as useDropzone,
|
|
198
|
+
default7 as useHasWorkflow,
|
|
199
|
+
default8 as useHeader,
|
|
200
|
+
default37 as useHover,
|
|
201
201
|
useHttpErrorToast,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
default28 as useImage,
|
|
203
|
+
default9 as useIsAdml,
|
|
204
|
+
default29 as useKeyPress,
|
|
205
|
+
default10 as useLibraryUrl,
|
|
206
|
+
default11 as useMediaLibrary,
|
|
207
207
|
useMockedData,
|
|
208
208
|
useOdeClient,
|
|
209
|
-
|
|
209
|
+
default12 as useOdeIcons,
|
|
210
210
|
useOdeTheme,
|
|
211
|
-
|
|
211
|
+
default13 as usePaths,
|
|
212
212
|
useResourceSearch,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
213
|
+
default30 as useScrollToTop,
|
|
214
|
+
default14 as useSession,
|
|
215
|
+
default31 as useTitle,
|
|
216
|
+
default27 as useToast,
|
|
217
|
+
default32 as useToggle,
|
|
218
|
+
default33 as useTrapFocus,
|
|
219
|
+
default15 as useTrashedResource,
|
|
220
|
+
default16 as useUploadFiles,
|
|
221
|
+
default17 as useUser,
|
|
222
|
+
default18 as useWorkspaceFile,
|
|
223
|
+
default19 as useWorkspaceSearch,
|
|
224
|
+
default20 as useXitiTrackPageLoad,
|
|
225
|
+
default21 as useZendeskGuide,
|
|
226
226
|
wrapTreeNode
|
|
227
227
|
};
|
package/dist/modals.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/modals/
|
|
2
|
-
import { default as default3 } from "./modules/modals/
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { default as default9 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
1
|
+
import { default as default2 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
2
|
+
import { default as default3 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
3
|
+
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
4
|
+
import { BlogPublic } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
5
|
+
import { useUpdateMutation } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
6
|
+
import { ShareBlog } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
7
|
+
import { useShareMutation } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
default7 as useUpdateMutation
|
|
9
|
+
BlogPublic,
|
|
10
|
+
default2 as OnboardingModal,
|
|
11
|
+
default3 as PublishModal,
|
|
12
|
+
ResourceModal,
|
|
13
|
+
ShareBlog,
|
|
14
|
+
useShareMutation,
|
|
15
|
+
useUpdateMutation
|
|
18
16
|
};
|
|
@@ -2,9 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
5
|
-
import Dropdown from "../../components/Dropdown/Dropdown.js";
|
|
6
|
-
import Tooltip from "../../components/Tooltip/Tooltip.js";
|
|
7
|
-
import IconButton from "../../components/Button/IconButton.js";
|
|
5
|
+
import { Dropdown } from "../../components/Dropdown/Dropdown.js";
|
|
6
|
+
import { Tooltip } from "../../components/Tooltip/Tooltip.js";
|
|
7
|
+
import { IconButton } from "../../components/Button/IconButton.js";
|
|
8
8
|
const ReactionChoice = ({
|
|
9
9
|
availableReactions,
|
|
10
10
|
summary = {
|
|
@@ -27,7 +27,7 @@ const ReactionChoice = ({
|
|
|
27
27
|
/* @__PURE__ */ jsx(Dropdown.Trigger, { className: classes, color: "tertiary", variant: "ghost", size: "sm", icon: getReactionIcon(userReaction), hideCarret: !0, label: t(getReactionLabel(userReaction)) }),
|
|
28
28
|
/* @__PURE__ */ jsx(Dropdown.Menu, { unstyled: !0, className: "bg-white shadow rounded-8 overflow-visible", children: /* @__PURE__ */ jsx("div", { className: "d-flex align-items-center justify-content-between", children: availableReactions == null ? void 0 : availableReactions.map((reactionType) => /* @__PURE__ */ jsx(Dropdown.Item, { className: "p-0", children: /* @__PURE__ */ jsx(Tooltip, { message: t(getReactionLabel(reactionType)), placement: "top", children: /* @__PURE__ */ jsx(IconButton, { className: "reaction-available m-4", variant: "ghost", size: "sm", icon: getReactionIcon(reactionType), onClick: () => onChange == null ? void 0 : onChange(reactionType) }) }) }, reactionType)) }) })
|
|
29
29
|
] }) });
|
|
30
|
-
}
|
|
30
|
+
};
|
|
31
31
|
export {
|
|
32
|
-
ReactionChoice
|
|
32
|
+
ReactionChoice as default
|
|
33
33
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
4
4
|
import useAvatar from "../../core/useAvatar/useAvatar.js";
|
|
5
|
-
import Avatar from "../../components/Avatar/Avatar.js";
|
|
5
|
+
import { Avatar } from "../../components/Avatar/Avatar.js";
|
|
6
6
|
function ReactionModalCard({
|
|
7
7
|
reaction
|
|
8
8
|
}) {
|
|
@@ -5,10 +5,10 @@ import { createPortal } from "react-dom";
|
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { ReactionModalCard } from "./ReactionModal.Card.js";
|
|
7
7
|
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
8
|
-
import Modal from "../../components/Modal/Modal.js";
|
|
9
|
-
import Tabs from "../../components/Tabs/Tabs.js";
|
|
10
|
-
import Button from "../../components/Button/Button.js";
|
|
11
8
|
import { StringUtils } from "../../utils/StringUtils.js";
|
|
9
|
+
import { Modal } from "../../components/Modal/Modal.js";
|
|
10
|
+
import { Tabs } from "../../components/Tabs/Tabs.js";
|
|
11
|
+
import { Button } from "../../components/Button/Button.js";
|
|
12
12
|
const ALL_TAB_ID = "all", ReactionModal = ({
|
|
13
13
|
resourceId,
|
|
14
14
|
pageSize = 30,
|
|
@@ -67,7 +67,6 @@ const ALL_TAB_ID = "all", ReactionModal = ({
|
|
|
67
67
|
] }), document.getElementById("portal"));
|
|
68
68
|
};
|
|
69
69
|
ReactionModal.Card = ReactionModalCard;
|
|
70
|
-
const ReactionModal$1 = ReactionModal;
|
|
71
70
|
export {
|
|
72
|
-
ReactionModal
|
|
71
|
+
ReactionModal as default
|
|
73
72
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
3
|
-
import Button from "../../components/Button/Button.js";
|
|
3
|
+
import { Button } from "../../components/Button/Button.js";
|
|
4
4
|
import { StringUtils } from "../../utils/StringUtils.js";
|
|
5
5
|
const ReactionSummary = ({
|
|
6
6
|
summary = {
|
|
@@ -21,7 +21,7 @@ const ReactionSummary = ({
|
|
|
21
21
|
/* @__PURE__ */ jsx("div", { className: "text-gray-700 fw-normal me-8", children: StringUtils.toCounter(totalReactionsCounter) }),
|
|
22
22
|
hasNoReactions ? /* @__PURE__ */ jsx("div", { className: "reaction-overlap", children: getReactionIcon("REACTION_1", !0) }) : reactionTypes == null ? void 0 : reactionTypes.map((reactionType) => /* @__PURE__ */ jsx("div", { className: "reaction-overlap", children: getReactionIcon(reactionType, !0) }, reactionType))
|
|
23
23
|
] }) });
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
export {
|
|
26
|
-
ReactionSummary
|
|
26
|
+
ReactionSummary as default
|
|
27
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import Button from "../../components/Button/Button.js";
|
|
4
3
|
import { StringUtils } from "../../utils/StringUtils.js";
|
|
4
|
+
import { Button } from "../../components/Button/Button.js";
|
|
5
5
|
import { Icon } from "../../components/Icon/Icon.js";
|
|
6
6
|
const ViewsCounter = ({
|
|
7
7
|
viewsCounter,
|
|
@@ -12,7 +12,7 @@ const ViewsCounter = ({
|
|
|
12
12
|
event.preventDefault(), event.stopPropagation(), onClick == null || onClick();
|
|
13
13
|
};
|
|
14
14
|
return className = clsx("text-gray-700 fw-normal py-4 px-8 btn-icon", className), /* @__PURE__ */ jsx(Button, { rightIcon: /* @__PURE__ */ jsx(Icon, { name: "see" }), variant: "ghost", type: "button", className, onClick: handleButtonClick, disabled: !viewsCounter, children: StringUtils.toCounter(viewsCounter) });
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
export {
|
|
17
|
-
ViewsCounter
|
|
17
|
+
ViewsCounter as default
|
|
18
18
|
};
|
|
@@ -2,10 +2,10 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { createPortal } from "react-dom";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import ViewsByProfileCard from "./ViewsByProfileCard.js";
|
|
5
|
-
import Modal from "../../components/Modal/Modal.js";
|
|
6
|
-
import Button from "../../components/Button/Button.js";
|
|
5
|
+
import { Modal } from "../../components/Modal/Modal.js";
|
|
7
6
|
import { Icon } from "../../components/Icon/Icon.js";
|
|
8
7
|
import { StringUtils } from "../../utils/StringUtils.js";
|
|
8
|
+
import { Button } from "../../components/Button/Button.js";
|
|
9
9
|
const ViewsModal = ({
|
|
10
10
|
viewsDetails,
|
|
11
11
|
isOpen,
|
|
@@ -34,7 +34,7 @@ const ViewsModal = ({
|
|
|
34
34
|
] }),
|
|
35
35
|
/* @__PURE__ */ jsx(Modal.Footer, { children: /* @__PURE__ */ jsx(Button, { color: "primary", onClick: onModalClose, type: "button", variant: "filled", children: t("audience.views.cancel") }) })
|
|
36
36
|
] }), document.getElementById("portal"));
|
|
37
|
-
}
|
|
37
|
+
};
|
|
38
38
|
export {
|
|
39
|
-
ViewsModal
|
|
39
|
+
ViewsModal as default
|
|
40
40
|
};
|
|
@@ -6,10 +6,8 @@ import { ReactionType } from 'edifice-ts-client';
|
|
|
6
6
|
* @returns functions to easily call "audience" backend endpoints
|
|
7
7
|
*/
|
|
8
8
|
export default function useReactions(module: string, resourceType: string): {
|
|
9
|
-
availableReactions:
|
|
10
|
-
loadReactionDetails: (resourceId: string, page: number, size?: number) => Promise<
|
|
11
|
-
loadReactionSummaries: (resourceIds: string[]) => Promise<
|
|
12
|
-
[resourceId: string]: import('edifice-ts-client').ReactionSummaryData | undefined;
|
|
13
|
-
}>;
|
|
9
|
+
availableReactions: ReactionType[];
|
|
10
|
+
loadReactionDetails: (resourceId: string, page: number, size?: number) => Promise<any>;
|
|
11
|
+
loadReactionSummaries: (resourceIds: string[]) => Promise<any>;
|
|
14
12
|
applyReaction: (resourceId: string, newReaction: ReactionType, oldReaction: ReactionType | null) => Promise<"-" | "+" | "=">;
|
|
15
13
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @returns functions to easily call "audience" backend endpoints.
|
|
6
6
|
*/
|
|
7
7
|
export default function useViews(module: string, resourceType: string): {
|
|
8
|
-
getViewsCounter: (resourceIds: string[]) =>
|
|
9
|
-
getViewsDetail: (resourceId: string) =>
|
|
10
|
-
triggerView: (resourceId: string) =>
|
|
8
|
+
getViewsCounter: (resourceIds: string[]) => any;
|
|
9
|
+
getViewsDetail: (resourceId: string) => any;
|
|
10
|
+
triggerView: (resourceId: string) => any;
|
|
11
11
|
};
|
|
@@ -3,7 +3,7 @@ import { useMemo } from "react";
|
|
|
3
3
|
import { BubbleMenu } from "@tiptap/react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
6
|
-
import Toolbar from "../../../../components/Toolbar/Toolbar.js";
|
|
6
|
+
import { Toolbar } from "../../../../components/Toolbar/Toolbar.js";
|
|
7
7
|
const BubbleMenuEditImage = ({
|
|
8
8
|
editor,
|
|
9
9
|
onEditImage,
|
|
@@ -126,7 +126,7 @@ const BubbleMenuEditImage = ({
|
|
|
126
126
|
return /* @__PURE__ */ jsx(BubbleMenu, { className: openEditImage ? "d-none" : "", shouldShow: ({
|
|
127
127
|
editor: editor2
|
|
128
128
|
}) => editor2.isActive("custom-image") && !openEditImage, editor, tippyOptions, children: editable && /* @__PURE__ */ jsx(Toolbar, { className: "p-8", items: ImageSizeItems }) });
|
|
129
|
-
}
|
|
129
|
+
};
|
|
130
130
|
export {
|
|
131
|
-
BubbleMenuEditImage
|
|
131
|
+
BubbleMenuEditImage as default
|
|
132
132
|
};
|
|
@@ -17,7 +17,7 @@ import TableToolbar from "../Toolbar/TableToolbar.js";
|
|
|
17
17
|
import BubbleMenuEditImage from "../BubbleMenuEditImage/BubbleMenuEditImage.js";
|
|
18
18
|
import MediaLibrary from "../../../multimedia/MediaLibrary/MediaLibrary.js";
|
|
19
19
|
import { useOdeClient } from "../../../../core/OdeClientProvider/OdeClientProvider.js";
|
|
20
|
-
import LoadingScreen from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
20
|
+
import { LoadingScreen } from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
21
21
|
const MathsModal = /* @__PURE__ */ lazy(async () => await import("./MathsModal.js")), ImageEditor = /* @__PURE__ */ lazy(async () => await import("../../../multimedia/ImageEditor/components/ImageEditor.js")), Editor = /* @__PURE__ */ forwardRef(({
|
|
22
22
|
id,
|
|
23
23
|
content,
|
|
@@ -51,7 +51,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("./MathsModal.j
|
|
|
51
51
|
case "plain":
|
|
52
52
|
return editor == null ? void 0 : editor.getText();
|
|
53
53
|
default:
|
|
54
|
-
throw `[Editor] Unknown content format ${as}
|
|
54
|
+
throw new Error(`[Editor] Unknown content format ${as}`);
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
toogleSpeechSynthetisis: speechSynthetisis.toggle,
|
|
@@ -77,7 +77,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("./MathsModal.j
|
|
|
77
77
|
editable && (imageModal == null ? void 0 : imageModal.isOpen) && (imageModal == null ? void 0 : imageModal.currentImage) && /* @__PURE__ */ jsx(ImageEditor, { altText: imageModal == null ? void 0 : imageModal.currentImage.alt, legend: imageModal == null ? void 0 : imageModal.currentImage.title, image: imageModal == null ? void 0 : imageModal.currentImage.src, isOpen: imageModal.isOpen, onCancel: imageModal.handleCancel, onSave: imageModal.handleSave, onError: console.error })
|
|
78
78
|
] })
|
|
79
79
|
] });
|
|
80
|
-
})
|
|
80
|
+
});
|
|
81
81
|
export {
|
|
82
|
-
Editor
|
|
82
|
+
Editor as default
|
|
83
83
|
};
|
|
@@ -5,8 +5,8 @@ import { useEditor, EditorContent } from "@tiptap/react";
|
|
|
5
5
|
import StarterKit from "@tiptap/starter-kit";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
|
-
import Modal from "../../../../components/Modal/Modal.js";
|
|
9
|
-
import Button from "../../../../components/Button/Button.js";
|
|
8
|
+
import { Modal } from "../../../../components/Modal/Modal.js";
|
|
9
|
+
import { Button } from "../../../../components/Button/Button.js";
|
|
10
10
|
const MathsModal = ({
|
|
11
11
|
isOpen,
|
|
12
12
|
onSuccess,
|
|
@@ -33,7 +33,7 @@ const MathsModal = ({
|
|
|
33
33
|
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: handleOnCancel, children: t("tiptap.maths.title") }),
|
|
34
34
|
/* @__PURE__ */ jsxs(Modal.Subtitle, { children: [
|
|
35
35
|
t("tiptap.maths.subtitle.1"),
|
|
36
|
-
/* @__PURE__ */ jsx("a", { href: t("https://fr.wikibooks.org/wiki/LaTeX/%C3%89crire_des_math%C3%A9matiques"), target: "_blank", children: t("tiptap.maths.subtitle.2") })
|
|
36
|
+
/* @__PURE__ */ jsx("a", { href: t("https://fr.wikibooks.org/wiki/LaTeX/%C3%89crire_des_math%C3%A9matiques"), target: "_blank", rel: "noreferrer", children: t("tiptap.maths.subtitle.2") })
|
|
37
37
|
] }),
|
|
38
38
|
/* @__PURE__ */ jsxs(Modal.Body, { children: [
|
|
39
39
|
/* @__PURE__ */ jsx("textarea", { id: "formulaTextArea", name: "formula", rows: 4, cols: 50, onChange: handleChange, placeholder: `Exemple : ${FORMULA_PLACEHOLDER}`, className: "border rounded-3 w-100 px-16 py-12" }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as Fragment$1 } from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
3
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
4
|
+
import { IconButton } from "../../../../components/Button/IconButton.js";
|
|
5
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
6
6
|
const EditorToolbarDropdownMenu = ({
|
|
7
7
|
triggerProps,
|
|
8
8
|
icon,
|