@edifice.io/react 2.0.0-develop-rc.3 → 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/ActionBar/ActionBar.d.ts +1 -1
- package/dist/components/ActionBar/ActionBar.js +3 -2
- package/dist/components/ActionBar/index.d.ts +0 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/Alert.js +7 -6
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.js +3 -2
- package/dist/components/AppHeader/index.d.ts +0 -1
- package/dist/components/AppIcon/AppIcon.js +1 -1
- package/dist/components/Attachment/Attachment.d.ts +1 -1
- package/dist/components/Attachment/Attachment.js +3 -2
- package/dist/components/Attachment/index.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +4 -3
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.js +3 -2
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +4 -3
- package/dist/components/Button/IconButton.d.ts +1 -1
- package/dist/components/Button/IconButton.js +4 -3
- package/dist/components/Button/SearchButton.d.ts +1 -1
- package/dist/components/Button/SearchButton.js +4 -3
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.js +3 -2
- package/dist/components/Card/CardHeader.js +1 -1
- package/dist/components/Card/CardImage.js +1 -1
- package/dist/components/Card/CardUser.js +1 -1
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -2
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +5 -4
- package/dist/components/ColorPicker/ColorPickerItem.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPickerItem.js +3 -2
- package/dist/components/ColorPicker/index.d.ts +1 -3
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.js +4 -4
- package/dist/components/Combobox/ComboboxTrigger.js +2 -2
- package/dist/components/Combobox/index.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.js +4 -3
- package/dist/components/Dropdown/DropdownCheckboxItem.js +1 -1
- package/dist/components/Dropdown/DropdownRadioItem.js +1 -1
- package/dist/components/Dropdown/index.d.ts +0 -1
- package/dist/components/Dropzone/Dropzone.d.ts +1 -1
- package/dist/components/Dropzone/Dropzone.js +2 -2
- package/dist/components/Dropzone/DropzoneFile.js +1 -1
- package/dist/components/Dropzone/DropzoneImport.js +1 -1
- package/dist/components/Dropzone/index.d.ts +0 -1
- package/dist/components/EmptyScreen/EmptyScreen.d.ts +1 -1
- package/dist/components/EmptyScreen/EmptyScreen.js +4 -3
- package/dist/components/EmptyScreen/index.d.ts +0 -1
- package/dist/components/FileCard/FileCard.d.ts +1 -1
- package/dist/components/FileCard/FileCard.js +4 -3
- package/dist/components/FileCard/index.d.ts +0 -1
- package/dist/components/Form/FormControl.d.ts +1 -1
- package/dist/components/Form/FormControl.js +6 -5
- package/dist/components/Form/FormText.d.ts +1 -1
- package/dist/components/Form/FormText.js +3 -2
- package/dist/components/Form/index.d.ts +1 -2
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Heading/Heading.js +3 -2
- package/dist/components/Heading/index.d.ts +0 -1
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/Image/Image.js +3 -2
- package/dist/components/Image/index.d.ts +0 -1
- package/dist/components/ImagePicker/ImagePicker.js +4 -4
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +3 -2
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.js +3 -2
- package/dist/components/Label/index.d.ts +0 -1
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/Loading/Loading.js +3 -2
- package/dist/components/Loading/index.d.ts +0 -1
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +1 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +3 -2
- package/dist/components/LoadingScreen/index.d.ts +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/Logo.js +3 -2
- package/dist/components/Logo/index.d.ts +0 -1
- package/dist/components/Menu/MenuButton.js +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.js +3 -2
- package/dist/components/Modal/ModalHeader.js +1 -1
- package/dist/components/Modal/index.d.ts +0 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +3 -2
- package/dist/components/Radio/index.d.ts +0 -1
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +5 -4
- package/dist/components/SearchBar/index.d.ts +0 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +4 -3
- package/dist/components/Select/SelectTrigger.js +1 -1
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Table/TableExplorer.d.ts +1 -1
- package/dist/components/Table/TableExplorer.js +4 -3
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/TabsList.js +1 -1
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextArea/TextArea.js +5 -4
- package/dist/components/TextArea/index.d.ts +0 -1
- package/dist/components/Toolbar/Toolbar.d.ts +1 -1
- package/dist/components/Toolbar/Toolbar.js +7 -6
- package/dist/components/Toolbar/index.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -2
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/components/TreeView/TreeView.js +3 -2
- package/dist/components/TreeView/index.d.ts +0 -1
- package/dist/components/UploadCard/UploadCard.js +6 -6
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +3 -2
- package/dist/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/core/useAvatar/useAvatar.js +1 -1
- 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 +142 -142
- package/dist/modals.js +14 -16
- package/dist/modules/audience/ReactionChoice.js +5 -5
- package/dist/modules/audience/ReactionModal.Card.js +1 -1
- package/dist/modules/audience/ReactionModal.js +4 -5
- package/dist/modules/audience/ReactionSummary.js +3 -3
- package/dist/modules/audience/ViewsCounter.js +3 -3
- package/dist/modules/audience/ViewsModal.js +4 -4
- 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 +3 -3
- package/dist/modules/editor/components/Editor/Editor.js +4 -4
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +0 -1
- package/dist/modules/editor/components/Editor/MathsModal.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js +4 -4
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js +1 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js +4 -4
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.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/AttachmentRenderer.js +2 -2
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +2 -2
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +2 -2
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +5 -5
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +2 -2
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js +4 -4
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +2 -2
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +6 -6
- 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 +5 -5
- package/dist/modules/modals/PublishModal/PublishModal.js +8 -8
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js +1 -1
- package/dist/modules/modals/PublishModal/components/AgeSelect.js +1 -1
- package/dist/modules/modals/PublishModal/components/LangSelect.js +1 -1
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +1 -1
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +12 -11
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js +8 -7
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +3 -2
- package/dist/modules/modals/ResourceModal/index.d.ts +3 -3
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +2 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +3 -2
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +2 -2
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js +3 -2
- package/dist/modules/modals/ShareModal/index.d.ts +3 -3
- 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 +5 -5
- package/dist/modules/multimedia/Embed/Embed.js +4 -4
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +8 -8
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +1 -1
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +36 -38
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +2 -2
- package/dist/modules/multimedia/Linker/ExternalLinker.js +9 -9
- package/dist/modules/multimedia/Linker/InternalLinker.js +6 -6
- package/dist/modules/multimedia/LinkerCard/LinkerCard.d.ts +1 -1
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +5 -4
- package/dist/modules/multimedia/LinkerCard/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +5 -5
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +3 -3
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +1 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -1
- 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 +7 -7
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +7 -7
- package/dist/modules/multimedia/Workspace/Workspace.js +10 -10
- package/dist/multimedia.js +18 -18
- package/dist/portal/Header/Header.js +3 -3
- package/dist/portal/Header/NavLink.js +1 -1
- package/dist/portal/Help/Help.d.ts +0 -1
- package/dist/portal/Help/Help.js +1 -1
- package/dist/portal/Help/hooks/useHelp.js +1 -1
- package/dist/portal/Layout/Layout.js +4 -4
- package/dist/portal/SearchEngine/SearchEngine.js +2 -2
- package/dist/utils/fileSize.js +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +2 -2
- package/package.json +19 -28
- package/dist/modules/modals/ShareModal/ShareBookmark.js +0 -22
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +0 -42
- package/dist/modules/modals/ShareModal/ShareModal.js +0 -128
- package/dist/modules/modals/ShareModal/hooks/useSearch.js +0 -178
- package/dist/modules/modals/ShareModal/hooks/useShare.js +0 -192
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +0 -67
- package/dist/modules/modals/ShareModal/utils/hasRight.js +0 -4
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.js +0 -4
|
@@ -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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationResult } from '../../../../../node_modules/@tanstack/react-query';
|
|
2
2
|
import { PutShareResponse, ShareRight } from 'edifice-ts-client';
|
|
3
|
-
declare const useShareMutation: ({ application, options, }: {
|
|
3
|
+
export declare const useShareMutation: ({ application, options, }: {
|
|
4
4
|
application: string;
|
|
5
5
|
options?: UseMutationOptions<PutShareResponse, Error, {
|
|
6
6
|
resourceId: string;
|
|
@@ -9,7 +9,8 @@ const useShareMutation = ({
|
|
|
9
9
|
rights
|
|
10
10
|
}) => await odeServices.share().saveRights(application, resourceId, rights),
|
|
11
11
|
...options
|
|
12
|
-
})
|
|
12
|
+
});
|
|
13
13
|
export {
|
|
14
|
-
useShareMutation
|
|
14
|
+
useShareMutation as default,
|
|
15
|
+
useShareMutation
|
|
15
16
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './ShareModal';
|
|
2
|
+
export * from './apps/ShareBlog';
|
|
3
|
+
export * from './hooks/useShareMutation';
|
|
@@ -4,9 +4,9 @@ import clsx from "clsx";
|
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import AudioRecorderTimer from "./AudioRecorderTimer.js";
|
|
6
6
|
import useAudioRecorder from "./useAudioRecorder.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import { Toolbar } from "../../../components/Toolbar/Toolbar.js";
|
|
8
|
+
import { FormControl } from "../../../components/Form/FormControl.js";
|
|
9
|
+
import { Input } from "../../../components/Input/Input.js";
|
|
10
10
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
11
11
|
const AudioRecorder = /* @__PURE__ */ forwardRef(({
|
|
12
12
|
onSaveSuccess,
|
|
@@ -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
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import TextArea from "../../../components/TextArea/TextArea.js";
|
|
4
|
+
import { TextArea } from "../../../components/TextArea/TextArea.js";
|
|
5
5
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
6
|
-
import FormControl from "../../../components/Form/FormControl.js";
|
|
6
|
+
import { FormControl } from "../../../components/Form/FormControl.js";
|
|
7
7
|
const Embed = ({
|
|
8
8
|
onSuccess
|
|
9
9
|
}) => {
|
|
@@ -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
|
};
|
|
@@ -4,12 +4,12 @@ import { Stage } from "@pixi/react";
|
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import useImageEditor from "../hooks/useImageEditor.js";
|
|
6
6
|
import ImageEditorToolbar from "./ImageEditorToolbar.js";
|
|
7
|
-
import Modal from "../../../../components/Modal/Modal.js";
|
|
8
|
-
import LoadingScreen from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
9
|
-
import FormControl from "../../../../components/Form/FormControl.js";
|
|
10
|
-
import Label from "../../../../components/Label/Label.js";
|
|
11
|
-
import Input from "../../../../components/Input/Input.js";
|
|
12
|
-
import Button from "../../../../components/Button/Button.js";
|
|
7
|
+
import { Modal } from "../../../../components/Modal/Modal.js";
|
|
8
|
+
import { LoadingScreen } from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
9
|
+
import { FormControl } from "../../../../components/Form/FormControl.js";
|
|
10
|
+
import { Label } from "../../../../components/Label/Label.js";
|
|
11
|
+
import { Input } from "../../../../components/Input/Input.js";
|
|
12
|
+
import { Button } from "../../../../components/Button/Button.js";
|
|
13
13
|
const ImageEditor = ({
|
|
14
14
|
altText: altTextParam,
|
|
15
15
|
legend: legendParam,
|
|
@@ -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
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
5
|
-
import Toolbar from "../../../../components/Toolbar/Toolbar.js";
|
|
5
|
+
import { Toolbar } from "../../../../components/Toolbar/Toolbar.js";
|
|
6
6
|
const ImageEditorToolbar = ({
|
|
7
7
|
historyCount,
|
|
8
8
|
handle
|
|
@@ -14,46 +14,44 @@ const DEFAULT_MAX_HISTORY = 20, useHistoryTool = ({
|
|
|
14
14
|
const imgData = history.pop();
|
|
15
15
|
imgData && (onRestore(await imgData.backup, imgData), setHistory(history.filter((current) => current !== imgData)));
|
|
16
16
|
}, listSize = (arr) => (arr.length > maxSize && arr.splice(0, arr.length - maxSize), arr), historize = async (callback) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
height: sprite.height
|
|
30
|
-
},
|
|
31
|
-
position: {
|
|
32
|
-
x: sprite.position.x,
|
|
33
|
-
y: sprite.position.y
|
|
34
|
-
},
|
|
35
|
-
scale: {
|
|
36
|
-
x: sprite.scale.x,
|
|
37
|
-
y: sprite.scale.y
|
|
38
|
-
},
|
|
39
|
-
anchor: {
|
|
40
|
-
x: sprite.anchor.x,
|
|
41
|
-
y: sprite.anchor.y
|
|
42
|
-
}
|
|
17
|
+
if (!application)
|
|
18
|
+
return;
|
|
19
|
+
const sprite = application.stage.getChildByName(spriteName, !0);
|
|
20
|
+
if (sprite == null)
|
|
21
|
+
return;
|
|
22
|
+
const promise = toBlob(application), state = {
|
|
23
|
+
backup: promise,
|
|
24
|
+
sprite: {
|
|
25
|
+
rotation: sprite.rotation,
|
|
26
|
+
size: {
|
|
27
|
+
width: sprite.width,
|
|
28
|
+
height: sprite.height
|
|
43
29
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
30
|
+
position: {
|
|
31
|
+
x: sprite.position.x,
|
|
32
|
+
y: sprite.position.y
|
|
33
|
+
},
|
|
34
|
+
scale: {
|
|
35
|
+
x: sprite.scale.x,
|
|
36
|
+
y: sprite.scale.y
|
|
37
|
+
},
|
|
38
|
+
anchor: {
|
|
39
|
+
x: sprite.anchor.x,
|
|
40
|
+
y: sprite.anchor.y
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
stage: {
|
|
44
|
+
size: {
|
|
45
|
+
width: application.stage.width,
|
|
46
|
+
height: application.stage.height
|
|
47
|
+
},
|
|
48
|
+
scale: {
|
|
49
|
+
x: application.stage.scale.x,
|
|
50
|
+
y: application.stage.scale.y
|
|
53
51
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return setHistory([...listSize(history), state]), await promise, callback.call(callback);
|
|
57
55
|
};
|
|
58
56
|
return {
|
|
59
57
|
historyCount: history.length,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import IconButton from "../../../components/Button/IconButton.js";
|
|
5
|
-
import Avatar from "../../../components/Avatar/Avatar.js";
|
|
4
|
+
import { IconButton } from "../../../components/Button/IconButton.js";
|
|
6
5
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
6
|
+
import { Avatar } from "../../../components/Avatar/Avatar.js";
|
|
7
7
|
import { AppIcon } from "../../../components/AppIcon/AppIcon.js";
|
|
8
8
|
const ImagePickerWorkspace = ({
|
|
9
9
|
addButtonLabel = "Add image",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { StringUtils } from "../../../utils/StringUtils.js";
|
|
5
5
|
import useToggle from "../../../hooks/useToggle/useToggle.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import { FormControl } from "../../../components/Form/FormControl.js";
|
|
7
|
+
import { Label } from "../../../components/Label/Label.js";
|
|
8
|
+
import { Input } from "../../../components/Input/Input.js";
|
|
9
|
+
import { Checkbox } from "../../../components/Checkbox/Checkbox.js";
|
|
10
10
|
const ExternalLinker = ({
|
|
11
11
|
link,
|
|
12
12
|
onChange,
|
|
@@ -28,7 +28,7 @@ const ExternalLinker = ({
|
|
|
28
28
|
target: isBlankTarget ? "_blank" : void 0
|
|
29
29
|
};
|
|
30
30
|
!StringUtils.isLocalURL(linkURL) && !StringUtils.startWithHttp(linkURL) && (newLink.url = "http://" + linkURL), onChange == null || onChange(newLink);
|
|
31
|
-
}, [linkText, linkURL, isBlankTarget]), /* @__PURE__ */
|
|
31
|
+
}, [linkText, linkURL, isBlankTarget]), /* @__PURE__ */ jsxs("div", { className: "d-flex flex-column flex-fill gap-24", children: [
|
|
32
32
|
/* @__PURE__ */ jsxs(FormControl, { id: "linkText", isOptional: !0, children: [
|
|
33
33
|
/* @__PURE__ */ jsx(Label, { children: t("bbm.linker.ext.text") }),
|
|
34
34
|
/* @__PURE__ */ jsx(Input, { type: "text", placeholder: t("bbm.linker.ext.text.placeholder"), size: "md", disabled: multiNodeSelected, value: linkText, onChange: (e) => setLinkText(e.target.value) })
|
|
@@ -38,8 +38,8 @@ const ExternalLinker = ({
|
|
|
38
38
|
/* @__PURE__ */ jsx(Input, { type: "text", placeholder: t("bbm.linker.ext.url.placeholder"), size: "md", value: linkURL, onChange: (e) => setLinkURL(e.target.value) })
|
|
39
39
|
] }),
|
|
40
40
|
/* @__PURE__ */ jsx(Checkbox, { label: t("bbm.linker.open.tab"), onChange: () => toggleBlankTarget(), checked: isBlankTarget })
|
|
41
|
-
] })
|
|
42
|
-
}
|
|
41
|
+
] });
|
|
42
|
+
};
|
|
43
43
|
export {
|
|
44
|
-
ExternalLinker
|
|
44
|
+
ExternalLinker as default
|
|
45
45
|
};
|
|
@@ -2,15 +2,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useCallback, useEffect } from "react";
|
|
3
3
|
import { odeServices } from "edifice-ts-client";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
|
-
import LinkerCard from "../LinkerCard/LinkerCard.js";
|
|
5
|
+
import { LinkerCard } from "../LinkerCard/LinkerCard.js";
|
|
6
6
|
import { useResourceSearch } from "../../../core/useResourceSearch/useResourceSearch.js";
|
|
7
7
|
import useDebounce from "../../../hooks/useDebounce/useDebounce.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import EmptyScreen from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
8
|
+
import { SearchBar } from "../../../components/SearchBar/SearchBar.js";
|
|
9
|
+
import { EmptyScreen } from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
11
10
|
import usePaths from "../../../core/usePaths/usePaths.js";
|
|
12
11
|
import { useOdeTheme } from "../../../core/ThemeProvider/ThemeProvider.js";
|
|
13
12
|
import { AppIcon } from "../../../components/AppIcon/AppIcon.js";
|
|
13
|
+
import { Dropdown } from "../../../components/Dropdown/Dropdown.js";
|
|
14
14
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
15
15
|
const InternalLinker = ({
|
|
16
16
|
appCode,
|
|
@@ -108,7 +108,7 @@ const InternalLinker = ({
|
|
|
108
108
|
!selectedApplication && /* @__PURE__ */ jsx("div", { className: "d-flex justify-content-center mt-32", children: /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/illu-empty-search.svg`, text: t("bbm.linker.int.empty"), className: "mt-32" }) })
|
|
109
109
|
] })
|
|
110
110
|
] });
|
|
111
|
-
}
|
|
111
|
+
};
|
|
112
112
|
export {
|
|
113
|
-
InternalLinker
|
|
113
|
+
InternalLinker as default
|
|
114
114
|
};
|
|
@@ -6,7 +6,7 @@ export interface LinkerCardProps extends CardProps {
|
|
|
6
6
|
* */
|
|
7
7
|
doc: IResource;
|
|
8
8
|
}
|
|
9
|
-
declare const LinkerCard: {
|
|
9
|
+
export declare const LinkerCard: {
|
|
10
10
|
({ doc, isClickable, isSelectable, isSelected, onClick, className, }: LinkerCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
@@ -2,8 +2,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import useDate from "../../../core/useDate/useDate.js";
|
|
5
|
-
import Card from "../../../components/Card/Card.js";
|
|
6
|
-
import Image from "../../../components/Image/Image.js";
|
|
5
|
+
import { Card } from "../../../components/Card/Card.js";
|
|
6
|
+
import { Image } from "../../../components/Image/Image.js";
|
|
7
7
|
import { AppIcon } from "../../../components/AppIcon/AppIcon.js";
|
|
8
8
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
9
9
|
const LinkerCard = ({
|
|
@@ -32,7 +32,8 @@ const LinkerCard = ({
|
|
|
32
32
|
/* @__PURE__ */ jsx("div", { className: "d-none d-md-block text-black-50 ps-4 pe-8", children: /* @__PURE__ */ jsx(Card.Text, { children: fromDate }) }),
|
|
33
33
|
doc.shared && /* @__PURE__ */ jsx("div", { className: "ps-4 pe-8", children: /* @__PURE__ */ jsx(Icon, { name: "users", size: "20" }) })
|
|
34
34
|
] }) });
|
|
35
|
-
}
|
|
35
|
+
};
|
|
36
36
|
export {
|
|
37
|
-
LinkerCard
|
|
37
|
+
LinkerCard,
|
|
38
|
+
LinkerCard as default
|
|
38
39
|
};
|
|
@@ -2,14 +2,14 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useRef, useImperativeHandle, useState, useMemo, useEffect, useCallback } from "react";
|
|
3
3
|
import { odeServices } from "edifice-ts-client";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
|
-
import Modal from "../../../components/Modal/Modal.js";
|
|
5
|
+
import { Modal } from "../../../components/Modal/Modal.js";
|
|
6
6
|
import { MediaLibraryContext } from "./MediaLibraryContext.js";
|
|
7
7
|
import { InnerTabs } from "./innertabs/index.js";
|
|
8
8
|
import { useHttpErrorToast } from "../../../core/useHttpErrorToast/useHttpErrorToast.js";
|
|
9
9
|
import useHasWorkflow from "../../../core/useHasWorkflow/useHasWorkflow.js";
|
|
10
|
-
import Tabs from "../../../components/Tabs/Tabs.js";
|
|
10
|
+
import { Tabs } from "../../../components/Tabs/Tabs.js";
|
|
11
11
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
12
|
-
import Button from "../../../components/Button/Button.js";
|
|
12
|
+
import { Button } from "../../../components/Button/Button.js";
|
|
13
13
|
const orderedTabs = [
|
|
14
14
|
"audio-capture",
|
|
15
15
|
"video-capture",
|
|
@@ -150,7 +150,7 @@ const orderedTabs = [
|
|
|
150
150
|
return 0 > index || index >= tabs.length ? 0 : index;
|
|
151
151
|
}, [tabs, defaultTabId]), [resultCounter, setResultCounter] = useState(), [result, setResult] = useState(), [deletionsOnCancel, setDeletionsOnCancel] = useState([]), [onSuccessAction, setPreSuccess] = useState();
|
|
152
152
|
function setVisibleTab(tab) {
|
|
153
|
-
throw tabs.findIndex((t2) => t2.id === tab) < 0 ? "tab.not.visible" : "not.implemented.yet";
|
|
153
|
+
throw tabs.findIndex((t2) => t2.id === tab) < 0 ? new Error("tab.not.visible") : new Error("not.implemented.yet");
|
|
154
154
|
}
|
|
155
155
|
function switchType(type2) {
|
|
156
156
|
linkTabProps.current = void 0, setDefaultTabId(void 0), setType(type2);
|
|
@@ -178,7 +178,7 @@ const orderedTabs = [
|
|
|
178
178
|
onSuccessAction ? onSuccessAction().then((result2) => {
|
|
179
179
|
triggerSuccess(result2);
|
|
180
180
|
}) : result && triggerSuccess(result), resetState();
|
|
181
|
-
}, [onSuccessAction, result, onSuccess, visibility]), handleOnCancel = () => {
|
|
181
|
+
}, [onSuccessAction, result, onSuccess, visibility, appCode]), handleOnCancel = () => {
|
|
182
182
|
onCancel(deletionsOnCancel), resetState();
|
|
183
183
|
};
|
|
184
184
|
return type && /* @__PURE__ */ jsx(MediaLibraryContext.Provider, { value: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { WorkspaceElement
|
|
1
|
+
import { WorkspaceElement } from 'edifice-ts-client';
|
|
2
2
|
import { MediaLibraryType, AvailableTab, MediaLibraryResult } from './MediaLibrary';
|
|
3
3
|
export declare const MediaLibraryContext: import('react').Context<{
|
|
4
4
|
/** Application code (example: "blog") */
|
|
5
5
|
appCode: string;
|
|
6
6
|
/** Visibility of the uploaded files. */
|
|
7
|
-
visibility?:
|
|
7
|
+
visibility?: any;
|
|
8
8
|
/** Allow selecting / uploading multiple files at once ? */
|
|
9
9
|
multiple?: boolean | undefined;
|
|
10
10
|
/** Type of resource to search for. */
|
|
@@ -33,7 +33,7 @@ export declare function useMediaLibraryContext(): {
|
|
|
33
33
|
/** Application code (example: "blog") */
|
|
34
34
|
appCode: string;
|
|
35
35
|
/** Visibility of the uploaded files. */
|
|
36
|
-
visibility?:
|
|
36
|
+
visibility?: any;
|
|
37
37
|
/** Allow selecting / uploading multiple files at once ? */
|
|
38
38
|
multiple?: boolean | undefined;
|
|
39
39
|
/** Type of resource to search for. */
|
|
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
|
|
|
4
4
|
import InternalLinker from "../../Linker/InternalLinker.js";
|
|
5
5
|
import { useMediaLibraryContext } from "../MediaLibraryContext.js";
|
|
6
6
|
import useToggle from "../../../../hooks/useToggle/useToggle.js";
|
|
7
|
-
import Checkbox from "../../../../components/Checkbox/Checkbox.js";
|
|
7
|
+
import { Checkbox } from "../../../../components/Checkbox/Checkbox.js";
|
|
8
8
|
const InternalLink = ({
|
|
9
9
|
target,
|
|
10
10
|
resourceId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMediaLibraryContext } from "../MediaLibraryContext.js";
|
|
3
|
-
import Dropzone from "../../../../components/Dropzone/Dropzone.js";
|
|
3
|
+
import { Dropzone } from "../../../../components/Dropzone/Dropzone.js";
|
|
4
4
|
import UploadFiles from "../../UploadFiles/UploadFiles.js";
|
|
5
5
|
const acceptedTypes = (type) => {
|
|
6
6
|
const acceptedTypes2 = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMediaLibraryContext } from "../MediaLibraryContext.js";
|
|
3
|
-
import
|
|
3
|
+
import Workspace$1 from "../../Workspace/Workspace.js";
|
|
4
4
|
const Workspace = () => {
|
|
5
5
|
const {
|
|
6
6
|
type,
|
|
@@ -24,7 +24,7 @@ const Workspace = () => {
|
|
|
24
24
|
function handleSelect(result) {
|
|
25
25
|
setResultCounter(result.length), result.length ? setResult(result) : setResult();
|
|
26
26
|
}
|
|
27
|
-
return /* @__PURE__ */ jsx(
|
|
27
|
+
return /* @__PURE__ */ jsx(Workspace$1, { roles: getDocumentRoleFilter(), onSelect: handleSelect, multiple, className: "border rounded overflow-y-auto", defaultFolder: visibility, showPublicFolder: visibility === "public" });
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
30
30
|
Workspace
|
|
@@ -2,7 +2,7 @@ import { WorkspaceElement, WorkspaceVisibility } from 'edifice-ts-client';
|
|
|
2
2
|
declare const UploadFiles: {
|
|
3
3
|
({ onFilesChange, visibility, }: {
|
|
4
4
|
onFilesChange: (uploadedFiles: WorkspaceElement[]) => void;
|
|
5
|
-
visibility?:
|
|
5
|
+
visibility?: any;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs, jsx
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useId, useEffect } from "react";
|
|
3
3
|
import { odeServices } from "edifice-ts-client";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
@@ -6,11 +6,11 @@ import { useMediaLibraryContext } from "../MediaLibrary/MediaLibraryContext.js";
|
|
|
6
6
|
import useDebounce from "../../../hooks/useDebounce/useDebounce.js";
|
|
7
7
|
import usePaths from "../../../core/usePaths/usePaths.js";
|
|
8
8
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
9
|
-
import FormControl from "../../../components/Form/FormControl.js";
|
|
10
|
-
import Input from "../../../components/Input/Input.js";
|
|
11
|
-
import Image from "../../../components/Image/Image.js";
|
|
12
|
-
import EmptyScreen from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
13
|
-
import Button from "../../../components/Button/Button.js";
|
|
9
|
+
import { FormControl } from "../../../components/Form/FormControl.js";
|
|
10
|
+
import { Input } from "../../../components/Input/Input.js";
|
|
11
|
+
import { Image } from "../../../components/Image/Image.js";
|
|
12
|
+
import { EmptyScreen } from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
13
|
+
import { Button } from "../../../components/Button/Button.js";
|
|
14
14
|
const VideoEmbed = ({
|
|
15
15
|
onSuccess
|
|
16
16
|
}) => {
|
|
@@ -69,7 +69,7 @@ const VideoEmbed = ({
|
|
|
69
69
|
t("bbm.video.url.title")
|
|
70
70
|
] }),
|
|
71
71
|
/* @__PURE__ */ jsx(FormControl, { id: formControlId, children: /* @__PURE__ */ jsx(Input, { size: "md", type: "text", placeholder: t("bbm.video.url.placeholder"), onChange: handleUrlChange }) }),
|
|
72
|
-
|
|
72
|
+
renderContent()
|
|
73
73
|
] });
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
@@ -5,13 +5,13 @@ import { useTranslation } from "react-i18next";
|
|
|
5
5
|
import useBrowserInfo from "../../../hooks/useBrowserInfo/useBrowserInfo.js";
|
|
6
6
|
import useUpload from "../../../core/useUpload/useUpload.js";
|
|
7
7
|
import { getBestSupportedMimeType } from "../../../utils/video.js";
|
|
8
|
-
import Select from "../../../components/Select/Select.js";
|
|
9
|
-
import Toolbar from "../../../components/Toolbar/Toolbar.js";
|
|
8
|
+
import { Select } from "../../../components/Select/Select.js";
|
|
10
9
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
11
|
-
import FormControl from "../../../components/Form/FormControl.js";
|
|
12
|
-
import Label from "../../../components/Label/Label.js";
|
|
10
|
+
import { FormControl } from "../../../components/Form/FormControl.js";
|
|
11
|
+
import { Label } from "../../../components/Label/Label.js";
|
|
13
12
|
import { convertMsToMS } from "../../../utils/time.js";
|
|
14
|
-
import
|
|
13
|
+
import { Toolbar } from "../../../components/Toolbar/Toolbar.js";
|
|
14
|
+
import { LoadingScreen } from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
15
15
|
const VIDEO_HEIGHT = 9, VIDEO_WIDTH = 16, VideoRecorder = /* @__PURE__ */ forwardRef(({
|
|
16
16
|
appCode,
|
|
17
17
|
caption,
|
|
@@ -253,7 +253,7 @@ const VIDEO_HEIGHT = 9, VIDEO_WIDTH = 16, VideoRecorder = /* @__PURE__ */ forwar
|
|
|
253
253
|
] }),
|
|
254
254
|
saving && /* @__PURE__ */ jsx(LoadingScreen, { position: !1, caption: t("bbm.video.save.loader.caption") })
|
|
255
255
|
] });
|
|
256
|
-
})
|
|
256
|
+
});
|
|
257
257
|
export {
|
|
258
|
-
VideoRecorder
|
|
258
|
+
VideoRecorder as default
|
|
259
259
|
};
|
|
@@ -4,13 +4,13 @@ import clsx from "clsx";
|
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import useWorkspaceSearch from "../../../core/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
6
6
|
import { Grid } from "../../../components/Grid/Grid.js";
|
|
7
|
-
import TreeView from "../../../components/TreeView/TreeView.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import Dropdown from "../../../components/Dropdown/Dropdown.js";
|
|
7
|
+
import { TreeView } from "../../../components/TreeView/TreeView.js";
|
|
8
|
+
import { FileCard } from "../../../components/FileCard/FileCard.js";
|
|
9
|
+
import { SearchBar } from "../../../components/SearchBar/SearchBar.js";
|
|
10
|
+
import { Dropdown } from "../../../components/Dropdown/Dropdown.js";
|
|
11
11
|
import { Icon } from "../../../components/Icon/Icon.js";
|
|
12
|
-
import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
13
|
-
import EmptyScreen from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
12
|
+
import { LoadingScreen } from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
13
|
+
import { EmptyScreen } from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
14
14
|
import { findTreeNode } from "../../../utils/findTreeNode.js";
|
|
15
15
|
const Workspace = ({
|
|
16
16
|
roles,
|
|
@@ -57,7 +57,7 @@ const Workspace = ({
|
|
|
57
57
|
othersRef: [ownerRef, sharedRef, protectRef]
|
|
58
58
|
};
|
|
59
59
|
default:
|
|
60
|
-
throw "no.root.node";
|
|
60
|
+
throw new Error("no.root.node");
|
|
61
61
|
}
|
|
62
62
|
}, [ownerRoot, sharedRoot, protectRoot, publicRoot]), loadContent = useCallback(() => {
|
|
63
63
|
switch (currentFilter) {
|
|
@@ -74,7 +74,7 @@ const Workspace = ({
|
|
|
74
74
|
loadPublicDocs(currentNode.id);
|
|
75
75
|
break;
|
|
76
76
|
default:
|
|
77
|
-
throw "no.way";
|
|
77
|
+
throw new Error("no.way");
|
|
78
78
|
}
|
|
79
79
|
}, [currentFilter, currentNode.id, loadOwnerDocs, loadProtectedDocs, loadPublicDocs, loadSharedDocs]);
|
|
80
80
|
function selectAndLoadContent(filter, nodeId) {
|
|
@@ -163,7 +163,7 @@ const Workspace = ({
|
|
|
163
163
|
}) }) : /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: "/assets/themes/edifice-bootstrap/images/emptyscreen/illu-trash.svg", text: t("workspace.empty.docSpace"), title: t("explorer.emptyScreen.trash.title") }) : /* @__PURE__ */ jsx(LoadingScreen, {}) })
|
|
164
164
|
] }) })
|
|
165
165
|
] });
|
|
166
|
-
}
|
|
166
|
+
};
|
|
167
167
|
export {
|
|
168
|
-
|
|
168
|
+
Workspace as default
|
|
169
169
|
};
|
package/dist/multimedia.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/multimedia/
|
|
2
|
-
import { default as default3 } from "./modules/multimedia/
|
|
3
|
-
import { default as default4 } from "./modules/multimedia/
|
|
4
|
-
import { default as default5 } from "./modules/multimedia/Linker/
|
|
5
|
-
import { default as default6 } from "./modules/multimedia/
|
|
6
|
-
import { default as default7 } from "./modules/multimedia/
|
|
7
|
-
import { default as default8 } from "./modules/multimedia/
|
|
8
|
-
import { default as default9 } from "./modules/multimedia/
|
|
9
|
-
import {
|
|
1
|
+
import { default as default2 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
2
|
+
import { default as default3 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
3
|
+
import { default as default4 } from "./modules/multimedia/Linker/InternalLinker.js";
|
|
4
|
+
import { default as default5 } from "./modules/multimedia/Linker/ExternalLinker.js";
|
|
5
|
+
import { default as default6 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
6
|
+
import { default as default7 } from "./modules/multimedia/Embed/Embed.js";
|
|
7
|
+
import { default as default8 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
8
|
+
import { default as default9 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
9
|
+
import { LinkerCard } from "./modules/multimedia/LinkerCard/LinkerCard.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
default6 as AudioRecorder,
|
|
12
|
+
default7 as Embed,
|
|
13
|
+
default5 as ExternalLinker,
|
|
14
|
+
default8 as ImageEditor,
|
|
15
|
+
default4 as InternalLinker,
|
|
16
|
+
LinkerCard,
|
|
17
|
+
default9 as MediaLibrary,
|
|
18
|
+
default3 as VideoRecorder,
|
|
19
|
+
default2 as Workspace
|
|
20
20
|
};
|
|
@@ -13,13 +13,13 @@ import useConversation from "../../core/useConversation/useConversation.js";
|
|
|
13
13
|
import useUser from "../../core/useUser/useUser.js";
|
|
14
14
|
import useHasWorkflow from "../../core/useHasWorkflow/useHasWorkflow.js";
|
|
15
15
|
import useHeader from "../../core/useHeader/useHeader.js";
|
|
16
|
-
import
|
|
17
|
-
import VisuallyHidden from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
16
|
+
import { VisuallyHidden } from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
18
17
|
import Help from "../Help/Help.js";
|
|
19
|
-
import Logo from "../../components/Logo/Logo.js";
|
|
18
|
+
import { Logo } from "../../components/Logo/Logo.js";
|
|
20
19
|
import { Popover, PopoverBody, PopoverFooter } from "../../components/Popover/Popover.js";
|
|
21
20
|
import { useOdeClient } from "../../core/OdeClientProvider/OdeClientProvider.js";
|
|
22
21
|
import { useOdeTheme } from "../../core/ThemeProvider/ThemeProvider.js";
|
|
22
|
+
import { Avatar } from "../../components/Avatar/Avatar.js";
|
|
23
23
|
import { Icon } from "../../components/Icon/Icon.js";
|
|
24
24
|
const Header = ({
|
|
25
25
|
is1d = !1,
|