@edifice.io/react 2.1.1 → 2.1.2-develop-pedago.20250304144959
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/Avatar/Avatar.d.ts +21 -0
- package/dist/components/Avatar/Avatar.js +15 -2
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +24 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +24 -0
- package/dist/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.d.ts +6 -2
- package/dist/components/Dropdown/Dropdown.js +2 -0
- package/dist/components/Dropdown/DropdownItem.d.ts +5 -1
- package/dist/components/Dropdown/DropdownItem.js +7 -2
- package/dist/components/Dropdown/DropdownTrigger.d.ts +30 -1
- package/dist/components/Dropdown/DropdownTrigger.js +23 -3
- package/dist/components/PreventPropagation/PreventPropagation.d.ts +10 -0
- package/dist/components/PreventPropagation/PreventPropagation.js +9 -0
- package/dist/components/PreventPropagation/index.d.ts +2 -0
- package/dist/components/StackedGroup/StackedGroup.d.ts +23 -0
- package/dist/components/StackedGroup/StackedGroup.js +21 -0
- package/dist/components/StackedGroup/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +25 -0
- package/dist/components/Switch/Switch.js +25 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/editor.js +30 -27
- package/dist/hooks/useCheckable/useCheckable.d.ts +5 -1
- package/dist/hooks/useConf/useConf.d.ts +1 -1
- package/dist/hooks/useSession/useSession.d.ts +1 -1
- package/dist/hooks/useUpload/useUpload.js +8 -2
- package/dist/icons.js +200 -196
- package/dist/index.js +155 -147
- package/dist/modules/comments/hooks/useAutosizeTextarea.d.ts +5 -1
- package/dist/modules/editor/components/Editor/Editor.js +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +1 -0
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +1 -0
- package/dist/modules/editor/components/Renderer/AudioRenderer.js +24 -3
- package/dist/modules/editor/hooks/useTipTapEditor.js +1 -1
- package/dist/modules/editor/index.d.ts +3 -1
- package/dist/modules/icons/components/IconHandMove.d.ts +7 -0
- package/dist/modules/icons/components/IconHandMove.js +12 -0
- package/dist/modules/icons/components/IconToolCenter.d.ts +7 -0
- package/dist/modules/icons/components/IconToolCenter.js +12 -0
- package/dist/modules/icons/components/index.d.ts +2 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +5 -1
- package/dist/multimedia.js +10 -10
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +9 -6
package/dist/index.js
CHANGED
|
@@ -3,97 +3,101 @@ import { default as default3 } from "./components/Alert/Alert.js";
|
|
|
3
3
|
import { default as default4 } from "./components/AppHeader/AppHeader.js";
|
|
4
4
|
import { default as default5 } from "./components/AppIcon/AppIcon.js";
|
|
5
5
|
import { default as default6 } from "./components/Attachment/Attachment.js";
|
|
6
|
-
import { default as default7 } from "./components/
|
|
7
|
-
import { default as default8 } from "./components/
|
|
8
|
-
import { default as default9 } from "./components/
|
|
9
|
-
import { default as default10 } from "./components/
|
|
10
|
-
import { default as default11 } from "./components/
|
|
11
|
-
import { default as default12 } from "./components/
|
|
12
|
-
import { default as default13 } from "./components/
|
|
13
|
-
import { default as default14 } from "./components/
|
|
14
|
-
import { default as default15 } from "./components/
|
|
15
|
-
import { default as default16 } from "./components/
|
|
16
|
-
import { default as default17 } from "./components/
|
|
17
|
-
import { default as default18 } from "./components/
|
|
18
|
-
import { default as default19 } from "./components/
|
|
19
|
-
import { default as default20 } from "./components/
|
|
20
|
-
import { default as default21 } from "./components/
|
|
21
|
-
import { default as default22 } from "./components/
|
|
22
|
-
import { default as default23 } from "./components/
|
|
6
|
+
import { default as default7 } from "./components/Avatar/Avatar.js";
|
|
7
|
+
import { default as default8 } from "./components/AvatarGroup/AvatarGroup.js";
|
|
8
|
+
import { default as default9 } from "./components/Badge/Badge.js";
|
|
9
|
+
import { default as default10 } from "./components/Breadcrumb/Breadcrumb.js";
|
|
10
|
+
import { default as default11 } from "./components/Button/Button.js";
|
|
11
|
+
import { default as default12 } from "./components/Button/IconButton.js";
|
|
12
|
+
import { default as default13 } from "./components/Button/SearchButton.js";
|
|
13
|
+
import { default as default14 } from "./components/Card/Card.js";
|
|
14
|
+
import { default as default15 } from "./components/Checkbox/Checkbox.js";
|
|
15
|
+
import { default as default16 } from "./components/ColorPicker/ColorPicker.js";
|
|
16
|
+
import { default as default17 } from "./components/ColorPicker/ColorPickerItem.js";
|
|
17
|
+
import { default as default18 } from "./components/Combobox/Combobox.js";
|
|
18
|
+
import { default as default19 } from "./components/Dropdown/Dropdown.js";
|
|
19
|
+
import { default as default20 } from "./components/Dropzone/Dropzone.js";
|
|
20
|
+
import { default as default21 } from "./components/EmptyScreen/EmptyScreen.js";
|
|
21
|
+
import { default as default22 } from "./components/Form/FormText.js";
|
|
22
|
+
import { default as default23 } from "./components/Form/FormControl.js";
|
|
23
|
+
import { default as default24 } from "./components/Heading/Heading.js";
|
|
24
|
+
import { default as default25 } from "./components/Image/Image.js";
|
|
25
|
+
import { default as default26 } from "./components/Input/Input.js";
|
|
26
|
+
import { default as default27 } from "./components/Label/Label.js";
|
|
27
|
+
import { default as default28 } from "./components/Loading/Loading.js";
|
|
28
|
+
import { default as default29 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
29
|
+
import { default as default30 } from "./components/Logo/Logo.js";
|
|
30
|
+
import { default as default31 } from "./components/Modal/Modal.js";
|
|
31
|
+
import { default as default32 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
32
|
+
import { default as default33 } from "./components/Radio/Radio.js";
|
|
33
|
+
import { default as default34 } from "./components/SearchBar/SearchBar.js";
|
|
34
|
+
import { default as default35 } from "./components/Select/Select.js";
|
|
35
|
+
import { default as default36 } from "./components/StackedGroup/StackedGroup.js";
|
|
36
|
+
import { default as default37 } from "./components/Switch/Switch.js";
|
|
37
|
+
import { default as default38 } from "./components/Table/components/Table.js";
|
|
38
|
+
import { default as default39 } from "./components/TextArea/TextArea.js";
|
|
39
|
+
import { default as default40 } from "./components/Tooltip/Tooltip.js";
|
|
23
40
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
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
|
|
41
|
+
import { default as default41 } from "./components/Tree/components/SortableTree.js";
|
|
42
|
+
import { default as default42 } from "./components/Tree/components/Tree.js";
|
|
43
|
+
import { default as default43 } from "./components/TreeView/TreeView.js";
|
|
44
|
+
import { default as default44 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
45
|
+
import { default as default45 } from "./hooks/useBookmark/useBookmark.js";
|
|
46
|
+
import { default as default46 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
47
|
+
import { default as default47 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
48
|
+
import { default as default48 } from "./hooks/useCantoo/useCantoo.js";
|
|
49
|
+
import { default as default49 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
50
|
+
import { default as default50 } from "./hooks/useConversation/useConversation.js";
|
|
51
|
+
import { default as default51 } from "./hooks/useDate/useDate.js";
|
|
52
|
+
import { default as default52 } from "./hooks/useDebounce/useDebounce.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useDirectory/useDirectory.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useDropdown/useDropdown.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useDropzone/useDropzone.js";
|
|
56
|
+
import { default as default56 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
57
|
+
import { default as default57 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
58
|
+
import { default as default58 } from "./hooks/useHover/useHover.js";
|
|
59
|
+
import { default as default59 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
60
|
+
import { default as default60 } from "./hooks/useImage/useImage.js";
|
|
61
|
+
import { default as default61 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
62
|
+
import { default as default62 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
63
|
+
import { default as default63 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
64
|
+
import { default as default64 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
65
|
+
import { default as default65 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
66
|
+
import { default as default66 } from "./hooks/useTitle/useTitle.js";
|
|
67
|
+
import { default as default67 } from "./hooks/useToast/useToast.js";
|
|
68
|
+
import { default as default68 } from "./hooks/useToggle/useToggle.js";
|
|
69
|
+
import { default as default69 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
70
|
+
import { default as default70 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
71
|
+
import { default as default71 } from "./hooks/useUpload/useUpload.js";
|
|
72
|
+
import { default as default72 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
73
|
+
import { default as default73 } from "./hooks/useUser/useUser.js";
|
|
74
|
+
import { default as default74 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
75
|
+
import { default as default75 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
76
|
+
import { default as default76 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
77
|
+
import { default as default77 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
78
|
+
import { default as default78 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
79
|
+
import { default as default79 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
80
|
+
import { default as default80 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
81
|
+
import { default as default81 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
82
|
+
import { default as default82 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
83
|
+
import { default as default83 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
84
|
+
import { default as default84 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
59
85
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
60
|
-
import { default as default59 } from "./components/Combobox/Combobox.js";
|
|
61
86
|
import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
|
|
62
|
-
import { default as default60 } from "./components/Form/FormControl.js";
|
|
63
87
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
64
|
-
import { default as default61 } from "./components/Heading/Heading.js";
|
|
65
|
-
import { default as default62 } from "./components/Input/Input.js";
|
|
66
|
-
import { default as default63 } from "./components/Label/Label.js";
|
|
67
88
|
import { Layout } from "./components/Layout/Layout.js";
|
|
68
89
|
import { List } from "./components/List/List.js";
|
|
69
|
-
import { default as default64 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
70
90
|
import { Menu } from "./components/Menu/components/Menu.js";
|
|
71
|
-
import { default as default65 } from "./components/Modal/Modal.js";
|
|
72
91
|
import { Popover, PopoverBody, PopoverFooter, PopoverHeader } from "./components/Popover/Popover.js";
|
|
73
|
-
import { default as default66 } from "./components/Radio/Radio.js";
|
|
74
92
|
import { Tabs } from "./components/Tabs/components/Tabs.js";
|
|
75
|
-
import { default as default67 } from "./components/TextArea/TextArea.js";
|
|
76
93
|
import { Toolbar } from "./components/Toolbar/Toolbar.js";
|
|
77
|
-
import { default as default68 } from "./components/Tooltip/Tooltip.js";
|
|
78
94
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
79
95
|
import { buildTree, determineNewParentId, findItemIndexInTree, flattenNodes, flattenTree, generateUpdateData, getActiveAndOverNodes, getDragDepth, getIndicesToUpdate, getProjection, updateParentIds } from "./components/Tree/utilities/tree-sortable.js";
|
|
80
96
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
81
97
|
import { TreeNode } from "./components/TreeView/TreeNode.js";
|
|
82
98
|
import { TreeNodeFolderWrapper, addNode, arrayUnique, deleteNode, findNodeById, findParentNode, findPathById, findTreeNode, getAncestors, hasChildren, modifyNode, moveNode, updateNode, wrapTreeNode } from "./components/TreeView/utilities/treeview.js";
|
|
83
|
-
import { default as default69 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
84
99
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
85
|
-
import { default as default70 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
86
|
-
import { default as default71 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
87
|
-
import { default as default72 } from "./hooks/useToast/useToast.js";
|
|
88
|
-
import { default as default73 } from "./hooks/useUser/useUser.js";
|
|
89
|
-
import { default as default74 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
90
|
-
import { default as default75 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
91
|
-
import { default as default76 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
92
|
-
import { default as default77 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
93
100
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
94
|
-
import { default as default78 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
95
|
-
import { default as default79 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
96
|
-
import { default as default80 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
97
101
|
import { EdificeClientProvider } from "./providers/EdificeClientProvider/EdificeClientProvider.js";
|
|
98
102
|
import { EdificeClientContext } from "./providers/EdificeClientProvider/EdificeClientProvider.context.js";
|
|
99
103
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
@@ -111,67 +115,71 @@ export {
|
|
|
111
115
|
default4 as AppHeader,
|
|
112
116
|
default5 as AppIcon,
|
|
113
117
|
default6 as Attachment,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
default11 as
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
default7 as Avatar,
|
|
119
|
+
default8 as AvatarGroup,
|
|
120
|
+
default9 as Badge,
|
|
121
|
+
default80 as BlogPublic,
|
|
122
|
+
default10 as Breadcrumb,
|
|
123
|
+
default11 as Button,
|
|
124
|
+
default14 as Card,
|
|
125
|
+
default15 as Checkbox,
|
|
126
|
+
default16 as ColorPicker,
|
|
127
|
+
default17 as ColorPickerItem,
|
|
123
128
|
Column,
|
|
124
|
-
|
|
129
|
+
default18 as Combobox,
|
|
125
130
|
DefaultPalette,
|
|
126
131
|
DndTree,
|
|
127
|
-
|
|
128
|
-
|
|
132
|
+
default19 as Dropdown,
|
|
133
|
+
default20 as Dropzone,
|
|
129
134
|
DropzoneContext,
|
|
130
135
|
EdificeClientContext,
|
|
131
136
|
EdificeClientProvider,
|
|
132
137
|
EdificeThemeContext,
|
|
133
138
|
EdificeThemeProvider,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
default21 as EmptyScreen,
|
|
140
|
+
default23 as FormControl,
|
|
141
|
+
default22 as FormText,
|
|
137
142
|
Grid,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
default24 as Heading,
|
|
144
|
+
default12 as IconButton,
|
|
145
|
+
default25 as Image,
|
|
146
|
+
default26 as Input,
|
|
147
|
+
default27 as Label,
|
|
143
148
|
Layout,
|
|
144
149
|
List,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
default28 as Loading,
|
|
151
|
+
default29 as LoadingScreen,
|
|
152
|
+
default30 as Logo,
|
|
148
153
|
Menu,
|
|
149
154
|
MockedProvider,
|
|
150
|
-
|
|
151
|
-
|
|
155
|
+
default31 as Modal,
|
|
156
|
+
default78 as OnboardingModal,
|
|
152
157
|
Popover,
|
|
153
158
|
PopoverBody,
|
|
154
159
|
PopoverFooter,
|
|
155
160
|
PopoverHeader,
|
|
156
|
-
|
|
157
|
-
|
|
161
|
+
default32 as PreventPropagation,
|
|
162
|
+
default79 as PublishModal,
|
|
163
|
+
default33 as Radio,
|
|
158
164
|
ResourceModal,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
default34 as SearchBar,
|
|
166
|
+
default13 as SearchButton,
|
|
167
|
+
default35 as Select,
|
|
168
|
+
default83 as ShareBlog,
|
|
169
|
+
default82 as ShareModal,
|
|
170
|
+
default41 as SortableTree,
|
|
171
|
+
default36 as StackedGroup,
|
|
172
|
+
default37 as Switch,
|
|
173
|
+
default38 as Table,
|
|
166
174
|
Tabs,
|
|
167
|
-
|
|
175
|
+
default39 as TextArea,
|
|
168
176
|
Toolbar,
|
|
169
|
-
|
|
170
|
-
|
|
177
|
+
default40 as Tooltip,
|
|
178
|
+
default42 as Tree,
|
|
171
179
|
TreeNode,
|
|
172
180
|
TreeNodeFolderWrapper,
|
|
173
|
-
|
|
174
|
-
|
|
181
|
+
default43 as TreeView,
|
|
182
|
+
default44 as VisuallyHidden,
|
|
175
183
|
addNode,
|
|
176
184
|
arrayUnique,
|
|
177
185
|
buildTree,
|
|
@@ -199,46 +207,46 @@ export {
|
|
|
199
207
|
setRef,
|
|
200
208
|
updateNode,
|
|
201
209
|
updateParentIds,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
210
|
+
default45 as useBookmark,
|
|
211
|
+
default46 as useBreakpoint,
|
|
212
|
+
default47 as useBrowserInfo,
|
|
213
|
+
default48 as useCantoo,
|
|
206
214
|
useCheckable,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
215
|
+
default49 as useClickOutside,
|
|
216
|
+
default50 as useConversation,
|
|
217
|
+
default51 as useDate,
|
|
218
|
+
default52 as useDebounce,
|
|
219
|
+
default53 as useDirectory,
|
|
220
|
+
default54 as useDropdown,
|
|
221
|
+
default55 as useDropzone,
|
|
214
222
|
useDropzoneContext,
|
|
215
223
|
useEdificeClient,
|
|
216
|
-
|
|
224
|
+
default56 as useEdificeIcons,
|
|
217
225
|
useEdificeTheme,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
226
|
+
default57 as useHasWorkflow,
|
|
227
|
+
default58 as useHover,
|
|
228
|
+
default59 as useHttpErrorToast,
|
|
229
|
+
default60 as useImage,
|
|
230
|
+
default61 as useIsAdml,
|
|
231
|
+
default62 as useKeyPress,
|
|
232
|
+
default63 as useLibraryUrl,
|
|
233
|
+
default64 as useMediaLibrary,
|
|
234
|
+
default65 as useScrollToTop,
|
|
235
|
+
default84 as useShareMutation,
|
|
236
|
+
default66 as useTitle,
|
|
237
|
+
default67 as useToast,
|
|
238
|
+
default68 as useToggle,
|
|
239
|
+
default69 as useTrapFocus,
|
|
240
|
+
default70 as useTrashedResource,
|
|
233
241
|
useTreeSortable,
|
|
234
242
|
useTreeView,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
243
|
+
default81 as useUpdateMutation,
|
|
244
|
+
default71 as useUpload,
|
|
245
|
+
default72 as useUploadFiles,
|
|
238
246
|
default73 as useUser,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
247
|
+
default74 as useWorkspaceFile,
|
|
248
|
+
default75 as useWorkspaceSearch,
|
|
249
|
+
default76 as useXitiTrackPageLoad,
|
|
250
|
+
default77 as useZendeskGuide,
|
|
243
251
|
wrapTreeNode
|
|
244
252
|
};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export declare const useAutosizeTextarea: (
|
|
1
|
+
export declare const useAutosizeTextarea: (
|
|
2
|
+
/**
|
|
3
|
+
* Set autofocus when editing content
|
|
4
|
+
*/
|
|
5
|
+
autoFocus?: boolean) => [React.RefObject<HTMLTextAreaElement>, (event: React.FocusEvent<HTMLTextAreaElement>) => void, () => void];
|
|
@@ -2,6 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useId, useImperativeHandle, Suspense, lazy } from "react";
|
|
3
3
|
import { EditorContent } from "@tiptap/react";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
+
import "@tiptap/starter-kit";
|
|
5
6
|
import { useEdificeClient } from "../../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
6
7
|
import { useMathsStyles } from "../../hooks/useMathsStyles.js";
|
|
7
8
|
import { useTipTapEditor } from "../../hooks/useTipTapEditor.js";
|
|
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import "@tiptap/react";
|
|
5
|
+
import "@tiptap/starter-kit";
|
|
5
6
|
import SvgIconAlignLeft from "../../../icons/components/IconAlignLeft.js";
|
|
6
7
|
import SvgIconBulletList from "../../../icons/components/IconBulletList.js";
|
|
7
8
|
import SvgIconLandscape from "../../../icons/components/IconLandscape.js";
|
|
@@ -2,6 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { NodeViewWrapper } from "@tiptap/react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
|
+
import "@tiptap/starter-kit";
|
|
5
6
|
import SvgIconDelete from "../../../icons/components/IconDelete.js";
|
|
6
7
|
import SvgIconDownload from "../../../icons/components/IconDownload.js";
|
|
7
8
|
import Attachment from "../../../../components/Attachment/Attachment.js";
|
|
@@ -5,9 +5,30 @@ const AudioRenderer = (props) => {
|
|
|
5
5
|
node
|
|
6
6
|
} = props;
|
|
7
7
|
return /* @__PURE__ */ jsx(NodeViewWrapper, { style: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
cursor: "text"
|
|
9
|
+
}, children: /* @__PURE__ */ jsx("div", { className: "audio-wrapper", "data-drag-handle": !0, style: ((textalign) => {
|
|
10
|
+
switch (textalign) {
|
|
11
|
+
case "center":
|
|
12
|
+
case "justify":
|
|
13
|
+
return {
|
|
14
|
+
marginLeft: "auto",
|
|
15
|
+
marginRight: "auto",
|
|
16
|
+
width: "fit-content"
|
|
17
|
+
};
|
|
18
|
+
case "left":
|
|
19
|
+
return {
|
|
20
|
+
marginRight: "auto",
|
|
21
|
+
width: "fit-content"
|
|
22
|
+
};
|
|
23
|
+
case "right":
|
|
24
|
+
return {
|
|
25
|
+
marginLeft: "auto",
|
|
26
|
+
width: "fit-content"
|
|
27
|
+
};
|
|
28
|
+
default:
|
|
29
|
+
return {};
|
|
30
|
+
}
|
|
31
|
+
})(node.attrs.textAlign), children: /* @__PURE__ */ jsx("audio", { src: node.attrs.src, controls: !0, "data-document-id": node.attrs.src, children: /* @__PURE__ */ jsx("track", { kind: "captions" }) }) }) });
|
|
11
32
|
};
|
|
12
33
|
export {
|
|
13
34
|
AudioRenderer as default
|
|
@@ -58,7 +58,7 @@ const useTipTapEditor = (editable, content, focus, placeholder, onContentChange,
|
|
|
58
58
|
}), Underline, TextStyle, Color, Subscript, Superscript, Table.configure({
|
|
59
59
|
resizable: !0
|
|
60
60
|
}), TableRow, TableHeader, TableCell, TextAlign.configure({
|
|
61
|
-
types: ["heading", "paragraph", "video"]
|
|
61
|
+
types: ["heading", "paragraph", "video", "audio"]
|
|
62
62
|
}), CustomHeading.configure({
|
|
63
63
|
levels: [1, 2]
|
|
64
64
|
}), Typography, FontSize, SpeechRecognition, SpeechSynthesis.configure({
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as StarterKit } from '@tiptap/starter-kit';
|
|
2
|
+
export { EditorContent, type Content, useEditor, Editor as EditorInstance, } from '@tiptap/react';
|
|
3
|
+
export { StarterKit };
|
|
2
4
|
export * from './components';
|
|
3
5
|
export * from './hooks';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconHandMove: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconHandMove;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconHandMove = ({
|
|
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: "M9.144 4.129C9.072 4.192 9 4.293 9 4.5V13a1 1 0 0 1-1.707.707l-1.469-1.469a.87.87 0 0 0-1.06-.13.5.5 0 0 0-.178.674l1.093 1.947c1.126 2.011 1.687 3.011 2.155 3.72l.008.011c.389.607.887 1.278 2.012 1.952a5 5 0 0 0 2.354.588H14a5 5 0 0 0 5-5v-4.5a.5.5 0 1 0-1 0v.5a1 1 0 1 1-2 0v-1.5c0-.197-.07-.3-.149-.367A.57.57 0 0 0 15.5 10a.57.57 0 0 0-.351.133c-.079.068-.149.17-.149.367V12a1 1 0 1 1-2 0V9.5c0-.194-.07-.297-.15-.366A.57.57 0 0 0 12.5 9a.57.57 0 0 0-.35.134c-.08.07-.15.172-.15.366V12a1 1 0 1 1-2 0V4.5c0-.206-.072-.307-.144-.37A.57.57 0 0 0 9.497 4a.56.56 0 0 0-.353.129M12 7.055V4.5c0-1.682-1.388-2.497-2.497-2.5C8.385 1.997 7 2.822 7 4.5v6.111a2.87 2.87 0 0 0-3.263-.22 2.5 2.5 0 0 0-.895 3.371c.4.71.75 1.336 1.061 1.891 1.137 2.029 1.747 3.118 2.259 3.893.5.778 1.206 1.714 2.688 2.596l.037.02c1.02.55 2.162.838 3.321.838H14a7 7 0 0 0 7-7v-4.5a2.5 2.5 0 0 0-3.372-2.343C17.135 8.379 16.238 8 15.5 8c-.278 0-.578.054-.87.162C14.135 7.38 13.234 7 12.5 7c-.16 0-.33.018-.5.055m1.025-3.78a1 1 0 0 1 1.2-.75c1.46.337 3.04.873 4.287 1.616a1 1 0 1 1-1.024 1.718c-1.005-.599-2.366-1.074-3.713-1.385a1 1 0 0 1-.75-1.199M1.338 5.25a1 1 0 1 0 1.324 1.5c.739-.653 1.87-1.416 2.77-1.848a1 1 0 0 0-.865-1.803c-1.077.517-2.36 1.385-3.229 2.151", clipRule: "evenodd" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconHandMove as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconToolCenter: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconToolCenter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconToolCenter = ({
|
|
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: "M3 4.222C3 3.547 3.547 3 4.222 3h3.89a1 1 0 1 0 0-2h-3.89A3.22 3.22 0 0 0 1 4.222v2.89a1 1 0 1 0 2 0zM15.89 1a1 1 0 1 0 0 2h3.888C20.453 3 21 3.547 21 4.222v2.89a1 1 0 1 0 2 0v-2.89A3.22 3.22 0 0 0 19.778 1zM3 16.89a1 1 0 1 0-2 0v2.888A3.22 3.22 0 0 0 4.222 23h3.89a1 1 0 0 0 0-2h-3.89A1.22 1.22 0 0 1 3 19.778zm20 0a1 1 0 0 0-2 0v2.888c0 .675-.547 1.222-1.222 1.222h-3.889a1 1 0 1 0 0 2h3.889A3.22 3.22 0 0 0 23 19.778zM6 11a1 1 0 1 0 0 2h2q.063 0 .124-.008a4.01 4.01 0 0 0 2.884 2.884Q11 15.936 11 16v2a1 1 0 1 0 2 0v-2q0-.063-.008-.124a4.01 4.01 0 0 0 2.884-2.884q.06.008.124.008h2a1 1 0 1 0 0-2h-2q-.063 0-.124.008a4.01 4.01 0 0 0-2.884-2.884Q13 8.064 13 8V6a1 1 0 1 0-2 0v2q0 .063.008.124a4.01 4.01 0 0 0-2.884 2.884A1 1 0 0 0 8 11zm8 1a2 2 0 1 1-4 0 2 2 0 0 1 4 0", clipRule: "evenodd" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconToolCenter as default
|
|
12
|
+
};
|
|
@@ -49,6 +49,7 @@ export { default as IconFolder } from './IconFolder';
|
|
|
49
49
|
export { default as IconForgoing } from './IconForgoing';
|
|
50
50
|
export { default as IconFullScreen } from './IconFullScreen';
|
|
51
51
|
export { default as IconGlobe } from './IconGlobe';
|
|
52
|
+
export { default as IconHandMove } from './IconHandMove';
|
|
52
53
|
export { default as IconHeadphone } from './IconHeadphone';
|
|
53
54
|
export { default as IconHide } from './IconHide';
|
|
54
55
|
export { default as IconHighlightColumn } from './IconHighlightColumn';
|
|
@@ -131,6 +132,7 @@ export { default as IconTextToSpeech } from './IconTextToSpeech';
|
|
|
131
132
|
export { default as IconTextTypo } from './IconTextTypo';
|
|
132
133
|
export { default as IconTextUnderline } from './IconTextUnderline';
|
|
133
134
|
export { default as IconTextVanilla } from './IconTextVanilla';
|
|
135
|
+
export { default as IconToolCenter } from './IconToolCenter';
|
|
134
136
|
export { default as IconTool } from './IconTool';
|
|
135
137
|
export { default as IconTrendingUp } from './IconTrendingUp';
|
|
136
138
|
export { default as IconUndo } from './IconUndo';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { CreateParameters, CreateResult, ID, IFolder, UpdateParameters, UpdateResult } from '@edifice.io/client';
|
|
3
|
-
import { UseMutationResult } from '
|
|
3
|
+
import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
4
4
|
export interface FormInputs {
|
|
5
5
|
title: string;
|
|
6
6
|
description: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UpdateParameters, UpdateResult } from '@edifice.io/client';
|
|
2
|
-
import { UseMutationOptions, UseMutationResult } from '
|
|
2
|
+
import { UseMutationOptions, UseMutationResult } from '../../../../node_modules/@tanstack/react-query';
|
|
3
3
|
declare const useUpdateMutation: ({ application, options, }: {
|
|
4
4
|
application: string;
|
|
5
5
|
options?: UseMutationOptions<UpdateResult, Error, UpdateParameters>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ID, PutShareResponse, RightStringified, ShareRight } from '@edifice.io/client';
|
|
3
|
-
import { UseMutationResult } from '
|
|
3
|
+
import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
4
4
|
export type ShareOptions = {
|
|
5
5
|
resourceId: ID;
|
|
6
6
|
resourceRights: RightStringified[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ID, UpdateParameters, UpdateResult } from '@edifice.io/client';
|
|
2
|
-
import { UseMutationResult } from '
|
|
2
|
+
import { UseMutationResult } from '../../../../node_modules/@tanstack/react-query';
|
|
3
3
|
export type PublicationType = 'RESTRAINT' | 'IMMEDIATE' | undefined;
|
|
4
4
|
export interface ShareBlogProps {
|
|
5
5
|
resourceId: ID;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PutShareResponse, ShareRight } from '@edifice.io/client';
|
|
2
|
-
import { UseMutationOptions, UseMutationResult } from '
|
|
2
|
+
import { UseMutationOptions, UseMutationResult } from '../../../../node_modules/@tanstack/react-query';
|
|
3
3
|
declare const useShareMutation: ({ application, options, }: {
|
|
4
4
|
application: string;
|
|
5
5
|
options?: UseMutationOptions<PutShareResponse, Error, {
|
|
@@ -27,6 +27,10 @@ const AudioRecorder = /* @__PURE__ */ forwardRef(({
|
|
|
27
27
|
} = useAudioRecorder(onSaveSuccess, onRecordUpdated, hideSaveAction, visibility, "media-library"), {
|
|
28
28
|
t
|
|
29
29
|
} = useTranslation();
|
|
30
|
+
function getDefaultDate() {
|
|
31
|
+
const d = /* @__PURE__ */ new Date();
|
|
32
|
+
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")} ${String(d.getHours()).padStart(2, "0")}h${String(d.getMinutes()).padStart(2, "0")} ` + t("bbm.audio.recorder.defaultName");
|
|
33
|
+
}
|
|
30
34
|
useImperativeHandle(ref, () => ({
|
|
31
35
|
save: handleSave
|
|
32
36
|
}));
|
|
@@ -37,7 +41,7 @@ const AudioRecorder = /* @__PURE__ */ forwardRef(({
|
|
|
37
41
|
setAudioTime(event.target.currentTime);
|
|
38
42
|
};
|
|
39
43
|
return /* @__PURE__ */ jsxs("div", { className: "audio-recorder m-auto d-flex flex-column", children: [
|
|
40
|
-
/* @__PURE__ */ jsx(FormControl, { id: "recordName", className: "mb-32", isRequired: !0, isReadOnly: recordState === "SAVED" || recordState === "SAVING", children: /* @__PURE__ */ jsx(Input, { type: "text", size: "sm", placeholder: t("bbm.audio.recorder.name"), ref: audioNameRef, defaultValue:
|
|
44
|
+
/* @__PURE__ */ jsx(FormControl, { id: "recordName", className: "mb-32", isRequired: !0, isReadOnly: recordState === "SAVED" || recordState === "SAVING", children: /* @__PURE__ */ jsx(Input, { type: "text", size: "sm", placeholder: t("bbm.audio.recorder.name"), ref: audioNameRef, defaultValue: getDefaultDate() }) }),
|
|
41
45
|
/* @__PURE__ */ jsx("div", { className: "audio-recorder-icon mx-auto", children: /* @__PURE__ */ jsx(SvgIconMic, { width: 64, height: 64, className: classColor }) }),
|
|
42
46
|
/* @__PURE__ */ jsx(AudioRecorderTimer, { recordState, playState, recordTime, audioTime, maxDuration }),
|
|
43
47
|
/* @__PURE__ */ jsx("audio", { ref: audioRef, onEnded: handlePlayEnded, onTimeUpdate: handleTimeUpdate, children: /* @__PURE__ */ jsx("track", { default: !0, kind: "captions", srcLang: "fr", src: "" }) }),
|