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

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 (437) hide show
  1. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +69 -0
  2. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +1 -0
  3. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +70 -0
  4. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -0
  5. package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs +236 -0
  6. package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs.map +1 -0
  7. package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js +254 -0
  8. package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js.map +1 -0
  9. package/dist/_chunks/ComponentIcon-CRbtQEUV.js +175 -0
  10. package/dist/_chunks/ComponentIcon-CRbtQEUV.js.map +1 -0
  11. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +157 -0
  12. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +1 -0
  13. package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js +150 -0
  14. package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js.map +1 -0
  15. package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs +132 -0
  16. package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs.map +1 -0
  17. package/dist/_chunks/EditViewPage-D4yFJET6.js +209 -0
  18. package/dist/_chunks/EditViewPage-D4yFJET6.js.map +1 -0
  19. package/dist/_chunks/EditViewPage-DrmVmYN0.mjs +191 -0
  20. package/dist/_chunks/EditViewPage-DrmVmYN0.mjs.map +1 -0
  21. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +50 -0
  22. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +1 -0
  23. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +49 -0
  24. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +1 -0
  25. package/dist/_chunks/Form-C4rSaGsz.js +778 -0
  26. package/dist/_chunks/Form-C4rSaGsz.js.map +1 -0
  27. package/dist/_chunks/Form-DamaxNpG.mjs +758 -0
  28. package/dist/_chunks/Form-DamaxNpG.mjs.map +1 -0
  29. package/dist/_chunks/History-D1PreDSY.mjs +999 -0
  30. package/dist/_chunks/History-D1PreDSY.mjs.map +1 -0
  31. package/dist/_chunks/History-DTm8UCCQ.js +1019 -0
  32. package/dist/_chunks/History-DTm8UCCQ.js.map +1 -0
  33. package/dist/_chunks/Input-B7sapvBG.js +5617 -0
  34. package/dist/_chunks/Input-B7sapvBG.js.map +1 -0
  35. package/dist/_chunks/Input-CZ1YvjHR.mjs +5585 -0
  36. package/dist/_chunks/Input-CZ1YvjHR.mjs.map +1 -0
  37. package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs +633 -0
  38. package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs.map +1 -0
  39. package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js +652 -0
  40. package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js.map +1 -0
  41. package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs +854 -0
  42. package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs.map +1 -0
  43. package/dist/_chunks/ListViewPage-DTuuxU3n.js +877 -0
  44. package/dist/_chunks/ListViewPage-DTuuxU3n.js.map +1 -0
  45. package/dist/_chunks/NoContentTypePage-CL7VVeYs.js +51 -0
  46. package/dist/_chunks/NoContentTypePage-CL7VVeYs.js.map +1 -0
  47. package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs +51 -0
  48. package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs.map +1 -0
  49. package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs +23 -0
  50. package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs.map +1 -0
  51. package/dist/_chunks/NoPermissionsPage-v7I599vC.js +23 -0
  52. package/dist/_chunks/NoPermissionsPage-v7I599vC.js.map +1 -0
  53. package/dist/_chunks/Preview-BNuU0SuQ.mjs +287 -0
  54. package/dist/_chunks/Preview-BNuU0SuQ.mjs.map +1 -0
  55. package/dist/_chunks/Preview-Cxq-uI6D.js +305 -0
  56. package/dist/_chunks/Preview-Cxq-uI6D.js.map +1 -0
  57. package/dist/_chunks/Relations-C2Ahkrdg.mjs +728 -0
  58. package/dist/_chunks/Relations-C2Ahkrdg.mjs.map +1 -0
  59. package/dist/_chunks/Relations-CWS79QQn.js +747 -0
  60. package/dist/_chunks/Relations-CWS79QQn.js.map +1 -0
  61. package/dist/_chunks/ar-BUUWXIYu.js +226 -0
  62. package/dist/{admin/chunks/ar-DckYq_WK.js.map → _chunks/ar-BUUWXIYu.js.map} +1 -1
  63. package/dist/_chunks/ar-CCEVvqGG.mjs +226 -0
  64. package/dist/_chunks/ar-CCEVvqGG.mjs.map +1 -0
  65. package/dist/_chunks/ca-5U32ON2v.mjs +201 -0
  66. package/dist/_chunks/ca-5U32ON2v.mjs.map +1 -0
  67. package/dist/_chunks/ca-Cmk45QO6.js +201 -0
  68. package/dist/{admin/chunks/de-CbImAUA5.js.map → _chunks/ca-Cmk45QO6.js.map} +1 -1
  69. package/dist/_chunks/cs-CM2aBUar.mjs +125 -0
  70. package/dist/_chunks/cs-CM2aBUar.mjs.map +1 -0
  71. package/dist/_chunks/cs-CkJy6B2v.js +125 -0
  72. package/dist/{admin/chunks/cs-C7OSYFQ7.js.map → _chunks/cs-CkJy6B2v.js.map} +1 -1
  73. package/dist/_chunks/de-C72KDNOl.mjs +199 -0
  74. package/dist/_chunks/de-C72KDNOl.mjs.map +1 -0
  75. package/dist/_chunks/de-CCEmbAah.js +199 -0
  76. package/dist/{admin/chunks/es-C8vLuvZL.js.map → _chunks/de-CCEmbAah.js.map} +1 -1
  77. package/dist/_chunks/en-BR48D_RH.js +312 -0
  78. package/dist/{admin/chunks/en-DB7sPJVj.js.map → _chunks/en-BR48D_RH.js.map} +1 -1
  79. package/dist/_chunks/en-D65uIF6Y.mjs +312 -0
  80. package/dist/{admin/chunks/en-1xHet_GV.js.map → _chunks/en-D65uIF6Y.mjs.map} +1 -1
  81. package/dist/_chunks/es-9K52xZIr.js +196 -0
  82. package/dist/{admin/chunks/de-5QRlDHyR.js.map → _chunks/es-9K52xZIr.js.map} +1 -1
  83. package/dist/_chunks/es-D34tqjMw.mjs +196 -0
  84. package/dist/_chunks/es-D34tqjMw.mjs.map +1 -0
  85. package/dist/_chunks/eu-CdALomew.mjs +202 -0
  86. package/dist/_chunks/eu-CdALomew.mjs.map +1 -0
  87. package/dist/_chunks/eu-VDH-3ovk.js +202 -0
  88. package/dist/_chunks/eu-VDH-3ovk.js.map +1 -0
  89. package/dist/_chunks/fr-C43IbhA_.js +219 -0
  90. package/dist/_chunks/fr-C43IbhA_.js.map +1 -0
  91. package/dist/_chunks/fr-DBseuRuB.mjs +219 -0
  92. package/dist/_chunks/fr-DBseuRuB.mjs.map +1 -0
  93. package/dist/_chunks/gu-BRmF601H.js +200 -0
  94. package/dist/_chunks/gu-BRmF601H.js.map +1 -0
  95. package/dist/_chunks/gu-CNpaMDpH.mjs +200 -0
  96. package/dist/_chunks/gu-CNpaMDpH.mjs.map +1 -0
  97. package/dist/_chunks/hi-CCJBptSq.js +200 -0
  98. package/dist/_chunks/hi-CCJBptSq.js.map +1 -0
  99. package/dist/_chunks/hi-Dwvd04m3.mjs +200 -0
  100. package/dist/_chunks/hi-Dwvd04m3.mjs.map +1 -0
  101. package/dist/{admin/chunks/hooks-D-sOYd1s.js → _chunks/hooks-BAaaKPS_.js} +3 -6
  102. package/dist/_chunks/hooks-BAaaKPS_.js.map +1 -0
  103. package/dist/_chunks/hooks-E5u1mcgM.mjs +8 -0
  104. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +1 -0
  105. package/dist/_chunks/hu-CeYvaaO0.mjs +202 -0
  106. package/dist/_chunks/hu-CeYvaaO0.mjs.map +1 -0
  107. package/dist/_chunks/hu-sNV_yLYy.js +202 -0
  108. package/dist/_chunks/hu-sNV_yLYy.js.map +1 -0
  109. package/dist/_chunks/id-B5Ser98A.js +160 -0
  110. package/dist/{admin/chunks/it-BAHrwmYS.js.map → _chunks/id-B5Ser98A.js.map} +1 -1
  111. package/dist/_chunks/id-BtwA9WJT.mjs +160 -0
  112. package/dist/_chunks/id-BtwA9WJT.mjs.map +1 -0
  113. package/dist/_chunks/index-DQsvBb_N.js +4500 -0
  114. package/dist/_chunks/index-DQsvBb_N.js.map +1 -0
  115. package/dist/_chunks/index-ZKrsjv-2.mjs +4481 -0
  116. package/dist/_chunks/index-ZKrsjv-2.mjs.map +1 -0
  117. package/dist/_chunks/it-BrVPqaf1.mjs +162 -0
  118. package/dist/_chunks/it-BrVPqaf1.mjs.map +1 -0
  119. package/dist/_chunks/it-DkBIs7vD.js +162 -0
  120. package/dist/{admin/chunks/id-D7V5S1rB.js.map → _chunks/it-DkBIs7vD.js.map} +1 -1
  121. package/dist/_chunks/ja-7sfIbjxE.js +196 -0
  122. package/dist/{admin/chunks/it-CQFpa_Dc.js.map → _chunks/ja-7sfIbjxE.js.map} +1 -1
  123. package/dist/_chunks/ja-BHqhDq4V.mjs +196 -0
  124. package/dist/_chunks/ja-BHqhDq4V.mjs.map +1 -0
  125. package/dist/_chunks/ko-HVQRlfUI.mjs +195 -0
  126. package/dist/_chunks/ko-HVQRlfUI.mjs.map +1 -0
  127. package/dist/_chunks/ko-woFZPmLk.js +195 -0
  128. package/dist/{admin/chunks/es-DkoWSExG.js.map → _chunks/ko-woFZPmLk.js.map} +1 -1
  129. package/dist/_chunks/layout-Cl0NhlQB.js +488 -0
  130. package/dist/_chunks/layout-Cl0NhlQB.js.map +1 -0
  131. package/dist/_chunks/layout-fQk1rMk9.mjs +471 -0
  132. package/dist/_chunks/layout-fQk1rMk9.mjs.map +1 -0
  133. package/dist/_chunks/ml-BihZwQit.mjs +200 -0
  134. package/dist/_chunks/ml-BihZwQit.mjs.map +1 -0
  135. package/dist/_chunks/ml-C2W8N8k1.js +200 -0
  136. package/dist/_chunks/ml-C2W8N8k1.js.map +1 -0
  137. package/dist/_chunks/ms-BuFotyP_.js +144 -0
  138. package/dist/{admin/chunks/cs-BJFxwIWj.js.map → _chunks/ms-BuFotyP_.js.map} +1 -1
  139. package/dist/_chunks/ms-m_WjyWx7.mjs +144 -0
  140. package/dist/_chunks/ms-m_WjyWx7.mjs.map +1 -0
  141. package/dist/_chunks/nl-D4R9gHx5.mjs +202 -0
  142. package/dist/_chunks/nl-D4R9gHx5.mjs.map +1 -0
  143. package/dist/_chunks/nl-bbEOHChV.js +202 -0
  144. package/dist/_chunks/nl-bbEOHChV.js.map +1 -0
  145. package/dist/_chunks/objects-BcXOv6_9.js +47 -0
  146. package/dist/_chunks/objects-BcXOv6_9.js.map +1 -0
  147. package/dist/_chunks/objects-D6yBsdmx.mjs +45 -0
  148. package/dist/_chunks/objects-D6yBsdmx.mjs.map +1 -0
  149. package/dist/_chunks/pl-sbx9mSt_.mjs +199 -0
  150. package/dist/_chunks/pl-sbx9mSt_.mjs.map +1 -0
  151. package/dist/_chunks/pl-uzwG-hk7.js +199 -0
  152. package/dist/{admin/chunks/ca-DviY7mRj.js.map → _chunks/pl-uzwG-hk7.js.map} +1 -1
  153. package/dist/_chunks/pt-BR-BiOz37D9.js +201 -0
  154. package/dist/{admin/chunks/pt-BR-CcotyBGJ.js.map → _chunks/pt-BR-BiOz37D9.js.map} +1 -1
  155. package/dist/_chunks/pt-BR-C71iDxnh.mjs +201 -0
  156. package/dist/_chunks/pt-BR-C71iDxnh.mjs.map +1 -0
  157. package/dist/_chunks/pt-BsaFvS8-.mjs +95 -0
  158. package/dist/_chunks/pt-BsaFvS8-.mjs.map +1 -0
  159. package/dist/_chunks/pt-CeXQuq50.js +95 -0
  160. package/dist/_chunks/pt-CeXQuq50.js.map +1 -0
  161. package/dist/_chunks/relations-BRfBxVbX.js +133 -0
  162. package/dist/_chunks/relations-BRfBxVbX.js.map +1 -0
  163. package/dist/_chunks/relations-BakOFl_1.mjs +134 -0
  164. package/dist/_chunks/relations-BakOFl_1.mjs.map +1 -0
  165. package/dist/_chunks/ru-BE6A4Exp.mjs +231 -0
  166. package/dist/{admin/chunks/ar-DeQBSsfl.js.map → _chunks/ru-BE6A4Exp.mjs.map} +1 -1
  167. package/dist/_chunks/ru-BT3ybNny.js +231 -0
  168. package/dist/{admin/chunks/ru-CB4BUyQp.js.map → _chunks/ru-BT3ybNny.js.map} +1 -1
  169. package/dist/_chunks/sa-CcvkYInH.js +200 -0
  170. package/dist/_chunks/sa-CcvkYInH.js.map +1 -0
  171. package/dist/_chunks/sa-Dag0k-Z8.mjs +200 -0
  172. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +1 -0
  173. package/dist/_chunks/sk-BFg-R8qJ.mjs +202 -0
  174. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +1 -0
  175. package/dist/_chunks/sk-CvY09Xjv.js +202 -0
  176. package/dist/_chunks/sk-CvY09Xjv.js.map +1 -0
  177. package/dist/_chunks/sv-CUnfWGsh.mjs +202 -0
  178. package/dist/_chunks/sv-CUnfWGsh.mjs.map +1 -0
  179. package/dist/_chunks/sv-MYDuzgvT.js +202 -0
  180. package/dist/_chunks/sv-MYDuzgvT.js.map +1 -0
  181. package/dist/_chunks/th-BqbI8lIT.mjs +148 -0
  182. package/dist/_chunks/th-BqbI8lIT.mjs.map +1 -0
  183. package/dist/_chunks/th-D9_GfAjc.js +148 -0
  184. package/dist/{admin/chunks/ms-CvSC0OdG.js.map → _chunks/th-D9_GfAjc.js.map} +1 -1
  185. package/dist/_chunks/tr-CgeK3wJM.mjs +199 -0
  186. package/dist/_chunks/tr-CgeK3wJM.mjs.map +1 -0
  187. package/dist/_chunks/tr-D9UH-O_R.js +199 -0
  188. package/dist/_chunks/tr-D9UH-O_R.js.map +1 -0
  189. package/dist/_chunks/uk-C8EiqJY7.js +144 -0
  190. package/dist/{admin/chunks/ms-Bh09NFff.js.map → _chunks/uk-C8EiqJY7.js.map} +1 -1
  191. package/dist/_chunks/uk-CR-zDhAY.mjs +144 -0
  192. package/dist/_chunks/uk-CR-zDhAY.mjs.map +1 -0
  193. package/dist/_chunks/useDragAndDrop-BMtgCYzL.js +245 -0
  194. package/dist/_chunks/useDragAndDrop-BMtgCYzL.js.map +1 -0
  195. package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs +228 -0
  196. package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs.map +1 -0
  197. package/dist/_chunks/usePrev-CZGy2Vjf.mjs +29 -0
  198. package/dist/_chunks/usePrev-CZGy2Vjf.mjs.map +1 -0
  199. package/dist/_chunks/usePrev-D5J_2fEu.js +28 -0
  200. package/dist/_chunks/usePrev-D5J_2fEu.js.map +1 -0
  201. package/dist/_chunks/vi-CJlYDheJ.js +111 -0
  202. package/dist/{admin/chunks/vi-CvBGlTjr.js.map → _chunks/vi-CJlYDheJ.js.map} +1 -1
  203. package/dist/_chunks/vi-DUXIk_fw.mjs +111 -0
  204. package/dist/_chunks/vi-DUXIk_fw.mjs.map +1 -0
  205. package/dist/_chunks/zh-BWZspA60.mjs +209 -0
  206. package/dist/_chunks/zh-BWZspA60.mjs.map +1 -0
  207. package/dist/_chunks/zh-CQQfszqR.js +209 -0
  208. package/dist/{admin/chunks/ca-ClDTvatJ.js.map → _chunks/zh-CQQfszqR.js.map} +1 -1
  209. package/dist/_chunks/zh-Hans-9kOncHGw.js +952 -0
  210. package/dist/{admin/chunks/zh-Hans-CI0HKio3.js.map → _chunks/zh-Hans-9kOncHGw.js.map} +1 -1
  211. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +952 -0
  212. package/dist/{admin/chunks/zh-Hans-JVK9x7xr.js.map → _chunks/zh-Hans-BPQcRIyH.mjs.map} +1 -1
  213. package/dist/admin/index.js +4 -23
  214. package/dist/admin/index.js.map +1 -1
  215. package/dist/admin/index.mjs +13 -16
  216. package/dist/admin/index.mjs.map +1 -1
  217. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  218. package/dist/admin/src/hooks/useDocument.d.ts +2 -2
  219. package/dist/admin/src/preview/index.d.ts +3 -2
  220. package/dist/server/index.js +4396 -5468
  221. package/dist/server/index.js.map +1 -1
  222. package/dist/server/index.mjs +4368 -5442
  223. package/dist/server/index.mjs.map +1 -1
  224. package/dist/server/src/controllers/utils/metadata.d.ts +1 -1
  225. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  226. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  227. package/dist/server/src/services/utils/count.d.ts +1 -1
  228. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  229. package/dist/server/src/services/utils/populate.d.ts +1 -1
  230. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  231. package/dist/shared/contracts/collection-types.d.ts +1 -0
  232. package/dist/shared/contracts/components.d.ts +1 -0
  233. package/dist/shared/contracts/content-types.d.ts +1 -0
  234. package/dist/shared/contracts/history-versions.d.ts +1 -0
  235. package/dist/shared/contracts/index.d.ts +1 -0
  236. package/dist/shared/contracts/init.d.ts +1 -0
  237. package/dist/shared/contracts/preview.d.ts +1 -0
  238. package/dist/shared/contracts/relations.d.ts +2 -1
  239. package/dist/shared/contracts/relations.d.ts.map +1 -1
  240. package/dist/shared/contracts/review-workflows.d.ts +1 -0
  241. package/dist/shared/contracts/single-types.d.ts +1 -0
  242. package/dist/shared/contracts/uid.d.ts +1 -0
  243. package/dist/shared/index.d.ts +1 -0
  244. package/dist/shared/index.js +24 -35
  245. package/dist/shared/index.js.map +1 -1
  246. package/dist/shared/index.mjs +25 -34
  247. package/dist/shared/index.mjs.map +1 -1
  248. package/package.json +10 -13
  249. package/dist/admin/chunks/CardDragPreview-DwuraT0K.js +0 -80
  250. package/dist/admin/chunks/CardDragPreview-DwuraT0K.js.map +0 -1
  251. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js +0 -82
  252. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js.map +0 -1
  253. package/dist/admin/chunks/ComponentConfigurationPage-BqW-t7Lr.js +0 -276
  254. package/dist/admin/chunks/ComponentConfigurationPage-BqW-t7Lr.js.map +0 -1
  255. package/dist/admin/chunks/ComponentConfigurationPage-CM3vQxyp.js +0 -298
  256. package/dist/admin/chunks/ComponentConfigurationPage-CM3vQxyp.js.map +0 -1
  257. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js +0 -153
  258. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js.map +0 -1
  259. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js +0 -176
  260. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js.map +0 -1
  261. package/dist/admin/chunks/EditConfigurationPage-CIKO27N8.js +0 -180
  262. package/dist/admin/chunks/EditConfigurationPage-CIKO27N8.js.map +0 -1
  263. package/dist/admin/chunks/EditConfigurationPage-CYQ6mJWy.js +0 -158
  264. package/dist/admin/chunks/EditConfigurationPage-CYQ6mJWy.js.map +0 -1
  265. package/dist/admin/chunks/EditViewPage-CRu2G4OS.js +0 -337
  266. package/dist/admin/chunks/EditViewPage-CRu2G4OS.js.map +0 -1
  267. package/dist/admin/chunks/EditViewPage-DaY9aMeu.js +0 -314
  268. package/dist/admin/chunks/EditViewPage-DaY9aMeu.js.map +0 -1
  269. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js +0 -56
  270. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js.map +0 -1
  271. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js +0 -58
  272. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js.map +0 -1
  273. package/dist/admin/chunks/Form--7s-Wsw1.js +0 -978
  274. package/dist/admin/chunks/Form--7s-Wsw1.js.map +0 -1
  275. package/dist/admin/chunks/Form-CX_f1AUZ.js +0 -955
  276. package/dist/admin/chunks/Form-CX_f1AUZ.js.map +0 -1
  277. package/dist/admin/chunks/History-SRih7tGq.js +0 -1380
  278. package/dist/admin/chunks/History-SRih7tGq.js.map +0 -1
  279. package/dist/admin/chunks/History-VVVFEAnd.js +0 -1357
  280. package/dist/admin/chunks/History-VVVFEAnd.js.map +0 -1
  281. package/dist/admin/chunks/Input-B3wbR0pJ.js +0 -6754
  282. package/dist/admin/chunks/Input-B3wbR0pJ.js.map +0 -1
  283. package/dist/admin/chunks/Input-BIRb1gP2.js +0 -6785
  284. package/dist/admin/chunks/Input-BIRb1gP2.js.map +0 -1
  285. package/dist/admin/chunks/ListConfigurationPage-BMBxgLtZ.js +0 -795
  286. package/dist/admin/chunks/ListConfigurationPage-BMBxgLtZ.js.map +0 -1
  287. package/dist/admin/chunks/ListConfigurationPage-DBWZlkHs.js +0 -818
  288. package/dist/admin/chunks/ListConfigurationPage-DBWZlkHs.js.map +0 -1
  289. package/dist/admin/chunks/ListViewPage-9jad22KO.js +0 -1154
  290. package/dist/admin/chunks/ListViewPage-9jad22KO.js.map +0 -1
  291. package/dist/admin/chunks/ListViewPage-Dq2zuPYL.js +0 -1132
  292. package/dist/admin/chunks/ListViewPage-Dq2zuPYL.js.map +0 -1
  293. package/dist/admin/chunks/NoContentTypePage-B5xX6Br5.js +0 -59
  294. package/dist/admin/chunks/NoContentTypePage-B5xX6Br5.js.map +0 -1
  295. package/dist/admin/chunks/NoContentTypePage-BtpSxTZs.js +0 -57
  296. package/dist/admin/chunks/NoContentTypePage-BtpSxTZs.js.map +0 -1
  297. package/dist/admin/chunks/NoPermissionsPage-CRS0hARz.js +0 -38
  298. package/dist/admin/chunks/NoPermissionsPage-CRS0hARz.js.map +0 -1
  299. package/dist/admin/chunks/NoPermissionsPage-HnOCsRtG.js +0 -36
  300. package/dist/admin/chunks/NoPermissionsPage-HnOCsRtG.js.map +0 -1
  301. package/dist/admin/chunks/Preview-BcggSPwn.js +0 -435
  302. package/dist/admin/chunks/Preview-BcggSPwn.js.map +0 -1
  303. package/dist/admin/chunks/Preview-DRtWRrYn.js +0 -457
  304. package/dist/admin/chunks/Preview-DRtWRrYn.js.map +0 -1
  305. package/dist/admin/chunks/Relations-B1i77Jba.js +0 -826
  306. package/dist/admin/chunks/Relations-B1i77Jba.js.map +0 -1
  307. package/dist/admin/chunks/Relations-BDe2e0a7.js +0 -852
  308. package/dist/admin/chunks/Relations-BDe2e0a7.js.map +0 -1
  309. package/dist/admin/chunks/ar-DckYq_WK.js +0 -222
  310. package/dist/admin/chunks/ar-DeQBSsfl.js +0 -227
  311. package/dist/admin/chunks/ca-ClDTvatJ.js +0 -202
  312. package/dist/admin/chunks/ca-DviY7mRj.js +0 -197
  313. package/dist/admin/chunks/cs-BJFxwIWj.js +0 -126
  314. package/dist/admin/chunks/cs-C7OSYFQ7.js +0 -122
  315. package/dist/admin/chunks/de-5QRlDHyR.js +0 -195
  316. package/dist/admin/chunks/de-CbImAUA5.js +0 -200
  317. package/dist/admin/chunks/en-1xHet_GV.js +0 -312
  318. package/dist/admin/chunks/en-DB7sPJVj.js +0 -307
  319. package/dist/admin/chunks/es-C8vLuvZL.js +0 -197
  320. package/dist/admin/chunks/es-DkoWSExG.js +0 -192
  321. package/dist/admin/chunks/eu-BG1xX7HK.js +0 -198
  322. package/dist/admin/chunks/eu-BG1xX7HK.js.map +0 -1
  323. package/dist/admin/chunks/eu-BJW3AvXu.js +0 -203
  324. package/dist/admin/chunks/eu-BJW3AvXu.js.map +0 -1
  325. package/dist/admin/chunks/fr-CqAyDOmo.js +0 -217
  326. package/dist/admin/chunks/fr-CqAyDOmo.js.map +0 -1
  327. package/dist/admin/chunks/fr-Dm1xiZI5.js +0 -212
  328. package/dist/admin/chunks/fr-Dm1xiZI5.js.map +0 -1
  329. package/dist/admin/chunks/gu-D5MMMXRs.js +0 -196
  330. package/dist/admin/chunks/gu-D5MMMXRs.js.map +0 -1
  331. package/dist/admin/chunks/gu-DPU4wyx7.js +0 -201
  332. package/dist/admin/chunks/gu-DPU4wyx7.js.map +0 -1
  333. package/dist/admin/chunks/hi-Dp4omeBb.js +0 -201
  334. package/dist/admin/chunks/hi-Dp4omeBb.js.map +0 -1
  335. package/dist/admin/chunks/hi-lp17SCjr.js +0 -196
  336. package/dist/admin/chunks/hi-lp17SCjr.js.map +0 -1
  337. package/dist/admin/chunks/hooks-D-sOYd1s.js.map +0 -1
  338. package/dist/admin/chunks/hooks-DMvik5y_.js +0 -7
  339. package/dist/admin/chunks/hooks-DMvik5y_.js.map +0 -1
  340. package/dist/admin/chunks/hu-CLka1U2C.js +0 -198
  341. package/dist/admin/chunks/hu-CLka1U2C.js.map +0 -1
  342. package/dist/admin/chunks/hu-CtFJuhTd.js +0 -203
  343. package/dist/admin/chunks/hu-CtFJuhTd.js.map +0 -1
  344. package/dist/admin/chunks/id-D7V5S1rB.js +0 -161
  345. package/dist/admin/chunks/id-USfY9m1g.js +0 -156
  346. package/dist/admin/chunks/id-USfY9m1g.js.map +0 -1
  347. package/dist/admin/chunks/index-CKZHZ3ir.js +0 -5339
  348. package/dist/admin/chunks/index-CKZHZ3ir.js.map +0 -1
  349. package/dist/admin/chunks/index-DfEfFmQC.js +0 -5273
  350. package/dist/admin/chunks/index-DfEfFmQC.js.map +0 -1
  351. package/dist/admin/chunks/it-BAHrwmYS.js +0 -158
  352. package/dist/admin/chunks/it-CQFpa_Dc.js +0 -163
  353. package/dist/admin/chunks/ja-BWKmBJFT.js +0 -192
  354. package/dist/admin/chunks/ja-BWKmBJFT.js.map +0 -1
  355. package/dist/admin/chunks/ja-jdQM-B79.js +0 -197
  356. package/dist/admin/chunks/ja-jdQM-B79.js.map +0 -1
  357. package/dist/admin/chunks/ko-CgADGBNt.js +0 -191
  358. package/dist/admin/chunks/ko-CgADGBNt.js.map +0 -1
  359. package/dist/admin/chunks/ko-k46sEyzt.js +0 -196
  360. package/dist/admin/chunks/ko-k46sEyzt.js.map +0 -1
  361. package/dist/admin/chunks/layout-BN6DSZ4t.js +0 -598
  362. package/dist/admin/chunks/layout-BN6DSZ4t.js.map +0 -1
  363. package/dist/admin/chunks/layout-CX-A0s3P.js +0 -618
  364. package/dist/admin/chunks/layout-CX-A0s3P.js.map +0 -1
  365. package/dist/admin/chunks/ml-CnhCfOn_.js +0 -196
  366. package/dist/admin/chunks/ml-CnhCfOn_.js.map +0 -1
  367. package/dist/admin/chunks/ml-DqxPwODx.js +0 -201
  368. package/dist/admin/chunks/ml-DqxPwODx.js.map +0 -1
  369. package/dist/admin/chunks/ms-Bh09NFff.js +0 -140
  370. package/dist/admin/chunks/ms-CvSC0OdG.js +0 -145
  371. package/dist/admin/chunks/nl-BEubhS8C.js +0 -203
  372. package/dist/admin/chunks/nl-BEubhS8C.js.map +0 -1
  373. package/dist/admin/chunks/nl-C8HYflTc.js +0 -198
  374. package/dist/admin/chunks/nl-C8HYflTc.js.map +0 -1
  375. package/dist/admin/chunks/objects-C3EebVVe.js +0 -76
  376. package/dist/admin/chunks/objects-C3EebVVe.js.map +0 -1
  377. package/dist/admin/chunks/objects-wl73iEma.js +0 -73
  378. package/dist/admin/chunks/objects-wl73iEma.js.map +0 -1
  379. package/dist/admin/chunks/pl-DWhGDzmM.js +0 -200
  380. package/dist/admin/chunks/pl-DWhGDzmM.js.map +0 -1
  381. package/dist/admin/chunks/pl-MFCZJZuZ.js +0 -195
  382. package/dist/admin/chunks/pl-MFCZJZuZ.js.map +0 -1
  383. package/dist/admin/chunks/pt-BR-CPtAXD-4.js +0 -202
  384. package/dist/admin/chunks/pt-BR-CPtAXD-4.js.map +0 -1
  385. package/dist/admin/chunks/pt-BR-CcotyBGJ.js +0 -197
  386. package/dist/admin/chunks/pt-BoPxN80n.js +0 -96
  387. package/dist/admin/chunks/pt-BoPxN80n.js.map +0 -1
  388. package/dist/admin/chunks/pt-HbmgeiYO.js +0 -93
  389. package/dist/admin/chunks/pt-HbmgeiYO.js.map +0 -1
  390. package/dist/admin/chunks/relations-CuPmv-zR.js +0 -160
  391. package/dist/admin/chunks/relations-CuPmv-zR.js.map +0 -1
  392. package/dist/admin/chunks/relations-xwSNlsdc.js +0 -156
  393. package/dist/admin/chunks/relations-xwSNlsdc.js.map +0 -1
  394. package/dist/admin/chunks/ru-C0op0ALG.js +0 -232
  395. package/dist/admin/chunks/ru-C0op0ALG.js.map +0 -1
  396. package/dist/admin/chunks/ru-CB4BUyQp.js +0 -230
  397. package/dist/admin/chunks/sa-B_FuPyMw.js +0 -201
  398. package/dist/admin/chunks/sa-B_FuPyMw.js.map +0 -1
  399. package/dist/admin/chunks/sa-n_aPA-pU.js +0 -196
  400. package/dist/admin/chunks/sa-n_aPA-pU.js.map +0 -1
  401. package/dist/admin/chunks/sk-D_iXML2C.js +0 -203
  402. package/dist/admin/chunks/sk-D_iXML2C.js.map +0 -1
  403. package/dist/admin/chunks/sk-tn_BDjE2.js +0 -198
  404. package/dist/admin/chunks/sk-tn_BDjE2.js.map +0 -1
  405. package/dist/admin/chunks/sv-BstBC1Yp.js +0 -203
  406. package/dist/admin/chunks/sv-BstBC1Yp.js.map +0 -1
  407. package/dist/admin/chunks/sv-cq4ZrQRd.js +0 -198
  408. package/dist/admin/chunks/sv-cq4ZrQRd.js.map +0 -1
  409. package/dist/admin/chunks/th-lXoOCqPC.js +0 -149
  410. package/dist/admin/chunks/th-lXoOCqPC.js.map +0 -1
  411. package/dist/admin/chunks/th-mUH7hEtc.js +0 -144
  412. package/dist/admin/chunks/th-mUH7hEtc.js.map +0 -1
  413. package/dist/admin/chunks/tr-CkS6sLIE.js +0 -200
  414. package/dist/admin/chunks/tr-CkS6sLIE.js.map +0 -1
  415. package/dist/admin/chunks/tr-Yt38daxh.js +0 -195
  416. package/dist/admin/chunks/tr-Yt38daxh.js.map +0 -1
  417. package/dist/admin/chunks/uk-B24MoTVg.js +0 -145
  418. package/dist/admin/chunks/uk-B24MoTVg.js.map +0 -1
  419. package/dist/admin/chunks/uk-Cpgmm7gE.js +0 -140
  420. package/dist/admin/chunks/uk-Cpgmm7gE.js.map +0 -1
  421. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js +0 -247
  422. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js.map +0 -1
  423. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js +0 -271
  424. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js.map +0 -1
  425. package/dist/admin/chunks/usePrev-CwGzb4ed.js +0 -38
  426. package/dist/admin/chunks/usePrev-CwGzb4ed.js.map +0 -1
  427. package/dist/admin/chunks/usePrev-tlgK0qPG.js +0 -34
  428. package/dist/admin/chunks/usePrev-tlgK0qPG.js.map +0 -1
  429. package/dist/admin/chunks/vi-BGr1X_HZ.js +0 -112
  430. package/dist/admin/chunks/vi-BGr1X_HZ.js.map +0 -1
  431. package/dist/admin/chunks/vi-CvBGlTjr.js +0 -108
  432. package/dist/admin/chunks/zh-BmF-sHaT.js +0 -205
  433. package/dist/admin/chunks/zh-BmF-sHaT.js.map +0 -1
  434. package/dist/admin/chunks/zh-DwFu_Kfj.js +0 -210
  435. package/dist/admin/chunks/zh-DwFu_Kfj.js.map +0 -1
  436. package/dist/admin/chunks/zh-Hans-CI0HKio3.js +0 -934
  437. package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +0 -953
@@ -1,618 +0,0 @@
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-CKZHZ3ir.js');
14
- var Relations = require('./Relations-BDe2e0a7.js');
15
- var qs = require('qs');
16
- var hooks = require('./hooks-D-sOYd1s.js');
17
- var useDragAndDrop = require('./useDragAndDrop-gcqEJMnO.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('react-dnd-html5-backend');
25
- require('react-window');
26
- require('./relations-CuPmv-zR.js');
27
- require('react-redux');
28
-
29
- function _interopNamespaceDefault(e) {
30
- var n = Object.create(null);
31
- if (e) {
32
- Object.keys(e).forEach(function (k) {
33
- if (k !== 'default') {
34
- var d = Object.getOwnPropertyDescriptor(e, k);
35
- Object.defineProperty(n, k, d.get ? d : {
36
- enumerable: true,
37
- get: function () { return e[k]; }
38
- });
39
- }
40
- });
41
- }
42
- n.default = e;
43
- return Object.freeze(n);
44
- }
45
-
46
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
47
-
48
- function getStyle(initialOffset, currentOffset, mouseOffset) {
49
- if (!initialOffset || !currentOffset || !mouseOffset) {
50
- return {
51
- display: 'none'
52
- };
53
- }
54
- const { x, y } = mouseOffset;
55
- return {
56
- transform: `translate(${x}px, ${y}px)`
57
- };
58
- }
59
- const DragLayer = ({ renderItem })=>{
60
- const { itemType, isDragging, item, initialOffset, currentOffset, mouseOffset } = reactDnd.useDragLayer((monitor)=>({
61
- item: monitor.getItem(),
62
- itemType: monitor.getItemType(),
63
- initialOffset: monitor.getInitialSourceClientOffset(),
64
- currentOffset: monitor.getSourceClientOffset(),
65
- isDragging: monitor.isDragging(),
66
- mouseOffset: monitor.getClientOffset()
67
- }));
68
- if (!isDragging) {
69
- return null;
70
- }
71
- return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
72
- height: "100%",
73
- left: 0,
74
- position: "fixed",
75
- pointerEvents: "none",
76
- top: 0,
77
- zIndex: 100,
78
- width: "100%",
79
- children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
80
- style: getStyle(initialOffset, currentOffset, mouseOffset),
81
- children: renderItem({
82
- type: itemType,
83
- item
84
- })
85
- })
86
- });
87
- };
88
-
89
- const ComponentDragPreview = ({ displayedValue })=>{
90
- return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
91
- background: "neutral0",
92
- borderColor: "neutral200",
93
- justifyContent: "space-between",
94
- gap: 3,
95
- padding: 3,
96
- width: "30rem",
97
- children: [
98
- /*#__PURE__*/ jsxRuntime.jsx(ToggleButton, {
99
- type: "button",
100
- children: /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
101
- gap: 6,
102
- children: [
103
- /*#__PURE__*/ jsxRuntime.jsx(DropdownIconWrapper, {
104
- alignItems: "center",
105
- justifyContent: "center",
106
- background: "neutral200",
107
- height: "3.2rem",
108
- width: "3.2rem",
109
- children: /*#__PURE__*/ jsxRuntime.jsx(Icons.CaretDown, {})
110
- }),
111
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Flex, {
112
- maxWidth: "15rem",
113
- children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
114
- textColor: "neutral700",
115
- ellipsis: true,
116
- children: displayedValue
117
- })
118
- })
119
- ]
120
- })
121
- }),
122
- /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
123
- gap: 2,
124
- children: [
125
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
126
- withTooltip: false,
127
- label: "",
128
- variant: "ghost",
129
- children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Trash, {})
130
- }),
131
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
132
- withTooltip: false,
133
- label: "",
134
- variant: "ghost",
135
- children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Drag, {})
136
- })
137
- ]
138
- })
139
- ]
140
- });
141
- };
142
- const DropdownIconWrapper = styledComponents.styled(designSystem.Flex)`
143
- border-radius: 50%;
144
-
145
- svg {
146
- height: 0.6rem;
147
- width: 1.1rem;
148
- > path {
149
- fill: ${({ theme })=>theme.colors.neutral600};
150
- }
151
- }
152
- `;
153
- // TODO: we shouldn't have to reset a whole button
154
- const ToggleButton = styledComponents.styled.button`
155
- border: none;
156
- background: transparent;
157
- display: block;
158
- width: 100%;
159
- text-align: unset;
160
- padding: 0;
161
- `;
162
-
163
- const RelationDragPreview = ({ status, displayedValue, width })=>{
164
- return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
165
- style: {
166
- width
167
- },
168
- children: /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
169
- paddingTop: 2,
170
- paddingBottom: 2,
171
- paddingLeft: 2,
172
- paddingRight: 4,
173
- hasRadius: true,
174
- borderWidth: 1,
175
- background: "neutral0",
176
- borderColor: "neutral200",
177
- justifyContent: "space-between",
178
- gap: 4,
179
- children: [
180
- /*#__PURE__*/ jsxRuntime.jsxs(Relations.FlexWrapper, {
181
- gap: 1,
182
- children: [
183
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
184
- withTooltip: false,
185
- label: "",
186
- variant: "ghost",
187
- children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Drag, {})
188
- }),
189
- /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
190
- width: "100%",
191
- minWidth: 0,
192
- justifyContent: "space-between",
193
- children: [
194
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
195
- minWidth: 0,
196
- paddingTop: 1,
197
- paddingBottom: 1,
198
- paddingRight: 4,
199
- children: /*#__PURE__*/ jsxRuntime.jsx(Relations.LinkEllipsis, {
200
- href: "",
201
- children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
202
- textColor: "primary600",
203
- ellipsis: true,
204
- children: displayedValue
205
- })
206
- })
207
- }),
208
- status ? /*#__PURE__*/ jsxRuntime.jsx(index.DocumentStatus, {
209
- status: status
210
- }) : null
211
- ]
212
- })
213
- ]
214
- }),
215
- /*#__PURE__*/ jsxRuntime.jsx(Relations.DisconnectButton, {
216
- type: "button",
217
- children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Cross, {
218
- width: "12px"
219
- })
220
- })
221
- ]
222
- })
223
- });
224
- };
225
-
226
- const SubNavLinkCustom = styledComponents.styled(designSystem.SubNavLink)`
227
- div {
228
- width: inherit;
229
- span:nth-child(2) {
230
- white-space: nowrap;
231
- overflow: hidden;
232
- text-overflow: ellipsis;
233
- width: inherit;
234
- }
235
- }
236
- `;
237
- const LeftMenu = ()=>{
238
- const [search, setSearch] = React__namespace.useState('');
239
- const [{ query }] = strapiAdmin.useQueryParams();
240
- const { formatMessage, locale } = reactIntl.useIntl();
241
- const collectionTypeLinks = hooks.useTypedSelector((state)=>state['content-manager'].app.collectionTypeLinks);
242
- const singleTypeLinks = hooks.useTypedSelector((state)=>state['content-manager'].app.singleTypeLinks);
243
- const { schemas } = index.useContentTypeSchema();
244
- const { startsWith } = designSystem.useFilter(locale, {
245
- sensitivity: 'base'
246
- });
247
- const formatter = designSystem.useCollator(locale, {
248
- sensitivity: 'base'
249
- });
250
- const menu = React__namespace.useMemo(()=>[
251
- {
252
- id: 'collectionTypes',
253
- title: formatMessage({
254
- id: index.getTranslation('components.LeftMenu.collection-types'),
255
- defaultMessage: 'Collection Types'
256
- }),
257
- searchable: true,
258
- links: collectionTypeLinks
259
- },
260
- {
261
- id: 'singleTypes',
262
- title: formatMessage({
263
- id: index.getTranslation('components.LeftMenu.single-types'),
264
- defaultMessage: 'Single Types'
265
- }),
266
- searchable: true,
267
- links: singleTypeLinks
268
- }
269
- ].map((section)=>({
270
- ...section,
271
- links: section.links/**
272
- * Filter by the search value
273
- */ .filter((link)=>startsWith(link.title, search))/**
274
- * Sort correctly using the language
275
- */ .sort((a, b)=>formatter.compare(a.title, b.title))/**
276
- * Apply the formated strings to the links from react-intl
277
- */ .map((link)=>{
278
- return {
279
- ...link,
280
- title: formatMessage({
281
- id: link.title,
282
- defaultMessage: link.title
283
- })
284
- };
285
- })
286
- })), [
287
- collectionTypeLinks,
288
- search,
289
- singleTypeLinks,
290
- startsWith,
291
- formatMessage,
292
- formatter
293
- ]);
294
- const handleClear = ()=>{
295
- setSearch('');
296
- };
297
- const handleChangeSearch = ({ target: { value } })=>{
298
- setSearch(value);
299
- };
300
- const label = formatMessage({
301
- id: index.getTranslation('header.name'),
302
- defaultMessage: 'Content Manager'
303
- });
304
- const getPluginsParamsForLink = (link)=>{
305
- const schema = schemas.find((schema)=>schema.uid === link.uid);
306
- const isI18nEnabled = Boolean(schema?.pluginOptions?.i18n?.localized);
307
- // The search params have the i18n plugin
308
- if (query.plugins && 'i18n' in query.plugins) {
309
- // Prepare removal of i18n from the plugins search params
310
- const { i18n, ...restPlugins } = query.plugins;
311
- // i18n is not enabled, remove it from the plugins search params
312
- if (!isI18nEnabled) {
313
- return restPlugins;
314
- }
315
- // i18n is enabled, put the plugins search params back together
316
- return {
317
- i18n,
318
- ...restPlugins
319
- };
320
- }
321
- return query.plugins;
322
- };
323
- return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.SubNav, {
324
- "aria-label": label,
325
- children: [
326
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.SubNavHeader, {
327
- label: label,
328
- searchable: true,
329
- value: search,
330
- onChange: handleChangeSearch,
331
- onClear: handleClear,
332
- searchLabel: formatMessage({
333
- id: 'content-manager.components.LeftMenu.Search.label',
334
- defaultMessage: 'Search for a content type'
335
- })
336
- }),
337
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.SubNavSections, {
338
- children: menu.map((section)=>{
339
- return /*#__PURE__*/ jsxRuntime.jsx(designSystem.SubNavSection, {
340
- label: section.title,
341
- badgeLabel: section.links.length.toString(),
342
- children: section.links.map((link)=>{
343
- return /*#__PURE__*/ jsxRuntime.jsx(SubNavLinkCustom, {
344
- tag: reactRouterDom.NavLink,
345
- to: {
346
- pathname: link.to,
347
- search: qs.stringify({
348
- ...qs.parse(link.search ?? ''),
349
- plugins: getPluginsParamsForLink(link)
350
- })
351
- },
352
- width: "100%",
353
- children: link.title
354
- }, link.uid);
355
- })
356
- }, section.id);
357
- })
358
- })
359
- ]
360
- });
361
- };
362
-
363
- const { MUTATE_COLLECTION_TYPES_LINKS, MUTATE_SINGLE_TYPES_LINKS } = index.HOOKS;
364
- const useContentManagerInitData = ()=>{
365
- const { toggleNotification } = strapiAdmin.useNotification();
366
- const dispatch = hooks.useTypedDispatch();
367
- const runHookWaterfall = strapiAdmin.useStrapiApp('useContentManagerInitData', (state)=>state.runHookWaterfall);
368
- const { notifyStatus } = designSystem.useNotifyAT();
369
- const { formatMessage } = reactIntl.useIntl();
370
- const { _unstableFormatAPIError: formatAPIError } = strapiAdmin.useAPIErrorHandler(index.getTranslation);
371
- const checkUserHasPermissions = strapiAdmin.useAuth('useContentManagerInitData', (state)=>state.checkUserHasPermissions);
372
- const state = hooks.useTypedSelector((state)=>state['content-manager'].app);
373
- const initialDataQuery = index.useGetInitialDataQuery(undefined, {
374
- /**
375
- * TODO: remove this when the CTB has been refactored to use redux-toolkit-query
376
- * and it can invalidate the cache on mutation
377
- */ refetchOnMountOrArgChange: true
378
- });
379
- React.useEffect(()=>{
380
- if (initialDataQuery.data) {
381
- notifyStatus(formatMessage({
382
- id: index.getTranslation('App.schemas.data-loaded'),
383
- defaultMessage: 'The schemas have been successfully loaded.'
384
- }));
385
- }
386
- }, [
387
- formatMessage,
388
- initialDataQuery.data,
389
- notifyStatus
390
- ]);
391
- React.useEffect(()=>{
392
- if (initialDataQuery.error) {
393
- toggleNotification({
394
- type: 'danger',
395
- message: formatAPIError(initialDataQuery.error)
396
- });
397
- }
398
- }, [
399
- formatAPIError,
400
- initialDataQuery.error,
401
- toggleNotification
402
- ]);
403
- const contentTypeSettingsQuery = index.useGetAllContentTypeSettingsQuery();
404
- React.useEffect(()=>{
405
- if (contentTypeSettingsQuery.error) {
406
- toggleNotification({
407
- type: 'danger',
408
- message: formatAPIError(contentTypeSettingsQuery.error)
409
- });
410
- }
411
- }, [
412
- formatAPIError,
413
- contentTypeSettingsQuery.error,
414
- toggleNotification
415
- ]);
416
- const formatData = async (components, contentTypes, fieldSizes, contentTypeConfigurations)=>{
417
- /**
418
- * We group these by the two types we support. We do with an object because we can use default
419
- * values of arrays to make sure we always have an array to manipulate further on if, for example,
420
- * a user has not made any single types.
421
- *
422
- * This means we have to manually add new content types to this hook if we add a new type – but
423
- * the safety is worth it.
424
- */ const { collectionType: collectionTypeLinks, singleType: singleTypeLinks } = contentTypes.reduce((acc, model)=>{
425
- acc[model.kind].push(model);
426
- return acc;
427
- }, {
428
- collectionType: [],
429
- singleType: []
430
- });
431
- const collectionTypeSectionLinks = generateLinks(collectionTypeLinks, 'collectionTypes', contentTypeConfigurations);
432
- const singleTypeSectionLinks = generateLinks(singleTypeLinks, 'singleTypes');
433
- // Collection Types verifications
434
- const collectionTypeLinksPermissions = await Promise.all(collectionTypeSectionLinks.map(({ permissions })=>checkUserHasPermissions(permissions)));
435
- const authorizedCollectionTypeLinks = collectionTypeSectionLinks.filter((_, index)=>collectionTypeLinksPermissions[index].length > 0);
436
- // Single Types verifications
437
- const singleTypeLinksPermissions = await Promise.all(singleTypeSectionLinks.map(({ permissions })=>checkUserHasPermissions(permissions)));
438
- const authorizedSingleTypeLinks = singleTypeSectionLinks.filter((_, index)=>singleTypeLinksPermissions[index].length > 0);
439
- const { ctLinks } = runHookWaterfall(MUTATE_COLLECTION_TYPES_LINKS, {
440
- ctLinks: authorizedCollectionTypeLinks,
441
- models: contentTypes
442
- });
443
- const { stLinks } = runHookWaterfall(MUTATE_SINGLE_TYPES_LINKS, {
444
- stLinks: authorizedSingleTypeLinks,
445
- models: contentTypes
446
- });
447
- dispatch(index.setInitialData({
448
- authorizedCollectionTypeLinks: ctLinks,
449
- authorizedSingleTypeLinks: stLinks,
450
- components,
451
- contentTypeSchemas: contentTypes,
452
- fieldSizes
453
- }));
454
- };
455
- React.useEffect(()=>{
456
- if (initialDataQuery.data && contentTypeSettingsQuery.data) {
457
- formatData(initialDataQuery.data.components, initialDataQuery.data.contentTypes, initialDataQuery.data.fieldSizes, contentTypeSettingsQuery.data);
458
- }
459
- }, [
460
- initialDataQuery.data,
461
- contentTypeSettingsQuery.data
462
- ]);
463
- return {
464
- ...state
465
- };
466
- };
467
- const generateLinks = (links, type, configurations = [])=>{
468
- return links.filter((link)=>link.isDisplayed).map((link)=>{
469
- const collectionTypesPermissions = [
470
- {
471
- action: 'plugin::content-manager.explorer.create',
472
- subject: link.uid
473
- },
474
- {
475
- action: 'plugin::content-manager.explorer.read',
476
- subject: link.uid
477
- }
478
- ];
479
- const singleTypesPermissions = [
480
- {
481
- action: 'plugin::content-manager.explorer.read',
482
- subject: link.uid
483
- }
484
- ];
485
- const permissions = type === 'collectionTypes' ? collectionTypesPermissions : singleTypesPermissions;
486
- const currentContentTypeConfig = configurations.find(({ uid })=>uid === link.uid);
487
- let search = null;
488
- if (currentContentTypeConfig) {
489
- const searchParams = {
490
- page: 1,
491
- pageSize: currentContentTypeConfig.settings.pageSize,
492
- sort: `${currentContentTypeConfig.settings.defaultSortBy}:${currentContentTypeConfig.settings.defaultSortOrder}`
493
- };
494
- search = qs.stringify(searchParams, {
495
- encode: false
496
- });
497
- }
498
- return {
499
- permissions,
500
- search,
501
- kind: link.kind,
502
- title: link.info.displayName,
503
- to: `/content-manager/${link.kind === 'collectionType' ? index.COLLECTION_TYPES : index.SINGLE_TYPES}/${link.uid}`,
504
- uid: link.uid,
505
- // Used for the list item key in the helper plugin
506
- name: link.uid,
507
- isDisplayed: link.isDisplayed
508
- };
509
- });
510
- };
511
-
512
- /* -------------------------------------------------------------------------------------------------
513
- * Layout
514
- * -----------------------------------------------------------------------------------------------*/ const Layout = ()=>{
515
- const contentTypeMatch = reactRouterDom.useMatch('/content-manager/:kind/:uid/*');
516
- const { isLoading, collectionTypeLinks, models, singleTypeLinks } = useContentManagerInitData();
517
- const authorisedModels = [
518
- ...collectionTypeLinks,
519
- ...singleTypeLinks
520
- ].sort((a, b)=>a.title.localeCompare(b.title));
521
- const { pathname } = reactRouterDom.useLocation();
522
- const { formatMessage } = reactIntl.useIntl();
523
- const startSection = strapiAdmin.useGuidedTour('Layout', (state)=>state.startSection);
524
- const startSectionRef = React__namespace.useRef(startSection);
525
- React__namespace.useEffect(()=>{
526
- if (startSectionRef.current) {
527
- startSectionRef.current('contentManager');
528
- }
529
- }, []);
530
- if (isLoading) {
531
- return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
532
- children: [
533
- /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Title, {
534
- children: formatMessage({
535
- id: index.getTranslation('plugin.name'),
536
- defaultMessage: 'Content Manager'
537
- })
538
- }),
539
- /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Loading, {})
540
- ]
541
- });
542
- }
543
- // Array of models that are displayed in the content manager
544
- const supportedModelsToDisplay = models.filter(({ isDisplayed })=>isDisplayed);
545
- // Redirect the user to the 403 page
546
- if (authorisedModels.length === 0 && supportedModelsToDisplay.length > 0 && pathname !== '/content-manager/403') {
547
- return /*#__PURE__*/ jsxRuntime.jsx(reactRouterDom.Navigate, {
548
- to: "/403"
549
- });
550
- }
551
- // Redirect the user to the create content type page
552
- if (supportedModelsToDisplay.length === 0 && pathname !== '/no-content-types') {
553
- return /*#__PURE__*/ jsxRuntime.jsx(reactRouterDom.Navigate, {
554
- to: "/no-content-types"
555
- });
556
- }
557
- if (!contentTypeMatch && authorisedModels.length > 0) {
558
- return /*#__PURE__*/ jsxRuntime.jsx(reactRouterDom.Navigate, {
559
- to: {
560
- pathname: authorisedModels[0].to,
561
- search: authorisedModels[0].search ?? ''
562
- },
563
- replace: true
564
- });
565
- }
566
- return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
567
- children: [
568
- /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Page.Title, {
569
- children: formatMessage({
570
- id: index.getTranslation('plugin.name'),
571
- defaultMessage: 'Content Manager'
572
- })
573
- }),
574
- /*#__PURE__*/ jsxRuntime.jsxs(strapiAdmin.Layouts.Root, {
575
- sideNav: /*#__PURE__*/ jsxRuntime.jsx(LeftMenu, {}),
576
- children: [
577
- /*#__PURE__*/ jsxRuntime.jsx(DragLayer, {
578
- renderItem: renderDraglayerItem
579
- }),
580
- /*#__PURE__*/ jsxRuntime.jsx(reactRouterDom.Outlet, {})
581
- ]
582
- })
583
- ]
584
- });
585
- };
586
- /* -------------------------------------------------------------------------------------------------
587
- * renderDraglayerItem
588
- * -----------------------------------------------------------------------------------------------*/ function renderDraglayerItem({ type, item }) {
589
- if (!type || type && typeof type !== 'string') {
590
- return null;
591
- }
592
- /**
593
- * Because a user may have multiple relations / dynamic zones / repeable fields in the same content type,
594
- * we append the fieldName for the item type to make them unique, however, we then want to extract that
595
- * first type to apply the correct preview.
596
- */ const [actualType] = type.split('_');
597
- switch(actualType){
598
- case useDragAndDrop.ItemTypes.EDIT_FIELD:
599
- case useDragAndDrop.ItemTypes.FIELD:
600
- return /*#__PURE__*/ jsxRuntime.jsx(CardDragPreview.CardDragPreview, {
601
- label: item.label
602
- });
603
- case useDragAndDrop.ItemTypes.COMPONENT:
604
- case useDragAndDrop.ItemTypes.DYNAMIC_ZONE:
605
- return /*#__PURE__*/ jsxRuntime.jsx(ComponentDragPreview, {
606
- displayedValue: item.displayedValue
607
- });
608
- case useDragAndDrop.ItemTypes.RELATION:
609
- return /*#__PURE__*/ jsxRuntime.jsx(RelationDragPreview, {
610
- ...item
611
- });
612
- default:
613
- return null;
614
- }
615
- }
616
-
617
- exports.Layout = Layout;
618
- //# sourceMappingURL=layout-CX-A0s3P.js.map