@strapi/content-manager 0.0.0-experimental.117b0ba4c41638592858ef7c29fec09396cf01be → 0.0.0-experimental.1610404a03d98b65f497f9adda35815021b8fd76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{ComponentConfigurationPage-DfFSZQxe.mjs → ComponentConfigurationPage-C5xJlht8.mjs} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-DfFSZQxe.mjs.map → ComponentConfigurationPage-C5xJlht8.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-FqfsxQ1j.js → ComponentConfigurationPage-CyzIs3Wp.js} +5 -6
- package/dist/_chunks/{ComponentConfigurationPage-FqfsxQ1j.js.map → ComponentConfigurationPage-CyzIs3Wp.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/{EditConfigurationPage-DdPNAbl3.mjs → EditConfigurationPage-B1JTGbDa.mjs} +4 -4
- package/dist/_chunks/{EditConfigurationPage-DdPNAbl3.mjs.map → EditConfigurationPage-B1JTGbDa.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Cn0e8t3I.js → EditConfigurationPage-BoY4_TQp.js} +5 -6
- package/dist/_chunks/{EditConfigurationPage-Cn0e8t3I.js.map → EditConfigurationPage-BoY4_TQp.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-B82x_x1b.mjs → EditViewPage-B8Uz26ZK.mjs} +3 -3
- package/dist/_chunks/EditViewPage-B8Uz26ZK.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-DlxEHhUt.js → EditViewPage-DxszpwJd.js} +4 -5
- package/dist/_chunks/EditViewPage-DxszpwJd.js.map +1 -0
- package/dist/_chunks/{Field-DufHXW17.mjs → Field-CquZadQb.mjs} +24 -43
- package/dist/_chunks/{Field-DufHXW17.mjs.map → Field-CquZadQb.mjs.map} +1 -1
- package/dist/_chunks/{Field-COL25JiC.js → Field-DzgX4ael.js} +26 -46
- package/dist/_chunks/{Field-COL25JiC.js.map → Field-DzgX4ael.js.map} +1 -1
- package/dist/_chunks/{Form-BssUwrTO.js → Form-C8a2ftQg.js} +5 -6
- package/dist/_chunks/{Form-BssUwrTO.js.map → Form-C8a2ftQg.js.map} +1 -1
- package/dist/_chunks/{Form-u_kAOhwB.mjs → Form-DuJm__5A.mjs} +3 -3
- package/dist/_chunks/{Form-u_kAOhwB.mjs.map → Form-DuJm__5A.mjs.map} +1 -1
- package/dist/_chunks/{History-C9t9UqpO.js → History-B1sa22d-.js} +6 -7
- package/dist/_chunks/History-B1sa22d-.js.map +1 -0
- package/dist/_chunks/{History-DRwA3oMM.mjs → History-C7xPTX16.mjs} +5 -5
- package/dist/_chunks/History-C7xPTX16.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-BxfQJzPk.mjs → ListConfigurationPage-C6zgYhFZ.mjs} +4 -4
- package/dist/_chunks/{ListConfigurationPage-BxfQJzPk.mjs.map → ListConfigurationPage-C6zgYhFZ.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-BXYPohh-.js → ListConfigurationPage-CYWB9ZNc.js} +5 -6
- package/dist/_chunks/{ListConfigurationPage-BXYPohh-.js.map → ListConfigurationPage-CYWB9ZNc.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-CELx2ysp.mjs → ListViewPage-BkzGZ8pS.mjs} +15 -4
- package/dist/_chunks/{ListViewPage-CELx2ysp.mjs.map → ListViewPage-BkzGZ8pS.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-D2VD8Szg.js → ListViewPage-D7jZkQ1q.js} +16 -6
- package/dist/_chunks/ListViewPage-D7jZkQ1q.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-BV9IjJSM.js → NoContentTypePage-C-eluJ5b.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BV9IjJSM.js.map → NoContentTypePage-C-eluJ5b.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-DtJ9jcfk.mjs → NoContentTypePage-CNTp9Je-.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-DtJ9jcfk.mjs.map → NoContentTypePage-CNTp9Je-.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-Dp8NpF9I.js → NoPermissionsPage-5BRSh_ql.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-Dp8NpF9I.js.map → NoPermissionsPage-5BRSh_ql.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DWleVYK7.mjs → NoPermissionsPage-B1-Nl_T8.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DWleVYK7.mjs.map → NoPermissionsPage-B1-Nl_T8.mjs.map} +1 -1
- package/dist/_chunks/{Relations-DR7EUgyC.js → Relations-CXy88hPa.js} +44 -23
- package/dist/_chunks/Relations-CXy88hPa.js.map +1 -0
- package/dist/_chunks/{Relations-BTcf5xaw.mjs → Relations-DqHS7-Cx.mjs} +44 -22
- package/dist/_chunks/Relations-DqHS7-Cx.mjs.map +1 -0
- package/dist/_chunks/{index-BdMf2lfT.js → index-BwWfprNi.js} +62 -38
- package/dist/_chunks/index-BwWfprNi.js.map +1 -0
- package/dist/_chunks/{index-wnqzm4Q8.mjs → index-LwSbWlvf.mjs} +60 -36
- package/dist/_chunks/index-LwSbWlvf.mjs.map +1 -0
- package/dist/_chunks/{layout-2CfjL0T9.mjs → layout-BS7u3JUZ.mjs} +4 -4
- package/dist/_chunks/{layout-2CfjL0T9.mjs.map → layout-BS7u3JUZ.mjs.map} +1 -1
- package/dist/_chunks/{layout-B2MyZU-_.js → layout-a7hNwceU.js} +5 -6
- package/dist/_chunks/{layout-B2MyZU-_.js.map → layout-a7hNwceU.js.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-BH7JJGGe.js → relations-DedckVWc.js} +3 -7
- package/dist/_chunks/relations-DedckVWc.js.map +1 -0
- package/dist/_chunks/{relations-C0w0GcXi.mjs → relations-L9TlNEnv.mjs} +3 -7
- package/dist/_chunks/relations-L9TlNEnv.mjs.map +1 -0
- 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 +1 -1
- package/dist/admin/src/preview/constants.d.ts +1 -0
- package/dist/admin/src/preview/index.d.ts +4 -0
- package/dist/server/index.js +73 -52
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +72 -50
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.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/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/index.d.ts +4 -0
- package/dist/server/src/preview/index.d.ts.map +1 -0
- 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/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/package.json +7 -7
- package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +0 -1
- package/dist/_chunks/History-C9t9UqpO.js.map +0 -1
- package/dist/_chunks/History-DRwA3oMM.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-D2VD8Szg.js.map +0 -1
- package/dist/_chunks/Relations-BTcf5xaw.mjs.map +0 -1
- package/dist/_chunks/Relations-DR7EUgyC.js.map +0 -1
- package/dist/_chunks/index-BdMf2lfT.js.map +0 -1
- package/dist/_chunks/index-wnqzm4Q8.mjs.map +0 -1
- package/dist/_chunks/relations-BH7JJGGe.js.map +0 -1
- package/dist/_chunks/relations-C0w0GcXi.mjs.map +0 -1
@@ -4,6 +4,7 @@ import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, ad
|
|
4
4
|
import * as React from "react";
|
5
5
|
import { lazy } from "react";
|
6
6
|
import { Button, Menu, VisuallyHidden, Flex, Typography, Dialog, Modal, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
|
7
|
+
import mapValues from "lodash/fp/mapValues";
|
7
8
|
import { useIntl } from "react-intl";
|
8
9
|
import { useParams, useNavigate, Navigate, useMatch, useLocation, Link, NavLink } from "react-router-dom";
|
9
10
|
import * as yup from "yup";
|
@@ -13,13 +14,20 @@ import { intervalToDuration, isPast } from "date-fns";
|
|
13
14
|
import { styled } from "styled-components";
|
14
15
|
import { stringify } from "qs";
|
15
16
|
import { createSlice, combineReducers } from "@reduxjs/toolkit";
|
16
|
-
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
17
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
17
18
|
const v = glob[path];
|
18
19
|
if (v) {
|
19
20
|
return typeof v === "function" ? v() : Promise.resolve(v);
|
20
21
|
}
|
21
22
|
return new Promise((_, reject) => {
|
22
|
-
(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
|
+
);
|
23
31
|
});
|
24
32
|
};
|
25
33
|
const PLUGIN_ID = "content-manager";
|
@@ -270,7 +278,7 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
270
278
|
*/
|
271
279
|
getAllDocuments: builder.query({
|
272
280
|
query: ({ model, params }) => ({
|
273
|
-
url: `/content-manager/collection-types/${model}`,
|
281
|
+
url: `/content-manager/collection-types/${model}${params ? `?${params}` : ""}`,
|
274
282
|
method: "GET",
|
275
283
|
config: {
|
276
284
|
params
|
@@ -452,8 +460,7 @@ const {
|
|
452
460
|
useUnpublishManyDocumentsMutation
|
453
461
|
} = documentApi;
|
454
462
|
const buildValidParams = (query) => {
|
455
|
-
if (!query)
|
456
|
-
return query;
|
463
|
+
if (!query) return query;
|
457
464
|
const { plugins: _, ...validQueryParams } = {
|
458
465
|
...query,
|
459
466
|
...Object.values(query?.plugins ?? {}).reduce(
|
@@ -968,9 +975,10 @@ const formatEditLayout = (data, {
|
|
968
975
|
currentPanelIndex += 2;
|
969
976
|
} else {
|
970
977
|
if (!panels[currentPanelIndex]) {
|
971
|
-
panels.push([]);
|
978
|
+
panels.push([row]);
|
979
|
+
} else {
|
980
|
+
panels[currentPanelIndex].push(row);
|
972
981
|
}
|
973
|
-
panels[currentPanelIndex].push(row);
|
974
982
|
}
|
975
983
|
return panels;
|
976
984
|
}, []);
|
@@ -1228,9 +1236,6 @@ const useContentManagerContext = () => {
|
|
1228
1236
|
};
|
1229
1237
|
};
|
1230
1238
|
const prefixPluginTranslations = (trad, pluginId) => {
|
1231
|
-
if (!pluginId) {
|
1232
|
-
throw new TypeError("pluginId can't be empty");
|
1233
|
-
}
|
1234
1239
|
return Object.keys(trad).reduce((acc, current) => {
|
1235
1240
|
acc[`${pluginId}.${current}`] = trad[current];
|
1236
1241
|
return acc;
|
@@ -1665,7 +1670,7 @@ const useDocumentActions = () => {
|
|
1665
1670
|
};
|
1666
1671
|
};
|
1667
1672
|
const ProtectedHistoryPage = lazy(
|
1668
|
-
() => import("./History-
|
1673
|
+
() => import("./History-C7xPTX16.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1669
1674
|
);
|
1670
1675
|
const routes$1 = [
|
1671
1676
|
{
|
@@ -1678,31 +1683,31 @@ const routes$1 = [
|
|
1678
1683
|
}
|
1679
1684
|
];
|
1680
1685
|
const ProtectedEditViewPage = lazy(
|
1681
|
-
() => import("./EditViewPage-
|
1686
|
+
() => import("./EditViewPage-B8Uz26ZK.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1682
1687
|
);
|
1683
1688
|
const ProtectedListViewPage = lazy(
|
1684
|
-
() => import("./ListViewPage-
|
1689
|
+
() => import("./ListViewPage-BkzGZ8pS.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1685
1690
|
);
|
1686
1691
|
const ProtectedListConfiguration = lazy(
|
1687
|
-
() => import("./ListConfigurationPage-
|
1692
|
+
() => import("./ListConfigurationPage-C6zgYhFZ.mjs").then((mod) => ({
|
1688
1693
|
default: mod.ProtectedListConfiguration
|
1689
1694
|
}))
|
1690
1695
|
);
|
1691
1696
|
const ProtectedEditConfigurationPage = lazy(
|
1692
|
-
() => import("./EditConfigurationPage-
|
1697
|
+
() => import("./EditConfigurationPage-B1JTGbDa.mjs").then((mod) => ({
|
1693
1698
|
default: mod.ProtectedEditConfigurationPage
|
1694
1699
|
}))
|
1695
1700
|
);
|
1696
1701
|
const ProtectedComponentConfigurationPage = lazy(
|
1697
|
-
() => import("./ComponentConfigurationPage-
|
1702
|
+
() => import("./ComponentConfigurationPage-C5xJlht8.mjs").then((mod) => ({
|
1698
1703
|
default: mod.ProtectedComponentConfigurationPage
|
1699
1704
|
}))
|
1700
1705
|
);
|
1701
1706
|
const NoPermissions = lazy(
|
1702
|
-
() => import("./NoPermissionsPage-
|
1707
|
+
() => import("./NoPermissionsPage-B1-Nl_T8.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1703
1708
|
);
|
1704
1709
|
const NoContentType = lazy(
|
1705
|
-
() => import("./NoContentTypePage-
|
1710
|
+
() => import("./NoContentTypePage-CNTp9Je-.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1706
1711
|
);
|
1707
1712
|
const CollectionTypePages = () => {
|
1708
1713
|
const { collectionType } = useParams();
|
@@ -2056,6 +2061,18 @@ const DocumentActionModal = ({
|
|
2056
2061
|
typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer
|
2057
2062
|
] }) });
|
2058
2063
|
};
|
2064
|
+
const transformData = (data) => {
|
2065
|
+
if (Array.isArray(data)) {
|
2066
|
+
return data.map(transformData);
|
2067
|
+
}
|
2068
|
+
if (typeof data === "object" && data !== null) {
|
2069
|
+
if ("apiData" in data) {
|
2070
|
+
return data.apiData;
|
2071
|
+
}
|
2072
|
+
return mapValues(transformData)(data);
|
2073
|
+
}
|
2074
|
+
return data;
|
2075
|
+
};
|
2059
2076
|
const PublishAction$1 = ({
|
2060
2077
|
activeTab,
|
2061
2078
|
documentId,
|
@@ -2169,7 +2186,7 @@ const PublishAction$1 = ({
|
|
2169
2186
|
documentId,
|
2170
2187
|
params
|
2171
2188
|
},
|
2172
|
-
formValues
|
2189
|
+
transformData(formValues)
|
2173
2190
|
);
|
2174
2191
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2175
2192
|
navigate({
|
@@ -2285,7 +2302,7 @@ const UpdateAction = ({
|
|
2285
2302
|
documentId: cloneMatch.params.origin,
|
2286
2303
|
params
|
2287
2304
|
},
|
2288
|
-
document
|
2305
|
+
transformData(document)
|
2289
2306
|
);
|
2290
2307
|
if ("data" in res) {
|
2291
2308
|
navigate(
|
@@ -2306,7 +2323,7 @@ const UpdateAction = ({
|
|
2306
2323
|
documentId,
|
2307
2324
|
params
|
2308
2325
|
},
|
2309
|
-
document
|
2326
|
+
transformData(document)
|
2310
2327
|
);
|
2311
2328
|
if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2312
2329
|
setErrors(formatValidationErrors(res.error));
|
@@ -2319,7 +2336,7 @@ const UpdateAction = ({
|
|
2319
2336
|
model,
|
2320
2337
|
params
|
2321
2338
|
},
|
2322
|
-
document
|
2339
|
+
transformData(document)
|
2323
2340
|
);
|
2324
2341
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2325
2342
|
navigate(
|
@@ -3007,7 +3024,7 @@ const Panel = React.forwardRef(({ children, title }, ref) => {
|
|
3007
3024
|
justifyContent: "stretch",
|
3008
3025
|
alignItems: "flex-start",
|
3009
3026
|
children: [
|
3010
|
-
/* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
|
3027
|
+
/* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", textColor: "neutral600", children: title }),
|
3011
3028
|
children
|
3012
3029
|
]
|
3013
3030
|
}
|
@@ -3442,8 +3459,7 @@ const PublishAction = ({ documents, model }) => {
|
|
3442
3459
|
const refetchList = () => {
|
3443
3460
|
contentManagerApi.util.invalidateTags([{ type: "Document", id: `${model}_LIST` }]);
|
3444
3461
|
};
|
3445
|
-
if (!showPublishButton)
|
3446
|
-
return null;
|
3462
|
+
if (!showPublishButton) return null;
|
3447
3463
|
return {
|
3448
3464
|
actionType: "publish",
|
3449
3465
|
variant: "tertiary",
|
@@ -3511,8 +3527,7 @@ const DeleteAction = ({ documents, model }) => {
|
|
3511
3527
|
selectRow([]);
|
3512
3528
|
}
|
3513
3529
|
};
|
3514
|
-
if (!hasDeletePermission)
|
3515
|
-
return null;
|
3530
|
+
if (!hasDeletePermission) return null;
|
3516
3531
|
return {
|
3517
3532
|
variant: "danger-light",
|
3518
3533
|
label: formatMessage({ id: "global.delete", defaultMessage: "Delete" }),
|
@@ -3561,8 +3576,7 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3561
3576
|
}
|
3562
3577
|
};
|
3563
3578
|
const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
|
3564
|
-
if (!showUnpublishButton)
|
3565
|
-
return null;
|
3579
|
+
if (!showUnpublishButton) return null;
|
3566
3580
|
return {
|
3567
3581
|
variant: "tertiary",
|
3568
3582
|
label: formatMessage({ id: "app.utils.unpublish", defaultMessage: "Unpublish" }),
|
@@ -3898,10 +3912,8 @@ class ContentManagerPlugin {
|
|
3898
3912
|
const getPrintableType = (value) => {
|
3899
3913
|
const nativeType = typeof value;
|
3900
3914
|
if (nativeType === "object") {
|
3901
|
-
if (value === null)
|
3902
|
-
|
3903
|
-
if (Array.isArray(value))
|
3904
|
-
return "array";
|
3915
|
+
if (value === null) return "null";
|
3916
|
+
if (Array.isArray(value)) return "array";
|
3905
3917
|
if (value instanceof Object && value.constructor.name !== "Object") {
|
3906
3918
|
return value.constructor.name;
|
3907
3919
|
}
|
@@ -3990,6 +4002,15 @@ const { setInitialData } = actions;
|
|
3990
4002
|
const reducer = combineReducers({
|
3991
4003
|
app: reducer$1
|
3992
4004
|
});
|
4005
|
+
const FEATURE_ID = "preview";
|
4006
|
+
const previewAdmin = {
|
4007
|
+
bootstrap(app) {
|
4008
|
+
if (!window.strapi.future.isEnabled(FEATURE_ID)) {
|
4009
|
+
return {};
|
4010
|
+
}
|
4011
|
+
console.log("Bootstrapping preview admin");
|
4012
|
+
}
|
4013
|
+
};
|
3993
4014
|
const index = {
|
3994
4015
|
register(app) {
|
3995
4016
|
const cm = new ContentManagerPlugin();
|
@@ -4009,7 +4030,7 @@ const index = {
|
|
4009
4030
|
app.router.addRoute({
|
4010
4031
|
path: "content-manager/*",
|
4011
4032
|
lazy: async () => {
|
4012
|
-
const { Layout } = await import("./layout-
|
4033
|
+
const { Layout } = await import("./layout-BS7u3JUZ.mjs");
|
4013
4034
|
return {
|
4014
4035
|
Component: Layout
|
4015
4036
|
};
|
@@ -4022,11 +4043,14 @@ const index = {
|
|
4022
4043
|
if (typeof historyAdmin.bootstrap === "function") {
|
4023
4044
|
historyAdmin.bootstrap(app);
|
4024
4045
|
}
|
4046
|
+
if (typeof previewAdmin.bootstrap === "function") {
|
4047
|
+
previewAdmin.bootstrap(app);
|
4048
|
+
}
|
4025
4049
|
},
|
4026
4050
|
async registerTrads({ locales }) {
|
4027
4051
|
const importedTrads = await Promise.all(
|
4028
4052
|
locales.map((locale) => {
|
4029
|
-
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-DKV44jRb.mjs"), "./translations/es.json": () => import("./es-CeXiYflN.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr-CD9VFbPM.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-CtsUxOvk.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
|
4053
|
+
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-DKV44jRb.mjs"), "./translations/es.json": () => import("./es-CeXiYflN.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr-CD9VFbPM.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-CtsUxOvk.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 }) => {
|
4030
4054
|
return {
|
4031
4055
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4032
4056
|
locale
|
@@ -4087,4 +4111,4 @@ export {
|
|
4087
4111
|
capitalise as y,
|
4088
4112
|
useUpdateContentTypeConfigurationMutation as z
|
4089
4113
|
};
|
4090
|
-
//# sourceMappingURL=index-
|
4114
|
+
//# sourceMappingURL=index-LwSbWlvf.mjs.map
|