@strapi/content-manager 0.0.0-experimental.a9a5a36dd73072c19eadeff5f387e8286b2a4d22 → 0.0.0-experimental.abc
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-B1bIXVuX.mjs → ComponentConfigurationPage-B3yDbeU1.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-B1bIXVuX.mjs.map → ComponentConfigurationPage-B3yDbeU1.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-Bqgx7Mes.js → ComponentConfigurationPage-KXSuLnQD.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-Bqgx7Mes.js.map → ComponentConfigurationPage-KXSuLnQD.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BFEwvdMW.js → EditConfigurationPage-BQ17--5R.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BFEwvdMW.js.map → EditConfigurationPage-BQ17--5R.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-ZO0vOO8q.mjs → EditConfigurationPage-D7PrLO8j.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-ZO0vOO8q.mjs.map → EditConfigurationPage-D7PrLO8j.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-DlLEyUL6.mjs → EditViewPage-B7VgwJaG.mjs} +18 -7
- package/dist/_chunks/EditViewPage-B7VgwJaG.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-DA95Ha6J.js → EditViewPage-BgjdnGz2.js} +18 -7
- package/dist/_chunks/EditViewPage-BgjdnGz2.js.map +1 -0
- package/dist/_chunks/{Field-CnK8dO8N.js → Field-CdK7ZLmv.js} +94 -35
- package/dist/_chunks/Field-CdK7ZLmv.js.map +1 -0
- package/dist/_chunks/{Field-Dq7bDnuh.mjs → Field-tHCw4lGA.mjs} +95 -36
- package/dist/_chunks/Field-tHCw4lGA.mjs.map +1 -0
- package/dist/_chunks/{Form-B_JE0dbz.mjs → Form-BJxdTv3Q.mjs} +22 -11
- package/dist/_chunks/Form-BJxdTv3Q.mjs.map +1 -0
- package/dist/_chunks/{Form-BpiR4piS.js → Form-C_0KTVvV.js} +22 -11
- package/dist/_chunks/Form-C_0KTVvV.js.map +1 -0
- package/dist/_chunks/{History-CBNGU7a-.mjs → History-DR2txJLE.mjs} +21 -11
- package/dist/_chunks/History-DR2txJLE.mjs.map +1 -0
- package/dist/_chunks/{History-DdIstl8b.js → History-nuEzM5qm.js} +21 -11
- package/dist/_chunks/History-nuEzM5qm.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DkKRparB.js → ListConfigurationPage-CnB86Psm.js} +14 -4
- package/dist/_chunks/ListConfigurationPage-CnB86Psm.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-5dr4qpue.mjs → ListConfigurationPage-voFVtXu6.mjs} +14 -4
- package/dist/_chunks/ListConfigurationPage-voFVtXu6.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-DecLrYV6.mjs → ListViewPage-B_GaWgRH.mjs} +10 -5
- package/dist/_chunks/ListViewPage-B_GaWgRH.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-wE0lXqoD.js → ListViewPage-SXIXm-RM.js} +9 -4
- package/dist/_chunks/ListViewPage-SXIXm-RM.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DEKR6tf9.js → NoContentTypePage-BzsQ3hLZ.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-DEKR6tf9.js.map → NoContentTypePage-BzsQ3hLZ.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-CiIcfYsd.mjs → NoContentTypePage-CYiGpsbj.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-CiIcfYsd.mjs.map → NoContentTypePage-CYiGpsbj.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CM5UD8ee.mjs → NoPermissionsPage-B5baIHal.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CM5UD8ee.mjs.map → NoPermissionsPage-B5baIHal.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DmNfF2Bb.js → NoPermissionsPage-IGkId4C5.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DmNfF2Bb.js.map → NoPermissionsPage-IGkId4C5.js.map} +1 -1
- package/dist/_chunks/{Relations-Dqz0C1fz.mjs → Relations-CIYDdKU-.mjs} +4 -4
- package/dist/_chunks/{Relations-Dqz0C1fz.mjs.map → Relations-CIYDdKU-.mjs.map} +1 -1
- package/dist/_chunks/{Relations-L0xYRoSQ.js → Relations-Dhuurpx2.js} +4 -4
- package/dist/_chunks/{Relations-L0xYRoSQ.js.map → Relations-Dhuurpx2.js.map} +1 -1
- package/dist/_chunks/{index-BSn97i8U.mjs → index-C9TJPyni.mjs} +88 -37
- package/dist/_chunks/index-C9TJPyni.mjs.map +1 -0
- package/dist/_chunks/{index-DyvUPg1a.js → index-CdT0kHZ8.js} +87 -36
- package/dist/_chunks/index-CdT0kHZ8.js.map +1 -0
- package/dist/_chunks/{layout-DPaHUusj.mjs → layout-BNqvLR_b.mjs} +20 -8
- package/dist/_chunks/layout-BNqvLR_b.mjs.map +1 -0
- package/dist/_chunks/{layout-TPqF2oJ5.js → layout-C6dxWYT7.js} +19 -7
- package/dist/_chunks/layout-C6dxWYT7.js.map +1 -0
- package/dist/_chunks/{relations-Ck7-ecDT.mjs → relations-CkKqKw65.mjs} +2 -2
- package/dist/_chunks/{relations-Ck7-ecDT.mjs.map → relations-CkKqKw65.mjs.map} +1 -1
- package/dist/_chunks/{relations-BWYS9gkn.js → relations-DtFaDnP1.js} +2 -2
- package/dist/_chunks/{relations-BWYS9gkn.js.map → relations-DtFaDnP1.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +10 -22
- package/dist/server/index.js +130 -85
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +131 -86
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
- package/dist/server/src/controllers/uid.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/dimensions.d.ts +4 -2
- package/dist/server/src/controllers/validation/dimensions.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-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/utils/populate.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/EditViewPage-DA95Ha6J.js.map +0 -1
- package/dist/_chunks/EditViewPage-DlLEyUL6.mjs.map +0 -1
- package/dist/_chunks/Field-CnK8dO8N.js.map +0 -1
- package/dist/_chunks/Field-Dq7bDnuh.mjs.map +0 -1
- package/dist/_chunks/Form-B_JE0dbz.mjs.map +0 -1
- package/dist/_chunks/Form-BpiR4piS.js.map +0 -1
- package/dist/_chunks/History-CBNGU7a-.mjs.map +0 -1
- package/dist/_chunks/History-DdIstl8b.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-5dr4qpue.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DkKRparB.js.map +0 -1
- package/dist/_chunks/ListViewPage-DecLrYV6.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-wE0lXqoD.js.map +0 -1
- package/dist/_chunks/index-BSn97i8U.mjs.map +0 -1
- package/dist/_chunks/index-DyvUPg1a.js.map +0 -1
- package/dist/_chunks/layout-DPaHUusj.mjs.map +0 -1
- package/dist/_chunks/layout-TPqF2oJ5.js.map +0 -1
@@ -193,7 +193,12 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
193
193
|
params: query
|
194
194
|
}
|
195
195
|
}),
|
196
|
-
invalidatesTags: (_result,
|
196
|
+
invalidatesTags: (_result, error, { model }) => {
|
197
|
+
if (error) {
|
198
|
+
return [];
|
199
|
+
}
|
200
|
+
return [{ type: "Document", id: `${model}_LIST` }];
|
201
|
+
}
|
197
202
|
}),
|
198
203
|
cloneDocument: builder.mutation({
|
199
204
|
query: ({ model, sourceId, data, params }) => ({
|
@@ -280,6 +285,7 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
280
285
|
}),
|
281
286
|
providesTags: (result, _error, arg) => {
|
282
287
|
return [
|
288
|
+
{ type: "Document", id: `ALL_LIST` },
|
283
289
|
{ type: "Document", id: `${arg.model}_LIST` },
|
284
290
|
...result?.results.map(({ documentId }) => ({
|
285
291
|
type: "Document",
|
@@ -318,6 +324,11 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
318
324
|
{
|
319
325
|
type: "Document",
|
320
326
|
id: collectionType !== SINGLE_TYPES ? `${model}_${result && "documentId" in result ? result.documentId : documentId}` : model
|
327
|
+
},
|
328
|
+
// Make it easy to invalidate all individual documents queries for a model
|
329
|
+
{
|
330
|
+
type: "Document",
|
331
|
+
id: `${model}_ALL_ITEMS`
|
321
332
|
}
|
322
333
|
];
|
323
334
|
}
|
@@ -383,6 +394,18 @@ const documentApi = contentManagerApi.injectEndpoints({
|
|
383
394
|
},
|
384
395
|
"Relations"
|
385
396
|
];
|
397
|
+
},
|
398
|
+
async onQueryStarted({ data, ...patch }, { dispatch, queryFulfilled }) {
|
399
|
+
const patchResult = dispatch(
|
400
|
+
documentApi.util.updateQueryData("getDocument", patch, (draft) => {
|
401
|
+
Object.assign(draft.data, data);
|
402
|
+
})
|
403
|
+
);
|
404
|
+
try {
|
405
|
+
await queryFulfilled;
|
406
|
+
} catch {
|
407
|
+
patchResult.undo();
|
408
|
+
}
|
386
409
|
}
|
387
410
|
}),
|
388
411
|
unpublishDocument: builder.mutation({
|
@@ -566,6 +589,14 @@ const createAttributeSchema = (attribute) => {
|
|
566
589
|
if (!value || typeof value === "string" && value.length === 0) {
|
567
590
|
return true;
|
568
591
|
}
|
592
|
+
if (typeof value === "object") {
|
593
|
+
try {
|
594
|
+
JSON.stringify(value);
|
595
|
+
return true;
|
596
|
+
} catch (err) {
|
597
|
+
return false;
|
598
|
+
}
|
599
|
+
}
|
569
600
|
try {
|
570
601
|
JSON.parse(value);
|
571
602
|
return true;
|
@@ -1195,7 +1226,6 @@ const useDocumentActions = () => {
|
|
1195
1226
|
sourceId
|
1196
1227
|
});
|
1197
1228
|
if ("error" in res) {
|
1198
|
-
toggleNotification({ type: "danger", message: formatAPIError(res.error) });
|
1199
1229
|
return { error: res.error };
|
1200
1230
|
}
|
1201
1231
|
toggleNotification({
|
@@ -1276,7 +1306,7 @@ const useDocumentActions = () => {
|
|
1276
1306
|
};
|
1277
1307
|
};
|
1278
1308
|
const ProtectedHistoryPage = React.lazy(
|
1279
|
-
() => Promise.resolve().then(() => require("./History-
|
1309
|
+
() => Promise.resolve().then(() => require("./History-nuEzM5qm.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1280
1310
|
);
|
1281
1311
|
const routes$1 = [
|
1282
1312
|
{
|
@@ -1289,31 +1319,31 @@ const routes$1 = [
|
|
1289
1319
|
}
|
1290
1320
|
];
|
1291
1321
|
const ProtectedEditViewPage = React.lazy(
|
1292
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1322
|
+
() => Promise.resolve().then(() => require("./EditViewPage-BgjdnGz2.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1293
1323
|
);
|
1294
1324
|
const ProtectedListViewPage = React.lazy(
|
1295
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1325
|
+
() => Promise.resolve().then(() => require("./ListViewPage-SXIXm-RM.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1296
1326
|
);
|
1297
1327
|
const ProtectedListConfiguration = React.lazy(
|
1298
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1328
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-CnB86Psm.js")).then((mod) => ({
|
1299
1329
|
default: mod.ProtectedListConfiguration
|
1300
1330
|
}))
|
1301
1331
|
);
|
1302
1332
|
const ProtectedEditConfigurationPage = React.lazy(
|
1303
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1333
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-BQ17--5R.js")).then((mod) => ({
|
1304
1334
|
default: mod.ProtectedEditConfigurationPage
|
1305
1335
|
}))
|
1306
1336
|
);
|
1307
1337
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1308
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1338
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-KXSuLnQD.js")).then((mod) => ({
|
1309
1339
|
default: mod.ProtectedComponentConfigurationPage
|
1310
1340
|
}))
|
1311
1341
|
);
|
1312
1342
|
const NoPermissions = React.lazy(
|
1313
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1343
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-IGkId4C5.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1314
1344
|
);
|
1315
1345
|
const NoContentType = React.lazy(
|
1316
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1346
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-BzsQ3hLZ.js")).then((mod) => ({ default: mod.NoContentType }))
|
1317
1347
|
);
|
1318
1348
|
const CollectionTypePages = () => {
|
1319
1349
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1427,12 +1457,14 @@ const DocumentActionButton = (action) => {
|
|
1427
1457
|
/* @__PURE__ */ jsxRuntime.jsx(
|
1428
1458
|
designSystem.Button,
|
1429
1459
|
{
|
1430
|
-
flex:
|
1460
|
+
flex: "auto",
|
1431
1461
|
startIcon: action.icon,
|
1432
1462
|
disabled: action.disabled,
|
1433
1463
|
onClick: handleClick(action),
|
1434
1464
|
justifyContent: "center",
|
1435
1465
|
variant: action.variant || "default",
|
1466
|
+
paddingTop: "7px",
|
1467
|
+
paddingBottom: "7px",
|
1436
1468
|
children: action.label
|
1437
1469
|
}
|
1438
1470
|
),
|
@@ -1492,14 +1524,14 @@ const DocumentActionsMenu = ({
|
|
1492
1524
|
};
|
1493
1525
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
|
1494
1526
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
1495
|
-
|
1527
|
+
StyledMoreButton,
|
1496
1528
|
{
|
1497
1529
|
disabled: isDisabled,
|
1498
1530
|
size: "S",
|
1499
1531
|
endIcon: null,
|
1500
|
-
paddingTop: "
|
1501
|
-
paddingLeft: "
|
1502
|
-
paddingRight: "
|
1532
|
+
paddingTop: "4px",
|
1533
|
+
paddingLeft: "7px",
|
1534
|
+
paddingRight: "7px",
|
1503
1535
|
variant,
|
1504
1536
|
children: [
|
1505
1537
|
/* @__PURE__ */ jsxRuntime.jsx(Icons.More, { "aria-hidden": true, focusable: false }),
|
@@ -1519,10 +1551,25 @@ const DocumentActionsMenu = ({
|
|
1519
1551
|
onSelect: handleClick(action),
|
1520
1552
|
display: "block",
|
1521
1553
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: [
|
1522
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1554
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
1555
|
+
designSystem.Flex,
|
1556
|
+
{
|
1557
|
+
color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
|
1558
|
+
gap: 2,
|
1559
|
+
tag: "span",
|
1560
|
+
children: [
|
1561
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
1562
|
+
designSystem.Flex,
|
1563
|
+
{
|
1564
|
+
tag: "span",
|
1565
|
+
color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
|
1566
|
+
children: action.icon
|
1567
|
+
}
|
1568
|
+
),
|
1569
|
+
action.label
|
1570
|
+
]
|
1571
|
+
}
|
1572
|
+
),
|
1526
1573
|
action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsxRuntime.jsx(
|
1527
1574
|
designSystem.Flex,
|
1528
1575
|
{
|
@@ -1593,6 +1640,11 @@ const convertActionVariantToIconColor = (variant = "secondary") => {
|
|
1593
1640
|
return "primary600";
|
1594
1641
|
}
|
1595
1642
|
};
|
1643
|
+
const StyledMoreButton = styledComponents.styled(designSystem.Menu.Trigger)`
|
1644
|
+
& > span {
|
1645
|
+
display: flex;
|
1646
|
+
}
|
1647
|
+
`;
|
1596
1648
|
const DocumentActionConfirmDialog = ({
|
1597
1649
|
onClose,
|
1598
1650
|
onCancel,
|
@@ -1646,8 +1698,8 @@ const DocumentActionModal = ({
|
|
1646
1698
|
};
|
1647
1699
|
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Content, { children: [
|
1648
1700
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Title, { children: title }) }),
|
1649
|
-
|
1650
|
-
|
1701
|
+
typeof Content === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose }) : /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Body, { children: Content }),
|
1702
|
+
typeof Footer === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Footer, { onClose: handleClose }) : Footer
|
1651
1703
|
] }) });
|
1652
1704
|
};
|
1653
1705
|
const PublishAction$1 = ({
|
@@ -1787,10 +1839,8 @@ const PublishAction$1 = ({
|
|
1787
1839
|
* - the document is already published & not modified
|
1788
1840
|
* - the document is being created & not modified
|
1789
1841
|
* - the user doesn't have the permission to publish
|
1790
|
-
* - the user doesn't have the permission to create a new document
|
1791
|
-
* - the user doesn't have the permission to update the document
|
1792
1842
|
*/
|
1793
|
-
disabled: isCloning || isSubmitting || isLoadingDraftRelations || activeTab === "published" || !modified && isDocumentPublished || !modified && !document?.documentId || !canPublish
|
1843
|
+
disabled: isCloning || isSubmitting || isLoadingDraftRelations || activeTab === "published" || !modified && isDocumentPublished || !modified && !document?.documentId || !canPublish,
|
1794
1844
|
label: formatMessage({
|
1795
1845
|
id: "app.utils.publish",
|
1796
1846
|
defaultMessage: "Publish"
|
@@ -1837,7 +1887,7 @@ const UpdateAction = ({
|
|
1837
1887
|
const cloneMatch = reactRouterDom.useMatch(CLONE_PATH);
|
1838
1888
|
const isCloning = cloneMatch !== null;
|
1839
1889
|
const { formatMessage } = reactIntl.useIntl();
|
1840
|
-
|
1890
|
+
useDocumentRBAC("UpdateAction", ({ canCreate: canCreate2, canUpdate: canUpdate2 }) => ({
|
1841
1891
|
canCreate: canCreate2,
|
1842
1892
|
canUpdate: canUpdate2
|
1843
1893
|
}));
|
@@ -1857,10 +1907,8 @@ const UpdateAction = ({
|
|
1857
1907
|
* - the form is submitting
|
1858
1908
|
* - the document is not modified & we're not cloning (you can save a clone entity straight away)
|
1859
1909
|
* - the active tab is the published tab
|
1860
|
-
* - the user doesn't have the permission to create a new document
|
1861
|
-
* - the user doesn't have the permission to update the document
|
1862
1910
|
*/
|
1863
|
-
disabled: isSubmitting || !modified && !isCloning || activeTab === "published"
|
1911
|
+
disabled: isSubmitting || !modified && !isCloning || activeTab === "published",
|
1864
1912
|
label: formatMessage({
|
1865
1913
|
id: "content-manager.containers.Edit.save",
|
1866
1914
|
defaultMessage: "Save"
|
@@ -1889,10 +1937,13 @@ const UpdateAction = ({
|
|
1889
1937
|
document
|
1890
1938
|
);
|
1891
1939
|
if ("data" in res) {
|
1892
|
-
navigate(
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1940
|
+
navigate(
|
1941
|
+
{
|
1942
|
+
pathname: `../${res.data.documentId}`,
|
1943
|
+
search: rawQuery
|
1944
|
+
},
|
1945
|
+
{ relative: "path" }
|
1946
|
+
);
|
1896
1947
|
} else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
1897
1948
|
setErrors(formatValidationErrors(res.error));
|
1898
1949
|
}
|
@@ -1922,10 +1973,10 @@ const UpdateAction = ({
|
|
1922
1973
|
if ("data" in res && collectionType !== SINGLE_TYPES) {
|
1923
1974
|
navigate(
|
1924
1975
|
{
|
1925
|
-
pathname: `../${
|
1976
|
+
pathname: `../${res.data.documentId}`,
|
1926
1977
|
search: rawQuery
|
1927
1978
|
},
|
1928
|
-
{ replace: true }
|
1979
|
+
{ replace: true, relative: "path" }
|
1929
1980
|
);
|
1930
1981
|
} else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
|
1931
1982
|
setErrors(formatValidationErrors(res.error));
|
@@ -3850,7 +3901,7 @@ const index = {
|
|
3850
3901
|
app.router.addRoute({
|
3851
3902
|
path: "content-manager/*",
|
3852
3903
|
lazy: async () => {
|
3853
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
3904
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-C6dxWYT7.js"));
|
3854
3905
|
return {
|
3855
3906
|
Component: Layout
|
3856
3907
|
};
|
@@ -3924,4 +3975,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
|
3924
3975
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
3925
3976
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
3926
3977
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
3927
|
-
//# sourceMappingURL=index-
|
3978
|
+
//# sourceMappingURL=index-CdT0kHZ8.js.map
|