@strapi/content-manager 0.0.0-experimental.30e5d19d03d07d2b73ac7ed4b376a833d4270bde → 0.0.0-experimental.3162602be5ecf801e9697f416d1467608d46ad32

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 (86) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-DP7AC0UU.js → ComponentConfigurationPage-CO977CPh.js} +4 -4
  2. package/dist/_chunks/{ComponentConfigurationPage-DP7AC0UU.js.map → ComponentConfigurationPage-CO977CPh.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-7-qB29e7.mjs → ComponentConfigurationPage-CQroR9Qk.mjs} +4 -4
  4. package/dist/_chunks/{ComponentConfigurationPage-7-qB29e7.mjs.map → ComponentConfigurationPage-CQroR9Qk.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-DITVliEI.js → EditConfigurationPage-BPgoE-kf.js} +4 -4
  6. package/dist/_chunks/{EditConfigurationPage-DITVliEI.js.map → EditConfigurationPage-BPgoE-kf.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-CI4XoymK.mjs → EditConfigurationPage-tVCJ5vWC.mjs} +4 -4
  8. package/dist/_chunks/{EditConfigurationPage-CI4XoymK.mjs.map → EditConfigurationPage-tVCJ5vWC.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-Dzpno8xI.mjs → EditViewPage-8mOu02ji.mjs} +10 -4
  10. package/dist/_chunks/EditViewPage-8mOu02ji.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-CUS2EAhB.js → EditViewPage-BMVgUNOX.js} +10 -4
  12. package/dist/_chunks/EditViewPage-BMVgUNOX.js.map +1 -0
  13. package/dist/_chunks/{Field-B_jG_EV9.mjs → Field-CJPYzwD7.mjs} +42 -10
  14. package/dist/_chunks/Field-CJPYzwD7.mjs.map +1 -0
  15. package/dist/_chunks/{Field-CtUU1Fg8.js → Field-CdSLKFQk.js} +42 -10
  16. package/dist/_chunks/Field-CdSLKFQk.js.map +1 -0
  17. package/dist/_chunks/{Form-BXHao2mZ.mjs → Form-DJOJ-GF1.mjs} +3 -3
  18. package/dist/_chunks/Form-DJOJ-GF1.mjs.map +1 -0
  19. package/dist/_chunks/{Form-DTqO0ymI.js → Form-eP5bZwap.js} +3 -3
  20. package/dist/_chunks/Form-eP5bZwap.js.map +1 -0
  21. package/dist/_chunks/{History-C_uSGzO5.js → History-B-Mrquzu.js} +23 -10
  22. package/dist/_chunks/History-B-Mrquzu.js.map +1 -0
  23. package/dist/_chunks/{History-2Ah2CQ4T.mjs → History-MnQLtk1g.mjs} +24 -11
  24. package/dist/_chunks/History-MnQLtk1g.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-BjSJlaoC.mjs → ListConfigurationPage-BcycI8Lw.mjs} +3 -3
  26. package/dist/_chunks/{ListConfigurationPage-BjSJlaoC.mjs.map → ListConfigurationPage-BcycI8Lw.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-nyuP7OSy.js → ListConfigurationPage-C0n4rUzH.js} +3 -3
  28. package/dist/_chunks/{ListConfigurationPage-nyuP7OSy.js.map → ListConfigurationPage-C0n4rUzH.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-B75x3nz2.mjs → ListViewPage-CRXONXwZ.mjs} +3 -3
  30. package/dist/_chunks/{ListViewPage-B75x3nz2.mjs.map → ListViewPage-CRXONXwZ.mjs.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-DHgHD8Xg.js → ListViewPage-q0SHVPUS.js} +3 -3
  32. package/dist/_chunks/{ListViewPage-DHgHD8Xg.js.map → ListViewPage-q0SHVPUS.js.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-CDUKdZ7d.js → NoContentTypePage-Bh3komDV.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-CDUKdZ7d.js.map → NoContentTypePage-Bh3komDV.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DUacQSyF.mjs → NoContentTypePage-ukzFRF3z.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DUacQSyF.mjs.map → NoContentTypePage-ukzFRF3z.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-SFllMekk.mjs → NoPermissionsPage-B4sD7Ble.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-SFllMekk.mjs.map → NoPermissionsPage-B4sD7Ble.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-zwIZydDI.js → NoPermissionsPage-BGBpj_Y1.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-zwIZydDI.js.map → NoPermissionsPage-BGBpj_Y1.js.map} +1 -1
  41. package/dist/_chunks/{Relations-NFLaRNPr.js → Relations-B53wYe8g.js} +25 -20
  42. package/dist/_chunks/Relations-B53wYe8g.js.map +1 -0
  43. package/dist/_chunks/{Relations-D2NRW8fC.mjs → Relations-CIexb8gr.mjs} +25 -20
  44. package/dist/_chunks/Relations-CIexb8gr.mjs.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-C9HxCo5R.mjs → index-CJ2vYwuT.mjs} +85 -76
  50. package/dist/_chunks/index-CJ2vYwuT.mjs.map +1 -0
  51. package/dist/_chunks/{index-ovJRE1FM.js → index-DbT2sx-Q.js} +84 -75
  52. package/dist/_chunks/index-DbT2sx-Q.js.map +1 -0
  53. package/dist/_chunks/{layout-UNWstw_s.js → layout-CeBSIkmP.js} +3 -3
  54. package/dist/_chunks/{layout-UNWstw_s.js.map → layout-CeBSIkmP.js.map} +1 -1
  55. package/dist/_chunks/{layout-DaUjDiWQ.mjs → layout-vzKSrr7p.mjs} +3 -3
  56. package/dist/_chunks/{layout-DaUjDiWQ.mjs.map → layout-vzKSrr7p.mjs.map} +1 -1
  57. package/dist/_chunks/{objects-gigeqt7s.js → objects-BcXOv6_9.js} +2 -4
  58. package/dist/_chunks/{objects-gigeqt7s.js.map → objects-BcXOv6_9.js.map} +1 -1
  59. package/dist/_chunks/{objects-mKMAmfec.mjs → objects-D6yBsdmx.mjs} +2 -4
  60. package/dist/_chunks/{objects-mKMAmfec.mjs.map → objects-D6yBsdmx.mjs.map} +1 -1
  61. package/dist/_chunks/{relations-NN3coOG5.js → relations-Cl-6t9iz.js} +2 -2
  62. package/dist/_chunks/{relations-NN3coOG5.js.map → relations-Cl-6t9iz.js.map} +1 -1
  63. package/dist/_chunks/{relations-D8iFAeRu.mjs → relations-DI0lguF0.mjs} +2 -2
  64. package/dist/_chunks/{relations-D8iFAeRu.mjs.map → relations-DI0lguF0.mjs.map} +1 -1
  65. package/dist/admin/index.js +1 -1
  66. package/dist/admin/index.mjs +1 -1
  67. package/dist/server/index.js +17 -10
  68. package/dist/server/index.js.map +1 -1
  69. package/dist/server/index.mjs +17 -10
  70. package/dist/server/index.mjs.map +1 -1
  71. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  72. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  73. package/dist/server/src/history/services/history.d.ts.map +1 -1
  74. package/package.json +7 -7
  75. package/dist/_chunks/EditViewPage-CUS2EAhB.js.map +0 -1
  76. package/dist/_chunks/EditViewPage-Dzpno8xI.mjs.map +0 -1
  77. package/dist/_chunks/Field-B_jG_EV9.mjs.map +0 -1
  78. package/dist/_chunks/Field-CtUU1Fg8.js.map +0 -1
  79. package/dist/_chunks/Form-BXHao2mZ.mjs.map +0 -1
  80. package/dist/_chunks/Form-DTqO0ymI.js.map +0 -1
  81. package/dist/_chunks/History-2Ah2CQ4T.mjs.map +0 -1
  82. package/dist/_chunks/History-C_uSGzO5.js.map +0 -1
  83. package/dist/_chunks/Relations-D2NRW8fC.mjs.map +0 -1
  84. package/dist/_chunks/Relations-NFLaRNPr.js.map +0 -1
  85. package/dist/_chunks/index-C9HxCo5R.mjs.map +0 -1
  86. 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 = () => {
@@ -1239,9 +1249,6 @@ const useContentManagerContext = () => {
1239
1249
  };
1240
1250
  };
1241
1251
  const prefixPluginTranslations = (trad, pluginId) => {
1242
- if (!pluginId) {
1243
- throw new TypeError("pluginId can't be empty");
1244
- }
1245
1252
  return Object.keys(trad).reduce((acc, current) => {
1246
1253
  acc[`${pluginId}.${current}`] = trad[current];
1247
1254
  return acc;
@@ -1676,7 +1683,7 @@ const useDocumentActions = () => {
1676
1683
  };
1677
1684
  };
1678
1685
  const ProtectedHistoryPage = React.lazy(
1679
- () => Promise.resolve().then(() => require("./History-C_uSGzO5.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1686
+ () => Promise.resolve().then(() => require("./History-B-Mrquzu.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1680
1687
  );
1681
1688
  const routes$1 = [
1682
1689
  {
@@ -1689,31 +1696,31 @@ const routes$1 = [
1689
1696
  }
1690
1697
  ];
1691
1698
  const ProtectedEditViewPage = React.lazy(
1692
- () => Promise.resolve().then(() => require("./EditViewPage-CUS2EAhB.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1699
+ () => Promise.resolve().then(() => require("./EditViewPage-BMVgUNOX.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1693
1700
  );
1694
1701
  const ProtectedListViewPage = React.lazy(
1695
- () => Promise.resolve().then(() => require("./ListViewPage-DHgHD8Xg.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1702
+ () => Promise.resolve().then(() => require("./ListViewPage-q0SHVPUS.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1696
1703
  );
1697
1704
  const ProtectedListConfiguration = React.lazy(
1698
- () => Promise.resolve().then(() => require("./ListConfigurationPage-nyuP7OSy.js")).then((mod) => ({
1705
+ () => Promise.resolve().then(() => require("./ListConfigurationPage-C0n4rUzH.js")).then((mod) => ({
1699
1706
  default: mod.ProtectedListConfiguration
1700
1707
  }))
1701
1708
  );
1702
1709
  const ProtectedEditConfigurationPage = React.lazy(
1703
- () => Promise.resolve().then(() => require("./EditConfigurationPage-DITVliEI.js")).then((mod) => ({
1710
+ () => Promise.resolve().then(() => require("./EditConfigurationPage-BPgoE-kf.js")).then((mod) => ({
1704
1711
  default: mod.ProtectedEditConfigurationPage
1705
1712
  }))
1706
1713
  );
1707
1714
  const ProtectedComponentConfigurationPage = React.lazy(
1708
- () => Promise.resolve().then(() => require("./ComponentConfigurationPage-DP7AC0UU.js")).then((mod) => ({
1715
+ () => Promise.resolve().then(() => require("./ComponentConfigurationPage-CO977CPh.js")).then((mod) => ({
1709
1716
  default: mod.ProtectedComponentConfigurationPage
1710
1717
  }))
1711
1718
  );
1712
1719
  const NoPermissions = React.lazy(
1713
- () => Promise.resolve().then(() => require("./NoPermissionsPage-zwIZydDI.js")).then((mod) => ({ default: mod.NoPermissions }))
1720
+ () => Promise.resolve().then(() => require("./NoPermissionsPage-BGBpj_Y1.js")).then((mod) => ({ default: mod.NoPermissions }))
1714
1721
  );
1715
1722
  const NoContentType = React.lazy(
1716
- () => Promise.resolve().then(() => require("./NoContentTypePage-CDUKdZ7d.js")).then((mod) => ({ default: mod.NoContentType }))
1723
+ () => Promise.resolve().then(() => require("./NoContentTypePage-Bh3komDV.js")).then((mod) => ({ default: mod.NoContentType }))
1717
1724
  );
1718
1725
  const CollectionTypePages = () => {
1719
1726
  const { collectionType } = reactRouterDom.useParams();
@@ -2160,7 +2167,9 @@ const PublishAction$1 = ({
2160
2167
  const performPublish = async () => {
2161
2168
  setSubmitting(true);
2162
2169
  try {
2163
- const { errors } = await validate();
2170
+ const { errors } = await validate(true, {
2171
+ status: "published"
2172
+ });
2164
2173
  if (errors) {
2165
2174
  toggleNotification({
2166
2175
  type: "danger",
@@ -2274,18 +2283,18 @@ const UpdateAction = ({
2274
2283
  onClick: async () => {
2275
2284
  setSubmitting(true);
2276
2285
  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
- }
2286
+ const { errors } = await validate(true, {
2287
+ status: "draft"
2288
+ });
2289
+ if (errors) {
2290
+ toggleNotification({
2291
+ type: "danger",
2292
+ message: formatMessage({
2293
+ id: "content-manager.validation.error",
2294
+ defaultMessage: "There are validation errors in your document. Please fix them before saving."
2295
+ })
2296
+ });
2297
+ return;
2289
2298
  }
2290
2299
  if (isCloning) {
2291
2300
  const res = await clone(
@@ -2667,12 +2676,12 @@ const Information = ({ activeTab }) => {
2667
2676
  isDisplayed: !!publishDocument?.[PUBLISHED_AT_ATTRIBUTE_NAME],
2668
2677
  label: formatMessage({
2669
2678
  id: "content-manager.containers.edit.information.last-published.label",
2670
- defaultMessage: "Last published"
2679
+ defaultMessage: "Published"
2671
2680
  }),
2672
2681
  value: formatMessage(
2673
2682
  {
2674
2683
  id: "content-manager.containers.edit.information.last-published.value",
2675
- defaultMessage: `Published {time}{isAnonymous, select, true {} other { by {author}}}`
2684
+ defaultMessage: `{time}{isAnonymous, select, true {} other { by {author}}}`
2676
2685
  },
2677
2686
  {
2678
2687
  time: /* @__PURE__ */ jsxRuntime.jsx(RelativeTime, { timestamp: new Date(publishDocument?.[PUBLISHED_AT_ATTRIBUTE_NAME]) }),
@@ -2685,12 +2694,12 @@ const Information = ({ activeTab }) => {
2685
2694
  isDisplayed: !!createAndUpdateDocument?.[UPDATED_AT_ATTRIBUTE_NAME],
2686
2695
  label: formatMessage({
2687
2696
  id: "content-manager.containers.edit.information.last-draft.label",
2688
- defaultMessage: "Last draft"
2697
+ defaultMessage: "Updated"
2689
2698
  }),
2690
2699
  value: formatMessage(
2691
2700
  {
2692
2701
  id: "content-manager.containers.edit.information.last-draft.value",
2693
- defaultMessage: `Modified {time}{isAnonymous, select, true {} other { by {author}}}`
2702
+ defaultMessage: `{time}{isAnonymous, select, true {} other { by {author}}}`
2694
2703
  },
2695
2704
  {
2696
2705
  time: /* @__PURE__ */ jsxRuntime.jsx(
@@ -2708,12 +2717,12 @@ const Information = ({ activeTab }) => {
2708
2717
  isDisplayed: !!createAndUpdateDocument?.[CREATED_AT_ATTRIBUTE_NAME],
2709
2718
  label: formatMessage({
2710
2719
  id: "content-manager.containers.edit.information.document.label",
2711
- defaultMessage: "Document"
2720
+ defaultMessage: "Created"
2712
2721
  }),
2713
2722
  value: formatMessage(
2714
2723
  {
2715
2724
  id: "content-manager.containers.edit.information.document.value",
2716
- defaultMessage: `Created {time}{isAnonymous, select, true {} other { by {author}}}`
2725
+ defaultMessage: `{time}{isAnonymous, select, true {} other { by {author}}}`
2717
2726
  },
2718
2727
  {
2719
2728
  time: /* @__PURE__ */ jsxRuntime.jsx(
@@ -4018,7 +4027,7 @@ const index = {
4018
4027
  app.router.addRoute({
4019
4028
  path: "content-manager/*",
4020
4029
  lazy: async () => {
4021
- const { Layout } = await Promise.resolve().then(() => require("./layout-UNWstw_s.js"));
4030
+ const { Layout } = await Promise.resolve().then(() => require("./layout-CeBSIkmP.js"));
4022
4031
  return {
4023
4032
  Component: Layout
4024
4033
  };
@@ -4035,7 +4044,7 @@ const index = {
4035
4044
  async registerTrads({ locales }) {
4036
4045
  const importedTrads = await Promise.all(
4037
4046
  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 }) => {
4047
+ 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
4048
  return {
4040
4049
  data: prefixPluginTranslations(data, PLUGIN_ID),
4041
4050
  locale
@@ -4094,4 +4103,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
4094
4103
  exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
4095
4104
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
4096
4105
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
4097
- //# sourceMappingURL=index-ovJRE1FM.js.map
4106
+ //# sourceMappingURL=index-DbT2sx-Q.js.map