@strapi/content-manager 0.0.0-experimental.93a73ca8c7b85667fe8e46c0cb6627506570a02f → 0.0.0-experimental.997c519cb311bf692e8971f4bbd2e4a92694abee

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 (105) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-B3yDbeU1.mjs → ComponentConfigurationPage-CnL10QYC.mjs} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-B3yDbeU1.mjs.map → ComponentConfigurationPage-CnL10QYC.mjs.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-KXSuLnQD.js → ComponentConfigurationPage-G4EIirP8.js} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-KXSuLnQD.js.map → ComponentConfigurationPage-G4EIirP8.js.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-BQ17--5R.js → EditConfigurationPage-B2AA1kVF.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-BQ17--5R.js.map → EditConfigurationPage-B2AA1kVF.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-D7PrLO8j.mjs → EditConfigurationPage-I2kKh9dx.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-D7PrLO8j.mjs.map → EditConfigurationPage-I2kKh9dx.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-BgjdnGz2.js → EditViewPage-CHgoNwlc.js} +4 -4
  10. package/dist/_chunks/EditViewPage-CHgoNwlc.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-B7VgwJaG.mjs → EditViewPage-zFjJK0s8.mjs} +4 -4
  12. package/dist/_chunks/EditViewPage-zFjJK0s8.mjs.map +1 -0
  13. package/dist/_chunks/{Field-CdK7ZLmv.js → Field-9DePZh-0.js} +34 -65
  14. package/dist/_chunks/Field-9DePZh-0.js.map +1 -0
  15. package/dist/_chunks/{Field-tHCw4lGA.mjs → Field-DPAzUS1M.mjs} +31 -62
  16. package/dist/_chunks/Field-DPAzUS1M.mjs.map +1 -0
  17. package/dist/_chunks/{Form-BJxdTv3Q.mjs → Form-CEkENbkF.mjs} +15 -7
  18. package/dist/_chunks/Form-CEkENbkF.mjs.map +1 -0
  19. package/dist/_chunks/{Form-C_0KTVvV.js → Form-DPm-KZ1A.js} +15 -7
  20. package/dist/_chunks/Form-DPm-KZ1A.js.map +1 -0
  21. package/dist/_chunks/{History-nuEzM5qm.js → History-DXSbTWez.js} +4 -4
  22. package/dist/_chunks/{History-nuEzM5qm.js.map → History-DXSbTWez.js.map} +1 -1
  23. package/dist/_chunks/{History-DR2txJLE.mjs → History-utls71em.mjs} +4 -4
  24. package/dist/_chunks/{History-DR2txJLE.mjs.map → History-utls71em.mjs.map} +1 -1
  25. package/dist/_chunks/{ListConfigurationPage-voFVtXu6.mjs → ListConfigurationPage-CuMXWWqb.mjs} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-voFVtXu6.mjs.map → ListConfigurationPage-CuMXWWqb.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-CnB86Psm.js → ListConfigurationPage-D5C7ACZ_.js} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-CnB86Psm.js.map → ListConfigurationPage-D5C7ACZ_.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-B_GaWgRH.mjs → ListViewPage-CdKd-PS_.mjs} +39 -35
  30. package/dist/_chunks/ListViewPage-CdKd-PS_.mjs.map +1 -0
  31. package/dist/_chunks/{ListViewPage-SXIXm-RM.js → ListViewPage-DfuwH1tt.js} +42 -38
  32. package/dist/_chunks/ListViewPage-DfuwH1tt.js.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-BzsQ3hLZ.js → NoContentTypePage-BIxlkWWi.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-BzsQ3hLZ.js.map → NoContentTypePage-BIxlkWWi.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-CYiGpsbj.mjs → NoContentTypePage-DkToTT7u.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-CYiGpsbj.mjs.map → NoContentTypePage-DkToTT7u.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-IGkId4C5.js → NoPermissionsPage-Bu4GWYb-.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-IGkId4C5.js.map → NoPermissionsPage-Bu4GWYb-.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-B5baIHal.mjs → NoPermissionsPage-DlWi4BAH.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-B5baIHal.mjs.map → NoPermissionsPage-DlWi4BAH.mjs.map} +1 -1
  41. package/dist/_chunks/{Relations-Dhuurpx2.js → Relations-CFjTESWQ.js} +3 -3
  42. package/dist/_chunks/{Relations-Dhuurpx2.js.map → Relations-CFjTESWQ.js.map} +1 -1
  43. package/dist/_chunks/{Relations-CIYDdKU-.mjs → Relations-QP5yn9_z.mjs} +3 -3
  44. package/dist/_chunks/{Relations-CIYDdKU-.mjs.map → Relations-QP5yn9_z.mjs.map} +1 -1
  45. package/dist/_chunks/{en-uOUIxfcQ.js → en-BVzUkPxZ.js} +6 -5
  46. package/dist/_chunks/{en-uOUIxfcQ.js.map → en-BVzUkPxZ.js.map} +1 -1
  47. package/dist/_chunks/{en-BrCTWlZv.mjs → en-CPTj6CjC.mjs} +6 -5
  48. package/dist/_chunks/{en-BrCTWlZv.mjs.map → en-CPTj6CjC.mjs.map} +1 -1
  49. package/dist/_chunks/{index-C9TJPyni.mjs → index-BHfS6_D5.mjs} +184 -118
  50. package/dist/_chunks/index-BHfS6_D5.mjs.map +1 -0
  51. package/dist/_chunks/{index-CdT0kHZ8.js → index-DXiHxy70.js} +165 -99
  52. package/dist/_chunks/index-DXiHxy70.js.map +1 -0
  53. package/dist/_chunks/{layout-BNqvLR_b.mjs → layout-DX_52HSH.mjs} +5 -4
  54. package/dist/_chunks/{layout-BNqvLR_b.mjs.map → layout-DX_52HSH.mjs.map} +1 -1
  55. package/dist/_chunks/{layout-C6dxWYT7.js → layout-bE-WUnQ0.js} +5 -4
  56. package/dist/_chunks/{layout-C6dxWYT7.js.map → layout-bE-WUnQ0.js.map} +1 -1
  57. package/dist/_chunks/{relations-DtFaDnP1.js → relations-D706vblp.js} +2 -2
  58. package/dist/_chunks/{relations-DtFaDnP1.js.map → relations-D706vblp.js.map} +1 -1
  59. package/dist/_chunks/{relations-CkKqKw65.mjs → relations-SCVAL_aJ.mjs} +2 -2
  60. package/dist/_chunks/{relations-CkKqKw65.mjs.map → relations-SCVAL_aJ.mjs.map} +1 -1
  61. package/dist/_chunks/{usePrev-B9w_-eYc.js → useDebounce-CtcjDB3L.js} +14 -1
  62. package/dist/_chunks/useDebounce-CtcjDB3L.js.map +1 -0
  63. package/dist/_chunks/useDebounce-DmuSJIF3.mjs +29 -0
  64. package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +1 -0
  65. package/dist/admin/index.js +1 -1
  66. package/dist/admin/index.mjs +4 -4
  67. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  68. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +0 -32
  69. package/dist/admin/src/pages/EditView/components/Header.d.ts +10 -11
  70. package/dist/admin/src/services/api.d.ts +1 -1
  71. package/dist/admin/src/services/components.d.ts +2 -2
  72. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  73. package/dist/admin/src/services/documents.d.ts +19 -17
  74. package/dist/admin/src/services/init.d.ts +1 -1
  75. package/dist/admin/src/services/relations.d.ts +2 -2
  76. package/dist/admin/src/services/uid.d.ts +3 -3
  77. package/dist/admin/src/utils/validation.d.ts +4 -1
  78. package/dist/server/index.js +47 -23
  79. package/dist/server/index.js.map +1 -1
  80. package/dist/server/index.mjs +47 -23
  81. package/dist/server/index.mjs.map +1 -1
  82. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  83. package/dist/server/src/controllers/relations.d.ts.map +1 -1
  84. package/dist/server/src/history/services/history.d.ts.map +1 -1
  85. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  86. package/dist/server/src/history/services/utils.d.ts +1 -0
  87. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  88. package/dist/server/src/policies/hasPermissions.d.ts.map +1 -1
  89. package/dist/server/src/services/permission-checker.d.ts.map +1 -1
  90. package/dist/shared/contracts/collection-types.d.ts +3 -1
  91. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  92. package/package.json +9 -9
  93. package/dist/_chunks/EditViewPage-B7VgwJaG.mjs.map +0 -1
  94. package/dist/_chunks/EditViewPage-BgjdnGz2.js.map +0 -1
  95. package/dist/_chunks/Field-CdK7ZLmv.js.map +0 -1
  96. package/dist/_chunks/Field-tHCw4lGA.mjs.map +0 -1
  97. package/dist/_chunks/Form-BJxdTv3Q.mjs.map +0 -1
  98. package/dist/_chunks/Form-C_0KTVvV.js.map +0 -1
  99. package/dist/_chunks/ListViewPage-B_GaWgRH.mjs.map +0 -1
  100. package/dist/_chunks/ListViewPage-SXIXm-RM.js.map +0 -1
  101. package/dist/_chunks/index-C9TJPyni.mjs.map +0 -1
  102. package/dist/_chunks/index-CdT0kHZ8.js.map +0 -1
  103. package/dist/_chunks/usePrev-B9w_-eYc.js.map +0 -1
  104. package/dist/_chunks/usePrev-DH6iah0A.mjs +0 -16
  105. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +0 -1
@@ -5,9 +5,9 @@ const strapiAdmin = require("@strapi/admin/strapi-admin");
5
5
  const designSystem = require("@strapi/design-system");
6
6
  const pipe$1 = require("lodash/fp/pipe");
7
7
  const reactIntl = require("react-intl");
8
- const index = require("./index-CdT0kHZ8.js");
8
+ const index = require("./index-DXiHxy70.js");
9
9
  const fractionalIndexing = require("fractional-indexing");
10
- const Relations = require("./Relations-Dhuurpx2.js");
10
+ const Relations = require("./Relations-CFjTESWQ.js");
11
11
  const Icons = require("@strapi/icons");
12
12
  const styledComponents = require("styled-components");
13
13
  const ComponentIcon = require("./ComponentIcon-BXdiCGQp.js");
@@ -17,7 +17,7 @@ const objects = require("./objects-gigeqt7s.js");
17
17
  const slate = require("slate");
18
18
  const slateHistory = require("slate-history");
19
19
  const slateReact = require("slate-react");
20
- const usePrev = require("./usePrev-B9w_-eYc.js");
20
+ const useDebounce = require("./useDebounce-CtcjDB3L.js");
21
21
  const Toolbar = require("@radix-ui/react-toolbar");
22
22
  const reactRouterDom = require("react-router-dom");
23
23
  const CodeMirror = require("codemirror5");
@@ -768,7 +768,7 @@ const ImageDialog = () => {
768
768
  const nodeImage = {
769
769
  ...expectedImage,
770
770
  alternativeText: expectedImage.alternativeText || expectedImage.name,
771
- url: usePrev.prefixFileUrlWithBackendUrl(image.url)
771
+ url: useDebounce.prefixFileUrlWithBackendUrl(image.url)
772
772
  };
773
773
  return nodeImage;
774
774
  });
@@ -1441,7 +1441,7 @@ const ToolbarButton = ({
1441
1441
  width: 7,
1442
1442
  height: 7,
1443
1443
  hasRadius: true,
1444
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { width: "1.2rem", height: "1.2rem", fill: disabled ? "neutral300" : enabledColor })
1444
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { fill: disabled ? "neutral300" : enabledColor })
1445
1445
  }
1446
1446
  )
1447
1447
  }
@@ -1783,6 +1783,7 @@ const DragItem = styledComponents.styled(designSystem.Flex)`
1783
1783
  }
1784
1784
  `;
1785
1785
  const DragIconButton = styledComponents.styled(designSystem.IconButton)`
1786
+ user-select: none;
1786
1787
  display: flex;
1787
1788
  align-items: center;
1788
1789
  justify-content: center;
@@ -1911,6 +1912,7 @@ const DragAndDropElement = ({
1911
1912
  DragIconButton,
1912
1913
  {
1913
1914
  tag: "div",
1915
+ contentEditable: false,
1914
1916
  role: "button",
1915
1917
  tabIndex: 0,
1916
1918
  withTooltip: false,
@@ -2757,7 +2759,7 @@ const RepeatableComponent = ({
2757
2759
  }
2758
2760
  return void 0;
2759
2761
  }, [search, name2, value]);
2760
- const prevValue = usePrev.usePrev(value);
2762
+ const prevValue = useDebounce.usePrev(value);
2761
2763
  React__namespace.useEffect(() => {
2762
2764
  if (prevValue && prevValue.length < value.length) {
2763
2765
  setCollapseToOpen(value[value.length - 1].__temp_key__);
@@ -3290,18 +3292,6 @@ const NotAllowedInput = ({ hint, label, required, name: name2 }) => {
3290
3292
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {})
3291
3293
  ] });
3292
3294
  };
3293
- function useDebounce(value, delay) {
3294
- const [debouncedValue, setDebouncedValue] = React.useState(value);
3295
- React.useEffect(() => {
3296
- const handler = setTimeout(() => {
3297
- setDebouncedValue(value);
3298
- }, delay);
3299
- return () => {
3300
- clearTimeout(handler);
3301
- };
3302
- }, [value, delay]);
3303
- return debouncedValue;
3304
- }
3305
3295
  const uidApi = index.contentManagerApi.injectEndpoints({
3306
3296
  endpoints: (builder) => ({
3307
3297
  getDefaultUID: builder.query({
@@ -3336,7 +3326,10 @@ const uidApi = index.contentManagerApi.injectEndpoints({
3336
3326
  config: {
3337
3327
  params
3338
3328
  }
3339
- })
3329
+ }),
3330
+ providesTags: (_res, _error, params) => [
3331
+ { type: "UidAvailability", id: params.contentTypeUID }
3332
+ ]
3340
3333
  })
3341
3334
  })
3342
3335
  });
@@ -3348,8 +3341,10 @@ const UIDInput = React__namespace.forwardRef(
3348
3341
  const allFormValues = strapiAdmin.useForm("InputUID", (form) => form.values);
3349
3342
  const [availability, setAvailability] = React__namespace.useState();
3350
3343
  const [showRegenerate, setShowRegenerate] = React__namespace.useState(false);
3344
+ const isCloning = reactRouterDom.useMatch(index.CLONE_PATH) !== null;
3351
3345
  const field = strapiAdmin.useField(name2);
3352
- const debouncedValue = useDebounce(field.value, 300);
3346
+ const debouncedValue = useDebounce.useDebounce(field.value, 300);
3347
+ const hasChanged = debouncedValue !== field.initialValue;
3353
3348
  const { toggleNotification } = strapiAdmin.useNotification();
3354
3349
  const { _unstableFormatAPIError: formatAPIError } = strapiAdmin.useAPIErrorHandler();
3355
3350
  const { formatMessage } = reactIntl.useIntl();
@@ -3425,8 +3420,9 @@ const UIDInput = React__namespace.forwardRef(
3425
3420
  params
3426
3421
  },
3427
3422
  {
3423
+ // Don't check availability if the value is empty or wasn't changed
3428
3424
  skip: !Boolean(
3429
- debouncedValue !== field.initialValue && debouncedValue && UID_REGEX.test(debouncedValue.trim())
3425
+ (hasChanged || isCloning) && debouncedValue && UID_REGEX.test(debouncedValue.trim())
3430
3426
  )
3431
3427
  }
3432
3428
  );
@@ -3455,6 +3451,7 @@ const UIDInput = React__namespace.forwardRef(
3455
3451
  const isLoading = isGeneratingDefaultUID || isGeneratingUID || isCheckingAvailability;
3456
3452
  const fieldRef = strapiAdmin.useFocusInputField(name2);
3457
3453
  const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
3454
+ const shouldShowAvailability = (hasChanged || isCloning) && debouncedValue != null && availability && !showRegenerate;
3458
3455
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { hint, name: name2, error: field.error, required, children: [
3459
3456
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
3460
3457
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -3463,7 +3460,7 @@ const UIDInput = React__namespace.forwardRef(
3463
3460
  ref: composedRefs,
3464
3461
  disabled: props.disabled,
3465
3462
  endAction: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { position: "relative", gap: 1, children: [
3466
- availability && !showRegenerate && /* @__PURE__ */ jsxRuntime.jsxs(
3463
+ shouldShowAvailability && /* @__PURE__ */ jsxRuntime.jsxs(
3467
3464
  TextValidation,
3468
3465
  {
3469
3466
  alignItems: "center",
@@ -4612,31 +4609,11 @@ const quoteAndCodeHandler = (editor, markdownType) => {
4612
4609
  insertWithoutTextToEdit(editor, markdownType, line, contentLength);
4613
4610
  }
4614
4611
  };
4615
- const CustomIconButton = styledComponents.styled(designSystem.IconButton)`
4616
- padding: ${({ theme }) => theme.spaces[2]};
4617
-
4618
- svg {
4619
- width: 1.8rem;
4620
- height: 1.8rem;
4621
- }
4622
- `;
4623
- const CustomLinkIconButton = styledComponents.styled(CustomIconButton)`
4624
- svg {
4625
- width: 0.8rem;
4626
- height: 0.8rem;
4627
- }
4628
- `;
4629
4612
  const MainButtons = styledComponents.styled(designSystem.IconButtonGroup)`
4630
4613
  margin-left: ${({ theme }) => theme.spaces[4]};
4631
4614
  `;
4632
4615
  const MoreButton = styledComponents.styled(designSystem.IconButton)`
4633
4616
  margin: ${({ theme }) => `0 ${theme.spaces[2]}`};
4634
- padding: ${({ theme }) => theme.spaces[2]};
4635
-
4636
- svg {
4637
- width: 1.8rem;
4638
- height: 1.8rem;
4639
- }
4640
4617
  `;
4641
4618
  const IconButtonGroupMargin = styledComponents.styled(designSystem.IconButtonGroup)`
4642
4619
  margin-right: ${({ theme }) => `${theme.spaces[2]}`};
@@ -4720,9 +4697,9 @@ const WysiwygNav = ({
4720
4697
  }
4721
4698
  ) }),
4722
4699
  /* @__PURE__ */ jsxRuntime.jsxs(MainButtons, { children: [
4723
- /* @__PURE__ */ jsxRuntime.jsx(CustomIconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Bold, {}) }),
4724
- /* @__PURE__ */ jsxRuntime.jsx(CustomIconButton, { disabled: true, label: "Italic", name: "Italic", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Italic, {}) }),
4725
- /* @__PURE__ */ jsxRuntime.jsx(CustomIconButton, { disabled: true, label: "Underline", name: "Underline", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Underline, {}) })
4700
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.IconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Bold, {}) }),
4701
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.IconButton, { disabled: true, label: "Italic", name: "Italic", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Italic, {}) }),
4702
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.IconButton, { disabled: true, label: "Underline", name: "Underline", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Underline, {}) })
4726
4703
  ] }),
4727
4704
  /* @__PURE__ */ jsxRuntime.jsx(MoreButton, { disabled: true, label: "More", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.More, {}) })
4728
4705
  ] }),
@@ -4761,17 +4738,9 @@ const WysiwygNav = ({
4761
4738
  }
4762
4739
  ) }),
4763
4740
  /* @__PURE__ */ jsxRuntime.jsxs(MainButtons, { children: [
4741
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.IconButton, { onClick: () => onActionClick("Bold", editorRef), label: "Bold", name: "Bold", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Bold, {}) }),
4764
4742
  /* @__PURE__ */ jsxRuntime.jsx(
4765
- CustomIconButton,
4766
- {
4767
- onClick: () => onActionClick("Bold", editorRef),
4768
- label: "Bold",
4769
- name: "Bold",
4770
- children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Bold, {})
4771
- }
4772
- ),
4773
- /* @__PURE__ */ jsxRuntime.jsx(
4774
- CustomIconButton,
4743
+ designSystem.IconButton,
4775
4744
  {
4776
4745
  onClick: () => onActionClick("Italic", editorRef),
4777
4746
  label: "Italic",
@@ -4780,7 +4749,7 @@ const WysiwygNav = ({
4780
4749
  }
4781
4750
  ),
4782
4751
  /* @__PURE__ */ jsxRuntime.jsx(
4783
- CustomIconButton,
4752
+ designSystem.IconButton,
4784
4753
  {
4785
4754
  onClick: () => onActionClick("Underline", editorRef),
4786
4755
  label: "Underline",
@@ -4794,7 +4763,7 @@ const WysiwygNav = ({
4794
4763
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Popover.Content, { sideOffset: 12, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { padding: 2, children: [
4795
4764
  /* @__PURE__ */ jsxRuntime.jsxs(IconButtonGroupMargin, { children: [
4796
4765
  /* @__PURE__ */ jsxRuntime.jsx(
4797
- CustomIconButton,
4766
+ designSystem.IconButton,
4798
4767
  {
4799
4768
  onClick: () => onActionClick("Strikethrough", editorRef, handleTogglePopover),
4800
4769
  label: "Strikethrough",
@@ -4803,7 +4772,7 @@ const WysiwygNav = ({
4803
4772
  }
4804
4773
  ),
4805
4774
  /* @__PURE__ */ jsxRuntime.jsx(
4806
- CustomIconButton,
4775
+ designSystem.IconButton,
4807
4776
  {
4808
4777
  onClick: () => onActionClick("BulletList", editorRef, handleTogglePopover),
4809
4778
  label: "BulletList",
@@ -4812,7 +4781,7 @@ const WysiwygNav = ({
4812
4781
  }
4813
4782
  ),
4814
4783
  /* @__PURE__ */ jsxRuntime.jsx(
4815
- CustomIconButton,
4784
+ designSystem.IconButton,
4816
4785
  {
4817
4786
  onClick: () => onActionClick("NumberList", editorRef, handleTogglePopover),
4818
4787
  label: "NumberList",
@@ -4823,7 +4792,7 @@ const WysiwygNav = ({
4823
4792
  ] }),
4824
4793
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.IconButtonGroup, { children: [
4825
4794
  /* @__PURE__ */ jsxRuntime.jsx(
4826
- CustomIconButton,
4795
+ designSystem.IconButton,
4827
4796
  {
4828
4797
  onClick: () => onActionClick("Code", editorRef, handleTogglePopover),
4829
4798
  label: "Code",
@@ -4832,7 +4801,7 @@ const WysiwygNav = ({
4832
4801
  }
4833
4802
  ),
4834
4803
  /* @__PURE__ */ jsxRuntime.jsx(
4835
- CustomIconButton,
4804
+ designSystem.IconButton,
4836
4805
  {
4837
4806
  onClick: () => {
4838
4807
  handleTogglePopover();
@@ -4844,7 +4813,7 @@ const WysiwygNav = ({
4844
4813
  }
4845
4814
  ),
4846
4815
  /* @__PURE__ */ jsxRuntime.jsx(
4847
- CustomLinkIconButton,
4816
+ designSystem.IconButton,
4848
4817
  {
4849
4818
  onClick: () => onActionClick("Link", editorRef, handleTogglePopover),
4850
4819
  label: "Link",
@@ -4853,7 +4822,7 @@ const WysiwygNav = ({
4853
4822
  }
4854
4823
  ),
4855
4824
  /* @__PURE__ */ jsxRuntime.jsx(
4856
- CustomIconButton,
4825
+ designSystem.IconButton,
4857
4826
  {
4858
4827
  onClick: () => onActionClick("Quote", editorRef, handleTogglePopover),
4859
4828
  label: "Quote",
@@ -4931,7 +4900,7 @@ const Wysiwyg = React__namespace.forwardRef(
4931
4900
  const handleSelectAssets = (files) => {
4932
4901
  const formattedFiles = files.map((f) => ({
4933
4902
  alt: f.alternativeText || f.name,
4934
- url: usePrev.prefixFileUrlWithBackendUrl(f.url),
4903
+ url: useDebounce.prefixFileUrlWithBackendUrl(f.url),
4935
4904
  mime: f.mime
4936
4905
  }));
4937
4906
  insertFile(editorRef, formattedFiles);
@@ -5579,4 +5548,4 @@ exports.transformDocument = transformDocument;
5579
5548
  exports.useDynamicZone = useDynamicZone;
5580
5549
  exports.useFieldHint = useFieldHint;
5581
5550
  exports.useLazyComponents = useLazyComponents;
5582
- //# sourceMappingURL=Field-CdK7ZLmv.js.map
5551
+ //# sourceMappingURL=Field-9DePZh-0.js.map