@strapi/content-manager 0.0.0-experimental.e9122b401c96877b6707775c4f893660eab93ae3 → 0.0.0-experimental.eb2d102c03f0984bece7258f6e0e8ab9ee39c82d

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 (498) 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-BGBNQxFJ.js +299 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-BGBNQxFJ.js.map +1 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-DKtL-tec.mjs +277 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-DKtL-tec.mjs.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-KDwSFRyn.mjs +159 -0
  14. package/dist/admin/chunks/EditConfigurationPage-KDwSFRyn.mjs.map +1 -0
  15. package/dist/admin/chunks/EditConfigurationPage-yliOxLUv.js +181 -0
  16. package/dist/admin/chunks/EditConfigurationPage-yliOxLUv.js.map +1 -0
  17. package/dist/admin/chunks/EditViewPage-BAI2r49P.mjs +311 -0
  18. package/dist/admin/chunks/EditViewPage-BAI2r49P.mjs.map +1 -0
  19. package/dist/admin/chunks/EditViewPage-DpvonssD.js +334 -0
  20. package/dist/admin/chunks/EditViewPage-DpvonssD.js.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-BrzQyDxU.mjs +955 -0
  26. package/dist/admin/chunks/Form-BrzQyDxU.mjs.map +1 -0
  27. package/dist/admin/chunks/Form-XD_sf25E.js +978 -0
  28. package/dist/admin/chunks/Form-XD_sf25E.js.map +1 -0
  29. package/dist/admin/chunks/History-C-_o7tz8.js +1380 -0
  30. package/dist/admin/chunks/History-C-_o7tz8.js.map +1 -0
  31. package/dist/admin/chunks/History-DClLuGIg.mjs +1357 -0
  32. package/dist/admin/chunks/History-DClLuGIg.mjs.map +1 -0
  33. package/dist/admin/chunks/Input-BMLRZBE3.mjs +7190 -0
  34. package/dist/admin/chunks/Input-BMLRZBE3.mjs.map +1 -0
  35. package/dist/admin/chunks/Input-Bv-rqfYH.js +7221 -0
  36. package/dist/admin/chunks/Input-Bv-rqfYH.js.map +1 -0
  37. package/dist/admin/chunks/ListConfigurationPage-D66hgG4-.js +819 -0
  38. package/dist/admin/chunks/ListConfigurationPage-D66hgG4-.js.map +1 -0
  39. package/dist/admin/chunks/ListConfigurationPage-Do3UDres.mjs +796 -0
  40. package/dist/admin/chunks/ListConfigurationPage-Do3UDres.mjs.map +1 -0
  41. package/dist/admin/chunks/ListViewPage-DNvysJaJ.js +1155 -0
  42. package/dist/admin/chunks/ListViewPage-DNvysJaJ.js.map +1 -0
  43. package/dist/admin/chunks/ListViewPage-Q0auz5lE.mjs +1133 -0
  44. package/dist/admin/chunks/ListViewPage-Q0auz5lE.mjs.map +1 -0
  45. package/dist/admin/chunks/NoContentTypePage-B_oOeOQb.mjs +58 -0
  46. package/dist/admin/chunks/NoContentTypePage-B_oOeOQb.mjs.map +1 -0
  47. package/dist/admin/chunks/NoContentTypePage-C5qFFfgn.js +60 -0
  48. package/dist/admin/chunks/NoContentTypePage-C5qFFfgn.js.map +1 -0
  49. package/dist/admin/chunks/NoPermissionsPage-BAW7WY-M.mjs +37 -0
  50. package/dist/admin/chunks/NoPermissionsPage-BAW7WY-M.mjs.map +1 -0
  51. package/dist/admin/chunks/NoPermissionsPage-C9sDJXRu.js +39 -0
  52. package/dist/admin/chunks/NoPermissionsPage-C9sDJXRu.js.map +1 -0
  53. package/dist/admin/chunks/Preview-05BZGpV2.mjs +675 -0
  54. package/dist/admin/chunks/Preview-05BZGpV2.mjs.map +1 -0
  55. package/dist/admin/chunks/Preview-B6ThL2SA.js +697 -0
  56. package/dist/admin/chunks/Preview-B6ThL2SA.js.map +1 -0
  57. package/dist/admin/chunks/Relations-CJ0GWuqq.js +1318 -0
  58. package/dist/admin/chunks/Relations-CJ0GWuqq.js.map +1 -0
  59. package/dist/admin/chunks/Relations-CiOfFNxW.mjs +1291 -0
  60. package/dist/admin/chunks/Relations-CiOfFNxW.mjs.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-CPTj6CjC.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-BVzUkPxZ.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-CcJLBLNf.mjs +5399 -0
  114. package/dist/admin/chunks/index-CcJLBLNf.mjs.map +1 -0
  115. package/dist/admin/chunks/index-SQ88CePz.js +5466 -0
  116. package/dist/admin/chunks/index-SQ88CePz.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-4nCaNnTs.mjs +599 -0
  130. package/dist/admin/chunks/layout-4nCaNnTs.mjs.map +1 -0
  131. package/dist/admin/chunks/layout-xxDnIsHG.js +619 -0
  132. package/dist/admin/chunks/layout-xxDnIsHG.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-D1R7vM_e.mjs +173 -0
  162. package/dist/admin/chunks/relations-D1R7vM_e.mjs.map +1 -0
  163. package/dist/admin/chunks/relations-VlsO9KQZ.js +178 -0
  164. package/dist/admin/chunks/relations-VlsO9KQZ.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/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/FormLayout.d.ts +29 -1
  235. package/dist/admin/src/pages/EditView/components/Header.d.ts +1 -0
  236. package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
  237. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
  238. package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
  239. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  240. package/dist/admin/src/preview/index.d.ts +3 -0
  241. package/dist/admin/src/preview/pages/Preview.d.ts +15 -0
  242. package/dist/admin/src/preview/routes.d.ts +3 -0
  243. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  244. package/dist/admin/src/router.d.ts +1 -1
  245. package/dist/admin/src/services/api.d.ts +1 -1
  246. package/dist/admin/src/services/components.d.ts +2 -2
  247. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  248. package/dist/admin/src/services/documents.d.ts +16 -19
  249. package/dist/admin/src/services/init.d.ts +1 -1
  250. package/dist/admin/src/services/relations.d.ts +2 -2
  251. package/dist/admin/src/services/uid.d.ts +3 -3
  252. package/dist/server/index.js +5473 -4144
  253. package/dist/server/index.js.map +1 -1
  254. package/dist/server/index.mjs +5452 -4120
  255. package/dist/server/index.mjs.map +1 -1
  256. package/dist/server/src/bootstrap.d.ts.map +1 -1
  257. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  258. package/dist/server/src/controllers/index.d.ts.map +1 -1
  259. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  260. package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
  261. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  262. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  263. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  264. package/dist/server/src/history/services/history.d.ts +3 -3
  265. package/dist/server/src/history/services/history.d.ts.map +1 -1
  266. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  267. package/dist/server/src/history/services/utils.d.ts +6 -11
  268. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  269. package/dist/server/src/index.d.ts +7 -6
  270. package/dist/server/src/index.d.ts.map +1 -1
  271. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  272. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  273. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  274. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  275. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  276. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  277. package/dist/server/src/preview/index.d.ts +4 -0
  278. package/dist/server/src/preview/index.d.ts.map +1 -0
  279. package/dist/server/src/preview/routes/index.d.ts +8 -0
  280. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  281. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  282. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  283. package/dist/server/src/preview/services/index.d.ts +16 -0
  284. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  285. package/dist/server/src/preview/services/preview-config.d.ts +32 -0
  286. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  287. package/dist/server/src/preview/services/preview.d.ts +12 -0
  288. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  289. package/dist/server/src/preview/utils.d.ts +19 -0
  290. package/dist/server/src/preview/utils.d.ts.map +1 -0
  291. package/dist/server/src/register.d.ts.map +1 -1
  292. package/dist/server/src/routes/index.d.ts.map +1 -1
  293. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  294. package/dist/server/src/services/document-metadata.d.ts +12 -10
  295. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  296. package/dist/server/src/services/index.d.ts +7 -6
  297. package/dist/server/src/services/index.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 +0 -1
  305. package/dist/shared/contracts/components.d.ts +0 -1
  306. package/dist/shared/contracts/content-types.d.ts +0 -1
  307. package/dist/shared/contracts/history-versions.d.ts +0 -1
  308. package/dist/shared/contracts/index.d.ts +1 -1
  309. package/dist/shared/contracts/index.d.ts.map +1 -1
  310. package/dist/shared/contracts/init.d.ts +0 -1
  311. package/dist/shared/contracts/preview.d.ts +26 -0
  312. package/dist/shared/contracts/preview.d.ts.map +1 -0
  313. package/dist/shared/contracts/relations.d.ts +1 -2
  314. package/dist/shared/contracts/relations.d.ts.map +1 -1
  315. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  316. package/dist/shared/contracts/single-types.d.ts +0 -1
  317. package/dist/shared/contracts/uid.d.ts +0 -1
  318. package/dist/shared/index.d.ts +0 -1
  319. package/dist/shared/index.js +37 -22
  320. package/dist/shared/index.js.map +1 -1
  321. package/dist/shared/index.mjs +36 -23
  322. package/dist/shared/index.mjs.map +1 -1
  323. package/package.json +24 -20
  324. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  325. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  326. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  327. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  328. package/dist/_chunks/ComponentConfigurationPage-CpBFh6_r.mjs +0 -236
  329. package/dist/_chunks/ComponentConfigurationPage-CpBFh6_r.mjs.map +0 -1
  330. package/dist/_chunks/ComponentConfigurationPage-_zF8p6CY.js +0 -255
  331. package/dist/_chunks/ComponentConfigurationPage-_zF8p6CY.js.map +0 -1
  332. package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
  333. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
  334. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  335. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  336. package/dist/_chunks/EditConfigurationPage-CE_yavTi.mjs +0 -132
  337. package/dist/_chunks/EditConfigurationPage-CE_yavTi.mjs.map +0 -1
  338. package/dist/_chunks/EditConfigurationPage-_aG2DJSU.js +0 -151
  339. package/dist/_chunks/EditConfigurationPage-_aG2DJSU.js.map +0 -1
  340. package/dist/_chunks/EditViewPage-DeTn7rAF.mjs +0 -214
  341. package/dist/_chunks/EditViewPage-DeTn7rAF.mjs.map +0 -1
  342. package/dist/_chunks/EditViewPage-G9uNzwYL.js +0 -233
  343. package/dist/_chunks/EditViewPage-G9uNzwYL.js.map +0 -1
  344. package/dist/_chunks/Field-CnCKhI1R.mjs +0 -5519
  345. package/dist/_chunks/Field-CnCKhI1R.mjs.map +0 -1
  346. package/dist/_chunks/Field-DDHUWEfV.js +0 -5551
  347. package/dist/_chunks/Field-DDHUWEfV.js.map +0 -1
  348. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  349. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  350. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  351. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  352. package/dist/_chunks/Form-DYETaKUX.js +0 -779
  353. package/dist/_chunks/Form-DYETaKUX.js.map +0 -1
  354. package/dist/_chunks/Form-IvVVwqRL.mjs +0 -758
  355. package/dist/_chunks/Form-IvVVwqRL.mjs.map +0 -1
  356. package/dist/_chunks/History-BMunT-do.mjs +0 -1032
  357. package/dist/_chunks/History-BMunT-do.mjs.map +0 -1
  358. package/dist/_chunks/History-CnZDctSO.js +0 -1053
  359. package/dist/_chunks/History-CnZDctSO.js.map +0 -1
  360. package/dist/_chunks/ListConfigurationPage-BynalOp8.js +0 -652
  361. package/dist/_chunks/ListConfigurationPage-BynalOp8.js.map +0 -1
  362. package/dist/_chunks/ListConfigurationPage-CDqkCxgV.mjs +0 -632
  363. package/dist/_chunks/ListConfigurationPage-CDqkCxgV.mjs.map +0 -1
  364. package/dist/_chunks/ListViewPage-I88Ouzoq.js +0 -848
  365. package/dist/_chunks/ListViewPage-I88Ouzoq.js.map +0 -1
  366. package/dist/_chunks/ListViewPage-_5gS-DOF.mjs +0 -824
  367. package/dist/_chunks/ListViewPage-_5gS-DOF.mjs.map +0 -1
  368. package/dist/_chunks/NoContentTypePage-BaWQ7HsA.js +0 -51
  369. package/dist/_chunks/NoContentTypePage-BaWQ7HsA.js.map +0 -1
  370. package/dist/_chunks/NoContentTypePage-Dht-55hr.mjs +0 -51
  371. package/dist/_chunks/NoContentTypePage-Dht-55hr.mjs.map +0 -1
  372. package/dist/_chunks/NoPermissionsPage-Bs8D5W_v.mjs +0 -23
  373. package/dist/_chunks/NoPermissionsPage-Bs8D5W_v.mjs.map +0 -1
  374. package/dist/_chunks/NoPermissionsPage-DCVUh5at.js +0 -23
  375. package/dist/_chunks/NoPermissionsPage-DCVUh5at.js.map +0 -1
  376. package/dist/_chunks/Relations-BPgFQeGj.js +0 -714
  377. package/dist/_chunks/Relations-BPgFQeGj.js.map +0 -1
  378. package/dist/_chunks/Relations-Chdt5qWc.mjs +0 -694
  379. package/dist/_chunks/Relations-Chdt5qWc.mjs.map +0 -1
  380. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  381. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  382. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  383. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  384. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  385. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  386. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  387. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  388. package/dist/_chunks/de-CCEmbAah.js +0 -199
  389. package/dist/_chunks/en-BVzUkPxZ.js +0 -293
  390. package/dist/_chunks/en-CPTj6CjC.mjs +0 -293
  391. package/dist/_chunks/es-CeXiYflN.mjs +0 -196
  392. package/dist/_chunks/es-EUonQTon.js +0 -196
  393. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  394. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  395. package/dist/_chunks/fr-B7kGGg3E.js +0 -206
  396. package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
  397. package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
  398. package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
  399. package/dist/_chunks/gu-BRmF601H.js +0 -200
  400. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  401. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  402. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  403. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  404. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  405. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  406. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  407. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  408. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  409. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  410. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  411. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  412. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  413. package/dist/_chunks/id-B5Ser98A.js +0 -160
  414. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  415. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  416. package/dist/_chunks/index-BhbLFX4l.js +0 -4044
  417. package/dist/_chunks/index-BhbLFX4l.js.map +0 -1
  418. package/dist/_chunks/index-D4UGPFZC.mjs +0 -4025
  419. package/dist/_chunks/index-D4UGPFZC.mjs.map +0 -1
  420. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  421. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  422. package/dist/_chunks/ja-CcFe8diO.js +0 -196
  423. package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
  424. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  425. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  426. package/dist/_chunks/layout-CYA7s0qO.js +0 -489
  427. package/dist/_chunks/layout-CYA7s0qO.js.map +0 -1
  428. package/dist/_chunks/layout-D4HI4_PS.mjs +0 -471
  429. package/dist/_chunks/layout-D4HI4_PS.mjs.map +0 -1
  430. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  431. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  432. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  433. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  434. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  435. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  436. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  437. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  438. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  439. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  440. package/dist/_chunks/objects-gigeqt7s.js +0 -49
  441. package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
  442. package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
  443. package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
  444. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  445. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  446. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  447. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  448. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  449. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  450. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  451. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  452. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  453. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  454. package/dist/_chunks/relations-1pXaYpBK.mjs +0 -135
  455. package/dist/_chunks/relations-1pXaYpBK.mjs.map +0 -1
  456. package/dist/_chunks/relations-DDZ9OxNo.js +0 -134
  457. package/dist/_chunks/relations-DDZ9OxNo.js.map +0 -1
  458. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  459. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  460. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  461. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  462. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  463. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  464. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  465. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  466. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  467. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  468. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  469. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  470. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  471. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  472. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  473. package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
  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-C8EiqJY7.js.map +0 -1
  481. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  482. package/dist/_chunks/useDebounce-CtcjDB3L.js +0 -28
  483. package/dist/_chunks/useDebounce-CtcjDB3L.js.map +0 -1
  484. package/dist/_chunks/useDebounce-DmuSJIF3.mjs +0 -29
  485. package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +0 -1
  486. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
  487. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
  488. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
  489. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
  490. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  491. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  492. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  493. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  494. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  495. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  496. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  497. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
  498. package/strapi-server.js +0 -3
@@ -0,0 +1,96 @@
1
+ 'use strict';
2
+
3
+ var pageNotFound = "Página não encontrada";
4
+ var pt = {
5
+ "EditRelations.title": "Dados relacionais",
6
+ "components.AddFilterCTA.add": "Filtros",
7
+ "components.AddFilterCTA.hide": "Filtros",
8
+ "components.DraggableAttr.edit": "Clique para editar",
9
+ "components.EmptyAttributesBlock.button": "Ir para a página de configurações",
10
+ "components.EmptyAttributesBlock.description": "Pode alterar as configurações",
11
+ "components.FilterOptions.button.apply": "Aplicar",
12
+ "components.FiltersPickWrapper.PluginHeader.actions.apply": "Aplicar",
13
+ "components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Limpar tudo",
14
+ "components.FiltersPickWrapper.PluginHeader.description": "Definir as condições a serem aplicadas para filtrar as entradas",
15
+ "components.FiltersPickWrapper.PluginHeader.title.filter": "Filtros",
16
+ "components.FiltersPickWrapper.hide": "Esconder",
17
+ "components.LimitSelect.itemsPerPage": "Itens por página",
18
+ "components.Search.placeholder": "Procurar por uma entrada...",
19
+ "components.TableDelete.delete": "Apagar tudo",
20
+ "components.TableDelete.deleteSelected": "Excluir selecionado",
21
+ "components.TableEmpty.withFilters": "Não há {contentType} com os filtros aplicados...",
22
+ "components.TableEmpty.withSearch": "Não há {contentType} correspondente à pesquisa ({search})...",
23
+ "components.TableEmpty.withoutFilter": "Não há {contentType}...",
24
+ "containers.Edit.addAnItem": "Adicionar uma entrada...",
25
+ "containers.Edit.clickToJump": "Clique para saltar para a entrada",
26
+ "containers.Edit.delete": "Apagar",
27
+ "containers.Edit.editing": "Editando...",
28
+ "containers.Edit.reset": "Restabelecer",
29
+ "containers.Edit.returnList": "Retornar à lista",
30
+ "containers.Edit.seeDetails": "Detalhes",
31
+ "containers.Edit.submit": "Guardar",
32
+ "containers.Home.introduction": "Para editar suas entradas, acesse o link específico no menu à esquerda. Esta extensão não tem uma maneira correcta de editar configurações e ainda está em desenvolvimento activo.",
33
+ "containers.Home.pluginHeaderDescription": "Administre as suas entradas através de uma interface poderosa e bonita.",
34
+ "containers.Home.pluginHeaderTitle": "Gestor de conteúdos",
35
+ "containers.List.errorFetchRecords": "Erro",
36
+ "containers.list.displayedFields": "Campos visíveis",
37
+ "containers.SettingPage.attributes": "Campos de atributos",
38
+ "containers.SettingPage.attributes.description": "Definir a ordem dos atributos",
39
+ "containers.SettingPage.editSettings.description": "Agarre & solte os campos para criar o layout",
40
+ "containers.SettingPage.editSettings.title": "Edite (configurações)",
41
+ "containers.SettingPage.listSettings.title": "Lista (configurações)",
42
+ "containers.SettingPage.relations": "Campos Relacionais",
43
+ "containers.SettingsPage.Block.contentType.description": "Configurar configurações específicas",
44
+ "containers.SettingsPage.Block.generalSettings.title": "Geral",
45
+ "emptyAttributes.title": "Ainda não há campos",
46
+ "error.attribute.key.taken": "Este valor já existe",
47
+ "error.attribute.sameKeyAndName": "Não pode ser igual",
48
+ "error.attribute.taken": "O nome deste campo já existe",
49
+ "error.contentTypeName.taken": "Este nome já existe",
50
+ "error.model.fetch": "Ocorreu um erro durante a configuração dos modelos de pesquisa.",
51
+ "error.record.create": "Ocorreu um erro durante a criação de registo.",
52
+ "error.record.delete": "Ocorreu um erro durante a exclusão do registo.",
53
+ "error.record.fetch": "Ocorreu um erro durante o registo de pesquisa.",
54
+ "error.record.update": "Ocorreu um erro durante a actualização do registo.",
55
+ "error.records.count": "Ocorreu um erro durante a contagem de registos a pesquisar.",
56
+ "error.records.fetch": "Ocorreu um erro durante os registos de busca.",
57
+ "error.schema.generation": "Ocorreu um erro durante a geração de esquemas.",
58
+ "error.validation.json": "Isto não corresponde com o formato JSON",
59
+ "error.validation.max": "O valor é muito alto.",
60
+ "error.validation.maxLength": "O valor é muito longo.",
61
+ "error.validation.min": "O valor é muito baixo.",
62
+ "error.validation.minLength": "O valor é muito curto.",
63
+ "error.validation.minSupMax": "Não pode ser superior",
64
+ "error.validation.regex": "Este valor não corresponde ao regex.",
65
+ "error.validation.required": "O valor desta entrada é obrigatória.",
66
+ "form.Input.bulkActions": "Activar acções em massa",
67
+ "form.Input.defaultSort": "Ordenação por defeito",
68
+ "form.Input.description": "Descrição",
69
+ "form.Input.description.placeholder": "Nome a exibir no perfil",
70
+ "form.Input.editable": "Campo editável",
71
+ "form.Input.filters": "Activar filtros",
72
+ "form.Input.label": "Legenda",
73
+ "form.Input.label.inputDescription": "Este valor sobrepõe a legenda visível no cabeçalho da tabela",
74
+ "form.Input.pageEntries": "Entradas por página",
75
+ "form.Input.placeholder": "Preenchimento",
76
+ "form.Input.placeholder.placeholder": "O meu valor espetacular",
77
+ "form.Input.search": "Activar pesquisa",
78
+ "form.Input.search.field": "Active a pesquisa neste campo",
79
+ "form.Input.sort.field": "Active a ordenação neste campo",
80
+ "notification.error.displayedFields": "Precisa de ter pelo menos um campo visível",
81
+ "notification.error.relationship.fetch": "Ocorreu um erro durante a pesquisa da relação.",
82
+ "notification.info.SettingPage.disableSort": "Precisa de ter pelo menos um atributo com ordenação activa",
83
+ pageNotFound: pageNotFound,
84
+ "plugin.description.long": "Maneira rápida de ver, editar e excluir os dados da sua base de dados.",
85
+ "plugin.description.short": "Maneira rápida de ver, editar e excluir os dados da sua base de dados.",
86
+ "popUpWarning.bodyMessage.contentType.delete": "Tem a certeza de que pretende apagar esta entrada?",
87
+ "popUpWarning.bodyMessage.contentType.delete.all": "Tem a certeza de que pretende apagar estas entradas?",
88
+ "popUpWarning.warning.cancelAllSettings": "Tem a certeza de que quer cancelar as alterações?",
89
+ "popUpWarning.warning.updateAllSettings": "Isto vai alterar todas as suas configurações",
90
+ "success.record.delete": "Apagado",
91
+ "success.record.save": "Guardado"
92
+ };
93
+
94
+ exports.default = pt;
95
+ exports.pageNotFound = pageNotFound;
96
+ //# sourceMappingURL=pt-BoPxN80n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BoPxN80n.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,93 @@
1
+ var pageNotFound = "Página não encontrada";
2
+ var pt = {
3
+ "EditRelations.title": "Dados relacionais",
4
+ "components.AddFilterCTA.add": "Filtros",
5
+ "components.AddFilterCTA.hide": "Filtros",
6
+ "components.DraggableAttr.edit": "Clique para editar",
7
+ "components.EmptyAttributesBlock.button": "Ir para a página de configurações",
8
+ "components.EmptyAttributesBlock.description": "Pode alterar as configurações",
9
+ "components.FilterOptions.button.apply": "Aplicar",
10
+ "components.FiltersPickWrapper.PluginHeader.actions.apply": "Aplicar",
11
+ "components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Limpar tudo",
12
+ "components.FiltersPickWrapper.PluginHeader.description": "Definir as condições a serem aplicadas para filtrar as entradas",
13
+ "components.FiltersPickWrapper.PluginHeader.title.filter": "Filtros",
14
+ "components.FiltersPickWrapper.hide": "Esconder",
15
+ "components.LimitSelect.itemsPerPage": "Itens por página",
16
+ "components.Search.placeholder": "Procurar por uma entrada...",
17
+ "components.TableDelete.delete": "Apagar tudo",
18
+ "components.TableDelete.deleteSelected": "Excluir selecionado",
19
+ "components.TableEmpty.withFilters": "Não há {contentType} com os filtros aplicados...",
20
+ "components.TableEmpty.withSearch": "Não há {contentType} correspondente à pesquisa ({search})...",
21
+ "components.TableEmpty.withoutFilter": "Não há {contentType}...",
22
+ "containers.Edit.addAnItem": "Adicionar uma entrada...",
23
+ "containers.Edit.clickToJump": "Clique para saltar para a entrada",
24
+ "containers.Edit.delete": "Apagar",
25
+ "containers.Edit.editing": "Editando...",
26
+ "containers.Edit.reset": "Restabelecer",
27
+ "containers.Edit.returnList": "Retornar à lista",
28
+ "containers.Edit.seeDetails": "Detalhes",
29
+ "containers.Edit.submit": "Guardar",
30
+ "containers.Home.introduction": "Para editar suas entradas, acesse o link específico no menu à esquerda. Esta extensão não tem uma maneira correcta de editar configurações e ainda está em desenvolvimento activo.",
31
+ "containers.Home.pluginHeaderDescription": "Administre as suas entradas através de uma interface poderosa e bonita.",
32
+ "containers.Home.pluginHeaderTitle": "Gestor de conteúdos",
33
+ "containers.List.errorFetchRecords": "Erro",
34
+ "containers.list.displayedFields": "Campos visíveis",
35
+ "containers.SettingPage.attributes": "Campos de atributos",
36
+ "containers.SettingPage.attributes.description": "Definir a ordem dos atributos",
37
+ "containers.SettingPage.editSettings.description": "Agarre & solte os campos para criar o layout",
38
+ "containers.SettingPage.editSettings.title": "Edite (configurações)",
39
+ "containers.SettingPage.listSettings.title": "Lista (configurações)",
40
+ "containers.SettingPage.relations": "Campos Relacionais",
41
+ "containers.SettingsPage.Block.contentType.description": "Configurar configurações específicas",
42
+ "containers.SettingsPage.Block.generalSettings.title": "Geral",
43
+ "emptyAttributes.title": "Ainda não há campos",
44
+ "error.attribute.key.taken": "Este valor já existe",
45
+ "error.attribute.sameKeyAndName": "Não pode ser igual",
46
+ "error.attribute.taken": "O nome deste campo já existe",
47
+ "error.contentTypeName.taken": "Este nome já existe",
48
+ "error.model.fetch": "Ocorreu um erro durante a configuração dos modelos de pesquisa.",
49
+ "error.record.create": "Ocorreu um erro durante a criação de registo.",
50
+ "error.record.delete": "Ocorreu um erro durante a exclusão do registo.",
51
+ "error.record.fetch": "Ocorreu um erro durante o registo de pesquisa.",
52
+ "error.record.update": "Ocorreu um erro durante a actualização do registo.",
53
+ "error.records.count": "Ocorreu um erro durante a contagem de registos a pesquisar.",
54
+ "error.records.fetch": "Ocorreu um erro durante os registos de busca.",
55
+ "error.schema.generation": "Ocorreu um erro durante a geração de esquemas.",
56
+ "error.validation.json": "Isto não corresponde com o formato JSON",
57
+ "error.validation.max": "O valor é muito alto.",
58
+ "error.validation.maxLength": "O valor é muito longo.",
59
+ "error.validation.min": "O valor é muito baixo.",
60
+ "error.validation.minLength": "O valor é muito curto.",
61
+ "error.validation.minSupMax": "Não pode ser superior",
62
+ "error.validation.regex": "Este valor não corresponde ao regex.",
63
+ "error.validation.required": "O valor desta entrada é obrigatória.",
64
+ "form.Input.bulkActions": "Activar acções em massa",
65
+ "form.Input.defaultSort": "Ordenação por defeito",
66
+ "form.Input.description": "Descrição",
67
+ "form.Input.description.placeholder": "Nome a exibir no perfil",
68
+ "form.Input.editable": "Campo editável",
69
+ "form.Input.filters": "Activar filtros",
70
+ "form.Input.label": "Legenda",
71
+ "form.Input.label.inputDescription": "Este valor sobrepõe a legenda visível no cabeçalho da tabela",
72
+ "form.Input.pageEntries": "Entradas por página",
73
+ "form.Input.placeholder": "Preenchimento",
74
+ "form.Input.placeholder.placeholder": "O meu valor espetacular",
75
+ "form.Input.search": "Activar pesquisa",
76
+ "form.Input.search.field": "Active a pesquisa neste campo",
77
+ "form.Input.sort.field": "Active a ordenação neste campo",
78
+ "notification.error.displayedFields": "Precisa de ter pelo menos um campo visível",
79
+ "notification.error.relationship.fetch": "Ocorreu um erro durante a pesquisa da relação.",
80
+ "notification.info.SettingPage.disableSort": "Precisa de ter pelo menos um atributo com ordenação activa",
81
+ pageNotFound: pageNotFound,
82
+ "plugin.description.long": "Maneira rápida de ver, editar e excluir os dados da sua base de dados.",
83
+ "plugin.description.short": "Maneira rápida de ver, editar e excluir os dados da sua base de dados.",
84
+ "popUpWarning.bodyMessage.contentType.delete": "Tem a certeza de que pretende apagar esta entrada?",
85
+ "popUpWarning.bodyMessage.contentType.delete.all": "Tem a certeza de que pretende apagar estas entradas?",
86
+ "popUpWarning.warning.cancelAllSettings": "Tem a certeza de que quer cancelar as alterações?",
87
+ "popUpWarning.warning.updateAllSettings": "Isto vai alterar todas as suas configurações",
88
+ "success.record.delete": "Apagado",
89
+ "success.record.save": "Guardado"
90
+ };
91
+
92
+ export { pt as default, pageNotFound };
93
+ //# sourceMappingURL=pt-HbmgeiYO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-HbmgeiYO.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,173 @@
1
+ import { useState, useEffect } from 'react';
2
+ import { generateNKeysBetween } from 'fractional-indexing';
3
+ import { e as contentManagerApi } from './index-CcJLBLNf.mjs';
4
+
5
+ function useDebounce(value, delay) {
6
+ const [debouncedValue, setDebouncedValue] = useState(value);
7
+ useEffect(()=>{
8
+ const handler = setTimeout(()=>{
9
+ setDebouncedValue(value);
10
+ }, delay);
11
+ return ()=>{
12
+ clearTimeout(handler);
13
+ };
14
+ }, [
15
+ value,
16
+ delay
17
+ ]);
18
+ return debouncedValue;
19
+ }
20
+
21
+ const relationsApi = contentManagerApi.injectEndpoints({
22
+ endpoints: (build)=>({
23
+ getRelations: build.query({
24
+ query: ({ model, id, targetField, params })=>{
25
+ return {
26
+ url: `/content-manager/relations/${model}/${id}/${targetField}`,
27
+ method: 'GET',
28
+ config: {
29
+ params
30
+ }
31
+ };
32
+ },
33
+ serializeQueryArgs: (args)=>{
34
+ const { endpointName, queryArgs } = args;
35
+ return {
36
+ endpointName,
37
+ model: queryArgs.model,
38
+ id: queryArgs.id,
39
+ targetField: queryArgs.targetField,
40
+ locale: queryArgs.params?.locale,
41
+ status: queryArgs.params?.status
42
+ };
43
+ },
44
+ merge: (currentCache, newItems)=>{
45
+ if (currentCache.pagination && newItems.pagination) {
46
+ if (currentCache.pagination.page < newItems.pagination.page) {
47
+ /**
48
+ * Relations will always have unique IDs, so we can therefore assume
49
+ * that we only need to push the new items to the cache.
50
+ *
51
+ * Push new items at the beginning as latest items are shown first
52
+ */ currentCache.results = [
53
+ ...prepareTempKeys(newItems.results, currentCache.results),
54
+ ...currentCache.results
55
+ ];
56
+ currentCache.pagination = newItems.pagination;
57
+ } else if (newItems.pagination.page === 1) {
58
+ /**
59
+ * We're resetting the relations
60
+ */ currentCache.results = prepareTempKeys(newItems.results);
61
+ currentCache.pagination = newItems.pagination;
62
+ }
63
+ }
64
+ },
65
+ forceRefetch ({ currentArg, previousArg }) {
66
+ if (!currentArg?.params && !previousArg?.params) {
67
+ return false;
68
+ }
69
+ return currentArg?.params?.page !== previousArg?.params?.page || currentArg?.params?.pageSize !== previousArg?.params?.pageSize;
70
+ },
71
+ transformResponse: (response)=>{
72
+ if ('results' in response && response.results) {
73
+ return {
74
+ ...response,
75
+ results: prepareTempKeys(response.results.toReversed())
76
+ };
77
+ } else {
78
+ return response;
79
+ }
80
+ },
81
+ providesTags: [
82
+ 'Relations'
83
+ ]
84
+ }),
85
+ searchRelations: build.query({
86
+ query: ({ model, targetField, params })=>{
87
+ return {
88
+ url: `/content-manager/relations/${model}/${targetField}`,
89
+ method: 'GET',
90
+ config: {
91
+ params
92
+ }
93
+ };
94
+ },
95
+ serializeQueryArgs: (args)=>{
96
+ const { endpointName, queryArgs } = args;
97
+ return {
98
+ endpointName,
99
+ model: queryArgs.model,
100
+ targetField: queryArgs.targetField,
101
+ _q: queryArgs.params?._q,
102
+ idsToOmit: queryArgs.params?.idsToOmit,
103
+ idsToInclude: queryArgs.params?.idsToInclude
104
+ };
105
+ },
106
+ merge: (currentCache, newItems)=>{
107
+ if (currentCache.pagination && newItems.pagination) {
108
+ if (currentCache.pagination.page < newItems.pagination.page) {
109
+ /**
110
+ * Relations will always have unique IDs, so we can therefore assume
111
+ * that we only need to push the new items to the cache.
112
+ */ const existingIds = currentCache.results.map((item)=>item.documentId);
113
+ const uniqueNewItems = newItems.results.filter((item)=>!existingIds.includes(item.documentId));
114
+ currentCache.results.push(...uniqueNewItems);
115
+ currentCache.pagination = newItems.pagination;
116
+ } else if (newItems.pagination.page === 1) {
117
+ /**
118
+ * We're resetting the relations
119
+ */ currentCache.results = newItems.results;
120
+ currentCache.pagination = newItems.pagination;
121
+ }
122
+ }
123
+ },
124
+ forceRefetch ({ currentArg, previousArg }) {
125
+ if (!currentArg?.params && !previousArg?.params) {
126
+ return false;
127
+ }
128
+ return currentArg?.params?.page !== previousArg?.params?.page || currentArg?.params?.pageSize !== previousArg?.params?.pageSize;
129
+ },
130
+ transformResponse: (response)=>{
131
+ if (response.results) {
132
+ return {
133
+ ...response,
134
+ results: response.results
135
+ };
136
+ } else {
137
+ return response;
138
+ }
139
+ }
140
+ })
141
+ })
142
+ });
143
+ /**
144
+ * @internal
145
+ * @description Adds a `__temp_key__` to each relation item. This gives us
146
+ * a stable identifier regardless of it's ids etc. that we can then use for drag and drop.
147
+ */ const prepareTempKeys = (relations, existingRelations = [])=>{
148
+ const [firstItem] = existingRelations.slice(0);
149
+ const keys = generateNKeysBetween(null, firstItem?.__temp_key__ ?? null, relations.length);
150
+ return relations.map((datum, index)=>({
151
+ ...datum,
152
+ __temp_key__: keys[index]
153
+ }));
154
+ };
155
+ const { useGetRelationsQuery, useLazySearchRelationsQuery } = relationsApi;
156
+
157
+ /**
158
+ * @internal
159
+ * @description Get the label of a relation, the contract has [key: string]: unknown,
160
+ * so we need to check if the mainFieldKey is defined and if the relation has a value
161
+ * under that property. If it does, we then verify it's type of string and return it.
162
+ *
163
+ * We fallback to the documentId.
164
+ */ const getRelationLabel = (relation, mainField)=>{
165
+ const label = mainField && relation[mainField.name] ? relation[mainField.name] : null;
166
+ if (typeof label === 'string') {
167
+ return label;
168
+ }
169
+ return relation.documentId;
170
+ };
171
+
172
+ export { useDebounce as a, useLazySearchRelationsQuery as b, getRelationLabel as g, useGetRelationsQuery as u };
173
+ //# sourceMappingURL=relations-D1R7vM_e.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relations-D1R7vM_e.mjs","sources":["../../../admin/src/hooks/useDebounce.ts","../../../admin/src/services/relations.ts","../../../admin/src/utils/relations.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport function useDebounce<TValue>(value: TValue, delay: number): TValue {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [value, delay]);\n\n return debouncedValue;\n}\n","import { generateNKeysBetween } from 'fractional-indexing';\n\nimport {\n RelationResult as RelResult,\n FindAvailable,\n FindExisting,\n} from '../../../shared/contracts/relations';\n\nimport { contentManagerApi } from './api';\n\nimport type { Modules } from '@strapi/types';\nimport type { errors } from '@strapi/utils';\n\ninterface RelationResult extends RelResult {\n __temp_key__: string;\n}\n\ntype GetRelationsResponse =\n | {\n results: Array<RelationResult>;\n pagination: {\n page: NonNullable<Modules.EntityService.Params.Pagination.PageNotation['page']>;\n pageSize: NonNullable<Modules.EntityService.Params.Pagination.PageNotation['pageSize']>;\n pageCount: number;\n total: number;\n } | null;\n error?: never;\n }\n | {\n results?: never;\n pagination?: never;\n error: errors.ApplicationError | errors.YupValidationError;\n };\n\nconst relationsApi = contentManagerApi.injectEndpoints({\n endpoints: (build) => ({\n getRelations: build.query<\n GetRelationsResponse,\n FindExisting.Params & {\n params?: FindExisting.Request['query'];\n }\n >({\n query: ({ model, id, targetField, params }) => {\n return {\n url: `/content-manager/relations/${model}/${id}/${targetField}`,\n method: 'GET',\n config: {\n params,\n },\n };\n },\n serializeQueryArgs: (args) => {\n const { endpointName, queryArgs } = args;\n return {\n endpointName,\n model: queryArgs.model,\n id: queryArgs.id,\n targetField: queryArgs.targetField,\n locale: queryArgs.params?.locale,\n status: queryArgs.params?.status,\n };\n },\n merge: (currentCache, newItems) => {\n if (currentCache.pagination && newItems.pagination) {\n if (currentCache.pagination.page < newItems.pagination.page) {\n /**\n * Relations will always have unique IDs, so we can therefore assume\n * that we only need to push the new items to the cache.\n *\n * Push new items at the beginning as latest items are shown first\n */\n currentCache.results = [\n ...prepareTempKeys(newItems.results, currentCache.results),\n ...currentCache.results,\n ];\n currentCache.pagination = newItems.pagination;\n } else if (newItems.pagination.page === 1) {\n /**\n * We're resetting the relations\n */\n currentCache.results = prepareTempKeys(newItems.results);\n currentCache.pagination = newItems.pagination;\n }\n }\n },\n forceRefetch({ currentArg, previousArg }) {\n if (!currentArg?.params && !previousArg?.params) {\n return false;\n }\n\n return (\n currentArg?.params?.page !== previousArg?.params?.page ||\n currentArg?.params?.pageSize !== previousArg?.params?.pageSize\n );\n },\n transformResponse: (response: FindExisting.Response) => {\n if ('results' in response && response.results) {\n return {\n ...response,\n results: prepareTempKeys(response.results.toReversed()),\n };\n } else {\n return response;\n }\n },\n providesTags: ['Relations'],\n }),\n searchRelations: build.query<\n FindAvailable.Response,\n FindAvailable.Params & {\n params?: FindAvailable.Request['query'];\n }\n >({\n query: ({ model, targetField, params }) => {\n return {\n url: `/content-manager/relations/${model}/${targetField}`,\n method: 'GET',\n config: {\n params,\n },\n };\n },\n serializeQueryArgs: (args) => {\n const { endpointName, queryArgs } = args;\n return {\n endpointName,\n model: queryArgs.model,\n targetField: queryArgs.targetField,\n _q: queryArgs.params?._q,\n idsToOmit: queryArgs.params?.idsToOmit,\n idsToInclude: queryArgs.params?.idsToInclude,\n };\n },\n merge: (currentCache, newItems) => {\n if (currentCache.pagination && newItems.pagination) {\n if (currentCache.pagination.page < newItems.pagination.page) {\n /**\n * Relations will always have unique IDs, so we can therefore assume\n * that we only need to push the new items to the cache.\n */\n const existingIds = currentCache.results.map((item) => item.documentId);\n const uniqueNewItems = newItems.results.filter(\n (item) => !existingIds.includes(item.documentId)\n );\n currentCache.results.push(...uniqueNewItems);\n currentCache.pagination = newItems.pagination;\n } else if (newItems.pagination.page === 1) {\n /**\n * We're resetting the relations\n */\n currentCache.results = newItems.results;\n currentCache.pagination = newItems.pagination;\n }\n }\n },\n forceRefetch({ currentArg, previousArg }) {\n if (!currentArg?.params && !previousArg?.params) {\n return false;\n }\n\n return (\n currentArg?.params?.page !== previousArg?.params?.page ||\n currentArg?.params?.pageSize !== previousArg?.params?.pageSize\n );\n },\n transformResponse: (response: FindAvailable.Response) => {\n if (response.results) {\n return {\n ...response,\n results: response.results,\n };\n } else {\n return response;\n }\n },\n }),\n }),\n});\n\n/**\n * @internal\n * @description Adds a `__temp_key__` to each relation item. This gives us\n * a stable identifier regardless of it's ids etc. that we can then use for drag and drop.\n */\nconst prepareTempKeys = (relations: RelResult[], existingRelations: RelationResult[] = []) => {\n const [firstItem] = existingRelations.slice(0);\n const keys = generateNKeysBetween(null, firstItem?.__temp_key__ ?? null, relations.length);\n\n return relations.map((datum, index) => ({\n ...datum,\n __temp_key__: keys[index],\n }));\n};\n\nconst { useGetRelationsQuery, useLazySearchRelationsQuery } = relationsApi;\n\nexport { useGetRelationsQuery, useLazySearchRelationsQuery };\nexport type { RelationResult };\n","import type { MainField } from './attributes';\nimport type { RelationResult } from '../../../shared/contracts/relations';\n\n/**\n * @internal\n * @description Get the label of a relation, the contract has [key: string]: unknown,\n * so we need to check if the mainFieldKey is defined and if the relation has a value\n * under that property. If it does, we then verify it's type of string and return it.\n *\n * We fallback to the documentId.\n */\nconst getRelationLabel = (relation: RelationResult, mainField?: MainField): string => {\n const label = mainField && relation[mainField.name] ? relation[mainField.name] : null;\n\n if (typeof label === 'string') {\n return label;\n }\n\n return relation.documentId;\n};\n\nexport { getRelationLabel };\n"],"names":["useDebounce","value","delay","debouncedValue","setDebouncedValue","useState","useEffect","handler","setTimeout","clearTimeout","relationsApi","contentManagerApi","injectEndpoints","endpoints","build","getRelations","query","model","id","targetField","params","url","method","config","serializeQueryArgs","args","endpointName","queryArgs","locale","status","merge","currentCache","newItems","pagination","page","results","prepareTempKeys","forceRefetch","currentArg","previousArg","pageSize","transformResponse","response","toReversed","providesTags","searchRelations","_q","idsToOmit","idsToInclude","existingIds","map","item","documentId","uniqueNewItems","filter","includes","push","relations","existingRelations","firstItem","slice","keys","generateNKeysBetween","__temp_key__","length","datum","index","useGetRelationsQuery","useLazySearchRelationsQuery","getRelationLabel","relation","mainField","label","name"],"mappings":";;;;AAEO,SAASA,WAAAA,CAAoBC,KAAa,EAAEC,KAAa,EAAA;AAC9D,IAAA,MAAM,CAACC,cAAAA,EAAgBC,iBAAkB,CAAA,GAAGC,QAASJ,CAAAA,KAAAA,CAAAA;IAErDK,SAAU,CAAA,IAAA;AACR,QAAA,MAAMC,UAAUC,UAAW,CAAA,IAAA;YACzBJ,iBAAkBH,CAAAA,KAAAA,CAAAA;SAC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AAOC,oBAAqB,CAAA,IAAA,EAAMH,WAAWI,YAAgB,IAAA,IAAA,EAAMN,UAAUO,MAAM,CAAA;AAEzF,IAAA,OAAOP,UAAUP,GAAG,CAAC,CAACe,KAAAA,EAAOC,SAAW;AACtC,YAAA,GAAGD,KAAK;YACRF,YAAcF,EAAAA,IAAI,CAACK,KAAM;SAC3B,CAAA,CAAA;AACF,CAAA;AAEA,MAAM,EAAEC,oBAAoB,EAAEC,2BAA2B,EAAE,GAAG1D;;AC/L9D;;;;;;;IAQA,MAAM2D,gBAAmB,GAAA,CAACC,QAA0BC,EAAAA,SAAAA,GAAAA;AAClD,IAAA,MAAMC,KAAQD,GAAAA,SAAAA,IAAaD,QAAQ,CAACC,SAAUE,CAAAA,IAAI,CAAC,GAAGH,QAAQ,CAACC,SAAUE,CAAAA,IAAI,CAAC,GAAG,IAAA;IAEjF,IAAI,OAAOD,UAAU,QAAU,EAAA;QAC7B,OAAOA,KAAAA;AACT;AAEA,IAAA,OAAOF,SAASlB,UAAU;AAC5B;;;;"}
@@ -0,0 +1,178 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var fractionalIndexing = require('fractional-indexing');
5
+ var index = require('./index-SQ88CePz.js');
6
+
7
+ function useDebounce(value, delay) {
8
+ const [debouncedValue, setDebouncedValue] = React.useState(value);
9
+ React.useEffect(()=>{
10
+ const handler = setTimeout(()=>{
11
+ setDebouncedValue(value);
12
+ }, delay);
13
+ return ()=>{
14
+ clearTimeout(handler);
15
+ };
16
+ }, [
17
+ value,
18
+ delay
19
+ ]);
20
+ return debouncedValue;
21
+ }
22
+
23
+ const relationsApi = index.contentManagerApi.injectEndpoints({
24
+ endpoints: (build)=>({
25
+ getRelations: build.query({
26
+ query: ({ model, id, targetField, params })=>{
27
+ return {
28
+ url: `/content-manager/relations/${model}/${id}/${targetField}`,
29
+ method: 'GET',
30
+ config: {
31
+ params
32
+ }
33
+ };
34
+ },
35
+ serializeQueryArgs: (args)=>{
36
+ const { endpointName, queryArgs } = args;
37
+ return {
38
+ endpointName,
39
+ model: queryArgs.model,
40
+ id: queryArgs.id,
41
+ targetField: queryArgs.targetField,
42
+ locale: queryArgs.params?.locale,
43
+ status: queryArgs.params?.status
44
+ };
45
+ },
46
+ merge: (currentCache, newItems)=>{
47
+ if (currentCache.pagination && newItems.pagination) {
48
+ if (currentCache.pagination.page < newItems.pagination.page) {
49
+ /**
50
+ * Relations will always have unique IDs, so we can therefore assume
51
+ * that we only need to push the new items to the cache.
52
+ *
53
+ * Push new items at the beginning as latest items are shown first
54
+ */ currentCache.results = [
55
+ ...prepareTempKeys(newItems.results, currentCache.results),
56
+ ...currentCache.results
57
+ ];
58
+ currentCache.pagination = newItems.pagination;
59
+ } else if (newItems.pagination.page === 1) {
60
+ /**
61
+ * We're resetting the relations
62
+ */ currentCache.results = prepareTempKeys(newItems.results);
63
+ currentCache.pagination = newItems.pagination;
64
+ }
65
+ }
66
+ },
67
+ forceRefetch ({ currentArg, previousArg }) {
68
+ if (!currentArg?.params && !previousArg?.params) {
69
+ return false;
70
+ }
71
+ return currentArg?.params?.page !== previousArg?.params?.page || currentArg?.params?.pageSize !== previousArg?.params?.pageSize;
72
+ },
73
+ transformResponse: (response)=>{
74
+ if ('results' in response && response.results) {
75
+ return {
76
+ ...response,
77
+ results: prepareTempKeys(response.results.toReversed())
78
+ };
79
+ } else {
80
+ return response;
81
+ }
82
+ },
83
+ providesTags: [
84
+ 'Relations'
85
+ ]
86
+ }),
87
+ searchRelations: build.query({
88
+ query: ({ model, targetField, params })=>{
89
+ return {
90
+ url: `/content-manager/relations/${model}/${targetField}`,
91
+ method: 'GET',
92
+ config: {
93
+ params
94
+ }
95
+ };
96
+ },
97
+ serializeQueryArgs: (args)=>{
98
+ const { endpointName, queryArgs } = args;
99
+ return {
100
+ endpointName,
101
+ model: queryArgs.model,
102
+ targetField: queryArgs.targetField,
103
+ _q: queryArgs.params?._q,
104
+ idsToOmit: queryArgs.params?.idsToOmit,
105
+ idsToInclude: queryArgs.params?.idsToInclude
106
+ };
107
+ },
108
+ merge: (currentCache, newItems)=>{
109
+ if (currentCache.pagination && newItems.pagination) {
110
+ if (currentCache.pagination.page < newItems.pagination.page) {
111
+ /**
112
+ * Relations will always have unique IDs, so we can therefore assume
113
+ * that we only need to push the new items to the cache.
114
+ */ const existingIds = currentCache.results.map((item)=>item.documentId);
115
+ const uniqueNewItems = newItems.results.filter((item)=>!existingIds.includes(item.documentId));
116
+ currentCache.results.push(...uniqueNewItems);
117
+ currentCache.pagination = newItems.pagination;
118
+ } else if (newItems.pagination.page === 1) {
119
+ /**
120
+ * We're resetting the relations
121
+ */ currentCache.results = newItems.results;
122
+ currentCache.pagination = newItems.pagination;
123
+ }
124
+ }
125
+ },
126
+ forceRefetch ({ currentArg, previousArg }) {
127
+ if (!currentArg?.params && !previousArg?.params) {
128
+ return false;
129
+ }
130
+ return currentArg?.params?.page !== previousArg?.params?.page || currentArg?.params?.pageSize !== previousArg?.params?.pageSize;
131
+ },
132
+ transformResponse: (response)=>{
133
+ if (response.results) {
134
+ return {
135
+ ...response,
136
+ results: response.results
137
+ };
138
+ } else {
139
+ return response;
140
+ }
141
+ }
142
+ })
143
+ })
144
+ });
145
+ /**
146
+ * @internal
147
+ * @description Adds a `__temp_key__` to each relation item. This gives us
148
+ * a stable identifier regardless of it's ids etc. that we can then use for drag and drop.
149
+ */ const prepareTempKeys = (relations, existingRelations = [])=>{
150
+ const [firstItem] = existingRelations.slice(0);
151
+ const keys = fractionalIndexing.generateNKeysBetween(null, firstItem?.__temp_key__ ?? null, relations.length);
152
+ return relations.map((datum, index)=>({
153
+ ...datum,
154
+ __temp_key__: keys[index]
155
+ }));
156
+ };
157
+ const { useGetRelationsQuery, useLazySearchRelationsQuery } = relationsApi;
158
+
159
+ /**
160
+ * @internal
161
+ * @description Get the label of a relation, the contract has [key: string]: unknown,
162
+ * so we need to check if the mainFieldKey is defined and if the relation has a value
163
+ * under that property. If it does, we then verify it's type of string and return it.
164
+ *
165
+ * We fallback to the documentId.
166
+ */ const getRelationLabel = (relation, mainField)=>{
167
+ const label = mainField && relation[mainField.name] ? relation[mainField.name] : null;
168
+ if (typeof label === 'string') {
169
+ return label;
170
+ }
171
+ return relation.documentId;
172
+ };
173
+
174
+ exports.getRelationLabel = getRelationLabel;
175
+ exports.useDebounce = useDebounce;
176
+ exports.useGetRelationsQuery = useGetRelationsQuery;
177
+ exports.useLazySearchRelationsQuery = useLazySearchRelationsQuery;
178
+ //# sourceMappingURL=relations-VlsO9KQZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relations-VlsO9KQZ.js","sources":["../../../admin/src/hooks/useDebounce.ts","../../../admin/src/services/relations.ts","../../../admin/src/utils/relations.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport function useDebounce<TValue>(value: TValue, delay: number): TValue {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [value, delay]);\n\n return debouncedValue;\n}\n","import { generateNKeysBetween } from 'fractional-indexing';\n\nimport {\n RelationResult as RelResult,\n FindAvailable,\n FindExisting,\n} from '../../../shared/contracts/relations';\n\nimport { contentManagerApi } from './api';\n\nimport type { Modules } from '@strapi/types';\nimport type { errors } from '@strapi/utils';\n\ninterface RelationResult extends RelResult {\n __temp_key__: string;\n}\n\ntype GetRelationsResponse =\n | {\n results: Array<RelationResult>;\n pagination: {\n page: NonNullable<Modules.EntityService.Params.Pagination.PageNotation['page']>;\n pageSize: NonNullable<Modules.EntityService.Params.Pagination.PageNotation['pageSize']>;\n pageCount: number;\n total: number;\n } | null;\n error?: never;\n }\n | {\n results?: never;\n pagination?: never;\n error: errors.ApplicationError | errors.YupValidationError;\n };\n\nconst relationsApi = contentManagerApi.injectEndpoints({\n endpoints: (build) => ({\n getRelations: build.query<\n GetRelationsResponse,\n FindExisting.Params & {\n params?: FindExisting.Request['query'];\n }\n >({\n query: ({ model, id, targetField, params }) => {\n return {\n url: `/content-manager/relations/${model}/${id}/${targetField}`,\n method: 'GET',\n config: {\n params,\n },\n };\n },\n serializeQueryArgs: (args) => {\n const { endpointName, queryArgs } = args;\n return {\n endpointName,\n model: queryArgs.model,\n id: queryArgs.id,\n targetField: queryArgs.targetField,\n locale: queryArgs.params?.locale,\n status: queryArgs.params?.status,\n };\n },\n merge: (currentCache, newItems) => {\n if (currentCache.pagination && newItems.pagination) {\n if (currentCache.pagination.page < newItems.pagination.page) {\n /**\n * Relations will always have unique IDs, so we can therefore assume\n * that we only need to push the new items to the cache.\n *\n * Push new items at the beginning as latest items are shown first\n */\n currentCache.results = [\n ...prepareTempKeys(newItems.results, currentCache.results),\n ...currentCache.results,\n ];\n currentCache.pagination = newItems.pagination;\n } else if (newItems.pagination.page === 1) {\n /**\n * We're resetting the relations\n */\n currentCache.results = prepareTempKeys(newItems.results);\n currentCache.pagination = newItems.pagination;\n }\n }\n },\n forceRefetch({ currentArg, previousArg }) {\n if (!currentArg?.params && !previousArg?.params) {\n return false;\n }\n\n return (\n currentArg?.params?.page !== previousArg?.params?.page ||\n currentArg?.params?.pageSize !== previousArg?.params?.pageSize\n );\n },\n transformResponse: (response: FindExisting.Response) => {\n if ('results' in response && response.results) {\n return {\n ...response,\n results: prepareTempKeys(response.results.toReversed()),\n };\n } else {\n return response;\n }\n },\n providesTags: ['Relations'],\n }),\n searchRelations: build.query<\n FindAvailable.Response,\n FindAvailable.Params & {\n params?: FindAvailable.Request['query'];\n }\n >({\n query: ({ model, targetField, params }) => {\n return {\n url: `/content-manager/relations/${model}/${targetField}`,\n method: 'GET',\n config: {\n params,\n },\n };\n },\n serializeQueryArgs: (args) => {\n const { endpointName, queryArgs } = args;\n return {\n endpointName,\n model: queryArgs.model,\n targetField: queryArgs.targetField,\n _q: queryArgs.params?._q,\n idsToOmit: queryArgs.params?.idsToOmit,\n idsToInclude: queryArgs.params?.idsToInclude,\n };\n },\n merge: (currentCache, newItems) => {\n if (currentCache.pagination && newItems.pagination) {\n if (currentCache.pagination.page < newItems.pagination.page) {\n /**\n * Relations will always have unique IDs, so we can therefore assume\n * that we only need to push the new items to the cache.\n */\n const existingIds = currentCache.results.map((item) => item.documentId);\n const uniqueNewItems = newItems.results.filter(\n (item) => !existingIds.includes(item.documentId)\n );\n currentCache.results.push(...uniqueNewItems);\n currentCache.pagination = newItems.pagination;\n } else if (newItems.pagination.page === 1) {\n /**\n * We're resetting the relations\n */\n currentCache.results = newItems.results;\n currentCache.pagination = newItems.pagination;\n }\n }\n },\n forceRefetch({ currentArg, previousArg }) {\n if (!currentArg?.params && !previousArg?.params) {\n return false;\n }\n\n return (\n currentArg?.params?.page !== previousArg?.params?.page ||\n currentArg?.params?.pageSize !== previousArg?.params?.pageSize\n );\n },\n transformResponse: (response: FindAvailable.Response) => {\n if (response.results) {\n return {\n ...response,\n results: response.results,\n };\n } else {\n return response;\n }\n },\n }),\n }),\n});\n\n/**\n * @internal\n * @description Adds a `__temp_key__` to each relation item. This gives us\n * a stable identifier regardless of it's ids etc. that we can then use for drag and drop.\n */\nconst prepareTempKeys = (relations: RelResult[], existingRelations: RelationResult[] = []) => {\n const [firstItem] = existingRelations.slice(0);\n const keys = generateNKeysBetween(null, firstItem?.__temp_key__ ?? null, relations.length);\n\n return relations.map((datum, index) => ({\n ...datum,\n __temp_key__: keys[index],\n }));\n};\n\nconst { useGetRelationsQuery, useLazySearchRelationsQuery } = relationsApi;\n\nexport { useGetRelationsQuery, useLazySearchRelationsQuery };\nexport type { RelationResult };\n","import type { MainField } from './attributes';\nimport type { RelationResult } from '../../../shared/contracts/relations';\n\n/**\n * @internal\n * @description Get the label of a relation, the contract has [key: string]: unknown,\n * so we need to check if the mainFieldKey is defined and if the relation has a value\n * under that property. If it does, we then verify it's type of string and return it.\n *\n * We fallback to the documentId.\n */\nconst getRelationLabel = (relation: RelationResult, mainField?: MainField): string => {\n const label = mainField && relation[mainField.name] ? relation[mainField.name] : null;\n\n if (typeof label === 'string') {\n return label;\n }\n\n return relation.documentId;\n};\n\nexport { getRelationLabel };\n"],"names":["useDebounce","value","delay","debouncedValue","setDebouncedValue","useState","useEffect","handler","setTimeout","clearTimeout","relationsApi","contentManagerApi","injectEndpoints","endpoints","build","getRelations","query","model","id","targetField","params","url","method","config","serializeQueryArgs","args","endpointName","queryArgs","locale","status","merge","currentCache","newItems","pagination","page","results","prepareTempKeys","forceRefetch","currentArg","previousArg","pageSize","transformResponse","response","toReversed","providesTags","searchRelations","_q","idsToOmit","idsToInclude","existingIds","map","item","documentId","uniqueNewItems","filter","includes","push","relations","existingRelations","firstItem","slice","keys","generateNKeysBetween","__temp_key__","length","datum","index","useGetRelationsQuery","useLazySearchRelationsQuery","getRelationLabel","relation","mainField","label","name"],"mappings":";;;;;;AAEO,SAASA,WAAAA,CAAoBC,KAAa,EAAEC,KAAa,EAAA;AAC9D,IAAA,MAAM,CAACC,cAAAA,EAAgBC,iBAAkB,CAAA,GAAGC,cAASJ,CAAAA,KAAAA,CAAAA;IAErDK,eAAU,CAAA,IAAA;AACR,QAAA,MAAMC,UAAUC,UAAW,CAAA,IAAA;YACzBJ,iBAAkBH,CAAAA,KAAAA,CAAAA;SACjBC,EAAAA,KAAAA,CAAAA;QAEH,OAAO,IAAA;YACLO,YAAaF,CAAAA,OAAAA,CAAAA;AACf,SAAA;KACC,EAAA;AAACN,QAAAA,KAAAA;AAAOC,QAAAA;AAAM,KAAA,CAAA;IAEjB,OAAOC,cAAAA;AACT;;ACkBA,MAAMO,YAAAA,GAAeC,uBAAkBC,CAAAA,eAAe,CAAC;IACrDC,SAAW,EAAA,CAACC,SAAW;YACrBC,YAAcD,EAAAA,KAAAA,CAAME,KAAK,CAKvB;gBACAA,KAAO,EAAA,CAAC,EAAEC,KAAK,EAAEC,EAAE,EAAEC,WAAW,EAAEC,MAAM,EAAE,GAAA;oBACxC,OAAO;wBACLC,GAAK,EAAA,CAAC,2BAA2B,EAAEJ,KAAM,CAAA,CAAC,EAAEC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