@strapi/content-manager 0.0.0-experimental.e14656d3b8681880212c13260b9a2b340c182f2d → 0.0.0-experimental.e576af447d9f97e89e24c6daa32d8f714376cd5f

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 (500) hide show
  1. package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs +80 -0
  2. package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs.map +1 -0
  3. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js +82 -0
  4. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js.map +1 -0
  5. package/dist/admin/chunks/ComponentConfigurationPage-BRMxaaa0.mjs +277 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-BRMxaaa0.mjs.map +1 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-DwjhCutb.js +299 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-DwjhCutb.js.map +1 -0
  9. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs +153 -0
  10. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs.map +1 -0
  11. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js +176 -0
  12. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js.map +1 -0
  13. package/dist/admin/chunks/EditConfigurationPage-DPQ6e_ZU.js +181 -0
  14. package/dist/admin/chunks/EditConfigurationPage-DPQ6e_ZU.js.map +1 -0
  15. package/dist/admin/chunks/EditConfigurationPage-mHz7EIZ9.mjs +159 -0
  16. package/dist/admin/chunks/EditConfigurationPage-mHz7EIZ9.mjs.map +1 -0
  17. package/dist/admin/chunks/EditViewPage-CXmEDGW2.js +334 -0
  18. package/dist/admin/chunks/EditViewPage-CXmEDGW2.js.map +1 -0
  19. package/dist/admin/chunks/EditViewPage-DC_tEaOd.mjs +311 -0
  20. package/dist/admin/chunks/EditViewPage-DC_tEaOd.mjs.map +1 -0
  21. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs +56 -0
  22. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs.map +1 -0
  23. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js +58 -0
  24. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js.map +1 -0
  25. package/dist/admin/chunks/Form-CmzyWdCy.js +978 -0
  26. package/dist/admin/chunks/Form-CmzyWdCy.js.map +1 -0
  27. package/dist/admin/chunks/Form-Sz84KGej.mjs +955 -0
  28. package/dist/admin/chunks/Form-Sz84KGej.mjs.map +1 -0
  29. package/dist/admin/chunks/History-B75NuF92.js +1380 -0
  30. package/dist/admin/chunks/History-B75NuF92.js.map +1 -0
  31. package/dist/admin/chunks/History-C5fFAagI.mjs +1357 -0
  32. package/dist/admin/chunks/History-C5fFAagI.mjs.map +1 -0
  33. package/dist/admin/chunks/Input-BIzj18xW.js +7221 -0
  34. package/dist/admin/chunks/Input-BIzj18xW.js.map +1 -0
  35. package/dist/admin/chunks/Input-DDV2blpv.mjs +7190 -0
  36. package/dist/admin/chunks/Input-DDV2blpv.mjs.map +1 -0
  37. package/dist/admin/chunks/ListConfigurationPage-DVFNbbLl.js +819 -0
  38. package/dist/admin/chunks/ListConfigurationPage-DVFNbbLl.js.map +1 -0
  39. package/dist/admin/chunks/ListConfigurationPage-Ddq1APAQ.mjs +796 -0
  40. package/dist/admin/chunks/ListConfigurationPage-Ddq1APAQ.mjs.map +1 -0
  41. package/dist/admin/chunks/ListViewPage-D3gpvdM2.js +1155 -0
  42. package/dist/admin/chunks/ListViewPage-D3gpvdM2.js.map +1 -0
  43. package/dist/admin/chunks/ListViewPage-IIou-WFn.mjs +1133 -0
  44. package/dist/admin/chunks/ListViewPage-IIou-WFn.mjs.map +1 -0
  45. package/dist/admin/chunks/NoContentTypePage-B7sfKVrj.js +60 -0
  46. package/dist/admin/chunks/NoContentTypePage-B7sfKVrj.js.map +1 -0
  47. package/dist/admin/chunks/NoContentTypePage-mZFnYA3z.mjs +58 -0
  48. package/dist/admin/chunks/NoContentTypePage-mZFnYA3z.mjs.map +1 -0
  49. package/dist/admin/chunks/NoPermissionsPage-C-XBYfpZ.js +39 -0
  50. package/dist/admin/chunks/NoPermissionsPage-C-XBYfpZ.js.map +1 -0
  51. package/dist/admin/chunks/NoPermissionsPage-CfUdeuGT.mjs +37 -0
  52. package/dist/admin/chunks/NoPermissionsPage-CfUdeuGT.mjs.map +1 -0
  53. package/dist/admin/chunks/Preview-DkU1bar6.js +696 -0
  54. package/dist/admin/chunks/Preview-DkU1bar6.js.map +1 -0
  55. package/dist/admin/chunks/Preview-xr-5BCHr.mjs +674 -0
  56. package/dist/admin/chunks/Preview-xr-5BCHr.mjs.map +1 -0
  57. package/dist/admin/chunks/Relations-Ddnb_jYb.mjs +1291 -0
  58. package/dist/admin/chunks/Relations-Ddnb_jYb.mjs.map +1 -0
  59. package/dist/admin/chunks/Relations-VSItCr8c.js +1318 -0
  60. package/dist/admin/chunks/Relations-VSItCr8c.js.map +1 -0
  61. package/dist/admin/chunks/ar-DckYq_WK.mjs +222 -0
  62. package/dist/{_chunks/ar-CCEVvqGG.mjs.map → admin/chunks/ar-DckYq_WK.mjs.map} +1 -1
  63. package/dist/admin/chunks/ar-DeQBSsfl.js +227 -0
  64. package/dist/{_chunks/ru-BT3ybNny.js.map → admin/chunks/ar-DeQBSsfl.js.map} +1 -1
  65. package/dist/admin/chunks/ca-ClDTvatJ.js +202 -0
  66. package/dist/admin/chunks/ca-ClDTvatJ.js.map +1 -0
  67. package/dist/admin/chunks/ca-DviY7mRj.mjs +197 -0
  68. package/dist/admin/chunks/ca-DviY7mRj.mjs.map +1 -0
  69. package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
  70. package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
  71. package/dist/admin/chunks/cs-C7OSYFQ7.mjs +122 -0
  72. package/dist/{_chunks/cs-CM2aBUar.mjs.map → admin/chunks/cs-C7OSYFQ7.mjs.map} +1 -1
  73. package/dist/admin/chunks/de-5QRlDHyR.mjs +195 -0
  74. package/dist/{_chunks/eu-CdALomew.mjs.map → admin/chunks/de-5QRlDHyR.mjs.map} +1 -1
  75. package/dist/admin/chunks/de-CbImAUA5.js +200 -0
  76. package/dist/{_chunks/gu-BRmF601H.js.map → admin/chunks/de-CbImAUA5.js.map} +1 -1
  77. package/dist/admin/chunks/en-CImiNxXE.mjs +310 -0
  78. package/dist/{_chunks/en-BrCTWlZv.mjs.map → admin/chunks/en-CImiNxXE.mjs.map} +1 -1
  79. package/dist/admin/chunks/en-CLf4SuMQ.js +315 -0
  80. package/dist/{_chunks/en-uOUIxfcQ.js.map → admin/chunks/en-CLf4SuMQ.js.map} +1 -1
  81. package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
  82. package/dist/{_chunks/es-EUonQTon.js.map → admin/chunks/es-C8vLuvZL.js.map} +1 -1
  83. package/dist/admin/chunks/es-DkoWSExG.mjs +192 -0
  84. package/dist/{_chunks/ja-CtsUxOvk.mjs.map → admin/chunks/es-DkoWSExG.mjs.map} +1 -1
  85. package/dist/admin/chunks/eu-BG1xX7HK.mjs +198 -0
  86. package/dist/admin/chunks/eu-BG1xX7HK.mjs.map +1 -0
  87. package/dist/admin/chunks/eu-BJW3AvXu.js +203 -0
  88. package/dist/admin/chunks/eu-BJW3AvXu.js.map +1 -0
  89. package/dist/admin/chunks/fr-CFdRaRVj.mjs +215 -0
  90. package/dist/admin/chunks/fr-CFdRaRVj.mjs.map +1 -0
  91. package/dist/admin/chunks/fr-gQSilC7w.js +220 -0
  92. package/dist/admin/chunks/fr-gQSilC7w.js.map +1 -0
  93. package/dist/admin/chunks/gu-D5MMMXRs.mjs +196 -0
  94. package/dist/admin/chunks/gu-D5MMMXRs.mjs.map +1 -0
  95. package/dist/admin/chunks/gu-DPU4wyx7.js +201 -0
  96. package/dist/{_chunks/eu-VDH-3ovk.js.map → admin/chunks/gu-DPU4wyx7.js.map} +1 -1
  97. package/dist/admin/chunks/hi-Dp4omeBb.js +201 -0
  98. package/dist/admin/chunks/hi-Dp4omeBb.js.map +1 -0
  99. package/dist/admin/chunks/hi-lp17SCjr.mjs +196 -0
  100. package/dist/admin/chunks/hi-lp17SCjr.mjs.map +1 -0
  101. package/dist/{_chunks/hooks-BAaaKPS_.js → admin/chunks/hooks-D-sOYd1s.js} +6 -3
  102. package/dist/admin/chunks/hooks-D-sOYd1s.js.map +1 -0
  103. package/dist/admin/chunks/hooks-DMvik5y_.mjs +7 -0
  104. package/dist/admin/chunks/hooks-DMvik5y_.mjs.map +1 -0
  105. package/dist/admin/chunks/hu-CLka1U2C.mjs +198 -0
  106. package/dist/admin/chunks/hu-CLka1U2C.mjs.map +1 -0
  107. package/dist/admin/chunks/hu-CtFJuhTd.js +203 -0
  108. package/dist/admin/chunks/hu-CtFJuhTd.js.map +1 -0
  109. package/dist/admin/chunks/id-D7V5S1rB.js +161 -0
  110. package/dist/{_chunks/it-DkBIs7vD.js.map → admin/chunks/id-D7V5S1rB.js.map} +1 -1
  111. package/dist/admin/chunks/id-USfY9m1g.mjs +156 -0
  112. package/dist/{_chunks/id-BtwA9WJT.mjs.map → admin/chunks/id-USfY9m1g.mjs.map} +1 -1
  113. package/dist/admin/chunks/index-BE23Vyc8.js +5456 -0
  114. package/dist/admin/chunks/index-BE23Vyc8.js.map +1 -0
  115. package/dist/admin/chunks/index-TXDGJBhY.mjs +5389 -0
  116. package/dist/admin/chunks/index-TXDGJBhY.mjs.map +1 -0
  117. package/dist/admin/chunks/it-BAHrwmYS.mjs +158 -0
  118. package/dist/{_chunks/it-BrVPqaf1.mjs.map → admin/chunks/it-BAHrwmYS.mjs.map} +1 -1
  119. package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
  120. package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
  121. package/dist/admin/chunks/ja-BWKmBJFT.mjs +192 -0
  122. package/dist/{_chunks/ko-HVQRlfUI.mjs.map → admin/chunks/ja-BWKmBJFT.mjs.map} +1 -1
  123. package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
  124. package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ja-jdQM-B79.js.map} +1 -1
  125. package/dist/admin/chunks/ko-CgADGBNt.mjs +191 -0
  126. package/dist/{_chunks/es-CeXiYflN.mjs.map → admin/chunks/ko-CgADGBNt.mjs.map} +1 -1
  127. package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
  128. package/dist/{_chunks/ja-CcFe8diO.js.map → admin/chunks/ko-k46sEyzt.js.map} +1 -1
  129. package/dist/admin/chunks/layout-B3zsQDhd.js +619 -0
  130. package/dist/admin/chunks/layout-B3zsQDhd.js.map +1 -0
  131. package/dist/admin/chunks/layout-DmbmZmt8.mjs +599 -0
  132. package/dist/admin/chunks/layout-DmbmZmt8.mjs.map +1 -0
  133. package/dist/admin/chunks/ml-CnhCfOn_.mjs +196 -0
  134. package/dist/admin/chunks/ml-CnhCfOn_.mjs.map +1 -0
  135. package/dist/admin/chunks/ml-DqxPwODx.js +201 -0
  136. package/dist/admin/chunks/ml-DqxPwODx.js.map +1 -0
  137. package/dist/admin/chunks/ms-Bh09NFff.mjs +140 -0
  138. package/dist/{_chunks/ms-m_WjyWx7.mjs.map → admin/chunks/ms-Bh09NFff.mjs.map} +1 -1
  139. package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
  140. package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/ms-CvSC0OdG.js.map} +1 -1
  141. package/dist/admin/chunks/nl-BEubhS8C.js +203 -0
  142. package/dist/admin/chunks/nl-BEubhS8C.js.map +1 -0
  143. package/dist/admin/chunks/nl-C8HYflTc.mjs +198 -0
  144. package/dist/admin/chunks/nl-C8HYflTc.mjs.map +1 -0
  145. package/dist/admin/chunks/objects-C3EebVVe.js +76 -0
  146. package/dist/admin/chunks/objects-C3EebVVe.js.map +1 -0
  147. package/dist/admin/chunks/objects-wl73iEma.mjs +73 -0
  148. package/dist/admin/chunks/objects-wl73iEma.mjs.map +1 -0
  149. package/dist/admin/chunks/pl-DWhGDzmM.js +200 -0
  150. package/dist/{_chunks/ca-Cmk45QO6.js.map → admin/chunks/pl-DWhGDzmM.js.map} +1 -1
  151. package/dist/admin/chunks/pl-MFCZJZuZ.mjs +195 -0
  152. package/dist/{_chunks/ca-5U32ON2v.mjs.map → admin/chunks/pl-MFCZJZuZ.mjs.map} +1 -1
  153. package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
  154. package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CPtAXD-4.js.map} +1 -1
  155. package/dist/admin/chunks/pt-BR-CcotyBGJ.mjs +197 -0
  156. package/dist/{_chunks/pt-BR-C71iDxnh.mjs.map → admin/chunks/pt-BR-CcotyBGJ.mjs.map} +1 -1
  157. package/dist/admin/chunks/pt-BoPxN80n.js +96 -0
  158. package/dist/admin/chunks/pt-BoPxN80n.js.map +1 -0
  159. package/dist/admin/chunks/pt-HbmgeiYO.mjs +93 -0
  160. package/dist/admin/chunks/pt-HbmgeiYO.mjs.map +1 -0
  161. package/dist/admin/chunks/relations-B93RmIIQ.js +178 -0
  162. package/dist/admin/chunks/relations-B93RmIIQ.js.map +1 -0
  163. package/dist/admin/chunks/relations-Ccbyl2K1.mjs +173 -0
  164. package/dist/admin/chunks/relations-Ccbyl2K1.mjs.map +1 -0
  165. package/dist/admin/chunks/ru-C0op0ALG.js +232 -0
  166. package/dist/admin/chunks/ru-C0op0ALG.js.map +1 -0
  167. package/dist/admin/chunks/ru-CB4BUyQp.mjs +230 -0
  168. package/dist/{_chunks/ru-BE6A4Exp.mjs.map → admin/chunks/ru-CB4BUyQp.mjs.map} +1 -1
  169. package/dist/admin/chunks/sa-B_FuPyMw.js +201 -0
  170. package/dist/admin/chunks/sa-B_FuPyMw.js.map +1 -0
  171. package/dist/admin/chunks/sa-n_aPA-pU.mjs +196 -0
  172. package/dist/admin/chunks/sa-n_aPA-pU.mjs.map +1 -0
  173. package/dist/admin/chunks/sk-D_iXML2C.js +203 -0
  174. package/dist/admin/chunks/sk-D_iXML2C.js.map +1 -0
  175. package/dist/admin/chunks/sk-tn_BDjE2.mjs +198 -0
  176. package/dist/admin/chunks/sk-tn_BDjE2.mjs.map +1 -0
  177. package/dist/admin/chunks/sv-BstBC1Yp.js +203 -0
  178. package/dist/admin/chunks/sv-BstBC1Yp.js.map +1 -0
  179. package/dist/admin/chunks/sv-cq4ZrQRd.mjs +198 -0
  180. package/dist/admin/chunks/sv-cq4ZrQRd.mjs.map +1 -0
  181. package/dist/admin/chunks/th-lXoOCqPC.js +149 -0
  182. package/dist/{_chunks/th-D9_GfAjc.js.map → admin/chunks/th-lXoOCqPC.js.map} +1 -1
  183. package/dist/admin/chunks/th-mUH7hEtc.mjs +144 -0
  184. package/dist/{_chunks/uk-CR-zDhAY.mjs.map → admin/chunks/th-mUH7hEtc.mjs.map} +1 -1
  185. package/dist/admin/chunks/tr-CkS6sLIE.js +200 -0
  186. package/dist/admin/chunks/tr-CkS6sLIE.js.map +1 -0
  187. package/dist/admin/chunks/tr-Yt38daxh.mjs +195 -0
  188. package/dist/{_chunks/de-C72KDNOl.mjs.map → admin/chunks/tr-Yt38daxh.mjs.map} +1 -1
  189. package/dist/admin/chunks/uk-BtM6WnaE.mjs +313 -0
  190. package/dist/admin/chunks/uk-BtM6WnaE.mjs.map +1 -0
  191. package/dist/admin/chunks/uk-DB6OgySY.js +318 -0
  192. package/dist/admin/chunks/uk-DB6OgySY.js.map +1 -0
  193. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.mjs +247 -0
  194. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.mjs.map +1 -0
  195. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js +271 -0
  196. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js.map +1 -0
  197. package/dist/admin/chunks/usePrev-Bjw2dhmq.mjs +18 -0
  198. package/dist/admin/chunks/usePrev-Bjw2dhmq.mjs.map +1 -0
  199. package/dist/admin/chunks/usePrev-DIYl-IAL.js +21 -0
  200. package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +1 -0
  201. package/dist/admin/chunks/vi-BGr1X_HZ.js +112 -0
  202. package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-BGr1X_HZ.js.map} +1 -1
  203. package/dist/admin/chunks/vi-CvBGlTjr.mjs +108 -0
  204. package/dist/{_chunks/vi-DUXIk_fw.mjs.map → admin/chunks/vi-CvBGlTjr.mjs.map} +1 -1
  205. package/dist/admin/chunks/zh-BmF-sHaT.mjs +205 -0
  206. package/dist/admin/chunks/zh-BmF-sHaT.mjs.map +1 -0
  207. package/dist/admin/chunks/zh-DwFu_Kfj.js +210 -0
  208. package/dist/admin/chunks/zh-DwFu_Kfj.js.map +1 -0
  209. package/dist/admin/chunks/zh-Hans-CI0HKio3.mjs +934 -0
  210. package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-CI0HKio3.mjs.map} +1 -1
  211. package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
  212. package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
  213. package/dist/admin/index.js +26 -4
  214. package/dist/admin/index.js.map +1 -1
  215. package/dist/admin/index.mjs +17 -11
  216. package/dist/admin/index.mjs.map +1 -1
  217. package/dist/admin/src/components/InjectionZone.d.ts +7 -1
  218. package/dist/admin/src/content-manager.d.ts +7 -2
  219. package/dist/admin/src/exports.d.ts +2 -1
  220. package/dist/admin/src/history/services/historyVersion.d.ts +2 -2
  221. package/dist/admin/src/hooks/useDocument.d.ts +52 -2
  222. package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
  223. package/dist/admin/src/index.d.ts +1 -0
  224. package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
  225. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -2
  226. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +3 -3
  227. package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
  228. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +55 -0
  229. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -0
  230. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +4 -1
  231. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -1
  232. package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +2 -1
  233. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
  234. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +0 -32
  235. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +29 -1
  236. package/dist/admin/src/pages/EditView/components/Header.d.ts +11 -11
  237. package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
  238. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
  239. package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
  240. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  241. package/dist/admin/src/preview/index.d.ts +3 -0
  242. package/dist/admin/src/preview/pages/Preview.d.ts +15 -0
  243. package/dist/admin/src/preview/routes.d.ts +3 -0
  244. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  245. package/dist/admin/src/router.d.ts +1 -1
  246. package/dist/admin/src/services/api.d.ts +1 -1
  247. package/dist/admin/src/services/components.d.ts +2 -2
  248. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  249. package/dist/admin/src/services/documents.d.ts +19 -20
  250. package/dist/admin/src/services/init.d.ts +1 -1
  251. package/dist/admin/src/services/relations.d.ts +2 -2
  252. package/dist/admin/src/services/uid.d.ts +3 -3
  253. package/dist/server/index.js +5473 -4131
  254. package/dist/server/index.js.map +1 -1
  255. package/dist/server/index.mjs +5451 -4106
  256. package/dist/server/index.mjs.map +1 -1
  257. package/dist/server/src/bootstrap.d.ts.map +1 -1
  258. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  259. package/dist/server/src/controllers/index.d.ts.map +1 -1
  260. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  261. package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
  262. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  263. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  264. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  265. package/dist/server/src/history/services/history.d.ts +3 -3
  266. package/dist/server/src/history/services/history.d.ts.map +1 -1
  267. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  268. package/dist/server/src/history/services/utils.d.ts +7 -11
  269. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  270. package/dist/server/src/index.d.ts +7 -6
  271. package/dist/server/src/index.d.ts.map +1 -1
  272. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  273. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  274. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  275. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  276. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  277. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  278. package/dist/server/src/preview/index.d.ts +4 -0
  279. package/dist/server/src/preview/index.d.ts.map +1 -0
  280. package/dist/server/src/preview/routes/index.d.ts +8 -0
  281. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  282. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  283. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  284. package/dist/server/src/preview/services/index.d.ts +16 -0
  285. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  286. package/dist/server/src/preview/services/preview-config.d.ts +32 -0
  287. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  288. package/dist/server/src/preview/services/preview.d.ts +12 -0
  289. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  290. package/dist/server/src/preview/utils.d.ts +19 -0
  291. package/dist/server/src/preview/utils.d.ts.map +1 -0
  292. package/dist/server/src/register.d.ts.map +1 -1
  293. package/dist/server/src/routes/index.d.ts.map +1 -1
  294. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  295. package/dist/server/src/services/document-metadata.d.ts +12 -10
  296. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  297. package/dist/server/src/services/index.d.ts +7 -6
  298. package/dist/server/src/services/index.d.ts.map +1 -1
  299. package/dist/server/src/services/utils/count.d.ts +1 -1
  300. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  301. package/dist/server/src/services/utils/populate.d.ts +3 -3
  302. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  303. package/dist/server/src/utils/index.d.ts +2 -0
  304. package/dist/server/src/utils/index.d.ts.map +1 -1
  305. package/dist/shared/contracts/collection-types.d.ts +3 -2
  306. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  307. package/dist/shared/contracts/components.d.ts +0 -1
  308. package/dist/shared/contracts/content-types.d.ts +0 -1
  309. package/dist/shared/contracts/history-versions.d.ts +0 -1
  310. package/dist/shared/contracts/index.d.ts +1 -1
  311. package/dist/shared/contracts/index.d.ts.map +1 -1
  312. package/dist/shared/contracts/init.d.ts +0 -1
  313. package/dist/shared/contracts/preview.d.ts +26 -0
  314. package/dist/shared/contracts/preview.d.ts.map +1 -0
  315. package/dist/shared/contracts/relations.d.ts +1 -2
  316. package/dist/shared/contracts/relations.d.ts.map +1 -1
  317. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  318. package/dist/shared/contracts/single-types.d.ts +0 -1
  319. package/dist/shared/contracts/uid.d.ts +0 -1
  320. package/dist/shared/index.d.ts +0 -1
  321. package/dist/shared/index.js +37 -22
  322. package/dist/shared/index.js.map +1 -1
  323. package/dist/shared/index.mjs +36 -23
  324. package/dist/shared/index.mjs.map +1 -1
  325. package/package.json +25 -21
  326. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  327. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  328. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  329. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  330. package/dist/_chunks/ComponentConfigurationPage-D_M8iBw5.js +0 -255
  331. package/dist/_chunks/ComponentConfigurationPage-D_M8iBw5.js.map +0 -1
  332. package/dist/_chunks/ComponentConfigurationPage-qemkOlnj.mjs +0 -236
  333. package/dist/_chunks/ComponentConfigurationPage-qemkOlnj.mjs.map +0 -1
  334. package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
  335. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
  336. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  337. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  338. package/dist/_chunks/EditConfigurationPage-BePwPuHy.js +0 -151
  339. package/dist/_chunks/EditConfigurationPage-BePwPuHy.js.map +0 -1
  340. package/dist/_chunks/EditConfigurationPage-CjUrEewK.mjs +0 -132
  341. package/dist/_chunks/EditConfigurationPage-CjUrEewK.mjs.map +0 -1
  342. package/dist/_chunks/EditViewPage-B-RJeiJD.js +0 -233
  343. package/dist/_chunks/EditViewPage-B-RJeiJD.js.map +0 -1
  344. package/dist/_chunks/EditViewPage-De8GyU8P.mjs +0 -214
  345. package/dist/_chunks/EditViewPage-De8GyU8P.mjs.map +0 -1
  346. package/dist/_chunks/Field-dq8Tg1M_.js +0 -5589
  347. package/dist/_chunks/Field-dq8Tg1M_.js.map +0 -1
  348. package/dist/_chunks/Field-pb2o8uBe.mjs +0 -5557
  349. package/dist/_chunks/Field-pb2o8uBe.mjs.map +0 -1
  350. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  351. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  352. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  353. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  354. package/dist/_chunks/Form-DGIf4jQU.js +0 -771
  355. package/dist/_chunks/Form-DGIf4jQU.js.map +0 -1
  356. package/dist/_chunks/Form-DJn0Dxha.mjs +0 -750
  357. package/dist/_chunks/Form-DJn0Dxha.mjs.map +0 -1
  358. package/dist/_chunks/History-BowL3JKP.mjs +0 -1032
  359. package/dist/_chunks/History-BowL3JKP.mjs.map +0 -1
  360. package/dist/_chunks/History-Dh2NEHnR.js +0 -1053
  361. package/dist/_chunks/History-Dh2NEHnR.js.map +0 -1
  362. package/dist/_chunks/ListConfigurationPage-BpVOB-hn.mjs +0 -632
  363. package/dist/_chunks/ListConfigurationPage-BpVOB-hn.mjs.map +0 -1
  364. package/dist/_chunks/ListConfigurationPage-BxYCWz9e.js +0 -652
  365. package/dist/_chunks/ListConfigurationPage-BxYCWz9e.js.map +0 -1
  366. package/dist/_chunks/ListViewPage-4XsciqHZ.js +0 -848
  367. package/dist/_chunks/ListViewPage-4XsciqHZ.js.map +0 -1
  368. package/dist/_chunks/ListViewPage-CXFUjZQC.mjs +0 -824
  369. package/dist/_chunks/ListViewPage-CXFUjZQC.mjs.map +0 -1
  370. package/dist/_chunks/NoContentTypePage-C8OpoHeU.js +0 -51
  371. package/dist/_chunks/NoContentTypePage-C8OpoHeU.js.map +0 -1
  372. package/dist/_chunks/NoContentTypePage-DuhOTp3x.mjs +0 -51
  373. package/dist/_chunks/NoContentTypePage-DuhOTp3x.mjs.map +0 -1
  374. package/dist/_chunks/NoPermissionsPage-DVz3mzDz.mjs +0 -23
  375. package/dist/_chunks/NoPermissionsPage-DVz3mzDz.mjs.map +0 -1
  376. package/dist/_chunks/NoPermissionsPage-y_r7DVA2.js +0 -23
  377. package/dist/_chunks/NoPermissionsPage-y_r7DVA2.js.map +0 -1
  378. package/dist/_chunks/Relations-CVNLrn1Y.mjs +0 -694
  379. package/dist/_chunks/Relations-CVNLrn1Y.mjs.map +0 -1
  380. package/dist/_chunks/Relations-DPFCAa7b.js +0 -714
  381. package/dist/_chunks/Relations-DPFCAa7b.js.map +0 -1
  382. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  383. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  384. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  385. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  386. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  387. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  388. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  389. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  390. package/dist/_chunks/de-CCEmbAah.js +0 -199
  391. package/dist/_chunks/en-BrCTWlZv.mjs +0 -292
  392. package/dist/_chunks/en-uOUIxfcQ.js +0 -292
  393. package/dist/_chunks/es-CeXiYflN.mjs +0 -196
  394. package/dist/_chunks/es-EUonQTon.js +0 -196
  395. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  396. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  397. package/dist/_chunks/fr-B7kGGg3E.js +0 -206
  398. package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
  399. package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
  400. package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
  401. package/dist/_chunks/gu-BRmF601H.js +0 -200
  402. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  403. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  404. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  405. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  406. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  407. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  408. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  409. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  410. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  411. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  412. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  413. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  414. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  415. package/dist/_chunks/id-B5Ser98A.js +0 -160
  416. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  417. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  418. package/dist/_chunks/index-C3fJE-1-.js +0 -3999
  419. package/dist/_chunks/index-C3fJE-1-.js.map +0 -1
  420. package/dist/_chunks/index-DiMrfcfy.mjs +0 -3980
  421. package/dist/_chunks/index-DiMrfcfy.mjs.map +0 -1
  422. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  423. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  424. package/dist/_chunks/ja-CcFe8diO.js +0 -196
  425. package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
  426. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  427. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  428. package/dist/_chunks/layout-C788OmNr.js +0 -488
  429. package/dist/_chunks/layout-C788OmNr.js.map +0 -1
  430. package/dist/_chunks/layout-ls3gxfpH.mjs +0 -470
  431. package/dist/_chunks/layout-ls3gxfpH.mjs.map +0 -1
  432. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  433. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  434. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  435. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  436. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  437. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  438. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  439. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  440. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  441. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  442. package/dist/_chunks/objects-gigeqt7s.js +0 -49
  443. package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
  444. package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
  445. package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
  446. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  447. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  448. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  449. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  450. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  451. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  452. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  453. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  454. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  455. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  456. package/dist/_chunks/relations-CLcOmGO0.mjs +0 -135
  457. package/dist/_chunks/relations-CLcOmGO0.mjs.map +0 -1
  458. package/dist/_chunks/relations-DYeotliT.js +0 -134
  459. package/dist/_chunks/relations-DYeotliT.js.map +0 -1
  460. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  461. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  462. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  463. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  464. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  465. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  466. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  467. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  468. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  469. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  470. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  471. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  472. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  473. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  474. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  475. package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
  476. package/dist/_chunks/th-D9_GfAjc.js +0 -148
  477. package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
  478. package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
  479. package/dist/_chunks/tr-D9UH-O_R.js +0 -199
  480. package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
  481. package/dist/_chunks/uk-C8EiqJY7.js +0 -144
  482. package/dist/_chunks/uk-C8EiqJY7.js.map +0 -1
  483. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  484. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
  485. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
  486. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
  487. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
  488. package/dist/_chunks/usePrev-B9w_-eYc.js +0 -15
  489. package/dist/_chunks/usePrev-B9w_-eYc.js.map +0 -1
  490. package/dist/_chunks/usePrev-DH6iah0A.mjs +0 -16
  491. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +0 -1
  492. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  493. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  494. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  495. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  496. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  497. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  498. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  499. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
  500. package/strapi-server.js +0 -3
@@ -1,714 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const React = require("react");
4
- const strapiAdmin = require("@strapi/admin/strapi-admin");
5
- const designSystem = require("@strapi/design-system");
6
- const Icons = require("@strapi/icons");
7
- const fractionalIndexing = require("fractional-indexing");
8
- const pipe = require("lodash/fp/pipe");
9
- const reactDndHtml5Backend = require("react-dnd-html5-backend");
10
- const reactIntl = require("react-intl");
11
- const reactRouterDom = require("react-router-dom");
12
- const reactWindow = require("react-window");
13
- const styledComponents = require("styled-components");
14
- const index = require("./index-C3fJE-1-.js");
15
- const useDragAndDrop = require("./useDragAndDrop-J0TUUbR6.js");
16
- const relations = require("./relations-DYeotliT.js");
17
- const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
18
- function _interopNamespace(e) {
19
- if (e && e.__esModule)
20
- return e;
21
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
22
- if (e) {
23
- for (const k in e) {
24
- if (k !== "default") {
25
- const d = Object.getOwnPropertyDescriptor(e, k);
26
- Object.defineProperty(n, k, d.get ? d : {
27
- enumerable: true,
28
- get: () => e[k]
29
- });
30
- }
31
- }
32
- }
33
- n.default = e;
34
- return Object.freeze(n);
35
- }
36
- const React__namespace = /* @__PURE__ */ _interopNamespace(React);
37
- const pipe__default = /* @__PURE__ */ _interopDefault(pipe);
38
- const [ComponentProvider, useComponent] = strapiAdmin.createContext("ComponentContext", {
39
- id: void 0,
40
- level: -1,
41
- uid: void 0,
42
- type: void 0
43
- });
44
- const RELATIONS_TO_DISPLAY = 5;
45
- const ONE_WAY_RELATIONS = ["oneWay", "oneToOne", "manyToOne", "oneToManyMorph", "oneToOneMorph"];
46
- const RelationsField = React__namespace.forwardRef(
47
- ({ disabled, label, ...props }, ref) => {
48
- const [currentPage, setCurrentPage] = React__namespace.useState(1);
49
- const { document, model: documentModel } = index.useDoc();
50
- const documentId = document?.documentId;
51
- const { formatMessage } = reactIntl.useIntl();
52
- const [{ query }] = strapiAdmin.useQueryParams();
53
- const params = index.buildValidParams(query);
54
- const isMorph = props.attribute.relation.toLowerCase().includes("morph");
55
- const isDisabled = isMorph || disabled;
56
- const { id: componentId, uid } = useComponent("RelationsField", ({ uid: uid2, id: id2 }) => ({ id: id2, uid: uid2 }));
57
- const id = componentId ? componentId.toString() : documentId;
58
- const model = uid ?? documentModel;
59
- const [targetField] = props.name.split(".").slice(-1);
60
- const { data, isLoading, isFetching } = relations.useGetRelationsQuery(
61
- {
62
- model,
63
- targetField,
64
- // below we don't run the query if there is no id.
65
- id,
66
- params: {
67
- ...params,
68
- pageSize: RELATIONS_TO_DISPLAY,
69
- page: currentPage
70
- }
71
- },
72
- {
73
- refetchOnMountOrArgChange: true,
74
- skip: !id,
75
- selectFromResult: (result) => {
76
- return {
77
- ...result,
78
- data: {
79
- ...result.data,
80
- results: result.data?.results ? result.data.results : []
81
- }
82
- };
83
- }
84
- }
85
- );
86
- const handleLoadMore = () => {
87
- setCurrentPage((prev) => prev + 1);
88
- };
89
- const field = strapiAdmin.useField(props.name);
90
- const isFetchingMoreRelations = isLoading || isFetching;
91
- const realServerRelationsCount = "pagination" in data && data.pagination ? data.pagination.total : 0;
92
- const relationsConnected = (field.value?.connect ?? []).filter(
93
- (rel) => data.results.findIndex((relation) => relation.id === rel.id) === -1
94
- ).length ?? 0;
95
- const relationsDisconnected = field.value?.disconnect?.length ?? 0;
96
- const relationsCount = realServerRelationsCount + relationsConnected - relationsDisconnected;
97
- const relations$1 = React__namespace.useMemo(() => {
98
- const ctx = {
99
- field: field.value,
100
- // @ts-expect-error – targetModel does exist on the attribute. But it's not typed.
101
- href: `../${index.COLLECTION_TYPES}/${props.attribute.targetModel}`,
102
- mainField: props.mainField
103
- };
104
- const transformations = pipe__default.default(
105
- removeConnected(ctx),
106
- removeDisconnected(ctx),
107
- addLabelAndHref(ctx)
108
- );
109
- const transformedRels = transformations([...data.results]);
110
- return [...transformedRels, ...field.value?.connect ?? []].sort((a, b) => {
111
- if (a.__temp_key__ < b.__temp_key__)
112
- return -1;
113
- if (a.__temp_key__ > b.__temp_key__)
114
- return 1;
115
- return 0;
116
- });
117
- }, [
118
- data.results,
119
- field.value,
120
- // @ts-expect-error – targetModel does exist on the attribute. But it's not typed.
121
- props.attribute.targetModel,
122
- props.mainField
123
- ]);
124
- const handleConnect = (relation) => {
125
- const [lastItemInList] = relations$1.slice(-1);
126
- const item = {
127
- id: relation.id,
128
- status: relation.status,
129
- /**
130
- * If there's a last item, that's the first key we use to generate out next one.
131
- */
132
- __temp_key__: fractionalIndexing.generateNKeysBetween(lastItemInList?.__temp_key__ ?? null, null, 1)[0],
133
- // Fallback to `id` if there is no `mainField` value, which will overwrite the above `id` property with the exact same data.
134
- [props.mainField?.name ?? "documentId"]: relation[props.mainField?.name ?? "documentId"],
135
- label: relations.getRelationLabel(relation, props.mainField),
136
- // @ts-expect-error – targetModel does exist on the attribute, but it's not typed.
137
- href: `../${index.COLLECTION_TYPES}/${props.attribute.targetModel}/${relation.documentId}`
138
- };
139
- if (ONE_WAY_RELATIONS.includes(props.attribute.relation)) {
140
- field.onChange(`${props.name}.connect`, [item]);
141
- } else {
142
- field.onChange(`${props.name}.connect`, [...field.value?.connect ?? [], item]);
143
- }
144
- };
145
- return /* @__PURE__ */ jsxRuntime.jsxs(
146
- designSystem.Flex,
147
- {
148
- ref,
149
- direction: "column",
150
- gap: 3,
151
- justifyContent: "space-between",
152
- alignItems: "stretch",
153
- wrap: "wrap",
154
- children: [
155
- /* @__PURE__ */ jsxRuntime.jsxs(StyledFlex, { direction: "column", alignItems: "start", gap: 2, width: "100%", children: [
156
- /* @__PURE__ */ jsxRuntime.jsx(
157
- RelationsInput,
158
- {
159
- disabled: isDisabled,
160
- id,
161
- label: `${label} ${relationsCount > 0 ? `(${relationsCount})` : ""}`,
162
- model,
163
- onChange: handleConnect,
164
- ...props
165
- }
166
- ),
167
- "pagination" in data && data.pagination && data.pagination.pageCount > data.pagination.page ? /* @__PURE__ */ jsxRuntime.jsx(
168
- designSystem.TextButton,
169
- {
170
- disabled: isFetchingMoreRelations,
171
- onClick: handleLoadMore,
172
- loading: isFetchingMoreRelations,
173
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(Icons.ArrowClockwise, {}),
174
- shrink: 0,
175
- children: formatMessage({
176
- id: index.getTranslation("relation.loadMore"),
177
- defaultMessage: "Load More"
178
- })
179
- }
180
- ) : null
181
- ] }),
182
- /* @__PURE__ */ jsxRuntime.jsx(
183
- RelationsList,
184
- {
185
- data: relations$1,
186
- serverData: data.results,
187
- disabled: isDisabled,
188
- name: props.name,
189
- isLoading: isFetchingMoreRelations,
190
- relationType: props.attribute.relation
191
- }
192
- )
193
- ]
194
- }
195
- );
196
- }
197
- );
198
- const StyledFlex = styledComponents.styled(designSystem.Flex)`
199
- & > div {
200
- width: 100%;
201
- }
202
- `;
203
- const removeConnected = ({ field }) => (relations2) => {
204
- return relations2.filter((relation) => {
205
- const connectedRelations = field?.connect ?? [];
206
- return connectedRelations.findIndex((rel) => rel.id === relation.id) === -1;
207
- });
208
- };
209
- const removeDisconnected = ({ field }) => (relations2) => relations2.filter((relation) => {
210
- const disconnectedRelations = field?.disconnect ?? [];
211
- return disconnectedRelations.findIndex((rel) => rel.id === relation.id) === -1;
212
- });
213
- const addLabelAndHref = ({ mainField, href }) => (relations$1) => relations$1.map((relation) => {
214
- return {
215
- ...relation,
216
- // Fallback to `id` if there is no `mainField` value, which will overwrite the above `documentId` property with the exact same data.
217
- [mainField?.name ?? "documentId"]: relation[mainField?.name ?? "documentId"],
218
- label: relations.getRelationLabel(relation, mainField),
219
- href: `${href}/${relation.documentId}`
220
- };
221
- });
222
- const RelationsInput = ({
223
- hint,
224
- id,
225
- model,
226
- label,
227
- labelAction,
228
- name,
229
- mainField,
230
- placeholder,
231
- required,
232
- unique: _unique,
233
- "aria-label": _ariaLabel,
234
- onChange,
235
- ...props
236
- }) => {
237
- const [textValue, setTextValue] = React__namespace.useState("");
238
- const [searchParams, setSearchParams] = React__namespace.useState({
239
- _q: "",
240
- page: 1
241
- });
242
- const { toggleNotification } = strapiAdmin.useNotification();
243
- const [{ query }] = strapiAdmin.useQueryParams();
244
- const { formatMessage } = reactIntl.useIntl();
245
- const fieldRef = strapiAdmin.useFocusInputField(name);
246
- const field = strapiAdmin.useField(name);
247
- const [searchForTrigger, { data, isLoading }] = relations.useLazySearchRelationsQuery();
248
- React__namespace.useEffect(() => {
249
- const [targetField] = name.split(".").slice(-1);
250
- searchForTrigger({
251
- model,
252
- targetField,
253
- params: {
254
- ...index.buildValidParams(query),
255
- id: id ?? "",
256
- pageSize: 10,
257
- idsToInclude: field.value?.disconnect?.map((rel) => rel.id.toString()) ?? [],
258
- idsToOmit: field.value?.connect?.map((rel) => rel.id.toString()) ?? [],
259
- ...searchParams
260
- }
261
- });
262
- }, [
263
- field.value?.connect,
264
- field.value?.disconnect,
265
- id,
266
- model,
267
- name,
268
- query,
269
- searchForTrigger,
270
- searchParams
271
- ]);
272
- const handleSearch = async (search) => {
273
- setSearchParams((s) => ({ ...s, _q: search, page: 1 }));
274
- };
275
- const hasNextPage = data?.pagination ? data.pagination.page < data.pagination.pageCount : false;
276
- const options = data?.results ?? [];
277
- const handleChange = (relationId) => {
278
- if (!relationId) {
279
- return;
280
- }
281
- const relation = options.find((opt) => opt.id.toString() === relationId);
282
- if (!relation) {
283
- console.error(
284
- "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."
285
- );
286
- toggleNotification({
287
- message: formatMessage({
288
- id: index.getTranslation("relation.error-adding-relation"),
289
- defaultMessage: "An error occurred while trying to add the relation."
290
- }),
291
- type: "danger"
292
- });
293
- return;
294
- }
295
- onChange(relation);
296
- };
297
- const handleLoadMore = () => {
298
- if (!data || !data.pagination) {
299
- return;
300
- } else if (data.pagination.page < data.pagination.pageCount) {
301
- setSearchParams((s) => ({ ...s, page: s.page + 1 }));
302
- }
303
- };
304
- React__namespace.useLayoutEffect(() => {
305
- setTextValue("");
306
- }, [field.value]);
307
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, hint, name, required, children: [
308
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
309
- /* @__PURE__ */ jsxRuntime.jsx(
310
- designSystem.Combobox,
311
- {
312
- ref: fieldRef,
313
- name,
314
- autocomplete: "none",
315
- placeholder: placeholder || formatMessage({
316
- id: index.getTranslation("relation.add"),
317
- defaultMessage: "Add relation"
318
- }),
319
- hasMoreItems: hasNextPage,
320
- loading: isLoading,
321
- onOpenChange: () => {
322
- handleSearch(textValue ?? "");
323
- },
324
- noOptionsMessage: () => formatMessage({
325
- id: index.getTranslation("relation.notAvailable"),
326
- defaultMessage: "No relations available"
327
- }),
328
- loadingMessage: formatMessage({
329
- id: index.getTranslation("relation.isLoading"),
330
- defaultMessage: "Relations are loading"
331
- }),
332
- onLoadMore: handleLoadMore,
333
- textValue,
334
- onChange: handleChange,
335
- onTextValueChange: (text) => {
336
- setTextValue(text);
337
- },
338
- onInputChange: (event) => {
339
- handleSearch(event.currentTarget.value);
340
- },
341
- ...props,
342
- children: options.map((opt) => {
343
- const textValue2 = relations.getRelationLabel(opt, mainField);
344
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.ComboboxOption, { value: opt.id.toString(), textValue: textValue2, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, justifyContent: "space-between", children: [
345
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { ellipsis: true, children: textValue2 }),
346
- opt.status ? /* @__PURE__ */ jsxRuntime.jsx(index.DocumentStatus, { status: opt.status }) : null
347
- ] }) }, opt.id);
348
- })
349
- }
350
- ),
351
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {}),
352
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {})
353
- ] });
354
- };
355
- const RELATION_ITEM_HEIGHT = 50;
356
- const RELATION_GUTTER = 4;
357
- const RelationsList = ({
358
- data,
359
- serverData,
360
- disabled,
361
- name,
362
- isLoading,
363
- relationType
364
- }) => {
365
- const ariaDescriptionId = React__namespace.useId();
366
- const { formatMessage } = reactIntl.useIntl();
367
- const listRef = React__namespace.useRef(null);
368
- const outerListRef = React__namespace.useRef(null);
369
- const [overflow, setOverflow] = React__namespace.useState();
370
- const [liveText, setLiveText] = React__namespace.useState("");
371
- const field = strapiAdmin.useField(name);
372
- const removeFieldRow = strapiAdmin.useForm("RelationsList", (state) => state.removeFieldRow);
373
- const addFieldRow = strapiAdmin.useForm("RelationsList", (state) => state.addFieldRow);
374
- React__namespace.useEffect(() => {
375
- if (data.length <= RELATIONS_TO_DISPLAY) {
376
- return setOverflow(void 0);
377
- }
378
- const handleNativeScroll = (e) => {
379
- const el = e.target;
380
- const parentScrollContainerHeight = el.parentNode.scrollHeight;
381
- const maxScrollBottom = el.scrollHeight - el.scrollTop;
382
- if (el.scrollTop === 0) {
383
- return setOverflow("bottom");
384
- }
385
- if (maxScrollBottom === parentScrollContainerHeight) {
386
- return setOverflow("top");
387
- }
388
- return setOverflow("top-bottom");
389
- };
390
- const outerListRefCurrent = outerListRef?.current;
391
- if (!isLoading && data.length > 0 && outerListRefCurrent) {
392
- outerListRef.current.addEventListener("scroll", handleNativeScroll);
393
- }
394
- return () => {
395
- if (outerListRefCurrent) {
396
- outerListRefCurrent.removeEventListener("scroll", handleNativeScroll);
397
- }
398
- };
399
- }, [isLoading, data.length]);
400
- const getItemPos = (index2) => `${index2 + 1} of ${data.length}`;
401
- const handleMoveItem = (newIndex, oldIndex) => {
402
- const item = data[oldIndex];
403
- setLiveText(
404
- formatMessage(
405
- {
406
- id: index.getTranslation("dnd.reorder"),
407
- defaultMessage: "{item}, moved. New position in list: {position}."
408
- },
409
- {
410
- item: item.label ?? item.documentId,
411
- position: getItemPos(newIndex)
412
- }
413
- )
414
- );
415
- const newData = [...data];
416
- const currentRow = data[oldIndex];
417
- const startKey = oldIndex > newIndex ? newData[newIndex - 1]?.__temp_key__ : newData[newIndex]?.__temp_key__;
418
- const endKey = oldIndex > newIndex ? newData[newIndex]?.__temp_key__ : newData[newIndex + 1]?.__temp_key__;
419
- const [newKey] = fractionalIndexing.generateNKeysBetween(startKey, endKey, 1);
420
- newData.splice(oldIndex, 1);
421
- newData.splice(newIndex, 0, { ...currentRow, __temp_key__: newKey });
422
- const connectedRelations = newData.reduce((acc, relation, currentIndex, array) => {
423
- const relationOnServer = serverData.find(
424
- (oldRelation) => oldRelation.documentId === relation.documentId
425
- );
426
- const relationInFront = array[currentIndex + 1];
427
- if (!relationOnServer || relationOnServer.__temp_key__ !== relation.__temp_key__) {
428
- const position = relationInFront ? {
429
- before: relationInFront.documentId,
430
- locale: relationInFront.locale,
431
- status: relationInFront.status
432
- } : { end: true };
433
- const relationWithPosition = { ...relation, position };
434
- return [...acc, relationWithPosition];
435
- }
436
- return acc;
437
- }, []).toReversed();
438
- field.onChange(`${name}.connect`, connectedRelations);
439
- };
440
- const handleGrabItem = (index$1) => {
441
- const item = data[index$1];
442
- setLiveText(
443
- formatMessage(
444
- {
445
- id: index.getTranslation("dnd.grab-item"),
446
- defaultMessage: `{item}, grabbed. Current position in list: {position}. Press up and down arrow to change position, Spacebar to drop, Escape to cancel.`
447
- },
448
- {
449
- item: item.label ?? item.documentId,
450
- position: getItemPos(index$1)
451
- }
452
- )
453
- );
454
- };
455
- const handleDropItem = (index$1) => {
456
- const { href: _href, label, ...item } = data[index$1];
457
- setLiveText(
458
- formatMessage(
459
- {
460
- id: index.getTranslation("dnd.drop-item"),
461
- defaultMessage: `{item}, dropped. Final position in list: {position}.`
462
- },
463
- {
464
- item: label ?? item.documentId,
465
- position: getItemPos(index$1)
466
- }
467
- )
468
- );
469
- };
470
- const handleCancel = (index$1) => {
471
- const item = data[index$1];
472
- setLiveText(
473
- formatMessage(
474
- {
475
- id: index.getTranslation("dnd.cancel-item"),
476
- defaultMessage: "{item}, dropped. Re-order cancelled."
477
- },
478
- {
479
- item: item.label ?? item.documentId
480
- }
481
- )
482
- );
483
- };
484
- const handleDisconnect = (relation) => {
485
- if (field.value && field.value.connect) {
486
- const indexOfRelationInConnectArray = field.value.connect.findIndex(
487
- (rel) => rel.id === relation.id
488
- );
489
- if (indexOfRelationInConnectArray >= 0) {
490
- removeFieldRow(`${name}.connect`, indexOfRelationInConnectArray);
491
- return;
492
- }
493
- }
494
- addFieldRow(`${name}.disconnect`, { id: relation.id });
495
- };
496
- const canReorder = !ONE_WAY_RELATIONS.includes(relationType);
497
- 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);
498
- return /* @__PURE__ */ jsxRuntime.jsxs(ShadowBox, { $overflowDirection: overflow, children: [
499
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { id: ariaDescriptionId, children: formatMessage({
500
- id: index.getTranslation("dnd.instructions"),
501
- defaultMessage: `Press spacebar to grab and re-order`
502
- }) }),
503
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { "aria-live": "assertive", children: liveText }),
504
- /* @__PURE__ */ jsxRuntime.jsx(
505
- reactWindow.FixedSizeList,
506
- {
507
- height: dynamicListHeight,
508
- ref: listRef,
509
- outerRef: outerListRef,
510
- itemCount: data.length,
511
- itemSize: RELATION_ITEM_HEIGHT + RELATION_GUTTER,
512
- itemData: {
513
- ariaDescribedBy: ariaDescriptionId,
514
- canDrag: canReorder,
515
- disabled,
516
- handleCancel,
517
- handleDropItem,
518
- handleGrabItem,
519
- handleMoveItem,
520
- name,
521
- handleDisconnect,
522
- relations: data
523
- },
524
- itemKey: (index2) => data[index2].id,
525
- innerElementType: "ol",
526
- children: ListItem
527
- }
528
- )
529
- ] });
530
- };
531
- const ShadowBox = styledComponents.styled(designSystem.Box)`
532
- position: relative;
533
- overflow: hidden;
534
- flex: 1;
535
-
536
- &:before,
537
- &:after {
538
- position: absolute;
539
- width: 100%;
540
- height: 4px;
541
- z-index: 1;
542
- }
543
-
544
- &:before {
545
- /* TODO: as for DS Table component we would need this to be handled by the DS theme */
546
- content: '';
547
- background: linear-gradient(rgba(3, 3, 5, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
548
- top: 0;
549
- opacity: ${({ $overflowDirection }) => $overflowDirection === "top-bottom" || $overflowDirection === "top" ? 1 : 0};
550
- transition: opacity 0.2s ease-in-out;
551
- }
552
-
553
- &:after {
554
- /* TODO: as for DS Table component we would need this to be handled by the DS theme */
555
- content: '';
556
- background: linear-gradient(0deg, rgba(3, 3, 5, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
557
- bottom: 0;
558
- opacity: ${({ $overflowDirection }) => $overflowDirection === "top-bottom" || $overflowDirection === "bottom" ? 1 : 0};
559
- transition: opacity 0.2s ease-in-out;
560
- }
561
- `;
562
- const ListItem = ({ data, index: index$1, style }) => {
563
- const {
564
- ariaDescribedBy,
565
- canDrag = false,
566
- disabled = false,
567
- handleCancel,
568
- handleDisconnect,
569
- handleDropItem,
570
- handleGrabItem,
571
- handleMoveItem,
572
- name,
573
- relations: relations2
574
- } = data;
575
- const { formatMessage } = reactIntl.useIntl();
576
- const { href, documentId, label, status } = relations2[index$1];
577
- const [{ handlerId, isDragging, handleKeyDown }, relationRef, dropRef, dragRef, dragPreviewRef] = useDragAndDrop.useDragAndDrop(
578
- canDrag && !disabled,
579
- {
580
- type: `${useDragAndDrop.ItemTypes.RELATION}_${name}`,
581
- index: index$1,
582
- item: {
583
- displayedValue: label,
584
- status,
585
- id: documentId,
586
- index: index$1
587
- },
588
- onMoveItem: handleMoveItem,
589
- onDropItem: handleDropItem,
590
- onGrabItem: handleGrabItem,
591
- onCancel: handleCancel,
592
- dropSensitivity: useDragAndDrop.DROP_SENSITIVITY.REGULAR
593
- }
594
- );
595
- const composedRefs = designSystem.useComposedRefs(relationRef, dragRef);
596
- React__namespace.useEffect(() => {
597
- dragPreviewRef(reactDndHtml5Backend.getEmptyImage());
598
- }, [dragPreviewRef]);
599
- return /* @__PURE__ */ jsxRuntime.jsx(
600
- designSystem.Box,
601
- {
602
- style,
603
- tag: "li",
604
- ref: dropRef,
605
- "aria-describedby": ariaDescribedBy,
606
- cursor: canDrag ? "all-scroll" : "default",
607
- children: isDragging ? /* @__PURE__ */ jsxRuntime.jsx(RelationItemPlaceholder, {}) : /* @__PURE__ */ jsxRuntime.jsxs(
608
- designSystem.Flex,
609
- {
610
- paddingTop: 2,
611
- paddingBottom: 2,
612
- paddingLeft: canDrag ? 2 : 4,
613
- paddingRight: 4,
614
- hasRadius: true,
615
- borderColor: "neutral200",
616
- background: disabled ? "neutral150" : "neutral0",
617
- justifyContent: "space-between",
618
- ref: composedRefs,
619
- "data-handler-id": handlerId,
620
- children: [
621
- /* @__PURE__ */ jsxRuntime.jsxs(FlexWrapper, { gap: 1, children: [
622
- canDrag ? /* @__PURE__ */ jsxRuntime.jsx(
623
- designSystem.IconButton,
624
- {
625
- tag: "div",
626
- role: "button",
627
- tabIndex: 0,
628
- withTooltip: false,
629
- label: formatMessage({
630
- id: index.getTranslation("components.RelationInput.icon-button-aria-label"),
631
- defaultMessage: "Drag"
632
- }),
633
- variant: "ghost",
634
- onKeyDown: handleKeyDown,
635
- disabled,
636
- children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Drag, {})
637
- }
638
- ) : null,
639
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { width: "100%", minWidth: 0, justifyContent: "space-between", children: [
640
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { minWidth: 0, paddingTop: 1, paddingBottom: 1, paddingRight: 4, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tooltip, { description: label, children: href ? /* @__PURE__ */ jsxRuntime.jsx(LinkEllipsis, { tag: reactRouterDom.NavLink, to: href, isExternal: false, children: label }) : /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: disabled ? "neutral600" : "primary600", ellipsis: true, children: label }) }) }),
641
- status ? /* @__PURE__ */ jsxRuntime.jsx(index.DocumentStatus, { status }) : null
642
- ] })
643
- ] }),
644
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
645
- DisconnectButton,
646
- {
647
- disabled,
648
- type: "button",
649
- onClick: () => handleDisconnect(relations2[index$1]),
650
- "aria-label": formatMessage({
651
- id: index.getTranslation("relation.disconnect"),
652
- defaultMessage: "Remove"
653
- }),
654
- children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Cross, { width: "12px" })
655
- }
656
- ) })
657
- ]
658
- }
659
- )
660
- }
661
- );
662
- };
663
- const FlexWrapper = styledComponents.styled(designSystem.Flex)`
664
- width: 100%;
665
- /* Used to prevent endAction to be pushed out of container */
666
- min-width: 0;
667
-
668
- & > div[role='button'] {
669
- cursor: all-scroll;
670
- }
671
- `;
672
- const DisconnectButton = styledComponents.styled.button`
673
- svg path {
674
- fill: ${({ theme, disabled }) => disabled ? theme.colors.neutral600 : theme.colors.neutral500};
675
- }
676
-
677
- &:hover svg path,
678
- &:focus svg path {
679
- fill: ${({ theme, disabled }) => !disabled && theme.colors.neutral600};
680
- }
681
- `;
682
- const LinkEllipsis = styledComponents.styled(designSystem.Link)`
683
- display: block;
684
-
685
- & > span {
686
- white-space: nowrap;
687
- overflow: hidden;
688
- text-overflow: ellipsis;
689
- display: block;
690
- }
691
- `;
692
- const RelationItemPlaceholder = () => /* @__PURE__ */ jsxRuntime.jsx(
693
- designSystem.Box,
694
- {
695
- paddingTop: 2,
696
- paddingBottom: 2,
697
- paddingLeft: 4,
698
- paddingRight: 4,
699
- hasRadius: true,
700
- borderStyle: "dashed",
701
- borderColor: "primary600",
702
- borderWidth: "1px",
703
- background: "primary100",
704
- height: `calc(100% - ${RELATION_GUTTER}px)`
705
- }
706
- );
707
- const MemoizedRelationsField = React__namespace.memo(RelationsField);
708
- exports.ComponentProvider = ComponentProvider;
709
- exports.DisconnectButton = DisconnectButton;
710
- exports.FlexWrapper = FlexWrapper;
711
- exports.LinkEllipsis = LinkEllipsis;
712
- exports.MemoizedRelationsField = MemoizedRelationsField;
713
- exports.useComponent = useComponent;
714
- //# sourceMappingURL=Relations-DPFCAa7b.js.map