@strapi/content-manager 0.0.0-experimental.cfda358b7f27015e34e739b8742a2962ae2e7aee → 0.0.0-experimental.d042f6a350fa3a48d61e7c56875e2a0a7ba3c8f5

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 (127) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-bLQr82ce.mjs → ComponentConfigurationPage-9_4yUE9L.mjs} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-bLQr82ce.mjs.map → ComponentConfigurationPage-9_4yUE9L.mjs.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-BTR_hQow.js → ComponentConfigurationPage-DBSh-kET.js} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-BTR_hQow.js.map → ComponentConfigurationPage-DBSh-kET.js.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-z39Wv3E6.js → EditConfigurationPage-Bl_U2JgH.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-z39Wv3E6.js.map → EditConfigurationPage-Bl_U2JgH.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-BhRSnUsL.mjs → EditConfigurationPage-COe6hjPC.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-BhRSnUsL.mjs.map → EditConfigurationPage-COe6hjPC.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-wujOq90c.js → EditViewPage-D4yFJET6.js} +13 -76
  10. package/dist/_chunks/EditViewPage-D4yFJET6.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-BCjNxNlY.mjs → EditViewPage-DrmVmYN0.mjs} +11 -74
  12. package/dist/_chunks/EditViewPage-DrmVmYN0.mjs.map +1 -0
  13. package/dist/_chunks/{Form-D7mexvm3.js → Form-C4rSaGsz.js} +2 -2
  14. package/dist/_chunks/{Form-D7mexvm3.js.map → Form-C4rSaGsz.js.map} +1 -1
  15. package/dist/_chunks/{Form-BZgvE8C8.mjs → Form-DamaxNpG.mjs} +2 -2
  16. package/dist/_chunks/{Form-BZgvE8C8.mjs.map → Form-DamaxNpG.mjs.map} +1 -1
  17. package/dist/_chunks/{History-CqNgxkqK.mjs → History-D1PreDSY.mjs} +32 -8
  18. package/dist/_chunks/History-D1PreDSY.mjs.map +1 -0
  19. package/dist/_chunks/{History-DYl2A8Z_.js → History-DTm8UCCQ.js} +43 -19
  20. package/dist/_chunks/History-DTm8UCCQ.js.map +1 -0
  21. package/dist/_chunks/{Field-B5QXnctJ.js → Input-B7sapvBG.js} +1212 -1269
  22. package/dist/_chunks/Input-B7sapvBG.js.map +1 -0
  23. package/dist/_chunks/{Field-Byr3mPTl.mjs → Input-CZ1YvjHR.mjs} +1131 -1188
  24. package/dist/_chunks/Input-CZ1YvjHR.mjs.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-BbQjzKkQ.mjs → ListConfigurationPage-Bbi32isk.mjs} +2 -2
  26. package/dist/_chunks/{ListConfigurationPage-BbQjzKkQ.mjs.map → ListConfigurationPage-Bbi32isk.mjs.map} +1 -1
  27. package/dist/_chunks/{ListConfigurationPage-BXnu_OoY.js → ListConfigurationPage-ysFMjKI3.js} +2 -2
  28. package/dist/_chunks/{ListConfigurationPage-BXnu_OoY.js.map → ListConfigurationPage-ysFMjKI3.js.map} +1 -1
  29. package/dist/_chunks/{ListViewPage-D4ofkbjR.mjs → ListViewPage-Bud_jBDQ.mjs} +8 -5
  30. package/dist/_chunks/{ListViewPage-D4ofkbjR.mjs.map → ListViewPage-Bud_jBDQ.mjs.map} +1 -1
  31. package/dist/_chunks/{ListViewPage-BtSi8C1l.js → ListViewPage-DTuuxU3n.js} +13 -10
  32. package/dist/_chunks/{ListViewPage-BtSi8C1l.js.map → ListViewPage-DTuuxU3n.js.map} +1 -1
  33. package/dist/_chunks/{NoContentTypePage-CitJeOq4.js → NoContentTypePage-CL7VVeYs.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-CitJeOq4.js.map → NoContentTypePage-CL7VVeYs.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-DyUx5mXh.mjs → NoContentTypePage-DVhkugsf.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-DyUx5mXh.mjs.map → NoContentTypePage-DVhkugsf.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-DhIiyWkk.mjs → NoPermissionsPage-CMdM-dCo.mjs} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-DhIiyWkk.mjs.map → NoPermissionsPage-CMdM-dCo.mjs.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-DzgWz0M-.js → NoPermissionsPage-v7I599vC.js} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-DzgWz0M-.js.map → NoPermissionsPage-v7I599vC.js.map} +1 -1
  41. package/dist/_chunks/{Preview-BaYGJ0nb.mjs → Preview-BNuU0SuQ.mjs} +10 -16
  42. package/dist/_chunks/Preview-BNuU0SuQ.mjs.map +1 -0
  43. package/dist/_chunks/{Preview-DfNx8Ke-.js → Preview-Cxq-uI6D.js} +10 -16
  44. package/dist/_chunks/Preview-Cxq-uI6D.js.map +1 -0
  45. package/dist/_chunks/{Relations-DM2yUTST.mjs → Relations-C2Ahkrdg.mjs} +3 -3
  46. package/dist/_chunks/{Relations-DM2yUTST.mjs.map → Relations-C2Ahkrdg.mjs.map} +1 -1
  47. package/dist/_chunks/{Relations-DuKCaXrv.js → Relations-CWS79QQn.js} +3 -3
  48. package/dist/_chunks/{Relations-DuKCaXrv.js.map → Relations-CWS79QQn.js.map} +1 -1
  49. package/dist/_chunks/{en-BK8Xyl5I.js → en-BR48D_RH.js} +9 -2
  50. package/dist/_chunks/{en-BK8Xyl5I.js.map → en-BR48D_RH.js.map} +1 -1
  51. package/dist/_chunks/{en-Dtk_ot79.mjs → en-D65uIF6Y.mjs} +9 -2
  52. package/dist/_chunks/{en-Dtk_ot79.mjs.map → en-D65uIF6Y.mjs.map} +1 -1
  53. package/dist/_chunks/{fr-B2Kyv8Z9.js → fr-C43IbhA_.js} +4 -1
  54. package/dist/_chunks/{fr-B2Kyv8Z9.js.map → fr-C43IbhA_.js.map} +1 -1
  55. package/dist/_chunks/{fr--pg5jUbt.mjs → fr-DBseuRuB.mjs} +4 -1
  56. package/dist/_chunks/{fr--pg5jUbt.mjs.map → fr-DBseuRuB.mjs.map} +1 -1
  57. package/dist/_chunks/{index-BUWEmX8m.js → index-DQsvBb_N.js} +293 -69
  58. package/dist/_chunks/index-DQsvBb_N.js.map +1 -0
  59. package/dist/_chunks/{index-DVAIIsOs.mjs → index-ZKrsjv-2.mjs} +312 -88
  60. package/dist/_chunks/index-ZKrsjv-2.mjs.map +1 -0
  61. package/dist/_chunks/{layout-C3fN7Ejz.js → layout-Cl0NhlQB.js} +3 -3
  62. package/dist/_chunks/{layout-C3fN7Ejz.js.map → layout-Cl0NhlQB.js.map} +1 -1
  63. package/dist/_chunks/{layout-Bxsv5mP7.mjs → layout-fQk1rMk9.mjs} +3 -3
  64. package/dist/_chunks/{layout-Bxsv5mP7.mjs.map → layout-fQk1rMk9.mjs.map} +1 -1
  65. package/dist/_chunks/{relations-BPZKAoEY.js → relations-BRfBxVbX.js} +2 -2
  66. package/dist/_chunks/{relations-BPZKAoEY.js.map → relations-BRfBxVbX.js.map} +1 -1
  67. package/dist/_chunks/{relations-o3pPhzY4.mjs → relations-BakOFl_1.mjs} +2 -2
  68. package/dist/_chunks/{relations-o3pPhzY4.mjs.map → relations-BakOFl_1.mjs.map} +1 -1
  69. package/dist/_chunks/{useDebounce-DmuSJIF3.mjs → usePrev-CZGy2Vjf.mjs} +11 -11
  70. package/dist/_chunks/usePrev-CZGy2Vjf.mjs.map +1 -0
  71. package/dist/_chunks/{useDebounce-CtcjDB3L.js → usePrev-D5J_2fEu.js} +8 -8
  72. package/dist/_chunks/usePrev-D5J_2fEu.js.map +1 -0
  73. package/dist/admin/index.js +2 -1
  74. package/dist/admin/index.js.map +1 -1
  75. package/dist/admin/index.mjs +6 -5
  76. package/dist/admin/src/exports.d.ts +1 -0
  77. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  78. package/dist/admin/src/hooks/useDocument.d.ts +19 -2
  79. package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +1 -1
  80. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +4 -1
  81. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -1
  82. package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +27 -0
  83. package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
  84. package/dist/admin/src/preview/pages/Preview.d.ts +1 -1
  85. package/dist/admin/src/preview/services/preview.d.ts +1 -1
  86. package/dist/admin/src/services/api.d.ts +1 -1
  87. package/dist/admin/src/services/components.d.ts +2 -2
  88. package/dist/admin/src/services/contentTypes.d.ts +3 -3
  89. package/dist/admin/src/services/documents.d.ts +16 -16
  90. package/dist/admin/src/services/init.d.ts +1 -1
  91. package/dist/admin/src/services/relations.d.ts +2 -2
  92. package/dist/admin/src/services/uid.d.ts +3 -3
  93. package/dist/server/index.js +156 -138
  94. package/dist/server/index.js.map +1 -1
  95. package/dist/server/index.mjs +157 -139
  96. package/dist/server/index.mjs.map +1 -1
  97. package/dist/server/src/controllers/utils/metadata.d.ts +1 -0
  98. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
  99. package/dist/server/src/history/controllers/history-version.d.ts +1 -1
  100. package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
  101. package/dist/server/src/history/services/history.d.ts +3 -3
  102. package/dist/server/src/history/services/history.d.ts.map +1 -1
  103. package/dist/server/src/history/services/utils.d.ts +6 -10
  104. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  105. package/dist/server/src/index.d.ts +3 -2
  106. package/dist/server/src/index.d.ts.map +1 -1
  107. package/dist/server/src/services/document-metadata.d.ts +4 -2
  108. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  109. package/dist/server/src/services/index.d.ts +3 -2
  110. package/dist/server/src/services/index.d.ts.map +1 -1
  111. package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
  112. package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
  113. package/dist/server/src/services/utils/populate.d.ts +2 -2
  114. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  115. package/package.json +6 -7
  116. package/dist/_chunks/EditViewPage-BCjNxNlY.mjs.map +0 -1
  117. package/dist/_chunks/EditViewPage-wujOq90c.js.map +0 -1
  118. package/dist/_chunks/Field-B5QXnctJ.js.map +0 -1
  119. package/dist/_chunks/Field-Byr3mPTl.mjs.map +0 -1
  120. package/dist/_chunks/History-CqNgxkqK.mjs.map +0 -1
  121. package/dist/_chunks/History-DYl2A8Z_.js.map +0 -1
  122. package/dist/_chunks/Preview-BaYGJ0nb.mjs.map +0 -1
  123. package/dist/_chunks/Preview-DfNx8Ke-.js.map +0 -1
  124. package/dist/_chunks/index-BUWEmX8m.js.map +0 -1
  125. package/dist/_chunks/index-DVAIIsOs.mjs.map +0 -1
  126. package/dist/_chunks/useDebounce-CtcjDB3L.js.map +0 -1
  127. package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +0 -1
@@ -1,17 +1,18 @@
1
- import { More, Cross, WarningCircle, ListPlus, Pencil, Trash, Check, CrossCircle, CheckCircle, ArrowsCounterClockwise, ChevronRight, Duplicate, ClockCounterClockwise, Feather } from "@strapi/icons";
1
+ import { More, Cross, WarningCircle, ListPlus, Pencil, Trash, Check, CheckCircle, ArrowsCounterClockwise, CrossCircle, ChevronRight, Duplicate, ClockCounterClockwise, Feather } from "@strapi/icons";
2
2
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
3
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 { Menu, Button, VisuallyHidden, Flex, Dialog, Modal, Typography, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, Loader, Tooltip, LinkButton } from "@strapi/design-system";
6
+ import { Menu, Button, VisuallyHidden, Flex, Dialog, Modal, Typography, Radio, Status, Box, SingleSelect, SingleSelectOption, IconButton, RawTable, Loader, Tbody, Tr, Td, 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";
10
10
  import { styled } from "styled-components";
11
11
  import * as yup from "yup";
12
12
  import { ValidationError } from "yup";
13
- import { stringify } from "qs";
13
+ import { generateNKeysBetween } from "fractional-indexing";
14
14
  import pipe from "lodash/fp/pipe";
15
+ import { stringify } from "qs";
15
16
  import { intervalToDuration, isPast } from "date-fns";
16
17
  import { createSlice, combineReducers } from "@reduxjs/toolkit";
17
18
  const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
@@ -166,6 +167,113 @@ const extractAndDedupeFields = (permissions = []) => permissions.flatMap((permis
166
167
  (field, index2, arr) => arr.indexOf(field) === index2 && typeof field === "string"
167
168
  );
168
169
  const removeNumericalStrings = (arr) => arr.filter((item) => isNaN(Number(item)));
170
+ const BLOCK_LIST_ATTRIBUTE_KEYS = ["__component", "__temp_key__"];
171
+ const traverseData = (predicate, transform) => (schema, components = {}) => (data = {}) => {
172
+ const traverse = (datum, attributes) => {
173
+ return Object.entries(datum).reduce((acc, [key, value]) => {
174
+ const attribute = attributes[key];
175
+ if (BLOCK_LIST_ATTRIBUTE_KEYS.includes(key) || value === null || value === void 0) {
176
+ acc[key] = value;
177
+ return acc;
178
+ }
179
+ if (attribute.type === "component") {
180
+ if (attribute.repeatable) {
181
+ const componentValue = predicate(attribute, value) ? transform(value, attribute) : value;
182
+ acc[key] = componentValue.map(
183
+ (componentData) => traverse(componentData, components[attribute.component]?.attributes ?? {})
184
+ );
185
+ } else {
186
+ const componentValue = predicate(attribute, value) ? transform(value, attribute) : value;
187
+ acc[key] = traverse(componentValue, components[attribute.component]?.attributes ?? {});
188
+ }
189
+ } else if (attribute.type === "dynamiczone") {
190
+ const dynamicZoneValue = predicate(attribute, value) ? transform(value, attribute) : value;
191
+ acc[key] = dynamicZoneValue.map(
192
+ (componentData) => traverse(componentData, components[componentData.__component]?.attributes ?? {})
193
+ );
194
+ } else if (predicate(attribute, value)) {
195
+ acc[key] = transform(value, attribute);
196
+ } else {
197
+ acc[key] = value;
198
+ }
199
+ return acc;
200
+ }, {});
201
+ };
202
+ return traverse(data, schema.attributes);
203
+ };
204
+ const removeProhibitedFields = (prohibitedFields) => traverseData(
205
+ (attribute) => prohibitedFields.includes(attribute.type),
206
+ () => ""
207
+ );
208
+ const prepareRelations = traverseData(
209
+ (attribute) => attribute.type === "relation",
210
+ () => ({
211
+ connect: [],
212
+ disconnect: []
213
+ })
214
+ );
215
+ const prepareTempKeys = traverseData(
216
+ (attribute) => attribute.type === "component" && attribute.repeatable || attribute.type === "dynamiczone",
217
+ (data) => {
218
+ if (Array.isArray(data) && data.length > 0) {
219
+ const keys = generateNKeysBetween(void 0, void 0, data.length);
220
+ return data.map((datum, index2) => ({
221
+ ...datum,
222
+ __temp_key__: keys[index2]
223
+ }));
224
+ }
225
+ return data;
226
+ }
227
+ );
228
+ const removeFieldsThatDontExistOnSchema = (schema) => (data) => {
229
+ const schemaKeys = Object.keys(schema.attributes);
230
+ const dataKeys = Object.keys(data);
231
+ const keysToRemove = dataKeys.filter((key) => !schemaKeys.includes(key));
232
+ const revisedData = [...keysToRemove, ...DOCUMENT_META_FIELDS].reduce((acc, key) => {
233
+ delete acc[key];
234
+ return acc;
235
+ }, structuredClone(data));
236
+ return revisedData;
237
+ };
238
+ const removeNullValues = (data) => {
239
+ return Object.entries(data).reduce((acc, [key, value]) => {
240
+ if (value === null) {
241
+ return acc;
242
+ }
243
+ acc[key] = value;
244
+ return acc;
245
+ }, {});
246
+ };
247
+ const transformDocument = (schema, components = {}) => (document) => {
248
+ const transformations = pipe(
249
+ removeFieldsThatDontExistOnSchema(schema),
250
+ removeProhibitedFields(["password"])(schema, components),
251
+ removeNullValues,
252
+ prepareRelations(schema, components),
253
+ prepareTempKeys(schema, components)
254
+ );
255
+ return transformations(document);
256
+ };
257
+ const createDefaultForm = (contentType, components = {}) => {
258
+ const traverseSchema = (attributes) => {
259
+ return Object.entries(attributes).reduce((acc, [key, attribute]) => {
260
+ if ("default" in attribute) {
261
+ acc[key] = attribute.default;
262
+ } else if (attribute.type === "component" && attribute.required) {
263
+ const defaultComponentForm = traverseSchema(components[attribute.component].attributes);
264
+ if (attribute.repeatable) {
265
+ acc[key] = attribute.min ? [...Array(attribute.min).fill(defaultComponentForm)] : [];
266
+ } else {
267
+ acc[key] = defaultComponentForm;
268
+ }
269
+ } else if (attribute.type === "dynamiczone" && attribute.required) {
270
+ acc[key] = [];
271
+ }
272
+ return acc;
273
+ }, {});
274
+ };
275
+ return traverseSchema(contentType.attributes);
276
+ };
169
277
  const contentManagerApi = adminApi.enhanceEndpoints({
170
278
  addTagTypes: [
171
279
  "ComponentConfiguration",
@@ -175,7 +283,8 @@ const contentManagerApi = adminApi.enhanceEndpoints({
175
283
  "InitialData",
176
284
  "HistoryVersion",
177
285
  "Relations",
178
- "UidAvailability"
286
+ "UidAvailability",
287
+ "RecentDocumentList"
179
288
  ]
180
289
  });
181
290
  const documentApi = contentManagerApi.injectEndpoints({
@@ -193,7 +302,7 @@ const documentApi = contentManagerApi.injectEndpoints({
193
302
  if (error) {
194
303
  return [];
195
304
  }
196
- return [{ type: "Document", id: `${model}_LIST` }];
305
+ return [{ type: "Document", id: `${model}_LIST` }, "RecentDocumentList"];
197
306
  }
198
307
  }),
199
308
  cloneDocument: builder.mutation({
@@ -207,7 +316,8 @@ const documentApi = contentManagerApi.injectEndpoints({
207
316
  }),
208
317
  invalidatesTags: (_result, _error, { model }) => [
209
318
  { type: "Document", id: `${model}_LIST` },
210
- { type: "UidAvailability", id: model }
319
+ { type: "UidAvailability", id: model },
320
+ "RecentDocumentList"
211
321
  ]
212
322
  }),
213
323
  /**
@@ -226,8 +336,21 @@ const documentApi = contentManagerApi.injectEndpoints({
226
336
  invalidatesTags: (result, _error, { model }) => [
227
337
  { type: "Document", id: `${model}_LIST` },
228
338
  "Relations",
229
- { type: "UidAvailability", id: model }
230
- ]
339
+ { type: "UidAvailability", id: model },
340
+ "RecentDocumentList"
341
+ ],
342
+ transformResponse: (response, meta, arg) => {
343
+ if (!("data" in response) && arg.model === "plugin::users-permissions.user") {
344
+ return {
345
+ data: response,
346
+ meta: {
347
+ availableStatus: [],
348
+ availableLocales: []
349
+ }
350
+ };
351
+ }
352
+ return response;
353
+ }
231
354
  }),
232
355
  deleteDocument: builder.mutation({
233
356
  query: ({ collectionType, model, documentId, params }) => ({
@@ -238,7 +361,8 @@ const documentApi = contentManagerApi.injectEndpoints({
238
361
  }
239
362
  }),
240
363
  invalidatesTags: (_result, _error, { collectionType, model }) => [
241
- { type: "Document", id: collectionType !== SINGLE_TYPES ? `${model}_LIST` : model }
364
+ { type: "Document", id: collectionType !== SINGLE_TYPES ? `${model}_LIST` : model },
365
+ "RecentDocumentList"
242
366
  ]
243
367
  }),
244
368
  deleteManyDocuments: builder.mutation({
@@ -250,7 +374,10 @@ const documentApi = contentManagerApi.injectEndpoints({
250
374
  params
251
375
  }
252
376
  }),
253
- invalidatesTags: (_res, _error, { model }) => [{ type: "Document", id: `${model}_LIST` }]
377
+ invalidatesTags: (_res, _error, { model }) => [
378
+ { type: "Document", id: `${model}_LIST` },
379
+ "RecentDocumentList"
380
+ ]
254
381
  }),
255
382
  discardDocument: builder.mutation({
256
383
  query: ({ collectionType, model, documentId, params }) => ({
@@ -268,7 +395,8 @@ const documentApi = contentManagerApi.injectEndpoints({
268
395
  },
269
396
  { type: "Document", id: `${model}_LIST` },
270
397
  "Relations",
271
- { type: "UidAvailability", id: model }
398
+ { type: "UidAvailability", id: model },
399
+ "RecentDocumentList"
272
400
  ];
273
401
  }
274
402
  }),
@@ -363,7 +491,8 @@ const documentApi = contentManagerApi.injectEndpoints({
363
491
  id: collectionType !== SINGLE_TYPES ? `${model}_${documentId}` : model
364
492
  },
365
493
  { type: "Document", id: `${model}_LIST` },
366
- "Relations"
494
+ "Relations",
495
+ "RecentDocumentList"
367
496
  ];
368
497
  }
369
498
  }),
@@ -394,7 +523,9 @@ const documentApi = contentManagerApi.injectEndpoints({
394
523
  id: collectionType !== SINGLE_TYPES ? `${model}_${documentId}` : model
395
524
  },
396
525
  "Relations",
397
- { type: "UidAvailability", id: model }
526
+ { type: "UidAvailability", id: model },
527
+ "RecentDocumentList",
528
+ "RecentDocumentList"
398
529
  ];
399
530
  },
400
531
  async onQueryStarted({ data, ...patch }, { dispatch, queryFulfilled }) {
@@ -424,7 +555,8 @@ const documentApi = contentManagerApi.injectEndpoints({
424
555
  {
425
556
  type: "Document",
426
557
  id: collectionType !== SINGLE_TYPES ? `${model}_${documentId}` : model
427
- }
558
+ },
559
+ "RecentDocumentList"
428
560
  ];
429
561
  }
430
562
  }),
@@ -437,7 +569,10 @@ const documentApi = contentManagerApi.injectEndpoints({
437
569
  params
438
570
  }
439
571
  }),
440
- invalidatesTags: (_res, _error, { model, documentIds }) => documentIds.map((id) => ({ type: "Document", id: `${model}_${id}` }))
572
+ invalidatesTags: (_res, _error, { model, documentIds }) => [
573
+ ...documentIds.map((id) => ({ type: "Document", id: `${model}_${id}` })),
574
+ "RecentDocumentList"
575
+ ]
441
576
  })
442
577
  })
443
578
  });
@@ -1108,6 +1243,7 @@ const convertListLayoutToFieldLayouts = (columns, attributes = {}, metadatas, co
1108
1243
  const useDocument = (args, opts) => {
1109
1244
  const { toggleNotification } = useNotification();
1110
1245
  const { _unstableFormatAPIError: formatAPIError } = useAPIErrorHandler();
1246
+ const { formatMessage } = useIntl();
1111
1247
  const {
1112
1248
  currentData: data,
1113
1249
  isLoading: isLoadingDocument,
@@ -1117,12 +1253,27 @@ const useDocument = (args, opts) => {
1117
1253
  ...opts,
1118
1254
  skip: !args.documentId && args.collectionType !== SINGLE_TYPES || opts?.skip
1119
1255
  });
1256
+ const document = data?.data;
1257
+ const meta = data?.meta;
1120
1258
  const {
1121
1259
  components,
1122
1260
  schema,
1123
1261
  schemas,
1124
1262
  isLoading: isLoadingSchema
1125
1263
  } = useContentTypeSchema(args.model);
1264
+ const isSingleType = schema?.kind === "singleType";
1265
+ const getTitle = (mainField) => {
1266
+ if (mainField !== "id" && document?.[mainField]) {
1267
+ return document[mainField];
1268
+ }
1269
+ if (isSingleType && schema?.info.displayName) {
1270
+ return schema.info.displayName;
1271
+ }
1272
+ return formatMessage({
1273
+ id: "content-manager.containers.untitled",
1274
+ defaultMessage: "Untitled"
1275
+ });
1276
+ };
1126
1277
  React.useEffect(() => {
1127
1278
  if (error) {
1128
1279
  toggleNotification({
@@ -1138,14 +1289,14 @@ const useDocument = (args, opts) => {
1138
1289
  return createYupSchema(schema.attributes, components);
1139
1290
  }, [schema, components]);
1140
1291
  const validate = React.useCallback(
1141
- (document) => {
1292
+ (document2) => {
1142
1293
  if (!validationSchema) {
1143
1294
  throw new Error(
1144
1295
  "There is no validation schema generated, this is likely due to the schema not being loaded yet."
1145
1296
  );
1146
1297
  }
1147
1298
  try {
1148
- validationSchema.validateSync(document, { abortEarly: false, strict: true });
1299
+ validationSchema.validateSync(document2, { abortEarly: false, strict: true });
1149
1300
  return null;
1150
1301
  } catch (error2) {
1151
1302
  if (error2 instanceof ValidationError) {
@@ -1156,17 +1307,29 @@ const useDocument = (args, opts) => {
1156
1307
  },
1157
1308
  [validationSchema]
1158
1309
  );
1310
+ const getInitialFormValues = React.useCallback(
1311
+ (isCreatingDocument = false) => {
1312
+ if (!document && !isCreatingDocument && !isSingleType || !schema) {
1313
+ return void 0;
1314
+ }
1315
+ const form = document?.id ? document : createDefaultForm(schema, components);
1316
+ return transformDocument(schema, components)(form);
1317
+ },
1318
+ [document, isSingleType, schema, components]
1319
+ );
1159
1320
  const isLoading = isLoadingDocument || isFetchingDocument || isLoadingSchema;
1160
1321
  const hasError = !!error;
1161
1322
  return {
1162
1323
  components,
1163
- document: data?.data,
1164
- meta: data?.meta,
1324
+ document,
1325
+ meta,
1165
1326
  isLoading,
1166
1327
  hasError,
1167
1328
  schema,
1168
1329
  schemas,
1169
- validate
1330
+ validate,
1331
+ getTitle,
1332
+ getInitialFormValues
1170
1333
  };
1171
1334
  };
1172
1335
  const useDoc = () => {
@@ -1667,7 +1830,7 @@ const useDocumentActions = () => {
1667
1830
  };
1668
1831
  };
1669
1832
  const ProtectedHistoryPage = React.lazy(
1670
- () => import("./History-CqNgxkqK.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1833
+ () => import("./History-D1PreDSY.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
1671
1834
  );
1672
1835
  const routes$2 = [
1673
1836
  {
@@ -1680,7 +1843,7 @@ const routes$2 = [
1680
1843
  }
1681
1844
  ];
1682
1845
  const ProtectedPreviewPage = React.lazy(
1683
- () => import("./Preview-BaYGJ0nb.mjs").then((mod) => ({ default: mod.ProtectedPreviewPage }))
1846
+ () => import("./Preview-BNuU0SuQ.mjs").then((mod) => ({ default: mod.ProtectedPreviewPage }))
1684
1847
  );
1685
1848
  const routes$1 = [
1686
1849
  {
@@ -1693,31 +1856,31 @@ const routes$1 = [
1693
1856
  }
1694
1857
  ];
1695
1858
  const ProtectedEditViewPage = lazy(
1696
- () => import("./EditViewPage-BCjNxNlY.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1859
+ () => import("./EditViewPage-DrmVmYN0.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
1697
1860
  );
1698
1861
  const ProtectedListViewPage = lazy(
1699
- () => import("./ListViewPage-D4ofkbjR.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1862
+ () => import("./ListViewPage-Bud_jBDQ.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
1700
1863
  );
1701
1864
  const ProtectedListConfiguration = lazy(
1702
- () => import("./ListConfigurationPage-BbQjzKkQ.mjs").then((mod) => ({
1865
+ () => import("./ListConfigurationPage-Bbi32isk.mjs").then((mod) => ({
1703
1866
  default: mod.ProtectedListConfiguration
1704
1867
  }))
1705
1868
  );
1706
1869
  const ProtectedEditConfigurationPage = lazy(
1707
- () => import("./EditConfigurationPage-BhRSnUsL.mjs").then((mod) => ({
1870
+ () => import("./EditConfigurationPage-COe6hjPC.mjs").then((mod) => ({
1708
1871
  default: mod.ProtectedEditConfigurationPage
1709
1872
  }))
1710
1873
  );
1711
1874
  const ProtectedComponentConfigurationPage = lazy(
1712
- () => import("./ComponentConfigurationPage-bLQr82ce.mjs").then((mod) => ({
1875
+ () => import("./ComponentConfigurationPage-9_4yUE9L.mjs").then((mod) => ({
1713
1876
  default: mod.ProtectedComponentConfigurationPage
1714
1877
  }))
1715
1878
  );
1716
1879
  const NoPermissions = lazy(
1717
- () => import("./NoPermissionsPage-DhIiyWkk.mjs").then((mod) => ({ default: mod.NoPermissions }))
1880
+ () => import("./NoPermissionsPage-CMdM-dCo.mjs").then((mod) => ({ default: mod.NoPermissions }))
1718
1881
  );
1719
1882
  const NoContentType = lazy(
1720
- () => import("./NoContentTypePage-DyUx5mXh.mjs").then((mod) => ({ default: mod.NoContentType }))
1883
+ () => import("./NoContentTypePage-DVhkugsf.mjs").then((mod) => ({ default: mod.NoContentType }))
1721
1884
  );
1722
1885
  const CollectionTypePages = () => {
1723
1886
  const { collectionType } = useParams();
@@ -3112,7 +3275,7 @@ const ConfirmBulkActionDialog = ({
3112
3275
  ] })
3113
3276
  ] }) });
3114
3277
  };
3115
- const BoldChunk$1 = (chunks) => /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: chunks });
3278
+ const BoldChunk = (chunks) => /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: chunks });
3116
3279
  const ConfirmDialogPublishAll = ({
3117
3280
  isOpen,
3118
3281
  onToggleDialog,
@@ -3161,7 +3324,7 @@ const ConfirmDialogPublishAll = ({
3161
3324
  defaultMessage: "<b>{count} {count, plural, one { relation } other { relations } } out of {entities} { entities, plural, one { entry } other { entries } } {count, plural, one { is } other { are } }</b> not published yet and might lead to unexpected behavior. "
3162
3325
  },
3163
3326
  {
3164
- b: BoldChunk$1,
3327
+ b: BoldChunk,
3165
3328
  count: countDraftRelations,
3166
3329
  entities: selectedEntries.length
3167
3330
  }
@@ -3200,6 +3363,16 @@ const ConfirmDialogPublishAll = ({
3200
3363
  const TypographyMaxWidth = styled(Typography)`
3201
3364
  max-width: 300px;
3202
3365
  `;
3366
+ const TableComponent = styled(RawTable)`
3367
+ width: 100%;
3368
+ table-layout: fixed;
3369
+ td:first-child {
3370
+ border-right: 1px solid ${({ theme }) => theme.colors.neutral150};
3371
+ }
3372
+ td:first-of-type {
3373
+ padding: ${({ theme }) => theme.spaces[4]};
3374
+ }
3375
+ `;
3203
3376
  const formatErrorMessages = (errors, parentKey, formatMessage) => {
3204
3377
  const messages = [];
3205
3378
  Object.entries(errors).forEach(([key, value]) => {
@@ -3304,7 +3477,7 @@ const SelectedEntriesTableContent = ({
3304
3477
  )
3305
3478
  ] }),
3306
3479
  /* @__PURE__ */ jsx(Table.Loading, {}),
3307
- /* @__PURE__ */ jsx(Table.Body, { children: rowsToDisplay.map((row, index2) => /* @__PURE__ */ jsxs(Table.Row, { children: [
3480
+ /* @__PURE__ */ jsx(Table.Body, { children: rowsToDisplay.map((row) => /* @__PURE__ */ jsxs(Table.Row, { children: [
3308
3481
  /* @__PURE__ */ jsx(Table.CheckboxCell, { id: row.id }),
3309
3482
  /* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(Typography, { children: row.id }) }),
3310
3483
  shouldDisplayMainField && /* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(Typography, { children: row[mainField] }) }),
@@ -3344,7 +3517,73 @@ const SelectedEntriesTableContent = ({
3344
3517
  ] }, row.id)) })
3345
3518
  ] });
3346
3519
  };
3347
- const BoldChunk = (chunks) => /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: chunks });
3520
+ const PublicationStatusSummary = ({ count, icon, message }) => {
3521
+ return /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", flex: 1, gap: 3, children: [
3522
+ /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
3523
+ icon,
3524
+ /* @__PURE__ */ jsx(Typography, { children: message })
3525
+ ] }),
3526
+ /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: count })
3527
+ ] });
3528
+ };
3529
+ const PublicationStatusGrid = ({
3530
+ entriesReadyToPublishCount,
3531
+ entriesPublishedCount,
3532
+ entriesModifiedCount,
3533
+ entriesWithErrorsCount
3534
+ }) => {
3535
+ const { formatMessage } = useIntl();
3536
+ return /* @__PURE__ */ jsx(Box, { hasRadius: true, borderColor: "neutral150", children: /* @__PURE__ */ jsx(TableComponent, { colCount: 2, rowCount: 2, children: /* @__PURE__ */ jsxs(Tbody, { children: [
3537
+ /* @__PURE__ */ jsxs(Tr, { children: [
3538
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(
3539
+ PublicationStatusSummary,
3540
+ {
3541
+ count: entriesReadyToPublishCount,
3542
+ icon: /* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
3543
+ message: formatMessage({
3544
+ id: "app.utils.ready-to-publish",
3545
+ defaultMessage: "Ready to publish"
3546
+ })
3547
+ }
3548
+ ) }),
3549
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(
3550
+ PublicationStatusSummary,
3551
+ {
3552
+ count: entriesPublishedCount,
3553
+ icon: /* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
3554
+ message: formatMessage({
3555
+ id: "app.utils.already-published",
3556
+ defaultMessage: "Already published"
3557
+ })
3558
+ }
3559
+ ) })
3560
+ ] }),
3561
+ /* @__PURE__ */ jsxs(Tr, { children: [
3562
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(
3563
+ PublicationStatusSummary,
3564
+ {
3565
+ count: entriesModifiedCount,
3566
+ icon: /* @__PURE__ */ jsx(ArrowsCounterClockwise, { fill: "alternative600" }),
3567
+ message: formatMessage({
3568
+ id: "content-manager.bulk-publish.modified",
3569
+ defaultMessage: "Ready to publish changes"
3570
+ })
3571
+ }
3572
+ ) }),
3573
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(
3574
+ PublicationStatusSummary,
3575
+ {
3576
+ count: entriesWithErrorsCount,
3577
+ icon: /* @__PURE__ */ jsx(CrossCircle, { fill: "danger600" }),
3578
+ message: formatMessage({
3579
+ id: "content-manager.bulk-publish.waiting-for-action",
3580
+ defaultMessage: "Waiting for action"
3581
+ })
3582
+ }
3583
+ ) })
3584
+ ] })
3585
+ ] }) }) });
3586
+ };
3348
3587
  const SelectedEntriesModalContent = ({
3349
3588
  listViewSelectedEntries,
3350
3589
  toggleModal,
@@ -3403,7 +3642,6 @@ const SelectedEntriesModalContent = ({
3403
3642
  validationErrors: {}
3404
3643
  };
3405
3644
  }, [components, data, schema]);
3406
- const [publishedCount, setPublishedCount] = React.useState(0);
3407
3645
  const [isDialogOpen, setIsDialogOpen] = React.useState(false);
3408
3646
  const { publishMany: bulkPublishAction } = useDocumentActions();
3409
3647
  const [, { isLoading: isSubmittingForm }] = usePublishManyDocumentsMutation();
@@ -3415,53 +3653,36 @@ const SelectedEntriesModalContent = ({
3415
3653
  const selectedEntriesWithErrorsCount = selectedEntries.filter(
3416
3654
  ({ documentId }) => validationErrors[documentId]
3417
3655
  ).length;
3418
- const selectedEntriesPublished = selectedEntries.filter(
3656
+ const selectedEntriesPublishedCount = selectedEntries.filter(
3419
3657
  ({ status }) => status === "published"
3420
3658
  ).length;
3421
- const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublished;
3659
+ const selectedEntriesModifiedCount = selectedEntries.filter(
3660
+ ({ status, documentId }) => status === "modified" && !validationErrors[documentId]
3661
+ ).length;
3662
+ const selectedEntriesWithNoErrorsCount = selectedEntries.length - selectedEntriesWithErrorsCount - selectedEntriesPublishedCount;
3422
3663
  const toggleDialog = () => setIsDialogOpen((prev) => !prev);
3423
3664
  const handleConfirmBulkPublish = async () => {
3424
3665
  toggleDialog();
3425
3666
  const res = await bulkPublishAction({ model, documentIds: entriesToPublish, params });
3426
3667
  if (!("error" in res)) {
3427
- setPublishedCount(res.count);
3428
3668
  const unpublishedEntries = rows.filter((row) => {
3429
3669
  return !entriesToPublish.includes(row.documentId);
3430
3670
  });
3431
3671
  setListViewSelectedDocuments(unpublishedEntries);
3432
3672
  }
3433
3673
  };
3434
- const getFormattedCountMessage = () => {
3435
- if (publishedCount) {
3436
- return formatMessage(
3437
- {
3438
- id: getTranslation("containers.list.selectedEntriesModal.publishedCount"),
3439
- defaultMessage: "<b>{publishedCount}</b> {publishedCount, plural, =0 {entries} one {entry} other {entries}} published. <b>{withErrorsCount}</b> {withErrorsCount, plural, =0 {entries} one {entry} other {entries}} waiting for action."
3440
- },
3441
- {
3442
- publishedCount,
3443
- withErrorsCount: selectedEntriesWithErrorsCount,
3444
- b: BoldChunk
3445
- }
3446
- );
3447
- }
3448
- return formatMessage(
3449
- {
3450
- id: getTranslation("containers.list.selectedEntriesModal.selectedCount"),
3451
- defaultMessage: "<b>{alreadyPublishedCount}</b> {alreadyPublishedCount, plural, =0 {entries} one {entry} other {entries}} already published. <b>{readyToPublishCount}</b> {readyToPublishCount, plural, =0 {entries} one {entry} other {entries}} ready to publish. <b>{withErrorsCount}</b> {withErrorsCount, plural, =0 {entries} one {entry} other {entries}} waiting for action."
3452
- },
3453
- {
3454
- readyToPublishCount: selectedEntriesWithNoErrorsCount,
3455
- withErrorsCount: selectedEntriesWithErrorsCount,
3456
- alreadyPublishedCount: selectedEntriesPublished,
3457
- b: BoldChunk
3458
- }
3459
- );
3460
- };
3461
3674
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3462
3675
  /* @__PURE__ */ jsxs(Modal.Body, { children: [
3463
- /* @__PURE__ */ jsx(Typography, { children: getFormattedCountMessage() }),
3464
- /* @__PURE__ */ jsx(Box, { marginTop: 5, children: /* @__PURE__ */ jsx(
3676
+ /* @__PURE__ */ jsx(
3677
+ PublicationStatusGrid,
3678
+ {
3679
+ entriesReadyToPublishCount: selectedEntriesWithNoErrorsCount - selectedEntriesModifiedCount,
3680
+ entriesPublishedCount: selectedEntriesPublishedCount,
3681
+ entriesModifiedCount: selectedEntriesModifiedCount,
3682
+ entriesWithErrorsCount: selectedEntriesWithErrorsCount
3683
+ }
3684
+ ),
3685
+ /* @__PURE__ */ jsx(Box, { marginTop: 7, children: /* @__PURE__ */ jsx(
3465
3686
  SelectedEntriesTableContent,
3466
3687
  {
3467
3688
  isPublishing: isSubmittingForm,
@@ -3482,7 +3703,7 @@ const SelectedEntriesModalContent = ({
3482
3703
  Button,
3483
3704
  {
3484
3705
  onClick: toggleDialog,
3485
- disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
3706
+ disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublishedCount === selectedEntries.length || isLoading,
3486
3707
  loading: isSubmittingForm,
3487
3708
  children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
3488
3709
  }
@@ -4172,7 +4393,7 @@ const index = {
4172
4393
  app.router.addRoute({
4173
4394
  path: "content-manager/*",
4174
4395
  lazy: async () => {
4175
- const { Layout } = await import("./layout-Bxsv5mP7.mjs");
4396
+ const { Layout } = await import("./layout-fQk1rMk9.mjs");
4176
4397
  return {
4177
4398
  Component: Layout
4178
4399
  };
@@ -4192,7 +4413,7 @@ const index = {
4192
4413
  async registerTrads({ locales }) {
4193
4414
  const importedTrads = await Promise.all(
4194
4415
  locales.map((locale) => {
4195
- 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-Dtk_ot79.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`, 3).then(({ default: data }) => {
4416
+ 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-D65uIF6Y.mjs"), "./translations/es.json": () => import("./es-D34tqjMw.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr-DBseuRuB.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`, 3).then(({ default: data }) => {
4196
4417
  return {
4197
4418
  data: prefixPluginTranslations(data, PLUGIN_ID),
4198
4419
  locale
@@ -4209,24 +4430,27 @@ const index = {
4209
4430
  }
4210
4431
  };
4211
4432
  export {
4212
- ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD as A,
4433
+ useUpdateContentTypeConfigurationMutation as A,
4213
4434
  BulkActionsRenderer as B,
4214
4435
  COLLECTION_TYPES as C,
4215
4436
  DocumentStatus as D,
4216
- extractContentTypeComponents as E,
4217
- DEFAULT_SETTINGS as F,
4218
- convertEditLayoutToFieldLayouts as G,
4437
+ ATTRIBUTE_TYPES_THAT_CANNOT_BE_MAIN_FIELD as E,
4438
+ extractContentTypeComponents as F,
4439
+ DEFAULT_SETTINGS as G,
4219
4440
  HOOKS as H,
4220
4441
  InjectionZone as I,
4221
- useDocument as J,
4222
- useGetPreviewUrlQuery as K,
4223
- index as L,
4224
- useContentManagerContext as M,
4225
- useDocumentActions as N,
4442
+ convertEditLayoutToFieldLayouts as J,
4443
+ removeFieldsThatDontExistOnSchema as K,
4444
+ prepareTempKeys as L,
4445
+ useDocument as M,
4446
+ useGetPreviewUrlQuery as N,
4447
+ index as O,
4226
4448
  Panels as P,
4449
+ useContentManagerContext as Q,
4227
4450
  RelativeTime as R,
4228
4451
  SINGLE_TYPES as S,
4229
4452
  TableActions as T,
4453
+ useDocumentActions as U,
4230
4454
  useGetInitialDataQuery as a,
4231
4455
  useGetAllContentTypeSettingsQuery as b,
4232
4456
  useDoc as c,
@@ -4239,19 +4463,19 @@ export {
4239
4463
  Header as j,
4240
4464
  PERMISSIONS as k,
4241
4465
  DocumentRBAC as l,
4242
- DOCUMENT_META_FIELDS as m,
4243
- CLONE_PATH as n,
4244
- useDocLayout as o,
4466
+ useDocLayout as m,
4467
+ createDefaultForm as n,
4468
+ CLONE_PATH as o,
4245
4469
  useGetContentTypeConfigurationQuery as p,
4246
4470
  CREATOR_FIELDS as q,
4247
4471
  getMainField as r,
4248
4472
  setInitialData as s,
4249
- getDisplayName as t,
4473
+ transformDocument as t,
4250
4474
  useContentTypeSchema as u,
4251
- checkIfAttributeIsDisplayable as v,
4252
- useGetAllDocumentsQuery as w,
4253
- convertListLayoutToFieldLayouts as x,
4254
- capitalise as y,
4255
- useUpdateContentTypeConfigurationMutation as z
4475
+ getDisplayName as v,
4476
+ checkIfAttributeIsDisplayable as w,
4477
+ useGetAllDocumentsQuery as x,
4478
+ convertListLayoutToFieldLayouts as y,
4479
+ capitalise as z
4256
4480
  };
4257
- //# sourceMappingURL=index-DVAIIsOs.mjs.map
4481
+ //# sourceMappingURL=index-ZKrsjv-2.mjs.map