@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.
- package/README.md +1 -1
- package/dist/_chunks/ListView-BuXQ605A.js +959 -0
- package/dist/_chunks/ListView-BuXQ605A.js.map +1 -0
- package/dist/_chunks/ListView-C4hI-wBm.mjs +954 -0
- package/dist/_chunks/ListView-C4hI-wBm.mjs.map +1 -0
- package/dist/_chunks/ar-BYDB75EB.mjs +51 -0
- package/dist/_chunks/ar-BYDB75EB.mjs.map +1 -0
- package/dist/_chunks/ar-OCxhAFUy.js +51 -0
- package/dist/_chunks/ar-OCxhAFUy.js.map +1 -0
- package/dist/_chunks/cs-ChL4LaFY.mjs +139 -0
- package/dist/_chunks/cs-ChL4LaFY.mjs.map +1 -0
- package/dist/_chunks/cs-Ci3js5EC.js +139 -0
- package/dist/_chunks/cs-Ci3js5EC.js.map +1 -0
- package/dist/_chunks/de-DnlblIOh.js +193 -0
- package/dist/_chunks/de-DnlblIOh.js.map +1 -0
- package/dist/_chunks/de-DsHQNzp2.mjs +193 -0
- package/dist/_chunks/de-DsHQNzp2.mjs.map +1 -0
- package/dist/_chunks/dk-BC7NAQR2.mjs +183 -0
- package/dist/_chunks/dk-BC7NAQR2.mjs.map +1 -0
- package/dist/_chunks/dk-D3XnOjYz.js +183 -0
- package/dist/_chunks/dk-D3XnOjYz.js.map +1 -0
- package/dist/_chunks/en-BbczxQBr.mjs +216 -0
- package/dist/_chunks/en-BbczxQBr.mjs.map +1 -0
- package/dist/_chunks/en-BnToboMV.js +216 -0
- package/dist/_chunks/en-BnToboMV.js.map +1 -0
- package/dist/_chunks/es-BE_zx2_w.mjs +183 -0
- package/dist/_chunks/es-BE_zx2_w.mjs.map +1 -0
- package/dist/_chunks/es-DL8lez9W.js +183 -0
- package/dist/_chunks/es-DL8lez9W.js.map +1 -0
- package/dist/_chunks/fr-DnTxugIo.js +75 -0
- package/dist/_chunks/fr-DnTxugIo.js.map +1 -0
- package/dist/_chunks/fr-lU_OMJma.mjs +75 -0
- package/dist/_chunks/fr-lU_OMJma.mjs.map +1 -0
- package/dist/_chunks/id-DYuTgqcc.js +166 -0
- package/dist/_chunks/id-DYuTgqcc.js.map +1 -0
- package/dist/_chunks/id-W1sKBFEw.mjs +166 -0
- package/dist/_chunks/id-W1sKBFEw.mjs.map +1 -0
- package/dist/_chunks/index-2ofTO2HM.js +6738 -0
- package/dist/_chunks/index-2ofTO2HM.js.map +1 -0
- package/dist/_chunks/index-CH93OgkC.js +1209 -0
- package/dist/_chunks/index-CH93OgkC.js.map +1 -0
- package/dist/_chunks/index-CPBF498m.mjs +6701 -0
- package/dist/_chunks/index-CPBF498m.mjs.map +1 -0
- package/dist/_chunks/index-DmqlavBo.mjs +1183 -0
- package/dist/_chunks/index-DmqlavBo.mjs.map +1 -0
- package/dist/_chunks/it-D04lb2Wc.mjs +167 -0
- package/dist/_chunks/it-D04lb2Wc.mjs.map +1 -0
- package/dist/_chunks/it-DS4sM3km.js +167 -0
- package/dist/_chunks/it-DS4sM3km.js.map +1 -0
- package/dist/_chunks/ja-BHLK_2_g.mjs +50 -0
- package/dist/_chunks/ja-BHLK_2_g.mjs.map +1 -0
- package/dist/_chunks/ja-BjouJgZf.js +50 -0
- package/dist/_chunks/ja-BjouJgZf.js.map +1 -0
- package/dist/_chunks/ko-D_71Pdfn.js +183 -0
- package/dist/_chunks/ko-D_71Pdfn.js.map +1 -0
- package/dist/_chunks/ko-DoNsXHXA.mjs +183 -0
- package/dist/_chunks/ko-DoNsXHXA.mjs.map +1 -0
- package/dist/_chunks/ms-BtGFDB9t.mjs +163 -0
- package/dist/_chunks/ms-BtGFDB9t.mjs.map +1 -0
- package/dist/_chunks/ms-Re1pSHmx.js +163 -0
- package/dist/_chunks/ms-Re1pSHmx.js.map +1 -0
- package/dist/_chunks/nl-BaTAuelQ.mjs +156 -0
- package/dist/_chunks/nl-BaTAuelQ.mjs.map +1 -0
- package/dist/_chunks/nl-DQjrDEw0.js +156 -0
- package/dist/_chunks/nl-DQjrDEw0.js.map +1 -0
- package/dist/_chunks/pl-BGwXgwH7.js +193 -0
- package/dist/_chunks/pl-BGwXgwH7.js.map +1 -0
- package/dist/_chunks/pl-CP2Zgp01.mjs +193 -0
- package/dist/_chunks/pl-CP2Zgp01.mjs.map +1 -0
- package/dist/_chunks/pt-BR-CCQGwXs0.mjs +193 -0
- package/dist/_chunks/pt-BR-CCQGwXs0.mjs.map +1 -0
- package/dist/_chunks/pt-BR-DPd5nRnl.js +193 -0
- package/dist/_chunks/pt-BR-DPd5nRnl.js.map +1 -0
- package/dist/_chunks/pt-CJoUDTHQ.js +51 -0
- package/dist/_chunks/pt-CJoUDTHQ.js.map +1 -0
- package/dist/_chunks/pt-DMeTMW2x.mjs +51 -0
- package/dist/_chunks/pt-DMeTMW2x.mjs.map +1 -0
- package/dist/_chunks/ru-C8A_4j0w.js +168 -0
- package/dist/_chunks/ru-C8A_4j0w.js.map +1 -0
- package/dist/_chunks/ru-DGSjru5m.mjs +168 -0
- package/dist/_chunks/ru-DGSjru5m.mjs.map +1 -0
- package/dist/_chunks/sk-DVK4HfSC.mjs +167 -0
- package/dist/_chunks/sk-DVK4HfSC.mjs.map +1 -0
- package/dist/_chunks/sk-raWRcmPT.js +167 -0
- package/dist/_chunks/sk-raWRcmPT.js.map +1 -0
- package/dist/_chunks/sv-BGb12eW3.mjs +202 -0
- package/dist/_chunks/sv-BGb12eW3.mjs.map +1 -0
- package/dist/_chunks/sv-BNN71SFE.js +202 -0
- package/dist/_chunks/sv-BNN71SFE.js.map +1 -0
- package/dist/_chunks/th--u3VqsON.mjs +164 -0
- package/dist/_chunks/th--u3VqsON.mjs.map +1 -0
- package/dist/_chunks/th-C83Bb_kR.js +164 -0
- package/dist/_chunks/th-C83Bb_kR.js.map +1 -0
- package/dist/_chunks/tr-BW20CfcO.js +179 -0
- package/dist/_chunks/tr-BW20CfcO.js.map +1 -0
- package/dist/_chunks/tr-DsUerr-c.mjs +179 -0
- package/dist/_chunks/tr-DsUerr-c.mjs.map +1 -0
- package/dist/_chunks/uk-Bx5IlOKX.mjs +164 -0
- package/dist/_chunks/uk-Bx5IlOKX.mjs.map +1 -0
- package/dist/_chunks/uk-VwB0oiuV.js +164 -0
- package/dist/_chunks/uk-VwB0oiuV.js.map +1 -0
- package/dist/_chunks/zh-BiOCwPJu.js +202 -0
- package/dist/_chunks/zh-BiOCwPJu.js.map +1 -0
- package/dist/_chunks/zh-CsUDN13W.mjs +202 -0
- package/dist/_chunks/zh-CsUDN13W.mjs.map +1 -0
- package/dist/_chunks/zh-Hans-CLTLm_nt.js +147 -0
- package/dist/_chunks/zh-Hans-CLTLm_nt.js.map +1 -0
- package/dist/_chunks/zh-Hans-Cc0M5PXr.mjs +147 -0
- package/dist/_chunks/zh-Hans-Cc0M5PXr.mjs.map +1 -0
- package/dist/admin/index.js +5 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +6 -0
- package/dist/admin/index.mjs.map +1 -0
- package/dist/admin/src/components/AllowedTypesSelect.d.ts +9 -0
- package/dist/admin/src/components/AttributeIcon.d.ts +9 -0
- package/dist/admin/src/components/AttributeOptions/AttributeList.d.ts +6 -0
- package/dist/admin/src/components/AttributeOptions/AttributeOption.d.ts +11 -0
- package/dist/admin/src/components/AttributeOptions/AttributeOptions.d.ts +13 -0
- package/dist/admin/src/components/AttributeOptions/CustomFieldOption.d.ts +22 -0
- package/dist/admin/src/components/AttributeOptions/CustomFieldsList.d.ts +1 -0
- package/dist/admin/src/components/AttributeOptions/EmptyAttributes.d.ts +2 -0
- package/dist/admin/src/components/AttributeOptions/OptionBoxWrapper.d.ts +4 -0
- package/dist/admin/src/components/AutoReloadOverlayBlocker.d.ts +25 -0
- package/dist/admin/src/components/BooleanDefaultValueSelect.d.ts +20 -0
- package/dist/admin/src/components/BooleanRadioGroup.d.ts +8 -0
- package/dist/admin/src/components/BoxWrapper.d.ts +4 -0
- package/dist/admin/src/components/CheckboxWithNumberField.d.ts +11 -0
- package/dist/admin/src/components/ComponentCard/ComponentCard.d.ts +10 -0
- package/dist/admin/src/components/ComponentCard/ComponentIcon/ComponentIcon.d.ts +7 -0
- package/dist/admin/src/components/ComponentCard/ComponentIcon/index.d.ts +1 -0
- package/dist/admin/src/components/ComponentCard/index.d.ts +1 -0
- package/dist/admin/src/components/ComponentList.d.ts +10 -0
- package/dist/admin/src/components/ContentTypeBuilderNav/ContentTypeBuilderNav.d.ts +1 -0
- package/dist/admin/src/components/ContentTypeBuilderNav/useContentTypeBuilderMenu.d.ts +18 -0
- package/dist/admin/src/components/ContentTypeRadioGroup.d.ts +15 -0
- package/dist/admin/src/components/CustomRadioGroup/CustomRadioGroup.d.ts +15 -0
- package/dist/admin/src/components/CustomRadioGroup/Styles.d.ts +5 -0
- package/dist/admin/src/components/CustomRadioGroup/index.d.ts +1 -0
- package/dist/admin/src/components/DataManagerProvider/DataManagerProvider.d.ts +6 -0
- package/dist/admin/src/components/DataManagerProvider/constants.d.ts +17 -0
- package/dist/admin/src/components/DataManagerProvider/reducer.d.ts +12 -0
- package/dist/admin/src/components/DataManagerProvider/selectors.d.ts +17 -0
- package/dist/admin/src/components/DataManagerProvider/utils/cleanData.d.ts +23 -0
- package/dist/admin/src/components/DataManagerProvider/utils/createDataObject.d.ts +2 -0
- package/dist/admin/src/components/DataManagerProvider/utils/createModifiedDataSchema.d.ts +6 -0
- package/dist/admin/src/components/DataManagerProvider/utils/formatSchemas.d.ts +6 -0
- package/dist/admin/src/components/DataManagerProvider/utils/retrieveComponentsFromSchema.d.ts +4 -0
- package/dist/admin/src/components/DataManagerProvider/utils/retrieveComponentsThatHaveComponents.d.ts +4 -0
- package/dist/admin/src/components/DataManagerProvider/utils/retrieveNestedComponents.d.ts +1 -0
- package/dist/admin/src/components/DataManagerProvider/utils/retrieveSpecificInfoFromComponents.d.ts +1 -0
- package/dist/admin/src/components/DataManagerProvider/utils/serverRestartWatcher.d.ts +6 -0
- package/dist/admin/src/components/DataManagerProvider/utils/validateSchema.d.ts +1 -0
- package/dist/admin/src/components/DisplayedType.d.ts +7 -0
- package/dist/admin/src/components/DraftAndPublishToggle.d.ts +27 -0
- package/dist/admin/src/components/DynamicZoneList.d.ts +10 -0
- package/dist/admin/src/components/FormModal/FormModal.d.ts +1 -0
- package/dist/admin/src/components/FormModal/attributes/advancedForm.d.ts +416 -0
- package/dist/admin/src/components/FormModal/attributes/attributeOptions.d.ts +90 -0
- package/dist/admin/src/components/FormModal/attributes/baseForm.d.ts +376 -0
- package/dist/admin/src/components/FormModal/attributes/commonBaseForm.d.ts +17 -0
- package/dist/admin/src/components/FormModal/attributes/form.d.ts +792 -0
- package/dist/admin/src/components/FormModal/attributes/nameField.d.ts +12 -0
- package/dist/admin/src/components/FormModal/attributes/types.d.ts +325 -0
- package/dist/admin/src/components/FormModal/attributes/validation/common.d.ts +29 -0
- package/dist/admin/src/components/FormModal/category/createCategorySchema.d.ts +5 -0
- package/dist/admin/src/components/FormModal/category/form.d.ts +20 -0
- package/dist/admin/src/components/FormModal/category/regex.d.ts +1 -0
- package/dist/admin/src/components/FormModal/component/componentField.d.ts +20 -0
- package/dist/admin/src/components/FormModal/component/componentForm.d.ts +25 -0
- package/dist/admin/src/components/FormModal/component/createComponentSchema.d.ts +10 -0
- package/dist/admin/src/components/FormModal/constants.d.ts +12 -0
- package/dist/admin/src/components/FormModal/contentType/contentTypeForm.d.ts +116 -0
- package/dist/admin/src/components/FormModal/contentType/createContentTypeSchema.d.ts +24 -0
- package/dist/admin/src/components/FormModal/dynamiczoneForm.d.ts +68 -0
- package/dist/admin/src/components/FormModal/forms/forms.d.ts +207 -0
- package/dist/admin/src/components/FormModal/forms/utils/addItemsToFormSection.d.ts +38 -0
- package/dist/admin/src/components/FormModal/forms/utils/createCollectionName.d.ts +2 -0
- package/dist/admin/src/components/FormModal/forms/utils/getUsedAttributeNames.d.ts +11 -0
- package/dist/admin/src/components/FormModal/reducer.d.ts +4 -0
- package/dist/admin/src/components/FormModal/selectors.d.ts +16 -0
- package/dist/admin/src/components/FormModal/utils/canEditContentType.d.ts +18 -0
- package/dist/admin/src/components/FormModal/utils/createUid.d.ts +4 -0
- package/dist/admin/src/components/FormModal/utils/customFieldDefaultOptionsReducer.d.ts +1 -0
- package/dist/admin/src/components/FormModal/utils/getAttributesToDisplay.d.ts +3 -0
- package/dist/admin/src/components/FormModal/utils/getFormInputNames.d.ts +1 -0
- package/dist/admin/src/components/FormModal/utils/relations.d.ts +4 -0
- package/dist/admin/src/components/FormModalEndActions.d.ts +42 -0
- package/dist/admin/src/components/FormModalHeader.d.ts +18 -0
- package/dist/admin/src/components/FormModalNavigationProvider/FormModalNavigationProvider.d.ts +22 -0
- package/dist/admin/src/components/FormModalNavigationProvider/constants.d.ts +16 -0
- package/dist/admin/src/components/FormModalSubHeader.d.ts +22 -0
- package/dist/admin/src/components/GenericInputs.d.ts +57 -0
- package/dist/admin/src/components/IconPicker/IconPicker.d.ts +13 -0
- package/dist/admin/src/components/IconPicker/constants.d.ts +5 -0
- package/dist/admin/src/components/IconPicker/index.d.ts +1 -0
- package/dist/admin/src/components/List.d.ts +18 -0
- package/dist/admin/src/components/ListRow.d.ts +22 -0
- package/dist/admin/src/components/NestedFooter.d.ts +9 -0
- package/dist/admin/src/components/PluralName.d.ts +22 -0
- package/dist/admin/src/components/Relation/Relation.d.ts +9 -0
- package/dist/admin/src/components/Relation/RelationField/RelationField.d.ts +13 -0
- package/dist/admin/src/components/Relation/RelationField/RelationTargetPicker/RelationTargetPicker.d.ts +6 -0
- package/dist/admin/src/components/Relation/RelationNaturePicker/Components.d.ts +14 -0
- package/dist/admin/src/components/Relation/RelationNaturePicker/RelationNaturePicker.d.ts +8 -0
- package/dist/admin/src/components/SelectCategory.d.ts +19 -0
- package/dist/admin/src/components/SelectComponent.d.ts +19 -0
- package/dist/admin/src/components/SelectComponents.d.ts +19 -0
- package/dist/admin/src/components/SelectDateType.d.ts +38 -0
- package/dist/admin/src/components/SelectNumber.d.ts +42 -0
- package/dist/admin/src/components/SingularName.d.ts +17 -0
- package/dist/admin/src/components/TabForm.d.ts +9 -0
- package/dist/admin/src/components/TextareaEnum.d.ts +20 -0
- package/dist/admin/src/components/Tr.d.ts +5 -0
- package/dist/admin/src/components/UpperFirst.d.ts +3 -0
- package/dist/admin/src/constants.d.ts +6 -0
- package/dist/admin/src/contexts/DataManagerContext.d.ts +41 -0
- package/dist/admin/src/contexts/FormModalNavigationContext.d.ts +38 -0
- package/dist/admin/src/hooks/useDataManager.d.ts +1 -0
- package/dist/admin/src/hooks/useFormModalNavigation.d.ts +1 -0
- package/dist/admin/src/icons/Curve.d.ts +5 -0
- package/dist/admin/src/index.d.ts +16 -0
- package/dist/admin/src/pages/App/index.d.ts +2 -0
- package/dist/admin/src/pages/ListView/LinkToCMSettingsView.d.ts +10 -0
- package/dist/admin/src/pages/ListView/ListView.d.ts +2 -0
- package/dist/admin/src/pages/RecursivePath/RecursivePath.d.ts +1 -0
- package/dist/admin/src/pluginId.d.ts +1 -0
- package/dist/admin/src/reducers.d.ts +3 -0
- package/dist/admin/src/types.d.ts +57 -0
- package/dist/admin/src/utils/findAttribute.d.ts +2 -0
- package/dist/admin/src/utils/formAPI.d.ts +1 -0
- package/dist/admin/src/utils/getAttributeDisplayedType.d.ts +1 -0
- package/dist/admin/src/utils/getRelationType.d.ts +6 -0
- package/dist/admin/src/utils/getTrad.d.ts +1 -0
- package/dist/admin/src/utils/getYupInnerErrors.d.ts +7 -0
- package/dist/admin/src/utils/index.d.ts +2 -0
- package/dist/admin/src/utils/isAllowedContentTypesForRelations.d.ts +2 -0
- package/dist/admin/src/utils/makeUnique.d.ts +2 -0
- package/dist/admin/src/utils/nameToSlug.d.ts +1 -0
- package/dist/admin/src/utils/prefixPluginTranslations.d.ts +3 -0
- package/dist/admin/src/utils/startsWithANumber.d.ts +1 -0
- package/dist/admin/src/utils/toRegressedEnumValue.d.ts +1 -0
- package/dist/server/index.js +2312 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +2291 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/src/bootstrap.d.ts +6 -0
- package/dist/server/src/bootstrap.d.ts.map +1 -0
- package/dist/server/src/config.d.ts +6 -0
- package/dist/server/src/config.d.ts.map +1 -0
- package/dist/server/src/controllers/builder.d.ts +6 -0
- package/dist/server/src/controllers/builder.d.ts.map +1 -0
- package/dist/server/src/controllers/component-categories.d.ts +7 -0
- package/dist/server/src/controllers/component-categories.d.ts.map +1 -0
- package/dist/server/src/controllers/components.d.ts +38 -0
- package/dist/server/src/controllers/components.d.ts.map +1 -0
- package/dist/server/src/controllers/content-types.d.ts +10 -0
- package/dist/server/src/controllers/content-types.d.ts.map +1 -0
- package/dist/server/src/controllers/index.d.ts +25 -0
- package/dist/server/src/controllers/index.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/common.d.ts +25 -0
- package/dist/server/src/controllers/validation/common.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/component-category.d.ts +5 -0
- package/dist/server/src/controllers/validation/component-category.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/component.d.ts +25 -0
- package/dist/server/src/controllers/validation/component.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/content-type.d.ts +36 -0
- package/dist/server/src/controllers/validation/content-type.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/data-transform.d.ts +4 -0
- package/dist/server/src/controllers/validation/data-transform.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/model-schema.d.ts +12 -0
- package/dist/server/src/controllers/validation/model-schema.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/relations.d.ts +16 -0
- package/dist/server/src/controllers/validation/relations.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/types.d.ts +9 -0
- package/dist/server/src/controllers/validation/types.d.ts.map +1 -0
- package/dist/server/src/index.d.ts +68 -0
- package/dist/server/src/index.d.ts.map +1 -0
- package/dist/server/src/routes/admin.d.ts +18 -0
- package/dist/server/src/routes/admin.d.ts.map +1 -0
- package/dist/server/src/routes/content-api.d.ts +10 -0
- package/dist/server/src/routes/content-api.d.ts.map +1 -0
- package/dist/server/src/routes/index.d.ts +28 -0
- package/dist/server/src/routes/index.d.ts.map +1 -0
- package/dist/server/src/services/api-handler.d.ts +15 -0
- package/dist/server/src/services/api-handler.d.ts.map +1 -0
- package/dist/server/src/services/builder.d.ts +5 -0
- package/dist/server/src/services/builder.d.ts.map +1 -0
- package/dist/server/src/services/component-categories.d.ts +13 -0
- package/dist/server/src/services/component-categories.d.ts.map +1 -0
- package/dist/server/src/services/components.d.ts +54 -0
- package/dist/server/src/services/components.d.ts.map +1 -0
- package/dist/server/src/services/constants.d.ts +19 -0
- package/dist/server/src/services/constants.d.ts.map +1 -0
- package/dist/server/src/services/content-types.d.ts +60 -0
- package/dist/server/src/services/content-types.d.ts.map +1 -0
- package/dist/server/src/services/index.d.ts +14 -0
- package/dist/server/src/services/index.d.ts.map +1 -0
- package/dist/server/src/services/schema-builder/component-builder.d.ts +39 -0
- package/dist/server/src/services/schema-builder/component-builder.d.ts.map +1 -0
- package/dist/server/src/services/schema-builder/content-type-builder.d.ts +38 -0
- package/dist/server/src/services/schema-builder/content-type-builder.d.ts.map +1 -0
- package/dist/server/src/services/schema-builder/index.d.ts +78 -0
- package/dist/server/src/services/schema-builder/index.d.ts.map +1 -0
- package/dist/server/src/services/schema-builder/schema-handler.d.ts +36 -0
- package/dist/server/src/services/schema-builder/schema-handler.d.ts.map +1 -0
- package/dist/server/src/utils/attributes.d.ts +192 -0
- package/dist/server/src/utils/attributes.d.ts.map +1 -0
- package/dist/server/src/utils/helpers.d.ts +3 -0
- package/dist/server/src/utils/helpers.d.ts.map +1 -0
- package/dist/server/src/utils/index.d.ts +15 -0
- package/dist/server/src/utils/index.d.ts.map +1 -0
- package/dist/server/src/utils/typeguards.d.ts +3 -0
- package/dist/server/src/utils/typeguards.d.ts.map +1 -0
- package/package.json +91 -3
- package/strapi-server.js +3 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IntlLabel } from '../types';
|
|
2
|
+
interface Description {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
values?: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
interface PluralNameProps {
|
|
8
|
+
description?: Description;
|
|
9
|
+
error?: string;
|
|
10
|
+
intlLabel: IntlLabel;
|
|
11
|
+
modifiedData: Record<string, any>;
|
|
12
|
+
name: string;
|
|
13
|
+
onChange: (value: {
|
|
14
|
+
target: {
|
|
15
|
+
name: string;
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
}) => void;
|
|
19
|
+
value?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const PluralName: ({ description, error, intlLabel, modifiedData, name, onChange, value, }: PluralNameProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface RelationProps {
|
|
2
|
+
formErrors: Record<string, any>;
|
|
3
|
+
mainBoxHeader: string;
|
|
4
|
+
modifiedData: Record<string, any>;
|
|
5
|
+
onChange: (value: any) => void;
|
|
6
|
+
naturePickerType: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Relation: ({ formErrors, mainBoxHeader, modifiedData, naturePickerType, onChange, }: RelationProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface RelationFormBoxProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
error?: Record<string, any>;
|
|
4
|
+
header?: string;
|
|
5
|
+
isMain?: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
onChange: (value: any) => void;
|
|
8
|
+
oneThatIsCreatingARelationWithAnother?: string;
|
|
9
|
+
target?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const RelationFormBox: ({ disabled, error, header, isMain, name, onChange, oneThatIsCreatingARelationWithAnother, target, value, }: RelationFormBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface RelationTargetPickerProps {
|
|
2
|
+
oneThatIsCreatingARelationWithAnother: string;
|
|
3
|
+
target: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const RelationTargetPicker: ({ oneThatIsCreatingARelationWithAnother, target, }: RelationTargetPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxComponent, FlexComponent } from '@strapi/design-system';
|
|
3
|
+
declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").BoxProps<"div">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
|
4
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
5
|
+
}, never>> & Omit<BoxComponent, keyof import("react").Component<any, {}, any>>;
|
|
6
|
+
declare const IconWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("@strapi/design-system").BoxProps<"button">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
|
7
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
$isSelected: boolean;
|
|
10
|
+
}>> & Omit<BoxComponent<"button">, keyof import("react").Component<any, {}, any>>;
|
|
11
|
+
declare const InfosWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
|
12
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
13
|
+
}, never>> & Omit<FlexComponent, keyof import("react").Component<any, {}, any>>;
|
|
14
|
+
export { IconWrapper, InfosWrapper, Wrapper };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface RelationNaturePickerProps {
|
|
2
|
+
naturePickerType: string;
|
|
3
|
+
oneThatIsCreatingARelationWithAnother: string;
|
|
4
|
+
relationType: string;
|
|
5
|
+
target: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const RelationNaturePicker: ({ naturePickerType, oneThatIsCreatingARelationWithAnother, relationType, target, }: RelationNaturePickerProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface SelectCategoryProps {
|
|
2
|
+
error?: string | null;
|
|
3
|
+
intlLabel: {
|
|
4
|
+
id: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
values?: Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
name: string;
|
|
9
|
+
onChange: (value: {
|
|
10
|
+
target: {
|
|
11
|
+
name: string;
|
|
12
|
+
value: any;
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
}) => void;
|
|
16
|
+
value?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const SelectCategory: ({ error, intlLabel, name, onChange, value, }: SelectCategoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface SelectComponentProps {
|
|
2
|
+
componentToCreate?: Record<string, any> | null;
|
|
3
|
+
error?: string | null;
|
|
4
|
+
intlLabel: {
|
|
5
|
+
id: string;
|
|
6
|
+
defaultMessage: string;
|
|
7
|
+
values?: Record<string, any>;
|
|
8
|
+
};
|
|
9
|
+
isAddingAComponentToAnotherComponent: boolean;
|
|
10
|
+
isCreating: boolean;
|
|
11
|
+
isCreatingComponentWhileAddingAField: boolean;
|
|
12
|
+
name: string;
|
|
13
|
+
onChange: (value: any) => void;
|
|
14
|
+
targetUid: string;
|
|
15
|
+
value: string;
|
|
16
|
+
forTarget: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const SelectComponent: ({ error, intlLabel, isAddingAComponentToAnotherComponent, isCreating, isCreatingComponentWhileAddingAField, componentToCreate, name, onChange, targetUid, forTarget, value, }: SelectComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type SelectComponentsProps = {
|
|
2
|
+
dynamicZoneTarget: string;
|
|
3
|
+
intlLabel: {
|
|
4
|
+
id: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
values?: object;
|
|
7
|
+
};
|
|
8
|
+
name: string;
|
|
9
|
+
onChange: (value: {
|
|
10
|
+
target: {
|
|
11
|
+
name: string;
|
|
12
|
+
value: string[];
|
|
13
|
+
type?: string;
|
|
14
|
+
};
|
|
15
|
+
}) => void;
|
|
16
|
+
value: string[];
|
|
17
|
+
};
|
|
18
|
+
export declare const SelectComponents: ({ dynamicZoneTarget, intlLabel, name, onChange, value, }: SelectComponentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PrimitiveType } from 'react-intl';
|
|
2
|
+
type SelectDateTypeProps = {
|
|
3
|
+
intlLabel: {
|
|
4
|
+
id: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
values?: object;
|
|
7
|
+
};
|
|
8
|
+
error?: string;
|
|
9
|
+
modifiedData: {
|
|
10
|
+
default: number;
|
|
11
|
+
max: number;
|
|
12
|
+
min: number;
|
|
13
|
+
};
|
|
14
|
+
name: string;
|
|
15
|
+
onChange: (value: {
|
|
16
|
+
target: {
|
|
17
|
+
name: string;
|
|
18
|
+
value: string | number | null;
|
|
19
|
+
type?: string;
|
|
20
|
+
};
|
|
21
|
+
}) => void;
|
|
22
|
+
options: Array<{
|
|
23
|
+
metadatas: {
|
|
24
|
+
intlLabel: {
|
|
25
|
+
id: string;
|
|
26
|
+
defaultMessage: string;
|
|
27
|
+
values: Record<string, PrimitiveType> | undefined;
|
|
28
|
+
};
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
hidden?: boolean;
|
|
31
|
+
};
|
|
32
|
+
key: string | number;
|
|
33
|
+
value: string | number;
|
|
34
|
+
}>;
|
|
35
|
+
value?: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const SelectDateType: ({ intlLabel, error, modifiedData, name, onChange, options, value, }: SelectDateTypeProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
type SelectNumberProps = {
|
|
2
|
+
intlLabel: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
values?: object;
|
|
6
|
+
};
|
|
7
|
+
error?: string;
|
|
8
|
+
modifiedData: {
|
|
9
|
+
default: number;
|
|
10
|
+
max: number;
|
|
11
|
+
min: number;
|
|
12
|
+
};
|
|
13
|
+
name: string;
|
|
14
|
+
onChange: (value: {
|
|
15
|
+
target: {
|
|
16
|
+
name: string;
|
|
17
|
+
value: string | number | null;
|
|
18
|
+
type?: string;
|
|
19
|
+
};
|
|
20
|
+
}) => void;
|
|
21
|
+
options: Array<{
|
|
22
|
+
metadatas: {
|
|
23
|
+
intlLabel: {
|
|
24
|
+
id: string;
|
|
25
|
+
defaultMessage: string;
|
|
26
|
+
};
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
hidden?: boolean;
|
|
29
|
+
};
|
|
30
|
+
key: string | number;
|
|
31
|
+
value: string | number;
|
|
32
|
+
}>;
|
|
33
|
+
value?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const SelectNumber: {
|
|
36
|
+
({ intlLabel, error, modifiedData, name, onChange, options, value, }: SelectNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
defaultProps: {
|
|
38
|
+
error: undefined;
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IntlLabel } from '../types';
|
|
2
|
+
interface SingularNameProps {
|
|
3
|
+
description?: IntlLabel | null;
|
|
4
|
+
error?: string | null;
|
|
5
|
+
intlLabel: IntlLabel;
|
|
6
|
+
modifiedData: Record<string, any>;
|
|
7
|
+
name: string;
|
|
8
|
+
onChange: (value: {
|
|
9
|
+
target: {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
}) => void;
|
|
14
|
+
value?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export declare const SingularName: ({ description, error, intlLabel, modifiedData, name, onChange, value, }: SingularNameProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface TabFormProps {
|
|
2
|
+
form: Array<Record<string, any>>;
|
|
3
|
+
formErrors: Record<string, any>;
|
|
4
|
+
genericInputProps: Record<string, any>;
|
|
5
|
+
modifiedData: Record<string, any>;
|
|
6
|
+
onChange: (value: any) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TabForm: ({ form, formErrors, genericInputProps, modifiedData, onChange, }: TabFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { IntlLabel } from '../types';
|
|
3
|
+
interface TextareaEnumProps {
|
|
4
|
+
description?: IntlLabel | null;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
error?: string;
|
|
7
|
+
intlLabel: IntlLabel;
|
|
8
|
+
labelAction?: ReactNode;
|
|
9
|
+
name: string;
|
|
10
|
+
onChange: (value: {
|
|
11
|
+
target: {
|
|
12
|
+
name: string;
|
|
13
|
+
value: string | string[];
|
|
14
|
+
};
|
|
15
|
+
}) => void;
|
|
16
|
+
placeholder?: IntlLabel | null;
|
|
17
|
+
value: string | string[] | undefined;
|
|
18
|
+
}
|
|
19
|
+
export declare const TextareaEnum: ({ description, disabled, error, intlLabel, labelAction, name, onChange, placeholder, value, }: TextareaEnumProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Tr: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {
|
|
3
|
+
$isFromDynamicZone?: boolean | undefined;
|
|
4
|
+
$isChildOfDynamicZone?: boolean | undefined;
|
|
5
|
+
}>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SchemaType, Component } from '../types';
|
|
3
|
+
import type { Internal } from '@strapi/types';
|
|
4
|
+
export interface CustomFieldAttributeParams {
|
|
5
|
+
attributeToSet: Record<string, any>;
|
|
6
|
+
forTarget: SchemaType;
|
|
7
|
+
targetUid: Internal.UID.Schema;
|
|
8
|
+
initialAttribute: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
export interface DataManagerContextValue {
|
|
11
|
+
addAttribute: (attributeToSet: Record<string, any>, forTarget: SchemaType, targetUid: Internal.UID.Schema, isEditing?: boolean, initialAttribute?: Record<string, any>, shouldAddComponentToData?: boolean) => void;
|
|
12
|
+
addCustomFieldAttribute: (params: CustomFieldAttributeParams) => void;
|
|
13
|
+
editCustomFieldAttribute: (params: CustomFieldAttributeParams) => void;
|
|
14
|
+
addCreatedComponentToDynamicZone: (dynamicZoneTarget: string, componentsToAdd: string[]) => void;
|
|
15
|
+
createSchema: (data: Record<string, any>, schemaType: SchemaType, uid: Internal.UID.Schema, componentCategory?: string, shouldAddComponentToData?: boolean) => void;
|
|
16
|
+
changeDynamicZoneComponents: (dynamicZoneTarget: string, newComponents: string[]) => void;
|
|
17
|
+
removeAttribute: (mainDataKey: string, attributeToRemoveName: string, componentUid?: string) => void;
|
|
18
|
+
deleteCategory: (categoryUid: string) => void;
|
|
19
|
+
deleteData: () => void;
|
|
20
|
+
editCategory: (categoryUid: string, body: any) => void;
|
|
21
|
+
removeComponentFromDynamicZone: (dzName: string, componentToRemoveIndex: number) => void;
|
|
22
|
+
setModifiedData: () => void;
|
|
23
|
+
sortedContentTypesList: any[];
|
|
24
|
+
submitData: (additionalContentTypeData?: Record<string, any>) => Promise<void>;
|
|
25
|
+
updateSchema: (data: Record<string, any>, schemaType: SchemaType, componentUID: Internal.UID.Component) => void;
|
|
26
|
+
components: Record<Internal.UID.Component, Component>;
|
|
27
|
+
componentsGroupedByCategory: Record<string, Component[]>;
|
|
28
|
+
componentsThatHaveOtherComponentInTheirAttributes: any[];
|
|
29
|
+
contentTypes: Record<string, any>;
|
|
30
|
+
initialData: Record<string, any>;
|
|
31
|
+
isInContentTypeView: boolean;
|
|
32
|
+
isInDevelopmentMode?: boolean;
|
|
33
|
+
modifiedData: Record<string, any>;
|
|
34
|
+
nestedComponents: any[];
|
|
35
|
+
reservedNames: {
|
|
36
|
+
models: string[];
|
|
37
|
+
attributes: string[];
|
|
38
|
+
};
|
|
39
|
+
allComponentsCategories: any[];
|
|
40
|
+
}
|
|
41
|
+
export declare const DataManagerContext: import("react").Context<DataManagerContextValue>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { INITIAL_STATE_DATA } from '../components/FormModalNavigationProvider/constants';
|
|
3
|
+
import type { ModalEventProps, State } from '../components/FormModalNavigationProvider/FormModalNavigationProvider';
|
|
4
|
+
import type { SchemaType } from '../types';
|
|
5
|
+
import type { Internal } from '@strapi/types';
|
|
6
|
+
export interface FormModalNavigationContextValue {
|
|
7
|
+
onCloseModal: () => void;
|
|
8
|
+
onOpenModalAddField: (options: {
|
|
9
|
+
forTarget: SchemaType;
|
|
10
|
+
targetUid?: Internal.UID.Schema;
|
|
11
|
+
}) => void;
|
|
12
|
+
onClickSelectField: (option: ModalEventProps) => void;
|
|
13
|
+
onClickSelectCustomField: (option: ModalEventProps) => void;
|
|
14
|
+
onNavigateToChooseAttributeModal: (options: ModalEventProps) => void;
|
|
15
|
+
onNavigateToAddCompoToDZModal: (options: ModalEventProps) => void;
|
|
16
|
+
onOpenModalAddComponentsToDZ: (options: ModalEventProps) => void;
|
|
17
|
+
onNavigateToCreateComponentStep2: () => void;
|
|
18
|
+
onOpenModalCreateSchema: (options: State) => void;
|
|
19
|
+
onOpenModalEditCategory: (categoryName: string) => void;
|
|
20
|
+
onOpenModalEditField: (options: ModalEventProps) => void;
|
|
21
|
+
onOpenModalEditCustomField: (options: ModalEventProps) => void;
|
|
22
|
+
onOpenModalEditSchema: (options: ModalEventProps) => void;
|
|
23
|
+
setFormModalNavigationState: (value: React.SetStateAction<typeof INITIAL_STATE_DATA>) => void;
|
|
24
|
+
actionType: string;
|
|
25
|
+
attributeName: string;
|
|
26
|
+
attributeType: string;
|
|
27
|
+
customFieldUid: string;
|
|
28
|
+
categoryName: string;
|
|
29
|
+
dynamicZoneTarget: string;
|
|
30
|
+
forTarget: SchemaType;
|
|
31
|
+
modalType: string;
|
|
32
|
+
isOpen: boolean;
|
|
33
|
+
showBackLink: boolean;
|
|
34
|
+
kind: string;
|
|
35
|
+
step: string;
|
|
36
|
+
targetUid: Internal.UID.Schema;
|
|
37
|
+
}
|
|
38
|
+
export declare const FormModalNavigationContext: React.Context<FormModalNavigationContextValue>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDataManager: () => import("../contexts/DataManagerContext").DataManagerContextValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useFormModalNavigation: () => import("../contexts/FormModalNavigationContext").FormModalNavigationContextValue;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
register(app: any): void;
|
|
3
|
+
bootstrap(): void;
|
|
4
|
+
registerTrads({ locales }: {
|
|
5
|
+
locales: string[];
|
|
6
|
+
}): Promise<({
|
|
7
|
+
data: {
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
};
|
|
10
|
+
locale: string;
|
|
11
|
+
} | {
|
|
12
|
+
data: {};
|
|
13
|
+
locale: string;
|
|
14
|
+
})[]>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface LinkToCMSettingsViewProps {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
contentTypeKind?: string;
|
|
5
|
+
isInContentTypeView?: boolean;
|
|
6
|
+
isTemporary?: boolean;
|
|
7
|
+
targetUid?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const LinkToCMSettingsView: import("react").MemoExoticComponent<({ disabled, isTemporary, isInContentTypeView, contentTypeKind, targetUid, }: LinkToCMSettingsViewProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RecursivePath: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pluginId: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const reducers: {
|
|
2
|
+
[x: string]: ((state: import("./types").DataManagerStateType | undefined, action: import("./components/DataManagerProvider/reducer").Action) => import("./types").DataManagerStateType) | ((state: any, action: import("redux").AnyAction) => (base?: ((draftState: any) => any) | undefined, ...args: unknown[]) => ((draftState: any) => any) | Promise<(draftState: any) => any>);
|
|
3
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Internal, Schema } from '@strapi/types';
|
|
2
|
+
export type IntlLabel = {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
values?: Record<string, any>;
|
|
6
|
+
};
|
|
7
|
+
export type SchemaType = 'contentType' | 'component' | 'components';
|
|
8
|
+
export type DifferentAttributesKind = 'Populatable' | 'NonPopulatable' | 'Any';
|
|
9
|
+
export type AttributeType = Schema.Attribute.AnyAttribute & {
|
|
10
|
+
name?: string;
|
|
11
|
+
target?: string;
|
|
12
|
+
targetAttribute?: string | null;
|
|
13
|
+
customField?: any;
|
|
14
|
+
default?: any;
|
|
15
|
+
repeatable?: boolean;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
export interface Component {
|
|
19
|
+
uid: Internal.UID.Component;
|
|
20
|
+
category?: string;
|
|
21
|
+
schema: any;
|
|
22
|
+
isTemporary?: boolean;
|
|
23
|
+
attributes?: AttributeType[];
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
export interface ContentType {
|
|
27
|
+
uid?: Internal.UID.ContentType;
|
|
28
|
+
isTemporary?: boolean;
|
|
29
|
+
visible?: boolean;
|
|
30
|
+
name?: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
plugin?: string;
|
|
33
|
+
to?: string;
|
|
34
|
+
kind?: 'singleType' | 'collectionType';
|
|
35
|
+
restrictRelationsTo?: unknown;
|
|
36
|
+
schema?: any;
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
export type Components = Record<string, Component>;
|
|
40
|
+
export type ContentTypes = Record<string, ContentType>;
|
|
41
|
+
export interface DataManagerStateType {
|
|
42
|
+
components: Components;
|
|
43
|
+
contentTypes?: ContentTypes;
|
|
44
|
+
initialComponents: Components;
|
|
45
|
+
initialContentTypes: ContentTypes;
|
|
46
|
+
initialData: Record<string, any>;
|
|
47
|
+
modifiedData: {
|
|
48
|
+
components: Components;
|
|
49
|
+
contentTypes: ContentTypes;
|
|
50
|
+
contentType?: ContentType;
|
|
51
|
+
component?: Component;
|
|
52
|
+
};
|
|
53
|
+
reservedNames: Record<string, string>;
|
|
54
|
+
isLoading: boolean;
|
|
55
|
+
isLoadingForDataToBeSet: boolean;
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formsAPI: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getAttributeDisplayedType: (type: string) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Schema } from '@strapi/types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Retrieves the relation type
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRelationType: (relation: Schema.Attribute.RelationKind.WithTarget | undefined, targetAttribute?: string | null) => Schema.Attribute.RelationKind.WithTarget | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTrad: (id: string) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MessageDescriptor, PrimitiveType } from 'react-intl';
|
|
2
|
+
import type { ValidationError } from 'yup';
|
|
3
|
+
interface TranslationMessage extends MessageDescriptor {
|
|
4
|
+
values?: Record<string, PrimitiveType>;
|
|
5
|
+
}
|
|
6
|
+
declare const getYupInnerErrors: (error: ValidationError) => Record<string, TranslationMessage>;
|
|
7
|
+
export { getYupInnerErrors };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const nameToSlug: (name: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const startsWithANumber: (value: string) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toRegressedEnumValue: (value: string | undefined) => string;
|