@edifice.io/react 2.5.4-develop-pedago.20251218111023 → 2.5.4-develop-pedago.20260108110738
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/AppIcon/index.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +38 -0
- package/dist/components/Divider/Divider.js +11 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/components/Menu/components/MenuButton.d.ts +2 -0
- package/dist/components/Menu/components/MenuButton.js +13 -4
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +59 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +21 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +6 -2
- package/dist/components/Select/Select.js +10 -4
- package/dist/components/index.d.ts +2 -0
- package/dist/editor.js +40 -36
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDropzone/useDropzone.d.ts +2 -2
- package/dist/hooks/useDropzone/useDropzone.js +20 -5
- package/dist/hooks/useInfiniteScroll/index.d.ts +1 -0
- package/dist/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +33 -0
- package/dist/hooks/useInfiniteScroll/useInfiniteScroll.js +20 -0
- package/dist/icons.js +300 -298
- package/dist/index.js +184 -174
- package/dist/modals.js +8 -6
- package/dist/modules/comments/components/Comment.js +4 -2
- package/dist/modules/comments/components/CommentList.js +1 -1
- package/dist/modules/comments/components/DeleteModal.js +14 -8
- package/dist/modules/editor/components/Editor/EditorPreview.d.ts +14 -0
- package/dist/modules/editor/components/Editor/EditorPreview.js +56 -0
- package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.d.ts +8 -0
- package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.js +24 -0
- package/dist/modules/editor/components/Editor/index.d.ts +2 -0
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +1 -1
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js +4 -3
- package/dist/modules/icons/components/IconClockAlert.d.ts +7 -0
- package/dist/modules/icons/components/IconClockAlert.js +17 -0
- package/dist/modules/icons/components/index.d.ts +1 -0
- package/dist/modules/modals/ShareModal/ShareBookmark.d.ts +1 -1
- package/dist/modules/modals/ShareModal/ShareBookmark.js +5 -2
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +1 -11
- package/dist/modules/modals/ShareModal/ShareModal.js +13 -105
- package/dist/modules/modals/ShareModal/ShareResources.d.ts +174 -0
- package/dist/modules/modals/ShareModal/ShareResources.js +137 -0
- package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +2 -1
- package/dist/modules/modals/ShareModal/hooks/useSearch.js +3 -2
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +12 -5
- package/dist/modules/modals/ShareModal/hooks/useShare.js +20 -13
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +1 -1
- package/dist/modules/modals/ShareModal/index.d.ts +3 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/react-query/index.d.ts +1 -0
- package/dist/utilities/react-query/react-query-utils.d.ts +21 -0
- package/dist/utilities/react-query/react-query-utils.js +13 -0
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -15,95 +15,99 @@ import { default as default15 } from "./components/Checkbox/Checkbox.js";
|
|
|
15
15
|
import { default as default16 } from "./components/ColorPicker/ColorPicker.js";
|
|
16
16
|
import { default as default17 } from "./components/ColorPicker/ColorPickerItem.js";
|
|
17
17
|
import { default as default18 } from "./components/Combobox/Combobox.js";
|
|
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/
|
|
22
|
-
import { default as default23 } from "./components/
|
|
23
|
-
import { default as default24 } from "./components/Form/
|
|
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/
|
|
37
|
-
import { default as default38 } from "./components/
|
|
38
|
-
import { default as default39 } from "./components/
|
|
39
|
-
import { default as default40 } from "./components/
|
|
40
|
-
import { default as default41 } from "./components/
|
|
41
|
-
import { default as default42 } from "./components/
|
|
42
|
-
import { default as default43 } from "./components/
|
|
43
|
-
import { default as default44 } from "./components/
|
|
44
|
-
import { default as default45 } from "./components/
|
|
18
|
+
import { default as default19 } from "./components/Divider/Divider.js";
|
|
19
|
+
import { default as default20 } from "./components/Dropdown/Dropdown.js";
|
|
20
|
+
import { default as default21 } from "./components/Dropzone/Dropzone.js";
|
|
21
|
+
import { default as default22 } from "./components/EmptyScreen/EmptyScreen.js";
|
|
22
|
+
import { default as default23 } from "./components/Flex/Flex.js";
|
|
23
|
+
import { default as default24 } from "./components/Form/FormText.js";
|
|
24
|
+
import { default as default25 } from "./components/Form/FormControl.js";
|
|
25
|
+
import { default as default26 } from "./components/Heading/Heading.js";
|
|
26
|
+
import { default as default27 } from "./components/Image/Image.js";
|
|
27
|
+
import { default as default28 } from "./components/Input/Input.js";
|
|
28
|
+
import { default as default29 } from "./components/Label/Label.js";
|
|
29
|
+
import { default as default30 } from "./components/Loading/Loading.js";
|
|
30
|
+
import { default as default31 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
31
|
+
import { default as default32 } from "./components/Logo/Logo.js";
|
|
32
|
+
import { default as default33 } from "./components/Modal/Modal.js";
|
|
33
|
+
import { default as default34 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
34
|
+
import { default as default35 } from "./components/Radio/Radio.js";
|
|
35
|
+
import { default as default36 } from "./components/RadioCard/RadioCard.js";
|
|
36
|
+
import { default as default37 } from "./components/SearchBar/SearchBar.js";
|
|
37
|
+
import { default as default38 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
38
|
+
import { default as default39 } from "./components/Select/Select.js";
|
|
39
|
+
import { default as default40 } from "./components/Skeleton/ButtonSkeleton.js";
|
|
40
|
+
import { default as default41 } from "./components/Skeleton/TextSkeleton.js";
|
|
41
|
+
import { default as default42 } from "./components/StackedGroup/StackedGroup.js";
|
|
42
|
+
import { default as default43 } from "./components/Stepper/Stepper.js";
|
|
43
|
+
import { default as default44 } from "./components/Switch/Switch.js";
|
|
44
|
+
import { default as default45 } from "./components/Table/components/Table.js";
|
|
45
|
+
import { default as default46 } from "./components/TextArea/TextArea.js";
|
|
46
|
+
import { default as default47 } from "./components/Tooltip/Tooltip.js";
|
|
45
47
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
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
|
|
48
|
+
import { default as default48 } from "./components/Tree/components/SortableTree.js";
|
|
49
|
+
import { default as default49 } from "./components/Tree/components/Tree.js";
|
|
50
|
+
import { default as default50 } from "./components/TreeView/TreeView.js";
|
|
51
|
+
import { default as default51 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
52
|
+
import { default as default52 } from "./hooks/useBookmark/useBookmark.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useCantoo/useCantoo.js";
|
|
56
|
+
import { default as default56 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
57
|
+
import { default as default57 } from "./hooks/useConversation/useConversation.js";
|
|
58
|
+
import { default as default58 } from "./hooks/useDate/useDate.js";
|
|
59
|
+
import { default as default59 } from "./hooks/useDebounce/useDebounce.js";
|
|
60
|
+
import { default as default60 } from "./hooks/useDirectory/useDirectory.js";
|
|
61
|
+
import { default as default61 } from "./hooks/useDropdown/useDropdown.js";
|
|
62
|
+
import { default as default62 } from "./hooks/useDropzone/useDropzone.js";
|
|
63
|
+
import { default as default63 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
64
|
+
import { default as default64 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
65
|
+
import { default as default65 } from "./hooks/useHover/useHover.js";
|
|
64
66
|
import { useHttpErrorToast } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
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 {
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
67
|
+
import { default as default66 } from "./hooks/useImage/useImage.js";
|
|
68
|
+
import { default as default67 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
69
|
+
import { default as default68 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
70
|
+
import { default as default69 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
71
|
+
import { default as default70 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
72
|
+
import { default as default71 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
73
|
+
import { default as default72 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
74
|
+
import { default as default73 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
75
|
+
import { default as default74 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
76
|
+
import { default as default75 } from "./hooks/useTitle/useTitle.js";
|
|
77
|
+
import { default as default76 } from "./hooks/useToast/useToast.js";
|
|
78
|
+
import { default as default77 } from "./hooks/useToggle/useToggle.js";
|
|
79
|
+
import { default as default78 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useUpload/useUpload.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useUser/useUser.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
86
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default85 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
90
|
+
import { default as default89 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
|
|
91
|
+
import { default as default90 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
92
|
+
import { default as default91 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
93
|
+
import { default as default92 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
94
|
+
import { default as default93 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
95
|
+
import { default as default94 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
96
|
+
import { default as default95 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
97
|
+
import { default as default96 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
98
|
+
import { default as default97 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
99
|
+
import { default as default98 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
100
|
+
import { default as default99 } from "./modules/multimedia/Embed/Embed.js";
|
|
101
|
+
import { default as default100 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
102
|
+
import { default as default101 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
103
|
+
import { default as default102 } from "./modules/multimedia/FileCard/FileCard.js";
|
|
104
|
+
import { default as default103 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
105
|
+
import { default as default104 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
106
|
+
import { default as default105 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
107
|
+
import { default as default106 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
108
|
+
import { default as default107 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
109
|
+
import { default as default108 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
110
|
+
import { default as default109 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
107
111
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
108
112
|
import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
|
|
109
113
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -133,6 +137,7 @@ import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemePr
|
|
|
133
137
|
import { MockedProvider } from "./providers/MockedProvider/MockedProvider.js";
|
|
134
138
|
import { checkUserRight } from "./utilities/check-user-rights/check-user-rights.js";
|
|
135
139
|
import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-mapping.js";
|
|
140
|
+
import { invalidateQueriesWithFirstPage } from "./utilities/react-query/react-query-utils.js";
|
|
136
141
|
import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
137
142
|
export {
|
|
138
143
|
AccessiblePalette,
|
|
@@ -142,94 +147,97 @@ export {
|
|
|
142
147
|
default4 as AppHeader,
|
|
143
148
|
default5 as AppIcon,
|
|
144
149
|
default6 as Attachment,
|
|
145
|
-
|
|
150
|
+
default98 as AudioRecorder,
|
|
146
151
|
default7 as Avatar,
|
|
147
152
|
default8 as AvatarGroup,
|
|
148
153
|
default9 as Badge,
|
|
149
|
-
|
|
154
|
+
default92 as BlogPublic,
|
|
150
155
|
default10 as Breadcrumb,
|
|
151
156
|
default11 as Button,
|
|
152
|
-
|
|
157
|
+
default40 as ButtonSkeleton,
|
|
153
158
|
default14 as Card,
|
|
154
159
|
default15 as Checkbox,
|
|
155
160
|
default16 as ColorPicker,
|
|
156
161
|
default17 as ColorPickerItem,
|
|
157
162
|
Column,
|
|
158
163
|
default18 as Combobox,
|
|
159
|
-
|
|
164
|
+
default89 as ConfirmModal,
|
|
160
165
|
DefaultPalette,
|
|
166
|
+
default19 as Divider,
|
|
161
167
|
DndTree,
|
|
162
|
-
|
|
163
|
-
|
|
168
|
+
default20 as Dropdown,
|
|
169
|
+
default21 as Dropzone,
|
|
164
170
|
DropzoneContext,
|
|
165
171
|
EdificeClientContext,
|
|
166
172
|
EdificeClientProvider,
|
|
167
173
|
EdificeThemeContext,
|
|
168
174
|
EdificeThemeProvider,
|
|
169
|
-
|
|
170
|
-
|
|
175
|
+
default99 as Embed,
|
|
176
|
+
default22 as EmptyScreen,
|
|
171
177
|
ExternalLinker,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
default102 as FileCard,
|
|
179
|
+
default23 as Flex,
|
|
180
|
+
default25 as FormControl,
|
|
181
|
+
default24 as FormText,
|
|
176
182
|
Grid,
|
|
177
|
-
|
|
183
|
+
default26 as Heading,
|
|
178
184
|
default12 as IconButton,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
default27 as Image,
|
|
186
|
+
default100 as ImageEditor,
|
|
187
|
+
default101 as ImagePicker,
|
|
188
|
+
default28 as Input,
|
|
183
189
|
InternalLinker,
|
|
184
|
-
|
|
190
|
+
default29 as Label,
|
|
185
191
|
Layout,
|
|
186
192
|
List,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
193
|
+
default30 as Loading,
|
|
194
|
+
default31 as LoadingScreen,
|
|
195
|
+
default32 as Logo,
|
|
196
|
+
default103 as MediaLibrary,
|
|
191
197
|
Menu,
|
|
192
198
|
MockedProvider,
|
|
193
|
-
|
|
194
|
-
|
|
199
|
+
default33 as Modal,
|
|
200
|
+
default90 as OnboardingModal,
|
|
195
201
|
Popover,
|
|
196
202
|
PopoverBody,
|
|
197
203
|
PopoverFooter,
|
|
198
204
|
PopoverHeader,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
205
|
+
default34 as PreventPropagation,
|
|
206
|
+
default91 as PublishModal,
|
|
207
|
+
default35 as Radio,
|
|
208
|
+
default36 as RadioCard,
|
|
203
209
|
ResourceModal,
|
|
204
|
-
|
|
210
|
+
default37 as SearchBar,
|
|
205
211
|
default13 as SearchButton,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
default42 as
|
|
213
|
-
default43 as
|
|
212
|
+
default38 as SegmentedControl,
|
|
213
|
+
default39 as Select,
|
|
214
|
+
default94 as ShareBlog,
|
|
215
|
+
default96 as ShareModal,
|
|
216
|
+
default97 as ShareResources,
|
|
217
|
+
default48 as SortableTree,
|
|
218
|
+
default42 as StackedGroup,
|
|
219
|
+
default43 as Stepper,
|
|
220
|
+
default44 as Switch,
|
|
221
|
+
default45 as Table,
|
|
214
222
|
Tabs,
|
|
215
|
-
|
|
216
|
-
|
|
223
|
+
default46 as TextArea,
|
|
224
|
+
default41 as TextSkeleton,
|
|
217
225
|
Toolbar,
|
|
218
|
-
|
|
219
|
-
|
|
226
|
+
default47 as Tooltip,
|
|
227
|
+
default49 as Tree,
|
|
220
228
|
TreeNode,
|
|
221
229
|
TreeNodeFolderWrapper,
|
|
222
|
-
|
|
230
|
+
default50 as TreeView,
|
|
223
231
|
Upload,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
232
|
+
default105 as UploadCard,
|
|
233
|
+
default104 as UploadFiles,
|
|
234
|
+
default106 as VideoEmbed,
|
|
235
|
+
default107 as VideoRecorder,
|
|
236
|
+
default51 as VisuallyHidden,
|
|
229
237
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
230
238
|
WORKSPACE_USER_FOLDER_ID,
|
|
231
|
-
|
|
232
|
-
|
|
239
|
+
default108 as Workspace,
|
|
240
|
+
default109 as WorkspaceFolders,
|
|
233
241
|
addNode,
|
|
234
242
|
arrayUnique,
|
|
235
243
|
buildTree,
|
|
@@ -251,56 +259,58 @@ export {
|
|
|
251
259
|
getIndicesToUpdate,
|
|
252
260
|
getProjection,
|
|
253
261
|
hasChildren,
|
|
262
|
+
invalidateQueriesWithFirstPage,
|
|
254
263
|
mergeRefs,
|
|
255
264
|
modifyNode,
|
|
256
265
|
moveNode,
|
|
257
266
|
setRef,
|
|
258
267
|
updateNode,
|
|
259
268
|
updateParentIds,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
269
|
+
default52 as useBookmark,
|
|
270
|
+
default53 as useBreakpoint,
|
|
271
|
+
default54 as useBrowserInfo,
|
|
272
|
+
default55 as useCantoo,
|
|
264
273
|
useCheckable,
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
274
|
+
default56 as useClickOutside,
|
|
275
|
+
default57 as useConversation,
|
|
276
|
+
default58 as useDate,
|
|
277
|
+
default59 as useDebounce,
|
|
278
|
+
default60 as useDirectory,
|
|
279
|
+
default61 as useDropdown,
|
|
280
|
+
default62 as useDropzone,
|
|
272
281
|
useDropzoneContext,
|
|
273
282
|
useEdificeClient,
|
|
274
|
-
|
|
283
|
+
default63 as useEdificeIcons,
|
|
275
284
|
useEdificeTheme,
|
|
276
|
-
|
|
277
|
-
|
|
285
|
+
default64 as useHasWorkflow,
|
|
286
|
+
default65 as useHover,
|
|
278
287
|
useHttpErrorToast,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
288
|
+
default66 as useImage,
|
|
289
|
+
default67 as useInfiniteScroll,
|
|
290
|
+
default69 as useIsAdmc,
|
|
291
|
+
default68 as useIsAdml,
|
|
292
|
+
default70 as useIsAdmlcOrAdmc,
|
|
293
|
+
default71 as useKeyPress,
|
|
294
|
+
default72 as useLibraryUrl,
|
|
295
|
+
default73 as useMediaLibrary,
|
|
296
|
+
default74 as useScrollToTop,
|
|
297
|
+
default95 as useShareMutation,
|
|
298
|
+
default75 as useTitle,
|
|
299
|
+
default76 as useToast,
|
|
300
|
+
default77 as useToggle,
|
|
301
|
+
default78 as useTrapFocus,
|
|
302
|
+
default79 as useTrashedResource,
|
|
293
303
|
useTreeSortable,
|
|
294
304
|
useTreeView,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
+
default93 as useUpdateMutation,
|
|
306
|
+
default80 as useUpload,
|
|
307
|
+
default81 as useUploadFiles,
|
|
308
|
+
default82 as useUser,
|
|
309
|
+
default83 as useWorkspaceFile,
|
|
310
|
+
default84 as useWorkspaceFolders,
|
|
311
|
+
default85 as useWorkspaceFoldersTree,
|
|
312
|
+
default86 as useWorkspaceSearch,
|
|
313
|
+
default87 as useXitiTrackPageLoad,
|
|
314
|
+
default88 as useZendeskGuide,
|
|
305
315
|
wrapTreeNode
|
|
306
316
|
};
|
package/dist/modals.js
CHANGED
|
@@ -3,9 +3,10 @@ import { default as default3 } from "./modules/modals/OnboardingModal/Onboarding
|
|
|
3
3
|
import { default as default4 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
4
4
|
import { default as default5 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
5
5
|
import { default as default6 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
6
|
-
import { default as default7 } from "./modules/modals/ShareModal/
|
|
7
|
-
import { default as default8 } from "./modules/modals/ShareModal/
|
|
8
|
-
import { default as default9 } from "./modules/modals/ShareModal/
|
|
6
|
+
import { default as default7 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
7
|
+
import { default as default8 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
8
|
+
import { default as default9 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
9
|
+
import { default as default10 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
9
10
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
10
11
|
export {
|
|
11
12
|
default5 as BlogPublic,
|
|
@@ -13,8 +14,9 @@ export {
|
|
|
13
14
|
default3 as OnboardingModal,
|
|
14
15
|
default4 as PublishModal,
|
|
15
16
|
ResourceModal,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
default7 as ShareBlog,
|
|
18
|
+
default9 as ShareModal,
|
|
19
|
+
default10 as ShareResources,
|
|
20
|
+
default8 as useShareMutation,
|
|
19
21
|
default6 as useUpdateMutation
|
|
20
22
|
};
|
|
@@ -8,9 +8,9 @@ import { BadgeProfile } from "./BadgeProfile.js";
|
|
|
8
8
|
import { CommentAvatar } from "./CommentAvatar.js";
|
|
9
9
|
import { CommentDate } from "./CommentDate.js";
|
|
10
10
|
import { CommentTitle } from "./CommentTitle.js";
|
|
11
|
-
import { TextCounter } from "./TextCounter.js";
|
|
12
11
|
import { CommentDeleted } from "./CommentDeleted.js";
|
|
13
12
|
import { CommentReplies } from "./CommentReplies.js";
|
|
13
|
+
import { TextCounter } from "./TextCounter.js";
|
|
14
14
|
import Button from "../../../components/Button/Button.js";
|
|
15
15
|
import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
16
16
|
const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comment = ({
|
|
@@ -41,6 +41,8 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
|
|
|
41
41
|
handleReplyToComment
|
|
42
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) => {
|
|
43
43
|
resizeTextarea(), setValue(event.target.value);
|
|
44
|
+
}, handleDeleteComment = (id2) => {
|
|
45
|
+
onDeleteComment(id2), setIsDeleteModalOpen(!1);
|
|
44
46
|
};
|
|
45
47
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46
48
|
comment.deleted && hasReplies && !hasAllDeletedReplies && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -83,7 +85,7 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
|
|
|
83
85
|
] })
|
|
84
86
|
] }, id),
|
|
85
87
|
/* @__PURE__ */ jsx(CommentReplies, { parentComment: comment }),
|
|
86
|
-
/* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingScreen, { position: !1 }), children: isDeleteModalOpen && /* @__PURE__ */ jsx(DeleteModal, { isOpen: isDeleteModalOpen, onCancel: () => setIsDeleteModalOpen(!1), onSuccess: () =>
|
|
88
|
+
/* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingScreen, { position: !1 }), children: isDeleteModalOpen && /* @__PURE__ */ jsx(DeleteModal, { isOpen: isDeleteModalOpen, onCancel: () => setIsDeleteModalOpen(!1), onSuccess: () => handleDeleteComment(id) }) })
|
|
87
89
|
] })
|
|
88
90
|
] });
|
|
89
91
|
};
|
|
@@ -14,7 +14,7 @@ function CommentList() {
|
|
|
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("div", { children: /* @__PURE__ */ jsx(Comment, { comment, profile, userId: user == null ? void 0 : user.userId }) }, comment.id);
|
|
17
|
+
return /* @__PURE__ */ jsx("div", { id: `comment-${comment.id}`, children: /* @__PURE__ */ jsx(Comment, { comment, profile, userId: user == null ? void 0 : user.userId }) }, comment.id);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
2
3
|
import Modal from "../../../components/Modal/Modal.js";
|
|
3
4
|
import Button from "../../../components/Button/Button.js";
|
|
4
5
|
const DeleteModal = ({
|
|
5
6
|
isOpen,
|
|
6
7
|
onCancel,
|
|
7
8
|
onSuccess
|
|
8
|
-
}) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */ jsx(
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
}) => {
|
|
10
|
+
const {
|
|
11
|
+
t
|
|
12
|
+
} = useTranslation();
|
|
13
|
+
return /* @__PURE__ */ jsxs(Modal, { size: "sm", isOpen, onModalClose: onCancel, id: "delete-comment-modal", children: [
|
|
14
|
+
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: onCancel, children: t("comment.delete.modal.title") }),
|
|
15
|
+
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx("p", { children: t("comment.delete.modal.body") }) }),
|
|
16
|
+
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Button, { color: "tertiary", onClick: onCancel, type: "button", variant: "ghost", children: t("cancel") }),
|
|
18
|
+
/* @__PURE__ */ jsx(Button, { color: "danger", onClick: onSuccess, type: "button", variant: "filled", children: t("comment.delete.modal.delete") })
|
|
19
|
+
] })
|
|
20
|
+
] });
|
|
21
|
+
};
|
|
16
22
|
export {
|
|
17
23
|
DeleteModal,
|
|
18
24
|
DeleteModal as default
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editor component properties
|
|
3
|
+
*/
|
|
4
|
+
export interface EditorPreviewProps {
|
|
5
|
+
/** Rich content to render. */
|
|
6
|
+
content: string;
|
|
7
|
+
/** Display with or without a border */
|
|
8
|
+
variant?: 'outline' | 'ghost';
|
|
9
|
+
onDetailClick?: () => void;
|
|
10
|
+
onMediaClick?: () => void;
|
|
11
|
+
maxMediaDisplayed?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const EditorPreview: ({ content, variant, onDetailClick, onMediaClick, maxMediaDisplayed, }: EditorPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default EditorPreview;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { getThumbnail } from "@edifice.io/utilities";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
import Image from "../../../../components/Image/Image.js";
|
|
7
|
+
const EditorPreview = ({
|
|
8
|
+
content,
|
|
9
|
+
variant = "outline",
|
|
10
|
+
onDetailClick,
|
|
11
|
+
onMediaClick,
|
|
12
|
+
maxMediaDisplayed = 3
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
t
|
|
16
|
+
} = useTranslation(), [summaryContent, setSummaryContent] = useState(""), [medias, setMedias] = useState([]), borderClass = clsx(variant === "outline" && "border rounded-3 py-12 px-16"), hasMediaCallback = onDetailClick || onMediaClick, handleMediaClick = (e) => {
|
|
17
|
+
onMediaClick && (e.stopPropagation(), onMediaClick());
|
|
18
|
+
};
|
|
19
|
+
return useEffect(() => {
|
|
20
|
+
const contentHTML = content;
|
|
21
|
+
if (contentHTML) {
|
|
22
|
+
const doc = new DOMParser().parseFromString(contentHTML, "text/html"), mediaElements = Array.from(doc.querySelectorAll("img, video, iframe, audio, embed"));
|
|
23
|
+
setMedias(mediaElements.filter((el) => el.tagName.toLowerCase() === "img").map((el) => {
|
|
24
|
+
const image = el;
|
|
25
|
+
return image.src ? {
|
|
26
|
+
url: getThumbnail(image.src, 0, 300),
|
|
27
|
+
alt: image.alt
|
|
28
|
+
} : {
|
|
29
|
+
url: "",
|
|
30
|
+
alt: ""
|
|
31
|
+
};
|
|
32
|
+
})), mediaElements.forEach((el) => {
|
|
33
|
+
var _a;
|
|
34
|
+
return (_a = el.parentNode) == null ? void 0 : _a.removeChild(el);
|
|
35
|
+
}), setSummaryContent(doc.body.textContent || "");
|
|
36
|
+
}
|
|
37
|
+
}, [content]), /* @__PURE__ */ jsxs("div", { className: borderClass, "data-testid": "editor-preview", onClick: onDetailClick, tabIndex: onDetailClick ? -1 : void 0, role: onDetailClick ? "button" : void 0, children: [
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "flex-fill text-truncate text-truncate-2 post-preview-content overflow-hidden", style: {
|
|
39
|
+
overflowWrap: "anywhere"
|
|
40
|
+
}, children: summaryContent }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { onClick: handleMediaClick, tabIndex: hasMediaCallback ? -1 : void 0, role: hasMediaCallback ? "button" : void 0, className: "d-flex align-items-center justify-content-center gap-24 px-32 pt-16", children: medias.slice(0, maxMediaDisplayed).map((media, index) => /* @__PURE__ */ jsxs("div", { className: clsx("position-relative col-12 col-md-4 ", {
|
|
42
|
+
"d-none d-md-block": index >= 1
|
|
43
|
+
}), children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Image, { alt: media.alt, objectFit: "cover", ratio: "16", className: "rounded", loading: "lazy", src: media.url, sizes: "" }),
|
|
45
|
+
(index === 0 || index === 2) && medias.length - (index + 1) > 0 && /* @__PURE__ */ jsx("div", { className: clsx("position-absolute top-0 bottom-0 start-0 end-0 d-flex justify-content-center align-items-center rounded text-light bg-dark bg-opacity-50", {
|
|
46
|
+
"d-flex d-md-none": index === 0,
|
|
47
|
+
"d-none d-md-flex": index === 2
|
|
48
|
+
}), children: t("editor.preview.moreMedia", {
|
|
49
|
+
mediaCount: medias.length - (index + 1)
|
|
50
|
+
}) })
|
|
51
|
+
] }, media.url)) })
|
|
52
|
+
] });
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
EditorPreview as default
|
|
56
|
+
};
|