@strapi/upload 5.4.0 → 5.4.1

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.
@@ -1425,6 +1425,7 @@ const useCropImg = () => {
1425
1425
  zoomable: false,
1426
1426
  cropBoxResizable: true,
1427
1427
  background: false,
1428
+ checkCrossOrigin: false,
1428
1429
  crop: handleResize
1429
1430
  });
1430
1431
  setIsCropping(true);
@@ -2366,9 +2367,9 @@ const useEditFolder = () => {
2366
2367
  const queryClient = reactQuery.useQueryClient();
2367
2368
  const { put, post } = strapiAdmin.useFetchClient();
2368
2369
  const mutation = reactQuery.useMutation((...args) => editFolderRequest(put, post, ...args), {
2369
- onSuccess() {
2370
- queryClient.refetchQueries([pluginId, "folders"], { active: true });
2371
- queryClient.refetchQueries([pluginId, "folder", "structure"], { active: true });
2370
+ async onSuccess() {
2371
+ await queryClient.refetchQueries([pluginId, "folders"], { active: true });
2372
+ await queryClient.refetchQueries([pluginId, "folder", "structure"], { active: true });
2372
2373
  }
2373
2374
  });
2374
2375
  const editFolder = (attrs, id) => mutation.mutateAsync({ attrs, id });
@@ -6013,7 +6014,7 @@ const admin = {
6013
6014
  defaultMessage: "Media Library"
6014
6015
  },
6015
6016
  permissions: PERMISSIONS.main,
6016
- Component: () => Promise.resolve().then(() => require("./App-Dqqn78jO.js")).then((mod) => ({ default: mod.Upload })),
6017
+ Component: () => Promise.resolve().then(() => require("./App-DeNaeOad.js")).then((mod) => ({ default: mod.Upload })),
6017
6018
  position: 4
6018
6019
  });
6019
6020
  app.addSettingsLink("global", {
@@ -6024,7 +6025,7 @@ const admin = {
6024
6025
  defaultMessage: "Media Library"
6025
6026
  },
6026
6027
  async Component() {
6027
- const { ProtectedSettingsPage } = await Promise.resolve().then(() => require("./SettingsPage-oDEVs3XV.js"));
6028
+ const { ProtectedSettingsPage } = await Promise.resolve().then(() => require("./SettingsPage-C60zLXmE.js"));
6028
6029
  return { default: ProtectedSettingsPage };
6029
6030
  },
6030
6031
  permissions: PERMISSIONS.settings
@@ -6100,4 +6101,4 @@ exports.useMediaLibraryPermissions = useMediaLibraryPermissions;
6100
6101
  exports.usePersistentState = usePersistentState;
6101
6102
  exports.useSelectionState = useSelectionState;
6102
6103
  exports.viewOptions = viewOptions;
6103
- //# sourceMappingURL=index-B7NW5XiM.js.map
6104
+ //# sourceMappingURL=index-DwVjDEMt.js.map