@strapi/content-manager 0.0.0-experimental.93a73ca8c7b85667fe8e46c0cb6627506570a02f → 0.0.0-experimental.9a23f06c0b3b13548dbd12feb3dc92d3c10bebb1
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-B3yDbeU1.mjs → ComponentConfigurationPage-CpBFh6_r.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-B3yDbeU1.mjs.map → ComponentConfigurationPage-CpBFh6_r.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-KXSuLnQD.js → ComponentConfigurationPage-_zF8p6CY.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-KXSuLnQD.js.map → ComponentConfigurationPage-_zF8p6CY.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-D7PrLO8j.mjs → EditConfigurationPage-CE_yavTi.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-D7PrLO8j.mjs.map → EditConfigurationPage-CE_yavTi.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BQ17--5R.js → EditConfigurationPage-_aG2DJSU.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BQ17--5R.js.map → EditConfigurationPage-_aG2DJSU.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-B7VgwJaG.mjs → EditViewPage-DeTn7rAF.mjs} +4 -4
- package/dist/_chunks/EditViewPage-DeTn7rAF.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-BgjdnGz2.js → EditViewPage-G9uNzwYL.js} +4 -4
- package/dist/_chunks/EditViewPage-G9uNzwYL.js.map +1 -0
- package/dist/_chunks/{Field-tHCw4lGA.mjs → Field-CnCKhI1R.mjs} +31 -62
- package/dist/_chunks/Field-CnCKhI1R.mjs.map +1 -0
- package/dist/_chunks/{Field-CdK7ZLmv.js → Field-DDHUWEfV.js} +34 -65
- package/dist/_chunks/Field-DDHUWEfV.js.map +1 -0
- package/dist/_chunks/{Form-C_0KTVvV.js → Form-DYETaKUX.js} +15 -7
- package/dist/_chunks/Form-DYETaKUX.js.map +1 -0
- package/dist/_chunks/{Form-BJxdTv3Q.mjs → Form-IvVVwqRL.mjs} +15 -7
- package/dist/_chunks/Form-IvVVwqRL.mjs.map +1 -0
- package/dist/_chunks/{History-DR2txJLE.mjs → History-BMunT-do.mjs} +4 -4
- package/dist/_chunks/{History-DR2txJLE.mjs.map → History-BMunT-do.mjs.map} +1 -1
- package/dist/_chunks/{History-nuEzM5qm.js → History-CnZDctSO.js} +4 -4
- package/dist/_chunks/{History-nuEzM5qm.js.map → History-CnZDctSO.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-CnB86Psm.js → ListConfigurationPage-BynalOp8.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-CnB86Psm.js.map → ListConfigurationPage-BynalOp8.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-voFVtXu6.mjs → ListConfigurationPage-CDqkCxgV.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-voFVtXu6.mjs.map → ListConfigurationPage-CDqkCxgV.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-SXIXm-RM.js → ListViewPage-I88Ouzoq.js} +38 -38
- package/dist/_chunks/ListViewPage-I88Ouzoq.js.map +1 -0
- package/dist/_chunks/{ListViewPage-B_GaWgRH.mjs → ListViewPage-_5gS-DOF.mjs} +35 -35
- package/dist/_chunks/ListViewPage-_5gS-DOF.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-BzsQ3hLZ.js → NoContentTypePage-BaWQ7HsA.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BzsQ3hLZ.js.map → NoContentTypePage-BaWQ7HsA.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-CYiGpsbj.mjs → NoContentTypePage-Dht-55hr.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-CYiGpsbj.mjs.map → NoContentTypePage-Dht-55hr.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-B5baIHal.mjs → NoPermissionsPage-Bs8D5W_v.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-B5baIHal.mjs.map → NoPermissionsPage-Bs8D5W_v.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-IGkId4C5.js → NoPermissionsPage-DCVUh5at.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-IGkId4C5.js.map → NoPermissionsPage-DCVUh5at.js.map} +1 -1
- package/dist/_chunks/{Relations-Dhuurpx2.js → Relations-BPgFQeGj.js} +3 -3
- package/dist/_chunks/{Relations-Dhuurpx2.js.map → Relations-BPgFQeGj.js.map} +1 -1
- package/dist/_chunks/{Relations-CIYDdKU-.mjs → Relations-Chdt5qWc.mjs} +3 -3
- package/dist/_chunks/{Relations-CIYDdKU-.mjs.map → Relations-Chdt5qWc.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-CdT0kHZ8.js → index-BhbLFX4l.js} +164 -98
- package/dist/_chunks/index-BhbLFX4l.js.map +1 -0
- package/dist/_chunks/{index-C9TJPyni.mjs → index-D4UGPFZC.mjs} +183 -117
- package/dist/_chunks/index-D4UGPFZC.mjs.map +1 -0
- package/dist/_chunks/{layout-C6dxWYT7.js → layout-CYA7s0qO.js} +5 -4
- package/dist/_chunks/{layout-C6dxWYT7.js.map → layout-CYA7s0qO.js.map} +1 -1
- package/dist/_chunks/{layout-BNqvLR_b.mjs → layout-D4HI4_PS.mjs} +5 -4
- package/dist/_chunks/{layout-BNqvLR_b.mjs.map → layout-D4HI4_PS.mjs.map} +1 -1
- package/dist/_chunks/{relations-CkKqKw65.mjs → relations-1pXaYpBK.mjs} +2 -2
- package/dist/_chunks/{relations-CkKqKw65.mjs.map → relations-1pXaYpBK.mjs.map} +1 -1
- package/dist/_chunks/{relations-DtFaDnP1.js → relations-DDZ9OxNo.js} +2 -2
- package/dist/_chunks/{relations-DtFaDnP1.js.map → relations-DDZ9OxNo.js.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 +4 -4
- package/dist/admin/src/history/services/historyVersion.d.ts +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/api.d.ts +1 -1
- package/dist/admin/src/services/components.d.ts +2 -2
- package/dist/admin/src/services/contentTypes.d.ts +3 -3
- package/dist/admin/src/services/documents.d.ts +19 -17
- package/dist/admin/src/services/init.d.ts +1 -1
- package/dist/admin/src/services/relations.d.ts +2 -2
- package/dist/admin/src/services/uid.d.ts +3 -3
- package/dist/admin/src/utils/validation.d.ts +4 -1
- package/dist/server/index.js +47 -23
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +47 -23
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
- package/dist/server/src/controllers/relations.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/server/src/policies/hasPermissions.d.ts.map +1 -1
- package/dist/server/src/services/permission-checker.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/EditViewPage-B7VgwJaG.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-BgjdnGz2.js.map +0 -1
- package/dist/_chunks/Field-CdK7ZLmv.js.map +0 -1
- package/dist/_chunks/Field-tHCw4lGA.mjs.map +0 -1
- package/dist/_chunks/Form-BJxdTv3Q.mjs.map +0 -1
- package/dist/_chunks/Form-C_0KTVvV.js.map +0 -1
- package/dist/_chunks/ListViewPage-B_GaWgRH.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-SXIXm-RM.js.map +0 -1
- package/dist/_chunks/index-C9TJPyni.mjs.map +0 -1
- package/dist/_chunks/index-CdT0kHZ8.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 @@ 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-
|
8
|
+
const index = require("./index-BhbLFX4l.js");
|
9
9
|
const fractionalIndexing = require("fractional-indexing");
|
10
|
-
const Relations = require("./Relations-
|
10
|
+
const Relations = require("./Relations-BPgFQeGj.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
|
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:
|
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, {
|
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 =
|
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
|
-
|
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
|
-
|
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(
|
4724
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
4725
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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:
|
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-
|
5551
|
+
//# sourceMappingURL=Field-DDHUWEfV.js.map
|