@strapi/content-manager 0.0.0-next.d2d15ef227d67cce89c2673764c0555c841cd29c → 0.0.0-next.ea6e3b80ab37f554da4f8bde08dbfe9b57400d31

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 (160) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-FqfsxQ1j.js → ComponentConfigurationPage-Bmwd-G2q.js} +4 -4
  2. package/dist/_chunks/{ComponentConfigurationPage-FqfsxQ1j.js.map → ComponentConfigurationPage-Bmwd-G2q.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-DfFSZQxe.mjs → ComponentConfigurationPage-DqB7veg_.mjs} +4 -4
  4. package/dist/_chunks/{ComponentConfigurationPage-DfFSZQxe.mjs.map → ComponentConfigurationPage-DqB7veg_.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-DdPNAbl3.mjs → EditConfigurationPage-CDLVqqay.mjs} +4 -4
  6. package/dist/_chunks/{EditConfigurationPage-DdPNAbl3.mjs.map → EditConfigurationPage-CDLVqqay.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-Cn0e8t3I.js → EditConfigurationPage-DmruXqgR.js} +4 -4
  8. package/dist/_chunks/{EditConfigurationPage-Cn0e8t3I.js.map → EditConfigurationPage-DmruXqgR.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-DlxEHhUt.js → EditViewPage-0zrWXtMz.js} +37 -7
  10. package/dist/_chunks/EditViewPage-0zrWXtMz.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-B82x_x1b.mjs → EditViewPage-BgcbLW7w.mjs} +38 -8
  12. package/dist/_chunks/EditViewPage-BgcbLW7w.mjs.map +1 -0
  13. package/dist/_chunks/{Field-COL25JiC.js → Field-BV7ZYdqe.js} +28 -8
  14. package/dist/_chunks/Field-BV7ZYdqe.js.map +1 -0
  15. package/dist/_chunks/{Field-DufHXW17.mjs → Field-fTjqtEem.mjs} +28 -8
  16. package/dist/_chunks/Field-fTjqtEem.mjs.map +1 -0
  17. package/dist/_chunks/{Form-BssUwrTO.js → Form-CIDoAFoD.js} +2 -2
  18. package/dist/_chunks/{Form-BssUwrTO.js.map → Form-CIDoAFoD.js.map} +1 -1
  19. package/dist/_chunks/{Form-u_kAOhwB.mjs → Form-WNWgTBtb.mjs} +2 -2
  20. package/dist/_chunks/{Form-u_kAOhwB.mjs.map → Form-WNWgTBtb.mjs.map} +1 -1
  21. package/dist/_chunks/{History-C9t9UqpO.js → History-BNvm2TK2.js} +19 -91
  22. package/dist/_chunks/History-BNvm2TK2.js.map +1 -0
  23. package/dist/_chunks/{History-DRwA3oMM.mjs → History-DEZDHwP0.mjs} +19 -91
  24. package/dist/_chunks/History-DEZDHwP0.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-BXYPohh-.js → ListConfigurationPage-B3FZwPHp.js} +3 -3
  26. package/dist/_chunks/{ListConfigurationPage-BXYPohh-.js.map → ListConfigurationPage-B3FZwPHp.js.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-BxfQJzPk.mjs → ListConfigurationPage-Ddz3G-It.mjs} +3 -3
  28. package/dist/_chunks/{ListConfigurationPage-BxfQJzPk.mjs.map → ListConfigurationPage-Ddz3G-It.mjs.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-D2VD8Szg.js → ListViewPage-BEilNylQ.js} +28 -6
  30. package/dist/_chunks/ListViewPage-BEilNylQ.js.map +1 -0
  31. package/dist/_chunks/{ListViewPage-CELx2ysp.mjs → ListViewPage-BsLdw25U.mjs} +28 -6
  32. package/dist/_chunks/{ListViewPage-CELx2ysp.mjs.map → ListViewPage-BsLdw25U.mjs.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-BV9IjJSM.js → NoContentTypePage-BD2C-IMr.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-BV9IjJSM.js.map → NoContentTypePage-BD2C-IMr.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DtJ9jcfk.mjs → NoContentTypePage-D0jXEWKM.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DtJ9jcfk.mjs.map → NoContentTypePage-D0jXEWKM.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-DWleVYK7.mjs → NoPermissionsPage-CIPqlrQq.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-DWleVYK7.mjs.map → NoPermissionsPage-CIPqlrQq.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-Dp8NpF9I.js → NoPermissionsPage-yNOvz9XO.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-Dp8NpF9I.js.map → NoPermissionsPage-yNOvz9XO.js.map} +1 -1
  41. package/dist/_chunks/Preview-1cqLecKr.js +256 -0
  42. package/dist/_chunks/Preview-1cqLecKr.js.map +1 -0
  43. package/dist/_chunks/Preview-ot2fh0yZ.mjs +237 -0
  44. package/dist/_chunks/Preview-ot2fh0yZ.mjs.map +1 -0
  45. package/dist/_chunks/{Relations-DR7EUgyC.js → Relations-C3U9SKEb.js} +43 -16
  46. package/dist/_chunks/Relations-C3U9SKEb.js.map +1 -0
  47. package/dist/_chunks/{Relations-BTcf5xaw.mjs → Relations-CfdwHP-0.mjs} +44 -17
  48. package/dist/_chunks/Relations-CfdwHP-0.mjs.map +1 -0
  49. package/dist/_chunks/{en-Bm0D0IWz.js → en-CHOp_xJv.js} +11 -2
  50. package/dist/_chunks/{en-Bm0D0IWz.js.map → en-CHOp_xJv.js.map} +1 -1
  51. package/dist/_chunks/{en-DKV44jRb.mjs → en-D_BMf0hT.mjs} +11 -2
  52. package/dist/_chunks/{en-DKV44jRb.mjs.map → en-D_BMf0hT.mjs.map} +1 -1
  53. package/dist/_chunks/{es-EUonQTon.js → es-9K52xZIr.js} +2 -2
  54. package/dist/_chunks/{ja-CcFe8diO.js.map → es-9K52xZIr.js.map} +1 -1
  55. package/dist/_chunks/{es-CeXiYflN.mjs → es-D34tqjMw.mjs} +2 -2
  56. package/dist/_chunks/{es-CeXiYflN.mjs.map → es-D34tqjMw.mjs.map} +1 -1
  57. package/dist/_chunks/{fr-CD9VFbPM.mjs → fr--pg5jUbt.mjs} +13 -3
  58. package/dist/_chunks/{fr-CD9VFbPM.mjs.map → fr--pg5jUbt.mjs.map} +1 -1
  59. package/dist/_chunks/{fr-B7kGGg3E.js → fr-B2Kyv8Z9.js} +13 -3
  60. package/dist/_chunks/{fr-B7kGGg3E.js.map → fr-B2Kyv8Z9.js.map} +1 -1
  61. package/dist/_chunks/{index-wnqzm4Q8.mjs → index-BzUT1l9A.mjs} +147 -68
  62. package/dist/_chunks/index-BzUT1l9A.mjs.map +1 -0
  63. package/dist/_chunks/{index-BdMf2lfT.js → index-Cg4RLIAw.js} +144 -64
  64. package/dist/_chunks/index-Cg4RLIAw.js.map +1 -0
  65. package/dist/_chunks/{ja-CcFe8diO.js → ja-7sfIbjxE.js} +2 -2
  66. package/dist/_chunks/{es-EUonQTon.js.map → ja-7sfIbjxE.js.map} +1 -1
  67. package/dist/_chunks/{ja-CtsUxOvk.mjs → ja-BHqhDq4V.mjs} +2 -2
  68. package/dist/_chunks/{ja-CtsUxOvk.mjs.map → ja-BHqhDq4V.mjs.map} +1 -1
  69. package/dist/_chunks/{layout-2CfjL0T9.mjs → layout-C0QEDBAh.mjs} +3 -3
  70. package/dist/_chunks/{layout-2CfjL0T9.mjs.map → layout-C0QEDBAh.mjs.map} +1 -1
  71. package/dist/_chunks/{layout-B2MyZU-_.js → layout-Cj_1EKbm.js} +3 -3
  72. package/dist/_chunks/{layout-B2MyZU-_.js.map → layout-Cj_1EKbm.js.map} +1 -1
  73. package/dist/_chunks/{objects-gigeqt7s.js → objects-BcXOv6_9.js} +2 -4
  74. package/dist/_chunks/{objects-gigeqt7s.js.map → objects-BcXOv6_9.js.map} +1 -1
  75. package/dist/_chunks/{objects-mKMAmfec.mjs → objects-D6yBsdmx.mjs} +2 -4
  76. package/dist/_chunks/{objects-mKMAmfec.mjs.map → objects-D6yBsdmx.mjs.map} +1 -1
  77. package/dist/_chunks/{relations-C0w0GcXi.mjs → relations-CgPG3AwU.mjs} +6 -7
  78. package/dist/_chunks/relations-CgPG3AwU.mjs.map +1 -0
  79. package/dist/_chunks/{relations-BH7JJGGe.js → relations-hDOgJy2R.js} +6 -7
  80. package/dist/_chunks/relations-hDOgJy2R.js.map +1 -0
  81. package/dist/admin/index.js +1 -1
  82. package/dist/admin/index.mjs +4 -4
  83. package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
  84. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +2 -2
  85. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
  86. package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -0
  87. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  88. package/dist/admin/src/preview/constants.d.ts +1 -0
  89. package/dist/admin/src/preview/index.d.ts +4 -0
  90. package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
  91. package/dist/admin/src/preview/routes.d.ts +3 -0
  92. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  93. package/dist/admin/src/router.d.ts +1 -1
  94. package/dist/server/index.js +344 -144
  95. package/dist/server/index.js.map +1 -1
  96. package/dist/server/index.mjs +344 -144
  97. package/dist/server/index.mjs.map +1 -1
  98. package/dist/server/src/bootstrap.d.ts.map +1 -1
  99. package/dist/server/src/controllers/index.d.ts.map +1 -1
  100. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  101. package/dist/server/src/controllers/utils/metadata.d.ts +15 -1
  102. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  103. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  104. package/dist/server/src/history/services/utils.d.ts +2 -3
  105. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  106. package/dist/server/src/index.d.ts +4 -4
  107. package/dist/server/src/preview/constants.d.ts +2 -0
  108. package/dist/server/src/preview/constants.d.ts.map +1 -0
  109. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  110. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  111. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  112. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  113. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  114. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  115. package/dist/server/src/preview/index.d.ts +4 -0
  116. package/dist/server/src/preview/index.d.ts.map +1 -0
  117. package/dist/server/src/preview/routes/index.d.ts +8 -0
  118. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  119. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  120. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  121. package/dist/server/src/preview/services/index.d.ts +15 -0
  122. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  123. package/dist/server/src/preview/services/preview-config.d.ts +30 -0
  124. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  125. package/dist/server/src/preview/services/preview.d.ts +12 -0
  126. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  127. package/dist/server/src/preview/utils.d.ts +18 -0
  128. package/dist/server/src/preview/utils.d.ts.map +1 -0
  129. package/dist/server/src/routes/index.d.ts.map +1 -1
  130. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  131. package/dist/server/src/services/document-metadata.d.ts +8 -8
  132. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  133. package/dist/server/src/services/index.d.ts +4 -4
  134. package/dist/server/src/services/index.d.ts.map +1 -1
  135. package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
  136. package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
  137. package/dist/server/src/utils/index.d.ts +2 -0
  138. package/dist/server/src/utils/index.d.ts.map +1 -1
  139. package/dist/shared/contracts/index.d.ts +1 -0
  140. package/dist/shared/contracts/index.d.ts.map +1 -1
  141. package/dist/shared/contracts/preview.d.ts +27 -0
  142. package/dist/shared/contracts/preview.d.ts.map +1 -0
  143. package/dist/shared/index.js +4 -0
  144. package/dist/shared/index.js.map +1 -1
  145. package/dist/shared/index.mjs +4 -0
  146. package/dist/shared/index.mjs.map +1 -1
  147. package/package.json +9 -9
  148. package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +0 -1
  149. package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +0 -1
  150. package/dist/_chunks/Field-COL25JiC.js.map +0 -1
  151. package/dist/_chunks/Field-DufHXW17.mjs.map +0 -1
  152. package/dist/_chunks/History-C9t9UqpO.js.map +0 -1
  153. package/dist/_chunks/History-DRwA3oMM.mjs.map +0 -1
  154. package/dist/_chunks/ListViewPage-D2VD8Szg.js.map +0 -1
  155. package/dist/_chunks/Relations-BTcf5xaw.mjs.map +0 -1
  156. package/dist/_chunks/Relations-DR7EUgyC.js.map +0 -1
  157. package/dist/_chunks/index-BdMf2lfT.js.map +0 -1
  158. package/dist/_chunks/index-wnqzm4Q8.mjs.map +0 -1
  159. package/dist/_chunks/relations-BH7JJGGe.js.map +0 -1
  160. package/dist/_chunks/relations-C0w0GcXi.mjs.map +0 -1
@@ -76,7 +76,7 @@ const en = {
76
76
  "components.TableEmpty.withFilters": "There are no {contentType} with the applied filters...",
77
77
  "components.TableEmpty.withSearch": "There are no {contentType} corresponding to the search ({search})...",
78
78
  "components.TableEmpty.withoutFilter": "There are no {contentType}...",
79
- "components.empty-repeatable": "No entry yet. Click on the button below to add one.",
79
+ "components.empty-repeatable": "No entry yet. Click to add one.",
80
80
  "components.notification.info.maximum-requirement": "You have already reached the maximum number of fields",
81
81
  "components.notification.info.minimum-requirement": "A field has been added to match the minimum requirement",
82
82
  "components.repeatable.reorder.error": "An error occurred while reordering your component's field, please try again",
@@ -106,6 +106,9 @@ const en = {
106
106
  "containers.Home.introduction": "To edit your entries go to the specific link in the left menu. This plugin doesn't have a proper way to edit settings and it's still under active development.",
107
107
  "containers.Home.pluginHeaderDescription": "Manage your entries through a powerful and beautiful interface.",
108
108
  "containers.Home.pluginHeaderTitle": "Content Manager",
109
+ "containers.List.draft": "Draft",
110
+ "containers.List.published": "Published",
111
+ "containers.List.modified": "Modified",
109
112
  "containers.list.displayedFields": "Displayed Fields",
110
113
  "containers.list.items": "{number} {number, plural, =0 {items} one {item} other {items}}",
111
114
  "containers.list.table.row-actions": "Row actions",
@@ -236,6 +239,12 @@ const en = {
236
239
  "popUpWarning.warning.unpublish-question": "Are you sure you don't want to publish it?",
237
240
  "popUpWarning.warning.updateAllSettings": "This will modify all your settings",
238
241
  "popover.display-relations.label": "Display relations",
242
+ "preview.panel.title": "Preview",
243
+ "preview.panel.button": "Open preview",
244
+ "preview.page-title": "{contentType} preview",
245
+ "preview.header.close": "Close preview",
246
+ "preview.copy.label": "Copy preview link",
247
+ "preview.copy.success": "Copied preview link",
239
248
  "relation.add": "Add relation",
240
249
  "relation.disconnect": "Remove",
241
250
  "relation.error-adding-relation": "An error occurred while trying to add the relation.",
@@ -290,4 +299,4 @@ exports.default = en;
290
299
  exports.groups = groups;
291
300
  exports.models = models;
292
301
  exports.pageNotFound = pageNotFound;
293
- //# sourceMappingURL=en-Bm0D0IWz.js.map
302
+ //# sourceMappingURL=en-CHOp_xJv.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"en-Bm0D0IWz.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en-CHOp_xJv.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -74,7 +74,7 @@ const en = {
74
74
  "components.TableEmpty.withFilters": "There are no {contentType} with the applied filters...",
75
75
  "components.TableEmpty.withSearch": "There are no {contentType} corresponding to the search ({search})...",
76
76
  "components.TableEmpty.withoutFilter": "There are no {contentType}...",
77
- "components.empty-repeatable": "No entry yet. Click on the button below to add one.",
77
+ "components.empty-repeatable": "No entry yet. Click to add one.",
78
78
  "components.notification.info.maximum-requirement": "You have already reached the maximum number of fields",
79
79
  "components.notification.info.minimum-requirement": "A field has been added to match the minimum requirement",
80
80
  "components.repeatable.reorder.error": "An error occurred while reordering your component's field, please try again",
@@ -104,6 +104,9 @@ const en = {
104
104
  "containers.Home.introduction": "To edit your entries go to the specific link in the left menu. This plugin doesn't have a proper way to edit settings and it's still under active development.",
105
105
  "containers.Home.pluginHeaderDescription": "Manage your entries through a powerful and beautiful interface.",
106
106
  "containers.Home.pluginHeaderTitle": "Content Manager",
107
+ "containers.List.draft": "Draft",
108
+ "containers.List.published": "Published",
109
+ "containers.List.modified": "Modified",
107
110
  "containers.list.displayedFields": "Displayed Fields",
108
111
  "containers.list.items": "{number} {number, plural, =0 {items} one {item} other {items}}",
109
112
  "containers.list.table.row-actions": "Row actions",
@@ -234,6 +237,12 @@ const en = {
234
237
  "popUpWarning.warning.unpublish-question": "Are you sure you don't want to publish it?",
235
238
  "popUpWarning.warning.updateAllSettings": "This will modify all your settings",
236
239
  "popover.display-relations.label": "Display relations",
240
+ "preview.panel.title": "Preview",
241
+ "preview.panel.button": "Open preview",
242
+ "preview.page-title": "{contentType} preview",
243
+ "preview.header.close": "Close preview",
244
+ "preview.copy.label": "Copy preview link",
245
+ "preview.copy.success": "Copied preview link",
237
246
  "relation.add": "Add relation",
238
247
  "relation.disconnect": "Remove",
239
248
  "relation.error-adding-relation": "An error occurred while trying to add the relation.",
@@ -290,4 +299,4 @@ export {
290
299
  models,
291
300
  pageNotFound
292
301
  };
293
- //# sourceMappingURL=en-DKV44jRb.mjs.map
302
+ //# sourceMappingURL=en-D_BMf0hT.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"en-DKV44jRb.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en-D_BMf0hT.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -54,7 +54,7 @@ const es = {
54
54
  "components.TableEmpty.withFilters": "No hay {contentType} con los filtros aplicados...",
55
55
  "components.TableEmpty.withSearch": "No hay {contentType} que coincida con la búsqueda ({search})...",
56
56
  "components.TableEmpty.withoutFilter": "No hay {contentType}...",
57
- "components.empty-repeatable": "Aún no hay entrada. Haga clic en el botón de abajo para agregar uno.",
57
+ "components.empty-repeatable": "Aún no hay entrada. Haga clic para agregar una.",
58
58
  "components.notification.info.maximum-requirement": "Ya has alcanzado el número máximo de campos",
59
59
  "components.notification.info.minimum-requirement": "Se ha agregado un campo para cumplir con el requisito mínimo",
60
60
  "components.repeatable.reorder.error": "Se produjo un error al reordenar el campo de su componente. Vuelva a intentarlo.",
@@ -193,4 +193,4 @@ exports.default = es;
193
193
  exports.groups = groups;
194
194
  exports.models = models;
195
195
  exports.pageNotFound = pageNotFound;
196
- //# sourceMappingURL=es-EUonQTon.js.map
196
+ //# sourceMappingURL=es-9K52xZIr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ja-CcFe8diO.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"es-9K52xZIr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -52,7 +52,7 @@ const es = {
52
52
  "components.TableEmpty.withFilters": "No hay {contentType} con los filtros aplicados...",
53
53
  "components.TableEmpty.withSearch": "No hay {contentType} que coincida con la búsqueda ({search})...",
54
54
  "components.TableEmpty.withoutFilter": "No hay {contentType}...",
55
- "components.empty-repeatable": "Aún no hay entrada. Haga clic en el botón de abajo para agregar uno.",
55
+ "components.empty-repeatable": "Aún no hay entrada. Haga clic para agregar una.",
56
56
  "components.notification.info.maximum-requirement": "Ya has alcanzado el número máximo de campos",
57
57
  "components.notification.info.minimum-requirement": "Se ha agregado un campo para cumplir con el requisito mínimo",
58
58
  "components.repeatable.reorder.error": "Se produjo un error al reordenar el campo de su componente. Vuelva a intentarlo.",
@@ -193,4 +193,4 @@ export {
193
193
  models,
194
194
  pageNotFound
195
195
  };
196
- //# sourceMappingURL=es-CeXiYflN.mjs.map
196
+ //# sourceMappingURL=es-D34tqjMw.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"es-CeXiYflN.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"es-D34tqjMw.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -52,7 +52,7 @@ const fr = {
52
52
  "components.TableEmpty.withFilters": "Aucun {contentType} n'a été trouvé avec ces filtres...",
53
53
  "components.TableEmpty.withSearch": "Aucun {contentType} n'a été trouvé avec cette recherche ({search})...",
54
54
  "components.TableEmpty.withoutFilter": "Aucun {contentType} n'a été trouvé...",
55
- "components.empty-repeatable": "Il n'a pas encore d'entrée. Cliquez sur le bouton pour en ajouter une.",
55
+ "components.empty-repeatable": "Il n'a pas encore d'entrée. Cliquez pour en ajouter une.",
56
56
  "components.notification.info.maximum-requirement": "Le nombre maximal de champs est atteint",
57
57
  "components.notification.info.minimum-requirement": "Un champ a été rajouté pour remplir les conditions minimales",
58
58
  "components.repeatable.reorder.error": "Une erreur s'est produite lors de la réorganisation du champ de votre composant, veuillez réessayer",
@@ -195,7 +195,17 @@ const fr = {
195
195
  "apiError.This attribute must be unique": "Le champ {field} doit être unique",
196
196
  "popUpWarning.warning.publish-question": "Êtes-vous sûr de vouloir le publier ?",
197
197
  "popUpwarning.warning.has-draft-relations.button-confirm": "Oui, publier",
198
- "popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { des relations de votre contenu n'est} one { des relations de votre contenu n'est} other { des relations de votre contenu ne sont}}</b> pas publié actuellement.<br></br>Cela peut engendrer des liens cassés ou des erreurs dans votre projet."
198
+ "popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { des relations de votre contenu n'est} one { des relations de votre contenu n'est} other { des relations de votre contenu ne sont}}</b> pas publié actuellement.<br></br>Cela peut engendrer des liens cassés ou des erreurs dans votre projet.",
199
+ "history.sidebar.show-newer": "Voir les versions récentes",
200
+ "history.sidebar.show-older": "Voir les anciennes versions",
201
+ "history.content.new-field.message": "Ce champ n'existait pas lorsque cette version a été sauvegardée. Si vous restaurez cette version, il sera vide.",
202
+ "history.content.unknown-fields.message": "Ces champs ont été supprimés ou renommés dans le Content-Type Builder. <b>Ces champs ne seront pas restaurés.</b>",
203
+ "history.content.no-relations": "Aucune relation.",
204
+ "history.restore.confirm.button": "Restaurer",
205
+ "history.restore.confirm.title": "Êtes-vous sûr de vouloir restaurer cette version ?",
206
+ "history.restore.confirm.message": "{isDraft, select, true {Le contenu restauré écrasera votre brouillon.} other {Le contenu restauré ne sera pas publié, il écrasera le brouillon et sera sauvegardé en tant que changement en attente de publication. Vous pourrez publier les changements à tout moment.}}",
207
+ "history.restore.success.title": "Version restaurée.",
208
+ "history.restore.success.message": "Le contenu de la version restaurée n'a pas encore été publié."
199
209
  };
200
210
  export {
201
211
  fr as default,
@@ -203,4 +213,4 @@ export {
203
213
  models,
204
214
  pageNotFound
205
215
  };
206
- //# sourceMappingURL=fr-CD9VFbPM.mjs.map
216
+ //# sourceMappingURL=fr--pg5jUbt.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"fr-CD9VFbPM.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"fr--pg5jUbt.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -54,7 +54,7 @@ const fr = {
54
54
  "components.TableEmpty.withFilters": "Aucun {contentType} n'a été trouvé avec ces filtres...",
55
55
  "components.TableEmpty.withSearch": "Aucun {contentType} n'a été trouvé avec cette recherche ({search})...",
56
56
  "components.TableEmpty.withoutFilter": "Aucun {contentType} n'a été trouvé...",
57
- "components.empty-repeatable": "Il n'a pas encore d'entrée. Cliquez sur le bouton pour en ajouter une.",
57
+ "components.empty-repeatable": "Il n'a pas encore d'entrée. Cliquez pour en ajouter une.",
58
58
  "components.notification.info.maximum-requirement": "Le nombre maximal de champs est atteint",
59
59
  "components.notification.info.minimum-requirement": "Un champ a été rajouté pour remplir les conditions minimales",
60
60
  "components.repeatable.reorder.error": "Une erreur s'est produite lors de la réorganisation du champ de votre composant, veuillez réessayer",
@@ -197,10 +197,20 @@ const fr = {
197
197
  "apiError.This attribute must be unique": "Le champ {field} doit être unique",
198
198
  "popUpWarning.warning.publish-question": "Êtes-vous sûr de vouloir le publier ?",
199
199
  "popUpwarning.warning.has-draft-relations.button-confirm": "Oui, publier",
200
- "popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { des relations de votre contenu n'est} one { des relations de votre contenu n'est} other { des relations de votre contenu ne sont}}</b> pas publié actuellement.<br></br>Cela peut engendrer des liens cassés ou des erreurs dans votre projet."
200
+ "popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { des relations de votre contenu n'est} one { des relations de votre contenu n'est} other { des relations de votre contenu ne sont}}</b> pas publié actuellement.<br></br>Cela peut engendrer des liens cassés ou des erreurs dans votre projet.",
201
+ "history.sidebar.show-newer": "Voir les versions récentes",
202
+ "history.sidebar.show-older": "Voir les anciennes versions",
203
+ "history.content.new-field.message": "Ce champ n'existait pas lorsque cette version a été sauvegardée. Si vous restaurez cette version, il sera vide.",
204
+ "history.content.unknown-fields.message": "Ces champs ont été supprimés ou renommés dans le Content-Type Builder. <b>Ces champs ne seront pas restaurés.</b>",
205
+ "history.content.no-relations": "Aucune relation.",
206
+ "history.restore.confirm.button": "Restaurer",
207
+ "history.restore.confirm.title": "Êtes-vous sûr de vouloir restaurer cette version ?",
208
+ "history.restore.confirm.message": "{isDraft, select, true {Le contenu restauré écrasera votre brouillon.} other {Le contenu restauré ne sera pas publié, il écrasera le brouillon et sera sauvegardé en tant que changement en attente de publication. Vous pourrez publier les changements à tout moment.}}",
209
+ "history.restore.success.title": "Version restaurée.",
210
+ "history.restore.success.message": "Le contenu de la version restaurée n'a pas encore été publié."
201
211
  };
202
212
  exports.default = fr;
203
213
  exports.groups = groups;
204
214
  exports.models = models;
205
215
  exports.pageNotFound = pageNotFound;
206
- //# sourceMappingURL=fr-B7kGGg3E.js.map
216
+ //# sourceMappingURL=fr-B2Kyv8Z9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fr-B7kGGg3E.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"fr-B2Kyv8Z9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,8 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
3
3
  import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useForm, useTracking, useGuidedTour, BackButton, DescriptionComponentRenderer, useTable, Table } from "@strapi/admin/strapi-admin";
4
4
  import * as React from "react";
5
5
  import { lazy } from "react";
6
- import { Button, Menu, VisuallyHidden, Flex, Typography, Dialog, Modal, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
6
+ import { Button, Menu, VisuallyHidden, Flex, Dialog, Modal, Typography, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
7
+ import mapValues from "lodash/fp/mapValues";
7
8
  import { useIntl } from "react-intl";
8
9
  import { useParams, useNavigate, Navigate, useMatch, useLocation, Link, NavLink } from "react-router-dom";
9
10
  import * as yup from "yup";
@@ -968,9 +969,10 @@ const formatEditLayout = (data, {
968
969
  currentPanelIndex += 2;
969
970
  } else {
970
971
  if (!panels[currentPanelIndex]) {
971
- panels.push([]);
972
+ panels.push([row]);
973
+ } else {
974
+ panels[currentPanelIndex].push(row);
972
975
  }
973
- panels[currentPanelIndex].push(row);
974
976
  }
975
977
  return panels;
976
978
  }, []);
@@ -1228,9 +1230,6 @@ const useContentManagerContext = () => {
1228
1230
  };
1229
1231
  };
1230
1232
  const prefixPluginTranslations = (trad, pluginId) => {
1231
- if (!pluginId) {
1232
- throw new TypeError("pluginId can't be empty");
1233
- }
1234
1233
  return Object.keys(trad).reduce((acc, current) => {
1235
1234
  acc[`${pluginId}.${current}`] = trad[current];
1236
1235
  return acc;
@@ -1664,10 +1663,10 @@ const useDocumentActions = () => {
1664
1663
  update
1665
1664
  };
1666
1665
  };
1667
- const ProtectedHistoryPage = lazy(
1668
- () => import("./History-DRwA3oMM.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1666
+ const ProtectedHistoryPage = React.lazy(
1667
+ () => import("./History-DEZDHwP0.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1669
1668
  );
1670
- const routes$1 = [
1669
+ const routes$2 = [
1671
1670
  {
1672
1671
  path: ":collectionType/:slug/:id/history",
1673
1672
  Component: ProtectedHistoryPage
@@ -1677,32 +1676,45 @@ const routes$1 = [
1677
1676
  Component: ProtectedHistoryPage
1678
1677
  }
1679
1678
  ];
1679
+ const ProtectedPreviewPage = React.lazy(
1680
+ () => import("./Preview-ot2fh0yZ.mjs").then((mod) => ({ default: mod.ProtectedPreviewPage }))
1681
+ );
1682
+ const routes$1 = [
1683
+ {
1684
+ path: ":collectionType/:slug/:id/preview",
1685
+ Component: ProtectedPreviewPage
1686
+ },
1687
+ {
1688
+ path: ":collectionType/:slug/preview",
1689
+ Component: ProtectedPreviewPage
1690
+ }
1691
+ ];
1680
1692
  const ProtectedEditViewPage = lazy(
1681
- () => import("./EditViewPage-B82x_x1b.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1693
+ () => import("./EditViewPage-BgcbLW7w.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1682
1694
  );
1683
1695
  const ProtectedListViewPage = lazy(
1684
- () => import("./ListViewPage-CELx2ysp.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1696
+ () => import("./ListViewPage-BsLdw25U.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1685
1697
  );
1686
1698
  const ProtectedListConfiguration = lazy(
1687
- () => import("./ListConfigurationPage-BxfQJzPk.mjs").then((mod) => ({
1699
+ () => import("./ListConfigurationPage-Ddz3G-It.mjs").then((mod) => ({
1688
1700
  default: mod.ProtectedListConfiguration
1689
1701
  }))
1690
1702
  );
1691
1703
  const ProtectedEditConfigurationPage = lazy(
1692
- () => import("./EditConfigurationPage-DdPNAbl3.mjs").then((mod) => ({
1704
+ () => import("./EditConfigurationPage-CDLVqqay.mjs").then((mod) => ({
1693
1705
  default: mod.ProtectedEditConfigurationPage
1694
1706
  }))
1695
1707
  );
1696
1708
  const ProtectedComponentConfigurationPage = lazy(
1697
- () => import("./ComponentConfigurationPage-DfFSZQxe.mjs").then((mod) => ({
1709
+ () => import("./ComponentConfigurationPage-DqB7veg_.mjs").then((mod) => ({
1698
1710
  default: mod.ProtectedComponentConfigurationPage
1699
1711
  }))
1700
1712
  );
1701
1713
  const NoPermissions = lazy(
1702
- () => import("./NoPermissionsPage-DWleVYK7.mjs").then((mod) => ({ default: mod.NoPermissions }))
1714
+ () => import("./NoPermissionsPage-CIPqlrQq.mjs").then((mod) => ({ default: mod.NoPermissions }))
1703
1715
  );
1704
1716
  const NoContentType = lazy(
1705
- () => import("./NoContentTypePage-DtJ9jcfk.mjs").then((mod) => ({ default: mod.NoContentType }))
1717
+ () => import("./NoContentTypePage-D0jXEWKM.mjs").then((mod) => ({ default: mod.NoContentType }))
1706
1718
  );
1707
1719
  const CollectionTypePages = () => {
1708
1720
  const { collectionType } = useParams();
@@ -1714,7 +1726,7 @@ const CollectionTypePages = () => {
1714
1726
  const CLONE_RELATIVE_PATH = ":collectionType/:slug/clone/:origin";
1715
1727
  const CLONE_PATH = `/content-manager/${CLONE_RELATIVE_PATH}`;
1716
1728
  const LIST_RELATIVE_PATH = ":collectionType/:slug";
1717
- const LIST_PATH = `/content-manager/${LIST_RELATIVE_PATH}`;
1729
+ const LIST_PATH = `/content-manager/collection-types/:slug`;
1718
1730
  const routes = [
1719
1731
  {
1720
1732
  path: LIST_RELATIVE_PATH,
@@ -1748,6 +1760,7 @@ const routes = [
1748
1760
  path: "no-content-types",
1749
1761
  Component: NoContentType
1750
1762
  },
1763
+ ...routes$2,
1751
1764
  ...routes$1
1752
1765
  ];
1753
1766
  const DocumentActions = ({ actions: actions2 }) => {
@@ -1909,43 +1922,25 @@ const DocumentActionsMenu = ({
1909
1922
  disabled: action.disabled,
1910
1923
  onSelect: handleClick(action),
1911
1924
  display: "block",
1912
- children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", gap: 4, children: [
1913
- /* @__PURE__ */ jsxs(
1914
- Flex,
1915
- {
1916
- color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
1917
- gap: 2,
1918
- tag: "span",
1919
- children: [
1920
- /* @__PURE__ */ jsx(
1921
- Flex,
1922
- {
1923
- tag: "span",
1924
- color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
1925
- children: action.icon
1926
- }
1927
- ),
1928
- action.label
1929
- ]
1930
- }
1931
- ),
1932
- action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsx(
1933
- Flex,
1934
- {
1935
- alignItems: "center",
1936
- background: "alternative100",
1937
- borderStyle: "solid",
1938
- borderColor: "alternative200",
1939
- borderWidth: "1px",
1940
- height: 5,
1941
- paddingLeft: 2,
1942
- paddingRight: 2,
1943
- hasRadius: true,
1944
- color: "alternative600",
1945
- children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", fontWeight: "bold", lineHeight: 1, children: formatMessage({ id: "global.new", defaultMessage: "New" }) })
1946
- }
1947
- )
1948
- ] })
1925
+ children: /* @__PURE__ */ jsx(Flex, { justifyContent: "space-between", gap: 4, children: /* @__PURE__ */ jsxs(
1926
+ Flex,
1927
+ {
1928
+ color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
1929
+ gap: 2,
1930
+ tag: "span",
1931
+ children: [
1932
+ /* @__PURE__ */ jsx(
1933
+ Flex,
1934
+ {
1935
+ tag: "span",
1936
+ color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
1937
+ children: action.icon
1938
+ }
1939
+ ),
1940
+ action.label
1941
+ ]
1942
+ }
1943
+ ) })
1949
1944
  },
1950
1945
  action.id
1951
1946
  );
@@ -2056,6 +2051,18 @@ const DocumentActionModal = ({
2056
2051
  typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer
2057
2052
  ] }) });
2058
2053
  };
2054
+ const transformData = (data) => {
2055
+ if (Array.isArray(data)) {
2056
+ return data.map(transformData);
2057
+ }
2058
+ if (typeof data === "object" && data !== null) {
2059
+ if ("apiData" in data) {
2060
+ return data.apiData;
2061
+ }
2062
+ return mapValues(transformData)(data);
2063
+ }
2064
+ return data;
2065
+ };
2059
2066
  const PublishAction$1 = ({
2060
2067
  activeTab,
2061
2068
  documentId,
@@ -2169,7 +2176,7 @@ const PublishAction$1 = ({
2169
2176
  documentId,
2170
2177
  params
2171
2178
  },
2172
- formValues
2179
+ transformData(formValues)
2173
2180
  );
2174
2181
  if ("data" in res && collectionType !== SINGLE_TYPES) {
2175
2182
  navigate({
@@ -2285,7 +2292,7 @@ const UpdateAction = ({
2285
2292
  documentId: cloneMatch.params.origin,
2286
2293
  params
2287
2294
  },
2288
- document
2295
+ transformData(document)
2289
2296
  );
2290
2297
  if ("data" in res) {
2291
2298
  navigate(
@@ -2306,7 +2313,7 @@ const UpdateAction = ({
2306
2313
  documentId,
2307
2314
  params
2308
2315
  },
2309
- document
2316
+ transformData(document)
2310
2317
  );
2311
2318
  if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
2312
2319
  setErrors(formatValidationErrors(res.error));
@@ -2319,7 +2326,7 @@ const UpdateAction = ({
2319
2326
  model,
2320
2327
  params
2321
2328
  },
2322
- document
2329
+ transformData(document)
2323
2330
  );
2324
2331
  if ("data" in res && collectionType !== SINGLE_TYPES) {
2325
2332
  navigate(
@@ -2524,7 +2531,7 @@ const RelativeTime = React.forwardRef(
2524
2531
  });
2525
2532
  const unit = intervals.find((intervalUnit) => {
2526
2533
  return interval[intervalUnit] > 0 && Object.keys(interval).includes(intervalUnit);
2527
- });
2534
+ }) ?? "seconds";
2528
2535
  const relativeTime = isPast(timestamp) ? -interval[unit] : interval[unit];
2529
2536
  const customInterval = customIntervals.find(
2530
2537
  (custom) => interval[custom.unit] < custom.threshold
@@ -2558,9 +2565,13 @@ const getDisplayName = ({
2558
2565
  return email ?? "";
2559
2566
  };
2560
2567
  const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
2561
- const DocumentStatus = ({ status = "draft", ...restProps }) => {
2568
+ const DocumentStatus = ({ status = "draft", size = "S", ...restProps }) => {
2562
2569
  const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
2563
- return /* @__PURE__ */ jsx(Status, { ...restProps, showBullet: false, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: capitalise(status) }) });
2570
+ const { formatMessage } = useIntl();
2571
+ return /* @__PURE__ */ jsx(Status, { ...restProps, size, variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
2572
+ id: `content-manager.containers.List.${status}`,
2573
+ defaultMessage: capitalise(status)
2574
+ }) }) });
2564
2575
  };
2565
2576
  const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
2566
2577
  const { formatMessage } = useIntl();
@@ -3007,7 +3018,7 @@ const Panel = React.forwardRef(({ children, title }, ref) => {
3007
3018
  justifyContent: "stretch",
3008
3019
  alignItems: "flex-start",
3009
3020
  children: [
3010
- /* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
3021
+ /* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", textColor: "neutral600", children: title }),
3011
3022
  children
3012
3023
  ]
3013
3024
  }
@@ -3990,6 +4001,70 @@ const { setInitialData } = actions;
3990
4001
  const reducer = combineReducers({
3991
4002
  app: reducer$1
3992
4003
  });
4004
+ const previewApi = contentManagerApi.injectEndpoints({
4005
+ endpoints: (builder) => ({
4006
+ getPreviewUrl: builder.query({
4007
+ query({ query, params }) {
4008
+ return {
4009
+ url: `/content-manager/preview/url/${params.contentType}`,
4010
+ method: "GET",
4011
+ config: {
4012
+ params: query
4013
+ }
4014
+ };
4015
+ }
4016
+ })
4017
+ })
4018
+ });
4019
+ const { useGetPreviewUrlQuery } = previewApi;
4020
+ const PreviewSidePanel = ({ model, documentId, document }) => {
4021
+ const { formatMessage } = useIntl();
4022
+ const { trackUsage } = useTracking();
4023
+ const [{ query }] = useQueryParams();
4024
+ const { data, error } = useGetPreviewUrlQuery({
4025
+ params: {
4026
+ contentType: model
4027
+ },
4028
+ query: {
4029
+ documentId,
4030
+ locale: document?.locale,
4031
+ status: document?.status
4032
+ }
4033
+ });
4034
+ if (!data?.data?.url || error) {
4035
+ return null;
4036
+ }
4037
+ const handleClick = () => {
4038
+ trackUsage("willOpenPreview");
4039
+ };
4040
+ return {
4041
+ title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
4042
+ content: /* @__PURE__ */ jsx(Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsx(
4043
+ Button,
4044
+ {
4045
+ variant: "tertiary",
4046
+ tag: Link,
4047
+ to: { pathname: "preview", search: stringify(query, { encode: false }) },
4048
+ onClick: handleClick,
4049
+ flex: "auto",
4050
+ children: formatMessage({
4051
+ id: "content-manager.preview.panel.button",
4052
+ defaultMessage: "Open preview"
4053
+ })
4054
+ }
4055
+ ) })
4056
+ };
4057
+ };
4058
+ const FEATURE_ID = "preview";
4059
+ const previewAdmin = {
4060
+ bootstrap(app) {
4061
+ if (!window.strapi.future.isEnabled(FEATURE_ID)) {
4062
+ return;
4063
+ }
4064
+ const contentManagerPluginApis = app.getPlugin("content-manager").apis;
4065
+ contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
4066
+ }
4067
+ };
3993
4068
  const index = {
3994
4069
  register(app) {
3995
4070
  const cm = new ContentManagerPlugin();
@@ -4009,7 +4084,7 @@ const index = {
4009
4084
  app.router.addRoute({
4010
4085
  path: "content-manager/*",
4011
4086
  lazy: async () => {
4012
- const { Layout } = await import("./layout-2CfjL0T9.mjs");
4087
+ const { Layout } = await import("./layout-C0QEDBAh.mjs");
4013
4088
  return {
4014
4089
  Component: Layout
4015
4090
  };
@@ -4022,11 +4097,14 @@ const index = {
4022
4097
  if (typeof historyAdmin.bootstrap === "function") {
4023
4098
  historyAdmin.bootstrap(app);
4024
4099
  }
4100
+ if (typeof previewAdmin.bootstrap === "function") {
4101
+ previewAdmin.bootstrap(app);
4102
+ }
4025
4103
  },
4026
4104
  async registerTrads({ locales }) {
4027
4105
  const importedTrads = await Promise.all(
4028
4106
  locales.map((locale) => {
4029
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-DKV44jRb.mjs"), "./translations/es.json": () => import("./es-CeXiYflN.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr-CD9VFbPM.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-CtsUxOvk.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
4107
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-D_BMf0hT.mjs"), "./translations/es.json": () => import("./es-D34tqjMw.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr--pg5jUbt.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-BHqhDq4V.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
4030
4108
  return {
4031
4109
  data: prefixPluginTranslations(data, PLUGIN_ID),
4032
4110
  locale
@@ -4053,9 +4131,10 @@ export {
4053
4131
  HOOKS as H,
4054
4132
  InjectionZone as I,
4055
4133
  useDocument as J,
4056
- index as K,
4057
- useContentManagerContext as L,
4058
- useDocumentActions as M,
4134
+ useGetPreviewUrlQuery as K,
4135
+ index as L,
4136
+ useContentManagerContext as M,
4137
+ useDocumentActions as N,
4059
4138
  Panels as P,
4060
4139
  RelativeTime as R,
4061
4140
  SINGLE_TYPES as S,
@@ -4087,4 +4166,4 @@ export {
4087
4166
  capitalise as y,
4088
4167
  useUpdateContentTypeConfigurationMutation as z
4089
4168
  };
4090
- //# sourceMappingURL=index-wnqzm4Q8.mjs.map
4169
+ //# sourceMappingURL=index-BzUT1l9A.mjs.map