@strapi/content-manager 0.0.0-experimental.d042f6a350fa3a48d61e7c56875e2a0a7ba3c8f5 → 0.0.0-experimental.d2a56e52af31fcf0f0c582a5a2e58e310966e96b

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 (431) 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-CGn9IYeg.js +298 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-CGn9IYeg.js.map +1 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-DgYK4xW6.mjs +276 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-DgYK4xW6.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-7w_-4jF4.js +180 -0
  14. package/dist/admin/chunks/EditConfigurationPage-7w_-4jF4.js.map +1 -0
  15. package/dist/admin/chunks/EditConfigurationPage-C05SwwH-.mjs +158 -0
  16. package/dist/admin/chunks/EditConfigurationPage-C05SwwH-.mjs.map +1 -0
  17. package/dist/admin/chunks/EditViewPage-CVRJBOEv.mjs +318 -0
  18. package/dist/admin/chunks/EditViewPage-CVRJBOEv.mjs.map +1 -0
  19. package/dist/admin/chunks/EditViewPage-CuQfZJDf.js +341 -0
  20. package/dist/admin/chunks/EditViewPage-CuQfZJDf.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-BqNYRsCb.js +978 -0
  26. package/dist/admin/chunks/Form-BqNYRsCb.js.map +1 -0
  27. package/dist/admin/chunks/Form-DaEnqAeV.mjs +955 -0
  28. package/dist/admin/chunks/Form-DaEnqAeV.mjs.map +1 -0
  29. package/dist/admin/chunks/History-B7dGNfmx.mjs +1361 -0
  30. package/dist/admin/chunks/History-B7dGNfmx.mjs.map +1 -0
  31. package/dist/admin/chunks/History-CEoOna4w.js +1384 -0
  32. package/dist/admin/chunks/History-CEoOna4w.js.map +1 -0
  33. package/dist/admin/chunks/Input-B3QUS9rv.mjs +8473 -0
  34. package/dist/admin/chunks/Input-B3QUS9rv.mjs.map +1 -0
  35. package/dist/admin/chunks/Input-B8I0b9aD.js +8507 -0
  36. package/dist/admin/chunks/Input-B8I0b9aD.js.map +1 -0
  37. package/dist/admin/chunks/ListConfigurationPage-BbjJweN-.js +818 -0
  38. package/dist/admin/chunks/ListConfigurationPage-BbjJweN-.js.map +1 -0
  39. package/dist/admin/chunks/ListConfigurationPage-VtFQ5mOK.mjs +795 -0
  40. package/dist/admin/chunks/ListConfigurationPage-VtFQ5mOK.mjs.map +1 -0
  41. package/dist/admin/chunks/ListViewPage-Cg3zbT7Y.mjs +1132 -0
  42. package/dist/admin/chunks/ListViewPage-Cg3zbT7Y.mjs.map +1 -0
  43. package/dist/admin/chunks/ListViewPage-CzUm2VJN.js +1154 -0
  44. package/dist/admin/chunks/ListViewPage-CzUm2VJN.js.map +1 -0
  45. package/dist/admin/chunks/NoContentTypePage-FcLLn2Wt.js +60 -0
  46. package/dist/admin/chunks/NoContentTypePage-FcLLn2Wt.js.map +1 -0
  47. package/dist/admin/chunks/NoContentTypePage-NOf7Aq_E.mjs +58 -0
  48. package/dist/admin/chunks/NoContentTypePage-NOf7Aq_E.mjs.map +1 -0
  49. package/dist/admin/chunks/NoPermissionsPage-DmeyXtCk.js +39 -0
  50. package/dist/admin/chunks/NoPermissionsPage-DmeyXtCk.js.map +1 -0
  51. package/dist/admin/chunks/NoPermissionsPage-OVr9KG6L.mjs +37 -0
  52. package/dist/admin/chunks/NoPermissionsPage-OVr9KG6L.mjs.map +1 -0
  53. package/dist/admin/chunks/Preview-BH9l1QXk.mjs +593 -0
  54. package/dist/admin/chunks/Preview-BH9l1QXk.mjs.map +1 -0
  55. package/dist/admin/chunks/Preview-BYKkpc11.js +615 -0
  56. package/dist/admin/chunks/Preview-BYKkpc11.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-C2zEwS3-.mjs +313 -0
  74. package/dist/{_chunks/en-D65uIF6Y.mjs.map → admin/chunks/en-C2zEwS3-.mjs.map} +1 -1
  75. package/dist/admin/chunks/en-G976DLsg.js +318 -0
  76. package/dist/{_chunks/en-BR48D_RH.js.map → admin/chunks/en-G976DLsg.js.map} +1 -1
  77. package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
  78. package/dist/{_chunks/es-9K52xZIr.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-BHqhDq4V.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-BE7PI9Wp.mjs +5450 -0
  110. package/dist/admin/chunks/index-BE7PI9Wp.mjs.map +1 -0
  111. package/dist/admin/chunks/index-BwIhYBsG.js +5520 -0
  112. package/dist/admin/chunks/index-BwIhYBsG.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-D34tqjMw.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-7sfIbjxE.js.map → admin/chunks/ko-k46sEyzt.js.map} +1 -1
  125. package/dist/admin/chunks/layout-9zlUM9V3.mjs +672 -0
  126. package/dist/admin/chunks/layout-9zlUM9V3.mjs.map +1 -0
  127. package/dist/admin/chunks/layout-Cr0HaJVS.js +692 -0
  128. package/dist/admin/chunks/layout-Cr0HaJVS.js.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-DgZBp9Oo.js +194 -0
  186. package/dist/admin/chunks/usePrev-DgZBp9Oo.js.map +1 -0
  187. package/dist/admin/chunks/usePrev-PisKKvhT.mjs +187 -0
  188. package/dist/admin/chunks/usePrev-PisKKvhT.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 +24 -4
  202. package/dist/admin/index.js.map +1 -1
  203. package/dist/admin/index.mjs +17 -13
  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 +4 -0
  207. package/dist/admin/src/features/DocumentContext.d.ts +53 -0
  208. package/dist/admin/src/features/DocumentRBAC.d.ts +3 -2
  209. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  210. package/dist/admin/src/hooks/useDocument.d.ts +4 -2
  211. package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
  212. package/dist/admin/src/index.d.ts +1 -0
  213. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +2 -1
  214. package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
  215. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +49 -1
  216. package/dist/admin/src/pages/EditView/components/FormInputs/Relations/RelationModal.d.ts +8 -0
  217. package/dist/admin/src/pages/EditView/components/FormInputs/{Relations.d.ts → Relations/Relations.d.ts} +8 -2
  218. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
  219. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +9 -3
  220. package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +7 -4
  221. package/dist/admin/src/preview/index.d.ts +2 -3
  222. package/dist/admin/src/preview/pages/Preview.d.ts +2 -0
  223. package/dist/server/index.js +5459 -4387
  224. package/dist/server/index.js.map +1 -1
  225. package/dist/server/index.mjs +5446 -4372
  226. package/dist/server/index.mjs.map +1 -1
  227. package/dist/server/src/controllers/utils/metadata.d.ts +1 -1
  228. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  229. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  230. package/dist/server/src/services/utils/count.d.ts +1 -1
  231. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  232. package/dist/server/src/services/utils/populate.d.ts +1 -1
  233. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  234. package/dist/shared/contracts/collection-types.d.ts +0 -1
  235. package/dist/shared/contracts/components.d.ts +0 -1
  236. package/dist/shared/contracts/content-types.d.ts +0 -1
  237. package/dist/shared/contracts/history-versions.d.ts +0 -1
  238. package/dist/shared/contracts/index.d.ts +0 -1
  239. package/dist/shared/contracts/init.d.ts +0 -1
  240. package/dist/shared/contracts/preview.d.ts +0 -1
  241. package/dist/shared/contracts/relations.d.ts +1 -2
  242. package/dist/shared/contracts/relations.d.ts.map +1 -1
  243. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  244. package/dist/shared/contracts/single-types.d.ts +0 -1
  245. package/dist/shared/contracts/uid.d.ts +0 -1
  246. package/dist/shared/index.d.ts +0 -1
  247. package/dist/shared/index.js +35 -24
  248. package/dist/shared/index.js.map +1 -1
  249. package/dist/shared/index.mjs +34 -25
  250. package/dist/shared/index.mjs.map +1 -1
  251. package/package.json +16 -13
  252. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  253. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  254. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  255. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  256. package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs +0 -236
  257. package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs.map +0 -1
  258. package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js +0 -254
  259. package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js.map +0 -1
  260. package/dist/_chunks/ComponentIcon-CRbtQEUV.js +0 -175
  261. package/dist/_chunks/ComponentIcon-CRbtQEUV.js.map +0 -1
  262. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  263. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  264. package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js +0 -150
  265. package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js.map +0 -1
  266. package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs +0 -132
  267. package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs.map +0 -1
  268. package/dist/_chunks/EditViewPage-D4yFJET6.js +0 -209
  269. package/dist/_chunks/EditViewPage-D4yFJET6.js.map +0 -1
  270. package/dist/_chunks/EditViewPage-DrmVmYN0.mjs +0 -191
  271. package/dist/_chunks/EditViewPage-DrmVmYN0.mjs.map +0 -1
  272. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  273. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  274. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  275. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  276. package/dist/_chunks/Form-C4rSaGsz.js +0 -778
  277. package/dist/_chunks/Form-C4rSaGsz.js.map +0 -1
  278. package/dist/_chunks/Form-DamaxNpG.mjs +0 -758
  279. package/dist/_chunks/Form-DamaxNpG.mjs.map +0 -1
  280. package/dist/_chunks/History-D1PreDSY.mjs +0 -999
  281. package/dist/_chunks/History-D1PreDSY.mjs.map +0 -1
  282. package/dist/_chunks/History-DTm8UCCQ.js +0 -1019
  283. package/dist/_chunks/History-DTm8UCCQ.js.map +0 -1
  284. package/dist/_chunks/Input-B7sapvBG.js +0 -5617
  285. package/dist/_chunks/Input-B7sapvBG.js.map +0 -1
  286. package/dist/_chunks/Input-CZ1YvjHR.mjs +0 -5585
  287. package/dist/_chunks/Input-CZ1YvjHR.mjs.map +0 -1
  288. package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs +0 -633
  289. package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs.map +0 -1
  290. package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js +0 -652
  291. package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js.map +0 -1
  292. package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs +0 -854
  293. package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs.map +0 -1
  294. package/dist/_chunks/ListViewPage-DTuuxU3n.js +0 -877
  295. package/dist/_chunks/ListViewPage-DTuuxU3n.js.map +0 -1
  296. package/dist/_chunks/NoContentTypePage-CL7VVeYs.js +0 -51
  297. package/dist/_chunks/NoContentTypePage-CL7VVeYs.js.map +0 -1
  298. package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs +0 -51
  299. package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs.map +0 -1
  300. package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs +0 -23
  301. package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs.map +0 -1
  302. package/dist/_chunks/NoPermissionsPage-v7I599vC.js +0 -23
  303. package/dist/_chunks/NoPermissionsPage-v7I599vC.js.map +0 -1
  304. package/dist/_chunks/Preview-BNuU0SuQ.mjs +0 -287
  305. package/dist/_chunks/Preview-BNuU0SuQ.mjs.map +0 -1
  306. package/dist/_chunks/Preview-Cxq-uI6D.js +0 -305
  307. package/dist/_chunks/Preview-Cxq-uI6D.js.map +0 -1
  308. package/dist/_chunks/Relations-C2Ahkrdg.mjs +0 -728
  309. package/dist/_chunks/Relations-C2Ahkrdg.mjs.map +0 -1
  310. package/dist/_chunks/Relations-CWS79QQn.js +0 -747
  311. package/dist/_chunks/Relations-CWS79QQn.js.map +0 -1
  312. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  313. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  314. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  315. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  316. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  317. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  318. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  319. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  320. package/dist/_chunks/de-CCEmbAah.js +0 -199
  321. package/dist/_chunks/en-BR48D_RH.js +0 -312
  322. package/dist/_chunks/en-D65uIF6Y.mjs +0 -312
  323. package/dist/_chunks/es-9K52xZIr.js +0 -196
  324. package/dist/_chunks/es-D34tqjMw.mjs +0 -196
  325. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  326. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  327. package/dist/_chunks/fr-C43IbhA_.js +0 -219
  328. package/dist/_chunks/fr-C43IbhA_.js.map +0 -1
  329. package/dist/_chunks/fr-DBseuRuB.mjs +0 -219
  330. package/dist/_chunks/fr-DBseuRuB.mjs.map +0 -1
  331. package/dist/_chunks/gu-BRmF601H.js +0 -200
  332. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  333. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  334. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  335. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  336. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  337. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  338. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  339. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  340. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  341. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  342. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  343. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  344. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  345. package/dist/_chunks/id-B5Ser98A.js +0 -160
  346. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  347. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  348. package/dist/_chunks/index-DQsvBb_N.js +0 -4500
  349. package/dist/_chunks/index-DQsvBb_N.js.map +0 -1
  350. package/dist/_chunks/index-ZKrsjv-2.mjs +0 -4481
  351. package/dist/_chunks/index-ZKrsjv-2.mjs.map +0 -1
  352. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  353. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  354. package/dist/_chunks/ja-7sfIbjxE.js +0 -196
  355. package/dist/_chunks/ja-BHqhDq4V.mjs +0 -196
  356. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  357. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  358. package/dist/_chunks/layout-Cl0NhlQB.js +0 -488
  359. package/dist/_chunks/layout-Cl0NhlQB.js.map +0 -1
  360. package/dist/_chunks/layout-fQk1rMk9.mjs +0 -471
  361. package/dist/_chunks/layout-fQk1rMk9.mjs.map +0 -1
  362. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  363. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  364. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  365. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  366. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  367. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  368. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  369. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  370. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  371. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  372. package/dist/_chunks/objects-BcXOv6_9.js +0 -47
  373. package/dist/_chunks/objects-BcXOv6_9.js.map +0 -1
  374. package/dist/_chunks/objects-D6yBsdmx.mjs +0 -45
  375. package/dist/_chunks/objects-D6yBsdmx.mjs.map +0 -1
  376. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  377. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  378. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  379. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  380. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  381. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  382. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  383. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  384. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  385. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  386. package/dist/_chunks/relations-BRfBxVbX.js +0 -133
  387. package/dist/_chunks/relations-BRfBxVbX.js.map +0 -1
  388. package/dist/_chunks/relations-BakOFl_1.mjs +0 -134
  389. package/dist/_chunks/relations-BakOFl_1.mjs.map +0 -1
  390. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  391. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  392. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  393. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  394. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  395. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  396. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  397. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  398. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  399. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  400. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  401. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  402. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  403. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  404. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  405. package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
  406. package/dist/_chunks/th-D9_GfAjc.js +0 -148
  407. package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
  408. package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
  409. package/dist/_chunks/tr-D9UH-O_R.js +0 -199
  410. package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
  411. package/dist/_chunks/uk-C8EiqJY7.js +0 -144
  412. package/dist/_chunks/uk-C8EiqJY7.js.map +0 -1
  413. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  414. package/dist/_chunks/useDragAndDrop-BMtgCYzL.js +0 -245
  415. package/dist/_chunks/useDragAndDrop-BMtgCYzL.js.map +0 -1
  416. package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs +0 -228
  417. package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs.map +0 -1
  418. package/dist/_chunks/usePrev-CZGy2Vjf.mjs +0 -29
  419. package/dist/_chunks/usePrev-CZGy2Vjf.mjs.map +0 -1
  420. package/dist/_chunks/usePrev-D5J_2fEu.js +0 -28
  421. package/dist/_chunks/usePrev-D5J_2fEu.js.map +0 -1
  422. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  423. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  424. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  425. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  426. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  427. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  428. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  429. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
  430. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +0 -49
  431. package/dist/admin/src/preview/components/PreviewContent.d.ts +0 -2
@@ -0,0 +1,615 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var React = require('react');
5
+ var strapiAdmin = require('@strapi/admin/strapi-admin');
6
+ var designSystem = require('@strapi/design-system');
7
+ var Icons = require('@strapi/icons');
8
+ var reactIntl = require('react-intl');
9
+ var reactRouterDom = require('react-router-dom');
10
+ var styledComponents = require('styled-components');
11
+ var index = require('./index-BwIhYBsG.js');
12
+ var Input = require('./Input-B8I0b9aD.js');
13
+ var qs = require('qs');
14
+ var EditViewPage = require('./EditViewPage-CuQfZJDf.js');
15
+ require('lodash/fp/mapValues');
16
+ require('yup');
17
+ require('fractional-indexing');
18
+ require('lodash/fp/pipe');
19
+ require('date-fns');
20
+ require('@reduxjs/toolkit');
21
+ require('prismjs');
22
+ require('slate');
23
+ require('slate-history');
24
+ require('slate-react');
25
+ require('prismjs/themes/prism-solarizedlight.css');
26
+ require('prismjs/components/prism-asmatmel');
27
+ require('prismjs/components/prism-bash');
28
+ require('prismjs/components/prism-basic');
29
+ require('prismjs/components/prism-c');
30
+ require('prismjs/components/prism-clojure');
31
+ require('prismjs/components/prism-cobol');
32
+ require('prismjs/components/prism-cpp');
33
+ require('prismjs/components/prism-csharp');
34
+ require('prismjs/components/prism-dart');
35
+ require('prismjs/components/prism-docker');
36
+ require('prismjs/components/prism-elixir');
37
+ require('prismjs/components/prism-erlang');
38
+ require('prismjs/components/prism-fortran');
39
+ require('prismjs/components/prism-fsharp');
40
+ require('prismjs/components/prism-go');
41
+ require('prismjs/components/prism-graphql');
42
+ require('prismjs/components/prism-groovy');
43
+ require('prismjs/components/prism-haskell');
44
+ require('prismjs/components/prism-haxe');
45
+ require('prismjs/components/prism-ini');
46
+ require('prismjs/components/prism-java');
47
+ require('prismjs/components/prism-javascript');
48
+ require('prismjs/components/prism-jsx');
49
+ require('prismjs/components/prism-json');
50
+ require('prismjs/components/prism-julia');
51
+ require('prismjs/components/prism-kotlin');
52
+ require('prismjs/components/prism-latex');
53
+ require('prismjs/components/prism-lua');
54
+ require('prismjs/components/prism-markdown');
55
+ require('prismjs/components/prism-matlab');
56
+ require('prismjs/components/prism-makefile');
57
+ require('prismjs/components/prism-objectivec');
58
+ require('prismjs/components/prism-perl');
59
+ require('prismjs/components/prism-php');
60
+ require('prismjs/components/prism-powershell');
61
+ require('prismjs/components/prism-python');
62
+ require('prismjs/components/prism-r');
63
+ require('prismjs/components/prism-ruby');
64
+ require('prismjs/components/prism-rust');
65
+ require('prismjs/components/prism-sas');
66
+ require('prismjs/components/prism-scala');
67
+ require('prismjs/components/prism-scheme');
68
+ require('prismjs/components/prism-sql');
69
+ require('prismjs/components/prism-stata');
70
+ require('prismjs/components/prism-swift');
71
+ require('prismjs/components/prism-typescript');
72
+ require('prismjs/components/prism-tsx');
73
+ require('prismjs/components/prism-vbnet');
74
+ require('prismjs/components/prism-yaml');
75
+ require('./usePrev-DgZBp9Oo.js');
76
+ require('./objects-BJTP843m.js');
77
+ require('react-dnd');
78
+ require('lodash/clone');
79
+ require('lodash/toPath');
80
+ require('@radix-ui/react-toolbar');
81
+ require('react-dnd-html5-backend');
82
+ require('./ComponentIcon-C-EjOUPA.js');
83
+ require('@strapi/icons/symbols');
84
+ require('react-window');
85
+ require('codemirror5');
86
+ require('sanitize-html');
87
+ require('highlight.js');
88
+ require('markdown-it');
89
+ require('markdown-it-abbr');
90
+ require('markdown-it-container');
91
+ require('markdown-it-deflist');
92
+ require('markdown-it-emoji');
93
+ require('markdown-it-footnote');
94
+ require('markdown-it-ins');
95
+ require('markdown-it-mark');
96
+ require('markdown-it-sub');
97
+ require('markdown-it-sup');
98
+ require('highlight.js/styles/solarized-dark.css');
99
+ require('codemirror5/addon/display/placeholder');
100
+
101
+ function _interopNamespaceDefault(e) {
102
+ var n = Object.create(null);
103
+ if (e) {
104
+ Object.keys(e).forEach(function (k) {
105
+ if (k !== 'default') {
106
+ var d = Object.getOwnPropertyDescriptor(e, k);
107
+ Object.defineProperty(n, k, d.get ? d : {
108
+ enumerable: true,
109
+ get: function () { return e[k]; }
110
+ });
111
+ }
112
+ });
113
+ }
114
+ n.default = e;
115
+ return Object.freeze(n);
116
+ }
117
+
118
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
119
+
120
+ /* -------------------------------------------------------------------------------------------------
121
+ * ClosePreviewButton
122
+ * -----------------------------------------------------------------------------------------------*/ const ClosePreviewButton = ()=>{
123
+ const [{ query }] = strapiAdmin.useQueryParams();
124
+ const { formatMessage } = reactIntl.useIntl();
125
+ const canGoBack = strapiAdmin.useHistory('BackButton', (state)=>state.canGoBack);
126
+ const goBack = strapiAdmin.useHistory('BackButton', (state)=>state.goBack);
127
+ const history = strapiAdmin.useHistory('BackButton', (state)=>state.history);
128
+ const locationIndex = strapiAdmin.useHistory('BackButton', (state)=>state.currentLocationIndex);
129
+ /**
130
+ * Get the link destination from the history.
131
+ * Rely on a fallback (the parent edit view page) if there's no page to go back .
132
+ */ const historyTo = canGoBack ? history.at(locationIndex - 2) : undefined;
133
+ const fallback = {
134
+ pathname: '..',
135
+ search: qs.stringify(query, {
136
+ encode: false
137
+ })
138
+ };
139
+ const toWithFallback = historyTo ?? fallback;
140
+ const handleClick = (e)=>{
141
+ if (canGoBack) {
142
+ // Prevent normal link behavior, go back in the history stack instead
143
+ e.preventDefault();
144
+ goBack();
145
+ return;
146
+ }
147
+ // Otherwise rely on native link behavior to go back to the edit view. We don't use navigate()
148
+ // here in order to get the relative="path" functionality from the Link component.
149
+ };
150
+ return /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
151
+ variant: "ghost",
152
+ tag: reactRouterDom.Link,
153
+ relative: "path",
154
+ to: toWithFallback,
155
+ onClick: handleClick,
156
+ label: formatMessage({
157
+ id: 'content-manager.preview.header.close',
158
+ defaultMessage: 'Close preview'
159
+ }),
160
+ children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Cross, {})
161
+ });
162
+ };
163
+ /* -------------------------------------------------------------------------------------------------
164
+ * Status
165
+ * -----------------------------------------------------------------------------------------------*/ const Status = ()=>{
166
+ // Get status
167
+ const document = usePreviewContext('PreviewHeader', (state)=>state.document);
168
+ const schema = usePreviewContext('PreviewHeader', (state)=>state.schema);
169
+ const meta = usePreviewContext('PreviewHeader', (state)=>state.meta);
170
+ const hasDraftAndPublished = schema?.options?.draftAndPublish ?? false;
171
+ if (!hasDraftAndPublished) {
172
+ return null;
173
+ }
174
+ const status = EditViewPage.getDocumentStatus(document, meta);
175
+ return /*#__PURE__*/ jsxRuntime.jsx(index.DocumentStatus, {
176
+ status: status,
177
+ size: "XS"
178
+ });
179
+ };
180
+ const PreviewTabs = ()=>{
181
+ const { formatMessage } = reactIntl.useIntl();
182
+ // URL query params
183
+ const [{ query }, setQuery] = strapiAdmin.useQueryParams();
184
+ // Get status
185
+ const document = usePreviewContext('PreviewHeader', (state)=>state.document);
186
+ const schema = usePreviewContext('PreviewHeader', (state)=>state.schema);
187
+ const meta = usePreviewContext('PreviewHeader', (state)=>state.meta);
188
+ const hasDraftAndPublish = schema?.options?.draftAndPublish ?? false;
189
+ const documentStatus = EditViewPage.getDocumentStatus(document, meta);
190
+ const handleTabChange = (status)=>{
191
+ if (status === 'published' || status === 'draft') {
192
+ setQuery({
193
+ status
194
+ }, 'push', true);
195
+ }
196
+ };
197
+ if (!hasDraftAndPublish) {
198
+ return null;
199
+ }
200
+ return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Tabs.Root, {
201
+ variant: "simple",
202
+ value: query.status || 'draft',
203
+ onValueChange: handleTabChange,
204
+ children: /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Tabs.List, {
205
+ "aria-label": formatMessage({
206
+ id: 'preview.tabs.label',
207
+ defaultMessage: 'Document status'
208
+ }),
209
+ children: [
210
+ /*#__PURE__*/ jsxRuntime.jsx(StatusTab, {
211
+ value: "draft",
212
+ children: formatMessage({
213
+ id: 'content-manager.containers.List.draft',
214
+ defaultMessage: 'draft'
215
+ })
216
+ }),
217
+ /*#__PURE__*/ jsxRuntime.jsx(StatusTab, {
218
+ value: "published",
219
+ disabled: documentStatus === 'draft',
220
+ children: formatMessage({
221
+ id: 'content-manager.containers.List.published',
222
+ defaultMessage: 'published'
223
+ })
224
+ })
225
+ ]
226
+ })
227
+ });
228
+ };
229
+ /* -------------------------------------------------------------------------------------------------
230
+ * PreviewHeader
231
+ * -----------------------------------------------------------------------------------------------*/ const PreviewHeader = ()=>{
232
+ const title = usePreviewContext('PreviewHeader', (state)=>state.title);
233
+ const document = usePreviewContext('PreviewHeader', (state)=>state.document);
234
+ const schema = usePreviewContext('PreviewHeader', (state)=>state.schema);
235
+ const meta = usePreviewContext('PreviewHeader', (state)=>state.meta);
236
+ const plugins = strapiAdmin.useStrapiApp('PreviewHeader', (state)=>state.plugins);
237
+ const onPreview = index.useDocumentContext('PreviewHeader', (state)=>state.onPreview);
238
+ const [{ query }] = strapiAdmin.useQueryParams();
239
+ const { formatMessage } = reactIntl.useIntl();
240
+ const { toggleNotification } = strapiAdmin.useNotification();
241
+ const { copy } = strapiAdmin.useClipboard();
242
+ const handleCopyLink = ()=>{
243
+ copy(window.location.href);
244
+ toggleNotification({
245
+ message: formatMessage({
246
+ id: 'content-manager.preview.copy.success',
247
+ defaultMessage: 'Copied preview link'
248
+ }),
249
+ type: 'success'
250
+ });
251
+ };
252
+ const hasDraftAndPublish = schema.options?.draftAndPublish ?? false;
253
+ const documentActionProps = {
254
+ activeTab: query.status ?? null,
255
+ collectionType: schema.kind === 'collectionType' ? 'collection-types' : 'single-types',
256
+ model: schema.uid,
257
+ documentId: document.documentId,
258
+ document,
259
+ meta,
260
+ onPreview
261
+ };
262
+ return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
263
+ height: "48px",
264
+ gap: 4,
265
+ background: "neutral0",
266
+ borderColor: "neutral150",
267
+ tag: "header",
268
+ children: [
269
+ /*#__PURE__*/ jsxRuntime.jsxs(TitleContainer, {
270
+ height: "100%",
271
+ paddingLeft: 2,
272
+ paddingRight: 4,
273
+ children: [
274
+ /*#__PURE__*/ jsxRuntime.jsx(ClosePreviewButton, {}),
275
+ /*#__PURE__*/ jsxRuntime.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__*/ jsxRuntime.jsx(Status, {})
286
+ ]
287
+ }),
288
+ /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
289
+ flex: 1,
290
+ paddingRight: 2,
291
+ gap: 2,
292
+ justifyContent: hasDraftAndPublish ? 'space-between' : 'flex-end',
293
+ children: [
294
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Flex, {
295
+ flex: "1 1 70%",
296
+ children: /*#__PURE__*/ jsxRuntime.jsx(PreviewTabs, {})
297
+ }),
298
+ /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
299
+ gap: 2,
300
+ children: [
301
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
302
+ type: "button",
303
+ label: formatMessage({
304
+ id: 'preview.copy.label',
305
+ defaultMessage: 'Copy preview link'
306
+ }),
307
+ onClick: handleCopyLink,
308
+ children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Link, {})
309
+ }),
310
+ /*#__PURE__*/ jsxRuntime.jsx(index.InjectionZone, {
311
+ area: "preview.actions"
312
+ }),
313
+ /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.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__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
325
+ children: [
326
+ /*#__PURE__*/ jsxRuntime.jsx(index.DocumentActionButton, {
327
+ ...secondaryAction,
328
+ variant: secondaryAction.variant || 'secondary'
329
+ }),
330
+ /*#__PURE__*/ jsxRuntime.jsx(index.DocumentActionButton, {
331
+ ...primaryAction,
332
+ variant: primaryAction.variant || 'default'
333
+ })
334
+ ]
335
+ });
336
+ }
337
+ // Otherwise we just have the save action
338
+ return /*#__PURE__*/ jsxRuntime.jsx(index.DocumentActionButton, {
339
+ ...primaryAction,
340
+ variant: primaryAction.variant || 'secondary'
341
+ });
342
+ }
343
+ })
344
+ ]
345
+ })
346
+ ]
347
+ })
348
+ ]
349
+ });
350
+ };
351
+ const PreviewTitle = styledComponents.styled(designSystem.Typography)`
352
+ overflow: hidden;
353
+ text-overflow: ellipsis;
354
+ white-space: nowrap;
355
+ `;
356
+ const StatusTab = styledComponents.styled(designSystem.Tabs.Trigger)`
357
+ text-transform: uppercase;
358
+ `;
359
+ const TitleContainer = styledComponents.styled(designSystem.Flex)`
360
+ border-right: 1px solid ${({ theme })=>theme.colors.neutral150};
361
+ `;
362
+
363
+ const [PreviewProvider, usePreviewContext] = strapiAdmin.createContext('PreviewPage');
364
+ /* -------------------------------------------------------------------------------------------------
365
+ * PreviewPage
366
+ * -----------------------------------------------------------------------------------------------*/ const AnimatedArrow = styledComponents.styled(Icons.ArrowLineLeft)`
367
+ will-change: transform;
368
+ rotate: ${(props)=>props.isSideEditorOpen ? '0deg' : '180deg'};
369
+ transition: rotate 0.2s ease-in-out;
370
+ `;
371
+ const PreviewPage = ()=>{
372
+ const location = reactRouterDom.useLocation();
373
+ const { formatMessage } = reactIntl.useIntl();
374
+ const iframeRef = React__namespace.useRef(null);
375
+ const [isSideEditorOpen, setIsSideEditorOpen] = React__namespace.useState(true);
376
+ // Read all the necessary data from the URL to find the right preview URL
377
+ const { slug: model, id: documentId, collectionType } = reactRouterDom.useParams();
378
+ const [{ query }] = strapiAdmin.useQueryParams();
379
+ const params = React__namespace.useMemo(()=>index.buildValidParams(query), [
380
+ query
381
+ ]);
382
+ if (!collectionType) {
383
+ throw new Error('Could not find collectionType in url params');
384
+ }
385
+ if (!model) {
386
+ throw new Error('Could not find model in url params');
387
+ }
388
+ // Only collection types must have a documentId
389
+ if (collectionType === index.COLLECTION_TYPES && !documentId) {
390
+ throw new Error('Could not find documentId in url params');
391
+ }
392
+ const previewUrlResponse = index.useGetPreviewUrlQuery({
393
+ params: {
394
+ contentType: model
395
+ },
396
+ query: {
397
+ documentId,
398
+ locale: params.locale,
399
+ status: params.status
400
+ }
401
+ });
402
+ const documentResponse = index.useDocument({
403
+ model,
404
+ collectionType,
405
+ documentId,
406
+ params
407
+ });
408
+ const documentLayoutResponse = index.useDocumentLayout(model);
409
+ const isLoading = previewUrlResponse.isLoading || documentLayoutResponse.isLoading || documentResponse.isLoading;
410
+ if (isLoading && !documentResponse.document?.documentId) {
411
+ return /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Loading, {});
412
+ }
413
+ const initialValues = documentResponse.getInitialFormValues();
414
+ if (previewUrlResponse.error || documentLayoutResponse.error || !documentResponse.document || !documentResponse.meta || !documentResponse.schema || !initialValues) {
415
+ return /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Error, {});
416
+ }
417
+ if (!previewUrlResponse.data?.data?.url) {
418
+ return /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.NoData, {});
419
+ }
420
+ const documentTitle = documentResponse.getTitle(documentLayoutResponse.edit.settings.mainField);
421
+ const validateSync = (values, options)=>{
422
+ const yupSchema = index.createYupSchema(documentResponse.schema?.attributes, documentResponse.components, {
423
+ status: documentResponse.document?.status,
424
+ ...options
425
+ });
426
+ return yupSchema.validateSync(values, {
427
+ abortEarly: false
428
+ });
429
+ };
430
+ const previewUrl = previewUrlResponse.data.data.url;
431
+ const onPreview = ()=>{
432
+ iframeRef?.current?.contentWindow?.postMessage({
433
+ type: 'strapiUpdate'
434
+ }, // The iframe origin is safe to use since it must be provided through the allowedOrigins config
435
+ new URL(iframeRef.current.src).origin);
436
+ };
437
+ return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
438
+ children: [
439
+ /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Title, {
440
+ children: formatMessage({
441
+ id: 'content-manager.preview.page-title',
442
+ defaultMessage: '{contentType} preview'
443
+ }, {
444
+ contentType: documentTitle
445
+ })
446
+ }),
447
+ /*#__PURE__*/ jsxRuntime.jsx(index.DocumentContextProvider, {
448
+ initialDocument: {
449
+ documentId: documentId || '',
450
+ model,
451
+ collectionType
452
+ },
453
+ onPreview: onPreview,
454
+ children: /*#__PURE__*/ jsxRuntime.jsx(PreviewProvider, {
455
+ url: previewUrl,
456
+ document: documentResponse.document,
457
+ title: documentTitle,
458
+ meta: documentResponse.meta,
459
+ schema: documentResponse.schema,
460
+ layout: documentLayoutResponse.edit,
461
+ children: /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Form, {
462
+ method: "PUT",
463
+ disabled: query.status === 'published' && documentResponse && documentResponse.document.status === 'published',
464
+ initialValues: documentResponse.getInitialFormValues(),
465
+ initialErrors: location?.state?.forceValidation ? validateSync(initialValues, {}) : {},
466
+ height: "100%",
467
+ validate: (values, options)=>{
468
+ const yupSchema = index.createYupSchema(documentResponse.schema?.attributes, documentResponse.components, {
469
+ status: documentResponse.document?.status,
470
+ ...options
471
+ });
472
+ return yupSchema.validate(values, {
473
+ abortEarly: false
474
+ });
475
+ },
476
+ children: ({ resetForm })=>/*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
477
+ direction: "column",
478
+ height: "100%",
479
+ alignItems: "stretch",
480
+ children: [
481
+ /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Blocker, {
482
+ onProceed: resetForm
483
+ }),
484
+ /*#__PURE__*/ jsxRuntime.jsx(PreviewHeader, {}),
485
+ /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
486
+ flex: 1,
487
+ overflow: "auto",
488
+ alignItems: "stretch",
489
+ children: [
490
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
491
+ overflow: "auto",
492
+ width: isSideEditorOpen ? '50%' : 0,
493
+ borderWidth: "0 1px 0 0",
494
+ borderColor: "neutral150",
495
+ paddingTop: 6,
496
+ paddingBottom: 6,
497
+ // Remove horizontal padding when the editor is closed or it won't fully disappear
498
+ paddingLeft: isSideEditorOpen ? 6 : 0,
499
+ paddingRight: isSideEditorOpen ? 6 : 0,
500
+ transition: "all 0.2s ease-in-out",
501
+ children: /*#__PURE__*/ jsxRuntime.jsx(Input.FormLayout, {
502
+ layout: documentLayoutResponse.edit.layout,
503
+ document: documentResponse,
504
+ hasBackground: false
505
+ })
506
+ }),
507
+ /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Box, {
508
+ position: "relative",
509
+ flex: 1,
510
+ height: "100%",
511
+ overflow: "hidden",
512
+ children: [
513
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
514
+ "data-testid": "preview-iframe",
515
+ ref: iframeRef,
516
+ src: previewUrl,
517
+ title: formatMessage({
518
+ id: 'content-manager.preview.panel.title',
519
+ defaultMessage: 'Preview'
520
+ }),
521
+ width: "100%",
522
+ height: "100%",
523
+ borderWidth: 0,
524
+ tag: "iframe"
525
+ }, previewUrl),
526
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
527
+ variant: "tertiary",
528
+ label: formatMessage(isSideEditorOpen ? {
529
+ id: 'content-manager.preview.content.close-editor',
530
+ defaultMessage: 'Close editor'
531
+ } : {
532
+ id: 'content-manager.preview.content.open-editor',
533
+ defaultMessage: 'Open editor'
534
+ }),
535
+ onClick: ()=>setIsSideEditorOpen((prev)=>!prev),
536
+ position: "absolute",
537
+ top: 2,
538
+ left: 2,
539
+ children: /*#__PURE__*/ jsxRuntime.jsx(AnimatedArrow, {
540
+ isSideEditorOpen: isSideEditorOpen
541
+ })
542
+ })
543
+ ]
544
+ })
545
+ ]
546
+ })
547
+ ]
548
+ })
549
+ })
550
+ })
551
+ })
552
+ ]
553
+ });
554
+ };
555
+ /* -------------------------------------------------------------------------------------------------
556
+ * ProtectedPreviewPage
557
+ * -----------------------------------------------------------------------------------------------*/ const ProtectedPreviewPageImpl = ()=>{
558
+ const { slug: model } = reactRouterDom.useParams();
559
+ const { permissions = [], isLoading, error } = strapiAdmin.useRBAC([
560
+ {
561
+ action: 'plugin::content-manager.explorer.read',
562
+ subject: model
563
+ },
564
+ {
565
+ action: 'plugin::content-manager.explorer.update',
566
+ subject: model
567
+ },
568
+ {
569
+ action: 'plugin::content-manager.explorer.publish',
570
+ subject: model
571
+ }
572
+ ]);
573
+ if (isLoading) {
574
+ return /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Loading, {});
575
+ }
576
+ if (error || !model) {
577
+ return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
578
+ height: "100vh",
579
+ width: "100vw",
580
+ position: "fixed",
581
+ top: 0,
582
+ left: 0,
583
+ zIndex: 2,
584
+ background: "neutral0",
585
+ children: /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Error, {})
586
+ });
587
+ }
588
+ return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
589
+ height: "100vh",
590
+ width: "100vw",
591
+ position: "fixed",
592
+ top: 0,
593
+ left: 0,
594
+ zIndex: 2,
595
+ background: "neutral0",
596
+ children: /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Protect, {
597
+ permissions: permissions.filter((permission)=>permission.action.includes('explorer.read')),
598
+ children: /*#__PURE__*/ jsxRuntime.jsx(index.DocumentRBAC, {
599
+ permissions: permissions,
600
+ children: /*#__PURE__*/ jsxRuntime.jsx(PreviewPage, {})
601
+ })
602
+ })
603
+ });
604
+ };
605
+ const ProtectedPreviewPage = ()=>{
606
+ return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Portal, {
607
+ children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.FocusTrap, {
608
+ children: /*#__PURE__*/ jsxRuntime.jsx(ProtectedPreviewPageImpl, {})
609
+ })
610
+ });
611
+ };
612
+
613
+ exports.ProtectedPreviewPage = ProtectedPreviewPage;
614
+ exports.usePreviewContext = usePreviewContext;
615
+ //# sourceMappingURL=Preview-BYKkpc11.js.map