@edifice.io/react 2.2.2-develop-pedago.20250409103005 → 2.2.2-develop-b2school.20250410105023
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/dist/components/Avatar/Avatar.d.ts +0 -21
- package/dist/components/Avatar/Avatar.js +2 -15
- package/dist/components/Card/Card.d.ts +1 -3
- package/dist/components/Card/CardBody.d.ts +1 -3
- package/dist/components/Card/CardBody.js +2 -4
- package/dist/components/Combobox/Combobox.d.ts +55 -5
- package/dist/components/Combobox/Combobox.js +13 -7
- package/dist/components/Combobox/ComboboxTrigger.d.ts +30 -2
- package/dist/components/Combobox/ComboboxTrigger.js +27 -8
- package/dist/components/Dropdown/Dropdown.d.ts +10 -6
- package/dist/components/Dropdown/Dropdown.js +5 -5
- package/dist/components/Dropdown/DropdownItem.d.ts +3 -3
- package/dist/components/Dropdown/DropdownItem.js +6 -8
- package/dist/components/Dropdown/DropdownTrigger.d.ts +2 -31
- package/dist/components/Dropdown/DropdownTrigger.js +8 -24
- package/dist/components/List/List.d.ts +9 -1
- package/dist/components/List/List.js +9 -9
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +3 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/editor.js +22 -22
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useCheckable/useCheckable.js +10 -3
- package/dist/hooks/useConf/useConf.d.ts +1 -1
- package/dist/hooks/useConversation/useConversation.d.ts +1 -1
- package/dist/hooks/useConversation/useConversation.js +13 -17
- package/dist/hooks/useDropdown/useDropdown.d.ts +2 -1
- package/dist/hooks/useDropdown/useDropdown.js +5 -3
- package/dist/hooks/useSession/useSession.d.ts +1 -1
- package/dist/hooks/useWorkspaceFolders/index.d.ts +1 -0
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.d.ts +14 -0
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.js +44 -0
- package/dist/icons.js +230 -212
- package/dist/index.d.ts +1 -0
- package/dist/index.js +172 -154
- package/dist/modals.js +16 -14
- package/dist/modules/comments/components/Comment.js +34 -49
- package/dist/modules/comments/components/CommentForm.d.ts +1 -2
- package/dist/modules/comments/components/CommentForm.js +8 -12
- package/dist/modules/comments/components/CommentList.js +3 -3
- package/dist/modules/comments/constants.d.ts +0 -4
- package/dist/modules/comments/constants.js +1 -2
- package/dist/modules/comments/context/Context.d.ts +4 -6
- package/dist/modules/comments/hooks/useComments.d.ts +7 -7
- package/dist/modules/comments/hooks/useComments.js +19 -24
- package/dist/modules/comments/hooks/useCommentsContext.d.ts +4 -6
- package/dist/modules/comments/provider/CommentProvider.js +13 -16
- package/dist/modules/comments/types.d.ts +1 -14
- package/dist/modules/editor/components/Editor/Editor.d.ts +3 -1
- package/dist/modules/editor/components/Editor/Editor.js +5 -8
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +0 -12
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/index.d.ts +2 -2
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.d.ts +8 -0
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.js +28 -0
- package/dist/modules/editor/components/Renderer/index.d.ts +2 -2
- package/dist/modules/editor/hooks/useTipTapEditor.d.ts +6 -2
- package/dist/modules/editor/hooks/useTipTapEditor.js +2 -4
- package/dist/modules/icons/components/IconFolderAdd.d.ts +7 -0
- package/dist/modules/icons/components/IconFolderAdd.js +13 -0
- package/dist/modules/icons/components/IconFolderDelete.d.ts +7 -0
- package/dist/modules/icons/components/IconFolderDelete.js +12 -0
- package/dist/modules/icons/components/IconGlobe2.d.ts +7 -0
- package/dist/modules/icons/components/IconGlobe2.js +16 -0
- package/dist/modules/icons/components/IconGroupAvatar.d.ts +7 -0
- package/dist/modules/icons/components/IconGroupAvatar.js +12 -0
- package/dist/modules/icons/components/IconMailRecall.d.ts +7 -0
- package/dist/modules/icons/components/IconMailRecall.js +13 -0
- package/dist/modules/icons/components/IconQuestionMark.d.ts +7 -0
- package/dist/modules/icons/components/IconQuestionMark.js +13 -0
- package/dist/modules/icons/components/IconReadMail.d.ts +7 -0
- package/dist/modules/icons/components/IconReadMail.js +16 -0
- package/dist/modules/icons/components/IconSignature.d.ts +7 -0
- package/dist/modules/icons/components/IconSignature.js +13 -0
- package/dist/modules/icons/components/IconUndoAll.d.ts +7 -0
- package/dist/modules/icons/components/IconUndoAll.js +14 -0
- package/dist/modules/icons/components/IconUnreadMail.d.ts +7 -0
- package/dist/modules/icons/components/IconUnreadMail.js +16 -0
- package/dist/modules/icons/components/index.d.ts +10 -1
- package/dist/modules/modals/ConfirmModal/ConfirmModal.d.ts +42 -0
- package/dist/modules/modals/ConfirmModal/ConfirmModal.js +36 -0
- package/dist/modules/modals/ConfirmModal/index.d.ts +1 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/modals/index.d.ts +1 -0
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +5 -9
- package/dist/modules/multimedia/WorkspaceFolders/WorkspaceFolders.d.ts +8 -0
- package/dist/modules/multimedia/WorkspaceFolders/WorkspaceFolders.js +28 -0
- package/dist/modules/multimedia/WorkspaceFolders/index.d.ts +1 -0
- package/dist/modules/multimedia/index.d.ts +1 -0
- package/dist/multimedia.js +3 -1
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.d.ts +1 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +6 -6
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +0 -24
- package/dist/components/AvatarGroup/AvatarGroup.js +0 -24
- package/dist/components/AvatarGroup/index.d.ts +0 -2
- package/dist/components/PreventPropagation/PreventPropagation.d.ts +0 -10
- package/dist/components/PreventPropagation/PreventPropagation.js +0 -9
- package/dist/components/PreventPropagation/index.d.ts +0 -2
- package/dist/components/StackedGroup/StackedGroup.d.ts +0 -23
- package/dist/components/StackedGroup/StackedGroup.js +0 -21
- package/dist/components/StackedGroup/index.d.ts +0 -1
- package/dist/components/Switch/Switch.d.ts +0 -29
- package/dist/components/Switch/Switch.js +0 -27
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/modules/comments/components/CommentDeleted.d.ts +0 -1
- package/dist/modules/comments/components/CommentDeleted.js +0 -11
- package/dist/modules/comments/components/CommentReplies.d.ts +0 -4
- package/dist/modules/comments/components/CommentReplies.js +0 -33
- package/dist/modules/comments/hooks/useCommentReplies.d.ts +0 -12
- package/dist/modules/comments/hooks/useCommentReplies.js +0 -36
- package/dist/modules/editor/components/BubbleMenuEditInformationPane/BubbleMenuEditInformationPane.d.ts +0 -6
- package/dist/modules/editor/components/BubbleMenuEditInformationPane/BubbleMenuEditInformationPane.js +0 -136
- package/dist/modules/editor/components/BubbleMenuEditInformationPane/index.d.ts +0 -1
- package/dist/modules/editor/components/NodeView/InformationPaneNodeView.d.ts +0 -2
- package/dist/modules/editor/components/NodeView/InformationPaneNodeView.js +0 -10
- package/dist/modules/editor/components/Renderer/InformationPaneRenderer.d.ts +0 -3
- package/dist/modules/editor/components/Renderer/InformationPaneRenderer.js +0 -33
- package/dist/modules/icons/components/IconInfoRectangle.d.ts +0 -7
- package/dist/modules/icons/components/IconInfoRectangle.js +0 -13
package/dist/index.js
CHANGED
|
@@ -4,84 +4,91 @@ import { default as default4 } from "./components/AppHeader/AppHeader.js";
|
|
|
4
4
|
import { default as default5 } from "./components/AppIcon/AppIcon.js";
|
|
5
5
|
import { default as default6 } from "./components/Attachment/Attachment.js";
|
|
6
6
|
import { default as default7 } from "./components/Avatar/Avatar.js";
|
|
7
|
-
import { default as default8 } from "./components/
|
|
8
|
-
import { default as default9 } from "./components/
|
|
9
|
-
import { default as default10 } from "./components/
|
|
10
|
-
import { default as default11 } from "./components/Button/
|
|
11
|
-
import { default as default12 } from "./components/Button/
|
|
12
|
-
import { default as default13 } from "./components/
|
|
13
|
-
import { default as default14 } from "./components/
|
|
14
|
-
import { default as default15 } from "./components/
|
|
15
|
-
import { default as default16 } from "./components/ColorPicker/
|
|
16
|
-
import { default as default17 } from "./components/
|
|
17
|
-
import { default as default18 } from "./components/
|
|
18
|
-
import { default as default19 } from "./components/
|
|
19
|
-
import { default as default20 } from "./components/
|
|
20
|
-
import { default as default21 } from "./components/
|
|
21
|
-
import { default as default22 } from "./components/Form/
|
|
22
|
-
import { default as default23 } from "./components/
|
|
23
|
-
import { default as default24 } from "./components/
|
|
24
|
-
import { default as default25 } from "./components/
|
|
25
|
-
import { default as default26 } from "./components/
|
|
26
|
-
import { default as default27 } from "./components/
|
|
27
|
-
import { default as default28 } from "./components/
|
|
28
|
-
import { default as default29 } from "./components/
|
|
29
|
-
import { default as default30 } from "./components/
|
|
30
|
-
import { default as default31 } from "./components/
|
|
31
|
-
import { default as default32 } from "./components/
|
|
32
|
-
import { default as default33 } from "./components/
|
|
33
|
-
import { default as default34 } from "./components/
|
|
34
|
-
import { default as default35 } from "./components/
|
|
35
|
-
import { default as default36 } from "./components/
|
|
36
|
-
import { default as default37 } from "./components/Switch/Switch.js";
|
|
37
|
-
import { default as default38 } from "./components/Table/components/Table.js";
|
|
38
|
-
import { default as default39 } from "./components/TextArea/TextArea.js";
|
|
39
|
-
import { default as default40 } from "./components/Tooltip/Tooltip.js";
|
|
7
|
+
import { default as default8 } from "./components/Badge/Badge.js";
|
|
8
|
+
import { default as default9 } from "./components/Breadcrumb/Breadcrumb.js";
|
|
9
|
+
import { default as default10 } from "./components/Button/Button.js";
|
|
10
|
+
import { default as default11 } from "./components/Button/IconButton.js";
|
|
11
|
+
import { default as default12 } from "./components/Button/SearchButton.js";
|
|
12
|
+
import { default as default13 } from "./components/Card/Card.js";
|
|
13
|
+
import { default as default14 } from "./components/Checkbox/Checkbox.js";
|
|
14
|
+
import { default as default15 } from "./components/ColorPicker/ColorPicker.js";
|
|
15
|
+
import { default as default16 } from "./components/ColorPicker/ColorPickerItem.js";
|
|
16
|
+
import { default as default17 } from "./components/Combobox/Combobox.js";
|
|
17
|
+
import { default as default18 } from "./components/Dropdown/Dropdown.js";
|
|
18
|
+
import { default as default19 } from "./components/Dropzone/Dropzone.js";
|
|
19
|
+
import { default as default20 } from "./components/EmptyScreen/EmptyScreen.js";
|
|
20
|
+
import { default as default21 } from "./components/Form/FormText.js";
|
|
21
|
+
import { default as default22 } from "./components/Form/FormControl.js";
|
|
22
|
+
import { default as default23 } from "./components/Heading/Heading.js";
|
|
23
|
+
import { default as default24 } from "./components/Image/Image.js";
|
|
24
|
+
import { default as default25 } from "./components/Input/Input.js";
|
|
25
|
+
import { default as default26 } from "./components/Label/Label.js";
|
|
26
|
+
import { default as default27 } from "./components/Loading/Loading.js";
|
|
27
|
+
import { default as default28 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
28
|
+
import { default as default29 } from "./components/Logo/Logo.js";
|
|
29
|
+
import { default as default30 } from "./components/Modal/Modal.js";
|
|
30
|
+
import { default as default31 } from "./components/Radio/Radio.js";
|
|
31
|
+
import { default as default32 } from "./components/SearchBar/SearchBar.js";
|
|
32
|
+
import { default as default33 } from "./components/Select/Select.js";
|
|
33
|
+
import { default as default34 } from "./components/Table/components/Table.js";
|
|
34
|
+
import { default as default35 } from "./components/TextArea/TextArea.js";
|
|
35
|
+
import { default as default36 } from "./components/Tooltip/Tooltip.js";
|
|
40
36
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
37
|
+
import { default as default37 } from "./components/Tree/components/SortableTree.js";
|
|
38
|
+
import { default as default38 } from "./components/Tree/components/Tree.js";
|
|
39
|
+
import { default as default39 } from "./components/TreeView/TreeView.js";
|
|
40
|
+
import { default as default40 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
41
|
+
import { default as default41 } from "./hooks/useBookmark/useBookmark.js";
|
|
42
|
+
import { default as default42 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
43
|
+
import { default as default43 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
44
|
+
import { default as default44 } from "./hooks/useCantoo/useCantoo.js";
|
|
45
|
+
import { default as default45 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
46
|
+
import { default as default46 } from "./hooks/useConversation/useConversation.js";
|
|
47
|
+
import { default as default47 } from "./hooks/useDate/useDate.js";
|
|
48
|
+
import { default as default48 } from "./hooks/useDebounce/useDebounce.js";
|
|
49
|
+
import { default as default49 } from "./hooks/useDirectory/useDirectory.js";
|
|
50
|
+
import { default as default50 } from "./hooks/useDropdown/useDropdown.js";
|
|
51
|
+
import { default as default51 } from "./hooks/useDropzone/useDropzone.js";
|
|
52
|
+
import { default as default52 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useHover/useHover.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
56
|
+
import { default as default56 } from "./hooks/useImage/useImage.js";
|
|
57
|
+
import { default as default57 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
58
|
+
import { default as default58 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
59
|
+
import { default as default59 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
60
|
+
import { default as default60 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
61
|
+
import { default as default61 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
62
|
+
import { default as default62 } from "./hooks/useTitle/useTitle.js";
|
|
63
|
+
import { default as default63 } from "./hooks/useToast/useToast.js";
|
|
64
|
+
import { default as default64 } from "./hooks/useToggle/useToggle.js";
|
|
65
|
+
import { default as default65 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
66
|
+
import { default as default66 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
67
|
+
import { default as default67 } from "./hooks/useUpload/useUpload.js";
|
|
68
|
+
import { default as default68 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
69
|
+
import { default as default69 } from "./hooks/useUser/useUser.js";
|
|
70
|
+
import { default as default70 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
71
|
+
import { default as default71 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
72
|
+
import { default as default72 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
73
|
+
import { default as default73 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
74
|
+
import { default as default74 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
75
|
+
import { default as default75 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
|
|
76
|
+
import { default as default76 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
77
|
+
import { default as default77 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
78
|
+
import { default as default78 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
79
|
+
import { default as default79 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
80
|
+
import { default as default80 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
81
|
+
import { default as default81 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
82
|
+
import { default as default82 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
83
|
+
import { default as default83 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
84
|
+
import { default as default84 } from "./modules/multimedia/Embed/Embed.js";
|
|
85
|
+
import { default as default85 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
86
|
+
import { default as default86 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
87
|
+
import { default as default87 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
88
|
+
import { default as default88 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
89
|
+
import { default as default89 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
90
|
+
import { default as default90 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
91
|
+
import { default as default91 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
85
92
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
86
93
|
import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
|
|
87
94
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -98,6 +105,8 @@ import { TreeNode } from "./components/TreeView/TreeNode.js";
|
|
|
98
105
|
import { TreeNodeFolderWrapper, addNode, arrayUnique, deleteNode, findNodeById, findParentNode, findPathById, findTreeNode, getAncestors, hasChildren, modifyNode, moveNode, updateNode, wrapTreeNode } from "./components/TreeView/utilities/treeview.js";
|
|
99
106
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
100
107
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
108
|
+
import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
|
|
109
|
+
import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
|
|
101
110
|
import { EdificeClientProvider } from "./providers/EdificeClientProvider/EdificeClientProvider.js";
|
|
102
111
|
import { EdificeClientContext } from "./providers/EdificeClientProvider/EdificeClientProvider.context.js";
|
|
103
112
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
@@ -115,71 +124,79 @@ export {
|
|
|
115
124
|
default4 as AppHeader,
|
|
116
125
|
default5 as AppIcon,
|
|
117
126
|
default6 as Attachment,
|
|
127
|
+
default83 as AudioRecorder,
|
|
118
128
|
default7 as Avatar,
|
|
119
|
-
default8 as
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
default10 as
|
|
123
|
-
|
|
124
|
-
default14 as
|
|
125
|
-
default15 as
|
|
126
|
-
default16 as
|
|
127
|
-
default17 as ColorPickerItem,
|
|
129
|
+
default8 as Badge,
|
|
130
|
+
default78 as BlogPublic,
|
|
131
|
+
default9 as Breadcrumb,
|
|
132
|
+
default10 as Button,
|
|
133
|
+
default13 as Card,
|
|
134
|
+
default14 as Checkbox,
|
|
135
|
+
default15 as ColorPicker,
|
|
136
|
+
default16 as ColorPickerItem,
|
|
128
137
|
Column,
|
|
129
|
-
|
|
138
|
+
default17 as Combobox,
|
|
139
|
+
default75 as ConfirmModal,
|
|
130
140
|
DefaultPalette,
|
|
131
141
|
DndTree,
|
|
132
|
-
|
|
133
|
-
|
|
142
|
+
default18 as Dropdown,
|
|
143
|
+
default19 as Dropzone,
|
|
134
144
|
DropzoneContext,
|
|
135
145
|
EdificeClientContext,
|
|
136
146
|
EdificeClientProvider,
|
|
137
147
|
EdificeThemeContext,
|
|
138
148
|
EdificeThemeProvider,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
149
|
+
default84 as Embed,
|
|
150
|
+
default20 as EmptyScreen,
|
|
151
|
+
ExternalLinker,
|
|
152
|
+
default22 as FormControl,
|
|
153
|
+
default21 as FormText,
|
|
142
154
|
Grid,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
155
|
+
default23 as Heading,
|
|
156
|
+
default11 as IconButton,
|
|
157
|
+
default24 as Image,
|
|
158
|
+
default85 as ImageEditor,
|
|
159
|
+
default86 as ImagePicker,
|
|
160
|
+
default25 as Input,
|
|
161
|
+
InternalLinker,
|
|
162
|
+
default26 as Label,
|
|
148
163
|
Layout,
|
|
149
164
|
List,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
165
|
+
default27 as Loading,
|
|
166
|
+
default28 as LoadingScreen,
|
|
167
|
+
default29 as Logo,
|
|
168
|
+
default87 as MediaLibrary,
|
|
153
169
|
Menu,
|
|
154
170
|
MockedProvider,
|
|
155
|
-
|
|
156
|
-
|
|
171
|
+
default30 as Modal,
|
|
172
|
+
default76 as OnboardingModal,
|
|
157
173
|
Popover,
|
|
158
174
|
PopoverBody,
|
|
159
175
|
PopoverFooter,
|
|
160
176
|
PopoverHeader,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
default33 as Radio,
|
|
177
|
+
default77 as PublishModal,
|
|
178
|
+
default31 as Radio,
|
|
164
179
|
ResourceModal,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
default37 as Switch,
|
|
173
|
-
default38 as Table,
|
|
180
|
+
default32 as SearchBar,
|
|
181
|
+
default12 as SearchButton,
|
|
182
|
+
default33 as Select,
|
|
183
|
+
default81 as ShareBlog,
|
|
184
|
+
default80 as ShareModal,
|
|
185
|
+
default37 as SortableTree,
|
|
186
|
+
default34 as Table,
|
|
174
187
|
Tabs,
|
|
175
|
-
|
|
188
|
+
default35 as TextArea,
|
|
176
189
|
Toolbar,
|
|
177
|
-
|
|
178
|
-
|
|
190
|
+
default36 as Tooltip,
|
|
191
|
+
default38 as Tree,
|
|
179
192
|
TreeNode,
|
|
180
193
|
TreeNodeFolderWrapper,
|
|
181
|
-
|
|
182
|
-
|
|
194
|
+
default39 as TreeView,
|
|
195
|
+
default88 as VideoEmbed,
|
|
196
|
+
default89 as VideoRecorder,
|
|
197
|
+
default40 as VisuallyHidden,
|
|
198
|
+
default90 as Workspace,
|
|
199
|
+
default91 as WorkspaceFolders,
|
|
183
200
|
addNode,
|
|
184
201
|
arrayUnique,
|
|
185
202
|
buildTree,
|
|
@@ -207,46 +224,47 @@ export {
|
|
|
207
224
|
setRef,
|
|
208
225
|
updateNode,
|
|
209
226
|
updateParentIds,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
227
|
+
default41 as useBookmark,
|
|
228
|
+
default42 as useBreakpoint,
|
|
229
|
+
default43 as useBrowserInfo,
|
|
230
|
+
default44 as useCantoo,
|
|
214
231
|
useCheckable,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
232
|
+
default45 as useClickOutside,
|
|
233
|
+
default46 as useConversation,
|
|
234
|
+
default47 as useDate,
|
|
235
|
+
default48 as useDebounce,
|
|
236
|
+
default49 as useDirectory,
|
|
237
|
+
default50 as useDropdown,
|
|
238
|
+
default51 as useDropzone,
|
|
222
239
|
useDropzoneContext,
|
|
223
240
|
useEdificeClient,
|
|
224
|
-
|
|
241
|
+
default52 as useEdificeIcons,
|
|
225
242
|
useEdificeTheme,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
243
|
+
default53 as useHasWorkflow,
|
|
244
|
+
default54 as useHover,
|
|
245
|
+
default55 as useHttpErrorToast,
|
|
246
|
+
default56 as useImage,
|
|
247
|
+
default57 as useIsAdml,
|
|
248
|
+
default58 as useKeyPress,
|
|
249
|
+
default59 as useLibraryUrl,
|
|
250
|
+
default60 as useMediaLibrary,
|
|
251
|
+
default61 as useScrollToTop,
|
|
252
|
+
default82 as useShareMutation,
|
|
253
|
+
default62 as useTitle,
|
|
254
|
+
default63 as useToast,
|
|
255
|
+
default64 as useToggle,
|
|
256
|
+
default65 as useTrapFocus,
|
|
257
|
+
default66 as useTrashedResource,
|
|
241
258
|
useTreeSortable,
|
|
242
259
|
useTreeView,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
260
|
+
default79 as useUpdateMutation,
|
|
261
|
+
default67 as useUpload,
|
|
262
|
+
default68 as useUploadFiles,
|
|
263
|
+
default69 as useUser,
|
|
264
|
+
default70 as useWorkspaceFile,
|
|
265
|
+
default71 as useWorkspaceFolders,
|
|
266
|
+
default72 as useWorkspaceSearch,
|
|
267
|
+
default73 as useXitiTrackPageLoad,
|
|
268
|
+
default74 as useZendeskGuide,
|
|
251
269
|
wrapTreeNode
|
|
252
270
|
};
|
package/dist/modals.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/modals/
|
|
2
|
-
import { default as default3 } from "./modules/modals/
|
|
3
|
-
import { default as default4 } from "./modules/modals/
|
|
4
|
-
import { default as default5 } from "./modules/modals/ResourceModal/
|
|
5
|
-
import { default as default6 } from "./modules/modals/
|
|
6
|
-
import { default as default7 } from "./modules/modals/ShareModal/
|
|
7
|
-
import { default as default8 } from "./modules/modals/ShareModal/
|
|
1
|
+
import { default as default2 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
|
|
2
|
+
import { default as default3 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
3
|
+
import { default as default4 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
4
|
+
import { default as default5 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
5
|
+
import { default as default6 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
6
|
+
import { default as default7 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
7
|
+
import { default as default8 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
8
|
+
import { default as default9 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
8
9
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
default2 as
|
|
12
|
-
default3 as
|
|
11
|
+
default5 as BlogPublic,
|
|
12
|
+
default2 as ConfirmModal,
|
|
13
|
+
default3 as OnboardingModal,
|
|
14
|
+
default4 as PublishModal,
|
|
13
15
|
ResourceModal,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
default8 as ShareBlog,
|
|
17
|
+
default7 as ShareModal,
|
|
18
|
+
default9 as useShareMutation,
|
|
19
|
+
default6 as useUpdateMutation
|
|
18
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, Suspense, lazy } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import SvgIconSave from "../../icons/components/IconSave.js";
|
|
@@ -9,8 +9,6 @@ import { CommentAvatar } from "./CommentAvatar.js";
|
|
|
9
9
|
import { CommentDate } from "./CommentDate.js";
|
|
10
10
|
import { CommentTitle } from "./CommentTitle.js";
|
|
11
11
|
import { TextCounter } from "./TextCounter.js";
|
|
12
|
-
import { CommentDeleted } from "./CommentDeleted.js";
|
|
13
|
-
import { CommentReplies } from "./CommentReplies.js";
|
|
14
12
|
import Button from "../../../components/Button/Button.js";
|
|
15
13
|
import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
16
14
|
const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comment = ({
|
|
@@ -24,12 +22,10 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
|
|
|
24
22
|
authorName,
|
|
25
23
|
createdAt,
|
|
26
24
|
updatedAt,
|
|
27
|
-
comment: content
|
|
28
|
-
replyTo
|
|
25
|
+
comment: content
|
|
29
26
|
} = comment, [ref, onFocus, resizeTextarea] = useAutosizeTextarea(!0), [isDeleteModalOpen, setIsDeleteModalOpen] = useState(!1), {
|
|
30
27
|
t
|
|
31
28
|
} = useTranslation(), {
|
|
32
|
-
defaultComments,
|
|
33
29
|
editCommentId,
|
|
34
30
|
options,
|
|
35
31
|
type,
|
|
@@ -37,53 +33,42 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
|
|
|
37
33
|
handleDeleteComment: onDeleteComment,
|
|
38
34
|
handleModifyComment,
|
|
39
35
|
handleReset,
|
|
40
|
-
handleUpdateComment
|
|
41
|
-
|
|
42
|
-
} = useCommentsContext(), replies = (defaultComments == null ? void 0 : defaultComments.filter((comm) => comm.replyTo === comment.id)) ?? [], hasReplies = replies.length > 0, hasAllDeletedReplies = replies.every((reply) => reply.deleted), isEditing = editCommentId === comment.id, handleChangeContent = (event) => {
|
|
36
|
+
handleUpdateComment
|
|
37
|
+
} = useCommentsContext(), isEditing = editCommentId === comment.id, handleChangeContent = (event) => {
|
|
43
38
|
resizeTextarea(), setValue(event.target.value);
|
|
44
39
|
};
|
|
45
|
-
return /* @__PURE__ */ jsxs(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, onFocus }) }),
|
|
64
|
-
/* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
65
|
-
/* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: handleReset, children: t("comment.cancel") }),
|
|
66
|
-
/* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-end align-items-center gap-4", children: [
|
|
67
|
-
/* @__PURE__ */ jsx(TextCounter, { content: value, maxLength: options.maxCommentLength }),
|
|
68
|
-
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ jsx(SvgIconSave, {}), disabled: !(content != null && content.length), onClick: () => handleUpdateComment(value), children: t("comment.save") })
|
|
69
|
-
] })
|
|
70
|
-
] })
|
|
71
|
-
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
72
|
-
/* @__PURE__ */ jsx("div", { className: "mt-8 mb-4", children: content }),
|
|
73
|
-
type === "edit" && /* @__PURE__ */ jsxs("div", { className: "ms-n8", children: [
|
|
74
|
-
!replyTo && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: () => handleReplyToComment(comment.id), children: t("comment.reply") }),
|
|
75
|
-
userId === authorId && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: () => {
|
|
76
|
-
handleModifyComment(comment.id), setValue(content);
|
|
77
|
-
}, children: t("comment.edit") }),
|
|
78
|
-
(userId === authorId || (userRights == null ? void 0 : userRights.manager)) && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: () => setIsDeleteModalOpen(!0), children: t("comment.remove") })
|
|
79
|
-
] })
|
|
40
|
+
return /* @__PURE__ */ jsxs("div", { className: `${isEditing ? "border rounded-3 p-12 pb-8 d-flex gap-12 bg-gray-200 my-16" : "border rounded-3 p-12 pb-8 d-flex gap-12 mt-16"}`, children: [
|
|
41
|
+
/* @__PURE__ */ jsx(CommentAvatar, { id: authorId }),
|
|
42
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-fill", children: [
|
|
43
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center gap-12", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(CommentTitle, { children: authorName }),
|
|
45
|
+
/* @__PURE__ */ jsx(BadgeProfile, { profile }),
|
|
46
|
+
/* @__PURE__ */ jsx(CommentDate, { createdAt, updatedAt })
|
|
47
|
+
] }),
|
|
48
|
+
isEditing ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49
|
+
/* @__PURE__ */ jsx("div", { className: "mt-8 mb-4", children: /* @__PURE__ */ jsx("textarea", { id: "update-comment", ref, value, className: "form-control", placeholder: t("comment.placeholder"), maxLength: options.maxCommentLength, onChange: handleChangeContent, rows: 1, style: {
|
|
50
|
+
resize: "none",
|
|
51
|
+
overflow: "hidden"
|
|
52
|
+
}, onFocus }) }),
|
|
53
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
54
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: handleReset, children: t("comment.cancel") }),
|
|
55
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-end align-items-center gap-4", children: [
|
|
56
|
+
/* @__PURE__ */ jsx(TextCounter, { content: value, maxLength: options.maxCommentLength }),
|
|
57
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ jsx(SvgIconSave, {}), disabled: !(content != null && content.length), onClick: () => handleUpdateComment(value), children: t("comment.save") })
|
|
80
58
|
] })
|
|
81
59
|
] })
|
|
82
|
-
] },
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
60
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
61
|
+
/* @__PURE__ */ jsx("div", { className: "mt-8 mb-4", children: content }),
|
|
62
|
+
type === "edit" && /* @__PURE__ */ jsxs("div", { className: "ms-n8", children: [
|
|
63
|
+
userId === authorId && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: () => {
|
|
64
|
+
handleModifyComment(comment.id), setValue(content);
|
|
65
|
+
}, children: t("comment.edit") }),
|
|
66
|
+
(userId === authorId || (userRights == null ? void 0 : userRights.manager)) && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: () => setIsDeleteModalOpen(!0), children: t("comment.remove") })
|
|
67
|
+
] })
|
|
68
|
+
] })
|
|
69
|
+
] }),
|
|
70
|
+
/* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingScreen, { position: !1 }), children: isDeleteModalOpen && /* @__PURE__ */ jsx(DeleteModal, { isOpen: isDeleteModalOpen, onCancel: () => setIsDeleteModalOpen(!1), onSuccess: () => onDeleteComment(id) }) })
|
|
71
|
+
] }, id);
|
|
87
72
|
};
|
|
88
73
|
export {
|
|
89
74
|
Comment
|
|
@@ -5,23 +5,19 @@ import { useAutosizeTextarea } from "../hooks/useAutosizeTextarea.js";
|
|
|
5
5
|
import { useCommentsContext } from "../hooks/useCommentsContext.js";
|
|
6
6
|
import { CommentAvatar } from "./CommentAvatar.js";
|
|
7
7
|
import { TextCounter } from "./TextCounter.js";
|
|
8
|
-
import { useState } from "react";
|
|
9
8
|
import Button from "../../../components/Button/Button.js";
|
|
10
9
|
const CommentForm = ({
|
|
11
|
-
userId
|
|
12
|
-
replyTo
|
|
10
|
+
userId
|
|
13
11
|
}) => {
|
|
14
|
-
const
|
|
12
|
+
const {
|
|
13
|
+
t
|
|
14
|
+
} = useTranslation(), {
|
|
15
|
+
content,
|
|
16
|
+
handleChangeContent,
|
|
15
17
|
handleCreateComment,
|
|
16
18
|
options,
|
|
17
19
|
type
|
|
18
|
-
} = useCommentsContext(), [ref, onFocus] = useAutosizeTextarea()
|
|
19
|
-
t
|
|
20
|
-
} = useTranslation(), handleChangeContent = (event) => {
|
|
21
|
-
setContent(event.target.value);
|
|
22
|
-
}, handleSubmit = () => {
|
|
23
|
-
handleCreateComment(content, replyTo), setContent("");
|
|
24
|
-
};
|
|
20
|
+
} = useCommentsContext(), [ref, onFocus] = useAutosizeTextarea();
|
|
25
21
|
return /* @__PURE__ */ jsx(Fragment, { children: type === "edit" && /* @__PURE__ */ jsxs("div", { className: "border rounded-3 p-12 pb-8 d-flex gap-12 bg-gray-200", children: [
|
|
26
22
|
/* @__PURE__ */ jsx(CommentAvatar, { id: userId }),
|
|
27
23
|
/* @__PURE__ */ jsxs("div", { className: "d-flex flex-column flex-fill gap-4", children: [
|
|
@@ -31,7 +27,7 @@ const CommentForm = ({
|
|
|
31
27
|
} }),
|
|
32
28
|
/* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-end align-items-center gap-4", children: [
|
|
33
29
|
/* @__PURE__ */ jsx(TextCounter, { content, maxLength: options.maxCommentLength }),
|
|
34
|
-
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ jsx(SvgIconSend, {}), disabled: !(content != null && content.length), onClick:
|
|
30
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ jsx(SvgIconSend, {}), disabled: !(content != null && content.length), onClick: () => handleCreateComment(content), children: t("comment.post") })
|
|
35
31
|
] })
|
|
36
32
|
] })
|
|
37
33
|
] }) });
|
|
@@ -6,15 +6,15 @@ function CommentList() {
|
|
|
6
6
|
const {
|
|
7
7
|
user
|
|
8
8
|
} = useEdificeClient(), {
|
|
9
|
-
|
|
9
|
+
comments,
|
|
10
10
|
profiles
|
|
11
11
|
} = useCommentsContext();
|
|
12
|
-
return
|
|
12
|
+
return comments == null ? void 0 : comments.map((comment) => {
|
|
13
13
|
var _a;
|
|
14
14
|
const {
|
|
15
15
|
authorId
|
|
16
16
|
} = comment, profile = ((_a = profiles == null ? void 0 : profiles.find((user2) => (user2 == null ? void 0 : user2.userId) === authorId)) == null ? void 0 : _a.profile) ?? "Guest";
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
+
return /* @__PURE__ */ jsx(Comment, { comment, profile, userId: user == null ? void 0 : user.userId }, comment.id);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
@@ -18,7 +18,3 @@ export declare const DEFAULT_ADD_COMMENTS = 5;
|
|
|
18
18
|
* Limit to display replies of a comment
|
|
19
19
|
*/
|
|
20
20
|
export declare const DEFAULT_MAX_REPLIES = 5;
|
|
21
|
-
/**
|
|
22
|
-
* Number of comments to add when adding more comment in the limited list
|
|
23
|
-
*/
|
|
24
|
-
export declare const DEFAULT_ADD_REPLIES = 5;
|