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

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 (89) hide show
  1. package/dist/admin/chunks/{ComponentConfigurationPage-Co2eC_-C.js → ComponentConfigurationPage-BqW-t7Lr.js} +3 -3
  2. package/dist/admin/chunks/{ComponentConfigurationPage-Co2eC_-C.js.map → ComponentConfigurationPage-BqW-t7Lr.js.map} +1 -1
  3. package/dist/admin/chunks/{ComponentConfigurationPage-Dj1bNvEF.js → ComponentConfigurationPage-CM3vQxyp.js} +3 -3
  4. package/dist/admin/chunks/{ComponentConfigurationPage-Dj1bNvEF.js.map → ComponentConfigurationPage-CM3vQxyp.js.map} +1 -1
  5. package/dist/admin/chunks/{EditConfigurationPage-Dm5woBp9.js → EditConfigurationPage-CIKO27N8.js} +3 -3
  6. package/dist/admin/chunks/{EditConfigurationPage-Dm5woBp9.js.map → EditConfigurationPage-CIKO27N8.js.map} +1 -1
  7. package/dist/admin/chunks/{EditConfigurationPage-zd9OLaVh.js → EditConfigurationPage-CYQ6mJWy.js} +3 -3
  8. package/dist/admin/chunks/{EditConfigurationPage-zd9OLaVh.js.map → EditConfigurationPage-CYQ6mJWy.js.map} +1 -1
  9. package/dist/admin/chunks/{EditViewPage-DsBKmSPb.js → EditViewPage-CRu2G4OS.js} +6 -6
  10. package/dist/admin/chunks/{EditViewPage-DsBKmSPb.js.map → EditViewPage-CRu2G4OS.js.map} +1 -1
  11. package/dist/admin/chunks/{EditViewPage-kAIaYTg0.js → EditViewPage-DaY9aMeu.js} +6 -6
  12. package/dist/admin/chunks/{EditViewPage-kAIaYTg0.js.map → EditViewPage-DaY9aMeu.js.map} +1 -1
  13. package/dist/admin/chunks/{Form-BPIhJKyf.js → Form--7s-Wsw1.js} +2 -2
  14. package/dist/admin/chunks/{Form-BPIhJKyf.js.map → Form--7s-Wsw1.js.map} +1 -1
  15. package/dist/admin/chunks/{Form-BO69oITe.js → Form-CX_f1AUZ.js} +2 -2
  16. package/dist/admin/chunks/{Form-BO69oITe.js.map → Form-CX_f1AUZ.js.map} +1 -1
  17. package/dist/admin/chunks/{History-DBQ96jv2.js → History-SRih7tGq.js} +6 -6
  18. package/dist/admin/chunks/{History-DBQ96jv2.js.map → History-SRih7tGq.js.map} +1 -1
  19. package/dist/admin/chunks/{History-BzvpM-Gw.js → History-VVVFEAnd.js} +6 -6
  20. package/dist/admin/chunks/{History-BzvpM-Gw.js.map → History-VVVFEAnd.js.map} +1 -1
  21. package/dist/admin/chunks/{Input-BlDcbhUC.js → Input-B3wbR0pJ.js} +4 -5
  22. package/dist/admin/chunks/{Input-Dh1MtWno.js.map → Input-B3wbR0pJ.js.map} +1 -1
  23. package/dist/admin/chunks/{Input-Dh1MtWno.js → Input-BIRb1gP2.js} +5 -6
  24. package/dist/admin/chunks/{Input-BlDcbhUC.js.map → Input-BIRb1gP2.js.map} +1 -1
  25. package/dist/admin/chunks/{ListConfigurationPage-DK0ARecn.js → ListConfigurationPage-BMBxgLtZ.js} +2 -2
  26. package/dist/admin/chunks/{ListConfigurationPage-DK0ARecn.js.map → ListConfigurationPage-BMBxgLtZ.js.map} +1 -1
  27. package/dist/admin/chunks/{ListConfigurationPage-8d3BsQIr.js → ListConfigurationPage-DBWZlkHs.js} +2 -2
  28. package/dist/admin/chunks/{ListConfigurationPage-8d3BsQIr.js.map → ListConfigurationPage-DBWZlkHs.js.map} +1 -1
  29. package/dist/admin/chunks/{ListViewPage-CS1ED-vI.js → ListViewPage-9jad22KO.js} +5 -5
  30. package/dist/admin/chunks/{ListViewPage-CS1ED-vI.js.map → ListViewPage-9jad22KO.js.map} +1 -1
  31. package/dist/admin/chunks/{ListViewPage-BF2q7N6W.js → ListViewPage-Dq2zuPYL.js} +4 -4
  32. package/dist/admin/chunks/{ListViewPage-BF2q7N6W.js.map → ListViewPage-Dq2zuPYL.js.map} +1 -1
  33. package/dist/admin/chunks/{NoContentTypePage-C5Qxz3I4.js → NoContentTypePage-B5xX6Br5.js} +2 -2
  34. package/dist/admin/chunks/{NoContentTypePage-C5Qxz3I4.js.map → NoContentTypePage-B5xX6Br5.js.map} +1 -1
  35. package/dist/admin/chunks/{NoContentTypePage-DjdXr1-j.js → NoContentTypePage-BtpSxTZs.js} +2 -2
  36. package/dist/admin/chunks/{NoContentTypePage-DjdXr1-j.js.map → NoContentTypePage-BtpSxTZs.js.map} +1 -1
  37. package/dist/admin/chunks/{NoPermissionsPage-C5dC0MtL.js → NoPermissionsPage-CRS0hARz.js} +2 -2
  38. package/dist/admin/chunks/{NoPermissionsPage-C5dC0MtL.js.map → NoPermissionsPage-CRS0hARz.js.map} +1 -1
  39. package/dist/admin/chunks/{NoPermissionsPage-BUwtKUEP.js → NoPermissionsPage-HnOCsRtG.js} +2 -2
  40. package/dist/admin/chunks/{NoPermissionsPage-BUwtKUEP.js.map → NoPermissionsPage-HnOCsRtG.js.map} +1 -1
  41. package/dist/admin/chunks/{Preview-C9kXTY6C.js → Preview-BcggSPwn.js} +15 -111
  42. package/dist/admin/chunks/Preview-BcggSPwn.js.map +1 -0
  43. package/dist/admin/chunks/{Preview-DBvmhR7Q.js → Preview-DRtWRrYn.js} +13 -109
  44. package/dist/admin/chunks/Preview-DRtWRrYn.js.map +1 -0
  45. package/dist/admin/chunks/{Relations-Cn0atFpd.js → Relations-B1i77Jba.js} +5 -6
  46. package/dist/admin/chunks/Relations-B1i77Jba.js.map +1 -0
  47. package/dist/admin/chunks/{Relations-XHxDKEvT.js → Relations-BDe2e0a7.js} +5 -6
  48. package/dist/admin/chunks/Relations-BDe2e0a7.js.map +1 -0
  49. package/dist/admin/chunks/{en-C1CjdAtC.js → en-1xHet_GV.js} +1 -2
  50. package/dist/admin/chunks/{en-C1CjdAtC.js.map → en-1xHet_GV.js.map} +1 -1
  51. package/dist/admin/chunks/{en-LfhocNG2.js → en-DB7sPJVj.js} +1 -2
  52. package/dist/admin/chunks/{en-LfhocNG2.js.map → en-DB7sPJVj.js.map} +1 -1
  53. package/dist/admin/chunks/{fr-gQSilC7w.js → fr-CqAyDOmo.js} +1 -4
  54. package/dist/admin/chunks/{fr-gQSilC7w.js.map → fr-CqAyDOmo.js.map} +1 -1
  55. package/dist/admin/chunks/{fr-CFdRaRVj.js → fr-Dm1xiZI5.js} +1 -4
  56. package/dist/admin/chunks/{fr-CFdRaRVj.js.map → fr-Dm1xiZI5.js.map} +1 -1
  57. package/dist/admin/chunks/{index-BczuAULz.js → index-CKZHZ3ir.js} +51 -128
  58. package/dist/admin/chunks/index-CKZHZ3ir.js.map +1 -0
  59. package/dist/admin/chunks/{index-BkyR-Bnu.js → index-DfEfFmQC.js} +53 -130
  60. package/dist/admin/chunks/index-DfEfFmQC.js.map +1 -0
  61. package/dist/admin/chunks/{layout-fghBgRgX.js → layout-BN6DSZ4t.js} +4 -4
  62. package/dist/admin/chunks/{layout-fghBgRgX.js.map → layout-BN6DSZ4t.js.map} +1 -1
  63. package/dist/admin/chunks/{layout-DcDoRT8g.js → layout-CX-A0s3P.js} +4 -4
  64. package/dist/admin/chunks/{layout-DcDoRT8g.js.map → layout-CX-A0s3P.js.map} +1 -1
  65. package/dist/admin/chunks/{relations-CgaydhiM.js → relations-CuPmv-zR.js} +2 -20
  66. package/dist/admin/chunks/relations-CuPmv-zR.js.map +1 -0
  67. package/dist/admin/chunks/{relations-DPVgU_rq.js → relations-xwSNlsdc.js} +3 -20
  68. package/dist/admin/chunks/relations-xwSNlsdc.js.map +1 -0
  69. package/dist/admin/chunks/{usePrev-DIYl-IAL.js → usePrev-CwGzb4ed.js} +18 -1
  70. package/dist/admin/chunks/usePrev-CwGzb4ed.js.map +1 -0
  71. package/dist/admin/chunks/usePrev-tlgK0qPG.js +34 -0
  72. package/dist/admin/chunks/usePrev-tlgK0qPG.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/utils/prismLanguages.d.ts +0 -1
  76. package/dist/admin/src/preview/components/PreviewContent.d.ts +1 -2
  77. package/dist/admin/src/preview/components/PreviewHeader.d.ts +1 -2
  78. package/package.json +5 -5
  79. package/dist/admin/chunks/Preview-C9kXTY6C.js.map +0 -1
  80. package/dist/admin/chunks/Preview-DBvmhR7Q.js.map +0 -1
  81. package/dist/admin/chunks/Relations-Cn0atFpd.js.map +0 -1
  82. package/dist/admin/chunks/Relations-XHxDKEvT.js.map +0 -1
  83. package/dist/admin/chunks/index-BczuAULz.js.map +0 -1
  84. package/dist/admin/chunks/index-BkyR-Bnu.js.map +0 -1
  85. package/dist/admin/chunks/relations-CgaydhiM.js.map +0 -1
  86. package/dist/admin/chunks/relations-DPVgU_rq.js.map +0 -1
  87. package/dist/admin/chunks/usePrev-Bjw2dhmq.js +0 -18
  88. package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +0 -1
  89. package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { Cross, WarningCircle, More, ListPlus, Pencil, Trash, Check, CheckCircle, ArrowsCounterClockwise, CrossCircle, ChevronRight, Duplicate, ClockCounterClockwise, Feather } from '@strapi/icons';
1
+ import { Cross, WarningCircle, More, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, 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, RawTable, Loader, Tbody, Tr, Td, Tooltip, LinkButton } from '@strapi/design-system';
6
+ import { Menu, Flex, Typography, Radio, Button, VisuallyHidden, Dialog, Modal, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, 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-BzvpM-Gw.js').then((mod)=>({
2230
+ const ProtectedHistoryPage = /*#__PURE__*/ React.lazy(()=>import('./History-VVVFEAnd.js').then((mod)=>({
2231
2231
  default: mod.ProtectedHistoryPage
2232
2232
  })));
2233
2233
  /**
@@ -2243,7 +2243,7 @@ const ProtectedHistoryPage = /*#__PURE__*/ React.lazy(()=>import('./History-Bzvp
2243
2243
  }
2244
2244
  ];
2245
2245
 
2246
- const ProtectedPreviewPage = /*#__PURE__*/ React.lazy(()=>import('./Preview-C9kXTY6C.js').then((mod)=>({
2246
+ const ProtectedPreviewPage = /*#__PURE__*/ React.lazy(()=>import('./Preview-BcggSPwn.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-kAIaYTg0.js').then((mod)=>({
2260
+ const ProtectedEditViewPage = /*#__PURE__*/ lazy(()=>import('./EditViewPage-DaY9aMeu.js').then((mod)=>({
2261
2261
  default: mod.ProtectedEditViewPage
2262
2262
  })));
2263
- const ProtectedListViewPage = /*#__PURE__*/ lazy(()=>import('./ListViewPage-BF2q7N6W.js').then((mod)=>({
2263
+ const ProtectedListViewPage = /*#__PURE__*/ lazy(()=>import('./ListViewPage-Dq2zuPYL.js').then((mod)=>({
2264
2264
  default: mod.ProtectedListViewPage
2265
2265
  })));
2266
- const ProtectedListConfiguration = /*#__PURE__*/ lazy(()=>import('./ListConfigurationPage-DK0ARecn.js').then((mod)=>({
2266
+ const ProtectedListConfiguration = /*#__PURE__*/ lazy(()=>import('./ListConfigurationPage-BMBxgLtZ.js').then((mod)=>({
2267
2267
  default: mod.ProtectedListConfiguration
2268
2268
  })));
2269
- const ProtectedEditConfigurationPage = /*#__PURE__*/ lazy(()=>import('./EditConfigurationPage-zd9OLaVh.js').then((mod)=>({
2269
+ const ProtectedEditConfigurationPage = /*#__PURE__*/ lazy(()=>import('./EditConfigurationPage-CYQ6mJWy.js').then((mod)=>({
2270
2270
  default: mod.ProtectedEditConfigurationPage
2271
2271
  })));
2272
- const ProtectedComponentConfigurationPage = /*#__PURE__*/ lazy(()=>import('./ComponentConfigurationPage-Co2eC_-C.js').then((mod)=>({
2272
+ const ProtectedComponentConfigurationPage = /*#__PURE__*/ lazy(()=>import('./ComponentConfigurationPage-BqW-t7Lr.js').then((mod)=>({
2273
2273
  default: mod.ProtectedComponentConfigurationPage
2274
2274
  })));
2275
- const NoPermissions = /*#__PURE__*/ lazy(()=>import('./NoPermissionsPage-BUwtKUEP.js').then((mod)=>({
2275
+ const NoPermissions = /*#__PURE__*/ lazy(()=>import('./NoPermissionsPage-HnOCsRtG.js').then((mod)=>({
2276
2276
  default: mod.NoPermissions
2277
2277
  })));
2278
- const NoContentType = /*#__PURE__*/ lazy(()=>import('./NoContentTypePage-DjdXr1-j.js').then((mod)=>({
2278
+ const NoContentType = /*#__PURE__*/ lazy(()=>import('./NoContentTypePage-BtpSxTZs.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 = (chunks)=>/*#__PURE__*/ jsx(Typography, {
3882
+ * -----------------------------------------------------------------------------------------------*/ const BoldChunk$1 = (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,
3931
+ b: BoldChunk$1,
3932
3932
  count: countDraftRelations,
3933
3933
  entities: selectedEntries.length
3934
3934
  }),
@@ -3966,16 +3966,6 @@ 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
- `;
3979
3969
  /* -------------------------------------------------------------------------------------------------
3980
3970
  * EntryValidationText
3981
3971
  * -----------------------------------------------------------------------------------------------*/ const formatErrorMessages = (errors, parentKey, formatMessage)=>{
@@ -4112,7 +4102,7 @@ const SelectedEntriesTableContent = ({ isPublishing, rowsToDisplay = [], entries
4112
4102
  }),
4113
4103
  /*#__PURE__*/ jsx(Table.Loading, {}),
4114
4104
  /*#__PURE__*/ jsx(Table.Body, {
4115
- children: rowsToDisplay.map((row)=>/*#__PURE__*/ jsxs(Table.Row, {
4105
+ children: rowsToDisplay.map((row, index)=>/*#__PURE__*/ jsxs(Table.Row, {
4116
4106
  children: [
4117
4107
  /*#__PURE__*/ jsx(Table.CheckboxCell, {
4118
4108
  id: row.id
@@ -4183,99 +4173,12 @@ const SelectedEntriesTableContent = ({ isPublishing, rowsToDisplay = [], entries
4183
4173
  ]
4184
4174
  });
4185
4175
  };
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
- })
4176
+ /* -------------------------------------------------------------------------------------------------
4177
+ * BoldChunk
4178
+ * -----------------------------------------------------------------------------------------------*/ const BoldChunk = (chunks)=>/*#__PURE__*/ jsx(Typography, {
4179
+ fontWeight: "bold",
4180
+ children: chunks
4277
4181
  });
4278
- };
4279
4182
  const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, setListViewSelectedDocuments, model })=>{
4280
4183
  const { formatMessage } = useIntl();
4281
4184
  const { schema, components } = useContentTypeSchema(model);
@@ -4341,6 +4244,7 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4341
4244
  data,
4342
4245
  schema
4343
4246
  ]);
4247
+ const [publishedCount, setPublishedCount] = React.useState(0);
4344
4248
  const [isDialogOpen, setIsDialogOpen] = React.useState(false);
4345
4249
  const { publishMany: bulkPublishAction } = useDocumentActions();
4346
4250
  const [, { isLoading: isSubmittingForm }] = usePublishManyDocumentsMutation();
@@ -4349,9 +4253,8 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4349
4253
  const selectedEntries = rows.filter((entry)=>selectedRows.some((selectedEntry)=>selectedEntry.documentId === entry.documentId));
4350
4254
  const entriesToPublish = selectedEntries.filter((entry)=>!validationErrors[entry.documentId]).map((entry)=>entry.documentId);
4351
4255
  const selectedEntriesWithErrorsCount = selectedEntries.filter(({ documentId })=>validationErrors[documentId]).length;
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;
4256
+ const selectedEntriesPublished = selectedEntries.filter(({ status })=>status === 'published').length;
4257
+ const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublished;
4355
4258
  const toggleDialog = ()=>setIsDialogOpen((prev)=>!prev);
4356
4259
  const handleConfirmBulkPublish = async ()=>{
4357
4260
  toggleDialog();
@@ -4361,6 +4264,8 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4361
4264
  params
4362
4265
  });
4363
4266
  if (!('error' in res)) {
4267
+ // @ts-expect-error TODO: check with BE why response is not consistent with other actions
4268
+ setPublishedCount(res.count);
4364
4269
  const unpublishedEntries = rows.filter((row)=>{
4365
4270
  return !entriesToPublish.includes(row.documentId);
4366
4271
  });
@@ -4368,18 +4273,36 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4368
4273
  setListViewSelectedDocuments(unpublishedEntries);
4369
4274
  }
4370
4275
  };
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
+ };
4371
4297
  return /*#__PURE__*/ jsxs(Fragment, {
4372
4298
  children: [
4373
4299
  /*#__PURE__*/ jsxs(Modal.Body, {
4374
4300
  children: [
4375
- /*#__PURE__*/ jsx(PublicationStatusGrid, {
4376
- entriesReadyToPublishCount: selectedEntriesWithNoErrorsCount - selectedEntriesModifiedCount,
4377
- entriesPublishedCount: selectedEntriesPublishedCount,
4378
- entriesModifiedCount: selectedEntriesModifiedCount,
4379
- entriesWithErrorsCount: selectedEntriesWithErrorsCount
4301
+ /*#__PURE__*/ jsx(Typography, {
4302
+ children: getFormattedCountMessage()
4380
4303
  }),
4381
4304
  /*#__PURE__*/ jsx(Box, {
4382
- marginTop: 7,
4305
+ marginTop: 5,
4383
4306
  children: /*#__PURE__*/ jsx(SelectedEntriesTableContent, {
4384
4307
  isPublishing: isSubmittingForm,
4385
4308
  rowsToDisplay: rows,
@@ -4413,7 +4336,7 @@ const SelectedEntriesModalContent = ({ listViewSelectedEntries, toggleModal, set
4413
4336
  }),
4414
4337
  /*#__PURE__*/ jsx(Button, {
4415
4338
  onClick: toggleDialog,
4416
- disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublishedCount === selectedEntries.length || isLoading,
4339
+ disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
4417
4340
  loading: isSubmittingForm,
4418
4341
  children: formatMessage({
4419
4342
  id: 'app.utils.publish',
@@ -5257,10 +5180,10 @@ function __variableDynamicImportRuntime1__(path) {
5257
5180
  case './translations/ca.json': return import('./ca-DviY7mRj.js');
5258
5181
  case './translations/cs.json': return import('./cs-C7OSYFQ7.js');
5259
5182
  case './translations/de.json': return import('./de-5QRlDHyR.js');
5260
- case './translations/en.json': return import('./en-LfhocNG2.js');
5183
+ case './translations/en.json': return import('./en-DB7sPJVj.js');
5261
5184
  case './translations/es.json': return import('./es-DkoWSExG.js');
5262
5185
  case './translations/eu.json': return import('./eu-BG1xX7HK.js');
5263
- case './translations/fr.json': return import('./fr-CFdRaRVj.js');
5186
+ case './translations/fr.json': return import('./fr-Dm1xiZI5.js');
5264
5187
  case './translations/gu.json': return import('./gu-D5MMMXRs.js');
5265
5188
  case './translations/hi.json': return import('./hi-lp17SCjr.js');
5266
5189
  case './translations/hu.json': return import('./hu-CLka1U2C.js');
@@ -5311,7 +5234,7 @@ var index = {
5311
5234
  app.router.addRoute({
5312
5235
  path: 'content-manager/*',
5313
5236
  lazy: async ()=>{
5314
- const { Layout } = await import('./layout-fghBgRgX.js');
5237
+ const { Layout } = await import('./layout-BN6DSZ4t.js');
5315
5238
  return {
5316
5239
  Component: Layout
5317
5240
  };
@@ -5347,4 +5270,4 @@ var index = {
5347
5270
  };
5348
5271
 
5349
5272
  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 };
5350
- //# sourceMappingURL=index-BkyR-Bnu.js.map
5273
+ //# sourceMappingURL=index-DfEfFmQC.js.map