@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.
- package/dist/admin/chunks/{ComponentConfigurationPage-CM3vQxyp.js → ComponentConfigurationPage-DXwOtpq1.js} +3 -3
- package/dist/admin/chunks/{ComponentConfigurationPage-CM3vQxyp.js.map → ComponentConfigurationPage-DXwOtpq1.js.map} +1 -1
- package/dist/admin/chunks/{ComponentConfigurationPage-BqW-t7Lr.js → ComponentConfigurationPage-DhYZp4nN.js} +3 -3
- package/dist/admin/chunks/{ComponentConfigurationPage-BqW-t7Lr.js.map → ComponentConfigurationPage-DhYZp4nN.js.map} +1 -1
- package/dist/admin/chunks/{EditConfigurationPage-CIKO27N8.js → EditConfigurationPage-D0Ng758X.js} +3 -3
- package/dist/admin/chunks/{EditConfigurationPage-CIKO27N8.js.map → EditConfigurationPage-D0Ng758X.js.map} +1 -1
- package/dist/admin/chunks/{EditConfigurationPage-CYQ6mJWy.js → EditConfigurationPage-DDuPch5d.js} +3 -3
- package/dist/admin/chunks/{EditConfigurationPage-CYQ6mJWy.js.map → EditConfigurationPage-DDuPch5d.js.map} +1 -1
- package/dist/admin/chunks/{EditViewPage-DaY9aMeu.js → EditViewPage-jCZnUuCR.js} +6 -55
- package/dist/admin/chunks/{EditViewPage-DaY9aMeu.js.map → EditViewPage-jCZnUuCR.js.map} +1 -1
- package/dist/admin/chunks/{EditViewPage-CRu2G4OS.js → EditViewPage-zSnDwLz3.js} +6 -55
- package/dist/admin/chunks/{EditViewPage-CRu2G4OS.js.map → EditViewPage-zSnDwLz3.js.map} +1 -1
- package/dist/admin/chunks/{Form--7s-Wsw1.js → Form-BEqiuSvQ.js} +2 -2
- package/dist/admin/chunks/{Form--7s-Wsw1.js.map → Form-BEqiuSvQ.js.map} +1 -1
- package/dist/admin/chunks/{Form-CX_f1AUZ.js → Form-CZmB6JIg.js} +2 -2
- package/dist/admin/chunks/{Form-CX_f1AUZ.js.map → Form-CZmB6JIg.js.map} +1 -1
- package/dist/admin/chunks/{History-SRih7tGq.js → History-BlLKDZSw.js} +6 -55
- package/dist/admin/chunks/{History-SRih7tGq.js.map → History-BlLKDZSw.js.map} +1 -1
- package/dist/admin/chunks/{History-VVVFEAnd.js → History-CPYXgxkS.js} +6 -55
- package/dist/admin/chunks/{History-VVVFEAnd.js.map → History-CPYXgxkS.js.map} +1 -1
- package/dist/admin/chunks/{Input-B3wbR0pJ.js → Input-CLX3C5DI.js} +10 -53
- package/dist/admin/chunks/Input-CLX3C5DI.js.map +1 -0
- package/dist/admin/chunks/{Input-BIRb1gP2.js → Input-DiR2Xfa7.js} +11 -54
- package/dist/admin/chunks/Input-DiR2Xfa7.js.map +1 -0
- package/dist/admin/chunks/{ListConfigurationPage-BMBxgLtZ.js → ListConfigurationPage-CNvotSqe.js} +2 -2
- package/dist/admin/chunks/{ListConfigurationPage-BMBxgLtZ.js.map → ListConfigurationPage-CNvotSqe.js.map} +1 -1
- package/dist/admin/chunks/{ListConfigurationPage-DBWZlkHs.js → ListConfigurationPage-DdTp-HxB.js} +2 -2
- package/dist/admin/chunks/{ListConfigurationPage-DBWZlkHs.js.map → ListConfigurationPage-DdTp-HxB.js.map} +1 -1
- package/dist/admin/chunks/{ListViewPage-9jad22KO.js → ListViewPage-BtXYjEYz.js} +5 -5
- package/dist/admin/chunks/{ListViewPage-9jad22KO.js.map → ListViewPage-BtXYjEYz.js.map} +1 -1
- package/dist/admin/chunks/{ListViewPage-Dq2zuPYL.js → ListViewPage-MJNfQTp-.js} +4 -4
- package/dist/admin/chunks/{ListViewPage-Dq2zuPYL.js.map → ListViewPage-MJNfQTp-.js.map} +1 -1
- package/dist/admin/chunks/{NoContentTypePage-BtpSxTZs.js → NoContentTypePage-BJrZvYPY.js} +2 -2
- package/dist/admin/chunks/{NoContentTypePage-BtpSxTZs.js.map → NoContentTypePage-BJrZvYPY.js.map} +1 -1
- package/dist/admin/chunks/{NoContentTypePage-B5xX6Br5.js → NoContentTypePage-CVvVpwj4.js} +2 -2
- package/dist/admin/chunks/{NoContentTypePage-B5xX6Br5.js.map → NoContentTypePage-CVvVpwj4.js.map} +1 -1
- package/dist/admin/chunks/{NoPermissionsPage-HnOCsRtG.js → NoPermissionsPage-BulvG4hB.js} +2 -2
- package/dist/admin/chunks/{NoPermissionsPage-HnOCsRtG.js.map → NoPermissionsPage-BulvG4hB.js.map} +1 -1
- package/dist/admin/chunks/{NoPermissionsPage-CRS0hARz.js → NoPermissionsPage-C5yWg70d.js} +2 -2
- package/dist/admin/chunks/{NoPermissionsPage-CRS0hARz.js.map → NoPermissionsPage-C5yWg70d.js.map} +1 -1
- package/dist/admin/chunks/{Preview-BcggSPwn.js → Preview-DEuQgQg2.js} +111 -64
- package/dist/admin/chunks/Preview-DEuQgQg2.js.map +1 -0
- package/dist/admin/chunks/{Preview-DRtWRrYn.js → Preview-H74FQ9Cq.js} +109 -62
- package/dist/admin/chunks/Preview-H74FQ9Cq.js.map +1 -0
- package/dist/admin/chunks/{Relations-B1i77Jba.js → Relations-C8jbZPVK.js} +6 -5
- package/dist/admin/chunks/Relations-C8jbZPVK.js.map +1 -0
- package/dist/admin/chunks/{Relations-BDe2e0a7.js → Relations-mxOUS7TJ.js} +6 -5
- package/dist/admin/chunks/Relations-mxOUS7TJ.js.map +1 -0
- package/dist/admin/chunks/{en-1xHet_GV.js → en-C1CjdAtC.js} +2 -1
- package/dist/admin/chunks/{en-1xHet_GV.js.map → en-C1CjdAtC.js.map} +1 -1
- package/dist/admin/chunks/{en-DB7sPJVj.js → en-LfhocNG2.js} +2 -1
- package/dist/admin/chunks/{en-DB7sPJVj.js.map → en-LfhocNG2.js.map} +1 -1
- package/dist/admin/chunks/{fr-Dm1xiZI5.js → fr-CFdRaRVj.js} +4 -1
- package/dist/admin/chunks/{fr-Dm1xiZI5.js.map → fr-CFdRaRVj.js.map} +1 -1
- package/dist/admin/chunks/{fr-CqAyDOmo.js → fr-gQSilC7w.js} +4 -1
- package/dist/admin/chunks/{fr-CqAyDOmo.js.map → fr-gQSilC7w.js.map} +1 -1
- package/dist/admin/chunks/{index-DfEfFmQC.js → index-BRlRBRLb.js} +130 -53
- package/dist/admin/chunks/index-BRlRBRLb.js.map +1 -0
- package/dist/admin/chunks/{index-CKZHZ3ir.js → index-ZIwOPk6p.js} +128 -51
- package/dist/admin/chunks/index-ZIwOPk6p.js.map +1 -0
- package/dist/admin/chunks/{layout-BN6DSZ4t.js → layout-B3-guCPG.js} +4 -4
- package/dist/admin/chunks/{layout-BN6DSZ4t.js.map → layout-B3-guCPG.js.map} +1 -1
- package/dist/admin/chunks/{layout-CX-A0s3P.js → layout-ameRNiAM.js} +4 -4
- package/dist/admin/chunks/{layout-CX-A0s3P.js.map → layout-ameRNiAM.js.map} +1 -1
- package/dist/admin/chunks/{relations-CuPmv-zR.js → relations-CmoFVrKj.js} +20 -2
- package/dist/admin/chunks/relations-CmoFVrKj.js.map +1 -0
- package/dist/admin/chunks/{relations-xwSNlsdc.js → relations-DYQAaXwZ.js} +20 -3
- package/dist/admin/chunks/relations-DYQAaXwZ.js.map +1 -0
- package/dist/admin/chunks/usePrev-Bjw2dhmq.js +18 -0
- package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +1 -0
- package/dist/admin/chunks/{usePrev-CwGzb4ed.js → usePrev-DIYl-IAL.js} +1 -18
- package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +0 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +0 -49
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -1
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -1
- package/package.json +5 -5
- package/dist/admin/chunks/Input-B3wbR0pJ.js.map +0 -1
- package/dist/admin/chunks/Input-BIRb1gP2.js.map +0 -1
- package/dist/admin/chunks/Preview-BcggSPwn.js.map +0 -1
- package/dist/admin/chunks/Preview-DRtWRrYn.js.map +0 -1
- package/dist/admin/chunks/Relations-B1i77Jba.js.map +0 -1
- package/dist/admin/chunks/Relations-BDe2e0a7.js.map +0 -1
- package/dist/admin/chunks/index-CKZHZ3ir.js.map +0 -1
- package/dist/admin/chunks/index-DfEfFmQC.js.map +0 -1
- package/dist/admin/chunks/relations-CuPmv-zR.js.map +0 -1
- package/dist/admin/chunks/relations-xwSNlsdc.js.map +0 -1
- package/dist/admin/chunks/usePrev-CwGzb4ed.js.map +0 -1
- package/dist/admin/chunks/usePrev-tlgK0qPG.js +0 -34
- 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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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
|
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
|
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
|
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
|
-
|
4198
|
-
|
4199
|
-
|
4200
|
-
|
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
|
4277
|
-
const
|
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(
|
4322
|
-
|
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:
|
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 ||
|
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-
|
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-
|
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-
|
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-
|
5416
|
+
//# sourceMappingURL=index-ZIwOPk6p.js.map
|