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