@edifice.io/react 2.0.3-develop-b2school.20250129151355 → 2.0.3-develop-b2school.20250203152921
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AppIcon/AppIcon.js +1 -1
- package/dist/components/Form/FormContext.js +1 -1
- package/dist/components/Form/FormControl.js +1 -1
- package/dist/components/Layout/components/WidgetApps.js +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +1 -1
- package/dist/hooks/useUploadFiles/useUploadFiles.js +1 -1
- package/dist/index.js +106 -106
- package/dist/modules/audience/ReactionModal.Card.js +1 -1
- package/dist/modules/comments/components/CommentAvatar.js +1 -1
- package/dist/modules/comments/provider/CommentProvider.js +1 -1
- package/dist/modules/editor/components/Editor/Editor.js +1 -1
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +1 -1
- package/dist/modules/editor/hooks/useTipTapEditor.js +3 -3
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js +1 -1
- package/dist/modules/multimedia/UploadCard/UploadCard.js +2 -2
- package/package.json +5 -5
|
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as iconsApps from "../../icons-apps.js";
|
|
5
|
+
import useEdificeIcons from "../../hooks/useEdificeIcons/useEdificeIcons.js";
|
|
5
6
|
import SvgIconPlaceholder from "../../modules/icons/components/apps/IconPlaceholder.js";
|
|
6
7
|
import Image from "../Image/Image.js";
|
|
7
|
-
import useEdificeIcons from "../../hooks/useEdificeIcons/useEdificeIcons.js";
|
|
8
8
|
const AppIcon = /* @__PURE__ */ forwardRef(({
|
|
9
9
|
app,
|
|
10
10
|
size = "24",
|
|
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useMemo } from "react";
|
|
3
3
|
import { Context } from "./FormContext.js";
|
|
4
4
|
import FormText from "./FormText.js";
|
|
5
|
-
import Label from "../Label/Label.js";
|
|
6
5
|
import Input from "../Input/Input.js";
|
|
6
|
+
import Label from "../Label/Label.js";
|
|
7
7
|
const Root = /* @__PURE__ */ forwardRef(({
|
|
8
8
|
children,
|
|
9
9
|
className,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useId, useState, useRef, useEffect, useCallback } from "react";
|
|
2
|
-
import { useFloating,
|
|
2
|
+
import { useFloating, offset, size, flip, autoUpdate, useHover, safePolygon } from "@floating-ui/react";
|
|
3
3
|
import { mergeRefs } from "../../utilities/refs/ref.js";
|
|
4
4
|
const useDropdown = (placement, extraTriggerKeyDownHandler, isTriggerHovered = !1) => {
|
|
5
5
|
const id = useId(), [visible, setVisible] = useState(!1), [activeIndex, setActiveIndex] = useState(-1), [isFocused, setIsFocused] = useState(null), {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useCallback, useEffect } from "react";
|
|
2
2
|
import { ImageResizer, addTimestampToImageUrl } from "@edifice.io/utilities";
|
|
3
3
|
import { useDropzoneContext } from "../../components/Dropzone/DropzoneContext.js";
|
|
4
|
-
import useUpload from "../useUpload/useUpload.js";
|
|
5
4
|
import useWorkspaceFile from "../useWorkspaceFile/useWorkspaceFile.js";
|
|
5
|
+
import useUpload from "../useUpload/useUpload.js";
|
|
6
6
|
const useUploadFiles = ({
|
|
7
7
|
handleOnChange,
|
|
8
8
|
visibility,
|
package/dist/index.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { default as default2 } from "./components/ActionBar/ActionBar.js";
|
|
2
|
-
import { default as default3 } from "./components/
|
|
3
|
-
import { default as default4 } from "./components/
|
|
4
|
-
import { default as default5 } from "./components/
|
|
5
|
-
import { default as default6 } from "./components/
|
|
6
|
-
import { default as default7 } from "./components/
|
|
7
|
-
import { default as default8 } from "./components/
|
|
8
|
-
import { default as default9 } from "./components/Button/
|
|
9
|
-
import { default as default10 } from "./components/
|
|
10
|
-
import { default as default11 } from "./components/
|
|
11
|
-
import { default as default12 } from "./components/ColorPicker/
|
|
12
|
-
import { default as default13 } from "./components/
|
|
13
|
-
import { default as default14 } from "./components/
|
|
14
|
-
import { default as default15 } from "./components/
|
|
15
|
-
import { default as default16 } from "./components/
|
|
16
|
-
import { default as default17 } from "./components/
|
|
17
|
-
import { default as default18 } from "./components/
|
|
18
|
-
import { default as default19 } from "./components/
|
|
19
|
-
import { default as default20 } from "./components/
|
|
20
|
-
import { default as default21 } from "./components/
|
|
21
|
-
import { default as default22 } from "./components/
|
|
2
|
+
import { default as default3 } from "./components/Alert/Alert.js";
|
|
3
|
+
import { default as default4 } from "./components/AppHeader/AppHeader.js";
|
|
4
|
+
import { default as default5 } from "./components/AppIcon/AppIcon.js";
|
|
5
|
+
import { default as default6 } from "./components/Attachment/Attachment.js";
|
|
6
|
+
import { default as default7 } from "./components/Badge/Badge.js";
|
|
7
|
+
import { default as default8 } from "./components/Breadcrumb/Breadcrumb.js";
|
|
8
|
+
import { default as default9 } from "./components/Button/IconButton.js";
|
|
9
|
+
import { default as default10 } from "./components/Button/SearchButton.js";
|
|
10
|
+
import { default as default11 } from "./components/Card/Card.js";
|
|
11
|
+
import { default as default12 } from "./components/ColorPicker/ColorPicker.js";
|
|
12
|
+
import { default as default13 } from "./components/ColorPicker/ColorPickerItem.js";
|
|
13
|
+
import { default as default14 } from "./components/Dropdown/Dropdown.js";
|
|
14
|
+
import { default as default15 } from "./components/Dropzone/Dropzone.js";
|
|
15
|
+
import { default as default16 } from "./components/EmptyScreen/EmptyScreen.js";
|
|
16
|
+
import { default as default17 } from "./components/Form/FormText.js";
|
|
17
|
+
import { default as default18 } from "./components/Image/Image.js";
|
|
18
|
+
import { default as default19 } from "./components/Loading/Loading.js";
|
|
19
|
+
import { default as default20 } from "./components/Logo/Logo.js";
|
|
20
|
+
import { default as default21 } from "./components/SearchBar/SearchBar.js";
|
|
21
|
+
import { default as default22 } from "./components/Select/Select.js";
|
|
22
|
+
import { default as default23 } from "./components/Table/components/Table.js";
|
|
22
23
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as default55 } from "./components/Alert/Alert.js";
|
|
24
|
+
import { default as default24 } from "./components/Tree/components/SortableTree.js";
|
|
25
|
+
import { default as default25 } from "./components/Tree/components/Tree.js";
|
|
26
|
+
import { default as default26 } from "./components/TreeView/TreeView.js";
|
|
27
|
+
import { default as default27 } from "./hooks/useBookmark/useBookmark.js";
|
|
28
|
+
import { default as default28 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
29
|
+
import { default as default29 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
30
|
+
import { default as default30 } from "./hooks/useCantoo/useCantoo.js";
|
|
31
|
+
import { default as default31 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
32
|
+
import { default as default32 } from "./hooks/useConversation/useConversation.js";
|
|
33
|
+
import { default as default33 } from "./hooks/useDate/useDate.js";
|
|
34
|
+
import { default as default34 } from "./hooks/useDebounce/useDebounce.js";
|
|
35
|
+
import { default as default35 } from "./hooks/useDirectory/useDirectory.js";
|
|
36
|
+
import { default as default36 } from "./hooks/useDropdown/useDropdown.js";
|
|
37
|
+
import { default as default37 } from "./hooks/useDropzone/useDropzone.js";
|
|
38
|
+
import { default as default38 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
39
|
+
import { default as default39 } from "./hooks/useHover/useHover.js";
|
|
40
|
+
import { default as default40 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
41
|
+
import { default as default41 } from "./hooks/useImage/useImage.js";
|
|
42
|
+
import { default as default42 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
43
|
+
import { default as default43 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
44
|
+
import { default as default44 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
45
|
+
import { default as default45 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
46
|
+
import { default as default46 } from "./hooks/useTitle/useTitle.js";
|
|
47
|
+
import { default as default47 } from "./hooks/useToggle/useToggle.js";
|
|
48
|
+
import { default as default48 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
49
|
+
import { default as default49 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
50
|
+
import { default as default50 } from "./hooks/useUpload/useUpload.js";
|
|
51
|
+
import { default as default51 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
52
|
+
import { default as default52 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
56
56
|
import { default as default56 } from "./components/Avatar/Avatar.js";
|
|
57
57
|
import { default as default57 } from "./components/Button/Button.js";
|
|
58
58
|
import { default as default58 } from "./components/Checkbox/Checkbox.js";
|
|
@@ -106,44 +106,44 @@ import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
|
106
106
|
export {
|
|
107
107
|
AccessiblePalette,
|
|
108
108
|
default2 as ActionBar,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
default3 as Alert,
|
|
110
|
+
default4 as AppHeader,
|
|
111
|
+
default5 as AppIcon,
|
|
112
|
+
default6 as Attachment,
|
|
113
113
|
default56 as Avatar,
|
|
114
|
-
|
|
114
|
+
default7 as Badge,
|
|
115
115
|
default76 as BlogPublic,
|
|
116
|
-
|
|
116
|
+
default8 as Breadcrumb,
|
|
117
117
|
default57 as Button,
|
|
118
|
-
|
|
118
|
+
default11 as Card,
|
|
119
119
|
default58 as Checkbox,
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
default12 as ColorPicker,
|
|
121
|
+
default13 as ColorPickerItem,
|
|
122
122
|
Column,
|
|
123
123
|
default59 as Combobox,
|
|
124
124
|
DefaultPalette,
|
|
125
125
|
DndTree,
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
default14 as Dropdown,
|
|
127
|
+
default15 as Dropzone,
|
|
128
128
|
DropzoneContext,
|
|
129
129
|
EdificeClientContext,
|
|
130
130
|
EdificeClientProvider,
|
|
131
131
|
EdificeThemeContext,
|
|
132
132
|
EdificeThemeProvider,
|
|
133
|
-
|
|
133
|
+
default16 as EmptyScreen,
|
|
134
134
|
default60 as FormControl,
|
|
135
|
-
|
|
135
|
+
default17 as FormText,
|
|
136
136
|
Grid,
|
|
137
137
|
default61 as Heading,
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
default9 as IconButton,
|
|
139
|
+
default18 as Image,
|
|
140
140
|
default62 as Input,
|
|
141
141
|
default63 as Label,
|
|
142
142
|
Layout,
|
|
143
143
|
List,
|
|
144
|
-
|
|
144
|
+
default19 as Loading,
|
|
145
145
|
default64 as LoadingScreen,
|
|
146
|
-
|
|
146
|
+
default20 as Logo,
|
|
147
147
|
Menu,
|
|
148
148
|
default65 as Modal,
|
|
149
149
|
default74 as OnboardingModal,
|
|
@@ -154,21 +154,21 @@ export {
|
|
|
154
154
|
default75 as PublishModal,
|
|
155
155
|
default66 as Radio,
|
|
156
156
|
ResourceModal,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
default21 as SearchBar,
|
|
158
|
+
default10 as SearchButton,
|
|
159
|
+
default22 as Select,
|
|
160
160
|
default79 as ShareBlog,
|
|
161
161
|
default78 as ShareModal,
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
default24 as SortableTree,
|
|
163
|
+
default23 as Table,
|
|
164
164
|
Tabs,
|
|
165
165
|
default67 as TextArea,
|
|
166
166
|
Toolbar,
|
|
167
167
|
default68 as Tooltip,
|
|
168
|
-
|
|
168
|
+
default25 as Tree,
|
|
169
169
|
TreeNode,
|
|
170
170
|
TreeNodeFolderWrapper,
|
|
171
|
-
|
|
171
|
+
default26 as TreeView,
|
|
172
172
|
default69 as VisuallyHidden,
|
|
173
173
|
addNode,
|
|
174
174
|
arrayUnique,
|
|
@@ -197,46 +197,46 @@ export {
|
|
|
197
197
|
setRef,
|
|
198
198
|
updateNode,
|
|
199
199
|
updateParentIds,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
default27 as useBookmark,
|
|
201
|
+
default28 as useBreakpoint,
|
|
202
|
+
default29 as useBrowserInfo,
|
|
203
|
+
default30 as useCantoo,
|
|
204
204
|
useCheckable,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
205
|
+
default31 as useClickOutside,
|
|
206
|
+
default32 as useConversation,
|
|
207
|
+
default33 as useDate,
|
|
208
|
+
default34 as useDebounce,
|
|
209
|
+
default35 as useDirectory,
|
|
210
|
+
default36 as useDropdown,
|
|
211
|
+
default37 as useDropzone,
|
|
212
212
|
useDropzoneContext,
|
|
213
213
|
useEdificeClient,
|
|
214
|
-
|
|
214
|
+
default38 as useEdificeIcons,
|
|
215
215
|
useEdificeTheme,
|
|
216
216
|
default70 as useHasWorkflow,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
217
|
+
default39 as useHover,
|
|
218
|
+
default40 as useHttpErrorToast,
|
|
219
|
+
default41 as useImage,
|
|
220
|
+
default42 as useIsAdml,
|
|
221
|
+
default43 as useKeyPress,
|
|
222
|
+
default44 as useLibraryUrl,
|
|
223
223
|
default71 as useMediaLibrary,
|
|
224
|
-
|
|
224
|
+
default45 as useScrollToTop,
|
|
225
225
|
default80 as useShareMutation,
|
|
226
|
-
|
|
226
|
+
default46 as useTitle,
|
|
227
227
|
default72 as useToast,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
default47 as useToggle,
|
|
229
|
+
default48 as useTrapFocus,
|
|
230
|
+
default49 as useTrashedResource,
|
|
231
231
|
useTreeSortable,
|
|
232
232
|
useTreeView,
|
|
233
233
|
default77 as useUpdateMutation,
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
default50 as useUpload,
|
|
235
|
+
default51 as useUploadFiles,
|
|
236
236
|
default73 as useUser,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
default52 as useWorkspaceFile,
|
|
238
|
+
default53 as useWorkspaceSearch,
|
|
239
|
+
default54 as useXitiTrackPageLoad,
|
|
240
|
+
default55 as useZendeskGuide,
|
|
241
241
|
wrapTreeNode
|
|
242
242
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import useReactionIcons from "./hooks/useReactionIcons.js";
|
|
4
|
-
import Avatar from "../../components/Avatar/Avatar.js";
|
|
5
4
|
import useDirectory from "../../hooks/useDirectory/useDirectory.js";
|
|
5
|
+
import Avatar from "../../components/Avatar/Avatar.js";
|
|
6
6
|
function ReactionModalCard({
|
|
7
7
|
reaction
|
|
8
8
|
}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
|
-
import Avatar from "../../../components/Avatar/Avatar.js";
|
|
4
3
|
import useDirectory from "../../../hooks/useDirectory/useDirectory.js";
|
|
4
|
+
import Avatar from "../../../components/Avatar/Avatar.js";
|
|
5
5
|
const CommentAvatar = ({
|
|
6
6
|
id
|
|
7
7
|
}) => {
|
|
@@ -3,7 +3,7 @@ import { useMemo } from "react";
|
|
|
3
3
|
import { CommentForm } from "../components/CommentForm.js";
|
|
4
4
|
import { CommentHeader } from "../components/CommentHeader.js";
|
|
5
5
|
import { CommentList } from "../components/CommentList.js";
|
|
6
|
-
import {
|
|
6
|
+
import { DEFAULT_MAX_REPLIES, DEFAULT_ADD_COMMENTS, DEFAULT_MAX_COMMENTS, DEFAULT_MAX_REPLY_LENGTH, DEFAULT_MAX_COMMENT_LENGTH } from "../constants.js";
|
|
7
7
|
import { CommentContext } from "../context/Context.js";
|
|
8
8
|
import { useComments } from "../hooks/useComments.js";
|
|
9
9
|
import Button from "../../../components/Button/Button.js";
|
|
@@ -15,8 +15,8 @@ import { EditorToolbar } from "../EditorToolbar/EditorToolbar.js";
|
|
|
15
15
|
import LinkToolbar from "../Toolbar/LinkToolbar.js";
|
|
16
16
|
import TableToolbar from "../Toolbar/TableToolbar.js";
|
|
17
17
|
import BubbleMenuEditImage from "../BubbleMenuEditImage/BubbleMenuEditImage.js";
|
|
18
|
-
import LoadingScreen from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
19
18
|
import MediaLibrary from "../../../multimedia/MediaLibrary/MediaLibrary.js";
|
|
19
|
+
import LoadingScreen from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
20
20
|
const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/MathsModal.js")), ImageEditor = /* @__PURE__ */ lazy(async () => await import("../../../multimedia/ImageEditor/components/ImageEditor.js")), Editor = /* @__PURE__ */ forwardRef(({
|
|
21
21
|
id,
|
|
22
22
|
content,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { NodeViewWrapper } from "@tiptap/react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
+
import useEdificeIcons from "../../../../hooks/useEdificeIcons/useEdificeIcons.js";
|
|
4
5
|
import Badge from "../../../../components/Badge/Badge.js";
|
|
5
6
|
import AppIcon from "../../../../components/AppIcon/AppIcon.js";
|
|
6
|
-
import useEdificeIcons from "../../../../hooks/useEdificeIcons/useEdificeIcons.js";
|
|
7
7
|
const LinkerRenderer = ({
|
|
8
8
|
selected,
|
|
9
9
|
...props
|
|
@@ -28,13 +28,13 @@ import { useTranslation } from "react-i18next";
|
|
|
28
28
|
import { useEdificeClient } from "../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
29
29
|
import useUpload from "../../../hooks/useUpload/useUpload.js";
|
|
30
30
|
import VideoNodeView from "../components/NodeView/VideoNodeView.js";
|
|
31
|
-
import MediaRenderer from "../components/Renderer/MediaRenderer.js";
|
|
32
31
|
import AudioNodeView from "../components/NodeView/AudioNodeView.js";
|
|
33
|
-
import AudioRenderer from "../components/Renderer/AudioRenderer.js";
|
|
34
32
|
import LinkerNodeView from "../components/NodeView/LinkerNodeView.js";
|
|
35
|
-
import LinkerRenderer from "../components/Renderer/LinkerRenderer.js";
|
|
36
33
|
import ImageNodeView from "../components/NodeView/ImageNodeView.js";
|
|
37
34
|
import AttachmentNodeView from "../components/NodeView/AttachmentNodeView.js";
|
|
35
|
+
import MediaRenderer from "../components/Renderer/MediaRenderer.js";
|
|
36
|
+
import AudioRenderer from "../components/Renderer/AudioRenderer.js";
|
|
37
|
+
import LinkerRenderer from "../components/Renderer/LinkerRenderer.js";
|
|
38
38
|
import AttachmentRenderer from "../components/Renderer/AttachmentRenderer.js";
|
|
39
39
|
const useTipTapEditor = (editable, content, focus, placeholder, onContentChange, visibility = "protected") => {
|
|
40
40
|
const {
|
|
@@ -25,7 +25,7 @@ const useSlug = ({
|
|
|
25
25
|
setIsPublic(value);
|
|
26
26
|
}
|
|
27
27
|
function onCopyToClipBoard(pathname) {
|
|
28
|
-
navigator.clipboard.writeText(`${window.location.origin}${pathname
|
|
28
|
+
navigator.clipboard.writeText(`${window.location.origin}${pathname}/pub/${slug}`), toast.success(t("explorer.copy.clipboard"));
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
31
|
slug,
|
|
@@ -5,12 +5,12 @@ import SvgIconClose from "../../icons/components/IconClose.js";
|
|
|
5
5
|
import SvgIconReset from "../../icons/components/IconReset.js";
|
|
6
6
|
import SvgIconSuccessOutline from "../../icons/components/IconSuccessOutline.js";
|
|
7
7
|
import SvgIconWand from "../../icons/components/IconWand.js";
|
|
8
|
-
import Button from "../../../components/Button/Button.js";
|
|
9
|
-
import Image from "../../../components/Image/Image.js";
|
|
10
8
|
import Tooltip from "../../../components/Tooltip/Tooltip.js";
|
|
11
9
|
import Loading from "../../../components/Loading/Loading.js";
|
|
10
|
+
import Button from "../../../components/Button/Button.js";
|
|
12
11
|
import Card from "../../../components/Card/Card.js";
|
|
13
12
|
import IconButton from "../../../components/Button/IconButton.js";
|
|
13
|
+
import Image from "../../../components/Image/Image.js";
|
|
14
14
|
const UploadCard = ({
|
|
15
15
|
item,
|
|
16
16
|
status = "idle",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.0.3-develop-b2school.
|
|
3
|
+
"version": "2.0.3-develop-b2school.20250203152921",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -119,9 +119,9 @@
|
|
|
119
119
|
"react-slugify": "^3.0.3",
|
|
120
120
|
"swiper": "^10.1.0",
|
|
121
121
|
"ua-parser-js": "^1.0.36",
|
|
122
|
-
"@edifice.io/bootstrap": "2.0.3-develop-b2school.
|
|
123
|
-
"@edifice.io/tiptap-extensions": "2.0.3-develop-b2school.
|
|
124
|
-
"@edifice.io/utilities": "2.0.3-develop-b2school.
|
|
122
|
+
"@edifice.io/bootstrap": "2.0.3-develop-b2school.20250203152921",
|
|
123
|
+
"@edifice.io/tiptap-extensions": "2.0.3-develop-b2school.20250203152921",
|
|
124
|
+
"@edifice.io/utilities": "2.0.3-develop-b2school.20250203152921"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
127
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"typescript-eslint": "^8.8.1",
|
|
148
148
|
"vite": "^5.4.11",
|
|
149
149
|
"vite-plugin-dts": "^4.1.0",
|
|
150
|
-
"@edifice.io/client": "2.0.3-develop-b2school.
|
|
150
|
+
"@edifice.io/client": "2.0.3-develop-b2school.20250203152921"
|
|
151
151
|
},
|
|
152
152
|
"peerDependencies": {
|
|
153
153
|
"@react-spring/web": "^9.7.5",
|