@strapi/content-manager 0.0.0-experimental.dd3311938ac827f1fa8560c8840a9a394f5896c0 → 0.0.0-experimental.ddb35414098c2a2816cae28a6abd5be1c4d8a58a

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 (524) hide show
  1. package/LICENSE +18 -3
  2. package/dist/admin/chunks/CardDragPreview-DwuraT0K.js +80 -0
  3. package/dist/admin/chunks/CardDragPreview-DwuraT0K.js.map +1 -0
  4. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js +82 -0
  5. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js.map +1 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-F9hz3-8Q.js +298 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-F9hz3-8Q.js.map +1 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-Rh9EprfI.js +276 -0
  9. package/dist/admin/chunks/ComponentConfigurationPage-Rh9EprfI.js.map +1 -0
  10. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js +153 -0
  11. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js.map +1 -0
  12. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js +176 -0
  13. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js.map +1 -0
  14. package/dist/admin/chunks/EditConfigurationPage-BSyU4QSr.js +180 -0
  15. package/dist/admin/chunks/EditConfigurationPage-BSyU4QSr.js.map +1 -0
  16. package/dist/admin/chunks/EditConfigurationPage-qTV90Q1w.js +158 -0
  17. package/dist/admin/chunks/EditConfigurationPage-qTV90Q1w.js.map +1 -0
  18. package/dist/admin/chunks/EditViewPage-Bg0R6Ket.js +337 -0
  19. package/dist/admin/chunks/EditViewPage-Bg0R6Ket.js.map +1 -0
  20. package/dist/admin/chunks/EditViewPage-DQJnwri9.js +314 -0
  21. package/dist/admin/chunks/EditViewPage-DQJnwri9.js.map +1 -0
  22. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js +56 -0
  23. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js.map +1 -0
  24. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js +58 -0
  25. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js.map +1 -0
  26. package/dist/admin/chunks/Form-CoCZb7X4.js +955 -0
  27. package/dist/admin/chunks/Form-CoCZb7X4.js.map +1 -0
  28. package/dist/admin/chunks/Form-NF3WNWJi.js +978 -0
  29. package/dist/admin/chunks/Form-NF3WNWJi.js.map +1 -0
  30. package/dist/admin/chunks/History-D9gkCdWM.js +1380 -0
  31. package/dist/admin/chunks/History-D9gkCdWM.js.map +1 -0
  32. package/dist/admin/chunks/History-DhTXQ3vJ.js +1357 -0
  33. package/dist/admin/chunks/History-DhTXQ3vJ.js.map +1 -0
  34. package/dist/admin/chunks/Input-B-PHs6Qx.js +6762 -0
  35. package/dist/admin/chunks/Input-B-PHs6Qx.js.map +1 -0
  36. package/dist/admin/chunks/Input-BUaeK7Zs.js +6793 -0
  37. package/dist/admin/chunks/Input-BUaeK7Zs.js.map +1 -0
  38. package/dist/admin/chunks/ListConfigurationPage-C9USjNkF.js +795 -0
  39. package/dist/admin/chunks/ListConfigurationPage-C9USjNkF.js.map +1 -0
  40. package/dist/admin/chunks/ListConfigurationPage-Deuq9sl8.js +818 -0
  41. package/dist/admin/chunks/ListConfigurationPage-Deuq9sl8.js.map +1 -0
  42. package/dist/admin/chunks/ListViewPage-CRR7JZM8.js +1132 -0
  43. package/dist/admin/chunks/ListViewPage-CRR7JZM8.js.map +1 -0
  44. package/dist/admin/chunks/ListViewPage-Dykcj1kY.js +1154 -0
  45. package/dist/admin/chunks/ListViewPage-Dykcj1kY.js.map +1 -0
  46. package/dist/admin/chunks/NoContentTypePage-CKhx-nS3.js +57 -0
  47. package/dist/admin/chunks/NoContentTypePage-CKhx-nS3.js.map +1 -0
  48. package/dist/admin/chunks/NoContentTypePage-bJYP8vEF.js +59 -0
  49. package/dist/admin/chunks/NoContentTypePage-bJYP8vEF.js.map +1 -0
  50. package/dist/admin/chunks/NoPermissionsPage-BoK43tp1.js +38 -0
  51. package/dist/admin/chunks/NoPermissionsPage-BoK43tp1.js.map +1 -0
  52. package/dist/admin/chunks/NoPermissionsPage-aAytAGle.js +36 -0
  53. package/dist/admin/chunks/NoPermissionsPage-aAytAGle.js.map +1 -0
  54. package/dist/admin/chunks/Preview-BagRf65F.js +553 -0
  55. package/dist/admin/chunks/Preview-BagRf65F.js.map +1 -0
  56. package/dist/admin/chunks/Preview-DX-20QKo.js +531 -0
  57. package/dist/admin/chunks/Preview-DX-20QKo.js.map +1 -0
  58. package/dist/admin/chunks/Relations-CIVG7vfG.js +1318 -0
  59. package/dist/admin/chunks/Relations-CIVG7vfG.js.map +1 -0
  60. package/dist/admin/chunks/Relations-DRXwCu-N.js +1291 -0
  61. package/dist/admin/chunks/Relations-DRXwCu-N.js.map +1 -0
  62. package/dist/admin/chunks/ar-DckYq_WK.js +222 -0
  63. package/dist/admin/chunks/ar-DckYq_WK.js.map +1 -0
  64. package/dist/admin/chunks/ar-DeQBSsfl.js +227 -0
  65. package/dist/{_chunks/ru-BT3ybNny.js.map → admin/chunks/ar-DeQBSsfl.js.map} +1 -1
  66. package/dist/admin/chunks/ca-ClDTvatJ.js +202 -0
  67. package/dist/admin/chunks/ca-ClDTvatJ.js.map +1 -0
  68. package/dist/admin/chunks/ca-DviY7mRj.js +197 -0
  69. package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ca-DviY7mRj.js.map} +1 -1
  70. package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
  71. package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
  72. package/dist/admin/chunks/cs-C7OSYFQ7.js +122 -0
  73. package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-C7OSYFQ7.js.map} +1 -1
  74. package/dist/admin/chunks/de-5QRlDHyR.js +195 -0
  75. package/dist/{_chunks/ja-CcFe8diO.js.map → admin/chunks/de-5QRlDHyR.js.map} +1 -1
  76. package/dist/admin/chunks/de-CbImAUA5.js +200 -0
  77. package/dist/{_chunks/gu-BRmF601H.js.map → admin/chunks/de-CbImAUA5.js.map} +1 -1
  78. package/dist/admin/chunks/en-C1CjdAtC.js +313 -0
  79. package/dist/admin/chunks/en-C1CjdAtC.js.map +1 -0
  80. package/dist/admin/chunks/en-LfhocNG2.js +308 -0
  81. package/dist/admin/chunks/en-LfhocNG2.js.map +1 -0
  82. package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
  83. package/dist/admin/chunks/es-C8vLuvZL.js.map +1 -0
  84. package/dist/admin/chunks/es-DkoWSExG.js +192 -0
  85. package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/es-DkoWSExG.js.map} +1 -1
  86. package/dist/admin/chunks/eu-BG1xX7HK.js +198 -0
  87. package/dist/admin/chunks/eu-BG1xX7HK.js.map +1 -0
  88. package/dist/admin/chunks/eu-BJW3AvXu.js +203 -0
  89. package/dist/admin/chunks/eu-BJW3AvXu.js.map +1 -0
  90. package/dist/admin/chunks/fr-CFdRaRVj.js +215 -0
  91. package/dist/admin/chunks/fr-CFdRaRVj.js.map +1 -0
  92. package/dist/admin/chunks/fr-gQSilC7w.js +220 -0
  93. package/dist/admin/chunks/fr-gQSilC7w.js.map +1 -0
  94. package/dist/admin/chunks/gu-D5MMMXRs.js +196 -0
  95. package/dist/admin/chunks/gu-D5MMMXRs.js.map +1 -0
  96. package/dist/admin/chunks/gu-DPU4wyx7.js +201 -0
  97. package/dist/{_chunks/eu-VDH-3ovk.js.map → admin/chunks/gu-DPU4wyx7.js.map} +1 -1
  98. package/dist/admin/chunks/hi-Dp4omeBb.js +201 -0
  99. package/dist/admin/chunks/hi-Dp4omeBb.js.map +1 -0
  100. package/dist/admin/chunks/hi-lp17SCjr.js +196 -0
  101. package/dist/admin/chunks/hi-lp17SCjr.js.map +1 -0
  102. package/dist/{_chunks/hooks-BAaaKPS_.js → admin/chunks/hooks-D-sOYd1s.js} +6 -3
  103. package/dist/admin/chunks/hooks-D-sOYd1s.js.map +1 -0
  104. package/dist/admin/chunks/hooks-DMvik5y_.js +7 -0
  105. package/dist/admin/chunks/hooks-DMvik5y_.js.map +1 -0
  106. package/dist/admin/chunks/hu-CLka1U2C.js +198 -0
  107. package/dist/admin/chunks/hu-CLka1U2C.js.map +1 -0
  108. package/dist/admin/chunks/hu-CtFJuhTd.js +203 -0
  109. package/dist/admin/chunks/hu-CtFJuhTd.js.map +1 -0
  110. package/dist/admin/chunks/id-D7V5S1rB.js +161 -0
  111. package/dist/{_chunks/it-DkBIs7vD.js.map → admin/chunks/id-D7V5S1rB.js.map} +1 -1
  112. package/dist/admin/chunks/id-USfY9m1g.js +156 -0
  113. package/dist/admin/chunks/id-USfY9m1g.js.map +1 -0
  114. package/dist/admin/chunks/index-BFvBqzd6.js +5416 -0
  115. package/dist/admin/chunks/index-BFvBqzd6.js.map +1 -0
  116. package/dist/admin/chunks/index-DjnPfPx8.js +5350 -0
  117. package/dist/admin/chunks/index-DjnPfPx8.js.map +1 -0
  118. package/dist/admin/chunks/it-BAHrwmYS.js +158 -0
  119. package/dist/admin/chunks/it-BAHrwmYS.js.map +1 -0
  120. package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
  121. package/dist/{_chunks/es-EUonQTon.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
  122. package/dist/admin/chunks/ja-BWKmBJFT.js +192 -0
  123. package/dist/admin/chunks/ja-BWKmBJFT.js.map +1 -0
  124. package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
  125. package/dist/admin/chunks/ja-jdQM-B79.js.map +1 -0
  126. package/dist/admin/chunks/ko-CgADGBNt.js +191 -0
  127. package/dist/admin/chunks/ko-CgADGBNt.js.map +1 -0
  128. package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
  129. package/dist/admin/chunks/ko-k46sEyzt.js.map +1 -0
  130. package/dist/admin/chunks/layout-BBZkZkME.js +618 -0
  131. package/dist/admin/chunks/layout-BBZkZkME.js.map +1 -0
  132. package/dist/admin/chunks/layout-DsbCNcEH.js +598 -0
  133. package/dist/admin/chunks/layout-DsbCNcEH.js.map +1 -0
  134. package/dist/admin/chunks/ml-CnhCfOn_.js +196 -0
  135. package/dist/admin/chunks/ml-CnhCfOn_.js.map +1 -0
  136. package/dist/admin/chunks/ml-DqxPwODx.js +201 -0
  137. package/dist/admin/chunks/ml-DqxPwODx.js.map +1 -0
  138. package/dist/admin/chunks/ms-Bh09NFff.js +140 -0
  139. package/dist/{_chunks/uk-C8EiqJY7.js.map → admin/chunks/ms-Bh09NFff.js.map} +1 -1
  140. package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
  141. package/dist/admin/chunks/ms-CvSC0OdG.js.map +1 -0
  142. package/dist/admin/chunks/nl-BEubhS8C.js +203 -0
  143. package/dist/admin/chunks/nl-BEubhS8C.js.map +1 -0
  144. package/dist/admin/chunks/nl-C8HYflTc.js +198 -0
  145. package/dist/admin/chunks/nl-C8HYflTc.js.map +1 -0
  146. package/dist/admin/chunks/objects-C3EebVVe.js +76 -0
  147. package/dist/admin/chunks/objects-C3EebVVe.js.map +1 -0
  148. package/dist/admin/chunks/objects-wl73iEma.js +73 -0
  149. package/dist/admin/chunks/objects-wl73iEma.js.map +1 -0
  150. package/dist/admin/chunks/pl-DWhGDzmM.js +200 -0
  151. package/dist/{_chunks/ca-Cmk45QO6.js.map → admin/chunks/pl-DWhGDzmM.js.map} +1 -1
  152. package/dist/admin/chunks/pl-MFCZJZuZ.js +195 -0
  153. package/dist/admin/chunks/pl-MFCZJZuZ.js.map +1 -0
  154. package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
  155. package/dist/admin/chunks/pt-BR-CPtAXD-4.js.map +1 -0
  156. package/dist/admin/chunks/pt-BR-CcotyBGJ.js +197 -0
  157. package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CcotyBGJ.js.map} +1 -1
  158. package/dist/admin/chunks/pt-BoPxN80n.js +96 -0
  159. package/dist/admin/chunks/pt-BoPxN80n.js.map +1 -0
  160. package/dist/admin/chunks/pt-HbmgeiYO.js +93 -0
  161. package/dist/admin/chunks/pt-HbmgeiYO.js.map +1 -0
  162. package/dist/admin/chunks/relations-CbrYJQqU.js +173 -0
  163. package/dist/admin/chunks/relations-CbrYJQqU.js.map +1 -0
  164. package/dist/admin/chunks/relations-DPq9jPO4.js +178 -0
  165. package/dist/admin/chunks/relations-DPq9jPO4.js.map +1 -0
  166. package/dist/admin/chunks/ru-C0op0ALG.js +232 -0
  167. package/dist/{_chunks/en-fbKQxLGn.js.map → admin/chunks/ru-C0op0ALG.js.map} +1 -1
  168. package/dist/admin/chunks/ru-CB4BUyQp.js +230 -0
  169. package/dist/admin/chunks/ru-CB4BUyQp.js.map +1 -0
  170. package/dist/admin/chunks/sa-B_FuPyMw.js +201 -0
  171. package/dist/admin/chunks/sa-B_FuPyMw.js.map +1 -0
  172. package/dist/admin/chunks/sa-n_aPA-pU.js +196 -0
  173. package/dist/admin/chunks/sa-n_aPA-pU.js.map +1 -0
  174. package/dist/admin/chunks/sk-D_iXML2C.js +203 -0
  175. package/dist/admin/chunks/sk-D_iXML2C.js.map +1 -0
  176. package/dist/admin/chunks/sk-tn_BDjE2.js +198 -0
  177. package/dist/admin/chunks/sk-tn_BDjE2.js.map +1 -0
  178. package/dist/admin/chunks/sv-BstBC1Yp.js +203 -0
  179. package/dist/admin/chunks/sv-BstBC1Yp.js.map +1 -0
  180. package/dist/admin/chunks/sv-cq4ZrQRd.js +198 -0
  181. package/dist/admin/chunks/sv-cq4ZrQRd.js.map +1 -0
  182. package/dist/admin/chunks/th-lXoOCqPC.js +149 -0
  183. package/dist/{_chunks/th-D9_GfAjc.js.map → admin/chunks/th-lXoOCqPC.js.map} +1 -1
  184. package/dist/admin/chunks/th-mUH7hEtc.js +144 -0
  185. package/dist/admin/chunks/th-mUH7hEtc.js.map +1 -0
  186. package/dist/admin/chunks/tr-CkS6sLIE.js +200 -0
  187. package/dist/admin/chunks/tr-CkS6sLIE.js.map +1 -0
  188. package/dist/admin/chunks/tr-Yt38daxh.js +195 -0
  189. package/dist/admin/chunks/tr-Yt38daxh.js.map +1 -0
  190. package/dist/admin/chunks/uk-B24MoTVg.js +145 -0
  191. package/dist/admin/chunks/uk-B24MoTVg.js.map +1 -0
  192. package/dist/admin/chunks/uk-Cpgmm7gE.js +140 -0
  193. package/dist/admin/chunks/uk-Cpgmm7gE.js.map +1 -0
  194. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js +247 -0
  195. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js.map +1 -0
  196. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js +271 -0
  197. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js.map +1 -0
  198. package/dist/admin/chunks/usePrev-Bjw2dhmq.js +18 -0
  199. package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +1 -0
  200. package/dist/admin/chunks/usePrev-DIYl-IAL.js +21 -0
  201. package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +1 -0
  202. package/dist/admin/chunks/vi-BGr1X_HZ.js +112 -0
  203. package/dist/admin/chunks/vi-BGr1X_HZ.js.map +1 -0
  204. package/dist/admin/chunks/vi-CvBGlTjr.js +108 -0
  205. package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-CvBGlTjr.js.map} +1 -1
  206. package/dist/admin/chunks/zh-BmF-sHaT.js +205 -0
  207. package/dist/admin/chunks/zh-BmF-sHaT.js.map +1 -0
  208. package/dist/admin/chunks/zh-DwFu_Kfj.js +210 -0
  209. package/dist/admin/chunks/zh-DwFu_Kfj.js.map +1 -0
  210. package/dist/admin/chunks/zh-Hans-CI0HKio3.js +934 -0
  211. package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-CI0HKio3.js.map} +1 -1
  212. package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
  213. package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
  214. package/dist/admin/index.js +25 -4
  215. package/dist/admin/index.js.map +1 -1
  216. package/dist/admin/index.mjs +16 -11
  217. package/dist/admin/index.mjs.map +1 -1
  218. package/dist/admin/src/content-manager.d.ts +3 -2
  219. package/dist/admin/src/exports.d.ts +2 -1
  220. package/dist/admin/src/history/index.d.ts +3 -0
  221. package/dist/admin/src/history/services/historyVersion.d.ts +2 -2
  222. package/dist/admin/src/hooks/useDocument.d.ts +50 -2
  223. package/dist/admin/src/index.d.ts +1 -0
  224. package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
  225. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +9 -4
  226. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +3 -3
  227. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +7 -0
  228. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +49 -0
  229. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +5 -0
  230. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +4 -1
  231. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -1
  232. package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +22 -1
  233. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +2 -2
  234. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +2 -2
  235. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +6 -58
  236. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +27 -0
  237. package/dist/admin/src/pages/EditView/components/Header.d.ts +11 -11
  238. package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
  239. package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
  240. package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
  241. package/dist/admin/src/preview/components/PreviewContent.d.ts +3 -0
  242. package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
  243. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  244. package/dist/admin/src/preview/index.d.ts +3 -0
  245. package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
  246. package/dist/admin/src/preview/routes.d.ts +3 -0
  247. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  248. package/dist/admin/src/router.d.ts +1 -1
  249. package/dist/admin/src/services/api.d.ts +1 -1
  250. package/dist/admin/src/services/components.d.ts +2 -2
  251. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  252. package/dist/admin/src/services/documents.d.ts +19 -20
  253. package/dist/admin/src/services/init.d.ts +1 -1
  254. package/dist/admin/src/services/relations.d.ts +2 -2
  255. package/dist/admin/src/services/uid.d.ts +3 -3
  256. package/dist/admin/src/utils/validation.d.ts +4 -1
  257. package/dist/server/index.js +5483 -4083
  258. package/dist/server/index.js.map +1 -1
  259. package/dist/server/index.mjs +5504 -4101
  260. package/dist/server/index.mjs.map +1 -1
  261. package/dist/server/src/bootstrap.d.ts.map +1 -1
  262. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  263. package/dist/server/src/controllers/index.d.ts.map +1 -1
  264. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  265. package/dist/server/src/controllers/uid.d.ts.map +1 -1
  266. package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
  267. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  268. package/dist/server/src/controllers/validation/dimensions.d.ts +4 -2
  269. package/dist/server/src/controllers/validation/dimensions.d.ts.map +1 -1
  270. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  271. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  272. package/dist/server/src/history/services/history.d.ts +3 -3
  273. package/dist/server/src/history/services/history.d.ts.map +1 -1
  274. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  275. package/dist/server/src/history/services/utils.d.ts +8 -12
  276. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  277. package/dist/server/src/index.d.ts +7 -6
  278. package/dist/server/src/index.d.ts.map +1 -1
  279. package/dist/server/src/policies/hasPermissions.d.ts.map +1 -1
  280. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  281. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  282. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  283. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  284. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  285. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  286. package/dist/server/src/preview/index.d.ts +4 -0
  287. package/dist/server/src/preview/index.d.ts.map +1 -0
  288. package/dist/server/src/preview/routes/index.d.ts +8 -0
  289. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  290. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  291. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  292. package/dist/server/src/preview/services/index.d.ts +16 -0
  293. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  294. package/dist/server/src/preview/services/preview-config.d.ts +32 -0
  295. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  296. package/dist/server/src/preview/services/preview.d.ts +12 -0
  297. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  298. package/dist/server/src/preview/utils.d.ts +19 -0
  299. package/dist/server/src/preview/utils.d.ts.map +1 -0
  300. package/dist/server/src/register.d.ts.map +1 -1
  301. package/dist/server/src/routes/index.d.ts.map +1 -1
  302. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  303. package/dist/server/src/services/document-metadata.d.ts +12 -10
  304. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  305. package/dist/server/src/services/index.d.ts +7 -6
  306. package/dist/server/src/services/index.d.ts.map +1 -1
  307. package/dist/server/src/services/permission-checker.d.ts.map +1 -1
  308. package/dist/server/src/services/utils/count.d.ts +1 -1
  309. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  310. package/dist/server/src/services/utils/populate.d.ts +3 -3
  311. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  312. package/dist/server/src/utils/index.d.ts +2 -0
  313. package/dist/server/src/utils/index.d.ts.map +1 -1
  314. package/dist/shared/contracts/collection-types.d.ts +3 -2
  315. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  316. package/dist/shared/contracts/components.d.ts +0 -1
  317. package/dist/shared/contracts/content-types.d.ts +0 -1
  318. package/dist/shared/contracts/history-versions.d.ts +0 -1
  319. package/dist/shared/contracts/index.d.ts +1 -1
  320. package/dist/shared/contracts/index.d.ts.map +1 -1
  321. package/dist/shared/contracts/init.d.ts +0 -1
  322. package/dist/shared/contracts/preview.d.ts +26 -0
  323. package/dist/shared/contracts/preview.d.ts.map +1 -0
  324. package/dist/shared/contracts/relations.d.ts +1 -2
  325. package/dist/shared/contracts/relations.d.ts.map +1 -1
  326. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  327. package/dist/shared/contracts/single-types.d.ts +0 -1
  328. package/dist/shared/contracts/uid.d.ts +0 -1
  329. package/dist/shared/index.d.ts +0 -1
  330. package/dist/shared/index.js +37 -22
  331. package/dist/shared/index.js.map +1 -1
  332. package/dist/shared/index.mjs +36 -23
  333. package/dist/shared/index.mjs.map +1 -1
  334. package/package.json +24 -20
  335. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  336. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  337. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  338. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  339. package/dist/_chunks/ComponentConfigurationPage-BMajAl1u.mjs +0 -236
  340. package/dist/_chunks/ComponentConfigurationPage-BMajAl1u.mjs.map +0 -1
  341. package/dist/_chunks/ComponentConfigurationPage-y_7iLdmB.js +0 -255
  342. package/dist/_chunks/ComponentConfigurationPage-y_7iLdmB.js.map +0 -1
  343. package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
  344. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
  345. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  346. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  347. package/dist/_chunks/EditConfigurationPage-CPVB8Uqc.js +0 -151
  348. package/dist/_chunks/EditConfigurationPage-CPVB8Uqc.js.map +0 -1
  349. package/dist/_chunks/EditConfigurationPage-CcOoD26O.mjs +0 -132
  350. package/dist/_chunks/EditConfigurationPage-CcOoD26O.mjs.map +0 -1
  351. package/dist/_chunks/EditViewPage-CTTDHKkQ.js +0 -222
  352. package/dist/_chunks/EditViewPage-CTTDHKkQ.js.map +0 -1
  353. package/dist/_chunks/EditViewPage-DWb0DE7R.mjs +0 -203
  354. package/dist/_chunks/EditViewPage-DWb0DE7R.mjs.map +0 -1
  355. package/dist/_chunks/Field-C5Z1Ivdv.js +0 -5243
  356. package/dist/_chunks/Field-C5Z1Ivdv.js.map +0 -1
  357. package/dist/_chunks/Field-DnStdvQw.mjs +0 -5211
  358. package/dist/_chunks/Field-DnStdvQw.mjs.map +0 -1
  359. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  360. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  361. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  362. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  363. package/dist/_chunks/Form-B81OtW-k.js +0 -761
  364. package/dist/_chunks/Form-B81OtW-k.js.map +0 -1
  365. package/dist/_chunks/Form-DqGgE55Q.mjs +0 -740
  366. package/dist/_chunks/Form-DqGgE55Q.mjs.map +0 -1
  367. package/dist/_chunks/History-4NbOq2dX.js +0 -1030
  368. package/dist/_chunks/History-4NbOq2dX.js.map +0 -1
  369. package/dist/_chunks/History-DS6-HCYX.mjs +0 -1009
  370. package/dist/_chunks/History-DS6-HCYX.mjs.map +0 -1
  371. package/dist/_chunks/ListConfigurationPage-CpfstlYY.js +0 -641
  372. package/dist/_chunks/ListConfigurationPage-CpfstlYY.js.map +0 -1
  373. package/dist/_chunks/ListConfigurationPage-DQJJltko.mjs +0 -622
  374. package/dist/_chunks/ListConfigurationPage-DQJJltko.mjs.map +0 -1
  375. package/dist/_chunks/ListViewPage-CA3I75m5.js +0 -851
  376. package/dist/_chunks/ListViewPage-CA3I75m5.js.map +0 -1
  377. package/dist/_chunks/ListViewPage-nQrOQuVo.mjs +0 -827
  378. package/dist/_chunks/ListViewPage-nQrOQuVo.mjs.map +0 -1
  379. package/dist/_chunks/NoContentTypePage-DbnHE22g.mjs +0 -51
  380. package/dist/_chunks/NoContentTypePage-DbnHE22g.mjs.map +0 -1
  381. package/dist/_chunks/NoContentTypePage-Dldu-_Mx.js +0 -51
  382. package/dist/_chunks/NoContentTypePage-Dldu-_Mx.js.map +0 -1
  383. package/dist/_chunks/NoPermissionsPage-CO2MK200.js +0 -23
  384. package/dist/_chunks/NoPermissionsPage-CO2MK200.js.map +0 -1
  385. package/dist/_chunks/NoPermissionsPage-fOIkQM0v.mjs +0 -23
  386. package/dist/_chunks/NoPermissionsPage-fOIkQM0v.mjs.map +0 -1
  387. package/dist/_chunks/Relations-BDRl99Ux.mjs +0 -694
  388. package/dist/_chunks/Relations-BDRl99Ux.mjs.map +0 -1
  389. package/dist/_chunks/Relations-DG2jnOcr.js +0 -714
  390. package/dist/_chunks/Relations-DG2jnOcr.js.map +0 -1
  391. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  392. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  393. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  394. package/dist/_chunks/ar-CCEVvqGG.mjs.map +0 -1
  395. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  396. package/dist/_chunks/ca-5U32ON2v.mjs.map +0 -1
  397. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  398. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  399. package/dist/_chunks/cs-CM2aBUar.mjs.map +0 -1
  400. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  401. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  402. package/dist/_chunks/de-C72KDNOl.mjs.map +0 -1
  403. package/dist/_chunks/de-CCEmbAah.js +0 -199
  404. package/dist/_chunks/en-Ux26r5pl.mjs +0 -291
  405. package/dist/_chunks/en-Ux26r5pl.mjs.map +0 -1
  406. package/dist/_chunks/en-fbKQxLGn.js +0 -291
  407. package/dist/_chunks/es-CeXiYflN.mjs +0 -196
  408. package/dist/_chunks/es-CeXiYflN.mjs.map +0 -1
  409. package/dist/_chunks/es-EUonQTon.js +0 -196
  410. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  411. package/dist/_chunks/eu-CdALomew.mjs.map +0 -1
  412. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  413. package/dist/_chunks/fr-B7kGGg3E.js +0 -206
  414. package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
  415. package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
  416. package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
  417. package/dist/_chunks/gu-BRmF601H.js +0 -200
  418. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  419. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  420. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  421. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  422. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  423. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  424. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  425. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  426. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  427. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  428. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  429. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  430. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  431. package/dist/_chunks/id-B5Ser98A.js +0 -160
  432. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  433. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  434. package/dist/_chunks/id-BtwA9WJT.mjs.map +0 -1
  435. package/dist/_chunks/index-BZoNZMXL.js +0 -3956
  436. package/dist/_chunks/index-BZoNZMXL.js.map +0 -1
  437. package/dist/_chunks/index-Drt2DN7v.mjs +0 -3937
  438. package/dist/_chunks/index-Drt2DN7v.mjs.map +0 -1
  439. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  440. package/dist/_chunks/it-BrVPqaf1.mjs.map +0 -1
  441. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  442. package/dist/_chunks/ja-CcFe8diO.js +0 -196
  443. package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
  444. package/dist/_chunks/ja-CtsUxOvk.mjs.map +0 -1
  445. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  446. package/dist/_chunks/ko-HVQRlfUI.mjs.map +0 -1
  447. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  448. package/dist/_chunks/layout-BzAbmoO6.mjs +0 -458
  449. package/dist/_chunks/layout-BzAbmoO6.mjs.map +0 -1
  450. package/dist/_chunks/layout-DEYBqgF1.js +0 -476
  451. package/dist/_chunks/layout-DEYBqgF1.js.map +0 -1
  452. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  453. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  454. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  455. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  456. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  457. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  458. package/dist/_chunks/ms-m_WjyWx7.mjs.map +0 -1
  459. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  460. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  461. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  462. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  463. package/dist/_chunks/objects-gigeqt7s.js +0 -49
  464. package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
  465. package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
  466. package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
  467. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  468. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  469. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  470. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  471. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  472. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  473. package/dist/_chunks/pt-BR-C71iDxnh.mjs.map +0 -1
  474. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  475. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  476. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  477. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  478. package/dist/_chunks/relations-D0eZ4VWw.js +0 -134
  479. package/dist/_chunks/relations-D0eZ4VWw.js.map +0 -1
  480. package/dist/_chunks/relations-D26zVRdi.mjs +0 -135
  481. package/dist/_chunks/relations-D26zVRdi.mjs.map +0 -1
  482. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  483. package/dist/_chunks/ru-BE6A4Exp.mjs.map +0 -1
  484. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  485. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  486. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  487. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  488. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  489. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  490. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  491. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  492. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  493. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  494. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  495. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  496. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  497. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  498. package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
  499. package/dist/_chunks/th-D9_GfAjc.js +0 -148
  500. package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
  501. package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
  502. package/dist/_chunks/tr-D9UH-O_R.js +0 -199
  503. package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
  504. package/dist/_chunks/uk-C8EiqJY7.js +0 -144
  505. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  506. package/dist/_chunks/uk-CR-zDhAY.mjs.map +0 -1
  507. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
  508. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
  509. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
  510. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
  511. package/dist/_chunks/usePrev-B9w_-eYc.js +0 -15
  512. package/dist/_chunks/usePrev-B9w_-eYc.js.map +0 -1
  513. package/dist/_chunks/usePrev-DH6iah0A.mjs +0 -16
  514. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +0 -1
  515. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  516. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  517. package/dist/_chunks/vi-DUXIk_fw.mjs.map +0 -1
  518. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  519. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  520. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  521. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  522. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  523. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
  524. package/strapi-server.js +0 -3
@@ -1,740 +0,0 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { useNotification, useField, Form, InputRenderer, useForm, Layouts, BackButton } from "@strapi/admin/strapi-admin";
4
- import { ModalLayout, ModalHeader, Flex, Typography, ModalBody, Grid, GridItem, ModalFooter, Button, IconButton, Box, Menu, useComposedRefs, Link, Main, Divider } from "@strapi/design-system";
5
- import { generateNKeysBetween as generateNKeysBetween$1 } from "fractional-indexing";
6
- import pipe from "lodash/fp/pipe";
7
- import { useIntl } from "react-intl";
8
- import { a as useGetInitialDataQuery, A as ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD, y as capitalise, g as getTranslation } from "./index-Drt2DN7v.mjs";
9
- import { Plus, Drag, Pencil, Cross, Cog } from "@strapi/icons";
10
- import { getEmptyImage } from "react-dnd-html5-backend";
11
- import { NavLink } from "react-router-dom";
12
- import { styled } from "styled-components";
13
- import { u as useDragAndDrop, I as ItemTypes } from "./useDragAndDrop-DdHgKsqq.mjs";
14
- import { C as ComponentIcon } from "./ComponentIcon-u4bIXTFY.mjs";
15
- import * as yup from "yup";
16
- import { F as FieldTypeIcon } from "./FieldTypeIcon-CMlNO8PE.mjs";
17
- const FIELD_SCHEMA = yup.object().shape({
18
- label: yup.string().required(),
19
- description: yup.string(),
20
- editable: yup.boolean(),
21
- size: yup.number().required()
22
- });
23
- const EditFieldForm = ({ attribute, name, onClose }) => {
24
- const { formatMessage } = useIntl();
25
- const id = React.useId();
26
- const { toggleNotification } = useNotification();
27
- const { value, onChange } = useField(name);
28
- const { data: mainFieldOptions } = useGetInitialDataQuery(void 0, {
29
- selectFromResult: (res) => {
30
- if (attribute?.type !== "relation" || !res.data) {
31
- return { data: [] };
32
- }
33
- if ("targetModel" in attribute && typeof attribute.targetModel === "string") {
34
- const targetSchema = res.data.contentTypes.find(
35
- (schema) => schema.uid === attribute.targetModel
36
- );
37
- if (targetSchema) {
38
- return {
39
- data: Object.entries(targetSchema.attributes).reduce((acc, [key, attribute2]) => {
40
- if (!ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD.includes(attribute2.type)) {
41
- acc.push({
42
- label: key,
43
- value: key
44
- });
45
- }
46
- return acc;
47
- }, [])
48
- };
49
- }
50
- }
51
- return { data: [] };
52
- },
53
- skip: attribute?.type !== "relation"
54
- });
55
- if (!value || value.name === TEMP_FIELD_NAME || !attribute) {
56
- console.error(
57
- "You've opened a field to edit without it being part of the form, this is likely a bug with Strapi. Please open an issue."
58
- );
59
- toggleNotification({
60
- message: formatMessage({
61
- id: "content-manager.containers.edit-settings.modal-form.error",
62
- defaultMessage: "An error occurred while trying to open the form."
63
- }),
64
- type: "danger"
65
- });
66
- return null;
67
- }
68
- return /* @__PURE__ */ jsx(ModalLayout, { onClose, labelledBy: id, children: /* @__PURE__ */ jsxs(
69
- Form,
70
- {
71
- method: "PUT",
72
- initialValues: value,
73
- validationSchema: FIELD_SCHEMA,
74
- onSubmit: (data) => {
75
- onChange(name, data);
76
- onClose();
77
- },
78
- children: [
79
- /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsxs(Flex, { gap: 3, children: [
80
- /* @__PURE__ */ jsx(FieldTypeIcon, { type: attribute.type }),
81
- /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: formatMessage(
82
- {
83
- id: "content-manager.containers.edit-settings.modal-form.label",
84
- defaultMessage: "Edit {fieldName}"
85
- },
86
- { fieldName: capitalise(value.name) }
87
- ) })
88
- ] }) }),
89
- /* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsx(Grid, { gap: 4, children: [
90
- {
91
- name: "label",
92
- label: formatMessage({
93
- id: getTranslation("containers.edit-settings.modal-form.label"),
94
- defaultMessage: "Label"
95
- }),
96
- size: 6,
97
- type: "string"
98
- },
99
- {
100
- name: "description",
101
- label: formatMessage({
102
- id: getTranslation("containers.edit-settings.modal-form.description"),
103
- defaultMessage: "Description"
104
- }),
105
- size: 6,
106
- type: "string"
107
- },
108
- {
109
- name: "placeholder",
110
- label: formatMessage({
111
- id: getTranslation("containers.edit-settings.modal-form.placeholder"),
112
- defaultMessage: "Placeholder"
113
- }),
114
- size: 6,
115
- type: "string"
116
- },
117
- {
118
- name: "editable",
119
- label: formatMessage({
120
- id: getTranslation("containers.edit-settings.modal-form.editable"),
121
- defaultMessage: "Editable"
122
- }),
123
- size: 6,
124
- type: "boolean"
125
- },
126
- {
127
- name: "mainField",
128
- label: formatMessage({
129
- id: getTranslation("containers.edit-settings.modal-form.mainField"),
130
- defaultMessage: "Entry title"
131
- }),
132
- hint: formatMessage({
133
- id: getTranslation(
134
- "containers.SettingPage.edit-settings.modal-form.mainField.hint"
135
- ),
136
- defaultMessage: "Set the displayed field"
137
- }),
138
- size: 6,
139
- options: mainFieldOptions,
140
- type: "enumeration"
141
- },
142
- {
143
- name: "size",
144
- label: formatMessage({
145
- id: getTranslation("containers.ListSettingsView.modal-form.size"),
146
- defaultMessage: "Size"
147
- }),
148
- size: 6,
149
- options: [
150
- { value: "4", label: "33%" },
151
- { value: "6", label: "50%" },
152
- { value: "8", label: "66%" },
153
- { value: "12", label: "100%" }
154
- ],
155
- type: "enumeration"
156
- }
157
- ].filter(filterFieldsBasedOnAttributeType(attribute.type)).map(({ size, ...field }) => /* @__PURE__ */ jsx(GridItem, { col: size, children: /* @__PURE__ */ jsx(InputRenderer, { ...field }) }, field.name)) }) }),
158
- /* @__PURE__ */ jsx(
159
- ModalFooter,
160
- {
161
- startActions: /* @__PURE__ */ jsx(Button, { onClick: onClose, variant: "tertiary", children: formatMessage({ id: "app.components.Button.cancel", defaultMessage: "Cancel" }) }),
162
- endActions: /* @__PURE__ */ jsx(Button, { type: "submit", children: formatMessage({ id: "global.finish", defaultMessage: "Finish" }) })
163
- }
164
- )
165
- ]
166
- }
167
- ) });
168
- };
169
- const filterFieldsBasedOnAttributeType = (type) => (field) => {
170
- switch (type) {
171
- case "blocks":
172
- case "richtext":
173
- return field.name !== "size" && field.name !== "mainField";
174
- case "boolean":
175
- case "media":
176
- return field.name !== "placeholder" && field.name !== "mainField";
177
- case "component":
178
- case "dynamiczone":
179
- return field.name === "label" || field.name === "editable";
180
- case "json":
181
- return field.name !== "placeholder" && field.name !== "mainField" && field.name !== "size";
182
- case "relation":
183
- return true;
184
- default:
185
- return field.name !== "mainField";
186
- }
187
- };
188
- const Fields = ({ attributes, fieldSizes, components, metadatas = {} }) => {
189
- const { formatMessage } = useIntl();
190
- const layout = useForm(
191
- "Fields",
192
- (state) => state.values.layout ?? []
193
- );
194
- const onChange = useForm("Fields", (state) => state.onChange);
195
- const addFieldRow = useForm("Fields", (state) => state.addFieldRow);
196
- const removeFieldRow = useForm("Fields", (state) => state.removeFieldRow);
197
- const existingFields = layout.map((row) => row.children.map((field) => field.name)).flat();
198
- const remainingFields = Object.entries(metadatas).reduce((acc, current) => {
199
- const [name, { visible, ...field }] = current;
200
- if (!existingFields.includes(name) && visible === true) {
201
- const type = attributes[name]?.type;
202
- const size = type ? fieldSizes[type] : 12;
203
- acc.push({
204
- ...field,
205
- label: field.label ?? name,
206
- name,
207
- size
208
- });
209
- }
210
- return acc;
211
- }, []);
212
- const handleMoveField = ([newRowIndex, newFieldIndex], [currentRowIndex, currentFieldIndex]) => {
213
- const newLayout = structuredClone(layout);
214
- const [field] = newLayout[currentRowIndex].children.splice(currentFieldIndex, 1);
215
- if (!field || field.name === TEMP_FIELD_NAME) {
216
- return;
217
- }
218
- const newRow = newLayout[newRowIndex].children;
219
- const [newFieldKey] = generateNKeysBetween(newRow, 1, currentFieldIndex, newFieldIndex);
220
- newRow.splice(newFieldIndex, 0, { ...field, __temp_key__: newFieldKey });
221
- if (newLayout[newRowIndex].children.reduce((acc, curr) => acc + curr.size, 0) > 12) {
222
- const recalculatedRows = chunkArray(
223
- newLayout[newRowIndex].children.filter((field2) => field2.name !== TEMP_FIELD_NAME)
224
- );
225
- const rowKeys = generateNKeysBetween(
226
- newLayout,
227
- recalculatedRows.length,
228
- currentRowIndex,
229
- newRowIndex
230
- );
231
- newLayout.splice(
232
- newRowIndex,
233
- 1,
234
- ...recalculatedRows.map((row, index) => ({
235
- __temp_key__: rowKeys[index],
236
- children: row
237
- }))
238
- );
239
- }
240
- const newLayoutWithSpacers = newLayout.map((row) => ({
241
- ...row,
242
- children: row.children.filter((field2) => field2.name !== TEMP_FIELD_NAME)
243
- })).filter((row) => row.children.length > 0).map((row) => {
244
- const totalSpaceTaken = row.children.reduce((acc, curr) => acc + curr.size, 0);
245
- if (totalSpaceTaken < 12) {
246
- const [spacerKey] = generateNKeysBetween$1(
247
- row.children.at(-1)?.__temp_key__,
248
- void 0,
249
- 1
250
- );
251
- return {
252
- ...row,
253
- children: [
254
- ...row.children,
255
- {
256
- name: TEMP_FIELD_NAME,
257
- size: 12 - totalSpaceTaken,
258
- __temp_key__: spacerKey
259
- }
260
- ]
261
- };
262
- }
263
- return row;
264
- });
265
- onChange("layout", newLayoutWithSpacers);
266
- };
267
- const handleRemoveField = (rowIndex, fieldIndex) => () => {
268
- if (layout[rowIndex].children.length === 1) {
269
- removeFieldRow(`layout`, rowIndex);
270
- } else {
271
- onChange(`layout.${rowIndex}.children.${fieldIndex}`, void 0);
272
- }
273
- };
274
- const handleAddField = (field) => () => {
275
- addFieldRow("layout", { children: [field] });
276
- };
277
- return /* @__PURE__ */ jsxs(Flex, { paddingTop: 6, direction: "column", alignItems: "stretch", gap: 4, children: [
278
- /* @__PURE__ */ jsxs(Flex, { alignItems: "flex-start", direction: "column", justifyContent: "space-between", children: [
279
- /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: formatMessage({
280
- id: getTranslation("containers.list.displayedFields"),
281
- defaultMessage: "Displayed fields"
282
- }) }),
283
- /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: formatMessage({
284
- id: "containers.SettingPage.editSettings.description",
285
- defaultMessage: "Drag & drop the fields to build the layout"
286
- }) })
287
- ] }),
288
- /* @__PURE__ */ jsx(Box, { padding: 4, hasRadius: true, borderStyle: "dashed", borderWidth: "1px", borderColor: "neutral300", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
289
- layout.map((row, rowIndex) => /* @__PURE__ */ jsx(Grid, { gap: 2, children: row.children.map(({ size, ...field }, fieldIndex) => /* @__PURE__ */ jsx(GridItem, { col: size, children: /* @__PURE__ */ jsx(
290
- Field,
291
- {
292
- attribute: attributes[field.name],
293
- components,
294
- index: [rowIndex, fieldIndex],
295
- name: `layout.${rowIndex}.children.${fieldIndex}`,
296
- onMoveField: handleMoveField,
297
- onRemoveField: handleRemoveField(rowIndex, fieldIndex)
298
- }
299
- ) }, field.name)) }, row.__temp_key__)),
300
- /* @__PURE__ */ jsxs(Menu.Root, { children: [
301
- /* @__PURE__ */ jsx(
302
- Menu.Trigger,
303
- {
304
- startIcon: /* @__PURE__ */ jsx(Plus, {}),
305
- endIcon: null,
306
- disabled: remainingFields.length === 0,
307
- fullWidth: true,
308
- variant: "secondary",
309
- children: formatMessage({
310
- id: getTranslation("containers.SettingPage.add.field"),
311
- defaultMessage: "Insert another field"
312
- })
313
- }
314
- ),
315
- /* @__PURE__ */ jsx(Menu.Content, { children: remainingFields.map((field) => /* @__PURE__ */ jsx(Menu.Item, { onSelect: handleAddField(field), children: field.label }, field.name)) })
316
- ] })
317
- ] }) })
318
- ] });
319
- };
320
- const generateNKeysBetween = (field, count, currInd, newInd) => {
321
- const startKey = currInd > newInd ? field[newInd - 1]?.__temp_key__ : field[newInd]?.__temp_key__;
322
- const endKey = currInd > newInd ? field[newInd]?.__temp_key__ : field[newInd + 1]?.__temp_key__;
323
- return generateNKeysBetween$1(startKey, endKey, count);
324
- };
325
- const chunkArray = (array) => {
326
- const result = [];
327
- let temp = [];
328
- array.reduce((acc, field) => {
329
- if (acc + field.size > 12) {
330
- result.push(temp);
331
- temp = [field];
332
- return field.size;
333
- } else {
334
- temp.push(field);
335
- return acc + field.size;
336
- }
337
- }, 0);
338
- if (temp.length > 0) {
339
- result.push(temp);
340
- }
341
- return result;
342
- };
343
- const TEMP_FIELD_NAME = "_TEMP_";
344
- const Field = ({ attribute, components, name, index, onMoveField, onRemoveField }) => {
345
- const [isModalOpen, setIsModalOpen] = React.useState(false);
346
- const { formatMessage } = useIntl();
347
- const { value } = useField(name);
348
- const [{ isDragging }, objectRef, dropRef, dragRef, dragPreviewRef] = useDragAndDrop(true, {
349
- dropSensitivity: "immediate",
350
- type: ItemTypes.EDIT_FIELD,
351
- item: { index, label: value?.label, name },
352
- index,
353
- onMoveItem: onMoveField
354
- });
355
- React.useEffect(() => {
356
- dragPreviewRef(getEmptyImage(), { captureDraggingState: false });
357
- }, [dragPreviewRef]);
358
- const composedRefs = useComposedRefs(dragRef, objectRef);
359
- const handleRemoveField = (e) => {
360
- e.stopPropagation();
361
- onRemoveField(e);
362
- };
363
- const tempRefs = useComposedRefs(dropRef, objectRef);
364
- if (!value) {
365
- return null;
366
- }
367
- if (value.name === TEMP_FIELD_NAME) {
368
- return /* @__PURE__ */ jsx(Flex, { tag: "span", height: "100%", style: { opacity: 0 }, ref: tempRefs });
369
- }
370
- return /* @__PURE__ */ jsxs(Fragment, { children: [
371
- /* @__PURE__ */ jsxs(
372
- Flex,
373
- {
374
- borderColor: "neutral150",
375
- background: "neutral100",
376
- hasRadius: true,
377
- style: { opacity: isDragging ? 0.5 : 1 },
378
- ref: dropRef,
379
- gap: 3,
380
- cursor: "pointer",
381
- onClick: () => {
382
- setIsModalOpen(true);
383
- },
384
- children: [
385
- /* @__PURE__ */ jsx(
386
- DragButton,
387
- {
388
- tag: "span",
389
- withTooltip: false,
390
- label: formatMessage(
391
- {
392
- id: getTranslation("components.DraggableCard.move.field"),
393
- defaultMessage: "Move {item}"
394
- },
395
- { item: value.label }
396
- ),
397
- onClick: (e) => e.stopPropagation(),
398
- ref: composedRefs,
399
- children: /* @__PURE__ */ jsx(Drag, {})
400
- }
401
- ),
402
- /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "flex-start", grow: 1, overflow: "hidden", children: [
403
- /* @__PURE__ */ jsxs(Flex, { gap: 3, justifyContent: "space-between", width: "100%", children: [
404
- /* @__PURE__ */ jsx(Typography, { ellipsis: true, fontWeight: "bold", children: value.label }),
405
- /* @__PURE__ */ jsxs(Flex, { children: [
406
- /* @__PURE__ */ jsx(
407
- IconButton,
408
- {
409
- borderWidth: 0,
410
- background: "transparent",
411
- onClick: (e) => {
412
- e.stopPropagation();
413
- setIsModalOpen(true);
414
- },
415
- withTooltip: false,
416
- label: formatMessage(
417
- {
418
- id: getTranslation("components.DraggableCard.edit.field"),
419
- defaultMessage: "Edit {item}"
420
- },
421
- { item: value.label }
422
- ),
423
- children: /* @__PURE__ */ jsx(Pencil, {})
424
- }
425
- ),
426
- /* @__PURE__ */ jsx(
427
- IconButton,
428
- {
429
- borderWidth: 0,
430
- onClick: handleRemoveField,
431
- background: "transparent",
432
- withTooltip: false,
433
- label: formatMessage(
434
- {
435
- id: getTranslation("components.DraggableCard.delete.field"),
436
- defaultMessage: "Delete {item}"
437
- },
438
- { item: value.label }
439
- ),
440
- children: /* @__PURE__ */ jsx(Cross, {})
441
- }
442
- )
443
- ] })
444
- ] }),
445
- attribute?.type === "component" ? /* @__PURE__ */ jsxs(
446
- Flex,
447
- {
448
- paddingTop: 3,
449
- paddingRight: 3,
450
- paddingBottom: 3,
451
- paddingLeft: 0,
452
- alignItems: "flex-start",
453
- direction: "column",
454
- gap: 2,
455
- width: "100%",
456
- children: [
457
- /* @__PURE__ */ jsx(Grid, { gap: 4, width: "100%", children: components[attribute.component].layout.map(
458
- (row) => row.map(({ size, ...field }) => /* @__PURE__ */ jsx(GridItem, { col: size, children: /* @__PURE__ */ jsx(
459
- Flex,
460
- {
461
- alignItems: "center",
462
- background: "neutral0",
463
- paddingTop: 2,
464
- paddingBottom: 2,
465
- paddingLeft: 3,
466
- paddingRight: 3,
467
- hasRadius: true,
468
- borderColor: "neutral200",
469
- children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: field.name })
470
- }
471
- ) }, field.name))
472
- ) }),
473
- /* @__PURE__ */ jsx(
474
- Link,
475
- {
476
- onClick: (e) => e.stopPropagation(),
477
- startIcon: /* @__PURE__ */ jsx(Cog, {}),
478
- tag: NavLink,
479
- to: `../components/${attribute.component}/configurations/edit`,
480
- children: formatMessage({
481
- id: getTranslation("components.FieldItem.linkToComponentLayout"),
482
- defaultMessage: "Set the component's layout"
483
- })
484
- }
485
- )
486
- ]
487
- }
488
- ) : null,
489
- attribute?.type === "dynamiczone" ? /* @__PURE__ */ jsx(
490
- Flex,
491
- {
492
- paddingTop: 3,
493
- paddingRight: 3,
494
- paddingBottom: 3,
495
- paddingLeft: 0,
496
- alignItems: "flex-start",
497
- gap: 2,
498
- width: "100%",
499
- children: attribute?.components.map((uid) => /* @__PURE__ */ jsxs(
500
- ComponentLink,
501
- {
502
- onClick: (e) => e.stopPropagation(),
503
- to: `../components/${uid}/configurations/edit`,
504
- children: [
505
- /* @__PURE__ */ jsx(ComponentIcon, { icon: components[uid].settings.icon }),
506
- /* @__PURE__ */ jsx(Typography, { fontSize: 1, textColor: "neutral600", fontWeight: "bold", children: components[uid].settings.displayName })
507
- ]
508
- },
509
- uid
510
- ))
511
- }
512
- ) : null
513
- ] })
514
- ]
515
- }
516
- ),
517
- isModalOpen && value.name !== TEMP_FIELD_NAME && /* @__PURE__ */ jsx(EditFieldForm, { attribute, name, onClose: () => setIsModalOpen(false) })
518
- ] });
519
- };
520
- const DragButton = styled(IconButton)`
521
- height: unset;
522
- align-self: stretch;
523
- display: flex;
524
- align-items: center;
525
- padding: 0 ${({ theme }) => theme.spaces[3]};
526
- border-right: 1px solid ${({ theme }) => theme.colors.neutral150};
527
- cursor: all-scroll;
528
-
529
- svg {
530
- width: 1.2rem;
531
- height: 1.2rem;
532
- }
533
- `;
534
- const ComponentLink = styled(NavLink)`
535
- display: flex;
536
- flex-direction: column;
537
- align-items: center;
538
- gap: ${({ theme }) => theme.spaces[1]};
539
- padding: ${(props) => props.theme.spaces[2]};
540
- border: 1px solid ${({ theme }) => theme.colors.neutral200};
541
- background: ${({ theme }) => theme.colors.neutral0};
542
- width: 14rem;
543
- border-radius: ${({ theme }) => theme.borderRadius};
544
- text-decoration: none;
545
-
546
- &:focus,
547
- &:hover {
548
- ${({ theme }) => `
549
- background-color: ${theme.colors.primary100};
550
- border-color: ${theme.colors.primary200};
551
-
552
- ${Typography} {
553
- color: ${theme.colors.primary600};
554
- }
555
- `}
556
-
557
- /* > ComponentIcon */
558
- > div:first-child {
559
- background: ${({ theme }) => theme.colors.primary200};
560
- color: ${({ theme }) => theme.colors.primary600};
561
-
562
- svg {
563
- path {
564
- fill: ${({ theme }) => theme.colors.primary600};
565
- }
566
- }
567
- }
568
- }
569
- `;
570
- const ConfigurationForm = ({
571
- attributes,
572
- fieldSizes,
573
- layout: editLayout,
574
- onSubmit
575
- }) => {
576
- const { components, settings, layout, metadatas } = editLayout;
577
- const { formatMessage } = useIntl();
578
- const initialValues = React.useMemo(() => {
579
- const transformations = pipe(
580
- flattenPanels,
581
- replaceMainFieldWithNameOnly,
582
- extractMetadata,
583
- addTmpSpaceToLayout,
584
- addTmpKeysToLayout
585
- );
586
- return {
587
- layout: transformations(layout),
588
- settings
589
- };
590
- }, [layout, settings]);
591
- return /* @__PURE__ */ jsx(Layouts.Root, { children: /* @__PURE__ */ jsx(Main, { children: /* @__PURE__ */ jsxs(Form, { initialValues, onSubmit, method: "PUT", children: [
592
- /* @__PURE__ */ jsx(Header, { name: settings.displayName ?? "" }),
593
- /* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsxs(
594
- Flex,
595
- {
596
- alignItems: "stretch",
597
- background: "neutral0",
598
- direction: "column",
599
- gap: 6,
600
- hasRadius: true,
601
- shadow: "tableShadow",
602
- paddingTop: 6,
603
- paddingBottom: 6,
604
- paddingLeft: 7,
605
- paddingRight: 7,
606
- children: [
607
- /* @__PURE__ */ jsx(Typography, { variant: "delta", tag: "h2", children: formatMessage({
608
- id: getTranslation("containers.SettingPage.settings"),
609
- defaultMessage: "Settings"
610
- }) }),
611
- /* @__PURE__ */ jsxs(Grid, { children: [
612
- /* @__PURE__ */ jsx(GridItem, { col: 6, s: 12, children: /* @__PURE__ */ jsx(
613
- InputRenderer,
614
- {
615
- type: "enumeration",
616
- label: formatMessage({
617
- id: getTranslation("containers.SettingPage.editSettings.entry.title"),
618
- defaultMessage: "Entry title"
619
- }),
620
- hint: formatMessage({
621
- id: getTranslation(
622
- "containers.SettingPage.editSettings.entry.title.description"
623
- ),
624
- defaultMessage: "Set the display field of your entry"
625
- }),
626
- name: "settings.mainField",
627
- options: Object.entries(attributes).reduce((acc, [key, attribute]) => {
628
- if (!attribute) {
629
- return acc;
630
- }
631
- if (!ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD.includes(attribute.type)) {
632
- acc.push({
633
- label: key,
634
- value: key
635
- });
636
- }
637
- return acc;
638
- }, [])
639
- }
640
- ) }),
641
- /* @__PURE__ */ jsx(GridItem, { paddingTop: 6, paddingBottom: 6, col: 12, s: 12, children: /* @__PURE__ */ jsx(Divider, {}) }),
642
- /* @__PURE__ */ jsx(GridItem, { col: 12, s: 12, children: /* @__PURE__ */ jsx(Typography, { variant: "delta", tag: "h3", children: formatMessage({
643
- id: getTranslation("containers.SettingPage.view"),
644
- defaultMessage: "View"
645
- }) }) }),
646
- /* @__PURE__ */ jsx(GridItem, { col: 12, s: 12, children: /* @__PURE__ */ jsx(
647
- Fields,
648
- {
649
- attributes,
650
- components,
651
- fieldSizes,
652
- metadatas
653
- }
654
- ) })
655
- ] })
656
- ]
657
- }
658
- ) })
659
- ] }) }) });
660
- };
661
- const flattenPanels = (layout) => layout.flat(1);
662
- const replaceMainFieldWithNameOnly = (layout) => layout.map(
663
- (row) => row.map((field) => ({
664
- ...field,
665
- mainField: field.mainField?.name
666
- }))
667
- );
668
- const extractMetadata = (layout) => {
669
- return layout.map(
670
- (row) => row.map(({ label, disabled, hint, placeholder, size, name, mainField }) => ({
671
- label,
672
- editable: !disabled,
673
- description: hint,
674
- mainField,
675
- placeholder,
676
- size,
677
- name,
678
- __temp_key__: ""
679
- }))
680
- );
681
- };
682
- const addTmpSpaceToLayout = (layout) => [
683
- ...layout.map((row) => {
684
- const totalSpaceTaken = row.reduce((acc, field) => acc + field.size, 0);
685
- if (totalSpaceTaken < 12) {
686
- return [
687
- ...row,
688
- {
689
- name: TEMP_FIELD_NAME,
690
- size: 12 - totalSpaceTaken,
691
- __temp_key__: ""
692
- }
693
- ];
694
- }
695
- return row;
696
- })
697
- ];
698
- const addTmpKeysToLayout = (layout) => {
699
- const keys = generateNKeysBetween$1(void 0, void 0, layout.length);
700
- return layout.map((row, rowIndex) => {
701
- const fieldKeys = generateNKeysBetween$1(void 0, void 0, row.length);
702
- return {
703
- __temp_key__: keys[rowIndex],
704
- children: row.map((field, fieldIndex) => {
705
- return {
706
- ...field,
707
- __temp_key__: fieldKeys[fieldIndex]
708
- };
709
- })
710
- };
711
- });
712
- };
713
- const Header = ({ name }) => {
714
- const { formatMessage } = useIntl();
715
- const modified = useForm("Header", (state) => state.modified);
716
- const isSubmitting = useForm("Header", (state) => state.isSubmitting);
717
- return /* @__PURE__ */ jsx(
718
- Layouts.Header,
719
- {
720
- title: formatMessage(
721
- {
722
- id: getTranslation("components.SettingsViewWrapper.pluginHeader.title"),
723
- defaultMessage: `Configure the view - {name}`
724
- },
725
- { name: capitalise(name) }
726
- ),
727
- subtitle: formatMessage({
728
- id: getTranslation("components.SettingsViewWrapper.pluginHeader.description.edit-settings"),
729
- defaultMessage: "Customize how the edit view will look like."
730
- }),
731
- navigationAction: /* @__PURE__ */ jsx(BackButton, {}),
732
- primaryAction: /* @__PURE__ */ jsx(Button, { disabled: !modified, loading: isSubmitting, type: "submit", children: formatMessage({ id: "global.save", defaultMessage: "Save" }) })
733
- }
734
- );
735
- };
736
- export {
737
- ConfigurationForm as C,
738
- TEMP_FIELD_NAME as T
739
- };
740
- //# sourceMappingURL=Form-DqGgE55Q.mjs.map