@strapi/content-manager 0.0.0-experimental.e14656d3b8681880212c13260b9a2b340c182f2d → 0.0.0-experimental.e576af447d9f97e89e24c6daa32d8f714376cd5f

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 (500) hide show
  1. package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs +80 -0
  2. package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs.map +1 -0
  3. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js +82 -0
  4. package/dist/admin/chunks/CardDragPreview-_dubYgXO.js.map +1 -0
  5. package/dist/admin/chunks/ComponentConfigurationPage-BRMxaaa0.mjs +277 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-BRMxaaa0.mjs.map +1 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-DwjhCutb.js +299 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-DwjhCutb.js.map +1 -0
  9. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs +153 -0
  10. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs.map +1 -0
  11. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js +176 -0
  12. package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js.map +1 -0
  13. package/dist/admin/chunks/EditConfigurationPage-DPQ6e_ZU.js +181 -0
  14. package/dist/admin/chunks/EditConfigurationPage-DPQ6e_ZU.js.map +1 -0
  15. package/dist/admin/chunks/EditConfigurationPage-mHz7EIZ9.mjs +159 -0
  16. package/dist/admin/chunks/EditConfigurationPage-mHz7EIZ9.mjs.map +1 -0
  17. package/dist/admin/chunks/EditViewPage-CXmEDGW2.js +334 -0
  18. package/dist/admin/chunks/EditViewPage-CXmEDGW2.js.map +1 -0
  19. package/dist/admin/chunks/EditViewPage-DC_tEaOd.mjs +311 -0
  20. package/dist/admin/chunks/EditViewPage-DC_tEaOd.mjs.map +1 -0
  21. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs +56 -0
  22. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs.map +1 -0
  23. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js +58 -0
  24. package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js.map +1 -0
  25. package/dist/admin/chunks/Form-CmzyWdCy.js +978 -0
  26. package/dist/admin/chunks/Form-CmzyWdCy.js.map +1 -0
  27. package/dist/admin/chunks/Form-Sz84KGej.mjs +955 -0
  28. package/dist/admin/chunks/Form-Sz84KGej.mjs.map +1 -0
  29. package/dist/admin/chunks/History-B75NuF92.js +1380 -0
  30. package/dist/admin/chunks/History-B75NuF92.js.map +1 -0
  31. package/dist/admin/chunks/History-C5fFAagI.mjs +1357 -0
  32. package/dist/admin/chunks/History-C5fFAagI.mjs.map +1 -0
  33. package/dist/admin/chunks/Input-BIzj18xW.js +7221 -0
  34. package/dist/admin/chunks/Input-BIzj18xW.js.map +1 -0
  35. package/dist/admin/chunks/Input-DDV2blpv.mjs +7190 -0
  36. package/dist/admin/chunks/Input-DDV2blpv.mjs.map +1 -0
  37. package/dist/admin/chunks/ListConfigurationPage-DVFNbbLl.js +819 -0
  38. package/dist/admin/chunks/ListConfigurationPage-DVFNbbLl.js.map +1 -0
  39. package/dist/admin/chunks/ListConfigurationPage-Ddq1APAQ.mjs +796 -0
  40. package/dist/admin/chunks/ListConfigurationPage-Ddq1APAQ.mjs.map +1 -0
  41. package/dist/admin/chunks/ListViewPage-D3gpvdM2.js +1155 -0
  42. package/dist/admin/chunks/ListViewPage-D3gpvdM2.js.map +1 -0
  43. package/dist/admin/chunks/ListViewPage-IIou-WFn.mjs +1133 -0
  44. package/dist/admin/chunks/ListViewPage-IIou-WFn.mjs.map +1 -0
  45. package/dist/admin/chunks/NoContentTypePage-B7sfKVrj.js +60 -0
  46. package/dist/admin/chunks/NoContentTypePage-B7sfKVrj.js.map +1 -0
  47. package/dist/admin/chunks/NoContentTypePage-mZFnYA3z.mjs +58 -0
  48. package/dist/admin/chunks/NoContentTypePage-mZFnYA3z.mjs.map +1 -0
  49. package/dist/admin/chunks/NoPermissionsPage-C-XBYfpZ.js +39 -0
  50. package/dist/admin/chunks/NoPermissionsPage-C-XBYfpZ.js.map +1 -0
  51. package/dist/admin/chunks/NoPermissionsPage-CfUdeuGT.mjs +37 -0
  52. package/dist/admin/chunks/NoPermissionsPage-CfUdeuGT.mjs.map +1 -0
  53. package/dist/admin/chunks/Preview-DkU1bar6.js +696 -0
  54. package/dist/admin/chunks/Preview-DkU1bar6.js.map +1 -0
  55. package/dist/admin/chunks/Preview-xr-5BCHr.mjs +674 -0
  56. package/dist/admin/chunks/Preview-xr-5BCHr.mjs.map +1 -0
  57. package/dist/admin/chunks/Relations-Ddnb_jYb.mjs +1291 -0
  58. package/dist/admin/chunks/Relations-Ddnb_jYb.mjs.map +1 -0
  59. package/dist/admin/chunks/Relations-VSItCr8c.js +1318 -0
  60. package/dist/admin/chunks/Relations-VSItCr8c.js.map +1 -0
  61. package/dist/admin/chunks/ar-DckYq_WK.mjs +222 -0
  62. package/dist/{_chunks/ar-CCEVvqGG.mjs.map → admin/chunks/ar-DckYq_WK.mjs.map} +1 -1
  63. package/dist/admin/chunks/ar-DeQBSsfl.js +227 -0
  64. package/dist/{_chunks/ru-BT3ybNny.js.map → admin/chunks/ar-DeQBSsfl.js.map} +1 -1
  65. package/dist/admin/chunks/ca-ClDTvatJ.js +202 -0
  66. package/dist/admin/chunks/ca-ClDTvatJ.js.map +1 -0
  67. package/dist/admin/chunks/ca-DviY7mRj.mjs +197 -0
  68. package/dist/admin/chunks/ca-DviY7mRj.mjs.map +1 -0
  69. package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
  70. package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
  71. package/dist/admin/chunks/cs-C7OSYFQ7.mjs +122 -0
  72. package/dist/{_chunks/cs-CM2aBUar.mjs.map → admin/chunks/cs-C7OSYFQ7.mjs.map} +1 -1
  73. package/dist/admin/chunks/de-5QRlDHyR.mjs +195 -0
  74. package/dist/{_chunks/eu-CdALomew.mjs.map → admin/chunks/de-5QRlDHyR.mjs.map} +1 -1
  75. package/dist/admin/chunks/de-CbImAUA5.js +200 -0
  76. package/dist/{_chunks/gu-BRmF601H.js.map → admin/chunks/de-CbImAUA5.js.map} +1 -1
  77. package/dist/admin/chunks/en-CImiNxXE.mjs +310 -0
  78. package/dist/{_chunks/en-BrCTWlZv.mjs.map → admin/chunks/en-CImiNxXE.mjs.map} +1 -1
  79. package/dist/admin/chunks/en-CLf4SuMQ.js +315 -0
  80. package/dist/{_chunks/en-uOUIxfcQ.js.map → admin/chunks/en-CLf4SuMQ.js.map} +1 -1
  81. package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
  82. package/dist/{_chunks/es-EUonQTon.js.map → admin/chunks/es-C8vLuvZL.js.map} +1 -1
  83. package/dist/admin/chunks/es-DkoWSExG.mjs +192 -0
  84. package/dist/{_chunks/ja-CtsUxOvk.mjs.map → admin/chunks/es-DkoWSExG.mjs.map} +1 -1
  85. package/dist/admin/chunks/eu-BG1xX7HK.mjs +198 -0
  86. package/dist/admin/chunks/eu-BG1xX7HK.mjs.map +1 -0
  87. package/dist/admin/chunks/eu-BJW3AvXu.js +203 -0
  88. package/dist/admin/chunks/eu-BJW3AvXu.js.map +1 -0
  89. package/dist/admin/chunks/fr-CFdRaRVj.mjs +215 -0
  90. package/dist/admin/chunks/fr-CFdRaRVj.mjs.map +1 -0
  91. package/dist/admin/chunks/fr-gQSilC7w.js +220 -0
  92. package/dist/admin/chunks/fr-gQSilC7w.js.map +1 -0
  93. package/dist/admin/chunks/gu-D5MMMXRs.mjs +196 -0
  94. package/dist/admin/chunks/gu-D5MMMXRs.mjs.map +1 -0
  95. package/dist/admin/chunks/gu-DPU4wyx7.js +201 -0
  96. package/dist/{_chunks/eu-VDH-3ovk.js.map → admin/chunks/gu-DPU4wyx7.js.map} +1 -1
  97. package/dist/admin/chunks/hi-Dp4omeBb.js +201 -0
  98. package/dist/admin/chunks/hi-Dp4omeBb.js.map +1 -0
  99. package/dist/admin/chunks/hi-lp17SCjr.mjs +196 -0
  100. package/dist/admin/chunks/hi-lp17SCjr.mjs.map +1 -0
  101. package/dist/{_chunks/hooks-BAaaKPS_.js → admin/chunks/hooks-D-sOYd1s.js} +6 -3
  102. package/dist/admin/chunks/hooks-D-sOYd1s.js.map +1 -0
  103. package/dist/admin/chunks/hooks-DMvik5y_.mjs +7 -0
  104. package/dist/admin/chunks/hooks-DMvik5y_.mjs.map +1 -0
  105. package/dist/admin/chunks/hu-CLka1U2C.mjs +198 -0
  106. package/dist/admin/chunks/hu-CLka1U2C.mjs.map +1 -0
  107. package/dist/admin/chunks/hu-CtFJuhTd.js +203 -0
  108. package/dist/admin/chunks/hu-CtFJuhTd.js.map +1 -0
  109. package/dist/admin/chunks/id-D7V5S1rB.js +161 -0
  110. package/dist/{_chunks/it-DkBIs7vD.js.map → admin/chunks/id-D7V5S1rB.js.map} +1 -1
  111. package/dist/admin/chunks/id-USfY9m1g.mjs +156 -0
  112. package/dist/{_chunks/id-BtwA9WJT.mjs.map → admin/chunks/id-USfY9m1g.mjs.map} +1 -1
  113. package/dist/admin/chunks/index-BE23Vyc8.js +5456 -0
  114. package/dist/admin/chunks/index-BE23Vyc8.js.map +1 -0
  115. package/dist/admin/chunks/index-TXDGJBhY.mjs +5389 -0
  116. package/dist/admin/chunks/index-TXDGJBhY.mjs.map +1 -0
  117. package/dist/admin/chunks/it-BAHrwmYS.mjs +158 -0
  118. package/dist/{_chunks/it-BrVPqaf1.mjs.map → admin/chunks/it-BAHrwmYS.mjs.map} +1 -1
  119. package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
  120. package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
  121. package/dist/admin/chunks/ja-BWKmBJFT.mjs +192 -0
  122. package/dist/{_chunks/ko-HVQRlfUI.mjs.map → admin/chunks/ja-BWKmBJFT.mjs.map} +1 -1
  123. package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
  124. package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ja-jdQM-B79.js.map} +1 -1
  125. package/dist/admin/chunks/ko-CgADGBNt.mjs +191 -0
  126. package/dist/{_chunks/es-CeXiYflN.mjs.map → admin/chunks/ko-CgADGBNt.mjs.map} +1 -1
  127. package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
  128. package/dist/{_chunks/ja-CcFe8diO.js.map → admin/chunks/ko-k46sEyzt.js.map} +1 -1
  129. package/dist/admin/chunks/layout-B3zsQDhd.js +619 -0
  130. package/dist/admin/chunks/layout-B3zsQDhd.js.map +1 -0
  131. package/dist/admin/chunks/layout-DmbmZmt8.mjs +599 -0
  132. package/dist/admin/chunks/layout-DmbmZmt8.mjs.map +1 -0
  133. package/dist/admin/chunks/ml-CnhCfOn_.mjs +196 -0
  134. package/dist/admin/chunks/ml-CnhCfOn_.mjs.map +1 -0
  135. package/dist/admin/chunks/ml-DqxPwODx.js +201 -0
  136. package/dist/admin/chunks/ml-DqxPwODx.js.map +1 -0
  137. package/dist/admin/chunks/ms-Bh09NFff.mjs +140 -0
  138. package/dist/{_chunks/ms-m_WjyWx7.mjs.map → admin/chunks/ms-Bh09NFff.mjs.map} +1 -1
  139. package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
  140. package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/ms-CvSC0OdG.js.map} +1 -1
  141. package/dist/admin/chunks/nl-BEubhS8C.js +203 -0
  142. package/dist/admin/chunks/nl-BEubhS8C.js.map +1 -0
  143. package/dist/admin/chunks/nl-C8HYflTc.mjs +198 -0
  144. package/dist/admin/chunks/nl-C8HYflTc.mjs.map +1 -0
  145. package/dist/admin/chunks/objects-C3EebVVe.js +76 -0
  146. package/dist/admin/chunks/objects-C3EebVVe.js.map +1 -0
  147. package/dist/admin/chunks/objects-wl73iEma.mjs +73 -0
  148. package/dist/admin/chunks/objects-wl73iEma.mjs.map +1 -0
  149. package/dist/admin/chunks/pl-DWhGDzmM.js +200 -0
  150. package/dist/{_chunks/ca-Cmk45QO6.js.map → admin/chunks/pl-DWhGDzmM.js.map} +1 -1
  151. package/dist/admin/chunks/pl-MFCZJZuZ.mjs +195 -0
  152. package/dist/{_chunks/ca-5U32ON2v.mjs.map → admin/chunks/pl-MFCZJZuZ.mjs.map} +1 -1
  153. package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
  154. package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CPtAXD-4.js.map} +1 -1
  155. package/dist/admin/chunks/pt-BR-CcotyBGJ.mjs +197 -0
  156. package/dist/{_chunks/pt-BR-C71iDxnh.mjs.map → admin/chunks/pt-BR-CcotyBGJ.mjs.map} +1 -1
  157. package/dist/admin/chunks/pt-BoPxN80n.js +96 -0
  158. package/dist/admin/chunks/pt-BoPxN80n.js.map +1 -0
  159. package/dist/admin/chunks/pt-HbmgeiYO.mjs +93 -0
  160. package/dist/admin/chunks/pt-HbmgeiYO.mjs.map +1 -0
  161. package/dist/admin/chunks/relations-B93RmIIQ.js +178 -0
  162. package/dist/admin/chunks/relations-B93RmIIQ.js.map +1 -0
  163. package/dist/admin/chunks/relations-Ccbyl2K1.mjs +173 -0
  164. package/dist/admin/chunks/relations-Ccbyl2K1.mjs.map +1 -0
  165. package/dist/admin/chunks/ru-C0op0ALG.js +232 -0
  166. package/dist/admin/chunks/ru-C0op0ALG.js.map +1 -0
  167. package/dist/admin/chunks/ru-CB4BUyQp.mjs +230 -0
  168. package/dist/{_chunks/ru-BE6A4Exp.mjs.map → admin/chunks/ru-CB4BUyQp.mjs.map} +1 -1
  169. package/dist/admin/chunks/sa-B_FuPyMw.js +201 -0
  170. package/dist/admin/chunks/sa-B_FuPyMw.js.map +1 -0
  171. package/dist/admin/chunks/sa-n_aPA-pU.mjs +196 -0
  172. package/dist/admin/chunks/sa-n_aPA-pU.mjs.map +1 -0
  173. package/dist/admin/chunks/sk-D_iXML2C.js +203 -0
  174. package/dist/admin/chunks/sk-D_iXML2C.js.map +1 -0
  175. package/dist/admin/chunks/sk-tn_BDjE2.mjs +198 -0
  176. package/dist/admin/chunks/sk-tn_BDjE2.mjs.map +1 -0
  177. package/dist/admin/chunks/sv-BstBC1Yp.js +203 -0
  178. package/dist/admin/chunks/sv-BstBC1Yp.js.map +1 -0
  179. package/dist/admin/chunks/sv-cq4ZrQRd.mjs +198 -0
  180. package/dist/admin/chunks/sv-cq4ZrQRd.mjs.map +1 -0
  181. package/dist/admin/chunks/th-lXoOCqPC.js +149 -0
  182. package/dist/{_chunks/th-D9_GfAjc.js.map → admin/chunks/th-lXoOCqPC.js.map} +1 -1
  183. package/dist/admin/chunks/th-mUH7hEtc.mjs +144 -0
  184. package/dist/{_chunks/uk-CR-zDhAY.mjs.map → admin/chunks/th-mUH7hEtc.mjs.map} +1 -1
  185. package/dist/admin/chunks/tr-CkS6sLIE.js +200 -0
  186. package/dist/admin/chunks/tr-CkS6sLIE.js.map +1 -0
  187. package/dist/admin/chunks/tr-Yt38daxh.mjs +195 -0
  188. package/dist/{_chunks/de-C72KDNOl.mjs.map → admin/chunks/tr-Yt38daxh.mjs.map} +1 -1
  189. package/dist/admin/chunks/uk-BtM6WnaE.mjs +313 -0
  190. package/dist/admin/chunks/uk-BtM6WnaE.mjs.map +1 -0
  191. package/dist/admin/chunks/uk-DB6OgySY.js +318 -0
  192. package/dist/admin/chunks/uk-DB6OgySY.js.map +1 -0
  193. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.mjs +247 -0
  194. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.mjs.map +1 -0
  195. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js +271 -0
  196. package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js.map +1 -0
  197. package/dist/admin/chunks/usePrev-Bjw2dhmq.mjs +18 -0
  198. package/dist/admin/chunks/usePrev-Bjw2dhmq.mjs.map +1 -0
  199. package/dist/admin/chunks/usePrev-DIYl-IAL.js +21 -0
  200. package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +1 -0
  201. package/dist/admin/chunks/vi-BGr1X_HZ.js +112 -0
  202. package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-BGr1X_HZ.js.map} +1 -1
  203. package/dist/admin/chunks/vi-CvBGlTjr.mjs +108 -0
  204. package/dist/{_chunks/vi-DUXIk_fw.mjs.map → admin/chunks/vi-CvBGlTjr.mjs.map} +1 -1
  205. package/dist/admin/chunks/zh-BmF-sHaT.mjs +205 -0
  206. package/dist/admin/chunks/zh-BmF-sHaT.mjs.map +1 -0
  207. package/dist/admin/chunks/zh-DwFu_Kfj.js +210 -0
  208. package/dist/admin/chunks/zh-DwFu_Kfj.js.map +1 -0
  209. package/dist/admin/chunks/zh-Hans-CI0HKio3.mjs +934 -0
  210. package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-CI0HKio3.mjs.map} +1 -1
  211. package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
  212. package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
  213. package/dist/admin/index.js +26 -4
  214. package/dist/admin/index.js.map +1 -1
  215. package/dist/admin/index.mjs +17 -11
  216. package/dist/admin/index.mjs.map +1 -1
  217. package/dist/admin/src/components/InjectionZone.d.ts +7 -1
  218. package/dist/admin/src/content-manager.d.ts +7 -2
  219. package/dist/admin/src/exports.d.ts +2 -1
  220. package/dist/admin/src/history/services/historyVersion.d.ts +2 -2
  221. package/dist/admin/src/hooks/useDocument.d.ts +52 -2
  222. package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
  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 +3 -2
  226. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +3 -3
  227. package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
  228. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +55 -0
  229. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -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 +2 -1
  233. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
  234. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +0 -32
  235. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +29 -1
  236. package/dist/admin/src/pages/EditView/components/Header.d.ts +11 -11
  237. package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
  238. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
  239. package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
  240. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  241. package/dist/admin/src/preview/index.d.ts +3 -0
  242. package/dist/admin/src/preview/pages/Preview.d.ts +15 -0
  243. package/dist/admin/src/preview/routes.d.ts +3 -0
  244. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  245. package/dist/admin/src/router.d.ts +1 -1
  246. package/dist/admin/src/services/api.d.ts +1 -1
  247. package/dist/admin/src/services/components.d.ts +2 -2
  248. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  249. package/dist/admin/src/services/documents.d.ts +19 -20
  250. package/dist/admin/src/services/init.d.ts +1 -1
  251. package/dist/admin/src/services/relations.d.ts +2 -2
  252. package/dist/admin/src/services/uid.d.ts +3 -3
  253. package/dist/server/index.js +5473 -4131
  254. package/dist/server/index.js.map +1 -1
  255. package/dist/server/index.mjs +5451 -4106
  256. package/dist/server/index.mjs.map +1 -1
  257. package/dist/server/src/bootstrap.d.ts.map +1 -1
  258. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  259. package/dist/server/src/controllers/index.d.ts.map +1 -1
  260. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  261. package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
  262. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  263. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  264. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  265. package/dist/server/src/history/services/history.d.ts +3 -3
  266. package/dist/server/src/history/services/history.d.ts.map +1 -1
  267. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  268. package/dist/server/src/history/services/utils.d.ts +7 -11
  269. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  270. package/dist/server/src/index.d.ts +7 -6
  271. package/dist/server/src/index.d.ts.map +1 -1
  272. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  273. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  274. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  275. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  276. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  277. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  278. package/dist/server/src/preview/index.d.ts +4 -0
  279. package/dist/server/src/preview/index.d.ts.map +1 -0
  280. package/dist/server/src/preview/routes/index.d.ts +8 -0
  281. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  282. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  283. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  284. package/dist/server/src/preview/services/index.d.ts +16 -0
  285. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  286. package/dist/server/src/preview/services/preview-config.d.ts +32 -0
  287. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  288. package/dist/server/src/preview/services/preview.d.ts +12 -0
  289. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  290. package/dist/server/src/preview/utils.d.ts +19 -0
  291. package/dist/server/src/preview/utils.d.ts.map +1 -0
  292. package/dist/server/src/register.d.ts.map +1 -1
  293. package/dist/server/src/routes/index.d.ts.map +1 -1
  294. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  295. package/dist/server/src/services/document-metadata.d.ts +12 -10
  296. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  297. package/dist/server/src/services/index.d.ts +7 -6
  298. package/dist/server/src/services/index.d.ts.map +1 -1
  299. package/dist/server/src/services/utils/count.d.ts +1 -1
  300. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  301. package/dist/server/src/services/utils/populate.d.ts +3 -3
  302. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  303. package/dist/server/src/utils/index.d.ts +2 -0
  304. package/dist/server/src/utils/index.d.ts.map +1 -1
  305. package/dist/shared/contracts/collection-types.d.ts +3 -2
  306. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  307. package/dist/shared/contracts/components.d.ts +0 -1
  308. package/dist/shared/contracts/content-types.d.ts +0 -1
  309. package/dist/shared/contracts/history-versions.d.ts +0 -1
  310. package/dist/shared/contracts/index.d.ts +1 -1
  311. package/dist/shared/contracts/index.d.ts.map +1 -1
  312. package/dist/shared/contracts/init.d.ts +0 -1
  313. package/dist/shared/contracts/preview.d.ts +26 -0
  314. package/dist/shared/contracts/preview.d.ts.map +1 -0
  315. package/dist/shared/contracts/relations.d.ts +1 -2
  316. package/dist/shared/contracts/relations.d.ts.map +1 -1
  317. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  318. package/dist/shared/contracts/single-types.d.ts +0 -1
  319. package/dist/shared/contracts/uid.d.ts +0 -1
  320. package/dist/shared/index.d.ts +0 -1
  321. package/dist/shared/index.js +37 -22
  322. package/dist/shared/index.js.map +1 -1
  323. package/dist/shared/index.mjs +36 -23
  324. package/dist/shared/index.mjs.map +1 -1
  325. package/package.json +25 -21
  326. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  327. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  328. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  329. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  330. package/dist/_chunks/ComponentConfigurationPage-D_M8iBw5.js +0 -255
  331. package/dist/_chunks/ComponentConfigurationPage-D_M8iBw5.js.map +0 -1
  332. package/dist/_chunks/ComponentConfigurationPage-qemkOlnj.mjs +0 -236
  333. package/dist/_chunks/ComponentConfigurationPage-qemkOlnj.mjs.map +0 -1
  334. package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
  335. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
  336. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  337. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  338. package/dist/_chunks/EditConfigurationPage-BePwPuHy.js +0 -151
  339. package/dist/_chunks/EditConfigurationPage-BePwPuHy.js.map +0 -1
  340. package/dist/_chunks/EditConfigurationPage-CjUrEewK.mjs +0 -132
  341. package/dist/_chunks/EditConfigurationPage-CjUrEewK.mjs.map +0 -1
  342. package/dist/_chunks/EditViewPage-B-RJeiJD.js +0 -233
  343. package/dist/_chunks/EditViewPage-B-RJeiJD.js.map +0 -1
  344. package/dist/_chunks/EditViewPage-De8GyU8P.mjs +0 -214
  345. package/dist/_chunks/EditViewPage-De8GyU8P.mjs.map +0 -1
  346. package/dist/_chunks/Field-dq8Tg1M_.js +0 -5589
  347. package/dist/_chunks/Field-dq8Tg1M_.js.map +0 -1
  348. package/dist/_chunks/Field-pb2o8uBe.mjs +0 -5557
  349. package/dist/_chunks/Field-pb2o8uBe.mjs.map +0 -1
  350. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  351. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  352. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  353. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  354. package/dist/_chunks/Form-DGIf4jQU.js +0 -771
  355. package/dist/_chunks/Form-DGIf4jQU.js.map +0 -1
  356. package/dist/_chunks/Form-DJn0Dxha.mjs +0 -750
  357. package/dist/_chunks/Form-DJn0Dxha.mjs.map +0 -1
  358. package/dist/_chunks/History-BowL3JKP.mjs +0 -1032
  359. package/dist/_chunks/History-BowL3JKP.mjs.map +0 -1
  360. package/dist/_chunks/History-Dh2NEHnR.js +0 -1053
  361. package/dist/_chunks/History-Dh2NEHnR.js.map +0 -1
  362. package/dist/_chunks/ListConfigurationPage-BpVOB-hn.mjs +0 -632
  363. package/dist/_chunks/ListConfigurationPage-BpVOB-hn.mjs.map +0 -1
  364. package/dist/_chunks/ListConfigurationPage-BxYCWz9e.js +0 -652
  365. package/dist/_chunks/ListConfigurationPage-BxYCWz9e.js.map +0 -1
  366. package/dist/_chunks/ListViewPage-4XsciqHZ.js +0 -848
  367. package/dist/_chunks/ListViewPage-4XsciqHZ.js.map +0 -1
  368. package/dist/_chunks/ListViewPage-CXFUjZQC.mjs +0 -824
  369. package/dist/_chunks/ListViewPage-CXFUjZQC.mjs.map +0 -1
  370. package/dist/_chunks/NoContentTypePage-C8OpoHeU.js +0 -51
  371. package/dist/_chunks/NoContentTypePage-C8OpoHeU.js.map +0 -1
  372. package/dist/_chunks/NoContentTypePage-DuhOTp3x.mjs +0 -51
  373. package/dist/_chunks/NoContentTypePage-DuhOTp3x.mjs.map +0 -1
  374. package/dist/_chunks/NoPermissionsPage-DVz3mzDz.mjs +0 -23
  375. package/dist/_chunks/NoPermissionsPage-DVz3mzDz.mjs.map +0 -1
  376. package/dist/_chunks/NoPermissionsPage-y_r7DVA2.js +0 -23
  377. package/dist/_chunks/NoPermissionsPage-y_r7DVA2.js.map +0 -1
  378. package/dist/_chunks/Relations-CVNLrn1Y.mjs +0 -694
  379. package/dist/_chunks/Relations-CVNLrn1Y.mjs.map +0 -1
  380. package/dist/_chunks/Relations-DPFCAa7b.js +0 -714
  381. package/dist/_chunks/Relations-DPFCAa7b.js.map +0 -1
  382. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  383. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  384. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  385. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  386. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  387. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  388. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  389. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  390. package/dist/_chunks/de-CCEmbAah.js +0 -199
  391. package/dist/_chunks/en-BrCTWlZv.mjs +0 -292
  392. package/dist/_chunks/en-uOUIxfcQ.js +0 -292
  393. package/dist/_chunks/es-CeXiYflN.mjs +0 -196
  394. package/dist/_chunks/es-EUonQTon.js +0 -196
  395. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  396. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  397. package/dist/_chunks/fr-B7kGGg3E.js +0 -206
  398. package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
  399. package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
  400. package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
  401. package/dist/_chunks/gu-BRmF601H.js +0 -200
  402. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  403. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  404. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  405. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  406. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  407. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  408. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  409. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  410. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  411. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  412. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  413. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  414. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  415. package/dist/_chunks/id-B5Ser98A.js +0 -160
  416. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  417. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  418. package/dist/_chunks/index-C3fJE-1-.js +0 -3999
  419. package/dist/_chunks/index-C3fJE-1-.js.map +0 -1
  420. package/dist/_chunks/index-DiMrfcfy.mjs +0 -3980
  421. package/dist/_chunks/index-DiMrfcfy.mjs.map +0 -1
  422. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  423. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  424. package/dist/_chunks/ja-CcFe8diO.js +0 -196
  425. package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
  426. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  427. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  428. package/dist/_chunks/layout-C788OmNr.js +0 -488
  429. package/dist/_chunks/layout-C788OmNr.js.map +0 -1
  430. package/dist/_chunks/layout-ls3gxfpH.mjs +0 -470
  431. package/dist/_chunks/layout-ls3gxfpH.mjs.map +0 -1
  432. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  433. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  434. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  435. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  436. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  437. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  438. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  439. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  440. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  441. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  442. package/dist/_chunks/objects-gigeqt7s.js +0 -49
  443. package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
  444. package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
  445. package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
  446. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  447. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  448. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  449. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  450. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  451. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  452. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  453. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  454. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  455. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  456. package/dist/_chunks/relations-CLcOmGO0.mjs +0 -135
  457. package/dist/_chunks/relations-CLcOmGO0.mjs.map +0 -1
  458. package/dist/_chunks/relations-DYeotliT.js +0 -134
  459. package/dist/_chunks/relations-DYeotliT.js.map +0 -1
  460. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  461. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  462. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  463. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  464. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  465. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  466. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  467. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  468. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  469. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  470. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  471. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  472. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  473. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  474. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  475. package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
  476. package/dist/_chunks/th-D9_GfAjc.js +0 -148
  477. package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
  478. package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
  479. package/dist/_chunks/tr-D9UH-O_R.js +0 -199
  480. package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
  481. package/dist/_chunks/uk-C8EiqJY7.js +0 -144
  482. package/dist/_chunks/uk-C8EiqJY7.js.map +0 -1
  483. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  484. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
  485. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
  486. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
  487. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
  488. package/dist/_chunks/usePrev-B9w_-eYc.js +0 -15
  489. package/dist/_chunks/usePrev-B9w_-eYc.js.map +0 -1
  490. package/dist/_chunks/usePrev-DH6iah0A.mjs +0 -16
  491. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +0 -1
  492. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  493. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  494. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  495. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  496. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  497. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  498. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  499. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
  500. package/strapi-server.js +0 -3
@@ -1,750 +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-DiMrfcfy.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, direction: "column", alignItems: "stretch", 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, direction: "column", alignItems: "stretch", 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
- variant: "ghost",
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
- variant: "ghost",
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, direction: "column", alignItems: "stretch", 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;
522
- border: none;
523
- background-color: transparent;
524
- border-radius: 0px;
525
- border-right: 1px solid ${({ theme }) => theme.colors.neutral150};
526
- cursor: all-scroll;
527
-
528
- svg {
529
- width: 1.2rem;
530
- height: 1.2rem;
531
- }
532
- `;
533
- const ComponentLink = styled(NavLink)`
534
- display: flex;
535
- flex-direction: column;
536
- align-items: center;
537
- gap: ${({ theme }) => theme.spaces[1]};
538
- padding: ${(props) => props.theme.spaces[2]};
539
- border: 1px solid ${({ theme }) => theme.colors.neutral200};
540
- background: ${({ theme }) => theme.colors.neutral0};
541
- width: 14rem;
542
- border-radius: ${({ theme }) => theme.borderRadius};
543
- text-decoration: none;
544
-
545
- &:focus,
546
- &:hover {
547
- ${({ theme }) => `
548
- background-color: ${theme.colors.primary100};
549
- border-color: ${theme.colors.primary200};
550
-
551
- ${Typography} {
552
- color: ${theme.colors.primary600};
553
- }
554
- `}
555
-
556
- /* > ComponentIcon */
557
- > div:first-child {
558
- background: ${({ theme }) => theme.colors.primary200};
559
- color: ${({ theme }) => theme.colors.primary600};
560
-
561
- svg {
562
- path {
563
- fill: ${({ theme }) => theme.colors.primary600};
564
- }
565
- }
566
- }
567
- }
568
- `;
569
- const ConfigurationForm = ({
570
- attributes,
571
- fieldSizes,
572
- layout: editLayout,
573
- onSubmit
574
- }) => {
575
- const { components, settings, layout, metadatas } = editLayout;
576
- const { formatMessage } = useIntl();
577
- const initialValues = React.useMemo(() => {
578
- const transformations = pipe(
579
- flattenPanels,
580
- replaceMainFieldWithNameOnly,
581
- extractMetadata,
582
- addTmpSpaceToLayout,
583
- addTmpKeysToLayout
584
- );
585
- return {
586
- layout: transformations(layout),
587
- settings
588
- };
589
- }, [layout, settings]);
590
- return /* @__PURE__ */ jsx(Layouts.Root, { children: /* @__PURE__ */ jsx(Main, { children: /* @__PURE__ */ jsxs(Form, { initialValues, onSubmit, method: "PUT", children: [
591
- /* @__PURE__ */ jsx(Header, { name: settings.displayName ?? "" }),
592
- /* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsxs(
593
- Flex,
594
- {
595
- alignItems: "stretch",
596
- background: "neutral0",
597
- direction: "column",
598
- gap: 6,
599
- hasRadius: true,
600
- shadow: "tableShadow",
601
- paddingTop: 6,
602
- paddingBottom: 6,
603
- paddingLeft: 7,
604
- paddingRight: 7,
605
- children: [
606
- /* @__PURE__ */ jsx(Typography, { variant: "delta", tag: "h2", children: formatMessage({
607
- id: getTranslation("containers.SettingPage.settings"),
608
- defaultMessage: "Settings"
609
- }) }),
610
- /* @__PURE__ */ jsxs(Grid.Root, { children: [
611
- /* @__PURE__ */ jsx(Grid.Item, { col: 6, s: 12, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsx(
612
- InputRenderer,
613
- {
614
- type: "enumeration",
615
- label: formatMessage({
616
- id: getTranslation("containers.SettingPage.editSettings.entry.title"),
617
- defaultMessage: "Entry title"
618
- }),
619
- hint: formatMessage({
620
- id: getTranslation(
621
- "containers.SettingPage.editSettings.entry.title.description"
622
- ),
623
- defaultMessage: "Set the display field of your entry"
624
- }),
625
- name: "settings.mainField",
626
- options: Object.entries(attributes).reduce((acc, [key, attribute]) => {
627
- if (!attribute) {
628
- return acc;
629
- }
630
- if (!ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD.includes(attribute.type)) {
631
- acc.push({
632
- label: key,
633
- value: key
634
- });
635
- }
636
- return acc;
637
- }, [])
638
- }
639
- ) }),
640
- /* @__PURE__ */ jsx(
641
- Grid.Item,
642
- {
643
- paddingTop: 6,
644
- paddingBottom: 6,
645
- col: 12,
646
- s: 12,
647
- direction: "column",
648
- alignItems: "stretch",
649
- children: /* @__PURE__ */ jsx(Divider, {})
650
- }
651
- ),
652
- /* @__PURE__ */ jsx(Grid.Item, { col: 12, s: 12, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsx(Typography, { variant: "delta", tag: "h3", children: formatMessage({
653
- id: getTranslation("containers.SettingPage.view"),
654
- defaultMessage: "View"
655
- }) }) }),
656
- /* @__PURE__ */ jsx(Grid.Item, { col: 12, s: 12, direction: "column", alignItems: "stretch", children: /* @__PURE__ */ jsx(
657
- Fields,
658
- {
659
- attributes,
660
- components,
661
- fieldSizes,
662
- metadatas
663
- }
664
- ) })
665
- ] })
666
- ]
667
- }
668
- ) })
669
- ] }) }) });
670
- };
671
- const flattenPanels = (layout) => layout.flat(1);
672
- const replaceMainFieldWithNameOnly = (layout) => layout.map(
673
- (row) => row.map((field) => ({
674
- ...field,
675
- mainField: field.mainField?.name
676
- }))
677
- );
678
- const extractMetadata = (layout) => {
679
- return layout.map(
680
- (row) => row.map(({ label, disabled, hint, placeholder, size, name, mainField }) => ({
681
- label,
682
- editable: !disabled,
683
- description: hint,
684
- mainField,
685
- placeholder,
686
- size,
687
- name,
688
- __temp_key__: ""
689
- }))
690
- );
691
- };
692
- const addTmpSpaceToLayout = (layout) => [
693
- ...layout.map((row) => {
694
- const totalSpaceTaken = row.reduce((acc, field) => acc + field.size, 0);
695
- if (totalSpaceTaken < 12) {
696
- return [
697
- ...row,
698
- {
699
- name: TEMP_FIELD_NAME,
700
- size: 12 - totalSpaceTaken,
701
- __temp_key__: ""
702
- }
703
- ];
704
- }
705
- return row;
706
- })
707
- ];
708
- const addTmpKeysToLayout = (layout) => {
709
- const keys = generateNKeysBetween$1(void 0, void 0, layout.length);
710
- return layout.map((row, rowIndex) => {
711
- const fieldKeys = generateNKeysBetween$1(void 0, void 0, row.length);
712
- return {
713
- __temp_key__: keys[rowIndex],
714
- children: row.map((field, fieldIndex) => {
715
- return {
716
- ...field,
717
- __temp_key__: fieldKeys[fieldIndex]
718
- };
719
- })
720
- };
721
- });
722
- };
723
- const Header = ({ name }) => {
724
- const { formatMessage } = useIntl();
725
- const modified = useForm("Header", (state) => state.modified);
726
- const isSubmitting = useForm("Header", (state) => state.isSubmitting);
727
- return /* @__PURE__ */ jsx(
728
- Layouts.Header,
729
- {
730
- title: formatMessage(
731
- {
732
- id: getTranslation("components.SettingsViewWrapper.pluginHeader.title"),
733
- defaultMessage: `Configure the view - {name}`
734
- },
735
- { name: capitalise(name) }
736
- ),
737
- subtitle: formatMessage({
738
- id: getTranslation("components.SettingsViewWrapper.pluginHeader.description.edit-settings"),
739
- defaultMessage: "Customize how the edit view will look like."
740
- }),
741
- navigationAction: /* @__PURE__ */ jsx(BackButton, {}),
742
- primaryAction: /* @__PURE__ */ jsx(Button, { disabled: !modified, loading: isSubmitting, type: "submit", children: formatMessage({ id: "global.save", defaultMessage: "Save" }) })
743
- }
744
- );
745
- };
746
- export {
747
- ConfigurationForm as C,
748
- TEMP_FIELD_NAME as T
749
- };
750
- //# sourceMappingURL=Form-DJn0Dxha.mjs.map