@strapi/content-manager 0.0.0-next.3c5400321681b66eb35ab84c11113a78c1d9386e → 0.0.0-next.3db8f1fc613b89bf7742dc5746bf21a8d8ba0d04
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-BPY6mJkq.js → ComponentConfigurationPage-6pw-DvAu.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-BPY6mJkq.js.map → ComponentConfigurationPage-6pw-DvAu.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-CupNXEhO.mjs → ComponentConfigurationPage-B4Nft8f5.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-CupNXEhO.mjs.map → ComponentConfigurationPage-B4Nft8f5.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-p7tDc02Z.mjs → EditConfigurationPage-BHOCGzAM.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-p7tDc02Z.mjs.map → EditConfigurationPage-BHOCGzAM.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-D8xVthEX.js → EditConfigurationPage-DXBEGkOc.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-D8xVthEX.js.map → EditConfigurationPage-DXBEGkOc.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-xOHmYscO.mjs → EditViewPage-CdRxfy5B.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-xOHmYscO.mjs.map → EditViewPage-CdRxfy5B.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-CgFk840g.js → EditViewPage-Ck6Duztu.js} +3 -3
- package/dist/_chunks/{EditViewPage-CgFk840g.js.map → EditViewPage-Ck6Duztu.js.map} +1 -1
- package/dist/_chunks/{Field-C412zdm1.mjs → Field-DDSx-gBR.mjs} +3 -3
- package/dist/_chunks/{Field-C412zdm1.mjs.map → Field-DDSx-gBR.mjs.map} +1 -1
- package/dist/_chunks/{Field-8_f3jHUE.js → Field-T3F_jdGo.js} +3 -3
- package/dist/_chunks/{Field-8_f3jHUE.js.map → Field-T3F_jdGo.js.map} +1 -1
- package/dist/_chunks/{Form-DbgCnFX-.js → Form-C-wjP4UH.js} +2 -2
- package/dist/_chunks/{Form-DbgCnFX-.js.map → Form-C-wjP4UH.js.map} +1 -1
- package/dist/_chunks/{Form-BD0cBtWK.mjs → Form-DBXQL3w4.mjs} +2 -2
- package/dist/_chunks/{Form-BD0cBtWK.mjs.map → Form-DBXQL3w4.mjs.map} +1 -1
- package/dist/_chunks/{History-CrhfHruz.mjs → History-CynfBe3Q.mjs} +4 -4
- package/dist/_chunks/{History-CrhfHruz.mjs.map → History-CynfBe3Q.mjs.map} +1 -1
- package/dist/_chunks/{History-CEAv0jdM.js → History-DMFKKvIA.js} +4 -4
- package/dist/_chunks/{History-CEAv0jdM.js.map → History-DMFKKvIA.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-DK7F6XUX.js → ListConfigurationPage-BDV_ABiG.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-DK7F6XUX.js.map → ListConfigurationPage-BDV_ABiG.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-CtCH39TL.mjs → ListConfigurationPage-D2_aIJSH.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-CtCH39TL.mjs.map → ListConfigurationPage-D2_aIJSH.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-CjARXDmW.mjs → ListViewPage-BJq_SQj8.mjs} +3 -3
- package/dist/_chunks/{ListViewPage-CjARXDmW.mjs.map → ListViewPage-BJq_SQj8.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-w3fcfl3W.js → ListViewPage-Z3jPNVn2.js} +3 -3
- package/dist/_chunks/{ListViewPage-w3fcfl3W.js.map → ListViewPage-Z3jPNVn2.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-LXhvYClG.mjs → NoContentTypePage-CEdKqCfY.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-LXhvYClG.mjs.map → NoContentTypePage-CEdKqCfY.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-B53dO6wE.js → NoContentTypePage-ZvbWHVfG.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-B53dO6wE.js.map → NoContentTypePage-ZvbWHVfG.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BnF87i8e.mjs → NoPermissionsPage-BjzbHoxM.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BnF87i8e.mjs.map → NoPermissionsPage-BjzbHoxM.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CR9sQimh.js → NoPermissionsPage-D9hyWZPp.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CR9sQimh.js.map → NoPermissionsPage-D9hyWZPp.js.map} +1 -1
- package/dist/_chunks/{Relations-3MolmB-L.js → Relations-BlhtPLZk.js} +3 -3
- package/dist/_chunks/{Relations-3MolmB-L.js.map → Relations-BlhtPLZk.js.map} +1 -1
- package/dist/_chunks/{Relations-A7TTWV50.mjs → Relations-ChkJKzz8.mjs} +3 -3
- package/dist/_chunks/{Relations-A7TTWV50.mjs.map → Relations-ChkJKzz8.mjs.map} +1 -1
- package/dist/_chunks/{en-C-J4DGEe.js → en-Bdpa50w3.js} +3 -1
- package/dist/_chunks/{en-C-J4DGEe.js.map → en-Bdpa50w3.js.map} +1 -1
- package/dist/_chunks/{en-DPfZ6tPQ.mjs → en-CZw4xdPY.mjs} +3 -1
- package/dist/_chunks/{en-DPfZ6tPQ.mjs.map → en-CZw4xdPY.mjs.map} +1 -1
- package/dist/_chunks/{index-CIGqNlT4.js → index-Bi51q_DG.js} +58 -18
- package/dist/_chunks/{index-CIGqNlT4.js.map → index-Bi51q_DG.js.map} +1 -1
- package/dist/_chunks/{index-CTBQnDee.mjs → index-C0PXR_tv.mjs} +60 -20
- package/dist/_chunks/{index-CTBQnDee.mjs.map → index-C0PXR_tv.mjs.map} +1 -1
- package/dist/_chunks/{layout-CQxhoE_v.mjs → layout-B5XH5gpH.mjs} +3 -3
- package/dist/_chunks/{layout-CQxhoE_v.mjs.map → layout-B5XH5gpH.mjs.map} +1 -1
- package/dist/_chunks/{layout-Bv0GJto7.js → layout-MJxdu163.js} +3 -3
- package/dist/_chunks/{layout-Bv0GJto7.js.map → layout-MJxdu163.js.map} +1 -1
- package/dist/_chunks/{relations-fi_CbE2o.mjs → relations-D9fqpVRO.mjs} +6 -3
- package/dist/_chunks/relations-D9fqpVRO.mjs.map +1 -0
- package/dist/_chunks/{relations-CbnsORWb.js → relations-lCDy3D3D.js} +6 -3
- package/dist/_chunks/relations-lCDy3D3D.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +6 -6
- package/dist/_chunks/relations-CbnsORWb.js.map +0 -1
- package/dist/_chunks/relations-fi_CbE2o.mjs.map +0 -1
@@ -1686,7 +1686,7 @@ const useDocumentActions = () => {
|
|
1686
1686
|
};
|
1687
1687
|
};
|
1688
1688
|
const ProtectedHistoryPage = React.lazy(
|
1689
|
-
() => Promise.resolve().then(() => require("./History-
|
1689
|
+
() => Promise.resolve().then(() => require("./History-DMFKKvIA.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1690
1690
|
);
|
1691
1691
|
const routes$1 = [
|
1692
1692
|
{
|
@@ -1699,31 +1699,31 @@ const routes$1 = [
|
|
1699
1699
|
}
|
1700
1700
|
];
|
1701
1701
|
const ProtectedEditViewPage = React.lazy(
|
1702
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1702
|
+
() => Promise.resolve().then(() => require("./EditViewPage-Ck6Duztu.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1703
1703
|
);
|
1704
1704
|
const ProtectedListViewPage = React.lazy(
|
1705
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1705
|
+
() => Promise.resolve().then(() => require("./ListViewPage-Z3jPNVn2.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1706
1706
|
);
|
1707
1707
|
const ProtectedListConfiguration = React.lazy(
|
1708
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1708
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-BDV_ABiG.js")).then((mod) => ({
|
1709
1709
|
default: mod.ProtectedListConfiguration
|
1710
1710
|
}))
|
1711
1711
|
);
|
1712
1712
|
const ProtectedEditConfigurationPage = React.lazy(
|
1713
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1713
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-DXBEGkOc.js")).then((mod) => ({
|
1714
1714
|
default: mod.ProtectedEditConfigurationPage
|
1715
1715
|
}))
|
1716
1716
|
);
|
1717
1717
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1718
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1718
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-6pw-DvAu.js")).then((mod) => ({
|
1719
1719
|
default: mod.ProtectedComponentConfigurationPage
|
1720
1720
|
}))
|
1721
1721
|
);
|
1722
1722
|
const NoPermissions = React.lazy(
|
1723
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1723
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-D9hyWZPp.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1724
1724
|
);
|
1725
1725
|
const NoContentType = React.lazy(
|
1726
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1726
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-ZvbWHVfG.js")).then((mod) => ({ default: mod.NoContentType }))
|
1727
1727
|
);
|
1728
1728
|
const CollectionTypePages = () => {
|
1729
1729
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -4041,6 +4041,9 @@ const previewApi = contentManagerApi.injectEndpoints({
|
|
4041
4041
|
const { useGetPreviewUrlQuery } = previewApi;
|
4042
4042
|
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4043
4043
|
const { formatMessage } = reactIntl.useIntl();
|
4044
|
+
const { toggleNotification } = strapiAdmin.useNotification();
|
4045
|
+
const { copy } = strapiAdmin.useClipboard();
|
4046
|
+
const { trackUsage } = strapiAdmin.useTracking();
|
4044
4047
|
const { data, error } = useGetPreviewUrlQuery({
|
4045
4048
|
params: {
|
4046
4049
|
contentType: model
|
@@ -4054,12 +4057,51 @@ const PreviewSidePanel = ({ model, documentId, document }) => {
|
|
4054
4057
|
if (!data?.data?.url || error) {
|
4055
4058
|
return null;
|
4056
4059
|
}
|
4060
|
+
const { url } = data.data;
|
4061
|
+
const handleCopyLink = () => {
|
4062
|
+
copy(url);
|
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");
|
4073
|
+
};
|
4057
4074
|
return {
|
4058
4075
|
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
4059
|
-
content: /* @__PURE__ */ jsxRuntime.
|
4060
|
-
|
4061
|
-
|
4062
|
-
|
4076
|
+
content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, width: "100%", children: [
|
4077
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4078
|
+
designSystem.Button,
|
4079
|
+
{
|
4080
|
+
variant: "tertiary",
|
4081
|
+
tag: reactRouterDom.Link,
|
4082
|
+
to: url,
|
4083
|
+
onClick: handleClick,
|
4084
|
+
target: "_blank",
|
4085
|
+
flex: "auto",
|
4086
|
+
children: formatMessage({
|
4087
|
+
id: "content-manager.preview.panel.button",
|
4088
|
+
defaultMessage: "Open preview"
|
4089
|
+
})
|
4090
|
+
}
|
4091
|
+
),
|
4092
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4093
|
+
designSystem.IconButton,
|
4094
|
+
{
|
4095
|
+
type: "button",
|
4096
|
+
label: formatMessage({
|
4097
|
+
id: "preview.copy.label",
|
4098
|
+
defaultMessage: "Copy preview link"
|
4099
|
+
}),
|
4100
|
+
onClick: handleCopyLink,
|
4101
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Link, {})
|
4102
|
+
}
|
4103
|
+
)
|
4104
|
+
] })
|
4063
4105
|
};
|
4064
4106
|
};
|
4065
4107
|
const FEATURE_ID = "preview";
|
@@ -4069,9 +4111,7 @@ const previewAdmin = {
|
|
4069
4111
|
return;
|
4070
4112
|
}
|
4071
4113
|
const contentManagerPluginApis = app.getPlugin("content-manager").apis;
|
4072
|
-
|
4073
|
-
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4074
|
-
}
|
4114
|
+
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4075
4115
|
}
|
4076
4116
|
};
|
4077
4117
|
const index = {
|
@@ -4093,7 +4133,7 @@ const index = {
|
|
4093
4133
|
app.router.addRoute({
|
4094
4134
|
path: "content-manager/*",
|
4095
4135
|
lazy: async () => {
|
4096
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
4136
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-MJxdu163.js"));
|
4097
4137
|
return {
|
4098
4138
|
Component: Layout
|
4099
4139
|
};
|
@@ -4113,7 +4153,7 @@ const index = {
|
|
4113
4153
|
async registerTrads({ locales }) {
|
4114
4154
|
const importedTrads = await Promise.all(
|
4115
4155
|
locales.map((locale) => {
|
4116
|
-
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-
|
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-Bdpa50w3.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 }) => {
|
4117
4157
|
return {
|
4118
4158
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4119
4159
|
locale
|
@@ -4172,4 +4212,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
|
4172
4212
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
4173
4213
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
4174
4214
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
4175
|
-
//# sourceMappingURL=index-
|
4215
|
+
//# sourceMappingURL=index-Bi51q_DG.js.map
|