@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
@@ -7,16 +7,15 @@ 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) {
|
18
|
-
if (e && e.__esModule)
|
19
|
-
return e;
|
18
|
+
if (e && e.__esModule) return e;
|
20
19
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
21
20
|
if (e) {
|
22
21
|
for (const k in e) {
|
@@ -36,13 +35,20 @@ const React__namespace = /* @__PURE__ */ _interopNamespace(React);
|
|
36
35
|
const mapValues__default = /* @__PURE__ */ _interopDefault(mapValues);
|
37
36
|
const yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
|
38
37
|
const pipe__default = /* @__PURE__ */ _interopDefault(pipe);
|
39
|
-
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
38
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
40
39
|
const v = glob[path];
|
41
40
|
if (v) {
|
42
41
|
return typeof v === "function" ? v() : Promise.resolve(v);
|
43
42
|
}
|
44
43
|
return new Promise((_, reject) => {
|
45
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
44
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
45
|
+
reject.bind(
|
46
|
+
null,
|
47
|
+
new Error(
|
48
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
49
|
+
)
|
50
|
+
)
|
51
|
+
);
|
46
52
|
});
|
47
53
|
};
|
48
54
|
const PLUGIN_ID = "content-manager";
|
@@ -296,7 +302,7 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
296
302
|
url: `/content-manager/collection-types/${model}`,
|
297
303
|
method: "GET",
|
298
304
|
config: {
|
299
|
-
params
|
305
|
+
params: qs.stringify(params, { encode: true })
|
300
306
|
}
|
301
307
|
}),
|
302
308
|
providesTags: (result, _error, arg) => {
|
@@ -475,8 +481,7 @@ const {
|
|
475
481
|
useUnpublishManyDocumentsMutation
|
476
482
|
} = documentApi;
|
477
483
|
const buildValidParams = (query) => {
|
478
|
-
if (!query)
|
479
|
-
return query;
|
484
|
+
if (!query) return query;
|
480
485
|
const { plugins: _, ...validQueryParams } = {
|
481
486
|
...query,
|
482
487
|
...Object.values(query?.plugins ?? {}).reduce(
|
@@ -484,9 +489,6 @@ const buildValidParams = (query) => {
|
|
484
489
|
{}
|
485
490
|
)
|
486
491
|
};
|
487
|
-
if ("_q" in validQueryParams) {
|
488
|
-
validQueryParams._q = encodeURIComponent(validQueryParams._q);
|
489
|
-
}
|
490
492
|
return validQueryParams;
|
491
493
|
};
|
492
494
|
const isBaseQueryError = (error) => {
|
@@ -1685,10 +1687,10 @@ const useDocumentActions = () => {
|
|
1685
1687
|
update
|
1686
1688
|
};
|
1687
1689
|
};
|
1688
|
-
const ProtectedHistoryPage =
|
1689
|
-
() => Promise.resolve().then(() => require("./History-
|
1690
|
+
const ProtectedHistoryPage = React__namespace.lazy(
|
1691
|
+
() => Promise.resolve().then(() => require("./History-Cs6XM6EU.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1690
1692
|
);
|
1691
|
-
const routes$
|
1693
|
+
const routes$2 = [
|
1692
1694
|
{
|
1693
1695
|
path: ":collectionType/:slug/:id/history",
|
1694
1696
|
Component: ProtectedHistoryPage
|
@@ -1698,32 +1700,45 @@ const routes$1 = [
|
|
1698
1700
|
Component: ProtectedHistoryPage
|
1699
1701
|
}
|
1700
1702
|
];
|
1703
|
+
const ProtectedPreviewPage = React__namespace.lazy(
|
1704
|
+
() => Promise.resolve().then(() => require("./Preview-DH1h7kJ6.js")).then((mod) => ({ default: mod.ProtectedPreviewPage }))
|
1705
|
+
);
|
1706
|
+
const routes$1 = [
|
1707
|
+
{
|
1708
|
+
path: ":collectionType/:slug/:id/preview",
|
1709
|
+
Component: ProtectedPreviewPage
|
1710
|
+
},
|
1711
|
+
{
|
1712
|
+
path: ":collectionType/:slug/preview",
|
1713
|
+
Component: ProtectedPreviewPage
|
1714
|
+
}
|
1715
|
+
];
|
1701
1716
|
const ProtectedEditViewPage = React.lazy(
|
1702
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1717
|
+
() => Promise.resolve().then(() => require("./EditViewPage-BXoY-ITh.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1703
1718
|
);
|
1704
1719
|
const ProtectedListViewPage = React.lazy(
|
1705
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1720
|
+
() => Promise.resolve().then(() => require("./ListViewPage-CaGBu5H5.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1706
1721
|
);
|
1707
1722
|
const ProtectedListConfiguration = React.lazy(
|
1708
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1723
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-7LeytuFD.js")).then((mod) => ({
|
1709
1724
|
default: mod.ProtectedListConfiguration
|
1710
1725
|
}))
|
1711
1726
|
);
|
1712
1727
|
const ProtectedEditConfigurationPage = React.lazy(
|
1713
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1728
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-q76oeVU1.js")).then((mod) => ({
|
1714
1729
|
default: mod.ProtectedEditConfigurationPage
|
1715
1730
|
}))
|
1716
1731
|
);
|
1717
1732
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1718
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1733
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-DHV8IFbd.js")).then((mod) => ({
|
1719
1734
|
default: mod.ProtectedComponentConfigurationPage
|
1720
1735
|
}))
|
1721
1736
|
);
|
1722
1737
|
const NoPermissions = React.lazy(
|
1723
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1738
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-DQn5cqZz.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1724
1739
|
);
|
1725
1740
|
const NoContentType = React.lazy(
|
1726
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1741
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-BaBE00IO.js")).then((mod) => ({ default: mod.NoContentType }))
|
1727
1742
|
);
|
1728
1743
|
const CollectionTypePages = () => {
|
1729
1744
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1735,7 +1750,7 @@ const CollectionTypePages = () => {
|
|
1735
1750
|
const CLONE_RELATIVE_PATH = ":collectionType/:slug/clone/:origin";
|
1736
1751
|
const CLONE_PATH = `/content-manager/${CLONE_RELATIVE_PATH}`;
|
1737
1752
|
const LIST_RELATIVE_PATH = ":collectionType/:slug";
|
1738
|
-
const LIST_PATH = `/content-manager
|
1753
|
+
const LIST_PATH = `/content-manager/collection-types/:slug`;
|
1739
1754
|
const routes = [
|
1740
1755
|
{
|
1741
1756
|
path: LIST_RELATIVE_PATH,
|
@@ -1769,6 +1784,7 @@ const routes = [
|
|
1769
1784
|
path: "no-content-types",
|
1770
1785
|
Component: NoContentType
|
1771
1786
|
},
|
1787
|
+
...routes$2,
|
1772
1788
|
...routes$1
|
1773
1789
|
];
|
1774
1790
|
const DocumentActions = ({ actions: actions2 }) => {
|
@@ -1867,6 +1883,11 @@ const DocumentActionButton = (action) => {
|
|
1867
1883
|
) : null
|
1868
1884
|
] });
|
1869
1885
|
};
|
1886
|
+
const MenuItem = styledComponents.styled(designSystem.Menu.Item)`
|
1887
|
+
&:hover {
|
1888
|
+
background: ${({ theme, isVariantDanger, isDisabled }) => isVariantDanger && !isDisabled ? theme.colors.danger100 : "neutral"};
|
1889
|
+
}
|
1890
|
+
`;
|
1870
1891
|
const DocumentActionsMenu = ({
|
1871
1892
|
actions: actions2,
|
1872
1893
|
children,
|
@@ -1925,48 +1946,32 @@ const DocumentActionsMenu = ({
|
|
1925
1946
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Content, { maxHeight: void 0, popoverPlacement: "bottom-end", children: [
|
1926
1947
|
actions2.map((action) => {
|
1927
1948
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
1928
|
-
|
1949
|
+
MenuItem,
|
1929
1950
|
{
|
1930
1951
|
disabled: action.disabled,
|
1931
1952
|
onSelect: handleClick(action),
|
1932
1953
|
display: "block",
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
designSystem.Flex,
|
1955
|
-
{
|
1956
|
-
alignItems: "center",
|
1957
|
-
background: "alternative100",
|
1958
|
-
borderStyle: "solid",
|
1959
|
-
borderColor: "alternative200",
|
1960
|
-
borderWidth: "1px",
|
1961
|
-
height: 5,
|
1962
|
-
paddingLeft: 2,
|
1963
|
-
paddingRight: 2,
|
1964
|
-
hasRadius: true,
|
1965
|
-
color: "alternative600",
|
1966
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", fontWeight: "bold", lineHeight: 1, children: formatMessage({ id: "global.new", defaultMessage: "New" }) })
|
1967
|
-
}
|
1968
|
-
)
|
1969
|
-
] })
|
1954
|
+
isVariantDanger: action.variant === "danger",
|
1955
|
+
isDisabled: action.disabled,
|
1956
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
1957
|
+
designSystem.Flex,
|
1958
|
+
{
|
1959
|
+
color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
|
1960
|
+
gap: 2,
|
1961
|
+
tag: "span",
|
1962
|
+
children: [
|
1963
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
1964
|
+
designSystem.Flex,
|
1965
|
+
{
|
1966
|
+
tag: "span",
|
1967
|
+
color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
|
1968
|
+
children: action.icon
|
1969
|
+
}
|
1970
|
+
),
|
1971
|
+
action.label
|
1972
|
+
]
|
1973
|
+
}
|
1974
|
+
) })
|
1970
1975
|
},
|
1971
1976
|
action.id
|
1972
1977
|
);
|
@@ -2103,6 +2108,7 @@ const PublishAction$1 = ({
|
|
2103
2108
|
const { _unstableFormatValidationErrors: formatValidationErrors } = strapiAdmin.useAPIErrorHandler();
|
2104
2109
|
const isListView = reactRouterDom.useMatch(LIST_PATH) !== null;
|
2105
2110
|
const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
|
2111
|
+
const { id } = reactRouterDom.useParams();
|
2106
2112
|
const { formatMessage } = reactIntl.useIntl();
|
2107
2113
|
const canPublish = useDocumentRBAC("PublishAction", ({ canPublish: canPublish2 }) => canPublish2);
|
2108
2114
|
const { publish } = useDocumentActions();
|
@@ -2205,10 +2211,12 @@ const PublishAction$1 = ({
|
|
2205
2211
|
transformData(formValues)
|
2206
2212
|
);
|
2207
2213
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
2214
|
+
if (id === "create") {
|
2215
|
+
navigate({
|
2216
|
+
pathname: `../${collectionType}/${model}/${res.data.documentId}`,
|
2217
|
+
search: rawQuery
|
2218
|
+
});
|
2219
|
+
}
|
2212
2220
|
} else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2213
2221
|
setErrors(formatValidationErrors(res.error));
|
2214
2222
|
}
|
@@ -2261,6 +2269,7 @@ const PublishAction$1 = ({
|
|
2261
2269
|
};
|
2262
2270
|
};
|
2263
2271
|
PublishAction$1.type = "publish";
|
2272
|
+
PublishAction$1.position = "panel";
|
2264
2273
|
const UpdateAction = ({
|
2265
2274
|
activeTab,
|
2266
2275
|
documentId,
|
@@ -2292,7 +2301,7 @@ const UpdateAction = ({
|
|
2292
2301
|
*/
|
2293
2302
|
disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
|
2294
2303
|
label: formatMessage({
|
2295
|
-
id: "
|
2304
|
+
id: "global.save",
|
2296
2305
|
defaultMessage: "Save"
|
2297
2306
|
}),
|
2298
2307
|
onClick: async () => {
|
@@ -2373,6 +2382,7 @@ const UpdateAction = ({
|
|
2373
2382
|
};
|
2374
2383
|
};
|
2375
2384
|
UpdateAction.type = "update";
|
2385
|
+
UpdateAction.position = "panel";
|
2376
2386
|
const UNPUBLISH_DRAFT_OPTIONS = {
|
2377
2387
|
KEEP: "keep",
|
2378
2388
|
DISCARD: "discard"
|
@@ -2495,6 +2505,7 @@ const UnpublishAction$1 = ({
|
|
2495
2505
|
};
|
2496
2506
|
};
|
2497
2507
|
UnpublishAction$1.type = "unpublish";
|
2508
|
+
UnpublishAction$1.position = "panel";
|
2498
2509
|
const DiscardAction = ({
|
2499
2510
|
activeTab,
|
2500
2511
|
documentId,
|
@@ -2545,6 +2556,7 @@ const DiscardAction = ({
|
|
2545
2556
|
};
|
2546
2557
|
};
|
2547
2558
|
DiscardAction.type = "discard";
|
2559
|
+
DiscardAction.position = "panel";
|
2548
2560
|
const DEFAULT_ACTIONS = [PublishAction$1, UpdateAction, UnpublishAction$1, DiscardAction];
|
2549
2561
|
const intervals = ["years", "months", "days", "hours", "minutes", "seconds"];
|
2550
2562
|
const RelativeTime = React__namespace.forwardRef(
|
@@ -2557,7 +2569,7 @@ const RelativeTime = React__namespace.forwardRef(
|
|
2557
2569
|
});
|
2558
2570
|
const unit = intervals.find((intervalUnit) => {
|
2559
2571
|
return interval[intervalUnit] > 0 && Object.keys(interval).includes(intervalUnit);
|
2560
|
-
});
|
2572
|
+
}) ?? "seconds";
|
2561
2573
|
const relativeTime = dateFns.isPast(timestamp) ? -interval[unit] : interval[unit];
|
2562
2574
|
const customInterval = customIntervals.find(
|
2563
2575
|
(custom) => interval[custom.unit] < custom.threshold
|
@@ -2591,19 +2603,29 @@ const getDisplayName = ({
|
|
2591
2603
|
return email ?? "";
|
2592
2604
|
};
|
2593
2605
|
const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
2594
|
-
const DocumentStatus = ({ status = "draft", ...restProps }) => {
|
2606
|
+
const DocumentStatus = ({ status = "draft", size = "S", ...restProps }) => {
|
2595
2607
|
const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
|
2596
|
-
|
2608
|
+
const { formatMessage } = reactIntl.useIntl();
|
2609
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, size, variant: statusVariant, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
|
2610
|
+
id: `content-manager.containers.List.${status}`,
|
2611
|
+
defaultMessage: capitalise(status)
|
2612
|
+
}) }) });
|
2597
2613
|
};
|
2598
2614
|
const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
|
2599
2615
|
const { formatMessage } = reactIntl.useIntl();
|
2600
2616
|
const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
|
2617
|
+
const params = reactRouterDom.useParams();
|
2601
2618
|
const title = isCreating ? formatMessage({
|
2602
2619
|
id: "content-manager.containers.edit.title.new",
|
2603
2620
|
defaultMessage: "Create an entry"
|
2604
2621
|
}) : documentTitle;
|
2605
2622
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "flex-start", paddingTop: 6, paddingBottom: 4, gap: 2, children: [
|
2606
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
2623
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
2624
|
+
strapiAdmin.BackButton,
|
2625
|
+
{
|
2626
|
+
fallback: params.collectionType === SINGLE_TYPES ? void 0 : `../${COLLECTION_TYPES}/${params.slug}`
|
2627
|
+
}
|
2628
|
+
),
|
2607
2629
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { width: "100%", justifyContent: "space-between", gap: "80px", alignItems: "flex-start", children: [
|
2608
2630
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "alpha", tag: "h1", children: title }),
|
2609
2631
|
/* @__PURE__ */ jsxRuntime.jsx(HeaderToolbar, {})
|
@@ -2654,7 +2676,7 @@ const HeaderToolbar = () => {
|
|
2654
2676
|
meta: isCloning ? void 0 : meta,
|
2655
2677
|
collectionType
|
2656
2678
|
},
|
2657
|
-
descriptions: plugins["content-manager"].apis.getDocumentActions(),
|
2679
|
+
descriptions: plugins["content-manager"].apis.getDocumentActions("header"),
|
2658
2680
|
children: (actions2) => {
|
2659
2681
|
const headerActions = actions2.filter((action) => {
|
2660
2682
|
const positions = Array.isArray(action.position) ? action.position : [action.position];
|
@@ -2862,6 +2884,7 @@ const ConfigureTheViewAction = ({ collectionType, model }) => {
|
|
2862
2884
|
};
|
2863
2885
|
};
|
2864
2886
|
ConfigureTheViewAction.type = "configure-the-view";
|
2887
|
+
ConfigureTheViewAction.position = "header";
|
2865
2888
|
const EditTheModelAction = ({ model }) => {
|
2866
2889
|
const navigate = reactRouterDom.useNavigate();
|
2867
2890
|
const { formatMessage } = reactIntl.useIntl();
|
@@ -2878,6 +2901,7 @@ const EditTheModelAction = ({ model }) => {
|
|
2878
2901
|
};
|
2879
2902
|
};
|
2880
2903
|
EditTheModelAction.type = "edit-the-model";
|
2904
|
+
EditTheModelAction.position = "header";
|
2881
2905
|
const DeleteAction$1 = ({ documentId, model, collectionType, document }) => {
|
2882
2906
|
const navigate = reactRouterDom.useNavigate();
|
2883
2907
|
const { formatMessage } = reactIntl.useIntl();
|
@@ -2951,6 +2975,7 @@ const DeleteAction$1 = ({ documentId, model, collectionType, document }) => {
|
|
2951
2975
|
};
|
2952
2976
|
};
|
2953
2977
|
DeleteAction$1.type = "delete";
|
2978
|
+
DeleteAction$1.position = ["header", "table-row"];
|
2954
2979
|
const DEFAULT_HEADER_ACTIONS = [EditTheModelAction, ConfigureTheViewAction, DeleteAction$1];
|
2955
2980
|
const Panels = () => {
|
2956
2981
|
const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
|
@@ -3013,7 +3038,7 @@ const ActionsPanelContent = () => {
|
|
3013
3038
|
strapiAdmin.DescriptionComponentRenderer,
|
3014
3039
|
{
|
3015
3040
|
props,
|
3016
|
-
descriptions: plugins["content-manager"].apis.getDocumentActions(),
|
3041
|
+
descriptions: plugins["content-manager"].apis.getDocumentActions("panel"),
|
3017
3042
|
children: (actions2) => /* @__PURE__ */ jsxRuntime.jsx(DocumentActions, { actions: actions2 })
|
3018
3043
|
}
|
3019
3044
|
),
|
@@ -3290,18 +3315,10 @@ const SelectedEntriesTableContent = ({
|
|
3290
3315
|
search: row.locale && `?plugins[i18n][locale]=${row.locale}`
|
3291
3316
|
},
|
3292
3317
|
state: { from: pathname },
|
3293
|
-
label: formatMessage(
|
3294
|
-
|
3295
|
-
|
3296
|
-
|
3297
|
-
{
|
3298
|
-
id: "content-manager.components.ListViewHelperPluginTable.row-line",
|
3299
|
-
defaultMessage: "item line {number}"
|
3300
|
-
},
|
3301
|
-
{ number: index2 + 1 }
|
3302
|
-
)
|
3303
|
-
}
|
3304
|
-
),
|
3318
|
+
label: formatMessage({
|
3319
|
+
id: "content-manager.bulk-publish.edit",
|
3320
|
+
defaultMessage: "Edit"
|
3321
|
+
}),
|
3305
3322
|
target: "_blank",
|
3306
3323
|
marginLeft: "auto",
|
3307
3324
|
variant: "ghost",
|
@@ -3475,8 +3492,7 @@ const PublishAction = ({ documents, model }) => {
|
|
3475
3492
|
const refetchList = () => {
|
3476
3493
|
contentManagerApi.util.invalidateTags([{ type: "Document", id: `${model}_LIST` }]);
|
3477
3494
|
};
|
3478
|
-
if (!showPublishButton)
|
3479
|
-
return null;
|
3495
|
+
if (!showPublishButton) return null;
|
3480
3496
|
return {
|
3481
3497
|
actionType: "publish",
|
3482
3498
|
variant: "tertiary",
|
@@ -3544,8 +3560,7 @@ const DeleteAction = ({ documents, model }) => {
|
|
3544
3560
|
selectRow([]);
|
3545
3561
|
}
|
3546
3562
|
};
|
3547
|
-
if (!hasDeletePermission)
|
3548
|
-
return null;
|
3563
|
+
if (!hasDeletePermission) return null;
|
3549
3564
|
return {
|
3550
3565
|
variant: "danger-light",
|
3551
3566
|
label: formatMessage({ id: "global.delete", defaultMessage: "Delete" }),
|
@@ -3594,8 +3609,7 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3594
3609
|
}
|
3595
3610
|
};
|
3596
3611
|
const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
|
3597
|
-
if (!showUnpublishButton)
|
3598
|
-
return null;
|
3612
|
+
if (!showUnpublishButton) return null;
|
3599
3613
|
return {
|
3600
3614
|
variant: "tertiary",
|
3601
3615
|
label: formatMessage({ id: "app.utils.unpublish", defaultMessage: "Unpublish" }),
|
@@ -3700,7 +3714,7 @@ const TableActions = ({ document }) => {
|
|
3700
3714
|
strapiAdmin.DescriptionComponentRenderer,
|
3701
3715
|
{
|
3702
3716
|
props,
|
3703
|
-
descriptions: plugins["content-manager"].apis.getDocumentActions().filter((action) => action.name !== "PublishAction"),
|
3717
|
+
descriptions: plugins["content-manager"].apis.getDocumentActions("table-row").filter((action) => action.name !== "PublishAction"),
|
3704
3718
|
children: (actions2) => {
|
3705
3719
|
const tableRowActions = actions2.filter((action) => {
|
3706
3720
|
const positions = Array.isArray(action.position) ? action.position : [action.position];
|
@@ -3759,6 +3773,7 @@ const EditAction = ({ documentId }) => {
|
|
3759
3773
|
};
|
3760
3774
|
};
|
3761
3775
|
EditAction.type = "edit";
|
3776
|
+
EditAction.position = "table-row";
|
3762
3777
|
const StyledPencil = styledComponents.styled(Icons.Pencil)`
|
3763
3778
|
path {
|
3764
3779
|
fill: currentColor;
|
@@ -3835,6 +3850,7 @@ const CloneAction = ({ model, documentId }) => {
|
|
3835
3850
|
};
|
3836
3851
|
};
|
3837
3852
|
CloneAction.type = "clone";
|
3853
|
+
CloneAction.position = "table-row";
|
3838
3854
|
const StyledDuplicate = styledComponents.styled(Icons.Duplicate)`
|
3839
3855
|
path {
|
3840
3856
|
fill: currentColor;
|
@@ -3921,7 +3937,14 @@ class ContentManagerPlugin {
|
|
3921
3937
|
addDocumentHeaderAction: this.addDocumentHeaderAction.bind(this),
|
3922
3938
|
addEditViewSidePanel: this.addEditViewSidePanel.bind(this),
|
3923
3939
|
getBulkActions: () => this.bulkActions,
|
3924
|
-
getDocumentActions: () =>
|
3940
|
+
getDocumentActions: (position) => {
|
3941
|
+
if (position) {
|
3942
|
+
return this.documentActions.filter(
|
3943
|
+
(action) => action.position == void 0 || [action.position].flat().includes(position)
|
3944
|
+
);
|
3945
|
+
}
|
3946
|
+
return this.documentActions;
|
3947
|
+
},
|
3925
3948
|
getEditViewSidePanels: () => this.editViewSidePanels,
|
3926
3949
|
getHeaderActions: () => this.headerActions
|
3927
3950
|
}
|
@@ -3931,10 +3954,8 @@ class ContentManagerPlugin {
|
|
3931
3954
|
const getPrintableType = (value) => {
|
3932
3955
|
const nativeType = typeof value;
|
3933
3956
|
if (nativeType === "object") {
|
3934
|
-
if (value === null)
|
3935
|
-
|
3936
|
-
if (Array.isArray(value))
|
3937
|
-
return "array";
|
3957
|
+
if (value === null) return "null";
|
3958
|
+
if (Array.isArray(value)) return "array";
|
3938
3959
|
if (value instanceof Object && value.constructor.name !== "Object") {
|
3939
3960
|
return value.constructor.name;
|
3940
3961
|
}
|
@@ -3945,17 +3966,27 @@ const HistoryAction = ({ model, document }) => {
|
|
3945
3966
|
const { formatMessage } = reactIntl.useIntl();
|
3946
3967
|
const [{ query }] = strapiAdmin.useQueryParams();
|
3947
3968
|
const navigate = reactRouterDom.useNavigate();
|
3969
|
+
const { trackUsage } = strapiAdmin.useTracking();
|
3970
|
+
const { pathname } = reactRouterDom.useLocation();
|
3948
3971
|
const pluginsQueryParams = qs.stringify({ plugins: query.plugins }, { encode: false });
|
3949
3972
|
if (!window.strapi.features.isEnabled("cms-content-history")) {
|
3950
3973
|
return null;
|
3951
3974
|
}
|
3975
|
+
const handleOnClick = () => {
|
3976
|
+
const destination = { pathname: "history", search: pluginsQueryParams };
|
3977
|
+
trackUsage("willNavigate", {
|
3978
|
+
from: pathname,
|
3979
|
+
to: `${pathname}/${destination.pathname}`
|
3980
|
+
});
|
3981
|
+
navigate(destination);
|
3982
|
+
};
|
3952
3983
|
return {
|
3953
3984
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.ClockCounterClockwise, {}),
|
3954
3985
|
label: formatMessage({
|
3955
3986
|
id: "content-manager.history.document-action",
|
3956
3987
|
defaultMessage: "Content History"
|
3957
3988
|
}),
|
3958
|
-
onClick:
|
3989
|
+
onClick: handleOnClick,
|
3959
3990
|
disabled: (
|
3960
3991
|
/**
|
3961
3992
|
* The user is creating a new document.
|
@@ -3977,6 +4008,7 @@ const HistoryAction = ({ model, document }) => {
|
|
3977
4008
|
};
|
3978
4009
|
};
|
3979
4010
|
HistoryAction.type = "history";
|
4011
|
+
HistoryAction.position = "header";
|
3980
4012
|
const historyAdmin = {
|
3981
4013
|
bootstrap(app) {
|
3982
4014
|
const { addDocumentAction } = app.getPlugin("content-manager").apis;
|
@@ -4039,11 +4071,18 @@ const previewApi = contentManagerApi.injectEndpoints({
|
|
4039
4071
|
})
|
4040
4072
|
});
|
4041
4073
|
const { useGetPreviewUrlQuery } = previewApi;
|
4074
|
+
const ConditionalTooltip = ({ isShown, label, children }) => {
|
4075
|
+
if (isShown) {
|
4076
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tooltip, { label, children });
|
4077
|
+
}
|
4078
|
+
return children;
|
4079
|
+
};
|
4042
4080
|
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4043
4081
|
const { formatMessage } = reactIntl.useIntl();
|
4044
|
-
const { toggleNotification } = strapiAdmin.useNotification();
|
4045
|
-
const { copy } = strapiAdmin.useClipboard();
|
4046
4082
|
const { trackUsage } = strapiAdmin.useTracking();
|
4083
|
+
const { pathname } = reactRouterDom.useLocation();
|
4084
|
+
const [{ query }] = strapiAdmin.useQueryParams();
|
4085
|
+
const isModified = strapiAdmin.useForm("PreviewSidePanel", (state) => state.modified);
|
4047
4086
|
const { data, error } = useGetPreviewUrlQuery({
|
4048
4087
|
params: {
|
4049
4088
|
contentType: model
|
@@ -4057,51 +4096,37 @@ const PreviewSidePanel = ({ model, documentId, document }) => {
|
|
4057
4096
|
if (!data?.data?.url || error) {
|
4058
4097
|
return null;
|
4059
4098
|
}
|
4060
|
-
const
|
4061
|
-
|
4062
|
-
|
4063
|
-
toggleNotification({
|
4064
|
-
message: formatMessage({
|
4065
|
-
id: "content-manager.preview.copy.success",
|
4066
|
-
defaultMessage: "Copied preview link"
|
4067
|
-
}),
|
4068
|
-
type: "success"
|
4069
|
-
});
|
4070
|
-
};
|
4071
|
-
const handleClick = () => {
|
4072
|
-
trackUsage("willOpenPreview");
|
4099
|
+
const trackNavigation = () => {
|
4100
|
+
const destinationPathname = pathname.replace(/\/$/, "") + "/preview";
|
4101
|
+
trackUsage("willNavigate", { from: pathname, to: destinationPathname });
|
4073
4102
|
};
|
4074
4103
|
return {
|
4075
4104
|
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
4076
|
-
content: /* @__PURE__ */ jsxRuntime.
|
4077
|
-
|
4078
|
-
|
4079
|
-
{
|
4080
|
-
|
4081
|
-
|
4082
|
-
|
4083
|
-
|
4084
|
-
|
4085
|
-
|
4086
|
-
|
4087
|
-
|
4088
|
-
|
4089
|
-
|
4090
|
-
|
4091
|
-
|
4092
|
-
|
4093
|
-
|
4094
|
-
|
4095
|
-
|
4096
|
-
|
4097
|
-
|
4098
|
-
|
4099
|
-
|
4100
|
-
|
4101
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Link, {})
|
4102
|
-
}
|
4103
|
-
)
|
4104
|
-
] })
|
4105
|
+
content: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
4106
|
+
ConditionalTooltip,
|
4107
|
+
{
|
4108
|
+
label: formatMessage({
|
4109
|
+
id: "content-manager.preview.panel.button-disabled-tooltip",
|
4110
|
+
defaultMessage: "Please save to open the preview"
|
4111
|
+
}),
|
4112
|
+
isShown: isModified,
|
4113
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
4114
|
+
designSystem.Button,
|
4115
|
+
{
|
4116
|
+
variant: "tertiary",
|
4117
|
+
tag: reactRouterDom.Link,
|
4118
|
+
to: { pathname: "preview", search: qs.stringify(query, { encode: false }) },
|
4119
|
+
onClick: trackNavigation,
|
4120
|
+
flex: "auto",
|
4121
|
+
disabled: isModified,
|
4122
|
+
children: formatMessage({
|
4123
|
+
id: "content-manager.preview.panel.button",
|
4124
|
+
defaultMessage: "Open preview"
|
4125
|
+
})
|
4126
|
+
}
|
4127
|
+
)
|
4128
|
+
}
|
4129
|
+
) })
|
4105
4130
|
};
|
4106
4131
|
};
|
4107
4132
|
const FEATURE_ID = "preview";
|
@@ -4133,7 +4158,7 @@ const index = {
|
|
4133
4158
|
app.router.addRoute({
|
4134
4159
|
path: "content-manager/*",
|
4135
4160
|
lazy: async () => {
|
4136
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
4161
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-nBPDlXjr.js"));
|
4137
4162
|
return {
|
4138
4163
|
Component: Layout
|
4139
4164
|
};
|
@@ -4153,7 +4178,7 @@ const index = {
|
|
4153
4178
|
async registerTrads({ locales }) {
|
4154
4179
|
const importedTrads = await Promise.all(
|
4155
4180
|
locales.map((locale) => {
|
4156
|
-
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-
|
4181
|
+
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-BK8Xyl5I.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`, 3).then(({ default: data }) => {
|
4157
4182
|
return {
|
4158
4183
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4159
4184
|
locale
|
@@ -4211,5 +4236,6 @@ exports.useGetAllContentTypeSettingsQuery = useGetAllContentTypeSettingsQuery;
|
|
4211
4236
|
exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
4212
4237
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
4213
4238
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
4239
|
+
exports.useGetPreviewUrlQuery = useGetPreviewUrlQuery;
|
4214
4240
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
4215
|
-
//# sourceMappingURL=index-
|
4241
|
+
//# sourceMappingURL=index-BN1pPa5v.js.map
|