@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,852 +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 designSystem = require('@strapi/design-system');
7
- var Icons = require('@strapi/icons');
8
- var fractionalIndexing = require('fractional-indexing');
9
- var pipe = require('lodash/fp/pipe');
10
- var reactDndHtml5Backend = require('react-dnd-html5-backend');
11
- var reactIntl = require('react-intl');
12
- var reactRouterDom = require('react-router-dom');
13
- var reactWindow = require('react-window');
14
- var styledComponents = require('styled-components');
15
- var index = require('./index-CKZHZ3ir.js');
16
- var useDragAndDrop = require('./useDragAndDrop-gcqEJMnO.js');
17
- var relations = require('./relations-CuPmv-zR.js');
18
-
19
- function _interopNamespaceDefault(e) {
20
- var n = Object.create(null);
21
- if (e) {
22
- Object.keys(e).forEach(function (k) {
23
- if (k !== 'default') {
24
- var d = Object.getOwnPropertyDescriptor(e, k);
25
- Object.defineProperty(n, k, d.get ? d : {
26
- enumerable: true,
27
- get: function () { return e[k]; }
28
- });
29
- }
30
- });
31
- }
32
- n.default = e;
33
- return Object.freeze(n);
34
- }
35
-
36
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
37
-
38
- /**
39
- * We use this component to wrap any individual component field in the Edit View,
40
- * this could be a component field in a dynamic zone, a component within a repeatable space,
41
- * or even nested components.
42
- *
43
- * We primarily need this to provide the component id to the components so that they can
44
- * correctly fetch their relations.
45
- */ const [ComponentProvider, useComponent] = strapiAdmin.createContext('ComponentContext', {
46
- id: undefined,
47
- level: -1,
48
- uid: undefined,
49
- type: undefined
50
- });
51
-
52
- /**
53
- * Remove a relation, whether it's been already saved or not.
54
- * It's used both in RelationsList, where the "remove relation" button is, and in the input,
55
- * because we sometimes need to remove a previous relation when selecting a new one.
56
- */ function useHandleDisconnect(fieldName, consumerName) {
57
- const field = strapiAdmin.useField(fieldName);
58
- const removeFieldRow = strapiAdmin.useForm(consumerName, (state)=>state.removeFieldRow);
59
- const addFieldRow = strapiAdmin.useForm(consumerName, (state)=>state.addFieldRow);
60
- const handleDisconnect = (relation)=>{
61
- if (field.value && field.value.connect) {
62
- /**
63
- * A relation will exist in the `connect` array _if_ it has
64
- * been added without saving. In this case, we just remove it
65
- * from the connect array
66
- */ const indexOfRelationInConnectArray = field.value.connect.findIndex((rel)=>rel.id === relation.id);
67
- if (indexOfRelationInConnectArray >= 0) {
68
- removeFieldRow(`${fieldName}.connect`, indexOfRelationInConnectArray);
69
- return;
70
- }
71
- }
72
- addFieldRow(`${fieldName}.disconnect`, {
73
- id: relation.id,
74
- apiData: {
75
- id: relation.id,
76
- documentId: relation.documentId,
77
- locale: relation.locale
78
- }
79
- });
80
- };
81
- return handleDisconnect;
82
- }
83
- /* -------------------------------------------------------------------------------------------------
84
- * RelationsField
85
- * -----------------------------------------------------------------------------------------------*/ const RELATIONS_TO_DISPLAY = 5;
86
- const ONE_WAY_RELATIONS = [
87
- 'oneWay',
88
- 'oneToOne',
89
- 'manyToOne',
90
- 'oneToManyMorph',
91
- 'oneToOneMorph'
92
- ];
93
- /**
94
- * TODO: we get a rather ugly flash when we remove a single relation from the list leaving
95
- * no other relations when we press save. The initial relation re-renders, probably because
96
- * of the lag in the Form cleaning it's "disconnect" array, whilst our data has not been invalidated.
97
- *
98
- * Could we invalidate relation data on the document actions? Should we?
99
- */ /**
100
- * @internal
101
- * @description The relations field holds a lot of domain logic for handling relations which is rather complicated
102
- * At present we do not expose this to plugin developers, however, they are able to overwrite it themselves should
103
- * they wish to do so.
104
- */ const RelationsField = /*#__PURE__*/ React__namespace.forwardRef(({ disabled, label, ...props }, ref)=>{
105
- const [currentPage, setCurrentPage] = React__namespace.useState(1);
106
- const { document, model: documentModel } = index.useDoc();
107
- const documentId = document?.documentId;
108
- const { formatMessage } = reactIntl.useIntl();
109
- const [{ query }] = strapiAdmin.useQueryParams();
110
- const params = index.buildValidParams(query);
111
- const isMorph = props.attribute.relation.toLowerCase().includes('morph');
112
- const isDisabled = isMorph || disabled;
113
- const { componentId, componentUID } = useComponent('RelationsField', ({ uid, id })=>({
114
- componentId: id,
115
- componentUID: uid
116
- }));
117
- const isSubmitting = strapiAdmin.useForm('RelationsList', (state)=>state.isSubmitting);
118
- React__namespace.useEffect(()=>{
119
- setCurrentPage(1);
120
- }, [
121
- isSubmitting
122
- ]);
123
- /**
124
- * We'll always have a documentId in a created entry, so we look for a componentId first.
125
- * Same with `uid` and `documentModel`.
126
- */ const id = componentId ? componentId.toString() : documentId;
127
- const model = componentUID ?? documentModel;
128
- /**
129
- * The `name` prop is a complete path to the field, e.g. `field1.field2.field3`.
130
- * Where the above example would a nested field within two components, however
131
- * we only require the field on the component not the complete path since we query
132
- * individual components. Therefore we split the string and take the last item.
133
- */ const [targetField] = props.name.split('.').slice(-1);
134
- const { data, isLoading, isFetching } = relations.useGetRelationsQuery({
135
- model,
136
- targetField,
137
- // below we don't run the query if there is no id.
138
- id: id,
139
- params: {
140
- ...params,
141
- pageSize: RELATIONS_TO_DISPLAY,
142
- page: currentPage
143
- }
144
- }, {
145
- refetchOnMountOrArgChange: true,
146
- skip: !id,
147
- selectFromResult: (result)=>{
148
- return {
149
- ...result,
150
- data: {
151
- ...result.data,
152
- results: result.data?.results ? result.data.results : []
153
- }
154
- };
155
- }
156
- });
157
- const handleLoadMore = ()=>{
158
- setCurrentPage((prev)=>prev + 1);
159
- };
160
- const field = strapiAdmin.useField(props.name);
161
- const isFetchingMoreRelations = isLoading || isFetching;
162
- const realServerRelationsCount = 'pagination' in data && data.pagination ? data.pagination.total : 0;
163
- /**
164
- * Items that are already connected, but reordered would be in
165
- * this list, so to get an accurate figure, we remove them.
166
- */ const relationsConnected = (field.value?.connect ?? []).filter((rel)=>data.results.findIndex((relation)=>relation.id === rel.id) === -1).length ?? 0;
167
- const relationsDisconnected = field.value?.disconnect?.length ?? 0;
168
- const relationsCount = realServerRelationsCount + relationsConnected - relationsDisconnected;
169
- /**
170
- * This is it, the source of truth for reordering in conjunction with partial loading & updating
171
- * of relations. Relations on load are given __temp_key__ when fetched, because we don't want to
172
- * create brand new keys everytime the data updates, just keep adding them onto the newly loaded ones.
173
- */ const relations$1 = React__namespace.useMemo(()=>{
174
- const ctx = {
175
- field: field.value,
176
- // @ts-expect-error – targetModel does exist on the attribute. But it's not typed.
177
- href: `../${index.COLLECTION_TYPES}/${props.attribute.targetModel}`,
178
- mainField: props.mainField
179
- };
180
- /**
181
- * Tidy up our data.
182
- */ const transformations = pipe(removeConnected(ctx), removeDisconnected(ctx), addLabelAndHref(ctx));
183
- const transformedRels = transformations([
184
- ...data.results
185
- ]);
186
- /**
187
- * THIS IS CRUCIAL. If you don't sort by the __temp_key__ which comes from fractional indexing
188
- * then the list will be in the wrong order.
189
- */ return [
190
- ...transformedRels,
191
- ...field.value?.connect ?? []
192
- ].sort((a, b)=>{
193
- if (a.__temp_key__ < b.__temp_key__) return -1;
194
- if (a.__temp_key__ > b.__temp_key__) return 1;
195
- return 0;
196
- });
197
- }, [
198
- data.results,
199
- field.value,
200
- // @ts-expect-error – targetModel does exist on the attribute. But it's not typed.
201
- props.attribute.targetModel,
202
- props.mainField
203
- ]);
204
- const handleDisconnect = useHandleDisconnect(props.name, 'RelationsField');
205
- const handleConnect = (relation)=>{
206
- const [lastItemInList] = relations$1.slice(-1);
207
- const item = {
208
- id: relation.id,
209
- apiData: {
210
- id: relation.id,
211
- documentId: relation.documentId,
212
- locale: relation.locale
213
- },
214
- status: relation.status,
215
- /**
216
- * If there's a last item, that's the first key we use to generate out next one.
217
- */ __temp_key__: fractionalIndexing.generateNKeysBetween(lastItemInList?.__temp_key__ ?? null, null, 1)[0],
218
- // Fallback to `id` if there is no `mainField` value, which will overwrite the above `id` property with the exact same data.
219
- [props.mainField?.name ?? 'documentId']: relation[props.mainField?.name ?? 'documentId'],
220
- label: relations.getRelationLabel(relation, props.mainField),
221
- // @ts-expect-error – targetModel does exist on the attribute, but it's not typed.
222
- href: `../${index.COLLECTION_TYPES}/${props.attribute.targetModel}/${relation.documentId}?${relation.locale ? `plugins[i18n][locale]=${relation.locale}` : ''}`
223
- };
224
- if (ONE_WAY_RELATIONS.includes(props.attribute.relation)) {
225
- // Remove any existing relation so they can be replaced with the new one
226
- field.value?.connect?.forEach(handleDisconnect);
227
- relations$1.forEach(handleDisconnect);
228
- field.onChange(`${props.name}.connect`, [
229
- item
230
- ]);
231
- } else {
232
- field.onChange(`${props.name}.connect`, [
233
- ...field.value?.connect ?? [],
234
- item
235
- ]);
236
- }
237
- };
238
- return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
239
- ref: ref,
240
- direction: "column",
241
- gap: 3,
242
- justifyContent: "space-between",
243
- alignItems: "stretch",
244
- wrap: "wrap",
245
- children: [
246
- /*#__PURE__*/ jsxRuntime.jsxs(StyledFlex, {
247
- direction: "column",
248
- alignItems: "start",
249
- gap: 2,
250
- width: "100%",
251
- children: [
252
- /*#__PURE__*/ jsxRuntime.jsx(RelationsInput, {
253
- disabled: isDisabled,
254
- // NOTE: we should not default to using the documentId if the component is being created (componentUID is undefined)
255
- id: componentUID ? componentId ? `${componentId}` : '' : documentId,
256
- label: `${label} ${relationsCount > 0 ? `(${relationsCount})` : ''}`,
257
- model: model,
258
- onChange: handleConnect,
259
- ...props
260
- }),
261
- 'pagination' in data && data.pagination && data.pagination.pageCount > data.pagination.page ? /*#__PURE__*/ jsxRuntime.jsx(designSystem.TextButton, {
262
- disabled: isFetchingMoreRelations,
263
- onClick: handleLoadMore,
264
- loading: isFetchingMoreRelations,
265
- startIcon: /*#__PURE__*/ jsxRuntime.jsx(Icons.ArrowClockwise, {}),
266
- // prevent the label from line-wrapping
267
- shrink: 0,
268
- children: formatMessage({
269
- id: index.getTranslation('relation.loadMore'),
270
- defaultMessage: 'Load More'
271
- })
272
- }) : null
273
- ]
274
- }),
275
- /*#__PURE__*/ jsxRuntime.jsx(RelationsList, {
276
- data: relations$1,
277
- serverData: data.results,
278
- disabled: isDisabled,
279
- name: props.name,
280
- isLoading: isFetchingMoreRelations,
281
- relationType: props.attribute.relation
282
- })
283
- ]
284
- });
285
- });
286
- /**
287
- * TODO: this can be removed once we stop shipping Inputs with
288
- * labels wrapped round in DS@2.
289
- */ const StyledFlex = styledComponents.styled(designSystem.Flex)`
290
- & > div {
291
- width: 100%;
292
- }
293
- `;
294
- /**
295
- * If it's in the connected array, it can get out of our data array,
296
- * we'll be putting it back in later and sorting it anyway.
297
- */ const removeConnected = ({ field })=>(relations)=>{
298
- return relations.filter((relation)=>{
299
- const connectedRelations = field?.connect ?? [];
300
- return connectedRelations.findIndex((rel)=>rel.id === relation.id) === -1;
301
- });
302
- };
303
- /**
304
- * @description Removes relations that are in the `disconnect` array of the field
305
- */ const removeDisconnected = ({ field })=>(relations)=>relations.filter((relation)=>{
306
- const disconnectedRelations = field?.disconnect ?? [];
307
- return disconnectedRelations.findIndex((rel)=>rel.id === relation.id) === -1;
308
- });
309
- /**
310
- * @description Adds a label and href to the relation object we use this to render
311
- * a better UI where we can link to the relation and display a human-readable label.
312
- */ const addLabelAndHref = ({ mainField, href })=>(relations$1)=>relations$1.map((relation)=>{
313
- return {
314
- ...relation,
315
- // Fallback to `id` if there is no `mainField` value, which will overwrite the above `documentId` property with the exact same data.
316
- [mainField?.name ?? 'documentId']: relation[mainField?.name ?? 'documentId'],
317
- label: relations.getRelationLabel(relation, mainField),
318
- href: `${href}/${relation.documentId}?${relation.locale ? `plugins[i18n][locale]=${relation.locale}` : ''}`
319
- };
320
- });
321
- /**
322
- * @description Contains all the logic for the combobox that can search
323
- * for relations and then add them to the field's connect array.
324
- */ const RelationsInput = ({ hint, id, model, label, labelAction, name, mainField, placeholder, required, unique: _unique, 'aria-label': _ariaLabel, onChange, ...props })=>{
325
- const [textValue, setTextValue] = React__namespace.useState('');
326
- const [searchParams, setSearchParams] = React__namespace.useState({
327
- _q: '',
328
- page: 1
329
- });
330
- const { toggleNotification } = strapiAdmin.useNotification();
331
- const [{ query }] = strapiAdmin.useQueryParams();
332
- const { formatMessage } = reactIntl.useIntl();
333
- const fieldRef = strapiAdmin.useFocusInputField(name);
334
- const field = strapiAdmin.useField(name);
335
- const [searchForTrigger, { data, isLoading }] = relations.useLazySearchRelationsQuery();
336
- /**
337
- * Because we're using a lazy query, we need to trigger the search
338
- * when the component mounts and when the search params change.
339
- * We also need to trigger the search when the field value changes
340
- * so that we can filter out the relations that are already connected.
341
- */ React__namespace.useEffect(()=>{
342
- /**
343
- * The `name` prop is a complete path to the field, e.g. `field1.field2.field3`.
344
- * Where the above example would a nested field within two components, however
345
- * we only require the field on the component not the complete path since we query
346
- * individual components. Therefore we split the string and take the last item.
347
- */ const [targetField] = name.split('.').slice(-1);
348
- searchForTrigger({
349
- model,
350
- targetField,
351
- params: {
352
- ...index.buildValidParams(query),
353
- id: id ?? '',
354
- pageSize: 10,
355
- idsToInclude: field.value?.disconnect?.map((rel)=>rel.id.toString()) ?? [],
356
- idsToOmit: field.value?.connect?.map((rel)=>rel.id.toString()) ?? [],
357
- ...searchParams
358
- }
359
- });
360
- }, [
361
- field.value?.connect,
362
- field.value?.disconnect,
363
- id,
364
- model,
365
- name,
366
- query,
367
- searchForTrigger,
368
- searchParams
369
- ]);
370
- const handleSearch = async (search)=>{
371
- setSearchParams((s)=>({
372
- ...s,
373
- _q: search,
374
- page: 1
375
- }));
376
- };
377
- const hasNextPage = data?.pagination ? data.pagination.page < data.pagination.pageCount : false;
378
- const options = data?.results ?? [];
379
- const handleChange = (relationId)=>{
380
- if (!relationId) {
381
- return;
382
- }
383
- const relation = options.find((opt)=>opt.id.toString() === relationId);
384
- if (!relation) {
385
- // This is very unlikely to happen, but it ensures we don't have any data for.
386
- console.error("You've tried to add a relation with an id that does not exist in the options you can see, this is likely a bug with Strapi. Please open an issue.");
387
- toggleNotification({
388
- message: formatMessage({
389
- id: index.getTranslation('relation.error-adding-relation'),
390
- defaultMessage: 'An error occurred while trying to add the relation.'
391
- }),
392
- type: 'danger'
393
- });
394
- return;
395
- }
396
- /**
397
- * You need to give this relation a correct _temp_key_ but
398
- * this component doesn't know about those ones, you can't rely
399
- * on the connect array because that doesn't hold items that haven't
400
- * moved. So use a callback to fill in the gaps when connecting.
401
- *
402
- */ onChange(relation);
403
- };
404
- const handleLoadMore = ()=>{
405
- if (!data || !data.pagination) {
406
- return;
407
- } else if (data.pagination.page < data.pagination.pageCount) {
408
- setSearchParams((s)=>({
409
- ...s,
410
- page: s.page + 1
411
- }));
412
- }
413
- };
414
- React__namespace.useLayoutEffect(()=>{
415
- setTextValue('');
416
- }, [
417
- field.value
418
- ]);
419
- return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Field.Root, {
420
- error: field.error,
421
- hint: hint,
422
- name: name,
423
- required: required,
424
- children: [
425
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Field.Label, {
426
- action: labelAction,
427
- children: label
428
- }),
429
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Combobox, {
430
- ref: fieldRef,
431
- name: name,
432
- autocomplete: "list",
433
- placeholder: placeholder || formatMessage({
434
- id: index.getTranslation('relation.add'),
435
- defaultMessage: 'Add relation'
436
- }),
437
- hasMoreItems: hasNextPage,
438
- loading: isLoading,
439
- onOpenChange: ()=>{
440
- handleSearch(textValue ?? '');
441
- },
442
- noOptionsMessage: ()=>formatMessage({
443
- id: index.getTranslation('relation.notAvailable'),
444
- defaultMessage: 'No relations available'
445
- }),
446
- loadingMessage: formatMessage({
447
- id: index.getTranslation('relation.isLoading'),
448
- defaultMessage: 'Relations are loading'
449
- }),
450
- onLoadMore: handleLoadMore,
451
- textValue: textValue,
452
- onChange: handleChange,
453
- onTextValueChange: (text)=>{
454
- setTextValue(text);
455
- },
456
- onInputChange: (event)=>{
457
- handleSearch(event.currentTarget.value);
458
- },
459
- ...props,
460
- children: options.map((opt)=>{
461
- const textValue = relations.getRelationLabel(opt, mainField);
462
- return /*#__PURE__*/ jsxRuntime.jsx(designSystem.ComboboxOption, {
463
- value: opt.id.toString(),
464
- textValue: textValue,
465
- children: /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
466
- gap: 2,
467
- justifyContent: "space-between",
468
- children: [
469
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
470
- ellipsis: true,
471
- children: textValue
472
- }),
473
- opt.status ? /*#__PURE__*/ jsxRuntime.jsx(index.DocumentStatus, {
474
- status: opt.status
475
- }) : null
476
- ]
477
- })
478
- }, opt.id);
479
- })
480
- }),
481
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Field.Error, {}),
482
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Field.Hint, {})
483
- ]
484
- });
485
- };
486
- /* -------------------------------------------------------------------------------------------------
487
- * RelationsList
488
- * -----------------------------------------------------------------------------------------------*/ const RELATION_ITEM_HEIGHT = 50;
489
- const RELATION_GUTTER = 4;
490
- const RelationsList = ({ data, serverData, disabled, name, isLoading, relationType })=>{
491
- const ariaDescriptionId = React__namespace.useId();
492
- const { formatMessage } = reactIntl.useIntl();
493
- const listRef = React__namespace.useRef(null);
494
- const outerListRef = React__namespace.useRef(null);
495
- const [overflow, setOverflow] = React__namespace.useState();
496
- const [liveText, setLiveText] = React__namespace.useState('');
497
- const field = strapiAdmin.useField(name);
498
- React__namespace.useEffect(()=>{
499
- if (data.length <= RELATIONS_TO_DISPLAY) {
500
- return setOverflow(undefined);
501
- }
502
- const handleNativeScroll = (e)=>{
503
- const el = e.target;
504
- const parentScrollContainerHeight = el.parentNode.scrollHeight;
505
- const maxScrollBottom = el.scrollHeight - el.scrollTop;
506
- if (el.scrollTop === 0) {
507
- return setOverflow('bottom');
508
- }
509
- if (maxScrollBottom === parentScrollContainerHeight) {
510
- return setOverflow('top');
511
- }
512
- return setOverflow('top-bottom');
513
- };
514
- const outerListRefCurrent = outerListRef?.current;
515
- if (!isLoading && data.length > 0 && outerListRefCurrent) {
516
- outerListRef.current.addEventListener('scroll', handleNativeScroll);
517
- }
518
- return ()=>{
519
- if (outerListRefCurrent) {
520
- outerListRefCurrent.removeEventListener('scroll', handleNativeScroll);
521
- }
522
- };
523
- }, [
524
- isLoading,
525
- data.length
526
- ]);
527
- const getItemPos = (index)=>`${index + 1} of ${data.length}`;
528
- const handleMoveItem = (newIndex, oldIndex)=>{
529
- const item = data[oldIndex];
530
- setLiveText(formatMessage({
531
- id: index.getTranslation('dnd.reorder'),
532
- defaultMessage: '{item}, moved. New position in list: {position}.'
533
- }, {
534
- item: item.label ?? item.documentId,
535
- position: getItemPos(newIndex)
536
- }));
537
- /**
538
- * Splicing mutates the array, so we need to create a new array
539
- */ const newData = [
540
- ...data
541
- ];
542
- const currentRow = data[oldIndex];
543
- const startKey = oldIndex > newIndex ? newData[newIndex - 1]?.__temp_key__ : newData[newIndex]?.__temp_key__;
544
- const endKey = oldIndex > newIndex ? newData[newIndex]?.__temp_key__ : newData[newIndex + 1]?.__temp_key__;
545
- /**
546
- * We're moving the relation between two other relations, so
547
- * we need to generate a new key that keeps the order
548
- */ const [newKey] = fractionalIndexing.generateNKeysBetween(startKey, endKey, 1);
549
- newData.splice(oldIndex, 1);
550
- newData.splice(newIndex, 0, {
551
- ...currentRow,
552
- __temp_key__: newKey
553
- });
554
- /**
555
- * Now we diff against the server to understand what's different so we
556
- * can keep the connect array nice and tidy. It also needs reversing because
557
- * we reverse the relations from the server in the first place.
558
- */ const connectedRelations = newData.reduce((acc, relation, currentIndex, array)=>{
559
- const relationOnServer = serverData.find((oldRelation)=>oldRelation.id === relation.id);
560
- const relationInFront = array[currentIndex + 1];
561
- if (!relationOnServer || relationOnServer.__temp_key__ !== relation.__temp_key__) {
562
- const position = relationInFront ? {
563
- before: relationInFront.documentId,
564
- locale: relationInFront.locale,
565
- status: 'publishedAt' in relationInFront && relationInFront.publishedAt ? 'published' : 'draft'
566
- } : {
567
- end: true
568
- };
569
- const relationWithPosition = {
570
- ...relation,
571
- ...{
572
- apiData: {
573
- id: relation.id,
574
- documentId: relation.documentId,
575
- locale: relation.locale,
576
- position
577
- }
578
- }
579
- };
580
- return [
581
- ...acc,
582
- relationWithPosition
583
- ];
584
- }
585
- return acc;
586
- }, []).toReversed();
587
- field.onChange(`${name}.connect`, connectedRelations);
588
- };
589
- const handleGrabItem = (index$1)=>{
590
- const item = data[index$1];
591
- setLiveText(formatMessage({
592
- id: index.getTranslation('dnd.grab-item'),
593
- defaultMessage: `{item}, grabbed. Current position in list: {position}. Press up and down arrow to change position, Spacebar to drop, Escape to cancel.`
594
- }, {
595
- item: item.label ?? item.documentId,
596
- position: getItemPos(index$1)
597
- }));
598
- };
599
- const handleDropItem = (index$1)=>{
600
- const { href: _href, label, ...item } = data[index$1];
601
- setLiveText(formatMessage({
602
- id: index.getTranslation('dnd.drop-item'),
603
- defaultMessage: `{item}, dropped. Final position in list: {position}.`
604
- }, {
605
- item: label ?? item.documentId,
606
- position: getItemPos(index$1)
607
- }));
608
- };
609
- const handleCancel = (index$1)=>{
610
- const item = data[index$1];
611
- setLiveText(formatMessage({
612
- id: index.getTranslation('dnd.cancel-item'),
613
- defaultMessage: '{item}, dropped. Re-order cancelled.'
614
- }, {
615
- item: item.label ?? item.documentId
616
- }));
617
- };
618
- const handleDisconnect = useHandleDisconnect(name, 'RelationsList');
619
- /**
620
- * These relation types will only ever have one item
621
- * in their list, so you can't reorder a single item!
622
- */ const canReorder = !ONE_WAY_RELATIONS.includes(relationType);
623
- const dynamicListHeight = data.length > RELATIONS_TO_DISPLAY ? Math.min(data.length, RELATIONS_TO_DISPLAY) * (RELATION_ITEM_HEIGHT + RELATION_GUTTER) + RELATION_ITEM_HEIGHT / 2 : Math.min(data.length, RELATIONS_TO_DISPLAY) * (RELATION_ITEM_HEIGHT + RELATION_GUTTER);
624
- return /*#__PURE__*/ jsxRuntime.jsxs(ShadowBox, {
625
- $overflowDirection: overflow,
626
- children: [
627
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.VisuallyHidden, {
628
- id: ariaDescriptionId,
629
- children: formatMessage({
630
- id: index.getTranslation('dnd.instructions'),
631
- defaultMessage: `Press spacebar to grab and re-order`
632
- })
633
- }),
634
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.VisuallyHidden, {
635
- "aria-live": "assertive",
636
- children: liveText
637
- }),
638
- /*#__PURE__*/ jsxRuntime.jsx(reactWindow.FixedSizeList, {
639
- height: dynamicListHeight,
640
- ref: listRef,
641
- outerRef: outerListRef,
642
- itemCount: data.length,
643
- itemSize: RELATION_ITEM_HEIGHT + RELATION_GUTTER,
644
- itemData: {
645
- ariaDescribedBy: ariaDescriptionId,
646
- canDrag: canReorder,
647
- disabled,
648
- handleCancel,
649
- handleDropItem,
650
- handleGrabItem,
651
- handleMoveItem,
652
- name,
653
- handleDisconnect,
654
- relations: data
655
- },
656
- itemKey: (index)=>data[index].id,
657
- innerElementType: "ol",
658
- children: ListItem
659
- })
660
- ]
661
- });
662
- };
663
- const ShadowBox = styledComponents.styled(designSystem.Box)`
664
- position: relative;
665
- overflow: hidden;
666
- flex: 1;
667
-
668
- &:before,
669
- &:after {
670
- position: absolute;
671
- width: 100%;
672
- height: 4px;
673
- z-index: 1;
674
- }
675
-
676
- &:before {
677
- /* TODO: as for DS Table component we would need this to be handled by the DS theme */
678
- content: '';
679
- background: linear-gradient(rgba(3, 3, 5, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
680
- top: 0;
681
- opacity: ${({ $overflowDirection })=>$overflowDirection === 'top-bottom' || $overflowDirection === 'top' ? 1 : 0};
682
- transition: opacity 0.2s ease-in-out;
683
- }
684
-
685
- &:after {
686
- /* TODO: as for DS Table component we would need this to be handled by the DS theme */
687
- content: '';
688
- background: linear-gradient(0deg, rgba(3, 3, 5, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
689
- bottom: 0;
690
- opacity: ${({ $overflowDirection })=>$overflowDirection === 'top-bottom' || $overflowDirection === 'bottom' ? 1 : 0};
691
- transition: opacity 0.2s ease-in-out;
692
- }
693
- `;
694
- const ListItem = ({ data, index: index$1, style })=>{
695
- const { ariaDescribedBy, canDrag = false, disabled = false, handleCancel, handleDisconnect, handleDropItem, handleGrabItem, handleMoveItem, name, relations } = data;
696
- const { formatMessage } = reactIntl.useIntl();
697
- const { href, id, label, status } = relations[index$1];
698
- const [{ handlerId, isDragging, handleKeyDown }, relationRef, dropRef, dragRef, dragPreviewRef] = useDragAndDrop.useDragAndDrop(canDrag && !disabled, {
699
- type: `${useDragAndDrop.ItemTypes.RELATION}_${name}`,
700
- index: index$1,
701
- item: {
702
- displayedValue: label,
703
- status,
704
- id: id,
705
- index: index$1
706
- },
707
- onMoveItem: handleMoveItem,
708
- onDropItem: handleDropItem,
709
- onGrabItem: handleGrabItem,
710
- onCancel: handleCancel,
711
- dropSensitivity: useDragAndDrop.DROP_SENSITIVITY.REGULAR
712
- });
713
- const composedRefs = designSystem.useComposedRefs(relationRef, dragRef);
714
- React__namespace.useEffect(()=>{
715
- dragPreviewRef(reactDndHtml5Backend.getEmptyImage());
716
- }, [
717
- dragPreviewRef
718
- ]);
719
- return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
720
- style: style,
721
- tag: "li",
722
- ref: dropRef,
723
- "aria-describedby": ariaDescribedBy,
724
- cursor: canDrag ? 'all-scroll' : 'default',
725
- children: isDragging ? /*#__PURE__*/ jsxRuntime.jsx(RelationItemPlaceholder, {}) : /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
726
- paddingTop: 2,
727
- paddingBottom: 2,
728
- paddingLeft: canDrag ? 2 : 4,
729
- paddingRight: 4,
730
- hasRadius: true,
731
- borderColor: "neutral200",
732
- background: disabled ? 'neutral150' : 'neutral0',
733
- justifyContent: "space-between",
734
- ref: composedRefs,
735
- "data-handler-id": handlerId,
736
- children: [
737
- /*#__PURE__*/ jsxRuntime.jsxs(FlexWrapper, {
738
- gap: 1,
739
- children: [
740
- canDrag ? /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
741
- tag: "div",
742
- role: "button",
743
- tabIndex: 0,
744
- withTooltip: false,
745
- label: formatMessage({
746
- id: index.getTranslation('components.RelationInput.icon-button-aria-label'),
747
- defaultMessage: 'Drag'
748
- }),
749
- variant: "ghost",
750
- onKeyDown: handleKeyDown,
751
- disabled: disabled,
752
- children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Drag, {})
753
- }) : null,
754
- /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
755
- width: "100%",
756
- minWidth: 0,
757
- justifyContent: "space-between",
758
- children: [
759
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
760
- minWidth: 0,
761
- paddingTop: 1,
762
- paddingBottom: 1,
763
- paddingRight: 4,
764
- children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Tooltip, {
765
- description: label,
766
- children: href ? /*#__PURE__*/ jsxRuntime.jsx(LinkEllipsis, {
767
- tag: reactRouterDom.NavLink,
768
- to: href,
769
- isExternal: false,
770
- children: label
771
- }) : /*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
772
- textColor: disabled ? 'neutral600' : 'primary600',
773
- ellipsis: true,
774
- children: label
775
- })
776
- })
777
- }),
778
- status ? /*#__PURE__*/ jsxRuntime.jsx(index.DocumentStatus, {
779
- status: status
780
- }) : null
781
- ]
782
- })
783
- ]
784
- }),
785
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
786
- paddingLeft: 4,
787
- children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
788
- onClick: ()=>handleDisconnect(relations[index$1]),
789
- disabled: disabled,
790
- label: formatMessage({
791
- id: index.getTranslation('relation.disconnect'),
792
- defaultMessage: 'Remove'
793
- }),
794
- variant: "ghost",
795
- size: "S",
796
- children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Cross, {})
797
- })
798
- })
799
- ]
800
- })
801
- });
802
- };
803
- const FlexWrapper = styledComponents.styled(designSystem.Flex)`
804
- width: 100%;
805
- /* Used to prevent endAction to be pushed out of container */
806
- min-width: 0;
807
-
808
- & > div[role='button'] {
809
- cursor: all-scroll;
810
- }
811
- `;
812
- const DisconnectButton = styledComponents.styled.button`
813
- svg path {
814
- fill: ${({ theme, disabled })=>disabled ? theme.colors.neutral600 : theme.colors.neutral500};
815
- }
816
-
817
- &:hover svg path,
818
- &:focus svg path {
819
- fill: ${({ theme, disabled })=>!disabled && theme.colors.neutral600};
820
- }
821
- `;
822
- const LinkEllipsis = styledComponents.styled(designSystem.Link)`
823
- display: block;
824
-
825
- & > span {
826
- white-space: nowrap;
827
- overflow: hidden;
828
- text-overflow: ellipsis;
829
- display: block;
830
- }
831
- `;
832
- const RelationItemPlaceholder = ()=>/*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
833
- paddingTop: 2,
834
- paddingBottom: 2,
835
- paddingLeft: 4,
836
- paddingRight: 4,
837
- hasRadius: true,
838
- borderStyle: "dashed",
839
- borderColor: "primary600",
840
- borderWidth: "1px",
841
- background: "primary100",
842
- height: `calc(100% - ${RELATION_GUTTER}px)`
843
- });
844
- const MemoizedRelationsField = /*#__PURE__*/ React__namespace.memo(RelationsField);
845
-
846
- exports.ComponentProvider = ComponentProvider;
847
- exports.DisconnectButton = DisconnectButton;
848
- exports.FlexWrapper = FlexWrapper;
849
- exports.LinkEllipsis = LinkEllipsis;
850
- exports.MemoizedRelationsField = MemoizedRelationsField;
851
- exports.useComponent = useComponent;
852
- //# sourceMappingURL=Relations-BDe2e0a7.js.map