@strapi/content-manager 5.0.0-rc.11 → 5.0.0-rc.13
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.
- package/dist/_chunks/{ComponentConfigurationPage-qemkOlnj.mjs → ComponentConfigurationPage-CnL10QYC.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-qemkOlnj.mjs.map → ComponentConfigurationPage-CnL10QYC.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-D_M8iBw5.js → ComponentConfigurationPage-G4EIirP8.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-D_M8iBw5.js.map → ComponentConfigurationPage-G4EIirP8.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BePwPuHy.js → EditConfigurationPage-B2AA1kVF.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BePwPuHy.js.map → EditConfigurationPage-B2AA1kVF.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CjUrEewK.mjs → EditConfigurationPage-I2kKh9dx.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CjUrEewK.mjs.map → EditConfigurationPage-I2kKh9dx.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-B-RJeiJD.js → EditViewPage-CHgoNwlc.js} +3 -3
- package/dist/_chunks/{EditViewPage-B-RJeiJD.js.map → EditViewPage-CHgoNwlc.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-De8GyU8P.mjs → EditViewPage-zFjJK0s8.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-De8GyU8P.mjs.map → EditViewPage-zFjJK0s8.mjs.map} +1 -1
- package/dist/_chunks/{Field-dq8Tg1M_.js → Field-9DePZh-0.js} +24 -62
- package/dist/_chunks/Field-9DePZh-0.js.map +1 -0
- package/dist/_chunks/{Field-pb2o8uBe.mjs → Field-DPAzUS1M.mjs} +20 -58
- package/dist/_chunks/Field-DPAzUS1M.mjs.map +1 -0
- package/dist/_chunks/{Form-DJn0Dxha.mjs → Form-CEkENbkF.mjs} +15 -7
- package/dist/_chunks/Form-CEkENbkF.mjs.map +1 -0
- package/dist/_chunks/{Form-DGIf4jQU.js → Form-DPm-KZ1A.js} +15 -7
- package/dist/_chunks/Form-DPm-KZ1A.js.map +1 -0
- package/dist/_chunks/{History-Dh2NEHnR.js → History-DXSbTWez.js} +4 -4
- package/dist/_chunks/{History-Dh2NEHnR.js.map → History-DXSbTWez.js.map} +1 -1
- package/dist/_chunks/{History-BowL3JKP.mjs → History-utls71em.mjs} +4 -4
- package/dist/_chunks/{History-BowL3JKP.mjs.map → History-utls71em.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-BpVOB-hn.mjs → ListConfigurationPage-CuMXWWqb.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-BpVOB-hn.mjs.map → ListConfigurationPage-CuMXWWqb.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-BxYCWz9e.js → ListConfigurationPage-D5C7ACZ_.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-BxYCWz9e.js.map → ListConfigurationPage-D5C7ACZ_.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-CXFUjZQC.mjs → ListViewPage-CdKd-PS_.mjs} +39 -35
- package/dist/_chunks/ListViewPage-CdKd-PS_.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-4XsciqHZ.js → ListViewPage-DfuwH1tt.js} +42 -38
- package/dist/_chunks/ListViewPage-DfuwH1tt.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-C8OpoHeU.js → NoContentTypePage-BIxlkWWi.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-C8OpoHeU.js.map → NoContentTypePage-BIxlkWWi.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-DuhOTp3x.mjs → NoContentTypePage-DkToTT7u.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-DuhOTp3x.mjs.map → NoContentTypePage-DkToTT7u.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-y_r7DVA2.js → NoPermissionsPage-Bu4GWYb-.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-y_r7DVA2.js.map → NoPermissionsPage-Bu4GWYb-.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DVz3mzDz.mjs → NoPermissionsPage-DlWi4BAH.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DVz3mzDz.mjs.map → NoPermissionsPage-DlWi4BAH.mjs.map} +1 -1
- package/dist/_chunks/{Relations-DPFCAa7b.js → Relations-CFjTESWQ.js} +3 -3
- package/dist/_chunks/{Relations-DPFCAa7b.js.map → Relations-CFjTESWQ.js.map} +1 -1
- package/dist/_chunks/{Relations-CVNLrn1Y.mjs → Relations-QP5yn9_z.mjs} +3 -3
- package/dist/_chunks/{Relations-CVNLrn1Y.mjs.map → Relations-QP5yn9_z.mjs.map} +1 -1
- package/dist/_chunks/{en-uOUIxfcQ.js → en-BVzUkPxZ.js} +6 -5
- package/dist/_chunks/{en-uOUIxfcQ.js.map → en-BVzUkPxZ.js.map} +1 -1
- package/dist/_chunks/{en-BrCTWlZv.mjs → en-CPTj6CjC.mjs} +6 -5
- package/dist/_chunks/{en-BrCTWlZv.mjs.map → en-CPTj6CjC.mjs.map} +1 -1
- package/dist/_chunks/{index-DiMrfcfy.mjs → index-BHfS6_D5.mjs} +106 -61
- package/dist/_chunks/{index-DiMrfcfy.mjs.map → index-BHfS6_D5.mjs.map} +1 -1
- package/dist/_chunks/{index-C3fJE-1-.js → index-DXiHxy70.js} +104 -59
- package/dist/_chunks/index-DXiHxy70.js.map +1 -0
- package/dist/_chunks/{layout-ls3gxfpH.mjs → layout-DX_52HSH.mjs} +5 -4
- package/dist/_chunks/{layout-ls3gxfpH.mjs.map → layout-DX_52HSH.mjs.map} +1 -1
- package/dist/_chunks/{layout-C788OmNr.js → layout-bE-WUnQ0.js} +5 -4
- package/dist/_chunks/{layout-C788OmNr.js.map → layout-bE-WUnQ0.js.map} +1 -1
- package/dist/_chunks/{relations-DYeotliT.js → relations-D706vblp.js} +2 -2
- package/dist/_chunks/{relations-DYeotliT.js.map → relations-D706vblp.js.map} +1 -1
- package/dist/_chunks/{relations-CLcOmGO0.mjs → relations-SCVAL_aJ.mjs} +2 -2
- package/dist/_chunks/{relations-CLcOmGO0.mjs.map → relations-SCVAL_aJ.mjs.map} +1 -1
- package/dist/_chunks/{usePrev-B9w_-eYc.js → useDebounce-CtcjDB3L.js} +14 -1
- package/dist/_chunks/useDebounce-CtcjDB3L.js.map +1 -0
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs +29 -0
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +0 -32
- package/dist/admin/src/pages/EditView/components/Header.d.ts +10 -11
- package/dist/admin/src/services/documents.d.ts +3 -1
- package/dist/server/index.js +18 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +18 -5
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
- package/dist/server/src/history/services/history.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.d.ts +1 -0
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/shared/contracts/collection-types.d.ts +3 -1
- package/dist/shared/contracts/collection-types.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/_chunks/Field-dq8Tg1M_.js.map +0 -1
- package/dist/_chunks/Field-pb2o8uBe.mjs.map +0 -1
- package/dist/_chunks/Form-DGIf4jQU.js.map +0 -1
- package/dist/_chunks/Form-DJn0Dxha.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-4XsciqHZ.js.map +0 -1
- package/dist/_chunks/ListViewPage-CXFUjZQC.mjs.map +0 -1
- package/dist/_chunks/index-C3fJE-1-.js.map +0 -1
- package/dist/_chunks/usePrev-B9w_-eYc.js.map +0 -1
- package/dist/_chunks/usePrev-DH6iah0A.mjs +0 -16
- package/dist/_chunks/usePrev-DH6iah0A.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, o as useDocLayout } from "./index-
|
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-BHfS6_D5.mjs";
|
9
9
|
import { generateNKeysBetween } from "fractional-indexing";
|
10
|
-
import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-
|
10
|
+
import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-QP5yn9_z.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";
|
@@ -17,7 +17,7 @@ import { g as getIn } from "./objects-mKMAmfec.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 { p as prefixFileUrlWithBackendUrl, u as usePrev } from "./
|
20
|
+
import { p as prefixFileUrlWithBackendUrl, u as usePrev, a as useDebounce } from "./useDebounce-DmuSJIF3.mjs";
|
21
21
|
import * as Toolbar from "@radix-ui/react-toolbar";
|
22
22
|
import { useLocation, useMatch } from "react-router-dom";
|
23
23
|
import CodeMirror from "codemirror5";
|
@@ -1407,7 +1407,7 @@ const ToolbarButton = ({
|
|
1407
1407
|
width: 7,
|
1408
1408
|
height: 7,
|
1409
1409
|
hasRadius: true,
|
1410
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
1410
|
+
children: /* @__PURE__ */ jsx(Icon, { fill: disabled ? "neutral300" : enabledColor })
|
1411
1411
|
}
|
1412
1412
|
)
|
1413
1413
|
}
|
@@ -1749,6 +1749,7 @@ const DragItem = styled(Flex)`
|
|
1749
1749
|
}
|
1750
1750
|
`;
|
1751
1751
|
const DragIconButton = styled(IconButton)`
|
1752
|
+
user-select: none;
|
1752
1753
|
display: flex;
|
1753
1754
|
align-items: center;
|
1754
1755
|
justify-content: center;
|
@@ -1877,6 +1878,7 @@ const DragAndDropElement = ({
|
|
1877
1878
|
DragIconButton,
|
1878
1879
|
{
|
1879
1880
|
tag: "div",
|
1881
|
+
contentEditable: false,
|
1880
1882
|
role: "button",
|
1881
1883
|
tabIndex: 0,
|
1882
1884
|
withTooltip: false,
|
@@ -3256,18 +3258,6 @@ const NotAllowedInput = ({ hint, label, required, name: name2 }) => {
|
|
3256
3258
|
/* @__PURE__ */ jsx(Field.Hint, {})
|
3257
3259
|
] });
|
3258
3260
|
};
|
3259
|
-
function useDebounce(value, delay) {
|
3260
|
-
const [debouncedValue, setDebouncedValue] = useState(value);
|
3261
|
-
useEffect(() => {
|
3262
|
-
const handler = setTimeout(() => {
|
3263
|
-
setDebouncedValue(value);
|
3264
|
-
}, delay);
|
3265
|
-
return () => {
|
3266
|
-
clearTimeout(handler);
|
3267
|
-
};
|
3268
|
-
}, [value, delay]);
|
3269
|
-
return debouncedValue;
|
3270
|
-
}
|
3271
3261
|
const uidApi = contentManagerApi.injectEndpoints({
|
3272
3262
|
endpoints: (builder) => ({
|
3273
3263
|
getDefaultUID: builder.query({
|
@@ -4585,31 +4575,11 @@ const quoteAndCodeHandler = (editor, markdownType) => {
|
|
4585
4575
|
insertWithoutTextToEdit(editor, markdownType, line, contentLength);
|
4586
4576
|
}
|
4587
4577
|
};
|
4588
|
-
const CustomIconButton = styled(IconButton)`
|
4589
|
-
padding: ${({ theme }) => theme.spaces[2]};
|
4590
|
-
|
4591
|
-
svg {
|
4592
|
-
width: 1.8rem;
|
4593
|
-
height: 1.8rem;
|
4594
|
-
}
|
4595
|
-
`;
|
4596
|
-
const CustomLinkIconButton = styled(CustomIconButton)`
|
4597
|
-
svg {
|
4598
|
-
width: 0.8rem;
|
4599
|
-
height: 0.8rem;
|
4600
|
-
}
|
4601
|
-
`;
|
4602
4578
|
const MainButtons = styled(IconButtonGroup)`
|
4603
4579
|
margin-left: ${({ theme }) => theme.spaces[4]};
|
4604
4580
|
`;
|
4605
4581
|
const MoreButton = styled(IconButton)`
|
4606
4582
|
margin: ${({ theme }) => `0 ${theme.spaces[2]}`};
|
4607
|
-
padding: ${({ theme }) => theme.spaces[2]};
|
4608
|
-
|
4609
|
-
svg {
|
4610
|
-
width: 1.8rem;
|
4611
|
-
height: 1.8rem;
|
4612
|
-
}
|
4613
4583
|
`;
|
4614
4584
|
const IconButtonGroupMargin = styled(IconButtonGroup)`
|
4615
4585
|
margin-right: ${({ theme }) => `${theme.spaces[2]}`};
|
@@ -4693,9 +4663,9 @@ const WysiwygNav = ({
|
|
4693
4663
|
}
|
4694
4664
|
) }),
|
4695
4665
|
/* @__PURE__ */ jsxs(MainButtons, { children: [
|
4696
|
-
/* @__PURE__ */ jsx(
|
4697
|
-
/* @__PURE__ */ jsx(
|
4698
|
-
/* @__PURE__ */ jsx(
|
4666
|
+
/* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(Bold, {}) }),
|
4667
|
+
/* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Italic", name: "Italic", children: /* @__PURE__ */ jsx(Italic, {}) }),
|
4668
|
+
/* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Underline", name: "Underline", children: /* @__PURE__ */ jsx(Underline, {}) })
|
4699
4669
|
] }),
|
4700
4670
|
/* @__PURE__ */ jsx(MoreButton, { disabled: true, label: "More", children: /* @__PURE__ */ jsx(More, {}) })
|
4701
4671
|
] }),
|
@@ -4734,17 +4704,9 @@ const WysiwygNav = ({
|
|
4734
4704
|
}
|
4735
4705
|
) }),
|
4736
4706
|
/* @__PURE__ */ jsxs(MainButtons, { children: [
|
4707
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: () => onActionClick("Bold", editorRef), label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(Bold, {}) }),
|
4737
4708
|
/* @__PURE__ */ jsx(
|
4738
|
-
|
4739
|
-
{
|
4740
|
-
onClick: () => onActionClick("Bold", editorRef),
|
4741
|
-
label: "Bold",
|
4742
|
-
name: "Bold",
|
4743
|
-
children: /* @__PURE__ */ jsx(Bold, {})
|
4744
|
-
}
|
4745
|
-
),
|
4746
|
-
/* @__PURE__ */ jsx(
|
4747
|
-
CustomIconButton,
|
4709
|
+
IconButton,
|
4748
4710
|
{
|
4749
4711
|
onClick: () => onActionClick("Italic", editorRef),
|
4750
4712
|
label: "Italic",
|
@@ -4753,7 +4715,7 @@ const WysiwygNav = ({
|
|
4753
4715
|
}
|
4754
4716
|
),
|
4755
4717
|
/* @__PURE__ */ jsx(
|
4756
|
-
|
4718
|
+
IconButton,
|
4757
4719
|
{
|
4758
4720
|
onClick: () => onActionClick("Underline", editorRef),
|
4759
4721
|
label: "Underline",
|
@@ -4767,7 +4729,7 @@ const WysiwygNav = ({
|
|
4767
4729
|
/* @__PURE__ */ jsx(Popover.Content, { sideOffset: 12, children: /* @__PURE__ */ jsxs(Flex, { padding: 2, children: [
|
4768
4730
|
/* @__PURE__ */ jsxs(IconButtonGroupMargin, { children: [
|
4769
4731
|
/* @__PURE__ */ jsx(
|
4770
|
-
|
4732
|
+
IconButton,
|
4771
4733
|
{
|
4772
4734
|
onClick: () => onActionClick("Strikethrough", editorRef, handleTogglePopover),
|
4773
4735
|
label: "Strikethrough",
|
@@ -4776,7 +4738,7 @@ const WysiwygNav = ({
|
|
4776
4738
|
}
|
4777
4739
|
),
|
4778
4740
|
/* @__PURE__ */ jsx(
|
4779
|
-
|
4741
|
+
IconButton,
|
4780
4742
|
{
|
4781
4743
|
onClick: () => onActionClick("BulletList", editorRef, handleTogglePopover),
|
4782
4744
|
label: "BulletList",
|
@@ -4785,7 +4747,7 @@ const WysiwygNav = ({
|
|
4785
4747
|
}
|
4786
4748
|
),
|
4787
4749
|
/* @__PURE__ */ jsx(
|
4788
|
-
|
4750
|
+
IconButton,
|
4789
4751
|
{
|
4790
4752
|
onClick: () => onActionClick("NumberList", editorRef, handleTogglePopover),
|
4791
4753
|
label: "NumberList",
|
@@ -4796,7 +4758,7 @@ const WysiwygNav = ({
|
|
4796
4758
|
] }),
|
4797
4759
|
/* @__PURE__ */ jsxs(IconButtonGroup, { children: [
|
4798
4760
|
/* @__PURE__ */ jsx(
|
4799
|
-
|
4761
|
+
IconButton,
|
4800
4762
|
{
|
4801
4763
|
onClick: () => onActionClick("Code", editorRef, handleTogglePopover),
|
4802
4764
|
label: "Code",
|
@@ -4805,7 +4767,7 @@ const WysiwygNav = ({
|
|
4805
4767
|
}
|
4806
4768
|
),
|
4807
4769
|
/* @__PURE__ */ jsx(
|
4808
|
-
|
4770
|
+
IconButton,
|
4809
4771
|
{
|
4810
4772
|
onClick: () => {
|
4811
4773
|
handleTogglePopover();
|
@@ -4817,7 +4779,7 @@ const WysiwygNav = ({
|
|
4817
4779
|
}
|
4818
4780
|
),
|
4819
4781
|
/* @__PURE__ */ jsx(
|
4820
|
-
|
4782
|
+
IconButton,
|
4821
4783
|
{
|
4822
4784
|
onClick: () => onActionClick("Link", editorRef, handleTogglePopover),
|
4823
4785
|
label: "Link",
|
@@ -4826,7 +4788,7 @@ const WysiwygNav = ({
|
|
4826
4788
|
}
|
4827
4789
|
),
|
4828
4790
|
/* @__PURE__ */ jsx(
|
4829
|
-
|
4791
|
+
IconButton,
|
4830
4792
|
{
|
4831
4793
|
onClick: () => onActionClick("Quote", editorRef, handleTogglePopover),
|
4832
4794
|
label: "Quote",
|
@@ -5554,4 +5516,4 @@ export {
|
|
5554
5516
|
transformDocument as t,
|
5555
5517
|
useLazyComponents as u
|
5556
5518
|
};
|
5557
|
-
//# sourceMappingURL=Field-
|
5519
|
+
//# sourceMappingURL=Field-DPAzUS1M.mjs.map
|