@edifice.io/react 2.4.0-develop-pedago.20251009110326 → 2.4.0-develop.20251009115633
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.
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMediaLibraryContext } from "../MediaLibraryContext.js";
|
|
3
|
-
import { useTranslation } from "react-i18next";
|
|
4
|
-
import Alert from "../../../../components/Alert/Alert.js";
|
|
5
3
|
import Dropzone from "../../../../components/Dropzone/Dropzone.js";
|
|
6
4
|
import UploadFiles from "../../UploadFiles/UploadFiles.js";
|
|
7
5
|
const acceptedTypes = (type) => {
|
|
@@ -20,8 +18,6 @@ const acceptedTypes = (type) => {
|
|
|
20
18
|
return acceptedTypes2;
|
|
21
19
|
}, Upload = () => {
|
|
22
20
|
const {
|
|
23
|
-
t
|
|
24
|
-
} = useTranslation(), {
|
|
25
21
|
type,
|
|
26
22
|
visibility,
|
|
27
23
|
multiple,
|
|
@@ -31,10 +27,7 @@ const acceptedTypes = (type) => {
|
|
|
31
27
|
} = useMediaLibraryContext(), handleOnFilesChange = (uploadedFiles) => {
|
|
32
28
|
uploadedFiles.length ? (setCancellable(uploadedFiles), setResultCounter(uploadedFiles.length), setResult(uploadedFiles)) : (setCancellable([]), setResultCounter(void 0), setResult(void 0));
|
|
33
29
|
};
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */ jsx(Alert, { type: "info", className: "flex-shrink-0 mb-16", children: t("bbm.upload.alert") }),
|
|
36
|
-
/* @__PURE__ */ jsx(Dropzone, { multiple, accept: acceptedTypes(type ?? "embedder"), children: /* @__PURE__ */ jsx(UploadFiles, { onFilesChange: handleOnFilesChange, visibility }) })
|
|
37
|
-
] });
|
|
30
|
+
return /* @__PURE__ */ jsx("div", { className: "py-8 flex-grow-1", children: /* @__PURE__ */ jsx(Dropzone, { multiple, accept: acceptedTypes(type ?? "embedder"), children: /* @__PURE__ */ jsx(UploadFiles, { onFilesChange: handleOnFilesChange, visibility }) }) });
|
|
38
31
|
};
|
|
39
32
|
export {
|
|
40
33
|
Upload
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.4.0-develop
|
|
3
|
+
"version": "2.4.0-develop.20251009115633",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
"react-slugify": "^3.0.3",
|
|
132
132
|
"swiper": "^10.1.0",
|
|
133
133
|
"ua-parser-js": "^1.0.36",
|
|
134
|
-
"@edifice.io/bootstrap": "2.4.0-develop
|
|
135
|
-
"@edifice.io/tiptap-extensions": "2.4.0-develop
|
|
136
|
-
"@edifice.io/utilities": "2.4.0-develop
|
|
134
|
+
"@edifice.io/bootstrap": "2.4.0-develop.20251009115633",
|
|
135
|
+
"@edifice.io/tiptap-extensions": "2.4.0-develop.20251009115633",
|
|
136
|
+
"@edifice.io/utilities": "2.4.0-develop.20251009115633"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
139
139
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
"vite": "^5.4.11",
|
|
165
165
|
"vite-plugin-dts": "^4.1.0",
|
|
166
166
|
"vite-tsconfig-paths": "^5.0.1",
|
|
167
|
-
"@edifice.io/client": "2.4.0-develop
|
|
168
|
-
"@edifice.io/config": "2.4.0-develop
|
|
167
|
+
"@edifice.io/client": "2.4.0-develop.20251009115633",
|
|
168
|
+
"@edifice.io/config": "2.4.0-develop.20251009115633"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@react-spring/web": "^9.7.5",
|