@strapi/content-manager 0.0.0-experimental.7273fc63f5c2c8aa9e100655b1776f3e0621e61a → 0.0.0-experimental.73ff3d9f3b7e8959f6c88caa89c356b1d3695824
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-D2_cVxXK.js → ComponentConfigurationPage-CpJNPBgk.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-D2_cVxXK.js.map → ComponentConfigurationPage-CpJNPBgk.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-suSMW3KC.mjs → ComponentConfigurationPage-TYDPg5WG.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-suSMW3KC.mjs.map → ComponentConfigurationPage-TYDPg5WG.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Z_VzHVH4.js → EditConfigurationPage-CFDe6SA1.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-Z_VzHVH4.js.map → EditConfigurationPage-CFDe6SA1.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CBscKbxt.mjs → EditConfigurationPage-DqL8Pq5r.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CBscKbxt.mjs.map → EditConfigurationPage-DqL8Pq5r.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-D5Zhyw_q.mjs → EditViewPage-RXrFLav2.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-D5Zhyw_q.mjs.map → EditViewPage-RXrFLav2.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-DzDDKiF5.js → EditViewPage-khfP2CR3.js} +3 -3
- package/dist/_chunks/{EditViewPage-DzDDKiF5.js.map → EditViewPage-khfP2CR3.js.map} +1 -1
- package/dist/_chunks/{Field-FNlyAbcI.mjs → Field--rQeS6Zj.mjs} +4 -4
- package/dist/_chunks/Field--rQeS6Zj.mjs.map +1 -0
- package/dist/_chunks/{Field-CZHNLm_m.js → Field-C1ftmTe9.js} +4 -4
- package/dist/_chunks/Field-C1ftmTe9.js.map +1 -0
- package/dist/_chunks/{Form-Sq_OVNv-.mjs → Form-COtGXyUE.mjs} +2 -2
- package/dist/_chunks/{Form-Sq_OVNv-.mjs.map → Form-COtGXyUE.mjs.map} +1 -1
- package/dist/_chunks/{Form-DqPHDLuK.js → Form-CwdX5oLw.js} +2 -2
- package/dist/_chunks/{Form-DqPHDLuK.js.map → Form-CwdX5oLw.js.map} +1 -1
- package/dist/_chunks/{History-DlL3k_OW.mjs → History-BevwkPO1.mjs} +4 -4
- package/dist/_chunks/{History-DlL3k_OW.mjs.map → History-BevwkPO1.mjs.map} +1 -1
- package/dist/_chunks/{History-B-ZiOAEg.js → History-DKS2aqqM.js} +4 -4
- package/dist/_chunks/{History-B-ZiOAEg.js.map → History-DKS2aqqM.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-xj3cSF5M.mjs → ListConfigurationPage-DNfZDtDA.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-xj3cSF5M.mjs.map → ListConfigurationPage-DNfZDtDA.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-Cc0hLAoS.js → ListConfigurationPage-LSYSPZHH.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-Cc0hLAoS.js.map → ListConfigurationPage-LSYSPZHH.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-C9STpcYd.mjs → ListViewPage-C1PyuYRS.mjs} +3 -3
- package/dist/_chunks/{ListViewPage-C9STpcYd.mjs.map → ListViewPage-C1PyuYRS.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-D48T84aT.js → ListViewPage-DlUpqLIo.js} +3 -3
- package/dist/_chunks/{ListViewPage-D48T84aT.js.map → ListViewPage-DlUpqLIo.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-DpV_ouD6.mjs → NoContentTypePage-C9q744z1.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-DpV_ouD6.mjs.map → NoContentTypePage-C9q744z1.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BnUmUnXQ.js → NoContentTypePage-m8wt3sf6.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BnUmUnXQ.js.map → NoContentTypePage-m8wt3sf6.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BeDixsE9.mjs → NoPermissionsPage-8BM-LWta.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BeDixsE9.mjs.map → NoPermissionsPage-8BM-LWta.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-z-CpOFfh.js → NoPermissionsPage-DLfPsA0Q.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-z-CpOFfh.js.map → NoPermissionsPage-DLfPsA0Q.js.map} +1 -1
- package/dist/_chunks/{Relations-CTiimSAg.mjs → Relations-D25xRcFy.mjs} +3 -3
- package/dist/_chunks/{Relations-CTiimSAg.mjs.map → Relations-D25xRcFy.mjs.map} +1 -1
- package/dist/_chunks/{Relations-Cs5vJLAp.js → Relations-OMriCP_L.js} +3 -3
- package/dist/_chunks/{Relations-Cs5vJLAp.js.map → Relations-OMriCP_L.js.map} +1 -1
- package/dist/_chunks/{en-Bm0D0IWz.js → en-Bdpa50w3.js} +6 -2
- package/dist/_chunks/{en-Bm0D0IWz.js.map → en-Bdpa50w3.js.map} +1 -1
- package/dist/_chunks/{en-DKV44jRb.mjs → en-CZw4xdPY.mjs} +6 -2
- package/dist/_chunks/{en-DKV44jRb.mjs.map → en-CZw4xdPY.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-DxrTDLl6.mjs → fr--pg5jUbt.mjs} +2 -2
- package/dist/_chunks/{fr-DxrTDLl6.mjs.map → fr--pg5jUbt.mjs.map} +1 -1
- package/dist/_chunks/{fr-C6t7ywEg.js → fr-B2Kyv8Z9.js} +2 -2
- package/dist/_chunks/{fr-C6t7ywEg.js.map → fr-B2Kyv8Z9.js.map} +1 -1
- package/dist/_chunks/{index-DUZzV11o.mjs → index-BvGihCJp.mjs} +98 -16
- package/dist/_chunks/index-BvGihCJp.mjs.map +1 -0
- package/dist/_chunks/{index-dFQ_8EM3.js → index-DqZnjo8F.js} +96 -14
- package/dist/_chunks/index-DqZnjo8F.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-Bu-ET7w6.js → layout-CmaemAO3.js} +3 -3
- package/dist/_chunks/{layout-Bu-ET7w6.js.map → layout-CmaemAO3.js.map} +1 -1
- package/dist/_chunks/{layout-C-eg7m9Y.mjs → layout-ykHSe2KQ.mjs} +3 -3
- package/dist/_chunks/{layout-C-eg7m9Y.mjs.map → layout-ykHSe2KQ.mjs.map} +1 -1
- package/dist/_chunks/{relations-isLeDaA0.js → relations-D9fKsCLY.js} +2 -2
- package/dist/_chunks/{relations-isLeDaA0.js.map → relations-D9fKsCLY.js.map} +1 -1
- package/dist/_chunks/{relations-Cj61Oyt2.mjs → relations-u-Vz51Ea.mjs} +2 -2
- package/dist/_chunks/{relations-Cj61Oyt2.mjs.map → relations-u-Vz51Ea.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
- package/dist/admin/src/preview/index.d.ts +1 -1
- package/dist/admin/src/preview/services/preview.d.ts +3 -0
- package/package.json +6 -6
- package/dist/_chunks/Field-CZHNLm_m.js.map +0 -1
- package/dist/_chunks/Field-FNlyAbcI.mjs.map +0 -1
- package/dist/_chunks/index-DUZzV11o.mjs.map +0 -1
- package/dist/_chunks/index-dFQ_8EM3.js.map +0 -1
@@ -74,7 +74,7 @@ const en = {
|
|
74
74
|
"components.TableEmpty.withFilters": "There are no {contentType} with the applied filters...",
|
75
75
|
"components.TableEmpty.withSearch": "There are no {contentType} corresponding to the search ({search})...",
|
76
76
|
"components.TableEmpty.withoutFilter": "There are no {contentType}...",
|
77
|
-
"components.empty-repeatable": "No entry yet. Click
|
77
|
+
"components.empty-repeatable": "No entry yet. Click to add one.",
|
78
78
|
"components.notification.info.maximum-requirement": "You have already reached the maximum number of fields",
|
79
79
|
"components.notification.info.minimum-requirement": "A field has been added to match the minimum requirement",
|
80
80
|
"components.repeatable.reorder.error": "An error occurred while reordering your component's field, please try again",
|
@@ -234,6 +234,10 @@ const en = {
|
|
234
234
|
"popUpWarning.warning.unpublish-question": "Are you sure you don't want to publish it?",
|
235
235
|
"popUpWarning.warning.updateAllSettings": "This will modify all your settings",
|
236
236
|
"popover.display-relations.label": "Display relations",
|
237
|
+
"preview.panel.title": "Preview",
|
238
|
+
"preview.panel.button": "Open preview",
|
239
|
+
"preview.copy.label": "Copy preview link",
|
240
|
+
"preview.copy.success": "Copied preview link",
|
237
241
|
"relation.add": "Add relation",
|
238
242
|
"relation.disconnect": "Remove",
|
239
243
|
"relation.error-adding-relation": "An error occurred while trying to add the relation.",
|
@@ -290,4 +294,4 @@ export {
|
|
290
294
|
models,
|
291
295
|
pageNotFound
|
292
296
|
};
|
293
|
-
//# sourceMappingURL=en-
|
297
|
+
//# sourceMappingURL=en-CZw4xdPY.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"en-
|
1
|
+
{"version":3,"file":"en-CZw4xdPY.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -54,7 +54,7 @@ const es = {
|
|
54
54
|
"components.TableEmpty.withFilters": "No hay {contentType} con los filtros aplicados...",
|
55
55
|
"components.TableEmpty.withSearch": "No hay {contentType} que coincida con la búsqueda ({search})...",
|
56
56
|
"components.TableEmpty.withoutFilter": "No hay {contentType}...",
|
57
|
-
"components.empty-repeatable": "Aún no hay entrada. Haga clic
|
57
|
+
"components.empty-repeatable": "Aún no hay entrada. Haga clic para agregar una.",
|
58
58
|
"components.notification.info.maximum-requirement": "Ya has alcanzado el número máximo de campos",
|
59
59
|
"components.notification.info.minimum-requirement": "Se ha agregado un campo para cumplir con el requisito mínimo",
|
60
60
|
"components.repeatable.reorder.error": "Se produjo un error al reordenar el campo de su componente. Vuelva a intentarlo.",
|
@@ -193,4 +193,4 @@ exports.default = es;
|
|
193
193
|
exports.groups = groups;
|
194
194
|
exports.models = models;
|
195
195
|
exports.pageNotFound = pageNotFound;
|
196
|
-
//# sourceMappingURL=es-
|
196
|
+
//# sourceMappingURL=es-9K52xZIr.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"es-9K52xZIr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -52,7 +52,7 @@ const es = {
|
|
52
52
|
"components.TableEmpty.withFilters": "No hay {contentType} con los filtros aplicados...",
|
53
53
|
"components.TableEmpty.withSearch": "No hay {contentType} que coincida con la búsqueda ({search})...",
|
54
54
|
"components.TableEmpty.withoutFilter": "No hay {contentType}...",
|
55
|
-
"components.empty-repeatable": "Aún no hay entrada. Haga clic
|
55
|
+
"components.empty-repeatable": "Aún no hay entrada. Haga clic para agregar una.",
|
56
56
|
"components.notification.info.maximum-requirement": "Ya has alcanzado el número máximo de campos",
|
57
57
|
"components.notification.info.minimum-requirement": "Se ha agregado un campo para cumplir con el requisito mínimo",
|
58
58
|
"components.repeatable.reorder.error": "Se produjo un error al reordenar el campo de su componente. Vuelva a intentarlo.",
|
@@ -193,4 +193,4 @@ export {
|
|
193
193
|
models,
|
194
194
|
pageNotFound
|
195
195
|
};
|
196
|
-
//# sourceMappingURL=es-
|
196
|
+
//# sourceMappingURL=es-D34tqjMw.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es-
|
1
|
+
{"version":3,"file":"es-D34tqjMw.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -52,7 +52,7 @@ const fr = {
|
|
52
52
|
"components.TableEmpty.withFilters": "Aucun {contentType} n'a été trouvé avec ces filtres...",
|
53
53
|
"components.TableEmpty.withSearch": "Aucun {contentType} n'a été trouvé avec cette recherche ({search})...",
|
54
54
|
"components.TableEmpty.withoutFilter": "Aucun {contentType} n'a été trouvé...",
|
55
|
-
"components.empty-repeatable": "Il n'a pas encore d'entrée. Cliquez
|
55
|
+
"components.empty-repeatable": "Il n'a pas encore d'entrée. Cliquez pour en ajouter une.",
|
56
56
|
"components.notification.info.maximum-requirement": "Le nombre maximal de champs est atteint",
|
57
57
|
"components.notification.info.minimum-requirement": "Un champ a été rajouté pour remplir les conditions minimales",
|
58
58
|
"components.repeatable.reorder.error": "Une erreur s'est produite lors de la réorganisation du champ de votre composant, veuillez réessayer",
|
@@ -213,4 +213,4 @@ export {
|
|
213
213
|
models,
|
214
214
|
pageNotFound
|
215
215
|
};
|
216
|
-
//# sourceMappingURL=fr
|
216
|
+
//# sourceMappingURL=fr--pg5jUbt.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fr
|
1
|
+
{"version":3,"file":"fr--pg5jUbt.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -54,7 +54,7 @@ const fr = {
|
|
54
54
|
"components.TableEmpty.withFilters": "Aucun {contentType} n'a été trouvé avec ces filtres...",
|
55
55
|
"components.TableEmpty.withSearch": "Aucun {contentType} n'a été trouvé avec cette recherche ({search})...",
|
56
56
|
"components.TableEmpty.withoutFilter": "Aucun {contentType} n'a été trouvé...",
|
57
|
-
"components.empty-repeatable": "Il n'a pas encore d'entrée. Cliquez
|
57
|
+
"components.empty-repeatable": "Il n'a pas encore d'entrée. Cliquez pour en ajouter une.",
|
58
58
|
"components.notification.info.maximum-requirement": "Le nombre maximal de champs est atteint",
|
59
59
|
"components.notification.info.minimum-requirement": "Un champ a été rajouté pour remplir les conditions minimales",
|
60
60
|
"components.repeatable.reorder.error": "Une erreur s'est produite lors de la réorganisation du champ de votre composant, veuillez réessayer",
|
@@ -213,4 +213,4 @@ exports.default = fr;
|
|
213
213
|
exports.groups = groups;
|
214
214
|
exports.models = models;
|
215
215
|
exports.pageNotFound = pageNotFound;
|
216
|
-
//# sourceMappingURL=fr-
|
216
|
+
//# sourceMappingURL=fr-B2Kyv8Z9.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fr-
|
1
|
+
{"version":3,"file":"fr-B2Kyv8Z9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -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";
|
@@ -271,7 +271,7 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
271
271
|
*/
|
272
272
|
getAllDocuments: builder.query({
|
273
273
|
query: ({ model, params }) => ({
|
274
|
-
url: `/content-manager/collection-types/${model}
|
274
|
+
url: `/content-manager/collection-types/${model}`,
|
275
275
|
method: "GET",
|
276
276
|
config: {
|
277
277
|
params
|
@@ -1664,7 +1664,7 @@ const useDocumentActions = () => {
|
|
1664
1664
|
};
|
1665
1665
|
};
|
1666
1666
|
const ProtectedHistoryPage = lazy(
|
1667
|
-
() => import("./History-
|
1667
|
+
() => import("./History-BevwkPO1.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-RXrFLav2.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1681
1681
|
);
|
1682
1682
|
const ProtectedListViewPage = lazy(
|
1683
|
-
() => import("./ListViewPage-
|
1683
|
+
() => import("./ListViewPage-C1PyuYRS.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1684
1684
|
);
|
1685
1685
|
const ProtectedListConfiguration = lazy(
|
1686
|
-
() => import("./ListConfigurationPage-
|
1686
|
+
() => import("./ListConfigurationPage-DNfZDtDA.mjs").then((mod) => ({
|
1687
1687
|
default: mod.ProtectedListConfiguration
|
1688
1688
|
}))
|
1689
1689
|
);
|
1690
1690
|
const ProtectedEditConfigurationPage = lazy(
|
1691
|
-
() => import("./EditConfigurationPage-
|
1691
|
+
() => import("./EditConfigurationPage-DqL8Pq5r.mjs").then((mod) => ({
|
1692
1692
|
default: mod.ProtectedEditConfigurationPage
|
1693
1693
|
}))
|
1694
1694
|
);
|
1695
1695
|
const ProtectedComponentConfigurationPage = lazy(
|
1696
|
-
() => import("./ComponentConfigurationPage-
|
1696
|
+
() => import("./ComponentConfigurationPage-TYDPg5WG.mjs").then((mod) => ({
|
1697
1697
|
default: mod.ProtectedComponentConfigurationPage
|
1698
1698
|
}))
|
1699
1699
|
);
|
1700
1700
|
const NoPermissions = lazy(
|
1701
|
-
() => import("./NoPermissionsPage-
|
1701
|
+
() => import("./NoPermissionsPage-8BM-LWta.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1702
1702
|
);
|
1703
1703
|
const NoContentType = lazy(
|
1704
|
-
() => import("./NoContentTypePage-
|
1704
|
+
() => import("./NoContentTypePage-C9q744z1.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1705
1705
|
);
|
1706
1706
|
const CollectionTypePages = () => {
|
1707
1707
|
const { collectionType } = useParams();
|
@@ -4001,13 +4001,95 @@ const { setInitialData } = actions;
|
|
4001
4001
|
const reducer = combineReducers({
|
4002
4002
|
app: reducer$1
|
4003
4003
|
});
|
4004
|
+
const previewApi = contentManagerApi.injectEndpoints({
|
4005
|
+
endpoints: (builder) => ({
|
4006
|
+
getPreviewUrl: builder.query({
|
4007
|
+
query({ query, params }) {
|
4008
|
+
return {
|
4009
|
+
url: `/content-manager/preview/url/${params.contentType}`,
|
4010
|
+
method: "GET",
|
4011
|
+
config: {
|
4012
|
+
params: query
|
4013
|
+
}
|
4014
|
+
};
|
4015
|
+
}
|
4016
|
+
})
|
4017
|
+
})
|
4018
|
+
});
|
4019
|
+
const { useGetPreviewUrlQuery } = previewApi;
|
4020
|
+
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4021
|
+
const { formatMessage } = useIntl();
|
4022
|
+
const { toggleNotification } = useNotification();
|
4023
|
+
const { copy } = useClipboard();
|
4024
|
+
const { trackUsage } = useTracking();
|
4025
|
+
const { data, error } = useGetPreviewUrlQuery({
|
4026
|
+
params: {
|
4027
|
+
contentType: model
|
4028
|
+
},
|
4029
|
+
query: {
|
4030
|
+
documentId,
|
4031
|
+
locale: document?.locale,
|
4032
|
+
status: document?.status
|
4033
|
+
}
|
4034
|
+
});
|
4035
|
+
if (!data?.data?.url || error) {
|
4036
|
+
return null;
|
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
|
+
};
|
4052
|
+
return {
|
4053
|
+
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
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
|
+
] })
|
4083
|
+
};
|
4084
|
+
};
|
4004
4085
|
const FEATURE_ID = "preview";
|
4005
4086
|
const previewAdmin = {
|
4006
4087
|
bootstrap(app) {
|
4007
4088
|
if (!window.strapi.future.isEnabled(FEATURE_ID)) {
|
4008
|
-
return
|
4089
|
+
return;
|
4009
4090
|
}
|
4010
|
-
|
4091
|
+
const contentManagerPluginApis = app.getPlugin("content-manager").apis;
|
4092
|
+
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4011
4093
|
}
|
4012
4094
|
};
|
4013
4095
|
const index = {
|
@@ -4029,7 +4111,7 @@ const index = {
|
|
4029
4111
|
app.router.addRoute({
|
4030
4112
|
path: "content-manager/*",
|
4031
4113
|
lazy: async () => {
|
4032
|
-
const { Layout } = await import("./layout-
|
4114
|
+
const { Layout } = await import("./layout-ykHSe2KQ.mjs");
|
4033
4115
|
return {
|
4034
4116
|
Component: Layout
|
4035
4117
|
};
|
@@ -4049,7 +4131,7 @@ const index = {
|
|
4049
4131
|
async registerTrads({ locales }) {
|
4050
4132
|
const importedTrads = await Promise.all(
|
4051
4133
|
locales.map((locale) => {
|
4052
|
-
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 }) => {
|
4053
4135
|
return {
|
4054
4136
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4055
4137
|
locale
|
@@ -4110,4 +4192,4 @@ export {
|
|
4110
4192
|
capitalise as y,
|
4111
4193
|
useUpdateContentTypeConfigurationMutation as z
|
4112
4194
|
};
|
4113
|
-
//# sourceMappingURL=index-
|
4195
|
+
//# sourceMappingURL=index-BvGihCJp.mjs.map
|