@strapi/content-manager 0.0.0-experimental.e9122b401c96877b6707775c4f893660eab93ae3 → 0.0.0-experimental.f0d3b2d782e972f1dcb8acf0dce31d4090d1e420

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.
Files changed (148) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-_zF8p6CY.js → ComponentConfigurationPage-D2_cVxXK.js} +4 -4
  2. package/dist/_chunks/{ComponentConfigurationPage-_zF8p6CY.js.map → ComponentConfigurationPage-D2_cVxXK.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-CpBFh6_r.mjs → ComponentConfigurationPage-suSMW3KC.mjs} +4 -4
  4. package/dist/_chunks/{ComponentConfigurationPage-CpBFh6_r.mjs.map → ComponentConfigurationPage-suSMW3KC.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-CE_yavTi.mjs → EditConfigurationPage-CBscKbxt.mjs} +4 -4
  6. package/dist/_chunks/{EditConfigurationPage-CE_yavTi.mjs.map → EditConfigurationPage-CBscKbxt.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-_aG2DJSU.js → EditConfigurationPage-Z_VzHVH4.js} +4 -4
  8. package/dist/_chunks/{EditConfigurationPage-_aG2DJSU.js.map → EditConfigurationPage-Z_VzHVH4.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-DeTn7rAF.mjs → EditViewPage-D5Zhyw_q.mjs} +15 -5
  10. package/dist/_chunks/EditViewPage-D5Zhyw_q.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-G9uNzwYL.js → EditViewPage-DzDDKiF5.js} +15 -5
  12. package/dist/_chunks/EditViewPage-DzDDKiF5.js.map +1 -0
  13. package/dist/_chunks/{Field-DDHUWEfV.js → Field-CZHNLm_m.js} +70 -26
  14. package/dist/_chunks/Field-CZHNLm_m.js.map +1 -0
  15. package/dist/_chunks/{Field-CnCKhI1R.mjs → Field-FNlyAbcI.mjs} +70 -26
  16. package/dist/_chunks/Field-FNlyAbcI.mjs.map +1 -0
  17. package/dist/_chunks/{Form-DYETaKUX.js → Form-DqPHDLuK.js} +3 -3
  18. package/dist/_chunks/Form-DqPHDLuK.js.map +1 -0
  19. package/dist/_chunks/{Form-IvVVwqRL.mjs → Form-Sq_OVNv-.mjs} +3 -3
  20. package/dist/_chunks/Form-Sq_OVNv-.mjs.map +1 -0
  21. package/dist/_chunks/{History-CnZDctSO.js → History-B-ZiOAEg.js} +37 -40
  22. package/dist/_chunks/History-B-ZiOAEg.js.map +1 -0
  23. package/dist/_chunks/{History-BMunT-do.mjs → History-DlL3k_OW.mjs} +38 -41
  24. package/dist/_chunks/History-DlL3k_OW.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-BynalOp8.js → ListConfigurationPage-Cc0hLAoS.js} +3 -3
  26. package/dist/_chunks/{ListConfigurationPage-BynalOp8.js.map → ListConfigurationPage-Cc0hLAoS.js.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-CDqkCxgV.mjs → ListConfigurationPage-xj3cSF5M.mjs} +3 -3
  28. package/dist/_chunks/{ListConfigurationPage-CDqkCxgV.mjs.map → ListConfigurationPage-xj3cSF5M.mjs.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-_5gS-DOF.mjs → ListViewPage-C9STpcYd.mjs} +22 -7
  30. package/dist/_chunks/ListViewPage-C9STpcYd.mjs.map +1 -0
  31. package/dist/_chunks/{ListViewPage-I88Ouzoq.js → ListViewPage-D48T84aT.js} +22 -7
  32. package/dist/_chunks/ListViewPage-D48T84aT.js.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-BaWQ7HsA.js → NoContentTypePage-BnUmUnXQ.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-BaWQ7HsA.js.map → NoContentTypePage-BnUmUnXQ.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-Dht-55hr.mjs → NoContentTypePage-DpV_ouD6.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-Dht-55hr.mjs.map → NoContentTypePage-DpV_ouD6.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-Bs8D5W_v.mjs → NoPermissionsPage-BeDixsE9.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-Bs8D5W_v.mjs.map → NoPermissionsPage-BeDixsE9.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-DCVUh5at.js → NoPermissionsPage-z-CpOFfh.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-DCVUh5at.js.map → NoPermissionsPage-z-CpOFfh.js.map} +1 -1
  41. package/dist/_chunks/{Relations-Chdt5qWc.mjs → Relations-CTiimSAg.mjs} +72 -36
  42. package/dist/_chunks/Relations-CTiimSAg.mjs.map +1 -0
  43. package/dist/_chunks/{Relations-BPgFQeGj.js → Relations-Cs5vJLAp.js} +71 -35
  44. package/dist/_chunks/Relations-Cs5vJLAp.js.map +1 -0
  45. package/dist/_chunks/{en-BVzUkPxZ.js → en-Bm0D0IWz.js} +8 -8
  46. package/dist/_chunks/{en-BVzUkPxZ.js.map → en-Bm0D0IWz.js.map} +1 -1
  47. package/dist/_chunks/{en-CPTj6CjC.mjs → en-DKV44jRb.mjs} +8 -8
  48. package/dist/_chunks/{en-CPTj6CjC.mjs.map → en-DKV44jRb.mjs.map} +1 -1
  49. package/dist/_chunks/{fr-B7kGGg3E.js → fr-C6t7ywEg.js} +12 -2
  50. package/dist/_chunks/{fr-B7kGGg3E.js.map → fr-C6t7ywEg.js.map} +1 -1
  51. package/dist/_chunks/{fr-CD9VFbPM.mjs → fr-DxrTDLl6.mjs} +12 -2
  52. package/dist/_chunks/{fr-CD9VFbPM.mjs.map → fr-DxrTDLl6.mjs.map} +1 -1
  53. package/dist/_chunks/{index-D4UGPFZC.mjs → index-DUZzV11o.mjs} +958 -870
  54. package/dist/_chunks/index-DUZzV11o.mjs.map +1 -0
  55. package/dist/_chunks/{index-BhbLFX4l.js → index-dFQ_8EM3.js} +957 -868
  56. package/dist/_chunks/index-dFQ_8EM3.js.map +1 -0
  57. package/dist/_chunks/{layout-CYA7s0qO.js → layout-Bu-ET7w6.js} +3 -3
  58. package/dist/_chunks/{layout-CYA7s0qO.js.map → layout-Bu-ET7w6.js.map} +1 -1
  59. package/dist/_chunks/{layout-D4HI4_PS.mjs → layout-C-eg7m9Y.mjs} +3 -3
  60. package/dist/_chunks/{layout-D4HI4_PS.mjs.map → layout-C-eg7m9Y.mjs.map} +1 -1
  61. package/dist/_chunks/{objects-gigeqt7s.js → objects-BcXOv6_9.js} +2 -4
  62. package/dist/_chunks/{objects-gigeqt7s.js.map → objects-BcXOv6_9.js.map} +1 -1
  63. package/dist/_chunks/{objects-mKMAmfec.mjs → objects-D6yBsdmx.mjs} +2 -4
  64. package/dist/_chunks/{objects-mKMAmfec.mjs.map → objects-D6yBsdmx.mjs.map} +1 -1
  65. package/dist/_chunks/{relations-1pXaYpBK.mjs → relations-Cj61Oyt2.mjs} +3 -7
  66. package/dist/_chunks/relations-Cj61Oyt2.mjs.map +1 -0
  67. package/dist/_chunks/{relations-DDZ9OxNo.js → relations-isLeDaA0.js} +3 -7
  68. package/dist/_chunks/relations-isLeDaA0.js.map +1 -0
  69. package/dist/admin/index.js +2 -1
  70. package/dist/admin/index.js.map +1 -1
  71. package/dist/admin/index.mjs +3 -2
  72. package/dist/admin/src/exports.d.ts +1 -1
  73. package/dist/admin/src/hooks/useDocument.d.ts +32 -1
  74. package/dist/admin/src/pages/EditView/components/Header.d.ts +1 -0
  75. package/dist/admin/src/preview/constants.d.ts +1 -0
  76. package/dist/admin/src/preview/index.d.ts +4 -0
  77. package/dist/server/index.js +374 -160
  78. package/dist/server/index.js.map +1 -1
  79. package/dist/server/index.mjs +374 -160
  80. package/dist/server/index.mjs.map +1 -1
  81. package/dist/server/src/bootstrap.d.ts.map +1 -1
  82. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  83. package/dist/server/src/controllers/index.d.ts.map +1 -1
  84. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  85. package/dist/server/src/controllers/utils/metadata.d.ts +15 -1
  86. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  87. package/dist/server/src/history/services/history.d.ts.map +1 -1
  88. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  89. package/dist/server/src/history/services/utils.d.ts +2 -3
  90. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  91. package/dist/server/src/index.d.ts +4 -4
  92. package/dist/server/src/preview/constants.d.ts +2 -0
  93. package/dist/server/src/preview/constants.d.ts.map +1 -0
  94. package/dist/server/src/preview/controllers/index.d.ts +2 -0
  95. package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
  96. package/dist/server/src/preview/controllers/preview.d.ts +13 -0
  97. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
  98. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  99. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  100. package/dist/server/src/preview/index.d.ts +4 -0
  101. package/dist/server/src/preview/index.d.ts.map +1 -0
  102. package/dist/server/src/preview/routes/index.d.ts +8 -0
  103. package/dist/server/src/preview/routes/index.d.ts.map +1 -0
  104. package/dist/server/src/preview/routes/preview.d.ts +4 -0
  105. package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
  106. package/dist/server/src/preview/services/index.d.ts +15 -0
  107. package/dist/server/src/preview/services/index.d.ts.map +1 -0
  108. package/dist/server/src/preview/services/preview-config.d.ts +30 -0
  109. package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
  110. package/dist/server/src/preview/services/preview.d.ts +12 -0
  111. package/dist/server/src/preview/services/preview.d.ts.map +1 -0
  112. package/dist/server/src/preview/utils.d.ts +18 -0
  113. package/dist/server/src/preview/utils.d.ts.map +1 -0
  114. package/dist/server/src/routes/index.d.ts.map +1 -1
  115. package/dist/server/src/services/document-metadata.d.ts +8 -8
  116. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  117. package/dist/server/src/services/index.d.ts +4 -4
  118. package/dist/server/src/services/index.d.ts.map +1 -1
  119. package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
  120. package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
  121. package/dist/server/src/utils/index.d.ts +2 -0
  122. package/dist/server/src/utils/index.d.ts.map +1 -1
  123. package/dist/shared/contracts/index.d.ts +1 -0
  124. package/dist/shared/contracts/index.d.ts.map +1 -1
  125. package/dist/shared/contracts/preview.d.ts +27 -0
  126. package/dist/shared/contracts/preview.d.ts.map +1 -0
  127. package/dist/shared/index.js +4 -0
  128. package/dist/shared/index.js.map +1 -1
  129. package/dist/shared/index.mjs +4 -0
  130. package/dist/shared/index.mjs.map +1 -1
  131. package/package.json +12 -12
  132. package/dist/_chunks/EditViewPage-DeTn7rAF.mjs.map +0 -1
  133. package/dist/_chunks/EditViewPage-G9uNzwYL.js.map +0 -1
  134. package/dist/_chunks/Field-CnCKhI1R.mjs.map +0 -1
  135. package/dist/_chunks/Field-DDHUWEfV.js.map +0 -1
  136. package/dist/_chunks/Form-DYETaKUX.js.map +0 -1
  137. package/dist/_chunks/Form-IvVVwqRL.mjs.map +0 -1
  138. package/dist/_chunks/History-BMunT-do.mjs.map +0 -1
  139. package/dist/_chunks/History-CnZDctSO.js.map +0 -1
  140. package/dist/_chunks/ListViewPage-I88Ouzoq.js.map +0 -1
  141. package/dist/_chunks/ListViewPage-_5gS-DOF.mjs.map +0 -1
  142. package/dist/_chunks/Relations-BPgFQeGj.js.map +0 -1
  143. package/dist/_chunks/Relations-Chdt5qWc.mjs.map +0 -1
  144. package/dist/_chunks/index-BhbLFX4l.js.map +0 -1
  145. package/dist/_chunks/index-D4UGPFZC.mjs.map +0 -1
  146. package/dist/_chunks/relations-1pXaYpBK.mjs.map +0 -1
  147. package/dist/_chunks/relations-DDZ9OxNo.js.map +0 -1
  148. package/strapi-server.js +0 -3
@@ -5,15 +5,15 @@ 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, 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, n as CLONE_PATH, d as buildValidParams, f as useDocumentRBAC, o as useDocLayout } from "./index-D4UGPFZC.mjs";
8
+ import { m as DOCUMENT_META_FIELDS, g as getTranslation, c as useDoc, e as contentManagerApi, n as CLONE_PATH, d as buildValidParams, f as useDocumentRBAC, S as SINGLE_TYPES, o as useDocLayout } from "./index-DUZzV11o.mjs";
9
9
  import { generateNKeysBetween } from "fractional-indexing";
10
- import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-Chdt5qWc.mjs";
10
+ import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-CTiimSAg.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";
14
14
  import { getEmptyImage } from "react-dnd-html5-backend";
15
15
  import { a as DIRECTIONS, u as useDragAndDrop, I as ItemTypes } from "./useDragAndDrop-DdHgKsqq.mjs";
16
- import { g as getIn } from "./objects-mKMAmfec.mjs";
16
+ import { g as getIn } from "./objects-D6yBsdmx.mjs";
17
17
  import { Editor as Editor$1, Transforms, Node, Element, Range, Path, Point, createEditor } from "slate";
18
18
  import { withHistory } from "slate-history";
19
19
  import { useFocused, useSelected, ReactEditor, Editable, useSlate, Slate, withReact } from "slate-react";
@@ -2704,13 +2704,34 @@ const RepeatableComponent = ({
2704
2704
  const { search: searchString } = useLocation();
2705
2705
  const search = React.useMemo(() => new URLSearchParams(searchString), [searchString]);
2706
2706
  const { components } = useDoc();
2707
- const { value = [], error } = useField(name2);
2707
+ const {
2708
+ value = [],
2709
+ error,
2710
+ rawError
2711
+ } = useField(name2);
2708
2712
  const addFieldRow = useForm("RepeatableComponent", (state) => state.addFieldRow);
2709
2713
  const moveFieldRow = useForm("RepeatableComponent", (state) => state.moveFieldRow);
2710
2714
  const removeFieldRow = useForm("RepeatableComponent", (state) => state.removeFieldRow);
2711
2715
  const { max = Infinity } = attribute;
2712
2716
  const [collapseToOpen, setCollapseToOpen] = React.useState("");
2713
2717
  const [liveText, setLiveText] = React.useState("");
2718
+ React.useEffect(() => {
2719
+ const hasNestedErrors = rawError && Array.isArray(rawError) && rawError.length > 0;
2720
+ const hasNestedValue = value && Array.isArray(value) && value.length > 0;
2721
+ if (hasNestedErrors && hasNestedValue) {
2722
+ const errorOpenItems = rawError.map((_, idx) => {
2723
+ return value[idx] ? value[idx].__temp_key__ : null;
2724
+ }).filter((value2) => !!value2);
2725
+ if (errorOpenItems && errorOpenItems.length > 0) {
2726
+ setCollapseToOpen((collapseToOpen2) => {
2727
+ if (!errorOpenItems.includes(collapseToOpen2)) {
2728
+ return errorOpenItems[0];
2729
+ }
2730
+ return collapseToOpen2;
2731
+ });
2732
+ }
2733
+ }
2734
+ }, [rawError, value]);
2714
2735
  const componentTmpKeyWithFocussedField = React.useMemo(() => {
2715
2736
  if (search.has("field")) {
2716
2737
  const fieldParam = search.get("field");
@@ -4925,15 +4946,19 @@ const Wysiwyg = React.forwardRef(
4925
4946
  );
4926
4947
  const MemoizedWysiwyg = React.memo(Wysiwyg);
4927
4948
  const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
4928
- const { id } = useDoc();
4949
+ const { id, document: document2, collectionType } = useDoc();
4929
4950
  const isFormDisabled = useForm("InputRenderer", (state) => state.disabled);
4930
4951
  const isInDynamicZone = useDynamicZone("isInDynamicZone", (state) => state.isInDynamicZone);
4931
4952
  const canCreateFields = useDocumentRBAC("InputRenderer", (rbac) => rbac.canCreateFields);
4932
4953
  const canReadFields = useDocumentRBAC("InputRenderer", (rbac) => rbac.canReadFields);
4933
4954
  const canUpdateFields = useDocumentRBAC("InputRenderer", (rbac) => rbac.canUpdateFields);
4934
4955
  const canUserAction = useDocumentRBAC("InputRenderer", (rbac) => rbac.canUserAction);
4935
- const editableFields = id ? canUpdateFields : canCreateFields;
4936
- const readableFields = id ? canReadFields : canCreateFields;
4956
+ let idToCheck = id;
4957
+ if (collectionType === SINGLE_TYPES) {
4958
+ idToCheck = document2?.documentId;
4959
+ }
4960
+ const editableFields = idToCheck ? canUpdateFields : canCreateFields;
4961
+ const readableFields = idToCheck ? canReadFields : canCreateFields;
4937
4962
  const canUserReadField = canUserAction(props.name, readableFields, props.type);
4938
4963
  const canUserEditField = canUserAction(props.name, editableFields, props.type);
4939
4964
  const fields = useStrapiApp("InputRenderer", (app) => app.fields);
@@ -4944,6 +4969,7 @@ const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
4944
4969
  const {
4945
4970
  edit: { components }
4946
4971
  } = useDocLayout();
4972
+ const field = useField(props.name);
4947
4973
  if (!visible) {
4948
4974
  return null;
4949
4975
  }
@@ -4954,7 +4980,7 @@ const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
4954
4980
  if (attributeHasCustomFieldProperty(props.attribute)) {
4955
4981
  const CustomInput = lazyComponentStore[props.attribute.customField];
4956
4982
  if (CustomInput) {
4957
- return /* @__PURE__ */ jsx(CustomInput, { ...props, hint, disabled: fieldIsDisabled });
4983
+ return /* @__PURE__ */ jsx(CustomInput, { ...props, ...field, hint, disabled: fieldIsDisabled });
4958
4984
  }
4959
4985
  return /* @__PURE__ */ jsx(
4960
4986
  InputRenderer$1,
@@ -5115,6 +5141,14 @@ const DynamicComponent = ({
5115
5141
  React.useEffect(() => {
5116
5142
  dragPreviewRef(getEmptyImage(), { captureDraggingState: false });
5117
5143
  }, [dragPreviewRef, index]);
5144
+ const accordionValue = React.useId();
5145
+ const { value = [], rawError } = useField(`${name2}.${index}`);
5146
+ const [collapseToOpen, setCollapseToOpen] = React.useState("");
5147
+ React.useEffect(() => {
5148
+ if (rawError && value) {
5149
+ setCollapseToOpen(accordionValue);
5150
+ }
5151
+ }, [rawError, value, accordionValue]);
5118
5152
  const composedBoxRefs = useComposedRefs(boxRef, dropRef);
5119
5153
  const accordionActions = disabled ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
5120
5154
  /* @__PURE__ */ jsx(
@@ -5180,10 +5214,9 @@ const DynamicComponent = ({
5180
5214
  ] })
5181
5215
  ] });
5182
5216
  const accordionTitle = title ? `${displayName} ${title}` : displayName;
5183
- const accordionValue = React.useId();
5184
5217
  return /* @__PURE__ */ jsxs(ComponentContainer, { tag: "li", width: "100%", children: [
5185
5218
  /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(Rectangle, { background: "neutral200" }) }),
5186
- /* @__PURE__ */ jsx(StyledBox, { ref: composedBoxRefs, hasRadius: true, children: isDragging ? /* @__PURE__ */ jsx(Preview, {}) : /* @__PURE__ */ jsx(Accordion.Root, { children: /* @__PURE__ */ jsxs(Accordion.Item, { value: accordionValue, children: [
5219
+ /* @__PURE__ */ jsx(StyledBox, { ref: composedBoxRefs, hasRadius: true, children: isDragging ? /* @__PURE__ */ jsx(Preview, {}) : /* @__PURE__ */ jsx(Accordion.Root, { value: collapseToOpen, onValueChange: setCollapseToOpen, children: /* @__PURE__ */ jsxs(Accordion.Item, { value: accordionValue, children: [
5187
5220
  /* @__PURE__ */ jsxs(Accordion.Header, { children: [
5188
5221
  /* @__PURE__ */ jsx(
5189
5222
  Accordion.Trigger,
@@ -5194,21 +5227,32 @@ const DynamicComponent = ({
5194
5227
  ),
5195
5228
  /* @__PURE__ */ jsx(Accordion.Actions, { children: accordionActions })
5196
5229
  ] }),
5197
- /* @__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 }) => {
5198
- const fieldName = `${name2}.${index}.${field.name}`;
5199
- return /* @__PURE__ */ jsx(
5200
- Grid$1.Item,
5201
- {
5202
- col: size,
5203
- s: 12,
5204
- xs: 12,
5205
- direction: "column",
5206
- alignItems: "stretch",
5207
- children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...field, name: fieldName })
5208
- },
5209
- fieldName
5210
- );
5211
- }) }, rowInd)) }) }) })
5230
+ /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(AccordionContentRadius, { background: "neutral0", children: /* @__PURE__ */ jsx(Box, { paddingLeft: 6, paddingRight: 6, paddingTop: 6, paddingBottom: 6, children: /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: components[componentUid]?.layout?.map((row, rowInd) => /* @__PURE__ */ jsx(
5231
+ Grid$1.Item,
5232
+ {
5233
+ col: 12,
5234
+ s: 12,
5235
+ xs: 12,
5236
+ direction: "column",
5237
+ alignItems: "stretch",
5238
+ children: /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
5239
+ const fieldName = `${name2}.${index}.${field.name}`;
5240
+ return /* @__PURE__ */ jsx(
5241
+ Grid$1.Item,
5242
+ {
5243
+ col: size,
5244
+ s: 12,
5245
+ xs: 12,
5246
+ direction: "column",
5247
+ alignItems: "stretch",
5248
+ children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...field, name: fieldName })
5249
+ },
5250
+ fieldName
5251
+ );
5252
+ }) })
5253
+ },
5254
+ rowInd
5255
+ )) }) }) }) })
5212
5256
  ] }) }) })
5213
5257
  ] });
5214
5258
  };
@@ -5516,4 +5560,4 @@ export {
5516
5560
  transformDocument as t,
5517
5561
  useLazyComponents as u
5518
5562
  };
5519
- //# sourceMappingURL=Field-CnCKhI1R.mjs.map
5563
+ //# sourceMappingURL=Field-FNlyAbcI.mjs.map