@strapi/content-manager 0.0.0-experimental.e02b4637b3906c6d31048d00600d09a23a0edc3d → 0.0.0-experimental.e12978dcee698470990e9c5c63384faf2c307443

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 (487) 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-Ci3dN40b.js +298 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-Ci3dN40b.js.map +1 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-DFPdl9pm.mjs +276 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-DFPdl9pm.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-7xe8u-Pp.js +180 -0
  14. package/dist/admin/chunks/EditConfigurationPage-7xe8u-Pp.js.map +1 -0
  15. package/dist/admin/chunks/EditConfigurationPage-BFse-urJ.mjs +158 -0
  16. package/dist/admin/chunks/EditConfigurationPage-BFse-urJ.mjs.map +1 -0
  17. package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs +315 -0
  18. package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs.map +1 -0
  19. package/dist/admin/chunks/EditViewPage-CwYSs8Cq.js +338 -0
  20. package/dist/admin/chunks/EditViewPage-CwYSs8Cq.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-D9Ee-exF.mjs +955 -0
  26. package/dist/admin/chunks/Form-D9Ee-exF.mjs.map +1 -0
  27. package/dist/admin/chunks/Form-DDbxreII.js +978 -0
  28. package/dist/admin/chunks/Form-DDbxreII.js.map +1 -0
  29. package/dist/admin/chunks/History-D5joC76n.js +1384 -0
  30. package/dist/admin/chunks/History-D5joC76n.js.map +1 -0
  31. package/dist/admin/chunks/History-FuD7Tp5I.mjs +1361 -0
  32. package/dist/admin/chunks/History-FuD7Tp5I.mjs.map +1 -0
  33. package/dist/admin/chunks/Input-BHucdqva.mjs +8251 -0
  34. package/dist/admin/chunks/Input-BHucdqva.mjs.map +1 -0
  35. package/dist/admin/chunks/Input-BJCenRYN.js +8285 -0
  36. package/dist/admin/chunks/Input-BJCenRYN.js.map +1 -0
  37. package/dist/admin/chunks/ListConfigurationPage-3kSfz9xV.mjs +795 -0
  38. package/dist/admin/chunks/ListConfigurationPage-3kSfz9xV.mjs.map +1 -0
  39. package/dist/admin/chunks/ListConfigurationPage-CgJEcEkD.js +818 -0
  40. package/dist/admin/chunks/ListConfigurationPage-CgJEcEkD.js.map +1 -0
  41. package/dist/admin/chunks/ListViewPage-CvQ1w8IW.js +1154 -0
  42. package/dist/admin/chunks/ListViewPage-CvQ1w8IW.js.map +1 -0
  43. package/dist/admin/chunks/ListViewPage-DPUYRHss.mjs +1132 -0
  44. package/dist/admin/chunks/ListViewPage-DPUYRHss.mjs.map +1 -0
  45. package/dist/admin/chunks/NoContentTypePage-BRLLtjLb.mjs +58 -0
  46. package/dist/admin/chunks/NoContentTypePage-BRLLtjLb.mjs.map +1 -0
  47. package/dist/admin/chunks/NoContentTypePage-C5Vut1Af.js +60 -0
  48. package/dist/admin/chunks/NoContentTypePage-C5Vut1Af.js.map +1 -0
  49. package/dist/admin/chunks/NoPermissionsPage-B5HJbcjm.mjs +37 -0
  50. package/dist/admin/chunks/NoPermissionsPage-B5HJbcjm.mjs.map +1 -0
  51. package/dist/admin/chunks/NoPermissionsPage-BBXnpc7M.js +39 -0
  52. package/dist/admin/chunks/NoPermissionsPage-BBXnpc7M.js.map +1 -0
  53. package/dist/admin/chunks/Preview-C3lnOgQx.mjs +679 -0
  54. package/dist/admin/chunks/Preview-C3lnOgQx.mjs.map +1 -0
  55. package/dist/admin/chunks/Preview-DB7ZGawL.js +701 -0
  56. package/dist/admin/chunks/Preview-DB7ZGawL.js.map +1 -0
  57. package/dist/admin/chunks/ar-DckYq_WK.mjs +222 -0
  58. package/dist/{_chunks/ar-CCEVvqGG.mjs.map → admin/chunks/ar-DckYq_WK.mjs.map} +1 -1
  59. package/dist/admin/chunks/ar-DeQBSsfl.js +227 -0
  60. package/dist/{_chunks/ru-BT3ybNny.js.map → admin/chunks/ar-DeQBSsfl.js.map} +1 -1
  61. package/dist/admin/chunks/ca-ClDTvatJ.js +202 -0
  62. package/dist/admin/chunks/ca-ClDTvatJ.js.map +1 -0
  63. package/dist/admin/chunks/ca-DviY7mRj.mjs +197 -0
  64. package/dist/admin/chunks/ca-DviY7mRj.mjs.map +1 -0
  65. package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
  66. package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
  67. package/dist/admin/chunks/cs-C7OSYFQ7.mjs +122 -0
  68. package/dist/{_chunks/cs-CM2aBUar.mjs.map → admin/chunks/cs-C7OSYFQ7.mjs.map} +1 -1
  69. package/dist/admin/chunks/de-5QRlDHyR.mjs +195 -0
  70. package/dist/{_chunks/eu-CdALomew.mjs.map → admin/chunks/de-5QRlDHyR.mjs.map} +1 -1
  71. package/dist/admin/chunks/de-CbImAUA5.js +200 -0
  72. package/dist/{_chunks/gu-BRmF601H.js.map → admin/chunks/de-CbImAUA5.js.map} +1 -1
  73. package/dist/admin/chunks/en-CH__IC8g.js +316 -0
  74. package/dist/{_chunks/en-Bm0D0IWz.js.map → admin/chunks/en-CH__IC8g.js.map} +1 -1
  75. package/dist/admin/chunks/en-DBP0Gaid.mjs +311 -0
  76. package/dist/{_chunks/en-DKV44jRb.mjs.map → admin/chunks/en-DBP0Gaid.mjs.map} +1 -1
  77. package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
  78. package/dist/{_chunks/es-EUonQTon.js.map → admin/chunks/es-C8vLuvZL.js.map} +1 -1
  79. package/dist/admin/chunks/es-DkoWSExG.mjs +192 -0
  80. package/dist/{_chunks/ja-CtsUxOvk.mjs.map → admin/chunks/es-DkoWSExG.mjs.map} +1 -1
  81. package/dist/admin/chunks/eu-BG1xX7HK.mjs +198 -0
  82. package/dist/admin/chunks/eu-BG1xX7HK.mjs.map +1 -0
  83. package/dist/admin/chunks/eu-BJW3AvXu.js +203 -0
  84. package/dist/admin/chunks/eu-BJW3AvXu.js.map +1 -0
  85. package/dist/admin/chunks/fr-CFdRaRVj.mjs +215 -0
  86. package/dist/admin/chunks/fr-CFdRaRVj.mjs.map +1 -0
  87. package/dist/admin/chunks/fr-gQSilC7w.js +220 -0
  88. package/dist/admin/chunks/fr-gQSilC7w.js.map +1 -0
  89. package/dist/admin/chunks/gu-D5MMMXRs.mjs +196 -0
  90. package/dist/admin/chunks/gu-D5MMMXRs.mjs.map +1 -0
  91. package/dist/admin/chunks/gu-DPU4wyx7.js +201 -0
  92. package/dist/{_chunks/eu-VDH-3ovk.js.map → admin/chunks/gu-DPU4wyx7.js.map} +1 -1
  93. package/dist/admin/chunks/hi-Dp4omeBb.js +201 -0
  94. package/dist/admin/chunks/hi-Dp4omeBb.js.map +1 -0
  95. package/dist/admin/chunks/hi-lp17SCjr.mjs +196 -0
  96. package/dist/admin/chunks/hi-lp17SCjr.mjs.map +1 -0
  97. package/dist/{_chunks/hooks-BAaaKPS_.js → admin/chunks/hooks-D-sOYd1s.js} +6 -3
  98. package/dist/admin/chunks/hooks-D-sOYd1s.js.map +1 -0
  99. package/dist/admin/chunks/hooks-DMvik5y_.mjs +7 -0
  100. package/dist/admin/chunks/hooks-DMvik5y_.mjs.map +1 -0
  101. package/dist/admin/chunks/hu-CLka1U2C.mjs +198 -0
  102. package/dist/admin/chunks/hu-CLka1U2C.mjs.map +1 -0
  103. package/dist/admin/chunks/hu-CtFJuhTd.js +203 -0
  104. package/dist/admin/chunks/hu-CtFJuhTd.js.map +1 -0
  105. package/dist/admin/chunks/id-D7V5S1rB.js +161 -0
  106. package/dist/{_chunks/it-DkBIs7vD.js.map → admin/chunks/id-D7V5S1rB.js.map} +1 -1
  107. package/dist/admin/chunks/id-USfY9m1g.mjs +156 -0
  108. package/dist/{_chunks/id-BtwA9WJT.mjs.map → admin/chunks/id-USfY9m1g.mjs.map} +1 -1
  109. package/dist/admin/chunks/index-DYrCidCq.mjs +5436 -0
  110. package/dist/admin/chunks/index-DYrCidCq.mjs.map +1 -0
  111. package/dist/admin/chunks/index-DoUQnFTk.js +5506 -0
  112. package/dist/admin/chunks/index-DoUQnFTk.js.map +1 -0
  113. package/dist/admin/chunks/it-BAHrwmYS.mjs +158 -0
  114. package/dist/{_chunks/it-BrVPqaf1.mjs.map → admin/chunks/it-BAHrwmYS.mjs.map} +1 -1
  115. package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
  116. package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
  117. package/dist/admin/chunks/ja-BWKmBJFT.mjs +192 -0
  118. package/dist/{_chunks/ko-HVQRlfUI.mjs.map → admin/chunks/ja-BWKmBJFT.mjs.map} +1 -1
  119. package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
  120. package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ja-jdQM-B79.js.map} +1 -1
  121. package/dist/admin/chunks/ko-CgADGBNt.mjs +191 -0
  122. package/dist/{_chunks/es-CeXiYflN.mjs.map → admin/chunks/ko-CgADGBNt.mjs.map} +1 -1
  123. package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
  124. package/dist/{_chunks/ja-CcFe8diO.js.map → admin/chunks/ko-k46sEyzt.js.map} +1 -1
  125. package/dist/admin/chunks/layout-CqndYVtU.js +692 -0
  126. package/dist/admin/chunks/layout-CqndYVtU.js.map +1 -0
  127. package/dist/admin/chunks/layout-D2NJmgCw.mjs +672 -0
  128. package/dist/admin/chunks/layout-D2NJmgCw.mjs.map +1 -0
  129. package/dist/admin/chunks/ml-CnhCfOn_.mjs +196 -0
  130. package/dist/admin/chunks/ml-CnhCfOn_.mjs.map +1 -0
  131. package/dist/admin/chunks/ml-DqxPwODx.js +201 -0
  132. package/dist/admin/chunks/ml-DqxPwODx.js.map +1 -0
  133. package/dist/admin/chunks/ms-Bh09NFff.mjs +140 -0
  134. package/dist/{_chunks/ms-m_WjyWx7.mjs.map → admin/chunks/ms-Bh09NFff.mjs.map} +1 -1
  135. package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
  136. package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/ms-CvSC0OdG.js.map} +1 -1
  137. package/dist/admin/chunks/nl-BEubhS8C.js +203 -0
  138. package/dist/admin/chunks/nl-BEubhS8C.js.map +1 -0
  139. package/dist/admin/chunks/nl-C8HYflTc.mjs +198 -0
  140. package/dist/admin/chunks/nl-C8HYflTc.mjs.map +1 -0
  141. package/dist/admin/chunks/objects-BJTP843m.js +343 -0
  142. package/dist/admin/chunks/objects-BJTP843m.js.map +1 -0
  143. package/dist/admin/chunks/objects-D2z-IJgu.mjs +317 -0
  144. package/dist/admin/chunks/objects-D2z-IJgu.mjs.map +1 -0
  145. package/dist/admin/chunks/pl-DWhGDzmM.js +200 -0
  146. package/dist/{_chunks/ca-Cmk45QO6.js.map → admin/chunks/pl-DWhGDzmM.js.map} +1 -1
  147. package/dist/admin/chunks/pl-MFCZJZuZ.mjs +195 -0
  148. package/dist/{_chunks/ca-5U32ON2v.mjs.map → admin/chunks/pl-MFCZJZuZ.mjs.map} +1 -1
  149. package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
  150. package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CPtAXD-4.js.map} +1 -1
  151. package/dist/admin/chunks/pt-BR-CcotyBGJ.mjs +197 -0
  152. package/dist/{_chunks/pt-BR-C71iDxnh.mjs.map → admin/chunks/pt-BR-CcotyBGJ.mjs.map} +1 -1
  153. package/dist/admin/chunks/pt-BoPxN80n.js +96 -0
  154. package/dist/admin/chunks/pt-BoPxN80n.js.map +1 -0
  155. package/dist/admin/chunks/pt-HbmgeiYO.mjs +93 -0
  156. package/dist/admin/chunks/pt-HbmgeiYO.mjs.map +1 -0
  157. package/dist/admin/chunks/ru-C0op0ALG.js +232 -0
  158. package/dist/admin/chunks/ru-C0op0ALG.js.map +1 -0
  159. package/dist/admin/chunks/ru-CB4BUyQp.mjs +230 -0
  160. package/dist/{_chunks/ru-BE6A4Exp.mjs.map → admin/chunks/ru-CB4BUyQp.mjs.map} +1 -1
  161. package/dist/admin/chunks/sa-B_FuPyMw.js +201 -0
  162. package/dist/admin/chunks/sa-B_FuPyMw.js.map +1 -0
  163. package/dist/admin/chunks/sa-n_aPA-pU.mjs +196 -0
  164. package/dist/admin/chunks/sa-n_aPA-pU.mjs.map +1 -0
  165. package/dist/admin/chunks/sk-D_iXML2C.js +203 -0
  166. package/dist/admin/chunks/sk-D_iXML2C.js.map +1 -0
  167. package/dist/admin/chunks/sk-tn_BDjE2.mjs +198 -0
  168. package/dist/admin/chunks/sk-tn_BDjE2.mjs.map +1 -0
  169. package/dist/admin/chunks/sv-BstBC1Yp.js +203 -0
  170. package/dist/admin/chunks/sv-BstBC1Yp.js.map +1 -0
  171. package/dist/admin/chunks/sv-cq4ZrQRd.mjs +198 -0
  172. package/dist/admin/chunks/sv-cq4ZrQRd.mjs.map +1 -0
  173. package/dist/admin/chunks/th-lXoOCqPC.js +149 -0
  174. package/dist/{_chunks/th-D9_GfAjc.js.map → admin/chunks/th-lXoOCqPC.js.map} +1 -1
  175. package/dist/admin/chunks/th-mUH7hEtc.mjs +144 -0
  176. package/dist/{_chunks/uk-CR-zDhAY.mjs.map → admin/chunks/th-mUH7hEtc.mjs.map} +1 -1
  177. package/dist/admin/chunks/tr-CkS6sLIE.js +200 -0
  178. package/dist/admin/chunks/tr-CkS6sLIE.js.map +1 -0
  179. package/dist/admin/chunks/tr-Yt38daxh.mjs +195 -0
  180. package/dist/{_chunks/de-C72KDNOl.mjs.map → admin/chunks/tr-Yt38daxh.mjs.map} +1 -1
  181. package/dist/admin/chunks/uk-BtM6WnaE.mjs +313 -0
  182. package/dist/admin/chunks/uk-BtM6WnaE.mjs.map +1 -0
  183. package/dist/admin/chunks/uk-DB6OgySY.js +318 -0
  184. package/dist/admin/chunks/uk-DB6OgySY.js.map +1 -0
  185. package/dist/admin/chunks/usePrev-Cm_0-qRC.js +194 -0
  186. package/dist/admin/chunks/usePrev-Cm_0-qRC.js.map +1 -0
  187. package/dist/admin/chunks/usePrev-DinC2aha.mjs +187 -0
  188. package/dist/admin/chunks/usePrev-DinC2aha.mjs.map +1 -0
  189. package/dist/admin/chunks/vi-BGr1X_HZ.js +112 -0
  190. package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-BGr1X_HZ.js.map} +1 -1
  191. package/dist/admin/chunks/vi-CvBGlTjr.mjs +108 -0
  192. package/dist/{_chunks/vi-DUXIk_fw.mjs.map → admin/chunks/vi-CvBGlTjr.mjs.map} +1 -1
  193. package/dist/admin/chunks/zh-BmF-sHaT.mjs +205 -0
  194. package/dist/admin/chunks/zh-BmF-sHaT.mjs.map +1 -0
  195. package/dist/admin/chunks/zh-DwFu_Kfj.js +210 -0
  196. package/dist/admin/chunks/zh-DwFu_Kfj.js.map +1 -0
  197. package/dist/admin/chunks/zh-Hans-CI0HKio3.mjs +934 -0
  198. package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-CI0HKio3.mjs.map} +1 -1
  199. package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
  200. package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
  201. package/dist/admin/index.js +25 -4
  202. package/dist/admin/index.js.map +1 -1
  203. package/dist/admin/index.mjs +17 -12
  204. package/dist/admin/index.mjs.map +1 -1
  205. package/dist/admin/src/components/InjectionZone.d.ts +7 -1
  206. package/dist/admin/src/content-manager.d.ts +7 -2
  207. package/dist/admin/src/exports.d.ts +1 -0
  208. package/dist/admin/src/features/DocumentContext.d.ts +48 -0
  209. package/dist/admin/src/features/DocumentRBAC.d.ts +3 -2
  210. package/dist/admin/src/history/services/historyVersion.d.ts +2 -2
  211. package/dist/admin/src/hooks/useDocument.d.ts +23 -4
  212. package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
  213. package/dist/admin/src/index.d.ts +1 -0
  214. package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
  215. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -2
  216. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +3 -3
  217. package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
  218. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +55 -0
  219. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -0
  220. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +4 -1
  221. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -1
  222. package/dist/admin/src/pages/EditView/components/FormInputs/Relations/RelationModal.d.ts +7 -0
  223. package/dist/admin/src/pages/EditView/components/FormInputs/{Relations.d.ts → Relations/Relations.d.ts} +8 -2
  224. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
  225. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +32 -1
  226. package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +3 -3
  227. package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
  228. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
  229. package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
  230. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  231. package/dist/admin/src/preview/index.d.ts +3 -0
  232. package/dist/admin/src/preview/pages/Preview.d.ts +15 -0
  233. package/dist/admin/src/preview/routes.d.ts +3 -0
  234. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  235. package/dist/admin/src/router.d.ts +1 -1
  236. package/dist/admin/src/services/api.d.ts +1 -1
  237. package/dist/admin/src/services/components.d.ts +2 -2
  238. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  239. package/dist/admin/src/services/documents.d.ts +16 -19
  240. package/dist/admin/src/services/init.d.ts +1 -1
  241. package/dist/admin/src/services/relations.d.ts +2 -2
  242. package/dist/admin/src/services/uid.d.ts +3 -3
  243. package/dist/server/index.js +5472 -4157
  244. package/dist/server/index.js.map +1 -1
  245. package/dist/server/index.mjs +5457 -4139
  246. package/dist/server/index.mjs.map +1 -1
  247. package/dist/server/src/bootstrap.d.ts.map +1 -1
  248. package/dist/server/src/controllers/index.d.ts.map +1 -1
  249. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  250. package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
  251. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  252. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  253. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  254. package/dist/server/src/history/services/history.d.ts +3 -3
  255. package/dist/server/src/history/services/history.d.ts.map +1 -1
  256. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  257. package/dist/server/src/history/services/utils.d.ts +6 -11
  258. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  259. package/dist/server/src/index.d.ts +7 -6
  260. package/dist/server/src/index.d.ts.map +1 -1
  261. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  262. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  263. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  264. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  265. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  266. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  267. package/dist/server/src/preview/index.d.ts +4 -0
  268. package/dist/server/src/preview/index.d.ts.map +1 -0
  269. package/dist/server/src/preview/routes/index.d.ts +8 -0
  270. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  271. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  272. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  273. package/dist/server/src/preview/services/index.d.ts +16 -0
  274. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  275. package/dist/server/src/preview/services/preview-config.d.ts +32 -0
  276. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  277. package/dist/server/src/preview/services/preview.d.ts +12 -0
  278. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  279. package/dist/server/src/preview/utils.d.ts +19 -0
  280. package/dist/server/src/preview/utils.d.ts.map +1 -0
  281. package/dist/server/src/register.d.ts.map +1 -1
  282. package/dist/server/src/routes/index.d.ts.map +1 -1
  283. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  284. package/dist/server/src/services/document-metadata.d.ts +12 -10
  285. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  286. package/dist/server/src/services/index.d.ts +7 -6
  287. package/dist/server/src/services/index.d.ts.map +1 -1
  288. package/dist/server/src/services/utils/count.d.ts +1 -1
  289. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  290. package/dist/server/src/services/utils/populate.d.ts +3 -3
  291. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  292. package/dist/server/src/utils/index.d.ts +2 -0
  293. package/dist/server/src/utils/index.d.ts.map +1 -1
  294. package/dist/shared/contracts/collection-types.d.ts +0 -1
  295. package/dist/shared/contracts/components.d.ts +0 -1
  296. package/dist/shared/contracts/content-types.d.ts +0 -1
  297. package/dist/shared/contracts/history-versions.d.ts +0 -1
  298. package/dist/shared/contracts/index.d.ts +1 -1
  299. package/dist/shared/contracts/index.d.ts.map +1 -1
  300. package/dist/shared/contracts/init.d.ts +0 -1
  301. package/dist/shared/contracts/preview.d.ts +26 -0
  302. package/dist/shared/contracts/preview.d.ts.map +1 -0
  303. package/dist/shared/contracts/relations.d.ts +1 -2
  304. package/dist/shared/contracts/relations.d.ts.map +1 -1
  305. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  306. package/dist/shared/contracts/single-types.d.ts +0 -1
  307. package/dist/shared/contracts/uid.d.ts +0 -1
  308. package/dist/shared/index.d.ts +0 -1
  309. package/dist/shared/index.js +37 -22
  310. package/dist/shared/index.js.map +1 -1
  311. package/dist/shared/index.mjs +36 -23
  312. package/dist/shared/index.mjs.map +1 -1
  313. package/package.json +21 -17
  314. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  315. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  316. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  317. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  318. package/dist/_chunks/ComponentConfigurationPage-DfFSZQxe.mjs +0 -236
  319. package/dist/_chunks/ComponentConfigurationPage-DfFSZQxe.mjs.map +0 -1
  320. package/dist/_chunks/ComponentConfigurationPage-FqfsxQ1j.js +0 -255
  321. package/dist/_chunks/ComponentConfigurationPage-FqfsxQ1j.js.map +0 -1
  322. package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
  323. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
  324. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  325. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  326. package/dist/_chunks/EditConfigurationPage-Cn0e8t3I.js +0 -151
  327. package/dist/_chunks/EditConfigurationPage-Cn0e8t3I.js.map +0 -1
  328. package/dist/_chunks/EditConfigurationPage-DdPNAbl3.mjs +0 -132
  329. package/dist/_chunks/EditConfigurationPage-DdPNAbl3.mjs.map +0 -1
  330. package/dist/_chunks/EditViewPage-B82x_x1b.mjs +0 -224
  331. package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +0 -1
  332. package/dist/_chunks/EditViewPage-DlxEHhUt.js +0 -243
  333. package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +0 -1
  334. package/dist/_chunks/Field-COL25JiC.js +0 -5595
  335. package/dist/_chunks/Field-COL25JiC.js.map +0 -1
  336. package/dist/_chunks/Field-DufHXW17.mjs +0 -5563
  337. package/dist/_chunks/Field-DufHXW17.mjs.map +0 -1
  338. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  339. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  340. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  341. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  342. package/dist/_chunks/Form-BssUwrTO.js +0 -779
  343. package/dist/_chunks/Form-BssUwrTO.js.map +0 -1
  344. package/dist/_chunks/Form-u_kAOhwB.mjs +0 -758
  345. package/dist/_chunks/Form-u_kAOhwB.mjs.map +0 -1
  346. package/dist/_chunks/History-C9t9UqpO.js +0 -1066
  347. package/dist/_chunks/History-C9t9UqpO.js.map +0 -1
  348. package/dist/_chunks/History-DRwA3oMM.mjs +0 -1045
  349. package/dist/_chunks/History-DRwA3oMM.mjs.map +0 -1
  350. package/dist/_chunks/ListConfigurationPage-BXYPohh-.js +0 -652
  351. package/dist/_chunks/ListConfigurationPage-BXYPohh-.js.map +0 -1
  352. package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs +0 -632
  353. package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs.map +0 -1
  354. package/dist/_chunks/ListViewPage-CELx2ysp.mjs +0 -828
  355. package/dist/_chunks/ListViewPage-CELx2ysp.mjs.map +0 -1
  356. package/dist/_chunks/ListViewPage-D2VD8Szg.js +0 -852
  357. package/dist/_chunks/ListViewPage-D2VD8Szg.js.map +0 -1
  358. package/dist/_chunks/NoContentTypePage-BV9IjJSM.js +0 -51
  359. package/dist/_chunks/NoContentTypePage-BV9IjJSM.js.map +0 -1
  360. package/dist/_chunks/NoContentTypePage-DtJ9jcfk.mjs +0 -51
  361. package/dist/_chunks/NoContentTypePage-DtJ9jcfk.mjs.map +0 -1
  362. package/dist/_chunks/NoPermissionsPage-DWleVYK7.mjs +0 -23
  363. package/dist/_chunks/NoPermissionsPage-DWleVYK7.mjs.map +0 -1
  364. package/dist/_chunks/NoPermissionsPage-Dp8NpF9I.js +0 -23
  365. package/dist/_chunks/NoPermissionsPage-Dp8NpF9I.js.map +0 -1
  366. package/dist/_chunks/Relations-BTcf5xaw.mjs +0 -703
  367. package/dist/_chunks/Relations-BTcf5xaw.mjs.map +0 -1
  368. package/dist/_chunks/Relations-DR7EUgyC.js +0 -723
  369. package/dist/_chunks/Relations-DR7EUgyC.js.map +0 -1
  370. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  371. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  372. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  373. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  374. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  375. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  376. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  377. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  378. package/dist/_chunks/de-CCEmbAah.js +0 -199
  379. package/dist/_chunks/en-Bm0D0IWz.js +0 -293
  380. package/dist/_chunks/en-DKV44jRb.mjs +0 -293
  381. package/dist/_chunks/es-CeXiYflN.mjs +0 -196
  382. package/dist/_chunks/es-EUonQTon.js +0 -196
  383. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  384. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  385. package/dist/_chunks/fr-B7kGGg3E.js +0 -206
  386. package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
  387. package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
  388. package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
  389. package/dist/_chunks/gu-BRmF601H.js +0 -200
  390. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  391. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  392. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  393. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  394. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  395. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  396. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  397. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  398. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  399. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  400. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  401. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  402. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  403. package/dist/_chunks/id-B5Ser98A.js +0 -160
  404. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  405. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  406. package/dist/_chunks/index-BdMf2lfT.js +0 -4109
  407. package/dist/_chunks/index-BdMf2lfT.js.map +0 -1
  408. package/dist/_chunks/index-wnqzm4Q8.mjs +0 -4090
  409. package/dist/_chunks/index-wnqzm4Q8.mjs.map +0 -1
  410. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  411. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  412. package/dist/_chunks/ja-CcFe8diO.js +0 -196
  413. package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
  414. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  415. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  416. package/dist/_chunks/layout-2CfjL0T9.mjs +0 -471
  417. package/dist/_chunks/layout-2CfjL0T9.mjs.map +0 -1
  418. package/dist/_chunks/layout-B2MyZU-_.js +0 -489
  419. package/dist/_chunks/layout-B2MyZU-_.js.map +0 -1
  420. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  421. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  422. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  423. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  424. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  425. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  426. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  427. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  428. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  429. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  430. package/dist/_chunks/objects-gigeqt7s.js +0 -49
  431. package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
  432. package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
  433. package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
  434. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  435. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  436. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  437. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  438. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  439. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  440. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  441. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  442. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  443. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  444. package/dist/_chunks/relations-BH7JJGGe.js +0 -134
  445. package/dist/_chunks/relations-BH7JJGGe.js.map +0 -1
  446. package/dist/_chunks/relations-C0w0GcXi.mjs +0 -135
  447. package/dist/_chunks/relations-C0w0GcXi.mjs.map +0 -1
  448. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  449. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  450. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  451. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  452. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  453. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  454. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  455. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  456. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  457. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  458. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  459. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  460. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  461. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  462. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  463. package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
  464. package/dist/_chunks/th-D9_GfAjc.js +0 -148
  465. package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
  466. package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
  467. package/dist/_chunks/tr-D9UH-O_R.js +0 -199
  468. package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
  469. package/dist/_chunks/uk-C8EiqJY7.js +0 -144
  470. package/dist/_chunks/uk-C8EiqJY7.js.map +0 -1
  471. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  472. package/dist/_chunks/useDebounce-CtcjDB3L.js +0 -28
  473. package/dist/_chunks/useDebounce-CtcjDB3L.js.map +0 -1
  474. package/dist/_chunks/useDebounce-DmuSJIF3.mjs +0 -29
  475. package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +0 -1
  476. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
  477. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
  478. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
  479. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
  480. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  481. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  482. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  483. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  484. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  485. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  486. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  487. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":";AAIA,wBAWE"}
1
+ {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":";AAKA,wBAYE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAUE"}
@@ -1 +1 @@
1
- {"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/relations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;;uCAuHb,GAAG,OAAO,KAAK,EAAE;IA4H1D;;;;OAIG;uBACsB,GAAG;sBAwIJ,GAAG;;AA1Q7B,wBA+VE"}
1
+ {"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/relations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;;uCA6Ib,GAAG,OAAO,KAAK,EAAE;IA4H1D;;;;OAIG;uBACsB,GAAG;sBAwIJ,GAAG;;AA1Q7B,wBAkXE"}
@@ -1,8 +1,23 @@
1
- import { UID } from '@strapi/types';
1
+ import type { UID } from '@strapi/types';
2
2
  import { DocumentVersion, GetMetadataOptions } from '../../services/document-metadata';
3
+ import type { AvailableLocaleDocument } from '../../../../shared/contracts/collection-types';
3
4
  /**
4
5
  * Format a document with metadata. Making sure the metadata response is
5
6
  * correctly sanitized for the current user
6
7
  */
7
- export declare const formatDocumentWithMetadata: (permissionChecker: any, uid: UID.ContentType, document: DocumentVersion, opts?: GetMetadataOptions) => Promise<any>;
8
+ export declare const formatDocumentWithMetadata: (permissionChecker: any, uid: UID.ContentType, document: DocumentVersion, opts?: GetMetadataOptions) => Promise<{
9
+ meta: {
10
+ availableLocales: AvailableLocaleDocument[];
11
+ availableStatus: Partial<DocumentVersion>[];
12
+ };
13
+ data: {
14
+ status: string | undefined;
15
+ id: string | number;
16
+ documentId: string;
17
+ locale?: string | undefined;
18
+ localizations?: DocumentVersion[] | undefined;
19
+ updatedAt?: string | Date | null | undefined;
20
+ publishedAt?: string | Date | null | undefined;
21
+ };
22
+ }>;
8
23
  //# sourceMappingURL=metadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../server/src/controllers/utils/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAKpC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAOvF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,sBAClB,GAAG,OACjB,IAAI,WAAW,YACV,eAAe,SACnB,kBAAkB,iBA6BzB,CAAC"}
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../server/src/controllers/utils/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAKzC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,KAAK,EACV,uBAAuB,EAExB,MAAM,+CAA+C,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,sBAClB,GAAG,OACjB,IAAI,WAAW,YACV,eAAe,SACnB,kBAAkB;;;;;;;;;;;;;;EA6BzB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Core } from '@strapi/types';
2
- import { HistoryVersions } from '../../../../shared/contracts';
2
+ import type { HistoryVersions } from '../../../../shared/contracts';
3
3
  declare const createHistoryVersionController: ({ strapi }: {
4
4
  strapi: Core.Strapi;
5
5
  }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"history-version.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/controllers/history-version.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,eAAe,CAAC;AAI/C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AA+B/D,QAAA,MAAM,8BAA8B,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;;;;;;;;;;CAgF1E,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"history-version.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/controllers/history-version.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,eAAe,CAAC;AAI/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AA8BpE,QAAA,MAAM,8BAA8B,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;;;;;;;;;;CAgF1E,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
- import type { Core, Data } from '@strapi/types';
2
+ import type { Core, Data, Modules } from '@strapi/types';
3
3
  import type { HistoryVersions } from '../../../../shared/contracts';
4
- import { CreateHistoryVersion, HistoryVersionDataResponse } from '../../../../shared/contracts/history-versions';
4
+ import type { CreateHistoryVersion, HistoryVersionDataResponse } from '../../../../shared/contracts/history-versions';
5
5
  declare const createHistoryService: ({ strapi }: {
6
6
  strapi: Core.Strapi;
7
7
  }) => {
@@ -10,7 +10,7 @@ declare const createHistoryService: ({ strapi }: {
10
10
  results: HistoryVersions.HistoryVersionDataResponse[];
11
11
  pagination: HistoryVersions.Pagination;
12
12
  }>;
13
- restoreVersion(versionId: Data.ID): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
13
+ restoreVersion(versionId: Data.ID): Promise<Modules.Documents.AnyDocument>;
14
14
  };
15
15
  export { createHistoryService };
16
16
  //# sourceMappingURL=history.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/history.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAkB,MAAM,eAAe,CAAC;AAKhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,+CAA+C,CAAC;AAQvD,QAAA,MAAM,oBAAoB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;sCAKrB,oCAAoC;6BAU7C,gBAAgB,kBAAkB,QAAQ,GAAG,QAAQ;QAClF,OAAO,EAAE,0CAA0C,EAAE,CAAC;QACtD,UAAU,EAAE,gBAAgB,UAAU,CAAC;KACxC,CAAC;8BAoJ8B,KAAK,EAAE;CAqE1C,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/history.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAU,MAAM,eAAe,CAAC;AAKjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EACV,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,+CAA+C,CAAC;AAQvD,QAAA,MAAM,oBAAoB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;sCAKrB,oCAAoC;6BAU7C,gBAAgB,kBAAkB,QAAQ,GAAG,QAAQ;QAClF,OAAO,EAAE,0CAA0C,EAAE,CAAC;QACtD,UAAU,EAAE,gBAAgB,UAAU,CAAC;KACxC,CAAC;8BAsI8B,KAAK,EAAE;CA0F1C,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycles.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/lifecycles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AA6FxD,QAAA,MAAM,uBAAuB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;CAuGnE,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"lifecycles.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/lifecycles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AA6FxD,QAAA,MAAM,uBAAuB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;CA8GnE,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1,8 +1,7 @@
1
- import type { Struct, UID } from '@strapi/types';
2
- import { Core, Data, Modules, Schema } from '@strapi/types';
3
- import { CreateHistoryVersion } from '../../../../shared/contracts/history-versions';
4
- import { HistoryVersions } from '../../../../shared/contracts';
5
- import { RelationResult } from '../../../../shared/contracts/relations';
1
+ import type { Core, Modules, Schema, Data, Struct, UID } from '@strapi/types';
2
+ import type { CreateHistoryVersion } from '../../../../shared/contracts/history-versions';
3
+ import type { HistoryVersions } from '../../../../shared/contracts';
4
+ import type { RelationResult } from '../../../../shared/contracts/relations';
6
5
  type RelationResponse = {
7
6
  results: RelationResult[];
8
7
  meta: {
@@ -16,12 +15,8 @@ export declare const createServiceUtils: ({ strapi }: {
16
15
  added: Struct.SchemaAttributes;
17
16
  removed: Struct.SchemaAttributes;
18
17
  };
19
- getRelationRestoreValue: (versionRelationData: Data.Entity, attribute: Schema.Attribute.RelationWithTarget) => Promise<Modules.Documents.AnyDocument | Modules.Documents.AnyDocument[] | ({
20
- id: Data.ID;
21
- } & Pick<{
22
- [x: string]: any;
23
- }, string> & any[]) | null>;
24
- getMediaRestoreValue: (versionRelationData: Data.Entity, attribute: Schema.Attribute.Media<any, boolean>) => Promise<any>;
18
+ getRelationRestoreValue: (versionRelationData: Modules.Documents.AnyDocument | Modules.Documents.AnyDocument[], attribute: Schema.Attribute.RelationWithTarget) => Promise<Modules.Documents.AnyDocument | (Modules.Documents.AnyDocument | null)[] | null>;
19
+ getMediaRestoreValue: (versionRelationData: Modules.Documents.AnyDocument | Modules.Documents.AnyDocument[]) => Promise<any>;
25
20
  getDefaultLocale: () => Promise<any>;
26
21
  isLocalizedContentType: (model: Schema.ContentType) => any;
27
22
  getLoca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AAE,CAAA;KAAE,EAAE,KAAG,QAAQ,gBAAgB,CAAC;mCAwC7E;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,EAAE,mBACc,OAAO,SAAS,CAAC,kBAAkB,KACnD,QAAQ,gBAAgB,CAAC;CAkD7B,CAAC"}
@@ -167,9 +167,9 @@ declare const _default: () => {
167
167
  'document-metadata': ({ strapi }: {
168
168
  strapi: import("@strapi/types/dist/core").Strapi;
169
169
  }) => {
170
- getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[], validatableFields?: string[]): Promise<import("../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
170
+ getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[]): Promise<import("../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
171
171
  getAvailableStatus(version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[]): Partial<import("./services/document-metadata").DocumentVersion> | undefined;
172
- getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./services/document-metadata").DocumentVersion[]): Promise<import("../../shared/contracts/collection-types").AvailableStatusDocument[]>;
172
+ getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./services/document-metadata").DocumentVersion[]): Promise<any[]>;
173
173
  getStatus(version: import("./services/document-metadata").DocumentVersion, otherDocumentStatuses?: import("../../shared/contracts/collection-types").AvailableStatusDocument[] | undefined): string;
174
174
  getMetadata(uid: import("@strapi/types/dist/uid").ContentType, version: import("./services/document-metadata").DocumentVersion, { availableLocales, availableStatus }?: import("./services/document-metadata").GetMetadataOptions): Promise<{
175
175
  availableLocales: import("../../shared/contracts/collection-types").AvailableLocaleDocument[];
@@ -178,11 +178,12 @@ declare const _default: () => {
178
178
  formatDocumentWithMetadata(uid: import("@strapi/types/dist/uid").ContentType, document: import("./services/document-metadata").DocumentVersion, opts?: import("./services/document-metadata").GetMetadataOptions): Promise<{
179
179
  data: {
180
180
  status: string | undefined;
181
- id: number;
181
+ id: string | number;
182
182
  documentId: string;
183
- locale: string;
184
- updatedAt: string | Date | null;
185
- publishedAt: string | Date | null;
183
+ locale?: string | undefined;
184
+ localizations?: import("./services/document-metadata").DocumentVersion[] | undefined;
185
+ updatedAt?: string | Date | null | undefined;
186
+ publishedAt?: string | Date | null | undefined;
186
187
  };
187
188
  meta: {
188
189
  availableLocales: import("../../shared/contracts/collection-types").AvailableLocaleDocument[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAUE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAUE"}
@@ -0,0 +1,2 @@
1
+ export declare const controllers: Record<string, import("@strapi/types/dist/core").Controller>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/controllers/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,8DAM0B,CAAC"}
@@ -0,0 +1,13 @@
1
+ declare const createPreviewController: () => {
2
+ /**
3
+ * Transforms an entry into a preview URL, so that it can be previewed
4
+ * in the Content Manager.
5
+ */
6
+ getPreviewUrl(ctx: import("koa").Context): Promise<{
7
+ data: {
8
+ url: string | undefined;
9
+ };
10
+ }>;
11
+ };
12
+ export { createPreviewController };
13
+ //# sourceMappingURL=preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/controllers/preview.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,uBAAuB;IAEzB;;;OAGG;;;;;;CAwBN,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="node" />
2
+ import type { Core, UID } from '@strapi/types';
3
+ import { Preview } from '../../../../../shared/contracts';
4
+ import type { HandlerParams } from '../../services/preview-config';
5
+ export declare const validatePreviewUrl: (strapi: Core.Strapi, uid: UID.ContentType, params: Preview.GetPreviewUrl.Request['query']) => Promise<HandlerParams>;
6
+ //# sourceMappingURL=preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../../server/src/preview/controllers/validation/preview.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAYnE,eAAO,MAAM,kBAAkB,WACrB,KAAK,MAAM,OACd,IAAI,WAAW,UACZ,QAAQ,aAAa,QAAQ,CAAC,OAAO,CAAC,KAC7C,QAAQ,aAAa,CAwCvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Plugin } from '@strapi/types';
2
+ declare const _default: Partial<Plugin.LoadedPlugin>;
3
+ export default _default;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/preview/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;;AAyB5C,wBAA4B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The routes will be merged with the other Content Manager routers,
3
+ * so we need to avoid conficts in the router name, and to prefix the path for each route.
4
+ */
5
+ export declare const routes: {
6
+ preview: import("@strapi/types/dist/core").Router;
7
+ };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/routes/index.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,MAAM;;CAEsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Plugin } from '@strapi/types';
2
+ declare const previewRouter: Plugin.LoadedPlugin['routes'][string];
3
+ export { previewRouter };
4
+ //# sourceMappingURL=preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/routes/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,MAAM,CAaxD,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const services: {
2
+ preview: ({ strapi }: {
3
+ strapi: import("@strapi/types/dist/core").Strapi;
4
+ }) => {
5
+ getPreviewUrl(uid: import("@strapi/types/dist/uid").ContentType, params: import("./preview-config").HandlerParams): Promise<string | undefined>;
6
+ };
7
+ 'preview-config': ({ strapi }: {
8
+ strapi: import("@strapi/types/dist/core").Strapi;
9
+ }) => {
10
+ register(): void;
11
+ isEnabled(): boolean;
12
+ validate(): void;
13
+ getPreviewHandler(): (uid: import("@strapi/types/dist/uid").Schema, params: import("./preview-config").HandlerParams) => string | undefined;
14
+ };
15
+ };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/services/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAGsB,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { Core, UID } from '@strapi/types';
2
+ export type HandlerParams = {
3
+ documentId: string;
4
+ locale: string;
5
+ status: 'published' | 'draft';
6
+ };
7
+ export interface PreviewConfig {
8
+ enabled: boolean;
9
+ config: {
10
+ allowedOrigins: string[];
11
+ handler: (uid: UID.Schema, params: HandlerParams) => string | undefined;
12
+ };
13
+ }
14
+ /**
15
+ * Read configuration for static preview
16
+ */
17
+ declare const createPreviewConfigService: ({ strapi }: {
18
+ strapi: Core.Strapi;
19
+ }) => {
20
+ register(): void;
21
+ isEnabled(): boolean;
22
+ /**
23
+ * Validate if the configuration is valid
24
+ */
25
+ validate(): void;
26
+ /**
27
+ * Utility to get the preview handler from the configuration
28
+ */
29
+ getPreviewHandler(): PreviewConfig['config']['handler'];
30
+ };
31
+ export { createPreviewConfigService };
32
+ //# sourceMappingURL=preview-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-config.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/services/preview-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QAEN,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,KAAK,MAAM,GAAG,SAAS,CAAC;KACzE,CAAC;CACH;AAoCD;;GAEG;AACH,QAAA,MAAM,0BAA0B,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;IAoCnE;;OAEG;;IAgBH;;OAEG;yBACkB,aAAa,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;CAc1D,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Core, UID } from '@strapi/types';
2
+ import type { HandlerParams } from './preview-config';
3
+ /**
4
+ * Responsible of routing an entry to a preview URL.
5
+ */
6
+ declare const createPreviewService: ({ strapi }: {
7
+ strapi: Core.Strapi;
8
+ }) => {
9
+ getPreviewUrl(uid: UID.ContentType, params: HandlerParams): Promise<string | undefined>;
10
+ };
11
+ export { createPreviewService };
12
+ //# sourceMappingURL=preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/services/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAI/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,QAAA,MAAM,oBAAoB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;uBAIpC,IAAI,WAAW,UAAU,aAAa;CAelE,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { Core } from '@strapi/types';
2
+ type PreviewServices = typeof import('./services').services;
3
+ declare function getService<T extends keyof PreviewServices>(strapi: Core.Strapi, name: T): ReturnType<{
4
+ preview: ({ strapi }: {
5
+ strapi: Core.Strapi;
6
+ }) => {
7
+ getPreviewUrl(uid: import("@strapi/types/dist/uid").ContentType, params: import("./services/preview-config").HandlerParams): Promise<string | undefined>;
8
+ };
9
+ 'preview-config': ({ strapi }: {
10
+ strapi: Core.Strapi;
11
+ }) => {
12
+ register(): void;
13
+ isEnabled(): boolean;
14
+ validate(): void;
15
+ getPreviewHandler(): (uid: import("@strapi/types/dist/uid").Schema, params: import("./services/preview-config").HandlerParams) => string | undefined;
16
+ };
17
+ }[T]>;
18
+ export { getService };
19
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../server/src/preview/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,KAAK,eAAe,GAAG,cAAc,YAAY,EAAE,QAAQ,CAAC;AAE5D,iBAAS,UAAU,CAAC,CAAC,SAAS,MAAM,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC;;;;;;;;;;;;;;MAGhF;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C,QAAA,MAAM,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU,CAE7C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,QAAA,MAAM,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU,CAG7C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
@@ -1 +1 @@
1
- {"version":3,"file":"document-manager.d.ts","sourceRoot":"","sources":["../../../../server/src/services/document-manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,UAAU,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAKxD,KAAK,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC;AACpD,KAAK,gBAAgB,CAAC,OAAO,SAAS,MAAM,UAAU,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7F,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAQjE,QAAA,MAAM,eAAe,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;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cAAc,SACjB,KAAK,iBAAiB,WAAW,CAAC,EAAE,YAAY,CAAC;qBAYnD,QAAQ,SAAS,CAAC,EAAE,OACnB,IAAI,cAAc,SACjB,KAAK,iBAAiB,cAAc,CAAC,EAAE,YAAY,CAAC;4BAW9B,MAAM,OAAO,IAAI,WAAW,UAAU,MAAM;gDAkB3D,QAAQ,SAAS,CAAC,EAAE,EAAE,OAC9B,IAAI,cAAc,UACf,MAAM,GAAG,MAAM,EAAE;CA6B9B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,eAAe,CAAC;AAE5D,eAAe,eAAe,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import type { Core, UID, Modules } from '@strapi/types';
2
2
  import type { DocumentMetadata } from '../../../shared/contracts/collection-types';
3
3
  export interface DocumentVersion {
4
- id: number;
4
+ id: string | number;
5
5
  documentId: Modules.Documents.ID;
6
- locale: string;
7
- updatedAt: string | null | Date;
8
- publishedAt: string | null | Date;
6
+ locale?: string;
7
+ localizations?: DocumentVersion[];
8
+ updatedAt?: string | null | Date;
9
+ publishedAt?: string | null | Date;
9
10
  }
10
11
  /**
11
12
  * Controls the metadata properties to be returned
@@ -26,7 +27,7 @@ declare const _default: ({ strapi }: {
26
27
  /**
27
28
  * Returns available locales of a document for the current status
28
29
  */
29
- getAvailableLocales(uid: UID.ContentType, version: DocumentVersion, allVersions: DocumentVersion[], validatableFields?: string[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
30
+ getAvailableLocales(uid: UID.ContentType, version: DocumentVersion, allVersions: DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
30
31
  /**
31
32
  * Returns available status of a document for the current locale
32
33
  */
@@ -37,7 +38,7 @@ declare const _default: ({ strapi }: {
37
38
  * @param documents
38
39
  * @returns
39
40
  */
40
- getManyAvailableStatus(uid: UID.ContentType, documents: DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableStatusDocument[]>;
41
+ getManyAvailableStatus(uid: UID.ContentType, documents: DocumentVersion[]): Promise<any[]>;
41
42
  getStatus(version: DocumentVersion, otherDocumentStatuses?: DocumentMetadata['availableStatus']): string;
42
43
  getMetadata(uid: UID.ContentType, version: DocumentVersion, { availableLocales, availableStatus }?: GetMetadataOptions): Promise<{
43
44
  availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
@@ -51,11 +52,12 @@ declare const _default: ({ strapi }: {
51
52
  formatDocumentWithMetadata(uid: UID.ContentType, document: DocumentVersion, opts?: GetMetadataOptions): Promise<{
52
53
  data: {
53
54
  status: string | undefined;
54
- id: number;
55
+ id: string | number;
55
56
  documentId: string;
56
- locale: string;
57
- updatedAt: string | Date | null;
58
- publishedAt: string | Date | null;
57
+ locale?: string | undefined;
58
+ localizations?: DocumentVersion[] | undefined;
59
+ updatedAt?: string | Date | null | undefined;
60
+ publishedAt?: string | Date | null | undefined;
59
61
  };
60
62
  meta: {
61
63
  availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
@@ -1 +1 @@
1
- {"version":3,"file":"document-metadata.d.ts","sourceRoot":"","sources":["../../../../server/src/services/document-metadata.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CACnC;AA4BD;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;qCAoB2B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;IACjD;;OAEG;6BAEI,IAAI,WAAW,WACX,eAAe,eACX,eAAe,EAAE,sBACX,MAAM,EAAE;IA+D7B;;OAEG;gCACyB,eAAe,eAAe,eAAe,EAAE;IAmB3E;;;;;OAKG;gCAC+B,IAAI,WAAW,aAAa,eAAe,EAAE;uBAkB5D,eAAe,0BAA0B,gBAAgB,CAAC,iBAAiB,CAAC;qBAgCxF,IAAI,WAAW,WACX,eAAe,0CAC6B,kBAAkB;;;;IAkCzE;;;;OAIG;oCAEI,IAAI,WAAW,YACV,eAAe,SACnB,kBAAkB;;;;;;;;;;;;;;;AAjM5B,wBAiOG"}
1
+ {"version":3,"file":"document-metadata.d.ts","sourceRoot":"","sources":["../../../../server/src/services/document-metadata.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CACpC;AA2BD;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;qCAoB2B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;IACjD;;OAEG;6BAEI,IAAI,WAAW,WACX,eAAe,eACX,eAAe,EAAE;IA2ChC;;OAEG;gCACyB,eAAe,eAAe,eAAe,EAAE;IAoB3E;;;;;OAKG;gCAC+B,IAAI,WAAW,aAAa,eAAe,EAAE;uBAuB5D,eAAe,0BAA0B,gBAAgB,CAAC,iBAAiB,CAAC;qBAgCxF,IAAI,WAAW,WACX,eAAe,0CAC6B,kBAAkB;;;;IAyCzE;;;;OAIG;oCAEI,IAAI,WAAW,YACV,eAAe,SACnB,kBAAkB;;;;;;;;;;;;;;;;AAzL5B,wBAsOG"}
@@ -60,9 +60,9 @@ declare const _default: {
60
60
  'document-metadata': ({ strapi }: {
61
61
  strapi: import("@strapi/types/dist/core").Strapi;
62
62
  }) => {
63
- getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[], validatableFields?: string[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
63
+ getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
64
64
  getAvailableStatus(version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[]): Partial<import("./document-metadata").DocumentVersion> | undefined;
65
- getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./document-metadata").DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableStatusDocument[]>;
65
+ getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./document-metadata").DocumentVersion[]): Promise<any[]>;
66
66
  getStatus(version: import("./document-metadata").DocumentVersion, otherDocumentStatuses?: import("../../../shared/contracts/collection-types").AvailableStatusDocument[] | undefined): string;
67
67
  getMetadata(uid: import("@strapi/types/dist/uid").ContentType, version: import("./document-metadata").DocumentVersion, { availableLocales, availableStatus }?: import("./document-metadata").GetMetadataOptions): Promise<{
68
68
  availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
@@ -71,11 +71,12 @@ declare const _default: {
71
71
  formatDocumentWithMetadata(uid: import("@strapi/types/dist/uid").ContentType, document: import("./document-metadata").DocumentVersion, opts?: import("./document-metadata").GetMetadataOptions): Promise<{
72
72
  data: {
73
73
  status: string | undefined;
74
- id: number;
74
+ id: string | number;
75
75
  documentId: string;
76
- locale: string;
77
- updatedAt: string | Date | null;
78
- publishedAt: string | Date | null;
76
+ locale?: string | undefined;
77
+ localizations?: import("./document-metadata").DocumentVersion[] | undefined;
78
+ updatedAt?: string | Date | null | undefined;
79
+ publishedAt?: string | Date | null | undefined;
79
80
  };
80
81
  meta: {
81
82
  availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,wBAaE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,wBAcE"}
@@ -1,4 +1,4 @@
1
- import { UID } from '@strapi/types';
1
+ import type { UID } from '@strapi/types';
2
2
  import type { Document } from '../document-manager';
3
3
  declare const getDeepRelationsCount: (entity: any, uid: UID.Schema) => Document;
4
4
  export { getDeepRelationsCount };
@@ -1 +1 @@
1
- {"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/count.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAU,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAoDpD,QAAA,MAAM,qBAAqB,WAAY,GAAG,OAAO,IAAI,MAAM,KAAG,QAU7D,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/count.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAU,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAoDpD,QAAA,MAAM,qBAAqB,WAAY,GAAG,OAAO,IAAI,MAAM,KAAG,QAU7D,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { UID, Modules } from '@strapi/types';
1
+ import type { UID, Modules } from '@strapi/types';
2
2
  export type Populate = Modules.EntityService.Params.Populate.Any<UID.Schema>;
3
3
  type PopulateOptions = {
4
4
  initialPopulate?: Populate;
@@ -19,7 +19,7 @@ declare const getDeepPopulate: (uid: UID.Schema, { initialPopulate, countMany, c
19
19
  * @param options - Options to apply while populating
20
20
  * @param level - Current level of nested call
21
21
  */
22
- declare const getValidatableFieldsPopulate: (uid: UID.Schema, { initialPopulate, countMany, countOne, maxLevel, }?: PopulateOptions, level?: number) => {};
22
+ declare const getPopulateForValidation: (uid: UID.Schema) => Record<string, any>;
23
23
  /**
24
24
  * getDeepPopulateDraftCount works recursively on the attributes of a model
25
25
  * creating a populated object to count all the unpublished relations within the model
@@ -38,5 +38,5 @@ declare const getDeepPopulateDraftCount: (uid: UID.Schema) => {
38
38
  */
39
39
  declare const getQueryPopulate: (uid: UID.Schema, query: object) => Promise<Populate>;
40
40
  declare const buildDeepPopulate: (uid: UID.CollectionType) => any;
41
- export { getDeepPopulate, getDeepPopulateDraftCount, getQueryPopulate, buildDeepPopulate, getValidatableFieldsPopulate, };
41
+ export { getDeepPopulate, getDeepPopulateDraftCount, getPopulateForValidation, getQueryPopulate, buildDeepPopulate, };
42
42
  //# sourceMappingURL=populate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"populate.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/populate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAU,OAAO,EAAE,MAAM,eAAe,CAAC;AAiBrD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAE7E,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AA2GF;;;;;GAKG;AACH,QAAA,MAAM,eAAe,QACd,IAAI,MAAM,wDAMZ,eAAe,uBA4BnB,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,4BAA4B,QAC3B,IAAI,MAAM,wDAMZ,eAAe,uBAqCnB,CAAC;AAEF;;;;;;;;GAQG;AACH,QAAA,MAAM,yBAAyB,QAAS,IAAI,MAAM;;;CA8DjD,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,gBAAgB,QAAe,IAAI,MAAM,SAAS,MAAM,KAAG,QAAQ,QAAQ,CA8BhF,CAAC;AAEF,QAAA,MAAM,iBAAiB,QAAS,IAAI,cAAc,QAEjD,CAAC;AAEF,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,GAC7B,CAAC"}
1
+ {"version":3,"file":"populate.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/populate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAU,OAAO,EAAE,MAAM,eAAe,CAAC;AAiB1D,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAE7E,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAoHF;;;;;GAKG;AACH,QAAA,MAAM,eAAe,QACd,IAAI,MAAM,wDAMZ,eAAe,uBAgCnB,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,wBAAwB,QAAS,IAAI,MAAM,KAAG,OAAO,MAAM,EAAE,GAAG,CA0DrE,CAAC;AAEF;;;;;;;;GAQG;AACH,QAAA,MAAM,yBAAyB,QAAS,IAAI,MAAM;;;CA8DjD,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,gBAAgB,QAAe,IAAI,MAAM,SAAS,MAAM,KAAG,QAAQ,QAAQ,CA8BhF,CAAC;AAEF,QAAA,MAAM,iBAAiB,QAAS,IAAI,cAAc,QAEjD,CAAC;AAEF,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,GAClB,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import '@strapi/types';
2
2
  import { DocumentManagerService } from 'src/services/document-manager';
3
+ import DocumentMetadata from 'src/services/document-metadata';
3
4
  type Services = {
4
5
  'document-manager': DocumentManagerService;
6
+ 'document-metadata': typeof DocumentMetadata;
5
7
  [key: string]: any;
6
8
  };
7
9
  declare const getService: <TName extends keyof Services>(name: TName) => ReturnType<Services[TName]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,KAAK,QAAQ,GAAG;IACd,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,UAAU,uCAAwC,KAAK,KAAG,WAAW,QAAQ,CAAC,KAAK,CAAC,CAEzF,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAE9D,KAAK,QAAQ,GAAG;IACd,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,mBAAmB,EAAE,OAAO,gBAAgB,CAAC;IAC7C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,UAAU,uCAAwC,KAAK,KAAG,WAAW,QAAQ,CAAC,KAAK,CAAC,CAEzF,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -335,4 +335,3 @@ export declare namespace CountManyEntriesDraftRelations {
335
335
  }
336
336
  }
337
337
  export {};
338
- //# sourceMappingURL=collection-types.d.ts.map
@@ -62,4 +62,3 @@ export declare namespace UpdateComponentConfiguration {
62
62
  error?: errors.ApplicationError | errors.YupValidationError;
63
63
  }
64
64
  }
65
- //# sourceMappingURL=components.d.ts.map
@@ -110,4 +110,3 @@ export declare namespace UpdateContentTypeConfiguration {
110
110
  error?: errors.ApplicationError | errors.YupValidationError;
111
111
  }
112
112
  }
113
- //# sourceMappingURL=content-types.d.ts.map
@@ -89,4 +89,3 @@ export declare namespace RestoreHistoryVersion {
89
89
  error: errors.ApplicationError;
90
90
  };
91
91
  }
92
- //# sourceMappingURL=history-versions.d.ts.map
@@ -7,4 +7,4 @@ export * as SingleTypes from './single-types';
7
7
  export * as UID from './uid';
8
8
  export * as ReviewWorkflows from './review-workflows';
9
9
  export * as HistoryVersions from './history-versions';
10
- //# sourceMappingURL=index.d.ts.map
10
+ export * as Preview from './preview';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../shared/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../shared/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC"}
@@ -21,4 +21,3 @@ export declare namespace GetInitData {
21
21
  error?: errors.ApplicationError;
22
22
  }
23
23
  }
24
- //# sourceMappingURL=init.d.ts.map