strapi-plugin-comments 3.0.13 → 3.0.15

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 (50) hide show
  1. package/dist/_chunks/en-Ca05D1aN.js +1 -0
  2. package/dist/_chunks/{en-BtJqEJGe.mjs → en-DeZtLd2b.mjs} +15 -2
  3. package/dist/_chunks/fr-DvC8Kjh_.js +1 -0
  4. package/dist/_chunks/{fr-n-k7Rsq9.mjs → fr-xcXYnLl6.mjs} +15 -2
  5. package/dist/_chunks/index-B4YsjIh4.js +18 -0
  6. package/dist/_chunks/{index-BNUfJ5rK.mjs → index-C7XjYXV7.mjs} +2 -2
  7. package/dist/_chunks/{index-nX8EInHC.js → index-CCnYc2Ti.js} +1 -1
  8. package/dist/_chunks/{index-B_ImEGPI.mjs → index-CyVj8EKp.mjs} +1768 -1770
  9. package/dist/_chunks/{index-B4cSir6s.js → index-DKmA1egQ.js} +39 -39
  10. package/dist/_chunks/{index-CKnhBcNh.js → index-DaKT3Mnh.js} +181 -181
  11. package/dist/_chunks/{index-CQD92qgD.mjs → index-DrxFf0pS.mjs} +852 -874
  12. package/dist/_chunks/{index-B7F5_QGF.mjs → index-jHBYjbuk.mjs} +7591 -7543
  13. package/dist/_chunks/{pl-_wkGtdQj.mjs → pl-B2Il0b0-.mjs} +1 -1
  14. package/dist/_chunks/pl-DthJf26N.js +1 -0
  15. package/dist/_chunks/pt-BR-ByULlOKU.js +1 -0
  16. package/dist/_chunks/{pt-BR-Bx1qSZ0Z.mjs → pt-BR-KCmyuDgJ.mjs} +1 -1
  17. package/dist/_chunks/{ru-BuUj7OWH.mjs → ru-Bykkb95a.mjs} +1 -1
  18. package/dist/_chunks/ru-DOajpZMF.js +1 -0
  19. package/dist/_chunks/{tr-CloK8CbW.mjs → tr-BW_iq8S7.mjs} +1 -1
  20. package/dist/_chunks/tr-Cv3hH0Rh.js +1 -0
  21. package/dist/_chunks/{zh-Hans-Isi-yCnI.mjs → zh-Hans-DixVuF8_.mjs} +1 -1
  22. package/dist/_chunks/zh-Hans-P1iGqMnb.js +1 -0
  23. package/dist/admin/index.js +1 -1
  24. package/dist/admin/index.mjs +1 -1
  25. package/dist/admin/src/api/client.d.ts +8 -8
  26. package/dist/admin/src/api/schemas.d.ts +83 -83
  27. package/dist/admin/src/components/CommentStatusFilters/index.d.ts +1 -6
  28. package/dist/admin/src/components/SortableTh/index.d.ts +7 -0
  29. package/dist/admin/src/hooks/useAPI.d.ts +8 -8
  30. package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -1
  31. package/dist/admin/src/hooks/useReports.d.ts +2 -2
  32. package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
  33. package/dist/admin/src/translations/en.d.ts +13 -0
  34. package/dist/admin/src/translations/fr.d.ts +13 -0
  35. package/dist/server/index.js +11 -11
  36. package/dist/server/index.mjs +132 -147
  37. package/dist/server/src/index.d.ts +0 -3
  38. package/dist/server/src/services/admin/admin.service.d.ts +0 -1
  39. package/dist/server/src/services/client.service.d.ts +0 -1
  40. package/dist/server/src/services/common.service.d.ts +0 -1
  41. package/dist/server/src/services/index.d.ts +0 -3
  42. package/package.json +1 -1
  43. package/dist/_chunks/en-CNvRvaLL.js +0 -1
  44. package/dist/_chunks/fr-Bh0tVDIQ.js +0 -1
  45. package/dist/_chunks/index-DO4U1xys.js +0 -18
  46. package/dist/_chunks/pl-DoXe0BV9.js +0 -1
  47. package/dist/_chunks/pt-BR-CLvbSGaH.js +0 -1
  48. package/dist/_chunks/ru-eLIDfsd3.js +0 -1
  49. package/dist/_chunks/tr-BX-_IBUR.js +0 -1
  50. package/dist/_chunks/zh-Hans-DusBjCtd.js +0 -1
@@ -1,6 +1 @@
1
- import { FC } from "react";
2
- type CommentStatusFiltersProps = {
3
- setQueryParams: (nextParams: object, method?: "push" | "remove", replace?: boolean) => void;
4
- };
5
- export declare const CommentsStatusFilters: FC<CommentStatusFiltersProps>;
6
- export {};
1
+ export declare const CommentsStatusFilters: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ type SortableThProps = {
3
+ label: string;
4
+ orderByKey: string;
5
+ };
6
+ export declare const SortableTh: FC<SortableThProps>;
7
+ export {};
@@ -32,12 +32,12 @@ export declare const useAPI: () => {
32
32
  uid: string;
33
33
  apiID: string;
34
34
  schema: {
35
- displayName: string;
36
35
  attributes: Record<string, {
37
36
  type: string;
38
37
  }>;
39
38
  collectionName: string;
40
39
  description: string;
40
+ displayName: string;
41
41
  draftAndPublish: boolean;
42
42
  kind: string;
43
43
  pluralName: string;
@@ -52,12 +52,12 @@ export declare const useAPI: () => {
52
52
  uid: string;
53
53
  apiID: string;
54
54
  schema: {
55
- displayName: string;
56
55
  attributes: Record<string, {
57
56
  type: string;
58
57
  }>;
59
58
  collectionName: string;
60
59
  description: string;
60
+ displayName: string;
61
61
  draftAndPublish: boolean;
62
62
  kind: string;
63
63
  pluralName: string;
@@ -163,8 +163,8 @@ export declare const useAPI: () => {
163
163
  id: number;
164
164
  createdAt: string;
165
165
  updatedAt: string | null;
166
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
167
166
  content: string;
167
+ reason?: string | null | undefined;
168
168
  }[] | null | undefined;
169
169
  gotThread?: boolean | null | undefined;
170
170
  threadFirstItemId?: number | null | undefined;
@@ -201,8 +201,8 @@ export declare const useAPI: () => {
201
201
  id: number;
202
202
  createdAt: string;
203
203
  updatedAt: string | null;
204
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
205
204
  content: string;
205
+ reason?: string | null | undefined;
206
206
  }[] | null | undefined;
207
207
  gotThread?: boolean | null | undefined;
208
208
  threadFirstItemId?: number | null | undefined;
@@ -239,8 +239,8 @@ export declare const useAPI: () => {
239
239
  id: number;
240
240
  createdAt: string;
241
241
  updatedAt: string | null;
242
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
243
242
  content: string;
243
+ reason?: string | null | undefined;
244
244
  }[] | null | undefined;
245
245
  gotThread?: boolean | null | undefined;
246
246
  threadFirstItemId?: number | null | undefined;
@@ -280,8 +280,8 @@ export declare const useAPI: () => {
280
280
  id: number;
281
281
  createdAt: string;
282
282
  updatedAt: string | null;
283
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
284
283
  content: string;
284
+ reason?: string | null | undefined;
285
285
  }[] | null | undefined;
286
286
  gotThread?: boolean | null | undefined;
287
287
  threadFirstItemId?: number | null | undefined;
@@ -339,7 +339,6 @@ export declare const useAPI: () => {
339
339
  id: number;
340
340
  createdAt: string;
341
341
  updatedAt: string | null;
342
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
343
342
  content: string;
344
343
  reports: unknown[];
345
344
  related: {
@@ -373,13 +372,14 @@ export declare const useAPI: () => {
373
372
  id: number;
374
373
  createdAt: string;
375
374
  updatedAt: string | null;
376
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
377
375
  content: string;
376
+ reason?: string | null | undefined;
378
377
  }[] | null | undefined;
379
378
  gotThread?: boolean | null | undefined;
380
379
  threadFirstItemId?: number | null | undefined;
381
380
  };
382
381
  resolved?: boolean | undefined;
382
+ reason?: string | null | undefined;
383
383
  approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
384
384
  author?: unknown;
385
385
  }[];
@@ -5,8 +5,8 @@ export declare const useCommentsAll: (queryParams: Record<string, string>) => im
5
5
  id: number;
6
6
  createdAt: string;
7
7
  updatedAt: string | null;
8
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
9
8
  content: string;
9
+ reason?: string | null | undefined;
10
10
  }[];
11
11
  id: number;
12
12
  createdAt: string;
@@ -9,7 +9,6 @@ export declare const useReports: (queryParams?: Record<string, string>) => impor
9
9
  id: number;
10
10
  createdAt: string;
11
11
  updatedAt: string | null;
12
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
13
12
  content: string;
14
13
  reports: unknown[];
15
14
  related: {
@@ -43,13 +42,14 @@ export declare const useReports: (queryParams?: Record<string, string>) => impor
43
42
  id: number;
44
43
  createdAt: string;
45
44
  updatedAt: string | null;
46
- reason: "BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER";
47
45
  content: string;
46
+ reason?: string | null | undefined;
48
47
  }[] | null | undefined;
49
48
  gotThread?: boolean | null | undefined;
50
49
  threadFirstItemId?: number | null | undefined;
51
50
  };
52
51
  resolved?: boolean | undefined;
52
+ reason?: string | null | undefined;
53
53
  approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
54
54
  author?: unknown;
55
55
  }[];
@@ -34,12 +34,12 @@ export declare const useSettingsAPI: (callbacksMutation?: CallbacksMutation) =>
34
34
  uid: string;
35
35
  apiID: string;
36
36
  schema: {
37
- displayName: string;
38
37
  attributes: Record<string, {
39
38
  type: string;
40
39
  }>;
41
40
  collectionName: string;
42
41
  description: string;
42
+ displayName: string;
43
43
  draftAndPublish: boolean;
44
44
  kind: string;
45
45
  pluralName: string;
@@ -3,6 +3,8 @@ declare const en: {
3
3
  'plugin.section': string;
4
4
  'plugin.section.item': string;
5
5
  'common.button.back': string;
6
+ 'common.more': string;
7
+ 'common.search': string;
6
8
  'nav.header.moderation': string;
7
9
  'nav.header.settings': string;
8
10
  'nav.item.updates': string;
@@ -99,6 +101,8 @@ declare const en: {
99
101
  'page.details.actions.comment.delete': string;
100
102
  'page.details.actions.comment.delete.confirmation.success': string;
101
103
  'page.details.actions.comment.reports.review': string;
104
+ 'page.details.actions.comment.reports.approve': string;
105
+ 'page.details.actions.comment.reports.reject': string;
102
106
  'page.details.actions.thread.block': string;
103
107
  'page.details.actions.thread.block.confirmation.header': string;
104
108
  'page.details.actions.thread.block.confirmation.description': string;
@@ -191,6 +195,15 @@ declare const en: {
191
195
  'customField.comments.input.populate.label': string;
192
196
  'customField.comments.input.populate.author.label': string;
193
197
  'customField.comments.input.populate.avatar.label': string;
198
+ 'wysiwyg.bold': string;
199
+ 'wysiwyg.italic': string;
200
+ 'wysiwyg.underline': string;
201
+ 'wysiwyg.strikethrough': string;
202
+ 'wysiwyg.bulletList': string;
203
+ 'wysiwyg.numberList': string;
204
+ 'wysiwyg.code': string;
205
+ 'wysiwyg.link': string;
206
+ 'wysiwyg.quote': string;
194
207
  };
195
208
  export type CommentsPluginTranslations = Partial<typeof en>;
196
209
  export default en;
@@ -3,6 +3,8 @@ declare const _default: {
3
3
  'plugin.section': string;
4
4
  'plugin.section.item': string;
5
5
  'common.button.back': string;
6
+ 'common.more': string;
7
+ 'common.search': string;
6
8
  'nav.header.moderation': string;
7
9
  'nav.header.settings': string;
8
10
  'nav.item.updates': string;
@@ -99,6 +101,8 @@ declare const _default: {
99
101
  'page.details.actions.comment.delete': string;
100
102
  'page.details.actions.comment.delete.confirmation.success': string;
101
103
  'page.details.actions.comment.reports.review': string;
104
+ 'page.details.actions.comment.reports.approve': string;
105
+ 'page.details.actions.comment.reports.reject': string;
102
106
  'page.details.actions.thread.block': string;
103
107
  'page.details.actions.thread.block.confirmation.header': string;
104
108
  'page.details.actions.thread.block.confirmation.description': string;
@@ -191,5 +195,14 @@ declare const _default: {
191
195
  'customField.comments.input.populate.label': string;
192
196
  'customField.comments.input.populate.author.label': string;
193
197
  'customField.comments.input.populate.avatar.label': string;
198
+ 'wysiwyg.bold': string;
199
+ 'wysiwyg.italic': string;
200
+ 'wysiwyg.underline': string;
201
+ 'wysiwyg.strikethrough': string;
202
+ 'wysiwyg.bulletList': string;
203
+ 'wysiwyg.numberList': string;
204
+ 'wysiwyg.code': string;
205
+ 'wysiwyg.link': string;
206
+ 'wysiwyg.quote': string;
194
207
  };
195
208
  export default _default;