@edifice.io/react 2.0.0-develop-pedago.20250123120301 → 2.0.0-develop-enabling.20250612170709
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/README.md +3 -3
- package/dist/components/AppIcon/AppIcon.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Form/FormContext.js +1 -1
- package/dist/components/Form/FormControl.js +1 -1
- package/dist/components/Layout/components/Header.js +5 -4
- package/dist/components/Layout/components/WidgetApps.js +1 -1
- package/dist/{hooks/useHeader → components/Layout/hooks}/useHeader.js +6 -6
- package/dist/components/Layout/hooks/useHelp.js +9 -9
- package/dist/components/Tree/components/SortableTree.js +3 -2
- package/dist/components/Tree/types/index.d.ts +1 -0
- package/dist/components/Tree/utilities/tree.d.ts +2 -1
- package/dist/editor.js +30 -27
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/useCheckable/useCheckable.d.ts +5 -1
- package/dist/hooks/useConf/useConf.d.ts +2 -2
- package/dist/hooks/useDropdown/useDropdown.js +1 -1
- package/dist/hooks/useHasWorkflow/useHasWorkflow.js +3 -11
- package/dist/hooks/useLibraryUrl/useLibraryUrl.d.ts +1 -1
- package/dist/hooks/useLibraryUrl/useLibraryUrl.js +2 -2
- package/dist/hooks/useSession/useSession.d.ts +2 -1
- package/dist/hooks/useUpload/useUpload.js +8 -2
- package/dist/hooks/useUploadFiles/useUploadFiles.js +1 -1
- package/dist/hooks/useWorkspaceSearch/useWorkspaceSearch.js +3 -11
- package/dist/icons-apps.js +220 -218
- package/dist/icons.js +200 -196
- package/dist/index.js +158 -166
- package/dist/modules/audience/ReactionChoice.d.ts +13 -0
- package/dist/modules/audience/ReactionModal.Card.js +4 -4
- package/dist/modules/audience/ReactionModal.d.ts +24 -6
- package/dist/modules/audience/ReactionModal.js +12 -9
- package/dist/modules/audience/ReactionSummary.d.ts +9 -0
- package/dist/modules/audience/ViewsCounter.d.ts +10 -0
- package/dist/modules/audience/ViewsModal.d.ts +13 -1
- package/dist/modules/audience/ViewsModal.js +22 -19
- package/dist/modules/comments/components/CommentAvatar.js +1 -1
- package/dist/modules/comments/hooks/useAutosizeTextarea.d.ts +5 -1
- package/dist/modules/comments/hooks/useComments.d.ts +4 -1
- package/dist/modules/comments/hooks/useProfileQueries.d.ts +4 -1
- package/dist/modules/comments/provider/CommentProvider.js +1 -1
- package/dist/modules/editor/components/Editor/Editor.js +3 -2
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +1 -0
- package/dist/modules/editor/components/{Editor → MathsModal}/MathsModal.d.ts +1 -1
- package/dist/modules/editor/components/{Editor → MathsModal}/MathsModal.js +2 -3
- package/dist/modules/editor/components/MathsModal/index.d.ts +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/components/Renderer/LinkerRenderer.js +1 -1
- package/dist/modules/editor/hooks/useTipTapEditor.js +4 -4
- 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/apps/IconAppointments.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAppointments.js +12 -0
- package/dist/modules/icons/components/apps/index.d.ts +1 -0
- package/dist/modules/icons/components/index.d.ts +2 -0
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.d.ts +2 -2
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +5 -1
- package/dist/modules/multimedia/UploadCard/UploadCard.js +2 -2
- package/dist/modules/multimedia/index.d.ts +2 -0
- package/dist/multimedia.js +10 -6
- package/dist/providers/MockedProvider/MockedProvider.d.ts +4 -0
- package/dist/providers/MockedProvider/MockedProvider.js +20 -0
- package/dist/providers/index.d.ts +1 -0
- package/package.json +17 -11
- package/dist/hooks/useAvatar/index.d.ts +0 -1
- package/dist/hooks/useAvatar/useAvatar.d.ts +0 -6
- package/dist/hooks/useAvatar/useAvatar.js +0 -30
- package/dist/hooks/useHeader/index.d.ts +0 -1
- package/dist/hooks/useHeader/useHeader.d.ts +0 -5
- package/dist/providers/MockedDataProvider/MockedDataProvider.d.ts +0 -28
- package/dist/providers/MockedDataProvider/MockedDataProvider.js +0 -9
- package/dist/providers/MockedDataProvider/index.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,180 +1,177 @@
|
|
|
1
1
|
import { default as default2 } from "./components/ActionBar/ActionBar.js";
|
|
2
|
-
import { default as default3 } from "./components/
|
|
3
|
-
import { default as default4 } from "./components/
|
|
4
|
-
import { default as default5 } from "./components/
|
|
5
|
-
import { default as default6 } from "./components/
|
|
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/
|
|
2
|
+
import { default as default3 } from "./components/Alert/Alert.js";
|
|
3
|
+
import { default as default4 } from "./components/AppHeader/AppHeader.js";
|
|
4
|
+
import { default as default5 } from "./components/AppIcon/AppIcon.js";
|
|
5
|
+
import { default as default6 } from "./components/Attachment/Attachment.js";
|
|
6
|
+
import { default as default7 } from "./components/Avatar/Avatar.js";
|
|
7
|
+
import { default as default8 } from "./components/Badge/Badge.js";
|
|
8
|
+
import { default as default9 } from "./components/Breadcrumb/Breadcrumb.js";
|
|
9
|
+
import { default as default10 } from "./components/Button/Button.js";
|
|
10
|
+
import { default as default11 } from "./components/Button/IconButton.js";
|
|
11
|
+
import { default as default12 } from "./components/Button/SearchButton.js";
|
|
12
|
+
import { default as default13 } from "./components/Card/Card.js";
|
|
13
|
+
import { default as default14 } from "./components/Checkbox/Checkbox.js";
|
|
14
|
+
import { default as default15 } from "./components/ColorPicker/ColorPicker.js";
|
|
15
|
+
import { default as default16 } from "./components/ColorPicker/ColorPickerItem.js";
|
|
16
|
+
import { default as default17 } from "./components/Combobox/Combobox.js";
|
|
17
|
+
import { default as default18 } from "./components/Dropdown/Dropdown.js";
|
|
18
|
+
import { default as default19 } from "./components/Dropzone/Dropzone.js";
|
|
19
|
+
import { default as default20 } from "./components/EmptyScreen/EmptyScreen.js";
|
|
20
|
+
import { default as default21 } from "./components/Form/FormText.js";
|
|
21
|
+
import { default as default22 } from "./components/Form/FormControl.js";
|
|
22
|
+
import { default as default23 } from "./components/Heading/Heading.js";
|
|
23
|
+
import { default as default24 } from "./components/Image/Image.js";
|
|
24
|
+
import { default as default25 } from "./components/Input/Input.js";
|
|
25
|
+
import { default as default26 } from "./components/Label/Label.js";
|
|
26
|
+
import { default as default27 } from "./components/Loading/Loading.js";
|
|
27
|
+
import { default as default28 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
28
|
+
import { default as default29 } from "./components/Logo/Logo.js";
|
|
29
|
+
import { default as default30 } from "./components/Modal/Modal.js";
|
|
30
|
+
import { default as default31 } from "./components/Radio/Radio.js";
|
|
31
|
+
import { default as default32 } from "./components/SearchBar/SearchBar.js";
|
|
32
|
+
import { default as default33 } from "./components/Select/Select.js";
|
|
33
|
+
import { default as default34 } from "./components/Table/components/Table.js";
|
|
34
|
+
import { default as default35 } from "./components/TextArea/TextArea.js";
|
|
35
|
+
import { default as default36 } from "./components/Tooltip/Tooltip.js";
|
|
22
36
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
23
|
-
import { default as
|
|
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
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
37
|
+
import { default as default37 } from "./components/Tree/components/SortableTree.js";
|
|
38
|
+
import { default as default38 } from "./components/Tree/components/Tree.js";
|
|
39
|
+
import { default as default39 } from "./components/TreeView/TreeView.js";
|
|
40
|
+
import { default as default40 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
41
|
+
import { default as default41 } from "./hooks/useBookmark/useBookmark.js";
|
|
42
|
+
import { default as default42 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
43
|
+
import { default as default43 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
44
|
+
import { default as default44 } from "./hooks/useCantoo/useCantoo.js";
|
|
45
|
+
import { default as default45 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
46
|
+
import { default as default46 } from "./hooks/useConversation/useConversation.js";
|
|
47
|
+
import { default as default47 } from "./hooks/useDate/useDate.js";
|
|
48
|
+
import { default as default48 } from "./hooks/useDebounce/useDebounce.js";
|
|
49
|
+
import { default as default49 } from "./hooks/useDirectory/useDirectory.js";
|
|
50
|
+
import { default as default50 } from "./hooks/useDropdown/useDropdown.js";
|
|
51
|
+
import { default as default51 } from "./hooks/useDropzone/useDropzone.js";
|
|
52
|
+
import { default as default52 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useHover/useHover.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
56
|
+
import { default as default56 } from "./hooks/useImage/useImage.js";
|
|
57
|
+
import { default as default57 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
58
|
+
import { default as default58 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
59
|
+
import { default as default59 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
60
|
+
import { default as default60 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
61
|
+
import { default as default61 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
62
|
+
import { default as default62 } from "./hooks/useTitle/useTitle.js";
|
|
63
|
+
import { default as default63 } from "./hooks/useToast/useToast.js";
|
|
64
|
+
import { default as default64 } from "./hooks/useToggle/useToggle.js";
|
|
65
|
+
import { default as default65 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
66
|
+
import { default as default66 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
67
|
+
import { default as default67 } from "./hooks/useUpload/useUpload.js";
|
|
68
|
+
import { default as default68 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
69
|
+
import { default as default69 } from "./hooks/useUser/useUser.js";
|
|
70
|
+
import { default as default70 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
71
|
+
import { default as default71 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
72
|
+
import { default as default72 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
73
|
+
import { default as default73 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
74
|
+
import { default as default74 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
75
|
+
import { default as default75 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
76
|
+
import { default as default76 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
77
|
+
import { default as default77 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
78
|
+
import { default as default78 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
79
|
+
import { default as default79 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
80
|
+
import { default as default80 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
62
81
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
63
|
-
import { default as default62 } from "./components/Combobox/Combobox.js";
|
|
64
82
|
import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
|
|
65
|
-
import { default as default63 } from "./components/Form/FormControl.js";
|
|
66
83
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
67
|
-
import { default as default64 } from "./components/Heading/Heading.js";
|
|
68
|
-
import { default as default65 } from "./components/Input/Input.js";
|
|
69
|
-
import { default as default66 } from "./components/Label/Label.js";
|
|
70
84
|
import { Layout } from "./components/Layout/Layout.js";
|
|
71
85
|
import { List } from "./components/List/List.js";
|
|
72
|
-
import { default as default67 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
73
86
|
import { Menu } from "./components/Menu/components/Menu.js";
|
|
74
|
-
import { default as default68 } from "./components/Modal/Modal.js";
|
|
75
87
|
import { Popover, PopoverBody, PopoverFooter, PopoverHeader } from "./components/Popover/Popover.js";
|
|
76
|
-
import { default as default69 } from "./components/Radio/Radio.js";
|
|
77
88
|
import { Tabs } from "./components/Tabs/components/Tabs.js";
|
|
78
|
-
import { default as default70 } from "./components/TextArea/TextArea.js";
|
|
79
89
|
import { Toolbar } from "./components/Toolbar/Toolbar.js";
|
|
80
|
-
import { default as default71 } from "./components/Tooltip/Tooltip.js";
|
|
81
90
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
82
91
|
import { buildTree, determineNewParentId, findItemIndexInTree, flattenNodes, flattenTree, generateUpdateData, getActiveAndOverNodes, getDragDepth, getIndicesToUpdate, getProjection, updateParentIds } from "./components/Tree/utilities/tree-sortable.js";
|
|
83
92
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
84
93
|
import { TreeNode } from "./components/TreeView/TreeNode.js";
|
|
85
94
|
import { TreeNodeFolderWrapper, addNode, arrayUnique, deleteNode, findNodeById, findParentNode, findPathById, findTreeNode, getAncestors, hasChildren, modifyNode, moveNode, updateNode, wrapTreeNode } from "./components/TreeView/utilities/treeview.js";
|
|
86
|
-
import { default as default72 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
87
95
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
88
|
-
import { default as default73 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
89
|
-
import { default as default74 } from "./hooks/useHover/useHover.js";
|
|
90
|
-
import { default as default75 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
91
|
-
import { useResourceSearch } from "./hooks/useResourceSearch/useResourceSearch.js";
|
|
92
|
-
import { default as default76 } from "./hooks/useToast/useToast.js";
|
|
93
|
-
import { default as default77 } from "./hooks/useUser/useUser.js";
|
|
94
|
-
import { default as default78 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
95
|
-
import { default as default79 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
96
|
-
import { default as default80 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
97
|
-
import { default as default81 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
98
96
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
99
|
-
import { default as default82 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
100
|
-
import { default as default83 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
101
|
-
import { default as default84 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
102
97
|
import { EdificeClientProvider } from "./providers/EdificeClientProvider/EdificeClientProvider.js";
|
|
103
98
|
import { EdificeClientContext } from "./providers/EdificeClientProvider/EdificeClientProvider.context.js";
|
|
104
99
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
105
100
|
import { EdificeThemeProvider } from "./providers/EdificeThemeProvider/EdificeThemeProvider.js";
|
|
106
101
|
import { EdificeThemeContext } from "./providers/EdificeThemeProvider/EdificeThemeProvider.context.js";
|
|
107
102
|
import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
103
|
+
import { MockedProvider } from "./providers/MockedProvider/MockedProvider.js";
|
|
108
104
|
import { checkUserRight } from "./utilities/check-user-rights/check-user-rights.js";
|
|
109
105
|
import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-mapping.js";
|
|
110
106
|
import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
111
107
|
export {
|
|
112
108
|
AccessiblePalette,
|
|
113
109
|
default2 as ActionBar,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
110
|
+
default3 as Alert,
|
|
111
|
+
default4 as AppHeader,
|
|
112
|
+
default5 as AppIcon,
|
|
113
|
+
default6 as Attachment,
|
|
114
|
+
default7 as Avatar,
|
|
115
|
+
default8 as Badge,
|
|
116
|
+
default76 as BlogPublic,
|
|
117
|
+
default9 as Breadcrumb,
|
|
118
|
+
default10 as Button,
|
|
119
|
+
default13 as Card,
|
|
120
|
+
default14 as Checkbox,
|
|
121
|
+
default15 as ColorPicker,
|
|
122
|
+
default16 as ColorPickerItem,
|
|
127
123
|
Column,
|
|
128
|
-
|
|
124
|
+
default17 as Combobox,
|
|
129
125
|
DefaultPalette,
|
|
130
126
|
DndTree,
|
|
131
|
-
|
|
132
|
-
|
|
127
|
+
default18 as Dropdown,
|
|
128
|
+
default19 as Dropzone,
|
|
133
129
|
DropzoneContext,
|
|
134
130
|
EdificeClientContext,
|
|
135
131
|
EdificeClientProvider,
|
|
136
132
|
EdificeThemeContext,
|
|
137
133
|
EdificeThemeProvider,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
134
|
+
default20 as EmptyScreen,
|
|
135
|
+
default22 as FormControl,
|
|
136
|
+
default21 as FormText,
|
|
141
137
|
Grid,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
default23 as Heading,
|
|
139
|
+
default11 as IconButton,
|
|
140
|
+
default24 as Image,
|
|
141
|
+
default25 as Input,
|
|
142
|
+
default26 as Label,
|
|
147
143
|
Layout,
|
|
148
144
|
List,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
145
|
+
default27 as Loading,
|
|
146
|
+
default28 as LoadingScreen,
|
|
147
|
+
default29 as Logo,
|
|
152
148
|
Menu,
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
MockedProvider,
|
|
150
|
+
default30 as Modal,
|
|
151
|
+
default74 as OnboardingModal,
|
|
155
152
|
Popover,
|
|
156
153
|
PopoverBody,
|
|
157
154
|
PopoverFooter,
|
|
158
155
|
PopoverHeader,
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
default75 as PublishModal,
|
|
157
|
+
default31 as Radio,
|
|
161
158
|
ResourceModal,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
default32 as SearchBar,
|
|
160
|
+
default12 as SearchButton,
|
|
161
|
+
default33 as Select,
|
|
162
|
+
default79 as ShareBlog,
|
|
163
|
+
default78 as ShareModal,
|
|
164
|
+
default37 as SortableTree,
|
|
165
|
+
default34 as Table,
|
|
169
166
|
Tabs,
|
|
170
|
-
|
|
167
|
+
default35 as TextArea,
|
|
171
168
|
Toolbar,
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
default36 as Tooltip,
|
|
170
|
+
default38 as Tree,
|
|
174
171
|
TreeNode,
|
|
175
172
|
TreeNodeFolderWrapper,
|
|
176
|
-
|
|
177
|
-
|
|
173
|
+
default39 as TreeView,
|
|
174
|
+
default40 as VisuallyHidden,
|
|
178
175
|
addNode,
|
|
179
176
|
arrayUnique,
|
|
180
177
|
buildTree,
|
|
@@ -202,51 +199,46 @@ export {
|
|
|
202
199
|
setRef,
|
|
203
200
|
updateNode,
|
|
204
201
|
updateParentIds,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
default30 as useCantoo,
|
|
202
|
+
default41 as useBookmark,
|
|
203
|
+
default42 as useBreakpoint,
|
|
204
|
+
default43 as useBrowserInfo,
|
|
205
|
+
default44 as useCantoo,
|
|
210
206
|
useCheckable,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
default38 as useDropzone,
|
|
207
|
+
default45 as useClickOutside,
|
|
208
|
+
default46 as useConversation,
|
|
209
|
+
default47 as useDate,
|
|
210
|
+
default48 as useDebounce,
|
|
211
|
+
default49 as useDirectory,
|
|
212
|
+
default50 as useDropdown,
|
|
213
|
+
default51 as useDropzone,
|
|
219
214
|
useDropzoneContext,
|
|
220
215
|
useEdificeClient,
|
|
221
|
-
|
|
216
|
+
default52 as useEdificeIcons,
|
|
222
217
|
useEdificeTheme,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
default49 as useToggle,
|
|
239
|
-
default50 as useTrapFocus,
|
|
240
|
-
default51 as useTrashedResource,
|
|
218
|
+
default53 as useHasWorkflow,
|
|
219
|
+
default54 as useHover,
|
|
220
|
+
default55 as useHttpErrorToast,
|
|
221
|
+
default56 as useImage,
|
|
222
|
+
default57 as useIsAdml,
|
|
223
|
+
default58 as useKeyPress,
|
|
224
|
+
default59 as useLibraryUrl,
|
|
225
|
+
default60 as useMediaLibrary,
|
|
226
|
+
default61 as useScrollToTop,
|
|
227
|
+
default80 as useShareMutation,
|
|
228
|
+
default62 as useTitle,
|
|
229
|
+
default63 as useToast,
|
|
230
|
+
default64 as useToggle,
|
|
231
|
+
default65 as useTrapFocus,
|
|
232
|
+
default66 as useTrashedResource,
|
|
241
233
|
useTreeSortable,
|
|
242
234
|
useTreeView,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
235
|
+
default77 as useUpdateMutation,
|
|
236
|
+
default67 as useUpload,
|
|
237
|
+
default68 as useUploadFiles,
|
|
238
|
+
default69 as useUser,
|
|
239
|
+
default70 as useWorkspaceFile,
|
|
240
|
+
default71 as useWorkspaceSearch,
|
|
241
|
+
default72 as useXitiTrackPageLoad,
|
|
242
|
+
default73 as useZendeskGuide,
|
|
251
243
|
wrapTreeNode
|
|
252
244
|
};
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { ReactionSummaryData, ReactionType } from '@edifice.io/client';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ReactionChoice component.
|
|
4
|
+
*/
|
|
2
5
|
export interface ReactionChoiceProps {
|
|
6
|
+
/**
|
|
7
|
+
* An array of available reactions that can be chosen.
|
|
8
|
+
*/
|
|
3
9
|
availableReactions: ReactionType[];
|
|
10
|
+
/**
|
|
11
|
+
* Optional summary data of the reactions.
|
|
12
|
+
*/
|
|
4
13
|
summary?: ReactionSummaryData;
|
|
14
|
+
/**
|
|
15
|
+
* Optional callback function that is called when a reaction is chosen.
|
|
16
|
+
* @param chosenReaction - The reaction that was chosen.
|
|
17
|
+
*/
|
|
5
18
|
onChange?: (chosenReaction?: ReactionType) => void;
|
|
6
19
|
}
|
|
7
20
|
declare const ReactionChoice: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
4
|
-
import
|
|
4
|
+
import useDirectory from "../../hooks/useDirectory/useDirectory.js";
|
|
5
5
|
import Avatar from "../../components/Avatar/Avatar.js";
|
|
6
6
|
function ReactionModalCard({
|
|
7
7
|
reaction
|
|
@@ -9,14 +9,14 @@ function ReactionModalCard({
|
|
|
9
9
|
const {
|
|
10
10
|
t
|
|
11
11
|
} = useTranslation(), {
|
|
12
|
-
|
|
13
|
-
} =
|
|
12
|
+
getAvatarURL
|
|
13
|
+
} = useDirectory(), {
|
|
14
14
|
getReactionIcon,
|
|
15
15
|
getReactionLabel
|
|
16
16
|
} = useReactionIcons();
|
|
17
17
|
return /* @__PURE__ */ jsxs("div", { className: "reaction-modal-card w-100 d-flex gap-8", children: [
|
|
18
18
|
/* @__PURE__ */ jsxs("div", { className: "position-relative p-8", children: [
|
|
19
|
-
/* @__PURE__ */ jsx(Avatar, { variant: "circle", size: "md", src:
|
|
19
|
+
/* @__PURE__ */ jsx(Avatar, { variant: "circle", size: "md", src: getAvatarURL(reaction.userId, "user"), alt: reaction.displayName }),
|
|
20
20
|
/* @__PURE__ */ jsx("div", { className: "position-absolute end-0 bottom-0", children: getReactionIcon(reaction.reactionType, !0) })
|
|
21
21
|
] }),
|
|
22
22
|
/* @__PURE__ */ jsxs("div", { className: "d-flex flex-column w-100 pt-8", children: [
|
|
@@ -1,19 +1,37 @@
|
|
|
1
1
|
import { ReactionDetailsData } from '@edifice.io/client';
|
|
2
2
|
import { ReactionModalCard } from './ReactionModal.Card';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the ReactionModal component.
|
|
5
|
+
*/
|
|
3
6
|
export interface ReactionModalProps {
|
|
4
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The unique identifier for the resource.
|
|
9
|
+
*/
|
|
5
10
|
resourceId: string;
|
|
6
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The number of items to display per page. Optional.
|
|
13
|
+
*/
|
|
7
14
|
pageSize?: number;
|
|
8
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Indicates whether the modal is open.
|
|
17
|
+
*/
|
|
9
18
|
isOpen: boolean;
|
|
10
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Callback function to handle the modal close event.
|
|
21
|
+
*/
|
|
11
22
|
onModalClose(): void;
|
|
12
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Function to load reaction details for a given resource.
|
|
25
|
+
*
|
|
26
|
+
* @param resourceId - The unique identifier for the resource.
|
|
27
|
+
* @param page - The current page number.
|
|
28
|
+
* @param size - The number of items to display per page.
|
|
29
|
+
* @returns A promise that resolves to the reaction details data or undefined.
|
|
30
|
+
*/
|
|
13
31
|
reactionDetailsLoader: (resourceId: string, page: number, size: number) => Promise<ReactionDetailsData | undefined>;
|
|
14
32
|
}
|
|
15
33
|
declare const ReactionModal: {
|
|
16
|
-
({ resourceId, pageSize, reactionDetailsLoader: loadReactionDetails, onModalClose, ...restProps }: ReactionModalProps): import(
|
|
34
|
+
({ resourceId, pageSize, reactionDetailsLoader: loadReactionDetails, onModalClose, ...restProps }: ReactionModalProps): import("react/jsx-runtime").JSX.Element;
|
|
17
35
|
displayName: string;
|
|
18
36
|
Card: typeof ReactionModalCard;
|
|
19
37
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ReactionTypes } from "@edifice.io/client";
|
|
3
3
|
import { StringUtils } from "@edifice.io/utilities";
|
|
4
4
|
import { useState, useId, useCallback, useMemo, useEffect } from "react";
|
|
@@ -57,14 +57,17 @@ const ALL_TAB_ID = "all", ReactionModal = ({
|
|
|
57
57
|
const handleTabChange = (tab) => {
|
|
58
58
|
setCurrentTabId(tab.id);
|
|
59
59
|
}, hasMore = reactions.length < counters.allReactionsCounter;
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
/* @__PURE__ */ jsx(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
return (
|
|
61
|
+
// Using a fragment to ensure Storybook correctly interprets JSDoc comments: https://github.com/storybookjs/storybook/issues/27169
|
|
62
|
+
/* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id, ...restProps, onModalClose, size: "md", scrollable: !0, children: [
|
|
63
|
+
/* @__PURE__ */ jsx(Modal.Header, { onModalClose, children: t("audience.reaction.modal.header") }),
|
|
64
|
+
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(Tabs, { items: tabs, defaultId: ALL_TAB_ID, onChange: handleTabChange }) }),
|
|
65
|
+
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
66
|
+
hasMore && /* @__PURE__ */ jsx(Button, { color: "tertiary", onClick: loadNextPage, children: t("audience.reaction.modal.more") }),
|
|
67
|
+
/* @__PURE__ */ jsx(Button, { color: "primary", onClick: onModalClose, type: "button", variant: "filled", children: t("close") })
|
|
68
|
+
] })
|
|
69
|
+
] }), document.getElementById("portal")) })
|
|
70
|
+
);
|
|
68
71
|
};
|
|
69
72
|
ReactionModal.Card = ReactionModalCard;
|
|
70
73
|
export {
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { ReactionSummaryData } from '@edifice.io/client';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ReactionSummary component.
|
|
4
|
+
*/
|
|
2
5
|
export interface ReactionSummaryProps {
|
|
6
|
+
/**
|
|
7
|
+
* An optional summary of reaction data.
|
|
8
|
+
*/
|
|
3
9
|
summary?: ReactionSummaryData;
|
|
10
|
+
/**
|
|
11
|
+
* An optional click handler function.
|
|
12
|
+
*/
|
|
4
13
|
onClick?: () => void;
|
|
5
14
|
}
|
|
6
15
|
declare const ReactionSummary: {
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
export interface ViewsCounterProps {
|
|
2
|
+
/**
|
|
3
|
+
* The number of views to display.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
2
6
|
viewsCounter: number;
|
|
7
|
+
/**
|
|
8
|
+
* Optional click handler for the counter button.
|
|
9
|
+
*/
|
|
3
10
|
onClick?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Optional CSS class name to apply to the counter component.
|
|
13
|
+
*/
|
|
4
14
|
className?: string;
|
|
5
15
|
}
|
|
6
16
|
declare const ViewsCounter: {
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { ViewsDetails } from '@edifice.io/client';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ViewsModal component.
|
|
4
|
+
*/
|
|
2
5
|
export interface ViewsModalProps {
|
|
6
|
+
/**
|
|
7
|
+
* Details of the views to be displayed in the modal.
|
|
8
|
+
*/
|
|
3
9
|
viewsDetails: ViewsDetails;
|
|
10
|
+
/**
|
|
11
|
+
* Boolean flag indicating whether the modal is open.
|
|
12
|
+
*/
|
|
4
13
|
isOpen: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Callback function to be called when the modal is closed.
|
|
16
|
+
*/
|
|
5
17
|
onModalClose: () => void;
|
|
6
18
|
}
|
|
7
19
|
declare const ViewsModal: {
|
|
8
|
-
({ viewsDetails, isOpen, onModalClose, }: ViewsModalProps): import(
|
|
20
|
+
({ viewsDetails, isOpen, onModalClose, }: ViewsModalProps): import("react/jsx-runtime").JSX.Element;
|
|
9
21
|
displayName: string;
|
|
10
22
|
};
|
|
11
23
|
export default ViewsModal;
|