@strapi/upload 5.0.0-rc.11 → 5.0.0-rc.13
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/_chunks/{index-D685fFRK.js → index-BSxs0gi8.js} +11 -8
- package/dist/_chunks/index-BSxs0gi8.js.map +1 -0
- package/dist/_chunks/{index-Djzy5KQc.js → index-CA_YBYpF.js} +3 -3
- package/dist/_chunks/{index-Djzy5KQc.js.map → index-CA_YBYpF.js.map} +1 -1
- package/dist/_chunks/{index-Cfdzssoj.mjs → index-CNx9uX9j.mjs} +3 -3
- package/dist/_chunks/{index-Cfdzssoj.mjs.map → index-CNx9uX9j.mjs.map} +1 -1
- package/dist/_chunks/{index-BTINMk8d.mjs → index-CjKo4xPb.mjs} +11 -8
- package/dist/_chunks/index-CjKo4xPb.mjs.map +1 -0
- package/dist/_chunks/{index-BqEfmjGM.js → index-Cw8g1L17.js} +2 -2
- package/dist/_chunks/{index-BqEfmjGM.js.map → index-Cw8g1L17.js.map} +1 -1
- package/dist/_chunks/{index-BZ4ADakc.mjs → index-DQEXOWNj.mjs} +2 -2
- package/dist/_chunks/{index-BZ4ADakc.mjs.map → index-DQEXOWNj.mjs.map} +1 -1
- package/dist/_chunks/{index-1UsTkkaK.mjs → index-DZLvhfg5.mjs} +2 -2
- package/dist/_chunks/{index-1UsTkkaK.mjs.map → index-DZLvhfg5.mjs.map} +1 -1
- package/dist/_chunks/{index-Bhs0domU.js → index-dNlan3zs.js} +2 -2
- package/dist/_chunks/{index-Bhs0domU.js.map → index-dNlan3zs.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +8 -8
- package/dist/_chunks/index-BTINMk8d.mjs.map +0 -1
- package/dist/_chunks/index-D685fFRK.js.map +0 -1
|
@@ -60,7 +60,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
const name$1 = "@strapi/upload";
|
|
63
|
-
const version = "5.0.0-rc.
|
|
63
|
+
const version = "5.0.0-rc.12";
|
|
64
64
|
const description = "Makes it easy to upload images and files to your Strapi Application.";
|
|
65
65
|
const license = "SEE LICENSE IN LICENSE";
|
|
66
66
|
const author = {
|
|
@@ -105,8 +105,8 @@ const scripts = {
|
|
|
105
105
|
watch: "pack-up watch"
|
|
106
106
|
};
|
|
107
107
|
const dependencies = {
|
|
108
|
-
"@strapi/design-system": "2.0.0-rc.
|
|
109
|
-
"@strapi/icons": "2.0.0-rc.
|
|
108
|
+
"@strapi/design-system": "2.0.0-rc.10",
|
|
109
|
+
"@strapi/icons": "2.0.0-rc.10",
|
|
110
110
|
"@strapi/provider-upload-local": "workspace:*",
|
|
111
111
|
"@strapi/utils": "workspace:*",
|
|
112
112
|
"byte-size": "8.1.1",
|
|
@@ -843,7 +843,10 @@ const useSelectionState = (keys, initialValue) => {
|
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
845
|
const selectOnly = (nextSelection) => {
|
|
846
|
-
|
|
846
|
+
const index2 = selections.findIndex(
|
|
847
|
+
(currentSelection) => keys.every((key) => currentSelection[key] === nextSelection[key])
|
|
848
|
+
);
|
|
849
|
+
if (index2 > -1) {
|
|
847
850
|
setSelections([]);
|
|
848
851
|
} else {
|
|
849
852
|
setSelections([nextSelection]);
|
|
@@ -5554,7 +5557,7 @@ const FromUrlForm = ({ onClose, onAddAsset, trackedLocation }) => {
|
|
|
5554
5557
|
error: error?.message || (errors.urls ? formatMessage({ id: errors.urls, defaultMessage: "An error occured" }) : void 0),
|
|
5555
5558
|
children: [
|
|
5556
5559
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({ id: getTrad("input.url.label"), defaultMessage: "URL" }) }),
|
|
5557
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Textarea, { onChange: handleChange, value: values.urls }),
|
|
5560
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Textarea, { name: "urls", onChange: handleChange, value: values.urls }),
|
|
5558
5561
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {}),
|
|
5559
5562
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
|
|
5560
5563
|
]
|
|
@@ -6566,7 +6569,7 @@ const index = {
|
|
|
6566
6569
|
defaultMessage: "Media Library"
|
|
6567
6570
|
},
|
|
6568
6571
|
permissions: PERMISSIONS.main,
|
|
6569
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
6572
|
+
Component: () => Promise.resolve().then(() => require("./index-CA_YBYpF.js")),
|
|
6570
6573
|
position: 4
|
|
6571
6574
|
});
|
|
6572
6575
|
app.addSettingsLink("global", {
|
|
@@ -6576,7 +6579,7 @@ const index = {
|
|
|
6576
6579
|
defaultMessage: "Media Library"
|
|
6577
6580
|
},
|
|
6578
6581
|
to: "media-library",
|
|
6579
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
6582
|
+
Component: () => Promise.resolve().then(() => require("./index-Cw8g1L17.js")),
|
|
6580
6583
|
permissions: PERMISSIONS.settings
|
|
6581
6584
|
});
|
|
6582
6585
|
app.addFields({ type: "media", Component: MediaLibraryInput });
|
|
@@ -6645,4 +6648,4 @@ exports.useMediaLibraryPermissions = useMediaLibraryPermissions;
|
|
|
6645
6648
|
exports.usePersistentState = usePersistentState;
|
|
6646
6649
|
exports.useSelectionState = useSelectionState;
|
|
6647
6650
|
exports.viewOptions = viewOptions;
|
|
6648
|
-
//# sourceMappingURL=index-
|
|
6651
|
+
//# sourceMappingURL=index-BSxs0gi8.js.map
|