strapi-plugin-comments 3.2.4 → 3.2.5

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 (144) hide show
  1. package/LICENSE.md +18 -4
  2. package/README.md +379 -26
  3. package/dist/_chunks/{en-CT6Rt2uf.mjs → en-B_ywmALc.mjs} +3 -0
  4. package/dist/_chunks/{en-Tdlz6WoL.js → en-CTX-vxI-.js} +1 -1
  5. package/dist/_chunks/{fr-BlaISu0-.js → fr-CJZ1I0cO.js} +1 -1
  6. package/dist/_chunks/{fr-CTKzDZoe.mjs → fr-CzgABcR9.mjs} +3 -0
  7. package/dist/_chunks/{index-CqWqvu-C.mjs → index-2HqVa6_n.mjs} +11273 -12118
  8. package/dist/_chunks/index-BFzHCJ8V.mjs +5959 -0
  9. package/dist/_chunks/index-BYQzi_fP.js +44 -0
  10. package/dist/_chunks/{index-CgbBtemc.js → index-Cfy8GjIN.js} +134 -91
  11. package/dist/_chunks/{index-CynNsAVf.mjs → index-D8SWUMcR.mjs} +45 -23
  12. package/dist/_chunks/index-DXgb05uJ.js +1 -0
  13. package/dist/_chunks/{index-D9B_m9fB.mjs → index-W9svnX5A.mjs} +185 -146
  14. package/dist/_chunks/index-hBG5i5nT.js +5 -0
  15. package/dist/_chunks/{pl-BE9Xc2Tq.mjs → pl-Ca-o0rE-.mjs} +3 -0
  16. package/dist/_chunks/{pl-r2tJzCYX.js → pl-clljrMvo.js} +1 -1
  17. package/dist/_chunks/{pt-BR-BntmApbV.js → pt-BR-DV48_kX8.js} +1 -1
  18. package/dist/_chunks/{pt-BR-ZzKZqryk.mjs → pt-BR-XHO5Olrb.mjs} +3 -0
  19. package/dist/_chunks/{ru-DdjjIy0c.js → ru-BK78F2Vt.js} +1 -1
  20. package/dist/_chunks/{ru-NqAiywiG.mjs → ru-zKH0YOjJ.mjs} +3 -0
  21. package/dist/_chunks/{tr-v1mNvsod.js → tr-BMe1cFKp.js} +1 -1
  22. package/dist/_chunks/{tr-6Vivmm9L.mjs → tr-BaczzuT6.mjs} +3 -0
  23. package/dist/_chunks/{zh-Hans-B3CCaxs8.mjs → zh-Hans-CPSQ76Y3.mjs} +3 -0
  24. package/dist/_chunks/{zh-Hans-_ImAlhp2.js → zh-Hans-xMRxrXVG.js} +1 -1
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +1 -1
  27. package/dist/admin/src/api/client.d.ts +67 -58
  28. package/dist/admin/src/api/schemas.d.ts +169 -2797
  29. package/dist/admin/src/components/ActionButton/index.d.ts +2 -4
  30. package/dist/admin/src/components/CommentReactionsSummary/index.d.ts +8 -0
  31. package/dist/admin/src/components/CommentStatusFilters/index.d.ts +2 -1
  32. package/dist/admin/src/components/CustomInjectionZone/index.d.ts +6 -0
  33. package/dist/admin/src/components/CustomInjectionZoneCell/index.d.ts +7 -0
  34. package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +1 -1
  35. package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +3 -3
  36. package/dist/admin/src/components/IconButtonGroup/index.d.ts +2 -5
  37. package/dist/admin/src/components/LoadingIndicatorOverlay/index.d.ts +2 -1
  38. package/dist/admin/src/components/PluginIcon/index.d.ts +2 -1
  39. package/dist/admin/src/components/ReactionCounter/index.d.ts +7 -0
  40. package/dist/admin/src/components/ReactionCounter/styled.d.ts +16 -0
  41. package/dist/admin/src/components/SideNav/index.d.ts +2 -1
  42. package/dist/admin/src/components/StatusBadge/index.d.ts +3 -5
  43. package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +2 -2
  44. package/dist/admin/src/components/Wysiwyg/PreviewWysiwyg.d.ts +2 -1
  45. package/dist/admin/src/components/Wysiwyg/WysiwygFooter.d.ts +2 -1
  46. package/dist/admin/src/components/Wysiwyg/WysiwygNav.d.ts +1 -1
  47. package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +4 -4
  48. package/dist/admin/src/components/icons/comments.d.ts +2 -1
  49. package/dist/admin/src/components/icons/strapiIcons.d.ts +2 -1
  50. package/dist/admin/src/contexts/UserContext.d.ts +7 -7
  51. package/dist/admin/src/hooks/useAPI.d.ts +74 -65
  52. package/dist/admin/src/hooks/useCommentMutations.d.ts +18 -18
  53. package/dist/admin/src/hooks/useCommentsAll.d.ts +8 -6
  54. package/dist/admin/src/hooks/useConfig.d.ts +2 -0
  55. package/dist/admin/src/hooks/useReactionCounts.d.ts +2 -0
  56. package/dist/admin/src/hooks/useReactionTypes.d.ts +8 -0
  57. package/dist/admin/src/hooks/useReports.d.ts +13 -11
  58. package/dist/admin/src/hooks/useUserContext.d.ts +7 -7
  59. package/dist/admin/src/pages/AiEvaluations/index.d.ts +2 -0
  60. package/dist/admin/src/pages/App/index.d.ts +2 -1
  61. package/dist/admin/src/pages/Details/DetailsEntry.d.ts +2 -1
  62. package/dist/admin/src/pages/Discover/index.d.ts +2 -1
  63. package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +9 -7
  64. package/dist/admin/src/pages/Settings/index.d.ts +2 -1
  65. package/dist/admin/src/translations/en.d.ts +3 -0
  66. package/dist/admin/src/translations/fr.d.ts +3 -0
  67. package/dist/admin/src/translations/pl.d.ts +3 -0
  68. package/dist/admin/src/translations/pt-BR.d.ts +3 -0
  69. package/dist/admin/src/translations/ru.d.ts +3 -0
  70. package/dist/admin/src/translations/tr.d.ts +3 -0
  71. package/dist/admin/src/translations/zh-Hans.d.ts +3 -0
  72. package/dist/admin/src/utils/functions.d.ts +3 -0
  73. package/dist/admin/src/utils/reactionsIntegration.d.ts +24 -0
  74. package/dist/admin/src/utils/resolveCommentStatusColor.d.ts +1 -1
  75. package/dist/admin/src/utils/resolveReportStatusColor.d.ts +1 -1
  76. package/dist/server/index.js +69 -88
  77. package/dist/server/index.mjs +9727 -7544
  78. package/dist/server/src/config/index.d.ts +37 -112
  79. package/dist/server/src/const/REPORT_SOURCE.d.ts +4 -0
  80. package/dist/server/src/const/index.d.ts +1 -0
  81. package/dist/server/src/content-types/index.d.ts +7 -0
  82. package/dist/server/src/content-types/report/index.d.ts +7 -0
  83. package/dist/server/src/content-types/report/schema.d.ts +8 -1
  84. package/dist/server/src/controllers/admin.controller.d.ts +920 -888
  85. package/dist/server/src/controllers/client.controller.d.ts +1595 -709
  86. package/dist/server/src/controllers/index.d.ts +2784 -6208
  87. package/dist/server/src/controllers/settings.controller.d.ts +110 -94
  88. package/dist/server/src/graphql/getResolversConfig.d.ts +33 -0
  89. package/dist/server/src/graphql/mutations/getApproveComment.d.ts +149 -0
  90. package/dist/server/src/graphql/mutations/getBlockComment.d.ts +149 -0
  91. package/dist/server/src/graphql/mutations/getBlockCommentThread.d.ts +149 -0
  92. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +81 -78
  93. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +74 -72
  94. package/dist/server/src/graphql/mutations/getRejectComment.d.ts +149 -0
  95. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +74 -72
  96. package/dist/server/src/graphql/mutations/getResolveAbuseReport.d.ts +25 -0
  97. package/dist/server/src/graphql/mutations/getResolveAllAbuseReportsForComment.d.ts +16 -0
  98. package/dist/server/src/graphql/mutations/getResolveAllAbuseReportsForThread.d.ts +16 -0
  99. package/dist/server/src/graphql/mutations/getResolveCommentMultipleAbuseReports.d.ts +17 -0
  100. package/dist/server/src/graphql/mutations/getResolveMultipleAbuseReports.d.ts +16 -0
  101. package/dist/server/src/graphql/mutations/getUnblockComment.d.ts +149 -0
  102. package/dist/server/src/graphql/mutations/getUnblockCommentThread.d.ts +149 -0
  103. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +74 -72
  104. package/dist/server/src/graphql/queries/findAllFlat.d.ts +162 -155
  105. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +9 -1
  106. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +161 -154
  107. package/dist/server/src/graphql/types/getCommentReactionCount.d.ts +2 -0
  108. package/dist/server/src/graphql/types/getCommentReactionsMetaEntry.d.ts +2 -0
  109. package/dist/server/src/graphql/types/getModerateCommentInput.d.ts +2 -0
  110. package/dist/server/src/graphql/types/getReportsResolveBatch.d.ts +2 -0
  111. package/dist/server/src/graphql/types/getResolveAbuseReportInput.d.ts +2 -0
  112. package/dist/server/src/graphql/types/getResolveCommentMultipleAbuseReportsInput.d.ts +2 -0
  113. package/dist/server/src/graphql/types/getResolveMultipleAbuseReportsInput.d.ts +2 -0
  114. package/dist/server/src/graphql/types/index.d.ts +1 -1
  115. package/dist/server/src/index.d.ts +17 -35339
  116. package/dist/server/src/repositories/report.comment.repository.d.ts +87 -83
  117. package/dist/server/src/repositories/store.repository.d.ts +144 -124
  118. package/dist/server/src/services/admin/admin.service.d.ts +14597 -8230
  119. package/dist/server/src/services/client.service.d.ts +11410 -7681
  120. package/dist/server/src/services/common.service.d.ts +3548 -471
  121. package/dist/server/src/services/email.service.d.ts +11 -0
  122. package/dist/server/src/services/index.d.ts +17 -27339
  123. package/dist/server/src/services/reactions.service.d.ts +11976 -0
  124. package/dist/server/src/services/settings.service.d.ts +85 -73
  125. package/dist/server/src/services/utils/functions.d.ts +2 -2
  126. package/dist/server/src/services/utils/reactions.d.ts +12 -0
  127. package/dist/server/src/utils/constants.d.ts +1 -0
  128. package/dist/server/src/utils/getConfig.d.ts +1 -1
  129. package/dist/server/src/utils/getPluginService.d.ts +1 -1
  130. package/dist/server/src/utils/types.d.ts +5 -3
  131. package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +234 -1322
  132. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +2051 -2013
  133. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +15 -13
  134. package/dist/server/src/validators/repositories/comment.schema.d.ts +15 -439
  135. package/dist/server/src/validators/repositories/comment.validator.d.ts +240 -7397
  136. package/dist/server/src/validators/repositories/reports.validator.d.ts +89 -2940
  137. package/dist/server/src/validators/repositories/utils.d.ts +5 -13
  138. package/dist/server/src/validators/utils.d.ts +164 -1875
  139. package/dist/shared/constants.d.ts +1 -0
  140. package/package.json +40 -48
  141. package/dist/_chunks/index-BIaTg-pL.mjs +0 -5682
  142. package/dist/_chunks/index-BIivsuhp.js +0 -44
  143. package/dist/_chunks/index-Dz3cg8MA.js +0 -1
  144. package/dist/_chunks/index-sPxsE9Y1.js +0 -5
@@ -1,6 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const ActionButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
2
+ export declare const ActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<any, {
3
3
  isSingle?: boolean | undefined;
4
- }>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
5
- isSingle?: boolean | undefined;
6
- }>> & Omit<any, keyof import("react").Component<any, {}, any>>);
4
+ }>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -0,0 +1,8 @@
1
+ import type { FC } from 'react';
2
+ import { Data } from '@strapi/strapi';
3
+ type CommentReactionsSummaryProps = {
4
+ documentId: Data.DocumentID;
5
+ locale?: string | null;
6
+ };
7
+ export declare const CommentReactionsSummary: FC<CommentReactionsSummaryProps>;
8
+ export {};
@@ -1 +1,2 @@
1
- export declare const CommentsStatusFilters: () => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const CommentsStatusFilters: () => import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type CustomInjectionZoneProps = {
3
+ area: `${string}.${string}.${string}`;
4
+ } & Record<string, unknown>;
5
+ export declare const CustomInjectionZone: ({ area, ...props }: CustomInjectionZoneProps) => import("react").JSX.Element[] | null;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type CustomInjectionZoneCellProps = {
3
+ area: `${string}.${string}.${string}`;
4
+ as: 'th' | 'td';
5
+ } & Record<string, unknown>;
6
+ export declare const CustomInjectionZoneCell: ({ area, as, ...props }: CustomInjectionZoneCellProps) => import("react").JSX.Element[] | null;
7
+ export {};
@@ -1,4 +1,4 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { DiscussionThreadItemProps } from './props';
3
- export declare const DiscussionThreadItemFooterMeta: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
3
+ export declare const DiscussionThreadItemFooterMeta: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
4
4
  export declare const DiscussionThreadItemFooter: FC<PropsWithChildren<DiscussionThreadItemProps>>;
@@ -1,6 +1,6 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { DiscussionThreadItemProps } from './props';
3
- export declare const DiscussionThreadItemContentTypographyRenderer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, never>>;
3
+ export declare const DiscussionThreadItemContentTypographyRenderer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
4
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
5
+ }> & string;
6
6
  export declare const DiscussionThreadItem: FC<PropsWithChildren<DiscussionThreadItemProps>>;
@@ -1,8 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const IconButtonGroup: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
2
+ export declare const IconButtonGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<any, {
3
3
  isSingle?: boolean | undefined;
4
4
  withMargin?: boolean | undefined;
5
- }>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
6
- isSingle?: boolean | undefined;
7
- withMargin?: boolean | undefined;
8
- }>> & Omit<any, keyof import("react").Component<any, {}, any>>);
5
+ }>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -1 +1,2 @@
1
- export declare const LoadingIndicatorOverlay: () => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const LoadingIndicatorOverlay: () => import("react").JSX.Element;
@@ -3,5 +3,6 @@
3
3
  * PluginIcon
4
4
  *
5
5
  */
6
- declare const PluginIcon: () => import("react/jsx-runtime").JSX.Element;
6
+ import React from "react";
7
+ declare const PluginIcon: () => React.JSX.Element;
7
8
  export default PluginIcon;
@@ -0,0 +1,7 @@
1
+ import type { FC } from 'react';
2
+ import type { ReactionType } from '../../utils/reactionsIntegration';
3
+ type ReactionCounterProps = Omit<ReactionType, 'slug'> & {
4
+ count: number;
5
+ };
6
+ export declare const ReactionCounter: FC<ReactionCounterProps>;
7
+ export {};
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ export declare const ReactionCounterContainer: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
3
+ export declare const ReactionImage: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "style"> & {
4
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
5
+ }> & string;
6
+ export declare const ReactionEmoji: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
7
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
8
+ }> & string;
9
+ export declare const ReactionName: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
10
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
11
+ }> & string;
12
+ export declare const ReactionCounterDot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
13
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
14
+ }, {
15
+ theme: string;
16
+ }>> & string;
@@ -1 +1,2 @@
1
- export declare const SideNav: () => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const SideNav: () => import("react").JSX.Element;
@@ -1,7 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const StatusBadgeStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
2
+ export declare const StatusBadgeStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<any, {
3
3
  color?: string | undefined;
4
- }>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
5
- color?: string | undefined;
6
- }>> & Omit<any, keyof import("react").Component<any, {}, any>>);
7
- export declare const StatusBadge: ({ children, textColor, ...rest }: any) => import("react/jsx-runtime").JSX.Element;
4
+ }>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
5
+ export declare const StatusBadge: ({ children, textColor, ...rest }: any) => import("react").JSX.Element;
@@ -6,7 +6,7 @@ interface EditorLayoutProps {
6
6
  previewContent?: string;
7
7
  onCollapse: () => void;
8
8
  }
9
- declare const EditorLayout: ({ children, isExpandMode, error, previewContent, onCollapse, }: EditorLayoutProps) => import("react/jsx-runtime").JSX.Element;
10
- declare const ExpandButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof React.Component<any, {}, any>>);
9
+ declare const EditorLayout: ({ children, isExpandMode, error, previewContent, onCollapse, }: EditorLayoutProps) => React.JSX.Element;
10
+ declare const ExpandButton: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof React.Component<any, {}, any>>);
11
11
  export { EditorLayout, ExpandButton };
12
12
  export type { EditorLayoutProps };
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  interface PreviewWysiwygProps {
2
3
  data?: string;
3
4
  }
4
- declare const PreviewWysiwyg: ({ data }: PreviewWysiwygProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const PreviewWysiwyg: ({ data }: PreviewWysiwygProps) => import("react").JSX.Element;
5
6
  export { PreviewWysiwyg };
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  interface WysiwygFooterProps {
2
3
  onToggleExpand: () => void;
3
4
  }
4
- declare const WysiwygFooter: ({ onToggleExpand }: WysiwygFooterProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const WysiwygFooter: ({ onToggleExpand }: WysiwygFooterProps) => import("react").JSX.Element;
5
6
  export { WysiwygFooter };
6
7
  export type { WysiwygFooterProps };
@@ -11,6 +11,6 @@ interface WysiwygNavProps {
11
11
  /**
12
12
  * TODO: refactor this mess.
13
13
  */
14
- declare const WysiwygNav: ({ disabled, editorRef, isExpandMode, isPreviewMode, onActionClick, onTogglePreviewMode, }: WysiwygNavProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const WysiwygNav: ({ disabled, editorRef, isExpandMode, isPreviewMode, onActionClick, onTogglePreviewMode, }: WysiwygNavProps) => React.JSX.Element;
15
15
  export { WysiwygNav };
16
16
  export type { WysiwygNavProps };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const MainButtons: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
3
- export declare const MoreButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
4
- export declare const IconButtonGroupMargin: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
5
- export declare const ExpandButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
2
+ export declare const MainButtons: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
3
+ export declare const MoreButton: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
4
+ export declare const IconButtonGroupMargin: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
5
+ export declare const ExpandButton: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -1,5 +1,6 @@
1
+ import React from "react";
1
2
  declare const CommentsIcon: ({ width, height }: {
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => React.JSX.Element;
5
6
  export default CommentsIcon;
@@ -1 +1,2 @@
1
- export declare const comments: import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export declare const comments: React.JSX.Element;
@@ -1,23 +1,23 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  export declare const UserContext: import("react").Context<{
3
- email: string;
4
3
  id: number;
5
4
  documentId: string;
6
- createdAt: string | null;
7
- updatedAt: string | null;
8
- publishedAt: string | null;
9
- locale: null;
10
- blocked: boolean | null;
11
5
  firstname: string;
12
6
  lastname: string | null;
13
7
  username: string | null;
8
+ email: string;
14
9
  isActive: boolean;
10
+ blocked: boolean | null;
15
11
  preferedLanguage: string | null;
12
+ createdAt: string | null;
13
+ updatedAt: string | null;
14
+ publishedAt: string | null;
15
+ locale: null;
16
16
  roles: {
17
- code: string;
18
17
  id: number;
19
18
  name: string;
20
19
  description: string;
20
+ code: string;
21
21
  }[];
22
22
  } | null>;
23
23
  export declare const UserProvider: FC<PropsWithChildren>;
@@ -5,6 +5,7 @@ export declare const useAPI: () => {
5
5
  entryLabel: Record<string, string[]>;
6
6
  approvalFlow: string[];
7
7
  blockedAuthorProps: string[];
8
+ reactionsEnabled: boolean;
8
9
  reportReasons: Record<string, string>;
9
10
  regex: {
10
11
  uid: string;
@@ -15,6 +16,7 @@ export declare const useAPI: () => {
15
16
  enabledCollections: string[];
16
17
  moderatorRoles: string[];
17
18
  isGQLPluginEnabled: boolean;
19
+ isReactionsPluginInstalled: boolean;
18
20
  client: {
19
21
  url: string | null;
20
22
  contactEmail: string | null;
@@ -29,8 +31,8 @@ export declare const useAPI: () => {
29
31
  single: {
30
32
  getKey(uid: string, canAccess: boolean): (string | boolean)[];
31
33
  query(uid: string): Promise<{
32
- uid: string;
33
34
  apiID: string;
35
+ uid: string;
34
36
  schema: {
35
37
  attributes: Record<string, {
36
38
  type: string;
@@ -49,8 +51,8 @@ export declare const useAPI: () => {
49
51
  all: {
50
52
  getKey(): string[];
51
53
  query(): Promise<{
52
- uid: string;
53
54
  apiID: string;
55
+ uid: string;
54
56
  schema: {
55
57
  attributes: Record<string, {
56
58
  type: string;
@@ -70,39 +72,39 @@ export declare const useAPI: () => {
70
72
  roles: {
71
73
  getKey(): string[];
72
74
  query(): Promise<{
73
- code: string;
74
75
  id: number;
75
76
  documentId: string;
77
+ name: string;
78
+ code: string;
79
+ description: string;
76
80
  createdAt: string | null;
77
81
  updatedAt: string | null;
78
82
  publishedAt: string | null;
79
83
  locale: string | null;
80
- name: string;
81
- description: string;
82
84
  usersCount: number;
83
85
  }[]>;
84
86
  };
85
87
  user: {
86
88
  getKey(): string[];
87
89
  query(): Promise<{
88
- email: string;
89
90
  id: number;
90
91
  documentId: string;
91
- createdAt: string | null;
92
- updatedAt: string | null;
93
- publishedAt: string | null;
94
- locale: null;
95
- blocked: boolean | null;
96
92
  firstname: string;
97
93
  lastname: string | null;
98
94
  username: string | null;
95
+ email: string;
99
96
  isActive: boolean;
97
+ blocked: boolean | null;
100
98
  preferedLanguage: string | null;
99
+ createdAt: string | null;
100
+ updatedAt: string | null;
101
+ publishedAt: string | null;
102
+ locale: null;
101
103
  roles: {
102
- code: string;
103
104
  id: number;
104
105
  name: string;
105
106
  description: string;
107
+ code: string;
106
108
  }[];
107
109
  }>;
108
110
  };
@@ -123,8 +125,8 @@ export declare const useAPI: () => {
123
125
  getKey(id?: string | number | undefined, filters?: any): string[];
124
126
  query(id: string | number, filters: any): Promise<{
125
127
  entity: {
126
- uid: string;
127
128
  id: number;
129
+ uid: string;
128
130
  documentId: string;
129
131
  createdAt: string;
130
132
  updatedAt: string;
@@ -133,8 +135,6 @@ export declare const useAPI: () => {
133
135
  } & Record<string, unknown>;
134
136
  selected: {
135
137
  id: number;
136
- createdAt: string;
137
- updatedAt: string;
138
138
  content: string;
139
139
  blocked: boolean | null;
140
140
  blockedThread: boolean | null;
@@ -142,19 +142,23 @@ export declare const useAPI: () => {
142
142
  isAdminComment: boolean | null;
143
143
  removed: boolean | null;
144
144
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
145
+ createdAt: string;
146
+ updatedAt: string;
147
+ documentId: string;
145
148
  related: string;
146
149
  reports?: {
147
- resolved: boolean;
148
150
  id: number;
151
+ content: string;
152
+ resolved: boolean;
149
153
  createdAt: string;
150
154
  updatedAt: string | null;
151
- content: string;
152
155
  reason?: string | null | undefined;
156
+ source?: "USER" | "AI" | null | undefined;
153
157
  }[] | null | undefined;
154
158
  author?: {
155
- email?: string | null | undefined;
156
159
  id?: string | number | null | undefined;
157
160
  name?: string | null | undefined;
161
+ email?: string | null | undefined;
158
162
  avatar?: string | {
159
163
  url: string;
160
164
  } | {
@@ -182,17 +186,18 @@ export declare const useAPI: () => {
182
186
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
183
187
  related: string;
184
188
  reports?: {
185
- resolved: boolean;
186
189
  id: number;
190
+ content: string;
191
+ resolved: boolean;
187
192
  createdAt: string;
188
193
  updatedAt: string | null;
189
- content: string;
190
194
  reason?: string | null | undefined;
195
+ source?: "USER" | "AI" | null | undefined;
191
196
  }[] | null | undefined;
192
197
  author?: {
193
- email?: string | null | undefined;
194
198
  id?: string | number | null | undefined;
195
199
  name?: string | null | undefined;
200
+ email?: string | null | undefined;
196
201
  avatar?: string | {
197
202
  url: string;
198
203
  } | {
@@ -208,8 +213,6 @@ export declare const useAPI: () => {
208
213
  threadFirstItemId?: number | null | undefined;
209
214
  threadOf?: {
210
215
  id: number;
211
- createdAt: string;
212
- updatedAt: string;
213
216
  content: string;
214
217
  blocked: boolean | null;
215
218
  blockedThread: boolean | null;
@@ -217,20 +220,22 @@ export declare const useAPI: () => {
217
220
  isAdminComment: boolean | null;
218
221
  removed: boolean | null;
219
222
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
223
+ createdAt: string;
224
+ updatedAt: string;
220
225
  related: string;
221
- documentId?: string | undefined;
222
226
  reports?: {
223
- resolved: boolean;
224
227
  id: number;
228
+ content: string;
229
+ resolved: boolean;
225
230
  createdAt: string;
226
231
  updatedAt: string | null;
227
- content: string;
228
232
  reason?: string | null | undefined;
233
+ source?: "USER" | "AI" | null | undefined;
229
234
  }[] | null | undefined;
230
235
  author?: {
231
- email?: string | null | undefined;
232
236
  id?: string | number | null | undefined;
233
237
  name?: string | null | undefined;
238
+ email?: string | null | undefined;
234
239
  avatar?: string | {
235
240
  url: string;
236
241
  } | {
@@ -245,6 +250,7 @@ export declare const useAPI: () => {
245
250
  gotThread?: boolean | null | undefined;
246
251
  threadFirstItemId?: number | null | undefined;
247
252
  threadOf?: import("../api/schemas").Comment | null | undefined;
253
+ documentId?: string | undefined;
248
254
  } | null | undefined;
249
255
  } | null | undefined;
250
256
  } | null;
@@ -261,17 +267,18 @@ export declare const useAPI: () => {
261
267
  removed: boolean | null;
262
268
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
263
269
  reports?: {
264
- resolved: boolean;
265
270
  id: number;
271
+ content: string;
272
+ resolved: boolean;
266
273
  createdAt: string;
267
274
  updatedAt: string | null;
268
- content: string;
269
275
  reason?: string | null | undefined;
276
+ source?: "USER" | "AI" | null | undefined;
270
277
  }[] | null | undefined;
271
278
  author?: {
272
- email?: string | null | undefined;
273
279
  id?: string | number | null | undefined;
274
280
  name?: string | null | undefined;
281
+ email?: string | null | undefined;
275
282
  avatar?: string | {
276
283
  url: string;
277
284
  } | {
@@ -288,42 +295,42 @@ export declare const useAPI: () => {
288
295
  }[];
289
296
  }>;
290
297
  };
291
- approve(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
292
- reject(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
293
- block(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
294
- unblock(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
295
- blockThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
296
- unBlockThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
297
- delete(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
298
+ approve(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
299
+ reject(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
300
+ block(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
301
+ unblock(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
302
+ blockThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
303
+ unBlockThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
304
+ delete(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
298
305
  postComment({ id, content, author }: {
299
306
  id: string | number;
300
307
  content: string;
301
308
  author: {
302
- email: string;
303
309
  id: number;
304
310
  documentId: string;
305
- createdAt: string | null;
306
- updatedAt: string | null;
307
- publishedAt: string | null;
308
- locale: null;
309
- blocked: boolean | null;
310
311
  firstname: string;
311
312
  lastname: string | null;
312
313
  username: string | null;
314
+ email: string;
313
315
  isActive: boolean;
316
+ blocked: boolean | null;
314
317
  preferedLanguage: string | null;
318
+ createdAt: string | null;
319
+ updatedAt: string | null;
320
+ publishedAt: string | null;
321
+ locale: null;
315
322
  roles: {
316
- code: string;
317
323
  id: number;
318
324
  name: string;
319
325
  description: string;
326
+ code: string;
320
327
  }[];
321
328
  };
322
- }): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
329
+ }): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
323
330
  updateComment({ id, content }: {
324
331
  id: string | number;
325
332
  content: string;
326
- }): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
333
+ }): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
327
334
  };
328
335
  reports: {
329
336
  findAll: {
@@ -336,15 +343,14 @@ export declare const useAPI: () => {
336
343
  total: number;
337
344
  };
338
345
  result: {
339
- id: number;
340
- createdAt: string;
341
- updatedAt: string | null;
346
+ author: unknown;
342
347
  content: string;
348
+ id: number;
343
349
  reports: unknown[];
350
+ updatedAt: string | null;
351
+ createdAt: string;
344
352
  related: {
345
353
  id: number;
346
- createdAt: string;
347
- updatedAt: string;
348
354
  content: string;
349
355
  blocked: boolean | null;
350
356
  blockedThread: boolean | null;
@@ -352,18 +358,21 @@ export declare const useAPI: () => {
352
358
  isAdminComment: boolean | null;
353
359
  removed: boolean | null;
354
360
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
361
+ createdAt: string;
362
+ updatedAt: string;
355
363
  reports?: {
356
- resolved: boolean;
357
364
  id: number;
365
+ content: string;
366
+ resolved: boolean;
358
367
  createdAt: string;
359
368
  updatedAt: string | null;
360
- content: string;
361
369
  reason?: string | null | undefined;
370
+ source?: "USER" | "AI" | null | undefined;
362
371
  }[] | null | undefined;
363
372
  author?: {
364
- email?: string | null | undefined;
365
373
  id?: string | number | null | undefined;
366
374
  name?: string | null | undefined;
375
+ email?: string | null | undefined;
367
376
  avatar?: string | {
368
377
  url: string;
369
378
  } | {
@@ -378,30 +387,30 @@ export declare const useAPI: () => {
378
387
  gotThread?: boolean | null | undefined;
379
388
  threadFirstItemId?: number | null | undefined;
380
389
  };
381
- resolved?: boolean | undefined;
382
- reason?: string | null | undefined;
383
390
  approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
384
- author?: unknown;
391
+ reason?: string | null | undefined;
392
+ resolved?: boolean | undefined;
393
+ source?: "USER" | "AI" | null | undefined;
385
394
  }[];
386
395
  }>;
387
396
  };
388
397
  resolve({ id, reportId }: {
389
398
  id: number;
390
399
  reportId: number;
391
- }): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
400
+ }): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
392
401
  resolveMultipleReports({ reportIds }: {
393
402
  reportIds: number[];
394
- }): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
403
+ }): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
395
404
  resolveCommentMultipleReports({ id, reportIds }: {
396
405
  id: number;
397
406
  reportIds: number[];
398
- }): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
399
- resolveAllAbuseReportsForComment(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
400
- resolveAllAbuseReportsForThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
407
+ }): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
408
+ resolveAllAbuseReportsForComment(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
409
+ resolveAllAbuseReportsForThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
401
410
  };
402
411
  settings: {
403
- update(body: any): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
404
- restore(): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
405
- restart(): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
412
+ update(body: any): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
413
+ restore(): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
414
+ restart(): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
406
415
  };
407
416
  };