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