strapi-plugin-comments 2.3.1 → 3.0.0-beta.0
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/LICENSE.md +7 -0
- package/README.md +21 -19
- package/dist/_chunks/en-D1Rj1A_i.js +195 -0
- package/{admin/src/translations/en.json → dist/_chunks/en-DZljqkLz.mjs} +17 -14
- package/dist/_chunks/fr-DbxNAr65.js +146 -0
- package/{admin/src/translations/fr.json → dist/_chunks/fr-oAh2cU0E.mjs} +15 -11
- package/dist/_chunks/index-B6Q4U8YQ.js +51665 -0
- package/dist/_chunks/index-BQERo8pN.mjs +8340 -0
- package/dist/_chunks/index-BVj8EXjI.js +8356 -0
- package/dist/_chunks/index-Bpbf7RON.mjs +51643 -0
- package/dist/_chunks/index-CTjupB9v.js +375 -0
- package/dist/_chunks/index-fAgatqD0.js +50888 -0
- package/dist/_chunks/index-fSb-gYwg.mjs +373 -0
- package/dist/_chunks/index-h-TB6Qu2.mjs +50873 -0
- package/{admin/src/translations/pl.json → dist/_chunks/pl-BUVUFx9r.mjs} +14 -11
- package/dist/_chunks/pl-CuTgrHph.js +195 -0
- package/dist/_chunks/pt-BR-2Z9CtgSm.js +145 -0
- package/{admin/src/translations/pt-BR.json → dist/_chunks/pt-BR-Bchhsf7B.mjs} +14 -11
- package/{admin/src/translations/ru.json → dist/_chunks/ru-BQ54P0xr.mjs} +17 -14
- package/dist/_chunks/ru-gtnRlbuP.js +195 -0
- package/{admin/src/translations/tr.json → dist/_chunks/tr-CkGcBRUv.mjs} +14 -11
- package/dist/_chunks/tr-Ucl3IKMX.js +193 -0
- package/{admin/src/translations/zh-Hans.json → dist/_chunks/zh-Hans-Buh0iPWA.mjs} +17 -14
- package/dist/_chunks/zh-Hans-Dhk3gIYb.js +195 -0
- package/dist/admin/index.js +4 -0
- package/dist/admin/index.mjs +5 -0
- package/dist/admin/src/api/client.d.ts +413 -0
- package/dist/admin/src/api/index.d.ts +1 -0
- package/dist/admin/src/api/schemas.d.ts +3463 -0
- package/dist/admin/src/components/ActionButton/index.d.ts +4 -0
- package/dist/admin/src/components/ApproveFlow/index.d.ts +7 -0
- package/dist/admin/src/components/CommentReportStatusBadge/index.d.ts +4 -0
- package/dist/admin/src/components/CommentRow/index.d.ts +7 -0
- package/dist/admin/src/components/CommentStatusBadge/index.d.ts +7 -0
- package/dist/admin/src/components/ConfirmationDialog/index.d.ts +14 -0
- package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemActions.d.ts +3 -0
- package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +4 -0
- package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +6 -0
- package/dist/admin/src/components/DiscussionThreadItem/props.d.ts +12 -0
- package/dist/admin/src/components/IconButtonGroup/index.d.ts +5 -0
- package/dist/admin/src/components/LoadingIndicatorOverlay/index.d.ts +1 -0
- package/dist/admin/src/components/ModeratorResponseModal/index.d.ts +9 -0
- package/dist/admin/src/components/PluginIcon/index.d.ts +7 -0
- package/dist/admin/src/components/RenderIf/index.d.ts +7 -0
- package/dist/admin/src/components/ReportReasonBadge/index.d.ts +3 -0
- package/dist/admin/src/components/ReportStatusBadge/index.d.ts +5 -0
- package/dist/admin/src/components/ReportsTableRow/BlockMenu.d.ts +8 -0
- package/dist/admin/src/components/ReportsTableRow/CommentReviewModal.d.ts +7 -0
- package/dist/admin/src/components/ReportsTableRow/ReportsActions.d.ts +7 -0
- package/dist/admin/src/components/ReportsTableRow/index.d.ts +9 -0
- package/dist/admin/src/components/ReviewFlow/ReportReviewTable.d.ts +13 -0
- package/dist/admin/src/components/ReviewFlow/index.d.ts +7 -0
- package/dist/admin/src/components/SideNav/index.d.ts +1 -0
- package/dist/admin/src/components/StatusBadge/index.d.ts +3 -0
- package/dist/admin/src/components/UserAvatar/AdminAvatar.d.ts +2 -0
- package/dist/admin/src/components/UserAvatar/index.d.ts +8 -0
- package/{admin → dist/admin}/src/components/Wysiwyg/Editor.d.ts +2 -14
- package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +12 -0
- package/{admin → dist/admin}/src/components/Wysiwyg/PreviewWysiwyg.d.ts +1 -2
- package/dist/admin/src/components/Wysiwyg/WysiwygFooter.d.ts +6 -0
- package/{admin → dist/admin}/src/components/Wysiwyg/WysiwygNav.d.ts +4 -3
- package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +5 -0
- package/dist/admin/src/components/Wysiwyg/index.d.ts +13 -0
- package/{admin → dist/admin}/src/components/Wysiwyg/utils/continueList.d.ts +1 -4
- package/{admin → dist/admin}/src/components/Wysiwyg/utils/mdRenderer.d.ts +0 -1
- package/dist/admin/src/components/Wysiwyg/utils/urls.d.ts +2 -0
- package/{admin → dist/admin}/src/components/Wysiwyg/utils/utils.d.ts +0 -1
- package/{admin → dist/admin}/src/components/icons/comments.d.ts +1 -2
- package/dist/admin/src/components/icons/index.d.ts +2 -0
- package/dist/admin/src/components/icons/lock.d.ts +8 -0
- package/dist/admin/src/components/icons/review.d.ts +7 -0
- package/dist/admin/src/components/icons/strapiIcons.d.ts +1 -0
- package/dist/admin/src/components/icons/unlock.d.ts +8 -0
- package/dist/admin/src/contexts/UserContext.d.ts +23 -0
- package/dist/admin/src/hooks/useAPI.d.ts +430 -0
- package/dist/admin/src/hooks/useCommentMutations.d.ts +72 -0
- package/dist/admin/src/hooks/useCommentsAll.d.ts +59 -0
- package/dist/admin/src/hooks/useConfig.d.ts +28 -0
- package/dist/admin/src/hooks/useElementOnScreen.d.ts +2 -0
- package/dist/admin/src/hooks/usePermissions.d.ts +9 -0
- package/dist/admin/src/hooks/useReports.d.ts +60 -0
- package/dist/admin/src/hooks/useResizeObserver.d.ts +2 -0
- package/dist/admin/src/hooks/useUserContext.d.ts +21 -0
- package/dist/admin/src/index.d.ts +10 -0
- package/dist/admin/src/pages/App/index.d.ts +2 -0
- package/dist/admin/src/pages/Details/DetailsEntry.d.ts +11 -0
- package/dist/admin/src/pages/Details/DiscussionThread.d.ts +11 -0
- package/dist/admin/src/pages/Details/ModeratorResponse.d.ts +7 -0
- package/dist/admin/src/pages/Details/index.d.ts +5 -0
- package/dist/admin/src/pages/Discover/index.d.ts +5 -0
- package/dist/admin/src/pages/Reports/index.d.ts +5 -0
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +70 -0
- package/dist/admin/src/pages/Settings/index.d.ts +2 -0
- package/{admin → dist/admin}/src/permissions.d.ts +0 -1
- package/{admin → dist/admin}/src/pluginId.d.ts +0 -1
- package/dist/admin/src/providers/CommonProviders/index.d.ts +4 -0
- package/dist/admin/src/store/settings.store.d.ts +7 -0
- package/dist/admin/src/translations/en.d.ts +194 -0
- package/dist/admin/src/translations/fr.d.ts +143 -0
- package/dist/admin/src/translations/index.d.ts +11 -0
- package/dist/admin/src/translations/pl.d.ts +193 -0
- package/dist/admin/src/translations/pt-BR.d.ts +143 -0
- package/dist/admin/src/translations/ru.d.ts +193 -0
- package/dist/admin/src/translations/tr.d.ts +191 -0
- package/dist/admin/src/translations/zh-Hans.d.ts +193 -0
- package/dist/admin/src/types/index.d.ts +5 -0
- package/dist/admin/src/utils/constants.d.ts +28 -0
- package/{admin → dist/admin}/src/utils/errors.d.ts +0 -1
- package/{admin → dist/admin}/src/utils/functions.d.ts +0 -1
- package/{admin → dist/admin}/src/utils/getApiUrl.d.ts +0 -1
- package/dist/admin/src/utils/getMessage.d.ts +2 -0
- package/{admin → dist/admin}/src/utils/getRelatedGroups.d.ts +0 -1
- package/{admin → dist/admin}/src/utils/getUrl.d.ts +0 -1
- package/dist/admin/src/utils/handleAPIError.d.ts +2 -0
- package/{admin → dist/admin}/src/utils/index.d.ts +0 -2
- package/{admin → dist/admin}/src/utils/parseRegExp.d.ts +0 -1
- package/dist/admin/src/utils/renderEntryTitle.d.ts +2 -0
- package/{admin → dist/admin}/src/utils/renderInitials.d.ts +0 -1
- package/dist/admin/src/utils/resolveCommentStatus.d.ts +7 -0
- package/dist/admin/src/utils/resolveCommentStatusColor.d.ts +3 -0
- package/dist/admin/src/utils/resolveReportStatus.d.ts +4 -0
- package/dist/admin/src/utils/resolveReportStatusColor.d.ts +3 -0
- package/dist/assets/configuration.png +0 -0
- package/dist/assets/logo.png +0 -0
- package/dist/assets/marketplace.png +0 -0
- package/dist/assets/preview.png +0 -0
- package/dist/server/index.js +8121 -0
- package/dist/server/index.mjs +8122 -0
- package/dist/server/src/@types-v5/controllers.d.ts +17 -0
- package/dist/server/src/@types-v5/index.d.ts +5 -0
- package/dist/server/src/@types-v5/repositories.d.ts +28 -0
- package/dist/server/src/@types-v5/routes.d.ts +18 -0
- package/{types/contentTypes.d.ts → dist/server/src/@types-v5/utils.d.ts} +23 -6
- package/dist/server/src/bootstrap.d.ts +3 -0
- package/dist/server/src/config/index.d.ts +101 -0
- package/dist/server/src/const/REGEX.d.ts +19 -0
- package/dist/server/src/const/REPORT_REASON.d.ts +5 -0
- package/dist/server/src/const/index.d.ts +3 -0
- package/dist/server/src/content-types/comments/index.d.ts +98 -0
- package/{content-types/comment.d.ts → dist/server/src/content-types/comments/schema.d.ts} +3 -1
- package/{content-types → dist/server/src/content-types}/index.d.ts +14 -8
- package/dist/server/src/content-types/report/index.d.ts +50 -0
- package/{content-types/report.d.ts → dist/server/src/content-types/report/schema.d.ts} +4 -3
- package/dist/server/src/controllers/admin.controller.d.ts +964 -0
- package/dist/server/src/controllers/client.controller.d.ts +839 -0
- package/dist/server/src/controllers/index.d.ts +2641 -0
- package/dist/server/src/controllers/settings.controller.d.ts +123 -0
- package/dist/server/src/controllers/utils/parsers.d.ts +1 -0
- package/dist/server/src/index.d.ts +9448 -0
- package/{permissions.d.ts → dist/server/src/permissions.d.ts} +2 -4
- package/{server → dist/server/src}/register/custom-fields/comments.d.ts +0 -1
- package/dist/server/src/register/custom-fields/index.d.ts +2 -0
- package/{server → dist/server/src}/register/index.d.ts +1 -2
- package/dist/server/src/repositories/comment.repository.d.ts +13 -0
- package/dist/server/src/repositories/index.d.ts +5 -0
- package/dist/server/src/repositories/report.comment.repository.d.ts +41 -0
- package/dist/server/src/repositories/store.repository.d.ts +106 -0
- package/dist/server/src/repositories/utils.d.ts +11 -0
- package/dist/server/src/routes/admin.routes.d.ts +3 -0
- package/dist/server/src/routes/client.routes.d.ts +3 -0
- package/dist/server/src/routes/index.d.ts +11 -0
- package/dist/server/src/services/admin/admin.service.d.ts +2570 -0
- package/dist/server/src/services/admin/utils.d.ts +72 -0
- package/dist/server/src/services/client.service.d.ts +2056 -0
- package/dist/server/src/services/common.service.d.ts +523 -0
- package/dist/server/src/services/index.d.ts +6606 -0
- package/dist/server/src/services/settings.service.d.ts +93 -0
- package/dist/server/src/services/utils/functions.d.ts +12 -0
- package/dist/server/src/utils/Either.d.ts +16 -0
- package/dist/server/src/utils/PluginError.d.ts +11 -0
- package/dist/server/src/utils/constants.d.ts +25 -0
- package/{server → dist/server/src}/utils/error.d.ts +0 -1
- package/dist/server/src/utils/getConfig.d.ts +3 -0
- package/dist/server/src/utils/getPluginService.d.ts +3 -0
- package/dist/server/src/utils/throwError.d.ts +3 -0
- package/dist/server/src/utils/tryCatch.d.ts +1 -0
- package/{server → dist/server/src}/utils/types.d.ts +3 -5
- package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +119 -0
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +586 -0
- package/dist/server/src/validators/api/controllers/index.d.ts +3 -0
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +18 -0
- package/dist/server/src/validators/api/index.d.ts +1 -0
- package/dist/server/src/validators/repositories/comment.schema.d.ts +62 -0
- package/dist/server/src/validators/repositories/comment.validator.d.ts +2944 -0
- package/dist/server/src/validators/repositories/index.d.ts +2 -0
- package/dist/server/src/validators/repositories/reports.validator.d.ts +1045 -0
- package/dist/server/src/validators/repositories/utils.d.ts +20 -0
- package/dist/server/src/validators/utils.d.ts +776 -0
- package/dist/style.css +84 -0
- package/package.json +81 -18
- package/admin/src/components/ActionButton/styles.d.ts +0 -2
- package/admin/src/components/ActionButton/styles.js +0 -15
- package/admin/src/components/AdminAvatar/index.d.ts +0 -4
- package/admin/src/components/AdminAvatar/index.js +0 -17
- package/admin/src/components/AdminAvatar/styles.d.ts +0 -3
- package/admin/src/components/AdminAvatar/styles.js +0 -25
- package/admin/src/components/Avatar/index.d.ts +0 -10
- package/admin/src/components/Avatar/index.js +0 -22
- package/admin/src/components/CommentReviewModal/index.d.ts +0 -10
- package/admin/src/components/CommentReviewModal/index.js +0 -19
- package/admin/src/components/ConfirmationDialog/index.d.ts +0 -27
- package/admin/src/components/ConfirmationDialog/index.js +0 -37
- package/admin/src/components/DiscussionStatus/index.d.ts +0 -9
- package/admin/src/components/DiscussionStatus/index.js +0 -24
- package/admin/src/components/DiscussionThread/index.d.ts +0 -21
- package/admin/src/components/DiscussionThread/index.js +0 -45
- package/admin/src/components/DiscussionThreadItem/index.d.ts +0 -3
- package/admin/src/components/DiscussionThreadItem/index.js +0 -51
- package/admin/src/components/DiscussionThreadItem/styles.d.ts +0 -5
- package/admin/src/components/DiscussionThreadItem/styles.js +0 -31
- package/admin/src/components/DiscussionThreadItemActions/index.d.ts +0 -22
- package/admin/src/components/DiscussionThreadItemActions/index.js +0 -222
- package/admin/src/components/DiscussionThreadItemActions/styles.d.ts +0 -2
- package/admin/src/components/DiscussionThreadItemActions/styles.js +0 -13
- package/admin/src/components/DiscussionThreadItemApprovalFlowActions/index.d.ts +0 -19
- package/admin/src/components/DiscussionThreadItemApprovalFlowActions/index.js +0 -67
- package/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.d.ts +0 -2
- package/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.js +0 -12
- package/admin/src/components/DiscussionThreadItemFooter/index.d.ts +0 -23
- package/admin/src/components/DiscussionThreadItemFooter/index.js +0 -40
- package/admin/src/components/DiscussionThreadItemFooter/styles.d.ts +0 -3
- package/admin/src/components/DiscussionThreadItemFooter/styles.js +0 -18
- package/admin/src/components/DiscussionThreadItemReviewAction/index.d.ts +0 -25
- package/admin/src/components/DiscussionThreadItemReviewAction/index.js +0 -174
- package/admin/src/components/FormSwitch/index.d.ts +0 -7
- package/admin/src/components/FormSwitch/index.js +0 -15
- package/admin/src/components/FormSwitch/styles.d.ts +0 -2
- package/admin/src/components/FormSwitch/styles.js +0 -14
- package/admin/src/components/Hint/index.d.ts +0 -14
- package/admin/src/components/Hint/index.js +0 -22
- package/admin/src/components/IconButton/styles.d.ts +0 -2
- package/admin/src/components/IconButton/styles.js +0 -21
- package/admin/src/components/Initializer/index.d.ts +0 -5
- package/admin/src/components/Initializer/index.js +0 -14
- package/admin/src/components/LoadingIndicatorOverlay/index.d.ts +0 -3
- package/admin/src/components/LoadingIndicatorOverlay/index.js +0 -12
- package/admin/src/components/LoadingIndicatorOverlay/styles.d.ts +0 -3
- package/admin/src/components/LoadingIndicatorOverlay/styles.js +0 -25
- package/admin/src/components/ModeratorResponse/index.d.ts +0 -8
- package/admin/src/components/ModeratorResponse/index.js +0 -106
- package/admin/src/components/ModeratorResponse/styles.d.ts +0 -2
- package/admin/src/components/ModeratorResponse/styles.js +0 -12
- package/admin/src/components/ModeratorResponseModal/ModeratorResponseModal.d.ts +0 -11
- package/admin/src/components/ModeratorResponseModal/ModeratorResponseModal.js +0 -95
- package/admin/src/components/Nav/index.d.ts +0 -7
- package/admin/src/components/Nav/index.js +0 -23
- package/admin/src/components/PluginIcon/index.d.ts +0 -3
- package/admin/src/components/PluginIcon/index.js +0 -6
- package/admin/src/components/PreviewWysiwyg/Wrapper.d.ts +0 -3
- package/admin/src/components/PreviewWysiwyg/Wrapper.js +0 -162
- package/admin/src/components/PreviewWysiwyg/index.d.ts +0 -7
- package/admin/src/components/PreviewWysiwyg/index.js +0 -39
- package/admin/src/components/PreviewWysiwyg/utils/mdRenderer.d.ts +0 -3
- package/admin/src/components/PreviewWysiwyg/utils/mdRenderer.js +0 -88
- package/admin/src/components/PreviewWysiwyg/utils/satinizeHtml.d.ts +0 -20
- package/admin/src/components/PreviewWysiwyg/utils/satinizeHtml.js +0 -18
- package/admin/src/components/ReportsActions/components/BlockMenu/index.d.ts +0 -15
- package/admin/src/components/ReportsActions/components/BlockMenu/index.js +0 -51
- package/admin/src/components/ReportsActions/index.d.ts +0 -11
- package/admin/src/components/ReportsActions/index.js +0 -31
- package/admin/src/components/ReportsReviewModal/index.d.ts +0 -26
- package/admin/src/components/ReportsReviewModal/index.js +0 -33
- package/admin/src/components/ReportsReviewTable/index.d.ts +0 -15
- package/admin/src/components/ReportsReviewTable/index.js +0 -141
- package/admin/src/components/StatusBadge/index.d.ts +0 -7
- package/admin/src/components/StatusBadge/index.js +0 -12
- package/admin/src/components/StatusBadge/styles.d.ts +0 -2
- package/admin/src/components/StatusBadge/styles.js +0 -23
- package/admin/src/components/TableFilters/index.d.ts +0 -19
- package/admin/src/components/TableFilters/index.js +0 -56
- package/admin/src/components/TablePagination/index.d.ts +0 -23
- package/admin/src/components/TablePagination/index.js +0 -33
- package/admin/src/components/Wysiwyg/Editor.js +0 -439
- package/admin/src/components/Wysiwyg/EditorLayout.d.ts +0 -13
- package/admin/src/components/Wysiwyg/EditorLayout.js +0 -85
- package/admin/src/components/Wysiwyg/Field.d.ts +0 -15
- package/admin/src/components/Wysiwyg/Field.js +0 -135
- package/admin/src/components/Wysiwyg/PreviewWysiwyg.js +0 -191
- package/admin/src/components/Wysiwyg/WysiwygFooter.d.ts +0 -8
- package/admin/src/components/Wysiwyg/WysiwygFooter.js +0 -44
- package/admin/src/components/Wysiwyg/WysiwygNav.js +0 -114
- package/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +0 -7
- package/admin/src/components/Wysiwyg/WysiwygStyles.js +0 -54
- package/admin/src/components/Wysiwyg/utils/continueList.js +0 -83
- package/admin/src/components/Wysiwyg/utils/mdRenderer.js +0 -63
- package/admin/src/components/Wysiwyg/utils/utils.js +0 -250
- package/admin/src/components/icons/comments.js +0 -12
- package/admin/src/components/icons/index.d.ts +0 -3
- package/admin/src/components/icons/index.js +0 -29
- package/admin/src/components/icons/lock.d.ts +0 -7
- package/admin/src/components/icons/lock.js +0 -12
- package/admin/src/components/icons/review.d.ts +0 -7
- package/admin/src/components/icons/review.js +0 -12
- package/admin/src/components/icons/strapiIcons.d.ts +0 -26
- package/admin/src/components/icons/strapiIcons.js +0 -38
- package/admin/src/components/icons/unlock.d.ts +0 -7
- package/admin/src/components/icons/unlock.js +0 -12
- package/admin/src/custom-fields/comments/components/icon.d.ts +0 -2
- package/admin/src/custom-fields/comments/components/icon.js +0 -14
- package/admin/src/custom-fields/comments/components/index.d.ts +0 -3
- package/admin/src/custom-fields/comments/components/index.js +0 -19
- package/admin/src/custom-fields/comments/components/input/consts.d.ts +0 -3
- package/admin/src/custom-fields/comments/components/input/consts.js +0 -9
- package/admin/src/custom-fields/comments/components/input/index.d.ts +0 -3
- package/admin/src/custom-fields/comments/components/input/index.js +0 -5
- package/admin/src/custom-fields/comments/components/input/input.d.ts +0 -4
- package/admin/src/custom-fields/comments/components/input/input.js +0 -98
- package/admin/src/custom-fields/comments/components/input/types.d.ts +0 -10
- package/admin/src/custom-fields/comments/components/input/types.js +0 -3
- package/admin/src/custom-fields/comments/components/input/utils.d.ts +0 -26
- package/admin/src/custom-fields/comments/components/input/utils.js +0 -141
- package/admin/src/custom-fields/comments/index.d.ts +0 -3
- package/admin/src/custom-fields/comments/index.js +0 -53
- package/admin/src/custom-fields/index.d.ts +0 -3
- package/admin/src/custom-fields/index.js +0 -13
- package/admin/src/hooks/useConfig.d.ts +0 -8
- package/admin/src/hooks/useConfig.js +0 -41
- package/admin/src/hooks/useReportsActionsHandlers.d.ts +0 -19
- package/admin/src/hooks/useReportsActionsHandlers.js +0 -70
- package/admin/src/index.d.ts +0 -15
- package/admin/src/index.js +0 -97
- package/admin/src/pages/App/index.d.ts +0 -15
- package/admin/src/pages/App/index.js +0 -47
- package/admin/src/pages/App/reducer/actions.d.ts +0 -8
- package/admin/src/pages/App/reducer/actions.js +0 -12
- package/admin/src/pages/App/reducer/constants.d.ts +0 -4
- package/admin/src/pages/App/reducer/constants.js +0 -7
- package/admin/src/pages/App/reducer/index.d.ts +0 -9
- package/admin/src/pages/App/reducer/index.js +0 -28
- package/admin/src/pages/App/reducer/init.d.ts +0 -3
- package/admin/src/pages/App/reducer/init.js +0 -9
- package/admin/src/pages/App/reducer/selectors.d.ts +0 -10
- package/admin/src/pages/App/reducer/selectors.js +0 -18
- package/admin/src/pages/App/utils/api.d.ts +0 -2
- package/admin/src/pages/App/utils/api.js +0 -15
- package/admin/src/pages/ComingSoonPage/index.d.ts +0 -4
- package/admin/src/pages/ComingSoonPage/index.js +0 -43
- package/admin/src/pages/Details/components/DetailsEntity/index.d.ts +0 -19
- package/admin/src/pages/Details/components/DetailsEntity/index.js +0 -56
- package/admin/src/pages/Details/components/DetailsFilters/index.d.ts +0 -13
- package/admin/src/pages/Details/components/DetailsFilters/index.js +0 -28
- package/admin/src/pages/Details/components/DetailsFilters/styles.d.ts +0 -2
- package/admin/src/pages/Details/components/DetailsFilters/styles.js +0 -14
- package/admin/src/pages/Details/index.d.ts +0 -11
- package/admin/src/pages/Details/index.js +0 -100
- package/admin/src/pages/Discover/components/DiscoverTableRow/index.d.ts +0 -25
- package/admin/src/pages/Discover/components/DiscoverTableRow/index.js +0 -125
- package/admin/src/pages/Discover/components/DiscoverTableRow/styles.d.ts +0 -2
- package/admin/src/pages/Discover/components/DiscoverTableRow/styles.js +0 -14
- package/admin/src/pages/Discover/index.d.ts +0 -11
- package/admin/src/pages/Discover/index.js +0 -132
- package/admin/src/pages/Discover/utils/api.d.ts +0 -2
- package/admin/src/pages/Discover/utils/api.js +0 -16
- package/admin/src/pages/Discover/utils/filtersSchema.d.ts +0 -26
- package/admin/src/pages/Discover/utils/filtersSchema.js +0 -39
- package/admin/src/pages/NoAccessPage/index.d.ts +0 -3
- package/admin/src/pages/NoAccessPage/index.js +0 -31
- package/admin/src/pages/Reports/components/ReportsTableRow/index.d.ts +0 -15
- package/admin/src/pages/Reports/components/ReportsTableRow/index.js +0 -91
- package/admin/src/pages/Reports/components/ReportsTableRow/styles.d.ts +0 -2
- package/admin/src/pages/Reports/components/ReportsTableRow/styles.js +0 -14
- package/admin/src/pages/Reports/index.d.ts +0 -11
- package/admin/src/pages/Reports/index.js +0 -196
- package/admin/src/pages/Reports/utils/api.d.ts +0 -2
- package/admin/src/pages/Reports/utils/api.js +0 -16
- package/admin/src/pages/Reports/utils/filtersSchema.d.ts +0 -26
- package/admin/src/pages/Reports/utils/filtersSchema.js +0 -32
- package/admin/src/pages/Settings/components/RestartAlert/styles.d.ts +0 -2
- package/admin/src/pages/Settings/components/RestartAlert/styles.js +0 -14
- package/admin/src/pages/Settings/index.d.ts +0 -3
- package/admin/src/pages/Settings/index.js +0 -244
- package/admin/src/pages/Settings/utils/api.d.ts +0 -7
- package/admin/src/pages/Settings/utils/api.js +0 -65
- package/admin/src/pages/utils/api.d.ts +0 -23
- package/admin/src/pages/utils/api.js +0 -85
- package/admin/src/permissions.js +0 -32
- package/admin/src/pluginId.js +0 -29
- package/admin/src/reducers.d.ts +0 -7
- package/admin/src/reducers.js +0 -12
- package/admin/src/translations/index.d.ts +0 -8
- package/admin/src/translations/index.js +0 -23
- package/admin/src/utils/axiosInstance.d.ts +0 -3
- package/admin/src/utils/axiosInstance.js +0 -29
- package/admin/src/utils/constants.d.ts +0 -29
- package/admin/src/utils/constants.js +0 -28
- package/admin/src/utils/errors.js +0 -10
- package/admin/src/utils/functions.js +0 -10
- package/admin/src/utils/getApiUrl.js +0 -6
- package/admin/src/utils/getMessage.d.ts +0 -4
- package/admin/src/utils/getMessage.js +0 -20
- package/admin/src/utils/getRelatedGroups.js +0 -5
- package/admin/src/utils/getUrl.js +0 -6
- package/admin/src/utils/handleAPIError.d.ts +0 -4
- package/admin/src/utils/handleAPIError.js +0 -17
- package/admin/src/utils/index.js +0 -40
- package/admin/src/utils/parseRegExp.js +0 -11
- package/admin/src/utils/renderEntryTitle.d.ts +0 -4
- package/admin/src/utils/renderEntryTitle.js +0 -13
- package/admin/src/utils/renderInitials.js +0 -11
- package/admin/src/utils/resolveCommentStatus.d.ts +0 -10
- package/admin/src/utils/resolveCommentStatus.js +0 -26
- package/admin/src/utils/resolveCommentStatusColor.d.ts +0 -4
- package/admin/src/utils/resolveCommentStatusColor.js +0 -22
- package/admin/src/utils/resolveReportStatus.d.ts +0 -4
- package/admin/src/utils/resolveReportStatus.js +0 -23
- package/admin/src/utils/resolveReportStatusColor.d.ts +0 -4
- package/admin/src/utils/resolveReportStatusColor.js +0 -17
- package/content-types/comment.js +0 -96
- package/content-types/index.js +0 -23
- package/content-types/report.js +0 -49
- package/permissions.js +0 -18
- package/server/bootstrap.d.ts +0 -4
- package/server/bootstrap.js +0 -59
- package/server/config/index.d.ts +0 -4
- package/server/config/index.js +0 -20
- package/server/controllers/admin.d.ts +0 -4
- package/server/controllers/admin.js +0 -212
- package/server/controllers/client.d.ts +0 -4
- package/server/controllers/client.js +0 -143
- package/server/controllers/index.d.ts +0 -6
- package/server/controllers/index.js +0 -13
- package/server/controllers/utils/functions.d.ts +0 -7
- package/server/controllers/utils/functions.js +0 -24
- package/server/controllers/utils/parsers.d.ts +0 -11
- package/server/controllers/utils/parsers.js +0 -72
- package/server/destroy.d.ts +0 -3
- package/server/destroy.js +0 -4
- package/server/graphql/index.d.ts +0 -4
- package/server/graphql/index.js +0 -27
- package/server/graphql/mutations/createAbuseReport.d.ts +0 -11
- package/server/graphql/mutations/createAbuseReport.js +0 -23
- package/server/graphql/mutations/createComment.d.ts +0 -14
- package/server/graphql/mutations/createComment.js +0 -23
- package/server/graphql/mutations/index.d.ts +0 -4
- package/server/graphql/mutations/index.js +0 -26
- package/server/graphql/mutations/removeComment.d.ts +0 -11
- package/server/graphql/mutations/removeComment.js +0 -23
- package/server/graphql/mutations/updateComment.d.ts +0 -11
- package/server/graphql/mutations/updateComment.js +0 -23
- package/server/graphql/queries/findAllFlat.d.ts +0 -19
- package/server/graphql/queries/findAllFlat.js +0 -37
- package/server/graphql/queries/findAllInHierarchy.d.ts +0 -18
- package/server/graphql/queries/findAllInHierarchy.js +0 -33
- package/server/graphql/queries/findAllPerAuthor.d.ts +0 -21
- package/server/graphql/queries/findAllPerAuthor.js +0 -40
- package/server/graphql/queries/index.d.ts +0 -4
- package/server/graphql/queries/index.js +0 -24
- package/server/graphql/resolvers-config.d.ts +0 -23
- package/server/graphql/resolvers-config.js +0 -13
- package/server/graphql/types/comment-author-type.d.ts +0 -4
- package/server/graphql/types/comment-author-type.js +0 -8
- package/server/graphql/types/comment-author.d.ts +0 -4
- package/server/graphql/types/comment-author.js +0 -11
- package/server/graphql/types/comment-nested.d.ts +0 -4
- package/server/graphql/types/comment-nested.js +0 -18
- package/server/graphql/types/comment.d.ts +0 -4
- package/server/graphql/types/comment.js +0 -17
- package/server/graphql/types/create-comment-author.d.ts +0 -4
- package/server/graphql/types/create-comment-author.js +0 -11
- package/server/graphql/types/create-comment.d.ts +0 -4
- package/server/graphql/types/create-comment.js +0 -11
- package/server/graphql/types/create-report.d.ts +0 -4
- package/server/graphql/types/create-report.js +0 -11
- package/server/graphql/types/id.d.ts +0 -4
- package/server/graphql/types/id.js +0 -25
- package/server/graphql/types/identify-comment-author.d.ts +0 -4
- package/server/graphql/types/identify-comment-author.js +0 -8
- package/server/graphql/types/index.d.ts +0 -4
- package/server/graphql/types/index.js +0 -42
- package/server/graphql/types/remove-comment.d.ts +0 -4
- package/server/graphql/types/remove-comment.js +0 -10
- package/server/graphql/types/report-reason.d.ts +0 -4
- package/server/graphql/types/report-reason.js +0 -12
- package/server/graphql/types/report.d.ts +0 -4
- package/server/graphql/types/report.js +0 -13
- package/server/graphql/types/response-find-all-per-author.d.ts +0 -4
- package/server/graphql/types/response-find-all-per-author.js +0 -9
- package/server/graphql/types/response-find-all.d.ts +0 -4
- package/server/graphql/types/response-find-all.js +0 -9
- package/server/graphql/types/response-meta.d.ts +0 -4
- package/server/graphql/types/response-meta.js +0 -8
- package/server/graphql/types/response-pagination.d.ts +0 -4
- package/server/graphql/types/response-pagination.js +0 -13
- package/server/graphql/types/update-comment.d.ts +0 -4
- package/server/graphql/types/update-comment.js +0 -11
- package/server/index.d.ts +0 -26
- package/server/index.js +0 -25
- package/server/register/custom-fields/comments.js +0 -9
- package/server/register/custom-fields/index.d.ts +0 -3
- package/server/register/custom-fields/index.js +0 -14
- package/server/register/index.js +0 -8
- package/server/routes/admin.d.ts +0 -4
- package/server/routes/admin.js +0 -182
- package/server/routes/client.d.ts +0 -4
- package/server/routes/client.js +0 -118
- package/server/routes/index.d.ts +0 -11
- package/server/routes/index.js +0 -19
- package/server/services/admin.d.ts +0 -5
- package/server/services/admin.js +0 -506
- package/server/services/client.d.ts +0 -5
- package/server/services/client.js +0 -321
- package/server/services/common.d.ts +0 -5
- package/server/services/common.js +0 -296
- package/server/services/graphql.d.ts +0 -5
- package/server/services/graphql.js +0 -150
- package/server/services/index.d.ts +0 -8
- package/server/services/index.js +0 -16
- package/server/services/utils/functions.d.ts +0 -14
- package/server/services/utils/functions.js +0 -118
- package/server/services/utils/parsers.d.ts +0 -6
- package/server/services/utils/parsers.js +0 -63
- package/server/utils/constants.d.ts +0 -15
- package/server/utils/constants.js +0 -47
- package/server/utils/error.js +0 -29
- package/server/utils/functions.d.ts +0 -10
- package/server/utils/functions.js +0 -53
- package/server/utils/types.js +0 -3
- package/strapi-admin.d.ts +0 -3
- package/strapi-admin.js +0 -8
- package/strapi-server.d.ts +0 -186
- package/strapi-server.js +0 -46
- package/tsconfig.tsbuildinfo +0 -1
- package/types/contentTypes.js +0 -3
- package/types/utils.d.ts +0 -5
- package/types/utils.js +0 -9
package/dist/style.css
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|
|
3
|
+
Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.hljs {
|
|
8
|
+
display: block;
|
|
9
|
+
overflow-x: auto;
|
|
10
|
+
padding: 0.5em;
|
|
11
|
+
background: #002b36;
|
|
12
|
+
color: #839496;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.hljs-comment,
|
|
16
|
+
.hljs-quote {
|
|
17
|
+
color: #586e75;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Solarized Green */
|
|
21
|
+
.hljs-keyword,
|
|
22
|
+
.hljs-selector-tag,
|
|
23
|
+
.hljs-addition {
|
|
24
|
+
color: #859900;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Solarized Cyan */
|
|
28
|
+
.hljs-number,
|
|
29
|
+
.hljs-string,
|
|
30
|
+
.hljs-meta .hljs-meta-string,
|
|
31
|
+
.hljs-literal,
|
|
32
|
+
.hljs-doctag,
|
|
33
|
+
.hljs-regexp {
|
|
34
|
+
color: #2aa198;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Solarized Blue */
|
|
38
|
+
.hljs-title,
|
|
39
|
+
.hljs-section,
|
|
40
|
+
.hljs-name,
|
|
41
|
+
.hljs-selector-id,
|
|
42
|
+
.hljs-selector-class {
|
|
43
|
+
color: #268bd2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Solarized Yellow */
|
|
47
|
+
.hljs-attribute,
|
|
48
|
+
.hljs-attr,
|
|
49
|
+
.hljs-variable,
|
|
50
|
+
.hljs-template-variable,
|
|
51
|
+
.hljs-class .hljs-title,
|
|
52
|
+
.hljs-type {
|
|
53
|
+
color: #b58900;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Solarized Orange */
|
|
57
|
+
.hljs-symbol,
|
|
58
|
+
.hljs-bullet,
|
|
59
|
+
.hljs-subst,
|
|
60
|
+
.hljs-meta,
|
|
61
|
+
.hljs-meta .hljs-keyword,
|
|
62
|
+
.hljs-selector-attr,
|
|
63
|
+
.hljs-selector-pseudo,
|
|
64
|
+
.hljs-link {
|
|
65
|
+
color: #cb4b16;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Solarized Red */
|
|
69
|
+
.hljs-built_in,
|
|
70
|
+
.hljs-deletion {
|
|
71
|
+
color: #dc322f;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.hljs-formula {
|
|
75
|
+
background: #073642;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.hljs-emphasis {
|
|
79
|
+
font-style: italic;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.hljs-strong {
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strapi-plugin-comments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.0",
|
|
4
4
|
"description": "Strapi - Comments plugin",
|
|
5
5
|
"strapi": {
|
|
6
6
|
"name": "comments",
|
|
@@ -8,29 +8,92 @@
|
|
|
8
8
|
"description": "Powerful Strapi based comments moderation tool for you and your users",
|
|
9
9
|
"kind": "plugin"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
"./strapi-admin": {
|
|
14
|
+
"types": "./dist/admin/src/index.d.ts",
|
|
15
|
+
"source": "./admin/src/index.ts",
|
|
16
|
+
"import": "./dist/admin/index.mjs",
|
|
17
|
+
"require": "./dist/admin/index.js",
|
|
18
|
+
"default": "./dist/admin/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./strapi-server": {
|
|
21
|
+
"types": "./dist/server/src/index.d.ts",
|
|
22
|
+
"source": "./server/src/index.ts",
|
|
23
|
+
"import": "./dist/server/index.mjs",
|
|
24
|
+
"require": "./dist/server/index.js",
|
|
25
|
+
"default": "./dist/server/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"prepare": "husky install",
|
|
33
|
+
"publish:latest": "npm publish --tag latest",
|
|
34
|
+
"publish:beta": "npm publish --tag beta",
|
|
35
|
+
"build": "yarn clean && strapi-plugin build",
|
|
36
|
+
"clean": "rm -rf build",
|
|
37
|
+
"develop": "nodemon --exec \"yarn build:dev\"",
|
|
38
|
+
"test:unit": "jest --verbose --coverage",
|
|
39
|
+
"test:unit:watch": "jest --verbose --watch",
|
|
40
|
+
"test:unit:ci": "CI=true jest --ci --runInBand --verbose --coverage",
|
|
41
|
+
"lint": "prettier --check .",
|
|
42
|
+
"format": "prettier --write .",
|
|
43
|
+
"build:admin:watch": "tsc -p ./admin/tsconfig.json --watch",
|
|
44
|
+
"build:server:watch": "tsc -p ./server/tsconfig.json --watch",
|
|
45
|
+
"verify": "strapi-plugin verify",
|
|
46
|
+
"watch": "strapi-plugin watch",
|
|
47
|
+
"watch:link": "strapi-plugin watch:link"
|
|
48
|
+
},
|
|
12
49
|
"repository": {
|
|
13
50
|
"type": "git",
|
|
14
51
|
"url": "https://github.com/VirtusLab-Open-Source/strapi-plugin-comments"
|
|
15
52
|
},
|
|
16
53
|
"dependencies": {
|
|
17
|
-
"@
|
|
18
|
-
"@
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"no-profanity": "^1.
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"react-
|
|
25
|
-
"
|
|
54
|
+
"@tanstack/react-query": "^5.40.0",
|
|
55
|
+
"@types/sanitize-html": "^2.13.0",
|
|
56
|
+
"codemirror5": "npm:codemirror@^5.65.11",
|
|
57
|
+
"match-sorter": "^6.3.4",
|
|
58
|
+
"no-profanity": "^1.5.1",
|
|
59
|
+
"react": "^18.3.1",
|
|
60
|
+
"react-dom": "^18.3.1",
|
|
61
|
+
"react-router-dom": "^6.26.2",
|
|
62
|
+
"sanitize-html": "^2.13.1",
|
|
63
|
+
"styled-components": "^6.1.13",
|
|
64
|
+
"zod": "^3.23.8",
|
|
65
|
+
"zustand": "^5.0.0-rc.2"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@jest/types": "29.5.x",
|
|
69
|
+
"@sensinum/strapi-utils": "^1.0.2",
|
|
70
|
+
"@strapi/plugin-cloud": "^5.3.0",
|
|
71
|
+
"@strapi/plugin-users-permissions": "^5.3.0",
|
|
72
|
+
"@strapi/sdk-plugin": "^5.2.6",
|
|
73
|
+
"@strapi/strapi": "^5.3.0",
|
|
74
|
+
"@strapi/types": "^5.3.0",
|
|
75
|
+
"@types/jest": "^29.5.12",
|
|
76
|
+
"@types/koa": "^2.15.0",
|
|
77
|
+
"@types/react": "^18.3.8",
|
|
78
|
+
"@types/react-dom": "^18.3.0",
|
|
79
|
+
"husky": "7.0.4",
|
|
80
|
+
"jest": "^29.7.0",
|
|
81
|
+
"jest-cli": "^29.7.0",
|
|
82
|
+
"jest-junit": "^16.0.0",
|
|
83
|
+
"jest-styled-components": "^7.1.1",
|
|
84
|
+
"react": "^18.3.1",
|
|
85
|
+
"react-dom": "^18.3.1",
|
|
86
|
+
"ts-jest": "^29.1.4",
|
|
87
|
+
"ts-node": "^10.9.1",
|
|
88
|
+
"typescript": "^5.6.2"
|
|
26
89
|
},
|
|
27
|
-
"devDependencies": {},
|
|
28
90
|
"peerDependencies": {
|
|
29
|
-
"@strapi/
|
|
30
|
-
"
|
|
31
|
-
"react
|
|
32
|
-
"react-
|
|
33
|
-
"
|
|
91
|
+
"@strapi/sdk-plugin": "^5.2.7",
|
|
92
|
+
"@strapi/strapi": "^5.3.0",
|
|
93
|
+
"react": "^18.3.1",
|
|
94
|
+
"react-dom": "^18.3.1",
|
|
95
|
+
"react-router-dom": "^6.26.2",
|
|
96
|
+
"styled-components": "^6.1.13"
|
|
34
97
|
},
|
|
35
98
|
"nodemonConfig": {
|
|
36
99
|
"ignore": [
|
|
@@ -72,4 +135,4 @@
|
|
|
72
135
|
"comments"
|
|
73
136
|
],
|
|
74
137
|
"license": "MIT"
|
|
75
|
-
}
|
|
138
|
+
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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.ActionButton = void 0;
|
|
7
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
const Button_1 = require("@strapi/design-system/Button");
|
|
9
|
-
exports.ActionButton = (0, styled_components_1.default)(Button_1.Button) `
|
|
10
|
-
padding: 7px 16px;
|
|
11
|
-
margin-left: ${({ isSingle }) => (isSingle ? "0" : ".5rem")};
|
|
12
|
-
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
`;
|
|
15
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1,17 +0,0 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
7
|
-
const styles_1 = require("./styles");
|
|
8
|
-
const icons_1 = require("@strapi/icons");
|
|
9
|
-
const Icon_1 = require("@strapi/design-system/Icon");
|
|
10
|
-
const AdminAvatar = ({ children }) => {
|
|
11
|
-
return (react_1.default.createElement(styles_1.AdminAvatarWrapper, null,
|
|
12
|
-
children,
|
|
13
|
-
react_1.default.createElement(styles_1.AdminShield, null,
|
|
14
|
-
react_1.default.createElement(Icon_1.Icon, { as: icons_1.Shield, color: "neutral800" }))));
|
|
15
|
-
};
|
|
16
|
-
exports.default = AdminAvatar;
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
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.AdminShield = exports.AdminAvatarWrapper = void 0;
|
|
7
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
const Box_1 = require("@strapi/design-system/Box");
|
|
9
|
-
exports.AdminAvatarWrapper = (0, styled_components_1.default)(Box_1.Box) `
|
|
10
|
-
position: relative;
|
|
11
|
-
`;
|
|
12
|
-
exports.AdminShield = (0, styled_components_1.default)(Box_1.Box) `
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: middle;
|
|
15
|
-
|
|
16
|
-
position: absolute;
|
|
17
|
-
right: -35%;
|
|
18
|
-
top: -35%;
|
|
19
|
-
|
|
20
|
-
border-radius: 50%;
|
|
21
|
-
border: 2px #ffffff solid;
|
|
22
|
-
|
|
23
|
-
background: #ffffff;
|
|
24
|
-
`;
|
|
25
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ToBeFixed } from "../../../../types";
|
|
3
|
-
interface IProps {
|
|
4
|
-
avatar: string | ToBeFixed;
|
|
5
|
-
name: string;
|
|
6
|
-
isAdminComment?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const UserAvatar: React.FC<IProps>;
|
|
9
|
-
export default UserAvatar;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
7
|
-
const lodash_1 = require("lodash");
|
|
8
|
-
const Avatar_1 = require("@strapi/design-system/Avatar");
|
|
9
|
-
const utils_1 = require("../../utils");
|
|
10
|
-
const AdminAvatar_1 = __importDefault(require("../AdminAvatar"));
|
|
11
|
-
const UserAvatar = ({ avatar, name, isAdminComment = false, }) => {
|
|
12
|
-
if (avatar) {
|
|
13
|
-
let image = avatar;
|
|
14
|
-
if ((0, lodash_1.isObject)(avatar)) {
|
|
15
|
-
image = avatar?.formats?.thumbnail.url || avatar.url;
|
|
16
|
-
}
|
|
17
|
-
return isAdminComment ? (react_1.default.createElement(AdminAvatar_1.default, null, image ? react_1.default.createElement(Avatar_1.Avatar, { src: image, alt: name }) : null)) : image ? (react_1.default.createElement(Avatar_1.Avatar, { src: image, alt: name })) : null;
|
|
18
|
-
}
|
|
19
|
-
return isAdminComment ? (react_1.default.createElement(AdminAvatar_1.default, null, name ? react_1.default.createElement(Avatar_1.Initials, null, (0, utils_1.renderInitials)(name)) : null)) : name ? (react_1.default.createElement(Avatar_1.Initials, null, (0, utils_1.renderInitials)(name))) : null;
|
|
20
|
-
};
|
|
21
|
-
exports.default = UserAvatar;
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const CommentReviewModal: ({ children, endActions, isVisible, item, onClose, startActions, }: {
|
|
2
|
-
children: any;
|
|
3
|
-
endActions: any;
|
|
4
|
-
isVisible?: boolean | undefined;
|
|
5
|
-
item: any;
|
|
6
|
-
onClose: any;
|
|
7
|
-
startActions: any;
|
|
8
|
-
}) => false | JSX.Element;
|
|
9
|
-
export default CommentReviewModal;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
7
|
-
const ModalLayout_1 = require("@strapi/design-system/ModalLayout");
|
|
8
|
-
const Typography_1 = require("@strapi/design-system/Typography");
|
|
9
|
-
const utils_1 = require("../../utils");
|
|
10
|
-
const DiscussionThreadItem_1 = __importDefault(require("../DiscussionThreadItem"));
|
|
11
|
-
const CommentReviewModal = ({ children, endActions, isVisible = false, item, onClose, startActions, }) => isVisible && (react_1.default.createElement(ModalLayout_1.ModalLayout, { onClose: onClose },
|
|
12
|
-
react_1.default.createElement(ModalLayout_1.ModalHeader, null,
|
|
13
|
-
react_1.default.createElement(Typography_1.Typography, { fontWeight: "bold", textColor: "neutral800", as: "h2", id: "title" }, (0, utils_1.getMessage)("page.details.panel.discussion.warnings.comments.header", "Open reports"))),
|
|
14
|
-
react_1.default.createElement(ModalLayout_1.ModalBody, null,
|
|
15
|
-
react_1.default.createElement(DiscussionThreadItem_1.default, { ...item.related, as: "div", isSelected: true, preview: true, root: true }),
|
|
16
|
-
children),
|
|
17
|
-
react_1.default.createElement(ModalLayout_1.ModalFooter, { variant: "tertiary", startActions: startActions, endActions: endActions })));
|
|
18
|
-
exports.default = CommentReviewModal;
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
declare const ConfirmationDialog: {
|
|
3
|
-
({ isVisible, isActionAsync, children, onConfirm, onCancel, header, labelCancel, labelConfirm, iconConfirm, }: {
|
|
4
|
-
isVisible?: boolean | undefined;
|
|
5
|
-
isActionAsync?: boolean | undefined;
|
|
6
|
-
children: any;
|
|
7
|
-
onConfirm: any;
|
|
8
|
-
onCancel: any;
|
|
9
|
-
header: any;
|
|
10
|
-
labelCancel: any;
|
|
11
|
-
labelConfirm: any;
|
|
12
|
-
iconConfirm: any;
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
propTypes: {
|
|
15
|
-
isVisible: PropTypes.Requireable<boolean>;
|
|
16
|
-
isActionAsync: PropTypes.Requireable<boolean>;
|
|
17
|
-
children: PropTypes.Validator<any[]>;
|
|
18
|
-
header: PropTypes.Requireable<string>;
|
|
19
|
-
labelCancel: PropTypes.Requireable<string>;
|
|
20
|
-
labelConfirm: PropTypes.Requireable<string>;
|
|
21
|
-
iconConfirm: PropTypes.Requireable<object>;
|
|
22
|
-
onConfirm: PropTypes.Validator<(...args: any[]) => any>;
|
|
23
|
-
onCancel: PropTypes.Validator<(...args: any[]) => any>;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export default ConfirmationDialog;
|
|
27
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
7
|
-
const prop_types_1 = __importDefault(require("prop-types"));
|
|
8
|
-
const Button_1 = require("@strapi/design-system/Button");
|
|
9
|
-
const Dialog_1 = require("@strapi/design-system/Dialog");
|
|
10
|
-
const Flex_1 = require("@strapi/design-system/Flex");
|
|
11
|
-
const Stack_1 = require("@strapi/design-system/Stack");
|
|
12
|
-
const Typography_1 = require("@strapi/design-system/Typography");
|
|
13
|
-
const icons_1 = require("../icons");
|
|
14
|
-
const utils_1 = require("../../utils");
|
|
15
|
-
const ConfirmationDialog = ({ isVisible = false, isActionAsync = false, children, onConfirm, onCancel, header, labelCancel, labelConfirm, iconConfirm, }) => (react_1.default.createElement(Dialog_1.Dialog, { onClose: onCancel, title: header ||
|
|
16
|
-
(0, utils_1.getMessage)("compontents.confirmation.dialog.header", "Confirmation"), isOpen: isVisible },
|
|
17
|
-
react_1.default.createElement(Dialog_1.DialogBody, { icon: icons_1.exclamationMarkCircle },
|
|
18
|
-
react_1.default.createElement(Stack_1.Stack, { size: 2 },
|
|
19
|
-
react_1.default.createElement(Flex_1.Flex, { justifyContent: "center" },
|
|
20
|
-
react_1.default.createElement(Typography_1.Typography, { id: "dialog-confirm-description" }, children ||
|
|
21
|
-
(0, utils_1.getMessage)("compontents.confirmation.dialog.description"))))),
|
|
22
|
-
react_1.default.createElement(Dialog_1.DialogFooter, { startAction: react_1.default.createElement(Button_1.Button, { onClick: onCancel, variant: "tertiary", disabled: isActionAsync }, labelCancel ||
|
|
23
|
-
(0, utils_1.getMessage)("compontents.confirmation.dialog.button.cancel", "Cancel")), endAction: react_1.default.createElement(Button_1.Button, { onClick: onConfirm, variant: "danger-light", startIcon: iconConfirm || icons_1.check, disabled: isActionAsync }, labelConfirm ||
|
|
24
|
-
(0, utils_1.getMessage)("compontents.confirmation.dialog.button.confirm", "Confirm")) })));
|
|
25
|
-
ConfirmationDialog.propTypes = {
|
|
26
|
-
isVisible: prop_types_1.default.bool,
|
|
27
|
-
isActionAsync: prop_types_1.default.bool,
|
|
28
|
-
children: prop_types_1.default.array.isRequired,
|
|
29
|
-
header: prop_types_1.default.string,
|
|
30
|
-
labelCancel: prop_types_1.default.string,
|
|
31
|
-
labelConfirm: prop_types_1.default.string,
|
|
32
|
-
iconConfirm: prop_types_1.default.object,
|
|
33
|
-
onConfirm: prop_types_1.default.func.isRequired,
|
|
34
|
-
onCancel: prop_types_1.default.func.isRequired,
|
|
35
|
-
};
|
|
36
|
-
exports.default = ConfirmationDialog;
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
7
|
-
const Box_1 = require("@strapi/design-system/Box");
|
|
8
|
-
const Status_1 = require("@strapi/design-system/Status");
|
|
9
|
-
const Typography_1 = require("@strapi/design-system/Typography");
|
|
10
|
-
const utils_1 = require("../../utils");
|
|
11
|
-
const DiscussionStatus = ({ blocked, blockedThread }) => {
|
|
12
|
-
let variant = "success";
|
|
13
|
-
return (react_1.default.createElement(Box_1.Box, { styles: { marginBottom: 10 } },
|
|
14
|
-
react_1.default.createElement(Status_1.Status, { variant: variant },
|
|
15
|
-
react_1.default.createElement(Typography_1.Typography, null,
|
|
16
|
-
(0, utils_1.getMessage)("page.details.panel.status", "Discussion is"),
|
|
17
|
-
" ",
|
|
18
|
-
react_1.default.createElement(Typography_1.Typography, { fontWeight: "bold" },
|
|
19
|
-
(0, utils_1.getMessage)("page.details.panel.open", "OPEN"),
|
|
20
|
-
" ")))));
|
|
21
|
-
};
|
|
22
|
-
DiscussionStatus.propTypes = {};
|
|
23
|
-
exports.default = DiscussionStatus;
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
declare const DiscussionThread: {
|
|
3
|
-
({ level, selected, allowedActions, isReloading, }: {
|
|
4
|
-
level?: never[] | undefined;
|
|
5
|
-
selected?: {} | undefined;
|
|
6
|
-
allowedActions: any;
|
|
7
|
-
isReloading: any;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
level: PropTypes.Validator<any[]>;
|
|
11
|
-
selected: PropTypes.Validator<object>;
|
|
12
|
-
allowedActions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
|
-
canModerate: PropTypes.Requireable<boolean>;
|
|
14
|
-
canAccessReports: PropTypes.Requireable<boolean>;
|
|
15
|
-
canReviewReports: PropTypes.Requireable<boolean>;
|
|
16
|
-
}>>;
|
|
17
|
-
isReloading: PropTypes.Requireable<boolean>;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export default DiscussionThread;
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,45 +0,0 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
7
|
-
const prop_types_1 = __importDefault(require("prop-types"));
|
|
8
|
-
const lodash_1 = require("lodash");
|
|
9
|
-
const Box_1 = require("@strapi/design-system/Box");
|
|
10
|
-
const Flex_1 = require("@strapi/design-system/Flex");
|
|
11
|
-
const Link_1 = require("@strapi/design-system/Link");
|
|
12
|
-
const Typography_1 = require("@strapi/design-system/Typography");
|
|
13
|
-
const icons_1 = require("../icons");
|
|
14
|
-
const DiscussionThreadItem_1 = __importDefault(require("../DiscussionThreadItem"));
|
|
15
|
-
const utils_1 = require("../../utils");
|
|
16
|
-
const LoadingIndicatorOverlay_1 = __importDefault(require("../LoadingIndicatorOverlay"));
|
|
17
|
-
const styles_1 = require("../LoadingIndicatorOverlay/styles");
|
|
18
|
-
const DiscussionThread = ({ level = [], selected = {}, allowedActions, isReloading, }) => {
|
|
19
|
-
const rootThread = selected?.threadOf;
|
|
20
|
-
return (react_1.default.createElement(styles_1.LoadingIndicatorContainer, { as: Box_1.Box, padding: 4 },
|
|
21
|
-
isReloading && react_1.default.createElement(LoadingIndicatorOverlay_1.default, null),
|
|
22
|
-
react_1.default.createElement(Flex_1.Flex, { as: Box_1.Box, direction: "row", justifyContent: "space-between", marginBottom: 2 },
|
|
23
|
-
react_1.default.createElement(Typography_1.Typography, { variant: "delta", textColor: "neutral800", id: "discussion-thread" }, (0, utils_1.getMessage)("page.details.panel.discussion", "Discussion")),
|
|
24
|
-
rootThread && (react_1.default.createElement(Link_1.Link, { to: (0, utils_1.getUrl)(`discover/${rootThread.id}`), startIcon: icons_1.arrowUp }, (0, utils_1.getMessage)("page.details.panel.discussion.nav.back")))),
|
|
25
|
-
react_1.default.createElement(Flex_1.Flex, { as: "ul", direction: "column", alignItems: "flex-start", marginBottom: 4 },
|
|
26
|
-
rootThread && (react_1.default.createElement(DiscussionThreadItem_1.default, { ...rootThread, allowedActions: allowedActions, isThreadAuthor: true, root: true, pinned: true })),
|
|
27
|
-
level.map((item) => {
|
|
28
|
-
const isSelected = selected.id === item.id;
|
|
29
|
-
const isThreadAuthor = !(0, lodash_1.isNil)(selected?.threadOf?.author?.id) &&
|
|
30
|
-
selected?.threadOf?.author?.id === item?.author?.id;
|
|
31
|
-
return (react_1.default.createElement(DiscussionThreadItem_1.default, { key: `comment-${item.id}`, ...item, allowedActions: allowedActions, root: (0, lodash_1.isNil)(rootThread), blockedThread: rootThread?.blockedThread || item.blockedThread, isSelected: isSelected, isThreadAuthor: isThreadAuthor }));
|
|
32
|
-
}))));
|
|
33
|
-
};
|
|
34
|
-
DiscussionThread.propTypes = {
|
|
35
|
-
level: prop_types_1.default.array.isRequired,
|
|
36
|
-
selected: prop_types_1.default.object.isRequired,
|
|
37
|
-
allowedActions: prop_types_1.default.shape({
|
|
38
|
-
canModerate: prop_types_1.default.bool,
|
|
39
|
-
canAccessReports: prop_types_1.default.bool,
|
|
40
|
-
canReviewReports: prop_types_1.default.bool,
|
|
41
|
-
}),
|
|
42
|
-
isReloading: prop_types_1.default.bool,
|
|
43
|
-
};
|
|
44
|
-
exports.default = DiscussionThread;
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const Box_1 = require("@strapi/design-system/Box");
|
|
30
|
-
const Flex_1 = require("@strapi/design-system/Flex");
|
|
31
|
-
const Typography_1 = require("@strapi/design-system/Typography");
|
|
32
|
-
const react_1 = __importStar(require("react"));
|
|
33
|
-
const DiscussionThreadItemActions_1 = __importDefault(require("../DiscussionThreadItemActions"));
|
|
34
|
-
const DiscussionThreadItemFooter_1 = __importDefault(require("../DiscussionThreadItemFooter"));
|
|
35
|
-
const styles_1 = require("./styles");
|
|
36
|
-
const satinizeHtml_1 = __importDefault(require("./../PreviewWysiwyg/utils/satinizeHtml"));
|
|
37
|
-
const mdRenderer_1 = __importDefault(require("./../PreviewWysiwyg/utils/mdRenderer"));
|
|
38
|
-
const DiscussionThreadItem = (props) => {
|
|
39
|
-
const { as = "li", authorAvatar, authorName, content, isSelected, pinned, preview, root, } = props;
|
|
40
|
-
const sanitizedContent = (0, react_1.useMemo)(() => (0, satinizeHtml_1.default)(mdRenderer_1.default.render(content || '')), [content]);
|
|
41
|
-
return (react_1.default.createElement(styles_1.DiscussionThreadFullsize, { as: as, marginBottom: preview ? 4 : 0 },
|
|
42
|
-
react_1.default.createElement(styles_1.DiscussionThreadItemContainer, { as: Flex_1.Flex, direction: "column", alignItems: "flex-start", hasRadius: true, background: isSelected ? "neutral100" : null, paddingLeft: 2, paddingRight: 2, paddingTop: 4, paddingBottom: 4 },
|
|
43
|
-
react_1.default.createElement(styles_1.DiscussionThreadItemContent, { as: Flex_1.Flex, paddingBottom: 2, direction: "row" },
|
|
44
|
-
react_1.default.createElement(Box_1.Box, { as: Flex_1.Flex, grow: 1, alignItems: "center", marginTop: "6px" },
|
|
45
|
-
react_1.default.createElement(Typography_1.Typography, { variant: "omega", textColor: "neutral800" },
|
|
46
|
-
react_1.default.createElement(styles_1.DiscussionThreadItemContentTypographyRenderer, { dangerouslySetInnerHTML: { __html: sanitizedContent } }))),
|
|
47
|
-
!preview && (react_1.default.createElement(DiscussionThreadItemActions_1.default, { ...props, root: root || pinned, preview: preview }))),
|
|
48
|
-
react_1.default.createElement(DiscussionThreadItemFooter_1.default, { ...props }))));
|
|
49
|
-
};
|
|
50
|
-
exports.default = DiscussionThreadItem;
|
|
51
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const DiscussionThreadFullsize: import("styled-components").StyledComponent<any, any, any, any>;
|
|
2
|
-
export declare const DiscussionThreadItemContent: import("styled-components").StyledComponent<any, any, any, any>;
|
|
3
|
-
export declare const DiscussionThreadItemContainer: import("styled-components").StyledComponent<any, any, any, any>;
|
|
4
|
-
export declare const DiscussionThreadItemContentTypographyRenderer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,31 +0,0 @@
|
|
|
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.DiscussionThreadItemContentTypographyRenderer = exports.DiscussionThreadItemContainer = exports.DiscussionThreadItemContent = exports.DiscussionThreadFullsize = void 0;
|
|
7
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
const Box_1 = require("@strapi/design-system/Box");
|
|
9
|
-
exports.DiscussionThreadFullsize = (0, styled_components_1.default)(Box_1.Box) `
|
|
10
|
-
width: 100%;
|
|
11
|
-
`;
|
|
12
|
-
exports.DiscussionThreadItemContent = (0, styled_components_1.default)(exports.DiscussionThreadFullsize) `
|
|
13
|
-
align-items: flex-start;
|
|
14
|
-
`;
|
|
15
|
-
exports.DiscussionThreadItemContainer = (0, styled_components_1.default)(exports.DiscussionThreadFullsize) `
|
|
16
|
-
align-items: flex-start;
|
|
17
|
-
`;
|
|
18
|
-
exports.DiscussionThreadItemContentTypographyRenderer = styled_components_1.default.div `
|
|
19
|
-
strong {
|
|
20
|
-
font-weight: bold;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
i, em {
|
|
24
|
-
font-style: italic;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
u {
|
|
28
|
-
font-style: underline;
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
31
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
declare const DiscussionThreadItemActions: {
|
|
3
|
-
({ allowedActions: { canModerate, canAccessReports, canReviewReports }, ...item }: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
allowedActions: {
|
|
6
|
-
canModerate: any;
|
|
7
|
-
canAccessReports: any;
|
|
8
|
-
canReviewReports: any;
|
|
9
|
-
};
|
|
10
|
-
}): JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
isRoot: PropTypes.Requireable<boolean>;
|
|
13
|
-
blocked: PropTypes.Validator<boolean>;
|
|
14
|
-
blockedThread: PropTypes.Validator<boolean>;
|
|
15
|
-
approvalStatus: PropTypes.Requireable<any>;
|
|
16
|
-
allowedActions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
-
canModerate: PropTypes.Requireable<boolean>;
|
|
18
|
-
}>>;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default DiscussionThreadItemActions;
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|