@strapi/content-manager 0.0.0-experimental.cffeb3f30bb8beaa0d2a247ba56da461781c6690 → 0.0.0-experimental.d1602f22dc638a4c3c5084965fd6126fff5e9d4f

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.
Files changed (92) hide show
  1. package/dist/admin/chunks/{ComponentConfigurationPage-CM3vQxyp.js → ComponentConfigurationPage-DXwOtpq1.js} +3 -3
  2. package/dist/admin/chunks/{ComponentConfigurationPage-CM3vQxyp.js.map → ComponentConfigurationPage-DXwOtpq1.js.map} +1 -1
  3. package/dist/admin/chunks/{ComponentConfigurationPage-BqW-t7Lr.js → ComponentConfigurationPage-DhYZp4nN.js} +3 -3
  4. package/dist/admin/chunks/{ComponentConfigurationPage-BqW-t7Lr.js.map → ComponentConfigurationPage-DhYZp4nN.js.map} +1 -1
  5. package/dist/admin/chunks/{EditConfigurationPage-CIKO27N8.js → EditConfigurationPage-D0Ng758X.js} +3 -3
  6. package/dist/admin/chunks/{EditConfigurationPage-CIKO27N8.js.map → EditConfigurationPage-D0Ng758X.js.map} +1 -1
  7. package/dist/admin/chunks/{EditConfigurationPage-CYQ6mJWy.js → EditConfigurationPage-DDuPch5d.js} +3 -3
  8. package/dist/admin/chunks/{EditConfigurationPage-CYQ6mJWy.js.map → EditConfigurationPage-DDuPch5d.js.map} +1 -1
  9. package/dist/admin/chunks/{EditViewPage-DaY9aMeu.js → EditViewPage-jCZnUuCR.js} +6 -55
  10. package/dist/admin/chunks/{EditViewPage-DaY9aMeu.js.map → EditViewPage-jCZnUuCR.js.map} +1 -1
  11. package/dist/admin/chunks/{EditViewPage-CRu2G4OS.js → EditViewPage-zSnDwLz3.js} +6 -55
  12. package/dist/admin/chunks/{EditViewPage-CRu2G4OS.js.map → EditViewPage-zSnDwLz3.js.map} +1 -1
  13. package/dist/admin/chunks/{Form--7s-Wsw1.js → Form-BEqiuSvQ.js} +2 -2
  14. package/dist/admin/chunks/{Form--7s-Wsw1.js.map → Form-BEqiuSvQ.js.map} +1 -1
  15. package/dist/admin/chunks/{Form-CX_f1AUZ.js → Form-CZmB6JIg.js} +2 -2
  16. package/dist/admin/chunks/{Form-CX_f1AUZ.js.map → Form-CZmB6JIg.js.map} +1 -1
  17. package/dist/admin/chunks/{History-SRih7tGq.js → History-BlLKDZSw.js} +6 -55
  18. package/dist/admin/chunks/{History-SRih7tGq.js.map → History-BlLKDZSw.js.map} +1 -1
  19. package/dist/admin/chunks/{History-VVVFEAnd.js → History-CPYXgxkS.js} +6 -55
  20. package/dist/admin/chunks/{History-VVVFEAnd.js.map → History-CPYXgxkS.js.map} +1 -1
  21. package/dist/admin/chunks/{Input-B3wbR0pJ.js → Input-CLX3C5DI.js} +10 -53
  22. package/dist/admin/chunks/Input-CLX3C5DI.js.map +1 -0
  23. package/dist/admin/chunks/{Input-BIRb1gP2.js → Input-DiR2Xfa7.js} +11 -54
  24. package/dist/admin/chunks/Input-DiR2Xfa7.js.map +1 -0
  25. package/dist/admin/chunks/{ListConfigurationPage-BMBxgLtZ.js → ListConfigurationPage-CNvotSqe.js} +2 -2
  26. package/dist/admin/chunks/{ListConfigurationPage-BMBxgLtZ.js.map → ListConfigurationPage-CNvotSqe.js.map} +1 -1
  27. package/dist/admin/chunks/{ListConfigurationPage-DBWZlkHs.js → ListConfigurationPage-DdTp-HxB.js} +2 -2
  28. package/dist/admin/chunks/{ListConfigurationPage-DBWZlkHs.js.map → ListConfigurationPage-DdTp-HxB.js.map} +1 -1
  29. package/dist/admin/chunks/{ListViewPage-9jad22KO.js → ListViewPage-BtXYjEYz.js} +5 -5
  30. package/dist/admin/chunks/{ListViewPage-9jad22KO.js.map → ListViewPage-BtXYjEYz.js.map} +1 -1
  31. package/dist/admin/chunks/{ListViewPage-Dq2zuPYL.js → ListViewPage-MJNfQTp-.js} +4 -4
  32. package/dist/admin/chunks/{ListViewPage-Dq2zuPYL.js.map → ListViewPage-MJNfQTp-.js.map} +1 -1
  33. package/dist/admin/chunks/{NoContentTypePage-BtpSxTZs.js → NoContentTypePage-BJrZvYPY.js} +2 -2
  34. package/dist/admin/chunks/{NoContentTypePage-BtpSxTZs.js.map → NoContentTypePage-BJrZvYPY.js.map} +1 -1
  35. package/dist/admin/chunks/{NoContentTypePage-B5xX6Br5.js → NoContentTypePage-CVvVpwj4.js} +2 -2
  36. package/dist/admin/chunks/{NoContentTypePage-B5xX6Br5.js.map → NoContentTypePage-CVvVpwj4.js.map} +1 -1
  37. package/dist/admin/chunks/{NoPermissionsPage-HnOCsRtG.js → NoPermissionsPage-BulvG4hB.js} +2 -2
  38. package/dist/admin/chunks/{NoPermissionsPage-HnOCsRtG.js.map → NoPermissionsPage-BulvG4hB.js.map} +1 -1
  39. package/dist/admin/chunks/{NoPermissionsPage-CRS0hARz.js → NoPermissionsPage-C5yWg70d.js} +2 -2
  40. package/dist/admin/chunks/{NoPermissionsPage-CRS0hARz.js.map → NoPermissionsPage-C5yWg70d.js.map} +1 -1
  41. package/dist/admin/chunks/{Preview-BcggSPwn.js → Preview-DEuQgQg2.js} +111 -64
  42. package/dist/admin/chunks/Preview-DEuQgQg2.js.map +1 -0
  43. package/dist/admin/chunks/{Preview-DRtWRrYn.js → Preview-H74FQ9Cq.js} +109 -62
  44. package/dist/admin/chunks/Preview-H74FQ9Cq.js.map +1 -0
  45. package/dist/admin/chunks/{Relations-B1i77Jba.js → Relations-C8jbZPVK.js} +6 -5
  46. package/dist/admin/chunks/Relations-C8jbZPVK.js.map +1 -0
  47. package/dist/admin/chunks/{Relations-BDe2e0a7.js → Relations-mxOUS7TJ.js} +6 -5
  48. package/dist/admin/chunks/Relations-mxOUS7TJ.js.map +1 -0
  49. package/dist/admin/chunks/{en-1xHet_GV.js → en-C1CjdAtC.js} +2 -1
  50. package/dist/admin/chunks/{en-1xHet_GV.js.map → en-C1CjdAtC.js.map} +1 -1
  51. package/dist/admin/chunks/{en-DB7sPJVj.js → en-LfhocNG2.js} +2 -1
  52. package/dist/admin/chunks/{en-DB7sPJVj.js.map → en-LfhocNG2.js.map} +1 -1
  53. package/dist/admin/chunks/{fr-Dm1xiZI5.js → fr-CFdRaRVj.js} +4 -1
  54. package/dist/admin/chunks/{fr-Dm1xiZI5.js.map → fr-CFdRaRVj.js.map} +1 -1
  55. package/dist/admin/chunks/{fr-CqAyDOmo.js → fr-gQSilC7w.js} +4 -1
  56. package/dist/admin/chunks/{fr-CqAyDOmo.js.map → fr-gQSilC7w.js.map} +1 -1
  57. package/dist/admin/chunks/{index-DfEfFmQC.js → index-BRlRBRLb.js} +130 -53
  58. package/dist/admin/chunks/index-BRlRBRLb.js.map +1 -0
  59. package/dist/admin/chunks/{index-CKZHZ3ir.js → index-ZIwOPk6p.js} +128 -51
  60. package/dist/admin/chunks/index-ZIwOPk6p.js.map +1 -0
  61. package/dist/admin/chunks/{layout-BN6DSZ4t.js → layout-B3-guCPG.js} +4 -4
  62. package/dist/admin/chunks/{layout-BN6DSZ4t.js.map → layout-B3-guCPG.js.map} +1 -1
  63. package/dist/admin/chunks/{layout-CX-A0s3P.js → layout-ameRNiAM.js} +4 -4
  64. package/dist/admin/chunks/{layout-CX-A0s3P.js.map → layout-ameRNiAM.js.map} +1 -1
  65. package/dist/admin/chunks/{relations-CuPmv-zR.js → relations-CmoFVrKj.js} +20 -2
  66. package/dist/admin/chunks/relations-CmoFVrKj.js.map +1 -0
  67. package/dist/admin/chunks/{relations-xwSNlsdc.js → relations-DYQAaXwZ.js} +20 -3
  68. package/dist/admin/chunks/relations-DYQAaXwZ.js.map +1 -0
  69. package/dist/admin/chunks/usePrev-Bjw2dhmq.js +18 -0
  70. package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +1 -0
  71. package/dist/admin/chunks/{usePrev-CwGzb4ed.js → usePrev-DIYl-IAL.js} +1 -18
  72. package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +1 -0
  73. package/dist/admin/index.js +1 -1
  74. package/dist/admin/index.mjs +1 -1
  75. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +0 -1
  76. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +0 -49
  77. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -1
  78. package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -1
  79. package/package.json +5 -5
  80. package/dist/admin/chunks/Input-B3wbR0pJ.js.map +0 -1
  81. package/dist/admin/chunks/Input-BIRb1gP2.js.map +0 -1
  82. package/dist/admin/chunks/Preview-BcggSPwn.js.map +0 -1
  83. package/dist/admin/chunks/Preview-DRtWRrYn.js.map +0 -1
  84. package/dist/admin/chunks/Relations-B1i77Jba.js.map +0 -1
  85. package/dist/admin/chunks/Relations-BDe2e0a7.js.map +0 -1
  86. package/dist/admin/chunks/index-CKZHZ3ir.js.map +0 -1
  87. package/dist/admin/chunks/index-DfEfFmQC.js.map +0 -1
  88. package/dist/admin/chunks/relations-CuPmv-zR.js.map +0 -1
  89. package/dist/admin/chunks/relations-xwSNlsdc.js.map +0 -1
  90. package/dist/admin/chunks/usePrev-CwGzb4ed.js.map +0 -1
  91. package/dist/admin/chunks/usePrev-tlgK0qPG.js +0 -34
  92. package/dist/admin/chunks/usePrev-tlgK0qPG.js.map +0 -1
@@ -2247,7 +2247,7 @@ const DEFAULT_UNEXPECTED_ERROR_MSG = {
2247
2247
  };
2248
2248
  };
2249
2249
 
2250
- const ProtectedHistoryPage = /*#__PURE__*/ React__namespace.lazy(()=>Promise.resolve().then(function () { return require('./History-SRih7tGq.js'); }).then((mod)=>({
2250
+ const ProtectedHistoryPage = /*#__PURE__*/ React__namespace.lazy(()=>Promise.resolve().then(function () { return require('./History-BlLKDZSw.js'); }).then((mod)=>({
2251
2251
  default: mod.ProtectedHistoryPage
2252
2252
  })));
2253
2253
  /**
@@ -2263,7 +2263,7 @@ const ProtectedHistoryPage = /*#__PURE__*/ React__namespace.lazy(()=>Promise.res
2263
2263
  }
2264
2264
  ];
2265
2265
 
2266
- const ProtectedPreviewPage = /*#__PURE__*/ React__namespace.lazy(()=>Promise.resolve().then(function () { return require('./Preview-DRtWRrYn.js'); }).then((mod)=>({
2266
+ const ProtectedPreviewPage = /*#__PURE__*/ React__namespace.lazy(()=>Promise.resolve().then(function () { return require('./Preview-H74FQ9Cq.js'); }).then((mod)=>({
2267
2267
  default: mod.ProtectedPreviewPage
2268
2268
  })));
2269
2269
  const routes$1 = [
@@ -2277,25 +2277,25 @@ const routes$1 = [
2277
2277
  }
2278
2278
  ];
2279
2279
 
2280
- const ProtectedEditViewPage = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./EditViewPage-CRu2G4OS.js'); }).then((mod)=>({
2280
+ const ProtectedEditViewPage = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./EditViewPage-zSnDwLz3.js'); }).then((mod)=>({
2281
2281
  default: mod.ProtectedEditViewPage
2282
2282
  })));
2283
- const ProtectedListViewPage = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./ListViewPage-9jad22KO.js'); }).then((mod)=>({
2283
+ const ProtectedListViewPage = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./ListViewPage-BtXYjEYz.js'); }).then((mod)=>({
2284
2284
  default: mod.ProtectedListViewPage
2285
2285
  })));
2286
- const ProtectedListConfiguration = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./ListConfigurationPage-DBWZlkHs.js'); }).then((mod)=>({
2286
+ const ProtectedListConfiguration = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./ListConfigurationPage-DdTp-HxB.js'); }).then((mod)=>({
2287
2287
  default: mod.ProtectedListConfiguration
2288
2288
  })));
2289
- const ProtectedEditConfigurationPage = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./EditConfigurationPage-CIKO27N8.js'); }).then((mod)=>({
2289
+ const ProtectedEditConfigurationPage = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./EditConfigurationPage-D0Ng758X.js'); }).then((mod)=>({
2290
2290
  default: mod.ProtectedEditConfigurationPage
2291
2291
  })));
2292
- const ProtectedComponentConfigurationPage = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./ComponentConfigurationPage-CM3vQxyp.js'); }).then((mod)=>({
2292
+ const ProtectedComponentConfigurationPage = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./ComponentConfigurationPage-DXwOtpq1.js'); }).then((mod)=>({
2293
2293
  default: mod.ProtectedComponentConfigurationPage
2294
2294
  })));
2295
- const NoPermissions = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./NoPermissionsPage-CRS0hARz.js'); }).then((mod)=>({
2295
+ const NoPermissions = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./NoPermissionsPage-C5yWg70d.js'); }).then((mod)=>({
2296
2296
  default: mod.NoPermissions
2297
2297
  })));
2298
- const NoContentType = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./NoContentTypePage-B5xX6Br5.js'); }).then((mod)=>({
2298
+ const NoContentType = /*#__PURE__*/ React.lazy(()=>Promise.resolve().then(function () { return require('./NoContentTypePage-CVvVpwj4.js'); }).then((mod)=>({
2299
2299
  default: mod.NoContentType
2300
2300
  })));
2301
2301
  const CollectionTypePages = ()=>{
@@ -3899,7 +3899,7 @@ const ConfirmBulkActionDialog = ({ onToggleDialog, isOpen = false, dialogBody, e
3899
3899
  };
3900
3900
  /* -------------------------------------------------------------------------------------------------
3901
3901
  * BoldChunk
3902
- * -----------------------------------------------------------------------------------------------*/ const BoldChunk$1 = (chunks)=>/*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
3902
+ * -----------------------------------------------------------------------------------------------*/ const BoldChunk = (chunks)=>/*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
3903
3903
  fontWeight: "bold",
3904
3904
  children: chunks
3905
3905
  });
@@ -3948,7 +3948,7 @@ const ConfirmDialogPublishAll = ({ isOpen, onToggleDialog, isConfirmButtonLoadin
3948
3948
  id: getTranslation(`popUpwarning.warning.bulk-has-draft-relations.message`),
3949
3949
  defaultMessage: '<b>{count} {count, plural, one { relation } other { relations } } out of {entities} { entities, plural, one { entry } other { entries } } {count, plural, one { is } other { are } }</b> not published yet and might lead to unexpected behavior. '
3950
3950
  }, {
3951
- b: BoldChunk$1,
3951
+ b: BoldChunk,
3952
3952
  count: countDraftRelations,
3953
3953
  entities: selectedEntries.length
3954
3954
  }),
@@ -3986,6 +3986,16 @@ const ConfirmDialogPublishAll = ({ isOpen, onToggleDialog, isConfirmButtonLoadin
3986
3986
  const TypographyMaxWidth = styledComponents.styled(designSystem.Typography)`
3987
3987
  max-width: 300px;
3988
3988
  `;
3989
+ const TableComponent = styledComponents.styled(designSystem.RawTable)`
3990
+ width: 100%;
3991
+ table-layout: fixed;
3992
+ td:first-child {
3993
+ border-right: 1px solid ${({ theme })=>theme.colors.neutral150};
3994
+ }
3995
+ td:first-of-type {
3996
+ padding: ${({ theme })=>theme.spaces[4]};
3997
+ }
3998
+ `;
3989
3999
  /* -------------------------------------------------------------------------------------------------
3990
4000
  * EntryValidationText
3991
4001
  * -----------------------------------------------------------------------------------------------*/ const formatErrorMessages = (errors, parentKey, formatMessage)=>{
@@ -4122,7 +4132,7 @@ const SelectedEntriesTableContent = ({ isPublishing, rowsToDisplay = [], entries
4122
4132
  }),
4123
4133
  /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Table.Loading, {}),
4124
4134
  /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Table.Body, {
4125
- children: rowsToDisplay.map((row, index)=>/*#__PURE__*/ jsxRuntime.jsxs(strapiAdmin.Table.Row, {
4135
+ children: rowsToDisplay.map((row)=>/*#__PURE__*/ jsxRuntime.jsxs(strapiAdmin.Table.Row, {
4126
4136
  children: [
4127
4137
  /*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Table.CheckboxCell, {
4128
4138
  id: row.id
@@ -4193,12 +4203,99 @@ const SelectedEntriesTableContent = ({ isPublishing, rowsToDisplay = [], entries
4193
4203
  ]
4194
4204
  });
4195
4205
  };
4196
- /* -------------------------------------------------------------------------------------------------
4197
- * BoldChunk
4198
- * -----------------------------------------------------------------------------------------------*/ const BoldChunk = (chunks)=>/*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
4199
- fontWeight: "bold",
4200
- children: chunks
4206
+ const PublicationStatusSummary = ({ count, icon, message })=>{
4207
+ return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
4208
+ justifyContent: "space-between",
4209
+ flex: 1,
4210
+ gap: 3,
4211
+ children: [
4212
+ /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
4213
+ gap: 2,
4214
+ children: [
4215
+ icon,
4216
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
4217
+ children: message
4218
+ })
4219
+ ]
4220
+ }),
4221
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
4222
+ fontWeight: "bold",
4223
+ children: count
4224
+ })
4225
+ ]
4226
+ });
4227
+ };
4228
+ const PublicationStatusGrid = ({ entriesReadyToPublishCount, entriesPublishedCount, entriesModifiedCount, entriesWithErrorsCount })=>{
4229
+ const { formatMessage } = reactIntl.useIntl();
4230
+ return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
4231
+ hasRadius: true,
4232
+ borderColor: "neutral150",
4233
+ children: /*#__PURE__*/ jsxRuntime.jsx(TableComponent, {
4234
+ colCount: 2,
4235
+ rowCount: 2,
4236
+ children: /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Tbody, {
4237
+ children: [
4238
+ /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Tr, {
4239
+ children: [
4240
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Td, {
4241
+ children: /*#__PURE__*/ jsxRuntime.jsx(PublicationStatusSummary, {
4242
+ count: entriesReadyToPublishCount,
4243
+ icon: /*#__PURE__*/ jsxRuntime.jsx(Icons.CheckCircle, {
4244
+ fill: "success600"
4245
+ }),
4246
+ message: formatMessage({
4247
+ id: 'app.utils.ready-to-publish',
4248
+ defaultMessage: 'Ready to publish'
4249
+ })
4250
+ })
4251
+ }),
4252
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Td, {
4253
+ children: /*#__PURE__*/ jsxRuntime.jsx(PublicationStatusSummary, {
4254
+ count: entriesPublishedCount,
4255
+ icon: /*#__PURE__*/ jsxRuntime.jsx(Icons.CheckCircle, {
4256
+ fill: "success600"
4257
+ }),
4258
+ message: formatMessage({
4259
+ id: 'app.utils.already-published',
4260
+ defaultMessage: 'Already published'
4261
+ })
4262
+ })
4263
+ })
4264
+ ]
4265
+ }),
4266
+ /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Tr, {
4267
+ children: [
4268
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Td, {
4269
+ children: /*#__PURE__*/ jsxRuntime.jsx(PublicationStatusSummary, {
4270
+ count: entriesModifiedCount,
4271
+ icon: /*#__PURE__*/ jsxRuntime.jsx(Icons.ArrowsCounterClockwise, {
4272
+ fill: "alternative600"
4273
+ }),
4274
+ message: formatMessage({
4275
+ id: 'content-manager.bulk-publish.modified',
4276
+ defaultMessage: 'Ready to publish changes'
4277
+ })
4278
+ })
4279
+ }),
4280
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Td, {
4281
+ children: /*#__PURE__*/ jsxRuntime.jsx(PublicationStatusSummary, {
4282
+ count: entriesWithErrorsCount,
4283
+ icon: /*#__PURE__*/ jsxRuntime.jsx(Icons.CrossCircle, {
4284
+ fill: "danger600"
4285
+ }),
4286
+ message: formatMessage({
4287
+ id: 'content-manager.bulk-publish.waiting-for-action',
4288
+ defaultMessage: 'Waiting for action'
4289
+ })
4290
+ })
4291
+ })
4292
+ ]
4293
+ })
4294
+ ]
4295
+ })
4296
+ })
4201
4297
  });
4298
+ };
4202
4299
  const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, setListViewSelectedDocuments, model })=>{
4203
4300
  const { formatMessage } = reactIntl.useIntl();
4204
4301
  const { schema, components } = useContentTypeSchema(model);
@@ -4264,7 +4361,6 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4264
4361
  data,
4265
4362
  schema
4266
4363
  ]);
4267
- const [publishedCount, setPublishedCount] = React__namespace.useState(0);
4268
4364
  const [isDialogOpen, setIsDialogOpen] = React__namespace.useState(false);
4269
4365
  const { publishMany: bulkPublishAction } = useDocumentActions();
4270
4366
  const [, { isLoading: isSubmittingForm }] = usePublishManyDocumentsMutation();
@@ -4273,8 +4369,9 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4273
4369
  const selectedEntries = rows.filter((entry)=>selectedRows.some((selectedEntry)=>selectedEntry.documentId === entry.documentId));
4274
4370
  const entriesToPublish = selectedEntries.filter((entry)=>!validationErrors[entry.documentId]).map((entry)=>entry.documentId);
4275
4371
  const selectedEntriesWithErrorsCount = selectedEntries.filter(({ documentId })=>validationErrors[documentId]).length;
4276
- const selectedEntriesPublished = selectedEntries.filter(({ status })=>status === 'published').length;
4277
- const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublished;
4372
+ const selectedEntriesPublishedCount = selectedEntries.filter(({ status })=>status === 'published').length;
4373
+ const selectedEntriesModifiedCount = selectedEntries.filter(({ status, documentId })=>status === 'modified' && !validationErrors[documentId]).length;
4374
+ const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublishedCount;
4278
4375
  const toggleDialog = ()=>setIsDialogOpen((prev)=>!prev);
4279
4376
  const handleConfirmBulkPublish = async ()=>{
4280
4377
  toggleDialog();
@@ -4284,8 +4381,6 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4284
4381
  params
4285
4382
  });
4286
4383
  if (!('error' in res)) {
4287
- // @ts-expect-error TODO: check with BE why response is not consistent with other actions
4288
- setPublishedCount(res.count);
4289
4384
  const unpublishedEntries = rows.filter((row)=>{
4290
4385
  return !entriesToPublish.includes(row.documentId);
4291
4386
  });
@@ -4293,36 +4388,18 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4293
4388
  setListViewSelectedDocuments(unpublishedEntries);
4294
4389
  }
4295
4390
  };
4296
- const getFormattedCountMessage = ()=>{
4297
- if (publishedCount) {
4298
- return formatMessage({
4299
- id: getTranslation('containers.list.selectedEntriesModal.publishedCount'),
4300
- defaultMessage: '<b>{publishedCount}</b> {publishedCount, plural, =0 {entries} one {entry} other {entries}} published. <b>{withErrorsCount}</b> {withErrorsCount, plural, =0 {entries} one {entry} other {entries}} waiting for action.'
4301
- }, {
4302
- publishedCount,
4303
- withErrorsCount: selectedEntriesWithErrorsCount,
4304
- b: BoldChunk
4305
- });
4306
- }
4307
- return formatMessage({
4308
- id: getTranslation('containers.list.selectedEntriesModal.selectedCount'),
4309
- defaultMessage: '<b>{alreadyPublishedCount}</b> {alreadyPublishedCount, plural, =0 {entries} one {entry} other {entries}} already published. <b>{readyToPublishCount}</b> {readyToPublishCount, plural, =0 {entries} one {entry} other {entries}} ready to publish. <b>{withErrorsCount}</b> {withErrorsCount, plural, =0 {entries} one {entry} other {entries}} waiting for action.'
4310
- }, {
4311
- readyToPublishCount: selectedEntriesWithNoErrorsCount,
4312
- withErrorsCount: selectedEntriesWithErrorsCount,
4313
- alreadyPublishedCount: selectedEntriesPublished,
4314
- b: BoldChunk
4315
- });
4316
- };
4317
4391
  return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4318
4392
  children: [
4319
4393
  /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Modal.Body, {
4320
4394
  children: [
4321
- /*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
4322
- children: getFormattedCountMessage()
4395
+ /*#__PURE__*/ jsxRuntime.jsx(PublicationStatusGrid, {
4396
+ entriesReadyToPublishCount: selectedEntriesWithNoErrorsCount - selectedEntriesModifiedCount,
4397
+ entriesPublishedCount: selectedEntriesPublishedCount,
4398
+ entriesModifiedCount: selectedEntriesModifiedCount,
4399
+ entriesWithErrorsCount: selectedEntriesWithErrorsCount
4323
4400
  }),
4324
4401
  /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
4325
- marginTop: 5,
4402
+ marginTop: 7,
4326
4403
  children: /*#__PURE__*/ jsxRuntime.jsx(SelectedEntriesTableContent, {
4327
4404
  isPublishing: isSubmittingForm,
4328
4405
  rowsToDisplay: rows,
@@ -4356,7 +4433,7 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4356
4433
  }),
4357
4434
  /*#__PURE__*/ jsxRuntime.jsx(designSystem.Button, {
4358
4435
  onClick: toggleDialog,
4359
- disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
4436
+ disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublishedCount === selectedEntries.length || isLoading,
4360
4437
  loading: isSubmittingForm,
4361
4438
  children: formatMessage({
4362
4439
  id: 'app.utils.publish',
@@ -5200,10 +5277,10 @@ function __variableDynamicImportRuntime1__(path) {
5200
5277
  case './translations/ca.json': return Promise.resolve().then(function () { return require('./ca-ClDTvatJ.js'); });
5201
5278
  case './translations/cs.json': return Promise.resolve().then(function () { return require('./cs-BJFxwIWj.js'); });
5202
5279
  case './translations/de.json': return Promise.resolve().then(function () { return require('./de-CbImAUA5.js'); });
5203
- case './translations/en.json': return Promise.resolve().then(function () { return require('./en-1xHet_GV.js'); });
5280
+ case './translations/en.json': return Promise.resolve().then(function () { return require('./en-C1CjdAtC.js'); });
5204
5281
  case './translations/es.json': return Promise.resolve().then(function () { return require('./es-C8vLuvZL.js'); });
5205
5282
  case './translations/eu.json': return Promise.resolve().then(function () { return require('./eu-BJW3AvXu.js'); });
5206
- case './translations/fr.json': return Promise.resolve().then(function () { return require('./fr-CqAyDOmo.js'); });
5283
+ case './translations/fr.json': return Promise.resolve().then(function () { return require('./fr-gQSilC7w.js'); });
5207
5284
  case './translations/gu.json': return Promise.resolve().then(function () { return require('./gu-DPU4wyx7.js'); });
5208
5285
  case './translations/hi.json': return Promise.resolve().then(function () { return require('./hi-Dp4omeBb.js'); });
5209
5286
  case './translations/hu.json': return Promise.resolve().then(function () { return require('./hu-CtFJuhTd.js'); });
@@ -5254,7 +5331,7 @@ var index = {
5254
5331
  app.router.addRoute({
5255
5332
  path: 'content-manager/*',
5256
5333
  lazy: async ()=>{
5257
- const { Layout } = await Promise.resolve().then(function () { return require('./layout-CX-A0s3P.js'); });
5334
+ const { Layout } = await Promise.resolve().then(function () { return require('./layout-ameRNiAM.js'); });
5258
5335
  return {
5259
5336
  Component: Layout
5260
5337
  };
@@ -5336,4 +5413,4 @@ exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuer
5336
5413
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
5337
5414
  exports.useGetPreviewUrlQuery = useGetPreviewUrlQuery;
5338
5415
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
5339
- //# sourceMappingURL=index-CKZHZ3ir.js.map
5416
+ //# sourceMappingURL=index-ZIwOPk6p.js.map