@strapi/content-manager 0.0.0-experimental.e02b4637b3906c6d31048d00600d09a23a0edc3d → 0.0.0-experimental.e12978dcee698470990e9c5c63384faf2c307443

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 (487) hide show
  1. package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs +80 -0
  2. package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs.map +1 -0
  3. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js +82 -0
  4. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js.map +1 -0
  5. package/dist/admin/chunks/ComponentConfigurationPage-Ci3dN40b.js +298 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-Ci3dN40b.js.map +1 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-DFPdl9pm.mjs +276 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-DFPdl9pm.mjs.map +1 -0
  9. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs +153 -0
  10. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs.map +1 -0
  11. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js +176 -0
  12. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js.map +1 -0
  13. package/dist/admin/chunks/EditConfigurationPage-7xe8u-Pp.js +180 -0
  14. package/dist/admin/chunks/EditConfigurationPage-7xe8u-Pp.js.map +1 -0
  15. package/dist/admin/chunks/EditConfigurationPage-BFse-urJ.mjs +158 -0
  16. package/dist/admin/chunks/EditConfigurationPage-BFse-urJ.mjs.map +1 -0
  17. package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs +315 -0
  18. package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs.map +1 -0
  19. package/dist/admin/chunks/EditViewPage-CwYSs8Cq.js +338 -0
  20. package/dist/admin/chunks/EditViewPage-CwYSs8Cq.js.map +1 -0
  21. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs +56 -0
  22. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs.map +1 -0
  23. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js +58 -0
  24. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js.map +1 -0
  25. package/dist/admin/chunks/Form-D9Ee-exF.mjs +955 -0
  26. package/dist/admin/chunks/Form-D9Ee-exF.mjs.map +1 -0
  27. package/dist/admin/chunks/Form-DDbxreII.js +978 -0
  28. package/dist/admin/chunks/Form-DDbxreII.js.map +1 -0
  29. package/dist/admin/chunks/History-D5joC76n.js +1384 -0
  30. package/dist/admin/chunks/History-D5joC76n.js.map +1 -0
  31. package/dist/admin/chunks/History-FuD7Tp5I.mjs +1361 -0
  32. package/dist/admin/chunks/History-FuD7Tp5I.mjs.map +1 -0
  33. package/dist/admin/chunks/Input-BHucdqva.mjs +8251 -0
  34. package/dist/admin/chunks/Input-BHucdqva.mjs.map +1 -0
  35. package/dist/admin/chunks/Input-BJCenRYN.js +8285 -0
  36. package/dist/admin/chunks/Input-BJCenRYN.js.map +1 -0
  37. package/dist/admin/chunks/ListConfigurationPage-3kSfz9xV.mjs +795 -0
  38. package/dist/admin/chunks/ListConfigurationPage-3kSfz9xV.mjs.map +1 -0
  39. package/dist/admin/chunks/ListConfigurationPage-CgJEcEkD.js +818 -0
  40. package/dist/admin/chunks/ListConfigurationPage-CgJEcEkD.js.map +1 -0
  41. package/dist/admin/chunks/ListViewPage-CvQ1w8IW.js +1154 -0
  42. package/dist/admin/chunks/ListViewPage-CvQ1w8IW.js.map +1 -0
  43. package/dist/admin/chunks/ListViewPage-DPUYRHss.mjs +1132 -0
  44. package/dist/admin/chunks/ListViewPage-DPUYRHss.mjs.map +1 -0
  45. package/dist/admin/chunks/NoContentTypePage-BRLLtjLb.mjs +58 -0
  46. package/dist/admin/chunks/NoContentTypePage-BRLLtjLb.mjs.map +1 -0
  47. package/dist/admin/chunks/NoContentTypePage-C5Vut1Af.js +60 -0
  48. package/dist/admin/chunks/NoContentTypePage-C5Vut1Af.js.map +1 -0
  49. package/dist/admin/chunks/NoPermissionsPage-B5HJbcjm.mjs +37 -0
  50. package/dist/admin/chunks/NoPermissionsPage-B5HJbcjm.mjs.map +1 -0
  51. package/dist/admin/chunks/NoPermissionsPage-BBXnpc7M.js +39 -0
  52. package/dist/admin/chunks/NoPermissionsPage-BBXnpc7M.js.map +1 -0
  53. package/dist/admin/chunks/Preview-C3lnOgQx.mjs +679 -0
  54. package/dist/admin/chunks/Preview-C3lnOgQx.mjs.map +1 -0
  55. package/dist/admin/chunks/Preview-DB7ZGawL.js +701 -0
  56. package/dist/admin/chunks/Preview-DB7ZGawL.js.map +1 -0
  57. package/dist/admin/chunks/ar-DckYq_WK.mjs +222 -0
  58. package/dist/{_chunks/ar-CCEVvqGG.mjs.map → admin/chunks/ar-DckYq_WK.mjs.map} +1 -1
  59. package/dist/admin/chunks/ar-DeQBSsfl.js +227 -0
  60. package/dist/{_chunks/ru-BT3ybNny.js.map → admin/chunks/ar-DeQBSsfl.js.map} +1 -1
  61. package/dist/admin/chunks/ca-ClDTvatJ.js +202 -0
  62. package/dist/admin/chunks/ca-ClDTvatJ.js.map +1 -0
  63. package/dist/admin/chunks/ca-DviY7mRj.mjs +197 -0
  64. package/dist/admin/chunks/ca-DviY7mRj.mjs.map +1 -0
  65. package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
  66. package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
  67. package/dist/admin/chunks/cs-C7OSYFQ7.mjs +122 -0
  68. package/dist/{_chunks/cs-CM2aBUar.mjs.map → admin/chunks/cs-C7OSYFQ7.mjs.map} +1 -1
  69. package/dist/admin/chunks/de-5QRlDHyR.mjs +195 -0
  70. package/dist/{_chunks/eu-CdALomew.mjs.map → admin/chunks/de-5QRlDHyR.mjs.map} +1 -1
  71. package/dist/admin/chunks/de-CbImAUA5.js +200 -0
  72. package/dist/{_chunks/gu-BRmF601H.js.map → admin/chunks/de-CbImAUA5.js.map} +1 -1
  73. package/dist/admin/chunks/en-CH__IC8g.js +316 -0
  74. package/dist/{_chunks/en-Bm0D0IWz.js.map → admin/chunks/en-CH__IC8g.js.map} +1 -1
  75. package/dist/admin/chunks/en-DBP0Gaid.mjs +311 -0
  76. package/dist/{_chunks/en-DKV44jRb.mjs.map → admin/chunks/en-DBP0Gaid.mjs.map} +1 -1
  77. package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
  78. package/dist/{_chunks/es-EUonQTon.js.map → admin/chunks/es-C8vLuvZL.js.map} +1 -1
  79. package/dist/admin/chunks/es-DkoWSExG.mjs +192 -0
  80. package/dist/{_chunks/ja-CtsUxOvk.mjs.map → admin/chunks/es-DkoWSExG.mjs.map} +1 -1
  81. package/dist/admin/chunks/eu-BG1xX7HK.mjs +198 -0
  82. package/dist/admin/chunks/eu-BG1xX7HK.mjs.map +1 -0
  83. package/dist/admin/chunks/eu-BJW3AvXu.js +203 -0
  84. package/dist/admin/chunks/eu-BJW3AvXu.js.map +1 -0
  85. package/dist/admin/chunks/fr-CFdRaRVj.mjs +215 -0
  86. package/dist/admin/chunks/fr-CFdRaRVj.mjs.map +1 -0
  87. package/dist/admin/chunks/fr-gQSilC7w.js +220 -0
  88. package/dist/admin/chunks/fr-gQSilC7w.js.map +1 -0
  89. package/dist/admin/chunks/gu-D5MMMXRs.mjs +196 -0
  90. package/dist/admin/chunks/gu-D5MMMXRs.mjs.map +1 -0
  91. package/dist/admin/chunks/gu-DPU4wyx7.js +201 -0
  92. package/dist/{_chunks/eu-VDH-3ovk.js.map → admin/chunks/gu-DPU4wyx7.js.map} +1 -1
  93. package/dist/admin/chunks/hi-Dp4omeBb.js +201 -0
  94. package/dist/admin/chunks/hi-Dp4omeBb.js.map +1 -0
  95. package/dist/admin/chunks/hi-lp17SCjr.mjs +196 -0
  96. package/dist/admin/chunks/hi-lp17SCjr.mjs.map +1 -0
  97. package/dist/{_chunks/hooks-BAaaKPS_.js → admin/chunks/hooks-D-sOYd1s.js} +6 -3
  98. package/dist/admin/chunks/hooks-D-sOYd1s.js.map +1 -0
  99. package/dist/admin/chunks/hooks-DMvik5y_.mjs +7 -0
  100. package/dist/admin/chunks/hooks-DMvik5y_.mjs.map +1 -0
  101. package/dist/admin/chunks/hu-CLka1U2C.mjs +198 -0
  102. package/dist/admin/chunks/hu-CLka1U2C.mjs.map +1 -0
  103. package/dist/admin/chunks/hu-CtFJuhTd.js +203 -0
  104. package/dist/admin/chunks/hu-CtFJuhTd.js.map +1 -0
  105. package/dist/admin/chunks/id-D7V5S1rB.js +161 -0
  106. package/dist/{_chunks/it-DkBIs7vD.js.map → admin/chunks/id-D7V5S1rB.js.map} +1 -1
  107. package/dist/admin/chunks/id-USfY9m1g.mjs +156 -0
  108. package/dist/{_chunks/id-BtwA9WJT.mjs.map → admin/chunks/id-USfY9m1g.mjs.map} +1 -1
  109. package/dist/admin/chunks/index-DYrCidCq.mjs +5436 -0
  110. package/dist/admin/chunks/index-DYrCidCq.mjs.map +1 -0
  111. package/dist/admin/chunks/index-DoUQnFTk.js +5506 -0
  112. package/dist/admin/chunks/index-DoUQnFTk.js.map +1 -0
  113. package/dist/admin/chunks/it-BAHrwmYS.mjs +158 -0
  114. package/dist/{_chunks/it-BrVPqaf1.mjs.map → admin/chunks/it-BAHrwmYS.mjs.map} +1 -1
  115. package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
  116. package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
  117. package/dist/admin/chunks/ja-BWKmBJFT.mjs +192 -0
  118. package/dist/{_chunks/ko-HVQRlfUI.mjs.map → admin/chunks/ja-BWKmBJFT.mjs.map} +1 -1
  119. package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
  120. package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ja-jdQM-B79.js.map} +1 -1
  121. package/dist/admin/chunks/ko-CgADGBNt.mjs +191 -0
  122. package/dist/{_chunks/es-CeXiYflN.mjs.map → admin/chunks/ko-CgADGBNt.mjs.map} +1 -1
  123. package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
  124. package/dist/{_chunks/ja-CcFe8diO.js.map → admin/chunks/ko-k46sEyzt.js.map} +1 -1
  125. package/dist/admin/chunks/layout-CqndYVtU.js +692 -0
  126. package/dist/admin/chunks/layout-CqndYVtU.js.map +1 -0
  127. package/dist/admin/chunks/layout-D2NJmgCw.mjs +672 -0
  128. package/dist/admin/chunks/layout-D2NJmgCw.mjs.map +1 -0
  129. package/dist/admin/chunks/ml-CnhCfOn_.mjs +196 -0
  130. package/dist/admin/chunks/ml-CnhCfOn_.mjs.map +1 -0
  131. package/dist/admin/chunks/ml-DqxPwODx.js +201 -0
  132. package/dist/admin/chunks/ml-DqxPwODx.js.map +1 -0
  133. package/dist/admin/chunks/ms-Bh09NFff.mjs +140 -0
  134. package/dist/{_chunks/ms-m_WjyWx7.mjs.map → admin/chunks/ms-Bh09NFff.mjs.map} +1 -1
  135. package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
  136. package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/ms-CvSC0OdG.js.map} +1 -1
  137. package/dist/admin/chunks/nl-BEubhS8C.js +203 -0
  138. package/dist/admin/chunks/nl-BEubhS8C.js.map +1 -0
  139. package/dist/admin/chunks/nl-C8HYflTc.mjs +198 -0
  140. package/dist/admin/chunks/nl-C8HYflTc.mjs.map +1 -0
  141. package/dist/admin/chunks/objects-BJTP843m.js +343 -0
  142. package/dist/admin/chunks/objects-BJTP843m.js.map +1 -0
  143. package/dist/admin/chunks/objects-D2z-IJgu.mjs +317 -0
  144. package/dist/admin/chunks/objects-D2z-IJgu.mjs.map +1 -0
  145. package/dist/admin/chunks/pl-DWhGDzmM.js +200 -0
  146. package/dist/{_chunks/ca-Cmk45QO6.js.map → admin/chunks/pl-DWhGDzmM.js.map} +1 -1
  147. package/dist/admin/chunks/pl-MFCZJZuZ.mjs +195 -0
  148. package/dist/{_chunks/ca-5U32ON2v.mjs.map → admin/chunks/pl-MFCZJZuZ.mjs.map} +1 -1
  149. package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
  150. package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CPtAXD-4.js.map} +1 -1
  151. package/dist/admin/chunks/pt-BR-CcotyBGJ.mjs +197 -0
  152. package/dist/{_chunks/pt-BR-C71iDxnh.mjs.map → admin/chunks/pt-BR-CcotyBGJ.mjs.map} +1 -1
  153. package/dist/admin/chunks/pt-BoPxN80n.js +96 -0
  154. package/dist/admin/chunks/pt-BoPxN80n.js.map +1 -0
  155. package/dist/admin/chunks/pt-HbmgeiYO.mjs +93 -0
  156. package/dist/admin/chunks/pt-HbmgeiYO.mjs.map +1 -0
  157. package/dist/admin/chunks/ru-C0op0ALG.js +232 -0
  158. package/dist/admin/chunks/ru-C0op0ALG.js.map +1 -0
  159. package/dist/admin/chunks/ru-CB4BUyQp.mjs +230 -0
  160. package/dist/{_chunks/ru-BE6A4Exp.mjs.map → admin/chunks/ru-CB4BUyQp.mjs.map} +1 -1
  161. package/dist/admin/chunks/sa-B_FuPyMw.js +201 -0
  162. package/dist/admin/chunks/sa-B_FuPyMw.js.map +1 -0
  163. package/dist/admin/chunks/sa-n_aPA-pU.mjs +196 -0
  164. package/dist/admin/chunks/sa-n_aPA-pU.mjs.map +1 -0
  165. package/dist/admin/chunks/sk-D_iXML2C.js +203 -0
  166. package/dist/admin/chunks/sk-D_iXML2C.js.map +1 -0
  167. package/dist/admin/chunks/sk-tn_BDjE2.mjs +198 -0
  168. package/dist/admin/chunks/sk-tn_BDjE2.mjs.map +1 -0
  169. package/dist/admin/chunks/sv-BstBC1Yp.js +203 -0
  170. package/dist/admin/chunks/sv-BstBC1Yp.js.map +1 -0
  171. package/dist/admin/chunks/sv-cq4ZrQRd.mjs +198 -0
  172. package/dist/admin/chunks/sv-cq4ZrQRd.mjs.map +1 -0
  173. package/dist/admin/chunks/th-lXoOCqPC.js +149 -0
  174. package/dist/{_chunks/th-D9_GfAjc.js.map → admin/chunks/th-lXoOCqPC.js.map} +1 -1
  175. package/dist/admin/chunks/th-mUH7hEtc.mjs +144 -0
  176. package/dist/{_chunks/uk-CR-zDhAY.mjs.map → admin/chunks/th-mUH7hEtc.mjs.map} +1 -1
  177. package/dist/admin/chunks/tr-CkS6sLIE.js +200 -0
  178. package/dist/admin/chunks/tr-CkS6sLIE.js.map +1 -0
  179. package/dist/admin/chunks/tr-Yt38daxh.mjs +195 -0
  180. package/dist/{_chunks/de-C72KDNOl.mjs.map → admin/chunks/tr-Yt38daxh.mjs.map} +1 -1
  181. package/dist/admin/chunks/uk-BtM6WnaE.mjs +313 -0
  182. package/dist/admin/chunks/uk-BtM6WnaE.mjs.map +1 -0
  183. package/dist/admin/chunks/uk-DB6OgySY.js +318 -0
  184. package/dist/admin/chunks/uk-DB6OgySY.js.map +1 -0
  185. package/dist/admin/chunks/usePrev-Cm_0-qRC.js +194 -0
  186. package/dist/admin/chunks/usePrev-Cm_0-qRC.js.map +1 -0
  187. package/dist/admin/chunks/usePrev-DinC2aha.mjs +187 -0
  188. package/dist/admin/chunks/usePrev-DinC2aha.mjs.map +1 -0
  189. package/dist/admin/chunks/vi-BGr1X_HZ.js +112 -0
  190. package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-BGr1X_HZ.js.map} +1 -1
  191. package/dist/admin/chunks/vi-CvBGlTjr.mjs +108 -0
  192. package/dist/{_chunks/vi-DUXIk_fw.mjs.map → admin/chunks/vi-CvBGlTjr.mjs.map} +1 -1
  193. package/dist/admin/chunks/zh-BmF-sHaT.mjs +205 -0
  194. package/dist/admin/chunks/zh-BmF-sHaT.mjs.map +1 -0
  195. package/dist/admin/chunks/zh-DwFu_Kfj.js +210 -0
  196. package/dist/admin/chunks/zh-DwFu_Kfj.js.map +1 -0
  197. package/dist/admin/chunks/zh-Hans-CI0HKio3.mjs +934 -0
  198. package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-CI0HKio3.mjs.map} +1 -1
  199. package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
  200. package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
  201. package/dist/admin/index.js +25 -4
  202. package/dist/admin/index.js.map +1 -1
  203. package/dist/admin/index.mjs +17 -12
  204. package/dist/admin/index.mjs.map +1 -1
  205. package/dist/admin/src/components/InjectionZone.d.ts +7 -1
  206. package/dist/admin/src/content-manager.d.ts +7 -2
  207. package/dist/admin/src/exports.d.ts +1 -0
  208. package/dist/admin/src/features/DocumentContext.d.ts +48 -0
  209. package/dist/admin/src/features/DocumentRBAC.d.ts +3 -2
  210. package/dist/admin/src/history/services/historyVersion.d.ts +2 -2
  211. package/dist/admin/src/hooks/useDocument.d.ts +23 -4
  212. package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
  213. package/dist/admin/src/index.d.ts +1 -0
  214. package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
  215. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -2
  216. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +3 -3
  217. package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
  218. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +55 -0
  219. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -0
  220. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +4 -1
  221. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -1
  222. package/dist/admin/src/pages/EditView/components/FormInputs/Relations/RelationModal.d.ts +7 -0
  223. package/dist/admin/src/pages/EditView/components/FormInputs/{Relations.d.ts → Relations/Relations.d.ts} +8 -2
  224. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
  225. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +32 -1
  226. package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +3 -3
  227. package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
  228. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
  229. package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
  230. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  231. package/dist/admin/src/preview/index.d.ts +3 -0
  232. package/dist/admin/src/preview/pages/Preview.d.ts +15 -0
  233. package/dist/admin/src/preview/routes.d.ts +3 -0
  234. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  235. package/dist/admin/src/router.d.ts +1 -1
  236. package/dist/admin/src/services/api.d.ts +1 -1
  237. package/dist/admin/src/services/components.d.ts +2 -2
  238. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  239. package/dist/admin/src/services/documents.d.ts +16 -19
  240. package/dist/admin/src/services/init.d.ts +1 -1
  241. package/dist/admin/src/services/relations.d.ts +2 -2
  242. package/dist/admin/src/services/uid.d.ts +3 -3
  243. package/dist/server/index.js +5472 -4157
  244. package/dist/server/index.js.map +1 -1
  245. package/dist/server/index.mjs +5457 -4139
  246. package/dist/server/index.mjs.map +1 -1
  247. package/dist/server/src/bootstrap.d.ts.map +1 -1
  248. package/dist/server/src/controllers/index.d.ts.map +1 -1
  249. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  250. package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
  251. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  252. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  253. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  254. package/dist/server/src/history/services/history.d.ts +3 -3
  255. package/dist/server/src/history/services/history.d.ts.map +1 -1
  256. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  257. package/dist/server/src/history/services/utils.d.ts +6 -11
  258. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  259. package/dist/server/src/index.d.ts +7 -6
  260. package/dist/server/src/index.d.ts.map +1 -1
  261. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  262. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  263. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  264. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  265. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  266. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  267. package/dist/server/src/preview/index.d.ts +4 -0
  268. package/dist/server/src/preview/index.d.ts.map +1 -0
  269. package/dist/server/src/preview/routes/index.d.ts +8 -0
  270. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  271. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  272. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  273. package/dist/server/src/preview/services/index.d.ts +16 -0
  274. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  275. package/dist/server/src/preview/services/preview-config.d.ts +32 -0
  276. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  277. package/dist/server/src/preview/services/preview.d.ts +12 -0
  278. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  279. package/dist/server/src/preview/utils.d.ts +19 -0
  280. package/dist/server/src/preview/utils.d.ts.map +1 -0
  281. package/dist/server/src/register.d.ts.map +1 -1
  282. package/dist/server/src/routes/index.d.ts.map +1 -1
  283. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  284. package/dist/server/src/services/document-metadata.d.ts +12 -10
  285. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  286. package/dist/server/src/services/index.d.ts +7 -6
  287. package/dist/server/src/services/index.d.ts.map +1 -1
  288. package/dist/server/src/services/utils/count.d.ts +1 -1
  289. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  290. package/dist/server/src/services/utils/populate.d.ts +3 -3
  291. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  292. package/dist/server/src/utils/index.d.ts +2 -0
  293. package/dist/server/src/utils/index.d.ts.map +1 -1
  294. package/dist/shared/contracts/collection-types.d.ts +0 -1
  295. package/dist/shared/contracts/components.d.ts +0 -1
  296. package/dist/shared/contracts/content-types.d.ts +0 -1
  297. package/dist/shared/contracts/history-versions.d.ts +0 -1
  298. package/dist/shared/contracts/index.d.ts +1 -1
  299. package/dist/shared/contracts/index.d.ts.map +1 -1
  300. package/dist/shared/contracts/init.d.ts +0 -1
  301. package/dist/shared/contracts/preview.d.ts +26 -0
  302. package/dist/shared/contracts/preview.d.ts.map +1 -0
  303. package/dist/shared/contracts/relations.d.ts +1 -2
  304. package/dist/shared/contracts/relations.d.ts.map +1 -1
  305. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  306. package/dist/shared/contracts/single-types.d.ts +0 -1
  307. package/dist/shared/contracts/uid.d.ts +0 -1
  308. package/dist/shared/index.d.ts +0 -1
  309. package/dist/shared/index.js +37 -22
  310. package/dist/shared/index.js.map +1 -1
  311. package/dist/shared/index.mjs +36 -23
  312. package/dist/shared/index.mjs.map +1 -1
  313. package/package.json +21 -17
  314. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  315. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  316. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  317. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  318. package/dist/_chunks/ComponentConfigurationPage-DfFSZQxe.mjs +0 -236
  319. package/dist/_chunks/ComponentConfigurationPage-DfFSZQxe.mjs.map +0 -1
  320. package/dist/_chunks/ComponentConfigurationPage-FqfsxQ1j.js +0 -255
  321. package/dist/_chunks/ComponentConfigurationPage-FqfsxQ1j.js.map +0 -1
  322. package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
  323. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
  324. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  325. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  326. package/dist/_chunks/EditConfigurationPage-Cn0e8t3I.js +0 -151
  327. package/dist/_chunks/EditConfigurationPage-Cn0e8t3I.js.map +0 -1
  328. package/dist/_chunks/EditConfigurationPage-DdPNAbl3.mjs +0 -132
  329. package/dist/_chunks/EditConfigurationPage-DdPNAbl3.mjs.map +0 -1
  330. package/dist/_chunks/EditViewPage-B82x_x1b.mjs +0 -224
  331. package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +0 -1
  332. package/dist/_chunks/EditViewPage-DlxEHhUt.js +0 -243
  333. package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +0 -1
  334. package/dist/_chunks/Field-COL25JiC.js +0 -5595
  335. package/dist/_chunks/Field-COL25JiC.js.map +0 -1
  336. package/dist/_chunks/Field-DufHXW17.mjs +0 -5563
  337. package/dist/_chunks/Field-DufHXW17.mjs.map +0 -1
  338. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  339. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  340. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  341. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  342. package/dist/_chunks/Form-BssUwrTO.js +0 -779
  343. package/dist/_chunks/Form-BssUwrTO.js.map +0 -1
  344. package/dist/_chunks/Form-u_kAOhwB.mjs +0 -758
  345. package/dist/_chunks/Form-u_kAOhwB.mjs.map +0 -1
  346. package/dist/_chunks/History-C9t9UqpO.js +0 -1066
  347. package/dist/_chunks/History-C9t9UqpO.js.map +0 -1
  348. package/dist/_chunks/History-DRwA3oMM.mjs +0 -1045
  349. package/dist/_chunks/History-DRwA3oMM.mjs.map +0 -1
  350. package/dist/_chunks/ListConfigurationPage-BXYPohh-.js +0 -652
  351. package/dist/_chunks/ListConfigurationPage-BXYPohh-.js.map +0 -1
  352. package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs +0 -632
  353. package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs.map +0 -1
  354. package/dist/_chunks/ListViewPage-CELx2ysp.mjs +0 -828
  355. package/dist/_chunks/ListViewPage-CELx2ysp.mjs.map +0 -1
  356. package/dist/_chunks/ListViewPage-D2VD8Szg.js +0 -852
  357. package/dist/_chunks/ListViewPage-D2VD8Szg.js.map +0 -1
  358. package/dist/_chunks/NoContentTypePage-BV9IjJSM.js +0 -51
  359. package/dist/_chunks/NoContentTypePage-BV9IjJSM.js.map +0 -1
  360. package/dist/_chunks/NoContentTypePage-DtJ9jcfk.mjs +0 -51
  361. package/dist/_chunks/NoContentTypePage-DtJ9jcfk.mjs.map +0 -1
  362. package/dist/_chunks/NoPermissionsPage-DWleVYK7.mjs +0 -23
  363. package/dist/_chunks/NoPermissionsPage-DWleVYK7.mjs.map +0 -1
  364. package/dist/_chunks/NoPermissionsPage-Dp8NpF9I.js +0 -23
  365. package/dist/_chunks/NoPermissionsPage-Dp8NpF9I.js.map +0 -1
  366. package/dist/_chunks/Relations-BTcf5xaw.mjs +0 -703
  367. package/dist/_chunks/Relations-BTcf5xaw.mjs.map +0 -1
  368. package/dist/_chunks/Relations-DR7EUgyC.js +0 -723
  369. package/dist/_chunks/Relations-DR7EUgyC.js.map +0 -1
  370. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  371. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  372. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  373. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  374. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  375. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  376. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  377. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  378. package/dist/_chunks/de-CCEmbAah.js +0 -199
  379. package/dist/_chunks/en-Bm0D0IWz.js +0 -293
  380. package/dist/_chunks/en-DKV44jRb.mjs +0 -293
  381. package/dist/_chunks/es-CeXiYflN.mjs +0 -196
  382. package/dist/_chunks/es-EUonQTon.js +0 -196
  383. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  384. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  385. package/dist/_chunks/fr-B7kGGg3E.js +0 -206
  386. package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
  387. package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
  388. package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
  389. package/dist/_chunks/gu-BRmF601H.js +0 -200
  390. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  391. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  392. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  393. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  394. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  395. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  396. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  397. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  398. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  399. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  400. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  401. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  402. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  403. package/dist/_chunks/id-B5Ser98A.js +0 -160
  404. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  405. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  406. package/dist/_chunks/index-BdMf2lfT.js +0 -4109
  407. package/dist/_chunks/index-BdMf2lfT.js.map +0 -1
  408. package/dist/_chunks/index-wnqzm4Q8.mjs +0 -4090
  409. package/dist/_chunks/index-wnqzm4Q8.mjs.map +0 -1
  410. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  411. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  412. package/dist/_chunks/ja-CcFe8diO.js +0 -196
  413. package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
  414. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  415. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  416. package/dist/_chunks/layout-2CfjL0T9.mjs +0 -471
  417. package/dist/_chunks/layout-2CfjL0T9.mjs.map +0 -1
  418. package/dist/_chunks/layout-B2MyZU-_.js +0 -489
  419. package/dist/_chunks/layout-B2MyZU-_.js.map +0 -1
  420. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  421. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  422. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  423. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  424. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  425. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  426. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  427. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  428. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  429. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  430. package/dist/_chunks/objects-gigeqt7s.js +0 -49
  431. package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
  432. package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
  433. package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
  434. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  435. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  436. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  437. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  438. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  439. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  440. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  441. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  442. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  443. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  444. package/dist/_chunks/relations-BH7JJGGe.js +0 -134
  445. package/dist/_chunks/relations-BH7JJGGe.js.map +0 -1
  446. package/dist/_chunks/relations-C0w0GcXi.mjs +0 -135
  447. package/dist/_chunks/relations-C0w0GcXi.mjs.map +0 -1
  448. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  449. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  450. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  451. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  452. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  453. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  454. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  455. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  456. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  457. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  458. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  459. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  460. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  461. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  462. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  463. package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
  464. package/dist/_chunks/th-D9_GfAjc.js +0 -148
  465. package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
  466. package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
  467. package/dist/_chunks/tr-D9UH-O_R.js +0 -199
  468. package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
  469. package/dist/_chunks/uk-C8EiqJY7.js +0 -144
  470. package/dist/_chunks/uk-C8EiqJY7.js.map +0 -1
  471. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  472. package/dist/_chunks/useDebounce-CtcjDB3L.js +0 -28
  473. package/dist/_chunks/useDebounce-CtcjDB3L.js.map +0 -1
  474. package/dist/_chunks/useDebounce-DmuSJIF3.mjs +0 -29
  475. package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +0 -1
  476. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
  477. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
  478. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
  479. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
  480. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  481. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  482. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  483. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  484. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  485. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  486. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  487. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
@@ -0,0 +1,679 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { useStrapiApp, useQueryParams, useNotification, useClipboard, DescriptionComponentRenderer, useHistory, createContext, useRBAC, Page, Form } from '@strapi/admin/strapi-admin';
4
+ import { Box, Typography, Tabs, Flex, IconButton, Grid, Portal, FocusTrap } from '@strapi/design-system';
5
+ import { Link, Cross, ArrowLineLeft } from '@strapi/icons';
6
+ import { useIntl } from 'react-intl';
7
+ import { Link as Link$1, useParams, useLocation } from 'react-router-dom';
8
+ import { styled } from 'styled-components';
9
+ import { I as InjectionZone, i as DocumentActionButton, D as DocumentStatus, f as DocumentRBAC, j as buildValidParams, C as COLLECTION_TYPES, V as useGetPreviewUrlQuery, U as useDocument, d as useDocumentLayout, q as DocumentContextProvider, h as createYupSchema } from './index-DYrCidCq.mjs';
10
+ import { a as FormLayout } from './Input-BHucdqva.mjs';
11
+ import { stringify } from 'qs';
12
+ import { getDocumentStatus } from './EditViewPage-BNpRr7fZ.mjs';
13
+ import 'lodash/fp/mapValues';
14
+ import 'yup';
15
+ import 'fractional-indexing';
16
+ import 'lodash/fp/pipe';
17
+ import 'date-fns';
18
+ import '@reduxjs/toolkit';
19
+ import 'prismjs';
20
+ import 'slate';
21
+ import 'slate-history';
22
+ import 'slate-react';
23
+ import 'prismjs/themes/prism-solarizedlight.css';
24
+ import 'prismjs/components/prism-asmatmel';
25
+ import 'prismjs/components/prism-bash';
26
+ import 'prismjs/components/prism-basic';
27
+ import 'prismjs/components/prism-c';
28
+ import 'prismjs/components/prism-clojure';
29
+ import 'prismjs/components/prism-cobol';
30
+ import 'prismjs/components/prism-cpp';
31
+ import 'prismjs/components/prism-csharp';
32
+ import 'prismjs/components/prism-dart';
33
+ import 'prismjs/components/prism-docker';
34
+ import 'prismjs/components/prism-elixir';
35
+ import 'prismjs/components/prism-erlang';
36
+ import 'prismjs/components/prism-fortran';
37
+ import 'prismjs/components/prism-fsharp';
38
+ import 'prismjs/components/prism-go';
39
+ import 'prismjs/components/prism-graphql';
40
+ import 'prismjs/components/prism-groovy';
41
+ import 'prismjs/components/prism-haskell';
42
+ import 'prismjs/components/prism-haxe';
43
+ import 'prismjs/components/prism-ini';
44
+ import 'prismjs/components/prism-java';
45
+ import 'prismjs/components/prism-javascript';
46
+ import 'prismjs/components/prism-jsx';
47
+ import 'prismjs/components/prism-json';
48
+ import 'prismjs/components/prism-julia';
49
+ import 'prismjs/components/prism-kotlin';
50
+ import 'prismjs/components/prism-latex';
51
+ import 'prismjs/components/prism-lua';
52
+ import 'prismjs/components/prism-markdown';
53
+ import 'prismjs/components/prism-matlab';
54
+ import 'prismjs/components/prism-makefile';
55
+ import 'prismjs/components/prism-objectivec';
56
+ import 'prismjs/components/prism-perl';
57
+ import 'prismjs/components/prism-php';
58
+ import 'prismjs/components/prism-powershell';
59
+ import 'prismjs/components/prism-python';
60
+ import 'prismjs/components/prism-r';
61
+ import 'prismjs/components/prism-ruby';
62
+ import 'prismjs/components/prism-rust';
63
+ import 'prismjs/components/prism-sas';
64
+ import 'prismjs/components/prism-scala';
65
+ import 'prismjs/components/prism-scheme';
66
+ import 'prismjs/components/prism-sql';
67
+ import 'prismjs/components/prism-stata';
68
+ import 'prismjs/components/prism-swift';
69
+ import 'prismjs/components/prism-typescript';
70
+ import 'prismjs/components/prism-tsx';
71
+ import 'prismjs/components/prism-vbnet';
72
+ import 'prismjs/components/prism-yaml';
73
+ import './usePrev-DinC2aha.mjs';
74
+ import './objects-D2z-IJgu.mjs';
75
+ import 'react-dnd';
76
+ import 'lodash/clone';
77
+ import 'lodash/toPath';
78
+ import '@radix-ui/react-toolbar';
79
+ import 'react-dnd-html5-backend';
80
+ import './ComponentIcon-BZcTc4rj.mjs';
81
+ import '@strapi/icons/symbols';
82
+ import 'react-window';
83
+ import 'codemirror5';
84
+ import 'sanitize-html';
85
+ import 'highlight.js';
86
+ import 'markdown-it';
87
+ import 'markdown-it-abbr';
88
+ import 'markdown-it-container';
89
+ import 'markdown-it-deflist';
90
+ import 'markdown-it-emoji';
91
+ import 'markdown-it-footnote';
92
+ import 'markdown-it-ins';
93
+ import 'markdown-it-mark';
94
+ import 'markdown-it-sub';
95
+ import 'markdown-it-sup';
96
+ import 'highlight.js/styles/solarized-dark.css';
97
+ import 'codemirror5/addon/display/placeholder';
98
+
99
+ const PreviewContent = ()=>{
100
+ const previewUrl = usePreviewContext('PreviewContent', (state)=>state.url);
101
+ const { formatMessage } = useIntl();
102
+ return /*#__PURE__*/ jsx(Box, {
103
+ src: previewUrl,
104
+ title: formatMessage({
105
+ id: 'content-manager.preview.panel.title',
106
+ defaultMessage: 'Preview'
107
+ }),
108
+ width: "100%",
109
+ height: "100%",
110
+ borderWidth: 0,
111
+ tag: "iframe"
112
+ }, previewUrl);
113
+ };
114
+
115
+ /* -------------------------------------------------------------------------------------------------
116
+ * ClosePreviewButton
117
+ * -----------------------------------------------------------------------------------------------*/ const ClosePreviewButton = ()=>{
118
+ const [{ query }] = useQueryParams();
119
+ const { formatMessage } = useIntl();
120
+ const canGoBack = useHistory('BackButton', (state)=>state.canGoBack);
121
+ const goBack = useHistory('BackButton', (state)=>state.goBack);
122
+ const history = useHistory('BackButton', (state)=>state.history);
123
+ const locationIndex = useHistory('BackButton', (state)=>state.currentLocationIndex);
124
+ /**
125
+ * Get the link destination from the history.
126
+ * Rely on a fallback (the parent edit view page) if there's no page to go back .
127
+ */ const historyTo = canGoBack ? history.at(locationIndex - 2) : undefined;
128
+ const fallback = {
129
+ pathname: '..',
130
+ search: stringify(query, {
131
+ encode: false
132
+ })
133
+ };
134
+ const toWithFallback = historyTo ?? fallback;
135
+ const handleClick = (e)=>{
136
+ if (canGoBack) {
137
+ // Prevent normal link behavior, go back in the history stack instead
138
+ e.preventDefault();
139
+ goBack();
140
+ return;
141
+ }
142
+ // Otherwise rely on native link behavior to go back to the edit view. We don't use navigate()
143
+ // here in order to get the relative="path" functionality from the Link component.
144
+ };
145
+ return /*#__PURE__*/ jsx(IconButton, {
146
+ variant: "ghost",
147
+ tag: Link$1,
148
+ relative: "path",
149
+ to: toWithFallback,
150
+ onClick: handleClick,
151
+ label: formatMessage({
152
+ id: 'content-manager.preview.header.close',
153
+ defaultMessage: 'Close preview'
154
+ }),
155
+ children: /*#__PURE__*/ jsx(Cross, {})
156
+ });
157
+ };
158
+ /* -------------------------------------------------------------------------------------------------
159
+ * Status
160
+ * -----------------------------------------------------------------------------------------------*/ const Status = ()=>{
161
+ // Get status
162
+ const document = usePreviewContext('PreviewHeader', (state)=>state.document);
163
+ const schema = usePreviewContext('PreviewHeader', (state)=>state.schema);
164
+ const meta = usePreviewContext('PreviewHeader', (state)=>state.meta);
165
+ const hasDraftAndPublished = schema?.options?.draftAndPublish ?? false;
166
+ if (!hasDraftAndPublished) {
167
+ return null;
168
+ }
169
+ const status = getDocumentStatus(document, meta);
170
+ return /*#__PURE__*/ jsx(DocumentStatus, {
171
+ status: status,
172
+ size: "XS"
173
+ });
174
+ };
175
+ const PreviewTabs = ()=>{
176
+ const { formatMessage } = useIntl();
177
+ // URL query params
178
+ const [{ query }, setQuery] = useQueryParams();
179
+ // Get status
180
+ const document = usePreviewContext('PreviewHeader', (state)=>state.document);
181
+ const schema = usePreviewContext('PreviewHeader', (state)=>state.schema);
182
+ const meta = usePreviewContext('PreviewHeader', (state)=>state.meta);
183
+ const hasDraftAndPublish = schema?.options?.draftAndPublish ?? false;
184
+ const documentStatus = getDocumentStatus(document, meta);
185
+ const handleTabChange = (status)=>{
186
+ if (status === 'published' || status === 'draft') {
187
+ setQuery({
188
+ status
189
+ }, 'push', true);
190
+ }
191
+ };
192
+ if (!hasDraftAndPublish) {
193
+ return null;
194
+ }
195
+ return /*#__PURE__*/ jsx(Tabs.Root, {
196
+ variant: "simple",
197
+ value: query.status || 'draft',
198
+ onValueChange: handleTabChange,
199
+ children: /*#__PURE__*/ jsxs(Tabs.List, {
200
+ "aria-label": formatMessage({
201
+ id: 'preview.tabs.label',
202
+ defaultMessage: 'Document status'
203
+ }),
204
+ children: [
205
+ /*#__PURE__*/ jsx(StatusTab, {
206
+ value: "draft",
207
+ children: formatMessage({
208
+ id: 'content-manager.containers.List.draft',
209
+ defaultMessage: 'draft'
210
+ })
211
+ }),
212
+ /*#__PURE__*/ jsx(StatusTab, {
213
+ value: "published",
214
+ disabled: documentStatus === 'draft',
215
+ children: formatMessage({
216
+ id: 'content-manager.containers.List.published',
217
+ defaultMessage: 'published'
218
+ })
219
+ })
220
+ ]
221
+ })
222
+ });
223
+ };
224
+ /* -------------------------------------------------------------------------------------------------
225
+ * PreviewHeader
226
+ * -----------------------------------------------------------------------------------------------*/ const UnstablePreviewHeader = ()=>{
227
+ const title = usePreviewContext('PreviewHeader', (state)=>state.title);
228
+ const document = usePreviewContext('PreviewHeader', (state)=>state.document);
229
+ const schema = usePreviewContext('PreviewHeader', (state)=>state.schema);
230
+ const meta = usePreviewContext('PreviewHeader', (state)=>state.meta);
231
+ const plugins = useStrapiApp('PreviewHeader', (state)=>state.plugins);
232
+ const iframeRef = usePreviewContext('PreviewHeader', (state)=>state.iframeRef);
233
+ const [{ query }] = useQueryParams();
234
+ const { formatMessage } = useIntl();
235
+ const { toggleNotification } = useNotification();
236
+ const { copy } = useClipboard();
237
+ const handleCopyLink = ()=>{
238
+ copy(window.location.href);
239
+ toggleNotification({
240
+ message: formatMessage({
241
+ id: 'content-manager.preview.copy.success',
242
+ defaultMessage: 'Copied preview link'
243
+ }),
244
+ type: 'success'
245
+ });
246
+ };
247
+ const hasDraftAndPublish = schema.options?.draftAndPublish ?? false;
248
+ const documentActionProps = {
249
+ activeTab: query.status ?? null,
250
+ collectionType: schema.kind === 'collectionType' ? 'collection-types' : 'single-types',
251
+ model: schema.uid,
252
+ documentId: document.documentId,
253
+ document,
254
+ meta,
255
+ onPreview: ()=>{
256
+ iframeRef?.current?.contentWindow?.postMessage({
257
+ type: 'strapiUpdate'
258
+ }, // The iframe origin is safe to use since it must be provided through the allowedOrigins config
259
+ new URL(iframeRef.current.src).origin);
260
+ }
261
+ };
262
+ return /*#__PURE__*/ jsxs(Flex, {
263
+ height: "48px",
264
+ gap: 4,
265
+ background: "neutral0",
266
+ borderColor: "neutral150",
267
+ tag: "header",
268
+ children: [
269
+ /*#__PURE__*/ jsxs(TitleContainer, {
270
+ height: "100%",
271
+ paddingLeft: 2,
272
+ paddingRight: 4,
273
+ children: [
274
+ /*#__PURE__*/ jsx(ClosePreviewButton, {}),
275
+ /*#__PURE__*/ jsx(PreviewTitle, {
276
+ tag: "h1",
277
+ title: title,
278
+ maxWidth: "200px",
279
+ fontSize: 2,
280
+ paddingLeft: 2,
281
+ paddingRight: 3,
282
+ fontWeight: 600,
283
+ children: title
284
+ }),
285
+ /*#__PURE__*/ jsx(Status, {})
286
+ ]
287
+ }),
288
+ /*#__PURE__*/ jsxs(Flex, {
289
+ flex: 1,
290
+ paddingRight: 2,
291
+ gap: 2,
292
+ justifyContent: hasDraftAndPublish ? 'space-between' : 'flex-end',
293
+ children: [
294
+ /*#__PURE__*/ jsx(Flex, {
295
+ flex: "1 1 70%",
296
+ children: /*#__PURE__*/ jsx(PreviewTabs, {})
297
+ }),
298
+ /*#__PURE__*/ jsxs(Flex, {
299
+ gap: 2,
300
+ children: [
301
+ /*#__PURE__*/ jsx(IconButton, {
302
+ type: "button",
303
+ label: formatMessage({
304
+ id: 'preview.copy.label',
305
+ defaultMessage: 'Copy preview link'
306
+ }),
307
+ onClick: handleCopyLink,
308
+ children: /*#__PURE__*/ jsx(Link, {})
309
+ }),
310
+ /*#__PURE__*/ jsx(InjectionZone, {
311
+ area: "preview.actions"
312
+ }),
313
+ /*#__PURE__*/ jsx(DescriptionComponentRenderer, {
314
+ props: documentActionProps,
315
+ descriptions: plugins['content-manager'].apis.getDocumentActions('preview'),
316
+ children: (actions)=>{
317
+ const filteredActions = actions.filter((action)=>[
318
+ action.position
319
+ ].flat().includes('preview'));
320
+ const [primaryAction, secondaryAction] = filteredActions;
321
+ if (!primaryAction && !secondaryAction) return null;
322
+ // Both actions are available when draft and publish enabled
323
+ if (primaryAction && secondaryAction) {
324
+ return /*#__PURE__*/ jsxs(Fragment, {
325
+ children: [
326
+ /*#__PURE__*/ jsx(DocumentActionButton, {
327
+ ...secondaryAction,
328
+ variant: secondaryAction.variant || 'secondary'
329
+ }),
330
+ /*#__PURE__*/ jsx(DocumentActionButton, {
331
+ ...primaryAction,
332
+ variant: primaryAction.variant || 'default'
333
+ })
334
+ ]
335
+ });
336
+ }
337
+ // Otherwise we just have the save action
338
+ return /*#__PURE__*/ jsx(DocumentActionButton, {
339
+ ...primaryAction,
340
+ variant: primaryAction.variant || 'secondary'
341
+ });
342
+ }
343
+ })
344
+ ]
345
+ })
346
+ ]
347
+ })
348
+ ]
349
+ });
350
+ };
351
+ const PreviewHeader = ()=>{
352
+ // Get the document title
353
+ const title = usePreviewContext('PreviewHeader', (state)=>state.title);
354
+ const { formatMessage } = useIntl();
355
+ const { toggleNotification } = useNotification();
356
+ const { copy } = useClipboard();
357
+ const handleCopyLink = ()=>{
358
+ copy(window.location.href);
359
+ toggleNotification({
360
+ message: formatMessage({
361
+ id: 'content-manager.preview.copy.success',
362
+ defaultMessage: 'Copied preview link'
363
+ }),
364
+ type: 'success'
365
+ });
366
+ };
367
+ return /*#__PURE__*/ jsxs(Grid.Root, {
368
+ gap: 3,
369
+ gridCols: 3,
370
+ paddingLeft: 2,
371
+ paddingRight: 2,
372
+ background: "neutral0",
373
+ borderColor: "neutral150",
374
+ tag: "header",
375
+ children: [
376
+ /*#__PURE__*/ jsxs(Grid.Item, {
377
+ xs: 1,
378
+ paddingTop: 2,
379
+ paddingBottom: 2,
380
+ gap: 3,
381
+ children: [
382
+ /*#__PURE__*/ jsx(ClosePreviewButton, {}),
383
+ /*#__PURE__*/ jsx(PreviewTitle, {
384
+ tag: "h1",
385
+ fontWeight: 600,
386
+ fontSize: 2,
387
+ maxWidth: "200px",
388
+ title: title,
389
+ children: title
390
+ }),
391
+ /*#__PURE__*/ jsx(Status, {})
392
+ ]
393
+ }),
394
+ /*#__PURE__*/ jsx(Grid.Item, {
395
+ xs: 1,
396
+ marginBottom: "-1px",
397
+ alignItems: "end",
398
+ margin: "auto",
399
+ children: /*#__PURE__*/ jsx(PreviewTabs, {})
400
+ }),
401
+ /*#__PURE__*/ jsx(Grid.Item, {
402
+ xs: 1,
403
+ justifyContent: "end",
404
+ paddingTop: 2,
405
+ paddingBottom: 2,
406
+ children: /*#__PURE__*/ jsx(IconButton, {
407
+ type: "button",
408
+ label: formatMessage({
409
+ id: 'preview.copy.label',
410
+ defaultMessage: 'Copy preview link'
411
+ }),
412
+ onClick: handleCopyLink,
413
+ children: /*#__PURE__*/ jsx(Link, {})
414
+ })
415
+ })
416
+ ]
417
+ });
418
+ };
419
+ const PreviewTitle = styled(Typography)`
420
+ overflow: hidden;
421
+ text-overflow: ellipsis;
422
+ white-space: nowrap;
423
+ `;
424
+ const StatusTab = styled(Tabs.Trigger)`
425
+ text-transform: uppercase;
426
+ `;
427
+ const TitleContainer = styled(Flex)`
428
+ border-right: 1px solid ${({ theme })=>theme.colors.neutral150};
429
+ `;
430
+
431
+ const [PreviewProvider, usePreviewContext] = createContext('PreviewPage');
432
+ /* -------------------------------------------------------------------------------------------------
433
+ * PreviewPage
434
+ * -----------------------------------------------------------------------------------------------*/ const AnimatedArrow = styled(ArrowLineLeft)`
435
+ will-change: transform;
436
+ rotate: ${(props)=>props.isSideEditorOpen ? '0deg' : '180deg'};
437
+ transition: rotate 0.2s ease-in-out;
438
+ `;
439
+ const PreviewPage = ()=>{
440
+ const location = useLocation();
441
+ const { formatMessage } = useIntl();
442
+ const iframeRef = React.useRef(null);
443
+ const [isSideEditorOpen, setIsSideEditorOpen] = React.useState(true);
444
+ // Read all the necessary data from the URL to find the right preview URL
445
+ const { slug: model, id: documentId, collectionType } = useParams();
446
+ const [{ query }] = useQueryParams();
447
+ const params = React.useMemo(()=>buildValidParams(query), [
448
+ query
449
+ ]);
450
+ if (!collectionType) {
451
+ throw new Error('Could not find collectionType in url params');
452
+ }
453
+ if (!model) {
454
+ throw new Error('Could not find model in url params');
455
+ }
456
+ // Only collection types must have a documentId
457
+ if (collectionType === COLLECTION_TYPES && !documentId) {
458
+ throw new Error('Could not find documentId in url params');
459
+ }
460
+ const previewUrlResponse = useGetPreviewUrlQuery({
461
+ params: {
462
+ contentType: model
463
+ },
464
+ query: {
465
+ documentId,
466
+ locale: params.locale,
467
+ status: params.status
468
+ }
469
+ });
470
+ const documentResponse = useDocument({
471
+ model,
472
+ collectionType,
473
+ documentId,
474
+ params
475
+ });
476
+ const documentLayoutResponse = useDocumentLayout(model);
477
+ const isLoading = previewUrlResponse.isLoading || documentLayoutResponse.isLoading || documentResponse.isLoading;
478
+ if (isLoading && !documentResponse.document?.documentId) {
479
+ return /*#__PURE__*/ jsx(Page.Loading, {});
480
+ }
481
+ const initialValues = documentResponse.getInitialFormValues();
482
+ if (previewUrlResponse.error || documentLayoutResponse.error || !documentResponse.document || !documentResponse.meta || !documentResponse.schema || !initialValues) {
483
+ return /*#__PURE__*/ jsx(Page.Error, {});
484
+ }
485
+ if (!previewUrlResponse.data?.data?.url) {
486
+ return /*#__PURE__*/ jsx(Page.NoData, {});
487
+ }
488
+ const documentTitle = documentResponse.getTitle(documentLayoutResponse.edit.settings.mainField);
489
+ const validateSync = (values, options)=>{
490
+ const yupSchema = createYupSchema(documentResponse.schema?.attributes, documentResponse.components, {
491
+ status: documentResponse.document?.status,
492
+ ...options
493
+ });
494
+ return yupSchema.validateSync(values, {
495
+ abortEarly: false
496
+ });
497
+ };
498
+ const previewUrl = previewUrlResponse.data.data.url;
499
+ return /*#__PURE__*/ jsxs(Fragment, {
500
+ children: [
501
+ /*#__PURE__*/ jsx(Page.Title, {
502
+ children: formatMessage({
503
+ id: 'content-manager.preview.page-title',
504
+ defaultMessage: '{contentType} preview'
505
+ }, {
506
+ contentType: documentTitle
507
+ })
508
+ }),
509
+ /*#__PURE__*/ jsx(DocumentContextProvider, {
510
+ initialDocument: {
511
+ documentId: documentId || '',
512
+ model,
513
+ collectionType
514
+ },
515
+ children: /*#__PURE__*/ jsx(PreviewProvider, {
516
+ url: previewUrl,
517
+ document: documentResponse.document,
518
+ title: documentTitle,
519
+ meta: documentResponse.meta,
520
+ schema: documentResponse.schema,
521
+ layout: documentLayoutResponse.edit,
522
+ iframeRef: iframeRef,
523
+ children: /*#__PURE__*/ jsx(Form, {
524
+ method: "PUT",
525
+ disabled: query.status === 'published' && documentResponse && documentResponse.document.status === 'published',
526
+ initialValues: documentResponse.getInitialFormValues(),
527
+ initialErrors: location?.state?.forceValidation ? validateSync(initialValues, {}) : {},
528
+ height: "100%",
529
+ validate: (values, options)=>{
530
+ const yupSchema = createYupSchema(documentResponse.schema?.attributes, documentResponse.components, {
531
+ status: documentResponse.document?.status,
532
+ ...options
533
+ });
534
+ return yupSchema.validate(values, {
535
+ abortEarly: false
536
+ });
537
+ },
538
+ children: /*#__PURE__*/ jsx(Flex, {
539
+ direction: "column",
540
+ height: "100%",
541
+ alignItems: "stretch",
542
+ children: window.strapi.future.isEnabled('unstablePreviewSideEditor') ? /*#__PURE__*/ jsxs(Fragment, {
543
+ children: [
544
+ /*#__PURE__*/ jsx(UnstablePreviewHeader, {}),
545
+ /*#__PURE__*/ jsxs(Flex, {
546
+ flex: 1,
547
+ overflow: "auto",
548
+ alignItems: "stretch",
549
+ children: [
550
+ /*#__PURE__*/ jsx(Box, {
551
+ overflow: "auto",
552
+ width: isSideEditorOpen ? '50%' : 0,
553
+ borderWidth: "0 1px 0 0",
554
+ borderColor: "neutral150",
555
+ paddingTop: 6,
556
+ paddingBottom: 6,
557
+ // Remove horizontal padding when the editor is closed or it won't fully disappear
558
+ paddingLeft: isSideEditorOpen ? 6 : 0,
559
+ paddingRight: isSideEditorOpen ? 6 : 0,
560
+ transition: "all 0.2s ease-in-out",
561
+ children: /*#__PURE__*/ jsx(FormLayout, {
562
+ layout: documentLayoutResponse.edit.layout,
563
+ hasBackground: true
564
+ })
565
+ }),
566
+ /*#__PURE__*/ jsxs(Box, {
567
+ position: "relative",
568
+ flex: 1,
569
+ height: "100%",
570
+ overflow: "hidden",
571
+ children: [
572
+ /*#__PURE__*/ jsx(Box, {
573
+ "data-testid": "preview-iframe",
574
+ ref: iframeRef,
575
+ src: previewUrl,
576
+ title: formatMessage({
577
+ id: 'content-manager.preview.panel.title',
578
+ defaultMessage: 'Preview'
579
+ }),
580
+ width: "100%",
581
+ height: "100%",
582
+ borderWidth: 0,
583
+ tag: "iframe"
584
+ }, previewUrl),
585
+ /*#__PURE__*/ jsx(IconButton, {
586
+ variant: "tertiary",
587
+ label: formatMessage(isSideEditorOpen ? {
588
+ id: 'content-manager.preview.content.close-editor',
589
+ defaultMessage: 'Close editor'
590
+ } : {
591
+ id: 'content-manager.preview.content.open-editor',
592
+ defaultMessage: 'Open editor'
593
+ }),
594
+ onClick: ()=>setIsSideEditorOpen((prev)=>!prev),
595
+ position: "absolute",
596
+ top: 2,
597
+ left: 2,
598
+ children: /*#__PURE__*/ jsx(AnimatedArrow, {
599
+ isSideEditorOpen: isSideEditorOpen
600
+ })
601
+ })
602
+ ]
603
+ })
604
+ ]
605
+ })
606
+ ]
607
+ }) : /*#__PURE__*/ jsxs(Fragment, {
608
+ children: [
609
+ /*#__PURE__*/ jsx(PreviewHeader, {}),
610
+ /*#__PURE__*/ jsx(PreviewContent, {})
611
+ ]
612
+ })
613
+ })
614
+ })
615
+ })
616
+ })
617
+ ]
618
+ });
619
+ };
620
+ /* -------------------------------------------------------------------------------------------------
621
+ * ProtectedPreviewPage
622
+ * -----------------------------------------------------------------------------------------------*/ const ProtectedPreviewPageImpl = ()=>{
623
+ const { slug: model } = useParams();
624
+ const { permissions = [], isLoading, error } = useRBAC([
625
+ {
626
+ action: 'plugin::content-manager.explorer.read',
627
+ subject: model
628
+ },
629
+ {
630
+ action: 'plugin::content-manager.explorer.update',
631
+ subject: model
632
+ },
633
+ {
634
+ action: 'plugin::content-manager.explorer.publish',
635
+ subject: model
636
+ }
637
+ ]);
638
+ if (isLoading) {
639
+ return /*#__PURE__*/ jsx(Page.Loading, {});
640
+ }
641
+ if (error || !model) {
642
+ return /*#__PURE__*/ jsx(Box, {
643
+ height: "100vh",
644
+ width: "100vw",
645
+ position: "fixed",
646
+ top: 0,
647
+ left: 0,
648
+ zIndex: 2,
649
+ background: "neutral0",
650
+ children: /*#__PURE__*/ jsx(Page.Error, {})
651
+ });
652
+ }
653
+ return /*#__PURE__*/ jsx(Box, {
654
+ height: "100vh",
655
+ width: "100vw",
656
+ position: "fixed",
657
+ top: 0,
658
+ left: 0,
659
+ zIndex: 2,
660
+ background: "neutral0",
661
+ children: /*#__PURE__*/ jsx(Page.Protect, {
662
+ permissions: permissions.filter((permission)=>permission.action.includes('explorer.read')),
663
+ children: /*#__PURE__*/ jsx(DocumentRBAC, {
664
+ permissions: permissions,
665
+ children: /*#__PURE__*/ jsx(PreviewPage, {})
666
+ })
667
+ })
668
+ });
669
+ };
670
+ const ProtectedPreviewPage = ()=>{
671
+ return /*#__PURE__*/ jsx(Portal, {
672
+ children: /*#__PURE__*/ jsx(FocusTrap, {
673
+ children: /*#__PURE__*/ jsx(ProtectedPreviewPageImpl, {})
674
+ })
675
+ });
676
+ };
677
+
678
+ export { ProtectedPreviewPage, usePreviewContext };
679
+ //# sourceMappingURL=Preview-C3lnOgQx.mjs.map