@strapi/content-manager 5.50.1 → 5.51.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 (66) hide show
  1. package/dist/admin/content-manager.js +31 -4
  2. package/dist/admin/content-manager.js.map +1 -1
  3. package/dist/admin/content-manager.mjs +31 -4
  4. package/dist/admin/content-manager.mjs.map +1 -1
  5. package/dist/admin/index.js +1 -1
  6. package/dist/admin/index.js.map +1 -1
  7. package/dist/admin/index.mjs +1 -1
  8. package/dist/admin/index.mjs.map +1 -1
  9. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.js +29 -9
  10. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.js.map +1 -1
  11. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.mjs +29 -9
  12. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.mjs.map +1 -1
  13. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.js +5 -13
  14. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.js.map +1 -1
  15. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.mjs +5 -13
  16. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.mjs.map +1 -1
  17. package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.js +4 -1
  18. package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.js.map +1 -1
  19. package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.mjs +4 -1
  20. package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.mjs.map +1 -1
  21. package/dist/admin/pages/EditView/utils/draftRelationCounts.js +14 -7
  22. package/dist/admin/pages/EditView/utils/draftRelationCounts.js.map +1 -1
  23. package/dist/admin/pages/EditView/utils/draftRelationCounts.mjs +14 -8
  24. package/dist/admin/pages/EditView/utils/draftRelationCounts.mjs.map +1 -1
  25. package/dist/admin/preview/components/PreviewSidePanel.js +46 -9
  26. package/dist/admin/preview/components/PreviewSidePanel.js.map +1 -1
  27. package/dist/admin/preview/components/PreviewSidePanel.mjs +27 -10
  28. package/dist/admin/preview/components/PreviewSidePanel.mjs.map +1 -1
  29. package/dist/admin/src/content-manager.d.ts +1 -1
  30. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  31. package/dist/admin/src/index.d.ts +1 -1
  32. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/plugins/withStrapiSchema.d.ts +1 -1
  33. package/dist/admin/src/pages/EditView/components/FormInputs/Relations/Relations.d.ts +9 -1
  34. package/dist/admin/src/pages/EditView/utils/draftRelationCounts.d.ts +1 -0
  35. package/dist/admin/src/services/documents.d.ts +5 -5
  36. package/dist/admin/src/services/uid.d.ts +2 -2
  37. package/dist/admin/translations/ko.json.js +180 -1
  38. package/dist/admin/translations/ko.json.js.map +1 -1
  39. package/dist/admin/translations/ko.json.mjs +180 -1
  40. package/dist/admin/translations/ko.json.mjs.map +1 -1
  41. package/dist/server/src/controllers/index.d.ts +1 -1
  42. package/dist/server/src/controllers/utils/metadata.d.ts +1 -1
  43. package/dist/server/src/history/routes/index.d.ts +3 -1
  44. package/dist/server/src/history/routes/index.d.ts.map +1 -1
  45. package/dist/server/src/history/services/index.d.ts +3 -3
  46. package/dist/server/src/homepage/index.d.ts +7 -3
  47. package/dist/server/src/homepage/index.d.ts.map +1 -1
  48. package/dist/server/src/homepage/routes/index.d.ts +3 -1
  49. package/dist/server/src/homepage/routes/index.d.ts.map +1 -1
  50. package/dist/server/src/homepage/services/index.d.ts +1 -1
  51. package/dist/server/src/index.d.ts +69 -67
  52. package/dist/server/src/index.d.ts.map +1 -1
  53. package/dist/server/src/preview/routes/index.d.ts +3 -1
  54. package/dist/server/src/preview/routes/index.d.ts.map +1 -1
  55. package/dist/server/src/preview/services/index.d.ts +4 -4
  56. package/dist/server/src/preview/services/index.d.ts.map +1 -1
  57. package/dist/server/src/routes/index.d.ts +3 -1
  58. package/dist/server/src/routes/index.d.ts.map +1 -1
  59. package/dist/server/src/services/data-mapper.d.ts +1 -1
  60. package/dist/server/src/services/index.d.ts +63 -63
  61. package/dist/server/src/services/populate-builder.d.ts +1 -1
  62. package/dist/server/src/utils/index.d.ts +2 -2
  63. package/dist/server/src/utils/index.d.ts.map +1 -1
  64. package/dist/server/utils/index.js.map +1 -1
  65. package/dist/server/utils/index.mjs.map +1 -1
  66. package/package.json +15 -11
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  homepage: ({ strapi }: {
3
- strapi: import("@strapi/types/dist/core").Strapi;
3
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
4
4
  }) => {
5
5
  addStatusToDocuments(documents: import("../../../shared/contracts/homepage").RecentDocument[]): Promise<import("../../../shared/contracts/homepage").RecentDocument[]>;
6
6
  queryLastDocuments(additionalQueryParams?: Record<string, unknown>, draftAndPublishOnly?: boolean): Promise<import("../../../shared/contracts/homepage").RecentDocument[]>;
@@ -9,11 +9,11 @@ declare const _default: {
9
9
  getCountDocuments(): Promise<import("../../../shared/contracts/homepage").GetCountDocuments.Response["data"]>;
10
10
  };
11
11
  components: ({ strapi }: {
12
- strapi: import("@strapi/types/dist/core").Strapi;
12
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
13
13
  }) => {
14
14
  findAllComponents(): unknown[];
15
- findComponent(uid: import("@strapi/types/dist/uid").Component): any;
16
- findConfiguration(component: import("@strapi/types/dist/struct").ComponentSchema): Promise<{
15
+ findComponent(uid: import("@strapi/types/dist/uid/index.js").Component): any;
16
+ findConfiguration(component: import("@strapi/types/dist/struct/schema.js").ComponentSchema): Promise<{
17
17
  uid: string;
18
18
  settings: import("../../../shared/contracts/content-types").Settings;
19
19
  metadatas: import("../../../shared/contracts/content-types").Metadatas;
@@ -21,7 +21,7 @@ declare const _default: {
21
21
  options?: object;
22
22
  category: string;
23
23
  }>;
24
- updateConfiguration(component: import("@strapi/types/dist/struct").ComponentSchema, newConfiguration: import("./configuration").ConfigurationUpdate): Promise<{
24
+ updateConfiguration(component: import("@strapi/types/dist/struct/schema.js").ComponentSchema, newConfiguration: import("./configuration").ConfigurationUpdate): Promise<{
25
25
  uid: string;
26
26
  settings: import("../../../shared/contracts/content-types").Settings;
27
27
  metadatas: import("../../../shared/contracts/content-types").Metadatas;
@@ -29,52 +29,52 @@ declare const _default: {
29
29
  options?: object;
30
30
  category: string;
31
31
  }>;
32
- findComponentsConfigurations(model: import("@strapi/types/dist/struct").ComponentSchema): Promise<Record<string, import("../../../shared/contracts/content-types").Configuration & {
32
+ findComponentsConfigurations(model: import("@strapi/types/dist/struct/schema.js").ComponentSchema): Promise<Record<string, import("../../../shared/contracts/content-types").Configuration & {
33
33
  category: string;
34
34
  isComponent: boolean;
35
35
  }>>;
36
36
  syncConfigurations(): Promise<void>;
37
37
  };
38
38
  'content-types': ({ strapi }: {
39
- strapi: import("@strapi/types/dist/core").Strapi;
39
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
40
40
  }) => {
41
41
  findAllContentTypes(): unknown[];
42
- findContentType(uid: import("@strapi/types/dist/uid").ContentType): any;
42
+ findContentType(uid: import("@strapi/types/dist/uid/index.js").ContentType): any;
43
43
  findDisplayedContentTypes(): unknown[];
44
44
  findContentTypesByKind(kind: {
45
- kind: import("@strapi/types/dist/struct").ContentTypeKind | undefined;
45
+ kind: import("@strapi/types/dist/struct/schema.js").ContentTypeKind | undefined;
46
46
  }): unknown[];
47
- findConfiguration(contentType: import("@strapi/types/dist/struct").ContentTypeSchema): Promise<any>;
48
- updateConfiguration(contentType: import("@strapi/types/dist/struct").ContentTypeSchema, newConfiguration: import("./configuration").ConfigurationUpdate): Promise<any>;
49
- findComponentsConfigurations(contentType: import("@strapi/types/dist/struct").ContentTypeSchema): any;
47
+ findConfiguration(contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema): Promise<any>;
48
+ updateConfiguration(contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema, newConfiguration: import("./configuration").ConfigurationUpdate): Promise<any>;
49
+ findComponentsConfigurations(contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema): any;
50
50
  syncConfigurations(): Promise<void>;
51
51
  };
52
52
  'data-mapper': () => {
53
- toContentManagerModel(contentType: import("@strapi/types/dist/struct").ComponentSchema): {
53
+ toContentManagerModel(contentType: import("@strapi/types/dist/struct/schema.js").ComponentSchema): {
54
54
  apiID: string;
55
55
  isDisplayed: boolean;
56
56
  attributes: any;
57
57
  modelType: "component";
58
- uid: import("@strapi/types/dist/uid").Component;
58
+ uid: import("@strapi/types/dist/uid/index.js").Component;
59
59
  category: string;
60
60
  modelName: string;
61
61
  globalId: string;
62
- pluginOptions?: import("@strapi/types/dist/struct").SchemaPluginOptions;
63
- options?: import("@strapi/types/dist/struct").SchemaOptions;
62
+ pluginOptions?: import("@strapi/types/dist/struct/schema.js").SchemaPluginOptions;
63
+ options?: import("@strapi/types/dist/struct/schema.js").SchemaOptions;
64
64
  collectionName?: string;
65
65
  plugin?: string;
66
- info: import("@strapi/types/dist/struct").SchemaInfo;
66
+ info: import("@strapi/types/dist/struct/schema.js").SchemaInfo;
67
67
  };
68
68
  toDto: import("lodash/fp").LodashPick2x1;
69
69
  };
70
70
  'document-metadata': ({ strapi }: {
71
- strapi: import("@strapi/types/dist/core").Strapi;
71
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
72
72
  }) => {
73
- getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
73
+ getAvailableLocales(uid: import("@strapi/types/dist/uid/index.js").ContentType, version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
74
74
  getAvailableStatus(version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[]): Partial<import("./document-metadata").DocumentVersion> | undefined;
75
- getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./document-metadata").DocumentVersion[]): Promise<any[]>;
75
+ getManyAvailableStatus(uid: import("@strapi/types/dist/uid/index.js").ContentType, documents: import("./document-metadata").DocumentVersion[]): Promise<any[]>;
76
76
  getStatus(version: import("./document-metadata").DocumentVersion, otherDocumentStatuses?: import("../../../shared/contracts/collection-types").DocumentMetadata["availableStatus"]): string;
77
- getMetadata(uid: import("@strapi/types/dist/uid").ContentType, version: import("./document-metadata").DocumentVersion, { availableLocales, availableStatus }?: import("./document-metadata").GetMetadataOptions): Promise<{
77
+ getMetadata(uid: import("@strapi/types/dist/uid/index.js").ContentType, version: import("./document-metadata").DocumentVersion, { availableLocales, availableStatus }?: import("./document-metadata").GetMetadataOptions): Promise<{
78
78
  availableLocales: never[];
79
79
  availableStatus: Pick<any, string>[];
80
80
  versions: import("./document-metadata").DocumentVersion[];
@@ -83,11 +83,11 @@ declare const _default: {
83
83
  availableStatus: Partial<import("./document-metadata").DocumentVersion>[];
84
84
  versions: any[];
85
85
  }>;
86
- formatDocumentWithMetadata(uid: import("@strapi/types/dist/uid").ContentType, document: import("./document-metadata").DocumentVersion, opts?: import("./document-metadata").GetMetadataOptions): Promise<{
86
+ formatDocumentWithMetadata(uid: import("@strapi/types/dist/uid/index.js").ContentType, document: import("./document-metadata").DocumentVersion, opts?: import("./document-metadata").GetMetadataOptions): Promise<{
87
87
  data: {
88
88
  status: string | undefined;
89
89
  id: string | number;
90
- documentId: import("@strapi/types/dist/modules/documents").ID;
90
+ documentId: import("@strapi/types/dist/modules/documents/index.js").ID;
91
91
  locale?: string;
92
92
  localizations?: import("./document-metadata").DocumentVersion[];
93
93
  updatedAt?: string | null | Date;
@@ -103,47 +103,47 @@ declare const _default: {
103
103
  }>;
104
104
  };
105
105
  'document-manager': ({ strapi }: {
106
- strapi: import("@strapi/types/dist/core").Strapi;
106
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
107
107
  }) => {
108
- findOne(id: string, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").FindOne<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
109
- findLocales(id: string | string[] | undefined, uid: import("@strapi/types/dist/uid").CollectionType, opts: {
110
- populate?: import("@strapi/types/dist/modules/documents/params").Pick<any, "populate">;
108
+ findOne(id: string, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").FindOne<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | null>;
109
+ findLocales(id: string | string[] | undefined, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts: {
110
+ populate?: import("@strapi/types/dist/modules/documents/params/index.js").Pick<any, "populate">;
111
111
  locale?: string | string[] | "*";
112
112
  isPublished?: boolean;
113
113
  }): Promise<any[]>;
114
- findMany(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: import("@strapi/types/dist/uid").CollectionType): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
115
- findPage(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: import("@strapi/types/dist/uid").CollectionType): Promise<{
116
- results: import("@strapi/types/dist/modules/documents").AnyDocument[];
114
+ findMany(opts: import("@strapi/types/dist/modules/documents/params/document-engine.js").FindMany<import("@strapi/types/dist/uid/index.js").ContentType> | undefined, uid: import("@strapi/types/dist/uid/index.js").CollectionType): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument[]>;
115
+ findPage(opts: import("@strapi/types/dist/modules/documents/params/document-engine.js").FindMany<import("@strapi/types/dist/uid/index.js").ContentType> | undefined, uid: import("@strapi/types/dist/uid/index.js").CollectionType): Promise<{
116
+ results: import("@strapi/types/dist/modules/documents/index.js").AnyDocument[];
117
117
  pagination: import("@strapi/utils/dist/pagination").PagePatinationInformation;
118
118
  }>;
119
- create(uid: import("@strapi/types/dist/uid").CollectionType, opts?: import("@strapi/types/dist/modules/documents/params/document-engine").Create<import("@strapi/types/dist/uid").ContentType>): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
120
- update(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Update<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
121
- clone(id: import("@strapi/types/dist/modules/documents").ID, body: Partial<import("@strapi/types/dist/modules/documents/params/data").Input<import("@strapi/types/dist/uid").CollectionType>>, uid: import("@strapi/types/dist/uid").CollectionType): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
122
- exists(uid: import("@strapi/types/dist/uid").CollectionType, id?: string): Promise<boolean>;
123
- delete(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Delete<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<{}>;
124
- deleteMany(documentIds: import("@strapi/types/dist/modules/documents").ID[], uid: import("@strapi/types/dist/uid").CollectionType, opts?: (import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined) & {
119
+ create(uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: import("@strapi/types/dist/modules/documents/params/document-engine.js").Create<import("@strapi/types/dist/uid/index.js").ContentType>): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument>;
120
+ update(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Update<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | null>;
121
+ clone(id: import("@strapi/types/dist/modules/documents/index.js").ID, body: Partial<import("@strapi/types/dist/modules/documents/params/data.js").Input<import("@strapi/types/dist/uid/index.js").CollectionType>>, uid: import("@strapi/types/dist/uid/index.js").CollectionType): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | undefined>;
122
+ exists(uid: import("@strapi/types/dist/uid/index.js").CollectionType, id?: string): Promise<boolean>;
123
+ delete(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Delete<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId">): Promise<{}>;
124
+ deleteMany(documentIds: import("@strapi/types/dist/modules/documents/index.js").ID[], uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: (import("@strapi/types/dist/modules/documents/params/document-engine.js").FindMany<import("@strapi/types/dist/uid/index.js").ContentType> | undefined) & {
125
125
  locale?: string;
126
126
  }): Promise<{
127
127
  count: number;
128
128
  }>;
129
- publish(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Publish<import("@strapi/types/dist/uid").ContentType>, "documentId"> & {
129
+ publish(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Publish<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId"> & {
130
130
  populate?: object;
131
- }): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
132
- publishMany(uid: import("@strapi/types/dist/uid").ContentType, documentIds: string[], locale?: string | string[]): Promise<number>;
133
- unpublishMany(documentIds: import("@strapi/types/dist/modules/documents").ID[], uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Unpublish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<{
131
+ }): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument[]>;
132
+ publishMany(uid: import("@strapi/types/dist/uid/index.js").ContentType, documentIds: string[], locale?: string | string[]): Promise<number>;
133
+ unpublishMany(documentIds: import("@strapi/types/dist/modules/documents/index.js").ID[], uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Unpublish<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId">): Promise<{
134
134
  count: number;
135
135
  }>;
136
- unpublish(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Unpublish<import("@strapi/types/dist/uid").ContentType>, "documentId"> & {
136
+ unpublish(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Unpublish<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId"> & {
137
137
  populate?: object;
138
- }): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
139
- discardDraft(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").DiscardDraft<import("@strapi/types/dist/uid").ContentType>, "documentId"> & {
138
+ }): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | undefined>;
139
+ discardDraft(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").DiscardDraft<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId"> & {
140
140
  populate?: object;
141
- }): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
142
- countDraftRelations(id: string, uid: import("@strapi/types/dist/uid").ContentType, locale: string): Promise<import("./utils/draft-relations").DraftRelationCounts>;
143
- countManyEntriesDraftRelations(documentIds: import("@strapi/types/dist/modules/documents").ID[], uid: import("@strapi/types/dist/uid").CollectionType, locale: string | string[]): Promise<number>;
141
+ }): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | undefined>;
142
+ countDraftRelations(id: string, uid: import("@strapi/types/dist/uid/index.js").ContentType, locale: string): Promise<import("./utils/draft-relations").DraftRelationCounts>;
143
+ countManyEntriesDraftRelations(documentIds: import("@strapi/types/dist/modules/documents/index.js").ID[], uid: import("@strapi/types/dist/uid/index.js").CollectionType, locale: string | string[]): Promise<number>;
144
144
  };
145
145
  'field-sizes': ({ strapi }: {
146
- strapi: import("@strapi/types/dist/core").Strapi;
146
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
147
147
  }) => {
148
148
  getAllFieldSizes(): Record<string, {
149
149
  default: 4 | 6 | 8 | 12;
@@ -161,30 +161,30 @@ declare const _default: {
161
161
  setCustomFieldInputSizes(): void;
162
162
  };
163
163
  metrics: ({ strapi }: {
164
- strapi: import("@strapi/types/dist/core").Strapi;
164
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
165
165
  }) => {
166
- sendDidConfigureListView: (contentType: import("@strapi/types/dist/struct").ContentTypeSchema, configuration: import("../../../shared/contracts/content-types").Configuration) => Promise<void>;
166
+ sendDidConfigureListView: (contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema, configuration: import("../../../shared/contracts/content-types").Configuration) => Promise<void>;
167
167
  };
168
168
  'permission-checker': ({ strapi }: {
169
- strapi: import("@strapi/types/dist/core").Strapi;
169
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
170
170
  }) => {
171
171
  create: ({ userAbility, model }: {
172
172
  userAbility: import("@casl/ability").Ability;
173
173
  model: string;
174
174
  }) => {
175
175
  can: (action: string, entity?: {
176
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
176
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
177
177
  } & {
178
178
  [key: string]: any;
179
179
  }, field: string) => boolean;
180
180
  cannot: (action: string, entity?: {
181
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
181
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
182
182
  } & {
183
183
  [key: string]: any;
184
184
  }, field: string) => boolean;
185
185
  requiresEntity: (action: string) => boolean;
186
186
  sanitizeOutput: (data: {
187
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
187
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
188
188
  } & {
189
189
  [key: string]: any;
190
190
  }, { action }?: {
@@ -199,7 +199,7 @@ declare const _default: {
199
199
  }) => any;
200
200
  sanitizeCreateInput: (data: any) => any;
201
201
  sanitizeUpdateInput: (entity: {
202
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
202
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
203
203
  } & {
204
204
  [key: string]: any;
205
205
  }) => (data: any) => any;
@@ -211,7 +211,7 @@ declare const _default: {
211
211
  action?: string;
212
212
  }) => any;
213
213
  validateInput: (action: string, data: any, entity?: {
214
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
214
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
215
215
  } & {
216
216
  [key: string]: any;
217
217
  }) => any;
@@ -225,15 +225,15 @@ declare const _default: {
225
225
  };
226
226
  };
227
227
  permission: ({ strapi }: {
228
- strapi: import("@strapi/types/dist/core").Strapi;
228
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
229
229
  }) => {
230
230
  canConfigureContentType({ userAbility, contentType, }: {
231
231
  userAbility: any;
232
- contentType: import("@strapi/types/dist/struct").ContentTypeSchema;
232
+ contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema;
233
233
  }): any;
234
234
  registerPermissions(): Promise<void>;
235
235
  };
236
- 'populate-builder': () => (uid: import("@strapi/types/dist/uid").Schema) => {
236
+ 'populate-builder': () => (uid: import("@strapi/types/dist/uid/index.js").Schema) => {
237
237
  populateFromQuery(query: object): /*elided*/ any;
238
238
  countRelations({ toMany, toOne }?: {
239
239
  toMany: boolean;
@@ -241,27 +241,27 @@ declare const _default: {
241
241
  }): /*elided*/ any;
242
242
  populateDeep(level?: number): /*elided*/ any;
243
243
  withPopulateOverride(overrides: Record<string, any>): /*elided*/ any;
244
- build(): Promise<string | import("@strapi/types/dist/modules/entity-service/params/populate").ArrayNotation<import("@strapi/types/dist/uid").Schema> | {
244
+ build(): Promise<string | import("@strapi/types/dist/modules/entity-service/params/populate.js").ArrayNotation<import("@strapi/types/dist/uid/index.js").Schema> | {
245
245
  [key: string]: boolean | object;
246
246
  } | undefined>;
247
247
  };
248
248
  uid: ({ strapi }: {
249
- strapi: import("@strapi/types/dist/core").Strapi;
249
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
250
250
  }) => {
251
251
  generateUIDField({ contentTypeUID, field, data, locale, }: {
252
- contentTypeUID: import("@strapi/types/dist/uid").ContentType;
252
+ contentTypeUID: import("@strapi/types/dist/uid/index.js").ContentType;
253
253
  field: string;
254
254
  data: Record<string, any>;
255
255
  locale?: string;
256
256
  }): Promise<string>;
257
257
  findUniqueUID({ contentTypeUID, field, value, locale, }: {
258
- contentTypeUID: import("@strapi/types/dist/uid").ContentType;
258
+ contentTypeUID: import("@strapi/types/dist/uid/index.js").ContentType;
259
259
  field: string;
260
260
  value: string;
261
261
  locale?: string;
262
262
  }): Promise<string>;
263
263
  checkUIDAvailability({ contentTypeUID, field, value, locale, }: {
264
- contentTypeUID: import("@strapi/types/dist/uid").ContentType;
264
+ contentTypeUID: import("@strapi/types/dist/uid/index.js").ContentType;
265
265
  field: string;
266
266
  value: string;
267
267
  locale?: string;
@@ -31,7 +31,7 @@ declare const _default: () => (uid: UID.Schema) => {
31
31
  * Construct the populate object based on the builder options.
32
32
  * @returns Populate object
33
33
  */
34
- build(): Promise<string | import("@strapi/types/dist/modules/entity-service/params/populate").ArrayNotation<UID.Schema> | {
34
+ build(): Promise<string | import("@strapi/types/dist/modules/entity-service/params/populate.js").ArrayNotation<UID.Schema> | {
35
35
  [key: string]: boolean | object;
36
36
  } | undefined>;
37
37
  };
@@ -1,6 +1,6 @@
1
1
  import '@strapi/types';
2
- import { DocumentManagerService } from 'src/services/document-manager';
3
- import DocumentMetadata from 'src/services/document-metadata';
2
+ import type { DocumentManagerService } from '../services/document-manager';
3
+ import type DocumentMetadata from '../services/document-metadata';
4
4
  type Services = {
5
5
  'document-manager': DocumentManagerService;
6
6
  'document-metadata': typeof DocumentMetadata;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAE9D,KAAK,QAAQ,GAAG;IACd,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,mBAAmB,EAAE,OAAO,gBAAgB,CAAC;IAC7C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,KAAK,SAAS,MAAM,QAAQ,EAAE,MAAM,KAAK,KAAG,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAEzF,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAElE,KAAK,QAAQ,GAAG;IACd,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,mBAAmB,EAAE,OAAO,gBAAgB,CAAC;IAC7C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,KAAK,SAAS,MAAM,QAAQ,EAAE,MAAM,KAAK,KAAG,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAEzF,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import '@strapi/types';\n\nimport { DocumentManagerService } from 'src/services/document-manager';\nimport DocumentMetadata from 'src/services/document-metadata';\n\ntype Services = {\n 'document-manager': DocumentManagerService;\n 'document-metadata': typeof DocumentMetadata;\n [key: string]: any;\n};\n\nconst getService = <TName extends keyof Services>(name: TName): ReturnType<Services[TName]> => {\n return strapi.plugin('content-manager').service(name as string);\n};\n\nexport { getService };\n"],"names":["getService","name","strapi","plugin","service"],"mappings":";;;;AAWA,MAAMA,aAAa,CAA+BC,IAAAA,GAAAA;AAChD,IAAA,OAAOC,MAAAA,CAAOC,MAAM,CAAC,iBAAA,CAAA,CAAmBC,OAAO,CAACH,IAAAA,CAAAA;AAClD;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import '@strapi/types';\n\nimport type { DocumentManagerService } from '../services/document-manager';\nimport type DocumentMetadata from '../services/document-metadata';\n\ntype Services = {\n 'document-manager': DocumentManagerService;\n 'document-metadata': typeof DocumentMetadata;\n [key: string]: any;\n};\n\nconst getService = <TName extends keyof Services>(name: TName): ReturnType<Services[TName]> => {\n return strapi.plugin('content-manager').service(name as string);\n};\n\nexport { getService };\n"],"names":["getService","name","strapi","plugin","service"],"mappings":";;;;AAWA,MAAMA,aAAa,CAA+BC,IAAAA,GAAAA;AAChD,IAAA,OAAOC,MAAAA,CAAOC,MAAM,CAAC,iBAAA,CAAA,CAAmBC,OAAO,CAACH,IAAAA,CAAAA;AAClD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import '@strapi/types';\n\nimport { DocumentManagerService } from 'src/services/document-manager';\nimport DocumentMetadata from 'src/services/document-metadata';\n\ntype Services = {\n 'document-manager': DocumentManagerService;\n 'document-metadata': typeof DocumentMetadata;\n [key: string]: any;\n};\n\nconst getService = <TName extends keyof Services>(name: TName): ReturnType<Services[TName]> => {\n return strapi.plugin('content-manager').service(name as string);\n};\n\nexport { getService };\n"],"names":["getService","name","strapi","plugin","service"],"mappings":";;AAWA,MAAMA,aAAa,CAA+BC,IAAAA,GAAAA;AAChD,IAAA,OAAOC,MAAAA,CAAOC,MAAM,CAAC,iBAAA,CAAA,CAAmBC,OAAO,CAACH,IAAAA,CAAAA;AAClD;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import '@strapi/types';\n\nimport type { DocumentManagerService } from '../services/document-manager';\nimport type DocumentMetadata from '../services/document-metadata';\n\ntype Services = {\n 'document-manager': DocumentManagerService;\n 'document-metadata': typeof DocumentMetadata;\n [key: string]: any;\n};\n\nconst getService = <TName extends keyof Services>(name: TName): ReturnType<Services[TName]> => {\n return strapi.plugin('content-manager').service(name as string);\n};\n\nexport { getService };\n"],"names":["getService","name","strapi","plugin","service"],"mappings":";;AAWA,MAAMA,aAAa,CAA+BC,IAAAA,GAAAA;AAChD,IAAA,OAAOC,MAAAA,CAAOC,MAAM,CAAC,iBAAA,CAAA,CAAmBC,OAAO,CAACH,IAAAA,CAAAA;AAClD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/content-manager",
3
- "version": "5.50.1",
3
+ "version": "5.51.0",
4
4
  "description": "A powerful UI to easily manage your data.",
5
5
  "homepage": "https://strapi.io",
6
6
  "bugs": {
@@ -57,9 +57,9 @@
57
57
  "build:types:server": "run -T tsc -p server/tsconfig.build.json --emitDeclarationOnly",
58
58
  "build:types:admin": "run -T tsc -p admin/tsconfig.build.json --emitDeclarationOnly",
59
59
  "clean": "run -T rimraf ./dist",
60
- "lint": "run -T eslint .",
60
+ "lint": "run -T eslint . --max-warnings=0",
61
61
  "test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
62
- "test:ts:back": "run -T tsc --noEmit -p server/tsconfig.json && run -T tsc --noEmit -p server/tsconfig.preview-script.json",
62
+ "test:ts:back": "run -T tsc -p server/tsconfig.json && run -T tsc -p server/tsconfig.preview-script.json",
63
63
  "test:ts:front": "run -T tsc -p admin/tsconfig.json",
64
64
  "test:unit": "run -T jest",
65
65
  "test:unit:watch": "run -T jest --watch",
@@ -73,10 +73,10 @@
73
73
  "@radix-ui/react-toolbar": "1.0.4",
74
74
  "@reduxjs/toolkit": "1.9.7",
75
75
  "@sindresorhus/slugify": "1.1.0",
76
- "@strapi/design-system": "2.2.1",
77
- "@strapi/icons": "2.2.1",
78
- "@strapi/types": "5.50.1",
79
- "@strapi/utils": "5.50.1",
76
+ "@strapi/design-system": "2.2.3",
77
+ "@strapi/icons": "2.2.3",
78
+ "@strapi/types": "5.51.0",
79
+ "@strapi/utils": "5.51.0",
80
80
  "codemirror5": "npm:codemirror@^5.65.11",
81
81
  "date-fns": "2.30.0",
82
82
  "dompurify": "3.4.11",
@@ -106,17 +106,21 @@
106
106
  "react-window": "1.8.10",
107
107
  "slate": "0.94.1",
108
108
  "slate-history": "0.93.0",
109
- "slate-react": "0.98.3",
109
+ "slate-react": "0.98.4",
110
110
  "yup": "0.32.9",
111
- "zod": "3.25.67"
111
+ "zod": "3.25.76"
112
112
  },
113
113
  "devDependencies": {
114
- "@strapi/admin": "5.50.1",
115
- "@strapi/database": "5.50.1",
114
+ "@strapi/admin": "5.51.0",
115
+ "@strapi/database": "5.51.0",
116
+ "@testing-library/dom": "10.4.1",
117
+ "@testing-library/jest-dom": "6.9.1",
116
118
  "@testing-library/react": "16.3.2",
117
119
  "@types/jest": "29.5.2",
118
120
  "@types/lodash": "^4.14.191",
121
+ "@types/node": "20.19.41",
119
122
  "@types/prismjs": "1.26.5",
123
+ "jest": "29.6.0",
120
124
  "koa-body": "6.0.1",
121
125
  "msw": "2.13.4",
122
126
  "react": "18.3.1",