@strapi/content-manager 5.1.1 → 5.3.0

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 (87) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-CpJNPBgk.js → ComponentConfigurationPage-Cr0ttPAZ.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-CpJNPBgk.js.map → ComponentConfigurationPage-Cr0ttPAZ.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-TYDPg5WG.mjs → ComponentConfigurationPage-UGIFDkPO.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-TYDPg5WG.mjs.map → ComponentConfigurationPage-UGIFDkPO.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-DqL8Pq5r.mjs → EditConfigurationPage-7hF4_8yK.mjs} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-DqL8Pq5r.mjs.map → EditConfigurationPage-7hF4_8yK.mjs.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-CFDe6SA1.js → EditConfigurationPage-Ds3BOL2z.js} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-CFDe6SA1.js.map → EditConfigurationPage-Ds3BOL2z.js.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-RXrFLav2.mjs → EditViewPage-CA98g5_g.mjs} +38 -8
  10. package/dist/_chunks/EditViewPage-CA98g5_g.mjs.map +1 -0
  11. package/dist/_chunks/{EditViewPage-khfP2CR3.js → EditViewPage-DoQm9llG.js} +37 -7
  12. package/dist/_chunks/EditViewPage-DoQm9llG.js.map +1 -0
  13. package/dist/_chunks/{Field--rQeS6Zj.mjs → Field-B2C1tq9_.mjs} +26 -6
  14. package/dist/_chunks/Field-B2C1tq9_.mjs.map +1 -0
  15. package/dist/_chunks/{Field-C1ftmTe9.js → Field-CQtLQzHl.js} +26 -6
  16. package/dist/_chunks/Field-CQtLQzHl.js.map +1 -0
  17. package/dist/_chunks/{Form-COtGXyUE.mjs → Form-CxQ2pPjq.mjs} +2 -2
  18. package/dist/_chunks/{Form-COtGXyUE.mjs.map → Form-CxQ2pPjq.mjs.map} +1 -1
  19. package/dist/_chunks/{Form-CwdX5oLw.js → Form-YQaS3_NH.js} +2 -2
  20. package/dist/_chunks/{Form-CwdX5oLw.js.map → Form-YQaS3_NH.js.map} +1 -1
  21. package/dist/_chunks/{History-BevwkPO1.mjs → History-DTYKr2Cg.mjs} +4 -11
  22. package/dist/_chunks/History-DTYKr2Cg.mjs.map +1 -0
  23. package/dist/_chunks/{History-DKS2aqqM.js → History-DbdpigyF.js} +4 -11
  24. package/dist/_chunks/History-DbdpigyF.js.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-DNfZDtDA.mjs → ListConfigurationPage-DQG-j52q.mjs} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-DNfZDtDA.mjs.map → ListConfigurationPage-DQG-j52q.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-LSYSPZHH.js → ListConfigurationPage-DRGhXnUA.js} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-LSYSPZHH.js.map → ListConfigurationPage-DRGhXnUA.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-DlUpqLIo.js → ListViewPage-CVIEfYWN.js} +16 -5
  30. package/dist/_chunks/{ListViewPage-DlUpqLIo.js.map → ListViewPage-CVIEfYWN.js.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-C1PyuYRS.mjs → ListViewPage-DAekmnvp.mjs} +16 -5
  32. package/dist/_chunks/{ListViewPage-C1PyuYRS.mjs.map → ListViewPage-DAekmnvp.mjs.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-C9q744z1.mjs → NoContentTypePage-5kwUPeFg.mjs} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-C9q744z1.mjs.map → NoContentTypePage-5kwUPeFg.mjs.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-m8wt3sf6.js → NoContentTypePage-CTcfA2-Q.js} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-m8wt3sf6.js.map → NoContentTypePage-CTcfA2-Q.js.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-8BM-LWta.mjs → NoPermissionsPage-d-JtEVAw.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-8BM-LWta.mjs.map → NoPermissionsPage-d-JtEVAw.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-DLfPsA0Q.js → NoPermissionsPage-pVeCVj9a.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-DLfPsA0Q.js.map → NoPermissionsPage-pVeCVj9a.js.map} +1 -1
  41. package/dist/_chunks/Preview-COsm52rZ.js +307 -0
  42. package/dist/_chunks/Preview-COsm52rZ.js.map +1 -0
  43. package/dist/_chunks/Preview-gkmvcwhu.mjs +288 -0
  44. package/dist/_chunks/Preview-gkmvcwhu.mjs.map +1 -0
  45. package/dist/_chunks/{Relations-D25xRcFy.mjs → Relations-7ItTFWp7.mjs} +3 -3
  46. package/dist/_chunks/{Relations-D25xRcFy.mjs.map → Relations-7ItTFWp7.mjs.map} +1 -1
  47. package/dist/_chunks/{Relations-OMriCP_L.js → Relations-Beo_uDz1.js} +3 -3
  48. package/dist/_chunks/{Relations-OMriCP_L.js.map → Relations-Beo_uDz1.js.map} +1 -1
  49. package/dist/_chunks/{en-Bdpa50w3.js → en-CHOp_xJv.js} +6 -1
  50. package/dist/_chunks/{en-Bdpa50w3.js.map → en-CHOp_xJv.js.map} +1 -1
  51. package/dist/_chunks/{en-CZw4xdPY.mjs → en-D_BMf0hT.mjs} +6 -1
  52. package/dist/_chunks/{en-CZw4xdPY.mjs.map → en-D_BMf0hT.mjs.map} +1 -1
  53. package/dist/_chunks/{index-DqZnjo8F.js → index-CJX65DLa.js} +68 -94
  54. package/dist/_chunks/index-CJX65DLa.js.map +1 -0
  55. package/dist/_chunks/{index-BvGihCJp.mjs → index-D3IiO0X8.mjs} +74 -100
  56. package/dist/_chunks/index-D3IiO0X8.mjs.map +1 -0
  57. package/dist/_chunks/{layout-CmaemAO3.js → layout-9fI2_QJt.js} +3 -3
  58. package/dist/_chunks/{layout-CmaemAO3.js.map → layout-9fI2_QJt.js.map} +1 -1
  59. package/dist/_chunks/{layout-ykHSe2KQ.mjs → layout-OhrmoJVB.mjs} +3 -3
  60. package/dist/_chunks/{layout-ykHSe2KQ.mjs.map → layout-OhrmoJVB.mjs.map} +1 -1
  61. package/dist/_chunks/{relations-D9fKsCLY.js → relations-DIT8sP52.js} +6 -3
  62. package/dist/_chunks/relations-DIT8sP52.js.map +1 -0
  63. package/dist/_chunks/{relations-u-Vz51Ea.mjs → relations-sRERvWmr.mjs} +6 -3
  64. package/dist/_chunks/relations-sRERvWmr.mjs.map +1 -0
  65. package/dist/admin/index.js +1 -1
  66. package/dist/admin/index.mjs +4 -4
  67. package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
  68. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +1 -1
  69. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
  70. package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -0
  71. package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
  72. package/dist/admin/src/preview/routes.d.ts +3 -0
  73. package/dist/admin/src/router.d.ts +1 -1
  74. package/dist/server/index.js.map +1 -1
  75. package/dist/server/index.mjs.map +1 -1
  76. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  77. package/package.json +8 -8
  78. package/dist/_chunks/EditViewPage-RXrFLav2.mjs.map +0 -1
  79. package/dist/_chunks/EditViewPage-khfP2CR3.js.map +0 -1
  80. package/dist/_chunks/Field--rQeS6Zj.mjs.map +0 -1
  81. package/dist/_chunks/Field-C1ftmTe9.js.map +0 -1
  82. package/dist/_chunks/History-BevwkPO1.mjs.map +0 -1
  83. package/dist/_chunks/History-DKS2aqqM.js.map +0 -1
  84. package/dist/_chunks/index-BvGihCJp.mjs.map +0 -1
  85. package/dist/_chunks/index-DqZnjo8F.js.map +0 -1
  86. package/dist/_chunks/relations-D9fKsCLY.js.map +0 -1
  87. package/dist/_chunks/relations-u-Vz51Ea.mjs.map +0 -1
@@ -1,9 +1,9 @@
1
- import { More, Cross, WarningCircle, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, ClockCounterClockwise, Link as Link$1, Feather } from "@strapi/icons";
1
+ import { More, Cross, WarningCircle, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, ClockCounterClockwise, Feather } from "@strapi/icons";
2
2
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
3
- import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useForm, useTracking, useGuidedTour, BackButton, DescriptionComponentRenderer, useTable, Table, useClipboard } from "@strapi/admin/strapi-admin";
3
+ import { useStrapiApp, createContext, useQueryParams, useAuth, useRBAC, Page, adminApi, translatedErrors, useNotification, useAPIErrorHandler, getYupValidationErrors, useForm, useTracking, useGuidedTour, BackButton, DescriptionComponentRenderer, useTable, Table } from "@strapi/admin/strapi-admin";
4
4
  import * as React from "react";
5
5
  import { lazy } from "react";
6
- import { Button, Menu, VisuallyHidden, Flex, Typography, Dialog, Modal, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
6
+ import { Button, Menu, VisuallyHidden, Flex, Dialog, Modal, Typography, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
7
7
  import mapValues from "lodash/fp/mapValues";
8
8
  import { useIntl } from "react-intl";
9
9
  import { useParams, useNavigate, Navigate, useMatch, useLocation, Link, NavLink } from "react-router-dom";
@@ -1663,10 +1663,10 @@ const useDocumentActions = () => {
1663
1663
  update
1664
1664
  };
1665
1665
  };
1666
- const ProtectedHistoryPage = lazy(
1667
- () => import("./History-BevwkPO1.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1666
+ const ProtectedHistoryPage = React.lazy(
1667
+ () => import("./History-DTYKr2Cg.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1668
1668
  );
1669
- const routes$1 = [
1669
+ const routes$2 = [
1670
1670
  {
1671
1671
  path: ":collectionType/:slug/:id/history",
1672
1672
  Component: ProtectedHistoryPage
@@ -1676,32 +1676,45 @@ const routes$1 = [
1676
1676
  Component: ProtectedHistoryPage
1677
1677
  }
1678
1678
  ];
1679
+ const ProtectedPreviewPage = React.lazy(
1680
+ () => import("./Preview-gkmvcwhu.mjs").then((mod) => ({ default: mod.ProtectedPreviewPage }))
1681
+ );
1682
+ const routes$1 = [
1683
+ {
1684
+ path: ":collectionType/:slug/:id/preview",
1685
+ Component: ProtectedPreviewPage
1686
+ },
1687
+ {
1688
+ path: ":collectionType/:slug/preview",
1689
+ Component: ProtectedPreviewPage
1690
+ }
1691
+ ];
1679
1692
  const ProtectedEditViewPage = lazy(
1680
- () => import("./EditViewPage-RXrFLav2.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1693
+ () => import("./EditViewPage-CA98g5_g.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1681
1694
  );
1682
1695
  const ProtectedListViewPage = lazy(
1683
- () => import("./ListViewPage-C1PyuYRS.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1696
+ () => import("./ListViewPage-DAekmnvp.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1684
1697
  );
1685
1698
  const ProtectedListConfiguration = lazy(
1686
- () => import("./ListConfigurationPage-DNfZDtDA.mjs").then((mod) => ({
1699
+ () => import("./ListConfigurationPage-DQG-j52q.mjs").then((mod) => ({
1687
1700
  default: mod.ProtectedListConfiguration
1688
1701
  }))
1689
1702
  );
1690
1703
  const ProtectedEditConfigurationPage = lazy(
1691
- () => import("./EditConfigurationPage-DqL8Pq5r.mjs").then((mod) => ({
1704
+ () => import("./EditConfigurationPage-7hF4_8yK.mjs").then((mod) => ({
1692
1705
  default: mod.ProtectedEditConfigurationPage
1693
1706
  }))
1694
1707
  );
1695
1708
  const ProtectedComponentConfigurationPage = lazy(
1696
- () => import("./ComponentConfigurationPage-TYDPg5WG.mjs").then((mod) => ({
1709
+ () => import("./ComponentConfigurationPage-UGIFDkPO.mjs").then((mod) => ({
1697
1710
  default: mod.ProtectedComponentConfigurationPage
1698
1711
  }))
1699
1712
  );
1700
1713
  const NoPermissions = lazy(
1701
- () => import("./NoPermissionsPage-8BM-LWta.mjs").then((mod) => ({ default: mod.NoPermissions }))
1714
+ () => import("./NoPermissionsPage-d-JtEVAw.mjs").then((mod) => ({ default: mod.NoPermissions }))
1702
1715
  );
1703
1716
  const NoContentType = lazy(
1704
- () => import("./NoContentTypePage-C9q744z1.mjs").then((mod) => ({ default: mod.NoContentType }))
1717
+ () => import("./NoContentTypePage-5kwUPeFg.mjs").then((mod) => ({ default: mod.NoContentType }))
1705
1718
  );
1706
1719
  const CollectionTypePages = () => {
1707
1720
  const { collectionType } = useParams();
@@ -1713,7 +1726,7 @@ const CollectionTypePages = () => {
1713
1726
  const CLONE_RELATIVE_PATH = ":collectionType/:slug/clone/:origin";
1714
1727
  const CLONE_PATH = `/content-manager/${CLONE_RELATIVE_PATH}`;
1715
1728
  const LIST_RELATIVE_PATH = ":collectionType/:slug";
1716
- const LIST_PATH = `/content-manager/${LIST_RELATIVE_PATH}`;
1729
+ const LIST_PATH = `/content-manager/collection-types/:slug`;
1717
1730
  const routes = [
1718
1731
  {
1719
1732
  path: LIST_RELATIVE_PATH,
@@ -1747,6 +1760,7 @@ const routes = [
1747
1760
  path: "no-content-types",
1748
1761
  Component: NoContentType
1749
1762
  },
1763
+ ...routes$2,
1750
1764
  ...routes$1
1751
1765
  ];
1752
1766
  const DocumentActions = ({ actions: actions2 }) => {
@@ -1908,43 +1922,25 @@ const DocumentActionsMenu = ({
1908
1922
  disabled: action.disabled,
1909
1923
  onSelect: handleClick(action),
1910
1924
  display: "block",
1911
- children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", gap: 4, children: [
1912
- /* @__PURE__ */ jsxs(
1913
- Flex,
1914
- {
1915
- color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
1916
- gap: 2,
1917
- tag: "span",
1918
- children: [
1919
- /* @__PURE__ */ jsx(
1920
- Flex,
1921
- {
1922
- tag: "span",
1923
- color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
1924
- children: action.icon
1925
- }
1926
- ),
1927
- action.label
1928
- ]
1929
- }
1930
- ),
1931
- action.id.startsWith("HistoryAction") && /* @__PURE__ */ jsx(
1932
- Flex,
1933
- {
1934
- alignItems: "center",
1935
- background: "alternative100",
1936
- borderStyle: "solid",
1937
- borderColor: "alternative200",
1938
- borderWidth: "1px",
1939
- height: 5,
1940
- paddingLeft: 2,
1941
- paddingRight: 2,
1942
- hasRadius: true,
1943
- color: "alternative600",
1944
- children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", fontWeight: "bold", lineHeight: 1, children: formatMessage({ id: "global.new", defaultMessage: "New" }) })
1945
- }
1946
- )
1947
- ] })
1925
+ children: /* @__PURE__ */ jsx(Flex, { justifyContent: "space-between", gap: 4, children: /* @__PURE__ */ jsxs(
1926
+ Flex,
1927
+ {
1928
+ color: !action.disabled ? convertActionVariantToColor(action.variant) : "inherit",
1929
+ gap: 2,
1930
+ tag: "span",
1931
+ children: [
1932
+ /* @__PURE__ */ jsx(
1933
+ Flex,
1934
+ {
1935
+ tag: "span",
1936
+ color: !action.disabled ? convertActionVariantToIconColor(action.variant) : "inherit",
1937
+ children: action.icon
1938
+ }
1939
+ ),
1940
+ action.label
1941
+ ]
1942
+ }
1943
+ ) })
1948
1944
  },
1949
1945
  action.id
1950
1946
  );
@@ -2571,7 +2567,11 @@ const getDisplayName = ({
2571
2567
  const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
2572
2568
  const DocumentStatus = ({ status = "draft", ...restProps }) => {
2573
2569
  const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
2574
- return /* @__PURE__ */ jsx(Status, { ...restProps, showBullet: false, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: capitalise(status) }) });
2570
+ const { formatMessage } = useIntl();
2571
+ return /* @__PURE__ */ jsx(Status, { ...restProps, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsx(Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
2572
+ id: `content-manager.containers.List.${status}`,
2573
+ defaultMessage: capitalise(status)
2574
+ }) }) });
2575
2575
  };
2576
2576
  const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
2577
2577
  const { formatMessage } = useIntl();
@@ -4019,9 +4019,8 @@ const previewApi = contentManagerApi.injectEndpoints({
4019
4019
  const { useGetPreviewUrlQuery } = previewApi;
4020
4020
  const PreviewSidePanel = ({ model, documentId, document }) => {
4021
4021
  const { formatMessage } = useIntl();
4022
- const { toggleNotification } = useNotification();
4023
- const { copy } = useClipboard();
4024
4022
  const { trackUsage } = useTracking();
4023
+ const [{ query }] = useQueryParams();
4025
4024
  const { data, error } = useGetPreviewUrlQuery({
4026
4025
  params: {
4027
4026
  contentType: model
@@ -4035,51 +4034,25 @@ const PreviewSidePanel = ({ model, documentId, document }) => {
4035
4034
  if (!data?.data?.url || error) {
4036
4035
  return null;
4037
4036
  }
4038
- const { url } = data.data;
4039
- const handleCopyLink = () => {
4040
- copy(url);
4041
- toggleNotification({
4042
- message: formatMessage({
4043
- id: "content-manager.preview.copy.success",
4044
- defaultMessage: "Copied preview link"
4045
- }),
4046
- type: "success"
4047
- });
4048
- };
4049
4037
  const handleClick = () => {
4050
4038
  trackUsage("willOpenPreview");
4051
4039
  };
4052
4040
  return {
4053
4041
  title: formatMessage({ id: "content-manager.preview.panel.title", defaultMessage: "Preview" }),
4054
- content: /* @__PURE__ */ jsxs(Flex, { gap: 2, width: "100%", children: [
4055
- /* @__PURE__ */ jsx(
4056
- Button,
4057
- {
4058
- variant: "tertiary",
4059
- tag: Link,
4060
- to: url,
4061
- onClick: handleClick,
4062
- target: "_blank",
4063
- flex: "auto",
4064
- children: formatMessage({
4065
- id: "content-manager.preview.panel.button",
4066
- defaultMessage: "Open preview"
4067
- })
4068
- }
4069
- ),
4070
- /* @__PURE__ */ jsx(
4071
- IconButton,
4072
- {
4073
- type: "button",
4074
- label: formatMessage({
4075
- id: "preview.copy.label",
4076
- defaultMessage: "Copy preview link"
4077
- }),
4078
- onClick: handleCopyLink,
4079
- children: /* @__PURE__ */ jsx(Link$1, {})
4080
- }
4081
- )
4082
- ] })
4042
+ content: /* @__PURE__ */ jsx(Flex, { gap: 2, width: "100%", children: /* @__PURE__ */ jsx(
4043
+ Button,
4044
+ {
4045
+ variant: "tertiary",
4046
+ tag: Link,
4047
+ to: { pathname: "preview", search: stringify(query, { encode: false }) },
4048
+ onClick: handleClick,
4049
+ flex: "auto",
4050
+ children: formatMessage({
4051
+ id: "content-manager.preview.panel.button",
4052
+ defaultMessage: "Open preview"
4053
+ })
4054
+ }
4055
+ ) })
4083
4056
  };
4084
4057
  };
4085
4058
  const FEATURE_ID = "preview";
@@ -4111,7 +4084,7 @@ const index = {
4111
4084
  app.router.addRoute({
4112
4085
  path: "content-manager/*",
4113
4086
  lazy: async () => {
4114
- const { Layout } = await import("./layout-ykHSe2KQ.mjs");
4087
+ const { Layout } = await import("./layout-OhrmoJVB.mjs");
4115
4088
  return {
4116
4089
  Component: Layout
4117
4090
  };
@@ -4131,7 +4104,7 @@ const index = {
4131
4104
  async registerTrads({ locales }) {
4132
4105
  const importedTrads = await Promise.all(
4133
4106
  locales.map((locale) => {
4134
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-CZw4xdPY.mjs"), "./translations/es.json": () => import("./es-D34tqjMw.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr--pg5jUbt.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-BHqhDq4V.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
4107
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-D_BMf0hT.mjs"), "./translations/es.json": () => import("./es-D34tqjMw.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr--pg5jUbt.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-BHqhDq4V.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
4135
4108
  return {
4136
4109
  data: prefixPluginTranslations(data, PLUGIN_ID),
4137
4110
  locale
@@ -4158,9 +4131,10 @@ export {
4158
4131
  HOOKS as H,
4159
4132
  InjectionZone as I,
4160
4133
  useDocument as J,
4161
- index as K,
4162
- useContentManagerContext as L,
4163
- useDocumentActions as M,
4134
+ useGetPreviewUrlQuery as K,
4135
+ index as L,
4136
+ useContentManagerContext as M,
4137
+ useDocumentActions as N,
4164
4138
  Panels as P,
4165
4139
  RelativeTime as R,
4166
4140
  SINGLE_TYPES as S,
@@ -4192,4 +4166,4 @@ export {
4192
4166
  capitalise as y,
4193
4167
  useUpdateContentTypeConfigurationMutation as z
4194
4168
  };
4195
- //# sourceMappingURL=index-BvGihCJp.mjs.map
4169
+ //# sourceMappingURL=index-D3IiO0X8.mjs.map