@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
@@ -1,6 +1,6 @@
|
|
1
|
-
import { More, Cross, WarningCircle, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, ClockCounterClockwise, Feather } from "@strapi/icons";
|
1
|
+
import { More, Cross, WarningCircle, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, ClockCounterClockwise, Link as Link$1, Feather } from "@strapi/icons";
|
2
2
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
3
|
-
import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useForm, useTracking, useGuidedTour, BackButton, DescriptionComponentRenderer, useTable, Table } from "@strapi/admin/strapi-admin";
|
3
|
+
import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useForm, useTracking, useGuidedTour, BackButton, DescriptionComponentRenderer, useTable, Table, useClipboard } from "@strapi/admin/strapi-admin";
|
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";
|
@@ -1664,7 +1664,7 @@ const useDocumentActions = () => {
|
|
1664
1664
|
};
|
1665
1665
|
};
|
1666
1666
|
const ProtectedHistoryPage = lazy(
|
1667
|
-
() => import("./History-
|
1667
|
+
() => import("./History-CynfBe3Q.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1668
1668
|
);
|
1669
1669
|
const routes$1 = [
|
1670
1670
|
{
|
@@ -1677,31 +1677,31 @@ const routes$1 = [
|
|
1677
1677
|
}
|
1678
1678
|
];
|
1679
1679
|
const ProtectedEditViewPage = lazy(
|
1680
|
-
() => import("./EditViewPage-
|
1680
|
+
() => import("./EditViewPage-CdRxfy5B.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1681
1681
|
);
|
1682
1682
|
const ProtectedListViewPage = lazy(
|
1683
|
-
() => import("./ListViewPage-
|
1683
|
+
() => import("./ListViewPage-BJq_SQj8.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1684
1684
|
);
|
1685
1685
|
const ProtectedListConfiguration = lazy(
|
1686
|
-
() => import("./ListConfigurationPage-
|
1686
|
+
() => import("./ListConfigurationPage-D2_aIJSH.mjs").then((mod) => ({
|
1687
1687
|
default: mod.ProtectedListConfiguration
|
1688
1688
|
}))
|
1689
1689
|
);
|
1690
1690
|
const ProtectedEditConfigurationPage = lazy(
|
1691
|
-
() => import("./EditConfigurationPage-
|
1691
|
+
() => import("./EditConfigurationPage-BHOCGzAM.mjs").then((mod) => ({
|
1692
1692
|
default: mod.ProtectedEditConfigurationPage
|
1693
1693
|
}))
|
1694
1694
|
);
|
1695
1695
|
const ProtectedComponentConfigurationPage = lazy(
|
1696
|
-
() => import("./ComponentConfigurationPage-
|
1696
|
+
() => import("./ComponentConfigurationPage-B4Nft8f5.mjs").then((mod) => ({
|
1697
1697
|
default: mod.ProtectedComponentConfigurationPage
|
1698
1698
|
}))
|
1699
1699
|
);
|
1700
1700
|
const NoPermissions = lazy(
|
1701
|
-
() => import("./NoPermissionsPage-
|
1701
|
+
() => import("./NoPermissionsPage-BjzbHoxM.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1702
1702
|
);
|
1703
1703
|
const NoContentType = lazy(
|
1704
|
-
() => import("./NoContentTypePage-
|
1704
|
+
() => import("./NoContentTypePage-CEdKqCfY.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1705
1705
|
);
|
1706
1706
|
const CollectionTypePages = () => {
|
1707
1707
|
const { collectionType } = useParams();
|
@@ -4019,6 +4019,9 @@ const previewApi = contentManagerApi.injectEndpoints({
|
|
4019
4019
|
const { useGetPreviewUrlQuery } = previewApi;
|
4020
4020
|
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4021
4021
|
const { formatMessage } = useIntl();
|
4022
|
+
const { toggleNotification } = useNotification();
|
4023
|
+
const { copy } = useClipboard();
|
4024
|
+
const { trackUsage } = useTracking();
|
4022
4025
|
const { data, error } = useGetPreviewUrlQuery({
|
4023
4026
|
params: {
|
4024
4027
|
contentType: model
|
@@ -4032,12 +4035,51 @@ const PreviewSidePanel = ({ model, documentId, document }) => {
|
|
4032
4035
|
if (!data?.data?.url || error) {
|
4033
4036
|
return null;
|
4034
4037
|
}
|
4038
|
+
const { url } = data.data;
|
4039
|
+
const handleCopyLink = () => {
|
4040
|
+
copy(url);
|
4041
|
+
toggleNotification({
|
4042
|
+
message: formatMessage({
|
4043
|
+
id: "content-manager.preview.copy.success",
|
4044
|
+
defaultMessage: "Copied preview link"
|
4045
|
+
}),
|
4046
|
+
type: "success"
|
4047
|
+
});
|
4048
|
+
};
|
4049
|
+
const handleClick = () => {
|
4050
|
+
trackUsage("willOpenPreview");
|
4051
|
+
};
|
4035
4052
|
return {
|
4036
4053
|
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
4037
|
-
content: /* @__PURE__ */
|
4038
|
-
|
4039
|
-
|
4040
|
-
|
4054
|
+
content: /* @__PURE__ */ jsxs(Flex, { gap: 2, width: "100%", children: [
|
4055
|
+
/* @__PURE__ */ jsx(
|
4056
|
+
Button,
|
4057
|
+
{
|
4058
|
+
variant: "tertiary",
|
4059
|
+
tag: Link,
|
4060
|
+
to: url,
|
4061
|
+
onClick: handleClick,
|
4062
|
+
target: "_blank",
|
4063
|
+
flex: "auto",
|
4064
|
+
children: formatMessage({
|
4065
|
+
id: "content-manager.preview.panel.button",
|
4066
|
+
defaultMessage: "Open preview"
|
4067
|
+
})
|
4068
|
+
}
|
4069
|
+
),
|
4070
|
+
/* @__PURE__ */ jsx(
|
4071
|
+
IconButton,
|
4072
|
+
{
|
4073
|
+
type: "button",
|
4074
|
+
label: formatMessage({
|
4075
|
+
id: "preview.copy.label",
|
4076
|
+
defaultMessage: "Copy preview link"
|
4077
|
+
}),
|
4078
|
+
onClick: handleCopyLink,
|
4079
|
+
children: /* @__PURE__ */ jsx(Link$1, {})
|
4080
|
+
}
|
4081
|
+
)
|
4082
|
+
] })
|
4041
4083
|
};
|
4042
4084
|
};
|
4043
4085
|
const FEATURE_ID = "preview";
|
@@ -4047,9 +4089,7 @@ const previewAdmin = {
|
|
4047
4089
|
return;
|
4048
4090
|
}
|
4049
4091
|
const contentManagerPluginApis = app.getPlugin("content-manager").apis;
|
4050
|
-
|
4051
|
-
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4052
|
-
}
|
4092
|
+
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4053
4093
|
}
|
4054
4094
|
};
|
4055
4095
|
const index = {
|
@@ -4071,7 +4111,7 @@ const index = {
|
|
4071
4111
|
app.router.addRoute({
|
4072
4112
|
path: "content-manager/*",
|
4073
4113
|
lazy: async () => {
|
4074
|
-
const { Layout } = await import("./layout-
|
4114
|
+
const { Layout } = await import("./layout-B5XH5gpH.mjs");
|
4075
4115
|
return {
|
4076
4116
|
Component: Layout
|
4077
4117
|
};
|
@@ -4091,7 +4131,7 @@ const index = {
|
|
4091
4131
|
async registerTrads({ locales }) {
|
4092
4132
|
const importedTrads = await Promise.all(
|
4093
4133
|
locales.map((locale) => {
|
4094
|
-
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-
|
4134
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-CZw4xdPY.mjs"), "./translations/es.json": () => import("./es-D34tqjMw.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr--pg5jUbt.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-BHqhDq4V.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
|
4095
4135
|
return {
|
4096
4136
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4097
4137
|
locale
|
@@ -4152,4 +4192,4 @@ export {
|
|
4152
4192
|
capitalise as y,
|
4153
4193
|
useUpdateContentTypeConfigurationMutation as z
|
4154
4194
|
};
|
4155
|
-
//# sourceMappingURL=index-
|
4195
|
+
//# sourceMappingURL=index-C0PXR_tv.mjs.map
|