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

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 (444) hide show
  1. package/dist/admin/chunks/CardDragPreview-DwuraT0K.js +80 -0
  2. package/dist/admin/chunks/CardDragPreview-DwuraT0K.js.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-DXwOtpq1.js +298 -0
  6. package/dist/admin/chunks/ComponentConfigurationPage-DXwOtpq1.js.map +1 -0
  7. package/dist/admin/chunks/ComponentConfigurationPage-DhYZp4nN.js +276 -0
  8. package/dist/admin/chunks/ComponentConfigurationPage-DhYZp4nN.js.map +1 -0
  9. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js +153 -0
  10. package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js.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-D0Ng758X.js +180 -0
  14. package/dist/admin/chunks/EditConfigurationPage-D0Ng758X.js.map +1 -0
  15. package/dist/admin/chunks/EditConfigurationPage-DDuPch5d.js +158 -0
  16. package/dist/admin/chunks/EditConfigurationPage-DDuPch5d.js.map +1 -0
  17. package/dist/admin/chunks/EditViewPage-jCZnUuCR.js +265 -0
  18. package/dist/admin/chunks/EditViewPage-jCZnUuCR.js.map +1 -0
  19. package/dist/admin/chunks/EditViewPage-zSnDwLz3.js +288 -0
  20. package/dist/admin/chunks/EditViewPage-zSnDwLz3.js.map +1 -0
  21. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js +56 -0
  22. package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js.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-BEqiuSvQ.js +978 -0
  26. package/dist/admin/chunks/Form-BEqiuSvQ.js.map +1 -0
  27. package/dist/admin/chunks/Form-CZmB6JIg.js +955 -0
  28. package/dist/admin/chunks/Form-CZmB6JIg.js.map +1 -0
  29. package/dist/admin/chunks/History-BlLKDZSw.js +1331 -0
  30. package/dist/admin/chunks/History-BlLKDZSw.js.map +1 -0
  31. package/dist/admin/chunks/History-CPYXgxkS.js +1308 -0
  32. package/dist/admin/chunks/History-CPYXgxkS.js.map +1 -0
  33. package/dist/admin/chunks/Input-CLX3C5DI.js +6711 -0
  34. package/dist/admin/chunks/Input-CLX3C5DI.js.map +1 -0
  35. package/dist/admin/chunks/Input-DiR2Xfa7.js +6742 -0
  36. package/dist/admin/chunks/Input-DiR2Xfa7.js.map +1 -0
  37. package/dist/admin/chunks/ListConfigurationPage-CNvotSqe.js +795 -0
  38. package/dist/admin/chunks/ListConfigurationPage-CNvotSqe.js.map +1 -0
  39. package/dist/admin/chunks/ListConfigurationPage-DdTp-HxB.js +818 -0
  40. package/dist/admin/chunks/ListConfigurationPage-DdTp-HxB.js.map +1 -0
  41. package/dist/admin/chunks/ListViewPage-BtXYjEYz.js +1154 -0
  42. package/dist/admin/chunks/ListViewPage-BtXYjEYz.js.map +1 -0
  43. package/dist/admin/chunks/ListViewPage-MJNfQTp-.js +1132 -0
  44. package/dist/admin/chunks/ListViewPage-MJNfQTp-.js.map +1 -0
  45. package/dist/admin/chunks/NoContentTypePage-BJrZvYPY.js +57 -0
  46. package/dist/admin/chunks/NoContentTypePage-BJrZvYPY.js.map +1 -0
  47. package/dist/admin/chunks/NoContentTypePage-CVvVpwj4.js +59 -0
  48. package/dist/admin/chunks/NoContentTypePage-CVvVpwj4.js.map +1 -0
  49. package/dist/admin/chunks/NoPermissionsPage-BulvG4hB.js +36 -0
  50. package/dist/admin/chunks/NoPermissionsPage-BulvG4hB.js.map +1 -0
  51. package/dist/admin/chunks/NoPermissionsPage-C5yWg70d.js +38 -0
  52. package/dist/admin/chunks/NoPermissionsPage-C5yWg70d.js.map +1 -0
  53. package/dist/admin/chunks/Preview-DEuQgQg2.js +482 -0
  54. package/dist/admin/chunks/Preview-DEuQgQg2.js.map +1 -0
  55. package/dist/admin/chunks/Preview-H74FQ9Cq.js +504 -0
  56. package/dist/admin/chunks/Preview-H74FQ9Cq.js.map +1 -0
  57. package/dist/admin/chunks/Relations-C8jbZPVK.js +827 -0
  58. package/dist/admin/chunks/Relations-C8jbZPVK.js.map +1 -0
  59. package/dist/admin/chunks/Relations-mxOUS7TJ.js +853 -0
  60. package/dist/admin/chunks/Relations-mxOUS7TJ.js.map +1 -0
  61. package/dist/admin/chunks/ar-DckYq_WK.js +222 -0
  62. package/dist/admin/chunks/ar-DckYq_WK.js.map +1 -0
  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.js +197 -0
  68. package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ca-DviY7mRj.js.map} +1 -1
  69. package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
  70. package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
  71. package/dist/admin/chunks/cs-C7OSYFQ7.js +122 -0
  72. package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-C7OSYFQ7.js.map} +1 -1
  73. package/dist/admin/chunks/de-5QRlDHyR.js +195 -0
  74. package/dist/{_chunks/ja-7sfIbjxE.js.map → admin/chunks/de-5QRlDHyR.js.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-C1CjdAtC.js +313 -0
  78. package/dist/{_chunks/en-D65uIF6Y.mjs.map → admin/chunks/en-C1CjdAtC.js.map} +1 -1
  79. package/dist/admin/chunks/en-LfhocNG2.js +308 -0
  80. package/dist/{_chunks/en-BR48D_RH.js.map → admin/chunks/en-LfhocNG2.js.map} +1 -1
  81. package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
  82. package/dist/admin/chunks/es-C8vLuvZL.js.map +1 -0
  83. package/dist/admin/chunks/es-DkoWSExG.js +192 -0
  84. package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/es-DkoWSExG.js.map} +1 -1
  85. package/dist/admin/chunks/eu-BG1xX7HK.js +198 -0
  86. package/dist/admin/chunks/eu-BG1xX7HK.js.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.js +215 -0
  90. package/dist/admin/chunks/fr-CFdRaRVj.js.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.js +196 -0
  94. package/dist/admin/chunks/gu-D5MMMXRs.js.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.js +196 -0
  100. package/dist/admin/chunks/hi-lp17SCjr.js.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_.js +7 -0
  104. package/dist/admin/chunks/hooks-DMvik5y_.js.map +1 -0
  105. package/dist/admin/chunks/hu-CLka1U2C.js +198 -0
  106. package/dist/admin/chunks/hu-CLka1U2C.js.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.js +156 -0
  112. package/dist/admin/chunks/id-USfY9m1g.js.map +1 -0
  113. package/dist/admin/chunks/index-BRlRBRLb.js +5350 -0
  114. package/dist/admin/chunks/index-BRlRBRLb.js.map +1 -0
  115. package/dist/admin/chunks/index-ZIwOPk6p.js +5416 -0
  116. package/dist/admin/chunks/index-ZIwOPk6p.js.map +1 -0
  117. package/dist/admin/chunks/it-BAHrwmYS.js +158 -0
  118. package/dist/admin/chunks/it-BAHrwmYS.js.map +1 -0
  119. package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
  120. package/dist/{_chunks/es-9K52xZIr.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
  121. package/dist/admin/chunks/ja-BWKmBJFT.js +192 -0
  122. package/dist/admin/chunks/ja-BWKmBJFT.js.map +1 -0
  123. package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
  124. package/dist/admin/chunks/ja-jdQM-B79.js.map +1 -0
  125. package/dist/admin/chunks/ko-CgADGBNt.js +191 -0
  126. package/dist/admin/chunks/ko-CgADGBNt.js.map +1 -0
  127. package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
  128. package/dist/admin/chunks/ko-k46sEyzt.js.map +1 -0
  129. package/dist/admin/chunks/layout-B3-guCPG.js +598 -0
  130. package/dist/admin/chunks/layout-B3-guCPG.js.map +1 -0
  131. package/dist/admin/chunks/layout-ameRNiAM.js +618 -0
  132. package/dist/admin/chunks/layout-ameRNiAM.js.map +1 -0
  133. package/dist/admin/chunks/ml-CnhCfOn_.js +196 -0
  134. package/dist/admin/chunks/ml-CnhCfOn_.js.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.js +140 -0
  138. package/dist/{_chunks/uk-C8EiqJY7.js.map → admin/chunks/ms-Bh09NFff.js.map} +1 -1
  139. package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
  140. package/dist/admin/chunks/ms-CvSC0OdG.js.map +1 -0
  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.js +198 -0
  144. package/dist/admin/chunks/nl-C8HYflTc.js.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.js +73 -0
  148. package/dist/admin/chunks/objects-wl73iEma.js.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.js +195 -0
  152. package/dist/admin/chunks/pl-MFCZJZuZ.js.map +1 -0
  153. package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
  154. package/dist/admin/chunks/pt-BR-CPtAXD-4.js.map +1 -0
  155. package/dist/admin/chunks/pt-BR-CcotyBGJ.js +197 -0
  156. package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CcotyBGJ.js.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.js +93 -0
  160. package/dist/admin/chunks/pt-HbmgeiYO.js.map +1 -0
  161. package/dist/admin/chunks/relations-CmoFVrKj.js +178 -0
  162. package/dist/admin/chunks/relations-CmoFVrKj.js.map +1 -0
  163. package/dist/admin/chunks/relations-DYQAaXwZ.js +173 -0
  164. package/dist/admin/chunks/relations-DYQAaXwZ.js.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.js +230 -0
  168. package/dist/admin/chunks/ru-CB4BUyQp.js.map +1 -0
  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.js +196 -0
  172. package/dist/admin/chunks/sa-n_aPA-pU.js.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.js +198 -0
  176. package/dist/admin/chunks/sk-tn_BDjE2.js.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.js +198 -0
  180. package/dist/admin/chunks/sv-cq4ZrQRd.js.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.js +144 -0
  184. package/dist/admin/chunks/th-mUH7hEtc.js.map +1 -0
  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.js +195 -0
  188. package/dist/admin/chunks/tr-Yt38daxh.js.map +1 -0
  189. package/dist/admin/chunks/uk-B24MoTVg.js +145 -0
  190. package/dist/admin/chunks/uk-B24MoTVg.js.map +1 -0
  191. package/dist/admin/chunks/uk-Cpgmm7gE.js +140 -0
  192. package/dist/admin/chunks/uk-Cpgmm7gE.js.map +1 -0
  193. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js +247 -0
  194. package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js.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.js +18 -0
  198. package/dist/admin/chunks/usePrev-Bjw2dhmq.js.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/admin/chunks/vi-BGr1X_HZ.js.map +1 -0
  203. package/dist/admin/chunks/vi-CvBGlTjr.js +108 -0
  204. package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-CvBGlTjr.js.map} +1 -1
  205. package/dist/admin/chunks/zh-BmF-sHaT.js +205 -0
  206. package/dist/admin/chunks/zh-BmF-sHaT.js.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.js +934 -0
  210. package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-CI0HKio3.js.map} +1 -1
  211. package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
  212. package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
  213. package/dist/admin/index.js +23 -4
  214. package/dist/admin/index.js.map +1 -1
  215. package/dist/admin/index.mjs +16 -13
  216. package/dist/admin/index.mjs.map +1 -1
  217. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  218. package/dist/admin/src/hooks/useDocument.d.ts +2 -2
  219. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +0 -1
  220. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +0 -49
  221. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -1
  222. package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -1
  223. package/dist/admin/src/preview/index.d.ts +2 -3
  224. package/dist/server/index.js +5459 -4387
  225. package/dist/server/index.js.map +1 -1
  226. package/dist/server/index.mjs +5446 -4372
  227. package/dist/server/index.mjs.map +1 -1
  228. package/dist/server/src/controllers/utils/metadata.d.ts +1 -1
  229. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  230. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  231. package/dist/server/src/services/utils/count.d.ts +1 -1
  232. package/dist/server/src/services/utils/count.d.ts.map +1 -1
  233. package/dist/server/src/services/utils/populate.d.ts +1 -1
  234. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  235. package/dist/shared/contracts/collection-types.d.ts +0 -1
  236. package/dist/shared/contracts/components.d.ts +0 -1
  237. package/dist/shared/contracts/content-types.d.ts +0 -1
  238. package/dist/shared/contracts/history-versions.d.ts +0 -1
  239. package/dist/shared/contracts/index.d.ts +0 -1
  240. package/dist/shared/contracts/init.d.ts +0 -1
  241. package/dist/shared/contracts/preview.d.ts +0 -1
  242. package/dist/shared/contracts/relations.d.ts +1 -2
  243. package/dist/shared/contracts/relations.d.ts.map +1 -1
  244. package/dist/shared/contracts/review-workflows.d.ts +0 -1
  245. package/dist/shared/contracts/single-types.d.ts +0 -1
  246. package/dist/shared/contracts/uid.d.ts +0 -1
  247. package/dist/shared/index.d.ts +0 -1
  248. package/dist/shared/index.js +35 -24
  249. package/dist/shared/index.js.map +1 -1
  250. package/dist/shared/index.mjs +34 -25
  251. package/dist/shared/index.mjs.map +1 -1
  252. package/package.json +13 -10
  253. package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
  254. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
  255. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
  256. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
  257. package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs +0 -236
  258. package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs.map +0 -1
  259. package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js +0 -254
  260. package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js.map +0 -1
  261. package/dist/_chunks/ComponentIcon-CRbtQEUV.js +0 -175
  262. package/dist/_chunks/ComponentIcon-CRbtQEUV.js.map +0 -1
  263. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
  264. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
  265. package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js +0 -150
  266. package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js.map +0 -1
  267. package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs +0 -132
  268. package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs.map +0 -1
  269. package/dist/_chunks/EditViewPage-D4yFJET6.js +0 -209
  270. package/dist/_chunks/EditViewPage-D4yFJET6.js.map +0 -1
  271. package/dist/_chunks/EditViewPage-DrmVmYN0.mjs +0 -191
  272. package/dist/_chunks/EditViewPage-DrmVmYN0.mjs.map +0 -1
  273. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
  274. package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
  275. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
  276. package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
  277. package/dist/_chunks/Form-C4rSaGsz.js +0 -778
  278. package/dist/_chunks/Form-C4rSaGsz.js.map +0 -1
  279. package/dist/_chunks/Form-DamaxNpG.mjs +0 -758
  280. package/dist/_chunks/Form-DamaxNpG.mjs.map +0 -1
  281. package/dist/_chunks/History-D1PreDSY.mjs +0 -999
  282. package/dist/_chunks/History-D1PreDSY.mjs.map +0 -1
  283. package/dist/_chunks/History-DTm8UCCQ.js +0 -1019
  284. package/dist/_chunks/History-DTm8UCCQ.js.map +0 -1
  285. package/dist/_chunks/Input-B7sapvBG.js +0 -5617
  286. package/dist/_chunks/Input-B7sapvBG.js.map +0 -1
  287. package/dist/_chunks/Input-CZ1YvjHR.mjs +0 -5585
  288. package/dist/_chunks/Input-CZ1YvjHR.mjs.map +0 -1
  289. package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs +0 -633
  290. package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs.map +0 -1
  291. package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js +0 -652
  292. package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js.map +0 -1
  293. package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs +0 -854
  294. package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs.map +0 -1
  295. package/dist/_chunks/ListViewPage-DTuuxU3n.js +0 -877
  296. package/dist/_chunks/ListViewPage-DTuuxU3n.js.map +0 -1
  297. package/dist/_chunks/NoContentTypePage-CL7VVeYs.js +0 -51
  298. package/dist/_chunks/NoContentTypePage-CL7VVeYs.js.map +0 -1
  299. package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs +0 -51
  300. package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs.map +0 -1
  301. package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs +0 -23
  302. package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs.map +0 -1
  303. package/dist/_chunks/NoPermissionsPage-v7I599vC.js +0 -23
  304. package/dist/_chunks/NoPermissionsPage-v7I599vC.js.map +0 -1
  305. package/dist/_chunks/Preview-BNuU0SuQ.mjs +0 -287
  306. package/dist/_chunks/Preview-BNuU0SuQ.mjs.map +0 -1
  307. package/dist/_chunks/Preview-Cxq-uI6D.js +0 -305
  308. package/dist/_chunks/Preview-Cxq-uI6D.js.map +0 -1
  309. package/dist/_chunks/Relations-C2Ahkrdg.mjs +0 -728
  310. package/dist/_chunks/Relations-C2Ahkrdg.mjs.map +0 -1
  311. package/dist/_chunks/Relations-CWS79QQn.js +0 -747
  312. package/dist/_chunks/Relations-CWS79QQn.js.map +0 -1
  313. package/dist/_chunks/ar-BUUWXIYu.js +0 -226
  314. package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
  315. package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
  316. package/dist/_chunks/ar-CCEVvqGG.mjs.map +0 -1
  317. package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
  318. package/dist/_chunks/ca-5U32ON2v.mjs.map +0 -1
  319. package/dist/_chunks/ca-Cmk45QO6.js +0 -201
  320. package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
  321. package/dist/_chunks/cs-CM2aBUar.mjs.map +0 -1
  322. package/dist/_chunks/cs-CkJy6B2v.js +0 -125
  323. package/dist/_chunks/de-C72KDNOl.mjs +0 -199
  324. package/dist/_chunks/de-C72KDNOl.mjs.map +0 -1
  325. package/dist/_chunks/de-CCEmbAah.js +0 -199
  326. package/dist/_chunks/en-BR48D_RH.js +0 -312
  327. package/dist/_chunks/en-D65uIF6Y.mjs +0 -312
  328. package/dist/_chunks/es-9K52xZIr.js +0 -196
  329. package/dist/_chunks/es-D34tqjMw.mjs +0 -196
  330. package/dist/_chunks/es-D34tqjMw.mjs.map +0 -1
  331. package/dist/_chunks/eu-CdALomew.mjs +0 -202
  332. package/dist/_chunks/eu-CdALomew.mjs.map +0 -1
  333. package/dist/_chunks/eu-VDH-3ovk.js +0 -202
  334. package/dist/_chunks/fr-C43IbhA_.js +0 -219
  335. package/dist/_chunks/fr-C43IbhA_.js.map +0 -1
  336. package/dist/_chunks/fr-DBseuRuB.mjs +0 -219
  337. package/dist/_chunks/fr-DBseuRuB.mjs.map +0 -1
  338. package/dist/_chunks/gu-BRmF601H.js +0 -200
  339. package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
  340. package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
  341. package/dist/_chunks/hi-CCJBptSq.js +0 -200
  342. package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
  343. package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
  344. package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
  345. package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
  346. package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
  347. package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
  348. package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
  349. package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
  350. package/dist/_chunks/hu-sNV_yLYy.js +0 -202
  351. package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
  352. package/dist/_chunks/id-B5Ser98A.js +0 -160
  353. package/dist/_chunks/id-B5Ser98A.js.map +0 -1
  354. package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
  355. package/dist/_chunks/id-BtwA9WJT.mjs.map +0 -1
  356. package/dist/_chunks/index-DQsvBb_N.js +0 -4500
  357. package/dist/_chunks/index-DQsvBb_N.js.map +0 -1
  358. package/dist/_chunks/index-ZKrsjv-2.mjs +0 -4481
  359. package/dist/_chunks/index-ZKrsjv-2.mjs.map +0 -1
  360. package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
  361. package/dist/_chunks/it-BrVPqaf1.mjs.map +0 -1
  362. package/dist/_chunks/it-DkBIs7vD.js +0 -162
  363. package/dist/_chunks/ja-7sfIbjxE.js +0 -196
  364. package/dist/_chunks/ja-BHqhDq4V.mjs +0 -196
  365. package/dist/_chunks/ja-BHqhDq4V.mjs.map +0 -1
  366. package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
  367. package/dist/_chunks/ko-HVQRlfUI.mjs.map +0 -1
  368. package/dist/_chunks/ko-woFZPmLk.js +0 -195
  369. package/dist/_chunks/layout-Cl0NhlQB.js +0 -488
  370. package/dist/_chunks/layout-Cl0NhlQB.js.map +0 -1
  371. package/dist/_chunks/layout-fQk1rMk9.mjs +0 -471
  372. package/dist/_chunks/layout-fQk1rMk9.mjs.map +0 -1
  373. package/dist/_chunks/ml-BihZwQit.mjs +0 -200
  374. package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
  375. package/dist/_chunks/ml-C2W8N8k1.js +0 -200
  376. package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
  377. package/dist/_chunks/ms-BuFotyP_.js +0 -144
  378. package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
  379. package/dist/_chunks/ms-m_WjyWx7.mjs.map +0 -1
  380. package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
  381. package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
  382. package/dist/_chunks/nl-bbEOHChV.js +0 -202
  383. package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
  384. package/dist/_chunks/objects-BcXOv6_9.js +0 -47
  385. package/dist/_chunks/objects-BcXOv6_9.js.map +0 -1
  386. package/dist/_chunks/objects-D6yBsdmx.mjs +0 -45
  387. package/dist/_chunks/objects-D6yBsdmx.mjs.map +0 -1
  388. package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
  389. package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
  390. package/dist/_chunks/pl-uzwG-hk7.js +0 -199
  391. package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
  392. package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
  393. package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
  394. package/dist/_chunks/pt-BR-C71iDxnh.mjs.map +0 -1
  395. package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
  396. package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
  397. package/dist/_chunks/pt-CeXQuq50.js +0 -95
  398. package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
  399. package/dist/_chunks/relations-BRfBxVbX.js +0 -133
  400. package/dist/_chunks/relations-BRfBxVbX.js.map +0 -1
  401. package/dist/_chunks/relations-BakOFl_1.mjs +0 -134
  402. package/dist/_chunks/relations-BakOFl_1.mjs.map +0 -1
  403. package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
  404. package/dist/_chunks/ru-BE6A4Exp.mjs.map +0 -1
  405. package/dist/_chunks/ru-BT3ybNny.js +0 -231
  406. package/dist/_chunks/sa-CcvkYInH.js +0 -200
  407. package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
  408. package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
  409. package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
  410. package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
  411. package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
  412. package/dist/_chunks/sk-CvY09Xjv.js +0 -202
  413. package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
  414. package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
  415. package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
  416. package/dist/_chunks/sv-MYDuzgvT.js +0 -202
  417. package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
  418. package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
  419. package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
  420. package/dist/_chunks/th-D9_GfAjc.js +0 -148
  421. package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
  422. package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
  423. package/dist/_chunks/tr-D9UH-O_R.js +0 -199
  424. package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
  425. package/dist/_chunks/uk-C8EiqJY7.js +0 -144
  426. package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
  427. package/dist/_chunks/uk-CR-zDhAY.mjs.map +0 -1
  428. package/dist/_chunks/useDragAndDrop-BMtgCYzL.js +0 -245
  429. package/dist/_chunks/useDragAndDrop-BMtgCYzL.js.map +0 -1
  430. package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs +0 -228
  431. package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs.map +0 -1
  432. package/dist/_chunks/usePrev-CZGy2Vjf.mjs +0 -29
  433. package/dist/_chunks/usePrev-CZGy2Vjf.mjs.map +0 -1
  434. package/dist/_chunks/usePrev-D5J_2fEu.js +0 -28
  435. package/dist/_chunks/usePrev-D5J_2fEu.js.map +0 -1
  436. package/dist/_chunks/vi-CJlYDheJ.js +0 -111
  437. package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
  438. package/dist/_chunks/vi-DUXIk_fw.mjs.map +0 -1
  439. package/dist/_chunks/zh-BWZspA60.mjs +0 -209
  440. package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
  441. package/dist/_chunks/zh-CQQfszqR.js +0 -209
  442. package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
  443. package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
  444. package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
@@ -0,0 +1,56 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import 'react';
3
+ import { useStrapiApp } from '@strapi/admin/strapi-admin';
4
+ import { Box } from '@strapi/design-system';
5
+ import { NumberField, BooleanField, DateField, EmailField, EnumerationField, MediaField, PasswordField, RelationField, TextField, JsonField, UidField, ComponentField, DynamicZoneField, BlocksField } from '@strapi/icons/symbols';
6
+
7
+ const iconByTypes = {
8
+ biginteger: /*#__PURE__*/ jsx(NumberField, {}),
9
+ boolean: /*#__PURE__*/ jsx(BooleanField, {}),
10
+ date: /*#__PURE__*/ jsx(DateField, {}),
11
+ datetime: /*#__PURE__*/ jsx(DateField, {}),
12
+ decimal: /*#__PURE__*/ jsx(NumberField, {}),
13
+ email: /*#__PURE__*/ jsx(EmailField, {}),
14
+ enumeration: /*#__PURE__*/ jsx(EnumerationField, {}),
15
+ float: /*#__PURE__*/ jsx(NumberField, {}),
16
+ integer: /*#__PURE__*/ jsx(NumberField, {}),
17
+ media: /*#__PURE__*/ jsx(MediaField, {}),
18
+ password: /*#__PURE__*/ jsx(PasswordField, {}),
19
+ relation: /*#__PURE__*/ jsx(RelationField, {}),
20
+ string: /*#__PURE__*/ jsx(TextField, {}),
21
+ text: /*#__PURE__*/ jsx(TextField, {}),
22
+ richtext: /*#__PURE__*/ jsx(TextField, {}),
23
+ time: /*#__PURE__*/ jsx(DateField, {}),
24
+ timestamp: /*#__PURE__*/ jsx(DateField, {}),
25
+ json: /*#__PURE__*/ jsx(JsonField, {}),
26
+ uid: /*#__PURE__*/ jsx(UidField, {}),
27
+ component: /*#__PURE__*/ jsx(ComponentField, {}),
28
+ dynamiczone: /*#__PURE__*/ jsx(DynamicZoneField, {}),
29
+ blocks: /*#__PURE__*/ jsx(BlocksField, {})
30
+ };
31
+ const FieldTypeIcon = ({ type, customFieldUid })=>{
32
+ const getCustomField = useStrapiApp('FieldTypeIcon', (state)=>state.customFields.get);
33
+ if (!type) {
34
+ return null;
35
+ }
36
+ let Compo = iconByTypes[type];
37
+ if (customFieldUid) {
38
+ const customField = getCustomField(customFieldUid);
39
+ const CustomFieldIcon = customField?.icon;
40
+ if (CustomFieldIcon) {
41
+ Compo = /*#__PURE__*/ jsx(Box, {
42
+ marginRight: 3,
43
+ width: 7,
44
+ height: 6,
45
+ children: /*#__PURE__*/ jsx(CustomFieldIcon, {})
46
+ });
47
+ }
48
+ }
49
+ if (!iconByTypes[type]) {
50
+ return null;
51
+ }
52
+ return Compo;
53
+ };
54
+
55
+ export { FieldTypeIcon as F };
56
+ //# sourceMappingURL=FieldTypeIcon-BY6MrVF4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldTypeIcon-BY6MrVF4.js","sources":["../../../admin/src/components/FieldTypeIcon.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useStrapiApp } from '@strapi/admin/strapi-admin';\nimport { Box } from '@strapi/design-system';\nimport {\n BlocksField,\n BooleanField,\n ComponentField,\n DateField,\n DynamicZoneField,\n EmailField,\n EnumerationField,\n JsonField,\n MediaField,\n NumberField,\n PasswordField,\n RelationField,\n TextField,\n UidField,\n} from '@strapi/icons/symbols';\n\nimport type { Schema } from '@strapi/types';\n\nconst iconByTypes: Record<Schema.Attribute.Kind, React.ReactElement> = {\n biginteger: <NumberField />,\n boolean: <BooleanField />,\n date: <DateField />,\n datetime: <DateField />,\n decimal: <NumberField />,\n email: <EmailField />,\n enumeration: <EnumerationField />,\n float: <NumberField />,\n integer: <NumberField />,\n media: <MediaField />,\n password: <PasswordField />,\n relation: <RelationField />,\n string: <TextField />,\n text: <TextField />,\n richtext: <TextField />,\n time: <DateField />,\n timestamp: <DateField />,\n json: <JsonField />,\n uid: <UidField />,\n component: <ComponentField />,\n dynamiczone: <DynamicZoneField />,\n blocks: <BlocksField />,\n};\n\ninterface FieldTypeIconProps {\n type?: keyof typeof iconByTypes;\n customFieldUid?: string;\n}\n\nconst FieldTypeIcon = ({ type, customFieldUid }: FieldTypeIconProps) => {\n const getCustomField = useStrapiApp('FieldTypeIcon', (state) => state.customFields.get);\n\n if (!type) {\n return null;\n }\n\n let Compo = iconByTypes[type];\n\n if (customFieldUid) {\n const customField = getCustomField(customFieldUid);\n const CustomFieldIcon = customField?.icon;\n\n if (CustomFieldIcon) {\n Compo = (\n <Box marginRight={3} width={7} height={6}>\n <CustomFieldIcon />\n </Box>\n );\n }\n }\n\n if (!iconByTypes[type]) {\n return null;\n }\n\n return Compo;\n};\n\nexport { FieldTypeIcon };\n"],"names":["iconByTypes","biginteger","_jsx","NumberField","boolean","BooleanField","date","DateField","datetime","decimal","email","EmailField","enumeration","EnumerationField","float","integer","media","MediaField","password","PasswordField","relation","RelationField","string","TextField","text","richtext","time","timestamp","json","JsonField","uid","UidField","component","ComponentField","dynamiczone","DynamicZoneField","blocks","BlocksField","FieldTypeIcon","type","customFieldUid","getCustomField","useStrapiApp","state","customFields","get","Compo","customField","CustomFieldIcon","icon","Box","marginRight","width","height"],"mappings":";;;;;;AAuBA,MAAMA,WAAiE,GAAA;AACrEC,IAAAA,UAAAA,gBAAYC,GAACC,CAAAA,WAAAA,EAAAA,EAAAA,CAAAA;AACbC,IAAAA,OAAAA,gBAASF,GAACG,CAAAA,YAAAA,EAAAA,EAAAA,CAAAA;AACVC,IAAAA,IAAAA,gBAAMJ,GAACK,CAAAA,SAAAA,EAAAA,EAAAA,CAAAA;AACPC,IAAAA,QAAAA,gBAAUN,GAACK,CAAAA,SAAAA,EAAAA,EAAAA,CAAAA;AACXE,IAAAA,OAAAA,gBAASP,GAACC,CAAAA,WAAAA,EAAAA,EAAAA,CAAAA;AACVO,IAAAA,KAAAA,gBAAOR,GAACS,CAAAA,UAAAA,EAAAA,EAAAA,CAAAA;AACRC,IAAAA,WAAAA,gBAAaV,GAACW,CAAAA,gBAAAA,EAAAA,EAAAA,CAAAA;AACdC,IAAAA,KAAAA,gBAAOZ,GAACC,CAAAA,WAAAA,EAAAA,EAAAA,CAAAA;AACRY,IAAAA,OAAAA,gBAASb,GAACC,CAAAA,WAAAA,EAAAA,EAAAA,CAAAA;AACVa,IAAAA,KAAAA,gBAAOd,GAACe,CAAAA,UAAAA,EAAAA,EAAAA,CAAAA;AACRC,IAAAA,QAAAA,gBAAUhB,GAACiB,CAAAA,aAAAA,EAAAA,EAAAA,CAAAA;AACXC,IAAAA,QAAAA,gBAAUlB,GAACmB,CAA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F,YAAAA,KAAAA,iBACE5C,GAACgD,CAAAA,GAAAA,EAAAA;gBAAIC,WAAa,EAAA,CAAA;gBAAGC,KAAO,EAAA,CAAA;gBAAGC,MAAQ,EAAA,CAAA;AACrC,gBAAA,QAAA,gBAAAnD,GAAC8C,CAAAA,eAAAA,EAAAA,EAAAA;;AAGP;AACF;AAEA,IAAA,IAAI,CAAChD,WAAW,CAACuC,IAAAA,CAAK,EAAE;QACtB,OAAO,IAAA;AACT;IAEA,OAAOO,KAAAA;AACT;;;;"}
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ require('react');
5
+ var strapiAdmin = require('@strapi/admin/strapi-admin');
6
+ var designSystem = require('@strapi/design-system');
7
+ var Symbols = require('@strapi/icons/symbols');
8
+
9
+ const iconByTypes = {
10
+ biginteger: /*#__PURE__*/ jsxRuntime.jsx(Symbols.NumberField, {}),
11
+ boolean: /*#__PURE__*/ jsxRuntime.jsx(Symbols.BooleanField, {}),
12
+ date: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DateField, {}),
13
+ datetime: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DateField, {}),
14
+ decimal: /*#__PURE__*/ jsxRuntime.jsx(Symbols.NumberField, {}),
15
+ email: /*#__PURE__*/ jsxRuntime.jsx(Symbols.EmailField, {}),
16
+ enumeration: /*#__PURE__*/ jsxRuntime.jsx(Symbols.EnumerationField, {}),
17
+ float: /*#__PURE__*/ jsxRuntime.jsx(Symbols.NumberField, {}),
18
+ integer: /*#__PURE__*/ jsxRuntime.jsx(Symbols.NumberField, {}),
19
+ media: /*#__PURE__*/ jsxRuntime.jsx(Symbols.MediaField, {}),
20
+ password: /*#__PURE__*/ jsxRuntime.jsx(Symbols.PasswordField, {}),
21
+ relation: /*#__PURE__*/ jsxRuntime.jsx(Symbols.RelationField, {}),
22
+ string: /*#__PURE__*/ jsxRuntime.jsx(Symbols.TextField, {}),
23
+ text: /*#__PURE__*/ jsxRuntime.jsx(Symbols.TextField, {}),
24
+ richtext: /*#__PURE__*/ jsxRuntime.jsx(Symbols.TextField, {}),
25
+ time: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DateField, {}),
26
+ timestamp: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DateField, {}),
27
+ json: /*#__PURE__*/ jsxRuntime.jsx(Symbols.JsonField, {}),
28
+ uid: /*#__PURE__*/ jsxRuntime.jsx(Symbols.UidField, {}),
29
+ component: /*#__PURE__*/ jsxRuntime.jsx(Symbols.ComponentField, {}),
30
+ dynamiczone: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DynamicZoneField, {}),
31
+ blocks: /*#__PURE__*/ jsxRuntime.jsx(Symbols.BlocksField, {})
32
+ };
33
+ const FieldTypeIcon = ({ type, customFieldUid })=>{
34
+ const getCustomField = strapiAdmin.useStrapiApp('FieldTypeIcon', (state)=>state.customFields.get);
35
+ if (!type) {
36
+ return null;
37
+ }
38
+ let Compo = iconByTypes[type];
39
+ if (customFieldUid) {
40
+ const customField = getCustomField(customFieldUid);
41
+ const CustomFieldIcon = customField?.icon;
42
+ if (CustomFieldIcon) {
43
+ Compo = /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
44
+ marginRight: 3,
45
+ width: 7,
46
+ height: 6,
47
+ children: /*#__PURE__*/ jsxRuntime.jsx(CustomFieldIcon, {})
48
+ });
49
+ }
50
+ }
51
+ if (!iconByTypes[type]) {
52
+ return null;
53
+ }
54
+ return Compo;
55
+ };
56
+
57
+ exports.FieldTypeIcon = FieldTypeIcon;
58
+ //# sourceMappingURL=FieldTypeIcon-Bxh-7Jin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldTypeIcon-Bxh-7Jin.js","sources":["../../../admin/src/components/FieldTypeIcon.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useStrapiApp } from '@strapi/admin/strapi-admin';\nimport { Box } from '@strapi/design-system';\nimport {\n BlocksField,\n BooleanField,\n ComponentField,\n DateField,\n DynamicZoneField,\n EmailField,\n EnumerationField,\n JsonField,\n MediaField,\n NumberField,\n PasswordField,\n RelationField,\n TextField,\n UidField,\n} from '@strapi/icons/symbols';\n\nimport type { Schema } from '@strapi/types';\n\nconst iconByTypes: Record<Schema.Attribute.Kind, React.ReactElement> = {\n biginteger: <NumberField />,\n boolean: <BooleanField />,\n date: <DateField />,\n datetime: <DateField />,\n decimal: <NumberField />,\n email: <EmailField />,\n enumeration: <EnumerationField />,\n float: <NumberField />,\n integer: <NumberField />,\n media: <MediaField />,\n password: <PasswordField />,\n relation: <RelationField />,\n string: <TextField />,\n text: <TextField />,\n richtext: <TextField />,\n time: <DateField />,\n timestamp: <DateField />,\n json: <JsonField />,\n uid: <UidField />,\n component: <ComponentField />,\n dynamiczone: <DynamicZoneField />,\n blocks: <BlocksField />,\n};\n\ninterface FieldTypeIconProps {\n type?: keyof typeof iconByTypes;\n customFieldUid?: string;\n}\n\nconst FieldTypeIcon = ({ type, customFieldUid }: FieldTypeIconProps) => {\n const getCustomField = useStrapiApp('FieldTypeIcon', (state) => state.customFields.get);\n\n if (!type) {\n return null;\n }\n\n let Compo = iconByTypes[type];\n\n if (customFieldUid) {\n const customField = getCustomField(customFieldUid);\n const CustomFieldIcon = customField?.icon;\n\n if (CustomFieldIcon) {\n Compo = (\n <Box marginRight={3} width={7} height={6}>\n <CustomFieldIcon />\n </Box>\n );\n }\n }\n\n if (!iconByTypes[type]) {\n return null;\n }\n\n return Compo;\n};\n\nexport { FieldTypeIcon };\n"],"names":["iconByTypes","biginteger","_jsx","NumberField","boolean","BooleanField","date","DateField","datetime","decimal","email","EmailField","enumeration","EnumerationField","float","integer","media","MediaField","password","PasswordField","relation","RelationField","string","TextField","text","richtext","time","timestamp","json","JsonField","uid","UidField","component","ComponentField","dynamiczone","DynamicZoneField","blocks","BlocksField","FieldTypeIcon","type","customFieldUid","getCustomField","useStrapiApp","state","customFields","get","Compo","customField","CustomFieldIcon","icon","Box","marginRight","width","height"],"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