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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-DiigqkCf.js → ComponentConfigurationPage-C-49MccQ.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-DiigqkCf.js.map → ComponentConfigurationPage-C-49MccQ.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-CYqQv0ne.mjs → ComponentConfigurationPage-DmwmiFQy.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-CYqQv0ne.mjs.map → ComponentConfigurationPage-DmwmiFQy.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-BeeGw2RI.js → EditConfigurationPage-DjFJw56M.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-BeeGw2RI.js.map → EditConfigurationPage-DjFJw56M.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-BArY-b8_.mjs → EditConfigurationPage-JT3E7NZy.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-BArY-b8_.mjs.map → EditConfigurationPage-JT3E7NZy.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-B8ETGsFo.mjs → EditViewPage-CPj61RMh.mjs} +46 -46
  10. package/dist/_chunks/EditViewPage-CPj61RMh.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-DZPDqo_G.js → EditViewPage-zT3fBr4Y.js} +45 -45
  12. package/dist/_chunks/EditViewPage-zT3fBr4Y.js.map +1 -0
  13. package/dist/_chunks/{Field-DnJMS8cB.js → Field-Boxf9Ajp.js} +372 -117
  14. package/dist/_chunks/Field-Boxf9Ajp.js.map +1 -0
  15. package/dist/_chunks/{Field-Dn4ThnFB.mjs → Field-dha5VnIQ.mjs} +373 -118
  16. package/dist/_chunks/Field-dha5VnIQ.mjs.map +1 -0
  17. package/dist/_chunks/{Form-DY721B6y.mjs → Form-DHrru2AV.mjs} +27 -28
  18. package/dist/_chunks/Form-DHrru2AV.mjs.map +1 -0
  19. package/dist/_chunks/{Form-DiTmWq2k.js → Form-y5g1SRsh.js} +25 -26
  20. package/dist/_chunks/Form-y5g1SRsh.js.map +1 -0
  21. package/dist/_chunks/{History-CwWN_uNp.mjs → History-Bru_KoeP.mjs} +101 -22
  22. package/dist/_chunks/History-Bru_KoeP.mjs.map +1 -0
  23. package/dist/_chunks/{History-DShoVAh0.js → History-CqN6K7SX.js} +100 -21
  24. package/dist/_chunks/History-CqN6K7SX.js.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-D062TiTL.mjs → ListConfigurationPage-D8wGABj0.mjs} +43 -45
  26. package/dist/_chunks/ListConfigurationPage-D8wGABj0.mjs.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-COIRGF5b.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-BeHTsIr5.mjs → ListViewPage-SID6TRb9.mjs} +62 -67
  30. package/dist/_chunks/ListViewPage-SID6TRb9.mjs.map +1 -0
  31. package/dist/_chunks/{ListViewPage-CFuXPZ_r.js → ListViewPage-pEw_zug9.js} +60 -65
  32. package/dist/_chunks/ListViewPage-pEw_zug9.js.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-rdH0Zp0A.js → NoContentTypePage-C5dcQojD.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-rdH0Zp0A.js.map → NoContentTypePage-C5dcQojD.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-B_KLijrG.mjs → NoContentTypePage-CJ7UXwrQ.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-B_KLijrG.mjs.map → NoContentTypePage-CJ7UXwrQ.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-BPU-v48V.mjs → NoPermissionsPage-B7syEq5E.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-BPU-v48V.mjs.map → NoPermissionsPage-B7syEq5E.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-D8gbX1Y_.js → NoPermissionsPage-BtPrImPP.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-D8gbX1Y_.js.map → NoPermissionsPage-BtPrImPP.js.map} +1 -1
  41. package/dist/_chunks/{Relations-Bbz90ZWv.mjs → Relations-B9Crnhnn.mjs} +3 -3
  42. package/dist/_chunks/{Relations-Bbz90ZWv.mjs.map → Relations-B9Crnhnn.mjs.map} +1 -1
  43. package/dist/_chunks/{Relations-wHyjWWT5.js → Relations-DjTQ5kGB.js} +3 -3
  44. package/dist/_chunks/{Relations-wHyjWWT5.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-Dv4oDn11.mjs → index-DJXJw9V5.mjs} +172 -314
  50. package/dist/_chunks/index-DJXJw9V5.mjs.map +1 -0
  51. package/dist/_chunks/{index-BRHpg0az.js → index-DVPWZkbS.js} +143 -285
  52. package/dist/_chunks/index-DVPWZkbS.js.map +1 -0
  53. package/dist/_chunks/{layout-hInnLBbA.mjs → layout-Bau7ZfLV.mjs} +19 -14
  54. package/dist/_chunks/layout-Bau7ZfLV.mjs.map +1 -0
  55. package/dist/_chunks/{layout-pZc2Q3bK.js → layout-Dm6fbiQj.js} +18 -13
  56. package/dist/_chunks/layout-Dm6fbiQj.js.map +1 -0
  57. package/dist/_chunks/{relations-BcPI8XhI.mjs → relations-BH_kBSJ0.mjs} +2 -2
  58. package/dist/_chunks/{relations-BcPI8XhI.mjs.map → relations-BH_kBSJ0.mjs.map} +1 -1
  59. package/dist/_chunks/{relations-CVE30dYt.js → relations-CKnpRgrN.js} +2 -2
  60. package/dist/_chunks/{relations-CVE30dYt.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 +20 -15
  70. package/dist/server/index.js.map +1 -1
  71. package/dist/server/index.mjs +20 -15
  72. package/dist/server/index.mjs.map +1 -1
  73. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  74. package/dist/server/src/controllers/single-types.d.ts.map +1 -1
  75. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  76. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  77. package/package.json +8 -8
  78. package/dist/_chunks/EditViewPage-B8ETGsFo.mjs.map +0 -1
  79. package/dist/_chunks/EditViewPage-DZPDqo_G.js.map +0 -1
  80. package/dist/_chunks/Field-Dn4ThnFB.mjs.map +0 -1
  81. package/dist/_chunks/Field-DnJMS8cB.js.map +0 -1
  82. package/dist/_chunks/Form-DY721B6y.mjs.map +0 -1
  83. package/dist/_chunks/Form-DiTmWq2k.js.map +0 -1
  84. package/dist/_chunks/History-CwWN_uNp.mjs.map +0 -1
  85. package/dist/_chunks/History-DShoVAh0.js.map +0 -1
  86. package/dist/_chunks/ListConfigurationPage-COIRGF5b.js.map +0 -1
  87. package/dist/_chunks/ListConfigurationPage-D062TiTL.mjs.map +0 -1
  88. package/dist/_chunks/ListViewPage-BeHTsIr5.mjs.map +0 -1
  89. package/dist/_chunks/ListViewPage-CFuXPZ_r.js.map +0 -1
  90. package/dist/_chunks/index-BRHpg0az.js.map +0 -1
  91. package/dist/_chunks/index-Dv4oDn11.mjs.map +0 -1
  92. package/dist/_chunks/layout-hInnLBbA.mjs.map +0 -1
  93. package/dist/_chunks/layout-pZc2Q3bK.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-DShoVAh0.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-DZPDqo_G.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-CFuXPZ_r.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-COIRGF5b.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-BeeGw2RI.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-DiigqkCf.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-D8gbX1Y_.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-rdH0Zp0A.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 = ({
@@ -2904,7 +2874,7 @@ const ConfirmDialogPublishAll = ({
2904
2874
  defaultMessage: "Are you sure you want to publish these entries?"
2905
2875
  })
2906
2876
  ] }),
2907
- schema?.pluginOptions && "i18n" in schema.pluginOptions && schema?.pluginOptions.i18n && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "danger500", children: formatMessage(
2877
+ schema?.pluginOptions && "i18n" in schema.pluginOptions && schema?.pluginOptions.i18n && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "danger500", textAlign: "center", children: formatMessage(
2908
2878
  {
2909
2879
  id: getTranslation("Settings.list.actions.publishAdditionalInfos"),
2910
2880
  defaultMessage: "This will publish the active locale versions <em>(from Internationalization)</em>"
@@ -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.publishedAt !== null
3018
+ status: row.status
3033
3019
  }
3034
3020
  ) }),
3035
3021
  /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Table.Cell, { children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -3118,18 +3104,16 @@ const SelectedEntriesModalContent = ({
3118
3104
  const [isDialogOpen, setIsDialogOpen] = React__namespace.useState(false);
3119
3105
  const { publishMany: bulkPublishAction } = useDocumentActions();
3120
3106
  const [, { isLoading: isSubmittingForm }] = usePublishManyDocumentsMutation();
3121
- const selectedEntries = strapiAdmin.useTable("publishAction", (state) => state.selectedRows);
3122
- const entriesToPublish = selectedEntries.reduce((acc, entry) => {
3123
- if (!validationErrors[entry.documentId]) {
3124
- acc.push(entry.documentId);
3125
- }
3126
- return acc;
3127
- }, []);
3107
+ const selectedRows = strapiAdmin.useTable("publishAction", (state) => state.selectedRows);
3108
+ const selectedEntries = rows.filter(
3109
+ (entry) => selectedRows.some((selectedEntry) => selectedEntry.documentId === entry.documentId)
3110
+ );
3111
+ const entriesToPublish = selectedEntries.filter((entry) => !validationErrors[entry.documentId]).map((entry) => entry.documentId);
3128
3112
  const selectedEntriesWithErrorsCount = selectedEntries.filter(
3129
3113
  ({ documentId }) => validationErrors[documentId]
3130
3114
  ).length;
3131
3115
  const selectedEntriesPublished = selectedEntries.filter(
3132
- ({ publishedAt }) => !!publishedAt
3116
+ ({ status }) => status === "published"
3133
3117
  ).length;
3134
3118
  const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublished;
3135
3119
  const toggleDialog = () => setIsDialogOpen((prev) => !prev);
@@ -3172,7 +3156,7 @@ const SelectedEntriesModalContent = ({
3172
3156
  );
3173
3157
  };
3174
3158
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3175
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalBody, { children: [
3159
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Body, { children: [
3176
3160
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: getFormattedCountMessage() }),
3177
3161
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { marginTop: 5, children: /* @__PURE__ */ jsxRuntime.jsx(
3178
3162
  SelectedEntriesTableContent,
@@ -3184,27 +3168,24 @@ const SelectedEntriesModalContent = ({
3184
3168
  }
3185
3169
  ) })
3186
3170
  ] }),
3187
- /* @__PURE__ */ jsxRuntime.jsx(
3188
- designSystem.ModalFooter,
3189
- {
3190
- startActions: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
3191
- id: "app.components.Button.cancel",
3192
- defaultMessage: "Cancel"
3193
- }) }),
3194
- endActions: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
3195
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
3196
- /* @__PURE__ */ jsxRuntime.jsx(
3197
- designSystem.Button,
3198
- {
3199
- onClick: toggleDialog,
3200
- disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || isLoading,
3201
- loading: isSubmittingForm,
3202
- children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3203
- }
3204
- )
3205
- ] })
3206
- }
3207
- ),
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
+ ] }),
3208
3189
  /* @__PURE__ */ jsxRuntime.jsx(
3209
3190
  ConfirmDialogPublishAll,
3210
3191
  {
@@ -3269,143 +3250,10 @@ const BulkActionsRenderer = () => {
3269
3250
  documents: selectedRows
3270
3251
  },
3271
3252
  descriptions: plugins["content-manager"].apis.getBulkActions(),
3272
- 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))
3273
3254
  }
3274
3255
  ) });
3275
3256
  };
3276
- const BulkActionAction = (action) => {
3277
- const [dialogId, setDialogId] = React__namespace.useState(null);
3278
- const { toggleNotification } = strapiAdmin.useNotification();
3279
- const handleClick = (action2) => (e) => {
3280
- const { onClick, dialog, id } = action2;
3281
- if (onClick) {
3282
- onClick(e);
3283
- }
3284
- if (dialog) {
3285
- switch (dialog.type) {
3286
- case "notification":
3287
- toggleNotification({
3288
- title: dialog.title,
3289
- message: dialog.content,
3290
- type: dialog.status,
3291
- timeout: dialog.timeout,
3292
- onClose: dialog.onClose
3293
- });
3294
- break;
3295
- case "dialog":
3296
- case "modal": {
3297
- e.preventDefault();
3298
- setDialogId(id);
3299
- }
3300
- }
3301
- }
3302
- };
3303
- const handleClose = () => {
3304
- setDialogId(null);
3305
- if (action.dialog?.type === "modal" && action.dialog?.onClose) {
3306
- action.dialog.onClose();
3307
- }
3308
- };
3309
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3310
- /* @__PURE__ */ jsxRuntime.jsx(
3311
- designSystem.Button,
3312
- {
3313
- disabled: action.disabled,
3314
- startIcon: action.icon,
3315
- variant: action.variant,
3316
- onClick: handleClick(action),
3317
- children: action.label
3318
- }
3319
- ),
3320
- action.dialog?.type === "dialog" ? /* @__PURE__ */ jsxRuntime.jsx(
3321
- BulkActionConfirmDialog,
3322
- {
3323
- ...action.dialog,
3324
- variant: action.variant,
3325
- isOpen: dialogId === action.id,
3326
- onClose: handleClose
3327
- }
3328
- ) : null,
3329
- action.dialog?.type === "modal" ? /* @__PURE__ */ jsxRuntime.jsx(
3330
- BulkActionModal,
3331
- {
3332
- ...action.dialog,
3333
- onModalClose: handleClose,
3334
- isOpen: dialogId === action.id
3335
- }
3336
- ) : null
3337
- ] });
3338
- };
3339
- const BulkActionConfirmDialog = ({
3340
- onClose,
3341
- onCancel,
3342
- onConfirm,
3343
- title,
3344
- content,
3345
- confirmButton,
3346
- isOpen,
3347
- variant = "secondary"
3348
- }) => {
3349
- const { formatMessage } = reactIntl.useIntl();
3350
- const handleClose = async () => {
3351
- if (onCancel) {
3352
- await onCancel();
3353
- }
3354
- onClose();
3355
- };
3356
- const handleConfirm = async () => {
3357
- if (onConfirm) {
3358
- await onConfirm();
3359
- }
3360
- onClose();
3361
- };
3362
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog, { isOpen, title, onClose: handleClose, children: [
3363
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.DialogBody, { icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, {}), children: content }),
3364
- /* @__PURE__ */ jsxRuntime.jsx(
3365
- designSystem.DialogFooter,
3366
- {
3367
- startAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
3368
- id: "app.components.Button.cancel",
3369
- defaultMessage: "Cancel"
3370
- }) }),
3371
- endAction: /* @__PURE__ */ jsxRuntime.jsx(
3372
- designSystem.Button,
3373
- {
3374
- onClick: handleConfirm,
3375
- variant: variant === "danger-light" ? variant : "secondary",
3376
- startIcon: variant === "danger-light" ? /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {}) : /* @__PURE__ */ jsxRuntime.jsx(Icons.Check, {}),
3377
- children: confirmButton ? confirmButton : formatMessage({
3378
- id: "app.components.Button.confirm",
3379
- defaultMessage: "Confirm"
3380
- })
3381
- }
3382
- )
3383
- }
3384
- )
3385
- ] });
3386
- };
3387
- const BulkActionModal = ({
3388
- isOpen,
3389
- title,
3390
- onClose,
3391
- content: Content,
3392
- onModalClose
3393
- }) => {
3394
- const id = React__namespace.useId();
3395
- if (!isOpen) {
3396
- return null;
3397
- }
3398
- const handleClose = () => {
3399
- if (onClose) {
3400
- onClose();
3401
- }
3402
- onModalClose();
3403
- };
3404
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
3405
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
3406
- /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose })
3407
- ] });
3408
- };
3409
3257
  const DeleteAction = ({ documents, model }) => {
3410
3258
  const { formatMessage } = reactIntl.useIntl();
3411
3259
  const { schema: contentType } = useDoc();
@@ -3438,6 +3286,7 @@ const DeleteAction = ({ documents, model }) => {
3438
3286
  defaultMessage: "Confirmation"
3439
3287
  }),
3440
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" }) }),
3441
3290
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3442
3291
  id: "popUpWarning.bodyMessage.contentType.delete.all",
3443
3292
  defaultMessage: "Are you sure you want to delete these entries?"
@@ -3474,7 +3323,7 @@ const UnpublishAction = ({ documents, model }) => {
3474
3323
  selectRow([]);
3475
3324
  }
3476
3325
  };
3477
- const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published");
3326
+ const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
3478
3327
  if (!showUnpublishButton)
3479
3328
  return null;
3480
3329
  return {
@@ -3487,6 +3336,7 @@ const UnpublishAction = ({ documents, model }) => {
3487
3336
  defaultMessage: "Confirmation"
3488
3337
  }),
3489
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" }) }),
3490
3340
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3491
3341
  id: "popUpWarning.bodyMessage.contentType.unpublish.all",
3492
3342
  defaultMessage: "Are you sure you want to unpublish these entries?"
@@ -3872,15 +3722,24 @@ const index = {
3872
3722
  defaultMessage: "Content Manager"
3873
3723
  },
3874
3724
  permissions: [],
3875
- Component: () => Promise.resolve().then(() => require("./layout-pZc2Q3bK.js")).then((mod) => ({ default: mod.Layout })),
3876
3725
  position: 1
3877
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
+ });
3878
3737
  app.registerPlugin(cm.config);
3879
3738
  },
3880
3739
  async registerTrads({ locales }) {
3881
3740
  const importedTrads = await Promise.all(
3882
3741
  locales.map((locale) => {
3883
- 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 }) => {
3884
3743
  return {
3885
3744
  data: prefixPluginTranslations(data, PLUGIN_ID),
3886
3745
  locale
@@ -3924,7 +3783,6 @@ exports.getDisplayName = getDisplayName;
3924
3783
  exports.getMainField = getMainField;
3925
3784
  exports.getTranslation = getTranslation;
3926
3785
  exports.index = index;
3927
- exports.routes = routes;
3928
3786
  exports.setInitialData = setInitialData;
3929
3787
  exports.useContentTypeSchema = useContentTypeSchema;
3930
3788
  exports.useDoc = useDoc;
@@ -3938,4 +3796,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
3938
3796
  exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
3939
3797
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
3940
3798
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
3941
- //# sourceMappingURL=index-BRHpg0az.js.map
3799
+ //# sourceMappingURL=index-DVPWZkbS.js.map