@strapi/content-manager 0.0.0-experimental.7afdc9b682bc83a53ce599c4fb7c9e4506b31fff → 0.0.0-experimental.9612538209f3c68285c5dea8fe26f96e7e470afd

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.
Files changed (91) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-DJcn1DrO.js → ComponentConfigurationPage-BvHtG7uH.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-DJcn1DrO.js.map → ComponentConfigurationPage-BvHtG7uH.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-CR5XdR33.mjs → ComponentConfigurationPage-DHNM3YBz.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-CR5XdR33.mjs.map → ComponentConfigurationPage-DHNM3YBz.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-DmCIb4kD.mjs → EditConfigurationPage-Cp6HAEzN.mjs} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-DmCIb4kD.mjs.map → EditConfigurationPage-Cp6HAEzN.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-tDtWj7R2.js → EditConfigurationPage-DOmfCEMo.js} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-tDtWj7R2.js.map → EditConfigurationPage-DOmfCEMo.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-CoQEnFlC.js → EditViewPage-BqNpC6hO.js} +45 -45
  10. package/dist/_chunks/EditViewPage-BqNpC6hO.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-DvaV7U9b.mjs → EditViewPage-BtkEx339.mjs} +46 -46
  12. package/dist/_chunks/EditViewPage-BtkEx339.mjs.map +1 -0
  13. package/dist/_chunks/{Field-Cz_J9551.mjs → Field-R5NbffTB.mjs} +373 -118
  14. package/dist/_chunks/Field-R5NbffTB.mjs.map +1 -0
  15. package/dist/_chunks/{Field-ZdrmmQ4Y.js → Field-lsPFnAmH.js} +372 -117
  16. package/dist/_chunks/Field-lsPFnAmH.js.map +1 -0
  17. package/dist/_chunks/{Form-Dxmihyw8.mjs → Form-BHmXSfyy.mjs} +27 -28
  18. package/dist/_chunks/Form-BHmXSfyy.mjs.map +1 -0
  19. package/dist/_chunks/{Form-Bpig5rch.js → Form-CcGboku8.js} +25 -26
  20. package/dist/_chunks/Form-CcGboku8.js.map +1 -0
  21. package/dist/_chunks/{History-BfX6XmZK.js → History-Bsud8jwh.js} +116 -22
  22. package/dist/_chunks/History-Bsud8jwh.js.map +1 -0
  23. package/dist/_chunks/{History-BZP8n7KT.mjs → History-ByUPL3T3.mjs} +117 -23
  24. package/dist/_chunks/History-ByUPL3T3.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-DxKuVkKz.mjs → ListConfigurationPage-Bm5HACXf.mjs} +43 -45
  26. package/dist/_chunks/ListConfigurationPage-Bm5HACXf.mjs.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-B3CXj8PY.js → ListConfigurationPage-DiT463qx.js} +42 -43
  28. package/dist/_chunks/ListConfigurationPage-DiT463qx.js.map +1 -0
  29. package/dist/_chunks/{ListViewPage-Bk9VO__I.js → ListViewPage-CsrC9L_d.js} +59 -67
  30. package/dist/_chunks/ListViewPage-CsrC9L_d.js.map +1 -0
  31. package/dist/_chunks/{ListViewPage-D5D3tVPq.mjs → ListViewPage-JSyNAAYu.mjs} +60 -68
  32. package/dist/_chunks/ListViewPage-JSyNAAYu.mjs.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-DsB2F7Z1.js → NoContentTypePage-Bsvng4II.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-DsB2F7Z1.js.map → NoContentTypePage-Bsvng4II.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DnMeuQCj.mjs → NoContentTypePage-CsrQUpBE.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DnMeuQCj.mjs.map → NoContentTypePage-CsrQUpBE.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-BQDM64_b.js → NoPermissionsPage-CdHNJtEf.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-BQDM64_b.js.map → NoPermissionsPage-CdHNJtEf.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-OyoME_Tf.mjs → NoPermissionsPage-DNmf_pj0.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-OyoME_Tf.mjs.map → NoPermissionsPage-DNmf_pj0.mjs.map} +1 -1
  41. package/dist/_chunks/{Relations-B6B3A3mb.js → Relations-CghaPv2D.js} +3 -3
  42. package/dist/_chunks/{Relations-B6B3A3mb.js.map → Relations-CghaPv2D.js.map} +1 -1
  43. package/dist/_chunks/{Relations-BOYZmuWy.mjs → Relations-u8-37jK0.mjs} +3 -3
  44. package/dist/_chunks/{Relations-BOYZmuWy.mjs.map → Relations-u8-37jK0.mjs.map} +1 -1
  45. package/dist/_chunks/{en-Dzv55oQw.mjs → en-Ux26r5pl.mjs} +4 -1
  46. package/dist/_chunks/{en-Dzv55oQw.mjs.map → en-Ux26r5pl.mjs.map} +1 -1
  47. package/dist/_chunks/{en-BN1bvFK7.js → en-fbKQxLGn.js} +4 -1
  48. package/dist/_chunks/{en-BN1bvFK7.js.map → en-fbKQxLGn.js.map} +1 -1
  49. package/dist/_chunks/{index-DzN3kBgx.js → index-BOZx6IMg.js} +156 -283
  50. package/dist/_chunks/index-BOZx6IMg.js.map +1 -0
  51. package/dist/_chunks/{index-VHviNMeW.mjs → index-CaE6NG4a.mjs} +185 -312
  52. package/dist/_chunks/index-CaE6NG4a.mjs.map +1 -0
  53. package/dist/_chunks/{layout-CPn1PM6x.mjs → layout-Bx7svTbY.mjs} +21 -16
  54. package/dist/_chunks/layout-Bx7svTbY.mjs.map +1 -0
  55. package/dist/_chunks/{layout-b91XRlD2.js → layout-Ciz224q5.js} +20 -15
  56. package/dist/_chunks/layout-Ciz224q5.js.map +1 -0
  57. package/dist/_chunks/{relations-CA7IYmcP.js → relations-CP8sB2YZ.js} +2 -2
  58. package/dist/_chunks/{relations-CA7IYmcP.js.map → relations-CP8sB2YZ.js.map} +1 -1
  59. package/dist/_chunks/{relations-BsqxS6tR.mjs → relations-Cxc1cEv3.mjs} +2 -2
  60. package/dist/_chunks/{relations-BsqxS6tR.mjs.map → relations-Cxc1cEv3.mjs.map} +1 -1
  61. package/dist/admin/index.js +1 -1
  62. package/dist/admin/index.mjs +8 -8
  63. package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
  64. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +7 -3
  65. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +4 -0
  66. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +2 -10
  67. package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
  68. package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
  69. package/dist/server/index.js +9 -4
  70. package/dist/server/index.js.map +1 -1
  71. package/dist/server/index.mjs +9 -4
  72. package/dist/server/index.mjs.map +1 -1
  73. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  74. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  75. package/package.json +8 -8
  76. package/dist/_chunks/EditViewPage-CoQEnFlC.js.map +0 -1
  77. package/dist/_chunks/EditViewPage-DvaV7U9b.mjs.map +0 -1
  78. package/dist/_chunks/Field-Cz_J9551.mjs.map +0 -1
  79. package/dist/_chunks/Field-ZdrmmQ4Y.js.map +0 -1
  80. package/dist/_chunks/Form-Bpig5rch.js.map +0 -1
  81. package/dist/_chunks/Form-Dxmihyw8.mjs.map +0 -1
  82. package/dist/_chunks/History-BZP8n7KT.mjs.map +0 -1
  83. package/dist/_chunks/History-BfX6XmZK.js.map +0 -1
  84. package/dist/_chunks/ListConfigurationPage-B3CXj8PY.js.map +0 -1
  85. package/dist/_chunks/ListConfigurationPage-DxKuVkKz.mjs.map +0 -1
  86. package/dist/_chunks/ListViewPage-Bk9VO__I.js.map +0 -1
  87. package/dist/_chunks/ListViewPage-D5D3tVPq.mjs.map +0 -1
  88. package/dist/_chunks/index-DzN3kBgx.js.map +0 -1
  89. package/dist/_chunks/index-VHviNMeW.mjs.map +0 -1
  90. package/dist/_chunks/layout-CPn1PM6x.mjs.map +0 -1
  91. package/dist/_chunks/layout-b91XRlD2.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, DialogBody, DialogFooter, Button, ModalLayout, ModalHeader, ModalBody, Box, Radio, Status, SingleSelect, SingleSelectOption, ModalFooter, Loader, IconButton, Tooltip, LinkButton } from "@strapi/design-system";
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 }) => ({
@@ -599,7 +600,7 @@ const createAttributeSchema = (attribute) => {
599
600
  }
600
601
  };
601
602
  const addRequiredValidation = (attribute) => (schema) => {
602
- if (attribute.required) {
603
+ if (attribute.required && attribute.type !== "relation") {
603
604
  return schema.required({
604
605
  id: translatedErrors.required.id,
605
606
  defaultMessage: "This field is required."
@@ -763,7 +764,10 @@ const useDocument = (args, opts) => {
763
764
  isLoading: isLoadingDocument,
764
765
  isFetching: isFetchingDocument,
765
766
  error
766
- } = useGetDocumentQuery(args, opts);
767
+ } = useGetDocumentQuery(args, {
768
+ ...opts,
769
+ skip: !args.documentId && args.collectionType !== SINGLE_TYPES || opts?.skip
770
+ });
767
771
  const { components, schema, isLoading: isLoadingSchema } = useContentTypeSchema(args.model);
768
772
  React.useEffect(() => {
769
773
  if (error) {
@@ -927,12 +931,13 @@ const useDocumentActions = () => {
927
931
  );
928
932
  const [discardDocument] = useDiscardDocumentMutation();
929
933
  const discard = React.useCallback(
930
- async ({ collectionType, model, documentId }) => {
934
+ async ({ collectionType, model, documentId, params }) => {
931
935
  try {
932
936
  const res = await discardDocument({
933
937
  collectionType,
934
938
  model,
935
- documentId
939
+ documentId,
940
+ params
936
941
  });
937
942
  if ("error" in res) {
938
943
  toggleNotification({
@@ -1264,7 +1269,7 @@ const useDocumentActions = () => {
1264
1269
  };
1265
1270
  };
1266
1271
  const ProtectedHistoryPage = lazy(
1267
- () => import("./History-BZP8n7KT.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1272
+ () => import("./History-ByUPL3T3.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1268
1273
  );
1269
1274
  const routes$1 = [
1270
1275
  {
@@ -1277,31 +1282,31 @@ const routes$1 = [
1277
1282
  }
1278
1283
  ];
1279
1284
  const ProtectedEditViewPage = lazy(
1280
- () => import("./EditViewPage-DvaV7U9b.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1285
+ () => import("./EditViewPage-BtkEx339.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1281
1286
  );
1282
1287
  const ProtectedListViewPage = lazy(
1283
- () => import("./ListViewPage-D5D3tVPq.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1288
+ () => import("./ListViewPage-JSyNAAYu.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1284
1289
  );
1285
1290
  const ProtectedListConfiguration = lazy(
1286
- () => import("./ListConfigurationPage-DxKuVkKz.mjs").then((mod) => ({
1291
+ () => import("./ListConfigurationPage-Bm5HACXf.mjs").then((mod) => ({
1287
1292
  default: mod.ProtectedListConfiguration
1288
1293
  }))
1289
1294
  );
1290
1295
  const ProtectedEditConfigurationPage = lazy(
1291
- () => import("./EditConfigurationPage-DmCIb4kD.mjs").then((mod) => ({
1296
+ () => import("./EditConfigurationPage-Cp6HAEzN.mjs").then((mod) => ({
1292
1297
  default: mod.ProtectedEditConfigurationPage
1293
1298
  }))
1294
1299
  );
1295
1300
  const ProtectedComponentConfigurationPage = lazy(
1296
- () => import("./ComponentConfigurationPage-CR5XdR33.mjs").then((mod) => ({
1301
+ () => import("./ComponentConfigurationPage-DHNM3YBz.mjs").then((mod) => ({
1297
1302
  default: mod.ProtectedComponentConfigurationPage
1298
1303
  }))
1299
1304
  );
1300
1305
  const NoPermissions = lazy(
1301
- () => import("./NoPermissionsPage-OyoME_Tf.mjs").then((mod) => ({ default: mod.NoPermissions }))
1306
+ () => import("./NoPermissionsPage-DNmf_pj0.mjs").then((mod) => ({ default: mod.NoPermissions }))
1302
1307
  );
1303
1308
  const NoContentType = lazy(
1304
- () => import("./NoContentTypePage-DnMeuQCj.mjs").then((mod) => ({ default: mod.NoContentType }))
1309
+ () => import("./NoContentTypePage-CsrQUpBE.mjs").then((mod) => ({ default: mod.NoContentType }))
1305
1310
  );
1306
1311
  const CollectionTypePages = () => {
1307
1312
  const { collectionType } = useParams();
@@ -1508,7 +1513,7 @@ const DocumentActionsMenu = ({
1508
1513
  display: "block",
1509
1514
  children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", gap: 4, children: [
1510
1515
  /* @__PURE__ */ jsxs(Flex, { color: convertActionVariantToColor(action.variant), gap: 2, tag: "span", children: [
1511
- action.icon,
1516
+ /* @__PURE__ */ jsx(Box, { tag: "span", color: convertActionVariantToIconColor(action.variant), children: action.icon }),
1512
1517
  action.label
1513
1518
  ] }),
1514
1519
  action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsx(
@@ -1569,6 +1574,18 @@ const convertActionVariantToColor = (variant = "secondary") => {
1569
1574
  return "primary600";
1570
1575
  }
1571
1576
  };
1577
+ const convertActionVariantToIconColor = (variant = "secondary") => {
1578
+ switch (variant) {
1579
+ case "danger":
1580
+ return "danger600";
1581
+ case "secondary":
1582
+ return "neutral500";
1583
+ case "success":
1584
+ return "success600";
1585
+ default:
1586
+ return "primary600";
1587
+ }
1588
+ };
1572
1589
  const DocumentActionConfirmDialog = ({
1573
1590
  onClose,
1574
1591
  onCancel,
@@ -1591,22 +1608,20 @@ const DocumentActionConfirmDialog = ({
1591
1608
  }
1592
1609
  onClose();
1593
1610
  };
1594
- return /* @__PURE__ */ jsxs(Dialog, { isOpen, title, onClose: handleClose, children: [
1595
- /* @__PURE__ */ jsx(DialogBody, { children: content }),
1596
- /* @__PURE__ */ jsx(
1597
- DialogFooter,
1598
- {
1599
- startAction: /* @__PURE__ */ jsx(Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
1600
- id: "app.components.Button.cancel",
1601
- defaultMessage: "Cancel"
1602
- }) }),
1603
- endAction: /* @__PURE__ */ jsx(Button, { onClick: handleConfirm, variant, children: formatMessage({
1604
- id: "app.components.Button.confirm",
1605
- defaultMessage: "Confirm"
1606
- }) })
1607
- }
1608
- )
1609
- ] });
1611
+ return /* @__PURE__ */ jsx(Dialog.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(Dialog.Content, { children: [
1612
+ /* @__PURE__ */ jsx(Dialog.Header, { children: title }),
1613
+ /* @__PURE__ */ jsx(Dialog.Body, { children: content }),
1614
+ /* @__PURE__ */ jsxs(Dialog.Footer, { children: [
1615
+ /* @__PURE__ */ jsx(Dialog.Cancel, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", children: formatMessage({
1616
+ id: "app.components.Button.cancel",
1617
+ defaultMessage: "Cancel"
1618
+ }) }) }),
1619
+ /* @__PURE__ */ jsx(Button, { onClick: handleConfirm, variant, children: formatMessage({
1620
+ id: "app.components.Button.confirm",
1621
+ defaultMessage: "Confirm"
1622
+ }) })
1623
+ ] })
1624
+ ] }) });
1610
1625
  };
1611
1626
  const DocumentActionModal = ({
1612
1627
  isOpen,
@@ -1616,34 +1631,17 @@ const DocumentActionModal = ({
1616
1631
  content: Content,
1617
1632
  onModalClose
1618
1633
  }) => {
1619
- const id = React.useId();
1620
- if (!isOpen) {
1621
- return null;
1622
- }
1623
1634
  const handleClose = () => {
1624
1635
  if (onClose) {
1625
1636
  onClose();
1626
1637
  }
1627
1638
  onModalClose();
1628
1639
  };
1629
- return /* @__PURE__ */ jsxs(ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
1630
- /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
1631
- /* @__PURE__ */ jsx(ModalBody, { children: typeof Content === "function" ? /* @__PURE__ */ jsx(Content, { onClose: handleClose }) : Content }),
1632
- /* @__PURE__ */ jsx(
1633
- Box,
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
- ] });
1640
+ return /* @__PURE__ */ jsx(Modal.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(Modal.Content, { children: [
1641
+ /* @__PURE__ */ jsx(Modal.Header, { children: /* @__PURE__ */ jsx(Modal.Title, { children: title }) }),
1642
+ /* @__PURE__ */ jsx(Modal.Body, { children: typeof Content === "function" ? /* @__PURE__ */ jsx(Content, { onClose: handleClose }) : Content }),
1643
+ /* @__PURE__ */ jsx(Modal.Footer, { children: typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer })
1644
+ ] }) });
1647
1645
  };
1648
1646
  const PublishAction$1 = ({
1649
1647
  activeTab,
@@ -1826,10 +1824,13 @@ const UpdateAction = ({
1826
1824
  document
1827
1825
  );
1828
1826
  if ("data" in res && collectionType !== SINGLE_TYPES) {
1829
- navigate({
1830
- pathname: `../${collectionType}/${model}/${res.data.documentId}`,
1831
- search: rawQuery
1832
- });
1827
+ navigate(
1828
+ {
1829
+ pathname: `../${collectionType}/${model}/${res.data.documentId}`,
1830
+ search: rawQuery
1831
+ },
1832
+ { replace: true }
1833
+ );
1833
1834
  } else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
1834
1835
  setErrors(formatValidationErrors(res.error));
1835
1836
  }
@@ -1861,10 +1862,8 @@ const UnpublishAction$1 = ({
1861
1862
  const { toggleNotification } = useNotification();
1862
1863
  const [shouldKeepDraft, setShouldKeepDraft] = React.useState(true);
1863
1864
  const isDocumentModified = document?.status === "modified";
1864
- const handleChange = (e) => {
1865
- if ("value" in e.target) {
1866
- setShouldKeepDraft(e.target.value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
1867
- }
1865
+ const handleChange = (value) => {
1866
+ setShouldKeepDraft(value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
1868
1867
  };
1869
1868
  if (!schema?.options?.draftAndPublish) {
1870
1869
  return null;
@@ -1914,40 +1913,24 @@ const UnpublishAction$1 = ({
1914
1913
  }) })
1915
1914
  ] }),
1916
1915
  /* @__PURE__ */ jsxs(
1917
- Flex,
1916
+ Radio.Group,
1918
1917
  {
1919
- onChange: handleChange,
1920
- direction: "column",
1921
- alignItems: "flex-start",
1922
- tag: "fieldset",
1923
- borderWidth: 0,
1924
- gap: 3,
1918
+ defaultValue: UNPUBLISH_DRAFT_OPTIONS.KEEP,
1919
+ name: "discard-options",
1920
+ "aria-label": formatMessage({
1921
+ id: "content-manager.actions.unpublish.dialog.radio-label",
1922
+ defaultMessage: "Choose an option to unpublish the document."
1923
+ }),
1924
+ onValueChange: handleChange,
1925
1925
  children: [
1926
- /* @__PURE__ */ jsx(VisuallyHidden, { tag: "legend" }),
1927
- /* @__PURE__ */ jsx(
1928
- Radio,
1929
- {
1930
- checked: shouldKeepDraft,
1931
- value: UNPUBLISH_DRAFT_OPTIONS.KEEP,
1932
- name: "discard-options",
1933
- children: formatMessage({
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
- )
1926
+ /* @__PURE__ */ jsx(Radio.Item, { checked: shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.KEEP, children: formatMessage({
1927
+ id: "content-manager.actions.unpublish.dialog.option.keep-draft",
1928
+ defaultMessage: "Keep draft"
1929
+ }) }),
1930
+ /* @__PURE__ */ jsx(Radio.Item, { checked: !shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.DISCARD, children: formatMessage({
1931
+ id: "content-manager.actions.unpublish.dialog.option.replace-draft",
1932
+ defaultMessage: "Replace draft"
1933
+ }) })
1951
1934
  ]
1952
1935
  }
1953
1936
  )
@@ -2800,30 +2783,23 @@ const ConfirmBulkActionDialog = ({
2800
2783
  endAction
2801
2784
  }) => {
2802
2785
  const { formatMessage } = useIntl();
2803
- return /* @__PURE__ */ jsxs(
2804
- Dialog,
2805
- {
2806
- onClose: onToggleDialog,
2807
- title: formatMessage({
2808
- id: "app.components.ConfirmDialog.title",
2809
- defaultMessage: "Confirmation"
2810
- }),
2811
- isOpen,
2812
- children: [
2813
- /* @__PURE__ */ jsx(DialogBody, { icon: /* @__PURE__ */ jsx(WarningCircle, {}), children: /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: dialogBody }) }),
2814
- /* @__PURE__ */ jsx(
2815
- DialogFooter,
2816
- {
2817
- startAction: /* @__PURE__ */ jsx(Button, { onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
2818
- id: "app.components.Button.cancel",
2819
- defaultMessage: "Cancel"
2820
- }) }),
2821
- endAction
2822
- }
2823
- )
2824
- ]
2825
- }
2826
- );
2786
+ return /* @__PURE__ */ jsx(Dialog.Root, { onOpenChange: onToggleDialog, open: isOpen, children: /* @__PURE__ */ jsxs(Dialog.Content, { children: [
2787
+ /* @__PURE__ */ jsx(Dialog.Header, { children: formatMessage({
2788
+ id: "app.components.ConfirmDialog.title",
2789
+ defaultMessage: "Confirmation"
2790
+ }) }),
2791
+ /* @__PURE__ */ jsx(Dialog.Body, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2792
+ /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
2793
+ dialogBody
2794
+ ] }) }),
2795
+ /* @__PURE__ */ jsxs(Dialog.Footer, { children: [
2796
+ /* @__PURE__ */ jsx(Dialog.Cancel, { children: /* @__PURE__ */ jsx(Button, { fullWidth: true, onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
2797
+ id: "app.components.Button.cancel",
2798
+ defaultMessage: "Cancel"
2799
+ }) }) }),
2800
+ endAction
2801
+ ] })
2802
+ ] }) });
2827
2803
  };
2828
2804
  const BoldChunk$1 = (chunks) => /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: chunks });
2829
2805
  const ConfirmDialogPublishAll = ({
@@ -2928,16 +2904,30 @@ const formatErrorMessages = (errors, parentKey, formatMessage) => {
2928
2904
  )
2929
2905
  );
2930
2906
  } else {
2931
- messages.push(...formatErrorMessages(value, currentKey, formatMessage));
2907
+ messages.push(
2908
+ ...formatErrorMessages(
2909
+ // @ts-expect-error TODO: check why value is not compatible with FormErrors
2910
+ value,
2911
+ currentKey,
2912
+ formatMessage
2913
+ )
2914
+ );
2932
2915
  }
2916
+ } else {
2917
+ messages.push(
2918
+ formatMessage(
2919
+ {
2920
+ id: `${value}.withField`,
2921
+ defaultMessage: value
2922
+ },
2923
+ { field: currentKey }
2924
+ )
2925
+ );
2933
2926
  }
2934
2927
  });
2935
2928
  return messages;
2936
2929
  };
2937
- const EntryValidationText = ({
2938
- validationErrors,
2939
- isPublished = false
2940
- }) => {
2930
+ const EntryValidationText = ({ validationErrors, status }) => {
2941
2931
  const { formatMessage } = useIntl();
2942
2932
  if (validationErrors) {
2943
2933
  const validationErrorsMessages = formatErrorMessages(validationErrors, "", formatMessage).join(
@@ -2948,7 +2938,7 @@ const EntryValidationText = ({
2948
2938
  /* @__PURE__ */ jsx(Tooltip, { description: validationErrorsMessages, children: /* @__PURE__ */ jsx(TypographyMaxWidth, { textColor: "danger600", variant: "omega", fontWeight: "semiBold", ellipsis: true, children: validationErrorsMessages }) })
2949
2939
  ] });
2950
2940
  }
2951
- if (isPublished) {
2941
+ if (status === "published") {
2952
2942
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
2953
2943
  /* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
2954
2944
  /* @__PURE__ */ jsx(Typography, { textColor: "success600", fontWeight: "bold", children: formatMessage({
@@ -2957,6 +2947,15 @@ const EntryValidationText = ({
2957
2947
  }) })
2958
2948
  ] });
2959
2949
  }
2950
+ if (status === "modified") {
2951
+ return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
2952
+ /* @__PURE__ */ jsx(ArrowsCounterClockwise, { fill: "alternative600" }),
2953
+ /* @__PURE__ */ jsx(Typography, { children: formatMessage({
2954
+ id: "content-manager.bulk-publish.modified",
2955
+ defaultMessage: "Ready to publish changes"
2956
+ }) })
2957
+ ] });
2958
+ }
2960
2959
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
2961
2960
  /* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
2962
2961
  /* @__PURE__ */ jsx(Typography, { children: formatMessage({
@@ -3008,7 +3007,7 @@ const SelectedEntriesTableContent = ({
3008
3007
  EntryValidationText,
3009
3008
  {
3010
3009
  validationErrors: validationErrors[row.documentId],
3011
- isPublished: row.status === "published"
3010
+ status: row.status
3012
3011
  }
3013
3012
  ) }),
3014
3013
  /* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(
@@ -3149,7 +3148,7 @@ const SelectedEntriesModalContent = ({
3149
3148
  );
3150
3149
  };
3151
3150
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3152
- /* @__PURE__ */ jsxs(ModalBody, { children: [
3151
+ /* @__PURE__ */ jsxs(Modal.Body, { children: [
3153
3152
  /* @__PURE__ */ jsx(Typography, { children: getFormattedCountMessage() }),
3154
3153
  /* @__PURE__ */ jsx(Box, { marginTop: 5, children: /* @__PURE__ */ jsx(
3155
3154
  SelectedEntriesTableContent,
@@ -3161,27 +3160,24 @@ const SelectedEntriesModalContent = ({
3161
3160
  }
3162
3161
  ) })
3163
3162
  ] }),
3164
- /* @__PURE__ */ jsx(
3165
- ModalFooter,
3166
- {
3167
- startActions: /* @__PURE__ */ jsx(Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
3168
- id: "app.components.Button.cancel",
3169
- defaultMessage: "Cancel"
3170
- }) }),
3171
- endActions: /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
3172
- /* @__PURE__ */ jsx(Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
3173
- /* @__PURE__ */ jsx(
3174
- Button,
3175
- {
3176
- onClick: toggleDialog,
3177
- disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
3178
- loading: isSubmittingForm,
3179
- children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3180
- }
3181
- )
3182
- ] })
3183
- }
3184
- ),
3163
+ /* @__PURE__ */ jsxs(Modal.Footer, { children: [
3164
+ /* @__PURE__ */ jsx(Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
3165
+ id: "app.components.Button.cancel",
3166
+ defaultMessage: "Cancel"
3167
+ }) }),
3168
+ /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
3169
+ /* @__PURE__ */ jsx(Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
3170
+ /* @__PURE__ */ jsx(
3171
+ Button,
3172
+ {
3173
+ onClick: toggleDialog,
3174
+ disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
3175
+ loading: isSubmittingForm,
3176
+ children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3177
+ }
3178
+ )
3179
+ ] })
3180
+ ] }),
3185
3181
  /* @__PURE__ */ jsx(
3186
3182
  ConfirmDialogPublishAll,
3187
3183
  {
@@ -3246,143 +3242,10 @@ const BulkActionsRenderer = () => {
3246
3242
  documents: selectedRows
3247
3243
  },
3248
3244
  descriptions: plugins["content-manager"].apis.getBulkActions(),
3249
- children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsx(BulkActionAction, { ...action }, action.id))
3245
+ children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsx(DocumentActionButton, { ...action }, action.id))
3250
3246
  }
3251
3247
  ) });
3252
3248
  };
3253
- const BulkActionAction = (action) => {
3254
- const [dialogId, setDialogId] = React.useState(null);
3255
- const { toggleNotification } = useNotification();
3256
- const handleClick = (action2) => (e) => {
3257
- const { onClick, dialog, id } = action2;
3258
- if (onClick) {
3259
- onClick(e);
3260
- }
3261
- if (dialog) {
3262
- switch (dialog.type) {
3263
- case "notification":
3264
- toggleNotification({
3265
- title: dialog.title,
3266
- message: dialog.content,
3267
- type: dialog.status,
3268
- timeout: dialog.timeout,
3269
- onClose: dialog.onClose
3270
- });
3271
- break;
3272
- case "dialog":
3273
- case "modal": {
3274
- e.preventDefault();
3275
- setDialogId(id);
3276
- }
3277
- }
3278
- }
3279
- };
3280
- const handleClose = () => {
3281
- setDialogId(null);
3282
- if (action.dialog?.type === "modal" && action.dialog?.onClose) {
3283
- action.dialog.onClose();
3284
- }
3285
- };
3286
- return /* @__PURE__ */ jsxs(Fragment, { children: [
3287
- /* @__PURE__ */ jsx(
3288
- Button,
3289
- {
3290
- disabled: action.disabled,
3291
- startIcon: action.icon,
3292
- variant: action.variant,
3293
- onClick: handleClick(action),
3294
- children: action.label
3295
- }
3296
- ),
3297
- action.dialog?.type === "dialog" ? /* @__PURE__ */ jsx(
3298
- BulkActionConfirmDialog,
3299
- {
3300
- ...action.dialog,
3301
- variant: action.variant,
3302
- isOpen: dialogId === action.id,
3303
- onClose: handleClose
3304
- }
3305
- ) : null,
3306
- action.dialog?.type === "modal" ? /* @__PURE__ */ jsx(
3307
- BulkActionModal,
3308
- {
3309
- ...action.dialog,
3310
- onModalClose: handleClose,
3311
- isOpen: dialogId === action.id
3312
- }
3313
- ) : null
3314
- ] });
3315
- };
3316
- const BulkActionConfirmDialog = ({
3317
- onClose,
3318
- onCancel,
3319
- onConfirm,
3320
- title,
3321
- content,
3322
- confirmButton,
3323
- isOpen,
3324
- variant = "secondary"
3325
- }) => {
3326
- const { formatMessage } = useIntl();
3327
- const handleClose = async () => {
3328
- if (onCancel) {
3329
- await onCancel();
3330
- }
3331
- onClose();
3332
- };
3333
- const handleConfirm = async () => {
3334
- if (onConfirm) {
3335
- await onConfirm();
3336
- }
3337
- onClose();
3338
- };
3339
- return /* @__PURE__ */ jsxs(Dialog, { isOpen, title, onClose: handleClose, children: [
3340
- /* @__PURE__ */ jsx(DialogBody, { icon: /* @__PURE__ */ jsx(WarningCircle, {}), children: content }),
3341
- /* @__PURE__ */ jsx(
3342
- DialogFooter,
3343
- {
3344
- startAction: /* @__PURE__ */ jsx(Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
3345
- id: "app.components.Button.cancel",
3346
- defaultMessage: "Cancel"
3347
- }) }),
3348
- endAction: /* @__PURE__ */ jsx(
3349
- Button,
3350
- {
3351
- onClick: handleConfirm,
3352
- variant: variant === "danger-light" ? variant : "secondary",
3353
- startIcon: variant === "danger-light" ? /* @__PURE__ */ jsx(Trash, {}) : /* @__PURE__ */ jsx(Check, {}),
3354
- children: confirmButton ? confirmButton : formatMessage({
3355
- id: "app.components.Button.confirm",
3356
- defaultMessage: "Confirm"
3357
- })
3358
- }
3359
- )
3360
- }
3361
- )
3362
- ] });
3363
- };
3364
- const BulkActionModal = ({
3365
- isOpen,
3366
- title,
3367
- onClose,
3368
- content: Content,
3369
- onModalClose
3370
- }) => {
3371
- const id = React.useId();
3372
- if (!isOpen) {
3373
- return null;
3374
- }
3375
- const handleClose = () => {
3376
- if (onClose) {
3377
- onClose();
3378
- }
3379
- onModalClose();
3380
- };
3381
- return /* @__PURE__ */ jsxs(ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
3382
- /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
3383
- /* @__PURE__ */ jsx(Content, { onClose: handleClose })
3384
- ] });
3385
- };
3386
3249
  const DeleteAction = ({ documents, model }) => {
3387
3250
  const { formatMessage } = useIntl();
3388
3251
  const { schema: contentType } = useDoc();
@@ -3415,6 +3278,7 @@ const DeleteAction = ({ documents, model }) => {
3415
3278
  defaultMessage: "Confirmation"
3416
3279
  }),
3417
3280
  content: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
3281
+ /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
3418
3282
  /* @__PURE__ */ jsx(Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3419
3283
  id: "popUpWarning.bodyMessage.contentType.delete.all",
3420
3284
  defaultMessage: "Are you sure you want to delete these entries?"
@@ -3451,7 +3315,7 @@ const UnpublishAction = ({ documents, model }) => {
3451
3315
  selectRow([]);
3452
3316
  }
3453
3317
  };
3454
- const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published");
3318
+ const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
3455
3319
  if (!showUnpublishButton)
3456
3320
  return null;
3457
3321
  return {
@@ -3464,6 +3328,7 @@ const UnpublishAction = ({ documents, model }) => {
3464
3328
  defaultMessage: "Confirmation"
3465
3329
  }),
3466
3330
  content: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
3331
+ /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
3467
3332
  /* @__PURE__ */ jsx(Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3468
3333
  id: "popUpWarning.bodyMessage.contentType.unpublish.all",
3469
3334
  defaultMessage: "Are you sure you want to unpublish these entries?"
@@ -3849,15 +3714,24 @@ const index = {
3849
3714
  defaultMessage: "Content Manager"
3850
3715
  },
3851
3716
  permissions: [],
3852
- Component: () => import("./layout-CPn1PM6x.mjs").then((mod) => ({ default: mod.Layout })),
3853
3717
  position: 1
3854
3718
  });
3719
+ app.router.addRoute({
3720
+ path: "content-manager/*",
3721
+ lazy: async () => {
3722
+ const { Layout } = await import("./layout-Bx7svTbY.mjs");
3723
+ return {
3724
+ Component: Layout
3725
+ };
3726
+ },
3727
+ children: routes
3728
+ });
3855
3729
  app.registerPlugin(cm.config);
3856
3730
  },
3857
3731
  async registerTrads({ locales }) {
3858
3732
  const importedTrads = await Promise.all(
3859
3733
  locales.map((locale) => {
3860
- 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-Dzv55oQw.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 }) => {
3734
+ 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 }) => {
3861
3735
  return {
3862
3736
  data: prefixPluginTranslations(data, PLUGIN_ID),
3863
3737
  locale
@@ -3878,43 +3752,42 @@ export {
3878
3752
  BulkActionsRenderer as B,
3879
3753
  COLLECTION_TYPES as C,
3880
3754
  DocumentStatus as D,
3881
- extractContentTypeComponents as E,
3882
- DEFAULT_SETTINGS as F,
3883
- convertEditLayoutToFieldLayouts as G,
3755
+ DEFAULT_SETTINGS as E,
3756
+ convertEditLayoutToFieldLayouts as F,
3757
+ useDocument as G,
3884
3758
  HOOKS as H,
3885
3759
  InjectionZone as I,
3886
- useDocument as J,
3887
- index as K,
3888
- useDocumentActions as L,
3760
+ index as J,
3761
+ useDocumentActions as K,
3889
3762
  Panels as P,
3890
3763
  RelativeTime as R,
3891
3764
  SINGLE_TYPES as S,
3892
3765
  TableActions as T,
3893
- useGetAllContentTypeSettingsQuery as a,
3894
- useDoc as b,
3895
- buildValidParams as c,
3896
- contentManagerApi as d,
3897
- useDocumentRBAC as e,
3898
- useDocumentLayout as f,
3766
+ useGetInitialDataQuery as a,
3767
+ useGetAllContentTypeSettingsQuery as b,
3768
+ useDoc as c,
3769
+ buildValidParams as d,
3770
+ contentManagerApi as e,
3771
+ useDocumentRBAC as f,
3899
3772
  getTranslation as g,
3900
- createYupSchema as h,
3901
- Header as i,
3902
- PERMISSIONS as j,
3903
- DocumentRBAC as k,
3904
- DOCUMENT_META_FIELDS as l,
3905
- useDocLayout as m,
3906
- useContentTypeSchema as n,
3773
+ useDocumentLayout as h,
3774
+ createYupSchema as i,
3775
+ Header as j,
3776
+ PERMISSIONS as k,
3777
+ DocumentRBAC as l,
3778
+ DOCUMENT_META_FIELDS as m,
3779
+ useDocLayout as n,
3907
3780
  useGetContentTypeConfigurationQuery as o,
3908
3781
  CREATOR_FIELDS as p,
3909
3782
  getMainField as q,
3910
- routes as r,
3783
+ getDisplayName as r,
3911
3784
  setInitialData as s,
3912
- getDisplayName as t,
3913
- useGetInitialDataQuery as u,
3914
- checkIfAttributeIsDisplayable as v,
3915
- useGetAllDocumentsQuery as w,
3916
- convertListLayoutToFieldLayouts as x,
3917
- capitalise as y,
3918
- useUpdateContentTypeConfigurationMutation as z
3919
- };
3920
- //# sourceMappingURL=index-VHviNMeW.mjs.map
3785
+ checkIfAttributeIsDisplayable as t,
3786
+ useContentTypeSchema as u,
3787
+ useGetAllDocumentsQuery as v,
3788
+ convertListLayoutToFieldLayouts as w,
3789
+ capitalise as x,
3790
+ useUpdateContentTypeConfigurationMutation as y,
3791
+ extractContentTypeComponents as z
3792
+ };
3793
+ //# sourceMappingURL=index-CaE6NG4a.mjs.map