@strapi/upload 5.0.0-rc.0 → 5.0.0-rc.10

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 (54) hide show
  1. package/dist/_chunks/{graphql-DnH9sdRy.js → graphql-CtmISqaK.js} +2 -2
  2. package/dist/_chunks/{graphql-DnH9sdRy.js.map → graphql-CtmISqaK.js.map} +1 -1
  3. package/dist/_chunks/{graphql-_gnSn8ak.mjs → graphql-DPMDE47y.mjs} +2 -2
  4. package/dist/_chunks/{graphql-_gnSn8ak.mjs.map → graphql-DPMDE47y.mjs.map} +1 -1
  5. package/dist/_chunks/{index-B31omlmq.js → index-B-H3r7mP.js} +4 -4
  6. package/dist/_chunks/index-B-H3r7mP.js.map +1 -0
  7. package/dist/_chunks/{index-BCY68yPX.mjs → index-Bcd5hOLY.mjs} +4 -4
  8. package/dist/_chunks/index-Bcd5hOLY.mjs.map +1 -0
  9. package/dist/_chunks/{index-DNIvA1Nj.js → index-C5KW21l3.js} +59 -21
  10. package/dist/_chunks/index-C5KW21l3.js.map +1 -0
  11. package/dist/_chunks/{index-aW1eiyyQ.mjs → index-CWuibX66.mjs} +60 -22
  12. package/dist/_chunks/index-CWuibX66.mjs.map +1 -0
  13. package/dist/_chunks/{index-By7J3KhK.js → index-C_dufBTj.js} +95 -82
  14. package/dist/_chunks/index-C_dufBTj.js.map +1 -0
  15. package/dist/_chunks/{index-B2H0mT-4.mjs → index-D9EbhEEJ.mjs} +5 -5
  16. package/dist/_chunks/index-D9EbhEEJ.mjs.map +1 -0
  17. package/dist/_chunks/{index-DF-F15Un.mjs → index-DBGHWFwK.mjs} +95 -82
  18. package/dist/_chunks/index-DBGHWFwK.mjs.map +1 -0
  19. package/dist/_chunks/{index-CMAvhamB.js → index-DfYwhlv1.js} +5 -5
  20. package/dist/_chunks/index-DfYwhlv1.js.map +1 -0
  21. package/dist/_chunks/{index-Dfhzzni3.js → index-Jo1X_f0b.js} +68 -59
  22. package/dist/_chunks/index-Jo1X_f0b.js.map +1 -0
  23. package/dist/_chunks/{index-REz0rm2a.mjs → index-YJADIdOe.mjs} +68 -59
  24. package/dist/_chunks/index-YJADIdOe.mjs.map +1 -0
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +1 -1
  27. package/dist/server/index.js +1 -1
  28. package/dist/server/index.mjs +1 -1
  29. package/dist/server/src/bootstrap.d.ts.map +1 -1
  30. package/dist/server/src/index.d.ts +1 -2
  31. package/dist/server/src/index.d.ts.map +1 -1
  32. package/dist/server/src/services/extensions/index.d.ts +1 -4
  33. package/dist/server/src/services/extensions/index.d.ts.map +1 -1
  34. package/dist/server/src/services/index.d.ts +1 -2
  35. package/dist/server/src/services/index.d.ts.map +1 -1
  36. package/package.json +8 -8
  37. package/dist/_chunks/index-B2H0mT-4.mjs.map +0 -1
  38. package/dist/_chunks/index-B31omlmq.js.map +0 -1
  39. package/dist/_chunks/index-BCY68yPX.mjs.map +0 -1
  40. package/dist/_chunks/index-By7J3KhK.js.map +0 -1
  41. package/dist/_chunks/index-CMAvhamB.js.map +0 -1
  42. package/dist/_chunks/index-DF-F15Un.mjs.map +0 -1
  43. package/dist/_chunks/index-DNIvA1Nj.js.map +0 -1
  44. package/dist/_chunks/index-Dfhzzni3.js.map +0 -1
  45. package/dist/_chunks/index-REz0rm2a.mjs.map +0 -1
  46. package/dist/_chunks/index-aW1eiyyQ.mjs.map +0 -1
  47. package/dist/server/src/services/extensions/content-manager/entity-manager.d.ts +0 -15
  48. package/dist/server/src/services/extensions/content-manager/entity-manager.d.ts.map +0 -1
  49. package/dist/server/src/services/extensions/content-manager/index.d.ts +0 -4
  50. package/dist/server/src/services/extensions/content-manager/index.d.ts.map +0 -1
  51. package/dist/server/src/services/extensions/core/entity-service.d.ts +0 -4
  52. package/dist/server/src/services/extensions/core/entity-service.d.ts.map +0 -1
  53. package/dist/server/src/services/extensions/core/index.d.ts +0 -4
  54. package/dist/server/src/services/extensions/core/index.d.ts.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-beta.17";
63
+ const version = "5.0.0-rc.9";
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,10 +105,10 @@ const scripts = {
105
105
  watch: "pack-up watch"
106
106
  };
107
107
  const dependencies = {
108
- "@strapi/design-system": "2.0.0-beta.6",
109
- "@strapi/icons": "2.0.0-beta.6",
110
- "@strapi/provider-upload-local": "5.0.0-beta.17",
111
- "@strapi/utils": "5.0.0-beta.17",
108
+ "@strapi/design-system": "2.0.0-rc.7",
109
+ "@strapi/icons": "2.0.0-rc.7",
110
+ "@strapi/provider-upload-local": "workspace:*",
111
+ "@strapi/utils": "workspace:*",
112
112
  "byte-size": "8.1.1",
113
113
  cropperjs: "1.6.1",
114
114
  "date-fns": "2.30.0",
@@ -130,9 +130,9 @@ const dependencies = {
130
130
  yup: "0.32.9"
131
131
  };
132
132
  const devDependencies = {
133
- "@strapi/admin": "5.0.0-beta.17",
133
+ "@strapi/admin": "workspace:*",
134
134
  "@strapi/pack-up": "5.0.0",
135
- "@strapi/types": "5.0.0-beta.17",
135
+ "@strapi/types": "workspace:*",
136
136
  "@testing-library/dom": "10.1.0",
137
137
  "@testing-library/react": "15.0.7",
138
138
  "@testing-library/user-event": "14.5.2",
@@ -999,7 +999,7 @@ const ContextInfo = ({ blocks }) => {
999
999
  paddingTop: 4,
1000
1000
  paddingBottom: 4,
1001
1001
  background: "neutral100",
1002
- children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: blocks.map(({ label, value }) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 6, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
1002
+ children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: blocks.map(({ label, value }) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 6, xs: 12, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
1003
1003
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", textColor: "neutral600", children: label }),
1004
1004
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral700", children: value })
1005
1005
  ] }) }, label)) })
@@ -2130,7 +2130,7 @@ const EditAssetContent = ({
2130
2130
  children: ({ values, errors, handleChange, setFieldValue }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2131
2131
  /* @__PURE__ */ jsxRuntime.jsx(DialogHeader, {}),
2132
2132
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Body, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Grid.Root, { gap: 4, children: [
2133
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
2133
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 6, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsx(
2134
2134
  PreviewBox,
2135
2135
  {
2136
2136
  asset,
@@ -2145,7 +2145,7 @@ const EditAssetContent = ({
2145
2145
  trackedLocation
2146
2146
  }
2147
2147
  ) }),
2148
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(formik.Form, { noValidate: true, children: [
2148
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 6, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsxs(formik.Form, { noValidate: true, children: [
2149
2149
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 3, children: [
2150
2150
  /* @__PURE__ */ jsxRuntime.jsx(
2151
2151
  ContextInfo,
@@ -2524,7 +2524,7 @@ const EditFolderContent = ({ onClose, folder, location, parentFolderId }) => {
2524
2524
  children: ({ values, errors, handleChange, setFieldValue }) => /* @__PURE__ */ jsxRuntime.jsxs(formik.Form, { noValidate: true, children: [
2525
2525
  /* @__PURE__ */ jsxRuntime.jsx(EditFolderModalHeader, { isEditing }),
2526
2526
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Body, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Grid.Root, { gap: 4, children: [
2527
- isEditing && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
2527
+ isEditing && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 12, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsx(
2528
2528
  ContextInfo,
2529
2529
  {
2530
2530
  blocks: [
@@ -2554,7 +2554,7 @@ const EditFolderContent = ({ onClose, folder, location, parentFolderId }) => {
2554
2554
  ]
2555
2555
  }
2556
2556
  ) }),
2557
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name: "name", error: errors.name, children: [
2557
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 6, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name: "name", error: errors.name, children: [
2558
2558
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
2559
2559
  id: getTrad("form.input.label.folder-name"),
2560
2560
  defaultMessage: "Name"
@@ -2569,7 +2569,7 @@ const EditFolderContent = ({ onClose, folder, location, parentFolderId }) => {
2569
2569
  ),
2570
2570
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
2571
2571
  ] }) }),
2572
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { id: "folder-parent", children: [
2572
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { xs: 12, col: 6, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { id: "folder-parent", children: [
2573
2573
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
2574
2574
  id: getTrad("form.input.label.folder-location"),
2575
2575
  defaultMessage: "Location"
@@ -3107,7 +3107,7 @@ const AssetGridList = ({
3107
3107
  }
3108
3108
  ) }) }, asset.id);
3109
3109
  }
3110
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 3, height: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
3110
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 3, height: "100%", direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsx(
3111
3111
  AssetCard,
3112
3112
  {
3113
3113
  allowedTypes,
@@ -3666,14 +3666,14 @@ const TableRows = ({
3666
3666
  contentType === "folder" && /* @__PURE__ */ jsxRuntime.jsx(
3667
3667
  designSystem.IconButton,
3668
3668
  {
3669
- tag: folderURL ? reactRouterDom.Link : void 0,
3669
+ tag: folderURL ? reactRouterDom.Link : "button",
3670
3670
  label: formatMessage({
3671
3671
  id: getTrad("list.folders.link-label"),
3672
3672
  defaultMessage: "Access folder"
3673
3673
  }),
3674
3674
  to: folderURL,
3675
3675
  onClick: () => !folderURL && onChangeFolder(id2),
3676
- borderWidth: 0,
3676
+ variant: "ghost",
3677
3677
  children: /* @__PURE__ */ jsxRuntime.jsx(icons.Eye, {})
3678
3678
  }
3679
3679
  ),
@@ -3685,7 +3685,7 @@ const TableRows = ({
3685
3685
  defaultMessage: "Edit"
3686
3686
  }),
3687
3687
  onClick: () => contentType === "asset" ? onEditAsset(element) : onEditFolder(element),
3688
- borderWidth: 0,
3688
+ variant: "ghost",
3689
3689
  children: /* @__PURE__ */ jsxRuntime.jsx(icons.Pencil, {})
3690
3690
  }
3691
3691
  )
@@ -3738,7 +3738,7 @@ const TableList = ({
3738
3738
  defaultMessage: "Select all folders & assets"
3739
3739
  }),
3740
3740
  disabled: shouldDisableBulkSelect,
3741
- onCheckedValue: (checked) => onSelectAll(checked, rows),
3741
+ onCheckedChange: (checked) => onSelectAll(checked, rows),
3742
3742
  checked: indeterminate && !shouldDisableBulkSelect ? "indeterminate" : (assetCount > 0 || folderCount > 0) && selected.length === assetCount + folderCount
3743
3743
  }
3744
3744
  ) }),
@@ -3758,7 +3758,7 @@ const TableList = ({
3758
3758
  {
3759
3759
  label: sortLabel,
3760
3760
  onClick: () => handleClickSort(isSorted, name2),
3761
- borderWidth: 0,
3761
+ variant: "ghost",
3762
3762
  children: isUp ? /* @__PURE__ */ jsxRuntime.jsx(icons.CaretUp, {}) : /* @__PURE__ */ jsxRuntime.jsx(icons.CaretDown, {})
3763
3763
  }
3764
3764
  ),
@@ -4841,65 +4841,74 @@ const BrowseStep = ({
4841
4841
  { count: folderCount }
4842
4842
  ) || "",
4843
4843
  children: folders.map((folder) => {
4844
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 3, children: /* @__PURE__ */ jsxRuntime.jsx(
4845
- FolderCard,
4844
+ return /* @__PURE__ */ jsxRuntime.jsx(
4845
+ designSystem.Grid.Item,
4846
4846
  {
4847
- ariaLabel: folder.name,
4848
- id: `folder-${folder.id}`,
4849
- onClick: () => handleClickFolderCard(folder.id, folder.path),
4850
- cardActions: onEditFolder && /* @__PURE__ */ jsxRuntime.jsx(
4851
- designSystem.IconButton,
4852
- {
4853
- withTooltip: false,
4854
- label: formatMessage({
4855
- id: getTrad("list.folder.edit"),
4856
- defaultMessage: "Edit folder"
4857
- }),
4858
- onClick: () => onEditFolder(folder),
4859
- children: /* @__PURE__ */ jsxRuntime.jsx(icons.Pencil, {})
4860
- }
4861
- ),
4862
- children: /* @__PURE__ */ jsxRuntime.jsx(FolderCardBody, { children: /* @__PURE__ */ jsxRuntime.jsx(
4863
- FolderCardBodyAction,
4847
+ col: 3,
4848
+ direction: "column",
4849
+ alignItems: "stretch",
4850
+ children: /* @__PURE__ */ jsxRuntime.jsx(
4851
+ FolderCard,
4864
4852
  {
4853
+ ariaLabel: folder.name,
4854
+ id: `folder-${folder.id}`,
4865
4855
  onClick: () => handleClickFolderCard(folder.id, folder.path),
4866
- children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { tag: "h2", direction: "column", alignItems: "start", maxWidth: "100%", children: [
4867
- /* @__PURE__ */ jsxRuntime.jsxs(
4868
- TypographyMaxWidth,
4869
- {
4870
- fontWeight: "semiBold",
4871
- ellipsis: true,
4872
- textColor: "neutral800",
4873
- children: [
4874
- folder.name,
4875
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children: "-" })
4876
- ]
4877
- }
4878
- ),
4879
- /* @__PURE__ */ jsxRuntime.jsx(
4880
- TypographyMaxWidth,
4881
- {
4882
- tag: "span",
4883
- textColor: "neutral600",
4884
- variant: "pi",
4885
- ellipsis: true,
4886
- children: formatMessage(
4856
+ cardActions: onEditFolder && /* @__PURE__ */ jsxRuntime.jsx(
4857
+ designSystem.IconButton,
4858
+ {
4859
+ withTooltip: false,
4860
+ label: formatMessage({
4861
+ id: getTrad("list.folder.edit"),
4862
+ defaultMessage: "Edit folder"
4863
+ }),
4864
+ onClick: () => onEditFolder(folder),
4865
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.Pencil, {})
4866
+ }
4867
+ ),
4868
+ children: /* @__PURE__ */ jsxRuntime.jsx(FolderCardBody, { children: /* @__PURE__ */ jsxRuntime.jsx(
4869
+ FolderCardBodyAction,
4870
+ {
4871
+ onClick: () => handleClickFolderCard(folder.id, folder.path),
4872
+ children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { tag: "h2", direction: "column", alignItems: "start", maxWidth: "100%", children: [
4873
+ /* @__PURE__ */ jsxRuntime.jsxs(
4874
+ TypographyMaxWidth,
4887
4875
  {
4888
- id: getTrad("list.folder.subtitle"),
4889
- defaultMessage: "{folderCount, plural, =0 {# folder} one {# folder} other {# folders}}, {filesCount, plural, =0 {# asset} one {# asset} other {# assets}}"
4890
- },
4876
+ fontWeight: "semiBold",
4877
+ ellipsis: true,
4878
+ textColor: "neutral800",
4879
+ children: [
4880
+ folder.name,
4881
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children: "-" })
4882
+ ]
4883
+ }
4884
+ ),
4885
+ /* @__PURE__ */ jsxRuntime.jsx(
4886
+ TypographyMaxWidth,
4891
4887
  {
4892
- folderCount: folder.children.count,
4893
- filesCount: folder.files.count
4888
+ tag: "span",
4889
+ textColor: "neutral600",
4890
+ variant: "pi",
4891
+ ellipsis: true,
4892
+ children: formatMessage(
4893
+ {
4894
+ id: getTrad("list.folder.subtitle"),
4895
+ defaultMessage: "{folderCount, plural, =0 {# folder} one {# folder} other {# folders}}, {filesCount, plural, =0 {# asset} one {# asset} other {# assets}}"
4896
+ },
4897
+ {
4898
+ folderCount: folder.children.count,
4899
+ filesCount: folder.files.count
4900
+ }
4901
+ )
4894
4902
  }
4895
4903
  )
4896
- }
4897
- )
4898
- ] })
4904
+ ] })
4905
+ }
4906
+ ) })
4899
4907
  }
4900
- ) })
4901
- }
4902
- ) }, `folder-${folder.id}`);
4908
+ )
4909
+ },
4910
+ `folder-${folder.id}`
4911
+ );
4903
4912
  })
4904
4913
  }
4905
4914
  ),
@@ -5799,7 +5808,7 @@ const PendingAssetStep = ({
5799
5808
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.KeyboardNavigable, { tagName: "article", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: assets.map((asset) => {
5800
5809
  const assetKey = asset.url;
5801
5810
  if (uploadStatus === Status.Uploading || uploadStatus === Status.Intermediate) {
5802
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
5811
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 4, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsx(
5803
5812
  UploadingAssetCard,
5804
5813
  {
5805
5814
  addUploadedFiles,
@@ -5812,7 +5821,7 @@ const PendingAssetStep = ({
5812
5821
  }
5813
5822
  ) }, assetKey);
5814
5823
  }
5815
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
5824
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 4, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsxRuntime.jsx(
5816
5825
  AssetCard,
5817
5826
  {
5818
5827
  asset,
@@ -5992,11 +6001,8 @@ const MediaLibraryDialog = ({ onClose, onSelectAssets, allowedTypes }) => {
5992
6001
  {
5993
6002
  allowedTypes,
5994
6003
  folderId,
5995
- onClose: () => {
5996
- setStep(void 0);
5997
- setFolderId(null);
5998
- onClose();
5999
- },
6004
+ open: true,
6005
+ onClose,
6000
6006
  onValidate: onSelectAssets,
6001
6007
  onAddAsset: () => setStep(STEPS$1.AssetUpload),
6002
6008
  onAddFolder: () => setStep(STEPS$1.FolderCreate),
@@ -6005,9 +6011,16 @@ const MediaLibraryDialog = ({ onClose, onSelectAssets, allowedTypes }) => {
6005
6011
  }
6006
6012
  );
6007
6013
  case STEPS$1.FolderCreate:
6008
- return /* @__PURE__ */ jsxRuntime.jsx(EditFolderDialog, { onClose: () => setStep(STEPS$1.AssetSelect), parentFolderId: folderId });
6014
+ return /* @__PURE__ */ jsxRuntime.jsx(
6015
+ EditFolderDialog,
6016
+ {
6017
+ open: true,
6018
+ onClose: () => setStep(STEPS$1.AssetSelect),
6019
+ parentFolderId: folderId
6020
+ }
6021
+ );
6009
6022
  default:
6010
- return /* @__PURE__ */ jsxRuntime.jsx(UploadAssetDialog, { onClose: () => setStep(STEPS$1.AssetSelect), folderId });
6023
+ return /* @__PURE__ */ jsxRuntime.jsx(UploadAssetDialog, { open: true, onClose: () => setStep(STEPS$1.AssetSelect), folderId });
6011
6024
  }
6012
6025
  };
6013
6026
  MediaLibraryDialog.defaultProps = {
@@ -6553,7 +6566,7 @@ const index = {
6553
6566
  defaultMessage: "Media Library"
6554
6567
  },
6555
6568
  permissions: PERMISSIONS.main,
6556
- Component: () => Promise.resolve().then(() => require("./index-Dfhzzni3.js")),
6569
+ Component: () => Promise.resolve().then(() => require("./index-Jo1X_f0b.js")),
6557
6570
  position: 4
6558
6571
  });
6559
6572
  app.addSettingsLink("global", {
@@ -6563,7 +6576,7 @@ const index = {
6563
6576
  defaultMessage: "Media Library"
6564
6577
  },
6565
6578
  to: "media-library",
6566
- Component: () => Promise.resolve().then(() => require("./index-CMAvhamB.js")),
6579
+ Component: () => Promise.resolve().then(() => require("./index-DfYwhlv1.js")),
6567
6580
  permissions: PERMISSIONS.settings
6568
6581
  });
6569
6582
  app.addFields({ type: "media", Component: MediaLibraryInput });
@@ -6632,4 +6645,4 @@ exports.useMediaLibraryPermissions = useMediaLibraryPermissions;
6632
6645
  exports.usePersistentState = usePersistentState;
6633
6646
  exports.useSelectionState = useSelectionState;
6634
6647
  exports.viewOptions = viewOptions;
6635
- //# sourceMappingURL=index-By7J3KhK.js.map
6648
+ //# sourceMappingURL=index-C_dufBTj.js.map