@strapi/content-manager 0.0.0-experimental.baa6cf22298e591b4d52d8e59c60406d7a9f137f → 0.0.0-experimental.d954d57341a6623992a0d211daaec8e245c3517d

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 (92) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-DiigqkCf.js → ComponentConfigurationPage-WRPUXGd6.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-DiigqkCf.js.map → ComponentConfigurationPage-WRPUXGd6.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-CYqQv0ne.mjs → ComponentConfigurationPage-gdUj_t-O.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-CYqQv0ne.mjs.map → ComponentConfigurationPage-gdUj_t-O.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-BArY-b8_.mjs → EditConfigurationPage-BwuIPOJG.mjs} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-BArY-b8_.mjs.map → EditConfigurationPage-BwuIPOJG.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-BeeGw2RI.js → EditConfigurationPage-C1vjMBgy.js} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-BeeGw2RI.js.map → EditConfigurationPage-C1vjMBgy.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-B8ETGsFo.mjs → EditViewPage-0MiFkXa8.mjs} +46 -46
  10. package/dist/_chunks/EditViewPage-0MiFkXa8.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-DZPDqo_G.js → EditViewPage-DbcGfyqK.js} +45 -45
  12. package/dist/_chunks/EditViewPage-DbcGfyqK.js.map +1 -0
  13. package/dist/_chunks/{Field-Dn4ThnFB.mjs → Field-BDMSCcy5.mjs} +104 -116
  14. package/dist/_chunks/Field-BDMSCcy5.mjs.map +1 -0
  15. package/dist/_chunks/{Field-DnJMS8cB.js → Field-BG1xu38N.js} +103 -115
  16. package/dist/_chunks/Field-BG1xu38N.js.map +1 -0
  17. package/dist/_chunks/{Form-DiTmWq2k.js → Form-9BnFyUjy.js} +21 -25
  18. package/dist/_chunks/Form-9BnFyUjy.js.map +1 -0
  19. package/dist/_chunks/{Form-DY721B6y.mjs → Form-CPVWavB8.mjs} +23 -27
  20. package/dist/_chunks/Form-CPVWavB8.mjs.map +1 -0
  21. package/dist/_chunks/{History-CwWN_uNp.mjs → History-BVpd8LP3.mjs} +101 -22
  22. package/dist/_chunks/History-BVpd8LP3.mjs.map +1 -0
  23. package/dist/_chunks/{History-DShoVAh0.js → History-BWWxLt2Z.js} +100 -21
  24. package/dist/_chunks/History-BWWxLt2Z.js.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-COIRGF5b.js → ListConfigurationPage-6swzjdAZ.js} +42 -43
  26. package/dist/_chunks/ListConfigurationPage-6swzjdAZ.js.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-D062TiTL.mjs → ListConfigurationPage-DozVMKcR.mjs} +43 -45
  28. package/dist/_chunks/ListConfigurationPage-DozVMKcR.mjs.map +1 -0
  29. package/dist/_chunks/{ListViewPage-CFuXPZ_r.js → ListViewPage-BlzfjS2Q.js} +60 -65
  30. package/dist/_chunks/ListViewPage-BlzfjS2Q.js.map +1 -0
  31. package/dist/_chunks/{ListViewPage-BeHTsIr5.mjs → ListViewPage-Ds0ulgfG.mjs} +62 -67
  32. package/dist/_chunks/ListViewPage-Ds0ulgfG.mjs.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-B_KLijrG.mjs → NoContentTypePage-BH11kaKt.mjs} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-B_KLijrG.mjs.map → NoContentTypePage-BH11kaKt.mjs.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-rdH0Zp0A.js → NoContentTypePage-D2nCCWEl.js} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-rdH0Zp0A.js.map → NoContentTypePage-D2nCCWEl.js.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-BPU-v48V.mjs → NoPermissionsPage-BT2Tn0D_.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-BPU-v48V.mjs.map → NoPermissionsPage-BT2Tn0D_.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-D8gbX1Y_.js → NoPermissionsPage-DN_JlsU2.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-D8gbX1Y_.js.map → NoPermissionsPage-DN_JlsU2.js.map} +1 -1
  41. package/dist/_chunks/{Relations-wHyjWWT5.js → Relations-CcgFTcWo.js} +3 -3
  42. package/dist/_chunks/{Relations-wHyjWWT5.js.map → Relations-CcgFTcWo.js.map} +1 -1
  43. package/dist/_chunks/{Relations-Bbz90ZWv.mjs → Relations-Dnag3fhV.mjs} +3 -3
  44. package/dist/_chunks/{Relations-Bbz90ZWv.mjs.map → Relations-Dnag3fhV.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-BRHpg0az.js → index-CWpLBSt0.js} +120 -283
  50. package/dist/_chunks/index-CWpLBSt0.js.map +1 -0
  51. package/dist/_chunks/{index-Dv4oDn11.mjs → index-JNNNKUHs.mjs} +136 -299
  52. package/dist/_chunks/index-JNNNKUHs.mjs.map +1 -0
  53. package/dist/_chunks/{layout-pZc2Q3bK.js → layout--iHdZzRk.js} +17 -12
  54. package/dist/_chunks/layout--iHdZzRk.js.map +1 -0
  55. package/dist/_chunks/{layout-hInnLBbA.mjs → layout-DC503LnF.mjs} +17 -12
  56. package/dist/_chunks/layout-DC503LnF.mjs.map +1 -0
  57. package/dist/_chunks/{relations-CVE30dYt.js → relations-BbHizA5K.js} +2 -2
  58. package/dist/_chunks/{relations-CVE30dYt.js.map → relations-BbHizA5K.js.map} +1 -1
  59. package/dist/_chunks/{relations-BcPI8XhI.mjs → relations-CTje5t-a.mjs} +2 -2
  60. package/dist/_chunks/{relations-BcPI8XhI.mjs.map → relations-CTje5t-a.mjs.map} +1 -1
  61. package/dist/admin/index.js +1 -1
  62. package/dist/admin/index.mjs +5 -5
  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/Wysiwyg/WysiwygStyles.d.ts +2 -10
  66. package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
  67. package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
  68. package/dist/server/index.js +18 -11
  69. package/dist/server/index.js.map +1 -1
  70. package/dist/server/index.mjs +18 -11
  71. package/dist/server/index.mjs.map +1 -1
  72. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  73. package/dist/server/src/controllers/single-types.d.ts.map +1 -1
  74. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  75. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  76. package/package.json +8 -8
  77. package/dist/_chunks/EditViewPage-B8ETGsFo.mjs.map +0 -1
  78. package/dist/_chunks/EditViewPage-DZPDqo_G.js.map +0 -1
  79. package/dist/_chunks/Field-Dn4ThnFB.mjs.map +0 -1
  80. package/dist/_chunks/Field-DnJMS8cB.js.map +0 -1
  81. package/dist/_chunks/Form-DY721B6y.mjs.map +0 -1
  82. package/dist/_chunks/Form-DiTmWq2k.js.map +0 -1
  83. package/dist/_chunks/History-CwWN_uNp.mjs.map +0 -1
  84. package/dist/_chunks/History-DShoVAh0.js.map +0 -1
  85. package/dist/_chunks/ListConfigurationPage-COIRGF5b.js.map +0 -1
  86. package/dist/_chunks/ListConfigurationPage-D062TiTL.mjs.map +0 -1
  87. package/dist/_chunks/ListViewPage-BeHTsIr5.mjs.map +0 -1
  88. package/dist/_chunks/ListViewPage-CFuXPZ_r.js.map +0 -1
  89. package/dist/_chunks/index-BRHpg0az.js.map +0 -1
  90. package/dist/_chunks/index-Dv4oDn11.mjs.map +0 -1
  91. package/dist/_chunks/layout-hInnLBbA.mjs.map +0 -1
  92. 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, 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, Typography, Dialog, Modal, Radio, Status, SingleSelect, SingleSelectOption, Box, 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";
@@ -927,12 +927,13 @@ const useDocumentActions = () => {
927
927
  );
928
928
  const [discardDocument] = useDiscardDocumentMutation();
929
929
  const discard = React.useCallback(
930
- async ({ collectionType, model, documentId }) => {
930
+ async ({ collectionType, model, documentId, params }) => {
931
931
  try {
932
932
  const res = await discardDocument({
933
933
  collectionType,
934
934
  model,
935
- documentId
935
+ documentId,
936
+ params
936
937
  });
937
938
  if ("error" in res) {
938
939
  toggleNotification({
@@ -1264,7 +1265,7 @@ const useDocumentActions = () => {
1264
1265
  };
1265
1266
  };
1266
1267
  const ProtectedHistoryPage = lazy(
1267
- () => import("./History-CwWN_uNp.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1268
+ () => import("./History-BVpd8LP3.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1268
1269
  );
1269
1270
  const routes$1 = [
1270
1271
  {
@@ -1277,31 +1278,31 @@ const routes$1 = [
1277
1278
  }
1278
1279
  ];
1279
1280
  const ProtectedEditViewPage = lazy(
1280
- () => import("./EditViewPage-B8ETGsFo.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1281
+ () => import("./EditViewPage-0MiFkXa8.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1281
1282
  );
1282
1283
  const ProtectedListViewPage = lazy(
1283
- () => import("./ListViewPage-BeHTsIr5.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1284
+ () => import("./ListViewPage-Ds0ulgfG.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1284
1285
  );
1285
1286
  const ProtectedListConfiguration = lazy(
1286
- () => import("./ListConfigurationPage-D062TiTL.mjs").then((mod) => ({
1287
+ () => import("./ListConfigurationPage-DozVMKcR.mjs").then((mod) => ({
1287
1288
  default: mod.ProtectedListConfiguration
1288
1289
  }))
1289
1290
  );
1290
1291
  const ProtectedEditConfigurationPage = lazy(
1291
- () => import("./EditConfigurationPage-BArY-b8_.mjs").then((mod) => ({
1292
+ () => import("./EditConfigurationPage-BwuIPOJG.mjs").then((mod) => ({
1292
1293
  default: mod.ProtectedEditConfigurationPage
1293
1294
  }))
1294
1295
  );
1295
1296
  const ProtectedComponentConfigurationPage = lazy(
1296
- () => import("./ComponentConfigurationPage-CYqQv0ne.mjs").then((mod) => ({
1297
+ () => import("./ComponentConfigurationPage-gdUj_t-O.mjs").then((mod) => ({
1297
1298
  default: mod.ProtectedComponentConfigurationPage
1298
1299
  }))
1299
1300
  );
1300
1301
  const NoPermissions = lazy(
1301
- () => import("./NoPermissionsPage-BPU-v48V.mjs").then((mod) => ({ default: mod.NoPermissions }))
1302
+ () => import("./NoPermissionsPage-BT2Tn0D_.mjs").then((mod) => ({ default: mod.NoPermissions }))
1302
1303
  );
1303
1304
  const NoContentType = lazy(
1304
- () => import("./NoContentTypePage-B_KLijrG.mjs").then((mod) => ({ default: mod.NoContentType }))
1305
+ () => import("./NoContentTypePage-BH11kaKt.mjs").then((mod) => ({ default: mod.NoContentType }))
1305
1306
  );
1306
1307
  const CollectionTypePages = () => {
1307
1308
  const { collectionType } = useParams();
@@ -1591,22 +1592,20 @@ const DocumentActionConfirmDialog = ({
1591
1592
  }
1592
1593
  onClose();
1593
1594
  };
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
- ] });
1595
+ return /* @__PURE__ */ jsx(Dialog.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(Dialog.Content, { children: [
1596
+ /* @__PURE__ */ jsx(Dialog.Header, { children: title }),
1597
+ /* @__PURE__ */ jsx(Dialog.Body, { children: content }),
1598
+ /* @__PURE__ */ jsxs(Dialog.Footer, { children: [
1599
+ /* @__PURE__ */ jsx(Dialog.Cancel, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", children: formatMessage({
1600
+ id: "app.components.Button.cancel",
1601
+ defaultMessage: "Cancel"
1602
+ }) }) }),
1603
+ /* @__PURE__ */ jsx(Button, { onClick: handleConfirm, variant, children: formatMessage({
1604
+ id: "app.components.Button.confirm",
1605
+ defaultMessage: "Confirm"
1606
+ }) })
1607
+ ] })
1608
+ ] }) });
1610
1609
  };
1611
1610
  const DocumentActionModal = ({
1612
1611
  isOpen,
@@ -1616,34 +1615,17 @@ const DocumentActionModal = ({
1616
1615
  content: Content,
1617
1616
  onModalClose
1618
1617
  }) => {
1619
- const id = React.useId();
1620
- if (!isOpen) {
1621
- return null;
1622
- }
1623
1618
  const handleClose = () => {
1624
1619
  if (onClose) {
1625
1620
  onClose();
1626
1621
  }
1627
1622
  onModalClose();
1628
1623
  };
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
- ] });
1624
+ return /* @__PURE__ */ jsx(Modal.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(Modal.Content, { children: [
1625
+ /* @__PURE__ */ jsx(Modal.Header, { children: /* @__PURE__ */ jsx(Modal.Title, { children: title }) }),
1626
+ typeof Content === "function" ? /* @__PURE__ */ jsx(Content, { onClose: handleClose }) : /* @__PURE__ */ jsx(Modal.Body, { children: Content }),
1627
+ typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer
1628
+ ] }) });
1647
1629
  };
1648
1630
  const PublishAction$1 = ({
1649
1631
  activeTab,
@@ -1861,10 +1843,8 @@ const UnpublishAction$1 = ({
1861
1843
  const { toggleNotification } = useNotification();
1862
1844
  const [shouldKeepDraft, setShouldKeepDraft] = React.useState(true);
1863
1845
  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
- }
1846
+ const handleChange = (value) => {
1847
+ setShouldKeepDraft(value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
1868
1848
  };
1869
1849
  if (!schema?.options?.draftAndPublish) {
1870
1850
  return null;
@@ -1914,40 +1894,24 @@ const UnpublishAction$1 = ({
1914
1894
  }) })
1915
1895
  ] }),
1916
1896
  /* @__PURE__ */ jsxs(
1917
- Flex,
1897
+ Radio.Group,
1918
1898
  {
1919
- onChange: handleChange,
1920
- direction: "column",
1921
- alignItems: "flex-start",
1922
- tag: "fieldset",
1923
- borderWidth: 0,
1924
- gap: 3,
1899
+ defaultValue: UNPUBLISH_DRAFT_OPTIONS.KEEP,
1900
+ name: "discard-options",
1901
+ "aria-label": formatMessage({
1902
+ id: "content-manager.actions.unpublish.dialog.radio-label",
1903
+ defaultMessage: "Choose an option to unpublish the document."
1904
+ }),
1905
+ onValueChange: handleChange,
1925
1906
  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
- )
1907
+ /* @__PURE__ */ jsx(Radio.Item, { checked: shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.KEEP, children: formatMessage({
1908
+ id: "content-manager.actions.unpublish.dialog.option.keep-draft",
1909
+ defaultMessage: "Keep draft"
1910
+ }) }),
1911
+ /* @__PURE__ */ jsx(Radio.Item, { checked: !shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.DISCARD, children: formatMessage({
1912
+ id: "content-manager.actions.unpublish.dialog.option.replace-draft",
1913
+ defaultMessage: "Replace draft"
1914
+ }) })
1951
1915
  ]
1952
1916
  }
1953
1917
  )
@@ -2800,30 +2764,23 @@ const ConfirmBulkActionDialog = ({
2800
2764
  endAction
2801
2765
  }) => {
2802
2766
  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
- );
2767
+ return /* @__PURE__ */ jsx(Dialog.Root, { onOpenChange: onToggleDialog, open: isOpen, children: /* @__PURE__ */ jsxs(Dialog.Content, { children: [
2768
+ /* @__PURE__ */ jsx(Dialog.Header, { children: formatMessage({
2769
+ id: "app.components.ConfirmDialog.title",
2770
+ defaultMessage: "Confirmation"
2771
+ }) }),
2772
+ /* @__PURE__ */ jsx(Dialog.Body, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2773
+ /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
2774
+ dialogBody
2775
+ ] }) }),
2776
+ /* @__PURE__ */ jsxs(Dialog.Footer, { children: [
2777
+ /* @__PURE__ */ jsx(Dialog.Cancel, { children: /* @__PURE__ */ jsx(Button, { fullWidth: true, onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
2778
+ id: "app.components.Button.cancel",
2779
+ defaultMessage: "Cancel"
2780
+ }) }) }),
2781
+ endAction
2782
+ ] })
2783
+ ] }) });
2827
2784
  };
2828
2785
  const BoldChunk$1 = (chunks) => /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: chunks });
2829
2786
  const ConfirmDialogPublishAll = ({
@@ -2883,7 +2840,7 @@ const ConfirmDialogPublishAll = ({
2883
2840
  defaultMessage: "Are you sure you want to publish these entries?"
2884
2841
  })
2885
2842
  ] }),
2886
- schema?.pluginOptions && "i18n" in schema.pluginOptions && schema?.pluginOptions.i18n && /* @__PURE__ */ jsx(Typography, { textColor: "danger500", children: formatMessage(
2843
+ schema?.pluginOptions && "i18n" in schema.pluginOptions && schema?.pluginOptions.i18n && /* @__PURE__ */ jsx(Typography, { textColor: "danger500", textAlign: "center", children: formatMessage(
2887
2844
  {
2888
2845
  id: getTranslation("Settings.list.actions.publishAdditionalInfos"),
2889
2846
  defaultMessage: "This will publish the active locale versions <em>(from Internationalization)</em>"
@@ -2930,14 +2887,21 @@ const formatErrorMessages = (errors, parentKey, formatMessage) => {
2930
2887
  } else {
2931
2888
  messages.push(...formatErrorMessages(value, currentKey, formatMessage));
2932
2889
  }
2890
+ } else {
2891
+ messages.push(
2892
+ formatMessage(
2893
+ {
2894
+ id: `${value}.withField`,
2895
+ defaultMessage: value
2896
+ },
2897
+ { field: currentKey }
2898
+ )
2899
+ );
2933
2900
  }
2934
2901
  });
2935
2902
  return messages;
2936
2903
  };
2937
- const EntryValidationText = ({
2938
- validationErrors,
2939
- isPublished = false
2940
- }) => {
2904
+ const EntryValidationText = ({ validationErrors, status }) => {
2941
2905
  const { formatMessage } = useIntl();
2942
2906
  if (validationErrors) {
2943
2907
  const validationErrorsMessages = formatErrorMessages(validationErrors, "", formatMessage).join(
@@ -2948,7 +2912,7 @@ const EntryValidationText = ({
2948
2912
  /* @__PURE__ */ jsx(Tooltip, { description: validationErrorsMessages, children: /* @__PURE__ */ jsx(TypographyMaxWidth, { textColor: "danger600", variant: "omega", fontWeight: "semiBold", ellipsis: true, children: validationErrorsMessages }) })
2949
2913
  ] });
2950
2914
  }
2951
- if (isPublished) {
2915
+ if (status === "published") {
2952
2916
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
2953
2917
  /* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
2954
2918
  /* @__PURE__ */ jsx(Typography, { textColor: "success600", fontWeight: "bold", children: formatMessage({
@@ -2957,6 +2921,15 @@ const EntryValidationText = ({
2957
2921
  }) })
2958
2922
  ] });
2959
2923
  }
2924
+ if (status === "modified") {
2925
+ return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
2926
+ /* @__PURE__ */ jsx(ArrowsCounterClockwise, { fill: "alternative600" }),
2927
+ /* @__PURE__ */ jsx(Typography, { children: formatMessage({
2928
+ id: "content-manager.bulk-publish.modified",
2929
+ defaultMessage: "Ready to publish changes"
2930
+ }) })
2931
+ ] });
2932
+ }
2960
2933
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
2961
2934
  /* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
2962
2935
  /* @__PURE__ */ jsx(Typography, { children: formatMessage({
@@ -3008,7 +2981,7 @@ const SelectedEntriesTableContent = ({
3008
2981
  EntryValidationText,
3009
2982
  {
3010
2983
  validationErrors: validationErrors[row.documentId],
3011
- isPublished: row.publishedAt !== null
2984
+ status: row.status
3012
2985
  }
3013
2986
  ) }),
3014
2987
  /* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(
@@ -3097,18 +3070,16 @@ const SelectedEntriesModalContent = ({
3097
3070
  const [isDialogOpen, setIsDialogOpen] = React.useState(false);
3098
3071
  const { publishMany: bulkPublishAction } = useDocumentActions();
3099
3072
  const [, { isLoading: isSubmittingForm }] = usePublishManyDocumentsMutation();
3100
- const selectedEntries = useTable("publishAction", (state) => state.selectedRows);
3101
- const entriesToPublish = selectedEntries.reduce((acc, entry) => {
3102
- if (!validationErrors[entry.documentId]) {
3103
- acc.push(entry.documentId);
3104
- }
3105
- return acc;
3106
- }, []);
3073
+ const selectedRows = useTable("publishAction", (state) => state.selectedRows);
3074
+ const selectedEntries = rows.filter(
3075
+ (entry) => selectedRows.some((selectedEntry) => selectedEntry.documentId === entry.documentId)
3076
+ );
3077
+ const entriesToPublish = selectedEntries.filter((entry) => !validationErrors[entry.documentId]).map((entry) => entry.documentId);
3107
3078
  const selectedEntriesWithErrorsCount = selectedEntries.filter(
3108
3079
  ({ documentId }) => validationErrors[documentId]
3109
3080
  ).length;
3110
3081
  const selectedEntriesPublished = selectedEntries.filter(
3111
- ({ publishedAt }) => !!publishedAt
3082
+ ({ status }) => status === "published"
3112
3083
  ).length;
3113
3084
  const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublished;
3114
3085
  const toggleDialog = () => setIsDialogOpen((prev) => !prev);
@@ -3151,7 +3122,7 @@ const SelectedEntriesModalContent = ({
3151
3122
  );
3152
3123
  };
3153
3124
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3154
- /* @__PURE__ */ jsxs(ModalBody, { children: [
3125
+ /* @__PURE__ */ jsxs(Modal.Body, { children: [
3155
3126
  /* @__PURE__ */ jsx(Typography, { children: getFormattedCountMessage() }),
3156
3127
  /* @__PURE__ */ jsx(Box, { marginTop: 5, children: /* @__PURE__ */ jsx(
3157
3128
  SelectedEntriesTableContent,
@@ -3163,27 +3134,24 @@ const SelectedEntriesModalContent = ({
3163
3134
  }
3164
3135
  ) })
3165
3136
  ] }),
3166
- /* @__PURE__ */ jsx(
3167
- ModalFooter,
3168
- {
3169
- startActions: /* @__PURE__ */ jsx(Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
3170
- id: "app.components.Button.cancel",
3171
- defaultMessage: "Cancel"
3172
- }) }),
3173
- endActions: /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
3174
- /* @__PURE__ */ jsx(Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
3175
- /* @__PURE__ */ jsx(
3176
- Button,
3177
- {
3178
- onClick: toggleDialog,
3179
- disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || isLoading,
3180
- loading: isSubmittingForm,
3181
- children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3182
- }
3183
- )
3184
- ] })
3185
- }
3186
- ),
3137
+ /* @__PURE__ */ jsxs(Modal.Footer, { children: [
3138
+ /* @__PURE__ */ jsx(Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
3139
+ id: "app.components.Button.cancel",
3140
+ defaultMessage: "Cancel"
3141
+ }) }),
3142
+ /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
3143
+ /* @__PURE__ */ jsx(Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
3144
+ /* @__PURE__ */ jsx(
3145
+ Button,
3146
+ {
3147
+ onClick: toggleDialog,
3148
+ disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
3149
+ loading: isSubmittingForm,
3150
+ children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3151
+ }
3152
+ )
3153
+ ] })
3154
+ ] }),
3187
3155
  /* @__PURE__ */ jsx(
3188
3156
  ConfirmDialogPublishAll,
3189
3157
  {
@@ -3248,143 +3216,10 @@ const BulkActionsRenderer = () => {
3248
3216
  documents: selectedRows
3249
3217
  },
3250
3218
  descriptions: plugins["content-manager"].apis.getBulkActions(),
3251
- children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsx(BulkActionAction, { ...action }, action.id))
3219
+ children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsx(DocumentActionButton, { ...action }, action.id))
3252
3220
  }
3253
3221
  ) });
3254
3222
  };
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
3223
  const DeleteAction = ({ documents, model }) => {
3389
3224
  const { formatMessage } = useIntl();
3390
3225
  const { schema: contentType } = useDoc();
@@ -3417,6 +3252,7 @@ const DeleteAction = ({ documents, model }) => {
3417
3252
  defaultMessage: "Confirmation"
3418
3253
  }),
3419
3254
  content: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
3255
+ /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
3420
3256
  /* @__PURE__ */ jsx(Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3421
3257
  id: "popUpWarning.bodyMessage.contentType.delete.all",
3422
3258
  defaultMessage: "Are you sure you want to delete these entries?"
@@ -3453,7 +3289,7 @@ const UnpublishAction = ({ documents, model }) => {
3453
3289
  selectRow([]);
3454
3290
  }
3455
3291
  };
3456
- const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published");
3292
+ const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
3457
3293
  if (!showUnpublishButton)
3458
3294
  return null;
3459
3295
  return {
@@ -3466,6 +3302,7 @@ const UnpublishAction = ({ documents, model }) => {
3466
3302
  defaultMessage: "Confirmation"
3467
3303
  }),
3468
3304
  content: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
3305
+ /* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
3469
3306
  /* @__PURE__ */ jsx(Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3470
3307
  id: "popUpWarning.bodyMessage.contentType.unpublish.all",
3471
3308
  defaultMessage: "Are you sure you want to unpublish these entries?"
@@ -3851,7 +3688,7 @@ const index = {
3851
3688
  defaultMessage: "Content Manager"
3852
3689
  },
3853
3690
  permissions: [],
3854
- Component: () => import("./layout-hInnLBbA.mjs").then((mod) => ({ default: mod.Layout })),
3691
+ Component: () => import("./layout-DC503LnF.mjs").then((mod) => ({ default: mod.Layout })),
3855
3692
  position: 1
3856
3693
  });
3857
3694
  app.registerPlugin(cm.config);
@@ -3859,7 +3696,7 @@ const index = {
3859
3696
  async registerTrads({ locales }) {
3860
3697
  const importedTrads = await Promise.all(
3861
3698
  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-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 }) => {
3699
+ 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
3700
  return {
3864
3701
  data: prefixPluginTranslations(data, PLUGIN_ID),
3865
3702
  locale
@@ -3892,31 +3729,31 @@ export {
3892
3729
  RelativeTime as R,
3893
3730
  SINGLE_TYPES as S,
3894
3731
  TableActions as T,
3895
- useGetAllContentTypeSettingsQuery as a,
3896
- useDoc as b,
3897
- buildValidParams as c,
3898
- contentManagerApi as d,
3899
- useDocumentRBAC as e,
3900
- useDocumentLayout as f,
3732
+ useGetInitialDataQuery as a,
3733
+ useGetAllContentTypeSettingsQuery as b,
3734
+ useDoc as c,
3735
+ buildValidParams as d,
3736
+ contentManagerApi as e,
3737
+ useDocumentRBAC as f,
3901
3738
  getTranslation as g,
3902
- createYupSchema as h,
3903
- Header as i,
3904
- PERMISSIONS as j,
3905
- DocumentRBAC as k,
3906
- DOCUMENT_META_FIELDS as l,
3907
- useDocLayout as m,
3908
- useContentTypeSchema as n,
3739
+ useDocumentLayout as h,
3740
+ createYupSchema as i,
3741
+ Header as j,
3742
+ PERMISSIONS as k,
3743
+ DocumentRBAC as l,
3744
+ DOCUMENT_META_FIELDS as m,
3745
+ useDocLayout as n,
3909
3746
  useGetContentTypeConfigurationQuery as o,
3910
3747
  CREATOR_FIELDS as p,
3911
3748
  getMainField as q,
3912
3749
  routes as r,
3913
3750
  setInitialData as s,
3914
3751
  getDisplayName as t,
3915
- useGetInitialDataQuery as u,
3752
+ useContentTypeSchema as u,
3916
3753
  checkIfAttributeIsDisplayable as v,
3917
3754
  useGetAllDocumentsQuery as w,
3918
3755
  convertListLayoutToFieldLayouts as x,
3919
3756
  capitalise as y,
3920
3757
  useUpdateContentTypeConfigurationMutation as z
3921
3758
  };
3922
- //# sourceMappingURL=index-Dv4oDn11.mjs.map
3759
+ //# sourceMappingURL=index-JNNNKUHs.mjs.map