@strapi/content-manager 0.0.0-next.6ed779c066310248c506ce3d2cdae97f59f700ef → 0.0.0-next.7315bad3dd6542d457c3c837db874e3e6336ae9f
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-B4Nft8f5.mjs → ComponentConfigurationPage-D4J64ny7.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-B4Nft8f5.mjs.map → ComponentConfigurationPage-D4J64ny7.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-6pw-DvAu.js → ComponentConfigurationPage-DHV8IFbd.js} +4 -5
- package/dist/_chunks/{ComponentConfigurationPage-6pw-DvAu.js.map → ComponentConfigurationPage-DHV8IFbd.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-BHOCGzAM.mjs → EditConfigurationPage-DMnf8orh.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BHOCGzAM.mjs.map → EditConfigurationPage-DMnf8orh.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-DXBEGkOc.js → EditConfigurationPage-q76oeVU1.js} +4 -5
- package/dist/_chunks/{EditConfigurationPage-DXBEGkOc.js.map → EditConfigurationPage-q76oeVU1.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-Ck6Duztu.js → EditViewPage-BXoY-ITh.js} +38 -9
- package/dist/_chunks/EditViewPage-BXoY-ITh.js.map +1 -0
- package/dist/_chunks/{EditViewPage-CdRxfy5B.mjs → EditViewPage-COVXj9bh.mjs} +38 -8
- package/dist/_chunks/EditViewPage-COVXj9bh.mjs.map +1 -0
- package/dist/_chunks/{Field-DDSx-gBR.mjs → Field-CcppsFQR.mjs} +63 -63
- package/dist/_chunks/Field-CcppsFQR.mjs.map +1 -0
- package/dist/_chunks/{Field-T3F_jdGo.js → Field-Dj1nOvt8.js} +64 -65
- package/dist/_chunks/Field-Dj1nOvt8.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-DBXQL3w4.mjs → Form-DbWwH0-A.mjs} +3 -3
- package/dist/_chunks/{Form-DBXQL3w4.mjs.map → Form-DbWwH0-A.mjs.map} +1 -1
- package/dist/_chunks/{Form-C-wjP4UH.js → Form-aTchNxab.js} +5 -6
- package/dist/_chunks/{Form-C-wjP4UH.js.map → Form-aTchNxab.js.map} +1 -1
- package/dist/_chunks/{History-DMFKKvIA.js → History-Cs6XM6EU.js} +9 -64
- package/dist/_chunks/History-Cs6XM6EU.js.map +1 -0
- package/dist/_chunks/{History-CynfBe3Q.mjs → History-tU567_hc.mjs} +9 -63
- package/dist/_chunks/History-tU567_hc.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-BDV_ABiG.js → ListConfigurationPage-7LeytuFD.js} +6 -6
- package/dist/_chunks/ListConfigurationPage-7LeytuFD.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-D2_aIJSH.mjs → ListConfigurationPage-DQryo_4i.mjs} +6 -5
- package/dist/_chunks/ListConfigurationPage-DQryo_4i.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-BJq_SQj8.mjs → ListViewPage-B50esy_x.mjs} +63 -51
- package/dist/_chunks/ListViewPage-B50esy_x.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-Z3jPNVn2.js → ListViewPage-CaGBu5H5.js} +64 -53
- package/dist/_chunks/ListViewPage-CaGBu5H5.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-ZvbWHVfG.js → NoContentTypePage-BaBE00IO.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-ZvbWHVfG.js.map → NoContentTypePage-BaBE00IO.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-CEdKqCfY.mjs → NoContentTypePage-CiPP8cLx.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-CEdKqCfY.mjs.map → NoContentTypePage-CiPP8cLx.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BjzbHoxM.mjs → NoPermissionsPage-0-CW106p.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BjzbHoxM.mjs.map → NoPermissionsPage-0-CW106p.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-D9hyWZPp.js → NoPermissionsPage-DQn5cqZz.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-D9hyWZPp.js.map → NoPermissionsPage-DQn5cqZz.js.map} +1 -1
- package/dist/_chunks/Preview-C1dBkhXf.mjs +272 -0
- package/dist/_chunks/Preview-C1dBkhXf.mjs.map +1 -0
- package/dist/_chunks/Preview-DH1h7kJ6.js +290 -0
- package/dist/_chunks/Preview-DH1h7kJ6.js.map +1 -0
- package/dist/_chunks/{Relations-ChkJKzz8.mjs → Relations-Bvne4TvU.mjs} +6 -8
- package/dist/_chunks/{Relations-ChkJKzz8.mjs.map → Relations-Bvne4TvU.mjs.map} +1 -1
- package/dist/_chunks/{Relations-BlhtPLZk.js → Relations-CkECnBOd.js} +7 -10
- package/dist/_chunks/{Relations-BlhtPLZk.js.map → Relations-CkECnBOd.js.map} +1 -1
- package/dist/_chunks/{en-Bdpa50w3.js → en-BK8Xyl5I.js} +11 -3
- package/dist/_chunks/{en-Bdpa50w3.js.map → en-BK8Xyl5I.js.map} +1 -1
- package/dist/_chunks/{en-CZw4xdPY.mjs → en-Dtk_ot79.mjs} +11 -3
- package/dist/_chunks/{en-CZw4xdPY.mjs.map → en-Dtk_ot79.mjs.map} +1 -1
- package/dist/_chunks/hooks-BAaaKPS_.js.map +1 -1
- package/dist/_chunks/{index-Bi51q_DG.js → index-BN1pPa5v.js} +170 -144
- package/dist/_chunks/index-BN1pPa5v.js.map +1 -0
- package/dist/_chunks/{index-C0PXR_tv.mjs → index-ByPZ754U.mjs} +175 -148
- package/dist/_chunks/index-ByPZ754U.mjs.map +1 -0
- package/dist/_chunks/{layout-B5XH5gpH.mjs → layout-CUTOYU8I.mjs} +4 -4
- package/dist/_chunks/{layout-B5XH5gpH.mjs.map → layout-CUTOYU8I.mjs.map} +1 -1
- package/dist/_chunks/{layout-MJxdu163.js → layout-nBPDlXjr.js} +5 -6
- package/dist/_chunks/{layout-MJxdu163.js.map → layout-nBPDlXjr.js.map} +1 -1
- package/dist/_chunks/objects-BcXOv6_9.js.map +1 -1
- package/dist/_chunks/objects-D6yBsdmx.mjs.map +1 -1
- package/dist/_chunks/{relations-lCDy3D3D.js → relations-B6B-b7lI.js} +2 -2
- package/dist/_chunks/{relations-lCDy3D3D.js.map → relations-B6B-b7lI.js.map} +1 -1
- package/dist/_chunks/{relations-D9fqpVRO.mjs → relations-CBc5HYHC.mjs} +2 -2
- package/dist/_chunks/{relations-D9fqpVRO.mjs.map → relations-CBc5HYHC.mjs.map} +1 -1
- 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/content-manager.d.ts +3 -2
- package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +1 -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/pages/Preview.d.ts +11 -0
- package/dist/admin/src/preview/routes.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 +74 -45
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +74 -44
- 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/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/_chunks/EditViewPage-CdRxfy5B.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-Ck6Duztu.js.map +0 -1
- package/dist/_chunks/Field-DDSx-gBR.mjs.map +0 -1
- package/dist/_chunks/Field-T3F_jdGo.js.map +0 -1
- package/dist/_chunks/History-CynfBe3Q.mjs.map +0 -1
- package/dist/_chunks/History-DMFKKvIA.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-BDV_ABiG.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-D2_aIJSH.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-BJq_SQj8.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-Z3jPNVn2.js.map +0 -1
- package/dist/_chunks/index-Bi51q_DG.js.map +0 -1
- package/dist/_chunks/index-C0PXR_tv.mjs.map +0 -1
@@ -1,26 +1,33 @@
|
|
1
|
-
import { More, Cross, WarningCircle, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, ClockCounterClockwise,
|
1
|
+
import { More, Cross, WarningCircle, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, ClockCounterClockwise, Feather } from "@strapi/icons";
|
2
2
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
3
|
-
import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useForm, useTracking, useGuidedTour, BackButton, DescriptionComponentRenderer, useTable, Table
|
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) => {
|
@@ -1663,10 +1666,10 @@ const useDocumentActions = () => {
|
|
1663
1666
|
update
|
1664
1667
|
};
|
1665
1668
|
};
|
1666
|
-
const ProtectedHistoryPage = lazy(
|
1667
|
-
() => import("./History-
|
1669
|
+
const ProtectedHistoryPage = React.lazy(
|
1670
|
+
() => import("./History-tU567_hc.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1668
1671
|
);
|
1669
|
-
const routes$
|
1672
|
+
const routes$2 = [
|
1670
1673
|
{
|
1671
1674
|
path: ":collectionType/:slug/:id/history",
|
1672
1675
|
Component: ProtectedHistoryPage
|
@@ -1676,32 +1679,45 @@ const routes$1 = [
|
|
1676
1679
|
Component: ProtectedHistoryPage
|
1677
1680
|
}
|
1678
1681
|
];
|
1682
|
+
const ProtectedPreviewPage = React.lazy(
|
1683
|
+
() => import("./Preview-C1dBkhXf.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
|
+
];
|
1679
1695
|
const ProtectedEditViewPage = lazy(
|
1680
|
-
() => import("./EditViewPage-
|
1696
|
+
() => import("./EditViewPage-COVXj9bh.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1681
1697
|
);
|
1682
1698
|
const ProtectedListViewPage = lazy(
|
1683
|
-
() => import("./ListViewPage-
|
1699
|
+
() => import("./ListViewPage-B50esy_x.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1684
1700
|
);
|
1685
1701
|
const ProtectedListConfiguration = lazy(
|
1686
|
-
() => import("./ListConfigurationPage-
|
1702
|
+
() => import("./ListConfigurationPage-DQryo_4i.mjs").then((mod) => ({
|
1687
1703
|
default: mod.ProtectedListConfiguration
|
1688
1704
|
}))
|
1689
1705
|
);
|
1690
1706
|
const ProtectedEditConfigurationPage = lazy(
|
1691
|
-
() => import("./EditConfigurationPage-
|
1707
|
+
() => import("./EditConfigurationPage-DMnf8orh.mjs").then((mod) => ({
|
1692
1708
|
default: mod.ProtectedEditConfigurationPage
|
1693
1709
|
}))
|
1694
1710
|
);
|
1695
1711
|
const ProtectedComponentConfigurationPage = lazy(
|
1696
|
-
() => import("./ComponentConfigurationPage-
|
1712
|
+
() => import("./ComponentConfigurationPage-D4J64ny7.mjs").then((mod) => ({
|
1697
1713
|
default: mod.ProtectedComponentConfigurationPage
|
1698
1714
|
}))
|
1699
1715
|
);
|
1700
1716
|
const NoPermissions = lazy(
|
1701
|
-
() => import("./NoPermissionsPage-
|
1717
|
+
() => import("./NoPermissionsPage-0-CW106p.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1702
1718
|
);
|
1703
1719
|
const NoContentType = lazy(
|
1704
|
-
() => import("./NoContentTypePage-
|
1720
|
+
() => import("./NoContentTypePage-CiPP8cLx.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1705
1721
|
);
|
1706
1722
|
const CollectionTypePages = () => {
|
1707
1723
|
const { collectionType } = useParams();
|
@@ -1713,7 +1729,7 @@ const CollectionTypePages = () => {
|
|
1713
1729
|
const CLONE_RELATIVE_PATH = ":collectionType/:slug/clone/:origin";
|
1714
1730
|
const CLONE_PATH = `/content-manager/${CLONE_RELATIVE_PATH}`;
|
1715
1731
|
const LIST_RELATIVE_PATH = ":collectionType/:slug";
|
1716
|
-
const LIST_PATH = `/content-manager
|
1732
|
+
const LIST_PATH = `/content-manager/collection-types/:slug`;
|
1717
1733
|
const routes = [
|
1718
1734
|
{
|
1719
1735
|
path: LIST_RELATIVE_PATH,
|
@@ -1747,6 +1763,7 @@ const routes = [
|
|
1747
1763
|
path: "no-content-types",
|
1748
1764
|
Component: NoContentType
|
1749
1765
|
},
|
1766
|
+
...routes$2,
|
1750
1767
|
...routes$1
|
1751
1768
|
];
|
1752
1769
|
const DocumentActions = ({ actions: actions2 }) => {
|
@@ -1845,6 +1862,11 @@ const DocumentActionButton = (action) => {
|
|
1845
1862
|
) : null
|
1846
1863
|
] });
|
1847
1864
|
};
|
1865
|
+
const MenuItem = styled(Menu.Item)`
|
1866
|
+
&:hover {
|
1867
|
+
background: ${({ theme, isVariantDanger, isDisabled }) => isVariantDanger && !isDisabled ? theme.colors.danger100 : "neutral"};
|
1868
|
+
}
|
1869
|
+
`;
|
1848
1870
|
const DocumentActionsMenu = ({
|
1849
1871
|
actions: actions2,
|
1850
1872
|
children,
|
@@ -1903,48 +1925,32 @@ const DocumentActionsMenu = ({
|
|
1903
1925
|
/* @__PURE__ */ jsxs(Menu.Content, { maxHeight: void 0, popoverPlacement: "bottom-end", children: [
|
1904
1926
|
actions2.map((action) => {
|
1905
1927
|
return /* @__PURE__ */ jsx(
|
1906
|
-
|
1928
|
+
MenuItem,
|
1907
1929
|
{
|
1908
1930
|
disabled: action.disabled,
|
1909
1931
|
onSelect: handleClick(action),
|
1910
1932
|
display: "block",
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
Flex,
|
1933
|
-
{
|
1934
|
-
alignItems: "center",
|
1935
|
-
background: "alternative100",
|
1936
|
-
borderStyle: "solid",
|
1937
|
-
borderColor: "alternative200",
|
1938
|
-
borderWidth: "1px",
|
1939
|
-
height: 5,
|
1940
|
-
paddingLeft: 2,
|
1941
|
-
paddingRight: 2,
|
1942
|
-
hasRadius: true,
|
1943
|
-
color: "alternative600",
|
1944
|
-
children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", fontWeight: "bold", lineHeight: 1, children: formatMessage({ id: "global.new", defaultMessage: "New" }) })
|
1945
|
-
}
|
1946
|
-
)
|
1947
|
-
] })
|
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
|
+
) })
|
1948
1954
|
},
|
1949
1955
|
action.id
|
1950
1956
|
);
|
@@ -2081,6 +2087,7 @@ const PublishAction$1 = ({
|
|
2081
2087
|
const { _unstableFormatValidationErrors: formatValidationErrors } = useAPIErrorHandler();
|
2082
2088
|
const isListView = useMatch(LIST_PATH) !== null;
|
2083
2089
|
const isCloning = useMatch(CLONE_PATH) !== null;
|
2090
|
+
const { id } = useParams();
|
2084
2091
|
const { formatMessage } = useIntl();
|
2085
2092
|
const canPublish = useDocumentRBAC("PublishAction", ({ canPublish: canPublish2 }) => canPublish2);
|
2086
2093
|
const { publish } = useDocumentActions();
|
@@ -2183,10 +2190,12 @@ const PublishAction$1 = ({
|
|
2183
2190
|
transformData(formValues)
|
2184
2191
|
);
|
2185
2192
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2186
|
-
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2193
|
+
if (id === "create") {
|
2194
|
+
navigate({
|
2195
|
+
pathname: `../${collectionType}/${model}/${res.data.documentId}`,
|
2196
|
+
search: rawQuery
|
2197
|
+
});
|
2198
|
+
}
|
2190
2199
|
} else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2191
2200
|
setErrors(formatValidationErrors(res.error));
|
2192
2201
|
}
|
@@ -2239,6 +2248,7 @@ const PublishAction$1 = ({
|
|
2239
2248
|
};
|
2240
2249
|
};
|
2241
2250
|
PublishAction$1.type = "publish";
|
2251
|
+
PublishAction$1.position = "panel";
|
2242
2252
|
const UpdateAction = ({
|
2243
2253
|
activeTab,
|
2244
2254
|
documentId,
|
@@ -2270,7 +2280,7 @@ const UpdateAction = ({
|
|
2270
2280
|
*/
|
2271
2281
|
disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
|
2272
2282
|
label: formatMessage({
|
2273
|
-
id: "
|
2283
|
+
id: "global.save",
|
2274
2284
|
defaultMessage: "Save"
|
2275
2285
|
}),
|
2276
2286
|
onClick: async () => {
|
@@ -2351,6 +2361,7 @@ const UpdateAction = ({
|
|
2351
2361
|
};
|
2352
2362
|
};
|
2353
2363
|
UpdateAction.type = "update";
|
2364
|
+
UpdateAction.position = "panel";
|
2354
2365
|
const UNPUBLISH_DRAFT_OPTIONS = {
|
2355
2366
|
KEEP: "keep",
|
2356
2367
|
DISCARD: "discard"
|
@@ -2473,6 +2484,7 @@ const UnpublishAction$1 = ({
|
|
2473
2484
|
};
|
2474
2485
|
};
|
2475
2486
|
UnpublishAction$1.type = "unpublish";
|
2487
|
+
UnpublishAction$1.position = "panel";
|
2476
2488
|
const DiscardAction = ({
|
2477
2489
|
activeTab,
|
2478
2490
|
documentId,
|
@@ -2523,6 +2535,7 @@ const DiscardAction = ({
|
|
2523
2535
|
};
|
2524
2536
|
};
|
2525
2537
|
DiscardAction.type = "discard";
|
2538
|
+
DiscardAction.position = "panel";
|
2526
2539
|
const DEFAULT_ACTIONS = [PublishAction$1, UpdateAction, UnpublishAction$1, DiscardAction];
|
2527
2540
|
const intervals = ["years", "months", "days", "hours", "minutes", "seconds"];
|
2528
2541
|
const RelativeTime = React.forwardRef(
|
@@ -2535,7 +2548,7 @@ const RelativeTime = React.forwardRef(
|
|
2535
2548
|
});
|
2536
2549
|
const unit = intervals.find((intervalUnit) => {
|
2537
2550
|
return interval[intervalUnit] > 0 && Object.keys(interval).includes(intervalUnit);
|
2538
|
-
});
|
2551
|
+
}) ?? "seconds";
|
2539
2552
|
const relativeTime = isPast(timestamp) ? -interval[unit] : interval[unit];
|
2540
2553
|
const customInterval = customIntervals.find(
|
2541
2554
|
(custom) => interval[custom.unit] < custom.threshold
|
@@ -2569,19 +2582,29 @@ const getDisplayName = ({
|
|
2569
2582
|
return email ?? "";
|
2570
2583
|
};
|
2571
2584
|
const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
2572
|
-
const DocumentStatus = ({ status = "draft", ...restProps }) => {
|
2585
|
+
const DocumentStatus = ({ status = "draft", size = "S", ...restProps }) => {
|
2573
2586
|
const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
|
2574
|
-
|
2587
|
+
const { formatMessage } = useIntl();
|
2588
|
+
return /* @__PURE__ */ jsx(Status, { ...restProps, size, variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
|
2589
|
+
id: `content-manager.containers.List.${status}`,
|
2590
|
+
defaultMessage: capitalise(status)
|
2591
|
+
}) }) });
|
2575
2592
|
};
|
2576
2593
|
const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
|
2577
2594
|
const { formatMessage } = useIntl();
|
2578
2595
|
const isCloning = useMatch(CLONE_PATH) !== null;
|
2596
|
+
const params = useParams();
|
2579
2597
|
const title = isCreating ? formatMessage({
|
2580
2598
|
id: "content-manager.containers.edit.title.new",
|
2581
2599
|
defaultMessage: "Create an entry"
|
2582
2600
|
}) : documentTitle;
|
2583
2601
|
return /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "flex-start", paddingTop: 6, paddingBottom: 4, gap: 2, children: [
|
2584
|
-
/* @__PURE__ */ jsx(
|
2602
|
+
/* @__PURE__ */ jsx(
|
2603
|
+
BackButton,
|
2604
|
+
{
|
2605
|
+
fallback: params.collectionType === SINGLE_TYPES ? void 0 : `../${COLLECTION_TYPES}/${params.slug}`
|
2606
|
+
}
|
2607
|
+
),
|
2585
2608
|
/* @__PURE__ */ jsxs(Flex, { width: "100%", justifyContent: "space-between", gap: "80px", alignItems: "flex-start", children: [
|
2586
2609
|
/* @__PURE__ */ jsx(Typography, { variant: "alpha", tag: "h1", children: title }),
|
2587
2610
|
/* @__PURE__ */ jsx(HeaderToolbar, {})
|
@@ -2632,7 +2655,7 @@ const HeaderToolbar = () => {
|
|
2632
2655
|
meta: isCloning ? void 0 : meta,
|
2633
2656
|
collectionType
|
2634
2657
|
},
|
2635
|
-
descriptions: plugins["content-manager"].apis.getDocumentActions(),
|
2658
|
+
descriptions: plugins["content-manager"].apis.getDocumentActions("header"),
|
2636
2659
|
children: (actions2) => {
|
2637
2660
|
const headerActions = actions2.filter((action) => {
|
2638
2661
|
const positions = Array.isArray(action.position) ? action.position : [action.position];
|
@@ -2840,6 +2863,7 @@ const ConfigureTheViewAction = ({ collectionType, model }) => {
|
|
2840
2863
|
};
|
2841
2864
|
};
|
2842
2865
|
ConfigureTheViewAction.type = "configure-the-view";
|
2866
|
+
ConfigureTheViewAction.position = "header";
|
2843
2867
|
const EditTheModelAction = ({ model }) => {
|
2844
2868
|
const navigate = useNavigate();
|
2845
2869
|
const { formatMessage } = useIntl();
|
@@ -2856,6 +2880,7 @@ const EditTheModelAction = ({ model }) => {
|
|
2856
2880
|
};
|
2857
2881
|
};
|
2858
2882
|
EditTheModelAction.type = "edit-the-model";
|
2883
|
+
EditTheModelAction.position = "header";
|
2859
2884
|
const DeleteAction$1 = ({ documentId, model, collectionType, document }) => {
|
2860
2885
|
const navigate = useNavigate();
|
2861
2886
|
const { formatMessage } = useIntl();
|
@@ -2929,6 +2954,7 @@ const DeleteAction$1 = ({ documentId, model, collectionType, document }) => {
|
|
2929
2954
|
};
|
2930
2955
|
};
|
2931
2956
|
DeleteAction$1.type = "delete";
|
2957
|
+
DeleteAction$1.position = ["header", "table-row"];
|
2932
2958
|
const DEFAULT_HEADER_ACTIONS = [EditTheModelAction, ConfigureTheViewAction, DeleteAction$1];
|
2933
2959
|
const Panels = () => {
|
2934
2960
|
const isCloning = useMatch(CLONE_PATH) !== null;
|
@@ -2991,7 +3017,7 @@ const ActionsPanelContent = () => {
|
|
2991
3017
|
DescriptionComponentRenderer,
|
2992
3018
|
{
|
2993
3019
|
props,
|
2994
|
-
descriptions: plugins["content-manager"].apis.getDocumentActions(),
|
3020
|
+
descriptions: plugins["content-manager"].apis.getDocumentActions("panel"),
|
2995
3021
|
children: (actions2) => /* @__PURE__ */ jsx(DocumentActions, { actions: actions2 })
|
2996
3022
|
}
|
2997
3023
|
),
|
@@ -3268,18 +3294,10 @@ const SelectedEntriesTableContent = ({
|
|
3268
3294
|
search: row.locale && `?plugins[i18n][locale]=${row.locale}`
|
3269
3295
|
},
|
3270
3296
|
state: { from: pathname },
|
3271
|
-
label: formatMessage(
|
3272
|
-
|
3273
|
-
|
3274
|
-
|
3275
|
-
{
|
3276
|
-
id: "content-manager.components.ListViewHelperPluginTable.row-line",
|
3277
|
-
defaultMessage: "item line {number}"
|
3278
|
-
},
|
3279
|
-
{ number: index2 + 1 }
|
3280
|
-
)
|
3281
|
-
}
|
3282
|
-
),
|
3297
|
+
label: formatMessage({
|
3298
|
+
id: "content-manager.bulk-publish.edit",
|
3299
|
+
defaultMessage: "Edit"
|
3300
|
+
}),
|
3283
3301
|
target: "_blank",
|
3284
3302
|
marginLeft: "auto",
|
3285
3303
|
variant: "ghost",
|
@@ -3453,8 +3471,7 @@ const PublishAction = ({ documents, model }) => {
|
|
3453
3471
|
const refetchList = () => {
|
3454
3472
|
contentManagerApi.util.invalidateTags([{ type: "Document", id: `${model}_LIST` }]);
|
3455
3473
|
};
|
3456
|
-
if (!showPublishButton)
|
3457
|
-
return null;
|
3474
|
+
if (!showPublishButton) return null;
|
3458
3475
|
return {
|
3459
3476
|
actionType: "publish",
|
3460
3477
|
variant: "tertiary",
|
@@ -3522,8 +3539,7 @@ const DeleteAction = ({ documents, model }) => {
|
|
3522
3539
|
selectRow([]);
|
3523
3540
|
}
|
3524
3541
|
};
|
3525
|
-
if (!hasDeletePermission)
|
3526
|
-
return null;
|
3542
|
+
if (!hasDeletePermission) return null;
|
3527
3543
|
return {
|
3528
3544
|
variant: "danger-light",
|
3529
3545
|
label: formatMessage({ id: "global.delete", defaultMessage: "Delete" }),
|
@@ -3572,8 +3588,7 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3572
3588
|
}
|
3573
3589
|
};
|
3574
3590
|
const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
|
3575
|
-
if (!showUnpublishButton)
|
3576
|
-
return null;
|
3591
|
+
if (!showUnpublishButton) return null;
|
3577
3592
|
return {
|
3578
3593
|
variant: "tertiary",
|
3579
3594
|
label: formatMessage({ id: "app.utils.unpublish", defaultMessage: "Unpublish" }),
|
@@ -3678,7 +3693,7 @@ const TableActions = ({ document }) => {
|
|
3678
3693
|
DescriptionComponentRenderer,
|
3679
3694
|
{
|
3680
3695
|
props,
|
3681
|
-
descriptions: plugins["content-manager"].apis.getDocumentActions().filter((action) => action.name !== "PublishAction"),
|
3696
|
+
descriptions: plugins["content-manager"].apis.getDocumentActions("table-row").filter((action) => action.name !== "PublishAction"),
|
3682
3697
|
children: (actions2) => {
|
3683
3698
|
const tableRowActions = actions2.filter((action) => {
|
3684
3699
|
const positions = Array.isArray(action.position) ? action.position : [action.position];
|
@@ -3737,6 +3752,7 @@ const EditAction = ({ documentId }) => {
|
|
3737
3752
|
};
|
3738
3753
|
};
|
3739
3754
|
EditAction.type = "edit";
|
3755
|
+
EditAction.position = "table-row";
|
3740
3756
|
const StyledPencil = styled(Pencil)`
|
3741
3757
|
path {
|
3742
3758
|
fill: currentColor;
|
@@ -3813,6 +3829,7 @@ const CloneAction = ({ model, documentId }) => {
|
|
3813
3829
|
};
|
3814
3830
|
};
|
3815
3831
|
CloneAction.type = "clone";
|
3832
|
+
CloneAction.position = "table-row";
|
3816
3833
|
const StyledDuplicate = styled(Duplicate)`
|
3817
3834
|
path {
|
3818
3835
|
fill: currentColor;
|
@@ -3899,7 +3916,14 @@ class ContentManagerPlugin {
|
|
3899
3916
|
addDocumentHeaderAction: this.addDocumentHeaderAction.bind(this),
|
3900
3917
|
addEditViewSidePanel: this.addEditViewSidePanel.bind(this),
|
3901
3918
|
getBulkActions: () => this.bulkActions,
|
3902
|
-
getDocumentActions: () =>
|
3919
|
+
getDocumentActions: (position) => {
|
3920
|
+
if (position) {
|
3921
|
+
return this.documentActions.filter(
|
3922
|
+
(action) => action.position == void 0 || [action.position].flat().includes(position)
|
3923
|
+
);
|
3924
|
+
}
|
3925
|
+
return this.documentActions;
|
3926
|
+
},
|
3903
3927
|
getEditViewSidePanels: () => this.editViewSidePanels,
|
3904
3928
|
getHeaderActions: () => this.headerActions
|
3905
3929
|
}
|
@@ -3909,10 +3933,8 @@ class ContentManagerPlugin {
|
|
3909
3933
|
const getPrintableType = (value) => {
|
3910
3934
|
const nativeType = typeof value;
|
3911
3935
|
if (nativeType === "object") {
|
3912
|
-
if (value === null)
|
3913
|
-
|
3914
|
-
if (Array.isArray(value))
|
3915
|
-
return "array";
|
3936
|
+
if (value === null) return "null";
|
3937
|
+
if (Array.isArray(value)) return "array";
|
3916
3938
|
if (value instanceof Object && value.constructor.name !== "Object") {
|
3917
3939
|
return value.constructor.name;
|
3918
3940
|
}
|
@@ -3923,17 +3945,27 @@ const HistoryAction = ({ model, document }) => {
|
|
3923
3945
|
const { formatMessage } = useIntl();
|
3924
3946
|
const [{ query }] = useQueryParams();
|
3925
3947
|
const navigate = useNavigate();
|
3948
|
+
const { trackUsage } = useTracking();
|
3949
|
+
const { pathname } = useLocation();
|
3926
3950
|
const pluginsQueryParams = stringify({ plugins: query.plugins }, { encode: false });
|
3927
3951
|
if (!window.strapi.features.isEnabled("cms-content-history")) {
|
3928
3952
|
return null;
|
3929
3953
|
}
|
3954
|
+
const handleOnClick = () => {
|
3955
|
+
const destination = { pathname: "history", search: pluginsQueryParams };
|
3956
|
+
trackUsage("willNavigate", {
|
3957
|
+
from: pathname,
|
3958
|
+
to: `${pathname}/${destination.pathname}`
|
3959
|
+
});
|
3960
|
+
navigate(destination);
|
3961
|
+
};
|
3930
3962
|
return {
|
3931
3963
|
icon: /* @__PURE__ */ jsx(ClockCounterClockwise, {}),
|
3932
3964
|
label: formatMessage({
|
3933
3965
|
id: "content-manager.history.document-action",
|
3934
3966
|
defaultMessage: "Content History"
|
3935
3967
|
}),
|
3936
|
-
onClick:
|
3968
|
+
onClick: handleOnClick,
|
3937
3969
|
disabled: (
|
3938
3970
|
/**
|
3939
3971
|
* The user is creating a new document.
|
@@ -3955,6 +3987,7 @@ const HistoryAction = ({ model, document }) => {
|
|
3955
3987
|
};
|
3956
3988
|
};
|
3957
3989
|
HistoryAction.type = "history";
|
3990
|
+
HistoryAction.position = "header";
|
3958
3991
|
const historyAdmin = {
|
3959
3992
|
bootstrap(app) {
|
3960
3993
|
const { addDocumentAction } = app.getPlugin("content-manager").apis;
|
@@ -4017,11 +4050,18 @@ const previewApi = contentManagerApi.injectEndpoints({
|
|
4017
4050
|
})
|
4018
4051
|
});
|
4019
4052
|
const { useGetPreviewUrlQuery } = previewApi;
|
4053
|
+
const ConditionalTooltip = ({ isShown, label, children }) => {
|
4054
|
+
if (isShown) {
|
4055
|
+
return /* @__PURE__ */ jsx(Tooltip, { label, children });
|
4056
|
+
}
|
4057
|
+
return children;
|
4058
|
+
};
|
4020
4059
|
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4021
4060
|
const { formatMessage } = useIntl();
|
4022
|
-
const { toggleNotification } = useNotification();
|
4023
|
-
const { copy } = useClipboard();
|
4024
4061
|
const { trackUsage } = useTracking();
|
4062
|
+
const { pathname } = useLocation();
|
4063
|
+
const [{ query }] = useQueryParams();
|
4064
|
+
const isModified = useForm("PreviewSidePanel", (state) => state.modified);
|
4025
4065
|
const { data, error } = useGetPreviewUrlQuery({
|
4026
4066
|
params: {
|
4027
4067
|
contentType: model
|
@@ -4035,51 +4075,37 @@ const PreviewSidePanel = ({ model, documentId, document }) => {
|
|
4035
4075
|
if (!data?.data?.url || error) {
|
4036
4076
|
return null;
|
4037
4077
|
}
|
4038
|
-
const
|
4039
|
-
|
4040
|
-
|
4041
|
-
toggleNotification({
|
4042
|
-
message: formatMessage({
|
4043
|
-
id: "content-manager.preview.copy.success",
|
4044
|
-
defaultMessage: "Copied preview link"
|
4045
|
-
}),
|
4046
|
-
type: "success"
|
4047
|
-
});
|
4048
|
-
};
|
4049
|
-
const handleClick = () => {
|
4050
|
-
trackUsage("willOpenPreview");
|
4078
|
+
const trackNavigation = () => {
|
4079
|
+
const destinationPathname = pathname.replace(/\/$/, "") + "/preview";
|
4080
|
+
trackUsage("willNavigate", { from: pathname, to: destinationPathname });
|
4051
4081
|
};
|
4052
4082
|
return {
|
4053
4083
|
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
4054
|
-
content: /* @__PURE__ */
|
4055
|
-
|
4056
|
-
|
4057
|
-
{
|
4058
|
-
|
4059
|
-
|
4060
|
-
|
4061
|
-
|
4062
|
-
|
4063
|
-
|
4064
|
-
|
4065
|
-
|
4066
|
-
|
4067
|
-
|
4068
|
-
|
4069
|
-
|
4070
|
-
|
4071
|
-
|
4072
|
-
|
4073
|
-
|
4074
|
-
|
4075
|
-
|
4076
|
-
|
4077
|
-
|
4078
|
-
|
4079
|
-
children: /* @__PURE__ */ jsx(Link$1, {})
|
4080
|
-
}
|
4081
|
-
)
|
4082
|
-
] })
|
4084
|
+
content: /* @__PURE__ */ jsx(Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsx(
|
4085
|
+
ConditionalTooltip,
|
4086
|
+
{
|
4087
|
+
label: formatMessage({
|
4088
|
+
id: "content-manager.preview.panel.button-disabled-tooltip",
|
4089
|
+
defaultMessage: "Please save to open the preview"
|
4090
|
+
}),
|
4091
|
+
isShown: isModified,
|
4092
|
+
children: /* @__PURE__ */ jsx(
|
4093
|
+
Button,
|
4094
|
+
{
|
4095
|
+
variant: "tertiary",
|
4096
|
+
tag: Link,
|
4097
|
+
to: { pathname: "preview", search: stringify(query, { encode: false }) },
|
4098
|
+
onClick: trackNavigation,
|
4099
|
+
flex: "auto",
|
4100
|
+
disabled: isModified,
|
4101
|
+
children: formatMessage({
|
4102
|
+
id: "content-manager.preview.panel.button",
|
4103
|
+
defaultMessage: "Open preview"
|
4104
|
+
})
|
4105
|
+
}
|
4106
|
+
)
|
4107
|
+
}
|
4108
|
+
) })
|
4083
4109
|
};
|
4084
4110
|
};
|
4085
4111
|
const FEATURE_ID = "preview";
|
@@ -4111,7 +4137,7 @@ const index = {
|
|
4111
4137
|
app.router.addRoute({
|
4112
4138
|
path: "content-manager/*",
|
4113
4139
|
lazy: async () => {
|
4114
|
-
const { Layout } = await import("./layout-
|
4140
|
+
const { Layout } = await import("./layout-CUTOYU8I.mjs");
|
4115
4141
|
return {
|
4116
4142
|
Component: Layout
|
4117
4143
|
};
|
@@ -4131,7 +4157,7 @@ const index = {
|
|
4131
4157
|
async registerTrads({ locales }) {
|
4132
4158
|
const importedTrads = await Promise.all(
|
4133
4159
|
locales.map((locale) => {
|
4134
|
-
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-
|
4160
|
+
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 }) => {
|
4135
4161
|
return {
|
4136
4162
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4137
4163
|
locale
|
@@ -4158,9 +4184,10 @@ export {
|
|
4158
4184
|
HOOKS as H,
|
4159
4185
|
InjectionZone as I,
|
4160
4186
|
useDocument as J,
|
4161
|
-
|
4162
|
-
|
4163
|
-
|
4187
|
+
useGetPreviewUrlQuery as K,
|
4188
|
+
index as L,
|
4189
|
+
useContentManagerContext as M,
|
4190
|
+
useDocumentActions as N,
|
4164
4191
|
Panels as P,
|
4165
4192
|
RelativeTime as R,
|
4166
4193
|
SINGLE_TYPES as S,
|
@@ -4192,4 +4219,4 @@ export {
|
|
4192
4219
|
capitalise as y,
|
4193
4220
|
useUpdateContentTypeConfigurationMutation as z
|
4194
4221
|
};
|
4195
|
-
//# sourceMappingURL=index-
|
4222
|
+
//# sourceMappingURL=index-ByPZ754U.mjs.map
|