@strapi/content-manager 0.0.0-experimental.d954d57341a6623992a0d211daaec8e245c3517d → 0.0.0-experimental.da32ec023171430e0b0185c39f3cdd0f22d36928

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