@strapi/content-manager 0.0.0-experimental.c592deb623aed3f74ef7fdacfad9757ed59d34f7 → 0.0.0-experimental.d3243594aea3e6fa0ef08580192bb0df29c9162d

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 (82) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-7-qB29e7.mjs → ComponentConfigurationPage-DfFSZQxe.mjs} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-7-qB29e7.mjs.map → ComponentConfigurationPage-DfFSZQxe.mjs.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-DP7AC0UU.js → ComponentConfigurationPage-FqfsxQ1j.js} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-DP7AC0UU.js.map → ComponentConfigurationPage-FqfsxQ1j.js.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-DITVliEI.js → EditConfigurationPage-Cn0e8t3I.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-DITVliEI.js.map → EditConfigurationPage-Cn0e8t3I.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-CI4XoymK.mjs → EditConfigurationPage-DdPNAbl3.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-CI4XoymK.mjs.map → EditConfigurationPage-DdPNAbl3.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-Dzpno8xI.mjs → EditViewPage-B82x_x1b.mjs} +10 -4
  10. package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-CUS2EAhB.js → EditViewPage-DlxEHhUt.js} +10 -4
  12. package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +1 -0
  13. package/dist/_chunks/{Field-CtUU1Fg8.js → Field-COL25JiC.js} +41 -9
  14. package/dist/_chunks/Field-COL25JiC.js.map +1 -0
  15. package/dist/_chunks/{Field-B_jG_EV9.mjs → Field-DufHXW17.mjs} +41 -9
  16. package/dist/_chunks/Field-DufHXW17.mjs.map +1 -0
  17. package/dist/_chunks/{Form-DTqO0ymI.js → Form-BssUwrTO.js} +3 -3
  18. package/dist/_chunks/Form-BssUwrTO.js.map +1 -0
  19. package/dist/_chunks/{Form-BXHao2mZ.mjs → Form-u_kAOhwB.mjs} +3 -3
  20. package/dist/_chunks/Form-u_kAOhwB.mjs.map +1 -0
  21. package/dist/_chunks/{History-C_uSGzO5.js → History-C9t9UqpO.js} +23 -10
  22. package/dist/_chunks/History-C9t9UqpO.js.map +1 -0
  23. package/dist/_chunks/{History-2Ah2CQ4T.mjs → History-DRwA3oMM.mjs} +24 -11
  24. package/dist/_chunks/History-DRwA3oMM.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-nyuP7OSy.js → ListConfigurationPage-BXYPohh-.js} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-nyuP7OSy.js.map → ListConfigurationPage-BXYPohh-.js.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-BjSJlaoC.mjs → ListConfigurationPage-BxfQJzPk.mjs} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-BjSJlaoC.mjs.map → ListConfigurationPage-BxfQJzPk.mjs.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-B75x3nz2.mjs → ListViewPage-CELx2ysp.mjs} +3 -3
  30. package/dist/_chunks/{ListViewPage-B75x3nz2.mjs.map → ListViewPage-CELx2ysp.mjs.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-DHgHD8Xg.js → ListViewPage-D2VD8Szg.js} +3 -3
  32. package/dist/_chunks/{ListViewPage-DHgHD8Xg.js.map → ListViewPage-D2VD8Szg.js.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-CDUKdZ7d.js → NoContentTypePage-BV9IjJSM.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-CDUKdZ7d.js.map → NoContentTypePage-BV9IjJSM.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DUacQSyF.mjs → NoContentTypePage-DtJ9jcfk.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DUacQSyF.mjs.map → NoContentTypePage-DtJ9jcfk.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-SFllMekk.mjs → NoPermissionsPage-DWleVYK7.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-SFllMekk.mjs.map → NoPermissionsPage-DWleVYK7.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-zwIZydDI.js → NoPermissionsPage-Dp8NpF9I.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-zwIZydDI.js.map → NoPermissionsPage-Dp8NpF9I.js.map} +1 -1
  41. package/dist/_chunks/{Relations-D2NRW8fC.mjs → Relations-BTcf5xaw.mjs} +25 -20
  42. package/dist/_chunks/Relations-BTcf5xaw.mjs.map +1 -0
  43. package/dist/_chunks/{Relations-NFLaRNPr.js → Relations-DR7EUgyC.js} +25 -20
  44. package/dist/_chunks/Relations-DR7EUgyC.js.map +1 -0
  45. package/dist/_chunks/{en-BlhnxQfj.js → en-Bm0D0IWz.js} +7 -7
  46. package/dist/_chunks/{en-BlhnxQfj.js.map → en-Bm0D0IWz.js.map} +1 -1
  47. package/dist/_chunks/{en-C8YBvRrK.mjs → en-DKV44jRb.mjs} +7 -7
  48. package/dist/_chunks/{en-C8YBvRrK.mjs.map → en-DKV44jRb.mjs.map} +1 -1
  49. package/dist/_chunks/{index-ovJRE1FM.js → index-BdMf2lfT.js} +84 -72
  50. package/dist/_chunks/index-BdMf2lfT.js.map +1 -0
  51. package/dist/_chunks/{index-C9HxCo5R.mjs → index-wnqzm4Q8.mjs} +85 -73
  52. package/dist/_chunks/index-wnqzm4Q8.mjs.map +1 -0
  53. package/dist/_chunks/{layout-DaUjDiWQ.mjs → layout-2CfjL0T9.mjs} +3 -3
  54. package/dist/_chunks/{layout-DaUjDiWQ.mjs.map → layout-2CfjL0T9.mjs.map} +1 -1
  55. package/dist/_chunks/{layout-UNWstw_s.js → layout-B2MyZU-_.js} +3 -3
  56. package/dist/_chunks/{layout-UNWstw_s.js.map → layout-B2MyZU-_.js.map} +1 -1
  57. package/dist/_chunks/{relations-NN3coOG5.js → relations-BH7JJGGe.js} +2 -2
  58. package/dist/_chunks/{relations-NN3coOG5.js.map → relations-BH7JJGGe.js.map} +1 -1
  59. package/dist/_chunks/{relations-D8iFAeRu.mjs → relations-C0w0GcXi.mjs} +2 -2
  60. package/dist/_chunks/{relations-D8iFAeRu.mjs.map → relations-C0w0GcXi.mjs.map} +1 -1
  61. package/dist/admin/index.js +1 -1
  62. package/dist/admin/index.mjs +1 -1
  63. package/dist/server/index.js +17 -10
  64. package/dist/server/index.js.map +1 -1
  65. package/dist/server/index.mjs +17 -10
  66. package/dist/server/index.mjs.map +1 -1
  67. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  68. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  69. package/dist/server/src/history/services/history.d.ts.map +1 -1
  70. package/package.json +7 -7
  71. package/dist/_chunks/EditViewPage-CUS2EAhB.js.map +0 -1
  72. package/dist/_chunks/EditViewPage-Dzpno8xI.mjs.map +0 -1
  73. package/dist/_chunks/Field-B_jG_EV9.mjs.map +0 -1
  74. package/dist/_chunks/Field-CtUU1Fg8.js.map +0 -1
  75. package/dist/_chunks/Form-BXHao2mZ.mjs.map +0 -1
  76. package/dist/_chunks/Form-DTqO0ymI.js.map +0 -1
  77. package/dist/_chunks/History-2Ah2CQ4T.mjs.map +0 -1
  78. package/dist/_chunks/History-C_uSGzO5.js.map +0 -1
  79. package/dist/_chunks/Relations-D2NRW8fC.mjs.map +0 -1
  80. package/dist/_chunks/Relations-NFLaRNPr.js.map +0 -1
  81. package/dist/_chunks/index-C9HxCo5R.mjs.map +0 -1
  82. package/dist/_chunks/index-ovJRE1FM.js.map +0 -1
@@ -121,6 +121,7 @@ const DocumentRBAC = ({ children, permissions }) => {
121
121
  if (!slug) {
122
122
  throw new Error("Cannot find the slug param in the URL");
123
123
  }
124
+ const [{ rawQuery }] = strapiAdmin.useQueryParams();
124
125
  const userPermissions = strapiAdmin.useAuth("DocumentRBAC", (state) => state.permissions);
125
126
  const contentTypePermissions = React__namespace.useMemo(() => {
126
127
  const contentTypePermissions2 = userPermissions.filter(
@@ -131,7 +132,14 @@ const DocumentRBAC = ({ children, permissions }) => {
131
132
  return { ...acc, [action]: [permission] };
132
133
  }, {});
133
134
  }, [slug, userPermissions]);
134
- const { isLoading, allowedActions } = strapiAdmin.useRBAC(contentTypePermissions, permissions ?? void 0);
135
+ const { isLoading, allowedActions } = strapiAdmin.useRBAC(
136
+ contentTypePermissions,
137
+ permissions ?? void 0,
138
+ // TODO: useRBAC context should be typed and built differently
139
+ // We are passing raw query as context to the hook so that it can
140
+ // rely on the locale provided from DocumentRBAC for its permission calculations.
141
+ rawQuery
142
+ );
135
143
  const canCreateFields = !isLoading && allowedActions.canCreate ? extractAndDedupeFields(contentTypePermissions.create) : [];
136
144
  const canReadFields = !isLoading && allowedActions.canRead ? extractAndDedupeFields(contentTypePermissions.read) : [];
137
145
  const canUpdateFields = !isLoading && allowedActions.canUpdate ? extractAndDedupeFields(contentTypePermissions.update) : [];
@@ -482,6 +490,24 @@ const buildValidParams = (query) => {
482
490
  const isBaseQueryError = (error) => {
483
491
  return error.name !== void 0;
484
492
  };
493
+ const arrayValidator = (attribute, options) => ({
494
+ message: strapiAdmin.translatedErrors.required,
495
+ test(value) {
496
+ if (options.status === "draft") {
497
+ return true;
498
+ }
499
+ if (!attribute.required) {
500
+ return true;
501
+ }
502
+ if (!value) {
503
+ return false;
504
+ }
505
+ if (Array.isArray(value) && value.length === 0) {
506
+ return false;
507
+ }
508
+ return true;
509
+ }
510
+ });
485
511
  const createYupSchema = (attributes = {}, components = {}, options = { status: null }) => {
486
512
  const createModelSchema = (attributes2) => yup__namespace.object().shape(
487
513
  Object.entries(attributes2).reduce((acc, [name, attribute]) => {
@@ -489,6 +515,7 @@ const createYupSchema = (attributes = {}, components = {}, options = { status: n
489
515
  return acc;
490
516
  }
491
517
  const validations = [
518
+ addNullableValidation,
492
519
  addRequiredValidation,
493
520
  addMinLengthValidation,
494
521
  addMaxLengthValidation,
@@ -505,12 +532,12 @@ const createYupSchema = (attributes = {}, components = {}, options = { status: n
505
532
  ...acc,
506
533
  [name]: transformSchema(
507
534
  yup__namespace.array().of(createModelSchema(attributes3).nullable(false))
508
- )
535
+ ).test(arrayValidator(attribute, options))
509
536
  };
510
537
  } else {
511
538
  return {
512
539
  ...acc,
513
- [name]: transformSchema(createModelSchema(attributes3))
540
+ [name]: transformSchema(createModelSchema(attributes3).nullable())
514
541
  };
515
542
  }
516
543
  }
@@ -532,7 +559,7 @@ const createYupSchema = (attributes = {}, components = {}, options = { status: n
532
559
  }
533
560
  )
534
561
  )
535
- )
562
+ ).test(arrayValidator(attribute, options))
536
563
  };
537
564
  case "relation":
538
565
  return {
@@ -630,17 +657,17 @@ const nullableSchema = (schema) => {
630
657
  schema
631
658
  );
632
659
  };
660
+ const addNullableValidation = () => (schema) => {
661
+ return nullableSchema(schema);
662
+ };
633
663
  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);
664
+ if (options.status === "draft" || !attribute.required) {
665
+ return schema;
639
666
  }
640
- if (attribute.required && attribute.type !== "relation") {
667
+ if (attribute.required && "required" in schema) {
641
668
  return schema.required(strapiAdmin.translatedErrors.required);
642
669
  }
643
- return nullableSchema(schema);
670
+ return schema;
644
671
  };
645
672
  const addMinLengthValidation = (attribute, options) => (schema) => {
646
673
  if (options.status === "draft") {
@@ -668,31 +695,12 @@ const addMaxLengthValidation = (attribute) => (schema) => {
668
695
  return schema;
669
696
  };
670
697
  const addMinValidation = (attribute, options) => (schema) => {
671
- if ("min" in attribute) {
698
+ if (options.status === "draft") {
699
+ return schema;
700
+ }
701
+ if ("min" in attribute && "min" in schema) {
672
702
  const min = toInteger(attribute.min);
673
- if (attribute.type === "component" && attribute.repeatable || attribute.type === "dynamiczone") {
674
- if (options.status !== "draft" && !attribute.required && "test" in schema && min) {
675
- return schema.test(
676
- "custom-min",
677
- {
678
- ...strapiAdmin.translatedErrors.min,
679
- values: {
680
- min: attribute.min
681
- }
682
- },
683
- (value) => {
684
- if (!value) {
685
- return true;
686
- }
687
- if (Array.isArray(value) && value.length === 0) {
688
- return true;
689
- }
690
- return value.length >= min;
691
- }
692
- );
693
- }
694
- }
695
- if ("min" in schema && min) {
703
+ if (min) {
696
704
  return schema.min(min, {
697
705
  ...strapiAdmin.translatedErrors.min,
698
706
  values: {
@@ -1187,16 +1195,18 @@ const useDoc = () => {
1187
1195
  if (!slug) {
1188
1196
  throw new Error("Could not find model in url params");
1189
1197
  }
1198
+ const document = useDocument(
1199
+ { documentId: origin || id, model: slug, collectionType, params },
1200
+ {
1201
+ skip: id === "create" || !origin && !id && collectionType !== SINGLE_TYPES
1202
+ }
1203
+ );
1204
+ const returnId = origin || id === "create" ? void 0 : id;
1190
1205
  return {
1191
1206
  collectionType,
1192
1207
  model: slug,
1193
- id: origin || id === "create" ? void 0 : id,
1194
- ...useDocument(
1195
- { documentId: origin || id, model: slug, collectionType, params },
1196
- {
1197
- skip: id === "create" || !origin && !id && collectionType !== SINGLE_TYPES
1198
- }
1199
- )
1208
+ id: returnId,
1209
+ ...document
1200
1210
  };
1201
1211
  };
1202
1212
  const useContentManagerContext = () => {
@@ -1676,7 +1686,7 @@ const useDocumentActions = () => {
1676
1686
  };
1677
1687
  };
1678
1688
  const ProtectedHistoryPage = React.lazy(
1679
- () => Promise.resolve().then(() => require("./History-C_uSGzO5.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1689
+ () => Promise.resolve().then(() => require("./History-C9t9UqpO.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1680
1690
  );
1681
1691
  const routes$1 = [
1682
1692
  {
@@ -1689,31 +1699,31 @@ const routes$1 = [
1689
1699
  }
1690
1700
  ];
1691
1701
  const ProtectedEditViewPage = React.lazy(
1692
- () => Promise.resolve().then(() => require("./EditViewPage-CUS2EAhB.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1702
+ () => Promise.resolve().then(() => require("./EditViewPage-DlxEHhUt.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1693
1703
  );
1694
1704
  const ProtectedListViewPage = React.lazy(
1695
- () => Promise.resolve().then(() => require("./ListViewPage-DHgHD8Xg.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1705
+ () => Promise.resolve().then(() => require("./ListViewPage-D2VD8Szg.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1696
1706
  );
1697
1707
  const ProtectedListConfiguration = React.lazy(
1698
- () => Promise.resolve().then(() => require("./ListConfigurationPage-nyuP7OSy.js")).then((mod) => ({
1708
+ () => Promise.resolve().then(() => require("./ListConfigurationPage-BXYPohh-.js")).then((mod) => ({
1699
1709
  default: mod.ProtectedListConfiguration
1700
1710
  }))
1701
1711
  );
1702
1712
  const ProtectedEditConfigurationPage = React.lazy(
1703
- () => Promise.resolve().then(() => require("./EditConfigurationPage-DITVliEI.js")).then((mod) => ({
1713
+ () => Promise.resolve().then(() => require("./EditConfigurationPage-Cn0e8t3I.js")).then((mod) => ({
1704
1714
  default: mod.ProtectedEditConfigurationPage
1705
1715
  }))
1706
1716
  );
1707
1717
  const ProtectedComponentConfigurationPage = React.lazy(
1708
- () => Promise.resolve().then(() => require("./ComponentConfigurationPage-DP7AC0UU.js")).then((mod) => ({
1718
+ () => Promise.resolve().then(() => require("./ComponentConfigurationPage-FqfsxQ1j.js")).then((mod) => ({
1709
1719
  default: mod.ProtectedComponentConfigurationPage
1710
1720
  }))
1711
1721
  );
1712
1722
  const NoPermissions = React.lazy(
1713
- () => Promise.resolve().then(() => require("./NoPermissionsPage-zwIZydDI.js")).then((mod) => ({ default: mod.NoPermissions }))
1723
+ () => Promise.resolve().then(() => require("./NoPermissionsPage-Dp8NpF9I.js")).then((mod) => ({ default: mod.NoPermissions }))
1714
1724
  );
1715
1725
  const NoContentType = React.lazy(
1716
- () => Promise.resolve().then(() => require("./NoContentTypePage-CDUKdZ7d.js")).then((mod) => ({ default: mod.NoContentType }))
1726
+ () => Promise.resolve().then(() => require("./NoContentTypePage-BV9IjJSM.js")).then((mod) => ({ default: mod.NoContentType }))
1717
1727
  );
1718
1728
  const CollectionTypePages = () => {
1719
1729
  const { collectionType } = reactRouterDom.useParams();
@@ -2160,7 +2170,9 @@ const PublishAction$1 = ({
2160
2170
  const performPublish = async () => {
2161
2171
  setSubmitting(true);
2162
2172
  try {
2163
- const { errors } = await validate();
2173
+ const { errors } = await validate(true, {
2174
+ status: "published"
2175
+ });
2164
2176
  if (errors) {
2165
2177
  toggleNotification({
2166
2178
  type: "danger",
@@ -2274,18 +2286,18 @@ const UpdateAction = ({
2274
2286
  onClick: async () => {
2275
2287
  setSubmitting(true);
2276
2288
  try {
2277
- if (activeTab !== "draft") {
2278
- const { errors } = await validate();
2279
- if (errors) {
2280
- toggleNotification({
2281
- type: "danger",
2282
- message: formatMessage({
2283
- id: "content-manager.validation.error",
2284
- defaultMessage: "There are validation errors in your document. Please fix them before saving."
2285
- })
2286
- });
2287
- return;
2288
- }
2289
+ const { errors } = await validate(true, {
2290
+ status: "draft"
2291
+ });
2292
+ if (errors) {
2293
+ toggleNotification({
2294
+ type: "danger",
2295
+ message: formatMessage({
2296
+ id: "content-manager.validation.error",
2297
+ defaultMessage: "There are validation errors in your document. Please fix them before saving."
2298
+ })
2299
+ });
2300
+ return;
2289
2301
  }
2290
2302
  if (isCloning) {
2291
2303
  const res = await clone(
@@ -2667,12 +2679,12 @@ const Information = ({ activeTab }) => {
2667
2679
  isDisplayed: !!publishDocument?.[PUBLISHED_AT_ATTRIBUTE_NAME],
2668
2680
  label: formatMessage({
2669
2681
  id: "content-manager.containers.edit.information.last-published.label",
2670
- defaultMessage: "Last published"
2682
+ defaultMessage: "Published"
2671
2683
  }),
2672
2684
  value: formatMessage(
2673
2685
  {
2674
2686
  id: "content-manager.containers.edit.information.last-published.value",
2675
- defaultMessage: `Published {time}{isAnonymous, select, true {} other { by {author}}}`
2687
+ defaultMessage: `{time}{isAnonymous, select, true {} other { by {author}}}`
2676
2688
  },
2677
2689
  {
2678
2690
  time: /* @__PURE__ */ jsxRuntime.jsx(RelativeTime, { timestamp: new Date(publishDocument?.[PUBLISHED_AT_ATTRIBUTE_NAME]) }),
@@ -2685,12 +2697,12 @@ const Information = ({ activeTab }) => {
2685
2697
  isDisplayed: !!createAndUpdateDocument?.[UPDATED_AT_ATTRIBUTE_NAME],
2686
2698
  label: formatMessage({
2687
2699
  id: "content-manager.containers.edit.information.last-draft.label",
2688
- defaultMessage: "Last draft"
2700
+ defaultMessage: "Updated"
2689
2701
  }),
2690
2702
  value: formatMessage(
2691
2703
  {
2692
2704
  id: "content-manager.containers.edit.information.last-draft.value",
2693
- defaultMessage: `Modified {time}{isAnonymous, select, true {} other { by {author}}}`
2705
+ defaultMessage: `{time}{isAnonymous, select, true {} other { by {author}}}`
2694
2706
  },
2695
2707
  {
2696
2708
  time: /* @__PURE__ */ jsxRuntime.jsx(
@@ -2708,12 +2720,12 @@ const Information = ({ activeTab }) => {
2708
2720
  isDisplayed: !!createAndUpdateDocument?.[CREATED_AT_ATTRIBUTE_NAME],
2709
2721
  label: formatMessage({
2710
2722
  id: "content-manager.containers.edit.information.document.label",
2711
- defaultMessage: "Document"
2723
+ defaultMessage: "Created"
2712
2724
  }),
2713
2725
  value: formatMessage(
2714
2726
  {
2715
2727
  id: "content-manager.containers.edit.information.document.value",
2716
- defaultMessage: `Created {time}{isAnonymous, select, true {} other { by {author}}}`
2728
+ defaultMessage: `{time}{isAnonymous, select, true {} other { by {author}}}`
2717
2729
  },
2718
2730
  {
2719
2731
  time: /* @__PURE__ */ jsxRuntime.jsx(
@@ -4018,7 +4030,7 @@ const index = {
4018
4030
  app.router.addRoute({
4019
4031
  path: "content-manager/*",
4020
4032
  lazy: async () => {
4021
- const { Layout } = await Promise.resolve().then(() => require("./layout-UNWstw_s.js"));
4033
+ const { Layout } = await Promise.resolve().then(() => require("./layout-B2MyZU-_.js"));
4022
4034
  return {
4023
4035
  Component: Layout
4024
4036
  };
@@ -4035,7 +4047,7 @@ const index = {
4035
4047
  async registerTrads({ locales }) {
4036
4048
  const importedTrads = await Promise.all(
4037
4049
  locales.map((locale) => {
4038
- 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-BlhnxQfj.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 }) => {
4050
+ 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-Bm0D0IWz.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 }) => {
4039
4051
  return {
4040
4052
  data: prefixPluginTranslations(data, PLUGIN_ID),
4041
4053
  locale
@@ -4094,4 +4106,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
4094
4106
  exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
4095
4107
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
4096
4108
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
4097
- //# sourceMappingURL=index-ovJRE1FM.js.map
4109
+ //# sourceMappingURL=index-BdMf2lfT.js.map