@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.
@@ -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.10";
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.7",
109
- "@strapi/icons": "2.0.0-rc.7",
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
- if (selections.indexOf(nextSelection) > -1) {
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-Djzy5KQc.js")),
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-BqEfmjGM.js")),
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-D685fFRK.js.map
6651
+ //# sourceMappingURL=index-BSxs0gi8.js.map