@strapi/content-manager 5.0.0-rc.8 → 5.0.0-rc.9
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-DL1MHO8i.js → ComponentConfigurationPage-BOKmq7mz.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-DL1MHO8i.js.map → ComponentConfigurationPage-BOKmq7mz.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-D0dyDTwq.mjs → ComponentConfigurationPage-BwnO0su2.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-D0dyDTwq.mjs.map → ComponentConfigurationPage-BwnO0su2.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-13b7S5Cq.mjs → EditConfigurationPage-DJDSIf3D.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-13b7S5Cq.mjs.map → EditConfigurationPage-DJDSIf3D.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CMaOf-A-.js → EditConfigurationPage-N3OaN53v.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CMaOf-A-.js.map → EditConfigurationPage-N3OaN53v.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-C3tIZ8F5.mjs → EditViewPage-IZbGSeL3.mjs} +19 -8
- package/dist/_chunks/EditViewPage-IZbGSeL3.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-BSVmMpRd.js → EditViewPage-l9qOdDUI.js} +19 -8
- package/dist/_chunks/EditViewPage-l9qOdDUI.js.map +1 -0
- package/dist/_chunks/{Field-DUCVth4C.js → Field-CWjyW47-.js} +89 -30
- package/dist/_chunks/Field-CWjyW47-.js.map +1 -0
- package/dist/_chunks/{Field-BvuT8cGL.mjs → Field-D3mNj-iY.mjs} +90 -31
- package/dist/_chunks/Field-D3mNj-iY.mjs.map +1 -0
- package/dist/_chunks/{Form-Cpl4W1ak.js → Form-DFXXFrJV.js} +22 -11
- package/dist/_chunks/Form-DFXXFrJV.js.map +1 -0
- package/dist/_chunks/{Form-BZmDNVr9.mjs → Form-Ddy3XYS-.mjs} +22 -11
- package/dist/_chunks/Form-Ddy3XYS-.mjs.map +1 -0
- package/dist/_chunks/{History-Cq_Hrzuu.mjs → History-BEFrLZfz.mjs} +4 -4
- package/dist/_chunks/{History-Cq_Hrzuu.mjs.map → History-BEFrLZfz.mjs.map} +1 -1
- package/dist/_chunks/{History-D4U2YISB.js → History-pesEeFFT.js} +4 -4
- package/dist/_chunks/{History-D4U2YISB.js.map → History-pesEeFFT.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-Bny6CdWe.js → ListConfigurationPage-BIoi-Sog.js} +14 -4
- package/dist/_chunks/ListConfigurationPage-BIoi-Sog.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-W-KQHmBv.mjs → ListConfigurationPage-CB_lBFVX.mjs} +14 -4
- package/dist/_chunks/ListConfigurationPage-CB_lBFVX.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-O8F1pBJo.js → ListViewPage-C6FK36UI.js} +3 -3
- package/dist/_chunks/{ListViewPage-O8F1pBJo.js.map → ListViewPage-C6FK36UI.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-HBBnJa8K.mjs → ListViewPage-DBbH7Esr.mjs} +3 -3
- package/dist/_chunks/{ListViewPage-HBBnJa8K.mjs.map → ListViewPage-DBbH7Esr.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-B-gIhHWM.mjs → NoContentTypePage-BU9Omzp4.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-B-gIhHWM.mjs.map → NoContentTypePage-BU9Omzp4.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-CQWChGPw.js → NoContentTypePage-Dod8M_xM.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-CQWChGPw.js.map → NoContentTypePage-Dod8M_xM.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-XhOPl8wx.mjs → NoPermissionsPage-B88W05rh.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-XhOPl8wx.mjs.map → NoPermissionsPage-B88W05rh.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CY46zxnM.js → NoPermissionsPage-CMLH3uMk.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CY46zxnM.js.map → NoPermissionsPage-CMLH3uMk.js.map} +1 -1
- package/dist/_chunks/{Relations-vFZ6Wasg.mjs → Relations-BBJRxopY.mjs} +4 -4
- package/dist/_chunks/{Relations-vFZ6Wasg.mjs.map → Relations-BBJRxopY.mjs.map} +1 -1
- package/dist/_chunks/{Relations-C4gGfZRv.js → Relations-OXbsEvNt.js} +4 -4
- package/dist/_chunks/{Relations-C4gGfZRv.js.map → Relations-OXbsEvNt.js.map} +1 -1
- package/dist/_chunks/{index-Dpxg3ctD.mjs → index-BgiNQ7Q9.mjs} +79 -36
- package/dist/_chunks/index-BgiNQ7Q9.mjs.map +1 -0
- package/dist/_chunks/{index-5EMXLEM_.js → index-Bj8wwbdx.js} +78 -35
- package/dist/_chunks/index-Bj8wwbdx.js.map +1 -0
- package/dist/_chunks/{layout-P3eKO1Qy.js → layout-DBvOIgWG.js} +6 -6
- package/dist/_chunks/layout-DBvOIgWG.js.map +1 -0
- package/dist/_chunks/{layout-C0INpKap.mjs → layout-LOFMsdWo.mjs} +6 -6
- package/dist/_chunks/layout-LOFMsdWo.mjs.map +1 -0
- package/dist/_chunks/{relations-B1y0K6LE.js → relations-BLilXMyN.js} +2 -2
- package/dist/_chunks/{relations-B1y0K6LE.js.map → relations-BLilXMyN.js.map} +1 -1
- package/dist/_chunks/{relations-FBRRBWeO.mjs → relations-BTQKCDqX.mjs} +2 -2
- package/dist/_chunks/{relations-FBRRBWeO.mjs.map → relations-BTQKCDqX.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +10 -22
- package/dist/admin/src/utils/validation.d.ts +4 -1
- package/dist/server/index.js +29 -18
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +29 -18
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/relations.d.ts.map +1 -1
- package/dist/server/src/policies/hasPermissions.d.ts.map +1 -1
- package/dist/server/src/services/permission-checker.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/EditViewPage-BSVmMpRd.js.map +0 -1
- package/dist/_chunks/EditViewPage-C3tIZ8F5.mjs.map +0 -1
- package/dist/_chunks/Field-BvuT8cGL.mjs.map +0 -1
- package/dist/_chunks/Field-DUCVth4C.js.map +0 -1
- package/dist/_chunks/Form-BZmDNVr9.mjs.map +0 -1
- package/dist/_chunks/Form-Cpl4W1ak.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-Bny6CdWe.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-W-KQHmBv.mjs.map +0 -1
- package/dist/_chunks/index-5EMXLEM_.js.map +0 -1
- package/dist/_chunks/index-Dpxg3ctD.mjs.map +0 -1
- package/dist/_chunks/layout-C0INpKap.mjs.map +0 -1
- package/dist/_chunks/layout-P3eKO1Qy.js.map +0 -1
@@ -2,12 +2,12 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
3
3
|
import { useState, useEffect, useCallback, memo } from "react";
|
4
4
|
import { useStrapiApp, createContext, useField, useNotification, useForm, useAPIErrorHandler, useQueryParams, useFocusInputField, InputRenderer as InputRenderer$1 } from "@strapi/admin/strapi-admin";
|
5
|
-
import { Box, SingleSelect, SingleSelectOption, Typography, Flex, BaseLink, Button, Popover, Field, Tooltip, IconButton, useComposedRefs, Portal, FocusTrap, Divider, VisuallyHidden, Grid as Grid$1, Accordion, TextButton,
|
5
|
+
import { Box, SingleSelect, SingleSelectOption, Typography, Flex, BaseLink, Button, Popover, Field, Tooltip, IconButton, useComposedRefs, Portal, FocusTrap, Divider, VisuallyHidden, Grid as Grid$1, Accordion, TextButton, 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-BgiNQ7Q9.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-BBJRxopY.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";
|
@@ -2672,7 +2672,18 @@ const NonRepeatableComponent = ({
|
|
2672
2672
|
children: /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "stretch", gap: 6, children: layout.map((row, index) => {
|
2673
2673
|
return /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
2674
2674
|
const completeFieldName = `${name2}.${field.name}`;
|
2675
|
-
return /* @__PURE__ */ jsx(
|
2675
|
+
return /* @__PURE__ */ jsx(
|
2676
|
+
Grid$1.Item,
|
2677
|
+
{
|
2678
|
+
col: size,
|
2679
|
+
s: 12,
|
2680
|
+
xs: 12,
|
2681
|
+
direction: "column",
|
2682
|
+
alignItems: "stretch",
|
2683
|
+
children: children({ ...field, name: completeFieldName })
|
2684
|
+
},
|
2685
|
+
completeFieldName
|
2686
|
+
);
|
2676
2687
|
}) }, index);
|
2677
2688
|
}) })
|
2678
2689
|
}
|
@@ -2850,7 +2861,18 @@ const RepeatableComponent = ({
|
|
2850
2861
|
children: layout.map((row, index2) => {
|
2851
2862
|
return /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
2852
2863
|
const completeFieldName = `${nameWithIndex}.${field.name}`;
|
2853
|
-
return /* @__PURE__ */ jsx(
|
2864
|
+
return /* @__PURE__ */ jsx(
|
2865
|
+
Grid$1.Item,
|
2866
|
+
{
|
2867
|
+
col: size,
|
2868
|
+
s: 12,
|
2869
|
+
xs: 12,
|
2870
|
+
direction: "column",
|
2871
|
+
alignItems: "stretch",
|
2872
|
+
children: children({ ...field, name: completeFieldName })
|
2873
|
+
},
|
2874
|
+
completeFieldName
|
2875
|
+
);
|
2854
2876
|
}) }, index2);
|
2855
2877
|
})
|
2856
2878
|
}
|
@@ -2945,7 +2967,7 @@ const Component = ({
|
|
2945
2967
|
/* @__PURE__ */ jsx(
|
2946
2968
|
IconButton,
|
2947
2969
|
{
|
2948
|
-
|
2970
|
+
variant: "ghost",
|
2949
2971
|
onClick: onDeleteComponent,
|
2950
2972
|
label: formatMessage({
|
2951
2973
|
id: getTranslation("containers.Edit.delete"),
|
@@ -2958,7 +2980,7 @@ const Component = ({
|
|
2958
2980
|
IconButton,
|
2959
2981
|
{
|
2960
2982
|
ref: composedAccordionRefs,
|
2961
|
-
|
2983
|
+
variant: "ghost",
|
2962
2984
|
onClick: (e) => e.stopPropagation(),
|
2963
2985
|
"data-handler-id": handlerId,
|
2964
2986
|
label: formatMessage({
|
@@ -3028,7 +3050,7 @@ const ComponentInput = ({
|
|
3028
3050
|
id: getTranslation("components.reset-entry"),
|
3029
3051
|
defaultMessage: "Reset Entry"
|
3030
3052
|
}),
|
3031
|
-
|
3053
|
+
variant: "ghost",
|
3032
3054
|
onClick: () => {
|
3033
3055
|
field.onChange(name2, null);
|
3034
3056
|
},
|
@@ -3057,11 +3079,8 @@ const AddComponentButton = ({
|
|
3057
3079
|
onClick,
|
3058
3080
|
disabled: isDisabled,
|
3059
3081
|
background: "neutral0",
|
3060
|
-
paddingTop: 3,
|
3061
|
-
paddingBottom: 3,
|
3062
|
-
paddingLeft: 4,
|
3063
|
-
paddingRight: 4,
|
3064
3082
|
style: { cursor: isDisabled ? "not-allowed" : "pointer" },
|
3083
|
+
variant: "tertiary",
|
3065
3084
|
children: /* @__PURE__ */ jsxs(Flex, { tag: "span", gap: 2, children: [
|
3066
3085
|
/* @__PURE__ */ jsx(StyledAddIcon, { "aria-hidden": true, $isOpen: isOpen, $hasError: hasError && !isOpen }),
|
3067
3086
|
/* @__PURE__ */ jsx(
|
@@ -3090,10 +3109,11 @@ const StyledAddIcon = styled(PlusCircle)`
|
|
3090
3109
|
}
|
3091
3110
|
`;
|
3092
3111
|
const AddComponentTitle = styled(Typography)``;
|
3093
|
-
const StyledButton = styled(
|
3112
|
+
const StyledButton = styled(Button)`
|
3094
3113
|
border-radius: 26px;
|
3095
3114
|
border-color: ${({ theme }) => theme.colors.neutral150};
|
3096
3115
|
box-shadow: ${({ theme }) => theme.shadows.filterShadow};
|
3116
|
+
height: 5rem;
|
3097
3117
|
|
3098
3118
|
&:hover {
|
3099
3119
|
${AddComponentTitle} {
|
@@ -3105,7 +3125,7 @@ const StyledButton = styled(BaseButton)`
|
|
3105
3125
|
fill: ${({ theme }) => theme.colors.primary600};
|
3106
3126
|
}
|
3107
3127
|
> path {
|
3108
|
-
fill: ${({ theme }) => theme.colors.
|
3128
|
+
fill: ${({ theme }) => theme.colors.primary600};
|
3109
3129
|
}
|
3110
3130
|
}
|
3111
3131
|
}
|
@@ -4243,7 +4263,7 @@ const EditorLayout = ({
|
|
4243
4263
|
justifyContent: "flex-end",
|
4244
4264
|
shrink: 0,
|
4245
4265
|
width: "100%",
|
4246
|
-
children: /* @__PURE__ */ jsxs(ExpandButton$1, { onClick: onCollapse, children: [
|
4266
|
+
children: /* @__PURE__ */ jsxs(ExpandButton$1, { onClick: onCollapse, variant: "tertiary", size: "M", children: [
|
4247
4267
|
/* @__PURE__ */ jsx(Typography, { children: formatMessage({
|
4248
4268
|
id: "components.Wysiwyg.collapse",
|
4249
4269
|
defaultMessage: "Collapse"
|
@@ -4261,12 +4281,14 @@ const EditorLayout = ({
|
|
4261
4281
|
) }) });
|
4262
4282
|
}
|
4263
4283
|
return /* @__PURE__ */ jsx(
|
4264
|
-
|
4284
|
+
Flex,
|
4265
4285
|
{
|
4266
4286
|
borderColor: error ? "danger600" : "neutral200",
|
4267
4287
|
borderStyle: "solid",
|
4268
4288
|
borderWidth: "1px",
|
4269
4289
|
hasRadius: true,
|
4290
|
+
direction: "column",
|
4291
|
+
alignItems: "stretch",
|
4270
4292
|
children
|
4271
4293
|
}
|
4272
4294
|
);
|
@@ -4277,11 +4299,19 @@ const ExpandWrapper = styled(Flex)`
|
|
4277
4299
|
const BoxWithBorder = styled(Box)`
|
4278
4300
|
border-right: 1px solid ${({ theme }) => theme.colors.neutral200};
|
4279
4301
|
`;
|
4280
|
-
const ExpandButton$1 = styled(
|
4302
|
+
const ExpandButton$1 = styled(Button)`
|
4281
4303
|
background-color: transparent;
|
4282
4304
|
border: none;
|
4283
4305
|
align-items: center;
|
4284
4306
|
|
4307
|
+
& > span {
|
4308
|
+
display: flex;
|
4309
|
+
justify-content: space-between;
|
4310
|
+
align-items: center;
|
4311
|
+
width: 100%;
|
4312
|
+
font-weight: ${({ theme }) => theme.fontWeights.regular};
|
4313
|
+
}
|
4314
|
+
|
4285
4315
|
svg {
|
4286
4316
|
margin-left: ${({ theme }) => `${theme.spaces[2]}`};
|
4287
4317
|
|
@@ -4577,11 +4607,19 @@ const MoreButton = styled(IconButton)`
|
|
4577
4607
|
const IconButtonGroupMargin = styled(IconButtonGroup)`
|
4578
4608
|
margin-right: ${({ theme }) => `${theme.spaces[2]}`};
|
4579
4609
|
`;
|
4580
|
-
const ExpandButton = styled(
|
4610
|
+
const ExpandButton = styled(Button)`
|
4581
4611
|
background-color: transparent;
|
4582
4612
|
border: none;
|
4583
4613
|
align-items: center;
|
4584
4614
|
|
4615
|
+
& > span {
|
4616
|
+
display: flex;
|
4617
|
+
justify-content: space-between;
|
4618
|
+
align-items: center;
|
4619
|
+
width: 100%;
|
4620
|
+
font-weight: ${({ theme }) => theme.fontWeights.regular};
|
4621
|
+
}
|
4622
|
+
|
4585
4623
|
svg {
|
4586
4624
|
margin-left: ${({ theme }) => `${theme.spaces[2]}`};
|
4587
4625
|
path {
|
@@ -4593,7 +4631,7 @@ const ExpandButton = styled(BaseButton)`
|
|
4593
4631
|
`;
|
4594
4632
|
const WysiwygFooter = ({ onToggleExpand }) => {
|
4595
4633
|
const { formatMessage } = useIntl();
|
4596
|
-
return /* @__PURE__ */ jsx(Box, { padding: 2, background: "neutral100", borderRadius: `0 0 0.4rem 0.4rem`, children: /* @__PURE__ */ jsx(Flex, { justifyContent: "flex-end", alignItems: "flex-end", children: /* @__PURE__ */ jsxs(ExpandButton, { id: "expand", onClick: onToggleExpand, children: [
|
4634
|
+
return /* @__PURE__ */ jsx(Box, { padding: 2, background: "neutral100", borderRadius: `0 0 0.4rem 0.4rem`, children: /* @__PURE__ */ jsx(Flex, { justifyContent: "flex-end", alignItems: "flex-end", children: /* @__PURE__ */ jsxs(ExpandButton, { id: "expand", onClick: onToggleExpand, variant: "tertiary", size: "M", children: [
|
4597
4635
|
/* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: formatMessage({
|
4598
4636
|
id: "components.WysiwygBottomControls.fullscreen",
|
4599
4637
|
defaultMessage: "Expand"
|
@@ -4630,14 +4668,23 @@ const WysiwygNav = ({
|
|
4630
4668
|
borderRadius: `0.4rem 0.4rem 0 0`,
|
4631
4669
|
children: [
|
4632
4670
|
/* @__PURE__ */ jsxs(Flex, { children: [
|
4633
|
-
/* @__PURE__ */ jsx(Field.Root, { children: /* @__PURE__ */ jsxs(
|
4634
|
-
|
4635
|
-
|
4636
|
-
|
4637
|
-
|
4638
|
-
|
4639
|
-
|
4640
|
-
|
4671
|
+
/* @__PURE__ */ jsx(Field.Root, { children: /* @__PURE__ */ jsxs(
|
4672
|
+
SingleSelect,
|
4673
|
+
{
|
4674
|
+
disabled: true,
|
4675
|
+
placeholder: selectPlaceholder,
|
4676
|
+
"aria-label": selectPlaceholder,
|
4677
|
+
size: "S",
|
4678
|
+
children: [
|
4679
|
+
/* @__PURE__ */ jsx(SingleSelectOption, { value: "h1", children: "h1" }),
|
4680
|
+
/* @__PURE__ */ jsx(SingleSelectOption, { value: "h2", children: "h2" }),
|
4681
|
+
/* @__PURE__ */ jsx(SingleSelectOption, { value: "h3", children: "h3" }),
|
4682
|
+
/* @__PURE__ */ jsx(SingleSelectOption, { value: "h4", children: "h4" }),
|
4683
|
+
/* @__PURE__ */ jsx(SingleSelectOption, { value: "h5", children: "h5" }),
|
4684
|
+
/* @__PURE__ */ jsx(SingleSelectOption, { value: "h6", children: "h6" })
|
4685
|
+
]
|
4686
|
+
}
|
4687
|
+
) }),
|
4641
4688
|
/* @__PURE__ */ jsxs(MainButtons, { children: [
|
4642
4689
|
/* @__PURE__ */ jsx(CustomIconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(Bold, {}) }),
|
4643
4690
|
/* @__PURE__ */ jsx(CustomIconButton, { disabled: true, label: "Italic", name: "Italic", children: /* @__PURE__ */ jsx(Italic, {}) }),
|
@@ -4668,6 +4715,7 @@ const WysiwygNav = ({
|
|
4668
4715
|
placeholder: selectPlaceholder,
|
4669
4716
|
"aria-label": selectPlaceholder,
|
4670
4717
|
onChange: (value) => onActionClick(value, editorRef),
|
4718
|
+
size: "S",
|
4671
4719
|
children: [
|
4672
4720
|
/* @__PURE__ */ jsx(SingleSelectOption, { value: "h1", children: "h1" }),
|
4673
4721
|
/* @__PURE__ */ jsx(SingleSelectOption, { value: "h2", children: "h2" }),
|
@@ -5103,7 +5151,7 @@ const DynamicComponent = ({
|
|
5103
5151
|
/* @__PURE__ */ jsx(
|
5104
5152
|
IconButton,
|
5105
5153
|
{
|
5106
|
-
|
5154
|
+
variant: "ghost",
|
5107
5155
|
label: formatMessage(
|
5108
5156
|
{
|
5109
5157
|
id: getTranslation("components.DynamicZone.delete-label"),
|
@@ -5118,7 +5166,7 @@ const DynamicComponent = ({
|
|
5118
5166
|
/* @__PURE__ */ jsx(
|
5119
5167
|
IconButton,
|
5120
5168
|
{
|
5121
|
-
|
5169
|
+
variant: "ghost",
|
5122
5170
|
onClick: (e) => e.stopPropagation(),
|
5123
5171
|
"data-handler-id": handlerId,
|
5124
5172
|
ref: dragRef,
|
@@ -5179,7 +5227,18 @@ const DynamicComponent = ({
|
|
5179
5227
|
] }),
|
5180
5228
|
/* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(AccordionContentRadius, { background: "neutral0", children: /* @__PURE__ */ jsx(Box, { paddingLeft: 6, paddingRight: 6, paddingTop: 6, paddingBottom: 6, children: components[componentUid]?.layout?.map((row, rowInd) => /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
5181
5229
|
const fieldName = `${name2}.${index}.${field.name}`;
|
5182
|
-
return /* @__PURE__ */ jsx(
|
5230
|
+
return /* @__PURE__ */ jsx(
|
5231
|
+
Grid$1.Item,
|
5232
|
+
{
|
5233
|
+
col: size,
|
5234
|
+
s: 12,
|
5235
|
+
xs: 12,
|
5236
|
+
direction: "column",
|
5237
|
+
alignItems: "stretch",
|
5238
|
+
children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...field, name: fieldName })
|
5239
|
+
},
|
5240
|
+
fieldName
|
5241
|
+
);
|
5183
5242
|
}) }, rowInd)) }) }) })
|
5184
5243
|
] }) }) })
|
5185
5244
|
] });
|
@@ -5488,4 +5547,4 @@ export {
|
|
5488
5547
|
transformDocument as t,
|
5489
5548
|
useLazyComponents as u
|
5490
5549
|
};
|
5491
|
-
//# sourceMappingURL=Field-
|
5550
|
+
//# sourceMappingURL=Field-D3mNj-iY.mjs.map
|