@strapi/upload 5.4.0 → 5.4.2

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.
Files changed (22) hide show
  1. package/dist/_chunks/{App-Dqqn78jO.js → App-B_qq8rgN.js} +3 -3
  2. package/dist/_chunks/{App-Dqqn78jO.js.map → App-B_qq8rgN.js.map} +1 -1
  3. package/dist/_chunks/{App-D1ayH-QS.mjs → App-BnJnub6y.mjs} +3 -3
  4. package/dist/_chunks/{App-D1ayH-QS.mjs.map → App-BnJnub6y.mjs.map} +1 -1
  5. package/dist/_chunks/{ConfigureTheView-B2Syy3q5.mjs → ConfigureTheView-MSDjw9SU.mjs} +2 -2
  6. package/dist/_chunks/{ConfigureTheView-B2Syy3q5.mjs.map → ConfigureTheView-MSDjw9SU.mjs.map} +1 -1
  7. package/dist/_chunks/{ConfigureTheView-fwDgErsi.js → ConfigureTheView-vQ7SyJK-.js} +2 -2
  8. package/dist/_chunks/{ConfigureTheView-fwDgErsi.js.map → ConfigureTheView-vQ7SyJK-.js.map} +1 -1
  9. package/dist/_chunks/{SettingsPage-oDEVs3XV.js → SettingsPage-C5mG_qOn.js} +2 -2
  10. package/dist/_chunks/{SettingsPage-oDEVs3XV.js.map → SettingsPage-C5mG_qOn.js.map} +1 -1
  11. package/dist/_chunks/{SettingsPage-BYC3ism8.mjs → SettingsPage-NQUNwQi_.mjs} +2 -2
  12. package/dist/_chunks/{SettingsPage-BYC3ism8.mjs.map → SettingsPage-NQUNwQi_.mjs.map} +1 -1
  13. package/dist/_chunks/{index-B7NW5XiM.js → index-Bc0RmE2T.js} +15 -14
  14. package/dist/_chunks/index-Bc0RmE2T.js.map +1 -0
  15. package/dist/_chunks/{index-Clesg6BA.mjs → index-DR3Ggk1w.mjs} +15 -14
  16. package/dist/_chunks/index-DR3Ggk1w.mjs.map +1 -0
  17. package/dist/admin/index.js +1 -1
  18. package/dist/admin/index.mjs +1 -1
  19. package/dist/admin/src/components/MediaLibraryInput/MediaLibraryInput.d.ts +1 -1
  20. package/package.json +8 -8
  21. package/dist/_chunks/index-B7NW5XiM.js.map +0 -1
  22. package/dist/_chunks/index-Clesg6BA.mjs.map +0 -1
@@ -31,7 +31,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
31
31
  });
32
32
  };
33
33
  const name$1 = "@strapi/upload";
34
- const version = "5.4.0";
34
+ const version = "5.4.1";
35
35
  const description = "Makes it easy to upload images and files to your Strapi Application.";
36
36
  const license = "SEE LICENSE IN LICENSE";
37
37
  const author = {
@@ -87,10 +87,10 @@ const scripts = {
87
87
  watch: "pack-up watch"
88
88
  };
89
89
  const dependencies = {
90
- "@strapi/design-system": "2.0.0-rc.12",
91
- "@strapi/icons": "2.0.0-rc.12",
92
- "@strapi/provider-upload-local": "5.4.0",
93
- "@strapi/utils": "5.4.0",
90
+ "@strapi/design-system": "2.0.0-rc.13",
91
+ "@strapi/icons": "2.0.0-rc.13",
92
+ "@strapi/provider-upload-local": "5.4.1",
93
+ "@strapi/utils": "5.4.1",
94
94
  "byte-size": "8.1.1",
95
95
  cropperjs: "1.6.1",
96
96
  "date-fns": "2.30.0",
@@ -112,9 +112,9 @@ const dependencies = {
112
112
  yup: "0.32.9"
113
113
  };
114
114
  const devDependencies = {
115
- "@strapi/admin": "5.4.0",
115
+ "@strapi/admin": "5.4.1",
116
116
  "@strapi/pack-up": "5.0.0",
117
- "@strapi/types": "5.4.0",
117
+ "@strapi/types": "5.4.1",
118
118
  "@testing-library/dom": "10.1.0",
119
119
  "@testing-library/react": "15.0.7",
120
120
  "@testing-library/user-event": "14.5.2",
@@ -1398,6 +1398,7 @@ const useCropImg = () => {
1398
1398
  zoomable: false,
1399
1399
  cropBoxResizable: true,
1400
1400
  background: false,
1401
+ checkCrossOrigin: false,
1401
1402
  crop: handleResize
1402
1403
  });
1403
1404
  setIsCropping(true);
@@ -2339,9 +2340,9 @@ const useEditFolder = () => {
2339
2340
  const queryClient = useQueryClient();
2340
2341
  const { put, post } = useFetchClient();
2341
2342
  const mutation = useMutation((...args) => editFolderRequest(put, post, ...args), {
2342
- onSuccess() {
2343
- queryClient.refetchQueries([pluginId, "folders"], { active: true });
2344
- queryClient.refetchQueries([pluginId, "folder", "structure"], { active: true });
2343
+ async onSuccess() {
2344
+ await queryClient.refetchQueries([pluginId, "folders"], { active: true });
2345
+ await queryClient.refetchQueries([pluginId, "folder", "structure"], { active: true });
2345
2346
  }
2346
2347
  });
2347
2348
  const editFolder = (attrs, id) => mutation.mutateAsync({ attrs, id });
@@ -5800,7 +5801,7 @@ const STEPS = {
5800
5801
  };
5801
5802
  const MediaLibraryInput = React.forwardRef(
5802
5803
  ({
5803
- attribute: { allowedTypes = ["videos", "files", "images", "audios"], multiple = false },
5804
+ attribute: { allowedTypes = ["videos", "files", "images", "audios"], multiple = false } = {},
5804
5805
  label,
5805
5806
  hint,
5806
5807
  disabled = false,
@@ -5986,7 +5987,7 @@ const admin = {
5986
5987
  defaultMessage: "Media Library"
5987
5988
  },
5988
5989
  permissions: PERMISSIONS.main,
5989
- Component: () => import("./App-D1ayH-QS.mjs").then((mod) => ({ default: mod.Upload })),
5990
+ Component: () => import("./App-BnJnub6y.mjs").then((mod) => ({ default: mod.Upload })),
5990
5991
  position: 4
5991
5992
  });
5992
5993
  app.addSettingsLink("global", {
@@ -5997,7 +5998,7 @@ const admin = {
5997
5998
  defaultMessage: "Media Library"
5998
5999
  },
5999
6000
  async Component() {
6000
- const { ProtectedSettingsPage } = await import("./SettingsPage-BYC3ism8.mjs");
6001
+ const { ProtectedSettingsPage } = await import("./SettingsPage-NQUNwQi_.mjs");
6001
6002
  return { default: ProtectedSettingsPage };
6002
6003
  },
6003
6004
  permissions: PERMISSIONS.settings
@@ -6075,4 +6076,4 @@ export {
6075
6076
  EditAssetDialog as y,
6076
6077
  useConfig as z
6077
6078
  };
6078
- //# sourceMappingURL=index-Clesg6BA.mjs.map
6079
+ //# sourceMappingURL=index-DR3Ggk1w.mjs.map