@strapi/content-manager 0.0.0-experimental.edc24aaa3bb5a90fa5fd4fee208167dd4e2e38d4 → 0.0.0-experimental.f0d4afee92a0d386f80385590c87955656f995ce

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 (171) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-BAgyHiMm.mjs → ComponentConfigurationPage-CIjXcRAB.mjs} +4 -4
  2. package/dist/_chunks/{ComponentConfigurationPage-BAgyHiMm.mjs.map → ComponentConfigurationPage-CIjXcRAB.mjs.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-5ukroXAh.js → ComponentConfigurationPage-gsCd80MU.js} +4 -4
  4. package/dist/_chunks/{ComponentConfigurationPage-5ukroXAh.js.map → ComponentConfigurationPage-gsCd80MU.js.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-DmoXawIh.mjs → EditConfigurationPage-BglmD_BF.mjs} +4 -4
  6. package/dist/_chunks/{EditConfigurationPage-DmoXawIh.mjs.map → EditConfigurationPage-BglmD_BF.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-Xp7lun0f.js → EditConfigurationPage-DHDQKBzw.js} +4 -4
  8. package/dist/_chunks/{EditConfigurationPage-Xp7lun0f.js.map → EditConfigurationPage-DHDQKBzw.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-C-ukDOB7.js → EditViewPage-C4iTxUPU.js} +30 -9
  10. package/dist/_chunks/EditViewPage-C4iTxUPU.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-BLsjc5F-.mjs → EditViewPage-CiwVPMaK.mjs} +30 -9
  12. package/dist/_chunks/EditViewPage-CiwVPMaK.mjs.map +1 -0
  13. package/dist/_chunks/{Field-Cs7duwWd.mjs → Field-DIjL1b5d.mjs} +173 -101
  14. package/dist/_chunks/Field-DIjL1b5d.mjs.map +1 -0
  15. package/dist/_chunks/{Field-Bfph5SOd.js → Field-DhXEK8y1.js} +175 -103
  16. package/dist/_chunks/Field-DhXEK8y1.js.map +1 -0
  17. package/dist/_chunks/{Form-Dg_GS5TQ.mjs → Form-CmNesrvR.mjs} +36 -17
  18. package/dist/_chunks/Form-CmNesrvR.mjs.map +1 -0
  19. package/dist/_chunks/{Form-CPYqIWDG.js → Form-CwmJ4sWe.js} +36 -17
  20. package/dist/_chunks/Form-CwmJ4sWe.js.map +1 -0
  21. package/dist/_chunks/{History-DNQkXANT.js → History-BLCCNgCt.js} +24 -11
  22. package/dist/_chunks/History-BLCCNgCt.js.map +1 -0
  23. package/dist/_chunks/{History-wrnHqf09.mjs → History-D-99Wh30.mjs} +25 -12
  24. package/dist/_chunks/History-D-99Wh30.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-CUQxfpjT.js → ListConfigurationPage-DxWpeZrO.js} +15 -5
  26. package/dist/_chunks/ListConfigurationPage-DxWpeZrO.js.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-DScmJVkW.mjs → ListConfigurationPage-JPWZz7Kg.mjs} +15 -5
  28. package/dist/_chunks/ListConfigurationPage-JPWZz7Kg.mjs.map +1 -0
  29. package/dist/_chunks/{ListViewPage-BsLiH2-2.js → ListViewPage-CIQekSFz.js} +61 -41
  30. package/dist/_chunks/ListViewPage-CIQekSFz.js.map +1 -0
  31. package/dist/_chunks/{ListViewPage-C4IvrMgY.mjs → ListViewPage-DSK3f0ST.mjs} +59 -39
  32. package/dist/_chunks/ListViewPage-DSK3f0ST.mjs.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-BZ-PnGAf.js → NoContentTypePage-C5cxKvC2.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-BZ-PnGAf.js.map → NoContentTypePage-C5cxKvC2.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-Djg8nPlj.mjs → NoContentTypePage-D99LU1YP.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-Djg8nPlj.mjs.map → NoContentTypePage-D99LU1YP.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-DSP7R-hv.mjs → NoPermissionsPage-DBrBw-0y.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-DSP7R-hv.mjs.map → NoPermissionsPage-DBrBw-0y.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-_lUqjGW3.js → NoPermissionsPage-Oy4tmUrW.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-_lUqjGW3.js.map → NoPermissionsPage-Oy4tmUrW.js.map} +1 -1
  41. package/dist/_chunks/{Relations-BZr8tL0R.mjs → Relations-BBmhcWFV.mjs} +70 -37
  42. package/dist/_chunks/Relations-BBmhcWFV.mjs.map +1 -0
  43. package/dist/_chunks/{Relations-CtELXYIK.js → Relations-eG-9p_qS.js} +69 -36
  44. package/dist/_chunks/Relations-eG-9p_qS.js.map +1 -0
  45. package/dist/_chunks/{en-uOUIxfcQ.js → en-Bm0D0IWz.js} +13 -12
  46. package/dist/_chunks/{en-uOUIxfcQ.js.map → en-Bm0D0IWz.js.map} +1 -1
  47. package/dist/_chunks/{en-BrCTWlZv.mjs → en-DKV44jRb.mjs} +13 -12
  48. package/dist/_chunks/{en-BrCTWlZv.mjs.map → en-DKV44jRb.mjs.map} +1 -1
  49. package/dist/_chunks/{index-OerGjbAN.js → index-BIWDoFLK.js} +1968 -1781
  50. package/dist/_chunks/index-BIWDoFLK.js.map +1 -0
  51. package/dist/_chunks/{index-c_5DdJi-.mjs → index-BrUzbQ30.mjs} +1987 -1801
  52. package/dist/_chunks/index-BrUzbQ30.mjs.map +1 -0
  53. package/dist/_chunks/{layout-oPBiO7RY.mjs → layout-_5-cXs34.mjs} +22 -9
  54. package/dist/_chunks/layout-_5-cXs34.mjs.map +1 -0
  55. package/dist/_chunks/{layout-Ci7qHlFb.js → layout-lMc9i1-Z.js} +21 -8
  56. package/dist/_chunks/layout-lMc9i1-Z.js.map +1 -0
  57. package/dist/_chunks/{objects-gigeqt7s.js → objects-BcXOv6_9.js} +2 -4
  58. package/dist/_chunks/{objects-gigeqt7s.js.map → objects-BcXOv6_9.js.map} +1 -1
  59. package/dist/_chunks/{objects-mKMAmfec.mjs → objects-D6yBsdmx.mjs} +2 -4
  60. package/dist/_chunks/{objects-mKMAmfec.mjs.map → objects-D6yBsdmx.mjs.map} +1 -1
  61. package/dist/_chunks/{relations-COBpStiF.js → relations-BRHithi8.js} +3 -7
  62. package/dist/_chunks/relations-BRHithi8.js.map +1 -0
  63. package/dist/_chunks/{relations-BIdWFjdq.mjs → relations-B_VLk-DD.mjs} +3 -7
  64. package/dist/_chunks/relations-B_VLk-DD.mjs.map +1 -0
  65. package/dist/_chunks/{usePrev-B9w_-eYc.js → useDebounce-CtcjDB3L.js} +14 -1
  66. package/dist/_chunks/useDebounce-CtcjDB3L.js.map +1 -0
  67. package/dist/_chunks/useDebounce-DmuSJIF3.mjs +29 -0
  68. package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +1 -0
  69. package/dist/admin/index.js +2 -1
  70. package/dist/admin/index.js.map +1 -1
  71. package/dist/admin/index.mjs +5 -4
  72. package/dist/admin/src/exports.d.ts +1 -1
  73. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  74. package/dist/admin/src/hooks/useDocument.d.ts +32 -1
  75. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +2 -2
  76. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +2 -2
  77. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +4 -48
  78. package/dist/admin/src/pages/EditView/components/Header.d.ts +11 -11
  79. package/dist/admin/src/preview/constants.d.ts +1 -0
  80. package/dist/admin/src/preview/index.d.ts +4 -0
  81. package/dist/admin/src/services/api.d.ts +1 -1
  82. package/dist/admin/src/services/components.d.ts +2 -2
  83. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  84. package/dist/admin/src/services/documents.d.ts +19 -17
  85. package/dist/admin/src/services/init.d.ts +1 -1
  86. package/dist/admin/src/services/relations.d.ts +2 -2
  87. package/dist/admin/src/services/uid.d.ts +3 -3
  88. package/dist/admin/src/utils/validation.d.ts +4 -1
  89. package/dist/server/index.js +513 -235
  90. package/dist/server/index.js.map +1 -1
  91. package/dist/server/index.mjs +514 -236
  92. package/dist/server/index.mjs.map +1 -1
  93. package/dist/server/src/bootstrap.d.ts.map +1 -1
  94. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  95. package/dist/server/src/controllers/index.d.ts.map +1 -1
  96. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  97. package/dist/server/src/controllers/utils/metadata.d.ts +15 -1
  98. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  99. package/dist/server/src/history/services/history.d.ts.map +1 -1
  100. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  101. package/dist/server/src/history/services/utils.d.ts +4 -4
  102. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  103. package/dist/server/src/index.d.ts +4 -4
  104. package/dist/server/src/policies/hasPermissions.d.ts.map +1 -1
  105. package/dist/server/src/preview/constants.d.ts +2 -0
  106. package/dist/server/src/preview/constants.d.ts.map +1 -0
  107. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  108. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  109. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  110. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  111. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  112. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  113. package/dist/server/src/preview/index.d.ts +4 -0
  114. package/dist/server/src/preview/index.d.ts.map +1 -0
  115. package/dist/server/src/preview/routes/index.d.ts +8 -0
  116. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  117. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  118. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  119. package/dist/server/src/preview/services/index.d.ts +15 -0
  120. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  121. package/dist/server/src/preview/services/preview-config.d.ts +30 -0
  122. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  123. package/dist/server/src/preview/services/preview.d.ts +12 -0
  124. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  125. package/dist/server/src/preview/utils.d.ts +18 -0
  126. package/dist/server/src/preview/utils.d.ts.map +1 -0
  127. package/dist/server/src/routes/index.d.ts.map +1 -1
  128. package/dist/server/src/services/document-metadata.d.ts +8 -8
  129. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  130. package/dist/server/src/services/index.d.ts +4 -4
  131. package/dist/server/src/services/index.d.ts.map +1 -1
  132. package/dist/server/src/services/permission-checker.d.ts.map +1 -1
  133. package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
  134. package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
  135. package/dist/server/src/utils/index.d.ts +2 -0
  136. package/dist/server/src/utils/index.d.ts.map +1 -1
  137. package/dist/shared/contracts/collection-types.d.ts +3 -1
  138. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  139. package/dist/shared/contracts/index.d.ts +1 -0
  140. package/dist/shared/contracts/index.d.ts.map +1 -1
  141. package/dist/shared/contracts/preview.d.ts +27 -0
  142. package/dist/shared/contracts/preview.d.ts.map +1 -0
  143. package/dist/shared/index.js +4 -0
  144. package/dist/shared/index.js.map +1 -1
  145. package/dist/shared/index.mjs +4 -0
  146. package/dist/shared/index.mjs.map +1 -1
  147. package/package.json +13 -13
  148. package/dist/_chunks/EditViewPage-BLsjc5F-.mjs.map +0 -1
  149. package/dist/_chunks/EditViewPage-C-ukDOB7.js.map +0 -1
  150. package/dist/_chunks/Field-Bfph5SOd.js.map +0 -1
  151. package/dist/_chunks/Field-Cs7duwWd.mjs.map +0 -1
  152. package/dist/_chunks/Form-CPYqIWDG.js.map +0 -1
  153. package/dist/_chunks/Form-Dg_GS5TQ.mjs.map +0 -1
  154. package/dist/_chunks/History-DNQkXANT.js.map +0 -1
  155. package/dist/_chunks/History-wrnHqf09.mjs.map +0 -1
  156. package/dist/_chunks/ListConfigurationPage-CUQxfpjT.js.map +0 -1
  157. package/dist/_chunks/ListConfigurationPage-DScmJVkW.mjs.map +0 -1
  158. package/dist/_chunks/ListViewPage-BsLiH2-2.js.map +0 -1
  159. package/dist/_chunks/ListViewPage-C4IvrMgY.mjs.map +0 -1
  160. package/dist/_chunks/Relations-BZr8tL0R.mjs.map +0 -1
  161. package/dist/_chunks/Relations-CtELXYIK.js.map +0 -1
  162. package/dist/_chunks/index-OerGjbAN.js.map +0 -1
  163. package/dist/_chunks/index-c_5DdJi-.mjs.map +0 -1
  164. package/dist/_chunks/layout-Ci7qHlFb.js.map +0 -1
  165. package/dist/_chunks/layout-oPBiO7RY.mjs.map +0 -1
  166. package/dist/_chunks/relations-BIdWFjdq.mjs.map +0 -1
  167. package/dist/_chunks/relations-COBpStiF.js.map +0 -1
  168. package/dist/_chunks/usePrev-B9w_-eYc.js.map +0 -1
  169. package/dist/_chunks/usePrev-DH6iah0A.mjs +0 -16
  170. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +0 -1
  171. package/strapi-server.js +0 -3
@@ -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":"collection-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/collection-types.ts"],"names":[],"mappings":";cAqHkB,GAAG;iBAuDA,GAAG;gBAyDJ,GAAG;gBA0BH,GAAG;eAYJ,GAAG;mBA4CC,GAAG;gBAmBN,GAAG;IAoCrB;;;OAGG;iBACgB,GAAG;qBAiDC,GAAG;uBA6CD,GAAG;mBAuCP,GAAG;iBAyDL,GAAG;oBAwCA,GAAG;6BA6CM,GAAG;wCAkCQ,GAAG;;AAnjB/C,wBAolBE"}
1
+ {"version":3,"file":"collection-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/collection-types.ts"],"names":[],"mappings":";cAwHkB,GAAG;iBAuDA,GAAG;gBAyDJ,GAAG;gBA0BH,GAAG;eAYJ,GAAG;mBA4CC,GAAG;gBAmBN,GAAG;IAoCrB;;;OAGG;iBACgB,GAAG;qBA6FC,GAAG;uBA6CD,GAAG;mBAyCP,GAAG;iBAyDL,GAAG;oBAwCA,GAAG;6BA6CM,GAAG;wCAkCQ,GAAG;;AAjmB/C,wBAkoBE"}
@@ -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;;uCA8Hb,GAAG,OAAO,KAAK,EAAE;IA4H1D;;;;OAIG;uBACsB,GAAG;sBAgIJ,GAAG;;AAlQ7B,wBAmVE"}
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,22 @@
1
1
  import { 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
+ updatedAt?: string | Date | null | undefined;
19
+ publishedAt?: string | Date | null | undefined;
20
+ };
21
+ }>;
8
22
  //# 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,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAKpC,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 +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;8BAsI8B,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,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 +1 @@
1
- {"version":3,"file":"lifecycles.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/lifecycles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,eAAe,CAAC;AAYnD,QAAA,MAAM,uBAAuB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;CAsJnE,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"}
@@ -17,12 +17,12 @@ export declare const createServiceUtils: ({ strapi }: {
17
17
  removed: Struct.SchemaAttributes;
18
18
  };
19
19
  getRelationRestoreValue: (versionRelationData: Data.Entity, attribute: Schema.Attribute.RelationWithTarget) => Promise<Modules.Documents.AnyDocument | Modules.Documents.AnyDocument[] | ({
20
- id: Data.ID;
21
- } & Pick<{
22
20
  [x: string]: any;
23
- }, string> & any[]) | null>;
21
+ id: Data.ID;
22
+ } & any[]) | null>;
24
23
  getMediaRestoreValue: (versionRelationData: Data.Entity, attribute: Schema.Attribute.Media<any, boolean>) => Promise<any>;
25
24
  getDefaultLocale: () => Promise<any>;
25
+ isLocalizedContentType: (model: Schema.ContentType) => any;
26
26
  getLocaleDictionary: () => Promise<{
27
27
  [key: string]: {
28
28
  name: string;
@@ -31,7 +31,7 @@ export declare const createServiceUtils: ({ strapi }: {
31
31
  }>;
32
32
  getRetentionDays: () => number;
33
33
  getVersionStatus: (contentTypeUid: HistoryVersions.CreateHistoryVersion['contentType'], document: Modules.Documents.AnyDocument | null) => Promise<any>;
34
- getDeepPopulate: (uid: UID.Schema) => any;
34
+ getDeepPopulate: (uid: UID.Schema, useDatabaseSyntax?: boolean) => any;
35
35
  buildMediaResponse: (values: {
36
36
  id: Data.ID;
37
37
  }[]) => Promise<RelationResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAIxE,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;uDAMzC,oBAAoB,CAAC,QAAQ,CAAC,+BAC1B,OAAO,gBAAgB;;;;mDA4C/B,KAAK,MAAM,aACrB,OAAO,SAAS,CAAC,kBAAkB;;;;;gDAgCzB,KAAK,MAAM,aACrB,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC;;+BA2BX,QAAQ;QAC5C,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KAC/C,CAAC;;uCAsCgB,oCAAoC,CAAC,aAAa,CAAC,YACzD,QAAQ,SAAS,CAAC,WAAW,GAAG,IAAI;2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;uCAsCgB,oCAAoC,CAAC,aAAa,CAAC,YACzD,QAAQ,SAAS,CAAC,WAAW,GAAG,IAAI;2BAmClB,IAAI,MAAM;iCA+DE;QAAE,EAAE,EAAE,KAAK,EAAE,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;CAmD7B,CAAC"}
@@ -178,11 +178,11 @@ 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
+ updatedAt?: string | Date | null | undefined;
185
+ publishedAt?: string | Date | null | undefined;
186
186
  };
187
187
  meta: {
188
188
  availableLocales: import("../../shared/contracts/collection-types").AvailableLocaleDocument[];
@@ -1 +1 @@
1
- {"version":3,"file":"hasPermissions.d.ts","sourceRoot":"","sources":["../../../../server/src/policies/hasPermissions.ts"],"names":[],"mappings":";;;;;AAMA,wBAgBG"}
1
+ {"version":3,"file":"hasPermissions.d.ts","sourceRoot":"","sources":["../../../../server/src/policies/hasPermissions.ts"],"names":[],"mappings":";;;;;AAMA,wBAqBG"}
@@ -0,0 +1,2 @@
1
+ export declare const FEATURE_ID = "preview";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../server/src/preview/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,YAAY,CAAC"}
@@ -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,CA8BvB,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;;AAoC5C,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,15 @@
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
+ isEnabled(): boolean;
11
+ validate(): void;
12
+ getPreviewHandler(): (uid: import("@strapi/types/dist/uid").Schema, params: import("./preview-config").HandlerParams) => string | undefined;
13
+ };
14
+ };
15
+ //# 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,30 @@
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
+ handler: (uid: UID.Schema, params: HandlerParams) => string | undefined;
11
+ };
12
+ }
13
+ /**
14
+ * Read configuration for static preview
15
+ */
16
+ declare const createPreviewConfigService: ({ strapi }: {
17
+ strapi: Core.Strapi;
18
+ }) => {
19
+ isEnabled(): boolean;
20
+ /**
21
+ * Validate if the configuration is valid
22
+ */
23
+ validate(): void;
24
+ /**
25
+ * Utility to get the preview handler from the configuration
26
+ */
27
+ getPreviewHandler(): PreviewConfig['config']['handler'];
28
+ };
29
+ export { createPreviewConfigService };
30
+ //# 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":"AAAA,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;QACN,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,KAAK,MAAM,GAAG,SAAS,CAAC;KACzE,CAAC;CACH;AAED;;GAEG;AACH,QAAA,MAAM,0BAA0B,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;IAYnE;;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,18 @@
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
+ isEnabled(): boolean;
13
+ validate(): void;
14
+ getPreviewHandler(): (uid: import("@strapi/types/dist/uid").Schema, params: import("./services/preview-config").HandlerParams) => string | undefined;
15
+ };
16
+ }[T]>;
17
+ export { getService };
18
+ //# 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":"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,11 +1,11 @@
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
+ updatedAt?: string | null | Date;
8
+ publishedAt?: string | null | Date;
9
9
  }
10
10
  /**
11
11
  * Controls the metadata properties to be returned
@@ -51,11 +51,11 @@ declare const _default: ({ strapi }: {
51
51
  formatDocumentWithMetadata(uid: UID.ContentType, document: DocumentVersion, opts?: GetMetadataOptions): Promise<{
52
52
  data: {
53
53
  status: string | undefined;
54
- id: number;
54
+ id: string | number;
55
55
  documentId: string;
56
- locale: string;
57
- updatedAt: string | Date | null;
58
- publishedAt: string | Date | null;
56
+ locale?: string | undefined;
57
+ updatedAt?: string | Date | null | undefined;
58
+ publishedAt?: string | Date | null | undefined;
59
59
  };
60
60
  meta: {
61
61
  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,wBA2NG"}
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,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CACpC;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;IAiE7B;;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;;;;;;;;;;;;;;;AAnM5B,wBAmOG"}
@@ -71,11 +71,11 @@ 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
+ updatedAt?: string | Date | null | undefined;
78
+ publishedAt?: string | Date | null | undefined;
79
79
  };
80
80
  meta: {
81
81
  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 +1 @@
1
- {"version":3,"file":"permission-checker.d.ts","sourceRoot":"","sources":["../../../../server/src/services/permission-checker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAaxD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;qCAiG0B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAnD,wBAEG"}
1
+ {"version":3,"file":"permission-checker.d.ts","sourceRoot":"","sources":["../../../../server/src/services/permission-checker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAaxD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;qCAoH0B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAnD,wBAEG"}
@@ -2,15 +2,15 @@ declare function createDefaultConfiguration(schema: any): Promise<{
2
2
  settings: any;
3
3
  metadatas: any;
4
4
  layouts: {
5
- edit: any;
6
5
  list: any;
6
+ edit: any;
7
7
  };
8
8
  }>;
9
9
  declare function syncConfiguration(conf: any, schema: any): Promise<{
10
10
  settings: any;
11
11
  layouts: {
12
- edit: any;
13
12
  list: any;
13
+ edit: any;
14
14
  } | {
15
15
  list: any;
16
16
  edit: any;
@@ -1,11 +1,11 @@
1
1
  declare function createDefaultLayouts(schema: any): Promise<{
2
- edit: any;
3
2
  list: any;
3
+ edit: any;
4
4
  }>;
5
5
  /** Synchronisation functions */
6
6
  declare function syncLayouts(configuration: any, schema: any): Promise<{
7
- edit: any;
8
7
  list: any;
8
+ edit: any;
9
9
  }> | {
10
10
  list: any;
11
11
  edit: any;
@@ -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"}
@@ -283,7 +283,9 @@ export declare namespace BulkUnpublish {
283
283
  body: {
284
284
  documentIds: Modules.Documents.ID[];
285
285
  };
286
- query: {};
286
+ query: {
287
+ locale?: string | string[] | null;
288
+ };
287
289
  }
288
290
  interface Params {
289
291
  model: string;
@@ -1 +1 @@
1
- {"version":3,"file":"collection-types.d.ts","sourceRoot":"","sources":["../../../shared/contracts/collection-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAE1D,KAAK,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAExE,KAAK,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAGnF,KAAK,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAChD,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAC3D,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAE3D,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC,CAAC;AAC7F,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,QAAQ,EACR,IAAI,GAAG,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CACvD,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG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AAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;QACF,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC;KAC7D;CACF;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE;YAEL,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACxB,CAAC;KACH;IAED,UAAiB,MAAM;QACrB,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,8BAA8B,CAAC;IACtD,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE;YAGL,WAAW,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;SACnC,CAAC;KACH;IAED,UAAiB,MAAM;QACrB,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF"}
1
+ {"version":3,"file":"collection-types.d.ts","sourceRoot":"","sources":["../../../shared/contracts/collection-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAE1D,KAAK,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAExE,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AAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE;YAGL,WAAW,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;SACnC,CAAC;KACH;IAED,UAAiB,MAAM;QACrB,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF"}
@@ -7,4 +7,5 @@ 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
+ export * as Preview from './preview';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -0,0 +1,27 @@
1
+ import type { Data, UID } from '@strapi/types';
2
+ import { type errors } from '@strapi/utils';
3
+ /**
4
+ * GET /content-manager/preview/url/:uid
5
+ */
6
+ export declare namespace GetPreviewUrl {
7
+ interface Request {
8
+ params: {
9
+ contentType: UID.ContentType;
10
+ };
11
+ query: {
12
+ documentId?: Data.DocumentID;
13
+ locale?: string;
14
+ status?: 'published' | 'draft';
15
+ };
16
+ }
17
+ type Response = {
18
+ data: {
19
+ url: string | undefined;
20
+ };
21
+ error?: never;
22
+ } | {
23
+ data?: never;
24
+ error: errors.ApplicationError | errors.ValidationError | errors.NotFoundError;
25
+ };
26
+ }
27
+ //# sourceMappingURL=preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../shared/contracts/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,UAAiB,OAAO;QACtB,MAAM,EAAE;YACN,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC;SAC9B,CAAC;QACF,KAAK,EAAE;YACL,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC;YAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;SAChC,CAAC;KACH;IAGD,KAAY,QAAQ,GAChB;QACE,IAAI,EAAE;YACJ,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;SACzB,CAAC;QACF,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,GACD;QACE,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,aAAa,CAAC;KAChF,CAAC;CACP"}
@@ -27,6 +27,9 @@ const reviewWorkflows = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
27
27
  const historyVersions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
28
  __proto__: null
29
29
  }, Symbol.toStringTag, { value: "Module" }));
30
+ const preview = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31
+ __proto__: null
32
+ }, Symbol.toStringTag, { value: "Module" }));
30
33
  const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31
34
  __proto__: null,
32
35
  CollectionTypes: collectionTypes,
@@ -34,6 +37,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
34
37
  ContentTypes: contentTypes,
35
38
  HistoryVersions: historyVersions,
36
39
  Init: init,
40
+ Preview: preview,
37
41
  Relations: relations,
38
42
  ReviewWorkflows: reviewWorkflows,
39
43
  SingleTypes: singleTypes,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -25,6 +25,9 @@ const reviewWorkflows = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
25
25
  const historyVersions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
26
  __proto__: null
27
27
  }, Symbol.toStringTag, { value: "Module" }));
28
+ const preview = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
+ __proto__: null
30
+ }, Symbol.toStringTag, { value: "Module" }));
28
31
  const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
32
  __proto__: null,
30
33
  CollectionTypes: collectionTypes,
@@ -32,6 +35,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
32
35
  ContentTypes: contentTypes,
33
36
  HistoryVersions: historyVersions,
34
37
  Init: init,
38
+ Preview: preview,
35
39
  Relations: relations,
36
40
  ReviewWorkflows: reviewWorkflows,
37
41
  SingleTypes: singleTypes,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}