@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,672 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { useEffect } from 'react';
4
+ import { useQueryParams, useNotification, useStrapiApp, useAPIErrorHandler, useAuth, useGuidedTour, Page, Layouts } from '@strapi/admin/strapi-admin';
5
+ import { useIntl } from 'react-intl';
6
+ import { NavLink, useMatch, useLocation, Navigate, Outlet } from 'react-router-dom';
7
+ import { Box, Flex, Typography, IconButton, SubNavLink, useFilter, useCollator, SubNav, SubNavHeader, SubNavSections, SubNavSection, useNotifyAT } from '@strapi/design-system';
8
+ import { useDragLayer } from 'react-dnd';
9
+ import { C as CardDragPreview } from './CardDragPreview-DwuraT0K.mjs';
10
+ import { CaretDown, Trash, Drag, Cross } from '@strapi/icons';
11
+ import { styled } from 'styled-components';
12
+ import { D as DocumentStatus, u as useContentTypeSchema, g as getTranslation, a as useGetInitialDataQuery, b as useGetAllContentTypeSettingsQuery, s as setInitialData, C as COLLECTION_TYPES, S as SINGLE_TYPES, H as HOOKS } from './index-DYrCidCq.mjs';
13
+ import { F as FlexWrapper, L as LinkEllipsis, D as DisconnectButton } from './Input-BHucdqva.mjs';
14
+ import { stringify, parse } from 'qs';
15
+ import { u as useTypedSelector, a as useTypedDispatch } from './hooks-DMvik5y_.mjs';
16
+ import { I as ItemTypes } from './objects-D2z-IJgu.mjs';
17
+ import 'lodash/fp/mapValues';
18
+ import 'yup';
19
+ import 'fractional-indexing';
20
+ import 'lodash/fp/pipe';
21
+ import 'date-fns';
22
+ import '@reduxjs/toolkit';
23
+ import 'prismjs';
24
+ import 'slate';
25
+ import 'slate-history';
26
+ import 'slate-react';
27
+ import 'prismjs/themes/prism-solarizedlight.css';
28
+ import 'prismjs/components/prism-asmatmel';
29
+ import 'prismjs/components/prism-bash';
30
+ import 'prismjs/components/prism-basic';
31
+ import 'prismjs/components/prism-c';
32
+ import 'prismjs/components/prism-clojure';
33
+ import 'prismjs/components/prism-cobol';
34
+ import 'prismjs/components/prism-cpp';
35
+ import 'prismjs/components/prism-csharp';
36
+ import 'prismjs/components/prism-dart';
37
+ import 'prismjs/components/prism-docker';
38
+ import 'prismjs/components/prism-elixir';
39
+ import 'prismjs/components/prism-erlang';
40
+ import 'prismjs/components/prism-fortran';
41
+ import 'prismjs/components/prism-fsharp';
42
+ import 'prismjs/components/prism-go';
43
+ import 'prismjs/components/prism-graphql';
44
+ import 'prismjs/components/prism-groovy';
45
+ import 'prismjs/components/prism-haskell';
46
+ import 'prismjs/components/prism-haxe';
47
+ import 'prismjs/components/prism-ini';
48
+ import 'prismjs/components/prism-java';
49
+ import 'prismjs/components/prism-javascript';
50
+ import 'prismjs/components/prism-jsx';
51
+ import 'prismjs/components/prism-json';
52
+ import 'prismjs/components/prism-julia';
53
+ import 'prismjs/components/prism-kotlin';
54
+ import 'prismjs/components/prism-latex';
55
+ import 'prismjs/components/prism-lua';
56
+ import 'prismjs/components/prism-markdown';
57
+ import 'prismjs/components/prism-matlab';
58
+ import 'prismjs/components/prism-makefile';
59
+ import 'prismjs/components/prism-objectivec';
60
+ import 'prismjs/components/prism-perl';
61
+ import 'prismjs/components/prism-php';
62
+ import 'prismjs/components/prism-powershell';
63
+ import 'prismjs/components/prism-python';
64
+ import 'prismjs/components/prism-r';
65
+ import 'prismjs/components/prism-ruby';
66
+ import 'prismjs/components/prism-rust';
67
+ import 'prismjs/components/prism-sas';
68
+ import 'prismjs/components/prism-scala';
69
+ import 'prismjs/components/prism-scheme';
70
+ import 'prismjs/components/prism-sql';
71
+ import 'prismjs/components/prism-stata';
72
+ import 'prismjs/components/prism-swift';
73
+ import 'prismjs/components/prism-typescript';
74
+ import 'prismjs/components/prism-tsx';
75
+ import 'prismjs/components/prism-vbnet';
76
+ import 'prismjs/components/prism-yaml';
77
+ import './usePrev-DinC2aha.mjs';
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
+ import 'react-redux';
99
+ import 'lodash/clone';
100
+ import 'lodash/toPath';
101
+
102
+ function getStyle(initialOffset, currentOffset, mouseOffset) {
103
+ if (!initialOffset || !currentOffset || !mouseOffset) {
104
+ return {
105
+ display: 'none'
106
+ };
107
+ }
108
+ const { x, y } = mouseOffset;
109
+ return {
110
+ transform: `translate(${x}px, ${y}px)`
111
+ };
112
+ }
113
+ const DragLayer = ({ renderItem })=>{
114
+ const { itemType, isDragging, item, initialOffset, currentOffset, mouseOffset } = useDragLayer((monitor)=>({
115
+ item: monitor.getItem(),
116
+ itemType: monitor.getItemType(),
117
+ initialOffset: monitor.getInitialSourceClientOffset(),
118
+ currentOffset: monitor.getSourceClientOffset(),
119
+ isDragging: monitor.isDragging(),
120
+ mouseOffset: monitor.getClientOffset()
121
+ }));
122
+ if (!isDragging) {
123
+ return null;
124
+ }
125
+ return /*#__PURE__*/ jsx(Box, {
126
+ height: "100%",
127
+ left: 0,
128
+ position: "fixed",
129
+ pointerEvents: "none",
130
+ top: 0,
131
+ zIndex: 100,
132
+ width: "100%",
133
+ children: /*#__PURE__*/ jsx(Box, {
134
+ style: getStyle(initialOffset, currentOffset, mouseOffset),
135
+ children: renderItem({
136
+ type: itemType,
137
+ item
138
+ })
139
+ })
140
+ });
141
+ };
142
+
143
+ const ComponentDragPreview = ({ displayedValue })=>{
144
+ return /*#__PURE__*/ jsxs(Flex, {
145
+ background: "neutral0",
146
+ borderColor: "neutral200",
147
+ justifyContent: "space-between",
148
+ gap: 3,
149
+ padding: 3,
150
+ width: "30rem",
151
+ children: [
152
+ /*#__PURE__*/ jsx(ToggleButton, {
153
+ type: "button",
154
+ children: /*#__PURE__*/ jsxs(Flex, {
155
+ gap: 6,
156
+ children: [
157
+ /*#__PURE__*/ jsx(DropdownIconWrapper, {
158
+ alignItems: "center",
159
+ justifyContent: "center",
160
+ background: "neutral200",
161
+ height: "3.2rem",
162
+ width: "3.2rem",
163
+ children: /*#__PURE__*/ jsx(CaretDown, {})
164
+ }),
165
+ /*#__PURE__*/ jsx(Flex, {
166
+ maxWidth: "15rem",
167
+ children: /*#__PURE__*/ jsx(Typography, {
168
+ textColor: "neutral700",
169
+ ellipsis: true,
170
+ children: displayedValue
171
+ })
172
+ })
173
+ ]
174
+ })
175
+ }),
176
+ /*#__PURE__*/ jsxs(Flex, {
177
+ gap: 2,
178
+ children: [
179
+ /*#__PURE__*/ jsx(IconButton, {
180
+ withTooltip: false,
181
+ label: "",
182
+ variant: "ghost",
183
+ children: /*#__PURE__*/ jsx(Trash, {})
184
+ }),
185
+ /*#__PURE__*/ jsx(IconButton, {
186
+ withTooltip: false,
187
+ label: "",
188
+ variant: "ghost",
189
+ children: /*#__PURE__*/ jsx(Drag, {})
190
+ })
191
+ ]
192
+ })
193
+ ]
194
+ });
195
+ };
196
+ const DropdownIconWrapper = styled(Flex)`
197
+ border-radius: 50%;
198
+
199
+ svg {
200
+ height: 0.6rem;
201
+ width: 1.1rem;
202
+ > path {
203
+ fill: ${({ theme })=>theme.colors.neutral600};
204
+ }
205
+ }
206
+ `;
207
+ // TODO: we shouldn't have to reset a whole button
208
+ const ToggleButton = styled.button`
209
+ border: none;
210
+ background: transparent;
211
+ display: block;
212
+ width: 100%;
213
+ text-align: unset;
214
+ padding: 0;
215
+ `;
216
+
217
+ const RelationDragPreview = ({ status, displayedValue, width })=>{
218
+ return /*#__PURE__*/ jsx(Box, {
219
+ style: {
220
+ width
221
+ },
222
+ children: /*#__PURE__*/ jsxs(Flex, {
223
+ paddingTop: 2,
224
+ paddingBottom: 2,
225
+ paddingLeft: 2,
226
+ paddingRight: 4,
227
+ hasRadius: true,
228
+ borderWidth: 1,
229
+ background: "neutral0",
230
+ borderColor: "neutral200",
231
+ justifyContent: "space-between",
232
+ gap: 4,
233
+ children: [
234
+ /*#__PURE__*/ jsxs(FlexWrapper, {
235
+ gap: 1,
236
+ children: [
237
+ /*#__PURE__*/ jsx(IconButton, {
238
+ withTooltip: false,
239
+ label: "",
240
+ variant: "ghost",
241
+ children: /*#__PURE__*/ jsx(Drag, {})
242
+ }),
243
+ /*#__PURE__*/ jsxs(Flex, {
244
+ width: "100%",
245
+ minWidth: 0,
246
+ justifyContent: "space-between",
247
+ children: [
248
+ /*#__PURE__*/ jsx(Box, {
249
+ minWidth: 0,
250
+ paddingTop: 1,
251
+ paddingBottom: 1,
252
+ paddingRight: 4,
253
+ children: /*#__PURE__*/ jsx(LinkEllipsis, {
254
+ href: "",
255
+ children: /*#__PURE__*/ jsx(Typography, {
256
+ textColor: "primary600",
257
+ ellipsis: true,
258
+ children: displayedValue
259
+ })
260
+ })
261
+ }),
262
+ status ? /*#__PURE__*/ jsx(DocumentStatus, {
263
+ status: status
264
+ }) : null
265
+ ]
266
+ })
267
+ ]
268
+ }),
269
+ /*#__PURE__*/ jsx(DisconnectButton, {
270
+ type: "button",
271
+ children: /*#__PURE__*/ jsx(Cross, {
272
+ width: "12px"
273
+ })
274
+ })
275
+ ]
276
+ })
277
+ });
278
+ };
279
+
280
+ const SubNavLinkCustom = styled(SubNavLink)`
281
+ div {
282
+ width: inherit;
283
+ span:nth-child(2) {
284
+ white-space: nowrap;
285
+ overflow: hidden;
286
+ text-overflow: ellipsis;
287
+ width: inherit;
288
+ }
289
+ }
290
+ `;
291
+ const LeftMenu = ()=>{
292
+ const [search, setSearch] = React.useState('');
293
+ const [{ query }] = useQueryParams();
294
+ const { formatMessage, locale } = useIntl();
295
+ const collectionTypeLinks = useTypedSelector((state)=>state['content-manager'].app.collectionTypeLinks);
296
+ const singleTypeLinks = useTypedSelector((state)=>state['content-manager'].app.singleTypeLinks);
297
+ const { schemas } = useContentTypeSchema();
298
+ const { startsWith } = useFilter(locale, {
299
+ sensitivity: 'base'
300
+ });
301
+ const formatter = useCollator(locale, {
302
+ sensitivity: 'base'
303
+ });
304
+ const menu = React.useMemo(()=>[
305
+ {
306
+ id: 'collectionTypes',
307
+ title: formatMessage({
308
+ id: getTranslation('components.LeftMenu.collection-types'),
309
+ defaultMessage: 'Collection Types'
310
+ }),
311
+ searchable: true,
312
+ links: collectionTypeLinks
313
+ },
314
+ {
315
+ id: 'singleTypes',
316
+ title: formatMessage({
317
+ id: getTranslation('components.LeftMenu.single-types'),
318
+ defaultMessage: 'Single Types'
319
+ }),
320
+ searchable: true,
321
+ links: singleTypeLinks
322
+ }
323
+ ].map((section)=>({
324
+ ...section,
325
+ links: section.links/**
326
+ * Filter by the search value
327
+ */ .filter((link)=>startsWith(link.title, search))/**
328
+ * Sort correctly using the language
329
+ */ .sort((a, b)=>formatter.compare(a.title, b.title))/**
330
+ * Apply the formated strings to the links from react-intl
331
+ */ .map((link)=>{
332
+ return {
333
+ ...link,
334
+ title: formatMessage({
335
+ id: link.title,
336
+ defaultMessage: link.title
337
+ })
338
+ };
339
+ })
340
+ })), [
341
+ collectionTypeLinks,
342
+ search,
343
+ singleTypeLinks,
344
+ startsWith,
345
+ formatMessage,
346
+ formatter
347
+ ]);
348
+ const handleClear = ()=>{
349
+ setSearch('');
350
+ };
351
+ const handleChangeSearch = ({ target: { value } })=>{
352
+ setSearch(value);
353
+ };
354
+ const label = formatMessage({
355
+ id: getTranslation('header.name'),
356
+ defaultMessage: 'Content Manager'
357
+ });
358
+ const getPluginsParamsForLink = (link)=>{
359
+ const schema = schemas.find((schema)=>schema.uid === link.uid);
360
+ const isI18nEnabled = Boolean(schema?.pluginOptions?.i18n?.localized);
361
+ // The search params have the i18n plugin
362
+ if (query.plugins && 'i18n' in query.plugins) {
363
+ // Prepare removal of i18n from the plugins search params
364
+ const { i18n, ...restPlugins } = query.plugins;
365
+ // i18n is not enabled, remove it from the plugins search params
366
+ if (!isI18nEnabled) {
367
+ return restPlugins;
368
+ }
369
+ // i18n is enabled, put the plugins search params back together
370
+ return {
371
+ i18n,
372
+ ...restPlugins
373
+ };
374
+ }
375
+ return query.plugins;
376
+ };
377
+ return /*#__PURE__*/ jsxs(SubNav, {
378
+ "aria-label": label,
379
+ children: [
380
+ /*#__PURE__*/ jsx(SubNavHeader, {
381
+ label: label,
382
+ searchable: true,
383
+ value: search,
384
+ onChange: handleChangeSearch,
385
+ onClear: handleClear,
386
+ searchLabel: formatMessage({
387
+ id: 'content-manager.components.LeftMenu.Search.label',
388
+ defaultMessage: 'Search for a content type'
389
+ })
390
+ }),
391
+ /*#__PURE__*/ jsx(SubNavSections, {
392
+ children: menu.map((section)=>{
393
+ return /*#__PURE__*/ jsx(SubNavSection, {
394
+ label: section.title,
395
+ badgeLabel: section.links.length.toString(),
396
+ children: section.links.map((link)=>{
397
+ return /*#__PURE__*/ jsx(SubNavLinkCustom, {
398
+ tag: NavLink,
399
+ to: {
400
+ pathname: link.to,
401
+ search: stringify({
402
+ ...parse(link.search ?? ''),
403
+ plugins: getPluginsParamsForLink(link)
404
+ })
405
+ },
406
+ width: "100%",
407
+ children: link.title
408
+ }, link.uid);
409
+ })
410
+ }, section.id);
411
+ })
412
+ })
413
+ ]
414
+ });
415
+ };
416
+
417
+ const { MUTATE_COLLECTION_TYPES_LINKS, MUTATE_SINGLE_TYPES_LINKS } = HOOKS;
418
+ const useContentManagerInitData = ()=>{
419
+ const { toggleNotification } = useNotification();
420
+ const dispatch = useTypedDispatch();
421
+ const runHookWaterfall = useStrapiApp('useContentManagerInitData', (state)=>state.runHookWaterfall);
422
+ const { notifyStatus } = useNotifyAT();
423
+ const { formatMessage } = useIntl();
424
+ const { _unstableFormatAPIError: formatAPIError } = useAPIErrorHandler(getTranslation);
425
+ const checkUserHasPermissions = useAuth('useContentManagerInitData', (state)=>state.checkUserHasPermissions);
426
+ const state = useTypedSelector((state)=>state['content-manager'].app);
427
+ const initialDataQuery = useGetInitialDataQuery(undefined, {
428
+ /**
429
+ * TODO: remove this when the CTB has been refactored to use redux-toolkit-query
430
+ * and it can invalidate the cache on mutation
431
+ */ refetchOnMountOrArgChange: true
432
+ });
433
+ useEffect(()=>{
434
+ if (initialDataQuery.data) {
435
+ notifyStatus(formatMessage({
436
+ id: getTranslation('App.schemas.data-loaded'),
437
+ defaultMessage: 'The schemas have been successfully loaded.'
438
+ }));
439
+ }
440
+ }, [
441
+ formatMessage,
442
+ initialDataQuery.data,
443
+ notifyStatus
444
+ ]);
445
+ useEffect(()=>{
446
+ if (initialDataQuery.error) {
447
+ toggleNotification({
448
+ type: 'danger',
449
+ message: formatAPIError(initialDataQuery.error)
450
+ });
451
+ }
452
+ }, [
453
+ formatAPIError,
454
+ initialDataQuery.error,
455
+ toggleNotification
456
+ ]);
457
+ const contentTypeSettingsQuery = useGetAllContentTypeSettingsQuery();
458
+ useEffect(()=>{
459
+ if (contentTypeSettingsQuery.error) {
460
+ toggleNotification({
461
+ type: 'danger',
462
+ message: formatAPIError(contentTypeSettingsQuery.error)
463
+ });
464
+ }
465
+ }, [
466
+ formatAPIError,
467
+ contentTypeSettingsQuery.error,
468
+ toggleNotification
469
+ ]);
470
+ const formatData = async (components, contentTypes, fieldSizes, contentTypeConfigurations)=>{
471
+ /**
472
+ * We group these by the two types we support. We do with an object because we can use default
473
+ * values of arrays to make sure we always have an array to manipulate further on if, for example,
474
+ * a user has not made any single types.
475
+ *
476
+ * This means we have to manually add new content types to this hook if we add a new type – but
477
+ * the safety is worth it.
478
+ */ const { collectionType: collectionTypeLinks, singleType: singleTypeLinks } = contentTypes.reduce((acc, model)=>{
479
+ acc[model.kind].push(model);
480
+ return acc;
481
+ }, {
482
+ collectionType: [],
483
+ singleType: []
484
+ });
485
+ const collectionTypeSectionLinks = generateLinks(collectionTypeLinks, 'collectionTypes', contentTypeConfigurations);
486
+ const singleTypeSectionLinks = generateLinks(singleTypeLinks, 'singleTypes');
487
+ // Collection Types verifications
488
+ const collectionTypeLinksPermissions = await Promise.all(collectionTypeSectionLinks.map(({ permissions })=>checkUserHasPermissions(permissions)));
489
+ const authorizedCollectionTypeLinks = collectionTypeSectionLinks.filter((_, index)=>collectionTypeLinksPermissions[index].length > 0);
490
+ // Single Types verifications
491
+ const singleTypeLinksPermissions = await Promise.all(singleTypeSectionLinks.map(({ permissions })=>checkUserHasPermissions(permissions)));
492
+ const authorizedSingleTypeLinks = singleTypeSectionLinks.filter((_, index)=>singleTypeLinksPermissions[index].length > 0);
493
+ const { ctLinks } = runHookWaterfall(MUTATE_COLLECTION_TYPES_LINKS, {
494
+ ctLinks: authorizedCollectionTypeLinks,
495
+ models: contentTypes
496
+ });
497
+ const { stLinks } = runHookWaterfall(MUTATE_SINGLE_TYPES_LINKS, {
498
+ stLinks: authorizedSingleTypeLinks,
499
+ models: contentTypes
500
+ });
501
+ dispatch(setInitialData({
502
+ authorizedCollectionTypeLinks: ctLinks,
503
+ authorizedSingleTypeLinks: stLinks,
504
+ components,
505
+ contentTypeSchemas: contentTypes,
506
+ fieldSizes
507
+ }));
508
+ };
509
+ useEffect(()=>{
510
+ if (initialDataQuery.data && contentTypeSettingsQuery.data) {
511
+ formatData(initialDataQuery.data.components, initialDataQuery.data.contentTypes, initialDataQuery.data.fieldSizes, contentTypeSettingsQuery.data);
512
+ }
513
+ }, [
514
+ initialDataQuery.data,
515
+ contentTypeSettingsQuery.data
516
+ ]);
517
+ return {
518
+ ...state
519
+ };
520
+ };
521
+ const generateLinks = (links, type, configurations = [])=>{
522
+ return links.filter((link)=>link.isDisplayed).map((link)=>{
523
+ const collectionTypesPermissions = [
524
+ {
525
+ action: 'plugin::content-manager.explorer.create',
526
+ subject: link.uid
527
+ },
528
+ {
529
+ action: 'plugin::content-manager.explorer.read',
530
+ subject: link.uid
531
+ }
532
+ ];
533
+ const singleTypesPermissions = [
534
+ {
535
+ action: 'plugin::content-manager.explorer.read',
536
+ subject: link.uid
537
+ }
538
+ ];
539
+ const permissions = type === 'collectionTypes' ? collectionTypesPermissions : singleTypesPermissions;
540
+ const currentContentTypeConfig = configurations.find(({ uid })=>uid === link.uid);
541
+ let search = null;
542
+ if (currentContentTypeConfig) {
543
+ const searchParams = {
544
+ page: 1,
545
+ pageSize: currentContentTypeConfig.settings.pageSize,
546
+ sort: `${currentContentTypeConfig.settings.defaultSortBy}:${currentContentTypeConfig.settings.defaultSortOrder}`
547
+ };
548
+ search = stringify(searchParams, {
549
+ encode: false
550
+ });
551
+ }
552
+ return {
553
+ permissions,
554
+ search,
555
+ kind: link.kind,
556
+ title: link.info.displayName,
557
+ to: `/content-manager/${link.kind === 'collectionType' ? COLLECTION_TYPES : SINGLE_TYPES}/${link.uid}`,
558
+ uid: link.uid,
559
+ // Used for the list item key in the helper plugin
560
+ name: link.uid,
561
+ isDisplayed: link.isDisplayed
562
+ };
563
+ });
564
+ };
565
+
566
+ /* -------------------------------------------------------------------------------------------------
567
+ * Layout
568
+ * -----------------------------------------------------------------------------------------------*/ const Layout = ()=>{
569
+ const contentTypeMatch = useMatch('/content-manager/:kind/:uid/*');
570
+ const { isLoading, collectionTypeLinks, models, singleTypeLinks } = useContentManagerInitData();
571
+ const authorisedModels = [
572
+ ...collectionTypeLinks,
573
+ ...singleTypeLinks
574
+ ].sort((a, b)=>a.title.localeCompare(b.title));
575
+ const { pathname } = useLocation();
576
+ const { formatMessage } = useIntl();
577
+ const startSection = useGuidedTour('Layout', (state)=>state.startSection);
578
+ const startSectionRef = React.useRef(startSection);
579
+ React.useEffect(()=>{
580
+ if (startSectionRef.current) {
581
+ startSectionRef.current('contentManager');
582
+ }
583
+ }, []);
584
+ if (isLoading) {
585
+ return /*#__PURE__*/ jsxs(Fragment, {
586
+ children: [
587
+ /*#__PURE__*/ jsx(Page.Title, {
588
+ children: formatMessage({
589
+ id: getTranslation('plugin.name'),
590
+ defaultMessage: 'Content Manager'
591
+ })
592
+ }),
593
+ /*#__PURE__*/ jsx(Page.Loading, {})
594
+ ]
595
+ });
596
+ }
597
+ // Array of models that are displayed in the content manager
598
+ const supportedModelsToDisplay = models.filter(({ isDisplayed })=>isDisplayed);
599
+ // Redirect the user to the 403 page
600
+ if (authorisedModels.length === 0 && supportedModelsToDisplay.length > 0 && pathname !== '/content-manager/403') {
601
+ return /*#__PURE__*/ jsx(Navigate, {
602
+ to: "/403"
603
+ });
604
+ }
605
+ // Redirect the user to the create content type page
606
+ if (supportedModelsToDisplay.length === 0 && pathname !== '/no-content-types') {
607
+ return /*#__PURE__*/ jsx(Navigate, {
608
+ to: "/no-content-types"
609
+ });
610
+ }
611
+ if (!contentTypeMatch && authorisedModels.length > 0) {
612
+ return /*#__PURE__*/ jsx(Navigate, {
613
+ to: {
614
+ pathname: authorisedModels[0].to,
615
+ search: authorisedModels[0].search ?? ''
616
+ },
617
+ replace: true
618
+ });
619
+ }
620
+ return /*#__PURE__*/ jsxs(Fragment, {
621
+ children: [
622
+ /*#__PURE__*/ jsx(Page.Title, {
623
+ children: formatMessage({
624
+ id: getTranslation('plugin.name'),
625
+ defaultMessage: 'Content Manager'
626
+ })
627
+ }),
628
+ /*#__PURE__*/ jsxs(Layouts.Root, {
629
+ sideNav: /*#__PURE__*/ jsx(LeftMenu, {}),
630
+ children: [
631
+ /*#__PURE__*/ jsx(DragLayer, {
632
+ renderItem: renderDraglayerItem
633
+ }),
634
+ /*#__PURE__*/ jsx(Outlet, {})
635
+ ]
636
+ })
637
+ ]
638
+ });
639
+ };
640
+ /* -------------------------------------------------------------------------------------------------
641
+ * renderDraglayerItem
642
+ * -----------------------------------------------------------------------------------------------*/ function renderDraglayerItem({ type, item }) {
643
+ if (!type || type && typeof type !== 'string') {
644
+ return null;
645
+ }
646
+ /**
647
+ * Because a user may have multiple relations / dynamic zones / repeable fields in the same content type,
648
+ * we append the fieldName for the item type to make them unique, however, we then want to extract that
649
+ * first type to apply the correct preview.
650
+ */ const [actualType] = type.split('_');
651
+ switch(actualType){
652
+ case ItemTypes.EDIT_FIELD:
653
+ case ItemTypes.FIELD:
654
+ return /*#__PURE__*/ jsx(CardDragPreview, {
655
+ label: item.label
656
+ });
657
+ case ItemTypes.COMPONENT:
658
+ case ItemTypes.DYNAMIC_ZONE:
659
+ return /*#__PURE__*/ jsx(ComponentDragPreview, {
660
+ displayedValue: item.displayedValue
661
+ });
662
+ case ItemTypes.RELATION:
663
+ return /*#__PURE__*/ jsx(RelationDragPreview, {
664
+ ...item
665
+ });
666
+ default:
667
+ return null;
668
+ }
669
+ }
670
+
671
+ export { Layout };
672
+ //# sourceMappingURL=layout-D2NJmgCw.mjs.map