@strapi/content-manager 0.0.0-next.64bd4f3d1efcc9420d27c4f4d2013677ded62360 → 0.0.0-next.6d1431fe2a53b80b47ad9f00187cd7bae9d5f46b

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 (133) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-DRh2GoZx.js → ComponentConfigurationPage-BXrB6Fyz.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-DRh2GoZx.js.map → ComponentConfigurationPage-BXrB6Fyz.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-DH3rgf1K.mjs → ComponentConfigurationPage-CS4dK8sJ.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-DH3rgf1K.mjs.map → ComponentConfigurationPage-CS4dK8sJ.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-BOAqRJUV.js → EditConfigurationPage-BFrTf6Wt.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-BOAqRJUV.js.map → EditConfigurationPage-BFrTf6Wt.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-C1HHivAz.mjs → EditConfigurationPage-KPmdp3nZ.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-C1HHivAz.mjs.map → EditConfigurationPage-KPmdp3nZ.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-DBV7CZVf.mjs → EditViewPage-BnPxp-t3.mjs} +4 -4
  10. package/dist/_chunks/EditViewPage-BnPxp-t3.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-CgfL33yw.js → EditViewPage-CCj-eG0Y.js} +4 -4
  12. package/dist/_chunks/EditViewPage-CCj-eG0Y.js.map +1 -0
  13. package/dist/_chunks/{Field-BQFK_H87.mjs → Field-DSDtEDLU.mjs} +4 -4
  14. package/dist/_chunks/Field-DSDtEDLU.mjs.map +1 -0
  15. package/dist/_chunks/{Field-C647fIuP.js → Field-SRNzJb2F.js} +4 -4
  16. package/dist/_chunks/Field-SRNzJb2F.js.map +1 -0
  17. package/dist/_chunks/{Form--31reETM.mjs → Form-C8z5hjjO.mjs} +2 -2
  18. package/dist/_chunks/{Form--31reETM.mjs.map → Form-C8z5hjjO.mjs.map} +1 -1
  19. package/dist/_chunks/{Form-CsYUrVEA.js → Form-DbQ4gxkw.js} +2 -2
  20. package/dist/_chunks/{Form-CsYUrVEA.js.map → Form-DbQ4gxkw.js.map} +1 -1
  21. package/dist/_chunks/{History-Dl6wOm0V.js → History-C23owO-n.js} +17 -39
  22. package/dist/_chunks/History-C23owO-n.js.map +1 -0
  23. package/dist/_chunks/{History-8tQaor_-.mjs → History-CuPXsYZL.mjs} +17 -39
  24. package/dist/_chunks/History-CuPXsYZL.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-_WWIGpVT.mjs → ListConfigurationPage-ChKIEXi-.mjs} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-_WWIGpVT.mjs.map → ListConfigurationPage-ChKIEXi-.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-BedUJnmo.js → ListConfigurationPage-CyfKtibC.js} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-BedUJnmo.js.map → ListConfigurationPage-CyfKtibC.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-5QzoAtAo.js → ListViewPage-BLcdkiiW.js} +3 -3
  30. package/dist/_chunks/{ListViewPage-5QzoAtAo.js.map → ListViewPage-BLcdkiiW.js.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-CZfw9OW9.mjs → ListViewPage-BicHoHdt.mjs} +3 -3
  32. package/dist/_chunks/{ListViewPage-CZfw9OW9.mjs.map → ListViewPage-BicHoHdt.mjs.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-D-RqshUI.mjs → NoContentTypePage-Clby61Hd.mjs} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-D-RqshUI.mjs.map → NoContentTypePage-Clby61Hd.mjs.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DBIyA7hd.js → NoContentTypePage-D9NSOYTF.js} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DBIyA7hd.js.map → NoContentTypePage-D9NSOYTF.js.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-CCAreseM.js → NoPermissionsPage-CPcXGv0N.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-CCAreseM.js.map → NoPermissionsPage-CPcXGv0N.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-m7GAd26r.mjs → NoPermissionsPage-DD72Qxzx.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-m7GAd26r.mjs.map → NoPermissionsPage-DD72Qxzx.mjs.map} +1 -1
  41. package/dist/_chunks/Preview-DcrNJ6zU.mjs +122 -0
  42. package/dist/_chunks/Preview-DcrNJ6zU.mjs.map +1 -0
  43. package/dist/_chunks/Preview-DpB7tlma.js +141 -0
  44. package/dist/_chunks/Preview-DpB7tlma.js.map +1 -0
  45. package/dist/_chunks/{Relations-Dq52hb_u.mjs → Relations-BK3w1JyT.mjs} +6 -3
  46. package/dist/_chunks/Relations-BK3w1JyT.mjs.map +1 -0
  47. package/dist/_chunks/{Relations-SRwPhmo7.js → Relations-mHVb9pZH.js} +6 -3
  48. package/dist/_chunks/Relations-mHVb9pZH.js.map +1 -0
  49. package/dist/_chunks/{en-DKV44jRb.mjs → en-pIGSfG2_.mjs} +8 -2
  50. package/dist/_chunks/{en-DKV44jRb.mjs.map → en-pIGSfG2_.mjs.map} +1 -1
  51. package/dist/_chunks/{en-Bm0D0IWz.js → en-tanszW-q.js} +8 -2
  52. package/dist/_chunks/{en-Bm0D0IWz.js.map → en-tanszW-q.js.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-1Bdj-6ls.mjs → index-Bl3BGqcN.mjs} +92 -21
  62. package/dist/_chunks/index-Bl3BGqcN.mjs.map +1 -0
  63. package/dist/_chunks/{index-CsrCnNa3.js → index-KzSpgsQa.js} +89 -18
  64. package/dist/_chunks/index-KzSpgsQa.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-B33V9Tdu.js → layout-CKU3YxH7.js} +3 -3
  70. package/dist/_chunks/{layout-B33V9Tdu.js.map → layout-CKU3YxH7.js.map} +1 -1
  71. package/dist/_chunks/{layout-ByD1cQSW.mjs → layout-DFhUhimv.mjs} +3 -3
  72. package/dist/_chunks/{layout-ByD1cQSW.mjs.map → layout-DFhUhimv.mjs.map} +1 -1
  73. package/dist/_chunks/{relations-BBHlo3qQ.js → relations-CnyTxXmA.js} +6 -3
  74. package/dist/_chunks/relations-CnyTxXmA.js.map +1 -0
  75. package/dist/_chunks/{relations-DFwbNLZ0.mjs → relations-KkpGHlgm.mjs} +6 -3
  76. package/dist/_chunks/relations-KkpGHlgm.mjs.map +1 -0
  77. package/dist/admin/index.js +1 -1
  78. package/dist/admin/index.mjs +4 -4
  79. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  80. package/dist/admin/src/preview/index.d.ts +1 -1
  81. package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
  82. package/dist/admin/src/preview/routes.d.ts +3 -0
  83. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  84. package/dist/server/index.js +290 -129
  85. package/dist/server/index.js.map +1 -1
  86. package/dist/server/index.mjs +290 -129
  87. package/dist/server/index.mjs.map +1 -1
  88. package/dist/server/src/controllers/index.d.ts.map +1 -1
  89. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  90. package/dist/server/src/history/services/utils.d.ts +2 -3
  91. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  92. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  93. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  94. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  95. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  96. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  97. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  98. package/dist/server/src/preview/index.d.ts.map +1 -1
  99. package/dist/server/src/preview/routes/index.d.ts +8 -0
  100. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  101. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  102. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  103. package/dist/server/src/preview/services/index.d.ts +15 -0
  104. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  105. package/dist/server/src/preview/services/preview-config.d.ts +30 -0
  106. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  107. package/dist/server/src/preview/services/preview.d.ts +12 -0
  108. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  109. package/dist/server/src/preview/utils.d.ts +18 -0
  110. package/dist/server/src/preview/utils.d.ts.map +1 -0
  111. package/dist/server/src/routes/index.d.ts.map +1 -1
  112. package/dist/server/src/services/index.d.ts.map +1 -1
  113. package/dist/shared/contracts/index.d.ts +1 -0
  114. package/dist/shared/contracts/index.d.ts.map +1 -1
  115. package/dist/shared/contracts/preview.d.ts +27 -0
  116. package/dist/shared/contracts/preview.d.ts.map +1 -0
  117. package/dist/shared/index.js +4 -0
  118. package/dist/shared/index.js.map +1 -1
  119. package/dist/shared/index.mjs +4 -0
  120. package/dist/shared/index.mjs.map +1 -1
  121. package/package.json +7 -7
  122. package/dist/_chunks/EditViewPage-CgfL33yw.js.map +0 -1
  123. package/dist/_chunks/EditViewPage-DBV7CZVf.mjs.map +0 -1
  124. package/dist/_chunks/Field-BQFK_H87.mjs.map +0 -1
  125. package/dist/_chunks/Field-C647fIuP.js.map +0 -1
  126. package/dist/_chunks/History-8tQaor_-.mjs.map +0 -1
  127. package/dist/_chunks/History-Dl6wOm0V.js.map +0 -1
  128. package/dist/_chunks/Relations-Dq52hb_u.mjs.map +0 -1
  129. package/dist/_chunks/Relations-SRwPhmo7.js.map +0 -1
  130. package/dist/_chunks/index-1Bdj-6ls.mjs.map +0 -1
  131. package/dist/_chunks/index-CsrCnNa3.js.map +0 -1
  132. package/dist/_chunks/relations-BBHlo3qQ.js.map +0 -1
  133. package/dist/_chunks/relations-DFwbNLZ0.mjs.map +0 -1
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -271,7 +271,7 @@ const documentApi = contentManagerApi.injectEndpoints({
271
271
  */
272
272
  getAllDocuments: builder.query({
273
273
  query: ({ model, params }) => ({
274
- url: `/content-manager/collection-types/${model}${params ? `?${params}` : ""}`,
274
+ url: `/content-manager/collection-types/${model}`,
275
275
  method: "GET",
276
276
  config: {
277
277
  params
@@ -969,9 +969,10 @@ const formatEditLayout = (data, {
969
969
  currentPanelIndex += 2;
970
970
  } else {
971
971
  if (!panels[currentPanelIndex]) {
972
- panels.push([]);
972
+ panels.push([row]);
973
+ } else {
974
+ panels[currentPanelIndex].push(row);
973
975
  }
974
- panels[currentPanelIndex].push(row);
975
976
  }
976
977
  return panels;
977
978
  }, []);
@@ -1662,10 +1663,10 @@ const useDocumentActions = () => {
1662
1663
  update
1663
1664
  };
1664
1665
  };
1665
- const ProtectedHistoryPage = lazy(
1666
- () => import("./History-8tQaor_-.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1666
+ const ProtectedHistoryPage = React.lazy(
1667
+ () => import("./History-CuPXsYZL.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1667
1668
  );
1668
- const routes$1 = [
1669
+ const routes$2 = [
1669
1670
  {
1670
1671
  path: ":collectionType/:slug/:id/history",
1671
1672
  Component: ProtectedHistoryPage
@@ -1675,32 +1676,45 @@ const routes$1 = [
1675
1676
  Component: ProtectedHistoryPage
1676
1677
  }
1677
1678
  ];
1679
+ const ProtectedPreviewPage = React.lazy(
1680
+ () => import("./Preview-DcrNJ6zU.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
+ ];
1678
1692
  const ProtectedEditViewPage = lazy(
1679
- () => import("./EditViewPage-DBV7CZVf.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1693
+ () => import("./EditViewPage-BnPxp-t3.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1680
1694
  );
1681
1695
  const ProtectedListViewPage = lazy(
1682
- () => import("./ListViewPage-CZfw9OW9.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1696
+ () => import("./ListViewPage-BicHoHdt.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1683
1697
  );
1684
1698
  const ProtectedListConfiguration = lazy(
1685
- () => import("./ListConfigurationPage-_WWIGpVT.mjs").then((mod) => ({
1699
+ () => import("./ListConfigurationPage-ChKIEXi-.mjs").then((mod) => ({
1686
1700
  default: mod.ProtectedListConfiguration
1687
1701
  }))
1688
1702
  );
1689
1703
  const ProtectedEditConfigurationPage = lazy(
1690
- () => import("./EditConfigurationPage-C1HHivAz.mjs").then((mod) => ({
1704
+ () => import("./EditConfigurationPage-KPmdp3nZ.mjs").then((mod) => ({
1691
1705
  default: mod.ProtectedEditConfigurationPage
1692
1706
  }))
1693
1707
  );
1694
1708
  const ProtectedComponentConfigurationPage = lazy(
1695
- () => import("./ComponentConfigurationPage-DH3rgf1K.mjs").then((mod) => ({
1709
+ () => import("./ComponentConfigurationPage-CS4dK8sJ.mjs").then((mod) => ({
1696
1710
  default: mod.ProtectedComponentConfigurationPage
1697
1711
  }))
1698
1712
  );
1699
1713
  const NoPermissions = lazy(
1700
- () => import("./NoPermissionsPage-m7GAd26r.mjs").then((mod) => ({ default: mod.NoPermissions }))
1714
+ () => import("./NoPermissionsPage-DD72Qxzx.mjs").then((mod) => ({ default: mod.NoPermissions }))
1701
1715
  );
1702
1716
  const NoContentType = lazy(
1703
- () => import("./NoContentTypePage-D-RqshUI.mjs").then((mod) => ({ default: mod.NoContentType }))
1717
+ () => import("./NoContentTypePage-Clby61Hd.mjs").then((mod) => ({ default: mod.NoContentType }))
1704
1718
  );
1705
1719
  const CollectionTypePages = () => {
1706
1720
  const { collectionType } = useParams();
@@ -1746,6 +1760,7 @@ const routes = [
1746
1760
  path: "no-content-types",
1747
1761
  Component: NoContentType
1748
1762
  },
1763
+ ...routes$2,
1749
1764
  ...routes$1
1750
1765
  ];
1751
1766
  const DocumentActions = ({ actions: actions2 }) => {
@@ -4000,13 +4015,68 @@ const { setInitialData } = actions;
4000
4015
  const reducer = combineReducers({
4001
4016
  app: reducer$1
4002
4017
  });
4018
+ const previewApi = contentManagerApi.injectEndpoints({
4019
+ endpoints: (builder) => ({
4020
+ getPreviewUrl: builder.query({
4021
+ query({ query, params }) {
4022
+ return {
4023
+ url: `/content-manager/preview/url/${params.contentType}`,
4024
+ method: "GET",
4025
+ config: {
4026
+ params: query
4027
+ }
4028
+ };
4029
+ }
4030
+ })
4031
+ })
4032
+ });
4033
+ const { useGetPreviewUrlQuery } = previewApi;
4034
+ const PreviewSidePanel = ({ model, documentId, document }) => {
4035
+ const { formatMessage } = useIntl();
4036
+ const { trackUsage } = useTracking();
4037
+ const [{ query }] = useQueryParams();
4038
+ const { data, error } = useGetPreviewUrlQuery({
4039
+ params: {
4040
+ contentType: model
4041
+ },
4042
+ query: {
4043
+ documentId,
4044
+ locale: document?.locale,
4045
+ status: document?.status
4046
+ }
4047
+ });
4048
+ if (!data?.data?.url || error) {
4049
+ return null;
4050
+ }
4051
+ const handleClick = () => {
4052
+ trackUsage("willOpenPreview");
4053
+ };
4054
+ return {
4055
+ title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
4056
+ content: /* @__PURE__ */ jsx(Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsx(
4057
+ Button,
4058
+ {
4059
+ variant: "tertiary",
4060
+ tag: Link,
4061
+ to: { pathname: "preview", search: stringify(query, { encode: false }) },
4062
+ onClick: handleClick,
4063
+ flex: "auto",
4064
+ children: formatMessage({
4065
+ id: "content-manager.preview.panel.button",
4066
+ defaultMessage: "Open preview"
4067
+ })
4068
+ }
4069
+ ) })
4070
+ };
4071
+ };
4003
4072
  const FEATURE_ID = "preview";
4004
4073
  const previewAdmin = {
4005
4074
  bootstrap(app) {
4006
4075
  if (!window.strapi.future.isEnabled(FEATURE_ID)) {
4007
- return {};
4076
+ return;
4008
4077
  }
4009
- console.log("Bootstrapping preview admin");
4078
+ const contentManagerPluginApis = app.getPlugin("content-manager").apis;
4079
+ contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
4010
4080
  }
4011
4081
  };
4012
4082
  const index = {
@@ -4028,7 +4098,7 @@ const index = {
4028
4098
  app.router.addRoute({
4029
4099
  path: "content-manager/*",
4030
4100
  lazy: async () => {
4031
- const { Layout } = await import("./layout-ByD1cQSW.mjs");
4101
+ const { Layout } = await import("./layout-DFhUhimv.mjs");
4032
4102
  return {
4033
4103
  Component: Layout
4034
4104
  };
@@ -4048,7 +4118,7 @@ const index = {
4048
4118
  async registerTrads({ locales }) {
4049
4119
  const importedTrads = await Promise.all(
4050
4120
  locales.map((locale) => {
4051
- 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 }) => {
4121
+ 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-pIGSfG2_.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 }) => {
4052
4122
  return {
4053
4123
  data: prefixPluginTranslations(data, PLUGIN_ID),
4054
4124
  locale
@@ -4075,9 +4145,10 @@ export {
4075
4145
  HOOKS as H,
4076
4146
  InjectionZone as I,
4077
4147
  useDocument as J,
4078
- index as K,
4079
- useContentManagerContext as L,
4080
- useDocumentActions as M,
4148
+ useGetPreviewUrlQuery as K,
4149
+ index as L,
4150
+ useContentManagerContext as M,
4151
+ useDocumentActions as N,
4081
4152
  Panels as P,
4082
4153
  RelativeTime as R,
4083
4154
  SINGLE_TYPES as S,
@@ -4109,4 +4180,4 @@ export {
4109
4180
  capitalise as y,
4110
4181
  useUpdateContentTypeConfigurationMutation as z
4111
4182
  };
4112
- //# sourceMappingURL=index-1Bdj-6ls.mjs.map
4183
+ //# sourceMappingURL=index-Bl3BGqcN.mjs.map