@strapi/content-manager 0.0.0-next.f698d55751345c4ca87477ef683475c1a68f310a → 0.0.0-next.fc1775f7731f8999840e56e298a216b9a6c5c4ad

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 (111) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-BTR_hQow.js → ComponentConfigurationPage-BLWQy8ru.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-BTR_hQow.js.map → ComponentConfigurationPage-BLWQy8ru.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-bLQr82ce.mjs → ComponentConfigurationPage-CtIa3aa2.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-bLQr82ce.mjs.map → ComponentConfigurationPage-CtIa3aa2.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-BhRSnUsL.mjs → EditConfigurationPage-DsPR2DVk.mjs} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-BhRSnUsL.mjs.map → EditConfigurationPage-DsPR2DVk.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-z39Wv3E6.js → EditConfigurationPage-RQkymxCy.js} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-z39Wv3E6.js.map → EditConfigurationPage-RQkymxCy.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-wujOq90c.js → EditViewPage-B-kExt8C.js} +3 -3
  10. package/dist/_chunks/{EditViewPage-wujOq90c.js.map → EditViewPage-B-kExt8C.js.map} +1 -1
  11. package/dist/_chunks/{EditViewPage-BCjNxNlY.mjs → EditViewPage-BPyVuPfM.mjs} +3 -3
  12. package/dist/_chunks/{EditViewPage-BCjNxNlY.mjs.map → EditViewPage-BPyVuPfM.mjs.map} +1 -1
  13. package/dist/_chunks/{Field-B5QXnctJ.js → Field-DPIsQRre.js} +30 -54
  14. package/dist/_chunks/Field-DPIsQRre.js.map +1 -0
  15. package/dist/_chunks/{Field-Byr3mPTl.mjs → Field-Dltnt1km.mjs} +30 -54
  16. package/dist/_chunks/Field-Dltnt1km.mjs.map +1 -0
  17. package/dist/_chunks/{Form-D7mexvm3.js → Form-BFi4MXMT.js} +2 -2
  18. package/dist/_chunks/{Form-D7mexvm3.js.map → Form-BFi4MXMT.js.map} +1 -1
  19. package/dist/_chunks/{Form-BZgvE8C8.mjs → Form-C1IcWm1u.mjs} +2 -2
  20. package/dist/_chunks/{Form-BZgvE8C8.mjs.map → Form-C1IcWm1u.mjs.map} +1 -1
  21. package/dist/_chunks/{History-CqNgxkqK.mjs → History-04ChQ4pl.mjs} +32 -8
  22. package/dist/_chunks/History-04ChQ4pl.mjs.map +1 -0
  23. package/dist/_chunks/{History-DYl2A8Z_.js → History-wjcK4L0C.js} +32 -8
  24. package/dist/_chunks/History-wjcK4L0C.js.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-BbQjzKkQ.mjs → ListConfigurationPage-BYqPYLSU.mjs} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-BbQjzKkQ.mjs.map → ListConfigurationPage-BYqPYLSU.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-BXnu_OoY.js → ListConfigurationPage-CRbxIC3J.js} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-BXnu_OoY.js.map → ListConfigurationPage-CRbxIC3J.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-BtSi8C1l.js → ListViewPage-D5NY9183.js} +3 -3
  30. package/dist/_chunks/{ListViewPage-BtSi8C1l.js.map → ListViewPage-D5NY9183.js.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-D4ofkbjR.mjs → ListViewPage-FU2LBuhl.mjs} +3 -3
  32. package/dist/_chunks/{ListViewPage-D4ofkbjR.mjs.map → ListViewPage-FU2LBuhl.mjs.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-CitJeOq4.js → NoContentTypePage-BgQVE_Qb.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-CitJeOq4.js.map → NoContentTypePage-BgQVE_Qb.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DyUx5mXh.mjs → NoContentTypePage-DCKUkwb8.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DyUx5mXh.mjs.map → NoContentTypePage-DCKUkwb8.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-DzgWz0M-.js → NoPermissionsPage-C5jwn70o.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-DzgWz0M-.js.map → NoPermissionsPage-C5jwn70o.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-DhIiyWkk.mjs → NoPermissionsPage-jqve7C8l.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-DhIiyWkk.mjs.map → NoPermissionsPage-jqve7C8l.mjs.map} +1 -1
  41. package/dist/_chunks/{Preview-BaYGJ0nb.mjs → Preview-BMYN548c.mjs} +5 -4
  42. package/dist/_chunks/Preview-BMYN548c.mjs.map +1 -0
  43. package/dist/_chunks/{Preview-DfNx8Ke-.js → Preview-DaOihysv.js} +5 -4
  44. package/dist/_chunks/Preview-DaOihysv.js.map +1 -0
  45. package/dist/_chunks/{Relations-DuKCaXrv.js → Relations-CTGM7Hv5.js} +3 -3
  46. package/dist/_chunks/{Relations-DuKCaXrv.js.map → Relations-CTGM7Hv5.js.map} +1 -1
  47. package/dist/_chunks/{Relations-DM2yUTST.mjs → Relations-gscPkxjF.mjs} +3 -3
  48. package/dist/_chunks/{Relations-DM2yUTST.mjs.map → Relations-gscPkxjF.mjs.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-BUWEmX8m.js → index-Ca7YWlAA.js} +51 -24
  54. package/dist/_chunks/index-Ca7YWlAA.js.map +1 -0
  55. package/dist/_chunks/{index-DVAIIsOs.mjs → index-DqasUQ6Q.mjs} +51 -24
  56. package/dist/_chunks/index-DqasUQ6Q.mjs.map +1 -0
  57. package/dist/_chunks/{layout-C3fN7Ejz.js → layout-BW80JSCd.js} +3 -3
  58. package/dist/_chunks/{layout-C3fN7Ejz.js.map → layout-BW80JSCd.js.map} +1 -1
  59. package/dist/_chunks/{layout-Bxsv5mP7.mjs → layout-W3clJSCy.mjs} +3 -3
  60. package/dist/_chunks/{layout-Bxsv5mP7.mjs.map → layout-W3clJSCy.mjs.map} +1 -1
  61. package/dist/_chunks/{relations-o3pPhzY4.mjs → relations-BlDkoeWh.mjs} +2 -2
  62. package/dist/_chunks/{relations-o3pPhzY4.mjs.map → relations-BlDkoeWh.mjs.map} +1 -1
  63. package/dist/_chunks/{relations-BPZKAoEY.js → relations-C9Usz9k5.js} +2 -2
  64. package/dist/_chunks/{relations-BPZKAoEY.js.map → relations-C9Usz9k5.js.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/DynamicZone/DynamicComponent.d.ts +4 -1
  72. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -1
  73. package/dist/admin/src/preview/services/preview.d.ts +1 -1
  74. package/dist/admin/src/services/api.d.ts +1 -1
  75. package/dist/admin/src/services/components.d.ts +2 -2
  76. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  77. package/dist/admin/src/services/documents.d.ts +16 -16
  78. package/dist/admin/src/services/init.d.ts +1 -1
  79. package/dist/admin/src/services/relations.d.ts +2 -2
  80. package/dist/admin/src/services/uid.d.ts +3 -3
  81. package/dist/server/index.js +156 -138
  82. package/dist/server/index.js.map +1 -1
  83. package/dist/server/index.mjs +157 -139
  84. package/dist/server/index.mjs.map +1 -1
  85. package/dist/server/src/controllers/utils/metadata.d.ts +1 -0
  86. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  87. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  88. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  89. package/dist/server/src/history/services/history.d.ts +3 -3
  90. package/dist/server/src/history/services/history.d.ts.map +1 -1
  91. package/dist/server/src/history/services/utils.d.ts +6 -10
  92. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  93. package/dist/server/src/index.d.ts +3 -2
  94. package/dist/server/src/index.d.ts.map +1 -1
  95. package/dist/server/src/services/document-metadata.d.ts +4 -2
  96. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  97. package/dist/server/src/services/index.d.ts +3 -2
  98. package/dist/server/src/services/index.d.ts.map +1 -1
  99. package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
  100. package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
  101. package/dist/server/src/services/utils/populate.d.ts +2 -2
  102. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  103. package/package.json +6 -7
  104. package/dist/_chunks/Field-B5QXnctJ.js.map +0 -1
  105. package/dist/_chunks/Field-Byr3mPTl.mjs.map +0 -1
  106. package/dist/_chunks/History-CqNgxkqK.mjs.map +0 -1
  107. package/dist/_chunks/History-DYl2A8Z_.js.map +0 -1
  108. package/dist/_chunks/Preview-BaYGJ0nb.mjs.map +0 -1
  109. package/dist/_chunks/Preview-DfNx8Ke-.js.map +0 -1
  110. package/dist/_chunks/index-BUWEmX8m.js.map +0 -1
  111. package/dist/_chunks/index-DVAIIsOs.mjs.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-DqasUQ6Q.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-gscPkxjF.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,
@@ -5176,7 +5149,8 @@ const DynamicComponent = ({
5176
5149
  onDropItem,
5177
5150
  onCancel,
5178
5151
  dynamicComponentsByCategory = {},
5179
- onAddComponent
5152
+ onAddComponent,
5153
+ children
5180
5154
  }) => {
5181
5155
  const { formatMessage } = useIntl();
5182
5156
  const formValues = useForm("DynamicComponent", (state) => state.values);
@@ -5324,7 +5298,7 @@ const DynamicComponent = ({
5324
5298
  xs: 12,
5325
5299
  direction: "column",
5326
5300
  alignItems: "stretch",
5327
- children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...fieldWithTranslatedLabel, name: fieldName })
5301
+ children: children ? children({ ...fieldWithTranslatedLabel, name: fieldName }) : /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...fieldWithTranslatedLabel, name: fieldName })
5328
5302
  },
5329
5303
  fieldName
5330
5304
  );
@@ -5410,7 +5384,8 @@ const DynamicZone = ({
5410
5384
  label,
5411
5385
  labelAction,
5412
5386
  name: name2,
5413
- required = false
5387
+ required = false,
5388
+ children
5414
5389
  }) => {
5415
5390
  const { max = Infinity, min = -Infinity } = attribute ?? {};
5416
5391
  const [addComponentIsOpen, setAddComponentIsOpen] = React.useState(false);
@@ -5596,7 +5571,8 @@ const DynamicZone = ({
5596
5571
  onDropItem: handleDropItem,
5597
5572
  onGrabItem: handleGrabItem,
5598
5573
  onAddComponent: handleAddComponent,
5599
- dynamicComponentsByCategory
5574
+ dynamicComponentsByCategory,
5575
+ children
5600
5576
  }
5601
5577
  )
5602
5578
  },
@@ -5639,4 +5615,4 @@ export {
5639
5615
  transformDocument as t,
5640
5616
  useLazyComponents as u
5641
5617
  };
5642
- //# sourceMappingURL=Field-Byr3mPTl.mjs.map
5618
+ //# sourceMappingURL=Field-Dltnt1km.mjs.map