@edifice.io/react 2.0.0-develop-rc.4 → 2.0.0-develop-rc.7
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 +17 -88
- package/dist/components/Alert/Alert.js +5 -5
- package/dist/components/Table/TableExplorer.js +2 -2
- package/dist/components/TextArea/TextArea.js +2 -2
- package/dist/core/useConversation/useConversation.js +2 -2
- package/dist/core/useHasWorkflow/useHasWorkflow.js +1 -1
- package/dist/core/useHeader/useHeader.js +3 -3
- package/dist/core/useLibraryUrl/useLibraryUrl.js +2 -2
- package/dist/core/useMediaLibrary/useMediaLibrary.js +2 -2
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +1 -1
- package/dist/core/useResource/useResource.d.ts +0 -1
- package/dist/core/useTrashedResource/useTrashedResource.js +2 -2
- package/dist/core/useUpload/useUpload.d.ts +4 -5
- package/dist/core/useUpload/useUpload.js +1 -1
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +5 -5
- package/dist/core/useUploadFiles/useUploadFiles.js +3 -3
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +4 -4
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +2 -2
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +2 -2
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +1 -1
- package/dist/editor.js +3 -3
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +1 -1
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +2 -2
- package/dist/hooks/useDropzone/useDropzone.js +2 -2
- package/dist/hooks/useToast/useToast.js +1 -1
- package/dist/index.js +66 -66
- package/dist/modals.js +4 -4
- package/dist/modules/audience/ReactionChoice.js +2 -2
- package/dist/modules/audience/ReactionModal.js +1 -2
- package/dist/modules/audience/ReactionSummary.js +2 -2
- package/dist/modules/audience/ViewsCounter.js +2 -2
- package/dist/modules/audience/ViewsModal.js +2 -2
- package/dist/modules/audience/hooks/useReactions.d.ts +3 -5
- package/dist/modules/audience/hooks/useViews.d.ts +3 -3
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +2 -2
- package/dist/modules/editor/components/Editor/Editor.js +3 -3
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +0 -1
- package/dist/modules/editor/components/Editor/MathsModal.js +1 -1
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +2 -2
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +1 -1
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +4 -4
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +5 -5
- package/dist/modules/editor/hooks/useImageModal.d.ts +1 -2
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +0 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +2 -2
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -1
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +2 -2
- package/dist/modules/modals/ShareModal/utils/hasRight.d.ts +0 -1
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +0 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +2 -2
- package/dist/modules/multimedia/Embed/Embed.js +2 -2
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +2 -2
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +36 -38
- package/dist/modules/multimedia/Linker/ExternalLinker.js +5 -5
- package/dist/modules/multimedia/Linker/InternalLinker.js +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +3 -3
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +2 -2
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +2 -2
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +2 -2
- package/dist/modules/multimedia/Workspace/Workspace.js +4 -4
- package/dist/multimedia.js +16 -16
- package/dist/portal/Help/Help.d.ts +0 -1
- package/dist/portal/Layout/Layout.js +3 -3
- package/dist/utils/fileSize.js +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +2 -2
- package/package.json +19 -28
package/dist/index.js
CHANGED
|
@@ -1,28 +1,38 @@
|
|
|
1
1
|
import { default as default2 } from "./core/useAvatar/useAvatar.js";
|
|
2
2
|
import { default as default3 } from "./core/useBookmark/useBookmark.js";
|
|
3
3
|
import { default as default4 } from "./core/useConf/useConf.js";
|
|
4
|
-
import { default as default5 } from "./core/
|
|
5
|
-
import { default as default6 } from "./core/
|
|
6
|
-
import { default as default7 } from "./core/
|
|
7
|
-
import { default as default8 } from "./core/
|
|
8
|
-
import { default as default9 } from "./core/
|
|
9
|
-
import { default as default10 } from "./core/
|
|
10
|
-
import { default as default11 } from "./core/
|
|
11
|
-
import { default as default12 } from "./core/
|
|
12
|
-
import { default as default13 } from "./core/
|
|
13
|
-
import { default as default14 } from "./core/
|
|
14
|
-
import { default as default15 } from "./core/
|
|
15
|
-
import { default as default16 } from "./
|
|
16
|
-
import { default as default17 } from "./
|
|
17
|
-
import { default as default18 } from "./
|
|
18
|
-
import { default as default19 } from "./
|
|
19
|
-
import { default as default20 } from "./
|
|
20
|
-
import { default as default21 } from "./
|
|
21
|
-
import { default as default22 } from "./hooks/
|
|
22
|
-
import { default as default23 } from "./hooks/
|
|
23
|
-
import { default as default24 } from "./hooks/
|
|
24
|
-
import { default as default25 } from "./hooks/
|
|
25
|
-
import { default as default26 } from "./
|
|
4
|
+
import { default as default5 } from "./core/useConversation/useConversation.js";
|
|
5
|
+
import { default as default6 } from "./core/useDate/useDate.js";
|
|
6
|
+
import { default as default7 } from "./core/useHasWorkflow/useHasWorkflow.js";
|
|
7
|
+
import { default as default8 } from "./core/useHeader/useHeader.js";
|
|
8
|
+
import { default as default9 } from "./core/useIsAdml/useIsAdml.js";
|
|
9
|
+
import { default as default10 } from "./core/useLibraryUrl/useLibraryUrl.js";
|
|
10
|
+
import { default as default11 } from "./core/useMediaLibrary/useMediaLibrary.js";
|
|
11
|
+
import { default as default12 } from "./core/useOdeIcons/useOdeIcons.js";
|
|
12
|
+
import { default as default13 } from "./core/usePaths/usePaths.js";
|
|
13
|
+
import { default as default14 } from "./core/useSession/useSession.js";
|
|
14
|
+
import { default as default15 } from "./core/useTrashedResource/useTrashedResource.js";
|
|
15
|
+
import { default as default16 } from "./core/useUploadFiles/useUploadFiles.js";
|
|
16
|
+
import { default as default17 } from "./core/useUser/useUser.js";
|
|
17
|
+
import { default as default18 } from "./core/useWorkspaceFile/useWorkspaceFile.js";
|
|
18
|
+
import { default as default19 } from "./core/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
19
|
+
import { default as default20 } from "./core/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
20
|
+
import { default as default21 } from "./core/useZendeskGuide/useZendeskGuide.js";
|
|
21
|
+
import { default as default22 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
22
|
+
import { default as default23 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
23
|
+
import { default as default24 } from "./hooks/useDebounce/useDebounce.js";
|
|
24
|
+
import { default as default25 } from "./hooks/useDropdown/useDropdown.js";
|
|
25
|
+
import { default as default26 } from "./hooks/useDropzone/useDropzone.js";
|
|
26
|
+
import { default as default27 } from "./hooks/useToast/useToast.js";
|
|
27
|
+
import { default as default28 } from "./hooks/useImage/useImage.js";
|
|
28
|
+
import { default as default29 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
29
|
+
import { default as default30 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
30
|
+
import { default as default31 } from "./hooks/useTitle/useTitle.js";
|
|
31
|
+
import { default as default32 } from "./hooks/useToggle/useToggle.js";
|
|
32
|
+
import { default as default33 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
33
|
+
import { default as default34 } from "./portal/Layout/Layout.js";
|
|
34
|
+
import { default as default35 } from "./widgets/Widget/Widget.js";
|
|
35
|
+
import { default as default36 } from "./widgets/BookmarkedApps/BookmarkedApps.js";
|
|
26
36
|
import { ActionBar } from "./components/ActionBar/ActionBar.js";
|
|
27
37
|
import { Alert } from "./components/Alert/Alert.js";
|
|
28
38
|
import { AppHeader } from "./components/AppHeader/AppHeader.js";
|
|
@@ -72,18 +82,9 @@ import { UploadCard } from "./components/UploadCard/UploadCard.js";
|
|
|
72
82
|
import { VisuallyHidden } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
73
83
|
import { OdeClientContext, OdeClientProvider, useOdeClient } from "./core/OdeClientProvider/OdeClientProvider.js";
|
|
74
84
|
import { ThemeContext, ThemeProvider, useOdeTheme } from "./core/ThemeProvider/ThemeProvider.js";
|
|
75
|
-
import { default as default27 } from "./core/useConversation/useConversation.js";
|
|
76
85
|
import { useHttpErrorToast } from "./core/useHttpErrorToast/useHttpErrorToast.js";
|
|
77
|
-
import { default as default28 } from "./core/useLibraryUrl/useLibraryUrl.js";
|
|
78
|
-
import { default as default29 } from "./core/useMediaLibrary/useMediaLibrary.js";
|
|
79
86
|
import { useResourceSearch } from "./core/useResourceSearch/useResourceSearch.js";
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as default31 } from "./core/useUploadFiles/useUploadFiles.js";
|
|
82
|
-
import { default as default32 } from "./core/useWorkspaceFile/useWorkspaceFile.js";
|
|
83
|
-
import { default as default33 } from "./hooks/useDropdown/useDropdown.js";
|
|
84
|
-
import { default as default34 } from "./hooks/useDropzone/useDropzone.js";
|
|
85
|
-
import { default as default35 } from "./hooks/useHover/useHover.js";
|
|
86
|
-
import { default as default36 } from "./portal/Layout/Layout.js";
|
|
87
|
+
import { default as default37 } from "./hooks/useHover/useHover.js";
|
|
87
88
|
import { MockedDataProvider, useMockedData } from "./utils/MockedDataProvider/MockedDataProvider.js";
|
|
88
89
|
import { StringUtils } from "./utils/StringUtils.js";
|
|
89
90
|
import { addTimestampToImageUrl } from "./utils/addTimestampToUrl.js";
|
|
@@ -98,7 +99,6 @@ import { getThumbnail } from "./utils/thumbnail.js";
|
|
|
98
99
|
import { convertMsToMS, padTo2Digits } from "./utils/time.js";
|
|
99
100
|
import { TreeNodeFolderWrapper, addNode, arrayUnique, deleteNode, findNodeById, findParentNode, getAncestors, hasChildren, modifyNode, moveNode, updateNode, wrapTreeNode } from "./utils/treeview.js";
|
|
100
101
|
import { getBestSupportedMimeType } from "./utils/video.js";
|
|
101
|
-
import { default as default37 } from "./widgets/BookmarkedApps/BookmarkedApps.js";
|
|
102
102
|
export {
|
|
103
103
|
AccessiblePalette,
|
|
104
104
|
ActionBar,
|
|
@@ -108,7 +108,7 @@ export {
|
|
|
108
108
|
Attachment,
|
|
109
109
|
Avatar,
|
|
110
110
|
Badge,
|
|
111
|
-
|
|
111
|
+
default36 as BookmarkedApps,
|
|
112
112
|
Breadcrumb,
|
|
113
113
|
Button,
|
|
114
114
|
Card,
|
|
@@ -132,7 +132,7 @@ export {
|
|
|
132
132
|
ImagePicker,
|
|
133
133
|
Input,
|
|
134
134
|
Label,
|
|
135
|
-
|
|
135
|
+
default34 as Layout,
|
|
136
136
|
Loading,
|
|
137
137
|
LoadingScreen,
|
|
138
138
|
Logo,
|
|
@@ -162,7 +162,7 @@ export {
|
|
|
162
162
|
TreeView,
|
|
163
163
|
UploadCard,
|
|
164
164
|
VisuallyHidden,
|
|
165
|
-
|
|
165
|
+
default35 as Widget,
|
|
166
166
|
addNode,
|
|
167
167
|
addTimestampToImageUrl,
|
|
168
168
|
arrayUnique,
|
|
@@ -187,41 +187,41 @@ export {
|
|
|
187
187
|
updateNode,
|
|
188
188
|
default2 as useAvatar,
|
|
189
189
|
default3 as useBookmark,
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
default22 as useBrowserInfo,
|
|
191
|
+
default23 as useClickOutside,
|
|
192
192
|
default4 as useConf,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
193
|
+
default5 as useConversation,
|
|
194
|
+
default6 as useDate,
|
|
195
|
+
default24 as useDebounce,
|
|
196
|
+
default25 as useDropdown,
|
|
197
|
+
default26 as useDropzone,
|
|
198
|
+
default7 as useHasWorkflow,
|
|
199
|
+
default8 as useHeader,
|
|
200
|
+
default37 as useHover,
|
|
201
201
|
useHttpErrorToast,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
default28 as useImage,
|
|
203
|
+
default9 as useIsAdml,
|
|
204
|
+
default29 as useKeyPress,
|
|
205
|
+
default10 as useLibraryUrl,
|
|
206
|
+
default11 as useMediaLibrary,
|
|
207
207
|
useMockedData,
|
|
208
208
|
useOdeClient,
|
|
209
|
-
|
|
209
|
+
default12 as useOdeIcons,
|
|
210
210
|
useOdeTheme,
|
|
211
|
-
|
|
211
|
+
default13 as usePaths,
|
|
212
212
|
useResourceSearch,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
213
|
+
default30 as useScrollToTop,
|
|
214
|
+
default14 as useSession,
|
|
215
|
+
default31 as useTitle,
|
|
216
|
+
default27 as useToast,
|
|
217
|
+
default32 as useToggle,
|
|
218
|
+
default33 as useTrapFocus,
|
|
219
|
+
default15 as useTrashedResource,
|
|
220
|
+
default16 as useUploadFiles,
|
|
221
|
+
default17 as useUser,
|
|
222
|
+
default18 as useWorkspaceFile,
|
|
223
|
+
default19 as useWorkspaceSearch,
|
|
224
|
+
default20 as useXitiTrackPageLoad,
|
|
225
|
+
default21 as useZendeskGuide,
|
|
226
226
|
wrapTreeNode
|
|
227
227
|
};
|
package/dist/modals.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/modals/
|
|
2
|
-
import { default as default3 } from "./modules/modals/
|
|
1
|
+
import { default as default2 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
2
|
+
import { default as default3 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
3
3
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
4
4
|
import { BlogPublic } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
5
5
|
import { useUpdateMutation } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
@@ -7,8 +7,8 @@ import { ShareBlog } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
|
7
7
|
import { useShareMutation } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
8
8
|
export {
|
|
9
9
|
BlogPublic,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
default2 as OnboardingModal,
|
|
11
|
+
default3 as PublishModal,
|
|
12
12
|
ResourceModal,
|
|
13
13
|
ShareBlog,
|
|
14
14
|
useShareMutation,
|
|
@@ -27,7 +27,7 @@ const ReactionChoice = ({
|
|
|
27
27
|
/* @__PURE__ */ jsx(Dropdown.Trigger, { className: classes, color: "tertiary", variant: "ghost", size: "sm", icon: getReactionIcon(userReaction), hideCarret: !0, label: t(getReactionLabel(userReaction)) }),
|
|
28
28
|
/* @__PURE__ */ jsx(Dropdown.Menu, { unstyled: !0, className: "bg-white shadow rounded-8 overflow-visible", children: /* @__PURE__ */ jsx("div", { className: "d-flex align-items-center justify-content-between", children: availableReactions == null ? void 0 : availableReactions.map((reactionType) => /* @__PURE__ */ jsx(Dropdown.Item, { className: "p-0", children: /* @__PURE__ */ jsx(Tooltip, { message: t(getReactionLabel(reactionType)), placement: "top", children: /* @__PURE__ */ jsx(IconButton, { className: "reaction-available m-4", variant: "ghost", size: "sm", icon: getReactionIcon(reactionType), onClick: () => onChange == null ? void 0 : onChange(reactionType) }) }) }, reactionType)) }) })
|
|
29
29
|
] }) });
|
|
30
|
-
}
|
|
30
|
+
};
|
|
31
31
|
export {
|
|
32
|
-
ReactionChoice
|
|
32
|
+
ReactionChoice as default
|
|
33
33
|
};
|
|
@@ -21,7 +21,7 @@ const ReactionSummary = ({
|
|
|
21
21
|
/* @__PURE__ */ jsx("div", { className: "text-gray-700 fw-normal me-8", children: StringUtils.toCounter(totalReactionsCounter) }),
|
|
22
22
|
hasNoReactions ? /* @__PURE__ */ jsx("div", { className: "reaction-overlap", children: getReactionIcon("REACTION_1", !0) }) : reactionTypes == null ? void 0 : reactionTypes.map((reactionType) => /* @__PURE__ */ jsx("div", { className: "reaction-overlap", children: getReactionIcon(reactionType, !0) }, reactionType))
|
|
23
23
|
] }) });
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
export {
|
|
26
|
-
ReactionSummary
|
|
26
|
+
ReactionSummary as default
|
|
27
27
|
};
|
|
@@ -12,7 +12,7 @@ const ViewsCounter = ({
|
|
|
12
12
|
event.preventDefault(), event.stopPropagation(), onClick == null || onClick();
|
|
13
13
|
};
|
|
14
14
|
return className = clsx("text-gray-700 fw-normal py-4 px-8 btn-icon", className), /* @__PURE__ */ jsx(Button, { rightIcon: /* @__PURE__ */ jsx(Icon, { name: "see" }), variant: "ghost", type: "button", className, onClick: handleButtonClick, disabled: !viewsCounter, children: StringUtils.toCounter(viewsCounter) });
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
export {
|
|
17
|
-
ViewsCounter
|
|
17
|
+
ViewsCounter as default
|
|
18
18
|
};
|
|
@@ -34,7 +34,7 @@ const ViewsModal = ({
|
|
|
34
34
|
] }),
|
|
35
35
|
/* @__PURE__ */ jsx(Modal.Footer, { children: /* @__PURE__ */ jsx(Button, { color: "primary", onClick: onModalClose, type: "button", variant: "filled", children: t("audience.views.cancel") }) })
|
|
36
36
|
] }), document.getElementById("portal"));
|
|
37
|
-
}
|
|
37
|
+
};
|
|
38
38
|
export {
|
|
39
|
-
ViewsModal
|
|
39
|
+
ViewsModal as default
|
|
40
40
|
};
|
|
@@ -6,10 +6,8 @@ import { ReactionType } from 'edifice-ts-client';
|
|
|
6
6
|
* @returns functions to easily call "audience" backend endpoints
|
|
7
7
|
*/
|
|
8
8
|
export default function useReactions(module: string, resourceType: string): {
|
|
9
|
-
availableReactions:
|
|
10
|
-
loadReactionDetails: (resourceId: string, page: number, size?: number) => Promise<
|
|
11
|
-
loadReactionSummaries: (resourceIds: string[]) => Promise<
|
|
12
|
-
[resourceId: string]: import('edifice-ts-client').ReactionSummaryData | undefined;
|
|
13
|
-
}>;
|
|
9
|
+
availableReactions: ReactionType[];
|
|
10
|
+
loadReactionDetails: (resourceId: string, page: number, size?: number) => Promise<any>;
|
|
11
|
+
loadReactionSummaries: (resourceIds: string[]) => Promise<any>;
|
|
14
12
|
applyReaction: (resourceId: string, newReaction: ReactionType, oldReaction: ReactionType | null) => Promise<"-" | "+" | "=">;
|
|
15
13
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @returns functions to easily call "audience" backend endpoints.
|
|
6
6
|
*/
|
|
7
7
|
export default function useViews(module: string, resourceType: string): {
|
|
8
|
-
getViewsCounter: (resourceIds: string[]) =>
|
|
9
|
-
getViewsDetail: (resourceId: string) =>
|
|
10
|
-
triggerView: (resourceId: string) =>
|
|
8
|
+
getViewsCounter: (resourceIds: string[]) => any;
|
|
9
|
+
getViewsDetail: (resourceId: string) => any;
|
|
10
|
+
triggerView: (resourceId: string) => any;
|
|
11
11
|
};
|
|
@@ -126,7 +126,7 @@ const BubbleMenuEditImage = ({
|
|
|
126
126
|
return /* @__PURE__ */ jsx(BubbleMenu, { className: openEditImage ? "d-none" : "", shouldShow: ({
|
|
127
127
|
editor: editor2
|
|
128
128
|
}) => editor2.isActive("custom-image") && !openEditImage, editor, tippyOptions, children: editable && /* @__PURE__ */ jsx(Toolbar, { className: "p-8", items: ImageSizeItems }) });
|
|
129
|
-
}
|
|
129
|
+
};
|
|
130
130
|
export {
|
|
131
|
-
BubbleMenuEditImage
|
|
131
|
+
BubbleMenuEditImage as default
|
|
132
132
|
};
|
|
@@ -51,7 +51,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("./MathsModal.j
|
|
|
51
51
|
case "plain":
|
|
52
52
|
return editor == null ? void 0 : editor.getText();
|
|
53
53
|
default:
|
|
54
|
-
throw `[Editor] Unknown content format ${as}
|
|
54
|
+
throw new Error(`[Editor] Unknown content format ${as}`);
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
toogleSpeechSynthetisis: speechSynthetisis.toggle,
|
|
@@ -77,7 +77,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("./MathsModal.j
|
|
|
77
77
|
editable && (imageModal == null ? void 0 : imageModal.isOpen) && (imageModal == null ? void 0 : imageModal.currentImage) && /* @__PURE__ */ jsx(ImageEditor, { altText: imageModal == null ? void 0 : imageModal.currentImage.alt, legend: imageModal == null ? void 0 : imageModal.currentImage.title, image: imageModal == null ? void 0 : imageModal.currentImage.src, isOpen: imageModal.isOpen, onCancel: imageModal.handleCancel, onSave: imageModal.handleSave, onError: console.error })
|
|
78
78
|
] })
|
|
79
79
|
] });
|
|
80
|
-
})
|
|
80
|
+
});
|
|
81
81
|
export {
|
|
82
|
-
Editor
|
|
82
|
+
Editor as default
|
|
83
83
|
};
|
|
@@ -33,7 +33,7 @@ const MathsModal = ({
|
|
|
33
33
|
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: handleOnCancel, children: t("tiptap.maths.title") }),
|
|
34
34
|
/* @__PURE__ */ jsxs(Modal.Subtitle, { children: [
|
|
35
35
|
t("tiptap.maths.subtitle.1"),
|
|
36
|
-
/* @__PURE__ */ jsx("a", { href: t("https://fr.wikibooks.org/wiki/LaTeX/%C3%89crire_des_math%C3%A9matiques"), target: "_blank", children: t("tiptap.maths.subtitle.2") })
|
|
36
|
+
/* @__PURE__ */ jsx("a", { href: t("https://fr.wikibooks.org/wiki/LaTeX/%C3%89crire_des_math%C3%A9matiques"), target: "_blank", rel: "noreferrer", children: t("tiptap.maths.subtitle.2") })
|
|
37
37
|
] }),
|
|
38
38
|
/* @__PURE__ */ jsxs(Modal.Body, { children: [
|
|
39
39
|
/* @__PURE__ */ jsx("textarea", { id: "formulaTextArea", name: "formula", rows: 4, cols: 50, onChange: handleChange, placeholder: `Exemple : ${FORMULA_PLACEHOLDER}`, className: "border rounded-3 w-100 px-16 py-12" }),
|
|
@@ -23,7 +23,7 @@ const LinkerRenderer = ({
|
|
|
23
23
|
return /* @__PURE__ */ jsx(NodeViewWrapper, { as: "span", contentEditable: !1, children: /* @__PURE__ */ jsxs(Badge, { variant: {
|
|
24
24
|
type: "link"
|
|
25
25
|
}, className: classes, onClick: (event) => {
|
|
26
|
-
editor && !editor.isEditable && (event.preventDefault, window.open(href ?? "about:blank", target ?? "_self"));
|
|
26
|
+
editor && !editor.isEditable && (event.preventDefault(), window.open(href ?? "about:blank", target ?? "_self"));
|
|
27
27
|
}, "data-drag-handle": !0, children: [
|
|
28
28
|
/* @__PURE__ */ jsx(AppIcon, { size: "24", app: appCode }),
|
|
29
29
|
/* @__PURE__ */ jsx("span", { className: "ms-8 text-truncate", children: title || node.textContent })
|
|
@@ -42,7 +42,7 @@ const MediaRenderer = (props) => {
|
|
|
42
42
|
}
|
|
43
43
|
}, onVideoPlay = () => {
|
|
44
44
|
if (resizableMedia.current instanceof HTMLVideoElement) {
|
|
45
|
-
const videoElement = resizableMedia.current, videoId = videoElement.dataset.documentId, isCaptation = (videoElement.dataset.documentIsCaptation || "false")
|
|
45
|
+
const videoElement = resizableMedia.current, videoId = videoElement.dataset.documentId, isCaptation = (videoElement.dataset.documentIsCaptation || "false") === "true";
|
|
46
46
|
videoId && odeServices.data().trackVideoRead(videoId, isCaptation, window.location.hostname, `${browser.name} ${browser.version}`, device.type);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
@@ -11,5 +11,5 @@ interface LinkToolbarProps {
|
|
|
11
11
|
/** Handle Unlink event */
|
|
12
12
|
onUnlink: (attrs: any) => void;
|
|
13
13
|
}
|
|
14
|
-
declare const LinkToolbar: ({ editor, onEdit, onOpen, onUnlink, }: LinkToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const LinkToolbar: ({ editor, onEdit, onOpen, onUnlink, }: LinkToolbarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
15
|
export default LinkToolbar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo, useEffect } from "react";
|
|
3
3
|
import { FloatingMenu } from "@tiptap/react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
@@ -52,8 +52,8 @@ const LinkToolbar = ({
|
|
|
52
52
|
}], [onEdit, onOpen, onUnlink, t, linkAttrs]);
|
|
53
53
|
return useEffect(() => {
|
|
54
54
|
editor != null && editor.isActive("linker") ? setLinkAttrs(editor.getAttributes("linker")) : editor != null && editor.isActive("hyperlink") ? setLinkAttrs(editor.getAttributes("hyperlink")) : setLinkAttrs(void 0);
|
|
55
|
-
}, [editor == null ? void 0 : editor.state]),
|
|
56
|
-
}
|
|
55
|
+
}, [editor == null ? void 0 : editor.state]), editor && /* @__PURE__ */ jsx(FloatingMenu, { editor, tippyOptions, shouldShow: () => (editor == null ? void 0 : editor.isEditable) && ((editor == null ? void 0 : editor.isActive("linker")) || (editor == null ? void 0 : editor.isActive("hyperlink"))) || !1, children: /* @__PURE__ */ jsx(Toolbar, { className: "p-4", items: LinkToolbarItems }) });
|
|
56
|
+
};
|
|
57
57
|
export {
|
|
58
|
-
LinkToolbar
|
|
58
|
+
LinkToolbar as default
|
|
59
59
|
};
|
|
@@ -5,5 +5,5 @@ interface TableToolbarProps {
|
|
|
5
5
|
*/
|
|
6
6
|
editor: Editor | null;
|
|
7
7
|
}
|
|
8
|
-
declare const TableToolbar: ({ editor }: TableToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const TableToolbar: ({ editor }: TableToolbarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
export default TableToolbar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo, useEffect } from "react";
|
|
3
3
|
import { findParentNodeClosestToPos, FloatingMenu } from "@tiptap/react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
@@ -45,7 +45,7 @@ const TableToolbar = ({
|
|
|
45
45
|
newSpan !== isSpan && setSpan(newSpan);
|
|
46
46
|
} else
|
|
47
47
|
isSpan && setSpan(void 0);
|
|
48
|
-
}, [editor, editor == null ? void 0 : editor.state, isSpan]),
|
|
48
|
+
}, [editor, editor == null ? void 0 : editor.state, isSpan]), editor && /* @__PURE__ */ jsx(FloatingMenu, { editor, tippyOptions, shouldShow: () => (editor == null ? void 0 : editor.isEditable) && editor.isActive("table") || !1, children: /* @__PURE__ */ jsx(Toolbar, { className: "p-4", items: [{
|
|
49
49
|
type: "dropdown",
|
|
50
50
|
name: "bkg-col",
|
|
51
51
|
// isEnable:
|
|
@@ -81,8 +81,8 @@ const TableToolbar = ({
|
|
|
81
81
|
props: {
|
|
82
82
|
children: () => /* @__PURE__ */ jsx(TableToolbarDelMenu, { editor })
|
|
83
83
|
}
|
|
84
|
-
}] }) })
|
|
85
|
-
}
|
|
84
|
+
}] }) });
|
|
85
|
+
};
|
|
86
86
|
export {
|
|
87
|
-
TableToolbar
|
|
87
|
+
TableToolbar as default
|
|
88
88
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Editor } from '@tiptap/react';
|
|
2
|
-
import { WorkspaceVisibility } from 'edifice-ts-client';
|
|
3
2
|
type EditedImage = {
|
|
4
3
|
src: string;
|
|
5
4
|
alt?: string;
|
|
@@ -16,7 +15,7 @@ type EditedImage = {
|
|
|
16
15
|
* `handleSave`: Success event handler,
|
|
17
16
|
* }
|
|
18
17
|
*/
|
|
19
|
-
export declare const useImageModal: (editor: Editor | null, application?: string, visibility?:
|
|
18
|
+
export declare const useImageModal: (editor: Editor | null, application?: string, visibility?: any) => {
|
|
20
19
|
isOpen: boolean;
|
|
21
20
|
currentImage: EditedImage;
|
|
22
21
|
toggle: any;
|
|
@@ -53,7 +53,7 @@ const OnboardingModal = ({
|
|
|
53
53
|
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", onClick: handleSavePreference, children: t(closeText || "explorer.modal.onboarding.trash.close") })
|
|
54
54
|
] })
|
|
55
55
|
] }), document.getElementById("portal")) : null;
|
|
56
|
-
}
|
|
56
|
+
};
|
|
57
57
|
export {
|
|
58
|
-
OnboardingModal
|
|
58
|
+
OnboardingModal as default
|
|
59
59
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
|
-
import Alert from "../../../../components/Alert/Alert.js";
|
|
3
|
+
import { Alert } from "../../../../components/Alert/Alert.js";
|
|
4
4
|
import usePaths from "../../../../core/usePaths/usePaths.js";
|
|
5
5
|
const PublishModalFooter = () => {
|
|
6
6
|
const {
|
|
@@ -9,9 +9,9 @@ import ImagePickerWorkspace from "../../multimedia/ImagePickerWorkspace/ImagePic
|
|
|
9
9
|
import { useThumb } from "./hooks/useThumb.js";
|
|
10
10
|
import useToast from "../../../hooks/useToast/useToast.js";
|
|
11
11
|
import useResource from "../../../core/useResource/useResource.js";
|
|
12
|
+
import useMediaLibrary from "../../../core/useMediaLibrary/useMediaLibrary.js";
|
|
12
13
|
import MediaLibrary from "../../multimedia/MediaLibrary/MediaLibrary.js";
|
|
13
14
|
import { useOdeClient } from "../../../core/OdeClientProvider/OdeClientProvider.js";
|
|
14
|
-
import useMediaLibrary from "../../../core/useMediaLibrary/useMediaLibrary.js";
|
|
15
15
|
import { LoadingScreen } from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
16
16
|
import { Modal } from "../../../components/Modal/Modal.js";
|
|
17
17
|
import { Heading } from "../../../components/Heading/Heading.js";
|
|
@@ -6,4 +6,4 @@ export declare const ShareBookmarkLine: ({ shareRights, showBookmark, toggleBook
|
|
|
6
6
|
toggleRight: (shareRight: ShareRight, actionName: ShareRightActionDisplayName) => void;
|
|
7
7
|
toggleBookmark: () => void;
|
|
8
8
|
onDeleteRow: (shareRight: ShareRight) => void;
|
|
9
|
-
}) =>
|
|
9
|
+
}) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShareRightAction, ShareRightWithVisibles } from 'edifice-ts-client';
|
|
2
2
|
import { ShareOptions, ShareResourceMutation } from '../ShareModal';
|
|
3
3
|
interface UseShareResourceModalProps {
|
|
4
4
|
/**
|
|
@@ -41,7 +41,7 @@ export type ShareAction = {
|
|
|
41
41
|
export default function useShare({ resourceId, resourceRights, resourceCreatorId, shareResource, setIsLoading, onSuccess, }: UseShareResourceModalProps): {
|
|
42
42
|
state: {
|
|
43
43
|
isSharing: boolean;
|
|
44
|
-
shareRights:
|
|
44
|
+
shareRights: any;
|
|
45
45
|
shareRightActions: ShareRightAction[];
|
|
46
46
|
};
|
|
47
47
|
dispatch: import('react').Dispatch<ShareAction>;
|
|
@@ -43,7 +43,7 @@ const AudioRecorder = /* @__PURE__ */ forwardRef(({
|
|
|
43
43
|
/* @__PURE__ */ jsx("audio", { ref: audioRef, onEnded: handlePlayEnded, onTimeUpdate: handleTimeUpdate, children: /* @__PURE__ */ jsx("track", { default: !0, kind: "captions", srcLang: "fr", src: "" }) }),
|
|
44
44
|
/* @__PURE__ */ jsx(Toolbar, { items: toolbarItems })
|
|
45
45
|
] });
|
|
46
|
-
})
|
|
46
|
+
});
|
|
47
47
|
export {
|
|
48
|
-
AudioRecorder
|
|
48
|
+
AudioRecorder as default
|
|
49
49
|
};
|
|
@@ -26,7 +26,7 @@ const Embed = ({
|
|
|
26
26
|
} }),
|
|
27
27
|
!(htmlContent != null && htmlContent.length) && /* @__PURE__ */ jsx("div", { className: "embed-preview mt-12 d-flex align-items-center justify-content-center bg-gray-300 text-black-50 rounded-3", children: /* @__PURE__ */ jsx("strong", { children: t("bbm.embed.preview") }) })
|
|
28
28
|
] });
|
|
29
|
-
}
|
|
29
|
+
};
|
|
30
30
|
export {
|
|
31
|
-
Embed
|
|
31
|
+
Embed as default
|
|
32
32
|
};
|
|
@@ -110,7 +110,7 @@ const ImageEditor = ({
|
|
|
110
110
|
/* @__PURE__ */ jsx(Button, { color: "primary", onClick: handleSave, type: "button", variant: "filled", isLoading: isSaving, disabled: isSaving || !dirty, children: t("imageeditor.save") })
|
|
111
111
|
] })
|
|
112
112
|
] });
|
|
113
|
-
}
|
|
113
|
+
};
|
|
114
114
|
export {
|
|
115
|
-
ImageEditor
|
|
115
|
+
ImageEditor as default
|
|
116
116
|
};
|