@edifice.io/react 2.2.9 → 2.2.10-develop-b2school.20250618120112
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/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +3 -2
- package/dist/components/Button/IconButton.js +1 -1
- package/dist/components/Combobox/Combobox.d.ts +26 -7
- package/dist/components/Combobox/Combobox.js +37 -16
- package/dist/components/Combobox/ComboboxTrigger.d.ts +35 -3
- package/dist/components/Combobox/ComboboxTrigger.js +35 -8
- package/dist/components/Dropdown/Dropdown.d.ts +14 -2
- package/dist/components/Dropdown/Dropdown.js +6 -3
- package/dist/components/Dropdown/DropdownItem.d.ts +5 -1
- package/dist/components/Dropdown/DropdownItem.js +4 -1
- package/dist/components/Dropdown/DropdownTrigger.js +5 -1
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Input/Input.js +21 -5
- package/dist/components/Layout/components/Header.js +1 -1
- package/dist/components/List/List.d.ts +16 -1
- package/dist/components/List/List.js +30 -26
- package/dist/components/Modal/ModalHeader.js +2 -2
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +3 -1
- package/dist/components/Skeleton/ButtonSkeleton.d.ts +11 -0
- package/dist/components/Skeleton/ButtonSkeleton.js +16 -0
- package/dist/components/Skeleton/TextSkeleton.d.ts +10 -0
- package/dist/components/Skeleton/TextSkeleton.js +16 -0
- package/dist/components/Skeleton/index.d.ts +4 -0
- package/dist/components/Toolbar/Toolbar.d.ts +4 -0
- package/dist/components/Toolbar/Toolbar.js +8 -3
- package/dist/components/Tree/components/Tree.js +1 -2
- package/dist/components/Tree/hooks/useTree.d.ts +0 -1
- package/dist/components/Tree/hooks/useTree.js +2 -25
- package/dist/components/Tree/types/index.d.ts +0 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/editor.js +32 -26
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useCheckable/useCheckable.js +10 -3
- package/dist/hooks/useConversation/useConversation.d.ts +1 -1
- package/dist/hooks/useConversation/useConversation.js +13 -17
- package/dist/hooks/useDate/useDate.d.ts +1 -0
- package/dist/hooks/useDate/useDate.js +33 -27
- package/dist/hooks/useDropdown/useDropdown.d.ts +2 -1
- package/dist/hooks/useDropdown/useDropdown.js +9 -5
- package/dist/hooks/useHttpErrorToast/useHttpErrorToast.js +12 -3
- package/dist/hooks/useWorkspaceFolders/index.d.ts +3 -0
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.js +54 -0
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFoldersTree.d.ts +13 -0
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js +51 -0
- package/dist/icons.js +236 -216
- package/dist/index.d.ts +1 -0
- package/dist/index.js +132 -98
- package/dist/modals.js +16 -14
- package/dist/modules/editor/components/Editor/Editor.d.ts +8 -1
- package/dist/modules/editor/components/Editor/Editor.js +7 -3
- package/dist/modules/editor/components/Editor/EditorSkeleton.d.ts +11 -0
- package/dist/modules/editor/components/Editor/EditorSkeleton.js +31 -0
- package/dist/modules/editor/components/Editor/index.d.ts +2 -1
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.d.ts +2 -0
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.js +10 -0
- package/dist/modules/editor/components/NodeView/index.d.ts +2 -1
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.d.ts +8 -0
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.js +28 -0
- package/dist/modules/editor/components/Renderer/index.d.ts +2 -1
- package/dist/modules/editor/hooks/useTipTapEditor.d.ts +6 -2
- package/dist/modules/editor/hooks/useTipTapEditor.js +2 -2
- package/dist/modules/icons/components/IconFolderAdd.d.ts +7 -0
- package/dist/modules/icons/components/IconFolderAdd.js +13 -0
- package/dist/modules/icons/components/IconFolderDelete.d.ts +7 -0
- package/dist/modules/icons/components/IconFolderDelete.js +12 -0
- package/dist/modules/icons/components/IconGlobe2.d.ts +7 -0
- package/dist/modules/icons/components/IconGlobe2.js +16 -0
- package/dist/modules/icons/components/IconGroupAvatar.d.ts +7 -0
- package/dist/modules/icons/components/IconGroupAvatar.js +12 -0
- package/dist/modules/icons/components/IconMailRecall.d.ts +7 -0
- package/dist/modules/icons/components/IconMailRecall.js +13 -0
- package/dist/modules/icons/components/IconQuestionMark.d.ts +7 -0
- package/dist/modules/icons/components/IconQuestionMark.js +13 -0
- package/dist/modules/icons/components/IconReadMail.d.ts +7 -0
- package/dist/modules/icons/components/IconReadMail.js +16 -0
- package/dist/modules/icons/components/IconSignature.d.ts +7 -0
- package/dist/modules/icons/components/IconSignature.js +13 -0
- package/dist/modules/icons/components/IconUndoAll.d.ts +7 -0
- package/dist/modules/icons/components/IconUndoAll.js +14 -0
- package/dist/modules/icons/components/IconUnreadMail.d.ts +7 -0
- package/dist/modules/icons/components/IconUnreadMail.js +16 -0
- package/dist/modules/icons/components/index.d.ts +10 -0
- package/dist/modules/modals/ConfirmModal/ConfirmModal.d.ts +47 -0
- package/dist/modules/modals/ConfirmModal/ConfirmModal.js +37 -0
- package/dist/modules/modals/ConfirmModal/index.d.ts +1 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +9 -5
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +5 -4
- package/dist/modules/modals/index.d.ts +1 -0
- package/dist/modules/multimedia/WorkspaceFolders/WorkspaceFolders.d.ts +8 -0
- package/dist/modules/multimedia/WorkspaceFolders/WorkspaceFolders.js +55 -0
- package/dist/modules/multimedia/WorkspaceFolders/components/NewFolderForm.d.ts +16 -0
- package/dist/modules/multimedia/WorkspaceFolders/components/NewFolderForm.js +39 -0
- package/dist/modules/multimedia/WorkspaceFolders/index.d.ts +1 -0
- package/dist/modules/multimedia/index.d.ts +1 -0
- package/dist/multimedia.js +3 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -33,56 +33,70 @@ import { default as default33 } from "./components/PreventPropagation/PreventPro
|
|
|
33
33
|
import { default as default34 } from "./components/Radio/Radio.js";
|
|
34
34
|
import { default as default35 } from "./components/SearchBar/SearchBar.js";
|
|
35
35
|
import { default as default36 } from "./components/Select/Select.js";
|
|
36
|
-
import { default as default37 } from "./components/
|
|
37
|
-
import { default as default38 } from "./components/
|
|
38
|
-
import { default as default39 } from "./components/
|
|
39
|
-
import { default as default40 } from "./components/
|
|
40
|
-
import { default as default41 } from "./components/
|
|
36
|
+
import { default as default37 } from "./components/Skeleton/ButtonSkeleton.js";
|
|
37
|
+
import { default as default38 } from "./components/Skeleton/TextSkeleton.js";
|
|
38
|
+
import { default as default39 } from "./components/StackedGroup/StackedGroup.js";
|
|
39
|
+
import { default as default40 } from "./components/Switch/Switch.js";
|
|
40
|
+
import { default as default41 } from "./components/Table/components/Table.js";
|
|
41
|
+
import { default as default42 } from "./components/TextArea/TextArea.js";
|
|
42
|
+
import { default as default43 } from "./components/Tooltip/Tooltip.js";
|
|
41
43
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
44
|
+
import { default as default44 } from "./components/Tree/components/SortableTree.js";
|
|
45
|
+
import { default as default45 } from "./components/Tree/components/Tree.js";
|
|
46
|
+
import { default as default46 } from "./components/TreeView/TreeView.js";
|
|
47
|
+
import { default as default47 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
48
|
+
import { default as default48 } from "./hooks/useBookmark/useBookmark.js";
|
|
49
|
+
import { default as default49 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
50
|
+
import { default as default50 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
51
|
+
import { default as default51 } from "./hooks/useCantoo/useCantoo.js";
|
|
52
|
+
import { default as default52 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useConversation/useConversation.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useDate/useDate.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useDebounce/useDebounce.js";
|
|
56
|
+
import { default as default56 } from "./hooks/useDirectory/useDirectory.js";
|
|
57
|
+
import { default as default57 } from "./hooks/useDropdown/useDropdown.js";
|
|
58
|
+
import { default as default58 } from "./hooks/useDropzone/useDropzone.js";
|
|
59
|
+
import { default as default59 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
60
|
+
import { default as default60 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
61
|
+
import { default as default61 } from "./hooks/useHover/useHover.js";
|
|
62
|
+
import { default as default62 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
63
|
+
import { default as default63 } from "./hooks/useImage/useImage.js";
|
|
64
|
+
import { default as default64 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
65
|
+
import { default as default65 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
66
|
+
import { default as default66 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
67
|
+
import { default as default67 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
68
|
+
import { default as default68 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
69
|
+
import { default as default69 } from "./hooks/useTitle/useTitle.js";
|
|
70
|
+
import { default as default70 } from "./hooks/useToast/useToast.js";
|
|
71
|
+
import { default as default71 } from "./hooks/useToggle/useToggle.js";
|
|
72
|
+
import { default as default72 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
73
|
+
import { default as default73 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
74
|
+
import { default as default74 } from "./hooks/useUpload/useUpload.js";
|
|
75
|
+
import { default as default75 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
76
|
+
import { default as default76 } from "./hooks/useUser/useUser.js";
|
|
77
|
+
import { default as default77 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
78
|
+
import { default as default78 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
79
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default79 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
80
|
+
import { default as default80 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
81
|
+
import { default as default81 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
82
|
+
import { default as default82 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
83
|
+
import { default as default83 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
|
|
84
|
+
import { default as default84 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
85
|
+
import { default as default85 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
86
|
+
import { default as default86 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
87
|
+
import { default as default87 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
88
|
+
import { default as default88 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
89
|
+
import { default as default89 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
90
|
+
import { default as default90 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
91
|
+
import { default as default91 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
92
|
+
import { default as default92 } from "./modules/multimedia/Embed/Embed.js";
|
|
93
|
+
import { default as default93 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
94
|
+
import { default as default94 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
95
|
+
import { default as default95 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
96
|
+
import { default as default96 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
97
|
+
import { default as default97 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
98
|
+
import { default as default98 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
99
|
+
import { default as default99 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
86
100
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
87
101
|
import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
|
|
88
102
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -99,6 +113,8 @@ import { TreeNode } from "./components/TreeView/TreeNode.js";
|
|
|
99
113
|
import { TreeNodeFolderWrapper, addNode, arrayUnique, deleteNode, findNodeById, findParentNode, findPathById, findTreeNode, getAncestors, hasChildren, modifyNode, moveNode, updateNode, wrapTreeNode } from "./components/TreeView/utilities/treeview.js";
|
|
100
114
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
101
115
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
116
|
+
import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
|
|
117
|
+
import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
|
|
102
118
|
import { EdificeClientProvider } from "./providers/EdificeClientProvider/EdificeClientProvider.js";
|
|
103
119
|
import { EdificeClientContext } from "./providers/EdificeClientProvider/EdificeClientProvider.context.js";
|
|
104
120
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
@@ -116,18 +132,21 @@ export {
|
|
|
116
132
|
default4 as AppHeader,
|
|
117
133
|
default5 as AppIcon,
|
|
118
134
|
default6 as Attachment,
|
|
135
|
+
default91 as AudioRecorder,
|
|
119
136
|
default7 as Avatar,
|
|
120
137
|
default8 as AvatarGroup,
|
|
121
138
|
default9 as Badge,
|
|
122
|
-
|
|
139
|
+
default86 as BlogPublic,
|
|
123
140
|
default10 as Breadcrumb,
|
|
124
141
|
default11 as Button,
|
|
142
|
+
default37 as ButtonSkeleton,
|
|
125
143
|
default14 as Card,
|
|
126
144
|
default15 as Checkbox,
|
|
127
145
|
default16 as ColorPicker,
|
|
128
146
|
default17 as ColorPickerItem,
|
|
129
147
|
Column,
|
|
130
148
|
default18 as Combobox,
|
|
149
|
+
default83 as ConfirmModal,
|
|
131
150
|
DefaultPalette,
|
|
132
151
|
DndTree,
|
|
133
152
|
default19 as Dropdown,
|
|
@@ -137,7 +156,9 @@ export {
|
|
|
137
156
|
EdificeClientProvider,
|
|
138
157
|
EdificeThemeContext,
|
|
139
158
|
EdificeThemeProvider,
|
|
159
|
+
default92 as Embed,
|
|
140
160
|
default21 as EmptyScreen,
|
|
161
|
+
ExternalLinker,
|
|
141
162
|
default22 as Flex,
|
|
142
163
|
default24 as FormControl,
|
|
143
164
|
default23 as FormText,
|
|
@@ -145,43 +166,54 @@ export {
|
|
|
145
166
|
default25 as Heading,
|
|
146
167
|
default12 as IconButton,
|
|
147
168
|
default26 as Image,
|
|
169
|
+
default93 as ImageEditor,
|
|
170
|
+
default94 as ImagePicker,
|
|
148
171
|
default27 as Input,
|
|
172
|
+
InternalLinker,
|
|
149
173
|
default28 as Label,
|
|
150
174
|
Layout,
|
|
151
175
|
List,
|
|
152
176
|
default29 as Loading,
|
|
153
177
|
default30 as LoadingScreen,
|
|
154
178
|
default31 as Logo,
|
|
179
|
+
default95 as MediaLibrary,
|
|
155
180
|
Menu,
|
|
156
181
|
MockedProvider,
|
|
157
182
|
default32 as Modal,
|
|
158
|
-
|
|
183
|
+
default84 as OnboardingModal,
|
|
159
184
|
Popover,
|
|
160
185
|
PopoverBody,
|
|
161
186
|
PopoverFooter,
|
|
162
187
|
PopoverHeader,
|
|
163
188
|
default33 as PreventPropagation,
|
|
164
|
-
|
|
189
|
+
default85 as PublishModal,
|
|
165
190
|
default34 as Radio,
|
|
166
191
|
ResourceModal,
|
|
167
192
|
default35 as SearchBar,
|
|
168
193
|
default13 as SearchButton,
|
|
169
194
|
default36 as Select,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
195
|
+
default89 as ShareBlog,
|
|
196
|
+
default88 as ShareModal,
|
|
197
|
+
default44 as SortableTree,
|
|
198
|
+
default39 as StackedGroup,
|
|
199
|
+
default40 as Switch,
|
|
200
|
+
default41 as Table,
|
|
176
201
|
Tabs,
|
|
177
|
-
|
|
202
|
+
default42 as TextArea,
|
|
203
|
+
default38 as TextSkeleton,
|
|
178
204
|
Toolbar,
|
|
179
|
-
|
|
180
|
-
|
|
205
|
+
default43 as Tooltip,
|
|
206
|
+
default45 as Tree,
|
|
181
207
|
TreeNode,
|
|
182
208
|
TreeNodeFolderWrapper,
|
|
183
|
-
|
|
184
|
-
|
|
209
|
+
default46 as TreeView,
|
|
210
|
+
default96 as VideoEmbed,
|
|
211
|
+
default97 as VideoRecorder,
|
|
212
|
+
default47 as VisuallyHidden,
|
|
213
|
+
WORKSPACE_SHARED_FOLDER_ID,
|
|
214
|
+
WORKSPACE_USER_FOLDER_ID,
|
|
215
|
+
default98 as Workspace,
|
|
216
|
+
default99 as WorkspaceFolders,
|
|
185
217
|
addNode,
|
|
186
218
|
arrayUnique,
|
|
187
219
|
buildTree,
|
|
@@ -209,46 +241,48 @@ export {
|
|
|
209
241
|
setRef,
|
|
210
242
|
updateNode,
|
|
211
243
|
updateParentIds,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
244
|
+
default48 as useBookmark,
|
|
245
|
+
default49 as useBreakpoint,
|
|
246
|
+
default50 as useBrowserInfo,
|
|
247
|
+
default51 as useCantoo,
|
|
216
248
|
useCheckable,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
249
|
+
default52 as useClickOutside,
|
|
250
|
+
default53 as useConversation,
|
|
251
|
+
default54 as useDate,
|
|
252
|
+
default55 as useDebounce,
|
|
253
|
+
default56 as useDirectory,
|
|
254
|
+
default57 as useDropdown,
|
|
255
|
+
default58 as useDropzone,
|
|
224
256
|
useDropzoneContext,
|
|
225
257
|
useEdificeClient,
|
|
226
|
-
|
|
258
|
+
default59 as useEdificeIcons,
|
|
227
259
|
useEdificeTheme,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
260
|
+
default60 as useHasWorkflow,
|
|
261
|
+
default61 as useHover,
|
|
262
|
+
default62 as useHttpErrorToast,
|
|
263
|
+
default63 as useImage,
|
|
264
|
+
default64 as useIsAdml,
|
|
265
|
+
default65 as useKeyPress,
|
|
266
|
+
default66 as useLibraryUrl,
|
|
267
|
+
default67 as useMediaLibrary,
|
|
268
|
+
default68 as useScrollToTop,
|
|
269
|
+
default90 as useShareMutation,
|
|
270
|
+
default69 as useTitle,
|
|
271
|
+
default70 as useToast,
|
|
272
|
+
default71 as useToggle,
|
|
273
|
+
default72 as useTrapFocus,
|
|
274
|
+
default73 as useTrashedResource,
|
|
243
275
|
useTreeSortable,
|
|
244
276
|
useTreeView,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
277
|
+
default87 as useUpdateMutation,
|
|
278
|
+
default74 as useUpload,
|
|
279
|
+
default75 as useUploadFiles,
|
|
280
|
+
default76 as useUser,
|
|
281
|
+
default77 as useWorkspaceFile,
|
|
282
|
+
default78 as useWorkspaceFolders,
|
|
283
|
+
default79 as useWorkspaceFoldersTree,
|
|
284
|
+
default80 as useWorkspaceSearch,
|
|
285
|
+
default81 as useXitiTrackPageLoad,
|
|
286
|
+
default82 as useZendeskGuide,
|
|
253
287
|
wrapTreeNode
|
|
254
288
|
};
|
package/dist/modals.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/modals/
|
|
2
|
-
import { default as default3 } from "./modules/modals/
|
|
3
|
-
import { default as default4 } from "./modules/modals/
|
|
4
|
-
import { default as default5 } from "./modules/modals/ResourceModal/
|
|
5
|
-
import { default as default6 } from "./modules/modals/
|
|
6
|
-
import { default as default7 } from "./modules/modals/ShareModal/
|
|
7
|
-
import { default as default8 } from "./modules/modals/ShareModal/
|
|
1
|
+
import { default as default2 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
|
|
2
|
+
import { default as default3 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
3
|
+
import { default as default4 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
4
|
+
import { default as default5 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
5
|
+
import { default as default6 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
6
|
+
import { default as default7 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
7
|
+
import { default as default8 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
8
|
+
import { default as default9 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
8
9
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
default2 as
|
|
12
|
-
default3 as
|
|
11
|
+
default5 as BlogPublic,
|
|
12
|
+
default2 as ConfirmModal,
|
|
13
|
+
default3 as OnboardingModal,
|
|
14
|
+
default4 as PublishModal,
|
|
13
15
|
ResourceModal,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
default8 as ShareBlog,
|
|
17
|
+
default7 as ShareModal,
|
|
18
|
+
default9 as useShareMutation,
|
|
19
|
+
default6 as useUpdateMutation
|
|
18
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkspaceVisibility } from '@edifice.io/client';
|
|
2
|
-
import { Content, FocusPosition, JSONContent } from '@tiptap/react';
|
|
2
|
+
import { Content, Extensions, FocusPosition, JSONContent } from '@tiptap/react';
|
|
3
3
|
export interface EditorRef {
|
|
4
4
|
/** Get the current content. */
|
|
5
5
|
getContent: (as: 'html' | 'json' | 'plain') => undefined | string | JSONContent;
|
|
@@ -7,6 +7,11 @@ export interface EditorRef {
|
|
|
7
7
|
isSpeeching: () => boolean;
|
|
8
8
|
/** [De]activate speech synthetisis */
|
|
9
9
|
toogleSpeechSynthetisis: () => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Set focus to the editor
|
|
12
|
+
* @param position
|
|
13
|
+
*/
|
|
14
|
+
setFocus: (position: FocusPosition) => void;
|
|
10
15
|
}
|
|
11
16
|
/**
|
|
12
17
|
* Editor component properties
|
|
@@ -41,6 +46,8 @@ export interface EditorProps {
|
|
|
41
46
|
editor: any;
|
|
42
47
|
}) => void;
|
|
43
48
|
cantooParam?: 'simplify' | 'none';
|
|
49
|
+
/** Extensions to add to the editor */
|
|
50
|
+
extensions?: Extensions;
|
|
44
51
|
}
|
|
45
52
|
declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<EditorRef>>;
|
|
46
53
|
export default Editor;
|
|
@@ -32,14 +32,15 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
32
32
|
placeholder = "",
|
|
33
33
|
visibility = "protected",
|
|
34
34
|
onContentChange,
|
|
35
|
-
cantooParam = "none"
|
|
35
|
+
cantooParam = "none",
|
|
36
|
+
extensions
|
|
36
37
|
}, ref) => {
|
|
37
38
|
const editorId = useId(), {
|
|
38
39
|
appCode
|
|
39
40
|
} = useEdificeClient(), {
|
|
40
41
|
editor,
|
|
41
42
|
editable
|
|
42
|
-
} = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility), {
|
|
43
|
+
} = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility, extensions), {
|
|
43
44
|
ref: mediaLibraryModalRef,
|
|
44
45
|
...mediaLibraryModalHandlers
|
|
45
46
|
} = useMediaLibraryEditor(editor), {
|
|
@@ -60,7 +61,10 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
toogleSpeechSynthetisis: speechSynthetisis.toggle,
|
|
63
|
-
isSpeeching: () => speechSynthetisis.isActivated
|
|
64
|
+
isSpeeching: () => speechSynthetisis.isActivated,
|
|
65
|
+
setFocus: (position) => {
|
|
66
|
+
editor && editor.commands.focus(position);
|
|
67
|
+
}
|
|
64
68
|
}));
|
|
65
69
|
const contooEditor = useCantooEditor(editor, cantooParam);
|
|
66
70
|
if (!editor) return null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface EditorSkeletonProps {
|
|
2
|
+
/** Mode of the editor, either 'edit' or 'read' */
|
|
3
|
+
mode?: 'edit' | 'read';
|
|
4
|
+
/** Display with or without a border */
|
|
5
|
+
variant?: 'outline' | 'ghost';
|
|
6
|
+
}
|
|
7
|
+
declare const EditorSkeleton: {
|
|
8
|
+
({ mode, variant, }: EditorSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default EditorSkeleton;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import ButtonSkeleton from "../../../../components/Skeleton/ButtonSkeleton.js";
|
|
4
|
+
import TextSkeleton from "../../../../components/Skeleton/TextSkeleton.js";
|
|
5
|
+
const EditorSkeleton = ({
|
|
6
|
+
mode = "read",
|
|
7
|
+
variant = "outline"
|
|
8
|
+
}) => {
|
|
9
|
+
const contentClass = clsx("d-flex flex-column gap-16 position-relative flex-fill", variant === "outline" && "border rounded-3 py-12 px-16");
|
|
10
|
+
return mode === "edit" ? /* @__PURE__ */ jsxs("div", { className: contentClass, children: [
|
|
11
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex col-12 gap-8 py-8 px-16", children: [
|
|
12
|
+
/* @__PURE__ */ jsx(ButtonSkeleton, { className: "col-2 flex-shrink-1" }),
|
|
13
|
+
/* @__PURE__ */ jsx(ButtonSkeleton, { className: "col-4" }),
|
|
14
|
+
/* @__PURE__ */ jsx(ButtonSkeleton, { className: "col-4" }),
|
|
15
|
+
/* @__PURE__ */ jsx(ButtonSkeleton, { className: "col-2" })
|
|
16
|
+
] }),
|
|
17
|
+
/* @__PURE__ */ jsxs("div", { className: "d-flex flex-column gap-8 px-16", children: [
|
|
18
|
+
/* @__PURE__ */ jsx(TextSkeleton, { className: "col-10" }),
|
|
19
|
+
/* @__PURE__ */ jsx(TextSkeleton, { className: "col-7" }),
|
|
20
|
+
/* @__PURE__ */ jsx(TextSkeleton, { className: "col-8" }),
|
|
21
|
+
/* @__PURE__ */ jsx(TextSkeleton, { className: "col-6" })
|
|
22
|
+
] })
|
|
23
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: contentClass, children: [
|
|
24
|
+
/* @__PURE__ */ jsx(TextSkeleton, { className: "col-10" }),
|
|
25
|
+
/* @__PURE__ */ jsx(TextSkeleton, { className: "col-7" }),
|
|
26
|
+
/* @__PURE__ */ jsx(TextSkeleton, { className: "col-8" })
|
|
27
|
+
] });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
EditorSkeleton as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConversationHistory } from "@edifice.io/tiptap-extensions/conversation-history";
|
|
2
|
+
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
3
|
+
const ConversationHistoryNodeView = (Component) => ConversationHistory.extend({
|
|
4
|
+
addNodeView() {
|
|
5
|
+
return ReactNodeViewRenderer(Component);
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
ConversationHistoryNodeView as default
|
|
10
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { default as AudioNodeView } from './AudioNodeView';
|
|
2
1
|
export { default as AttachmentNodeView } from './AttachmentNodeView';
|
|
2
|
+
export { default as AudioNodeView } from './AudioNodeView';
|
|
3
|
+
export { default as ConversationHistoryNodeView } from './ConversationHistoryNodeView';
|
|
3
4
|
export { default as ImageNodeView } from './ImageNodeView';
|
|
4
5
|
export { default as LinkerNodeView } from './LinkerNodeView';
|
|
5
6
|
export { default as VideoNodeView } from './VideoNodeView';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `ConversationHistoryRenderer` is a React component that renders a button to toggle the visibility
|
|
3
|
+
* of conversation history content. It uses the `@tiptap/react` library for rendering content and
|
|
4
|
+
* `clsx` for conditional class names. The component also utilizes the `useTranslation` hook from
|
|
5
|
+
* `react-i18next` for internationalization and a custom `useToggle` hook for managing the open state.
|
|
6
|
+
*/
|
|
7
|
+
declare const ConversationHistoryRenderer: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ConversationHistoryRenderer;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { NodeViewWrapper, NodeViewContent } from "@tiptap/react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import SvgIconRafterDown from "../../../icons/components/IconRafterDown.js";
|
|
6
|
+
import SvgIconRafterUp from "../../../icons/components/IconRafterUp.js";
|
|
7
|
+
import useToggle from "../../../../hooks/useToggle/useToggle.js";
|
|
8
|
+
import Button from "../../../../components/Button/Button.js";
|
|
9
|
+
const ConversationHistoryRenderer = () => {
|
|
10
|
+
const {
|
|
11
|
+
t
|
|
12
|
+
} = useTranslation("conversation"), [open, toggleOpen] = useToggle(!1), classes = clsx("conversation-history ps-16 pt-8", {
|
|
13
|
+
show: open
|
|
14
|
+
});
|
|
15
|
+
return /* @__PURE__ */ jsxs(NodeViewWrapper, { as: "div", contentEditable: !1, children: [
|
|
16
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: toggleOpen, size: "sm", className: "d-flex align-items-center gap-4 text-gray-800 fs-6 mt-24", children: open ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
+
t("message.history.hide"),
|
|
18
|
+
/* @__PURE__ */ jsx(SvgIconRafterUp, { width: 16, height: 16 })
|
|
19
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
t("message.history.show"),
|
|
21
|
+
/* @__PURE__ */ jsx(SvgIconRafterDown, { width: 16, height: 16 })
|
|
22
|
+
] }) }),
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: classes, "data-testid": "conversation-history-content", children: /* @__PURE__ */ jsx(NodeViewContent, {}) })
|
|
24
|
+
] });
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
ConversationHistoryRenderer as default
|
|
28
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { default as AudioRenderer } from './AudioRenderer';
|
|
2
1
|
export { default as AttachmentRenderer } from './AttachmentRenderer';
|
|
2
|
+
export { default as AudioRenderer } from './AudioRenderer';
|
|
3
|
+
export { default as ConversationHistoryRenderer } from './ConversationHistoryRenderer';
|
|
3
4
|
export { default as LinkerRenderer } from './LinkerRenderer';
|
|
4
5
|
export { default as MediaRenderer } from './MediaRenderer';
|
|
5
6
|
export { default as InformationPaneRenderer } from './InformationPaneRenderer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Content, FocusPosition } from '@tiptap/react';
|
|
1
|
+
import { Content, Extensions, FocusPosition } from '@tiptap/react';
|
|
2
2
|
import { WorkspaceVisibility } from '@edifice.io/client';
|
|
3
3
|
/**
|
|
4
4
|
* Hook that creates a tiptap editor instance.
|
|
@@ -7,10 +7,14 @@ import { WorkspaceVisibility } from '@edifice.io/client';
|
|
|
7
7
|
* @param content default rich content
|
|
8
8
|
* @param focus set focus position to the editor
|
|
9
9
|
* @param placeholder editor placeholder content
|
|
10
|
+
* @param onContentChange callback to be called on content change
|
|
11
|
+
* @param visibility workspace visibility
|
|
12
|
+
* @param extensions extensions to add to the editor
|
|
13
|
+
* @returns the editor instance and the editable state
|
|
10
14
|
*/
|
|
11
15
|
export declare const useTipTapEditor: (editable: boolean, content: Content, focus?: FocusPosition, placeholder?: string, onContentChange?: ({ editor }: {
|
|
12
16
|
editor: any;
|
|
13
|
-
}) => void, visibility?: WorkspaceVisibility) => {
|
|
17
|
+
}) => void, visibility?: WorkspaceVisibility, extensions?: Extensions) => {
|
|
14
18
|
editor: import('@tiptap/core').Editor | null;
|
|
15
19
|
editable: boolean;
|
|
16
20
|
};
|
|
@@ -38,7 +38,7 @@ import AudioRenderer from "../components/Renderer/AudioRenderer.js";
|
|
|
38
38
|
import LinkerRenderer from "../components/Renderer/LinkerRenderer.js";
|
|
39
39
|
import AttachmentRenderer from "../components/Renderer/AttachmentRenderer.js";
|
|
40
40
|
import InformationPaneRenderer from "../components/Renderer/InformationPaneRenderer.js";
|
|
41
|
-
const useTipTapEditor = (editable, content, focus, placeholder, onContentChange, visibility = "protected") => {
|
|
41
|
+
const useTipTapEditor = (editable, content, focus, placeholder, onContentChange, visibility = "protected", extensions) => {
|
|
42
42
|
const {
|
|
43
43
|
currentLanguage
|
|
44
44
|
} = useEdificeClient(), {
|
|
@@ -65,7 +65,7 @@ const useTipTapEditor = (editable, content, focus, placeholder, onContentChange,
|
|
|
65
65
|
levels: [1, 2]
|
|
66
66
|
}), Typography, FontSize, SpeechRecognition, SpeechSynthesis.configure({
|
|
67
67
|
lang: (currentLanguage == null ? void 0 : currentLanguage.length) === 2 ? `${currentLanguage}-${currentLanguage.toUpperCase()}` : "fr-FR"
|
|
68
|
-
}), Iframe, Hyperlink, FontFamily, Mathematics, Alert, VideoNodeView(MediaRenderer), AudioNodeView(AudioRenderer), LinkerNodeView(LinkerRenderer), ImageNodeView(MediaRenderer, uploadFile), AttachmentNodeView(AttachmentRenderer), InformationPaneNodeView(InformationPaneRenderer)],
|
|
68
|
+
}), Iframe, Hyperlink, FontFamily, Mathematics, Alert, VideoNodeView(MediaRenderer), AudioNodeView(AudioRenderer), LinkerNodeView(LinkerRenderer), ImageNodeView(MediaRenderer, uploadFile), AttachmentNodeView(AttachmentRenderer), InformationPaneNodeView(InformationPaneRenderer), ...extensions || []],
|
|
69
69
|
content,
|
|
70
70
|
// If the onContentChange callback is provided, we call it on every content change.
|
|
71
71
|
...onContentChange ? {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconFolderAdd: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconFolderAdd;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconFolderAdd = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("g", { clipPath: "url(#icon-folder-add_svg__a)", children: /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.985 5.283A2 2 0 0 0 12.965 7H22v12H2V4h7.5a1.5 1.5 0 0 1 1.485 1.283M1.902 2C.852 2 0 2.852 0 3.902V19a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-9.035A3.5 3.5 0 0 0 9.5 2zM12 8a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V9a1 1 0 0 1 1-1", clipRule: "evenodd" }) }),
|
|
9
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-folder-add_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
SvgIconFolderAdd as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconFolderDelete: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconFolderDelete;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconFolderDelete = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M2.756 2A2.756 2.756 0 0 0 0 4.756V18a3 3 0 0 0 3 3h6.5a1 1 0 1 0 0-2H3a1 1 0 0 1-1-1V4.756C2 4.34 2.339 4 2.756 4H9.5A2.5 2.5 0 0 1 12 6.5a1 1 0 0 0 1 1h8a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3h-7.111A4.5 4.5 0 0 0 9.5 2zm20.85 9.536a1 1 0 0 1 0 1.414l-3.535 3.535 3.536 3.536a1 1 0 0 1-1.415 1.414L18.657 17.9l-3.536 3.535a1 1 0 0 1-1.414-1.414l3.536-3.536-3.536-3.535a1 1 0 0 1 1.414-1.414l3.536 3.535 3.535-3.535a1 1 0 0 1 1.415 0", clipRule: "evenodd" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconFolderDelete as default
|
|
12
|
+
};
|