@strapi/content-manager 5.5.2 → 5.7.0-beta.0

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 (108) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-CzVt9QCC.mjs → ComponentConfigurationPage-5lpPBn6n.mjs} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-CzVt9QCC.mjs.map → ComponentConfigurationPage-5lpPBn6n.mjs.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-DYq8aqos.js → ComponentConfigurationPage-Cqx0YI3k.js} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-DYq8aqos.js.map → ComponentConfigurationPage-Cqx0YI3k.js.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-C9IATpr0.js → EditConfigurationPage-B77EOaXZ.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-C9IATpr0.js.map → EditConfigurationPage-B77EOaXZ.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-CLDwrUv5.mjs → EditConfigurationPage-CmadFlTu.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-CLDwrUv5.mjs.map → EditConfigurationPage-CmadFlTu.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-DtKM7Jgw.mjs → EditViewPage-BZ7rKgPR.mjs} +3 -3
  10. package/dist/_chunks/{EditViewPage-DtKM7Jgw.mjs.map → EditViewPage-BZ7rKgPR.mjs.map} +1 -1
  11. package/dist/_chunks/{EditViewPage-Ch-uBvbv.js → EditViewPage-C3MotJ5Y.js} +3 -3
  12. package/dist/_chunks/{EditViewPage-Ch-uBvbv.js.map → EditViewPage-C3MotJ5Y.js.map} +1 -1
  13. package/dist/_chunks/{Field-Bn1jgMeF.mjs → Field-BJaY6geG.mjs} +107 -55
  14. package/dist/_chunks/Field-BJaY6geG.mjs.map +1 -0
  15. package/dist/_chunks/{Field-B9ADaInZ.js → Field-vX6JQNBo.js} +108 -55
  16. package/dist/_chunks/Field-vX6JQNBo.js.map +1 -0
  17. package/dist/_chunks/{Form-BB5i9Pxl.mjs → Form-C_jE1jPl.mjs} +2 -2
  18. package/dist/_chunks/{Form-BB5i9Pxl.mjs.map → Form-C_jE1jPl.mjs.map} +1 -1
  19. package/dist/_chunks/{Form-C3kjKrPw.js → Form-DPpf_c44.js} +2 -2
  20. package/dist/_chunks/{Form-C3kjKrPw.js.map → Form-DPpf_c44.js.map} +1 -1
  21. package/dist/_chunks/{History-Cw2Q7OQL.mjs → History-BP-pdhNW.mjs} +4 -4
  22. package/dist/_chunks/{History-Cw2Q7OQL.mjs.map → History-BP-pdhNW.mjs.map} +1 -1
  23. package/dist/_chunks/{History-AwrK0-SA.js → History-DeE6TOuC.js} +4 -4
  24. package/dist/_chunks/{History-AwrK0-SA.js.map → History-DeE6TOuC.js.map} +1 -1
  25. package/dist/_chunks/{ListConfigurationPage-B47JIu1e.mjs → ListConfigurationPage-2szESU8j.mjs} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-B47JIu1e.mjs.map → ListConfigurationPage-2szESU8j.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-CNTJ0DBm.js → ListConfigurationPage-BXxZjcqK.js} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-CNTJ0DBm.js.map → ListConfigurationPage-BXxZjcqK.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-Be_UEBar.js → ListViewPage-DvLCUKIZ.js} +3 -3
  30. package/dist/_chunks/{ListViewPage-Be_UEBar.js.map → ListViewPage-DvLCUKIZ.js.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-DuvjX6ra.mjs → ListViewPage-LsX6rtaE.mjs} +3 -3
  32. package/dist/_chunks/{ListViewPage-DuvjX6ra.mjs.map → ListViewPage-LsX6rtaE.mjs.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-B1J0KUCO.js → NoContentTypePage-DVpSHdbK.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-B1J0KUCO.js.map → NoContentTypePage-DVpSHdbK.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-C6M-Q0Tv.mjs → NoContentTypePage-DjczGlTV.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-C6M-Q0Tv.mjs.map → NoContentTypePage-DjczGlTV.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-CAi3zCAD.mjs → NoPermissionsPage-Bd8sfYwk.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-CAi3zCAD.mjs.map → NoPermissionsPage-Bd8sfYwk.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-CN34TlEE.js → NoPermissionsPage-kuqMlHjA.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-CN34TlEE.js.map → NoPermissionsPage-kuqMlHjA.js.map} +1 -1
  41. package/dist/_chunks/{Preview-BrBRcL10.mjs → Preview-B5EhOG_S.mjs} +5 -4
  42. package/dist/_chunks/Preview-B5EhOG_S.mjs.map +1 -0
  43. package/dist/_chunks/{Preview-DOqm5jcJ.js → Preview-y1GVg5Fa.js} +5 -4
  44. package/dist/_chunks/Preview-y1GVg5Fa.js.map +1 -0
  45. package/dist/_chunks/{Relations-_K-HYOiM.mjs → Relations-DFAdJdNd.mjs} +3 -3
  46. package/dist/_chunks/{Relations-_K-HYOiM.mjs.map → Relations-DFAdJdNd.mjs.map} +1 -1
  47. package/dist/_chunks/{Relations-xtKZHtTN.js → Relations-DhF1xMOX.js} +3 -3
  48. package/dist/_chunks/{Relations-xtKZHtTN.js.map → Relations-DhF1xMOX.js.map} +1 -1
  49. package/dist/_chunks/{en-BK8Xyl5I.js → en-BzQmavmK.js} +7 -2
  50. package/dist/_chunks/{en-BK8Xyl5I.js.map → en-BzQmavmK.js.map} +1 -1
  51. package/dist/_chunks/{en-Dtk_ot79.mjs → en-CSxLmrh1.mjs} +7 -2
  52. package/dist/_chunks/{en-Dtk_ot79.mjs.map → en-CSxLmrh1.mjs.map} +1 -1
  53. package/dist/_chunks/{index-tETMKK2G.mjs → index-DLg9rmnQ.mjs} +38 -27
  54. package/dist/_chunks/index-DLg9rmnQ.mjs.map +1 -0
  55. package/dist/_chunks/{index-BlX-OdHL.js → index-DxfsPVeu.js} +38 -27
  56. package/dist/_chunks/index-DxfsPVeu.js.map +1 -0
  57. package/dist/_chunks/{layout-D8Sz3KxF.js → layout-DBUQ2Qyu.js} +3 -3
  58. package/dist/_chunks/{layout-D8Sz3KxF.js.map → layout-DBUQ2Qyu.js.map} +1 -1
  59. package/dist/_chunks/{layout-BaQBaz56.mjs → layout-DFaQLD_J.mjs} +3 -3
  60. package/dist/_chunks/{layout-BaQBaz56.mjs.map → layout-DFaQLD_J.mjs.map} +1 -1
  61. package/dist/_chunks/{relations-CAbbX8Sa.js → relations-DjaW8yCa.js} +2 -2
  62. package/dist/_chunks/{relations-CAbbX8Sa.js.map → relations-DjaW8yCa.js.map} +1 -1
  63. package/dist/_chunks/{relations-CsfmCqOU.mjs → relations-DtF9-7LN.mjs} +2 -2
  64. package/dist/_chunks/{relations-CsfmCqOU.mjs.map → relations-DtF9-7LN.mjs.map} +1 -1
  65. package/dist/admin/index.js +2 -1
  66. package/dist/admin/index.js.map +1 -1
  67. package/dist/admin/index.mjs +2 -1
  68. package/dist/admin/src/exports.d.ts +1 -0
  69. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  70. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +1 -1
  71. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +7 -0
  72. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +49 -0
  73. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -0
  74. package/dist/admin/src/preview/services/preview.d.ts +1 -1
  75. package/dist/admin/src/services/api.d.ts +1 -1
  76. package/dist/admin/src/services/components.d.ts +2 -2
  77. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  78. package/dist/admin/src/services/documents.d.ts +16 -16
  79. package/dist/admin/src/services/init.d.ts +1 -1
  80. package/dist/admin/src/services/relations.d.ts +2 -2
  81. package/dist/admin/src/services/uid.d.ts +3 -3
  82. package/dist/server/index.js +74 -66
  83. package/dist/server/index.js.map +1 -1
  84. package/dist/server/index.mjs +75 -67
  85. package/dist/server/index.mjs.map +1 -1
  86. package/dist/server/src/controllers/utils/metadata.d.ts +1 -0
  87. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  88. package/dist/server/src/index.d.ts +3 -2
  89. package/dist/server/src/index.d.ts.map +1 -1
  90. package/dist/server/src/preview/index.d.ts.map +1 -1
  91. package/dist/server/src/services/document-metadata.d.ts +4 -2
  92. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  93. package/dist/server/src/services/index.d.ts +3 -2
  94. package/dist/server/src/services/index.d.ts.map +1 -1
  95. package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
  96. package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
  97. package/dist/server/src/services/utils/populate.d.ts +2 -2
  98. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  99. package/package.json +9 -6
  100. package/dist/_chunks/Field-B9ADaInZ.js.map +0 -1
  101. package/dist/_chunks/Field-Bn1jgMeF.mjs.map +0 -1
  102. package/dist/_chunks/Preview-BrBRcL10.mjs.map +0 -1
  103. package/dist/_chunks/Preview-DOqm5jcJ.js.map +0 -1
  104. package/dist/_chunks/index-BlX-OdHL.js.map +0 -1
  105. package/dist/_chunks/index-tETMKK2G.mjs.map +0 -1
  106. package/dist/admin/src/preview/constants.d.ts +0 -1
  107. package/dist/server/src/preview/constants.d.ts +0 -2
  108. package/dist/server/src/preview/constants.d.ts.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, 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, S as SINGLE_TYPES, o as useDocLayout } from "./index-tETMKK2G.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-DLg9rmnQ.mjs";
9
9
  import { generateNKeysBetween } from "fractional-indexing";
10
- import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-_K-HYOiM.mjs";
10
+ import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-DFAdJdNd.mjs";
11
11
  import { CodeBlock as CodeBlock$1, HeadingOne, HeadingTwo, HeadingThree, HeadingFour, HeadingFive, HeadingSix, Image as Image$1, NumberList, BulletList, Paragraph, Quotes, Link as Link$1, Drag, Collapse, Bold, Italic, Underline, StrikeThrough, Code, 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";
@@ -17,6 +17,57 @@ 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";
20
+ import * as Prism from "prismjs";
21
+ import "prismjs/themes/prism-solarizedlight.css";
22
+ import "prismjs/components/prism-asmatmel";
23
+ import "prismjs/components/prism-bash";
24
+ import "prismjs/components/prism-basic";
25
+ import "prismjs/components/prism-c";
26
+ import "prismjs/components/prism-clojure";
27
+ import "prismjs/components/prism-cobol";
28
+ import "prismjs/components/prism-cpp";
29
+ import "prismjs/components/prism-csharp";
30
+ import "prismjs/components/prism-dart";
31
+ import "prismjs/components/prism-docker";
32
+ import "prismjs/components/prism-elixir";
33
+ import "prismjs/components/prism-erlang";
34
+ import "prismjs/components/prism-fortran";
35
+ import "prismjs/components/prism-fsharp";
36
+ import "prismjs/components/prism-go";
37
+ import "prismjs/components/prism-graphql";
38
+ import "prismjs/components/prism-groovy";
39
+ import "prismjs/components/prism-haskell";
40
+ import "prismjs/components/prism-haxe";
41
+ import "prismjs/components/prism-ini";
42
+ import "prismjs/components/prism-java";
43
+ import "prismjs/components/prism-javascript";
44
+ import "prismjs/components/prism-jsx";
45
+ import "prismjs/components/prism-json";
46
+ import "prismjs/components/prism-julia";
47
+ import "prismjs/components/prism-kotlin";
48
+ import "prismjs/components/prism-latex";
49
+ import "prismjs/components/prism-lua";
50
+ import "prismjs/components/prism-markdown";
51
+ import "prismjs/components/prism-matlab";
52
+ import "prismjs/components/prism-makefile";
53
+ import "prismjs/components/prism-objectivec";
54
+ import "prismjs/components/prism-perl";
55
+ import "prismjs/components/prism-php";
56
+ import "prismjs/components/prism-powershell";
57
+ import "prismjs/components/prism-python";
58
+ import "prismjs/components/prism-r";
59
+ import "prismjs/components/prism-ruby";
60
+ import "prismjs/components/prism-rust";
61
+ import "prismjs/components/prism-sas";
62
+ import "prismjs/components/prism-scala";
63
+ import "prismjs/components/prism-scheme";
64
+ import "prismjs/components/prism-sql";
65
+ import "prismjs/components/prism-stata";
66
+ import "prismjs/components/prism-swift";
67
+ import "prismjs/components/prism-typescript";
68
+ import "prismjs/components/prism-tsx";
69
+ import "prismjs/components/prism-vbnet";
70
+ import "prismjs/components/prism-yaml";
20
71
  import { p as prefixFileUrlWithBackendUrl, u as usePrev, a as useDebounce } from "./useDebounce-DmuSJIF3.mjs";
21
72
  import * as Toolbar from "@radix-ui/react-toolbar";
22
73
  import { useLocation, useMatch } from "react-router-dom";
@@ -163,7 +214,8 @@ const useLazyComponents = (componentUids = []) => {
163
214
  const codeLanguages = [
164
215
  {
165
216
  value: "asm",
166
- label: "Assembly"
217
+ label: "Assembly",
218
+ decorate: "asmatmel"
167
219
  },
168
220
  {
169
221
  value: "bash",
@@ -199,7 +251,8 @@ const codeLanguages = [
199
251
  },
200
252
  {
201
253
  value: "dockerfile",
202
- label: "Dockerfile"
254
+ label: "Dockerfile",
255
+ decorate: "docker"
203
256
  },
204
257
  {
205
258
  value: "elixir",
@@ -355,7 +408,8 @@ const codeLanguages = [
355
408
  },
356
409
  {
357
410
  value: "typescript",
358
- label: "TypeScript"
411
+ label: "TypeScript",
412
+ decorate: "ts"
359
413
  },
360
414
  {
361
415
  value: "tsx",
@@ -371,7 +425,8 @@ const codeLanguages = [
371
425
  },
372
426
  {
373
427
  value: "yaml",
374
- label: "YAML"
428
+ label: "YAML",
429
+ decorate: "yml"
375
430
  }
376
431
  ];
377
432
  const baseHandleConvert = (editor, attributesToSet) => {
@@ -437,6 +492,29 @@ const pressEnterTwiceToExit = (editor) => {
437
492
  });
438
493
  }
439
494
  };
495
+ const decorateCode = ([node, path]) => {
496
+ const ranges = [];
497
+ if (!Element.isElement(node) || node.type !== "code") return ranges;
498
+ const text = Node.string(node);
499
+ const language = codeLanguages.find((lang) => lang.value === node.language);
500
+ const decorateKey = language?.decorate ?? language?.value;
501
+ const selectedLanguage = Prism.languages[decorateKey || "plaintext"];
502
+ const tokens = Prism.tokenize(text, selectedLanguage);
503
+ let start = 0;
504
+ for (const token of tokens) {
505
+ const length = token.length;
506
+ const end = start + length;
507
+ if (typeof token !== "string") {
508
+ ranges.push({
509
+ anchor: { path, offset: start },
510
+ focus: { path, offset: end },
511
+ className: `token ${token.type}`
512
+ });
513
+ }
514
+ start = end;
515
+ }
516
+ return ranges;
517
+ };
440
518
  const CodeBlock = styled.pre`
441
519
  border-radius: ${({ theme }) => theme.borderRadius};
442
520
  background-color: ${({ theme }) => theme.colors.neutral100};
@@ -521,8 +599,7 @@ const codeBlocks = {
521
599
  handleEnterKey(editor) {
522
600
  pressEnterTwiceToExit(editor);
523
601
  },
524
- snippets: ["```"],
525
- dragHandleTopMargin: "10px"
602
+ snippets: ["```"]
526
603
  }
527
604
  };
528
605
  const H1 = styled(Typography).attrs({ tag: "h1" })`
@@ -1301,13 +1378,13 @@ const quoteBlocks = {
1301
1378
  handleEnterKey(editor) {
1302
1379
  pressEnterTwiceToExit(editor);
1303
1380
  },
1304
- snippets: [">"],
1305
- dragHandleTopMargin: "6px"
1381
+ snippets: [">"]
1306
1382
  }
1307
1383
  };
1308
1384
  const ToolbarWrapper = styled(Flex)`
1309
1385
  &[aria-disabled='true'] {
1310
1386
  cursor: not-allowed;
1387
+ background: ${({ theme }) => theme.colors.neutral150};
1311
1388
  }
1312
1389
  `;
1313
1390
  const Separator = styled(Toolbar.Separator)`
@@ -1318,7 +1395,7 @@ const Separator = styled(Toolbar.Separator)`
1318
1395
  const FlexButton = styled(Flex)`
1319
1396
  // Inherit the not-allowed cursor from ToolbarWrapper when disabled
1320
1397
  &[aria-disabled] {
1321
- cursor: inherit;
1398
+ cursor: not-allowed;
1322
1399
  }
1323
1400
 
1324
1401
  &[aria-disabled='false'] {
@@ -1670,7 +1747,7 @@ const BlocksToolbar = () => {
1670
1747
  return false;
1671
1748
  };
1672
1749
  const isButtonDisabled = checkButtonDisabled();
1673
- return /* @__PURE__ */ jsx(Toolbar.Root, { "aria-disabled": disabled, asChild: true, children: /* @__PURE__ */ jsxs(ToolbarWrapper, { gap: 2, padding: 2, children: [
1750
+ return /* @__PURE__ */ jsx(Toolbar.Root, { "aria-disabled": disabled, asChild: true, children: /* @__PURE__ */ jsxs(ToolbarWrapper, { gap: 2, padding: 2, width: "100%", children: [
1674
1751
  /* @__PURE__ */ jsx(BlocksDropdown, {}),
1675
1752
  /* @__PURE__ */ jsx(Separator, {}),
1676
1753
  /* @__PURE__ */ jsx(Toolbar.ToggleGroup, { type: "multiple", asChild: true, children: /* @__PURE__ */ jsxs(Flex, { gap: 1, children: [
@@ -1744,30 +1821,32 @@ const DragIconButton = styled(IconButton)`
1744
1821
  display: flex;
1745
1822
  align-items: center;
1746
1823
  justify-content: center;
1824
+ border: none;
1747
1825
  border-radius: ${({ theme }) => theme.borderRadius};
1748
- width: ${({ theme }) => theme.spaces[4]};
1749
- height: ${({ theme }) => theme.spaces[6]};
1826
+ padding-left: ${({ theme }) => theme.spaces[0]};
1827
+ padding-right: ${({ theme }) => theme.spaces[0]};
1828
+ padding-top: ${({ theme }) => theme.spaces[1]};
1829
+ padding-bottom: ${({ theme }) => theme.spaces[1]};
1750
1830
  visibility: hidden;
1751
1831
  cursor: grab;
1752
1832
  opacity: inherit;
1753
1833
  margin-top: ${(props) => props.$dragHandleTopMargin ?? 0};
1754
1834
 
1755
1835
  &:hover {
1756
- background: ${({ theme }) => theme.colors.neutral200};
1836
+ background: ${({ theme }) => theme.colors.neutral100};
1757
1837
  }
1758
1838
  &:active {
1759
1839
  cursor: grabbing;
1840
+ background: ${({ theme }) => theme.colors.neutral150};
1760
1841
  }
1761
1842
  &[aria-disabled='true'] {
1762
- cursor: not-allowed;
1763
- background: transparent;
1843
+ visibility: hidden;
1764
1844
  }
1765
1845
  svg {
1766
- height: auto;
1767
1846
  min-width: ${({ theme }) => theme.spaces[3]};
1768
1847
 
1769
1848
  path {
1770
- fill: ${({ theme }) => theme.colors.neutral700};
1849
+ fill: ${({ theme }) => theme.colors.neutral500};
1771
1850
  }
1772
1851
  }
1773
1852
  `;
@@ -1918,7 +1997,7 @@ const baseRenderLeaf = (props, modifiers2) => {
1918
1997
  }
1919
1998
  return currentChildren;
1920
1999
  }, props.children);
1921
- return /* @__PURE__ */ jsx("span", { ...props.attributes, children: wrappedChildren });
2000
+ return /* @__PURE__ */ jsx("span", { ...props.attributes, className: props.leaf.className, children: wrappedChildren });
1922
2001
  };
1923
2002
  const baseRenderElement = ({
1924
2003
  props,
@@ -2120,7 +2199,7 @@ const BlocksContent = ({ placeholder, ariaLabelId }) => {
2120
2199
  background: "neutral0",
2121
2200
  color: "neutral800",
2122
2201
  lineHeight: 6,
2123
- paddingRight: 4,
2202
+ paddingRight: 7,
2124
2203
  paddingTop: 6,
2125
2204
  paddingBottom: 3,
2126
2205
  children: [
@@ -2131,6 +2210,7 @@ const BlocksContent = ({ placeholder, ariaLabelId }) => {
2131
2210
  readOnly: disabled,
2132
2211
  placeholder,
2133
2212
  isExpandedMode,
2213
+ decorate: decorateCode,
2134
2214
  renderElement,
2135
2215
  renderLeaf,
2136
2216
  onKeyDown: handleKeyDown,
@@ -2453,6 +2533,7 @@ const ExpandIconButton = styled(IconButton)`
2453
2533
  position: absolute;
2454
2534
  bottom: 1.2rem;
2455
2535
  right: 1.2rem;
2536
+ box-shadow: ${({ theme }) => theme.shadows.filterShadow};
2456
2537
  `;
2457
2538
  function useResetKey(value) {
2458
2539
  const slateUpdatesCount = React.useRef(0);
@@ -3106,11 +3187,11 @@ const AddComponentButton = ({
3106
3187
  children: /* @__PURE__ */ jsxs(Flex, { tag: "span", gap: 2, children: [
3107
3188
  /* @__PURE__ */ jsx(StyledAddIcon, { "aria-hidden": true, $isOpen: isOpen, $hasError: hasError && !isOpen }),
3108
3189
  /* @__PURE__ */ jsx(
3109
- AddComponentTitle,
3190
+ Typography,
3110
3191
  {
3111
3192
  variant: "pi",
3112
3193
  fontWeight: "bold",
3113
- textColor: hasError && !isOpen ? "danger600" : "neutral500",
3194
+ textColor: hasError && !isOpen ? "danger600" : "neutral600",
3114
3195
  children
3115
3196
  }
3116
3197
  )
@@ -3127,43 +3208,14 @@ const StyledAddIcon = styled(PlusCircle)`
3127
3208
  fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger200 : theme.colors.neutral150};
3128
3209
  }
3129
3210
  > path {
3130
- fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger600 : theme.colors.neutral600};
3211
+ fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger600 : theme.colors.neutral500};
3131
3212
  }
3132
3213
  `;
3133
- const AddComponentTitle = styled(Typography)``;
3134
3214
  const StyledButton = styled(Button)`
3215
+ padding-left: ${({ theme }) => theme.spaces[3]};
3135
3216
  border-radius: 26px;
3136
- border-color: ${({ theme }) => theme.colors.neutral150};
3137
3217
  box-shadow: ${({ theme }) => theme.shadows.filterShadow};
3138
3218
  height: 5rem;
3139
-
3140
- &:hover {
3141
- ${AddComponentTitle} {
3142
- color: ${({ theme }) => theme.colors.primary600};
3143
- }
3144
-
3145
- ${StyledAddIcon} {
3146
- > circle {
3147
- fill: ${({ theme }) => theme.colors.primary600};
3148
- }
3149
- > path {
3150
- fill: ${({ theme }) => theme.colors.primary600};
3151
- }
3152
- }
3153
- }
3154
- &:active {
3155
- ${AddComponentTitle} {
3156
- color: ${({ theme }) => theme.colors.primary600};
3157
- }
3158
- ${StyledAddIcon} {
3159
- > circle {
3160
- fill: ${({ theme }) => theme.colors.primary600};
3161
- }
3162
- > path {
3163
- fill: ${({ theme }) => theme.colors.neutral100};
3164
- }
3165
- }
3166
- }
3167
3219
  `;
3168
3220
  const ComponentCategory = ({
3169
3221
  category,
@@ -5560,4 +5612,4 @@ export {
5560
5612
  transformDocument as t,
5561
5613
  useLazyComponents as u
5562
5614
  };
5563
- //# sourceMappingURL=Field-Bn1jgMeF.mjs.map
5615
+ //# sourceMappingURL=Field-BJaY6geG.mjs.map