@strapi/content-manager 5.4.0 → 5.4.2
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-DKuCF_uX.mjs → ComponentConfigurationPage-BaJMOQyq.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-DKuCF_uX.mjs.map → ComponentConfigurationPage-BaJMOQyq.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-Cjr64OS0.js → ComponentConfigurationPage-N-CTtgQa.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-Cjr64OS0.js.map → ComponentConfigurationPage-N-CTtgQa.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BeikGxvq.js → EditConfigurationPage-BHkjAbxH.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BeikGxvq.js.map → EditConfigurationPage-BHkjAbxH.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CyqSP6ru.mjs → EditConfigurationPage-CKK-5LfX.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CyqSP6ru.mjs.map → EditConfigurationPage-CKK-5LfX.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-PrPHZN_9.mjs → EditViewPage-B11aeMcf.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-PrPHZN_9.mjs.map → EditViewPage-B11aeMcf.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-pyqEgLgP.js → EditViewPage-QPUftxUd.js} +3 -3
- package/dist/_chunks/{EditViewPage-pyqEgLgP.js.map → EditViewPage-QPUftxUd.js.map} +1 -1
- package/dist/_chunks/{Field-DuAYQka5.mjs → Field-Bj_RgtGo.mjs} +20 -21
- package/dist/_chunks/Field-Bj_RgtGo.mjs.map +1 -0
- package/dist/_chunks/{Field-fKtb7rWK.js → Field-DUK83cfh.js} +19 -20
- package/dist/_chunks/Field-DUK83cfh.js.map +1 -0
- package/dist/_chunks/{Form-BPXw-S-J.js → Form-DHmBRlHd.js} +2 -2
- package/dist/_chunks/{Form-BPXw-S-J.js.map → Form-DHmBRlHd.js.map} +1 -1
- package/dist/_chunks/{Form-Dxh71ckp.mjs → Form-DLMSoXV7.mjs} +2 -2
- package/dist/_chunks/{Form-Dxh71ckp.mjs.map → Form-DLMSoXV7.mjs.map} +1 -1
- package/dist/_chunks/{History-CGblSVMc.mjs → History-CfCSNlG9.mjs} +8 -6
- package/dist/_chunks/History-CfCSNlG9.mjs.map +1 -0
- package/dist/_chunks/{History-BGGn9JGY.js → History-Di3zm4HT.js} +7 -5
- package/dist/_chunks/History-Di3zm4HT.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-TIM0JveM.mjs → ListConfigurationPage-0mtv_iqk.mjs} +5 -4
- package/dist/_chunks/ListConfigurationPage-0mtv_iqk.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-D3Avyi4t.js → ListConfigurationPage-Cq361KIt.js} +4 -3
- package/dist/_chunks/ListConfigurationPage-Cq361KIt.js.map +1 -0
- package/dist/_chunks/{ListViewPage-C975eW-t.mjs → ListViewPage-BxLVROX8.mjs} +50 -49
- package/dist/_chunks/ListViewPage-BxLVROX8.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-DtAHWFMV.js → ListViewPage-DFDcG8gM.js} +50 -49
- package/dist/_chunks/ListViewPage-DFDcG8gM.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-SgNTVGjF.mjs → NoContentTypePage-BRfDd67_.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-SgNTVGjF.mjs.map → NoContentTypePage-BRfDd67_.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BFjWZX0i.js → NoContentTypePage-BSyvnDZZ.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BFjWZX0i.js.map → NoContentTypePage-BSyvnDZZ.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-D4XYRoPf.mjs → NoPermissionsPage-CV9V8KWa.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-D4XYRoPf.mjs.map → NoPermissionsPage-CV9V8KWa.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-j7oulOpl.js → NoPermissionsPage-DyLphsn_.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-j7oulOpl.js.map → NoPermissionsPage-DyLphsn_.js.map} +1 -1
- package/dist/_chunks/{Preview-Cy6fuAnd.mjs → Preview-C_B1nx3g.mjs} +66 -31
- package/dist/_chunks/Preview-C_B1nx3g.mjs.map +1 -0
- package/dist/_chunks/{Preview-Bx1WfmKJ.js → Preview-D_3aO6Ly.js} +63 -28
- package/dist/_chunks/Preview-D_3aO6Ly.js.map +1 -0
- package/dist/_chunks/{Relations-DUrYWw0N.mjs → Relations-C6pwmDXh.mjs} +3 -3
- package/dist/_chunks/{Relations-DUrYWw0N.mjs.map → Relations-C6pwmDXh.mjs.map} +1 -1
- package/dist/_chunks/{Relations-CXQqwRXC.js → Relations-Cne2AlrL.js} +3 -3
- package/dist/_chunks/{Relations-CXQqwRXC.js.map → Relations-Cne2AlrL.js.map} +1 -1
- package/dist/_chunks/{en-69jRDM9j.mjs → en-DhFUjrNW.mjs} +3 -2
- package/dist/_chunks/{en-69jRDM9j.mjs.map → en-DhFUjrNW.mjs.map} +1 -1
- package/dist/_chunks/{en-DAgtrRoa.js → en-Ic0kXjxB.js} +3 -2
- package/dist/_chunks/{en-DAgtrRoa.js.map → en-Ic0kXjxB.js.map} +1 -1
- package/dist/_chunks/{index-Ta--2bRa.mjs → index-BpxR3En4.mjs} +55 -30
- package/dist/_chunks/index-BpxR3En4.mjs.map +1 -0
- package/dist/_chunks/{index-_j7lH3CO.js → index-T-aWjbj2.js} +54 -29
- package/dist/_chunks/index-T-aWjbj2.js.map +1 -0
- package/dist/_chunks/{layout-BDwU2I_y.js → layout-BEuNwv-F.js} +3 -3
- package/dist/_chunks/{layout-BDwU2I_y.js.map → layout-BEuNwv-F.js.map} +1 -1
- package/dist/_chunks/{layout-C8H4oKDo.mjs → layout-DhMZ_lDx.mjs} +3 -3
- package/dist/_chunks/{layout-C8H4oKDo.mjs.map → layout-DhMZ_lDx.mjs.map} +1 -1
- package/dist/_chunks/{relations-Ch70q86O.mjs → relations-BdnxoX6f.mjs} +2 -2
- package/dist/_chunks/{relations-Ch70q86O.mjs.map → relations-BdnxoX6f.mjs.map} +1 -1
- package/dist/_chunks/{relations-CPfMNzM6.js → relations-kLcuobLk.js} +2 -2
- package/dist/_chunks/{relations-CPfMNzM6.js.map → relations-kLcuobLk.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/services/documents.d.ts +0 -3
- package/dist/server/index.js +56 -9
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +57 -10
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -1
- package/dist/server/src/preview/index.d.ts.map +1 -1
- package/dist/server/src/preview/services/index.d.ts +1 -0
- package/dist/server/src/preview/services/index.d.ts.map +1 -1
- package/dist/server/src/preview/services/preview-config.d.ts +2 -0
- package/dist/server/src/preview/services/preview-config.d.ts.map +1 -1
- package/dist/server/src/preview/utils.d.ts +1 -0
- package/dist/server/src/preview/utils.d.ts.map +1 -1
- package/dist/server/src/register.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/Field-DuAYQka5.mjs.map +0 -1
- package/dist/_chunks/Field-fKtb7rWK.js.map +0 -1
- package/dist/_chunks/History-BGGn9JGY.js.map +0 -1
- package/dist/_chunks/History-CGblSVMc.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-D3Avyi4t.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-TIM0JveM.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-C975eW-t.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-DtAHWFMV.js.map +0 -1
- package/dist/_chunks/Preview-Bx1WfmKJ.js.map +0 -1
- package/dist/_chunks/Preview-Cy6fuAnd.mjs.map +0 -1
- package/dist/_chunks/index-Ta--2bRa.mjs.map +0 -1
- package/dist/_chunks/index-_j7lH3CO.js.map +0 -1
@@ -7,11 +7,11 @@ const designSystem = require("@strapi/design-system");
|
|
7
7
|
const mapValues = require("lodash/fp/mapValues");
|
8
8
|
const reactIntl = require("react-intl");
|
9
9
|
const reactRouterDom = require("react-router-dom");
|
10
|
+
const styledComponents = require("styled-components");
|
10
11
|
const yup = require("yup");
|
12
|
+
const qs = require("qs");
|
11
13
|
const pipe = require("lodash/fp/pipe");
|
12
14
|
const dateFns = require("date-fns");
|
13
|
-
const styledComponents = require("styled-components");
|
14
|
-
const qs = require("qs");
|
15
15
|
const toolkit = require("@reduxjs/toolkit");
|
16
16
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
17
17
|
function _interopNamespace(e) {
|
@@ -296,7 +296,7 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
296
296
|
url: `/content-manager/collection-types/${model}`,
|
297
297
|
method: "GET",
|
298
298
|
config: {
|
299
|
-
params
|
299
|
+
params: qs.stringify(params, { encode: true })
|
300
300
|
}
|
301
301
|
}),
|
302
302
|
providesTags: (result, _error, arg) => {
|
@@ -484,9 +484,6 @@ const buildValidParams = (query) => {
|
|
484
484
|
{}
|
485
485
|
)
|
486
486
|
};
|
487
|
-
if ("_q" in validQueryParams) {
|
488
|
-
validQueryParams._q = encodeURIComponent(validQueryParams._q);
|
489
|
-
}
|
490
487
|
return validQueryParams;
|
491
488
|
};
|
492
489
|
const isBaseQueryError = (error) => {
|
@@ -1686,7 +1683,7 @@ const useDocumentActions = () => {
|
|
1686
1683
|
};
|
1687
1684
|
};
|
1688
1685
|
const ProtectedHistoryPage = React__namespace.lazy(
|
1689
|
-
() => Promise.resolve().then(() => require("./History-
|
1686
|
+
() => Promise.resolve().then(() => require("./History-Di3zm4HT.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1690
1687
|
);
|
1691
1688
|
const routes$2 = [
|
1692
1689
|
{
|
@@ -1699,7 +1696,7 @@ const routes$2 = [
|
|
1699
1696
|
}
|
1700
1697
|
];
|
1701
1698
|
const ProtectedPreviewPage = React__namespace.lazy(
|
1702
|
-
() => Promise.resolve().then(() => require("./Preview-
|
1699
|
+
() => Promise.resolve().then(() => require("./Preview-D_3aO6Ly.js")).then((mod) => ({ default: mod.ProtectedPreviewPage }))
|
1703
1700
|
);
|
1704
1701
|
const routes$1 = [
|
1705
1702
|
{
|
@@ -1712,31 +1709,31 @@ const routes$1 = [
|
|
1712
1709
|
}
|
1713
1710
|
];
|
1714
1711
|
const ProtectedEditViewPage = React.lazy(
|
1715
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1712
|
+
() => Promise.resolve().then(() => require("./EditViewPage-QPUftxUd.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1716
1713
|
);
|
1717
1714
|
const ProtectedListViewPage = React.lazy(
|
1718
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1715
|
+
() => Promise.resolve().then(() => require("./ListViewPage-DFDcG8gM.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1719
1716
|
);
|
1720
1717
|
const ProtectedListConfiguration = React.lazy(
|
1721
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1718
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-Cq361KIt.js")).then((mod) => ({
|
1722
1719
|
default: mod.ProtectedListConfiguration
|
1723
1720
|
}))
|
1724
1721
|
);
|
1725
1722
|
const ProtectedEditConfigurationPage = React.lazy(
|
1726
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1723
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-BHkjAbxH.js")).then((mod) => ({
|
1727
1724
|
default: mod.ProtectedEditConfigurationPage
|
1728
1725
|
}))
|
1729
1726
|
);
|
1730
1727
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1731
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1728
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-N-CTtgQa.js")).then((mod) => ({
|
1732
1729
|
default: mod.ProtectedComponentConfigurationPage
|
1733
1730
|
}))
|
1734
1731
|
);
|
1735
1732
|
const NoPermissions = React.lazy(
|
1736
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1733
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-DyLphsn_.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1737
1734
|
);
|
1738
1735
|
const NoContentType = React.lazy(
|
1739
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1736
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-BSyvnDZZ.js")).then((mod) => ({ default: mod.NoContentType }))
|
1740
1737
|
);
|
1741
1738
|
const CollectionTypePages = () => {
|
1742
1739
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1881,6 +1878,11 @@ const DocumentActionButton = (action) => {
|
|
1881
1878
|
) : null
|
1882
1879
|
] });
|
1883
1880
|
};
|
1881
|
+
const MenuItem = styledComponents.styled(designSystem.Menu.Item)`
|
1882
|
+
&:hover {
|
1883
|
+
background: ${({ theme, isVariantDanger, isDisabled }) => isVariantDanger && !isDisabled ? theme.colors.danger100 : "neutral"};
|
1884
|
+
}
|
1885
|
+
`;
|
1884
1886
|
const DocumentActionsMenu = ({
|
1885
1887
|
actions: actions2,
|
1886
1888
|
children,
|
@@ -1939,11 +1941,13 @@ const DocumentActionsMenu = ({
|
|
1939
1941
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Content, { maxHeight: void 0, popoverPlacement: "bottom-end", children: [
|
1940
1942
|
actions2.map((action) => {
|
1941
1943
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
1942
|
-
|
1944
|
+
MenuItem,
|
1943
1945
|
{
|
1944
1946
|
disabled: action.disabled,
|
1945
1947
|
onSelect: handleClick(action),
|
1946
1948
|
display: "block",
|
1949
|
+
isVariantDanger: action.variant === "danger",
|
1950
|
+
isDisabled: action.disabled,
|
1947
1951
|
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
1948
1952
|
designSystem.Flex,
|
1949
1953
|
{
|
@@ -2099,6 +2103,7 @@ const PublishAction$1 = ({
|
|
2099
2103
|
const { _unstableFormatValidationErrors: formatValidationErrors } = strapiAdmin.useAPIErrorHandler();
|
2100
2104
|
const isListView = reactRouterDom.useMatch(LIST_PATH) !== null;
|
2101
2105
|
const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
|
2106
|
+
const { id } = reactRouterDom.useParams();
|
2102
2107
|
const { formatMessage } = reactIntl.useIntl();
|
2103
2108
|
const canPublish = useDocumentRBAC("PublishAction", ({ canPublish: canPublish2 }) => canPublish2);
|
2104
2109
|
const { publish } = useDocumentActions();
|
@@ -2201,10 +2206,12 @@ const PublishAction$1 = ({
|
|
2201
2206
|
transformData(formValues)
|
2202
2207
|
);
|
2203
2208
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2204
|
-
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2209
|
+
if (id === "create") {
|
2210
|
+
navigate({
|
2211
|
+
pathname: `../${collectionType}/${model}/${res.data.documentId}`,
|
2212
|
+
search: rawQuery
|
2213
|
+
});
|
2214
|
+
}
|
2208
2215
|
} else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2209
2216
|
setErrors(formatValidationErrors(res.error));
|
2210
2217
|
}
|
@@ -2288,7 +2295,7 @@ const UpdateAction = ({
|
|
2288
2295
|
*/
|
2289
2296
|
disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
|
2290
2297
|
label: formatMessage({
|
2291
|
-
id: "
|
2298
|
+
id: "global.save",
|
2292
2299
|
defaultMessage: "Save"
|
2293
2300
|
}),
|
2294
2301
|
onClick: async () => {
|
@@ -2598,12 +2605,18 @@ const DocumentStatus = ({ status = "draft", size = "S", ...restProps }) => {
|
|
2598
2605
|
const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
|
2599
2606
|
const { formatMessage } = reactIntl.useIntl();
|
2600
2607
|
const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
|
2608
|
+
const params = reactRouterDom.useParams();
|
2601
2609
|
const title = isCreating ? formatMessage({
|
2602
2610
|
id: "content-manager.containers.edit.title.new",
|
2603
2611
|
defaultMessage: "Create an entry"
|
2604
2612
|
}) : documentTitle;
|
2605
2613
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "flex-start", paddingTop: 6, paddingBottom: 4, gap: 2, children: [
|
2606
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
2614
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
2615
|
+
strapiAdmin.BackButton,
|
2616
|
+
{
|
2617
|
+
fallback: params.collectionType === SINGLE_TYPES ? void 0 : `../${COLLECTION_TYPES}/${params.slug}`
|
2618
|
+
}
|
2619
|
+
),
|
2607
2620
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { width: "100%", justifyContent: "space-between", gap: "80px", alignItems: "flex-start", children: [
|
2608
2621
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "alpha", tag: "h1", children: title }),
|
2609
2622
|
/* @__PURE__ */ jsxRuntime.jsx(HeaderToolbar, {})
|
@@ -3937,17 +3950,27 @@ const HistoryAction = ({ model, document }) => {
|
|
3937
3950
|
const { formatMessage } = reactIntl.useIntl();
|
3938
3951
|
const [{ query }] = strapiAdmin.useQueryParams();
|
3939
3952
|
const navigate = reactRouterDom.useNavigate();
|
3953
|
+
const { trackUsage } = strapiAdmin.useTracking();
|
3954
|
+
const { pathname } = reactRouterDom.useLocation();
|
3940
3955
|
const pluginsQueryParams = qs.stringify({ plugins: query.plugins }, { encode: false });
|
3941
3956
|
if (!window.strapi.features.isEnabled("cms-content-history")) {
|
3942
3957
|
return null;
|
3943
3958
|
}
|
3959
|
+
const handleOnClick = () => {
|
3960
|
+
const destination = { pathname: "history", search: pluginsQueryParams };
|
3961
|
+
trackUsage("willNavigate", {
|
3962
|
+
from: pathname,
|
3963
|
+
to: `${pathname}/${destination.pathname}`
|
3964
|
+
});
|
3965
|
+
navigate(destination);
|
3966
|
+
};
|
3944
3967
|
return {
|
3945
3968
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.ClockCounterClockwise, {}),
|
3946
3969
|
label: formatMessage({
|
3947
3970
|
id: "content-manager.history.document-action",
|
3948
3971
|
defaultMessage: "Content History"
|
3949
3972
|
}),
|
3950
|
-
onClick:
|
3973
|
+
onClick: handleOnClick,
|
3951
3974
|
disabled: (
|
3952
3975
|
/**
|
3953
3976
|
* The user is creating a new document.
|
@@ -4034,6 +4057,7 @@ const { useGetPreviewUrlQuery } = previewApi;
|
|
4034
4057
|
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4035
4058
|
const { formatMessage } = reactIntl.useIntl();
|
4036
4059
|
const { trackUsage } = strapiAdmin.useTracking();
|
4060
|
+
const { pathname } = reactRouterDom.useLocation();
|
4037
4061
|
const [{ query }] = strapiAdmin.useQueryParams();
|
4038
4062
|
const { data, error } = useGetPreviewUrlQuery({
|
4039
4063
|
params: {
|
@@ -4048,8 +4072,9 @@ const PreviewSidePanel = ({ model, documentId, document }) => {
|
|
4048
4072
|
if (!data?.data?.url || error) {
|
4049
4073
|
return null;
|
4050
4074
|
}
|
4051
|
-
const
|
4052
|
-
|
4075
|
+
const trackNavigation = () => {
|
4076
|
+
const destinationPathname = pathname.replace(/\/$/, "") + "/preview";
|
4077
|
+
trackUsage("willNavigate", { from: pathname, to: destinationPathname });
|
4053
4078
|
};
|
4054
4079
|
return {
|
4055
4080
|
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
@@ -4059,7 +4084,7 @@ const PreviewSidePanel = ({ model, documentId, document }) => {
|
|
4059
4084
|
variant: "tertiary",
|
4060
4085
|
tag: reactRouterDom.Link,
|
4061
4086
|
to: { pathname: "preview", search: qs.stringify(query, { encode: false }) },
|
4062
|
-
onClick:
|
4087
|
+
onClick: trackNavigation,
|
4063
4088
|
flex: "auto",
|
4064
4089
|
children: formatMessage({
|
4065
4090
|
id: "content-manager.preview.panel.button",
|
@@ -4098,7 +4123,7 @@ const index = {
|
|
4098
4123
|
app.router.addRoute({
|
4099
4124
|
path: "content-manager/*",
|
4100
4125
|
lazy: async () => {
|
4101
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
4126
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-BEuNwv-F.js"));
|
4102
4127
|
return {
|
4103
4128
|
Component: Layout
|
4104
4129
|
};
|
@@ -4118,7 +4143,7 @@ const index = {
|
|
4118
4143
|
async registerTrads({ locales }) {
|
4119
4144
|
const importedTrads = await Promise.all(
|
4120
4145
|
locales.map((locale) => {
|
4121
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
4146
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-Ic0kXjxB.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-9K52xZIr.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B2Kyv8Z9.js")), "./translations/gu.json": () => Promise.resolve().then(() => require("./gu-BRmF601H.js")), "./translations/hi.json": () => Promise.resolve().then(() => require("./hi-CCJBptSq.js")), "./translations/hu.json": () => Promise.resolve().then(() => require("./hu-sNV_yLYy.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-B5Ser98A.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-DkBIs7vD.js")), "./translations/ja.json": () => Promise.resolve().then(() => require("./ja-7sfIbjxE.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-woFZPmLk.js")), "./translations/ml.json": () => Promise.resolve().then(() => require("./ml-C2W8N8k1.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-BuFotyP_.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-bbEOHChV.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-uzwG-hk7.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-BiOz37D9.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-CeXQuq50.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BT3ybNny.js")), "./translations/sa.json": () => Promise.resolve().then(() => require("./sa-CcvkYInH.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-CvY09Xjv.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-MYDuzgvT.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-D9_GfAjc.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-D9UH-O_R.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-C8EiqJY7.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-CJlYDheJ.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-9kOncHGw.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CQQfszqR.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
|
4122
4147
|
return {
|
4123
4148
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4124
4149
|
locale
|
@@ -4178,4 +4203,4 @@ exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuer
|
|
4178
4203
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
4179
4204
|
exports.useGetPreviewUrlQuery = useGetPreviewUrlQuery;
|
4180
4205
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
4181
|
-
//# sourceMappingURL=index-
|
4206
|
+
//# sourceMappingURL=index-T-aWjbj2.js.map
|