@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
@@ -1,9 +1,9 @@
1
- import { Cross, WarningCircle, More, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, ClockCounterClockwise, Feather } from '@strapi/icons';
1
+ import { Cross, WarningCircle, More, ListPlus, Pencil, Trash, Check, CheckCircle, ArrowsCounterClockwise, CrossCircle, ChevronRight, Duplicate, ClockCounterClockwise, Feather } from '@strapi/icons';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
3
  import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useForm, useTracking, useGuidedTour, BackButton, DescriptionComponentRenderer, useTable, Table } from '@strapi/admin/strapi-admin';
4
4
  import * as React from 'react';
5
5
  import { lazy } from 'react';
6
- import { Menu, Flex, Typography, Radio, Button, VisuallyHidden, Dialog, Modal, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from '@strapi/design-system';
6
+ import { Menu, Flex, Typography, Radio, Button, VisuallyHidden, Dialog, Modal, Status, Box, SingleSelect, SingleSelectOption, IconButton, RawTable, Loader, Tbody, Tr, Td, Tooltip, LinkButton } from '@strapi/design-system';
7
7
  import mapValues from 'lodash/fp/mapValues';
8
8
  import { useIntl } from 'react-intl';
9
9
  import { useParams, useNavigate, Navigate, useMatch, useLocation, Link, NavLink } from 'react-router-dom';
@@ -2227,7 +2227,7 @@ const DEFAULT_UNEXPECTED_ERROR_MSG = {
2227
2227
  };
2228
2228
  };
2229
2229
 
2230
- const ProtectedHistoryPage = /*#__PURE__*/ React.lazy(()=>import('./History-VVVFEAnd.js').then((mod)=>({
2230
+ const ProtectedHistoryPage = /*#__PURE__*/ React.lazy(()=>import('./History-CPYXgxkS.js').then((mod)=>({
2231
2231
  default: mod.ProtectedHistoryPage
2232
2232
  })));
2233
2233
  /**
@@ -2243,7 +2243,7 @@ const ProtectedHistoryPage = /*#__PURE__*/ React.lazy(()=>import('./History-VVVF
2243
2243
  }
2244
2244
  ];
2245
2245
 
2246
- const ProtectedPreviewPage = /*#__PURE__*/ React.lazy(()=>import('./Preview-BcggSPwn.js').then((mod)=>({
2246
+ const ProtectedPreviewPage = /*#__PURE__*/ React.lazy(()=>import('./Preview-DEuQgQg2.js').then((mod)=>({
2247
2247
  default: mod.ProtectedPreviewPage
2248
2248
  })));
2249
2249
  const routes$1 = [
@@ -2257,25 +2257,25 @@ const routes$1 = [
2257
2257
  }
2258
2258
  ];
2259
2259
 
2260
- const ProtectedEditViewPage = /*#__PURE__*/ lazy(()=>import('./EditViewPage-DaY9aMeu.js').then((mod)=>({
2260
+ const ProtectedEditViewPage = /*#__PURE__*/ lazy(()=>import('./EditViewPage-jCZnUuCR.js').then((mod)=>({
2261
2261
  default: mod.ProtectedEditViewPage
2262
2262
  })));
2263
- const ProtectedListViewPage = /*#__PURE__*/ lazy(()=>import('./ListViewPage-Dq2zuPYL.js').then((mod)=>({
2263
+ const ProtectedListViewPage = /*#__PURE__*/ lazy(()=>import('./ListViewPage-MJNfQTp-.js').then((mod)=>({
2264
2264
  default: mod.ProtectedListViewPage
2265
2265
  })));
2266
- const ProtectedListConfiguration = /*#__PURE__*/ lazy(()=>import('./ListConfigurationPage-BMBxgLtZ.js').then((mod)=>({
2266
+ const ProtectedListConfiguration = /*#__PURE__*/ lazy(()=>import('./ListConfigurationPage-CNvotSqe.js').then((mod)=>({
2267
2267
  default: mod.ProtectedListConfiguration
2268
2268
  })));
2269
- const ProtectedEditConfigurationPage = /*#__PURE__*/ lazy(()=>import('./EditConfigurationPage-CYQ6mJWy.js').then((mod)=>({
2269
+ const ProtectedEditConfigurationPage = /*#__PURE__*/ lazy(()=>import('./EditConfigurationPage-DDuPch5d.js').then((mod)=>({
2270
2270
  default: mod.ProtectedEditConfigurationPage
2271
2271
  })));
2272
- const ProtectedComponentConfigurationPage = /*#__PURE__*/ lazy(()=>import('./ComponentConfigurationPage-BqW-t7Lr.js').then((mod)=>({
2272
+ const ProtectedComponentConfigurationPage = /*#__PURE__*/ lazy(()=>import('./ComponentConfigurationPage-DhYZp4nN.js').then((mod)=>({
2273
2273
  default: mod.ProtectedComponentConfigurationPage
2274
2274
  })));
2275
- const NoPermissions = /*#__PURE__*/ lazy(()=>import('./NoPermissionsPage-HnOCsRtG.js').then((mod)=>({
2275
+ const NoPermissions = /*#__PURE__*/ lazy(()=>import('./NoPermissionsPage-BulvG4hB.js').then((mod)=>({
2276
2276
  default: mod.NoPermissions
2277
2277
  })));
2278
- const NoContentType = /*#__PURE__*/ lazy(()=>import('./NoContentTypePage-BtpSxTZs.js').then((mod)=>({
2278
+ const NoContentType = /*#__PURE__*/ lazy(()=>import('./NoContentTypePage-BJrZvYPY.js').then((mod)=>({
2279
2279
  default: mod.NoContentType
2280
2280
  })));
2281
2281
  const CollectionTypePages = ()=>{
@@ -3879,7 +3879,7 @@ const ConfirmBulkActionDialog = ({ onToggleDialog, isOpen = false, dialogBody, e
3879
3879
  };
3880
3880
  /* -------------------------------------------------------------------------------------------------
3881
3881
  * BoldChunk
3882
- * -----------------------------------------------------------------------------------------------*/ const BoldChunk$1 = (chunks)=>/*#__PURE__*/ jsx(Typography, {
3882
+ * -----------------------------------------------------------------------------------------------*/ const BoldChunk = (chunks)=>/*#__PURE__*/ jsx(Typography, {
3883
3883
  fontWeight: "bold",
3884
3884
  children: chunks
3885
3885
  });
@@ -3928,7 +3928,7 @@ const ConfirmDialogPublishAll = ({ isOpen, onToggleDialog, isConfirmButtonLoadin
3928
3928
  id: getTranslation(`popUpwarning.warning.bulk-has-draft-relations.message`),
3929
3929
  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. '
3930
3930
  }, {
3931
- b: BoldChunk$1,
3931
+ b: BoldChunk,
3932
3932
  count: countDraftRelations,
3933
3933
  entities: selectedEntries.length
3934
3934
  }),
@@ -3966,6 +3966,16 @@ const ConfirmDialogPublishAll = ({ isOpen, onToggleDialog, isConfirmButtonLoadin
3966
3966
  const TypographyMaxWidth = styled(Typography)`
3967
3967
  max-width: 300px;
3968
3968
  `;
3969
+ const TableComponent = styled(RawTable)`
3970
+ width: 100%;
3971
+ table-layout: fixed;
3972
+ td:first-child {
3973
+ border-right: 1px solid ${({ theme })=>theme.colors.neutral150};
3974
+ }
3975
+ td:first-of-type {
3976
+ padding: ${({ theme })=>theme.spaces[4]};
3977
+ }
3978
+ `;
3969
3979
  /* -------------------------------------------------------------------------------------------------
3970
3980
  * EntryValidationText
3971
3981
  * -----------------------------------------------------------------------------------------------*/ const formatErrorMessages = (errors, parentKey, formatMessage)=>{
@@ -4102,7 +4112,7 @@ const SelectedEntriesTableContent = ({ isPublishing, rowsToDisplay = [], entries
4102
4112
  }),
4103
4113
  /*#__PURE__*/ jsx(Table.Loading, {}),
4104
4114
  /*#__PURE__*/ jsx(Table.Body, {
4105
- children: rowsToDisplay.map((row, index)=>/*#__PURE__*/ jsxs(Table.Row, {
4115
+ children: rowsToDisplay.map((row)=>/*#__PURE__*/ jsxs(Table.Row, {
4106
4116
  children: [
4107
4117
  /*#__PURE__*/ jsx(Table.CheckboxCell, {
4108
4118
  id: row.id
@@ -4173,12 +4183,99 @@ const SelectedEntriesTableContent = ({ isPublishing, rowsToDisplay = [], entries
4173
4183
  ]
4174
4184
  });
4175
4185
  };
4176
- /* -------------------------------------------------------------------------------------------------
4177
- * BoldChunk
4178
- * -----------------------------------------------------------------------------------------------*/ const BoldChunk = (chunks)=>/*#__PURE__*/ jsx(Typography, {
4179
- fontWeight: "bold",
4180
- children: chunks
4186
+ const PublicationStatusSummary = ({ count, icon, message })=>{
4187
+ return /*#__PURE__*/ jsxs(Flex, {
4188
+ justifyContent: "space-between",
4189
+ flex: 1,
4190
+ gap: 3,
4191
+ children: [
4192
+ /*#__PURE__*/ jsxs(Flex, {
4193
+ gap: 2,
4194
+ children: [
4195
+ icon,
4196
+ /*#__PURE__*/ jsx(Typography, {
4197
+ children: message
4198
+ })
4199
+ ]
4200
+ }),
4201
+ /*#__PURE__*/ jsx(Typography, {
4202
+ fontWeight: "bold",
4203
+ children: count
4204
+ })
4205
+ ]
4206
+ });
4207
+ };
4208
+ const PublicationStatusGrid = ({ entriesReadyToPublishCount, entriesPublishedCount, entriesModifiedCount, entriesWithErrorsCount })=>{
4209
+ const { formatMessage } = useIntl();
4210
+ return /*#__PURE__*/ jsx(Box, {
4211
+ hasRadius: true,
4212
+ borderColor: "neutral150",
4213
+ children: /*#__PURE__*/ jsx(TableComponent, {
4214
+ colCount: 2,
4215
+ rowCount: 2,
4216
+ children: /*#__PURE__*/ jsxs(Tbody, {
4217
+ children: [
4218
+ /*#__PURE__*/ jsxs(Tr, {
4219
+ children: [
4220
+ /*#__PURE__*/ jsx(Td, {
4221
+ children: /*#__PURE__*/ jsx(PublicationStatusSummary, {
4222
+ count: entriesReadyToPublishCount,
4223
+ icon: /*#__PURE__*/ jsx(CheckCircle, {
4224
+ fill: "success600"
4225
+ }),
4226
+ message: formatMessage({
4227
+ id: 'app.utils.ready-to-publish',
4228
+ defaultMessage: 'Ready to publish'
4229
+ })
4230
+ })
4231
+ }),
4232
+ /*#__PURE__*/ jsx(Td, {
4233
+ children: /*#__PURE__*/ jsx(PublicationStatusSummary, {
4234
+ count: entriesPublishedCount,
4235
+ icon: /*#__PURE__*/ jsx(CheckCircle, {
4236
+ fill: "success600"
4237
+ }),
4238
+ message: formatMessage({
4239
+ id: 'app.utils.already-published',
4240
+ defaultMessage: 'Already published'
4241
+ })
4242
+ })
4243
+ })
4244
+ ]
4245
+ }),
4246
+ /*#__PURE__*/ jsxs(Tr, {
4247
+ children: [
4248
+ /*#__PURE__*/ jsx(Td, {
4249
+ children: /*#__PURE__*/ jsx(PublicationStatusSummary, {
4250
+ count: entriesModifiedCount,
4251
+ icon: /*#__PURE__*/ jsx(ArrowsCounterClockwise, {
4252
+ fill: "alternative600"
4253
+ }),
4254
+ message: formatMessage({
4255
+ id: 'content-manager.bulk-publish.modified',
4256
+ defaultMessage: 'Ready to publish changes'
4257
+ })
4258
+ })
4259
+ }),
4260
+ /*#__PURE__*/ jsx(Td, {
4261
+ children: /*#__PURE__*/ jsx(PublicationStatusSummary, {
4262
+ count: entriesWithErrorsCount,
4263
+ icon: /*#__PURE__*/ jsx(CrossCircle, {
4264
+ fill: "danger600"
4265
+ }),
4266
+ message: formatMessage({
4267
+ id: 'content-manager.bulk-publish.waiting-for-action',
4268
+ defaultMessage: 'Waiting for action'
4269
+ })
4270
+ })
4271
+ })
4272
+ ]
4273
+ })
4274
+ ]
4275
+ })
4276
+ })
4181
4277
  });
4278
+ };
4182
4279
  const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, setListViewSelectedDocuments, model })=>{
4183
4280
  const { formatMessage } = useIntl();
4184
4281
  const { schema, components } = useContentTypeSchema(model);
@@ -4244,7 +4341,6 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4244
4341
  data,
4245
4342
  schema
4246
4343
  ]);
4247
- const [publishedCount, setPublishedCount] = React.useState(0);
4248
4344
  const [isDialogOpen, setIsDialogOpen] = React.useState(false);
4249
4345
  const { publishMany: bulkPublishAction } = useDocumentActions();
4250
4346
  const [, { isLoading: isSubmittingForm }] = usePublishManyDocumentsMutation();
@@ -4253,8 +4349,9 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4253
4349
  const selectedEntries = rows.filter((entry)=>selectedRows.some((selectedEntry)=>selectedEntry.documentId === entry.documentId));
4254
4350
  const entriesToPublish = selectedEntries.filter((entry)=>!validationErrors[entry.documentId]).map((entry)=>entry.documentId);
4255
4351
  const selectedEntriesWithErrorsCount = selectedEntries.filter(({ documentId })=>validationErrors[documentId]).length;
4256
- const selectedEntriesPublished = selectedEntries.filter(({ status })=>status === 'published').length;
4257
- const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublished;
4352
+ const selectedEntriesPublishedCount = selectedEntries.filter(({ status })=>status === 'published').length;
4353
+ const selectedEntriesModifiedCount = selectedEntries.filter(({ status, documentId })=>status === 'modified' && !validationErrors[documentId]).length;
4354
+ const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublishedCount;
4258
4355
  const toggleDialog = ()=>setIsDialogOpen((prev)=>!prev);
4259
4356
  const handleConfirmBulkPublish = async ()=>{
4260
4357
  toggleDialog();
@@ -4264,8 +4361,6 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4264
4361
  params
4265
4362
  });
4266
4363
  if (!('error' in res)) {
4267
- // @ts-expect-error TODO: check with BE why response is not consistent with other actions
4268
- setPublishedCount(res.count);
4269
4364
  const unpublishedEntries = rows.filter((row)=>{
4270
4365
  return !entriesToPublish.includes(row.documentId);
4271
4366
  });
@@ -4273,36 +4368,18 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4273
4368
  setListViewSelectedDocuments(unpublishedEntries);
4274
4369
  }
4275
4370
  };
4276
- const getFormattedCountMessage = ()=>{
4277
- if (publishedCount) {
4278
- return formatMessage({
4279
- id: getTranslation('containers.list.selectedEntriesModal.publishedCount'),
4280
- 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.'
4281
- }, {
4282
- publishedCount,
4283
- withErrorsCount: selectedEntriesWithErrorsCount,
4284
- b: BoldChunk
4285
- });
4286
- }
4287
- return formatMessage({
4288
- id: getTranslation('containers.list.selectedEntriesModal.selectedCount'),
4289
- 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.'
4290
- }, {
4291
- readyToPublishCount: selectedEntriesWithNoErrorsCount,
4292
- withErrorsCount: selectedEntriesWithErrorsCount,
4293
- alreadyPublishedCount: selectedEntriesPublished,
4294
- b: BoldChunk
4295
- });
4296
- };
4297
4371
  return /*#__PURE__*/ jsxs(Fragment, {
4298
4372
  children: [
4299
4373
  /*#__PURE__*/ jsxs(Modal.Body, {
4300
4374
  children: [
4301
- /*#__PURE__*/ jsx(Typography, {
4302
- children: getFormattedCountMessage()
4375
+ /*#__PURE__*/ jsx(PublicationStatusGrid, {
4376
+ entriesReadyToPublishCount: selectedEntriesWithNoErrorsCount - selectedEntriesModifiedCount,
4377
+ entriesPublishedCount: selectedEntriesPublishedCount,
4378
+ entriesModifiedCount: selectedEntriesModifiedCount,
4379
+ entriesWithErrorsCount: selectedEntriesWithErrorsCount
4303
4380
  }),
4304
4381
  /*#__PURE__*/ jsx(Box, {
4305
- marginTop: 5,
4382
+ marginTop: 7,
4306
4383
  children: /*#__PURE__*/ jsx(SelectedEntriesTableContent, {
4307
4384
  isPublishing: isSubmittingForm,
4308
4385
  rowsToDisplay: rows,
@@ -4336,7 +4413,7 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4336
4413
  }),
4337
4414
  /*#__PURE__*/ jsx(Button, {
4338
4415
  onClick: toggleDialog,
4339
- disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
4416
+ disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublishedCount === selectedEntries.length || isLoading,
4340
4417
  loading: isSubmittingForm,
4341
4418
  children: formatMessage({
4342
4419
  id: 'app.utils.publish',
@@ -5180,10 +5257,10 @@ function __variableDynamicImportRuntime1__(path) {
5180
5257
  case './translations/ca.json': return import('./ca-DviY7mRj.js');
5181
5258
  case './translations/cs.json': return import('./cs-C7OSYFQ7.js');
5182
5259
  case './translations/de.json': return import('./de-5QRlDHyR.js');
5183
- case './translations/en.json': return import('./en-DB7sPJVj.js');
5260
+ case './translations/en.json': return import('./en-LfhocNG2.js');
5184
5261
  case './translations/es.json': return import('./es-DkoWSExG.js');
5185
5262
  case './translations/eu.json': return import('./eu-BG1xX7HK.js');
5186
- case './translations/fr.json': return import('./fr-Dm1xiZI5.js');
5263
+ case './translations/fr.json': return import('./fr-CFdRaRVj.js');
5187
5264
  case './translations/gu.json': return import('./gu-D5MMMXRs.js');
5188
5265
  case './translations/hi.json': return import('./hi-lp17SCjr.js');
5189
5266
  case './translations/hu.json': return import('./hu-CLka1U2C.js');
@@ -5234,7 +5311,7 @@ var index = {
5234
5311
  app.router.addRoute({
5235
5312
  path: 'content-manager/*',
5236
5313
  lazy: async ()=>{
5237
- const { Layout } = await import('./layout-BN6DSZ4t.js');
5314
+ const { Layout } = await import('./layout-B3-guCPG.js');
5238
5315
  return {
5239
5316
  Component: Layout
5240
5317
  };
@@ -5270,4 +5347,4 @@ var index = {
5270
5347
  };
5271
5348
 
5272
5349
  export { useUpdateContentTypeConfigurationMutation as A, BulkActionsRenderer as B, COLLECTION_TYPES as C, DocumentStatus as D, ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD as E, extractContentTypeComponents as F, DEFAULT_SETTINGS as G, HOOKS as H, InjectionZone as I, convertEditLayoutToFieldLayouts as J, removeFieldsThatDontExistOnSchema as K, prepareTempKeys as L, useDocument as M, useGetPreviewUrlQuery as N, index as O, Panels as P, useContentManagerContext as Q, RelativeTime as R, SINGLE_TYPES as S, TableActions as T, useDocumentActions as U, useGetInitialDataQuery as a, useGetAllContentTypeSettingsQuery as b, useDoc as c, buildValidParams as d, contentManagerApi as e, useDocumentRBAC as f, getTranslation as g, useDocumentLayout as h, createYupSchema as i, Header as j, PERMISSIONS as k, DocumentRBAC as l, useDocLayout as m, createDefaultForm as n, CLONE_PATH as o, useGetContentTypeConfigurationQuery as p, CREATOR_FIELDS as q, getMainField as r, setInitialData as s, transformDocument as t, useContentTypeSchema as u, getDisplayName as v, checkIfAttributeIsDisplayable as w, useGetAllDocumentsQuery as x, convertListLayoutToFieldLayouts as y, capitalise as z };
5273
- //# sourceMappingURL=index-DfEfFmQC.js.map
5350
+ //# sourceMappingURL=index-BRlRBRLb.js.map