@edifice.io/react 2.5.8-develop-pedago.20260130112637 → 2.5.8-develop-b2school.20260130170800
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 +1 -7
- package/dist/components/Badge/Badge.js +1 -13
- package/dist/components/index.d.ts +0 -2
- package/dist/hooks/useEdificeIcons/useEdificeIcons.d.ts +0 -1
- package/dist/hooks/useEdificeIcons/useEdificeIcons.js +0 -5
- package/dist/icons.js +352 -360
- package/dist/index.js +140 -145
- package/dist/modules/icons/components/index.d.ts +0 -4
- 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/PromotionCard/PromotionCard.d.ts +0 -74
- package/dist/components/PromotionCard/PromotionCard.js +0 -31
- package/dist/components/PromotionCard/PromotionCardBody.d.ts +0 -10
- package/dist/components/PromotionCard/PromotionCardBody.js +0 -15
- package/dist/components/PromotionCard/PromotionCardDescription.d.ts +0 -9
- package/dist/components/PromotionCard/PromotionCardDescription.js +0 -12
- package/dist/components/PromotionCard/PromotionCardFooter.d.ts +0 -9
- package/dist/components/PromotionCard/PromotionCardFooter.js +0 -12
- package/dist/components/PromotionCard/PromotionCardHeader.d.ts +0 -11
- package/dist/components/PromotionCard/PromotionCardHeader.js +0 -17
- package/dist/components/PromotionCard/PromotionCardIcon.d.ts +0 -10
- package/dist/components/PromotionCard/PromotionCardIcon.js +0 -15
- package/dist/components/PromotionCard/PromotionCardTitle.d.ts +0 -9
- package/dist/components/PromotionCard/PromotionCardTitle.js +0 -12
- package/dist/components/PromotionCard/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/icons/components/IconAiFill.d.ts +0 -7
- package/dist/modules/icons/components/IconAiFill.js +0 -12
- package/dist/modules/icons/components/IconExercizerAi.d.ts +0 -7
- package/dist/modules/icons/components/IconExercizerAi.js +0 -14
- package/dist/modules/icons/components/IconLabel.d.ts +0 -7
- package/dist/modules/icons/components/IconLabel.js +0 -12
- package/dist/modules/icons/components/IconTeacher.d.ts +0 -7
- package/dist/modules/icons/components/IconTeacher.js +0 -12
package/dist/index.js
CHANGED
|
@@ -39,78 +39,76 @@ import { default as default38 } from "./components/Loading/Loading.js";
|
|
|
39
39
|
import { default as default39 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
40
40
|
import { default as default40 } from "./components/Logo/Logo.js";
|
|
41
41
|
import { default as default41 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
42
|
-
import { default as default42 } from "./components/
|
|
43
|
-
import { default as default43 } from "./
|
|
44
|
-
import { default as default44 } from "./
|
|
45
|
-
import { default as default45 } from "./
|
|
46
|
-
import { default as default46
|
|
47
|
-
import { default as default47 } from "./
|
|
48
|
-
import { default as default48 } from "./components/
|
|
49
|
-
import { default as default49 } from "./components/
|
|
50
|
-
import { default as default50 } from "./components/
|
|
51
|
-
import { default as default51 } from "./components/
|
|
52
|
-
import { default as default52 } from "./
|
|
53
|
-
import { default as default53 } from "./
|
|
54
|
-
import { default as default54 } from "./modules/modals/ShareModal/
|
|
55
|
-
import { default as default55 } from "./
|
|
56
|
-
import { default as default56 } from "./
|
|
57
|
-
import { default as default57 } from "./components/
|
|
58
|
-
import { default as default58 } from "./components/
|
|
59
|
-
import { default as default59 } from "./components/
|
|
60
|
-
import { default as default60 } from "./components/
|
|
61
|
-
import { default as default61 } from "./components/
|
|
62
|
-
import { default as default62 } from "./components/
|
|
63
|
-
import { default as default63 } from "./components/
|
|
64
|
-
import { default as default64 } from "./components/
|
|
65
|
-
import { default as default65 } from "./
|
|
66
|
-
import { default as default66 } from "./
|
|
67
|
-
import { default as default67 } from "./modules/multimedia/
|
|
68
|
-
import { default as default68 } from "./modules/multimedia/
|
|
69
|
-
import { default as default69 } from "./
|
|
70
|
-
import { default as default70 } from "./modules/multimedia/
|
|
71
|
-
import { default as default71 } from "./
|
|
72
|
-
import { default as default72 } from "./
|
|
73
|
-
import { default as default73 } from "./
|
|
74
|
-
import { default as default74 } from "./hooks/
|
|
75
|
-
import { default as default75 } from "./hooks/
|
|
76
|
-
import { default as default76 } from "./hooks/
|
|
77
|
-
import { default as default77 } from "./hooks/
|
|
78
|
-
import { default as default78 } from "./hooks/
|
|
79
|
-
import { default as default79 } from "./hooks/
|
|
80
|
-
import { default as default80 } from "./hooks/
|
|
81
|
-
import { default as default81 } from "./hooks/
|
|
82
|
-
import { default as default82 } from "./hooks/
|
|
83
|
-
import { default as default83 } from "./hooks/
|
|
84
|
-
import { default as default84 } from "./hooks/
|
|
85
|
-
import { default as default85 } from "./hooks/
|
|
86
|
-
import { default as default86 } from "./hooks/
|
|
87
|
-
import { default as default87 } from "./hooks/
|
|
88
|
-
import { default as default88 } from "./hooks/
|
|
89
|
-
import { default as default89 } from "./hooks/
|
|
90
|
-
import { default as default90 } from "./hooks/
|
|
91
|
-
import { default as default91 } from "./hooks/
|
|
92
|
-
import { default as default92 } from "./hooks/
|
|
93
|
-
import { default as default93 } from "./hooks/
|
|
94
|
-
import { default as default94 } from "./hooks/
|
|
95
|
-
import { default as default95 } from "./hooks/
|
|
96
|
-
import { default as default96 } from "./hooks/
|
|
97
|
-
import { default as default97 } from "./hooks/
|
|
98
|
-
import { default as default98 } from "./
|
|
99
|
-
import { default as default99 } from "./hooks/
|
|
100
|
-
import { default as default100 } from "./hooks/
|
|
101
|
-
import { default as default101 } from "./hooks/
|
|
102
|
-
import { default as default102 } from "./hooks/
|
|
103
|
-
import { default as default103 } from "./hooks/
|
|
104
|
-
import { default as default104 } from "./
|
|
105
|
-
import { default as default105 } from "./hooks/
|
|
106
|
-
import { default as default106 } from "./hooks/
|
|
107
|
-
import { default as default107 } from "./hooks/
|
|
108
|
-
import { default as default108 } from "./hooks/
|
|
109
|
-
import { default as default109 } from "./hooks/
|
|
110
|
-
import {
|
|
111
|
-
import { default as default111 } from "./hooks/
|
|
112
|
-
import { default as default112 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
113
|
-
import { default as default113 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
42
|
+
import { default as default42 } from "./components/Modal/Modal.js";
|
|
43
|
+
import { default as default43 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
44
|
+
import { default as default44 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
45
|
+
import { default as default45 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
46
|
+
import { default as default46 } from "./components/Radio/Radio.js";
|
|
47
|
+
import { default as default47 } from "./components/RadioCard/RadioCard.js";
|
|
48
|
+
import { default as default48 } from "./components/SearchBar/SearchBar.js";
|
|
49
|
+
import { default as default49 } from "./components/Button/SearchButton.js";
|
|
50
|
+
import { default as default50 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
51
|
+
import { default as default51 } from "./components/Select/Select.js";
|
|
52
|
+
import { default as default52 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
53
|
+
import { default as default53 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
54
|
+
import { default as default54 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
55
|
+
import { default as default55 } from "./components/Tree/components/SortableTree.js";
|
|
56
|
+
import { default as default56 } from "./components/StackedGroup/StackedGroup.js";
|
|
57
|
+
import { default as default57 } from "./components/Stepper/Stepper.js";
|
|
58
|
+
import { default as default58 } from "./components/Switch/Switch.js";
|
|
59
|
+
import { default as default59 } from "./components/Table/components/Table.js";
|
|
60
|
+
import { default as default60 } from "./components/TextArea/TextArea.js";
|
|
61
|
+
import { default as default61 } from "./components/Skeleton/TextSkeleton.js";
|
|
62
|
+
import { default as default62 } from "./components/Tooltip/Tooltip.js";
|
|
63
|
+
import { default as default63 } from "./components/Tree/components/Tree.js";
|
|
64
|
+
import { default as default64 } from "./components/TreeView/TreeView.js";
|
|
65
|
+
import { default as default65 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
66
|
+
import { default as default66 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
67
|
+
import { default as default67 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
68
|
+
import { default as default68 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
69
|
+
import { default as default69 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
70
|
+
import { default as default70 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
71
|
+
import { default as default71 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
72
|
+
import { default as default72 } from "./hooks/useBookmark/useBookmark.js";
|
|
73
|
+
import { default as default73 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
74
|
+
import { default as default74 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
75
|
+
import { default as default75 } from "./hooks/useCantoo/useCantoo.js";
|
|
76
|
+
import { default as default76 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
77
|
+
import { default as default77 } from "./hooks/useConversation/useConversation.js";
|
|
78
|
+
import { default as default78 } from "./hooks/useDate/useDate.js";
|
|
79
|
+
import { default as default79 } from "./hooks/useDebounce/useDebounce.js";
|
|
80
|
+
import { default as default80 } from "./hooks/useDirectory/useDirectory.js";
|
|
81
|
+
import { default as default81 } from "./hooks/useDropdown/useDropdown.js";
|
|
82
|
+
import { default as default82 } from "./hooks/useDropzone/useDropzone.js";
|
|
83
|
+
import { default as default83 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
84
|
+
import { default as default84 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
85
|
+
import { default as default85 } from "./hooks/useHover/useHover.js";
|
|
86
|
+
import { default as default86 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
87
|
+
import { default as default87 } from "./hooks/useImage/useImage.js";
|
|
88
|
+
import { default as default88 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
89
|
+
import { default as default89 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
90
|
+
import { default as default90 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
91
|
+
import { default as default91 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
92
|
+
import { default as default92 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
93
|
+
import { default as default93 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
94
|
+
import { default as default94 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
95
|
+
import { default as default95 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
96
|
+
import { default as default96 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
97
|
+
import { default as default97 } from "./hooks/useTitle/useTitle.js";
|
|
98
|
+
import { default as default98 } from "./hooks/useToast/useToast.js";
|
|
99
|
+
import { default as default99 } from "./hooks/useToggle/useToggle.js";
|
|
100
|
+
import { default as default100 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
101
|
+
import { default as default101 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
102
|
+
import { default as default102 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
103
|
+
import { default as default103 } from "./hooks/useUpload/useUpload.js";
|
|
104
|
+
import { default as default104 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
105
|
+
import { default as default105 } from "./hooks/useUser/useUser.js";
|
|
106
|
+
import { default as default106 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
107
|
+
import { default as default107 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
108
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default108 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
109
|
+
import { default as default109 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
110
|
+
import { default as default110 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
111
|
+
import { default as default111 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
114
112
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
115
113
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
116
114
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -198,53 +196,50 @@ export {
|
|
|
198
196
|
default39 as LoadingScreen,
|
|
199
197
|
default40 as Logo,
|
|
200
198
|
default41 as MediaLibrary,
|
|
201
|
-
default42 as MediaViewer,
|
|
202
199
|
Menu,
|
|
203
200
|
MockedProvider,
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
default42 as Modal,
|
|
202
|
+
default43 as OnboardingModal,
|
|
206
203
|
Popover,
|
|
207
204
|
PopoverBody,
|
|
208
205
|
PopoverFooter,
|
|
209
206
|
PopoverHeader,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
default49 as RadioCard,
|
|
207
|
+
default44 as PreventPropagation,
|
|
208
|
+
default45 as PublishModal,
|
|
209
|
+
default46 as Radio,
|
|
210
|
+
default47 as RadioCard,
|
|
215
211
|
ResourceModal,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
default61 as Table,
|
|
212
|
+
default48 as SearchBar,
|
|
213
|
+
default49 as SearchButton,
|
|
214
|
+
default50 as SegmentedControl,
|
|
215
|
+
default51 as Select,
|
|
216
|
+
default52 as ShareBlog,
|
|
217
|
+
default53 as ShareModal,
|
|
218
|
+
default54 as ShareResources,
|
|
219
|
+
default55 as SortableTree,
|
|
220
|
+
default56 as StackedGroup,
|
|
221
|
+
default57 as Stepper,
|
|
222
|
+
default58 as Switch,
|
|
223
|
+
default59 as Table,
|
|
229
224
|
Tabs,
|
|
230
|
-
|
|
231
|
-
|
|
225
|
+
default60 as TextArea,
|
|
226
|
+
default61 as TextSkeleton,
|
|
232
227
|
Toolbar,
|
|
233
|
-
|
|
234
|
-
|
|
228
|
+
default62 as Tooltip,
|
|
229
|
+
default63 as Tree,
|
|
235
230
|
TreeNode,
|
|
236
231
|
TreeNodeFolderWrapper,
|
|
237
|
-
|
|
232
|
+
default64 as TreeView,
|
|
238
233
|
Upload,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
234
|
+
default65 as UploadCard,
|
|
235
|
+
default66 as UploadFiles,
|
|
236
|
+
default67 as VideoEmbed,
|
|
237
|
+
default68 as VideoRecorder,
|
|
238
|
+
default69 as VisuallyHidden,
|
|
244
239
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
245
240
|
WORKSPACE_USER_FOLDER_ID,
|
|
246
|
-
|
|
247
|
-
|
|
241
|
+
default70 as Workspace,
|
|
242
|
+
default71 as WorkspaceFolders,
|
|
248
243
|
addNode,
|
|
249
244
|
arrayUnique,
|
|
250
245
|
buildTree,
|
|
@@ -273,51 +268,51 @@ export {
|
|
|
273
268
|
setRef,
|
|
274
269
|
updateNode,
|
|
275
270
|
updateParentIds,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
271
|
+
default72 as useBookmark,
|
|
272
|
+
default73 as useBreakpoint,
|
|
273
|
+
default74 as useBrowserInfo,
|
|
274
|
+
default75 as useCantoo,
|
|
280
275
|
useCheckable,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
276
|
+
default76 as useClickOutside,
|
|
277
|
+
default77 as useConversation,
|
|
278
|
+
default78 as useDate,
|
|
279
|
+
default79 as useDebounce,
|
|
280
|
+
default80 as useDirectory,
|
|
281
|
+
default81 as useDropdown,
|
|
282
|
+
default82 as useDropzone,
|
|
288
283
|
useDropzoneContext,
|
|
289
284
|
useEdificeClient,
|
|
290
|
-
|
|
285
|
+
default83 as useEdificeIcons,
|
|
291
286
|
useEdificeTheme,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
287
|
+
default84 as useHasWorkflow,
|
|
288
|
+
default85 as useHover,
|
|
289
|
+
default86 as useHttpErrorToast,
|
|
290
|
+
default87 as useImage,
|
|
291
|
+
default88 as useInfiniteScroll,
|
|
292
|
+
default89 as useIsAdmc,
|
|
293
|
+
default90 as useIsAdml,
|
|
294
|
+
default91 as useIsAdmlcOrAdmc,
|
|
295
|
+
default92 as useKeyPress,
|
|
296
|
+
default93 as useLibraryUrl,
|
|
297
|
+
default94 as useMediaLibrary,
|
|
298
|
+
default95 as useScrollToTop,
|
|
299
|
+
default96 as useShareMutation,
|
|
300
|
+
default97 as useTitle,
|
|
301
|
+
default98 as useToast,
|
|
302
|
+
default99 as useToggle,
|
|
303
|
+
default100 as useTrapFocus,
|
|
304
|
+
default101 as useTrashedResource,
|
|
310
305
|
useTreeSortable,
|
|
311
306
|
useTreeView,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
307
|
+
default102 as useUpdateMutation,
|
|
308
|
+
default103 as useUpload,
|
|
309
|
+
default104 as useUploadFiles,
|
|
310
|
+
default105 as useUser,
|
|
311
|
+
default106 as useWorkspaceFile,
|
|
312
|
+
default107 as useWorkspaceFolders,
|
|
313
|
+
default108 as useWorkspaceFoldersTree,
|
|
314
|
+
default109 as useWorkspaceSearch,
|
|
315
|
+
default110 as useXitiTrackPageLoad,
|
|
316
|
+
default111 as useZendeskGuide,
|
|
322
317
|
wrapTreeNode
|
|
323
318
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { default as IconAddUser } from './IconAddUser';
|
|
2
2
|
export { default as IconAdd } from './IconAdd';
|
|
3
3
|
export { default as IconAdjustSettings } from './IconAdjustSettings';
|
|
4
|
-
export { default as IconAiFill } from './IconAiFill';
|
|
5
4
|
export { default as IconAlertCircle } from './IconAlertCircle';
|
|
6
5
|
export { default as IconAlertTriangle } from './IconAlertTriangle';
|
|
7
6
|
export { default as IconAlignCenter } from './IconAlignCenter';
|
|
@@ -45,7 +44,6 @@ export { default as IconDepositeInbox } from './IconDepositeInbox';
|
|
|
45
44
|
export { default as IconDownload } from './IconDownload';
|
|
46
45
|
export { default as IconEdit } from './IconEdit';
|
|
47
46
|
export { default as IconError } from './IconError';
|
|
48
|
-
export { default as IconExercizerAi } from './IconExercizerAi';
|
|
49
47
|
export { default as IconExternalLink } from './IconExternalLink';
|
|
50
48
|
export { default as IconFiles } from './IconFiles';
|
|
51
49
|
export { default as IconFilter } from './IconFilter';
|
|
@@ -72,7 +70,6 @@ export { default as IconImageSizeSmall } from './IconImageSizeSmall';
|
|
|
72
70
|
export { default as IconInbox } from './IconInbox';
|
|
73
71
|
export { default as IconInfoCircle } from './IconInfoCircle';
|
|
74
72
|
export { default as IconInfoRectangle } from './IconInfoRectangle';
|
|
75
|
-
export { default as IconLabel } from './IconLabel';
|
|
76
73
|
export { default as IconLandscape } from './IconLandscape';
|
|
77
74
|
export { default as IconLibrary } from './IconLibrary';
|
|
78
75
|
export { default as IconLink } from './IconLink';
|
|
@@ -146,7 +143,6 @@ export { default as IconSuccessFill } from './IconSuccessFill';
|
|
|
146
143
|
export { default as IconSuccessOutline } from './IconSuccessOutline';
|
|
147
144
|
export { default as IconSuperscript } from './IconSuperscript';
|
|
148
145
|
export { default as IconTable } from './IconTable';
|
|
149
|
-
export { default as IconTeacher } from './IconTeacher';
|
|
150
146
|
export { default as IconTextBold } from './IconTextBold';
|
|
151
147
|
export { default as IconTextColor } from './IconTextColor';
|
|
152
148
|
export { default as IconTextHighlight } from './IconTextHighlight';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.8-develop-
|
|
3
|
+
"version": "2.5.8-develop-b2school.20260130170800",
|
|
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/bootstrap": "2.5.8-develop-
|
|
139
|
-
"@edifice.io/utilities": "2.5.8-develop-
|
|
140
|
-
"@edifice.io/tiptap-extensions": "2.5.8-develop-pedago.20260130112637"
|
|
137
|
+
"@edifice.io/tiptap-extensions": "2.5.8-develop-b2school.20260130170800",
|
|
138
|
+
"@edifice.io/bootstrap": "2.5.8-develop-b2school.20260130170800",
|
|
139
|
+
"@edifice.io/utilities": "2.5.8-develop-b2school.20260130170800"
|
|
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/
|
|
172
|
-
"@edifice.io/
|
|
170
|
+
"@edifice.io/config": "2.5.8-develop-b2school.20260130170800",
|
|
171
|
+
"@edifice.io/client": "2.5.8-develop-b2school.20260130170800"
|
|
173
172
|
},
|
|
174
173
|
"peerDependencies": {
|
|
175
174
|
"@react-spring/web": "^9.7.5",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MediaLibraryType } from 'src/modules/multimedia';
|
|
2
|
-
export interface MediaProps {
|
|
3
|
-
name: string;
|
|
4
|
-
url: string;
|
|
5
|
-
type: MediaLibraryType;
|
|
6
|
-
mimeType?: string;
|
|
7
|
-
}
|
|
8
|
-
interface MediaViewerProps {
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
media: MediaProps[];
|
|
11
|
-
indexMedia?: number;
|
|
12
|
-
}
|
|
13
|
-
declare const MediaViewer: {
|
|
14
|
-
({ onClose, media, indexMedia }: MediaViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
export default MediaViewer;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Carousel } from "antd";
|
|
3
|
-
import ToolbarZoom from "./ToolbarZoom.js";
|
|
4
|
-
import useZoom from "../../hooks/useZoom/useZoom.js";
|
|
5
|
-
import ToolbarViewer from "./ToolbarViewer.js";
|
|
6
|
-
import { useState, useEffect } from "react";
|
|
7
|
-
import { MediaWrapper } from "./MediaWrapper.js";
|
|
8
|
-
import Flex from "../Flex/Flex.js";
|
|
9
|
-
const MediaViewer = ({
|
|
10
|
-
onClose,
|
|
11
|
-
media,
|
|
12
|
-
indexMedia = 0
|
|
13
|
-
}) => {
|
|
14
|
-
const {
|
|
15
|
-
zoomIn,
|
|
16
|
-
zoomOut,
|
|
17
|
-
setScale,
|
|
18
|
-
scale
|
|
19
|
-
} = useZoom(1), [currentIndex, setCurrentIndex] = useState(indexMedia);
|
|
20
|
-
return useEffect(() => {
|
|
21
|
-
setCurrentIndex(indexMedia);
|
|
22
|
-
}, [indexMedia]), /* @__PURE__ */ jsxs("div", { className: "media-viewer", children: [
|
|
23
|
-
/* @__PURE__ */ jsx(ToolbarViewer, { onClose, mediaUrl: media[currentIndex].url, mediaName: media[currentIndex].name, nbMedia: media.length, currentIndex }),
|
|
24
|
-
/* @__PURE__ */ jsx(Flex, { className: "media-viewer-inner-overlay", onClick: onClose, children: /* @__PURE__ */ jsxs("div", { className: "media-viewer-inner", onClick: (e) => e.stopPropagation(), children: [
|
|
25
|
-
/* @__PURE__ */ jsx(Carousel, { initialSlide: indexMedia, dots: !1, arrows: !0, draggable: !0, infinite: !1, afterChange: (current) => {
|
|
26
|
-
setCurrentIndex(current);
|
|
27
|
-
}, beforeChange: () => {
|
|
28
|
-
setScale(1);
|
|
29
|
-
}, children: media.map((item, index) => /* @__PURE__ */ jsx("div", { className: "viewer-slide", children: /* @__PURE__ */ jsx(MediaWrapper, { mediaUrl: item.url, mediaType: item.type, mimeType: item.mimeType, scale: index === currentIndex ? scale : 1 }) }, index)) }),
|
|
30
|
-
/* @__PURE__ */ jsx(ToolbarZoom, { zoomIn, zoomOut })
|
|
31
|
-
] }) })
|
|
32
|
-
] });
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
MediaViewer as default
|
|
36
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MediaLibraryType } from 'src/modules/multimedia';
|
|
2
|
-
export declare const MediaWrapper: ({ mediaUrl, mediaType, mimeType, scale, }: {
|
|
3
|
-
mediaUrl: string;
|
|
4
|
-
mediaType: MediaLibraryType;
|
|
5
|
-
mimeType?: string;
|
|
6
|
-
scale?: number;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import SvgIconTextPage from "../../modules/icons/components/IconTextPage.js";
|
|
3
|
-
import SvgIconLink from "../../modules/icons/components/IconLink.js";
|
|
4
|
-
import SvgIconHeadphone from "../../modules/icons/components/IconHeadphone.js";
|
|
5
|
-
import SvgIconDownload from "../../modules/icons/components/IconDownload.js";
|
|
6
|
-
import SvgIconExternalLink from "../../modules/icons/components/IconExternalLink.js";
|
|
7
|
-
import { useTranslation } from "react-i18next";
|
|
8
|
-
import PdfViewer from "./PdfViewer.js";
|
|
9
|
-
import Flex from "../Flex/Flex.js";
|
|
10
|
-
import Button from "../Button/Button.js";
|
|
11
|
-
import Image from "../Image/Image.js";
|
|
12
|
-
const MediaWrapper = ({
|
|
13
|
-
mediaUrl,
|
|
14
|
-
mediaType,
|
|
15
|
-
mimeType,
|
|
16
|
-
scale
|
|
17
|
-
}) => {
|
|
18
|
-
const {
|
|
19
|
-
t
|
|
20
|
-
} = useTranslation(), imageMediaStyle = {
|
|
21
|
-
flex: "none",
|
|
22
|
-
height: "100%",
|
|
23
|
-
transform: `scale(${scale})`,
|
|
24
|
-
maxHeight: "70vh"
|
|
25
|
-
}, audioStyle = {
|
|
26
|
-
width: "100%",
|
|
27
|
-
maxWidth: "500px"
|
|
28
|
-
}, videoMediaStyle = {
|
|
29
|
-
height: "100%",
|
|
30
|
-
objectFit: "cover",
|
|
31
|
-
transform: `scale(${scale})`
|
|
32
|
-
}, iframeMediaStyle = {
|
|
33
|
-
width: "100%",
|
|
34
|
-
height: "600px",
|
|
35
|
-
maxWidth: "900px",
|
|
36
|
-
transform: `scale(${scale})`
|
|
37
|
-
};
|
|
38
|
-
switch (mediaType) {
|
|
39
|
-
case "image":
|
|
40
|
-
return /* @__PURE__ */ jsx(Image, { className: "rounded-2", src: mediaUrl, alt: mediaType, width: "100%", objectFit: "contain", style: imageMediaStyle });
|
|
41
|
-
case "audio":
|
|
42
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", align: "center", style: {
|
|
43
|
-
height: "200px"
|
|
44
|
-
}, children: [
|
|
45
|
-
/* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", className: "bg-gray-300 h-100 w-100 rounded-2 mb-8", style: {
|
|
46
|
-
maxWidth: "500px"
|
|
47
|
-
}, children: /* @__PURE__ */ jsx(SvgIconHeadphone, { width: 40, height: 40, color: "#B0B0B0" }) }),
|
|
48
|
-
/* @__PURE__ */ jsx("audio", { src: mediaUrl, className: "media-audio", controls: !0, style: audioStyle })
|
|
49
|
-
] });
|
|
50
|
-
case "video":
|
|
51
|
-
return /* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", children: /* @__PURE__ */ jsx("video", { src: mediaUrl, controls: !0, className: "media-video", style: videoMediaStyle }) });
|
|
52
|
-
case "embedder":
|
|
53
|
-
return /* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", children: /* @__PURE__ */ jsx("iframe", { title: "Embedded media content", src: mediaUrl, className: "media-video", style: iframeMediaStyle }) });
|
|
54
|
-
case "hyperlink":
|
|
55
|
-
case "attachment":
|
|
56
|
-
return mimeType && mimeType === "application/pdf" ? /* @__PURE__ */ jsx(PdfViewer, { mediaUrl, scale }) : /* @__PURE__ */ jsxs(Flex, { direction: "column", align: "center", children: [
|
|
57
|
-
/* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", className: "bg-gray-300 w-100 rounded-2 mb-8", style: {
|
|
58
|
-
maxWidth: "500px",
|
|
59
|
-
height: "200px"
|
|
60
|
-
}, children: mediaType === "hyperlink" ? /* @__PURE__ */ jsx(SvgIconLink, { width: 40, height: 40, color: "#B0B0B0" }) : /* @__PURE__ */ jsx(SvgIconTextPage, { width: 40, height: 40, color: "#B0B0B0" }) }),
|
|
61
|
-
/* @__PURE__ */ jsx("a", { className: "w-100 d-flex justify-content-center", href: mediaUrl, download: mediaType !== "hyperlink", target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsx(Button, { className: "w-100", style: {
|
|
62
|
-
height: "40px",
|
|
63
|
-
maxWidth: "500px"
|
|
64
|
-
}, leftIcon: mediaType === "hyperlink" ? /* @__PURE__ */ jsx(SvgIconExternalLink, {}) : /* @__PURE__ */ jsx(SvgIconDownload, {}), color: "tertiary", children: t(mediaType === "hyperlink" ? "mediaWrapper.attachment.open" : "mediaWrapper.attachment.download") }) })
|
|
65
|
-
] });
|
|
66
|
-
default:
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
MediaWrapper
|
|
72
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useRef } from "react";
|
|
3
|
-
import { Document, Page } from "react-pdf";
|
|
4
|
-
import LoadingScreen from "../LoadingScreen/LoadingScreen.js";
|
|
5
|
-
function PdfViewer({
|
|
6
|
-
mediaUrl,
|
|
7
|
-
scale
|
|
8
|
-
}) {
|
|
9
|
-
const [numPages, setNumPages] = useState(null), pagesRef = useRef([]), onDocumentLoadSuccess = ({
|
|
10
|
-
numPages: numPages2
|
|
11
|
-
}) => {
|
|
12
|
-
setNumPages(numPages2);
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ jsx("div", { style: {
|
|
15
|
-
width: `calc(600px * ${scale})`,
|
|
16
|
-
height: "calc(100vh - 52px)",
|
|
17
|
-
overflowY: "auto",
|
|
18
|
-
marginTop: "20px"
|
|
19
|
-
}, children: /* @__PURE__ */ jsx(Document, { file: mediaUrl, onLoadSuccess: onDocumentLoadSuccess, loading: /* @__PURE__ */ jsx(LoadingScreen, {}), children: Array.from(new Array(numPages), (_, index) => /* @__PURE__ */ jsx("div", { ref: (el) => pagesRef.current[index] = el, style: {
|
|
20
|
-
marginBottom: 32,
|
|
21
|
-
transformOrigin: "top center"
|
|
22
|
-
}, children: /* @__PURE__ */ jsx(Page, { className: "pdf-page", pageNumber: index + 1, renderTextLayer: !1, renderAnnotationLayer: !1, width: 600 * (scale ?? 1), loading: /* @__PURE__ */ jsx(LoadingScreen, {}) }) }, index)) }) });
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
PdfViewer as default
|
|
26
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
import SvgIconClose from "../../modules/icons/components/IconClose.js";
|
|
4
|
-
import SvgIconDownload from "../../modules/icons/components/IconDownload.js";
|
|
5
|
-
import SvgIconExternalLink from "../../modules/icons/components/IconExternalLink.js";
|
|
6
|
-
import Flex from "../Flex/Flex.js";
|
|
7
|
-
import IconButton from "../Button/IconButton.js";
|
|
8
|
-
import SmartEllipsis from "../SmartEllipsis/SmartEllipsis.js";
|
|
9
|
-
function ToolbarViewer({
|
|
10
|
-
onClose,
|
|
11
|
-
mediaName,
|
|
12
|
-
mediaUrl,
|
|
13
|
-
nbMedia,
|
|
14
|
-
currentIndex
|
|
15
|
-
}) {
|
|
16
|
-
return useEffect(() => {
|
|
17
|
-
const handleKeyDown = (e) => {
|
|
18
|
-
e.key === "Escape" && onClose();
|
|
19
|
-
};
|
|
20
|
-
return window.addEventListener("keydown", handleKeyDown), () => {
|
|
21
|
-
window.removeEventListener("keydown", handleKeyDown);
|
|
22
|
-
};
|
|
23
|
-
}, [onClose]), /* @__PURE__ */ jsxs(Flex, { className: "media-viewer-toolbar p-8", align: "center", children: [
|
|
24
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "8", align: "center", style: {
|
|
25
|
-
minWidth: "50%"
|
|
26
|
-
}, children: [
|
|
27
|
-
/* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(SvgIconClose, { color: "#fff" }), onClick: onClose, variant: "ghost" }),
|
|
28
|
-
/* @__PURE__ */ jsx(SmartEllipsis, { text: mediaName })
|
|
29
|
-
] }),
|
|
30
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "8", align: "center", justify: "between", className: "w-100", children: [
|
|
31
|
-
nbMedia ? /* @__PURE__ */ jsx("p", { children: `${currentIndex + 1}/${nbMedia} ` }) : /* @__PURE__ */ jsx("p", { children: `${currentIndex + 1}` }),
|
|
32
|
-
mediaUrl && /* @__PURE__ */ jsxs(Flex, { className: "ms-8", gap: "8", align: "center", children: [
|
|
33
|
-
/* @__PURE__ */ jsx("a", { href: mediaUrl, download: !0, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(SvgIconDownload, { color: "#fff" }), variant: "ghost" }) }),
|
|
34
|
-
/* @__PURE__ */ jsx("a", { href: mediaUrl, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(SvgIconExternalLink, { color: "#fff" }), variant: "ghost" }) })
|
|
35
|
-
] })
|
|
36
|
-
] })
|
|
37
|
-
] });
|
|
38
|
-
}
|
|
39
|
-
export {
|
|
40
|
-
ToolbarViewer as default
|
|
41
|
-
};
|