strapi-plugin-comments 2.0.8 → 2.0.11
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.
- package/README.md +45 -11
- package/admin/src/translations/en.json +1 -0
- package/admin/src/translations/fr.json +132 -1
- package/admin/src/translations/pt-BR.json +132 -0
- package/build/README.md +818 -0
- package/build/admin/src/components/ActionButton/styles.d.ts +2 -0
- package/build/admin/src/components/ActionButton/styles.js +17 -0
- package/build/admin/src/components/ConfirmationDialog/index.d.ts +26 -0
- package/build/admin/src/components/ConfirmationDialog/index.js +104 -0
- package/build/admin/src/components/DiscussionStatus/index.d.ts +9 -0
- package/build/admin/src/components/DiscussionStatus/index.js +38 -0
- package/build/admin/src/components/DiscussionThread/index.d.ts +16 -0
- package/build/admin/src/components/DiscussionThread/index.js +99 -0
- package/build/admin/src/components/DiscussionThreadItem/index.d.ts +9 -0
- package/build/admin/src/components/DiscussionThreadItem/index.js +72 -0
- package/build/admin/src/components/DiscussionThreadItem/styles.d.ts +4 -0
- package/build/admin/src/components/DiscussionThreadItem/styles.js +27 -0
- package/build/admin/src/components/DiscussionThreadItemActions/index.d.ts +19 -0
- package/build/admin/src/components/DiscussionThreadItemActions/index.js +414 -0
- package/build/admin/src/components/DiscussionThreadItemActions/styles.d.ts +2 -0
- package/build/admin/src/components/DiscussionThreadItemActions/styles.js +17 -0
- package/build/admin/src/components/DiscussionThreadItemApprovalFlowActions/index.d.ts +17 -0
- package/build/admin/src/components/DiscussionThreadItemApprovalFlowActions/index.js +103 -0
- package/build/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.d.ts +2 -0
- package/build/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.js +15 -0
- package/build/admin/src/components/DiscussionThreadItemFooter/index.d.ts +16 -0
- package/build/admin/src/components/DiscussionThreadItemFooter/index.js +73 -0
- package/build/admin/src/components/DiscussionThreadItemFooter/styles.d.ts +3 -0
- package/build/admin/src/components/DiscussionThreadItemFooter/styles.js +25 -0
- package/build/admin/src/components/DiscussionThreadItemReviewAction/index.d.ts +30 -0
- package/build/admin/src/components/DiscussionThreadItemReviewAction/index.js +233 -0
- package/build/admin/src/components/FormSwitch/index.d.ts +11 -0
- package/build/admin/src/components/FormSwitch/index.js +39 -0
- package/build/admin/src/components/FormSwitch/styles.d.ts +2 -0
- package/build/admin/src/components/FormSwitch/styles.js +16 -0
- package/build/admin/src/components/IconButton/styles.d.ts +2 -0
- package/build/admin/src/components/IconButton/styles.js +27 -0
- package/build/admin/src/components/Initializer/index.d.ts +3 -0
- package/build/admin/src/components/Initializer/index.js +14 -0
- package/build/admin/src/components/LoadingIndicatorOverlay/index.d.ts +3 -0
- package/build/admin/src/components/LoadingIndicatorOverlay/index.js +18 -0
- package/build/admin/src/components/LoadingIndicatorOverlay/styles.d.ts +3 -0
- package/build/admin/src/components/LoadingIndicatorOverlay/styles.js +32 -0
- package/build/admin/src/components/Nav/index.d.ts +7 -0
- package/build/admin/src/components/Nav/index.js +72 -0
- package/build/admin/src/components/PluginIcon/index.d.ts +3 -0
- package/build/admin/src/components/PluginIcon/index.js +13 -0
- package/build/admin/src/components/ReportsReviewModal/index.d.ts +21 -0
- package/build/admin/src/components/ReportsReviewModal/index.js +72 -0
- package/build/admin/src/components/ReportsReviewTable/index.d.ts +21 -0
- package/build/admin/src/components/ReportsReviewTable/index.js +321 -0
- package/build/admin/src/components/StatusBadge/index.d.ts +11 -0
- package/build/admin/src/components/StatusBadge/index.js +22 -0
- package/build/admin/src/components/StatusBadge/styles.d.ts +2 -0
- package/build/admin/src/components/StatusBadge/styles.js +25 -0
- package/build/admin/src/components/TableFilters/index.d.ts +10 -0
- package/build/admin/src/components/TableFilters/index.js +109 -0
- package/build/admin/src/components/TablePagination/index.d.ts +15 -0
- package/build/admin/src/components/TablePagination/index.js +45 -0
- package/build/admin/src/components/icons/comments.d.ts +9 -0
- package/build/admin/src/components/icons/comments.js +23 -0
- package/build/admin/src/components/icons/index.d.ts +6 -0
- package/build/admin/src/components/icons/index.js +21 -0
- package/build/admin/src/components/icons/lock.d.ts +11 -0
- package/build/admin/src/components/icons/lock.js +29 -0
- package/build/admin/src/components/icons/review.d.ts +11 -0
- package/build/admin/src/components/icons/review.js +31 -0
- package/build/admin/src/components/icons/unlock.d.ts +11 -0
- package/build/admin/src/components/icons/unlock.js +29 -0
- package/build/admin/src/hooks/useConfig.d.ts +8 -0
- package/build/admin/src/hooks/useConfig.js +52 -0
- package/build/admin/src/index.d.ts +7 -0
- package/build/admin/src/index.js +137 -0
- package/build/admin/src/pages/App/index.d.ts +4 -0
- package/build/admin/src/pages/App/index.js +90 -0
- package/build/admin/src/pages/App/reducer/actions.d.ts +8 -0
- package/build/admin/src/pages/App/reducer/actions.js +12 -0
- package/build/admin/src/pages/App/reducer/constants.d.ts +4 -0
- package/build/admin/src/pages/App/reducer/constants.js +7 -0
- package/build/admin/src/pages/App/reducer/index.d.ts +14 -0
- package/build/admin/src/pages/App/reducer/index.js +31 -0
- package/build/admin/src/pages/App/reducer/init.d.ts +3 -0
- package/build/admin/src/pages/App/reducer/init.js +9 -0
- package/build/admin/src/pages/App/reducer/selectors.d.ts +6 -0
- package/build/admin/src/pages/App/reducer/selectors.js +20 -0
- package/build/admin/src/pages/App/utils/api.d.ts +2 -0
- package/build/admin/src/pages/App/utils/api.js +16 -0
- package/build/admin/src/pages/ComingSoonPage/index.d.ts +3 -0
- package/build/admin/src/pages/ComingSoonPage/index.js +78 -0
- package/build/admin/src/pages/Details/components/DetailsEntity/index.d.ts +18 -0
- package/build/admin/src/pages/Details/components/DetailsEntity/index.js +132 -0
- package/build/admin/src/pages/Details/components/DetailsFilters/index.d.ts +12 -0
- package/build/admin/src/pages/Details/components/DetailsFilters/index.js +48 -0
- package/build/admin/src/pages/Details/components/DetailsFilters/styles.d.ts +2 -0
- package/build/admin/src/pages/Details/components/DetailsFilters/styles.js +16 -0
- package/build/admin/src/pages/Details/index.d.ts +4 -0
- package/build/admin/src/pages/Details/index.js +216 -0
- package/build/admin/src/pages/Discover/components/DiscoverTableRow/index.d.ts +20 -0
- package/build/admin/src/pages/Discover/components/DiscoverTableRow/index.js +344 -0
- package/build/admin/src/pages/Discover/components/DiscoverTableRow/styles.d.ts +2 -0
- package/build/admin/src/pages/Discover/components/DiscoverTableRow/styles.js +16 -0
- package/build/admin/src/pages/Discover/index.d.ts +4 -0
- package/build/admin/src/pages/Discover/index.js +332 -0
- package/build/admin/src/pages/Discover/utils/api.d.ts +2 -0
- package/build/admin/src/pages/Discover/utils/api.js +23 -0
- package/build/admin/src/pages/Discover/utils/filtersSchema.d.ts +11 -0
- package/build/admin/src/pages/Discover/utils/filtersSchema.js +11 -0
- package/build/admin/src/pages/Settings/components/RestartAlert/styles.d.ts +2 -0
- package/build/admin/src/pages/Settings/components/RestartAlert/styles.js +16 -0
- package/build/admin/src/pages/Settings/index.d.ts +3 -0
- package/build/admin/src/pages/Settings/index.js +712 -0
- package/build/admin/src/pages/Settings/utils/api.d.ts +7 -0
- package/build/admin/src/pages/Settings/utils/api.js +80 -0
- package/build/admin/src/pages/utils/api.d.ts +12 -0
- package/build/admin/src/pages/utils/api.js +83 -0
- package/build/admin/src/permissions.d.ts +28 -0
- package/build/admin/src/permissions.js +65 -0
- package/build/admin/src/pluginId.d.ts +2 -0
- package/build/admin/src/pluginId.js +50 -0
- package/build/admin/src/reducers.d.ts +12 -0
- package/build/admin/src/reducers.js +14 -0
- package/build/admin/src/translations/en.json +132 -0
- package/build/admin/src/translations/fr.json +1 -0
- package/build/admin/src/translations/pt-BR.json +132 -0
- package/build/admin/src/utils/axiosInstance.d.ts +3 -0
- package/build/admin/src/utils/axiosInstance.js +37 -0
- package/build/admin/src/utils/constants.d.ts +25 -0
- package/build/admin/src/utils/constants.js +30 -0
- package/build/admin/src/utils/getApiUrl.d.ts +3 -0
- package/build/admin/src/utils/getApiUrl.js +6 -0
- package/build/admin/src/utils/getMessage.d.ts +4 -0
- package/build/admin/src/utils/getMessage.js +25 -0
- package/build/admin/src/utils/getRelatedGroups.d.ts +4 -0
- package/build/admin/src/utils/getRelatedGroups.js +6 -0
- package/build/admin/src/utils/getUrl.d.ts +3 -0
- package/build/admin/src/utils/getUrl.js +6 -0
- package/build/admin/src/utils/handleAPIError.d.ts +4 -0
- package/build/admin/src/utils/handleAPIError.js +20 -0
- package/build/admin/src/utils/index.d.ts +12 -0
- package/build/admin/src/utils/index.js +97 -0
- package/build/admin/src/utils/parseRegExp.d.ts +6 -0
- package/build/admin/src/utils/parseRegExp.js +11 -0
- package/build/admin/src/utils/renderEntryTitle.d.ts +4 -0
- package/build/admin/src/utils/renderEntryTitle.js +16 -0
- package/build/admin/src/utils/renderInitials.d.ts +3 -0
- package/build/admin/src/utils/renderInitials.js +11 -0
- package/build/admin/src/utils/resolveCommentStatus.d.ts +4 -0
- package/build/admin/src/utils/resolveCommentStatus.js +32 -0
- package/build/admin/src/utils/resolveCommentStatusColor.d.ts +4 -0
- package/build/admin/src/utils/resolveCommentStatusColor.js +22 -0
- package/build/content-types/comment.d.ts +91 -0
- package/build/content-types/comment.js +92 -0
- package/build/content-types/index.d.ts +143 -0
- package/build/content-types/index.js +18 -0
- package/build/content-types/report.d.ts +48 -0
- package/build/content-types/report.js +49 -0
- package/build/package.json +94 -0
- package/build/permissions.d.ts +18 -0
- package/build/permissions.js +18 -0
- package/build/server/bootstrap.d.ts +4 -0
- package/build/server/bootstrap.js +65 -0
- package/build/server/config/index.d.ts +4 -0
- package/build/server/config/index.js +19 -0
- package/build/server/controllers/admin.d.ts +4 -0
- package/build/server/controllers/admin.js +124 -0
- package/build/server/controllers/client.d.ts +4 -0
- package/build/server/controllers/client.js +111 -0
- package/build/server/controllers/index.d.ts +6 -0
- package/build/server/controllers/index.js +15 -0
- package/build/server/controllers/utils/functions.d.ts +7 -0
- package/build/server/controllers/utils/functions.js +24 -0
- package/build/server/controllers/utils/parsers.d.ts +15 -0
- package/build/server/controllers/utils/parsers.js +25 -0
- package/build/server/destroy.d.ts +3 -0
- package/build/server/destroy.js +3 -0
- package/build/server/graphql/index.d.ts +4 -0
- package/build/server/graphql/index.js +37 -0
- package/build/server/graphql/mutations/createAbuseReport.d.ts +11 -0
- package/build/server/graphql/mutations/createAbuseReport.js +27 -0
- package/build/server/graphql/mutations/createComment.d.ts +14 -0
- package/build/server/graphql/mutations/createComment.js +26 -0
- package/build/server/graphql/mutations/index.d.ts +4 -0
- package/build/server/graphql/mutations/index.js +28 -0
- package/build/server/graphql/mutations/removeComment.d.ts +11 -0
- package/build/server/graphql/mutations/removeComment.js +27 -0
- package/build/server/graphql/mutations/updateComment.d.ts +11 -0
- package/build/server/graphql/mutations/updateComment.js +27 -0
- package/build/server/graphql/queries/findAllFlat.d.ts +19 -0
- package/build/server/graphql/queries/findAllFlat.js +47 -0
- package/build/server/graphql/queries/findAllInHierarchy.d.ts +18 -0
- package/build/server/graphql/queries/findAllInHierarchy.js +38 -0
- package/build/server/graphql/queries/index.d.ts +4 -0
- package/build/server/graphql/queries/index.js +24 -0
- package/build/server/graphql/resolvers-config.d.ts +23 -0
- package/build/server/graphql/resolvers-config.js +13 -0
- package/build/server/graphql/types/comment-author.d.ts +4 -0
- package/build/server/graphql/types/comment-author.js +12 -0
- package/build/server/graphql/types/comment-nested.d.ts +4 -0
- package/build/server/graphql/types/comment-nested.js +19 -0
- package/build/server/graphql/types/comment.d.ts +4 -0
- package/build/server/graphql/types/comment.js +18 -0
- package/build/server/graphql/types/create-comment-author.d.ts +4 -0
- package/build/server/graphql/types/create-comment-author.js +12 -0
- package/build/server/graphql/types/create-comment.d.ts +4 -0
- package/build/server/graphql/types/create-comment.js +12 -0
- package/build/server/graphql/types/create-report.d.ts +4 -0
- package/build/server/graphql/types/create-report.js +12 -0
- package/build/server/graphql/types/id.d.ts +4 -0
- package/build/server/graphql/types/id.js +26 -0
- package/build/server/graphql/types/identify-comment-author.d.ts +4 -0
- package/build/server/graphql/types/identify-comment-author.js +9 -0
- package/build/server/graphql/types/index.d.ts +4 -0
- package/build/server/graphql/types/index.js +44 -0
- package/build/server/graphql/types/remove-comment.d.ts +4 -0
- package/build/server/graphql/types/remove-comment.js +11 -0
- package/build/server/graphql/types/report-reason.d.ts +4 -0
- package/build/server/graphql/types/report-reason.js +12 -0
- package/build/server/graphql/types/report.d.ts +4 -0
- package/build/server/graphql/types/report.js +14 -0
- package/build/server/graphql/types/response-find-all.d.ts +4 -0
- package/build/server/graphql/types/response-find-all.js +10 -0
- package/build/server/graphql/types/response-meta.d.ts +4 -0
- package/build/server/graphql/types/response-meta.js +9 -0
- package/build/server/graphql/types/response-pagination.d.ts +4 -0
- package/build/server/graphql/types/response-pagination.js +14 -0
- package/build/server/graphql/types/update-comment.d.ts +4 -0
- package/build/server/graphql/types/update-comment.js +12 -0
- package/build/server/index.d.ts +26 -0
- package/build/server/index.js +25 -0
- package/build/server/register.d.ts +3 -0
- package/build/server/register.js +3 -0
- package/build/server/routes/admin.d.ts +4 -0
- package/build/server/routes/admin.js +118 -0
- package/build/server/routes/client.d.ts +4 -0
- package/build/server/routes/client.js +54 -0
- package/build/server/routes/index.d.ts +11 -0
- package/build/server/routes/index.js +21 -0
- package/build/server/services/admin.d.ts +5 -0
- package/build/server/services/admin.js +296 -0
- package/build/server/services/client.d.ts +5 -0
- package/build/server/services/client.js +247 -0
- package/build/server/services/common.d.ts +5 -0
- package/build/server/services/common.js +266 -0
- package/build/server/services/graphql.d.ts +5 -0
- package/build/server/services/graphql.js +136 -0
- package/build/server/services/index.d.ts +8 -0
- package/build/server/services/index.js +16 -0
- package/build/server/services/utils/functions.d.ts +13 -0
- package/build/server/services/utils/functions.js +141 -0
- package/build/server/utils/constants.d.ts +9 -0
- package/build/server/utils/constants.js +23 -0
- package/build/server/utils/error.d.ts +23 -0
- package/build/server/utils/error.js +29 -0
- package/build/server/utils/functions.d.ts +14 -0
- package/build/server/utils/functions.js +50 -0
- package/build/strapi-admin.d.ts +3 -0
- package/build/strapi-admin.js +10 -0
- package/build/strapi-server.d.ts +177 -0
- package/build/strapi-server.js +46 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/types/contentTypes.d.ts +46 -0
- package/build/types/contentTypes.js +3 -0
- package/package.json +3 -3
- package/server/controllers/client.js +0 -3
- package/server/graphql/queries/findAllFlat.js +6 -2
- package/server/services/common.js +2 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const DiscussionThreadItemReviewAction: {
|
|
2
|
+
({ item, isAnyActionLoading: isAnyActionLoading, queryToInvalidate, areBlockButtonsDisabled, allowedActions: { canModerate, canAccessReports, canReviewReports }, blockItemMutation, blockItemThreadMutation, onBlockButtonsStateChange, onBlockActionClick, }: {
|
|
3
|
+
item: any;
|
|
4
|
+
isAnyActionLoading: any;
|
|
5
|
+
queryToInvalidate: any;
|
|
6
|
+
areBlockButtonsDisabled: any;
|
|
7
|
+
allowedActions: {
|
|
8
|
+
canModerate: any;
|
|
9
|
+
canAccessReports: any;
|
|
10
|
+
canReviewReports: any;
|
|
11
|
+
};
|
|
12
|
+
blockItemMutation: any;
|
|
13
|
+
blockItemThreadMutation: any;
|
|
14
|
+
onBlockButtonsStateChange: any;
|
|
15
|
+
onBlockActionClick: any;
|
|
16
|
+
}): any;
|
|
17
|
+
propTypes: {
|
|
18
|
+
item: any;
|
|
19
|
+
isLoading: any;
|
|
20
|
+
queryToInvalidate: any;
|
|
21
|
+
areBlockButtonsDisabled: any;
|
|
22
|
+
allowedActions: any;
|
|
23
|
+
blockItemMutation: any;
|
|
24
|
+
blockItemThreadMutation: any;
|
|
25
|
+
onBlockButtonsStateChange: any;
|
|
26
|
+
onBlockActionClick: any;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default DiscussionThreadItemReviewAction;
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (
|
|
9
|
+
!desc ||
|
|
10
|
+
("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
|
|
11
|
+
) {
|
|
12
|
+
desc = {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return m[k];
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}
|
|
21
|
+
: function (o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
});
|
|
25
|
+
var __setModuleDefault =
|
|
26
|
+
(this && this.__setModuleDefault) ||
|
|
27
|
+
(Object.create
|
|
28
|
+
? function (o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}
|
|
31
|
+
: function (o, v) {
|
|
32
|
+
o["default"] = v;
|
|
33
|
+
});
|
|
34
|
+
var __importStar =
|
|
35
|
+
(this && this.__importStar) ||
|
|
36
|
+
function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null)
|
|
40
|
+
for (var k in mod)
|
|
41
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
42
|
+
__createBinding(result, mod, k);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
var __importDefault =
|
|
47
|
+
(this && this.__importDefault) ||
|
|
48
|
+
function (mod) {
|
|
49
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
const react_1 = __importStar(require("react"));
|
|
53
|
+
const prop_types_1 = __importDefault(require("prop-types"));
|
|
54
|
+
const react_query_1 = require("react-query");
|
|
55
|
+
const lodash_1 = require("lodash");
|
|
56
|
+
const Button_1 = require("@strapi/design-system/Button");
|
|
57
|
+
const IconButton_1 = require("@strapi/design-system/IconButton");
|
|
58
|
+
const helper_plugin_1 = require("@strapi/helper-plugin");
|
|
59
|
+
const icons_1 = require("../icons");
|
|
60
|
+
const api_1 = require("../../pages/utils/api");
|
|
61
|
+
const utils_1 = require("../../utils");
|
|
62
|
+
const ReportsReviewTable_1 = __importDefault(require("../ReportsReviewTable"));
|
|
63
|
+
const ReportsReviewModal_1 = __importDefault(require("../ReportsReviewModal"));
|
|
64
|
+
const pluginId_1 = require("../../pluginId");
|
|
65
|
+
const DiscussionThreadItemReviewAction = ({
|
|
66
|
+
item,
|
|
67
|
+
isAnyActionLoading: isAnyActionLoading,
|
|
68
|
+
queryToInvalidate,
|
|
69
|
+
areBlockButtonsDisabled,
|
|
70
|
+
allowedActions: { canModerate, canAccessReports, canReviewReports },
|
|
71
|
+
blockItemMutation,
|
|
72
|
+
blockItemThreadMutation,
|
|
73
|
+
onBlockButtonsStateChange,
|
|
74
|
+
onBlockActionClick,
|
|
75
|
+
}) => {
|
|
76
|
+
const { reports } = item;
|
|
77
|
+
const [reportsReviewVisible, setReportsReviewVisible] = (0, react_1.useState)(
|
|
78
|
+
false
|
|
79
|
+
);
|
|
80
|
+
const toggleNotification = (0, helper_plugin_1.useNotification)();
|
|
81
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
82
|
+
const { unlockApp } = (0, helper_plugin_1.useOverlayBlocker)();
|
|
83
|
+
const onSuccess =
|
|
84
|
+
(message, stateAction = () => {}, indalidate = true) =>
|
|
85
|
+
async () => {
|
|
86
|
+
if (indalidate) {
|
|
87
|
+
await queryClient.invalidateQueries(queryToInvalidate);
|
|
88
|
+
}
|
|
89
|
+
toggleNotification({
|
|
90
|
+
type: "success",
|
|
91
|
+
message: `${pluginId_1.pluginId}.${message}`,
|
|
92
|
+
});
|
|
93
|
+
stateAction(false);
|
|
94
|
+
unlockApp();
|
|
95
|
+
};
|
|
96
|
+
const onError = (err) => {
|
|
97
|
+
(0, utils_1.handleAPIError)(err, toggleNotification);
|
|
98
|
+
};
|
|
99
|
+
const resolveReportMutation = (0, react_query_1.useMutation)(
|
|
100
|
+
api_1.resolveReport,
|
|
101
|
+
{
|
|
102
|
+
onSuccess: onSuccess(
|
|
103
|
+
"page.details.panel.discussion.warnings.reports.dialog.confirmation.success",
|
|
104
|
+
() => {},
|
|
105
|
+
false
|
|
106
|
+
),
|
|
107
|
+
onError,
|
|
108
|
+
refetchActive: false,
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
const handleBlockActionClick = () => setReportsReviewVisible(false);
|
|
112
|
+
const handleReportsReviewClick = () => {
|
|
113
|
+
if (canAccessReports) {
|
|
114
|
+
setReportsReviewVisible(true);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const handleBlockItemClick = async () => {
|
|
118
|
+
if (canModerate) {
|
|
119
|
+
await onBlockActionClick(blockItemMutation, handleBlockActionClick);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
const handleBlockItemThreadClick = async () => {
|
|
123
|
+
if (canModerate) {
|
|
124
|
+
await onBlockActionClick(blockItemThreadMutation, handleBlockActionClick);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const handleReportsReviewClose = async () => {
|
|
128
|
+
await queryClient.invalidateQueries(queryToInvalidate);
|
|
129
|
+
setReportsReviewVisible(false);
|
|
130
|
+
};
|
|
131
|
+
const isLoading = isAnyActionLoading && resolveReportMutation.isLoading;
|
|
132
|
+
const openReports = reports?.filter((_) => !_.resolved);
|
|
133
|
+
const hasReports = !(0, lodash_1.isEmpty)(openReports);
|
|
134
|
+
const reviewFlowEnabled =
|
|
135
|
+
canAccessReports && hasReports && !(item.blocked || item.blockedThread);
|
|
136
|
+
if (reviewFlowEnabled) {
|
|
137
|
+
return react_1.default.createElement(
|
|
138
|
+
react_1.default.Fragment,
|
|
139
|
+
null,
|
|
140
|
+
react_1.default.createElement(IconButton_1.IconButton, {
|
|
141
|
+
onClick: handleReportsReviewClick,
|
|
142
|
+
label: (0, utils_1.getMessage)("page.discover.table.reports.review"),
|
|
143
|
+
icon: react_1.default.createElement(icons_1.ReviewIcon, null),
|
|
144
|
+
}),
|
|
145
|
+
react_1.default.createElement(
|
|
146
|
+
ReportsReviewModal_1.default,
|
|
147
|
+
{
|
|
148
|
+
isVisible: reportsReviewVisible,
|
|
149
|
+
isActionAsync: isLoading,
|
|
150
|
+
allowedActions: { canModerate, canAccessReports, canReviewReports },
|
|
151
|
+
onClose: handleReportsReviewClose,
|
|
152
|
+
startActions: react_1.default.createElement(
|
|
153
|
+
Button_1.Button,
|
|
154
|
+
{ onClick: handleReportsReviewClose, variant: "tertiary" },
|
|
155
|
+
(0, utils_1.getMessage)(
|
|
156
|
+
"compontents.confirmation.dialog.button.cancel",
|
|
157
|
+
"Cancel"
|
|
158
|
+
)
|
|
159
|
+
),
|
|
160
|
+
endActions:
|
|
161
|
+
canModerate &&
|
|
162
|
+
react_1.default.createElement(
|
|
163
|
+
react_1.default.Fragment,
|
|
164
|
+
null,
|
|
165
|
+
react_1.default.createElement(
|
|
166
|
+
Button_1.Button,
|
|
167
|
+
{
|
|
168
|
+
onClick: handleBlockItemClick,
|
|
169
|
+
variant: "danger-light",
|
|
170
|
+
startIcon: react_1.default.createElement(
|
|
171
|
+
icons_1.LockIcon,
|
|
172
|
+
null
|
|
173
|
+
),
|
|
174
|
+
disabled: areBlockButtonsDisabled,
|
|
175
|
+
},
|
|
176
|
+
(0, utils_1.getMessage)(
|
|
177
|
+
`page.details.actions.comment.block`,
|
|
178
|
+
"Block comment"
|
|
179
|
+
)
|
|
180
|
+
),
|
|
181
|
+
item.gotThread &&
|
|
182
|
+
react_1.default.createElement(
|
|
183
|
+
Button_1.Button,
|
|
184
|
+
{
|
|
185
|
+
onClick: handleBlockItemThreadClick,
|
|
186
|
+
variant: "danger",
|
|
187
|
+
startIcon: react_1.default.createElement(
|
|
188
|
+
icons_1.LockIcon,
|
|
189
|
+
null
|
|
190
|
+
),
|
|
191
|
+
disabled: areBlockButtonsDisabled,
|
|
192
|
+
},
|
|
193
|
+
(0, utils_1.getMessage)(
|
|
194
|
+
`page.details.actions.thread.block`,
|
|
195
|
+
"Block thread"
|
|
196
|
+
)
|
|
197
|
+
)
|
|
198
|
+
),
|
|
199
|
+
item: item,
|
|
200
|
+
},
|
|
201
|
+
react_1.default.createElement(ReportsReviewTable_1.default, {
|
|
202
|
+
commentId: item.id,
|
|
203
|
+
items: (0, lodash_1.orderBy)(
|
|
204
|
+
reports,
|
|
205
|
+
["resolved", "createdAt"],
|
|
206
|
+
["DESC", "DESC"]
|
|
207
|
+
),
|
|
208
|
+
mutation: resolveReportMutation,
|
|
209
|
+
allowedActions: { canAccessReports, canReviewReports },
|
|
210
|
+
onBlockButtonsStateChange: onBlockButtonsStateChange,
|
|
211
|
+
})
|
|
212
|
+
)
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
return null;
|
|
216
|
+
};
|
|
217
|
+
DiscussionThreadItemReviewAction.propTypes = {
|
|
218
|
+
item: prop_types_1.default.object.isRequired,
|
|
219
|
+
isLoading: prop_types_1.default.bool,
|
|
220
|
+
queryToInvalidate: prop_types_1.default.string.isRequired,
|
|
221
|
+
areBlockButtonsDisabled: prop_types_1.default.bool,
|
|
222
|
+
allowedActions: prop_types_1.default.shape({
|
|
223
|
+
canModerate: prop_types_1.default.bool,
|
|
224
|
+
canAccessReports: prop_types_1.default.bool,
|
|
225
|
+
canReviewReports: prop_types_1.default.bool,
|
|
226
|
+
}),
|
|
227
|
+
blockItemMutation: prop_types_1.default.func.isRequired,
|
|
228
|
+
blockItemThreadMutation: prop_types_1.default.func.isRequired,
|
|
229
|
+
onBlockButtonsStateChange: prop_types_1.default.func.isRequired,
|
|
230
|
+
onBlockActionClick: prop_types_1.default.func.isRequired,
|
|
231
|
+
};
|
|
232
|
+
exports.default = DiscussionThreadItemReviewAction;
|
|
233
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const Stack_1 = require("@strapi/design-system/Stack");
|
|
10
|
+
const Typography_1 = require("@strapi/design-system/Typography");
|
|
11
|
+
const styles_1 = require("./styles");
|
|
12
|
+
const FormSwitch = ({ label, hint, ...props }) =>
|
|
13
|
+
react_1.default.createElement(
|
|
14
|
+
Stack_1.Stack,
|
|
15
|
+
{ size: 1 },
|
|
16
|
+
label &&
|
|
17
|
+
react_1.default.createElement(
|
|
18
|
+
Typography_1.Typography,
|
|
19
|
+
{
|
|
20
|
+
variant: "pi",
|
|
21
|
+
as: "label",
|
|
22
|
+
fontWeight: "bold",
|
|
23
|
+
textColor: "neutral800",
|
|
24
|
+
},
|
|
25
|
+
label
|
|
26
|
+
),
|
|
27
|
+
react_1.default.createElement(styles_1.StyledSwitch, {
|
|
28
|
+
label: label,
|
|
29
|
+
...props,
|
|
30
|
+
}),
|
|
31
|
+
hint &&
|
|
32
|
+
react_1.default.createElement(
|
|
33
|
+
Typography_1.Typography,
|
|
34
|
+
{ variant: "pi", as: "label", textColor: "neutral600" },
|
|
35
|
+
hint
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
exports.default = FormSwitch;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.StyledSwitch = void 0;
|
|
9
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
+
const Switch_1 = require("@strapi/design-system/Switch");
|
|
11
|
+
exports.StyledSwitch = (0, styled_components_1.default)(Switch_1.Switch)`
|
|
12
|
+
& > div > span {
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.IconButtonGroupStyled = void 0;
|
|
9
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
+
const IconButton_1 = require("@strapi/design-system/IconButton");
|
|
11
|
+
exports.IconButtonGroupStyled = (0, styled_components_1.default)(
|
|
12
|
+
IconButton_1.IconButtonGroup
|
|
13
|
+
)`
|
|
14
|
+
${({ isSingle }) =>
|
|
15
|
+
isSingle &&
|
|
16
|
+
`
|
|
17
|
+
span:first-child button {
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
}
|
|
20
|
+
`}
|
|
21
|
+
${({ withMargin }) =>
|
|
22
|
+
withMargin &&
|
|
23
|
+
`
|
|
24
|
+
margin-left: .5rem;
|
|
25
|
+
`}
|
|
26
|
+
`;
|
|
27
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const pluginId_1 = require("../../pluginId");
|
|
5
|
+
const Initializer = ({ setPlugin }) => {
|
|
6
|
+
const ref = (0, react_1.useRef)();
|
|
7
|
+
ref.current = setPlugin;
|
|
8
|
+
(0, react_1.useEffect)(() => {
|
|
9
|
+
ref.current(pluginId_1.pluginId);
|
|
10
|
+
}, []);
|
|
11
|
+
return null;
|
|
12
|
+
};
|
|
13
|
+
exports.default = Initializer;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const helper_plugin_1 = require("@strapi/helper-plugin");
|
|
10
|
+
const styles_1 = require("./styles");
|
|
11
|
+
const LoadingIndicatorOverlay = () =>
|
|
12
|
+
react_1.default.createElement(
|
|
13
|
+
styles_1.LoadingIndicatorOverlayWrapper,
|
|
14
|
+
null,
|
|
15
|
+
react_1.default.createElement(helper_plugin_1.LoadingIndicatorPage, null)
|
|
16
|
+
);
|
|
17
|
+
exports.default = LoadingIndicatorOverlay;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.LoadingIndicatorContainer = exports.LoadingIndicatorOverlayWrapper =
|
|
9
|
+
void 0;
|
|
10
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
11
|
+
const Box_1 = require("@strapi/design-system/Box");
|
|
12
|
+
exports.LoadingIndicatorOverlayWrapper = (0, styled_components_1.default)(
|
|
13
|
+
Box_1.Box
|
|
14
|
+
)`
|
|
15
|
+
height: 100% !important;
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
background: rgba(255, 255, 255, 0.7);
|
|
21
|
+
z-index: 1;
|
|
22
|
+
|
|
23
|
+
& > div {
|
|
24
|
+
height: 100% !important;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
exports.LoadingIndicatorContainer = (0, styled_components_1.default)(
|
|
28
|
+
(props) => props.as
|
|
29
|
+
)`
|
|
30
|
+
position: relative;
|
|
31
|
+
`;
|
|
32
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const SubNav_1 = require("@strapi/design-system/SubNav");
|
|
10
|
+
const icons_1 = require("@strapi/icons");
|
|
11
|
+
const getMessage_1 = __importDefault(require("../../utils/getMessage"));
|
|
12
|
+
const getUrl_1 = __importDefault(require("../../utils/getUrl"));
|
|
13
|
+
const Nav = ({ visible = false, hasNewComments, hasNewReports }) => {
|
|
14
|
+
if (!visible) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return react_1.default.createElement(
|
|
18
|
+
SubNav_1.SubNav,
|
|
19
|
+
{ ariaLabel: "Comments sub nav" },
|
|
20
|
+
react_1.default.createElement(SubNav_1.SubNavHeader, {
|
|
21
|
+
label: (0, getMessage_1.default)("plugin.name"),
|
|
22
|
+
}),
|
|
23
|
+
react_1.default.createElement(
|
|
24
|
+
SubNav_1.SubNavSections,
|
|
25
|
+
null,
|
|
26
|
+
react_1.default.createElement(
|
|
27
|
+
SubNav_1.SubNavLink,
|
|
28
|
+
{
|
|
29
|
+
to: (0, getUrl_1.default)("dashboard"),
|
|
30
|
+
withBullet: hasNewComments,
|
|
31
|
+
icon: react_1.default.createElement(icons_1.Apps, null),
|
|
32
|
+
},
|
|
33
|
+
(0, getMessage_1.default)("nav.item.updates")
|
|
34
|
+
),
|
|
35
|
+
react_1.default.createElement(
|
|
36
|
+
SubNav_1.SubNavSection,
|
|
37
|
+
{ label: (0, getMessage_1.default)("nav.header.moderation") },
|
|
38
|
+
react_1.default.createElement(
|
|
39
|
+
SubNav_1.SubNavLink,
|
|
40
|
+
{
|
|
41
|
+
to: (0, getUrl_1.default)("discover"),
|
|
42
|
+
icon: react_1.default.createElement(icons_1.Apps, null),
|
|
43
|
+
},
|
|
44
|
+
(0, getMessage_1.default)("nav.item.discover")
|
|
45
|
+
),
|
|
46
|
+
react_1.default.createElement(
|
|
47
|
+
SubNav_1.SubNavLink,
|
|
48
|
+
{
|
|
49
|
+
to: (0, getUrl_1.default)("reports"),
|
|
50
|
+
withBullet: hasNewReports,
|
|
51
|
+
icon: react_1.default.createElement(icons_1.Apps, null),
|
|
52
|
+
},
|
|
53
|
+
(0, getMessage_1.default)("nav.item.reports")
|
|
54
|
+
)
|
|
55
|
+
),
|
|
56
|
+
react_1.default.createElement(
|
|
57
|
+
SubNav_1.SubNavSection,
|
|
58
|
+
{ label: (0, getMessage_1.default)("nav.header.settings") },
|
|
59
|
+
react_1.default.createElement(
|
|
60
|
+
SubNav_1.SubNavLink,
|
|
61
|
+
{
|
|
62
|
+
to: (0, getUrl_1.default)("settings"),
|
|
63
|
+
icon: react_1.default.createElement(icons_1.Apps, null),
|
|
64
|
+
},
|
|
65
|
+
(0, getMessage_1.default)("nav.item.settings")
|
|
66
|
+
)
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
exports.default = Nav;
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const comments_1 = __importDefault(require("../icons/comments"));
|
|
10
|
+
const PluginIcon = () =>
|
|
11
|
+
react_1.default.createElement(comments_1.default, null);
|
|
12
|
+
exports.default = PluginIcon;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const ReportsReviewModal: {
|
|
2
|
+
({ isVisible, item, children, onClose, startActions, endActions, }: {
|
|
3
|
+
isVisible?: boolean | undefined;
|
|
4
|
+
item: any;
|
|
5
|
+
children: any;
|
|
6
|
+
onClose: any;
|
|
7
|
+
startActions: any;
|
|
8
|
+
endActions: any;
|
|
9
|
+
}): any;
|
|
10
|
+
propTypes: {
|
|
11
|
+
isVisible: any;
|
|
12
|
+
startActions: any;
|
|
13
|
+
endActions: any;
|
|
14
|
+
item: any;
|
|
15
|
+
children: any;
|
|
16
|
+
allowedActions: any;
|
|
17
|
+
onClose: any;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default ReportsReviewModal;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const prop_types_1 = __importDefault(require("prop-types"));
|
|
10
|
+
const ModalLayout_1 = require("@strapi/design-system/ModalLayout");
|
|
11
|
+
const Typography_1 = require("@strapi/design-system/Typography");
|
|
12
|
+
const utils_1 = require("../../utils");
|
|
13
|
+
const DiscussionThreadItem_1 = __importDefault(
|
|
14
|
+
require("../DiscussionThreadItem")
|
|
15
|
+
);
|
|
16
|
+
const ReportsReviewModal = ({
|
|
17
|
+
isVisible = false,
|
|
18
|
+
item,
|
|
19
|
+
children,
|
|
20
|
+
onClose,
|
|
21
|
+
startActions,
|
|
22
|
+
endActions,
|
|
23
|
+
}) =>
|
|
24
|
+
isVisible &&
|
|
25
|
+
react_1.default.createElement(
|
|
26
|
+
ModalLayout_1.ModalLayout,
|
|
27
|
+
{ onClose: onClose },
|
|
28
|
+
react_1.default.createElement(
|
|
29
|
+
ModalLayout_1.ModalHeader,
|
|
30
|
+
null,
|
|
31
|
+
react_1.default.createElement(
|
|
32
|
+
Typography_1.Typography,
|
|
33
|
+
{ fontWeight: "bold", textColor: "neutral800", as: "h2", id: "title" },
|
|
34
|
+
(0, utils_1.getMessage)(
|
|
35
|
+
"page.details.panel.discussion.warnings.reports.dialog.header",
|
|
36
|
+
"Open reports"
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
),
|
|
40
|
+
react_1.default.createElement(
|
|
41
|
+
ModalLayout_1.ModalBody,
|
|
42
|
+
null,
|
|
43
|
+
react_1.default.createElement(DiscussionThreadItem_1.default, {
|
|
44
|
+
as: "div",
|
|
45
|
+
...item,
|
|
46
|
+
root: true,
|
|
47
|
+
preview: true,
|
|
48
|
+
isSelected: true,
|
|
49
|
+
}),
|
|
50
|
+
children
|
|
51
|
+
),
|
|
52
|
+
react_1.default.createElement(ModalLayout_1.ModalFooter, {
|
|
53
|
+
variant: "tertiary",
|
|
54
|
+
startActions: startActions,
|
|
55
|
+
endActions: endActions,
|
|
56
|
+
})
|
|
57
|
+
);
|
|
58
|
+
ReportsReviewModal.propTypes = {
|
|
59
|
+
isVisible: prop_types_1.default.bool,
|
|
60
|
+
startActions: prop_types_1.default.array,
|
|
61
|
+
endActions: prop_types_1.default.array,
|
|
62
|
+
item: prop_types_1.default.object.isRequired,
|
|
63
|
+
children: prop_types_1.default.array.isRequired,
|
|
64
|
+
allowedActions: prop_types_1.default.shape({
|
|
65
|
+
canModerate: prop_types_1.default.bool,
|
|
66
|
+
canAccessReports: prop_types_1.default.bool,
|
|
67
|
+
canReviewReports: prop_types_1.default.bool,
|
|
68
|
+
}),
|
|
69
|
+
onClose: prop_types_1.default.func.isRequired,
|
|
70
|
+
};
|
|
71
|
+
exports.default = ReportsReviewModal;
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const ReportsReviewTable: {
|
|
2
|
+
({ commentId, items, mutation, allowedActions: { canAccessReports, canReviewReports }, onBlockButtonsStateChange, }: {
|
|
3
|
+
commentId: any;
|
|
4
|
+
items: any;
|
|
5
|
+
mutation: any;
|
|
6
|
+
allowedActions: {
|
|
7
|
+
canAccessReports: any;
|
|
8
|
+
canReviewReports: any;
|
|
9
|
+
};
|
|
10
|
+
onBlockButtonsStateChange: any;
|
|
11
|
+
}): any;
|
|
12
|
+
propTypes: {
|
|
13
|
+
commentId: any;
|
|
14
|
+
items: any;
|
|
15
|
+
mutation: any;
|
|
16
|
+
allowedActions: any;
|
|
17
|
+
onBlockButtonsStateChange: any;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default ReportsReviewTable;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|