strapi-plugin-comments 3.0.0-beta.0 → 3.0.0-beta.1

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 (72) hide show
  1. package/README.md +6 -5
  2. package/dist/_chunks/{index-h-TB6Qu2.mjs → index-BBcsmSTs.mjs} +6976 -6733
  3. package/dist/_chunks/{index-CTjupB9v.js → index-BFPteXuP.js} +2 -2
  4. package/dist/_chunks/{index-B6Q4U8YQ.js → index-BXEk5PWx.js} +9 -5
  5. package/dist/_chunks/{index-BVj8EXjI.js → index-Bcck91A8.js} +5 -10
  6. package/dist/_chunks/{index-fAgatqD0.js → index-CY_AVWS-.js} +6987 -6744
  7. package/dist/_chunks/{index-fSb-gYwg.mjs → index-D3iNqWZT.mjs} +2 -2
  8. package/dist/_chunks/{index-Bpbf7RON.mjs → index-D9MOkoQ2.mjs} +9 -5
  9. package/dist/_chunks/{index-BQERo8pN.mjs → index-DJ32APz-.mjs} +5 -10
  10. package/dist/admin/index.js +1 -1
  11. package/dist/admin/index.mjs +1 -1
  12. package/dist/admin/src/api/client.d.ts +3 -2
  13. package/dist/admin/src/api/schemas.d.ts +22 -8
  14. package/dist/admin/src/contexts/UserContext.d.ts +1 -1
  15. package/dist/admin/src/hooks/useAPI.d.ts +4 -3
  16. package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
  17. package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -0
  18. package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
  19. package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
  20. package/dist/server/index.js +9245 -2459
  21. package/dist/server/index.mjs +9245 -2459
  22. package/dist/server/src/config/index.d.ts +22 -0
  23. package/dist/server/src/controllers/admin.controller.d.ts +3 -1
  24. package/dist/server/src/controllers/client.controller.d.ts +36 -2
  25. package/dist/server/src/controllers/index.d.ts +213 -115
  26. package/dist/server/src/controllers/settings.controller.d.ts +25 -1
  27. package/dist/server/src/controllers/utils/parsers.d.ts +4 -1
  28. package/dist/server/src/graphql/getResolversConfig.d.ts +21 -0
  29. package/dist/server/src/graphql/index.d.ts +2 -0
  30. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +89 -0
  31. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +78 -0
  32. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +78 -0
  33. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +78 -0
  34. package/dist/server/src/graphql/mutations/index.d.ts +3 -0
  35. package/dist/server/src/graphql/queries/findAllFlat.d.ts +165 -0
  36. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +81 -0
  37. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +164 -0
  38. package/dist/server/src/graphql/queries/index.d.ts +3 -0
  39. package/dist/server/src/graphql/types/getComment.d.ts +2 -0
  40. package/dist/server/src/graphql/types/getCommentAuthor.d.ts +2 -0
  41. package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +2 -0
  42. package/dist/server/src/graphql/types/getCommentNested.d.ts +2 -0
  43. package/dist/server/src/graphql/types/getCreateComment.d.ts +2 -0
  44. package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +2 -0
  45. package/dist/server/src/graphql/types/getCreateReport.d.ts +2 -0
  46. package/dist/server/src/graphql/types/getId.d.ts +2 -0
  47. package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +2 -0
  48. package/dist/server/src/graphql/types/getRemoveComment.d.ts +2 -0
  49. package/dist/server/src/graphql/types/getReport.d.ts +2 -0
  50. package/dist/server/src/graphql/types/getReportReason.d.ts +3 -0
  51. package/dist/server/src/graphql/types/getResponseFindAll.d.ts +2 -0
  52. package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +2 -0
  53. package/dist/server/src/graphql/types/getResponseMeta.d.ts +2 -0
  54. package/dist/server/src/graphql/types/getResponsePagination.d.ts +2 -0
  55. package/dist/server/src/graphql/types/getUpdateComment.d.ts +2 -0
  56. package/dist/server/src/graphql/types/index.d.ts +3 -0
  57. package/dist/server/src/index.d.ts +771 -471
  58. package/dist/server/src/repositories/store.repository.d.ts +17 -2
  59. package/dist/server/src/services/admin/admin.service.d.ts +174 -117
  60. package/dist/server/src/services/client.service.d.ts +173 -118
  61. package/dist/server/src/services/common.service.d.ts +8 -5
  62. package/dist/server/src/services/gql.service.d.ts +7 -0
  63. package/dist/server/src/services/index.d.ts +549 -356
  64. package/dist/server/src/services/settings.service.d.ts +19 -1
  65. package/dist/server/src/services/utils/functions.d.ts +9 -3
  66. package/dist/server/src/utils/getConfig.d.ts +1 -1
  67. package/dist/server/src/utils/getPluginService.d.ts +1 -1
  68. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +112 -77
  69. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +3 -3
  70. package/dist/server/src/validators/repositories/comment.validator.d.ts +16 -0
  71. package/dist/server/src/validators/utils.d.ts +1 -1
  72. package/package.json +7 -6
package/README.md CHANGED
@@ -60,7 +60,8 @@ A plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provid
60
60
 
61
61
  ## ⚙️ Versions
62
62
 
63
- - **Strapi v4** - (current) - [v2.x](https://github.com/VirtusLab-Open-Source/strapi-plugin-comments)
63
+ - **Strapi v5** - (current) - [v3.x](https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/tree/v5)
64
+ - **Strapi v4** - [v2.x](https://github.com/VirtusLab-Open-Source/strapi-plugin-comments)
64
65
  - **Strapi v3** - [v1.x](https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/tree/strapi-v3)
65
66
 
66
67
  ## ⏳ Installation
@@ -136,13 +137,13 @@ In our minimum support we're following [official Node.js releases timelines](htt
136
137
 
137
138
  **Supported Strapi versions**:
138
139
 
139
- - Strapi v4.24.x (recently tested)
140
- - Strapi v4.x
140
+ - Strapi v5.4.1 (recently tested)
141
+ - Strapi v5.x
141
142
 
142
- > This plugin is designed for **Strapi v4** and is not working with v3.x. To get version for **Strapi v3** install version [v1.x](https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/tree/strapi-v3).
143
+ > This plugin is designed for **Strapi v5** and is not working with v4.x and lower. To get version for older **Strapi versions** refer to the [versions section](#-versions).
143
144
 
144
145
  **Plugin dependencies**
145
- - `@strapi/plugin-graphql` - required to run because built-in support for GraphQL handled by this plugin
146
+ - `@strapi/plugin-graphql` - required to run GraphQL handled by this plugin
146
147
 
147
148
  **We recommend always using the latest version of Strapi to start your new projects**.
148
149