@strapi/content-type-builder 5.1.1 → 5.3.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.
@@ -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-ENqmvu9e.js");
7
+ const index$1 = require("./index-BmIHFU11.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
- displayName,
5092
- draftAndPublish,
5093
- kind: kind2,
5094
- pluginOptions,
5095
- pluralName,
5096
- reviewWorkflows,
5097
- singularName
5098
- } = get__default.default(allDataSchema, [...pathToSchema, "schema"], {
5099
- displayName: null,
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-tF0jg8UE.js")));
6697
+ const ListView$1 = React.lazy(() => Promise.resolve().then(() => require("./ListView-DsM5_whl.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-tF0jg8UE.js")));
6701
+ const ListView = React.lazy(() => Promise.resolve().then(() => require("./ListView-DsM5_whl.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-CxLbQ8xR.js.map
6733
+ //# sourceMappingURL=index-ffxnOTTy.js.map