@strapi/content-manager 0.0.0-experimental.edc24aaa3bb5a90fa5fd4fee208167dd4e2e38d4 → 0.0.0-experimental.f31889311d753b5f7d95198ae84d8fce1d156cd6
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-BNxtMIfV.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-5ukroXAh.js.map → ComponentConfigurationPage-BNxtMIfV.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-BAgyHiMm.mjs → ComponentConfigurationPage-BWOQWCv2.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-BAgyHiMm.mjs.map → ComponentConfigurationPage-BWOQWCv2.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Xp7lun0f.js → EditConfigurationPage-D340bYlT.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-Xp7lun0f.js.map → EditConfigurationPage-D340bYlT.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-DmoXawIh.mjs → EditConfigurationPage-GTp-Ucnw.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-DmoXawIh.mjs.map → EditConfigurationPage-GTp-Ucnw.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-BLsjc5F-.mjs → EditViewPage-BVMS5hT-.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-BLsjc5F-.mjs.map → EditViewPage-BVMS5hT-.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-C-ukDOB7.js → EditViewPage-CXkmnAvI.js} +3 -3
- package/dist/_chunks/{EditViewPage-C-ukDOB7.js.map → EditViewPage-CXkmnAvI.js.map} +1 -1
- package/dist/_chunks/{Field-Bfph5SOd.js → Field-Ibi32diw.js} +3 -3
- package/dist/_chunks/Field-Ibi32diw.js.map +1 -0
- package/dist/_chunks/{Field-Cs7duwWd.mjs → Field-nNgv5bpd.mjs} +3 -3
- package/dist/_chunks/Field-nNgv5bpd.mjs.map +1 -0
- package/dist/_chunks/{Form-CPYqIWDG.js → Form-Dhnh34ym.js} +2 -2
- package/dist/_chunks/{Form-CPYqIWDG.js.map → Form-Dhnh34ym.js.map} +1 -1
- package/dist/_chunks/{Form-Dg_GS5TQ.mjs → Form-DodJsI2A.mjs} +2 -2
- package/dist/_chunks/{Form-Dg_GS5TQ.mjs.map → Form-DodJsI2A.mjs.map} +1 -1
- package/dist/_chunks/{History-DNQkXANT.js → History-C9auUkDi.js} +4 -4
- package/dist/_chunks/{History-DNQkXANT.js.map → History-C9auUkDi.js.map} +1 -1
- package/dist/_chunks/{History-wrnHqf09.mjs → History-CKCSQXz_.mjs} +4 -4
- package/dist/_chunks/{History-wrnHqf09.mjs.map → History-CKCSQXz_.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-CUQxfpjT.js → ListConfigurationPage-Bg4rWUjX.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-CUQxfpjT.js.map → ListConfigurationPage-Bg4rWUjX.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-DScmJVkW.mjs → ListConfigurationPage-CKEC4ttG.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-DScmJVkW.mjs.map → ListConfigurationPage-CKEC4ttG.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-C4IvrMgY.mjs → ListViewPage-B7_WJUjG.mjs} +10 -5
- package/dist/_chunks/ListViewPage-B7_WJUjG.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-BsLiH2-2.js → ListViewPage-C2gIeYHG.js} +9 -4
- package/dist/_chunks/ListViewPage-C2gIeYHG.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-Djg8nPlj.mjs → NoContentTypePage-Ckem6Ll6.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-Djg8nPlj.mjs.map → NoContentTypePage-Ckem6Ll6.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BZ-PnGAf.js → NoContentTypePage-DqgdUfyn.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BZ-PnGAf.js.map → NoContentTypePage-DqgdUfyn.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DSP7R-hv.mjs → NoPermissionsPage-BO-GEjA4.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DSP7R-hv.mjs.map → NoPermissionsPage-BO-GEjA4.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-_lUqjGW3.js → NoPermissionsPage-CF29Q-sW.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-_lUqjGW3.js.map → NoPermissionsPage-CF29Q-sW.js.map} +1 -1
- package/dist/_chunks/{Relations-CtELXYIK.js → Relations-C0uC9J4f.js} +3 -3
- package/dist/_chunks/{Relations-CtELXYIK.js.map → Relations-C0uC9J4f.js.map} +1 -1
- package/dist/_chunks/{Relations-BZr8tL0R.mjs → Relations-DItV5eow.mjs} +3 -3
- package/dist/_chunks/{Relations-BZr8tL0R.mjs.map → Relations-DItV5eow.mjs.map} +1 -1
- package/dist/_chunks/{index-OerGjbAN.js → index-Dd0nXyJF.js} +29 -36
- package/dist/_chunks/index-Dd0nXyJF.js.map +1 -0
- package/dist/_chunks/{index-c_5DdJi-.mjs → index-DrNe6ctw.mjs} +30 -37
- package/dist/_chunks/index-DrNe6ctw.mjs.map +1 -0
- package/dist/_chunks/{layout-oPBiO7RY.mjs → layout-B3ez7kvr.mjs} +17 -5
- package/dist/_chunks/{layout-oPBiO7RY.mjs.map → layout-B3ez7kvr.mjs.map} +1 -1
- package/dist/_chunks/{layout-Ci7qHlFb.js → layout-CLLtt_5O.js} +16 -4
- package/dist/_chunks/{layout-Ci7qHlFb.js.map → layout-CLLtt_5O.js.map} +1 -1
- package/dist/_chunks/{relations-BIdWFjdq.mjs → relations-B0hlsUU_.mjs} +2 -2
- package/dist/_chunks/{relations-BIdWFjdq.mjs.map → relations-B0hlsUU_.mjs.map} +1 -1
- package/dist/_chunks/{relations-COBpStiF.js → relations-bRxcNv1q.js} +2 -2
- package/dist/_chunks/{relations-COBpStiF.js.map → relations-bRxcNv1q.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
@@ -285,6 +285,7 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
285
285
|
}),
|
286
286
|
providesTags: (result, _error, arg) => {
|
287
287
|
return [
|
288
|
+
{ type: "Document", id: `ALL_LIST` },
|
288
289
|
{ type: "Document", id: `${arg.model}_LIST` },
|
289
290
|
...result?.results.map(({ documentId }) => ({
|
290
291
|
type: "Document",
|
@@ -1292,7 +1293,7 @@ const useDocumentActions = () => {
|
|
1292
1293
|
};
|
1293
1294
|
};
|
1294
1295
|
const ProtectedHistoryPage = React.lazy(
|
1295
|
-
() => Promise.resolve().then(() => require("./History-
|
1296
|
+
() => Promise.resolve().then(() => require("./History-C9auUkDi.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1296
1297
|
);
|
1297
1298
|
const routes$1 = [
|
1298
1299
|
{
|
@@ -1305,31 +1306,31 @@ const routes$1 = [
|
|
1305
1306
|
}
|
1306
1307
|
];
|
1307
1308
|
const ProtectedEditViewPage = React.lazy(
|
1308
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1309
|
+
() => Promise.resolve().then(() => require("./EditViewPage-CXkmnAvI.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1309
1310
|
);
|
1310
1311
|
const ProtectedListViewPage = React.lazy(
|
1311
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1312
|
+
() => Promise.resolve().then(() => require("./ListViewPage-C2gIeYHG.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1312
1313
|
);
|
1313
1314
|
const ProtectedListConfiguration = React.lazy(
|
1314
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1315
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-Bg4rWUjX.js")).then((mod) => ({
|
1315
1316
|
default: mod.ProtectedListConfiguration
|
1316
1317
|
}))
|
1317
1318
|
);
|
1318
1319
|
const ProtectedEditConfigurationPage = React.lazy(
|
1319
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1320
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-D340bYlT.js")).then((mod) => ({
|
1320
1321
|
default: mod.ProtectedEditConfigurationPage
|
1321
1322
|
}))
|
1322
1323
|
);
|
1323
1324
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1324
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1325
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-BNxtMIfV.js")).then((mod) => ({
|
1325
1326
|
default: mod.ProtectedComponentConfigurationPage
|
1326
1327
|
}))
|
1327
1328
|
);
|
1328
1329
|
const NoPermissions = React.lazy(
|
1329
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1330
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-CF29Q-sW.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1330
1331
|
);
|
1331
1332
|
const NoContentType = React.lazy(
|
1332
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1333
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-DqgdUfyn.js")).then((mod) => ({ default: mod.NoContentType }))
|
1333
1334
|
);
|
1334
1335
|
const CollectionTypePages = () => {
|
1335
1336
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1513,9 +1514,9 @@ const DocumentActionsMenu = ({
|
|
1513
1514
|
disabled: isDisabled,
|
1514
1515
|
size: "S",
|
1515
1516
|
endIcon: null,
|
1516
|
-
paddingTop: "
|
1517
|
-
paddingLeft: "
|
1518
|
-
paddingRight: "
|
1517
|
+
paddingTop: "4px",
|
1518
|
+
paddingLeft: "7px",
|
1519
|
+
paddingRight: "7px",
|
1519
1520
|
variant,
|
1520
1521
|
children: [
|
1521
1522
|
/* @__PURE__ */ jsxRuntime.jsx(Icons.More, { "aria-hidden": true, focusable: false }),
|
@@ -1535,10 +1536,18 @@ const DocumentActionsMenu = ({
|
|
1535
1536
|
onSelect: handleClick(action),
|
1536
1537
|
display: "block",
|
1537
1538
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: [
|
1538
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1539
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
1540
|
+
designSystem.Flex,
|
1541
|
+
{
|
1542
|
+
color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
|
1543
|
+
gap: 2,
|
1544
|
+
tag: "span",
|
1545
|
+
children: [
|
1546
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: action.icon }),
|
1547
|
+
action.label
|
1548
|
+
]
|
1549
|
+
}
|
1550
|
+
),
|
1542
1551
|
action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsxRuntime.jsx(
|
1543
1552
|
designSystem.Flex,
|
1544
1553
|
{
|
@@ -1597,18 +1606,6 @@ const convertActionVariantToColor = (variant = "secondary") => {
|
|
1597
1606
|
return "primary600";
|
1598
1607
|
}
|
1599
1608
|
};
|
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
1609
|
const DocumentActionConfirmDialog = ({
|
1613
1610
|
onClose,
|
1614
1611
|
onCancel,
|
@@ -1803,10 +1800,8 @@ const PublishAction$1 = ({
|
|
1803
1800
|
* - the document is already published & not modified
|
1804
1801
|
* - the document is being created & not modified
|
1805
1802
|
* - 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
1803
|
*/
|
1809
|
-
disabled: isCloning || isSubmitting || isLoadingDraftRelations || activeTab === "published" || !modified && isDocumentPublished || !modified && !document?.documentId || !canPublish
|
1804
|
+
disabled: isCloning || isSubmitting || isLoadingDraftRelations || activeTab === "published" || !modified && isDocumentPublished || !modified && !document?.documentId || !canPublish,
|
1810
1805
|
label: formatMessage({
|
1811
1806
|
id: "app.utils.publish",
|
1812
1807
|
defaultMessage: "Publish"
|
@@ -1853,7 +1848,7 @@ const UpdateAction = ({
|
|
1853
1848
|
const cloneMatch = reactRouterDom.useMatch(CLONE_PATH);
|
1854
1849
|
const isCloning = cloneMatch !== null;
|
1855
1850
|
const { formatMessage } = reactIntl.useIntl();
|
1856
|
-
|
1851
|
+
useDocumentRBAC("UpdateAction", ({ canCreate: canCreate2, canUpdate: canUpdate2 }) => ({
|
1857
1852
|
canCreate: canCreate2,
|
1858
1853
|
canUpdate: canUpdate2
|
1859
1854
|
}));
|
@@ -1873,10 +1868,8 @@ const UpdateAction = ({
|
|
1873
1868
|
* - the form is submitting
|
1874
1869
|
* - the document is not modified & we're not cloning (you can save a clone entity straight away)
|
1875
1870
|
* - 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
1871
|
*/
|
1879
|
-
disabled: isSubmitting || !modified && !isCloning || activeTab === "published"
|
1872
|
+
disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
|
1880
1873
|
label: formatMessage({
|
1881
1874
|
id: "content-manager.containers.Edit.save",
|
1882
1875
|
defaultMessage: "Save"
|
@@ -3869,7 +3862,7 @@ const index = {
|
|
3869
3862
|
app.router.addRoute({
|
3870
3863
|
path: "content-manager/*",
|
3871
3864
|
lazy: async () => {
|
3872
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
3865
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-CLLtt_5O.js"));
|
3873
3866
|
return {
|
3874
3867
|
Component: Layout
|
3875
3868
|
};
|
@@ -3943,4 +3936,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
|
3943
3936
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
3944
3937
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
3945
3938
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
3946
|
-
//# sourceMappingURL=index-
|
3939
|
+
//# sourceMappingURL=index-Dd0nXyJF.js.map
|