@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
@@ -0,0 +1,271 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var reactDnd = require('react-dnd');
5
+
6
+ function _interopNamespaceDefault(e) {
7
+ var n = Object.create(null);
8
+ if (e) {
9
+ Object.keys(e).forEach(function (k) {
10
+ if (k !== 'default') {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () { return e[k]; }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n.default = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
24
+
25
+ const ItemTypes = {
26
+ COMPONENT: 'component',
27
+ EDIT_FIELD: 'editField',
28
+ FIELD: 'field',
29
+ DYNAMIC_ZONE: 'dynamicZone',
30
+ RELATION: 'relation',
31
+ BLOCKS: 'blocks'
32
+ };
33
+
34
+ /**
35
+ * Utility hook designed to implement keyboard accessibile drag and drop by
36
+ * returning an onKeyDown handler to be passed to the drag icon button.
37
+ *
38
+ * @internal - You should use `useDragAndDrop` instead.
39
+ */ const useKeyboardDragAndDrop = (active, index, { onCancel, onDropItem, onGrabItem, onMoveItem })=>{
40
+ const [isSelected, setIsSelected] = React__namespace.useState(false);
41
+ const handleMove = (movement)=>{
42
+ if (!isSelected) {
43
+ return;
44
+ }
45
+ if (typeof index === 'number' && onMoveItem) {
46
+ if (movement === 'UP') {
47
+ onMoveItem(index - 1, index);
48
+ } else if (movement === 'DOWN') {
49
+ onMoveItem(index + 1, index);
50
+ }
51
+ }
52
+ };
53
+ const handleDragClick = ()=>{
54
+ if (isSelected) {
55
+ if (onDropItem) {
56
+ onDropItem(index);
57
+ }
58
+ setIsSelected(false);
59
+ } else {
60
+ if (onGrabItem) {
61
+ onGrabItem(index);
62
+ }
63
+ setIsSelected(true);
64
+ }
65
+ };
66
+ const handleCancel = ()=>{
67
+ if (isSelected) {
68
+ setIsSelected(false);
69
+ if (onCancel) {
70
+ onCancel(index);
71
+ }
72
+ }
73
+ };
74
+ const handleKeyDown = (e)=>{
75
+ if (!active) {
76
+ return;
77
+ }
78
+ if (e.key === 'Tab' && !isSelected) {
79
+ return;
80
+ }
81
+ e.preventDefault();
82
+ switch(e.key){
83
+ case ' ':
84
+ case 'Enter':
85
+ handleDragClick();
86
+ break;
87
+ case 'Escape':
88
+ handleCancel();
89
+ break;
90
+ case 'ArrowDown':
91
+ case 'ArrowRight':
92
+ handleMove('DOWN');
93
+ break;
94
+ case 'ArrowUp':
95
+ case 'ArrowLeft':
96
+ handleMove('UP');
97
+ break;
98
+ }
99
+ };
100
+ return handleKeyDown;
101
+ };
102
+
103
+ const DIRECTIONS = {
104
+ UPWARD: 'upward',
105
+ DOWNWARD: 'downward'
106
+ };
107
+ const DROP_SENSITIVITY = {
108
+ REGULAR: 'regular',
109
+ IMMEDIATE: 'immediate'
110
+ };
111
+ /**
112
+ * A utility hook abstracting the general drag and drop hooks from react-dnd.
113
+ * Centralising the same behaviours and by default offering keyboard support.
114
+ */ const useDragAndDrop = (active, { type = 'STRAPI_DND', index, item, onStart, onEnd, onGrabItem, onDropItem, onCancel, onMoveItem, dropSensitivity = DROP_SENSITIVITY.REGULAR })=>{
115
+ const objectRef = React__namespace.useRef(null);
116
+ const [{ handlerId, isOver }, dropRef] = reactDnd.useDrop({
117
+ accept: type,
118
+ collect (monitor) {
119
+ return {
120
+ handlerId: monitor.getHandlerId(),
121
+ isOver: monitor.isOver({
122
+ shallow: true
123
+ })
124
+ };
125
+ },
126
+ drop (item) {
127
+ const draggedIndex = item.index;
128
+ const newIndex = index;
129
+ if (isOver && onDropItem) {
130
+ onDropItem(draggedIndex, newIndex);
131
+ }
132
+ },
133
+ hover (item, monitor) {
134
+ if (!objectRef.current || !onMoveItem) {
135
+ return;
136
+ }
137
+ const dragIndex = item.index;
138
+ const newIndex = index;
139
+ const hoverBoundingRect = objectRef.current?.getBoundingClientRect();
140
+ const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;
141
+ const clientOffset = monitor.getClientOffset();
142
+ if (!clientOffset) return;
143
+ const hoverClientY = clientOffset && clientOffset.y - hoverBoundingRect.top;
144
+ if (typeof dragIndex === 'number' && typeof newIndex === 'number') {
145
+ if (dragIndex === newIndex) {
146
+ // Don't replace items with themselves
147
+ return;
148
+ }
149
+ if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {
150
+ // Dragging downwards
151
+ if (dragIndex < newIndex && hoverClientY < hoverMiddleY) {
152
+ return;
153
+ }
154
+ // Dragging upwards
155
+ if (dragIndex > newIndex && hoverClientY > hoverMiddleY) {
156
+ return;
157
+ }
158
+ }
159
+ // Time to actually perform the action
160
+ onMoveItem(newIndex, dragIndex);
161
+ item.index = newIndex;
162
+ } else {
163
+ // Using numbers as indices doesn't work for nested list items with path like [1, 1, 0]
164
+ if (Array.isArray(dragIndex) && Array.isArray(newIndex)) {
165
+ // Indices comparison to find item position in nested list
166
+ const minLength = Math.min(dragIndex.length, newIndex.length);
167
+ let areEqual = true;
168
+ let isLessThan = false;
169
+ let isGreaterThan = false;
170
+ for(let i = 0; i < minLength; i++){
171
+ if (dragIndex[i] < newIndex[i]) {
172
+ isLessThan = true;
173
+ areEqual = false;
174
+ break;
175
+ } else if (dragIndex[i] > newIndex[i]) {
176
+ isGreaterThan = true;
177
+ areEqual = false;
178
+ break;
179
+ }
180
+ }
181
+ // Don't replace items with themselves
182
+ if (areEqual && dragIndex.length === newIndex.length) {
183
+ return;
184
+ }
185
+ if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {
186
+ // Dragging downwards
187
+ if (isLessThan && !isGreaterThan && hoverClientY < hoverMiddleY) {
188
+ return;
189
+ }
190
+ // Dragging upwards
191
+ if (isGreaterThan && !isLessThan && hoverClientY > hoverMiddleY) {
192
+ return;
193
+ }
194
+ }
195
+ }
196
+ onMoveItem(newIndex, dragIndex);
197
+ item.index = newIndex;
198
+ }
199
+ }
200
+ });
201
+ const getDragDirection = (monitor)=>{
202
+ if (monitor && monitor.isDragging() && !monitor.didDrop() && monitor.getInitialClientOffset() && monitor.getClientOffset()) {
203
+ const deltaY = monitor.getInitialClientOffset().y - monitor.getClientOffset().y;
204
+ if (deltaY > 0) return DIRECTIONS.UPWARD;
205
+ if (deltaY < 0) return DIRECTIONS.DOWNWARD;
206
+ return null;
207
+ }
208
+ return null;
209
+ };
210
+ const [{ isDragging, direction }, dragRef, dragPreviewRef] = reactDnd.useDrag({
211
+ type,
212
+ item () {
213
+ if (onStart) {
214
+ onStart();
215
+ }
216
+ /**
217
+ * This will be attached and it helps define the preview sizes
218
+ * when a component is flexy e.g. Relations
219
+ */ const { width } = objectRef.current?.getBoundingClientRect() ?? {};
220
+ return {
221
+ index,
222
+ width,
223
+ ...item
224
+ };
225
+ },
226
+ end () {
227
+ if (onEnd) {
228
+ onEnd();
229
+ }
230
+ },
231
+ canDrag: active,
232
+ /**
233
+ * This is useful when the item is in a virtualized list.
234
+ * However, if we don't have an ID then we want the libraries
235
+ * defaults to take care of this.
236
+ */ isDragging: item?.id ? (monitor)=>{
237
+ return item.id === monitor.getItem().id;
238
+ } : undefined,
239
+ collect: (monitor)=>({
240
+ isDragging: monitor.isDragging(),
241
+ initialOffset: monitor.getInitialClientOffset(),
242
+ currentOffset: monitor.getClientOffset(),
243
+ direction: getDragDirection(monitor)
244
+ })
245
+ });
246
+ const handleKeyDown = useKeyboardDragAndDrop(active, index, {
247
+ onGrabItem,
248
+ onDropItem,
249
+ onCancel,
250
+ onMoveItem
251
+ });
252
+ return [
253
+ {
254
+ handlerId,
255
+ isDragging,
256
+ handleKeyDown,
257
+ isOverDropTarget: isOver,
258
+ direction
259
+ },
260
+ objectRef,
261
+ dropRef,
262
+ dragRef,
263
+ dragPreviewRef
264
+ ];
265
+ };
266
+
267
+ exports.DIRECTIONS = DIRECTIONS;
268
+ exports.DROP_SENSITIVITY = DROP_SENSITIVITY;
269
+ exports.ItemTypes = ItemTypes;
270
+ exports.useDragAndDrop = useDragAndDrop;
271
+ //# sourceMappingURL=useDragAndDrop-gcqEJMnO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDragAndDrop-gcqEJMnO.js","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;AAC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A,EAAAA;AACF;AACF,SAAA;QACAiD,OAAS7E,EAAAA,MAAAA;AACT;;;;QAKAmE,UAAAA,EAAYzC,IAAMoD,EAAAA,EAAAA,GACd,CAACxC,OAAAA,GAAAA;AACC,YAAA,OAAOZ,KAAKoD,EAAE,KAAKxC,OAAQyC,CAAAA,OAAO,GAAGD,EAAE;SAEzCE,GAAAA,SAAAA;QACJ3C,OAAS,EAAA,CAACC,WAAa;AACrB6B,gBAAAA,UAAAA,EAAY7B,QAAQ6B,UAAU,EAAA;AAC9Bc,gBAAAA,aAAAA,EAAe3C,QAAQ+B,sBAAsB,EAAA;AAC7Ca,gBAAAA,aAAAA,EAAe5C,QAAQe,eAAe,EAAA;AACtCkB,gBAAAA,SAAAA,EAAWL,gBAAiB5B,CAAAA,OAAAA;aAC9B;AACF,KAAA,CAAA;IAEA,MAAMxB,aAAAA,GAAgBf,sBAAuBC,CAAAA,MAAAA,EAAQC,KAAO,EAAA;AAC1DG,QAAAA,UAAAA;AACAD,QAAAA,UAAAA;AACAD,QAAAA,QAAAA;AACAG,QAAAA;AACF,KAAA,CAAA;IAEA,OAAO;AACL,QAAA;AAAE2B,YAAAA,SAAAA;AAAWmC,YAAAA,UAAAA;AAAYrD,YAAAA,aAAAA;YAAeqE,gBAAkBlD,EAAAA,MAAAA;AAAQsC,YAAAA;AAAU,SAAA;AAC5EzC,QAAAA,SAAAA;AACAI,QAAAA,OAAAA;AACAsC,QAAAA,OAAAA;AACAC,QAAAA;AACD,KAAA;AACH;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ import { useRef, useEffect } from 'react';
2
+
3
+ const prefixFileUrlWithBackendUrl = (fileURL)=>{
4
+ return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;
5
+ };
6
+
7
+ const usePrev = (value)=>{
8
+ const ref = useRef();
9
+ useEffect(()=>{
10
+ ref.current = value;
11
+ }, [
12
+ value
13
+ ]);
14
+ return ref.current;
15
+ };
16
+
17
+ export { prefixFileUrlWithBackendUrl as p, usePrev as u };
18
+ //# sourceMappingURL=usePrev-Bjw2dhmq.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrev-Bjw2dhmq.mjs","sources":["../../../admin/src/utils/urls.ts","../../../admin/src/hooks/usePrev.ts"],"sourcesContent":["const prefixFileUrlWithBackendUrl = (fileURL?: string): string | undefined => {\n return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;\n};\n\nexport { prefixFileUrlWithBackendUrl };\n","import { useEffect, useRef } from 'react';\n\nexport const usePrev = <T>(value: T): T | undefined => {\n const ref = useRef<T>();\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n};\n"],"names":["prefixFileUrlWithBackendUrl","fileURL","startsWith","window","strapi","backendURL","usePrev","value","ref","useRef","useEffect","current"],"mappings":";;AAAA,MAAMA,8BAA8B,CAACC,OAAAA,GAAAA;AACnC,IAAA,OAAO,CAAC,CAACA,OAAAA,IAAWA,OAAQC,CAAAA,UAAU,CAAC,GAAO,CAAA,GAAA,CAAC,EAAEC,MAAAA,CAAOC,MAAM,CAACC,UAAU,CAAC,EAAEJ,OAAAA,CAAQ,CAAC,GAAGA,OAAAA;AAC1F;;ACAO,MAAMK,UAAU,CAAIC,KAAAA,GAAAA;AACzB,IAAA,MAAMC,GAAMC,GAAAA,MAAAA,EAAAA;IAEZC,SAAU,CAAA,IAAA;AACRF,QAAAA,GAAAA,CAAIG,OAAO,GAAGJ,KAAAA;KACb,EAAA;AAACA,QAAAA;AAAM,KAAA,CAAA;AAEV,IAAA,OAAOC,IAAIG,OAAO;AACpB;;;;"}
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ const prefixFileUrlWithBackendUrl = (fileURL)=>{
6
+ return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;
7
+ };
8
+
9
+ const usePrev = (value)=>{
10
+ const ref = React.useRef();
11
+ React.useEffect(()=>{
12
+ ref.current = value;
13
+ }, [
14
+ value
15
+ ]);
16
+ return ref.current;
17
+ };
18
+
19
+ exports.prefixFileUrlWithBackendUrl = prefixFileUrlWithBackendUrl;
20
+ exports.usePrev = usePrev;
21
+ //# sourceMappingURL=usePrev-DIYl-IAL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrev-DIYl-IAL.js","sources":["../../../admin/src/utils/urls.ts","../../../admin/src/hooks/usePrev.ts"],"sourcesContent":["const prefixFileUrlWithBackendUrl = (fileURL?: string): string | undefined => {\n return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;\n};\n\nexport { prefixFileUrlWithBackendUrl };\n","import { useEffect, useRef } from 'react';\n\nexport const usePrev = <T>(value: T): T | undefined => {\n const ref = useRef<T>();\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n};\n"],"names":["prefixFileUrlWithBackendUrl","fileURL","startsWith","window","strapi","backendURL","usePrev","value","ref","useRef","useEffect","current"],"mappings":";;;;AAAA,MAAMA,8BAA8B,CAACC,OAAAA,GAAAA;AACnC,IAAA,OAAO,CAAC,CAACA,OAAAA,IAAWA,OAAQC,CAAAA,UAAU,CAAC,GAAO,CAAA,GAAA,CAAC,EAAEC,MAAAA,CAAOC,MAAM,CAACC,UAAU,CAAC,EAAEJ,OAAAA,CAAQ,CAAC,GAAGA,OAAAA;AAC1F;;ACAO,MAAMK,UAAU,CAAIC,KAAAA,GAAAA;AACzB,IAAA,MAAMC,GAAMC,GAAAA,YAAAA,EAAAA;IAEZC,eAAU,CAAA,IAAA;AACRF,QAAAA,GAAAA,CAAIG,OAAO,GAAGJ,KAAAA;KACb,EAAA;AAACA,QAAAA;AAAM,KAAA,CAAA;AAEV,IAAA,OAAOC,IAAIG,OAAO;AACpB;;;;;"}
@@ -0,0 +1,112 @@
1
+ 'use strict';
2
+
3
+ var groups = "Nhóm";
4
+ var pageNotFound = "Không Tìm Thấy Trang";
5
+ var vi = {
6
+ "EditRelations.title": "Dữ Liệu Quan Hệ",
7
+ "components.AddFilterCTA.add": "Lọc",
8
+ "components.AddFilterCTA.hide": "Lọc",
9
+ "components.DraggableAttr.edit": "Nhấn để chỉnh sửa",
10
+ "components.EmptyAttributesBlock.button": "Đến trang cài đặt",
11
+ "components.EmptyAttributesBlock.description": "Bạn có thể thay đổi cài đặt của bạn",
12
+ "components.FilterOptions.button.apply": "Áp dụng",
13
+ "components.FiltersPickWrapper.PluginHeader.actions.apply": "Áp dụng",
14
+ "components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Xóa tất cả",
15
+ "components.FiltersPickWrapper.PluginHeader.description": "Cài đặt các điều kiện để áp dụng cho việc lọc các bản ghi",
16
+ "components.FiltersPickWrapper.PluginHeader.title.filter": "Các bộ lọc",
17
+ "components.FiltersPickWrapper.hide": "Ẩn đi",
18
+ "components.LimitSelect.itemsPerPage": "Số lượng bản ghi trong trang",
19
+ "components.Search.placeholder": "Tìm một bản ghi...",
20
+ "components.TableDelete.delete": "Xóa tất cả",
21
+ "components.TableDelete.deleteSelected": "Xóa đã chọn",
22
+ "components.TableEmpty.withFilters": "Không có {contentType} với bộ lọc được dùng",
23
+ "components.TableEmpty.withSearch": "Không có {contentType} tương ứng với tìm kiếm ({search})...",
24
+ "components.TableEmpty.withoutFilter": "Không có {contentType}...",
25
+ "containers.Edit.Link.Layout": "Cấu hình bố cục",
26
+ "containers.Edit.addAnItem": "Thêm một bản ghi...",
27
+ "containers.Edit.clickToJump": "Nhấn để nhảy vào bản ghi",
28
+ "containers.Edit.delete": "Xóa",
29
+ "containers.Edit.editing": "Đăng sửa...",
30
+ "containers.Edit.pluginHeader.title.new": "Tạo một Bản ghi",
31
+ "containers.Edit.reset": "Làm lại",
32
+ "containers.Edit.returnList": "Trở về danh sách",
33
+ "containers.Edit.seeDetails": "Chi tiết",
34
+ "containers.Edit.submit": "Lưu",
35
+ "containers.EditView.notification.errors": "Bảng nhập liệu có vài lỗi",
36
+ "containers.Home.introduction": "Để chỉnh sửa các bản ghi của bạn, đi đến liên kết ở menu bên trái. Plugin này chưa có cách thích hợp để chỉnh sửa các cài đặt và nó vẫn đang được phát triển.",
37
+ "containers.Home.pluginHeaderDescription": "Quản lý các bản ghi thông qua một giao diện mạnh và đẹp.",
38
+ "containers.Home.pluginHeaderTitle": "Quản Lý Nội Dung",
39
+ "containers.List.errorFetchRecords": "Lỗi",
40
+ "containers.list.displayedFields": "Các trường đã được trình bày",
41
+ "containers.SettingPage.attributes": "Các trường thuộc tính",
42
+ "containers.SettingPage.attributes.description": "Định nghĩa thứ tự các thuộc tính",
43
+ "containers.SettingPage.editSettings.description": "Kéo & thả các trường để xây dựng bố cục",
44
+ "containers.SettingPage.editSettings.entry.title": "Tên bản ghi",
45
+ "containers.SettingPage.editSettings.entry.title.description": "Cài đặt trường được trình bày trong bản ghi của bạn",
46
+ "containers.SettingPage.editSettings.title": "Chỉnh sửa hiển thị (các cài đặt)",
47
+ "containers.SettingPage.layout": "Bố cục",
48
+ "containers.SettingPage.listSettings.title": "Hiển thị danh sách (các cài đặt)",
49
+ "containers.SettingPage.settings": "Các cài đặt",
50
+ "containers.SettingViewModel.pluginHeader.title": "Quản Lý Nội Dung - {name}",
51
+ "containers.SettingsPage.Block.contentType.description": "Cấu hình các cài đặt riêng",
52
+ "containers.SettingsPage.Block.generalSettings.title": "Chung",
53
+ "containers.SettingsView.list.title": "Các cấu hình về Trình bày",
54
+ "emptyAttributes.title": "Chưa có trường nào hết",
55
+ "error.attribute.key.taken": "Giá trị này đã tồn tại",
56
+ "error.attribute.sameKeyAndName": "Không thể bằng nhau",
57
+ "error.attribute.taken": "Tên trường này đã tồn tại",
58
+ "error.contentTypeName.taken": "Tên này đã tồn tại",
59
+ "error.model.fetch": "Một lỗi đã xảy ra trong khi lấy về cấu hình nội dung.",
60
+ "error.record.create": "Một lỗi đã xảy ra trong khi tạo bản ghi.",
61
+ "error.record.delete": "Một lỗi đã xảy ra trong khi xoá bản ghi.",
62
+ "error.record.fetch": "Một lỗi đã xảy ra trong khi lấy về bản ghi.",
63
+ "error.record.update": "Một lỗi đã xảy ra trong khi cập nhật bản ghi.",
64
+ "error.records.count": "Một lỗi đã xảy ra trong khi lấy về số lượng bản ghi.",
65
+ "error.records.fetch": "Một lỗi đã xảy ra trong khi lấy về các bản ghi.",
66
+ "error.schema.generation": "Một lỗi đã xảy ra trong khi quá trình tạo ra lược đồ.",
67
+ "error.validation.json": "Đây không phải là định dạng JSON",
68
+ "error.validation.max": "Giá trị quá cao.",
69
+ "error.validation.maxLength": "Giá trị quá dài.",
70
+ "error.validation.min": "Giá trị quá thấp.",
71
+ "error.validation.minLength": "Giá trị quá ngắn.",
72
+ "error.validation.minSupMax": "Không thể là trên mũ",
73
+ "error.validation.regex": "Giá trị không khới với regex.",
74
+ "error.validation.required": "Giá trị này bắt buộc.",
75
+ "form.Input.bulkActions": "Kích hoạt hoạt động gộp",
76
+ "form.Input.defaultSort": "Thuộc tính sắp xếp mặc định",
77
+ "form.Input.description": "Mô tả",
78
+ "form.Input.description.placeholder": "Tên hiển thị trong hồ sơ",
79
+ "form.Input.editable": "Trường chỉnh sửa được",
80
+ "form.Input.filters": "Kích hoạt các bộ lọc",
81
+ "form.Input.label": "Nhãn",
82
+ "form.Input.label.inputDescription": "Giá trị này ghi đè lên nhãn được trình bày trong phần đầu của bảng",
83
+ "form.Input.pageEntries": "Bản ghi trong trang",
84
+ "form.Input.placeholder": "Chỗ chờ giá trị",
85
+ "form.Input.placeholder.placeholder": "Giá trị tuyệt vời của tôi",
86
+ "form.Input.search": "Kích hoạt tìm kiếm",
87
+ "form.Input.search.field": "Kích hoạt tìm kiếm cho trường này",
88
+ "form.Input.sort.field": "Kích hoạt sắp xếp trên trường này",
89
+ "form.Input.wysiwyg": "Trình bày như là WYSIWYG",
90
+ "global.displayedFields": "Các Trường Đã Được Trình Bày",
91
+ groups: groups,
92
+ "groups.numbered": "Nhóm ({number})",
93
+ "notification.error.displayedFields": "Bạn cần trình bày ít nhất một trường",
94
+ "notification.error.relationship.fetch": "Một lỗi đã xảy ra trong khi lấy về mối quan hệ.",
95
+ "notification.info.SettingPage.disableSort": "Bạn cần có một thuộc tính được phép sắp xếp",
96
+ "notification.info.minimumFields": "Bạn cần hiển thị ít nhất một trường",
97
+ "notification.upload.error": "Một lỗi đã xảy ra trong khi tải lên các tập tin của bạn",
98
+ pageNotFound: pageNotFound,
99
+ "plugin.description.long": "Cách nhanh để xem, sửa và xoá dữ liệu trong cơ sở dữ liệu của bạn.",
100
+ "plugin.description.short": "Cách nhanh để xem, sửa và xoá dữ liệu trong cơ sở dữ liệu của bạn.",
101
+ "popUpWarning.bodyMessage.contentType.delete": "Bạn có chắc là muốn xoá bản ghi này không?",
102
+ "popUpWarning.bodyMessage.contentType.delete.all": "Bạn có chắc là muốn xoá các bản ghi này không?",
103
+ "popUpWarning.warning.cancelAllSettings": "Bạn có chắc là muốn hủy bỏ các thay đổi của bạn?",
104
+ "popUpWarning.warning.updateAllSettings": "Nó sẽ thay đổi tất cả cài đặt của bạn",
105
+ "success.record.delete": "Đã xoá",
106
+ "success.record.save": "Đã lưu"
107
+ };
108
+
109
+ exports.default = vi;
110
+ exports.groups = groups;
111
+ exports.pageNotFound = pageNotFound;
112
+ //# sourceMappingURL=vi-BGr1X_HZ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vi-CJlYDheJ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"vi-BGr1X_HZ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,108 @@
1
+ var groups = "Nhóm";
2
+ var pageNotFound = "Không Tìm Thấy Trang";
3
+ var vi = {
4
+ "EditRelations.title": "Dữ Liệu Quan Hệ",
5
+ "components.AddFilterCTA.add": "Lọc",
6
+ "components.AddFilterCTA.hide": "Lọc",
7
+ "components.DraggableAttr.edit": "Nhấn để chỉnh sửa",
8
+ "components.EmptyAttributesBlock.button": "Đến trang cài đặt",
9
+ "components.EmptyAttributesBlock.description": "Bạn có thể thay đổi cài đặt của bạn",
10
+ "components.FilterOptions.button.apply": "Áp dụng",
11
+ "components.FiltersPickWrapper.PluginHeader.actions.apply": "Áp dụng",
12
+ "components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Xóa tất cả",
13
+ "components.FiltersPickWrapper.PluginHeader.description": "Cài đặt các điều kiện để áp dụng cho việc lọc các bản ghi",
14
+ "components.FiltersPickWrapper.PluginHeader.title.filter": "Các bộ lọc",
15
+ "components.FiltersPickWrapper.hide": "Ẩn đi",
16
+ "components.LimitSelect.itemsPerPage": "Số lượng bản ghi trong trang",
17
+ "components.Search.placeholder": "Tìm một bản ghi...",
18
+ "components.TableDelete.delete": "Xóa tất cả",
19
+ "components.TableDelete.deleteSelected": "Xóa đã chọn",
20
+ "components.TableEmpty.withFilters": "Không có {contentType} với bộ lọc được dùng",
21
+ "components.TableEmpty.withSearch": "Không có {contentType} tương ứng với tìm kiếm ({search})...",
22
+ "components.TableEmpty.withoutFilter": "Không có {contentType}...",
23
+ "containers.Edit.Link.Layout": "Cấu hình bố cục",
24
+ "containers.Edit.addAnItem": "Thêm một bản ghi...",
25
+ "containers.Edit.clickToJump": "Nhấn để nhảy vào bản ghi",
26
+ "containers.Edit.delete": "Xóa",
27
+ "containers.Edit.editing": "Đăng sửa...",
28
+ "containers.Edit.pluginHeader.title.new": "Tạo một Bản ghi",
29
+ "containers.Edit.reset": "Làm lại",
30
+ "containers.Edit.returnList": "Trở về danh sách",
31
+ "containers.Edit.seeDetails": "Chi tiết",
32
+ "containers.Edit.submit": "Lưu",
33
+ "containers.EditView.notification.errors": "Bảng nhập liệu có vài lỗi",
34
+ "containers.Home.introduction": "Để chỉnh sửa các bản ghi của bạn, đi đến liên kết ở menu bên trái. Plugin này chưa có cách thích hợp để chỉnh sửa các cài đặt và nó vẫn đang được phát triển.",
35
+ "containers.Home.pluginHeaderDescription": "Quản lý các bản ghi thông qua một giao diện mạnh và đẹp.",
36
+ "containers.Home.pluginHeaderTitle": "Quản Lý Nội Dung",
37
+ "containers.List.errorFetchRecords": "Lỗi",
38
+ "containers.list.displayedFields": "Các trường đã được trình bày",
39
+ "containers.SettingPage.attributes": "Các trường thuộc tính",
40
+ "containers.SettingPage.attributes.description": "Định nghĩa thứ tự các thuộc tính",
41
+ "containers.SettingPage.editSettings.description": "Kéo & thả các trường để xây dựng bố cục",
42
+ "containers.SettingPage.editSettings.entry.title": "Tên bản ghi",
43
+ "containers.SettingPage.editSettings.entry.title.description": "Cài đặt trường được trình bày trong bản ghi của bạn",
44
+ "containers.SettingPage.editSettings.title": "Chỉnh sửa hiển thị (các cài đặt)",
45
+ "containers.SettingPage.layout": "Bố cục",
46
+ "containers.SettingPage.listSettings.title": "Hiển thị danh sách (các cài đặt)",
47
+ "containers.SettingPage.settings": "Các cài đặt",
48
+ "containers.SettingViewModel.pluginHeader.title": "Quản Lý Nội Dung - {name}",
49
+ "containers.SettingsPage.Block.contentType.description": "Cấu hình các cài đặt riêng",
50
+ "containers.SettingsPage.Block.generalSettings.title": "Chung",
51
+ "containers.SettingsView.list.title": "Các cấu hình về Trình bày",
52
+ "emptyAttributes.title": "Chưa có trường nào hết",
53
+ "error.attribute.key.taken": "Giá trị này đã tồn tại",
54
+ "error.attribute.sameKeyAndName": "Không thể bằng nhau",
55
+ "error.attribute.taken": "Tên trường này đã tồn tại",
56
+ "error.contentTypeName.taken": "Tên này đã tồn tại",
57
+ "error.model.fetch": "Một lỗi đã xảy ra trong khi lấy về cấu hình nội dung.",
58
+ "error.record.create": "Một lỗi đã xảy ra trong khi tạo bản ghi.",
59
+ "error.record.delete": "Một lỗi đã xảy ra trong khi xoá bản ghi.",
60
+ "error.record.fetch": "Một lỗi đã xảy ra trong khi lấy về bản ghi.",
61
+ "error.record.update": "Một lỗi đã xảy ra trong khi cập nhật bản ghi.",
62
+ "error.records.count": "Một lỗi đã xảy ra trong khi lấy về số lượng bản ghi.",
63
+ "error.records.fetch": "Một lỗi đã xảy ra trong khi lấy về các bản ghi.",
64
+ "error.schema.generation": "Một lỗi đã xảy ra trong khi quá trình tạo ra lược đồ.",
65
+ "error.validation.json": "Đây không phải là định dạng JSON",
66
+ "error.validation.max": "Giá trị quá cao.",
67
+ "error.validation.maxLength": "Giá trị quá dài.",
68
+ "error.validation.min": "Giá trị quá thấp.",
69
+ "error.validation.minLength": "Giá trị quá ngắn.",
70
+ "error.validation.minSupMax": "Không thể là trên mũ",
71
+ "error.validation.regex": "Giá trị không khới với regex.",
72
+ "error.validation.required": "Giá trị này bắt buộc.",
73
+ "form.Input.bulkActions": "Kích hoạt hoạt động gộp",
74
+ "form.Input.defaultSort": "Thuộc tính sắp xếp mặc định",
75
+ "form.Input.description": "Mô tả",
76
+ "form.Input.description.placeholder": "Tên hiển thị trong hồ sơ",
77
+ "form.Input.editable": "Trường chỉnh sửa được",
78
+ "form.Input.filters": "Kích hoạt các bộ lọc",
79
+ "form.Input.label": "Nhãn",
80
+ "form.Input.label.inputDescription": "Giá trị này ghi đè lên nhãn được trình bày trong phần đầu của bảng",
81
+ "form.Input.pageEntries": "Bản ghi trong trang",
82
+ "form.Input.placeholder": "Chỗ chờ giá trị",
83
+ "form.Input.placeholder.placeholder": "Giá trị tuyệt vời của tôi",
84
+ "form.Input.search": "Kích hoạt tìm kiếm",
85
+ "form.Input.search.field": "Kích hoạt tìm kiếm cho trường này",
86
+ "form.Input.sort.field": "Kích hoạt sắp xếp trên trường này",
87
+ "form.Input.wysiwyg": "Trình bày như là WYSIWYG",
88
+ "global.displayedFields": "Các Trường Đã Được Trình Bày",
89
+ groups: groups,
90
+ "groups.numbered": "Nhóm ({number})",
91
+ "notification.error.displayedFields": "Bạn cần trình bày ít nhất một trường",
92
+ "notification.error.relationship.fetch": "Một lỗi đã xảy ra trong khi lấy về mối quan hệ.",
93
+ "notification.info.SettingPage.disableSort": "Bạn cần có một thuộc tính được phép sắp xếp",
94
+ "notification.info.minimumFields": "Bạn cần hiển thị ít nhất một trường",
95
+ "notification.upload.error": "Một lỗi đã xảy ra trong khi tải lên các tập tin của bạn",
96
+ pageNotFound: pageNotFound,
97
+ "plugin.description.long": "Cách nhanh để xem, sửa và xoá dữ liệu trong cơ sở dữ liệu của bạn.",
98
+ "plugin.description.short": "Cách nhanh để xem, sửa và xoá dữ liệu trong cơ sở dữ liệu của bạn.",
99
+ "popUpWarning.bodyMessage.contentType.delete": "Bạn có chắc là muốn xoá bản ghi này không?",
100
+ "popUpWarning.bodyMessage.contentType.delete.all": "Bạn có chắc là muốn xoá các bản ghi này không?",
101
+ "popUpWarning.warning.cancelAllSettings": "Bạn có chắc là muốn hủy bỏ các thay đổi của bạn?",
102
+ "popUpWarning.warning.updateAllSettings": "Nó sẽ thay đổi tất cả cài đặt của bạn",
103
+ "success.record.delete": "Đã xoá",
104
+ "success.record.save": "Đã lưu"
105
+ };
106
+
107
+ export { vi as default, groups, pageNotFound };
108
+ //# sourceMappingURL=vi-CvBGlTjr.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"vi-DUXIk_fw.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"vi-CvBGlTjr.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}