@strapi/content-type-builder 5.0.6 → 5.1.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-DNrG3LP8.js → ListView-D5LU5Y7e.js} +2 -2
- package/dist/_chunks/{ListView-DNrG3LP8.js.map → ListView-D5LU5Y7e.js.map} +1 -1
- package/dist/_chunks/{ListView-DzU2cU42.mjs → ListView-Dndxuk13.mjs} +2 -2
- package/dist/_chunks/{ListView-DzU2cU42.mjs.map → ListView-Dndxuk13.mjs.map} +1 -1
- package/dist/_chunks/{index-BOYSLPpG.js → index-99gVn7P1.js} +8 -5
- package/dist/_chunks/{index-BOYSLPpG.js.map → index-99gVn7P1.js.map} +1 -1
- package/dist/_chunks/{index-BgNIUYf6.mjs → index-BOhrbpg6.mjs} +8 -5
- package/dist/_chunks/{index-BgNIUYf6.mjs.map → index-BOhrbpg6.mjs.map} +1 -1
- package/dist/_chunks/{index-Bp9_1YUM.js → index-BPHnVIJQ.js} +4 -4
- package/dist/_chunks/{index-Bp9_1YUM.js.map → index-BPHnVIJQ.js.map} +1 -1
- package/dist/_chunks/{index-N6VHEZs0.mjs → index-DzOmixPm.mjs} +4 -4
- package/dist/_chunks/{index-N6VHEZs0.mjs.map → index-DzOmixPm.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/src/utils/attributes.d.ts +241 -1
- package/dist/server/src/utils/attributes.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -4,7 +4,7 @@ import { createContext, useContext, useState, Fragment, useRef, useEffect, memo,
|
|
|
4
4
|
import { useNotification, useTracking, useStrapiApp, ConfirmDialog, translatedErrors, useGuidedTour, useAppInfo, useAuth, useFetchClient, Page, Layouts } from "@strapi/admin/strapi-admin";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { NavLink, Link, useNavigate, useLocation, useMatch, Navigate, Routes, Route } from "react-router-dom";
|
|
7
|
-
import { p as pluginId, n as nameToSlug, O as ON_CHANGE_RELATION_TARGET, a as ON_CHANGE_RELATION_TYPE, g as getRelationType, M as MAX_COMPONENT_DEPTH, c as createComponentUid, b as createUid, i as initialState, S as SET_DATA_TO_EDIT, d as SET_DYNAMIC_ZONE_DATA_SCHEMA, e as SET_CUSTOM_FIELD_DATA_SCHEMA, f as SET_ATTRIBUTE_DATA_SCHEMA, R as RESET_PROPS, h as SET_ERRORS, j as ON_CHANGE, k as RESET_PROPS_AND_SET_THE_FORM_FOR_ADDING_A_COMPO_TO_A_DZ, l as RESET_PROPS_AND_SET_FORM_FOR_ADDING_AN_EXISTING_COMPO, m as RESET_PROPS_AND_SAVE_CURRENT_DATA, o as initialState$1, q as makeUnique, u as useAutoReloadOverlayBlocker, G as GET_DATA_SUCCEEDED, r as RELOAD_PLUGIN, s as retrieveComponentsFromSchema, t as SET_MODIFIED_DATA, A as ADD_CUSTOM_FIELD_ATTRIBUTE, E as EDIT_CUSTOM_FIELD_ATTRIBUTE, v as ADD_CREATED_COMPONENT_TO_DYNAMIC_ZONE, C as CHANGE_DYNAMIC_ZONE_COMPONENTS, D as DELETE_NOT_SAVED_TYPE, w as REMOVE_COMPONENT_FROM_DYNAMIC_ZONE, U as UPDATE_INITIAL_STATE, x as UPDATE_SCHEMA, y as EDIT_ATTRIBUTE, z as ADD_ATTRIBUTE, B as CREATE_SCHEMA, F as CREATE_COMPONENT_SCHEMA, H as REMOVE_FIELD_FROM_DISPLAYED_COMPONENT, I as REMOVE_FIELD, P as PERMISSIONS, J as AutoReloadOverlayBlockerProvider } from "./index-
|
|
7
|
+
import { p as pluginId, n as nameToSlug, O as ON_CHANGE_RELATION_TARGET, a as ON_CHANGE_RELATION_TYPE, g as getRelationType, M as MAX_COMPONENT_DEPTH, c as createComponentUid, b as createUid, i as initialState, S as SET_DATA_TO_EDIT, d as SET_DYNAMIC_ZONE_DATA_SCHEMA, e as SET_CUSTOM_FIELD_DATA_SCHEMA, f as SET_ATTRIBUTE_DATA_SCHEMA, R as RESET_PROPS, h as SET_ERRORS, j as ON_CHANGE, k as RESET_PROPS_AND_SET_THE_FORM_FOR_ADDING_A_COMPO_TO_A_DZ, l as RESET_PROPS_AND_SET_FORM_FOR_ADDING_AN_EXISTING_COMPO, m as RESET_PROPS_AND_SAVE_CURRENT_DATA, o as initialState$1, q as makeUnique, u as useAutoReloadOverlayBlocker, G as GET_DATA_SUCCEEDED, r as RELOAD_PLUGIN, s as retrieveComponentsFromSchema, t as SET_MODIFIED_DATA, A as ADD_CUSTOM_FIELD_ATTRIBUTE, E as EDIT_CUSTOM_FIELD_ATTRIBUTE, v as ADD_CREATED_COMPONENT_TO_DYNAMIC_ZONE, C as CHANGE_DYNAMIC_ZONE_COMPONENTS, D as DELETE_NOT_SAVED_TYPE, w as REMOVE_COMPONENT_FROM_DYNAMIC_ZONE, U as UPDATE_INITIAL_STATE, x as UPDATE_SCHEMA, y as EDIT_ATTRIBUTE, z as ADD_ATTRIBUTE, B as CREATE_SCHEMA, F as CREATE_COMPONENT_SCHEMA, H as REMOVE_FIELD_FROM_DISPLAYED_COMPONENT, I as REMOVE_FIELD, P as PERMISSIONS, J as AutoReloadOverlayBlockerProvider } from "./index-DzOmixPm.mjs";
|
|
8
8
|
import { useFilter, useCollator, SubNavLink, SubNav, SubNavHeader, SubNavSections, SubNavSection, SubNavLinkSection, Box, TextButton, Field, MultiSelectNested, Flex, Typography, KeyboardNavigable, Grid, LinkButton, Link as Link$1, Modal, Tabs, Divider, SingleSelect, SingleSelectOption, inputFocusStyle, Checkbox, TextInput, NumberInput, Dialog, Button, Breadcrumbs, Crumb, Searchbar, IconButton, Tooltip, VisuallyHidden, TimePicker, Textarea, DatePicker, DateTimePicker, Toggle, JSONInput, Menu, Combobox, ComboboxOption } from "@strapi/design-system";
|
|
9
9
|
import * as Icons from "@strapi/icons";
|
|
10
10
|
import { Plus, Sparkle, ArrowLeft, Search, Trash, Eye, EyeStriked, OneWay, OneToOne, OneToMany, ManyToOne, ManyToMany, ManyWays } from "@strapi/icons";
|
|
@@ -4946,6 +4946,9 @@ const getFormInputNames = (form) => form.reduce((acc, current) => {
|
|
|
4946
4946
|
}, []);
|
|
4947
4947
|
return [...acc, ...names];
|
|
4948
4948
|
}, []);
|
|
4949
|
+
const FormComponent = styled.form`
|
|
4950
|
+
overflow: auto;
|
|
4951
|
+
`;
|
|
4949
4952
|
const FormModal = () => {
|
|
4950
4953
|
const {
|
|
4951
4954
|
onCloseModal,
|
|
@@ -5664,7 +5667,7 @@ const FormModal = () => {
|
|
|
5664
5667
|
kind: schemaKind || "collectionType"
|
|
5665
5668
|
}
|
|
5666
5669
|
),
|
|
5667
|
-
!isPickingAttribute && /* @__PURE__ */ jsxs(
|
|
5670
|
+
!isPickingAttribute && /* @__PURE__ */ jsxs(FormComponent, { onSubmit: handleSubmit, children: [
|
|
5668
5671
|
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsxs(
|
|
5669
5672
|
Tabs.Root,
|
|
5670
5673
|
{
|
|
@@ -6661,11 +6664,11 @@ const FormModalNavigationProvider = ({ children }) => {
|
|
|
6661
6664
|
}
|
|
6662
6665
|
);
|
|
6663
6666
|
};
|
|
6664
|
-
const ListView$1 = lazy(() => import("./ListView-
|
|
6667
|
+
const ListView$1 = lazy(() => import("./ListView-Dndxuk13.mjs"));
|
|
6665
6668
|
const RecursivePath = () => {
|
|
6666
6669
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Page.Loading, {}), children: /* @__PURE__ */ jsx(Routes, { children: /* @__PURE__ */ jsx(Route, { path: `/:componentUid`, element: /* @__PURE__ */ jsx(ListView$1, {}) }) }) });
|
|
6667
6670
|
};
|
|
6668
|
-
const ListView = lazy(() => import("./ListView-
|
|
6671
|
+
const ListView = lazy(() => import("./ListView-Dndxuk13.mjs"));
|
|
6669
6672
|
const App = () => {
|
|
6670
6673
|
const { formatMessage } = useIntl();
|
|
6671
6674
|
const title = formatMessage({
|
|
@@ -6699,4 +6702,4 @@ export {
|
|
|
6699
6702
|
index as i,
|
|
6700
6703
|
useDataManager as u
|
|
6701
6704
|
};
|
|
6702
|
-
//# sourceMappingURL=index-
|
|
6705
|
+
//# sourceMappingURL=index-BOhrbpg6.mjs.map
|