@strapi/content-manager 5.0.0-beta.15 → 5.0.0-beta.17
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/{ComponentConfigurationPage-CIV5KTDd.mjs → ComponentConfigurationPage-BBypxwK0.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-CIV5KTDd.mjs.map → ComponentConfigurationPage-BBypxwK0.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-CT5ESlS8.js → ComponentConfigurationPage-gbozMFBg.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-CT5ESlS8.js.map → ComponentConfigurationPage-gbozMFBg.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CbUrKEvt.mjs → EditConfigurationPage-B4LHU9oC.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CbUrKEvt.mjs.map → EditConfigurationPage-B4LHU9oC.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-B9eK4s0C.js → EditConfigurationPage-BmKO1WSx.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-B9eK4s0C.js.map → EditConfigurationPage-BmKO1WSx.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-CNxKvDWG.mjs → EditViewPage-BQ0vaN0X.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-CNxKvDWG.mjs.map → EditViewPage-BQ0vaN0X.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-ZFFpGTi1.js → EditViewPage-yD5EpbfL.js} +3 -3
- package/dist/_chunks/{EditViewPage-ZFFpGTi1.js.map → EditViewPage-yD5EpbfL.js.map} +1 -1
- package/dist/_chunks/{Field-CoKJzMJy.mjs → Field-Bh0U91k2.mjs} +28 -29
- package/dist/_chunks/Field-Bh0U91k2.mjs.map +1 -0
- package/dist/_chunks/{Field-B8TdeKyG.js → Field-CNNcAlpg.js} +28 -29
- package/dist/_chunks/Field-CNNcAlpg.js.map +1 -0
- package/dist/_chunks/{Form-Cp7cl_DX.mjs → Form-Dbql7JyD.mjs} +2 -2
- package/dist/_chunks/{Form-Cp7cl_DX.mjs.map → Form-Dbql7JyD.mjs.map} +1 -1
- package/dist/_chunks/{Form-DGEgQrD9.js → Form-crbjAw8s.js} +2 -2
- package/dist/_chunks/{Form-DGEgQrD9.js.map → Form-crbjAw8s.js.map} +1 -1
- package/dist/_chunks/{History-8hl2aMSu.js → History-BkzgS9Yk.js} +20 -5
- package/dist/_chunks/{History-8hl2aMSu.js.map → History-BkzgS9Yk.js.map} +1 -1
- package/dist/_chunks/{History-BbRlhJm8.mjs → History-NIf1NGaV.mjs} +20 -5
- package/dist/_chunks/{History-BbRlhJm8.mjs.map → History-NIf1NGaV.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-B0SrYxir.js → ListConfigurationPage-D0YwFY3X.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-B0SrYxir.js.map → ListConfigurationPage-D0YwFY3X.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-CIJxIG-0.mjs → ListConfigurationPage-DKH7ower.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-CIJxIG-0.mjs.map → ListConfigurationPage-DKH7ower.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-BrBkvnIR.js → ListViewPage-CSHWhYuA.js} +3 -3
- package/dist/_chunks/{ListViewPage-BrBkvnIR.js.map → ListViewPage-CSHWhYuA.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-XuZjL8Dy.mjs → ListViewPage-CdPbsFhH.mjs} +3 -3
- package/dist/_chunks/{ListViewPage-XuZjL8Dy.mjs.map → ListViewPage-CdPbsFhH.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-Cko7J2uL.mjs → NoContentTypePage-BEVa3wBy.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-Cko7J2uL.mjs.map → NoContentTypePage-BEVa3wBy.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BnfZ41ew.js → NoContentTypePage-DhOVAN8x.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BnfZ41ew.js.map → NoContentTypePage-DhOVAN8x.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-PDUMiLZR.js → NoPermissionsPage-C4MU93ll.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-PDUMiLZR.js.map → NoPermissionsPage-C4MU93ll.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DGqvRLcL.mjs → NoPermissionsPage-Cru53stp.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DGqvRLcL.mjs.map → NoPermissionsPage-Cru53stp.mjs.map} +1 -1
- package/dist/_chunks/{Relations-q1gx_IUY.mjs → Relations-BE7E1d_g.mjs} +3 -3
- package/dist/_chunks/{Relations-q1gx_IUY.mjs.map → Relations-BE7E1d_g.mjs.map} +1 -1
- package/dist/_chunks/{Relations-CHpyDRbn.js → Relations-D0-7F9sP.js} +3 -3
- package/dist/_chunks/{Relations-CHpyDRbn.js.map → Relations-D0-7F9sP.js.map} +1 -1
- package/dist/_chunks/{index-Dwfr7Yl6.js → index-BWNiQx9k.js} +38 -16
- package/dist/_chunks/index-BWNiQx9k.js.map +1 -0
- package/dist/_chunks/{index-i0e-9kC2.mjs → index-Btt7L-Eo.mjs} +38 -16
- package/dist/_chunks/index-Btt7L-Eo.mjs.map +1 -0
- package/dist/_chunks/{layout-BTWX91FZ.js → layout-B27hMYAw.js} +6 -6
- package/dist/_chunks/layout-B27hMYAw.js.map +1 -0
- package/dist/_chunks/{layout-CgQ1H1CI.mjs → layout-BGNKdv7P.mjs} +6 -6
- package/dist/_chunks/layout-BGNKdv7P.mjs.map +1 -0
- package/dist/_chunks/{relations-DEB5RZ_I.mjs → relations-BUlMEYTH.mjs} +2 -2
- package/dist/_chunks/{relations-DEB5RZ_I.mjs.map → relations-BUlMEYTH.mjs.map} +1 -1
- package/dist/_chunks/{relations-DTDRMfRE.js → relations-CyI84LjX.js} +2 -2
- package/dist/_chunks/{relations-DTDRMfRE.js.map → relations-CyI84LjX.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +6 -6
- package/dist/_chunks/Field-B8TdeKyG.js.map +0 -1
- package/dist/_chunks/Field-CoKJzMJy.mjs.map +0 -1
- package/dist/_chunks/index-Dwfr7Yl6.js.map +0 -1
- package/dist/_chunks/index-i0e-9kC2.mjs.map +0 -1
- package/dist/_chunks/layout-BTWX91FZ.js.map +0 -1
- package/dist/_chunks/layout-CgQ1H1CI.mjs.map +0 -1
@@ -5,9 +5,9 @@ import { useStrapiApp, createContext, useField, useNotification, useForm, useAPI
|
|
5
5
|
import { Box, SingleSelect, SingleSelectOption, Typography, Flex, BaseLink, Button, Popover, Field, Tooltip, IconButton, useComposedRefs, Portal, FocusTrap, Divider, VisuallyHidden, Grid as Grid$1, Accordion, TextButton, BaseButton, TextInput, IconButtonGroup, Menu, MenuItem } from "@strapi/design-system";
|
6
6
|
import pipe$1 from "lodash/fp/pipe";
|
7
7
|
import { useIntl } from "react-intl";
|
8
|
-
import { m as DOCUMENT_META_FIELDS, g as getTranslation, c as useDoc, e as contentManagerApi, d as buildValidParams, f as useDocumentRBAC, n as useDocLayout } from "./index-
|
8
|
+
import { m as DOCUMENT_META_FIELDS, g as getTranslation, c as useDoc, e as contentManagerApi, d as buildValidParams, f as useDocumentRBAC, n as useDocLayout } from "./index-Btt7L-Eo.mjs";
|
9
9
|
import { generateNKeysBetween } from "fractional-indexing";
|
10
|
-
import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-
|
10
|
+
import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-BE7E1d_g.mjs";
|
11
11
|
import { Code, HeadingOne, HeadingTwo, HeadingThree, HeadingFour, HeadingFive, HeadingSix, Image as Image$1, NumberList, BulletList, Paragraph, Quotes, Link as Link$1, Drag, Collapse, Bold, Italic, Underline, StrikeThrough, Expand, PlusCircle, Plus, Trash, EyeStriked, CheckCircle, WarningCircle, Loader, ArrowClockwise, More } from "@strapi/icons";
|
12
12
|
import { styled, css, keyframes } from "styled-components";
|
13
13
|
import { C as ComponentIcon, a as COMPONENT_ICONS } from "./ComponentIcon-u4bIXTFY.mjs";
|
@@ -2592,30 +2592,27 @@ const createDefaultForm = (contentType, components = {}) => {
|
|
2592
2592
|
const Initializer = ({ disabled, name: name2, onClick }) => {
|
2593
2593
|
const { formatMessage } = useIntl();
|
2594
2594
|
const field = useField(name2);
|
2595
|
-
return /* @__PURE__ */
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
2603
|
-
|
2604
|
-
|
2605
|
-
|
2606
|
-
|
2607
|
-
|
2608
|
-
|
2609
|
-
|
2610
|
-
|
2611
|
-
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2615
|
-
|
2616
|
-
),
|
2617
|
-
field.error && /* @__PURE__ */ jsx(Typography, { textColor: "danger600", variant: "pi", children: field.error })
|
2618
|
-
] });
|
2595
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
2596
|
+
Box,
|
2597
|
+
{
|
2598
|
+
tag: "button",
|
2599
|
+
background: "neutral100",
|
2600
|
+
borderColor: field.error ? "danger600" : "neutral200",
|
2601
|
+
hasRadius: true,
|
2602
|
+
disabled,
|
2603
|
+
onClick,
|
2604
|
+
paddingTop: 9,
|
2605
|
+
paddingBottom: 9,
|
2606
|
+
type: "button",
|
2607
|
+
children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
|
2608
|
+
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(CircleIcon, {}) }),
|
2609
|
+
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(Typography, { textColor: "primary600", variant: "pi", fontWeight: "bold", children: formatMessage({
|
2610
|
+
id: getTranslation("components.empty-repeatable"),
|
2611
|
+
defaultMessage: "No entry yet. Click on the button below to add one."
|
2612
|
+
}) }) })
|
2613
|
+
] })
|
2614
|
+
}
|
2615
|
+
) });
|
2619
2616
|
};
|
2620
2617
|
const CircleIcon = styled(PlusCircle)`
|
2621
2618
|
width: 2.4rem;
|
@@ -4984,7 +4981,9 @@ const useFieldHint = (hint = void 0, attribute) => {
|
|
4984
4981
|
if (!maximum && !minimum) {
|
4985
4982
|
return hint;
|
4986
4983
|
}
|
4987
|
-
const units = !["biginteger", "integer", "number"].includes(
|
4984
|
+
const units = !["biginteger", "integer", "number", "dynamiczone", "component"].includes(
|
4985
|
+
attribute.type
|
4986
|
+
) ? formatMessage(
|
4988
4987
|
{
|
4989
4988
|
id: "content-manager.form.Input.hint.character.unit",
|
4990
4989
|
defaultMessage: "{maxValue, plural, one { character} other { characters}}"
|
@@ -5347,7 +5346,7 @@ const DynamicZone = ({
|
|
5347
5346
|
const handleRemoveComponent = (name22, currentIndex) => () => {
|
5348
5347
|
removeFieldRow(name22, currentIndex);
|
5349
5348
|
};
|
5350
|
-
const hasError = error !== void 0
|
5349
|
+
const hasError = error !== void 0;
|
5351
5350
|
const renderButtonLabel = () => {
|
5352
5351
|
if (addComponentIsOpen) {
|
5353
5352
|
return formatMessage({ id: "app.utils.close-label", defaultMessage: "Close" });
|
@@ -5463,4 +5462,4 @@ export {
|
|
5463
5462
|
transformDocument as t,
|
5464
5463
|
useLazyComponents as u
|
5465
5464
|
};
|
5466
|
-
//# sourceMappingURL=Field-
|
5465
|
+
//# sourceMappingURL=Field-Bh0U91k2.mjs.map
|