@strapi/content-manager 0.0.0-experimental.826f263c58b6886b849d3f03b81f7a530bc51c91 → 0.0.0-experimental.a53a4b1c8f7981a689823cdd719105671e1c6392

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 (90) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-DJcn1DrO.js → ComponentConfigurationPage-C-49MccQ.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-DJcn1DrO.js.map → ComponentConfigurationPage-C-49MccQ.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-CR5XdR33.mjs → ComponentConfigurationPage-DmwmiFQy.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-CR5XdR33.mjs.map → ComponentConfigurationPage-DmwmiFQy.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-tDtWj7R2.js → EditConfigurationPage-DjFJw56M.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-tDtWj7R2.js.map → EditConfigurationPage-DjFJw56M.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-DmCIb4kD.mjs → EditConfigurationPage-JT3E7NZy.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-DmCIb4kD.mjs.map → EditConfigurationPage-JT3E7NZy.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-DvaV7U9b.mjs → EditViewPage-CPj61RMh.mjs} +46 -46
  10. package/dist/_chunks/EditViewPage-CPj61RMh.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-CoQEnFlC.js → EditViewPage-zT3fBr4Y.js} +45 -45
  12. package/dist/_chunks/EditViewPage-zT3fBr4Y.js.map +1 -0
  13. package/dist/_chunks/{Field-ZdrmmQ4Y.js → Field-Boxf9Ajp.js} +372 -117
  14. package/dist/_chunks/Field-Boxf9Ajp.js.map +1 -0
  15. package/dist/_chunks/{Field-Cz_J9551.mjs → Field-dha5VnIQ.mjs} +373 -118
  16. package/dist/_chunks/Field-dha5VnIQ.mjs.map +1 -0
  17. package/dist/_chunks/{Form-Dxmihyw8.mjs → Form-DHrru2AV.mjs} +27 -28
  18. package/dist/_chunks/Form-DHrru2AV.mjs.map +1 -0
  19. package/dist/_chunks/{Form-Bpig5rch.js → Form-y5g1SRsh.js} +25 -26
  20. package/dist/_chunks/Form-y5g1SRsh.js.map +1 -0
  21. package/dist/_chunks/{History-BZP8n7KT.mjs → History-Bru_KoeP.mjs} +101 -22
  22. package/dist/_chunks/History-Bru_KoeP.mjs.map +1 -0
  23. package/dist/_chunks/{History-BfX6XmZK.js → History-CqN6K7SX.js} +100 -21
  24. package/dist/_chunks/History-CqN6K7SX.js.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-DxKuVkKz.mjs → ListConfigurationPage-D8wGABj0.mjs} +43 -45
  26. package/dist/_chunks/ListConfigurationPage-D8wGABj0.mjs.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-B3CXj8PY.js → ListConfigurationPage-R_p-SbHZ.js} +42 -43
  28. package/dist/_chunks/ListConfigurationPage-R_p-SbHZ.js.map +1 -0
  29. package/dist/_chunks/{ListViewPage-D5D3tVPq.mjs → ListViewPage-SID6TRb9.mjs} +48 -65
  30. package/dist/_chunks/ListViewPage-SID6TRb9.mjs.map +1 -0
  31. package/dist/_chunks/{ListViewPage-Bk9VO__I.js → ListViewPage-pEw_zug9.js} +47 -64
  32. package/dist/_chunks/ListViewPage-pEw_zug9.js.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-DsB2F7Z1.js → NoContentTypePage-C5dcQojD.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-DsB2F7Z1.js.map → NoContentTypePage-C5dcQojD.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DnMeuQCj.mjs → NoContentTypePage-CJ7UXwrQ.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DnMeuQCj.mjs.map → NoContentTypePage-CJ7UXwrQ.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-OyoME_Tf.mjs → NoPermissionsPage-B7syEq5E.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-OyoME_Tf.mjs.map → NoPermissionsPage-B7syEq5E.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-BQDM64_b.js → NoPermissionsPage-BtPrImPP.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-BQDM64_b.js.map → NoPermissionsPage-BtPrImPP.js.map} +1 -1
  41. package/dist/_chunks/{Relations-BOYZmuWy.mjs → Relations-B9Crnhnn.mjs} +3 -3
  42. package/dist/_chunks/{Relations-BOYZmuWy.mjs.map → Relations-B9Crnhnn.mjs.map} +1 -1
  43. package/dist/_chunks/{Relations-B6B3A3mb.js → Relations-DjTQ5kGB.js} +3 -3
  44. package/dist/_chunks/{Relations-B6B3A3mb.js.map → Relations-DjTQ5kGB.js.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-VHviNMeW.mjs → index-DJXJw9V5.mjs} +165 -305
  50. package/dist/_chunks/index-DJXJw9V5.mjs.map +1 -0
  51. package/dist/_chunks/{index-DzN3kBgx.js → index-DVPWZkbS.js} +136 -276
  52. package/dist/_chunks/index-DVPWZkbS.js.map +1 -0
  53. package/dist/_chunks/{layout-CPn1PM6x.mjs → layout-Bau7ZfLV.mjs} +19 -14
  54. package/dist/_chunks/layout-Bau7ZfLV.mjs.map +1 -0
  55. package/dist/_chunks/{layout-b91XRlD2.js → layout-Dm6fbiQj.js} +18 -13
  56. package/dist/_chunks/layout-Dm6fbiQj.js.map +1 -0
  57. package/dist/_chunks/{relations-BsqxS6tR.mjs → relations-BH_kBSJ0.mjs} +2 -2
  58. package/dist/_chunks/{relations-BsqxS6tR.mjs.map → relations-BH_kBSJ0.mjs.map} +1 -1
  59. package/dist/_chunks/{relations-CA7IYmcP.js → relations-CKnpRgrN.js} +2 -2
  60. package/dist/_chunks/{relations-CA7IYmcP.js.map → relations-CKnpRgrN.js.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 +7 -6
  70. package/dist/server/index.js.map +1 -1
  71. package/dist/server/index.mjs +7 -6
  72. package/dist/server/index.mjs.map +1 -1
  73. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  74. package/package.json +8 -8
  75. package/dist/_chunks/EditViewPage-CoQEnFlC.js.map +0 -1
  76. package/dist/_chunks/EditViewPage-DvaV7U9b.mjs.map +0 -1
  77. package/dist/_chunks/Field-Cz_J9551.mjs.map +0 -1
  78. package/dist/_chunks/Field-ZdrmmQ4Y.js.map +0 -1
  79. package/dist/_chunks/Form-Bpig5rch.js.map +0 -1
  80. package/dist/_chunks/Form-Dxmihyw8.mjs.map +0 -1
  81. package/dist/_chunks/History-BZP8n7KT.mjs.map +0 -1
  82. package/dist/_chunks/History-BfX6XmZK.js.map +0 -1
  83. package/dist/_chunks/ListConfigurationPage-B3CXj8PY.js.map +0 -1
  84. package/dist/_chunks/ListConfigurationPage-DxKuVkKz.mjs.map +0 -1
  85. package/dist/_chunks/ListViewPage-Bk9VO__I.js.map +0 -1
  86. package/dist/_chunks/ListViewPage-D5D3tVPq.mjs.map +0 -1
  87. package/dist/_chunks/index-DzN3kBgx.js.map +0 -1
  88. package/dist/_chunks/index-VHviNMeW.mjs.map +0 -1
  89. package/dist/_chunks/layout-CPn1PM6x.mjs.map +0 -1
  90. package/dist/_chunks/layout-b91XRlD2.js.map +0 -1
@@ -219,6 +219,7 @@ const contentManagerApi = strapiAdmin.adminApi.enhanceEndpoints({
219
219
  ]
220
220
  });
221
221
  const documentApi = contentManagerApi.injectEndpoints({
222
+ overrideExisting: true,
222
223
  endpoints: (builder) => ({
223
224
  autoCloneDocument: builder.mutation({
224
225
  query: ({ model, sourceId, query }) => ({
@@ -948,12 +949,13 @@ const useDocumentActions = () => {
948
949
  );
949
950
  const [discardDocument] = useDiscardDocumentMutation();
950
951
  const discard = React__namespace.useCallback(
951
- async ({ collectionType, model, documentId }) => {
952
+ async ({ collectionType, model, documentId, params }) => {
952
953
  try {
953
954
  const res = await discardDocument({
954
955
  collectionType,
955
956
  model,
956
- documentId
957
+ documentId,
958
+ params
957
959
  });
958
960
  if ("error" in res) {
959
961
  toggleNotification({
@@ -1285,7 +1287,7 @@ const useDocumentActions = () => {
1285
1287
  };
1286
1288
  };
1287
1289
  const ProtectedHistoryPage = React.lazy(
1288
- () => Promise.resolve().then(() => require("./History-BfX6XmZK.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1290
+ () => Promise.resolve().then(() => require("./History-CqN6K7SX.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1289
1291
  );
1290
1292
  const routes$1 = [
1291
1293
  {
@@ -1298,31 +1300,31 @@ const routes$1 = [
1298
1300
  }
1299
1301
  ];
1300
1302
  const ProtectedEditViewPage = React.lazy(
1301
- () => Promise.resolve().then(() => require("./EditViewPage-CoQEnFlC.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1303
+ () => Promise.resolve().then(() => require("./EditViewPage-zT3fBr4Y.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1302
1304
  );
1303
1305
  const ProtectedListViewPage = React.lazy(
1304
- () => Promise.resolve().then(() => require("./ListViewPage-Bk9VO__I.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1306
+ () => Promise.resolve().then(() => require("./ListViewPage-pEw_zug9.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1305
1307
  );
1306
1308
  const ProtectedListConfiguration = React.lazy(
1307
- () => Promise.resolve().then(() => require("./ListConfigurationPage-B3CXj8PY.js")).then((mod) => ({
1309
+ () => Promise.resolve().then(() => require("./ListConfigurationPage-R_p-SbHZ.js")).then((mod) => ({
1308
1310
  default: mod.ProtectedListConfiguration
1309
1311
  }))
1310
1312
  );
1311
1313
  const ProtectedEditConfigurationPage = React.lazy(
1312
- () => Promise.resolve().then(() => require("./EditConfigurationPage-tDtWj7R2.js")).then((mod) => ({
1314
+ () => Promise.resolve().then(() => require("./EditConfigurationPage-DjFJw56M.js")).then((mod) => ({
1313
1315
  default: mod.ProtectedEditConfigurationPage
1314
1316
  }))
1315
1317
  );
1316
1318
  const ProtectedComponentConfigurationPage = React.lazy(
1317
- () => Promise.resolve().then(() => require("./ComponentConfigurationPage-DJcn1DrO.js")).then((mod) => ({
1319
+ () => Promise.resolve().then(() => require("./ComponentConfigurationPage-C-49MccQ.js")).then((mod) => ({
1318
1320
  default: mod.ProtectedComponentConfigurationPage
1319
1321
  }))
1320
1322
  );
1321
1323
  const NoPermissions = React.lazy(
1322
- () => Promise.resolve().then(() => require("./NoPermissionsPage-BQDM64_b.js")).then((mod) => ({ default: mod.NoPermissions }))
1324
+ () => Promise.resolve().then(() => require("./NoPermissionsPage-BtPrImPP.js")).then((mod) => ({ default: mod.NoPermissions }))
1323
1325
  );
1324
1326
  const NoContentType = React.lazy(
1325
- () => Promise.resolve().then(() => require("./NoContentTypePage-DsB2F7Z1.js")).then((mod) => ({ default: mod.NoContentType }))
1327
+ () => Promise.resolve().then(() => require("./NoContentTypePage-C5dcQojD.js")).then((mod) => ({ default: mod.NoContentType }))
1326
1328
  );
1327
1329
  const CollectionTypePages = () => {
1328
1330
  const { collectionType } = reactRouterDom.useParams();
@@ -1529,7 +1531,7 @@ const DocumentActionsMenu = ({
1529
1531
  display: "block",
1530
1532
  children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: [
1531
1533
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { color: convertActionVariantToColor(action.variant), gap: 2, tag: "span", children: [
1532
- action.icon,
1534
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { tag: "span", color: convertActionVariantToIconColor(action.variant), children: action.icon }),
1533
1535
  action.label
1534
1536
  ] }),
1535
1537
  action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsxRuntime.jsx(
@@ -1590,6 +1592,18 @@ const convertActionVariantToColor = (variant = "secondary") => {
1590
1592
  return "primary600";
1591
1593
  }
1592
1594
  };
1595
+ const convertActionVariantToIconColor = (variant = "secondary") => {
1596
+ switch (variant) {
1597
+ case "danger":
1598
+ return "danger600";
1599
+ case "secondary":
1600
+ return "neutral500";
1601
+ case "success":
1602
+ return "success600";
1603
+ default:
1604
+ return "primary600";
1605
+ }
1606
+ };
1593
1607
  const DocumentActionConfirmDialog = ({
1594
1608
  onClose,
1595
1609
  onCancel,
@@ -1612,22 +1626,20 @@ const DocumentActionConfirmDialog = ({
1612
1626
  }
1613
1627
  onClose();
1614
1628
  };
1615
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog, { isOpen, title, onClose: handleClose, children: [
1616
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.DialogBody, { children: content }),
1617
- /* @__PURE__ */ jsxRuntime.jsx(
1618
- designSystem.DialogFooter,
1619
- {
1620
- startAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
1621
- id: "app.components.Button.cancel",
1622
- defaultMessage: "Cancel"
1623
- }) }),
1624
- endAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleConfirm, variant, children: formatMessage({
1625
- id: "app.components.Button.confirm",
1626
- defaultMessage: "Confirm"
1627
- }) })
1628
- }
1629
- )
1630
- ] });
1629
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Content, { children: [
1630
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Header, { children: title }),
1631
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Body, { children: content }),
1632
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Footer, { children: [
1633
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Cancel, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", children: formatMessage({
1634
+ id: "app.components.Button.cancel",
1635
+ defaultMessage: "Cancel"
1636
+ }) }) }),
1637
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleConfirm, variant, children: formatMessage({
1638
+ id: "app.components.Button.confirm",
1639
+ defaultMessage: "Confirm"
1640
+ }) })
1641
+ ] })
1642
+ ] }) });
1631
1643
  };
1632
1644
  const DocumentActionModal = ({
1633
1645
  isOpen,
@@ -1637,34 +1649,17 @@ const DocumentActionModal = ({
1637
1649
  content: Content,
1638
1650
  onModalClose
1639
1651
  }) => {
1640
- const id = React__namespace.useId();
1641
- if (!isOpen) {
1642
- return null;
1643
- }
1644
1652
  const handleClose = () => {
1645
1653
  if (onClose) {
1646
1654
  onClose();
1647
1655
  }
1648
1656
  onModalClose();
1649
1657
  };
1650
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
1651
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
1652
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalBody, { children: typeof Content === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose }) : Content }),
1653
- /* @__PURE__ */ jsxRuntime.jsx(
1654
- designSystem.Box,
1655
- {
1656
- paddingTop: 4,
1657
- paddingBottom: 4,
1658
- paddingLeft: 5,
1659
- paddingRight: 5,
1660
- borderWidth: "1px 0 0 0",
1661
- borderStyle: "solid",
1662
- borderColor: "neutral150",
1663
- background: "neutral100",
1664
- children: typeof Footer === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Footer, { onClose: handleClose }) : Footer
1665
- }
1666
- )
1667
- ] });
1658
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Content, { children: [
1659
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Title, { children: title }) }),
1660
+ typeof Content === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose }) : /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Body, { children: Content }),
1661
+ typeof Footer === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Footer, { onClose: handleClose }) : Footer
1662
+ ] }) });
1668
1663
  };
1669
1664
  const PublishAction$1 = ({
1670
1665
  activeTab,
@@ -1882,10 +1877,8 @@ const UnpublishAction$1 = ({
1882
1877
  const { toggleNotification } = strapiAdmin.useNotification();
1883
1878
  const [shouldKeepDraft, setShouldKeepDraft] = React__namespace.useState(true);
1884
1879
  const isDocumentModified = document?.status === "modified";
1885
- const handleChange = (e) => {
1886
- if ("value" in e.target) {
1887
- setShouldKeepDraft(e.target.value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
1888
- }
1880
+ const handleChange = (value) => {
1881
+ setShouldKeepDraft(value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
1889
1882
  };
1890
1883
  if (!schema?.options?.draftAndPublish) {
1891
1884
  return null;
@@ -1935,40 +1928,24 @@ const UnpublishAction$1 = ({
1935
1928
  }) })
1936
1929
  ] }),
1937
1930
  /* @__PURE__ */ jsxRuntime.jsxs(
1938
- designSystem.Flex,
1931
+ designSystem.Radio.Group,
1939
1932
  {
1940
- onChange: handleChange,
1941
- direction: "column",
1942
- alignItems: "flex-start",
1943
- tag: "fieldset",
1944
- borderWidth: 0,
1945
- gap: 3,
1933
+ defaultValue: UNPUBLISH_DRAFT_OPTIONS.KEEP,
1934
+ name: "discard-options",
1935
+ "aria-label": formatMessage({
1936
+ id: "content-manager.actions.unpublish.dialog.radio-label",
1937
+ defaultMessage: "Choose an option to unpublish the document."
1938
+ }),
1939
+ onValueChange: handleChange,
1946
1940
  children: [
1947
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { tag: "legend" }),
1948
- /* @__PURE__ */ jsxRuntime.jsx(
1949
- designSystem.Radio,
1950
- {
1951
- checked: shouldKeepDraft,
1952
- value: UNPUBLISH_DRAFT_OPTIONS.KEEP,
1953
- name: "discard-options",
1954
- children: formatMessage({
1955
- id: "content-manager.actions.unpublish.dialog.option.keep-draft",
1956
- defaultMessage: "Keep draft"
1957
- })
1958
- }
1959
- ),
1960
- /* @__PURE__ */ jsxRuntime.jsx(
1961
- designSystem.Radio,
1962
- {
1963
- checked: !shouldKeepDraft,
1964
- value: UNPUBLISH_DRAFT_OPTIONS.DISCARD,
1965
- name: "discard-options",
1966
- children: formatMessage({
1967
- id: "content-manager.actions.unpublish.dialog.option.replace-draft",
1968
- defaultMessage: "Replace draft"
1969
- })
1970
- }
1971
- )
1941
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Radio.Item, { checked: shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.KEEP, children: formatMessage({
1942
+ id: "content-manager.actions.unpublish.dialog.option.keep-draft",
1943
+ defaultMessage: "Keep draft"
1944
+ }) }),
1945
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Radio.Item, { checked: !shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.DISCARD, children: formatMessage({
1946
+ id: "content-manager.actions.unpublish.dialog.option.replace-draft",
1947
+ defaultMessage: "Replace draft"
1948
+ }) })
1972
1949
  ]
1973
1950
  }
1974
1951
  )
@@ -2821,30 +2798,23 @@ const ConfirmBulkActionDialog = ({
2821
2798
  endAction
2822
2799
  }) => {
2823
2800
  const { formatMessage } = reactIntl.useIntl();
2824
- return /* @__PURE__ */ jsxRuntime.jsxs(
2825
- designSystem.Dialog,
2826
- {
2827
- onClose: onToggleDialog,
2828
- title: formatMessage({
2829
- id: "app.components.ConfirmDialog.title",
2830
- defaultMessage: "Confirmation"
2831
- }),
2832
- isOpen,
2833
- children: [
2834
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.DialogBody, { icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, {}), children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: dialogBody }) }),
2835
- /* @__PURE__ */ jsxRuntime.jsx(
2836
- designSystem.DialogFooter,
2837
- {
2838
- startAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
2839
- id: "app.components.Button.cancel",
2840
- defaultMessage: "Cancel"
2841
- }) }),
2842
- endAction
2843
- }
2844
- )
2845
- ]
2846
- }
2847
- );
2801
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Root, { onOpenChange: onToggleDialog, open: isOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Content, { children: [
2802
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Header, { children: formatMessage({
2803
+ id: "app.components.ConfirmDialog.title",
2804
+ defaultMessage: "Confirmation"
2805
+ }) }),
2806
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Body, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2807
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
2808
+ dialogBody
2809
+ ] }) }),
2810
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Footer, { children: [
2811
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Cancel, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { fullWidth: true, onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
2812
+ id: "app.components.Button.cancel",
2813
+ defaultMessage: "Cancel"
2814
+ }) }) }),
2815
+ endAction
2816
+ ] })
2817
+ ] }) });
2848
2818
  };
2849
2819
  const BoldChunk$1 = (chunks) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", children: chunks });
2850
2820
  const ConfirmDialogPublishAll = ({
@@ -2951,14 +2921,21 @@ const formatErrorMessages = (errors, parentKey, formatMessage) => {
2951
2921
  } else {
2952
2922
  messages.push(...formatErrorMessages(value, currentKey, formatMessage));
2953
2923
  }
2924
+ } else {
2925
+ messages.push(
2926
+ formatMessage(
2927
+ {
2928
+ id: `${value}.withField`,
2929
+ defaultMessage: value
2930
+ },
2931
+ { field: currentKey }
2932
+ )
2933
+ );
2954
2934
  }
2955
2935
  });
2956
2936
  return messages;
2957
2937
  };
2958
- const EntryValidationText = ({
2959
- validationErrors,
2960
- isPublished = false
2961
- }) => {
2938
+ const EntryValidationText = ({ validationErrors, status }) => {
2962
2939
  const { formatMessage } = reactIntl.useIntl();
2963
2940
  if (validationErrors) {
2964
2941
  const validationErrorsMessages = formatErrorMessages(validationErrors, "", formatMessage).join(
@@ -2969,7 +2946,7 @@ const EntryValidationText = ({
2969
2946
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tooltip, { description: validationErrorsMessages, children: /* @__PURE__ */ jsxRuntime.jsx(TypographyMaxWidth, { textColor: "danger600", variant: "omega", fontWeight: "semiBold", ellipsis: true, children: validationErrorsMessages }) })
2970
2947
  ] });
2971
2948
  }
2972
- if (isPublished) {
2949
+ if (status === "published") {
2973
2950
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
2974
2951
  /* @__PURE__ */ jsxRuntime.jsx(Icons.CheckCircle, { fill: "success600" }),
2975
2952
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "success600", fontWeight: "bold", children: formatMessage({
@@ -2978,6 +2955,15 @@ const EntryValidationText = ({
2978
2955
  }) })
2979
2956
  ] });
2980
2957
  }
2958
+ if (status === "modified") {
2959
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
2960
+ /* @__PURE__ */ jsxRuntime.jsx(Icons.ArrowsCounterClockwise, { fill: "alternative600" }),
2961
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: formatMessage({
2962
+ id: "content-manager.bulk-publish.modified",
2963
+ defaultMessage: "Ready to publish changes"
2964
+ }) })
2965
+ ] });
2966
+ }
2981
2967
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
2982
2968
  /* @__PURE__ */ jsxRuntime.jsx(Icons.CheckCircle, { fill: "success600" }),
2983
2969
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: formatMessage({
@@ -3029,7 +3015,7 @@ const SelectedEntriesTableContent = ({
3029
3015
  EntryValidationText,
3030
3016
  {
3031
3017
  validationErrors: validationErrors[row.documentId],
3032
- isPublished: row.status === "published"
3018
+ status: row.status
3033
3019
  }
3034
3020
  ) }),
3035
3021
  /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Table.Cell, { children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -3170,7 +3156,7 @@ const SelectedEntriesModalContent = ({
3170
3156
  );
3171
3157
  };
3172
3158
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3173
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalBody, { children: [
3159
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Body, { children: [
3174
3160
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: getFormattedCountMessage() }),
3175
3161
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { marginTop: 5, children: /* @__PURE__ */ jsxRuntime.jsx(
3176
3162
  SelectedEntriesTableContent,
@@ -3182,27 +3168,24 @@ const SelectedEntriesModalContent = ({
3182
3168
  }
3183
3169
  ) })
3184
3170
  ] }),
3185
- /* @__PURE__ */ jsxRuntime.jsx(
3186
- designSystem.ModalFooter,
3187
- {
3188
- startActions: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
3189
- id: "app.components.Button.cancel",
3190
- defaultMessage: "Cancel"
3191
- }) }),
3192
- endActions: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
3193
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
3194
- /* @__PURE__ */ jsxRuntime.jsx(
3195
- designSystem.Button,
3196
- {
3197
- onClick: toggleDialog,
3198
- disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
3199
- loading: isSubmittingForm,
3200
- children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3201
- }
3202
- )
3203
- ] })
3204
- }
3205
- ),
3171
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Footer, { children: [
3172
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
3173
+ id: "app.components.Button.cancel",
3174
+ defaultMessage: "Cancel"
3175
+ }) }),
3176
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
3177
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
3178
+ /* @__PURE__ */ jsxRuntime.jsx(
3179
+ designSystem.Button,
3180
+ {
3181
+ onClick: toggleDialog,
3182
+ disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
3183
+ loading: isSubmittingForm,
3184
+ children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3185
+ }
3186
+ )
3187
+ ] })
3188
+ ] }),
3206
3189
  /* @__PURE__ */ jsxRuntime.jsx(
3207
3190
  ConfirmDialogPublishAll,
3208
3191
  {
@@ -3267,143 +3250,10 @@ const BulkActionsRenderer = () => {
3267
3250
  documents: selectedRows
3268
3251
  },
3269
3252
  descriptions: plugins["content-manager"].apis.getBulkActions(),
3270
- children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsxRuntime.jsx(BulkActionAction, { ...action }, action.id))
3253
+ children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsxRuntime.jsx(DocumentActionButton, { ...action }, action.id))
3271
3254
  }
3272
3255
  ) });
3273
3256
  };
3274
- const BulkActionAction = (action) => {
3275
- const [dialogId, setDialogId] = React__namespace.useState(null);
3276
- const { toggleNotification } = strapiAdmin.useNotification();
3277
- const handleClick = (action2) => (e) => {
3278
- const { onClick, dialog, id } = action2;
3279
- if (onClick) {
3280
- onClick(e);
3281
- }
3282
- if (dialog) {
3283
- switch (dialog.type) {
3284
- case "notification":
3285
- toggleNotification({
3286
- title: dialog.title,
3287
- message: dialog.content,
3288
- type: dialog.status,
3289
- timeout: dialog.timeout,
3290
- onClose: dialog.onClose
3291
- });
3292
- break;
3293
- case "dialog":
3294
- case "modal": {
3295
- e.preventDefault();
3296
- setDialogId(id);
3297
- }
3298
- }
3299
- }
3300
- };
3301
- const handleClose = () => {
3302
- setDialogId(null);
3303
- if (action.dialog?.type === "modal" && action.dialog?.onClose) {
3304
- action.dialog.onClose();
3305
- }
3306
- };
3307
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3308
- /* @__PURE__ */ jsxRuntime.jsx(
3309
- designSystem.Button,
3310
- {
3311
- disabled: action.disabled,
3312
- startIcon: action.icon,
3313
- variant: action.variant,
3314
- onClick: handleClick(action),
3315
- children: action.label
3316
- }
3317
- ),
3318
- action.dialog?.type === "dialog" ? /* @__PURE__ */ jsxRuntime.jsx(
3319
- BulkActionConfirmDialog,
3320
- {
3321
- ...action.dialog,
3322
- variant: action.variant,
3323
- isOpen: dialogId === action.id,
3324
- onClose: handleClose
3325
- }
3326
- ) : null,
3327
- action.dialog?.type === "modal" ? /* @__PURE__ */ jsxRuntime.jsx(
3328
- BulkActionModal,
3329
- {
3330
- ...action.dialog,
3331
- onModalClose: handleClose,
3332
- isOpen: dialogId === action.id
3333
- }
3334
- ) : null
3335
- ] });
3336
- };
3337
- const BulkActionConfirmDialog = ({
3338
- onClose,
3339
- onCancel,
3340
- onConfirm,
3341
- title,
3342
- content,
3343
- confirmButton,
3344
- isOpen,
3345
- variant = "secondary"
3346
- }) => {
3347
- const { formatMessage } = reactIntl.useIntl();
3348
- const handleClose = async () => {
3349
- if (onCancel) {
3350
- await onCancel();
3351
- }
3352
- onClose();
3353
- };
3354
- const handleConfirm = async () => {
3355
- if (onConfirm) {
3356
- await onConfirm();
3357
- }
3358
- onClose();
3359
- };
3360
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog, { isOpen, title, onClose: handleClose, children: [
3361
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.DialogBody, { icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, {}), children: content }),
3362
- /* @__PURE__ */ jsxRuntime.jsx(
3363
- designSystem.DialogFooter,
3364
- {
3365
- startAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
3366
- id: "app.components.Button.cancel",
3367
- defaultMessage: "Cancel"
3368
- }) }),
3369
- endAction: /* @__PURE__ */ jsxRuntime.jsx(
3370
- designSystem.Button,
3371
- {
3372
- onClick: handleConfirm,
3373
- variant: variant === "danger-light" ? variant : "secondary",
3374
- startIcon: variant === "danger-light" ? /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {}) : /* @__PURE__ */ jsxRuntime.jsx(Icons.Check, {}),
3375
- children: confirmButton ? confirmButton : formatMessage({
3376
- id: "app.components.Button.confirm",
3377
- defaultMessage: "Confirm"
3378
- })
3379
- }
3380
- )
3381
- }
3382
- )
3383
- ] });
3384
- };
3385
- const BulkActionModal = ({
3386
- isOpen,
3387
- title,
3388
- onClose,
3389
- content: Content,
3390
- onModalClose
3391
- }) => {
3392
- const id = React__namespace.useId();
3393
- if (!isOpen) {
3394
- return null;
3395
- }
3396
- const handleClose = () => {
3397
- if (onClose) {
3398
- onClose();
3399
- }
3400
- onModalClose();
3401
- };
3402
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
3403
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
3404
- /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose })
3405
- ] });
3406
- };
3407
3257
  const DeleteAction = ({ documents, model }) => {
3408
3258
  const { formatMessage } = reactIntl.useIntl();
3409
3259
  const { schema: contentType } = useDoc();
@@ -3436,6 +3286,7 @@ const DeleteAction = ({ documents, model }) => {
3436
3286
  defaultMessage: "Confirmation"
3437
3287
  }),
3438
3288
  content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
3289
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
3439
3290
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3440
3291
  id: "popUpWarning.bodyMessage.contentType.delete.all",
3441
3292
  defaultMessage: "Are you sure you want to delete these entries?"
@@ -3472,7 +3323,7 @@ const UnpublishAction = ({ documents, model }) => {
3472
3323
  selectRow([]);
3473
3324
  }
3474
3325
  };
3475
- const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published");
3326
+ const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
3476
3327
  if (!showUnpublishButton)
3477
3328
  return null;
3478
3329
  return {
@@ -3485,6 +3336,7 @@ const UnpublishAction = ({ documents, model }) => {
3485
3336
  defaultMessage: "Confirmation"
3486
3337
  }),
3487
3338
  content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
3339
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
3488
3340
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3489
3341
  id: "popUpWarning.bodyMessage.contentType.unpublish.all",
3490
3342
  defaultMessage: "Are you sure you want to unpublish these entries?"
@@ -3870,15 +3722,24 @@ const index = {
3870
3722
  defaultMessage: "Content Manager"
3871
3723
  },
3872
3724
  permissions: [],
3873
- Component: () => Promise.resolve().then(() => require("./layout-b91XRlD2.js")).then((mod) => ({ default: mod.Layout })),
3874
3725
  position: 1
3875
3726
  });
3727
+ app.router.addRoute({
3728
+ path: "content-manager/*",
3729
+ lazy: async () => {
3730
+ const { Layout } = await Promise.resolve().then(() => require("./layout-Dm6fbiQj.js"));
3731
+ return {
3732
+ Component: Layout
3733
+ };
3734
+ },
3735
+ children: routes
3736
+ });
3876
3737
  app.registerPlugin(cm.config);
3877
3738
  },
3878
3739
  async registerTrads({ locales }) {
3879
3740
  const importedTrads = await Promise.all(
3880
3741
  locales.map((locale) => {
3881
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-BN1bvFK7.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-EUonQTon.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B7kGGg3E.js")), "./translations/gu.json": () => Promise.resolve().then(() => require("./gu-BRmF601H.js")), "./translations/hi.json": () => Promise.resolve().then(() => require("./hi-CCJBptSq.js")), "./translations/hu.json": () => Promise.resolve().then(() => require("./hu-sNV_yLYy.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-B5Ser98A.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-DkBIs7vD.js")), "./translations/ja.json": () => Promise.resolve().then(() => require("./ja-CcFe8diO.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-woFZPmLk.js")), "./translations/ml.json": () => Promise.resolve().then(() => require("./ml-C2W8N8k1.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-BuFotyP_.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-bbEOHChV.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-uzwG-hk7.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-BiOz37D9.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-CeXQuq50.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BT3ybNny.js")), "./translations/sa.json": () => Promise.resolve().then(() => require("./sa-CcvkYInH.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-CvY09Xjv.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-MYDuzgvT.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-D9_GfAjc.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-D9UH-O_R.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-C8EiqJY7.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-CJlYDheJ.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-9kOncHGw.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CQQfszqR.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
3742
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-fbKQxLGn.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-EUonQTon.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B7kGGg3E.js")), "./translations/gu.json": () => Promise.resolve().then(() => require("./gu-BRmF601H.js")), "./translations/hi.json": () => Promise.resolve().then(() => require("./hi-CCJBptSq.js")), "./translations/hu.json": () => Promise.resolve().then(() => require("./hu-sNV_yLYy.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-B5Ser98A.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-DkBIs7vD.js")), "./translations/ja.json": () => Promise.resolve().then(() => require("./ja-CcFe8diO.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-woFZPmLk.js")), "./translations/ml.json": () => Promise.resolve().then(() => require("./ml-C2W8N8k1.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-BuFotyP_.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-bbEOHChV.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-uzwG-hk7.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-BiOz37D9.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-CeXQuq50.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BT3ybNny.js")), "./translations/sa.json": () => Promise.resolve().then(() => require("./sa-CcvkYInH.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-CvY09Xjv.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-MYDuzgvT.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-D9_GfAjc.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-D9UH-O_R.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-C8EiqJY7.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-CJlYDheJ.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-9kOncHGw.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CQQfszqR.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
3882
3743
  return {
3883
3744
  data: prefixPluginTranslations(data, PLUGIN_ID),
3884
3745
  locale
@@ -3922,7 +3783,6 @@ exports.getDisplayName = getDisplayName;
3922
3783
  exports.getMainField = getMainField;
3923
3784
  exports.getTranslation = getTranslation;
3924
3785
  exports.index = index;
3925
- exports.routes = routes;
3926
3786
  exports.setInitialData = setInitialData;
3927
3787
  exports.useContentTypeSchema = useContentTypeSchema;
3928
3788
  exports.useDoc = useDoc;
@@ -3936,4 +3796,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
3936
3796
  exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
3937
3797
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
3938
3798
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
3939
- //# sourceMappingURL=index-DzN3kBgx.js.map
3799
+ //# sourceMappingURL=index-DVPWZkbS.js.map