@edifice.io/react 2.6.9-develop-pedago.20261013143657 → 2.6.9-develop-integration.20261014184332
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/RadioTile/RadioTile.d.ts +35 -0
- package/dist/components/RadioTile/RadioTile.js +22 -0
- package/dist/components/RadioTile/index.d.ts +2 -0
- package/dist/components/Tree/utilities/tree.js +21 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useGoogleDriveSearch/index.d.ts +1 -0
- package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.d.ts +14 -0
- package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.js +60 -0
- package/dist/hooks/useNextcloudSearch/index.d.ts +1 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +14 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +64 -0
- package/dist/index.js +196 -182
- package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.d.ts +25 -0
- package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.js +102 -0
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +25 -0
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +102 -0
- package/dist/modules/multimedia/FileCard/index.d.ts +4 -0
- package/dist/modules/multimedia/GoogleDrive/GoogleDrive.d.ts +24 -0
- package/dist/modules/multimedia/GoogleDrive/GoogleDrive.js +100 -0
- package/dist/modules/multimedia/GoogleDrive/index.d.ts +2 -0
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +7 -1
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -4
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +48 -14
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +0 -4
- package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.js +61 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +48 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -2
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +0 -3
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +2 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +4 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +24 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +124 -0
- package/dist/modules/multimedia/Nextcloud/index.d.ts +2 -0
- package/dist/modules/multimedia/Workspace/Workspace.js +8 -5
- package/dist/modules/multimedia/index.d.ts +2 -0
- package/dist/multimedia.js +26 -18
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -30,95 +30,102 @@ import { default as default28 } from "./modules/multimedia/FileCard/FileCard.js"
|
|
|
30
30
|
import { default as default29 } from "./components/Flex/Flex.js";
|
|
31
31
|
import { default as default30 } from "./components/Form/FormControl.js";
|
|
32
32
|
import { default as default31 } from "./components/Form/FormText.js";
|
|
33
|
-
import { default as default32 } from "./
|
|
34
|
-
import { default as default33 } from "./
|
|
35
|
-
import { default as default34 } from "./components/
|
|
36
|
-
import { default as default35 } from "./
|
|
37
|
-
import { default as default36 } from "./
|
|
38
|
-
import { default as default37 } from "./components/
|
|
39
|
-
import { default as default38 } from "./
|
|
40
|
-
import { default as default39 } from "./components/
|
|
41
|
-
import { default as default40 } from "./components/
|
|
42
|
-
import { default as default41 } from "./components/
|
|
43
|
-
import { default as default42 } from "./components/
|
|
44
|
-
import { default as default43 } from "./components/
|
|
45
|
-
import { default as default44 } from "./
|
|
46
|
-
import { default as default45 } from "./components/
|
|
47
|
-
import { default as default46 } from "./
|
|
48
|
-
import { default as default47 } from "./components/
|
|
49
|
-
import { default as default48 } from "./
|
|
50
|
-
import { default as default49 } from "./components/
|
|
51
|
-
import { default as default50 } from "./
|
|
52
|
-
import { default as default51
|
|
53
|
-
import { default as default52 } from "./modules/modals/
|
|
54
|
-
import { default as default53 } from "./components/
|
|
55
|
-
import { default as default54 } from "./components/
|
|
56
|
-
import { default as default55 } from "./components/
|
|
57
|
-
import { default as default56 } from "./
|
|
58
|
-
import { default as default57 } from "./components/
|
|
59
|
-
import { default as default58 } from "./components/
|
|
60
|
-
import { default as default59 } from "./
|
|
61
|
-
import { default as default60 } from "./
|
|
62
|
-
import { default as default61 } from "./
|
|
63
|
-
import { default as default62 } from "./components/
|
|
64
|
-
import { default as default63 } from "./components/
|
|
65
|
-
import { default as default64 } from "./
|
|
66
|
-
import { default as default65 } from "./
|
|
67
|
-
import { default as default66 } from "./
|
|
68
|
-
import { default as default67 } from "./components/
|
|
69
|
-
import { default as default68 } from "./components/
|
|
70
|
-
import { default as default69 } from "./components/
|
|
71
|
-
import { default as default70 } from "./components/
|
|
72
|
-
import { default as default71 } from "./components/
|
|
73
|
-
import { default as default72 } from "./
|
|
74
|
-
import { default as default73 } from "./
|
|
75
|
-
import { default as default74 } from "./
|
|
76
|
-
import { default as default75 } from "./
|
|
77
|
-
import { default as default76 } from "./components/
|
|
78
|
-
import { default as default77 } from "./modules/multimedia/
|
|
79
|
-
import { default as default78 } from "./modules/multimedia/
|
|
80
|
-
import { default as default79 } from "./
|
|
81
|
-
import { default as default80 } from "./
|
|
82
|
-
import { default as default81 } from "./
|
|
83
|
-
import { default as default82 } from "./
|
|
84
|
-
import { default as default83 } from "./
|
|
85
|
-
import { default as default84 } from "./hooks/
|
|
86
|
-
import { default as default85 } from "./hooks/
|
|
87
|
-
import { default as default86 } from "./hooks/
|
|
88
|
-
import { default as default87 } from "./hooks/
|
|
89
|
-
import { default as default88 } from "./hooks/
|
|
90
|
-
import { default as default89 } from "./hooks/
|
|
91
|
-
import { default as default90 } from "./hooks/
|
|
92
|
-
import { default as default91 } from "./hooks/
|
|
93
|
-
import { default as default92 } from "./hooks/
|
|
94
|
-
import { default as default93 } from "./hooks/
|
|
95
|
-
import { default as default94 } from "./hooks/
|
|
96
|
-
import { default as default95 } from "./hooks/
|
|
97
|
-
import { default as default96 } from "./hooks/
|
|
98
|
-
import { default as default97 } from "./hooks/
|
|
99
|
-
import { default as default98 } from "./hooks/
|
|
100
|
-
import { default as default99 } from "./hooks/
|
|
101
|
-
import { default as default100 } from "./hooks/
|
|
102
|
-
import { default as default101 } from "./hooks/
|
|
103
|
-
import { default as default102 } from "./hooks/
|
|
104
|
-
import { default as default103 } from "./hooks/
|
|
105
|
-
import { default as default104 } from "./
|
|
106
|
-
import { default as default105 } from "./hooks/
|
|
107
|
-
import { default as default106 } from "./hooks/
|
|
108
|
-
import { default as default107 } from "./hooks/
|
|
109
|
-
import { default as default108 } from "./hooks/
|
|
110
|
-
import { default as default109 } from "./hooks/
|
|
111
|
-
import { default as default110 } from "./hooks/
|
|
112
|
-
import { default as default111 } from "./modules/modals/
|
|
113
|
-
import { default as default112 } from "./hooks/
|
|
114
|
-
import { default as default113 } from "./hooks/
|
|
115
|
-
import { default as default114 } from "./hooks/
|
|
116
|
-
import { default as default115 } from "./hooks/
|
|
117
|
-
import { default as default116 } from "./hooks/
|
|
118
|
-
import {
|
|
119
|
-
import { default as default118 } from "./hooks/
|
|
120
|
-
import { default as default119 } from "./hooks/
|
|
121
|
-
import { default as default120 } from "./hooks/
|
|
33
|
+
import { default as default32 } from "./modules/multimedia/GoogleDrive/GoogleDrive.js";
|
|
34
|
+
import { default as default33 } from "./modules/multimedia/FileCard/GoogleDriveFileCard.js";
|
|
35
|
+
import { default as default34 } from "./components/Heading/Heading.js";
|
|
36
|
+
import { default as default35 } from "./components/Button/IconButton.js";
|
|
37
|
+
import { default as default36 } from "./components/Image/Image.js";
|
|
38
|
+
import { default as default37 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
39
|
+
import { default as default38 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
40
|
+
import { default as default39 } from "./components/Input/Input.js";
|
|
41
|
+
import { default as default40 } from "./components/Label/Label.js";
|
|
42
|
+
import { default as default41 } from "./components/LinkPill/LinkPill.js";
|
|
43
|
+
import { default as default42 } from "./components/Loading/Loading.js";
|
|
44
|
+
import { default as default43 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
45
|
+
import { default as default44 } from "./components/Logo/Logo.js";
|
|
46
|
+
import { default as default45 } from "./components/LogoBeta/LogoBeta.js";
|
|
47
|
+
import { default as default46 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
48
|
+
import { default as default47 } from "./components/MediaViewer/MediaViewer.js";
|
|
49
|
+
import { default as default48 } from "./components/Modal/Modal.js";
|
|
50
|
+
import { default as default49 } from "./components/ModalBeta/ModalBeta.js";
|
|
51
|
+
import { default as default50 } from "./modules/multimedia/Nextcloud/Nextcloud.js";
|
|
52
|
+
import { default as default51 } from "./modules/multimedia/FileCard/NextcloudFileCard.js";
|
|
53
|
+
import { default as default52 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
54
|
+
import { default as default53 } from "./components/PageLayout/PageLayout.js";
|
|
55
|
+
import { default as default54 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
56
|
+
import { default as default55, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
57
|
+
import { default as default56 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
58
|
+
import { default as default57 } from "./components/Radio/Radio.js";
|
|
59
|
+
import { default as default58 } from "./components/RadioCard/RadioCard.js";
|
|
60
|
+
import { default as default59 } from "./components/RadioTile/RadioTile.js";
|
|
61
|
+
import { default as default60 } from "./components/SearchBar/SearchBar.js";
|
|
62
|
+
import { default as default61 } from "./components/Button/SearchButton.js";
|
|
63
|
+
import { default as default62 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
64
|
+
import { default as default63 } from "./components/Select/Select.js";
|
|
65
|
+
import { default as default64 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
66
|
+
import { default as default65 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
67
|
+
import { default as default66 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
68
|
+
import { default as default67 } from "./components/Tree/components/SortableTree.js";
|
|
69
|
+
import { default as default68 } from "./components/StackedGroup/StackedGroup.js";
|
|
70
|
+
import { default as default69 } from "./components/Stepper/Stepper.js";
|
|
71
|
+
import { default as default70 } from "./components/Switch/Switch.js";
|
|
72
|
+
import { default as default71 } from "./components/Table/components/Table.js";
|
|
73
|
+
import { default as default72 } from "./components/TextArea/TextArea.js";
|
|
74
|
+
import { default as default73 } from "./components/Skeleton/TextSkeleton.js";
|
|
75
|
+
import { default as default74 } from "./components/Tooltip/Tooltip.js";
|
|
76
|
+
import { default as default75 } from "./components/Tree/components/Tree.js";
|
|
77
|
+
import { default as default76 } from "./components/TreeView/TreeView.js";
|
|
78
|
+
import { default as default77 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
79
|
+
import { default as default78 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
80
|
+
import { default as default79 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
81
|
+
import { default as default80 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
82
|
+
import { default as default81 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
83
|
+
import { default as default82 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
84
|
+
import { default as default83 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useBookmark/useBookmark.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useCantoo/useCantoo.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useConversation/useConversation.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useDate/useDate.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useDebounce/useDebounce.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useDirectory/useDirectory.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useDropdown/useDropdown.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useDropzone/useDropzone.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useGoogleDriveSearch/useGoogleDriveSearch.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useHover/useHover.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
101
|
+
import { default as default100 } from "./hooks/useImage/useImage.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
103
|
+
import { default as default102 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
106
|
+
import { default as default105 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
107
|
+
import { default as default106 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
109
|
+
import { default as default108 } from "./hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
110
|
+
import { default as default109 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
112
|
+
import { default as default111 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useTitle/useTitle.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useToast/useToast.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useToggle/useToggle.js";
|
|
116
|
+
import { default as default115 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
118
|
+
import { default as default117 } from "./hooks/useUiOverride/useUiOverride.js";
|
|
119
|
+
import { default as default118 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
120
|
+
import { default as default119 } from "./hooks/useUpload/useUpload.js";
|
|
121
|
+
import { default as default120 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
122
|
+
import { default as default121 } from "./hooks/useUser/useUser.js";
|
|
123
|
+
import { default as default122 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
124
|
+
import { default as default123 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
125
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default124 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
126
|
+
import { default as default125 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
127
|
+
import { default as default126 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
128
|
+
import { default as default127 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
122
129
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
123
130
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
124
131
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -154,7 +161,7 @@ import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-
|
|
|
154
161
|
import { getRotateTransitionStyle } from "./utilities/rotate-transition-style/get-rotate-transition-style.js";
|
|
155
162
|
import { invalidateQueriesWithFirstPage } from "./utilities/react-query/react-query-utils.js";
|
|
156
163
|
import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
157
|
-
import { default as
|
|
164
|
+
import { default as default128 } from "./hooks/useBackground/useBackground.js";
|
|
158
165
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
159
166
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
160
167
|
import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
@@ -163,7 +170,7 @@ import { useOverlay } from "./components/PageLayout/hook/useOverlay.js";
|
|
|
163
170
|
import { useScreeb } from "./hooks/useScreeb/useScreeb.js";
|
|
164
171
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
165
172
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
166
|
-
import { default as
|
|
173
|
+
import { default as default129 } from "./hooks/useUserPreferences/useUserPreferences.js";
|
|
167
174
|
export {
|
|
168
175
|
AccessiblePalette,
|
|
169
176
|
default2 as ActionBar,
|
|
@@ -209,77 +216,82 @@ export {
|
|
|
209
216
|
default29 as Flex,
|
|
210
217
|
default30 as FormControl,
|
|
211
218
|
default31 as FormText,
|
|
219
|
+
default32 as GoogleDrive,
|
|
220
|
+
default33 as GoogleDriveFileCard,
|
|
212
221
|
Grid,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
222
|
+
default34 as Heading,
|
|
223
|
+
default35 as IconButton,
|
|
224
|
+
default36 as Image,
|
|
225
|
+
default37 as ImageEditor,
|
|
226
|
+
default38 as ImagePicker,
|
|
227
|
+
default39 as Input,
|
|
219
228
|
InternalLinker,
|
|
220
|
-
|
|
229
|
+
default40 as Label,
|
|
221
230
|
Layout,
|
|
222
|
-
|
|
231
|
+
default41 as LinkPill,
|
|
223
232
|
List,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
233
|
+
default42 as Loading,
|
|
234
|
+
default43 as LoadingScreen,
|
|
235
|
+
default44 as Logo,
|
|
236
|
+
default45 as LogoBeta,
|
|
237
|
+
default46 as MediaLibrary,
|
|
238
|
+
default47 as MediaViewer,
|
|
230
239
|
Menu,
|
|
231
240
|
MockedProvider,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
default48 as Modal,
|
|
242
|
+
default49 as ModalBeta,
|
|
243
|
+
default50 as Nextcloud,
|
|
244
|
+
default51 as NextcloudFileCard,
|
|
245
|
+
default52 as OnboardingModal,
|
|
246
|
+
default53 as PageLayout,
|
|
236
247
|
PageLayoutContext,
|
|
237
248
|
Pagination,
|
|
238
249
|
Popover,
|
|
239
250
|
PopoverBody,
|
|
240
251
|
PopoverFooter,
|
|
241
252
|
PopoverHeader,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
253
|
+
default54 as PreventPropagation,
|
|
254
|
+
default55 as PromotionCard,
|
|
255
|
+
default56 as PublishModal,
|
|
256
|
+
default57 as Radio,
|
|
257
|
+
default58 as RadioCard,
|
|
258
|
+
default59 as RadioTile,
|
|
247
259
|
ResourceModal,
|
|
248
260
|
Root,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
+
default60 as SearchBar,
|
|
262
|
+
default61 as SearchButton,
|
|
263
|
+
default62 as SegmentedControl,
|
|
264
|
+
default63 as Select,
|
|
265
|
+
default64 as ShareBlog,
|
|
266
|
+
default65 as ShareModal,
|
|
267
|
+
default66 as ShareResources,
|
|
268
|
+
default67 as SortableTree,
|
|
269
|
+
default68 as StackedGroup,
|
|
270
|
+
default69 as Stepper,
|
|
271
|
+
default70 as Switch,
|
|
272
|
+
default71 as Table,
|
|
261
273
|
Tabs,
|
|
262
|
-
|
|
263
|
-
|
|
274
|
+
default72 as TextArea,
|
|
275
|
+
default73 as TextSkeleton,
|
|
264
276
|
Toolbar,
|
|
265
|
-
|
|
266
|
-
|
|
277
|
+
default74 as Tooltip,
|
|
278
|
+
default75 as Tree,
|
|
267
279
|
TreeNode,
|
|
268
280
|
TreeNodeFolderWrapper,
|
|
269
|
-
|
|
281
|
+
default76 as TreeView,
|
|
270
282
|
Upload,
|
|
271
|
-
|
|
272
|
-
|
|
283
|
+
default77 as UploadCard,
|
|
284
|
+
default78 as UploadFiles,
|
|
273
285
|
UserRightsList,
|
|
274
286
|
UserSearch,
|
|
275
|
-
|
|
276
|
-
|
|
287
|
+
default79 as VideoEmbed,
|
|
288
|
+
default80 as VideoRecorder,
|
|
277
289
|
VisibleType,
|
|
278
|
-
|
|
290
|
+
default81 as VisuallyHidden,
|
|
279
291
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
280
292
|
WORKSPACE_USER_FOLDER_ID,
|
|
281
|
-
|
|
282
|
-
|
|
293
|
+
default82 as Workspace,
|
|
294
|
+
default83 as WorkspaceFolders,
|
|
283
295
|
addNode,
|
|
284
296
|
arrayUnique,
|
|
285
297
|
buildTree,
|
|
@@ -310,59 +322,61 @@ export {
|
|
|
310
322
|
setRef,
|
|
311
323
|
updateNode,
|
|
312
324
|
updateParentIds,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
325
|
+
default128 as useBackground,
|
|
326
|
+
default84 as useBookmark,
|
|
327
|
+
default85 as useBreakpoint,
|
|
328
|
+
default86 as useBrowserInfo,
|
|
329
|
+
default87 as useCantoo,
|
|
318
330
|
useCheckable,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
331
|
+
default88 as useClickOutside,
|
|
332
|
+
default89 as useConversation,
|
|
333
|
+
default90 as useDate,
|
|
334
|
+
default91 as useDebounce,
|
|
335
|
+
default92 as useDirectory,
|
|
336
|
+
default93 as useDropdown,
|
|
337
|
+
default94 as useDropzone,
|
|
326
338
|
useDropzoneContext,
|
|
327
339
|
useEdificeClient,
|
|
328
|
-
|
|
340
|
+
default95 as useEdificeIcons,
|
|
329
341
|
useEdificeTheme,
|
|
330
342
|
useFileToAttachment,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
343
|
+
default96 as useGoogleDriveSearch,
|
|
344
|
+
default97 as useHasWorkflow,
|
|
345
|
+
default98 as useHover,
|
|
346
|
+
default99 as useHttpErrorToast,
|
|
347
|
+
default100 as useImage,
|
|
348
|
+
default101 as useInfiniteScroll,
|
|
349
|
+
default102 as useIsAdmc,
|
|
350
|
+
default103 as useIsAdml,
|
|
351
|
+
default104 as useIsAdmlcOrAdmc,
|
|
352
|
+
default105 as useKeyPress,
|
|
353
|
+
default106 as useLibraryUrl,
|
|
354
|
+
default107 as useMediaLibrary,
|
|
355
|
+
default108 as useNextcloudSearch,
|
|
342
356
|
useOverlay,
|
|
343
357
|
usePageLayout,
|
|
344
|
-
|
|
358
|
+
default109 as usePublicConf,
|
|
345
359
|
useScreeb,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
360
|
+
default110 as useScrollToTop,
|
|
361
|
+
default111 as useShareMutation,
|
|
362
|
+
default112 as useTitle,
|
|
363
|
+
default113 as useToast,
|
|
364
|
+
default114 as useToggle,
|
|
365
|
+
default115 as useTrapFocus,
|
|
366
|
+
default116 as useTrashedResource,
|
|
353
367
|
useTreeSortable,
|
|
354
368
|
useTreeView,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
369
|
+
default117 as useUiOverride,
|
|
370
|
+
default118 as useUpdateMutation,
|
|
371
|
+
default119 as useUpload,
|
|
372
|
+
default120 as useUploadFiles,
|
|
373
|
+
default121 as useUser,
|
|
374
|
+
default129 as useUserPreferences,
|
|
375
|
+
default122 as useWorkspaceFile,
|
|
376
|
+
default123 as useWorkspaceFolders,
|
|
377
|
+
default124 as useWorkspaceFoldersTree,
|
|
378
|
+
default125 as useWorkspaceSearch,
|
|
379
|
+
default126 as useXitiTrackPageLoad,
|
|
380
|
+
default127 as useZendeskGuide,
|
|
367
381
|
wrapTreeNode
|
|
368
382
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoogleDriveDocument } from '@edifice.io/client';
|
|
3
|
+
import { CardProps } from '../../../components/Card';
|
|
4
|
+
export interface GoogleDriveFileCardProps extends CardProps {
|
|
5
|
+
doc: GoogleDriveDocument;
|
|
6
|
+
/**
|
|
7
|
+
* Id of the user who owns the Google Drive document, used to build the preview URL.
|
|
8
|
+
*/
|
|
9
|
+
userId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Custom icon to override the default based on file type
|
|
12
|
+
* Can be a string or a React node
|
|
13
|
+
*/
|
|
14
|
+
customIcon?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Custom color class to override the default based on file type
|
|
17
|
+
* Example: "bg-purple-300" or any valid CSS class
|
|
18
|
+
*/
|
|
19
|
+
customColor?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const GoogleDriveFileCard: {
|
|
22
|
+
({ doc, userId, isClickable, isSelectable, isSelected, onClick, className, onSelect, isFocused, app, customIcon, customColor, }: GoogleDriveFileCardProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
export default GoogleDriveFileCard;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useRef } from "react";
|
|
3
|
+
import { DocumentHelper, odeServices } from "@edifice.io/client";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import SvgIconLandscape from "../../icons/components/IconLandscape.js";
|
|
6
|
+
import SvgIconMic from "../../icons/components/IconMic.js";
|
|
7
|
+
import SvgIconTextPage from "../../icons/components/IconTextPage.js";
|
|
8
|
+
import SvgIconVideo from "../../icons/components/IconVideo.js";
|
|
9
|
+
import FileIcon from "./FileIcon.js";
|
|
10
|
+
import useThumbnail from "../../../hooks/useThumbnail/useThumbnail.js";
|
|
11
|
+
import Card from "../../../components/Card/Card.js";
|
|
12
|
+
const roleMappings = {
|
|
13
|
+
csv: {
|
|
14
|
+
icon: ".CSV",
|
|
15
|
+
color: "bg-orange-200"
|
|
16
|
+
},
|
|
17
|
+
xls: {
|
|
18
|
+
icon: ".XLS",
|
|
19
|
+
color: "bg-green-200"
|
|
20
|
+
},
|
|
21
|
+
doc: {
|
|
22
|
+
icon: ".DOC",
|
|
23
|
+
color: "bg-blue-200"
|
|
24
|
+
},
|
|
25
|
+
txt: {
|
|
26
|
+
icon: ".TXT",
|
|
27
|
+
color: "bg-blue-200"
|
|
28
|
+
},
|
|
29
|
+
pdf: {
|
|
30
|
+
icon: ".PDF",
|
|
31
|
+
color: "bg-red-200"
|
|
32
|
+
},
|
|
33
|
+
audio: {
|
|
34
|
+
icon: /* @__PURE__ */ jsx(SvgIconMic, { width: 22, height: 22 }),
|
|
35
|
+
color: "bg-red-200"
|
|
36
|
+
},
|
|
37
|
+
ppt: {
|
|
38
|
+
icon: ".PPT",
|
|
39
|
+
color: "bg-red-200"
|
|
40
|
+
},
|
|
41
|
+
img: {
|
|
42
|
+
icon: /* @__PURE__ */ jsx(SvgIconLandscape, { width: 22, height: 22 }),
|
|
43
|
+
color: "bg-green-200"
|
|
44
|
+
},
|
|
45
|
+
video: {
|
|
46
|
+
icon: /* @__PURE__ */ jsx(SvgIconVideo, { width: 22, height: 22 }),
|
|
47
|
+
color: "bg-purple-200"
|
|
48
|
+
},
|
|
49
|
+
zip: {
|
|
50
|
+
icon: ".ZIP",
|
|
51
|
+
color: "bg-gray-300"
|
|
52
|
+
},
|
|
53
|
+
md: {
|
|
54
|
+
icon: ".MD",
|
|
55
|
+
color: "bg-blue-200"
|
|
56
|
+
},
|
|
57
|
+
unknown: {
|
|
58
|
+
icon: /* @__PURE__ */ jsx(SvgIconTextPage, { width: 22, height: 22 }),
|
|
59
|
+
color: "bg-gray-300"
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
function getRoleMap(type, customIcon, customColor) {
|
|
63
|
+
return customIcon !== void 0 || customColor !== void 0 ? {
|
|
64
|
+
icon: customIcon || /* @__PURE__ */ jsx(SvgIconTextPage, { width: 22, height: 22 }),
|
|
65
|
+
color: customColor || "bg-gray-300",
|
|
66
|
+
hasShadow: !1
|
|
67
|
+
} : roleMappings[type] ?? roleMappings.unknown;
|
|
68
|
+
}
|
|
69
|
+
const GoogleDriveFileCard = ({
|
|
70
|
+
doc,
|
|
71
|
+
userId,
|
|
72
|
+
isClickable = !0,
|
|
73
|
+
isSelectable = !1,
|
|
74
|
+
isSelected = !1,
|
|
75
|
+
onClick,
|
|
76
|
+
className,
|
|
77
|
+
onSelect,
|
|
78
|
+
isFocused,
|
|
79
|
+
app,
|
|
80
|
+
customIcon,
|
|
81
|
+
customColor
|
|
82
|
+
}) => {
|
|
83
|
+
const ref = useRef(null), type = DocumentHelper.role(doc.contentType, !1), roleMap = getRoleMap(type ?? "unknown", customIcon, customColor), file = clsx("file position-relative rounded", (roleMap == null ? void 0 : roleMap.color) ?? "bg-yellow-200"), mediaSrc = type === "img" ? odeServices.googledrive().getFileUrl(userId, doc) : null, hasThumbnail = useThumbnail(mediaSrc, {
|
|
84
|
+
ref
|
|
85
|
+
}), imageStyles = hasThumbnail && {
|
|
86
|
+
backgroundImage: `url(${mediaSrc})`,
|
|
87
|
+
backgroundSize: "cover"
|
|
88
|
+
};
|
|
89
|
+
return /* @__PURE__ */ jsx(Card, { className: clsx("card-file", className), isClickable, isSelectable, isSelected, onClick, app, isFocused, onSelect, children: /* @__PURE__ */ jsxs(Card.Body, { space: "8", children: [
|
|
90
|
+
/* @__PURE__ */ jsx("div", { ref, className: file, style: {
|
|
91
|
+
aspectRatio: "16/10",
|
|
92
|
+
...imageStyles
|
|
93
|
+
}, children: type !== "img" || !hasThumbnail ? /* @__PURE__ */ jsx(FileIcon, { type, roleMap }) : null }),
|
|
94
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-4", children: [
|
|
95
|
+
/* @__PURE__ */ jsx(Card.Text, { children: doc.name }),
|
|
96
|
+
/* @__PURE__ */ jsx(Card.Text, { className: "text-black-50", children: doc == null ? void 0 : doc.ownerDisplayName })
|
|
97
|
+
] })
|
|
98
|
+
] }) });
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
GoogleDriveFileCard as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NextcloudDocument } from '@edifice.io/client';
|
|
3
|
+
import { CardProps } from '../../../components/Card';
|
|
4
|
+
export interface NextcloudFileCardProps extends CardProps {
|
|
5
|
+
doc: NextcloudDocument;
|
|
6
|
+
/**
|
|
7
|
+
* Id of the user who owns the Nextcloud document, used to build the preview URL.
|
|
8
|
+
*/
|
|
9
|
+
userId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Custom icon to override the default based on file type
|
|
12
|
+
* Can be a string or a React node
|
|
13
|
+
*/
|
|
14
|
+
customIcon?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Custom color class to override the default based on file type
|
|
17
|
+
* Example: "bg-purple-300" or any valid CSS class
|
|
18
|
+
*/
|
|
19
|
+
customColor?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const NextcloudFileCard: {
|
|
22
|
+
({ doc, userId, isClickable, isSelectable, isSelected, onClick, className, onSelect, isFocused, app, customIcon, customColor, }: NextcloudFileCardProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
export default NextcloudFileCard;
|