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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-DJcn1DrO.js → ComponentConfigurationPage-BvHtG7uH.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-DJcn1DrO.js.map → ComponentConfigurationPage-BvHtG7uH.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-CR5XdR33.mjs → ComponentConfigurationPage-DHNM3YBz.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-CR5XdR33.mjs.map → ComponentConfigurationPage-DHNM3YBz.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-DmCIb4kD.mjs → EditConfigurationPage-Cp6HAEzN.mjs} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-DmCIb4kD.mjs.map → EditConfigurationPage-Cp6HAEzN.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-tDtWj7R2.js → EditConfigurationPage-DOmfCEMo.js} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-tDtWj7R2.js.map → EditConfigurationPage-DOmfCEMo.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-CoQEnFlC.js → EditViewPage-BqNpC6hO.js} +45 -45
  10. package/dist/_chunks/EditViewPage-BqNpC6hO.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-DvaV7U9b.mjs → EditViewPage-BtkEx339.mjs} +46 -46
  12. package/dist/_chunks/EditViewPage-BtkEx339.mjs.map +1 -0
  13. package/dist/_chunks/{Field-Cz_J9551.mjs → Field-R5NbffTB.mjs} +373 -118
  14. package/dist/_chunks/Field-R5NbffTB.mjs.map +1 -0
  15. package/dist/_chunks/{Field-ZdrmmQ4Y.js → Field-lsPFnAmH.js} +372 -117
  16. package/dist/_chunks/Field-lsPFnAmH.js.map +1 -0
  17. package/dist/_chunks/{Form-Dxmihyw8.mjs → Form-BHmXSfyy.mjs} +27 -28
  18. package/dist/_chunks/Form-BHmXSfyy.mjs.map +1 -0
  19. package/dist/_chunks/{Form-Bpig5rch.js → Form-CcGboku8.js} +25 -26
  20. package/dist/_chunks/Form-CcGboku8.js.map +1 -0
  21. package/dist/_chunks/{History-BfX6XmZK.js → History-Bsud8jwh.js} +116 -22
  22. package/dist/_chunks/History-Bsud8jwh.js.map +1 -0
  23. package/dist/_chunks/{History-BZP8n7KT.mjs → History-ByUPL3T3.mjs} +117 -23
  24. package/dist/_chunks/History-ByUPL3T3.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-DxKuVkKz.mjs → ListConfigurationPage-Bm5HACXf.mjs} +43 -45
  26. package/dist/_chunks/ListConfigurationPage-Bm5HACXf.mjs.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-B3CXj8PY.js → ListConfigurationPage-DiT463qx.js} +42 -43
  28. package/dist/_chunks/ListConfigurationPage-DiT463qx.js.map +1 -0
  29. package/dist/_chunks/{ListViewPage-Bk9VO__I.js → ListViewPage-CsrC9L_d.js} +59 -67
  30. package/dist/_chunks/ListViewPage-CsrC9L_d.js.map +1 -0
  31. package/dist/_chunks/{ListViewPage-D5D3tVPq.mjs → ListViewPage-JSyNAAYu.mjs} +60 -68
  32. package/dist/_chunks/ListViewPage-JSyNAAYu.mjs.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-DsB2F7Z1.js → NoContentTypePage-Bsvng4II.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-DsB2F7Z1.js.map → NoContentTypePage-Bsvng4II.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DnMeuQCj.mjs → NoContentTypePage-CsrQUpBE.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DnMeuQCj.mjs.map → NoContentTypePage-CsrQUpBE.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-BQDM64_b.js → NoPermissionsPage-CdHNJtEf.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-BQDM64_b.js.map → NoPermissionsPage-CdHNJtEf.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-OyoME_Tf.mjs → NoPermissionsPage-DNmf_pj0.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-OyoME_Tf.mjs.map → NoPermissionsPage-DNmf_pj0.mjs.map} +1 -1
  41. package/dist/_chunks/{Relations-B6B3A3mb.js → Relations-CghaPv2D.js} +3 -3
  42. package/dist/_chunks/{Relations-B6B3A3mb.js.map → Relations-CghaPv2D.js.map} +1 -1
  43. package/dist/_chunks/{Relations-BOYZmuWy.mjs → Relations-u8-37jK0.mjs} +3 -3
  44. package/dist/_chunks/{Relations-BOYZmuWy.mjs.map → Relations-u8-37jK0.mjs.map} +1 -1
  45. package/dist/_chunks/{en-Dzv55oQw.mjs → en-Ux26r5pl.mjs} +4 -1
  46. package/dist/_chunks/{en-Dzv55oQw.mjs.map → en-Ux26r5pl.mjs.map} +1 -1
  47. package/dist/_chunks/{en-BN1bvFK7.js → en-fbKQxLGn.js} +4 -1
  48. package/dist/_chunks/{en-BN1bvFK7.js.map → en-fbKQxLGn.js.map} +1 -1
  49. package/dist/_chunks/{index-DzN3kBgx.js → index-BOZx6IMg.js} +156 -283
  50. package/dist/_chunks/index-BOZx6IMg.js.map +1 -0
  51. package/dist/_chunks/{index-VHviNMeW.mjs → index-CaE6NG4a.mjs} +185 -312
  52. package/dist/_chunks/index-CaE6NG4a.mjs.map +1 -0
  53. package/dist/_chunks/{layout-CPn1PM6x.mjs → layout-Bx7svTbY.mjs} +21 -16
  54. package/dist/_chunks/layout-Bx7svTbY.mjs.map +1 -0
  55. package/dist/_chunks/{layout-b91XRlD2.js → layout-Ciz224q5.js} +20 -15
  56. package/dist/_chunks/layout-Ciz224q5.js.map +1 -0
  57. package/dist/_chunks/{relations-CA7IYmcP.js → relations-CP8sB2YZ.js} +2 -2
  58. package/dist/_chunks/{relations-CA7IYmcP.js.map → relations-CP8sB2YZ.js.map} +1 -1
  59. package/dist/_chunks/{relations-BsqxS6tR.mjs → relations-Cxc1cEv3.mjs} +2 -2
  60. package/dist/_chunks/{relations-BsqxS6tR.mjs.map → relations-Cxc1cEv3.mjs.map} +1 -1
  61. package/dist/admin/index.js +1 -1
  62. package/dist/admin/index.mjs +8 -8
  63. package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
  64. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +7 -3
  65. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +4 -0
  66. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +2 -10
  67. package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
  68. package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
  69. package/dist/server/index.js +9 -4
  70. package/dist/server/index.js.map +1 -1
  71. package/dist/server/index.mjs +9 -4
  72. package/dist/server/index.mjs.map +1 -1
  73. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  74. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  75. package/package.json +8 -8
  76. package/dist/_chunks/EditViewPage-CoQEnFlC.js.map +0 -1
  77. package/dist/_chunks/EditViewPage-DvaV7U9b.mjs.map +0 -1
  78. package/dist/_chunks/Field-Cz_J9551.mjs.map +0 -1
  79. package/dist/_chunks/Field-ZdrmmQ4Y.js.map +0 -1
  80. package/dist/_chunks/Form-Bpig5rch.js.map +0 -1
  81. package/dist/_chunks/Form-Dxmihyw8.mjs.map +0 -1
  82. package/dist/_chunks/History-BZP8n7KT.mjs.map +0 -1
  83. package/dist/_chunks/History-BfX6XmZK.js.map +0 -1
  84. package/dist/_chunks/ListConfigurationPage-B3CXj8PY.js.map +0 -1
  85. package/dist/_chunks/ListConfigurationPage-DxKuVkKz.mjs.map +0 -1
  86. package/dist/_chunks/ListViewPage-Bk9VO__I.js.map +0 -1
  87. package/dist/_chunks/ListViewPage-D5D3tVPq.mjs.map +0 -1
  88. package/dist/_chunks/index-DzN3kBgx.js.map +0 -1
  89. package/dist/_chunks/index-VHviNMeW.mjs.map +0 -1
  90. package/dist/_chunks/layout-CPn1PM6x.mjs.map +0 -1
  91. package/dist/_chunks/layout-b91XRlD2.js.map +0 -1
@@ -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 }) => ({
@@ -620,7 +621,7 @@ const createAttributeSchema = (attribute) => {
620
621
  }
621
622
  };
622
623
  const addRequiredValidation = (attribute) => (schema) => {
623
- if (attribute.required) {
624
+ if (attribute.required && attribute.type !== "relation") {
624
625
  return schema.required({
625
626
  id: strapiAdmin.translatedErrors.required.id,
626
627
  defaultMessage: "This field is required."
@@ -784,7 +785,10 @@ const useDocument = (args, opts) => {
784
785
  isLoading: isLoadingDocument,
785
786
  isFetching: isFetchingDocument,
786
787
  error
787
- } = useGetDocumentQuery(args, opts);
788
+ } = useGetDocumentQuery(args, {
789
+ ...opts,
790
+ skip: !args.documentId && args.collectionType !== SINGLE_TYPES || opts?.skip
791
+ });
788
792
  const { components, schema, isLoading: isLoadingSchema } = useContentTypeSchema(args.model);
789
793
  React__namespace.useEffect(() => {
790
794
  if (error) {
@@ -948,12 +952,13 @@ const useDocumentActions = () => {
948
952
  );
949
953
  const [discardDocument] = useDiscardDocumentMutation();
950
954
  const discard = React__namespace.useCallback(
951
- async ({ collectionType, model, documentId }) => {
955
+ async ({ collectionType, model, documentId, params }) => {
952
956
  try {
953
957
  const res = await discardDocument({
954
958
  collectionType,
955
959
  model,
956
- documentId
960
+ documentId,
961
+ params
957
962
  });
958
963
  if ("error" in res) {
959
964
  toggleNotification({
@@ -1285,7 +1290,7 @@ const useDocumentActions = () => {
1285
1290
  };
1286
1291
  };
1287
1292
  const ProtectedHistoryPage = React.lazy(
1288
- () => Promise.resolve().then(() => require("./History-BfX6XmZK.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1293
+ () => Promise.resolve().then(() => require("./History-Bsud8jwh.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1289
1294
  );
1290
1295
  const routes$1 = [
1291
1296
  {
@@ -1298,31 +1303,31 @@ const routes$1 = [
1298
1303
  }
1299
1304
  ];
1300
1305
  const ProtectedEditViewPage = React.lazy(
1301
- () => Promise.resolve().then(() => require("./EditViewPage-CoQEnFlC.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1306
+ () => Promise.resolve().then(() => require("./EditViewPage-BqNpC6hO.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1302
1307
  );
1303
1308
  const ProtectedListViewPage = React.lazy(
1304
- () => Promise.resolve().then(() => require("./ListViewPage-Bk9VO__I.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1309
+ () => Promise.resolve().then(() => require("./ListViewPage-CsrC9L_d.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1305
1310
  );
1306
1311
  const ProtectedListConfiguration = React.lazy(
1307
- () => Promise.resolve().then(() => require("./ListConfigurationPage-B3CXj8PY.js")).then((mod) => ({
1312
+ () => Promise.resolve().then(() => require("./ListConfigurationPage-DiT463qx.js")).then((mod) => ({
1308
1313
  default: mod.ProtectedListConfiguration
1309
1314
  }))
1310
1315
  );
1311
1316
  const ProtectedEditConfigurationPage = React.lazy(
1312
- () => Promise.resolve().then(() => require("./EditConfigurationPage-tDtWj7R2.js")).then((mod) => ({
1317
+ () => Promise.resolve().then(() => require("./EditConfigurationPage-DOmfCEMo.js")).then((mod) => ({
1313
1318
  default: mod.ProtectedEditConfigurationPage
1314
1319
  }))
1315
1320
  );
1316
1321
  const ProtectedComponentConfigurationPage = React.lazy(
1317
- () => Promise.resolve().then(() => require("./ComponentConfigurationPage-DJcn1DrO.js")).then((mod) => ({
1322
+ () => Promise.resolve().then(() => require("./ComponentConfigurationPage-BvHtG7uH.js")).then((mod) => ({
1318
1323
  default: mod.ProtectedComponentConfigurationPage
1319
1324
  }))
1320
1325
  );
1321
1326
  const NoPermissions = React.lazy(
1322
- () => Promise.resolve().then(() => require("./NoPermissionsPage-BQDM64_b.js")).then((mod) => ({ default: mod.NoPermissions }))
1327
+ () => Promise.resolve().then(() => require("./NoPermissionsPage-CdHNJtEf.js")).then((mod) => ({ default: mod.NoPermissions }))
1323
1328
  );
1324
1329
  const NoContentType = React.lazy(
1325
- () => Promise.resolve().then(() => require("./NoContentTypePage-DsB2F7Z1.js")).then((mod) => ({ default: mod.NoContentType }))
1330
+ () => Promise.resolve().then(() => require("./NoContentTypePage-Bsvng4II.js")).then((mod) => ({ default: mod.NoContentType }))
1326
1331
  );
1327
1332
  const CollectionTypePages = () => {
1328
1333
  const { collectionType } = reactRouterDom.useParams();
@@ -1529,7 +1534,7 @@ const DocumentActionsMenu = ({
1529
1534
  display: "block",
1530
1535
  children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: [
1531
1536
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { color: convertActionVariantToColor(action.variant), gap: 2, tag: "span", children: [
1532
- action.icon,
1537
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { tag: "span", color: convertActionVariantToIconColor(action.variant), children: action.icon }),
1533
1538
  action.label
1534
1539
  ] }),
1535
1540
  action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsxRuntime.jsx(
@@ -1590,6 +1595,18 @@ const convertActionVariantToColor = (variant = "secondary") => {
1590
1595
  return "primary600";
1591
1596
  }
1592
1597
  };
1598
+ const convertActionVariantToIconColor = (variant = "secondary") => {
1599
+ switch (variant) {
1600
+ case "danger":
1601
+ return "danger600";
1602
+ case "secondary":
1603
+ return "neutral500";
1604
+ case "success":
1605
+ return "success600";
1606
+ default:
1607
+ return "primary600";
1608
+ }
1609
+ };
1593
1610
  const DocumentActionConfirmDialog = ({
1594
1611
  onClose,
1595
1612
  onCancel,
@@ -1612,22 +1629,20 @@ const DocumentActionConfirmDialog = ({
1612
1629
  }
1613
1630
  onClose();
1614
1631
  };
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
- ] });
1632
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Content, { children: [
1633
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Header, { children: title }),
1634
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Body, { children: content }),
1635
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Footer, { children: [
1636
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Cancel, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", children: formatMessage({
1637
+ id: "app.components.Button.cancel",
1638
+ defaultMessage: "Cancel"
1639
+ }) }) }),
1640
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleConfirm, variant, children: formatMessage({
1641
+ id: "app.components.Button.confirm",
1642
+ defaultMessage: "Confirm"
1643
+ }) })
1644
+ ] })
1645
+ ] }) });
1631
1646
  };
1632
1647
  const DocumentActionModal = ({
1633
1648
  isOpen,
@@ -1637,34 +1652,17 @@ const DocumentActionModal = ({
1637
1652
  content: Content,
1638
1653
  onModalClose
1639
1654
  }) => {
1640
- const id = React__namespace.useId();
1641
- if (!isOpen) {
1642
- return null;
1643
- }
1644
1655
  const handleClose = () => {
1645
1656
  if (onClose) {
1646
1657
  onClose();
1647
1658
  }
1648
1659
  onModalClose();
1649
1660
  };
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
- ] });
1661
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Content, { children: [
1662
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Title, { children: title }) }),
1663
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Body, { children: typeof Content === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose }) : Content }),
1664
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Footer, { children: typeof Footer === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Footer, { onClose: handleClose }) : Footer })
1665
+ ] }) });
1668
1666
  };
1669
1667
  const PublishAction$1 = ({
1670
1668
  activeTab,
@@ -1847,10 +1845,13 @@ const UpdateAction = ({
1847
1845
  document
1848
1846
  );
1849
1847
  if ("data" in res && collectionType !== SINGLE_TYPES) {
1850
- navigate({
1851
- pathname: `../${collectionType}/${model}/${res.data.documentId}`,
1852
- search: rawQuery
1853
- });
1848
+ navigate(
1849
+ {
1850
+ pathname: `../${collectionType}/${model}/${res.data.documentId}`,
1851
+ search: rawQuery
1852
+ },
1853
+ { replace: true }
1854
+ );
1854
1855
  } else if ("error" in res && isBaseQueryError(res.error) && res.error.name === "ValidationError") {
1855
1856
  setErrors(formatValidationErrors(res.error));
1856
1857
  }
@@ -1882,10 +1883,8 @@ const UnpublishAction$1 = ({
1882
1883
  const { toggleNotification } = strapiAdmin.useNotification();
1883
1884
  const [shouldKeepDraft, setShouldKeepDraft] = React__namespace.useState(true);
1884
1885
  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
- }
1886
+ const handleChange = (value) => {
1887
+ setShouldKeepDraft(value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
1889
1888
  };
1890
1889
  if (!schema?.options?.draftAndPublish) {
1891
1890
  return null;
@@ -1935,40 +1934,24 @@ const UnpublishAction$1 = ({
1935
1934
  }) })
1936
1935
  ] }),
1937
1936
  /* @__PURE__ */ jsxRuntime.jsxs(
1938
- designSystem.Flex,
1937
+ designSystem.Radio.Group,
1939
1938
  {
1940
- onChange: handleChange,
1941
- direction: "column",
1942
- alignItems: "flex-start",
1943
- tag: "fieldset",
1944
- borderWidth: 0,
1945
- gap: 3,
1939
+ defaultValue: UNPUBLISH_DRAFT_OPTIONS.KEEP,
1940
+ name: "discard-options",
1941
+ "aria-label": formatMessage({
1942
+ id: "content-manager.actions.unpublish.dialog.radio-label",
1943
+ defaultMessage: "Choose an option to unpublish the document."
1944
+ }),
1945
+ onValueChange: handleChange,
1946
1946
  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
- )
1947
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Radio.Item, { checked: shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.KEEP, children: formatMessage({
1948
+ id: "content-manager.actions.unpublish.dialog.option.keep-draft",
1949
+ defaultMessage: "Keep draft"
1950
+ }) }),
1951
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Radio.Item, { checked: !shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.DISCARD, children: formatMessage({
1952
+ id: "content-manager.actions.unpublish.dialog.option.replace-draft",
1953
+ defaultMessage: "Replace draft"
1954
+ }) })
1972
1955
  ]
1973
1956
  }
1974
1957
  )
@@ -2821,30 +2804,23 @@ const ConfirmBulkActionDialog = ({
2821
2804
  endAction
2822
2805
  }) => {
2823
2806
  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
- );
2807
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Root, { onOpenChange: onToggleDialog, open: isOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Content, { children: [
2808
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Header, { children: formatMessage({
2809
+ id: "app.components.ConfirmDialog.title",
2810
+ defaultMessage: "Confirmation"
2811
+ }) }),
2812
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Body, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2813
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
2814
+ dialogBody
2815
+ ] }) }),
2816
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Footer, { children: [
2817
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Cancel, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { fullWidth: true, onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
2818
+ id: "app.components.Button.cancel",
2819
+ defaultMessage: "Cancel"
2820
+ }) }) }),
2821
+ endAction
2822
+ ] })
2823
+ ] }) });
2848
2824
  };
2849
2825
  const BoldChunk$1 = (chunks) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", children: chunks });
2850
2826
  const ConfirmDialogPublishAll = ({
@@ -2949,16 +2925,30 @@ const formatErrorMessages = (errors, parentKey, formatMessage) => {
2949
2925
  )
2950
2926
  );
2951
2927
  } else {
2952
- messages.push(...formatErrorMessages(value, currentKey, formatMessage));
2928
+ messages.push(
2929
+ ...formatErrorMessages(
2930
+ // @ts-expect-error TODO: check why value is not compatible with FormErrors
2931
+ value,
2932
+ currentKey,
2933
+ formatMessage
2934
+ )
2935
+ );
2953
2936
  }
2937
+ } else {
2938
+ messages.push(
2939
+ formatMessage(
2940
+ {
2941
+ id: `${value}.withField`,
2942
+ defaultMessage: value
2943
+ },
2944
+ { field: currentKey }
2945
+ )
2946
+ );
2954
2947
  }
2955
2948
  });
2956
2949
  return messages;
2957
2950
  };
2958
- const EntryValidationText = ({
2959
- validationErrors,
2960
- isPublished = false
2961
- }) => {
2951
+ const EntryValidationText = ({ validationErrors, status }) => {
2962
2952
  const { formatMessage } = reactIntl.useIntl();
2963
2953
  if (validationErrors) {
2964
2954
  const validationErrorsMessages = formatErrorMessages(validationErrors, "", formatMessage).join(
@@ -2969,7 +2959,7 @@ const EntryValidationText = ({
2969
2959
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tooltip, { description: validationErrorsMessages, children: /* @__PURE__ */ jsxRuntime.jsx(TypographyMaxWidth, { textColor: "danger600", variant: "omega", fontWeight: "semiBold", ellipsis: true, children: validationErrorsMessages }) })
2970
2960
  ] });
2971
2961
  }
2972
- if (isPublished) {
2962
+ if (status === "published") {
2973
2963
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
2974
2964
  /* @__PURE__ */ jsxRuntime.jsx(Icons.CheckCircle, { fill: "success600" }),
2975
2965
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "success600", fontWeight: "bold", children: formatMessage({
@@ -2978,6 +2968,15 @@ const EntryValidationText = ({
2978
2968
  }) })
2979
2969
  ] });
2980
2970
  }
2971
+ if (status === "modified") {
2972
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
2973
+ /* @__PURE__ */ jsxRuntime.jsx(Icons.ArrowsCounterClockwise, { fill: "alternative600" }),
2974
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: formatMessage({
2975
+ id: "content-manager.bulk-publish.modified",
2976
+ defaultMessage: "Ready to publish changes"
2977
+ }) })
2978
+ ] });
2979
+ }
2981
2980
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
2982
2981
  /* @__PURE__ */ jsxRuntime.jsx(Icons.CheckCircle, { fill: "success600" }),
2983
2982
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: formatMessage({
@@ -3029,7 +3028,7 @@ const SelectedEntriesTableContent = ({
3029
3028
  EntryValidationText,
3030
3029
  {
3031
3030
  validationErrors: validationErrors[row.documentId],
3032
- isPublished: row.status === "published"
3031
+ status: row.status
3033
3032
  }
3034
3033
  ) }),
3035
3034
  /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Table.Cell, { children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -3170,7 +3169,7 @@ const SelectedEntriesModalContent = ({
3170
3169
  );
3171
3170
  };
3172
3171
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3173
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalBody, { children: [
3172
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Body, { children: [
3174
3173
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: getFormattedCountMessage() }),
3175
3174
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { marginTop: 5, children: /* @__PURE__ */ jsxRuntime.jsx(
3176
3175
  SelectedEntriesTableContent,
@@ -3182,27 +3181,24 @@ const SelectedEntriesModalContent = ({
3182
3181
  }
3183
3182
  ) })
3184
3183
  ] }),
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
- ),
3184
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Footer, { children: [
3185
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
3186
+ id: "app.components.Button.cancel",
3187
+ defaultMessage: "Cancel"
3188
+ }) }),
3189
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
3190
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
3191
+ /* @__PURE__ */ jsxRuntime.jsx(
3192
+ designSystem.Button,
3193
+ {
3194
+ onClick: toggleDialog,
3195
+ disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
3196
+ loading: isSubmittingForm,
3197
+ children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3198
+ }
3199
+ )
3200
+ ] })
3201
+ ] }),
3206
3202
  /* @__PURE__ */ jsxRuntime.jsx(
3207
3203
  ConfirmDialogPublishAll,
3208
3204
  {
@@ -3267,143 +3263,10 @@ const BulkActionsRenderer = () => {
3267
3263
  documents: selectedRows
3268
3264
  },
3269
3265
  descriptions: plugins["content-manager"].apis.getBulkActions(),
3270
- children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsxRuntime.jsx(BulkActionAction, { ...action }, action.id))
3266
+ children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsxRuntime.jsx(DocumentActionButton, { ...action }, action.id))
3271
3267
  }
3272
3268
  ) });
3273
3269
  };
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
3270
  const DeleteAction = ({ documents, model }) => {
3408
3271
  const { formatMessage } = reactIntl.useIntl();
3409
3272
  const { schema: contentType } = useDoc();
@@ -3436,6 +3299,7 @@ const DeleteAction = ({ documents, model }) => {
3436
3299
  defaultMessage: "Confirmation"
3437
3300
  }),
3438
3301
  content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
3302
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
3439
3303
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3440
3304
  id: "popUpWarning.bodyMessage.contentType.delete.all",
3441
3305
  defaultMessage: "Are you sure you want to delete these entries?"
@@ -3472,7 +3336,7 @@ const UnpublishAction = ({ documents, model }) => {
3472
3336
  selectRow([]);
3473
3337
  }
3474
3338
  };
3475
- const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published");
3339
+ const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
3476
3340
  if (!showUnpublishButton)
3477
3341
  return null;
3478
3342
  return {
@@ -3485,6 +3349,7 @@ const UnpublishAction = ({ documents, model }) => {
3485
3349
  defaultMessage: "Confirmation"
3486
3350
  }),
3487
3351
  content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
3352
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
3488
3353
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
3489
3354
  id: "popUpWarning.bodyMessage.contentType.unpublish.all",
3490
3355
  defaultMessage: "Are you sure you want to unpublish these entries?"
@@ -3870,15 +3735,24 @@ const index = {
3870
3735
  defaultMessage: "Content Manager"
3871
3736
  },
3872
3737
  permissions: [],
3873
- Component: () => Promise.resolve().then(() => require("./layout-b91XRlD2.js")).then((mod) => ({ default: mod.Layout })),
3874
3738
  position: 1
3875
3739
  });
3740
+ app.router.addRoute({
3741
+ path: "content-manager/*",
3742
+ lazy: async () => {
3743
+ const { Layout } = await Promise.resolve().then(() => require("./layout-Ciz224q5.js"));
3744
+ return {
3745
+ Component: Layout
3746
+ };
3747
+ },
3748
+ children: routes
3749
+ });
3876
3750
  app.registerPlugin(cm.config);
3877
3751
  },
3878
3752
  async registerTrads({ locales }) {
3879
3753
  const importedTrads = await Promise.all(
3880
3754
  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 }) => {
3755
+ 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
3756
  return {
3883
3757
  data: prefixPluginTranslations(data, PLUGIN_ID),
3884
3758
  locale
@@ -3922,7 +3796,6 @@ exports.getDisplayName = getDisplayName;
3922
3796
  exports.getMainField = getMainField;
3923
3797
  exports.getTranslation = getTranslation;
3924
3798
  exports.index = index;
3925
- exports.routes = routes;
3926
3799
  exports.setInitialData = setInitialData;
3927
3800
  exports.useContentTypeSchema = useContentTypeSchema;
3928
3801
  exports.useDoc = useDoc;
@@ -3936,4 +3809,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
3936
3809
  exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
3937
3810
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
3938
3811
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
3939
- //# sourceMappingURL=index-DzN3kBgx.js.map
3812
+ //# sourceMappingURL=index-BOZx6IMg.js.map