@strapi/content-manager 0.0.0-experimental.d1602f22dc638a4c3c5084965fd6126fff5e9d4f → 0.0.0-experimental.d2a56e52af31fcf0f0c582a5a2e58e310966e96b

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 (236) hide show
  1. package/dist/admin/chunks/{CardDragPreview-DwuraT0K.js → CardDragPreview-DwuraT0K.mjs} +1 -1
  2. package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs.map +1 -0
  3. package/dist/admin/chunks/{ComponentConfigurationPage-DXwOtpq1.js → ComponentConfigurationPage-CGn9IYeg.js} +6 -6
  4. package/dist/admin/chunks/{ComponentConfigurationPage-DXwOtpq1.js.map → ComponentConfigurationPage-CGn9IYeg.js.map} +1 -1
  5. package/dist/admin/chunks/{ComponentConfigurationPage-DhYZp4nN.js → ComponentConfigurationPage-DgYK4xW6.mjs} +9 -9
  6. package/dist/admin/chunks/ComponentConfigurationPage-DgYK4xW6.mjs.map +1 -0
  7. package/dist/admin/chunks/{ComponentIcon-BZcTc4rj.js → ComponentIcon-BZcTc4rj.mjs} +1 -1
  8. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs.map +1 -0
  9. package/dist/admin/chunks/{EditConfigurationPage-D0Ng758X.js → EditConfigurationPage-7w_-4jF4.js} +6 -6
  10. package/dist/admin/chunks/{EditConfigurationPage-D0Ng758X.js.map → EditConfigurationPage-7w_-4jF4.js.map} +1 -1
  11. package/dist/admin/chunks/{EditConfigurationPage-DDuPch5d.js → EditConfigurationPage-C05SwwH-.mjs} +9 -9
  12. package/dist/admin/chunks/EditConfigurationPage-C05SwwH-.mjs.map +1 -0
  13. package/dist/admin/chunks/EditViewPage-CVRJBOEv.mjs +318 -0
  14. package/dist/admin/chunks/EditViewPage-CVRJBOEv.mjs.map +1 -0
  15. package/dist/admin/chunks/EditViewPage-CuQfZJDf.js +341 -0
  16. package/dist/admin/chunks/EditViewPage-CuQfZJDf.js.map +1 -0
  17. package/dist/admin/chunks/{FieldTypeIcon-BY6MrVF4.js → FieldTypeIcon-BY6MrVF4.mjs} +1 -1
  18. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs.map +1 -0
  19. package/dist/admin/chunks/{Form-BEqiuSvQ.js → Form-BqNYRsCb.js} +5 -5
  20. package/dist/admin/chunks/{Form-BEqiuSvQ.js.map → Form-BqNYRsCb.js.map} +1 -1
  21. package/dist/admin/chunks/{Form-CZmB6JIg.js → Form-DaEnqAeV.mjs} +5 -5
  22. package/dist/admin/chunks/Form-DaEnqAeV.mjs.map +1 -0
  23. package/dist/admin/chunks/{History-CPYXgxkS.js → History-B7dGNfmx.mjs} +68 -15
  24. package/dist/admin/chunks/History-B7dGNfmx.mjs.map +1 -0
  25. package/dist/admin/chunks/{History-BlLKDZSw.js → History-CEoOna4w.js} +67 -14
  26. package/dist/admin/chunks/History-CEoOna4w.js.map +1 -0
  27. package/dist/admin/chunks/{Input-CLX3C5DI.js → Input-B3QUS9rv.mjs} +2273 -511
  28. package/dist/admin/chunks/Input-B3QUS9rv.mjs.map +1 -0
  29. package/dist/admin/chunks/{Input-DiR2Xfa7.js → Input-B8I0b9aD.js} +2284 -519
  30. package/dist/admin/chunks/Input-B8I0b9aD.js.map +1 -0
  31. package/dist/admin/chunks/{ListConfigurationPage-DdTp-HxB.js → ListConfigurationPage-BbjJweN-.js} +7 -7
  32. package/dist/admin/chunks/{ListConfigurationPage-DdTp-HxB.js.map → ListConfigurationPage-BbjJweN-.js.map} +1 -1
  33. package/dist/admin/chunks/{ListConfigurationPage-CNvotSqe.js → ListConfigurationPage-VtFQ5mOK.mjs} +8 -8
  34. package/dist/admin/chunks/ListConfigurationPage-VtFQ5mOK.mjs.map +1 -0
  35. package/dist/admin/chunks/{ListViewPage-MJNfQTp-.js → ListViewPage-Cg3zbT7Y.mjs} +5 -5
  36. package/dist/admin/chunks/ListViewPage-Cg3zbT7Y.mjs.map +1 -0
  37. package/dist/admin/chunks/{ListViewPage-BtXYjEYz.js → ListViewPage-CzUm2VJN.js} +8 -8
  38. package/dist/admin/chunks/{ListViewPage-BtXYjEYz.js.map → ListViewPage-CzUm2VJN.js.map} +1 -1
  39. package/dist/admin/chunks/{NoContentTypePage-CVvVpwj4.js → NoContentTypePage-FcLLn2Wt.js} +3 -2
  40. package/dist/admin/chunks/{NoContentTypePage-BJrZvYPY.js.map → NoContentTypePage-FcLLn2Wt.js.map} +1 -1
  41. package/dist/admin/chunks/{NoContentTypePage-BJrZvYPY.js → NoContentTypePage-NOf7Aq_E.mjs} +3 -2
  42. package/dist/admin/chunks/NoContentTypePage-NOf7Aq_E.mjs.map +1 -0
  43. package/dist/admin/chunks/{NoPermissionsPage-C5yWg70d.js → NoPermissionsPage-DmeyXtCk.js} +3 -2
  44. package/dist/admin/chunks/{NoPermissionsPage-BulvG4hB.js.map → NoPermissionsPage-DmeyXtCk.js.map} +1 -1
  45. package/dist/admin/chunks/{NoPermissionsPage-BulvG4hB.js → NoPermissionsPage-OVr9KG6L.mjs} +3 -2
  46. package/dist/admin/chunks/NoPermissionsPage-OVr9KG6L.mjs.map +1 -0
  47. package/dist/admin/chunks/Preview-BH9l1QXk.mjs +593 -0
  48. package/dist/admin/chunks/Preview-BH9l1QXk.mjs.map +1 -0
  49. package/dist/admin/chunks/Preview-BYKkpc11.js +615 -0
  50. package/dist/admin/chunks/Preview-BYKkpc11.js.map +1 -0
  51. package/dist/admin/chunks/{ar-DckYq_WK.js → ar-DckYq_WK.mjs} +1 -1
  52. package/dist/admin/chunks/ar-DckYq_WK.mjs.map +1 -0
  53. package/dist/admin/chunks/{ca-DviY7mRj.js → ca-DviY7mRj.mjs} +1 -1
  54. package/dist/admin/chunks/ca-DviY7mRj.mjs.map +1 -0
  55. package/dist/admin/chunks/{cs-C7OSYFQ7.js → cs-C7OSYFQ7.mjs} +1 -1
  56. package/dist/admin/chunks/cs-C7OSYFQ7.mjs.map +1 -0
  57. package/dist/admin/chunks/{de-5QRlDHyR.js → de-5QRlDHyR.mjs} +1 -1
  58. package/dist/admin/chunks/de-5QRlDHyR.mjs.map +1 -0
  59. package/dist/admin/chunks/{en-LfhocNG2.js → en-C2zEwS3-.mjs} +6 -1
  60. package/dist/admin/chunks/en-C2zEwS3-.mjs.map +1 -0
  61. package/dist/admin/chunks/{en-C1CjdAtC.js → en-G976DLsg.js} +6 -1
  62. package/dist/admin/chunks/{en-LfhocNG2.js.map → en-G976DLsg.js.map} +1 -1
  63. package/dist/admin/chunks/{es-DkoWSExG.js → es-DkoWSExG.mjs} +1 -1
  64. package/dist/admin/chunks/es-DkoWSExG.mjs.map +1 -0
  65. package/dist/admin/chunks/{eu-BG1xX7HK.js → eu-BG1xX7HK.mjs} +1 -1
  66. package/dist/admin/chunks/eu-BG1xX7HK.mjs.map +1 -0
  67. package/dist/admin/chunks/{fr-CFdRaRVj.js → fr-CFdRaRVj.mjs} +1 -1
  68. package/dist/admin/chunks/fr-CFdRaRVj.mjs.map +1 -0
  69. package/dist/admin/chunks/{gu-D5MMMXRs.js → gu-D5MMMXRs.mjs} +1 -1
  70. package/dist/admin/chunks/gu-D5MMMXRs.mjs.map +1 -0
  71. package/dist/admin/chunks/{hi-lp17SCjr.js → hi-lp17SCjr.mjs} +1 -1
  72. package/dist/admin/chunks/hi-lp17SCjr.mjs.map +1 -0
  73. package/dist/admin/chunks/{hooks-DMvik5y_.js → hooks-DMvik5y_.mjs} +1 -1
  74. package/dist/admin/chunks/hooks-DMvik5y_.mjs.map +1 -0
  75. package/dist/admin/chunks/{hu-CLka1U2C.js → hu-CLka1U2C.mjs} +1 -1
  76. package/dist/admin/chunks/hu-CLka1U2C.mjs.map +1 -0
  77. package/dist/admin/chunks/{id-USfY9m1g.js → id-USfY9m1g.mjs} +1 -1
  78. package/dist/admin/chunks/id-USfY9m1g.mjs.map +1 -0
  79. package/dist/admin/chunks/{index-BRlRBRLb.js → index-BE7PI9Wp.mjs} +273 -173
  80. package/dist/admin/chunks/index-BE7PI9Wp.mjs.map +1 -0
  81. package/dist/admin/chunks/{index-ZIwOPk6p.js → index-BwIhYBsG.js} +246 -142
  82. package/dist/admin/chunks/index-BwIhYBsG.js.map +1 -0
  83. package/dist/admin/chunks/{it-BAHrwmYS.js → it-BAHrwmYS.mjs} +1 -1
  84. package/dist/admin/chunks/it-BAHrwmYS.mjs.map +1 -0
  85. package/dist/admin/chunks/{ja-BWKmBJFT.js → ja-BWKmBJFT.mjs} +1 -1
  86. package/dist/admin/chunks/ja-BWKmBJFT.mjs.map +1 -0
  87. package/dist/admin/chunks/{ko-CgADGBNt.js → ko-CgADGBNt.mjs} +1 -1
  88. package/dist/admin/chunks/ko-CgADGBNt.mjs.map +1 -0
  89. package/dist/admin/chunks/{layout-B3-guCPG.js → layout-9zlUM9V3.mjs} +81 -7
  90. package/dist/admin/chunks/layout-9zlUM9V3.mjs.map +1 -0
  91. package/dist/admin/chunks/{layout-ameRNiAM.js → layout-Cr0HaJVS.js} +87 -13
  92. package/dist/admin/chunks/layout-Cr0HaJVS.js.map +1 -0
  93. package/dist/admin/chunks/{ml-CnhCfOn_.js → ml-CnhCfOn_.mjs} +1 -1
  94. package/dist/admin/chunks/ml-CnhCfOn_.mjs.map +1 -0
  95. package/dist/admin/chunks/{ms-Bh09NFff.js → ms-Bh09NFff.mjs} +1 -1
  96. package/dist/admin/chunks/ms-Bh09NFff.mjs.map +1 -0
  97. package/dist/admin/chunks/{nl-C8HYflTc.js → nl-C8HYflTc.mjs} +1 -1
  98. package/dist/admin/chunks/nl-C8HYflTc.mjs.map +1 -0
  99. package/dist/admin/chunks/{useDragAndDrop-gcqEJMnO.js → objects-BJTP843m.js} +73 -1
  100. package/dist/admin/chunks/objects-BJTP843m.js.map +1 -0
  101. package/dist/admin/chunks/{useDragAndDrop-HYwNDExe.js → objects-D2z-IJgu.mjs} +72 -2
  102. package/dist/admin/chunks/objects-D2z-IJgu.mjs.map +1 -0
  103. package/dist/admin/chunks/{pl-MFCZJZuZ.js → pl-MFCZJZuZ.mjs} +1 -1
  104. package/dist/admin/chunks/pl-MFCZJZuZ.mjs.map +1 -0
  105. package/dist/admin/chunks/{pt-BR-CcotyBGJ.js → pt-BR-CcotyBGJ.mjs} +1 -1
  106. package/dist/admin/chunks/pt-BR-CcotyBGJ.mjs.map +1 -0
  107. package/dist/admin/chunks/{pt-HbmgeiYO.js → pt-HbmgeiYO.mjs} +1 -1
  108. package/dist/admin/chunks/pt-HbmgeiYO.mjs.map +1 -0
  109. package/dist/admin/chunks/{ru-CB4BUyQp.js → ru-CB4BUyQp.mjs} +1 -1
  110. package/dist/admin/chunks/{ru-CB4BUyQp.js.map → ru-CB4BUyQp.mjs.map} +1 -1
  111. package/dist/admin/chunks/{sa-n_aPA-pU.js → sa-n_aPA-pU.mjs} +1 -1
  112. package/dist/admin/chunks/sa-n_aPA-pU.mjs.map +1 -0
  113. package/dist/admin/chunks/{sk-tn_BDjE2.js → sk-tn_BDjE2.mjs} +1 -1
  114. package/dist/admin/chunks/sk-tn_BDjE2.mjs.map +1 -0
  115. package/dist/admin/chunks/{sv-cq4ZrQRd.js → sv-cq4ZrQRd.mjs} +1 -1
  116. package/dist/admin/chunks/sv-cq4ZrQRd.mjs.map +1 -0
  117. package/dist/admin/chunks/{th-mUH7hEtc.js → th-mUH7hEtc.mjs} +1 -1
  118. package/dist/admin/chunks/th-mUH7hEtc.mjs.map +1 -0
  119. package/dist/admin/chunks/{tr-Yt38daxh.js → tr-Yt38daxh.mjs} +1 -1
  120. package/dist/admin/chunks/tr-Yt38daxh.mjs.map +1 -0
  121. package/dist/admin/chunks/uk-BtM6WnaE.mjs +313 -0
  122. package/dist/admin/chunks/uk-BtM6WnaE.mjs.map +1 -0
  123. package/dist/admin/chunks/uk-DB6OgySY.js +318 -0
  124. package/dist/admin/chunks/{en-C1CjdAtC.js.map → uk-DB6OgySY.js.map} +1 -1
  125. package/dist/admin/chunks/{relations-CmoFVrKj.js → usePrev-DgZBp9Oo.js} +18 -2
  126. package/dist/admin/chunks/usePrev-DgZBp9Oo.js.map +1 -0
  127. package/dist/admin/chunks/{relations-DYQAaXwZ.js → usePrev-PisKKvhT.mjs} +18 -4
  128. package/dist/admin/chunks/usePrev-PisKKvhT.mjs.map +1 -0
  129. package/dist/admin/chunks/{vi-CvBGlTjr.js → vi-CvBGlTjr.mjs} +1 -1
  130. package/dist/admin/chunks/vi-CvBGlTjr.mjs.map +1 -0
  131. package/dist/admin/chunks/{zh-BmF-sHaT.js → zh-BmF-sHaT.mjs} +1 -1
  132. package/dist/admin/chunks/zh-BmF-sHaT.mjs.map +1 -0
  133. package/dist/admin/chunks/{zh-Hans-CI0HKio3.js → zh-Hans-CI0HKio3.mjs} +1 -1
  134. package/dist/admin/chunks/{zh-Hans-CI0HKio3.js.map → zh-Hans-CI0HKio3.mjs.map} +1 -1
  135. package/dist/admin/index.js +2 -1
  136. package/dist/admin/index.js.map +1 -1
  137. package/dist/admin/index.mjs +2 -1
  138. package/dist/admin/index.mjs.map +1 -1
  139. package/dist/admin/src/components/InjectionZone.d.ts +7 -1
  140. package/dist/admin/src/content-manager.d.ts +4 -0
  141. package/dist/admin/src/features/DocumentContext.d.ts +53 -0
  142. package/dist/admin/src/features/DocumentRBAC.d.ts +3 -2
  143. package/dist/admin/src/hooks/useDocument.d.ts +2 -0
  144. package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
  145. package/dist/admin/src/index.d.ts +1 -0
  146. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +2 -1
  147. package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
  148. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +49 -0
  149. package/dist/admin/src/pages/EditView/components/FormInputs/Relations/RelationModal.d.ts +8 -0
  150. package/dist/admin/src/pages/EditView/components/FormInputs/{Relations.d.ts → Relations/Relations.d.ts} +8 -2
  151. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
  152. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +9 -3
  153. package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +7 -4
  154. package/dist/admin/src/preview/components/PreviewHeader.d.ts +1 -2
  155. package/dist/admin/src/preview/pages/Preview.d.ts +2 -0
  156. package/dist/server/index.js +1 -1
  157. package/dist/server/index.js.map +1 -1
  158. package/dist/server/index.mjs +1 -1
  159. package/dist/server/index.mjs.map +1 -1
  160. package/package.json +8 -8
  161. package/dist/admin/chunks/CardDragPreview-DwuraT0K.js.map +0 -1
  162. package/dist/admin/chunks/ComponentConfigurationPage-DhYZp4nN.js.map +0 -1
  163. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js.map +0 -1
  164. package/dist/admin/chunks/EditConfigurationPage-DDuPch5d.js.map +0 -1
  165. package/dist/admin/chunks/EditViewPage-jCZnUuCR.js +0 -265
  166. package/dist/admin/chunks/EditViewPage-jCZnUuCR.js.map +0 -1
  167. package/dist/admin/chunks/EditViewPage-zSnDwLz3.js +0 -288
  168. package/dist/admin/chunks/EditViewPage-zSnDwLz3.js.map +0 -1
  169. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js.map +0 -1
  170. package/dist/admin/chunks/Form-CZmB6JIg.js.map +0 -1
  171. package/dist/admin/chunks/History-BlLKDZSw.js.map +0 -1
  172. package/dist/admin/chunks/History-CPYXgxkS.js.map +0 -1
  173. package/dist/admin/chunks/Input-CLX3C5DI.js.map +0 -1
  174. package/dist/admin/chunks/Input-DiR2Xfa7.js.map +0 -1
  175. package/dist/admin/chunks/ListConfigurationPage-CNvotSqe.js.map +0 -1
  176. package/dist/admin/chunks/ListViewPage-MJNfQTp-.js.map +0 -1
  177. package/dist/admin/chunks/NoContentTypePage-CVvVpwj4.js.map +0 -1
  178. package/dist/admin/chunks/NoPermissionsPage-C5yWg70d.js.map +0 -1
  179. package/dist/admin/chunks/Preview-DEuQgQg2.js +0 -482
  180. package/dist/admin/chunks/Preview-DEuQgQg2.js.map +0 -1
  181. package/dist/admin/chunks/Preview-H74FQ9Cq.js +0 -504
  182. package/dist/admin/chunks/Preview-H74FQ9Cq.js.map +0 -1
  183. package/dist/admin/chunks/Relations-C8jbZPVK.js +0 -827
  184. package/dist/admin/chunks/Relations-C8jbZPVK.js.map +0 -1
  185. package/dist/admin/chunks/Relations-mxOUS7TJ.js +0 -853
  186. package/dist/admin/chunks/Relations-mxOUS7TJ.js.map +0 -1
  187. package/dist/admin/chunks/ar-DckYq_WK.js.map +0 -1
  188. package/dist/admin/chunks/ca-DviY7mRj.js.map +0 -1
  189. package/dist/admin/chunks/cs-C7OSYFQ7.js.map +0 -1
  190. package/dist/admin/chunks/de-5QRlDHyR.js.map +0 -1
  191. package/dist/admin/chunks/es-DkoWSExG.js.map +0 -1
  192. package/dist/admin/chunks/eu-BG1xX7HK.js.map +0 -1
  193. package/dist/admin/chunks/fr-CFdRaRVj.js.map +0 -1
  194. package/dist/admin/chunks/gu-D5MMMXRs.js.map +0 -1
  195. package/dist/admin/chunks/hi-lp17SCjr.js.map +0 -1
  196. package/dist/admin/chunks/hooks-DMvik5y_.js.map +0 -1
  197. package/dist/admin/chunks/hu-CLka1U2C.js.map +0 -1
  198. package/dist/admin/chunks/id-USfY9m1g.js.map +0 -1
  199. package/dist/admin/chunks/index-BRlRBRLb.js.map +0 -1
  200. package/dist/admin/chunks/index-ZIwOPk6p.js.map +0 -1
  201. package/dist/admin/chunks/it-BAHrwmYS.js.map +0 -1
  202. package/dist/admin/chunks/ja-BWKmBJFT.js.map +0 -1
  203. package/dist/admin/chunks/ko-CgADGBNt.js.map +0 -1
  204. package/dist/admin/chunks/layout-B3-guCPG.js.map +0 -1
  205. package/dist/admin/chunks/layout-ameRNiAM.js.map +0 -1
  206. package/dist/admin/chunks/ml-CnhCfOn_.js.map +0 -1
  207. package/dist/admin/chunks/ms-Bh09NFff.js.map +0 -1
  208. package/dist/admin/chunks/nl-C8HYflTc.js.map +0 -1
  209. package/dist/admin/chunks/objects-C3EebVVe.js +0 -76
  210. package/dist/admin/chunks/objects-C3EebVVe.js.map +0 -1
  211. package/dist/admin/chunks/objects-wl73iEma.js +0 -73
  212. package/dist/admin/chunks/objects-wl73iEma.js.map +0 -1
  213. package/dist/admin/chunks/pl-MFCZJZuZ.js.map +0 -1
  214. package/dist/admin/chunks/pt-BR-CcotyBGJ.js.map +0 -1
  215. package/dist/admin/chunks/pt-HbmgeiYO.js.map +0 -1
  216. package/dist/admin/chunks/relations-CmoFVrKj.js.map +0 -1
  217. package/dist/admin/chunks/relations-DYQAaXwZ.js.map +0 -1
  218. package/dist/admin/chunks/sa-n_aPA-pU.js.map +0 -1
  219. package/dist/admin/chunks/sk-tn_BDjE2.js.map +0 -1
  220. package/dist/admin/chunks/sv-cq4ZrQRd.js.map +0 -1
  221. package/dist/admin/chunks/th-mUH7hEtc.js.map +0 -1
  222. package/dist/admin/chunks/tr-Yt38daxh.js.map +0 -1
  223. package/dist/admin/chunks/uk-B24MoTVg.js +0 -145
  224. package/dist/admin/chunks/uk-B24MoTVg.js.map +0 -1
  225. package/dist/admin/chunks/uk-Cpgmm7gE.js +0 -140
  226. package/dist/admin/chunks/uk-Cpgmm7gE.js.map +0 -1
  227. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js.map +0 -1
  228. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js.map +0 -1
  229. package/dist/admin/chunks/usePrev-Bjw2dhmq.js +0 -18
  230. package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +0 -1
  231. package/dist/admin/chunks/usePrev-DIYl-IAL.js +0 -21
  232. package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +0 -1
  233. package/dist/admin/chunks/vi-CvBGlTjr.js.map +0 -1
  234. package/dist/admin/chunks/zh-BmF-sHaT.js.map +0 -1
  235. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +0 -0
  236. package/dist/admin/src/preview/components/PreviewContent.d.ts +0 -3
@@ -0,0 +1,53 @@
1
+ import * as React from 'react';
2
+ import { type UseDocument } from '../hooks/useDocument';
3
+ interface DocumentMeta {
4
+ /**
5
+ * The equivalent of the ":id" url param value
6
+ * i.e. gus5a67jcboa3o2zjnz39mb1
7
+ */
8
+ documentId: string;
9
+ /**
10
+ * The equivalent of the url ":slug" param value
11
+ * i.e. api::articles.article
12
+ */
13
+ model: string;
14
+ /**
15
+ * The equivalent of the url ":collectionType" param value
16
+ * i.e. collection-types or single-types
17
+ */
18
+ collectionType: string;
19
+ /**
20
+ * Query params object
21
+ * i.e. { locale: 'fr' }
22
+ */
23
+ params?: Record<string, string | string[] | null>;
24
+ }
25
+ interface DocumentContextValue {
26
+ rootDocumentMeta: DocumentMeta;
27
+ document: ReturnType<UseDocument>;
28
+ meta: DocumentMeta;
29
+ changeDocument: (newRelation: DocumentMeta) => void;
30
+ documentHistory: DocumentMeta[];
31
+ setDocumentHistory: React.Dispatch<React.SetStateAction<DocumentMeta[]>>;
32
+ onPreview?: () => void;
33
+ }
34
+ declare const useDocumentContext: <Selected>(consumerName: string, selector: (value: DocumentContextValue) => Selected) => Selected;
35
+ /**
36
+ * TODO: Document in contributor docs, Add unit test
37
+ *
38
+ * This context provider and its associated hook are used to access a document at its root level
39
+ * and expose a function to change the current document being viewed to one of the root level docuemnt's relations.
40
+ *
41
+ * The useDocumentContext hook exposes:
42
+ * - meta: information about the currentDocument,
43
+ * - document: the actual document,
44
+ * - changeDocument: a function to change the current document to one of its relations.
45
+ * - rootDocumentMeta: information about the root level document (current page)
46
+ */
47
+ declare const DocumentContextProvider: ({ children, initialDocument, onPreview, }: {
48
+ children: React.ReactNode | React.ReactNode[];
49
+ initialDocument: DocumentMeta;
50
+ onPreview?: () => void;
51
+ }) => import("react/jsx-runtime").JSX.Element;
52
+ export { useDocumentContext, DocumentContextProvider };
53
+ export type { DocumentMeta };
@@ -23,14 +23,15 @@ declare const useDocumentRBAC: <Selected>(consumerName: string, selector: (value
23
23
  interface DocumentRBACProps {
24
24
  children: React.ReactNode;
25
25
  permissions: Permission[] | null;
26
+ model?: string;
26
27
  }
27
28
  /**
28
29
  * @internal This component is not meant to be used outside of the Content Manager plugin.
29
- * It depends on knowing the slug/model of the content-type using the params of the URL.
30
+ * It depends on knowing the slug/model of the content-type using the params of the URL or the model if it is passed as arg.
30
31
  * If you do use the hook outside of the context, we default to `false` for all actions.
31
32
  *
32
33
  * It then creates an list of `can{Action}` that are passed to the context for consumption
33
34
  * within the app to enforce RBAC.
34
35
  */
35
- declare const DocumentRBAC: ({ children, permissions }: DocumentRBACProps) => import("react/jsx-runtime").JSX.Element;
36
+ declare const DocumentRBAC: ({ children, permissions, model }: DocumentRBACProps) => import("react/jsx-runtime").JSX.Element;
36
37
  export { DocumentRBAC, useDocumentRBAC, DocumentRBACContextValue, DocumentRBACProps };
@@ -34,6 +34,7 @@ type UseDocument = (args: UseDocumentArgs, opts?: UseDocumentOpts) => {
34
34
  schema?: Schema;
35
35
  schemas?: Schema[];
36
36
  hasError?: boolean;
37
+ refetch: () => void;
37
38
  validate: (document: Document) => null | FormErrors;
38
39
  /**
39
40
  * Get the document's title
@@ -91,6 +92,7 @@ declare const useDoc: () => {
91
92
  schema?: ContentType | undefined;
92
93
  schemas?: ContentType[] | undefined;
93
94
  hasError?: boolean | undefined;
95
+ refetch: () => void;
94
96
  validate: (document: Document) => null | FormErrors;
95
97
  /**
96
98
  * Get the document's title
@@ -22,6 +22,7 @@ type UseDocumentActions = () => {
22
22
  * This will return a list of the fields as an error if it's unable to clone.
23
23
  * You most likely want to use the `clone` action instead.
24
24
  */
25
+ isLoading: boolean;
25
26
  autoClone: (args: {
26
27
  model: string;
27
28
  sourceId: string;
@@ -1,3 +1,4 @@
1
+ import 'prismjs';
1
2
  declare const _default: {
2
3
  register(app: any): void;
3
4
  bootstrap(app: any): void;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { NotificationConfig } from '@strapi/admin/strapi-admin';
3
3
  import { ButtonProps } from '@strapi/design-system';
4
4
  import type { DocumentActionComponent } from '../../../content-manager';
5
- type DocumentActionPosition = 'panel' | 'header' | 'table-row';
5
+ type DocumentActionPosition = 'panel' | 'header' | 'table-row' | 'preview' | 'relation-modal';
6
6
  interface DocumentActionDescription {
7
7
  label: string;
8
8
  onClick?: (event: React.SyntheticEvent) => Promise<boolean | void> | boolean | void;
@@ -21,6 +21,7 @@ interface DocumentActionDescription {
21
21
  * @default 'secondary'
22
22
  */
23
23
  variant?: ButtonProps['variant'];
24
+ loading?: ButtonProps['loading'];
24
25
  }
25
26
  interface DialogOptions {
26
27
  type: 'dialog';
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { Menu } from '@strapi/design-system';
3
+ export interface ObservedComponent {
4
+ toolbar: React.ReactNode;
5
+ menu: React.ReactNode;
6
+ key: string;
7
+ }
8
+ export declare const EditorToolbarObserver: ({ observedComponents, menuTriggerVariant, }: {
9
+ observedComponents: ObservedComponent[];
10
+ menuTriggerVariant?: Menu.TriggerProps['variant'];
11
+ }) => import("react/jsx-runtime").JSX.Element[];
@@ -1,6 +1,55 @@
1
1
  import { BaseRange, NodeEntry } from 'slate';
2
2
  import { type BlocksStore } from '../BlocksEditor';
3
3
  import 'prismjs/themes/prism-solarizedlight.css';
4
+ import 'prismjs/components/prism-asmatmel';
5
+ import 'prismjs/components/prism-bash';
6
+ import 'prismjs/components/prism-basic';
7
+ import 'prismjs/components/prism-c';
8
+ import 'prismjs/components/prism-clojure';
9
+ import 'prismjs/components/prism-cobol';
10
+ import 'prismjs/components/prism-cpp';
11
+ import 'prismjs/components/prism-csharp';
12
+ import 'prismjs/components/prism-dart';
13
+ import 'prismjs/components/prism-docker';
14
+ import 'prismjs/components/prism-elixir';
15
+ import 'prismjs/components/prism-erlang';
16
+ import 'prismjs/components/prism-fortran';
17
+ import 'prismjs/components/prism-fsharp';
18
+ import 'prismjs/components/prism-go';
19
+ import 'prismjs/components/prism-graphql';
20
+ import 'prismjs/components/prism-groovy';
21
+ import 'prismjs/components/prism-haskell';
22
+ import 'prismjs/components/prism-haxe';
23
+ import 'prismjs/components/prism-ini';
24
+ import 'prismjs/components/prism-java';
25
+ import 'prismjs/components/prism-javascript';
26
+ import 'prismjs/components/prism-jsx';
27
+ import 'prismjs/components/prism-json';
28
+ import 'prismjs/components/prism-julia';
29
+ import 'prismjs/components/prism-kotlin';
30
+ import 'prismjs/components/prism-latex';
31
+ import 'prismjs/components/prism-lua';
32
+ import 'prismjs/components/prism-markdown';
33
+ import 'prismjs/components/prism-matlab';
34
+ import 'prismjs/components/prism-makefile';
35
+ import 'prismjs/components/prism-objectivec';
36
+ import 'prismjs/components/prism-perl';
37
+ import 'prismjs/components/prism-php';
38
+ import 'prismjs/components/prism-powershell';
39
+ import 'prismjs/components/prism-python';
40
+ import 'prismjs/components/prism-r';
41
+ import 'prismjs/components/prism-ruby';
42
+ import 'prismjs/components/prism-rust';
43
+ import 'prismjs/components/prism-sas';
44
+ import 'prismjs/components/prism-scala';
45
+ import 'prismjs/components/prism-scheme';
46
+ import 'prismjs/components/prism-sql';
47
+ import 'prismjs/components/prism-stata';
48
+ import 'prismjs/components/prism-swift';
49
+ import 'prismjs/components/prism-typescript';
50
+ import 'prismjs/components/prism-tsx';
51
+ import 'prismjs/components/prism-vbnet';
52
+ import 'prismjs/components/prism-yaml';
4
53
  type BaseRangeCustom = BaseRange & {
5
54
  className: string;
6
55
  };
@@ -0,0 +1,8 @@
1
+ import { type DocumentMeta } from '../../../../../features/DocumentContext';
2
+ interface RelationModalProps {
3
+ triggerButtonLabel: string;
4
+ relation: DocumentMeta;
5
+ }
6
+ export declare function getCollectionType(url: string): string | undefined;
7
+ declare const RelationModalForm: ({ relation, triggerButtonLabel }: RelationModalProps) => import("react/jsx-runtime").JSX.Element;
8
+ export { RelationModalForm };
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { type InputProps } from '@strapi/admin/strapi-admin';
3
3
  import { FlexComponent } from '@strapi/design-system';
4
- import { type EditFieldLayout } from '../../../../hooks/useDocumentLayout';
5
- import { RelationResult } from '../../../../services/relations';
4
+ import { type EditFieldLayout } from '../../../../../hooks/useDocumentLayout';
5
+ import { RelationResult } from '../../../../../services/relations';
6
6
  type RelationPosition = (Pick<RelationResult, 'status' | 'locale'> & {
7
7
  before: string;
8
8
  end?: never;
@@ -17,6 +17,12 @@ interface Relation extends Pick<RelationResult, 'documentId' | 'id' | 'locale' |
17
17
  label: string;
18
18
  position?: RelationPosition;
19
19
  __temp_key__: string;
20
+ apiData?: {
21
+ documentId: RelationResult['documentId'];
22
+ id: RelationResult['id'];
23
+ locale?: RelationResult['locale'];
24
+ position: RelationPosition;
25
+ };
20
26
  }
21
27
  interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
22
28
  type: 'relation';
@@ -5,13 +5,12 @@ interface WysiwygNavProps {
5
5
  editorRef: React.MutableRefObject<EditorFromTextArea>;
6
6
  isExpandMode?: boolean;
7
7
  isPreviewMode?: boolean;
8
- onActionClick: (action: string, editorRef: React.MutableRefObject<EditorFromTextArea>, callback?: () => void) => void;
9
8
  onToggleMediaLib: () => void;
10
9
  onTogglePreviewMode?: () => void;
11
10
  }
12
11
  /**
13
12
  * TODO: refactor this mess.
14
13
  */
15
- declare const WysiwygNav: ({ disabled, editorRef, isExpandMode, isPreviewMode, onActionClick, onToggleMediaLib, onTogglePreviewMode, }: WysiwygNavProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const WysiwygNav: ({ disabled, editorRef, isPreviewMode, onToggleMediaLib, onTogglePreviewMode, }: WysiwygNavProps) => import("react/jsx-runtime").JSX.Element;
16
15
  export { WysiwygNav };
17
16
  export type { WysiwygNavProps };
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Grid } from '@strapi/design-system';
3
3
  import { EditLayout } from '../../../hooks/useDocumentLayout';
4
+ import type { UseDocument } from '../../../hooks/useDocument';
4
5
  export declare const RESPONSIVE_CONTAINER_BREAKPOINTS: {
5
6
  sm: string;
6
7
  };
@@ -14,7 +15,7 @@ export declare const ResponsiveGridRoot: import("styled-components").IStyledComp
14
15
  }, "ref"> & {
15
16
  ref?: any;
16
17
  }, never>> & Omit<Grid.Component<"div">, keyof import("react").Component<any, {}, any>>;
17
- export declare const ResponsiveGridItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
18
+ export declare const ResponsiveGridItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("@strapi/design-system").TransientBoxProps & {
18
19
  children?: import("react").ReactNode;
19
20
  } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
20
21
  ref?: any;
@@ -25,8 +26,13 @@ export declare const ResponsiveGridItem: import("styled-components").IStyledComp
25
26
  m?: number | undefined;
26
27
  }, "ref"> & {
27
28
  ref?: any;
28
- }, never>> & Omit<Grid.ItemComponent<"div">, keyof import("react").Component<any, {}, any>>;
29
+ }, {
30
+ col: number;
31
+ }>> & Omit<Grid.ItemComponent<"div">, keyof import("react").Component<any, {}, any>>;
29
32
  interface FormLayoutProps extends Pick<EditLayout, 'layout'> {
33
+ hasBackground?: boolean;
34
+ model?: string;
35
+ document: ReturnType<UseDocument>;
30
36
  }
31
- declare const FormLayout: ({ layout }: FormLayoutProps) => import("react/jsx-runtime").JSX.Element;
37
+ declare const FormLayout: ({ layout, document, hasBackground }: FormLayoutProps) => import("react/jsx-runtime").JSX.Element;
32
38
  export { FormLayout, FormLayoutProps };
@@ -1,9 +1,12 @@
1
- import { ReactNode } from 'react';
1
+ import * as React from 'react';
2
+ import { UseDocument } from '../../../hooks/useDocument';
2
3
  import type { EditFieldLayout } from '../../../hooks/useDocumentLayout';
3
4
  import type { Schema } from '@strapi/types';
4
5
  import type { DistributiveOmit } from 'react-redux';
5
- type InputRendererProps = DistributiveOmit<EditFieldLayout, 'size'>;
6
- declare const useFieldHint: (hint: ReactNode, attribute: Schema.Attribute.AnyAttribute) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | (string | import("react/jsx-runtime").JSX.Element | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | import("react").ReactPortal)[] | null | undefined;
7
- declare const MemoizedInputRenderer: import("react").MemoExoticComponent<({ visible, hint: providedHint, ...props }: InputRendererProps) => import("react/jsx-runtime").JSX.Element | null>;
6
+ type InputRendererProps = DistributiveOmit<EditFieldLayout, 'size'> & {
7
+ document: ReturnType<UseDocument>;
8
+ };
9
+ declare const useFieldHint: (hint: React.ReactNode, attribute: Schema.Attribute.AnyAttribute) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | (string | import("react/jsx-runtime").JSX.Element | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[] | null | undefined;
10
+ declare const MemoizedInputRenderer: React.MemoExoticComponent<({ visible, hint: providedHint, document, ...props }: InputRendererProps) => import("react/jsx-runtime").JSX.Element | null>;
8
11
  export type { InputRendererProps };
9
12
  export { MemoizedInputRenderer as InputRenderer, useFieldHint };
@@ -1,3 +1,2 @@
1
- declare const UnstablePreviewHeader: () => import("react/jsx-runtime").JSX.Element;
2
1
  declare const PreviewHeader: () => import("react/jsx-runtime").JSX.Element;
3
- export { PreviewHeader, UnstablePreviewHeader };
2
+ export { PreviewHeader };
@@ -1,10 +1,12 @@
1
1
  import { type UseDocument } from '../../hooks/useDocument';
2
+ import { type EditLayout } from '../../hooks/useDocumentLayout';
2
3
  interface PreviewContextValue {
3
4
  url: string;
4
5
  title: string;
5
6
  document: NonNullable<ReturnType<UseDocument>['document']>;
6
7
  meta: NonNullable<ReturnType<UseDocument>['meta']>;
7
8
  schema: NonNullable<ReturnType<UseDocument>['schema']>;
9
+ layout: EditLayout;
8
10
  }
9
11
  declare const usePreviewContext: <Selected>(consumerName: string, selector: (value: PreviewContextValue) => Selected) => Selected;
10
12
  declare const ProtectedPreviewPage: () => import("react/jsx-runtime").JSX.Element;
@@ -2694,7 +2694,7 @@ var collectionTypes = {
2694
2694
  const isUpdate = !isCreate;
2695
2695
  if (isUpdate) {
2696
2696
  // check if the document exists
2697
- const documentExists = documentManager.exists(model, id);
2697
+ const documentExists = await documentManager.exists(model, id);
2698
2698
  if (!documentExists) {
2699
2699
  throw new strapiUtils.errors.NotFoundError('Document not found');
2700
2700
  }