@strapi/content-manager 0.0.0-experimental.fed75ee8e64c57dbed0b670b25ef026b69baab10 → 0.0.0-next.36632203b17974c18103c138ffbef53a82e448c3
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-DNRPa10q.js → ComponentConfigurationPage-Br8hp2Xt.js} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-DNRPa10q.js.map → ComponentConfigurationPage-Br8hp2Xt.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-BVM7LScS.mjs → ComponentConfigurationPage-DhwMhiRn.mjs} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-BVM7LScS.mjs.map → ComponentConfigurationPage-DhwMhiRn.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BrG0mEfF.js → EditConfigurationPage-BG7rpPjL.js} +4 -4
- package/dist/_chunks/{EditConfigurationPage-BrG0mEfF.js.map → EditConfigurationPage-BG7rpPjL.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BWq-9Zhk.mjs → EditConfigurationPage-CWao3CZ3.mjs} +4 -4
- package/dist/_chunks/{EditConfigurationPage-BWq-9Zhk.mjs.map → EditConfigurationPage-CWao3CZ3.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-BbY0bNNE.js → EditViewPage-BUtpHsMz.js} +11 -5
- package/dist/_chunks/EditViewPage-BUtpHsMz.js.map +1 -0
- package/dist/_chunks/{EditViewPage-Dx0QnTxn.mjs → EditViewPage-hiwZg61J.mjs} +12 -6
- package/dist/_chunks/EditViewPage-hiwZg61J.mjs.map +1 -0
- package/dist/_chunks/{Field-DVZSGAon.mjs → Field-BQQLwyUs.mjs} +5 -5
- package/dist/_chunks/Field-BQQLwyUs.mjs.map +1 -0
- package/dist/_chunks/{Field-CglKum3X.js → Field-DEdug-Ll.js} +5 -5
- package/dist/_chunks/Field-DEdug-Ll.js.map +1 -0
- package/dist/_chunks/{Form-BQwxPqu3.mjs → Form-DwJovCha.mjs} +2 -2
- package/dist/_chunks/{Form-BQwxPqu3.mjs.map → Form-DwJovCha.mjs.map} +1 -1
- package/dist/_chunks/{Form-B7nYNIUm.js → Form-v5pkY-X_.js} +2 -2
- package/dist/_chunks/{Form-B7nYNIUm.js.map → Form-v5pkY-X_.js.map} +1 -1
- package/dist/_chunks/{History-3JN4BIS1.js → History-40apIShV.js} +18 -41
- package/dist/_chunks/History-40apIShV.js.map +1 -0
- package/dist/_chunks/{History-Bmu6tx6s.mjs → History-B9uJsxZl.mjs} +18 -41
- package/dist/_chunks/History-B9uJsxZl.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DwijcJ17.mjs → ListConfigurationPage-CA4oi4Hj.mjs} +3 -3
- package/dist/_chunks/{ListConfigurationPage-DwijcJ17.mjs.map → ListConfigurationPage-CA4oi4Hj.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-BcC28SV0.js → ListConfigurationPage-DAGbWDIL.js} +3 -3
- package/dist/_chunks/{ListConfigurationPage-BcC28SV0.js.map → ListConfigurationPage-DAGbWDIL.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-DzhuS3CW.mjs → ListViewPage-Ca8F1NL-.mjs} +15 -4
- package/dist/_chunks/{ListViewPage-DzhuS3CW.mjs.map → ListViewPage-Ca8F1NL-.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-ZPNQ6jWC.js → ListViewPage-CjaHQ2_V.js} +15 -4
- package/dist/_chunks/ListViewPage-CjaHQ2_V.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DzwJNXvn.js → NoContentTypePage-CGxqLI8j.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-DzwJNXvn.js.map → NoContentTypePage-CGxqLI8j.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BKMgOyd3.mjs → NoContentTypePage-CwfnU-aN.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-BKMgOyd3.mjs.map → NoContentTypePage-CwfnU-aN.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-GaweP-NG.js → NoPermissionsPage-CY3_QduF.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-GaweP-NG.js.map → NoPermissionsPage-CY3_QduF.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DBbGJqL9.mjs → NoPermissionsPage-iPk2lFR6.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DBbGJqL9.mjs.map → NoPermissionsPage-iPk2lFR6.mjs.map} +1 -1
- package/dist/_chunks/Preview-DRJhcaIO.mjs +267 -0
- package/dist/_chunks/Preview-DRJhcaIO.mjs.map +1 -0
- package/dist/_chunks/Preview-V8XOfrQf.js +286 -0
- package/dist/_chunks/Preview-V8XOfrQf.js.map +1 -0
- package/dist/_chunks/{Relations-BHXq_cKF.js → Relations-CGerEwji.js} +43 -17
- package/dist/_chunks/Relations-CGerEwji.js.map +1 -0
- package/dist/_chunks/{Relations-B7VtRA3g.mjs → Relations-DGWa9W2j.mjs} +44 -18
- package/dist/_chunks/Relations-DGWa9W2j.mjs.map +1 -0
- package/dist/_chunks/{en-Bm0D0IWz.js → en-CHOp_xJv.js} +11 -2
- package/dist/_chunks/{en-Bm0D0IWz.js.map → en-CHOp_xJv.js.map} +1 -1
- package/dist/_chunks/{en-DKV44jRb.mjs → en-D_BMf0hT.mjs} +11 -2
- package/dist/_chunks/{en-DKV44jRb.mjs.map → en-D_BMf0hT.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-TaRzG09p.mjs → index-V8MWkDSd.mjs} +124 -57
- package/dist/_chunks/index-V8MWkDSd.mjs.map +1 -0
- package/dist/_chunks/{index-DcA8_tJw.js → index-tN1hpOMN.js} +122 -54
- package/dist/_chunks/index-tN1hpOMN.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-aX-RJhd5.mjs → layout-Bue_C6ui.mjs} +3 -3
- package/dist/_chunks/{layout-aX-RJhd5.mjs.map → layout-Bue_C6ui.mjs.map} +1 -1
- package/dist/_chunks/{layout-CrgXpOxT.js → layout-BzX903CL.js} +3 -3
- package/dist/_chunks/{layout-CrgXpOxT.js.map → layout-BzX903CL.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-Z6RA1sBS.js → relations-C4HcWYYJ.js} +6 -7
- package/dist/_chunks/relations-C4HcWYYJ.js.map +1 -0
- package/dist/_chunks/{relations-D3Hlx6QX.mjs → relations-C8eyDiIO.mjs} +6 -7
- package/dist/_chunks/relations-C8eyDiIO.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/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/server/index.js +344 -144
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +344 -144
- 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 +15 -0
- package/dist/server/src/preview/services/index.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview-config.d.ts +30 -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 +18 -0
- package/dist/server/src/preview/utils.d.ts.map +1 -0
- package/dist/server/src/routes/index.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 +7 -7
- package/dist/_chunks/EditViewPage-BbY0bNNE.js.map +0 -1
- package/dist/_chunks/EditViewPage-Dx0QnTxn.mjs.map +0 -1
- package/dist/_chunks/Field-CglKum3X.js.map +0 -1
- package/dist/_chunks/Field-DVZSGAon.mjs.map +0 -1
- package/dist/_chunks/History-3JN4BIS1.js.map +0 -1
- package/dist/_chunks/History-Bmu6tx6s.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-ZPNQ6jWC.js.map +0 -1
- package/dist/_chunks/Relations-B7VtRA3g.mjs.map +0 -1
- package/dist/_chunks/Relations-BHXq_cKF.js.map +0 -1
- package/dist/_chunks/index-DcA8_tJw.js.map +0 -1
- package/dist/_chunks/index-TaRzG09p.mjs.map +0 -1
- package/dist/_chunks/relations-D3Hlx6QX.mjs.map +0 -1
- package/dist/_chunks/relations-Z6RA1sBS.js.map +0 -1
@@ -76,7 +76,7 @@ const en = {
|
|
76
76
|
"components.TableEmpty.withFilters": "There are no {contentType} with the applied filters...",
|
77
77
|
"components.TableEmpty.withSearch": "There are no {contentType} corresponding to the search ({search})...",
|
78
78
|
"components.TableEmpty.withoutFilter": "There are no {contentType}...",
|
79
|
-
"components.empty-repeatable": "No entry yet. Click
|
79
|
+
"components.empty-repeatable": "No entry yet. Click to add one.",
|
80
80
|
"components.notification.info.maximum-requirement": "You have already reached the maximum number of fields",
|
81
81
|
"components.notification.info.minimum-requirement": "A field has been added to match the minimum requirement",
|
82
82
|
"components.repeatable.reorder.error": "An error occurred while reordering your component's field, please try again",
|
@@ -106,6 +106,9 @@ const en = {
|
|
106
106
|
"containers.Home.introduction": "To edit your entries go to the specific link in the left menu. This plugin doesn't have a proper way to edit settings and it's still under active development.",
|
107
107
|
"containers.Home.pluginHeaderDescription": "Manage your entries through a powerful and beautiful interface.",
|
108
108
|
"containers.Home.pluginHeaderTitle": "Content Manager",
|
109
|
+
"containers.List.draft": "Draft",
|
110
|
+
"containers.List.published": "Published",
|
111
|
+
"containers.List.modified": "Modified",
|
109
112
|
"containers.list.displayedFields": "Displayed Fields",
|
110
113
|
"containers.list.items": "{number} {number, plural, =0 {items} one {item} other {items}}",
|
111
114
|
"containers.list.table.row-actions": "Row actions",
|
@@ -236,6 +239,12 @@ const en = {
|
|
236
239
|
"popUpWarning.warning.unpublish-question": "Are you sure you don't want to publish it?",
|
237
240
|
"popUpWarning.warning.updateAllSettings": "This will modify all your settings",
|
238
241
|
"popover.display-relations.label": "Display relations",
|
242
|
+
"preview.panel.title": "Preview",
|
243
|
+
"preview.panel.button": "Open preview",
|
244
|
+
"preview.page-title": "{contentType} preview",
|
245
|
+
"preview.header.close": "Close preview",
|
246
|
+
"preview.copy.label": "Copy preview link",
|
247
|
+
"preview.copy.success": "Copied preview link",
|
239
248
|
"relation.add": "Add relation",
|
240
249
|
"relation.disconnect": "Remove",
|
241
250
|
"relation.error-adding-relation": "An error occurred while trying to add the relation.",
|
@@ -290,4 +299,4 @@ exports.default = en;
|
|
290
299
|
exports.groups = groups;
|
291
300
|
exports.models = models;
|
292
301
|
exports.pageNotFound = pageNotFound;
|
293
|
-
//# sourceMappingURL=en-
|
302
|
+
//# sourceMappingURL=en-CHOp_xJv.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"en-
|
1
|
+
{"version":3,"file":"en-CHOp_xJv.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -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",
|
@@ -104,6 +104,9 @@ const en = {
|
|
104
104
|
"containers.Home.introduction": "To edit your entries go to the specific link in the left menu. This plugin doesn't have a proper way to edit settings and it's still under active development.",
|
105
105
|
"containers.Home.pluginHeaderDescription": "Manage your entries through a powerful and beautiful interface.",
|
106
106
|
"containers.Home.pluginHeaderTitle": "Content Manager",
|
107
|
+
"containers.List.draft": "Draft",
|
108
|
+
"containers.List.published": "Published",
|
109
|
+
"containers.List.modified": "Modified",
|
107
110
|
"containers.list.displayedFields": "Displayed Fields",
|
108
111
|
"containers.list.items": "{number} {number, plural, =0 {items} one {item} other {items}}",
|
109
112
|
"containers.list.table.row-actions": "Row actions",
|
@@ -234,6 +237,12 @@ const en = {
|
|
234
237
|
"popUpWarning.warning.unpublish-question": "Are you sure you don't want to publish it?",
|
235
238
|
"popUpWarning.warning.updateAllSettings": "This will modify all your settings",
|
236
239
|
"popover.display-relations.label": "Display relations",
|
240
|
+
"preview.panel.title": "Preview",
|
241
|
+
"preview.panel.button": "Open preview",
|
242
|
+
"preview.page-title": "{contentType} preview",
|
243
|
+
"preview.header.close": "Close preview",
|
244
|
+
"preview.copy.label": "Copy preview link",
|
245
|
+
"preview.copy.success": "Copied preview link",
|
237
246
|
"relation.add": "Add relation",
|
238
247
|
"relation.disconnect": "Remove",
|
239
248
|
"relation.error-adding-relation": "An error occurred while trying to add the relation.",
|
@@ -290,4 +299,4 @@ export {
|
|
290
299
|
models,
|
291
300
|
pageNotFound
|
292
301
|
};
|
293
|
-
//# sourceMappingURL=en-
|
302
|
+
//# sourceMappingURL=en-D_BMf0hT.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"en-
|
1
|
+
{"version":3,"file":"en-D_BMf0hT.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",
|
@@ -195,7 +195,17 @@ const fr = {
|
|
195
195
|
"apiError.This attribute must be unique": "Le champ {field} doit être unique",
|
196
196
|
"popUpWarning.warning.publish-question": "Êtes-vous sûr de vouloir le publier ?",
|
197
197
|
"popUpwarning.warning.has-draft-relations.button-confirm": "Oui, publier",
|
198
|
-
"popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { des relations de votre contenu n'est} one { des relations de votre contenu n'est} other { des relations de votre contenu ne sont}}</b> pas publié actuellement.<br></br>Cela peut engendrer des liens cassés ou des erreurs dans votre projet."
|
198
|
+
"popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { des relations de votre contenu n'est} one { des relations de votre contenu n'est} other { des relations de votre contenu ne sont}}</b> pas publié actuellement.<br></br>Cela peut engendrer des liens cassés ou des erreurs dans votre projet.",
|
199
|
+
"history.sidebar.show-newer": "Voir les versions récentes",
|
200
|
+
"history.sidebar.show-older": "Voir les anciennes versions",
|
201
|
+
"history.content.new-field.message": "Ce champ n'existait pas lorsque cette version a été sauvegardée. Si vous restaurez cette version, il sera vide.",
|
202
|
+
"history.content.unknown-fields.message": "Ces champs ont été supprimés ou renommés dans le Content-Type Builder. <b>Ces champs ne seront pas restaurés.</b>",
|
203
|
+
"history.content.no-relations": "Aucune relation.",
|
204
|
+
"history.restore.confirm.button": "Restaurer",
|
205
|
+
"history.restore.confirm.title": "Êtes-vous sûr de vouloir restaurer cette version ?",
|
206
|
+
"history.restore.confirm.message": "{isDraft, select, true {Le contenu restauré écrasera votre brouillon.} other {Le contenu restauré ne sera pas publié, il écrasera le brouillon et sera sauvegardé en tant que changement en attente de publication. Vous pourrez publier les changements à tout moment.}}",
|
207
|
+
"history.restore.success.title": "Version restaurée.",
|
208
|
+
"history.restore.success.message": "Le contenu de la version restaurée n'a pas encore été publié."
|
199
209
|
};
|
200
210
|
export {
|
201
211
|
fr as default,
|
@@ -203,4 +213,4 @@ export {
|
|
203
213
|
models,
|
204
214
|
pageNotFound
|
205
215
|
};
|
206
|
-
//# 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",
|
@@ -197,10 +197,20 @@ const fr = {
|
|
197
197
|
"apiError.This attribute must be unique": "Le champ {field} doit être unique",
|
198
198
|
"popUpWarning.warning.publish-question": "Êtes-vous sûr de vouloir le publier ?",
|
199
199
|
"popUpwarning.warning.has-draft-relations.button-confirm": "Oui, publier",
|
200
|
-
"popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { des relations de votre contenu n'est} one { des relations de votre contenu n'est} other { des relations de votre contenu ne sont}}</b> pas publié actuellement.<br></br>Cela peut engendrer des liens cassés ou des erreurs dans votre projet."
|
200
|
+
"popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { des relations de votre contenu n'est} one { des relations de votre contenu n'est} other { des relations de votre contenu ne sont}}</b> pas publié actuellement.<br></br>Cela peut engendrer des liens cassés ou des erreurs dans votre projet.",
|
201
|
+
"history.sidebar.show-newer": "Voir les versions récentes",
|
202
|
+
"history.sidebar.show-older": "Voir les anciennes versions",
|
203
|
+
"history.content.new-field.message": "Ce champ n'existait pas lorsque cette version a été sauvegardée. Si vous restaurez cette version, il sera vide.",
|
204
|
+
"history.content.unknown-fields.message": "Ces champs ont été supprimés ou renommés dans le Content-Type Builder. <b>Ces champs ne seront pas restaurés.</b>",
|
205
|
+
"history.content.no-relations": "Aucune relation.",
|
206
|
+
"history.restore.confirm.button": "Restaurer",
|
207
|
+
"history.restore.confirm.title": "Êtes-vous sûr de vouloir restaurer cette version ?",
|
208
|
+
"history.restore.confirm.message": "{isDraft, select, true {Le contenu restauré écrasera votre brouillon.} other {Le contenu restauré ne sera pas publié, il écrasera le brouillon et sera sauvegardé en tant que changement en attente de publication. Vous pourrez publier les changements à tout moment.}}",
|
209
|
+
"history.restore.success.title": "Version restaurée.",
|
210
|
+
"history.restore.success.message": "Le contenu de la version restaurée n'a pas encore été publié."
|
201
211
|
};
|
202
212
|
exports.default = fr;
|
203
213
|
exports.groups = groups;
|
204
214
|
exports.models = models;
|
205
215
|
exports.pageNotFound = pageNotFound;
|
206
|
-
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -4,6 +4,7 @@ import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, ad
|
|
4
4
|
import * as React from "react";
|
5
5
|
import { lazy } from "react";
|
6
6
|
import { Button, Menu, VisuallyHidden, Flex, Typography, Dialog, Modal, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
|
7
|
+
import mapValues from "lodash/fp/mapValues";
|
7
8
|
import { useIntl } from "react-intl";
|
8
9
|
import { useParams, useNavigate, Navigate, useMatch, useLocation, Link, NavLink } from "react-router-dom";
|
9
10
|
import * as yup from "yup";
|
@@ -968,9 +969,10 @@ const formatEditLayout = (data, {
|
|
968
969
|
currentPanelIndex += 2;
|
969
970
|
} else {
|
970
971
|
if (!panels[currentPanelIndex]) {
|
971
|
-
panels.push([]);
|
972
|
+
panels.push([row]);
|
973
|
+
} else {
|
974
|
+
panels[currentPanelIndex].push(row);
|
972
975
|
}
|
973
|
-
panels[currentPanelIndex].push(row);
|
974
976
|
}
|
975
977
|
return panels;
|
976
978
|
}, []);
|
@@ -1228,9 +1230,6 @@ const useContentManagerContext = () => {
|
|
1228
1230
|
};
|
1229
1231
|
};
|
1230
1232
|
const prefixPluginTranslations = (trad, pluginId) => {
|
1231
|
-
if (!pluginId) {
|
1232
|
-
throw new TypeError("pluginId can't be empty");
|
1233
|
-
}
|
1234
1233
|
return Object.keys(trad).reduce((acc, current) => {
|
1235
1234
|
acc[`${pluginId}.${current}`] = trad[current];
|
1236
1235
|
return acc;
|
@@ -1664,10 +1663,10 @@ const useDocumentActions = () => {
|
|
1664
1663
|
update
|
1665
1664
|
};
|
1666
1665
|
};
|
1667
|
-
const ProtectedHistoryPage = lazy(
|
1668
|
-
() => import("./History-
|
1666
|
+
const ProtectedHistoryPage = React.lazy(
|
1667
|
+
() => import("./History-B9uJsxZl.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1669
1668
|
);
|
1670
|
-
const routes$
|
1669
|
+
const routes$2 = [
|
1671
1670
|
{
|
1672
1671
|
path: ":collectionType/:slug/:id/history",
|
1673
1672
|
Component: ProtectedHistoryPage
|
@@ -1677,32 +1676,45 @@ const routes$1 = [
|
|
1677
1676
|
Component: ProtectedHistoryPage
|
1678
1677
|
}
|
1679
1678
|
];
|
1679
|
+
const ProtectedPreviewPage = React.lazy(
|
1680
|
+
() => import("./Preview-DRJhcaIO.mjs").then((mod) => ({ default: mod.ProtectedPreviewPage }))
|
1681
|
+
);
|
1682
|
+
const routes$1 = [
|
1683
|
+
{
|
1684
|
+
path: ":collectionType/:slug/:id/preview",
|
1685
|
+
Component: ProtectedPreviewPage
|
1686
|
+
},
|
1687
|
+
{
|
1688
|
+
path: ":collectionType/:slug/preview",
|
1689
|
+
Component: ProtectedPreviewPage
|
1690
|
+
}
|
1691
|
+
];
|
1680
1692
|
const ProtectedEditViewPage = lazy(
|
1681
|
-
() => import("./EditViewPage-
|
1693
|
+
() => import("./EditViewPage-hiwZg61J.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1682
1694
|
);
|
1683
1695
|
const ProtectedListViewPage = lazy(
|
1684
|
-
() => import("./ListViewPage-
|
1696
|
+
() => import("./ListViewPage-Ca8F1NL-.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1685
1697
|
);
|
1686
1698
|
const ProtectedListConfiguration = lazy(
|
1687
|
-
() => import("./ListConfigurationPage-
|
1699
|
+
() => import("./ListConfigurationPage-CA4oi4Hj.mjs").then((mod) => ({
|
1688
1700
|
default: mod.ProtectedListConfiguration
|
1689
1701
|
}))
|
1690
1702
|
);
|
1691
1703
|
const ProtectedEditConfigurationPage = lazy(
|
1692
|
-
() => import("./EditConfigurationPage-
|
1704
|
+
() => import("./EditConfigurationPage-CWao3CZ3.mjs").then((mod) => ({
|
1693
1705
|
default: mod.ProtectedEditConfigurationPage
|
1694
1706
|
}))
|
1695
1707
|
);
|
1696
1708
|
const ProtectedComponentConfigurationPage = lazy(
|
1697
|
-
() => import("./ComponentConfigurationPage-
|
1709
|
+
() => import("./ComponentConfigurationPage-DhwMhiRn.mjs").then((mod) => ({
|
1698
1710
|
default: mod.ProtectedComponentConfigurationPage
|
1699
1711
|
}))
|
1700
1712
|
);
|
1701
1713
|
const NoPermissions = lazy(
|
1702
|
-
() => import("./NoPermissionsPage-
|
1714
|
+
() => import("./NoPermissionsPage-iPk2lFR6.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1703
1715
|
);
|
1704
1716
|
const NoContentType = lazy(
|
1705
|
-
() => import("./NoContentTypePage-
|
1717
|
+
() => import("./NoContentTypePage-CwfnU-aN.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1706
1718
|
);
|
1707
1719
|
const CollectionTypePages = () => {
|
1708
1720
|
const { collectionType } = useParams();
|
@@ -1748,6 +1760,7 @@ const routes = [
|
|
1748
1760
|
path: "no-content-types",
|
1749
1761
|
Component: NoContentType
|
1750
1762
|
},
|
1763
|
+
...routes$2,
|
1751
1764
|
...routes$1
|
1752
1765
|
];
|
1753
1766
|
const DocumentActions = ({ actions: actions2 }) => {
|
@@ -2056,6 +2069,18 @@ const DocumentActionModal = ({
|
|
2056
2069
|
typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer
|
2057
2070
|
] }) });
|
2058
2071
|
};
|
2072
|
+
const transformData = (data) => {
|
2073
|
+
if (Array.isArray(data)) {
|
2074
|
+
return data.map(transformData);
|
2075
|
+
}
|
2076
|
+
if (typeof data === "object" && data !== null) {
|
2077
|
+
if ("apiData" in data) {
|
2078
|
+
return data.apiData;
|
2079
|
+
}
|
2080
|
+
return mapValues(transformData)(data);
|
2081
|
+
}
|
2082
|
+
return data;
|
2083
|
+
};
|
2059
2084
|
const PublishAction$1 = ({
|
2060
2085
|
activeTab,
|
2061
2086
|
documentId,
|
@@ -2169,7 +2194,7 @@ const PublishAction$1 = ({
|
|
2169
2194
|
documentId,
|
2170
2195
|
params
|
2171
2196
|
},
|
2172
|
-
|
2197
|
+
transformData(formValues)
|
2173
2198
|
);
|
2174
2199
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2175
2200
|
navigate({
|
@@ -2228,36 +2253,6 @@ const PublishAction$1 = ({
|
|
2228
2253
|
};
|
2229
2254
|
};
|
2230
2255
|
PublishAction$1.type = "publish";
|
2231
|
-
const formDocumentToData = (document) => {
|
2232
|
-
return Object.keys(document).reduce((acc, key) => {
|
2233
|
-
if (document[key] !== void 0) {
|
2234
|
-
acc[key] = document[key];
|
2235
|
-
}
|
2236
|
-
if (typeof document[key] === "object" && document[key] !== null) {
|
2237
|
-
if ("connect" in document[key] && document[key].connect !== null) {
|
2238
|
-
acc[key] = {
|
2239
|
-
...acc[key],
|
2240
|
-
connect: document[key].connect.map((item) => {
|
2241
|
-
return {
|
2242
|
-
documentId: item.documentId
|
2243
|
-
};
|
2244
|
-
})
|
2245
|
-
};
|
2246
|
-
}
|
2247
|
-
if ("disconnect" in document[key] && document[key].disconnect !== null) {
|
2248
|
-
acc[key] = {
|
2249
|
-
...acc[key],
|
2250
|
-
disconnect: document[key].disconnect.map((item) => {
|
2251
|
-
return {
|
2252
|
-
documentId: item.documentId
|
2253
|
-
};
|
2254
|
-
})
|
2255
|
-
};
|
2256
|
-
}
|
2257
|
-
}
|
2258
|
-
return acc;
|
2259
|
-
}, {});
|
2260
|
-
};
|
2261
2256
|
const UpdateAction = ({
|
2262
2257
|
activeTab,
|
2263
2258
|
documentId,
|
@@ -2315,7 +2310,7 @@ const UpdateAction = ({
|
|
2315
2310
|
documentId: cloneMatch.params.origin,
|
2316
2311
|
params
|
2317
2312
|
},
|
2318
|
-
|
2313
|
+
transformData(document)
|
2319
2314
|
);
|
2320
2315
|
if ("data" in res) {
|
2321
2316
|
navigate(
|
@@ -2336,7 +2331,7 @@ const UpdateAction = ({
|
|
2336
2331
|
documentId,
|
2337
2332
|
params
|
2338
2333
|
},
|
2339
|
-
|
2334
|
+
transformData(document)
|
2340
2335
|
);
|
2341
2336
|
if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2342
2337
|
setErrors(formatValidationErrors(res.error));
|
@@ -2349,7 +2344,7 @@ const UpdateAction = ({
|
|
2349
2344
|
model,
|
2350
2345
|
params
|
2351
2346
|
},
|
2352
|
-
|
2347
|
+
transformData(document)
|
2353
2348
|
);
|
2354
2349
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2355
2350
|
navigate(
|
@@ -2590,7 +2585,11 @@ const getDisplayName = ({
|
|
2590
2585
|
const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
2591
2586
|
const DocumentStatus = ({ status = "draft", ...restProps }) => {
|
2592
2587
|
const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
|
2593
|
-
|
2588
|
+
const { formatMessage } = useIntl();
|
2589
|
+
return /* @__PURE__ */ jsx(Status, { ...restProps, showBullet: false, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
|
2590
|
+
id: `content-manager.containers.List.${status}`,
|
2591
|
+
defaultMessage: capitalise(status)
|
2592
|
+
}) }) });
|
2594
2593
|
};
|
2595
2594
|
const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
|
2596
2595
|
const { formatMessage } = useIntl();
|
@@ -3037,7 +3036,7 @@ const Panel = React.forwardRef(({ children, title }, ref) => {
|
|
3037
3036
|
justifyContent: "stretch",
|
3038
3037
|
alignItems: "flex-start",
|
3039
3038
|
children: [
|
3040
|
-
/* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
|
3039
|
+
/* @__PURE__ */ jsx(Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", textColor: "neutral600", children: title }),
|
3041
3040
|
children
|
3042
3041
|
]
|
3043
3042
|
}
|
@@ -4020,6 +4019,70 @@ const { setInitialData } = actions;
|
|
4020
4019
|
const reducer = combineReducers({
|
4021
4020
|
app: reducer$1
|
4022
4021
|
});
|
4022
|
+
const previewApi = contentManagerApi.injectEndpoints({
|
4023
|
+
endpoints: (builder) => ({
|
4024
|
+
getPreviewUrl: builder.query({
|
4025
|
+
query({ query, params }) {
|
4026
|
+
return {
|
4027
|
+
url: `/content-manager/preview/url/${params.contentType}`,
|
4028
|
+
method: "GET",
|
4029
|
+
config: {
|
4030
|
+
params: query
|
4031
|
+
}
|
4032
|
+
};
|
4033
|
+
}
|
4034
|
+
})
|
4035
|
+
})
|
4036
|
+
});
|
4037
|
+
const { useGetPreviewUrlQuery } = previewApi;
|
4038
|
+
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4039
|
+
const { formatMessage } = useIntl();
|
4040
|
+
const { trackUsage } = useTracking();
|
4041
|
+
const [{ query }] = useQueryParams();
|
4042
|
+
const { data, error } = useGetPreviewUrlQuery({
|
4043
|
+
params: {
|
4044
|
+
contentType: model
|
4045
|
+
},
|
4046
|
+
query: {
|
4047
|
+
documentId,
|
4048
|
+
locale: document?.locale,
|
4049
|
+
status: document?.status
|
4050
|
+
}
|
4051
|
+
});
|
4052
|
+
if (!data?.data?.url || error) {
|
4053
|
+
return null;
|
4054
|
+
}
|
4055
|
+
const handleClick = () => {
|
4056
|
+
trackUsage("willOpenPreview");
|
4057
|
+
};
|
4058
|
+
return {
|
4059
|
+
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
4060
|
+
content: /* @__PURE__ */ jsx(Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsx(
|
4061
|
+
Button,
|
4062
|
+
{
|
4063
|
+
variant: "tertiary",
|
4064
|
+
tag: Link,
|
4065
|
+
to: { pathname: "preview", search: stringify(query, { encode: false }) },
|
4066
|
+
onClick: handleClick,
|
4067
|
+
flex: "auto",
|
4068
|
+
children: formatMessage({
|
4069
|
+
id: "content-manager.preview.panel.button",
|
4070
|
+
defaultMessage: "Open preview"
|
4071
|
+
})
|
4072
|
+
}
|
4073
|
+
) })
|
4074
|
+
};
|
4075
|
+
};
|
4076
|
+
const FEATURE_ID = "preview";
|
4077
|
+
const previewAdmin = {
|
4078
|
+
bootstrap(app) {
|
4079
|
+
if (!window.strapi.future.isEnabled(FEATURE_ID)) {
|
4080
|
+
return;
|
4081
|
+
}
|
4082
|
+
const contentManagerPluginApis = app.getPlugin("content-manager").apis;
|
4083
|
+
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4084
|
+
}
|
4085
|
+
};
|
4023
4086
|
const index = {
|
4024
4087
|
register(app) {
|
4025
4088
|
const cm = new ContentManagerPlugin();
|
@@ -4039,7 +4102,7 @@ const index = {
|
|
4039
4102
|
app.router.addRoute({
|
4040
4103
|
path: "content-manager/*",
|
4041
4104
|
lazy: async () => {
|
4042
|
-
const { Layout } = await import("./layout-
|
4105
|
+
const { Layout } = await import("./layout-Bue_C6ui.mjs");
|
4043
4106
|
return {
|
4044
4107
|
Component: Layout
|
4045
4108
|
};
|
@@ -4052,11 +4115,14 @@ const index = {
|
|
4052
4115
|
if (typeof historyAdmin.bootstrap === "function") {
|
4053
4116
|
historyAdmin.bootstrap(app);
|
4054
4117
|
}
|
4118
|
+
if (typeof previewAdmin.bootstrap === "function") {
|
4119
|
+
previewAdmin.bootstrap(app);
|
4120
|
+
}
|
4055
4121
|
},
|
4056
4122
|
async registerTrads({ locales }) {
|
4057
4123
|
const importedTrads = await Promise.all(
|
4058
4124
|
locales.map((locale) => {
|
4059
|
-
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-
|
4125
|
+
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-D_BMf0hT.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 }) => {
|
4060
4126
|
return {
|
4061
4127
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4062
4128
|
locale
|
@@ -4083,9 +4149,10 @@ export {
|
|
4083
4149
|
HOOKS as H,
|
4084
4150
|
InjectionZone as I,
|
4085
4151
|
useDocument as J,
|
4086
|
-
|
4087
|
-
|
4088
|
-
|
4152
|
+
useGetPreviewUrlQuery as K,
|
4153
|
+
index as L,
|
4154
|
+
useContentManagerContext as M,
|
4155
|
+
useDocumentActions as N,
|
4089
4156
|
Panels as P,
|
4090
4157
|
RelativeTime as R,
|
4091
4158
|
SINGLE_TYPES as S,
|
@@ -4117,4 +4184,4 @@ export {
|
|
4117
4184
|
capitalise as y,
|
4118
4185
|
useUpdateContentTypeConfigurationMutation as z
|
4119
4186
|
};
|
4120
|
-
//# sourceMappingURL=index-
|
4187
|
+
//# sourceMappingURL=index-V8MWkDSd.mjs.map
|