@strapi/content-manager 5.0.0-rc.4 → 5.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{ComponentConfigurationPage-5ukroXAh.js → ComponentConfigurationPage-DXYBg6Q4.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-5ukroXAh.js.map → ComponentConfigurationPage-DXYBg6Q4.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-BAgyHiMm.mjs → ComponentConfigurationPage-Diwy7rap.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-BAgyHiMm.mjs.map → ComponentConfigurationPage-Diwy7rap.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-DmoXawIh.mjs → EditConfigurationPage-C62aCKGN.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-DmoXawIh.mjs.map → EditConfigurationPage-C62aCKGN.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Xp7lun0f.js → EditConfigurationPage-DCyvZplh.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-Xp7lun0f.js.map → EditConfigurationPage-DCyvZplh.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-BLsjc5F-.mjs → EditViewPage-D7pEHIUi.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-BLsjc5F-.mjs.map → EditViewPage-D7pEHIUi.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-C-ukDOB7.js → EditViewPage-Q1iL6Yjq.js} +3 -3
- package/dist/_chunks/{EditViewPage-C-ukDOB7.js.map → EditViewPage-Q1iL6Yjq.js.map} +1 -1
- package/dist/_chunks/{Field-Cs7duwWd.mjs → Field-B5WAARex.mjs} +3 -3
- package/dist/_chunks/Field-B5WAARex.mjs.map +1 -0
- package/dist/_chunks/{Field-Bfph5SOd.js → Field-tNsYzab8.js} +3 -3
- package/dist/_chunks/Field-tNsYzab8.js.map +1 -0
- package/dist/_chunks/{Form-CPYqIWDG.js → Form-BLOtEgdG.js} +2 -2
- package/dist/_chunks/{Form-CPYqIWDG.js.map → Form-BLOtEgdG.js.map} +1 -1
- package/dist/_chunks/{Form-Dg_GS5TQ.mjs → Form-BdgxktG0.mjs} +2 -2
- package/dist/_chunks/{Form-Dg_GS5TQ.mjs.map → Form-BdgxktG0.mjs.map} +1 -1
- package/dist/_chunks/{History-DNQkXANT.js → History-CNQ3y0Td.js} +4 -4
- package/dist/_chunks/{History-DNQkXANT.js.map → History-CNQ3y0Td.js.map} +1 -1
- package/dist/_chunks/{History-wrnHqf09.mjs → History-DCbphAxD.mjs} +4 -4
- package/dist/_chunks/{History-wrnHqf09.mjs.map → History-DCbphAxD.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-CUQxfpjT.js → ListConfigurationPage-CGiDaV99.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-CUQxfpjT.js.map → ListConfigurationPage-CGiDaV99.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-DScmJVkW.mjs → ListConfigurationPage-DfvPhk6u.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-DScmJVkW.mjs.map → ListConfigurationPage-DfvPhk6u.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-BsLiH2-2.js → ListViewPage-BoBeCtmC.js} +9 -4
- package/dist/_chunks/ListViewPage-BoBeCtmC.js.map +1 -0
- package/dist/_chunks/{ListViewPage-C4IvrMgY.mjs → ListViewPage-D4UEitVJ.mjs} +10 -5
- package/dist/_chunks/ListViewPage-D4UEitVJ.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-Djg8nPlj.mjs → NoContentTypePage-Dg8RTwSG.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-Djg8nPlj.mjs.map → NoContentTypePage-Dg8RTwSG.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BZ-PnGAf.js → NoContentTypePage-r8lNSL9g.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BZ-PnGAf.js.map → NoContentTypePage-r8lNSL9g.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-_lUqjGW3.js → NoPermissionsPage-C-4rQU7A.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-_lUqjGW3.js.map → NoPermissionsPage-C-4rQU7A.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DSP7R-hv.mjs → NoPermissionsPage-Kpz9mv4K.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DSP7R-hv.mjs.map → NoPermissionsPage-Kpz9mv4K.mjs.map} +1 -1
- package/dist/_chunks/{Relations-CtELXYIK.js → Relations-DORNjmbK.js} +3 -3
- package/dist/_chunks/{Relations-CtELXYIK.js.map → Relations-DORNjmbK.js.map} +1 -1
- package/dist/_chunks/{Relations-BZr8tL0R.mjs → Relations-Q66m8cnC.mjs} +3 -3
- package/dist/_chunks/{Relations-BZr8tL0R.mjs.map → Relations-Q66m8cnC.mjs.map} +1 -1
- package/dist/_chunks/{index-OerGjbAN.js → index-B74KYy73.js} +28 -36
- package/dist/_chunks/index-B74KYy73.js.map +1 -0
- package/dist/_chunks/{index-c_5DdJi-.mjs → index-CW--YEA6.mjs} +29 -37
- package/dist/_chunks/index-CW--YEA6.mjs.map +1 -0
- package/dist/_chunks/{layout-oPBiO7RY.mjs → layout-CcKSoI_3.mjs} +17 -5
- package/dist/_chunks/{layout-oPBiO7RY.mjs.map → layout-CcKSoI_3.mjs.map} +1 -1
- package/dist/_chunks/{layout-Ci7qHlFb.js → layout-CwR7rEv4.js} +16 -4
- package/dist/_chunks/{layout-Ci7qHlFb.js.map → layout-CwR7rEv4.js.map} +1 -1
- package/dist/_chunks/{relations-BIdWFjdq.mjs → relations-Dsery6I2.mjs} +2 -2
- package/dist/_chunks/{relations-BIdWFjdq.mjs.map → relations-Dsery6I2.mjs.map} +1 -1
- package/dist/_chunks/{relations-COBpStiF.js → relations-S1dd0utS.js} +2 -2
- package/dist/_chunks/{relations-COBpStiF.js.map → relations-S1dd0utS.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +98 -58
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +99 -59
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.d.ts +1 -1
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/_chunks/Field-Bfph5SOd.js.map +0 -1
- package/dist/_chunks/Field-Cs7duwWd.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-BsLiH2-2.js.map +0 -1
- package/dist/_chunks/ListViewPage-C4IvrMgY.mjs.map +0 -1
- package/dist/_chunks/index-OerGjbAN.js.map +0 -1
- package/dist/_chunks/index-c_5DdJi-.mjs.map +0 -1
@@ -1292,7 +1292,7 @@ const useDocumentActions = () => {
|
|
1292
1292
|
};
|
1293
1293
|
};
|
1294
1294
|
const ProtectedHistoryPage = React.lazy(
|
1295
|
-
() => Promise.resolve().then(() => require("./History-
|
1295
|
+
() => Promise.resolve().then(() => require("./History-CNQ3y0Td.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1296
1296
|
);
|
1297
1297
|
const routes$1 = [
|
1298
1298
|
{
|
@@ -1305,31 +1305,31 @@ const routes$1 = [
|
|
1305
1305
|
}
|
1306
1306
|
];
|
1307
1307
|
const ProtectedEditViewPage = React.lazy(
|
1308
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1308
|
+
() => Promise.resolve().then(() => require("./EditViewPage-Q1iL6Yjq.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1309
1309
|
);
|
1310
1310
|
const ProtectedListViewPage = React.lazy(
|
1311
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1311
|
+
() => Promise.resolve().then(() => require("./ListViewPage-BoBeCtmC.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1312
1312
|
);
|
1313
1313
|
const ProtectedListConfiguration = React.lazy(
|
1314
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1314
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-CGiDaV99.js")).then((mod) => ({
|
1315
1315
|
default: mod.ProtectedListConfiguration
|
1316
1316
|
}))
|
1317
1317
|
);
|
1318
1318
|
const ProtectedEditConfigurationPage = React.lazy(
|
1319
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1319
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-DCyvZplh.js")).then((mod) => ({
|
1320
1320
|
default: mod.ProtectedEditConfigurationPage
|
1321
1321
|
}))
|
1322
1322
|
);
|
1323
1323
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1324
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1324
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-DXYBg6Q4.js")).then((mod) => ({
|
1325
1325
|
default: mod.ProtectedComponentConfigurationPage
|
1326
1326
|
}))
|
1327
1327
|
);
|
1328
1328
|
const NoPermissions = React.lazy(
|
1329
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1329
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-C-4rQU7A.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1330
1330
|
);
|
1331
1331
|
const NoContentType = React.lazy(
|
1332
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1332
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-r8lNSL9g.js")).then((mod) => ({ default: mod.NoContentType }))
|
1333
1333
|
);
|
1334
1334
|
const CollectionTypePages = () => {
|
1335
1335
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1513,9 +1513,9 @@ const DocumentActionsMenu = ({
|
|
1513
1513
|
disabled: isDisabled,
|
1514
1514
|
size: "S",
|
1515
1515
|
endIcon: null,
|
1516
|
-
paddingTop: "
|
1517
|
-
paddingLeft: "
|
1518
|
-
paddingRight: "
|
1516
|
+
paddingTop: "4px",
|
1517
|
+
paddingLeft: "7px",
|
1518
|
+
paddingRight: "7px",
|
1519
1519
|
variant,
|
1520
1520
|
children: [
|
1521
1521
|
/* @__PURE__ */ jsxRuntime.jsx(Icons.More, { "aria-hidden": true, focusable: false }),
|
@@ -1535,10 +1535,18 @@ const DocumentActionsMenu = ({
|
|
1535
1535
|
onSelect: handleClick(action),
|
1536
1536
|
display: "block",
|
1537
1537
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: [
|
1538
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1538
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
1539
|
+
designSystem.Flex,
|
1540
|
+
{
|
1541
|
+
color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
|
1542
|
+
gap: 2,
|
1543
|
+
tag: "span",
|
1544
|
+
children: [
|
1545
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: action.icon }),
|
1546
|
+
action.label
|
1547
|
+
]
|
1548
|
+
}
|
1549
|
+
),
|
1542
1550
|
action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsxRuntime.jsx(
|
1543
1551
|
designSystem.Flex,
|
1544
1552
|
{
|
@@ -1597,18 +1605,6 @@ const convertActionVariantToColor = (variant = "secondary") => {
|
|
1597
1605
|
return "primary600";
|
1598
1606
|
}
|
1599
1607
|
};
|
1600
|
-
const convertActionVariantToIconColor = (variant = "secondary") => {
|
1601
|
-
switch (variant) {
|
1602
|
-
case "danger":
|
1603
|
-
return "danger600";
|
1604
|
-
case "secondary":
|
1605
|
-
return "neutral500";
|
1606
|
-
case "success":
|
1607
|
-
return "success600";
|
1608
|
-
default:
|
1609
|
-
return "primary600";
|
1610
|
-
}
|
1611
|
-
};
|
1612
1608
|
const DocumentActionConfirmDialog = ({
|
1613
1609
|
onClose,
|
1614
1610
|
onCancel,
|
@@ -1803,10 +1799,8 @@ const PublishAction$1 = ({
|
|
1803
1799
|
* - the document is already published & not modified
|
1804
1800
|
* - the document is being created & not modified
|
1805
1801
|
* - the user doesn't have the permission to publish
|
1806
|
-
* - the user doesn't have the permission to create a new document
|
1807
|
-
* - the user doesn't have the permission to update the document
|
1808
1802
|
*/
|
1809
|
-
disabled: isCloning || isSubmitting || isLoadingDraftRelations || activeTab === "published" || !modified && isDocumentPublished || !modified && !document?.documentId || !canPublish
|
1803
|
+
disabled: isCloning || isSubmitting || isLoadingDraftRelations || activeTab === "published" || !modified && isDocumentPublished || !modified && !document?.documentId || !canPublish,
|
1810
1804
|
label: formatMessage({
|
1811
1805
|
id: "app.utils.publish",
|
1812
1806
|
defaultMessage: "Publish"
|
@@ -1853,7 +1847,7 @@ const UpdateAction = ({
|
|
1853
1847
|
const cloneMatch = reactRouterDom.useMatch(CLONE_PATH);
|
1854
1848
|
const isCloning = cloneMatch !== null;
|
1855
1849
|
const { formatMessage } = reactIntl.useIntl();
|
1856
|
-
|
1850
|
+
useDocumentRBAC("UpdateAction", ({ canCreate: canCreate2, canUpdate: canUpdate2 }) => ({
|
1857
1851
|
canCreate: canCreate2,
|
1858
1852
|
canUpdate: canUpdate2
|
1859
1853
|
}));
|
@@ -1873,10 +1867,8 @@ const UpdateAction = ({
|
|
1873
1867
|
* - the form is submitting
|
1874
1868
|
* - the document is not modified & we're not cloning (you can save a clone entity straight away)
|
1875
1869
|
* - the active tab is the published tab
|
1876
|
-
* - the user doesn't have the permission to create a new document
|
1877
|
-
* - the user doesn't have the permission to update the document
|
1878
1870
|
*/
|
1879
|
-
disabled: isSubmitting || !modified && !isCloning || activeTab === "published"
|
1871
|
+
disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
|
1880
1872
|
label: formatMessage({
|
1881
1873
|
id: "content-manager.containers.Edit.save",
|
1882
1874
|
defaultMessage: "Save"
|
@@ -3869,7 +3861,7 @@ const index = {
|
|
3869
3861
|
app.router.addRoute({
|
3870
3862
|
path: "content-manager/*",
|
3871
3863
|
lazy: async () => {
|
3872
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
3864
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-CwR7rEv4.js"));
|
3873
3865
|
return {
|
3874
3866
|
Component: Layout
|
3875
3867
|
};
|
@@ -3943,4 +3935,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
|
3943
3935
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
3944
3936
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
3945
3937
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
3946
|
-
//# sourceMappingURL=index-
|
3938
|
+
//# sourceMappingURL=index-B74KYy73.js.map
|