@strapi/content-manager 0.0.0-experimental.baa6cf22298e591b4d52d8e59c60406d7a9f137f → 0.0.0-experimental.d53e940834bf72ddc725f1d2fd36dac9abec30cb
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-DiigqkCf.js → ComponentConfigurationPage-C-49MccQ.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-DiigqkCf.js.map → ComponentConfigurationPage-C-49MccQ.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-CYqQv0ne.mjs → ComponentConfigurationPage-DmwmiFQy.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-CYqQv0ne.mjs.map → ComponentConfigurationPage-DmwmiFQy.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BeeGw2RI.js → EditConfigurationPage-DjFJw56M.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BeeGw2RI.js.map → EditConfigurationPage-DjFJw56M.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BArY-b8_.mjs → EditConfigurationPage-JT3E7NZy.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BArY-b8_.mjs.map → EditConfigurationPage-JT3E7NZy.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-B8ETGsFo.mjs → EditViewPage-CPj61RMh.mjs} +46 -46
- package/dist/_chunks/EditViewPage-CPj61RMh.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-DZPDqo_G.js → EditViewPage-zT3fBr4Y.js} +45 -45
- package/dist/_chunks/EditViewPage-zT3fBr4Y.js.map +1 -0
- package/dist/_chunks/{Field-DnJMS8cB.js → Field-Boxf9Ajp.js} +372 -117
- package/dist/_chunks/Field-Boxf9Ajp.js.map +1 -0
- package/dist/_chunks/{Field-Dn4ThnFB.mjs → Field-dha5VnIQ.mjs} +373 -118
- package/dist/_chunks/Field-dha5VnIQ.mjs.map +1 -0
- package/dist/_chunks/{Form-DY721B6y.mjs → Form-DHrru2AV.mjs} +27 -28
- package/dist/_chunks/Form-DHrru2AV.mjs.map +1 -0
- package/dist/_chunks/{Form-DiTmWq2k.js → Form-y5g1SRsh.js} +25 -26
- package/dist/_chunks/Form-y5g1SRsh.js.map +1 -0
- package/dist/_chunks/{History-CwWN_uNp.mjs → History-Bru_KoeP.mjs} +101 -22
- package/dist/_chunks/History-Bru_KoeP.mjs.map +1 -0
- package/dist/_chunks/{History-DShoVAh0.js → History-CqN6K7SX.js} +100 -21
- package/dist/_chunks/History-CqN6K7SX.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-D062TiTL.mjs → ListConfigurationPage-D8wGABj0.mjs} +43 -45
- package/dist/_chunks/ListConfigurationPage-D8wGABj0.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-COIRGF5b.js → ListConfigurationPage-R_p-SbHZ.js} +42 -43
- package/dist/_chunks/ListConfigurationPage-R_p-SbHZ.js.map +1 -0
- package/dist/_chunks/{ListViewPage-BeHTsIr5.mjs → ListViewPage-SID6TRb9.mjs} +62 -67
- package/dist/_chunks/ListViewPage-SID6TRb9.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-CFuXPZ_r.js → ListViewPage-pEw_zug9.js} +60 -65
- package/dist/_chunks/ListViewPage-pEw_zug9.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-rdH0Zp0A.js → NoContentTypePage-C5dcQojD.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-rdH0Zp0A.js.map → NoContentTypePage-C5dcQojD.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-B_KLijrG.mjs → NoContentTypePage-CJ7UXwrQ.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-B_KLijrG.mjs.map → NoContentTypePage-CJ7UXwrQ.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BPU-v48V.mjs → NoPermissionsPage-B7syEq5E.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BPU-v48V.mjs.map → NoPermissionsPage-B7syEq5E.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-D8gbX1Y_.js → NoPermissionsPage-BtPrImPP.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-D8gbX1Y_.js.map → NoPermissionsPage-BtPrImPP.js.map} +1 -1
- package/dist/_chunks/{Relations-Bbz90ZWv.mjs → Relations-B9Crnhnn.mjs} +3 -3
- package/dist/_chunks/{Relations-Bbz90ZWv.mjs.map → Relations-B9Crnhnn.mjs.map} +1 -1
- package/dist/_chunks/{Relations-wHyjWWT5.js → Relations-DjTQ5kGB.js} +3 -3
- package/dist/_chunks/{Relations-wHyjWWT5.js.map → Relations-DjTQ5kGB.js.map} +1 -1
- package/dist/_chunks/{en-Dzv55oQw.mjs → en-Ux26r5pl.mjs} +4 -1
- package/dist/_chunks/{en-Dzv55oQw.mjs.map → en-Ux26r5pl.mjs.map} +1 -1
- package/dist/_chunks/{en-BN1bvFK7.js → en-fbKQxLGn.js} +4 -1
- package/dist/_chunks/{en-BN1bvFK7.js.map → en-fbKQxLGn.js.map} +1 -1
- package/dist/_chunks/{index-Dv4oDn11.mjs → index-DJXJw9V5.mjs} +172 -314
- package/dist/_chunks/index-DJXJw9V5.mjs.map +1 -0
- package/dist/_chunks/{index-BRHpg0az.js → index-DVPWZkbS.js} +143 -285
- package/dist/_chunks/index-DVPWZkbS.js.map +1 -0
- package/dist/_chunks/{layout-hInnLBbA.mjs → layout-Bau7ZfLV.mjs} +19 -14
- package/dist/_chunks/layout-Bau7ZfLV.mjs.map +1 -0
- package/dist/_chunks/{layout-pZc2Q3bK.js → layout-Dm6fbiQj.js} +18 -13
- package/dist/_chunks/layout-Dm6fbiQj.js.map +1 -0
- package/dist/_chunks/{relations-BcPI8XhI.mjs → relations-BH_kBSJ0.mjs} +2 -2
- package/dist/_chunks/{relations-BcPI8XhI.mjs.map → relations-BH_kBSJ0.mjs.map} +1 -1
- package/dist/_chunks/{relations-CVE30dYt.js → relations-CKnpRgrN.js} +2 -2
- package/dist/_chunks/{relations-CVE30dYt.js.map → relations-CKnpRgrN.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +8 -8
- package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +7 -3
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +4 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +2 -10
- package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
- package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
- package/dist/server/index.js +20 -15
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +20 -15
- 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/single-types.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.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-B8ETGsFo.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DZPDqo_G.js.map +0 -1
- package/dist/_chunks/Field-Dn4ThnFB.mjs.map +0 -1
- package/dist/_chunks/Field-DnJMS8cB.js.map +0 -1
- package/dist/_chunks/Form-DY721B6y.mjs.map +0 -1
- package/dist/_chunks/Form-DiTmWq2k.js.map +0 -1
- package/dist/_chunks/History-CwWN_uNp.mjs.map +0 -1
- package/dist/_chunks/History-DShoVAh0.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-COIRGF5b.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-D062TiTL.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-BeHTsIr5.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-CFuXPZ_r.js.map +0 -1
- package/dist/_chunks/index-BRHpg0az.js.map +0 -1
- package/dist/_chunks/index-Dv4oDn11.mjs.map +0 -1
- package/dist/_chunks/layout-hInnLBbA.mjs.map +0 -1
- package/dist/_chunks/layout-pZc2Q3bK.js.map +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ClockCounterClockwise, CrossCircle, More, WarningCircle, ListPlus, Pencil, Trash, Check, CheckCircle, ChevronRight, Duplicate, Feather } from "@strapi/icons";
|
1
|
+
import { ClockCounterClockwise, CrossCircle, More, WarningCircle, ListPlus, Pencil, Trash, Check, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, Feather } from "@strapi/icons";
|
2
2
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
3
3
|
import { useStrapiApp, useQueryParams, createContext, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useTracking, useForm, BackButton, DescriptionComponentRenderer, useTable, Table } from "@strapi/admin/strapi-admin";
|
4
4
|
import { stringify } from "qs";
|
@@ -6,7 +6,7 @@ import { useIntl } from "react-intl";
|
|
6
6
|
import { useNavigate, useParams, Navigate, useMatch, useLocation, Link, NavLink } from "react-router-dom";
|
7
7
|
import * as React from "react";
|
8
8
|
import { lazy } from "react";
|
9
|
-
import { Menu, VisuallyHidden, Flex, Typography, Dialog,
|
9
|
+
import { Button, Menu, VisuallyHidden, Flex, Box, Typography, Dialog, Modal, Radio, Status, SingleSelect, SingleSelectOption, Loader, IconButton, Tooltip, LinkButton } from "@strapi/design-system";
|
10
10
|
import { styled } from "styled-components";
|
11
11
|
import * as yup from "yup";
|
12
12
|
import { ValidationError } from "yup";
|
@@ -198,6 +198,7 @@ const contentManagerApi = adminApi.enhanceEndpoints({
|
|
198
198
|
]
|
199
199
|
});
|
200
200
|
const documentApi = contentManagerApi.injectEndpoints({
|
201
|
+
overrideExisting: true,
|
201
202
|
endpoints: (builder) => ({
|
202
203
|
autoCloneDocument: builder.mutation({
|
203
204
|
query: ({ model, sourceId, query }) => ({
|
@@ -927,12 +928,13 @@ const useDocumentActions = () => {
|
|
927
928
|
);
|
928
929
|
const [discardDocument] = useDiscardDocumentMutation();
|
929
930
|
const discard = React.useCallback(
|
930
|
-
async ({ collectionType, model, documentId }) => {
|
931
|
+
async ({ collectionType, model, documentId, params }) => {
|
931
932
|
try {
|
932
933
|
const res = await discardDocument({
|
933
934
|
collectionType,
|
934
935
|
model,
|
935
|
-
documentId
|
936
|
+
documentId,
|
937
|
+
params
|
936
938
|
});
|
937
939
|
if ("error" in res) {
|
938
940
|
toggleNotification({
|
@@ -1264,7 +1266,7 @@ const useDocumentActions = () => {
|
|
1264
1266
|
};
|
1265
1267
|
};
|
1266
1268
|
const ProtectedHistoryPage = lazy(
|
1267
|
-
() => import("./History-
|
1269
|
+
() => import("./History-Bru_KoeP.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1268
1270
|
);
|
1269
1271
|
const routes$1 = [
|
1270
1272
|
{
|
@@ -1277,31 +1279,31 @@ const routes$1 = [
|
|
1277
1279
|
}
|
1278
1280
|
];
|
1279
1281
|
const ProtectedEditViewPage = lazy(
|
1280
|
-
() => import("./EditViewPage-
|
1282
|
+
() => import("./EditViewPage-CPj61RMh.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1281
1283
|
);
|
1282
1284
|
const ProtectedListViewPage = lazy(
|
1283
|
-
() => import("./ListViewPage-
|
1285
|
+
() => import("./ListViewPage-SID6TRb9.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1284
1286
|
);
|
1285
1287
|
const ProtectedListConfiguration = lazy(
|
1286
|
-
() => import("./ListConfigurationPage-
|
1288
|
+
() => import("./ListConfigurationPage-D8wGABj0.mjs").then((mod) => ({
|
1287
1289
|
default: mod.ProtectedListConfiguration
|
1288
1290
|
}))
|
1289
1291
|
);
|
1290
1292
|
const ProtectedEditConfigurationPage = lazy(
|
1291
|
-
() => import("./EditConfigurationPage-
|
1293
|
+
() => import("./EditConfigurationPage-JT3E7NZy.mjs").then((mod) => ({
|
1292
1294
|
default: mod.ProtectedEditConfigurationPage
|
1293
1295
|
}))
|
1294
1296
|
);
|
1295
1297
|
const ProtectedComponentConfigurationPage = lazy(
|
1296
|
-
() => import("./ComponentConfigurationPage-
|
1298
|
+
() => import("./ComponentConfigurationPage-DmwmiFQy.mjs").then((mod) => ({
|
1297
1299
|
default: mod.ProtectedComponentConfigurationPage
|
1298
1300
|
}))
|
1299
1301
|
);
|
1300
1302
|
const NoPermissions = lazy(
|
1301
|
-
() => import("./NoPermissionsPage-
|
1303
|
+
() => import("./NoPermissionsPage-B7syEq5E.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1302
1304
|
);
|
1303
1305
|
const NoContentType = lazy(
|
1304
|
-
() => import("./NoContentTypePage-
|
1306
|
+
() => import("./NoContentTypePage-CJ7UXwrQ.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1305
1307
|
);
|
1306
1308
|
const CollectionTypePages = () => {
|
1307
1309
|
const { collectionType } = useParams();
|
@@ -1508,7 +1510,7 @@ const DocumentActionsMenu = ({
|
|
1508
1510
|
display: "block",
|
1509
1511
|
children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", gap: 4, children: [
|
1510
1512
|
/* @__PURE__ */ jsxs(Flex, { color: convertActionVariantToColor(action.variant), gap: 2, tag: "span", children: [
|
1511
|
-
action.icon,
|
1513
|
+
/* @__PURE__ */ jsx(Box, { tag: "span", color: convertActionVariantToIconColor(action.variant), children: action.icon }),
|
1512
1514
|
action.label
|
1513
1515
|
] }),
|
1514
1516
|
action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsx(
|
@@ -1569,6 +1571,18 @@ const convertActionVariantToColor = (variant = "secondary") => {
|
|
1569
1571
|
return "primary600";
|
1570
1572
|
}
|
1571
1573
|
};
|
1574
|
+
const convertActionVariantToIconColor = (variant = "secondary") => {
|
1575
|
+
switch (variant) {
|
1576
|
+
case "danger":
|
1577
|
+
return "danger600";
|
1578
|
+
case "secondary":
|
1579
|
+
return "neutral500";
|
1580
|
+
case "success":
|
1581
|
+
return "success600";
|
1582
|
+
default:
|
1583
|
+
return "primary600";
|
1584
|
+
}
|
1585
|
+
};
|
1572
1586
|
const DocumentActionConfirmDialog = ({
|
1573
1587
|
onClose,
|
1574
1588
|
onCancel,
|
@@ -1591,22 +1605,20 @@ const DocumentActionConfirmDialog = ({
|
|
1591
1605
|
}
|
1592
1606
|
onClose();
|
1593
1607
|
};
|
1594
|
-
return /* @__PURE__ */
|
1595
|
-
/* @__PURE__ */ jsx(
|
1596
|
-
/* @__PURE__ */ jsx(
|
1597
|
-
|
1598
|
-
{
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
)
|
1609
|
-
] });
|
1608
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(Dialog.Content, { children: [
|
1609
|
+
/* @__PURE__ */ jsx(Dialog.Header, { children: title }),
|
1610
|
+
/* @__PURE__ */ jsx(Dialog.Body, { children: content }),
|
1611
|
+
/* @__PURE__ */ jsxs(Dialog.Footer, { children: [
|
1612
|
+
/* @__PURE__ */ jsx(Dialog.Cancel, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", children: formatMessage({
|
1613
|
+
id: "app.components.Button.cancel",
|
1614
|
+
defaultMessage: "Cancel"
|
1615
|
+
}) }) }),
|
1616
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleConfirm, variant, children: formatMessage({
|
1617
|
+
id: "app.components.Button.confirm",
|
1618
|
+
defaultMessage: "Confirm"
|
1619
|
+
}) })
|
1620
|
+
] })
|
1621
|
+
] }) });
|
1610
1622
|
};
|
1611
1623
|
const DocumentActionModal = ({
|
1612
1624
|
isOpen,
|
@@ -1616,34 +1628,17 @@ const DocumentActionModal = ({
|
|
1616
1628
|
content: Content,
|
1617
1629
|
onModalClose
|
1618
1630
|
}) => {
|
1619
|
-
const id = React.useId();
|
1620
|
-
if (!isOpen) {
|
1621
|
-
return null;
|
1622
|
-
}
|
1623
1631
|
const handleClose = () => {
|
1624
1632
|
if (onClose) {
|
1625
1633
|
onClose();
|
1626
1634
|
}
|
1627
1635
|
onModalClose();
|
1628
1636
|
};
|
1629
|
-
return /* @__PURE__ */
|
1630
|
-
/* @__PURE__ */ jsx(
|
1631
|
-
|
1632
|
-
/* @__PURE__ */ jsx(
|
1633
|
-
|
1634
|
-
{
|
1635
|
-
paddingTop: 4,
|
1636
|
-
paddingBottom: 4,
|
1637
|
-
paddingLeft: 5,
|
1638
|
-
paddingRight: 5,
|
1639
|
-
borderWidth: "1px 0 0 0",
|
1640
|
-
borderStyle: "solid",
|
1641
|
-
borderColor: "neutral150",
|
1642
|
-
background: "neutral100",
|
1643
|
-
children: typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer
|
1644
|
-
}
|
1645
|
-
)
|
1646
|
-
] });
|
1637
|
+
return /* @__PURE__ */ jsx(Modal.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(Modal.Content, { children: [
|
1638
|
+
/* @__PURE__ */ jsx(Modal.Header, { children: /* @__PURE__ */ jsx(Modal.Title, { children: title }) }),
|
1639
|
+
typeof Content === "function" ? /* @__PURE__ */ jsx(Content, { onClose: handleClose }) : /* @__PURE__ */ jsx(Modal.Body, { children: Content }),
|
1640
|
+
typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer
|
1641
|
+
] }) });
|
1647
1642
|
};
|
1648
1643
|
const PublishAction$1 = ({
|
1649
1644
|
activeTab,
|
@@ -1861,10 +1856,8 @@ const UnpublishAction$1 = ({
|
|
1861
1856
|
const { toggleNotification } = useNotification();
|
1862
1857
|
const [shouldKeepDraft, setShouldKeepDraft] = React.useState(true);
|
1863
1858
|
const isDocumentModified = document?.status === "modified";
|
1864
|
-
const handleChange = (
|
1865
|
-
|
1866
|
-
setShouldKeepDraft(e.target.value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
|
1867
|
-
}
|
1859
|
+
const handleChange = (value) => {
|
1860
|
+
setShouldKeepDraft(value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
|
1868
1861
|
};
|
1869
1862
|
if (!schema?.options?.draftAndPublish) {
|
1870
1863
|
return null;
|
@@ -1914,40 +1907,24 @@ const UnpublishAction$1 = ({
|
|
1914
1907
|
}) })
|
1915
1908
|
] }),
|
1916
1909
|
/* @__PURE__ */ jsxs(
|
1917
|
-
|
1910
|
+
Radio.Group,
|
1918
1911
|
{
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1912
|
+
defaultValue: UNPUBLISH_DRAFT_OPTIONS.KEEP,
|
1913
|
+
name: "discard-options",
|
1914
|
+
"aria-label": formatMessage({
|
1915
|
+
id: "content-manager.actions.unpublish.dialog.radio-label",
|
1916
|
+
defaultMessage: "Choose an option to unpublish the document."
|
1917
|
+
}),
|
1918
|
+
onValueChange: handleChange,
|
1925
1919
|
children: [
|
1926
|
-
/* @__PURE__ */ jsx(
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
id: "content-manager.actions.unpublish.dialog.option.keep-draft",
|
1935
|
-
defaultMessage: "Keep draft"
|
1936
|
-
})
|
1937
|
-
}
|
1938
|
-
),
|
1939
|
-
/* @__PURE__ */ jsx(
|
1940
|
-
Radio,
|
1941
|
-
{
|
1942
|
-
checked: !shouldKeepDraft,
|
1943
|
-
value: UNPUBLISH_DRAFT_OPTIONS.DISCARD,
|
1944
|
-
name: "discard-options",
|
1945
|
-
children: formatMessage({
|
1946
|
-
id: "content-manager.actions.unpublish.dialog.option.replace-draft",
|
1947
|
-
defaultMessage: "Replace draft"
|
1948
|
-
})
|
1949
|
-
}
|
1950
|
-
)
|
1920
|
+
/* @__PURE__ */ jsx(Radio.Item, { checked: shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.KEEP, children: formatMessage({
|
1921
|
+
id: "content-manager.actions.unpublish.dialog.option.keep-draft",
|
1922
|
+
defaultMessage: "Keep draft"
|
1923
|
+
}) }),
|
1924
|
+
/* @__PURE__ */ jsx(Radio.Item, { checked: !shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.DISCARD, children: formatMessage({
|
1925
|
+
id: "content-manager.actions.unpublish.dialog.option.replace-draft",
|
1926
|
+
defaultMessage: "Replace draft"
|
1927
|
+
}) })
|
1951
1928
|
]
|
1952
1929
|
}
|
1953
1930
|
)
|
@@ -2800,30 +2777,23 @@ const ConfirmBulkActionDialog = ({
|
|
2800
2777
|
endAction
|
2801
2778
|
}) => {
|
2802
2779
|
const { formatMessage } = useIntl();
|
2803
|
-
return /* @__PURE__ */ jsxs(
|
2804
|
-
Dialog,
|
2805
|
-
|
2806
|
-
|
2807
|
-
|
2808
|
-
|
2809
|
-
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
2813
|
-
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
}) }),
|
2821
|
-
endAction
|
2822
|
-
}
|
2823
|
-
)
|
2824
|
-
]
|
2825
|
-
}
|
2826
|
-
);
|
2780
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { onOpenChange: onToggleDialog, open: isOpen, children: /* @__PURE__ */ jsxs(Dialog.Content, { children: [
|
2781
|
+
/* @__PURE__ */ jsx(Dialog.Header, { children: formatMessage({
|
2782
|
+
id: "app.components.ConfirmDialog.title",
|
2783
|
+
defaultMessage: "Confirmation"
|
2784
|
+
}) }),
|
2785
|
+
/* @__PURE__ */ jsx(Dialog.Body, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
2786
|
+
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
|
2787
|
+
dialogBody
|
2788
|
+
] }) }),
|
2789
|
+
/* @__PURE__ */ jsxs(Dialog.Footer, { children: [
|
2790
|
+
/* @__PURE__ */ jsx(Dialog.Cancel, { children: /* @__PURE__ */ jsx(Button, { fullWidth: true, onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
|
2791
|
+
id: "app.components.Button.cancel",
|
2792
|
+
defaultMessage: "Cancel"
|
2793
|
+
}) }) }),
|
2794
|
+
endAction
|
2795
|
+
] })
|
2796
|
+
] }) });
|
2827
2797
|
};
|
2828
2798
|
const BoldChunk$1 = (chunks) => /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: chunks });
|
2829
2799
|
const ConfirmDialogPublishAll = ({
|
@@ -2883,7 +2853,7 @@ const ConfirmDialogPublishAll = ({
|
|
2883
2853
|
defaultMessage: "Are you sure you want to publish these entries?"
|
2884
2854
|
})
|
2885
2855
|
] }),
|
2886
|
-
schema?.pluginOptions && "i18n" in schema.pluginOptions && schema?.pluginOptions.i18n && /* @__PURE__ */ jsx(Typography, { textColor: "danger500", children: formatMessage(
|
2856
|
+
schema?.pluginOptions && "i18n" in schema.pluginOptions && schema?.pluginOptions.i18n && /* @__PURE__ */ jsx(Typography, { textColor: "danger500", textAlign: "center", children: formatMessage(
|
2887
2857
|
{
|
2888
2858
|
id: getTranslation("Settings.list.actions.publishAdditionalInfos"),
|
2889
2859
|
defaultMessage: "This will publish the active locale versions <em>(from Internationalization)</em>"
|
@@ -2930,14 +2900,21 @@ const formatErrorMessages = (errors, parentKey, formatMessage) => {
|
|
2930
2900
|
} else {
|
2931
2901
|
messages.push(...formatErrorMessages(value, currentKey, formatMessage));
|
2932
2902
|
}
|
2903
|
+
} else {
|
2904
|
+
messages.push(
|
2905
|
+
formatMessage(
|
2906
|
+
{
|
2907
|
+
id: `${value}.withField`,
|
2908
|
+
defaultMessage: value
|
2909
|
+
},
|
2910
|
+
{ field: currentKey }
|
2911
|
+
)
|
2912
|
+
);
|
2933
2913
|
}
|
2934
2914
|
});
|
2935
2915
|
return messages;
|
2936
2916
|
};
|
2937
|
-
const EntryValidationText = ({
|
2938
|
-
validationErrors,
|
2939
|
-
isPublished = false
|
2940
|
-
}) => {
|
2917
|
+
const EntryValidationText = ({ validationErrors, status }) => {
|
2941
2918
|
const { formatMessage } = useIntl();
|
2942
2919
|
if (validationErrors) {
|
2943
2920
|
const validationErrorsMessages = formatErrorMessages(validationErrors, "", formatMessage).join(
|
@@ -2948,7 +2925,7 @@ const EntryValidationText = ({
|
|
2948
2925
|
/* @__PURE__ */ jsx(Tooltip, { description: validationErrorsMessages, children: /* @__PURE__ */ jsx(TypographyMaxWidth, { textColor: "danger600", variant: "omega", fontWeight: "semiBold", ellipsis: true, children: validationErrorsMessages }) })
|
2949
2926
|
] });
|
2950
2927
|
}
|
2951
|
-
if (
|
2928
|
+
if (status === "published") {
|
2952
2929
|
return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
2953
2930
|
/* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
|
2954
2931
|
/* @__PURE__ */ jsx(Typography, { textColor: "success600", fontWeight: "bold", children: formatMessage({
|
@@ -2957,6 +2934,15 @@ const EntryValidationText = ({
|
|
2957
2934
|
}) })
|
2958
2935
|
] });
|
2959
2936
|
}
|
2937
|
+
if (status === "modified") {
|
2938
|
+
return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
2939
|
+
/* @__PURE__ */ jsx(ArrowsCounterClockwise, { fill: "alternative600" }),
|
2940
|
+
/* @__PURE__ */ jsx(Typography, { children: formatMessage({
|
2941
|
+
id: "content-manager.bulk-publish.modified",
|
2942
|
+
defaultMessage: "Ready to publish changes"
|
2943
|
+
}) })
|
2944
|
+
] });
|
2945
|
+
}
|
2960
2946
|
return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
2961
2947
|
/* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
|
2962
2948
|
/* @__PURE__ */ jsx(Typography, { children: formatMessage({
|
@@ -3008,7 +2994,7 @@ const SelectedEntriesTableContent = ({
|
|
3008
2994
|
EntryValidationText,
|
3009
2995
|
{
|
3010
2996
|
validationErrors: validationErrors[row.documentId],
|
3011
|
-
|
2997
|
+
status: row.status
|
3012
2998
|
}
|
3013
2999
|
) }),
|
3014
3000
|
/* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(
|
@@ -3097,18 +3083,16 @@ const SelectedEntriesModalContent = ({
|
|
3097
3083
|
const [isDialogOpen, setIsDialogOpen] = React.useState(false);
|
3098
3084
|
const { publishMany: bulkPublishAction } = useDocumentActions();
|
3099
3085
|
const [, { isLoading: isSubmittingForm }] = usePublishManyDocumentsMutation();
|
3100
|
-
const
|
3101
|
-
const
|
3102
|
-
|
3103
|
-
|
3104
|
-
|
3105
|
-
return acc;
|
3106
|
-
}, []);
|
3086
|
+
const selectedRows = useTable("publishAction", (state) => state.selectedRows);
|
3087
|
+
const selectedEntries = rows.filter(
|
3088
|
+
(entry) => selectedRows.some((selectedEntry) => selectedEntry.documentId === entry.documentId)
|
3089
|
+
);
|
3090
|
+
const entriesToPublish = selectedEntries.filter((entry) => !validationErrors[entry.documentId]).map((entry) => entry.documentId);
|
3107
3091
|
const selectedEntriesWithErrorsCount = selectedEntries.filter(
|
3108
3092
|
({ documentId }) => validationErrors[documentId]
|
3109
3093
|
).length;
|
3110
3094
|
const selectedEntriesPublished = selectedEntries.filter(
|
3111
|
-
({
|
3095
|
+
({ status }) => status === "published"
|
3112
3096
|
).length;
|
3113
3097
|
const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublished;
|
3114
3098
|
const toggleDialog = () => setIsDialogOpen((prev) => !prev);
|
@@ -3151,7 +3135,7 @@ const SelectedEntriesModalContent = ({
|
|
3151
3135
|
);
|
3152
3136
|
};
|
3153
3137
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
3154
|
-
/* @__PURE__ */ jsxs(
|
3138
|
+
/* @__PURE__ */ jsxs(Modal.Body, { children: [
|
3155
3139
|
/* @__PURE__ */ jsx(Typography, { children: getFormattedCountMessage() }),
|
3156
3140
|
/* @__PURE__ */ jsx(Box, { marginTop: 5, children: /* @__PURE__ */ jsx(
|
3157
3141
|
SelectedEntriesTableContent,
|
@@ -3163,27 +3147,24 @@ const SelectedEntriesModalContent = ({
|
|
3163
3147
|
}
|
3164
3148
|
) })
|
3165
3149
|
] }),
|
3166
|
-
/* @__PURE__ */
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
}) }),
|
3173
|
-
|
3174
|
-
|
3175
|
-
|
3176
|
-
|
3177
|
-
|
3178
|
-
|
3179
|
-
|
3180
|
-
|
3181
|
-
|
3182
|
-
|
3183
|
-
|
3184
|
-
] })
|
3185
|
-
}
|
3186
|
-
),
|
3150
|
+
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
3151
|
+
/* @__PURE__ */ jsx(Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
|
3152
|
+
id: "app.components.Button.cancel",
|
3153
|
+
defaultMessage: "Cancel"
|
3154
|
+
}) }),
|
3155
|
+
/* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
3156
|
+
/* @__PURE__ */ jsx(Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
|
3157
|
+
/* @__PURE__ */ jsx(
|
3158
|
+
Button,
|
3159
|
+
{
|
3160
|
+
onClick: toggleDialog,
|
3161
|
+
disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
|
3162
|
+
loading: isSubmittingForm,
|
3163
|
+
children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
|
3164
|
+
}
|
3165
|
+
)
|
3166
|
+
] })
|
3167
|
+
] }),
|
3187
3168
|
/* @__PURE__ */ jsx(
|
3188
3169
|
ConfirmDialogPublishAll,
|
3189
3170
|
{
|
@@ -3248,143 +3229,10 @@ const BulkActionsRenderer = () => {
|
|
3248
3229
|
documents: selectedRows
|
3249
3230
|
},
|
3250
3231
|
descriptions: plugins["content-manager"].apis.getBulkActions(),
|
3251
|
-
children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsx(
|
3232
|
+
children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsx(DocumentActionButton, { ...action }, action.id))
|
3252
3233
|
}
|
3253
3234
|
) });
|
3254
3235
|
};
|
3255
|
-
const BulkActionAction = (action) => {
|
3256
|
-
const [dialogId, setDialogId] = React.useState(null);
|
3257
|
-
const { toggleNotification } = useNotification();
|
3258
|
-
const handleClick = (action2) => (e) => {
|
3259
|
-
const { onClick, dialog, id } = action2;
|
3260
|
-
if (onClick) {
|
3261
|
-
onClick(e);
|
3262
|
-
}
|
3263
|
-
if (dialog) {
|
3264
|
-
switch (dialog.type) {
|
3265
|
-
case "notification":
|
3266
|
-
toggleNotification({
|
3267
|
-
title: dialog.title,
|
3268
|
-
message: dialog.content,
|
3269
|
-
type: dialog.status,
|
3270
|
-
timeout: dialog.timeout,
|
3271
|
-
onClose: dialog.onClose
|
3272
|
-
});
|
3273
|
-
break;
|
3274
|
-
case "dialog":
|
3275
|
-
case "modal": {
|
3276
|
-
e.preventDefault();
|
3277
|
-
setDialogId(id);
|
3278
|
-
}
|
3279
|
-
}
|
3280
|
-
}
|
3281
|
-
};
|
3282
|
-
const handleClose = () => {
|
3283
|
-
setDialogId(null);
|
3284
|
-
if (action.dialog?.type === "modal" && action.dialog?.onClose) {
|
3285
|
-
action.dialog.onClose();
|
3286
|
-
}
|
3287
|
-
};
|
3288
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
3289
|
-
/* @__PURE__ */ jsx(
|
3290
|
-
Button,
|
3291
|
-
{
|
3292
|
-
disabled: action.disabled,
|
3293
|
-
startIcon: action.icon,
|
3294
|
-
variant: action.variant,
|
3295
|
-
onClick: handleClick(action),
|
3296
|
-
children: action.label
|
3297
|
-
}
|
3298
|
-
),
|
3299
|
-
action.dialog?.type === "dialog" ? /* @__PURE__ */ jsx(
|
3300
|
-
BulkActionConfirmDialog,
|
3301
|
-
{
|
3302
|
-
...action.dialog,
|
3303
|
-
variant: action.variant,
|
3304
|
-
isOpen: dialogId === action.id,
|
3305
|
-
onClose: handleClose
|
3306
|
-
}
|
3307
|
-
) : null,
|
3308
|
-
action.dialog?.type === "modal" ? /* @__PURE__ */ jsx(
|
3309
|
-
BulkActionModal,
|
3310
|
-
{
|
3311
|
-
...action.dialog,
|
3312
|
-
onModalClose: handleClose,
|
3313
|
-
isOpen: dialogId === action.id
|
3314
|
-
}
|
3315
|
-
) : null
|
3316
|
-
] });
|
3317
|
-
};
|
3318
|
-
const BulkActionConfirmDialog = ({
|
3319
|
-
onClose,
|
3320
|
-
onCancel,
|
3321
|
-
onConfirm,
|
3322
|
-
title,
|
3323
|
-
content,
|
3324
|
-
confirmButton,
|
3325
|
-
isOpen,
|
3326
|
-
variant = "secondary"
|
3327
|
-
}) => {
|
3328
|
-
const { formatMessage } = useIntl();
|
3329
|
-
const handleClose = async () => {
|
3330
|
-
if (onCancel) {
|
3331
|
-
await onCancel();
|
3332
|
-
}
|
3333
|
-
onClose();
|
3334
|
-
};
|
3335
|
-
const handleConfirm = async () => {
|
3336
|
-
if (onConfirm) {
|
3337
|
-
await onConfirm();
|
3338
|
-
}
|
3339
|
-
onClose();
|
3340
|
-
};
|
3341
|
-
return /* @__PURE__ */ jsxs(Dialog, { isOpen, title, onClose: handleClose, children: [
|
3342
|
-
/* @__PURE__ */ jsx(DialogBody, { icon: /* @__PURE__ */ jsx(WarningCircle, {}), children: content }),
|
3343
|
-
/* @__PURE__ */ jsx(
|
3344
|
-
DialogFooter,
|
3345
|
-
{
|
3346
|
-
startAction: /* @__PURE__ */ jsx(Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
|
3347
|
-
id: "app.components.Button.cancel",
|
3348
|
-
defaultMessage: "Cancel"
|
3349
|
-
}) }),
|
3350
|
-
endAction: /* @__PURE__ */ jsx(
|
3351
|
-
Button,
|
3352
|
-
{
|
3353
|
-
onClick: handleConfirm,
|
3354
|
-
variant: variant === "danger-light" ? variant : "secondary",
|
3355
|
-
startIcon: variant === "danger-light" ? /* @__PURE__ */ jsx(Trash, {}) : /* @__PURE__ */ jsx(Check, {}),
|
3356
|
-
children: confirmButton ? confirmButton : formatMessage({
|
3357
|
-
id: "app.components.Button.confirm",
|
3358
|
-
defaultMessage: "Confirm"
|
3359
|
-
})
|
3360
|
-
}
|
3361
|
-
)
|
3362
|
-
}
|
3363
|
-
)
|
3364
|
-
] });
|
3365
|
-
};
|
3366
|
-
const BulkActionModal = ({
|
3367
|
-
isOpen,
|
3368
|
-
title,
|
3369
|
-
onClose,
|
3370
|
-
content: Content,
|
3371
|
-
onModalClose
|
3372
|
-
}) => {
|
3373
|
-
const id = React.useId();
|
3374
|
-
if (!isOpen) {
|
3375
|
-
return null;
|
3376
|
-
}
|
3377
|
-
const handleClose = () => {
|
3378
|
-
if (onClose) {
|
3379
|
-
onClose();
|
3380
|
-
}
|
3381
|
-
onModalClose();
|
3382
|
-
};
|
3383
|
-
return /* @__PURE__ */ jsxs(ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
|
3384
|
-
/* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
|
3385
|
-
/* @__PURE__ */ jsx(Content, { onClose: handleClose })
|
3386
|
-
] });
|
3387
|
-
};
|
3388
3236
|
const DeleteAction = ({ documents, model }) => {
|
3389
3237
|
const { formatMessage } = useIntl();
|
3390
3238
|
const { schema: contentType } = useDoc();
|
@@ -3417,6 +3265,7 @@ const DeleteAction = ({ documents, model }) => {
|
|
3417
3265
|
defaultMessage: "Confirmation"
|
3418
3266
|
}),
|
3419
3267
|
content: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
3268
|
+
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
|
3420
3269
|
/* @__PURE__ */ jsx(Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
|
3421
3270
|
id: "popUpWarning.bodyMessage.contentType.delete.all",
|
3422
3271
|
defaultMessage: "Are you sure you want to delete these entries?"
|
@@ -3453,7 +3302,7 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3453
3302
|
selectRow([]);
|
3454
3303
|
}
|
3455
3304
|
};
|
3456
|
-
const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published");
|
3305
|
+
const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
|
3457
3306
|
if (!showUnpublishButton)
|
3458
3307
|
return null;
|
3459
3308
|
return {
|
@@ -3466,6 +3315,7 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3466
3315
|
defaultMessage: "Confirmation"
|
3467
3316
|
}),
|
3468
3317
|
content: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
3318
|
+
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
|
3469
3319
|
/* @__PURE__ */ jsx(Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
|
3470
3320
|
id: "popUpWarning.bodyMessage.contentType.unpublish.all",
|
3471
3321
|
defaultMessage: "Are you sure you want to unpublish these entries?"
|
@@ -3851,15 +3701,24 @@ const index = {
|
|
3851
3701
|
defaultMessage: "Content Manager"
|
3852
3702
|
},
|
3853
3703
|
permissions: [],
|
3854
|
-
Component: () => import("./layout-hInnLBbA.mjs").then((mod) => ({ default: mod.Layout })),
|
3855
3704
|
position: 1
|
3856
3705
|
});
|
3706
|
+
app.router.addRoute({
|
3707
|
+
path: "content-manager/*",
|
3708
|
+
lazy: async () => {
|
3709
|
+
const { Layout } = await import("./layout-Bau7ZfLV.mjs");
|
3710
|
+
return {
|
3711
|
+
Component: Layout
|
3712
|
+
};
|
3713
|
+
},
|
3714
|
+
children: routes
|
3715
|
+
});
|
3857
3716
|
app.registerPlugin(cm.config);
|
3858
3717
|
},
|
3859
3718
|
async registerTrads({ locales }) {
|
3860
3719
|
const importedTrads = await Promise.all(
|
3861
3720
|
locales.map((locale) => {
|
3862
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-
|
3721
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-Ux26r5pl.mjs"), "./translations/es.json": () => import("./es-CeXiYflN.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr-CD9VFbPM.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-CtsUxOvk.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
|
3863
3722
|
return {
|
3864
3723
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
3865
3724
|
locale
|
@@ -3880,43 +3739,42 @@ export {
|
|
3880
3739
|
BulkActionsRenderer as B,
|
3881
3740
|
COLLECTION_TYPES as C,
|
3882
3741
|
DocumentStatus as D,
|
3883
|
-
|
3884
|
-
|
3885
|
-
|
3742
|
+
DEFAULT_SETTINGS as E,
|
3743
|
+
convertEditLayoutToFieldLayouts as F,
|
3744
|
+
useDocument as G,
|
3886
3745
|
HOOKS as H,
|
3887
3746
|
InjectionZone as I,
|
3888
|
-
|
3889
|
-
|
3890
|
-
useDocumentActions as L,
|
3747
|
+
index as J,
|
3748
|
+
useDocumentActions as K,
|
3891
3749
|
Panels as P,
|
3892
3750
|
RelativeTime as R,
|
3893
3751
|
SINGLE_TYPES as S,
|
3894
3752
|
TableActions as T,
|
3895
|
-
|
3896
|
-
|
3897
|
-
|
3898
|
-
|
3899
|
-
|
3900
|
-
|
3753
|
+
useGetInitialDataQuery as a,
|
3754
|
+
useGetAllContentTypeSettingsQuery as b,
|
3755
|
+
useDoc as c,
|
3756
|
+
buildValidParams as d,
|
3757
|
+
contentManagerApi as e,
|
3758
|
+
useDocumentRBAC as f,
|
3901
3759
|
getTranslation as g,
|
3902
|
-
|
3903
|
-
|
3904
|
-
|
3905
|
-
|
3906
|
-
|
3907
|
-
|
3908
|
-
|
3760
|
+
useDocumentLayout as h,
|
3761
|
+
createYupSchema as i,
|
3762
|
+
Header as j,
|
3763
|
+
PERMISSIONS as k,
|
3764
|
+
DocumentRBAC as l,
|
3765
|
+
DOCUMENT_META_FIELDS as m,
|
3766
|
+
useDocLayout as n,
|
3909
3767
|
useGetContentTypeConfigurationQuery as o,
|
3910
3768
|
CREATOR_FIELDS as p,
|
3911
3769
|
getMainField as q,
|
3912
|
-
|
3770
|
+
getDisplayName as r,
|
3913
3771
|
setInitialData as s,
|
3914
|
-
|
3915
|
-
|
3916
|
-
|
3917
|
-
|
3918
|
-
|
3919
|
-
|
3920
|
-
|
3921
|
-
};
|
3922
|
-
//# sourceMappingURL=index-
|
3772
|
+
checkIfAttributeIsDisplayable as t,
|
3773
|
+
useContentTypeSchema as u,
|
3774
|
+
useGetAllDocumentsQuery as v,
|
3775
|
+
convertListLayoutToFieldLayouts as w,
|
3776
|
+
capitalise as x,
|
3777
|
+
useUpdateContentTypeConfigurationMutation as y,
|
3778
|
+
extractContentTypeComponents as z
|
3779
|
+
};
|
3780
|
+
//# sourceMappingURL=index-DJXJw9V5.mjs.map
|