@edifice.io/react 2.5.5-develop-pedago.20260121100121 → 2.5.5-develop-b2school.20260121153342
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/Badge/Badge.d.ts +4 -7
- package/dist/components/Badge/Badge.js +11 -14
- package/dist/components/DatePicker/DatePicker.d.ts +57 -0
- package/dist/components/DatePicker/DatePicker.js +6 -3
- package/dist/components/Modal/Modal.d.ts +4 -0
- package/dist/components/Modal/Modal.js +13 -12
- package/dist/components/index.d.ts +0 -1
- package/dist/hooks/useConversation/useConversation.js +3 -1
- package/dist/hooks/useEdificeIcons/useEdificeIcons.d.ts +0 -1
- package/dist/hooks/useEdificeIcons/useEdificeIcons.js +0 -5
- package/dist/index.js +154 -156
- package/dist/modules/comments/components/Comment.js +4 -4
- package/dist/modules/comments/components/CommentDate.js +7 -10
- package/dist/modules/comments/components/CommentDeleted.js +1 -1
- package/dist/modules/comments/components/CommentForm.d.ts +1 -1
- package/dist/modules/comments/components/CommentForm.js +6 -6
- package/dist/modules/comments/components/CommentTitle.js +1 -1
- package/dist/modules/comments/provider/CommentProvider.js +4 -4
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +5 -5
- package/dist/modules/multimedia/FileCard/FileCard.js +1 -1
- package/package.json +6 -7
- package/dist/components/MediaViewer/MediaViewer.d.ts +0 -17
- package/dist/components/MediaViewer/MediaViewer.js +0 -36
- package/dist/components/MediaViewer/MediaWrapper.d.ts +0 -7
- package/dist/components/MediaViewer/MediaWrapper.js +0 -72
- package/dist/components/MediaViewer/PdfViewer.d.ts +0 -4
- package/dist/components/MediaViewer/PdfViewer.js +0 -26
- package/dist/components/MediaViewer/ToolbarViewer.d.ts +0 -7
- package/dist/components/MediaViewer/ToolbarViewer.js +0 -41
- package/dist/components/MediaViewer/ToolbarZoom.d.ts +0 -4
- package/dist/components/MediaViewer/ToolbarZoom.js +0 -19
- package/dist/components/MediaViewer/index.d.ts +0 -2
- package/dist/components/SmartEllipsis/SmartEllipsis.d.ts +0 -5
- package/dist/components/SmartEllipsis/SmartEllipsis.js +0 -21
- package/dist/components/SmartEllipsis/index.d.ts +0 -2
- package/dist/hooks/useZoom/index.d.ts +0 -1
- package/dist/hooks/useZoom/useZoom.d.ts +0 -7
- package/dist/hooks/useZoom/useZoom.js +0 -14
- package/dist/modules/comments/components/CommentHeader.d.ts +0 -3
- package/dist/modules/comments/components/CommentHeader.js +0 -8
package/dist/index.js
CHANGED
|
@@ -30,86 +30,85 @@ import { default as default30 } from "./components/Label/Label.js";
|
|
|
30
30
|
import { default as default31 } from "./components/Loading/Loading.js";
|
|
31
31
|
import { default as default32 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
32
32
|
import { default as default33 } from "./components/Logo/Logo.js";
|
|
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/Skeleton/
|
|
42
|
-
import { default as default43 } from "./components/
|
|
43
|
-
import { default as default44 } from "./components/
|
|
44
|
-
import { default as default45 } from "./components/
|
|
45
|
-
import { default as default46 } from "./components/
|
|
46
|
-
import { default as default47 } from "./components/
|
|
47
|
-
import { default as default48 } from "./components/
|
|
48
|
-
import { default as default49 } from "./components/Tooltip/Tooltip.js";
|
|
33
|
+
import { default as default34 } from "./components/Modal/Modal.js";
|
|
34
|
+
import { default as default35 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
35
|
+
import { default as default36 } from "./components/Radio/Radio.js";
|
|
36
|
+
import { default as default37 } from "./components/RadioCard/RadioCard.js";
|
|
37
|
+
import { default as default38 } from "./components/SearchBar/SearchBar.js";
|
|
38
|
+
import { default as default39 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
39
|
+
import { default as default40 } from "./components/Select/Select.js";
|
|
40
|
+
import { default as default41 } from "./components/Skeleton/ButtonSkeleton.js";
|
|
41
|
+
import { default as default42 } from "./components/Skeleton/TextSkeleton.js";
|
|
42
|
+
import { default as default43 } from "./components/StackedGroup/StackedGroup.js";
|
|
43
|
+
import { default as default44 } from "./components/Stepper/Stepper.js";
|
|
44
|
+
import { default as default45 } from "./components/Switch/Switch.js";
|
|
45
|
+
import { default as default46 } from "./components/Table/components/Table.js";
|
|
46
|
+
import { default as default47 } from "./components/TextArea/TextArea.js";
|
|
47
|
+
import { default as default48 } from "./components/Tooltip/Tooltip.js";
|
|
49
48
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
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
|
|
49
|
+
import { default as default49 } from "./components/Tree/components/SortableTree.js";
|
|
50
|
+
import { default as default50 } from "./components/Tree/components/Tree.js";
|
|
51
|
+
import { default as default51 } from "./components/TreeView/TreeView.js";
|
|
52
|
+
import { default as default52 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useBookmark/useBookmark.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
56
|
+
import { default as default56 } from "./hooks/useCantoo/useCantoo.js";
|
|
57
|
+
import { default as default57 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
58
|
+
import { default as default58 } from "./hooks/useConversation/useConversation.js";
|
|
59
|
+
import { default as default59 } from "./hooks/useDate/useDate.js";
|
|
60
|
+
import { default as default60 } from "./hooks/useDebounce/useDebounce.js";
|
|
61
|
+
import { default as default61 } from "./hooks/useDirectory/useDirectory.js";
|
|
62
|
+
import { default as default62 } from "./hooks/useDropdown/useDropdown.js";
|
|
63
|
+
import { default as default63 } from "./hooks/useDropzone/useDropzone.js";
|
|
64
|
+
import { default as default64 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
65
|
+
import { default as default65 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
66
|
+
import { default as default66 } from "./hooks/useHover/useHover.js";
|
|
68
67
|
import { useHttpErrorToast } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
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
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, 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
|
|
107
|
-
import { default as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { default as
|
|
68
|
+
import { default as default67 } from "./hooks/useImage/useImage.js";
|
|
69
|
+
import { default as default68 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
70
|
+
import { default as default69 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
71
|
+
import { default as default70 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
72
|
+
import { default as default71 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
73
|
+
import { default as default72 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
74
|
+
import { default as default73 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
75
|
+
import { default as default74 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
76
|
+
import { default as default75 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
77
|
+
import { default as default76 } from "./hooks/useTitle/useTitle.js";
|
|
78
|
+
import { default as default77 } from "./hooks/useToast/useToast.js";
|
|
79
|
+
import { default as default78 } from "./hooks/useToggle/useToggle.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useUpload/useUpload.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useUser/useUser.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
87
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default86 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
91
|
+
import { default as default90 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
|
|
92
|
+
import { default as default91 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
93
|
+
import { default as default92 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
94
|
+
import { default as default93 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
95
|
+
import { default as default94 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
96
|
+
import { default as default95 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
97
|
+
import { default as default96 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
98
|
+
import { default as default97 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
99
|
+
import { default as default98 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
100
|
+
import { default as default99 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
101
|
+
import { default as default100 } from "./modules/multimedia/Embed/Embed.js";
|
|
102
|
+
import { default as default101 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
103
|
+
import { default as default102 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
104
|
+
import { default as default103 } from "./modules/multimedia/FileCard/FileCard.js";
|
|
105
|
+
import { default as default104 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
106
|
+
import { default as default105 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
107
|
+
import { default as default106 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
108
|
+
import { default as default107 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
109
|
+
import { default as default108 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
110
|
+
import { default as default109 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
111
|
+
import { default as default110 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
113
112
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
114
113
|
import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
|
|
115
114
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -149,21 +148,21 @@ export {
|
|
|
149
148
|
default4 as AppHeader,
|
|
150
149
|
default5 as AppIcon,
|
|
151
150
|
default6 as Attachment,
|
|
152
|
-
|
|
151
|
+
default99 as AudioRecorder,
|
|
153
152
|
default7 as Avatar,
|
|
154
153
|
default8 as AvatarGroup,
|
|
155
154
|
default9 as Badge,
|
|
156
|
-
|
|
155
|
+
default93 as BlogPublic,
|
|
157
156
|
default10 as Breadcrumb,
|
|
158
157
|
default11 as Button,
|
|
159
|
-
|
|
158
|
+
default41 as ButtonSkeleton,
|
|
160
159
|
default14 as Card,
|
|
161
160
|
default15 as Checkbox,
|
|
162
161
|
default16 as ColorPicker,
|
|
163
162
|
default17 as ColorPickerItem,
|
|
164
163
|
Column,
|
|
165
164
|
default18 as Combobox,
|
|
166
|
-
|
|
165
|
+
default90 as ConfirmModal,
|
|
167
166
|
default19 as DatePicker,
|
|
168
167
|
DefaultPalette,
|
|
169
168
|
default20 as Divider,
|
|
@@ -175,10 +174,10 @@ export {
|
|
|
175
174
|
EdificeClientProvider,
|
|
176
175
|
EdificeThemeContext,
|
|
177
176
|
EdificeThemeProvider,
|
|
178
|
-
|
|
177
|
+
default100 as Embed,
|
|
179
178
|
default23 as EmptyScreen,
|
|
180
179
|
ExternalLinker,
|
|
181
|
-
|
|
180
|
+
default103 as FileCard,
|
|
182
181
|
default24 as Flex,
|
|
183
182
|
default26 as FormControl,
|
|
184
183
|
default25 as FormText,
|
|
@@ -186,8 +185,8 @@ export {
|
|
|
186
185
|
default27 as Heading,
|
|
187
186
|
default12 as IconButton,
|
|
188
187
|
default28 as Image,
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
default101 as ImageEditor,
|
|
189
|
+
default102 as ImagePicker,
|
|
191
190
|
default29 as Input,
|
|
192
191
|
InternalLinker,
|
|
193
192
|
default30 as Label,
|
|
@@ -196,52 +195,51 @@ export {
|
|
|
196
195
|
default31 as Loading,
|
|
197
196
|
default32 as LoadingScreen,
|
|
198
197
|
default33 as Logo,
|
|
199
|
-
|
|
200
|
-
default34 as MediaViewer,
|
|
198
|
+
default104 as MediaLibrary,
|
|
201
199
|
Menu,
|
|
202
200
|
MockedProvider,
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
default34 as Modal,
|
|
202
|
+
default91 as OnboardingModal,
|
|
205
203
|
Popover,
|
|
206
204
|
PopoverBody,
|
|
207
205
|
PopoverFooter,
|
|
208
206
|
PopoverHeader,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
207
|
+
default35 as PreventPropagation,
|
|
208
|
+
default92 as PublishModal,
|
|
209
|
+
default36 as Radio,
|
|
210
|
+
default37 as RadioCard,
|
|
213
211
|
ResourceModal,
|
|
214
|
-
|
|
212
|
+
default38 as SearchBar,
|
|
215
213
|
default13 as SearchButton,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
214
|
+
default39 as SegmentedControl,
|
|
215
|
+
default40 as Select,
|
|
216
|
+
default95 as ShareBlog,
|
|
217
|
+
default97 as ShareModal,
|
|
218
|
+
default98 as ShareResources,
|
|
219
|
+
default49 as SortableTree,
|
|
220
|
+
default43 as StackedGroup,
|
|
221
|
+
default44 as Stepper,
|
|
222
|
+
default45 as Switch,
|
|
223
|
+
default46 as Table,
|
|
226
224
|
Tabs,
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
default47 as TextArea,
|
|
226
|
+
default42 as TextSkeleton,
|
|
229
227
|
Toolbar,
|
|
230
|
-
|
|
231
|
-
|
|
228
|
+
default48 as Tooltip,
|
|
229
|
+
default50 as Tree,
|
|
232
230
|
TreeNode,
|
|
233
231
|
TreeNodeFolderWrapper,
|
|
234
|
-
|
|
232
|
+
default51 as TreeView,
|
|
235
233
|
Upload,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
234
|
+
default106 as UploadCard,
|
|
235
|
+
default105 as UploadFiles,
|
|
236
|
+
default107 as VideoEmbed,
|
|
237
|
+
default108 as VideoRecorder,
|
|
238
|
+
default52 as VisuallyHidden,
|
|
241
239
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
242
240
|
WORKSPACE_USER_FOLDER_ID,
|
|
243
|
-
|
|
244
|
-
|
|
241
|
+
default109 as Workspace,
|
|
242
|
+
default110 as WorkspaceFolders,
|
|
245
243
|
addNode,
|
|
246
244
|
arrayUnique,
|
|
247
245
|
buildTree,
|
|
@@ -270,51 +268,51 @@ export {
|
|
|
270
268
|
setRef,
|
|
271
269
|
updateNode,
|
|
272
270
|
updateParentIds,
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
default53 as useBookmark,
|
|
272
|
+
default54 as useBreakpoint,
|
|
273
|
+
default55 as useBrowserInfo,
|
|
274
|
+
default56 as useCantoo,
|
|
277
275
|
useCheckable,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
276
|
+
default57 as useClickOutside,
|
|
277
|
+
default58 as useConversation,
|
|
278
|
+
default59 as useDate,
|
|
279
|
+
default60 as useDebounce,
|
|
280
|
+
default61 as useDirectory,
|
|
281
|
+
default62 as useDropdown,
|
|
282
|
+
default63 as useDropzone,
|
|
285
283
|
useDropzoneContext,
|
|
286
284
|
useEdificeClient,
|
|
287
|
-
|
|
285
|
+
default64 as useEdificeIcons,
|
|
288
286
|
useEdificeTheme,
|
|
289
|
-
|
|
290
|
-
|
|
287
|
+
default65 as useHasWorkflow,
|
|
288
|
+
default66 as useHover,
|
|
291
289
|
useHttpErrorToast,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
290
|
+
default67 as useImage,
|
|
291
|
+
default68 as useInfiniteScroll,
|
|
292
|
+
default70 as useIsAdmc,
|
|
293
|
+
default69 as useIsAdml,
|
|
294
|
+
default71 as useIsAdmlcOrAdmc,
|
|
295
|
+
default72 as useKeyPress,
|
|
296
|
+
default73 as useLibraryUrl,
|
|
297
|
+
default74 as useMediaLibrary,
|
|
298
|
+
default75 as useScrollToTop,
|
|
299
|
+
default96 as useShareMutation,
|
|
300
|
+
default76 as useTitle,
|
|
301
|
+
default77 as useToast,
|
|
302
|
+
default78 as useToggle,
|
|
303
|
+
default79 as useTrapFocus,
|
|
304
|
+
default80 as useTrashedResource,
|
|
307
305
|
useTreeSortable,
|
|
308
306
|
useTreeView,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
307
|
+
default94 as useUpdateMutation,
|
|
308
|
+
default81 as useUpload,
|
|
309
|
+
default82 as useUploadFiles,
|
|
310
|
+
default83 as useUser,
|
|
311
|
+
default84 as useWorkspaceFile,
|
|
312
|
+
default85 as useWorkspaceFolders,
|
|
313
|
+
default86 as useWorkspaceFoldersTree,
|
|
314
|
+
default87 as useWorkspaceSearch,
|
|
315
|
+
default88 as useXitiTrackPageLoad,
|
|
316
|
+
default89 as useZendeskGuide,
|
|
319
317
|
wrapTreeNode
|
|
320
318
|
};
|
|
@@ -50,7 +50,7 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
|
|
|
50
50
|
/* @__PURE__ */ jsx(CommentReplies, { parentComment: comment })
|
|
51
51
|
] }),
|
|
52
52
|
!comment.deleted && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
|
-
/* @__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: [
|
|
53
|
+
/* @__PURE__ */ jsxs("div", { "data-testid": "div-comment-read", 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: [
|
|
54
54
|
/* @__PURE__ */ jsx(CommentAvatar, { id: authorId }),
|
|
55
55
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-fill", children: [
|
|
56
56
|
/* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center gap-12", children: [
|
|
@@ -67,7 +67,7 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
|
|
|
67
67
|
/* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: handleReset, children: t("comment.cancel") }),
|
|
68
68
|
/* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-end align-items-center gap-4", children: [
|
|
69
69
|
/* @__PURE__ */ jsx(TextCounter, { content: value, maxLength: options.maxCommentLength }),
|
|
70
|
-
/* @__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") })
|
|
70
|
+
/* @__PURE__ */ jsx(Button, { "data-testid": "comment-save", type: "submit", variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ jsx(SvgIconSave, {}), disabled: !(content != null && content.length), onClick: () => handleUpdateComment(value), children: t("comment.save") })
|
|
71
71
|
] })
|
|
72
72
|
] })
|
|
73
73
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -76,10 +76,10 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
|
|
|
76
76
|
}, children: content }),
|
|
77
77
|
type === "edit" && /* @__PURE__ */ jsxs("div", { className: "ms-n8", children: [
|
|
78
78
|
!replyTo && options.allowReplies && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: () => handleReplyToComment(comment.id), children: t("comment.reply") }),
|
|
79
|
-
userId === authorId && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: () => {
|
|
79
|
+
userId === authorId && /* @__PURE__ */ jsx(Button, { "data-testid": "comment-edit", variant: "ghost", color: "tertiary", size: "sm", onClick: () => {
|
|
80
80
|
handleModifyComment(comment.id), setValue(content);
|
|
81
81
|
}, children: t("comment.edit") }),
|
|
82
|
-
(userId === authorId || (userRights == null ? void 0 : userRights.manager)) && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", size: "sm", onClick: () => setIsDeleteModalOpen(!0), children: t("comment.remove") })
|
|
82
|
+
(userId === authorId || (userRights == null ? void 0 : userRights.manager)) && /* @__PURE__ */ jsx(Button, { "data-testid": "comment-delete", variant: "ghost", color: "tertiary", size: "sm", onClick: () => setIsDeleteModalOpen(!0), children: t("comment.remove") })
|
|
83
83
|
] })
|
|
84
84
|
] })
|
|
85
85
|
] })
|
|
@@ -9,17 +9,14 @@ const CommentDate = ({
|
|
|
9
9
|
fromNow
|
|
10
10
|
} = useDate(), {
|
|
11
11
|
t
|
|
12
|
-
} = useTranslation()
|
|
13
|
-
|
|
14
|
-
}), getUpdatedDate = (date) => t("comment.update.date", {
|
|
15
|
-
date: fromNow(date)
|
|
16
|
-
});
|
|
17
|
-
return updatedAt ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12
|
+
} = useTranslation();
|
|
13
|
+
return updatedAt || createdAt ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
14
|
/* @__PURE__ */ jsx("span", { className: "small text-gray-700", children: "|" }),
|
|
19
|
-
/* @__PURE__ */ jsx("span", { className: "small text-gray-700", children:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
/* @__PURE__ */ jsx("span", { "data-testid": "comment-info-date", className: "small text-gray-700", children: updatedAt ? ((date) => t("comment.update.date", {
|
|
16
|
+
date: fromNow(date)
|
|
17
|
+
}))(updatedAt) : ((date) => t("comment.publish.date", {
|
|
18
|
+
date: fromNow(date)
|
|
19
|
+
}))(createdAt) })
|
|
23
20
|
] }) : null;
|
|
24
21
|
};
|
|
25
22
|
export {
|
|
@@ -4,7 +4,7 @@ const CommentDeleted = () => {
|
|
|
4
4
|
const {
|
|
5
5
|
t
|
|
6
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") });
|
|
7
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": "div-comment-deleted", className: "border rounded-3 p-12 pb-8 d-flex gap-12 bg-gray-200 my-16", children: t("comment.deleted") });
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
CommentDeleted
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
2
3
|
import { useTranslation } from "react-i18next";
|
|
3
4
|
import SvgIconSend from "../../icons/components/IconSend.js";
|
|
4
5
|
import { useAutosizeTextarea } from "../hooks/useAutosizeTextarea.js";
|
|
5
6
|
import { useCommentsContext } from "../hooks/useCommentsContext.js";
|
|
6
7
|
import { CommentAvatar } from "./CommentAvatar.js";
|
|
7
8
|
import { TextCounter } from "./TextCounter.js";
|
|
8
|
-
import { useState } from "react";
|
|
9
9
|
import Button from "../../../components/Button/Button.js";
|
|
10
10
|
const CommentForm = ({
|
|
11
11
|
userId,
|
|
@@ -22,19 +22,19 @@ const CommentForm = ({
|
|
|
22
22
|
}, handleSubmit = () => {
|
|
23
23
|
handleCreateComment(content, replyTo), setContent("");
|
|
24
24
|
};
|
|
25
|
-
return
|
|
25
|
+
return type === "edit" && /* @__PURE__ */ jsxs("div", { "data-testid": "div-comment-create", className: "border rounded-3 p-12 pb-8 d-flex gap-12 bg-gray-200 d-print-none", children: [
|
|
26
26
|
/* @__PURE__ */ jsx(CommentAvatar, { id: userId }),
|
|
27
27
|
/* @__PURE__ */ jsxs("div", { className: "d-flex flex-column flex-fill gap-4", children: [
|
|
28
|
-
/* @__PURE__ */ jsx("textarea", { id: "add-comment", ref, value: content, className: "form-control", placeholder: t("comment.placeholder.textarea"), maxLength: options.maxCommentLength, onChange: handleChangeContent, onFocus, rows: 1, style: {
|
|
28
|
+
/* @__PURE__ */ jsx("textarea", { id: "add-comment", "data-testid": "comment-form", ref, value: content, className: "form-control", placeholder: t("comment.placeholder.textarea"), maxLength: options.maxCommentLength, onChange: handleChangeContent, onFocus, rows: 1, style: {
|
|
29
29
|
resize: "none",
|
|
30
30
|
overflow: "hidden"
|
|
31
31
|
} }),
|
|
32
32
|
/* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-end align-items-center gap-4", children: [
|
|
33
33
|
/* @__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: handleSubmit, children: t("comment.post") })
|
|
34
|
+
/* @__PURE__ */ jsx(Button, { "data-testid": "comment-publish", type: "submit", variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ jsx(SvgIconSend, {}), disabled: !(content != null && content.length), onClick: handleSubmit, children: t("comment.post") })
|
|
35
35
|
] })
|
|
36
36
|
] })
|
|
37
|
-
] })
|
|
37
|
+
] });
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
40
40
|
CommentForm
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
const CommentTitle = ({
|
|
3
3
|
children
|
|
4
|
-
}) => /* @__PURE__ */ jsx("span", { className: "small text-gray-800", children });
|
|
4
|
+
}) => /* @__PURE__ */ jsx("span", { "data-testid": "comment-info-author", className: "small text-gray-800", children });
|
|
5
5
|
export {
|
|
6
6
|
CommentTitle
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { CommentForm } from "../components/CommentForm.js";
|
|
4
|
-
import { CommentHeader } from "../components/CommentHeader.js";
|
|
5
4
|
import { CommentList } from "../components/CommentList.js";
|
|
6
5
|
import { DEFAULT_ALLOW_REPLIES, DEFAULT_ADD_REPLIES, DEFAULT_MAX_REPLIES, DEFAULT_ADD_COMMENTS, DEFAULT_MAX_COMMENTS, DEFAULT_MAX_REPLY_LENGTH, DEFAULT_MAX_COMMENT_LENGTH } from "../constants.js";
|
|
7
6
|
import { CommentContext } from "../context/Context.js";
|
|
8
7
|
import { useComments } from "../hooks/useComments.js";
|
|
8
|
+
import Heading from "../../../components/Heading/Heading.js";
|
|
9
9
|
import Button from "../../../components/Button/Button.js";
|
|
10
10
|
import EmptyScreen from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
11
11
|
const CommentProvider = ({
|
|
@@ -71,15 +71,15 @@ const CommentProvider = ({
|
|
|
71
71
|
[displayedComments, editCommentId, profilesQueries, options]
|
|
72
72
|
);
|
|
73
73
|
return /* @__PURE__ */ jsx(CommentContext.Provider, { value: values, children: /* @__PURE__ */ jsxs("div", { className: "my-24", children: [
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
74
|
+
/* @__PURE__ */ jsx(Heading, { "data-testid": "comments-info-count-text", level: "h3", headingStyle: "h3", className: displayedComments.length === 0 ? "d-print-none" : "", children: title }),
|
|
75
75
|
/* @__PURE__ */ jsxs("div", { className: "my-24", children: [
|
|
76
76
|
user && /* @__PURE__ */ jsx(CommentForm, { userId: user.userId }),
|
|
77
|
-
profilesQueries.isLoading
|
|
77
|
+
!profilesQueries.isLoading && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
78
78
|
/* @__PURE__ */ jsx(CommentList, {}),
|
|
79
79
|
showMoreComments && /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", onClick: handleMoreComments, className: "my-16", children: t("comment.more") })
|
|
80
80
|
] })
|
|
81
81
|
] }),
|
|
82
|
-
!displayedComments.length && type === "edit" && /* @__PURE__ */ jsxs("div", { className: "comments-emptyscreen", children: [
|
|
82
|
+
!displayedComments.length && type === "edit" && /* @__PURE__ */ jsxs("div", { className: "comments-emptyscreen d-print-none", children: [
|
|
83
83
|
/* @__PURE__ */ jsx("div", { className: "comments-emptyscreen-wrapper", children: /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: emptyscreenPath, size: 150 }) }),
|
|
84
84
|
/* @__PURE__ */ jsx("p", { children: t("comment.emptyscreen") })
|
|
85
85
|
] })
|
|
@@ -44,7 +44,7 @@ const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
|
44
44
|
}, handleCloseWithoutPreference = () => {
|
|
45
45
|
setIsOpen(!1), setSwiperprogress(0);
|
|
46
46
|
};
|
|
47
|
-
return /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: handleCloseWithoutPreference, children: [
|
|
47
|
+
return /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "onboarding-modal", "data-testid": "modal-onboarding", size: "md", isOpen, focusId: "nextButtonId", onModalClose: handleCloseWithoutPreference, children: [
|
|
48
48
|
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: handleCloseWithoutPreference, centered: !0, children: t(currentTitle || "explorer.modal.onboarding.trash.title") }),
|
|
49
49
|
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(Swiper, { modules: [Pagination], onSwiper: (swiper) => {
|
|
50
50
|
setSwiperInstance(swiper);
|
|
@@ -59,10 +59,10 @@ const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
|
59
59
|
} })
|
|
60
60
|
] }, index)) }) }),
|
|
61
61
|
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
62
|
-
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick: handleCloseWithoutPreference, children: t("explorer.modal.onboarding.trash.later") }),
|
|
63
|
-
swiperProgress > 0 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "outline", onClick: () => swiperInstance.slidePrev(), children: t(prevText || "explorer.modal.onboarding.trash.prev") }),
|
|
64
|
-
swiperProgress < 1 && /* @__PURE__ */ jsx(Button, { id: "nextButtonId", type: "button", color: "primary", variant: "filled", onClick: () => swiperInstance.slideNext(), children: t(nextText || "explorer.modal.onboarding.trash.next") }),
|
|
65
|
-
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", onClick: () => {
|
|
62
|
+
/* @__PURE__ */ jsx(Button, { "data-testid": "modal-onboarding-later", type: "button", color: "tertiary", variant: "ghost", onClick: handleCloseWithoutPreference, children: t("explorer.modal.onboarding.trash.later") }),
|
|
63
|
+
swiperProgress > 0 && /* @__PURE__ */ jsx(Button, { "data-testid": "modal-onboarding-previous", type: "button", color: "primary", variant: "outline", onClick: () => swiperInstance.slidePrev(), children: t(prevText || "explorer.modal.onboarding.trash.prev") }),
|
|
64
|
+
swiperProgress < 1 && /* @__PURE__ */ jsx(Button, { id: "nextButtonId", "data-testid": "modal-onboarding-next", type: "button", color: "primary", variant: "filled", onClick: () => swiperInstance.slideNext(), children: t(nextText || "explorer.modal.onboarding.trash.next") }),
|
|
65
|
+
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { "data-testid": "modal-onboarding-close", type: "button", color: "primary", variant: "filled", onClick: () => {
|
|
66
66
|
isOnboarding ? handleCloseWithPreference() : handleCloseWithoutPreference();
|
|
67
67
|
}, children: t(closeText || "explorer.modal.onboarding.trash.close") })
|
|
68
68
|
] })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.5-develop-
|
|
3
|
+
"version": "2.5.5-develop-b2school.20260121153342",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -134,10 +134,9 @@
|
|
|
134
134
|
"react-slugify": "^3.0.3",
|
|
135
135
|
"swiper": "^10.1.0",
|
|
136
136
|
"ua-parser-js": "^1.0.36",
|
|
137
|
-
"
|
|
138
|
-
"@edifice.io/
|
|
139
|
-
"@edifice.io/
|
|
140
|
-
"@edifice.io/utilities": "2.5.5-develop-pedago.20260121100121"
|
|
137
|
+
"@edifice.io/bootstrap": "2.5.5-develop-b2school.20260121153342",
|
|
138
|
+
"@edifice.io/tiptap-extensions": "2.5.5-develop-b2school.20260121153342",
|
|
139
|
+
"@edifice.io/utilities": "2.5.5-develop-b2school.20260121153342"
|
|
141
140
|
},
|
|
142
141
|
"devDependencies": {
|
|
143
142
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -168,8 +167,8 @@
|
|
|
168
167
|
"vite": "^5.4.11",
|
|
169
168
|
"vite-plugin-dts": "^4.1.0",
|
|
170
169
|
"vite-tsconfig-paths": "^5.0.1",
|
|
171
|
-
"@edifice.io/client": "2.5.5-develop-
|
|
172
|
-
"@edifice.io/config": "2.5.5-develop-
|
|
170
|
+
"@edifice.io/client": "2.5.5-develop-b2school.20260121153342",
|
|
171
|
+
"@edifice.io/config": "2.5.5-develop-b2school.20260121153342"
|
|
173
172
|
},
|
|
174
173
|
"peerDependencies": {
|
|
175
174
|
"@react-spring/web": "^9.7.5",
|