@strapi/content-manager 5.0.0-rc.7 → 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-BNxtMIfV.js → ComponentConfigurationPage-BOKmq7mz.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-BNxtMIfV.js.map → ComponentConfigurationPage-BOKmq7mz.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-BWOQWCv2.mjs → ComponentConfigurationPage-BwnO0su2.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-BWOQWCv2.mjs.map → ComponentConfigurationPage-BwnO0su2.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-GTp-Ucnw.mjs → EditConfigurationPage-DJDSIf3D.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-GTp-Ucnw.mjs.map → EditConfigurationPage-DJDSIf3D.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-D340bYlT.js → EditConfigurationPage-N3OaN53v.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-D340bYlT.js.map → EditConfigurationPage-N3OaN53v.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-BVMS5hT-.mjs → EditViewPage-IZbGSeL3.mjs} +19 -8
- package/dist/_chunks/EditViewPage-IZbGSeL3.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-CXkmnAvI.js → EditViewPage-l9qOdDUI.js} +19 -8
- package/dist/_chunks/EditViewPage-l9qOdDUI.js.map +1 -0
- package/dist/_chunks/{Field-Ibi32diw.js → Field-CWjyW47-.js} +89 -30
- package/dist/_chunks/Field-CWjyW47-.js.map +1 -0
- package/dist/_chunks/{Field-nNgv5bpd.mjs → Field-D3mNj-iY.mjs} +90 -31
- package/dist/_chunks/Field-D3mNj-iY.mjs.map +1 -0
- package/dist/_chunks/{Form-Dhnh34ym.js → Form-DFXXFrJV.js} +22 -11
- package/dist/_chunks/Form-DFXXFrJV.js.map +1 -0
- package/dist/_chunks/{Form-DodJsI2A.mjs → Form-Ddy3XYS-.mjs} +22 -11
- package/dist/_chunks/Form-Ddy3XYS-.mjs.map +1 -0
- package/dist/_chunks/{History-CKCSQXz_.mjs → History-BEFrLZfz.mjs} +4 -4
- package/dist/_chunks/{History-CKCSQXz_.mjs.map → History-BEFrLZfz.mjs.map} +1 -1
- package/dist/_chunks/{History-C9auUkDi.js → History-pesEeFFT.js} +4 -4
- package/dist/_chunks/{History-C9auUkDi.js.map → History-pesEeFFT.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-Bg4rWUjX.js → ListConfigurationPage-BIoi-Sog.js} +14 -4
- package/dist/_chunks/ListConfigurationPage-BIoi-Sog.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-CKEC4ttG.mjs → ListConfigurationPage-CB_lBFVX.mjs} +14 -4
- package/dist/_chunks/ListConfigurationPage-CB_lBFVX.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-C2gIeYHG.js → ListViewPage-C6FK36UI.js} +3 -3
- package/dist/_chunks/{ListViewPage-C2gIeYHG.js.map → ListViewPage-C6FK36UI.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-B7_WJUjG.mjs → ListViewPage-DBbH7Esr.mjs} +3 -3
- package/dist/_chunks/{ListViewPage-B7_WJUjG.mjs.map → ListViewPage-DBbH7Esr.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-Ckem6Ll6.mjs → NoContentTypePage-BU9Omzp4.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-Ckem6Ll6.mjs.map → NoContentTypePage-BU9Omzp4.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-DqgdUfyn.js → NoContentTypePage-Dod8M_xM.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-DqgdUfyn.js.map → NoContentTypePage-Dod8M_xM.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BO-GEjA4.mjs → NoPermissionsPage-B88W05rh.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BO-GEjA4.mjs.map → NoPermissionsPage-B88W05rh.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CF29Q-sW.js → NoPermissionsPage-CMLH3uMk.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CF29Q-sW.js.map → NoPermissionsPage-CMLH3uMk.js.map} +1 -1
- package/dist/_chunks/{Relations-DItV5eow.mjs → Relations-BBJRxopY.mjs} +4 -4
- package/dist/_chunks/{Relations-DItV5eow.mjs.map → Relations-BBJRxopY.mjs.map} +1 -1
- package/dist/_chunks/{Relations-C0uC9J4f.js → Relations-OXbsEvNt.js} +4 -4
- package/dist/_chunks/{Relations-C0uC9J4f.js.map → Relations-OXbsEvNt.js.map} +1 -1
- package/dist/_chunks/{index-DrNe6ctw.mjs → index-BgiNQ7Q9.mjs} +93 -37
- package/dist/_chunks/index-BgiNQ7Q9.mjs.map +1 -0
- package/dist/_chunks/{index-Dd0nXyJF.js → index-Bj8wwbdx.js} +92 -36
- package/dist/_chunks/index-Bj8wwbdx.js.map +1 -0
- package/dist/_chunks/{layout-CLLtt_5O.js → layout-DBvOIgWG.js} +6 -6
- package/dist/_chunks/layout-DBvOIgWG.js.map +1 -0
- package/dist/_chunks/{layout-B3ez7kvr.mjs → layout-LOFMsdWo.mjs} +6 -6
- package/dist/_chunks/layout-LOFMsdWo.mjs.map +1 -0
- package/dist/_chunks/{relations-bRxcNv1q.js → relations-BLilXMyN.js} +2 -2
- package/dist/_chunks/{relations-bRxcNv1q.js.map → relations-BLilXMyN.js.map} +1 -1
- package/dist/_chunks/{relations-B0hlsUU_.mjs → relations-BTQKCDqX.mjs} +2 -2
- package/dist/_chunks/{relations-B0hlsUU_.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-BVMS5hT-.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-CXkmnAvI.js.map +0 -1
- package/dist/_chunks/Field-Ibi32diw.js.map +0 -1
- package/dist/_chunks/Field-nNgv5bpd.mjs.map +0 -1
- package/dist/_chunks/Form-Dhnh34ym.js.map +0 -1
- package/dist/_chunks/Form-DodJsI2A.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-Bg4rWUjX.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-CKEC4ttG.mjs.map +0 -1
- package/dist/_chunks/index-Dd0nXyJF.js.map +0 -1
- package/dist/_chunks/index-DrNe6ctw.mjs.map +0 -1
- package/dist/_chunks/layout-B3ez7kvr.mjs.map +0 -1
- package/dist/_chunks/layout-CLLtt_5O.js.map +0 -1
@@ -5,9 +5,9 @@ const strapiAdmin = require("@strapi/admin/strapi-admin");
|
|
5
5
|
const designSystem = require("@strapi/design-system");
|
6
6
|
const pipe$1 = require("lodash/fp/pipe");
|
7
7
|
const reactIntl = require("react-intl");
|
8
|
-
const index = require("./index-
|
8
|
+
const index = require("./index-Bj8wwbdx.js");
|
9
9
|
const fractionalIndexing = require("fractional-indexing");
|
10
|
-
const Relations = require("./Relations-
|
10
|
+
const Relations = require("./Relations-OXbsEvNt.js");
|
11
11
|
const Icons = require("@strapi/icons");
|
12
12
|
const styledComponents = require("styled-components");
|
13
13
|
const ComponentIcon = require("./ComponentIcon-BXdiCGQp.js");
|
@@ -2706,7 +2706,18 @@ const NonRepeatableComponent = ({
|
|
2706
2706
|
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 6, children: layout.map((row, index2) => {
|
2707
2707
|
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
2708
2708
|
const completeFieldName = `${name2}.${field.name}`;
|
2709
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
2709
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
2710
|
+
designSystem.Grid.Item,
|
2711
|
+
{
|
2712
|
+
col: size,
|
2713
|
+
s: 12,
|
2714
|
+
xs: 12,
|
2715
|
+
direction: "column",
|
2716
|
+
alignItems: "stretch",
|
2717
|
+
children: children({ ...field, name: completeFieldName })
|
2718
|
+
},
|
2719
|
+
completeFieldName
|
2720
|
+
);
|
2710
2721
|
}) }, index2);
|
2711
2722
|
}) })
|
2712
2723
|
}
|
@@ -2884,7 +2895,18 @@ const RepeatableComponent = ({
|
|
2884
2895
|
children: layout.map((row, index22) => {
|
2885
2896
|
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
2886
2897
|
const completeFieldName = `${nameWithIndex}.${field.name}`;
|
2887
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
2898
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
2899
|
+
designSystem.Grid.Item,
|
2900
|
+
{
|
2901
|
+
col: size,
|
2902
|
+
s: 12,
|
2903
|
+
xs: 12,
|
2904
|
+
direction: "column",
|
2905
|
+
alignItems: "stretch",
|
2906
|
+
children: children({ ...field, name: completeFieldName })
|
2907
|
+
},
|
2908
|
+
completeFieldName
|
2909
|
+
);
|
2888
2910
|
}) }, index22);
|
2889
2911
|
})
|
2890
2912
|
}
|
@@ -2979,7 +3001,7 @@ const Component = ({
|
|
2979
3001
|
/* @__PURE__ */ jsxRuntime.jsx(
|
2980
3002
|
designSystem.IconButton,
|
2981
3003
|
{
|
2982
|
-
|
3004
|
+
variant: "ghost",
|
2983
3005
|
onClick: onDeleteComponent,
|
2984
3006
|
label: formatMessage({
|
2985
3007
|
id: index.getTranslation("containers.Edit.delete"),
|
@@ -2992,7 +3014,7 @@ const Component = ({
|
|
2992
3014
|
designSystem.IconButton,
|
2993
3015
|
{
|
2994
3016
|
ref: composedAccordionRefs,
|
2995
|
-
|
3017
|
+
variant: "ghost",
|
2996
3018
|
onClick: (e) => e.stopPropagation(),
|
2997
3019
|
"data-handler-id": handlerId,
|
2998
3020
|
label: formatMessage({
|
@@ -3062,7 +3084,7 @@ const ComponentInput = ({
|
|
3062
3084
|
id: index.getTranslation("components.reset-entry"),
|
3063
3085
|
defaultMessage: "Reset Entry"
|
3064
3086
|
}),
|
3065
|
-
|
3087
|
+
variant: "ghost",
|
3066
3088
|
onClick: () => {
|
3067
3089
|
field.onChange(name2, null);
|
3068
3090
|
},
|
@@ -3091,11 +3113,8 @@ const AddComponentButton = ({
|
|
3091
3113
|
onClick,
|
3092
3114
|
disabled: isDisabled,
|
3093
3115
|
background: "neutral0",
|
3094
|
-
paddingTop: 3,
|
3095
|
-
paddingBottom: 3,
|
3096
|
-
paddingLeft: 4,
|
3097
|
-
paddingRight: 4,
|
3098
3116
|
style: { cursor: isDisabled ? "not-allowed" : "pointer" },
|
3117
|
+
variant: "tertiary",
|
3099
3118
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { tag: "span", gap: 2, children: [
|
3100
3119
|
/* @__PURE__ */ jsxRuntime.jsx(StyledAddIcon, { "aria-hidden": true, $isOpen: isOpen, $hasError: hasError && !isOpen }),
|
3101
3120
|
/* @__PURE__ */ jsxRuntime.jsx(
|
@@ -3124,10 +3143,11 @@ const StyledAddIcon = styledComponents.styled(Icons.PlusCircle)`
|
|
3124
3143
|
}
|
3125
3144
|
`;
|
3126
3145
|
const AddComponentTitle = styledComponents.styled(designSystem.Typography)``;
|
3127
|
-
const StyledButton = styledComponents.styled(designSystem.
|
3146
|
+
const StyledButton = styledComponents.styled(designSystem.Button)`
|
3128
3147
|
border-radius: 26px;
|
3129
3148
|
border-color: ${({ theme }) => theme.colors.neutral150};
|
3130
3149
|
box-shadow: ${({ theme }) => theme.shadows.filterShadow};
|
3150
|
+
height: 5rem;
|
3131
3151
|
|
3132
3152
|
&:hover {
|
3133
3153
|
${AddComponentTitle} {
|
@@ -3139,7 +3159,7 @@ const StyledButton = styledComponents.styled(designSystem.BaseButton)`
|
|
3139
3159
|
fill: ${({ theme }) => theme.colors.primary600};
|
3140
3160
|
}
|
3141
3161
|
> path {
|
3142
|
-
fill: ${({ theme }) => theme.colors.
|
3162
|
+
fill: ${({ theme }) => theme.colors.primary600};
|
3143
3163
|
}
|
3144
3164
|
}
|
3145
3165
|
}
|
@@ -4277,7 +4297,7 @@ const EditorLayout = ({
|
|
4277
4297
|
justifyContent: "flex-end",
|
4278
4298
|
shrink: 0,
|
4279
4299
|
width: "100%",
|
4280
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(ExpandButton$1, { onClick: onCollapse, children: [
|
4300
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(ExpandButton$1, { onClick: onCollapse, variant: "tertiary", size: "M", children: [
|
4281
4301
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: formatMessage({
|
4282
4302
|
id: "components.Wysiwyg.collapse",
|
4283
4303
|
defaultMessage: "Collapse"
|
@@ -4295,12 +4315,14 @@ const EditorLayout = ({
|
|
4295
4315
|
) }) });
|
4296
4316
|
}
|
4297
4317
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
4298
|
-
designSystem.
|
4318
|
+
designSystem.Flex,
|
4299
4319
|
{
|
4300
4320
|
borderColor: error ? "danger600" : "neutral200",
|
4301
4321
|
borderStyle: "solid",
|
4302
4322
|
borderWidth: "1px",
|
4303
4323
|
hasRadius: true,
|
4324
|
+
direction: "column",
|
4325
|
+
alignItems: "stretch",
|
4304
4326
|
children
|
4305
4327
|
}
|
4306
4328
|
);
|
@@ -4311,11 +4333,19 @@ const ExpandWrapper = styledComponents.styled(designSystem.Flex)`
|
|
4311
4333
|
const BoxWithBorder = styledComponents.styled(designSystem.Box)`
|
4312
4334
|
border-right: 1px solid ${({ theme }) => theme.colors.neutral200};
|
4313
4335
|
`;
|
4314
|
-
const ExpandButton$1 = styledComponents.styled(designSystem.
|
4336
|
+
const ExpandButton$1 = styledComponents.styled(designSystem.Button)`
|
4315
4337
|
background-color: transparent;
|
4316
4338
|
border: none;
|
4317
4339
|
align-items: center;
|
4318
4340
|
|
4341
|
+
& > span {
|
4342
|
+
display: flex;
|
4343
|
+
justify-content: space-between;
|
4344
|
+
align-items: center;
|
4345
|
+
width: 100%;
|
4346
|
+
font-weight: ${({ theme }) => theme.fontWeights.regular};
|
4347
|
+
}
|
4348
|
+
|
4319
4349
|
svg {
|
4320
4350
|
margin-left: ${({ theme }) => `${theme.spaces[2]}`};
|
4321
4351
|
|
@@ -4611,11 +4641,19 @@ const MoreButton = styledComponents.styled(designSystem.IconButton)`
|
|
4611
4641
|
const IconButtonGroupMargin = styledComponents.styled(designSystem.IconButtonGroup)`
|
4612
4642
|
margin-right: ${({ theme }) => `${theme.spaces[2]}`};
|
4613
4643
|
`;
|
4614
|
-
const ExpandButton = styledComponents.styled(designSystem.
|
4644
|
+
const ExpandButton = styledComponents.styled(designSystem.Button)`
|
4615
4645
|
background-color: transparent;
|
4616
4646
|
border: none;
|
4617
4647
|
align-items: center;
|
4618
4648
|
|
4649
|
+
& > span {
|
4650
|
+
display: flex;
|
4651
|
+
justify-content: space-between;
|
4652
|
+
align-items: center;
|
4653
|
+
width: 100%;
|
4654
|
+
font-weight: ${({ theme }) => theme.fontWeights.regular};
|
4655
|
+
}
|
4656
|
+
|
4619
4657
|
svg {
|
4620
4658
|
margin-left: ${({ theme }) => `${theme.spaces[2]}`};
|
4621
4659
|
path {
|
@@ -4627,7 +4665,7 @@ const ExpandButton = styledComponents.styled(designSystem.BaseButton)`
|
|
4627
4665
|
`;
|
4628
4666
|
const WysiwygFooter = ({ onToggleExpand }) => {
|
4629
4667
|
const { formatMessage } = reactIntl.useIntl();
|
4630
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { padding: 2, background: "neutral100", borderRadius: `0 0 0.4rem 0.4rem`, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "flex-end", alignItems: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsxs(ExpandButton, { id: "expand", onClick: onToggleExpand, children: [
|
4668
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { padding: 2, background: "neutral100", borderRadius: `0 0 0.4rem 0.4rem`, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "flex-end", alignItems: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsxs(ExpandButton, { id: "expand", onClick: onToggleExpand, variant: "tertiary", size: "M", children: [
|
4631
4669
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "neutral800", children: formatMessage({
|
4632
4670
|
id: "components.WysiwygBottomControls.fullscreen",
|
4633
4671
|
defaultMessage: "Expand"
|
@@ -4664,14 +4702,23 @@ const WysiwygNav = ({
|
|
4664
4702
|
borderRadius: `0.4rem 0.4rem 0 0`,
|
4665
4703
|
children: [
|
4666
4704
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { children: [
|
4667
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Root, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
4668
|
-
|
4669
|
-
|
4670
|
-
|
4671
|
-
|
4672
|
-
|
4673
|
-
|
4674
|
-
|
4705
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Root, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
4706
|
+
designSystem.SingleSelect,
|
4707
|
+
{
|
4708
|
+
disabled: true,
|
4709
|
+
placeholder: selectPlaceholder,
|
4710
|
+
"aria-label": selectPlaceholder,
|
4711
|
+
size: "S",
|
4712
|
+
children: [
|
4713
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: "h1", children: "h1" }),
|
4714
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: "h2", children: "h2" }),
|
4715
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: "h3", children: "h3" }),
|
4716
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: "h4", children: "h4" }),
|
4717
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: "h5", children: "h5" }),
|
4718
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: "h6", children: "h6" })
|
4719
|
+
]
|
4720
|
+
}
|
4721
|
+
) }),
|
4675
4722
|
/* @__PURE__ */ jsxRuntime.jsxs(MainButtons, { children: [
|
4676
4723
|
/* @__PURE__ */ jsxRuntime.jsx(CustomIconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Bold, {}) }),
|
4677
4724
|
/* @__PURE__ */ jsxRuntime.jsx(CustomIconButton, { disabled: true, label: "Italic", name: "Italic", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Italic, {}) }),
|
@@ -4702,6 +4749,7 @@ const WysiwygNav = ({
|
|
4702
4749
|
placeholder: selectPlaceholder,
|
4703
4750
|
"aria-label": selectPlaceholder,
|
4704
4751
|
onChange: (value) => onActionClick(value, editorRef),
|
4752
|
+
size: "S",
|
4705
4753
|
children: [
|
4706
4754
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: "h1", children: "h1" }),
|
4707
4755
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: "h2", children: "h2" }),
|
@@ -5137,7 +5185,7 @@ const DynamicComponent = ({
|
|
5137
5185
|
/* @__PURE__ */ jsxRuntime.jsx(
|
5138
5186
|
designSystem.IconButton,
|
5139
5187
|
{
|
5140
|
-
|
5188
|
+
variant: "ghost",
|
5141
5189
|
label: formatMessage(
|
5142
5190
|
{
|
5143
5191
|
id: index.getTranslation("components.DynamicZone.delete-label"),
|
@@ -5152,7 +5200,7 @@ const DynamicComponent = ({
|
|
5152
5200
|
/* @__PURE__ */ jsxRuntime.jsx(
|
5153
5201
|
designSystem.IconButton,
|
5154
5202
|
{
|
5155
|
-
|
5203
|
+
variant: "ghost",
|
5156
5204
|
onClick: (e) => e.stopPropagation(),
|
5157
5205
|
"data-handler-id": handlerId,
|
5158
5206
|
ref: dragRef,
|
@@ -5213,7 +5261,18 @@ const DynamicComponent = ({
|
|
5213
5261
|
] }),
|
5214
5262
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Accordion.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(AccordionContentRadius, { background: "neutral0", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 6, paddingRight: 6, paddingTop: 6, paddingBottom: 6, children: components[componentUid]?.layout?.map((row, rowInd) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
5215
5263
|
const fieldName = `${name2}.${index$1}.${field.name}`;
|
5216
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
5264
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
5265
|
+
designSystem.Grid.Item,
|
5266
|
+
{
|
5267
|
+
col: size,
|
5268
|
+
s: 12,
|
5269
|
+
xs: 12,
|
5270
|
+
direction: "column",
|
5271
|
+
alignItems: "stretch",
|
5272
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MemoizedInputRenderer, { ...field, name: fieldName })
|
5273
|
+
},
|
5274
|
+
fieldName
|
5275
|
+
);
|
5217
5276
|
}) }, rowInd)) }) }) })
|
5218
5277
|
] }) }) })
|
5219
5278
|
] });
|
@@ -5520,4 +5579,4 @@ exports.transformDocument = transformDocument;
|
|
5520
5579
|
exports.useDynamicZone = useDynamicZone;
|
5521
5580
|
exports.useFieldHint = useFieldHint;
|
5522
5581
|
exports.useLazyComponents = useLazyComponents;
|
5523
|
-
//# sourceMappingURL=Field-
|
5582
|
+
//# sourceMappingURL=Field-CWjyW47-.js.map
|