@strapi/content-manager 0.0.0-experimental.e350eaa6073e65190102b4b798c32c287053cc02 → 0.0.0-experimental.e8d8fc824d0f6a695b2a9ebaa4680ed21c3645ca

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 (83) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-BTR_hQow.js → ComponentConfigurationPage-BlzvDpbX.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-BTR_hQow.js.map → ComponentConfigurationPage-BlzvDpbX.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-bLQr82ce.mjs → ComponentConfigurationPage-DaPOlQaD.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-bLQr82ce.mjs.map → ComponentConfigurationPage-DaPOlQaD.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-BhRSnUsL.mjs → EditConfigurationPage-BZPXItXo.mjs} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-BhRSnUsL.mjs.map → EditConfigurationPage-BZPXItXo.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-z39Wv3E6.js → EditConfigurationPage-uy-v43AR.js} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-z39Wv3E6.js.map → EditConfigurationPage-uy-v43AR.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-wujOq90c.js → EditViewPage-DT6A4ayX.js} +3 -3
  10. package/dist/_chunks/{EditViewPage-wujOq90c.js.map → EditViewPage-DT6A4ayX.js.map} +1 -1
  11. package/dist/_chunks/{EditViewPage-BCjNxNlY.mjs → EditViewPage-oOLeTySr.mjs} +3 -3
  12. package/dist/_chunks/{EditViewPage-BCjNxNlY.mjs.map → EditViewPage-oOLeTySr.mjs.map} +1 -1
  13. package/dist/_chunks/{Field-Byr3mPTl.mjs → Field-D7dv2aUX.mjs} +23 -50
  14. package/dist/_chunks/Field-D7dv2aUX.mjs.map +1 -0
  15. package/dist/_chunks/{Field-B5QXnctJ.js → Field-kYFVIGiP.js} +23 -50
  16. package/dist/_chunks/Field-kYFVIGiP.js.map +1 -0
  17. package/dist/_chunks/{Form-BZgvE8C8.mjs → Form-BxR6sc29.mjs} +2 -2
  18. package/dist/_chunks/{Form-BZgvE8C8.mjs.map → Form-BxR6sc29.mjs.map} +1 -1
  19. package/dist/_chunks/{Form-D7mexvm3.js → Form-CCijSg3V.js} +2 -2
  20. package/dist/_chunks/{Form-D7mexvm3.js.map → Form-CCijSg3V.js.map} +1 -1
  21. package/dist/_chunks/{History-DYl2A8Z_.js → History-BMndx49M.js} +4 -4
  22. package/dist/_chunks/{History-DYl2A8Z_.js.map → History-BMndx49M.js.map} +1 -1
  23. package/dist/_chunks/{History-CqNgxkqK.mjs → History-D8F7aYQU.mjs} +4 -4
  24. package/dist/_chunks/{History-CqNgxkqK.mjs.map → History-D8F7aYQU.mjs.map} +1 -1
  25. package/dist/_chunks/{ListConfigurationPage-BXnu_OoY.js → ListConfigurationPage-DouY1EWM.js} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-BXnu_OoY.js.map → ListConfigurationPage-DouY1EWM.js.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-BbQjzKkQ.mjs → ListConfigurationPage-DqAdSPwC.mjs} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-BbQjzKkQ.mjs.map → ListConfigurationPage-DqAdSPwC.mjs.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-BtSi8C1l.js → ListViewPage-BPVmh9pq.js} +3 -3
  30. package/dist/_chunks/{ListViewPage-BtSi8C1l.js.map → ListViewPage-BPVmh9pq.js.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-D4ofkbjR.mjs → ListViewPage-C73F0jPh.mjs} +3 -3
  32. package/dist/_chunks/{ListViewPage-D4ofkbjR.mjs.map → ListViewPage-C73F0jPh.mjs.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-DyUx5mXh.mjs → NoContentTypePage-B5w7iJOF.mjs} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-DyUx5mXh.mjs.map → NoContentTypePage-B5w7iJOF.mjs.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-CitJeOq4.js → NoContentTypePage-BwcL--4H.js} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-CitJeOq4.js.map → NoContentTypePage-BwcL--4H.js.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-DzgWz0M-.js → NoPermissionsPage-BMFKVcwJ.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-DzgWz0M-.js.map → NoPermissionsPage-BMFKVcwJ.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-DhIiyWkk.mjs → NoPermissionsPage-UnEgMGK4.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-DhIiyWkk.mjs.map → NoPermissionsPage-UnEgMGK4.mjs.map} +1 -1
  41. package/dist/_chunks/{Preview-DfNx8Ke-.js → Preview-B7PR3Ok_.js} +5 -4
  42. package/dist/_chunks/Preview-B7PR3Ok_.js.map +1 -0
  43. package/dist/_chunks/{Preview-BaYGJ0nb.mjs → Preview-DECOhK0D.mjs} +5 -4
  44. package/dist/_chunks/Preview-DECOhK0D.mjs.map +1 -0
  45. package/dist/_chunks/{Relations-DM2yUTST.mjs → Relations-DinMQJ4B.mjs} +3 -3
  46. package/dist/_chunks/{Relations-DM2yUTST.mjs.map → Relations-DinMQJ4B.mjs.map} +1 -1
  47. package/dist/_chunks/{Relations-DuKCaXrv.js → Relations-lndx3aQk.js} +3 -3
  48. package/dist/_chunks/{Relations-DuKCaXrv.js.map → Relations-lndx3aQk.js.map} +1 -1
  49. package/dist/_chunks/{index-DVAIIsOs.mjs → index-C2SagWVW.mjs} +11 -11
  50. package/dist/_chunks/{index-DVAIIsOs.mjs.map → index-C2SagWVW.mjs.map} +1 -1
  51. package/dist/_chunks/{index-BUWEmX8m.js → index-Cnw4gqee.js} +11 -11
  52. package/dist/_chunks/{index-BUWEmX8m.js.map → index-Cnw4gqee.js.map} +1 -1
  53. package/dist/_chunks/{layout-Bxsv5mP7.mjs → layout-DY_D9MGA.mjs} +3 -3
  54. package/dist/_chunks/{layout-Bxsv5mP7.mjs.map → layout-DY_D9MGA.mjs.map} +1 -1
  55. package/dist/_chunks/{layout-C3fN7Ejz.js → layout-ivwIVPnV.js} +3 -3
  56. package/dist/_chunks/{layout-C3fN7Ejz.js.map → layout-ivwIVPnV.js.map} +1 -1
  57. package/dist/_chunks/{relations-BPZKAoEY.js → relations-B7C7O_Pv.js} +2 -2
  58. package/dist/_chunks/{relations-BPZKAoEY.js.map → relations-B7C7O_Pv.js.map} +1 -1
  59. package/dist/_chunks/{relations-o3pPhzY4.mjs → relations-Boc5Y9kX.mjs} +2 -2
  60. package/dist/_chunks/{relations-o3pPhzY4.mjs.map → relations-Boc5Y9kX.mjs.map} +1 -1
  61. package/dist/admin/index.js +1 -1
  62. package/dist/admin/index.mjs +1 -1
  63. package/dist/server/index.js +74 -62
  64. package/dist/server/index.js.map +1 -1
  65. package/dist/server/index.mjs +75 -63
  66. package/dist/server/index.mjs.map +1 -1
  67. package/dist/server/src/controllers/utils/metadata.d.ts +1 -0
  68. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  69. package/dist/server/src/index.d.ts +3 -2
  70. package/dist/server/src/index.d.ts.map +1 -1
  71. package/dist/server/src/services/document-metadata.d.ts +4 -2
  72. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  73. package/dist/server/src/services/index.d.ts +3 -2
  74. package/dist/server/src/services/index.d.ts.map +1 -1
  75. package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
  76. package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
  77. package/dist/server/src/services/utils/populate.d.ts +2 -2
  78. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  79. package/package.json +6 -6
  80. package/dist/_chunks/Field-B5QXnctJ.js.map +0 -1
  81. package/dist/_chunks/Field-Byr3mPTl.mjs.map +0 -1
  82. package/dist/_chunks/Preview-BaYGJ0nb.mjs.map +0 -1
  83. package/dist/_chunks/Preview-DfNx8Ke-.js.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-DVAIIsOs.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-C2SagWVW.mjs";
9
9
  import { generateNKeysBetween } from "fractional-indexing";
10
- import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-DM2yUTST.mjs";
10
+ import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-DinMQJ4B.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";
@@ -599,8 +599,7 @@ const codeBlocks = {
599
599
  handleEnterKey(editor) {
600
600
  pressEnterTwiceToExit(editor);
601
601
  },
602
- snippets: ["```"],
603
- dragHandleTopMargin: "10px"
602
+ snippets: ["```"]
604
603
  }
605
604
  };
606
605
  const H1 = styled(Typography).attrs({ tag: "h1" })`
@@ -1379,13 +1378,13 @@ const quoteBlocks = {
1379
1378
  handleEnterKey(editor) {
1380
1379
  pressEnterTwiceToExit(editor);
1381
1380
  },
1382
- snippets: [">"],
1383
- dragHandleTopMargin: "6px"
1381
+ snippets: [">"]
1384
1382
  }
1385
1383
  };
1386
1384
  const ToolbarWrapper = styled(Flex)`
1387
1385
  &[aria-disabled='true'] {
1388
1386
  cursor: not-allowed;
1387
+ background: ${({ theme }) => theme.colors.neutral150};
1389
1388
  }
1390
1389
  `;
1391
1390
  const Separator = styled(Toolbar.Separator)`
@@ -1396,7 +1395,7 @@ const Separator = styled(Toolbar.Separator)`
1396
1395
  const FlexButton = styled(Flex)`
1397
1396
  // Inherit the not-allowed cursor from ToolbarWrapper when disabled
1398
1397
  &[aria-disabled] {
1399
- cursor: inherit;
1398
+ cursor: not-allowed;
1400
1399
  }
1401
1400
 
1402
1401
  &[aria-disabled='false'] {
@@ -1748,7 +1747,7 @@ const BlocksToolbar = () => {
1748
1747
  return false;
1749
1748
  };
1750
1749
  const isButtonDisabled = checkButtonDisabled();
1751
- 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: [
1752
1751
  /* @__PURE__ */ jsx(BlocksDropdown, {}),
1753
1752
  /* @__PURE__ */ jsx(Separator, {}),
1754
1753
  /* @__PURE__ */ jsx(Toolbar.ToggleGroup, { type: "multiple", asChild: true, children: /* @__PURE__ */ jsxs(Flex, { gap: 1, children: [
@@ -1822,30 +1821,32 @@ const DragIconButton = styled(IconButton)`
1822
1821
  display: flex;
1823
1822
  align-items: center;
1824
1823
  justify-content: center;
1824
+ border: none;
1825
1825
  border-radius: ${({ theme }) => theme.borderRadius};
1826
- width: ${({ theme }) => theme.spaces[4]};
1827
- 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]};
1828
1830
  visibility: hidden;
1829
1831
  cursor: grab;
1830
1832
  opacity: inherit;
1831
1833
  margin-top: ${(props) => props.$dragHandleTopMargin ?? 0};
1832
1834
 
1833
1835
  &:hover {
1834
- background: ${({ theme }) => theme.colors.neutral200};
1836
+ background: ${({ theme }) => theme.colors.neutral100};
1835
1837
  }
1836
1838
  &:active {
1837
1839
  cursor: grabbing;
1840
+ background: ${({ theme }) => theme.colors.neutral150};
1838
1841
  }
1839
1842
  &[aria-disabled='true'] {
1840
- cursor: not-allowed;
1841
- background: transparent;
1843
+ visibility: hidden;
1842
1844
  }
1843
1845
  svg {
1844
- height: auto;
1845
1846
  min-width: ${({ theme }) => theme.spaces[3]};
1846
1847
 
1847
1848
  path {
1848
- fill: ${({ theme }) => theme.colors.neutral700};
1849
+ fill: ${({ theme }) => theme.colors.neutral500};
1849
1850
  }
1850
1851
  }
1851
1852
  `;
@@ -2198,7 +2199,7 @@ const BlocksContent = ({ placeholder, ariaLabelId }) => {
2198
2199
  background: "neutral0",
2199
2200
  color: "neutral800",
2200
2201
  lineHeight: 6,
2201
- paddingRight: 4,
2202
+ paddingRight: 7,
2202
2203
  paddingTop: 6,
2203
2204
  paddingBottom: 3,
2204
2205
  children: [
@@ -2532,6 +2533,7 @@ const ExpandIconButton = styled(IconButton)`
2532
2533
  position: absolute;
2533
2534
  bottom: 1.2rem;
2534
2535
  right: 1.2rem;
2536
+ box-shadow: ${({ theme }) => theme.shadows.filterShadow};
2535
2537
  `;
2536
2538
  function useResetKey(value) {
2537
2539
  const slateUpdatesCount = React.useRef(0);
@@ -3185,11 +3187,11 @@ const AddComponentButton = ({
3185
3187
  children: /* @__PURE__ */ jsxs(Flex, { tag: "span", gap: 2, children: [
3186
3188
  /* @__PURE__ */ jsx(StyledAddIcon, { "aria-hidden": true, $isOpen: isOpen, $hasError: hasError && !isOpen }),
3187
3189
  /* @__PURE__ */ jsx(
3188
- AddComponentTitle,
3190
+ Typography,
3189
3191
  {
3190
3192
  variant: "pi",
3191
3193
  fontWeight: "bold",
3192
- textColor: hasError && !isOpen ? "danger600" : "neutral500",
3194
+ textColor: hasError && !isOpen ? "danger600" : "neutral600",
3193
3195
  children
3194
3196
  }
3195
3197
  )
@@ -3206,43 +3208,14 @@ const StyledAddIcon = styled(PlusCircle)`
3206
3208
  fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger200 : theme.colors.neutral150};
3207
3209
  }
3208
3210
  > path {
3209
- fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger600 : theme.colors.neutral600};
3211
+ fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger600 : theme.colors.neutral500};
3210
3212
  }
3211
3213
  `;
3212
- const AddComponentTitle = styled(Typography)``;
3213
3214
  const StyledButton = styled(Button)`
3215
+ padding-left: ${({ theme }) => theme.spaces[3]};
3214
3216
  border-radius: 26px;
3215
- border-color: ${({ theme }) => theme.colors.neutral150};
3216
3217
  box-shadow: ${({ theme }) => theme.shadows.filterShadow};
3217
3218
  height: 5rem;
3218
-
3219
- &:hover {
3220
- ${AddComponentTitle} {
3221
- color: ${({ theme }) => theme.colors.primary600};
3222
- }
3223
-
3224
- ${StyledAddIcon} {
3225
- > circle {
3226
- fill: ${({ theme }) => theme.colors.primary600};
3227
- }
3228
- > path {
3229
- fill: ${({ theme }) => theme.colors.primary600};
3230
- }
3231
- }
3232
- }
3233
- &:active {
3234
- ${AddComponentTitle} {
3235
- color: ${({ theme }) => theme.colors.primary600};
3236
- }
3237
- ${StyledAddIcon} {
3238
- > circle {
3239
- fill: ${({ theme }) => theme.colors.primary600};
3240
- }
3241
- > path {
3242
- fill: ${({ theme }) => theme.colors.neutral100};
3243
- }
3244
- }
3245
- }
3246
3219
  `;
3247
3220
  const ComponentCategory = ({
3248
3221
  category,
@@ -5639,4 +5612,4 @@ export {
5639
5612
  transformDocument as t,
5640
5613
  useLazyComponents as u
5641
5614
  };
5642
- //# sourceMappingURL=Field-Byr3mPTl.mjs.map
5615
+ //# sourceMappingURL=Field-D7dv2aUX.mjs.map