@strapi/content-manager 0.0.0-experimental.f8a68bc03b751aa0a66c4dcfaf83553c9b6adf2b → 0.0.0-experimental.fb22a8bd8745528903b2f168fdd286dfd1f5082e

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 (165) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-B2g3icXu.mjs → ComponentConfigurationPage-BaJMOQyq.mjs} +4 -4
  2. package/dist/_chunks/{ComponentConfigurationPage-B2g3icXu.mjs.map → ComponentConfigurationPage-BaJMOQyq.mjs.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-CzDn8Uxh.js → ComponentConfigurationPage-N-CTtgQa.js} +4 -4
  4. package/dist/_chunks/{ComponentConfigurationPage-CzDn8Uxh.js.map → ComponentConfigurationPage-N-CTtgQa.js.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-Bcbi6r5y.js → EditConfigurationPage-BHkjAbxH.js} +4 -4
  6. package/dist/_chunks/{EditConfigurationPage-Bcbi6r5y.js.map → EditConfigurationPage-BHkjAbxH.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-DSA1zONV.mjs → EditConfigurationPage-CKK-5LfX.mjs} +4 -4
  8. package/dist/_chunks/{EditConfigurationPage-DSA1zONV.mjs.map → EditConfigurationPage-CKK-5LfX.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-Ca2EmJpb.mjs → EditViewPage-B11aeMcf.mjs} +38 -8
  10. package/dist/_chunks/EditViewPage-B11aeMcf.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-BvcMXaP2.js → EditViewPage-QPUftxUd.js} +37 -7
  12. package/dist/_chunks/EditViewPage-QPUftxUd.js.map +1 -0
  13. package/dist/_chunks/{Field-BEYkgCZ0.mjs → Field-Bj_RgtGo.mjs} +44 -25
  14. package/dist/_chunks/Field-Bj_RgtGo.mjs.map +1 -0
  15. package/dist/_chunks/{Field-CmaWxdpf.js → Field-DUK83cfh.js} +43 -24
  16. package/dist/_chunks/Field-DUK83cfh.js.map +1 -0
  17. package/dist/_chunks/{Form-DAUpPBVM.js → Form-DHmBRlHd.js} +2 -2
  18. package/dist/_chunks/{Form-DAUpPBVM.js.map → Form-DHmBRlHd.js.map} +1 -1
  19. package/dist/_chunks/{Form-BJVbU6w4.mjs → Form-DLMSoXV7.mjs} +2 -2
  20. package/dist/_chunks/{Form-BJVbU6w4.mjs.map → Form-DLMSoXV7.mjs.map} +1 -1
  21. package/dist/_chunks/{History-M6Pk9CoY.mjs → History-CfCSNlG9.mjs} +23 -93
  22. package/dist/_chunks/History-CfCSNlG9.mjs.map +1 -0
  23. package/dist/_chunks/{History-Bw9vfT1k.js → History-Di3zm4HT.js} +22 -92
  24. package/dist/_chunks/History-Di3zm4HT.js.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-D7ior2zq.mjs → ListConfigurationPage-0mtv_iqk.mjs} +6 -5
  26. package/dist/_chunks/ListConfigurationPage-0mtv_iqk.mjs.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-DBVqF5fc.js → ListConfigurationPage-Cq361KIt.js} +5 -4
  28. package/dist/_chunks/ListConfigurationPage-Cq361KIt.js.map +1 -0
  29. package/dist/_chunks/{ListViewPage-BH37wONY.mjs → ListViewPage-BxLVROX8.mjs} +62 -39
  30. package/dist/_chunks/ListViewPage-BxLVROX8.mjs.map +1 -0
  31. package/dist/_chunks/{ListViewPage-MZu-8OKX.js → ListViewPage-DFDcG8gM.js} +62 -39
  32. package/dist/_chunks/ListViewPage-DFDcG8gM.js.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-DRp7Aem_.mjs → NoContentTypePage-BRfDd67_.mjs} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-DRp7Aem_.mjs.map → NoContentTypePage-BRfDd67_.mjs.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-C9lRMTCa.js → NoContentTypePage-BSyvnDZZ.js} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-C9lRMTCa.js.map → NoContentTypePage-BSyvnDZZ.js.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-CzhRt5CA.mjs → NoPermissionsPage-CV9V8KWa.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-CzhRt5CA.mjs.map → NoPermissionsPage-CV9V8KWa.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-COs61PpB.js → NoPermissionsPage-DyLphsn_.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-COs61PpB.js.map → NoPermissionsPage-DyLphsn_.js.map} +1 -1
  41. package/dist/_chunks/Preview-C_B1nx3g.mjs +272 -0
  42. package/dist/_chunks/Preview-C_B1nx3g.mjs.map +1 -0
  43. package/dist/_chunks/Preview-D_3aO6Ly.js +291 -0
  44. package/dist/_chunks/Preview-D_3aO6Ly.js.map +1 -0
  45. package/dist/_chunks/{Relations-68XxIzPI.mjs → Relations-C6pwmDXh.mjs} +27 -12
  46. package/dist/_chunks/Relations-C6pwmDXh.mjs.map +1 -0
  47. package/dist/_chunks/{Relations-CsGlulU_.js → Relations-Cne2AlrL.js} +26 -11
  48. package/dist/_chunks/Relations-Cne2AlrL.js.map +1 -0
  49. package/dist/_chunks/{en-DKV44jRb.mjs → en-DhFUjrNW.mjs} +15 -4
  50. package/dist/_chunks/{en-DKV44jRb.mjs.map → en-DhFUjrNW.mjs.map} +1 -1
  51. package/dist/_chunks/{en-Bm0D0IWz.js → en-Ic0kXjxB.js} +15 -4
  52. package/dist/_chunks/{en-Bm0D0IWz.js.map → en-Ic0kXjxB.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-CsfwpRfc.mjs → index-BpxR3En4.mjs} +173 -90
  62. package/dist/_chunks/index-BpxR3En4.mjs.map +1 -0
  63. package/dist/_chunks/{index-oDq3VO9j.js → index-T-aWjbj2.js} +169 -86
  64. package/dist/_chunks/index-T-aWjbj2.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-Euka-kfv.js → layout-BEuNwv-F.js} +3 -3
  70. package/dist/_chunks/{layout-Euka-kfv.js.map → layout-BEuNwv-F.js.map} +1 -1
  71. package/dist/_chunks/{layout-C5uSVTqi.mjs → layout-DhMZ_lDx.mjs} +3 -3
  72. package/dist/_chunks/{layout-C5uSVTqi.mjs.map → layout-DhMZ_lDx.mjs.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-BpHVgFuV.mjs → relations-BdnxoX6f.mjs} +6 -7
  78. package/dist/_chunks/relations-BdnxoX6f.mjs.map +1 -0
  79. package/dist/_chunks/{relations-DG7kmxa0.js → relations-kLcuobLk.js} +6 -7
  80. package/dist/_chunks/relations-kLcuobLk.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/admin/src/services/documents.d.ts +0 -3
  95. package/dist/server/index.js +392 -148
  96. package/dist/server/index.js.map +1 -1
  97. package/dist/server/index.mjs +393 -149
  98. package/dist/server/index.mjs.map +1 -1
  99. package/dist/server/src/bootstrap.d.ts.map +1 -1
  100. package/dist/server/src/controllers/index.d.ts.map +1 -1
  101. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  102. package/dist/server/src/controllers/utils/metadata.d.ts +15 -1
  103. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  104. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  105. package/dist/server/src/history/services/utils.d.ts +2 -3
  106. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  107. package/dist/server/src/index.d.ts +4 -4
  108. package/dist/server/src/preview/constants.d.ts +2 -0
  109. package/dist/server/src/preview/constants.d.ts.map +1 -0
  110. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  111. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  112. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  113. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  114. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  115. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  116. package/dist/server/src/preview/index.d.ts +4 -0
  117. package/dist/server/src/preview/index.d.ts.map +1 -0
  118. package/dist/server/src/preview/routes/index.d.ts +8 -0
  119. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  120. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  121. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  122. package/dist/server/src/preview/services/index.d.ts +16 -0
  123. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  124. package/dist/server/src/preview/services/preview-config.d.ts +32 -0
  125. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  126. package/dist/server/src/preview/services/preview.d.ts +12 -0
  127. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  128. package/dist/server/src/preview/utils.d.ts +19 -0
  129. package/dist/server/src/preview/utils.d.ts.map +1 -0
  130. package/dist/server/src/register.d.ts.map +1 -1
  131. package/dist/server/src/routes/index.d.ts.map +1 -1
  132. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  133. package/dist/server/src/services/document-metadata.d.ts +8 -8
  134. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  135. package/dist/server/src/services/index.d.ts +4 -4
  136. package/dist/server/src/services/index.d.ts.map +1 -1
  137. package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
  138. package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
  139. package/dist/server/src/utils/index.d.ts +2 -0
  140. package/dist/server/src/utils/index.d.ts.map +1 -1
  141. package/dist/shared/contracts/index.d.ts +1 -0
  142. package/dist/shared/contracts/index.d.ts.map +1 -1
  143. package/dist/shared/contracts/preview.d.ts +27 -0
  144. package/dist/shared/contracts/preview.d.ts.map +1 -0
  145. package/dist/shared/index.js +4 -0
  146. package/dist/shared/index.js.map +1 -1
  147. package/dist/shared/index.mjs +4 -0
  148. package/dist/shared/index.mjs.map +1 -1
  149. package/package.json +10 -10
  150. package/dist/_chunks/EditViewPage-BvcMXaP2.js.map +0 -1
  151. package/dist/_chunks/EditViewPage-Ca2EmJpb.mjs.map +0 -1
  152. package/dist/_chunks/Field-BEYkgCZ0.mjs.map +0 -1
  153. package/dist/_chunks/Field-CmaWxdpf.js.map +0 -1
  154. package/dist/_chunks/History-Bw9vfT1k.js.map +0 -1
  155. package/dist/_chunks/History-M6Pk9CoY.mjs.map +0 -1
  156. package/dist/_chunks/ListConfigurationPage-D7ior2zq.mjs.map +0 -1
  157. package/dist/_chunks/ListConfigurationPage-DBVqF5fc.js.map +0 -1
  158. package/dist/_chunks/ListViewPage-BH37wONY.mjs.map +0 -1
  159. package/dist/_chunks/ListViewPage-MZu-8OKX.js.map +0 -1
  160. package/dist/_chunks/Relations-68XxIzPI.mjs.map +0 -1
  161. package/dist/_chunks/Relations-CsGlulU_.js.map +0 -1
  162. package/dist/_chunks/index-CsfwpRfc.mjs.map +0 -1
  163. package/dist/_chunks/index-oDq3VO9j.js.map +0 -1
  164. package/dist/_chunks/relations-BpHVgFuV.mjs.map +0 -1
  165. package/dist/_chunks/relations-DG7kmxa0.js.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,16 +3,16 @@ 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 { Menu, Button, VisuallyHidden, Flex, Dialog, Modal, Typography, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
7
7
  import mapValues from "lodash/fp/mapValues";
8
8
  import { useIntl } from "react-intl";
9
9
  import { useParams, useNavigate, Navigate, useMatch, useLocation, Link, NavLink } from "react-router-dom";
10
+ import { styled } from "styled-components";
10
11
  import * as yup from "yup";
11
12
  import { ValidationError } from "yup";
13
+ import { stringify } from "qs";
12
14
  import pipe from "lodash/fp/pipe";
13
15
  import { intervalToDuration, isPast } from "date-fns";
14
- import { styled } from "styled-components";
15
- import { stringify } from "qs";
16
16
  import { createSlice, combineReducers } from "@reduxjs/toolkit";
17
17
  const __variableDynamicImportRuntimeHelper = (glob, path) => {
18
18
  const v = glob[path];
@@ -274,7 +274,7 @@ const documentApi = contentManagerApi.injectEndpoints({
274
274
  url: `/content-manager/collection-types/${model}`,
275
275
  method: "GET",
276
276
  config: {
277
- params
277
+ params: stringify(params, { encode: true })
278
278
  }
279
279
  }),
280
280
  providesTags: (result, _error, arg) => {
@@ -462,9 +462,6 @@ const buildValidParams = (query) => {
462
462
  {}
463
463
  )
464
464
  };
465
- if ("_q" in validQueryParams) {
466
- validQueryParams._q = encodeURIComponent(validQueryParams._q);
467
- }
468
465
  return validQueryParams;
469
466
  };
470
467
  const isBaseQueryError = (error) => {
@@ -969,9 +966,10 @@ const formatEditLayout = (data, {
969
966
  currentPanelIndex += 2;
970
967
  } else {
971
968
  if (!panels[currentPanelIndex]) {
972
- panels.push([]);
969
+ panels.push([row]);
970
+ } else {
971
+ panels[currentPanelIndex].push(row);
973
972
  }
974
- panels[currentPanelIndex].push(row);
975
973
  }
976
974
  return panels;
977
975
  }, []);
@@ -1229,9 +1227,6 @@ const useContentManagerContext = () => {
1229
1227
  };
1230
1228
  };
1231
1229
  const prefixPluginTranslations = (trad, pluginId) => {
1232
- if (!pluginId) {
1233
- throw new TypeError("pluginId can't be empty");
1234
- }
1235
1230
  return Object.keys(trad).reduce((acc, current) => {
1236
1231
  acc[`${pluginId}.${current}`] = trad[current];
1237
1232
  return acc;
@@ -1665,10 +1660,10 @@ const useDocumentActions = () => {
1665
1660
  update
1666
1661
  };
1667
1662
  };
1668
- const ProtectedHistoryPage = lazy(
1669
- () => import("./History-M6Pk9CoY.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1663
+ const ProtectedHistoryPage = React.lazy(
1664
+ () => import("./History-CfCSNlG9.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1670
1665
  );
1671
- const routes$1 = [
1666
+ const routes$2 = [
1672
1667
  {
1673
1668
  path: ":collectionType/:slug/:id/history",
1674
1669
  Component: ProtectedHistoryPage
@@ -1678,32 +1673,45 @@ const routes$1 = [
1678
1673
  Component: ProtectedHistoryPage
1679
1674
  }
1680
1675
  ];
1676
+ const ProtectedPreviewPage = React.lazy(
1677
+ () => import("./Preview-C_B1nx3g.mjs").then((mod) => ({ default: mod.ProtectedPreviewPage }))
1678
+ );
1679
+ const routes$1 = [
1680
+ {
1681
+ path: ":collectionType/:slug/:id/preview",
1682
+ Component: ProtectedPreviewPage
1683
+ },
1684
+ {
1685
+ path: ":collectionType/:slug/preview",
1686
+ Component: ProtectedPreviewPage
1687
+ }
1688
+ ];
1681
1689
  const ProtectedEditViewPage = lazy(
1682
- () => import("./EditViewPage-Ca2EmJpb.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1690
+ () => import("./EditViewPage-B11aeMcf.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1683
1691
  );
1684
1692
  const ProtectedListViewPage = lazy(
1685
- () => import("./ListViewPage-BH37wONY.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1693
+ () => import("./ListViewPage-BxLVROX8.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1686
1694
  );
1687
1695
  const ProtectedListConfiguration = lazy(
1688
- () => import("./ListConfigurationPage-D7ior2zq.mjs").then((mod) => ({
1696
+ () => import("./ListConfigurationPage-0mtv_iqk.mjs").then((mod) => ({
1689
1697
  default: mod.ProtectedListConfiguration
1690
1698
  }))
1691
1699
  );
1692
1700
  const ProtectedEditConfigurationPage = lazy(
1693
- () => import("./EditConfigurationPage-DSA1zONV.mjs").then((mod) => ({
1701
+ () => import("./EditConfigurationPage-CKK-5LfX.mjs").then((mod) => ({
1694
1702
  default: mod.ProtectedEditConfigurationPage
1695
1703
  }))
1696
1704
  );
1697
1705
  const ProtectedComponentConfigurationPage = lazy(
1698
- () => import("./ComponentConfigurationPage-B2g3icXu.mjs").then((mod) => ({
1706
+ () => import("./ComponentConfigurationPage-BaJMOQyq.mjs").then((mod) => ({
1699
1707
  default: mod.ProtectedComponentConfigurationPage
1700
1708
  }))
1701
1709
  );
1702
1710
  const NoPermissions = lazy(
1703
- () => import("./NoPermissionsPage-CzhRt5CA.mjs").then((mod) => ({ default: mod.NoPermissions }))
1711
+ () => import("./NoPermissionsPage-CV9V8KWa.mjs").then((mod) => ({ default: mod.NoPermissions }))
1704
1712
  );
1705
1713
  const NoContentType = lazy(
1706
- () => import("./NoContentTypePage-DRp7Aem_.mjs").then((mod) => ({ default: mod.NoContentType }))
1714
+ () => import("./NoContentTypePage-BRfDd67_.mjs").then((mod) => ({ default: mod.NoContentType }))
1707
1715
  );
1708
1716
  const CollectionTypePages = () => {
1709
1717
  const { collectionType } = useParams();
@@ -1715,7 +1723,7 @@ const CollectionTypePages = () => {
1715
1723
  const CLONE_RELATIVE_PATH = ":collectionType/:slug/clone/:origin";
1716
1724
  const CLONE_PATH = `/content-manager/${CLONE_RELATIVE_PATH}`;
1717
1725
  const LIST_RELATIVE_PATH = ":collectionType/:slug";
1718
- const LIST_PATH = `/content-manager/${LIST_RELATIVE_PATH}`;
1726
+ const LIST_PATH = `/content-manager/collection-types/:slug`;
1719
1727
  const routes = [
1720
1728
  {
1721
1729
  path: LIST_RELATIVE_PATH,
@@ -1749,6 +1757,7 @@ const routes = [
1749
1757
  path: "no-content-types",
1750
1758
  Component: NoContentType
1751
1759
  },
1760
+ ...routes$2,
1752
1761
  ...routes$1
1753
1762
  ];
1754
1763
  const DocumentActions = ({ actions: actions2 }) => {
@@ -1847,6 +1856,11 @@ const DocumentActionButton = (action) => {
1847
1856
  ) : null
1848
1857
  ] });
1849
1858
  };
1859
+ const MenuItem = styled(Menu.Item)`
1860
+ &:hover {
1861
+ background: ${({ theme, isVariantDanger, isDisabled }) => isVariantDanger && !isDisabled ? theme.colors.danger100 : "neutral"};
1862
+ }
1863
+ `;
1850
1864
  const DocumentActionsMenu = ({
1851
1865
  actions: actions2,
1852
1866
  children,
@@ -1905,48 +1919,32 @@ const DocumentActionsMenu = ({
1905
1919
  /* @__PURE__ */ jsxs(Menu.Content, { maxHeight: void 0, popoverPlacement: "bottom-end", children: [
1906
1920
  actions2.map((action) => {
1907
1921
  return /* @__PURE__ */ jsx(
1908
- Menu.Item,
1922
+ MenuItem,
1909
1923
  {
1910
1924
  disabled: action.disabled,
1911
1925
  onSelect: handleClick(action),
1912
1926
  display: "block",
1913
- children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", gap: 4, children: [
1914
- /* @__PURE__ */ jsxs(
1915
- Flex,
1916
- {
1917
- color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
1918
- gap: 2,
1919
- tag: "span",
1920
- children: [
1921
- /* @__PURE__ */ jsx(
1922
- Flex,
1923
- {
1924
- tag: "span",
1925
- color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
1926
- children: action.icon
1927
- }
1928
- ),
1929
- action.label
1930
- ]
1931
- }
1932
- ),
1933
- action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsx(
1934
- Flex,
1935
- {
1936
- alignItems: "center",
1937
- background: "alternative100",
1938
- borderStyle: "solid",
1939
- borderColor: "alternative200",
1940
- borderWidth: "1px",
1941
- height: 5,
1942
- paddingLeft: 2,
1943
- paddingRight: 2,
1944
- hasRadius: true,
1945
- color: "alternative600",
1946
- children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", fontWeight: "bold", lineHeight: 1, children: formatMessage({ id: "global.new", defaultMessage: "New" }) })
1947
- }
1948
- )
1949
- ] })
1927
+ isVariantDanger: action.variant === "danger",
1928
+ isDisabled: action.disabled,
1929
+ children: /* @__PURE__ */ jsx(Flex, { justifyContent: "space-between", gap: 4, children: /* @__PURE__ */ jsxs(
1930
+ Flex,
1931
+ {
1932
+ color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
1933
+ gap: 2,
1934
+ tag: "span",
1935
+ children: [
1936
+ /* @__PURE__ */ jsx(
1937
+ Flex,
1938
+ {
1939
+ tag: "span",
1940
+ color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
1941
+ children: action.icon
1942
+ }
1943
+ ),
1944
+ action.label
1945
+ ]
1946
+ }
1947
+ ) })
1950
1948
  },
1951
1949
  action.id
1952
1950
  );
@@ -2083,6 +2081,7 @@ const PublishAction$1 = ({
2083
2081
  const { _unstableFormatValidationErrors: formatValidationErrors } = useAPIErrorHandler();
2084
2082
  const isListView = useMatch(LIST_PATH) !== null;
2085
2083
  const isCloning = useMatch(CLONE_PATH) !== null;
2084
+ const { id } = useParams();
2086
2085
  const { formatMessage } = useIntl();
2087
2086
  const canPublish = useDocumentRBAC("PublishAction", ({ canPublish: canPublish2 }) => canPublish2);
2088
2087
  const { publish } = useDocumentActions();
@@ -2185,10 +2184,12 @@ const PublishAction$1 = ({
2185
2184
  transformData(formValues)
2186
2185
  );
2187
2186
  if ("data" in res && collectionType !== SINGLE_TYPES) {
2188
- navigate({
2189
- pathname: `../${collectionType}/${model}/${res.data.documentId}`,
2190
- search: rawQuery
2191
- });
2187
+ if (id === "create") {
2188
+ navigate({
2189
+ pathname: `../${collectionType}/${model}/${res.data.documentId}`,
2190
+ search: rawQuery
2191
+ });
2192
+ }
2192
2193
  } else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
2193
2194
  setErrors(formatValidationErrors(res.error));
2194
2195
  }
@@ -2272,7 +2273,7 @@ const UpdateAction = ({
2272
2273
  */
2273
2274
  disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
2274
2275
  label: formatMessage({
2275
- id: "content-manager.containers.Edit.save",
2276
+ id: "global.save",
2276
2277
  defaultMessage: "Save"
2277
2278
  }),
2278
2279
  onClick: async () => {
@@ -2537,7 +2538,7 @@ const RelativeTime = React.forwardRef(
2537
2538
  });
2538
2539
  const unit = intervals.find((intervalUnit) => {
2539
2540
  return interval[intervalUnit] > 0 && Object.keys(interval).includes(intervalUnit);
2540
- });
2541
+ }) ?? "seconds";
2541
2542
  const relativeTime = isPast(timestamp) ? -interval[unit] : interval[unit];
2542
2543
  const customInterval = customIntervals.find(
2543
2544
  (custom) => interval[custom.unit] < custom.threshold
@@ -2571,19 +2572,29 @@ const getDisplayName = ({
2571
2572
  return email ?? "";
2572
2573
  };
2573
2574
  const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
2574
- const DocumentStatus = ({ status = "draft", ...restProps }) => {
2575
+ const DocumentStatus = ({ status = "draft", size = "S", ...restProps }) => {
2575
2576
  const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
2576
- return /* @__PURE__ */ jsx(Status, { ...restProps, showBullet: false, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: capitalise(status) }) });
2577
+ const { formatMessage } = useIntl();
2578
+ return /* @__PURE__ */ jsx(Status, { ...restProps, size, variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
2579
+ id: `content-manager.containers.List.${status}`,
2580
+ defaultMessage: capitalise(status)
2581
+ }) }) });
2577
2582
  };
2578
2583
  const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
2579
2584
  const { formatMessage } = useIntl();
2580
2585
  const isCloning = useMatch(CLONE_PATH) !== null;
2586
+ const params = useParams();
2581
2587
  const title = isCreating ? formatMessage({
2582
2588
  id: "content-manager.containers.edit.title.new",
2583
2589
  defaultMessage: "Create an entry"
2584
2590
  }) : documentTitle;
2585
2591
  return /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "flex-start", paddingTop: 6, paddingBottom: 4, gap: 2, children: [
2586
- /* @__PURE__ */ jsx(BackButton, {}),
2592
+ /* @__PURE__ */ jsx(
2593
+ BackButton,
2594
+ {
2595
+ fallback: params.collectionType === SINGLE_TYPES ? void 0 : `../${COLLECTION_TYPES}/${params.slug}`
2596
+ }
2597
+ ),
2587
2598
  /* @__PURE__ */ jsxs(Flex, { width: "100%", justifyContent: "space-between", gap: "80px", alignItems: "flex-start", children: [
2588
2599
  /* @__PURE__ */ jsx(Typography, { variant: "alpha", tag: "h1", children: title }),
2589
2600
  /* @__PURE__ */ jsx(HeaderToolbar, {})
@@ -3020,7 +3031,7 @@ const Panel = React.forwardRef(({ children, title }, ref) => {
3020
3031
  justifyContent: "stretch",
3021
3032
  alignItems: "flex-start",
3022
3033
  children: [
3023
- /* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
3034
+ /* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", textColor: "neutral600", children: title }),
3024
3035
  children
3025
3036
  ]
3026
3037
  }
@@ -3270,18 +3281,10 @@ const SelectedEntriesTableContent = ({
3270
3281
  search: row.locale && `?plugins[i18n][locale]=${row.locale}`
3271
3282
  },
3272
3283
  state: { from: pathname },
3273
- label: formatMessage(
3274
- { id: "app.component.HelperPluginTable.edit", defaultMessage: "Edit {target}" },
3275
- {
3276
- target: formatMessage(
3277
- {
3278
- id: "content-manager.components.ListViewHelperPluginTable.row-line",
3279
- defaultMessage: "item line {number}"
3280
- },
3281
- { number: index2 + 1 }
3282
- )
3283
- }
3284
- ),
3284
+ label: formatMessage({
3285
+ id: "content-manager.bulk-publish.edit",
3286
+ defaultMessage: "Edit"
3287
+ }),
3285
3288
  target: "_blank",
3286
3289
  marginLeft: "auto",
3287
3290
  variant: "ghost",
@@ -3925,17 +3928,27 @@ const HistoryAction = ({ model, document }) => {
3925
3928
  const { formatMessage } = useIntl();
3926
3929
  const [{ query }] = useQueryParams();
3927
3930
  const navigate = useNavigate();
3931
+ const { trackUsage } = useTracking();
3932
+ const { pathname } = useLocation();
3928
3933
  const pluginsQueryParams = stringify({ plugins: query.plugins }, { encode: false });
3929
3934
  if (!window.strapi.features.isEnabled("cms-content-history")) {
3930
3935
  return null;
3931
3936
  }
3937
+ const handleOnClick = () => {
3938
+ const destination = { pathname: "history", search: pluginsQueryParams };
3939
+ trackUsage("willNavigate", {
3940
+ from: pathname,
3941
+ to: `${pathname}/${destination.pathname}`
3942
+ });
3943
+ navigate(destination);
3944
+ };
3932
3945
  return {
3933
3946
  icon: /* @__PURE__ */ jsx(ClockCounterClockwise, {}),
3934
3947
  label: formatMessage({
3935
3948
  id: "content-manager.history.document-action",
3936
3949
  defaultMessage: "Content History"
3937
3950
  }),
3938
- onClick: () => navigate({ pathname: "history", search: pluginsQueryParams }),
3951
+ onClick: handleOnClick,
3939
3952
  disabled: (
3940
3953
  /**
3941
3954
  * The user is creating a new document.
@@ -4003,6 +4016,72 @@ const { setInitialData } = actions;
4003
4016
  const reducer = combineReducers({
4004
4017
  app: reducer$1
4005
4018
  });
4019
+ const previewApi = contentManagerApi.injectEndpoints({
4020
+ endpoints: (builder) => ({
4021
+ getPreviewUrl: builder.query({
4022
+ query({ query, params }) {
4023
+ return {
4024
+ url: `/content-manager/preview/url/${params.contentType}`,
4025
+ method: "GET",
4026
+ config: {
4027
+ params: query
4028
+ }
4029
+ };
4030
+ }
4031
+ })
4032
+ })
4033
+ });
4034
+ const { useGetPreviewUrlQuery } = previewApi;
4035
+ const PreviewSidePanel = ({ model, documentId, document }) => {
4036
+ const { formatMessage } = useIntl();
4037
+ const { trackUsage } = useTracking();
4038
+ const { pathname } = useLocation();
4039
+ const [{ query }] = useQueryParams();
4040
+ const { data, error } = useGetPreviewUrlQuery({
4041
+ params: {
4042
+ contentType: model
4043
+ },
4044
+ query: {
4045
+ documentId,
4046
+ locale: document?.locale,
4047
+ status: document?.status
4048
+ }
4049
+ });
4050
+ if (!data?.data?.url || error) {
4051
+ return null;
4052
+ }
4053
+ const trackNavigation = () => {
4054
+ const destinationPathname = pathname.replace(/\/$/, "") + "/preview";
4055
+ trackUsage("willNavigate", { from: pathname, to: destinationPathname });
4056
+ };
4057
+ return {
4058
+ title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
4059
+ content: /* @__PURE__ */ jsx(Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsx(
4060
+ Button,
4061
+ {
4062
+ variant: "tertiary",
4063
+ tag: Link,
4064
+ to: { pathname: "preview", search: stringify(query, { encode: false }) },
4065
+ onClick: trackNavigation,
4066
+ flex: "auto",
4067
+ children: formatMessage({
4068
+ id: "content-manager.preview.panel.button",
4069
+ defaultMessage: "Open preview"
4070
+ })
4071
+ }
4072
+ ) })
4073
+ };
4074
+ };
4075
+ const FEATURE_ID = "preview";
4076
+ const previewAdmin = {
4077
+ bootstrap(app) {
4078
+ if (!window.strapi.future.isEnabled(FEATURE_ID)) {
4079
+ return;
4080
+ }
4081
+ const contentManagerPluginApis = app.getPlugin("content-manager").apis;
4082
+ contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
4083
+ }
4084
+ };
4006
4085
  const index = {
4007
4086
  register(app) {
4008
4087
  const cm = new ContentManagerPlugin();
@@ -4022,7 +4101,7 @@ const index = {
4022
4101
  app.router.addRoute({
4023
4102
  path: "content-manager/*",
4024
4103
  lazy: async () => {
4025
- const { Layout } = await import("./layout-C5uSVTqi.mjs");
4104
+ const { Layout } = await import("./layout-DhMZ_lDx.mjs");
4026
4105
  return {
4027
4106
  Component: Layout
4028
4107
  };
@@ -4035,11 +4114,14 @@ const index = {
4035
4114
  if (typeof historyAdmin.bootstrap === "function") {
4036
4115
  historyAdmin.bootstrap(app);
4037
4116
  }
4117
+ if (typeof previewAdmin.bootstrap === "function") {
4118
+ previewAdmin.bootstrap(app);
4119
+ }
4038
4120
  },
4039
4121
  async registerTrads({ locales }) {
4040
4122
  const importedTrads = await Promise.all(
4041
4123
  locales.map((locale) => {
4042
- 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 }) => {
4124
+ 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-DhFUjrNW.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 }) => {
4043
4125
  return {
4044
4126
  data: prefixPluginTranslations(data, PLUGIN_ID),
4045
4127
  locale
@@ -4066,9 +4148,10 @@ export {
4066
4148
  HOOKS as H,
4067
4149
  InjectionZone as I,
4068
4150
  useDocument as J,
4069
- index as K,
4070
- useContentManagerContext as L,
4071
- useDocumentActions as M,
4151
+ useGetPreviewUrlQuery as K,
4152
+ index as L,
4153
+ useContentManagerContext as M,
4154
+ useDocumentActions as N,
4072
4155
  Panels as P,
4073
4156
  RelativeTime as R,
4074
4157
  SINGLE_TYPES as S,
@@ -4100,4 +4183,4 @@ export {
4100
4183
  capitalise as y,
4101
4184
  useUpdateContentTypeConfigurationMutation as z
4102
4185
  };
4103
- //# sourceMappingURL=index-CsfwpRfc.mjs.map
4186
+ //# sourceMappingURL=index-BpxR3En4.mjs.map