@strapi/content-manager 5.0.0-rc.1 → 5.0.0-rc.11

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 (101) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-D8RyVgJC.js → ComponentConfigurationPage-D_M8iBw5.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-D8RyVgJC.js.map → ComponentConfigurationPage-D_M8iBw5.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-DLuACgva.mjs → ComponentConfigurationPage-qemkOlnj.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-DLuACgva.mjs.map → ComponentConfigurationPage-qemkOlnj.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-fOm5AebB.js → EditConfigurationPage-BePwPuHy.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-fOm5AebB.js.map → EditConfigurationPage-BePwPuHy.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-CuCAsHWR.mjs → EditConfigurationPage-CjUrEewK.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-CuCAsHWR.mjs.map → EditConfigurationPage-CjUrEewK.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-Or0fpTwh.js → EditViewPage-B-RJeiJD.js} +19 -8
  10. package/dist/_chunks/EditViewPage-B-RJeiJD.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-BqDlT9w0.mjs → EditViewPage-De8GyU8P.mjs} +19 -8
  12. package/dist/_chunks/EditViewPage-De8GyU8P.mjs.map +1 -0
  13. package/dist/_chunks/{Field-Bix2HU_O.js → Field-dq8Tg1M_.js} +99 -33
  14. package/dist/_chunks/Field-dq8Tg1M_.js.map +1 -0
  15. package/dist/_chunks/{Field-OfBJ6x59.mjs → Field-pb2o8uBe.mjs} +101 -35
  16. package/dist/_chunks/Field-pb2o8uBe.mjs.map +1 -0
  17. package/dist/_chunks/{Form-Bv5ABnqE.js → Form-DGIf4jQU.js} +22 -11
  18. package/dist/_chunks/Form-DGIf4jQU.js.map +1 -0
  19. package/dist/_chunks/{Form-DyMXqj_v.mjs → Form-DJn0Dxha.mjs} +22 -11
  20. package/dist/_chunks/Form-DJn0Dxha.mjs.map +1 -0
  21. package/dist/_chunks/{History-rvLnluF0.mjs → History-BowL3JKP.mjs} +4 -4
  22. package/dist/_chunks/{History-rvLnluF0.mjs.map → History-BowL3JKP.mjs.map} +1 -1
  23. package/dist/_chunks/{History-fnln26gA.js → History-Dh2NEHnR.js} +4 -4
  24. package/dist/_chunks/{History-fnln26gA.js.map → History-Dh2NEHnR.js.map} +1 -1
  25. package/dist/_chunks/{ListConfigurationPage-DdKfJRdq.mjs → ListConfigurationPage-BpVOB-hn.mjs} +14 -4
  26. package/dist/_chunks/ListConfigurationPage-BpVOB-hn.mjs.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-BtCBP_L_.js → ListConfigurationPage-BxYCWz9e.js} +14 -4
  28. package/dist/_chunks/ListConfigurationPage-BxYCWz9e.js.map +1 -0
  29. package/dist/_chunks/{ListViewPage-CGZWD2qn.js → ListViewPage-4XsciqHZ.js} +9 -4
  30. package/dist/_chunks/ListViewPage-4XsciqHZ.js.map +1 -0
  31. package/dist/_chunks/{ListViewPage-B8cPO1bK.mjs → ListViewPage-CXFUjZQC.mjs} +10 -5
  32. package/dist/_chunks/ListViewPage-CXFUjZQC.mjs.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-oJxX0WCQ.js → NoContentTypePage-C8OpoHeU.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-oJxX0WCQ.js.map → NoContentTypePage-C8OpoHeU.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-CVqYTeML.mjs → NoContentTypePage-DuhOTp3x.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-CVqYTeML.mjs.map → NoContentTypePage-DuhOTp3x.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-mlXqh8p6.mjs → NoPermissionsPage-DVz3mzDz.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-mlXqh8p6.mjs.map → NoPermissionsPage-DVz3mzDz.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-BB11jqM_.js → NoPermissionsPage-y_r7DVA2.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-BB11jqM_.js.map → NoPermissionsPage-y_r7DVA2.js.map} +1 -1
  41. package/dist/_chunks/{Relations-DWscdjKO.mjs → Relations-CVNLrn1Y.mjs} +4 -4
  42. package/dist/_chunks/{Relations-DWscdjKO.mjs.map → Relations-CVNLrn1Y.mjs.map} +1 -1
  43. package/dist/_chunks/{Relations-6xIumgbN.js → Relations-DPFCAa7b.js} +4 -4
  44. package/dist/_chunks/{Relations-6xIumgbN.js.map → Relations-DPFCAa7b.js.map} +1 -1
  45. package/dist/_chunks/{index-BzUwgKUj.js → index-C3fJE-1-.js} +140 -71
  46. package/dist/_chunks/index-C3fJE-1-.js.map +1 -0
  47. package/dist/_chunks/{index-JSJrqmB9.mjs → index-DiMrfcfy.mjs} +158 -89
  48. package/dist/_chunks/index-DiMrfcfy.mjs.map +1 -0
  49. package/dist/_chunks/{layout-U4xJd8Oi.js → layout-C788OmNr.js} +19 -7
  50. package/dist/_chunks/layout-C788OmNr.js.map +1 -0
  51. package/dist/_chunks/{layout-Dewoec1b.mjs → layout-ls3gxfpH.mjs} +20 -8
  52. package/dist/_chunks/layout-ls3gxfpH.mjs.map +1 -0
  53. package/dist/_chunks/{relations-DMxeUp5V.mjs → relations-CLcOmGO0.mjs} +2 -2
  54. package/dist/_chunks/{relations-DMxeUp5V.mjs.map → relations-CLcOmGO0.mjs.map} +1 -1
  55. package/dist/_chunks/{relations-BifGhhuo.js → relations-DYeotliT.js} +2 -2
  56. package/dist/_chunks/{relations-BifGhhuo.js.map → relations-DYeotliT.js.map} +1 -1
  57. package/dist/admin/index.js +1 -1
  58. package/dist/admin/index.mjs +4 -4
  59. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  60. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +2 -2
  61. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +2 -2
  62. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +10 -22
  63. package/dist/admin/src/services/api.d.ts +1 -1
  64. package/dist/admin/src/services/components.d.ts +2 -2
  65. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  66. package/dist/admin/src/services/documents.d.ts +16 -16
  67. package/dist/admin/src/services/init.d.ts +1 -1
  68. package/dist/admin/src/services/relations.d.ts +2 -2
  69. package/dist/admin/src/services/uid.d.ts +3 -3
  70. package/dist/admin/src/utils/validation.d.ts +4 -1
  71. package/dist/server/index.js +155 -103
  72. package/dist/server/index.js.map +1 -1
  73. package/dist/server/index.mjs +156 -104
  74. package/dist/server/index.mjs.map +1 -1
  75. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  76. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  77. package/dist/server/src/controllers/uid.d.ts.map +1 -1
  78. package/dist/server/src/controllers/validation/dimensions.d.ts +4 -2
  79. package/dist/server/src/controllers/validation/dimensions.d.ts.map +1 -1
  80. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  81. package/dist/server/src/history/services/utils.d.ts +1 -1
  82. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  83. package/dist/server/src/policies/hasPermissions.d.ts.map +1 -1
  84. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  85. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  86. package/dist/server/src/services/permission-checker.d.ts.map +1 -1
  87. package/package.json +8 -8
  88. package/dist/_chunks/EditViewPage-BqDlT9w0.mjs.map +0 -1
  89. package/dist/_chunks/EditViewPage-Or0fpTwh.js.map +0 -1
  90. package/dist/_chunks/Field-Bix2HU_O.js.map +0 -1
  91. package/dist/_chunks/Field-OfBJ6x59.mjs.map +0 -1
  92. package/dist/_chunks/Form-Bv5ABnqE.js.map +0 -1
  93. package/dist/_chunks/Form-DyMXqj_v.mjs.map +0 -1
  94. package/dist/_chunks/ListConfigurationPage-BtCBP_L_.js.map +0 -1
  95. package/dist/_chunks/ListConfigurationPage-DdKfJRdq.mjs.map +0 -1
  96. package/dist/_chunks/ListViewPage-B8cPO1bK.mjs.map +0 -1
  97. package/dist/_chunks/ListViewPage-CGZWD2qn.js.map +0 -1
  98. package/dist/_chunks/index-BzUwgKUj.js.map +0 -1
  99. package/dist/_chunks/index-JSJrqmB9.mjs.map +0 -1
  100. package/dist/_chunks/layout-Dewoec1b.mjs.map +0 -1
  101. package/dist/_chunks/layout-U4xJd8Oi.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, BaseButton, TextInput, IconButtonGroup, Menu, MenuItem } from "@strapi/design-system";
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-JSJrqmB9.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, o as useDocLayout } from "./index-DiMrfcfy.mjs";
9
9
  import { generateNKeysBetween } from "fractional-indexing";
10
- import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-DWscdjKO.mjs";
10
+ import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-CVNLrn1Y.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";
@@ -19,7 +19,7 @@ import { withHistory } from "slate-history";
19
19
  import { useFocused, useSelected, ReactEditor, Editable, useSlate, Slate, withReact } from "slate-react";
20
20
  import { p as prefixFileUrlWithBackendUrl, u as usePrev } from "./usePrev-DH6iah0A.mjs";
21
21
  import * as Toolbar from "@radix-ui/react-toolbar";
22
- import { useLocation } from "react-router-dom";
22
+ import { useLocation, useMatch } from "react-router-dom";
23
23
  import CodeMirror from "codemirror5";
24
24
  import sanitizeHtml from "sanitize-html";
25
25
  import { getLanguage, highlight, highlightAuto } from "highlight.js";
@@ -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(Grid$1.Item, { col: size, s: 12, xs: 12, children: children({ ...field, name: completeFieldName }) }, completeFieldName);
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(Grid$1.Item, { col: size, s: 12, xs: 12, children: children({ ...field, name: completeFieldName }) }, completeFieldName);
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
- borderWidth: 0,
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
- borderWidth: 0,
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
- borderWidth: 0,
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(BaseButton)`
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.neutral100};
3128
+ fill: ${({ theme }) => theme.colors.primary600};
3109
3129
  }
3110
3130
  }
3111
3131
  }
@@ -3282,7 +3302,10 @@ const uidApi = contentManagerApi.injectEndpoints({
3282
3302
  config: {
3283
3303
  params
3284
3304
  }
3285
- })
3305
+ }),
3306
+ providesTags: (_res, _error, params) => [
3307
+ { type: "UidAvailability", id: params.contentTypeUID }
3308
+ ]
3286
3309
  })
3287
3310
  })
3288
3311
  });
@@ -3294,8 +3317,10 @@ const UIDInput = React.forwardRef(
3294
3317
  const allFormValues = useForm("InputUID", (form) => form.values);
3295
3318
  const [availability, setAvailability] = React.useState();
3296
3319
  const [showRegenerate, setShowRegenerate] = React.useState(false);
3320
+ const isCloning = useMatch(CLONE_PATH) !== null;
3297
3321
  const field = useField(name2);
3298
3322
  const debouncedValue = useDebounce(field.value, 300);
3323
+ const hasChanged = debouncedValue !== field.initialValue;
3299
3324
  const { toggleNotification } = useNotification();
3300
3325
  const { _unstableFormatAPIError: formatAPIError } = useAPIErrorHandler();
3301
3326
  const { formatMessage } = useIntl();
@@ -3371,8 +3396,9 @@ const UIDInput = React.forwardRef(
3371
3396
  params
3372
3397
  },
3373
3398
  {
3399
+ // Don't check availability if the value is empty or wasn't changed
3374
3400
  skip: !Boolean(
3375
- debouncedValue !== field.initialValue && debouncedValue && UID_REGEX.test(debouncedValue.trim())
3401
+ (hasChanged || isCloning) && debouncedValue && UID_REGEX.test(debouncedValue.trim())
3376
3402
  )
3377
3403
  }
3378
3404
  );
@@ -3401,6 +3427,7 @@ const UIDInput = React.forwardRef(
3401
3427
  const isLoading = isGeneratingDefaultUID || isGeneratingUID || isCheckingAvailability;
3402
3428
  const fieldRef = useFocusInputField(name2);
3403
3429
  const composedRefs = useComposedRefs(ref, fieldRef);
3430
+ const shouldShowAvailability = (hasChanged || isCloning) && debouncedValue != null && availability && !showRegenerate;
3404
3431
  return /* @__PURE__ */ jsxs(Field.Root, { hint, name: name2, error: field.error, required, children: [
3405
3432
  /* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
3406
3433
  /* @__PURE__ */ jsx(
@@ -3409,7 +3436,7 @@ const UIDInput = React.forwardRef(
3409
3436
  ref: composedRefs,
3410
3437
  disabled: props.disabled,
3411
3438
  endAction: /* @__PURE__ */ jsxs(Flex, { position: "relative", gap: 1, children: [
3412
- availability && !showRegenerate && /* @__PURE__ */ jsxs(
3439
+ shouldShowAvailability && /* @__PURE__ */ jsxs(
3413
3440
  TextValidation,
3414
3441
  {
3415
3442
  alignItems: "center",
@@ -4243,7 +4270,7 @@ const EditorLayout = ({
4243
4270
  justifyContent: "flex-end",
4244
4271
  shrink: 0,
4245
4272
  width: "100%",
4246
- children: /* @__PURE__ */ jsxs(ExpandButton$1, { onClick: onCollapse, children: [
4273
+ children: /* @__PURE__ */ jsxs(ExpandButton$1, { onClick: onCollapse, variant: "tertiary", size: "M", children: [
4247
4274
  /* @__PURE__ */ jsx(Typography, { children: formatMessage({
4248
4275
  id: "components.Wysiwyg.collapse",
4249
4276
  defaultMessage: "Collapse"
@@ -4261,12 +4288,14 @@ const EditorLayout = ({
4261
4288
  ) }) });
4262
4289
  }
4263
4290
  return /* @__PURE__ */ jsx(
4264
- Box,
4291
+ Flex,
4265
4292
  {
4266
4293
  borderColor: error ? "danger600" : "neutral200",
4267
4294
  borderStyle: "solid",
4268
4295
  borderWidth: "1px",
4269
4296
  hasRadius: true,
4297
+ direction: "column",
4298
+ alignItems: "stretch",
4270
4299
  children
4271
4300
  }
4272
4301
  );
@@ -4277,11 +4306,19 @@ const ExpandWrapper = styled(Flex)`
4277
4306
  const BoxWithBorder = styled(Box)`
4278
4307
  border-right: 1px solid ${({ theme }) => theme.colors.neutral200};
4279
4308
  `;
4280
- const ExpandButton$1 = styled(BaseButton)`
4309
+ const ExpandButton$1 = styled(Button)`
4281
4310
  background-color: transparent;
4282
4311
  border: none;
4283
4312
  align-items: center;
4284
4313
 
4314
+ & > span {
4315
+ display: flex;
4316
+ justify-content: space-between;
4317
+ align-items: center;
4318
+ width: 100%;
4319
+ font-weight: ${({ theme }) => theme.fontWeights.regular};
4320
+ }
4321
+
4285
4322
  svg {
4286
4323
  margin-left: ${({ theme }) => `${theme.spaces[2]}`};
4287
4324
 
@@ -4577,11 +4614,19 @@ const MoreButton = styled(IconButton)`
4577
4614
  const IconButtonGroupMargin = styled(IconButtonGroup)`
4578
4615
  margin-right: ${({ theme }) => `${theme.spaces[2]}`};
4579
4616
  `;
4580
- const ExpandButton = styled(BaseButton)`
4617
+ const ExpandButton = styled(Button)`
4581
4618
  background-color: transparent;
4582
4619
  border: none;
4583
4620
  align-items: center;
4584
4621
 
4622
+ & > span {
4623
+ display: flex;
4624
+ justify-content: space-between;
4625
+ align-items: center;
4626
+ width: 100%;
4627
+ font-weight: ${({ theme }) => theme.fontWeights.regular};
4628
+ }
4629
+
4585
4630
  svg {
4586
4631
  margin-left: ${({ theme }) => `${theme.spaces[2]}`};
4587
4632
  path {
@@ -4593,7 +4638,7 @@ const ExpandButton = styled(BaseButton)`
4593
4638
  `;
4594
4639
  const WysiwygFooter = ({ onToggleExpand }) => {
4595
4640
  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: [
4641
+ 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
4642
  /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: formatMessage({
4598
4643
  id: "components.WysiwygBottomControls.fullscreen",
4599
4644
  defaultMessage: "Expand"
@@ -4630,14 +4675,23 @@ const WysiwygNav = ({
4630
4675
  borderRadius: `0.4rem 0.4rem 0 0`,
4631
4676
  children: [
4632
4677
  /* @__PURE__ */ jsxs(Flex, { children: [
4633
- /* @__PURE__ */ jsx(Field.Root, { children: /* @__PURE__ */ jsxs(SingleSelect, { disabled: true, placeholder: selectPlaceholder, "aria-label": selectPlaceholder, children: [
4634
- /* @__PURE__ */ jsx(SingleSelectOption, { value: "h1", children: "h1" }),
4635
- /* @__PURE__ */ jsx(SingleSelectOption, { value: "h2", children: "h2" }),
4636
- /* @__PURE__ */ jsx(SingleSelectOption, { value: "h3", children: "h3" }),
4637
- /* @__PURE__ */ jsx(SingleSelectOption, { value: "h4", children: "h4" }),
4638
- /* @__PURE__ */ jsx(SingleSelectOption, { value: "h5", children: "h5" }),
4639
- /* @__PURE__ */ jsx(SingleSelectOption, { value: "h6", children: "h6" })
4640
- ] }) }),
4678
+ /* @__PURE__ */ jsx(Field.Root, { children: /* @__PURE__ */ jsxs(
4679
+ SingleSelect,
4680
+ {
4681
+ disabled: true,
4682
+ placeholder: selectPlaceholder,
4683
+ "aria-label": selectPlaceholder,
4684
+ size: "S",
4685
+ children: [
4686
+ /* @__PURE__ */ jsx(SingleSelectOption, { value: "h1", children: "h1" }),
4687
+ /* @__PURE__ */ jsx(SingleSelectOption, { value: "h2", children: "h2" }),
4688
+ /* @__PURE__ */ jsx(SingleSelectOption, { value: "h3", children: "h3" }),
4689
+ /* @__PURE__ */ jsx(SingleSelectOption, { value: "h4", children: "h4" }),
4690
+ /* @__PURE__ */ jsx(SingleSelectOption, { value: "h5", children: "h5" }),
4691
+ /* @__PURE__ */ jsx(SingleSelectOption, { value: "h6", children: "h6" })
4692
+ ]
4693
+ }
4694
+ ) }),
4641
4695
  /* @__PURE__ */ jsxs(MainButtons, { children: [
4642
4696
  /* @__PURE__ */ jsx(CustomIconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(Bold, {}) }),
4643
4697
  /* @__PURE__ */ jsx(CustomIconButton, { disabled: true, label: "Italic", name: "Italic", children: /* @__PURE__ */ jsx(Italic, {}) }),
@@ -4668,6 +4722,7 @@ const WysiwygNav = ({
4668
4722
  placeholder: selectPlaceholder,
4669
4723
  "aria-label": selectPlaceholder,
4670
4724
  onChange: (value) => onActionClick(value, editorRef),
4725
+ size: "S",
4671
4726
  children: [
4672
4727
  /* @__PURE__ */ jsx(SingleSelectOption, { value: "h1", children: "h1" }),
4673
4728
  /* @__PURE__ */ jsx(SingleSelectOption, { value: "h2", children: "h2" }),
@@ -5103,7 +5158,7 @@ const DynamicComponent = ({
5103
5158
  /* @__PURE__ */ jsx(
5104
5159
  IconButton,
5105
5160
  {
5106
- borderWidth: 0,
5161
+ variant: "ghost",
5107
5162
  label: formatMessage(
5108
5163
  {
5109
5164
  id: getTranslation("components.DynamicZone.delete-label"),
@@ -5118,7 +5173,7 @@ const DynamicComponent = ({
5118
5173
  /* @__PURE__ */ jsx(
5119
5174
  IconButton,
5120
5175
  {
5121
- borderWidth: 0,
5176
+ variant: "ghost",
5122
5177
  onClick: (e) => e.stopPropagation(),
5123
5178
  "data-handler-id": handlerId,
5124
5179
  ref: dragRef,
@@ -5179,7 +5234,18 @@ const DynamicComponent = ({
5179
5234
  ] }),
5180
5235
  /* @__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
5236
  const fieldName = `${name2}.${index}.${field.name}`;
5182
- return /* @__PURE__ */ jsx(Grid$1.Item, { col: size, s: 12, xs: 12, children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...field, name: fieldName }) }, fieldName);
5237
+ return /* @__PURE__ */ jsx(
5238
+ Grid$1.Item,
5239
+ {
5240
+ col: size,
5241
+ s: 12,
5242
+ xs: 12,
5243
+ direction: "column",
5244
+ alignItems: "stretch",
5245
+ children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...field, name: fieldName })
5246
+ },
5247
+ fieldName
5248
+ );
5183
5249
  }) }, rowInd)) }) }) })
5184
5250
  ] }) }) })
5185
5251
  ] });
@@ -5488,4 +5554,4 @@ export {
5488
5554
  transformDocument as t,
5489
5555
  useLazyComponents as u
5490
5556
  };
5491
- //# sourceMappingURL=Field-OfBJ6x59.mjs.map
5557
+ //# sourceMappingURL=Field-pb2o8uBe.mjs.map