@strapi/content-manager 0.0.0-experimental.5a6cf698f4104d2c95bb57a4c7beaca233d26e5a → 0.0.0-experimental.5c463a4f3349c33b8034dcda66a04758d0efc542
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-FqfsxQ1j.js → ComponentConfigurationPage-Cr0ttPAZ.js} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-FqfsxQ1j.js.map → ComponentConfigurationPage-Cr0ttPAZ.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-DfFSZQxe.mjs → ComponentConfigurationPage-UGIFDkPO.mjs} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-DfFSZQxe.mjs.map → ComponentConfigurationPage-UGIFDkPO.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-DdPNAbl3.mjs → EditConfigurationPage-7hF4_8yK.mjs} +4 -4
- package/dist/_chunks/{EditConfigurationPage-DdPNAbl3.mjs.map → EditConfigurationPage-7hF4_8yK.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Cn0e8t3I.js → EditConfigurationPage-Ds3BOL2z.js} +4 -4
- package/dist/_chunks/{EditConfigurationPage-Cn0e8t3I.js.map → EditConfigurationPage-Ds3BOL2z.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-B82x_x1b.mjs → EditViewPage-CA98g5_g.mjs} +38 -8
- package/dist/_chunks/EditViewPage-CA98g5_g.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-DlxEHhUt.js → EditViewPage-DoQm9llG.js} +37 -7
- package/dist/_chunks/EditViewPage-DoQm9llG.js.map +1 -0
- package/dist/_chunks/{Field-DufHXW17.mjs → Field-B2C1tq9_.mjs} +28 -8
- package/dist/_chunks/Field-B2C1tq9_.mjs.map +1 -0
- package/dist/_chunks/{Field-COL25JiC.js → Field-CQtLQzHl.js} +28 -8
- package/dist/_chunks/Field-CQtLQzHl.js.map +1 -0
- package/dist/_chunks/{Form-u_kAOhwB.mjs → Form-CxQ2pPjq.mjs} +2 -2
- package/dist/_chunks/{Form-u_kAOhwB.mjs.map → Form-CxQ2pPjq.mjs.map} +1 -1
- package/dist/_chunks/{Form-BssUwrTO.js → Form-YQaS3_NH.js} +2 -2
- package/dist/_chunks/{Form-BssUwrTO.js.map → Form-YQaS3_NH.js.map} +1 -1
- package/dist/_chunks/{History-DRwA3oMM.mjs → History-DTYKr2Cg.mjs} +18 -41
- package/dist/_chunks/History-DTYKr2Cg.mjs.map +1 -0
- package/dist/_chunks/{History-C9t9UqpO.js → History-DbdpigyF.js} +18 -41
- package/dist/_chunks/History-DbdpigyF.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-BxfQJzPk.mjs → ListConfigurationPage-DQG-j52q.mjs} +3 -3
- package/dist/_chunks/{ListConfigurationPage-BxfQJzPk.mjs.map → ListConfigurationPage-DQG-j52q.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-BXYPohh-.js → ListConfigurationPage-DRGhXnUA.js} +3 -3
- package/dist/_chunks/{ListConfigurationPage-BXYPohh-.js.map → ListConfigurationPage-DRGhXnUA.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-D2VD8Szg.js → ListViewPage-CVIEfYWN.js} +28 -6
- package/dist/_chunks/ListViewPage-CVIEfYWN.js.map +1 -0
- package/dist/_chunks/{ListViewPage-CELx2ysp.mjs → ListViewPage-DAekmnvp.mjs} +28 -6
- package/dist/_chunks/{ListViewPage-CELx2ysp.mjs.map → ListViewPage-DAekmnvp.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-DtJ9jcfk.mjs → NoContentTypePage-5kwUPeFg.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-DtJ9jcfk.mjs.map → NoContentTypePage-5kwUPeFg.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BV9IjJSM.js → NoContentTypePage-CTcfA2-Q.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BV9IjJSM.js.map → NoContentTypePage-CTcfA2-Q.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DWleVYK7.mjs → NoPermissionsPage-d-JtEVAw.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DWleVYK7.mjs.map → NoPermissionsPage-d-JtEVAw.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-Dp8NpF9I.js → NoPermissionsPage-pVeCVj9a.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-Dp8NpF9I.js.map → NoPermissionsPage-pVeCVj9a.js.map} +1 -1
- package/dist/_chunks/Preview-COsm52rZ.js +307 -0
- package/dist/_chunks/Preview-COsm52rZ.js.map +1 -0
- package/dist/_chunks/Preview-gkmvcwhu.mjs +288 -0
- package/dist/_chunks/Preview-gkmvcwhu.mjs.map +1 -0
- package/dist/_chunks/{Relations-BTcf5xaw.mjs → Relations-7ItTFWp7.mjs} +44 -17
- package/dist/_chunks/Relations-7ItTFWp7.mjs.map +1 -0
- package/dist/_chunks/{Relations-DR7EUgyC.js → Relations-Beo_uDz1.js} +43 -16
- package/dist/_chunks/Relations-Beo_uDz1.js.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-BdMf2lfT.js → index-CJX65DLa.js} +142 -62
- package/dist/_chunks/index-CJX65DLa.js.map +1 -0
- package/dist/_chunks/{index-wnqzm4Q8.mjs → index-D3IiO0X8.mjs} +145 -66
- package/dist/_chunks/index-D3IiO0X8.mjs.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-B2MyZU-_.js → layout-9fI2_QJt.js} +3 -3
- package/dist/_chunks/{layout-B2MyZU-_.js.map → layout-9fI2_QJt.js.map} +1 -1
- package/dist/_chunks/{layout-2CfjL0T9.mjs → layout-OhrmoJVB.mjs} +3 -3
- package/dist/_chunks/{layout-2CfjL0T9.mjs.map → layout-OhrmoJVB.mjs.map} +1 -1
- package/dist/_chunks/{objects-gigeqt7s.js → objects-BcXOv6_9.js} +2 -4
- package/dist/_chunks/{objects-gigeqt7s.js.map → objects-BcXOv6_9.js.map} +1 -1
- package/dist/_chunks/{objects-mKMAmfec.mjs → objects-D6yBsdmx.mjs} +2 -4
- package/dist/_chunks/{objects-mKMAmfec.mjs.map → objects-D6yBsdmx.mjs.map} +1 -1
- package/dist/_chunks/{relations-BH7JJGGe.js → relations-DIT8sP52.js} +6 -7
- package/dist/_chunks/relations-DIT8sP52.js.map +1 -0
- package/dist/_chunks/{relations-C0w0GcXi.mjs → relations-sRERvWmr.mjs} +6 -7
- package/dist/_chunks/relations-sRERvWmr.mjs.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +4 -4
- package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +1 -1
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
- package/dist/admin/src/preview/constants.d.ts +1 -0
- package/dist/admin/src/preview/index.d.ts +4 -0
- package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
- package/dist/admin/src/preview/routes.d.ts +3 -0
- package/dist/admin/src/preview/services/preview.d.ts +3 -0
- package/dist/admin/src/router.d.ts +1 -1
- package/dist/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-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +8 -8
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +4 -4
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
- package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
- package/dist/server/src/utils/index.d.ts +2 -0
- package/dist/server/src/utils/index.d.ts.map +1 -1
- package/dist/shared/contracts/index.d.ts +1 -0
- package/dist/shared/contracts/index.d.ts.map +1 -1
- package/dist/shared/contracts/preview.d.ts +27 -0
- package/dist/shared/contracts/preview.d.ts.map +1 -0
- package/dist/shared/index.js +4 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +4 -0
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +9 -9
- package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +0 -1
- package/dist/_chunks/Field-COL25JiC.js.map +0 -1
- package/dist/_chunks/Field-DufHXW17.mjs.map +0 -1
- package/dist/_chunks/History-C9t9UqpO.js.map +0 -1
- package/dist/_chunks/History-DRwA3oMM.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-D2VD8Szg.js.map +0 -1
- package/dist/_chunks/Relations-BTcf5xaw.mjs.map +0 -1
- package/dist/_chunks/Relations-DR7EUgyC.js.map +0 -1
- package/dist/_chunks/index-BdMf2lfT.js.map +0 -1
- package/dist/_chunks/index-wnqzm4Q8.mjs.map +0 -1
- package/dist/_chunks/relations-BH7JJGGe.js.map +0 -1
- package/dist/_chunks/relations-C0w0GcXi.mjs.map +0 -1
@@ -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 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const strapiAdmin = require("@strapi/admin/strapi-admin");
|
5
5
|
const React = require("react");
|
6
6
|
const designSystem = require("@strapi/design-system");
|
7
|
+
const mapValues = require("lodash/fp/mapValues");
|
7
8
|
const reactIntl = require("react-intl");
|
8
9
|
const reactRouterDom = require("react-router-dom");
|
9
10
|
const yup = require("yup");
|
@@ -32,6 +33,7 @@ function _interopNamespace(e) {
|
|
32
33
|
return Object.freeze(n);
|
33
34
|
}
|
34
35
|
const React__namespace = /* @__PURE__ */ _interopNamespace(React);
|
36
|
+
const mapValues__default = /* @__PURE__ */ _interopDefault(mapValues);
|
35
37
|
const yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
|
36
38
|
const pipe__default = /* @__PURE__ */ _interopDefault(pipe);
|
37
39
|
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
@@ -989,9 +991,10 @@ const formatEditLayout = (data, {
|
|
989
991
|
currentPanelIndex += 2;
|
990
992
|
} else {
|
991
993
|
if (!panels[currentPanelIndex]) {
|
992
|
-
panels.push([]);
|
994
|
+
panels.push([row]);
|
995
|
+
} else {
|
996
|
+
panels[currentPanelIndex].push(row);
|
993
997
|
}
|
994
|
-
panels[currentPanelIndex].push(row);
|
995
998
|
}
|
996
999
|
return panels;
|
997
1000
|
}, []);
|
@@ -1249,9 +1252,6 @@ const useContentManagerContext = () => {
|
|
1249
1252
|
};
|
1250
1253
|
};
|
1251
1254
|
const prefixPluginTranslations = (trad, pluginId) => {
|
1252
|
-
if (!pluginId) {
|
1253
|
-
throw new TypeError("pluginId can't be empty");
|
1254
|
-
}
|
1255
1255
|
return Object.keys(trad).reduce((acc, current) => {
|
1256
1256
|
acc[`${pluginId}.${current}`] = trad[current];
|
1257
1257
|
return acc;
|
@@ -1685,10 +1685,10 @@ const useDocumentActions = () => {
|
|
1685
1685
|
update
|
1686
1686
|
};
|
1687
1687
|
};
|
1688
|
-
const ProtectedHistoryPage =
|
1689
|
-
() => Promise.resolve().then(() => require("./History-
|
1688
|
+
const ProtectedHistoryPage = React__namespace.lazy(
|
1689
|
+
() => Promise.resolve().then(() => require("./History-DbdpigyF.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1690
1690
|
);
|
1691
|
-
const routes$
|
1691
|
+
const routes$2 = [
|
1692
1692
|
{
|
1693
1693
|
path: ":collectionType/:slug/:id/history",
|
1694
1694
|
Component: ProtectedHistoryPage
|
@@ -1698,32 +1698,45 @@ const routes$1 = [
|
|
1698
1698
|
Component: ProtectedHistoryPage
|
1699
1699
|
}
|
1700
1700
|
];
|
1701
|
+
const ProtectedPreviewPage = React__namespace.lazy(
|
1702
|
+
() => Promise.resolve().then(() => require("./Preview-COsm52rZ.js")).then((mod) => ({ default: mod.ProtectedPreviewPage }))
|
1703
|
+
);
|
1704
|
+
const routes$1 = [
|
1705
|
+
{
|
1706
|
+
path: ":collectionType/:slug/:id/preview",
|
1707
|
+
Component: ProtectedPreviewPage
|
1708
|
+
},
|
1709
|
+
{
|
1710
|
+
path: ":collectionType/:slug/preview",
|
1711
|
+
Component: ProtectedPreviewPage
|
1712
|
+
}
|
1713
|
+
];
|
1701
1714
|
const ProtectedEditViewPage = React.lazy(
|
1702
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1715
|
+
() => Promise.resolve().then(() => require("./EditViewPage-DoQm9llG.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1703
1716
|
);
|
1704
1717
|
const ProtectedListViewPage = React.lazy(
|
1705
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1718
|
+
() => Promise.resolve().then(() => require("./ListViewPage-CVIEfYWN.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1706
1719
|
);
|
1707
1720
|
const ProtectedListConfiguration = React.lazy(
|
1708
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1721
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-DRGhXnUA.js")).then((mod) => ({
|
1709
1722
|
default: mod.ProtectedListConfiguration
|
1710
1723
|
}))
|
1711
1724
|
);
|
1712
1725
|
const ProtectedEditConfigurationPage = React.lazy(
|
1713
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1726
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-Ds3BOL2z.js")).then((mod) => ({
|
1714
1727
|
default: mod.ProtectedEditConfigurationPage
|
1715
1728
|
}))
|
1716
1729
|
);
|
1717
1730
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1718
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1731
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-Cr0ttPAZ.js")).then((mod) => ({
|
1719
1732
|
default: mod.ProtectedComponentConfigurationPage
|
1720
1733
|
}))
|
1721
1734
|
);
|
1722
1735
|
const NoPermissions = React.lazy(
|
1723
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1736
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-pVeCVj9a.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1724
1737
|
);
|
1725
1738
|
const NoContentType = React.lazy(
|
1726
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1739
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-CTcfA2-Q.js")).then((mod) => ({ default: mod.NoContentType }))
|
1727
1740
|
);
|
1728
1741
|
const CollectionTypePages = () => {
|
1729
1742
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1735,7 +1748,7 @@ const CollectionTypePages = () => {
|
|
1735
1748
|
const CLONE_RELATIVE_PATH = ":collectionType/:slug/clone/:origin";
|
1736
1749
|
const CLONE_PATH = `/content-manager/${CLONE_RELATIVE_PATH}`;
|
1737
1750
|
const LIST_RELATIVE_PATH = ":collectionType/:slug";
|
1738
|
-
const LIST_PATH = `/content-manager
|
1751
|
+
const LIST_PATH = `/content-manager/collection-types/:slug`;
|
1739
1752
|
const routes = [
|
1740
1753
|
{
|
1741
1754
|
path: LIST_RELATIVE_PATH,
|
@@ -1769,6 +1782,7 @@ const routes = [
|
|
1769
1782
|
path: "no-content-types",
|
1770
1783
|
Component: NoContentType
|
1771
1784
|
},
|
1785
|
+
...routes$2,
|
1772
1786
|
...routes$1
|
1773
1787
|
];
|
1774
1788
|
const DocumentActions = ({ actions: actions2 }) => {
|
@@ -1930,43 +1944,25 @@ const DocumentActionsMenu = ({
|
|
1930
1944
|
disabled: action.disabled,
|
1931
1945
|
onSelect: handleClick(action),
|
1932
1946
|
display: "block",
|
1933
|
-
children: /* @__PURE__ */ jsxRuntime.
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
),
|
1953
|
-
action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsxRuntime.jsx(
|
1954
|
-
designSystem.Flex,
|
1955
|
-
{
|
1956
|
-
alignItems: "center",
|
1957
|
-
background: "alternative100",
|
1958
|
-
borderStyle: "solid",
|
1959
|
-
borderColor: "alternative200",
|
1960
|
-
borderWidth: "1px",
|
1961
|
-
height: 5,
|
1962
|
-
paddingLeft: 2,
|
1963
|
-
paddingRight: 2,
|
1964
|
-
hasRadius: true,
|
1965
|
-
color: "alternative600",
|
1966
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", fontWeight: "bold", lineHeight: 1, children: formatMessage({ id: "global.new", defaultMessage: "New" }) })
|
1967
|
-
}
|
1968
|
-
)
|
1969
|
-
] })
|
1947
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
1948
|
+
designSystem.Flex,
|
1949
|
+
{
|
1950
|
+
color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
|
1951
|
+
gap: 2,
|
1952
|
+
tag: "span",
|
1953
|
+
children: [
|
1954
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
1955
|
+
designSystem.Flex,
|
1956
|
+
{
|
1957
|
+
tag: "span",
|
1958
|
+
color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
|
1959
|
+
children: action.icon
|
1960
|
+
}
|
1961
|
+
),
|
1962
|
+
action.label
|
1963
|
+
]
|
1964
|
+
}
|
1965
|
+
) })
|
1970
1966
|
},
|
1971
1967
|
action.id
|
1972
1968
|
);
|
@@ -2077,6 +2073,18 @@ const DocumentActionModal = ({
|
|
2077
2073
|
typeof Footer === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Footer, { onClose: handleClose }) : Footer
|
2078
2074
|
] }) });
|
2079
2075
|
};
|
2076
|
+
const transformData = (data) => {
|
2077
|
+
if (Array.isArray(data)) {
|
2078
|
+
return data.map(transformData);
|
2079
|
+
}
|
2080
|
+
if (typeof data === "object" && data !== null) {
|
2081
|
+
if ("apiData" in data) {
|
2082
|
+
return data.apiData;
|
2083
|
+
}
|
2084
|
+
return mapValues__default.default(transformData)(data);
|
2085
|
+
}
|
2086
|
+
return data;
|
2087
|
+
};
|
2080
2088
|
const PublishAction$1 = ({
|
2081
2089
|
activeTab,
|
2082
2090
|
documentId,
|
@@ -2190,7 +2198,7 @@ const PublishAction$1 = ({
|
|
2190
2198
|
documentId,
|
2191
2199
|
params
|
2192
2200
|
},
|
2193
|
-
formValues
|
2201
|
+
transformData(formValues)
|
2194
2202
|
);
|
2195
2203
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2196
2204
|
navigate({
|
@@ -2306,7 +2314,7 @@ const UpdateAction = ({
|
|
2306
2314
|
documentId: cloneMatch.params.origin,
|
2307
2315
|
params
|
2308
2316
|
},
|
2309
|
-
document
|
2317
|
+
transformData(document)
|
2310
2318
|
);
|
2311
2319
|
if ("data" in res) {
|
2312
2320
|
navigate(
|
@@ -2327,7 +2335,7 @@ const UpdateAction = ({
|
|
2327
2335
|
documentId,
|
2328
2336
|
params
|
2329
2337
|
},
|
2330
|
-
document
|
2338
|
+
transformData(document)
|
2331
2339
|
);
|
2332
2340
|
if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
2333
2341
|
setErrors(formatValidationErrors(res.error));
|
@@ -2340,7 +2348,7 @@ const UpdateAction = ({
|
|
2340
2348
|
model,
|
2341
2349
|
params
|
2342
2350
|
},
|
2343
|
-
document
|
2351
|
+
transformData(document)
|
2344
2352
|
);
|
2345
2353
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
2346
2354
|
navigate(
|
@@ -2581,7 +2589,11 @@ const getDisplayName = ({
|
|
2581
2589
|
const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
2582
2590
|
const DocumentStatus = ({ status = "draft", ...restProps }) => {
|
2583
2591
|
const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
|
2584
|
-
|
2592
|
+
const { formatMessage } = reactIntl.useIntl();
|
2593
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
|
2594
|
+
id: `content-manager.containers.List.${status}`,
|
2595
|
+
defaultMessage: capitalise(status)
|
2596
|
+
}) }) });
|
2585
2597
|
};
|
2586
2598
|
const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
|
2587
2599
|
const { formatMessage } = reactIntl.useIntl();
|
@@ -3028,7 +3040,7 @@ const Panel = React__namespace.forwardRef(({ children, title }, ref) => {
|
|
3028
3040
|
justifyContent: "stretch",
|
3029
3041
|
alignItems: "flex-start",
|
3030
3042
|
children: [
|
3031
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
|
3043
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", textColor: "neutral600", children: title }),
|
3032
3044
|
children
|
3033
3045
|
]
|
3034
3046
|
}
|
@@ -4011,6 +4023,70 @@ const { setInitialData } = actions;
|
|
4011
4023
|
const reducer = toolkit.combineReducers({
|
4012
4024
|
app: reducer$1
|
4013
4025
|
});
|
4026
|
+
const previewApi = contentManagerApi.injectEndpoints({
|
4027
|
+
endpoints: (builder) => ({
|
4028
|
+
getPreviewUrl: builder.query({
|
4029
|
+
query({ query, params }) {
|
4030
|
+
return {
|
4031
|
+
url: `/content-manager/preview/url/${params.contentType}`,
|
4032
|
+
method: "GET",
|
4033
|
+
config: {
|
4034
|
+
params: query
|
4035
|
+
}
|
4036
|
+
};
|
4037
|
+
}
|
4038
|
+
})
|
4039
|
+
})
|
4040
|
+
});
|
4041
|
+
const { useGetPreviewUrlQuery } = previewApi;
|
4042
|
+
const PreviewSidePanel = ({ model, documentId, document }) => {
|
4043
|
+
const { formatMessage } = reactIntl.useIntl();
|
4044
|
+
const { trackUsage } = strapiAdmin.useTracking();
|
4045
|
+
const [{ query }] = strapiAdmin.useQueryParams();
|
4046
|
+
const { data, error } = useGetPreviewUrlQuery({
|
4047
|
+
params: {
|
4048
|
+
contentType: model
|
4049
|
+
},
|
4050
|
+
query: {
|
4051
|
+
documentId,
|
4052
|
+
locale: document?.locale,
|
4053
|
+
status: document?.status
|
4054
|
+
}
|
4055
|
+
});
|
4056
|
+
if (!data?.data?.url || error) {
|
4057
|
+
return null;
|
4058
|
+
}
|
4059
|
+
const handleClick = () => {
|
4060
|
+
trackUsage("willOpenPreview");
|
4061
|
+
};
|
4062
|
+
return {
|
4063
|
+
title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
|
4064
|
+
content: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
4065
|
+
designSystem.Button,
|
4066
|
+
{
|
4067
|
+
variant: "tertiary",
|
4068
|
+
tag: reactRouterDom.Link,
|
4069
|
+
to: { pathname: "preview", search: qs.stringify(query, { encode: false }) },
|
4070
|
+
onClick: handleClick,
|
4071
|
+
flex: "auto",
|
4072
|
+
children: formatMessage({
|
4073
|
+
id: "content-manager.preview.panel.button",
|
4074
|
+
defaultMessage: "Open preview"
|
4075
|
+
})
|
4076
|
+
}
|
4077
|
+
) })
|
4078
|
+
};
|
4079
|
+
};
|
4080
|
+
const FEATURE_ID = "preview";
|
4081
|
+
const previewAdmin = {
|
4082
|
+
bootstrap(app) {
|
4083
|
+
if (!window.strapi.future.isEnabled(FEATURE_ID)) {
|
4084
|
+
return;
|
4085
|
+
}
|
4086
|
+
const contentManagerPluginApis = app.getPlugin("content-manager").apis;
|
4087
|
+
contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
|
4088
|
+
}
|
4089
|
+
};
|
4014
4090
|
const index = {
|
4015
4091
|
register(app) {
|
4016
4092
|
const cm = new ContentManagerPlugin();
|
@@ -4030,7 +4106,7 @@ const index = {
|
|
4030
4106
|
app.router.addRoute({
|
4031
4107
|
path: "content-manager/*",
|
4032
4108
|
lazy: async () => {
|
4033
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
4109
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-9fI2_QJt.js"));
|
4034
4110
|
return {
|
4035
4111
|
Component: Layout
|
4036
4112
|
};
|
@@ -4043,11 +4119,14 @@ const index = {
|
|
4043
4119
|
if (typeof historyAdmin.bootstrap === "function") {
|
4044
4120
|
historyAdmin.bootstrap(app);
|
4045
4121
|
}
|
4122
|
+
if (typeof previewAdmin.bootstrap === "function") {
|
4123
|
+
previewAdmin.bootstrap(app);
|
4124
|
+
}
|
4046
4125
|
},
|
4047
4126
|
async registerTrads({ locales }) {
|
4048
4127
|
const importedTrads = await Promise.all(
|
4049
4128
|
locales.map((locale) => {
|
4050
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
4129
|
+
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-CHOp_xJv.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-9K52xZIr.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B2Kyv8Z9.js")), "./translations/gu.json": () => Promise.resolve().then(() => require("./gu-BRmF601H.js")), "./translations/hi.json": () => Promise.resolve().then(() => require("./hi-CCJBptSq.js")), "./translations/hu.json": () => Promise.resolve().then(() => require("./hu-sNV_yLYy.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-B5Ser98A.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-DkBIs7vD.js")), "./translations/ja.json": () => Promise.resolve().then(() => require("./ja-7sfIbjxE.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-woFZPmLk.js")), "./translations/ml.json": () => Promise.resolve().then(() => require("./ml-C2W8N8k1.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-BuFotyP_.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-bbEOHChV.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-uzwG-hk7.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-BiOz37D9.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-CeXQuq50.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BT3ybNny.js")), "./translations/sa.json": () => Promise.resolve().then(() => require("./sa-CcvkYInH.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-CvY09Xjv.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-MYDuzgvT.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-D9_GfAjc.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-D9UH-O_R.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-C8EiqJY7.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-CJlYDheJ.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-9kOncHGw.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CQQfszqR.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
|
4051
4130
|
return {
|
4052
4131
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4053
4132
|
locale
|
@@ -4105,5 +4184,6 @@ exports.useGetAllContentTypeSettingsQuery = useGetAllContentTypeSettingsQuery;
|
|
4105
4184
|
exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
4106
4185
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
4107
4186
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
4187
|
+
exports.useGetPreviewUrlQuery = useGetPreviewUrlQuery;
|
4108
4188
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
4109
|
-
//# sourceMappingURL=index-
|
4189
|
+
//# sourceMappingURL=index-CJX65DLa.js.map
|