@strapi/content-manager 0.0.0-next.840550dc97a3782302ddf918d3a0d07e59dd11eb → 0.0.0-next.8f63e1055db761e0213cb6610f80c55658196ae1

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 (122) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-gsCd80MU.js → ComponentConfigurationPage-Cmm0LJof.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-gsCd80MU.js.map → ComponentConfigurationPage-Cmm0LJof.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-CIjXcRAB.mjs → ComponentConfigurationPage-FQd019My.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-CIjXcRAB.mjs.map → ComponentConfigurationPage-FQd019My.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-BglmD_BF.mjs → EditConfigurationPage-BUJqRuRq.mjs} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-BglmD_BF.mjs.map → EditConfigurationPage-BUJqRuRq.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-DHDQKBzw.js → EditConfigurationPage-CseHna9y.js} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-DHDQKBzw.js.map → EditConfigurationPage-CseHna9y.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-CiwVPMaK.mjs → EditViewPage-BB9VeS-u.mjs} +30 -8
  10. package/dist/_chunks/EditViewPage-BB9VeS-u.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-C4iTxUPU.js → EditViewPage-BhjvFXZr.js} +29 -7
  12. package/dist/_chunks/EditViewPage-BhjvFXZr.js.map +1 -0
  13. package/dist/_chunks/{Field-DhXEK8y1.js → Field-B03STsf9.js} +27 -7
  14. package/dist/_chunks/Field-B03STsf9.js.map +1 -0
  15. package/dist/_chunks/{Field-DIjL1b5d.mjs → Field-CWi7XMCa.mjs} +27 -7
  16. package/dist/_chunks/Field-CWi7XMCa.mjs.map +1 -0
  17. package/dist/_chunks/{Form-CmNesrvR.mjs → Form-B5b7zgoL.mjs} +2 -2
  18. package/dist/_chunks/{Form-CmNesrvR.mjs.map → Form-B5b7zgoL.mjs.map} +1 -1
  19. package/dist/_chunks/{Form-CwmJ4sWe.js → Form-DH5m7r5s.js} +2 -2
  20. package/dist/_chunks/{Form-CwmJ4sWe.js.map → Form-DH5m7r5s.js.map} +1 -1
  21. package/dist/_chunks/{History-BLCCNgCt.js → History-CNO4Db6U.js} +17 -40
  22. package/dist/_chunks/History-CNO4Db6U.js.map +1 -0
  23. package/dist/_chunks/{History-D-99Wh30.mjs → History-Dhy0xF0L.mjs} +17 -40
  24. package/dist/_chunks/History-Dhy0xF0L.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-JPWZz7Kg.mjs → ListConfigurationPage-C_FCilGf.mjs} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-JPWZz7Kg.mjs.map → ListConfigurationPage-C_FCilGf.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-DxWpeZrO.js → ListConfigurationPage-DE7NESsr.js} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-DxWpeZrO.js.map → ListConfigurationPage-DE7NESsr.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-DSK3f0ST.mjs → ListViewPage-B6Ut2BH0.mjs} +16 -5
  30. package/dist/_chunks/{ListViewPage-DSK3f0ST.mjs.map → ListViewPage-B6Ut2BH0.mjs.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-CIQekSFz.js → ListViewPage-C7p0PteR.js} +16 -5
  32. package/dist/_chunks/{ListViewPage-CIQekSFz.js.map → ListViewPage-C7p0PteR.js.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-C5cxKvC2.js → NoContentTypePage-BN-8niig.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-C5cxKvC2.js.map → NoContentTypePage-BN-8niig.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-D99LU1YP.mjs → NoContentTypePage-rR7QwWP5.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-D99LU1YP.mjs.map → NoContentTypePage-rR7QwWP5.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-Oy4tmUrW.js → NoPermissionsPage-Bw3b0OQm.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-Oy4tmUrW.js.map → NoPermissionsPage-Bw3b0OQm.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-DBrBw-0y.mjs → NoPermissionsPage-CGUgxmce.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-DBrBw-0y.mjs.map → NoPermissionsPage-CGUgxmce.mjs.map} +1 -1
  41. package/dist/_chunks/Preview-CICG4cRf.js +307 -0
  42. package/dist/_chunks/Preview-CICG4cRf.js.map +1 -0
  43. package/dist/_chunks/Preview-_gomrUna.mjs +288 -0
  44. package/dist/_chunks/Preview-_gomrUna.mjs.map +1 -0
  45. package/dist/_chunks/{Relations-BBmhcWFV.mjs → Relations-BEvinUkU.mjs} +6 -3
  46. package/dist/_chunks/Relations-BEvinUkU.mjs.map +1 -0
  47. package/dist/_chunks/{Relations-eG-9p_qS.js → Relations-uyLoal2t.js} +6 -3
  48. package/dist/_chunks/Relations-uyLoal2t.js.map +1 -0
  49. package/dist/_chunks/{en-Bm0D0IWz.js → en-CHOp_xJv.js} +11 -2
  50. package/dist/_chunks/{en-Bm0D0IWz.js.map → en-CHOp_xJv.js.map} +1 -1
  51. package/dist/_chunks/{en-DKV44jRb.mjs → en-D_BMf0hT.mjs} +11 -2
  52. package/dist/_chunks/{en-DKV44jRb.mjs.map → en-D_BMf0hT.mjs.map} +1 -1
  53. package/dist/_chunks/{es-EUonQTon.js → es-9K52xZIr.js} +2 -2
  54. package/dist/_chunks/{ja-CcFe8diO.js.map → es-9K52xZIr.js.map} +1 -1
  55. package/dist/_chunks/{es-CeXiYflN.mjs → es-D34tqjMw.mjs} +2 -2
  56. package/dist/_chunks/{es-CeXiYflN.mjs.map → es-D34tqjMw.mjs.map} +1 -1
  57. package/dist/_chunks/{fr-CD9VFbPM.mjs → fr--pg5jUbt.mjs} +13 -3
  58. package/dist/_chunks/{fr-CD9VFbPM.mjs.map → fr--pg5jUbt.mjs.map} +1 -1
  59. package/dist/_chunks/{fr-B7kGGg3E.js → fr-B2Kyv8Z9.js} +13 -3
  60. package/dist/_chunks/{fr-B7kGGg3E.js.map → fr-B2Kyv8Z9.js.map} +1 -1
  61. package/dist/_chunks/{index-BrUzbQ30.mjs → index-BagcPV6I.mjs} +94 -20
  62. package/dist/_chunks/index-BagcPV6I.mjs.map +1 -0
  63. package/dist/_chunks/{index-BIWDoFLK.js → index-D_AvCmmG.js} +91 -17
  64. package/dist/_chunks/index-D_AvCmmG.js.map +1 -0
  65. package/dist/_chunks/{ja-CcFe8diO.js → ja-7sfIbjxE.js} +2 -2
  66. package/dist/_chunks/{es-EUonQTon.js.map → ja-7sfIbjxE.js.map} +1 -1
  67. package/dist/_chunks/{ja-CtsUxOvk.mjs → ja-BHqhDq4V.mjs} +2 -2
  68. package/dist/_chunks/{ja-CtsUxOvk.mjs.map → ja-BHqhDq4V.mjs.map} +1 -1
  69. package/dist/_chunks/{layout-_5-cXs34.mjs → layout-DKEX3X49.mjs} +3 -3
  70. package/dist/_chunks/{layout-_5-cXs34.mjs.map → layout-DKEX3X49.mjs.map} +1 -1
  71. package/dist/_chunks/{layout-lMc9i1-Z.js → layout-Dk0odfYR.js} +3 -3
  72. package/dist/_chunks/{layout-lMc9i1-Z.js.map → layout-Dk0odfYR.js.map} +1 -1
  73. package/dist/_chunks/{relations-BRHithi8.js → relations-C312DwGU.js} +6 -3
  74. package/dist/_chunks/relations-C312DwGU.js.map +1 -0
  75. package/dist/_chunks/{relations-B_VLk-DD.mjs → relations-DDoMdwk6.mjs} +6 -3
  76. package/dist/_chunks/relations-DDoMdwk6.mjs.map +1 -0
  77. package/dist/admin/index.js +1 -1
  78. package/dist/admin/index.mjs +4 -4
  79. package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
  80. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
  81. package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -0
  82. package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
  83. package/dist/admin/src/preview/index.d.ts +1 -1
  84. package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
  85. package/dist/admin/src/preview/routes.d.ts +3 -0
  86. package/dist/admin/src/preview/services/preview.d.ts +3 -0
  87. package/dist/server/index.js +64 -10
  88. package/dist/server/index.js.map +1 -1
  89. package/dist/server/index.mjs +64 -10
  90. package/dist/server/index.mjs.map +1 -1
  91. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  92. package/dist/server/src/preview/controllers/preview.d.ts +6 -2
  93. package/dist/server/src/preview/controllers/preview.d.ts.map +1 -1
  94. package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
  95. package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
  96. package/dist/server/src/preview/services/index.d.ts +5 -1
  97. package/dist/server/src/preview/services/index.d.ts.map +1 -1
  98. package/dist/server/src/preview/services/preview.d.ts +7 -1
  99. package/dist/server/src/preview/services/preview.d.ts.map +1 -1
  100. package/dist/server/src/preview/utils.d.ts +5 -1
  101. package/dist/server/src/preview/utils.d.ts.map +1 -1
  102. package/dist/shared/contracts/index.d.ts +1 -0
  103. package/dist/shared/contracts/index.d.ts.map +1 -1
  104. package/dist/shared/contracts/preview.d.ts +27 -0
  105. package/dist/shared/contracts/preview.d.ts.map +1 -0
  106. package/dist/shared/index.js +4 -0
  107. package/dist/shared/index.js.map +1 -1
  108. package/dist/shared/index.mjs +4 -0
  109. package/dist/shared/index.mjs.map +1 -1
  110. package/package.json +7 -7
  111. package/dist/_chunks/EditViewPage-C4iTxUPU.js.map +0 -1
  112. package/dist/_chunks/EditViewPage-CiwVPMaK.mjs.map +0 -1
  113. package/dist/_chunks/Field-DIjL1b5d.mjs.map +0 -1
  114. package/dist/_chunks/Field-DhXEK8y1.js.map +0 -1
  115. package/dist/_chunks/History-BLCCNgCt.js.map +0 -1
  116. package/dist/_chunks/History-D-99Wh30.mjs.map +0 -1
  117. package/dist/_chunks/Relations-BBmhcWFV.mjs.map +0 -1
  118. package/dist/_chunks/Relations-eG-9p_qS.js.map +0 -1
  119. package/dist/_chunks/index-BIWDoFLK.js.map +0 -1
  120. package/dist/_chunks/index-BrUzbQ30.mjs.map +0 -1
  121. package/dist/_chunks/relations-BRHithi8.js.map +0 -1
  122. package/dist/_chunks/relations-B_VLk-DD.mjs.map +0 -1
@@ -293,7 +293,7 @@ const documentApi = contentManagerApi.injectEndpoints({
293
293
  */
294
294
  getAllDocuments: builder.query({
295
295
  query: ({ model, params }) => ({
296
- url: `/content-manager/collection-types/${model}${params ? `?${params}` : ""}`,
296
+ url: `/content-manager/collection-types/${model}`,
297
297
  method: "GET",
298
298
  config: {
299
299
  params
@@ -1685,10 +1685,10 @@ const useDocumentActions = () => {
1685
1685
  update
1686
1686
  };
1687
1687
  };
1688
- const ProtectedHistoryPage = React.lazy(
1689
- () => Promise.resolve().then(() => require("./History-BLCCNgCt.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1688
+ const ProtectedHistoryPage = React__namespace.lazy(
1689
+ () => Promise.resolve().then(() => require("./History-CNO4Db6U.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1690
1690
  );
1691
- const routes$1 = [
1691
+ const routes$2 = [
1692
1692
  {
1693
1693
  path: ":collectionType/:slug/:id/history",
1694
1694
  Component: ProtectedHistoryPage
@@ -1698,32 +1698,45 @@ const routes$1 = [
1698
1698
  Component: ProtectedHistoryPage
1699
1699
  }
1700
1700
  ];
1701
+ const ProtectedPreviewPage = React__namespace.lazy(
1702
+ () => Promise.resolve().then(() => require("./Preview-CICG4cRf.js")).then((mod) => ({ default: mod.ProtectedPreviewPage }))
1703
+ );
1704
+ const routes$1 = [
1705
+ {
1706
+ path: ":collectionType/:slug/:id/preview",
1707
+ Component: ProtectedPreviewPage
1708
+ },
1709
+ {
1710
+ path: ":collectionType/:slug/preview",
1711
+ Component: ProtectedPreviewPage
1712
+ }
1713
+ ];
1701
1714
  const ProtectedEditViewPage = React.lazy(
1702
- () => Promise.resolve().then(() => require("./EditViewPage-C4iTxUPU.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1715
+ () => Promise.resolve().then(() => require("./EditViewPage-BhjvFXZr.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1703
1716
  );
1704
1717
  const ProtectedListViewPage = React.lazy(
1705
- () => Promise.resolve().then(() => require("./ListViewPage-CIQekSFz.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1718
+ () => Promise.resolve().then(() => require("./ListViewPage-C7p0PteR.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1706
1719
  );
1707
1720
  const ProtectedListConfiguration = React.lazy(
1708
- () => Promise.resolve().then(() => require("./ListConfigurationPage-DxWpeZrO.js")).then((mod) => ({
1721
+ () => Promise.resolve().then(() => require("./ListConfigurationPage-DE7NESsr.js")).then((mod) => ({
1709
1722
  default: mod.ProtectedListConfiguration
1710
1723
  }))
1711
1724
  );
1712
1725
  const ProtectedEditConfigurationPage = React.lazy(
1713
- () => Promise.resolve().then(() => require("./EditConfigurationPage-DHDQKBzw.js")).then((mod) => ({
1726
+ () => Promise.resolve().then(() => require("./EditConfigurationPage-CseHna9y.js")).then((mod) => ({
1714
1727
  default: mod.ProtectedEditConfigurationPage
1715
1728
  }))
1716
1729
  );
1717
1730
  const ProtectedComponentConfigurationPage = React.lazy(
1718
- () => Promise.resolve().then(() => require("./ComponentConfigurationPage-gsCd80MU.js")).then((mod) => ({
1731
+ () => Promise.resolve().then(() => require("./ComponentConfigurationPage-Cmm0LJof.js")).then((mod) => ({
1719
1732
  default: mod.ProtectedComponentConfigurationPage
1720
1733
  }))
1721
1734
  );
1722
1735
  const NoPermissions = React.lazy(
1723
- () => Promise.resolve().then(() => require("./NoPermissionsPage-Oy4tmUrW.js")).then((mod) => ({ default: mod.NoPermissions }))
1736
+ () => Promise.resolve().then(() => require("./NoPermissionsPage-Bw3b0OQm.js")).then((mod) => ({ default: mod.NoPermissions }))
1724
1737
  );
1725
1738
  const NoContentType = React.lazy(
1726
- () => Promise.resolve().then(() => require("./NoContentTypePage-C5cxKvC2.js")).then((mod) => ({ default: mod.NoContentType }))
1739
+ () => Promise.resolve().then(() => require("./NoContentTypePage-BN-8niig.js")).then((mod) => ({ default: mod.NoContentType }))
1727
1740
  );
1728
1741
  const CollectionTypePages = () => {
1729
1742
  const { collectionType } = reactRouterDom.useParams();
@@ -1769,6 +1782,7 @@ const routes = [
1769
1782
  path: "no-content-types",
1770
1783
  Component: NoContentType
1771
1784
  },
1785
+ ...routes$2,
1772
1786
  ...routes$1
1773
1787
  ];
1774
1788
  const DocumentActions = ({ actions: actions2 }) => {
@@ -2593,7 +2607,11 @@ const getDisplayName = ({
2593
2607
  const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
2594
2608
  const DocumentStatus = ({ status = "draft", ...restProps }) => {
2595
2609
  const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
2596
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, showBullet: false, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: capitalise(status) }) });
2610
+ const { formatMessage } = reactIntl.useIntl();
2611
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, showBullet: false, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
2612
+ id: `content-manager.containers.List.${status}`,
2613
+ defaultMessage: capitalise(status)
2614
+ }) }) });
2597
2615
  };
2598
2616
  const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
2599
2617
  const { formatMessage } = reactIntl.useIntl();
@@ -4023,13 +4041,68 @@ const { setInitialData } = actions;
4023
4041
  const reducer = toolkit.combineReducers({
4024
4042
  app: reducer$1
4025
4043
  });
4044
+ const previewApi = contentManagerApi.injectEndpoints({
4045
+ endpoints: (builder) => ({
4046
+ getPreviewUrl: builder.query({
4047
+ query({ query, params }) {
4048
+ return {
4049
+ url: `/content-manager/preview/url/${params.contentType}`,
4050
+ method: "GET",
4051
+ config: {
4052
+ params: query
4053
+ }
4054
+ };
4055
+ }
4056
+ })
4057
+ })
4058
+ });
4059
+ const { useGetPreviewUrlQuery } = previewApi;
4060
+ const PreviewSidePanel = ({ model, documentId, document }) => {
4061
+ const { formatMessage } = reactIntl.useIntl();
4062
+ const { trackUsage } = strapiAdmin.useTracking();
4063
+ const [{ query }] = strapiAdmin.useQueryParams();
4064
+ const { data, error } = useGetPreviewUrlQuery({
4065
+ params: {
4066
+ contentType: model
4067
+ },
4068
+ query: {
4069
+ documentId,
4070
+ locale: document?.locale,
4071
+ status: document?.status
4072
+ }
4073
+ });
4074
+ if (!data?.data?.url || error) {
4075
+ return null;
4076
+ }
4077
+ const handleClick = () => {
4078
+ trackUsage("willOpenPreview");
4079
+ };
4080
+ return {
4081
+ title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
4082
+ content: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
4083
+ designSystem.Button,
4084
+ {
4085
+ variant: "tertiary",
4086
+ tag: reactRouterDom.Link,
4087
+ to: { pathname: "preview", search: qs.stringify(query, { encode: false }) },
4088
+ onClick: handleClick,
4089
+ flex: "auto",
4090
+ children: formatMessage({
4091
+ id: "content-manager.preview.panel.button",
4092
+ defaultMessage: "Open preview"
4093
+ })
4094
+ }
4095
+ ) })
4096
+ };
4097
+ };
4026
4098
  const FEATURE_ID = "preview";
4027
4099
  const previewAdmin = {
4028
4100
  bootstrap(app) {
4029
4101
  if (!window.strapi.future.isEnabled(FEATURE_ID)) {
4030
- return {};
4102
+ return;
4031
4103
  }
4032
- console.log("Bootstrapping preview admin");
4104
+ const contentManagerPluginApis = app.getPlugin("content-manager").apis;
4105
+ contentManagerPluginApis.addEditViewSidePanel([PreviewSidePanel]);
4033
4106
  }
4034
4107
  };
4035
4108
  const index = {
@@ -4051,7 +4124,7 @@ const index = {
4051
4124
  app.router.addRoute({
4052
4125
  path: "content-manager/*",
4053
4126
  lazy: async () => {
4054
- const { Layout } = await Promise.resolve().then(() => require("./layout-lMc9i1-Z.js"));
4127
+ const { Layout } = await Promise.resolve().then(() => require("./layout-Dk0odfYR.js"));
4055
4128
  return {
4056
4129
  Component: Layout
4057
4130
  };
@@ -4071,7 +4144,7 @@ const index = {
4071
4144
  async registerTrads({ locales }) {
4072
4145
  const importedTrads = await Promise.all(
4073
4146
  locales.map((locale) => {
4074
- 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-Bm0D0IWz.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 }) => {
4147
+ 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-CHOp_xJv.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-9K52xZIr.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B2Kyv8Z9.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-7sfIbjxE.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 }) => {
4075
4148
  return {
4076
4149
  data: prefixPluginTranslations(data, PLUGIN_ID),
4077
4150
  locale
@@ -4129,5 +4202,6 @@ exports.useGetAllContentTypeSettingsQuery = useGetAllContentTypeSettingsQuery;
4129
4202
  exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
4130
4203
  exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
4131
4204
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
4205
+ exports.useGetPreviewUrlQuery = useGetPreviewUrlQuery;
4132
4206
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
4133
- //# sourceMappingURL=index-BIWDoFLK.js.map
4207
+ //# sourceMappingURL=index-D_AvCmmG.js.map