@strapi/content-manager 0.0.0-experimental.93a73ca8c7b85667fe8e46c0cb6627506570a02f → 0.0.0-experimental.997c519cb311bf692e8971f4bbd2e4a92694abee

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 (105) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-B3yDbeU1.mjs → ComponentConfigurationPage-CnL10QYC.mjs} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-B3yDbeU1.mjs.map → ComponentConfigurationPage-CnL10QYC.mjs.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-KXSuLnQD.js → ComponentConfigurationPage-G4EIirP8.js} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-KXSuLnQD.js.map → ComponentConfigurationPage-G4EIirP8.js.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-BQ17--5R.js → EditConfigurationPage-B2AA1kVF.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-BQ17--5R.js.map → EditConfigurationPage-B2AA1kVF.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-D7PrLO8j.mjs → EditConfigurationPage-I2kKh9dx.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-D7PrLO8j.mjs.map → EditConfigurationPage-I2kKh9dx.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-BgjdnGz2.js → EditViewPage-CHgoNwlc.js} +4 -4
  10. package/dist/_chunks/EditViewPage-CHgoNwlc.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-B7VgwJaG.mjs → EditViewPage-zFjJK0s8.mjs} +4 -4
  12. package/dist/_chunks/EditViewPage-zFjJK0s8.mjs.map +1 -0
  13. package/dist/_chunks/{Field-CdK7ZLmv.js → Field-9DePZh-0.js} +34 -65
  14. package/dist/_chunks/Field-9DePZh-0.js.map +1 -0
  15. package/dist/_chunks/{Field-tHCw4lGA.mjs → Field-DPAzUS1M.mjs} +31 -62
  16. package/dist/_chunks/Field-DPAzUS1M.mjs.map +1 -0
  17. package/dist/_chunks/{Form-BJxdTv3Q.mjs → Form-CEkENbkF.mjs} +15 -7
  18. package/dist/_chunks/Form-CEkENbkF.mjs.map +1 -0
  19. package/dist/_chunks/{Form-C_0KTVvV.js → Form-DPm-KZ1A.js} +15 -7
  20. package/dist/_chunks/Form-DPm-KZ1A.js.map +1 -0
  21. package/dist/_chunks/{History-nuEzM5qm.js → History-DXSbTWez.js} +4 -4
  22. package/dist/_chunks/{History-nuEzM5qm.js.map → History-DXSbTWez.js.map} +1 -1
  23. package/dist/_chunks/{History-DR2txJLE.mjs → History-utls71em.mjs} +4 -4
  24. package/dist/_chunks/{History-DR2txJLE.mjs.map → History-utls71em.mjs.map} +1 -1
  25. package/dist/_chunks/{ListConfigurationPage-voFVtXu6.mjs → ListConfigurationPage-CuMXWWqb.mjs} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-voFVtXu6.mjs.map → ListConfigurationPage-CuMXWWqb.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-CnB86Psm.js → ListConfigurationPage-D5C7ACZ_.js} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-CnB86Psm.js.map → ListConfigurationPage-D5C7ACZ_.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-B_GaWgRH.mjs → ListViewPage-CdKd-PS_.mjs} +39 -35
  30. package/dist/_chunks/ListViewPage-CdKd-PS_.mjs.map +1 -0
  31. package/dist/_chunks/{ListViewPage-SXIXm-RM.js → ListViewPage-DfuwH1tt.js} +42 -38
  32. package/dist/_chunks/ListViewPage-DfuwH1tt.js.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-BzsQ3hLZ.js → NoContentTypePage-BIxlkWWi.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-BzsQ3hLZ.js.map → NoContentTypePage-BIxlkWWi.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-CYiGpsbj.mjs → NoContentTypePage-DkToTT7u.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-CYiGpsbj.mjs.map → NoContentTypePage-DkToTT7u.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-IGkId4C5.js → NoPermissionsPage-Bu4GWYb-.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-IGkId4C5.js.map → NoPermissionsPage-Bu4GWYb-.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-B5baIHal.mjs → NoPermissionsPage-DlWi4BAH.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-B5baIHal.mjs.map → NoPermissionsPage-DlWi4BAH.mjs.map} +1 -1
  41. package/dist/_chunks/{Relations-Dhuurpx2.js → Relations-CFjTESWQ.js} +3 -3
  42. package/dist/_chunks/{Relations-Dhuurpx2.js.map → Relations-CFjTESWQ.js.map} +1 -1
  43. package/dist/_chunks/{Relations-CIYDdKU-.mjs → Relations-QP5yn9_z.mjs} +3 -3
  44. package/dist/_chunks/{Relations-CIYDdKU-.mjs.map → Relations-QP5yn9_z.mjs.map} +1 -1
  45. package/dist/_chunks/{en-uOUIxfcQ.js → en-BVzUkPxZ.js} +6 -5
  46. package/dist/_chunks/{en-uOUIxfcQ.js.map → en-BVzUkPxZ.js.map} +1 -1
  47. package/dist/_chunks/{en-BrCTWlZv.mjs → en-CPTj6CjC.mjs} +6 -5
  48. package/dist/_chunks/{en-BrCTWlZv.mjs.map → en-CPTj6CjC.mjs.map} +1 -1
  49. package/dist/_chunks/{index-C9TJPyni.mjs → index-BHfS6_D5.mjs} +184 -118
  50. package/dist/_chunks/index-BHfS6_D5.mjs.map +1 -0
  51. package/dist/_chunks/{index-CdT0kHZ8.js → index-DXiHxy70.js} +165 -99
  52. package/dist/_chunks/index-DXiHxy70.js.map +1 -0
  53. package/dist/_chunks/{layout-BNqvLR_b.mjs → layout-DX_52HSH.mjs} +5 -4
  54. package/dist/_chunks/{layout-BNqvLR_b.mjs.map → layout-DX_52HSH.mjs.map} +1 -1
  55. package/dist/_chunks/{layout-C6dxWYT7.js → layout-bE-WUnQ0.js} +5 -4
  56. package/dist/_chunks/{layout-C6dxWYT7.js.map → layout-bE-WUnQ0.js.map} +1 -1
  57. package/dist/_chunks/{relations-DtFaDnP1.js → relations-D706vblp.js} +2 -2
  58. package/dist/_chunks/{relations-DtFaDnP1.js.map → relations-D706vblp.js.map} +1 -1
  59. package/dist/_chunks/{relations-CkKqKw65.mjs → relations-SCVAL_aJ.mjs} +2 -2
  60. package/dist/_chunks/{relations-CkKqKw65.mjs.map → relations-SCVAL_aJ.mjs.map} +1 -1
  61. package/dist/_chunks/{usePrev-B9w_-eYc.js → useDebounce-CtcjDB3L.js} +14 -1
  62. package/dist/_chunks/useDebounce-CtcjDB3L.js.map +1 -0
  63. package/dist/_chunks/useDebounce-DmuSJIF3.mjs +29 -0
  64. package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +1 -0
  65. package/dist/admin/index.js +1 -1
  66. package/dist/admin/index.mjs +4 -4
  67. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  68. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +0 -32
  69. package/dist/admin/src/pages/EditView/components/Header.d.ts +10 -11
  70. package/dist/admin/src/services/api.d.ts +1 -1
  71. package/dist/admin/src/services/components.d.ts +2 -2
  72. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  73. package/dist/admin/src/services/documents.d.ts +19 -17
  74. package/dist/admin/src/services/init.d.ts +1 -1
  75. package/dist/admin/src/services/relations.d.ts +2 -2
  76. package/dist/admin/src/services/uid.d.ts +3 -3
  77. package/dist/admin/src/utils/validation.d.ts +4 -1
  78. package/dist/server/index.js +47 -23
  79. package/dist/server/index.js.map +1 -1
  80. package/dist/server/index.mjs +47 -23
  81. package/dist/server/index.mjs.map +1 -1
  82. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  83. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  84. package/dist/server/src/history/services/history.d.ts.map +1 -1
  85. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  86. package/dist/server/src/history/services/utils.d.ts +1 -0
  87. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  88. package/dist/server/src/policies/hasPermissions.d.ts.map +1 -1
  89. package/dist/server/src/services/permission-checker.d.ts.map +1 -1
  90. package/dist/shared/contracts/collection-types.d.ts +3 -1
  91. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  92. package/package.json +9 -9
  93. package/dist/_chunks/EditViewPage-B7VgwJaG.mjs.map +0 -1
  94. package/dist/_chunks/EditViewPage-BgjdnGz2.js.map +0 -1
  95. package/dist/_chunks/Field-CdK7ZLmv.js.map +0 -1
  96. package/dist/_chunks/Field-tHCw4lGA.mjs.map +0 -1
  97. package/dist/_chunks/Form-BJxdTv3Q.mjs.map +0 -1
  98. package/dist/_chunks/Form-C_0KTVvV.js.map +0 -1
  99. package/dist/_chunks/ListViewPage-B_GaWgRH.mjs.map +0 -1
  100. package/dist/_chunks/ListViewPage-SXIXm-RM.js.map +0 -1
  101. package/dist/_chunks/index-C9TJPyni.mjs.map +0 -1
  102. package/dist/_chunks/index-CdT0kHZ8.js.map +0 -1
  103. package/dist/_chunks/usePrev-B9w_-eYc.js.map +0 -1
  104. package/dist/_chunks/usePrev-DH6iah0A.mjs +0 -16
  105. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +0 -1
@@ -6,10 +6,10 @@ const React = require("react");
6
6
  const designSystem = require("@strapi/design-system");
7
7
  const reactIntl = require("react-intl");
8
8
  const reactRouterDom = require("react-router-dom");
9
- const styledComponents = require("styled-components");
10
9
  const yup = require("yup");
11
10
  const pipe = require("lodash/fp/pipe");
12
11
  const dateFns = require("date-fns");
12
+ const styledComponents = require("styled-components");
13
13
  const qs = require("qs");
14
14
  const toolkit = require("@reduxjs/toolkit");
15
15
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
@@ -179,7 +179,8 @@ const contentManagerApi = strapiAdmin.adminApi.enhanceEndpoints({
179
179
  "Document",
180
180
  "InitialData",
181
181
  "HistoryVersion",
182
- "Relations"
182
+ "Relations",
183
+ "UidAvailability"
183
184
  ]
184
185
  });
185
186
  const documentApi = contentManagerApi.injectEndpoints({
@@ -209,7 +210,10 @@ const documentApi = contentManagerApi.injectEndpoints({
209
210
  params
210
211
  }
211
212
  }),
212
- invalidatesTags: (_result, _error, { model }) => [{ type: "Document", id: `${model}_LIST` }]
213
+ invalidatesTags: (_result, _error, { model }) => [
214
+ { type: "Document", id: `${model}_LIST` },
215
+ { type: "UidAvailability", id: model }
216
+ ]
213
217
  }),
214
218
  /**
215
219
  * Creates a new collection-type document. This should ONLY be used for collection-types.
@@ -226,7 +230,8 @@ const documentApi = contentManagerApi.injectEndpoints({
226
230
  }),
227
231
  invalidatesTags: (result, _error, { model }) => [
228
232
  { type: "Document", id: `${model}_LIST` },
229
- "Relations"
233
+ "Relations",
234
+ { type: "UidAvailability", id: model }
230
235
  ]
231
236
  }),
232
237
  deleteDocument: builder.mutation({
@@ -267,7 +272,8 @@ const documentApi = contentManagerApi.injectEndpoints({
267
272
  id: collectionType !== SINGLE_TYPES ? `${model}_${documentId}` : model
268
273
  },
269
274
  { type: "Document", id: `${model}_LIST` },
270
- "Relations"
275
+ "Relations",
276
+ { type: "UidAvailability", id: model }
271
277
  ];
272
278
  }
273
279
  }),
@@ -392,7 +398,8 @@ const documentApi = contentManagerApi.injectEndpoints({
392
398
  type: "Document",
393
399
  id: collectionType !== SINGLE_TYPES ? `${model}_${documentId}` : model
394
400
  },
395
- "Relations"
401
+ "Relations",
402
+ { type: "UidAvailability", id: model }
396
403
  ];
397
404
  },
398
405
  async onQueryStarted({ data, ...patch }, { dispatch, queryFulfilled }) {
@@ -475,7 +482,7 @@ const buildValidParams = (query) => {
475
482
  const isBaseQueryError = (error) => {
476
483
  return error.name !== void 0;
477
484
  };
478
- const createYupSchema = (attributes = {}, components = {}) => {
485
+ const createYupSchema = (attributes = {}, components = {}, options = { status: null }) => {
479
486
  const createModelSchema = (attributes2) => yup__namespace.object().shape(
480
487
  Object.entries(attributes2).reduce((acc, [name, attribute]) => {
481
488
  if (DOCUMENT_META_FIELDS.includes(name)) {
@@ -488,7 +495,7 @@ const createYupSchema = (attributes = {}, components = {}) => {
488
495
  addMinValidation,
489
496
  addMaxValidation,
490
497
  addRegexValidation
491
- ].map((fn) => fn(attribute));
498
+ ].map((fn) => fn(attribute, options));
492
499
  const transformSchema = pipe__default.default(...validations);
493
500
  switch (attribute.type) {
494
501
  case "component": {
@@ -615,13 +622,7 @@ const createAttributeSchema = (attribute) => {
615
622
  return yup__namespace.mixed();
616
623
  }
617
624
  };
618
- const addRequiredValidation = (attribute) => (schema) => {
619
- if ((attribute.type === "component" && attribute.repeatable || attribute.type === "dynamiczone") && attribute.required && "min" in schema) {
620
- return schema.min(1, strapiAdmin.translatedErrors.required);
621
- }
622
- if (attribute.required && attribute.type !== "relation") {
623
- return schema.required(strapiAdmin.translatedErrors.required);
624
- }
625
+ const nullableSchema = (schema) => {
625
626
  return schema?.nullable ? schema.nullable() : (
626
627
  // In some cases '.nullable' will not be available on the schema.
627
628
  // e.g. when the schema has been built using yup.lazy (e.g. for relations).
@@ -629,7 +630,22 @@ const addRequiredValidation = (attribute) => (schema) => {
629
630
  schema
630
631
  );
631
632
  };
632
- const addMinLengthValidation = (attribute) => (schema) => {
633
+ const addRequiredValidation = (attribute, options) => (schema) => {
634
+ if (options.status === "draft") {
635
+ return nullableSchema(schema);
636
+ }
637
+ if ((attribute.type === "component" && attribute.repeatable || attribute.type === "dynamiczone") && attribute.required && "min" in schema) {
638
+ return schema.min(1, strapiAdmin.translatedErrors.required);
639
+ }
640
+ if (attribute.required && attribute.type !== "relation") {
641
+ return schema.required(strapiAdmin.translatedErrors.required);
642
+ }
643
+ return nullableSchema(schema);
644
+ };
645
+ const addMinLengthValidation = (attribute, options) => (schema) => {
646
+ if (options.status === "draft") {
647
+ return schema;
648
+ }
633
649
  if ("minLength" in attribute && attribute.minLength && Number.isInteger(attribute.minLength) && "min" in schema) {
634
650
  return schema.min(attribute.minLength, {
635
651
  ...strapiAdmin.translatedErrors.minLength,
@@ -651,11 +667,11 @@ const addMaxLengthValidation = (attribute) => (schema) => {
651
667
  }
652
668
  return schema;
653
669
  };
654
- const addMinValidation = (attribute) => (schema) => {
670
+ const addMinValidation = (attribute, options) => (schema) => {
655
671
  if ("min" in attribute) {
656
672
  const min = toInteger(attribute.min);
657
673
  if (attribute.type === "component" && attribute.repeatable || attribute.type === "dynamiczone") {
658
- if (!attribute.required && "test" in schema && min) {
674
+ if (options.status !== "draft" && !attribute.required && "test" in schema && min) {
659
675
  return schema.test(
660
676
  "custom-min",
661
677
  {
@@ -891,6 +907,7 @@ const useDocumentActions = () => {
891
907
  const { formatMessage } = reactIntl.useIntl();
892
908
  const { trackUsage } = strapiAdmin.useTracking();
893
909
  const { _unstableFormatAPIError: formatAPIError } = strapiAdmin.useAPIErrorHandler();
910
+ const navigate = reactRouterDom.useNavigate();
894
911
  const [deleteDocument] = useDeleteDocumentMutation();
895
912
  const _delete = React__namespace.useCallback(
896
913
  async ({ collectionType, model, documentId, params }, trackerProperty) => {
@@ -1244,7 +1261,7 @@ const useDocumentActions = () => {
1244
1261
  throw err;
1245
1262
  }
1246
1263
  },
1247
- [autoCloneDocument, formatAPIError, formatMessage, toggleNotification]
1264
+ [autoCloneDocument, formatMessage, toggleNotification]
1248
1265
  );
1249
1266
  const [cloneDocument] = useCloneDocumentMutation();
1250
1267
  const clone = React__namespace.useCallback(
@@ -1270,6 +1287,7 @@ const useDocumentActions = () => {
1270
1287
  defaultMessage: "Cloned document"
1271
1288
  })
1272
1289
  });
1290
+ navigate(`../../${res.data.data.documentId}`, { relative: "path" });
1273
1291
  return res.data;
1274
1292
  } catch (err) {
1275
1293
  toggleNotification({
@@ -1280,7 +1298,7 @@ const useDocumentActions = () => {
1280
1298
  throw err;
1281
1299
  }
1282
1300
  },
1283
- [cloneDocument, trackUsage, toggleNotification, formatMessage, formatAPIError]
1301
+ [cloneDocument, trackUsage, toggleNotification, formatMessage, formatAPIError, navigate]
1284
1302
  );
1285
1303
  const [getDoc] = useLazyGetDocumentQuery();
1286
1304
  const getDocument = React__namespace.useCallback(
@@ -1306,7 +1324,7 @@ const useDocumentActions = () => {
1306
1324
  };
1307
1325
  };
1308
1326
  const ProtectedHistoryPage = React.lazy(
1309
- () => Promise.resolve().then(() => require("./History-nuEzM5qm.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1327
+ () => Promise.resolve().then(() => require("./History-DXSbTWez.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1310
1328
  );
1311
1329
  const routes$1 = [
1312
1330
  {
@@ -1319,31 +1337,31 @@ const routes$1 = [
1319
1337
  }
1320
1338
  ];
1321
1339
  const ProtectedEditViewPage = React.lazy(
1322
- () => Promise.resolve().then(() => require("./EditViewPage-BgjdnGz2.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1340
+ () => Promise.resolve().then(() => require("./EditViewPage-CHgoNwlc.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1323
1341
  );
1324
1342
  const ProtectedListViewPage = React.lazy(
1325
- () => Promise.resolve().then(() => require("./ListViewPage-SXIXm-RM.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1343
+ () => Promise.resolve().then(() => require("./ListViewPage-DfuwH1tt.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1326
1344
  );
1327
1345
  const ProtectedListConfiguration = React.lazy(
1328
- () => Promise.resolve().then(() => require("./ListConfigurationPage-CnB86Psm.js")).then((mod) => ({
1346
+ () => Promise.resolve().then(() => require("./ListConfigurationPage-D5C7ACZ_.js")).then((mod) => ({
1329
1347
  default: mod.ProtectedListConfiguration
1330
1348
  }))
1331
1349
  );
1332
1350
  const ProtectedEditConfigurationPage = React.lazy(
1333
- () => Promise.resolve().then(() => require("./EditConfigurationPage-BQ17--5R.js")).then((mod) => ({
1351
+ () => Promise.resolve().then(() => require("./EditConfigurationPage-B2AA1kVF.js")).then((mod) => ({
1334
1352
  default: mod.ProtectedEditConfigurationPage
1335
1353
  }))
1336
1354
  );
1337
1355
  const ProtectedComponentConfigurationPage = React.lazy(
1338
- () => Promise.resolve().then(() => require("./ComponentConfigurationPage-KXSuLnQD.js")).then((mod) => ({
1356
+ () => Promise.resolve().then(() => require("./ComponentConfigurationPage-G4EIirP8.js")).then((mod) => ({
1339
1357
  default: mod.ProtectedComponentConfigurationPage
1340
1358
  }))
1341
1359
  );
1342
1360
  const NoPermissions = React.lazy(
1343
- () => Promise.resolve().then(() => require("./NoPermissionsPage-IGkId4C5.js")).then((mod) => ({ default: mod.NoPermissions }))
1361
+ () => Promise.resolve().then(() => require("./NoPermissionsPage-Bu4GWYb-.js")).then((mod) => ({ default: mod.NoPermissions }))
1344
1362
  );
1345
1363
  const NoContentType = React.lazy(
1346
- () => Promise.resolve().then(() => require("./NoContentTypePage-BzsQ3hLZ.js")).then((mod) => ({ default: mod.NoContentType }))
1364
+ () => Promise.resolve().then(() => require("./NoContentTypePage-BIxlkWWi.js")).then((mod) => ({ default: mod.NoContentType }))
1347
1365
  );
1348
1366
  const CollectionTypePages = () => {
1349
1367
  const { collectionType } = reactRouterDom.useParams();
@@ -1524,7 +1542,7 @@ const DocumentActionsMenu = ({
1524
1542
  };
1525
1543
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
1526
1544
  /* @__PURE__ */ jsxRuntime.jsxs(
1527
- StyledMoreButton,
1545
+ designSystem.Menu.Trigger,
1528
1546
  {
1529
1547
  disabled: isDisabled,
1530
1548
  size: "S",
@@ -1542,7 +1560,7 @@ const DocumentActionsMenu = ({
1542
1560
  ]
1543
1561
  }
1544
1562
  ),
1545
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Content, { top: "4px", maxHeight: void 0, popoverPlacement: "bottom-end", children: [
1563
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Content, { maxHeight: void 0, popoverPlacement: "bottom-end", children: [
1546
1564
  actions2.map((action) => {
1547
1565
  return /* @__PURE__ */ jsxRuntime.jsx(
1548
1566
  designSystem.Menu.Item,
@@ -1640,11 +1658,6 @@ const convertActionVariantToIconColor = (variant = "secondary") => {
1640
1658
  return "primary600";
1641
1659
  }
1642
1660
  };
1643
- const StyledMoreButton = styledComponents.styled(designSystem.Menu.Trigger)`
1644
- & > span {
1645
- display: flex;
1646
- }
1647
- `;
1648
1661
  const DocumentActionConfirmDialog = ({
1649
1662
  onClose,
1650
1663
  onCancel,
@@ -1671,11 +1684,11 @@ const DocumentActionConfirmDialog = ({
1671
1684
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Header, { children: title }),
1672
1685
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Body, { children: content }),
1673
1686
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Footer, { children: [
1674
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Cancel, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", children: formatMessage({
1687
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Cancel, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", fullWidth: true, children: formatMessage({
1675
1688
  id: "app.components.Button.cancel",
1676
1689
  defaultMessage: "Cancel"
1677
1690
  }) }) }),
1678
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleConfirm, variant, children: formatMessage({
1691
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleConfirm, variant, fullWidth: true, children: formatMessage({
1679
1692
  id: "app.components.Button.confirm",
1680
1693
  defaultMessage: "Confirm"
1681
1694
  }) })
@@ -1714,12 +1727,10 @@ const PublishAction$1 = ({
1714
1727
  const navigate = reactRouterDom.useNavigate();
1715
1728
  const { toggleNotification } = strapiAdmin.useNotification();
1716
1729
  const { _unstableFormatValidationErrors: formatValidationErrors } = strapiAdmin.useAPIErrorHandler();
1730
+ const isListView = reactRouterDom.useMatch(LIST_PATH) !== null;
1717
1731
  const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
1718
1732
  const { formatMessage } = reactIntl.useIntl();
1719
- const { canPublish, canCreate, canUpdate } = useDocumentRBAC(
1720
- "PublishAction",
1721
- ({ canPublish: canPublish2, canCreate: canCreate2, canUpdate: canUpdate2 }) => ({ canPublish: canPublish2, canCreate: canCreate2, canUpdate: canUpdate2 })
1722
- );
1733
+ const canPublish = useDocumentRBAC("PublishAction", ({ canPublish: canPublish2 }) => canPublish2);
1723
1734
  const { publish } = useDocumentActions();
1724
1735
  const [
1725
1736
  countDraftRelations,
@@ -1771,24 +1782,25 @@ const PublishAction$1 = ({
1771
1782
  }
1772
1783
  }, [documentId, modified, formValues, setLocalCountOfDraftRelations]);
1773
1784
  React__namespace.useEffect(() => {
1774
- if (documentId) {
1775
- const fetchDraftRelationsCount = async () => {
1776
- const { data, error } = await countDraftRelations({
1777
- collectionType,
1778
- model,
1779
- documentId,
1780
- params
1781
- });
1782
- if (error) {
1783
- throw error;
1784
- }
1785
- if (data) {
1786
- setServerCountOfDraftRelations(data.data);
1787
- }
1788
- };
1789
- fetchDraftRelationsCount();
1785
+ if (!document || !document.documentId || isListView) {
1786
+ return;
1790
1787
  }
1791
- }, [documentId, countDraftRelations, collectionType, model, params]);
1788
+ const fetchDraftRelationsCount = async () => {
1789
+ const { data, error } = await countDraftRelations({
1790
+ collectionType,
1791
+ model,
1792
+ documentId,
1793
+ params
1794
+ });
1795
+ if (error) {
1796
+ throw error;
1797
+ }
1798
+ if (data) {
1799
+ setServerCountOfDraftRelations(data.data);
1800
+ }
1801
+ };
1802
+ fetchDraftRelationsCount();
1803
+ }, [isListView, document, documentId, countDraftRelations, collectionType, model, params]);
1792
1804
  const isDocumentPublished = (document?.[PUBLISHED_AT_ATTRIBUTE_NAME] || meta?.availableStatus.some((doc) => doc[PUBLISHED_AT_ATTRIBUTE_NAME] !== null)) && document?.status !== "modified";
1793
1805
  if (!schema?.options?.draftAndPublish) {
1794
1806
  return null;
@@ -1829,7 +1841,8 @@ const PublishAction$1 = ({
1829
1841
  }
1830
1842
  };
1831
1843
  const totalDraftRelations = localCountOfDraftRelations + serverCountOfDraftRelations;
1832
- const hasDraftRelations = totalDraftRelations > 0;
1844
+ const enableDraftRelationsCount = false;
1845
+ const hasDraftRelations = enableDraftRelationsCount;
1833
1846
  return {
1834
1847
  /**
1835
1848
  * Disabled when:
@@ -1846,9 +1859,6 @@ const PublishAction$1 = ({
1846
1859
  defaultMessage: "Publish"
1847
1860
  }),
1848
1861
  onClick: async () => {
1849
- if (hasDraftRelations) {
1850
- return;
1851
- }
1852
1862
  await performPublish();
1853
1863
  },
1854
1864
  dialog: hasDraftRelations ? {
@@ -1887,10 +1897,6 @@ const UpdateAction = ({
1887
1897
  const cloneMatch = reactRouterDom.useMatch(CLONE_PATH);
1888
1898
  const isCloning = cloneMatch !== null;
1889
1899
  const { formatMessage } = reactIntl.useIntl();
1890
- useDocumentRBAC("UpdateAction", ({ canCreate: canCreate2, canUpdate: canUpdate2 }) => ({
1891
- canCreate: canCreate2,
1892
- canUpdate: canUpdate2
1893
- }));
1894
1900
  const { create, update, clone } = useDocumentActions();
1895
1901
  const [{ query, rawQuery }] = strapiAdmin.useQueryParams();
1896
1902
  const params = React__namespace.useMemo(() => buildValidParams(query), [query]);
@@ -1916,16 +1922,18 @@ const UpdateAction = ({
1916
1922
  onClick: async () => {
1917
1923
  setSubmitting(true);
1918
1924
  try {
1919
- const { errors } = await validate();
1920
- if (errors) {
1921
- toggleNotification({
1922
- type: "danger",
1923
- message: formatMessage({
1924
- id: "content-manager.validation.error",
1925
- defaultMessage: "There are validation errors in your document. Please fix them before saving."
1926
- })
1927
- });
1928
- return;
1925
+ if (activeTab !== "draft") {
1926
+ const { errors } = await validate();
1927
+ if (errors) {
1928
+ toggleNotification({
1929
+ type: "danger",
1930
+ message: formatMessage({
1931
+ id: "content-manager.validation.error",
1932
+ defaultMessage: "There are validation errors in your document. Please fix them before saving."
1933
+ })
1934
+ });
1935
+ return;
1936
+ }
1929
1937
  }
1930
1938
  if (isCloning) {
1931
1939
  const res = await clone(
@@ -2021,7 +2029,7 @@ const UnpublishAction$1 = ({
2021
2029
  id: "app.utils.unpublish",
2022
2030
  defaultMessage: "Unpublish"
2023
2031
  }),
2024
- icon: /* @__PURE__ */ jsxRuntime.jsx(StyledCrossCircle, {}),
2032
+ icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Cross, {}),
2025
2033
  onClick: async () => {
2026
2034
  if (!documentId && collectionType !== SINGLE_TYPES || isDocumentModified) {
2027
2035
  if (!documentId) {
@@ -2133,7 +2141,7 @@ const DiscardAction = ({
2133
2141
  id: "content-manager.actions.discard.label",
2134
2142
  defaultMessage: "Discard changes"
2135
2143
  }),
2136
- icon: /* @__PURE__ */ jsxRuntime.jsx(StyledCrossCircle, {}),
2144
+ icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Cross, {}),
2137
2145
  position: ["panel", "table-row"],
2138
2146
  variant: "danger",
2139
2147
  dialog: {
@@ -2161,11 +2169,6 @@ const DiscardAction = ({
2161
2169
  };
2162
2170
  };
2163
2171
  DiscardAction.type = "discard";
2164
- const StyledCrossCircle = styledComponents.styled(Icons.CrossCircle)`
2165
- path {
2166
- fill: currentColor;
2167
- }
2168
- `;
2169
2172
  const DEFAULT_ACTIONS = [PublishAction$1, UpdateAction, UnpublishAction$1, DiscardAction];
2170
2173
  const intervals = ["years", "months", "days", "hours", "minutes", "seconds"];
2171
2174
  const RelativeTime = React__namespace.forwardRef(
@@ -2213,7 +2216,7 @@ const getDisplayName = ({
2213
2216
  };
2214
2217
  const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
2215
2218
  const DocumentStatus = ({ status = "draft", ...restProps }) => {
2216
- const statusVariant = status === "draft" ? "primary" : status === "published" ? "success" : "alternative";
2219
+ const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
2217
2220
  return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, showBullet: false, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: capitalise(status) }) });
2218
2221
  };
2219
2222
  const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
@@ -2396,8 +2399,22 @@ const Information = ({ activeTab }) => {
2396
2399
  );
2397
2400
  };
2398
2401
  const HeaderActions = ({ actions: actions2 }) => {
2399
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { children: actions2.map((action) => {
2400
- if ("options" in action) {
2402
+ const [dialogId, setDialogId] = React__namespace.useState(null);
2403
+ const handleClick = (action) => async (e) => {
2404
+ if (!("options" in action)) {
2405
+ const { onClick = () => false, dialog, id } = action;
2406
+ const muteDialog = await onClick(e);
2407
+ if (dialog && !muteDialog) {
2408
+ e.preventDefault();
2409
+ setDialogId(id);
2410
+ }
2411
+ }
2412
+ };
2413
+ const handleClose = () => {
2414
+ setDialogId(null);
2415
+ };
2416
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 1, children: actions2.map((action) => {
2417
+ if (action.options) {
2401
2418
  return /* @__PURE__ */ jsxRuntime.jsx(
2402
2419
  designSystem.SingleSelect,
2403
2420
  {
@@ -2411,10 +2428,49 @@ const HeaderActions = ({ actions: actions2 }) => {
2411
2428
  action.id
2412
2429
  );
2413
2430
  } else {
2414
- return null;
2431
+ if (action.type === "icon") {
2432
+ return /* @__PURE__ */ jsxRuntime.jsxs(React__namespace.Fragment, { children: [
2433
+ /* @__PURE__ */ jsxRuntime.jsx(
2434
+ designSystem.IconButton,
2435
+ {
2436
+ disabled: action.disabled,
2437
+ label: action.label,
2438
+ size: "S",
2439
+ onClick: handleClick(action),
2440
+ children: action.icon
2441
+ }
2442
+ ),
2443
+ action.dialog ? /* @__PURE__ */ jsxRuntime.jsx(
2444
+ HeaderActionDialog,
2445
+ {
2446
+ ...action.dialog,
2447
+ isOpen: dialogId === action.id,
2448
+ onClose: handleClose
2449
+ }
2450
+ ) : null
2451
+ ] }, action.id);
2452
+ }
2415
2453
  }
2416
2454
  }) });
2417
2455
  };
2456
+ const HeaderActionDialog = ({
2457
+ onClose,
2458
+ onCancel,
2459
+ title,
2460
+ content: Content,
2461
+ isOpen
2462
+ }) => {
2463
+ const handleClose = async () => {
2464
+ if (onCancel) {
2465
+ await onCancel();
2466
+ }
2467
+ onClose();
2468
+ };
2469
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Content, { children: [
2470
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Header, { children: title }),
2471
+ typeof Content === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose }) : Content
2472
+ ] }) });
2473
+ };
2418
2474
  const ConfigureTheViewAction = ({ collectionType, model }) => {
2419
2475
  const navigate = reactRouterDom.useNavigate();
2420
2476
  const { formatMessage } = reactIntl.useIntl();
@@ -2550,7 +2606,7 @@ const ActionsPanel = () => {
2550
2606
  return {
2551
2607
  title: formatMessage({
2552
2608
  id: "content-manager.containers.edit.panels.default.title",
2553
- defaultMessage: "Document"
2609
+ defaultMessage: "Entry"
2554
2610
  }),
2555
2611
  content: /* @__PURE__ */ jsxRuntime.jsx(ActionsPanelContent, {})
2556
2612
  };
@@ -2794,7 +2850,8 @@ const formatEditLayout = (data, {
2794
2850
  layout: convertEditLayoutToFieldLayouts(
2795
2851
  configuration.layouts.edit,
2796
2852
  components[uid].attributes,
2797
- configuration.metadatas
2853
+ configuration.metadatas,
2854
+ { configurations: data.components, schemas: components }
2798
2855
  ),
2799
2856
  settings: {
2800
2857
  ...configuration.settings,
@@ -2951,6 +3008,7 @@ const ConfirmDialogPublishAll = ({
2951
3008
  const { _unstableFormatAPIError: formatAPIError } = strapiAdmin.useAPIErrorHandler(getTranslation);
2952
3009
  const { model, schema } = useDoc();
2953
3010
  const [{ query }] = strapiAdmin.useQueryParams();
3011
+ const enableDraftRelationsCount = false;
2954
3012
  const {
2955
3013
  data: countDraftRelations = 0,
2956
3014
  isLoading,
@@ -2962,7 +3020,7 @@ const ConfirmDialogPublishAll = ({
2962
3020
  locale: query?.plugins?.i18n?.locale
2963
3021
  },
2964
3022
  {
2965
- skip: selectedEntries.length === 0
3023
+ skip: !enableDraftRelationsCount
2966
3024
  }
2967
3025
  );
2968
3026
  React__namespace.useEffect(() => {
@@ -3147,7 +3205,7 @@ const SelectedEntriesTableContent = ({
3147
3205
  status: row.status
3148
3206
  }
3149
3207
  ) }),
3150
- /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Table.Cell, { children: /* @__PURE__ */ jsxRuntime.jsx(
3208
+ /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Table.Cell, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { children: /* @__PURE__ */ jsxRuntime.jsx(
3151
3209
  designSystem.IconButton,
3152
3210
  {
3153
3211
  tag: reactRouterDom.Link,
@@ -3170,9 +3228,10 @@ const SelectedEntriesTableContent = ({
3170
3228
  ),
3171
3229
  target: "_blank",
3172
3230
  marginLeft: "auto",
3173
- children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Pencil, {})
3231
+ variant: "ghost",
3232
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Pencil, { width: "1.6rem", height: "1.6rem" })
3174
3233
  }
3175
- ) })
3234
+ ) }) })
3176
3235
  ] }, row.id)) })
3177
3236
  ] });
3178
3237
  };
@@ -3209,7 +3268,13 @@ const SelectedEntriesModalContent = ({
3209
3268
  );
3210
3269
  const { rows, validationErrors } = React__namespace.useMemo(() => {
3211
3270
  if (data.length > 0 && schema) {
3212
- const validate = createYupSchema(schema.attributes, components);
3271
+ const validate = createYupSchema(
3272
+ schema.attributes,
3273
+ components,
3274
+ // Since this is the "Publish" action, the validation
3275
+ // schema must enforce the rules for published entities
3276
+ { status: "published" }
3277
+ );
3213
3278
  const validationErrors2 = {};
3214
3279
  const rows2 = data.map((entry) => {
3215
3280
  try {
@@ -3559,7 +3624,7 @@ const TableActions = ({ document }) => {
3559
3624
  strapiAdmin.DescriptionComponentRenderer,
3560
3625
  {
3561
3626
  props,
3562
- descriptions: plugins["content-manager"].apis.getDocumentActions(),
3627
+ descriptions: plugins["content-manager"].apis.getDocumentActions().filter((action) => action.name !== "PublishAction"),
3563
3628
  children: (actions2) => {
3564
3629
  const tableRowActions = actions2.filter((action) => {
3565
3630
  const positions = Array.isArray(action.position) ? action.position : [action.position];
@@ -3670,7 +3735,7 @@ const CloneAction = ({ model, documentId }) => {
3670
3735
  }),
3671
3736
  content: /* @__PURE__ */ jsxRuntime.jsx(AutoCloneFailureModalBody, { prohibitedFields }),
3672
3737
  footer: ({ onClose }) => {
3673
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", children: [
3738
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Footer, { children: [
3674
3739
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: onClose, variant: "tertiary", children: formatMessage({
3675
3740
  id: "cancel",
3676
3741
  defaultMessage: "Cancel"
@@ -3901,7 +3966,7 @@ const index = {
3901
3966
  app.router.addRoute({
3902
3967
  path: "content-manager/*",
3903
3968
  lazy: async () => {
3904
- const { Layout } = await Promise.resolve().then(() => require("./layout-C6dxWYT7.js"));
3969
+ const { Layout } = await Promise.resolve().then(() => require("./layout-bE-WUnQ0.js"));
3905
3970
  return {
3906
3971
  Component: Layout
3907
3972
  };
@@ -3918,7 +3983,7 @@ const index = {
3918
3983
  async registerTrads({ locales }) {
3919
3984
  const importedTrads = await Promise.all(
3920
3985
  locales.map((locale) => {
3921
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-uOUIxfcQ.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-EUonQTon.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B7kGGg3E.js")), "./translations/gu.json": () => Promise.resolve().then(() => require("./gu-BRmF601H.js")), "./translations/hi.json": () => Promise.resolve().then(() => require("./hi-CCJBptSq.js")), "./translations/hu.json": () => Promise.resolve().then(() => require("./hu-sNV_yLYy.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-B5Ser98A.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-DkBIs7vD.js")), "./translations/ja.json": () => Promise.resolve().then(() => require("./ja-CcFe8diO.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-woFZPmLk.js")), "./translations/ml.json": () => Promise.resolve().then(() => require("./ml-C2W8N8k1.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-BuFotyP_.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-bbEOHChV.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-uzwG-hk7.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-BiOz37D9.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-CeXQuq50.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BT3ybNny.js")), "./translations/sa.json": () => Promise.resolve().then(() => require("./sa-CcvkYInH.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-CvY09Xjv.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-MYDuzgvT.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-D9_GfAjc.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-D9UH-O_R.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-C8EiqJY7.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-CJlYDheJ.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-9kOncHGw.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CQQfszqR.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
3986
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-BVzUkPxZ.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-EUonQTon.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B7kGGg3E.js")), "./translations/gu.json": () => Promise.resolve().then(() => require("./gu-BRmF601H.js")), "./translations/hi.json": () => Promise.resolve().then(() => require("./hi-CCJBptSq.js")), "./translations/hu.json": () => Promise.resolve().then(() => require("./hu-sNV_yLYy.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-B5Ser98A.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-DkBIs7vD.js")), "./translations/ja.json": () => Promise.resolve().then(() => require("./ja-CcFe8diO.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-woFZPmLk.js")), "./translations/ml.json": () => Promise.resolve().then(() => require("./ml-C2W8N8k1.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-BuFotyP_.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-bbEOHChV.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-uzwG-hk7.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-BiOz37D9.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-CeXQuq50.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BT3ybNny.js")), "./translations/sa.json": () => Promise.resolve().then(() => require("./sa-CcvkYInH.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-CvY09Xjv.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-MYDuzgvT.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-D9_GfAjc.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-D9UH-O_R.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-C8EiqJY7.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-CJlYDheJ.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-9kOncHGw.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CQQfszqR.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
3922
3987
  return {
3923
3988
  data: prefixPluginTranslations(data, PLUGIN_ID),
3924
3989
  locale
@@ -3936,6 +4001,7 @@ const index = {
3936
4001
  };
3937
4002
  exports.ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD = ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD;
3938
4003
  exports.BulkActionsRenderer = BulkActionsRenderer;
4004
+ exports.CLONE_PATH = CLONE_PATH;
3939
4005
  exports.COLLECTION_TYPES = COLLECTION_TYPES;
3940
4006
  exports.CREATOR_FIELDS = CREATOR_FIELDS;
3941
4007
  exports.DEFAULT_SETTINGS = DEFAULT_SETTINGS;
@@ -3975,4 +4041,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
3975
4041
  exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
3976
4042
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
3977
4043
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
3978
- //# sourceMappingURL=index-CdT0kHZ8.js.map
4044
+ //# sourceMappingURL=index-DXiHxy70.js.map