@strapi/content-manager 0.0.0-next.d2d15ef227d67cce89c2673764c0555c841cd29c → 0.0.0-next.d65d44102fd32871728c0d74ec4f2519b7cc0a16
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-DhWA-JzT.mjs} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-DfFSZQxe.mjs.map → ComponentConfigurationPage-DhWA-JzT.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-FqfsxQ1j.js → ComponentConfigurationPage-UduDBv3m.js} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-FqfsxQ1j.js.map → ComponentConfigurationPage-UduDBv3m.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-DdPNAbl3.mjs → EditConfigurationPage-5tmx_7Hp.mjs} +4 -4
- package/dist/_chunks/{EditConfigurationPage-DdPNAbl3.mjs.map → EditConfigurationPage-5tmx_7Hp.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Cn0e8t3I.js → EditConfigurationPage-Cp9UzUfs.js} +4 -4
- package/dist/_chunks/{EditConfigurationPage-Cn0e8t3I.js.map → EditConfigurationPage-Cp9UzUfs.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-B82x_x1b.mjs → EditViewPage-BKoISUOu.mjs} +38 -8
- package/dist/_chunks/EditViewPage-BKoISUOu.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-DlxEHhUt.js → EditViewPage-C7l2Emuj.js} +37 -7
- package/dist/_chunks/EditViewPage-C7l2Emuj.js.map +1 -0
- package/dist/_chunks/{Field-COL25JiC.js → Field-BPSJpDfE.js} +43 -24
- package/dist/_chunks/Field-BPSJpDfE.js.map +1 -0
- package/dist/_chunks/{Field-DufHXW17.mjs → Field-BZxzYf1x.mjs} +44 -25
- package/dist/_chunks/Field-BZxzYf1x.mjs.map +1 -0
- package/dist/_chunks/{Form-u_kAOhwB.mjs → Form-8qyOU6YG.mjs} +2 -2
- package/dist/_chunks/{Form-u_kAOhwB.mjs.map → Form-8qyOU6YG.mjs.map} +1 -1
- package/dist/_chunks/{Form-BssUwrTO.js → Form-DLkqDd2G.js} +2 -2
- package/dist/_chunks/{Form-BssUwrTO.js.map → Form-DLkqDd2G.js.map} +1 -1
- package/dist/_chunks/{History-C9t9UqpO.js → History-DYMicybF.js} +22 -92
- package/dist/_chunks/History-DYMicybF.js.map +1 -0
- package/dist/_chunks/{History-DRwA3oMM.mjs → History-N_kRb1Yr.mjs} +23 -93
- package/dist/_chunks/History-N_kRb1Yr.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-BxfQJzPk.mjs → ListConfigurationPage-BM3qVxug.mjs} +6 -5
- package/dist/_chunks/ListConfigurationPage-BM3qVxug.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-BXYPohh-.js → ListConfigurationPage-rUF9iGWq.js} +5 -4
- package/dist/_chunks/ListConfigurationPage-rUF9iGWq.js.map +1 -0
- package/dist/_chunks/{ListViewPage-D2VD8Szg.js → ListViewPage-BSLzd7cZ.js} +62 -39
- package/dist/_chunks/ListViewPage-BSLzd7cZ.js.map +1 -0
- package/dist/_chunks/{ListViewPage-CELx2ysp.mjs → ListViewPage-CWilGbZb.mjs} +62 -39
- package/dist/_chunks/ListViewPage-CWilGbZb.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-BV9IjJSM.js → NoContentTypePage-CQccVhIX.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BV9IjJSM.js.map → NoContentTypePage-CQccVhIX.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-DtJ9jcfk.mjs → NoContentTypePage-VWYlePwI.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-DtJ9jcfk.mjs.map → NoContentTypePage-VWYlePwI.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-Dp8NpF9I.js → NoPermissionsPage-Af32Gg2m.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-Dp8NpF9I.js.map → NoPermissionsPage-Af32Gg2m.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DWleVYK7.mjs → NoPermissionsPage-CS2tCmfr.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DWleVYK7.mjs.map → NoPermissionsPage-CS2tCmfr.mjs.map} +1 -1
- package/dist/_chunks/Preview-D4KzuJFL.js +291 -0
- package/dist/_chunks/Preview-D4KzuJFL.js.map +1 -0
- package/dist/_chunks/Preview-kPkuZbBJ.mjs +272 -0
- package/dist/_chunks/Preview-kPkuZbBJ.mjs.map +1 -0
- package/dist/_chunks/{Relations-BTcf5xaw.mjs → Relations-5k27Rh54.mjs} +44 -17
- package/dist/_chunks/Relations-5k27Rh54.mjs.map +1 -0
- package/dist/_chunks/{Relations-DR7EUgyC.js → Relations-D_Ki5aVM.js} +43 -16
- package/dist/_chunks/Relations-D_Ki5aVM.js.map +1 -0
- package/dist/_chunks/{en-Bm0D0IWz.js → en-BK8Xyl5I.js} +16 -4
- package/dist/_chunks/{en-Bm0D0IWz.js.map → en-BK8Xyl5I.js.map} +1 -1
- package/dist/_chunks/{en-DKV44jRb.mjs → en-Dtk_ot79.mjs} +16 -4
- package/dist/_chunks/{en-DKV44jRb.mjs.map → en-Dtk_ot79.mjs.map} +1 -1
- package/dist/_chunks/{es-EUonQTon.js → es-9K52xZIr.js} +2 -2
- package/dist/_chunks/{ja-CcFe8diO.js.map → es-9K52xZIr.js.map} +1 -1
- package/dist/_chunks/{es-CeXiYflN.mjs → es-D34tqjMw.mjs} +2 -2
- package/dist/_chunks/{es-CeXiYflN.mjs.map → es-D34tqjMw.mjs.map} +1 -1
- package/dist/_chunks/{fr-CD9VFbPM.mjs → fr--pg5jUbt.mjs} +13 -3
- package/dist/_chunks/{fr-CD9VFbPM.mjs.map → fr--pg5jUbt.mjs.map} +1 -1
- package/dist/_chunks/{fr-B7kGGg3E.js → fr-B2Kyv8Z9.js} +13 -3
- package/dist/_chunks/{fr-B7kGGg3E.js.map → fr-B2Kyv8Z9.js.map} +1 -1
- package/dist/_chunks/{index-wnqzm4Q8.mjs → index-BLPa8Dq-.mjs} +208 -94
- package/dist/_chunks/index-BLPa8Dq-.mjs.map +1 -0
- package/dist/_chunks/{index-BdMf2lfT.js → index-DwOsF7wF.js} +205 -90
- package/dist/_chunks/index-DwOsF7wF.js.map +1 -0
- package/dist/_chunks/{ja-CcFe8diO.js → ja-7sfIbjxE.js} +2 -2
- package/dist/_chunks/{es-EUonQTon.js.map → ja-7sfIbjxE.js.map} +1 -1
- package/dist/_chunks/{ja-CtsUxOvk.mjs → ja-BHqhDq4V.mjs} +2 -2
- package/dist/_chunks/{ja-CtsUxOvk.mjs.map → ja-BHqhDq4V.mjs.map} +1 -1
- package/dist/_chunks/{layout-2CfjL0T9.mjs → layout-2Si0j0jO.mjs} +3 -3
- package/dist/_chunks/{layout-2CfjL0T9.mjs.map → layout-2Si0j0jO.mjs.map} +1 -1
- package/dist/_chunks/{layout-B2MyZU-_.js → layout-CN2bFL9V.js} +3 -3
- package/dist/_chunks/{layout-B2MyZU-_.js.map → layout-CN2bFL9V.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-B0E0XUY7.js} +6 -7
- package/dist/_chunks/relations-B0E0XUY7.js.map +1 -0
- package/dist/_chunks/{relations-C0w0GcXi.mjs → relations-CAxDjUJF.mjs} +6 -7
- package/dist/_chunks/relations-CAxDjUJF.mjs.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +4 -4
- package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +2 -2
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
- package/dist/admin/src/preview/constants.d.ts +1 -0
- package/dist/admin/src/preview/index.d.ts +4 -0
- package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
- package/dist/admin/src/preview/routes.d.ts +3 -0
- package/dist/admin/src/preview/services/preview.d.ts +3 -0
- package/dist/admin/src/router.d.ts +1 -1
- package/dist/admin/src/services/documents.d.ts +0 -3
- package/dist/server/index.js +391 -144
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +392 -145
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/controllers/index.d.ts.map +1 -1
- package/dist/server/src/controllers/relations.d.ts.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +15 -1
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.d.ts +2 -3
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +4 -4
- package/dist/server/src/preview/constants.d.ts +2 -0
- package/dist/server/src/preview/constants.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/index.d.ts +2 -0
- package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/preview.d.ts +13 -0
- package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
- package/dist/server/src/preview/index.d.ts +4 -0
- package/dist/server/src/preview/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/index.d.ts +8 -0
- package/dist/server/src/preview/routes/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/preview.d.ts +4 -0
- package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
- package/dist/server/src/preview/services/index.d.ts +16 -0
- package/dist/server/src/preview/services/index.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview-config.d.ts +32 -0
- package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview.d.ts +12 -0
- package/dist/server/src/preview/services/preview.d.ts.map +1 -0
- package/dist/server/src/preview/utils.d.ts +19 -0
- package/dist/server/src/preview/utils.d.ts.map +1 -0
- package/dist/server/src/register.d.ts.map +1 -1
- package/dist/server/src/routes/index.d.ts.map +1 -1
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +8 -8
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +4 -4
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
- package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
- package/dist/server/src/utils/index.d.ts +2 -0
- package/dist/server/src/utils/index.d.ts.map +1 -1
- package/dist/shared/contracts/index.d.ts +1 -0
- package/dist/shared/contracts/index.d.ts.map +1 -1
- package/dist/shared/contracts/preview.d.ts +27 -0
- package/dist/shared/contracts/preview.d.ts.map +1 -0
- package/dist/shared/index.js +4 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +4 -0
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +10 -10
- package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +0 -1
- package/dist/_chunks/Field-COL25JiC.js.map +0 -1
- package/dist/_chunks/Field-DufHXW17.mjs.map +0 -1
- package/dist/_chunks/History-C9t9UqpO.js.map +0 -1
- package/dist/_chunks/History-DRwA3oMM.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-BXYPohh-.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-CELx2ysp.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,13 +4,14 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const strapiAdmin = require("@strapi/admin/strapi-admin");
|
5
5
|
const React = require("react");
|
6
6
|
const designSystem = require("@strapi/design-system");
|
7
|
+
const mapValues = require("lodash/fp/mapValues");
|
7
8
|
const reactIntl = require("react-intl");
|
8
9
|
const reactRouterDom = require("react-router-dom");
|
10
|
+
const styledComponents = require("styled-components");
|
9
11
|
const yup = require("yup");
|
12
|
+
const qs = require("qs");
|
10
13
|
const pipe = require("lodash/fp/pipe");
|
11
14
|
const dateFns = require("date-fns");
|
12
|
-
const styledComponents = require("styled-components");
|
13
|
-
const qs = require("qs");
|
14
15
|
const toolkit = require("@reduxjs/toolkit");
|
15
16
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
16
17
|
function _interopNamespace(e) {
|
@@ -32,6 +33,7 @@ function _interopNamespace(e) {
|
|
32
33
|
return Object.freeze(n);
|
33
34
|
}
|
34
35
|
const React__namespace = /* @__PURE__ */ _interopNamespace(React);
|
36
|
+
const mapValues__default = /* @__PURE__ */ _interopDefault(mapValues);
|
35
37
|
const yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
|
36
38
|
const pipe__default = /* @__PURE__ */ _interopDefault(pipe);
|
37
39
|
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
@@ -294,7 +296,7 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
294
296
|
url: `/content-manager/collection-types/${model}`,
|
295
297
|
method: "GET",
|
296
298
|
config: {
|
297
|
-
params
|
299
|
+
params: qs.stringify(params, { encode: true })
|
298
300
|
}
|
299
301
|
}),
|
300
302
|
providesTags: (result, _error, arg) => {
|
@@ -482,9 +484,6 @@ const buildValidParams = (query) => {
|
|
482
484
|
{}
|
483
485
|
)
|
484
486
|
};
|
485
|
-
if ("_q" in validQueryParams) {
|
486
|
-
validQueryParams._q = encodeURIComponent(validQueryParams._q);
|
487
|
-
}
|
488
487
|
return validQueryParams;
|
489
488
|
};
|
490
489
|
const isBaseQueryError = (error) => {
|
@@ -989,9 +988,10 @@ const formatEditLayout = (data, {
|
|
989
988
|
currentPanelIndex += 2;
|
990
989
|
} else {
|
991
990
|
if (!panels[currentPanelIndex]) {
|
992
|
-
panels.push([]);
|
991
|
+
panels.push([row]);
|
992
|
+
} else {
|
993
|
+
panels[currentPanelIndex].push(row);
|
993
994
|
}
|
994
|
-
panels[currentPanelIndex].push(row);
|
995
995
|
}
|
996
996
|
return panels;
|
997
997
|
}, []);
|
@@ -1249,9 +1249,6 @@ const useContentManagerContext = () => {
|
|
1249
1249
|
};
|
1250
1250
|
};
|
1251
1251
|
const prefixPluginTranslations = (trad, pluginId) => {
|
1252
|
-
if (!pluginId) {
|
1253
|
-
throw new TypeError("pluginId can't be empty");
|
1254
|
-
}
|
1255
1252
|
return Object.keys(trad).reduce((acc, current) => {
|
1256
1253
|
acc[`${pluginId}.${current}`] = trad[current];
|
1257
1254
|
return acc;
|
@@ -1685,10 +1682,10 @@ const useDocumentActions = () => {
|
|
1685
1682
|
update
|
1686
1683
|
};
|
1687
1684
|
};
|
1688
|
-
const ProtectedHistoryPage =
|
1689
|
-
() => Promise.resolve().then(() => require("./History-
|
1685
|
+
const ProtectedHistoryPage = React__namespace.lazy(
|
1686
|
+
() => Promise.resolve().then(() => require("./History-DYMicybF.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1690
1687
|
);
|
1691
|
-
const routes$
|
1688
|
+
const routes$2 = [
|
1692
1689
|
{
|
1693
1690
|
path: ":collectionType/:slug/:id/history",
|
1694
1691
|
Component: ProtectedHistoryPage
|
@@ -1698,32 +1695,45 @@ const routes$1 = [
|
|
1698
1695
|
Component: ProtectedHistoryPage
|
1699
1696
|
}
|
1700
1697
|
];
|
1698
|
+
const ProtectedPreviewPage = React__namespace.lazy(
|
1699
|
+
() => Promise.resolve().then(() => require("./Preview-D4KzuJFL.js")).then((mod) => ({ default: mod.ProtectedPreviewPage }))
|
1700
|
+
);
|
1701
|
+
const routes$1 = [
|
1702
|
+
{
|
1703
|
+
path: ":collectionType/:slug/:id/preview",
|
1704
|
+
Component: ProtectedPreviewPage
|
1705
|
+
},
|
1706
|
+
{
|
1707
|
+
path: ":collectionType/:slug/preview",
|
1708
|
+
Component: ProtectedPreviewPage
|
1709
|
+
}
|
1710
|
+
];
|
1701
1711
|
const ProtectedEditViewPage = React.lazy(
|
1702
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1712
|
+
() => Promise.resolve().then(() => require("./EditViewPage-C7l2Emuj.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1703
1713
|
);
|
1704
1714
|
const ProtectedListViewPage = React.lazy(
|
1705
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1715
|
+
() => Promise.resolve().then(() => require("./ListViewPage-BSLzd7cZ.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1706
1716
|
);
|
1707
1717
|
const ProtectedListConfiguration = React.lazy(
|
1708
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1718
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-rUF9iGWq.js")).then((mod) => ({
|
1709
1719
|
default: mod.ProtectedListConfiguration
|
1710
1720
|
}))
|
1711
1721
|
);
|
1712
1722
|
const ProtectedEditConfigurationPage = React.lazy(
|
1713
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1723
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-Cp9UzUfs.js")).then((mod) => ({
|
1714
1724
|
default: mod.ProtectedEditConfigurationPage
|
1715
1725
|
}))
|
1716
1726
|
);
|
1717
1727
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1718
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1728
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-UduDBv3m.js")).then((mod) => ({
|
1719
1729
|
default: mod.ProtectedComponentConfigurationPage
|
1720
1730
|
}))
|
1721
1731
|
);
|
1722
1732
|
const NoPermissions = React.lazy(
|
1723
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1733
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-Af32Gg2m.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1724
1734
|
);
|
1725
1735
|
const NoContentType = React.lazy(
|
1726
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1736
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-CQccVhIX.js")).then((mod) => ({ default: mod.NoContentType }))
|
1727
1737
|
);
|
1728
1738
|
const CollectionTypePages = () => {
|
1729
1739
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1735,7 +1745,7 @@ const CollectionTypePages = () => {
|
|
1735
1745
|
const CLONE_RELATIVE_PATH = ":collectionType/:slug/clone/:origin";
|
1736
1746
|
const CLONE_PATH = `/content-manager/${CLONE_RELATIVE_PATH}`;
|
1737
1747
|
const LIST_RELATIVE_PATH = ":collectionType/:slug";
|
1738
|
-
const LIST_PATH = `/content-manager
|
1748
|
+
const LIST_PATH = `/content-manager/collection-types/:slug`;
|
1739
1749
|
const routes = [
|
1740
1750
|
{
|
1741
1751
|
path: LIST_RELATIVE_PATH,
|
@@ -1769,6 +1779,7 @@ const routes = [
|
|
1769
1779
|
path: "no-content-types",
|
1770
1780
|
Component: NoContentType
|
1771
1781
|
},
|
1782
|
+
...routes$2,
|
1772
1783
|
...routes$1
|
1773
1784
|
];
|
1774
1785
|
const DocumentActions = ({ actions: actions2 }) => {
|
@@ -1867,6 +1878,11 @@ const DocumentActionButton = (action) => {
|
|
1867
1878
|
) : null
|
1868
1879
|
] });
|
1869
1880
|
};
|
1881
|
+
const MenuItem = styledComponents.styled(designSystem.Menu.Item)`
|
1882
|
+
&:hover {
|
1883
|
+
background: ${({ theme, isVariantDanger, isDisabled }) => isVariantDanger && !isDisabled ? theme.colors.danger100 : "neutral"};
|
1884
|
+
}
|
1885
|
+
`;
|
1870
1886
|
const DocumentActionsMenu = ({
|
1871
1887
|
actions: actions2,
|
1872
1888
|
children,
|
@@ -1925,48 +1941,32 @@ const DocumentActionsMenu = ({
|
|
1925
1941
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Content, { maxHeight: void 0, popoverPlacement: "bottom-end", children: [
|
1926
1942
|
actions2.map((action) => {
|
1927
1943
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
1928
|
-
|
1944
|
+
MenuItem,
|
1929
1945
|
{
|
1930
1946
|
disabled: action.disabled,
|
1931
1947
|
onSelect: handleClick(action),
|
1932
1948
|
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
|
-
] })
|
1949
|
+
isVariantDanger: action.variant === "danger",
|
1950
|
+
isDisabled: action.disabled,
|
1951
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
1952
|
+
designSystem.Flex,
|
1953
|
+
{
|
1954
|
+
color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
|
1955
|
+
gap: 2,
|
1956
|
+
tag: "span",
|
1957
|
+
children: [
|
1958
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
1959
|
+
designSystem.Flex,
|
1960
|
+
{
|
1961
|
+
tag: "span",
|
1962
|
+
color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
|
1963
|
+
children: action.icon
|
1964
|
+
}
|
1965
|
+
),
|
1966
|
+
action.label
|
1967
|
+
]
|
1968
|
+
}
|
1969
|
+
) })
|
1970
1970
|
},
|
1971
1971
|
action.id
|
1972
1972
|
);
|
@@ -2077,6 +2077,18 @@ const DocumentActionModal = ({
|
|
2077
2077
|
typeof Footer === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Footer, { onClose: handleClose }) : Footer
|
2078
2078
|
] }) });
|
2079
2079
|
};
|
2080
|
+
const transformData = (data) => {
|
2081
|
+
if (Array.isArray(data)) {
|
2082
|
+
return data.map(transformData);
|
2083
|
+
}
|
2084
|
+
if (typeof data === "object" && data !== null) {
|
2085
|
+
if ("apiData" in data) {
|
2086
|
+
return data.apiData;
|
2087
|
+
}
|
2088
|
+
return mapValues__default.default(transformData)(data);
|
2089
|
+
}
|
2090
|
+
return data;
|
2091
|
+
};
|
2080
2092
|
const PublishAction$1 = ({
|
2081
2093
|
activeTab,
|
2082
2094
|
documentId,
|
@@ -2091,6 +2103,7 @@ const PublishAction$1 = ({
|
|
2091
2103
|
const { _unstableFormatValidationErrors: formatValidationErrors } = strapiAdmin.useAPIErrorHandler();
|
2092
2104
|
const isListView = reactRouterDom.useMatch(LIST_PATH) !== null;
|
2093
2105
|
const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
|
2106
|
+
const { id } = reactRouterDom.useParams();
|
2094
2107
|
const { formatMessage } = reactIntl.useIntl();
|
2095
2108
|
const canPublish = useDocumentRBAC("PublishAction", ({ canPublish: canPublish2 }) => canPublish2);
|
2096
2109
|
const { publish } = useDocumentActions();
|
@@ -2190,13 +2203,15 @@ const PublishAction$1 = ({
|
|
2190
2203
|
documentId,
|
2191
2204
|
params
|
2192
2205
|
},
|
2193
|
-
formValues
|
2206
|
+
transformData(formValues)
|
2194
2207
|
);
|
2195
2208
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2196
|
-
|
2197
|
-
|
2198
|
-
|
2199
|
-
|
2209
|
+
if (id === "create") {
|
2210
|
+
navigate({
|
2211
|
+
pathname: `../${collectionType}/${model}/${res.data.documentId}`,
|
2212
|
+
search: rawQuery
|
2213
|
+
});
|
2214
|
+
}
|
2200
2215
|
} else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2201
2216
|
setErrors(formatValidationErrors(res.error));
|
2202
2217
|
}
|
@@ -2280,7 +2295,7 @@ const UpdateAction = ({
|
|
2280
2295
|
*/
|
2281
2296
|
disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
|
2282
2297
|
label: formatMessage({
|
2283
|
-
id: "
|
2298
|
+
id: "global.save",
|
2284
2299
|
defaultMessage: "Save"
|
2285
2300
|
}),
|
2286
2301
|
onClick: async () => {
|
@@ -2306,7 +2321,7 @@ const UpdateAction = ({
|
|
2306
2321
|
documentId: cloneMatch.params.origin,
|
2307
2322
|
params
|
2308
2323
|
},
|
2309
|
-
document
|
2324
|
+
transformData(document)
|
2310
2325
|
);
|
2311
2326
|
if ("data" in res) {
|
2312
2327
|
navigate(
|
@@ -2327,7 +2342,7 @@ const UpdateAction = ({
|
|
2327
2342
|
documentId,
|
2328
2343
|
params
|
2329
2344
|
},
|
2330
|
-
document
|
2345
|
+
transformData(document)
|
2331
2346
|
);
|
2332
2347
|
if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2333
2348
|
setErrors(formatValidationErrors(res.error));
|
@@ -2340,7 +2355,7 @@ const UpdateAction = ({
|
|
2340
2355
|
model,
|
2341
2356
|
params
|
2342
2357
|
},
|
2343
|
-
document
|
2358
|
+
transformData(document)
|
2344
2359
|
);
|
2345
2360
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2346
2361
|
navigate(
|
@@ -2545,7 +2560,7 @@ const RelativeTime = React__namespace.forwardRef(
|
|
2545
2560
|
});
|
2546
2561
|
const unit = intervals.find((intervalUnit) => {
|
2547
2562
|
return interval[intervalUnit] > 0 && Object.keys(interval).includes(intervalUnit);
|
2548
|
-
});
|
2563
|
+
}) ?? "seconds";
|
2549
2564
|
const relativeTime = dateFns.isPast(timestamp) ? -interval[unit] : interval[unit];
|
2550
2565
|
const customInterval = customIntervals.find(
|
2551
2566
|
(custom) => interval[custom.unit] < custom.threshold
|
@@ -2579,19 +2594,29 @@ const getDisplayName = ({
|
|
2579
2594
|
return email ?? "";
|
2580
2595
|
};
|
2581
2596
|
const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
2582
|
-
const DocumentStatus = ({ status = "draft", ...restProps }) => {
|
2597
|
+
const DocumentStatus = ({ status = "draft", size = "S", ...restProps }) => {
|
2583
2598
|
const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
|
2584
|
-
|
2599
|
+
const { formatMessage } = reactIntl.useIntl();
|
2600
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, size, variant: statusVariant, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
|
2601
|
+
id: `content-manager.containers.List.${status}`,
|
2602
|
+
defaultMessage: capitalise(status)
|
2603
|
+
}) }) });
|
2585
2604
|
};
|
2586
2605
|
const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
|
2587
2606
|
const { formatMessage } = reactIntl.useIntl();
|
2588
2607
|
const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
|
2608
|
+
const params = reactRouterDom.useParams();
|
2589
2609
|
const title = isCreating ? formatMessage({
|
2590
2610
|
id: "content-manager.containers.edit.title.new",
|
2591
2611
|
defaultMessage: "Create an entry"
|
2592
2612
|
}) : documentTitle;
|
2593
2613
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "flex-start", paddingTop: 6, paddingBottom: 4, gap: 2, children: [
|
2594
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
2614
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
2615
|
+
strapiAdmin.BackButton,
|
2616
|
+
{
|
2617
|
+
fallback: params.collectionType === SINGLE_TYPES ? void 0 : `../${COLLECTION_TYPES}/${params.slug}`
|
2618
|
+
}
|
2619
|
+
),
|
2595
2620
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { width: "100%", justifyContent: "space-between", gap: "80px", alignItems: "flex-start", children: [
|
2596
2621
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "alpha", tag: "h1", children: title }),
|
2597
2622
|
/* @__PURE__ */ jsxRuntime.jsx(HeaderToolbar, {})
|
@@ -3028,7 +3053,7 @@ const Panel = React__namespace.forwardRef(({ children, title }, ref) => {
|
|
3028
3053
|
justifyContent: "stretch",
|
3029
3054
|
alignItems: "flex-start",
|
3030
3055
|
children: [
|
3031
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
|
3056
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", textColor: "neutral600", children: title }),
|
3032
3057
|
children
|
3033
3058
|
]
|
3034
3059
|
}
|
@@ -3278,18 +3303,10 @@ const SelectedEntriesTableContent = ({
|
|
3278
3303
|
search: row.locale && `?plugins[i18n][locale]=${row.locale}`
|
3279
3304
|
},
|
3280
3305
|
state: { from: pathname },
|
3281
|
-
label: formatMessage(
|
3282
|
-
|
3283
|
-
|
3284
|
-
|
3285
|
-
{
|
3286
|
-
id: "content-manager.components.ListViewHelperPluginTable.row-line",
|
3287
|
-
defaultMessage: "item line {number}"
|
3288
|
-
},
|
3289
|
-
{ number: index2 + 1 }
|
3290
|
-
)
|
3291
|
-
}
|
3292
|
-
),
|
3306
|
+
label: formatMessage({
|
3307
|
+
id: "content-manager.bulk-publish.edit",
|
3308
|
+
defaultMessage: "Edit"
|
3309
|
+
}),
|
3293
3310
|
target: "_blank",
|
3294
3311
|
marginLeft: "auto",
|
3295
3312
|
variant: "ghost",
|
@@ -3933,17 +3950,27 @@ const HistoryAction = ({ model, document }) => {
|
|
3933
3950
|
const { formatMessage } = reactIntl.useIntl();
|
3934
3951
|
const [{ query }] = strapiAdmin.useQueryParams();
|
3935
3952
|
const navigate = reactRouterDom.useNavigate();
|
3953
|
+
const { trackUsage } = strapiAdmin.useTracking();
|
3954
|
+
const { pathname } = reactRouterDom.useLocation();
|
3936
3955
|
const pluginsQueryParams = qs.stringify({ plugins: query.plugins }, { encode: false });
|
3937
3956
|
if (!window.strapi.features.isEnabled("cms-content-history")) {
|
3938
3957
|
return null;
|
3939
3958
|
}
|
3959
|
+
const handleOnClick = () => {
|
3960
|
+
const destination = { pathname: "history", search: pluginsQueryParams };
|
3961
|
+
trackUsage("willNavigate", {
|
3962
|
+
from: pathname,
|
3963
|
+
to: `${pathname}/${destination.pathname}`
|
3964
|
+
});
|
3965
|
+
navigate(destination);
|
3966
|
+
};
|
3940
3967
|
return {
|
3941
3968
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.ClockCounterClockwise, {}),
|
3942
3969
|
label: formatMessage({
|
3943
3970
|
id: "content-manager.history.document-action",
|
3944
3971
|
defaultMessage: "Content History"
|
3945
3972
|
}),
|
3946
|
-
onClick:
|
3973
|
+
onClick: handleOnClick,
|
3947
3974
|
disabled: (
|
3948
3975
|
/**
|
3949
3976
|
* The user is creating a new document.
|
@@ -4011,6 +4038,90 @@ const { setInitialData } = actions;
|
|
4011
4038
|
const reducer = toolkit.combineReducers({
|
4012
4039
|
app: reducer$1
|
4013
4040
|
});
|
4041
|
+
const previewApi = contentManagerApi.injectEndpoints({
|
4042
|
+
endpoints: (builder) => ({
|
4043
|
+
getPreviewUrl: builder.query({
|
4044
|
+
query({ query, params }) {
|
4045
|
+
return {
|
4046
|
+
url: `/content-manager/preview/url/${params.contentType}`,
|
4047
|
+
method: "GET",
|
4048
|
+
config: {
|
4049
|
+
params: query
|
4050
|
+
}
|
4051
|
+
};
|
4052
|
+
}
|
4053
|
+
})
|
4054
|
+
})
|
4055
|
+
});
|
4056
|
+
const { useGetPreviewUrlQuery } = previewApi;
|
4057
|
+
const ConditionalTooltip = ({ isShown, label, children }) => {
|
4058
|
+
if (isShown) {
|
4059
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tooltip, { label, children });
|
4060
|
+
}
|
4061
|
+
return children;
|
4062
|
+
};
|
4063
|
+
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4064
|
+
const { formatMessage } = reactIntl.useIntl();
|
4065
|
+
const { trackUsage } = strapiAdmin.useTracking();
|
4066
|
+
const { pathname } = reactRouterDom.useLocation();
|
4067
|
+
const [{ query }] = strapiAdmin.useQueryParams();
|
4068
|
+
const isModified = strapiAdmin.useForm("PreviewSidePanel", (state) => state.modified);
|
4069
|
+
const { data, error } = useGetPreviewUrlQuery({
|
4070
|
+
params: {
|
4071
|
+
contentType: model
|
4072
|
+
},
|
4073
|
+
query: {
|
4074
|
+
documentId,
|
4075
|
+
locale: document?.locale,
|
4076
|
+
status: document?.status
|
4077
|
+
}
|
4078
|
+
});
|
4079
|
+
if (!data?.data?.url || error) {
|
4080
|
+
return null;
|
4081
|
+
}
|
4082
|
+
const trackNavigation = () => {
|
4083
|
+
const destinationPathname = pathname.replace(/\/$/, "") + "/preview";
|
4084
|
+
trackUsage("willNavigate", { from: pathname, to: destinationPathname });
|
4085
|
+
};
|
4086
|
+
return {
|
4087
|
+
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
4088
|
+
content: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
4089
|
+
ConditionalTooltip,
|
4090
|
+
{
|
4091
|
+
label: formatMessage({
|
4092
|
+
id: "content-manager.preview.panel.button-disabled-tooltip",
|
4093
|
+
defaultMessage: "Please save to open the preview"
|
4094
|
+
}),
|
4095
|
+
isShown: isModified,
|
4096
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
4097
|
+
designSystem.Button,
|
4098
|
+
{
|
4099
|
+
variant: "tertiary",
|
4100
|
+
tag: reactRouterDom.Link,
|
4101
|
+
to: { pathname: "preview", search: qs.stringify(query, { encode: false }) },
|
4102
|
+
onClick: trackNavigation,
|
4103
|
+
flex: "auto",
|
4104
|
+
disabled: isModified,
|
4105
|
+
children: formatMessage({
|
4106
|
+
id: "content-manager.preview.panel.button",
|
4107
|
+
defaultMessage: "Open preview"
|
4108
|
+
})
|
4109
|
+
}
|
4110
|
+
)
|
4111
|
+
}
|
4112
|
+
) })
|
4113
|
+
};
|
4114
|
+
};
|
4115
|
+
const FEATURE_ID = "preview";
|
4116
|
+
const previewAdmin = {
|
4117
|
+
bootstrap(app) {
|
4118
|
+
if (!window.strapi.future.isEnabled(FEATURE_ID)) {
|
4119
|
+
return;
|
4120
|
+
}
|
4121
|
+
const contentManagerPluginApis = app.getPlugin("content-manager").apis;
|
4122
|
+
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4123
|
+
}
|
4124
|
+
};
|
4014
4125
|
const index = {
|
4015
4126
|
register(app) {
|
4016
4127
|
const cm = new ContentManagerPlugin();
|
@@ -4030,7 +4141,7 @@ const index = {
|
|
4030
4141
|
app.router.addRoute({
|
4031
4142
|
path: "content-manager/*",
|
4032
4143
|
lazy: async () => {
|
4033
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
4144
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-CN2bFL9V.js"));
|
4034
4145
|
return {
|
4035
4146
|
Component: Layout
|
4036
4147
|
};
|
@@ -4043,11 +4154,14 @@ const index = {
|
|
4043
4154
|
if (typeof historyAdmin.bootstrap === "function") {
|
4044
4155
|
historyAdmin.bootstrap(app);
|
4045
4156
|
}
|
4157
|
+
if (typeof previewAdmin.bootstrap === "function") {
|
4158
|
+
previewAdmin.bootstrap(app);
|
4159
|
+
}
|
4046
4160
|
},
|
4047
4161
|
async registerTrads({ locales }) {
|
4048
4162
|
const importedTrads = await Promise.all(
|
4049
4163
|
locales.map((locale) => {
|
4050
|
-
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-
|
4164
|
+
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`).then(({ default: data }) => {
|
4051
4165
|
return {
|
4052
4166
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4053
4167
|
locale
|
@@ -4105,5 +4219,6 @@ exports.useGetAllContentTypeSettingsQuery = useGetAllContentTypeSettingsQuery;
|
|
4105
4219
|
exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
4106
4220
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
4107
4221
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
4222
|
+
exports.useGetPreviewUrlQuery = useGetPreviewUrlQuery;
|
4108
4223
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
4109
|
-
//# sourceMappingURL=index-
|
4224
|
+
//# sourceMappingURL=index-DwOsF7wF.js.map
|