@edifice.io/react 2.6.12-develop-integration-crna.20261101211105 → 2.6.12-develop-integration.20261103121816
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/Dropdown/Dropdown.js +14 -20
- package/dist/components/Dropdown/DropdownContext.d.ts +0 -5
- package/dist/components/Dropdown/DropdownMenuGroup.js +6 -23
- package/dist/components/Dropdown/DropdownSearchInput.js +8 -16
- package/dist/components/Dropdown/DropdownTrigger.js +8 -24
- package/dist/components/Dropdown/useDropdownItemFilter.js +2 -2
- package/dist/components/Select/Select.d.ts +1 -14
- package/dist/components/Select/Select.js +5 -11
- package/dist/homepage.js +28 -24
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDropdown/useDropdown.d.ts +0 -5
- package/dist/hooks/useDropdown/useDropdown.js +6 -16
- package/dist/hooks/useGoogleDriveSearch/index.d.ts +1 -0
- package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.d.ts +19 -0
- package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.js +60 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +1 -1
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +2 -2
- package/dist/icons-apps.js +184 -182
- package/dist/index.js +198 -194
- package/dist/modules/editor/components/Editor/Editor.d.ts +7 -0
- package/dist/modules/editor/components/Editor/Editor.js +3 -2
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +3 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +14 -8
- package/dist/modules/editor/components/NodeView/ImageNodeView.d.ts +1 -1
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +14 -7
- package/dist/modules/editor/hooks/useActionOptions.d.ts +1 -1
- package/dist/modules/editor/hooks/useActionOptions.js +12 -12
- package/dist/modules/editor/hooks/useTipTapEditor.d.ts +2 -1
- package/dist/modules/editor/hooks/useTipTapEditor.js +2 -2
- package/dist/modules/homepage/components/AlloLycee/AlloLycee.d.ts +11 -0
- package/dist/modules/homepage/components/AlloLycee/AlloLycee.js +32 -0
- package/dist/modules/homepage/components/AlloLycee/AlloLyceeContainer.d.ts +4 -0
- package/dist/modules/homepage/components/AlloLycee/AlloLyceeContainer.js +10 -0
- package/dist/modules/homepage/components/AlloLycee/index.d.ts +3 -0
- package/dist/modules/homepage/components/Favorites/Favorites.js +4 -1
- package/dist/modules/homepage/components/Notifications/components/CommonNotificationItem.js +9 -9
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.d.ts +2 -1
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +2 -2
- package/dist/modules/homepage/components/index.d.ts +1 -0
- package/dist/modules/icons/components/apps/IconElea.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconElea.js +23 -0
- package/dist/modules/icons/components/apps/index.d.ts +1 -0
- package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.d.ts +25 -0
- package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.js +102 -0
- package/dist/modules/multimedia/FileCard/index.d.ts +2 -0
- package/dist/modules/multimedia/GoogleDrive/GoogleDrive.d.ts +24 -0
- package/dist/modules/multimedia/GoogleDrive/GoogleDrive.js +103 -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.js +16 -5
- 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/index.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +2 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +19 -7
- package/dist/modules/multimedia/index.d.ts +1 -1
- package/dist/multimedia.js +26 -24
- package/package.json +6 -6
- package/dist/components/Dropdown/useMatchRegistry.d.ts +0 -13
- package/dist/components/Dropdown/useMatchRegistry.js +0 -20
- package/dist/modules/multimedia/Nextcloud/NextcloudLogin.d.ts +0 -12
- package/dist/modules/multimedia/Nextcloud/NextcloudLogin.js +0 -33
- package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.d.ts +0 -12
- package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.js +0 -51
- package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.d.ts +0 -16
- package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.js +0 -51
- package/dist/modules/multimedia/NextcloudFolders/index.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -30,101 +30,103 @@ 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 "./
|
|
51
|
-
import { default as default50 } from "./modules/multimedia/
|
|
52
|
-
import { default as default51 } from "./modules/
|
|
53
|
-
import { default as default52 } from "./
|
|
54
|
-
import { default as default53 } from "./components/
|
|
55
|
-
import { default as default54
|
|
56
|
-
import { default as default55 } from "./
|
|
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 "./components/
|
|
61
|
-
import { default as default60 } from "./components/
|
|
62
|
-
import { default as default61 } from "./components/
|
|
63
|
-
import { default as default62 } from "./components/
|
|
64
|
-
import { default as default63 } from "./
|
|
65
|
-
import { default as default64 } from "./modules/modals/ShareModal/
|
|
66
|
-
import { default as default65 } from "./modules/modals/ShareModal/
|
|
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 "./components/
|
|
74
|
-
import { default as default73 } from "./components/
|
|
75
|
-
import { default as default74 } from "./components/
|
|
76
|
-
import { default as default75 } from "./components/
|
|
77
|
-
import { default as default76 } from "./
|
|
78
|
-
import { default as default77 } from "./modules/multimedia/
|
|
79
|
-
import { default as default78 } from "./modules/multimedia/
|
|
80
|
-
import { default as default79 } from "./modules/multimedia/
|
|
81
|
-
import { default as default80 } from "./
|
|
82
|
-
import { default as default81 } from "./
|
|
83
|
-
import { default as default82 } from "./modules/multimedia/
|
|
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 "./hooks/
|
|
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 "./
|
|
112
|
-
import { default as default111 } from "./hooks/
|
|
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 { default as default117 } from "./
|
|
119
|
-
import { default as default118 } from "./hooks/
|
|
120
|
-
import { default as default119 } from "./hooks/
|
|
121
|
-
import { default as default120 } from "./hooks/
|
|
122
|
-
import { default as default121 } from "./hooks/
|
|
123
|
-
import { default as default122 } from "./hooks/
|
|
124
|
-
import {
|
|
125
|
-
import { default as default124 } from "./hooks/
|
|
126
|
-
import { default as default125 } from "./hooks/
|
|
127
|
-
import { default as default126 } 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/useCarbonioUnread/useCarbonioUnread.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useConversation/useConversation.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useDate/useDate.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useDebounce/useDebounce.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useDirectory/useDirectory.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useDropdown/useDropdown.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useDropzone/useDropzone.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useGoogleDriveSearch/useGoogleDriveSearch.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useHover/useHover.js";
|
|
101
|
+
import { default as default100 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useImage/useImage.js";
|
|
103
|
+
import { default as default102 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
106
|
+
import { default as default105 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
107
|
+
import { default as default106 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
109
|
+
import { default as default108 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
110
|
+
import { default as default109 } from "./hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
111
|
+
import { default as default110 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
112
|
+
import { default as default111 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
113
|
+
import { default as default112 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useTitle/useTitle.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useToast/useToast.js";
|
|
116
|
+
import { default as default115 } from "./hooks/useToggle/useToggle.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
118
|
+
import { default as default117 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
119
|
+
import { default as default118 } from "./hooks/useUiOverride/useUiOverride.js";
|
|
120
|
+
import { default as default119 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
121
|
+
import { default as default120 } from "./hooks/useUpload/useUpload.js";
|
|
122
|
+
import { default as default121 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
123
|
+
import { default as default122 } from "./hooks/useUser/useUser.js";
|
|
124
|
+
import { default as default123 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
125
|
+
import { default as default124 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
126
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default125 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
127
|
+
import { default as default126 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
128
|
+
import { default as default127 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
129
|
+
import { default as default128 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
128
130
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
129
131
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
130
132
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -160,7 +162,7 @@ import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-
|
|
|
160
162
|
import { getRotateTransitionStyle } from "./utilities/rotate-transition-style/get-rotate-transition-style.js";
|
|
161
163
|
import { invalidateQueriesWithFirstPage } from "./utilities/react-query/react-query-utils.js";
|
|
162
164
|
import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
163
|
-
import { default as
|
|
165
|
+
import { default as default129 } from "./hooks/useBackground/useBackground.js";
|
|
164
166
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
165
167
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
166
168
|
import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
@@ -169,7 +171,7 @@ import { useOverlay } from "./components/PageLayout/hook/useOverlay.js";
|
|
|
169
171
|
import { useScreeb } from "./hooks/useScreeb/useScreeb.js";
|
|
170
172
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
171
173
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
172
|
-
import { default as
|
|
174
|
+
import { default as default130 } from "./hooks/useUserPreferences/useUserPreferences.js";
|
|
173
175
|
export {
|
|
174
176
|
AccessiblePalette,
|
|
175
177
|
default2 as ActionBar,
|
|
@@ -215,81 +217,82 @@ export {
|
|
|
215
217
|
default29 as Flex,
|
|
216
218
|
default30 as FormControl,
|
|
217
219
|
default31 as FormText,
|
|
220
|
+
default32 as GoogleDrive,
|
|
221
|
+
default33 as GoogleDriveFileCard,
|
|
218
222
|
Grid,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
default34 as Heading,
|
|
224
|
+
default35 as IconButton,
|
|
225
|
+
default36 as Image,
|
|
226
|
+
default37 as ImageEditor,
|
|
227
|
+
default38 as ImagePicker,
|
|
228
|
+
default39 as Input,
|
|
225
229
|
InternalLinker,
|
|
226
|
-
|
|
230
|
+
default40 as Label,
|
|
227
231
|
Layout,
|
|
228
|
-
|
|
232
|
+
default41 as LinkPill,
|
|
229
233
|
List,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
default42 as Loading,
|
|
235
|
+
default43 as LoadingScreen,
|
|
236
|
+
default44 as Logo,
|
|
237
|
+
default45 as LogoBeta,
|
|
238
|
+
default46 as MediaLibrary,
|
|
239
|
+
default47 as MediaViewer,
|
|
236
240
|
Menu,
|
|
237
241
|
MockedProvider,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
default52 as PageLayout,
|
|
242
|
+
default48 as Modal,
|
|
243
|
+
default49 as ModalBeta,
|
|
244
|
+
default50 as Nextcloud,
|
|
245
|
+
default51 as NextcloudFileCard,
|
|
246
|
+
default52 as OnboardingModal,
|
|
247
|
+
default53 as PageLayout,
|
|
245
248
|
PageLayoutContext,
|
|
246
249
|
Pagination,
|
|
247
250
|
Popover,
|
|
248
251
|
PopoverBody,
|
|
249
252
|
PopoverFooter,
|
|
250
253
|
PopoverHeader,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
default54 as PreventPropagation,
|
|
255
|
+
default55 as PromotionCard,
|
|
256
|
+
default56 as PublishModal,
|
|
257
|
+
default57 as Radio,
|
|
258
|
+
default58 as RadioCard,
|
|
259
|
+
default59 as RadioTile,
|
|
257
260
|
ResourceModal,
|
|
258
261
|
Root,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
262
|
+
default60 as SearchBar,
|
|
263
|
+
default61 as SearchButton,
|
|
264
|
+
default62 as SegmentedControl,
|
|
265
|
+
default63 as Select,
|
|
266
|
+
default64 as ShareBlog,
|
|
267
|
+
default65 as ShareModal,
|
|
268
|
+
default66 as ShareResources,
|
|
269
|
+
default67 as SortableTree,
|
|
270
|
+
default68 as StackedGroup,
|
|
271
|
+
default69 as Stepper,
|
|
272
|
+
default70 as Switch,
|
|
273
|
+
default71 as Table,
|
|
271
274
|
Tabs,
|
|
272
|
-
|
|
273
|
-
|
|
275
|
+
default72 as TextArea,
|
|
276
|
+
default73 as TextSkeleton,
|
|
274
277
|
Toolbar,
|
|
275
|
-
|
|
276
|
-
|
|
278
|
+
default74 as Tooltip,
|
|
279
|
+
default75 as Tree,
|
|
277
280
|
TreeNode,
|
|
278
281
|
TreeNodeFolderWrapper,
|
|
279
|
-
|
|
282
|
+
default76 as TreeView,
|
|
280
283
|
Upload,
|
|
281
|
-
|
|
282
|
-
|
|
284
|
+
default77 as UploadCard,
|
|
285
|
+
default78 as UploadFiles,
|
|
283
286
|
UserRightsList,
|
|
284
287
|
UserSearch,
|
|
285
|
-
|
|
286
|
-
|
|
288
|
+
default79 as VideoEmbed,
|
|
289
|
+
default80 as VideoRecorder,
|
|
287
290
|
VisibleType,
|
|
288
|
-
|
|
291
|
+
default81 as VisuallyHidden,
|
|
289
292
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
290
293
|
WORKSPACE_USER_FOLDER_ID,
|
|
291
|
-
|
|
292
|
-
|
|
294
|
+
default82 as Workspace,
|
|
295
|
+
default83 as WorkspaceFolders,
|
|
293
296
|
addNode,
|
|
294
297
|
arrayUnique,
|
|
295
298
|
buildTree,
|
|
@@ -320,61 +323,62 @@ export {
|
|
|
320
323
|
setRef,
|
|
321
324
|
updateNode,
|
|
322
325
|
updateParentIds,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
default129 as useBackground,
|
|
327
|
+
default84 as useBookmark,
|
|
328
|
+
default85 as useBreakpoint,
|
|
329
|
+
default86 as useBrowserInfo,
|
|
330
|
+
default87 as useCantoo,
|
|
331
|
+
default88 as useCarbonioUnread,
|
|
329
332
|
useCheckable,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
333
|
+
default89 as useClickOutside,
|
|
334
|
+
default90 as useConversation,
|
|
335
|
+
default91 as useDate,
|
|
336
|
+
default92 as useDebounce,
|
|
337
|
+
default93 as useDirectory,
|
|
338
|
+
default94 as useDropdown,
|
|
339
|
+
default95 as useDropzone,
|
|
337
340
|
useDropzoneContext,
|
|
338
341
|
useEdificeClient,
|
|
339
|
-
|
|
342
|
+
default96 as useEdificeIcons,
|
|
340
343
|
useEdificeTheme,
|
|
341
344
|
useFileToAttachment,
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
345
|
+
default97 as useGoogleDriveSearch,
|
|
346
|
+
default98 as useHasWorkflow,
|
|
347
|
+
default99 as useHover,
|
|
348
|
+
default100 as useHttpErrorToast,
|
|
349
|
+
default101 as useImage,
|
|
350
|
+
default102 as useInfiniteScroll,
|
|
351
|
+
default103 as useIsAdmc,
|
|
352
|
+
default104 as useIsAdml,
|
|
353
|
+
default105 as useIsAdmlcOrAdmc,
|
|
354
|
+
default106 as useKeyPress,
|
|
355
|
+
default107 as useLibraryUrl,
|
|
356
|
+
default108 as useMediaLibrary,
|
|
357
|
+
default109 as useNextcloudSearch,
|
|
354
358
|
useOverlay,
|
|
355
359
|
usePageLayout,
|
|
356
|
-
|
|
360
|
+
default110 as usePublicConf,
|
|
357
361
|
useScreeb,
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
default111 as useScrollToTop,
|
|
363
|
+
default112 as useShareMutation,
|
|
364
|
+
default113 as useTitle,
|
|
365
|
+
default114 as useToast,
|
|
366
|
+
default115 as useToggle,
|
|
367
|
+
default116 as useTrapFocus,
|
|
368
|
+
default117 as useTrashedResource,
|
|
365
369
|
useTreeSortable,
|
|
366
370
|
useTreeView,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
371
|
+
default118 as useUiOverride,
|
|
372
|
+
default119 as useUpdateMutation,
|
|
373
|
+
default120 as useUpload,
|
|
374
|
+
default121 as useUploadFiles,
|
|
375
|
+
default122 as useUser,
|
|
376
|
+
default130 as useUserPreferences,
|
|
377
|
+
default123 as useWorkspaceFile,
|
|
378
|
+
default124 as useWorkspaceFolders,
|
|
379
|
+
default125 as useWorkspaceFoldersTree,
|
|
380
|
+
default126 as useWorkspaceSearch,
|
|
381
|
+
default127 as useXitiTrackPageLoad,
|
|
382
|
+
default128 as useZendeskGuide,
|
|
379
383
|
wrapTreeNode
|
|
380
384
|
};
|
|
@@ -32,6 +32,13 @@ export interface EditorProps {
|
|
|
32
32
|
mode?: 'edit' | 'read';
|
|
33
33
|
/** Toolbar to display in `edit` mode. */
|
|
34
34
|
toolbar?: 'full' | 'none';
|
|
35
|
+
/**
|
|
36
|
+
* Let users insert multimedia content (images, videos, audio, attachments
|
|
37
|
+
* and embedded content), `true` by default. When `false`, the toolbar hides
|
|
38
|
+
* these tools and pasted or dropped images are not uploaded. Content that
|
|
39
|
+
* already holds media is still rendered.
|
|
40
|
+
*/
|
|
41
|
+
multimedia?: boolean;
|
|
35
42
|
/** Display with or without a border */
|
|
36
43
|
variant?: 'outline' | 'ghost';
|
|
37
44
|
/** Set focus position to the editor */
|
|
@@ -27,6 +27,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
27
27
|
content,
|
|
28
28
|
mode = "read",
|
|
29
29
|
toolbar = "full",
|
|
30
|
+
multimedia = !0,
|
|
30
31
|
variant = "outline",
|
|
31
32
|
focus = "start",
|
|
32
33
|
placeholder = "",
|
|
@@ -40,7 +41,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
40
41
|
} = useEdificeClient(), {
|
|
41
42
|
editor,
|
|
42
43
|
editable
|
|
43
|
-
} = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility, extensions), {
|
|
44
|
+
} = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility, extensions, multimedia), {
|
|
44
45
|
ref: mediaLibraryModalRef,
|
|
45
46
|
...mediaLibraryModalHandlers
|
|
46
47
|
} = useMediaLibraryEditor(editor), {
|
|
@@ -76,7 +77,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
76
77
|
editable
|
|
77
78
|
}, children: [
|
|
78
79
|
/* @__PURE__ */ jsxs("div", { className: borderClass, children: [
|
|
79
|
-
toolbar !== "none" && editable && /* @__PURE__ */ jsx(EditorToolbar, { mediaLibraryRef: mediaLibraryModalRef, toggleMathsModal, cantooEditor: contooEditor }),
|
|
80
|
+
toolbar !== "none" && editable && /* @__PURE__ */ jsx(EditorToolbar, { mediaLibraryRef: mediaLibraryModalRef, toggleMathsModal, cantooEditor: contooEditor, multimedia }),
|
|
80
81
|
/* @__PURE__ */ jsxs(Flex, { direction: "row", children: [
|
|
81
82
|
/* @__PURE__ */ jsx(EditorContent, { "data-testid": "editor-content", id: id ?? editorId, editor, className: contentClass, style: {
|
|
82
83
|
flex: 1
|
|
@@ -8,6 +8,8 @@ interface Props {
|
|
|
8
8
|
toggleMathsModal: () => void;
|
|
9
9
|
/** Ref to a Cantoo editor instance */
|
|
10
10
|
cantooEditor: CantooEditor;
|
|
11
|
+
/** Show the tools inserting multimedia content, `true` by default. */
|
|
12
|
+
multimedia?: boolean;
|
|
11
13
|
}
|
|
12
|
-
export declare const EditorToolbar: ({ mediaLibraryRef, toggleMathsModal, cantooEditor, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const EditorToolbar: ({ mediaLibraryRef, toggleMathsModal, cantooEditor, multimedia, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -35,14 +35,15 @@ import { Toolbar } from "../../../../components/Toolbar/Toolbar.js";
|
|
|
35
35
|
const EditorToolbar = ({
|
|
36
36
|
mediaLibraryRef,
|
|
37
37
|
toggleMathsModal,
|
|
38
|
-
cantooEditor
|
|
38
|
+
cantooEditor,
|
|
39
|
+
multimedia = !0
|
|
39
40
|
}) => {
|
|
40
41
|
const {
|
|
41
42
|
t
|
|
42
43
|
} = useTranslation(), {
|
|
43
44
|
id,
|
|
44
45
|
editor
|
|
45
|
-
} = useEditorContext(), [plusOptions, listOptions, alignmentOptions] = useActionOptions(editor, toggleMathsModal, mediaLibraryRef), {
|
|
46
|
+
} = useEditorContext(), [plusOptions, listOptions, alignmentOptions] = useActionOptions(editor, toggleMathsModal, mediaLibraryRef, multimedia), {
|
|
46
47
|
isAvailable: canRecognizeSpeech,
|
|
47
48
|
isActive: speechRecognition,
|
|
48
49
|
toggle: toggleSpeechRecognition
|
|
@@ -105,7 +106,8 @@ const EditorToolbar = ({
|
|
|
105
106
|
}
|
|
106
107
|
},
|
|
107
108
|
name: "image",
|
|
108
|
-
tooltip: t("tiptap.toolbar.picture")
|
|
109
|
+
tooltip: t("tiptap.toolbar.picture"),
|
|
110
|
+
visibility: showIf(multimedia)
|
|
109
111
|
},
|
|
110
112
|
//--------------- VIDEO ---------------//
|
|
111
113
|
{
|
|
@@ -120,7 +122,8 @@ const EditorToolbar = ({
|
|
|
120
122
|
}
|
|
121
123
|
},
|
|
122
124
|
name: "video",
|
|
123
|
-
tooltip: t("tiptap.toolbar.video")
|
|
125
|
+
tooltip: t("tiptap.toolbar.video"),
|
|
126
|
+
visibility: showIf(multimedia)
|
|
124
127
|
},
|
|
125
128
|
//--------------- AUDIO ---------------//
|
|
126
129
|
{
|
|
@@ -135,7 +138,8 @@ const EditorToolbar = ({
|
|
|
135
138
|
}
|
|
136
139
|
},
|
|
137
140
|
name: "audio",
|
|
138
|
-
tooltip: t("tiptap.toolbar.audio")
|
|
141
|
+
tooltip: t("tiptap.toolbar.audio"),
|
|
142
|
+
visibility: showIf(multimedia)
|
|
139
143
|
},
|
|
140
144
|
//--------------- ATTACHMENT ---------------//
|
|
141
145
|
{
|
|
@@ -150,11 +154,13 @@ const EditorToolbar = ({
|
|
|
150
154
|
}
|
|
151
155
|
},
|
|
152
156
|
name: "attachment",
|
|
153
|
-
tooltip: t("tiptap.toolbar.attachment")
|
|
157
|
+
tooltip: t("tiptap.toolbar.attachment"),
|
|
158
|
+
visibility: showIf(multimedia)
|
|
154
159
|
},
|
|
155
160
|
{
|
|
156
161
|
type: "divider",
|
|
157
|
-
name: "div-2"
|
|
162
|
+
name: "div-2",
|
|
163
|
+
visibility: showIf(multimedia)
|
|
158
164
|
},
|
|
159
165
|
//--------------- SPEECH TO TEXT ---------------//
|
|
160
166
|
{
|
|
@@ -348,7 +354,7 @@ const EditorToolbar = ({
|
|
|
348
354
|
visibility: showIf(hasExtension("textAlign", editor))
|
|
349
355
|
}
|
|
350
356
|
];
|
|
351
|
-
}, [alignmentOptions, canRecognizeSpeech, editor, listOptions, mediaLibraryRef, plusOptions, speechRecognition, t, toggleSpeechRecognition]);
|
|
357
|
+
}, [alignmentOptions, canRecognizeSpeech, editor, listOptions, mediaLibraryRef, multimedia, plusOptions, speechRecognition, t, toggleSpeechRecognition]);
|
|
352
358
|
return /* @__PURE__ */ jsx("div", { className: "sticky-top z-1 editor-toolbar rounded-3", children: /* @__PURE__ */ jsx(Toolbar, { items: toolbarItems, variant: "no-shadow", className: "rounded-top-3", isBlock: !0, align: "left", ariaControls: id }) });
|
|
353
359
|
};
|
|
354
360
|
export {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WorkspaceElement } from '@edifice.io/client';
|
|
2
|
-
declare const ImageNodeView: (Component: any, uploadFile
|
|
2
|
+
declare const ImageNodeView: (Component: any, uploadFile?: (file: File) => Promise<WorkspaceElement | null>) => import('@tiptap/core').Node<import('@edifice.io/tiptap-extensions/image').CustomImageOptions, any>;
|
|
3
3
|
export default ImageNodeView;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { Image } from "@edifice.io/tiptap-extensions/image";
|
|
2
2
|
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
3
|
-
const ImageNodeView = (Component, uploadFile) =>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
const ImageNodeView = (Component, uploadFile) => {
|
|
4
|
+
const ImageWithNodeView = Image.extend({
|
|
5
|
+
addNodeView() {
|
|
6
|
+
return ReactNodeViewRenderer(Component);
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
return uploadFile ? ImageWithNodeView.configure({
|
|
10
|
+
uploadFile
|
|
11
|
+
}) : ImageWithNodeView.extend({
|
|
12
|
+
addProseMirrorPlugins() {
|
|
13
|
+
return [];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
};
|
|
10
17
|
export {
|
|
11
18
|
ImageNodeView as default
|
|
12
19
|
};
|