@strapi/content-manager 5.0.0-beta.6 → 5.0.0-beta.7

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 (118) hide show
  1. package/dist/_chunks/{CardDragPreview-DSVYodBX.js → CardDragPreview-C0QyJgRA.js} +10 -14
  2. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +1 -0
  3. package/dist/_chunks/{CardDragPreview-ikSG4M46.mjs → CardDragPreview-DOxamsuj.mjs} +7 -9
  4. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -0
  5. package/dist/_chunks/{ComponentConfigurationPage-43KmCNQE.js → ComponentConfigurationPage-DMq0wvcL.js} +3 -3
  6. package/dist/_chunks/{ComponentConfigurationPage-43KmCNQE.js.map → ComponentConfigurationPage-DMq0wvcL.js.map} +1 -1
  7. package/dist/_chunks/{ComponentConfigurationPage--2aLCv-G.mjs → ComponentConfigurationPage-uTMkLI60.mjs} +3 -3
  8. package/dist/_chunks/{ComponentConfigurationPage--2aLCv-G.mjs.map → ComponentConfigurationPage-uTMkLI60.mjs.map} +1 -1
  9. package/dist/_chunks/{EditConfigurationPage-CUcGHHvQ.mjs → EditConfigurationPage-B2HhCh-b.mjs} +3 -3
  10. package/dist/_chunks/{EditConfigurationPage-CUcGHHvQ.mjs.map → EditConfigurationPage-B2HhCh-b.mjs.map} +1 -1
  11. package/dist/_chunks/{EditConfigurationPage-BfFzJ4Br.js → EditConfigurationPage-BFpQwwbc.js} +3 -3
  12. package/dist/_chunks/{EditConfigurationPage-BfFzJ4Br.js.map → EditConfigurationPage-BFpQwwbc.js.map} +1 -1
  13. package/dist/_chunks/{EditViewPage-Bm8lgcm6.mjs → EditViewPage-BVIrgjyG.mjs} +4 -4
  14. package/dist/_chunks/EditViewPage-BVIrgjyG.mjs.map +1 -0
  15. package/dist/_chunks/{EditViewPage-CzOT5Kpj.js → EditViewPage-CXXue16T.js} +5 -7
  16. package/dist/_chunks/EditViewPage-CXXue16T.js.map +1 -0
  17. package/dist/_chunks/{Field-Dlh0uGnL.mjs → Field-0_2h1vuK.mjs} +303 -294
  18. package/dist/_chunks/Field-0_2h1vuK.mjs.map +1 -0
  19. package/dist/_chunks/{Field-Caef4JjM.js → Field-ZgzKlgxR.js} +363 -355
  20. package/dist/_chunks/Field-ZgzKlgxR.js.map +1 -0
  21. package/dist/_chunks/{Form-EnaQL_6L.mjs → Form-B7TUnQDd.mjs} +14 -14
  22. package/dist/_chunks/Form-B7TUnQDd.mjs.map +1 -0
  23. package/dist/_chunks/{Form-BzuAjtRq.js → Form-DgTc2qkx.js} +14 -15
  24. package/dist/_chunks/Form-DgTc2qkx.js.map +1 -0
  25. package/dist/_chunks/{History-C17LiyRg.js → History-DtHjQuqM.js} +28 -40
  26. package/dist/_chunks/History-DtHjQuqM.js.map +1 -0
  27. package/dist/_chunks/{History-D6sbCJvo.mjs → History-Dug_4HIA.mjs} +28 -39
  28. package/dist/_chunks/History-Dug_4HIA.mjs.map +1 -0
  29. package/dist/_chunks/{ListConfigurationPage-Dks5SX6f.js → ListConfigurationPage-BuSdTjfa.js} +17 -19
  30. package/dist/_chunks/ListConfigurationPage-BuSdTjfa.js.map +1 -0
  31. package/dist/_chunks/{ListConfigurationPage-Ce4qs7qE.mjs → ListConfigurationPage-CmEeNg6T.mjs} +14 -14
  32. package/dist/_chunks/ListConfigurationPage-CmEeNg6T.mjs.map +1 -0
  33. package/dist/_chunks/{ListViewPage-BwrZrPsh.js → ListViewPage-CExWwa4S.js} +24 -37
  34. package/dist/_chunks/ListViewPage-CExWwa4S.js.map +1 -0
  35. package/dist/_chunks/{ListViewPage-Be7S5aKL.mjs → ListViewPage-Dsoa3wEA.mjs} +21 -33
  36. package/dist/_chunks/ListViewPage-Dsoa3wEA.mjs.map +1 -0
  37. package/dist/_chunks/{NoContentTypePage-Cu5r1-JT.js → NoContentTypePage-DCUL8gVi.js} +5 -5
  38. package/dist/_chunks/NoContentTypePage-DCUL8gVi.js.map +1 -0
  39. package/dist/_chunks/{NoContentTypePage-CIPmYQMm.mjs → NoContentTypePage-Dh38hBXB.mjs} +7 -7
  40. package/dist/_chunks/NoContentTypePage-Dh38hBXB.mjs.map +1 -0
  41. package/dist/_chunks/{NoPermissionsPage-C-j6TEUF.js → NoPermissionsPage-BK-XCpIy.js} +4 -5
  42. package/dist/_chunks/NoPermissionsPage-BK-XCpIy.js.map +1 -0
  43. package/dist/_chunks/{NoPermissionsPage-DhJ7LYrr.mjs → NoPermissionsPage-Dt2O40ey.mjs} +5 -6
  44. package/dist/_chunks/NoPermissionsPage-Dt2O40ey.mjs.map +1 -0
  45. package/dist/_chunks/{Relations-Czs-uZ-s.js → Relations-CNypkp-g.js} +66 -59
  46. package/dist/_chunks/Relations-CNypkp-g.js.map +1 -0
  47. package/dist/_chunks/{Relations-CY7AtkDA.mjs → Relations-DZyjWZHl.mjs} +62 -54
  48. package/dist/_chunks/Relations-DZyjWZHl.mjs.map +1 -0
  49. package/dist/_chunks/{index-DNVx8ssZ.mjs → index-B3c-4it4.mjs} +54 -41
  50. package/dist/_chunks/index-B3c-4it4.mjs.map +1 -0
  51. package/dist/_chunks/{index-X_2tafck.js → index-DFK7LwDW.js} +59 -47
  52. package/dist/_chunks/index-DFK7LwDW.js.map +1 -0
  53. package/dist/_chunks/{layout-Dnh0PNp9.mjs → layout-B5cm7cZj.mjs} +10 -10
  54. package/dist/_chunks/layout-B5cm7cZj.mjs.map +1 -0
  55. package/dist/_chunks/{layout-dBc7wN7L.js → layout-DLih5-_W.js} +11 -13
  56. package/dist/_chunks/layout-DLih5-_W.js.map +1 -0
  57. package/dist/_chunks/{relations-Dx7tMKJN.mjs → relations-BZkrMa2z.mjs} +2 -2
  58. package/dist/_chunks/{relations-Dx7tMKJN.mjs.map → relations-BZkrMa2z.mjs.map} +1 -1
  59. package/dist/_chunks/{relations-4pHtBrHJ.js → relations-CTvkuINQ.js} +2 -2
  60. package/dist/_chunks/{relations-4pHtBrHJ.js.map → relations-CTvkuINQ.js.map} +1 -1
  61. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +1 -1
  62. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +1 -1
  63. package/dist/admin/index.js +1 -1
  64. package/dist/admin/index.mjs +1 -1
  65. package/dist/admin/src/hooks/useDocumentLayout.d.ts +1 -1
  66. package/dist/admin/src/hooks/useDragAndDrop.d.ts +4 -4
  67. package/dist/admin/src/hooks/useKeyboardDragAndDrop.d.ts +1 -1
  68. package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +8 -3
  69. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +3 -49
  70. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +48 -54
  71. package/dist/admin/src/utils/api.d.ts +6 -7
  72. package/dist/server/index.js +333 -327
  73. package/dist/server/index.js.map +1 -1
  74. package/dist/server/index.mjs +340 -334
  75. package/dist/server/index.mjs.map +1 -1
  76. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  77. package/dist/server/src/controllers/validation/index.d.ts +1 -1
  78. package/dist/server/src/history/services/history.d.ts +2 -4
  79. package/dist/server/src/history/services/history.d.ts.map +1 -1
  80. package/dist/server/src/history/services/index.d.ts +6 -2
  81. package/dist/server/src/history/services/index.d.ts.map +1 -1
  82. package/dist/server/src/history/services/lifecycles.d.ts +9 -0
  83. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -0
  84. package/dist/server/src/history/services/utils.d.ts +41 -9
  85. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  86. package/dist/server/src/history/utils.d.ts +6 -2
  87. package/dist/server/src/history/utils.d.ts.map +1 -1
  88. package/dist/server/src/index.d.ts +11 -11
  89. package/dist/server/src/services/document-manager.d.ts +12 -11
  90. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  91. package/dist/server/src/services/index.d.ts +11 -11
  92. package/dist/shared/contracts/collection-types.d.ts +3 -1
  93. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  94. package/package.json +10 -11
  95. package/dist/_chunks/CardDragPreview-DSVYodBX.js.map +0 -1
  96. package/dist/_chunks/CardDragPreview-ikSG4M46.mjs.map +0 -1
  97. package/dist/_chunks/EditViewPage-Bm8lgcm6.mjs.map +0 -1
  98. package/dist/_chunks/EditViewPage-CzOT5Kpj.js.map +0 -1
  99. package/dist/_chunks/Field-Caef4JjM.js.map +0 -1
  100. package/dist/_chunks/Field-Dlh0uGnL.mjs.map +0 -1
  101. package/dist/_chunks/Form-BzuAjtRq.js.map +0 -1
  102. package/dist/_chunks/Form-EnaQL_6L.mjs.map +0 -1
  103. package/dist/_chunks/History-C17LiyRg.js.map +0 -1
  104. package/dist/_chunks/History-D6sbCJvo.mjs.map +0 -1
  105. package/dist/_chunks/ListConfigurationPage-Ce4qs7qE.mjs.map +0 -1
  106. package/dist/_chunks/ListConfigurationPage-Dks5SX6f.js.map +0 -1
  107. package/dist/_chunks/ListViewPage-Be7S5aKL.mjs.map +0 -1
  108. package/dist/_chunks/ListViewPage-BwrZrPsh.js.map +0 -1
  109. package/dist/_chunks/NoContentTypePage-CIPmYQMm.mjs.map +0 -1
  110. package/dist/_chunks/NoContentTypePage-Cu5r1-JT.js.map +0 -1
  111. package/dist/_chunks/NoPermissionsPage-C-j6TEUF.js.map +0 -1
  112. package/dist/_chunks/NoPermissionsPage-DhJ7LYrr.mjs.map +0 -1
  113. package/dist/_chunks/Relations-CY7AtkDA.mjs.map +0 -1
  114. package/dist/_chunks/Relations-Czs-uZ-s.js.map +0 -1
  115. package/dist/_chunks/index-DNVx8ssZ.mjs.map +0 -1
  116. package/dist/_chunks/index-X_2tafck.js.map +0 -1
  117. package/dist/_chunks/layout-Dnh0PNp9.mjs.map +0 -1
  118. package/dist/_chunks/layout-dBc7wN7L.js.map +0 -1
@@ -7,10 +7,9 @@ const reactIntl = require("react-intl");
7
7
  const reactRouterDom = require("react-router-dom");
8
8
  const React = require("react");
9
9
  const designSystem = require("@strapi/design-system");
10
- const styled = require("styled-components");
10
+ const styledComponents = require("styled-components");
11
11
  const yup = require("yup");
12
12
  const react = require("@reduxjs/toolkit/query/react");
13
- const axios = require("axios");
14
13
  const pipe = require("lodash/fp/pipe");
15
14
  const dateFns = require("date-fns");
16
15
  const toolkit = require("@reduxjs/toolkit");
@@ -34,7 +33,6 @@ function _interopNamespace(e) {
34
33
  return Object.freeze(n);
35
34
  }
36
35
  const React__namespace = /* @__PURE__ */ _interopNamespace(React);
37
- const styled__default = /* @__PURE__ */ _interopDefault(styled);
38
36
  const yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
39
37
  const pipe__default = /* @__PURE__ */ _interopDefault(pipe);
40
38
  const __variableDynamicImportRuntimeHelper = (glob, path) => {
@@ -226,31 +224,45 @@ const buildValidParams = (query) => {
226
224
  }
227
225
  return validQueryParams;
228
226
  };
229
- const axiosBaseQuery = () => async (query, { signal }) => {
227
+ const fetchBaseQuery = () => async (query, { signal }) => {
230
228
  try {
231
229
  const { get, post, del, put } = strapiAdmin.getFetchClient();
232
230
  if (typeof query === "string") {
233
- const result = await get(query, { signal });
231
+ const result = await get(query, {
232
+ signal
233
+ });
234
234
  return { data: result.data };
235
235
  } else {
236
236
  const { url, method = "GET", data, config } = query;
237
237
  if (method === "POST") {
238
- const result2 = await post(url, data, { ...config, signal });
238
+ const result2 = await post(url, data, {
239
+ ...config,
240
+ signal
241
+ });
239
242
  return { data: result2.data };
240
243
  }
241
244
  if (method === "DELETE") {
242
- const result2 = await del(url, { ...config, signal });
245
+ const result2 = await del(url, {
246
+ ...config,
247
+ signal
248
+ });
243
249
  return { data: result2.data };
244
250
  }
245
251
  if (method === "PUT") {
246
- const result2 = await put(url, data, { ...config, signal });
252
+ const result2 = await put(url, data, {
253
+ ...config,
254
+ signal
255
+ });
247
256
  return { data: result2.data };
248
257
  }
249
- const result = await get(url, { ...config, signal });
258
+ const result = await get(url, {
259
+ ...config,
260
+ signal
261
+ });
250
262
  return { data: result.data };
251
263
  }
252
264
  } catch (err) {
253
- if (axios.isAxiosError(err)) {
265
+ if (strapiAdmin.isFetchError(err)) {
254
266
  if (typeof err.response?.data === "object" && err.response?.data !== null && "error" in err.response?.data) {
255
267
  return { data: void 0, error: err.response?.data.error };
256
268
  } else {
@@ -259,8 +271,8 @@ const axiosBaseQuery = () => async (query, { signal }) => {
259
271
  error: {
260
272
  name: "UnknownError",
261
273
  message: "There was an unknown error response from the API",
262
- details: err.response?.data,
263
- status: err.response?.status
274
+ details: err.response,
275
+ status: err.status
264
276
  }
265
277
  };
266
278
  }
@@ -281,7 +293,7 @@ const isBaseQueryError = (error) => {
281
293
  };
282
294
  const contentManagerApi = react.createApi({
283
295
  reducerPath: "contentManagerApi",
284
- baseQuery: axiosBaseQuery(),
296
+ baseQuery: fetchBaseQuery(),
285
297
  tagTypes: [
286
298
  "ComponentConfiguration",
287
299
  "ContentTypesConfiguration",
@@ -1222,7 +1234,7 @@ const useDocumentActions = () => {
1222
1234
  };
1223
1235
  };
1224
1236
  const ProtectedHistoryPage = React.lazy(
1225
- () => Promise.resolve().then(() => require("./History-C17LiyRg.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1237
+ () => Promise.resolve().then(() => require("./History-DtHjQuqM.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
1226
1238
  );
1227
1239
  const routes$1 = [
1228
1240
  {
@@ -1235,31 +1247,31 @@ const routes$1 = [
1235
1247
  }
1236
1248
  ];
1237
1249
  const ProtectedEditViewPage = React.lazy(
1238
- () => Promise.resolve().then(() => require("./EditViewPage-CzOT5Kpj.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1250
+ () => Promise.resolve().then(() => require("./EditViewPage-CXXue16T.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
1239
1251
  );
1240
1252
  const ProtectedListViewPage = React.lazy(
1241
- () => Promise.resolve().then(() => require("./ListViewPage-BwrZrPsh.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1253
+ () => Promise.resolve().then(() => require("./ListViewPage-CExWwa4S.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
1242
1254
  );
1243
1255
  const ProtectedListConfiguration = React.lazy(
1244
- () => Promise.resolve().then(() => require("./ListConfigurationPage-Dks5SX6f.js")).then((mod) => ({
1256
+ () => Promise.resolve().then(() => require("./ListConfigurationPage-BuSdTjfa.js")).then((mod) => ({
1245
1257
  default: mod.ProtectedListConfiguration
1246
1258
  }))
1247
1259
  );
1248
1260
  const ProtectedEditConfigurationPage = React.lazy(
1249
- () => Promise.resolve().then(() => require("./EditConfigurationPage-BfFzJ4Br.js")).then((mod) => ({
1261
+ () => Promise.resolve().then(() => require("./EditConfigurationPage-BFpQwwbc.js")).then((mod) => ({
1250
1262
  default: mod.ProtectedEditConfigurationPage
1251
1263
  }))
1252
1264
  );
1253
1265
  const ProtectedComponentConfigurationPage = React.lazy(
1254
- () => Promise.resolve().then(() => require("./ComponentConfigurationPage-43KmCNQE.js")).then((mod) => ({
1266
+ () => Promise.resolve().then(() => require("./ComponentConfigurationPage-DMq0wvcL.js")).then((mod) => ({
1255
1267
  default: mod.ProtectedComponentConfigurationPage
1256
1268
  }))
1257
1269
  );
1258
1270
  const NoPermissions = React.lazy(
1259
- () => Promise.resolve().then(() => require("./NoPermissionsPage-C-j6TEUF.js")).then((mod) => ({ default: mod.NoPermissions }))
1271
+ () => Promise.resolve().then(() => require("./NoPermissionsPage-BK-XCpIy.js")).then((mod) => ({ default: mod.NoPermissions }))
1260
1272
  );
1261
1273
  const NoContentType = React.lazy(
1262
- () => Promise.resolve().then(() => require("./NoContentTypePage-Cu5r1-JT.js")).then((mod) => ({ default: mod.NoContentType }))
1274
+ () => Promise.resolve().then(() => require("./NoContentTypePage-DCUL8gVi.js")).then((mod) => ({ default: mod.NoContentType }))
1263
1275
  );
1264
1276
  const CollectionTypePages = () => {
1265
1277
  const { collectionType } = reactRouterDom.useParams();
@@ -1449,7 +1461,7 @@ const DocumentActionsMenu = ({
1449
1461
  variant,
1450
1462
  children: [
1451
1463
  /* @__PURE__ */ jsxRuntime.jsx(Icons.More, { "aria-hidden": true, focusable: false }),
1452
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { as: "span", children: label || formatMessage({
1464
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { tag: "span", children: label || formatMessage({
1453
1465
  id: "content-manager.containers.edit.panels.default.more-actions",
1454
1466
  defaultMessage: "More document actions"
1455
1467
  }) })
@@ -1465,7 +1477,7 @@ const DocumentActionsMenu = ({
1465
1477
  onSelect: handleClick(action),
1466
1478
  display: "block",
1467
1479
  children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", gap: 4, children: [
1468
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { color: convertActionVariantToColor(action.variant), gap: 2, as: "span", children: [
1480
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { color: convertActionVariantToColor(action.variant), gap: 2, tag: "span", children: [
1469
1481
  action.icon,
1470
1482
  action.label
1471
1483
  ] }),
@@ -1585,7 +1597,7 @@ const DocumentActionModal = ({
1585
1597
  onModalClose();
1586
1598
  };
1587
1599
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
1588
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", as: "h2", id, children: title }) }),
1600
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
1589
1601
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalBody, { children: content }),
1590
1602
  /* @__PURE__ */ jsxRuntime.jsx(
1591
1603
  designSystem.Box,
@@ -1866,7 +1878,7 @@ const UnpublishAction = ({
1866
1878
  content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "flex-start", direction: "column", gap: 6, children: [
1867
1879
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { width: "100%", direction: "column", gap: 2, children: [
1868
1880
  /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }),
1869
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "p", variant: "omega", textAlign: "center", children: formatMessage({
1881
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "p", variant: "omega", textAlign: "center", children: formatMessage({
1870
1882
  id: "content-manager.actions.unpublish.dialog.body",
1871
1883
  defaultMessage: "Are you sure?"
1872
1884
  }) })
@@ -1877,10 +1889,10 @@ const UnpublishAction = ({
1877
1889
  onChange: handleChange,
1878
1890
  direction: "column",
1879
1891
  alignItems: "flex-start",
1880
- as: "fieldset",
1892
+ tag: "fieldset",
1881
1893
  gap: 3,
1882
1894
  children: [
1883
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { as: "legend" }),
1895
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { tag: "legend" }),
1884
1896
  /* @__PURE__ */ jsxRuntime.jsx(
1885
1897
  designSystem.Radio,
1886
1898
  {
@@ -1971,7 +1983,7 @@ const DiscardAction = ({
1971
1983
  }),
1972
1984
  content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 2, children: [
1973
1985
  /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }),
1974
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "p", variant: "omega", textAlign: "center", children: formatMessage({
1986
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "p", variant: "omega", textAlign: "center", children: formatMessage({
1975
1987
  id: "content-manager.actions.discard.dialog.body",
1976
1988
  defaultMessage: "Are you sure?"
1977
1989
  }) })
@@ -1988,7 +2000,7 @@ const DiscardAction = ({
1988
2000
  };
1989
2001
  };
1990
2002
  DiscardAction.type = "discard";
1991
- const StyledCrossCircle = styled__default.default(Icons.CrossCircle)`
2003
+ const StyledCrossCircle = styledComponents.styled(Icons.CrossCircle)`
1992
2004
  path {
1993
2005
  fill: currentColor;
1994
2006
  }
@@ -2041,7 +2053,7 @@ const getDisplayName = ({
2041
2053
  const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
2042
2054
  const DocumentStatus = ({ status = "draft", ...restProps }) => {
2043
2055
  const statusVariant = status === "draft" ? "primary" : status === "published" ? "success" : "alternative";
2044
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, showBullet: false, size: "S", variant: statusVariant, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "span", variant: "omega", fontWeight: "bold", children: capitalise(status) }) });
2056
+ 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) }) });
2045
2057
  };
2046
2058
  const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
2047
2059
  const { formatMessage } = reactIntl.useIntl();
@@ -2061,7 +2073,7 @@ const Header = ({ isCreating, status, title: documentTitle = "Untitled" }) => {
2061
2073
  gap: "80px",
2062
2074
  alignItems: "flex-start",
2063
2075
  children: [
2064
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "alpha", as: "h1", children: title }),
2076
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "alpha", tag: "h1", children: title }),
2065
2077
  /* @__PURE__ */ jsxRuntime.jsx(HeaderToolbar, {})
2066
2078
  ]
2067
2079
  }
@@ -2218,7 +2230,7 @@ const Information = ({ activeTab }) => {
2218
2230
  borderColor: "neutral150",
2219
2231
  direction: "column",
2220
2232
  marginTop: 2,
2221
- as: "dl",
2233
+ tag: "dl",
2222
2234
  padding: 5,
2223
2235
  gap: 3,
2224
2236
  alignItems: "flex-start",
@@ -2226,8 +2238,8 @@ const Information = ({ activeTab }) => {
2226
2238
  marginRight: "-0.4rem",
2227
2239
  width: "calc(100% + 8px)",
2228
2240
  children: information.map((info) => /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 1, direction: "column", alignItems: "flex-start", children: [
2229
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "dt", variant: "pi", fontWeight: "bold", children: info.label }),
2230
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "dd", variant: "pi", textColor: "neutral600", children: info.value })
2241
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "dt", variant: "pi", fontWeight: "bold", children: info.label }),
2242
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "dd", variant: "pi", textColor: "neutral600", children: info.value })
2231
2243
  ] }, info.label))
2232
2244
  }
2233
2245
  );
@@ -2268,7 +2280,7 @@ const ConfigureTheViewAction = ({ collectionType, model }) => {
2268
2280
  };
2269
2281
  };
2270
2282
  ConfigureTheViewAction.type = "configure-the-view";
2271
- const StyledCog = styled__default.default(Icons.Cog)`
2283
+ const StyledCog = styledComponents.styled(Icons.Cog)`
2272
2284
  path {
2273
2285
  fill: currentColor;
2274
2286
  }
@@ -2289,7 +2301,7 @@ const EditTheModelAction = ({ model }) => {
2289
2301
  };
2290
2302
  };
2291
2303
  EditTheModelAction.type = "edit-the-model";
2292
- const StyledPencil$1 = styled__default.default(Icons.Pencil)`
2304
+ const StyledPencil$1 = styledComponents.styled(Icons.Pencil)`
2293
2305
  path {
2294
2306
  fill: currentColor;
2295
2307
  }
@@ -2317,7 +2329,7 @@ const DeleteAction = ({ documentId, model, collectionType, document }) => {
2317
2329
  }),
2318
2330
  content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 2, children: [
2319
2331
  /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }),
2320
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "p", variant: "omega", textAlign: "center", children: formatMessage({
2332
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "p", variant: "omega", textAlign: "center", children: formatMessage({
2321
2333
  id: "content-manager.actions.delete.dialog.body",
2322
2334
  defaultMessage: "Are you sure?"
2323
2335
  }) })
@@ -2363,7 +2375,7 @@ const DeleteAction = ({ documentId, model, collectionType, document }) => {
2363
2375
  };
2364
2376
  };
2365
2377
  DeleteAction.type = "delete";
2366
- const StyledTrash = styled__default.default(Icons.Trash)`
2378
+ const StyledTrash = styledComponents.styled(Icons.Trash)`
2367
2379
  path {
2368
2380
  fill: currentColor;
2369
2381
  }
@@ -2442,7 +2454,7 @@ const Panel = React__namespace.forwardRef(({ children, title }, ref) => {
2442
2454
  designSystem.Flex,
2443
2455
  {
2444
2456
  ref,
2445
- as: "aside",
2457
+ tag: "aside",
2446
2458
  "aria-labelledby": "additional-information",
2447
2459
  background: "neutral0",
2448
2460
  borderColor: "neutral150",
@@ -2457,7 +2469,7 @@ const Panel = React__namespace.forwardRef(({ children, title }, ref) => {
2457
2469
  justifyContent: "stretch",
2458
2470
  alignItems: "flex-start",
2459
2471
  children: [
2460
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
2472
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", variant: "sigma", textTransform: "uppercase", children: title }),
2461
2473
  children
2462
2474
  ]
2463
2475
  }
@@ -2495,7 +2507,7 @@ const AutoCloneFailureModalBody = ({ prohibitedFields }) => {
2495
2507
  hasRadius: true,
2496
2508
  padding: 6,
2497
2509
  children: [
2498
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "row", as: "ol", children: fieldPath.map((pathSegment, index2) => /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { fontWeight: "semiBold", as: "li", children: [
2510
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "row", tag: "ol", children: fieldPath.map((pathSegment, index2) => /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { fontWeight: "semiBold", tag: "li", children: [
2499
2511
  pathSegment,
2500
2512
  index2 !== fieldPath.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(
2501
2513
  Icons.ChevronRight,
@@ -2507,7 +2519,7 @@ const AutoCloneFailureModalBody = ({ prohibitedFields }) => {
2507
2519
  }
2508
2520
  )
2509
2521
  ] }, index2)) }),
2510
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "p", textColor: "neutral600", children: formatMessage({
2522
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "p", textColor: "neutral600", children: formatMessage({
2511
2523
  id: getTranslation(`containers.list.autoCloneModal.error.${reason}`),
2512
2524
  defaultMessage: getDefaultErrorMessage(reason)
2513
2525
  }) })
@@ -2591,7 +2603,7 @@ const EditAction = ({ documentId }) => {
2591
2603
  };
2592
2604
  };
2593
2605
  EditAction.type = "edit";
2594
- const StyledPencil = styled__default.default(Icons.Pencil)`
2606
+ const StyledPencil = styledComponents.styled(Icons.Pencil)`
2595
2607
  path {
2596
2608
  fill: currentColor;
2597
2609
  }
@@ -2651,7 +2663,7 @@ const CloneAction = ({ model, documentId }) => {
2651
2663
  /* @__PURE__ */ jsxRuntime.jsx(
2652
2664
  designSystem.LinkButton,
2653
2665
  {
2654
- as: reactRouterDom.NavLink,
2666
+ tag: reactRouterDom.NavLink,
2655
2667
  to: {
2656
2668
  pathname: `clone/${documentId}`
2657
2669
  },
@@ -2667,7 +2679,7 @@ const CloneAction = ({ model, documentId }) => {
2667
2679
  };
2668
2680
  };
2669
2681
  CloneAction.type = "clone";
2670
- const StyledDuplicate = styled__default.default(Icons.Duplicate)`
2682
+ const StyledDuplicate = styledComponents.styled(Icons.Duplicate)`
2671
2683
  path {
2672
2684
  fill: currentColor;
2673
2685
  }
@@ -3128,7 +3140,7 @@ const index = {
3128
3140
  defaultMessage: "Content Manager"
3129
3141
  },
3130
3142
  permissions: [],
3131
- Component: () => Promise.resolve().then(() => require("./layout-dBc7wN7L.js")).then((mod) => ({ default: mod.Layout }))
3143
+ Component: () => Promise.resolve().then(() => require("./layout-DLih5-_W.js")).then((mod) => ({ default: mod.Layout }))
3132
3144
  });
3133
3145
  app.registerPlugin(cm.config);
3134
3146
  },
@@ -3192,4 +3204,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
3192
3204
  exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
3193
3205
  exports.useGetInitialDataQuery = useGetInitialDataQuery;
3194
3206
  exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
3195
- //# sourceMappingURL=index-X_2tafck.js.map
3207
+ //# sourceMappingURL=index-DFK7LwDW.js.map