@strapi/content-type-builder 0.0.0 → 5.0.0-beta.7

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 (315) hide show
  1. package/README.md +1 -1
  2. package/dist/_chunks/ListView-BuXQ605A.js +959 -0
  3. package/dist/_chunks/ListView-BuXQ605A.js.map +1 -0
  4. package/dist/_chunks/ListView-C4hI-wBm.mjs +954 -0
  5. package/dist/_chunks/ListView-C4hI-wBm.mjs.map +1 -0
  6. package/dist/_chunks/ar-BYDB75EB.mjs +51 -0
  7. package/dist/_chunks/ar-BYDB75EB.mjs.map +1 -0
  8. package/dist/_chunks/ar-OCxhAFUy.js +51 -0
  9. package/dist/_chunks/ar-OCxhAFUy.js.map +1 -0
  10. package/dist/_chunks/cs-ChL4LaFY.mjs +139 -0
  11. package/dist/_chunks/cs-ChL4LaFY.mjs.map +1 -0
  12. package/dist/_chunks/cs-Ci3js5EC.js +139 -0
  13. package/dist/_chunks/cs-Ci3js5EC.js.map +1 -0
  14. package/dist/_chunks/de-DnlblIOh.js +193 -0
  15. package/dist/_chunks/de-DnlblIOh.js.map +1 -0
  16. package/dist/_chunks/de-DsHQNzp2.mjs +193 -0
  17. package/dist/_chunks/de-DsHQNzp2.mjs.map +1 -0
  18. package/dist/_chunks/dk-BC7NAQR2.mjs +183 -0
  19. package/dist/_chunks/dk-BC7NAQR2.mjs.map +1 -0
  20. package/dist/_chunks/dk-D3XnOjYz.js +183 -0
  21. package/dist/_chunks/dk-D3XnOjYz.js.map +1 -0
  22. package/dist/_chunks/en-BbczxQBr.mjs +216 -0
  23. package/dist/_chunks/en-BbczxQBr.mjs.map +1 -0
  24. package/dist/_chunks/en-BnToboMV.js +216 -0
  25. package/dist/_chunks/en-BnToboMV.js.map +1 -0
  26. package/dist/_chunks/es-BE_zx2_w.mjs +183 -0
  27. package/dist/_chunks/es-BE_zx2_w.mjs.map +1 -0
  28. package/dist/_chunks/es-DL8lez9W.js +183 -0
  29. package/dist/_chunks/es-DL8lez9W.js.map +1 -0
  30. package/dist/_chunks/fr-DnTxugIo.js +75 -0
  31. package/dist/_chunks/fr-DnTxugIo.js.map +1 -0
  32. package/dist/_chunks/fr-lU_OMJma.mjs +75 -0
  33. package/dist/_chunks/fr-lU_OMJma.mjs.map +1 -0
  34. package/dist/_chunks/id-DYuTgqcc.js +166 -0
  35. package/dist/_chunks/id-DYuTgqcc.js.map +1 -0
  36. package/dist/_chunks/id-W1sKBFEw.mjs +166 -0
  37. package/dist/_chunks/id-W1sKBFEw.mjs.map +1 -0
  38. package/dist/_chunks/index-2ofTO2HM.js +6738 -0
  39. package/dist/_chunks/index-2ofTO2HM.js.map +1 -0
  40. package/dist/_chunks/index-CH93OgkC.js +1209 -0
  41. package/dist/_chunks/index-CH93OgkC.js.map +1 -0
  42. package/dist/_chunks/index-CPBF498m.mjs +6701 -0
  43. package/dist/_chunks/index-CPBF498m.mjs.map +1 -0
  44. package/dist/_chunks/index-DmqlavBo.mjs +1183 -0
  45. package/dist/_chunks/index-DmqlavBo.mjs.map +1 -0
  46. package/dist/_chunks/it-D04lb2Wc.mjs +167 -0
  47. package/dist/_chunks/it-D04lb2Wc.mjs.map +1 -0
  48. package/dist/_chunks/it-DS4sM3km.js +167 -0
  49. package/dist/_chunks/it-DS4sM3km.js.map +1 -0
  50. package/dist/_chunks/ja-BHLK_2_g.mjs +50 -0
  51. package/dist/_chunks/ja-BHLK_2_g.mjs.map +1 -0
  52. package/dist/_chunks/ja-BjouJgZf.js +50 -0
  53. package/dist/_chunks/ja-BjouJgZf.js.map +1 -0
  54. package/dist/_chunks/ko-D_71Pdfn.js +183 -0
  55. package/dist/_chunks/ko-D_71Pdfn.js.map +1 -0
  56. package/dist/_chunks/ko-DoNsXHXA.mjs +183 -0
  57. package/dist/_chunks/ko-DoNsXHXA.mjs.map +1 -0
  58. package/dist/_chunks/ms-BtGFDB9t.mjs +163 -0
  59. package/dist/_chunks/ms-BtGFDB9t.mjs.map +1 -0
  60. package/dist/_chunks/ms-Re1pSHmx.js +163 -0
  61. package/dist/_chunks/ms-Re1pSHmx.js.map +1 -0
  62. package/dist/_chunks/nl-BaTAuelQ.mjs +156 -0
  63. package/dist/_chunks/nl-BaTAuelQ.mjs.map +1 -0
  64. package/dist/_chunks/nl-DQjrDEw0.js +156 -0
  65. package/dist/_chunks/nl-DQjrDEw0.js.map +1 -0
  66. package/dist/_chunks/pl-BGwXgwH7.js +193 -0
  67. package/dist/_chunks/pl-BGwXgwH7.js.map +1 -0
  68. package/dist/_chunks/pl-CP2Zgp01.mjs +193 -0
  69. package/dist/_chunks/pl-CP2Zgp01.mjs.map +1 -0
  70. package/dist/_chunks/pt-BR-CCQGwXs0.mjs +193 -0
  71. package/dist/_chunks/pt-BR-CCQGwXs0.mjs.map +1 -0
  72. package/dist/_chunks/pt-BR-DPd5nRnl.js +193 -0
  73. package/dist/_chunks/pt-BR-DPd5nRnl.js.map +1 -0
  74. package/dist/_chunks/pt-CJoUDTHQ.js +51 -0
  75. package/dist/_chunks/pt-CJoUDTHQ.js.map +1 -0
  76. package/dist/_chunks/pt-DMeTMW2x.mjs +51 -0
  77. package/dist/_chunks/pt-DMeTMW2x.mjs.map +1 -0
  78. package/dist/_chunks/ru-C8A_4j0w.js +168 -0
  79. package/dist/_chunks/ru-C8A_4j0w.js.map +1 -0
  80. package/dist/_chunks/ru-DGSjru5m.mjs +168 -0
  81. package/dist/_chunks/ru-DGSjru5m.mjs.map +1 -0
  82. package/dist/_chunks/sk-DVK4HfSC.mjs +167 -0
  83. package/dist/_chunks/sk-DVK4HfSC.mjs.map +1 -0
  84. package/dist/_chunks/sk-raWRcmPT.js +167 -0
  85. package/dist/_chunks/sk-raWRcmPT.js.map +1 -0
  86. package/dist/_chunks/sv-BGb12eW3.mjs +202 -0
  87. package/dist/_chunks/sv-BGb12eW3.mjs.map +1 -0
  88. package/dist/_chunks/sv-BNN71SFE.js +202 -0
  89. package/dist/_chunks/sv-BNN71SFE.js.map +1 -0
  90. package/dist/_chunks/th--u3VqsON.mjs +164 -0
  91. package/dist/_chunks/th--u3VqsON.mjs.map +1 -0
  92. package/dist/_chunks/th-C83Bb_kR.js +164 -0
  93. package/dist/_chunks/th-C83Bb_kR.js.map +1 -0
  94. package/dist/_chunks/tr-BW20CfcO.js +179 -0
  95. package/dist/_chunks/tr-BW20CfcO.js.map +1 -0
  96. package/dist/_chunks/tr-DsUerr-c.mjs +179 -0
  97. package/dist/_chunks/tr-DsUerr-c.mjs.map +1 -0
  98. package/dist/_chunks/uk-Bx5IlOKX.mjs +164 -0
  99. package/dist/_chunks/uk-Bx5IlOKX.mjs.map +1 -0
  100. package/dist/_chunks/uk-VwB0oiuV.js +164 -0
  101. package/dist/_chunks/uk-VwB0oiuV.js.map +1 -0
  102. package/dist/_chunks/zh-BiOCwPJu.js +202 -0
  103. package/dist/_chunks/zh-BiOCwPJu.js.map +1 -0
  104. package/dist/_chunks/zh-CsUDN13W.mjs +202 -0
  105. package/dist/_chunks/zh-CsUDN13W.mjs.map +1 -0
  106. package/dist/_chunks/zh-Hans-CLTLm_nt.js +147 -0
  107. package/dist/_chunks/zh-Hans-CLTLm_nt.js.map +1 -0
  108. package/dist/_chunks/zh-Hans-Cc0M5PXr.mjs +147 -0
  109. package/dist/_chunks/zh-Hans-Cc0M5PXr.mjs.map +1 -0
  110. package/dist/admin/index.js +5 -0
  111. package/dist/admin/index.js.map +1 -0
  112. package/dist/admin/index.mjs +6 -0
  113. package/dist/admin/index.mjs.map +1 -0
  114. package/dist/admin/src/components/AllowedTypesSelect.d.ts +9 -0
  115. package/dist/admin/src/components/AttributeIcon.d.ts +9 -0
  116. package/dist/admin/src/components/AttributeOptions/AttributeList.d.ts +6 -0
  117. package/dist/admin/src/components/AttributeOptions/AttributeOption.d.ts +11 -0
  118. package/dist/admin/src/components/AttributeOptions/AttributeOptions.d.ts +13 -0
  119. package/dist/admin/src/components/AttributeOptions/CustomFieldOption.d.ts +22 -0
  120. package/dist/admin/src/components/AttributeOptions/CustomFieldsList.d.ts +1 -0
  121. package/dist/admin/src/components/AttributeOptions/EmptyAttributes.d.ts +2 -0
  122. package/dist/admin/src/components/AttributeOptions/OptionBoxWrapper.d.ts +4 -0
  123. package/dist/admin/src/components/AutoReloadOverlayBlocker.d.ts +25 -0
  124. package/dist/admin/src/components/BooleanDefaultValueSelect.d.ts +20 -0
  125. package/dist/admin/src/components/BooleanRadioGroup.d.ts +8 -0
  126. package/dist/admin/src/components/BoxWrapper.d.ts +4 -0
  127. package/dist/admin/src/components/CheckboxWithNumberField.d.ts +11 -0
  128. package/dist/admin/src/components/ComponentCard/ComponentCard.d.ts +10 -0
  129. package/dist/admin/src/components/ComponentCard/ComponentIcon/ComponentIcon.d.ts +7 -0
  130. package/dist/admin/src/components/ComponentCard/ComponentIcon/index.d.ts +1 -0
  131. package/dist/admin/src/components/ComponentCard/index.d.ts +1 -0
  132. package/dist/admin/src/components/ComponentList.d.ts +10 -0
  133. package/dist/admin/src/components/ContentTypeBuilderNav/ContentTypeBuilderNav.d.ts +1 -0
  134. package/dist/admin/src/components/ContentTypeBuilderNav/useContentTypeBuilderMenu.d.ts +18 -0
  135. package/dist/admin/src/components/ContentTypeRadioGroup.d.ts +15 -0
  136. package/dist/admin/src/components/CustomRadioGroup/CustomRadioGroup.d.ts +15 -0
  137. package/dist/admin/src/components/CustomRadioGroup/Styles.d.ts +5 -0
  138. package/dist/admin/src/components/CustomRadioGroup/index.d.ts +1 -0
  139. package/dist/admin/src/components/DataManagerProvider/DataManagerProvider.d.ts +6 -0
  140. package/dist/admin/src/components/DataManagerProvider/constants.d.ts +17 -0
  141. package/dist/admin/src/components/DataManagerProvider/reducer.d.ts +12 -0
  142. package/dist/admin/src/components/DataManagerProvider/selectors.d.ts +17 -0
  143. package/dist/admin/src/components/DataManagerProvider/utils/cleanData.d.ts +23 -0
  144. package/dist/admin/src/components/DataManagerProvider/utils/createDataObject.d.ts +2 -0
  145. package/dist/admin/src/components/DataManagerProvider/utils/createModifiedDataSchema.d.ts +6 -0
  146. package/dist/admin/src/components/DataManagerProvider/utils/formatSchemas.d.ts +6 -0
  147. package/dist/admin/src/components/DataManagerProvider/utils/retrieveComponentsFromSchema.d.ts +4 -0
  148. package/dist/admin/src/components/DataManagerProvider/utils/retrieveComponentsThatHaveComponents.d.ts +4 -0
  149. package/dist/admin/src/components/DataManagerProvider/utils/retrieveNestedComponents.d.ts +1 -0
  150. package/dist/admin/src/components/DataManagerProvider/utils/retrieveSpecificInfoFromComponents.d.ts +1 -0
  151. package/dist/admin/src/components/DataManagerProvider/utils/serverRestartWatcher.d.ts +6 -0
  152. package/dist/admin/src/components/DataManagerProvider/utils/validateSchema.d.ts +1 -0
  153. package/dist/admin/src/components/DisplayedType.d.ts +7 -0
  154. package/dist/admin/src/components/DraftAndPublishToggle.d.ts +27 -0
  155. package/dist/admin/src/components/DynamicZoneList.d.ts +10 -0
  156. package/dist/admin/src/components/FormModal/FormModal.d.ts +1 -0
  157. package/dist/admin/src/components/FormModal/attributes/advancedForm.d.ts +416 -0
  158. package/dist/admin/src/components/FormModal/attributes/attributeOptions.d.ts +90 -0
  159. package/dist/admin/src/components/FormModal/attributes/baseForm.d.ts +376 -0
  160. package/dist/admin/src/components/FormModal/attributes/commonBaseForm.d.ts +17 -0
  161. package/dist/admin/src/components/FormModal/attributes/form.d.ts +792 -0
  162. package/dist/admin/src/components/FormModal/attributes/nameField.d.ts +12 -0
  163. package/dist/admin/src/components/FormModal/attributes/types.d.ts +325 -0
  164. package/dist/admin/src/components/FormModal/attributes/validation/common.d.ts +29 -0
  165. package/dist/admin/src/components/FormModal/category/createCategorySchema.d.ts +5 -0
  166. package/dist/admin/src/components/FormModal/category/form.d.ts +20 -0
  167. package/dist/admin/src/components/FormModal/category/regex.d.ts +1 -0
  168. package/dist/admin/src/components/FormModal/component/componentField.d.ts +20 -0
  169. package/dist/admin/src/components/FormModal/component/componentForm.d.ts +25 -0
  170. package/dist/admin/src/components/FormModal/component/createComponentSchema.d.ts +10 -0
  171. package/dist/admin/src/components/FormModal/constants.d.ts +12 -0
  172. package/dist/admin/src/components/FormModal/contentType/contentTypeForm.d.ts +116 -0
  173. package/dist/admin/src/components/FormModal/contentType/createContentTypeSchema.d.ts +24 -0
  174. package/dist/admin/src/components/FormModal/dynamiczoneForm.d.ts +68 -0
  175. package/dist/admin/src/components/FormModal/forms/forms.d.ts +207 -0
  176. package/dist/admin/src/components/FormModal/forms/utils/addItemsToFormSection.d.ts +38 -0
  177. package/dist/admin/src/components/FormModal/forms/utils/createCollectionName.d.ts +2 -0
  178. package/dist/admin/src/components/FormModal/forms/utils/getUsedAttributeNames.d.ts +11 -0
  179. package/dist/admin/src/components/FormModal/reducer.d.ts +4 -0
  180. package/dist/admin/src/components/FormModal/selectors.d.ts +16 -0
  181. package/dist/admin/src/components/FormModal/utils/canEditContentType.d.ts +18 -0
  182. package/dist/admin/src/components/FormModal/utils/createUid.d.ts +4 -0
  183. package/dist/admin/src/components/FormModal/utils/customFieldDefaultOptionsReducer.d.ts +1 -0
  184. package/dist/admin/src/components/FormModal/utils/getAttributesToDisplay.d.ts +3 -0
  185. package/dist/admin/src/components/FormModal/utils/getFormInputNames.d.ts +1 -0
  186. package/dist/admin/src/components/FormModal/utils/relations.d.ts +4 -0
  187. package/dist/admin/src/components/FormModalEndActions.d.ts +42 -0
  188. package/dist/admin/src/components/FormModalHeader.d.ts +18 -0
  189. package/dist/admin/src/components/FormModalNavigationProvider/FormModalNavigationProvider.d.ts +22 -0
  190. package/dist/admin/src/components/FormModalNavigationProvider/constants.d.ts +16 -0
  191. package/dist/admin/src/components/FormModalSubHeader.d.ts +22 -0
  192. package/dist/admin/src/components/GenericInputs.d.ts +57 -0
  193. package/dist/admin/src/components/IconPicker/IconPicker.d.ts +13 -0
  194. package/dist/admin/src/components/IconPicker/constants.d.ts +5 -0
  195. package/dist/admin/src/components/IconPicker/index.d.ts +1 -0
  196. package/dist/admin/src/components/List.d.ts +18 -0
  197. package/dist/admin/src/components/ListRow.d.ts +22 -0
  198. package/dist/admin/src/components/NestedFooter.d.ts +9 -0
  199. package/dist/admin/src/components/PluralName.d.ts +22 -0
  200. package/dist/admin/src/components/Relation/Relation.d.ts +9 -0
  201. package/dist/admin/src/components/Relation/RelationField/RelationField.d.ts +13 -0
  202. package/dist/admin/src/components/Relation/RelationField/RelationTargetPicker/RelationTargetPicker.d.ts +6 -0
  203. package/dist/admin/src/components/Relation/RelationNaturePicker/Components.d.ts +14 -0
  204. package/dist/admin/src/components/Relation/RelationNaturePicker/RelationNaturePicker.d.ts +8 -0
  205. package/dist/admin/src/components/SelectCategory.d.ts +19 -0
  206. package/dist/admin/src/components/SelectComponent.d.ts +19 -0
  207. package/dist/admin/src/components/SelectComponents.d.ts +19 -0
  208. package/dist/admin/src/components/SelectDateType.d.ts +38 -0
  209. package/dist/admin/src/components/SelectNumber.d.ts +42 -0
  210. package/dist/admin/src/components/SingularName.d.ts +17 -0
  211. package/dist/admin/src/components/TabForm.d.ts +9 -0
  212. package/dist/admin/src/components/TextareaEnum.d.ts +20 -0
  213. package/dist/admin/src/components/Tr.d.ts +5 -0
  214. package/dist/admin/src/components/UpperFirst.d.ts +3 -0
  215. package/dist/admin/src/constants.d.ts +6 -0
  216. package/dist/admin/src/contexts/DataManagerContext.d.ts +41 -0
  217. package/dist/admin/src/contexts/FormModalNavigationContext.d.ts +38 -0
  218. package/dist/admin/src/hooks/useDataManager.d.ts +1 -0
  219. package/dist/admin/src/hooks/useFormModalNavigation.d.ts +1 -0
  220. package/dist/admin/src/icons/Curve.d.ts +5 -0
  221. package/dist/admin/src/index.d.ts +16 -0
  222. package/dist/admin/src/pages/App/index.d.ts +2 -0
  223. package/dist/admin/src/pages/ListView/LinkToCMSettingsView.d.ts +10 -0
  224. package/dist/admin/src/pages/ListView/ListView.d.ts +2 -0
  225. package/dist/admin/src/pages/RecursivePath/RecursivePath.d.ts +1 -0
  226. package/dist/admin/src/pluginId.d.ts +1 -0
  227. package/dist/admin/src/reducers.d.ts +3 -0
  228. package/dist/admin/src/types.d.ts +57 -0
  229. package/dist/admin/src/utils/findAttribute.d.ts +2 -0
  230. package/dist/admin/src/utils/formAPI.d.ts +1 -0
  231. package/dist/admin/src/utils/getAttributeDisplayedType.d.ts +1 -0
  232. package/dist/admin/src/utils/getRelationType.d.ts +6 -0
  233. package/dist/admin/src/utils/getTrad.d.ts +1 -0
  234. package/dist/admin/src/utils/getYupInnerErrors.d.ts +7 -0
  235. package/dist/admin/src/utils/index.d.ts +2 -0
  236. package/dist/admin/src/utils/isAllowedContentTypesForRelations.d.ts +2 -0
  237. package/dist/admin/src/utils/makeUnique.d.ts +2 -0
  238. package/dist/admin/src/utils/nameToSlug.d.ts +1 -0
  239. package/dist/admin/src/utils/prefixPluginTranslations.d.ts +3 -0
  240. package/dist/admin/src/utils/startsWithANumber.d.ts +1 -0
  241. package/dist/admin/src/utils/toRegressedEnumValue.d.ts +1 -0
  242. package/dist/server/index.js +2312 -0
  243. package/dist/server/index.js.map +1 -0
  244. package/dist/server/index.mjs +2291 -0
  245. package/dist/server/index.mjs.map +1 -0
  246. package/dist/server/src/bootstrap.d.ts +6 -0
  247. package/dist/server/src/bootstrap.d.ts.map +1 -0
  248. package/dist/server/src/config.d.ts +6 -0
  249. package/dist/server/src/config.d.ts.map +1 -0
  250. package/dist/server/src/controllers/builder.d.ts +6 -0
  251. package/dist/server/src/controllers/builder.d.ts.map +1 -0
  252. package/dist/server/src/controllers/component-categories.d.ts +7 -0
  253. package/dist/server/src/controllers/component-categories.d.ts.map +1 -0
  254. package/dist/server/src/controllers/components.d.ts +38 -0
  255. package/dist/server/src/controllers/components.d.ts.map +1 -0
  256. package/dist/server/src/controllers/content-types.d.ts +10 -0
  257. package/dist/server/src/controllers/content-types.d.ts.map +1 -0
  258. package/dist/server/src/controllers/index.d.ts +25 -0
  259. package/dist/server/src/controllers/index.d.ts.map +1 -0
  260. package/dist/server/src/controllers/validation/common.d.ts +25 -0
  261. package/dist/server/src/controllers/validation/common.d.ts.map +1 -0
  262. package/dist/server/src/controllers/validation/component-category.d.ts +5 -0
  263. package/dist/server/src/controllers/validation/component-category.d.ts.map +1 -0
  264. package/dist/server/src/controllers/validation/component.d.ts +25 -0
  265. package/dist/server/src/controllers/validation/component.d.ts.map +1 -0
  266. package/dist/server/src/controllers/validation/content-type.d.ts +36 -0
  267. package/dist/server/src/controllers/validation/content-type.d.ts.map +1 -0
  268. package/dist/server/src/controllers/validation/data-transform.d.ts +4 -0
  269. package/dist/server/src/controllers/validation/data-transform.d.ts.map +1 -0
  270. package/dist/server/src/controllers/validation/model-schema.d.ts +12 -0
  271. package/dist/server/src/controllers/validation/model-schema.d.ts.map +1 -0
  272. package/dist/server/src/controllers/validation/relations.d.ts +16 -0
  273. package/dist/server/src/controllers/validation/relations.d.ts.map +1 -0
  274. package/dist/server/src/controllers/validation/types.d.ts +9 -0
  275. package/dist/server/src/controllers/validation/types.d.ts.map +1 -0
  276. package/dist/server/src/index.d.ts +68 -0
  277. package/dist/server/src/index.d.ts.map +1 -0
  278. package/dist/server/src/routes/admin.d.ts +18 -0
  279. package/dist/server/src/routes/admin.d.ts.map +1 -0
  280. package/dist/server/src/routes/content-api.d.ts +10 -0
  281. package/dist/server/src/routes/content-api.d.ts.map +1 -0
  282. package/dist/server/src/routes/index.d.ts +28 -0
  283. package/dist/server/src/routes/index.d.ts.map +1 -0
  284. package/dist/server/src/services/api-handler.d.ts +15 -0
  285. package/dist/server/src/services/api-handler.d.ts.map +1 -0
  286. package/dist/server/src/services/builder.d.ts +5 -0
  287. package/dist/server/src/services/builder.d.ts.map +1 -0
  288. package/dist/server/src/services/component-categories.d.ts +13 -0
  289. package/dist/server/src/services/component-categories.d.ts.map +1 -0
  290. package/dist/server/src/services/components.d.ts +54 -0
  291. package/dist/server/src/services/components.d.ts.map +1 -0
  292. package/dist/server/src/services/constants.d.ts +19 -0
  293. package/dist/server/src/services/constants.d.ts.map +1 -0
  294. package/dist/server/src/services/content-types.d.ts +60 -0
  295. package/dist/server/src/services/content-types.d.ts.map +1 -0
  296. package/dist/server/src/services/index.d.ts +14 -0
  297. package/dist/server/src/services/index.d.ts.map +1 -0
  298. package/dist/server/src/services/schema-builder/component-builder.d.ts +39 -0
  299. package/dist/server/src/services/schema-builder/component-builder.d.ts.map +1 -0
  300. package/dist/server/src/services/schema-builder/content-type-builder.d.ts +38 -0
  301. package/dist/server/src/services/schema-builder/content-type-builder.d.ts.map +1 -0
  302. package/dist/server/src/services/schema-builder/index.d.ts +78 -0
  303. package/dist/server/src/services/schema-builder/index.d.ts.map +1 -0
  304. package/dist/server/src/services/schema-builder/schema-handler.d.ts +36 -0
  305. package/dist/server/src/services/schema-builder/schema-handler.d.ts.map +1 -0
  306. package/dist/server/src/utils/attributes.d.ts +192 -0
  307. package/dist/server/src/utils/attributes.d.ts.map +1 -0
  308. package/dist/server/src/utils/helpers.d.ts +3 -0
  309. package/dist/server/src/utils/helpers.d.ts.map +1 -0
  310. package/dist/server/src/utils/index.d.ts +15 -0
  311. package/dist/server/src/utils/index.d.ts.map +1 -0
  312. package/dist/server/src/utils/typeguards.d.ts +3 -0
  313. package/dist/server/src/utils/typeguards.d.ts.map +1 -0
  314. package/package.json +91 -3
  315. package/strapi-server.js +3 -0
@@ -0,0 +1,68 @@
1
+ export declare const dynamiczoneForm: {
2
+ advanced: {
3
+ default(): {
4
+ sections: unknown[];
5
+ };
6
+ };
7
+ base: {
8
+ createComponent(): {
9
+ sections: {
10
+ sectionTitle: null;
11
+ items: {
12
+ name: string;
13
+ type: string;
14
+ intlLabel: {
15
+ id: string;
16
+ defaultMessage: string;
17
+ };
18
+ }[];
19
+ }[];
20
+ };
21
+ default(): {
22
+ sections: ({
23
+ sectionTitle: null;
24
+ items: {
25
+ intlLabel: {
26
+ id: string;
27
+ defaultMessage: string;
28
+ };
29
+ name: string;
30
+ type: string;
31
+ size: number;
32
+ radios: {
33
+ title: {
34
+ id: string;
35
+ defaultMessage: string;
36
+ };
37
+ description: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ };
41
+ value: boolean;
42
+ }[];
43
+ }[];
44
+ } | {
45
+ sectionTitle: null;
46
+ items: ({
47
+ type: string;
48
+ size: number;
49
+ intlLabel: {
50
+ id: string;
51
+ defaultMessage: string;
52
+ };
53
+ name: string;
54
+ isMultiple?: undefined;
55
+ } | {
56
+ name: string;
57
+ type: string;
58
+ intlLabel: {
59
+ id: string;
60
+ defaultMessage: string;
61
+ };
62
+ isMultiple: boolean;
63
+ size?: undefined;
64
+ })[];
65
+ })[];
66
+ };
67
+ };
68
+ };
@@ -0,0 +1,207 @@
1
+ import { attributesForm } from '../attributes/form';
2
+ import { attributeTypes } from '../attributes/types';
3
+ import { FormTypeOptions } from './utils/addItemsToFormSection';
4
+ import { Attribute, SchemaData } from './utils/getUsedAttributeNames';
5
+ import type { Internal } from '@strapi/types';
6
+ type ContentType = {
7
+ schema: {
8
+ singularName: string;
9
+ pluralName: string;
10
+ collectionName: string;
11
+ };
12
+ };
13
+ export type SchemaParams = {
14
+ schemaAttributes: any;
15
+ attributeType: keyof typeof attributeTypes;
16
+ customFieldValidator: any;
17
+ reservedNames: {
18
+ attributes: Array<string>;
19
+ };
20
+ schemaData: any;
21
+ ctbFormsAPI: any;
22
+ };
23
+ type Base<TAttributesFormType extends 'base' | 'advanced'> = {
24
+ data: any;
25
+ type: keyof (typeof attributesForm)[TAttributesFormType];
26
+ step: string;
27
+ attributes: any;
28
+ extensions: any;
29
+ forTarget: string;
30
+ };
31
+ export declare const forms: {
32
+ customField: {
33
+ schema({ schemaAttributes, attributeType, customFieldValidator, reservedNames, schemaData, ctbFormsAPI, }: SchemaParams): any;
34
+ form: {
35
+ base({ customField }: any): {
36
+ sections: FormTypeOptions;
37
+ };
38
+ advanced({ customField, data, step, extensions, ...rest }: any): {
39
+ sections: FormTypeOptions;
40
+ };
41
+ };
42
+ };
43
+ attribute: {
44
+ schema(currentSchema: any, attributeType: keyof typeof attributeTypes, reservedNames: {
45
+ attributes: Array<string>;
46
+ }, alreadyTakenTargetContentTypeAttributes: Array<Attribute>, options: SchemaData, extensions: {
47
+ makeValidator: any;
48
+ }): any;
49
+ form: {
50
+ advanced({ data, type, step, extensions, ...rest }: Base<'advanced'>): {
51
+ sections: any[];
52
+ };
53
+ base({ data, type, step, attributes }: Base<'base'>): {
54
+ sections: {
55
+ sectionTitle: null;
56
+ items: {
57
+ name: string;
58
+ type: string;
59
+ intlLabel: {
60
+ id: string;
61
+ defaultMessage: string;
62
+ };
63
+ }[];
64
+ }[];
65
+ };
66
+ };
67
+ };
68
+ contentType: {
69
+ schema(alreadyTakenNames: Array<string>, isEditing: boolean, ctUid: Internal.UID.ContentType, reservedNames: {
70
+ models: any;
71
+ }, extensions: any, contentTypes: Record<string, ContentType>): any;
72
+ form: {
73
+ base({ actionType }: any): {
74
+ sections: {
75
+ sectionTitle: null;
76
+ items: ({
77
+ name: string;
78
+ type: string;
79
+ intlLabel: {
80
+ id: string;
81
+ defaultMessage: string;
82
+ };
83
+ } | {
84
+ description: {
85
+ id: string;
86
+ defaultMessage: string;
87
+ };
88
+ intlLabel: {
89
+ id: string;
90
+ defaultMessage: string;
91
+ };
92
+ name: string;
93
+ type: string;
94
+ size?: undefined;
95
+ } | {
96
+ type: string;
97
+ size: number;
98
+ intlLabel: {
99
+ id: string;
100
+ defaultMessage: string;
101
+ };
102
+ name: string;
103
+ description?: undefined;
104
+ })[];
105
+ }[];
106
+ };
107
+ advanced({ extensions }: any): {
108
+ sections: {
109
+ items: any[];
110
+ }[];
111
+ };
112
+ };
113
+ };
114
+ component: {
115
+ schema(alreadyTakenAttributes: Array<Internal.UID.Component>, componentCategory: string, reservedNames: {
116
+ models: any;
117
+ }, isEditing: boolean | undefined, components: Record<string, any>, componentDisplayName: string, compoUid?: Internal.UID.Component | null): import("yup/lib/object").OptionalObjectSchema<{
118
+ displayName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
119
+ category: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
120
+ icon: import("yup").StringSchema<string | undefined, Record<string, any>, string | undefined>;
121
+ }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
122
+ displayName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
123
+ category: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
124
+ icon: import("yup").StringSchema<string | undefined, Record<string, any>, string | undefined>;
125
+ }>>;
126
+ form: {
127
+ advanced(): {
128
+ sections: unknown[];
129
+ };
130
+ base(): {
131
+ sections: ({
132
+ sectionTitle: null;
133
+ items: {
134
+ name: string;
135
+ type: string;
136
+ intlLabel: {
137
+ id: string;
138
+ defaultMessage: string;
139
+ };
140
+ }[];
141
+ } | {
142
+ sectionTitle: null;
143
+ items: {
144
+ name: string;
145
+ type: string;
146
+ size: number;
147
+ intlLabel: {
148
+ id: string;
149
+ defaultMessage: string;
150
+ };
151
+ }[];
152
+ })[];
153
+ };
154
+ };
155
+ };
156
+ addComponentToDynamicZone: {
157
+ form: {
158
+ advanced(): {
159
+ sections: unknown[];
160
+ };
161
+ base({ data }: any): {
162
+ sections: {
163
+ sectionTitle: null;
164
+ items: {
165
+ name: string;
166
+ type: string;
167
+ intlLabel: {
168
+ id: string;
169
+ defaultMessage: string;
170
+ };
171
+ }[];
172
+ }[];
173
+ };
174
+ };
175
+ };
176
+ editCategory: {
177
+ schema(allCategories: Array<any>, initialData: any): import("yup/lib/object").OptionalObjectSchema<{
178
+ name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
179
+ }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
180
+ name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
181
+ }>>;
182
+ form: {
183
+ advanced: () => {
184
+ sections: never[];
185
+ };
186
+ base(): {
187
+ sections: {
188
+ sectionTitle: null;
189
+ items: {
190
+ autoFocus: boolean;
191
+ name: string;
192
+ type: string;
193
+ intlLabel: {
194
+ id: string;
195
+ defaultMessage: string;
196
+ };
197
+ description: {
198
+ id: string;
199
+ defaultMessage: string;
200
+ };
201
+ }[];
202
+ }[];
203
+ };
204
+ };
205
+ };
206
+ };
207
+ export {};
@@ -0,0 +1,38 @@
1
+ type SectionTitle = {
2
+ id: string;
3
+ defaultMessage: string;
4
+ };
5
+ type Item = {
6
+ intlLabel: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ description?: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ name: string;
15
+ type: string;
16
+ value?: string;
17
+ options?: {
18
+ key: string;
19
+ value: string;
20
+ metadatas: {
21
+ intlLabel: {
22
+ id: string;
23
+ defaultMessage: string;
24
+ };
25
+ };
26
+ }[];
27
+ };
28
+ type FormTypeOption = {
29
+ sectionTitle: SectionTitle | null;
30
+ items: Item[];
31
+ };
32
+ export type FormTypeOptions = Array<FormTypeOption>;
33
+ /**
34
+ * @description
35
+ * Adds form options to the default section or as a new section
36
+ */
37
+ export declare const addItemsToFormSection: (formTypeOptions: FormTypeOptions | Item[], sections: FormTypeOptions) => void;
38
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const createComponentCollectionName: (name: string, category: string) => string;
2
+ export { createComponentCollectionName };
@@ -0,0 +1,11 @@
1
+ export type SchemaData = {
2
+ initialData: {
3
+ name: string;
4
+ targetAttribute: any;
5
+ };
6
+ modifiedData: object;
7
+ };
8
+ export type Attribute = {
9
+ name: string;
10
+ };
11
+ export declare const getUsedAttributeNames: (attributes: Array<Attribute>, schemaData: SchemaData) => Array<string>;
@@ -0,0 +1,4 @@
1
+ import type { AnyAction } from '@reduxjs/toolkit';
2
+ declare const initialState: any;
3
+ declare const reducer: (state: any, action: AnyAction) => (base?: ((draftState: any) => any) | undefined, ...args: unknown[]) => ((draftState: any) => any) | Promise<(draftState: any) => any>;
4
+ export { initialState, reducer };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Direct selector to the formModal state domain
3
+ */
4
+ declare const formModalDomain: () => (state: any) => any;
5
+ /**
6
+ * Other specific selectors
7
+ */
8
+ /**
9
+ * Default selector used by formModal
10
+ */
11
+ export declare const makeSelectFormModal: () => ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: any) => any, {
12
+ clearCache: () => void;
13
+ }> & {
14
+ clearCache: () => void;
15
+ };
16
+ export { formModalDomain };
@@ -0,0 +1,18 @@
1
+ import type { AttributeType } from '../../../types';
2
+ import type { Internal, Struct } from '@strapi/types';
3
+ export type EditableContentTypeSchema = {
4
+ kind: Struct.ContentTypeKind;
5
+ name: string;
6
+ attributes: AttributeType[];
7
+ };
8
+ export type EditableContentTypeData = {
9
+ contentType: {
10
+ uid: Internal.UID.ContentType;
11
+ schema: EditableContentTypeSchema;
12
+ };
13
+ };
14
+ type ModifiedData = {
15
+ kind: Struct.ContentTypeKind;
16
+ };
17
+ export declare const canEditContentType: (data: Record<string, any>, modifiedData: ModifiedData) => boolean;
18
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { Internal } from '@strapi/types';
2
+ declare const createUid: (name: string) => Internal.UID.ContentType;
3
+ declare const createComponentUid: (name: string, category: string) => Internal.UID.Component;
4
+ export { createComponentUid, createUid };
@@ -0,0 +1 @@
1
+ export declare const customFieldDefaultOptionsReducer: (acc: any, option: any) => any;
@@ -0,0 +1,3 @@
1
+ import type { IconByType } from '../../AttributeIcon';
2
+ import type { Internal } from '@strapi/types';
3
+ export declare const getAttributesToDisplay: (dataTarget: string | undefined, targetUid: Internal.UID.Schema, nestedComponents: Array<Internal.UID.Schema>) => IconByType[][];
@@ -0,0 +1 @@
1
+ export declare const getFormInputNames: (form: any) => any;
@@ -0,0 +1,4 @@
1
+ import type { Schema } from '@strapi/types';
2
+ declare const shouldPluralizeName: (nature: Schema.Attribute.RelationKind.Any) => 1 | 2;
3
+ declare const shouldPluralizeTargetAttribute: (nature: Schema.Attribute.RelationKind.Any) => 1 | 2;
4
+ export { shouldPluralizeName, shouldPluralizeTargetAttribute };
@@ -0,0 +1,42 @@
1
+ /**
2
+ *
3
+ * FormModalEndActions
4
+ *
5
+ */
6
+ import { SyntheticEvent } from 'react';
7
+ type FormModalEndActionsProps = {
8
+ categoryName?: string;
9
+ deleteCategory: (categoryName: string) => void;
10
+ deleteComponent: () => void;
11
+ deleteContentType: () => void;
12
+ isAttributeModal: boolean;
13
+ isCustomFieldModal: boolean;
14
+ isComponentAttribute: boolean;
15
+ isComponentModal: boolean;
16
+ isComponentToDzModal: boolean;
17
+ isContentTypeModal: boolean;
18
+ isCreatingComponent: boolean;
19
+ isCreatingComponentAttribute: boolean;
20
+ isCreatingComponentInDz: boolean;
21
+ isCreatingComponentWhileAddingAField: boolean;
22
+ isCreatingContentType: boolean;
23
+ isCreatingDz: boolean;
24
+ isDzAttribute: boolean;
25
+ isEditingAttribute: boolean;
26
+ isEditingCategory: boolean;
27
+ isInFirstComponentStep: boolean;
28
+ onSubmitAddComponentAttribute: (e: SyntheticEvent, shouldContinue: boolean) => void;
29
+ onSubmitAddComponentToDz: (e: SyntheticEvent, shouldContinue: boolean) => void;
30
+ onSubmitCreateContentType: (e: SyntheticEvent, shouldContinue: boolean) => void;
31
+ onSubmitCreateComponent: (e: SyntheticEvent, shouldContinue: boolean) => void;
32
+ onSubmitCreateDz: (e: SyntheticEvent, shouldContinue: boolean) => void;
33
+ onSubmitEditAttribute: (e: SyntheticEvent, shouldContinue: boolean) => void;
34
+ onSubmitEditCategory: (e: SyntheticEvent) => void;
35
+ onSubmitEditComponent: (e: SyntheticEvent, shouldContinue: boolean) => void;
36
+ onSubmitEditContentType: (e: SyntheticEvent, shouldContinue: boolean) => void;
37
+ onSubmitEditCustomFieldAttribute: (e: SyntheticEvent, shouldContinue: boolean) => void;
38
+ onSubmitEditDz: (e: SyntheticEvent, shouldContinue: boolean) => void;
39
+ onClickFinish: () => void;
40
+ };
41
+ export declare const FormModalEndActions: ({ categoryName, deleteCategory, deleteComponent, deleteContentType, isAttributeModal, isCustomFieldModal, isComponentAttribute, isComponentToDzModal, isContentTypeModal, isCreatingComponent, isCreatingComponentAttribute, isCreatingComponentInDz, isCreatingComponentWhileAddingAField, isCreatingContentType, isCreatingDz, isComponentModal, isDzAttribute, isEditingAttribute, isEditingCategory, isInFirstComponentStep, onSubmitAddComponentAttribute, onSubmitAddComponentToDz, onSubmitCreateContentType, onSubmitCreateComponent, onSubmitCreateDz, onSubmitEditAttribute, onSubmitEditCategory, onSubmitEditComponent, onSubmitEditContentType, onSubmitEditCustomFieldAttribute, onSubmitEditDz, onClickFinish, }: FormModalEndActionsProps) => import("react/jsx-runtime").JSX.Element | null;
42
+ export {};
@@ -0,0 +1,18 @@
1
+ import { IconByType } from './AttributeIcon';
2
+ import type { SchemaType } from '../types';
3
+ import type { Internal } from '@strapi/types';
4
+ interface FormModalHeaderProps {
5
+ actionType?: string | null;
6
+ attributeName: string;
7
+ attributeType: IconByType;
8
+ categoryName: string;
9
+ contentTypeKind: IconByType;
10
+ dynamicZoneTarget: string;
11
+ forTarget: SchemaType;
12
+ modalType: string | null;
13
+ targetUid: Internal.UID.Schema;
14
+ customFieldUid?: string | null;
15
+ showBackLink?: boolean;
16
+ }
17
+ export declare const FormModalHeader: ({ actionType, attributeName, attributeType, categoryName, contentTypeKind, dynamicZoneTarget, forTarget, modalType, targetUid, customFieldUid, showBackLink, }: FormModalHeaderProps) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ type FormModalNavigationProviderProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export type State = any;
6
+ export type ModalEventProps = {
7
+ attributeType?: string;
8
+ customFieldUid?: string;
9
+ dynamicZoneTarget?: string;
10
+ forTarget?: string;
11
+ targetUid?: string;
12
+ attributeName?: string;
13
+ step?: string | null;
14
+ kind?: string;
15
+ categoryName?: string;
16
+ modalType?: string;
17
+ actionType?: string;
18
+ isOpen?: boolean;
19
+ showBackLink?: boolean;
20
+ };
21
+ export declare const FormModalNavigationProvider: ({ children }: FormModalNavigationProviderProps) => import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,16 @@
1
+ declare const INITIAL_STATE_DATA: {
2
+ actionType: null;
3
+ attributeName: null;
4
+ attributeType: null;
5
+ categoryName: null;
6
+ dynamicZoneTarget: null;
7
+ forTarget: null;
8
+ modalType: null;
9
+ isOpen: boolean;
10
+ showBackLink: boolean;
11
+ kind: null;
12
+ step: null;
13
+ targetUid: null;
14
+ customFieldUid: null;
15
+ };
16
+ export { INITIAL_STATE_DATA };
@@ -0,0 +1,22 @@
1
+ import { StrapiAppContextValue } from '@strapi/admin/strapi-admin';
2
+ import type { SchemaType } from '../types';
3
+ type ModalTitleProps = {
4
+ forTarget?: SchemaType;
5
+ step?: string;
6
+ kind?: string;
7
+ modalType?: string;
8
+ actionType?: string;
9
+ };
10
+ export declare const getModalTitleSubHeader: ({ modalType, forTarget, kind, actionType, step, }: ModalTitleProps) => string;
11
+ type FormModalSubHeaderProps = {
12
+ actionType: string;
13
+ modalType: string;
14
+ forTarget: SchemaType;
15
+ kind?: string;
16
+ step?: string;
17
+ attributeType: string;
18
+ attributeName: string;
19
+ customField?: ReturnType<StrapiAppContextValue['customFields']['get']>;
20
+ };
21
+ export declare const FormModalSubHeader: ({ actionType, modalType, forTarget, kind, step, attributeType, attributeName, customField, }: FormModalSubHeaderProps) => import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,57 @@
1
+ /**
2
+ * TODO: we should be using the FormRenderer from the admin to do this,
3
+ * but the CTB has no tests or types, so we can't refactor it safely.
4
+ * So we're just adding this to the tech debt.
5
+ */
6
+ import * as React from 'react';
7
+ import { type MessageDescriptor, type PrimitiveType } from 'react-intl';
8
+ import type { Schema } from '@strapi/types';
9
+ interface TranslationMessage extends MessageDescriptor {
10
+ values?: Record<string, PrimitiveType>;
11
+ }
12
+ interface InputOption {
13
+ metadatas: {
14
+ intlLabel: TranslationMessage;
15
+ disabled: boolean;
16
+ hidden: boolean;
17
+ };
18
+ key: string;
19
+ value: string;
20
+ }
21
+ interface CustomInputProps<TAttribute extends Schema.Attribute.AnyAttribute> extends Omit<GenericInputProps<TAttribute>, 'customInputs'> {
22
+ ref?: React.Ref<HTMLElement>;
23
+ hint?: string | React.JSX.Element | (string | React.JSX.Element)[];
24
+ }
25
+ interface GenericInputProps<TAttribute extends Schema.Attribute.AnyAttribute = Schema.Attribute.AnyAttribute> {
26
+ attribute?: TAttribute;
27
+ autoComplete?: string;
28
+ customInputs?: Record<string, React.ComponentType<CustomInputProps<TAttribute>>>;
29
+ description?: TranslationMessage;
30
+ disabled?: boolean;
31
+ error?: string | TranslationMessage;
32
+ intlLabel: TranslationMessage;
33
+ labelAction?: React.ReactNode;
34
+ name: string;
35
+ onChange: (payload: {
36
+ target: {
37
+ name: string;
38
+ value: Schema.Attribute.Value<TAttribute>;
39
+ type?: string;
40
+ };
41
+ }, shouldSetInitialValue?: boolean) => void;
42
+ options?: InputOption[];
43
+ placeholder?: TranslationMessage;
44
+ required?: boolean;
45
+ step?: number;
46
+ type: string;
47
+ value?: Schema.Attribute.Value<TAttribute>;
48
+ isNullable?: boolean;
49
+ }
50
+ /**
51
+ * we've memoized this component because we use a context to store all the data in our form in the content-manager.
52
+ * This then causes _every_ component to re-render because there are no selects incurring performance issues
53
+ * in content-types as the content-type gets more complicated.
54
+ */
55
+ declare const MemoizedGenericInput: React.MemoExoticComponent<({ autoComplete, customInputs, description, disabled, intlLabel, labelAction, error, name, onChange, options, placeholder, required, step, type, value: defaultValue, isNullable, attribute, ...rest }: GenericInputProps) => import("react/jsx-runtime").JSX.Element>;
56
+ export type { GenericInputProps, CustomInputProps };
57
+ export { MemoizedGenericInput as GenericInput };
@@ -0,0 +1,13 @@
1
+ import type { IntlLabel } from '../../types';
2
+ export interface IconPickerProps {
3
+ intlLabel: IntlLabel;
4
+ name: string;
5
+ onChange: (value: {
6
+ target: {
7
+ name: string;
8
+ value: string;
9
+ };
10
+ }) => void;
11
+ value?: string;
12
+ }
13
+ export declare const IconPicker: ({ intlLabel, name, onChange, value }: IconPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import * as Icons from '@strapi/icons';
2
+ import * as Symbols from '@strapi/icons/symbols';
3
+ export type Icon = (typeof Icons)[keyof typeof Icons] | (typeof Symbols)[keyof typeof Symbols];
4
+ declare const COMPONENT_ICONS: Record<string, Icon>;
5
+ export { COMPONENT_ICONS };
@@ -0,0 +1 @@
1
+ export * from './IconPicker';
@@ -0,0 +1,18 @@
1
+ import { ComponentType } from 'react';
2
+ import type { SchemaType } from '../types';
3
+ import type { Internal } from '@strapi/types';
4
+ interface ListProps {
5
+ addComponentToDZ?: () => void;
6
+ customRowComponent: ComponentType<any>;
7
+ editTarget: SchemaType;
8
+ firstLoopComponentUid?: string;
9
+ isFromDynamicZone?: boolean;
10
+ isNestedInDZComponent?: boolean;
11
+ isMain?: boolean;
12
+ items: any[];
13
+ secondLoopComponentUid?: string | null;
14
+ targetUid?: Internal.UID.Schema;
15
+ isSub?: boolean;
16
+ }
17
+ export declare const List: ({ addComponentToDZ, customRowComponent, editTarget, firstLoopComponentUid, isFromDynamicZone, isMain, isNestedInDZComponent, isSub, items, secondLoopComponentUid, targetUid, }: ListProps) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { IconByType } from './AttributeIcon';
3
+ export declare const BoxWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").BoxProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
4
+ ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
5
+ }, never>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: import("react").PropsWithoutRef<import("@strapi/design-system").BoxProps<C>> & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
6
+ type ListRowProps = {
7
+ configurable?: boolean;
8
+ customField?: string | null;
9
+ editTarget: string;
10
+ firstLoopComponentUid?: string | null;
11
+ isFromDynamicZone?: boolean;
12
+ name: string;
13
+ onClick: (editTarget: string, targetUid: string | null, attributeName: string, attributeType: string, customField: string | null) => void;
14
+ relation?: string;
15
+ repeatable?: boolean;
16
+ secondLoopComponentUid?: string | null;
17
+ target?: string | null;
18
+ targetUid?: string | null;
19
+ type: IconByType;
20
+ };
21
+ export declare const ListRow: import("react").MemoExoticComponent<({ configurable, customField, editTarget, firstLoopComponentUid, isFromDynamicZone, name, onClick, relation, repeatable, secondLoopComponentUid, target, targetUid, type, }: ListRowProps) => import("react/jsx-runtime").JSX.Element>;
22
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from 'react';
2
+ interface NestedTFooterProps {
3
+ color: string;
4
+ children: ReactNode;
5
+ icon: ReactNode;
6
+ onClick?: () => void;
7
+ }
8
+ export declare const NestedTFooter: ({ children, icon, color, ...props }: NestedTFooterProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};