@strapi/content-type-builder 5.2.0 → 5.4.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/_chunks/{ListView-C_cgtZD7.mjs → ListView-C40qzY4p.mjs} +2 -2
- package/dist/_chunks/{ListView-C_cgtZD7.mjs.map → ListView-C40qzY4p.mjs.map} +1 -1
- package/dist/_chunks/{ListView-wnjJ3mXF.js → ListView-CA5plw_m.js} +2 -2
- package/dist/_chunks/{ListView-wnjJ3mXF.js.map → ListView-CA5plw_m.js.map} +1 -1
- package/dist/_chunks/{index-BV3CkEAi.mjs → index-CdS6M8D7.mjs} +13 -11
- package/dist/_chunks/{index-BV3CkEAi.mjs.map → index-CdS6M8D7.mjs.map} +1 -1
- package/dist/_chunks/{index-Bu22n5tv.js → index-Cgg4JI-t.js} +13 -11
- package/dist/_chunks/{index-Bu22n5tv.js.map → index-Cgg4JI-t.js.map} +1 -1
- package/dist/_chunks/{index-CKPaBrjj.mjs → index-DZ0gHoPB.mjs} +15 -24
- package/dist/_chunks/index-DZ0gHoPB.mjs.map +1 -0
- package/dist/_chunks/{index-p_pT4i0d.js → index-DxJpZx5R.js} +15 -24
- package/dist/_chunks/index-DxJpZx5R.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/FormModal/contentType/createContentTypeSchema.d.ts +0 -2
- package/dist/server/index.js +0 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +0 -1
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/validation/model-schema.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/_chunks/index-CKPaBrjj.mjs.map +0 -1
- package/dist/_chunks/index-p_pT4i0d.js.map +0 -1
|
@@ -4,7 +4,7 @@ const React = require("react");
|
|
|
4
4
|
const strapiAdmin = require("@strapi/admin/strapi-admin");
|
|
5
5
|
const reactIntl = require("react-intl");
|
|
6
6
|
const reactRouterDom = require("react-router-dom");
|
|
7
|
-
const index$1 = require("./index-
|
|
7
|
+
const index$1 = require("./index-Cgg4JI-t.js");
|
|
8
8
|
const designSystem = require("@strapi/design-system");
|
|
9
9
|
const Icons = require("@strapi/icons");
|
|
10
10
|
const upperFirst = require("lodash/upperFirst");
|
|
@@ -4612,8 +4612,7 @@ const createContentTypeSchema = ({
|
|
|
4612
4612
|
}
|
|
4613
4613
|
}).required(strapiAdmin.translatedErrors.required.id),
|
|
4614
4614
|
draftAndPublish: yup__namespace.boolean(),
|
|
4615
|
-
kind: yup__namespace.string().oneOf(["singleType", "collectionType"])
|
|
4616
|
-
reviewWorkflows: yup__namespace.boolean()
|
|
4615
|
+
kind: yup__namespace.string().oneOf(["singleType", "collectionType"])
|
|
4617
4616
|
};
|
|
4618
4617
|
return yup__namespace.object(shape);
|
|
4619
4618
|
};
|
|
@@ -5087,20 +5086,16 @@ const FormModal = () => {
|
|
|
5087
5086
|
});
|
|
5088
5087
|
}
|
|
5089
5088
|
if (modalType === "contentType" && actionType === "edit") {
|
|
5090
|
-
const {
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
pluginOptions: {},
|
|
5101
|
-
singularName: null,
|
|
5102
|
-
pluralName: null
|
|
5103
|
-
});
|
|
5089
|
+
const { displayName, draftAndPublish, kind: kind2, pluginOptions, pluralName, singularName } = get__default.default(
|
|
5090
|
+
allDataSchema,
|
|
5091
|
+
[...pathToSchema, "schema"],
|
|
5092
|
+
{
|
|
5093
|
+
displayName: null,
|
|
5094
|
+
pluginOptions: {},
|
|
5095
|
+
singularName: null,
|
|
5096
|
+
pluralName: null
|
|
5097
|
+
}
|
|
5098
|
+
);
|
|
5104
5099
|
dispatch({
|
|
5105
5100
|
type: index$1.SET_DATA_TO_EDIT,
|
|
5106
5101
|
actionType,
|
|
@@ -5111,10 +5106,6 @@ const FormModal = () => {
|
|
|
5111
5106
|
kind: kind2,
|
|
5112
5107
|
pluginOptions,
|
|
5113
5108
|
pluralName,
|
|
5114
|
-
// because review-workflows is an EE feature the attribute does
|
|
5115
|
-
// not always exist, but the component prop-types expect a boolean,
|
|
5116
|
-
// so we have to ensure undefined is casted to false
|
|
5117
|
-
reviewWorkflows: reviewWorkflows ?? false,
|
|
5118
5109
|
singularName
|
|
5119
5110
|
}
|
|
5120
5111
|
});
|
|
@@ -6703,11 +6694,11 @@ const FormModalNavigationProvider = ({ children }) => {
|
|
|
6703
6694
|
}
|
|
6704
6695
|
);
|
|
6705
6696
|
};
|
|
6706
|
-
const ListView$1 = React.lazy(() => Promise.resolve().then(() => require("./ListView-
|
|
6697
|
+
const ListView$1 = React.lazy(() => Promise.resolve().then(() => require("./ListView-CA5plw_m.js")));
|
|
6707
6698
|
const RecursivePath = () => {
|
|
6708
6699
|
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Page.Loading, {}), children: /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Routes, { children: /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { path: `/:componentUid`, element: /* @__PURE__ */ jsxRuntime.jsx(ListView$1, {}) }) }) });
|
|
6709
6700
|
};
|
|
6710
|
-
const ListView = React.lazy(() => Promise.resolve().then(() => require("./ListView-
|
|
6701
|
+
const ListView = React.lazy(() => Promise.resolve().then(() => require("./ListView-CA5plw_m.js")));
|
|
6711
6702
|
const App = () => {
|
|
6712
6703
|
const { formatMessage } = reactIntl.useIntl();
|
|
6713
6704
|
const title = formatMessage({
|
|
@@ -6739,4 +6730,4 @@ exports.getTrad = getTrad;
|
|
|
6739
6730
|
exports.index = index;
|
|
6740
6731
|
exports.useDataManager = useDataManager;
|
|
6741
6732
|
exports.useFormModalNavigation = useFormModalNavigation;
|
|
6742
|
-
//# sourceMappingURL=index-
|
|
6733
|
+
//# sourceMappingURL=index-DxJpZx5R.js.map
|