@strapi/content-manager 0.0.0-experimental.cb311d9fcfbd8e441f790aea232f0a39bdd90e16 → 0.0.0-experimental.ce3ce68ff05de341bbdb48e7164d5367cffa839c

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 (497) 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-DKPNz7kC.mjs +276 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-DKPNz7kC.mjs.map +1 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-DLYW6wzP.js +298 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-DLYW6wzP.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-D6MAzDx9.js +180 -0
  14. package/dist/admin/chunks/EditConfigurationPage-D6MAzDx9.js.map +1 -0
  15. package/dist/admin/chunks/EditConfigurationPage-QUYChTGp.mjs +158 -0
  16. package/dist/admin/chunks/EditConfigurationPage-QUYChTGp.mjs.map +1 -0
  17. package/dist/admin/chunks/EditViewPage-BEiXdIh3.js +337 -0
  18. package/dist/admin/chunks/EditViewPage-BEiXdIh3.js.map +1 -0
  19. package/dist/admin/chunks/EditViewPage-CVSmF6vY.mjs +314 -0
  20. package/dist/admin/chunks/EditViewPage-CVSmF6vY.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-D3aRL8pG.mjs +955 -0
  26. package/dist/admin/chunks/Form-D3aRL8pG.mjs.map +1 -0
  27. package/dist/admin/chunks/Form-DT-mJpeC.js +978 -0
  28. package/dist/admin/chunks/Form-DT-mJpeC.js.map +1 -0
  29. package/dist/admin/chunks/History-Cev65qhQ.mjs +1357 -0
  30. package/dist/admin/chunks/History-Cev65qhQ.mjs.map +1 -0
  31. package/dist/admin/chunks/History-DcmMS40h.js +1380 -0
  32. package/dist/admin/chunks/History-DcmMS40h.js.map +1 -0
  33. package/dist/admin/chunks/Input-DKc071zK.js +6785 -0
  34. package/dist/admin/chunks/Input-DKc071zK.js.map +1 -0
  35. package/dist/admin/chunks/Input-DmdcvKcy.mjs +6755 -0
  36. package/dist/admin/chunks/Input-DmdcvKcy.mjs.map +1 -0
  37. package/dist/admin/chunks/ListConfigurationPage-9g-kIzuq.js +818 -0
  38. package/dist/admin/chunks/ListConfigurationPage-9g-kIzuq.js.map +1 -0
  39. package/dist/admin/chunks/ListConfigurationPage-yidhkI_g.mjs +795 -0
  40. package/dist/admin/chunks/ListConfigurationPage-yidhkI_g.mjs.map +1 -0
  41. package/dist/admin/chunks/ListViewPage-CkbK_jTo.js +1154 -0
  42. package/dist/admin/chunks/ListViewPage-CkbK_jTo.js.map +1 -0
  43. package/dist/admin/chunks/ListViewPage-kGaMwPGl.mjs +1132 -0
  44. package/dist/admin/chunks/ListViewPage-kGaMwPGl.mjs.map +1 -0
  45. package/dist/admin/chunks/NoContentTypePage-B2sy8eF1.js +59 -0
  46. package/dist/admin/chunks/NoContentTypePage-B2sy8eF1.js.map +1 -0
  47. package/dist/admin/chunks/NoContentTypePage-DotejDdi.mjs +57 -0
  48. package/dist/admin/chunks/NoContentTypePage-DotejDdi.mjs.map +1 -0
  49. package/dist/admin/chunks/NoPermissionsPage-BZp87Adj.js +38 -0
  50. package/dist/admin/chunks/NoPermissionsPage-BZp87Adj.js.map +1 -0
  51. package/dist/admin/chunks/NoPermissionsPage-CSGCioeQ.mjs +36 -0
  52. package/dist/admin/chunks/NoPermissionsPage-CSGCioeQ.mjs.map +1 -0
  53. package/dist/admin/chunks/Preview-C7doSaZl.js +553 -0
  54. package/dist/admin/chunks/Preview-C7doSaZl.js.map +1 -0
  55. package/dist/admin/chunks/Preview-CPJ1hVQG.mjs +531 -0
  56. package/dist/admin/chunks/Preview-CPJ1hVQG.mjs.map +1 -0
  57. package/dist/admin/chunks/Relations-C8ytFTHV.mjs +827 -0
  58. package/dist/admin/chunks/Relations-C8ytFTHV.mjs.map +1 -0
  59. package/dist/admin/chunks/Relations-DFmdcIeQ.js +853 -0
  60. package/dist/admin/chunks/Relations-DFmdcIeQ.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-C1CjdAtC.js +313 -0
  78. package/dist/{_chunks/en-uOUIxfcQ.js.map → admin/chunks/en-C1CjdAtC.js.map} +1 -1
  79. package/dist/admin/chunks/en-LfhocNG2.mjs +308 -0
  80. package/dist/{_chunks/en-BrCTWlZv.mjs.map → admin/chunks/en-LfhocNG2.mjs.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-Deb5-YKG.mjs +5350 -0
  114. package/dist/admin/chunks/index-Deb5-YKG.mjs.map +1 -0
  115. package/dist/admin/chunks/index-OSrndyon.js +5416 -0
  116. package/dist/admin/chunks/index-OSrndyon.js.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-MkippATC.mjs +598 -0
  130. package/dist/admin/chunks/layout-MkippATC.mjs.map +1 -0
  131. package/dist/admin/chunks/layout-ixNm7FpJ.js +618 -0
  132. package/dist/admin/chunks/layout-ixNm7FpJ.js.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-BwFH-RZe.mjs +173 -0
  162. package/dist/admin/chunks/relations-BwFH-RZe.mjs.map +1 -0
  163. package/dist/admin/chunks/relations-CQOKwshG.js +178 -0
  164. package/dist/admin/chunks/relations-CQOKwshG.js.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/th-BqbI8lIT.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-B24MoTVg.js +145 -0
  190. package/dist/{_chunks/uk-C8EiqJY7.js.map → admin/chunks/uk-B24MoTVg.js.map} +1 -1
  191. package/dist/admin/chunks/uk-Cpgmm7gE.mjs +140 -0
  192. package/dist/{_chunks/uk-CR-zDhAY.mjs.map → admin/chunks/uk-Cpgmm7gE.mjs.map} +1 -1
  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 +25 -4
  214. package/dist/admin/index.js.map +1 -1
  215. package/dist/admin/index.mjs +16 -11
  216. package/dist/admin/index.mjs.map +1 -1
  217. package/dist/admin/src/content-manager.d.ts +3 -2
  218. package/dist/admin/src/exports.d.ts +2 -1
  219. package/dist/admin/src/history/services/historyVersion.d.ts +2 -2
  220. package/dist/admin/src/hooks/useDocument.d.ts +50 -2
  221. package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
  222. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +1 -1
  223. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +3 -3
  224. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +55 -0
  225. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -0
  226. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +4 -1
  227. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -1
  228. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +2 -2
  229. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +2 -2
  230. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +4 -48
  231. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +27 -0
  232. package/dist/admin/src/pages/EditView/components/Header.d.ts +11 -11
  233. package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
  234. package/dist/admin/src/preview/components/PreviewContent.d.ts +3 -0
  235. package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
  236. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  237. package/dist/admin/src/preview/index.d.ts +3 -0
  238. package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
  239. package/dist/admin/src/preview/routes.d.ts +3 -0
  240. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  241. package/dist/admin/src/router.d.ts +1 -1
  242. package/dist/admin/src/services/api.d.ts +1 -1
  243. package/dist/admin/src/services/components.d.ts +2 -2
  244. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  245. package/dist/admin/src/services/documents.d.ts +19 -20
  246. package/dist/admin/src/services/init.d.ts +1 -1
  247. package/dist/admin/src/services/relations.d.ts +2 -2
  248. package/dist/admin/src/services/uid.d.ts +3 -3
  249. package/dist/admin/src/utils/validation.d.ts +4 -1
  250. package/dist/server/index.js +5472 -4119
  251. package/dist/server/index.js.map +1 -1
  252. package/dist/server/index.mjs +5458 -4102
  253. package/dist/server/index.mjs.map +1 -1
  254. package/dist/server/src/bootstrap.d.ts.map +1 -1
  255. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  256. package/dist/server/src/controllers/index.d.ts.map +1 -1
  257. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  258. package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
  259. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  260. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  261. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  262. package/dist/server/src/history/services/history.d.ts +3 -3
  263. package/dist/server/src/history/services/history.d.ts.map +1 -1
  264. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  265. package/dist/server/src/history/services/utils.d.ts +7 -11
  266. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  267. package/dist/server/src/index.d.ts +7 -6
  268. package/dist/server/src/index.d.ts.map +1 -1
  269. package/dist/server/src/policies/hasPermissions.d.ts.map +1 -1
  270. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  271. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  272. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  273. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  274. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  275. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  276. package/dist/server/src/preview/index.d.ts +4 -0
  277. package/dist/server/src/preview/index.d.ts.map +1 -0
  278. package/dist/server/src/preview/routes/index.d.ts +8 -0
  279. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  280. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  281. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  282. package/dist/server/src/preview/services/index.d.ts +16 -0
  283. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  284. package/dist/server/src/preview/services/preview-config.d.ts +32 -0
  285. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  286. package/dist/server/src/preview/services/preview.d.ts +12 -0
  287. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  288. package/dist/server/src/preview/utils.d.ts +19 -0
  289. package/dist/server/src/preview/utils.d.ts.map +1 -0
  290. package/dist/server/src/register.d.ts.map +1 -1
  291. package/dist/server/src/routes/index.d.ts.map +1 -1
  292. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  293. package/dist/server/src/services/document-metadata.d.ts +12 -10
  294. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  295. package/dist/server/src/services/index.d.ts +7 -6
  296. package/dist/server/src/services/index.d.ts.map +1 -1
  297. package/dist/server/src/services/permission-checker.d.ts.map +1 -1
  298. package/dist/server/src/services/utils/count.d.ts +1 -1
  299. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  300. package/dist/server/src/services/utils/populate.d.ts +3 -3
  301. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  302. package/dist/server/src/utils/index.d.ts +2 -0
  303. package/dist/server/src/utils/index.d.ts.map +1 -1
  304. package/dist/shared/contracts/collection-types.d.ts +3 -2
  305. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  306. package/dist/shared/contracts/components.d.ts +0 -1
  307. package/dist/shared/contracts/content-types.d.ts +0 -1
  308. package/dist/shared/contracts/history-versions.d.ts +0 -1
  309. package/dist/shared/contracts/index.d.ts +1 -1
  310. package/dist/shared/contracts/index.d.ts.map +1 -1
  311. package/dist/shared/contracts/init.d.ts +0 -1
  312. package/dist/shared/contracts/preview.d.ts +26 -0
  313. package/dist/shared/contracts/preview.d.ts.map +1 -0
  314. package/dist/shared/contracts/relations.d.ts +1 -2
  315. package/dist/shared/contracts/relations.d.ts.map +1 -1
  316. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  317. package/dist/shared/contracts/single-types.d.ts +0 -1
  318. package/dist/shared/contracts/uid.d.ts +0 -1
  319. package/dist/shared/index.d.ts +0 -1
  320. package/dist/shared/index.js +37 -22
  321. package/dist/shared/index.js.map +1 -1
  322. package/dist/shared/index.mjs +36 -23
  323. package/dist/shared/index.mjs.map +1 -1
  324. package/package.json +24 -20
  325. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  326. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  327. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  328. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  329. package/dist/_chunks/ComponentConfigurationPage-D0dyDTwq.mjs +0 -236
  330. package/dist/_chunks/ComponentConfigurationPage-D0dyDTwq.mjs.map +0 -1
  331. package/dist/_chunks/ComponentConfigurationPage-DL1MHO8i.js +0 -255
  332. package/dist/_chunks/ComponentConfigurationPage-DL1MHO8i.js.map +0 -1
  333. package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
  334. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
  335. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  336. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  337. package/dist/_chunks/EditConfigurationPage-13b7S5Cq.mjs +0 -132
  338. package/dist/_chunks/EditConfigurationPage-13b7S5Cq.mjs.map +0 -1
  339. package/dist/_chunks/EditConfigurationPage-CMaOf-A-.js +0 -151
  340. package/dist/_chunks/EditConfigurationPage-CMaOf-A-.js.map +0 -1
  341. package/dist/_chunks/EditViewPage-BSVmMpRd.js +0 -222
  342. package/dist/_chunks/EditViewPage-BSVmMpRd.js.map +0 -1
  343. package/dist/_chunks/EditViewPage-C3tIZ8F5.mjs +0 -203
  344. package/dist/_chunks/EditViewPage-C3tIZ8F5.mjs.map +0 -1
  345. package/dist/_chunks/Field-BvuT8cGL.mjs +0 -5491
  346. package/dist/_chunks/Field-BvuT8cGL.mjs.map +0 -1
  347. package/dist/_chunks/Field-DUCVth4C.js +0 -5523
  348. package/dist/_chunks/Field-DUCVth4C.js.map +0 -1
  349. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  350. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  351. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  352. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  353. package/dist/_chunks/Form-BZmDNVr9.mjs +0 -739
  354. package/dist/_chunks/Form-BZmDNVr9.mjs.map +0 -1
  355. package/dist/_chunks/Form-Cpl4W1ak.js +0 -760
  356. package/dist/_chunks/Form-Cpl4W1ak.js.map +0 -1
  357. package/dist/_chunks/History-Cq_Hrzuu.mjs +0 -1032
  358. package/dist/_chunks/History-Cq_Hrzuu.mjs.map +0 -1
  359. package/dist/_chunks/History-D4U2YISB.js +0 -1053
  360. package/dist/_chunks/History-D4U2YISB.js.map +0 -1
  361. package/dist/_chunks/ListConfigurationPage-Bny6CdWe.js +0 -642
  362. package/dist/_chunks/ListConfigurationPage-Bny6CdWe.js.map +0 -1
  363. package/dist/_chunks/ListConfigurationPage-W-KQHmBv.mjs +0 -622
  364. package/dist/_chunks/ListConfigurationPage-W-KQHmBv.mjs.map +0 -1
  365. package/dist/_chunks/ListViewPage-HBBnJa8K.mjs +0 -824
  366. package/dist/_chunks/ListViewPage-HBBnJa8K.mjs.map +0 -1
  367. package/dist/_chunks/ListViewPage-O8F1pBJo.js +0 -848
  368. package/dist/_chunks/ListViewPage-O8F1pBJo.js.map +0 -1
  369. package/dist/_chunks/NoContentTypePage-B-gIhHWM.mjs +0 -51
  370. package/dist/_chunks/NoContentTypePage-B-gIhHWM.mjs.map +0 -1
  371. package/dist/_chunks/NoContentTypePage-CQWChGPw.js +0 -51
  372. package/dist/_chunks/NoContentTypePage-CQWChGPw.js.map +0 -1
  373. package/dist/_chunks/NoPermissionsPage-CY46zxnM.js +0 -23
  374. package/dist/_chunks/NoPermissionsPage-CY46zxnM.js.map +0 -1
  375. package/dist/_chunks/NoPermissionsPage-XhOPl8wx.mjs +0 -23
  376. package/dist/_chunks/NoPermissionsPage-XhOPl8wx.mjs.map +0 -1
  377. package/dist/_chunks/Relations-C4gGfZRv.js +0 -714
  378. package/dist/_chunks/Relations-C4gGfZRv.js.map +0 -1
  379. package/dist/_chunks/Relations-vFZ6Wasg.mjs +0 -694
  380. package/dist/_chunks/Relations-vFZ6Wasg.mjs.map +0 -1
  381. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  382. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  383. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  384. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  385. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  386. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  387. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  388. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  389. package/dist/_chunks/de-CCEmbAah.js +0 -199
  390. package/dist/_chunks/en-BrCTWlZv.mjs +0 -292
  391. package/dist/_chunks/en-uOUIxfcQ.js +0 -292
  392. package/dist/_chunks/es-CeXiYflN.mjs +0 -196
  393. package/dist/_chunks/es-EUonQTon.js +0 -196
  394. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  395. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  396. package/dist/_chunks/fr-B7kGGg3E.js +0 -206
  397. package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
  398. package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
  399. package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
  400. package/dist/_chunks/gu-BRmF601H.js +0 -200
  401. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  402. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  403. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  404. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  405. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  406. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  407. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  408. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  409. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  410. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  411. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  412. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  413. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  414. package/dist/_chunks/id-B5Ser98A.js +0 -160
  415. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  416. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  417. package/dist/_chunks/index-5EMXLEM_.js +0 -3952
  418. package/dist/_chunks/index-5EMXLEM_.js.map +0 -1
  419. package/dist/_chunks/index-Dpxg3ctD.mjs +0 -3933
  420. package/dist/_chunks/index-Dpxg3ctD.mjs.map +0 -1
  421. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  422. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  423. package/dist/_chunks/ja-CcFe8diO.js +0 -196
  424. package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
  425. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  426. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  427. package/dist/_chunks/layout-C0INpKap.mjs +0 -470
  428. package/dist/_chunks/layout-C0INpKap.mjs.map +0 -1
  429. package/dist/_chunks/layout-P3eKO1Qy.js +0 -488
  430. package/dist/_chunks/layout-P3eKO1Qy.js.map +0 -1
  431. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  432. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  433. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  434. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  435. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  436. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  437. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  438. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  439. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  440. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  441. package/dist/_chunks/objects-gigeqt7s.js +0 -49
  442. package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
  443. package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
  444. package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
  445. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  446. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  447. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  448. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  449. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  450. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  451. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  452. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  453. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  454. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  455. package/dist/_chunks/relations-B1y0K6LE.js +0 -134
  456. package/dist/_chunks/relations-B1y0K6LE.js.map +0 -1
  457. package/dist/_chunks/relations-FBRRBWeO.mjs +0 -135
  458. package/dist/_chunks/relations-FBRRBWeO.mjs.map +0 -1
  459. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  460. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  461. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  462. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  463. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  464. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  465. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  466. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  467. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  468. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  469. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  470. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  471. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  472. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  473. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  474. package/dist/_chunks/th-D9_GfAjc.js +0 -148
  475. package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
  476. package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
  477. package/dist/_chunks/tr-D9UH-O_R.js +0 -199
  478. package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
  479. package/dist/_chunks/uk-C8EiqJY7.js +0 -144
  480. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  481. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
  482. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
  483. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
  484. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
  485. package/dist/_chunks/usePrev-B9w_-eYc.js +0 -15
  486. package/dist/_chunks/usePrev-B9w_-eYc.js.map +0 -1
  487. package/dist/_chunks/usePrev-DH6iah0A.mjs +0 -16
  488. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +0 -1
  489. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  490. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  491. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  492. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  493. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  494. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  495. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  496. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
  497. package/strapi-server.js +0 -3
@@ -0,0 +1,140 @@
1
+ var groups = "Групи";
2
+ var models = "Collection Types";
3
+ var pageNotFound = "Сторінка не знайдена";
4
+ var uk = {
5
+ "EditRelations.title": "Зв'язок",
6
+ "api.id": "API ID",
7
+ "components.AddFilterCTA.add": "Фільтри",
8
+ "components.AddFilterCTA.hide": "Фільтри",
9
+ "components.DraggableAttr.edit": "Натисніть щоб змінити",
10
+ "components.DynamicZone.pick-compo": "Виберіть один компонент",
11
+ "components.EmptyAttributesBlock.button": "Перейти до налаштувань",
12
+ "components.EmptyAttributesBlock.description": "Ви можете змінити свої налаштування",
13
+ "components.FieldItem.linkToComponentLayout": "Встановити макет компоненту",
14
+ "components.FilterOptions.button.apply": "Застосувати",
15
+ "components.FiltersPickWrapper.PluginHeader.actions.apply": "Застосувати",
16
+ "components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Очистити все",
17
+ "components.FiltersPickWrapper.PluginHeader.description": "Вкажіть умови фільтрації записів",
18
+ "components.FiltersPickWrapper.PluginHeader.title.filter": "Фільтри",
19
+ "components.FiltersPickWrapper.hide": "Сховати",
20
+ "components.LimitSelect.itemsPerPage": "Елементів на сторінку",
21
+ "components.Search.placeholder": "Пошук записів...",
22
+ "components.SettingsViewWrapper.pluginHeader.description.edit-settings": "Налаштуйте, як буде виглядати екран редагування.",
23
+ "components.SettingsViewWrapper.pluginHeader.description.list-settings": "Визначте параметри вигяду списку.",
24
+ "components.SettingsViewWrapper.pluginHeader.title": "Налаштуйте вигляд - {name}",
25
+ "components.TableDelete.delete": "Видалити все",
26
+ "components.TableDelete.deleteSelected": "Видалити обране",
27
+ "components.TableEmpty.withFilters": "Немає {contentType} з обраними фільтрами...",
28
+ "components.TableEmpty.withSearch": "Немає {contentType}, які відповідають пошуку \"{search}\"...",
29
+ "components.TableEmpty.withoutFilter": "Немає {contentType}...",
30
+ "components.empty-repeatable": "Немає записів. Натисніть кнопку нижче, щоб додати нову.",
31
+ "components.notification.info.maximum-requirement": "Ви досягли максимальної кількості полей",
32
+ "components.notification.info.minimum-requirement": "Поле було додано, щоб відповідати мінімальним вимогам",
33
+ "components.reset-entry": "Скинути запис",
34
+ "components.uid.apply": "Вибрати",
35
+ "components.uid.available": "Доступний",
36
+ "components.uid.regenerate": "Згенерувати",
37
+ "components.uid.suggested": "Рекомендоване",
38
+ "components.uid.unavailable": "Недоступний",
39
+ "containers.Edit.Link.Layout": "Налаштувати компонування",
40
+ "containers.Edit.Link.Model": "Змінити Collection Type",
41
+ "containers.Edit.addAnItem": "Додати елемент...",
42
+ "containers.Edit.clickToJump": "Натисніть щоб перейти до запису",
43
+ "containers.Edit.delete": "Видалити",
44
+ "containers.Edit.editing": "Редагування...",
45
+ "containers.Edit.pluginHeader.title.new": "Створити запис",
46
+ "containers.Edit.reset": "Скинути",
47
+ "containers.Edit.returnList": "Повернутися до списку",
48
+ "containers.Edit.seeDetails": "Докладніше",
49
+ "containers.Edit.submit": "Зберегти",
50
+ "containers.EditSettingsView.modal-form.edit-field": "Налаштуйте поле",
51
+ "containers.EditView.notification.errors": "Форма містить деякі помилки",
52
+ "containers.Home.introduction": "Щоб редагувати ваші записи, перейдіть за посиланням в лівому меню. Цей плагін не має належного способу редагування налаштувань і все ще активно розробляється.",
53
+ "containers.Home.pluginHeaderDescription": "Керуйте своїми записами за допомогою потужного та красивого інтерфейсу.",
54
+ "containers.Home.pluginHeaderTitle": "Контент-менеджер",
55
+ "containers.List.errorFetchRecords": "Помилка",
56
+ "containers.list.displayedFields": "Показувати поля",
57
+ "containers.ListSettingsView.modal-form.edit-label": "Налаштуйте підпис",
58
+ "containers.SettingPage.add.field": "Додати ще одне поле",
59
+ "containers.SettingPage.attributes": "Поля атрибутів",
60
+ "containers.SettingPage.attributes.description": "Визначте порядок атрибутів",
61
+ "containers.SettingPage.editSettings.description": "Перетягніть поля щоб налаштувати вигляд.",
62
+ "containers.SettingPage.editSettings.entry.title": "Заголовок запису",
63
+ "containers.SettingPage.editSettings.entry.title.description": "Встановіть поле, яке буде відображати запис.",
64
+ "containers.SettingPage.editSettings.title": "Змінити вигляд (налаштування)",
65
+ "containers.SettingPage.layout": "Компонування",
66
+ "containers.SettingPage.listSettings.description": "Налаштуйте параметри для цього Collection Type",
67
+ "containers.SettingPage.listSettings.title": "Список (налаштування)",
68
+ "containers.SettingPage.pluginHeaderDescription": "Налаштуйте конкретні параметри для цього Collection Type",
69
+ "containers.SettingPage.settings": "Налаштування",
70
+ "containers.SettingPage.view": "Вигляд",
71
+ "containers.SettingViewModel.pluginHeader.title": "Контент-менеджер - {name}",
72
+ "containers.SettingsPage.Block.contentType.description": "Налаштуйте конкретні параметри",
73
+ "containers.SettingsPage.Block.contentType.title": "Collection Types",
74
+ "containers.SettingsPage.Block.generalSettings.description": "Налаштуйте параметри за замовчуванням для свого Collection Types",
75
+ "containers.SettingsPage.Block.generalSettings.title": "Загальне",
76
+ "containers.SettingsPage.pluginHeaderDescription": "Налаштуйте параметри для всіх ваших Collection Types та груп",
77
+ "containers.SettingsView.list.subtitle": "Налаштуйте компонування та відображення ваших Collection Types та груп",
78
+ "containers.SettingsView.list.title": "Налаштування відображення",
79
+ "emptyAttributes.button": "Перейдіть до конструктора Collection Type",
80
+ "emptyAttributes.description": "Додайте перше поле в ваш Collection Type",
81
+ "emptyAttributes.title": "Поки що немає полей",
82
+ "error.attribute.key.taken": "Значення вже існує",
83
+ "error.attribute.sameKeyAndName": "Не може співпадати",
84
+ "error.attribute.taken": "Це поле вже існує",
85
+ "error.contentTypeName.taken": "Це ім'я вже існує",
86
+ "error.model.fetch": "Під час завантаження конфігурації моделей сталася помилка.",
87
+ "error.record.create": "Під час створення запису сталася помилка.",
88
+ "error.record.delete": "Під час видалення запису сталася помилка.",
89
+ "error.record.fetch": "Під час завантаження запису сталася помилка.",
90
+ "error.record.update": "Під час оновлення запису сталася помилка.",
91
+ "error.records.count": "Під час завантаження кількості записів сталася помилка.",
92
+ "error.records.fetch": "Під час завантаження записів сталася помилка.",
93
+ "error.schema.generation": "Під час створення схеми сталася помилка.",
94
+ "error.validation.json": "Це не відпоідає формату JSON",
95
+ "error.validation.max": "Значення занадто велике.",
96
+ "error.validation.maxLength": "Значення занадто довге.",
97
+ "error.validation.min": "Значення занадто мале.",
98
+ "error.validation.minLength": "Значення занадто коротке.",
99
+ "error.validation.minSupMax": "Не може бути більше",
100
+ "error.validation.regex": "Значення не відповідає регулярному виразу.",
101
+ "error.validation.required": "Це обов'язкове поле.",
102
+ "form.Input.bulkActions": "Дозволити масові дії",
103
+ "form.Input.defaultSort": "Сортування за замовчуванням",
104
+ "form.Input.description": "Опис",
105
+ "form.Input.description.placeholder": "Ім'я, для відображення в профілі",
106
+ "form.Input.editable": "Редагуєме поле",
107
+ "form.Input.filters": "Увімкнути фільтри",
108
+ "form.Input.label": "Підпис",
109
+ "form.Input.label.inputDescription": "Це значення змінить підпис, який відображується у заголовку таблиці",
110
+ "form.Input.pageEntries": "записів на сторінці",
111
+ "form.Input.pageEntries.inputDescription": "Зауважте, що ви можете змінити це значення на сторінці налаштувань Collection Type.",
112
+ "form.Input.placeholder": "Плейсхолдер",
113
+ "form.Input.placeholder.placeholder": "Моє значення",
114
+ "form.Input.search": "Увімкнути пошук",
115
+ "form.Input.search.field": "Дозволити шукати за цим полем",
116
+ "form.Input.sort.field": "Дозволити сортувати за цим полем",
117
+ "form.Input.wysiwyg": "Відображувати як WYSIWYG",
118
+ "global.displayedFields": "Відображені поля",
119
+ groups: groups,
120
+ "groups.numbered": "Групи ({number})",
121
+ models: models,
122
+ "models.numbered": "Collection Types ({number})",
123
+ "notification.error.displayedFields": "Потрібне хоча б одне поле для відображення.",
124
+ "notification.error.relationship.fetch": "Під час завантаження зв'язків сталася помилка.",
125
+ "notification.info.SettingPage.disableSort": "Потріен хоча б один атрібут дозволений для сортування.",
126
+ "notification.info.minimumFields": "Необхідно відобразити хоча б одне поле.",
127
+ "notification.upload.error": "Під час завантаження файлів сталася помилка.",
128
+ pageNotFound: pageNotFound,
129
+ "plugin.description.long": "Швидкий спосіб перегляду, редагування та видалення даних у вашій базі даних.",
130
+ "plugin.description.short": "Швидкий спосіб перегляду, редагування та видалення даних у вашій базі даних.",
131
+ "popUpWarning.bodyMessage.contentType.delete": "Ви впевнені, що хочете видалити цей запис?",
132
+ "popUpWarning.bodyMessage.contentType.delete.all": "Ви впевнені, що хочете видалити ці записи?",
133
+ "popUpWarning.warning.cancelAllSettings": "Ви впевнені, що хочете скасувати свої зміни?",
134
+ "popUpWarning.warning.updateAllSettings": "Це змінить всі ваші налаштування",
135
+ "success.record.delete": "Видалено",
136
+ "success.record.save": "Збережено"
137
+ };
138
+
139
+ export { uk as default, groups, models, pageNotFound };
140
+ //# sourceMappingURL=uk-Cpgmm7gE.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"uk-CR-zDhAY.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"uk-Cpgmm7gE.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,247 @@
1
+ import * as React from 'react';
2
+ import { useDrop, useDrag } from 'react-dnd';
3
+
4
+ const ItemTypes = {
5
+ COMPONENT: 'component',
6
+ EDIT_FIELD: 'editField',
7
+ FIELD: 'field',
8
+ DYNAMIC_ZONE: 'dynamicZone',
9
+ RELATION: 'relation',
10
+ BLOCKS: 'blocks'
11
+ };
12
+
13
+ /**
14
+ * Utility hook designed to implement keyboard accessibile drag and drop by
15
+ * returning an onKeyDown handler to be passed to the drag icon button.
16
+ *
17
+ * @internal - You should use `useDragAndDrop` instead.
18
+ */ const useKeyboardDragAndDrop = (active, index, { onCancel, onDropItem, onGrabItem, onMoveItem })=>{
19
+ const [isSelected, setIsSelected] = React.useState(false);
20
+ const handleMove = (movement)=>{
21
+ if (!isSelected) {
22
+ return;
23
+ }
24
+ if (typeof index === 'number' && onMoveItem) {
25
+ if (movement === 'UP') {
26
+ onMoveItem(index - 1, index);
27
+ } else if (movement === 'DOWN') {
28
+ onMoveItem(index + 1, index);
29
+ }
30
+ }
31
+ };
32
+ const handleDragClick = ()=>{
33
+ if (isSelected) {
34
+ if (onDropItem) {
35
+ onDropItem(index);
36
+ }
37
+ setIsSelected(false);
38
+ } else {
39
+ if (onGrabItem) {
40
+ onGrabItem(index);
41
+ }
42
+ setIsSelected(true);
43
+ }
44
+ };
45
+ const handleCancel = ()=>{
46
+ if (isSelected) {
47
+ setIsSelected(false);
48
+ if (onCancel) {
49
+ onCancel(index);
50
+ }
51
+ }
52
+ };
53
+ const handleKeyDown = (e)=>{
54
+ if (!active) {
55
+ return;
56
+ }
57
+ if (e.key === 'Tab' && !isSelected) {
58
+ return;
59
+ }
60
+ e.preventDefault();
61
+ switch(e.key){
62
+ case ' ':
63
+ case 'Enter':
64
+ handleDragClick();
65
+ break;
66
+ case 'Escape':
67
+ handleCancel();
68
+ break;
69
+ case 'ArrowDown':
70
+ case 'ArrowRight':
71
+ handleMove('DOWN');
72
+ break;
73
+ case 'ArrowUp':
74
+ case 'ArrowLeft':
75
+ handleMove('UP');
76
+ break;
77
+ }
78
+ };
79
+ return handleKeyDown;
80
+ };
81
+
82
+ const DIRECTIONS = {
83
+ UPWARD: 'upward',
84
+ DOWNWARD: 'downward'
85
+ };
86
+ const DROP_SENSITIVITY = {
87
+ REGULAR: 'regular',
88
+ IMMEDIATE: 'immediate'
89
+ };
90
+ /**
91
+ * A utility hook abstracting the general drag and drop hooks from react-dnd.
92
+ * Centralising the same behaviours and by default offering keyboard support.
93
+ */ const useDragAndDrop = (active, { type = 'STRAPI_DND', index, item, onStart, onEnd, onGrabItem, onDropItem, onCancel, onMoveItem, dropSensitivity = DROP_SENSITIVITY.REGULAR })=>{
94
+ const objectRef = React.useRef(null);
95
+ const [{ handlerId, isOver }, dropRef] = useDrop({
96
+ accept: type,
97
+ collect (monitor) {
98
+ return {
99
+ handlerId: monitor.getHandlerId(),
100
+ isOver: monitor.isOver({
101
+ shallow: true
102
+ })
103
+ };
104
+ },
105
+ drop (item) {
106
+ const draggedIndex = item.index;
107
+ const newIndex = index;
108
+ if (isOver && onDropItem) {
109
+ onDropItem(draggedIndex, newIndex);
110
+ }
111
+ },
112
+ hover (item, monitor) {
113
+ if (!objectRef.current || !onMoveItem) {
114
+ return;
115
+ }
116
+ const dragIndex = item.index;
117
+ const newIndex = index;
118
+ const hoverBoundingRect = objectRef.current?.getBoundingClientRect();
119
+ const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;
120
+ const clientOffset = monitor.getClientOffset();
121
+ if (!clientOffset) return;
122
+ const hoverClientY = clientOffset && clientOffset.y - hoverBoundingRect.top;
123
+ if (typeof dragIndex === 'number' && typeof newIndex === 'number') {
124
+ if (dragIndex === newIndex) {
125
+ // Don't replace items with themselves
126
+ return;
127
+ }
128
+ if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {
129
+ // Dragging downwards
130
+ if (dragIndex < newIndex && hoverClientY < hoverMiddleY) {
131
+ return;
132
+ }
133
+ // Dragging upwards
134
+ if (dragIndex > newIndex && hoverClientY > hoverMiddleY) {
135
+ return;
136
+ }
137
+ }
138
+ // Time to actually perform the action
139
+ onMoveItem(newIndex, dragIndex);
140
+ item.index = newIndex;
141
+ } else {
142
+ // Using numbers as indices doesn't work for nested list items with path like [1, 1, 0]
143
+ if (Array.isArray(dragIndex) && Array.isArray(newIndex)) {
144
+ // Indices comparison to find item position in nested list
145
+ const minLength = Math.min(dragIndex.length, newIndex.length);
146
+ let areEqual = true;
147
+ let isLessThan = false;
148
+ let isGreaterThan = false;
149
+ for(let i = 0; i < minLength; i++){
150
+ if (dragIndex[i] < newIndex[i]) {
151
+ isLessThan = true;
152
+ areEqual = false;
153
+ break;
154
+ } else if (dragIndex[i] > newIndex[i]) {
155
+ isGreaterThan = true;
156
+ areEqual = false;
157
+ break;
158
+ }
159
+ }
160
+ // Don't replace items with themselves
161
+ if (areEqual && dragIndex.length === newIndex.length) {
162
+ return;
163
+ }
164
+ if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {
165
+ // Dragging downwards
166
+ if (isLessThan && !isGreaterThan && hoverClientY < hoverMiddleY) {
167
+ return;
168
+ }
169
+ // Dragging upwards
170
+ if (isGreaterThan && !isLessThan && hoverClientY > hoverMiddleY) {
171
+ return;
172
+ }
173
+ }
174
+ }
175
+ onMoveItem(newIndex, dragIndex);
176
+ item.index = newIndex;
177
+ }
178
+ }
179
+ });
180
+ const getDragDirection = (monitor)=>{
181
+ if (monitor && monitor.isDragging() && !monitor.didDrop() && monitor.getInitialClientOffset() && monitor.getClientOffset()) {
182
+ const deltaY = monitor.getInitialClientOffset().y - monitor.getClientOffset().y;
183
+ if (deltaY > 0) return DIRECTIONS.UPWARD;
184
+ if (deltaY < 0) return DIRECTIONS.DOWNWARD;
185
+ return null;
186
+ }
187
+ return null;
188
+ };
189
+ const [{ isDragging, direction }, dragRef, dragPreviewRef] = useDrag({
190
+ type,
191
+ item () {
192
+ if (onStart) {
193
+ onStart();
194
+ }
195
+ /**
196
+ * This will be attached and it helps define the preview sizes
197
+ * when a component is flexy e.g. Relations
198
+ */ const { width } = objectRef.current?.getBoundingClientRect() ?? {};
199
+ return {
200
+ index,
201
+ width,
202
+ ...item
203
+ };
204
+ },
205
+ end () {
206
+ if (onEnd) {
207
+ onEnd();
208
+ }
209
+ },
210
+ canDrag: active,
211
+ /**
212
+ * This is useful when the item is in a virtualized list.
213
+ * However, if we don't have an ID then we want the libraries
214
+ * defaults to take care of this.
215
+ */ isDragging: item?.id ? (monitor)=>{
216
+ return item.id === monitor.getItem().id;
217
+ } : undefined,
218
+ collect: (monitor)=>({
219
+ isDragging: monitor.isDragging(),
220
+ initialOffset: monitor.getInitialClientOffset(),
221
+ currentOffset: monitor.getClientOffset(),
222
+ direction: getDragDirection(monitor)
223
+ })
224
+ });
225
+ const handleKeyDown = useKeyboardDragAndDrop(active, index, {
226
+ onGrabItem,
227
+ onDropItem,
228
+ onCancel,
229
+ onMoveItem
230
+ });
231
+ return [
232
+ {
233
+ handlerId,
234
+ isDragging,
235
+ handleKeyDown,
236
+ isOverDropTarget: isOver,
237
+ direction
238
+ },
239
+ objectRef,
240
+ dropRef,
241
+ dragRef,
242
+ dragPreviewRef
243
+ ];
244
+ };
245
+
246
+ export { DROP_SENSITIVITY as D, ItemTypes as I, DIRECTIONS as a, useDragAndDrop as u };
247
+ //# sourceMappingURL=useDragAndDrop-HYwNDExe.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDragAndDrop-HYwNDExe.mjs","sources":["../../../admin/src/constants/dragAndDrop.ts","../../../admin/src/hooks/useKeyboardDragAndDrop.ts","../../../admin/src/hooks/useDragAndDrop.ts"],"sourcesContent":["export const ItemTypes = {\n COMPONENT: 'component',\n EDIT_FIELD: 'editField',\n FIELD: 'field',\n DYNAMIC_ZONE: 'dynamicZone',\n RELATION: 'relation',\n BLOCKS: 'blocks',\n} as const;\n","import * as React from 'react';\n\nexport type UseKeyboardDragAndDropCallbacks<TIndex extends number | Array<number> = number> = {\n onCancel?: (index: TIndex) => void;\n onDropItem?: (currentIndex: TIndex, newIndex?: TIndex) => void;\n onGrabItem?: (index: TIndex) => void;\n onMoveItem?: (newIndex: TIndex, currentIndex: TIndex) => void;\n};\n\n/**\n * Utility hook designed to implement keyboard accessibile drag and drop by\n * returning an onKeyDown handler to be passed to the drag icon button.\n *\n * @internal - You should use `useDragAndDrop` instead.\n */\nexport const useKeyboardDragAndDrop = <TIndex extends number | Array<number> = number>(\n active: boolean,\n index: TIndex,\n { onCancel, onDropItem, onGrabItem, onMoveItem }: UseKeyboardDragAndDropCallbacks<TIndex>\n) => {\n const [isSelected, setIsSelected] = React.useState(false);\n\n const handleMove = (movement: 'UP' | 'DOWN') => {\n if (!isSelected) {\n return;\n }\n if (typeof index === 'number' && onMoveItem) {\n if (movement === 'UP') {\n onMoveItem((index - 1) as TIndex, index);\n } else if (movement === 'DOWN') {\n onMoveItem((index + 1) as TIndex, index);\n }\n }\n };\n\n const handleDragClick = () => {\n if (isSelected) {\n if (onDropItem) {\n onDropItem(index);\n }\n setIsSelected(false);\n } else {\n if (onGrabItem) {\n onGrabItem(index);\n }\n setIsSelected(true);\n }\n };\n\n const handleCancel = () => {\n if (isSelected) {\n setIsSelected(false);\n\n if (onCancel) {\n onCancel(index);\n }\n }\n };\n\n const handleKeyDown = <E extends Element>(e: React.KeyboardEvent<E>) => {\n if (!active) {\n return;\n }\n\n if (e.key === 'Tab' && !isSelected) {\n return;\n }\n\n e.preventDefault();\n\n switch (e.key) {\n case ' ':\n case 'Enter':\n handleDragClick();\n break;\n\n case 'Escape':\n handleCancel();\n break;\n\n case 'ArrowDown':\n case 'ArrowRight':\n handleMove('DOWN');\n break;\n\n case 'ArrowUp':\n case 'ArrowLeft':\n handleMove('UP');\n break;\n\n default:\n }\n };\n\n return handleKeyDown;\n};\n","import * as React from 'react';\n\nimport {\n useDrag,\n useDrop,\n type HandlerManager,\n type ConnectDragSource,\n type ConnectDropTarget,\n type ConnectDragPreview,\n type DragSourceMonitor,\n} from 'react-dnd';\n\nimport {\n useKeyboardDragAndDrop,\n type UseKeyboardDragAndDropCallbacks,\n} from './useKeyboardDragAndDrop';\n\nimport type { Data } from '@strapi/types';\n\nconst DIRECTIONS = {\n UPWARD: 'upward',\n DOWNWARD: 'downward',\n} as const;\n\nconst DROP_SENSITIVITY = {\n REGULAR: 'regular',\n IMMEDIATE: 'immediate',\n} as const;\n\ninterface UseDragAndDropOptions<\n TIndex extends number | Array<number> = number,\n TItem extends { index: TIndex } = { index: TIndex },\n> extends UseKeyboardDragAndDropCallbacks<TIndex> {\n type?: string;\n index: TIndex;\n item?: TItem;\n onStart?: () => void;\n onEnd?: () => void;\n dropSensitivity?: (typeof DROP_SENSITIVITY)[keyof typeof DROP_SENSITIVITY];\n}\n\ntype Identifier = ReturnType<HandlerManager['getHandlerId']>;\n\ntype UseDragAndDropReturn<E extends Element = HTMLElement> = [\n props: {\n handlerId: Identifier;\n isDragging: boolean;\n handleKeyDown: <E extends Element>(event: React.KeyboardEvent<E>) => void;\n isOverDropTarget: boolean;\n direction: (typeof DIRECTIONS)[keyof typeof DIRECTIONS] | null;\n },\n objectRef: React.RefObject<E>,\n dropRef: ConnectDropTarget,\n dragRef: ConnectDragSource,\n dragPreviewRef: ConnectDragPreview,\n];\n\ntype DropCollectedProps = {\n handlerId: Identifier;\n isOver: boolean;\n};\n\n/**\n * A utility hook abstracting the general drag and drop hooks from react-dnd.\n * Centralising the same behaviours and by default offering keyboard support.\n */\nconst useDragAndDrop = <\n TIndex extends number | Array<number>,\n TItem extends { index: TIndex; id?: Data.ID; [key: string]: unknown } = {\n index: TIndex;\n [key: string]: unknown;\n },\n E extends Element = HTMLElement,\n>(\n active: boolean,\n {\n type = 'STRAPI_DND',\n index,\n item,\n onStart,\n onEnd,\n onGrabItem,\n onDropItem,\n onCancel,\n onMoveItem,\n dropSensitivity = DROP_SENSITIVITY.REGULAR,\n }: UseDragAndDropOptions<TIndex, TItem>\n): UseDragAndDropReturn<E> => {\n const objectRef = React.useRef<E>(null);\n\n const [{ handlerId, isOver }, dropRef] = useDrop<TItem, void, DropCollectedProps>({\n accept: type,\n collect(monitor) {\n return {\n handlerId: monitor.getHandlerId(),\n isOver: monitor.isOver({ shallow: true }),\n };\n },\n drop(item) {\n const draggedIndex = item.index;\n const newIndex = index;\n\n if (isOver && onDropItem) {\n onDropItem(draggedIndex, newIndex);\n }\n },\n hover(item, monitor) {\n if (!objectRef.current || !onMoveItem) {\n return;\n }\n\n const dragIndex = item.index;\n const newIndex = index;\n\n const hoverBoundingRect = objectRef.current?.getBoundingClientRect();\n const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;\n const clientOffset = monitor.getClientOffset();\n if (!clientOffset) return;\n\n const hoverClientY = clientOffset && clientOffset.y - hoverBoundingRect.top;\n if (typeof dragIndex === 'number' && typeof newIndex === 'number') {\n if (dragIndex === newIndex) {\n // Don't replace items with themselves\n return;\n }\n\n if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {\n // Dragging downwards\n if (dragIndex < newIndex && hoverClientY < hoverMiddleY) {\n return;\n }\n\n // Dragging upwards\n if (dragIndex > newIndex && hoverClientY > hoverMiddleY) {\n return;\n }\n }\n\n // Time to actually perform the action\n onMoveItem(newIndex, dragIndex);\n item.index = newIndex;\n } else {\n // Using numbers as indices doesn't work for nested list items with path like [1, 1, 0]\n if (Array.isArray(dragIndex) && Array.isArray(newIndex)) {\n // Indices comparison to find item position in nested list\n const minLength = Math.min(dragIndex.length, newIndex.length);\n let areEqual = true;\n let isLessThan = false;\n let isGreaterThan = false;\n\n for (let i = 0; i < minLength; i++) {\n if (dragIndex[i] < newIndex[i]) {\n isLessThan = true;\n areEqual = false;\n break;\n } else if (dragIndex[i] > newIndex[i]) {\n isGreaterThan = true;\n areEqual = false;\n break;\n }\n }\n\n // Don't replace items with themselves\n if (areEqual && dragIndex.length === newIndex.length) {\n return;\n }\n\n if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {\n // Dragging downwards\n if (isLessThan && !isGreaterThan && hoverClientY < hoverMiddleY) {\n return;\n }\n\n // Dragging upwards\n if (isGreaterThan && !isLessThan && hoverClientY > hoverMiddleY) {\n return;\n }\n }\n }\n\n onMoveItem(newIndex, dragIndex);\n item.index = newIndex;\n }\n },\n });\n\n const getDragDirection = (monitor: DragSourceMonitor<TItem, void>) => {\n if (\n monitor &&\n monitor.isDragging() &&\n !monitor.didDrop() &&\n monitor.getInitialClientOffset() &&\n monitor.getClientOffset()\n ) {\n const deltaY = monitor.getInitialClientOffset()!.y - monitor.getClientOffset()!.y;\n\n if (deltaY > 0) return DIRECTIONS.UPWARD;\n\n if (deltaY < 0) return DIRECTIONS.DOWNWARD;\n\n return null;\n }\n\n return null;\n };\n\n const [{ isDragging, direction }, dragRef, dragPreviewRef] = useDrag({\n type,\n item() {\n if (onStart) {\n onStart();\n }\n\n /**\n * This will be attached and it helps define the preview sizes\n * when a component is flexy e.g. Relations\n */\n const { width } = objectRef.current?.getBoundingClientRect() ?? {};\n\n return { index, width, ...item };\n },\n end() {\n if (onEnd) {\n onEnd();\n }\n },\n canDrag: active,\n /**\n * This is useful when the item is in a virtualized list.\n * However, if we don't have an ID then we want the libraries\n * defaults to take care of this.\n */\n isDragging: item?.id\n ? (monitor) => {\n return item.id === monitor.getItem().id;\n }\n : undefined,\n collect: (monitor) => ({\n isDragging: monitor.isDragging(),\n initialOffset: monitor.getInitialClientOffset(),\n currentOffset: monitor.getClientOffset(),\n direction: getDragDirection(monitor),\n }),\n });\n\n const handleKeyDown = useKeyboardDragAndDrop(active, index, {\n onGrabItem,\n onDropItem,\n onCancel,\n onMoveItem,\n });\n\n return [\n { handlerId, isDragging, handleKeyDown, isOverDropTarget: isOver, direction },\n objectRef,\n dropRef,\n dragRef,\n dragPreviewRef,\n ];\n};\n\nexport {\n useDragAndDrop,\n UseDragAndDropReturn,\n UseDragAndDropOptions,\n DIRECTIONS,\n DROP_SENSITIVITY,\n};\n"],"names":["ItemTypes","COMPONENT","EDIT_FIELD","FIELD","DYNAMIC_ZONE","RELATION","BLOCKS","useKeyboardDragAndDrop","active","index","onCancel","onDropItem","onGrabItem","onMoveItem","isSelected","setIsSelected","React","useState","handleMove","movement","handleDragClick","handleCancel","handleKeyDown","e","key","preventDefault","DIRECTIONS","UPWARD","DOWNWARD","DROP_SENSITIVITY","REGULAR","IMMEDIATE","useDragAndDrop","type","item","onStart","onEnd","dropSensitivity","objectRef","useRef","handlerId","isOver","dropRef","useDrop","accept","collect","monitor","getHandlerId","shallow","drop","draggedIndex","newIndex","hover","current","dragIndex","hoverBoundingRect","getBoundingClientRect","hoverMiddleY","bottom","top","clientOffset","getClientOffset","hoverClientY","y","Array","isArray","minLength","Math","min","length","areEqual","isLessThan","isGreaterThan","i","getDragDirection","isDragging","didDrop","getInitialClientOffset","deltaY","direction","dragRef","dragPreviewRef","useDrag","width","end","canDrag","id","getItem","undefined","initialOffset","currentOffset","isOverDropTarget"],"mappings":";;;MAAaA,SAAY,GAAA;IACvBC,SAAW,EAAA,WAAA;IACXC,UAAY,EAAA,WAAA;IACZC,KAAO,EAAA,OAAA;IACPC,YAAc,EAAA,aAAA;IACdC,QAAU,EAAA,UAAA;IACVC,MAAQ,EAAA;AACV;;ACEA;;;;;AAKC,IACM,MAAMC,sBAAyB,GAAA,CACpCC,QACAC,KACA,EAAA,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,EAAEC,UAAU,EAA2C,GAAA;AAEzF,IAAA,MAAM,CAACC,UAAYC,EAAAA,aAAAA,CAAc,GAAGC,KAAAA,CAAMC,QAAQ,CAAC,KAAA,CAAA;AAEnD,IAAA,MAAMC,aAAa,CAACC,QAAAA,GAAAA;AAClB,QAAA,IAAI,CAACL,UAAY,EAAA;AACf,YAAA;AACF;QACA,IAAI,OAAOL,KAAU,KAAA,QAAA,IAAYI,UAAY,EAAA;AAC3C,YAAA,IAAIM,aAAa,IAAM,EAAA;AACrBN,gBAAAA,UAAAA,CAAYJ,QAAQ,CAAcA,EAAAA,KAAAA,CAAAA;aAC7B,MAAA,IAAIU,aAAa,MAAQ,EAAA;AAC9BN,gBAAAA,UAAAA,CAAYJ,QAAQ,CAAcA,EAAAA,KAAAA,CAAAA;AACpC;AACF;AACF,KAAA;AAEA,IAAA,MAAMW,eAAkB,GAAA,IAAA;AACtB,QAAA,IAAIN,UAAY,EAAA;AACd,YAAA,IAAIH,UAAY,EAAA;gBACdA,UAAWF,CAAAA,KAAAA,CAAAA;AACb;YACAM,aAAc,CAAA,KAAA,CAAA;SACT,MA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