strapi-plugin-comments 2.0.10 → 2.1.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 (266) hide show
  1. package/README.md +164 -120
  2. package/admin/src/components/ActionButton/styles.d.ts +2 -0
  3. package/admin/src/components/ActionButton/styles.js +13 -8
  4. package/admin/src/components/ConfirmationDialog/index.d.ts +26 -0
  5. package/admin/src/components/ConfirmationDialog/index.js +36 -55
  6. package/admin/src/components/DiscussionStatus/index.d.ts +9 -0
  7. package/admin/src/components/DiscussionStatus/index.js +22 -31
  8. package/admin/src/components/DiscussionThread/index.d.ts +16 -0
  9. package/admin/src/components/DiscussionThread/index.js +39 -56
  10. package/admin/src/components/DiscussionThreadItem/index.d.ts +9 -0
  11. package/admin/src/components/DiscussionThreadItem/index.js +28 -52
  12. package/admin/src/components/DiscussionThreadItem/styles.d.ts +4 -0
  13. package/admin/src/components/DiscussionThreadItem/styles.js +16 -11
  14. package/admin/src/components/DiscussionThreadItemActions/index.d.ts +19 -0
  15. package/admin/src/components/DiscussionThreadItemActions/index.js +121 -158
  16. package/admin/src/components/DiscussionThreadItemActions/styles.d.ts +2 -0
  17. package/admin/src/components/DiscussionThreadItemActions/styles.js +13 -7
  18. package/admin/src/components/DiscussionThreadItemApprovalFlowActions/index.d.ts +17 -0
  19. package/admin/src/components/DiscussionThreadItemApprovalFlowActions/index.js +38 -48
  20. package/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.d.ts +2 -0
  21. package/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.js +12 -6
  22. package/admin/src/components/DiscussionThreadItemFooter/index.d.ts +16 -0
  23. package/admin/src/components/DiscussionThreadItemFooter/index.js +35 -42
  24. package/admin/src/components/DiscussionThreadItemFooter/styles.d.ts +3 -0
  25. package/admin/src/components/DiscussionThreadItemFooter/styles.js +17 -12
  26. package/admin/src/components/DiscussionThreadItemReviewAction/index.d.ts +30 -0
  27. package/admin/src/components/DiscussionThreadItemReviewAction/index.js +77 -91
  28. package/admin/src/components/FormSwitch/index.d.ts +7 -0
  29. package/admin/src/components/FormSwitch/index.js +15 -18
  30. package/admin/src/components/FormSwitch/styles.d.ts +2 -0
  31. package/admin/src/components/FormSwitch/styles.js +14 -8
  32. package/admin/src/components/IconButton/styles.d.ts +2 -0
  33. package/admin/src/components/IconButton/styles.js +16 -9
  34. package/admin/src/components/Initializer/index.d.ts +5 -0
  35. package/admin/src/components/Initializer/index.js +12 -24
  36. package/admin/src/components/LoadingIndicatorOverlay/index.d.ts +3 -0
  37. package/admin/src/components/LoadingIndicatorOverlay/index.js +12 -15
  38. package/admin/src/components/LoadingIndicatorOverlay/styles.d.ts +3 -0
  39. package/admin/src/components/LoadingIndicatorOverlay/styles.js +22 -17
  40. package/admin/src/components/Nav/index.d.ts +7 -0
  41. package/admin/src/components/Nav/index.js +25 -48
  42. package/admin/src/components/PluginIcon/index.d.ts +3 -0
  43. package/admin/src/components/PluginIcon/index.js +10 -12
  44. package/admin/src/components/ReportsReviewModal/index.d.ts +21 -0
  45. package/admin/src/components/ReportsReviewModal/index.js +31 -46
  46. package/admin/src/components/ReportsReviewTable/index.d.ts +21 -0
  47. package/admin/src/components/ReportsReviewTable/index.js +120 -140
  48. package/admin/src/components/StatusBadge/index.d.ts +7 -0
  49. package/admin/src/components/StatusBadge/index.js +12 -17
  50. package/admin/src/components/StatusBadge/styles.d.ts +2 -0
  51. package/admin/src/components/StatusBadge/styles.js +19 -13
  52. package/admin/src/components/TableFilters/index.d.ts +10 -0
  53. package/admin/src/components/TableFilters/index.js +52 -49
  54. package/admin/src/components/TablePagination/index.d.ts +17 -0
  55. package/admin/src/components/TablePagination/index.js +27 -29
  56. package/admin/src/components/icons/comments.d.ts +6 -0
  57. package/admin/src/components/icons/comments.js +11 -8
  58. package/admin/src/components/icons/index.d.ts +6 -0
  59. package/admin/src/components/icons/index.js +15 -6
  60. package/admin/src/components/icons/lock.d.ts +7 -0
  61. package/admin/src/components/icons/lock.js +11 -21
  62. package/admin/src/components/icons/review.d.ts +7 -0
  63. package/admin/src/components/icons/review.js +11 -17
  64. package/admin/src/components/icons/unlock.d.ts +7 -0
  65. package/admin/src/components/icons/unlock.js +11 -19
  66. package/admin/src/hooks/useConfig.d.ts +8 -0
  67. package/admin/src/hooks/useConfig.js +40 -45
  68. package/admin/src/index.d.ts +7 -0
  69. package/admin/src/index.js +98 -92
  70. package/admin/src/pages/App/index.d.ts +4 -0
  71. package/admin/src/pages/App/index.js +43 -67
  72. package/admin/src/pages/App/reducer/actions.d.ts +8 -0
  73. package/admin/src/pages/App/reducer/actions.js +11 -7
  74. package/admin/src/pages/App/reducer/constants.d.ts +4 -0
  75. package/admin/src/pages/App/reducer/constants.js +7 -4
  76. package/admin/src/pages/App/reducer/index.d.ts +9 -0
  77. package/admin/src/pages/App/reducer/index.js +24 -22
  78. package/admin/src/pages/App/reducer/init.d.ts +3 -0
  79. package/admin/src/pages/App/reducer/init.js +6 -4
  80. package/admin/src/pages/App/reducer/selectors.d.ts +6 -0
  81. package/admin/src/pages/App/reducer/selectors.js +17 -34
  82. package/admin/src/pages/App/utils/api.d.ts +2 -0
  83. package/admin/src/pages/App/utils/api.js +14 -11
  84. package/admin/src/pages/ComingSoonPage/index.d.ts +3 -0
  85. package/admin/src/pages/ComingSoonPage/index.js +42 -24
  86. package/admin/src/pages/Details/components/DetailsEntity/index.d.ts +18 -0
  87. package/admin/src/pages/Details/components/DetailsEntity/index.js +49 -77
  88. package/admin/src/pages/Details/components/DetailsFilters/index.d.ts +12 -0
  89. package/admin/src/pages/Details/components/DetailsFilters/index.js +19 -26
  90. package/admin/src/pages/Details/components/DetailsFilters/styles.d.ts +2 -0
  91. package/admin/src/pages/Details/components/DetailsFilters/styles.js +14 -8
  92. package/admin/src/pages/Details/index.d.ts +4 -0
  93. package/admin/src/pages/Details/index.js +94 -133
  94. package/admin/src/pages/Discover/components/DiscoverTableRow/index.d.ts +20 -0
  95. package/admin/src/pages/Discover/components/DiscoverTableRow/index.js +128 -139
  96. package/admin/src/pages/Discover/components/DiscoverTableRow/styles.d.ts +2 -0
  97. package/admin/src/pages/Discover/components/DiscoverTableRow/styles.js +14 -8
  98. package/admin/src/pages/Discover/index.d.ts +4 -0
  99. package/admin/src/pages/Discover/index.js +129 -170
  100. package/admin/src/pages/Discover/utils/api.d.ts +2 -0
  101. package/admin/src/pages/Discover/utils/api.js +15 -13
  102. package/admin/src/pages/Discover/utils/filtersSchema.d.ts +11 -0
  103. package/admin/src/pages/Discover/utils/filtersSchema.js +8 -6
  104. package/admin/src/pages/Settings/components/RestartAlert/styles.d.ts +2 -0
  105. package/admin/src/pages/Settings/components/RestartAlert/styles.js +14 -8
  106. package/admin/src/pages/Settings/index.d.ts +3 -0
  107. package/admin/src/pages/Settings/index.js +225 -391
  108. package/admin/src/pages/Settings/utils/api.d.ts +7 -0
  109. package/admin/src/pages/Settings/utils/api.js +60 -55
  110. package/admin/src/pages/utils/api.d.ts +12 -0
  111. package/admin/src/pages/utils/api.js +58 -53
  112. package/admin/src/permissions.d.ts +28 -0
  113. package/admin/src/permissions.js +31 -17
  114. package/admin/src/pluginId.d.ts +2 -0
  115. package/admin/src/pluginId.js +29 -5
  116. package/admin/src/reducers.d.ts +7 -0
  117. package/admin/src/reducers.js +10 -6
  118. package/admin/src/translations/en.json +131 -131
  119. package/admin/src/translations/fr.json +1 -1
  120. package/admin/src/utils/axiosInstance.d.ts +3 -0
  121. package/admin/src/utils/axiosInstance.js +21 -27
  122. package/admin/src/utils/constants.d.ts +25 -0
  123. package/admin/src/utils/constants.js +23 -22
  124. package/admin/src/utils/getApiUrl.d.ts +3 -0
  125. package/admin/src/utils/getApiUrl.js +6 -5
  126. package/admin/src/utils/getMessage.d.ts +4 -0
  127. package/admin/src/utils/getMessage.js +15 -15
  128. package/admin/src/utils/getRelatedGroups.d.ts +4 -0
  129. package/admin/src/utils/getRelatedGroups.js +5 -3
  130. package/admin/src/utils/getUrl.d.ts +3 -0
  131. package/admin/src/utils/getUrl.js +6 -5
  132. package/admin/src/utils/handleAPIError.d.ts +4 -0
  133. package/admin/src/utils/handleAPIError.js +12 -11
  134. package/admin/src/utils/index.d.ts +12 -0
  135. package/admin/src/utils/index.js +29 -11
  136. package/admin/src/utils/parseRegExp.d.ts +6 -0
  137. package/admin/src/utils/parseRegExp.js +6 -5
  138. package/admin/src/utils/renderEntryTitle.d.ts +4 -0
  139. package/admin/src/utils/renderEntryTitle.js +11 -12
  140. package/admin/src/utils/renderInitials.d.ts +3 -0
  141. package/admin/src/utils/renderInitials.js +10 -5
  142. package/admin/src/utils/resolveCommentStatus.d.ts +4 -0
  143. package/admin/src/utils/resolveCommentStatus.js +17 -21
  144. package/admin/src/utils/resolveCommentStatusColor.d.ts +4 -0
  145. package/admin/src/utils/resolveCommentStatusColor.js +19 -19
  146. package/content-types/comment.d.ts +91 -0
  147. package/content-types/comment.js +87 -88
  148. package/content-types/index.d.ts +143 -0
  149. package/content-types/index.js +15 -10
  150. package/content-types/report.d.ts +48 -0
  151. package/content-types/report.js +44 -49
  152. package/package.json +24 -19
  153. package/permissions.d.ts +18 -0
  154. package/permissions.js +12 -13
  155. package/server/bootstrap.d.ts +4 -0
  156. package/server/bootstrap.js +56 -62
  157. package/server/config/index.d.ts +4 -0
  158. package/server/config/index.js +17 -15
  159. package/server/controllers/admin.d.ts +4 -0
  160. package/server/controllers/admin.js +134 -167
  161. package/server/controllers/client.d.ts +4 -0
  162. package/server/controllers/client.js +104 -112
  163. package/server/controllers/index.d.ts +6 -0
  164. package/server/controllers/index.js +12 -8
  165. package/server/controllers/utils/functions.d.ts +7 -0
  166. package/server/controllers/utils/functions.js +22 -17
  167. package/server/controllers/utils/parsers.d.ts +15 -0
  168. package/server/controllers/utils/parsers.js +17 -17
  169. package/server/destroy.d.ts +3 -0
  170. package/server/destroy.js +3 -4
  171. package/server/graphql/index.d.ts +4 -0
  172. package/server/graphql/index.js +27 -25
  173. package/server/graphql/mutations/createAbuseReport.d.ts +11 -0
  174. package/server/graphql/mutations/createAbuseReport.js +22 -24
  175. package/server/graphql/mutations/createComment.d.ts +14 -0
  176. package/server/graphql/mutations/createComment.js +22 -24
  177. package/server/graphql/mutations/index.d.ts +4 -0
  178. package/server/graphql/mutations/index.js +24 -19
  179. package/server/graphql/mutations/removeComment.d.ts +11 -0
  180. package/server/graphql/mutations/removeComment.js +22 -24
  181. package/server/graphql/mutations/updateComment.d.ts +11 -0
  182. package/server/graphql/mutations/updateComment.js +22 -24
  183. package/server/graphql/queries/findAllFlat.d.ts +19 -0
  184. package/server/graphql/queries/findAllFlat.js +31 -34
  185. package/server/graphql/queries/findAllInHierarchy.d.ts +18 -0
  186. package/server/graphql/queries/findAllInHierarchy.js +26 -30
  187. package/server/graphql/queries/index.d.ts +4 -0
  188. package/server/graphql/queries/index.js +20 -17
  189. package/server/graphql/resolvers-config.d.ts +23 -0
  190. package/server/graphql/resolvers-config.js +11 -11
  191. package/server/graphql/types/comment-author.d.ts +4 -0
  192. package/server/graphql/types/comment-author.js +10 -8
  193. package/server/graphql/types/comment-nested.d.ts +4 -0
  194. package/server/graphql/types/comment-nested.js +17 -15
  195. package/server/graphql/types/comment.d.ts +4 -0
  196. package/server/graphql/types/comment.js +16 -14
  197. package/server/graphql/types/create-comment-author.d.ts +4 -0
  198. package/server/graphql/types/create-comment-author.js +10 -8
  199. package/server/graphql/types/create-comment.d.ts +4 -0
  200. package/server/graphql/types/create-comment.js +10 -8
  201. package/server/graphql/types/create-report.d.ts +4 -0
  202. package/server/graphql/types/create-report.js +10 -8
  203. package/server/graphql/types/id.d.ts +4 -0
  204. package/server/graphql/types/id.js +24 -23
  205. package/server/graphql/types/identify-comment-author.d.ts +4 -0
  206. package/server/graphql/types/identify-comment-author.js +7 -5
  207. package/server/graphql/types/index.d.ts +4 -0
  208. package/server/graphql/types/index.js +36 -17
  209. package/server/graphql/types/remove-comment.d.ts +4 -0
  210. package/server/graphql/types/remove-comment.js +9 -7
  211. package/server/graphql/types/report-reason.d.ts +4 -0
  212. package/server/graphql/types/report-reason.js +10 -8
  213. package/server/graphql/types/report.d.ts +4 -0
  214. package/server/graphql/types/report.js +12 -10
  215. package/server/graphql/types/response-find-all.d.ts +4 -0
  216. package/server/graphql/types/response-find-all.js +8 -6
  217. package/server/graphql/types/response-meta.d.ts +4 -0
  218. package/server/graphql/types/response-meta.js +7 -5
  219. package/server/graphql/types/response-pagination.d.ts +4 -0
  220. package/server/graphql/types/response-pagination.js +12 -10
  221. package/server/graphql/types/update-comment.d.ts +4 -0
  222. package/server/graphql/types/update-comment.js +10 -8
  223. package/server/index.d.ts +26 -0
  224. package/server/index.js +24 -21
  225. package/server/register.d.ts +3 -0
  226. package/server/register.js +3 -4
  227. package/server/routes/admin.d.ts +4 -0
  228. package/server/routes/admin.js +103 -109
  229. package/server/routes/client.d.ts +4 -0
  230. package/server/routes/client.js +48 -46
  231. package/server/routes/index.d.ts +11 -0
  232. package/server/routes/index.js +18 -14
  233. package/server/services/admin.d.ts +5 -0
  234. package/server/services/admin.js +126 -158
  235. package/server/services/client.d.ts +5 -0
  236. package/server/services/client.js +135 -151
  237. package/server/services/common.d.ts +5 -0
  238. package/server/services/common.js +165 -194
  239. package/server/services/graphql.d.ts +5 -0
  240. package/server/services/graphql.js +117 -182
  241. package/server/services/index.d.ts +8 -0
  242. package/server/services/index.js +15 -12
  243. package/server/services/utils/functions.d.ts +13 -0
  244. package/server/services/utils/functions.js +100 -109
  245. package/server/utils/constants.d.ts +9 -0
  246. package/server/utils/constants.js +19 -23
  247. package/server/utils/error.d.ts +19 -0
  248. package/server/utils/error.js +23 -18
  249. package/server/utils/functions.d.ts +6 -0
  250. package/server/utils/functions.js +35 -18
  251. package/strapi-admin.d.ts +3 -0
  252. package/strapi-admin.js +8 -3
  253. package/strapi-server.d.ts +177 -0
  254. package/strapi-server.js +43 -46
  255. package/tsconfig.tsbuildinfo +1 -0
  256. package/types/contentTypes.d.ts +44 -0
  257. package/types/contentTypes.js +3 -0
  258. package/.husky/pre-commit +0 -4
  259. package/LICENSE.md +0 -7
  260. package/__mocks__/initSetup.js +0 -108
  261. package/jest.config.js +0 -7
  262. package/server/controllers/utils/__tests__/functions.test.js +0 -43
  263. package/server/controllers/utils/__tests__/parsers.test.js +0 -94
  264. package/server/services/__tests__/common.test.js +0 -399
  265. package/server/services/utils/__tests__/functions.test.js +0 -53
  266. package/server/utils/__tests__/functions.test.js +0 -17
@@ -1,132 +1,132 @@
1
1
  {
2
- "plugin.name": "Comments",
3
- "plugin.section": "Comments plugin",
4
- "plugin.section.item": "Configuration",
5
- "common.button.back": "Go back",
6
- "nav.header.moderation": "Moderation",
7
- "nav.header.settings": "Settings",
8
- "nav.item.updates": "Updates",
9
- "nav.item.discover": "Discover",
10
- "nav.item.reports": "Reports",
11
- "nav.item.settings": "Settings",
12
- "page.common.item.status.OPEN": "Open",
13
- "page.common.item.status.PENDING": "Pending",
14
- "page.common.item.status.BLOCKED": "Blocked",
15
- "page.common.item.status.APPROVED": "Approved",
16
- "page.common.item.status.TO_REVIEW": "To review ({count, number})",
17
- "page.common.item.status.REJECTED": "Rejected",
18
- "page.common.item.status.REMOVED": "Removed by author",
19
- "page.updates.header": "Recent updates",
20
- "page.discover.header": "Discover threads",
21
- "page.discover.header.count": "entries found",
22
- "page.discover.table.header.id": "ID",
23
- "page.discover.table.header.author": "Author",
24
- "page.discover.table.header.message": "Message",
25
- "page.discover.table.header.thread": "Thread of",
26
- "page.discover.table.header.entry": "Entry",
27
- "page.discover.table.header.lastUpdate": "Last update",
28
- "page.discover.table.header.status": "Status",
29
- "page.discover.table.header.actions": "Actions",
30
- "page.discover.table.cell.thread": "Comment #{id}",
31
- "page.discover.table.action.display": "Display",
32
- "page.discover.table.action.reports": "Reports",
33
- "page.discover.table.empty": "You don't have any comments yet.",
34
- "page.discover.table.empty.search": "No comments match the search.",
35
- "page.discover.table.filters": "Filtering",
36
- "page.discover.table.reports.review": "Review reports",
37
- "page.details.header": "Discussion panel",
38
- "page.details.header.description": "Drilldown and manage discussion related to the entity",
39
- "page.details.panel.discussion": "Discussion",
40
- "page.details.panel.discussion.nav.drilldown": "Drilldown",
41
- "page.details.panel.discussion.nav.back": "Go top",
42
- "page.details.panel.discussion.warnings.reports.description": "open reports",
43
- "page.details.panel.discussion.warnings.reports.review": "Review",
44
- "page.details.panel.discussion.warnings.reports.dialog.list": "Reports",
45
- "page.details.panel.discussion.warnings.reports.dialog.header": "Moderation: Review open reports",
46
- "page.details.panel.discussion.warnings.reports.dialog.reason": "Reason",
47
- "page.details.panel.discussion.warnings.reports.dialog.reason.BAD_LANGUAGE": "Bad language",
48
- "page.details.panel.discussion.warnings.reports.dialog.reason.DISCRIMINATION": "Discrimination",
49
- "page.details.panel.discussion.warnings.reports.dialog.reason.OTHER": "Other",
50
- "page.details.panel.discussion.warnings.reports.dialog.content": "Content",
51
- "page.details.panel.discussion.warnings.reports.dialog.createdAt": "Issue date",
52
- "page.details.panel.discussion.warnings.reports.dialog.status": "Status",
53
- "page.details.panel.discussion.warnings.reports.dialog.status.OPEN": "Open",
54
- "page.details.panel.discussion.warnings.reports.dialog.status.RESOLVED": "Resolved",
55
- "page.details.panel.discussion.warnings.reports.dialog.actions": "Actions",
56
- "page.details.panel.discussion.warnings.reports.dialog.actions.resolve": "Resolve",
57
- "page.details.panel.discussion.warnings.reports.dialog.confirmation.success": "Open report has been resolved",
58
- "page.details.panel.discussion.status.blocked": "Blocked",
59
- "page.details.panel.entity": "Entity details",
60
- "page.details.panel.status": "Discussion is",
61
- "page.details.panel.status.open": "Open",
62
- "page.details.panel.status.blocked": "Blocked",
63
- "page.details.panel.status.pending": "Pending",
64
- "page.details.panel.loading": "Fetching entity...",
65
- "page.details.actions.comment.block": "Block comment",
66
- "page.details.actions.comment.block.confirmation.header": "Moderation: Block comment",
67
- "page.details.actions.comment.block.confirmation.description": "Do you really want to block this comment?",
68
- "page.details.actions.comment.block.confirmation.button.confirm": "Yes, block it",
69
- "page.details.actions.comment.block.confirmation.success": "Comment has been blocked",
70
- "page.details.actions.comment.unblock": "Unblock comment",
71
- "page.details.actions.comment.unblock.confirmation.success": "Comment has been unblocked",
72
- "page.details.actions.comment.reports.review": "Review",
73
- "page.details.actions.thread.block": "Block thread",
74
- "page.details.actions.thread.block.confirmation.header": "Moderation: Block thread",
75
- "page.details.actions.thread.block.confirmation.description": "Do you really want to block whole thread? No further discussions are going to be allowed.",
76
- "page.details.actions.thread.block.confirmation.button.confirm": "Yes, block it",
77
- "page.details.actions.thread.block.confirmation.success": "Thread has been blocked",
78
- "page.details.actions.thread.unblock": "Unblock thread",
79
- "page.details.actions.thread.unblock.confirmation.success": "Thread has been unblocked",
80
- "page.details.actions.comment.approve.confirmation.success": "Comment has been approved",
81
- "page.details.actions.comment.reject.confirmation.success": "Comment has been rejected",
82
- "page.details.filters.label": "View",
83
- "page.details.filters.removed.visibility": "Show removed comments",
84
- "page.coming.soon": "Wait for what is coming soon...",
85
- "page.settings": "Settings",
86
- "page.settings.header.title": "Comments",
87
- "page.settings.header.description": "Configure your comments moderation capabilities",
88
- "page.settings.actions.submit": "Save",
89
- "page.settings.actions.restore": "Restore default settings",
90
- "page.settings.actions.restart": "Restart Strapi",
91
- "page.settings.section.general": "General configuration",
92
- "page.settings.section.additional": "Additional configuration",
93
- "page.settings.section.restore": "Restore default settings",
94
- "page.settings.section.restore.subtitle": "Discarding all of applied settings and getting back to plugin default ones. Use reasonable.",
95
- "page.settings.form.enabledCollections.label": "Enable comments only for",
96
- "page.settings.form.enabledCollections.placeholder": "Select one or more collection",
97
- "page.settings.form.enabledCollections.hint": "If none is selected, all the content types are enabled",
98
- "page.settings.form.contentTypesSettings.label": "Content types",
99
- "page.settings.form.contentTypesSettings.tooltip": "Custom configuration per content type",
100
- "page.settings.form.moderatorRoles.label": "Send significant notifications to",
101
- "page.settings.form.moderatorRoles.placeholder": "Select one or more roles",
102
- "page.settings.form.moderatorRoles.hint": "Roles which are going to be notified by the plugin about significant actions to perform",
103
- "page.settings.form.badWords.label": "Bad words filtering",
104
- "page.settings.form.badWords.hint": "If enabled, every post / update of comment is going to be checked against bad wording",
105
- "page.settings.form.gqlAuth.label": "GraphQL queries authorization",
106
- "page.settings.form.gqlAuth.hint": "If enabled, GraphQL API queries & mutations can be triggered only by Authenticated Strapi users. Otherwise API remains open.",
107
- "page.settings.form.approvalFlow.label": "Approval flow",
108
- "page.settings.form.approvalFlow.hint": "Comments associated with content type \"{name}\" are going to be taken through manual approval flow",
109
- "page.settings.form.entryLabel.label": "Title fields",
110
- "page.settings.form.entryLabel.placeholder": "Select at least one or leave empty to apply defaults",
111
- "page.settings.form.entryLabel.hint": "If left empty title rendering is going to take following ordered fields: \"Title\", \"Subject\" & \"Name\"",
112
- "page.settings.actions.restore.confirmation.header": "Restore default configuration",
113
- "page.settings.actions.restore.confirmation.description": "You're about to restore plugin configuration to it default values. It might have destructive impact on already collected content. Do you really want to proceed?",
114
- "page.settings.actions.restore.confirmation.button.confirm": "Yes, I want to restore",
115
- "page.settings.actions.restart.alert.title": "Strapi requires restart",
116
- "page.settings.actions.restart.alert.description": "You've made a configuration changes which requires your Strapi application to be restarted to take an effect in GraphQL schema. Do it manually or by using below trigger.",
117
- "page.settings.actions.restart.alert.close": "Discard",
118
- "page.settings.notification.fetch.error": "Failed to fetch configuration. Retrying...",
119
- "page.settings.notification.submit.success": "Configuration has been saved successfully",
120
- "page.settings.notification.submit.error": "Failed to save configuration. Try again.",
121
- "page.settings.notification.restore.success": "Configuration has been restored successfully",
122
- "page.settings.notification.restore.error": "Failed to restore configuration. Try again.",
123
- "page.settings.notification.restart.success": "Application has been restarted successfully",
124
- "page.settings.notification.restart.error": "Failed to restart your application. Try to do it manually.",
125
- "page.settings.loading": "Fetching configuration...",
126
- "compontents.confirmation.dialog.header": "Confirmation",
127
- "compontents.confirmation.dialog.description": "Do you really want to perform this action?",
128
- "compontents.confirmation.dialog.button.confirm": "Yes, I do",
129
- "compontents.confirmation.dialog.button.cancel": "Cancel",
130
- "compontents.toogle.enabled": "Enabled",
131
- "compontents.toogle.disabled": "Disabled"
132
- }
2
+ "plugin.name": "Comments",
3
+ "plugin.section": "Comments plugin",
4
+ "plugin.section.item": "Configuration",
5
+ "common.button.back": "Go back",
6
+ "nav.header.moderation": "Moderation",
7
+ "nav.header.settings": "Settings",
8
+ "nav.item.updates": "Updates",
9
+ "nav.item.discover": "Discover",
10
+ "nav.item.reports": "Reports",
11
+ "nav.item.settings": "Settings",
12
+ "page.common.item.status.OPEN": "Open",
13
+ "page.common.item.status.PENDING": "Pending",
14
+ "page.common.item.status.BLOCKED": "Blocked",
15
+ "page.common.item.status.APPROVED": "Approved",
16
+ "page.common.item.status.TO_REVIEW": "To review ({count, number})",
17
+ "page.common.item.status.REJECTED": "Rejected",
18
+ "page.common.item.status.REMOVED": "Removed by author",
19
+ "page.updates.header": "Recent updates",
20
+ "page.discover.header": "Discover threads",
21
+ "page.discover.header.count": "entries found",
22
+ "page.discover.table.header.id": "ID",
23
+ "page.discover.table.header.author": "Author",
24
+ "page.discover.table.header.message": "Message",
25
+ "page.discover.table.header.thread": "Thread of",
26
+ "page.discover.table.header.entry": "Entry",
27
+ "page.discover.table.header.lastUpdate": "Last update",
28
+ "page.discover.table.header.status": "Status",
29
+ "page.discover.table.header.actions": "Actions",
30
+ "page.discover.table.cell.thread": "Comment #{id}",
31
+ "page.discover.table.action.display": "Display",
32
+ "page.discover.table.action.reports": "Reports",
33
+ "page.discover.table.empty": "You don't have any comments yet.",
34
+ "page.discover.table.empty.search": "No comments match the search.",
35
+ "page.discover.table.filters": "Filtering",
36
+ "page.discover.table.reports.review": "Review reports",
37
+ "page.details.header": "Discussion panel",
38
+ "page.details.header.description": "Drilldown and manage discussion related to the entity",
39
+ "page.details.panel.discussion": "Discussion",
40
+ "page.details.panel.discussion.nav.drilldown": "Drilldown",
41
+ "page.details.panel.discussion.nav.back": "Go top",
42
+ "page.details.panel.discussion.warnings.reports.description": "open reports",
43
+ "page.details.panel.discussion.warnings.reports.review": "Review",
44
+ "page.details.panel.discussion.warnings.reports.dialog.list": "Reports",
45
+ "page.details.panel.discussion.warnings.reports.dialog.header": "Moderation: Review open reports",
46
+ "page.details.panel.discussion.warnings.reports.dialog.reason": "Reason",
47
+ "page.details.panel.discussion.warnings.reports.dialog.reason.BAD_LANGUAGE": "Bad language",
48
+ "page.details.panel.discussion.warnings.reports.dialog.reason.DISCRIMINATION": "Discrimination",
49
+ "page.details.panel.discussion.warnings.reports.dialog.reason.OTHER": "Other",
50
+ "page.details.panel.discussion.warnings.reports.dialog.content": "Content",
51
+ "page.details.panel.discussion.warnings.reports.dialog.createdAt": "Issue date",
52
+ "page.details.panel.discussion.warnings.reports.dialog.status": "Status",
53
+ "page.details.panel.discussion.warnings.reports.dialog.status.OPEN": "Open",
54
+ "page.details.panel.discussion.warnings.reports.dialog.status.RESOLVED": "Resolved",
55
+ "page.details.panel.discussion.warnings.reports.dialog.actions": "Actions",
56
+ "page.details.panel.discussion.warnings.reports.dialog.actions.resolve": "Resolve",
57
+ "page.details.panel.discussion.warnings.reports.dialog.confirmation.success": "Open report has been resolved",
58
+ "page.details.panel.discussion.status.blocked": "Blocked",
59
+ "page.details.panel.entity": "Entity details",
60
+ "page.details.panel.status": "Discussion is",
61
+ "page.details.panel.status.open": "Open",
62
+ "page.details.panel.status.blocked": "Blocked",
63
+ "page.details.panel.status.pending": "Pending",
64
+ "page.details.panel.loading": "Fetching entity...",
65
+ "page.details.actions.comment.block": "Block comment",
66
+ "page.details.actions.comment.block.confirmation.header": "Moderation: Block comment",
67
+ "page.details.actions.comment.block.confirmation.description": "Do you really want to block this comment?",
68
+ "page.details.actions.comment.block.confirmation.button.confirm": "Yes, block it",
69
+ "page.details.actions.comment.block.confirmation.success": "Comment has been blocked",
70
+ "page.details.actions.comment.unblock": "Unblock comment",
71
+ "page.details.actions.comment.unblock.confirmation.success": "Comment has been unblocked",
72
+ "page.details.actions.comment.reports.review": "Review",
73
+ "page.details.actions.thread.block": "Block thread",
74
+ "page.details.actions.thread.block.confirmation.header": "Moderation: Block thread",
75
+ "page.details.actions.thread.block.confirmation.description": "Do you really want to block whole thread? No further discussions are going to be allowed.",
76
+ "page.details.actions.thread.block.confirmation.button.confirm": "Yes, block it",
77
+ "page.details.actions.thread.block.confirmation.success": "Thread has been blocked",
78
+ "page.details.actions.thread.unblock": "Unblock thread",
79
+ "page.details.actions.thread.unblock.confirmation.success": "Thread has been unblocked",
80
+ "page.details.actions.comment.approve.confirmation.success": "Comment has been approved",
81
+ "page.details.actions.comment.reject.confirmation.success": "Comment has been rejected",
82
+ "page.details.filters.label": "View",
83
+ "page.details.filters.removed.visibility": "Show removed comments",
84
+ "page.coming.soon": "Wait for what is coming soon...",
85
+ "page.settings": "Settings",
86
+ "page.settings.header.title": "Comments",
87
+ "page.settings.header.description": "Configure your comments moderation capabilities",
88
+ "page.settings.actions.submit": "Save",
89
+ "page.settings.actions.restore": "Restore default settings",
90
+ "page.settings.actions.restart": "Restart Strapi",
91
+ "page.settings.section.general": "General configuration",
92
+ "page.settings.section.additional": "Additional configuration",
93
+ "page.settings.section.restore": "Restore default settings",
94
+ "page.settings.section.restore.subtitle": "Discarding all of applied settings and getting back to plugin default ones. Use reasonable.",
95
+ "page.settings.form.enabledCollections.label": "Enable comments only for",
96
+ "page.settings.form.enabledCollections.placeholder": "Select one or more collection",
97
+ "page.settings.form.enabledCollections.hint": "If none is selected, all the content types are enabled",
98
+ "page.settings.form.contentTypesSettings.label": "Content types",
99
+ "page.settings.form.contentTypesSettings.tooltip": "Custom configuration per content type",
100
+ "page.settings.form.moderatorRoles.label": "Send significant notifications to",
101
+ "page.settings.form.moderatorRoles.placeholder": "Select one or more roles",
102
+ "page.settings.form.moderatorRoles.hint": "Roles which are going to be notified by the plugin about significant actions to perform",
103
+ "page.settings.form.badWords.label": "Bad words filtering",
104
+ "page.settings.form.badWords.hint": "If enabled, every post / update of comment is going to be checked against bad wording",
105
+ "page.settings.form.gqlAuth.label": "GraphQL queries authorization",
106
+ "page.settings.form.gqlAuth.hint": "If enabled, GraphQL API queries & mutations can be triggered only by Authenticated Strapi users. Otherwise API remains open.",
107
+ "page.settings.form.approvalFlow.label": "Approval flow",
108
+ "page.settings.form.approvalFlow.hint": "Comments associated with content type \"{name}\" are going to be taken through manual approval flow",
109
+ "page.settings.form.entryLabel.label": "Title fields",
110
+ "page.settings.form.entryLabel.placeholder": "Select at least one or leave empty to apply defaults",
111
+ "page.settings.form.entryLabel.hint": "If left empty title rendering is going to take following ordered fields: \"Title\", \"Subject\" & \"Name\"",
112
+ "page.settings.actions.restore.confirmation.header": "Restore default configuration",
113
+ "page.settings.actions.restore.confirmation.description": "You're about to restore plugin configuration to it default values. It might have destructive impact on already collected content. Do you really want to proceed?",
114
+ "page.settings.actions.restore.confirmation.button.confirm": "Yes, I want to restore",
115
+ "page.settings.actions.restart.alert.title": "Strapi requires restart",
116
+ "page.settings.actions.restart.alert.description": "You've made a configuration changes which requires your Strapi application to be restarted to take an effect in GraphQL schema. Do it manually or by using below trigger.",
117
+ "page.settings.actions.restart.alert.close": "Discard",
118
+ "page.settings.notification.fetch.error": "Failed to fetch configuration. Retrying...",
119
+ "page.settings.notification.submit.success": "Configuration has been saved successfully",
120
+ "page.settings.notification.submit.error": "Failed to save configuration. Try again.",
121
+ "page.settings.notification.restore.success": "Configuration has been restored successfully",
122
+ "page.settings.notification.restore.error": "Failed to restore configuration. Try again.",
123
+ "page.settings.notification.restart.success": "Application has been restarted successfully",
124
+ "page.settings.notification.restart.error": "Failed to restart your application. Try to do it manually.",
125
+ "page.settings.loading": "Fetching configuration...",
126
+ "compontents.confirmation.dialog.header": "Confirmation",
127
+ "compontents.confirmation.dialog.description": "Do you really want to perform this action?",
128
+ "compontents.confirmation.dialog.button.confirm": "Yes, I do",
129
+ "compontents.confirmation.dialog.button.cancel": "Cancel",
130
+ "compontents.toogle.enabled": "Enabled",
131
+ "compontents.toogle.disabled": "Disabled"
132
+ }
@@ -1 +1 @@
1
- {}
1
+ {}
@@ -0,0 +1,3 @@
1
+ declare const instance: any;
2
+ export default instance;
3
+ //# sourceMappingURL=axiosInstance.d.ts.map
@@ -1,35 +1,29 @@
1
- import axios from 'axios';
2
- import { auth } from '@strapi/helper-plugin';
3
-
4
- const instance = axios.create({
5
- baseURL: process.env.STRAPI_ADMIN_BACKEND_URL,
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ const helper_plugin_1 = require("@strapi/helper-plugin");
8
+ const instance = axios_1.default.create({
9
+ baseURL: process.env.STRAPI_ADMIN_BACKEND_URL,
6
10
  });
7
-
8
- instance.interceptors.request.use(
9
- async config => {
11
+ instance.interceptors.request.use(async (config) => {
10
12
  config.headers = {
11
- Authorization: `Bearer ${auth.getToken()}`,
12
- Accept: 'application/json',
13
- 'Content-Type': 'application/json',
13
+ Authorization: `Bearer ${helper_plugin_1.auth.getToken()}`,
14
+ Accept: "application/json",
15
+ "Content-Type": "application/json",
14
16
  };
15
-
16
17
  return config;
17
- },
18
- error => {
18
+ }, (error) => {
19
19
  Promise.reject(error);
20
- }
21
- );
22
-
23
- instance.interceptors.response.use(
24
- response => response,
25
- error => {
20
+ });
21
+ instance.interceptors.response.use((response) => response, (error) => {
26
22
  if (error.response?.status === 401) {
27
- auth.clearAppStorage();
28
- window.location.reload();
23
+ helper_plugin_1.auth.clearAppStorage();
24
+ window.location.reload();
29
25
  }
30
-
31
26
  throw error;
32
- }
33
- );
34
-
35
- export default instance;
27
+ });
28
+ exports.default = instance;
29
+ //# sourceMappingURL=axiosInstance.js.map
@@ -0,0 +1,25 @@
1
+ export declare const APPROVAL_STATUS: {
2
+ PENDING: string;
3
+ APPROVED: string;
4
+ REJECTED: string;
5
+ };
6
+ export declare const REPORT_STATUS: {
7
+ RESOLVED: string;
8
+ OPEN: string;
9
+ };
10
+ export declare const REPORT_REASON: {
11
+ BAD_LANGUAGE: string;
12
+ DISCRIMINATION: string;
13
+ OTHER: string;
14
+ };
15
+ export declare const COMMENT_STATUS: {
16
+ PENDING: string;
17
+ APPROVED: string;
18
+ REJECTED: string;
19
+ UNKNOWN: string;
20
+ BLOCKED: string;
21
+ OPEN: string;
22
+ REMOVED: string;
23
+ TO_REVIEW: string;
24
+ };
25
+ //# sourceMappingURL=constants.d.ts.map
@@ -1,25 +1,26 @@
1
- export const APPROVAL_STATUS = {
2
- PENDING: "PENDING",
3
- APPROVED: "APPROVED",
4
- REJECTED: "REJECTED",
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COMMENT_STATUS = exports.REPORT_REASON = exports.REPORT_STATUS = exports.APPROVAL_STATUS = void 0;
4
+ exports.APPROVAL_STATUS = {
5
+ PENDING: "PENDING",
6
+ APPROVED: "APPROVED",
7
+ REJECTED: "REJECTED",
5
8
  };
6
-
7
- export const REPORT_STATUS = {
8
- 'RESOLVED': 'RESOLVED',
9
- 'OPEN': 'OPEN',
9
+ exports.REPORT_STATUS = {
10
+ RESOLVED: "RESOLVED",
11
+ OPEN: "OPEN",
10
12
  };
11
-
12
- export const REPORT_REASON = {
13
- 'BAD_LANGUAGE': 'BAD_LANGUAGE',
14
- 'DISCRIMINATION': 'DISCRIMINATION',
15
- 'OTHER': 'OTHER',
13
+ exports.REPORT_REASON = {
14
+ BAD_LANGUAGE: "BAD_LANGUAGE",
15
+ DISCRIMINATION: "DISCRIMINATION",
16
+ OTHER: "OTHER",
16
17
  };
17
-
18
- export const COMMENT_STATUS = {
19
- 'UNKNOWN': 'UNKNOWN',
20
- 'BLOCKED': 'BLOCKED',
21
- 'OPEN': 'OPEN',
22
- 'REMOVED': 'REMOVED',
23
- 'TO_REVIEW': 'TO_REVIEW',
24
- ...APPROVAL_STATUS,
25
- };
18
+ exports.COMMENT_STATUS = {
19
+ UNKNOWN: "UNKNOWN",
20
+ BLOCKED: "BLOCKED",
21
+ OPEN: "OPEN",
22
+ REMOVED: "REMOVED",
23
+ TO_REVIEW: "TO_REVIEW",
24
+ ...exports.APPROVAL_STATUS,
25
+ };
26
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1,3 @@
1
+ declare const getApiURL: (endPoint: string) => string;
2
+ export default getApiURL;
3
+ //# sourceMappingURL=getApiUrl.d.ts.map
@@ -1,5 +1,6 @@
1
- import pluginId from '../pluginId';
2
-
3
- const getApiURL = endPoint => `/${pluginId}/${endPoint}`;
4
-
5
- export default getApiURL;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const pluginId_1 = require("../pluginId");
4
+ const getApiURL = (endPoint) => `/${pluginId_1.pluginId}/${endPoint}`;
5
+ exports.default = getApiURL;
6
+ //# sourceMappingURL=getApiUrl.js.map
@@ -0,0 +1,4 @@
1
+ import { ToBeFixed } from "../../../types";
2
+ declare const getMessage: (input: ToBeFixed, defaultMessage?: string, inPluginScope?: boolean) => any;
3
+ export default getMessage;
4
+ //# sourceMappingURL=getMessage.d.ts.map
@@ -1,21 +1,21 @@
1
-
2
- import { useIntl } from 'react-intl';
3
- import { isString } from 'lodash';
4
-
5
- import pluginId from '../pluginId';
6
-
7
- const getMessage = (input, defaultMessage = '', inPluginScope = true) => {
8
- const { formatMessage } = useIntl();
9
- let formattedId = ''
10
- if (isString(input)) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_intl_1 = require("react-intl");
4
+ const lodash_1 = require("lodash");
5
+ const pluginId_1 = require("../pluginId");
6
+ const getMessage = (input, defaultMessage = "", inPluginScope = true) => {
7
+ const { formatMessage } = (0, react_intl_1.useIntl)();
8
+ let formattedId = "";
9
+ if ((0, lodash_1.isString)(input)) {
11
10
  formattedId = input;
12
- } else {
11
+ }
12
+ else {
13
13
  formattedId = input?.id;
14
14
  }
15
15
  return formatMessage({
16
- id: `${inPluginScope ? pluginId : 'app.components'}.${formattedId}`,
16
+ id: `${inPluginScope ? pluginId_1.pluginId : "app.components"}.${formattedId}`,
17
17
  defaultMessage,
18
- }, input?.props || undefined)
18
+ }, input?.props || undefined);
19
19
  };
20
-
21
- export default getMessage;
20
+ exports.default = getMessage;
21
+ //# sourceMappingURL=getMessage.js.map
@@ -0,0 +1,4 @@
1
+ import { ToBeFixed } from "../../../types";
2
+ declare const getRelatedGroups: (related: string, config: ToBeFixed) => string[];
3
+ export default getRelatedGroups;
4
+ //# sourceMappingURL=getRelatedGroups.d.ts.map
@@ -1,3 +1,5 @@
1
- const getRelatedGroups = (related, config) => related.split(config.regex.relatedUid).filter(s => s && s.length > 0);
2
-
3
- export default getRelatedGroups;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getRelatedGroups = (related, config) => related.split(config.regex.relatedUid).filter((s) => s && s.length > 0);
4
+ exports.default = getRelatedGroups;
5
+ //# sourceMappingURL=getRelatedGroups.js.map
@@ -0,0 +1,3 @@
1
+ declare const getUrl: (path?: string) => string;
2
+ export default getUrl;
3
+ //# sourceMappingURL=getUrl.d.ts.map
@@ -1,5 +1,6 @@
1
- import pluginId from '../pluginId';
2
-
3
- const getUrl = (path = '') => `/plugins/${pluginId}/${path}`;
4
-
5
- export default getUrl;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const pluginId_1 = require("../pluginId");
4
+ const getUrl = (path = "") => `/plugins/${pluginId_1.pluginId}/${path}`;
5
+ exports.default = getUrl;
6
+ //# sourceMappingURL=getUrl.js.map
@@ -0,0 +1,4 @@
1
+ import { ToBeFixed } from "../../../types";
2
+ declare const handleAPIError: (err?: null, toggleNotification?: ToBeFixed, message?: string) => never;
3
+ export default handleAPIError;
4
+ //# sourceMappingURL=handleAPIError.d.ts.map
@@ -1,16 +1,17 @@
1
- import pluginId from "../pluginId";
2
-
3
- const handleAPIError = (err = null, toggleNotification = null, message = 'app.components.notification.error') => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const pluginId_1 = require("../pluginId");
4
+ const handleAPIError = (err = null, toggleNotification = null, message = "app.components.notification.error") => {
4
5
  toggleNotification({
5
- type: 'warning',
6
- message: `${pluginId}.${message}`,
6
+ type: "warning",
7
+ message: `${pluginId_1.pluginId}.${message}`,
7
8
  });
8
-
9
9
  if (err) {
10
10
  throw err;
11
- } else {
12
- throw new Error('error');
13
11
  }
14
- }
15
-
16
- export default handleAPIError;
12
+ else {
13
+ throw new Error("error");
14
+ }
15
+ };
16
+ exports.default = handleAPIError;
17
+ //# sourceMappingURL=handleAPIError.js.map
@@ -0,0 +1,12 @@
1
+ export { default as axiosInstance } from "./axiosInstance";
2
+ export { default as getApiURL } from "./getApiUrl";
3
+ export { default as getUrl } from "./getUrl";
4
+ export { default as getMessage } from "./getMessage";
5
+ export { default as handleAPIError } from "./handleAPIError";
6
+ export { default as getRelatedGroups } from "./getRelatedGroups";
7
+ export { default as renderEntryTitle } from "./renderEntryTitle";
8
+ export { default as renderInitials } from "./renderInitials";
9
+ export { default as resolveCommentStatus } from "./resolveCommentStatus";
10
+ export { default as resolveCommentStatusColor } from "./resolveCommentStatusColor";
11
+ export { default as parseRegExp } from "./parseRegExp";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,29 @@
1
- export { default as axiosInstance } from './axiosInstance';
2
- export { default as getApiURL } from './getApiUrl';
3
- export { default as getUrl } from './getUrl';
4
- export { default as getMessage } from './getMessage';
5
- export { default as handleAPIError } from './handleAPIError';
6
- export { default as getRelatedGroups } from './getRelatedGroups';
7
- export { default as renderEntryTitle } from './renderEntryTitle';
8
- export { default as renderInitials } from './renderInitials';
9
- export { default as resolveCommentStatus } from './resolveCommentStatus';
10
- export { default as resolveCommentStatusColor } from './resolveCommentStatusColor';
11
- export { default as parseRegExp } from './parseRegExp';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.parseRegExp = exports.resolveCommentStatusColor = exports.resolveCommentStatus = exports.renderInitials = exports.renderEntryTitle = exports.getRelatedGroups = exports.handleAPIError = exports.getMessage = exports.getUrl = exports.getApiURL = exports.axiosInstance = void 0;
7
+ var axiosInstance_1 = require("./axiosInstance");
8
+ Object.defineProperty(exports, "axiosInstance", { enumerable: true, get: function () { return __importDefault(axiosInstance_1).default; } });
9
+ var getApiUrl_1 = require("./getApiUrl");
10
+ Object.defineProperty(exports, "getApiURL", { enumerable: true, get: function () { return __importDefault(getApiUrl_1).default; } });
11
+ var getUrl_1 = require("./getUrl");
12
+ Object.defineProperty(exports, "getUrl", { enumerable: true, get: function () { return __importDefault(getUrl_1).default; } });
13
+ var getMessage_1 = require("./getMessage");
14
+ Object.defineProperty(exports, "getMessage", { enumerable: true, get: function () { return __importDefault(getMessage_1).default; } });
15
+ var handleAPIError_1 = require("./handleAPIError");
16
+ Object.defineProperty(exports, "handleAPIError", { enumerable: true, get: function () { return __importDefault(handleAPIError_1).default; } });
17
+ var getRelatedGroups_1 = require("./getRelatedGroups");
18
+ Object.defineProperty(exports, "getRelatedGroups", { enumerable: true, get: function () { return __importDefault(getRelatedGroups_1).default; } });
19
+ var renderEntryTitle_1 = require("./renderEntryTitle");
20
+ Object.defineProperty(exports, "renderEntryTitle", { enumerable: true, get: function () { return __importDefault(renderEntryTitle_1).default; } });
21
+ var renderInitials_1 = require("./renderInitials");
22
+ Object.defineProperty(exports, "renderInitials", { enumerable: true, get: function () { return __importDefault(renderInitials_1).default; } });
23
+ var resolveCommentStatus_1 = require("./resolveCommentStatus");
24
+ Object.defineProperty(exports, "resolveCommentStatus", { enumerable: true, get: function () { return __importDefault(resolveCommentStatus_1).default; } });
25
+ var resolveCommentStatusColor_1 = require("./resolveCommentStatusColor");
26
+ Object.defineProperty(exports, "resolveCommentStatusColor", { enumerable: true, get: function () { return __importDefault(resolveCommentStatusColor_1).default; } });
27
+ var parseRegExp_1 = require("./parseRegExp");
28
+ Object.defineProperty(exports, "parseRegExp", { enumerable: true, get: function () { return __importDefault(parseRegExp_1).default; } });
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ declare const parseRegExp: (regexpString: string) => {
2
+ value: string;
3
+ flags: string;
4
+ };
5
+ export default parseRegExp;
6
+ //# sourceMappingURL=parseRegExp.d.ts.map