@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
|
@@ -2,10 +2,10 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import EmojiPicker, { Categories } from "emoji-picker-react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
5
|
-
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
6
|
-
import IconButton from "../../../../components/Button/IconButton.js";
|
|
5
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
6
|
+
import { IconButton } from "../../../../components/Button/IconButton.js";
|
|
7
7
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
8
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
8
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
9
9
|
const EditorToolbarEmoji = ({
|
|
10
10
|
triggerProps,
|
|
11
11
|
itemRefs
|
|
@@ -3,11 +3,11 @@ import { useState, useMemo, useCallback, useEffect } from "react";
|
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
5
5
|
import { DefaultPalette } from "../../../../components/ColorPicker/ColorPalette.js";
|
|
6
|
-
import ColorPicker from "../../../../components/ColorPicker/ColorPicker.js";
|
|
7
|
-
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
8
|
-
import IconButton from "../../../../components/Button/IconButton.js";
|
|
6
|
+
import { ColorPicker } from "../../../../components/ColorPicker/ColorPicker.js";
|
|
7
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
8
|
+
import { IconButton } from "../../../../components/Button/IconButton.js";
|
|
9
9
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
10
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
10
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
11
11
|
const EditorToolbarHighlightColor = ({
|
|
12
12
|
triggerProps,
|
|
13
13
|
itemRefs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as Fragment$1 } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
4
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
5
5
|
const EditorToolbarPlusMenu = ({
|
|
6
6
|
options
|
|
7
7
|
}) => {
|
|
@@ -3,11 +3,11 @@ import { useState, useMemo, useCallback, useEffect } from "react";
|
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
5
5
|
import { DefaultPalette, AccessiblePalette } from "../../../../components/ColorPicker/ColorPalette.js";
|
|
6
|
-
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
-
import IconButton from "../../../../components/Button/IconButton.js";
|
|
6
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
+
import { IconButton } from "../../../../components/Button/IconButton.js";
|
|
8
8
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
9
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
10
|
-
import ColorPicker from "../../../../components/ColorPicker/ColorPicker.js";
|
|
9
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
10
|
+
import { ColorPicker } from "../../../../components/ColorPicker/ColorPicker.js";
|
|
11
11
|
const EditorToolbarTextColor = ({
|
|
12
12
|
triggerProps,
|
|
13
13
|
itemRefs
|
|
@@ -3,10 +3,10 @@ import { Fragment as Fragment$1 } from "react";
|
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
5
5
|
import { hasExtension } from "../../utils/has-extension.js";
|
|
6
|
-
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
-
import IconButton from "../../../../components/Button/IconButton.js";
|
|
6
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
+
import { IconButton } from "../../../../components/Button/IconButton.js";
|
|
8
8
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
9
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
9
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
10
10
|
const EditorToolbarTextSize = ({
|
|
11
11
|
triggerProps
|
|
12
12
|
}) => {
|
|
@@ -2,10 +2,10 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useEffect, Fragment as Fragment$1 } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
5
|
-
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
6
|
-
import IconButton from "../../../../components/Button/IconButton.js";
|
|
5
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
6
|
+
import { IconButton } from "../../../../components/Button/IconButton.js";
|
|
7
7
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
8
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
8
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
9
9
|
const EditorToolbarTypography = ({
|
|
10
10
|
triggerProps
|
|
11
11
|
}) => {
|
|
@@ -16,7 +16,7 @@ import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
|
16
16
|
import { useActionOptions } from "../../hooks/useActionOptions.js";
|
|
17
17
|
import { useSpeechRecognition } from "../../hooks/useSpeechRecognition.js";
|
|
18
18
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
19
|
-
import Toolbar from "../../../../components/Toolbar/Toolbar.js";
|
|
19
|
+
import { Toolbar } from "../../../../components/Toolbar/Toolbar.js";
|
|
20
20
|
const EditorToolbar = ({
|
|
21
21
|
mediaLibraryRef,
|
|
22
22
|
toggleMathsModal
|
|
@@ -2,10 +2,10 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { NodeViewWrapper } from "@tiptap/react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
|
-
import Attachment from "../../../../components/Attachment/Attachment.js";
|
|
5
|
+
import { Attachment } from "../../../../components/Attachment/Attachment.js";
|
|
6
6
|
import { useEditorContext } from "../../hooks/useEditorContext.js";
|
|
7
7
|
import { Grid } from "../../../../components/Grid/Grid.js";
|
|
8
|
-
import IconButton from "../../../../components/Button/IconButton.js";
|
|
8
|
+
import { IconButton } from "../../../../components/Button/IconButton.js";
|
|
9
9
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
10
10
|
const AttachmentRenderer = (props) => {
|
|
11
11
|
const {
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { NodeViewWrapper } from "@tiptap/react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import useOdeIcons from "../../../../core/useOdeIcons/useOdeIcons.js";
|
|
5
|
-
import Badge from "../../../../components/Badge/Badge.js";
|
|
5
|
+
import { Badge } from "../../../../components/Badge/Badge.js";
|
|
6
6
|
import { AppIcon } from "../../../../components/AppIcon/AppIcon.js";
|
|
7
7
|
const LinkerRenderer = ({
|
|
8
8
|
selected,
|
|
@@ -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 })
|
|
@@ -5,7 +5,7 @@ import { odeServices } from "edifice-ts-client";
|
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import useBrowserInfo from "../../../../hooks/useBrowserInfo/useBrowserInfo.js";
|
|
7
7
|
import { useResizeMedia } from "../../hooks/useResizeMedia.js";
|
|
8
|
-
import Image from "../../../../components/Image/Image.js";
|
|
8
|
+
import { Image } from "../../../../components/Image/Image.js";
|
|
9
9
|
const MediaRenderer = (props) => {
|
|
10
10
|
const {
|
|
11
11
|
node
|
|
@@ -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,10 +1,10 @@
|
|
|
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";
|
|
5
5
|
import { tippyOptions } from "./LinkToolbar.TippyOptions.js";
|
|
6
6
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
7
|
-
import Toolbar from "../../../../components/Toolbar/Toolbar.js";
|
|
7
|
+
import { Toolbar } from "../../../../components/Toolbar/Toolbar.js";
|
|
8
8
|
const LinkToolbar = ({
|
|
9
9
|
editor,
|
|
10
10
|
onEdit,
|
|
@@ -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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
|
-
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
4
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
3
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
4
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
5
5
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
6
6
|
const TableToolbarAddMenu = ({
|
|
7
7
|
editor
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useEffect } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import ColorPickerItem from "../../../../components/ColorPicker/ColorPickerItem.js";
|
|
4
|
+
import { ColorPickerItem } from "../../../../components/ColorPicker/ColorPickerItem.js";
|
|
5
5
|
import { DefaultPalette } from "../../../../components/ColorPicker/ColorPalette.js";
|
|
6
|
-
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
8
|
-
import ColorPicker from "../../../../components/ColorPicker/ColorPicker.js";
|
|
6
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
7
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
8
|
+
import { ColorPicker } from "../../../../components/ColorPicker/ColorPicker.js";
|
|
9
9
|
const TableToolbarCellColor = ({
|
|
10
10
|
editor,
|
|
11
11
|
itemRefs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
|
-
import Tooltip from "../../../../components/Tooltip/Tooltip.js";
|
|
4
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
3
|
+
import { Tooltip } from "../../../../components/Tooltip/Tooltip.js";
|
|
4
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
5
5
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
6
6
|
const TableToolbarDelMenu = ({
|
|
7
7
|
editor
|
|
@@ -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,11 +1,11 @@
|
|
|
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";
|
|
5
5
|
import { TableToolbarAddMenu } from "./TableToolbar.AddMenu.js";
|
|
6
6
|
import { TableToolbarCellColor } from "./TableToolbar.CellColor.js";
|
|
7
7
|
import { TableToolbarDelMenu } from "./TableToolbar.DelMenu.js";
|
|
8
|
-
import Toolbar from "../../../../components/Toolbar/Toolbar.js";
|
|
8
|
+
import { Toolbar } from "../../../../components/Toolbar/Toolbar.js";
|
|
9
9
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
10
10
|
const TableToolbar = ({
|
|
11
11
|
editor
|
|
@@ -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;
|
|
@@ -6,9 +6,9 @@ import { Pagination } from "swiper/modules";
|
|
|
6
6
|
import { Swiper, SwiperSlide } from "swiper/react";
|
|
7
7
|
import { useOnboardingModal } from "./useOnboardingModal.js";
|
|
8
8
|
import usePaths from "../../../core/usePaths/usePaths.js";
|
|
9
|
-
import Modal from "../../../components/Modal/Modal.js";
|
|
10
|
-
import Image from "../../../components/Image/Image.js";
|
|
11
|
-
import Button from "../../../components/Button/Button.js";
|
|
9
|
+
import { Modal } from "../../../components/Modal/Modal.js";
|
|
10
|
+
import { Image } from "../../../components/Image/Image.js";
|
|
11
|
+
import { Button } from "../../../components/Button/Button.js";
|
|
12
12
|
const OnboardingModal = ({
|
|
13
13
|
id,
|
|
14
14
|
items,
|
|
@@ -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
|
};
|
|
@@ -10,16 +10,16 @@ import { SubjectsDropdown } from "./components/SubjectsDropdown.js";
|
|
|
10
10
|
import usePublishModal from "./hooks/usePublishModal.js";
|
|
11
11
|
import useMediaLibrary from "../../../core/useMediaLibrary/useMediaLibrary.js";
|
|
12
12
|
import useResource from "../../../core/useResource/useResource.js";
|
|
13
|
-
import Heading from "../../../components/Heading/Heading.js";
|
|
14
13
|
import MediaLibrary from "../../multimedia/MediaLibrary/MediaLibrary.js";
|
|
15
14
|
import { useOdeClient } from "../../../core/OdeClientProvider/OdeClientProvider.js";
|
|
16
|
-
import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
17
|
-
import Modal from "../../../components/Modal/Modal.js";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
15
|
+
import { LoadingScreen } from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
16
|
+
import { Modal } from "../../../components/Modal/Modal.js";
|
|
17
|
+
import { Heading } from "../../../components/Heading/Heading.js";
|
|
18
|
+
import { FormControl } from "../../../components/Form/FormControl.js";
|
|
19
|
+
import { Label } from "../../../components/Label/Label.js";
|
|
20
|
+
import { Input } from "../../../components/Input/Input.js";
|
|
21
|
+
import { TextArea } from "../../../components/TextArea/TextArea.js";
|
|
22
|
+
import { Button } from "../../../components/Button/Button.js";
|
|
23
23
|
function PublishModal({
|
|
24
24
|
isOpen,
|
|
25
25
|
resourceId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Controller } from "react-hook-form";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
4
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
5
5
|
import { useActivitiesOptions } from "../hooks/useActivitiesOptions.js";
|
|
6
6
|
const ActivitiesDropdown = ({
|
|
7
7
|
control,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Controller } from "react-hook-form";
|
|
3
|
-
import Select from "../../../../components/Select/Select.js";
|
|
3
|
+
import { Select } from "../../../../components/Select/Select.js";
|
|
4
4
|
import { ageOptions } from "../constants/ageOptions.js";
|
|
5
5
|
const AgeSelect = ({
|
|
6
6
|
name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Controller } from "react-hook-form";
|
|
3
|
-
import Select from "../../../../components/Select/Select.js";
|
|
3
|
+
import { Select } from "../../../../components/Select/Select.js";
|
|
4
4
|
import { useLanguageOptions } from "../hooks/useLanguageOptions.js";
|
|
5
5
|
const defaultSelectLanguageOption = "bpr.form.publication.language", LangSelect = ({
|
|
6
6
|
control
|
|
@@ -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 {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Controller } from "react-hook-form";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import Dropdown from "../../../../components/Dropdown/Dropdown.js";
|
|
4
|
+
import { Dropdown } from "../../../../components/Dropdown/Dropdown.js";
|
|
5
5
|
import { useSubjectsOptions } from "../hooks/useSubjectsOptions.js";
|
|
6
6
|
const SubjectsDropdown = ({
|
|
7
7
|
control,
|
|
@@ -26,5 +26,5 @@ interface UpdateProps extends BaseProps {
|
|
|
26
26
|
resourceId: ID;
|
|
27
27
|
}
|
|
28
28
|
type Props = CreateProps | UpdateProps;
|
|
29
|
-
declare const ResourceModal: ({ isOpen, onCancel, onSuccess, children, inputMaxLength, textareaMaxLength, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const ResourceModal: ({ isOpen, onCancel, onSuccess, children, inputMaxLength, textareaMaxLength, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export default ResourceModal;
|
|
@@ -9,17 +9,17 @@ 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
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import Button from "../../../components/Button/Button.js";
|
|
15
|
+
import { LoadingScreen } from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
16
|
+
import { Modal } from "../../../components/Modal/Modal.js";
|
|
17
|
+
import { Heading } from "../../../components/Heading/Heading.js";
|
|
18
|
+
import { FormControl } from "../../../components/Form/FormControl.js";
|
|
19
|
+
import { Label } from "../../../components/Label/Label.js";
|
|
20
|
+
import { Input } from "../../../components/Input/Input.js";
|
|
21
|
+
import { TextArea } from "../../../components/TextArea/TextArea.js";
|
|
22
|
+
import { Button } from "../../../components/Button/Button.js";
|
|
23
23
|
const DEFAULT_INPUT_MAX_LENGTH = 60, DEFAULT_TEXTAREA_MAX_LENGTH = 400, ResourceModal = ({
|
|
24
24
|
isOpen,
|
|
25
25
|
onCancel,
|
|
@@ -150,7 +150,8 @@ const DEFAULT_INPUT_MAX_LENGTH = 60, DEFAULT_TEXTAREA_MAX_LENGTH = 400, Resource
|
|
|
150
150
|
] }),
|
|
151
151
|
/* @__PURE__ */ jsx(MediaLibrary, { appCode, ref: mediaLibraryRef, multiple: !1, visibility: "protected", ...mediaLibraryHandlers })
|
|
152
152
|
] }), document.getElementById("portal"));
|
|
153
|
-
}
|
|
153
|
+
};
|
|
154
154
|
export {
|
|
155
|
-
ResourceModal
|
|
155
|
+
ResourceModal,
|
|
156
|
+
ResourceModal as default
|
|
156
157
|
};
|
|
@@ -9,5 +9,5 @@ interface BlogPublicProps {
|
|
|
9
9
|
register: UseFormRegister<FormInputs>;
|
|
10
10
|
setValue: UseFormSetValue<FormInputs>;
|
|
11
11
|
}
|
|
12
|
-
declare const BlogPublic: ({ appCode, isUpdating, resource, watch, register, setValue, }: BlogPublicProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const BlogPublic: ({ appCode, isUpdating, resource, watch, register, setValue, }: BlogPublicProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default BlogPublic;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import { useSlug } from "../hooks/useSlug.js";
|
|
4
|
-
import Alert from "../../../../components/Alert/Alert.js";
|
|
5
|
-
import Heading from "../../../../components/Heading/Heading.js";
|
|
6
|
-
import FormControl from "../../../../components/Form/FormControl.js";
|
|
7
|
-
import Input from "../../../../components/Input/Input.js";
|
|
8
|
-
import Button from "../../../../components/Button/Button.js";
|
|
4
|
+
import { Alert } from "../../../../components/Alert/Alert.js";
|
|
5
|
+
import { Heading } from "../../../../components/Heading/Heading.js";
|
|
6
|
+
import { FormControl } from "../../../../components/Form/FormControl.js";
|
|
7
|
+
import { Input } from "../../../../components/Input/Input.js";
|
|
8
|
+
import { Button } from "../../../../components/Button/Button.js";
|
|
9
9
|
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
10
10
|
const BlogPublic = ({
|
|
11
11
|
appCode,
|
|
@@ -56,7 +56,8 @@ const BlogPublic = ({
|
|
|
56
56
|
] })
|
|
57
57
|
] })
|
|
58
58
|
] });
|
|
59
|
-
}
|
|
59
|
+
};
|
|
60
60
|
export {
|
|
61
|
-
BlogPublic
|
|
61
|
+
BlogPublic,
|
|
62
|
+
BlogPublic as default
|
|
62
63
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationResult } from '../../../../../node_modules/@tanstack/react-query';
|
|
2
2
|
import { UpdateParameters, UpdateResult } from 'edifice-ts-client';
|
|
3
|
-
declare const useUpdateMutation: ({ application, options, }: {
|
|
3
|
+
export declare const useUpdateMutation: ({ application, options, }: {
|
|
4
4
|
application: string;
|
|
5
5
|
options?: UseMutationOptions<UpdateResult, Error, UpdateParameters, unknown> | undefined;
|
|
6
6
|
}) => UseMutationResult<UpdateResult, Error, UpdateParameters>;
|
|
@@ -6,7 +6,8 @@ const useUpdateMutation = ({
|
|
|
6
6
|
}) => useMutation({
|
|
7
7
|
mutationFn: async (params) => await odeServices.resource(application).update(params),
|
|
8
8
|
...options
|
|
9
|
-
})
|
|
9
|
+
});
|
|
10
10
|
export {
|
|
11
|
-
useUpdateMutation
|
|
11
|
+
useUpdateMutation as default,
|
|
12
|
+
useUpdateMutation
|
|
12
13
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './ResourceModal';
|
|
2
|
+
export * from './apps/BlogPublic';
|
|
3
|
+
export * from './hooks/useUpdateMutation';
|
|
@@ -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;
|
|
@@ -5,4 +5,5 @@ export interface ShareBlogProps {
|
|
|
5
5
|
resourceId: ID;
|
|
6
6
|
updateResource?: UseMutationResult<UpdateResult, unknown, UpdateParameters, unknown>;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare function ShareBlog({ resourceId, updateResource }: ShareBlogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ShareBlog;
|
|
@@ -3,9 +3,9 @@ import { useState } from "react";
|
|
|
3
3
|
import { odeServices } from "edifice-ts-client";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import useResource from "../../../../core/useResource/useResource.js";
|
|
6
|
-
import Radio from "../../../../components/Radio/Radio.js";
|
|
7
6
|
import { useOdeClient } from "../../../../core/OdeClientProvider/OdeClientProvider.js";
|
|
8
|
-
import Heading from "../../../../components/Heading/Heading.js";
|
|
7
|
+
import { Heading } from "../../../../components/Heading/Heading.js";
|
|
8
|
+
import { Radio } from "../../../../components/Radio/Radio.js";
|
|
9
9
|
function ShareBlog({
|
|
10
10
|
resourceId,
|
|
11
11
|
updateResource
|
|
@@ -38,5 +38,6 @@ function ShareBlog({
|
|
|
38
38
|
] });
|
|
39
39
|
}
|
|
40
40
|
export {
|
|
41
|
+
ShareBlog,
|
|
41
42
|
ShareBlog as default
|
|
42
43
|
};
|