@strapi/content-type-builder 5.49.0 → 5.50.0
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/dist/admin/components/FormModal/component/createComponentSchema.js +1 -1
- package/dist/admin/components/FormModal/component/createComponentSchema.js.map +1 -1
- package/dist/admin/components/FormModal/component/createComponentSchema.mjs +1 -1
- package/dist/admin/components/FormModal/component/createComponentSchema.mjs.map +1 -1
- package/dist/admin/src/components/AIChat/components/AnimatedBox.d.ts +4 -5
- package/dist/admin/src/components/AIChat/components/Attachments/AttachmentPreview.d.ts +1 -1
- package/dist/admin/src/components/AIChat/components/Dropzone.d.ts +0 -1
- package/dist/admin/src/components/AIChat/components/FloatingPanel.d.ts +0 -1
- package/dist/admin/src/components/AIChat/components/Input.d.ts +2 -3
- package/dist/admin/src/components/AIChat/components/ResizableTextArea.d.ts +0 -1
- package/dist/admin/src/components/AIChat/components/SimpleMenu.d.ts +9 -9
- package/dist/admin/src/components/AIChat/components/icons/FigmaIcon.d.ts +0 -1
- package/dist/admin/src/components/AIChat/components/icons/StopIcon.d.ts +0 -1
- package/dist/admin/src/components/AIChat/hooks/useAIFetch.d.ts +5 -5
- package/dist/admin/src/components/AttributeOptions/OptionBoxWrapper.d.ts +2 -3
- package/dist/admin/src/components/AttributeRow.d.ts +7 -8
- package/dist/admin/src/components/CTBSession/sessionContext.d.ts +0 -1
- package/dist/admin/src/components/ComponentRow.d.ts +6 -7
- package/dist/admin/src/components/ContentTypeBuilderNav/useContentTypeBuilderMenu.d.ts +0 -1
- package/dist/admin/src/components/CustomRadioGroup/Styles.d.ts +3 -4
- package/dist/admin/src/components/DataManager/DataManagerContext.d.ts +0 -1
- package/dist/admin/src/components/DataManager/reducer.d.ts +2 -2
- package/dist/admin/src/components/DataManager/utils/cleanData.d.ts +56 -56
- package/dist/admin/src/components/FormModal/attributes/form.d.ts +3 -3
- package/dist/admin/src/components/FormModal/attributes/validation/common.d.ts +1 -1
- package/dist/admin/src/components/FormModal/forms/forms.d.ts +2 -2
- package/dist/admin/src/components/FormModalNavigation/FormModalNavigationProvider.d.ts +0 -1
- package/dist/admin/src/components/List.d.ts +2 -3
- package/dist/admin/src/components/Relation/RelationNaturePicker/Components.d.ts +6 -7
- package/dist/admin/src/pages/ListView/LinkToCMSettingsView.d.ts +0 -1
- package/dist/admin/src/utils/isAllowedContentTypesForRelations.d.ts +1 -1
- package/dist/admin/translations/en.json.js +1 -0
- package/dist/admin/translations/en.json.js.map +1 -1
- package/dist/admin/translations/en.json.mjs +1 -0
- package/dist/admin/translations/en.json.mjs.map +1 -1
- package/dist/admin/translations/ja.json.js +109 -50
- package/dist/admin/translations/ja.json.js.map +1 -1
- package/dist/admin/translations/ja.json.mjs +109 -50
- package/dist/admin/translations/ja.json.mjs.map +1 -1
- package/dist/server/controllers/validation/common.js +1 -1
- package/dist/server/controllers/validation/common.js.map +1 -1
- package/dist/server/controllers/validation/common.mjs +1 -1
- package/dist/server/controllers/validation/common.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/common.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/component-category.d.ts +1 -1
- package/dist/server/src/controllers/validation/component.d.ts +1 -1
- package/dist/server/src/controllers/validation/component.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/content-type.d.ts +1 -1
- package/dist/server/src/controllers/validation/content-type.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/data-transform.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/model-schema.d.ts +1 -1
- package/dist/server/src/controllers/validation/model-schema.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/relations.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/schema.d.ts +1 -1
- package/dist/server/src/controllers/validation/types.d.ts.map +1 -1
- package/dist/server/src/middlewares/is-development-mode.d.ts.map +1 -1
- package/dist/server/src/register.d.ts.map +1 -1
- package/dist/server/src/services/builder.d.ts.map +1 -1
- package/dist/server/src/services/component-categories.d.ts.map +1 -1
- package/dist/server/src/services/components.d.ts.map +1 -1
- package/dist/server/src/services/content-types.d.ts +1 -1
- package/dist/server/src/services/content-types.d.ts.map +1 -1
- package/dist/server/src/services/schema-builder/component-builder.d.ts +12 -12
- package/dist/server/src/services/schema-builder/component-builder.d.ts.map +1 -1
- package/dist/server/src/services/schema-builder/content-type-builder.d.ts +14 -14
- package/dist/server/src/services/schema-builder/content-type-builder.d.ts.map +1 -1
- package/dist/server/src/services/schema-builder/index.d.ts +27 -27
- package/dist/server/src/services/schema-builder/index.d.ts.map +1 -1
- package/dist/server/src/services/schema-builder/schema-handler.d.ts +12 -12
- package/dist/server/src/services/schema-builder/schema-handler.d.ts.map +1 -1
- package/dist/server/src/services/schema.d.ts +66 -66
- package/dist/server/src/services/schema.d.ts.map +1 -1
- package/dist/server/src/utils/attributes.d.ts +2 -2
- package/dist/server/src/utils/attributes.d.ts.map +1 -1
- package/dist/server/src/utils/helpers.d.ts.map +1 -1
- package/dist/server/src/utils/typeguards.d.ts.map +1 -1
- package/package.json +12 -8
|
@@ -56,7 +56,7 @@ const createComponentSchema = (usedComponentNames, reservedNames, category, take
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
}).required(strapiAdmin.translatedErrors.required.id),
|
|
59
|
-
category: yup__namespace.string().matches(CATEGORY_NAME_REGEX,
|
|
59
|
+
category: yup__namespace.string().matches(CATEGORY_NAME_REGEX, getTrad.getTrad('error.category.format')).required(strapiAdmin.translatedErrors.required.id),
|
|
60
60
|
icon: yup__namespace.string()
|
|
61
61
|
};
|
|
62
62
|
return yup__namespace.object(shape);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponentSchema.js","sources":["../../../../../admin/src/components/FormModal/component/createComponentSchema.ts"],"sourcesContent":["import { translatedErrors as errorsTrads } from '@strapi/admin/strapi-admin';\nimport { snakeCase } from 'lodash/fp';\nimport * as yup from 'yup';\n\nimport { getTrad } from '../../../utils/getTrad';\nimport { createComponentUid } from '../utils/createUid';\n\nconst CATEGORY_NAME_REGEX = /^[A-Za-z][-_0-9A-Za-z]*$/;\n\nexport const createComponentSchema = (\n usedComponentNames: Array<string>,\n reservedNames: Array<string>,\n category: string,\n takenCollectionNames: Array<string>,\n currentCollectionName: string\n) => {\n const shape = {\n displayName: yup\n .string()\n .test({\n name: 'nameAlreadyUsed',\n message: errorsTrads.unique.id,\n test(value) {\n if (!value) {\n return false;\n }\n\n const name = createComponentUid(value, category);\n\n const snakeCaseKey = snakeCase(name);\n const snakeCaseCollectionName = snakeCase(currentCollectionName);\n\n return (\n usedComponentNames.every((reserved) => {\n return snakeCase(reserved) !== snakeCaseKey;\n }) &&\n takenCollectionNames.every(\n (collectionName) => snakeCase(collectionName) !== snakeCaseCollectionName\n )\n );\n },\n })\n .test({\n name: 'nameNotAllowed',\n message: getTrad('error.contentTypeName.reserved-name'),\n test(value) {\n if (!value) {\n return false;\n }\n\n const snakeCaseKey = snakeCase(value);\n return reservedNames.every((reserved) => {\n return snakeCase(reserved) !== snakeCaseKey;\n });\n },\n })\n .required(errorsTrads.required.id),\n category: yup\n .string()\n .matches(CATEGORY_NAME_REGEX,
|
|
1
|
+
{"version":3,"file":"createComponentSchema.js","sources":["../../../../../admin/src/components/FormModal/component/createComponentSchema.ts"],"sourcesContent":["import { translatedErrors as errorsTrads } from '@strapi/admin/strapi-admin';\nimport { snakeCase } from 'lodash/fp';\nimport * as yup from 'yup';\n\nimport { getTrad } from '../../../utils/getTrad';\nimport { createComponentUid } from '../utils/createUid';\n\nconst CATEGORY_NAME_REGEX = /^[A-Za-z][-_0-9A-Za-z]*$/;\n\nexport const createComponentSchema = (\n usedComponentNames: Array<string>,\n reservedNames: Array<string>,\n category: string,\n takenCollectionNames: Array<string>,\n currentCollectionName: string\n) => {\n const shape = {\n displayName: yup\n .string()\n .test({\n name: 'nameAlreadyUsed',\n message: errorsTrads.unique.id,\n test(value) {\n if (!value) {\n return false;\n }\n\n const name = createComponentUid(value, category);\n\n const snakeCaseKey = snakeCase(name);\n const snakeCaseCollectionName = snakeCase(currentCollectionName);\n\n return (\n usedComponentNames.every((reserved) => {\n return snakeCase(reserved) !== snakeCaseKey;\n }) &&\n takenCollectionNames.every(\n (collectionName) => snakeCase(collectionName) !== snakeCaseCollectionName\n )\n );\n },\n })\n .test({\n name: 'nameNotAllowed',\n message: getTrad('error.contentTypeName.reserved-name'),\n test(value) {\n if (!value) {\n return false;\n }\n\n const snakeCaseKey = snakeCase(value);\n return reservedNames.every((reserved) => {\n return snakeCase(reserved) !== snakeCaseKey;\n });\n },\n })\n .required(errorsTrads.required.id),\n category: yup\n .string()\n .matches(CATEGORY_NAME_REGEX, getTrad('error.category.format'))\n .required(errorsTrads.required.id),\n\n icon: yup.string(),\n };\n\n return yup.object(shape);\n};\n"],"names":["CATEGORY_NAME_REGEX","createComponentSchema","usedComponentNames","reservedNames","category","takenCollectionNames","currentCollectionName","shape","displayName","yup","string","test","name","message","errorsTrads","unique","id","value","createComponentUid","snakeCaseKey","snakeCase","snakeCaseCollectionName","every","reserved","collectionName","getTrad","required","matches","icon","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAMA,mBAAAA,GAAsB,0BAAA;MAEfC,qBAAAA,GAAwB,CACnCC,kBAAAA,EACAC,aAAAA,EACAC,UACAC,oBAAAA,EACAC,qBAAAA,GAAAA;AAEA,IAAA,MAAMC,KAAAA,GAAQ;AACZC,QAAAA,WAAAA,EAAaC,cAAAA,CACVC,MAAM,EAAA,CACNC,IAAI,CAAC;YACJC,IAAAA,EAAM,iBAAA;YACNC,OAAAA,EAASC,4BAAAA,CAAYC,MAAM,CAACC,EAAE;AAC9BL,YAAAA,IAAAA,CAAAA,CAAKM,KAAK,EAAA;AACR,gBAAA,IAAI,CAACA,KAAAA,EAAO;oBACV,OAAO,KAAA;AACT,gBAAA;gBAEA,MAAML,IAAAA,GAAOM,6BAAmBD,KAAAA,EAAOb,QAAAA,CAAAA;AAEvC,gBAAA,MAAMe,eAAeC,YAAAA,CAAUR,IAAAA,CAAAA;AAC/B,gBAAA,MAAMS,0BAA0BD,YAAAA,CAAUd,qBAAAA,CAAAA;gBAE1C,OACEJ,kBAAAA,CAAmBoB,KAAK,CAAC,CAACC,QAAAA,GAAAA;AACxB,oBAAA,OAAOH,aAAUG,QAAAA,CAAAA,KAAcJ,YAAAA;AACjC,gBAAA,CAAA,CAAA,IACAd,qBAAqBiB,KAAK,CACxB,CAACE,cAAAA,GAAmBJ,aAAUI,cAAAA,CAAAA,KAAoBH,uBAAAA,CAAAA;AAGxD,YAAA;AACF,SAAA,CAAA,CACCV,IAAI,CAAC;YACJC,IAAAA,EAAM,gBAAA;AACNC,YAAAA,OAAAA,EAASY,eAAAA,CAAQ,qCAAA,CAAA;AACjBd,YAAAA,IAAAA,CAAAA,CAAKM,KAAK,EAAA;AACR,gBAAA,IAAI,CAACA,KAAAA,EAAO;oBACV,OAAO,KAAA;AACT,gBAAA;AAEA,gBAAA,MAAME,eAAeC,YAAAA,CAAUH,KAAAA,CAAAA;gBAC/B,OAAOd,aAAAA,CAAcmB,KAAK,CAAC,CAACC,QAAAA,GAAAA;AAC1B,oBAAA,OAAOH,aAAUG,QAAAA,CAAAA,KAAcJ,YAAAA;AACjC,gBAAA,CAAA,CAAA;AACF,YAAA;AACF,SAAA,CAAA,CACCO,QAAQ,CAACZ,4BAAAA,CAAYY,QAAQ,CAACV,EAAE,CAAA;AACnCZ,QAAAA,QAAAA,EAAUK,cAAAA,CACPC,MAAM,EAAA,CACNiB,OAAO,CAAC3B,mBAAAA,EAAqByB,eAAAA,CAAQ,uBAAA,CAAA,CAAA,CACrCC,QAAQ,CAACZ,4BAAAA,CAAYY,QAAQ,CAACV,EAAE,CAAA;AAEnCY,QAAAA,IAAAA,EAAMnB,eAAIC,MAAM;AAClB,KAAA;IAEA,OAAOD,cAAAA,CAAIoB,MAAM,CAACtB,KAAAA,CAAAA;AACpB;;;;"}
|
|
@@ -34,7 +34,7 @@ const createComponentSchema = (usedComponentNames, reservedNames, category, take
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
}).required(translatedErrors.required.id),
|
|
37
|
-
category: yup.string().matches(CATEGORY_NAME_REGEX,
|
|
37
|
+
category: yup.string().matches(CATEGORY_NAME_REGEX, getTrad('error.category.format')).required(translatedErrors.required.id),
|
|
38
38
|
icon: yup.string()
|
|
39
39
|
};
|
|
40
40
|
return yup.object(shape);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponentSchema.mjs","sources":["../../../../../admin/src/components/FormModal/component/createComponentSchema.ts"],"sourcesContent":["import { translatedErrors as errorsTrads } from '@strapi/admin/strapi-admin';\nimport { snakeCase } from 'lodash/fp';\nimport * as yup from 'yup';\n\nimport { getTrad } from '../../../utils/getTrad';\nimport { createComponentUid } from '../utils/createUid';\n\nconst CATEGORY_NAME_REGEX = /^[A-Za-z][-_0-9A-Za-z]*$/;\n\nexport const createComponentSchema = (\n usedComponentNames: Array<string>,\n reservedNames: Array<string>,\n category: string,\n takenCollectionNames: Array<string>,\n currentCollectionName: string\n) => {\n const shape = {\n displayName: yup\n .string()\n .test({\n name: 'nameAlreadyUsed',\n message: errorsTrads.unique.id,\n test(value) {\n if (!value) {\n return false;\n }\n\n const name = createComponentUid(value, category);\n\n const snakeCaseKey = snakeCase(name);\n const snakeCaseCollectionName = snakeCase(currentCollectionName);\n\n return (\n usedComponentNames.every((reserved) => {\n return snakeCase(reserved) !== snakeCaseKey;\n }) &&\n takenCollectionNames.every(\n (collectionName) => snakeCase(collectionName) !== snakeCaseCollectionName\n )\n );\n },\n })\n .test({\n name: 'nameNotAllowed',\n message: getTrad('error.contentTypeName.reserved-name'),\n test(value) {\n if (!value) {\n return false;\n }\n\n const snakeCaseKey = snakeCase(value);\n return reservedNames.every((reserved) => {\n return snakeCase(reserved) !== snakeCaseKey;\n });\n },\n })\n .required(errorsTrads.required.id),\n category: yup\n .string()\n .matches(CATEGORY_NAME_REGEX,
|
|
1
|
+
{"version":3,"file":"createComponentSchema.mjs","sources":["../../../../../admin/src/components/FormModal/component/createComponentSchema.ts"],"sourcesContent":["import { translatedErrors as errorsTrads } from '@strapi/admin/strapi-admin';\nimport { snakeCase } from 'lodash/fp';\nimport * as yup from 'yup';\n\nimport { getTrad } from '../../../utils/getTrad';\nimport { createComponentUid } from '../utils/createUid';\n\nconst CATEGORY_NAME_REGEX = /^[A-Za-z][-_0-9A-Za-z]*$/;\n\nexport const createComponentSchema = (\n usedComponentNames: Array<string>,\n reservedNames: Array<string>,\n category: string,\n takenCollectionNames: Array<string>,\n currentCollectionName: string\n) => {\n const shape = {\n displayName: yup\n .string()\n .test({\n name: 'nameAlreadyUsed',\n message: errorsTrads.unique.id,\n test(value) {\n if (!value) {\n return false;\n }\n\n const name = createComponentUid(value, category);\n\n const snakeCaseKey = snakeCase(name);\n const snakeCaseCollectionName = snakeCase(currentCollectionName);\n\n return (\n usedComponentNames.every((reserved) => {\n return snakeCase(reserved) !== snakeCaseKey;\n }) &&\n takenCollectionNames.every(\n (collectionName) => snakeCase(collectionName) !== snakeCaseCollectionName\n )\n );\n },\n })\n .test({\n name: 'nameNotAllowed',\n message: getTrad('error.contentTypeName.reserved-name'),\n test(value) {\n if (!value) {\n return false;\n }\n\n const snakeCaseKey = snakeCase(value);\n return reservedNames.every((reserved) => {\n return snakeCase(reserved) !== snakeCaseKey;\n });\n },\n })\n .required(errorsTrads.required.id),\n category: yup\n .string()\n .matches(CATEGORY_NAME_REGEX, getTrad('error.category.format'))\n .required(errorsTrads.required.id),\n\n icon: yup.string(),\n };\n\n return yup.object(shape);\n};\n"],"names":["CATEGORY_NAME_REGEX","createComponentSchema","usedComponentNames","reservedNames","category","takenCollectionNames","currentCollectionName","shape","displayName","yup","string","test","name","message","errorsTrads","unique","id","value","createComponentUid","snakeCaseKey","snakeCase","snakeCaseCollectionName","every","reserved","collectionName","getTrad","required","matches","icon","object"],"mappings":";;;;;;AAOA,MAAMA,mBAAAA,GAAsB,0BAAA;MAEfC,qBAAAA,GAAwB,CACnCC,kBAAAA,EACAC,aAAAA,EACAC,UACAC,oBAAAA,EACAC,qBAAAA,GAAAA;AAEA,IAAA,MAAMC,KAAAA,GAAQ;AACZC,QAAAA,WAAAA,EAAaC,GAAAA,CACVC,MAAM,EAAA,CACNC,IAAI,CAAC;YACJC,IAAAA,EAAM,iBAAA;YACNC,OAAAA,EAASC,gBAAAA,CAAYC,MAAM,CAACC,EAAE;AAC9BL,YAAAA,IAAAA,CAAAA,CAAKM,KAAK,EAAA;AACR,gBAAA,IAAI,CAACA,KAAAA,EAAO;oBACV,OAAO,KAAA;AACT,gBAAA;gBAEA,MAAML,IAAAA,GAAOM,mBAAmBD,KAAAA,EAAOb,QAAAA,CAAAA;AAEvC,gBAAA,MAAMe,eAAeC,SAAAA,CAAUR,IAAAA,CAAAA;AAC/B,gBAAA,MAAMS,0BAA0BD,SAAAA,CAAUd,qBAAAA,CAAAA;gBAE1C,OACEJ,kBAAAA,CAAmBoB,KAAK,CAAC,CAACC,QAAAA,GAAAA;AACxB,oBAAA,OAAOH,UAAUG,QAAAA,CAAAA,KAAcJ,YAAAA;AACjC,gBAAA,CAAA,CAAA,IACAd,qBAAqBiB,KAAK,CACxB,CAACE,cAAAA,GAAmBJ,UAAUI,cAAAA,CAAAA,KAAoBH,uBAAAA,CAAAA;AAGxD,YAAA;AACF,SAAA,CAAA,CACCV,IAAI,CAAC;YACJC,IAAAA,EAAM,gBAAA;AACNC,YAAAA,OAAAA,EAASY,OAAAA,CAAQ,qCAAA,CAAA;AACjBd,YAAAA,IAAAA,CAAAA,CAAKM,KAAK,EAAA;AACR,gBAAA,IAAI,CAACA,KAAAA,EAAO;oBACV,OAAO,KAAA;AACT,gBAAA;AAEA,gBAAA,MAAME,eAAeC,SAAAA,CAAUH,KAAAA,CAAAA;gBAC/B,OAAOd,aAAAA,CAAcmB,KAAK,CAAC,CAACC,QAAAA,GAAAA;AAC1B,oBAAA,OAAOH,UAAUG,QAAAA,CAAAA,KAAcJ,YAAAA;AACjC,gBAAA,CAAA,CAAA;AACF,YAAA;AACF,SAAA,CAAA,CACCO,QAAQ,CAACZ,gBAAAA,CAAYY,QAAQ,CAACV,EAAE,CAAA;AACnCZ,QAAAA,QAAAA,EAAUK,GAAAA,CACPC,MAAM,EAAA,CACNiB,OAAO,CAAC3B,mBAAAA,EAAqByB,OAAAA,CAAQ,uBAAA,CAAA,CAAA,CACrCC,QAAQ,CAACZ,gBAAAA,CAAYY,QAAQ,CAACV,EAAE,CAAA;AAEnCY,QAAAA,IAAAA,EAAMnB,IAAIC,MAAM;AAClB,KAAA;IAEA,OAAOD,GAAAA,CAAIoB,MAAM,CAACtB,KAAAA,CAAAA;AACpB;;;;"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Translates and fades in from a specified direction.
|
|
4
3
|
*/
|
|
5
4
|
export declare const AnimatedBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
6
|
-
children?:
|
|
5
|
+
children?: React.ReactNode;
|
|
7
6
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
8
7
|
ref?: any;
|
|
9
8
|
}, "ref"> & {
|
|
10
9
|
ref?: any;
|
|
11
10
|
}, "$direction"> & {
|
|
12
|
-
$direction?: "
|
|
11
|
+
$direction?: "up" | "left";
|
|
13
12
|
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
14
|
-
children?:
|
|
13
|
+
children?: React.ReactNode;
|
|
15
14
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
16
15
|
ref?: any;
|
|
17
16
|
}, "ref"> & {
|
|
18
17
|
ref?: any;
|
|
19
18
|
}, "$direction"> & {
|
|
20
|
-
$direction?: "
|
|
19
|
+
$direction?: "up" | "left";
|
|
21
20
|
}, never>>> & string & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
|
|
@@ -5,5 +5,5 @@ interface AttachmentPreviewProps {
|
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
onRemove?: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const AttachmentPreview: ({ attachment, onRemove, ...props }: AttachmentPreviewProps & Omit<AttachmentRootProps,
|
|
8
|
+
export declare const AttachmentPreview: ({ attachment, onRemove, ...props }: AttachmentPreviewProps & Omit<AttachmentRootProps, "children">) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Box, Flex } from '@strapi/design-system';
|
|
3
2
|
export interface InputContextValue {
|
|
4
3
|
isLoading?: boolean;
|
|
@@ -27,13 +26,13 @@ export declare const Input: {
|
|
|
27
26
|
Root: ({ children, isLoading, ...props }: InputRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
Header: ({ children, ...props }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
28
|
HeaderItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
30
|
-
children?:
|
|
29
|
+
children?: React.ReactNode;
|
|
31
30
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
32
31
|
ref?: any;
|
|
33
32
|
}, "ref"> & {
|
|
34
33
|
ref?: any;
|
|
35
34
|
}, never> & Partial<Pick<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
36
|
-
children?:
|
|
35
|
+
children?: React.ReactNode;
|
|
37
36
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
38
37
|
ref?: any;
|
|
39
38
|
}, "ref"> & {
|
|
@@ -7,26 +7,26 @@ type SimpleMenuProps = Menu.TriggerProps & Pick<Menu.ContentProps, 'popoverPlace
|
|
|
7
7
|
};
|
|
8
8
|
declare const SimpleMenu: React.ForwardRefExoticComponent<(Omit<Omit<import("@strapi/design-system").ButtonProps, "tag"> & {
|
|
9
9
|
endIcon?: React.ReactNode;
|
|
10
|
-
label?: React.ReactNode;
|
|
10
|
+
label?: React.ReactNode | string;
|
|
11
11
|
} & {
|
|
12
|
-
tag?:
|
|
12
|
+
tag?: <C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<import("@strapi/design-system").ButtonProps<C>> & React.RefAttributes<unknown>) => React.ReactNode;
|
|
13
13
|
icon?: React.ReactNode;
|
|
14
14
|
} & Pick<Menu.ContentProps, "popoverPlacement" | "intersectionId"> & {
|
|
15
15
|
children?: React.ReactNode;
|
|
16
|
-
onOpen?: (
|
|
17
|
-
onClose?: (
|
|
16
|
+
onOpen?: () => void;
|
|
17
|
+
onClose?: () => void;
|
|
18
18
|
}, "ref"> | Omit<Omit<import("@strapi/design-system").ButtonProps, "tag"> & {
|
|
19
19
|
endIcon?: React.ReactNode;
|
|
20
|
-
label?: React.ReactNode;
|
|
20
|
+
label?: React.ReactNode | string;
|
|
21
21
|
} & {
|
|
22
|
-
tag: <
|
|
22
|
+
tag: <C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<import("@strapi/design-system").IconButtonProps<C>> & React.RefAttributes<unknown>) => React.ReactNode;
|
|
23
23
|
icon: React.ReactNode;
|
|
24
24
|
} & Pick<Menu.ContentProps, "popoverPlacement" | "intersectionId"> & {
|
|
25
25
|
children?: React.ReactNode;
|
|
26
|
-
onOpen?: (
|
|
27
|
-
onClose?: (
|
|
26
|
+
onOpen?: () => void;
|
|
27
|
+
onClose?: () => void;
|
|
28
28
|
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
29
|
-
declare const MenuItem: ({ onSelect, disabled, isLink, startIcon, endIcon, isExternal, variant, ...props }: Menu.ItemProps
|
|
29
|
+
declare const MenuItem: ({ onSelect, disabled, isLink, startIcon, endIcon, isExternal, variant, ...props }: Menu.ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
type MenuItemProps = Menu.ItemProps;
|
|
31
31
|
export { SimpleMenu, MenuItem, Menu };
|
|
32
32
|
export type { SimpleMenuProps, MenuItemProps };
|
|
@@ -108,7 +108,7 @@ export declare const INVALID_REQUEST_ERROR = "Invalid request";
|
|
|
108
108
|
export declare const createAIFetchHook: <T extends keyof AIEndpoints>(endpoint: T) => () => {
|
|
109
109
|
isPending: boolean;
|
|
110
110
|
error: string | null;
|
|
111
|
-
fetch: (options?: Omit<RequestInit,
|
|
111
|
+
fetch: (options?: Omit<RequestInit, "body"> & Partial<RequestType<T>> & {
|
|
112
112
|
formData?: FormData;
|
|
113
113
|
}) => Promise<ResponseType<T> | null>;
|
|
114
114
|
};
|
|
@@ -116,28 +116,28 @@ export declare const useFetchGenerateTitle: () => {
|
|
|
116
116
|
isPending: boolean;
|
|
117
117
|
error: string | null;
|
|
118
118
|
fetch: (options?: Omit<RequestInit, "body"> & Partial<GenerateTitle.Request> & {
|
|
119
|
-
formData?: FormData
|
|
119
|
+
formData?: FormData;
|
|
120
120
|
}) => Promise<GenerateTitle.Response | null>;
|
|
121
121
|
};
|
|
122
122
|
export declare const useFetchUploadProject: () => {
|
|
123
123
|
isPending: boolean;
|
|
124
124
|
error: string | null;
|
|
125
125
|
fetch: (options?: Omit<RequestInit, "body"> & Partial<UploadProject.Request> & {
|
|
126
|
-
formData?: FormData
|
|
126
|
+
formData?: FormData;
|
|
127
127
|
}) => Promise<UploadProject.Response | null>;
|
|
128
128
|
};
|
|
129
129
|
export declare const useFetchSendFeedback: () => {
|
|
130
130
|
isPending: boolean;
|
|
131
131
|
error: string | null;
|
|
132
132
|
fetch: (options?: Omit<RequestInit, "body"> & Partial<SendFeedback.Request> & {
|
|
133
|
-
formData?: FormData
|
|
133
|
+
formData?: FormData;
|
|
134
134
|
}) => Promise<void | null>;
|
|
135
135
|
};
|
|
136
136
|
export declare const useFetchUploadMedia: () => {
|
|
137
137
|
isPending: boolean;
|
|
138
138
|
error: string | null;
|
|
139
139
|
fetch: (options?: Omit<RequestInit, "body"> & Partial<UploadMedia.Request> & {
|
|
140
|
-
formData?: FormData
|
|
140
|
+
formData?: FormData;
|
|
141
141
|
}) => Promise<UploadMedia.Response | null>;
|
|
142
142
|
};
|
|
143
143
|
/**
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const OptionBoxWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
3
|
-
children?:
|
|
2
|
+
children?: React.ReactNode;
|
|
4
3
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
5
4
|
ref?: any;
|
|
6
5
|
}, "ref"> & {
|
|
7
6
|
ref?: any;
|
|
8
7
|
}, never> & Partial<Pick<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
9
|
-
children?:
|
|
8
|
+
children?: React.ReactNode;
|
|
10
9
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
11
10
|
ref?: any;
|
|
12
11
|
}, "ref"> & {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { AnyAttribute, Component, ContentType } from '../types';
|
|
3
2
|
import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
4
3
|
import type { UID } from '@strapi/types';
|
|
5
4
|
export declare const GridWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
|
6
|
-
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
5
|
+
ref?: ((instance: unknown) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<unknown> | null | undefined;
|
|
7
6
|
}, "$isOverlay" | "$isDragging"> & {
|
|
8
|
-
$isOverlay?: boolean
|
|
9
|
-
$isDragging?: boolean
|
|
7
|
+
$isOverlay?: boolean;
|
|
8
|
+
$isDragging?: boolean;
|
|
10
9
|
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
|
11
|
-
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
10
|
+
ref?: ((instance: unknown) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<unknown> | null | undefined;
|
|
12
11
|
}, "$isOverlay" | "$isDragging"> & {
|
|
13
|
-
$isOverlay?: boolean
|
|
14
|
-
$isDragging?: boolean
|
|
15
|
-
}, never>>> & string & Omit<(<C extends
|
|
12
|
+
$isOverlay?: boolean;
|
|
13
|
+
$isDragging?: boolean;
|
|
14
|
+
}, never>>> & string & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: React.PropsWithoutRef<import("@strapi/design-system").FlexProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import("react").Component<any, {}, any>>;
|
|
16
15
|
export type AttributeRowProps = {
|
|
17
16
|
item: {
|
|
18
17
|
id: string;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ComponentRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
3
|
-
children?:
|
|
2
|
+
children?: React.ReactNode;
|
|
4
3
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
5
4
|
ref?: any;
|
|
6
5
|
}, "ref"> & {
|
|
7
6
|
ref?: any;
|
|
8
7
|
}, "$isFromDynamicZone" | "$isChildOfDynamicZone"> & {
|
|
9
|
-
$isFromDynamicZone?: boolean
|
|
10
|
-
$isChildOfDynamicZone?: boolean
|
|
8
|
+
$isFromDynamicZone?: boolean;
|
|
9
|
+
$isChildOfDynamicZone?: boolean;
|
|
11
10
|
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
12
|
-
children?:
|
|
11
|
+
children?: React.ReactNode;
|
|
13
12
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
14
13
|
ref?: any;
|
|
15
14
|
}, "ref"> & {
|
|
16
15
|
ref?: any;
|
|
17
16
|
}, "$isFromDynamicZone" | "$isChildOfDynamicZone"> & {
|
|
18
|
-
$isFromDynamicZone?: boolean
|
|
19
|
-
$isChildOfDynamicZone?: boolean
|
|
17
|
+
$isFromDynamicZone?: boolean;
|
|
18
|
+
$isChildOfDynamicZone?: boolean;
|
|
20
19
|
}, never>>> & string & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
|
3
|
-
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
2
|
+
ref?: ((instance: unknown) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<unknown> | null | undefined;
|
|
4
3
|
}, never> & Partial<Pick<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
|
5
|
-
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
6
|
-
}, never>>> & string & Omit<(<C extends
|
|
4
|
+
ref?: ((instance: unknown) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<unknown> | null | undefined;
|
|
5
|
+
}, never>>> & string & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: React.PropsWithoutRef<import("@strapi/design-system").FlexProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof import("react").Component<any, {}, any>>;
|
|
7
6
|
export { Wrapper };
|
|
@@ -180,7 +180,7 @@ declare const slice: import("@reduxjs/toolkit").Slice<import("./undoRedo").UndoR
|
|
|
180
180
|
}>;
|
|
181
181
|
applyChange: import("@reduxjs/toolkit").CaseReducer<import("./undoRedo").UndoRedoState<DataManagerStateType>, {
|
|
182
182
|
payload: {
|
|
183
|
-
action:
|
|
183
|
+
action: "add" | "update" | "delete";
|
|
184
184
|
schema: ContentType | Component;
|
|
185
185
|
};
|
|
186
186
|
type: string;
|
|
@@ -264,7 +264,7 @@ export declare const reducer: import("redux").Reducer<import("./undoRedo").UndoR
|
|
|
264
264
|
}>;
|
|
265
265
|
applyChange: import("@reduxjs/toolkit").CaseReducer<import("./undoRedo").UndoRedoState<DataManagerStateType>, {
|
|
266
266
|
payload: {
|
|
267
|
-
action:
|
|
267
|
+
action: "add" | "update" | "delete";
|
|
268
268
|
schema: ContentType | Component;
|
|
269
269
|
};
|
|
270
270
|
type: string;
|
|
@@ -43,13 +43,13 @@ declare const stateToRequestData: ({ components, contentTypes, }: {
|
|
|
43
43
|
};
|
|
44
44
|
})[];
|
|
45
45
|
displayName: string;
|
|
46
|
-
description?: string
|
|
47
|
-
icon?: string
|
|
48
|
-
reviewWorkflows?: boolean
|
|
49
|
-
populateCreatorFields?: boolean
|
|
50
|
-
comment?: string
|
|
51
|
-
version?: string
|
|
52
|
-
draftAndPublish?: boolean
|
|
46
|
+
description?: string;
|
|
47
|
+
icon?: string;
|
|
48
|
+
reviewWorkflows?: boolean;
|
|
49
|
+
populateCreatorFields?: boolean;
|
|
50
|
+
comment?: string;
|
|
51
|
+
version?: string;
|
|
52
|
+
draftAndPublish?: boolean;
|
|
53
53
|
modelType?: "component" | undefined;
|
|
54
54
|
uid: `${string}.${string}` | `admin::${string}` | `strapi::${string}`;
|
|
55
55
|
options?: import("@strapi/types/dist/struct").SchemaOptions | undefined;
|
|
@@ -77,13 +77,13 @@ declare const stateToRequestData: ({ components, contentTypes, }: {
|
|
|
77
77
|
singularName: string;
|
|
78
78
|
pluralName: string;
|
|
79
79
|
displayName: string;
|
|
80
|
-
description?: string
|
|
81
|
-
icon?: string
|
|
82
|
-
reviewWorkflows?: boolean
|
|
83
|
-
populateCreatorFields?: boolean
|
|
84
|
-
comment?: string
|
|
85
|
-
version?: string
|
|
86
|
-
draftAndPublish?: boolean
|
|
80
|
+
description?: string;
|
|
81
|
+
icon?: string;
|
|
82
|
+
reviewWorkflows?: boolean;
|
|
83
|
+
populateCreatorFields?: boolean;
|
|
84
|
+
comment?: string;
|
|
85
|
+
version?: string;
|
|
86
|
+
draftAndPublish?: boolean;
|
|
87
87
|
modelType?: "component" | undefined;
|
|
88
88
|
uid: `${string}.${string}` | `admin::${string}` | `strapi::${string}`;
|
|
89
89
|
options?: import("@strapi/types/dist/struct").SchemaOptions | undefined;
|
|
@@ -109,13 +109,13 @@ declare const stateToRequestData: ({ components, contentTypes, }: {
|
|
|
109
109
|
};
|
|
110
110
|
})[];
|
|
111
111
|
displayName: string;
|
|
112
|
-
description?: string
|
|
113
|
-
icon?: string
|
|
114
|
-
reviewWorkflows?: boolean
|
|
115
|
-
populateCreatorFields?: boolean
|
|
116
|
-
comment?: string
|
|
117
|
-
version?: string
|
|
118
|
-
draftAndPublish?: boolean
|
|
112
|
+
description?: string;
|
|
113
|
+
icon?: string;
|
|
114
|
+
reviewWorkflows?: boolean;
|
|
115
|
+
populateCreatorFields?: boolean;
|
|
116
|
+
comment?: string;
|
|
117
|
+
version?: string;
|
|
118
|
+
draftAndPublish?: boolean;
|
|
119
119
|
kind?: import("@strapi/types/dist/struct").ContentTypeKind | undefined;
|
|
120
120
|
modelType?: "contentType" | undefined;
|
|
121
121
|
uid: `${string}.${string}` | `admin::${string}` | `strapi::${string}`;
|
|
@@ -148,13 +148,13 @@ declare const stateToRequestData: ({ components, contentTypes, }: {
|
|
|
148
148
|
singularName: string;
|
|
149
149
|
pluralName: string;
|
|
150
150
|
displayName: string;
|
|
151
|
-
description?: string
|
|
152
|
-
icon?: string
|
|
153
|
-
reviewWorkflows?: boolean
|
|
154
|
-
populateCreatorFields?: boolean
|
|
155
|
-
comment?: string
|
|
156
|
-
version?: string
|
|
157
|
-
draftAndPublish?: boolean
|
|
151
|
+
description?: string;
|
|
152
|
+
icon?: string;
|
|
153
|
+
reviewWorkflows?: boolean;
|
|
154
|
+
populateCreatorFields?: boolean;
|
|
155
|
+
comment?: string;
|
|
156
|
+
version?: string;
|
|
157
|
+
draftAndPublish?: boolean;
|
|
158
158
|
kind?: import("@strapi/types/dist/struct").ContentTypeKind | undefined;
|
|
159
159
|
modelType?: "contentType" | undefined;
|
|
160
160
|
uid: `${string}.${string}` | `admin::${string}` | `strapi::${string}`;
|
|
@@ -189,13 +189,13 @@ declare const stateToRequestData: ({ components, contentTypes, }: {
|
|
|
189
189
|
};
|
|
190
190
|
})[];
|
|
191
191
|
displayName: string;
|
|
192
|
-
description?: string
|
|
193
|
-
icon?: string
|
|
194
|
-
reviewWorkflows?: boolean
|
|
195
|
-
populateCreatorFields?: boolean
|
|
196
|
-
comment?: string
|
|
197
|
-
version?: string
|
|
198
|
-
draftAndPublish?: boolean
|
|
192
|
+
description?: string;
|
|
193
|
+
icon?: string;
|
|
194
|
+
reviewWorkflows?: boolean;
|
|
195
|
+
populateCreatorFields?: boolean;
|
|
196
|
+
comment?: string;
|
|
197
|
+
version?: string;
|
|
198
|
+
draftAndPublish?: boolean;
|
|
199
199
|
modelType?: "component" | undefined;
|
|
200
200
|
uid: `${string}.${string}` | `admin::${string}` | `strapi::${string}`;
|
|
201
201
|
options?: import("@strapi/types/dist/struct").SchemaOptions | undefined;
|
|
@@ -223,13 +223,13 @@ declare const stateToRequestData: ({ components, contentTypes, }: {
|
|
|
223
223
|
singularName: string;
|
|
224
224
|
pluralName: string;
|
|
225
225
|
displayName: string;
|
|
226
|
-
description?: string
|
|
227
|
-
icon?: string
|
|
228
|
-
reviewWorkflows?: boolean
|
|
229
|
-
populateCreatorFields?: boolean
|
|
230
|
-
comment?: string
|
|
231
|
-
version?: string
|
|
232
|
-
draftAndPublish?: boolean
|
|
226
|
+
description?: string;
|
|
227
|
+
icon?: string;
|
|
228
|
+
reviewWorkflows?: boolean;
|
|
229
|
+
populateCreatorFields?: boolean;
|
|
230
|
+
comment?: string;
|
|
231
|
+
version?: string;
|
|
232
|
+
draftAndPublish?: boolean;
|
|
233
233
|
modelType?: "component" | undefined;
|
|
234
234
|
uid: `${string}.${string}` | `admin::${string}` | `strapi::${string}`;
|
|
235
235
|
options?: import("@strapi/types/dist/struct").SchemaOptions | undefined;
|
|
@@ -255,13 +255,13 @@ declare const stateToRequestData: ({ components, contentTypes, }: {
|
|
|
255
255
|
};
|
|
256
256
|
})[];
|
|
257
257
|
displayName: string;
|
|
258
|
-
description?: string
|
|
259
|
-
icon?: string
|
|
260
|
-
reviewWorkflows?: boolean
|
|
261
|
-
populateCreatorFields?: boolean
|
|
262
|
-
comment?: string
|
|
263
|
-
version?: string
|
|
264
|
-
draftAndPublish?: boolean
|
|
258
|
+
description?: string;
|
|
259
|
+
icon?: string;
|
|
260
|
+
reviewWorkflows?: boolean;
|
|
261
|
+
populateCreatorFields?: boolean;
|
|
262
|
+
comment?: string;
|
|
263
|
+
version?: string;
|
|
264
|
+
draftAndPublish?: boolean;
|
|
265
265
|
kind?: import("@strapi/types/dist/struct").ContentTypeKind | undefined;
|
|
266
266
|
modelType?: "contentType" | undefined;
|
|
267
267
|
uid: `${string}.${string}` | `admin::${string}` | `strapi::${string}`;
|
|
@@ -294,13 +294,13 @@ declare const stateToRequestData: ({ components, contentTypes, }: {
|
|
|
294
294
|
singularName: string;
|
|
295
295
|
pluralName: string;
|
|
296
296
|
displayName: string;
|
|
297
|
-
description?: string
|
|
298
|
-
icon?: string
|
|
299
|
-
reviewWorkflows?: boolean
|
|
300
|
-
populateCreatorFields?: boolean
|
|
301
|
-
comment?: string
|
|
302
|
-
version?: string
|
|
303
|
-
draftAndPublish?: boolean
|
|
297
|
+
description?: string;
|
|
298
|
+
icon?: string;
|
|
299
|
+
reviewWorkflows?: boolean;
|
|
300
|
+
populateCreatorFields?: boolean;
|
|
301
|
+
comment?: string;
|
|
302
|
+
version?: string;
|
|
303
|
+
draftAndPublish?: boolean;
|
|
304
304
|
kind?: import("@strapi/types/dist/struct").ContentTypeKind | undefined;
|
|
305
305
|
modelType?: "contentType" | undefined;
|
|
306
306
|
uid: `${string}.${string}` | `admin::${string}` | `strapi::${string}`;
|
|
@@ -245,7 +245,7 @@ export declare const attributesForm: {
|
|
|
245
245
|
})[];
|
|
246
246
|
};
|
|
247
247
|
enumeration(data: {
|
|
248
|
-
enum: string
|
|
248
|
+
enum: Array<string>;
|
|
249
249
|
}): {
|
|
250
250
|
sections: ({
|
|
251
251
|
sectionTitle: {
|
|
@@ -1026,10 +1026,10 @@ export declare const attributesForm: {
|
|
|
1026
1026
|
}[];
|
|
1027
1027
|
})[];
|
|
1028
1028
|
};
|
|
1029
|
-
uid(_data: unknown, step: string, attributes: {
|
|
1029
|
+
uid(_data: unknown, step: string, attributes: Array<{
|
|
1030
1030
|
type: string;
|
|
1031
1031
|
name: string;
|
|
1032
|
-
}
|
|
1032
|
+
}>): {
|
|
1033
1033
|
sections: {
|
|
1034
1034
|
sectionTitle: null;
|
|
1035
1035
|
items: ({
|
|
@@ -36,5 +36,5 @@ declare const createStringShape: (usedAttributeNames: Array<string>, reservedNam
|
|
|
36
36
|
regex: yup.default<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
37
37
|
};
|
|
38
38
|
type GenericIsMinSuperiorThanMax<T extends (string | null) | number> = yup.TestConfig<T | undefined, Record<string, unknown>>;
|
|
39
|
-
declare const isMinSuperiorThanMax: <T extends string |
|
|
39
|
+
declare const isMinSuperiorThanMax: <T extends (string | null) | number>() => GenericIsMinSuperiorThanMax<T>;
|
|
40
40
|
export { alreadyUsedAttributeNames, createStringShape, createTextShape, getUsedContentTypeAttributeNames, isMinSuperiorThanMax, isNameAllowed, NAME_REGEX, validators, };
|
|
@@ -41,10 +41,10 @@ export declare const forms: {
|
|
|
41
41
|
makeValidator: any;
|
|
42
42
|
}): any;
|
|
43
43
|
form: {
|
|
44
|
-
advanced({ data, type, step, extensions, ...rest }: Base<
|
|
44
|
+
advanced({ data, type, step, extensions, ...rest }: Base<"advanced">): {
|
|
45
45
|
sections: any[];
|
|
46
46
|
};
|
|
47
|
-
base({ data, type, step, attributes }: Base<
|
|
47
|
+
base({ data, type, step, attributes }: Base<"base">): {
|
|
48
48
|
sections: {
|
|
49
49
|
sectionTitle: null;
|
|
50
50
|
items: {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { Component, ContentType } from '../types';
|
|
3
2
|
import type { UID } from '@strapi/types';
|
|
4
3
|
export declare const ListGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
5
|
-
children?:
|
|
4
|
+
children?: React.ReactNode;
|
|
6
5
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
7
6
|
ref?: any;
|
|
8
7
|
}, "ref"> & {
|
|
9
8
|
ref?: any;
|
|
10
9
|
}, never> & Partial<Pick<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
11
|
-
children?:
|
|
10
|
+
children?: React.ReactNode;
|
|
12
11
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
13
12
|
ref?: any;
|
|
14
13
|
}, "ref"> & {
|