@strapi/content-manager 0.0.0-experimental.86fea32ae4240d73f76516d7238e302b6b927e88 → 0.0.0-experimental.8c83c87960f2f5ddf95ae2f0acf849052f4a9ab4
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/CardDragPreview-C0QyJgRA.js.map +1 -1
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-B2g3icXu.mjs → ComponentConfigurationPage-BgCLcjXO.mjs} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-B2g3icXu.mjs.map → ComponentConfigurationPage-BgCLcjXO.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-CzDn8Uxh.js → ComponentConfigurationPage-DywpTZeV.js} +5 -6
- package/dist/_chunks/{ComponentConfigurationPage-CzDn8Uxh.js.map → ComponentConfigurationPage-DywpTZeV.js.map} +1 -1
- package/dist/_chunks/{ComponentIcon-BXdiCGQp.js → ComponentIcon-CRbtQEUV.js} +2 -3
- package/dist/_chunks/{ComponentIcon-BXdiCGQp.js.map → ComponentIcon-CRbtQEUV.js.map} +1 -1
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +1 -1
- package/dist/_chunks/{EditConfigurationPage-DSA1zONV.mjs → EditConfigurationPage-BNjOAHNS.mjs} +4 -4
- package/dist/_chunks/{EditConfigurationPage-DSA1zONV.mjs.map → EditConfigurationPage-BNjOAHNS.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Bcbi6r5y.js → EditConfigurationPage-CxRlP5if.js} +5 -6
- package/dist/_chunks/{EditConfigurationPage-Bcbi6r5y.js.map → EditConfigurationPage-CxRlP5if.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-BvcMXaP2.js → EditViewPage-BRewdTqE.js} +38 -9
- package/dist/_chunks/EditViewPage-BRewdTqE.js.map +1 -0
- package/dist/_chunks/{EditViewPage-Ca2EmJpb.mjs → EditViewPage-CD_hqc1J.mjs} +38 -8
- package/dist/_chunks/EditViewPage-CD_hqc1J.mjs.map +1 -0
- package/dist/_chunks/{Field-BEYkgCZ0.mjs → Field-BPkQ-3Ku.mjs} +64 -64
- package/dist/_chunks/Field-BPkQ-3Ku.mjs.map +1 -0
- package/dist/_chunks/{Field-CmaWxdpf.js → Field-DwvmENVf.js} +65 -66
- package/dist/_chunks/Field-DwvmENVf.js.map +1 -0
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +1 -1
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +1 -1
- package/dist/_chunks/{Form-DAUpPBVM.js → Form-C_Gwv8P_.js} +5 -6
- package/dist/_chunks/{Form-DAUpPBVM.js.map → Form-C_Gwv8P_.js.map} +1 -1
- package/dist/_chunks/{Form-BJVbU6w4.mjs → Form-Czi0cf_2.mjs} +3 -3
- package/dist/_chunks/{Form-BJVbU6w4.mjs.map → Form-Czi0cf_2.mjs.map} +1 -1
- package/dist/_chunks/{History-Bw9vfT1k.js → History-C1TKAig-.js} +23 -94
- package/dist/_chunks/History-C1TKAig-.js.map +1 -0
- package/dist/_chunks/{History-M6Pk9CoY.mjs → History-CIQHyi4T.mjs} +23 -93
- package/dist/_chunks/History-CIQHyi4T.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DBVqF5fc.js → ListConfigurationPage-D-NGRLYu.js} +7 -7
- package/dist/_chunks/ListConfigurationPage-D-NGRLYu.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-D7ior2zq.mjs → ListConfigurationPage-DcZsfyEL.mjs} +7 -6
- package/dist/_chunks/ListConfigurationPage-DcZsfyEL.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-BH37wONY.mjs → ListViewPage-C10McTK1.mjs} +62 -39
- package/dist/_chunks/ListViewPage-C10McTK1.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-MZu-8OKX.js → ListViewPage-xv5IQoZp.js} +63 -41
- package/dist/_chunks/ListViewPage-xv5IQoZp.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DRp7Aem_.mjs → NoContentTypePage-CPc0Cd3S.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-DRp7Aem_.mjs.map → NoContentTypePage-CPc0Cd3S.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-C9lRMTCa.js → NoContentTypePage-Dzw5Yj5u.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-C9lRMTCa.js.map → NoContentTypePage-Dzw5Yj5u.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-COs61PpB.js → NoPermissionsPage-DAe5CDCC.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-COs61PpB.js.map → NoPermissionsPage-DAe5CDCC.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CzhRt5CA.mjs → NoPermissionsPage-wfPBh2_0.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CzhRt5CA.mjs.map → NoPermissionsPage-wfPBh2_0.mjs.map} +1 -1
- package/dist/_chunks/Preview-B7LyGT_b.js +290 -0
- package/dist/_chunks/Preview-B7LyGT_b.js.map +1 -0
- package/dist/_chunks/Preview-BVFFm7uB.mjs +272 -0
- package/dist/_chunks/Preview-BVFFm7uB.mjs.map +1 -0
- package/dist/_chunks/{Relations-CsGlulU_.js → Relations-BmYR1AjY.js} +30 -18
- package/dist/_chunks/Relations-BmYR1AjY.js.map +1 -0
- package/dist/_chunks/{Relations-68XxIzPI.mjs → Relations-JPhWxk-s.mjs} +30 -17
- package/dist/_chunks/Relations-JPhWxk-s.mjs.map +1 -0
- package/dist/_chunks/{en-Bm0D0IWz.js → en-BK8Xyl5I.js} +16 -4
- package/dist/_chunks/{en-Bm0D0IWz.js.map → en-BK8Xyl5I.js.map} +1 -1
- package/dist/_chunks/{en-DKV44jRb.mjs → en-Dtk_ot79.mjs} +16 -4
- package/dist/_chunks/{en-DKV44jRb.mjs.map → en-Dtk_ot79.mjs.map} +1 -1
- package/dist/_chunks/{es-EUonQTon.js → es-9K52xZIr.js} +2 -2
- package/dist/_chunks/{ja-CcFe8diO.js.map → es-9K52xZIr.js.map} +1 -1
- package/dist/_chunks/{es-CeXiYflN.mjs → es-D34tqjMw.mjs} +2 -2
- package/dist/_chunks/{es-CeXiYflN.mjs.map → es-D34tqjMw.mjs.map} +1 -1
- package/dist/_chunks/{fr-CD9VFbPM.mjs → fr--pg5jUbt.mjs} +13 -3
- package/dist/_chunks/{fr-CD9VFbPM.mjs.map → fr--pg5jUbt.mjs.map} +1 -1
- package/dist/_chunks/{fr-B7kGGg3E.js → fr-B2Kyv8Z9.js} +13 -3
- package/dist/_chunks/{fr-B7kGGg3E.js.map → fr-B2Kyv8Z9.js.map} +1 -1
- package/dist/_chunks/hooks-BAaaKPS_.js.map +1 -1
- package/dist/_chunks/{index-oDq3VO9j.js → index-C2Q_PLWj.js} +203 -102
- package/dist/_chunks/index-C2Q_PLWj.js.map +1 -0
- package/dist/_chunks/{index-CsfwpRfc.mjs → index-DLIkNVnQ.mjs} +206 -104
- package/dist/_chunks/index-DLIkNVnQ.mjs.map +1 -0
- package/dist/_chunks/{ja-CcFe8diO.js → ja-7sfIbjxE.js} +2 -2
- package/dist/_chunks/{es-EUonQTon.js.map → ja-7sfIbjxE.js.map} +1 -1
- package/dist/_chunks/{ja-CtsUxOvk.mjs → ja-BHqhDq4V.mjs} +2 -2
- package/dist/_chunks/{ja-CtsUxOvk.mjs.map → ja-BHqhDq4V.mjs.map} +1 -1
- package/dist/_chunks/{layout-Euka-kfv.js → layout-7AsWJzZJ.js} +5 -6
- package/dist/_chunks/{layout-Euka-kfv.js.map → layout-7AsWJzZJ.js.map} +1 -1
- package/dist/_chunks/{layout-C5uSVTqi.mjs → layout-qE8qkNH_.mjs} +4 -4
- package/dist/_chunks/{layout-C5uSVTqi.mjs.map → layout-qE8qkNH_.mjs.map} +1 -1
- package/dist/_chunks/{objects-gigeqt7s.js → objects-BcXOv6_9.js} +2 -4
- package/dist/_chunks/{objects-gigeqt7s.js.map → objects-BcXOv6_9.js.map} +1 -1
- package/dist/_chunks/{objects-mKMAmfec.mjs → objects-D6yBsdmx.mjs} +2 -4
- package/dist/_chunks/{objects-mKMAmfec.mjs.map → objects-D6yBsdmx.mjs.map} +1 -1
- package/dist/_chunks/{relations-BpHVgFuV.mjs → relations-BjHH_1Am.mjs} +6 -7
- package/dist/_chunks/relations-BjHH_1Am.mjs.map +1 -0
- package/dist/_chunks/{relations-DG7kmxa0.js → relations-EifVzf_2.js} +6 -7
- package/dist/_chunks/relations-EifVzf_2.js.map +1 -0
- package/dist/_chunks/useDebounce-CtcjDB3L.js.map +1 -1
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +1 -1
- package/dist/_chunks/{useDragAndDrop-J0TUUbR6.js → useDragAndDrop-BMtgCYzL.js} +5 -9
- package/dist/_chunks/{useDragAndDrop-J0TUUbR6.js.map → useDragAndDrop-BMtgCYzL.js.map} +1 -1
- package/dist/_chunks/{useDragAndDrop-DdHgKsqq.mjs → useDragAndDrop-DJ6jqvZN.mjs} +4 -7
- package/dist/_chunks/{useDragAndDrop-DdHgKsqq.mjs.map → useDragAndDrop-DJ6jqvZN.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +4 -4
- package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +2 -2
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
- package/dist/admin/src/preview/constants.d.ts +1 -0
- package/dist/admin/src/preview/index.d.ts +4 -0
- package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
- package/dist/admin/src/preview/routes.d.ts +3 -0
- package/dist/admin/src/preview/services/preview.d.ts +3 -0
- package/dist/admin/src/router.d.ts +1 -1
- package/dist/admin/src/services/documents.d.ts +0 -3
- package/dist/server/index.js +410 -186
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +410 -185
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/controllers/index.d.ts.map +1 -1
- package/dist/server/src/controllers/relations.d.ts.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +15 -1
- package/dist/server/src/controllers/utils/metadata.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 +2 -3
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +4 -4
- package/dist/server/src/preview/constants.d.ts +2 -0
- package/dist/server/src/preview/constants.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/index.d.ts +2 -0
- package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/preview.d.ts +13 -0
- package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
- package/dist/server/src/preview/index.d.ts +4 -0
- package/dist/server/src/preview/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/index.d.ts +8 -0
- package/dist/server/src/preview/routes/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/preview.d.ts +4 -0
- package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
- package/dist/server/src/preview/services/index.d.ts +16 -0
- package/dist/server/src/preview/services/index.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview-config.d.ts +32 -0
- package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview.d.ts +12 -0
- package/dist/server/src/preview/services/preview.d.ts.map +1 -0
- package/dist/server/src/preview/utils.d.ts +19 -0
- package/dist/server/src/preview/utils.d.ts.map +1 -0
- package/dist/server/src/register.d.ts.map +1 -1
- package/dist/server/src/routes/index.d.ts.map +1 -1
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +8 -8
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +4 -4
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
- package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
- package/dist/server/src/utils/index.d.ts +2 -0
- package/dist/server/src/utils/index.d.ts.map +1 -1
- package/dist/shared/contracts/index.d.ts +1 -0
- package/dist/shared/contracts/index.d.ts.map +1 -1
- package/dist/shared/contracts/preview.d.ts +27 -0
- package/dist/shared/contracts/preview.d.ts.map +1 -0
- package/dist/shared/index.js +4 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +4 -0
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +11 -11
- package/dist/_chunks/EditViewPage-BvcMXaP2.js.map +0 -1
- package/dist/_chunks/EditViewPage-Ca2EmJpb.mjs.map +0 -1
- package/dist/_chunks/Field-BEYkgCZ0.mjs.map +0 -1
- package/dist/_chunks/Field-CmaWxdpf.js.map +0 -1
- package/dist/_chunks/History-Bw9vfT1k.js.map +0 -1
- package/dist/_chunks/History-M6Pk9CoY.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-D7ior2zq.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DBVqF5fc.js.map +0 -1
- package/dist/_chunks/ListViewPage-BH37wONY.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-MZu-8OKX.js.map +0 -1
- package/dist/_chunks/Relations-68XxIzPI.mjs.map +0 -1
- package/dist/_chunks/Relations-CsGlulU_.js.map +0 -1
- package/dist/_chunks/index-CsfwpRfc.mjs.map +0 -1
- package/dist/_chunks/index-oDq3VO9j.js.map +0 -1
- package/dist/_chunks/relations-BpHVgFuV.mjs.map +0 -1
- package/dist/_chunks/relations-DG7kmxa0.js.map +0 -1
@@ -3,24 +3,31 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useForm, useTracking, useGuidedTour, BackButton, DescriptionComponentRenderer, useTable, Table } from "@strapi/admin/strapi-admin";
|
4
4
|
import * as React from "react";
|
5
5
|
import { lazy } from "react";
|
6
|
-
import {
|
6
|
+
import { Menu, Button, VisuallyHidden, Flex, Dialog, Modal, Typography, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
|
7
7
|
import mapValues from "lodash/fp/mapValues";
|
8
8
|
import { useIntl } from "react-intl";
|
9
9
|
import { useParams, useNavigate, Navigate, useMatch, useLocation, Link, NavLink } from "react-router-dom";
|
10
|
+
import { styled } from "styled-components";
|
10
11
|
import * as yup from "yup";
|
11
12
|
import { ValidationError } from "yup";
|
13
|
+
import { stringify } from "qs";
|
12
14
|
import pipe from "lodash/fp/pipe";
|
13
15
|
import { intervalToDuration, isPast } from "date-fns";
|
14
|
-
import { styled } from "styled-components";
|
15
|
-
import { stringify } from "qs";
|
16
16
|
import { createSlice, combineReducers } from "@reduxjs/toolkit";
|
17
|
-
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
17
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
18
18
|
const v = glob[path];
|
19
19
|
if (v) {
|
20
20
|
return typeof v === "function" ? v() : Promise.resolve(v);
|
21
21
|
}
|
22
22
|
return new Promise((_, reject) => {
|
23
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
23
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
24
|
+
reject.bind(
|
25
|
+
null,
|
26
|
+
new Error(
|
27
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
28
|
+
)
|
29
|
+
)
|
30
|
+
);
|
24
31
|
});
|
25
32
|
};
|
26
33
|
const PLUGIN_ID = "content-manager";
|
@@ -274,7 +281,7 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
274
281
|
url: `/content-manager/collection-types/${model}`,
|
275
282
|
method: "GET",
|
276
283
|
config: {
|
277
|
-
params
|
284
|
+
params: stringify(params, { encode: true })
|
278
285
|
}
|
279
286
|
}),
|
280
287
|
providesTags: (result, _error, arg) => {
|
@@ -453,8 +460,7 @@ const {
|
|
453
460
|
useUnpublishManyDocumentsMutation
|
454
461
|
} = documentApi;
|
455
462
|
const buildValidParams = (query) => {
|
456
|
-
if (!query)
|
457
|
-
return query;
|
463
|
+
if (!query) return query;
|
458
464
|
const { plugins: _, ...validQueryParams } = {
|
459
465
|
...query,
|
460
466
|
...Object.values(query?.plugins ?? {}).reduce(
|
@@ -462,9 +468,6 @@ const buildValidParams = (query) => {
|
|
462
468
|
{}
|
463
469
|
)
|
464
470
|
};
|
465
|
-
if ("_q" in validQueryParams) {
|
466
|
-
validQueryParams._q = encodeURIComponent(validQueryParams._q);
|
467
|
-
}
|
468
471
|
return validQueryParams;
|
469
472
|
};
|
470
473
|
const isBaseQueryError = (error) => {
|
@@ -969,9 +972,10 @@ const formatEditLayout = (data, {
|
|
969
972
|
currentPanelIndex += 2;
|
970
973
|
} else {
|
971
974
|
if (!panels[currentPanelIndex]) {
|
972
|
-
panels.push([]);
|
975
|
+
panels.push([row]);
|
976
|
+
} else {
|
977
|
+
panels[currentPanelIndex].push(row);
|
973
978
|
}
|
974
|
-
panels[currentPanelIndex].push(row);
|
975
979
|
}
|
976
980
|
return panels;
|
977
981
|
}, []);
|
@@ -1229,9 +1233,6 @@ const useContentManagerContext = () => {
|
|
1229
1233
|
};
|
1230
1234
|
};
|
1231
1235
|
const prefixPluginTranslations = (trad, pluginId) => {
|
1232
|
-
if (!pluginId) {
|
1233
|
-
throw new TypeError("pluginId can't be empty");
|
1234
|
-
}
|
1235
1236
|
return Object.keys(trad).reduce((acc, current) => {
|
1236
1237
|
acc[`${pluginId}.${current}`] = trad[current];
|
1237
1238
|
return acc;
|
@@ -1665,10 +1666,10 @@ const useDocumentActions = () => {
|
|
1665
1666
|
update
|
1666
1667
|
};
|
1667
1668
|
};
|
1668
|
-
const ProtectedHistoryPage = lazy(
|
1669
|
-
() => import("./History-
|
1669
|
+
const ProtectedHistoryPage = React.lazy(
|
1670
|
+
() => import("./History-CIQHyi4T.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1670
1671
|
);
|
1671
|
-
const routes$
|
1672
|
+
const routes$2 = [
|
1672
1673
|
{
|
1673
1674
|
path: ":collectionType/:slug/:id/history",
|
1674
1675
|
Component: ProtectedHistoryPage
|
@@ -1678,32 +1679,45 @@ const routes$1 = [
|
|
1678
1679
|
Component: ProtectedHistoryPage
|
1679
1680
|
}
|
1680
1681
|
];
|
1682
|
+
const ProtectedPreviewPage = React.lazy(
|
1683
|
+
() => import("./Preview-BVFFm7uB.mjs").then((mod) => ({ default: mod.ProtectedPreviewPage }))
|
1684
|
+
);
|
1685
|
+
const routes$1 = [
|
1686
|
+
{
|
1687
|
+
path: ":collectionType/:slug/:id/preview",
|
1688
|
+
Component: ProtectedPreviewPage
|
1689
|
+
},
|
1690
|
+
{
|
1691
|
+
path: ":collectionType/:slug/preview",
|
1692
|
+
Component: ProtectedPreviewPage
|
1693
|
+
}
|
1694
|
+
];
|
1681
1695
|
const ProtectedEditViewPage = lazy(
|
1682
|
-
() => import("./EditViewPage-
|
1696
|
+
() => import("./EditViewPage-CD_hqc1J.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1683
1697
|
);
|
1684
1698
|
const ProtectedListViewPage = lazy(
|
1685
|
-
() => import("./ListViewPage-
|
1699
|
+
() => import("./ListViewPage-C10McTK1.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1686
1700
|
);
|
1687
1701
|
const ProtectedListConfiguration = lazy(
|
1688
|
-
() => import("./ListConfigurationPage-
|
1702
|
+
() => import("./ListConfigurationPage-DcZsfyEL.mjs").then((mod) => ({
|
1689
1703
|
default: mod.ProtectedListConfiguration
|
1690
1704
|
}))
|
1691
1705
|
);
|
1692
1706
|
const ProtectedEditConfigurationPage = lazy(
|
1693
|
-
() => import("./EditConfigurationPage-
|
1707
|
+
() => import("./EditConfigurationPage-BNjOAHNS.mjs").then((mod) => ({
|
1694
1708
|
default: mod.ProtectedEditConfigurationPage
|
1695
1709
|
}))
|
1696
1710
|
);
|
1697
1711
|
const ProtectedComponentConfigurationPage = lazy(
|
1698
|
-
() => import("./ComponentConfigurationPage-
|
1712
|
+
() => import("./ComponentConfigurationPage-BgCLcjXO.mjs").then((mod) => ({
|
1699
1713
|
default: mod.ProtectedComponentConfigurationPage
|
1700
1714
|
}))
|
1701
1715
|
);
|
1702
1716
|
const NoPermissions = lazy(
|
1703
|
-
() => import("./NoPermissionsPage-
|
1717
|
+
() => import("./NoPermissionsPage-wfPBh2_0.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1704
1718
|
);
|
1705
1719
|
const NoContentType = lazy(
|
1706
|
-
() => import("./NoContentTypePage-
|
1720
|
+
() => import("./NoContentTypePage-CPc0Cd3S.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1707
1721
|
);
|
1708
1722
|
const CollectionTypePages = () => {
|
1709
1723
|
const { collectionType } = useParams();
|
@@ -1715,7 +1729,7 @@ const CollectionTypePages = () => {
|
|
1715
1729
|
const CLONE_RELATIVE_PATH = ":collectionType/:slug/clone/:origin";
|
1716
1730
|
const CLONE_PATH = `/content-manager/${CLONE_RELATIVE_PATH}`;
|
1717
1731
|
const LIST_RELATIVE_PATH = ":collectionType/:slug";
|
1718
|
-
const LIST_PATH = `/content-manager
|
1732
|
+
const LIST_PATH = `/content-manager/collection-types/:slug`;
|
1719
1733
|
const routes = [
|
1720
1734
|
{
|
1721
1735
|
path: LIST_RELATIVE_PATH,
|
@@ -1749,6 +1763,7 @@ const routes = [
|
|
1749
1763
|
path: "no-content-types",
|
1750
1764
|
Component: NoContentType
|
1751
1765
|
},
|
1766
|
+
...routes$2,
|
1752
1767
|
...routes$1
|
1753
1768
|
];
|
1754
1769
|
const DocumentActions = ({ actions: actions2 }) => {
|
@@ -1847,6 +1862,11 @@ const DocumentActionButton = (action) => {
|
|
1847
1862
|
) : null
|
1848
1863
|
] });
|
1849
1864
|
};
|
1865
|
+
const MenuItem = styled(Menu.Item)`
|
1866
|
+
&:hover {
|
1867
|
+
background: ${({ theme, isVariantDanger, isDisabled }) => isVariantDanger && !isDisabled ? theme.colors.danger100 : "neutral"};
|
1868
|
+
}
|
1869
|
+
`;
|
1850
1870
|
const DocumentActionsMenu = ({
|
1851
1871
|
actions: actions2,
|
1852
1872
|
children,
|
@@ -1905,48 +1925,32 @@ const DocumentActionsMenu = ({
|
|
1905
1925
|
/* @__PURE__ */ jsxs(Menu.Content, { maxHeight: void 0, popoverPlacement: "bottom-end", children: [
|
1906
1926
|
actions2.map((action) => {
|
1907
1927
|
return /* @__PURE__ */ jsx(
|
1908
|
-
|
1928
|
+
MenuItem,
|
1909
1929
|
{
|
1910
1930
|
disabled: action.disabled,
|
1911
1931
|
onSelect: handleClick(action),
|
1912
1932
|
display: "block",
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
Flex,
|
1935
|
-
{
|
1936
|
-
alignItems: "center",
|
1937
|
-
background: "alternative100",
|
1938
|
-
borderStyle: "solid",
|
1939
|
-
borderColor: "alternative200",
|
1940
|
-
borderWidth: "1px",
|
1941
|
-
height: 5,
|
1942
|
-
paddingLeft: 2,
|
1943
|
-
paddingRight: 2,
|
1944
|
-
hasRadius: true,
|
1945
|
-
color: "alternative600",
|
1946
|
-
children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", fontWeight: "bold", lineHeight: 1, children: formatMessage({ id: "global.new", defaultMessage: "New" }) })
|
1947
|
-
}
|
1948
|
-
)
|
1949
|
-
] })
|
1933
|
+
isVariantDanger: action.variant === "danger",
|
1934
|
+
isDisabled: action.disabled,
|
1935
|
+
children: /* @__PURE__ */ jsx(Flex, { justifyContent: "space-between", gap: 4, children: /* @__PURE__ */ jsxs(
|
1936
|
+
Flex,
|
1937
|
+
{
|
1938
|
+
color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
|
1939
|
+
gap: 2,
|
1940
|
+
tag: "span",
|
1941
|
+
children: [
|
1942
|
+
/* @__PURE__ */ jsx(
|
1943
|
+
Flex,
|
1944
|
+
{
|
1945
|
+
tag: "span",
|
1946
|
+
color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
|
1947
|
+
children: action.icon
|
1948
|
+
}
|
1949
|
+
),
|
1950
|
+
action.label
|
1951
|
+
]
|
1952
|
+
}
|
1953
|
+
) })
|
1950
1954
|
},
|
1951
1955
|
action.id
|
1952
1956
|
);
|
@@ -2083,6 +2087,7 @@ const PublishAction$1 = ({
|
|
2083
2087
|
const { _unstableFormatValidationErrors: formatValidationErrors } = useAPIErrorHandler();
|
2084
2088
|
const isListView = useMatch(LIST_PATH) !== null;
|
2085
2089
|
const isCloning = useMatch(CLONE_PATH) !== null;
|
2090
|
+
const { id } = useParams();
|
2086
2091
|
const { formatMessage } = useIntl();
|
2087
2092
|
const canPublish = useDocumentRBAC("PublishAction", ({ canPublish: canPublish2 }) => canPublish2);
|
2088
2093
|
const { publish } = useDocumentActions();
|
@@ -2185,10 +2190,12 @@ const PublishAction$1 = ({
|
|
2185
2190
|
transformData(formValues)
|
2186
2191
|
);
|
2187
2192
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2188
|
-
|
2189
|
-
|
2190
|
-
|
2191
|
-
|
2193
|
+
if (id === "create") {
|
2194
|
+
navigate({
|
2195
|
+
pathname: `../${collectionType}/${model}/${res.data.documentId}`,
|
2196
|
+
search: rawQuery
|
2197
|
+
});
|
2198
|
+
}
|
2192
2199
|
} else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2193
2200
|
setErrors(formatValidationErrors(res.error));
|
2194
2201
|
}
|
@@ -2272,7 +2279,7 @@ const UpdateAction = ({
|
|
2272
2279
|
*/
|
2273
2280
|
disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
|
2274
2281
|
label: formatMessage({
|
2275
|
-
id: "
|
2282
|
+
id: "global.save",
|
2276
2283
|
defaultMessage: "Save"
|
2277
2284
|
}),
|
2278
2285
|
onClick: async () => {
|
@@ -2537,7 +2544,7 @@ const RelativeTime = React.forwardRef(
|
|
2537
2544
|
});
|
2538
2545
|
const unit = intervals.find((intervalUnit) => {
|
2539
2546
|
return interval[intervalUnit] > 0 && Object.keys(interval).includes(intervalUnit);
|
2540
|
-
});
|
2547
|
+
}) ?? "seconds";
|
2541
2548
|
const relativeTime = isPast(timestamp) ? -interval[unit] : interval[unit];
|
2542
2549
|
const customInterval = customIntervals.find(
|
2543
2550
|
(custom) => interval[custom.unit] < custom.threshold
|
@@ -2571,19 +2578,29 @@ const getDisplayName = ({
|
|
2571
2578
|
return email ?? "";
|
2572
2579
|
};
|
2573
2580
|
const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
2574
|
-
const DocumentStatus = ({ status = "draft", ...restProps }) => {
|
2581
|
+
const DocumentStatus = ({ status = "draft", size = "S", ...restProps }) => {
|
2575
2582
|
const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
|
2576
|
-
|
2583
|
+
const { formatMessage } = useIntl();
|
2584
|
+
return /* @__PURE__ */ jsx(Status, { ...restProps, size, variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
|
2585
|
+
id: `content-manager.containers.List.${status}`,
|
2586
|
+
defaultMessage: capitalise(status)
|
2587
|
+
}) }) });
|
2577
2588
|
};
|
2578
2589
|
const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
|
2579
2590
|
const { formatMessage } = useIntl();
|
2580
2591
|
const isCloning = useMatch(CLONE_PATH) !== null;
|
2592
|
+
const params = useParams();
|
2581
2593
|
const title = isCreating ? formatMessage({
|
2582
2594
|
id: "content-manager.containers.edit.title.new",
|
2583
2595
|
defaultMessage: "Create an entry"
|
2584
2596
|
}) : documentTitle;
|
2585
2597
|
return /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "flex-start", paddingTop: 6, paddingBottom: 4, gap: 2, children: [
|
2586
|
-
/* @__PURE__ */ jsx(
|
2598
|
+
/* @__PURE__ */ jsx(
|
2599
|
+
BackButton,
|
2600
|
+
{
|
2601
|
+
fallback: params.collectionType === SINGLE_TYPES ? void 0 : `../${COLLECTION_TYPES}/${params.slug}`
|
2602
|
+
}
|
2603
|
+
),
|
2587
2604
|
/* @__PURE__ */ jsxs(Flex, { width: "100%", justifyContent: "space-between", gap: "80px", alignItems: "flex-start", children: [
|
2588
2605
|
/* @__PURE__ */ jsx(Typography, { variant: "alpha", tag: "h1", children: title }),
|
2589
2606
|
/* @__PURE__ */ jsx(HeaderToolbar, {})
|
@@ -3020,7 +3037,7 @@ const Panel = React.forwardRef(({ children, title }, ref) => {
|
|
3020
3037
|
justifyContent: "stretch",
|
3021
3038
|
alignItems: "flex-start",
|
3022
3039
|
children: [
|
3023
|
-
/* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
|
3040
|
+
/* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", textColor: "neutral600", children: title }),
|
3024
3041
|
children
|
3025
3042
|
]
|
3026
3043
|
}
|
@@ -3270,18 +3287,10 @@ const SelectedEntriesTableContent = ({
|
|
3270
3287
|
search: row.locale && `?plugins[i18n][locale]=${row.locale}`
|
3271
3288
|
},
|
3272
3289
|
state: { from: pathname },
|
3273
|
-
label: formatMessage(
|
3274
|
-
|
3275
|
-
|
3276
|
-
|
3277
|
-
{
|
3278
|
-
id: "content-manager.components.ListViewHelperPluginTable.row-line",
|
3279
|
-
defaultMessage: "item line {number}"
|
3280
|
-
},
|
3281
|
-
{ number: index2 + 1 }
|
3282
|
-
)
|
3283
|
-
}
|
3284
|
-
),
|
3290
|
+
label: formatMessage({
|
3291
|
+
id: "content-manager.bulk-publish.edit",
|
3292
|
+
defaultMessage: "Edit"
|
3293
|
+
}),
|
3285
3294
|
target: "_blank",
|
3286
3295
|
marginLeft: "auto",
|
3287
3296
|
variant: "ghost",
|
@@ -3455,8 +3464,7 @@ const PublishAction = ({ documents, model }) => {
|
|
3455
3464
|
const refetchList = () => {
|
3456
3465
|
contentManagerApi.util.invalidateTags([{ type: "Document", id: `${model}_LIST` }]);
|
3457
3466
|
};
|
3458
|
-
if (!showPublishButton)
|
3459
|
-
return null;
|
3467
|
+
if (!showPublishButton) return null;
|
3460
3468
|
return {
|
3461
3469
|
actionType: "publish",
|
3462
3470
|
variant: "tertiary",
|
@@ -3524,8 +3532,7 @@ const DeleteAction = ({ documents, model }) => {
|
|
3524
3532
|
selectRow([]);
|
3525
3533
|
}
|
3526
3534
|
};
|
3527
|
-
if (!hasDeletePermission)
|
3528
|
-
return null;
|
3535
|
+
if (!hasDeletePermission) return null;
|
3529
3536
|
return {
|
3530
3537
|
variant: "danger-light",
|
3531
3538
|
label: formatMessage({ id: "global.delete", defaultMessage: "Delete" }),
|
@@ -3574,8 +3581,7 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3574
3581
|
}
|
3575
3582
|
};
|
3576
3583
|
const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
|
3577
|
-
if (!showUnpublishButton)
|
3578
|
-
return null;
|
3584
|
+
if (!showUnpublishButton) return null;
|
3579
3585
|
return {
|
3580
3586
|
variant: "tertiary",
|
3581
3587
|
label: formatMessage({ id: "app.utils.unpublish", defaultMessage: "Unpublish" }),
|
@@ -3911,10 +3917,8 @@ class ContentManagerPlugin {
|
|
3911
3917
|
const getPrintableType = (value) => {
|
3912
3918
|
const nativeType = typeof value;
|
3913
3919
|
if (nativeType === "object") {
|
3914
|
-
if (value === null)
|
3915
|
-
|
3916
|
-
if (Array.isArray(value))
|
3917
|
-
return "array";
|
3920
|
+
if (value === null) return "null";
|
3921
|
+
if (Array.isArray(value)) return "array";
|
3918
3922
|
if (value instanceof Object && value.constructor.name !== "Object") {
|
3919
3923
|
return value.constructor.name;
|
3920
3924
|
}
|
@@ -3925,17 +3929,27 @@ const HistoryAction = ({ model, document }) => {
|
|
3925
3929
|
const { formatMessage } = useIntl();
|
3926
3930
|
const [{ query }] = useQueryParams();
|
3927
3931
|
const navigate = useNavigate();
|
3932
|
+
const { trackUsage } = useTracking();
|
3933
|
+
const { pathname } = useLocation();
|
3928
3934
|
const pluginsQueryParams = stringify({ plugins: query.plugins }, { encode: false });
|
3929
3935
|
if (!window.strapi.features.isEnabled("cms-content-history")) {
|
3930
3936
|
return null;
|
3931
3937
|
}
|
3938
|
+
const handleOnClick = () => {
|
3939
|
+
const destination = { pathname: "history", search: pluginsQueryParams };
|
3940
|
+
trackUsage("willNavigate", {
|
3941
|
+
from: pathname,
|
3942
|
+
to: `${pathname}/${destination.pathname}`
|
3943
|
+
});
|
3944
|
+
navigate(destination);
|
3945
|
+
};
|
3932
3946
|
return {
|
3933
3947
|
icon: /* @__PURE__ */ jsx(ClockCounterClockwise, {}),
|
3934
3948
|
label: formatMessage({
|
3935
3949
|
id: "content-manager.history.document-action",
|
3936
3950
|
defaultMessage: "Content History"
|
3937
3951
|
}),
|
3938
|
-
onClick:
|
3952
|
+
onClick: handleOnClick,
|
3939
3953
|
disabled: (
|
3940
3954
|
/**
|
3941
3955
|
* The user is creating a new document.
|
@@ -4003,6 +4017,90 @@ const { setInitialData } = actions;
|
|
4003
4017
|
const reducer = combineReducers({
|
4004
4018
|
app: reducer$1
|
4005
4019
|
});
|
4020
|
+
const previewApi = contentManagerApi.injectEndpoints({
|
4021
|
+
endpoints: (builder) => ({
|
4022
|
+
getPreviewUrl: builder.query({
|
4023
|
+
query({ query, params }) {
|
4024
|
+
return {
|
4025
|
+
url: `/content-manager/preview/url/${params.contentType}`,
|
4026
|
+
method: "GET",
|
4027
|
+
config: {
|
4028
|
+
params: query
|
4029
|
+
}
|
4030
|
+
};
|
4031
|
+
}
|
4032
|
+
})
|
4033
|
+
})
|
4034
|
+
});
|
4035
|
+
const { useGetPreviewUrlQuery } = previewApi;
|
4036
|
+
const ConditionalTooltip = ({ isShown, label, children }) => {
|
4037
|
+
if (isShown) {
|
4038
|
+
return /* @__PURE__ */ jsx(Tooltip, { label, children });
|
4039
|
+
}
|
4040
|
+
return children;
|
4041
|
+
};
|
4042
|
+
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4043
|
+
const { formatMessage } = useIntl();
|
4044
|
+
const { trackUsage } = useTracking();
|
4045
|
+
const { pathname } = useLocation();
|
4046
|
+
const [{ query }] = useQueryParams();
|
4047
|
+
const isModified = useForm("PreviewSidePanel", (state) => state.modified);
|
4048
|
+
const { data, error } = useGetPreviewUrlQuery({
|
4049
|
+
params: {
|
4050
|
+
contentType: model
|
4051
|
+
},
|
4052
|
+
query: {
|
4053
|
+
documentId,
|
4054
|
+
locale: document?.locale,
|
4055
|
+
status: document?.status
|
4056
|
+
}
|
4057
|
+
});
|
4058
|
+
if (!data?.data?.url || error) {
|
4059
|
+
return null;
|
4060
|
+
}
|
4061
|
+
const trackNavigation = () => {
|
4062
|
+
const destinationPathname = pathname.replace(/\/$/, "") + "/preview";
|
4063
|
+
trackUsage("willNavigate", { from: pathname, to: destinationPathname });
|
4064
|
+
};
|
4065
|
+
return {
|
4066
|
+
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
4067
|
+
content: /* @__PURE__ */ jsx(Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsx(
|
4068
|
+
ConditionalTooltip,
|
4069
|
+
{
|
4070
|
+
label: formatMessage({
|
4071
|
+
id: "content-manager.preview.panel.button-disabled-tooltip",
|
4072
|
+
defaultMessage: "Please save to open the preview"
|
4073
|
+
}),
|
4074
|
+
isShown: isModified,
|
4075
|
+
children: /* @__PURE__ */ jsx(
|
4076
|
+
Button,
|
4077
|
+
{
|
4078
|
+
variant: "tertiary",
|
4079
|
+
tag: Link,
|
4080
|
+
to: { pathname: "preview", search: stringify(query, { encode: false }) },
|
4081
|
+
onClick: trackNavigation,
|
4082
|
+
flex: "auto",
|
4083
|
+
disabled: isModified,
|
4084
|
+
children: formatMessage({
|
4085
|
+
id: "content-manager.preview.panel.button",
|
4086
|
+
defaultMessage: "Open preview"
|
4087
|
+
})
|
4088
|
+
}
|
4089
|
+
)
|
4090
|
+
}
|
4091
|
+
) })
|
4092
|
+
};
|
4093
|
+
};
|
4094
|
+
const FEATURE_ID = "preview";
|
4095
|
+
const previewAdmin = {
|
4096
|
+
bootstrap(app) {
|
4097
|
+
if (!window.strapi.future.isEnabled(FEATURE_ID)) {
|
4098
|
+
return;
|
4099
|
+
}
|
4100
|
+
const contentManagerPluginApis = app.getPlugin("content-manager").apis;
|
4101
|
+
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4102
|
+
}
|
4103
|
+
};
|
4006
4104
|
const index = {
|
4007
4105
|
register(app) {
|
4008
4106
|
const cm = new ContentManagerPlugin();
|
@@ -4022,7 +4120,7 @@ const index = {
|
|
4022
4120
|
app.router.addRoute({
|
4023
4121
|
path: "content-manager/*",
|
4024
4122
|
lazy: async () => {
|
4025
|
-
const { Layout } = await import("./layout-
|
4123
|
+
const { Layout } = await import("./layout-qE8qkNH_.mjs");
|
4026
4124
|
return {
|
4027
4125
|
Component: Layout
|
4028
4126
|
};
|
@@ -4035,11 +4133,14 @@ const index = {
|
|
4035
4133
|
if (typeof historyAdmin.bootstrap === "function") {
|
4036
4134
|
historyAdmin.bootstrap(app);
|
4037
4135
|
}
|
4136
|
+
if (typeof previewAdmin.bootstrap === "function") {
|
4137
|
+
previewAdmin.bootstrap(app);
|
4138
|
+
}
|
4038
4139
|
},
|
4039
4140
|
async registerTrads({ locales }) {
|
4040
4141
|
const importedTrads = await Promise.all(
|
4041
4142
|
locales.map((locale) => {
|
4042
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-
|
4143
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-Dtk_ot79.mjs"), "./translations/es.json": () => import("./es-D34tqjMw.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr--pg5jUbt.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-BHqhDq4V.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
4043
4144
|
return {
|
4044
4145
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4045
4146
|
locale
|
@@ -4066,9 +4167,10 @@ export {
|
|
4066
4167
|
HOOKS as H,
|
4067
4168
|
InjectionZone as I,
|
4068
4169
|
useDocument as J,
|
4069
|
-
|
4070
|
-
|
4071
|
-
|
4170
|
+
useGetPreviewUrlQuery as K,
|
4171
|
+
index as L,
|
4172
|
+
useContentManagerContext as M,
|
4173
|
+
useDocumentActions as N,
|
4072
4174
|
Panels as P,
|
4073
4175
|
RelativeTime as R,
|
4074
4176
|
SINGLE_TYPES as S,
|
@@ -4100,4 +4202,4 @@ export {
|
|
4100
4202
|
capitalise as y,
|
4101
4203
|
useUpdateContentTypeConfigurationMutation as z
|
4102
4204
|
};
|
4103
|
-
//# sourceMappingURL=index-
|
4205
|
+
//# sourceMappingURL=index-DLIkNVnQ.mjs.map
|